Add attribute::as_unsigned method
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2020-09-29 Tom Tromey <tom@tromey.com>
2
3 * dwarf2/read.c (dw2_get_file_names_reader)
4 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
5 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
6 (dwarf2_symbol_mark_computed): Use as_unsigned.
7 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
8 method.
9 <form_is_section_offset>: Update comment.
10
11 2020-09-29 Tom Tromey <tom@tromey.com>
12
13 * dwarf2/read.c (dwarf2_access_attribute): Rename from
14 dwarf2_default_access_attribute. Look up attribute.
15 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
16 Update.
17
18 2020-09-29 Tom Tromey <tom@tromey.com>
19
20 * dwarf2/read.c (skip_one_die): Update.
21 (read_full_die_1): Change how reprocessing is done.
22 (partial_die_info::read): Update.
23 (read_attribute_value): Remove need_reprocess parameter.
24 (read_attribute): Likewise.
25 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
26 New method.
27
28 2020-09-29 Tom Tromey <tom@tromey.com>
29
30 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
31 (dwarf2_const_value_attr, dump_die_shallow)
32 (dwarf2_fetch_constant_bytes): Update.
33 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
34 comment.
35 <set_address>: New method.
36 (DW_ADDR): Remove.
37 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
38 (attribute::as_string, attribute::as_address): Add assert.
39
40 2020-09-29 Tom Tromey <tom@tromey.com>
41
42 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
43 (read_attribute_reprocess, read_attribute_value): Update.
44 (read_attribute): Clear requires_reprocessing.
45 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
46 form_requires_reprocessing>: New methods.
47 <string_init>: Clear requires_reprocessing.
48 <set_unsigned_reprocess>: New method.
49 <name>: Shrink by one bit.
50 <requires_reprocessing>: New member.
51 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
52 method.
53
54 2020-09-29 Tom Tromey <tom@tromey.com>
55
56 * dwarf2/read.c (read_attribute_value): Update.
57 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
58 set_unsigned>: New methods.
59 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
60
61 2020-09-29 Tom Tromey <tom@tromey.com>
62
63 * dwarf2/read.c (get_alignment, read_array_order)
64 (read_attribute_value, dwarf2_const_value_attr)
65 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
66 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
67 New methods.
68 (DW_SND): Remove.
69
70 2020-09-29 Tom Tromey <tom@tromey.com>
71
72 * dwarf2/read.c (read_attribute_value, lookup_die_type)
73 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
74 Update.
75 * dwarf2/attribute.h (struct attribute) <as_signature,
76 set_signature>: New methods.
77 (DW_SIGNATURE): Remove.
78
79 2020-09-29 Tom Tromey <tom@tromey.com>
80
81 * dwarf2/read.c (read_call_site_scope)
82 (handle_data_member_location, dwarf2_add_member_fn)
83 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
84 (partial_die_info::read, read_attribute_value)
85 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
86 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
87 (dwarf2_symbol_mark_computed): Update.
88 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
89 methods.
90 (DW_BLOCK): Remove.
91 * dwarf2/attribute.c (attribute::form_is_block): Add
92 DW_FORM_data16.
93
94 2020-09-29 Tom Tromey <tom@tromey.com>
95
96 * dwarf2/read.c (read_cutu_die_from_dwo)
97 (read_attribute_reprocess, read_attribute_value, read_attribute)
98 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
99 (dwarf2_fetch_constant_bytes): Update.
100 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
101 <set_string_noncanonical, set_string_canonical>: New methods.
102 <string_is_canonical>: Update comment.
103 <canonical_string_p>: Add assert.
104 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
105 * dwarf2/attribute.c (attribute::form_is_string): New method.
106 (attribute::string): Use it.
107
108 2020-09-29 Tom Tromey <tom@tromey.com>
109
110 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
111 (dump_die_shallow): Use canonical_string_p.
112 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
113 method.
114
115 2020-09-29 Tom Tromey <tom@tromey.com>
116
117 * dwarf2/read.c (partial_die_info::read)
118 (dwarf2_const_value_attr, anonymous_struct_prefix, )
119 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
120 attribute::as_string.
121
122 2020-09-29 Tom Tromey <tom@tromey.com>
123
124 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
125 DW_ADDR.
126 (attribute::string): Don't use DW_STRING.
127 (attribute::get_ref_die_offset): Don't use DW_UNSND.
128 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
129
130 2020-09-29 Tom Tromey <tom@tromey.com>
131
132 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
133 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
134 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
135 * dwarf2/attribute.h (struct attribute): Rename methods.
136 * dwarf2/attribute.c (attribute::as_address): Rename from
137 value_as_address.
138 (attribute::as_string): Rename from value_as_string.
139
140 2020-09-29 Tom Tromey <tom@tromey.com>
141
142 * dwarf2/read.c (partial_die_info::read) <case
143 DW_AT_linkage_name>: Use value_as_string.
144 (dwarf2_string_attr): Use value_as_string.
145 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
146 method.
147 * dwarf2/attribute.c (attribute::value_as_string): New method.
148
149 2020-09-29 Pedro Alves <pedro@palves.net>
150
151 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
152 defined before using '#pragma GCC diagnostic' instead of checking
153 __clang__.
154
155 2020-09-28 Tom Tromey <tom@tromey.com>
156
157 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
158 (handle_signal_stop): Update.
159 * procfs.c (procfs_target::insert_watchpoint): Update.
160 * target.h (target_have_steppable_watchpoint): Now a function.
161
162 2020-09-28 Tom Tromey <tom@tromey.com>
163
164 * infrun.c (set_schedlock_func): Update.
165 * target.h (target_can_lock_scheduler): Now a function.
166
167 2020-09-28 Tom Tromey <tom@tromey.com>
168
169 * inferior.h (class inferior) <has_execution>: Update.
170 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
171 * valops.c (find_function_in_inferior)
172 (value_allocate_space_in_inferior): Update.
173 * top.c (kill_or_detach): Update.
174 * target.c (target_preopen, set_target_permissions): Update.
175 (target_has_execution_current): Remove.
176 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
177 Update.
178 * solib.c (update_solib_list, reload_shared_libraries): Update.
179 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
180 * solib-dsbt.c (enable_break): Update.
181 * score-tdep.c (score7_fetch_inst): Update.
182 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
183 Update.
184 * remote.c (remote_target::start_remote)
185 (remote_target::remote_check_symbols, remote_target::open_1)
186 (remote_target::remote_detach_1, remote_target::verify_memory)
187 (remote_target::xfer_partial, remote_target::read_description)
188 (remote_target::get_min_fast_tracepoint_insn_len): Update.
189 * record-full.c (record_full_open_1): Update.
190 * record-btrace.c (record_btrace_target_open): Update.
191 * objc-lang.c (lookup_objc_class, lookup_child_selector)
192 (value_nsstring): Update.
193 * linux-thread-db.c (add_thread_db_info)
194 (thread_db_find_new_threads_silently, check_thread_db_callback)
195 (try_thread_db_load_1, record_thread): Update.
196 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
197 Update.
198 * linux-fork.c (checkpoint_command): Update.
199 * infrun.c (set_non_stop, set_observer_mode)
200 (check_multi_target_resumption, for_each_just_stopped_thread)
201 (maybe_remove_breakpoints, normal_stop)
202 (class infcall_suspend_state): Update.
203 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
204 (info_program_command, attach_command): Update.
205 * infcall.c (call_function_by_hand_dummy): Update.
206 * inf-loop.c (inferior_event_handler): Update.
207 * gcore.c (gcore_command, derive_heap_segment): Update.
208 * exec.c (exec_file_command): Update.
209 * eval.c (evaluate_subexp): Update.
210 * compile/compile.c (compile_to_object): Update.
211 * cli/cli-dump.c (restore_command): Update.
212 * breakpoint.c (update_watchpoint)
213 (update_inserted_breakpoint_locations)
214 (insert_breakpoint_locations, get_bpstat_thread): Update.
215 * target.h (target_has_execution): Remove macro.
216 (target_has_execution_current): Don't declare.
217 (target_has_execution): Rename from target_has_execution_1. Add
218 argument default.
219
220 2020-09-28 Tom Tromey <tom@tromey.com>
221
222 * mi/mi-main.c (exec_reverse_continue)
223 (mi_cmd_list_target_features): Update.
224 * infrun.c (set_exec_direction_func): Update.
225 * target.c (default_execution_direction): Update.
226 * reverse.c (exec_reverse_once): Update.
227 * target.h (target_can_execute_reverse): Now a function.
228
229 2020-09-28 Tom Tromey <tom@tromey.com>
230
231 * tui/tui-regs.c (tui_get_register)
232 (tui_data_window::show_registers): Update.
233 * thread.c (scoped_restore_current_thread::restore)
234 (scoped_restore_current_thread::scoped_restore_current_thread):
235 Update.
236 * regcache-dump.c (regcache_print): Update.
237 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
238 Update.
239 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
240 * mep-tdep.c (current_me_module, current_options): Update.
241 * linux-thread-db.c (thread_db_load): Update.
242 * infcmd.c (registers_info, info_vector_command)
243 (info_float_command): Update.
244 * ia64-tdep.c (ia64_frame_prev_register)
245 (ia64_sigtramp_frame_prev_register): Update.
246 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
247 * gcore.c (derive_stack_segment): Update.
248 * frame.c (get_current_frame, has_stack_frames): Update.
249 * findvar.c (language_defn::read_var_value): Update.
250 * arm-tdep.c (arm_pc_is_thumb): Update.
251 * target.c (target_has_registers): Rename from
252 target_has_registers_1.
253 * target.h (target_has_registers): Remove macro.
254 (target_has_registers): Rename from target_has_registers_1.
255
256 2020-09-28 Tom Tromey <tom@tromey.com>
257
258 * windows-tdep.c (tlb_make_value): Update.
259 * tui/tui-regs.c (tui_data_window::show_registers): Update.
260 * thread.c (scoped_restore_current_thread::restore)
261 (scoped_restore_current_thread::scoped_restore_current_thread)
262 (thread_command): Update.
263 * stack.c (backtrace_command_1, frame_apply_level_command)
264 (frame_apply_all_command, frame_apply_command): Update.
265 * infrun.c (siginfo_make_value, restore_infcall_control_state):
266 Update.
267 * gcore.c (derive_stack_segment): Update.
268 * frame.c (get_current_frame, has_stack_frames): Update.
269 * auxv.c (info_auxv_command): Update.
270 * ada-tasks.c (ada_build_task_list): Update.
271 * target.c (target_has_stack): Rename from target_has_stack_1.
272 * target.h (target_has_stack): Remove macro.
273 (target_has_stack): Rename from target_has_stack_1.
274
275 2020-09-28 Tom Tromey <tom@tromey.com>
276
277 * target.c (target_has_memory): Rename from target_has_memory_1.
278 * tui/tui-regs.c (tui_data_window::show_registers): Update.
279 * thread.c (scoped_restore_current_thread::restore)
280 (scoped_restore_current_thread::scoped_restore_current_thread):
281 Update.
282 * frame.c (get_current_frame, has_stack_frames): Update.
283 * target.h (target_has_memory): Remove macro.
284 (target_has_memory): Rename from target_has_memory_1.
285
286 2020-09-28 Tom Tromey <tom@tromey.com>
287
288 * target.c (target_has_all_memory_1): Remove.
289 * target.h (target_has_all_memory): Remove define.
290 (target_has_all_memory_1): Don't declare.
291
292 2020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
293
294 * ser-base.c: Adjust comments formatting.
295
296 2020-09-27 Tom Tromey <tom@tromey.com>
297
298 PR tui/25342:
299 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
300
301 2020-09-27 Tom Tromey <tom@tromey.com>
302
303 PR tui/25342:
304 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
305
306 2020-09-27 Tom Tromey <tom@tromey.com>
307
308 * unittests/tui-selftests.c: Update.
309 * tui/tui-winsource.h (struct tui_source_window_base)
310 <extra_margin, show_line_number, refresh_pad>: New methods.
311 <m_max_length, m_pad>: New members.
312 (tui_copy_source_line): Update.
313 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
314 first_col, line_width, ndigits parameters. Add length.
315 (tui_source_window_base::show_source_line): Write to pad. Line
316 number now 0-based.
317 (tui_source_window_base::refresh_pad): New method.
318 (tui_source_window_base::show_source_content): Write to pad. Call
319 refresh_pad.
320 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
321 not refill.
322 (tui_source_window_base::update_exec_info): Call
323 show_line_number.
324 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
325 method.
326 <m_digits>: New member.
327 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
328 and m_max_length.
329 (tui_source_window::show_line_number): New method.
330 * tui/tui-io.h (tui_puts): Fix comment.
331 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
332 m_max_length.
333
334 2020-09-27 Tom Tromey <tom@tromey.com>
335
336 * tui/tui-winsource.c
337 (tui_source_window_base::set_is_exec_point_at): Don't call
338 show_source_line.
339
340 2020-09-27 Tom Tromey <tom@tromey.com>
341
342 * python/py-tui.c (class tui_py_window) <refresh_window>: New
343 method.
344 <erase>: Update.
345 <cursor_x, cursor_y>: Remove.
346 <m_inner_window>: New member.
347 (tui_py_window::rerender): Create inner window.
348 (tui_py_window::output): Write to inner window.
349
350 2020-09-26 Gareth Rees <grees@undo.io> (tiny change)
351
352 PR python/26586
353 * cli/cli-script.c (execute_control_commands): don't set
354 instream to nullptr here as this breaks the from_tty argument
355 to gdb.execute in Python.
356 (execute_user_command): set instream to nullptr here instead.
357
358 2020-09-25 Simon Marchi <simon.marchi@efficios.com>
359
360 * infrun.h (infrun_debug_printf): Fix formatting.
361 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
362
363 2020-09-25 Saagar Jha <saagar@saagarjha.com>
364
365 * compile/compile-object-load.h (struct munmap_list): Add
366 explicitly-defined move constructor.
367
368 2020-09-24 Tom Tromey <tromey@adacore.com>
369
370 PR tui/26638:
371 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
372 method.
373 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
374 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
375 (tui_prev_win): Rewrite.
376
377 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
378
379 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
380 in WOW64 processes as SIGINT.
381 * nat/windows-nat.h: Make wow64_process a shared variable.
382 * windows-nat.c: Remove static wow64_process variable.
383
384 2020-09-23 Tom Tromey <tom@tromey.com>
385
386 PR symtab/25470:
387 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
388 offset and bit size.
389 * printcmd.c (print_scalar_formatted): Handle zero-length
390 integer.
391 (print_scalar_formatted): Use bit_size_differs_p.
392 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
393 constant.
394 (union type_specific): <int_stuff>: New member.
395 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
396 methods.
397 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
398 TYPE_SPECIFIC_FIELD.
399 (recursive_dump_type, copy_type_recursive): Update.
400 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
401 DW_AT_data_bit_offset.
402
403 2020-09-23 Tom Tromey <tom@tromey.com>
404
405 * utils.h (class gdb_argv): Add move operators.
406 <append>: New methods.
407 * compile/compile.c (build_argc_argv): Remove.
408 (compile_args_argc): Remove.
409 (compile_args_argv): Change type.
410 (set_compile_args): Simplify.
411 (append_args): Remove.
412 (filter_args): Remove argcp parameter.
413 (get_args): Return gdb_argv. Simplify.
414 (compile_to_object): Update.
415
416 2020-09-23 Tom Tromey <tom@tromey.com>
417
418 * compile/compile-object-run.c (do_module_cleanup)
419 <~do_module_cleanup> :Remove.
420 (do_module_cleanup): Update.
421 * compile/compile-object-load.h (struct munmap_list): Add move
422 assignment operator.
423 <source_file>: Now a std::string.
424 <munmap_list>: Rename. No longer a pointer.
425 * compile/compile-object-load.c (struct setup_sections_data): Add
426 constructor.
427 <setup_one_section>: Declare.
428 <munmap_list>: Move earlier.
429 <m_bfd>: New member.
430 <m_last_size, m_last_section_first, m_last_prot,
431 m_last_max_alignment>: Rename, add initializers where needed.
432 (setup_sections_data::setup_one_section): Rename from
433 setup_sections. Update.
434 (compile_object_load): Update. Don't use bfd_map_over_sections.
435
436 2020-09-23 Tom Tromey <tom@tromey.com>
437
438 * compile/compile-object-run.c (struct do_module_cleanup): Add
439 parameters to constructor. Update destructor.
440 <source_file, scope, scope_data, out_value_type, out_value_addr,
441 munmap_list_head, objfile_name_string>: Remove.
442 <module>: New member.
443 (do_module_cleanup): Update.
444 (compile_object_run): Update.
445
446 2020-09-23 Tom Tromey <tom@tromey.com>
447
448 * compile/compile.c (eval_compile_command): Update.
449 * compile/compile-object-run.h (compile_object_run): Take a
450 compile_module_up.
451 * compile/compile-object-run.c (compile_object_run): Take a
452 compile_module_up.
453 * compile/compile-object-load.h (struct compile_module): Add
454 constructor, destructor.
455 (compile_module_up): New typedef.
456 (compile_object_load): Return compile_object_up.
457 * compile/compile-object-load.c (compile_object_load): Return
458 compile_module_up.
459
460 2020-09-23 Tom Tromey <tom@tromey.com>
461
462 * compile/compile-object-run.c (struct do_module_cleanup): Add
463 constructor, destructor.
464 <objfile_name_string>: Don't use struct hack.
465 (do_module_cleanup): Use delete.
466 (compile_object_run): Use new.
467
468 2020-09-23 Tom Tromey <tom@tromey.com>
469
470 * compile/compile-cplus-types.c
471 (compile_cplus_convert_struct_or_union): Use std::vector.
472 (compile_cplus_convert_func): Likewise.
473 * compile/compile-c-types.c (convert_func): Use std::vector.
474
475 2020-09-21 Tom Tromey <tromey@adacore.com>
476
477 * sparc-tdep.c (sparc32_skip_prologue): Use
478 skip_prologue_using_sal.
479
480 2020-09-19 Tom Tromey <tom@tromey.com>
481
482 * symfile.c (add_section_size_callback): Remove.
483 (load_one_section): Rename from load_section_callback. Change
484 parameters.
485 (generic_load): Use foreach.
486
487 2020-09-19 Tom Tromey <tom@tromey.com>
488
489 * exec.c (add_to_section_table): Remove.
490 (build_section_table): Use foreach.
491
492 2020-09-19 Tom Tromey <tom@tromey.com>
493
494 * elfread.c (elf_locate_sections): Change parameters.
495 (elf_symfile_read): Use foreach.
496
497 2020-09-19 Tom Tromey <tom@tromey.com>
498
499 * cli/cli-dump.c (struct callback_data): Remove.
500 (restore_one_section): Rename from restore_section_callback.
501 Change parameters.
502 (restore_binary_file): Change parameters.
503 (restore_command): Use foreach.
504
505 2020-09-19 Tom Tromey <tom@tromey.com>
506
507 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
508 (gcore_copy_callback): Likewise.
509 (gcore_memory_sections): Use foreach.
510
511 2020-09-19 Tom Tromey <tom@tromey.com>
512
513 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
514 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
515 parameters.
516 (generic_elf_osabi_sniffer): Use foreach.
517 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
518 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
519
520 2020-09-19 Tom Tromey <tom@tromey.com>
521
522 * dwarf2/read.c (locate_dwz_sections): Change parameters.
523 (dwarf2_get_dwz_file): Use foreach.
524 (dwarf2_locate_dwo_sections): Change parameters.
525 (open_and_init_dwo_file): Use foreach.
526 (dwarf2_locate_common_dwp_sections): Change parameters.
527 (open_and_init_dwp_file): Use foreach.
528
529 2020-09-19 Tom Tromey <tom@tromey.com>
530
531 * symfile.h: (find_lowest_section): Don't declare.
532 * symfile.c (find_lowest_section): Now static. Change
533 parameters.
534 (struct place_section_arg): Remove.
535 (place_section): Change parameters.
536 (addr_info_make_relative): Use foreach.
537 (symfile_dummy_outputs): Remove.
538 (default_symfile_relocate): Use foreach.
539
540 2020-09-19 Tom Tromey <tom@tromey.com>
541
542 * objfiles.c (add_to_objfile_sections): Rename from
543 add_to_objfile_sections_full.
544 (add_to_objfile_sections): Remove.
545 (build_objfile_section_table): Use foreach.
546
547 2020-09-19 Tom Tromey <tom@tromey.com>
548
549 * stap-probe.c (get_stap_base_address_1): Remove.
550 (get_stap_base_address): Use foreach.
551
552 2020-09-19 Tom Tromey <tom@tromey.com>
553
554 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
555 parameters.
556 (gdb_bfd_close_or_warn): Use foreach.
557
558 2020-09-19 Tom Tromey <tom@tromey.com>
559
560 * corelow.c (add_to_thread_list): Change parameters.
561 (core_target_open): Use foreach.
562
563 2020-09-19 Tom Tromey <tom@tromey.com>
564
565 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
566 existing function.
567
568 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
569
570 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
571 for arrays.
572
573 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
574
575 * eval.c: Remove 'f-lang.h' include.
576 (value_f90_subarray): Moved to f-lang.c.
577 (eval_call): Renamed to...
578 (evaluate_subexp_do_call): ...this, is no longer static, header
579 comment moved into header file.
580 (evaluate_funcall): Update call to eval_call.
581 (skip_undetermined_arglist): Moved to f-lang.c.
582 (fortran_value_subarray): Likewise.
583 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
584 moved to evaluate_subexp_f.
585 (calc_f77_array_dims): Moved to f-lang.c
586 * expprint.c (print_subexp_funcall): New function.
587 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
588 moved to print_subexp_f, OP_FUNCALL uses new function.
589 (dump_subexp_body_funcall): New function.
590 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
591 moved to dump_subexp_f, OP_FUNCALL uses new function.
592 * expression.h (evaluate_subexp_do_call): Declare.
593 * f-lang.c (value_f90_subarray): Moved from eval.c.
594 (skip_undetermined_arglist): Likewise.
595 (calc_f77_array_dims): Likewise.
596 (fortran_value_subarray): Likewise.
597 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
598 (operator_length_f): Likewise.
599 (print_subexp_f): Likewise.
600 (dump_subexp_body_f): Likewise.
601 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
602 declaration of this operation to here.
603 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
604 support moved to operator_length_f.
605 * parser-defs.h (dump_subexp_body_funcall): Declare.
606 (print_subexp_funcall): Declare.
607 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
608 fortran-operator.def.
609
610 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
611
612 * eval.c (fortran_value_subarray): New function, content is taken
613 from...
614 (evaluate_subexp_standard): ...here, in two places. Now arrays
615 and strings both call the new function.
616 (calc_f77_array_dims): Add header comment, handle strings.
617
618 2020-09-18 Victor Collod <vcollod@nvidia.com>
619
620 PR gdb/26635
621 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
622 (i386_analyze_prologue): Call i386_skip_endbr.
623
624 2020-09-18 Tom Tromey <tromey@adacore.com>
625
626 * windows-nat.c (struct windows_nat_target) <wait>: Update.
627 (windows_nat_target::wait): Update.
628 * target/wait.h (enum target_wait_flag): New. Use
629 DEF_ENUM_FLAGS_TYPE.
630 * target/target.h (target_wait): Change type of options.
631 * target.h (target_options_to_string, default_target_wait):
632 Update.
633 (struct target_ops) <wait>: Change type of options.
634 * target.c (target_wait, default_target_wait, do_option): Change
635 type of "options".
636 (target_options_to_string): Likewise.
637 * target-delegates.c: Rebuild.
638 * target-debug.h (target_debug_print_target_wait_flags): Rename
639 from target_debug_print_options.
640 * sol-thread.c (class sol_thread_target) <wait>: Update.
641 (sol_thread_target::wait): Update.
642 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
643 (rs6000_nat_target::wait): Update.
644 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
645 Update.
646 (remote_target::wait_ns, remote_target::wait_as): Change type of
647 "options".
648 (remote_target::wait): Update.
649 * remote-sim.c (struct gdbsim_target) <wait>: Update.
650 (gdbsim_target::wait): Update.
651 * record-full.c (class record_full_base_target) <wait>: Update.
652 (record_full_wait_1): Change type of "options".
653 (record_full_base_target::wait): Update.
654 * record-btrace.c (class record_btrace_target) <wait>: Update.
655 (record_btrace_target::wait): Update.
656 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
657 Update.
658 (ravenscar_thread_target::wait): Update.
659 * procfs.c (class procfs_target) <wait>: Update.
660 (procfs_target::wait): Update.
661 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
662 * obsd-nat.c (obsd_nat_target::wait): Update.
663 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
664 (nto_procfs_target::wait): Update.
665 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
666 * nbsd-nat.c (nbsd_wait): Change type of "options".
667 (nbsd_nat_target::wait): Update.
668 * linux-thread-db.c (class thread_db_target) <wait>: Update.
669 (thread_db_target::wait): Update.
670 * linux-nat.h (class linux_nat_target) <wait>: Update.
671 * linux-nat.c (linux_nat_target::wait): Update.
672 (linux_nat_wait_1): Update.
673 * infrun.c (do_target_wait_1, do_target_wait): Change type of
674 "options".
675 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
676 * inf-ptrace.c (inf_ptrace_target::wait): Update.
677 * go32-nat.c (struct go32_nat_target) <wait>: Update.
678 (go32_nat_target::wait): Update.
679 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
680 * gnu-nat.c (gnu_nat_target::wait): Update.
681 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
682 * fbsd-nat.c (fbsd_nat_target::wait): Update.
683 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
684 * darwin-nat.c (darwin_nat_target::wait): Update.
685 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
686 (bsd_uthread_target::wait): Update.
687 * aix-thread.c (class aix_thread_target) <wait>: Update.
688 (aix_thread_target::wait): Update.
689
690 2020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
691
692 * compile/compile-object-run.c (create_copied_type_recursive): New
693 function.
694 (compile_object_run): Use new function.
695
696 2020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
697
698 * NEWS: Mention x86_64 Cygwin core file support.
699
700 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
701
702 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
703 (core_process_module_section): Handle NOTE_INFO_MODULE64.
704
705 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
706
707 * windows-tdep.h: Add prototypes.
708 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
709 (i386_windows_core_pid_to_str): Move and rename ...
710 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
711 (windows_core_pid_to_str): ... and here.
712 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
713
714 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
715 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
716 (amd64_windows_init_abi_common): ... and register.
717
718 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
719
720 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
721 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
722
723 2020-09-18 Pedro Alves <pedro@palves.net>
724
725 PR gdb/26631
726 * thread.c (thread_find_command): Switch inferior before calling
727 target methods.
728
729 2020-09-17 Tom Tromey <tromey@adacore.com>
730
731 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
732 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
733 (tdesc_arch_data_up): New typedef.
734 (tdesc_use_registers, tdesc_data_alloc): Update.
735 (tdesc_data_cleanup): Don't declare.
736 * target-descriptions.c (tdesc_data_alloc): Return a
737 tdesc_arch_data_up.
738 (tdesc_arch_data_deleter::operator()): Rename from
739 tdesc_data_cleanup. Change argument type.
740 (tdesc_use_registers): Change early_data to an rvalue reference.
741 (tdesc_use_registers): Don't use delete.
742 * sparc-tdep.c (sparc32_gdbarch_init): Update.
743 * s390-tdep.c (s390_gdbarch_init): Update.
744 * rx-tdep.c (rx_gdbarch_init): Update.
745 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
746 * riscv-tdep.c (riscv_gdbarch_init): Update.
747 * or1k-tdep.c (or1k_gdbarch_init): Update.
748 * nios2-tdep.c (nios2_gdbarch_init): Update.
749 * nds32-tdep.c (nds32_gdbarch_init): Update.
750 * mips-tdep.c (mips_gdbarch_init): Update.
751 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
752 * m68k-tdep.c (m68k_gdbarch_init): Update.
753 * i386-tdep.c (i386_gdbarch_init): Update.
754 * arm-tdep.c (arm_gdbarch_init): Update.
755 * arc-tdep.c (arc_tdesc_init): Update.
756 (arc_gdbarch_init): Update.
757 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
758
759 2020-09-17 Hannes Domani <ssbssa@yahoo.de>
760
761 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
762 for WOW64 processes.
763
764 2020-09-17 Tom Tromey <tom@tromey.com>
765
766 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
767
768 2020-09-17 Tom Tromey <tom@tromey.com>
769
770 * value.c (preserve_values): Update.
771 * python/py-type.c (save_objfile_types): Update.
772 * guile/scm-type.c (save_objfile_types): Update.
773 * gdbtypes.h (create_copied_types_hash): Return htab_up.
774 * gdbtypes.c (create_copied_types_hash): Return htab_up.
775 * compile/compile-object-run.c (compile_object_run): Update.
776
777 2020-09-17 Tom Tromey <tom@tromey.com>
778
779 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
780 Remove.
781 <m_table>: Now htab_up.
782 * typeprint.c (typedef_hash_table::recursively_update)
783 (typedef_hash_table::add_template_parameters)
784 (typedef_hash_table::typedef_hash_table): Update.
785 (typedef_hash_table::~typedef_hash_table): Remove.
786 (typedef_hash_table::typedef_hash_table)
787 (typedef_hash_table::find_global_typedef)
788 (typedef_hash_table::find_typedef): Update.
789
790 2020-09-17 Tom Tromey <tom@tromey.com>
791
792 * target-descriptions.c (tdesc_use_registers): Use htab_up.
793
794 2020-09-17 Tom Tromey <tom@tromey.com>
795
796 * linespec.c (class decode_compound_collector)
797 <~decode_compound_collector>: Remove.
798 <m_unique_syms>: Now htab_up.
799 (decode_compound_collector::operator ()): Update.
800 (class symtab_collector) <~symtab_collector>: Remove.
801 <m_symtab_table>: Now htab_up.
802 (symtab_collector::operator ()): Update.
803
804 2020-09-17 Tom Tromey <tom@tromey.com>
805
806 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
807 (filename_seen_cache::clear): Update.
808 (~filename_seen_cache): Remove.
809 (filename_seen_cache::seen): Update.
810 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
811 htab_up.
812 <~filename_seen_cache>: Remove.
813 <traverse>: Update.
814
815 2020-09-17 Tom Tromey <tom@tromey.com>
816
817 * completer.c (completion_tracker::discard_completions)
818 (completion_tracker::~completion_tracker)
819 (completion_tracker::maybe_add_completion)
820 (completion_tracker::remove_completion)
821 (completion_tracker::recompute_lowest_common_denominator)
822 (completion_tracker::build_completion_result): Update.
823 * completer.h (class completion_tracker) <have_completions>:
824 Update.
825 <m_entries_hash>: Now htab_up.
826
827 2020-09-17 Tom Tromey <tom@tromey.com>
828
829 * breakpoint.c (ambiguous_names_p): Use htab_up.
830
831 2020-09-17 Tom Tromey <tom@tromey.com>
832
833 * auto-load.c (struct auto_load_pspace_info)
834 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
835 <loaded_script_files, loaded_script_texts>: Change type to
836 htab_up.
837 (~auto_load_pspace_info) Remove.
838 (init_loaded_scripts_info, maybe_add_script_file)
839 (maybe_add_script_text, auto_load_info_scripts): Update.
840
841 2020-09-17 Tom Tromey <tromey@adacore.com>
842
843 * c-exp.y (name_obstack): Now static.
844
845 2020-09-17 Chungyi Chi <demonic@csie.io>
846
847 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
848
849 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
850
851 * breakpoint.h (init_catchpoint): Change int parameter to bool.
852 (add_solib_catchpoint): Likewise.
853 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
854 to bool.
855 (add_solib_catchpoint): Change int parameter/variable to bool.
856 (catch_load_or_unload): Likewise.
857 (init_catchpoint): Likewise.
858 (create_fork_vfork_event_catchpoint): Likewise.
859 (catch_fork_command_1): Likewise.
860 (catch_exec_command_1): Likewise.
861
862 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
863
864 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
865 Change instance_flags to m_instance_flags.
866
867 2020-09-16 Tom Tromey <tromey@adacore.com>
868
869 PR gdb/26598:
870 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
871
872 2020-09-16 John Baldwin <jhb@FreeBSD.org>
873
874 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
875 PL_FLAG_EXEC.
876 (fbsd_nat_target::insert_exec_catchpoint)
877 (fbsd_nat_target::remove_exec_catchpoint): Always define.
878 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
879 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
880
881 2020-09-16 John Baldwin <jhb@FreeBSD.org>
882
883 * configure.ac: Remove check for kinfo_getvmmap().
884 * configure, config.in: Regenerate.
885 * fbsd-nat.c (fbsd_read_mapping): Remove
886 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
887 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
888 kinfo_get_vmmap() are always present.
889
890 2020-09-16 John Baldwin <jhb@FreeBSD.org>
891
892 * fbsd-nat.c: Always include support for
893 TARGET_OBJECT_SIGNAL_INFO.
894
895 2020-09-16 John Baldwin <jhb@FreeBSD.org>
896
897 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
898 sysctl and remove procfs fallback.
899
900 2020-09-16 John Baldwin <jhb@FreeBSD.org>
901
902 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
903 * fbsd-nat.h: Likewise.
904
905 2020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
906
907 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
908 argument.
909
910 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
911
912 * ada-lang.c (ada_language_data): Delete.
913 (ada_language): Remove references to ada_language_data.
914 * c-lang.c (c_language_data): Delete.
915 (c_language): Remove references to c_language_data.
916 (cplus_language_data): Delete.
917 (cplus_language): Remove references to cplus_language_data.
918 (asm_language_data): Delete.
919 (asm_language): Remove references to asm_language_data.
920 (minimal_language_data): Delete.
921 (minimal_language): Remove references to minimal_language_data.
922 * d-lang.c (d_language_data): Delete.
923 (d_language): Remove references to d_language_data.
924 * f-lang.c (f_language_data): Delete.
925 (f_language): Remove references to f_language_data.
926 * go-lang.c (go_language_data): Delete.
927 (go_language): Remove references to go_language_data.
928 * language.c (unknown_language_data): Delete.
929 (unknown_language): Remove references to unknown_language_data.
930 (auto_language_data): Delete.
931 (auto_language): Remove references to auto_language_data.
932 * language.h (language_data): Delete struct.
933 (language_defn): No longer inherit from language_data.
934 * m2-lang.c (m2_language_data): Delete.
935 (m2_language): Remove references to m2_language_data.
936 * objc-lang.c (objc_language_data): Delete.
937 (objc_language): Remove references to objc_language_data.
938 * opencl-lang.c (opencl_language_data): Delete.
939 (opencl_language): Remove references to opencl_language_data.
940 * p-lang.c (pascal_language_data): Delete.
941 (pascal_language): Remove references to pascal_language_data.
942 * rust-lang.c (rust_language_data): Delete.
943 (rust_language): Remove references to rust_language_data.
944
945 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
946
947 * ada-lang.c (ada_language_data): Remove la_op_print_tab
948 initializer.
949 (ada_language::opcode_print_table): New member function.
950 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
951 (c_language::opcode_print_table): New member function.
952 (cplus_language_data): Remove la_op_print_tab initializer.
953 (cplus_language::opcode_print_table): New member function.
954 (asm_language_data): Remove la_op_print_tab initializer.
955 (asm_language::opcode_print_table): New member function.
956 (minimal_language_data): Remove la_op_print_tab initializer.
957 (minimal_language::opcode_print_table): New member function.
958 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
959 (d_language::opcode_print_table): New member function.
960 * expprint.c (print_subexp_standard): Update call to
961 opcode_print_table.
962 (op_string): Likewise.
963 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
964 (f_language::opcode_print_table): New member function.
965 * go-lang.c (go_language_data): Remove la_op_print_tab
966 initializer.
967 (go_language::opcode_print_table): New member function.
968 * language.c (unknown_language_data): Remove la_op_print_tab
969 initializer.
970 (unknown_language::opcode_print_table): New member function.
971 (auto_language_data): Remove la_op_print_tab initializer.
972 (auto_language::opcode_print_table): New member function.
973 * language.h (language_data): Remove la_op_print_tab field.
974 (language_defn::opcode_print_table): Declare new member function.
975 * m2-lang.c (m2_language_data): Remove la_op_print_tab
976 initializer.
977 (m2_language::opcode_print_table): New member function.
978 * objc-lang.c (objc_language_data): Remove la_op_print_tab
979 initializer.
980 (objc_language::opcode_print_table): New member function.
981 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
982 initializer.
983 (opencl_language::opcode_print_table): New member function.
984 * p-lang.c (pascal_language_data): Remove la_op_print_tab
985 initializer.
986 (pascal_language::opcode_print_table): New member function.
987 * rust-lang.c (rust_language_data): Remove la_op_print_tab
988 initializer.
989 (rust_language::opcode_print_table): New member function.
990
991 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
992
993 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
994 (ada_language::expression_ops): New member function.
995 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
996 (c_language::expression_ops): New member function.
997 (cplus_language_data): Remove la_exp_desc initializer.
998 (cplus_language::expression_ops): New member function.
999 (asm_language_data): Remove la_exp_desc initializer.
1000 (asm_language::expression_ops): New member function.
1001 (minimal_language_data): Remove la_exp_desc initializer.
1002 (minimal_language::expression_ops): New member function.
1003 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
1004 (d_language::expression_ops): New member function.
1005 * eval.c (evaluate_subexp): Update call to expression_ops.
1006 * expprint.c (print_subexp): Likewise.
1007 (op_name): Likewise.
1008 (dump_subexp_body): Likewise.
1009 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
1010 (f_language::expression_ops): New member function.
1011 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
1012 (go_language::expression_ops): New member function.
1013 * language.c (language_defn::expression_ops): New function.
1014 (unknown_language_data): Remove la_exp_desc initializer.
1015 (auto_language_data): Likewise.
1016 * language.h (language_data): Remove la_exp_desc field.
1017 (language_defn::expression_ops): Declare new member function.
1018 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
1019 (m2_language::expression_ops): New member function.
1020 * objc-lang.c (objc_language_data): Remove la_exp_desc
1021 initializer.
1022 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
1023 initializer.
1024 (opencl_language::expression_ops): New member function.
1025 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
1026 * parse.c (operator_length): Update call to expression_ops.
1027 (exp_iterate): Likewise.
1028 * rust-lang.c (rust_language_data): Remove la_exp_desc
1029 initializer.
1030 (ruse_language::expression_ops): New member function.
1031
1032 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1033
1034 * ada-lang.c (ada_language_data): Remove la_varobj_ops
1035 initializer.
1036 (ada_language::varobj_ops): New member function.
1037 * c-lang.c (c_language_data): Remove la_varobj_ops
1038 initializer.
1039 (cplus_language_data): Likewise.
1040 (cplus_language::varobj_ops): New member function.
1041 (asm_language_data): Remove la_varobj_ops initializer.
1042 (minimal_language_data): Likewise.
1043 * d-lang.c (d_language_data): Likewise.
1044 * f-lang.c (f_language_data): Likewise.
1045 * go-lang.c (go_language_data): Likewise.
1046 * language.c (language_defn::varobj_ops): New function.
1047 (unknown_language_data): Remove la_varobj_ops
1048 initializer.
1049 (auto_language_data): Likewise.
1050 * language.h (language_data): Remove la_varobj_ops field.
1051 (language_defn::varobj_ops): Declare new member function.
1052 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
1053 * objc-lang.c (objc_language_data): Likewise.
1054 * opencl-lang.c (opencl_language_data): Likewise.
1055 * p-lang.c (pascal_language_data): Likewise.
1056 * rust-lang.c (rust_language_data): Likewise.
1057 * varobj.c (varobj_create): Update call to varobj_ops.
1058 * varobj.h (default_varobj_ops): Delete define.
1059
1060 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1061
1062 * ada-lang.c (ada_language_data): Remove la_macro_expansion
1063 initializer.
1064 * c-lang.c (c_language_data): Likewise.
1065 (c_language::macro_expansion): New member function.
1066 (cplus_language_data): Likewise.
1067 (cplus_language::macro_expansion): New member function.
1068 (asm_language_data): Likewise.
1069 (asm_language::macro_expansion): New member function.
1070 (minimal_language_data): Likewise.
1071 (minimal_language::macro_expansion): New member function.
1072 * d-lang.c (d_language_data): Remove la_macro_expansion
1073 initializer.
1074 * f-lang.c (f_language_data): Likewise.
1075 * go-lang.c (go_language_data): Likewise.
1076 * language.c (unknown_language_data): Likewise.
1077 (auto_language_data): Likewise.
1078 * language.h (language_data): Remove la_macro_expansion field.
1079 (language_defn::macro_expansion): New member function.
1080 * m2-lang.c (m2_language_data): Remove la_macro_expansion
1081 initializer.
1082 * objc-lang.c (objc_language_data): Likewise.
1083 (objc_language::macro_expansion): New member function.
1084 * opencl-lang.c (opencl_language_data): Likewise.
1085 (opencl_language::macro_expansion): New member function.
1086 * p-lang.c (pascal_language_data): Remove la_macro_expansion
1087 initializer.
1088 * rust-lang.c (rust_language_data): Likewise.
1089 * symtab.c (default_collect_symbol_completion_matches_break_on):
1090 Update call to macro_expansion.
1091
1092 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1093
1094 * ada-lang.c (ada_language_data): Remove la_array_ordering
1095 initializer.
1096 * c-lang.c (c_language_data): Likewise.
1097 (cplus_language_data): Likewise.
1098 (asm_language_data): Likewise.
1099 (minimal_language_data): Likewise.
1100 * d-lang.c (d_language_data): Likewise.
1101 * dwarf2/read.c (read_array_order): Update for call to
1102 array_ordering.
1103 * f-lang.c (f_language_data): Remove la_array_ordering
1104 initializer.
1105 (f_language::array_ordering): New member function.
1106 * go-lang.c (go_language_data): Remove la_array_ordering
1107 initializer.
1108 * language.c (unknown_language_data): Likewise.
1109 (auto_language_data): Likewise.
1110 * language.h (language_data): Delete la_array_ordering field.
1111 (language_defn::array_ordering): New member function.
1112 * m2-lang.c (m2_language_data): Remove la_array_ordering
1113 initializer.
1114 * objc-lang.c (objc_language_data): Likewise.
1115 * opencl-lang.c (opencl_language_data): Likewise.
1116 * p-lang.c (pascal_language_data): Likewise.
1117 * rust-lang.c (rust_language_data): Likewise.
1118
1119 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1120
1121 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
1122 initializer.
1123 * c-lang.c (c_language_data): Likewise.
1124 (cplus_language_data): Likewise.
1125 (asm_language_data): Likewise.
1126 (minimal_language_data): Likewise.
1127 * d-lang.c (d_language_data): Likewise.
1128 * f-lang.c (f_language_data): Likewise.
1129 (f_language::case_sensitivity): New member function.
1130 * go-lang.c (go_language_data): Remove la_case_sensitivity
1131 initializer.
1132 * language.c (enum case_mode): Moved here from language.h.
1133 (case_mode): Make static.
1134 (show_case_command): Update for case_sensitivity being a method.
1135 (set_case_command): Likewise.
1136 (set_range_case): Likewise.
1137 (unknown_language_data): Remove la_case_sensitivity initializer.
1138 (auto_language_data): Likewise.
1139 * language.h (case_mode): Delete, move enum declaration to
1140 language.c.
1141 (language_data): Delete la_case_sensitivity field.
1142 (language_defn::case_sensitivity): New member function.
1143 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
1144 initializer.
1145 * objc-lang.c (objc_language_data): Likewise.
1146 * opencl-lang.c (opencl_language_data): Likewise.
1147 * p-lang.c (pascal_language_data): Likewise.
1148 * rust-lang.c (rust_language_data): Likewise.
1149
1150 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1151
1152 * ada-lang.c (ada_language_data): Remove la_range_check
1153 initializer.
1154 * c-lang.c (c_language_data): Likewise.
1155 (cplus_language_data): Likewise.
1156 (asm_language_data): Likewise.
1157 (minimal_language_data): Likewise.
1158 * d-lang.c (d_language_data): Likewise.
1159 * f-lang.c (f_language_data): Likewise.
1160 (f_language::range_checking_on_by_default): New member function.
1161 * go-lang.c (go_language_data): Remove la_range_check initializer.
1162 * language.c (enum range_mode): Moved here from language.h.
1163 (range_mode): Made static.
1164 (show_range_command): Update to use
1165 range_checking_on_by_default.
1166 (set_range_command): Likewise.
1167 (set_range_case): Likewise.
1168 (unknown_language_data): Remove la_range_check initializer.
1169 (auto_language_data): Likewise.
1170 * language.h (range_mode): Delete. Enum definition moved to
1171 language.c.
1172 (language_data): Remove la_range_check field.
1173 (language_defn::range_checking_on_by_default): New member
1174 function.
1175 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
1176 (m2_language::range_checking_on_by_default): New member function.
1177 * objc-lang.c (objc_language_data): Remove la_range_check
1178 initializer.
1179 * opencl-lang.c (opencl_language_data): Likewise.
1180 * p-lang.c (pascal_language_data): Likewise.
1181 (pascal_language::range_checking_on_by_default): New member
1182 function.
1183 * rust-lang.c (rust_language_data): Remove la_range_check
1184 initializer.
1185 (rust_language::range_checking_on_by_default): New member
1186 function.
1187
1188 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1189
1190 * dwarf2/read.c (dwarf2_physname): Remove special case for
1191 language_go.
1192 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
1193 member function.
1194
1195 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1196
1197 * ada-lang.c (ada_language_data): Remove
1198 la_store_sym_names_in_linkage_form_p initializer.
1199 (ada_language::store_sym_names_in_linkage_form_p): New member
1200 function.
1201 * c-lang.c (c_language_data): Remove
1202 la_store_sym_names_in_linkage_form_p initializer.
1203 (c_language::store_sym_names_in_linkage_form_p): New member
1204 function.
1205 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
1206 initializer.
1207 (asm_language_data): Likewise.
1208 (asm_language::store_sym_names_in_linkage_form_p): New member
1209 function.
1210 (minimal_language_data): Remove
1211 la_store_sym_names_in_linkage_form_p initializer.
1212 (minimal_language::store_sym_names_in_linkage_form_p): New member
1213 function.
1214 * d-lang.c (d_language_data): Remove
1215 la_store_sym_names_in_linkage_form_p initializer.
1216 * dwarf2/read.c (dwarf2_physname): Update call to
1217 store_sym_names_in_linkage_form_p.
1218 * f-lang.c (f_language_data): Remove
1219 la_store_sym_names_in_linkage_form_p initializer.
1220 * go-lang.c (go_language_data): Remove
1221 la_store_sym_names_in_linkage_form_p initializer.
1222 * language.c (unknown_language_data): Remove
1223 la_store_sym_names_in_linkage_form_p initializer.
1224 (unknown_language::store_sym_names_in_linkage_form_p): New member
1225 function.
1226 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
1227 initializer.
1228 (auto_language::store_sym_names_in_linkage_form_p): New member
1229 function.
1230 * language.h (language_data): Remove
1231 la_store_sym_names_in_linkage_form_p member variable.
1232 (language_defn::store_sym_names_in_linkage_form_p): New member
1233 function.
1234 * m2-lang.c (m2_language_data): Remove
1235 la_store_sym_names_in_linkage_form_p initializer.
1236 * objc-lang.c (objc_language_data): Likewise.
1237 * opencl-lang.c (opencl_language_data): Likewise.
1238 * p-lang.c (pascal_language_data): Likewise.
1239 * rust-lang.c (rust_language_data): Likewise.
1240
1241 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1242
1243 * ada-lang.c (ada_language_data): Remove string_lower_bound
1244 initializer.
1245 * c-lang.c (c_language_data): Likewise.
1246 (cplus_language_data): Likewise.
1247 (asm_language_data): Likewise.
1248 (minimal_language_data): Likewise.
1249 * d-lang.c (d_language_data): Likewise.
1250 * f-lang.c (f_language_data): Likewise.
1251 * go-lang.c (go_language_data): Likewise.
1252 * language.c (unknown_language_data): Likewise.
1253 (auto_language_data): Likewise.
1254 * language.h (language_data): Remove string_lower_bound field.
1255 (language_defn::string_lower_bound): New member function.
1256 * m2-lang.c (m2_language_data): Remove string_lower_bound
1257 initializer.
1258 (m2_language::string_lower_bound): New member function.
1259 * objc-lang.c (objc_language_data): Remove string_lower_bound
1260 initializer.
1261 * opencl-lang.c (opencl_language_data): Likewise.
1262 * p-lang.c (pascal_language_data): Likewise.
1263 * rust-lang.c (rust_language_data): Likewise.
1264 * valops.c (value_cstring): Update call to string_lower_bound.
1265 (value_string): Likewise.
1266 * value.c (allocate_repeated_value): Likewise.
1267
1268 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1269
1270 * valops.c (value_repeat): Fix incorrect argument name in comment.
1271
1272 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1273
1274 * ada-lang.c (ada_language_data): Remove c_style_arrays
1275 initializer.
1276 (ada_language::c_style_arrays_p): New member fuction.
1277 * c-lang.c (c_language_data): Remove c_style_arrays
1278 initializer.
1279 (cplus_language_data): Likewise.
1280 (asm_language_data): Likewise.
1281 (minimal_language_data): Likewise.
1282 * d-lang.c (d_language_data): Likewise.
1283 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
1284 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
1285 (f_language::c_style_arrays_p): New member function.
1286 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
1287 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
1288 * language.c (unknown_language_data): Remove c_style_arrays
1289 initializer.
1290 (auto_language_data): Likewise.
1291 * language.h (language_data): Remove c_style_arrays field.
1292 (language_defn::c_style_arrays_p): New member function.
1293 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
1294 (m2_language::c_style_arrays_p): New member function.
1295 * objc-lang.c (objc_language_data): Remove c_style_arrays
1296 initializer.
1297 * opencl-lang.c (opencl_language_data): Likewise.
1298 * p-lang.c (pascal_language_data): Likewise.
1299 * rust-lang.c (rust_language_data): Likewise.
1300 * valarith.c (value_subscript): Update call to c_style_arrays_p,
1301 and update local variable to a bool.
1302 * valops.c (value_cast): Update call to c_style_arrays_p.
1303 (value_array): Likewise.
1304 * value.c (coerce_array): Likewise.
1305
1306 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1307
1308 * ada-lang.c (ada_language_data): Remove la_language initializer.
1309 * c-lang.c (c_language_data): Likewise.
1310 (cplus_language_data): Likewise.
1311 (asm_language_data): Likewise.
1312 (minimal_language_data): Likewise.
1313 * d-lang.c (d_language_data): Likewise.
1314 * f-lang.c (f_language_data): Likewise.
1315 * go-lang.c (go_language_data): Likewise.
1316 * language.c (unknown_language_data): Likewise.
1317 (auto_language_data): Likewise.
1318 * language.h (language_data): Remove la_language field.
1319 (language_defn::language_defn): Initialise la_language field.
1320 (language_defn::la_language): New member variable.
1321 * m2-lang.c (m2_language_data): Remove la_language field.
1322 * objc-lang.c (objc_language_data): Likewise.
1323 * opencl-lang.c (opencl_language_data): Likewise.
1324 * p-lang.c (pascal_language_data): Likewise.
1325 * rust-lang.c (rust_language_data): Likewise.
1326
1327 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1328
1329 * ada-lang.c (ada_extensions): Delete, moved into
1330 ada_language::filename_extensions.
1331 (ada_language_data): Remove la_filename_extensions initializer.
1332 (ada_language::filename_extensions): New member function.
1333 * c-lang.c (c_extensions): Delete, moved into
1334 c_language::filename_extensions.
1335 (c_language_data): Remove la_filename_extensions initializer.
1336 (c_language::filename_extensions): New member function.
1337 (cplus_extensions): Delete, moved into
1338 cplus_language::filename_extensions.
1339 (cplus_language_data): Remove la_filename_extensions initializer.
1340 (cplus_language::filename_extensions): New member function.
1341 (asm_extensions): Delete, moved into
1342 asm_language::filename_extensions.
1343 (asm_language_data): Remove la_filename_extensions initializer.
1344 (asm_language::filename_extensions): New member function.
1345 (minimal_language_data): Remove la_filename_extensions
1346 initializer.
1347 * d-lang.c (d_extensions): Delete, moved into
1348 d_language::filename_extensions.
1349 (d_language_data): Remove la_filename_extensions initializer.
1350 (d_language::filename_extensions): New member function.
1351 * f-lang.c (f_extensions): Delete, moved into
1352 f_language::filename_extensions.
1353 (f_language_data): Remove la_filename_extensions initializer.
1354 (f_language::filename_extensions): New member function.
1355 * go-lang.c (go_language_data): Remove la_filename_extensions
1356 initializer.
1357 * language.c (add_set_language_command): Update now that
1358 filename_extensions returns a vector.
1359 (unknown_language_data): Remove la_filename_extensions
1360 initializer.
1361 (auto_language_data): Likewise.
1362 * language.h (language_data): Remove la_filename_extensions field.
1363 (language_defn::filename_extensions): New member function.
1364 * m2-lang.c (m2_language_data): Remove la_filename_extensions
1365 initializer.
1366 * objc-lang.c (objc_extensions): Delete, moved into
1367 objc_language::filename_extensions.
1368 (objc_language_data): Remove la_filename_extensions initializer.
1369 (objc_language::filename_extensions): New member function.
1370 * opencl-lang.c (opencl_language_data): Remove
1371 la_filename_extensions initializer.
1372 * p-lang.c (pascal_extensions): Delete, moved into
1373 pascal_language::filename_extensions.
1374 (pascal_language_data): Remove la_filename_extensions initializer.
1375 (pascal_language::filename_extensions): New member function.
1376 * rust-lang.c (rust_extensions): Delete, moved into
1377 rust_language::filename_extensions.
1378 (rust_language_data): Remove la_filename_extensions initializer.
1379 (rust_language::filename_extensions): New member function.
1380 * symfile.c (add_filename_language): Add new assert.
1381
1382 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1383
1384 * ada-lang.c (ada_language_data): Remove la_name and
1385 la_natural_name initializers.
1386 (ada_language::name): New member function.
1387 (ada_language::natural_name): New member function.
1388 * c-lang.c (c_language_data): Remove la_name and
1389 la_natural_name initializers.
1390 (c_language::name): New member function.
1391 (c_language::natural_name): New member function.
1392 (cplus_language_data): Remove la_name and
1393 la_natural_name initializers.
1394 (cplus_language::name): New member function.
1395 (cplus_language::natural_name): New member function.
1396 (asm_language_data): Remove la_name and
1397 la_natural_name initializers.
1398 (asm_language::name): New member function.
1399 (asm_language::natural_name): New member function.
1400 (minimal_language_data): Remove la_name and
1401 la_natural_name initializers.
1402 (minimal_language::name): New member function.
1403 (minimal_language::natural_name): New member function.
1404 * compile/compile.c (compile_to_object): Update call to
1405 lanugage_defn::name.
1406 * d-lang.c (d_language_data): Remove la_name and
1407 la_natural_name initializers.
1408 (d_language::name): New member function.
1409 (d_language::natural_name): New member function.
1410 * expprint.c (print_subexp_standard): Update call to
1411 language_defn::name.
1412 (dump_raw_expression): Likewise
1413 (dump_prefix_expression): Likewise.
1414 * f-lang.c (f_language_data): Remove la_name and
1415 la_natural_name initializers.
1416 (f_language::name): New member function.
1417 (f_language::natural_name): New member function.
1418 * go-lang.c (go_language_data): Remove la_name and
1419 la_natural_name initializers.
1420 (go_language::name): New member function.
1421 (go_language::natural_name): New member function.
1422 * language.c (show_language_command): Update call to
1423 language_defn::name.
1424 (set_language_command): Likewise.
1425 (language_enum): Likewise.
1426 (language_str): Likewise.
1427 (add_set_language_command): Likewise, use
1428 language_defn::natural_name in the doc string.
1429 (unknown_language_data): Remove la_name and
1430 la_natural_name initializers.
1431 (unknown_language::name): New member function.
1432 (unknown_language::natural_name): New member function.
1433 (auto_language_data): Remove la_name and
1434 la_natural_name initializers.
1435 (auto_language::name): New member function.
1436 (auto_language::natural_name): New member function.
1437 (language_lookup_primitive_type_as_symbol): Update call to
1438 language_defn::name.
1439 * language.h (language_data): Remove la_name and la_natural_name
1440 member variables.
1441 (language_defn::name): New member function.
1442 (language_defn::natural_name): New member function.
1443 * m2-lang.c (m2_language_data): Remove la_name and
1444 la_natural_name initializers.
1445 (m2_language::name): New member function.
1446 (m2_language::natural_name): New member function.
1447 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
1448 language_defn::natural_name.
1449 * objc-lang.c (objc_language_data): Remove la_name and
1450 la_natural_name initializers.
1451 (objc_language::name): New member function.
1452 (objc_language::natural_name): New member function.
1453 * opencl-lang.c (opencl_language_data): Remove la_name and
1454 la_natural_name initializers.
1455 (opencl_language::name): New member function.
1456 (opencl_language::natural_name): New member function.
1457 * p-lang.c (pascal_language_data): Remove la_name and
1458 la_natural_name initializers.
1459 (pascal_language::name): New member function.
1460 (pascal_language::natural_name): New member function.
1461 * rust-lang.c (rust_language_data): Remove la_name and
1462 la_natural_name initializers.
1463 (rust_language::name): New member function.
1464 (rust_language::natural_name): New member function.
1465 * symtab.c (lookup_language_this): Update call to
1466 language_defn::name.
1467
1468 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1469
1470 * ada-lang.c (ada_language_data): Remove la_name_of_this
1471 initializer.
1472 * ax-gdb.c (gen_expr): Update call to name_of_this.
1473 * c-exp.y (classify_name): Likewise.
1474 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
1475 (cplus_language_data): Likewise.
1476 (cplus_language::name_of_this): New member function.
1477 (asm_language_data): Remove la_name_of_this initializer.
1478 (minimal_language_data): Likewise.
1479 * d-lang.c (d_language_data): Likewise.
1480 (d_language::name_of_this): New member function.
1481 * expprint.c (print_subexp_standard): Update call to name_of_this.
1482 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
1483 * go-lang.c (go_language_data): Likewise.
1484 * language.c (unknown_language_data): Likewise.
1485 (unknown_language::name_of_this): New member function.
1486 (auto_language_data): Remove la_name_of_this initializer.
1487 (auto_language::name_of_this): New member function.
1488 * language.h (language_data): Delete la_name_of_this member
1489 variable.
1490 (language_defn::name_of_this): New member function.
1491 * m2-lang.c (m2_language_data): Remove la_name_of_this
1492 initializer.
1493 * objc-lang.c (objc_language_data): Likewise.
1494 (objc_language::name_of_this): New member function.
1495 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
1496 initializer.
1497 * p-lang.c (pascal_language_data): Likewise.
1498 (pascal_language::name_of_this): New member function.
1499 * rust-lang.c (rust_language_data): Remove la_name_of_this
1500 initializer.
1501 * symtab.c (lookup_language_this): Update call to name_of_this.
1502 (lookup_symbol_aux): Likewise.
1503 * valops.c (value_of_this): Likewise.
1504
1505 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1506
1507 * ada-lang.c (ada_language_data): Remove
1508 la_struct_too_deep_ellipsis initializer.
1509 (ada_language::struct_too_deep_ellipsis): New member function.
1510 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
1511 initializer.
1512 (cplus_language_data): Likewise.
1513 (asm_language_data): Likewise.
1514 (minimal_language_data): Likewise.
1515 * cp-valprint.c (cp_print_value): Update call to
1516 struct_too_deep_ellipsis.
1517 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
1518 initializer.
1519 * f-lang.c (f_language_data): Likewise.
1520 (f_language::struct_too_deep_ellipsis): New member function.
1521 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
1522 initializer.
1523 * language.c (unknown_language_data): Likewise.
1524 (auto_language_data): Likewise.
1525 * language.h (language_data): Delete la_struct_too_deep_ellipsis
1526 member variable.
1527 (language_defn::struct_too_deep_ellipsis): New member function.
1528 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
1529 initializer.Q
1530 * objc-lang.c (objc_language_data): Likewise.
1531 * opencl-lang.c (opencl_language_data): Likewise.
1532 * p-lang.c (pascal_language_data): Likewise.
1533 * rust-lang.c (rust_language_data): Likewise.
1534 * valprint.c (val_print_check_max_depth): Update call to
1535 struct_too_deep_ellipsis.
1536
1537 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
1538
1539 * MAINTAINERS (Write After Approval): Add myself.
1540
1541 2020-09-15 Tom Tromey <tom@tromey.com>
1542
1543 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
1544 Remove.
1545
1546 2020-09-15 Tom Tromey <tom@tromey.com>
1547
1548 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
1549 and TYPE_CODE_METHODPTR cases.
1550 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
1551 (c_value_print_inner): Update.
1552 * valprint.c (generic_value_print_memberptr): New function, from
1553 c_value_print_memberptr.
1554 (generic_value_print): Use it. Call cplus_print_method_ptr.
1555
1556 2020-09-15 Tom Tromey <tromey@adacore.com>
1557
1558 * python/python-internal.h (PyInt_FromLong): Remove define.
1559 * python/py-value.c (convert_value_from_python): Use
1560 gdb_py_object_from_longest.
1561 * python/py-type.c (typy_get_code): Use
1562 gdb_py_object_from_longest.
1563 * python/py-symtab.c (salpy_get_line): Use
1564 gdb_py_object_from_longest.
1565 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
1566 gdb_py_object_from_longest.
1567 * python/py-record.c (recpy_gap_reason_code): Use
1568 gdb_py_object_from_longest.
1569 * python/py-record-btrace.c (recpy_bt_insn_size)
1570 (recpy_bt_func_level, btpy_list_count): Use
1571 gdb_py_object_from_longest.
1572 * python/py-infthread.c (gdbpy_create_ptid_object): Use
1573 gdb_py_object_from_longest. Fix error handling.
1574 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
1575 gdb_py_object_from_longest.
1576 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
1577 gdb_py_object_from_longest.
1578 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
1579 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
1580 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
1581
1582 2020-09-15 Tom Tromey <tromey@adacore.com>
1583
1584 * python/python.c (gdbpy_parameter_value): Use
1585 gdb_py_object_from_ulongest.
1586
1587 2020-09-15 Tom Tromey <tromey@adacore.com>
1588
1589 * python/py-infevents.c (create_register_changed_event_object):
1590 Use gdb_py_object_from_longest.
1591 * python/py-exitedevent.c (create_exited_event_object): Use
1592 gdb_py_object_from_longest.
1593
1594 2020-09-15 Tom Tromey <tromey@adacore.com>
1595
1596 * python/python.c (gdbpy_parameter_value): Use
1597 gdb_py_object_from_longest.
1598 * python/py-type.c (convert_field, typy_range): Use
1599 gdb_py_object_from_longest.
1600 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
1601 gdb_py_object_from_longest.
1602 * python/py-lazy-string.c (stpy_get_length): Use
1603 gdb_py_object_from_longest.
1604 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
1605 gdb_py_object_from_longest.
1606 * python/py-infevents.c (create_memory_changed_event_object): Use
1607 gdb_py_object_from_longest.
1608 * python/py-inferior.c (infpy_get_num): Use
1609 gdb_py_object_from_longest.
1610 (infpy_get_pid): Likewise.
1611
1612 2020-09-15 Tom Tromey <tromey@adacore.com>
1613
1614 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
1615 defines.
1616 * python/py-value.c (valpy_long): Use
1617 gdb_py_object_from_ulongest.
1618 * python/py-symtab.c (salpy_get_pc): Use
1619 gdb_py_object_from_ulongest.
1620 (salpy_get_last): Likewise.
1621 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
1622 gdb_py_object_from_ulongest.
1623 * python/py-lazy-string.c (stpy_get_address): Use
1624 gdb_py_object_from_ulongest.
1625 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
1626 * python/py-arch.c (archpy_disassemble): Use
1627 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
1628 error handling.
1629
1630 2020-09-15 Tom Tromey <tromey@adacore.com>
1631
1632 * python/python-internal.h (gdb_py_long_from_longest): Remove
1633 defines.
1634 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
1635 * python/py-type.c (convert_field, typy_get_sizeof): Use
1636 gdb_py_object_from_longest.
1637 * python/py-record-btrace.c (btpy_list_index): Use
1638 gdb_py_object_from_longest.
1639
1640 2020-09-15 Tom Tromey <tromey@adacore.com>
1641
1642 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
1643 * python/py-record.c (recpy_element_number): Use
1644 gdb_py_object_from_longest.
1645 (recpy_gap_number): Likewise.
1646
1647 2020-09-15 Tom Tromey <tromey@adacore.com>
1648
1649 * top.c (ui::ui): Update.
1650 (highest_ui_num): Remove.
1651 * top.h (struct ui) <num>: Remove.
1652
1653 2020-09-15 Tom Tromey <tromey@adacore.com>
1654
1655 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
1656 * ui-style.c (ansi_regex_text): Now array.
1657 * rust-exp.y (number_regex_text): Now array.
1658 * linespec.c (linespec_quote_characters): Now array.
1659 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
1660 Now arrays.
1661
1662 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1663
1664 * debuginfod-support.c (debuginfod_client_deleter): New.
1665 (debuginfod_client_up): New.
1666 (debuginfod_init): Return debuginfod_client_up.
1667 (debuginfod_source_query): Adjust.
1668 (debuginfod_debuginfo_query): Adjust.
1669
1670 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1671
1672 * debuginfod-support.c (debuginfod_source_query): Use
1673 make_unique_xstrdup.
1674
1675 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1676
1677 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
1678 with `type::instance_flags`.
1679
1680 2020-09-14 Michael Mullin <masmullin@gmail.com>
1681
1682 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
1683 Remove baton parameter.
1684
1685 2020-09-14 Pedro Alves <pedro@palves.net>
1686
1687 * Makefile.in (SELFTESTS_SRCS): Add
1688 unittests/enum-flags-selftests.c.
1689 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
1690 btrace_function_flags instead of enum btrace_function_flag.
1691 * compile/compile-c-types.c (convert_qualified): Use
1692 enum_flags::raw.
1693 * compile/compile-cplus-symbols.c (convert_one_symbol)
1694 (convert_symbol_bmsym):
1695 * compile/compile-cplus-types.c (compile_cplus_convert_method)
1696 (compile_cplus_convert_struct_or_union_methods)
1697 (compile_cplus_instance::convert_qualified_base):
1698 * go-exp.y (parse_string_or_char): Add cast to int.
1699 * unittests/enum-flags-selftests.c: New file.
1700 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
1701 type to btrace_thread_flags from btrace_thread_flag.
1702 (record_btrace_cancel_resume, record_btrace_step_thread): Change
1703 local's type to btrace_thread_flags from btrace_thread_flag. Add
1704 cast in DEBUG call.
1705
1706 2020-09-14 Pedro Alves <pedro@palves.net>
1707
1708 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
1709 * gdbtypes.c (address_space_name_to_int): Rename to ...
1710 (address_space_name_to_type_instance_flags): ... this.
1711 (address_space_int_to_name): Rename to ...
1712 (address_space_type_instance_flags_to_name): ... this.
1713 * gdbtypes.h (address_space_name_to_int): Rename to ...
1714 (address_space_name_to_type_instance_flags): ... this.
1715 (address_space_int_to_name): Rename to ...
1716 (address_space_type_instance_flags_to_name): ... this.
1717 * type-stack.c (type_stack::insert): Adjust to rename.
1718 * type-stack.h (type_stack::insert): Likewise.
1719
1720 2020-09-14 Pedro Alves <pedro@palves.net>
1721 Andrew Burgess <andrew.burgess@embecosm.com>
1722
1723 * avr-tdep.c (avr_address_class_type_flags): Return
1724 type_instance_flags.
1725 (avr_address_class_type_flags_to_name): Take a
1726 type_instance_flags.
1727 (avr_address_class_name_to_type_flags): Return bool and take a
1728 type_instance_flags.
1729 * d-lang.c (build_d_types): Use type::set_instance_flags.
1730 * ft32-tdep.c (ft32_address_class_type_flags): Return
1731 type_instance_flags.
1732 (ft32_address_class_type_flags_to_name): Take a
1733 type_instance_flags.
1734 (ft32_address_class_name_to_type_flags): Return bool and take a
1735 type_instance_flags.
1736 (ft32_gdbarch_init): Use type::set_instance_flags.
1737 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
1738 * gdbarch.h, gdbarch.c: Regenerate.
1739 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
1740 (address_class_name_to_type_flags): Use type_instance_flags and
1741 bool.
1742 * gdbtypes.c (address_space_name_to_int)
1743 (address_space_int_to_name, make_qualified_type): Use
1744 type_instance_flags.
1745 (make_qualified_type): Use type_instance_flags and
1746 type::set_instance_flags.
1747 (make_type_with_address_space, make_cv_type, make_vector_type)
1748 (check_typedef): Use type_instance_flags.
1749 (recursive_dump_type): Cast type_instance_flags to unsigned for
1750 printing.
1751 (copy_type_recursive): Use type::set_instance_flags.
1752 (gdbtypes_post_init): Use type::set_instance_flags.
1753 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
1754 <m_instance_flags>: ... this.
1755 <instance_flags, set_instance_flags>: New methods.
1756 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
1757 (SET_TYPE_INSTANCE_FLAGS): New.
1758 (address_space_name_to_int, address_space_int_to_name)
1759 (make_type_with_address_space): Pass flags using
1760 type_instance_flags instead of int.
1761 * stabsread.c (cleanup_undefined_types_noname): Use
1762 type::set_instance_flags.
1763 * s390-tdep.c (s390_address_class_type_flags): Return
1764 type_instance_flags.
1765 (s390_address_class_type_flags_to_name): Take a
1766 type_instance_flags.
1767 (s390_address_class_name_to_type_flags): Return bool and take a
1768 type_instance_flags.
1769 * type-stack.c (type_stack::follow_types): Use
1770 type_instance_flags.
1771 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
1772
1773 2020-09-14 Tom Tromey <tromey@adacore.com>
1774
1775 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
1776 * x86-tdep.c (x86_is_thunk_register_name)
1777 (x86_in_indirect_branch_thunk): Update.
1778 * sparc64-tdep.c (sparc64_fpu_register_names)
1779 (sparc64_cp0_register_names, sparc64_register_names)
1780 (sparc64_pseudo_register_names): Now const.
1781 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
1782 cp0_registers_num>: Now const.
1783 * sparc-tdep.c (sparc_core_register_names)
1784 (sparc32_fpu_register_names, sparc32_cp0_register_names)
1785 (sparc32_pseudo_register_names): Now const.
1786 (validate_tdesc_registers): Update.
1787 * rust-lang.c (rust_extensions): Now const.
1788 * p-lang.c (p_extensions): Now const.
1789 * objc-lang.c (objc_extensions): Now const.
1790 * nto-tdep.c (nto_thread_state_str): Now const.
1791 * moxie-tdep.c (moxie_register_names): Now const.
1792 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
1793 Now const.
1794 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
1795 (mips_linux_reg_names): Now const.
1796 (mips_gdbarch_init): Update.
1797 * microblaze-tdep.c (microblaze_register_names): Now const.
1798 * m68k-tdep.c (m68k_register_names): Now const.
1799 * m32r-tdep.c (m32r_register_names): Now const.
1800 * ia64-tdep.c (ia64_register_names): Now const.
1801 * i386-tdep.h (struct gdbarch_tdep) <register_names,
1802 ymmh_register_names, ymm16h_regnum, mpx_register_names,
1803 k_register_names, zmmh_register_names, xmm_avx512_register_names,
1804 ymm_avx512_register_names, pkeys_register_names>: Now const.
1805 * i386-tdep.c (i386_register_names, i386_zmm_names)
1806 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
1807 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
1808 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
1809 * f-lang.c (f_extensions): Now const.
1810 * d-lang.c (d_extensions): Now const.
1811 * csky-tdep.c (csky_register_names): Now const.
1812 * charset.c (default_charset_names, charset_enum): Now const.
1813 (_initialize_charset): Update.
1814 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
1815 const.
1816 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
1817 (bsd_uthread_solib_loaded): Update.
1818 (bsd_uthread_state): Now const.
1819 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
1820 (amd64_ymm_avx512_names, amd64_ymmh_names)
1821 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
1822 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
1823 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
1824 (amd64_dword_names): Now const.
1825 * agent.c (can_use_agent_enum): Now const.
1826 * ada-tasks.c (task_states, long_task_states): Now const.
1827 * ada-lang.c (known_runtime_file_name_patterns)
1828 (known_auxiliary_function_name_patterns, attribute_names)
1829 (standard_exc, ada_extensions): Now const.
1830
1831 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1832
1833 * bcache.h (struct bcache) <bcache>: Remove constructor.
1834 <m_hash_function, m_compare_function>: Remove.
1835 <~bcache>: Make virtual.
1836 <compare>: Remove static method, introduce virtual method.
1837 <default_hash>: Remove.
1838 <hash>: New virtual method.
1839 * bcache.c (bcache::expand_hash_table): Update.
1840 (bcache::insert): Update.
1841 (bcache::hash): New.
1842 (bcache::compare): Update comment and parameter names.
1843 * gdbtypes.c (types_deeply_equal): Update.
1844 * psymtab.h (struct psymbol_bcache): New struct.
1845 (class psymtab_storage) <psymtab_storage>: Make default.
1846 <psymbol_cache>: Change type to psymbol_bcache.
1847 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
1848 (psymbol_hash): Change to...
1849 (psymbol_bcache::hash): ... this.
1850 (psymbol_compare): Change to...
1851 (psymbol_bcache::compare): ... this.
1852
1853 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1854
1855 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
1856 checking for initial lwp.
1857
1858 2020-09-14 Tom Tromey <tromey@adacore.com>
1859
1860 * m68k-tdep.c (m68k_extract_return_value): Use
1861 pointer_result_regnum.
1862 (m68k_store_return_value): Likewise.
1863 (m68k_reg_struct_return_p): Handle vectors and arrays.
1864 (m68k_return_value): Handle arrays.
1865 (m68k_svr4_return_value): Fix single-element aggregate handling.
1866 Handle long double. Adjust for embedded ABI.
1867 (m68k_svr4_init_abi): Set pointer_result_regnum.
1868 (m68k_embedded_init_abi): New function.
1869 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
1870 (m68k_osabi_sniffer): New function.
1871 (_initialize_m68k_tdep): Register osabi sniffer.
1872 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
1873 member.
1874
1875 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1876
1877 * xml-support.c (xml_fetch_content_from_file): Replace xfree
1878 with gdb::unique_xmalloc_ptr<char>.
1879
1880 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1881
1882 * xml-support.h (xml_fetch_another): Change type to be a
1883 function_view.
1884 (xml_process_xincludes): Remove baton parameter.
1885 (xml_fetch_content_from_file): Change baton parameter to
1886 dirname.
1887 * xml-support.c (struct xinclude_parsing_data)
1888 <xinclude_parsing_data>: Remove baton parameter.
1889 <fetcher_baton>: Remove.
1890 (xinclude_start_include): Adjust.
1891 (xml_process_xincludes): Adjust.
1892 (xml_fetch_content_from_file): Replace baton parameter with
1893 dirname.
1894 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
1895 (xml_init_syscalls_info): Use a lambda.
1896 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
1897 (file_read_description_xml): Use a lambda.
1898 (fetch_available_features_from_target): Change baton parameter
1899 to target_ops.
1900 (target_read_description_xml): Use a lambda.
1901 (target_fetch_description_xml): Use a lambda.
1902 (string_read_description_xml): Update.
1903
1904 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1905
1906 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
1907 uses with type::endianity_is_not_default.
1908
1909 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1910
1911 * gdbtypes.h (struct type) <endianity_is_not_default,
1912 set_endianity_is_not_default>: New methods.
1913 (TYPE_ENDIANITY_NOT_DEFAULT): Use
1914 type::endianity_is_not_default, change all write call sites to
1915 use type::set_endianity_is_not_default.
1916
1917 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1918
1919 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
1920 uses with type::is_fixed_instance.
1921
1922 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1923
1924 * gdbtypes.h (struct type) <is_fixed_instance,
1925 set_is_fixed_instance>: New methods.
1926 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
1927 write call sites to use type::set_is_fixed_instance.
1928
1929 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1930
1931 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
1932 uses with type::is_gnu_ifunc.
1933
1934 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1935
1936 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
1937 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
1938 use type::set_is_gnu_ifunc.
1939
1940 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1941
1942 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
1943 uses with type::stub_is_supported.
1944
1945 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1946
1947 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
1948 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
1949 use type::set_stub_is_supported.
1950
1951 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1952
1953 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
1954 uses with type::is_vector.
1955
1956 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1957
1958 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
1959 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
1960 use type::set_is_vector.
1961
1962 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1963
1964 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
1965 uses with type::has_varargs.
1966
1967 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1968
1969 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
1970 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
1971 use type::set_has_varargs.
1972
1973 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1974
1975 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
1976 uses with type::is_prototyped.
1977
1978 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1979
1980 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
1981 New methods.
1982 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
1983 call sites to use type::set_is_prototyped.
1984
1985 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1986
1987 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
1988 uses with type::target_is_stub.
1989
1990 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1991
1992 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
1993 New methods.
1994 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
1995 sites to use type::set_target_is_stub.
1996
1997 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1998
1999 * gdbtypes.h (TYPE_STUB): Remove, replace all
2000 uses with type::is_stub.
2001
2002 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2003
2004 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
2005 (TYPE_STUB): Use type::is_stub, change all write call sites to
2006 use type::set_is_stub.
2007
2008 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2009
2010 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
2011 type::has_no_signedness.
2012
2013 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2014
2015 * gdbtypes.h (struct type) <has_no_signedness,
2016 set_has_no_signedness>: New methods.
2017 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
2018 call sites to use type::set_has_no_signedness.
2019
2020 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2021
2022 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
2023 type::is_unsigned.
2024
2025 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2026
2027 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
2028 methods.
2029 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
2030 sites to use type::set_is_unsigned.
2031
2032 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
2033 Adam Renquinha <arenquinha@cimeq.qc.ca>
2034
2035 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
2036 pointer and stack frame offset when unwinding.
2037
2038 2020-09-13 Pedro Alves <pedro@palves.net>
2039
2040 * NEWS: Document "-break-insert --qualified".
2041 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
2042
2043 2020-09-13 Pedro Alves <pedro@palves.net>
2044
2045 * linespec.c (classify_mtype, compare_msyms): Delete.
2046 (search_minsyms_for_name): Remove classification logic. Instead
2047 filter out trampoline symbols if we also found an external
2048 function of the same name.
2049
2050 2020-09-13 Joel Brobecker <brobecker@adacore.com>
2051
2052 * NEWS: Create a new section for the next release branch.
2053 Rename the section of the current branch, now that it has
2054 been cut.
2055
2056 2020-09-13 Joel Brobecker <brobecker@adacore.com>
2057
2058 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
2059 * version.in: Bump version to 11.0.50.DATE-git.
2060
2061 2020-09-12 Joel Brobecker <brobecker@adacore.com>
2062
2063 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
2064
2065 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
2066 Felix Willgerodt <Felix.Willgerodt@intel.com>
2067
2068 * gdbarch.sh: Added bfloat16 type.
2069 * gdbarch.c: Regenerated.
2070 * gdbarch.h: Regenerated.
2071 * gdbtypes.c (floatformats_bfloat16): New struct.
2072 (gdbtypes_post_init): Add builtin_bfloat16.
2073 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
2074 (floatformats_bfloat16): New struct.
2075 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
2076 (i386_ymm_type): Add field "v16_bfloat16"
2077 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
2078 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
2079 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
2080 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
2081 * features/i386/64bit-avx512.xml: Add bfloat16 type.
2082 * features/i386/64bit-avx512.c: Regenerated.
2083 * features/i386/64bit-sse.xml: Add bfloat16 type.
2084 * features/i386/64bit-sse.c: Regenerated.
2085
2086 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
2087
2088 * i386-tdep.c (i386_zmm_type): Fix field names.
2089 (i386_ymm_type): Fix field names.
2090
2091 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2092
2093 * breakpoint.c: Fix typo in the help message of the
2094 "set breakpoint condition-evaluation" command.
2095
2096 2020-09-10 Kamil Rytarowski <n54@gmx.com>
2097
2098 * nbsd-nat.c: Include "nat/netbsd-nat.h".
2099 * (nbsd_nat_target::pid_to_exec_file)
2100 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
2101 (nbsd_nat_target::post_startup_inferior)
2102 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
2103 (nbsd_add_threads): Switch local code to common gdb/nat functions.
2104 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
2105 * (nbsd_thread_lister): Remove.
2106
2107 2020-09-10 Kamil Rytarowski <n54@gmx.com>
2108
2109 * fork-inferior.c (startup_inferior): Avoid double free.
2110
2111 2020-09-10 Kamil Rytarowski <n54@gmx.com>
2112
2113 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
2114 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
2115
2116 2020-09-10 Kamil Rytarowski <n54@gmx.com>
2117
2118 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
2119 * netbsd-nat.c: Include <sys/ptrace.h>.
2120 * (netbsd_nat::enable_proc_events): Add.
2121
2122 2020-09-10 Kamil Rytarowski <n54@gmx.com>
2123
2124 * netbsd-nat.h: Include "gdbsupport/function-view.h".
2125 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
2126 (netbsd_nat::for_each_thread): Add.
2127 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
2128 "gdbsupport/common-debug.h".
2129 * (netbsd_nat::netbsd_thread_lister)
2130 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
2131 (netbsd_nat::for_each_thread): Add.
2132
2133 2020-09-10 Kamil Rytarowski <n54@gmx.com>
2134
2135 * netbsd-nat.h: Include <unistd.h>.
2136 * (netbsd_nat::pid_to_exec_file): Add.
2137 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
2138 * (netbsd_nat::pid_to_exec_file) Add.
2139
2140 2020-09-10 Kamil Rytarowski <n54@gmx.com>
2141
2142 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
2143
2144 2020-09-10 Kamil Rytarowski <n54@gmx.com>
2145
2146 * netbsd-nat.h: New file.
2147 * netbsd-nat.c: Likewise.
2148
2149 2020-09-09 Tom Tromey <tromey@adacore.com>
2150
2151 * ada-lang.c (remove_extra_symbols): Do not increment when
2152 removing an element
2153
2154 2020-09-08 Tom Tromey <tromey@adacore.com>
2155
2156 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
2157
2158 2020-09-08 Tom Tromey <tromey@adacore.com>
2159
2160 PR win32/25302:
2161 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
2162 (gdb_bfd_init_data): New function.
2163 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
2164
2165 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2166
2167 * infrun.c (fetch_inferior_event): Use
2168 `switch_to_target_no_thread` to switch the target.
2169
2170 2020-09-06 Tom Tromey <tom@tromey.com>
2171
2172 * symfile.h (dwarf2_free_objfile): Don't declare.
2173
2174 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2175
2176 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
2177 to match 16 byte real/complex type generated by Flang compiler.
2178
2179 2020-09-03 Tom de Vries <tdevries@suse.de>
2180
2181 PR breakpoint/26546
2182 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
2183 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
2184
2185 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
2186
2187 * maint.c (index_digits): New function.
2188 (struct maint_print_section_data): Remove.
2189 (print_bfd_section_info): Remove print_data parameter, add arg
2190 and index_digits.
2191 (print_objfile_section_info): Likewise.
2192 (print_bfd_section_info_maybe_relocated): Likewise (plus
2193 objfile).
2194 (maintenance_info_sections): Adjust calls.
2195
2196 2020-09-02 Tom Tromey <tromey@adacore.com>
2197
2198 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
2199 for null pointers.
2200 (ada_varobj_adjust_for_child_access): Special-case null pointers.
2201
2202 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
2203
2204 * bcache.h (struct bcache) <insert>: Change type of `added` to
2205 pointer to bool.
2206 * bcache.c (bcache::insert): Likewise.
2207 * gdbtypes.c (check_types_worklist): Adjust.
2208 * psymtab.c (add_psymbol_to_bcache): Adjust.
2209
2210 2020-08-31 Kevin Buettner <kevinb@redhat.com>
2211
2212 * corelow.c (unordered_set): Include.
2213 (class core_target): Add field 'm_core_unavailable_mappings'.
2214 (core_target::build_file_mappings): Print only one warning
2215 per inaccessible file. Add unavailable/broken mappings
2216 to m_core_unavailable_mappings.
2217 (core_target::xfer_partial): Call...
2218 (core_target::xfer_memory_via_mappings): New method.
2219
2220 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
2221
2222 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
2223 type to bool.
2224
2225 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
2226
2227 * dwarf2/read.c (struct field_info): Fix indentation.
2228
2229 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
2230
2231 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
2232 ordering in comment.
2233 * frame.c (frame_id_eq): Fix indentation.
2234
2235 2020-08-31 Scott Linder <scott@scottlinder.com>
2236 Simon Marchi <simon.marchi@efficios.com>
2237
2238 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
2239 inline frame ids in outer frame.
2240
2241 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
2242
2243 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
2244 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
2245 (outer_frame_id): Use FID_STACK_OUTER instead of
2246 FID_STACK_INVALID.
2247 (frame_id_p): Don't check for outer_frame_id.
2248
2249 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
2250
2251 * frame-unwind.c (frame_unwind_got_optimized): Don't set
2252 regnum/frame in value. Call allocate_value_lazy.
2253 * frame.c (frame_unwind_register_value): Use
2254 val_print_not_saved.
2255
2256 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
2257
2258 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
2259
2260 2020-08-29 Pedro Alves <pedro@palves.net>
2261
2262 * progspace.c (print_program_space): Use all_inferiors. Switch to
2263 the inferior before calling target_pid_to_str.
2264
2265 2020-08-28 Tom Tromey <tom@tromey.com>
2266
2267 * xcoffread.c (xcoff_end_psymtab): Update comment.
2268 * dbxread.c (dbx_end_psymtab): Update comment.
2269
2270 2020-08-28 Tom de Vries <tdevries@suse.de>
2271
2272 PR breakpoint/26544
2273 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
2274 event_location.
2275 (create_breakpoint): Same.
2276 (base_breakpoint_decode_location): Same.
2277 (bkpt_create_sals_from_location): Same.
2278 (bkpt_decode_location): Same.
2279 (bkpt_probe_create_sals_from_location): Same.
2280 (bkpt_probe_decode_location): Same.
2281 (tracepoint_create_sals_from_location): Same.
2282 (tracepoint_decode_location): Same.
2283 (tracepoint_probe_decode_location): Same.
2284 (strace_marker_create_sals_from_location): Same.
2285 (strace_marker_decode_location): Same.
2286 (create_sals_from_location_default): Same.
2287 (decode_location_default): Same.
2288 * breakpoint.h (struct breakpoint_ops): Same.
2289 (create_breakpoint): Same.
2290 * linespec.h (decode_line_full): Same.
2291 * linespec.c (decode_line_full): Same. Throw error if
2292 result.size () == 0.
2293
2294 2020-08-27 Pedro Alves <pedro@palves.net>
2295
2296 PR gdb/26524
2297 * breakpoint.c (until_break_fsm) <location_breakpoint,
2298 caller_breakpoint>: Delete fields.
2299 <breakpoints>: New field.
2300 <until_break_fsm>: Adjust to save a breakpoint vector instead of
2301 two individual breakpoints.
2302 (until_break_fsm::should_stop): Loop over breakpoints in the
2303 breakpoint vector.
2304 (until_break_fsm::clean_up): Adjust to clear the breakpoints
2305 vector.
2306 (until_break_command): Handle location expanding into multiple
2307 sals.
2308
2309 2020-08-27 Pedro Alves <pedro@palves.net>
2310
2311 PR gdb/26523
2312 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
2313 bp_until breakpoints user-specified locations. Update intro
2314 comment.
2315
2316 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
2317
2318 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
2319 gdb_bfd_sections): New.
2320 * maint.c (print_bfd_section_info): Change param type to
2321 maint_print_section_data.
2322 (print_objfile_section_info): Likewise.
2323 (print_bfd_section_info_maybe_relocated): Likewise.
2324 (maintenance_info_sections): Use gdb_bfd_sections.
2325
2326 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
2327
2328 * MAINTAINERS: Add ARC target and maintainer.
2329
2330 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
2331
2332 * configure.tgt: ARC support for GNU/Linux.
2333 * Makefile.in (ALL_TARGET_OBJS): Likewise.
2334 * arc-linux-tdep.c: New file.
2335 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
2336 * arc-tdep.c (arc_write_pc): Use it.
2337
2338 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
2339
2340 * arc-tdep.c (arc_check_for_hardware_loop): New.
2341 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
2342
2343 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
2344
2345 * arc-tdep.h: Include "gdbarch.h".
2346
2347 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
2348
2349 * arch/arc.h
2350 (arc_gdbarch_features): New class to stir the selection of target XML.
2351 (arc_create_target_description): Use FEATURES to choose XML target.
2352 (arc_lookup_target_description): Use arc_create_target_description
2353 to create _new_ target descriptions or return the already created
2354 ones if the FEATURES is the same.
2355 * arch/arc.c: Implementation of prototypes described above.
2356 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
2357 (arc_gdbarch_features_init): Initialize the FEATURES struct.
2358 * arc-tdep.c (*_feature_name): Make feature names consistent.
2359 (arc_register_feature): A new struct to hold information about
2360 registers of a particular target/feature.
2361 (arc_check_tdesc_feature): Check if XML provides registers in
2362 compliance with ARC_REGISTER_FEATURE structs.
2363 (arc_update_acc_reg_names): Add aliases for r58 and r59.
2364 (determine_*_reg_feature_set): Which feature name to look for.
2365 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
2366 (mach_type_to_arc_isa): Convert from a set of binutils machine types
2367 to expected ISA enums to be used in arc_gdbarch_features structs.
2368 * features/Makefile (FEATURE_XMLFILES): Add new files.
2369 * gdb/features/arc/v1-aux.c: New file.
2370 * gdb/features/arc/v1-aux.xml: Likewise.
2371 * gdb/features/arc/v1-core.c: Likewise.
2372 * gdb/features/arc/v1-core.xml: Likewise.
2373 * gdb/features/arc/v2-aux.c: Likewise.
2374 * gdb/features/arc/v2-aux.xml: Likewise.
2375 * gdb/features/arc/v2-core.c: Likewise.
2376 * gdb/features/arc/v2-core.xml: Likewise.
2377 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
2378
2379 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
2380 Andrew Burgess <andrew.burgess@embecosm.com>
2381
2382 PR m2/26372
2383 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
2384 an assert. Remove single element array indexing pattern as the
2385 MULTI_SUBSCRIPT support will handle this case too.
2386
2387 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
2388
2389 * value.h (valprint_check_validity): Move declaration from
2390 here...
2391 * valprint.h (valprint_check_validity): ... to here.
2392
2393 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
2394
2395 * debug.h: New file.
2396 * debug.c (debug_prefixed_vprintf): New function.
2397 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
2398 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
2399
2400 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
2401
2402 * infrun.h (infrun_debug_printf_1): New function declaration.
2403 (infrun_debug_printf): New macro.
2404 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
2405 throughout.
2406 (infrun_debug_printf): New function.
2407 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
2408 (handle_jit_event): Likewise.
2409
2410 2020-08-21 Mark Wielaard <mark@klomp.org>
2411
2412 * ada-lex.l: Extend register warnings diagnostics comment for g++.
2413
2414 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
2415
2416 * frame.c (enum class frame_id_status): New.
2417 (struct frame_info) <this_id::p>: Change type to frame_id_status.
2418 (fprintf_frame): Update.
2419 (compute_frame_id): Set frame id status to "computing" on entry.
2420 Set it back to "not_computed" on failure and to "computed" on
2421 success.
2422 (get_frame_id): Assert the frame id is not being computed.
2423 (create_sentinel_frame): Use frame_id_status::COMPUTED.
2424 (create_new_frame): Likewise.
2425 (frame_cleanup_after_sniffer): Update assert.
2426
2427 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2428
2429 * regcache.c (pid_ptid_regcache_map): New type.
2430 (target_ptid_regcache_map): Remove.
2431 (target_pid_ptid_regcache_map): New type.
2432 (regcaches): Change type to target_pid_ptid_regcache_map.
2433 (get_thread_arch_aspace_regcache): Update.
2434 (regcache_thread_ptid_changed): Update, handle pid-like ptid
2435 case.
2436 (regcaches_size): Update.
2437 (regcache_count): Update.
2438 (registers_changed_ptid_target_pid_test): New.
2439 (_initialize_regcache): Register new test.
2440
2441 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2442
2443 * regcache.c (regcache_count): New.
2444 (struct regcache_test_data): New.
2445 (regcache_test_data_up): New.
2446 (populate_regcaches_for_test): New.
2447 (regcaches_test): Remove.
2448 (get_thread_arch_aspace_regcache_test): New.
2449 (registers_changed_ptid_all_test): New.
2450 (registers_changed_ptid_target_test): New.
2451 (registers_changed_ptid_target_ptid_test): New.
2452 (regcache_thread_ptid_changed): Remove regcache_count lambda.
2453 (_initialize_regcache): Register new tests.
2454
2455 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2456
2457 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
2458 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
2459 gdbarch and aspace parameter. Use current inferior's aspace.
2460 Validate regcache's arch value.
2461 (regcaches_test): Update.
2462
2463 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2464
2465 * regcache.c (regcaches_test): Call registers_changed.
2466
2467 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2468
2469 * infrun.c (process_event_stop_test): Fix typo "breapoint".
2470
2471 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2472
2473 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
2474 to find the end of prologue for flang compiled binaries.
2475 * arm-tdep.c (arm_skip_prologue): Likewise.
2476 * i386-tdep.c (i386_skip_prologue): Likewise.
2477 * producer.c (producer_is_llvm): New function.
2478 (producer_parsing_tests): Added new tests for clang/flang.
2479 * producer.h (producer_is_llvm): New declaration.
2480
2481 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
2482
2483 * linux-nat.c (linux_nat_debug_printf): New function.
2484 (linux_nat_debug_printf_1): New macro. Use throughout the file.
2485
2486 2020-08-18 Aaron Merey <amerey@redhat.com>
2487
2488 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
2489 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
2490 (CLIBS): Add DEBUGINFOD_LIBS.
2491
2492 2020-08-17 Sergei Trofimovich <siarheit@google.com>
2493
2494 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
2495 'gdbarch_num_regs'.
2496
2497 2020-08-17 Tom Tromey <tromey@adacore.com>
2498
2499 * ada-varobj.c (ada_varobj_decode_var): Handle case where
2500 ada_get_decoded_value returns NULL.
2501
2502 2020-08-17 Tom Tromey <tromey@adacore.com>
2503
2504 * python/py-inferior.c (infpy_search_memory): Use
2505 gdb_py_object_from_ulongest.
2506 * python/py-infevents.c (create_inferior_call_event_object)
2507 (create_memory_changed_event_object): Use
2508 gdb_py_object_from_ulongest.
2509 * python/py-linetable.c (ltpy_entry_get_pc): Use
2510 gdb_py_object_from_ulongest.
2511
2512 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
2513
2514 * loc.c (class symbol_needs_eval_context): Fix indentation.
2515
2516 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
2517
2518 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
2519 bool.
2520
2521 2020-08-17 Tom de Vries <tdevries@suse.de>
2522
2523 PR gdb/26393
2524 * gdbtypes.c (dump_dynamic_prop): New function.
2525 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
2526
2527 2020-08-15 Tom de Vries <tdevries@suse.de>
2528
2529 PR backtrace/26390
2530 * stack.c (print_frame_args): Temporarily set the selected
2531 frame to FRAME while printing the frame's arguments.
2532
2533 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2534
2535 PR breakpoints/26385
2536 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
2537 Always clear watchpoint with PTRACE_SET_DEBUGREG.
2538
2539 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2540
2541 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
2542 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
2543 and >= to check return value instead of == -1 and != -1.
2544
2545 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
2546
2547 * utils.h (class gdb_argv) <as_array_view>: New method.
2548 * utils.c (gdb_argv_as_array_view_test): New.
2549 (_initialize_utils): Register selftest.
2550 * maint.c (maintenance_selftest): Use the new method.
2551
2552 2020-08-13 Kamil Rytarowski <n54@gmx.com>
2553
2554 * target.h (supports_dumpcore, dumpcore): New
2555 function declarations.
2556 * target.c (supports_dumpcore, dumpcore): New
2557 functions.
2558 * target-delegates.c: Rebuild.
2559 * gcore.c (gcore_command): Use target_supports_dumpcore ()
2560 and target_dumpcore ().
2561
2562 2020-08-13 Aaron Merey <amerey@redhat.com>
2563
2564 * debuginfod-support.c: Replace global variables with user_data.
2565
2566 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
2567
2568 * maint.c (maintenance_selftest): Split args and pass array_view
2569 to run_tests.
2570
2571 2020-08-12 Luis Machado <luis.machado@linaro.org>
2572
2573 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
2574 type's length.
2575 Use %s and pulongest to print the length.
2576
2577 2020-08-12 Pedro Alves <palves@redhat.com>
2578
2579 * NEWS: Move "Multi-target debugging support" item to the
2580 "Changes since GDB 9" section.
2581
2582 2020-08-12 Pedro Alves <palves@redhat.com>
2583
2584 PR gdb/26336
2585 * progspace.c (program_space::remove_objfile): Invalidate the
2586 frame cache.
2587
2588 2020-08-11 Tom de Vries <tdevries@suse.de>
2589
2590 * MAINTAINERS: Mark ms1 as deleted.
2591
2592 2020-08-10 Luis Machado <luis.machado@linaro.org>
2593
2594 PR gdb/26310
2595
2596 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
2597 act accordingly.
2598 (aarch64_analyze_prologue_test): Add more unit tests to exercise
2599 movz/str/stur/stp skipping behavior.
2600
2601 2020-08-10 Luis Machado <luis.machado@linaro.org>
2602
2603 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
2604 struct user_sve_header instead of struct sve_context.
2605
2606 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
2607
2608 * read.h (dwarf2_fetch_die_loc_sect_off,
2609 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
2610 `void *` parameter with function_view.
2611 * read.c (dwarf2_fetch_die_loc_sect_off,
2612 dwarf2_fetch_die_loc_cu_off): Likewise.
2613 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
2614 (per_cu_dwarf_call): Adjust.
2615 (get_frame_address_in_block_wrapper): Remove.
2616 (indirect_synthetic_pointer): Adjust.
2617 (get_ax_pc): Remove.
2618 (dwarf2_compile_expr_to_ax): Adjust.
2619
2620 2020-08-08 Tom de Vries <tdevries@suse.de>
2621
2622 PR build/26344
2623 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
2624 constructor.
2625 * regcache.c (get_thread_arch_aspace_regcache): Same.
2626
2627 2020-08-07 Tom Tromey <tromey@adacore.com>
2628
2629 * ravenscar-thread.c
2630 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
2631 New method.
2632 (ravenscar_thread_target::wait): Check
2633 runtime_initialized.
2634 (ravenscar_thread_target::prepare_to_store)
2635 (ravenscar_thread_target::stopped_by_sw_breakpoint)
2636 (ravenscar_thread_target::stopped_by_hw_breakpoint)
2637 (ravenscar_thread_target::stopped_by_watchpoint)
2638 (ravenscar_thread_target::stopped_data_address)
2639 (ravenscar_thread_target::core_of_thread): Use
2640 scoped_restore_current_thread and
2641 set_base_thread_from_ravenscar_task.
2642
2643 2020-08-07 Tom Tromey <tromey@adacore.com>
2644
2645 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
2646
2647 2020-08-07 Tom Tromey <tromey@adacore.com>
2648
2649 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
2650 update_inferior_ptid before update_thread_list.
2651 (temporarily_change_regcache_ptid): New class.
2652 (ravenscar_thread_target::fetch_registers)
2653 (ravenscar_thread_target::store_registers)
2654 (ravenscar_thread_target::prepare_to_store): Use base thread when
2655 forwarding operation.
2656
2657 2020-08-07 Tom Tromey <tromey@adacore.com>
2658
2659 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
2660 "is_pid" case.
2661
2662 2020-08-07 Tom Tromey <tromey@adacore.com>
2663
2664 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
2665 New methods.
2666 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
2667 first.
2668 (ravenscar_thread_target::add_thread): Rename from
2669 ravenscar_add_thread.
2670 (ravenscar_thread_target::update_thread_list): Use a lambda.
2671 (ravenscar_thread_target::xfer_partial): New method.
2672
2673 2020-08-07 Tom Tromey <tromey@adacore.com>
2674
2675 * ada-lang.h (ada_task_list_iterator_ftype): Now a
2676 gdb::function_view.
2677 (iterate_over_live_ada_tasks): Change type of argument.
2678 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
2679 of argument.
2680
2681 2020-08-07 Tom Tromey <tromey@adacore.com>
2682
2683 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
2684 Remove.
2685 (ravenscar_thread_target::extra_thread_info): Remove.
2686 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
2687 defer to target beneath for non-Ravenscar threads.
2688
2689 2020-08-07 Tom Tromey <tromey@adacore.com>
2690
2691 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
2692 get_base_thread_from_ravenscar_task>: Now methods.
2693 <m_cpu_map>: New member.
2694 (ravenscar_thread_target::get_thread_base_cpu): Rename from
2695 ravenscar_get_thread_base_cpu. Check m_cpu_map.
2696 (ravenscar_thread_target::task_is_currently_active): Update.
2697 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
2698 Now a method.
2699 (ravenscar_thread_target::add_active_thread): Put initial thread
2700 into the m_cpu_map.
2701
2702 2020-08-07 Tom Tromey <tromey@adacore.com>
2703
2704 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
2705 event_ptid.
2706
2707 2020-08-07 Tom Tromey <tromey@adacore.com>
2708
2709 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
2710 runtime_initialized.
2711
2712 2020-08-07 Tom Tromey <tromey@adacore.com>
2713
2714 * ravenscar-thread.c (ravenscar_thread_target): Don't call
2715 add_active_thread.
2716 (ravenscar_thread_target::add_active_thread): Now public.
2717 (ravenscar_inferior_created): Call add_active_thread after pushing
2718 the target.
2719
2720 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
2721
2722 * regcache.c (ptid_regcache_map): New type.
2723 (target_ptid_regcache_map): New type.
2724 (regcaches): Change type to target_ptid_regcache_map.
2725 (get_thread_arch_aspace_regcache): Update to regcaches' new
2726 type.
2727 (regcache_thread_ptid_changed): Likewise.
2728 (registers_changed_ptid): Likewise.
2729 (regcaches_size): Likewise.
2730 (regcaches_test): Update.
2731 (regcache_thread_ptid_changed): Update.
2732 * regcache.h (regcache_up): New type.
2733 * gdbsupport/ptid.h (hash_ptid): New struct.
2734
2735 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
2736
2737 * observable.h (thread_ptid_changed): Add parameter
2738 `process_stratum_target *`.
2739 * infrun.c (infrun_thread_ptid_changed): Add parameter
2740 `process_stratum_target *` and use it.
2741 (selftests): New namespace.
2742 (infrun_thread_ptid_changed): New function.
2743 (_initialize_infrun): Register selftest.
2744 * regcache.c (regcache_thread_ptid_changed): Add parameter
2745 `process_stratum_target *` and use it.
2746 (regcache_thread_ptid_changed): New function.
2747 (_initialize_regcache): Register selftest.
2748 * thread.c (thread_change_ptid): Pass target to
2749 thread_ptid_changed observable.
2750
2751 2020-08-06 Caroline Tice <cmtice@google.com>
2752
2753 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
2754 (struct dwp_sections): Update field comments. Add loclists and
2755 rnglists fields.
2756 (struct virtual_v2_dwo_sections): Rename struct to
2757 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
2758 size & offset fields for loclists and rnglists.
2759 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
2760 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
2761 skipping dummy type units.
2762 (create_dwp_hash_table): Update the large comment above the function to
2763 discuss Version 5 DWP files as well, with references. Update all the
2764 version checks in the function to check for version 5 as well. Add new
2765 section at the end to create dwp hash table for version 5.
2766 (create_dwp_v2_section): Rename function to
2767 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
2768 Add V5 to error message text.
2769 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
2770 into calls to create_dwp_v2_or_v5_section.
2771 (create_dwo_unit_in_dwp_v5): New function.
2772 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
2773 check for version2; add else clause to handle version 5.
2774 (open_and_init_dwo_file): Add code to check dwarf version & only call
2775 create_debug_types_hash_table (with sections.types) if version is not 5;
2776 else call create_debug_type_hash_table, with sections.info.
2777 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
2778 version 5.
2779 (dwarf2_locate_v5_dwp_sections): New function.
2780 (open_and_init_dwp_file): Add else-if clause for version 5 to call
2781 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
2782
2783 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
2784
2785 * regcache.h (class regcache): Remove friend
2786 registers_changed_ptid.
2787 <regcache_thread_ptid_changed>: Remove.
2788 <regcaches>: Remove.
2789 * regcache.c (regcache::regcaches): Rename to...
2790 (regcaches): ... this. Make static.
2791 (get_thread_arch_aspace_regcache): Update.
2792 (regcache::regcache_thread_ptid_changed): Rename to...
2793 (regcache_thread_ptid_changed): ... this. Update.
2794 (class regcache_access): Remove.
2795 (regcaches_test): Update.
2796 (_initialize_regcache): Update.
2797 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
2798 <forward_list>.
2799
2800 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
2801
2802 * regcache.h (class regcache) <current_regcache>: Rename to...
2803 <regcaches>: ... this. Move doc here.
2804 * regcache.c (regcache::current_regcache) Rename to...
2805 (regcache::regcaches): ... this. Move doc to header.
2806 (get_thread_arch_aspace_regcache): Update.
2807 (regcache::regcache_thread_ptid_changed): Update.
2808 (registers_changed_ptid): Update.
2809 (class regcache_access) <current_regcache_size>: Rename to...
2810 <regcaches_size>: ... this.
2811 (current_regcache_test): Rename to...
2812 (regcaches_test): ... this.
2813 (_initialize_regcache): Update.
2814
2815 2020-08-06 Victor Collod <vcollod@nvidia.com>
2816
2817 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
2818
2819 2020-08-05 Kevin Buettner <kevinb@redhat.com>
2820
2821 * corelow.c (core_target::build_file_mappings): Don't output
2822 null pathname in warning.
2823
2824 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
2825
2826 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
2827 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
2828 gdb.dwarf2/dw2-single-line-discriminators.exp,
2829 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
2830
2831 2020-08-05 Tom Tromey <tromey@adacore.com>
2832
2833 PR rust/26197:
2834 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
2835 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
2836 Fix off-by-one and type size errors in ordinary case.
2837
2838 2020-08-05 Tom de Vries <tdevries@suse.de>
2839
2840 * gdbtypes.c (type_not_allocated, type_not_associated): Use
2841 "prop->const_val () == 0" instead of "prop->const_val () != 0".
2842
2843 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
2844
2845 * frame.h (frame_id_p): Return bool.
2846 (frame_id_artificial_p): Return bool.
2847 (frame_id_eq): Return bool.
2848 (has_stack_frames): Return bool.
2849 (get_selected_frame): Fix typo in comment.
2850 (get_frame_pc_if_available): Return bool.
2851 (get_frame_address_in_block_if_available): Return bool.
2852 (get_frame_func_if_available): Return bool.
2853 (read_frame_register_unsigned): Return bool.
2854 (get_frame_register_bytes): Return bool.
2855 (safe_frame_unwind_memory): Return bool.
2856 (deprecated_frame_register_read): Return bool.
2857 (frame_unwinder_is): Return bool.
2858 * frame.c (struct frame_info) <prev_arch::p>: Change type to
2859 bool.
2860 <this_id::p>: Likewise.
2861 <prev_p>: Likewise.
2862 (frame_stash_add): Return bool.
2863 (get_frame_id): Use bool.
2864 (frame_id_build_special) Use bool.
2865 (frame_id_build_unavailable_stack): Use bool.
2866 (frame_id_build): Use bool.
2867 (frame_id_p): Return bool, use true/false instead of 1/0.
2868 (frame_id_artificial_p): Likewise.
2869 (frame_id_eq): Likewise.
2870 (frame_id_inner): Likewise.
2871 (get_frame_func_if_available): Likewise.
2872 (read_frame_register_unsigned): Likewise.
2873 (deprecated_frame_register_read): Likewise.
2874 (get_frame_register_bytes): Likewise.
2875 (has_stack_frames): Likewise.
2876 (inside_main_func): Likewise.
2877 (inside_entry_func): Likewise.
2878 (get_frame_pc_if_available): Likewise.
2879 (get_frame_address_in_block_if_available): Likewise.
2880 (frame_unwinder_is): Likewise.
2881 (safe_frame_unwind_memory): Likewise.
2882 (frame_unwind_arch): Likewise.
2883
2884 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
2885
2886 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
2887 type to cached_copy_status.
2888 (fprintf_frame): Adjust.
2889 (get_frame_func_if_available): Adjust.
2890 (frame_cleanup_after_sniffer): Adjust.
2891
2892 2020-08-04 Mark Wielaard <mark@klomp.org>
2893
2894 * MAINTAINERS (Write After Approval): Update email address.
2895
2896 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2897
2898 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
2899 dynamic_prop::const_val.
2900
2901 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2902
2903 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
2904 dynamic_prop::kind.
2905
2906 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2907
2908 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
2909
2910 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
2911
2912 * configure.tgt: Set gdb_sim for bpf-*-* targets.
2913
2914 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
2915 Jose E. Marchesi <jose.marchesi@oracle.com>
2916
2917 * configure.tgt: Add entry for bpf-*-*.
2918 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
2919 (ALLDEPFILES): Add bpf-tdep.c.
2920 * bpf-tdep.c: New file.
2921 * MAINTAINERS: Add bpf target and maintainer.
2922 * NEWS: Mention the support for the new target.
2923
2924 2020-08-04 Tom de Vries <tdevries@suse.de>
2925
2926 PR symtab/23270
2927 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
2928 Error.
2929
2930 2020-08-03 John Baldwin <jhb@FreeBSD.org>
2931
2932 * syscalls/freebsd.xml: Regenerate.
2933
2934 2020-08-03 John Baldwin <jhb@FreeBSD.org>
2935
2936 * syscalls/update-freebsd.sh: Fix usage and year range.
2937
2938 2020-08-03 Tom de Vries <tdevries@suse.de>
2939
2940 PR symtab/26333
2941 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
2942 DW_LNE_lo_user/DW_LNE_hi_user range.
2943
2944 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
2945
2946 PR ada/26318
2947 * ada-lang.c (ada_modulus): Return 0 if property is not of const
2948 kind.
2949
2950 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2951
2952 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
2953
2954 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2955
2956 * breakpoint.c (set_breakpoint_condition): Update the condition
2957 expressions after checking that the input condition string parses
2958 successfully and does not contain junk at the end.
2959
2960 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2961
2962 * breakpoint.c (set_breakpoint_condition): Update the
2963 condition string after parsing the new condition successfully.
2964
2965 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2966
2967 * proc-api.c (_STRUCTURED_PROC): Don't define.
2968 * proc-events.c: Likewise.
2969 * proc-flags.c: Likewise.
2970 * proc-why.c: Likewise.
2971 * procfs.c: Likewise.
2972
2973 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
2974 * configure, config.in: Regenerate.
2975
2976 2020-07-30 Tom de Vries <tdevries@suse.de>
2977
2978 PR build/26320
2979 * ui-style.h (struct ui_file_style::color): Wrap m_value and
2980 m_red/m_green/m_blue in a union.
2981
2982 2020-07-29 Tom de Vries <tdevries@suse.de>
2983
2984 PR tdep/26280
2985 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
2986
2987 2020-07-28 Tom Tromey <tromey@adacore.com>
2988
2989 PR symtab/26270:
2990 * symtab.h (find_pc_partial_function_sym): Declare.
2991 * cli/cli-cmds.c (disassemble_command): Use
2992 find_pc_partial_function_sym. Check asm_demangle.
2993 * blockframe.c (cache_pc_function_sym): New global.
2994 (cache_pc_function_name): Remove.
2995 (clear_pc_function_cache): Update.
2996 (find_pc_partial_function_sym): New function, from
2997 find_pc_partial_function.
2998 (find_pc_partial_function): Rewrite using
2999 find_pc_partial_function_sym.
3000
3001 2020-07-28 Tom Tromey <tromey@adacore.com>
3002
3003 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
3004 help. Add usage.
3005
3006 2020-07-28 Tom Tromey <tromey@adacore.com>
3007
3008 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
3009 <DW_OP_GNU_variable_value>: Cast to address type.
3010
3011 2020-07-28 Kamil Rytarowski <n54@gmx.com>
3012
3013 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
3014 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
3015 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
3016 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
3017 (nbsd_get_siginfo_type): New.
3018 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
3019 (_initialize_nbsd_tdep): New.
3020
3021 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
3022
3023 PR binutils/26301
3024 * configure: Regenerated.
3025
3026 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
3027
3028 PR binutils/26301
3029 * configure: Regenerated.
3030
3031 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
3032
3033 * python/py-frame.c: Remove 'user-regs.h' include.
3034 (frapy_read_register): Rewrite to make use of
3035 gdbpy_parse_register_id.
3036 * python/py-registers.c (gdbpy_parse_register_id): New function,
3037 moved here from python/py-unwind.c. Updated the return type, and
3038 also accepts register descriptor objects.
3039 * python/py-unwind.c: Remove 'user-regs.h' include.
3040 (pyuw_parse_register_id): Moved to python/py-registers.c.
3041 (unwind_infopy_add_saved_register): Update to use
3042 gdbpy_parse_register_id.
3043 (pending_framepy_read_register): Likewise.
3044 * python/python-internal.h (gdbpy_parse_register_id): Declare.
3045
3046 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
3047
3048 * python/py-registers.c: Add 'user-regs.h' include.
3049 (register_descriptor_iter_find): New function.
3050 (register_descriptor_iterator_object_methods): New static global
3051 methods array.
3052 (register_descriptor_iterator_object_type): Add pointer to methods
3053 array.
3054
3055 2020-07-27 John Baldwin <jhb@FreeBSD.org>
3056
3057 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
3058 for all architectures on FreeBSD 11.3 and later.
3059
3060 2020-07-27 Tom Tromey <tromey@adacore.com>
3061
3062 * gcore.h (load_corefile): Don't declare.
3063
3064 2020-07-27 Tom de Vries <tdevries@suse.de>
3065
3066 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
3067 * config.in: Regenerate.
3068 * configure: Regenerate.
3069
3070 2020-07-26 Eli Zaretskii <eliz@gnu.org>
3071
3072 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
3073 ws2tcpip.h. When checking whether socklen_t type is defined, use
3074 ws2tcpip.h if it is available and sys/socket.h isn't.
3075 * configure: Regenerate.
3076 * config.in: Regenerate.
3077
3078 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
3079
3080 PR fortran/23051
3081 PR fortran/26139
3082 * valops.c (value_ind): Pass address to
3083 readjust_indirect_value_type.
3084 * value.c (readjust_indirect_value_type): Make parameter
3085 non-const, and add extra address parameter. Resolve original type
3086 before using it.
3087 * value.h (readjust_indirect_value_type): Update function
3088 signature and comment.
3089
3090 2020-07-25 Tom de Vries <tdevries@suse.de>
3091
3092 PR symtab/26243
3093 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
3094 entries.
3095
3096 2020-07-24 Aaron Merey <amerey@redhat.com>
3097
3098 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
3099 * configure: Rebuild.
3100
3101 2020-07-23 Kevin Buettner <kevinb@redhat.com>
3102
3103 PR corefiles/26294
3104 * corelow.c (_initialize_corelow): Add period to help text
3105 for "maintenance print core-file-backed-mappings".
3106
3107 2020-07-23 Pedro Alves <pedro@palves.net>
3108
3109 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
3110 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
3111 meanwhile.
3112 * frame.c (frame_cache_generation, get_frame_cache_generation):
3113 New.
3114 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
3115 (get_prev_frame_if_no_cycle): On exception, don't touch
3116 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
3117 * frame.h (get_frame_cache_generation): Declare.
3118
3119 2020-07-23 Tom de Vries <tdevries@suse.de>
3120
3121 PR tui/26282
3122 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
3123 New default constructor.
3124
3125 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
3126
3127 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
3128 exclude non-statement entries.
3129
3130 2020-07-22 Kevin Buettner <kevinb@redhat.com>
3131
3132 * NEWS (New commands): Mention new command
3133 "maintenance print core-file-backed-mappings".
3134
3135 2020-07-22 Kevin Buettner <kevinb@redhat.com>
3136
3137 * corelow.c (gdbcmd.h): Include.
3138 (core_target::info_proc_mappings): New method.
3139 (get_current_core_target): New function.
3140 (maintenance_print_core_file_backed_mappings): New function.
3141 (_initialize_corelow): Add core-file-backed-mappings to
3142 "maint print" commands.
3143
3144 2020-07-22 Kevin Buettner <kevinb@redhat.com>
3145
3146 * linux-tdep.c (dump_note_entry_p): New function.
3147 (linux_dump_mapping_p_ftype): New typedef.
3148 (linux_find_memory_regions_full): Add new parameter,
3149 should_dump_mapping_p.
3150 (linux_find_memory_regions): Adjust call to
3151 linux_find_memory_regions_full.
3152 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
3153 call to linux_find_memory_regions_full.
3154
3155 2020-07-22 Kevin Buettner <kevinb@redhat.com>
3156
3157 * corelow.c (solist.h, unordered_map): Include.
3158 (class core_target): Add field m_core_file_mappings and
3159 method build_file_mappings.
3160 (core_target::core_target): Call build_file_mappings.
3161 (core_target::~core_target): Free memory associated with
3162 m_core_file_mappings.
3163 (core_target::build_file_mappings): New method.
3164 (core_target::xfer_partial): Use m_core_file_mappings
3165 for memory transfers.
3166 * linux-tdep.c (linux_read_core_file_mappings): New
3167 function.
3168 (linux_core_info_proc_mappings): Rewrite to use
3169 linux_read_core_file_mappings.
3170 (linux_init_abi): Register linux_read_core_file_mappings.
3171
3172 2020-07-22 Kevin Buettner <kevinb@redhat.com>
3173
3174 * arch-utils.c (default_read_core_file_mappings): New function.
3175 * arch-utils.c (default_read_core_file_mappings): Declare.
3176 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
3177 * gdbarch.h, gdbarch.c: Regenerate.
3178
3179 2020-07-22 Kevin Buettner <kevinb@redhat.com>
3180
3181 PR corefiles/25631
3182 * corelow.c (core_target:xfer_partial): Revise
3183 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
3184 case after first checking the stratum beneath the core
3185 target.
3186 (has_all_memory): Return true.
3187 * target.c (raw_memory_xfer_partial): Revise comment
3188 regarding use of has_all_memory.
3189
3190 2020-07-22 Kevin Buettner <kevinb@redhat.com>
3191
3192 * exec.h (section_table_xfer_memory): Revise declaration,
3193 replacing section name parameter with an optional callback
3194 predicate.
3195 * exec.c (section_table_xfer_memory): Likewise.
3196 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
3197 of section_table_xfer_memory.
3198
3199 2020-07-22 Tom Tromey <tromey@adacore.com>
3200
3201 * mi/mi-cmd-stack.c (list_args_or_locals): Use
3202 lookup_symbol_search_name.
3203
3204 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
3205
3206 * python/py-registers.c (gdbpy_register_object_data_init): Remove
3207 redundant local variable.
3208 (gdbpy_get_register_descriptor): Extract descriptor vector as a
3209 reference, not pointer, update code accordingly.
3210
3211 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3212 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3213
3214 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
3215 * jit.c (jit_breakpoint_re_set_internal): Use the
3216 `skip_jit_symbol_lookup` field.
3217
3218 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3219 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3220
3221 * jit.c (jit_read_descriptor): Define the descriptor address once,
3222 use twice.
3223 (jit_breakpoint_deleted): Move the declaration of the loop variable
3224 `iter` into the loop header.
3225 (jit_breakpoint_re_set_internal): Move the declaration of the local
3226 variable `objf_data` to the first point of definition.
3227 (jit_event_handler): Move the declaration of local variables
3228 `code_entry`, `entry_addr`, and `objf` to their first point of use.
3229 Rename `objf` to `jited`.
3230
3231 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3232
3233 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
3234 Remove.
3235 * jit.c (get_jiter_objfile_data): Update.
3236
3237 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3238 Simon Marchi <simon.marchi@polymtl.ca>
3239
3240 * jit.c (struct jit_program_space_data): Remove.
3241 (jit_program_space_key): Remove.
3242 (jiter_objfile_data::~jiter_objfile_data): Remove program space
3243 stuff.
3244 (get_jit_program_space_data): Remove.
3245 (jit_breakpoint_deleted): Iterate on all of the program space's
3246 objfiles.
3247 (jit_inferior_init): Likewise.
3248 (jit_breakpoint_re_set_internal): Likewise. Also change return
3249 type to void.
3250 (jit_breakpoint_re_set): Pass current_program_space to
3251 jit_breakpoint_re_set_internal.
3252
3253 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3254
3255 * jit.h (struct jiter_objfile_data) <cached_code_address,
3256 jit_breakpoint>: Move to here from ...
3257 * jit.c (jit_program_space_data): ... here.
3258 (jiter_objfile_data::~jiter_objfile_data): Update.
3259 (jit_breakpoint_deleted): Update.
3260 (jit_breakpoint_re_set_internal): Update.
3261
3262 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3263
3264 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
3265 checks.
3266 (jit_read_descriptor): Remove NULL check.
3267 (jit_event_handler): Add an assertion.
3268
3269 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3270
3271 * jit.h (struct jit_objfile_data): Split into...
3272 (struct jiter_objfile_data): ... this ...
3273 (struct jited_objfile_data): ... and this.
3274 * objfiles.h (struct objfile) <jit_data>: Remove.
3275 <jiter_data, jited_data>: New fields.
3276 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
3277 (jiter_objfile_data::~jiter_objfile_data): ... this.
3278 (get_jit_objfile_data): Rename to ...
3279 (get_jiter_objfile_data): ... this.
3280 (add_objfile_entry): Update.
3281 (jit_read_descriptor): Use get_jiter_objfile_data.
3282 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
3283 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
3284 (jit_inferior_exit_hook): Use objfile's jited_data field.
3285
3286 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3287
3288 * jit.h: Forward-declare `struct minimal_symbol`.
3289 (struct jit_objfile_data): Migrate to here from jit.c; also add a
3290 constructor, destructor, and an objfile* field.
3291 * jit.c (jit_objfile_data): Remove.
3292 (struct jit_objfile_data): Migrate from here to jit.h.
3293 (jit_objfile_data::~jit_objfile_data): New destructor
3294 implementation with code moved from free_objfile_data.
3295 (free_objfile_data): Delete.
3296 (get_jit_objfile_data): Update to use the jit_data field of objfile.
3297 (jit_find_objf_with_entry_addr): Ditto.
3298 (jit_inferior_exit_hook): Ditto.
3299 (_initialize_jit): Remove the call to
3300 register_objfile_data_with_cleanup.
3301 * objfiles.h (struct objfile) <jit_data>: New field.
3302
3303 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3304
3305 * jit.h: Forward-declare `struct objfile`.
3306 (jit_event_handler): Add a second parameter, the JITer objfile.
3307 * jit.c (jit_read_descriptor): Change the signature to take the
3308 JITer objfile as an argument instead of the jit_program_space_data.
3309 (jit_inferior_init): Update the call to jit_read_descriptor.
3310 (jit_event_handler): Use the new JITer objfile argument when calling
3311 jit_read_descriptor.
3312 * breakpoint.c (handle_jit_event): Update the call to
3313 jit_event_handler to pass the JITer objfile.
3314
3315 2020-07-21 John Baldwin <jhb@FreeBSD.org>
3316
3317 * gdbarch.c: Regenerate.
3318 * gdbarch.h: Regenerate.
3319 * gdbarch.sh (handle_segmentation_fault): Remove method.
3320 * infrun.c (handle_segmentation_fault): Remove.
3321 (print_signal_received_reason): Remove call to
3322 handle_segmentation_fault.
3323
3324 2020-07-21 John Baldwin <jhb@FreeBSD.org>
3325
3326 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
3327 Rename to sparc64_linux_report_signal_info and add siggnal
3328 argument.
3329 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
3330 instead of sparc64_linux_handle_segmentation_fault.
3331
3332 2020-07-21 John Baldwin <jhb@FreeBSD.org>
3333
3334 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
3335 i386_linux_report_signal_info instead of
3336 i386_linux_handle_segmentation_fault.
3337 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
3338 to i386_linux_report_signal_info and add siggnal argument.
3339 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
3340 of i386_linux_handle_segmentation_fault.
3341 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
3342 to i386_linux_report_signal_info and add siggnal argument.
3343
3344 2020-07-21 John Baldwin <jhb@FreeBSD.org>
3345
3346 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
3347 hook if present.
3348
3349 2020-07-21 John Baldwin <jhb@FreeBSD.org>
3350
3351 * gdbarch.c: Regenerate.
3352 * gdbarch.h: Regenerate.
3353 * gdbarch.sh (report_signal_info): New method.
3354 * infrun.c (print_signal_received_reason): Invoke gdbarch
3355 report_signal_info hook if present.
3356
3357 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
3358
3359 * python/py-registers.c : Add 'unordered_map' include.
3360 (gdbpy_new_reggroup): Renamed to...
3361 (gdbpy_get_reggroup): ...this. Update to only create register
3362 group descriptors when needed.
3363 (gdbpy_reggroup_iter_next): Update.
3364
3365 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
3366
3367 * python/py-registers.c (gdbpy_register_object_data): New static
3368 global.
3369 (gdbpy_register_object_data_init): New function.
3370 (gdbpy_new_register_descriptor): Renamed to...
3371 (gdbpy_get_register_descriptor): ...this, and update to reuse
3372 existing register descriptors where possible.
3373 (gdbpy_register_descriptor_iter_next): Update.
3374 (gdbpy_initialize_registers): Register new gdbarch data.
3375
3376 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
3377
3378 * linux-nat.c (stopped_pids): Make static.
3379
3380 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
3381
3382 PR ada/26235
3383 * gdbtypes.c (ada_discrete_type_low_bound,
3384 ada_discrete_type_high_bound): Handle undefined bounds.
3385
3386 2020-07-21 Kamil Rytarowski <n54@gmx.com>
3387
3388 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
3389 declaration.
3390 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
3391 function.
3392
3393 2020-07-20 John Baldwin <jhb@FreeBSD.org>
3394
3395 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
3396 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
3397 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
3398 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
3399 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
3400 method.
3401
3402 2020-07-20 Ludovic Courtès <ludo@gnu.org>
3403
3404 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
3405 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
3406 which are deprecated in Guile 3.0.
3407 * configure.ac (try_guile_versions): Add "guile-3.0".
3408 * configure (try_guile_versions): Regenerate.
3409 * NEWS: Update entry.
3410
3411 2020-07-20 Ludovic Courtès <ludo@gnu.org>
3412 Doug Evans <dje@google.com>
3413
3414 PR gdb/21104
3415 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
3416 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
3417 USING_GUILE_BEFORE_2_2.
3418 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
3419 Change type to 'scm_t_port_type *'.
3420 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
3421 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
3422 parameter and honor it. Update callers.
3423 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
3424 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
3425 functions.
3426 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
3427 USING_GUILE_BEFORE_2_2.
3428 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
3429 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
3430 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
3431 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
3432 and 'SCM_PORT_TYPE'.
3433 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
3434 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
3435 (gdbscm_memory_port_read, gdbscm_memory_port_write)
3436 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
3437 [!USING_GUILE_BEFORE_2_2]: New functions.
3438 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
3439 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
3440 'gdbscm_memory_port_read'.
3441 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
3442 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
3443 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
3444 function.
3445 (ioscm_init_memory_port): Remove.
3446 (ioscm_init_memory_port_stream): New function
3447 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
3448 function.
3449 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
3450 Return scm_from_uint (0).
3451 (gdbscm_set_memory_port_read_buffer_size_x)
3452 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
3453 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
3454 Return scm_from_uint (0).
3455 (gdbscm_set_memory_port_write_buffer_size_x)
3456 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
3457 * configure.ac (try_guile_versions): Add "guile-2.2".
3458 * configure: Regenerate.
3459 * NEWS: Add entry.
3460
3461 2020-07-18 Tom Tromey <tom@tromey.com>
3462
3463 * linux-nat.c (linux_multi_process): Remove.
3464 (linux_nat_target::supports_multi_process): Return true.
3465
3466 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
3467
3468 * arch/riscv.c (riscv_tdesc_cache): Change map type.
3469 (riscv_lookup_target_description): Return pointer out of
3470 unique_ptr.
3471 * target-descriptions.c (allocate_target_description): Add
3472 comment.
3473 (target_desc_deleter::operator()): Likewise.
3474 * target-descriptions.h (struct target_desc_deleter): Moved to
3475 gdbsupport/tdesc.h.
3476 (target_desc_up): Likewise.
3477
3478 2020-07-17 Tom Tromey <tromey@adacore.com>
3479
3480 * linux-nat.c (linux_nat_target::supports_non_stop)
3481 (linux_nat_target::always_non_stop_p): Use "true".
3482 (linux_nat_target::supports_disable_randomization): Use "true" and
3483 "false".
3484
3485 2020-07-16 Caroline Tice <cmtice@google.com>
3486
3487 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
3488 (RNGLIST_HEADER_SIZE64): New constant definition.
3489 (struct dwop_section_names): Add rnglists_dwo.
3490 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
3491 (struct loclist_header): Rename to 'loclists_rnglists_header'.
3492 (struct dwo_sections): Add rnglists field.
3493 (read_attribut_reprocess): Add tag parameter.
3494 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
3495 (cu_debug_rnglists_section): New function (decl & definition).
3496 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
3497 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
3498 die whose range is being checked; get rnglist section from
3499 cu_debug_rnglists_section, to get from either objfile or dwo file as
3500 appropriate. Add cases for DW_RLE_base_addressx,
3501 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
3502 the base address to DW_RLE_offset_pairs (not to all ranges), moving
3503 test inside if-condition and updating complaint message.
3504 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
3505 dwarf2_rnglists_process.
3506 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
3507 dwarf2_ranges_process.
3508 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
3509 need_ranges_base and update comment appropriately. Also pass die tag
3510 to dwarf2_ranges_read.
3511 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
3512 need_ranges_base and update comment appropriately. Also pass die tag
3513 to dwarf2_ranges_process.
3514 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
3515 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
3516 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
3517 need_ranges_base and update comment appropriately. Also pass die tag
3518 to read_attribute_reprocess and dwarf2_ranges_read.
3519 (read_loclist_header): Rename function to read_loclists_rnglists_header,
3520 and update function comment appropriately.
3521 (read_loclist_index): Call read_loclists_rnglists_header instead of
3522 read_loclist_header.
3523 (read_rnglist_index): New function.
3524 (read_attribute_reprocess): Add tag parameter. Add code for
3525 DW_FORM_rnglistx, passing tag to read_rnglist_index.
3526 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
3527
3528 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
3529
3530 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
3531 being resolved.
3532
3533 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
3534
3535 * arch-utils.c (show_architecture): Update formatting of messages.
3536
3537 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3538
3539 * gdbtypes.h (struct type) <bounds>: Handle array and string
3540 types.
3541 * ada-lang.c (assign_aggregate): Use type::bounds on
3542 array/string type.
3543 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
3544 * c-varobj.c (c_number_of_children): Likewise.
3545 (c_describe_child): Likewise.
3546 * eval.c (evaluate_subexp_for_sizeof): Likewise.
3547 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
3548 (f_type_print_base): Likewise.
3549 * f-valprint.c (f77_array_offset_tbl): Likewise.
3550 (f77_get_upperbound): Likewise.
3551 (f77_print_array_1): Likewise.
3552 * guile/scm-type.c (gdbscm_type_range): Likewise.
3553 * m2-typeprint.c (m2_array): Likewise.
3554 (m2_is_long_set_of_type): Likewise.
3555 * m2-valprint.c (get_long_set_bounds): Likewise.
3556 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
3557 * python/py-type.c (typy_range): Likewise.
3558 * rust-lang.c (rust_internal_print_type): Likewise.
3559 * type-stack.c (type_stack::follow_types): Likewise.
3560 * valarith.c (value_subscripted_rvalue): Likewise.
3561 * valops.c (value_cast): Likewise.
3562
3563 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3564
3565 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
3566 callers to use the equivalent accessor methods.
3567
3568 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3569
3570 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
3571 (struct type) <bit_stride>: New method.
3572 (TYPE_BIT_STRIDE): Remove.
3573 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
3574
3575 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3576
3577 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
3578 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
3579 callers to use the equivalent accessor methods instead.
3580
3581 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3582
3583 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
3584 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
3585 callers to use the equivalent accessor methods instead.
3586
3587 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3588
3589 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
3590 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
3591 to use dynamic_prop::kind.
3592
3593 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3594
3595 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
3596 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
3597 to get the bound property's kind and check against
3598 PROP_UNDEFINED.
3599
3600 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3601
3602 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
3603 all callers to use type::range_bounds followed by
3604 dynamic_prop::{low,high}.
3605
3606 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
3607
3608 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
3609 const_val, set_const_val, baton, set_locexpr, set_loclist,
3610 set_addr_offset, variant_parts, set_variant_parts,
3611 original_type, set_original_type>: New methods.
3612 <kind>: Rename to...
3613 <m_kind>: ... this. Update all users to use the new methods
3614 instead.
3615 <data>: Rename to...
3616 <m_data>: ... this. Update all users to use the new methods
3617 instead.
3618
3619 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3620
3621 * gdbtypes.c (get_discrete_bounds): Return failure if
3622 the range type's bounds are not both defined and constant
3623 values.
3624 (get_array_bounds): Update comment. Remove undefined bound check.
3625
3626 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
3627
3628 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
3629 the type::bounds method directly.
3630
3631 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3632
3633 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
3634 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
3635 are used to set the range type's bounds to use set_bounds.
3636
3637 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3638
3639 * exec.c (_initialize_exec): Update exec-file-mismatch help.
3640
3641 2020-07-10 Pedro Alves <pedro@palves.net>
3642
3643 * gdbthread.h (inferior_ref): Define.
3644 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
3645 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
3646 * thread.c
3647 (scoped_restore_current_thread::restore):
3648 Adjust to gdb::ref_ptr.
3649 (scoped_restore_current_thread::~scoped_restore_current_thread):
3650 Remove manual decref handling.
3651 (scoped_restore_current_thread::scoped_restore_current_thread):
3652 Adjust to use
3653 inferior_ref::new_reference/thread_info_ref::new_reference.
3654 Incref the thread before calling get_frame_id instead of after.
3655 Let TARGET_CLOSE_ERROR propagate.
3656
3657 2020-07-10 Pedro Alves <pedro@palves.net>
3658
3659 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
3660 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
3661 NOT_AVAILABLE_ERROR.
3662 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
3663 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
3664
3665 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3666 Pedro Alves <pedro@palves.net>
3667
3668 PR gdb/26199
3669 * infrun.c (threads_are_resumed_pending_p): Delete.
3670 (do_target_wait): Remove threads_are_executing and
3671 threads_are_resumed_pending_p checks from the inferior_matches
3672 lambda. Update comments.
3673
3674 2020-07-10 Pedro Alves <pedro@palves.net>
3675
3676 PR gdb/26199
3677 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
3678 executing threads.
3679
3680 2020-07-10 Pedro Alves <pedro@palves.net>
3681
3682 PR gdb/26199
3683 * infrun.c (handle_no_resumed): Handle multiple targets.
3684
3685 2020-07-10 Pedro Alves <pedro@palves.net>
3686
3687 PR gdb/26199
3688 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
3689 target_is_async_p.
3690
3691 2020-07-10 Pedro Alves <pedro@palves.net>
3692
3693 PR gdb/26199
3694 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
3695 threads, not all threads.
3696
3697 2020-07-10 Pedro Alves <pedro@palves.net>
3698
3699 PR gdb/26199
3700 * remote.c (remote_target::open_1): Pass remote target pointer as
3701 data to create_async_event_handler.
3702 (remote_async_inferior_event_handler): Mark async event handler
3703 before returning if the remote target still has either pending
3704 events or unacknowledged notifications.
3705
3706 2020-07-10 John Baldwin <jhb@FreeBSD.org>
3707
3708 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
3709 declaration.
3710 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
3711 function.
3712
3713 2020-07-09 John Baldwin <jhb@FreeBSD.org>
3714
3715 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
3716 inferior_ptid.
3717
3718 2020-07-09 John Baldwin <jhb@FreeBSD.org>
3719
3720 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
3721 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
3722 AT_FREEBSD_PS_STRINGS.
3723
3724 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
3725
3726 * auto-load.c (auto_load_objfile_script_1): Convert drive part
3727 of debugfile path on Windows.
3728
3729 2020-07-08 John Baldwin <jhb@FreeBSD.org>
3730
3731 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
3732 argument to 'data'.
3733
3734 2020-07-08 Tom Tromey <tromey@adacore.com>
3735
3736 * ada-lang.c (ada_exception_message_1): Use read_memory.
3737
3738 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3739
3740 PR python/22748
3741 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
3742 special handling for inline frames.
3743 * findvar.c (value_of_register_lazy): Skip inline frames when
3744 creating lazy register values.
3745 * frame.c (frame_id_computed_p): Delete definition.
3746 * frame.h (frame_id_computed_p): Delete declaration.
3747
3748 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3749
3750 * NEWS: Mention additions to Python API.
3751 * python/py-arch.c (archpy_register_groups): New function.
3752 (arch_object_methods): Add 'register_groups' method.
3753 * python/py-registers.c (reggroup_iterator_object): New struct.
3754 (reggroup_object): New struct.
3755 (gdbpy_new_reggroup): New function.
3756 (gdbpy_reggroup_to_string): New function.
3757 (gdbpy_reggroup_name): New function.
3758 (gdbpy_reggroup_iter): New function.
3759 (gdbpy_reggroup_iter_next): New function.
3760 (gdbpy_new_reggroup_iterator): New function
3761 (gdbpy_initialize_registers): Register new types.
3762 (reggroup_iterator_object_type): Define new Python type.
3763 (gdbpy_reggroup_getset): New static global.
3764 (reggroup_object_type): Define new Python type.
3765 * python/python-internal.h
3766
3767 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3768
3769 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
3770 * python/py-arch.c (archpy_registers): New function.
3771 (arch_object_methods): Add 'registers' method.
3772 * python/py-registers.c: New file.
3773 * python/python-internal.h
3774 (gdbpy_new_register_descriptor_iterator): Declare.
3775 (gdbpy_initialize_registers): Declare.
3776 * python/python.c (do_start_initialization): Call
3777 gdbpy_initialize_registers.
3778 * NEWS: Mention additions to the Python API.
3779
3780 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3781
3782 * NEWS: Mention new Python API method.
3783 * python/py-unwind.c (pending_framepy_architecture): New function.
3784 (pending_frame_object_methods): Add architecture method.
3785
3786 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3787
3788 * gdbarch.c: Regenerate.
3789 * gdbarch.h: Regenerate.
3790 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
3791 (gdbarch_data): Use internal_error for the case where
3792 deprecated_set_gdbarch_data was originally needed.
3793 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
3794 and use passed in obstack.
3795 (libunwind_frame_set_descr): Should no longer get back NULL from
3796 gdbarch_data.
3797 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
3798 type.
3799 * user-regs.c (user_regs_init): Update parameters, and use passed
3800 in obstack.
3801 (user_reg_add): Should no longer get back NULL from gdbarch_data.
3802 (_initialize_user_regs): Register as a pre-init gdbarch data type.
3803
3804 2020-07-06 Tom de Vries <tdevries@suse.de>
3805
3806 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
3807 End-Of-Sequence in lte_is_less_than.
3808 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
3809 "gdb: Don't reorder line table entries too much when sorting".
3810
3811 2020-07-06 Tom de Vries <tdevries@suse.de>
3812
3813 PR tui/26205
3814 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
3815
3816 2020-07-05 Tom de Vries <tdevries@suse.de>
3817
3818 PR build/26187
3819 * inferior.h (struct infcall_suspend_state_deleter): If available, use
3820 std::uncaught_exceptions instead of deprecated
3821 std::uncaught_exception.
3822
3823 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3824
3825 * macroexp.h (macro_stringify): Return
3826 gdb::unique_xmalloc_ptr<char>.
3827 * macroexp.c (macro_stringify): Likewise.
3828 * macrotab.c (fixup_definition): Update.
3829
3830 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3831
3832 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
3833 (lex_one_token): Update.
3834 * macroexp.c (struct macro_buffer) <release>: Return
3835 gdb::unique_xmalloc_ptr<char>.
3836 (macro_stringify): Update.
3837 (macro_expand): Update.
3838 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
3839 * macroexp.h (macro_expand_next): Likewise.
3840
3841 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
3842
3843 * macroexp.h (macro_lookup_ftype): Remove.
3844 (macro_expand, macro_expand_once, macro_expand_next): Remove
3845 lookup function parameters, add scope parameter.
3846 * macroexp.c (scan, substitute_args, expand, maybe_expand,
3847 macro_expand, macro_expand_once, macro_expand_next): Likewise.
3848 * macroscope.h (standard_macro_lookup): Change parameter type
3849 to macro_scope.
3850 * macroscope.c (standard_macro_lookup): Likewise.
3851 * c-exp.y (lex_one_token): Update.
3852 * macrocmd.c (macro_expand_command): Likewise.
3853 (macro_expand_once_command): Likewise.
3854
3855 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3856
3857 * inf-loop.c (inferior_event_handler): Remove client_data param.
3858 * inf-loop.h (inferior_event_handler): Likewise.
3859 * infcmd.c (step_1): Adjust.
3860 * infrun.c (proceed): Adjust.
3861 (fetch_inferior_event): Remove client_data param.
3862 (infrun_async_inferior_event_handler): Adjust.
3863 * infrun.h (fetch_inferior_event): Remove `void *` param.
3864 * linux-nat.c (handle_target_event): Adjust.
3865 * record-btrace.c (record_btrace_handle_async_inferior_event):
3866 Adjust.
3867 * record-full.c (record_full_async_inferior_event_handler):
3868 Adjust.
3869 * remote.c (remote_async_inferior_event_handler): Adjust.
3870
3871 2020-07-01 Tom Tromey <tom@tromey.com>
3872
3873 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
3874 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
3875
3876 2020-07-01 Tom Tromey <tom@tromey.com>
3877
3878 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
3879 tui_gen_win_info.
3880 (tui_win_info::make_window): Merge with
3881 tui_gen_win_info::make_window.
3882 (tui_win_info::make_visible): Move from tui_gen_win_info.
3883 * tui/tui-win.c (tui_win_info::max_width): Move from
3884 tui_gen_win_info.
3885 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
3886 type.
3887 <window_factory>: Likewise.
3888 * tui/tui-layout.c (tui_win_info::resize): Move from
3889 tui_gen_win_info.
3890 (make_standard_window): Change return type.
3891 (get_locator_window, tui_get_window_by_name): Likewise.
3892 (tui_layout_window::apply): Remove a cast.
3893 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
3894 (struct tui_win_info): Merge with tui_gen_win_info.
3895 (struct tui_gen_win_info): Remove.
3896
3897 2020-07-01 Tom Tromey <tom@tromey.com>
3898
3899 * tui/tui-stack.h (struct tui_locator_window): Derive from
3900 tui_win_info.
3901 <do_scroll_horizontal, do_scroll_vertical>: New methods.
3902 <can_box>: New method.
3903
3904 2020-07-01 Tom Tromey <tom@tromey.com>
3905
3906 * tui/tui-stack.h (struct tui_locator_window): Remove body.
3907
3908 2020-07-01 Tom Tromey <tom@tromey.com>
3909
3910 * tui/tui-regs.c (tui_data_window::display_registers_from)
3911 (tui_data_window::display_registers_from)
3912 (tui_data_window::first_data_item_displayed)
3913 (tui_data_window::delete_data_content_windows): Update.
3914 (tui_data_window::refresh_window, tui_data_window::no_refresh):
3915 Remove.
3916 (tui_data_window::check_register_values): Update.
3917 (tui_data_item_window::rerender): Add parameters. Update.
3918 (tui_data_item_window::refresh_window): Remove.
3919 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
3920 virtual.
3921 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
3922 tui_gen_win_info.
3923 <refresh_window, max_height, min_height>: Remove.
3924 <rerender>: Add parameters.
3925 <x, y, visible>: New members.
3926 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
3927 <m_item_width>: New member.
3928
3929 2020-07-01 Tom Tromey <tom@tromey.com>
3930
3931 * tui/tui-regs.c (tui_data_window::show_register_group)
3932 (tui_data_window::check_register_values): Update.
3933 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
3934 from item_no.
3935
3936 2020-07-01 Tom Tromey <tom@tromey.com>
3937
3938 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
3939 useless "if".
3940
3941 2020-07-01 Tom Tromey <tom@tromey.com>
3942
3943 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
3944 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
3945
3946 2020-07-01 Tom Tromey <tom@tromey.com>
3947
3948 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
3949 * tui/tui-winsource.h (enum tui_line_or_address_kind)
3950 (struct tui_line_or_address): Move from tui-data.h.
3951 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
3952 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
3953 (tui_cmd_window, tui_source_window_base, tui_source_window)
3954 (tui_disasm_window): Don't declare.
3955 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
3956 to tui-winsource.h.
3957 (SINGLE_KEY): Move to tui-stack.c.
3958
3959 2020-07-01 Tom Tromey <tom@tromey.com>
3960
3961 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
3962 std::string.
3963 * tui/tui-regs.c (class tab_expansion_file): New.
3964 (tab_expansion_file::write): New method.
3965 (tui_register_format): Change return type. Use
3966 tab_expansion_file.
3967 (tui_get_register, tui_data_window::display_registers_from)
3968 (tui_data_item_window::rerender): Update.
3969 * tui/tui-io.h (tui_expand_tabs): Don't declare.
3970 * tui/tui-io.c (tui_expand_tabs): Remove.
3971
3972 2020-07-01 Tom Tromey <tom@tromey.com>
3973
3974 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
3975
3976 2020-07-01 Fangrui Song <maskray@google.com>
3977
3978 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
3979
3980 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3981
3982 * dwarf2/read.c (set_die_type): Removed conditions to restrict
3983 forms for DW_AT_associated and DW_AT_allocated attributes,
3984 which is already checked in function attr_to_dynamic_prop.
3985
3986 2020-06-30 Tom Tromey <tromey@adacore.com>
3987
3988 * dwarf2/read.c (quirk_rust_enum): Correctly call
3989 alloc_rust_variant for default-less enum.
3990
3991 2020-06-30 Tom Tromey <tromey@adacore.com>
3992
3993 PR build/26183:
3994 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
3995 gdb::to_string.
3996
3997 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
3998
3999 * gdbarch.sh (displaced_step_copy_insn): Update doc.
4000 * gdbarch.h: Re-generate.
4001
4002 2020-06-28 Tom Tromey <tom@tromey.com>
4003
4004 * command.h (cmd_types): Remove.
4005 (cmd_type): Don't declare.
4006 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
4007 typedef.
4008 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
4009 * cli/cli-decode.c (cmd_type): Remove.
4010
4011 2020-06-27 Pedro Alves <palves@redhat.com>
4012
4013 * fork-child.c (prefork_hook): Adjust.
4014 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
4015 Delete.
4016 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
4017 * inferior.c (inferior::set_tty, inferior::tty): New methods.
4018 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
4019 Remove declarations.
4020 (struct inferior) <set_tty, tty>: New methods.
4021 (struct inferior) <terminal>: Rename to ...
4022 (struct inferior) <m_terminal>: ... this and make private.
4023 * main.c (captured_main_1): Adjust.
4024 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
4025 (mi_cmd_inferior_tty_show): Adjust.
4026 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
4027 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
4028
4029 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
4030
4031 * configure.ac: Add --enable-libctf: handle --disable-static
4032 properly.
4033 * acinclude.m4: sinclude ../config/enable.m4.
4034 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
4035 (LIBCTF): Substitute in.
4036 (CTF_DEPS): New, likewise.
4037 (CLIBS): libctf needs symbols from libbfd: move earlier.
4038 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
4039 flags.
4040 * ctfread.c: Surround in ENABLE_LIBCTF.
4041 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
4042 * configure: Regenerate.
4043 * config.in: Likewise.
4044
4045 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
4046
4047 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
4048
4049 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
4050
4051 * inferior.h (struct inferior) <terminal>: Change type to
4052 gdb::unique_xmalloc_ptr<char>.
4053 * inferior.c (inferior::~inferior): Don't free inf->terminal.
4054 * infcmd.c (set_inferior_io_terminal): Don't free terminal
4055 field, adjust to unique pointer.
4056 (get_inferior_io_terminal): Adjust to unique pointer.
4057
4058 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4059
4060 * riscv-tdep.c (riscv_print_registers_info): Loop over all
4061 registers, not just the known core set of registers.
4062
4063 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4064
4065 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
4066 fflags, frm, and fcsr registers.
4067 (riscv_register_reggroup_p): Remove unknown CSRs from save and
4068 restore groups.
4069 (riscv_tdesc_unknown_reg): New function.
4070 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
4071 tdesc_use_registers.
4072 * riscv-tdep.h (struct gdbarch_tdep): Add
4073 unknown_csrs_first_regnum, unknown_csrs_count,
4074 duplicate_fflags_regnum, duplicate_frm_regnum, and
4075 duplicate_fcsr_regnum fields.
4076
4077 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4078
4079 * target-descriptions.c (tdesc_use_registers): Add new parameter a
4080 callback, use the callback (when not null) to help number unknown
4081 registers.
4082 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
4083 (tdesc_use_registers): Add extra parameter to declaration.
4084
4085 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4086
4087 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
4088 in the file.
4089 (class riscv_pending_register_alias): Likewise.
4090 (riscv_register_feature::register_info): Change 'required_p' field
4091 to 'required', and change its type. Add 'check' member function.
4092 (riscv_register_feature::register_info::check): Define new member
4093 function.
4094 (riscv_xreg_feature): Change initialisation of 'required' field.
4095 (riscv_freg_feature): Likewise.
4096 (riscv_virtual_feature): Likewise.
4097 (riscv_csr_feature): Likewise.
4098 (riscv_check_tdesc_feature): Take extra parameter, the csr
4099 tdesc_feature, rewrite the function to use the new
4100 riscv_register_feature::register_info::check function.
4101 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
4102
4103 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4104
4105 * features/Makefile: Remove all references to the deleted files
4106 below.
4107 * features/riscv/32bit-csr.c: Deleted.
4108 * features/riscv/32bit-csr.xml: Deleted.
4109 * features/riscv/64bit-csr.c: Deleted.
4110 * features/riscv/64bit-csr.xml: Deleted.
4111 * features/riscv/rebuild-csr-xml.sh: Deleted.
4112
4113 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4114
4115 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
4116 whitespace error for declaration of names member variable.
4117 (struct riscv_register_feature): Add new prefer_first_name member
4118 variable, and fix whitespace error in declaration of registers.
4119 (riscv_xreg_feature): Initialize prefer_first_name field.
4120 (riscv_freg_feature): Likewise.
4121 (riscv_virtual_feature): Likewise.
4122 (riscv_csr_feature): Likewise.
4123 (riscv_register_name): Expand on comments. Remove register name
4124 modifications for CSR and virtual registers.
4125
4126 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4127
4128 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
4129 errors.
4130
4131 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4132
4133 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
4134 riscv-opc.h.
4135 (class riscv_pending_register_alias): New class.
4136 (riscv_check_tdesc_feature): Take vector of pending aliases and
4137 populate it as appropriate.
4138 (riscv_setup_register_aliases): Delete.
4139 (riscv_gdbarch_init): Create vector of pending aliases and pass it
4140 to riscv_check_tdesc_feature in all cases. Use the vector to
4141 create the register aliases.
4142
4143 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4144
4145 * sol2-tdep.c (sol2_static_transform_name): Remove.
4146 (sol2_init_abi): Don't register it.
4147 * gdbarch.sh (static_transform_name): Remove.
4148 * gdbarch.c, gdbarch.h: Regenerate.
4149
4150 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
4151 gdbarch_static_transform_name.
4152 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
4153 * stabsread.c (define_symbol) <'X'>: Remove.
4154 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
4155 handling.
4156 <'V'>: Likewise.
4157 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
4158 <'S'>: Remove call to gdbarch_static_transform_name.
4159
4160 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4161
4162 * procfs.c (procfs_pre_trace): New function.
4163 (procfs_target::create_inferior): Pass it to fork_inferior.
4164
4165 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4166
4167 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
4168 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
4169 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
4170 sol2-tdep.o, sparc-sol2-tdep.o.
4171 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
4172 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
4173 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
4174 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
4175
4176 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4177
4178 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
4179 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
4180 Call sol2_init_abi.
4181 Remove calls to set_gdbarch_skip_solib_resolver,
4182 set_gdbarch_core_pid_to_str.
4183 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
4184 (i386_sol2_static_transform_name): Remove.
4185 (i386_sol2_init_abi): Call sol2_init_abi.
4186 Remove calls to set_gdbarch_sofun_address_maybe_missing,
4187 set_gdbarch_static_transform_name,
4188 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
4189 Use sol2_sigtramp_p.
4190 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
4191 (sol2_sigtramp_p): New function.
4192 (sol2_static_transform_name): New function.
4193 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
4194 (sol2_init_abi): New function.
4195 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
4196 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
4197 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
4198 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
4199 (sparc_sol2_static_transform_name): Remove.
4200 (sparc32_sol2_init_abi): Call sol2_init_abi.
4201 Remove calls to set_gdbarch_sofun_address_maybe_missing,
4202 set_gdbarch_static_transform_name,
4203 set_gdbarch_skip_solib_resolver,
4204 set_gdbarch_core_pid_to_str.
4205 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
4206 (sparc_sol2_static_transform_name): Remove
4207 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
4208 call sol2_sigtramp_p.
4209 (sparc64_sol2_init_abi): Call sol2_init_abi.
4210 Remove calls to set_gdbarch_sofun_address_maybe_missing,
4211 set_gdbarch_static_transform_name,
4212 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
4213
4214 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4215
4216 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
4217 * exec.c (validate_exec_file): If from_tty, set both
4218 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
4219 * symfile.c (symbol_file_add_with_addrs): if always_confirm
4220 and from_tty, unconditionally ask a confirmation.
4221
4222 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4223
4224 * target-descriptions.c (tdesc_architecture_name): Protect against
4225 NULL pointer dereference.
4226 (maint_print_xml_tdesc_cmd): New function.
4227 (_initialize_target_descriptions): Register new 'maint print
4228 xml-tdesc' command and give it the filename completer.
4229 * NEWS: Mention new 'maint print xml-tdesc' command.
4230
4231 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4232
4233 * target-descriptions.c (class tdesc_compatible_info): New class.
4234 (struct target_desc): Change type of compatible vector.
4235 (tdesc_compatible_p): Update for change in type of
4236 target_desc::compatible.
4237 (tdesc_compatible_info_list): New function.
4238 (tdesc_compatible_info_arch_name): New function.
4239 (tdesc_add_compatible): Update for change in type of
4240 target_desc::compatible.
4241 (print_c_tdesc::visit_pre): Likewise.
4242
4243 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4244
4245 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
4246 whitespace to underscore.
4247 (maint_print_c_tdesc_cmd): Use fake filename for target
4248 descriptions that came from the target.
4249 (_initialize_target_descriptions): Add filename command completion
4250 for 'maint print c-tdesc'.
4251
4252 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
4253
4254 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
4255 lines.
4256
4257 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
4258
4259 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
4260 lines.
4261 (dwarf2_find_location_expression): Likewise.
4262 (call_site_parameter_matches): Likewise.
4263 (dwarf2_compile_expr_to_ax): Likewise.
4264 (disassemble_dwarf_expression): Likewise.
4265 (loclist_describe_location): Likewise.
4266
4267 2020-06-23 Pedro Alves <palves@redhat.com>
4268
4269 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
4270 progspace-and-thread.h. Include scoped-mock-context.h instead.
4271 (register_to_value_test): Use scoped_mock_context.
4272 * regcache.c: Include "scoped-mock-context.h".
4273 (cooked_read_test): Don't error out if a target is already pushed.
4274 Use scoped_mock_context. Adjust.
4275 * scoped-mock-context.h: New file.
4276
4277 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4278
4279 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
4280 initializer.
4281 (ada_language::is_string_type_p): New member function.
4282 * c-lang.c (c_language_data): Delete la_is_string_type_p
4283 initializer.
4284 (cplus_language_data): Likewise.
4285 (asm_language_data): Likewise.
4286 (minimal_language_data): Likewise.
4287 * d-lang.c (d_language_data): Likewise.
4288 * f-lang.c (f_is_string_type_p): Delete function, implementation
4289 moved to f_language::is_string_type_p.
4290 (f_language_data): Delete la_is_string_type_p initializer.
4291 (f_language::is_string_type_p): New member function,
4292 implementation from f_is_string_type_p.
4293 * go-lang.c (go_is_string_type_p): Delete function, implementation
4294 moved to go_language::is_string_type_p.
4295 (go_language_data): Delete la_is_string_type_p initializer.
4296 (go_language::is_string_type_p): New member function,
4297 implementation from go_is_string_type_p.
4298 * language.c (language_defn::is_string_type_p): Define new member
4299 function.
4300 (default_is_string_type_p): Make static, add comment copied from
4301 header file.
4302 (unknown_language_data): Delete la_is_string_type_p initializer.
4303 (unknown_language::is_string_type_p): New member function.
4304 (auto_language_data): Delete la_is_string_type_p initializer.
4305 (auto_language::is_string_type_p): New member function.
4306 * language.h (language_data): Delete la_is_string_type_p field.
4307 (language_defn::is_string_type_p): Declare new function.
4308 (default_is_string_type_p): Delete desclaration, move comment to
4309 definition.
4310 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
4311 moved to m2_language::is_string_type_p.
4312 (m2_language_data): Delete la_is_string_type_p initializer.
4313 (m2_language::is_string_type_p): New member function,
4314 implementation from m2_is_string_type_p.
4315 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
4316 initializer.
4317 * opencl-lang.c (opencl_language_data): Likewise.
4318 * p-lang.c (pascal_is_string_type_p): Delete function,
4319 implementation moved to pascal_language::is_string_type_p.
4320 (pascal_language_data): Delete la_is_string_type_p initializer.
4321 (pascal_language::is_string_type_p): New member function,
4322 implementation from pascal_is_string_type_p.
4323 * rust-lang.c (rust_is_string_type_p): Delete function,
4324 implementation moved to rust_language::is_string_type_p.
4325 (rust_language_data): Delete la_is_string_type_p initializer.
4326 (rust_language::is_string_type_p): New member function,
4327 implementation from rust_is_string_type_p.
4328 * valprint.c (val_print_scalar_or_string_type_p): Update call to
4329 is_string_type_p.
4330
4331 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4332
4333 * ada-lang.c (ada_language_data): Delete la_print_typedef
4334 initializer.
4335 (ada_language::print_typedef): New member function.
4336 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
4337 (cplus_language_data): Likewise.
4338 (asm_language_data): Likewise.
4339 (minimal_language_data): Likewise.
4340 * d-lang.c (d_language_data): Likewise.
4341 * f-lang.c (f_language_data): Likewise.
4342 (f_language::print_typedef): New member function.
4343 * go-lang.c (go_language_data): Delete la_print_typedef
4344 initializer.
4345 * language.c (language_defn::print_typedef): Define member
4346 function.
4347 (unknown_language_data): Delete la_print_typedef initializer.
4348 (unknown_language::print_typedef): New member function.
4349 (auto_language_data): Delete la_print_typedef initializer.
4350 (auto_language::print_typedef): New member function.
4351 * language.h (language_data): Delete la_print_typedef field.
4352 (language_defn::print_typedef): Declare new member function.
4353 (LA_PRINT_TYPEDEF): Update call to print_typedef.
4354 (default_print_typedef): Delete declaration.
4355 * m2-lang.c (m2_language_data): Delete la_print_typedef
4356 initializer.
4357 (m2_language::print_typedef): New member function.
4358 * objc-lang.c (objc_language_data): Delete la_print_typedef
4359 initializer.
4360 * opencl-lang.c (opencl_language_data): Likewise.
4361 * p-lang.c (pascal_language_data): Likewise.
4362 (pascal_language::print_typedef): New member function.
4363 * rust-lang.c (rust_print_typedef): Delete function,
4364 implementation moved to rust_language::print_typedef.
4365 (rust_language): Delete la_print_typedef initializer.
4366 (rust_language::print_typedef): New member function,
4367 implementation from rust_print_typedef.
4368 * typeprint.c (default_print_typedef): Delete.
4369
4370 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4371
4372 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
4373 (ada_language::printstr): New member function.
4374 * c-lang.c (c_language_data): Delete la_printstr initializer.
4375 (cplus_language_data): Likewise.
4376 (asm_language_data): Likewise.
4377 (minimal_language_data): Likewise.
4378 * d-lang.c (d_language_data): Likewise.
4379 * f-lang.c (f_printstr): Rename to f_language::printstr.
4380 (f_language_data): Delete la_printstr initializer.
4381 (f_language::printstr): New member function, implementation from
4382 f_printstr.
4383 * go-lang.c (go_language_data): Delete la_printstr initializer.
4384 * language.c (language_defn::printstr): Define new member
4385 function.
4386 (unk_lang_printstr): Delete.
4387 (unknown_language_data): Delete la_printstr initializer.
4388 (unknown_language::printstr): New member function.
4389 (auto_language_data): Delete la_printstr initializer.
4390 (auto_language::printstr): New member function.
4391 * language.h (language_data): Delete la_printstr field.
4392 (language_defn::printstr): Declare new member function.
4393 (LA_PRINT_STRING): Update call to printstr.
4394 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
4395 (m2_language_data): Delete la_printstr initializer.
4396 (m2_language::printstr): New member function, implementation from
4397 m2_printstr.
4398 * objc-lang.c (objc_language_data): Delete la_printstr
4399 initializer.
4400 * opencl-lang.c (opencl_language_data): Likewise.
4401 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
4402 (pascal_language_data): Delete la_printstr initializer.
4403 (pascal_language::printstr): New member function, implementation
4404 from pascal_printstr.
4405 * p-lang.h (pascal_printstr): Delete declaration.
4406 * rust-lang.c (rust_printstr): Update header comment.
4407 (rust_language_data): Delete la_printstr initializer.
4408 (rust_language::printstr): New member function.
4409
4410 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4411
4412 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
4413 (ada_language::printchar): New member function.
4414 * c-lang.c (c_language_data): Delete la_printchar initializer.
4415 (cplus_language_data): Likewise.
4416 (asm_language_data): Likewise.
4417 (minimal_language_data): Likewise.
4418 * d-lang.c (d_language_data): Likewise.
4419 * f-lang.c (f_printchar): Rename to f_language::printchar.
4420 (f_language_data): Delete la_printchar initializer.
4421 (f_language::printchar): New member function, implementation from
4422 f_printchar.
4423 * go-lang.c (go_language_data): Delete la_printchar initializer.
4424 * language.c (unk_lang_printchar): Delete.
4425 (language_defn::printchar): Define new member function.
4426 (unknown_language_data): Delete la_printchar initializer.
4427 (unknown_language::printchar): New member function.
4428 (auto_language_data): Delete la_printchar initializer.
4429 (auto_language::printchar): New member function.
4430 * language.h (language_data): Delete la_printchar field.
4431 (language_defn::printchar): Declare new member function.
4432 (LA_PRINT_CHAR): Update call to printchar.
4433 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
4434 (m2_language::printchar): New member function.
4435 * objc-lang.c (objc_language_data): Delete la_printchar
4436 initializer.
4437 * opencl-lang.c (opencl_language_data): Likewise.
4438 * p-lang.c (pascal_language_data): Delete la_printchar
4439 initializer.
4440 (pascal_language::printchar): New member function.
4441 * rust-lang.c (rust_printchar): Rename to
4442 rust_language::printchar.
4443 (rust_language_data): Delete la_printchar initializer.
4444 (rust_language::printchar): New member function, implementation
4445 from rust_printchar.
4446
4447 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4448
4449 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
4450 (ada_language_data): Delete la_emitchar initializer.
4451 (ada_language::emitchar): New member function, implementation from
4452 emit_char.
4453 * c-lang.c (c_language_data): Delete la_emitchar initializer.
4454 (cplus_language_data): Likewise.
4455 (asm_language_data): Likewise.
4456 (minimal_language_data): Likewise.
4457 * d-lang.c (d_language_data): Likewise.
4458 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
4459 (f_language_data): Delete la_emitchar initializer.
4460 (f_language::emitchar): New member function, implementation from
4461 f_emit_char.
4462 * go-lang.c (go_language_data): Delete la_emitchar initializer.
4463 * language.c (unk_lang_emit_char): Delete.
4464 (language_defn::emitchar): New member function definition.
4465 (unknown_language_data): Delete la_emitchar initializer.
4466 (unknown_language::emitchar): New member function.
4467 (auto_language_data): Delete la_emitchar initializer.
4468 (auto_language::emitchar): New member function.
4469 * language.h (language_data): Delete la_emitchar field.
4470 (language_defn::emitchar): New member field declaration.
4471 (LA_EMIT_CHAR): Update call to emitchar.
4472 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
4473 (m2_language_data): Delete la_emitchar initializer.
4474 (m2_language::emitchar): New member function, implementation from
4475 m2_emit_char.
4476 * objc-lang.c (objc_language_data): Delete la_emitchar
4477 initializer.
4478 * opencl-lang.c (opencl_language_data): Likewise.
4479 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
4480 (pascal_language_data): Delete la_emitchar initializer.
4481 (pascal_language::emitchar): New member function, implementation
4482 from pascal_emit_char.
4483 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
4484 (rust_language_data): Delete la_emitchar initializer.
4485 (rust_language::emitchar): New member function, implementation
4486 from rust_emitchar.
4487
4488 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4489
4490 * ada-lang.c (resolve): Rename to ada_language::post_parser.
4491 (ada_language_data): Delete la_post_parser initializer.
4492 (ada_language::post_parser): New member function.
4493 * c-lang.c (c_language_data): Delete la_post_parser initializer.
4494 (cplus_language_data): Likewise.
4495 (asm_language_data): Likewise.
4496 (minimal_language_data): Likewise.
4497 * d-lang.c (d_language_data): Likewise.
4498 * f-lang.c (f_language_data): Likewise.
4499 * go-lang.c (go_language_data): Likewise.
4500 * language.c (unknown_language_data): Likewise.
4501 (auto_language_data): Likewise.
4502 * language.h (language_data): Delete la_post_parser field.
4503 (language_defn::post_parser): New member function.
4504 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
4505 * objc-lang.c (objc_language_data): Likewise.
4506 * opencl-lang.c (opencl_language_data): Likewise.
4507 * p-lang.c (pascal_language_data): Likewise.
4508 * parse.c (parse_exp_in_context): Update call to post_parser.
4509 (null_post_parser): Delete definition.
4510 * parser-defs.h (null_post_parser): Delete declaration.
4511 * rust-lang.c (rust_language_data): Delete la_post_parser
4512 initializer.
4513
4514 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4515
4516 * ada-lang.c (parse): Rename to ada_language::parser.
4517 (ada_language_data): Delete la_parser initializer.
4518 (ada_language::parser): New member function, implementation from
4519 parse.
4520 * c-lang.c (c_language_data): Delete la_parser initializer.
4521 (cplus_language_data): Likewise.
4522 (asm_language_data): Likewise.
4523 (minimal_language_data): Likewise.
4524 * d-lang.c (d_language_data): Likewise.
4525 (d_language::parser): New member function.
4526 * f-lang.c (f_language_data): Delete la_parser initializer.
4527 (f_language::parser): New member function.
4528 * go-lang.c (go_language_data): Delete la_parser initializer.
4529 (go_language::parser): New member function.
4530 * language.c (unk_lang_parser): Delete.
4531 (language_defn::parser): Define new member function.
4532 (unknown_language_data): Delete la_parser initializer.
4533 (unknown_language::parser): New member function.
4534 (auto_language_data): Delete la_parser initializer.
4535 (auto_language::parser): New member function.
4536 * language.h (language_data): Delete la_parser field.
4537 (language_defn::parser): Declare new member function.
4538 * m2-lang.c (m2_language_data): Delete la_parser initializer.
4539 (m2_language::parser): New member function.
4540 * objc-lang.c (objc_language_data): Delete la_parser initializer.
4541 * opencl-lang.c (opencl_language_data): Likewise.
4542 * p-lang.c (pascal_language_data): Likewise.
4543 (pascal_language::parser): New member function.
4544 * parse.c (parse_exp_in_context): Update call to parser.
4545 * rust-lang.c (rust_language_data): Delete la_parser initializer.
4546 (rust_language::parser): New member function.
4547
4548 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4549
4550 * top.c (print_gdb_configuration): Print --with-python-libdir
4551 configuration value.
4552
4553 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4554
4555 * NEWS: Mention change to the alias command.
4556
4557 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4558
4559 * cli/cli-cmds.c (lookup_cmd_for_default_args)
4560 (alias_command_completer)
4561 (make_alias_options_def_group): New functions.
4562 (alias_opts, alias_option_defs): New struct and array.
4563 (alias_usage_error): Update usage.
4564 (alias_command): Handles optional DEFAULT-ARGS... arguments.
4565 Use option framework.
4566 (_initialize_cli_cmds): Update alias command help.
4567 Update aliases command help.
4568 (show_user):
4569 Add NULL for new default_args lookup_cmd argument.
4570 (valid_command_p): Rename to validate_aliased_command.
4571 Add NULL for new default_args lookup_cmd argument. Verify that the
4572 aliased_command has no default args.
4573 * cli/cli-decode.c (help_cmd): Show aliases definitions.
4574 (lookup_cmd_1, lookup_cmd): New argument default_args.
4575 (add_alias_cmd):
4576 Add NULL for new default_args lookup_cmd argument.
4577 (print_help_for_command): Show default args under the layout
4578 alias some_alias = some_aliased_cmd some_alias_default_arg.
4579 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
4580 xfree default_args in destructor.
4581 * cli/cli-script.c (process_next_line, do_define_command):
4582 Add NULL for new default_args lookup_cmd argument.
4583 * command.h: Declare new default_args argument in lookup_cmd
4584 and lookup_cmd_1.
4585 * completer.c (complete_line_internal_1):
4586 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4587 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
4588 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
4589 Likewise.
4590 * infcmd.c (_initialize_infcmd): Likewise.
4591 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
4592 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
4593 * python/py-param.c (add_setshow_generic): Likewise.
4594 * remote.c (_initialize_remote): Likewise.
4595 * top.c (execute_command): Prepend default_args if command has some.
4596 (set_verbose):
4597 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4598 * tracepoint.c (validate_actionline, encode_actions_1):
4599 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4600
4601 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4602
4603 * jit.c (jit_read_descriptor): Use bool as the return type.
4604 (jit_breakpoint_re_set_internal): Use bool as the return type.
4605 Invert the return value logic; return true if the jit breakpoint
4606 has been successfully initialized.
4607 (jit_inferior_init): Update the call to
4608 jit_breakpoint_re_set_internal.
4609
4610 2020-06-22 Pedro Alves <palves@redhat.com>
4611
4612 PR gdb/25939
4613 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
4614 Use the current inferior instead. Don't return
4615 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
4616 wait again.
4617 * sol-thread.c (sol_thread_target::wait): Don't reference
4618 inferior_ptid.
4619 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
4620 (sol_update_thread_list_callback): Use the current inferior's pid
4621 instead of inferior_ptid.
4622
4623 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4624
4625 * procfs.c: Cleanup many comments.
4626
4627 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
4628 (AFTER_WATCHFLAG): Replace by value.
4629
4630 (MAIN_PROC_NAME_FORMAT): Inline ...
4631 (create_procinfo): ... here.
4632
4633 (procfs_debug_inferior): Remove SYS_exec handling.
4634 (syscall_is_exec): Likewise.
4635 (procfs_set_exec_trap): Likewise.
4636
4637 (syscall_is_lwp_exit): Inline in callers.
4638 (syscall_is_exit): Likewise.
4639 (syscall_is_exec): Likewise.
4640 (syscall_is_lwp_create): Likewise.
4641
4642 (invalidate_cache): Remove #if 0 code.
4643
4644 (make_signal_thread_runnable): Remove.
4645 (procfs_target::resume): Remove #if 0 code.
4646
4647 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4648
4649 PR gdb/25939
4650 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
4651 call ...
4652 (procfs_target::create_inferior): ... here.
4653
4654 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4655
4656 * exec.c (validate_exec_file): Ensure the build-id is up to
4657 date by calling reopen_exec_file (that checks file timestamp
4658 to decide to re-read the file).
4659
4660 2020-06-18 Pedro Alves <palves@redhat.com>
4661
4662 PR gdb/25412
4663 * gdbthread.h (delete_thread, delete_thread_silent)
4664 (find_thread_ptid): Update comments.
4665 * thread.c (current_thread_): New global.
4666 (is_current_thread): Move higher, and reimplement.
4667 (inferior_thread): Reimplement.
4668 (set_thread_exited): Use bool. Add assertions.
4669 (add_thread_silent): Simplify thread-reuse handling by always
4670 calling delete_thread.
4671 (delete_thread): Remove intro comment.
4672 (find_thread_ptid): Skip exited threads.
4673 (switch_to_thread_no_regs): Write to current_thread_.
4674 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
4675 INFERIOR_PTID. Clear current_thread_.
4676
4677 2020-06-18 Pedro Alves <palves@redhat.com>
4678
4679 * aix-thread.c (pd_update): Use switch_to_thread.
4680
4681 2020-06-18 Pedro Alves <palves@redhat.com>
4682
4683 * ravenscar-thread.c (ravenscar_thread_target): Update.
4684 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
4685 (ravenscar_thread_target::add_active_thread): ... this. Don't
4686 set m_base_ptid here. Update to avoid referencing inferior_ptid.
4687 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
4688
4689 2020-06-18 Pedro Alves <palves@redhat.com>
4690
4691 * nat/windows-nat.c (current_windows_thread): Remove.
4692 * nat/windows-nat.h (current_windows_thread): Remove.
4693 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
4694 Adjust.
4695 (display_selectors): Adjust to fetch the current
4696 windows_thread_info based on inferior_ptid.
4697 (fake_create_process): No longer write to current_windows_thread.
4698 (windows_nat_target::get_windows_debug_event):
4699 Don't set inferior_ptid or current_windows_thread.
4700 (windows_nat_target::wait): Adjust to not rely on
4701 current_windows_thread.
4702 (do_initial_windows_stuff): Now a method of windows_nat_target.
4703 Switch to the last_ptid thread.
4704 (windows_nat_target::attach): Adjust.
4705 (windows_nat_target::detach): Use switch_to_no_thread instead of
4706 writing to inferior_ptid directly.
4707 (windows_nat_target::create_inferior): Adjust.
4708
4709 2020-06-18 Pedro Alves <palves@redhat.com>
4710
4711 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
4712
4713 2020-06-18 Pedro Alves <palves@redhat.com>
4714
4715 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
4716 after creating it, instead of writing to inferior_ptid. Don't
4717 write to inferior_ptid.
4718
4719 2020-06-18 Pedro Alves <palves@redhat.com>
4720
4721 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
4722
4723 2020-06-18 Pedro Alves <palves@redhat.com>
4724
4725 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
4726 it, instead of writing to inferior_ptid.
4727
4728 2020-06-18 Pedro Alves <palves@redhat.com>
4729
4730 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
4731 to inferior_ptid.
4732
4733 2020-06-18 Pedro Alves <palves@redhat.com>
4734
4735 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
4736 instead of writing to inferior_ptid directly.
4737
4738 2020-06-18 Pedro Alves <palves@redhat.com>
4739
4740 * corelow.c (core_target::close): Use switch_to_no_thread instead
4741 of writing to inferior_ptid directly.
4742 (add_to_thread_list, core_target_open): Use switch_to_thread
4743 instead of writing to inferior_ptid directly.
4744
4745 2020-06-18 Pedro Alves <palves@redhat.com>
4746
4747 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
4748 inferior_ptid.
4749 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
4750 inferior_ptid.
4751 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
4752 inferior_ptid directly.
4753 (darwin_nat_target::init_thread_list): Switch to thread, instead
4754 of writing to inferior_ptid.
4755 (darwin_nat_target::attach): Don't write to inferior_ptid.
4756 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
4757
4758 2020-06-18 Pedro Alves <palves@redhat.com>
4759
4760 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
4761 thread.
4762 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
4763 Instead use switch_to_thread.
4764 (gnu_nat_target::detach): Use switch_to_no_thread
4765 instead of writing to inferior_ptid directly. Used passed-in
4766 inferior instead of looking up the inferior by pid.
4767
4768 2020-06-18 Pedro Alves <palves@redhat.com>
4769
4770 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
4771 inferior_ptid.
4772
4773 2020-06-18 Pedro Alves <palves@redhat.com>
4774
4775 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
4776 inferior_ptid.
4777 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
4778 thread.
4779 (nto_procfs_target::detach): Avoid referencing
4780 inferior_ptid. Use switch_to_no_thread instead of writing to
4781 inferior_ptid directly.
4782 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
4783 instead of writing to inferior_ptid directly.
4784 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
4785 to thread.
4786
4787 2020-06-18 Pedro Alves <palves@redhat.com>
4788
4789 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
4790 after creating it, instead of writing to inferior_ptid.
4791 (gdbsim_target_open): Use switch_to_no_thread instead of writing
4792 to inferior_ptid directly.
4793 (gdbsim_target::wait): Don't write to inferior_ptid.
4794
4795 2020-06-18 Pedro Alves <palves@redhat.com>
4796
4797 * remote.c (remote_target::remote_notice_new_inferior): Use
4798 switch_to_thread instead of writing to inferior_ptid directly.
4799 (remote_target::add_current_inferior_and_thread): Use
4800 switch_to_no_thread instead of writing to inferior_ptid directly.
4801 (extended_remote_target::attach): Use switch_to_inferior_no_thread
4802 and switch_to_thread instead of using set_current_inferior or
4803 writing to inferior_ptid directly.
4804
4805 2020-06-18 Pedro Alves <palves@redhat.com>
4806
4807 * tracectf.c (ctf_target_open): Switch to added thread instead of
4808 writing to inferior_ptid directly.
4809 (ctf_target::close): Use switch_to_no_thread instead of writing to
4810 inferior_ptid directly.
4811
4812 2020-06-18 Pedro Alves <palves@redhat.com>
4813
4814 * tracefile-tfile.c (tfile_target_open): Don't write to
4815 inferior_ptid directly, instead switch to added thread.
4816 (tfile_target::close): Use switch_to_no_thread instead of writing
4817 to inferior_ptid directly.
4818
4819 2020-06-18 Pedro Alves <palves@redhat.com>
4820
4821 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
4822 (procfs_target::detach): Use switch_to_no_thread
4823 instead of writing to inferior_ptid directly.
4824 (do_attach): Change return type to void. Switch to the added
4825 thread.
4826 (procfs_target::create_inferior): Switch to the added thread.
4827 (procfs_do_thread_registers): Don't write to inferior_ptid.
4828
4829 2020-06-18 Pedro Alves <palves@redhat.com>
4830
4831 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
4832 of writing to inferior_ptid.
4833 (scoped_restore_exited_inferior): Delete.
4834 (handle_vfork_child_exec_or_exit): Simplify using
4835 scoped_restore_current_pspace_and_thread. Use switch_to_thread
4836 instead of writing to inferior_ptid.
4837 (THREAD_STOPPED_BY): Delete.
4838 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
4839 (thread_stopped_by_hw_breakpoint): Delete.
4840 (save_waitstatus): Use
4841 scoped_restore_current_thread+switch_to_thread, and call
4842 target_stopped_by_watchpoint instead of
4843 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
4844 instead of thread_stopped_by_sw_breakpoint, and
4845 target_stopped_by_hw_breakpoint instead of
4846 thread_stopped_by_hw_breakpoint.
4847 (handle_inferior_event)
4848 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
4849 inferior_ptid directly, nor
4850 set_current_inferior/set_current_program_space. Use
4851 switch_to_thread / switch_to_inferior_no_thread instead.
4852
4853 2020-06-18 Pedro Alves <palves@redhat.com>
4854
4855 * target.c (generic_mourn_inferior): Use switch_to_no_thread
4856 instead of writing to inferior_ptid.
4857
4858 2020-06-18 Pedro Alves <palves@redhat.com>
4859
4860 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
4861 added thread.
4862 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
4863 to the added thread.
4864 (inf_ptrace_target::detach_success): Use switch_to_no_thread
4865 instead of writing to inferior_ptid.
4866
4867 2020-06-18 Pedro Alves <palves@redhat.com>
4868
4869 * gdbarch-selftests.c: Include "progspace-and-thread.h".
4870 (register_to_value_test): Mock a program_space too. Heap-allocate
4871 the address space. Don't write to inferior_ptid. Use
4872 switch_to_thread instead.
4873
4874 2020-06-18 Pedro Alves <palves@redhat.com>
4875
4876 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
4877 Delete.
4878 (find_signalled_thread()): New, factored out from
4879 linux_make_corefile_notes and adjusted to handle exited threads.
4880 (linux_make_corefile_notes): Adjust to use the new
4881 find_signalled_thread.
4882
4883 2020-06-18 Pedro Alves <palves@redhat.com>
4884
4885 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
4886 of saving/restoring inferior_ptid.
4887
4888 2020-06-17 Tom Tromey <tom@tromey.com>
4889
4890 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
4891 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
4892 declare.
4893 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
4894
4895 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
4896
4897 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
4898 of partial symtabs.
4899
4900 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
4901
4902 * regformats/reg-arm.dat: Remove.
4903 * regformats/reg-bfin.dat: Remove.
4904 * regformats/reg-cris.dat: Remove.
4905 * regformats/reg-crisv32.dat: Remove.
4906 * regformats/reg-m32r.dat: Remove.
4907 * regformats/reg-tilegx.dat: Remove.
4908 * regformats/reg-tilegx32.dat: Remove.
4909
4910 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
4911
4912 * features/Makefile (WHICH): Remove arm files.
4913 * regformats/arm/arm-with-iwmmxt.dat: Remove.
4914 * regformats/arm/arm-with-neon.dat: Remove.
4915 * regformats/arm/arm-with-vfpv2.dat: Remove.
4916 * regformats/arm/arm-with-vfpv3.dat: Remove.
4917
4918 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
4919
4920 * features/Makefile (XMLTOC): Remove rx.xml.
4921
4922 2020-06-17 Pedro Alves <palves@redhat.com>
4923
4924 * gdbthread.h (thread_control_state) <trap_expected> Update
4925 comments.
4926
4927 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4928
4929 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
4930 ada_language::lookup_symbol_nonlocal.
4931 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
4932 (ada_language::lookup_symbol_nonlocal): New member function,
4933 implementation from ada_lookup_symbol_nonlocal.
4934 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
4935 initializer.
4936 (cplus_language_data): Delete la_lookup_symbol_nonlocal
4937 initializer.
4938 (cplus_language::lookup_symbol_nonlocal): New member function.
4939 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
4940 (minimal_language_data) Likewise.
4941 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
4942 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
4943 initializer.
4944 (d_language::lookup_symbol_nonlocal): New member function.
4945 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
4946 initializer.
4947 (f_language::lookup_symbol_nonlocal): New member function.
4948 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
4949 initializer.
4950 * language.c (unknown_language_data): Likewise.
4951 (auto_language_data): Likewise.
4952 * language.h (language_data): Delete la_lookup_symbol_nonlocal
4953 field.
4954 (language_defn::lookup_symbol_nonlocal): New member function.
4955 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
4956 initializer.
4957 * objc-lang.c (objc_language_data): Likewise.
4958 * opencl-lang.c (opencl_language_data): Likewise.
4959 * p-lang.c (pascal_language_data): Likewise.
4960 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
4961 rust_language::lookup_symbol_nonlocal.
4962 (rust_language_data): Delete la_lookup_symbol_nonlocal
4963 initializer.
4964 (rust_language::lookup_symbol_nonlocal): New member function,
4965 implementation from rust_lookup_symbol_nonlocal.
4966 * symtab.c (lookup_symbol_aux): Update call to
4967 lookup_symbol_nonlocal.
4968 (basic_lookup_symbol_nonlocal): Rename to...
4969 (language_defn::lookup_symbol_nonlocal): ...this, and update
4970 header comment. Remove language_defn parameter, and replace with
4971 uses of `this'.
4972 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
4973
4974 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4975
4976 * ada-lang.c (ada_language_data): Delete la_value_print_inner
4977 initializer.
4978 (ada_language::value_print_inner): New member function.
4979 * c-lang.c (c_language_data): Delete la_value_print_inner
4980 initializer.
4981 (cplus_language_data): Likewise.
4982 (asm_language_data): Likewise.
4983 (minimal_language_data): Likewise.
4984 * d-lang.c (d_language_data): Likewise.
4985 (d_language::value_print_inner): New member function.
4986 * f-lang.c (f_language_data): Delete la_value_print_inner
4987 initializer.
4988 (f_language::value_print_inner): New member function.
4989 * f-lang.h (f_value_print_innner): Rename to...
4990 (f_value_print_inner): ...this (note spelling of 'inner').
4991 * f-valprint.c (f_value_print_innner): Rename to...
4992 (f_value_print_inner): ...this (note spelling of 'inner').
4993 * go-lang.c (go_language_data): Delete la_value_print_inner
4994 initializer.
4995 (go_language::value_print_inner): New member function.
4996 * language.c (language_defn::value_print_inner): Define new member
4997 function.
4998 (unk_lang_value_print_inner): Delete.
4999 (unknown_language_data): Delete la_value_print_inner initializer.
5000 (unknown_language::value_print_inner): New member function.
5001 (auto_language_data): Delete la_value_print_inner initializer.
5002 (auto_language::value_print_inner): New member function.
5003 * language.h (language_data): Delete la_value_print_inner field.
5004 (language_defn::value_print_inner): Delcare new member function.
5005 * m2-lang.c (m2_language_data): Delete la_value_print_inner
5006 initializer.
5007 (m2_language::value_print_inner): New member function.
5008 * objc-lang.c (objc_language_data): Delete la_value_print_inner
5009 initializer.
5010 * opencl-lang.c (opencl_language_data): Likewise.
5011 * p-lang.c (pascal_language_data): Likewise.
5012 (pascal_language::value_print_inner): New member function.
5013 * rust-lang.c (rust_language_data): Delete la_value_print_inner
5014 initializer.
5015 (rust_language::value_print_inner): New member function.
5016 * valprint.c (do_val_print): Update call to value_print_inner.
5017
5018 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5019
5020 * ada-lang.c (ada_language_data): Delete la_value_print
5021 initializer.
5022 (ada_language::value_print): New member function.
5023 * c-lang.c (c_language_data): Delete la_value_print initializer.
5024 (cplus_language_data): Likewise.
5025 (asm_language_data): Likewise.
5026 (minimal_language_data): Likewise.
5027 * d-lang.c (d_language_data): Likewise.
5028 * f-lang.c (f_language_data): Likewise.
5029 * go-lang.c (go_language_data): Likewise.
5030 * language.c (unk_lang_value_print): Delete.
5031 (language_defn::value_print): Define new member function.
5032 (unknown_language_data): Delete la_value_print initializer.
5033 (unknown_language::value_print): New member function.
5034 (auto_language_data): Delete la_value_print initializer.
5035 (auto_language::value_print): New member function.
5036 * language.h (language_data): Delete la_value_print field.
5037 (language_defn::value_print): Declare new member function.
5038 (LA_VALUE_PRINT): Update call to value_print.
5039 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
5040 * objc-lang.c (objc_language_data): Likewise.
5041 * opencl-lang.c (opencl_language_data): Likewise.
5042 * p-lang.c (pascal_language_data): Likewise.
5043 (pascal_language::value_print): New member function.
5044 * rust-lang.c (rust_language_data): Delete la_value_print
5045 initializer.
5046
5047 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5048
5049 * ada-lang.c (ada_watch_location_expression): Rename to
5050 ada_language::watch_location_expression.
5051 (ada_language_data): Delete la_watch_location_expression
5052 initializer.
5053 (ada_language::watch_location_expression): New member function,
5054 implementation from ada_watch_location_expression.
5055 * breakpoint.c (watch_command_1): Update call to
5056 watch_location_expression.
5057 * c-lang.c (c_watch_location_expression): Rename to
5058 language_defn::watch_location_expression.
5059 (c_language_data): Delete la_watch_location_expression
5060 initializer.
5061 (cplus_language_data): Likewise.
5062 (asm_language_data): Likewise.
5063 (minimal_language_data): Likewise.
5064 * c-lang.h (c_watch_location_expression): Delete declaration.
5065 * d-lang.c (d_language_data): Delete la_watch_location_expression
5066 initializer.
5067 * f-lang.c (f_language_data): Likewise.
5068 * go-lang.c (go_language_data): Likewise.
5069 * language.c (language_defn::watch_location_expression): Member
5070 function implementation from c_watch_location_expression.
5071 (unknown_language_data): Delete la_watch_location_expression
5072 initializer.
5073 (auto_language_data): Likewise.
5074 * language.h (language_data): Delete la_watch_location_expression
5075 field.
5076 (language_defn::watch_location_expression): Declare new member
5077 function.
5078 * m2-lang.c (m2_language_data): Delete
5079 la_watch_location_expression initializer.
5080 * objc-lang.c (objc_language_data): Likewise.
5081 * opencl-lang.c (opencl_language_data): Likewise.
5082 * p-lang.c (pascal_language_data): Likewise.
5083 * rust-lang.c (rust_watch_location_expression): Rename to
5084 rust_language::watch_location_expression.
5085 (rust_language_data): Delete la_watch_location_expression
5086 initializer.
5087 (rust_language::watch_location_expression): New member function,
5088 implementation from rust_watch_location_expression.
5089
5090 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5091
5092 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
5093 ada_language::collect_symbol_completion_matches.
5094 (ada_language_data): Delete la_collect_symbol_completion_matches
5095 initializer.
5096 (ada_language::collect_symbol_completion_matches): New member
5097 function, implementation from
5098 ada_collect_symbol_completion_matches.
5099 * c-lang.c (c_language_data): Delete
5100 la_collect_symbol_completion_matches initializer.
5101 (cplus_language_data): Likewise.
5102 (asm_language_data): Likewise.
5103 (minimal_language_data): Likewise.
5104 * d-lang.c (d_language_data): Likewise.
5105 * f-lang.c (f_collect_symbol_completion_matches): Rename to
5106 f_language::collect_symbol_completion_matches.
5107 (f_language_data): Delete la_collect_symbol_completion_matches
5108 initializer.
5109 (f_language::collect_symbol_completion_matches) New member
5110 function, implementation from f_collect_symbol_completion_matches.
5111 * go-lang.c (go_language_data): Delete
5112 la_collect_symbol_completion_matches initializer.
5113 * language.c (unknown_language_data): Likewise.
5114 (auto_language_data): Likewise.
5115 * language.h (language_data): Delete
5116 la_collect_symbol_completion_matches field.
5117 (language_defn::collect_symbol_completion_matches): New member
5118 function.
5119 * m2-lang.c (m2_language_data): Delete
5120 la_collect_symbol_completion_matches initializer.
5121 * objc-lang.c (objc_language_data): Likewise.
5122 * opencl-lang.c (opencl_language_data): Likewise.
5123 * p-lang.c (pascal_language_data): Likewise.
5124 * rust-lang.c (rust_language_data): Likewise.
5125 * symtab.c (default_collect_symbol_completion_matches): Delete.
5126 (collect_symbol_completion_matches): Update call to
5127 collect_symbol_completion_matches.
5128 (collect_symbol_completion_matches_type): Likewise.
5129 * symtab.h (default_collect_symbol_completion_matches): Delete
5130 declaration.
5131
5132 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5133
5134 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
5135 (ada_language_data): Delete la_word_break_characters initializer.
5136 (ada_language::word_break_characters): New member function.
5137 * c-lang.c (c_language_data): Delete la_word_break_characters
5138 initializer.
5139 (cplus_language_data): Likewise.
5140 (asm_language_data): Likewise.
5141 (minimal_language_data): Likewise.
5142 * completer.c: Update global comment.
5143 (advance_to_expression_complete_word_point): Update call to
5144 word_break_characters.
5145 (complete_files_symbols): Likewise.
5146 (complete_line_internal_1): Likewise.
5147 (default_completer_handle_brkchars): Likewise.
5148 (skip_quoted_chars): Likewise.
5149 * d-lang.c (d_language_data): Delete la_word_break_characters
5150 initializer.
5151 * f-lang.c (f_word_break_characters): Delete.
5152 (f_language_data): Delete la_word_break_characters initializer.
5153 (f_language::word_break_characters): New member function.
5154 * go-lang.c (go_language_data): Delete la_word_break_characters
5155 initializer.
5156 * language.c (unknown_language_data): Likewise.
5157 (auto_language_data): Likewise.
5158 * language.h (default_word_break_characters): Move declaration to
5159 earlier in the file.
5160 (language_data): Delete la_word_break_characters field.
5161 (language_defn::word_break_characters): New member function.
5162 * m2-lang.c (m2_language_data): Delete la_word_break_characters
5163 initializer.
5164 * objc-lang.c (objc_language_data): Likewise.
5165 * opencl-lang.c (opencl_language_data): Likewise.
5166 * p-lang.c (pascal_language_data): Likewise.
5167 * rust-lang.c (rust_language_data): Likewise.
5168
5169 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5170
5171 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
5172 (ada_language_data): Delete la_get_symbol_name_matcher
5173 initializer.
5174 (language_defn::get_symbol_name_matcher_inner): New member
5175 function.
5176 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
5177 initializer.
5178 (cplus_language_data): Likewise.
5179 (cplus_language::get_symbol_name_matcher_inner): New member
5180 function.
5181 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
5182 (minimal_language_data): Likewise.
5183 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
5184 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
5185 initializer.
5186 * dictionary.c (iter_match_first_hashed): Update call to
5187 get_symbol_name_matcher.
5188 (iter_match_next_hashed): Likewise.
5189 (iter_match_next_linear): Likewise.
5190 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
5191 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
5192 initializer.
5193 (f_language::get_symbol_name_matcher_inner): New member function.
5194 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
5195 initializer.
5196 * language.c (default_symbol_name_matcher): Update header comment,
5197 make static.
5198 (language_defn::get_symbol_name_matcher): New definition.
5199 (language_defn::get_symbol_name_matcher_inner): Likewise.
5200 (get_symbol_name_matcher): Delete.
5201 (unknown_language_data): Delete la_get_symbol_name_matcher
5202 initializer.
5203 (auto_language_data): Likewise.
5204 * language.h (language_data): Delete la_get_symbol_name_matcher
5205 field.
5206 (language_defn::get_symbol_name_matcher): New member function.
5207 (language_defn::get_symbol_name_matcher_inner): Likewise.
5208 (default_symbol_name_matcher): Delete declaration.
5209 * linespec.c (find_methods): Update call to
5210 get_symbol_name_matcher.
5211 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
5212 initializer.
5213 * minsyms.c (lookup_minimal_symbol): Update call to
5214 get_symbol_name_matcher.
5215 (iterate_over_minimal_symbols): Likewise.
5216 * objc-lang.c (objc_language_data): Delete
5217 la_get_symbol_name_matcher initializer.
5218 * opencl-lang.c (opencl_language_data): Likewise.
5219 * p-lang.c (pascal_language_data): Likewise.
5220 * psymtab.c (psymbol_name_matches): Update call to
5221 get_symbol_name_matcher.
5222 * rust-lang.c (rust_language_data): Delete
5223 la_get_symbol_name_matcher initializer.
5224 * symtab.c (symbol_matches_search_name): Update call to
5225 get_symbol_name_matcher.
5226 (compare_symbol_name): Likewise.
5227
5228 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5229
5230 * ada-lang.c (ada_language_data): Delete la_compute_program
5231 initializer.
5232 * c-lang.c (c_language_data): Likewise.
5233 (c_language::compute_program): New member function.
5234 (cplus_language_data): Delete la_compute_program initializer.
5235 (cplus_language::compute_program): New member function.
5236 (asm_language_data): Delete la_compute_program initializer.
5237 (minimal_language_data): Likewise.
5238 * c-lang.h (c_compute_program): Update comment.
5239 (cplus_compute_program): Likewise.
5240 * compile/compile-c-support.c (c_compute_program): Likewise.
5241 (cplus_compute_program): Likewise.
5242 * compile/compile.c (compile_to_object): Update call to
5243 la_compute_program.
5244 * d-lang.c (d_language_data): Delete la_compute_program
5245 initializer.
5246 * f-lang.c (f_language_data): Likewise.
5247 * go-lang.c (go_language_data): Likewise.
5248 * language.c (unknown_language_data): Likewise.
5249 (auto_language_data): Likewise.
5250 * language.h (language_data): Delete la_compute_program field.
5251 (language_defn::compute_program): New member function.
5252 * m2-lang.c (m2_language_data): Delete la_compute_program
5253 initializer.
5254 * objc-lang.c (objc_language_data): Likewise.
5255 * opencl-lang.c (opencl_language_data): Likewise.
5256 * p-lang.c (pascal_language_data): Likewise.
5257 * rust-lang.c (rust_language_data): Likewise.
5258
5259 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5260
5261 * ada-lang.c (ada_language_data) Delete
5262 la_class_name_from_physname initializer.
5263 * c-lang.c (c_language_data): Likewise.
5264 (cplus_language_data): Likewise.
5265 (cplus_language::class_name_from_physname): New member function.
5266 (asm_language_data): Delete la_class_name_from_physname
5267 initializer.
5268 (minimal_language_data): Likewise.
5269 * d-lang.c (d_language_data): Likewise.
5270 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
5271 method on language_defn class.
5272 (guess_full_die_structure_name): Likewise.
5273 * f-lang.c (f_language_data): Delete la_class_name_from_physname
5274 initializer.
5275 * go-lang.c (go_language_data): Likewise.
5276 * language.c (language_class_name_from_physname): Delete.
5277 (unk_lang_class_name): Delete.
5278 (unknown_language_data): Delete la_class_name_from_physname
5279 initializer.
5280 (auto_language_data): Likewise.
5281 * language.h (language_data): Delete la_class_name_from_physname
5282 field.
5283 (language_defn::class_name_from_physname): New function.
5284 (language_class_name_from_physname): Delete declaration.
5285 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
5286 initializer.
5287 * objc-lang.c (objc_language_data): Likewise.
5288 * opencl-lang.c (opencl_language_data): Likewise.
5289 * p-lang.c (pascal_language_data): Likewise.
5290 * rust-lang.c (rust_language_data): Likewise.
5291
5292 2020-06-16 Tom Tromey <tom@tromey.com>
5293
5294 * tui/tui-data.h (STATUS_NAME): New macro.
5295 * tui/tui-layout.c (tui_remove_some_windows)
5296 (initialize_known_windows, tui_register_window)
5297 (tui_layout_split::remove_windows, initialize_layouts)
5298 (tui_new_layout_command): Don't use hard-coded window names.
5299
5300 2020-06-16 Tom Tromey <tom@tromey.com>
5301
5302 PR tui/25348:
5303 * tui/tui.c (tui_ensure_readline_initialized): Rename from
5304 tui_initialize_readline. Only run once. Call rl_initialize.
5305 * tui/tui.h (tui_ensure_readline_initialized): Rename from
5306 tui_initialize_readline.
5307 * tui/tui-io.c (tui_setup_io): Call
5308 tui_ensure_readline_initialized.
5309 * tui/tui-interp.c (tui_interp::init): Update.
5310
5311 2020-06-16 Tom Tromey <tom@tromey.com>
5312
5313 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
5314 Also preserve the status window.
5315
5316 2020-06-16 Tom Tromey <tom@tromey.com>
5317
5318 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
5319 where m_window==nullptr.
5320
5321 2020-06-15 Tom Tromey <tromey@adacore.com>
5322
5323 * windows-nat.c (windows_nat::handle_output_debug_string):
5324 Update.
5325 (windows_nat::handle_ms_vc_exception): Update.
5326 * target.h (target_read_string): Change API.
5327 * target.c (target_read_string): Change API.
5328 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
5329 Update.
5330 * solib-frv.c (frv_current_sos): Update.
5331 * solib-dsbt.c (dsbt_current_sos): Update.
5332 * solib-darwin.c (darwin_current_sos): Update.
5333 * linux-thread-db.c (inferior_has_bug): Update.
5334 * expprint.c (print_subexp_standard): Update.
5335 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
5336 (ada_exception_message_1): Update.
5337
5338 2020-06-15 Tom Tromey <tromey@adacore.com>
5339
5340 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
5341
5342 2020-06-15 Tom Tromey <tromey@adacore.com>
5343
5344 * valprint.c (read_string): Update comment.
5345 * target.c (MIN): Remove.
5346 (target_read_string): Rewrite.
5347
5348 2020-06-15 Tom Tromey <tromey@adacore.com>
5349
5350 * corefile.c (read_memory_string): Remove.
5351 * ada-valprint.c (ada_value_print_ptr): Update.
5352 * ada-lang.h (ada_tag_name): Change return type.
5353 * ada-lang.c (type_from_tag): Update.
5354 (ada_tag_name_from_tsd): Change return type. Use
5355 target_read_string.
5356 (ada_tag_name): Likewise.
5357 * gdbcore.h (read_memory_string): Don't declare.
5358
5359 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
5360
5361 * symtab.c (rbreak_command): Ignore Windows drive colon.
5362
5363 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
5364
5365 * NEWS: Mention removed GDBserver host support.
5366
5367 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
5368
5369 * features/riscv/rebuild-csr-xml.sh: Updated.
5370
5371 2020-06-11 Tom Tromey <tom@tromey.com>
5372
5373 PR gdb/18318:
5374 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
5375
5376 2020-06-09 Jonny Grant <jg@jguk.org>
5377 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
5378
5379 * main.c (captured_main_1): Don't print new line after help.
5380 (print_gdb_help): add mailing list and IRC channel information
5381 to --help. Add new lines between items in the footer. Remove
5382 quotes around bug url.
5383
5384 2020-06-11 Keith Seitz <keiths@redhat.com>
5385
5386 PR gdb/21356
5387 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
5388 Resolve typedefs for type length calculations.
5389
5390 2020-06-10 Tom de Vries <tdevries@suse.de>
5391
5392 PR ada/24713
5393 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
5394 (write_psymbols): Enable .gdb_index for ada.
5395 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
5396 ada.
5397
5398 2020-06-10 Tom de Vries <tdevries@suse.de>
5399
5400 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
5401 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
5402 namei" instead of "const char *name" argument.
5403 (dw2_map_matching_symbols): Use "offset_type namei" variant of
5404 dw2_symtab_iter_init.
5405
5406 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
5407
5408 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
5409 to use type::field and field::type instead.
5410
5411 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
5412
5413 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
5414 to use field::type instead.
5415
5416 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
5417
5418 * gdbtypes.h (struct field) <type, set_type>: New methods.
5419 Rename `type` field to...
5420 <m_type>: ... this. Change references throughout to use type or
5421 set_type methods.
5422 (FIELD_TYPE): Use field::type. Change call sites that modify
5423 the field's type to use field::set_type instead.
5424
5425 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
5426
5427 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
5428 to use type::index_type instead.
5429
5430 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
5431
5432 * gdbtypes.h (struct type) <index_type, set_index_type>: New
5433 methods.
5434 (TYPE_INDEX_TYPE): Use type::index_type.
5435 * gdbtypes.c (create_array_type_with_stride): Likewise.
5436
5437 2020-06-07 Tom Tromey <tom@tromey.com>
5438
5439 * valprint.c (generic_val_print_float): Remove "embedded_offset"
5440 parameter.
5441 (generic_value_print): Update.
5442
5443 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
5444
5445 Revert commit 982a38f60b0.
5446 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
5447
5448 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
5449
5450 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
5451 avoid use after free.
5452
5453 2020-06-05 Tom de Vries <tdevries@suse.de>
5454
5455 * NEWS: Fix typos.
5456
5457 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
5458
5459 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
5460 the per_bfd object.
5461 (dwarf2_read_debug_names): Likewise.
5462 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
5463 object when re-using a per_bfd object with an index.
5464
5465 2020-06-03 Tom de Vries <tdevries@suse.de>
5466
5467 PR symtab/26046
5468 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
5469 children for C++.
5470 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
5471 DW_TAG_subprogram.
5472
5473 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5474
5475 * ada-lang.c (ada_language_data): Delete skip_trampoline
5476 initializer.
5477 * c-lang.c (c_language_data): Likewise.
5478 (cplus_language_data): Likewise.
5479 (cplus_language::skip_trampoline): New member function.
5480 (asm_language_data): Delete skip_trampoline initializer.
5481 (minimal_language_data): Likewise.
5482 * d-lang.c (d_language_data): Likewise.
5483 * f-lang.c (f_language_data): Likewise.
5484 * go-lang.c (go_language_data): Likewise.
5485 * language.c (unk_lang_trampoline): Delete function.
5486 (skip_language_trampoline): Update.
5487 (unknown_language_data): Delete skip_trampoline initializer.
5488 (auto_language_data): Likewise.
5489 * language.h (language_data): Delete skip_trampoline field.
5490 (language_defn::skip_trampoline): New function.
5491 * m2-lang.c (m2_language_data): Delete skip_trampoline
5492 initializer.
5493 * objc-lang.c (objc_skip_trampoline): Delete function, move
5494 implementation to objc_language::skip_trampoline.
5495 (objc_language_data): Delete skip_trampoline initializer.
5496 (objc_language::skip_trampoline): New member function with
5497 implementation from objc_skip_trampoline.
5498 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
5499 initializer.
5500 * p-lang.c (pascal_language_data): Likewise.
5501 * rust-lang.c (rust_language_data): Likewise.
5502
5503 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5504
5505 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
5506 (ada_language::demangle): New member function.
5507 * c-lang.c (c_language_data): Delete la_demangle initializer.
5508 (cplus_language_data): Delete la_demangle initializer.
5509 (cplus_language::demangle): New member function.
5510 (asm_language_data): Delete la_demangle initializer.
5511 (minimal_language_data): Delete la_demangle initializer.
5512 * d-lang.c (d_language_data): Delete la_demangle initializer.
5513 (d_language::demangle): New member function.
5514 * f-lang.c (f_language_data): Delete la_demangle initializer.
5515 (f_language::demangle): New member function.
5516 * go-lang.c (go_language_data): Delete la_demangle initializer.
5517 (go_language::demangle): New member function.
5518 * language.c (language_demangle): Update.
5519 (unk_lang_demangle): Delete.
5520 (unknown_language_data): Delete la_demangle initializer.
5521 (unknown_language::demangle): New member function.
5522 (auto_language_data): Delete la_demangle initializer.
5523 (auto_language::demangle): New member function.
5524 * language.h (language_data): Delete la_demangle field.
5525 (language_defn::demangle): New function.
5526 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
5527 * objc-lang.c (objc_language_data): Delete la_demangle
5528 initializer.
5529 (objc_language::demangle): New member function.
5530 * opencl-lang.c (opencl_language_data): Delete la_demangle
5531 initializer.
5532 * p-lang.c (pascal_language_data): Likewise.
5533 * rust-lang.c (rust_language_data): Likewise.
5534 (rust_language::demangle): New member function.
5535
5536 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5537
5538 * ada-lang.c (ada_language_data): Delete la_print_type
5539 initializer.
5540 (ada_language::print_type): New member function.
5541 * c-lang.c (c_language_data): Delete la_print_type initializer.
5542 (c_language::print_type): New member function.
5543 (cplus_language_data): Delete la_print_type initializer.
5544 (cplus_language::print_type): New member function.
5545 (asm_language_data): Delete la_print_type initializer.
5546 (asm_language::print_type): New member function.
5547 (minimal_language_data): Delete la_print_type initializer.
5548 (minimal_language::print_type): New member function.
5549 * d-lang.c (d_language_data): Delete la_print_type initializer.
5550 (d_language::print_type): New member function.
5551 * f-lang.c (f_language_data): Delete la_print_type initializer.
5552 (f_language::print_type): New member function.
5553 * go-lang.c (go_language_data): Delete la_print_type initializer.
5554 (go_language::print_type): New member function.
5555 * language.c (unk_lang_print_type): Delete.
5556 (unknown_language_data): Delete la_print_type initializer.
5557 (unknown_language::print_type): New member function.
5558 (auto_language_data): Delete la_print_type initializer.
5559 (auto_language::print_type): New member function.
5560 * language.h (language_data): Delete la_print_type field.
5561 (language_defn::print_type): New function.
5562 (LA_PRINT_TYPE): Update.
5563 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
5564 (m2_language::print_type): New member function.
5565 * objc-lang.c (objc_language_data): Delete la_print_type
5566 initializer.
5567 (objc_language::print_type): New member function.
5568 * opencl-lang.c (opencl_print_type): Delete, implementation moved
5569 to opencl_language::print_type.
5570 (opencl_language_data): Delete la_print_type initializer.
5571 (opencl_language::print_type): New member function, implementation
5572 from opencl_print_type.
5573 * p-lang.c (pascal_language_data): Delete la_print_type
5574 initializer.
5575 (pascal_language::print_type): New member function.
5576 * rust-lang.c (rust_print_type): Delete, implementation moved to
5577 rust_language::print_type.
5578 (rust_language_data): Delete la_print_type initializer.
5579 (rust_language::print_type): New member function, implementation
5580 from rust_print_type.
5581
5582 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5583
5584 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
5585 implementation moves to...
5586 (ada_language::sniff_from_mangled_name): ...here. Update return
5587 type.
5588 (ada_language_data): Delete la_sniff_from_mangled_name
5589 initializer.
5590 * c-lang.c (c_language_data): Likewise.
5591 (cplus_language_data): Likewise.
5592 (cplus_language::sniff_from_mangled_name): New member function,
5593 implementation taken from gdb_sniff_from_mangled_name.
5594 (asm_language_data): Delete la_sniff_from_mangled_name
5595 initializer.
5596 (minimal_language_data): Likewise.
5597 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
5598 implementation moves to cplus_language::sniff_from_mangled_name.
5599 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
5600 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
5601 moves to...
5602 (d_language::sniff_from_mangled_name): ...here.
5603 (d_language_data): Delete la_sniff_from_mangled_name initializer.
5604 * f-lang.c (f_language_data): Likewise.
5605 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
5606 moves to...
5607 (go_language::sniff_from_mangled_name): ...here.
5608 (go_language_data): Delete la_sniff_from_mangled_name initializer.
5609 * language.c (language_sniff_from_mangled_name): Delete.
5610 (unknown_language_data): Delete la_sniff_from_mangled_name
5611 initializer.
5612 (auto_language_data): Likewise.
5613 * language.h (language_data): Delete la_sniff_from_mangled_name
5614 field.
5615 (language_defn::sniff_from_mangled_name): New function.
5616 (language_sniff_from_mangled_name): Delete declaration.
5617 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
5618 field.
5619 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
5620 implementation moves to...
5621 (objc_language::sniff_from_mangled_name): ...here.
5622 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
5623 * opencl-lang.c (opencl_language_data): Likewise.
5624 * p-lang.c (pascal_language_data): Likewise.
5625 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
5626 implementation moves to...
5627 (rust_language::sniff_from_mangled_name): ...here.
5628 (rust_language_data): Delete la_sniff_from_mangled_name
5629 initializer.
5630 * symtab.c (symbol_find_demangled_name): Call
5631 sniff_from_mangled_name member function.
5632
5633 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5634
5635 * ada-lang.c (ada_language_data): Delete la_search_name_hash
5636 initializer.
5637 * c-lang.c (c_language_data): Likewise.
5638 (cplus_language_data): Likewise.
5639 (cplus_language::search_name_hash): New member function.
5640 (asm_language_data): Delete la_search_name_hash initializer.
5641 (minimal_language_data): Likewise.
5642 * d-lang.c (d_language_data): Likewise.
5643 * dictionary.c (default_search_name_hash): Rename to...
5644 (language_defn::search_name_hash): ...this.
5645 * f-lang.c (f_language_data): Likewise.
5646 (f_language::search_name_hash): New member function.
5647 * go-lang.c (go_language_data): Delete la_search_name_hash
5648 initializer.
5649 * language.c (unknown_language_data): Likewise.
5650 (auto_language_data): Likewise.
5651 * language.h (struct language_data): Delete la_search_name_hash
5652 field.
5653 (language_defn::search_name_hash): Declare new member function.
5654 (default_search_name_hash): Delete declaration.
5655 * m2-lang.c (m2_language_data): Delete la_search_name_hash
5656 initializer.
5657 * objc-lang.c (objc_language_data): Likewise.
5658 * opencl-lang.c (opencl_language_data): Likewise.
5659 * p-lang.c (pascal_language_data): Likewise.
5660 * rust-lang.c (rust_language_data): Likewise.
5661 * symtab.c (search_name_hash): Update call.
5662
5663 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5664
5665 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
5666 initializer.
5667 * c-lang.c (class compile_instance): Declare.
5668 (c_language_data): Delete la_get_compile_instance initializer.
5669 (c_language::get_compile_instance): New member function.
5670 (cplus_language_data): Delete la_get_compile_instance initializer.
5671 (cplus_language::get_compile_instance): New member function.
5672 (asm_language_data): Delete la_get_compile_instance initializer.
5673 (minimal_language_data): Likewise.
5674 * c-lang.h (c_get_compile_context): Update comment.
5675 (cplus_get_compile_context): Update comment.
5676 * compile/compile.c (compile_to_object): Update calls, don't rely
5677 on function pointer being NULL.
5678 * d-lang.c (d_language_data): Delete la_get_compile_instance
5679 initializer.
5680 * f-lang.c (f_language_data): Likewise.
5681 * go-lang.c (go_language_data): Likewise.
5682 * language.c (unknown_language_data): Likewise.
5683 (auto_language_data): Likewise.
5684 * language.h (language_data): Delete la_get_compile_instance field.
5685 (language_defn::get_compile_instance): New member function.
5686 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
5687 initializer.
5688 * objc-lang.c (objc_language_data): Likewise.
5689 * opencl-lang.c (opencl_language_data): Likewise.
5690 * p-lang.c (pascal_language_data): Likewise.
5691 * rust-lang.c (rust_language_data): Likewise.
5692
5693 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5694
5695 * ada-lang.c (ada_add_all_symbols): Update comment.
5696 (ada_iterate_over_symbols): Delete, move implementation to...
5697 (ada_language::iterate_over_symbols): ...here, a new member
5698 function, rewrite to use range based for loop.
5699 (ada_language_data): Delete la_iterate_over_symbols initializer.
5700 * c-lang.c (c_language_data): Likewise.
5701 (cplus_language_data): Likewise.
5702 (asm_language_data): Likewise.
5703 (minimal_language_data): Likewise.
5704 * d-lang.c (d_language_data): Likewise.
5705 * f-lang.c (f_language_data): Likewise.
5706 * go-lang.c (go_language_data): Likewise.
5707 * language.c (unknown_language_data): Likewise.
5708 (auto_language_data): Likewise.
5709 * language.h (language_data): Delete la_iterate_over_symbols field.
5710 (language_defn::iterate_over_symbols): New member function.
5711 (LA_ITERATE_OVER_SYMBOLS): Update.
5712 * linespec.c (iterate_over_all_matching_symtabs): Update.
5713 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
5714 initializer.
5715 * objc-lang.c (objc_language_data): Likewise.
5716 * opencl-lang.c (opencl_language_data): Likewise.
5717 * p-lang.c (pascal_language_data): Likewise.
5718 * rust-lang.c (rust_language_data): Likewise.
5719
5720 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5721
5722 * ada-lang.c (ada_language_data): Delete
5723 la_lookup_transparent_type initializer.
5724 * c-lang.c (c_language_data): Likewise.
5725 (cplus_language_data): Likewise.
5726 (cplus_language::lookup_transparent_type): New member function.
5727 (asm_language_data): Delete la_lookup_transparent_type
5728 initializer.
5729 (minimal_language_data): Likewise.
5730 * d-lang.c (d_language_data): Likewise.
5731 * f-lang.c (f_language_data): Likewise.
5732 * go-lang.c (go_language_data): Likewise.
5733 * language.c (unknown_language_data): Likewise.
5734 (auto_language_data): Likewise.
5735 * language.h (struct language_data): Delete
5736 la_lookup_transparent_type field.
5737 (language_defn::lookup_transparent_type): New member function.
5738 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
5739 initializer.
5740 * objc-lang.c (objc_language_data): Likewise.
5741 * opencl-lang.c (opencl_language_data): Likewise.
5742 * p-lang.c (pascal_language_data): Likewise.
5743 * rust-lang.c (rust_language_data): Likewise.
5744 * symtab.c (symbol_matches_domain): Update call.
5745
5746 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5747
5748 * ada-lang.c (ada_language_arch_info): Delete function, move
5749 implementation to...
5750 (ada_language::language_arch_info): ...here, a new member
5751 function.
5752 (ada_language_data): Delete la_language_arch_info.
5753 * c-lang.c (c_language_data): Likewise.
5754 (c_language::language_arch_info): New member function.
5755 (cplus_language_arch_info): Delete function, move
5756 implementation to...
5757 (cplus_language::language_arch_info): ...here, a new member
5758 function.
5759 (cplus_language_data): Delete la_language_arch_info.
5760 (asm_language_data): Likewise.
5761 (asm_language::language_arch_info): New member function.
5762 (minimal_language_data): Delete la_language_arch_info.
5763 (minimal_language::language_arch_info): New member function.
5764 * d-lang.c (d_language_arch_info): Delete function, move
5765 implementation to...
5766 (d_language::language_arch_info): ...here, a new member
5767 function.
5768 (d_language_data): Delete la_language_arch_info.
5769 * f-lang.c (f_language_arch_info): Delete function, move
5770 implementation to...
5771 (f_language::language_arch_info): ...here, a new member
5772 function.
5773 (f_language_data): Delete la_language_arch_info.
5774 * go-lang.c (go_language_arch_info): Delete function, move
5775 implementation to...
5776 (go_language::language_arch_info): ...here, a new member
5777 function.
5778 (go_language_data): Delete la_language_arch_info.
5779 * language.c (unknown_language_data): Likewise.
5780 (unknown_language::language_arch_info): New member function.
5781 (auto_language_data): Delete la_language_arch_info.
5782 (auto_language::language_arch_info): New member function.
5783 (language_gdbarch_post_init): Update call to
5784 la_language_arch_info.
5785 * language.h (language_data): Delete la_language_arch_info
5786 function pointer.
5787 (language_defn::language_arch_info): New function.
5788 * m2-lang.c (m2_language_arch_info): Delete function, move
5789 implementation to...
5790 (m2_language::language_arch_info): ...here, a new member
5791 function.
5792 (m2_language_data): Delete la_language_arch_info.
5793 * objc-lang.c (objc_language_arch_info): Delete function, move
5794 implementation to...
5795 (objc_language::language_arch_info): ...here, a new member
5796 function.
5797 (objc_language_data): Delete la_language_arch_info.
5798 * opencl-lang.c (opencl_language_arch_info): Delete function, move
5799 implementation to...
5800 (opencl_language::language_arch_info): ...here, a new member
5801 function.
5802 (opencl_language_data): Delete la_language_arch_info.
5803 * p-lang.c (pascal_language_arch_info): Delete function, move
5804 implementation to...
5805 (pascal_language::language_arch_info): ...here, a new member
5806 function.
5807 (pascal_language_data): Delete la_language_arch_info.
5808 * rust-lang.c (rust_language_arch_info): Delete function, move
5809 implementation to...
5810 (rust_language::language_arch_info): ...here, a new member
5811 function.
5812 (rust_language_data): Delete la_language_arch_info.
5813
5814 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5815
5816 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
5817 initializer.
5818 * c-lang.c (c_language_data): Likewise.
5819 (cplus_language_data): Likewise.
5820 (cplus_language::pass_by_reference_info): New method.
5821 (asm_language_data): Delete la_pass_by_reference initializer.
5822 (minimal_language_data): Likewise.
5823 * cp-abi.c (cp_pass_by_reference): Remove use of
5824 default_pass_by_reference.
5825 * d-lang.c (d_language_data): Likewise.
5826 * f-lang.c (f_language_data): Likewise.
5827 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
5828 default_pass_by_reference.
5829 * go-lang.c (go_language_data): Likewise.
5830 * language.c (language_pass_by_reference): Update.
5831 (default_pass_by_reference): Delete.
5832 (unknown_language_data): Delete la_pass_by_reference
5833 initializer.
5834 (auto_language_data): Likewise.
5835 * language.h (struct language_data): Delete la_pass_by_reference
5836 field.
5837 (language_defn::pass_by_reference_info): New member function.
5838 (default_pass_by_reference): Delete declaration.
5839 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
5840 initializer.
5841 * objc-lang.c (objc_language_data): Likewise.
5842 * opencl-lang.c (opencl_language_data): Likewise.
5843 * p-lang.c (pascal_language_data): Likewise.
5844 * rust-lang.c (rust_language_data): Likewise.
5845
5846 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5847
5848 * ada-lang.c (ada_read_var_value): Delete function, move
5849 implementation to...
5850 (ada_language::read_var_value): ...here.
5851 (ada_language_data): Delete la_read_var_value initializer.
5852 * c-lang.c (c_language_data): Likewise.
5853 (cplus_language_data): Likewise.
5854 (minimal_language_data): Likewise.
5855 * d-lang.c (d_language_data): Likewise.
5856 * f-lang.c (f_language_data): Likewise.
5857 * findvar.c (default_read_var_value): Rename to...
5858 (language_defn::read_var_value): ...this.
5859 * findvar.c (read_var_value): Update header comment, and change to
5860 call member function instead of function pointer.
5861 * go-lang.c (go_language_data): Likewise.
5862 * language.c (unknown_language_data): Delete la_read_var_value
5863 initializer.
5864 (auto_language_data): Likewise.
5865 * language.h (struct language_data): Delete la_read_var_value
5866 field.
5867 (language_defn::read_var_value): New member function.
5868 (default_read_var_value): Delete declaration.
5869 * m2-lang.c (m2_language_data): Delete la_read_var_value
5870 initializer.
5871 * objc-lang.c (objc_language_data): Likewise.
5872 * opencl-lang.c (opencl_language_data): Likewise.
5873 * p-lang.c (pascal_language_data): Likewise.
5874 * rust-lang.c (rust_language_data): Likewise.
5875 * value.h (default_read_var_value): Delete declaration.
5876
5877 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5878
5879 * ada-lang.c (ada_print_array_index): Delete function, move
5880 implementation to...
5881 (ada_language::print_array_index): ...here.
5882 (ada_language_data): Delete la_print_array_index initializer.
5883 * c-lang.c (c_language_data): Likewise.
5884 (cplus_language_data): Likewise.
5885 (minimal_language_data): Likewise.
5886 * d-lang.c (d_language_data): Likewise.
5887 * f-lang.c (f_language_data): Likewise.
5888 * go-lang.c (go_language_data): Likewise.
5889 * language.c (default_print_array_index): Delete function, move
5890 implementation to...
5891 (language_defn::print_array_index): ...here.
5892 (unknown_language_data): Delete la_print_array_index initializer.
5893 (auto_language_data): Likewise.
5894 * language.h (struct language_data): Delete la_print_array_index
5895 field.
5896 (language_defn::print_array_index): New member function.
5897 (LA_PRINT_ARRAY_INDEX): Update.
5898 (default_print_array_index): Delete declaration.
5899 * m2-lang.c (m2_language_data): Delete la_print_array_index
5900 initializer.
5901 * objc-lang.c (objc_language_data): Likewise.
5902 * opencl-lang.c (opencl_language_data): Likewise.
5903 * p-lang.c (pascal_language_data): Likewise.
5904 * rust-lang.c (rust_language_data): Likewise.
5905
5906 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5907
5908 * gdb/ada-lang.c (ada_language_defn): Convert to...
5909 (ada_language_data): ...this.
5910 (class ada_language): New class.
5911 (ada_language_defn): New static global.
5912 * gdb/c-lang.c (c_language_defn): Convert to...
5913 (c_language_data): ...this.
5914 (class c_language): New class.
5915 (c_language_defn): New static global.
5916 (cplus_language_defn): Convert to...
5917 (cplus_language_data): ...this.
5918 (class cplus_language): New class.
5919 (cplus_language_defn): New static global.
5920 (asm_language_defn): Convert to...
5921 (asm_language_data): ...this.
5922 (class asm_language): New class.
5923 (asm_language_defn): New static global.
5924 (minimal_language_defn): Convert to...
5925 (minimal_language_data): ...this.
5926 (class minimal_language): New class.
5927 (minimal_language_defn): New static global.
5928 * gdb/d-lang.c (d_language_defn): Convert to...
5929 (d_language_data): ...this.
5930 (class d_language): New class.
5931 (d_language_defn): New static global.
5932 * gdb/f-lang.c (f_language_defn): Convert to...
5933 (f_language_data): ...this.
5934 (class f_language): New class.
5935 (f_language_defn): New static global.
5936 * gdb/go-lang.c (go_language_defn): Convert to...
5937 (go_language_data): ...this.
5938 (class go_language): New class.
5939 (go_language_defn): New static global.
5940 * gdb/language.c (unknown_language_defn): Remove declaration.
5941 (current_language): Initialize to nullptr, real initialization is
5942 moved to _initialize_language.
5943 (languages): Delete global.
5944 (language_defn::languages): Define.
5945 (set_language_command): Use language_defn::languages.
5946 (set_language): Likewise.
5947 (range_error): Likewise.
5948 (language_enum): Likewise.
5949 (language_def): Likewise.
5950 (add_set_language_command): Use language_def::languages for the
5951 language list, and language_def to lookup language pointers.
5952 (skip_language_trampoline): Use language_defn::languages.
5953 (unknown_language_defn): Convert to...
5954 (unknown_language_data): ...this.
5955 (class unknown_language): New class.
5956 (unknown_language_defn): New static global.
5957 (auto_language_defn): Convert to...
5958 (auto_language_data): ...this.
5959 (class auto_language): New class.
5960 (auto_language_defn): New static global.
5961 (language_gdbarch_post_init): Use language_defn::languages.
5962 (_initialize_language): Initialize current_language.
5963 * gdb/language.h (struct language_defn): Rename to...
5964 (struct language_data): ...this.
5965 (struct language_defn): New.
5966 (auto_language_defn): Delete.
5967 (unknown_language_defn): Delete.
5968 (minimal_language_defn): Delete.
5969 (ada_language_defn): Delete.
5970 (asm_language_defn): Delete.
5971 (c_language_defn): Delete.
5972 (cplus_language_defn): Delete.
5973 (d_language_defn): Delete.
5974 (f_language_defn): Delete.
5975 (go_language_defn): Delete.
5976 (m2_language_defn): Delete.
5977 (objc_language_defn): Delete.
5978 (opencl_language_defn): Delete.
5979 (pascal_language_defn): Delete.
5980 (rust_language_defn): Delete.
5981 * gdb/m2-lang.c (m2_language_defn): Convert to...
5982 (m2_language_data): ...this.
5983 (class m2_language): New class.
5984 (m2_language_defn): New static global.
5985 * gdb/objc-lang.c (objc_language_defn): Convert to...
5986 (objc_language_data): ...this.
5987 (class objc_language): New class.
5988 (objc_language_defn): New static global.
5989 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
5990 (opencl_language_data): ...this.
5991 (class opencl_language): New class.
5992 (opencl_language_defn): New static global.
5993 * gdb/p-lang.c (pascal_language_defn): Convert to...
5994 (pascal_language_data): ...this.
5995 (class pascal_language): New class.
5996 (pascal_language_defn): New static global.
5997 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
5998 language pointer, update comment format.
5999 * gdb/rust-lang.c (rust_language_defn): Convert to...
6000 (rust_language_data): ...this.
6001 (class rust_language): New class.
6002 (rust_language_defn): New static global.
6003
6004 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
6005
6006 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
6007 member variable.
6008 <m_stmt_at_address>: New member variable.
6009 (lnp_state_machine::record_line): Don't record some lines, update
6010 tracking of is_stmt at the same address.
6011 (lnp_state_machine::lnp_state_machine): Initialise new member
6012 variables.
6013
6014 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
6015
6016 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
6017 "-include gnu-nat-mig.h".
6018 * gnu-nat-mig.h: New file.
6019 * gnu-nat.c: Include "gnu-nat-mig.h".
6020 (exc_server, msg_reply_server, notify_server,
6021 process_reply_server): Remove declarations.
6022
6023 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6024
6025 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
6026 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
6027 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
6028 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
6029 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
6030 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
6031 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
6032 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
6033 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
6034 to gnu_nat_target class.
6035 * gnu-nat.c: Likewise.
6036 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
6037 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
6038 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
6039 object.
6040 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
6041 instead of `gnu_target'.
6042
6043 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6044
6045 * i386-gnu-tdep.c: Include "gdbcore.h"
6046 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
6047 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
6048 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
6049 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
6050 i386_gnu_sigcontext_addr): New functions
6051 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
6052 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
6053 tdep.
6054
6055 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6056
6057 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
6058 before fork_inferior call. Avoid calling it if target_is_pushed returns
6059 true.
6060
6061 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6062
6063 * gnu-nat.h (gnu_target): New variable declaration.
6064 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
6065 gnu_target.
6066 * gnu-nat.c (gnu_target): New variable.
6067 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
6068 add_thread_silent, and add_thread calls.
6069 (gnu_nat_target::create_inferior): Pass gnu_target to
6070 add_thread_silent, thread_change_ptid call.
6071 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
6072 call.
6073
6074 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6075
6076 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
6077 (gnu_nat_target::find_memory_regions): Remove unused
6078 `old_address' variable.
6079
6080 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6081
6082 * gnu-nat.c: Include "gdbarch.h".
6083
6084 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6085
6086 * reply_mig_hack.awk (Error return): Cast function through
6087 void *, to bypass compiler function call check.
6088
6089 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6090
6091 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
6092 $(srcdir)/reply_mig_hack.awk.
6093
6094 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6095
6096 * gnu-nat.h (gnu_debug_flag): Set type to bool.
6097
6098 2020-05-30 Jonny Grant <jg@jguk.org>
6099
6100 * configure.ac (ACX_BUGURL): change bug URL to https.
6101
6102 2020-05-30 Pedro Alves <palves@redhat.com>
6103
6104 * cp-support.c (replace_typedefs_template): New.
6105 (replace_typedefs_qualified_name): Handle
6106 DEMANGLE_COMPONENT_TEMPLATE.
6107
6108 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
6109
6110 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
6111 dwarf2/index-cache.h, dwarf2/index-write.c,
6112 dwarf2/index-write.h, dwarf2/line-header.c,
6113 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
6114 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
6115 variables and fields from `dwarf2_per_objfile` to just
6116 `per_objfile` throughout.
6117
6118 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
6119
6120 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6121 <push_dwarf_reg_entry_value>: Add comment.
6122
6123 2020-05-28 Kevin Buettner <kevinb@redhat.com>
6124 Keith Seitz <keiths@redhat.com>
6125
6126 * python/python.c (do_start_initialization): Call PyEval_SaveThread
6127 instead of PyEval_ReleaseLock.
6128 (class gdbpy_gil): Move to earlier in file.
6129 (finalize_python): Set gdb_python_initialized.
6130 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
6131 when not initialized.
6132
6133 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
6134
6135 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6136 <push_dwarf_reg_entry_value>: Remove assert. Override
6137 per_objfile with caller_per_objfile.
6138
6139 2020-05-28 Tom de Vries <tdevries@suse.de>
6140
6141 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
6142 PR gold/15646 workaround to symbol kind "type".
6143
6144 2020-05-27 Tom Tromey <tromey@adacore.com>
6145
6146 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
6147
6148 2020-05-27 Tom Tromey <tromey@adacore.com>
6149
6150 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
6151 Use htab_find_with_hash.
6152 <add_abbrev>: Remove "abbrev_number" parameter.
6153 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
6154 "abbrev_number" parameter. Use htab_find_slot_with_hash.
6155 (hash_abbrev): Add comment.
6156 (abbrev_table::lookup_abbrev): Move to header file.
6157 (abbrev_table::read): Update.
6158
6159 2020-05-27 Tom Tromey <tromey@adacore.com>
6160
6161 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
6162 method.
6163 <canonical_name>: New member.
6164 <raw_name>: Rename from "name".
6165 (partial_die_info): Initialize canonical_name.
6166 (scan_partial_symbols): Check raw_name.
6167 (partial_die_parent_scope, partial_die_full_name)
6168 (add_partial_symbol, add_partial_subprogram)
6169 (add_partial_enumeration, load_partial_dies): Use "name" method.
6170 (partial_die_info::name): New method.
6171 (partial_die_info::read, guess_partial_die_structure_name)
6172 (partial_die_info::fixup): Update.
6173
6174 2020-05-27 Tom Tromey <tromey@adacore.com>
6175
6176 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
6177 <get_ref_die_offset>: Inline.
6178 <get_ref_die_offset_complaint>: New method.
6179 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
6180 (attribute::get_ref_die_offset_complaint): Rename from
6181 get_ref_die_offset. Just issue complaint.
6182
6183 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
6184
6185 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
6186
6187 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
6188
6189 * exec.c (exec_file_attach): Use errno value of first openp failure.
6190
6191 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
6192
6193 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
6194 Don't close thread handle.
6195
6196 2020-05-27 Tom Tromey <tom@tromey.com>
6197 Simon Marchi <simon.marchi@efficios.com>
6198
6199 * objfiles.h (struct objfile) <partial_symtabs>: Now a
6200 shared_ptr.
6201 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
6202 member.
6203 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
6204 dwarf2_per_bfd_objfile_data_key>: New globals.
6205 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
6206 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
6207 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
6208 shared.
6209 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
6210 short-circuit when sharing.
6211 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
6212 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
6213
6214 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6215
6216 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
6217 to...
6218 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
6219 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
6220
6221 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6222
6223 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
6224 build_name_components, find_name_components_bounds>:
6225 Add per_objfile parameter.
6226 (struct mapped_index) <symbol_name_at>: Likewise.
6227 (struct mapped_debug_names): Remove constructor.
6228 <dwarf2_per_objfile>: Remove field.
6229 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
6230 (mapped_index_base::find_name_components_bounds,
6231 mapped_index_base::build_name_components,
6232 dw2_expand_symtabs_matching_symbol): Likewise.
6233 (class mock_mapped_index) <symbol_name_at>: Likewise.
6234 (check_match): Likewise.
6235 (check_find_bounds_finds): Likewise.
6236 (test_mapped_index_find_name_component_bounds): Update.
6237 (CHECK_MATCH): Update.
6238 (dw2_expand_symtabs_matching): Update.
6239 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
6240 per_objfile parameter.
6241 <find_vec_in_debug_names>: Likewise.
6242 <m_per_objfile>: New field.
6243 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
6244 parameter.
6245 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
6246 (dw2_debug_names_iterator::next): Update.
6247 (dw2_debug_names_lookup_symbol): Update.
6248 (dw2_debug_names_expand_symtabs_for_function): Update.
6249 (dw2_debug_names_map_matching_symbols): Update.
6250 (dw2_debug_names_expand_symtabs_matching): Update.
6251 (dwarf2_read_debug_names): Update.
6252
6253 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6254
6255 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
6256 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
6257 move to dwarf2_per_objfile.
6258 <read_in_chain>: Remove.
6259 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
6260 remove_all_cus, age_comp_units>: New methods.
6261 <m_dwarf2_cus>: New member.
6262 (struct dwarf2_per_cu_data) <cu>: Remove.
6263 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
6264 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
6265 moved to methods of dwarf2_per_objfile.
6266 (dwarf2_clear_marks): Remove.
6267 (dwarf2_queue_item::~dwarf2_queue_item): Update.
6268 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
6269 (dwarf2_per_bfd::free_cached_comp_units): Remove.
6270 (dwarf2_per_objfile::remove_all_cus): New.
6271 (class free_cached_comp_units) <~free_cached_comp_units>:
6272 Update.
6273 (load_cu): Update.
6274 (dw2_do_instantiate_symtab): Adjust.
6275 (fill_in_sig_entry_from_dwo_entry): Adjust.
6276 (cutu_reader::init_tu_and_read_dwo_dies): Update.
6277 (cutu_reader::cutu_reader): Likewise.
6278 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
6279 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
6280 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
6281 and dwarf2_per_objfile::age_comp_units.
6282 (load_partial_comp_unit): Update.
6283 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
6284 (process_queue): Likewise.
6285 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
6286 backlink.
6287 (dwarf2_read_addr_index): Likewise.
6288 (follow_die_offset): Likewise.
6289 (dwarf2_fetch_die_loc_sect_off): Likewise.
6290 (dwarf2_fetch_constant_bytes): Likewise.
6291 (dwarf2_fetch_die_type_sect_off): Likewise.
6292 (follow_die_sig_1): Likewise.
6293 (load_full_type_unit): Likewise.
6294 (read_signatured_type): Likewise.
6295 (dwarf2_cu::dwarf2_cu): Don't set cu field.
6296 (dwarf2_cu::~dwarf2_cu): Remove.
6297 (dwarf2_per_objfile::get_cu): New.
6298 (dwarf2_per_objfile::set_cu): New.
6299 (age_cached_comp_units): Rename to...
6300 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
6301 to std::unordered_map.
6302 (free_one_cached_comp_unit): Rename to...
6303 (dwarf2_per_objfile::remove_cu): ... this. Adjust
6304 to std::unordered_map.
6305 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
6306 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
6307 a dwarf2_per_objfile in data.
6308 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
6309 (dwarf2_clear_marks): Remove.
6310
6311 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6312
6313 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
6314 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
6315 (init_tu_and_read_dwo_dies): Likewise.
6316 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
6317 (cutu_reader::cutu_reader): Likewise.
6318 (load_partial_comp_unit): Likewise.
6319 (process_psymtab_comp_unit): Update.
6320 (build_type_psymtabs_1): Update.
6321 (process_skeletonless_type_unit): Update.
6322 (load_full_comp_unit): Update.
6323 (find_partial_die): Update.
6324 (dwarf2_read_addr_index): Update.
6325 (read_signatured_type): Update.
6326
6327 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6328
6329 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
6330 m_header_read_in>: New fields.
6331 <get_header>: New method.
6332 * dwarf2/read.c (per_cu_header_read_in): Remove.
6333 (dwarf2_per_cu_data::get_header): New.
6334 (dwarf2_per_cu_data::addr_size): Update.
6335 (dwarf2_per_cu_data::offset_size): Update.
6336 (dwarf2_per_cu_data::ref_addr_size): Update.
6337
6338 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6339
6340 * dwarf2/read.c (load_cu): Return dwarf2_cu.
6341 (dw2_do_instantiate_symtab): Update.
6342 (queue_and_load_all_dwo_tus): Change parameter from
6343 dwarf2_per_cu_data to dwarf2_cu.
6344 (dwarf2_fetch_die_loc_sect_off): Update.
6345 (dwarf2_fetch_constant_bytes): Update.
6346 (dwarf2_fetch_die_type_sect_off): Update.
6347
6348 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6349
6350 * dwarf2/read.c (process_full_comp_unit,
6351 process_full_type_unit): Remove per_cu, per_objfile paramters.
6352 Add dwarf2_cu parameter.
6353 (process_queue): Update.
6354
6355 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6356
6357 * dwarf2/read.c (create_cu_from_index_list): Replace
6358 dwarf2_per_objfile parameter with dwarf2_per_bfd.
6359 (create_cus_from_index_list): Likewise.
6360 (create_cus_from_index): Likewise.
6361 (create_signatured_type_table_from_index): Likewise.
6362 (create_cus_from_debug_names_list): Likewise.
6363 (create_cus_from_debug_names): Likewise.
6364 (dwarf2_read_gdb_index): Update.
6365 (dwarf2_read_debug_names): Update.
6366
6367 2020-05-27 Tom Tromey <tom@tromey.com>
6368 Simon Marchi <simon.marchi@efficios.com>
6369
6370 * dwarf2/read.h (struct dwarf2_per_objfile)
6371 <get_type_for_signatured_type, set_type_for_signatured_type>:
6372 New methods.
6373 <m_type_map>: New member.
6374 (struct signatured_type) <type>: Remove.
6375 * dwarf2/read.c
6376 (dwarf2_per_objfile::get_type_for_signatured_type,
6377 dwarf2_per_objfile::set_type_for_signatured_type): New.
6378 (get_signatured_type): Use new methods.
6379
6380 2020-05-27 Tom Tromey <tom@tromey.com>
6381 Simon Marchi <simon.marchi@efficios.com>
6382
6383 * dwarf2/read.h (struct type_unit_group_unshareable): New.
6384 (struct dwarf2_per_objfile) <type_units>: New member.
6385 <get_type_unit_group_unshareable>: New method.
6386 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
6387 num_symtabs, symtabs>: Remove; move to
6388 type_unit_group_unshareable.
6389 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
6390 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
6391 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
6392
6393 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6394
6395 * dwarf2/read.h (struct dwarf2_per_cu_data):
6396 <dwarf2_per_objfile>: Remove.
6397 * dwarf2/read.c (create_cu_from_index_list): Don't assign
6398 dwarf2_per_objfile.
6399 (create_signatured_type_table_from_index): Likewise.
6400 (create_signatured_type_table_from_debug_names): Likewise.
6401 (create_debug_type_hash_table): Likewise.
6402 (fill_in_sig_entry_from_dwo_entry): Likewise.
6403 (create_type_unit_group): Likewise.
6404 (read_comp_units_from_section): Likewise.
6405 (create_cus_hash_table): Likewise.
6406
6407 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6408
6409 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
6410 dwarf2_per_cu_data::dwarf2_per_objfile.
6411 (compute_compunit_symtab_includes): Likewise.
6412 (dwarf2_cu::start_symtab): Likewise.
6413
6414 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6415
6416 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
6417 parameter.
6418 * dwarf2/read.c (get_die_type_at_offset): Likewise.
6419 (read_namespace_alias): Update.
6420 (lookup_die_type): Update.
6421 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
6422 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
6423 Update.
6424 (disassemble_dwarf_expression): Update.
6425
6426 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6427
6428 * dwarf2/read.h (struct dwarf2_queue_item): Add
6429 dwarf2_per_objfile parameter, assign new parameter.
6430 <per_objfile>: New field.
6431 * dwarf2/read.c (free_one_cached_comp_unit): Add
6432 dwarf2_per_objfile parameter.
6433 (queue_comp_unit): Likewise.
6434 (dw2_do_instantiate_symtab): Update.
6435 (process_psymtab_comp_unit): Update.
6436 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
6437 (process_imported_unit_die): Update.
6438 (queue_and_load_dwo_tu): Update.
6439 (follow_die_offset): Update.
6440 (follow_die_sig_1): Update.
6441
6442 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6443
6444 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
6445 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
6446 (read_call_site_scope): Assign per_objfile.
6447 (dwarf2_per_cu_data::objfile): Remove.
6448 * gdbtypes.h (struct call_site) <per_objfile>: New member.
6449 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
6450 dwarf2_per_objfile parameter.
6451 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
6452 dwarf2_per_objfile parameter.
6453 (dwarf_expr_reg_to_entry_parameter): Add output
6454 dwarf2_per_objfile parameter.
6455 (locexpr_get_frame_base): Update.
6456 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
6457 <push_dwarf_reg_entry_value>: Update.
6458 <call_site_to_target_addr>: Update.
6459 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
6460 parameter.
6461 (value_of_dwarf_reg_entry): Update.
6462 (rw_pieced_value): Update.
6463 (indirect_synthetic_pointer): Update.
6464 (dwarf2_evaluate_property): Update.
6465 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
6466 parameter.
6467 (locexpr_read_variable): Update.
6468 (locexpr_get_symbol_read_needs): Update.
6469 (loclist_read_variable): Update.
6470
6471 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6472
6473 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
6474 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
6475 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
6476 parameter.
6477 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
6478 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
6479 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
6480 parameter.
6481 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
6482 sect_variable_value): Add dwarf2_per_objfile parameter.
6483 (class dwarf_evaluate_loc_desc) <dwarf_call,
6484 dwarf_variable_value>: Update.
6485 (fetch_const_value_from_synthetic_pointer): Add
6486 dwarf2_per_objfile parameter.
6487 (fetch_const_value_from_synthetic_pointer): Update.
6488 (coerced_pieced_ref): Update.
6489 (class symbol_needs_eval_context) <dwarf_call,
6490 dwarf_variable_value>: Update.
6491 (dwarf2_compile_expr_to_ax): Update.
6492
6493 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6494
6495 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
6496 parameter.
6497 (dwarf2_evaluate_loc_desc_full): Update.
6498
6499 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6500
6501 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
6502 parameter.
6503 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
6504 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
6505 dwarf2_per_objfile parameter.
6506 (decode_debug_loc_dwo_addresses): Likewise.
6507 (dwarf2_find_location_expression): Update.
6508 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
6509 (locexpr_describe_location_piece): Add dwarf2_per_objfile
6510 parameter.
6511 (disassemble_dwarf_expression): Add dwarf2_per_objfile
6512 parameter.
6513 (locexpr_describe_location_1): Likewise.
6514 (locexpr_describe_location): Update.
6515
6516 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6517
6518 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
6519 Remove.
6520 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
6521 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
6522 (dwarf2_compile_property_to_c): Update.
6523 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
6524 use text offset from objfile.
6525 (locexpr_tracepoint_var_ref): Update.
6526 (locexpr_generate_c_location): Update.
6527 (loclist_describe_location): Update.
6528 (loclist_tracepoint_var_ref): Update.
6529 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
6530 dwarf2_per_objfile parameter.
6531 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
6532 use text offset from objfile.
6533 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
6534
6535 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6536
6537 * dwarf2/expr.h (struct dwarf_expr_context)
6538 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
6539 <offset>: Remove.
6540 <per_objfile>: New member.
6541 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
6542 dwarf2_per_objfile parameter. Don't set offset, set
6543 per_objfile.
6544 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
6545 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
6546 a dwarf2_per_objfile object instead of an offset.
6547 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
6548 constructor.
6549 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
6550 to dwarf2_expr_executor constructor. Don't set offset.
6551 (dwarf2_fetch_cfa_info): Update.
6552 (struct dwarf2_frame_cache) <text_offset>: Remove.
6553 <per_objfile>: New field.
6554 (dwarf2_frame_cache): Update.
6555 (dwarf2_frame_prev_register): Update.
6556 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6557 <dwarf_evaluate_loc_desc>: Add constructor.
6558 (dwarf2_evaluate_loc_desc_full): Update.
6559 (dwarf2_locexpr_baton_eval): Update.
6560 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
6561 Add constructor.
6562 (dwarf2_loc_desc_get_symbol_read_needs): Update.
6563
6564 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6565
6566 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
6567 addr_sized_int_type>: Move to dwarf2_cu.
6568 <int_type>: Move to dwarf2_per_objfile.
6569 (struct dwarf2_per_objfile) <int_type>: Move here.
6570 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
6571 addr_sized_int_type>: Move here.
6572 (read_func_scope): Update.
6573 (read_array_type): Update.
6574 (read_tag_string_type): Update.
6575 (attr_to_dynamic_prop): Update.
6576 (dwarf2_per_cu_data::int_type): Rename to...
6577 (dwarf2_per_objfile::int_type): ... this.
6578 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
6579 (dwarf2_cu::addr_sized_int_type): ... this.
6580 (read_subrange_type): Update.
6581 (dwarf2_per_cu_data::addr_type): Rename to...
6582 (dwarf2_cu::addr_type): ... this.
6583 (set_die_type): Update.
6584
6585 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6586
6587 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
6588 data through per_cu->cu.
6589
6590 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6591
6592 * dwarf2/read.c (lookup_dwo_comp_unit): Change
6593 dwarf2_per_cu_data parameter fo dwarf2_cu.
6594 (lookup_dwo_type_unit): Likewise.
6595 (read_cutu_die_from_dwo): Likewise.
6596 (lookup_dwo_unit): Likewise.
6597 (open_and_init_dwo_file): Likewise.
6598 (lookup_dwo_cutu): Likewise.
6599 (lookup_dwo_comp_unit): Likewise.
6600 (lookup_dwo_type_unit): Likewise.
6601 (cutu_reader::init_tu_and_read_dwo_dies): Update.
6602 (cutu_reader::cutu_reader): Update.
6603
6604 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6605
6606 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
6607 parameter.
6608 (process_full_type_unit): Likewise.
6609 (process_queue): Update.
6610
6611 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6612
6613 * dwarf2/read.c (recursively_compute_inclusions): Add
6614 dwarf2_per_objfile parameter.
6615 (compute_compunit_symtab_includes): Likewise.
6616 (process_cu_includes): Update.
6617
6618 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6619
6620 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
6621 parameter.
6622 (create_type_unit_group): Update.
6623 (process_psymtab_comp_unit_reader): Update.
6624 (build_type_psymtabs_reader): Update.
6625
6626 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6627
6628 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
6629 object through m_this_cu->cu.
6630
6631 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6632
6633 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
6634 the info parameter.
6635 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
6636
6637 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6638
6639 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
6640 per_objfile parameter.
6641 (load_full_type_unit): Add per_objfile parameter.
6642 (read_signatured_type): Likewise.
6643 (load_full_comp_unit): Likewise.
6644 (load_cu): Likewise.
6645 (dw2_do_instantiate_symtab): Likewise.
6646 (dw2_get_file_names): Likewise.
6647 (dw2_map_symtabs_matching_filename): Update.
6648 (dw_expand_symtabs_matching_file_matcher): Update.
6649 (dw2_map_symbol_filenames): Update.
6650 (process_psymtab_comp_unit): Add per_objfile parameter.
6651 (build_type_psymtabs_1): Update.
6652 (process_skeletonless_type_unit): Update.
6653 (dwarf2_build_psymtabs_hard): Update.
6654 (load_partial_comp_unit): Add per_objfile parameter.
6655 (scan_partial_symbols): Update.
6656 (load_full_comp_unit): Add per_objfile parameter.
6657 (process_imported_unit_die): Update.
6658 (create_cus_hash_table): Update.
6659 (find_partial_die): Update.
6660 (dwarf2_read_addr_index): Update.
6661 (follow_die_offset): Update.
6662 (dwarf2_fetch_die_loc_sect_off): Update.
6663 (dwarf2_fetch_constant_bytes): Update.
6664 (dwarf2_fetch_die_type_sect_off): Update.
6665 (follow_die_sig_1): Update.
6666 (load_full_type_unit): Add per_objfile parameter.
6667 (read_signatured_type): Likewise.
6668
6669 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6670
6671 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
6672 of objfile_name.
6673
6674 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6675
6676 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
6677 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
6678 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
6679 field.
6680 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
6681 (create_cus_from_index): Update.
6682 (dwarf2_read_gdb_index): Update.
6683 (create_cus_from_debug_names): Update.
6684 (dwarf2_read_debug_names): Update.
6685 (get_abbrev_section_for_cu): Update.
6686 (create_all_comp_units): Update.
6687 (read_attribute_value): Update.
6688 (get_debug_line_section): Update.
6689 * dwarf2/index-cache.c (index_cache::store): Update.
6690 * dwarf2/index-write.c (save_gdb_index_command): Update.
6691 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
6692
6693 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6694
6695 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
6696 member.
6697 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
6698 dwarf2_per_cu_data::per_bfd.
6699 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
6700 (create_type_unit_group): Likewise.
6701 (queue_comp_unit): Remove reference to
6702 per_cu->dwarf2_per_objfile.
6703 (maybe_queue_comp_unit): Likewise.
6704 (fill_in_sig_entry_from_dwo_entry): Assign new field.
6705 (create_cus_hash_table): Assign new field.
6706
6707 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6708
6709 * dwarf2/read.c: Replace
6710 dwarf2_cu->per_cu->dwarf2_per_objfile references with
6711 dwarf2_cu->per_objfile throughout.
6712
6713 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6714
6715 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
6716 parameter, don't use per_cu->dwarf2_per_objfile.
6717 (dw2_instantiate_symtab): Likewise.
6718 (dw2_find_last_source_symtab): Update.
6719 (dw2_map_expand_apply): Update.
6720 (dw2_lookup_symbol): Update.
6721 (dw2_expand_symtabs_for_function): Update.
6722 (dw2_expand_all_symtabs): Update.
6723 (dw2_expand_symtabs_with_fullname): Update.
6724 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
6725 don't use per_cu->dwarf2_per_objfile.
6726 (dw2_expand_marked_cus): Update.
6727 (dw2_find_pc_sect_compunit_symtab): Update.
6728 (dw2_debug_names_lookup_symbol): Update.
6729 (dw2_debug_names_expand_symtabs_for_function): Update.
6730 (dw2_debug_names_map_matching_symbols): Update.
6731 (dwarf2_psymtab::expand_psymtab): Update.
6732
6733 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6734
6735 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
6736 <per_objfile>: New member.
6737 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
6738 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
6739 call to dwarf2_cu.
6740 (cutu_reader::cutu_reader): Update.
6741 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
6742
6743 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6744
6745 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
6746 struct dwarf2_per_objfile.
6747 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
6748 dwarf2_per_bfd.
6749 * dwarf2/read.c (set_die_type): Update.
6750 (get_die_type_at_offset): Update.
6751
6752 2020-05-27 Tom Tromey <tom@tromey.com>
6753 Simon Marchi <simon.marchi@efficios.com>
6754
6755 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
6756 method.
6757 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
6758 get_symtab, set_symtab>: New methods.
6759 <m_symtabs>: New field.
6760 (struct dwarf2_psymtab): Derive from partial_symtab.
6761 <readin_p, get_compunit_symtab>: Declare methods.
6762 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
6763 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
6764 New methods.
6765 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
6766 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
6767 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
6768 (dw2_symtab_iter_next, dw2_print_stats)
6769 (dw2_expand_symtabs_with_fullname)
6770 (dw2_expand_symtabs_matching_one)
6771 (dw_expand_symtabs_matching_file_matcher)
6772 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
6773 (dw2_debug_names_iterator::next)
6774 (dw2_debug_names_map_matching_symbols)
6775 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
6776 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
6777 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
6778 New methods.
6779 (get_compunit_symtab, process_full_comp_unit)
6780 (process_full_type_unit): Update.
6781 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
6782
6783 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6784
6785 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
6786 then introduce a new dwarf2_per_objfile type.
6787 <read_line_string>: Move to the new dwarf2_per_objfile type.
6788 <objfile>: Likewise.
6789 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
6790 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
6791 dwarf2_per_objfile->per_bfd.
6792 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
6793 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
6794 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
6795 (dwarf2_per_bfd::free_cached_comp_units): ... this.
6796 (dwarf2_has_info): Allocate dwarf2_per_bfd.
6797 (dwarf2_per_objfile::locate_sections): Rename to...
6798 (dwarf2_per_bfd::locate_sections): ... this.
6799 (dwarf2_per_objfile::get_cutu): Rename to...
6800 (dwarf2_per_bfd::get_cutu): ... this.
6801 (dwarf2_per_objfile::get_cu): Rename to...
6802 (dwarf2_per_bfd::get_cu): ... this.
6803 (dwarf2_per_objfile::get_tu): Rename to...
6804 (dwarf2_per_bfd::get_tu): ... this.
6805 (dwarf2_per_objfile::allocate_per_cu): Rename to...
6806 (dwarf2_per_bfd::allocate_per_cu): ... this.
6807 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
6808 (dwarf2_per_bfd::allocate_signatured_type): ... this.
6809 (get_gdb_index_contents_ftype): Change parameter from
6810 dwarf2_per_objfile to dwarf2_per_bfd.
6811 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
6812 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
6813
6814 2020-05-27 Tom Tromey <tom@tromey.com>
6815 Simon Marchi <simon.marchi@efficios.com>
6816
6817 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
6818 (allocate_piece_closure): Set "per_objfile" member.
6819 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
6820 (locexpr_describe_location, loclist_describe_location): Use new
6821 member.
6822 * dwarf2/read.c (read_call_site_scope)
6823 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
6824 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
6825 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
6826 handle_data_member_location): Set per_objfile member.
6827 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
6828 member.
6829 (struct dwarf2_loclist_baton) <per_objfile>: New member.
6830
6831 2020-05-27 Tom Tromey <tom@tromey.com>
6832
6833 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
6834 allocate_signatured_type>: Declare new methods.
6835 <m_num_psymtabs>: New member.
6836 (struct dwarf2_per_cu_data) <index>: New member.
6837 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
6838 (dwarf2_per_objfile::allocate_signatured_type): New methods.
6839 (create_cu_from_index_list): Use allocate_per_cu.
6840 (create_signatured_type_table_from_index)
6841 (create_signatured_type_table_from_debug_names)
6842 (create_debug_type_hash_table, add_type_unit)
6843 (read_comp_units_from_section): Use allocate_signatured_type.
6844
6845 2020-05-27 Tom Tromey <tom@tromey.com>
6846
6847 * psymtab.c (partial_map_expand_apply)
6848 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
6849 (psym_lookup_global_symbol_language)
6850 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
6851 (psym_print_stats, psym_expand_symtabs_for_function)
6852 (psym_map_symbol_filenames, psym_map_matching_symbols)
6853 (psym_expand_symtabs_matching)
6854 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
6855 (maintenance_check_psymtabs): Update.
6856 * psympriv.h (struct partial_symtab) <readin_p,
6857 get_compunit_symtab>: Add objfile parameter.
6858 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
6859 Likewise.
6860 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
6861 get_compunit_symtab>: Likewise.
6862 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
6863
6864 2020-05-27 Tom Tromey <tom@tromey.com>
6865
6866 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
6867 member.
6868 * dwarf2/read.c (delete_file_name_entry): Fix comment.
6869 (create_cu_from_index_list)
6870 (create_signatured_type_table_from_index)
6871 (create_signatured_type_table_from_debug_names)
6872 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
6873 (dwarf2_create_include_psymtab)
6874 (create_debug_type_hash_table, add_type_unit)
6875 (create_type_unit_group, read_comp_units_from_section)
6876 (dwarf2_compute_name, create_cus_hash_table)
6877 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
6878 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
6879 obstack.
6880 (dw2_get_real_path): Likewise. Change argument to
6881 dwarf2_per_objfile.
6882
6883 2020-05-27 Luis Machado <luis.machado@linaro.org>
6884
6885 PR tdep/26000
6886 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
6887 for ldrd (immediate).
6888
6889 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6890
6891 * command.h: Add comment giving the name of class_tui.
6892 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
6893 create the fake command for the help for class_tui.
6894
6895 2020-05-26 Tom Tromey <tromey@adacore.com>
6896
6897 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
6898 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
6899 (val_atr): New function.
6900 (value_val_atr): Use it.
6901 * ada-valprint.c (print_optional_low_bound): Change low bound
6902 handling for enums.
6903 (val_print_packed_array_elements): Don't call discrete_position.
6904 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
6905 discrete_position for enum types.
6906 * language.c (default_print_array_index): Change type.
6907 * language.h (struct language_defn) <la_print_array_index>: Add
6908 index_type parameter, change type of index_value.
6909 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
6910 (default_print_array_index): Update.
6911 * valprint.c (maybe_print_array_index): Don't call
6912 value_from_longest. Update.
6913 (value_print_array_elements): Don't call discrete_position.
6914
6915 2020-05-26 Tom Tromey <tromey@adacore.com>
6916
6917 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
6918 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
6919
6920 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
6921
6922 PR gdb/13519
6923 * avr-tdep.c (avr_integer_to_address): Return data or code
6924 address accordingly to the second 'type' argument of the
6925 function.
6926
6927 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
6928
6929 * infcmd.c, inferior.h: (construct_inferior_arguments):
6930 Moved function from here to gdbsupport/common-inferior.{h,cc}
6931
6932 2020-05-23 Tom Tromey <tom@tromey.com>
6933
6934 Revert commit eca1f90c:
6935 * NEWS: Remove entry for completion styling.
6936 * completer.c (_rl_completion_prefix_display_length): Move
6937 declaration later.
6938 (gdb_fnprint): Revert.
6939 (gdb_display_match_list_1): Likewise.
6940 * cli/cli-style.c (completion_prefix_style)
6941 (completion_difference_style, completion_suffix_style): Remove.
6942 (_initialize_cli_style): Revert.
6943 * cli/cli-style.h (completion_prefix_style)
6944 (completion_difference_style, completion_suffix_style): Don't
6945 declare.
6946
6947 2020-05-24 Pedro Alves <palves@redhat.com>
6948
6949 * symtab.c (completion_list_add_name): Return boolean indication
6950 of whether the symbol matched.
6951 (completion_list_add_symbol): Don't try to remove C++ aliases if
6952 the symbol didn't match in the first place.
6953 * symtab.h (completion_list_add_name): Return bool.
6954
6955 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
6956
6957 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
6958 type::field.
6959
6960 2020-05-23 Joel Brobecker <brobecker@adacore.com>
6961
6962 GDB 9.2 released.
6963
6964 2020-05-23 Tom Tromey <tom@tromey.com>
6965
6966 * NEWS: Add entry for completion styling.
6967 * completer.c (_rl_completion_prefix_display_length): Move
6968 declaration earlier.
6969 (gdb_fnprint): Use completion_style.
6970 (gdb_display_match_list_1): Likewise.
6971 * cli/cli-style.c (completion_prefix_style)
6972 (completion_difference_style, completion_suffix_style): New
6973 globals.
6974 (_initialize_cli_style): Register new globals.
6975 * cli/cli-style.h (completion_prefix_style)
6976 (completion_difference_style, completion_suffix_style): Declare.
6977
6978 2020-05-23 Pedro Alves <palves@redhat.com>
6979
6980 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
6981 (parse_escape): Use ISDIGIT instead of isdigit.
6982 (puts_debug): Use gdb_isprint instead of isprint.
6983 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
6984 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
6985 ISSPACE instead of isspace.
6986 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
6987 instead of isspace.
6988 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
6989 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
6990 instead of isxdigit and ISDIGIT instead of isdigit.
6991
6992 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
6993
6994 * gdbtypes.h (struct type) <field>: New method.
6995 (TYPE_FIELDS): Remove, replace all uses with either type::fields
6996 or type::field.
6997
6998 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
6999
7000 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
7001 (TYPE_FIELDS): Use type::fields. Change all call sites that
7002 modify the propery to use type::set_fields instead.
7003
7004 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
7005
7006 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
7007 type::num_fields instead.
7008
7009 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
7010
7011 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
7012 methods.
7013 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
7014 that modify the number of fields to use type::set_num_fields
7015 instead.
7016
7017 2020-05-22 Tom Tromey <tromey@adacore.com>
7018
7019 * compile/compile-object-load.h (munmap_list_free): Don't
7020 declare.
7021
7022 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
7023
7024 * annotate.c (annotate_source_line): Update return type, add call
7025 to update current symtab and line.
7026 * annotate.h (annotate_source_line): Update return type, and
7027 extend header comment.
7028 * source.c (info_line_command): Check annotation_level before
7029 calling annotate_source_line.
7030 * stack.c (print_frame_info): If calling annotate_source_line
7031 returns true, then don't print any other source line information.
7032
7033 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
7034
7035 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
7036
7037 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
7038
7039 * coffread.c (patch_type): Remove NULL check before xfree.
7040 * corefile.c (set_gnutarget): Likewise.
7041 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
7042 * exec.c (build_section_table): Likewise.
7043 * remote.c (remote_target::pass_signals): Likewise.
7044 * utils.c (n_spaces): Likewise.
7045 * cli/cli-script.c (document_command): Likewise.
7046 * i386-windows-tdep.c (core_process_module_section): Likewise.
7047 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
7048
7049 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
7050
7051 * symfile.c (reread_symbols): Clear objfile's section_offsets
7052 vector and section indices, re-compute them by calling
7053 sym_offsets.
7054
7055 2020-05-20 Tom Tromey <tromey@adacore.com>
7056
7057 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
7058 (desc_one_bound, desc_index_type): Compute field name.
7059
7060 2020-05-20 Tom de Vries <tdevries@suse.de>
7061
7062 PR symtab/25833
7063 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
7064
7065 2020-05-20 Alan Modra <amodra@gmail.com>
7066
7067 PR 25993
7068 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
7069 bfd_set_filename.
7070 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
7071 passed to bfd_set_filename.
7072 * symfile-mem.c (add_vsyscall_page): Likewise for string
7073 passed to symbol_file_add_from_memory.
7074 (symbol_file_add_from_memory): Make name param a const char* and
7075 don't strdup.
7076
7077 2020-05-20 Alan Modra <amodra@gmail.com>
7078
7079 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
7080 rather than accessing bfd->filename directly.
7081 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
7082 and use bfd_section_name.
7083 * dwarf2/frame.c (decode_frame_entry): Likewise.
7084 * exec.c (exec_set_section_address): Likewise.
7085 * solib-aix.c (solib_aix_bfd_open): Likewise.
7086 * stap-probe.c (get_stap_base_address): Likewise.
7087 * symfile.c (reread_symbols): Likewise.
7088
7089 2020-05-19 Tom Tromey <tromey@adacore.com>
7090
7091 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
7092
7093 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
7094
7095 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
7096
7097 2020-05-19 Pedro Alves <palves@redhat.com>
7098
7099 * NEWS (set exec-file-mismatch): Adjust entry.
7100 * exec.c: Include "build-id.h".
7101 (validate_exec_file): Try to match build IDs instead of filenames.
7102 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
7103 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
7104 and pass down 'warn_if_slow'.
7105 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
7106 gdb_bfd_open_closure to pass it down.
7107 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
7108
7109 2020-05-19 Pedro Alves <palves@redhat.com>
7110
7111 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
7112 * target.c (target_fileio_open_1): Rename to target_fileio_open
7113 and make extern. Use bool.
7114 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
7115 (target_fileio_read_alloc_1): Adjust.
7116 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
7117 (target_fileio_open_warn_if_slow): Delete declaration.
7118
7119 2020-05-19 Pedro Alves <palves@redhat.com>
7120
7121 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
7122 Adjust all callers.
7123
7124 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
7125
7126 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
7127 whether disp is negative.
7128
7129 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
7130
7131 * symfile.h (struct symfile_segment_data)
7132 <~symfile_segment_data>: Remove.
7133 <segment_info>: Change to std::vector.
7134 * symfile.c (default_symfile_segments): Update.
7135 * elfread.c (elf_symfile_segments): Update.
7136
7137 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
7138
7139 * symfile.h (struct symfile_segment_data) <struct segment>: New.
7140 <segments>: New.
7141 <segment_bases, segment_sizes>: Remove.
7142 * symfile.c (default_symfile_segments): Update.
7143 * elfread.c (elf_symfile_segments): Update.
7144 * remote.c (remote_target::get_offsets): Update.
7145 * solib-target.c (solib_target_relocate_section_addresses):
7146 Update.
7147
7148 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
7149
7150 * symfile.h (struct symfile_segment_data): Initialize fields.
7151 <~symfile_segment_data>: Add.
7152 (symfile_segment_data_up): New.
7153 (struct sym_fns) <sym_segments>: Return a
7154 symfile_segment_data_up.
7155 (default_symfile_segments): Return a symfile_segment_data_up.
7156 (free_symfile_segment_data): Remove.
7157 (get_symfile_segment_data): Return a symfile_segment_data_up.
7158 * symfile.c (default_symfile_segments): Likewise.
7159 (get_symfile_segment_data): Likewise.
7160 (free_symfile_segment_data): Remove.
7161 (symfile_find_segment_sections): Update.
7162 * elfread.c (elf_symfile_segments): Return a
7163 symfile_segment_data_up.
7164 * remote.c (remote_target::get_offsets): Update.
7165 * solib-target.c (solib_target_relocate_section_addresses):
7166 Update.
7167 * symfile-debug.c (debug_sym_segments): Return a
7168 symfile_segment_data_up.
7169
7170 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7171
7172 PR build/25981
7173 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
7174 Hardcode register numbers.
7175
7176 PR build/25981
7177 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
7178 procfs_find_LDT_entry): Remove.
7179 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
7180 procfs_find_LDT_entry): Remove.
7181 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
7182 Remove.
7183
7184 2020-05-17 Pedro Alves <palves@redhat.com>
7185 Andrew Burgess <andrew.burgess@embecosm.com>
7186 Keno Fischer <keno@juliacomputing.com>
7187
7188 PR gdb/25741
7189 * breakpoint.c (build_target_condition_list): Update comments.
7190 (build_target_command_list): Update comments and skip matching
7191 locations.
7192 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
7193 a separate function. Simplify "set breakpoint auto-hw off"
7194 handling.
7195 (insert_breakpoints): Update comment.
7196 (tracepoint_locations_match): New parameter. For breakpoints,
7197 compare location types too, if the caller wants to.
7198 (handle_automatic_hardware_breakpoints): New functions.
7199 (bp_location_is_less_than): Also sort by location type and
7200 hardware breakpoint length.
7201 (update_global_location_list): Handle "set breakpoint auto-hw on"
7202 here.
7203 (update_breakpoint_locations): Ask breakpoint_locations_match to
7204 ignore location types.
7205
7206 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
7207
7208 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
7209 type::name instead.
7210
7211 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
7212
7213 * gdbtypes.h (struct type) <name, set_name>: New methods.
7214 (TYPE_CODE): Use type::name. Change all call sites used to set
7215 the name to use type::set_name instead.
7216
7217 2020-05-16 Tom Tromey <tom@tromey.com>
7218
7219 * top.c (quit_force): Update.
7220 * infrun.c (handle_no_resumed): Update.
7221 * top.h (all_uis): New function.
7222 (ALL_UIS): Remove.
7223
7224 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
7225
7226 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
7227
7228 2020-05-16 Pedro Alves <palves@redhat.com>
7229
7230 * ia64-linux-nat.c
7231 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
7232 Declare method.
7233 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
7234
7235 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
7236
7237 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
7238 (sparc64_adi_info): Likewise.
7239
7240 2020-05-15 Tom Tromey <tom@tromey.com>
7241
7242 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
7243 block_objfile.
7244 (lookup_objfile_from_block): Remove.
7245 (lookup_symbol_in_block, lookup_symbol_in_static_block)
7246 (lookup_global_symbol): Use block_objfile.
7247 * symtab.h (lookup_objfile_from_block): Don't declare.
7248 * printcmd.c (clear_dangling_display_expressions): Use
7249 block_objfile.
7250 * parse.c (operator_check_standard): Use block_objfile.
7251
7252 2020-05-15 Tom Tromey <tom@tromey.com>
7253
7254 * language.c (language_alloc_type_symbol): Set
7255 SYMBOL_SECTION.
7256 * symtab.c (initialize_objfile_symbol): Remove.
7257 (allocate_symbol): Remove.
7258 (allocate_template_symbol): Remove.
7259 * dwarf2/read.c (fixup_go_packaging): Use "new".
7260 (new_symbol): Use "new".
7261 (read_variable): Don't call initialize_objfile_symbol. Use
7262 "new".
7263 (read_func_scope): Use "new".
7264 * xcoffread.c (process_xcoff_symbol): Don't call
7265 initialize_objfile_symbol.
7266 (SYMBOL_DUP): Remove.
7267 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
7268 "new".
7269 * symtab.h (allocate_symbol, initialize_objfile_symbol)
7270 (allocate_template_symbol): Don't declare.
7271 (struct symbol): Add copy constructor. Change defaults.
7272 * jit.c (finalize_symtab): Use "new".
7273 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
7274 Use "new".
7275 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
7276 (common_block_end): Use "new".
7277 * mdebugread.c (parse_symbol): Use "new".
7278 (new_symbol): Likewise.
7279
7280 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7281
7282 * NEWS: Mention changes to help and apropos.
7283
7284 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7285
7286 * command.h (enum command_class): Improve comments, document
7287 that class_alias is for user-defined aliases, give the class
7288 name for each class, remove unused class_xdb.
7289 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
7290 * breakpoint.c (_initialize_breakpoint): Replace class_alias
7291 by a precise class.
7292 * infcmd.c (_initialize_infcmd): Likewise.
7293 * reverse.c (_initialize_reverse): Likewise.
7294 * stack.c (_initialize_stack): Likewise.
7295 * symfile.c (_initialize_symfile): Likewise.
7296 * tracepoint.c (_initialize_tracepoint): Likewise.
7297
7298 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7299
7300 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
7301 when their aliased command is traversed.
7302 (help_cmd): Add fput_command_names_styled call to
7303 output command name and aliases when command has an alias.
7304
7305 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7306
7307 * cli/cli-decode.h (help_cmd_list): Remove declaration.
7308 * cli/cli-decode.c (help_cmd_list): Declare as static,
7309 remove prefix argument, use bool for recurse arg, rework to show the aliases of
7310 a command together with the command.
7311 (fput_command_name_styled, fput_command_names_styled): New functions.
7312 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
7313 fput_command_name_styled.
7314 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
7315 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
7316
7317 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7318
7319 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
7320 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
7321 * command.h (cmd_show_list): Likewise.
7322 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
7323 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
7324
7325 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7326
7327 * unittests/command-def-selftests.c (traverse_command_structure):
7328 Verify all commands of a list have the same prefix command and
7329 that only the top cmdlist commands have a null prefix.
7330
7331 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7332
7333 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
7334 as prefix, not one of its aliases.
7335 (set_cmd_prefix): Remove.
7336 (do_add_cmd): Centralize the setting of the prefix of a command, when
7337 command is defined after its full chain of prefix commands.
7338 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
7339 (add_setshow_cmd_full): Likewise.
7340 (update_prefix_field_of_prefixed_commands): New function.
7341 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
7342 update_prefix_field_of_prefixed_commands.
7343 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
7344 addresses of remote_set_cmdlist and remote_show_cmdlist given
7345 as argument, not the address of an argument.
7346 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
7347 * gdb/remote.c (_initialize_remote): Likewise.
7348
7349 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7350
7351 * cli/cli-cmds.c (alias_command): Check for an existing alias
7352 using lookup_cmd_composition, as valid_command_p is too strict
7353 and forbids aliases that are the prefix of an existing alias
7354 or command.
7355 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
7356 command is properly recognised as a valid command.
7357
7358 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7359
7360 * unittests/help-doc-selftests.c: Rename to
7361 unittests/command-def-selftests.c
7362 * unittests/command-def-selftests.c (help_doc_tests): Update some
7363 comments.
7364 (command_structure_tests, traverse_command_structure): New namespace
7365 and function.
7366 (command_structure_invariants_tests): New function.
7367 (_initialize_command_def_selftests) Renamed from
7368 _initialize_help_doc_selftests, register command_structure_invariants
7369 selftest.
7370
7371 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7372
7373 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
7374 an alias of 'show'.
7375
7376 2020-05-15 Joel Brobecker <brobecker@adacore.com>
7377
7378 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
7379 ada_is_fixed_point_type. Update all callers.
7380 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
7381 all callers.
7382 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
7383 Update all callers.
7384 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
7385 print_fixed_point_type. Update all callers.
7386 * ada-valprint.c (ada_value_print_num): Replace call to
7387 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
7388
7389 2020-05-14 Kevin Buettner <kevinb@redhat.com>
7390
7391 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
7392 processors.
7393 (cpu_supports_bts): Add CV_AMD case.
7394
7395 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
7396 Simon Marchi <simon.marchi@efficios.com>
7397
7398 * infrun.c (stop_all_threads): Collect multiple wait events at
7399 each pass.
7400
7401 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
7402
7403 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
7404 type::code instead.
7405
7406 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
7407
7408 * gdbtypes.h (struct type) <code, set_code>: New methods.
7409 (TYPE_CODE): Use type::code. Change all call sites used to set
7410 the code to use type::set_code instead.
7411
7412 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7413 Tom de Vries <tdevries@suse.de>
7414 Pedro Alves <palves@redhat.com>
7415
7416 PR threads/25478
7417 * infrun.c (stop_all_threads): Do NOT ignore
7418 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
7419 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
7420 received.
7421 (handle_no_resumed): Remove code handling a live inferior with no
7422 threads.
7423 * remote.c (has_single_non_exited_thread): New.
7424 (remote_target::update_thread_list): Do not delete a thread if is
7425 the last thread of the process.
7426 * thread.c (thread_select): Call delete_exited_threads instead of
7427 prune_threads.
7428
7429 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7430
7431 * infrun.c (stop_all_threads): Enable/disable thread events of all
7432 targets. Move a debug message denoting the end of the function
7433 into the SCOPED_EXIT block.
7434
7435 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7436
7437 * process-stratum-target.h: Include <set>.
7438 (all_non_exited_process_targets, switch_to_target_no_thread): New
7439 function declarations.
7440 * process-stratum-target.c (all_non_exited_process_targets)
7441 (switch_to_target_no_thread): New function implementations.
7442
7443 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7444
7445 * infrun.c (handle_inferior_event): Extract out a piece of code
7446 into...
7447 (mark_non_executing_threads): ...this new function.
7448
7449 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7450
7451 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
7452 use.
7453
7454 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7455
7456 * regcache.c (regcache_read_pc_protected): New function
7457 implementation that returns 0 if the PC cannot read via
7458 'regcache_read_pc'.
7459 * infrun.c (proceed): Call 'regcache_read_pc_protected'
7460 instead of 'regcache_read_pc'.
7461 (keep_going_pass_signal): Ditto.
7462
7463 2020-05-13 Tom Tromey <tromey@adacore.com>
7464
7465 * ada-lang.c (align_value): Remove.
7466 (ada_template_to_fixed_record_type_1): Use align_up.
7467
7468 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7469
7470 * async-event.c: Update the copyright year.
7471 * async-event.h: Update the copyright year.
7472
7473 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
7474
7475 * objfiles.h (is_addr_in_objfile,
7476 shared_objfile_contains_address_p): Return bool.
7477 * objfile.c (is_addr_in_objfile,
7478 shared_objfile_contains_address_p): Return bool.
7479
7480 2020-05-11 Tom Tromey <tromey@adacore.com>
7481
7482 * cli/cli-cmds.c (info_command): Restore.
7483 (_initialize_cli_cmds): Use add_prefix_command for "info".
7484 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
7485
7486 2020-05-11 Tom Tromey <tromey@adacore.com>
7487
7488 * ada-lang.c (ada_value_primitive_field): Now public.
7489 * ada-lang.h (ada_value_primitive_field): Declare.
7490 * ada-valprint.c (print_field_values): Use
7491 ada_value_primitive_field for wrapper fields.
7492
7493 2020-05-11 Tom de Vries <tdevries@suse.de>
7494
7495 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
7496 MODULE_DOMAIN.
7497
7498 2020-05-11 Tom de Vries <tdevries@suse.de>
7499
7500 PR symtab/25941
7501 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
7502 with length 0, if not gdb-produced.
7503 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
7504
7505 2020-05-09 Tom de Vries <tdevries@suse.de>
7506
7507 PR gdb/25955
7508 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
7509 calculation.
7510
7511 2020-05-09 Tom Tromey <tom@tromey.com>
7512
7513 * top.c (server_command): Now bool.
7514 * top.h (server_command): Now bool.
7515
7516 2020-05-08 Tom Tromey <tromey@adacore.com>
7517
7518 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
7519 already being processed.
7520
7521 2020-05-08 Tom Tromey <tom@tromey.com>
7522
7523 * printcmd.c (struct display) <next>: Remove.
7524 <display>: New constructor.
7525 <exp_string>: Now a std::string.
7526 <enabled_p>: Now a bool.
7527 (display_number): Move definition earlier.
7528 (displays): Rename from display_chain. Now a std::vector.
7529 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
7530 (display_command): Update.
7531 (do_one_display, disable_display)
7532 (enable_disable_display_command, do_enable_disable_display):
7533 Update.
7534 (free_display): Remove.
7535 (clear_displays): Rewrite.
7536 (delete_display): Update.
7537 (map_display_numbers): Use function_view. Remove "data"
7538 parameter. Update.
7539 (do_delete_display): Remove.
7540 (undisplay_command): Update.
7541 (do_one_display, do_displays, disable_display)
7542 (info_display_command): Update.
7543 (do_enable_disable_display): Remove.
7544 (enable_disable_display_command)
7545 (clear_dangling_display_expressions): Update.
7546
7547 2020-05-08 Tom Tromey <tom@tromey.com>
7548
7549 * symtab.c (set_symbol_cache_size)
7550 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
7551 (maintenance_print_symbol_cache_statistics): Update.
7552 * symmisc.c (print_symbol_bcache_statistics)
7553 (print_objfile_statistics, maintenance_print_objfiles)
7554 (maintenance_info_symtabs, maintenance_check_symtabs)
7555 (maintenance_expand_symtabs, maintenance_info_line_tables):
7556 Update.
7557 * symfile-debug.c (set_debug_symfile): Update.
7558 * source.c (forget_cached_source_info): Update.
7559 * python/python.c (gdbpy_progspaces): Update.
7560 * psymtab.c (maintenance_info_psymtabs): Update.
7561 * probe.c (parse_probes): Update.
7562 * linespec.c (iterate_over_all_matching_symtabs)
7563 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
7564 * guile/scm-progspace.c (gdbscm_progspaces): Update.
7565 * exec.c (exec_target::close): Update.
7566 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
7567 * breakpoint.c (print_one_breakpoint_location)
7568 (create_longjmp_master_breakpoint)
7569 (create_std_terminate_master_breakpoint): Update.
7570 * progspace.c (program_spaces): Now a std::vector.
7571 (maybe_new_address_space): Update.
7572 (add_program_space): Remove.
7573 (program_space::program_space): Update.
7574 (remove_program_space): Update.
7575 (number_of_program_spaces): Remove.
7576 (print_program_space, update_address_spaces): Update.
7577 * progspace.h (program_spaces): Change type.
7578 (ALL_PSPACES): Remove.
7579 (number_of_program_spaces): Don't declare.
7580 (struct program_space) <next>: Remove.
7581
7582 2020-05-08 Tom Tromey <tom@tromey.com>
7583
7584 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
7585 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
7586 (enable_break): Update.
7587 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
7588 (frv_fdpic_find_canonical_descriptor): Update.
7589 (frv_fetch_objfile_link_map): Update.
7590 * progspace.c (program_space::free_all_objfiles): Update.
7591 (program_space::solibs): New method.
7592 * progspace.h (struct program_space) <solibs>: New method.
7593 * solist.h (master_so_list): Don't declare.
7594 (ALL_SO_LIBS): Remove.
7595 * solib.h (so_list_head): Remove.
7596 (update_solib_list): Update comment.
7597 * solib.c (master_so_list): Remove.
7598 (solib_used, update_solib_list, solib_add)
7599 (info_sharedlibrary_command, clear_solib)
7600 (reload_shared_libraries_1, remove_user_added_objfile): Update.
7601
7602 2020-05-08 Tom Tromey <tom@tromey.com>
7603
7604 * extension.c (extension_languages): Now a std::array.
7605 (ALL_EXTENSION_LANGUAGES): Remove.
7606 (get_ext_lang_defn, get_ext_lang_of_file)
7607 (eval_ext_lang_from_control_command): Update.
7608 (finish_ext_lang_initialization)
7609 (auto_load_ext_lang_scripts_for_objfile)
7610 (ext_lang_type_printers::ext_lang_type_printers)
7611 (apply_ext_lang_type_printers)
7612 (ext_lang_type_printers::~ext_lang_type_printers)
7613 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
7614 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
7615 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
7616 (get_matching_xmethod_workers, ext_lang_colorize)
7617 (ext_lang_before_prompt): Update.
7618 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
7619
7620 2020-05-08 Tom Tromey <tom@tromey.com>
7621
7622 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
7623 overload.
7624 <swap_string, m_string>: Remove.
7625 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
7626 Update.
7627 * stabsread.c (define_symbol, read_type): Update.
7628 * linespec.c (find_linespec_symbols): Update.
7629 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
7630 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
7631 * dbxread.c (read_dbx_symtab): Update.
7632 * cp-support.h (cp_canonicalize_string_full)
7633 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
7634 Return unique_xmalloc_ptr.
7635 * cp-support.c (inspect_type): Update.
7636 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
7637 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
7638 Likewise.
7639 * c-typeprint.c (print_name_maybe_canonical): Update.
7640 * break-catch-throw.c (check_status_exception_catchpoint):
7641 Update.
7642
7643 2020-05-08 Tom de Vries <tdevries@suse.de>
7644
7645 * infrun.c (follow_fork): Copy current_line and current_symtab to
7646 child thread.
7647
7648 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
7649
7650 * async-event.c (struct async_signal_handler, struct
7651 async_event_handler): Reformat, remove typedef.
7652
7653 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
7654
7655 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
7656 access thistype->main_type->dyn_prop_list directly.
7657
7658 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
7659
7660 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
7661 (remove_dyn_prop): Remove. Update all users to use
7662 type::remove_dyn_prop.
7663 * gdbtypes.c (remove_dyn_prop): Rename to...
7664 (type::remove_dyn_prop): ... this.
7665
7666 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
7667
7668 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
7669 (add_dyn_prop): Remove. Update all users to use
7670 type::add_dyn_prop.
7671 * gdbtypes.c (add_dyn_prop): Rename to...
7672 (type::add_dyn_prop): ... this.
7673
7674 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
7675
7676 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
7677 (get_dyn_prop): Remove. Update all users to use
7678 type::dyn_prop.
7679 * gdbtypes.c (get_dyn_prop): Rename to...
7680 (type::dyn_prop): ... this.
7681
7682 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
7683
7684 * gdbtypes.h (struct main_type) <flag_static>: Remove.
7685
7686 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
7687
7688 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
7689 instruction, skip it if it's there.
7690
7691 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
7692
7693 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
7694
7695 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
7696
7697 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
7698 * gdbtypes.c (recursive_dump_type): Remove use of
7699 TYPE_INCOMPLETE.
7700
7701 2020-05-03 Tom Tromey <tom@tromey.com>
7702
7703 * breakpoint.c (catch_command, tcatch_command): Remove.
7704 (_initialize_breakpoint): Use add_basic_prefix_cmd,
7705 add_show_prefix_cmd.
7706 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
7707 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
7708 Remove.
7709 (add_internal_problem_command): Use add_basic_prefix_cmd,
7710 add_show_prefix_cmd.
7711 * mips-tdep.c (set_mipsfpu_command): Remove.
7712 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
7713 * dwarf2/index-cache.c (set_index_cache_command): Remove.
7714 (_initialize_index_cache): Use add_basic_prefix_cmd.
7715 * memattr.c (dummy_cmd): Remove.
7716 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
7717 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
7718 (_initialize_tui_win): Use add_basic_prefix_cmd,
7719 add_show_prefix_cmd.
7720 * cli/cli-logging.c (set_logging_command): Remove.
7721 (_initialize_cli_logging): Use add_basic_prefix_cmd,
7722 add_show_prefix_cmd.
7723 (show_logging_command): Remove.
7724 * target.c (target_command): Remove.
7725 (add_target): Use add_basic_prefix_cmd.
7726
7727 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
7728
7729 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
7730
7731 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7732
7733 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
7734 info_command.
7735
7736 2020-04-30 Kamil Rytarowski <n54@gmx.com>
7737
7738 * nbsd-nat.c (nbsd_enable_proc_events)
7739 (nbsd_nat_target::post_startup_inferior): Add.
7740 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
7741 (nbsd_nat_target::update_thread_list): Rewrite.
7742 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
7743 "PTRACE_LWP_CREATE".
7744 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
7745
7746 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7747
7748 * stack.c (_initialize_stack): Remove duplicated creation
7749 of "frame" command and "f" alias.
7750
7751 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
7752
7753 PR gdb/18706
7754 * gdbtypes.c (check_typedef): Calculate size of array of
7755 stubbed type.
7756
7757 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
7758
7759 PR gdb/15559
7760 * i386-tdep.c (i386_push_dummy_call): Call
7761 i386_thiscall_push_dummy_call.
7762 (i386_thiscall_push_dummy_call): New function.
7763 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
7764 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
7765 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
7766
7767 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7768
7769 * gdbarch.sh (do_read): Add shellcheck disable directive for
7770 warning SC2162.
7771
7772 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7773
7774 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
7775 "referenced but not assigned" warning.
7776
7777 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7778
7779 * gdbarch.sh: Remove code that sets fallbackdefault.
7780
7781 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7782
7783 * gdbarch.sh: Use shell operators && and || instead of
7784 -a and -o.
7785
7786 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7787
7788 * gdbarch.sh: Use $(...) instead of `...`.
7789
7790 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7791
7792 * gdbarch.sh: Use double quotes around variables.
7793
7794 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7795
7796 * gdbarch.sh: Use %s with printf, instead of variables in the
7797 format string.
7798
7799 2020-04-29 Tom Tromey <tromey@adacore.com>
7800
7801 PR ada/25875:
7802 * dwarf2/read.c (update_enumeration_type_from_children): Compute
7803 type fields here.
7804 (read_enumeration_type): Call
7805 update_enumeration_type_from_children later. Update comments.
7806 (process_enumeration_scope): Don't create type fields.
7807
7808 2020-04-29 Kamil Rytarowski <n54@gmx.com>
7809
7810 * nbsd-tdep.c: Include "xml-syscall.h".
7811 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
7812
7813 2020-04-29 Kamil Rytarowski <n54@gmx.com>
7814
7815 * nbsd-nat.c: Include "sys/wait.h".
7816 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
7817 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
7818 (nbsd_nat_target::remove_exec_catchpoint)
7819 (nbsd_nat_target::set_syscall_catchpoint): Add.
7820 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
7821 (nbsd_nat_target::insert_exec_catchpoint)
7822 (nbsd_nat_target::remove_exec_catchpoint)
7823 (nbsd_nat_target::set_syscall_catchpoint): Add.
7824 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
7825 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
7826 `nbsd_get_syscall_number'.
7827
7828 2020-04-29 Tom Tromey <tom@tromey.com>
7829
7830 * stack.c (print_block_frame_labels): Remove.
7831
7832 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
7833
7834 PR gdb/17320
7835 * ada-valprint.c (val_print_packed_array_elements): Move array
7836 end bracket to new line.
7837 (ada_val_print_string): Remove extra spaces before first array
7838 element.
7839 * c-valprint.c (c_value_print_array): Likewise.
7840 * m2-valprint.c (m2_print_array_contents): Likewise.
7841 (m2_value_print_inner): Likewise.
7842 * p-valprint.c (pascal_value_print_inner): Likewise.
7843 * valprint.c (generic_val_print_array): Likewise.
7844 (value_print_array_elements): Move first array element and array
7845 end bracket to new line.
7846
7847 2020-04-29 Tom de Vries <tdevries@suse.de>
7848
7849 PR symtab/25889
7850 * linespec.c (find_method): Fix ix calculation.
7851
7852 2020-04-28 Kamil Rytarowski <n54@gmx.com>
7853
7854 * syscalls/update-netbsd.sh: New file.
7855 * syscalls/netbsd.xml: Regenerate.
7856 * data-directory/Makefile.in: Register `netbsd.xml' in
7857 `SYSCALLS_FILES'.
7858
7859 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
7860
7861 * syscalls/update-freebsd.sh: Add double quotes.
7862
7863 2020-04-28 Tom Tromey <tom@tromey.com>
7864
7865 * NEWS: Update.
7866 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
7867 (cmdpy_init): Allow class_tui.
7868
7869 2020-04-28 Mark Williams <mark@myosotissp.com>
7870
7871 PR gdb/24480
7872 * dwarf2read.c: Add missing assingments to list_in_scope when
7873 start_symtab was already called.
7874
7875 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
7876
7877 PR gdb/25881
7878 * dwarf2/read.c (offset_map_type): Use
7879 gdb:hash_enum<sect_offset> as hash function.
7880
7881 2020-04-28 Tom de Vries <tdevries@suse.de>
7882
7883 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
7884 with DW_AT_signature.
7885
7886 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
7887
7888 * configure.ac: Remove check for fs_base/gs_base in
7889 user_regs_struct.
7890 * configure: Re-generate.
7891 * config.in: Re-generate.
7892 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
7893 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
7894 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
7895
7896 2020-04-27 Luis Machado <luis.machado@linaro.org>
7897
7898 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
7899 problematic inline frame unwinding situation.
7900 * frame.c (frame_id_computed_p): New function.
7901 * frame.h (frame_id_computed_p): New prototype.
7902
7903 2020-04-26 Tom Tromey <tom@tromey.com>
7904
7905 * command.h (enum command_class) <class_pseudo>: Remove.
7906
7907 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7908
7909 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
7910 and whitespace.
7911
7912 2020-04-25 Kamil Rytarowski <n54@gmx.com>
7913
7914 * inf-ptrace.c (inf_ptrace_target::wait): Remove
7915 `PT_GET_PROCESS_STATE' block.
7916
7917 2020-04-24 Tom Tromey <tom@tromey.com>
7918
7919 * symtab.h (symbol_get_demangled_name): Don't declare.
7920 * symtab.c (symbol_get_demangled_name): Remove.
7921 (general_symbol_info::natural_name)
7922 (general_symbol_info::demangled_name): Update.
7923
7924 2020-04-24 Tom Tromey <tom@tromey.com>
7925
7926 PR rust/25025:
7927 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
7928
7929 2020-04-24 Tom Tromey <tom@tromey.com>
7930
7931 PR symtab/12707:
7932 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
7933 exists.
7934 (new_symbol): Likewise.
7935 * compile/compile-object-load.c (get_out_value_type): Use
7936 symbol_matches_search_name.
7937
7938 2020-04-24 Tom Tromey <tom@tromey.com>
7939
7940 * dwarf2/read.c (add_partial_symbol): Do not call
7941 compute_and_set_names.
7942
7943 2020-04-24 Tom Tromey <tom@tromey.com>
7944
7945 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
7946 overload.
7947
7948 2020-04-24 Tom Tromey <tom@tromey.com>
7949
7950 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
7951 (add_psymbol_to_list): New overload. Make old overload call new
7952 one.
7953 * psympriv.h (add_psymbol_to_list): New overload.
7954
7955 2020-04-24 Tom Tromey <tom@tromey.com>
7956
7957 * dwarf2/read.c (partial_die_info::read) <case
7958 DW_AT_linkage_name>: Use value_as_string.
7959 (dwarf2_string_attr): Use value_as_string.
7960 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
7961 method.
7962 * dwarf2/attribute.c (attribute::value_as_string): New method.
7963
7964 2020-04-24 Tom Tromey <tom@tromey.com>
7965
7966 * symtab.c (general_symbol_info::natural_name)
7967 (general_symbol_info::demangled_name): Check for language_rust.
7968
7969 2020-04-24 Tom Tromey <tom@tromey.com>
7970
7971 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
7972 (dwarf2_physname): ... from here.
7973 (partial_die_info::read): Add Rust "{" hack.
7974
7975 2020-04-24 Tom Tromey <tom@tromey.com>
7976
7977 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
7978 method.
7979 (symbol_set_demangled_name): Don't declare.
7980 * symtab.c (general_symbol_info::set_demangled_name): Rename from
7981 symbol_set_demangled_name.
7982 (general_symbol_info::set_language)
7983 (general_symbol_info::compute_and_set_names): Update.
7984 * minsyms.c (minimal_symbol_reader::install): Update.
7985 * dwarf2/read.c (new_symbol): Update.
7986
7987 2020-04-24 Tom Tromey <tromey@adacore.com>
7988
7989 PR python/23662:
7990 * python/py-type.c (convert_field): Handle
7991 FIELD_LOC_KIND_DWARF_BLOCK.
7992 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
7993 (typy_get_dynamic): Nw function.
7994 (type_object_getset): Add "dynamic".
7995 * NEWS: Add entry.
7996
7997 2020-04-24 Tom Tromey <tromey@adacore.com>
7998
7999 * ada-typeprint.c (print_choices, print_variant_part)
8000 (print_record_field_types_dynamic): New functions.
8001 (print_record_field_types): Use print_record_field_types_dynamic.
8002
8003 2020-04-24 Tom Tromey <tromey@adacore.com>
8004
8005 * dwarf2/read.c (handle_data_member_location): New overload.
8006 (dwarf2_add_field): Use it.
8007 (decode_locdesc): Add "computed" parameter. Update comment.
8008 * gdbtypes.c (is_dynamic_type_internal): Also look for
8009 FIELD_LOC_KIND_DWARF_BLOCK.
8010 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
8011 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
8012 virtual base classes.
8013 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
8014 FIELD_LOC_KIND_DWARF_BLOCK.
8015
8016 2020-04-24 Tom Tromey <tromey@adacore.com>
8017
8018 * dwarf2/read.c (read_structure_type): Handle dynamic length.
8019 * gdbtypes.c (is_dynamic_type_internal): Check
8020 TYPE_HAS_DYNAMIC_LENGTH.
8021 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
8022 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
8023 New macros.
8024 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
8025 constant.
8026
8027 2020-04-24 Tom Tromey <tromey@adacore.com>
8028
8029 * dwarf2/read.c (struct variant_field): Rewrite.
8030 (struct variant_part_builder): New.
8031 (struct nextfield): Remove "variant" field. Add "offset".
8032 (struct field_info): Add "current_variant_part" and
8033 "variant_parts".
8034 (alloc_discriminant_info): Remove.
8035 (alloc_rust_variant): New function.
8036 (quirk_rust_enum): Update.
8037 (dwarf2_add_field): Set "offset" member. Don't handle
8038 DW_TAG_variant_part.
8039 (offset_map_type): New typedef.
8040 (convert_variant_range, create_one_variant)
8041 (create_one_variant_part, create_variant_parts)
8042 (add_variant_property): New functions.
8043 (dwarf2_attach_fields_to_type): Call add_variant_property.
8044 (read_structure_type): Don't handle DW_TAG_variant_part.
8045 (handle_variant_part, handle_variant): New functions.
8046 (handle_struct_member_die): Use them.
8047 (process_structure_scope): Don't handle variant parts.
8048 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
8049 (struct discriminant_info): Remove.
8050 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
8051 (struct main_type) <flag_discriminated_union>: Remove.
8052 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
8053 (rust_enum_variant): Return int. Remove "contents". Rewrite.
8054 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
8055 Update.
8056 * valops.c (value_union_variant): Remove.
8057 * value.h (value_union_variant): Don't declare.
8058
8059 2020-04-24 Tom Tromey <tromey@adacore.com>
8060
8061 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
8062 (ada_value_primitive_packed_val): Update.
8063 * ada-valprint.c (ada_value_print_1): Update.
8064 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
8065 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
8066 just an address. Use evaluate_for_locexpr_baton.
8067 (dwarf2_evaluate_property): Update.
8068 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
8069 array_view.
8070 * findvar.c (default_read_var_value): Update.
8071 * gdbtypes.c (compute_variant_fields_inner)
8072 (resolve_dynamic_type_internal): Update.
8073 (resolve_dynamic_type): Change type of valaddr parameter.
8074 * gdbtypes.h (resolve_dynamic_type): Update.
8075 * valarith.c (value_subscripted_rvalue): Update.
8076 * value.c (value_from_contents_and_address): Update.
8077
8078 2020-04-24 Tom Tromey <tromey@adacore.com>
8079
8080 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
8081 "push_initial_value" parameter.
8082 (dwarf2_evaluate_property): Likewise.
8083 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
8084
8085 2020-04-24 Tom Tromey <tromey@adacore.com>
8086
8087 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
8088 (variant::matches, compute_variant_fields_recurse)
8089 (compute_variant_fields_inner, compute_variant_fields): New
8090 functions.
8091 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
8092 Use resolved_type after type is made.
8093 (operator==): Add new cases.
8094 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
8095 (struct discriminant_range, struct variant, struct variant_part):
8096 New.
8097 (union dynamic_prop_data) <variant_parts, original_type>: New
8098 members.
8099 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
8100 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
8101 constants.
8102 * value.c (unpack_bits_as_long): Now public.
8103 * value.h (unpack_bits_as_long): Declare.
8104
8105 2020-04-24 Tom Tromey <tromey@adacore.com>
8106
8107 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
8108 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
8109
8110 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
8111
8112 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
8113
8114 2020-04-24 Kamil Rytarowski <n54@gmx.com>
8115
8116 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
8117 (remove_fork_catchpoint, post_startup_inferior)
8118 (post_attach): Move...
8119 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
8120 (remove_fork_catchpoint, post_startup_inferior)
8121 (post_attach): ...here.
8122 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
8123 (remove_fork_catchpoint, post_startup_inferior)
8124 (post_attach): Move...
8125 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
8126 (remove_fork_catchpoint, post_startup_inferior)
8127 (post_attach): ...here.
8128
8129 2020-04-24 Tom Tromey <tromey@adacore.com>
8130
8131 * nat/windows-nat.h (struct windows_thread_info)
8132 <pc_adjusted>: New member.
8133 * windows-nat.c (windows_fetch_one_register): Check
8134 pc_adjusted.
8135 (windows_nat_target::get_windows_debug_event)
8136 (windows_nat_target::wait): Set pc_adjusted.
8137
8138 2020-04-24 Tom de Vries <tdevries@suse.de>
8139
8140 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
8141 Run gdb-add-index inside temp dir.
8142
8143 2020-04-23 Tom Tromey <tromey@adacore.com>
8144
8145 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
8146 in loop.
8147
8148 2020-04-23 Luis Machado <luis.machado@linaro.org>
8149
8150 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
8151 get_frame_register instead of gdbarch_unwind_pc.
8152
8153 2020-04-23 Tom de Vries <tdevries@suse.de>
8154
8155 * symtab.c (lookup_global_symbol): Prefer def over decl.
8156
8157 2020-04-23 Tom de Vries <tdevries@suse.de>
8158
8159 PR symtab/25807
8160 * block.c (best_symbol, better_symbol): Promote to external.
8161 * block.h (best_symbol, better_symbol): Declare.
8162 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
8163 decl.
8164
8165 2020-04-23 Tom Tromey <tromey@adacore.com>
8166
8167 PR ada/25837:
8168 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
8169 "const char *", not a "const std::string &".
8170 <name_and_matcher::operator==>: Update.
8171 * unittests/lookup_name_info-selftests.c: Change type of
8172 "result".
8173
8174 2020-04-23 Tom Tromey <tom@tromey.com>
8175
8176 * inferior.h (iterate_over_inferiors): Don't declare.
8177 * inferior.c (iterate_over_inferiors): Remove.
8178 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
8179 Remove.
8180 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
8181 use iterate_over_inferiors.
8182 (darwin_resume_inferior_it)
8183 (struct resume_inferior_threads_param)
8184 (darwin_resume_inferior_threads_it): Remove.
8185 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
8186
8187 2020-04-23 Tom de Vries <tdevries@suse.de>
8188
8189 * blockframe.c (find_pc_partial_function): Use
8190 find_pc_sect_compunit_symtab rather than
8191 objfile->sf->qf->find_pc_sect_compunit_symtab.
8192
8193 2020-04-22 Tom de Vries <tdevries@suse.de>
8194
8195 PR symtab/25764
8196 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
8197 in psymtabs.
8198
8199 2020-04-22 Tom de Vries <tdevries@suse.de>
8200
8201 PR symtab/25801
8202 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
8203 symtabs.
8204
8205 2020-04-22 Tom de Vries <tdevries@suse.de>
8206
8207 PR symtab/25700
8208 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
8209 CU if already created.
8210
8211 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8212
8213 * infrun.c (displaced_step_fixup): Switch to the event_thread
8214 before calling displaced_step_restore, not after.
8215
8216 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
8217
8218 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
8219 its inferior is not recorded by us.
8220 (record_btrace_target_open): Replace call to
8221 all_non_exited_threads () with call to current_inferior
8222 ()->non_exited_threads ().
8223 (record_btrace_target::stop_recording): Likewise.
8224 (record_btrace_target::close): Likewise.
8225 (record_btrace_target::wait): Likewise.
8226 (record_btrace_target::record_stop_replaying): Likewise.
8227
8228 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
8229
8230 * btrace.c (btrace_enable): Throw an error on double enables and
8231 when enabling recording fails.
8232 (btrace_disable): Throw an error if the thread is not recorded.
8233
8234 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
8235
8236 * record-btrace.c (record_btrace_target::fetch_registers): Forward
8237 request if we do not have a thread_info.
8238
8239 2020-04-21 Tom de Vries <tdevries@suse.de>
8240
8241 PR gdb/25471
8242 * thread.c
8243 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
8244 exception in get_frame_id.
8245
8246 2020-04-20 Tom Tromey <tromey@adacore.com>
8247
8248 * python/python.c (struct gdbpy_event): Mark move constructor as
8249 noexcept.
8250 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
8251 constructor as noexcept.
8252 * completer.h (struct completion_result): Mark move constructor as
8253 noexcept.
8254 * completer.c (completion_result::completion_result): Use
8255 initialization style. Don't call reset_match_list.
8256
8257 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
8258
8259 * MAINTAINERS (Write After Approval): Add myself.
8260
8261 2020-04-18 Tom Tromey <tom@tromey.com>
8262
8263 * windows-tdep.c (init_w32_command_list)
8264 (w32_prefix_command_valid): Restore.
8265 (_initialize_windows_tdep): Call init_w32_command_list.
8266
8267 2020-04-18 Tom Tromey <tom@tromey.com>
8268
8269 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
8270 * value.c (value_fn_field): Update.
8271 * valops.c (find_function_in_inferior)
8272 (value_allocate_space_in_inferior): Update.
8273 * tui/tui-winsource.c (tui_update_source_windows_with_line):
8274 Update.
8275 * tui/tui-source.c (tui_source_window::set_contents): Update.
8276 * symtab.c (lookup_global_or_static_symbol)
8277 (find_function_start_sal_1, skip_prologue_sal)
8278 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
8279 * symmisc.c (dump_msymbols, dump_symtab_1)
8280 (maintenance_print_one_line_table): Update.
8281 * symfile.c (init_entry_point_info, section_is_mapped)
8282 (list_overlays_command, simple_read_overlay_table)
8283 (simple_overlay_update_1): Update.
8284 * stap-probe.c (handle_stap_probe): Update.
8285 * stabsread.c (dbx_init_float_type, define_symbol)
8286 (read_one_struct_field, read_enum_type, read_range_type): Update.
8287 * source.c (info_line_command): Update.
8288 * python/python.c (gdbpy_source_objfile_script)
8289 (gdbpy_execute_objfile_script): Update.
8290 * python/py-type.c (save_objfile_types): Update.
8291 * python/py-objfile.c (py_free_objfile): Update.
8292 * python/py-inferior.c (python_new_objfile): Update.
8293 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
8294 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
8295 (maintenance_check_psymtabs): Update.
8296 * printcmd.c (info_address_command): Update.
8297 * objfiles.h (struct objfile) <arch>: New method, from
8298 get_objfile_arch.
8299 (get_objfile_arch): Don't declare.
8300 * objfiles.c (get_objfile_arch): Remove.
8301 (filter_overlapping_sections): Update.
8302 * minsyms.c (msymbol_is_function): Update.
8303 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
8304 (output_nondebug_symbol): Update.
8305 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
8306 (mdebug_expand_psymtab): Update.
8307 * machoread.c (macho_add_oso_symfile): Update.
8308 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
8309 Update.
8310 * linux-fork.c (checkpoint_command): Update.
8311 * linespec.c (convert_linespec_to_sals): Update.
8312 * jit.c (finalize_symtab): Update.
8313 * infrun.c (insert_exception_resume_from_probe): Update.
8314 * ia64-tdep.c (ia64_find_unwind_table): Update.
8315 * hppa-tdep.c (internalize_unwinds): Update.
8316 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
8317 Update.
8318 * gcore.c (call_target_sbrk): Update.
8319 * elfread.c (record_minimal_symbol, elf_symtab_read)
8320 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
8321 (elf_gnu_ifunc_resolve_by_got): Update.
8322 * dwarf2/read.c (create_addrmap_from_index)
8323 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
8324 (read_debug_names_from_section)
8325 (process_psymtab_comp_unit_reader, add_partial_symbol)
8326 (add_partial_subprogram, process_full_comp_unit)
8327 (read_file_scope, read_func_scope, read_lexical_block_scope)
8328 (read_call_site_scope, dwarf2_ranges_read)
8329 (dwarf2_record_block_ranges, dwarf2_add_field)
8330 (mark_common_block_symbol_computed, read_tag_pointer_type)
8331 (read_tag_string_type, dwarf2_init_float_type)
8332 (dwarf2_init_complex_target_type, read_base_type)
8333 (partial_die_info::read, partial_die_info::read)
8334 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
8335 (dwarf2_fetch_die_loc_sect_off): Update.
8336 * dwarf2/loc.c (dwarf2_find_location_expression)
8337 (class dwarf_evaluate_loc_desc, rw_pieced_value)
8338 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
8339 (dwarf2_loc_desc_get_symbol_read_needs)
8340 (locexpr_describe_location_piece, locexpr_describe_location_1)
8341 (loclist_describe_location): Update.
8342 * dwarf2/index-write.c (write_debug_names): Update.
8343 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
8344 * dtrace-probe.c (dtrace_process_dof): Update.
8345 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
8346 (process_one_symbol): Update.
8347 * ctfread.c (ctf_init_float_type, read_base_type): Update.
8348 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
8349 (coff_read_enum_type): Update.
8350 * cli/cli-cmds.c (edit_command, list_command): Update.
8351 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
8352 * breakpoint.c (create_overlay_event_breakpoint)
8353 (create_longjmp_master_breakpoint)
8354 (create_std_terminate_master_breakpoint)
8355 (create_exception_master_breakpoint, get_sal_arch): Update.
8356 * block.c (block_gdbarch): Update.
8357 * annotate.c (annotate_source_line): Update.
8358
8359 2020-04-17 Tom Tromey <tromey@adacore.com>
8360
8361 * auto-load.c (show_auto_load_cmd): Remove.
8362 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
8363 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
8364 (maintenance_print_arc_command): Remove.
8365 * tui/tui-win.c (tui_command): Remove.
8366 (tui_get_cmd_list): Use add_basic_prefix_cmd.
8367 * tui/tui-layout.c (tui_layout_command): Remove.
8368 (_initialize_tui_layout): Use add_basic_prefix_cmd.
8369 * python/python.c (user_set_python, user_show_python): Remove.
8370 (_initialize_python): Use add_basic_prefix_cmd,
8371 add_show_prefix_cmd.
8372 * guile/guile.c (set_guile_command, show_guile_command): Remove.
8373 (install_gdb_commands): Use add_basic_prefix_cmd,
8374 add_show_prefix_cmd.
8375 (info_guile_command): Remove.
8376 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
8377 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
8378 add_show_prefix_cmd.
8379 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
8380 Remove do_set and do_show parameters.
8381 * cli/cli-style.c (set_style, show_style): Remove.
8382 (_initialize_cli_style): Use add_basic_prefix_cmd,
8383 add_show_prefix_cmd.
8384 (cli_style_option::add_setshow_commands): Remove do_set and
8385 do_show parameters.
8386 (cli_style_option::add_setshow_commands): Use
8387 add_basic_prefix_cmd, add_show_prefix_cmd.
8388 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
8389 (set_style_name): Remove.
8390 * cli/cli-dump.c (dump_command, append_command): Remove.
8391 (srec_dump_command, ihex_dump_command, verilog_dump_command)
8392 (tekhex_dump_command, binary_dump_command)
8393 (binary_append_command): Remove.
8394 (_initialize_cli_dump): Use add_basic_prefix_cmd.
8395 * windows-tdep.c (w32_prefix_command_valid): Remove global.
8396 (init_w32_command_list): Remove; move into ...
8397 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
8398 * valprint.c (set_print, show_print, set_print_raw)
8399 (show_print_raw): Remove.
8400 (_initialize_valprint): Use add_basic_prefix_cmd,
8401 add_show_prefix_cmd.
8402 * typeprint.c (set_print_type, show_print_type): Remove.
8403 (_initialize_typeprint): Use add_basic_prefix_cmd,
8404 add_show_prefix_cmd.
8405 * record.c (set_record_command, show_record_command): Remove.
8406 (_initialize_record): Use add_basic_prefix_cmd,
8407 add_show_prefix_cmd.
8408 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
8409 add_show_prefix_cmd.
8410 (info_command, show_command, set_debug, show_debug): Remove.
8411 * top.h (set_history, show_history): Don't declare.
8412 * top.c (set_history, show_history): Remove.
8413 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
8414 (unset_tdesc_cmd): Remove.
8415 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
8416 add_show_prefix_cmd.
8417 * symtab.c (info_module_command): Remove.
8418 (_initialize_symtab): Use add_basic_prefix_cmd.
8419 * symfile.c (overlay_command): Remove.
8420 (_initialize_symfile): Use add_basic_prefix_cmd.
8421 * sparc64-tdep.c (info_adi_command): Remove.
8422 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
8423 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
8424 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
8425 add_show_prefix_cmd.
8426 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
8427 (_initialize_serial): Use add_basic_prefix_cmd,
8428 add_show_prefix_cmd.
8429 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
8430 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
8431 add_show_prefix_cmd.
8432 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
8433 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
8434 add_show_prefix_cmd.
8435 * riscv-tdep.c (show_riscv_command, set_riscv_command)
8436 (show_debug_riscv_command, set_debug_riscv_command): Remove.
8437 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
8438 add_show_prefix_cmd.
8439 * remote.c (remote_command, set_remote_cmd): Remove.
8440 (_initialize_remote): Use add_basic_prefix_cmd.
8441 * record-full.c (set_record_full_command)
8442 (show_record_full_command): Remove.
8443 (_initialize_record_full): Use add_basic_prefix_cmd,
8444 add_show_prefix_cmd.
8445 * record-btrace.c (cmd_set_record_btrace)
8446 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
8447 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
8448 (cmd_show_record_btrace_pt): Remove.
8449 (_initialize_record_btrace): Use add_basic_prefix_cmd,
8450 add_show_prefix_cmd.
8451 * ravenscar-thread.c (set_ravenscar_command)
8452 (show_ravenscar_command): Remove.
8453 (_initialize_ravenscar): Use add_basic_prefix_cmd,
8454 add_show_prefix_cmd.
8455 * mips-tdep.c (show_mips_command, set_mips_command)
8456 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
8457 add_show_prefix_cmd.
8458 * maint.c (maintenance_command, maintenance_info_command)
8459 (maintenance_check_command, maintenance_print_command)
8460 (maintenance_set_cmd, maintenance_show_cmd): Remove.
8461 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
8462 add_show_prefix_cmd.
8463 (show_per_command_cmd): Remove.
8464 * maint-test-settings.c (maintenance_set_test_settings_cmd):
8465 Remove.
8466 (maintenance_show_test_settings_cmd): Remove.
8467 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
8468 add_show_prefix_cmd.
8469 * maint-test-options.c (maintenance_test_options_command):
8470 Remove.
8471 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
8472 * macrocmd.c (macro_command): Remove
8473 (_initialize_macrocmd): Use add_basic_prefix_cmd.
8474 * language.c (set_check, show_check): Remove.
8475 (_initialize_language): Use add_basic_prefix_cmd,
8476 add_show_prefix_cmd.
8477 * infcmd.c (unset_command): Remove.
8478 (_initialize_infcmd): Use add_basic_prefix_cmd.
8479 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
8480 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
8481 add_show_prefix_cmd.
8482 * go32-nat.c (go32_info_dos_command): Remove.
8483 (_initialize_go32_nat): Use add_basic_prefix_cmd.
8484 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
8485 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
8486 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
8487 (_initialize_frame): Use add_basic_prefix_cmd,
8488 add_show_prefix_cmd.
8489 * dcache.c (set_dcache_command, show_dcache_command): Remove.
8490 (_initialize_dcache): Use add_basic_prefix_cmd,
8491 add_show_prefix_cmd.
8492 * cp-support.c (maint_cplus_command): Remove.
8493 (_initialize_cp_support): Use add_basic_prefix_cmd.
8494 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
8495 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
8496 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
8497 add_basic_prefix_cmd, add_show_prefix_cmd.
8498 * breakpoint.c (save_command): Remove.
8499 (_initialize_breakpoint): Use add_basic_prefix_cmd.
8500 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
8501 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
8502 add_show_prefix_cmd.
8503 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
8504 (set_ada_command, show_ada_command): Remove.
8505 (_initialize_ada_language): Use add_basic_prefix_cmd,
8506 add_show_prefix_cmd.
8507 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
8508
8509 2020-04-16 Kamil Rytarowski <n54@gmx.com>
8510
8511 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
8512 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
8513
8514 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
8515
8516 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
8517 warning messages.
8518
8519 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
8520
8521 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
8522 import table is not at beginning of .idata section.
8523
8524 2020-04-16 Pedro Alves <palves@redhat.com>
8525
8526 * inferior.c (delete_inferior): Use delete operator directly
8527 instead of delete_program_space.
8528 * progspace.c (add_program_space): New, factored out from
8529 program_space::program_space.
8530 (remove_program_space): New, factored out from
8531 delete_program_space.
8532 (program_space::program_space): Remove intro comment. Rewrite.
8533 (program_space::~program_space): Remove intro comment. Call
8534 remove_program_space.
8535 (delete_program_space): Delete.
8536 * progspace.h (program_space::program_space): Make explicit. Move
8537 intro comment here, adjusted.
8538 (program_space::~program_space): Move intro comment here,
8539 adjusted.
8540 (delete_program_space): Remove.
8541
8542 2020-04-16 Tom Tromey <tromey@adacore.com>
8543
8544 * windows-nat.c (windows_nat::handle_access_violation): New
8545 function.
8546 * nat/windows-nat.h (handle_access_violation): Declare.
8547 * nat/windows-nat.c (handle_exception): Move Cygwin code to
8548 windows-nat.c. Call handle_access_violation.
8549
8550 2020-04-16 Tom de Vries <tdevries@suse.de>
8551
8552 PR symtab/25791
8553 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
8554 CUs without psymtab.
8555
8556 2020-04-16 Kevin Buettner <kevinb@redhat.com>
8557
8558 * python/python.c (do_start_initialization): Don't call
8559 PyEval_InitThreads for Python 3.9 and beyond.
8560
8561 2020-04-15 Kamil Rytarowski <n54@gmx.com>
8562
8563 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
8564 thread functions.
8565 (obsd_nat_target::wait): Likewise.
8566
8567 2020-04-15 Tom Tromey <tromey@adacore.com>
8568
8569 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
8570 (DEBUG_EXCEPT): Use debug_printf.
8571
8572 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
8573
8574 * completer.c (class completion_tracker::completion_hash_entry)
8575 <hash_name>: New member function.
8576 (completion_tracker::discard_completions): New callback to hash a
8577 completion_hash_entry, pass this to htab_create_alloc.
8578
8579 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
8580
8581 * windows-nat.c (windows_make_so): Warn rather than stopping with
8582 an error if realpath() fails.
8583
8584 2020-04-14 Kamil Rytarowski <n54@gmx.com>
8585
8586 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
8587 (nbsd_nat_target::info_proc): Add do_status.
8588
8589 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
8590 Tom de Vries <tdevries@suse.de>
8591
8592 PR symtab/25718
8593 * psympriv.h (struct partial_symtab::read_symtab)
8594 (struct partial_symtab::expand_psymtab)
8595 (struct partial_symtab::read_dependencies): Update comments.
8596 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
8597 read_symtab for includer.
8598 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
8599 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
8600 (struct dwarf2_include_psymtab::m_readin): Remove.
8601 (struct dwarf2_include_psymtab::includer): New member function.
8602 (dwarf2_psymtab::expand_psymtab): Assert !readin.
8603
8604 2020-04-14 Tom de Vries <tdevries@suse.de>
8605
8606 PR symtab/25720
8607 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
8608 with NULL symbol_matcher and lookup_name.
8609 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
8610 and lookup_name.
8611 * dwarf2/read.c (dw2_expand_symtabs_matching)
8612 (dw2_debug_names_expand_symtabs_matching): Same.
8613 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
8614 Make lookup_name a pointer. Update comment.
8615 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
8616 lookup_name being a pointer.
8617 * symfile.c (expand_symtabs_matching): Same.
8618 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
8619 * linespec.c (iterate_over_all_matching_symtabs): Same.
8620
8621 2020-04-13 Tom Tromey <tom@tromey.com>
8622
8623 * run-on-main-thread.c: Update include.
8624 * unittests/main-thread-selftests.c: Update include.
8625 * tui/tui-win.c: Update include.
8626 * tui/tui-io.c: Update include.
8627 * tui/tui-interp.c: Update include.
8628 * tui/tui-hooks.c: Update include.
8629 * top.h: Update include.
8630 * top.c: Update include.
8631 * ser-base.c: Update include.
8632 * remote.c: Update include.
8633 * remote-notif.c: Update include.
8634 * remote-fileio.c: Update include.
8635 * record-full.c: Update include.
8636 * record-btrace.c: Update include.
8637 * python/python.c: Update include.
8638 * posix-hdep.c: Update include.
8639 * mingw-hdep.c: Update include.
8640 * mi/mi-main.c: Update include.
8641 * mi/mi-interp.c: Update include.
8642 * main.c: Update include.
8643 * linux-nat.c: Update include.
8644 * interps.c: Update include.
8645 * infrun.c: Update include.
8646 * inf-loop.c: Update include.
8647 * event-top.c: Update include.
8648 * event-loop.c: Move to ../gdbsupport/.
8649 * event-loop.h: Move to ../gdbsupport/.
8650 * async-event.h: Update include.
8651 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
8652
8653 2020-04-13 Tom Tromey <tom@tromey.com>
8654
8655 * tui/tui-win.c: Include async-event.h.
8656 * remote.c: Include async-event.h.
8657 * remote-notif.c: Include async-event.h.
8658 * record-full.c: Include async-event.h.
8659 * record-btrace.c: Include async-event.h.
8660 * infrun.c: Include async-event.h.
8661 * event-top.c: Include async-event.h.
8662 * event-loop.h: Move some declarations to async-event.h.
8663 * event-loop.c: Don't include ser-event.h or top.h. Move some
8664 code to async-event.c.
8665 * async-event.h: New file.
8666 * async-event.c: New file.
8667 * Makefile.in (COMMON_SFILES): Add async-event.c.
8668 (HFILES_NO_SRCDIR): Add async-event.h.
8669
8670 2020-04-13 Tom Tromey <tom@tromey.com>
8671
8672 * utils.c (flush_streams): New function.
8673 * event-loop.c (gdb_wait_for_event): Call flush_streams.
8674
8675 2020-04-13 Tom Tromey <tom@tromey.com>
8676
8677 * event-loop.c (handle_file_event): Use warning, not
8678 printf_unfiltered.
8679
8680 2020-04-13 Tom Tromey <tom@tromey.com>
8681
8682 * event-loop.c: Include <chrono>.
8683
8684 2020-04-13 Tom Tromey <tom@tromey.com>
8685
8686 * gdb_select.h: Move to ../gdbsupport/.
8687 * event-loop.c: Update include path.
8688 * top.c: Update include path.
8689 * ser-base.c: Update include path.
8690 * ui-file.c: Update include path.
8691 * ser-tcp.c: Update include path.
8692 * guile/scm-ports.c: Update include path.
8693 * posix-hdep.c: Update include path.
8694 * ser-unix.c: Update include path.
8695 * gdb_usleep.c: Update include path.
8696 * mingw-hdep.c: Update include path.
8697 * inflow.c: Update include path.
8698 * infrun.c: Update include path.
8699 * event-top.c: Update include path.
8700
8701 2020-04-13 Tom Tromey <tom@tromey.com>
8702
8703 * configure: Rebuild.
8704 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
8705
8706 2020-04-13 Tom Tromey <tom@tromey.com>
8707
8708 * event-loop.h (start_event_loop): Don't declare.
8709 * event-loop.c (start_event_loop): Move...
8710 * main.c (start_event_loop): ...here. Now static.
8711
8712 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
8713
8714 * MAINTAINERS: Update my email address.
8715
8716 2020-04-12 Kamil Rytarowski <n54@gmx.com>
8717
8718 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
8719 IP_ALL.
8720
8721 2020-04-12 Kamil Rytarowski <n54@gmx.com>
8722
8723 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
8724 (nbsd_nat_target::info_proc): Add do_cmdline.
8725
8726 2020-04-12 Kamil Rytarowski <n54@gmx.com>
8727
8728 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
8729 (nbsd_nat_target::info_proc): Add do_cwd.
8730
8731 2020-04-12 Kamil Rytarowski <n54@gmx.com>
8732
8733 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
8734
8735 2020-04-11 Kamil Rytarowski <n54@gmx.com>
8736
8737 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
8738 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
8739 (nbsd_nat_target::info_proc): New functions.
8740 * nbsd-nat.c (kinfo_get_vmmap): New function.
8741 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
8742 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
8743 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
8744 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
8745 functions.
8746 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
8747 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
8748 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
8749 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
8750 (KINFO_VME_FLAG_GROWS_DOWN): New.
8751
8752 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
8753
8754 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
8755 bit shift.
8756
8757 2020-04-10 Tom Tromey <tromey@adacore.com>
8758
8759 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
8760
8761 2020-04-10 Tom Tromey <tromey@adacore.com>
8762
8763 * symtab.c (get_symbol_address, get_msymbol_address): Skip
8764 separate debug files.
8765
8766 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
8767
8768 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
8769 Move to...
8770 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
8771 ... here.
8772 * windows-nat.c (windows_nat_target::get_windows_debug_event):
8773 Check for STATUS_WX86_BREAKPOINT.
8774 (windows_nat_target::wait): Same.
8775
8776 2020-04-10 Tom de Vries <tdevries@suse.de>
8777
8778 PR cli/25808
8779 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
8780
8781 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
8782
8783 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
8784 (Write After Approval): Remove Tom de Vries.
8785
8786 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
8787
8788 revert partially:
8789 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8790
8791 * buildsym.c (record_line): Fix undefined behavior and preserve
8792 lines at eof.
8793
8794 2020-04-09 Kamil Rytarowski <n54@gmx.com>
8795
8796 * auxv.h (svr4_auxv_parse): New.
8797 * auxv.c (default_auxv_parse): Split into default_auxv_parse
8798 and generic_auxv_parse.
8799 (svr4_auxv_parse): Add.
8800 * obsd-tdep.c: Include "auxv.h".
8801 (obsd_auxv_parse): Remove.
8802 (obsd_init_abi): Remove comment.
8803 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
8804 from `obsd_auxv_parse' to `svr4_auxv_parse'.
8805 * nbsd-tdep.c: Include "auxv.h".
8806 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
8807
8808 2020-04-08 Tom Tromey <tromey@adacore.com>
8809
8810 * nat/windows-nat.h (last_wait_event): Don't declare.
8811 (wait_for_debug_event): Update comment.
8812 * nat/windows-nat.c (last_wait_event): Now static.
8813
8814 2020-04-08 Tom Tromey <tromey@adacore.com>
8815
8816 * windows-nat.c (wait_for_debug_event): Move to
8817 nat/windows-nat.c.
8818 * nat/windows-nat.h (wait_for_debug_event): Declare.
8819 * nat/windows-nat.c (wait_for_debug_event): Move from
8820 windows-nat.c. No longer static.
8821
8822 2020-04-08 Tom Tromey <tromey@adacore.com>
8823
8824 * windows-nat.c (get_windows_debug_event): Use
8825 fetch_pending_stop.
8826 * nat/windows-nat.h (fetch_pending_stop): Declare.
8827 * nat/windows-nat.c (fetch_pending_stop): New function.
8828
8829 2020-04-08 Tom Tromey <tromey@adacore.com>
8830
8831 * windows-nat.c (windows_continue): Use matching_pending_stop and
8832 continue_last_debug_event.
8833 * nat/windows-nat.h (matching_pending_stop)
8834 (continue_last_debug_event): Declare.
8835 * nat/windows-nat.c (DEBUG_EVENTS): New define.
8836 (matching_pending_stop, continue_last_debug_event): New
8837 functions.
8838
8839 2020-04-08 Tom Tromey <tromey@adacore.com>
8840
8841 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
8842 (handle_exception_result): Move to nat/windows-nat.h.
8843 (DEBUG_EXCEPTION_SIMPLE): Remove.
8844 (windows_nat::handle_ms_vc_exception): New function.
8845 (handle_exception): Move to nat/windows-nat.c.
8846 (get_windows_debug_event): Update.
8847 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
8848 nat/windows-nat.c.
8849 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
8850 (handle_exception_result): Move from windows-nat.c.
8851 (handle_exception): Declare.
8852 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
8853 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
8854 windows-nat.c.
8855
8856 2020-04-08 Tom Tromey <tromey@adacore.com>
8857
8858 * windows-nat.c (exception_count, event_count): Remove.
8859 (handle_exception, get_windows_debug_event)
8860 (do_initial_windows_stuff): Update.
8861
8862 2020-04-08 Tom Tromey <tromey@adacore.com>
8863
8864 * windows-nat.c (windows_nat::handle_load_dll)
8865 (windows_nat::handle_unload_dll): Rename. No longer static.
8866 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
8867 Declare.
8868
8869 2020-04-08 Tom Tromey <tromey@adacore.com>
8870
8871 * complaints.h (stop_whining): Declare at top-level.
8872 (complaint): Don't declare stop_whining.
8873
8874 2020-04-08 Tom Tromey <tromey@adacore.com>
8875
8876 * windows-nat.c (windows_nat::handle_output_debug_string):
8877 Rename. No longer static.
8878 * nat/windows-nat.h (handle_output_debug_string): Declare.
8879
8880 2020-04-08 Tom Tromey <tromey@adacore.com>
8881
8882 * 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 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
8886 (display_selectors, fake_create_process)
8887 (get_windows_debug_event): Update.
8888 * nat/windows-nat.h (current_process_handle, current_process_id)
8889 (main_thread_id, last_sig, current_event, last_wait_event)
8890 (current_windows_thread, desired_stop_thread_id, pending_stops)
8891 (struct pending_stop, siginfo_er): Move from windows-nat.c.
8892 * nat/windows-nat.c (current_process_handle, current_process_id)
8893 (main_thread_id, last_sig, current_event, last_wait_event)
8894 (current_windows_thread, desired_stop_thread_id, pending_stops)
8895 (siginfo_er): New globals. Move from windows-nat.c.
8896
8897 2020-04-08 Tom Tromey <tromey@adacore.com>
8898
8899 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
8900 (handle_load_dll): Update.
8901 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
8902
8903 2020-04-08 Tom Tromey <tromey@adacore.com>
8904
8905 * windows-nat.c (enum thread_disposition_type): Move to
8906 nat/windows-nat.h.
8907 (windows_nat::thread_rec): Rename from thread_rec. No longer
8908 static.
8909 (windows_add_thread, windows_nat_target::fetch_registers)
8910 (windows_nat_target::store_registers, handle_exception)
8911 (windows_nat_target::resume, get_windows_debug_event)
8912 (windows_nat_target::get_tib_address)
8913 (windows_nat_target::thread_name)
8914 (windows_nat_target::thread_alive): Update.
8915 * nat/windows-nat.h (enum thread_disposition_type): Move from
8916 windows-nat.c.
8917 (thread_rec): Declare.
8918
8919 2020-04-08 Tom Tromey <tromey@adacore.com>
8920
8921 * windows-nat.c: Add "using namespace".
8922 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
8923 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
8924
8925 2020-04-08 Tom Tromey <tromey@adacore.com>
8926
8927 * nat/windows-nat.h (struct windows_thread_info): Declare
8928 destructor.
8929 * nat/windows-nat.c (~windows_thread_info): New.
8930
8931 2020-04-08 Tom Tromey <tromey@adacore.com>
8932
8933 PR gdb/22992
8934 * windows-nat.c (current_event): Update comment.
8935 (last_wait_event, desired_stop_thread_id): New globals.
8936 (struct pending_stop): New.
8937 (pending_stops): New global.
8938 (windows_nat_target) <stopped_by_sw_breakpoint>
8939 <supports_stopped_by_sw_breakpoint>: New methods.
8940 (windows_fetch_one_register): Add assertions. Adjust PC.
8941 (windows_continue): Handle pending stops. Suspend other threads
8942 when stepping. Use last_wait_event
8943 (wait_for_debug_event): New function.
8944 (get_windows_debug_event): Use wait_for_debug_event. Handle
8945 pending stops. Queue spurious stops.
8946 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
8947 (windows_nat_target::kill): Use wait_for_debug_event.
8948 * nat/windows-nat.h (struct windows_thread_info)
8949 <stopped_at_software_breakpoint>: New field.
8950 * nat/windows-nat.c (windows_thread_info::resume): Clear
8951 stopped_at_software_breakpoint.
8952
8953 2020-04-08 Tom Tromey <tromey@adacore.com>
8954
8955 * windows-nat.c (enum thread_disposition_type): New.
8956 (thread_rec): Replace "get_context" parameter with "disposition";
8957 change type.
8958 (windows_add_thread, windows_nat_target::fetch_registers)
8959 (windows_nat_target::store_registers, handle_exception)
8960 (windows_nat_target::resume, get_windows_debug_event)
8961 (windows_nat_target::get_tib_address)
8962 (windows_nat_target::thread_name)
8963 (windows_nat_target::thread_alive): Update.
8964
8965 2020-04-08 Tom Tromey <tromey@adacore.com>
8966
8967 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
8968 (windows_continue): Use windows_continue::resume.
8969 * nat/windows-nat.h (struct windows_thread_info) <suspend,
8970 resume>: Declare new methods.
8971 * nat/windows-nat.c: New file.
8972 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
8973
8974 2020-04-08 Tom Tromey <tromey@adacore.com>
8975
8976 * windows-nat.c (windows_add_thread, windows_delete_thread)
8977 (windows_nat_target::fetch_registers)
8978 (windows_nat_target::store_registers, fake_create_process)
8979 (windows_nat_target::resume, windows_nat_target::resume)
8980 (get_windows_debug_event, windows_nat_target::wait)
8981 (windows_nat_target::pid_to_str)
8982 (windows_nat_target::get_tib_address)
8983 (windows_nat_target::get_ada_task_ptid)
8984 (windows_nat_target::thread_name)
8985 (windows_nat_target::thread_alive): Use lwp, not tid.
8986
8987 2020-04-08 Tom Tromey <tromey@adacore.com>
8988
8989 * windows-nat.c (handle_exception)
8990 (windows_nat_target::thread_name): Update.
8991 * nat/windows-nat.h (windows_thread_info): Remove destructor.
8992 <name>: Now unique_xmalloc_ptr.
8993
8994 2020-04-08 Tom Tromey <tromey@adacore.com>
8995
8996 * windows-nat.c (thread_rec)
8997 (windows_nat_target::fetch_registers): Update.
8998 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
8999 Update comment.
9000 <debug_registers_changed, reload_context>: Now bool.
9001
9002 2020-04-08 Tom Tromey <tromey@adacore.com>
9003
9004 * windows-nat.c (windows_add_thread): Use new.
9005 (windows_init_thread_list, windows_delete_thread): Use delete.
9006 (get_windows_debug_event): Update.
9007 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
9008 destructor, and initializers.
9009
9010 2020-04-08 Tom Tromey <tromey@adacore.com>
9011
9012 * windows-nat.c (struct windows_thread_info): Remove.
9013 * nat/windows-nat.h: New file.
9014
9015 2020-04-08 Tom Tromey <tromey@adacore.com>
9016
9017 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
9018 (thread_rec, windows_add_thread, windows_delete_thread)
9019 (windows_continue): Update.
9020
9021 2020-04-08 Tom Tromey <tromey@adacore.com>
9022
9023 * windows-nat.c (struct windows_thread_info): Remove typedef.
9024 (thread_head): Remove.
9025 (thread_list): New global.
9026 (thread_rec, windows_add_thread, windows_init_thread_list)
9027 (windows_delete_thread, windows_continue): Update.
9028
9029 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
9030
9031 * windows-tdep.h (windows_init_abi): Add comment.
9032 (cygwin_init_abi): New declaration.
9033 * windows-tdep.c: Split signal enumeration in two, one for
9034 Windows and one for Cygwin.
9035 (windows_gdb_signal_to_target): Only deal with signal of the
9036 Windows OS ABI.
9037 (cygwin_gdb_signal_to_target): New function.
9038 (windows_init_abi): Rename to windows_init_abi_common, don't set
9039 gdb_signal_to_target gdbarch method. Add new new function with
9040 this name.
9041 (cygwin_init_abi): New function.
9042 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
9043 comment. Don't call windows_init_abi.
9044 (amd64_windows_init_abi): Add comment, call windows_init_abi.
9045 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
9046 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
9047 i386_windows_init_abi_common, don't call windows_init_abi. Add
9048 a new function of this name.
9049 (i386_cygwin_init_abi): New function.
9050 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
9051 OS ABI Cygwin.
9052
9053 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
9054
9055 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
9056 parameter.c.
9057 (dwarf2_read_gdb_index): Update.
9058
9059 2020-04-07 Kamil Rytarowski <n54@gmx.com>
9060
9061 * nbsd-tdep.c: Include "objfiles.h".
9062 (nbsd_skip_solib_resolver): New.
9063 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
9064
9065 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
9066
9067 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
9068 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
9069 with DW_LLE_base_addressx are being emitted in DWARFv5.
9070 Add the newly added kind DW_LOC_OFFSET_PAIR also.
9071 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
9072 unsigned integer.
9073
9074 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
9075
9076 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
9077 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
9078 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
9079 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
9080 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
9081 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
9082 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
9083
9084
9085 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
9086
9087 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
9088 (read_loclist_index): New function definition.
9089 (lookup_loclist_base): New function definition.
9090 (read_loclist_header): New function definition.
9091 (dwarf2_cu): Add loclist_base and loclist_header field.
9092 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
9093 (read_full_die_1): Read the value of DW_AT_loclists_base.
9094 (read_attribute_reprocess): Handle DW_FORM_loclistx.
9095 (read_attribute_value): Handle DW_FORM_loclistx.
9096 (skip_one_die): Handle DW_FORM_loclistx.
9097 (loclist_header): New structure declaration.
9098 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
9099
9100 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9101
9102 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
9103 constructor. Remove `addr` parameter from other constructor and
9104 add `per_cu` parameter.
9105 * dwarf2/read.c (create_partial_symtab): Update.
9106
9107 2020-04-07 Tom de Vries <tdevries@suse.de>
9108
9109 PR symtab/25796
9110 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
9111 (partial_die_info::fixup): Inherit has_const_value.
9112
9113 2020-04-07 Tom de Vries <tdevries@suse.de>
9114
9115 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
9116 symbols without address.
9117
9118 2020-04-06 Kamil Rytarowski <n54@gmx.com>
9119
9120 * nbsd-nat.h (struct thread_info): Add forward declaration.
9121 (nbsd_nat_target::thread_alive): Add.
9122 (nbsd_nat_target::thread_name): Likewise.
9123 (nbsd_nat_target::update_thread_list): Likewise.
9124 (update_thread_list::post_attach): Likewise.
9125 (post_attach::pid_to_str): Likewise.
9126 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
9127 (nbsd_thread_lister): Add.
9128 (nbsd_nat_target::thread_alive): Likewise.
9129 (nbsd_nat_target::thread_name): Likewise.
9130 (nbsd_add_threads): Likewise.
9131 (update_thread_list::post_attach): Likewise.
9132 (nbsd_nat_target::update_thread_list): Likewise.
9133 (post_attach::pid_to_str): Likewise.
9134
9135 2020-04-06 Tom Tromey <tromey@adacore.com>
9136
9137 * ada-valprint.c (print_variant_part): Extract the variant field.
9138 (print_field_values): Use the field as the outer value when
9139 recursing.
9140
9141 2020-04-06 Tom Tromey <tromey@adacore.com>
9142
9143 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
9144 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
9145 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
9146 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
9147 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
9148
9149 2020-04-06 Tom Tromey <tromey@adacore.com>
9150
9151 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
9152 TYPE_CODE_ERROR.
9153
9154 2020-04-06 Kamil Rytarowski <n54@gmx.com>
9155
9156 * nbsd-tdep.c: Include "gdbarch.h".
9157 Define enum with NetBSD signal numbers.
9158 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
9159 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
9160 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
9161 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
9162 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
9163 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
9164 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
9165 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
9166 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
9167 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
9168 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
9169 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
9170
9171 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
9172
9173 PR gdb/25325
9174 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
9175
9176 2020-04-03 Tom Tromey <tromey@adacore.com>
9177
9178 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
9179 Read constant block.
9180
9181 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
9182
9183 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
9184 (gdb_bfd_get_full_section_contents): New declaration.
9185 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
9186 * windows-tdep.c (is_linked_with_cygwin_dll): Use
9187 gdb_bfd_get_full_section_contents.
9188
9189 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
9190
9191 * exec.c (build_section_table): Replace internal_error with
9192 gdb_assert.
9193 (section_table_xfer_memory_partial): Likewise.
9194 * mdebugread.c (parse_partial_symbols): Likewise.
9195 * psymtab.c (lookup_partial_symbol): Likewise.
9196 * utils.c (wrap_here): Likewise.
9197
9198 2020-04-02 Tom Tromey <tromey@adacore.com>
9199
9200 * f-lang.c (build_fortran_types): Use arch_type to initialize
9201 builtin_complex_s32 in the TYPE_CODE_ERROR case.
9202
9203 2020-04-02 Tom Tromey <tromey@adacore.com>
9204
9205 * dwarf2/read.c (partial_die_info::read): Do not create a vector
9206 of attributes.
9207
9208 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
9209 Bernd Edlinger <bernd.edlinger@hotmail.de>
9210 Tom Tromey <tromey@adacore.com>
9211
9212 * buildsym.c (buildsym_compunit::record_line): Remove
9213 deduplication code.
9214
9215 2020-04-02 Tom de Vries <tdevries@suse.de>
9216
9217 PR ada/24671
9218 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
9219
9220 2020-04-02 Tom de Vries <tdevries@suse.de>
9221
9222 * dwarf2/read.c (dwarf2_gdb_index_functions,
9223 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
9224 NULL.
9225 * psymtab.c (psym_lookup_global_symbol_language): New function.
9226 (psym_functions): Init psym_lookup_global_symbol_language with
9227 psym_lookup_global_symbol_language.
9228 * symfile-debug.c (debug_sym_quick_functions): Init
9229 lookup_global_symbol_language with NULL.
9230 * symfile.c (set_initial_language): Remove fixme comment.
9231 * symfile.h (struct quick_symbol_functions): Add
9232 lookup_global_symbol_language.
9233 * symtab.c (find_quick_global_symbol_language): New function.
9234 (find_main_name): Use find_quick_global_symbol_language.
9235
9236 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
9237
9238 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
9239
9240 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
9241
9242 * buildsym.c (record_line): Fix undefined behavior and preserve
9243 lines at eof.
9244
9245 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
9246
9247 * buildsym.c (record_line): Fix the resizing condition.
9248
9249 2020-04-01 Tom Tromey <tom@tromey.com>
9250
9251 * value.h (value_literal_complex): Add comment.
9252 * valops.c (value_literal_complex): Refer to value.h.
9253
9254 2020-04-01 Tom Tromey <tom@tromey.com>
9255
9256 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
9257 (scalar_type): New rule, from typebase.
9258 (typebase): Use scalar_type. Recognize complex types.
9259 (field_name): Handle FLOAT_KEYWORD.
9260 (ident_tokens): Add _Complex and __complex__.
9261
9262 2020-04-01 Tom Tromey <tom@tromey.com>
9263
9264 PR exp/25299:
9265 * valarith.c (promotion_type, complex_binop): New functions.
9266 (scalar_binop): Handle complex numbers. Use promotion_type.
9267 (value_pos, value_neg, value_complement): Handle complex numbers.
9268
9269 2020-04-01 Tom Tromey <tom@tromey.com>
9270
9271 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
9272 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
9273 (parse_number): Handle complex numbers.
9274
9275 2020-04-01 Tom Tromey <tom@tromey.com>
9276
9277 * c-valprint.c (c_decorations): Change complex suffix to "i".
9278
9279 2020-04-01 Tom Tromey <tom@tromey.com>
9280
9281 * valprint.c (generic_value_print_complex): Use accessors.
9282 * value.h (value_real_part, value_imaginary_part): Declare.
9283 * valops.c (value_real_part, value_imaginary_part): New
9284 functions.
9285 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
9286
9287 2020-04-01 Tom Tromey <tom@tromey.com>
9288
9289 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
9290 (read_range_type): Update.
9291 * mdebugread.c (basic_type): Update.
9292 * go-lang.c (build_go_types): Use init_complex_type.
9293 * gdbtypes.h (struct main_type) <complex_type>: New member.
9294 (init_complex_type): Update.
9295 (arch_complex_type): Don't declare.
9296 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
9297 Make name if none given. Use alloc_type_copy. Look for cached
9298 complex type.
9299 (arch_complex_type): Remove.
9300 (gdbtypes_post_init): Use init_complex_type.
9301 * f-lang.c (build_fortran_types): Use init_complex_type.
9302 * dwarf2/read.c (read_base_type): Update.
9303 * d-lang.c (build_d_types): Use init_complex_type.
9304 * ctfread.c (read_base_type): Update.
9305
9306 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9307
9308 * infrun.c (stop_all_threads): Update assertion, plus when
9309 stopping threads, take into account that we might be trying
9310 to stop an all-stop target.
9311 (stop_waiting): Call 'stop_all_threads' if there exists a
9312 non-stop target.
9313
9314 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9315
9316 * target.h (exists_non_stop_target): New function declaration.
9317 * target.c (exists_non_stop_target): New function.
9318
9319 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
9320
9321 PR gdb/24789
9322 * eval.c (is_integral_or_integral_reference): New function.
9323 (evaluate_subexp_standard): Allow integer references in
9324 pointer arithmetic.
9325
9326 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9327
9328 * remote.c (remote_target::remote_parse_stop_reply): Remove the
9329 check for no ptid in the stop reply when the target is non-stop.
9330
9331 2020-04-01 Tom Tromey <tromey@adacore.com>
9332
9333 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
9334 "name" parameter to rvalue reference. Initialize m_name_holder.
9335 <lookup_name_info>: New overloads.
9336 <name>: Return gdb::string_view.
9337 <c_str>: New method.
9338 <make_ignore_params>: Update.
9339 <search_name_hash>: Update.
9340 <language_lookup_name>: Return const char *.
9341 <m_name>: Change type.
9342 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
9343 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
9344 (lookup_name_info::match_any): Update.
9345 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
9346 Update.
9347 * minsyms.c (linkage_name_str): Update.
9348 * language.c (default_symbol_name_matcher): Update.
9349 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
9350 Update.
9351 * ada-lang.c (ada_fold_name): Change parameter to string_view.
9352 (ada_lookup_name_info::ada_lookup_name_info): Update.
9353 (literal_symbol_name_matcher): Update.
9354
9355 2020-04-01 Tom Tromey <tromey@adacore.com>
9356
9357 * psymtab.c (psymtab_search_name): Remove function.
9358 (psym_lookup_symbol): Create search name and lookup name here.
9359 (lookup_partial_symbol): Remove "name" parameter; add
9360 lookup_name.
9361 (psym_expand_symtabs_for_function): Update.
9362
9363 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
9364
9365 PR tui/25597:
9366 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
9367
9368 2020-03-31 Tom Tromey <tromey@adacore.com>
9369
9370 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
9371 memcpy.
9372
9373 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
9374
9375 * features/riscv/32bit-csr.xml: Regenerated.
9376 * features/riscv/64bit-csr.xml: Regenerated.
9377
9378 2020-03-30 Tom Tromey <tromey@adacore.com>
9379
9380 * ada-valprint.c (print_variant_part): Update.
9381 * ada-lang.h (ada_which_variant_applies): Update.
9382 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
9383 outer_valaddr parameters; replace with "outer" value parameter.
9384 (to_fixed_variant_branch_type): Update.
9385
9386 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9387
9388 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
9389 <list>. Remove inclusion of observable.h.
9390 (PPC_DEBUG_CURRENT_VERSION): Move up define.
9391 (struct arch_lwp_info): New struct.
9392 (class ppc_linux_dreg_interface): New class.
9393 (struct ppc_linux_process_info): New struct.
9394 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
9395 <low_new_clone, low_forget_process, low_prepare_to_resume>
9396 <copy_thread_dreg_state, mark_thread_stale>
9397 <mark_debug_registers_changed, register_hw_breakpoint>
9398 <clear_hw_breakpoint, register_wp, clear_wp>
9399 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
9400 <num_memory_accesses, get_trigger_type>
9401 <create_watchpoint_request, hwdebug_point_cmp>
9402 <init_arch_lwp_info, get_arch_lwp_info>
9403 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
9404 methods.
9405 <struct ptid_hash>: New inner struct.
9406 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
9407 members.
9408 (saved_dabr_value, hwdebug_info, max_slots_number)
9409 (struct hw_break_tuple, struct thread_points, ppc_threads)
9410 (have_ptrace_hwdebug_interface)
9411 (hwdebug_find_thread_points_by_tid)
9412 (hwdebug_insert_point, hwdebug_remove_point): Remove.
9413 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
9414 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
9415 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
9416 use m_dreg_interface.
9417 (hwdebug_point_cmp): Change to...
9418 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
9419 reference arguments instead of pointers.
9420 (ppc_linux_nat_target::ranged_break_num_registers): Use
9421 m_dreg_interface.
9422 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
9423 m_dreg_interface. Call register_hw_breakpoint.
9424 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
9425 m_dreg_interface. Call clear_hw_breakpoint.
9426 (get_trigger_type): Change to...
9427 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
9428 comment.
9429 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
9430 use m_dreg_interface. Call register_hw_breakpoint.
9431 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
9432 use m_dreg_interface. Call clear_hw_breakpoint.
9433 (can_use_watchpoint_cond_accel): Change to...
9434 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
9435 method. Update comment, use m_dreg_interface and
9436 m_process_info.
9437 (calculate_dvc): Change to...
9438 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
9439 m_dreg_interface.
9440 (num_memory_accesses): Change to...
9441 (ppc_linux_nat_target::num_memory_accesses): ...this method.
9442 (check_condition): Change to...
9443 (ppc_linux_nat_target::check_condition): ...this method.
9444 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
9445 comment, use m_dreg_interface.
9446 (create_watchpoint_request): Change to...
9447 (ppc_linux_nat_target::create_watchpoint_request): ...this
9448 method. Use m_dreg_interface.
9449 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
9450 m_dreg_interface. Call register_hw_breakpoint or register_wp.
9451 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
9452 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
9453 (ppc_linux_nat_target::low_forget_process)
9454 (ppc_linux_nat_target::low_new_fork)
9455 (ppc_linux_nat_target::low_new_clone)
9456 (ppc_linux_nat_target::low_delete_thread)
9457 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
9458 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
9459 only call mark_thread_stale.
9460 (ppc_linux_thread_exit): Remove.
9461 (ppc_linux_nat_target::stopped_data_address): Change to...
9462 (ppc_linux_nat_target::low_stopped_data_address): This. Add
9463 comment, use m_dreg_interface and m_thread_hw_breakpoints.
9464 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
9465 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
9466 comment. Call low_stopped_data_address.
9467 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
9468 m_dreg_interface.
9469 (ppc_linux_nat_target::masked_watch_num_registers): Use
9470 m_dreg_interface.
9471 (ppc_linux_nat_target::copy_thread_dreg_state)
9472 (ppc_linux_nat_target::mark_thread_stale)
9473 (ppc_linux_nat_target::mark_debug_registers_changed)
9474 (ppc_linux_nat_target::register_hw_breakpoint)
9475 (ppc_linux_nat_target::clear_hw_breakpoint)
9476 (ppc_linux_nat_target::register_wp)
9477 (ppc_linux_nat_target::clear_wp)
9478 (ppc_linux_nat_target::init_arch_lwp_info)
9479 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
9480 (_initialize_ppc_linux_nat): Remove observer callback.
9481
9482 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9483
9484 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
9485 (ppc_linux_nat_target::auxv_parse)
9486 (ppc_linux_nat_target::read_description)
9487 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
9488 Move up.
9489
9490 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9491
9492 * linux-nat.h (low_new_clone): New method.
9493 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
9494
9495 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9496
9497 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
9498 (dbx_expand_psymtab): ... this.
9499 (start_psymtab): Update.
9500 * mdebugread.c (psymtab_to_symtab_1): Rename to...
9501 (mdebug_expand_psymtab): ... this.
9502 (parse_partial_symbols): Update.
9503 (new_psymtab): Update.
9504 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
9505 (xcoff_expand_psymtab): ... this.
9506 (xcoff_start_psymtab): Update.
9507
9508 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9509
9510 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
9511 <expand_dependencies>: ... this.
9512 * psymtab.c (partial_symtab::read_dependencies): Rename to...
9513 (partial_symtab::expand_dependencies): ... this.
9514 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
9515 Update.
9516 (dwarf2_psymtab::expand_psymtab): Update.
9517 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
9518 * mdebugread.c (psymtab_to_symtab_1): Update.
9519 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
9520
9521 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9522
9523 * psympriv.h (discard_psymtab): Remove.
9524 * dbxread.c (dbx_end_psymtab): Update.
9525 * xcoffread.c (xcoff_end_psymtab): Update.
9526
9527 2020-03-28 Tom Tromey <tom@tromey.com>
9528
9529 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
9530 comment.
9531
9532 2020-03-28 Tom Tromey <tom@tromey.com>
9533
9534 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
9535
9536 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
9537
9538 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
9539
9540 2020-03-26 John Baldwin <jhb@FreeBSD.org>
9541
9542 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
9543
9544 2020-03-26 Tom Tromey <tom@tromey.com>
9545
9546 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
9547 (mark_common_block_symbol_computed, read_tag_string_type)
9548 (attr_to_dynamic_prop, read_subrange_type): Update.
9549 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
9550 to be methods on struct attribute.
9551 (skip_one_die, process_imported_unit_die, read_namespace_alias)
9552 (read_call_site_scope, partial_die_info::read)
9553 (partial_die_info::read, lookup_die_type, follow_die_ref):
9554 Update.
9555 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
9556 from dwarf2_get_ref_die_offset.
9557 (attribute::constant_value): New method, from
9558 dwarf2_get_attr_constant_value.
9559 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
9560 Declare method.
9561 <constant_value>: New method.
9562
9563 2020-03-26 Tom Tromey <tom@tromey.com>
9564
9565 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
9566 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
9567 (dwarf_type_encoding_name): Move to stringify.c.
9568 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
9569 * dwarf2/stringify.c: New file.
9570 * dwarf2/stringify.h: New file.
9571
9572 2020-03-26 Tom Tromey <tom@tromey.com>
9573
9574 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
9575 Rewrite.
9576
9577 2020-03-26 Tom Tromey <tom@tromey.com>
9578
9579 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
9580 methods.
9581 * dwarf2/read.c (lookup_addr_base): Move to die.h.
9582 (lookup_ranges_base): Likewise.
9583 (read_cutu_die_from_dwo, read_full_die_1): Update.
9584
9585 2020-03-26 Tom Tromey <tom@tromey.com>
9586
9587 * dwarf2/read.c (read_import_statement, read_file_scope)
9588 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
9589 (read_lexical_block_scope, read_call_site_scope)
9590 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
9591 (handle_struct_member_die, process_structure_scope)
9592 (update_enumeration_type_from_children)
9593 (process_enumeration_scope, read_array_type, read_common_block)
9594 (read_namespace, read_module, read_subroutine_type): Update.
9595 (sibling_die): Remove.
9596
9597 2020-03-26 Tom Tromey <tom@tromey.com>
9598
9599 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
9600 (build_type_psymtabs_reader, read_structure_type)
9601 (read_enumeration_type, read_full_die_1): Update.
9602 (dwarf2_attr_no_follow): Move to die.h.
9603 * dwarf2/die.h (struct die_info) <attr>: New method.
9604
9605 2020-03-26 Tom Tromey <tom@tromey.com>
9606
9607 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
9608 <base_address>: Now an optional.
9609 (dwarf2_find_base_address, dwarf2_rnglists_process)
9610 (dwarf2_ranges_process, fill_in_loclist_baton)
9611 (dwarf2_symbol_mark_computed): Update.
9612
9613 2020-03-26 Tom Tromey <tom@tromey.com>
9614
9615 * dwarf2/read.c (struct die_info): Move to die.h.
9616 * dwarf2/die.h: New file.
9617
9618 2020-03-26 Tom Tromey <tom@tromey.com>
9619
9620 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
9621 * dwarf2/read.c
9622 (dwarf2_statement_list_fits_in_line_number_section_complaint):
9623 Move to line-header.c.
9624 (read_checked_initial_length_and_offset, read_formatted_entries):
9625 Likewise.
9626 (dwarf_decode_line_header): Split into two.
9627 * dwarf2/line-header.c
9628 (dwarf2_statement_list_fits_in_line_number_section_complaint):
9629 Move from read.c.
9630 (read_checked_initial_length_and_offset, read_formatted_entries):
9631 Likewise.
9632 (dwarf_decode_line_header): New function, split from read.c.
9633
9634 2020-03-26 Tom Tromey <tom@tromey.com>
9635
9636 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
9637 Declare method.
9638 * dwarf2/read.c (read_attribute_value): Update.
9639 (dwarf2_per_objfile::read_line_string): Rename from
9640 read_indirect_line_string.
9641 (read_formatted_entries): Update.
9642
9643 2020-03-26 Tom Tromey <tom@tromey.com>
9644
9645 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
9646 variable.
9647
9648 2020-03-26 Tom Tromey <tom@tromey.com>
9649
9650 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
9651 const.
9652 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
9653 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
9654 parameter const.
9655
9656 2020-03-26 Tom Tromey <tom@tromey.com>
9657
9658 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
9659 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
9660 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
9661 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
9662
9663 2020-03-26 Tom Tromey <tom@tromey.com>
9664
9665 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
9666 file_names_size, file_full_name, file_file_name>: Use const.
9667 <file_name_at, file_names>: Add const overload.
9668 * dwarf2/line-header.c (line_header::file_file_name)
9669 (line_header::file_full_name): Update.
9670
9671 2020-03-26 Tom Tromey <tom@tromey.com>
9672
9673 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
9674 (macro_start_file, consume_improper_spaces)
9675 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
9676 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
9677 (dwarf_decode_macros): Move to macro.c.
9678 * dwarf2/macro.c: New file.
9679 * dwarf2/macro.h: New file.
9680 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
9681
9682 2020-03-26 Tom Tromey <tom@tromey.com>
9683
9684 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
9685 method.
9686 * dwarf2/section.c: New method. From
9687 read_indirect_string_at_offset_from.
9688 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
9689 (read_indirect_string_at_offset_from): Move to section.c.
9690 (read_indirect_string_at_offset): Rewrite.
9691 (read_indirect_line_string_at_offset): Remove.
9692 (read_indirect_string, read_indirect_line_string)
9693 (dwarf_decode_macro_bytes): Update.
9694
9695 2020-03-26 Tom Tromey <tom@tromey.com>
9696
9697 * dwarf2/section.h (struct dwarf2_section_info)
9698 <overload_complaint>: Declare.
9699 (dwarf2_section_buffer_overflow_complaint): Don't declare.
9700 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
9701 Rename from dwarf2_section_buffer_overflow_complaint.
9702 * dwarf2/read.c (skip_one_die, partial_die_info::read)
9703 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
9704
9705 2020-03-26 Tom Tromey <tom@tromey.com>
9706
9707 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
9708 Declare.
9709 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
9710 Move from read.c.
9711 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
9712 to section.c.
9713
9714 2020-03-26 Tom Tromey <tom@tromey.com>
9715
9716 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
9717
9718 2020-03-26 Tom Tromey <tom@tromey.com>
9719
9720 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
9721 "builder".
9722 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
9723 parameter.
9724 (dwarf_decode_macros): Update.
9725
9726 2020-03-26 Tom Tromey <tom@tromey.com>
9727
9728 * dwarf2/read.c (read_attribute_value): Update.
9729 (read_indirect_string_from_dwz): Move to dwz.c; change into
9730 method.
9731 (dwarf_decode_macro_bytes): Update.
9732 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
9733 * dwarf2/dwz.c: New file.
9734 * Makefile.in (COMMON_SFILES): Add dwz.c.
9735
9736 2020-03-26 Tom Tromey <tom@tromey.com>
9737
9738 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
9739 * dwarf2/read.c: Add include.
9740 * dwarf2/index-write.c: Add include.
9741 * dwarf2/index-cache.c: Add include.
9742 * dwarf2/dwz.h: New file.
9743
9744 2020-03-25 Tom Tromey <tom@tromey.com>
9745
9746 * compile/compile-object-load.c (get_out_value_type): Mention
9747 correct symbol name in error message.
9748
9749 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
9750
9751 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
9752
9753 2020-03-25 Tom de Vries <tdevries@suse.de>
9754
9755 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
9756 * symmisc.c (dump_symtab_1): Print user and includes fields.
9757 (maintenance_info_symtabs): Same.
9758
9759 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
9760
9761 PR gdb/25534
9762 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
9763 (riscv_regcache_cooked_write): New function.
9764 (riscv_push_dummy_call): Use new function.
9765 (riscv_return_value): Likewise.
9766
9767 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
9768
9769 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
9770 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
9771 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
9772 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
9773 * infrun.c (follow_fork): Likewise.
9774 (follow_fork_inferior): Likewise.
9775 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
9776 * linux-nat.h (class linux_nat_target): Likewise.
9777 * remote.c (class remote_target) <follow_fork>: Likewise.
9778 (remote_target::follow_fork): Likewise.
9779 * target-delegates.c: Re-generate.
9780 * target.c (default_follow_fork): Likewise.
9781 (target_follow_fork): Likewise.
9782 * target.h (struct target_ops) <follow_fork>: Likewise.
9783 (target_follow_fork): Likewise.
9784
9785 2020-03-24 Tom de Vries <tdevries@suse.de>
9786
9787 * psymtab.c (maintenance_info_psymtabs): Print user field.
9788
9789 2020-03-20 Tom Tromey <tromey@adacore.com>
9790
9791 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
9792 const.
9793 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
9794 const.
9795
9796 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
9797
9798 * ptrace.m4: Don't check for ptrace declaration.
9799 * config.in: Re-generate.
9800 * configure: Re-generate.
9801 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
9802 not defined.
9803
9804 2020-03-20 Kamil Rytarowski <n54@gmx.com>
9805
9806 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
9807 `PTRACE_TYPE_RET'.
9808 * i386-bsd-nat.c (gdb_ptrace): Likewise.
9809 * sparc-nat.c (gdb_ptrace): Likewise.
9810 * x86-bsd-nat.c (gdb_ptrace): Likewise.
9811
9812 2020-03-20 Tom Tromey <tromey@adacore.com>
9813
9814 * c-exp.y (lex_one_token): Fix assert.
9815
9816 2020-03-20 Tom Tromey <tromey@adacore.com>
9817
9818 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
9819 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
9820 strncpy call.
9821
9822 2020-03-20 Tom Tromey <tromey@adacore.com>
9823
9824 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
9825
9826 2020-03-20 Tom Tromey <tromey@adacore.com>
9827
9828 * ada-valprint.c (print_variant_part): Remove parameters; switch
9829 to value-based API.
9830 (print_field_values): Likewise.
9831 (ada_val_print_struct_union): Likewise.
9832 (ada_value_print_1): Update.
9833
9834 2020-03-20 Kamil Rytarowski <n54@gmx.com>
9835
9836 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
9837 nbsd_nat_target instead of inf_ptrace_target.
9838 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9839 nbsd_nat_target.
9840
9841 2020-03-20 Kamil Rytarowski <n54@gmx.com>
9842
9843 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
9844 it to the ptrace call.
9845 * (store_registers): Likewise.
9846
9847 2020-03-20 Kamil Rytarowski <n54@gmx.com>
9848
9849 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
9850 it to the ptrace call.
9851 * (store_registers): Likewise.
9852
9853 2020-03-19 Luis Machado <luis.machado@linaro.org>
9854
9855 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
9856 valid, fetch vg value from ptrace.
9857
9858 2020-03-19 Kamil Rytarowski <n54@gmx.com>
9859 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
9860 * inf-ptrace.c: Likewise.
9861 * (gdb_ptrace): Add.
9862 * (inf_ptrace_target::resume): Update.
9863 * (inf_ptrace_target::xfer_partial): Likewise.
9864 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
9865 * (inf_ptrace_peek_poke): Update.
9866
9867 2020-03-19 Kamil Rytarowski <n54@gmx.com>
9868
9869 * x86-bsd-nat.c (gdb_ptrace): New.
9870 * (x86bsd_dr_set): Add new argument `ptid'.
9871 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
9872 x86bsd_dr_set_addr): Update.
9873
9874 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9875
9876 * remote.c (remote_target::process_stop_reply): Handle events for
9877 all threads differently.
9878
9879 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9880
9881 * completer.c (completion_tracker::remove_completion): Define new
9882 function.
9883 * completer.h (completion_tracker::remove_completion): Declare new
9884 function.
9885 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
9886 when adding a C++ function symbol.
9887
9888 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9889
9890 * completer.c (completion_tracker::completion_hash_entry): Define
9891 new class.
9892 (advance_to_filename_complete_word_point): Call
9893 recompute_lowest_common_denominator.
9894 (completion_tracker::completion_tracker): Call discard_completions
9895 to setup the hash table.
9896 (completion_tracker::discard_completions): Allow for being called
9897 from the constructor, pass new equal function, and element deleter
9898 when constructing the hash table. Initialise new class member
9899 variables.
9900 (completion_tracker::maybe_add_completion): Remove use of
9901 m_entries_vec, and store more information into m_entries_hash.
9902 (completion_tracker::recompute_lcd_visitor): New function, most
9903 content taken from...
9904 (completion_tracker::recompute_lowest_common_denominator):
9905 ...here, this now just visits each item in the hash calling the
9906 above visitor.
9907 (completion_tracker::build_completion_result): Remove use of
9908 m_entries_vec, call recompute_lowest_common_denominator.
9909 * completer.h (completion_tracker::have_completions): Remove use
9910 of m_entries_vec.
9911 (completion_tracker::completion_hash_entry): Declare new class.
9912 (completion_tracker::recompute_lowest_common_denominator): Change
9913 function signature.
9914 (completion_tracker::recompute_lcd_visitor): Declare new function.
9915 (completion_tracker::m_entries_vec): Delete.
9916 (completion_tracker::m_entries_hash): Initialize to NULL.
9917 (completion_tracker::m_lowest_common_denominator_valid): New
9918 member variable.
9919 (completion_tracker::m_lowest_common_denominator_max_length): New
9920 member variable.
9921
9922 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9923
9924 * regformats/regdef.h: Put reg in gdb namespace.
9925
9926 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9927
9928 * i386-bsd-nat.c (gdb_ptrace): New.
9929 * (i386bsd_fetch_inferior_registers,
9930 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
9931 * (i386bsd_fetch_inferior_registers,
9932 i386bsd_store_inferior_registers) Use gdb_ptrace.
9933
9934 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9935
9936 * amd64-bsd-nat.c (gdb_ptrace): New.
9937 * (amd64bsd_fetch_inferior_registers,
9938 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
9939 * (amd64bsd_fetch_inferior_registers,
9940 amd64bsd_store_inferior_registers) Use gdb_ptrace.
9941
9942 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9943
9944 * user-regs.c (user_reg::read): Rename to...
9945 (user_reg::xread): ...this.
9946 * (append_user_reg): Rename argument `read' to `xread'.
9947 * (user_reg_add_builtin): Likewise.
9948 * (user_reg_add): Likewise.
9949 * (value_of_user_reg): Likewise.
9950
9951 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9952
9953 * sparc-nat.c (gdb_ptrace): New.
9954 * sparc-nat.c (sparc_fetch_inferior_registers)
9955 (sparc_store_inferior_registers) Remove obsolete comment.
9956 * sparc-nat.c (sparc_fetch_inferior_registers)
9957 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
9958 * sparc-nat.c (sparc_fetch_inferior_registers)
9959 (sparc_store_inferior_registers) Use gdb_ptrace.
9960
9961 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9962
9963 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
9964 it to the ptrace call.
9965 * sh-nbsd-nat.c (store_registers): Likewise.
9966
9967 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9968
9969 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
9970 nbsd_nat_target instead of inf_ptrace_target.
9971 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9972 nbsd_nat_target.
9973
9974 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9975
9976 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
9977
9978 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9979
9980 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
9981 <sys/sysctl.h>.
9982 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
9983
9984 2020-03-17 Tom de Vries <tdevries@suse.de>
9985
9986 PR gdb/23710
9987 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
9988 fields.
9989 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
9990 fields.
9991 (process_imported_unit_die): Skip import of c++ CUs.
9992
9993 2020-03-16 Tom Tromey <tom@tromey.com>
9994
9995 * p-valprint.c (pascal_object_print_value): Initialize
9996 base_value.
9997
9998 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
9999 Shahab Vahedi <shahab@synopsys.com>
10000
10001 * Makefile.in: Add arch/arc.o
10002 * configure.tgt: Likewise.
10003 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
10004 (_initialize_arc_tdep): Don't initialize old target descriptions.
10005 (arc_read_description): New function to cache target descriptions.
10006 * arc-tdep.h (arc_read_description): Add proto type.
10007 * arch/arc.c: New file.
10008 * arch/arc.h: Likewise.
10009 * features/Makefile: Replace old target descriptions with new.
10010 * features/arc-arcompact.c: Remove.
10011 * features/arc-arcompact.xml: Likewise.
10012 * features/arc-v2.c: Likewise
10013 * features/arc-v2.xml: Likewise
10014 * features/arc/aux-arcompact.xml: New file.
10015 * features/arc/aux-v2.xml: Likewise.
10016 * features/arc/core-arcompact.xml: Likewise.
10017 * features/arc/core-v2.xml: Likewise.
10018 * features/arc/aux-arcompact.c: Generate.
10019 * features/arc/aux-v2.c: Likewise.
10020 * features/arc/core-arcompact.c: Likewise.
10021 * features/arc/core-v2.c: Likewise.
10022 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
10023
10024 2020-03-16 Tom Tromey <tromey@adacore.com>
10025
10026 PR gdb/25663:
10027 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
10028 putting value into bcache.
10029
10030 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
10031
10032 PR gdb/21500
10033 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
10034 to...
10035 (amd64_windows_init_abi_common): ... this. Don't set size of
10036 long type.
10037 (amd64_windows_init_abi): New function.
10038 (amd64_cygwin_init_abi): New function.
10039 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
10040 the Cygwin OS ABI.
10041 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
10042 comment.
10043
10044 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
10045
10046 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
10047 * windows-tdep.c (CYGWIN_DLL_NAME): New.
10048 (pe_import_directory_entry): New struct type.
10049 (is_linked_with_cygwin_dll): New function.
10050 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
10051 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
10052 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
10053
10054 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
10055
10056 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
10057 i386_cygwin_core_osabi_sniffer.
10058
10059 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
10060
10061 * i386-cygwin-tdep.c: Rename to...
10062 * i386-windows-tdep.c: ... this.
10063 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
10064 i386-windows-tdep.c.
10065 * configure.tgt: Likewise.
10066
10067 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
10068
10069 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
10070 * osabi.c (gdb_osabi_names): Add "Windows".
10071 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
10072 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
10073 (i386_cygwin_core_osabi_sniffer): New function, extracted from
10074 i386_cygwin_osabi_sniffer.
10075 (_initialize_i386_cygwin_tdep): Register OS ABI
10076 GDB_OSABI_WINDOWS for i386.
10077 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
10078 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
10079 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
10080 for x86-64.
10081 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
10082 when the target matches '*-*-mingw*'.
10083
10084 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
10085
10086 * defs.h (enum gdb_osabi): Move to...
10087 * osabi.h (enum gdb_osabi): ... here.
10088 * gdbarch.sh: Include osabi.h in gdbarch.h.
10089 * gdbarch.h: Re-generate.
10090
10091 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
10092
10093 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
10094 function.
10095 (_initialize_amd64_windows_tdep): Register osabi sniffer.
10096
10097 2020-03-14 Tom Tromey <tom@tromey.com>
10098
10099 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
10100 for C++.
10101 (c_type_print_modifier): Likewise. Add "language" parameter.
10102 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
10103 (c_type_print_base_1): Update.
10104 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
10105 constants.
10106 * type-stack.c (type_stack::insert): Handle tp_atomic and
10107 tp_restrict.
10108 (type_stack::follow_type_instance_flags): Likewise.
10109 (type_stack::follow_types): Likewise. Merge type-following code.
10110 * c-exp.y (RESTRICT, ATOMIC): New tokens.
10111 (space_identifier, cv_with_space_id)
10112 (const_or_volatile_or_space_identifier_noopt)
10113 (const_or_volatile_or_space_identifier): Remove.
10114 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
10115 rules.
10116 (ptr_operator, typebase): Update.
10117 (enum token_flag) <FLAG_C>: New constant.
10118 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
10119 "_Atomic".
10120 (lex_one_token): Handle FLAG_C.
10121
10122 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10123
10124 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
10125 it to the ptrace call.
10126 * m68k-bsd-nat.c (store_registers): Likewise.
10127
10128 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10129
10130 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
10131 gdb_byte *.
10132 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
10133 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
10134 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
10135
10136 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10137
10138 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
10139 nbsd_nat_target instead of inf_ptrace_target.
10140 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
10141 nbsd_nat_target.
10142
10143 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10144
10145 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
10146 register_t.
10147
10148 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10149
10150 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
10151 it to the ptrace call.
10152 * alpha-bsd-nat.c (store_registers): Likewise.
10153
10154 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10155
10156 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
10157 includes.
10158 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
10159 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
10160 fill_fpregset): Likewise.
10161
10162 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10163
10164 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
10165 nbsd_nat_target instead of inf_ptrace_target.
10166 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
10167 nbsd_nat_target.
10168
10169 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10170
10171 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
10172 register_t.
10173
10174 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10175
10176 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
10177 it to the ptrace call.
10178 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
10179 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
10180 * arm-nbsd-nat.c (store_register): Likewise.
10181 * arm-nbsd-nat.c (store_regs): Likewise.
10182 * arm-nbsd-nat.c (store_fp_register): Likewise.
10183 * arm-nbsd-nat.c (store_fp_regs): Likewise.
10184
10185 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10186
10187 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
10188 nbsd_nat_target instead of inf_ptrace_target.
10189 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
10190 nbsd_nat_target.
10191
10192 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10193
10194 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
10195 it to the ptrace call.
10196 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
10197
10198 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10199
10200 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
10201 it to the ptrace call.
10202 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
10203
10204 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10205
10206 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
10207 gdb_byte *.
10208 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
10209
10210 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10211
10212 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
10213 instead of inf_ptrace_target.
10214 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
10215 nbsd_nat_target.
10216
10217 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10218
10219 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10220 register_t.
10221
10222 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10223
10224 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10225 register_t.
10226
10227 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10228
10229 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
10230 register_t.
10231
10232 2020-03-13 Tom Tromey <tom@tromey.com>
10233
10234 * value.h (val_print): Don't declare.
10235 * valprint.h (val_print_array_elements)
10236 (val_print_scalar_formatted, generic_val_print): Don't declare.
10237 * valprint.c (generic_val_print_array): Take a struct value.
10238 (generic_val_print_ptr, generic_val_print_memberptr)
10239 (generic_val_print_bool, generic_val_print_int)
10240 (generic_val_print_char, generic_val_print_complex)
10241 (generic_val_print): Remove.
10242 (generic_value_print): Update.
10243 (do_val_print): Remove unused parameters. Don't call
10244 la_val_print.
10245 (val_print): Remove.
10246 (common_val_print): Update. Don't call value_check_printable.
10247 (val_print_scalar_formatted, val_print_array_elements): Remove.
10248 * rust-lang.c (rust_val_print): Remove.
10249 (rust_language_defn): Update.
10250 * p-valprint.c (pascal_val_print): Remove.
10251 (pascal_value_print_inner): Update.
10252 (pascal_object_print_val_fields, pascal_object_print_val):
10253 Remove.
10254 (pascal_object_print_static_field): Update.
10255 * p-lang.h (pascal_val_print): Don't declare.
10256 * p-lang.c (pascal_language_defn): Update.
10257 * opencl-lang.c (opencl_language_defn): Update.
10258 * objc-lang.c (objc_language_defn): Update.
10259 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
10260 * m2-lang.h (m2_val_print): Don't declare.
10261 * m2-lang.c (m2_language_defn): Update.
10262 * language.h (struct language_defn) <la_val_print>: Remove.
10263 * language.c (unk_lang_value_print_inner): Rename. Change
10264 argument types.
10265 (unknown_language_defn, auto_language_defn): Update.
10266 * go-valprint.c (go_val_print): Remove.
10267 * go-lang.h (go_val_print): Don't declare.
10268 * go-lang.c (go_language_defn): Update.
10269 * f-valprint.c (f_val_print): Remove.
10270 * f-lang.h (f_value_print): Don't declare.
10271 * f-lang.c (f_language_defn): Update.
10272 * d-valprint.c (d_val_print): Remove.
10273 * d-lang.h (d_value_print): Don't declare.
10274 * d-lang.c (d_language_defn): Update.
10275 * cp-valprint.c (cp_print_value_fields)
10276 (cp_print_value_fields_rtti, cp_print_value): Remove.
10277 (cp_print_static_field): Update.
10278 * c-valprint.c (c_val_print_array, c_val_print_ptr)
10279 (c_val_print_struct, c_val_print_union, c_val_print_int)
10280 (c_val_print_memberptr, c_val_print): Remove.
10281 * c-lang.h (c_val_print_array, cp_print_value_fields)
10282 (cp_print_value_fields_rtti): Don't declare.
10283 * c-lang.c (c_language_defn, cplus_language_defn)
10284 (asm_language_defn, minimal_language_defn): Update.
10285 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
10286 (ada_val_print_enum): Take a struct value.
10287 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
10288 (ada_val_print): Remove.
10289 (ada_value_print_1): Update.
10290 (printable_val_type): Remove.
10291 * ada-lang.h (ada_val_print): Don't declare.
10292 * ada-lang.c (ada_language_defn): Update.
10293
10294 2020-03-13 Tom Tromey <tom@tromey.com>
10295
10296 * valprint.c (do_val_print): Update.
10297 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
10298 a struct value.
10299 (value_to_value_object_no_release): Declare.
10300 * python/py-value.c (value_to_value_object_no_release): New
10301 function.
10302 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
10303 struct value.
10304 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
10305 function.
10306 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
10307 a struct value.
10308 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
10309 Declare.
10310 (gdbscm_apply_val_pretty_printer): Take a struct value.
10311 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
10312 value.
10313 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
10314 value.
10315 * extension-priv.h (struct extension_language_ops)
10316 <apply_val_pretty_printer>: Take a struct value.
10317 * cp-valprint.c (cp_print_value): Create a struct value.
10318 (cp_print_value): Update.
10319
10320 2020-03-13 Tom Tromey <tom@tromey.com>
10321
10322 * ada-valprint.c (print_field_values): Call common_val_print.
10323
10324 2020-03-13 Tom Tromey <tom@tromey.com>
10325
10326 * ada-valprint.c (val_print_packed_array_elements): Remove
10327 bitoffset and val parameters. Call common_val_print.
10328 (ada_val_print_string): Remove offset, address, and original_value
10329 parameters.
10330 (ada_val_print_array): Update.
10331 (ada_value_print_array): New function.
10332 (ada_value_print_1): Call it.
10333
10334 2020-03-13 Tom Tromey <tom@tromey.com>
10335
10336 * ada-valprint.c (ada_value_print): Use common_val_print.
10337
10338 2020-03-13 Tom Tromey <tom@tromey.com>
10339
10340 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
10341
10342 2020-03-13 Tom Tromey <tom@tromey.com>
10343
10344 * ada-valprint.c (ada_value_print_num): New function.
10345 (ada_value_print_1): Use it.
10346
10347 2020-03-13 Tom Tromey <tom@tromey.com>
10348
10349 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
10350
10351 2020-03-13 Tom Tromey <tom@tromey.com>
10352
10353 * ada-valprint.c (ada_value_print_ptr): New function.
10354 (ada_value_print_1): Use it.
10355
10356 2020-03-13 Tom Tromey <tom@tromey.com>
10357
10358 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
10359 call common_val_print.
10360 (ada_val_print_1): Update.
10361 (ada_value_print_1): New function.
10362 (ada_value_print_inner): Rewrite.
10363
10364 2020-03-13 Tom Tromey <tom@tromey.com>
10365
10366 * cp-valprint.c (cp_print_value_fields): Update.
10367 (cp_print_value): New function.
10368
10369 2020-03-13 Tom Tromey <tom@tromey.com>
10370
10371 * m2-valprint.c (m2_value_print_inner): Use
10372 cp_print_value_fields.
10373 * cp-valprint.c (cp_print_value_fields): New function.
10374 * c-valprint.c (c_value_print_struct): New function.
10375 (c_value_print_inner): Use c_value_print_struct.
10376 * c-lang.h (cp_print_value_fields): Declare.
10377
10378 2020-03-13 Tom Tromey <tom@tromey.com>
10379
10380 * c-valprint.c (c_value_print_array): 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_memberptr): 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_int): New function.
10391 (c_value_print_inner): Use it.
10392
10393 2020-03-13 Tom Tromey <tom@tromey.com>
10394
10395 * c-valprint.c (c_value_print_ptr): New function.
10396 (c_value_print_inner): Use it.
10397
10398 2020-03-13 Tom Tromey <tom@tromey.com>
10399
10400 * c-valprint.c (c_value_print_inner): Rewrite.
10401
10402 2020-03-13 Tom Tromey <tom@tromey.com>
10403
10404 * valprint.c (generic_value_print_complex): New function.
10405 (generic_value_print): Use it.
10406
10407 2020-03-13 Tom Tromey <tom@tromey.com>
10408
10409 * valprint.c (generic_val_print_float): Don't call
10410 val_print_scalar_formatted.
10411 (generic_val_print, generic_value_print): Update.
10412
10413 2020-03-13 Tom Tromey <tom@tromey.com>
10414
10415 * valprint.c (generic_value_print_char): New function
10416 (generic_value_print): Use it.
10417
10418 2020-03-13 Tom Tromey <tom@tromey.com>
10419
10420 * valprint.c (generic_value_print_int): New function.
10421 (generic_value_print): Use it.
10422
10423 2020-03-13 Tom Tromey <tom@tromey.com>
10424
10425 * valprint.c (generic_value_print_bool): New function.
10426 (generic_value_print): Use it.
10427
10428 2020-03-13 Tom Tromey <tom@tromey.com>
10429
10430 * valprint.c (generic_val_print_func): Simplify.
10431 (generic_val_print, generic_value_print): Update.
10432
10433 2020-03-13 Tom Tromey <tom@tromey.com>
10434
10435 * valprint.c (generic_val_print_flags): Remove.
10436 (generic_val_print, generic_value_print): Update.
10437 (val_print_type_code_flags): Add original_value parameter.
10438
10439 2020-03-13 Tom Tromey <tom@tromey.com>
10440
10441 * valprint.c (generic_val_print): Update.
10442 (generic_value_print): Update.
10443 * valprint.c (generic_val_print_enum): Don't call
10444 val_print_scalar_formatted.
10445
10446 2020-03-13 Tom Tromey <tom@tromey.com>
10447
10448 * valprint.c (generic_value_print): Call generic_value_print_ptr.
10449 * valprint.c (generic_value_print_ptr): New function.
10450
10451 2020-03-13 Tom Tromey <tom@tromey.com>
10452
10453 * valprint.c (generic_value_print): Rewrite.
10454
10455 2020-03-13 Tom Tromey <tom@tromey.com>
10456
10457 * p-valprint.c (pascal_object_print_value_fields)
10458 (pascal_object_print_value): New functions.
10459
10460 2020-03-13 Tom Tromey <tom@tromey.com>
10461
10462 * p-valprint.c (pascal_value_print_inner): Rewrite.
10463
10464 2020-03-13 Tom Tromey <tom@tromey.com>
10465
10466 * f-valprint.c (f_value_print_innner): Rewrite.
10467
10468 2020-03-13 Tom Tromey <tom@tromey.com>
10469
10470 * m2-valprint.c (m2_print_unbounded_array): New overload.
10471 (m2_print_unbounded_array): Update.
10472 (m2_print_array_contents): Take a struct value.
10473 (m2_value_print_inner): Rewrite.
10474
10475 2020-03-13 Tom Tromey <tom@tromey.com>
10476
10477 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
10478 (d_value_print_inner): New function.
10479 * d-lang.h (d_value_print_inner): Declare.
10480 * d-lang.c (d_language_defn): Use d_value_print_inner.
10481
10482 2020-03-13 Tom Tromey <tom@tromey.com>
10483
10484 * go-valprint.c (go_value_print_inner): New function.
10485 * go-lang.h (go_value_print_inner): Declare.
10486 * go-lang.c (go_language_defn): Use go_value_print_inner.
10487
10488 2020-03-13 Tom Tromey <tom@tromey.com>
10489
10490 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
10491 API.
10492 (rust_val_print): Rewrite.
10493 (rust_value_print_inner): New function, from rust_val_print.
10494 (rust_language_defn): Use rust_value_print_inner.
10495
10496 2020-03-13 Tom Tromey <tom@tromey.com>
10497
10498 * ada-valprint.c (ada_value_print_inner): New function.
10499 * ada-lang.h (ada_value_print_inner): Declare.
10500 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
10501
10502 2020-03-13 Tom Tromey <tom@tromey.com>
10503
10504 * f-valprint.c (f_value_print_innner): New function.
10505 * f-lang.h (f_value_print_innner): Declare.
10506 * f-lang.c (f_language_defn): Use f_value_print_innner.
10507
10508 2020-03-13 Tom Tromey <tom@tromey.com>
10509
10510 * p-valprint.c (pascal_value_print_inner): New function.
10511 * p-lang.h (pascal_value_print_inner): Declare.
10512 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
10513
10514 2020-03-13 Tom Tromey <tom@tromey.com>
10515
10516 * m2-valprint.c (m2_value_print_inner): New function.
10517 * m2-lang.h (m2_value_print_inner): Declare.
10518 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
10519
10520 2020-03-13 Tom Tromey <tom@tromey.com>
10521
10522 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
10523 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
10524 * c-valprint.c (c_value_print_inner): New function.
10525 * c-lang.h (c_value_print_inner): Declare.
10526 * c-lang.c (c_language_defn, cplus_language_defn)
10527 (asm_language_defn, minimal_language_defn): Use
10528 c_value_print_inner.
10529
10530 2020-03-13 Tom Tromey <tom@tromey.com>
10531
10532 * p-valprint.c (pascal_object_print_value_fields): Now static.
10533 * p-lang.h (pascal_object_print_value_fields): Don't declare.
10534
10535 2020-03-13 Tom Tromey <tom@tromey.com>
10536
10537 * c-valprint.c (c_val_print_array): Simplify.
10538
10539 2020-03-13 Tom Tromey <tom@tromey.com>
10540
10541 * valprint.c (value_print_array_elements): New function.
10542 * valprint.h (value_print_array_elements): Declare.
10543
10544 2020-03-13 Tom Tromey <tom@tromey.com>
10545
10546 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
10547 * mips-tdep.c (mips_print_register): Use
10548 value_print_scalar_formatted.
10549
10550 2020-03-13 Tom Tromey <tom@tromey.com>
10551
10552 * valprint.h (value_print_scalar_formatted): Declare.
10553 * valprint.c (value_print_scalar_formatted): New function.
10554
10555 2020-03-13 Tom Tromey <tom@tromey.com>
10556
10557 * valprint.h (generic_value_print): Declare.
10558 * valprint.c (generic_value_print): New function.
10559
10560 2020-03-13 Tom Tromey <tom@tromey.com>
10561
10562 * valprint.c (do_val_print): Call la_value_print_inner, if
10563 available.
10564 * rust-lang.c (rust_language_defn): Update.
10565 * p-lang.c (pascal_language_defn): Update.
10566 * opencl-lang.c (opencl_language_defn): Update.
10567 * objc-lang.c (objc_language_defn): Update.
10568 * m2-lang.c (m2_language_defn): Update.
10569 * language.h (struct language_defn) <la_value_print_inner>: New
10570 member.
10571 * language.c (unknown_language_defn, auto_language_defn): Update.
10572 * go-lang.c (go_language_defn): Update.
10573 * f-lang.c (f_language_defn): Update.
10574 * d-lang.c (d_language_defn): Update.
10575 * c-lang.c (c_language_defn, cplus_language_defn)
10576 (asm_language_defn, minimal_language_defn): Update.
10577 * ada-lang.c (ada_language_defn): Update.
10578
10579 2020-03-13 Tom Tromey <tom@tromey.com>
10580
10581 * c-valprint.c (c_value_print): Use common_val_print.
10582
10583 2020-03-13 Tom Tromey <tom@tromey.com>
10584
10585 * cp-valprint.c (cp_print_static_field): Use common_val_print.
10586
10587 2020-03-13 Tom Tromey <tom@tromey.com>
10588
10589 * f-valprint.c (f77_print_array_1, f_val_print): Use
10590 common_val_print.
10591
10592 2020-03-13 Tom Tromey <tom@tromey.com>
10593
10594 * riscv-tdep.c (riscv_print_one_register_info): Use
10595 common_val_print.
10596
10597 2020-03-13 Tom Tromey <tom@tromey.com>
10598
10599 * mi/mi-main.c (output_register): Use common_val_print.
10600
10601 2020-03-13 Tom Tromey <tom@tromey.com>
10602
10603 * infcmd.c (default_print_one_register_info): Use
10604 common_val_print.
10605
10606 2020-03-13 Tom Tromey <tom@tromey.com>
10607
10608 * valprint.h (common_val_print_checked): Declare.
10609 * valprint.c (common_val_print_checked): New function.
10610 * stack.c (print_frame_arg): Use common_val_print_checked.
10611
10612 2020-03-13 Tom Tromey <tom@tromey.com>
10613
10614 * valprint.c (do_val_print): New function, from val_print.
10615 (val_print): Use do_val_print.
10616 (common_val_print): Use do_val_print.
10617
10618 2020-03-13 Tom Tromey <tom@tromey.com>
10619
10620 * valprint.c (value_print): Use scoped_value_mark.
10621
10622 2020-03-13 Tom de Vries <tdevries@suse.de>
10623
10624 PR symtab/25646
10625 * psymtab.c (partial_symtab::partial_symtab): Don't set
10626 globals_offset and statics_offset. Push element onto
10627 current_global_psymbols and current_static_psymbols stacks.
10628 (concat): New function.
10629 (end_psymtab_common): Set globals_offset and statics_offset. Pop
10630 element from current_global_psymbols and current_static_psymbols
10631 stacks. Concat popped elements to global_psymbols and
10632 static_symbols.
10633 (add_psymbol_to_list): Use current_global_psymbols and
10634 current_static_psymbols stacks.
10635 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
10636 current_static_psymbols fields.
10637
10638 2020-03-12 Christian Biesinger <cbiesinger@google.com>
10639
10640 * corelow.c (sniff_core_bfd): Remove.
10641 (class core_target) <m_core_vec>: Remove.
10642 (core_target::core_target): Update.
10643 (core_file_fns): Remove.
10644 (deprecated_add_core_fns): Remove.
10645 (default_core_sniffer): Remove.
10646 (sniff_core_bfd): Remove.
10647 (default_check_format): Remove.
10648 (gdb_check_format): Remove.
10649 (core_target_open): Update.
10650 (core_target::get_core_register_section): Update.
10651 (get_core_registers_cb): Update.
10652 (core_target::fetch_registers): Update.
10653 * gdbcore.h (struct core_fns): Remove.
10654 (deprecated_add_core_fns): Remove.
10655 (default_core_sniffer): Remove.
10656 (default_check_format): Remove.
10657
10658 2020-03-12 Tom Tromey <tom@tromey.com>
10659
10660 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
10661 CORE_ADDR.
10662 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
10663
10664 2020-03-12 Tom Tromey <tom@tromey.com>
10665
10666 * remote.c (remote_target::download_tracepoint)
10667 (remote_target::enable_tracepoint)
10668 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
10669 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
10670 sprintf_vma.
10671
10672 2020-03-12 Tom Tromey <tom@tromey.com>
10673
10674 * symfile-mem.c: Update CORE_ADDR size assert.
10675
10676 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
10677
10678 * selftest.m4: Move to gdbsupport/.
10679 * acinclude.m4: Update path to selftest.m4.
10680
10681 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
10682
10683 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
10684 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
10685 gdbarch-selfselftests.c and selftest-arch.c.
10686 (SUBDIR_UNITTESTS_OBS): Rename to...
10687 (SELFTESTS_OBS): ... this.
10688 (COMMON_SFILES): Remove disasm-selftests.c and
10689 gdbarch-selftests.c.
10690 * configure.ac: Don't add selftest-arch.{c,o} to
10691 CONFIG_{SRCS,OBS}.
10692 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
10693 preprocessor conditions.
10694
10695 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
10696
10697 * configure.ac: Don't source bfd/development.sh.
10698 * selftest.m4: Modify comment.
10699 * configure: Re-generate.
10700
10701 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
10702
10703 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
10704 not "true" or "false".
10705 * configure: Re-generate.
10706
10707 2020-03-12 Christian Biesinger <cbiesinger@google.com>
10708
10709 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
10710 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
10711 renamed to arm_nbsd_supply_gregset.
10712 (fetch_register): Update to call arm_nbsd_supply_gregset.
10713 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
10714 (arm_netbsd_nat_target::fetch_registers): Update.
10715 (fetch_elfcore_registers): Removed.
10716 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
10717 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
10718 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
10719 not require NetBSD system headers.
10720 (arm_nbsd_regset): New struct.
10721 (arm_nbsd_iterate_over_regset_sections): New function.
10722 (arm_netbsd_init_abi_common): Updated to call
10723 set_gdbarch_iterate_over_regset_sections.
10724 * arm-nbsd-tdep.h: New file.
10725
10726 2020-03-11 Kevin Buettner <kevinb@redhat.com>
10727
10728 * symtab.c (find_pc_sect_line): Add check which prevents infinite
10729 recursion.
10730
10731 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
10732
10733 * configure: Re-generate.
10734
10735 2020-03-11 Tom Tromey <tromey@adacore.com>
10736
10737 * ada-typeprint.c (print_choices): Fix comment.
10738
10739 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
10740
10741 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
10742 previous item in the list, when the list has no items.
10743
10744 2020-03-11 Tom de Vries <tdevries@suse.de>
10745
10746 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
10747 PROP_LOCLIST handling code.
10748
10749 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
10750
10751 * buildsym-legacy.c (record_line): Pass extra parameter to
10752 record_line.
10753 * buildsym.c (buildsym_compunit::record_line): Take an extra
10754 parameter, reduce duplication in the line table, and record the
10755 is_stmt flag in the line table.
10756 * buildsym.h (buildsym_compunit::record_line): Add extra
10757 parameter.
10758 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
10759 non-statement lines.
10760 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
10761 this to the symtab builder.
10762 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
10763 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
10764 through to dwarf_record_line_1.
10765 * infrun.c (process_event_stop_test): When stepping, don't stop at
10766 a non-statement instruction, and only refresh the step info when
10767 we land in the middle of a line's range. Also add an extra
10768 comment.
10769 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
10770 field.
10771 * record-btrace.c (btrace_find_line_range): Only record lines
10772 marked as is-statement.
10773 * stack.c (frame_show_address): Show the frame address if we are
10774 in a non-statement sal.
10775 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
10776 (maintenance_print_one_line_table): Print a header for the is_stmt
10777 column, and include is_stmt information in the output.
10778 * symtab.c (find_pc_sect_line): Find lines marked as statements in
10779 preference to non-statements.
10780 (find_pcs_for_symtab_line): Prefer is-statement entries.
10781 (find_line_common): Likewise.
10782 * symtab.h (struct linetable_entry): Add is_stmt field.
10783 (struct symtab_and_line): Likewise.
10784 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
10785 arranging the line table.
10786
10787 2020-03-07 Tom de Vries <tdevries@suse.de>
10788
10789 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
10790 DIE.
10791
10792 2020-03-07 Tom Tromey <tom@tromey.com>
10793
10794 * valops.c (value_literal_complex): Remove obsolete comment.
10795 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
10796 comment.
10797
10798 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
10799
10800 * infrun.h: Forward-declare thread_info.
10801 (set_step_info): Add thread_info parameter, add doc.
10802 * infrun.c (set_step_info): Add thread_info parameter, move doc
10803 to header.
10804 * infrun.c (process_event_stop_test): Pass thread to
10805 set_step_info call.
10806 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
10807 set_step_info.
10808 (prepare_one_step): Add thread_info parameter, pass it to
10809 set_step_frame and prepare_one_step (recursive) call.
10810 (step_1): Pass thread to prepare_one_step call.
10811 (step_command_fsm::should_stop): Pass thread to
10812 prepare_one_step.
10813 (until_next_fsm): Pass thread to set_step_frame call.
10814 (finish_command): Pass thread to set_step_info call.
10815
10816 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
10817
10818 * windows-tdep.c (windows_solib_create_inferior_hook):
10819 Check if inferior is running.
10820
10821 2020-03-06 Tom de Vries <tdevries@suse.de>
10822
10823 * NEWS: Fix "the the".
10824 * ctfread.c: Same.
10825
10826 2020-03-06 Tom de Vries <tdevries@suse.de>
10827
10828 * psymtab.c (psymtab_to_symtab): Don't print "done.".
10829
10830 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10831
10832 * .dir-locals.el: Add a comment referencing the other copies of
10833 this file.
10834
10835 2020-03-05 John Baldwin <jhb@FreeBSD.org>
10836
10837 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
10838 psargs.
10839
10840 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10841
10842 * .gitattributes: New file.
10843
10844 2020-03-04 Tom Tromey <tom@tromey.com>
10845
10846 * symmisc.c (print_symbol_bcache_statistics)
10847 (print_objfile_statistics): Update.
10848 * symfile.c (allocate_symtab): Use intern.
10849 * psymtab.c (partial_symtab::partial_symtab): Use intern.
10850 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
10851 macro_cache>: Remove.
10852 <string_cache>: New member.
10853 (struct objfile) <intern>: New methods.
10854 * elfread.c (elf_symtab_read): Use intern.
10855 * dwarf2/read.c (fixup_go_packaging): Intern package name.
10856 (dwarf2_compute_name, dwarf2_physname)
10857 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
10858 names.
10859 (guess_partial_die_structure_name): Update.
10860 (partial_die_info::fixup): Intern name.
10861 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
10862 name.
10863 (dwarf2_name): Intern name. Update.
10864 * buildsym.c (buildsym_compunit::get_macro_table): Use
10865 string_cache.
10866
10867 2020-03-04 Tom Tromey <tom@tromey.com>
10868
10869 * jit.c (bfd_open_from_target_memory): Make "target" const.
10870 * corefile.c (gnutarget): Now const.
10871 * gdbcore.h (gnutarget): Now const.
10872
10873 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
10874
10875 * NEWS: Mention support for WOW64 processes.
10876 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
10877 (amd64_windows_segment_register_p): Remove static.
10878 (_initialize_amd64_windows_nat): Update.
10879 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
10880 * i386-windows-nat.c (context_offset): Update.
10881 (i386_mappings): Rename and remove static.
10882 (i386_windows_segment_register_p): Remove static.
10883 (_initialize_i386_windows_nat): Update.
10884 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
10885 (STATUS_WX86_SINGLE_STEP): New macro.
10886 (EnumProcessModulesEx): New macro.
10887 (Wow64SuspendThread): New macro.
10888 (Wow64GetThreadContext): New macro.
10889 (Wow64SetThreadContext): New macro.
10890 (Wow64GetThreadSelectorEntry): New macro.
10891 (windows_set_context_register_offsets): Add static.
10892 (windows_set_segment_register_p): Likewise.
10893 (windows_add_thread): Adapt for WOW64 processes.
10894 (windows_fetch_one_register): Likewise.
10895 (windows_nat_target::fetch_registers): Likewise.
10896 (windows_store_one_register): Likewise.
10897 (display_selector): Likewise.
10898 (display_selectors): Likewise.
10899 (handle_exception): Likewise.
10900 (windows_continue): Likewise.
10901 (windows_nat_target::resume): Likewise.
10902 (windows_add_all_dlls): Likewise.
10903 (do_initial_windows_stuff): Likewise.
10904 (windows_nat_target::attach): Likewise.
10905 (windows_get_exec_module_filename): Likewise.
10906 (windows_nat_target::create_inferior): Likewise.
10907 (windows_xfer_siginfo): Likewise.
10908 (_initialize_loadable): Initialize Wow64SuspendThread,
10909 Wow64GetThreadContext, Wow64SetThreadContext,
10910 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
10911 * windows-nat.h (windows_set_context_register_offsets):
10912 Remove declaration.
10913 (windows_set_segment_register_p): Likewise.
10914 (i386_windows_segment_register_p): Add declaration.
10915 (amd64_windows_segment_register_p): Likewise.
10916
10917 2020-03-04 Luis Machado <luis.machado@linaro.org>
10918
10919 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
10920 in "info registers" for AArch64/ARM.
10921
10922 The change caused "info registers" to not print GPR's.
10923
10924 gdb/ChangeLog:
10925
10926 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
10927
10928 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10929 when reg->group is empty and reggroup is not.
10930
10931 2020-03-03 Tom Tromey <tromey@adacore.com>
10932
10933 * dwarf2/frame.c (struct dwarf2_frame_cache)
10934 <checked_tailcall_bottom, entry_cfa_sp_offset,
10935 entry_cfa_sp_offset_p>: Remove members.
10936 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
10937 (dwarf2_frame_prev_register): Don't call
10938 dwarf2_tailcall_sniffer_first.
10939 (dwarf2_append_unwinders): Don't append tailcall unwinder.
10940 * frame-unwind.c (add_unwinder): New fuction.
10941 (frame_unwind_init): Use it. Add tailcall unwinder.
10942
10943 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
10944 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10945
10946 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
10947 value should be printed as true.
10948
10949 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
10950
10951 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
10952 (windows_init_abi): Set and use windows_so_ops.
10953
10954 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
10955
10956 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
10957 when verifying if dealing with a convenience variable.
10958
10959 2020-03-03 Luis Machado <luis.machado@linaro.org>
10960
10961 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
10962
10963 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10964
10965 * infrun.c (gdbarch_supports_displaced_stepping): New.
10966 (use_displaced_stepping): Break up conditions in smaller pieces.
10967 Use gdbarch_supports_displaced_stepping.
10968 (displaced_step_prepare_throw): Use
10969 gdbarch_supports_displaced_stepping.
10970
10971 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
10972
10973 * NEWS: Mention new behaviour of the history filename.
10974 * top.c (write_history_p): Add comment.
10975 (show_write_history_p): Add header comment, give a different
10976 message when history writing is on, but the history filename is
10977 empty.
10978 (history_filename): Add comment.
10979 (history_filename_empty): New function.
10980 (show_history_filename): Add header comment, give a different
10981 message when the filename is empty.
10982 (init_history): Compare history_filename against nullptr, and only
10983 read history if the filename is not empty.
10984 (set_history_filename): Add header comment, and only make
10985 non-empty filenames absolute.
10986 (init_main): Make the filename argument to 'set history filename'
10987 optional.
10988
10989 2020-03-02 Christian Biesinger <cbiesinger@google.com>
10990
10991 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
10992 (arm_supply_vfpregset): ...this, and update to use VFP registers.
10993 (fetch_fp_register): Update.
10994 (fetch_fp_regs): Update.
10995 (store_fp_register): Update.
10996 (store_fp_regs): Update.
10997 (arm_netbsd_nat_target::read_description): New function.
10998 (fetch_elfcore_registers): Update.
10999
11000 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
11001
11002 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
11003 general_thread if the stop reply is missing a thread-id.
11004 (remote_target::process_stop_reply): Use the first non-exited
11005 thread if the target didn't pass a thread-id.
11006 * infrun.c (do_target_wait): Move call to
11007 switch_to_inferior_no_thread to ....
11008 (do_target_wait_1): ... here.
11009
11010 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
11011
11012 * debuginfod-support.c: Include defs.h first.
11013
11014 2020-02-28 Tom de Vries <tdevries@suse.de>
11015
11016 * symfile.c (set_initial_language): Use default language for lookup.
11017
11018 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
11019
11020 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
11021 reader variable, pass `this` to read_cutu_die_from_dwo.
11022
11023 2020-02-27 Aaron Merey <amerey@redhat.com>
11024
11025 * source.c (open_source_file): Check for nullptr when computing
11026 srcpath.
11027
11028 2020-02-27 Tom Tromey <tromey@adacore.com>
11029
11030 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
11031 member.
11032 (dwarf2_add_field): Don't update nfields.
11033 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
11034
11035 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11036
11037 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
11038 abs.
11039
11040 2020-02-26 Tom Tromey <tom@tromey.com>
11041
11042 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
11043 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
11044 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
11045 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
11046 per_cu_data.
11047
11048 2020-02-26 Tom Tromey <tom@tromey.com>
11049
11050 * dwarf2/index-write.c (psym_index_map): Change type.
11051 (add_address_entry_worker, write_one_signatured_type)
11052 (recursively_count_psymbols, recursively_write_psymbols)
11053 (class debug_names, psyms_seen_size, write_gdbindex)
11054 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
11055
11056 2020-02-26 Aaron Merey <amerey@redhat.com>
11057
11058 * Makefile.in: Handle optional debuginfod support.
11059 * NEWS: Update.
11060 * README: Add --with-debuginfod summary.
11061 * config.in: Regenerate.
11062 * configure: Regenerate.
11063 * configure.ac: Handle optional debuginfod support.
11064 * debuginfod-support.c: debuginfod helper functions.
11065 * debuginfod-support.h: Ditto.
11066 * doc/gdb.texinfo: Add --with-debuginfod to configure options
11067 summary.
11068 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
11069 when a dwz file cannot be found.
11070 * elfread.c (elf_symfile_read): Query debuginfod servers when a
11071 debuginfo file cannot be found.
11072 * source.c (open_source_file): Query debuginfod servers when a
11073 source file cannot be found.
11074 * top.c (print_gdb_configuration): Include
11075 --{with,without}-debuginfod in the output.
11076
11077 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
11078
11079 * thread.c (thr_try_catch_cmd): Print thread name.
11080
11081 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
11082
11083 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
11084 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
11085 dwarf2_fetch_die_type_sect_off): Move to...
11086 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
11087 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
11088 dwarf2_fetch_die_type_sect_off): ... here.
11089 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
11090 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
11091 dwarf2_fetch_die_type_sect_off): Move doc to header file.
11092
11093 2020-02-26 Tom de Vries <tdevries@suse.de>
11094
11095 PR gdb/25603
11096 * symfile.c (set_initial_language): Exit-early if
11097 language_mode == language_mode_manual.
11098
11099 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
11100
11101 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
11102 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
11103 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
11104
11105 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
11106
11107 * gdbtypes.c (create_array_type_with_stride): Handle negative
11108 array strides.
11109 * valarith.c (value_subscripted_rvalue): Likewise.
11110
11111 2020-02-25 Luis Machado <luis.machado@linaro.org>
11112
11113 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
11114
11115 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
11116
11117 * loc.h (dwarf2_get_die_type): Move to...
11118 * read.h (dwarf2_get_die_type): ... here.
11119 * read.c (dwarf2_get_die_type): Move doc to header.
11120
11121 2020-02-25 Joel Brobecker <brobecker@adacore.com>
11122
11123 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
11124 'gnulib/Makefile.in' to the list.
11125
11126 2020-02-24 Tom Tromey <tom@tromey.com>
11127
11128 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
11129 Remove.
11130 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
11131 XOBNEWVEC.
11132
11133 2020-02-24 Tom Tromey <tom@tromey.com>
11134
11135 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
11136 New method.
11137 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
11138 (dw2_do_instantiate_symtab, dw2_get_file_names)
11139 (build_type_psymtab_dependencies, load_full_type_unit): Update.
11140
11141 2020-02-24 Tom Tromey <tom@tromey.com>
11142
11143 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
11144 make_scoped_restore.
11145 (dwarf2_psymtab::read_symtab): Don't clear
11146 reading_partial_symbols.
11147
11148 2020-02-24 Tom de Vries <tdevries@suse.de>
11149
11150 PR gdb/25592
11151 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
11152
11153 2020-02-24 Tom de Vries <tdevries@suse.de>
11154
11155 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
11156 commands layout next/prev/regs.
11157
11158 2020-02-22 Tom Tromey <tom@tromey.com>
11159
11160 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
11161 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
11162
11163 2020-02-22 Tom Tromey <tom@tromey.com>
11164
11165 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
11166
11167 2020-02-22 Tom Tromey <tom@tromey.com>
11168
11169 * tui/tui-win.c (_initialize_tui_win): Add usage text.
11170 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
11171 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
11172 * tui/tui.c (_initialize_tui): Add usage text.
11173
11174 2020-02-22 Tom Tromey <tom@tromey.com>
11175
11176 * tui/tui-win.c (tui_set_focus_command)
11177 (tui_set_win_height_command): Use error_no_arg.
11178 (_initialize_tui_win): Update help text.
11179 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
11180
11181 2020-02-22 Tom Tromey <tom@tromey.com>
11182
11183 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
11184 * tui/tui-disasm.h (struct tui_disasm_window)
11185 <display_start_addr>: Declare.
11186 * tui/tui-source.h (struct tui_source_window)
11187 <display_start_addr>: Declare.
11188 * tui/tui-winsource.h (struct tui_source_window_base)
11189 <show_source_line, display_start_addr>: New methods.
11190 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
11191 Rename and move to protected section.
11192 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
11193 (tui_source_window_base::do_erase_source_content): Update.
11194 (tui_source_window_base::show_source_line): Now a method.
11195 (tui_source_window_base::show_source_content)
11196 (tui_source_window_base::tui_source_window_base)
11197 (tui_source_window_base::rerender)
11198 (tui_source_window_base::refill)
11199 (tui_source_window_base::do_scroll_horizontal)
11200 (tui_source_window_base::set_is_exec_point_at)
11201 (tui_source_window_base::update_breakpoint_info)
11202 (tui_source_window_base::update_exec_info): Update.
11203 * tui/tui-source.c (tui_source_window::set_contents)
11204 (tui_source_window::showing_source_p)
11205 (tui_source_window::do_scroll_vertical)
11206 (tui_source_window::location_matches_p)
11207 (tui_source_window::line_is_displayed): Update.
11208 (tui_source_window::display_start_addr): New method.
11209 * tui/tui-disasm.c (tui_disasm_window::set_contents)
11210 (tui_disasm_window::do_scroll_vertical)
11211 (tui_disasm_window::location_matches_p): Update.
11212 (tui_disasm_window::display_start_addr): New method.
11213
11214 2020-02-22 Tom Tromey <tom@tromey.com>
11215
11216 * NEWS: Add entry for gdb.register_window_type.
11217 * tui/tui-layout.h (window_factory): New typedef.
11218 (tui_register_window): Declare.
11219 * tui/tui-layout.c (saved_tui_windows): New global.
11220 (tui_apply_current_layout): Use it.
11221 (tui_register_window): New function.
11222 * python/python.c (do_start_initialization): Call
11223 gdbpy_initialize_tui.
11224 (python_GdbMethods): Add "register_window_type" function.
11225 * python/python-internal.h (gdbpy_register_tui_window)
11226 (gdbpy_initialize_tui): Declare.
11227 * python/py-tui.c: New file.
11228 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
11229
11230 2020-02-22 Tom Tromey <tom@tromey.com>
11231
11232 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
11233
11234 2020-02-22 Tom Tromey <tom@tromey.com>
11235
11236 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
11237 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
11238 * tui/tui-data.c (tui_set_win_with_focus): Remove.
11239 (tui_set_win_focus_to): Move from tui-win.c.
11240
11241 2020-02-22 Tom Tromey <tom@tromey.com>
11242
11243 * tui/tui-layout.c (make_standard_window, get_locator_window): New
11244 functions.
11245 (known_window_types): New global.
11246 (tui_get_window_by_name): Reimplement.
11247 (initialize_known_windows): New function.
11248 (validate_window_name): Rewrite.
11249 (_initialize_tui_layout): Call initialize_known_windows.
11250
11251 2020-02-22 Tom Tromey <tom@tromey.com>
11252
11253 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
11254 Remove constants.
11255 * tui/tui-winsource.h (struct tui_source_window_base)
11256 <tui_source_window_base>: Remove parameter.
11257 * tui/tui-winsource.c
11258 (tui_source_window_base::tui_source_window_base): Remove
11259 parameter.
11260 (tui_source_window_base::refill): Update.
11261 * tui/tui-stack.h (struct tui_locator_window)
11262 <tui_locator_window>: Update.
11263 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
11264 Default the constructor.
11265 * tui/tui-regs.h (struct tui_data_item_window)
11266 <tui_data_item_window>: Default the constructor.
11267 (struct tui_data_window) <tui_data_window>: Likewise.
11268 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
11269 Default the constructor.
11270 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
11271 Default the constructor.
11272 <type>: Remove.
11273 (struct tui_win_info) <tui_win_info>: Default the constructor.
11274 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
11275 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
11276 Default the constructor.
11277
11278 2020-02-22 Tom Tromey <tom@tromey.com>
11279
11280 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
11281 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
11282 * tui/tui-win.c (tui_resize_all): Don't call
11283 tui_delete_invisible_windows.
11284 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
11285 done.
11286 (tui_set_layout): Update.
11287 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
11288 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
11289 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
11290
11291 2020-02-22 Tom Tromey <tom@tromey.com>
11292
11293 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
11294 correctly.
11295
11296 2020-02-22 Tom Tromey <tom@tromey.com>
11297
11298 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
11299
11300 2020-02-22 Tom Tromey <tom@tromey.com>
11301
11302 * tui/tui-winsource.h (struct tui_source_window_iterator)
11303 <inner_iterator>: New etytypedef.
11304 <tui_source_window_iterator>: Take "end" parameter.
11305 <tui_source_window_iterator>: Take iterator.
11306 <operator*, advance>: Update.
11307 <m_iter>: Change type.
11308 <m_end>: New field.
11309 (struct tui_source_windows) <begin, end>: Update.
11310 * tui/tui-layout.c (tui_windows): New global.
11311 (tui_apply_current_layout): Clear tui_windows.
11312 (tui_layout_window::apply): Update tui_windows.
11313 * tui/tui-data.h (tui_windows): Declare.
11314 (all_tui_windows): Now inline function.
11315 (class tui_window_iterator, struct all_tui_windows): Remove.
11316
11317 2020-02-22 Tom Tromey <tom@tromey.com>
11318
11319 PR tui/17850:
11320 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
11321 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
11322 "height" argument.
11323 (class tui_layout_window) <get_sizes>: Likewise.
11324 (class tui_layout_split) <tui_layout_split>: Add "vertical"
11325 argument.
11326 <get_sizes>: Add "height" argument.
11327 <m_vertical>: New field.
11328 * tui/tui-layout.c (tui_layout_split::clone): Update.
11329 (tui_layout_split::get_sizes): Add "height" argument.
11330 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
11331 (tui_new_layout_command): Parse "-horizontal".
11332 (_initialize_tui_layout): Update help string.
11333 (tui_layout_split::specification): Add "-horizontal" when needed.
11334 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
11335 argument.
11336 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
11337 New methods.
11338
11339 2020-02-22 Tom Tromey <tom@tromey.com>
11340
11341 * tui/tui-layout.h (enum tui_adjust_result): New.
11342 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
11343 (class tui_layout_window) <adjust_size>: Return
11344 tui_adjust_result. Rewrite.
11345 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
11346 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
11347
11348 2020-02-22 Tom Tromey <tom@tromey.com>
11349
11350 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
11351 parameter and return types.
11352 (class tui_layout_base) <specification>: Add "depth".
11353 (class tui_layout_window) <specification>: Add "depth".
11354 (class tui_layout_split) <specification>: Add "depth".
11355 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
11356 and return types.
11357 (tui_new_layout_command): Parse sub-layouts.
11358 (_initialize_tui_layout): Update help string.
11359 (tui_layout_window::specification): Add "depth".
11360 (add_layout_command): Update.
11361
11362 2020-02-22 Tom Tromey <tom@tromey.com>
11363
11364 * NEWS: Add "tui new-layout" item.
11365 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
11366 Add new-layout command to help text.
11367 (validate_window_name): New function.
11368 (tui_new_layout_command): New function.
11369 (_initialize_tui_layout): Register "new-layout".
11370 (tui_layout_window::specification): New method.
11371 (tui_layout_window::specification): New method.
11372 * tui/tui-layout.h (class tui_layout_base) <specification>: New
11373 method.
11374 (class tui_layout_window) <specification>: New method.
11375 (class tui_layout_split) <specification>: New method.
11376
11377 2020-02-22 Tom Tromey <tom@tromey.com>
11378
11379 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
11380 * tui/tui-win.c (window_name_completer): Update comment.
11381 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
11382 Declare method.
11383 (class tui_layout_window) <replace_window>: Likewise.
11384 (class tui_layout_split) <replace_window>: Likewise.
11385 (tui_set_layout): Don't declare.
11386 (tui_set_initial_layout): Declare function.
11387 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
11388 (asm_regs_layout): New globals.
11389 (tui_current_layout, show_layout): Remove.
11390 (tui_set_layout, tui_add_win_to_layout): Rewrite.
11391 (find_layout, tui_apply_layout): New function.
11392 (layout_completer): Remove.
11393 (tui_next_layout): Reimplement.
11394 (tui_next_layout_command): New function.
11395 (tui_set_initial_layout, tui_prev_layout_command): New functions.
11396 (tui_regs_layout): Reimplement.
11397 (tui_regs_layout_command): New function.
11398 (extract_display_start_addr): Rewrite.
11399 (next_layout, prev_layout): Remove.
11400 (tui_layout_window::replace_window): New method.
11401 (tui_layout_split::replace_window): New method.
11402 (destroy_layout): New function.
11403 (layout_list): New global.
11404 (add_layout_command): New function.
11405 (initialize_layouts): Update.
11406 (tui_layout_command): New function.
11407 (_initialize_tui_layout): Install "layout" commands.
11408 * tui/tui-data.h (enum tui_layout_type): Remove.
11409 (tui_current_layout): Don't declare.
11410
11411 2020-02-22 Tom Tromey <tom@tromey.com>
11412
11413 * tui/tui-regs.c (tui_reg_layout): Remove.
11414 (tui_reg_command): Use tui_regs_layout.
11415 * tui/tui-layout.h (tui_reg_command): Declare.
11416 * tui/tui-layout.c (tui_reg_command): New function.
11417
11418 2020-02-22 Tom Tromey <tom@tromey.com>
11419
11420 * tui/tui.c (tui_rl_delete_other_windows): Call
11421 tui_remove_some_windows.
11422 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
11423 Declare method.
11424 (class tui_layout_window) <remove_windows>: New method.
11425 (class tui_layout_split) <remove_windows>: Declare.
11426 (tui_remove_some_windows): Declare.
11427 * tui/tui-layout.c (tui_remove_some_windows): New function.
11428 (tui_layout_split::remove_windows): New method.
11429
11430 2020-02-22 Tom Tromey <tom@tromey.com>
11431
11432 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
11433 * tui/tui-layout.h (tui_next_layout): Declare.
11434 * tui/tui-layout.c (tui_next_layout): New function.
11435
11436 2020-02-22 Tom Tromey <tom@tromey.com>
11437
11438 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
11439 correct coordinates.
11440
11441 2020-02-22 Tom Tromey <tom@tromey.com>
11442
11443 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
11444 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
11445 DATA_WIN case.
11446
11447 2020-02-22 Tom Tromey <tom@tromey.com>
11448
11449 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
11450 TUI_DISASM_WIN, not tui_win_list.
11451
11452 2020-02-22 Tom Tromey <tom@tromey.com>
11453
11454 * valprint.c (generic_val_print_enum_1)
11455 (val_print_type_code_flags): Style member names.
11456 * rust-lang.c (val_print_struct, rust_print_enum)
11457 (rust_print_struct_def, rust_internal_print_type): Style member
11458 names.
11459 * p-valprint.c (pascal_object_print_value_fields): Style member
11460 names. Only call fprintf_symbol_filtered for static members.
11461 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
11462 * f-valprint.c (f_val_print): Style member names.
11463 * f-typeprint.c (f_type_print_base): Style member names.
11464 * cp-valprint.c (cp_print_value_fields): Style member names. Only
11465 call fprintf_symbol_filtered for static members.
11466 (cp_print_class_member): Style member names.
11467 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
11468 member names.
11469 * ada-valprint.c (ada_print_scalar): Style enum names.
11470 (ada_val_print_enum): Likewise.
11471 * ada-typeprint.c (print_enum_type): Style enum names.
11472
11473 2020-02-21 Tom Tromey <tom@tromey.com>
11474
11475 * psympriv.h (struct partial_symtab): Update comment.
11476
11477 2020-02-21 Tom Tromey <tromey@adacore.com>
11478
11479 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
11480 type is CORE_ADDR.
11481
11482 2020-02-21 Tom de Vries <tdevries@suse.de>
11483
11484 PR gdb/25534
11485 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
11486 if dependencies[i]->user != NULL.
11487
11488 2020-02-21 Ali Tamur <tamur@google.com>
11489
11490 * dwarf2/read.c (dwarf2_name): Add null check.
11491
11492 2020-02-20 Tom Tromey <tom@tromey.com>
11493
11494 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
11495 ">=", in binary search.
11496 (dwarf2_find_containing_comp_unit): New overload.
11497 (run_test): New self-test.
11498 (_initialize_dwarf2_read): Register new test.
11499
11500 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
11501
11502 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
11503 * riscv-tdep.h: Likewise.
11504 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
11505 rv32-only CSR.
11506 * features/riscv/64bit-csr.xml: Regenerated.
11507
11508 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
11509 Tom Tromey <tom@tromey.com>
11510
11511 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
11512 of 'fputc_unfiltered'.
11513 (putchar_unfiltered): Call 'fputc_unfiltered'.
11514 (fputc_unfiltered): Call 'fputs_unfiltered'.
11515
11516 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
11517
11518 * config.in: Regenerate.
11519 * configure: Regenerate.
11520 * configure.ac: Add --with-python-libdir option.
11521 * main.c: Use WITH_PYTHON_LIBDIR.
11522
11523 2020-02-19 Tom Tromey <tom@tromey.com>
11524
11525 * symtab.c (general_symbol_info::compute_and_set_names): Use
11526 obstack_strndup. Simplify call to symbol_set_demangled_name.
11527
11528 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
11529
11530 * dwarf2/read.c (allocate_signatured_type_table,
11531 allocate_dwo_unit_table, allocate_type_unit_groups_table,
11532 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
11533 Remove objfile parameter, update all callers.
11534
11535 2020-02-19 Doug Evans <dje@google.com>
11536
11537 PR rust/25535
11538 * rust-lang.c (rust_print_enum): Apply embedded_offset to
11539 rust_enum_variant calculation.
11540
11541 2020-02-19 Tom Tromey <tromey@adacore.com>
11542
11543 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
11544
11545 2020-02-19 Tom Tromey <tromey@adacore.com>
11546
11547 * ada-lang.c (cache_symbol): Use obstack_strdup.
11548
11549 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
11550
11551 * configure: Regenerate.
11552
11553 2020-02-19 Tom Tromey <tromey@adacore.com>
11554
11555 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
11556 NULL check.
11557
11558 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
11559
11560 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
11561
11562 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
11563
11564 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
11565 if GDBSERVER is not defined.
11566 (riscv_tdesc_cache): Likewise, also store const target_desc.
11567 (STATIC_IN_GDB): Define.
11568 (riscv_create_target_description): Update declaration with
11569 STATIC_IN_GDB.
11570 (riscv_lookup_target_description): New function, only define if
11571 GDBSERVER is not defined.
11572 * arch/riscv.h (riscv_create_target_description): Declare only
11573 when GDBSERVER is defined.
11574 (riscv_lookup_target_description): New declaration when GDBSERVER
11575 is not defined.
11576 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
11577 (riscv_linux_read_features): ...this, and return
11578 riscv_gdbarch_features instead of target_desc.
11579 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
11580 (riscv_linux_read_description): Rename to...
11581 (riscv_linux_read_features): ...this.
11582 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
11583 Update to use riscv_gdbarch_features and
11584 riscv_lookup_target_description.
11585 * riscv-tdep.c (riscv_find_default_target_description): Use
11586 riscv_lookup_target_description instead of
11587 riscv_create_target_description.
11588
11589 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
11590
11591 * valprint.c (generic_val_print_enum_1): When printing a flag
11592 enum with value 0 and there is no enumerator with value 0, print
11593 just "0" instead of "(unknown: 0x0)".
11594
11595 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
11596
11597 * valprint.c (generic_val_print_enum_1): Print unknown part of
11598 flag enum in hex.
11599
11600 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
11601
11602 * dwarf2/read.c (update_enumeration_type_from_children): Allow
11603 flag enums to contain duplicate enumerators.
11604 * valprint.c (generic_val_print_enum_1): Update comment.
11605
11606 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
11607
11608 * dwarf2/read.c: Include "count-one-bits.h".
11609 (update_enumeration_type_from_children): If an enumerator has
11610 multiple bits set, don't treat the enumeration as a "flag enum".
11611 * valprint.c (generic_val_print_enum_1): Assert that enumerators
11612 of flag enums have 0 or 1 bit set.
11613
11614 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
11615
11616 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
11617 conversion.
11618 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11619 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
11620 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11621 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
11622 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11623
11624 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
11625
11626 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
11627
11628 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
11629
11630 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
11631 displaced_step_closure_up.
11632 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
11633 (struct displaced_step_closure_up):
11634 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11635 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
11636 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
11637 Likewise.
11638 * gdbarch.sh (displaced_step_copy_insn): Likewise.
11639 * gdbarch.c, gdbarch.h: Re-generate.
11640 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
11641 displaced_step_closure_up.
11642 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11643 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
11644 * infrun.h (displaced_step_closure_up): New type alias.
11645 (struct displaced_step_inferior_state) <step_closure>: Change
11646 type to displaced_step_closure_up.
11647 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
11648 displaced_step_closure_up.
11649 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11650
11651 2020-02-14 Tom Tromey <tom@tromey.com>
11652
11653 * minidebug.c (gnu_debug_key): New global.
11654 (find_separate_debug_file_in_section): Use it.
11655
11656 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
11657
11658 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
11659 std::unique_ptr.
11660 * gdbarch.c: Re-generate.
11661 * gdbarch.h: Re-generate.
11662 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
11663 change.
11664 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
11665 type to std::unique_ptr.
11666 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
11667 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11668 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
11669 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
11670 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
11671 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11672 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
11673 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
11674 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11675
11676 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
11677
11678 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
11679 std::unique_ptr.
11680 (displaced_step_clear): Rename to...
11681 (displaced_step_reset): ... this. Just call displaced->reset ().
11682 (displaced_step_clear_cleanup): Rename to...
11683 (displaced_step_reset_cleanup): ... this.
11684 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
11685 (displaced_step_fixup): Likewise.
11686 (resume_1): Likewise.
11687 (handle_inferior_event): Restore child's memory before calling
11688 displaced_step_fixup on the parent.
11689 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
11690 to std::unique_ptr.
11691 <step_closure>: Change type to std::unique_ptr.
11692
11693 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
11694
11695 * arm-tdep.c: Include count-one-bits.h.
11696 (cleanup_block_store_pc): Use count_one_bits.
11697 (cleanup_block_load_pc): Use count_one_bits.
11698 (arm_copy_block_xfer): Use count_one_bits.
11699 (thumb2_copy_block_xfer): Use count_one_bits.
11700 (thumb_copy_pop_pc_16bit): Use count_one_bits.
11701 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
11702 (thumb_get_next_pcs_raw): Use count_one_bits.
11703 (arm_get_next_pcs_raw): Use count_one_bits_l.
11704 * arch/arm.c (bitcount): Remove.
11705 * arch/arm.h (bitcount): Remove.
11706
11707 2020-02-14 Tom Tromey <tromey@adacore.com>
11708
11709 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
11710 Update.
11711 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
11712 * dwarf2/loc.c (call_site_find_chain_1): Return
11713 unique_xmalloc_ptr.
11714 (call_site_find_chain): Likewise.
11715
11716 2020-02-14 Richard Biener <rguenther@suse.de>
11717
11718 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
11719 on expression with division operators.
11720
11721 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11722
11723 * MAINTAINERS (Write After Approval): Adding myself.
11724
11725 2020-02-12 Tom Tromey <tom@tromey.com>
11726
11727 * event-loop.c (event_data, gdb_event, event_handler_func):
11728 Remove.
11729
11730 2020-02-12 Tom Tromey <tom@tromey.com>
11731
11732 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
11733 (dwarf2_frame_objfile_data): Add comment.
11734 (find_comp_unit, set_comp_unit): New functions.
11735 (dwarf2_frame_find_fde): Use find_comp_unit.
11736 (dwarf2_build_frame_info): Use set_comp_unit.
11737
11738 2020-02-12 Tom Tromey <tom@tromey.com>
11739
11740 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
11741 (comp_unit): Don't initialize objfile.
11742 (execute_cfa_program): Add text_offset parameter.
11743 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
11744 (dwarf2_frame_cache): Update.
11745 (dwarf2_build_frame_info): Don't set "objfile" member.
11746
11747 2020-02-12 Tom Tromey <tom@tromey.com>
11748
11749 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
11750 (decode_frame_entry): Likewise.
11751 (dwarf2_build_frame_info): Update.
11752
11753 2020-02-12 Tom Tromey <tom@tromey.com>
11754
11755 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
11756 (decode_frame_entry_1): Use the comp_unit obstack.
11757
11758 2020-02-12 Tom Tromey <tom@tromey.com>
11759
11760 * dwarf2/frame.c (struct comp_unit): Add initializers and
11761 constructor.
11762 (dwarf2_frame_objfile_data): Store a comp_unit.
11763 (dwarf2_frame_find_fde): Update.
11764 (dwarf2_build_frame_info): Use "new".
11765
11766 2020-02-12 Tom Tromey <tom@tromey.com>
11767
11768 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
11769 (dwarf2_fde_table): Typedef for std::vector.
11770 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
11771 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
11772 (decode_frame_entry): Update.
11773 (dwarf2_build_frame_info): Use "new".
11774
11775 2020-02-12 Christian Biesinger <cbiesinger@google.com>
11776
11777 * arm-tdep.c (arm_gdbarch_init): Update.
11778 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
11779 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
11780 have_neon, is_m>: Change to bool.
11781
11782 2020-02-12 Christian Biesinger <cbiesinger@google.com>
11783
11784 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
11785
11786 2020-02-12 Tom Tromey <tom@tromey.com>
11787
11788 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
11789
11790 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
11791
11792 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
11793 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
11794
11795 2020-02-11 Tom Tromey <tom@tromey.com>
11796
11797 * psymtab.h: Update comment.
11798
11799 2020-02-11 Tom Tromey <tom@tromey.com>
11800
11801 * gdb_obstack.h (struct auto_obstack): Use
11802 DISABLE_COPY_AND_ASSIGN.
11803
11804 2020-02-11 Tom Tromey <tom@tromey.com>
11805
11806 * dwarf2/frame.h (struct objfile): Don't forward declare.
11807
11808 2020-02-11 Christian Biesinger <cbiesinger@google.com>
11809
11810 * cris-tdep.c (cris_supply_gregset): Change signature to match
11811 what struct regset expects.
11812 (cris_regset): New struct.
11813 (fetch_core_registers): Remove.
11814 (cris_iterate_over_regset_sections): New function.
11815 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
11816 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
11817
11818 2020-02-11 Christian Biesinger <cbiesinger@google.com>
11819
11820 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
11821 registers.
11822
11823 2020-02-11 Christian Biesinger <cbiesinger@google.com>
11824
11825 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
11826
11827 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
11828
11829 * configure: Re-generate.
11830
11831 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
11832
11833 * configure: Re-generate.
11834
11835 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
11836
11837 * acinclude: Update warning.m4 path.
11838 * warning.m4: Move to gdbsupport.
11839
11840 2020-02-11 Tom Tromey <tromey@adacore.com>
11841
11842 * remote.c (remote_console_output): Update.
11843 * printcmd.c (printf_command): Update.
11844 * event-loop.c (gdb_wait_for_event): Update.
11845 * linux-nat.c (sigchld_handler): Update.
11846 * remote-sim.c (gdb_os_write_stdout): Update.
11847 (gdb_os_flush_stdout): Update.
11848 (gdb_os_flush_stderr): Update.
11849 (gdb_os_write_stderr): Update.
11850 * exceptions.c (print_exception): Update.
11851 * remote-fileio.c (remote_fileio_func_read): Update.
11852 (remote_fileio_func_write): Update.
11853 * tui/tui.c (tui_enable): Update.
11854 * tui/tui-interp.c (tui_interp::init): Update.
11855 * utils.c (init_page_info): Update.
11856 (putchar_unfiltered, fputc_unfiltered): Update.
11857 (gdb_flush): Update.
11858 (emit_style_escape): Update.
11859 (flush_wrap_buffer, fputs_maybe_filtered): Update.
11860 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
11861 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
11862 (stderr_file::write): Update.
11863 (stderr_file::puts): Update.
11864 * ui-file.h (ui_file_isatty, ui_file_write)
11865 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
11866 (ui_file_puts): Don't declare.
11867
11868 2020-02-10 Tom de Vries <tdevries@suse.de>
11869
11870 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
11871 sentinel to char *.
11872
11873 2020-02-09 Tom de Vries <tdevries@suse.de>
11874
11875 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
11876 filename if it matches "<artificial>".
11877
11878 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
11879
11880 * windows-tdep.c (struct enum_value_name): New struct.
11881 (create_enum): New function.
11882 (windows_get_siginfo_type): Create and use enum types.
11883
11884 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
11885
11886 * NEWS: Mention $_siginfo support for Windows.
11887 * windows-nat.c (handle_exception): Set siginfo_er.
11888 (windows_nat_target::mourn_inferior): Reset siginfo_er.
11889 (windows_xfer_siginfo): New function.
11890 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
11891 * windows-tdep.c (struct windows_gdbarch_data): New struct.
11892 (init_windows_gdbarch_data): New function.
11893 (get_windows_gdbarch_data): New function.
11894 (windows_get_siginfo_type): New function.
11895 (windows_init_abi): Register windows_get_siginfo_type.
11896 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
11897
11898 2020-02-08 Tom Tromey <tom@tromey.com>
11899
11900 * dwarf2/read.c (class cutu_reader) <cutu_reader,
11901 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
11902 <keep>: Declare method.
11903 <m_keep>: Remove member.
11904 <~cutu_reader>: Remove.
11905 (cutu_reader::init_tu_and_read_dwo_dies): Update.
11906 (cutu_reader::cutu_reader): Update.
11907 (cutu_reader::keep): Rename from ~cutu_reader.
11908 (process_psymtab_comp_unit, build_type_psymtabs_1)
11909 (process_skeletonless_type_unit, load_partial_comp_unit)
11910 (load_full_comp_unit, dwarf2_read_addr_index)
11911 (read_signatured_type): Update.
11912
11913 2020-02-08 Tom Tromey <tom@tromey.com>
11914
11915 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
11916 "want_partial_unit" parameter.
11917 (process_psymtab_comp_unit): Change want_partial_unit to bool.
11918 Inline check for DW_TAG_partial_unit.
11919 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
11920
11921 2020-02-08 Tom Tromey <tom@tromey.com>
11922
11923 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
11924 read.c.
11925 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
11926 read.c.
11927
11928 2020-02-08 Tom Tromey <tom@tromey.com>
11929
11930 * dwarf2/read.c (read_address): Move to comp-unit.c.
11931 (dwarf2_rnglists_process, dwarf2_ranges_process)
11932 (read_attribute_value, dwarf_decode_lines_1)
11933 (var_decode_location, decode_locdesc): Update.
11934 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
11935 read.c. Remove "cu" parameter.
11936 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
11937 method.
11938
11939 2020-02-08 Tom Tromey <tom@tromey.com>
11940
11941 * dwarf2/read.c (read_attribute_value, read_indirect_string)
11942 (read_indirect_line_string): Update.
11943 * dwarf2/comp-unit.c (read_offset): Remove.
11944 (read_comp_unit_head): Update.
11945 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
11946 method.
11947 (read_offset): Don't declare.
11948
11949 2020-02-08 Tom Tromey <tom@tromey.com>
11950
11951 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
11952 * dwarf2/read.c (struct comp_unit_head): Move to
11953 dwarf2/comp-unit.h.
11954 (enum class rcuh_kind): Move to comp-unit.h.
11955 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
11956 (read_comp_unit_head, error_check_comp_unit_head)
11957 (read_and_check_comp_unit_head): Move to comp-unit.c.
11958 (read_offset, dwarf_unit_type_name): Likewise.
11959 (create_debug_type_hash_table, read_cutu_die_from_dwo)
11960 (cutu_reader::cutu_reader, read_call_site_scope)
11961 (find_partial_die, follow_die_offset): Update.
11962 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
11963
11964 2020-02-08 Tom Tromey <tom@tromey.com>
11965
11966 * dwarf2/read.c (read_offset_1): Move to leb.c.
11967 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
11968 (dwarf_decode_macro_bytes): Update.
11969 * dwarf2/leb.c (read_offset): Rename; move from read.c.
11970 * dwarf2/leb.h (read_offset): Declare.
11971
11972 2020-02-08 Tom Tromey <tom@tromey.com>
11973
11974 * dwarf2/read.c (dwarf2_section_size): Remove.
11975 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
11976 Update.
11977 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
11978
11979 2020-02-08 Tom Tromey <tom@tromey.com>
11980
11981 * dwarf2/read.c (read_initial_length): Move to leb.c.
11982 * dwarf2/leb.h (read_initial_length): Declare.
11983 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
11984 handle_nonstd parameter.
11985 * dwarf2/frame.c (read_initial_length): Remove.
11986 (decode_frame_entry_1): Update.
11987
11988 2020-02-08 Tom Tromey <tom@tromey.com>
11989
11990 * dwarf2/loc.c (dwarf2_find_location_expression)
11991 (dwarf_evaluate_loc_desc::get_tls_address)
11992 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
11993 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
11994 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
11995 (dwarf2_compile_property_to_c)
11996 (dwarf2_loc_desc_get_symbol_read_needs)
11997 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
11998 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
11999 (loclist_describe_location, loclist_tracepoint_var_ref)
12000 (loclist_generate_c_location): Update.
12001 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
12002 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
12003 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
12004 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
12005 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
12006 (dwarf2_per_cu_data::addr_size)
12007 (dwarf2_per_cu_data::ref_addr_size)
12008 (dwarf2_per_cu_data::text_offset)
12009 (dwarf2_per_cu_data::addr_type): Now methods.
12010 (per_cu_header_read_in): Make per_cu "const".
12011 (dwarf2_version): Remove.
12012 (dwarf2_per_cu_data::int_type): Now a method.
12013 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
12014 (set_die_type, read_array_type, read_subrange_index_type)
12015 (read_tag_string_type, read_subrange_type): Update.
12016 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
12017 offset_size, ref_addr_size, text_offset, addr_type, version,
12018 objfile, int_type, addr_sized_int_type>: Declare methods.
12019
12020 2020-02-08 Tom Tromey <tom@tromey.com>
12021
12022 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
12023 Move earlier.
12024
12025 2020-02-08 Tom Tromey <tom@tromey.com>
12026
12027 * dwarf2/read.h (dwarf_line_debug): Declare.
12028 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
12029 * dwarf2/read.c: Move line_header code to new files.
12030 (dwarf_line_debug): No longer static.
12031 * dwarf2/line-header.c: New file.
12032 * dwarf2/line-header.h: New file.
12033
12034 2020-02-08 Tom Tromey <tom@tromey.com>
12035
12036 * dwarf2/read.c (struct line_header) <file_full_name,
12037 file_file_name>: Return unique_xmalloc_ptr.
12038 (line_header::file_file_name): Update.
12039 (line_header::file_full_name): Update.
12040 (dw2_get_file_names_reader): Update.
12041 (macro_start_file): Update.
12042
12043 2020-02-08 Tom Tromey <tom@tromey.com>
12044
12045 * dwarf2/read.c (struct line_header) <file_full_name,
12046 file_file_name>: Declare methods.
12047 (dw2_get_file_names_reader): Update.
12048 (file_file_name): Now a method.
12049 (file_full_name): Likewise.
12050 (macro_start_file): Update.
12051
12052 2020-02-08 Tom Tromey <tom@tromey.com>
12053
12054 * dwarf2/read.c (dwarf_always_disassemble)
12055 (show_dwarf_always_disassemble): Move to loc.c.
12056 (_initialize_dwarf2_read): Move "always-disassemble" registration
12057 to loc.c.
12058 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
12059 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
12060 static.
12061 (show_dwarf_always_disassemble): Move from read.c.
12062 (_initialize_dwarf2loc): Move always-disassemble from read.c.
12063
12064 2020-02-08 Tom Tromey <tom@tromey.com>
12065
12066 * dwarf2/read.c (~dwarf2_per_objfile): Update.
12067 (create_quick_file_names_table): Return htab_up.
12068 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
12069 Update.
12070 * dwarf2/read.h (struct dwarf2_per_objfile)
12071 <quick_file_names_table>: Now htab_up.
12072
12073 2020-02-08 Tom Tromey <tom@tromey.com>
12074
12075 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
12076
12077 2020-02-08 Tom Tromey <tom@tromey.com>
12078
12079 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
12080 Rewrite.
12081 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
12082 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
12083 (abbrev_table::abbrev_table): No longer inline.
12084 (ABBREV_HASH_SIZE): Remove.
12085 (abbrev_table::m_abbrevs): Now an htab_up.
12086
12087 2020-02-08 Tom Tromey <tom@tromey.com>
12088
12089 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
12090 (cutu_reader): Update.
12091 (build_type_psymtabs_1): Update.
12092 * dwarf2/abbrev.c (abbrev_table::read): Rename.
12093 (abbrev_table::alloc_abbrev): Update.
12094 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
12095 (abbrev_table::read): New static method, renamed from
12096 abbrev_table_read_table.
12097 (abbrev_table::alloc_abbrev)
12098 (abbrev_table::add_abbrev): Now private.
12099 (abbrev_table::abbrev_table): Now private.
12100 (abbrev_table::m_abbrev_obstack): Now private. Rename.
12101
12102 2020-02-08 Tom Tromey <tom@tromey.com>
12103
12104 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
12105 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
12106 htab_up.
12107
12108 2020-02-08 Tom Tromey <tom@tromey.com>
12109
12110 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
12111 htab_up.
12112 (lookup_dwo_unit_in_dwp): Update.
12113 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
12114 on obstack.
12115
12116 2020-02-08 Tom Tromey <tom@tromey.com>
12117
12118 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
12119 obstack.
12120
12121 2020-02-08 Tom Tromey <tom@tromey.com>
12122
12123 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
12124 line_header_hash.
12125 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
12126 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
12127 Change type to htab_up.
12128
12129 2020-02-08 Tom Tromey <tom@tromey.com>
12130
12131 * dwarf2/read.c (allocate_type_unit_groups_table): Return
12132 htab_up. Don't allocate on obstack.
12133 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
12134 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
12135 Change type to htab_up.
12136
12137 2020-02-08 Tom Tromey <tom@tromey.com>
12138
12139 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
12140 Change type to htab_up.
12141 * dwarf2/read.c (create_signatured_type_table_from_index)
12142 (create_signatured_type_table_from_debug_names)
12143 (create_all_type_units, add_type_unit)
12144 (lookup_dwo_signatured_type, lookup_signatured_type)
12145 (process_skeletonless_type_unit): Update.
12146 (create_debug_type_hash_table, create_debug_types_hash_table):
12147 Change type of types_htab.
12148 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
12149 htab_up. Don't allocate on obstack.
12150 (create_cus_hash_table): Change type of cus_htab parameter.
12151 (struct dwo_file) <cus, tus>: Now htab_up.
12152 (lookup_dwo_signatured_type, lookup_dwo_cutu)
12153 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
12154 (queue_and_load_all_dwo_tus): Update.
12155 * dwarf2/index-write.c (write_gdbindex): Update.
12156 (write_debug_names): Update.
12157
12158 2020-02-08 Tom Tromey <tom@tromey.com>
12159
12160 * dwarf2/read.h (struct dwarf2_queue_item): Move from
12161 dwarf2/read.c. Remove "next" member. Add constructor ntad
12162 destructor.
12163 (struct dwarf2_per_objfile) <queue>: New member.
12164 * dwarf2/read.c (struct dwarf2_queue_item): Move to
12165 dwarf2/read.h.
12166 (dwarf2_queue, dwarf2_queue_tail): Remove.
12167 (class dwarf2_queue_guard): Add parameter to constructor. Use
12168 DISABLE_COPY_AND_ASSIGN.
12169 <m_per_objfile>: New member.
12170 <~dwarf2_queue_guard>: Rewrite.
12171 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
12172 Update.
12173 (~dwarf2_queue_item): New.
12174
12175 2020-02-08 Tom Tromey <tom@tromey.com>
12176
12177 * dwarf2/read.c (struct die_info) <has_children>: New member.
12178 (dw2_get_file_names_reader): Remove has_children.
12179 (dw2_get_file_names): Update.
12180 (read_cutu_die_from_dwo): Remove has_children.
12181 (cutu_reader::init_tu_and_read_dwo_dies)
12182 (cutu_reader::cutu_reader): Update.
12183 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
12184 Remove has_children.
12185 (build_type_psymtabs_1, process_skeletonless_type_unit)
12186 (load_partial_comp_unit, load_full_comp_unit): Update.
12187 (create_dwo_cu_reader): Remove has_children.
12188 (create_cus_hash_table, read_die_and_children): Update.
12189 (read_full_die_1,read_full_die): Remove has_children.
12190 (read_signatured_type): Update.
12191 (class cutu_reader) <has_children>: Remove.
12192
12193 2020-02-08 Tom Tromey <tom@tromey.com>
12194
12195 * dwarf2/expr.c: Rename from dwarf2expr.c.
12196 * dwarf2/expr.h: Rename from dwarf2expr.h.
12197 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
12198 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
12199 * dwarf2/frame.c: Rename from dwarf2-frame.c.
12200 * dwarf2/frame.h: Rename from dwarf2-frame.h.
12201 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
12202 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
12203 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
12204 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
12205 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
12206 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
12207 * dwarf2/loc.c: Rename from dwarf2loc.c.
12208 * dwarf2/loc.h: Rename from dwarf2loc.h.
12209 * dwarf2/read.c: Rename from dwarf2read.c.
12210 * dwarf2/read.h: Rename from dwarf2read.h.
12211 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
12212 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
12213 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
12214 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
12215 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
12216 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
12217 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
12218 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
12219 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
12220 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
12221 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
12222 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
12223 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
12224 Update.
12225 * Makefile.in (COMMON_SFILES): Update.
12226 (HFILES_NO_SRCDIR): Update.
12227
12228 2020-02-08 Tom Tromey <tom@tromey.com>
12229
12230 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
12231 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
12232
12233 2020-02-08 Tom Tromey <tom@tromey.com>
12234
12235 * dwarf2read.h (struct die_info): Don't declare.
12236
12237 2020-02-08 Tom Tromey <tom@tromey.com>
12238
12239 * dwarf2read.h (die_info_ptr): Remove typedef.
12240
12241 2020-02-08 Tom Tromey <tom@tromey.com>
12242
12243 * dwarf2read.c (read_call_site_scope)
12244 (handle_data_member_location, dwarf2_add_member_fn)
12245 (mark_common_block_symbol_computed, read_common_block)
12246 (attr_to_dynamic_prop, partial_die_info::read)
12247 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
12248 (dwarf2_symbol_mark_computed, set_die_type): Update.
12249 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
12250 method.
12251 (attr_form_is_block): Don't declare.
12252 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
12253
12254 2020-02-08 Tom Tromey <tom@tromey.com>
12255
12256 * dwarf2read.c (dwarf2_find_base_address, )
12257 (read_call_site_scope, rust_containing_type)
12258 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
12259 (handle_data_member_location, dwarf2_add_member_fn)
12260 (get_alignment, read_structure_type, process_structure_scope)
12261 (mark_common_block_symbol_computed, read_common_block)
12262 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
12263 (partial_die_info::read, read_attribute_value, new_symbol)
12264 (lookup_die_type, dwarf2_get_ref_die_offset)
12265 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
12266 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
12267 (dwarf2_symbol_mark_computed): Update.
12268 * dwarf2/attribute.h (struct attribute) <value_as_address,
12269 form_is_section_offset, form_is_constant, form_is_ref>: Declare
12270 methods.
12271 (value_as_address, attr_form_is_section_offset)
12272 (attr_form_is_constant, attr_form_is_ref): Don't declare.
12273 * dwarf2/attribute.c (attribute::value_as_address)
12274 (attribute::form_is_section_offset, attribute::form_is_constant)
12275 (attribute::form_is_ref): Now methods.
12276
12277 2020-02-08 Tom Tromey <tom@tromey.com>
12278
12279 * dwarf2read.c (struct attribute, DW_STRING)
12280 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
12281 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
12282 (attr_form_is_block, attr_form_is_section_offset)
12283 (attr_form_is_constant, attr_form_is_ref): Move.
12284 * dwarf2/attribute.h: New file.
12285 * dwarf2/attribute.c: New file, from dwarf2read.c.
12286 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
12287
12288 2020-02-08 Tom Tromey <tom@tromey.com>
12289
12290 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
12291 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
12292 Move.
12293 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
12294 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
12295 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
12296 abbrev.c.
12297 * dwarf2/abbrev.h: New file.
12298 * dwarf2/abbrev.c: New file, from dwarf2read.c.
12299 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
12300
12301 2020-02-08 Tom Tromey <tom@tromey.com>
12302
12303 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
12304 (dwarf2_section_size, dwarf2_get_section_info)
12305 (create_signatured_type_table_from_debug_names)
12306 (create_addrmap_from_aranges, read_debug_names_from_section)
12307 (get_gdb_index_contents_from_section, read_comp_unit_head)
12308 (error_check_comp_unit_head, read_abbrev_offset)
12309 (create_debug_type_hash_table, init_cu_die_reader)
12310 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
12311 (read_comp_units_from_section, create_cus_hash_table)
12312 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
12313 (create_dwp_v2_section, dwarf2_rnglists_process)
12314 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
12315 (abbrev_table_read_table, read_indirect_string_at_offset_from)
12316 (read_indirect_string_from_dwz, read_addr_index_1)
12317 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
12318 (dwarf_decode_macro_bytes, dwarf_decode_macros)
12319 (fill_in_loclist_baton): Update.
12320 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
12321 get_containing_section, get_bfd_owner, get_bfd_section,
12322 get_file_name, get_id, get_flags, empty, read>: Declare methods.
12323 (dwarf2_read_section, get_section_name, get_section_file_name)
12324 (get_containing_section, get_section_bfd_owner)
12325 (get_section_bfd_section, get_section_name, get_section_file_name)
12326 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
12327 declare.
12328 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
12329 (dwarf2_section_info::get_bfd_owner)
12330 (dwarf2_section_info::get_bfd_section)
12331 (dwarf2_section_info::get_name)
12332 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
12333 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
12334 (dwarf2_section_info::read): Now methods.
12335 * dwarf-index-write.c (class debug_names): Update.
12336
12337 2020-02-08 Tom Tromey <tom@tromey.com>
12338
12339 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
12340 Move to dwarf2/section.h.
12341 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
12342 (get_section_bfd_section, get_section_name)
12343 (get_section_file_name, get_section_id, get_section_flags)
12344 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
12345 dwarf2/section.c.
12346 * dwarf2/section.h: New file.
12347 * dwarf2/section.c: New file, from dwarf2read.c.
12348 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
12349
12350 2020-02-08 Tom Tromey <tom@tromey.com>
12351
12352 * dwarf2read.h (read_unsigned_leb128): Don't declare.
12353 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
12354 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
12355 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
12356 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
12357 * dwarf2/leb.h: New file, from dwarf2read.c.
12358 * dwarf2/leb.c: New file, from dwarf2read.c.
12359 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
12360 Remove.
12361 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
12362 (COMMON_SFILES): Add dwarf2/leb.c.
12363
12364 2020-02-08 Joel Brobecker <brobecker@adacore.com>
12365
12366 GDB 9.1 released.
12367
12368 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
12369
12370 PR gdb/25190:
12371 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
12372 * gdb/remote.c (remote_console_output): Update.
12373 * gdb/ui-file.c (fputs_unfiltered): Rename to...
12374 (ui_file_puts): ...this.
12375 * gdb/ui-file.h (ui_file_puts): Add declaration.
12376 * gdb/utils.c (emit_style_escape): Update.
12377 (flush_wrap_buffer): Update.
12378 (fputs_maybe_filtered): Update.
12379 (fputs_unfiltered): Add function.
12380
12381 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
12382
12383 * gdb/event-loop.c (gdb_wait_for_event): Update.
12384 * gdb/printcmd.c (printf_command): Update.
12385 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
12386 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
12387 (gdb_os_flush_stderr): Update.
12388 * gdb/remote.c (remote_console_output): Update.
12389 * gdb/ui-file.c (gdb_flush): Rename to...
12390 (ui_file_flush): ...this.
12391 (stderr_file::write): Update.
12392 (stderr_file::puts): Update.
12393 * gdb/ui-file.h (gdb_flush): Rename to...
12394 (ui_file_flush): ...this.
12395 * gdb/utils.c (gdb_flush): Add function.
12396 * gdb/utils.h (gdb_flush): Add declaration.
12397
12398 2020-02-07 Tom Tromey <tromey@adacore.com>
12399
12400 PR breakpoints/24915:
12401 * source.c (find_and_open_source): Do not check basenames_may_differ.
12402
12403 2020-02-07 Tom Tromey <tom@tromey.com>
12404
12405 * README: Update gdbserver documentation.
12406 * gdbserver: Move to top level.
12407 * configure.tgt (build_gdbserver): Remove.
12408 * configure.ac: Remove --enable-gdbserver.
12409 * configure: Rebuild.
12410 * Makefile.in (distclean): Don't mention gdbserver.
12411
12412 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
12413
12414 * source-cache.c (source_cache::ensure): Surround
12415 get_plain_source_lines with a try/catch.
12416 (source_cache::get_line_charpos): Get rid of try/catch
12417 and only check for the return value of "ensure".
12418 * tui/tui-source.c (tui_source_window::set_contents):
12419 Simplify "nlines" calculation.
12420
12421 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
12422
12423 * MAINTAINERS (Write After Approval): Add myself.
12424
12425 2020-02-05 Christian Biesinger <cbiesinger@google.com>
12426
12427 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
12428 function call.
12429
12430 2020-02-05 Christian Biesinger <cbiesinger@google.com>
12431
12432 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
12433
12434 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
12435
12436 * nat/riscv-linux-tdesc.h: New file.
12437 * nat/riscv-linux-tdesc.c: New file, taking code from...
12438 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
12439 ... here.
12440 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
12441 NATDEPFILES.
12442
12443 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
12444
12445 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
12446 we don't set the fake simulator ptid to the null_ptid.
12447
12448 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
12449
12450 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
12451 * gdbthread.h (class thread_info) <resumed>: Likewise.
12452 * infrun.c (resume_1): Likewise.
12453 (proceed): Likewise.
12454 (infrun_thread_stop_requested): Likewise.
12455 (stop_all_threads): Likewise.
12456 (handle_inferior_event): Likewise.
12457 (restart_threads): Likewise.
12458 (finish_step_over): Likewise.
12459 (keep_going_stepped_thread): Likewise.
12460 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
12461 (linux_handle_extended_wait): Likewise.
12462 * record-btrace.c (get_thread_current_frame_id): Likewise.
12463 * record-full.c (record_full_wait_1): Likewise.
12464 * remote.c (remote_target::process_initial_stop_replies): Likewise.
12465 * target.c (target_resume): Likewise.
12466 * thread.c (set_running_thread): Likewise.
12467
12468 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
12469
12470 * f-valprint.c (f77_print_array_1): Changed datatype of index
12471 variable to LONGEST from int to enable it to contain bound
12472 values correctly.
12473
12474 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
12475
12476 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
12477 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
12478 offsets according to FLEN determined.
12479 (riscv_linux_nat_target::read_description): Determine FLEN
12480 dynamically.
12481 (riscv_linux_nat_target::fetch_registers): Size regset buffer
12482 according to FLEN determined.
12483 (riscv_linux_nat_target::store_registers): Likewise.
12484
12485 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
12486
12487 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
12488 when reg->group is empty and reggroup is not.
12489
12490 2020-01-31 Tom Tromey <tromey@adacore.com>
12491
12492 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
12493 Call beneath target's mourn_inferior after unpushing.
12494
12495 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
12496
12497 PR tui/9765
12498 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
12499 have enough lines to fill the screen, still return the lowest
12500 address we found.
12501
12502 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
12503
12504 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
12505 '-', '<', and '>' commands.
12506
12507 2020-01-29 Pedro Alves <palves@redhat.com>
12508 Sergio Durigan Junior <sergiodj@redhat.com>
12509
12510 * infcmd.c (construct_inferior_arguments): Assert that
12511 'argc' is greater than 0.
12512
12513 2020-01-29 Luis Machado <luis.machado@linaro.org>
12514
12515 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
12516 (BRK_INSN_MASK): Define to 0xd4200000.
12517 (aarch64_program_breakpoint_here_p): New function.
12518 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
12519 * arch-utils.c (default_program_breakpoint_here_p): Moved from
12520 breakpoint.c.
12521 * arch-utils.h (default_program_breakpoint_here_p): Moved from
12522 breakpoint.h
12523 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
12524 call gdbarch_program_breakpoint_here_p.
12525 (program_breakpoint_here): Moved to arch-utils.c, renamed to
12526 default_program_breakpoint_here_p, changed return type to bool and
12527 simplified.
12528 * breakpoint.h (program_breakpoint_here): Moved prototype to
12529 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
12530 return type to bool.
12531 * gdbarch.c: Regenerate.
12532 * gdbarch.h: Regenerate.
12533 * gdbarch.sh (program_breakpoint_here_p): New method.
12534 * infrun.c (handle_signal_stop): Call
12535 gdbarch_program_breakpoint_here_p.
12536
12537 2020-01-26 Tom Tromey <tom@tromey.com>
12538
12539 * ctfread.c (struct ctf_fp_info): Reindent.
12540 (_initialize_ctfread): Remove.
12541
12542 2020-01-26 Tom Tromey <tom@tromey.com>
12543
12544 * psymtab.c (partial_map_expand_apply)
12545 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
12546 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
12547 (psym_print_stats, psym_expand_symtabs_for_function)
12548 (psym_map_symbol_filenames, psym_map_matching_symbols)
12549 (psym_expand_symtabs_matching)
12550 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
12551 (maintenance_check_psymtabs): Use new methods.
12552 * psympriv.h (struct partial_symtab) <readin_p,
12553 get_compunit_symtab>: New methods.
12554 <readin, compunit_symtab>: Remove members.
12555 (struct standard_psymtab): New.
12556 (struct legacy_psymtab): Derive from standard_psymtab.
12557 * dwarf2read.h (struct dwarf2_psymtab): Derive from
12558 standard_psymtab.
12559 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
12560
12561 2020-01-26 Tom Tromey <tom@tromey.com>
12562
12563 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
12564 read_dependencies. Add assert.
12565 * psymtab.c (partial_symtab::read_dependencies): New method.
12566 * psympriv.h (struct partial_symtab) <read_dependencies>: New
12567 method.
12568 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
12569 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
12570 read_dependencies.
12571 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
12572 Add assert.
12573
12574 2020-01-26 Tom Tromey <tom@tromey.com>
12575
12576 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
12577 Call expand_psymtab.
12578 (xcoff_read_symtab): Call expand_psymtab.
12579 (xcoff_start_psymtab, xcoff_end_psymtab): Set
12580 legacy_expand_psymtab.
12581 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
12582 method.
12583 (struct legacy_psymtab) <expand_psymtab>: Implement.
12584 <legacy_expand_psymtab>: New member.
12585 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
12586 (parse_partial_symbols): Set legacy_expand_psymtab.
12587 (psymtab_to_symtab_1): Change argument order. Call
12588 expand_psymtab.
12589 (new_psymtab): Set legacy_expand_psymtab.
12590 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
12591 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
12592 expand_psymtab.
12593 (dwarf2_psymtab::expand_psymtab): Rename from
12594 psymtab_to_symtab_1. Call expand_psymtab.
12595 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
12596 (dbx_end_psymtab): Likewise.
12597 (dbx_psymtab_to_symtab_1): Change argument order. Call
12598 expand_psymtab.
12599 (dbx_read_symtab): Call expand_psymtab.
12600 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
12601 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
12602 (ctf_psymtab::read_symtab): Call expand_psymtab.
12603
12604 2020-01-26 Tom Tromey <tom@tromey.com>
12605
12606 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
12607 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
12608 messages.
12609 * mdebugread.c (mdebug_read_symtab): Remove prints.
12610 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
12611 assert.
12612 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
12613
12614 2020-01-26 Tom Tromey <tom@tromey.com>
12615
12616 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
12617 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
12618 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
12619 legacy_symtab.
12620 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
12621 * psymtab.c (psymtab_to_symtab): Call method.
12622 (dump_psymtab): Update.
12623 * psympriv.h (struct partial_symtab): Add virtual destructor.
12624 <read_symtab>: New method.
12625 (struct legacy_symtab): New.
12626 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
12627 (struct pst_map) <pst>: Now a legacy_psymtab.
12628 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
12629 (new_psymtab): Use legacy_psymtab.
12630 * dwarf2read.h (struct dwarf2_psymtab): New.
12631 (struct dwarf2_per_cu_data) <psymtab>: Use it.
12632 * dwarf2read.c (dwarf2_create_include_psymtab)
12633 (dwarf2_build_include_psymtabs, create_type_unit_group)
12634 (create_partial_symtab, process_psymtab_comp_unit_reader)
12635 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
12636 (set_partial_user): Use dwarf2_psymtab.
12637 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
12638 (psymtab_to_symtab_1, process_full_comp_unit)
12639 (process_full_type_unit, dwarf2_ranges_read)
12640 (dwarf2_get_pc_bounds, psymtab_include_file_name)
12641 (dwarf_decode_lines): Use dwarf2_psymtab.
12642 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
12643 (add_address_entry_worker, write_one_signatured_type)
12644 (recursively_count_psymbols, recursively_write_psymbols)
12645 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
12646 (write_debug_names): Likewise.
12647 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
12648 <pst>: Now a legacy_psymtab.
12649 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
12650 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
12651 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
12652 * ctfread.c (struct ctf_psymtab): New.
12653 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
12654 ctf_psymtab.
12655 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
12656 (create_partial_symtab): Return a ctf_psymtab.
12657 (scan_partial_symbols): Update.
12658
12659 2020-01-26 Tom Tromey <tom@tromey.com>
12660
12661 * xcoffread.c (xcoff_start_psymtab): Use new.
12662 * psymtab.c (partial_symtab::partial_symtab): New constructor,
12663 renamed from start_psymtab_common.
12664 * psympriv.h (struct partial_symtab): Add new constructor.
12665 (start_psymtab_common): Don't declare.
12666 * mdebugread.c (parse_partial_symbols): Use new.
12667 * dwarf2read.c (create_partial_symtab): Use new.
12668 * dbxread.c (start_psymtab): Use new.
12669 * ctfread.c (create_partial_symtab): Use new.
12670
12671 2020-01-26 Tom Tromey <tom@tromey.com>
12672
12673 * xcoffread.c (xcoff_end_psymtab): Use new.
12674 * psymtab.c (start_psymtab_common): Use new.
12675 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
12676 Update.
12677 * psympriv.h (struct partial_symtab): Add parameters to
12678 constructor. Don't inline.
12679 (allocate_psymtab): Don't declare.
12680 * mdebugread.c (new_psymtab): Use new.
12681 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
12682 * dbxread.c (dbx_end_psymtab): Use new.
12683
12684 2020-01-26 Tom Tromey <tom@tromey.com>
12685
12686 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
12687 allocate_psymtab. Update documentation.
12688 * psymtab.c (psymtab_storage::install_psymtab): Rename from
12689 allocate_psymtab. Do not use new.
12690 (allocate_psymtab): Use new. Update.
12691
12692 2020-01-26 Tom Tromey <tom@tromey.com>
12693
12694 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
12695 * psymtab.c (psym_print_stats): Update.
12696 * psympriv.h (struct partial_symtab) <readin,
12697 psymtabs_addrmap_supported, anonymous>: Now bool.
12698 * mdebugread.c (psymtab_to_symtab_1): Update.
12699 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
12700 (build_type_psymtabs_reader, psymtab_to_symtab_1)
12701 (process_full_comp_unit, process_full_type_unit): Update.
12702 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
12703 * ctfread.c (psymtab_to_symtab): Update.
12704
12705 2020-01-26 Tom Tromey <tom@tromey.com>
12706
12707 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
12708 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
12709 * psymtab.c (psymtab_storage): Delete psymtabs.
12710 (psymtab_storage::allocate_psymtab): Use new.
12711 (psymtab_storage::discard_psymtab): Use delete.
12712 * psympriv.h (struct partial_symtab): Add constructor and
12713 initializers.
12714
12715 2020-01-26 Tom Tromey <tom@tromey.com>
12716
12717 * machoread.c: Do not include psympriv.h.
12718
12719 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12720
12721 * NEWS: Mention the new option and the set/show commands.
12722
12723 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12724
12725 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
12726 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
12727 (validate_exec_file): New variables, enums, functions.
12728 (exec_file_locate_attach, print_section_info): Style the filenames.
12729 (_initialize_exec): Install show_exec_file_mismatch_command and
12730 set_exec_file_mismatch_command.
12731 * gdbcore.h (validate_exec_file): Declare.
12732 * infcmd.c (attach_command): Call validate_exec_file.
12733 * remote.c ( remote_target::remote_add_inferior): Likewise.
12734
12735 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12736
12737 * frame.c (find_frame_sal): Move call to get_next_frame into more
12738 inner scope.
12739 * inline-frame.c (inilne_state) <inline_state>: Update argument
12740 types.
12741 (inilne_state) <skipped_symbol>: Rename to...
12742 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
12743 (skip_inline_frames): Build vector of skipped symbols and use this
12744 to reate the inline_state.
12745 (inline_skipped_symbol): Add a comment and some assertions, fetch
12746 skipped symbol from the list.
12747
12748 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12749
12750 * buildsym.c (lte_is_less_than): Delete.
12751 (buildsym_compunit::end_symtab_with_blockvector): Create local
12752 lambda function to sort line table entries, and use
12753 std::stable_sort instead of std::sort.
12754 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
12755 markers when looking for a previous line.
12756
12757 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12758
12759 * dwarf2read.c (lnp_state_machine::record_line): Include
12760 end_sequence parameter in debug print out. Record the line if we
12761 are at an end_sequence marker even if it's not the start of a
12762 statement.
12763 * symmisc.c (maintenance_print_one_line_table): Print end of
12764 sequence markers with 'END' not '0'.
12765
12766 2020-01-24 Pedro Alves <palves@redhat.com>
12767
12768 PR gdb/25410
12769 * thread.c (scoped_restore_current_thread::restore): Use
12770 switch_to_inferior_no_thread.
12771 * exec.c: Include "progspace-and-thread.h".
12772 (add_target_sections, remove_target_sections):
12773 scoped_restore_current_pspace_and_thread instead of
12774 scoped_restore_current_thread.
12775 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
12776 and aspace to the inferior before calling clone_program_space.
12777 Remove stale comment.
12778
12779 2020-01-24 Christian Biesinger <cbiesinger@google.com>
12780
12781 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
12782 (arm_netbsd_nat_target::fetch_registers): ...this.
12783 (arm_nbsd_nat_target::store_registers): Rename to...
12784 (arm_netbsd_nat_target::store_registers): ...this.
12785
12786 2020-01-24 Christian Biesinger <cbiesinger@google.com>
12787
12788 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12789 register_t.
12790
12791 2020-01-24 Christian Biesinger <cbiesinger@google.com>
12792
12793 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
12794 Update comment.
12795 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
12796 Likewise.
12797 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
12798 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
12799 the correct replacement (iterate_over_regset_sections).
12800 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
12801 Update comment.
12802
12803 2020-01-24 Graham Markall <graham.markall@embecosm.com>
12804
12805 PR gdb/23718
12806 * gdb/python/python.c (execute_gdb_command): Call
12807 async_enable_stdin in catch block.
12808
12809 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12810
12811 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
12812 SWITCH_THRU_ALL_UIS.
12813
12814 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12815
12816 PR tui/9765
12817 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
12818 comment, add extra parameter, and update to store previous symbol
12819 when appropriate.
12820 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
12821 add extra parameter.
12822 * tui/tui-disasm.c (tui_disassemble): Update header comment,
12823 remove unneeded parameter, add try/catch around gdb_print_insn,
12824 rewrite to add items to asm_lines vector.
12825 (tui_find_backward_disassembly_start_address): New function.
12826 (tui_find_disassembly_address): Updated throughout.
12827 (tui_disasm_window::set_contents): Update for changes to
12828 tui_disassemble.
12829 (tui_disasm_window::do_scroll_vertical): No need to adjust the
12830 number of lines to scroll.
12831
12832 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
12833
12834 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
12835 (SECT_OFF_DATA): Likewise.
12836 (SECT_OFF_RODATA): Likewise.
12837 (SECT_OFF_TEXT): Likewise.
12838 (SECT_OFF_BSS): Likewise.
12839 (struct objfile) <text_section_offset, data_section_offset>: New
12840 methods.
12841 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
12842 objfile::text_section_offset.
12843 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
12844 * coffread.c (coff_symtab_read): Likewise.
12845 (enter_linenos): Likewise.
12846 (process_coff_symbol): Likewise.
12847 * ctfread.c (get_objfile_text_range): Likewise.
12848 * dtrace-probe.c (dtrace_probe::get_relocated_address):
12849 Use objfile::data_section_offset.
12850 * dwarf2-frame.c (execute_cfa_program): Use
12851 objfile::text_section_offset.
12852 (dwarf2_frame_find_fde): Likewise.
12853 * dwarf2read.c (create_addrmap_from_index): Likewise.
12854 (create_addrmap_from_aranges): Likewise.
12855 (dw2_find_pc_sect_compunit_symtab): Likewise.
12856 (process_psymtab_comp_unit_reader): Likewise.
12857 (add_partial_symbol): Likewise.
12858 (add_partial_subprogram): Likewise.
12859 (process_full_comp_unit): Likewise.
12860 (read_file_scope): Likewise.
12861 (read_func_scope): Likewise.
12862 (read_lexical_block_scope): Likewise.
12863 (read_call_site_scope): Likewise.
12864 (dwarf2_rnglists_process): Likewise.
12865 (dwarf2_ranges_process): Likewise.
12866 (dwarf2_ranges_read): Likewise.
12867 (dwarf_decode_lines_1): Likewise.
12868 (new_symbol): Likewise.
12869 (dwarf2_fetch_die_loc_sect_off): Likewise.
12870 (dwarf2_per_cu_text_offset): Likewise.
12871 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
12872 * hppa-tdep.c (read_unwind_info): Likewise.
12873 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
12874 * psympriv.h (struct partial_symtab): Likewise.
12875 * psymtab.c (find_pc_sect_psymtab): Likewise.
12876 * solib-svr4.c (enable_break): Likewise.
12877 * stap-probe.c (relocate_address): Use
12878 objfile::data_section_offset.
12879 * xcoffread.c (enter_line_range): Use
12880 objfile::text_section_offset.
12881 (read_xcoff_symtab): Likewise.
12882
12883 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
12884
12885 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
12886 declaration to narrower scopes.
12887
12888 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
12889
12890 * darwin-nat.h (struct darwin_exception_msg, enum
12891 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
12892 Move up.
12893 (class darwin_nat_target) <wait_1, check_new_threads,
12894 decode_exception_message, decode_message, stop_inferior,
12895 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
12896 * darwin-nat.c (darwin_check_new_threads): Rename to...
12897 (darwin_nat_target::check_new_threads): ... this.
12898 (darwin_suspend_inferior_it): Remove.
12899 (darwin_decode_exception_message): Rename to...
12900 (darwin_nat_target::decode_exception_message): ... this.
12901 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
12902 (darwin_decode_message): Rename to...
12903 (darwin_nat_target::decode_message): ... this.
12904 (cancel_breakpoint): Rename to...
12905 (darwin_nat_target::cancel_breakpoint): ... this.
12906 (darwin_wait): Rename to...
12907 (darwin_nat_target::wait_1): ... this. Use range-based for loop
12908 instead of iterate_over_inferiors.
12909 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
12910 (darwin_stop_inferior): Rename to...
12911 (darwin_nat_target::stop_inferior): ... this.
12912 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
12913 (darwin_init_thread_list): Rename to...
12914 (darwin_nat_target::init_thread_list): ... this.
12915 (darwin_ptrace_him): Rename to...
12916 (darwin_nat_target::ptrace_him): ... this.
12917 (darwin_nat_target::create_inferior): Pass lambda function to
12918 fork_inferior.
12919 (darwin_nat_target::detach): Call stop_inferior instead of
12920 darwin_stop_inferior.
12921 * fork-inferior.h (fork_inferior): Change init_trace_fun
12922 parameter to gdb::function_view.
12923 * fork-inferior.c (fork_inferior): Likewise.
12924
12925 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
12926
12927 * i386-cygwin-tdep.c (core_process_module_section): Update.
12928 * windows-nat.c (struct lm_info_windows): Add text_offset.
12929 (windows_xfer_shared_libraries): Update.
12930 * windows-tdep.c (windows_xfer_shared_library):
12931 Add text_offset_cached argument.
12932 * windows-tdep.h (windows_xfer_shared_library): Update.
12933
12934 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
12935
12936 * gdbarch.sh: Add declaration for _initialize_gdbarch.
12937
12938 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
12939
12940 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
12941 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
12942 replace with range-based for.
12943 (gdbsim_interrupt_inferior): Remove.
12944 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
12945 with a range-based for. Inline code from
12946 gdbsim_interrupt_inferior.
12947
12948 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
12949
12950 * infrun.c (proceed): Fix indentation.
12951
12952 2020-01-21 Tom Tromey <tromey@adacore.com>
12953
12954 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
12955 * python/python.c (python_extension_ops): Update.
12956 (gdbpy_colorize): New function.
12957 * python/lib/gdb/__init__.py (colorize): New function.
12958 * extension.h (ext_lang_colorize): Declare.
12959 * extension.c (ext_lang_colorize): New function.
12960 * extension-priv.h (struct extension_language_ops) <colorize>: New
12961 member.
12962 * cli/cli-style.c (_initialize_cli_style): Update help text.
12963
12964 2020-01-21 Luis Machado <luis.machado@linaro.org>
12965
12966 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
12967 <cond>: Change type to bool.
12968 (aarch64_displaced_step_b_cond): Update cond to use bool type.
12969 (aarch64_displaced_step_cb): Likewise.
12970 (aarch64_displaced_step_tb): Likewise.
12971
12972 2020-01-21 Luis Machado <luis.machado@linaro.org>
12973
12974 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
12975 output.
12976
12977 2020-01-21 Luis Machado <luis.machado@linaro.org>
12978
12979 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
12980 <pc_adjust>: Adjust the documentation.
12981 (aarch64_displaced_step_fixup): Check if PC really moved before
12982 adjusting it.
12983
12984 2020-01-19 Tom Tromey <tom@tromey.com>
12985
12986 * disasm.c (~gdb_disassembler): New destructor.
12987 (gdb_buffered_insn_length): Call disassemble_free_target.
12988 * disasm.h (class gdb_disassembler): Declare destructor. Use
12989 DISABLE_COPY_AND_ASSIGN.
12990
12991 2020-01-19 Tom Tromey <tom@tromey.com>
12992
12993 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
12994 (die_reader_func_ftype): Remove.
12995 (cutu_reader): New class.
12996 (dw2_get_file_names_reader): Remove "data" parameter.
12997 (dw2_get_file_names): Use cutu_reader.
12998 (create_debug_type_hash_table): Update.
12999 (read_cutu_die_from_dwo): Update comment.
13000 (lookup_dwo_unit): Add dwo_name parameter.
13001 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
13002 die_reader_func_ftype and data parameters.
13003 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
13004 Remove die_reader_func_ftype and data parameters.
13005 (~cutu_reader): New; from init_cutu_and_read_dies.
13006 (cutu_reader::cutu_reader): Rename from
13007 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
13008 and data parameters.
13009 (init_cutu_and_read_dies_simple): Remove.
13010 (struct process_psymtab_comp_unit_data): Remove.
13011 (process_psymtab_comp_unit_reader): Remove data parameter; add
13012 want_partial_unit and pretend_language parameters.
13013 (process_psymtab_comp_unit): Use cutu_reader.
13014 (build_type_psymtabs_reader): Remove data parameter.
13015 (build_type_psymtabs_1): Use cutu_reader.
13016 (process_skeletonless_type_unit): Likewise.
13017 (load_partial_comp_unit_reader): Remove.
13018 (load_partial_comp_unit): Use cutu_reader.
13019 (load_full_comp_unit_reader): Remove.
13020 (load_full_comp_unit): Use cutu_reader.
13021 (struct create_dwo_cu_data): Remove.
13022 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
13023 dwo_unit parameters.
13024 (create_cus_hash_table): Use cutu_reader.
13025 (struct dwarf2_read_addr_index_data): Remove.
13026 (dwarf2_read_addr_index_reader): Remove.
13027 (dwarf2_read_addr_index): Use cutu_reader.
13028 (read_signatured_type_reader): Remove.
13029 (read_signatured_type): Use cutu_reader.
13030
13031 2020-01-19 Tom Tromey <tom@tromey.com>
13032
13033 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
13034 * tui/tui-wingeneral.h (class tui_suppress_output): New.
13035 (tui_wrefresh): Declare.
13036 * tui/tui-wingeneral.c (suppress_output): New global.
13037 (tui_suppress_output, ~tui_suppress_output): New constructor and
13038 destructor.
13039 (tui_wrefresh): New function.
13040 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
13041 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
13042 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
13043 method.
13044 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
13045 tui_wrefresh.
13046 (tui_data_window::no_refresh): New method.
13047 (tui_data_item_window::refresh_window): Call tui_wrefresh.
13048 (tui_reg_command): Use tui_suppress_output
13049 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
13050 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
13051 method.
13052 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
13053
13054 2020-01-19 Tom Tromey <tom@tromey.com>
13055
13056 * tui/tui-winsource.c (tui_update_source_windows_with_line):
13057 Handle case where symtab is null.
13058
13059 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
13060
13061 * linux-fork.c (one_fork_p): Simplify.
13062
13063 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
13064
13065 * top.c (struct qt_args): Remove.
13066 (kill_or_detach): Change return type to void, replace `void *`
13067 parameter with a proper one.
13068 (print_inferior_quit_action): Likewise.
13069 (quit_confirm): Use range-based for loop to iterate over inferiors.
13070 (quit_force): Likewise.
13071
13072 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
13073
13074 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
13075 `void *` parameter with proper parameters.
13076 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
13077 (print_one_inferior): Change return type to void, replace `void *`
13078 parameter with proper parameters.
13079 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
13080 inferiors.
13081 (get_other_inferior): Remove.
13082 (mi_cmd_remove_inferior): Use range-based loop to iterate over
13083 inferiors.
13084
13085 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
13086
13087 * mi/mi-interp.c (report_initial_inferior): Remove.
13088 (mi_interp::init): Use range-based for to iterate over inferiors.
13089
13090 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
13091
13092 * python/py-inferior.c (build_inferior_list): Remove.
13093 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
13094
13095 2020-01-16 Christian Biesinger <cbiesinger@google.com>
13096
13097 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
13098 (btrace_stitch_trace): Likewise.
13099 * charset.c (intermediate_encoding): Likewise (vaild).
13100 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
13101 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
13102 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
13103
13104 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
13105
13106 * windows-tdep.c (windows_get_tlb_type):
13107 Add rtl_user_process_parameters type.
13108
13109 2020-01-16 Pedro Alves <palves@redhat.com>
13110 Norbert Lange <nolange79@gmail.com>
13111
13112 PR build/24805
13113 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
13114 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
13115 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
13116 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
13117 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
13118 (ps_plog): Redeclare exported functions with default visibility.
13119
13120 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
13121
13122 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
13123 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
13124
13125 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
13126
13127 * infcmd.c (post_create_inferior): Use get_thread_regcache
13128 instead of get_current_regcache.
13129
13130 2020-01-14 Tom Tromey <tom@tromey.com>
13131
13132 PR symtab/12535:
13133 * python/python.c (gdbpy_decode_line): Treat empty string the same
13134 as no argument.
13135
13136 2020-01-14 Tom Tromey <tom@tromey.com>
13137
13138 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
13139
13140 2020-01-14 Tom Tromey <tom@tromey.com>
13141
13142 * nat/linux-btrace.c: Don't include <config.h>.
13143 * nat/linux-ptrace.c: Don't include <config.h>.
13144 * nat/x86-linux-dregs.c: Don't include <config.h>.
13145
13146 2020-01-14 Tom Tromey <tom@tromey.com>
13147
13148 * configure: Rebuild.
13149 * configure.ac: Move many checks to ../gdbsupport/common.m4.
13150
13151 2020-01-14 Tom Tromey <tom@tromey.com>
13152
13153 * nat/x86-linux-dregs.c: Include configh.h.
13154 * nat/linux-ptrace.c: Include configh.h.
13155 * nat/linux-btrace.c: Include configh.h.
13156 * defs.h: Include config.h, bfd.h.
13157 * configure.ac: Don't source common.host.
13158 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
13159 * configure: Rebuild.
13160 * acinclude.m4: Update path.
13161 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
13162 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
13163 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
13164 (CLIBS): Add LIBSUPPORT.
13165 (CDEPS): Likewise.
13166 (COMMON_SFILES): Remove gdbsupport files.
13167 (HFILES_NO_SRCDIR): Likewise.
13168 (stamp-version): Update path to create-version.sh.
13169 (ALLDEPFILES): Remove gdbsupport files.
13170
13171 2020-01-14 Tom Tromey <tom@tromey.com>
13172
13173 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
13174 USE_WIN32API when needed.
13175 * configure.ac (USE_WIN32API): Don't define.
13176 (WIN32LIBS): Use WIN32APILIBS.
13177 * configure: Rebuild.
13178
13179 2020-01-14 Tom Tromey <tom@tromey.com>
13180
13181 * configure: Rebuild.
13182 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
13183
13184 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
13185
13186 * skip.c (skip_function_command): Make skip w/o arguments use the
13187 name of the inlined function if pc is inside any inlined function.
13188
13189 2020-01-14 Luis Machado <luis.machado@linaro.org>
13190
13191 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
13192 * infrun.c (resume_1): Likewise.
13193 (handle_inferior_event): Remove stale comment.
13194 * linux-nat.c (linux_nat_target::resume): Update comments.
13195 (save_stop_reason): Likewise.
13196 (linux_nat_filter_event): Likewise.
13197 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
13198
13199 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
13200
13201 * elfread.c (record_minimal_symbol): Set section index to 0 for
13202 non-allocatable sections.
13203
13204
13205 2020-01-13 Ali Tamur <tamur@google.com>
13206
13207 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
13208 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
13209 to gdb::optional. Update comments.
13210 (dwo_file): Update comments.
13211 (read_attribute): Update API to take an additional out parameter,
13212 need_reprocess. This is used to mark attributes that need other
13213 attributes (e.g. str_offsets_base) for correct computation which may not
13214 have been read yet.
13215 (read_attribute_reprocess): New function declaration.
13216 (read_addr_index): Likewise.
13217 (read_dwo_str_index): Likewise.
13218 (read_stub_str_index): Likewise.
13219 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
13220 (lookup_addr_base): New function definition.
13221 (lookup_ranges_base): Likewise.
13222 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
13223 lookup_ranges_base.
13224 (init_cutu_and_read_dies): Update comments.
13225 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
13226 unit. This is used to inherit parent's str_offsets_base and addr_base.
13227 Update comments.
13228 (init_cutu_and_read_dies_simple): Reflect API changes.
13229 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
13230 (create_cus_hash_table): Change API to take parent compile unit.
13231 Reflect API changes.
13232 (open_and_init_dwo_file): Reflect API changes.
13233 (dwarf2_get_pc_bounds): Update comments.
13234 (dwarf2_record_block_ranges): Likewise.
13235 (read_full_die_1): Change implementation to reprocess attributes that
13236 need str_offsets_base and addr_base.
13237 (partial_die_info::read): Likewise.
13238 (read_attribute_reprocess): New function definition.
13239 (read_attribute_value): Change API to take an additional out parameter,
13240 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
13241 when a non-dwo compile unit has index based attributes.
13242 (read_attribute): Reflect API changes.
13243 (read_addr_index_1): Reflect API changes. Update comments.
13244 (dwarf2_read_addr_index_data): Reflect API changes.
13245 (dwarf2_read_addr_index): Likewise.
13246 (read_str_index): Change API and implementation. This becomes a helper
13247 to be used by the new string index related methods. Update error
13248 message and comments.
13249 (read_dwo_str_index): New function definition.
13250 (read_stub_str_index): Likewise.
13251 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
13252 * symfile.h (dwarf2_debug_sections): Likewise.
13253 * xcoffread.c (dwarf2_debug_sections): Likewise.
13254
13255 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
13256
13257 * gdbcore.h (struct core_fns) <core_read_registers>: Change
13258 core_reg_sect type to gdb_byte *.
13259 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
13260 * cris-tdep.c (fetch_core_registers): Likewise.
13261 * corelow.c (core_target::get_core_register_section): Change
13262 type of `contents` to gdb::byte_vector.
13263
13264 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
13265
13266 * tui/tui-wingeneral.c (box_win): Position the title in the center
13267 of the border.
13268
13269 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13270
13271 * corelow.c (core_target::get_core_register_section): Use
13272 std::vector instead of alloca.
13273
13274 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
13275
13276 * warning.m4: Add -Wmissing-declarations to build_warnings.
13277 * configure: Re-generate.
13278
13279 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
13280
13281 * python/python.c (init__gdb_module): Add declaration.
13282
13283 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
13284
13285 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
13286 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
13287 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
13288 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
13289 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
13290 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
13291 * ada-exp.y (_initialize_ada_exp): Add declaration.
13292 * ada-lang.c (_initialize_ada_language): Add declaration.
13293 * ada-tasks.c (_initialize_tasks): Add declaration.
13294 * agent.c (_initialize_agent): Add declaration.
13295 * aix-thread.c (_initialize_aix_thread): Add declaration.
13296 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
13297 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
13298 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
13299 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
13300 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
13301 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
13302 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
13303 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
13304 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
13305 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
13306 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
13307 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
13308 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
13309 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
13310 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
13311 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
13312 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
13313 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
13314 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
13315 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
13316 * annotate.c (_initialize_annotate): Add declaration.
13317 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
13318 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
13319 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
13320 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
13321 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
13322 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
13323 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
13324 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
13325 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
13326 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
13327 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
13328 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
13329 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
13330 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
13331 * auto-load.c (_initialize_auto_load): Add declaration.
13332 * auxv.c (_initialize_auxv): Add declaration.
13333 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
13334 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
13335 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
13336 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
13337 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
13338 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
13339 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
13340 * breakpoint.c (_initialize_breakpoint): Add declaration.
13341 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
13342 * btrace.c (_initialize_btrace): Add declaration.
13343 * charset.c (_initialize_charset): Add declaration.
13344 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
13345 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
13346 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
13347 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
13348 * cli/cli-script.c (_initialize_cli_script): Add declaration.
13349 * cli/cli-style.c (_initialize_cli_style): Add declaration.
13350 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
13351 * coffread.c (_initialize_coffread): Add declaration.
13352 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
13353 * compile/compile.c (_initialize_compile): Add declaration.
13354 * complaints.c (_initialize_complaints): Add declaration.
13355 * completer.c (_initialize_completer): Add declaration.
13356 * copying.c (_initialize_copying): Add declaration.
13357 * corefile.c (_initialize_core): Add declaration.
13358 * corelow.c (_initialize_corelow): Add declaration.
13359 * cp-abi.c (_initialize_cp_abi): Add declaration.
13360 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
13361 * cp-support.c (_initialize_cp_support): Add declaration.
13362 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
13363 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
13364 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
13365 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
13366 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
13367 * ctfread.c (_initialize_ctfread): Add declaration.
13368 * d-lang.c (_initialize_d_language): Add declaration.
13369 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
13370 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
13371 * dbxread.c (_initialize_dbxread): Add declaration.
13372 * dcache.c (_initialize_dcache): Add declaration.
13373 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
13374 * disasm.c (_initialize_disasm): Add declaration.
13375 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
13376 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
13377 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
13378 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
13379 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
13380 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
13381 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
13382 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
13383 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
13384 * elfread.c (_initialize_elfread): Add declaration.
13385 * exec.c (_initialize_exec): Add declaration.
13386 * extension.c (_initialize_extension): Add declaration.
13387 * f-lang.c (_initialize_f_language): Add declaration.
13388 * f-valprint.c (_initialize_f_valprint): Add declaration.
13389 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
13390 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
13391 * filesystem.c (_initialize_filesystem): Add declaration.
13392 * findcmd.c (_initialize_mem_search): Add declaration.
13393 * findvar.c (_initialize_findvar): Add declaration.
13394 * fork-child.c (_initialize_fork_child): Add declaration.
13395 * frame-base.c (_initialize_frame_base): Add declaration.
13396 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
13397 * frame.c (_initialize_frame): Add declaration.
13398 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
13399 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
13400 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
13401 * gcore.c (_initialize_gcore): Add declaration.
13402 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
13403 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
13404 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
13405 * gdbarch.c (_initialize_gdbarch): Add declaration.
13406 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
13407 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
13408 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
13409 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
13410 * go-lang.c (_initialize_go_language): Add declaration.
13411 * go32-nat.c (_initialize_go32_nat): Add declaration.
13412 * guile/guile.c (_initialize_guile): Add declaration.
13413 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
13414 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
13415 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
13416 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
13417 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
13418 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
13419 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
13420 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
13421 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
13422 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
13423 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
13424 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
13425 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
13426 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
13427 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
13428 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
13429 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
13430 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
13431 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
13432 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
13433 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
13434 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
13435 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
13436 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
13437 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
13438 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
13439 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
13440 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
13441 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
13442 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
13443 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
13444 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
13445 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
13446 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
13447 * infcall.c (_initialize_infcall): Add declaration.
13448 * infcmd.c (_initialize_infcmd): Add declaration.
13449 * inflow.c (_initialize_inflow): Add declaration.
13450 * infrun.c (_initialize_infrun): Add declaration.
13451 * interps.c (_initialize_interpreter): Add declaration.
13452 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
13453 * jit.c (_initialize_jit): Add declaration.
13454 * language.c (_initialize_language): Add declaration.
13455 * linux-fork.c (_initialize_linux_fork): Add declaration.
13456 * linux-nat.c (_initialize_linux_nat): Add declaration.
13457 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
13458 * linux-thread-db.c (_initialize_thread_db): Add declaration.
13459 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
13460 * m2-lang.c (_initialize_m2_language): Add declaration.
13461 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
13462 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
13463 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
13464 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
13465 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
13466 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
13467 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
13468 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
13469 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
13470 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
13471 * machoread.c (_initialize_machoread): Add declaration.
13472 * macrocmd.c (_initialize_macrocmd): Add declaration.
13473 * macroscope.c (_initialize_macroscope): Add declaration.
13474 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
13475 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
13476 * maint.c (_initialize_maint_cmds): Add declaration.
13477 * mdebugread.c (_initialize_mdebugread): Add declaration.
13478 * memattr.c (_initialize_mem): Add declaration.
13479 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
13480 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
13481 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
13482 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
13483 * mi/mi-main.c (_initialize_mi_main): Add declaration.
13484 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
13485 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
13486 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
13487 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
13488 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
13489 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
13490 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
13491 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
13492 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
13493 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
13494 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
13495 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
13496 * mipsread.c (_initialize_mipsread): Add declaration.
13497 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
13498 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
13499 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
13500 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
13501 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
13502 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
13503 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
13504 * nto-procfs.c (_initialize_procfs): Add declaration.
13505 * objc-lang.c (_initialize_objc_language): Add declaration.
13506 * observable.c (_initialize_observer): Add declaration.
13507 * opencl-lang.c (_initialize_opencl_language): Add declaration.
13508 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
13509 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
13510 * osabi.c (_initialize_gdb_osabi): Add declaration.
13511 * osdata.c (_initialize_osdata): Add declaration.
13512 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
13513 * parse.c (_initialize_parse): Add declaration.
13514 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
13515 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
13516 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
13517 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
13518 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
13519 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
13520 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
13521 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
13522 * printcmd.c (_initialize_printcmd): Add declaration.
13523 * probe.c (_initialize_probe): Add declaration.
13524 * proc-api.c (_initialize_proc_api): Add declaration.
13525 * proc-events.c (_initialize_proc_events): Add declaration.
13526 * proc-service.c (_initialize_proc_service): Add declaration.
13527 * procfs.c (_initialize_procfs): Add declaration.
13528 * producer.c (_initialize_producer): Add declaration.
13529 * psymtab.c (_initialize_psymtab): Add declaration.
13530 * python/python.c (_initialize_python): Add declaration.
13531 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
13532 * record-btrace.c (_initialize_record_btrace): Add declaration.
13533 * record-full.c (_initialize_record_full): Add declaration.
13534 * record.c (_initialize_record): Add declaration.
13535 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
13536 * regcache.c (_initialize_regcache): Add declaration.
13537 * reggroups.c (_initialize_reggroup): Add declaration.
13538 * remote-notif.c (_initialize_notif): Add declaration.
13539 * remote-sim.c (_initialize_remote_sim): Add declaration.
13540 * remote.c (_initialize_remote): Add declaration.
13541 * reverse.c (_initialize_reverse): Add declaration.
13542 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
13543 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
13544 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
13545 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
13546 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
13547 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
13548 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
13549 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
13550 Add declaration.
13551 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
13552 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
13553 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
13554 * rust-exp.y (_initialize_rust_exp): Add declaration.
13555 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
13556 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
13557 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
13558 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
13559 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
13560 * score-tdep.c (_initialize_score_tdep): Add declaration.
13561 * ser-go32.c (_initialize_ser_dos): Add declaration.
13562 * ser-mingw.c (_initialize_ser_windows): Add declaration.
13563 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
13564 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
13565 * ser-uds.c (_initialize_ser_socket): Add declaration.
13566 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
13567 * serial.c (_initialize_serial): Add declaration.
13568 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
13569 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
13570 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
13571 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
13572 * skip.c (_initialize_step_skip): Add declaration.
13573 * sol-thread.c (_initialize_sol_thread): Add declaration.
13574 * solib-aix.c (_initialize_solib_aix): Add declaration.
13575 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
13576 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
13577 * solib-frv.c (_initialize_frv_solib): Add declaration.
13578 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
13579 * solib-target.c (_initialize_solib_target): Add declaration.
13580 * solib.c (_initialize_solib): Add declaration.
13581 * source-cache.c (_initialize_source_cache): Add declaration.
13582 * source.c (_initialize_source): Add declaration.
13583 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
13584 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
13585 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
13586 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
13587 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
13588 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
13589 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
13590 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
13591 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
13592 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
13593 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
13594 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
13595 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
13596 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
13597 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
13598 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
13599 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
13600 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
13601 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
13602 * stabsread.c (_initialize_stabsread): Add declaration.
13603 * stack.c (_initialize_stack): Add declaration.
13604 * stap-probe.c (_initialize_stap_probe): Add declaration.
13605 * std-regs.c (_initialize_frame_reg): Add declaration.
13606 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
13607 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
13608 * symfile.c (_initialize_symfile): Add declaration.
13609 * symmisc.c (_initialize_symmisc): Add declaration.
13610 * symtab.c (_initialize_symtab): Add declaration.
13611 * target.c (_initialize_target): Add declaration.
13612 * target-connection.c (_initialize_target_connection): Add
13613 declaration.
13614 * target-dcache.c (_initialize_target_dcache): Add declaration.
13615 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
13616 * thread.c (_initialize_thread): Add declaration.
13617 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
13618 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
13619 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
13620 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
13621 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
13622 * tracectf.c (_initialize_ctf): Add declaration.
13623 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
13624 * tracefile.c (_initialize_tracefile): Add declaration.
13625 * tracepoint.c (_initialize_tracepoint): Add declaration.
13626 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
13627 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
13628 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
13629 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
13630 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
13631 * tui/tui-win.c (_initialize_tui_win): Add declaration.
13632 * tui/tui.c (_initialize_tui): Add declaration.
13633 * typeprint.c (_initialize_typeprint): Add declaration.
13634 * ui-style.c (_initialize_ui_style): Add declaration.
13635 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
13636 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
13637 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
13638 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
13639 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
13640 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
13641 * unittests/filtered_iterator-selftests.c
13642 (_initialize_filtered_iterator_selftests): Add declaration.
13643 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
13644 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
13645 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
13646 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
13647 * unittests/main-thread-selftests.c
13648 (_initialize_main_thread_selftests): Add declaration.
13649 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
13650 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
13651 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
13652 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
13653 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
13654 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
13655 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
13656 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
13657 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
13658 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
13659 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
13660 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
13661 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
13662 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
13663 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
13664 declaration.
13665 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
13666 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
13667 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
13668 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
13669 * user-regs.c (_initialize_user_regs): Add declaration.
13670 * utils.c (_initialize_utils): Add declaration.
13671 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
13672 * valops.c (_initialize_valops): Add declaration.
13673 * valprint.c (_initialize_valprint): Add declaration.
13674 * value.c (_initialize_values): Add declaration.
13675 * varobj.c (_initialize_varobj): Add declaration.
13676 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
13677 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
13678 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
13679 * windows-nat.c (_initialize_windows_nat): Add declaration.
13680 (_initialize_check_for_gdb_ini): Add declaration.
13681 (_initialize_loadable): Add declaration.
13682 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
13683 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
13684 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
13685 * xcoffread.c (_initialize_xcoffread): Add declaration.
13686 * xml-support.c (_initialize_xml_support): Add declaration.
13687 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
13688 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
13689 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
13690 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
13691
13692 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13693
13694 * regformats/regdat.sh: Generate declaration for init function.
13695
13696 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13697
13698 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
13699 up.
13700 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
13701 close_one_inferior>: New methods.
13702 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
13703 pass down target to find_inferior_pid.
13704 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
13705 Pass down target to find_inferior_ptid.
13706 (gdbsim_target::create_inferior): Pass down target to
13707 add_thread_silent.
13708 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
13709 target down to find_inferior_ptid and switch_to_thread.
13710 (gdbsim_target::close): Update to call close_one_inferior.
13711 (struct resume_data): Remove.
13712 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
13713 directly, rather than through a void pointer.
13714 (gdbsim_target::resume): Update to call resume_one_inferior.
13715
13716 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
13717
13718 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
13719
13720 2020-01-12 Pedro Alves <palves@redhat.com>
13721
13722 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
13723 directly for the current inferior instead of
13724 discard_all_inferiors.
13725 (discard_all_inferiors): Delete.
13726
13727 2020-01-11 Tom Tromey <tom@tromey.com>
13728
13729 * tui/tui-wingeneral.c (box_win): Check cli_styling.
13730 * tui/tui-winsource.c (tui_source_window_base::refill): Use
13731 deprecated_safe_get_selected_frame.
13732
13733 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13734
13735 * inferior.c (print_inferior): Switch inferior before printing it.
13736
13737 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
13738 Pedro Alves <palves@redhat.com>
13739
13740 * progspace-and-thread.c (switch_to_program_space_and_thread):
13741 Assert there's an inferior for PSPACE. Use
13742 switch_to_inferior_no_thread to switch the inferior too.
13743 * progspace.c (program_space::~program_space): Call
13744 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
13745 (program_space::free_all_objfiles): Don't call clear_symtab_users
13746 here.
13747 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
13748
13749 2020-01-10 Pedro Alves <palves@redhat.com>
13750
13751 * NEWS: Mention multi-target debugging, "info connections", and
13752 "add-inferior -no-connection".
13753
13754 2020-01-10 Pedro Alves <palves@redhat.com>
13755
13756 * infrun.c: Include "target-connection.h".
13757 (check_multi_target_resumption): New.
13758 (proceed): Call it.
13759 * target-connection.c (make_target_connection_string): Make
13760 extern.
13761 * target-connection.h (make_target_connection_string): Declare.
13762
13763 2020-01-10 Pedro Alves <palves@redhat.com>
13764
13765 * Makefile.in (COMMON_SFILES): Add target-connection.c.
13766 * inferior.c (uiout_field_connection): New function.
13767 (print_inferior): Add new "connection-id" column.
13768 (add_inferior_command): Show connection number/string of added
13769 inferior.
13770 * process-stratum-target.h
13771 (process_stratum_target::connection_string): New virtual method.
13772 (process_stratum_target::connection_number): New field.
13773 * remote.c (remote_target::connection_string): New override.
13774 * target-connection.c: New file.
13775 * target-connection.h: New file.
13776 * target.c (decref_target): Remove process_stratum targets from
13777 the connection list.
13778 (target_stack::push): Add process_stratum targets to the
13779 connection list.
13780
13781 2020-01-10 Pedro Alves <palves@redhat.com>
13782
13783 Revert:
13784 2016-04-12 Pedro Alves <palves@redhat.com>
13785 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
13786 Remove references to name.
13787 * serial.h (struct serial) <name>: Delete.
13788
13789 2020-01-10 Pedro Alves <palves@redhat.com>
13790
13791 * gdbarch-selftests.c (register_to_value_test): Remove "target
13792 already pushed" check.
13793
13794 2020-01-10 Pedro Alves <palves@redhat.com>
13795 John Baldwin <jhb@FreeBSD.org>
13796
13797 * aarch64-linux-nat.c
13798 (aarch64_linux_nat_target::thread_architecture): Adjust.
13799 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
13800 (task_command_1): Likewise.
13801 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
13802 (aix_thread_target::wait, aix_thread_target::fetch_registers)
13803 (aix_thread_target::store_registers)
13804 (aix_thread_target::thread_alive): Adjust.
13805 * amd64-fbsd-tdep.c: Include "inferior.h".
13806 (amd64fbsd_get_thread_local_address): Pass down target.
13807 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
13808 thread's gdbarch instead of target_gdbarch.
13809 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
13810 get_last_target_status.
13811 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
13812 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
13813 inferiors.
13814 (update_inserted_breakpoint_locations): Skip if inferiors with no
13815 execution.
13816 (update_global_location_list): When handling moribund locations,
13817 find representative inferior for location's pspace, and use thread
13818 count of its process_stratum target.
13819 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
13820 * bsd-uthread.c (bsd_uthread_target::wait): Use
13821 as_process_stratum_target and adjust thread_change_ptid and
13822 add_thread calls.
13823 (bsd_uthread_target::update_thread_list): Use
13824 as_process_stratum_target and adjust find_thread_ptid,
13825 thread_change_ptid and add_thread calls.
13826 * btrace.c (maint_btrace_packet_history_cmd): Adjust
13827 find_thread_ptid call.
13828 * corelow.c (add_to_thread_list): Adjust add_thread call.
13829 (core_target_open): Adjust add_thread_silent and thread_count
13830 calls.
13831 (core_target::pid_to_str): Adjust find_inferior_ptid call.
13832 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
13833 * event-top.c (async_disconnect): Pop targets from all inferiors.
13834 * exec.c (add_target_sections): Push exec target on all inferiors
13835 sharing the program space.
13836 (remove_target_sections): Remove the exec target from all
13837 inferiors sharing the program space.
13838 (exec_on_vfork): New.
13839 * exec.h (exec_on_vfork): Declare.
13840 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
13841 Pass it down.
13842 (fbsd_nat_target::update_thread_list): Adjust.
13843 (fbsd_nat_target::resume): Adjust.
13844 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
13845 down.
13846 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
13847 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
13848 get_thread_arch_regcache call.
13849 * fork-child.c (gdb_startup_inferior): Pass target down to
13850 startup_inferior and set_executing.
13851 * gdbthread.h (struct process_stratum_target): Forward declare.
13852 (add_thread, add_thread_silent, add_thread_with_info)
13853 (in_thread_list): Add process_stratum_target parameter.
13854 (find_thread_ptid(inferior*, ptid_t)): New overload.
13855 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
13856 parameter.
13857 (all_threads()): Delete overload.
13858 (all_threads, all_non_exited_threads): Add process_stratum_target
13859 parameter.
13860 (all_threads_safe): Use brace initialization.
13861 (thread_count): Add process_stratum_target parameter.
13862 (set_resumed, set_running, set_stop_requested, set_executing)
13863 (threads_are_executing, finish_thread_state): Add
13864 process_stratum_target parameter.
13865 (switch_to_thread): Use is_current_thread.
13866 * i386-fbsd-tdep.c: Include "inferior.h".
13867 (i386fbsd_get_thread_local_address): Pass down target.
13868 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
13869 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
13870 have_inferiors check.
13871 * inf-ptrace.c (inf_ptrace_target::create_inferior)
13872 (inf_ptrace_target::attach): Adjust.
13873 * infcall.c (run_inferior_call): Adjust.
13874 * infcmd.c (run_command_1): Pass target to
13875 scoped_finish_thread_state.
13876 (proceed_thread_callback): Skip inferiors with no execution.
13877 (continue_command): Rename 'all_threads' local to avoid hiding
13878 'all_threads' function. Adjust get_last_target_status call.
13879 (prepare_one_step): Adjust set_running call.
13880 (signal_command): Use user_visible_resume_target. Compare thread
13881 pointers instead of inferior_ptid.
13882 (info_program_command): Adjust to pass down target.
13883 (attach_command): Mark target's 'thread_executing' flag.
13884 (stop_current_target_threads_ns): New, factored out from ...
13885 (interrupt_target_1): ... this. Switch inferior before making
13886 target calls.
13887 * inferior-iter.h
13888 (struct all_inferiors_iterator, struct all_inferiors_range)
13889 (struct all_inferiors_safe_range)
13890 (struct all_non_exited_inferiors_range): Filter on
13891 process_stratum_target too. Remove explicit.
13892 * inferior.c (inferior::inferior): Push dummy target on target
13893 stack.
13894 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
13895 Add process_stratum_target parameter, and pass it down.
13896 (have_live_inferiors): Adjust.
13897 (switch_to_inferior_and_push_target): New.
13898 (add_inferior_command, clone_inferior_command): Handle
13899 "-no-connection" parameter. Use
13900 switch_to_inferior_and_push_target.
13901 (_initialize_inferior): Mention "-no-connection" option in
13902 the help of "add-inferior" and "clone-inferior" commands.
13903 * inferior.h: Include "process-stratum-target.h".
13904 (interrupt_target_1): Use bool.
13905 (struct inferior) <push_target, unpush_target, target_is_pushed,
13906 find_target_beneath, top_target, process_target, target_at,
13907 m_stack>: New.
13908 (discard_all_inferiors): Delete.
13909 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
13910 (all_inferiors, all_non_exited_inferiors): Add
13911 process_stratum_target parameter.
13912 * infrun.c: Include "gdb_select.h" and <unordered_map>.
13913 (target_last_proc_target): New global.
13914 (follow_fork_inferior): Push target on new inferior. Pass target
13915 to add_thread_silent. Call exec_on_vfork. Handle target's
13916 reference count.
13917 (follow_fork): Adjust get_last_target_status call. Also consider
13918 target.
13919 (follow_exec): Push target on new inferior.
13920 (struct execution_control_state) <target>: New field.
13921 (user_visible_resume_target): New.
13922 (do_target_resume): Call target_async.
13923 (resume_1): Set target's threads_executing flag. Consider resume
13924 target.
13925 (commit_resume_all_targets): New.
13926 (proceed): Also consider resume target. Skip threads of inferiors
13927 with no execution. Commit resumtion in all targets.
13928 (start_remote): Pass current inferior to wait_for_inferior.
13929 (infrun_thread_stop_requested): Consider target as well. Pass
13930 thread_info pointer to clear_inline_frame_state instead of ptid.
13931 (infrun_thread_thread_exit): Consider target as well.
13932 (random_pending_event_thread): New inferior parameter. Use it.
13933 (do_target_wait): Rename to ...
13934 (do_target_wait_1): ... this. Add inferior parameter, and pass it
13935 down.
13936 (threads_are_resumed_pending_p, do_target_wait): New.
13937 (prepare_for_detach): Adjust calls.
13938 (wait_for_inferior): New inferior parameter. Handle it. Use
13939 do_target_wait_1 instead of do_target_wait.
13940 (fetch_inferior_event): Adjust. Switch to representative
13941 inferior. Pass target down.
13942 (set_last_target_status): Add process_stratum_target parameter.
13943 Save target in global.
13944 (get_last_target_status): Add process_stratum_target parameter and
13945 handle it.
13946 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
13947 (context_switch): Check inferior_ptid == null_ptid before calling
13948 inferior_thread().
13949 (get_inferior_stop_soon): Pass down target.
13950 (wait_one): Rename to ...
13951 (poll_one_curr_target): ... this.
13952 (struct wait_one_event): New.
13953 (wait_one): New.
13954 (stop_all_threads): Adjust.
13955 (handle_no_resumed, handle_inferior_event): Adjust to consider the
13956 event's target.
13957 (switch_back_to_stepped_thread): Also consider target.
13958 (print_stop_event): Update.
13959 (normal_stop): Update. Also consider the resume target.
13960 * infrun.h (wait_for_inferior): Remove declaration.
13961 (user_visible_resume_target): New declaration.
13962 (get_last_target_status, set_last_target_status): New
13963 process_stratum_target parameter.
13964 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
13965 process_stratum_target parameter, and use it.
13966 (clear_inline_frame_state (thread_info*)): New.
13967 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
13968 process_stratum_target parameter.
13969 (clear_inline_frame_state (thread_info*)): Declare.
13970 * linux-fork.c (delete_checkpoint_command): Pass target down to
13971 find_thread_ptid.
13972 (checkpoint_command): Adjust.
13973 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
13974 instead of just tweaking inferior_ptid.
13975 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
13976 (exit_lwp): Pass target down to find_thread_ptid.
13977 (attach_proc_task_lwp_callback): Pass target down to
13978 add_thread/set_running/set_executing.
13979 (linux_nat_target::attach): Pass target down to
13980 thread_change_ptid.
13981 (get_detach_signal): Pass target down to find_thread_ptid.
13982 Consider last target status's target.
13983 (linux_resume_one_lwp_throw, resume_lwp)
13984 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
13985 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
13986 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
13987 (linux_nat_target::async_wait_fd): New.
13988 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
13989 target down.
13990 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
13991 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
13992 * linux-thread-db.c (struct thread_db_info::process_target): New
13993 field.
13994 (add_thread_db_info): Save target.
13995 (get_thread_db_info): New process_stratum_target parameter. Also
13996 match target.
13997 (delete_thread_db_info): New process_stratum_target parameter.
13998 Also match target.
13999 (thread_from_lwp): Adjust to pass down target.
14000 (thread_db_notice_clone): Pass down target.
14001 (check_thread_db_callback): Pass down target.
14002 (try_thread_db_load_1): Always push the thread_db target.
14003 (try_thread_db_load, record_thread): Pass target down.
14004 (thread_db_target::detach): Pass target down. Always unpush the
14005 thread_db target.
14006 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
14007 target down. Always unpush the thread_db target.
14008 (find_new_threads_callback, thread_db_find_new_threads_2)
14009 (thread_db_target::update_thread_list): Pass target down.
14010 (thread_db_target::pid_to_str): Pass current inferior down.
14011 (thread_db_target::get_thread_local_address): Pass target down.
14012 (thread_db_target::resume, maintenance_check_libthread_db): Pass
14013 target down.
14014 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
14015 * procfs.c (procfs_target::procfs_init_inferior): Declare.
14016 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
14017 (procfs_init_inferior): Rename to ...
14018 (procfs_target::procfs_init_inferior): ... this and adjust.
14019 (procfs_target::create_inferior, procfs_notice_thread)
14020 (procfs_do_thread_registers): Adjust.
14021 * ppc-fbsd-tdep.c: Include "inferior.h".
14022 (ppcfbsd_get_thread_local_address): Pass down target.
14023 * proc-service.c (ps_xfer_memory): Switch current inferior and
14024 program space as well.
14025 (get_ps_regcache): Pass target down.
14026 * process-stratum-target.c
14027 (process_stratum_target::thread_address_space)
14028 (process_stratum_target::thread_architecture): Pass target down.
14029 * process-stratum-target.h
14030 (process_stratum_target::threads_executing): New field.
14031 (as_process_stratum_target): New.
14032 * ravenscar-thread.c
14033 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
14034 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
14035 down.
14036 * record-btrace.c (record_btrace_target::info_record): Adjust.
14037 (record_btrace_target::record_method)
14038 (record_btrace_target::record_is_replaying)
14039 (record_btrace_target::fetch_registers)
14040 (get_thread_current_frame_id, record_btrace_target::resume)
14041 (record_btrace_target::wait, record_btrace_target::stop): Pass
14042 target down.
14043 * record-full.c (record_full_wait_1): Switch to event thread.
14044 Pass target down.
14045 * regcache.c (regcache::regcache)
14046 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
14047 process_stratum_target parameter and handle it.
14048 (current_thread_target): New global.
14049 (get_thread_regcache): Add process_stratum_target parameter and
14050 handle it. Switch inferior before calling target method.
14051 (get_thread_regcache): Pass target down.
14052 (get_thread_regcache_for_ptid): Pass target down.
14053 (registers_changed_ptid): Add process_stratum_target parameter and
14054 handle it.
14055 (registers_changed_thread, registers_changed): Pass target down.
14056 (test_get_thread_arch_aspace_regcache): New.
14057 (current_regcache_test): Define a couple local test_target_ops
14058 instances and use them for testing.
14059 (readwrite_regcache): Pass process_stratum_target parameter.
14060 (cooked_read_test, cooked_write_test): Pass mock_target down.
14061 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
14062 (get_thread_arch_aspace_regcache): Add process_stratum_target
14063 parameter.
14064 (regcache::target): New method.
14065 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
14066 (regcache::registers_changed_ptid): Add process_stratum_target
14067 parameter.
14068 (regcache::m_target): New field.
14069 (registers_changed_ptid): Add process_stratum_target parameter.
14070 * remote.c (remote_state::supports_vCont_probed): New field.
14071 (remote_target::async_wait_fd): New method.
14072 (remote_unpush_and_throw): Add remote_target parameter.
14073 (get_current_remote_target): Adjust.
14074 (remote_target::remote_add_inferior): Push target.
14075 (remote_target::remote_add_thread)
14076 (remote_target::remote_notice_new_inferior)
14077 (get_remote_thread_info): Pass target down.
14078 (remote_target::update_thread_list): Skip threads of inferiors
14079 bound to other targets. (remote_target::close): Don't discard
14080 inferiors. (remote_target::add_current_inferior_and_thread)
14081 (remote_target::process_initial_stop_replies)
14082 (remote_target::start_remote)
14083 (remote_target::remote_serial_quit_handler): Pass down target.
14084 (remote_target::remote_unpush_target): New remote_target
14085 parameter. Unpush the target from all inferiors.
14086 (remote_target::remote_unpush_and_throw): New remote_target
14087 parameter. Pass it down.
14088 (remote_target::open_1): Check whether the current inferior has
14089 execution instead of checking whether any inferior is live. Pass
14090 target down.
14091 (remote_target::remote_detach_1): Pass down target. Use
14092 remote_unpush_target.
14093 (extended_remote_target::attach): Pass down target.
14094 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
14095 (remote_target::append_resumption): Pass down target.
14096 (remote_target::append_pending_thread_resumptions)
14097 (remote_target::remote_resume_with_hc, remote_target::resume)
14098 (remote_target::commit_resume): Pass down target.
14099 (remote_target::remote_stop_ns): Check supports_vCont_probed.
14100 (remote_target::interrupt_query)
14101 (remote_target::remove_new_fork_children)
14102 (remote_target::check_pending_events_prevent_wildcard_vcont)
14103 (remote_target::remote_parse_stop_reply)
14104 (remote_target::process_stop_reply): Pass down target.
14105 (first_remote_resumed_thread): New remote_target parameter. Pass
14106 it down.
14107 (remote_target::wait_as): Pass down target.
14108 (unpush_and_perror): New remote_target parameter. Pass it down.
14109 (remote_target::readchar, remote_target::remote_serial_write)
14110 (remote_target::getpkt_or_notif_sane_1)
14111 (remote_target::kill_new_fork_children, remote_target::kill): Pass
14112 down target.
14113 (remote_target::mourn_inferior): Pass down target. Use
14114 remote_unpush_target.
14115 (remote_target::core_of_thread)
14116 (remote_target::remote_btrace_maybe_reopen): Pass down target.
14117 (remote_target::pid_to_exec_file)
14118 (remote_target::thread_handle_to_thread_info): Pass down target.
14119 (remote_target::async_wait_fd): New.
14120 * riscv-fbsd-tdep.c: Include "inferior.h".
14121 (riscv_fbsd_get_thread_local_address): Pass down target.
14122 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
14123 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
14124 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
14125 Adjust.
14126 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
14127 * solib-svr4.c (enable_break): Pass down target.
14128 * spu-multiarch.c (parse_spufs_run): Pass down target.
14129 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
14130 * target-delegates.c: Regenerate.
14131 * target.c (g_target_stack): Delete.
14132 (current_top_target): Return the current inferior's top target.
14133 (target_has_execution_1): Refer to the passed-in inferior's top
14134 target.
14135 (target_supports_terminal_ours): Check whether the initial
14136 inferior was already created.
14137 (decref_target): New.
14138 (target_stack::push): Incref/decref the target.
14139 (push_target, push_target, unpush_target): Adjust.
14140 (target_stack::unpush): Defref target.
14141 (target_is_pushed): Return bool. Adjust to refer to the current
14142 inferior's target stack.
14143 (dispose_inferior): Delete, and inline parts ...
14144 (target_preopen): ... here. Only dispose of the current inferior.
14145 (target_detach): Hold strong target reference while detaching.
14146 Pass target down.
14147 (target_thread_name): Add assertion.
14148 (target_resume): Pass down target.
14149 (target_ops::beneath, find_target_at): Adjust to refer to the
14150 current inferior's target stack.
14151 (get_dummy_target): New.
14152 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
14153 has a thread running.
14154 (initialize_targets): Rename to ...
14155 (_initialize_target): ... this.
14156 * target.h: Include "gdbsupport/refcounted-object.h".
14157 (struct target_ops): Inherit refcounted_object.
14158 (target_ops::shortname, target_ops::longname): Make const.
14159 (target_ops::async_wait_fd): New method.
14160 (decref_target): Declare.
14161 (struct target_ops_ref_policy): New.
14162 (target_ops_ref): New typedef.
14163 (get_dummy_target): Declare function.
14164 (target_is_pushed): Return bool.
14165 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
14166 (all_matching_threads_iterator::all_matching_threads_iterator):
14167 Handle filter target.
14168 * thread-iter.h (struct all_matching_threads_iterator, struct
14169 all_matching_threads_range, class all_non_exited_threads_range):
14170 Filter by target too. Remove explicit.
14171 * thread.c (threads_executing): Delete.
14172 (inferior_thread): Pass down current inferior.
14173 (clear_thread_inferior_resources): Pass down thread pointer
14174 instead of ptid_t.
14175 (add_thread_silent, add_thread_with_info, add_thread): Add
14176 process_stratum_target parameter. Use it for thread and inferior
14177 searches.
14178 (is_current_thread): New.
14179 (thread_info::deletable): Use it.
14180 (find_thread_ptid, thread_count, in_thread_list)
14181 (thread_change_ptid, set_resumed, set_running): New
14182 process_stratum_target parameter. Pass it down.
14183 (set_executing): New process_stratum_target parameter. Pass it
14184 down. Adjust reference to 'threads_executing'.
14185 (threads_are_executing): New process_stratum_target parameter.
14186 Adjust reference to 'threads_executing'.
14187 (set_stop_requested, finish_thread_state): New
14188 process_stratum_target parameter. Pass it down.
14189 (switch_to_thread): Also match inferior.
14190 (switch_to_thread): New process_stratum_target parameter. Pass it
14191 down.
14192 (update_threads_executing): Reimplement.
14193 * top.c (quit_force): Pop targets from all inferior.
14194 (gdb_init): Don't call initialize_targets.
14195 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
14196 Declare.
14197 (windows_add_thread, windows_delete_thread): Adjust.
14198 (get_windows_debug_event): Rename to ...
14199 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
14200 * tracefile-tfile.c (tfile_target_open): Pass down target.
14201 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
14202 Forward declare.
14203 (switch_to_thread): Add process_stratum_target parameter.
14204 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
14205 parameter. Use it.
14206 (mi_on_resume): Pass target down.
14207 * nat/fork-inferior.c (startup_inferior): Add
14208 process_stratum_target parameter. Pass it down.
14209 * nat/fork-inferior.h (startup_inferior): Add
14210 process_stratum_target parameter.
14211 * python/py-threadevent.c (py_get_event_thread): Pass target down.
14212
14213 2020-01-10 Pedro Alves <palves@redhat.com>
14214
14215 * remote.c (remote_target::start_remote): Don't set inferior_ptid
14216 directly. Instead find the first thread in the thread list and
14217 use switch_to_thread.
14218
14219 2020-01-10 Pedro Alves <palves@redhat.com>
14220
14221 * remote.c (remote_target::remote_add_inferior): Don't bind a
14222 process to the current inferior if the current inferior is already
14223 bound to a process.
14224
14225 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14226 Pedro Alves <palves@redhat.com>
14227
14228 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
14229 If no process is specified, return null_ptid instead of
14230 inferior_ptid.
14231 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
14232 TARGET_WAITKIND_SIGNALLED with no pid.
14233
14234 2020-01-10 Pedro Alves <palves@redhat.com>
14235
14236 * remote.c (first_remote_resumed_thread): New.
14237 (remote_target::wait_as): Use it as default event_ptid instead of
14238 inferior_ptid.
14239
14240 2020-01-10 Pedro Alves <palves@redhat.com>
14241
14242 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
14243
14244 2020-01-10 Pedro Alves <palves@redhat.com>
14245
14246 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
14247 not -1.
14248
14249 2020-01-10 Pedro Alves <palves@redhat.com>
14250
14251 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
14252 ptid to get_last_target_status.
14253 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
14254 ptid to get_last_target_status.
14255 * infcmd.c (continue_command): Don't pass a target_waitstatus to
14256 get_last_target_status.
14257 (info_program_command): Don't pass a target_waitstatus to
14258 get_last_target_status.
14259 * infrun.c (init_wait_for_inferior): Use
14260 nullify_last_target_wait_ptid.
14261 (get_last_target_status): Handle nullptr arguments.
14262 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
14263 (print_stop_event): Don't pass a ptid to get_last_target_status.
14264 (normal_stop): Don't pass a ptid to get_last_target_status.
14265 * infrun.h (get_last_target_status, set_last_target_status): Move
14266 comments here and update.
14267 (nullify_last_target_wait_ptid): Declare.
14268 * linux-fork.c (fork_load_infrun_state): Remove local extern
14269 declaration of nullify_last_target_wait_ptid.
14270 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
14271 to get_last_target_status.
14272
14273 2020-01-10 Pedro Alves <palves@redhat.com>
14274
14275 * gdbthread.h (scoped_restore_current_thread)
14276 <dont_restore, restore, m_dont_restore>: Declare.
14277 * thread.c (thread_alive): Add assertion. Return bool.
14278 (switch_to_thread_if_alive): New.
14279 (prune_threads): Switch inferior/thread.
14280 (print_thread_info_1): Switch thread before calling target methods.
14281 (scoped_restore_current_thread::restore): New, factored out from
14282 ...
14283 (scoped_restore_current_thread::~scoped_restore_current_thread):
14284 ... this.
14285 (scoped_restore_current_thread::scoped_restore_current_thread):
14286 Add assertion.
14287 (thread_apply_all_command, thread_select): Use
14288 switch_to_thread_if_alive.
14289 * infrun.c (proceed, restart_threads, handle_signal_stop)
14290 (switch_back_to_stepped_thread): Switch current thread before
14291 calling target methods.
14292
14293 2020-01-10 Pedro Alves <palves@redhat.com>
14294
14295 * inferior.c (switch_to_inferior_no_thread): New function,
14296 factored out from ...
14297 (inferior_command): ... here.
14298 * inferior.h (switch_to_inferior_no_thread): Declare.
14299 * mi/mi-main.c (run_one_inferior): Use
14300 switch_to_inferior_no_thread.
14301
14302 2020-01-10 Pedro Alves <palves@redhat.com>
14303
14304 * infcmd.c (kill_command): Remove dead code.
14305
14306 2020-01-10 Pedro Alves <palves@redhat.com>
14307
14308 * remote.c (remote_target::mourn_inferior): No longer check
14309 whether the target is running.
14310
14311 2020-01-10 Pedro Alves <palves@redhat.com>
14312
14313 * corelow.c (core_target::has_execution): Change parameter type to
14314 inferior pointer.
14315 * inferior.c (number_of_live_inferiors): Use
14316 inferior::has_execution instead of target_has_execution_1.
14317 * inferior.h (inferior::has_execution): New.
14318 * linux-thread-db.c (thread_db_target::update_thread_list): Use
14319 inferior::has_execution instead of target_has_execution_1.
14320 * process-stratum-target.c
14321 (process_stratum_target::has_execution): Change parameter type to
14322 inferior pointer. Check the inferior's PID instead of
14323 inferior_ptid.
14324 * process-stratum-target.h
14325 (process_stratum_target::has_execution): Change parameter type to
14326 inferior pointer.
14327 * record-full.c (record_full_core_target::has_execution): Change
14328 parameter type to inferior pointer.
14329 * target.c (target_has_execution_1): Change parameter type to
14330 inferior pointer.
14331 (target_has_execution_current): Adjust.
14332 * target.h (target_ops::has_execution): Change parameter type to
14333 inferior pointer.
14334 (target_has_execution_1): Change parameter type to inferior
14335 pointer. Change return type to bool.
14336 * tracefile.h (tracefile_target::has_execution): Change parameter
14337 type to inferior pointer.
14338
14339 2020-01-10 Pedro Alves <palves@redhat.com>
14340
14341 * exceptions.c (print_flush): Remove current_top_target() check.
14342
14343 2020-01-10 Pedro Alves <palves@redhat.com>
14344
14345 * remote.c (show_remote_exec_file): Show the current inferior's
14346 exec-file instead of the command variable's value.
14347
14348 2020-01-10 Pedro Alves <palves@redhat.com>
14349
14350 * record-full.c (record_full_resume_ptid): New global.
14351 (record_full_target::resume): Set it.
14352 (record_full_wait_1): Use record_full_resume_ptid instead of
14353 inferior_ptid.
14354
14355 2020-01-10 Pedro Alves <palves@redhat.com>
14356
14357 * gdbthread.h (scoped_restore_current_thread)
14358 <dont_restore, restore, m_dont_restore>: Declare.
14359 * thread.c (thread_alive): Add assertion. Return bool.
14360 (switch_to_thread_if_alive): New.
14361 (prune_threads): Switch inferior/thread.
14362 (print_thread_info_1): Switch thread before calling target methods.
14363 (scoped_restore_current_thread::restore): New, factored out from
14364 ...
14365 (scoped_restore_current_thread::~scoped_restore_current_thread):
14366 ... this.
14367 (scoped_restore_current_thread::scoped_restore_current_thread):
14368 Add assertion.
14369 (thread_apply_all_command, thread_select): Use
14370 switch_to_thread_if_alive.
14371
14372 2020-01-10 George Barrett <bob@bob131.so>
14373
14374 * stap-probe.c (stap_modify_semaphore): Don't check for null
14375 semaphores.
14376 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
14377 for null semaphores.
14378
14379 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
14380
14381 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
14382 all source windows, and maintain horizontal scroll status while
14383 doing so.
14384
14385 2020-01-09 Tom Tromey <tom@tromey.com>
14386
14387 PR tui/18932:
14388 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
14389 update_source_window, not print_source_lines.
14390
14391 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
14392
14393 * tui/tui.c (tui_enable): Register tui hooks after calling
14394 tui_display_main.
14395
14396 2020-01-09 Christian Biesinger <cbiesinger@google.com>
14397
14398 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
14399
14400 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
14401
14402 * thread.c (print_thread_info_1): Fix indentation.
14403
14404 2020-01-09 Christian Biesinger <cbiesinger@google.com>
14405
14406 * symtab.c (general_symbol_info::compute_and_set_names): Move the
14407 unique_xmalloc_ptr outside the if to always free the demangled name.
14408
14409 2020-01-08 Tom Tromey <tromey@adacore.com>
14410
14411 * xcoffread.c (enter_line_range, read_xcoff_symtab)
14412 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
14413 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
14414 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
14415 Remove.
14416 (section_offsets): New typedef.
14417 * symtab.c (fixup_section, get_msymbol_address): Update.
14418 * symmisc.c (dump_msymbols): Update.
14419 * symfile.h (relative_addr_info_to_section_offsets)
14420 (symfile_map_offsets_to_segments): Update.
14421 * symfile.c (build_section_addr_info_from_objfile)
14422 (init_objfile_sect_indices): Update.
14423 (struct place_section_arg): Change type of "offsets".
14424 (place_section): Update.
14425 (relative_addr_info_to_section_offsets): Change type of
14426 "section_offsets". Remove "num_sections" parameter.
14427 (default_symfile_offsets, syms_from_objfile_1)
14428 (set_objfile_default_section_offset): Update.
14429 (reread_symbols): No need to preserve section offsets by hand.
14430 (symfile_map_offsets_to_segments): Change type of "offsets".
14431 * stap-probe.c (relocate_address): Update.
14432 * stabsread.h (process_one_symbol): Update.
14433 * solib-target.c (struct lm_info_target) <offsets>: Change type.
14434 (solib_target_relocate_section_addresses): Update.
14435 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
14436 Update.
14437 * solib-frv.c (frv_relocate_main_executable): Update.
14438 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
14439 * solib-aix.c (solib_aix_get_section_offsets): Change return
14440 type.
14441 (solib_aix_solib_create_inferior_hook): Update.
14442 * remote.c (remote_target::get_offsets): Update.
14443 * psymtab.c (find_pc_sect_psymtab): Update.
14444 * psympriv.h (struct partial_symbol) <address, text_low,
14445 text_high>: Update.
14446 * objfiles.h (obj_section_offset): Update.
14447 (struct objfile) <section_offsets>: Change type.
14448 <num_sections>: Remove.
14449 (objfile_relocate): Update.
14450 * objfiles.c (entry_point_address_query): Update
14451 (relocate_one_symbol): Change type of "section_offsets".
14452 (objfile_relocate1, objfile_relocate1): Change type of
14453 "new_offsets".
14454 (objfile_rebase1): Update.
14455 * mipsread.c (mipscoff_symfile_read): Update.
14456 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
14457 parameter.
14458 * mdebugread.c (parse_symbol): Change type of "section_offsets".
14459 (parse_external, psymtab_to_symtab_1): Update.
14460 * machoread.c (macho_symfile_offsets): Update.
14461 * ia64-tdep.c (ia64_find_unwind_table): Update.
14462 * hppa-tdep.c (read_unwind_info): Update.
14463 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
14464 * dwarf2read.c (create_addrmap_from_index)
14465 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
14466 (process_psymtab_comp_unit_reader, add_partial_symbol)
14467 (add_partial_subprogram, process_full_comp_unit)
14468 (read_file_scope, read_func_scope, read_lexical_block_scope)
14469 (read_call_site_scope, dwarf2_rnglists_process)
14470 (dwarf2_ranges_process, dwarf2_ranges_read)
14471 (dwarf_decode_lines_1, var_decode_location, new_symbol)
14472 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
14473 Update.
14474 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
14475 Update.
14476 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
14477 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
14478 (process_one_symbol): Change type of "section_offsets".
14479 * ctfread.c (get_objfile_text_range): Update.
14480 * coffread.c (coff_symtab_read, enter_linenos)
14481 (process_coff_symbol): Update.
14482 * coff-pe-read.c (add_pe_forwarded_sym): Update.
14483 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
14484
14485 2020-01-08 Tom Tromey <tromey@adacore.com>
14486
14487 * dwarf2read.c (parse_macro_definition): Use std::string.
14488 (parse_macro_definition): Likewise.
14489
14490 2020-01-08 Tom Tromey <tromey@adacore.com>
14491
14492 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
14493 (ATTR_ALLOC_CHUNK): Remove.
14494
14495 2020-01-08 Tom Tromey <tromey@adacore.com>
14496
14497 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
14498
14499 2020-01-08 Tom Tromey <tromey@adacore.com>
14500
14501 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
14502 (dwarf2_compute_name, open_dwo_file): Likewise.
14503 (process_enumeration_scope): Use std::vector.
14504 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
14505 (partial_die_info::fixup, dwarf2_start_subfile)
14506 (guess_full_die_structure_name, dwarf2_name): Likewise.
14507 (determine_prefix): Update.
14508 (guess_full_die_structure_name): Make return type const.
14509 (partial_die_full_name): Return unique_xmalloc_ptr.
14510 (DW_FIELD_ALLOC_CHUNK): Remove.
14511
14512 2020-01-07 Tom Tromey <tromey@adacore.com>
14513
14514 PR build/24937:
14515 * stap-probe.c (class stap_static_probe_ops): Add constructor.
14516
14517 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
14518
14519 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
14520
14521 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
14522
14523 * stack.c (print_frame_info): Move disassemble_next_line code
14524 inside source_print block.
14525
14526 2020-01-06 Eli Zaretskii <eliz@gnu.org>
14527
14528 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
14529 gdb/signals.h, as we are now using native signal symbols.
14530
14531 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
14532
14533 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
14534 overflow by an early check of content vs threshold.
14535 * tui/tui-source.c (tui_source_window::line_is_displayed):
14536 Likewise.
14537
14538 2020-01-06 Eli Zaretskii <eliz@gnu.org>
14539
14540 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
14541
14542 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
14543
14544 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
14545 export table if no section contains it's RVA.
14546
14547 2020-01-06 Eli Zaretskii <eliz@gnu.org>
14548
14549 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
14550
14551 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
14552
14553 * source.c (print_source_lines_base): Set last_line_listed.
14554
14555 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
14556
14557 * tui/tui-disasm.c: Remove trailing spaces.
14558
14559 2020-01-06 Eli Zaretskii <eliz@gnu.org>
14560 Pedro Alves <palves@redhat.com>
14561
14562 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
14563 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
14564 (windows_gdb_signal_to_target): New function, uses the above
14565 enumeration to convert GDB internal signal codes to equivalent
14566 Windows codes.
14567 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
14568 * windows-nat.c: Include "gdb_wait.h".
14569 (get_windows_debug_event): Extract the fatal exception from the
14570 exit status and convert to the equivalent Posix signal number.
14571 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
14572 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
14573 * gdbsupport/gdb_wait.c: New file, implements
14574 windows_status_to_termsig.
14575 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
14576 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
14577
14578 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
14579
14580 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
14581 show_layout.
14582
14583 2020-01-05 Luis Machado <luis.machado@linaro.org>
14584
14585 * aarch64-linux-nat.c
14586 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
14587 and bfd_mach_aarch64.
14588
14589 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14590
14591 * ui-file.c (stdio_file::can_emit_style_escape)
14592 (tee_file::can_emit_style_escape): Ensure style is used also on
14593 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
14594 to gdb_stdout.
14595 * main.c (set_gdb_data_directory): Use file style to output the
14596 warning that the given pathname is not a directory.
14597 * top.c (show_history_filename, gdb_safe_append_history)
14598 (show_gdb_datadir): Use file style.
14599
14600 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
14601
14602 * solib-target.c (struct lm_info_target):
14603 Change offsets to be a unique_xmalloc_ptr.
14604 (solib_target_relocate_section_addresses): Update.
14605
14606 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
14607
14608 * windows-nat.c (windows_clear_solib): Free so_list linked list.
14609
14610 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
14611
14612 * MAINTAINERS (Write After Approval): Add myself.
14613
14614 2020-01-02 Luis Machado <luis.machado@linaro.org>
14615
14616 * proc-service.c (get_ps_regcache): Remove reference to obsolete
14617 Cell BE architecture.
14618 * target.h (struct target_ops) <thread_architecture>: Likewise.
14619
14620 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
14621
14622 * Makefile.in: Use INSTALL_PROGRAM_ENV.
14623
14624 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
14625
14626 * MAINTAINERS (Write After Approval): Add myself.
14627
14628 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14629
14630 * gdbarch.sh: Update copyright year range of generated files.
14631
14632 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14633
14634 Update copyright year range in all GDB files.
14635
14636 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14637
14638 * copyright.py: Convert to Python 3.
14639
14640 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14641
14642 * copyright.py: Adapt after move of gnulib directory from gdb
14643 directory to toplevel directory.
14644
14645 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14646
14647 * copyright.py (main): Exit if run from the wrong directory.
14648
14649 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14650
14651 * top.c (print_gdb_version): Change copyright year to 2020.
14652
14653 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14654
14655 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
14656
14657 For older changes see ChangeLog-2019.
14658 \f
14659 Local Variables:
14660 mode: change-log
14661 left-margin: 8
14662 fill-column: 74
14663 version-control: never
14664 coding: utf-8
14665 End:
This page took 0.377541 seconds and 4 git commands to generate.