Change how reprocessing is done
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2020-09-29 Tom Tromey <tom@tromey.com>
2
3 * dwarf2/read.c (skip_one_die): Update.
4 (read_full_die_1): Change how reprocessing is done.
5 (partial_die_info::read): Update.
6 (read_attribute_value): Remove need_reprocess parameter.
7 (read_attribute): Likewise.
8 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
9 New method.
10
11 2020-09-29 Tom Tromey <tom@tromey.com>
12
13 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
14 (dwarf2_const_value_attr, dump_die_shallow)
15 (dwarf2_fetch_constant_bytes): Update.
16 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
17 comment.
18 <set_address>: New method.
19 (DW_ADDR): Remove.
20 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
21 (attribute::as_string, attribute::as_address): Add assert.
22
23 2020-09-29 Tom Tromey <tom@tromey.com>
24
25 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
26 (read_attribute_reprocess, read_attribute_value): Update.
27 (read_attribute): Clear requires_reprocessing.
28 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
29 form_requires_reprocessing>: New methods.
30 <string_init>: Clear requires_reprocessing.
31 <set_unsigned_reprocess>: New method.
32 <name>: Shrink by one bit.
33 <requires_reprocessing>: New member.
34 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
35 method.
36
37 2020-09-29 Tom Tromey <tom@tromey.com>
38
39 * dwarf2/read.c (read_attribute_value): Update.
40 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
41 set_unsigned>: New methods.
42 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
43
44 2020-09-29 Tom Tromey <tom@tromey.com>
45
46 * dwarf2/read.c (get_alignment, read_array_order)
47 (read_attribute_value, dwarf2_const_value_attr)
48 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
49 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
50 New methods.
51 (DW_SND): Remove.
52
53 2020-09-29 Tom Tromey <tom@tromey.com>
54
55 * dwarf2/read.c (read_attribute_value, lookup_die_type)
56 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
57 Update.
58 * dwarf2/attribute.h (struct attribute) <as_signature,
59 set_signature>: New methods.
60 (DW_SIGNATURE): Remove.
61
62 2020-09-29 Tom Tromey <tom@tromey.com>
63
64 * dwarf2/read.c (read_call_site_scope)
65 (handle_data_member_location, dwarf2_add_member_fn)
66 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
67 (partial_die_info::read, read_attribute_value)
68 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
69 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
70 (dwarf2_symbol_mark_computed): Update.
71 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
72 methods.
73 (DW_BLOCK): Remove.
74 * dwarf2/attribute.c (attribute::form_is_block): Add
75 DW_FORM_data16.
76
77 2020-09-29 Tom Tromey <tom@tromey.com>
78
79 * dwarf2/read.c (read_cutu_die_from_dwo)
80 (read_attribute_reprocess, read_attribute_value, read_attribute)
81 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
82 (dwarf2_fetch_constant_bytes): Update.
83 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
84 <set_string_noncanonical, set_string_canonical>: New methods.
85 <string_is_canonical>: Update comment.
86 <canonical_string_p>: Add assert.
87 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
88 * dwarf2/attribute.c (attribute::form_is_string): New method.
89 (attribute::string): Use it.
90
91 2020-09-29 Tom Tromey <tom@tromey.com>
92
93 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
94 (dump_die_shallow): Use canonical_string_p.
95 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
96 method.
97
98 2020-09-29 Tom Tromey <tom@tromey.com>
99
100 * dwarf2/read.c (partial_die_info::read)
101 (dwarf2_const_value_attr, anonymous_struct_prefix, )
102 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
103 attribute::as_string.
104
105 2020-09-29 Tom Tromey <tom@tromey.com>
106
107 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
108 DW_ADDR.
109 (attribute::string): Don't use DW_STRING.
110 (attribute::get_ref_die_offset): Don't use DW_UNSND.
111 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
112
113 2020-09-29 Tom Tromey <tom@tromey.com>
114
115 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
116 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
117 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
118 * dwarf2/attribute.h (struct attribute): Rename methods.
119 * dwarf2/attribute.c (attribute::as_address): Rename from
120 value_as_address.
121 (attribute::as_string): Rename from value_as_string.
122
123 2020-09-29 Tom Tromey <tom@tromey.com>
124
125 * dwarf2/read.c (partial_die_info::read) <case
126 DW_AT_linkage_name>: Use value_as_string.
127 (dwarf2_string_attr): Use value_as_string.
128 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
129 method.
130 * dwarf2/attribute.c (attribute::value_as_string): New method.
131
132 2020-09-29 Pedro Alves <pedro@palves.net>
133
134 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
135 defined before using '#pragma GCC diagnostic' instead of checking
136 __clang__.
137
138 2020-09-28 Tom Tromey <tom@tromey.com>
139
140 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
141 (handle_signal_stop): Update.
142 * procfs.c (procfs_target::insert_watchpoint): Update.
143 * target.h (target_have_steppable_watchpoint): Now a function.
144
145 2020-09-28 Tom Tromey <tom@tromey.com>
146
147 * infrun.c (set_schedlock_func): Update.
148 * target.h (target_can_lock_scheduler): Now a function.
149
150 2020-09-28 Tom Tromey <tom@tromey.com>
151
152 * inferior.h (class inferior) <has_execution>: Update.
153 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
154 * valops.c (find_function_in_inferior)
155 (value_allocate_space_in_inferior): Update.
156 * top.c (kill_or_detach): Update.
157 * target.c (target_preopen, set_target_permissions): Update.
158 (target_has_execution_current): Remove.
159 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
160 Update.
161 * solib.c (update_solib_list, reload_shared_libraries): Update.
162 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
163 * solib-dsbt.c (enable_break): Update.
164 * score-tdep.c (score7_fetch_inst): Update.
165 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
166 Update.
167 * remote.c (remote_target::start_remote)
168 (remote_target::remote_check_symbols, remote_target::open_1)
169 (remote_target::remote_detach_1, remote_target::verify_memory)
170 (remote_target::xfer_partial, remote_target::read_description)
171 (remote_target::get_min_fast_tracepoint_insn_len): Update.
172 * record-full.c (record_full_open_1): Update.
173 * record-btrace.c (record_btrace_target_open): Update.
174 * objc-lang.c (lookup_objc_class, lookup_child_selector)
175 (value_nsstring): Update.
176 * linux-thread-db.c (add_thread_db_info)
177 (thread_db_find_new_threads_silently, check_thread_db_callback)
178 (try_thread_db_load_1, record_thread): Update.
179 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
180 Update.
181 * linux-fork.c (checkpoint_command): Update.
182 * infrun.c (set_non_stop, set_observer_mode)
183 (check_multi_target_resumption, for_each_just_stopped_thread)
184 (maybe_remove_breakpoints, normal_stop)
185 (class infcall_suspend_state): Update.
186 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
187 (info_program_command, attach_command): Update.
188 * infcall.c (call_function_by_hand_dummy): Update.
189 * inf-loop.c (inferior_event_handler): Update.
190 * gcore.c (gcore_command, derive_heap_segment): Update.
191 * exec.c (exec_file_command): Update.
192 * eval.c (evaluate_subexp): Update.
193 * compile/compile.c (compile_to_object): Update.
194 * cli/cli-dump.c (restore_command): Update.
195 * breakpoint.c (update_watchpoint)
196 (update_inserted_breakpoint_locations)
197 (insert_breakpoint_locations, get_bpstat_thread): Update.
198 * target.h (target_has_execution): Remove macro.
199 (target_has_execution_current): Don't declare.
200 (target_has_execution): Rename from target_has_execution_1. Add
201 argument default.
202
203 2020-09-28 Tom Tromey <tom@tromey.com>
204
205 * mi/mi-main.c (exec_reverse_continue)
206 (mi_cmd_list_target_features): Update.
207 * infrun.c (set_exec_direction_func): Update.
208 * target.c (default_execution_direction): Update.
209 * reverse.c (exec_reverse_once): Update.
210 * target.h (target_can_execute_reverse): Now a function.
211
212 2020-09-28 Tom Tromey <tom@tromey.com>
213
214 * tui/tui-regs.c (tui_get_register)
215 (tui_data_window::show_registers): Update.
216 * thread.c (scoped_restore_current_thread::restore)
217 (scoped_restore_current_thread::scoped_restore_current_thread):
218 Update.
219 * regcache-dump.c (regcache_print): Update.
220 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
221 Update.
222 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
223 * mep-tdep.c (current_me_module, current_options): Update.
224 * linux-thread-db.c (thread_db_load): Update.
225 * infcmd.c (registers_info, info_vector_command)
226 (info_float_command): Update.
227 * ia64-tdep.c (ia64_frame_prev_register)
228 (ia64_sigtramp_frame_prev_register): Update.
229 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
230 * gcore.c (derive_stack_segment): Update.
231 * frame.c (get_current_frame, has_stack_frames): Update.
232 * findvar.c (language_defn::read_var_value): Update.
233 * arm-tdep.c (arm_pc_is_thumb): Update.
234 * target.c (target_has_registers): Rename from
235 target_has_registers_1.
236 * target.h (target_has_registers): Remove macro.
237 (target_has_registers): Rename from target_has_registers_1.
238
239 2020-09-28 Tom Tromey <tom@tromey.com>
240
241 * windows-tdep.c (tlb_make_value): Update.
242 * tui/tui-regs.c (tui_data_window::show_registers): Update.
243 * thread.c (scoped_restore_current_thread::restore)
244 (scoped_restore_current_thread::scoped_restore_current_thread)
245 (thread_command): Update.
246 * stack.c (backtrace_command_1, frame_apply_level_command)
247 (frame_apply_all_command, frame_apply_command): Update.
248 * infrun.c (siginfo_make_value, restore_infcall_control_state):
249 Update.
250 * gcore.c (derive_stack_segment): Update.
251 * frame.c (get_current_frame, has_stack_frames): Update.
252 * auxv.c (info_auxv_command): Update.
253 * ada-tasks.c (ada_build_task_list): Update.
254 * target.c (target_has_stack): Rename from target_has_stack_1.
255 * target.h (target_has_stack): Remove macro.
256 (target_has_stack): Rename from target_has_stack_1.
257
258 2020-09-28 Tom Tromey <tom@tromey.com>
259
260 * target.c (target_has_memory): Rename from target_has_memory_1.
261 * tui/tui-regs.c (tui_data_window::show_registers): Update.
262 * thread.c (scoped_restore_current_thread::restore)
263 (scoped_restore_current_thread::scoped_restore_current_thread):
264 Update.
265 * frame.c (get_current_frame, has_stack_frames): Update.
266 * target.h (target_has_memory): Remove macro.
267 (target_has_memory): Rename from target_has_memory_1.
268
269 2020-09-28 Tom Tromey <tom@tromey.com>
270
271 * target.c (target_has_all_memory_1): Remove.
272 * target.h (target_has_all_memory): Remove define.
273 (target_has_all_memory_1): Don't declare.
274
275 2020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
276
277 * ser-base.c: Adjust comments formatting.
278
279 2020-09-27 Tom Tromey <tom@tromey.com>
280
281 PR tui/25342:
282 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
283
284 2020-09-27 Tom Tromey <tom@tromey.com>
285
286 PR tui/25342:
287 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
288
289 2020-09-27 Tom Tromey <tom@tromey.com>
290
291 * unittests/tui-selftests.c: Update.
292 * tui/tui-winsource.h (struct tui_source_window_base)
293 <extra_margin, show_line_number, refresh_pad>: New methods.
294 <m_max_length, m_pad>: New members.
295 (tui_copy_source_line): Update.
296 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
297 first_col, line_width, ndigits parameters. Add length.
298 (tui_source_window_base::show_source_line): Write to pad. Line
299 number now 0-based.
300 (tui_source_window_base::refresh_pad): New method.
301 (tui_source_window_base::show_source_content): Write to pad. Call
302 refresh_pad.
303 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
304 not refill.
305 (tui_source_window_base::update_exec_info): Call
306 show_line_number.
307 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
308 method.
309 <m_digits>: New member.
310 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
311 and m_max_length.
312 (tui_source_window::show_line_number): New method.
313 * tui/tui-io.h (tui_puts): Fix comment.
314 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
315 m_max_length.
316
317 2020-09-27 Tom Tromey <tom@tromey.com>
318
319 * tui/tui-winsource.c
320 (tui_source_window_base::set_is_exec_point_at): Don't call
321 show_source_line.
322
323 2020-09-27 Tom Tromey <tom@tromey.com>
324
325 * python/py-tui.c (class tui_py_window) <refresh_window>: New
326 method.
327 <erase>: Update.
328 <cursor_x, cursor_y>: Remove.
329 <m_inner_window>: New member.
330 (tui_py_window::rerender): Create inner window.
331 (tui_py_window::output): Write to inner window.
332
333 2020-09-26 Gareth Rees <grees@undo.io> (tiny change)
334
335 PR python/26586
336 * cli/cli-script.c (execute_control_commands): don't set
337 instream to nullptr here as this breaks the from_tty argument
338 to gdb.execute in Python.
339 (execute_user_command): set instream to nullptr here instead.
340
341 2020-09-25 Simon Marchi <simon.marchi@efficios.com>
342
343 * infrun.h (infrun_debug_printf): Fix formatting.
344 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
345
346 2020-09-25 Saagar Jha <saagar@saagarjha.com>
347
348 * compile/compile-object-load.h (struct munmap_list): Add
349 explicitly-defined move constructor.
350
351 2020-09-24 Tom Tromey <tromey@adacore.com>
352
353 PR tui/26638:
354 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
355 method.
356 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
357 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
358 (tui_prev_win): Rewrite.
359
360 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
361
362 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
363 in WOW64 processes as SIGINT.
364 * nat/windows-nat.h: Make wow64_process a shared variable.
365 * windows-nat.c: Remove static wow64_process variable.
366
367 2020-09-23 Tom Tromey <tom@tromey.com>
368
369 PR symtab/25470:
370 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
371 offset and bit size.
372 * printcmd.c (print_scalar_formatted): Handle zero-length
373 integer.
374 (print_scalar_formatted): Use bit_size_differs_p.
375 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
376 constant.
377 (union type_specific): <int_stuff>: New member.
378 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
379 methods.
380 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
381 TYPE_SPECIFIC_FIELD.
382 (recursive_dump_type, copy_type_recursive): Update.
383 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
384 DW_AT_data_bit_offset.
385
386 2020-09-23 Tom Tromey <tom@tromey.com>
387
388 * utils.h (class gdb_argv): Add move operators.
389 <append>: New methods.
390 * compile/compile.c (build_argc_argv): Remove.
391 (compile_args_argc): Remove.
392 (compile_args_argv): Change type.
393 (set_compile_args): Simplify.
394 (append_args): Remove.
395 (filter_args): Remove argcp parameter.
396 (get_args): Return gdb_argv. Simplify.
397 (compile_to_object): Update.
398
399 2020-09-23 Tom Tromey <tom@tromey.com>
400
401 * compile/compile-object-run.c (do_module_cleanup)
402 <~do_module_cleanup> :Remove.
403 (do_module_cleanup): Update.
404 * compile/compile-object-load.h (struct munmap_list): Add move
405 assignment operator.
406 <source_file>: Now a std::string.
407 <munmap_list>: Rename. No longer a pointer.
408 * compile/compile-object-load.c (struct setup_sections_data): Add
409 constructor.
410 <setup_one_section>: Declare.
411 <munmap_list>: Move earlier.
412 <m_bfd>: New member.
413 <m_last_size, m_last_section_first, m_last_prot,
414 m_last_max_alignment>: Rename, add initializers where needed.
415 (setup_sections_data::setup_one_section): Rename from
416 setup_sections. Update.
417 (compile_object_load): Update. Don't use bfd_map_over_sections.
418
419 2020-09-23 Tom Tromey <tom@tromey.com>
420
421 * compile/compile-object-run.c (struct do_module_cleanup): Add
422 parameters to constructor. Update destructor.
423 <source_file, scope, scope_data, out_value_type, out_value_addr,
424 munmap_list_head, objfile_name_string>: Remove.
425 <module>: New member.
426 (do_module_cleanup): Update.
427 (compile_object_run): Update.
428
429 2020-09-23 Tom Tromey <tom@tromey.com>
430
431 * compile/compile.c (eval_compile_command): Update.
432 * compile/compile-object-run.h (compile_object_run): Take a
433 compile_module_up.
434 * compile/compile-object-run.c (compile_object_run): Take a
435 compile_module_up.
436 * compile/compile-object-load.h (struct compile_module): Add
437 constructor, destructor.
438 (compile_module_up): New typedef.
439 (compile_object_load): Return compile_object_up.
440 * compile/compile-object-load.c (compile_object_load): Return
441 compile_module_up.
442
443 2020-09-23 Tom Tromey <tom@tromey.com>
444
445 * compile/compile-object-run.c (struct do_module_cleanup): Add
446 constructor, destructor.
447 <objfile_name_string>: Don't use struct hack.
448 (do_module_cleanup): Use delete.
449 (compile_object_run): Use new.
450
451 2020-09-23 Tom Tromey <tom@tromey.com>
452
453 * compile/compile-cplus-types.c
454 (compile_cplus_convert_struct_or_union): Use std::vector.
455 (compile_cplus_convert_func): Likewise.
456 * compile/compile-c-types.c (convert_func): Use std::vector.
457
458 2020-09-21 Tom Tromey <tromey@adacore.com>
459
460 * sparc-tdep.c (sparc32_skip_prologue): Use
461 skip_prologue_using_sal.
462
463 2020-09-19 Tom Tromey <tom@tromey.com>
464
465 * symfile.c (add_section_size_callback): Remove.
466 (load_one_section): Rename from load_section_callback. Change
467 parameters.
468 (generic_load): Use foreach.
469
470 2020-09-19 Tom Tromey <tom@tromey.com>
471
472 * exec.c (add_to_section_table): Remove.
473 (build_section_table): Use foreach.
474
475 2020-09-19 Tom Tromey <tom@tromey.com>
476
477 * elfread.c (elf_locate_sections): Change parameters.
478 (elf_symfile_read): Use foreach.
479
480 2020-09-19 Tom Tromey <tom@tromey.com>
481
482 * cli/cli-dump.c (struct callback_data): Remove.
483 (restore_one_section): Rename from restore_section_callback.
484 Change parameters.
485 (restore_binary_file): Change parameters.
486 (restore_command): Use foreach.
487
488 2020-09-19 Tom Tromey <tom@tromey.com>
489
490 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
491 (gcore_copy_callback): Likewise.
492 (gcore_memory_sections): Use foreach.
493
494 2020-09-19 Tom Tromey <tom@tromey.com>
495
496 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
497 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
498 parameters.
499 (generic_elf_osabi_sniffer): Use foreach.
500 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
501 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
502
503 2020-09-19 Tom Tromey <tom@tromey.com>
504
505 * dwarf2/read.c (locate_dwz_sections): Change parameters.
506 (dwarf2_get_dwz_file): Use foreach.
507 (dwarf2_locate_dwo_sections): Change parameters.
508 (open_and_init_dwo_file): Use foreach.
509 (dwarf2_locate_common_dwp_sections): Change parameters.
510 (open_and_init_dwp_file): Use foreach.
511
512 2020-09-19 Tom Tromey <tom@tromey.com>
513
514 * symfile.h: (find_lowest_section): Don't declare.
515 * symfile.c (find_lowest_section): Now static. Change
516 parameters.
517 (struct place_section_arg): Remove.
518 (place_section): Change parameters.
519 (addr_info_make_relative): Use foreach.
520 (symfile_dummy_outputs): Remove.
521 (default_symfile_relocate): Use foreach.
522
523 2020-09-19 Tom Tromey <tom@tromey.com>
524
525 * objfiles.c (add_to_objfile_sections): Rename from
526 add_to_objfile_sections_full.
527 (add_to_objfile_sections): Remove.
528 (build_objfile_section_table): Use foreach.
529
530 2020-09-19 Tom Tromey <tom@tromey.com>
531
532 * stap-probe.c (get_stap_base_address_1): Remove.
533 (get_stap_base_address): Use foreach.
534
535 2020-09-19 Tom Tromey <tom@tromey.com>
536
537 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
538 parameters.
539 (gdb_bfd_close_or_warn): Use foreach.
540
541 2020-09-19 Tom Tromey <tom@tromey.com>
542
543 * corelow.c (add_to_thread_list): Change parameters.
544 (core_target_open): Use foreach.
545
546 2020-09-19 Tom Tromey <tom@tromey.com>
547
548 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
549 existing function.
550
551 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
552
553 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
554 for arrays.
555
556 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
557
558 * eval.c: Remove 'f-lang.h' include.
559 (value_f90_subarray): Moved to f-lang.c.
560 (eval_call): Renamed to...
561 (evaluate_subexp_do_call): ...this, is no longer static, header
562 comment moved into header file.
563 (evaluate_funcall): Update call to eval_call.
564 (skip_undetermined_arglist): Moved to f-lang.c.
565 (fortran_value_subarray): Likewise.
566 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
567 moved to evaluate_subexp_f.
568 (calc_f77_array_dims): Moved to f-lang.c
569 * expprint.c (print_subexp_funcall): New function.
570 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
571 moved to print_subexp_f, OP_FUNCALL uses new function.
572 (dump_subexp_body_funcall): New function.
573 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
574 moved to dump_subexp_f, OP_FUNCALL uses new function.
575 * expression.h (evaluate_subexp_do_call): Declare.
576 * f-lang.c (value_f90_subarray): Moved from eval.c.
577 (skip_undetermined_arglist): Likewise.
578 (calc_f77_array_dims): Likewise.
579 (fortran_value_subarray): Likewise.
580 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
581 (operator_length_f): Likewise.
582 (print_subexp_f): Likewise.
583 (dump_subexp_body_f): Likewise.
584 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
585 declaration of this operation to here.
586 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
587 support moved to operator_length_f.
588 * parser-defs.h (dump_subexp_body_funcall): Declare.
589 (print_subexp_funcall): Declare.
590 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
591 fortran-operator.def.
592
593 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
594
595 * eval.c (fortran_value_subarray): New function, content is taken
596 from...
597 (evaluate_subexp_standard): ...here, in two places. Now arrays
598 and strings both call the new function.
599 (calc_f77_array_dims): Add header comment, handle strings.
600
601 2020-09-18 Victor Collod <vcollod@nvidia.com>
602
603 PR gdb/26635
604 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
605 (i386_analyze_prologue): Call i386_skip_endbr.
606
607 2020-09-18 Tom Tromey <tromey@adacore.com>
608
609 * windows-nat.c (struct windows_nat_target) <wait>: Update.
610 (windows_nat_target::wait): Update.
611 * target/wait.h (enum target_wait_flag): New. Use
612 DEF_ENUM_FLAGS_TYPE.
613 * target/target.h (target_wait): Change type of options.
614 * target.h (target_options_to_string, default_target_wait):
615 Update.
616 (struct target_ops) <wait>: Change type of options.
617 * target.c (target_wait, default_target_wait, do_option): Change
618 type of "options".
619 (target_options_to_string): Likewise.
620 * target-delegates.c: Rebuild.
621 * target-debug.h (target_debug_print_target_wait_flags): Rename
622 from target_debug_print_options.
623 * sol-thread.c (class sol_thread_target) <wait>: Update.
624 (sol_thread_target::wait): Update.
625 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
626 (rs6000_nat_target::wait): Update.
627 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
628 Update.
629 (remote_target::wait_ns, remote_target::wait_as): Change type of
630 "options".
631 (remote_target::wait): Update.
632 * remote-sim.c (struct gdbsim_target) <wait>: Update.
633 (gdbsim_target::wait): Update.
634 * record-full.c (class record_full_base_target) <wait>: Update.
635 (record_full_wait_1): Change type of "options".
636 (record_full_base_target::wait): Update.
637 * record-btrace.c (class record_btrace_target) <wait>: Update.
638 (record_btrace_target::wait): Update.
639 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
640 Update.
641 (ravenscar_thread_target::wait): Update.
642 * procfs.c (class procfs_target) <wait>: Update.
643 (procfs_target::wait): Update.
644 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
645 * obsd-nat.c (obsd_nat_target::wait): Update.
646 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
647 (nto_procfs_target::wait): Update.
648 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
649 * nbsd-nat.c (nbsd_wait): Change type of "options".
650 (nbsd_nat_target::wait): Update.
651 * linux-thread-db.c (class thread_db_target) <wait>: Update.
652 (thread_db_target::wait): Update.
653 * linux-nat.h (class linux_nat_target) <wait>: Update.
654 * linux-nat.c (linux_nat_target::wait): Update.
655 (linux_nat_wait_1): Update.
656 * infrun.c (do_target_wait_1, do_target_wait): Change type of
657 "options".
658 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
659 * inf-ptrace.c (inf_ptrace_target::wait): Update.
660 * go32-nat.c (struct go32_nat_target) <wait>: Update.
661 (go32_nat_target::wait): Update.
662 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
663 * gnu-nat.c (gnu_nat_target::wait): Update.
664 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
665 * fbsd-nat.c (fbsd_nat_target::wait): Update.
666 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
667 * darwin-nat.c (darwin_nat_target::wait): Update.
668 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
669 (bsd_uthread_target::wait): Update.
670 * aix-thread.c (class aix_thread_target) <wait>: Update.
671 (aix_thread_target::wait): Update.
672
673 2020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
674
675 * compile/compile-object-run.c (create_copied_type_recursive): New
676 function.
677 (compile_object_run): Use new function.
678
679 2020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
680
681 * NEWS: Mention x86_64 Cygwin core file support.
682
683 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
684
685 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
686 (core_process_module_section): Handle NOTE_INFO_MODULE64.
687
688 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
689
690 * windows-tdep.h: Add prototypes.
691 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
692 (i386_windows_core_pid_to_str): Move and rename ...
693 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
694 (windows_core_pid_to_str): ... and here.
695 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
696
697 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
698 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
699 (amd64_windows_init_abi_common): ... and register.
700
701 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
702
703 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
704 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
705
706 2020-09-18 Pedro Alves <pedro@palves.net>
707
708 PR gdb/26631
709 * thread.c (thread_find_command): Switch inferior before calling
710 target methods.
711
712 2020-09-17 Tom Tromey <tromey@adacore.com>
713
714 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
715 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
716 (tdesc_arch_data_up): New typedef.
717 (tdesc_use_registers, tdesc_data_alloc): Update.
718 (tdesc_data_cleanup): Don't declare.
719 * target-descriptions.c (tdesc_data_alloc): Return a
720 tdesc_arch_data_up.
721 (tdesc_arch_data_deleter::operator()): Rename from
722 tdesc_data_cleanup. Change argument type.
723 (tdesc_use_registers): Change early_data to an rvalue reference.
724 (tdesc_use_registers): Don't use delete.
725 * sparc-tdep.c (sparc32_gdbarch_init): Update.
726 * s390-tdep.c (s390_gdbarch_init): Update.
727 * rx-tdep.c (rx_gdbarch_init): Update.
728 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
729 * riscv-tdep.c (riscv_gdbarch_init): Update.
730 * or1k-tdep.c (or1k_gdbarch_init): Update.
731 * nios2-tdep.c (nios2_gdbarch_init): Update.
732 * nds32-tdep.c (nds32_gdbarch_init): Update.
733 * mips-tdep.c (mips_gdbarch_init): Update.
734 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
735 * m68k-tdep.c (m68k_gdbarch_init): Update.
736 * i386-tdep.c (i386_gdbarch_init): Update.
737 * arm-tdep.c (arm_gdbarch_init): Update.
738 * arc-tdep.c (arc_tdesc_init): Update.
739 (arc_gdbarch_init): Update.
740 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
741
742 2020-09-17 Hannes Domani <ssbssa@yahoo.de>
743
744 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
745 for WOW64 processes.
746
747 2020-09-17 Tom Tromey <tom@tromey.com>
748
749 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
750
751 2020-09-17 Tom Tromey <tom@tromey.com>
752
753 * value.c (preserve_values): Update.
754 * python/py-type.c (save_objfile_types): Update.
755 * guile/scm-type.c (save_objfile_types): Update.
756 * gdbtypes.h (create_copied_types_hash): Return htab_up.
757 * gdbtypes.c (create_copied_types_hash): Return htab_up.
758 * compile/compile-object-run.c (compile_object_run): Update.
759
760 2020-09-17 Tom Tromey <tom@tromey.com>
761
762 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
763 Remove.
764 <m_table>: Now htab_up.
765 * typeprint.c (typedef_hash_table::recursively_update)
766 (typedef_hash_table::add_template_parameters)
767 (typedef_hash_table::typedef_hash_table): Update.
768 (typedef_hash_table::~typedef_hash_table): Remove.
769 (typedef_hash_table::typedef_hash_table)
770 (typedef_hash_table::find_global_typedef)
771 (typedef_hash_table::find_typedef): Update.
772
773 2020-09-17 Tom Tromey <tom@tromey.com>
774
775 * target-descriptions.c (tdesc_use_registers): Use htab_up.
776
777 2020-09-17 Tom Tromey <tom@tromey.com>
778
779 * linespec.c (class decode_compound_collector)
780 <~decode_compound_collector>: Remove.
781 <m_unique_syms>: Now htab_up.
782 (decode_compound_collector::operator ()): Update.
783 (class symtab_collector) <~symtab_collector>: Remove.
784 <m_symtab_table>: Now htab_up.
785 (symtab_collector::operator ()): Update.
786
787 2020-09-17 Tom Tromey <tom@tromey.com>
788
789 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
790 (filename_seen_cache::clear): Update.
791 (~filename_seen_cache): Remove.
792 (filename_seen_cache::seen): Update.
793 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
794 htab_up.
795 <~filename_seen_cache>: Remove.
796 <traverse>: Update.
797
798 2020-09-17 Tom Tromey <tom@tromey.com>
799
800 * completer.c (completion_tracker::discard_completions)
801 (completion_tracker::~completion_tracker)
802 (completion_tracker::maybe_add_completion)
803 (completion_tracker::remove_completion)
804 (completion_tracker::recompute_lowest_common_denominator)
805 (completion_tracker::build_completion_result): Update.
806 * completer.h (class completion_tracker) <have_completions>:
807 Update.
808 <m_entries_hash>: Now htab_up.
809
810 2020-09-17 Tom Tromey <tom@tromey.com>
811
812 * breakpoint.c (ambiguous_names_p): Use htab_up.
813
814 2020-09-17 Tom Tromey <tom@tromey.com>
815
816 * auto-load.c (struct auto_load_pspace_info)
817 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
818 <loaded_script_files, loaded_script_texts>: Change type to
819 htab_up.
820 (~auto_load_pspace_info) Remove.
821 (init_loaded_scripts_info, maybe_add_script_file)
822 (maybe_add_script_text, auto_load_info_scripts): Update.
823
824 2020-09-17 Tom Tromey <tromey@adacore.com>
825
826 * c-exp.y (name_obstack): Now static.
827
828 2020-09-17 Chungyi Chi <demonic@csie.io>
829
830 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
831
832 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
833
834 * breakpoint.h (init_catchpoint): Change int parameter to bool.
835 (add_solib_catchpoint): Likewise.
836 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
837 to bool.
838 (add_solib_catchpoint): Change int parameter/variable to bool.
839 (catch_load_or_unload): Likewise.
840 (init_catchpoint): Likewise.
841 (create_fork_vfork_event_catchpoint): Likewise.
842 (catch_fork_command_1): Likewise.
843 (catch_exec_command_1): Likewise.
844
845 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
846
847 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
848 Change instance_flags to m_instance_flags.
849
850 2020-09-16 Tom Tromey <tromey@adacore.com>
851
852 PR gdb/26598:
853 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
854
855 2020-09-16 John Baldwin <jhb@FreeBSD.org>
856
857 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
858 PL_FLAG_EXEC.
859 (fbsd_nat_target::insert_exec_catchpoint)
860 (fbsd_nat_target::remove_exec_catchpoint): Always define.
861 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
862 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
863
864 2020-09-16 John Baldwin <jhb@FreeBSD.org>
865
866 * configure.ac: Remove check for kinfo_getvmmap().
867 * configure, config.in: Regenerate.
868 * fbsd-nat.c (fbsd_read_mapping): Remove
869 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
870 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
871 kinfo_get_vmmap() are always present.
872
873 2020-09-16 John Baldwin <jhb@FreeBSD.org>
874
875 * fbsd-nat.c: Always include support for
876 TARGET_OBJECT_SIGNAL_INFO.
877
878 2020-09-16 John Baldwin <jhb@FreeBSD.org>
879
880 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
881 sysctl and remove procfs fallback.
882
883 2020-09-16 John Baldwin <jhb@FreeBSD.org>
884
885 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
886 * fbsd-nat.h: Likewise.
887
888 2020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
889
890 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
891 argument.
892
893 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
894
895 * ada-lang.c (ada_language_data): Delete.
896 (ada_language): Remove references to ada_language_data.
897 * c-lang.c (c_language_data): Delete.
898 (c_language): Remove references to c_language_data.
899 (cplus_language_data): Delete.
900 (cplus_language): Remove references to cplus_language_data.
901 (asm_language_data): Delete.
902 (asm_language): Remove references to asm_language_data.
903 (minimal_language_data): Delete.
904 (minimal_language): Remove references to minimal_language_data.
905 * d-lang.c (d_language_data): Delete.
906 (d_language): Remove references to d_language_data.
907 * f-lang.c (f_language_data): Delete.
908 (f_language): Remove references to f_language_data.
909 * go-lang.c (go_language_data): Delete.
910 (go_language): Remove references to go_language_data.
911 * language.c (unknown_language_data): Delete.
912 (unknown_language): Remove references to unknown_language_data.
913 (auto_language_data): Delete.
914 (auto_language): Remove references to auto_language_data.
915 * language.h (language_data): Delete struct.
916 (language_defn): No longer inherit from language_data.
917 * m2-lang.c (m2_language_data): Delete.
918 (m2_language): Remove references to m2_language_data.
919 * objc-lang.c (objc_language_data): Delete.
920 (objc_language): Remove references to objc_language_data.
921 * opencl-lang.c (opencl_language_data): Delete.
922 (opencl_language): Remove references to opencl_language_data.
923 * p-lang.c (pascal_language_data): Delete.
924 (pascal_language): Remove references to pascal_language_data.
925 * rust-lang.c (rust_language_data): Delete.
926 (rust_language): Remove references to rust_language_data.
927
928 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
929
930 * ada-lang.c (ada_language_data): Remove la_op_print_tab
931 initializer.
932 (ada_language::opcode_print_table): New member function.
933 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
934 (c_language::opcode_print_table): New member function.
935 (cplus_language_data): Remove la_op_print_tab initializer.
936 (cplus_language::opcode_print_table): New member function.
937 (asm_language_data): Remove la_op_print_tab initializer.
938 (asm_language::opcode_print_table): New member function.
939 (minimal_language_data): Remove la_op_print_tab initializer.
940 (minimal_language::opcode_print_table): New member function.
941 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
942 (d_language::opcode_print_table): New member function.
943 * expprint.c (print_subexp_standard): Update call to
944 opcode_print_table.
945 (op_string): Likewise.
946 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
947 (f_language::opcode_print_table): New member function.
948 * go-lang.c (go_language_data): Remove la_op_print_tab
949 initializer.
950 (go_language::opcode_print_table): New member function.
951 * language.c (unknown_language_data): Remove la_op_print_tab
952 initializer.
953 (unknown_language::opcode_print_table): New member function.
954 (auto_language_data): Remove la_op_print_tab initializer.
955 (auto_language::opcode_print_table): New member function.
956 * language.h (language_data): Remove la_op_print_tab field.
957 (language_defn::opcode_print_table): Declare new member function.
958 * m2-lang.c (m2_language_data): Remove la_op_print_tab
959 initializer.
960 (m2_language::opcode_print_table): New member function.
961 * objc-lang.c (objc_language_data): Remove la_op_print_tab
962 initializer.
963 (objc_language::opcode_print_table): New member function.
964 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
965 initializer.
966 (opencl_language::opcode_print_table): New member function.
967 * p-lang.c (pascal_language_data): Remove la_op_print_tab
968 initializer.
969 (pascal_language::opcode_print_table): New member function.
970 * rust-lang.c (rust_language_data): Remove la_op_print_tab
971 initializer.
972 (rust_language::opcode_print_table): New member function.
973
974 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
975
976 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
977 (ada_language::expression_ops): New member function.
978 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
979 (c_language::expression_ops): New member function.
980 (cplus_language_data): Remove la_exp_desc initializer.
981 (cplus_language::expression_ops): New member function.
982 (asm_language_data): Remove la_exp_desc initializer.
983 (asm_language::expression_ops): New member function.
984 (minimal_language_data): Remove la_exp_desc initializer.
985 (minimal_language::expression_ops): New member function.
986 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
987 (d_language::expression_ops): New member function.
988 * eval.c (evaluate_subexp): Update call to expression_ops.
989 * expprint.c (print_subexp): Likewise.
990 (op_name): Likewise.
991 (dump_subexp_body): Likewise.
992 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
993 (f_language::expression_ops): New member function.
994 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
995 (go_language::expression_ops): New member function.
996 * language.c (language_defn::expression_ops): New function.
997 (unknown_language_data): Remove la_exp_desc initializer.
998 (auto_language_data): Likewise.
999 * language.h (language_data): Remove la_exp_desc field.
1000 (language_defn::expression_ops): Declare new member function.
1001 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
1002 (m2_language::expression_ops): New member function.
1003 * objc-lang.c (objc_language_data): Remove la_exp_desc
1004 initializer.
1005 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
1006 initializer.
1007 (opencl_language::expression_ops): New member function.
1008 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
1009 * parse.c (operator_length): Update call to expression_ops.
1010 (exp_iterate): Likewise.
1011 * rust-lang.c (rust_language_data): Remove la_exp_desc
1012 initializer.
1013 (ruse_language::expression_ops): New member function.
1014
1015 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1016
1017 * ada-lang.c (ada_language_data): Remove la_varobj_ops
1018 initializer.
1019 (ada_language::varobj_ops): New member function.
1020 * c-lang.c (c_language_data): Remove la_varobj_ops
1021 initializer.
1022 (cplus_language_data): Likewise.
1023 (cplus_language::varobj_ops): New member function.
1024 (asm_language_data): Remove la_varobj_ops initializer.
1025 (minimal_language_data): Likewise.
1026 * d-lang.c (d_language_data): Likewise.
1027 * f-lang.c (f_language_data): Likewise.
1028 * go-lang.c (go_language_data): Likewise.
1029 * language.c (language_defn::varobj_ops): New function.
1030 (unknown_language_data): Remove la_varobj_ops
1031 initializer.
1032 (auto_language_data): Likewise.
1033 * language.h (language_data): Remove la_varobj_ops field.
1034 (language_defn::varobj_ops): Declare new member function.
1035 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
1036 * objc-lang.c (objc_language_data): Likewise.
1037 * opencl-lang.c (opencl_language_data): Likewise.
1038 * p-lang.c (pascal_language_data): Likewise.
1039 * rust-lang.c (rust_language_data): Likewise.
1040 * varobj.c (varobj_create): Update call to varobj_ops.
1041 * varobj.h (default_varobj_ops): Delete define.
1042
1043 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1044
1045 * ada-lang.c (ada_language_data): Remove la_macro_expansion
1046 initializer.
1047 * c-lang.c (c_language_data): Likewise.
1048 (c_language::macro_expansion): New member function.
1049 (cplus_language_data): Likewise.
1050 (cplus_language::macro_expansion): New member function.
1051 (asm_language_data): Likewise.
1052 (asm_language::macro_expansion): New member function.
1053 (minimal_language_data): Likewise.
1054 (minimal_language::macro_expansion): New member function.
1055 * d-lang.c (d_language_data): Remove la_macro_expansion
1056 initializer.
1057 * f-lang.c (f_language_data): Likewise.
1058 * go-lang.c (go_language_data): Likewise.
1059 * language.c (unknown_language_data): Likewise.
1060 (auto_language_data): Likewise.
1061 * language.h (language_data): Remove la_macro_expansion field.
1062 (language_defn::macro_expansion): New member function.
1063 * m2-lang.c (m2_language_data): Remove la_macro_expansion
1064 initializer.
1065 * objc-lang.c (objc_language_data): Likewise.
1066 (objc_language::macro_expansion): New member function.
1067 * opencl-lang.c (opencl_language_data): Likewise.
1068 (opencl_language::macro_expansion): New member function.
1069 * p-lang.c (pascal_language_data): Remove la_macro_expansion
1070 initializer.
1071 * rust-lang.c (rust_language_data): Likewise.
1072 * symtab.c (default_collect_symbol_completion_matches_break_on):
1073 Update call to macro_expansion.
1074
1075 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1076
1077 * ada-lang.c (ada_language_data): Remove la_array_ordering
1078 initializer.
1079 * c-lang.c (c_language_data): Likewise.
1080 (cplus_language_data): Likewise.
1081 (asm_language_data): Likewise.
1082 (minimal_language_data): Likewise.
1083 * d-lang.c (d_language_data): Likewise.
1084 * dwarf2/read.c (read_array_order): Update for call to
1085 array_ordering.
1086 * f-lang.c (f_language_data): Remove la_array_ordering
1087 initializer.
1088 (f_language::array_ordering): New member function.
1089 * go-lang.c (go_language_data): Remove la_array_ordering
1090 initializer.
1091 * language.c (unknown_language_data): Likewise.
1092 (auto_language_data): Likewise.
1093 * language.h (language_data): Delete la_array_ordering field.
1094 (language_defn::array_ordering): New member function.
1095 * m2-lang.c (m2_language_data): Remove la_array_ordering
1096 initializer.
1097 * objc-lang.c (objc_language_data): Likewise.
1098 * opencl-lang.c (opencl_language_data): Likewise.
1099 * p-lang.c (pascal_language_data): Likewise.
1100 * rust-lang.c (rust_language_data): Likewise.
1101
1102 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1103
1104 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
1105 initializer.
1106 * c-lang.c (c_language_data): Likewise.
1107 (cplus_language_data): Likewise.
1108 (asm_language_data): Likewise.
1109 (minimal_language_data): Likewise.
1110 * d-lang.c (d_language_data): Likewise.
1111 * f-lang.c (f_language_data): Likewise.
1112 (f_language::case_sensitivity): New member function.
1113 * go-lang.c (go_language_data): Remove la_case_sensitivity
1114 initializer.
1115 * language.c (enum case_mode): Moved here from language.h.
1116 (case_mode): Make static.
1117 (show_case_command): Update for case_sensitivity being a method.
1118 (set_case_command): Likewise.
1119 (set_range_case): Likewise.
1120 (unknown_language_data): Remove la_case_sensitivity initializer.
1121 (auto_language_data): Likewise.
1122 * language.h (case_mode): Delete, move enum declaration to
1123 language.c.
1124 (language_data): Delete la_case_sensitivity field.
1125 (language_defn::case_sensitivity): New member function.
1126 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
1127 initializer.
1128 * objc-lang.c (objc_language_data): Likewise.
1129 * opencl-lang.c (opencl_language_data): Likewise.
1130 * p-lang.c (pascal_language_data): Likewise.
1131 * rust-lang.c (rust_language_data): Likewise.
1132
1133 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1134
1135 * ada-lang.c (ada_language_data): Remove la_range_check
1136 initializer.
1137 * c-lang.c (c_language_data): Likewise.
1138 (cplus_language_data): Likewise.
1139 (asm_language_data): Likewise.
1140 (minimal_language_data): Likewise.
1141 * d-lang.c (d_language_data): Likewise.
1142 * f-lang.c (f_language_data): Likewise.
1143 (f_language::range_checking_on_by_default): New member function.
1144 * go-lang.c (go_language_data): Remove la_range_check initializer.
1145 * language.c (enum range_mode): Moved here from language.h.
1146 (range_mode): Made static.
1147 (show_range_command): Update to use
1148 range_checking_on_by_default.
1149 (set_range_command): Likewise.
1150 (set_range_case): Likewise.
1151 (unknown_language_data): Remove la_range_check initializer.
1152 (auto_language_data): Likewise.
1153 * language.h (range_mode): Delete. Enum definition moved to
1154 language.c.
1155 (language_data): Remove la_range_check field.
1156 (language_defn::range_checking_on_by_default): New member
1157 function.
1158 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
1159 (m2_language::range_checking_on_by_default): New member function.
1160 * objc-lang.c (objc_language_data): Remove la_range_check
1161 initializer.
1162 * opencl-lang.c (opencl_language_data): Likewise.
1163 * p-lang.c (pascal_language_data): Likewise.
1164 (pascal_language::range_checking_on_by_default): New member
1165 function.
1166 * rust-lang.c (rust_language_data): Remove la_range_check
1167 initializer.
1168 (rust_language::range_checking_on_by_default): New member
1169 function.
1170
1171 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1172
1173 * dwarf2/read.c (dwarf2_physname): Remove special case for
1174 language_go.
1175 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
1176 member function.
1177
1178 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1179
1180 * ada-lang.c (ada_language_data): Remove
1181 la_store_sym_names_in_linkage_form_p initializer.
1182 (ada_language::store_sym_names_in_linkage_form_p): New member
1183 function.
1184 * c-lang.c (c_language_data): Remove
1185 la_store_sym_names_in_linkage_form_p initializer.
1186 (c_language::store_sym_names_in_linkage_form_p): New member
1187 function.
1188 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
1189 initializer.
1190 (asm_language_data): Likewise.
1191 (asm_language::store_sym_names_in_linkage_form_p): New member
1192 function.
1193 (minimal_language_data): Remove
1194 la_store_sym_names_in_linkage_form_p initializer.
1195 (minimal_language::store_sym_names_in_linkage_form_p): New member
1196 function.
1197 * d-lang.c (d_language_data): Remove
1198 la_store_sym_names_in_linkage_form_p initializer.
1199 * dwarf2/read.c (dwarf2_physname): Update call to
1200 store_sym_names_in_linkage_form_p.
1201 * f-lang.c (f_language_data): Remove
1202 la_store_sym_names_in_linkage_form_p initializer.
1203 * go-lang.c (go_language_data): Remove
1204 la_store_sym_names_in_linkage_form_p initializer.
1205 * language.c (unknown_language_data): Remove
1206 la_store_sym_names_in_linkage_form_p initializer.
1207 (unknown_language::store_sym_names_in_linkage_form_p): New member
1208 function.
1209 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
1210 initializer.
1211 (auto_language::store_sym_names_in_linkage_form_p): New member
1212 function.
1213 * language.h (language_data): Remove
1214 la_store_sym_names_in_linkage_form_p member variable.
1215 (language_defn::store_sym_names_in_linkage_form_p): New member
1216 function.
1217 * m2-lang.c (m2_language_data): Remove
1218 la_store_sym_names_in_linkage_form_p initializer.
1219 * objc-lang.c (objc_language_data): Likewise.
1220 * opencl-lang.c (opencl_language_data): Likewise.
1221 * p-lang.c (pascal_language_data): Likewise.
1222 * rust-lang.c (rust_language_data): Likewise.
1223
1224 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1225
1226 * ada-lang.c (ada_language_data): Remove string_lower_bound
1227 initializer.
1228 * c-lang.c (c_language_data): Likewise.
1229 (cplus_language_data): Likewise.
1230 (asm_language_data): Likewise.
1231 (minimal_language_data): Likewise.
1232 * d-lang.c (d_language_data): Likewise.
1233 * f-lang.c (f_language_data): Likewise.
1234 * go-lang.c (go_language_data): Likewise.
1235 * language.c (unknown_language_data): Likewise.
1236 (auto_language_data): Likewise.
1237 * language.h (language_data): Remove string_lower_bound field.
1238 (language_defn::string_lower_bound): New member function.
1239 * m2-lang.c (m2_language_data): Remove string_lower_bound
1240 initializer.
1241 (m2_language::string_lower_bound): New member function.
1242 * objc-lang.c (objc_language_data): Remove string_lower_bound
1243 initializer.
1244 * opencl-lang.c (opencl_language_data): Likewise.
1245 * p-lang.c (pascal_language_data): Likewise.
1246 * rust-lang.c (rust_language_data): Likewise.
1247 * valops.c (value_cstring): Update call to string_lower_bound.
1248 (value_string): Likewise.
1249 * value.c (allocate_repeated_value): Likewise.
1250
1251 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1252
1253 * valops.c (value_repeat): Fix incorrect argument name in comment.
1254
1255 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1256
1257 * ada-lang.c (ada_language_data): Remove c_style_arrays
1258 initializer.
1259 (ada_language::c_style_arrays_p): New member fuction.
1260 * c-lang.c (c_language_data): Remove c_style_arrays
1261 initializer.
1262 (cplus_language_data): Likewise.
1263 (asm_language_data): Likewise.
1264 (minimal_language_data): Likewise.
1265 * d-lang.c (d_language_data): Likewise.
1266 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
1267 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
1268 (f_language::c_style_arrays_p): New member function.
1269 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
1270 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
1271 * language.c (unknown_language_data): Remove c_style_arrays
1272 initializer.
1273 (auto_language_data): Likewise.
1274 * language.h (language_data): Remove c_style_arrays field.
1275 (language_defn::c_style_arrays_p): New member function.
1276 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
1277 (m2_language::c_style_arrays_p): New member function.
1278 * objc-lang.c (objc_language_data): Remove c_style_arrays
1279 initializer.
1280 * opencl-lang.c (opencl_language_data): Likewise.
1281 * p-lang.c (pascal_language_data): Likewise.
1282 * rust-lang.c (rust_language_data): Likewise.
1283 * valarith.c (value_subscript): Update call to c_style_arrays_p,
1284 and update local variable to a bool.
1285 * valops.c (value_cast): Update call to c_style_arrays_p.
1286 (value_array): Likewise.
1287 * value.c (coerce_array): Likewise.
1288
1289 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1290
1291 * ada-lang.c (ada_language_data): Remove la_language initializer.
1292 * c-lang.c (c_language_data): Likewise.
1293 (cplus_language_data): Likewise.
1294 (asm_language_data): Likewise.
1295 (minimal_language_data): Likewise.
1296 * d-lang.c (d_language_data): Likewise.
1297 * f-lang.c (f_language_data): Likewise.
1298 * go-lang.c (go_language_data): Likewise.
1299 * language.c (unknown_language_data): Likewise.
1300 (auto_language_data): Likewise.
1301 * language.h (language_data): Remove la_language field.
1302 (language_defn::language_defn): Initialise la_language field.
1303 (language_defn::la_language): New member variable.
1304 * m2-lang.c (m2_language_data): Remove la_language field.
1305 * objc-lang.c (objc_language_data): Likewise.
1306 * opencl-lang.c (opencl_language_data): Likewise.
1307 * p-lang.c (pascal_language_data): Likewise.
1308 * rust-lang.c (rust_language_data): Likewise.
1309
1310 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1311
1312 * ada-lang.c (ada_extensions): Delete, moved into
1313 ada_language::filename_extensions.
1314 (ada_language_data): Remove la_filename_extensions initializer.
1315 (ada_language::filename_extensions): New member function.
1316 * c-lang.c (c_extensions): Delete, moved into
1317 c_language::filename_extensions.
1318 (c_language_data): Remove la_filename_extensions initializer.
1319 (c_language::filename_extensions): New member function.
1320 (cplus_extensions): Delete, moved into
1321 cplus_language::filename_extensions.
1322 (cplus_language_data): Remove la_filename_extensions initializer.
1323 (cplus_language::filename_extensions): New member function.
1324 (asm_extensions): Delete, moved into
1325 asm_language::filename_extensions.
1326 (asm_language_data): Remove la_filename_extensions initializer.
1327 (asm_language::filename_extensions): New member function.
1328 (minimal_language_data): Remove la_filename_extensions
1329 initializer.
1330 * d-lang.c (d_extensions): Delete, moved into
1331 d_language::filename_extensions.
1332 (d_language_data): Remove la_filename_extensions initializer.
1333 (d_language::filename_extensions): New member function.
1334 * f-lang.c (f_extensions): Delete, moved into
1335 f_language::filename_extensions.
1336 (f_language_data): Remove la_filename_extensions initializer.
1337 (f_language::filename_extensions): New member function.
1338 * go-lang.c (go_language_data): Remove la_filename_extensions
1339 initializer.
1340 * language.c (add_set_language_command): Update now that
1341 filename_extensions returns a vector.
1342 (unknown_language_data): Remove la_filename_extensions
1343 initializer.
1344 (auto_language_data): Likewise.
1345 * language.h (language_data): Remove la_filename_extensions field.
1346 (language_defn::filename_extensions): New member function.
1347 * m2-lang.c (m2_language_data): Remove la_filename_extensions
1348 initializer.
1349 * objc-lang.c (objc_extensions): Delete, moved into
1350 objc_language::filename_extensions.
1351 (objc_language_data): Remove la_filename_extensions initializer.
1352 (objc_language::filename_extensions): New member function.
1353 * opencl-lang.c (opencl_language_data): Remove
1354 la_filename_extensions initializer.
1355 * p-lang.c (pascal_extensions): Delete, moved into
1356 pascal_language::filename_extensions.
1357 (pascal_language_data): Remove la_filename_extensions initializer.
1358 (pascal_language::filename_extensions): New member function.
1359 * rust-lang.c (rust_extensions): Delete, moved into
1360 rust_language::filename_extensions.
1361 (rust_language_data): Remove la_filename_extensions initializer.
1362 (rust_language::filename_extensions): New member function.
1363 * symfile.c (add_filename_language): Add new assert.
1364
1365 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1366
1367 * ada-lang.c (ada_language_data): Remove la_name and
1368 la_natural_name initializers.
1369 (ada_language::name): New member function.
1370 (ada_language::natural_name): New member function.
1371 * c-lang.c (c_language_data): Remove la_name and
1372 la_natural_name initializers.
1373 (c_language::name): New member function.
1374 (c_language::natural_name): New member function.
1375 (cplus_language_data): Remove la_name and
1376 la_natural_name initializers.
1377 (cplus_language::name): New member function.
1378 (cplus_language::natural_name): New member function.
1379 (asm_language_data): Remove la_name and
1380 la_natural_name initializers.
1381 (asm_language::name): New member function.
1382 (asm_language::natural_name): New member function.
1383 (minimal_language_data): Remove la_name and
1384 la_natural_name initializers.
1385 (minimal_language::name): New member function.
1386 (minimal_language::natural_name): New member function.
1387 * compile/compile.c (compile_to_object): Update call to
1388 lanugage_defn::name.
1389 * d-lang.c (d_language_data): Remove la_name and
1390 la_natural_name initializers.
1391 (d_language::name): New member function.
1392 (d_language::natural_name): New member function.
1393 * expprint.c (print_subexp_standard): Update call to
1394 language_defn::name.
1395 (dump_raw_expression): Likewise
1396 (dump_prefix_expression): Likewise.
1397 * f-lang.c (f_language_data): Remove la_name and
1398 la_natural_name initializers.
1399 (f_language::name): New member function.
1400 (f_language::natural_name): New member function.
1401 * go-lang.c (go_language_data): Remove la_name and
1402 la_natural_name initializers.
1403 (go_language::name): New member function.
1404 (go_language::natural_name): New member function.
1405 * language.c (show_language_command): Update call to
1406 language_defn::name.
1407 (set_language_command): Likewise.
1408 (language_enum): Likewise.
1409 (language_str): Likewise.
1410 (add_set_language_command): Likewise, use
1411 language_defn::natural_name in the doc string.
1412 (unknown_language_data): Remove la_name and
1413 la_natural_name initializers.
1414 (unknown_language::name): New member function.
1415 (unknown_language::natural_name): New member function.
1416 (auto_language_data): Remove la_name and
1417 la_natural_name initializers.
1418 (auto_language::name): New member function.
1419 (auto_language::natural_name): New member function.
1420 (language_lookup_primitive_type_as_symbol): Update call to
1421 language_defn::name.
1422 * language.h (language_data): Remove la_name and la_natural_name
1423 member variables.
1424 (language_defn::name): New member function.
1425 (language_defn::natural_name): New member function.
1426 * m2-lang.c (m2_language_data): Remove la_name and
1427 la_natural_name initializers.
1428 (m2_language::name): New member function.
1429 (m2_language::natural_name): New member function.
1430 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
1431 language_defn::natural_name.
1432 * objc-lang.c (objc_language_data): Remove la_name and
1433 la_natural_name initializers.
1434 (objc_language::name): New member function.
1435 (objc_language::natural_name): New member function.
1436 * opencl-lang.c (opencl_language_data): Remove la_name and
1437 la_natural_name initializers.
1438 (opencl_language::name): New member function.
1439 (opencl_language::natural_name): New member function.
1440 * p-lang.c (pascal_language_data): Remove la_name and
1441 la_natural_name initializers.
1442 (pascal_language::name): New member function.
1443 (pascal_language::natural_name): New member function.
1444 * rust-lang.c (rust_language_data): Remove la_name and
1445 la_natural_name initializers.
1446 (rust_language::name): New member function.
1447 (rust_language::natural_name): New member function.
1448 * symtab.c (lookup_language_this): Update call to
1449 language_defn::name.
1450
1451 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1452
1453 * ada-lang.c (ada_language_data): Remove la_name_of_this
1454 initializer.
1455 * ax-gdb.c (gen_expr): Update call to name_of_this.
1456 * c-exp.y (classify_name): Likewise.
1457 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
1458 (cplus_language_data): Likewise.
1459 (cplus_language::name_of_this): New member function.
1460 (asm_language_data): Remove la_name_of_this initializer.
1461 (minimal_language_data): Likewise.
1462 * d-lang.c (d_language_data): Likewise.
1463 (d_language::name_of_this): New member function.
1464 * expprint.c (print_subexp_standard): Update call to name_of_this.
1465 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
1466 * go-lang.c (go_language_data): Likewise.
1467 * language.c (unknown_language_data): Likewise.
1468 (unknown_language::name_of_this): New member function.
1469 (auto_language_data): Remove la_name_of_this initializer.
1470 (auto_language::name_of_this): New member function.
1471 * language.h (language_data): Delete la_name_of_this member
1472 variable.
1473 (language_defn::name_of_this): New member function.
1474 * m2-lang.c (m2_language_data): Remove la_name_of_this
1475 initializer.
1476 * objc-lang.c (objc_language_data): Likewise.
1477 (objc_language::name_of_this): New member function.
1478 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
1479 initializer.
1480 * p-lang.c (pascal_language_data): Likewise.
1481 (pascal_language::name_of_this): New member function.
1482 * rust-lang.c (rust_language_data): Remove la_name_of_this
1483 initializer.
1484 * symtab.c (lookup_language_this): Update call to name_of_this.
1485 (lookup_symbol_aux): Likewise.
1486 * valops.c (value_of_this): Likewise.
1487
1488 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1489
1490 * ada-lang.c (ada_language_data): Remove
1491 la_struct_too_deep_ellipsis initializer.
1492 (ada_language::struct_too_deep_ellipsis): New member function.
1493 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
1494 initializer.
1495 (cplus_language_data): Likewise.
1496 (asm_language_data): Likewise.
1497 (minimal_language_data): Likewise.
1498 * cp-valprint.c (cp_print_value): Update call to
1499 struct_too_deep_ellipsis.
1500 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
1501 initializer.
1502 * f-lang.c (f_language_data): Likewise.
1503 (f_language::struct_too_deep_ellipsis): New member function.
1504 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
1505 initializer.
1506 * language.c (unknown_language_data): Likewise.
1507 (auto_language_data): Likewise.
1508 * language.h (language_data): Delete la_struct_too_deep_ellipsis
1509 member variable.
1510 (language_defn::struct_too_deep_ellipsis): New member function.
1511 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
1512 initializer.Q
1513 * objc-lang.c (objc_language_data): Likewise.
1514 * opencl-lang.c (opencl_language_data): Likewise.
1515 * p-lang.c (pascal_language_data): Likewise.
1516 * rust-lang.c (rust_language_data): Likewise.
1517 * valprint.c (val_print_check_max_depth): Update call to
1518 struct_too_deep_ellipsis.
1519
1520 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
1521
1522 * MAINTAINERS (Write After Approval): Add myself.
1523
1524 2020-09-15 Tom Tromey <tom@tromey.com>
1525
1526 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
1527 Remove.
1528
1529 2020-09-15 Tom Tromey <tom@tromey.com>
1530
1531 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
1532 and TYPE_CODE_METHODPTR cases.
1533 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
1534 (c_value_print_inner): Update.
1535 * valprint.c (generic_value_print_memberptr): New function, from
1536 c_value_print_memberptr.
1537 (generic_value_print): Use it. Call cplus_print_method_ptr.
1538
1539 2020-09-15 Tom Tromey <tromey@adacore.com>
1540
1541 * python/python-internal.h (PyInt_FromLong): Remove define.
1542 * python/py-value.c (convert_value_from_python): Use
1543 gdb_py_object_from_longest.
1544 * python/py-type.c (typy_get_code): Use
1545 gdb_py_object_from_longest.
1546 * python/py-symtab.c (salpy_get_line): Use
1547 gdb_py_object_from_longest.
1548 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
1549 gdb_py_object_from_longest.
1550 * python/py-record.c (recpy_gap_reason_code): Use
1551 gdb_py_object_from_longest.
1552 * python/py-record-btrace.c (recpy_bt_insn_size)
1553 (recpy_bt_func_level, btpy_list_count): Use
1554 gdb_py_object_from_longest.
1555 * python/py-infthread.c (gdbpy_create_ptid_object): Use
1556 gdb_py_object_from_longest. Fix error handling.
1557 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
1558 gdb_py_object_from_longest.
1559 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
1560 gdb_py_object_from_longest.
1561 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
1562 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
1563 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
1564
1565 2020-09-15 Tom Tromey <tromey@adacore.com>
1566
1567 * python/python.c (gdbpy_parameter_value): Use
1568 gdb_py_object_from_ulongest.
1569
1570 2020-09-15 Tom Tromey <tromey@adacore.com>
1571
1572 * python/py-infevents.c (create_register_changed_event_object):
1573 Use gdb_py_object_from_longest.
1574 * python/py-exitedevent.c (create_exited_event_object): Use
1575 gdb_py_object_from_longest.
1576
1577 2020-09-15 Tom Tromey <tromey@adacore.com>
1578
1579 * python/python.c (gdbpy_parameter_value): Use
1580 gdb_py_object_from_longest.
1581 * python/py-type.c (convert_field, typy_range): Use
1582 gdb_py_object_from_longest.
1583 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
1584 gdb_py_object_from_longest.
1585 * python/py-lazy-string.c (stpy_get_length): Use
1586 gdb_py_object_from_longest.
1587 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
1588 gdb_py_object_from_longest.
1589 * python/py-infevents.c (create_memory_changed_event_object): Use
1590 gdb_py_object_from_longest.
1591 * python/py-inferior.c (infpy_get_num): Use
1592 gdb_py_object_from_longest.
1593 (infpy_get_pid): Likewise.
1594
1595 2020-09-15 Tom Tromey <tromey@adacore.com>
1596
1597 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
1598 defines.
1599 * python/py-value.c (valpy_long): Use
1600 gdb_py_object_from_ulongest.
1601 * python/py-symtab.c (salpy_get_pc): Use
1602 gdb_py_object_from_ulongest.
1603 (salpy_get_last): Likewise.
1604 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
1605 gdb_py_object_from_ulongest.
1606 * python/py-lazy-string.c (stpy_get_address): Use
1607 gdb_py_object_from_ulongest.
1608 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
1609 * python/py-arch.c (archpy_disassemble): Use
1610 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
1611 error handling.
1612
1613 2020-09-15 Tom Tromey <tromey@adacore.com>
1614
1615 * python/python-internal.h (gdb_py_long_from_longest): Remove
1616 defines.
1617 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
1618 * python/py-type.c (convert_field, typy_get_sizeof): Use
1619 gdb_py_object_from_longest.
1620 * python/py-record-btrace.c (btpy_list_index): Use
1621 gdb_py_object_from_longest.
1622
1623 2020-09-15 Tom Tromey <tromey@adacore.com>
1624
1625 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
1626 * python/py-record.c (recpy_element_number): Use
1627 gdb_py_object_from_longest.
1628 (recpy_gap_number): Likewise.
1629
1630 2020-09-15 Tom Tromey <tromey@adacore.com>
1631
1632 * top.c (ui::ui): Update.
1633 (highest_ui_num): Remove.
1634 * top.h (struct ui) <num>: Remove.
1635
1636 2020-09-15 Tom Tromey <tromey@adacore.com>
1637
1638 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
1639 * ui-style.c (ansi_regex_text): Now array.
1640 * rust-exp.y (number_regex_text): Now array.
1641 * linespec.c (linespec_quote_characters): Now array.
1642 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
1643 Now arrays.
1644
1645 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1646
1647 * debuginfod-support.c (debuginfod_client_deleter): New.
1648 (debuginfod_client_up): New.
1649 (debuginfod_init): Return debuginfod_client_up.
1650 (debuginfod_source_query): Adjust.
1651 (debuginfod_debuginfo_query): Adjust.
1652
1653 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1654
1655 * debuginfod-support.c (debuginfod_source_query): Use
1656 make_unique_xstrdup.
1657
1658 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1659
1660 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
1661 with `type::instance_flags`.
1662
1663 2020-09-14 Michael Mullin <masmullin@gmail.com>
1664
1665 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
1666 Remove baton parameter.
1667
1668 2020-09-14 Pedro Alves <pedro@palves.net>
1669
1670 * Makefile.in (SELFTESTS_SRCS): Add
1671 unittests/enum-flags-selftests.c.
1672 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
1673 btrace_function_flags instead of enum btrace_function_flag.
1674 * compile/compile-c-types.c (convert_qualified): Use
1675 enum_flags::raw.
1676 * compile/compile-cplus-symbols.c (convert_one_symbol)
1677 (convert_symbol_bmsym):
1678 * compile/compile-cplus-types.c (compile_cplus_convert_method)
1679 (compile_cplus_convert_struct_or_union_methods)
1680 (compile_cplus_instance::convert_qualified_base):
1681 * go-exp.y (parse_string_or_char): Add cast to int.
1682 * unittests/enum-flags-selftests.c: New file.
1683 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
1684 type to btrace_thread_flags from btrace_thread_flag.
1685 (record_btrace_cancel_resume, record_btrace_step_thread): Change
1686 local's type to btrace_thread_flags from btrace_thread_flag. Add
1687 cast in DEBUG call.
1688
1689 2020-09-14 Pedro Alves <pedro@palves.net>
1690
1691 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
1692 * gdbtypes.c (address_space_name_to_int): Rename to ...
1693 (address_space_name_to_type_instance_flags): ... this.
1694 (address_space_int_to_name): Rename to ...
1695 (address_space_type_instance_flags_to_name): ... this.
1696 * gdbtypes.h (address_space_name_to_int): Rename to ...
1697 (address_space_name_to_type_instance_flags): ... this.
1698 (address_space_int_to_name): Rename to ...
1699 (address_space_type_instance_flags_to_name): ... this.
1700 * type-stack.c (type_stack::insert): Adjust to rename.
1701 * type-stack.h (type_stack::insert): Likewise.
1702
1703 2020-09-14 Pedro Alves <pedro@palves.net>
1704 Andrew Burgess <andrew.burgess@embecosm.com>
1705
1706 * avr-tdep.c (avr_address_class_type_flags): Return
1707 type_instance_flags.
1708 (avr_address_class_type_flags_to_name): Take a
1709 type_instance_flags.
1710 (avr_address_class_name_to_type_flags): Return bool and take a
1711 type_instance_flags.
1712 * d-lang.c (build_d_types): Use type::set_instance_flags.
1713 * ft32-tdep.c (ft32_address_class_type_flags): Return
1714 type_instance_flags.
1715 (ft32_address_class_type_flags_to_name): Take a
1716 type_instance_flags.
1717 (ft32_address_class_name_to_type_flags): Return bool and take a
1718 type_instance_flags.
1719 (ft32_gdbarch_init): Use type::set_instance_flags.
1720 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
1721 * gdbarch.h, gdbarch.c: Regenerate.
1722 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
1723 (address_class_name_to_type_flags): Use type_instance_flags and
1724 bool.
1725 * gdbtypes.c (address_space_name_to_int)
1726 (address_space_int_to_name, make_qualified_type): Use
1727 type_instance_flags.
1728 (make_qualified_type): Use type_instance_flags and
1729 type::set_instance_flags.
1730 (make_type_with_address_space, make_cv_type, make_vector_type)
1731 (check_typedef): Use type_instance_flags.
1732 (recursive_dump_type): Cast type_instance_flags to unsigned for
1733 printing.
1734 (copy_type_recursive): Use type::set_instance_flags.
1735 (gdbtypes_post_init): Use type::set_instance_flags.
1736 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
1737 <m_instance_flags>: ... this.
1738 <instance_flags, set_instance_flags>: New methods.
1739 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
1740 (SET_TYPE_INSTANCE_FLAGS): New.
1741 (address_space_name_to_int, address_space_int_to_name)
1742 (make_type_with_address_space): Pass flags using
1743 type_instance_flags instead of int.
1744 * stabsread.c (cleanup_undefined_types_noname): Use
1745 type::set_instance_flags.
1746 * s390-tdep.c (s390_address_class_type_flags): Return
1747 type_instance_flags.
1748 (s390_address_class_type_flags_to_name): Take a
1749 type_instance_flags.
1750 (s390_address_class_name_to_type_flags): Return bool and take a
1751 type_instance_flags.
1752 * type-stack.c (type_stack::follow_types): Use
1753 type_instance_flags.
1754 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
1755
1756 2020-09-14 Tom Tromey <tromey@adacore.com>
1757
1758 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
1759 * x86-tdep.c (x86_is_thunk_register_name)
1760 (x86_in_indirect_branch_thunk): Update.
1761 * sparc64-tdep.c (sparc64_fpu_register_names)
1762 (sparc64_cp0_register_names, sparc64_register_names)
1763 (sparc64_pseudo_register_names): Now const.
1764 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
1765 cp0_registers_num>: Now const.
1766 * sparc-tdep.c (sparc_core_register_names)
1767 (sparc32_fpu_register_names, sparc32_cp0_register_names)
1768 (sparc32_pseudo_register_names): Now const.
1769 (validate_tdesc_registers): Update.
1770 * rust-lang.c (rust_extensions): Now const.
1771 * p-lang.c (p_extensions): Now const.
1772 * objc-lang.c (objc_extensions): Now const.
1773 * nto-tdep.c (nto_thread_state_str): Now const.
1774 * moxie-tdep.c (moxie_register_names): Now const.
1775 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
1776 Now const.
1777 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
1778 (mips_linux_reg_names): Now const.
1779 (mips_gdbarch_init): Update.
1780 * microblaze-tdep.c (microblaze_register_names): Now const.
1781 * m68k-tdep.c (m68k_register_names): Now const.
1782 * m32r-tdep.c (m32r_register_names): Now const.
1783 * ia64-tdep.c (ia64_register_names): Now const.
1784 * i386-tdep.h (struct gdbarch_tdep) <register_names,
1785 ymmh_register_names, ymm16h_regnum, mpx_register_names,
1786 k_register_names, zmmh_register_names, xmm_avx512_register_names,
1787 ymm_avx512_register_names, pkeys_register_names>: Now const.
1788 * i386-tdep.c (i386_register_names, i386_zmm_names)
1789 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
1790 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
1791 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
1792 * f-lang.c (f_extensions): Now const.
1793 * d-lang.c (d_extensions): Now const.
1794 * csky-tdep.c (csky_register_names): Now const.
1795 * charset.c (default_charset_names, charset_enum): Now const.
1796 (_initialize_charset): Update.
1797 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
1798 const.
1799 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
1800 (bsd_uthread_solib_loaded): Update.
1801 (bsd_uthread_state): Now const.
1802 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
1803 (amd64_ymm_avx512_names, amd64_ymmh_names)
1804 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
1805 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
1806 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
1807 (amd64_dword_names): Now const.
1808 * agent.c (can_use_agent_enum): Now const.
1809 * ada-tasks.c (task_states, long_task_states): Now const.
1810 * ada-lang.c (known_runtime_file_name_patterns)
1811 (known_auxiliary_function_name_patterns, attribute_names)
1812 (standard_exc, ada_extensions): Now const.
1813
1814 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1815
1816 * bcache.h (struct bcache) <bcache>: Remove constructor.
1817 <m_hash_function, m_compare_function>: Remove.
1818 <~bcache>: Make virtual.
1819 <compare>: Remove static method, introduce virtual method.
1820 <default_hash>: Remove.
1821 <hash>: New virtual method.
1822 * bcache.c (bcache::expand_hash_table): Update.
1823 (bcache::insert): Update.
1824 (bcache::hash): New.
1825 (bcache::compare): Update comment and parameter names.
1826 * gdbtypes.c (types_deeply_equal): Update.
1827 * psymtab.h (struct psymbol_bcache): New struct.
1828 (class psymtab_storage) <psymtab_storage>: Make default.
1829 <psymbol_cache>: Change type to psymbol_bcache.
1830 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
1831 (psymbol_hash): Change to...
1832 (psymbol_bcache::hash): ... this.
1833 (psymbol_compare): Change to...
1834 (psymbol_bcache::compare): ... this.
1835
1836 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1837
1838 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
1839 checking for initial lwp.
1840
1841 2020-09-14 Tom Tromey <tromey@adacore.com>
1842
1843 * m68k-tdep.c (m68k_extract_return_value): Use
1844 pointer_result_regnum.
1845 (m68k_store_return_value): Likewise.
1846 (m68k_reg_struct_return_p): Handle vectors and arrays.
1847 (m68k_return_value): Handle arrays.
1848 (m68k_svr4_return_value): Fix single-element aggregate handling.
1849 Handle long double. Adjust for embedded ABI.
1850 (m68k_svr4_init_abi): Set pointer_result_regnum.
1851 (m68k_embedded_init_abi): New function.
1852 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
1853 (m68k_osabi_sniffer): New function.
1854 (_initialize_m68k_tdep): Register osabi sniffer.
1855 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
1856 member.
1857
1858 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1859
1860 * xml-support.c (xml_fetch_content_from_file): Replace xfree
1861 with gdb::unique_xmalloc_ptr<char>.
1862
1863 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1864
1865 * xml-support.h (xml_fetch_another): Change type to be a
1866 function_view.
1867 (xml_process_xincludes): Remove baton parameter.
1868 (xml_fetch_content_from_file): Change baton parameter to
1869 dirname.
1870 * xml-support.c (struct xinclude_parsing_data)
1871 <xinclude_parsing_data>: Remove baton parameter.
1872 <fetcher_baton>: Remove.
1873 (xinclude_start_include): Adjust.
1874 (xml_process_xincludes): Adjust.
1875 (xml_fetch_content_from_file): Replace baton parameter with
1876 dirname.
1877 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
1878 (xml_init_syscalls_info): Use a lambda.
1879 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
1880 (file_read_description_xml): Use a lambda.
1881 (fetch_available_features_from_target): Change baton parameter
1882 to target_ops.
1883 (target_read_description_xml): Use a lambda.
1884 (target_fetch_description_xml): Use a lambda.
1885 (string_read_description_xml): Update.
1886
1887 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1888
1889 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
1890 uses with type::endianity_is_not_default.
1891
1892 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1893
1894 * gdbtypes.h (struct type) <endianity_is_not_default,
1895 set_endianity_is_not_default>: New methods.
1896 (TYPE_ENDIANITY_NOT_DEFAULT): Use
1897 type::endianity_is_not_default, change all write call sites to
1898 use type::set_endianity_is_not_default.
1899
1900 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1901
1902 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
1903 uses with type::is_fixed_instance.
1904
1905 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1906
1907 * gdbtypes.h (struct type) <is_fixed_instance,
1908 set_is_fixed_instance>: New methods.
1909 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
1910 write call sites to use type::set_is_fixed_instance.
1911
1912 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1913
1914 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
1915 uses with type::is_gnu_ifunc.
1916
1917 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1918
1919 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
1920 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
1921 use type::set_is_gnu_ifunc.
1922
1923 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1924
1925 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
1926 uses with type::stub_is_supported.
1927
1928 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1929
1930 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
1931 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
1932 use type::set_stub_is_supported.
1933
1934 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1935
1936 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
1937 uses with type::is_vector.
1938
1939 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1940
1941 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
1942 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
1943 use type::set_is_vector.
1944
1945 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1946
1947 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
1948 uses with type::has_varargs.
1949
1950 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1951
1952 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
1953 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
1954 use type::set_has_varargs.
1955
1956 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1957
1958 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
1959 uses with type::is_prototyped.
1960
1961 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1962
1963 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
1964 New methods.
1965 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
1966 call sites to use type::set_is_prototyped.
1967
1968 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1969
1970 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
1971 uses with type::target_is_stub.
1972
1973 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1974
1975 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
1976 New methods.
1977 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
1978 sites to use type::set_target_is_stub.
1979
1980 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1981
1982 * gdbtypes.h (TYPE_STUB): Remove, replace all
1983 uses with type::is_stub.
1984
1985 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1986
1987 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
1988 (TYPE_STUB): Use type::is_stub, change all write call sites to
1989 use type::set_is_stub.
1990
1991 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1992
1993 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
1994 type::has_no_signedness.
1995
1996 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1997
1998 * gdbtypes.h (struct type) <has_no_signedness,
1999 set_has_no_signedness>: New methods.
2000 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
2001 call sites to use type::set_has_no_signedness.
2002
2003 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2004
2005 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
2006 type::is_unsigned.
2007
2008 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2009
2010 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
2011 methods.
2012 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
2013 sites to use type::set_is_unsigned.
2014
2015 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
2016 Adam Renquinha <arenquinha@cimeq.qc.ca>
2017
2018 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
2019 pointer and stack frame offset when unwinding.
2020
2021 2020-09-13 Pedro Alves <pedro@palves.net>
2022
2023 * NEWS: Document "-break-insert --qualified".
2024 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
2025
2026 2020-09-13 Pedro Alves <pedro@palves.net>
2027
2028 * linespec.c (classify_mtype, compare_msyms): Delete.
2029 (search_minsyms_for_name): Remove classification logic. Instead
2030 filter out trampoline symbols if we also found an external
2031 function of the same name.
2032
2033 2020-09-13 Joel Brobecker <brobecker@adacore.com>
2034
2035 * NEWS: Create a new section for the next release branch.
2036 Rename the section of the current branch, now that it has
2037 been cut.
2038
2039 2020-09-13 Joel Brobecker <brobecker@adacore.com>
2040
2041 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
2042 * version.in: Bump version to 11.0.50.DATE-git.
2043
2044 2020-09-12 Joel Brobecker <brobecker@adacore.com>
2045
2046 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
2047
2048 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
2049 Felix Willgerodt <Felix.Willgerodt@intel.com>
2050
2051 * gdbarch.sh: Added bfloat16 type.
2052 * gdbarch.c: Regenerated.
2053 * gdbarch.h: Regenerated.
2054 * gdbtypes.c (floatformats_bfloat16): New struct.
2055 (gdbtypes_post_init): Add builtin_bfloat16.
2056 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
2057 (floatformats_bfloat16): New struct.
2058 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
2059 (i386_ymm_type): Add field "v16_bfloat16"
2060 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
2061 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
2062 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
2063 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
2064 * features/i386/64bit-avx512.xml: Add bfloat16 type.
2065 * features/i386/64bit-avx512.c: Regenerated.
2066 * features/i386/64bit-sse.xml: Add bfloat16 type.
2067 * features/i386/64bit-sse.c: Regenerated.
2068
2069 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
2070
2071 * i386-tdep.c (i386_zmm_type): Fix field names.
2072 (i386_ymm_type): Fix field names.
2073
2074 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2075
2076 * breakpoint.c: Fix typo in the help message of the
2077 "set breakpoint condition-evaluation" command.
2078
2079 2020-09-10 Kamil Rytarowski <n54@gmx.com>
2080
2081 * nbsd-nat.c: Include "nat/netbsd-nat.h".
2082 * (nbsd_nat_target::pid_to_exec_file)
2083 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
2084 (nbsd_nat_target::post_startup_inferior)
2085 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
2086 (nbsd_add_threads): Switch local code to common gdb/nat functions.
2087 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
2088 * (nbsd_thread_lister): Remove.
2089
2090 2020-09-10 Kamil Rytarowski <n54@gmx.com>
2091
2092 * fork-inferior.c (startup_inferior): Avoid double free.
2093
2094 2020-09-10 Kamil Rytarowski <n54@gmx.com>
2095
2096 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
2097 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
2098
2099 2020-09-10 Kamil Rytarowski <n54@gmx.com>
2100
2101 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
2102 * netbsd-nat.c: Include <sys/ptrace.h>.
2103 * (netbsd_nat::enable_proc_events): Add.
2104
2105 2020-09-10 Kamil Rytarowski <n54@gmx.com>
2106
2107 * netbsd-nat.h: Include "gdbsupport/function-view.h".
2108 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
2109 (netbsd_nat::for_each_thread): Add.
2110 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
2111 "gdbsupport/common-debug.h".
2112 * (netbsd_nat::netbsd_thread_lister)
2113 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
2114 (netbsd_nat::for_each_thread): Add.
2115
2116 2020-09-10 Kamil Rytarowski <n54@gmx.com>
2117
2118 * netbsd-nat.h: Include <unistd.h>.
2119 * (netbsd_nat::pid_to_exec_file): Add.
2120 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
2121 * (netbsd_nat::pid_to_exec_file) Add.
2122
2123 2020-09-10 Kamil Rytarowski <n54@gmx.com>
2124
2125 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
2126
2127 2020-09-10 Kamil Rytarowski <n54@gmx.com>
2128
2129 * netbsd-nat.h: New file.
2130 * netbsd-nat.c: Likewise.
2131
2132 2020-09-09 Tom Tromey <tromey@adacore.com>
2133
2134 * ada-lang.c (remove_extra_symbols): Do not increment when
2135 removing an element
2136
2137 2020-09-08 Tom Tromey <tromey@adacore.com>
2138
2139 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
2140
2141 2020-09-08 Tom Tromey <tromey@adacore.com>
2142
2143 PR win32/25302:
2144 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
2145 (gdb_bfd_init_data): New function.
2146 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
2147
2148 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2149
2150 * infrun.c (fetch_inferior_event): Use
2151 `switch_to_target_no_thread` to switch the target.
2152
2153 2020-09-06 Tom Tromey <tom@tromey.com>
2154
2155 * symfile.h (dwarf2_free_objfile): Don't declare.
2156
2157 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2158
2159 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
2160 to match 16 byte real/complex type generated by Flang compiler.
2161
2162 2020-09-03 Tom de Vries <tdevries@suse.de>
2163
2164 PR breakpoint/26546
2165 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
2166 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
2167
2168 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
2169
2170 * maint.c (index_digits): New function.
2171 (struct maint_print_section_data): Remove.
2172 (print_bfd_section_info): Remove print_data parameter, add arg
2173 and index_digits.
2174 (print_objfile_section_info): Likewise.
2175 (print_bfd_section_info_maybe_relocated): Likewise (plus
2176 objfile).
2177 (maintenance_info_sections): Adjust calls.
2178
2179 2020-09-02 Tom Tromey <tromey@adacore.com>
2180
2181 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
2182 for null pointers.
2183 (ada_varobj_adjust_for_child_access): Special-case null pointers.
2184
2185 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
2186
2187 * bcache.h (struct bcache) <insert>: Change type of `added` to
2188 pointer to bool.
2189 * bcache.c (bcache::insert): Likewise.
2190 * gdbtypes.c (check_types_worklist): Adjust.
2191 * psymtab.c (add_psymbol_to_bcache): Adjust.
2192
2193 2020-08-31 Kevin Buettner <kevinb@redhat.com>
2194
2195 * corelow.c (unordered_set): Include.
2196 (class core_target): Add field 'm_core_unavailable_mappings'.
2197 (core_target::build_file_mappings): Print only one warning
2198 per inaccessible file. Add unavailable/broken mappings
2199 to m_core_unavailable_mappings.
2200 (core_target::xfer_partial): Call...
2201 (core_target::xfer_memory_via_mappings): New method.
2202
2203 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
2204
2205 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
2206 type to bool.
2207
2208 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
2209
2210 * dwarf2/read.c (struct field_info): Fix indentation.
2211
2212 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
2213
2214 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
2215 ordering in comment.
2216 * frame.c (frame_id_eq): Fix indentation.
2217
2218 2020-08-31 Scott Linder <scott@scottlinder.com>
2219 Simon Marchi <simon.marchi@efficios.com>
2220
2221 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
2222 inline frame ids in outer frame.
2223
2224 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
2225
2226 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
2227 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
2228 (outer_frame_id): Use FID_STACK_OUTER instead of
2229 FID_STACK_INVALID.
2230 (frame_id_p): Don't check for outer_frame_id.
2231
2232 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
2233
2234 * frame-unwind.c (frame_unwind_got_optimized): Don't set
2235 regnum/frame in value. Call allocate_value_lazy.
2236 * frame.c (frame_unwind_register_value): Use
2237 val_print_not_saved.
2238
2239 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
2240
2241 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
2242
2243 2020-08-29 Pedro Alves <pedro@palves.net>
2244
2245 * progspace.c (print_program_space): Use all_inferiors. Switch to
2246 the inferior before calling target_pid_to_str.
2247
2248 2020-08-28 Tom Tromey <tom@tromey.com>
2249
2250 * xcoffread.c (xcoff_end_psymtab): Update comment.
2251 * dbxread.c (dbx_end_psymtab): Update comment.
2252
2253 2020-08-28 Tom de Vries <tdevries@suse.de>
2254
2255 PR breakpoint/26544
2256 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
2257 event_location.
2258 (create_breakpoint): Same.
2259 (base_breakpoint_decode_location): Same.
2260 (bkpt_create_sals_from_location): Same.
2261 (bkpt_decode_location): Same.
2262 (bkpt_probe_create_sals_from_location): Same.
2263 (bkpt_probe_decode_location): Same.
2264 (tracepoint_create_sals_from_location): Same.
2265 (tracepoint_decode_location): Same.
2266 (tracepoint_probe_decode_location): Same.
2267 (strace_marker_create_sals_from_location): Same.
2268 (strace_marker_decode_location): Same.
2269 (create_sals_from_location_default): Same.
2270 (decode_location_default): Same.
2271 * breakpoint.h (struct breakpoint_ops): Same.
2272 (create_breakpoint): Same.
2273 * linespec.h (decode_line_full): Same.
2274 * linespec.c (decode_line_full): Same. Throw error if
2275 result.size () == 0.
2276
2277 2020-08-27 Pedro Alves <pedro@palves.net>
2278
2279 PR gdb/26524
2280 * breakpoint.c (until_break_fsm) <location_breakpoint,
2281 caller_breakpoint>: Delete fields.
2282 <breakpoints>: New field.
2283 <until_break_fsm>: Adjust to save a breakpoint vector instead of
2284 two individual breakpoints.
2285 (until_break_fsm::should_stop): Loop over breakpoints in the
2286 breakpoint vector.
2287 (until_break_fsm::clean_up): Adjust to clear the breakpoints
2288 vector.
2289 (until_break_command): Handle location expanding into multiple
2290 sals.
2291
2292 2020-08-27 Pedro Alves <pedro@palves.net>
2293
2294 PR gdb/26523
2295 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
2296 bp_until breakpoints user-specified locations. Update intro
2297 comment.
2298
2299 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
2300
2301 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
2302 gdb_bfd_sections): New.
2303 * maint.c (print_bfd_section_info): Change param type to
2304 maint_print_section_data.
2305 (print_objfile_section_info): Likewise.
2306 (print_bfd_section_info_maybe_relocated): Likewise.
2307 (maintenance_info_sections): Use gdb_bfd_sections.
2308
2309 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
2310
2311 * MAINTAINERS: Add ARC target and maintainer.
2312
2313 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
2314
2315 * configure.tgt: ARC support for GNU/Linux.
2316 * Makefile.in (ALL_TARGET_OBJS): Likewise.
2317 * arc-linux-tdep.c: New file.
2318 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
2319 * arc-tdep.c (arc_write_pc): Use it.
2320
2321 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
2322
2323 * arc-tdep.c (arc_check_for_hardware_loop): New.
2324 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
2325
2326 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
2327
2328 * arc-tdep.h: Include "gdbarch.h".
2329
2330 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
2331
2332 * arch/arc.h
2333 (arc_gdbarch_features): New class to stir the selection of target XML.
2334 (arc_create_target_description): Use FEATURES to choose XML target.
2335 (arc_lookup_target_description): Use arc_create_target_description
2336 to create _new_ target descriptions or return the already created
2337 ones if the FEATURES is the same.
2338 * arch/arc.c: Implementation of prototypes described above.
2339 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
2340 (arc_gdbarch_features_init): Initialize the FEATURES struct.
2341 * arc-tdep.c (*_feature_name): Make feature names consistent.
2342 (arc_register_feature): A new struct to hold information about
2343 registers of a particular target/feature.
2344 (arc_check_tdesc_feature): Check if XML provides registers in
2345 compliance with ARC_REGISTER_FEATURE structs.
2346 (arc_update_acc_reg_names): Add aliases for r58 and r59.
2347 (determine_*_reg_feature_set): Which feature name to look for.
2348 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
2349 (mach_type_to_arc_isa): Convert from a set of binutils machine types
2350 to expected ISA enums to be used in arc_gdbarch_features structs.
2351 * features/Makefile (FEATURE_XMLFILES): Add new files.
2352 * gdb/features/arc/v1-aux.c: New file.
2353 * gdb/features/arc/v1-aux.xml: Likewise.
2354 * gdb/features/arc/v1-core.c: Likewise.
2355 * gdb/features/arc/v1-core.xml: Likewise.
2356 * gdb/features/arc/v2-aux.c: Likewise.
2357 * gdb/features/arc/v2-aux.xml: Likewise.
2358 * gdb/features/arc/v2-core.c: Likewise.
2359 * gdb/features/arc/v2-core.xml: Likewise.
2360 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
2361
2362 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
2363 Andrew Burgess <andrew.burgess@embecosm.com>
2364
2365 PR m2/26372
2366 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
2367 an assert. Remove single element array indexing pattern as the
2368 MULTI_SUBSCRIPT support will handle this case too.
2369
2370 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
2371
2372 * value.h (valprint_check_validity): Move declaration from
2373 here...
2374 * valprint.h (valprint_check_validity): ... to here.
2375
2376 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
2377
2378 * debug.h: New file.
2379 * debug.c (debug_prefixed_vprintf): New function.
2380 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
2381 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
2382
2383 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
2384
2385 * infrun.h (infrun_debug_printf_1): New function declaration.
2386 (infrun_debug_printf): New macro.
2387 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
2388 throughout.
2389 (infrun_debug_printf): New function.
2390 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
2391 (handle_jit_event): Likewise.
2392
2393 2020-08-21 Mark Wielaard <mark@klomp.org>
2394
2395 * ada-lex.l: Extend register warnings diagnostics comment for g++.
2396
2397 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
2398
2399 * frame.c (enum class frame_id_status): New.
2400 (struct frame_info) <this_id::p>: Change type to frame_id_status.
2401 (fprintf_frame): Update.
2402 (compute_frame_id): Set frame id status to "computing" on entry.
2403 Set it back to "not_computed" on failure and to "computed" on
2404 success.
2405 (get_frame_id): Assert the frame id is not being computed.
2406 (create_sentinel_frame): Use frame_id_status::COMPUTED.
2407 (create_new_frame): Likewise.
2408 (frame_cleanup_after_sniffer): Update assert.
2409
2410 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2411
2412 * regcache.c (pid_ptid_regcache_map): New type.
2413 (target_ptid_regcache_map): Remove.
2414 (target_pid_ptid_regcache_map): New type.
2415 (regcaches): Change type to target_pid_ptid_regcache_map.
2416 (get_thread_arch_aspace_regcache): Update.
2417 (regcache_thread_ptid_changed): Update, handle pid-like ptid
2418 case.
2419 (regcaches_size): Update.
2420 (regcache_count): Update.
2421 (registers_changed_ptid_target_pid_test): New.
2422 (_initialize_regcache): Register new test.
2423
2424 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2425
2426 * regcache.c (regcache_count): New.
2427 (struct regcache_test_data): New.
2428 (regcache_test_data_up): New.
2429 (populate_regcaches_for_test): New.
2430 (regcaches_test): Remove.
2431 (get_thread_arch_aspace_regcache_test): New.
2432 (registers_changed_ptid_all_test): New.
2433 (registers_changed_ptid_target_test): New.
2434 (registers_changed_ptid_target_ptid_test): New.
2435 (regcache_thread_ptid_changed): Remove regcache_count lambda.
2436 (_initialize_regcache): Register new tests.
2437
2438 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2439
2440 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
2441 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
2442 gdbarch and aspace parameter. Use current inferior's aspace.
2443 Validate regcache's arch value.
2444 (regcaches_test): Update.
2445
2446 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2447
2448 * regcache.c (regcaches_test): Call registers_changed.
2449
2450 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2451
2452 * infrun.c (process_event_stop_test): Fix typo "breapoint".
2453
2454 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2455
2456 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
2457 to find the end of prologue for flang compiled binaries.
2458 * arm-tdep.c (arm_skip_prologue): Likewise.
2459 * i386-tdep.c (i386_skip_prologue): Likewise.
2460 * producer.c (producer_is_llvm): New function.
2461 (producer_parsing_tests): Added new tests for clang/flang.
2462 * producer.h (producer_is_llvm): New declaration.
2463
2464 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
2465
2466 * linux-nat.c (linux_nat_debug_printf): New function.
2467 (linux_nat_debug_printf_1): New macro. Use throughout the file.
2468
2469 2020-08-18 Aaron Merey <amerey@redhat.com>
2470
2471 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
2472 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
2473 (CLIBS): Add DEBUGINFOD_LIBS.
2474
2475 2020-08-17 Sergei Trofimovich <siarheit@google.com>
2476
2477 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
2478 'gdbarch_num_regs'.
2479
2480 2020-08-17 Tom Tromey <tromey@adacore.com>
2481
2482 * ada-varobj.c (ada_varobj_decode_var): Handle case where
2483 ada_get_decoded_value returns NULL.
2484
2485 2020-08-17 Tom Tromey <tromey@adacore.com>
2486
2487 * python/py-inferior.c (infpy_search_memory): Use
2488 gdb_py_object_from_ulongest.
2489 * python/py-infevents.c (create_inferior_call_event_object)
2490 (create_memory_changed_event_object): Use
2491 gdb_py_object_from_ulongest.
2492 * python/py-linetable.c (ltpy_entry_get_pc): Use
2493 gdb_py_object_from_ulongest.
2494
2495 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
2496
2497 * loc.c (class symbol_needs_eval_context): Fix indentation.
2498
2499 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
2500
2501 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
2502 bool.
2503
2504 2020-08-17 Tom de Vries <tdevries@suse.de>
2505
2506 PR gdb/26393
2507 * gdbtypes.c (dump_dynamic_prop): New function.
2508 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
2509
2510 2020-08-15 Tom de Vries <tdevries@suse.de>
2511
2512 PR backtrace/26390
2513 * stack.c (print_frame_args): Temporarily set the selected
2514 frame to FRAME while printing the frame's arguments.
2515
2516 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2517
2518 PR breakpoints/26385
2519 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
2520 Always clear watchpoint with PTRACE_SET_DEBUGREG.
2521
2522 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2523
2524 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
2525 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
2526 and >= to check return value instead of == -1 and != -1.
2527
2528 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
2529
2530 * utils.h (class gdb_argv) <as_array_view>: New method.
2531 * utils.c (gdb_argv_as_array_view_test): New.
2532 (_initialize_utils): Register selftest.
2533 * maint.c (maintenance_selftest): Use the new method.
2534
2535 2020-08-13 Kamil Rytarowski <n54@gmx.com>
2536
2537 * target.h (supports_dumpcore, dumpcore): New
2538 function declarations.
2539 * target.c (supports_dumpcore, dumpcore): New
2540 functions.
2541 * target-delegates.c: Rebuild.
2542 * gcore.c (gcore_command): Use target_supports_dumpcore ()
2543 and target_dumpcore ().
2544
2545 2020-08-13 Aaron Merey <amerey@redhat.com>
2546
2547 * debuginfod-support.c: Replace global variables with user_data.
2548
2549 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
2550
2551 * maint.c (maintenance_selftest): Split args and pass array_view
2552 to run_tests.
2553
2554 2020-08-12 Luis Machado <luis.machado@linaro.org>
2555
2556 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
2557 type's length.
2558 Use %s and pulongest to print the length.
2559
2560 2020-08-12 Pedro Alves <palves@redhat.com>
2561
2562 * NEWS: Move "Multi-target debugging support" item to the
2563 "Changes since GDB 9" section.
2564
2565 2020-08-12 Pedro Alves <palves@redhat.com>
2566
2567 PR gdb/26336
2568 * progspace.c (program_space::remove_objfile): Invalidate the
2569 frame cache.
2570
2571 2020-08-11 Tom de Vries <tdevries@suse.de>
2572
2573 * MAINTAINERS: Mark ms1 as deleted.
2574
2575 2020-08-10 Luis Machado <luis.machado@linaro.org>
2576
2577 PR gdb/26310
2578
2579 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
2580 act accordingly.
2581 (aarch64_analyze_prologue_test): Add more unit tests to exercise
2582 movz/str/stur/stp skipping behavior.
2583
2584 2020-08-10 Luis Machado <luis.machado@linaro.org>
2585
2586 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
2587 struct user_sve_header instead of struct sve_context.
2588
2589 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
2590
2591 * read.h (dwarf2_fetch_die_loc_sect_off,
2592 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
2593 `void *` parameter with function_view.
2594 * read.c (dwarf2_fetch_die_loc_sect_off,
2595 dwarf2_fetch_die_loc_cu_off): Likewise.
2596 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
2597 (per_cu_dwarf_call): Adjust.
2598 (get_frame_address_in_block_wrapper): Remove.
2599 (indirect_synthetic_pointer): Adjust.
2600 (get_ax_pc): Remove.
2601 (dwarf2_compile_expr_to_ax): Adjust.
2602
2603 2020-08-08 Tom de Vries <tdevries@suse.de>
2604
2605 PR build/26344
2606 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
2607 constructor.
2608 * regcache.c (get_thread_arch_aspace_regcache): Same.
2609
2610 2020-08-07 Tom Tromey <tromey@adacore.com>
2611
2612 * ravenscar-thread.c
2613 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
2614 New method.
2615 (ravenscar_thread_target::wait): Check
2616 runtime_initialized.
2617 (ravenscar_thread_target::prepare_to_store)
2618 (ravenscar_thread_target::stopped_by_sw_breakpoint)
2619 (ravenscar_thread_target::stopped_by_hw_breakpoint)
2620 (ravenscar_thread_target::stopped_by_watchpoint)
2621 (ravenscar_thread_target::stopped_data_address)
2622 (ravenscar_thread_target::core_of_thread): Use
2623 scoped_restore_current_thread and
2624 set_base_thread_from_ravenscar_task.
2625
2626 2020-08-07 Tom Tromey <tromey@adacore.com>
2627
2628 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
2629
2630 2020-08-07 Tom Tromey <tromey@adacore.com>
2631
2632 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
2633 update_inferior_ptid before update_thread_list.
2634 (temporarily_change_regcache_ptid): New class.
2635 (ravenscar_thread_target::fetch_registers)
2636 (ravenscar_thread_target::store_registers)
2637 (ravenscar_thread_target::prepare_to_store): Use base thread when
2638 forwarding operation.
2639
2640 2020-08-07 Tom Tromey <tromey@adacore.com>
2641
2642 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
2643 "is_pid" case.
2644
2645 2020-08-07 Tom Tromey <tromey@adacore.com>
2646
2647 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
2648 New methods.
2649 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
2650 first.
2651 (ravenscar_thread_target::add_thread): Rename from
2652 ravenscar_add_thread.
2653 (ravenscar_thread_target::update_thread_list): Use a lambda.
2654 (ravenscar_thread_target::xfer_partial): New method.
2655
2656 2020-08-07 Tom Tromey <tromey@adacore.com>
2657
2658 * ada-lang.h (ada_task_list_iterator_ftype): Now a
2659 gdb::function_view.
2660 (iterate_over_live_ada_tasks): Change type of argument.
2661 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
2662 of argument.
2663
2664 2020-08-07 Tom Tromey <tromey@adacore.com>
2665
2666 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
2667 Remove.
2668 (ravenscar_thread_target::extra_thread_info): Remove.
2669 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
2670 defer to target beneath for non-Ravenscar threads.
2671
2672 2020-08-07 Tom Tromey <tromey@adacore.com>
2673
2674 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
2675 get_base_thread_from_ravenscar_task>: Now methods.
2676 <m_cpu_map>: New member.
2677 (ravenscar_thread_target::get_thread_base_cpu): Rename from
2678 ravenscar_get_thread_base_cpu. Check m_cpu_map.
2679 (ravenscar_thread_target::task_is_currently_active): Update.
2680 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
2681 Now a method.
2682 (ravenscar_thread_target::add_active_thread): Put initial thread
2683 into the m_cpu_map.
2684
2685 2020-08-07 Tom Tromey <tromey@adacore.com>
2686
2687 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
2688 event_ptid.
2689
2690 2020-08-07 Tom Tromey <tromey@adacore.com>
2691
2692 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
2693 runtime_initialized.
2694
2695 2020-08-07 Tom Tromey <tromey@adacore.com>
2696
2697 * ravenscar-thread.c (ravenscar_thread_target): Don't call
2698 add_active_thread.
2699 (ravenscar_thread_target::add_active_thread): Now public.
2700 (ravenscar_inferior_created): Call add_active_thread after pushing
2701 the target.
2702
2703 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
2704
2705 * regcache.c (ptid_regcache_map): New type.
2706 (target_ptid_regcache_map): New type.
2707 (regcaches): Change type to target_ptid_regcache_map.
2708 (get_thread_arch_aspace_regcache): Update to regcaches' new
2709 type.
2710 (regcache_thread_ptid_changed): Likewise.
2711 (registers_changed_ptid): Likewise.
2712 (regcaches_size): Likewise.
2713 (regcaches_test): Update.
2714 (regcache_thread_ptid_changed): Update.
2715 * regcache.h (regcache_up): New type.
2716 * gdbsupport/ptid.h (hash_ptid): New struct.
2717
2718 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
2719
2720 * observable.h (thread_ptid_changed): Add parameter
2721 `process_stratum_target *`.
2722 * infrun.c (infrun_thread_ptid_changed): Add parameter
2723 `process_stratum_target *` and use it.
2724 (selftests): New namespace.
2725 (infrun_thread_ptid_changed): New function.
2726 (_initialize_infrun): Register selftest.
2727 * regcache.c (regcache_thread_ptid_changed): Add parameter
2728 `process_stratum_target *` and use it.
2729 (regcache_thread_ptid_changed): New function.
2730 (_initialize_regcache): Register selftest.
2731 * thread.c (thread_change_ptid): Pass target to
2732 thread_ptid_changed observable.
2733
2734 2020-08-06 Caroline Tice <cmtice@google.com>
2735
2736 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
2737 (struct dwp_sections): Update field comments. Add loclists and
2738 rnglists fields.
2739 (struct virtual_v2_dwo_sections): Rename struct to
2740 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
2741 size & offset fields for loclists and rnglists.
2742 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
2743 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
2744 skipping dummy type units.
2745 (create_dwp_hash_table): Update the large comment above the function to
2746 discuss Version 5 DWP files as well, with references. Update all the
2747 version checks in the function to check for version 5 as well. Add new
2748 section at the end to create dwp hash table for version 5.
2749 (create_dwp_v2_section): Rename function to
2750 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
2751 Add V5 to error message text.
2752 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
2753 into calls to create_dwp_v2_or_v5_section.
2754 (create_dwo_unit_in_dwp_v5): New function.
2755 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
2756 check for version2; add else clause to handle version 5.
2757 (open_and_init_dwo_file): Add code to check dwarf version & only call
2758 create_debug_types_hash_table (with sections.types) if version is not 5;
2759 else call create_debug_type_hash_table, with sections.info.
2760 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
2761 version 5.
2762 (dwarf2_locate_v5_dwp_sections): New function.
2763 (open_and_init_dwp_file): Add else-if clause for version 5 to call
2764 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
2765
2766 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
2767
2768 * regcache.h (class regcache): Remove friend
2769 registers_changed_ptid.
2770 <regcache_thread_ptid_changed>: Remove.
2771 <regcaches>: Remove.
2772 * regcache.c (regcache::regcaches): Rename to...
2773 (regcaches): ... this. Make static.
2774 (get_thread_arch_aspace_regcache): Update.
2775 (regcache::regcache_thread_ptid_changed): Rename to...
2776 (regcache_thread_ptid_changed): ... this. Update.
2777 (class regcache_access): Remove.
2778 (regcaches_test): Update.
2779 (_initialize_regcache): Update.
2780 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
2781 <forward_list>.
2782
2783 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
2784
2785 * regcache.h (class regcache) <current_regcache>: Rename to...
2786 <regcaches>: ... this. Move doc here.
2787 * regcache.c (regcache::current_regcache) Rename to...
2788 (regcache::regcaches): ... this. Move doc to header.
2789 (get_thread_arch_aspace_regcache): Update.
2790 (regcache::regcache_thread_ptid_changed): Update.
2791 (registers_changed_ptid): Update.
2792 (class regcache_access) <current_regcache_size>: Rename to...
2793 <regcaches_size>: ... this.
2794 (current_regcache_test): Rename to...
2795 (regcaches_test): ... this.
2796 (_initialize_regcache): Update.
2797
2798 2020-08-06 Victor Collod <vcollod@nvidia.com>
2799
2800 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
2801
2802 2020-08-05 Kevin Buettner <kevinb@redhat.com>
2803
2804 * corelow.c (core_target::build_file_mappings): Don't output
2805 null pathname in warning.
2806
2807 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
2808
2809 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
2810 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
2811 gdb.dwarf2/dw2-single-line-discriminators.exp,
2812 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
2813
2814 2020-08-05 Tom Tromey <tromey@adacore.com>
2815
2816 PR rust/26197:
2817 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
2818 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
2819 Fix off-by-one and type size errors in ordinary case.
2820
2821 2020-08-05 Tom de Vries <tdevries@suse.de>
2822
2823 * gdbtypes.c (type_not_allocated, type_not_associated): Use
2824 "prop->const_val () == 0" instead of "prop->const_val () != 0".
2825
2826 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
2827
2828 * frame.h (frame_id_p): Return bool.
2829 (frame_id_artificial_p): Return bool.
2830 (frame_id_eq): Return bool.
2831 (has_stack_frames): Return bool.
2832 (get_selected_frame): Fix typo in comment.
2833 (get_frame_pc_if_available): Return bool.
2834 (get_frame_address_in_block_if_available): Return bool.
2835 (get_frame_func_if_available): Return bool.
2836 (read_frame_register_unsigned): Return bool.
2837 (get_frame_register_bytes): Return bool.
2838 (safe_frame_unwind_memory): Return bool.
2839 (deprecated_frame_register_read): Return bool.
2840 (frame_unwinder_is): Return bool.
2841 * frame.c (struct frame_info) <prev_arch::p>: Change type to
2842 bool.
2843 <this_id::p>: Likewise.
2844 <prev_p>: Likewise.
2845 (frame_stash_add): Return bool.
2846 (get_frame_id): Use bool.
2847 (frame_id_build_special) Use bool.
2848 (frame_id_build_unavailable_stack): Use bool.
2849 (frame_id_build): Use bool.
2850 (frame_id_p): Return bool, use true/false instead of 1/0.
2851 (frame_id_artificial_p): Likewise.
2852 (frame_id_eq): Likewise.
2853 (frame_id_inner): Likewise.
2854 (get_frame_func_if_available): Likewise.
2855 (read_frame_register_unsigned): Likewise.
2856 (deprecated_frame_register_read): Likewise.
2857 (get_frame_register_bytes): Likewise.
2858 (has_stack_frames): Likewise.
2859 (inside_main_func): Likewise.
2860 (inside_entry_func): Likewise.
2861 (get_frame_pc_if_available): Likewise.
2862 (get_frame_address_in_block_if_available): Likewise.
2863 (frame_unwinder_is): Likewise.
2864 (safe_frame_unwind_memory): Likewise.
2865 (frame_unwind_arch): Likewise.
2866
2867 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
2868
2869 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
2870 type to cached_copy_status.
2871 (fprintf_frame): Adjust.
2872 (get_frame_func_if_available): Adjust.
2873 (frame_cleanup_after_sniffer): Adjust.
2874
2875 2020-08-04 Mark Wielaard <mark@klomp.org>
2876
2877 * MAINTAINERS (Write After Approval): Update email address.
2878
2879 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2880
2881 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
2882 dynamic_prop::const_val.
2883
2884 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2885
2886 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
2887 dynamic_prop::kind.
2888
2889 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2890
2891 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
2892
2893 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
2894
2895 * configure.tgt: Set gdb_sim for bpf-*-* targets.
2896
2897 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
2898 Jose E. Marchesi <jose.marchesi@oracle.com>
2899
2900 * configure.tgt: Add entry for bpf-*-*.
2901 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
2902 (ALLDEPFILES): Add bpf-tdep.c.
2903 * bpf-tdep.c: New file.
2904 * MAINTAINERS: Add bpf target and maintainer.
2905 * NEWS: Mention the support for the new target.
2906
2907 2020-08-04 Tom de Vries <tdevries@suse.de>
2908
2909 PR symtab/23270
2910 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
2911 Error.
2912
2913 2020-08-03 John Baldwin <jhb@FreeBSD.org>
2914
2915 * syscalls/freebsd.xml: Regenerate.
2916
2917 2020-08-03 John Baldwin <jhb@FreeBSD.org>
2918
2919 * syscalls/update-freebsd.sh: Fix usage and year range.
2920
2921 2020-08-03 Tom de Vries <tdevries@suse.de>
2922
2923 PR symtab/26333
2924 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
2925 DW_LNE_lo_user/DW_LNE_hi_user range.
2926
2927 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
2928
2929 PR ada/26318
2930 * ada-lang.c (ada_modulus): Return 0 if property is not of const
2931 kind.
2932
2933 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2934
2935 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
2936
2937 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2938
2939 * breakpoint.c (set_breakpoint_condition): Update the condition
2940 expressions after checking that the input condition string parses
2941 successfully and does not contain junk at the end.
2942
2943 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2944
2945 * breakpoint.c (set_breakpoint_condition): Update the
2946 condition string after parsing the new condition successfully.
2947
2948 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2949
2950 * proc-api.c (_STRUCTURED_PROC): Don't define.
2951 * proc-events.c: Likewise.
2952 * proc-flags.c: Likewise.
2953 * proc-why.c: Likewise.
2954 * procfs.c: Likewise.
2955
2956 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
2957 * configure, config.in: Regenerate.
2958
2959 2020-07-30 Tom de Vries <tdevries@suse.de>
2960
2961 PR build/26320
2962 * ui-style.h (struct ui_file_style::color): Wrap m_value and
2963 m_red/m_green/m_blue in a union.
2964
2965 2020-07-29 Tom de Vries <tdevries@suse.de>
2966
2967 PR tdep/26280
2968 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
2969
2970 2020-07-28 Tom Tromey <tromey@adacore.com>
2971
2972 PR symtab/26270:
2973 * symtab.h (find_pc_partial_function_sym): Declare.
2974 * cli/cli-cmds.c (disassemble_command): Use
2975 find_pc_partial_function_sym. Check asm_demangle.
2976 * blockframe.c (cache_pc_function_sym): New global.
2977 (cache_pc_function_name): Remove.
2978 (clear_pc_function_cache): Update.
2979 (find_pc_partial_function_sym): New function, from
2980 find_pc_partial_function.
2981 (find_pc_partial_function): Rewrite using
2982 find_pc_partial_function_sym.
2983
2984 2020-07-28 Tom Tromey <tromey@adacore.com>
2985
2986 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
2987 help. Add usage.
2988
2989 2020-07-28 Tom Tromey <tromey@adacore.com>
2990
2991 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
2992 <DW_OP_GNU_variable_value>: Cast to address type.
2993
2994 2020-07-28 Kamil Rytarowski <n54@gmx.com>
2995
2996 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
2997 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
2998 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
2999 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
3000 (nbsd_get_siginfo_type): New.
3001 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
3002 (_initialize_nbsd_tdep): New.
3003
3004 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
3005
3006 PR binutils/26301
3007 * configure: Regenerated.
3008
3009 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
3010
3011 PR binutils/26301
3012 * configure: Regenerated.
3013
3014 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
3015
3016 * python/py-frame.c: Remove 'user-regs.h' include.
3017 (frapy_read_register): Rewrite to make use of
3018 gdbpy_parse_register_id.
3019 * python/py-registers.c (gdbpy_parse_register_id): New function,
3020 moved here from python/py-unwind.c. Updated the return type, and
3021 also accepts register descriptor objects.
3022 * python/py-unwind.c: Remove 'user-regs.h' include.
3023 (pyuw_parse_register_id): Moved to python/py-registers.c.
3024 (unwind_infopy_add_saved_register): Update to use
3025 gdbpy_parse_register_id.
3026 (pending_framepy_read_register): Likewise.
3027 * python/python-internal.h (gdbpy_parse_register_id): Declare.
3028
3029 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
3030
3031 * python/py-registers.c: Add 'user-regs.h' include.
3032 (register_descriptor_iter_find): New function.
3033 (register_descriptor_iterator_object_methods): New static global
3034 methods array.
3035 (register_descriptor_iterator_object_type): Add pointer to methods
3036 array.
3037
3038 2020-07-27 John Baldwin <jhb@FreeBSD.org>
3039
3040 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
3041 for all architectures on FreeBSD 11.3 and later.
3042
3043 2020-07-27 Tom Tromey <tromey@adacore.com>
3044
3045 * gcore.h (load_corefile): Don't declare.
3046
3047 2020-07-27 Tom de Vries <tdevries@suse.de>
3048
3049 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
3050 * config.in: Regenerate.
3051 * configure: Regenerate.
3052
3053 2020-07-26 Eli Zaretskii <eliz@gnu.org>
3054
3055 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
3056 ws2tcpip.h. When checking whether socklen_t type is defined, use
3057 ws2tcpip.h if it is available and sys/socket.h isn't.
3058 * configure: Regenerate.
3059 * config.in: Regenerate.
3060
3061 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
3062
3063 PR fortran/23051
3064 PR fortran/26139
3065 * valops.c (value_ind): Pass address to
3066 readjust_indirect_value_type.
3067 * value.c (readjust_indirect_value_type): Make parameter
3068 non-const, and add extra address parameter. Resolve original type
3069 before using it.
3070 * value.h (readjust_indirect_value_type): Update function
3071 signature and comment.
3072
3073 2020-07-25 Tom de Vries <tdevries@suse.de>
3074
3075 PR symtab/26243
3076 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
3077 entries.
3078
3079 2020-07-24 Aaron Merey <amerey@redhat.com>
3080
3081 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
3082 * configure: Rebuild.
3083
3084 2020-07-23 Kevin Buettner <kevinb@redhat.com>
3085
3086 PR corefiles/26294
3087 * corelow.c (_initialize_corelow): Add period to help text
3088 for "maintenance print core-file-backed-mappings".
3089
3090 2020-07-23 Pedro Alves <pedro@palves.net>
3091
3092 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
3093 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
3094 meanwhile.
3095 * frame.c (frame_cache_generation, get_frame_cache_generation):
3096 New.
3097 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
3098 (get_prev_frame_if_no_cycle): On exception, don't touch
3099 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
3100 * frame.h (get_frame_cache_generation): Declare.
3101
3102 2020-07-23 Tom de Vries <tdevries@suse.de>
3103
3104 PR tui/26282
3105 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
3106 New default constructor.
3107
3108 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
3109
3110 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
3111 exclude non-statement entries.
3112
3113 2020-07-22 Kevin Buettner <kevinb@redhat.com>
3114
3115 * NEWS (New commands): Mention new command
3116 "maintenance print core-file-backed-mappings".
3117
3118 2020-07-22 Kevin Buettner <kevinb@redhat.com>
3119
3120 * corelow.c (gdbcmd.h): Include.
3121 (core_target::info_proc_mappings): New method.
3122 (get_current_core_target): New function.
3123 (maintenance_print_core_file_backed_mappings): New function.
3124 (_initialize_corelow): Add core-file-backed-mappings to
3125 "maint print" commands.
3126
3127 2020-07-22 Kevin Buettner <kevinb@redhat.com>
3128
3129 * linux-tdep.c (dump_note_entry_p): New function.
3130 (linux_dump_mapping_p_ftype): New typedef.
3131 (linux_find_memory_regions_full): Add new parameter,
3132 should_dump_mapping_p.
3133 (linux_find_memory_regions): Adjust call to
3134 linux_find_memory_regions_full.
3135 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
3136 call to linux_find_memory_regions_full.
3137
3138 2020-07-22 Kevin Buettner <kevinb@redhat.com>
3139
3140 * corelow.c (solist.h, unordered_map): Include.
3141 (class core_target): Add field m_core_file_mappings and
3142 method build_file_mappings.
3143 (core_target::core_target): Call build_file_mappings.
3144 (core_target::~core_target): Free memory associated with
3145 m_core_file_mappings.
3146 (core_target::build_file_mappings): New method.
3147 (core_target::xfer_partial): Use m_core_file_mappings
3148 for memory transfers.
3149 * linux-tdep.c (linux_read_core_file_mappings): New
3150 function.
3151 (linux_core_info_proc_mappings): Rewrite to use
3152 linux_read_core_file_mappings.
3153 (linux_init_abi): Register linux_read_core_file_mappings.
3154
3155 2020-07-22 Kevin Buettner <kevinb@redhat.com>
3156
3157 * arch-utils.c (default_read_core_file_mappings): New function.
3158 * arch-utils.c (default_read_core_file_mappings): Declare.
3159 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
3160 * gdbarch.h, gdbarch.c: Regenerate.
3161
3162 2020-07-22 Kevin Buettner <kevinb@redhat.com>
3163
3164 PR corefiles/25631
3165 * corelow.c (core_target:xfer_partial): Revise
3166 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
3167 case after first checking the stratum beneath the core
3168 target.
3169 (has_all_memory): Return true.
3170 * target.c (raw_memory_xfer_partial): Revise comment
3171 regarding use of has_all_memory.
3172
3173 2020-07-22 Kevin Buettner <kevinb@redhat.com>
3174
3175 * exec.h (section_table_xfer_memory): Revise declaration,
3176 replacing section name parameter with an optional callback
3177 predicate.
3178 * exec.c (section_table_xfer_memory): Likewise.
3179 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
3180 of section_table_xfer_memory.
3181
3182 2020-07-22 Tom Tromey <tromey@adacore.com>
3183
3184 * mi/mi-cmd-stack.c (list_args_or_locals): Use
3185 lookup_symbol_search_name.
3186
3187 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
3188
3189 * python/py-registers.c (gdbpy_register_object_data_init): Remove
3190 redundant local variable.
3191 (gdbpy_get_register_descriptor): Extract descriptor vector as a
3192 reference, not pointer, update code accordingly.
3193
3194 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3195 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3196
3197 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
3198 * jit.c (jit_breakpoint_re_set_internal): Use the
3199 `skip_jit_symbol_lookup` field.
3200
3201 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3202 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3203
3204 * jit.c (jit_read_descriptor): Define the descriptor address once,
3205 use twice.
3206 (jit_breakpoint_deleted): Move the declaration of the loop variable
3207 `iter` into the loop header.
3208 (jit_breakpoint_re_set_internal): Move the declaration of the local
3209 variable `objf_data` to the first point of definition.
3210 (jit_event_handler): Move the declaration of local variables
3211 `code_entry`, `entry_addr`, and `objf` to their first point of use.
3212 Rename `objf` to `jited`.
3213
3214 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3215
3216 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
3217 Remove.
3218 * jit.c (get_jiter_objfile_data): Update.
3219
3220 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3221 Simon Marchi <simon.marchi@polymtl.ca>
3222
3223 * jit.c (struct jit_program_space_data): Remove.
3224 (jit_program_space_key): Remove.
3225 (jiter_objfile_data::~jiter_objfile_data): Remove program space
3226 stuff.
3227 (get_jit_program_space_data): Remove.
3228 (jit_breakpoint_deleted): Iterate on all of the program space's
3229 objfiles.
3230 (jit_inferior_init): Likewise.
3231 (jit_breakpoint_re_set_internal): Likewise. Also change return
3232 type to void.
3233 (jit_breakpoint_re_set): Pass current_program_space to
3234 jit_breakpoint_re_set_internal.
3235
3236 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3237
3238 * jit.h (struct jiter_objfile_data) <cached_code_address,
3239 jit_breakpoint>: Move to here from ...
3240 * jit.c (jit_program_space_data): ... here.
3241 (jiter_objfile_data::~jiter_objfile_data): Update.
3242 (jit_breakpoint_deleted): Update.
3243 (jit_breakpoint_re_set_internal): Update.
3244
3245 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3246
3247 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
3248 checks.
3249 (jit_read_descriptor): Remove NULL check.
3250 (jit_event_handler): Add an assertion.
3251
3252 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3253
3254 * jit.h (struct jit_objfile_data): Split into...
3255 (struct jiter_objfile_data): ... this ...
3256 (struct jited_objfile_data): ... and this.
3257 * objfiles.h (struct objfile) <jit_data>: Remove.
3258 <jiter_data, jited_data>: New fields.
3259 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
3260 (jiter_objfile_data::~jiter_objfile_data): ... this.
3261 (get_jit_objfile_data): Rename to ...
3262 (get_jiter_objfile_data): ... this.
3263 (add_objfile_entry): Update.
3264 (jit_read_descriptor): Use get_jiter_objfile_data.
3265 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
3266 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
3267 (jit_inferior_exit_hook): Use objfile's jited_data field.
3268
3269 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3270
3271 * jit.h: Forward-declare `struct minimal_symbol`.
3272 (struct jit_objfile_data): Migrate to here from jit.c; also add a
3273 constructor, destructor, and an objfile* field.
3274 * jit.c (jit_objfile_data): Remove.
3275 (struct jit_objfile_data): Migrate from here to jit.h.
3276 (jit_objfile_data::~jit_objfile_data): New destructor
3277 implementation with code moved from free_objfile_data.
3278 (free_objfile_data): Delete.
3279 (get_jit_objfile_data): Update to use the jit_data field of objfile.
3280 (jit_find_objf_with_entry_addr): Ditto.
3281 (jit_inferior_exit_hook): Ditto.
3282 (_initialize_jit): Remove the call to
3283 register_objfile_data_with_cleanup.
3284 * objfiles.h (struct objfile) <jit_data>: New field.
3285
3286 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3287
3288 * jit.h: Forward-declare `struct objfile`.
3289 (jit_event_handler): Add a second parameter, the JITer objfile.
3290 * jit.c (jit_read_descriptor): Change the signature to take the
3291 JITer objfile as an argument instead of the jit_program_space_data.
3292 (jit_inferior_init): Update the call to jit_read_descriptor.
3293 (jit_event_handler): Use the new JITer objfile argument when calling
3294 jit_read_descriptor.
3295 * breakpoint.c (handle_jit_event): Update the call to
3296 jit_event_handler to pass the JITer objfile.
3297
3298 2020-07-21 John Baldwin <jhb@FreeBSD.org>
3299
3300 * gdbarch.c: Regenerate.
3301 * gdbarch.h: Regenerate.
3302 * gdbarch.sh (handle_segmentation_fault): Remove method.
3303 * infrun.c (handle_segmentation_fault): Remove.
3304 (print_signal_received_reason): Remove call to
3305 handle_segmentation_fault.
3306
3307 2020-07-21 John Baldwin <jhb@FreeBSD.org>
3308
3309 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
3310 Rename to sparc64_linux_report_signal_info and add siggnal
3311 argument.
3312 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
3313 instead of sparc64_linux_handle_segmentation_fault.
3314
3315 2020-07-21 John Baldwin <jhb@FreeBSD.org>
3316
3317 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
3318 i386_linux_report_signal_info instead of
3319 i386_linux_handle_segmentation_fault.
3320 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
3321 to i386_linux_report_signal_info and add siggnal argument.
3322 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
3323 of i386_linux_handle_segmentation_fault.
3324 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
3325 to i386_linux_report_signal_info and add siggnal argument.
3326
3327 2020-07-21 John Baldwin <jhb@FreeBSD.org>
3328
3329 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
3330 hook if present.
3331
3332 2020-07-21 John Baldwin <jhb@FreeBSD.org>
3333
3334 * gdbarch.c: Regenerate.
3335 * gdbarch.h: Regenerate.
3336 * gdbarch.sh (report_signal_info): New method.
3337 * infrun.c (print_signal_received_reason): Invoke gdbarch
3338 report_signal_info hook if present.
3339
3340 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
3341
3342 * python/py-registers.c : Add 'unordered_map' include.
3343 (gdbpy_new_reggroup): Renamed to...
3344 (gdbpy_get_reggroup): ...this. Update to only create register
3345 group descriptors when needed.
3346 (gdbpy_reggroup_iter_next): Update.
3347
3348 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
3349
3350 * python/py-registers.c (gdbpy_register_object_data): New static
3351 global.
3352 (gdbpy_register_object_data_init): New function.
3353 (gdbpy_new_register_descriptor): Renamed to...
3354 (gdbpy_get_register_descriptor): ...this, and update to reuse
3355 existing register descriptors where possible.
3356 (gdbpy_register_descriptor_iter_next): Update.
3357 (gdbpy_initialize_registers): Register new gdbarch data.
3358
3359 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
3360
3361 * linux-nat.c (stopped_pids): Make static.
3362
3363 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
3364
3365 PR ada/26235
3366 * gdbtypes.c (ada_discrete_type_low_bound,
3367 ada_discrete_type_high_bound): Handle undefined bounds.
3368
3369 2020-07-21 Kamil Rytarowski <n54@gmx.com>
3370
3371 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
3372 declaration.
3373 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
3374 function.
3375
3376 2020-07-20 John Baldwin <jhb@FreeBSD.org>
3377
3378 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
3379 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
3380 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
3381 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
3382 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
3383 method.
3384
3385 2020-07-20 Ludovic Courtès <ludo@gnu.org>
3386
3387 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
3388 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
3389 which are deprecated in Guile 3.0.
3390 * configure.ac (try_guile_versions): Add "guile-3.0".
3391 * configure (try_guile_versions): Regenerate.
3392 * NEWS: Update entry.
3393
3394 2020-07-20 Ludovic Courtès <ludo@gnu.org>
3395 Doug Evans <dje@google.com>
3396
3397 PR gdb/21104
3398 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
3399 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
3400 USING_GUILE_BEFORE_2_2.
3401 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
3402 Change type to 'scm_t_port_type *'.
3403 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
3404 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
3405 parameter and honor it. Update callers.
3406 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
3407 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
3408 functions.
3409 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
3410 USING_GUILE_BEFORE_2_2.
3411 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
3412 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
3413 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
3414 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
3415 and 'SCM_PORT_TYPE'.
3416 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
3417 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
3418 (gdbscm_memory_port_read, gdbscm_memory_port_write)
3419 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
3420 [!USING_GUILE_BEFORE_2_2]: New functions.
3421 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
3422 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
3423 'gdbscm_memory_port_read'.
3424 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
3425 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
3426 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
3427 function.
3428 (ioscm_init_memory_port): Remove.
3429 (ioscm_init_memory_port_stream): New function
3430 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
3431 function.
3432 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
3433 Return scm_from_uint (0).
3434 (gdbscm_set_memory_port_read_buffer_size_x)
3435 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
3436 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
3437 Return scm_from_uint (0).
3438 (gdbscm_set_memory_port_write_buffer_size_x)
3439 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
3440 * configure.ac (try_guile_versions): Add "guile-2.2".
3441 * configure: Regenerate.
3442 * NEWS: Add entry.
3443
3444 2020-07-18 Tom Tromey <tom@tromey.com>
3445
3446 * linux-nat.c (linux_multi_process): Remove.
3447 (linux_nat_target::supports_multi_process): Return true.
3448
3449 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
3450
3451 * arch/riscv.c (riscv_tdesc_cache): Change map type.
3452 (riscv_lookup_target_description): Return pointer out of
3453 unique_ptr.
3454 * target-descriptions.c (allocate_target_description): Add
3455 comment.
3456 (target_desc_deleter::operator()): Likewise.
3457 * target-descriptions.h (struct target_desc_deleter): Moved to
3458 gdbsupport/tdesc.h.
3459 (target_desc_up): Likewise.
3460
3461 2020-07-17 Tom Tromey <tromey@adacore.com>
3462
3463 * linux-nat.c (linux_nat_target::supports_non_stop)
3464 (linux_nat_target::always_non_stop_p): Use "true".
3465 (linux_nat_target::supports_disable_randomization): Use "true" and
3466 "false".
3467
3468 2020-07-16 Caroline Tice <cmtice@google.com>
3469
3470 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
3471 (RNGLIST_HEADER_SIZE64): New constant definition.
3472 (struct dwop_section_names): Add rnglists_dwo.
3473 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
3474 (struct loclist_header): Rename to 'loclists_rnglists_header'.
3475 (struct dwo_sections): Add rnglists field.
3476 (read_attribut_reprocess): Add tag parameter.
3477 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
3478 (cu_debug_rnglists_section): New function (decl & definition).
3479 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
3480 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
3481 die whose range is being checked; get rnglist section from
3482 cu_debug_rnglists_section, to get from either objfile or dwo file as
3483 appropriate. Add cases for DW_RLE_base_addressx,
3484 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
3485 the base address to DW_RLE_offset_pairs (not to all ranges), moving
3486 test inside if-condition and updating complaint message.
3487 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
3488 dwarf2_rnglists_process.
3489 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
3490 dwarf2_ranges_process.
3491 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
3492 need_ranges_base and update comment appropriately. Also pass die tag
3493 to dwarf2_ranges_read.
3494 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
3495 need_ranges_base and update comment appropriately. Also pass die tag
3496 to dwarf2_ranges_process.
3497 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
3498 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
3499 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
3500 need_ranges_base and update comment appropriately. Also pass die tag
3501 to read_attribute_reprocess and dwarf2_ranges_read.
3502 (read_loclist_header): Rename function to read_loclists_rnglists_header,
3503 and update function comment appropriately.
3504 (read_loclist_index): Call read_loclists_rnglists_header instead of
3505 read_loclist_header.
3506 (read_rnglist_index): New function.
3507 (read_attribute_reprocess): Add tag parameter. Add code for
3508 DW_FORM_rnglistx, passing tag to read_rnglist_index.
3509 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
3510
3511 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
3512
3513 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
3514 being resolved.
3515
3516 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
3517
3518 * arch-utils.c (show_architecture): Update formatting of messages.
3519
3520 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3521
3522 * gdbtypes.h (struct type) <bounds>: Handle array and string
3523 types.
3524 * ada-lang.c (assign_aggregate): Use type::bounds on
3525 array/string type.
3526 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
3527 * c-varobj.c (c_number_of_children): Likewise.
3528 (c_describe_child): Likewise.
3529 * eval.c (evaluate_subexp_for_sizeof): Likewise.
3530 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
3531 (f_type_print_base): Likewise.
3532 * f-valprint.c (f77_array_offset_tbl): Likewise.
3533 (f77_get_upperbound): Likewise.
3534 (f77_print_array_1): Likewise.
3535 * guile/scm-type.c (gdbscm_type_range): Likewise.
3536 * m2-typeprint.c (m2_array): Likewise.
3537 (m2_is_long_set_of_type): Likewise.
3538 * m2-valprint.c (get_long_set_bounds): Likewise.
3539 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
3540 * python/py-type.c (typy_range): Likewise.
3541 * rust-lang.c (rust_internal_print_type): Likewise.
3542 * type-stack.c (type_stack::follow_types): Likewise.
3543 * valarith.c (value_subscripted_rvalue): Likewise.
3544 * valops.c (value_cast): Likewise.
3545
3546 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3547
3548 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
3549 callers to use the equivalent accessor methods.
3550
3551 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3552
3553 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
3554 (struct type) <bit_stride>: New method.
3555 (TYPE_BIT_STRIDE): Remove.
3556 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
3557
3558 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3559
3560 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
3561 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
3562 callers to use the equivalent accessor methods instead.
3563
3564 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3565
3566 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
3567 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
3568 callers to use the equivalent accessor methods instead.
3569
3570 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3571
3572 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
3573 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
3574 to use dynamic_prop::kind.
3575
3576 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3577
3578 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
3579 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
3580 to get the bound property's kind and check against
3581 PROP_UNDEFINED.
3582
3583 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3584
3585 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
3586 all callers to use type::range_bounds followed by
3587 dynamic_prop::{low,high}.
3588
3589 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
3590
3591 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
3592 const_val, set_const_val, baton, set_locexpr, set_loclist,
3593 set_addr_offset, variant_parts, set_variant_parts,
3594 original_type, set_original_type>: New methods.
3595 <kind>: Rename to...
3596 <m_kind>: ... this. Update all users to use the new methods
3597 instead.
3598 <data>: Rename to...
3599 <m_data>: ... this. Update all users to use the new methods
3600 instead.
3601
3602 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3603
3604 * gdbtypes.c (get_discrete_bounds): Return failure if
3605 the range type's bounds are not both defined and constant
3606 values.
3607 (get_array_bounds): Update comment. Remove undefined bound check.
3608
3609 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
3610
3611 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
3612 the type::bounds method directly.
3613
3614 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3615
3616 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
3617 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
3618 are used to set the range type's bounds to use set_bounds.
3619
3620 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3621
3622 * exec.c (_initialize_exec): Update exec-file-mismatch help.
3623
3624 2020-07-10 Pedro Alves <pedro@palves.net>
3625
3626 * gdbthread.h (inferior_ref): Define.
3627 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
3628 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
3629 * thread.c
3630 (scoped_restore_current_thread::restore):
3631 Adjust to gdb::ref_ptr.
3632 (scoped_restore_current_thread::~scoped_restore_current_thread):
3633 Remove manual decref handling.
3634 (scoped_restore_current_thread::scoped_restore_current_thread):
3635 Adjust to use
3636 inferior_ref::new_reference/thread_info_ref::new_reference.
3637 Incref the thread before calling get_frame_id instead of after.
3638 Let TARGET_CLOSE_ERROR propagate.
3639
3640 2020-07-10 Pedro Alves <pedro@palves.net>
3641
3642 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
3643 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
3644 NOT_AVAILABLE_ERROR.
3645 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
3646 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
3647
3648 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3649 Pedro Alves <pedro@palves.net>
3650
3651 PR gdb/26199
3652 * infrun.c (threads_are_resumed_pending_p): Delete.
3653 (do_target_wait): Remove threads_are_executing and
3654 threads_are_resumed_pending_p checks from the inferior_matches
3655 lambda. Update comments.
3656
3657 2020-07-10 Pedro Alves <pedro@palves.net>
3658
3659 PR gdb/26199
3660 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
3661 executing threads.
3662
3663 2020-07-10 Pedro Alves <pedro@palves.net>
3664
3665 PR gdb/26199
3666 * infrun.c (handle_no_resumed): Handle multiple targets.
3667
3668 2020-07-10 Pedro Alves <pedro@palves.net>
3669
3670 PR gdb/26199
3671 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
3672 target_is_async_p.
3673
3674 2020-07-10 Pedro Alves <pedro@palves.net>
3675
3676 PR gdb/26199
3677 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
3678 threads, not all threads.
3679
3680 2020-07-10 Pedro Alves <pedro@palves.net>
3681
3682 PR gdb/26199
3683 * remote.c (remote_target::open_1): Pass remote target pointer as
3684 data to create_async_event_handler.
3685 (remote_async_inferior_event_handler): Mark async event handler
3686 before returning if the remote target still has either pending
3687 events or unacknowledged notifications.
3688
3689 2020-07-10 John Baldwin <jhb@FreeBSD.org>
3690
3691 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
3692 declaration.
3693 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
3694 function.
3695
3696 2020-07-09 John Baldwin <jhb@FreeBSD.org>
3697
3698 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
3699 inferior_ptid.
3700
3701 2020-07-09 John Baldwin <jhb@FreeBSD.org>
3702
3703 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
3704 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
3705 AT_FREEBSD_PS_STRINGS.
3706
3707 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
3708
3709 * auto-load.c (auto_load_objfile_script_1): Convert drive part
3710 of debugfile path on Windows.
3711
3712 2020-07-08 John Baldwin <jhb@FreeBSD.org>
3713
3714 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
3715 argument to 'data'.
3716
3717 2020-07-08 Tom Tromey <tromey@adacore.com>
3718
3719 * ada-lang.c (ada_exception_message_1): Use read_memory.
3720
3721 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3722
3723 PR python/22748
3724 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
3725 special handling for inline frames.
3726 * findvar.c (value_of_register_lazy): Skip inline frames when
3727 creating lazy register values.
3728 * frame.c (frame_id_computed_p): Delete definition.
3729 * frame.h (frame_id_computed_p): Delete declaration.
3730
3731 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3732
3733 * NEWS: Mention additions to Python API.
3734 * python/py-arch.c (archpy_register_groups): New function.
3735 (arch_object_methods): Add 'register_groups' method.
3736 * python/py-registers.c (reggroup_iterator_object): New struct.
3737 (reggroup_object): New struct.
3738 (gdbpy_new_reggroup): New function.
3739 (gdbpy_reggroup_to_string): New function.
3740 (gdbpy_reggroup_name): New function.
3741 (gdbpy_reggroup_iter): New function.
3742 (gdbpy_reggroup_iter_next): New function.
3743 (gdbpy_new_reggroup_iterator): New function
3744 (gdbpy_initialize_registers): Register new types.
3745 (reggroup_iterator_object_type): Define new Python type.
3746 (gdbpy_reggroup_getset): New static global.
3747 (reggroup_object_type): Define new Python type.
3748 * python/python-internal.h
3749
3750 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3751
3752 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
3753 * python/py-arch.c (archpy_registers): New function.
3754 (arch_object_methods): Add 'registers' method.
3755 * python/py-registers.c: New file.
3756 * python/python-internal.h
3757 (gdbpy_new_register_descriptor_iterator): Declare.
3758 (gdbpy_initialize_registers): Declare.
3759 * python/python.c (do_start_initialization): Call
3760 gdbpy_initialize_registers.
3761 * NEWS: Mention additions to the Python API.
3762
3763 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3764
3765 * NEWS: Mention new Python API method.
3766 * python/py-unwind.c (pending_framepy_architecture): New function.
3767 (pending_frame_object_methods): Add architecture method.
3768
3769 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3770
3771 * gdbarch.c: Regenerate.
3772 * gdbarch.h: Regenerate.
3773 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
3774 (gdbarch_data): Use internal_error for the case where
3775 deprecated_set_gdbarch_data was originally needed.
3776 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
3777 and use passed in obstack.
3778 (libunwind_frame_set_descr): Should no longer get back NULL from
3779 gdbarch_data.
3780 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
3781 type.
3782 * user-regs.c (user_regs_init): Update parameters, and use passed
3783 in obstack.
3784 (user_reg_add): Should no longer get back NULL from gdbarch_data.
3785 (_initialize_user_regs): Register as a pre-init gdbarch data type.
3786
3787 2020-07-06 Tom de Vries <tdevries@suse.de>
3788
3789 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
3790 End-Of-Sequence in lte_is_less_than.
3791 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
3792 "gdb: Don't reorder line table entries too much when sorting".
3793
3794 2020-07-06 Tom de Vries <tdevries@suse.de>
3795
3796 PR tui/26205
3797 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
3798
3799 2020-07-05 Tom de Vries <tdevries@suse.de>
3800
3801 PR build/26187
3802 * inferior.h (struct infcall_suspend_state_deleter): If available, use
3803 std::uncaught_exceptions instead of deprecated
3804 std::uncaught_exception.
3805
3806 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3807
3808 * macroexp.h (macro_stringify): Return
3809 gdb::unique_xmalloc_ptr<char>.
3810 * macroexp.c (macro_stringify): Likewise.
3811 * macrotab.c (fixup_definition): Update.
3812
3813 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3814
3815 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
3816 (lex_one_token): Update.
3817 * macroexp.c (struct macro_buffer) <release>: Return
3818 gdb::unique_xmalloc_ptr<char>.
3819 (macro_stringify): Update.
3820 (macro_expand): Update.
3821 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
3822 * macroexp.h (macro_expand_next): Likewise.
3823
3824 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
3825
3826 * macroexp.h (macro_lookup_ftype): Remove.
3827 (macro_expand, macro_expand_once, macro_expand_next): Remove
3828 lookup function parameters, add scope parameter.
3829 * macroexp.c (scan, substitute_args, expand, maybe_expand,
3830 macro_expand, macro_expand_once, macro_expand_next): Likewise.
3831 * macroscope.h (standard_macro_lookup): Change parameter type
3832 to macro_scope.
3833 * macroscope.c (standard_macro_lookup): Likewise.
3834 * c-exp.y (lex_one_token): Update.
3835 * macrocmd.c (macro_expand_command): Likewise.
3836 (macro_expand_once_command): Likewise.
3837
3838 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3839
3840 * inf-loop.c (inferior_event_handler): Remove client_data param.
3841 * inf-loop.h (inferior_event_handler): Likewise.
3842 * infcmd.c (step_1): Adjust.
3843 * infrun.c (proceed): Adjust.
3844 (fetch_inferior_event): Remove client_data param.
3845 (infrun_async_inferior_event_handler): Adjust.
3846 * infrun.h (fetch_inferior_event): Remove `void *` param.
3847 * linux-nat.c (handle_target_event): Adjust.
3848 * record-btrace.c (record_btrace_handle_async_inferior_event):
3849 Adjust.
3850 * record-full.c (record_full_async_inferior_event_handler):
3851 Adjust.
3852 * remote.c (remote_async_inferior_event_handler): Adjust.
3853
3854 2020-07-01 Tom Tromey <tom@tromey.com>
3855
3856 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
3857 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
3858
3859 2020-07-01 Tom Tromey <tom@tromey.com>
3860
3861 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
3862 tui_gen_win_info.
3863 (tui_win_info::make_window): Merge with
3864 tui_gen_win_info::make_window.
3865 (tui_win_info::make_visible): Move from tui_gen_win_info.
3866 * tui/tui-win.c (tui_win_info::max_width): Move from
3867 tui_gen_win_info.
3868 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
3869 type.
3870 <window_factory>: Likewise.
3871 * tui/tui-layout.c (tui_win_info::resize): Move from
3872 tui_gen_win_info.
3873 (make_standard_window): Change return type.
3874 (get_locator_window, tui_get_window_by_name): Likewise.
3875 (tui_layout_window::apply): Remove a cast.
3876 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
3877 (struct tui_win_info): Merge with tui_gen_win_info.
3878 (struct tui_gen_win_info): Remove.
3879
3880 2020-07-01 Tom Tromey <tom@tromey.com>
3881
3882 * tui/tui-stack.h (struct tui_locator_window): Derive from
3883 tui_win_info.
3884 <do_scroll_horizontal, do_scroll_vertical>: New methods.
3885 <can_box>: New method.
3886
3887 2020-07-01 Tom Tromey <tom@tromey.com>
3888
3889 * tui/tui-stack.h (struct tui_locator_window): Remove body.
3890
3891 2020-07-01 Tom Tromey <tom@tromey.com>
3892
3893 * tui/tui-regs.c (tui_data_window::display_registers_from)
3894 (tui_data_window::display_registers_from)
3895 (tui_data_window::first_data_item_displayed)
3896 (tui_data_window::delete_data_content_windows): Update.
3897 (tui_data_window::refresh_window, tui_data_window::no_refresh):
3898 Remove.
3899 (tui_data_window::check_register_values): Update.
3900 (tui_data_item_window::rerender): Add parameters. Update.
3901 (tui_data_item_window::refresh_window): Remove.
3902 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
3903 virtual.
3904 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
3905 tui_gen_win_info.
3906 <refresh_window, max_height, min_height>: Remove.
3907 <rerender>: Add parameters.
3908 <x, y, visible>: New members.
3909 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
3910 <m_item_width>: New member.
3911
3912 2020-07-01 Tom Tromey <tom@tromey.com>
3913
3914 * tui/tui-regs.c (tui_data_window::show_register_group)
3915 (tui_data_window::check_register_values): Update.
3916 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
3917 from item_no.
3918
3919 2020-07-01 Tom Tromey <tom@tromey.com>
3920
3921 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
3922 useless "if".
3923
3924 2020-07-01 Tom Tromey <tom@tromey.com>
3925
3926 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
3927 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
3928
3929 2020-07-01 Tom Tromey <tom@tromey.com>
3930
3931 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
3932 * tui/tui-winsource.h (enum tui_line_or_address_kind)
3933 (struct tui_line_or_address): Move from tui-data.h.
3934 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
3935 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
3936 (tui_cmd_window, tui_source_window_base, tui_source_window)
3937 (tui_disasm_window): Don't declare.
3938 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
3939 to tui-winsource.h.
3940 (SINGLE_KEY): Move to tui-stack.c.
3941
3942 2020-07-01 Tom Tromey <tom@tromey.com>
3943
3944 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
3945 std::string.
3946 * tui/tui-regs.c (class tab_expansion_file): New.
3947 (tab_expansion_file::write): New method.
3948 (tui_register_format): Change return type. Use
3949 tab_expansion_file.
3950 (tui_get_register, tui_data_window::display_registers_from)
3951 (tui_data_item_window::rerender): Update.
3952 * tui/tui-io.h (tui_expand_tabs): Don't declare.
3953 * tui/tui-io.c (tui_expand_tabs): Remove.
3954
3955 2020-07-01 Tom Tromey <tom@tromey.com>
3956
3957 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
3958
3959 2020-07-01 Fangrui Song <maskray@google.com>
3960
3961 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
3962
3963 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3964
3965 * dwarf2/read.c (set_die_type): Removed conditions to restrict
3966 forms for DW_AT_associated and DW_AT_allocated attributes,
3967 which is already checked in function attr_to_dynamic_prop.
3968
3969 2020-06-30 Tom Tromey <tromey@adacore.com>
3970
3971 * dwarf2/read.c (quirk_rust_enum): Correctly call
3972 alloc_rust_variant for default-less enum.
3973
3974 2020-06-30 Tom Tromey <tromey@adacore.com>
3975
3976 PR build/26183:
3977 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
3978 gdb::to_string.
3979
3980 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
3981
3982 * gdbarch.sh (displaced_step_copy_insn): Update doc.
3983 * gdbarch.h: Re-generate.
3984
3985 2020-06-28 Tom Tromey <tom@tromey.com>
3986
3987 * command.h (cmd_types): Remove.
3988 (cmd_type): Don't declare.
3989 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
3990 typedef.
3991 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
3992 * cli/cli-decode.c (cmd_type): Remove.
3993
3994 2020-06-27 Pedro Alves <palves@redhat.com>
3995
3996 * fork-child.c (prefork_hook): Adjust.
3997 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
3998 Delete.
3999 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
4000 * inferior.c (inferior::set_tty, inferior::tty): New methods.
4001 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
4002 Remove declarations.
4003 (struct inferior) <set_tty, tty>: New methods.
4004 (struct inferior) <terminal>: Rename to ...
4005 (struct inferior) <m_terminal>: ... this and make private.
4006 * main.c (captured_main_1): Adjust.
4007 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
4008 (mi_cmd_inferior_tty_show): Adjust.
4009 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
4010 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
4011
4012 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
4013
4014 * configure.ac: Add --enable-libctf: handle --disable-static
4015 properly.
4016 * acinclude.m4: sinclude ../config/enable.m4.
4017 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
4018 (LIBCTF): Substitute in.
4019 (CTF_DEPS): New, likewise.
4020 (CLIBS): libctf needs symbols from libbfd: move earlier.
4021 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
4022 flags.
4023 * ctfread.c: Surround in ENABLE_LIBCTF.
4024 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
4025 * configure: Regenerate.
4026 * config.in: Likewise.
4027
4028 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
4029
4030 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
4031
4032 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
4033
4034 * inferior.h (struct inferior) <terminal>: Change type to
4035 gdb::unique_xmalloc_ptr<char>.
4036 * inferior.c (inferior::~inferior): Don't free inf->terminal.
4037 * infcmd.c (set_inferior_io_terminal): Don't free terminal
4038 field, adjust to unique pointer.
4039 (get_inferior_io_terminal): Adjust to unique pointer.
4040
4041 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4042
4043 * riscv-tdep.c (riscv_print_registers_info): Loop over all
4044 registers, not just the known core set of registers.
4045
4046 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4047
4048 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
4049 fflags, frm, and fcsr registers.
4050 (riscv_register_reggroup_p): Remove unknown CSRs from save and
4051 restore groups.
4052 (riscv_tdesc_unknown_reg): New function.
4053 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
4054 tdesc_use_registers.
4055 * riscv-tdep.h (struct gdbarch_tdep): Add
4056 unknown_csrs_first_regnum, unknown_csrs_count,
4057 duplicate_fflags_regnum, duplicate_frm_regnum, and
4058 duplicate_fcsr_regnum fields.
4059
4060 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4061
4062 * target-descriptions.c (tdesc_use_registers): Add new parameter a
4063 callback, use the callback (when not null) to help number unknown
4064 registers.
4065 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
4066 (tdesc_use_registers): Add extra parameter to declaration.
4067
4068 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4069
4070 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
4071 in the file.
4072 (class riscv_pending_register_alias): Likewise.
4073 (riscv_register_feature::register_info): Change 'required_p' field
4074 to 'required', and change its type. Add 'check' member function.
4075 (riscv_register_feature::register_info::check): Define new member
4076 function.
4077 (riscv_xreg_feature): Change initialisation of 'required' field.
4078 (riscv_freg_feature): Likewise.
4079 (riscv_virtual_feature): Likewise.
4080 (riscv_csr_feature): Likewise.
4081 (riscv_check_tdesc_feature): Take extra parameter, the csr
4082 tdesc_feature, rewrite the function to use the new
4083 riscv_register_feature::register_info::check function.
4084 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
4085
4086 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4087
4088 * features/Makefile: Remove all references to the deleted files
4089 below.
4090 * features/riscv/32bit-csr.c: Deleted.
4091 * features/riscv/32bit-csr.xml: Deleted.
4092 * features/riscv/64bit-csr.c: Deleted.
4093 * features/riscv/64bit-csr.xml: Deleted.
4094 * features/riscv/rebuild-csr-xml.sh: Deleted.
4095
4096 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4097
4098 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
4099 whitespace error for declaration of names member variable.
4100 (struct riscv_register_feature): Add new prefer_first_name member
4101 variable, and fix whitespace error in declaration of registers.
4102 (riscv_xreg_feature): Initialize prefer_first_name field.
4103 (riscv_freg_feature): Likewise.
4104 (riscv_virtual_feature): Likewise.
4105 (riscv_csr_feature): Likewise.
4106 (riscv_register_name): Expand on comments. Remove register name
4107 modifications for CSR and virtual registers.
4108
4109 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4110
4111 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
4112 errors.
4113
4114 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4115
4116 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
4117 riscv-opc.h.
4118 (class riscv_pending_register_alias): New class.
4119 (riscv_check_tdesc_feature): Take vector of pending aliases and
4120 populate it as appropriate.
4121 (riscv_setup_register_aliases): Delete.
4122 (riscv_gdbarch_init): Create vector of pending aliases and pass it
4123 to riscv_check_tdesc_feature in all cases. Use the vector to
4124 create the register aliases.
4125
4126 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4127
4128 * sol2-tdep.c (sol2_static_transform_name): Remove.
4129 (sol2_init_abi): Don't register it.
4130 * gdbarch.sh (static_transform_name): Remove.
4131 * gdbarch.c, gdbarch.h: Regenerate.
4132
4133 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
4134 gdbarch_static_transform_name.
4135 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
4136 * stabsread.c (define_symbol) <'X'>: Remove.
4137 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
4138 handling.
4139 <'V'>: Likewise.
4140 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
4141 <'S'>: Remove call to gdbarch_static_transform_name.
4142
4143 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4144
4145 * procfs.c (procfs_pre_trace): New function.
4146 (procfs_target::create_inferior): Pass it to fork_inferior.
4147
4148 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4149
4150 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
4151 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
4152 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
4153 sol2-tdep.o, sparc-sol2-tdep.o.
4154 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
4155 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
4156 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
4157 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
4158
4159 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4160
4161 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
4162 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
4163 Call sol2_init_abi.
4164 Remove calls to set_gdbarch_skip_solib_resolver,
4165 set_gdbarch_core_pid_to_str.
4166 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
4167 (i386_sol2_static_transform_name): Remove.
4168 (i386_sol2_init_abi): Call sol2_init_abi.
4169 Remove calls to set_gdbarch_sofun_address_maybe_missing,
4170 set_gdbarch_static_transform_name,
4171 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
4172 Use sol2_sigtramp_p.
4173 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
4174 (sol2_sigtramp_p): New function.
4175 (sol2_static_transform_name): New function.
4176 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
4177 (sol2_init_abi): New function.
4178 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
4179 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
4180 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
4181 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
4182 (sparc_sol2_static_transform_name): Remove.
4183 (sparc32_sol2_init_abi): Call sol2_init_abi.
4184 Remove calls to set_gdbarch_sofun_address_maybe_missing,
4185 set_gdbarch_static_transform_name,
4186 set_gdbarch_skip_solib_resolver,
4187 set_gdbarch_core_pid_to_str.
4188 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
4189 (sparc_sol2_static_transform_name): Remove
4190 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
4191 call sol2_sigtramp_p.
4192 (sparc64_sol2_init_abi): Call sol2_init_abi.
4193 Remove calls to set_gdbarch_sofun_address_maybe_missing,
4194 set_gdbarch_static_transform_name,
4195 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
4196
4197 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4198
4199 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
4200 * exec.c (validate_exec_file): If from_tty, set both
4201 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
4202 * symfile.c (symbol_file_add_with_addrs): if always_confirm
4203 and from_tty, unconditionally ask a confirmation.
4204
4205 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4206
4207 * target-descriptions.c (tdesc_architecture_name): Protect against
4208 NULL pointer dereference.
4209 (maint_print_xml_tdesc_cmd): New function.
4210 (_initialize_target_descriptions): Register new 'maint print
4211 xml-tdesc' command and give it the filename completer.
4212 * NEWS: Mention new 'maint print xml-tdesc' command.
4213
4214 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4215
4216 * target-descriptions.c (class tdesc_compatible_info): New class.
4217 (struct target_desc): Change type of compatible vector.
4218 (tdesc_compatible_p): Update for change in type of
4219 target_desc::compatible.
4220 (tdesc_compatible_info_list): New function.
4221 (tdesc_compatible_info_arch_name): New function.
4222 (tdesc_add_compatible): Update for change in type of
4223 target_desc::compatible.
4224 (print_c_tdesc::visit_pre): Likewise.
4225
4226 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4227
4228 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
4229 whitespace to underscore.
4230 (maint_print_c_tdesc_cmd): Use fake filename for target
4231 descriptions that came from the target.
4232 (_initialize_target_descriptions): Add filename command completion
4233 for 'maint print c-tdesc'.
4234
4235 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
4236
4237 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
4238 lines.
4239
4240 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
4241
4242 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
4243 lines.
4244 (dwarf2_find_location_expression): Likewise.
4245 (call_site_parameter_matches): Likewise.
4246 (dwarf2_compile_expr_to_ax): Likewise.
4247 (disassemble_dwarf_expression): Likewise.
4248 (loclist_describe_location): Likewise.
4249
4250 2020-06-23 Pedro Alves <palves@redhat.com>
4251
4252 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
4253 progspace-and-thread.h. Include scoped-mock-context.h instead.
4254 (register_to_value_test): Use scoped_mock_context.
4255 * regcache.c: Include "scoped-mock-context.h".
4256 (cooked_read_test): Don't error out if a target is already pushed.
4257 Use scoped_mock_context. Adjust.
4258 * scoped-mock-context.h: New file.
4259
4260 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4261
4262 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
4263 initializer.
4264 (ada_language::is_string_type_p): New member function.
4265 * c-lang.c (c_language_data): Delete la_is_string_type_p
4266 initializer.
4267 (cplus_language_data): Likewise.
4268 (asm_language_data): Likewise.
4269 (minimal_language_data): Likewise.
4270 * d-lang.c (d_language_data): Likewise.
4271 * f-lang.c (f_is_string_type_p): Delete function, implementation
4272 moved to f_language::is_string_type_p.
4273 (f_language_data): Delete la_is_string_type_p initializer.
4274 (f_language::is_string_type_p): New member function,
4275 implementation from f_is_string_type_p.
4276 * go-lang.c (go_is_string_type_p): Delete function, implementation
4277 moved to go_language::is_string_type_p.
4278 (go_language_data): Delete la_is_string_type_p initializer.
4279 (go_language::is_string_type_p): New member function,
4280 implementation from go_is_string_type_p.
4281 * language.c (language_defn::is_string_type_p): Define new member
4282 function.
4283 (default_is_string_type_p): Make static, add comment copied from
4284 header file.
4285 (unknown_language_data): Delete la_is_string_type_p initializer.
4286 (unknown_language::is_string_type_p): New member function.
4287 (auto_language_data): Delete la_is_string_type_p initializer.
4288 (auto_language::is_string_type_p): New member function.
4289 * language.h (language_data): Delete la_is_string_type_p field.
4290 (language_defn::is_string_type_p): Declare new function.
4291 (default_is_string_type_p): Delete desclaration, move comment to
4292 definition.
4293 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
4294 moved to m2_language::is_string_type_p.
4295 (m2_language_data): Delete la_is_string_type_p initializer.
4296 (m2_language::is_string_type_p): New member function,
4297 implementation from m2_is_string_type_p.
4298 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
4299 initializer.
4300 * opencl-lang.c (opencl_language_data): Likewise.
4301 * p-lang.c (pascal_is_string_type_p): Delete function,
4302 implementation moved to pascal_language::is_string_type_p.
4303 (pascal_language_data): Delete la_is_string_type_p initializer.
4304 (pascal_language::is_string_type_p): New member function,
4305 implementation from pascal_is_string_type_p.
4306 * rust-lang.c (rust_is_string_type_p): Delete function,
4307 implementation moved to rust_language::is_string_type_p.
4308 (rust_language_data): Delete la_is_string_type_p initializer.
4309 (rust_language::is_string_type_p): New member function,
4310 implementation from rust_is_string_type_p.
4311 * valprint.c (val_print_scalar_or_string_type_p): Update call to
4312 is_string_type_p.
4313
4314 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4315
4316 * ada-lang.c (ada_language_data): Delete la_print_typedef
4317 initializer.
4318 (ada_language::print_typedef): New member function.
4319 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
4320 (cplus_language_data): Likewise.
4321 (asm_language_data): Likewise.
4322 (minimal_language_data): Likewise.
4323 * d-lang.c (d_language_data): Likewise.
4324 * f-lang.c (f_language_data): Likewise.
4325 (f_language::print_typedef): New member function.
4326 * go-lang.c (go_language_data): Delete la_print_typedef
4327 initializer.
4328 * language.c (language_defn::print_typedef): Define member
4329 function.
4330 (unknown_language_data): Delete la_print_typedef initializer.
4331 (unknown_language::print_typedef): New member function.
4332 (auto_language_data): Delete la_print_typedef initializer.
4333 (auto_language::print_typedef): New member function.
4334 * language.h (language_data): Delete la_print_typedef field.
4335 (language_defn::print_typedef): Declare new member function.
4336 (LA_PRINT_TYPEDEF): Update call to print_typedef.
4337 (default_print_typedef): Delete declaration.
4338 * m2-lang.c (m2_language_data): Delete la_print_typedef
4339 initializer.
4340 (m2_language::print_typedef): New member function.
4341 * objc-lang.c (objc_language_data): Delete la_print_typedef
4342 initializer.
4343 * opencl-lang.c (opencl_language_data): Likewise.
4344 * p-lang.c (pascal_language_data): Likewise.
4345 (pascal_language::print_typedef): New member function.
4346 * rust-lang.c (rust_print_typedef): Delete function,
4347 implementation moved to rust_language::print_typedef.
4348 (rust_language): Delete la_print_typedef initializer.
4349 (rust_language::print_typedef): New member function,
4350 implementation from rust_print_typedef.
4351 * typeprint.c (default_print_typedef): Delete.
4352
4353 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4354
4355 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
4356 (ada_language::printstr): New member function.
4357 * c-lang.c (c_language_data): Delete la_printstr initializer.
4358 (cplus_language_data): Likewise.
4359 (asm_language_data): Likewise.
4360 (minimal_language_data): Likewise.
4361 * d-lang.c (d_language_data): Likewise.
4362 * f-lang.c (f_printstr): Rename to f_language::printstr.
4363 (f_language_data): Delete la_printstr initializer.
4364 (f_language::printstr): New member function, implementation from
4365 f_printstr.
4366 * go-lang.c (go_language_data): Delete la_printstr initializer.
4367 * language.c (language_defn::printstr): Define new member
4368 function.
4369 (unk_lang_printstr): Delete.
4370 (unknown_language_data): Delete la_printstr initializer.
4371 (unknown_language::printstr): New member function.
4372 (auto_language_data): Delete la_printstr initializer.
4373 (auto_language::printstr): New member function.
4374 * language.h (language_data): Delete la_printstr field.
4375 (language_defn::printstr): Declare new member function.
4376 (LA_PRINT_STRING): Update call to printstr.
4377 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
4378 (m2_language_data): Delete la_printstr initializer.
4379 (m2_language::printstr): New member function, implementation from
4380 m2_printstr.
4381 * objc-lang.c (objc_language_data): Delete la_printstr
4382 initializer.
4383 * opencl-lang.c (opencl_language_data): Likewise.
4384 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
4385 (pascal_language_data): Delete la_printstr initializer.
4386 (pascal_language::printstr): New member function, implementation
4387 from pascal_printstr.
4388 * p-lang.h (pascal_printstr): Delete declaration.
4389 * rust-lang.c (rust_printstr): Update header comment.
4390 (rust_language_data): Delete la_printstr initializer.
4391 (rust_language::printstr): New member function.
4392
4393 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4394
4395 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
4396 (ada_language::printchar): New member function.
4397 * c-lang.c (c_language_data): Delete la_printchar initializer.
4398 (cplus_language_data): Likewise.
4399 (asm_language_data): Likewise.
4400 (minimal_language_data): Likewise.
4401 * d-lang.c (d_language_data): Likewise.
4402 * f-lang.c (f_printchar): Rename to f_language::printchar.
4403 (f_language_data): Delete la_printchar initializer.
4404 (f_language::printchar): New member function, implementation from
4405 f_printchar.
4406 * go-lang.c (go_language_data): Delete la_printchar initializer.
4407 * language.c (unk_lang_printchar): Delete.
4408 (language_defn::printchar): Define new member function.
4409 (unknown_language_data): Delete la_printchar initializer.
4410 (unknown_language::printchar): New member function.
4411 (auto_language_data): Delete la_printchar initializer.
4412 (auto_language::printchar): New member function.
4413 * language.h (language_data): Delete la_printchar field.
4414 (language_defn::printchar): Declare new member function.
4415 (LA_PRINT_CHAR): Update call to printchar.
4416 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
4417 (m2_language::printchar): New member function.
4418 * objc-lang.c (objc_language_data): Delete la_printchar
4419 initializer.
4420 * opencl-lang.c (opencl_language_data): Likewise.
4421 * p-lang.c (pascal_language_data): Delete la_printchar
4422 initializer.
4423 (pascal_language::printchar): New member function.
4424 * rust-lang.c (rust_printchar): Rename to
4425 rust_language::printchar.
4426 (rust_language_data): Delete la_printchar initializer.
4427 (rust_language::printchar): New member function, implementation
4428 from rust_printchar.
4429
4430 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4431
4432 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
4433 (ada_language_data): Delete la_emitchar initializer.
4434 (ada_language::emitchar): New member function, implementation from
4435 emit_char.
4436 * c-lang.c (c_language_data): Delete la_emitchar initializer.
4437 (cplus_language_data): Likewise.
4438 (asm_language_data): Likewise.
4439 (minimal_language_data): Likewise.
4440 * d-lang.c (d_language_data): Likewise.
4441 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
4442 (f_language_data): Delete la_emitchar initializer.
4443 (f_language::emitchar): New member function, implementation from
4444 f_emit_char.
4445 * go-lang.c (go_language_data): Delete la_emitchar initializer.
4446 * language.c (unk_lang_emit_char): Delete.
4447 (language_defn::emitchar): New member function definition.
4448 (unknown_language_data): Delete la_emitchar initializer.
4449 (unknown_language::emitchar): New member function.
4450 (auto_language_data): Delete la_emitchar initializer.
4451 (auto_language::emitchar): New member function.
4452 * language.h (language_data): Delete la_emitchar field.
4453 (language_defn::emitchar): New member field declaration.
4454 (LA_EMIT_CHAR): Update call to emitchar.
4455 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
4456 (m2_language_data): Delete la_emitchar initializer.
4457 (m2_language::emitchar): New member function, implementation from
4458 m2_emit_char.
4459 * objc-lang.c (objc_language_data): Delete la_emitchar
4460 initializer.
4461 * opencl-lang.c (opencl_language_data): Likewise.
4462 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
4463 (pascal_language_data): Delete la_emitchar initializer.
4464 (pascal_language::emitchar): New member function, implementation
4465 from pascal_emit_char.
4466 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
4467 (rust_language_data): Delete la_emitchar initializer.
4468 (rust_language::emitchar): New member function, implementation
4469 from rust_emitchar.
4470
4471 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4472
4473 * ada-lang.c (resolve): Rename to ada_language::post_parser.
4474 (ada_language_data): Delete la_post_parser initializer.
4475 (ada_language::post_parser): New member function.
4476 * c-lang.c (c_language_data): Delete la_post_parser initializer.
4477 (cplus_language_data): Likewise.
4478 (asm_language_data): Likewise.
4479 (minimal_language_data): Likewise.
4480 * d-lang.c (d_language_data): Likewise.
4481 * f-lang.c (f_language_data): Likewise.
4482 * go-lang.c (go_language_data): Likewise.
4483 * language.c (unknown_language_data): Likewise.
4484 (auto_language_data): Likewise.
4485 * language.h (language_data): Delete la_post_parser field.
4486 (language_defn::post_parser): New member function.
4487 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
4488 * objc-lang.c (objc_language_data): Likewise.
4489 * opencl-lang.c (opencl_language_data): Likewise.
4490 * p-lang.c (pascal_language_data): Likewise.
4491 * parse.c (parse_exp_in_context): Update call to post_parser.
4492 (null_post_parser): Delete definition.
4493 * parser-defs.h (null_post_parser): Delete declaration.
4494 * rust-lang.c (rust_language_data): Delete la_post_parser
4495 initializer.
4496
4497 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4498
4499 * ada-lang.c (parse): Rename to ada_language::parser.
4500 (ada_language_data): Delete la_parser initializer.
4501 (ada_language::parser): New member function, implementation from
4502 parse.
4503 * c-lang.c (c_language_data): Delete la_parser initializer.
4504 (cplus_language_data): Likewise.
4505 (asm_language_data): Likewise.
4506 (minimal_language_data): Likewise.
4507 * d-lang.c (d_language_data): Likewise.
4508 (d_language::parser): New member function.
4509 * f-lang.c (f_language_data): Delete la_parser initializer.
4510 (f_language::parser): New member function.
4511 * go-lang.c (go_language_data): Delete la_parser initializer.
4512 (go_language::parser): New member function.
4513 * language.c (unk_lang_parser): Delete.
4514 (language_defn::parser): Define new member function.
4515 (unknown_language_data): Delete la_parser initializer.
4516 (unknown_language::parser): New member function.
4517 (auto_language_data): Delete la_parser initializer.
4518 (auto_language::parser): New member function.
4519 * language.h (language_data): Delete la_parser field.
4520 (language_defn::parser): Declare new member function.
4521 * m2-lang.c (m2_language_data): Delete la_parser initializer.
4522 (m2_language::parser): New member function.
4523 * objc-lang.c (objc_language_data): Delete la_parser initializer.
4524 * opencl-lang.c (opencl_language_data): Likewise.
4525 * p-lang.c (pascal_language_data): Likewise.
4526 (pascal_language::parser): New member function.
4527 * parse.c (parse_exp_in_context): Update call to parser.
4528 * rust-lang.c (rust_language_data): Delete la_parser initializer.
4529 (rust_language::parser): New member function.
4530
4531 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4532
4533 * top.c (print_gdb_configuration): Print --with-python-libdir
4534 configuration value.
4535
4536 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4537
4538 * NEWS: Mention change to the alias command.
4539
4540 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4541
4542 * cli/cli-cmds.c (lookup_cmd_for_default_args)
4543 (alias_command_completer)
4544 (make_alias_options_def_group): New functions.
4545 (alias_opts, alias_option_defs): New struct and array.
4546 (alias_usage_error): Update usage.
4547 (alias_command): Handles optional DEFAULT-ARGS... arguments.
4548 Use option framework.
4549 (_initialize_cli_cmds): Update alias command help.
4550 Update aliases command help.
4551 (show_user):
4552 Add NULL for new default_args lookup_cmd argument.
4553 (valid_command_p): Rename to validate_aliased_command.
4554 Add NULL for new default_args lookup_cmd argument. Verify that the
4555 aliased_command has no default args.
4556 * cli/cli-decode.c (help_cmd): Show aliases definitions.
4557 (lookup_cmd_1, lookup_cmd): New argument default_args.
4558 (add_alias_cmd):
4559 Add NULL for new default_args lookup_cmd argument.
4560 (print_help_for_command): Show default args under the layout
4561 alias some_alias = some_aliased_cmd some_alias_default_arg.
4562 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
4563 xfree default_args in destructor.
4564 * cli/cli-script.c (process_next_line, do_define_command):
4565 Add NULL for new default_args lookup_cmd argument.
4566 * command.h: Declare new default_args argument in lookup_cmd
4567 and lookup_cmd_1.
4568 * completer.c (complete_line_internal_1):
4569 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4570 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
4571 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
4572 Likewise.
4573 * infcmd.c (_initialize_infcmd): Likewise.
4574 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
4575 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
4576 * python/py-param.c (add_setshow_generic): Likewise.
4577 * remote.c (_initialize_remote): Likewise.
4578 * top.c (execute_command): Prepend default_args if command has some.
4579 (set_verbose):
4580 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4581 * tracepoint.c (validate_actionline, encode_actions_1):
4582 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4583
4584 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4585
4586 * jit.c (jit_read_descriptor): Use bool as the return type.
4587 (jit_breakpoint_re_set_internal): Use bool as the return type.
4588 Invert the return value logic; return true if the jit breakpoint
4589 has been successfully initialized.
4590 (jit_inferior_init): Update the call to
4591 jit_breakpoint_re_set_internal.
4592
4593 2020-06-22 Pedro Alves <palves@redhat.com>
4594
4595 PR gdb/25939
4596 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
4597 Use the current inferior instead. Don't return
4598 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
4599 wait again.
4600 * sol-thread.c (sol_thread_target::wait): Don't reference
4601 inferior_ptid.
4602 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
4603 (sol_update_thread_list_callback): Use the current inferior's pid
4604 instead of inferior_ptid.
4605
4606 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4607
4608 * procfs.c: Cleanup many comments.
4609
4610 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
4611 (AFTER_WATCHFLAG): Replace by value.
4612
4613 (MAIN_PROC_NAME_FORMAT): Inline ...
4614 (create_procinfo): ... here.
4615
4616 (procfs_debug_inferior): Remove SYS_exec handling.
4617 (syscall_is_exec): Likewise.
4618 (procfs_set_exec_trap): Likewise.
4619
4620 (syscall_is_lwp_exit): Inline in callers.
4621 (syscall_is_exit): Likewise.
4622 (syscall_is_exec): Likewise.
4623 (syscall_is_lwp_create): Likewise.
4624
4625 (invalidate_cache): Remove #if 0 code.
4626
4627 (make_signal_thread_runnable): Remove.
4628 (procfs_target::resume): Remove #if 0 code.
4629
4630 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4631
4632 PR gdb/25939
4633 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
4634 call ...
4635 (procfs_target::create_inferior): ... here.
4636
4637 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4638
4639 * exec.c (validate_exec_file): Ensure the build-id is up to
4640 date by calling reopen_exec_file (that checks file timestamp
4641 to decide to re-read the file).
4642
4643 2020-06-18 Pedro Alves <palves@redhat.com>
4644
4645 PR gdb/25412
4646 * gdbthread.h (delete_thread, delete_thread_silent)
4647 (find_thread_ptid): Update comments.
4648 * thread.c (current_thread_): New global.
4649 (is_current_thread): Move higher, and reimplement.
4650 (inferior_thread): Reimplement.
4651 (set_thread_exited): Use bool. Add assertions.
4652 (add_thread_silent): Simplify thread-reuse handling by always
4653 calling delete_thread.
4654 (delete_thread): Remove intro comment.
4655 (find_thread_ptid): Skip exited threads.
4656 (switch_to_thread_no_regs): Write to current_thread_.
4657 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
4658 INFERIOR_PTID. Clear current_thread_.
4659
4660 2020-06-18 Pedro Alves <palves@redhat.com>
4661
4662 * aix-thread.c (pd_update): Use switch_to_thread.
4663
4664 2020-06-18 Pedro Alves <palves@redhat.com>
4665
4666 * ravenscar-thread.c (ravenscar_thread_target): Update.
4667 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
4668 (ravenscar_thread_target::add_active_thread): ... this. Don't
4669 set m_base_ptid here. Update to avoid referencing inferior_ptid.
4670 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
4671
4672 2020-06-18 Pedro Alves <palves@redhat.com>
4673
4674 * nat/windows-nat.c (current_windows_thread): Remove.
4675 * nat/windows-nat.h (current_windows_thread): Remove.
4676 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
4677 Adjust.
4678 (display_selectors): Adjust to fetch the current
4679 windows_thread_info based on inferior_ptid.
4680 (fake_create_process): No longer write to current_windows_thread.
4681 (windows_nat_target::get_windows_debug_event):
4682 Don't set inferior_ptid or current_windows_thread.
4683 (windows_nat_target::wait): Adjust to not rely on
4684 current_windows_thread.
4685 (do_initial_windows_stuff): Now a method of windows_nat_target.
4686 Switch to the last_ptid thread.
4687 (windows_nat_target::attach): Adjust.
4688 (windows_nat_target::detach): Use switch_to_no_thread instead of
4689 writing to inferior_ptid directly.
4690 (windows_nat_target::create_inferior): Adjust.
4691
4692 2020-06-18 Pedro Alves <palves@redhat.com>
4693
4694 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
4695
4696 2020-06-18 Pedro Alves <palves@redhat.com>
4697
4698 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
4699 after creating it, instead of writing to inferior_ptid. Don't
4700 write to inferior_ptid.
4701
4702 2020-06-18 Pedro Alves <palves@redhat.com>
4703
4704 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
4705
4706 2020-06-18 Pedro Alves <palves@redhat.com>
4707
4708 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
4709 it, instead of writing to inferior_ptid.
4710
4711 2020-06-18 Pedro Alves <palves@redhat.com>
4712
4713 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
4714 to inferior_ptid.
4715
4716 2020-06-18 Pedro Alves <palves@redhat.com>
4717
4718 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
4719 instead of writing to inferior_ptid directly.
4720
4721 2020-06-18 Pedro Alves <palves@redhat.com>
4722
4723 * corelow.c (core_target::close): Use switch_to_no_thread instead
4724 of writing to inferior_ptid directly.
4725 (add_to_thread_list, core_target_open): Use switch_to_thread
4726 instead of writing to inferior_ptid directly.
4727
4728 2020-06-18 Pedro Alves <palves@redhat.com>
4729
4730 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
4731 inferior_ptid.
4732 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
4733 inferior_ptid.
4734 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
4735 inferior_ptid directly.
4736 (darwin_nat_target::init_thread_list): Switch to thread, instead
4737 of writing to inferior_ptid.
4738 (darwin_nat_target::attach): Don't write to inferior_ptid.
4739 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
4740
4741 2020-06-18 Pedro Alves <palves@redhat.com>
4742
4743 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
4744 thread.
4745 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
4746 Instead use switch_to_thread.
4747 (gnu_nat_target::detach): Use switch_to_no_thread
4748 instead of writing to inferior_ptid directly. Used passed-in
4749 inferior instead of looking up the inferior by pid.
4750
4751 2020-06-18 Pedro Alves <palves@redhat.com>
4752
4753 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
4754 inferior_ptid.
4755
4756 2020-06-18 Pedro Alves <palves@redhat.com>
4757
4758 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
4759 inferior_ptid.
4760 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
4761 thread.
4762 (nto_procfs_target::detach): Avoid referencing
4763 inferior_ptid. Use switch_to_no_thread instead of writing to
4764 inferior_ptid directly.
4765 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
4766 instead of writing to inferior_ptid directly.
4767 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
4768 to thread.
4769
4770 2020-06-18 Pedro Alves <palves@redhat.com>
4771
4772 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
4773 after creating it, instead of writing to inferior_ptid.
4774 (gdbsim_target_open): Use switch_to_no_thread instead of writing
4775 to inferior_ptid directly.
4776 (gdbsim_target::wait): Don't write to inferior_ptid.
4777
4778 2020-06-18 Pedro Alves <palves@redhat.com>
4779
4780 * remote.c (remote_target::remote_notice_new_inferior): Use
4781 switch_to_thread instead of writing to inferior_ptid directly.
4782 (remote_target::add_current_inferior_and_thread): Use
4783 switch_to_no_thread instead of writing to inferior_ptid directly.
4784 (extended_remote_target::attach): Use switch_to_inferior_no_thread
4785 and switch_to_thread instead of using set_current_inferior or
4786 writing to inferior_ptid directly.
4787
4788 2020-06-18 Pedro Alves <palves@redhat.com>
4789
4790 * tracectf.c (ctf_target_open): Switch to added thread instead of
4791 writing to inferior_ptid directly.
4792 (ctf_target::close): Use switch_to_no_thread instead of writing to
4793 inferior_ptid directly.
4794
4795 2020-06-18 Pedro Alves <palves@redhat.com>
4796
4797 * tracefile-tfile.c (tfile_target_open): Don't write to
4798 inferior_ptid directly, instead switch to added thread.
4799 (tfile_target::close): Use switch_to_no_thread instead of writing
4800 to inferior_ptid directly.
4801
4802 2020-06-18 Pedro Alves <palves@redhat.com>
4803
4804 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
4805 (procfs_target::detach): Use switch_to_no_thread
4806 instead of writing to inferior_ptid directly.
4807 (do_attach): Change return type to void. Switch to the added
4808 thread.
4809 (procfs_target::create_inferior): Switch to the added thread.
4810 (procfs_do_thread_registers): Don't write to inferior_ptid.
4811
4812 2020-06-18 Pedro Alves <palves@redhat.com>
4813
4814 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
4815 of writing to inferior_ptid.
4816 (scoped_restore_exited_inferior): Delete.
4817 (handle_vfork_child_exec_or_exit): Simplify using
4818 scoped_restore_current_pspace_and_thread. Use switch_to_thread
4819 instead of writing to inferior_ptid.
4820 (THREAD_STOPPED_BY): Delete.
4821 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
4822 (thread_stopped_by_hw_breakpoint): Delete.
4823 (save_waitstatus): Use
4824 scoped_restore_current_thread+switch_to_thread, and call
4825 target_stopped_by_watchpoint instead of
4826 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
4827 instead of thread_stopped_by_sw_breakpoint, and
4828 target_stopped_by_hw_breakpoint instead of
4829 thread_stopped_by_hw_breakpoint.
4830 (handle_inferior_event)
4831 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
4832 inferior_ptid directly, nor
4833 set_current_inferior/set_current_program_space. Use
4834 switch_to_thread / switch_to_inferior_no_thread instead.
4835
4836 2020-06-18 Pedro Alves <palves@redhat.com>
4837
4838 * target.c (generic_mourn_inferior): Use switch_to_no_thread
4839 instead of writing to inferior_ptid.
4840
4841 2020-06-18 Pedro Alves <palves@redhat.com>
4842
4843 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
4844 added thread.
4845 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
4846 to the added thread.
4847 (inf_ptrace_target::detach_success): Use switch_to_no_thread
4848 instead of writing to inferior_ptid.
4849
4850 2020-06-18 Pedro Alves <palves@redhat.com>
4851
4852 * gdbarch-selftests.c: Include "progspace-and-thread.h".
4853 (register_to_value_test): Mock a program_space too. Heap-allocate
4854 the address space. Don't write to inferior_ptid. Use
4855 switch_to_thread instead.
4856
4857 2020-06-18 Pedro Alves <palves@redhat.com>
4858
4859 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
4860 Delete.
4861 (find_signalled_thread()): New, factored out from
4862 linux_make_corefile_notes and adjusted to handle exited threads.
4863 (linux_make_corefile_notes): Adjust to use the new
4864 find_signalled_thread.
4865
4866 2020-06-18 Pedro Alves <palves@redhat.com>
4867
4868 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
4869 of saving/restoring inferior_ptid.
4870
4871 2020-06-17 Tom Tromey <tom@tromey.com>
4872
4873 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
4874 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
4875 declare.
4876 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
4877
4878 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
4879
4880 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
4881 of partial symtabs.
4882
4883 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
4884
4885 * regformats/reg-arm.dat: Remove.
4886 * regformats/reg-bfin.dat: Remove.
4887 * regformats/reg-cris.dat: Remove.
4888 * regformats/reg-crisv32.dat: Remove.
4889 * regformats/reg-m32r.dat: Remove.
4890 * regformats/reg-tilegx.dat: Remove.
4891 * regformats/reg-tilegx32.dat: Remove.
4892
4893 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
4894
4895 * features/Makefile (WHICH): Remove arm files.
4896 * regformats/arm/arm-with-iwmmxt.dat: Remove.
4897 * regformats/arm/arm-with-neon.dat: Remove.
4898 * regformats/arm/arm-with-vfpv2.dat: Remove.
4899 * regformats/arm/arm-with-vfpv3.dat: Remove.
4900
4901 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
4902
4903 * features/Makefile (XMLTOC): Remove rx.xml.
4904
4905 2020-06-17 Pedro Alves <palves@redhat.com>
4906
4907 * gdbthread.h (thread_control_state) <trap_expected> Update
4908 comments.
4909
4910 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4911
4912 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
4913 ada_language::lookup_symbol_nonlocal.
4914 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
4915 (ada_language::lookup_symbol_nonlocal): New member function,
4916 implementation from ada_lookup_symbol_nonlocal.
4917 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
4918 initializer.
4919 (cplus_language_data): Delete la_lookup_symbol_nonlocal
4920 initializer.
4921 (cplus_language::lookup_symbol_nonlocal): New member function.
4922 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
4923 (minimal_language_data) Likewise.
4924 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
4925 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
4926 initializer.
4927 (d_language::lookup_symbol_nonlocal): New member function.
4928 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
4929 initializer.
4930 (f_language::lookup_symbol_nonlocal): New member function.
4931 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
4932 initializer.
4933 * language.c (unknown_language_data): Likewise.
4934 (auto_language_data): Likewise.
4935 * language.h (language_data): Delete la_lookup_symbol_nonlocal
4936 field.
4937 (language_defn::lookup_symbol_nonlocal): New member function.
4938 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
4939 initializer.
4940 * objc-lang.c (objc_language_data): Likewise.
4941 * opencl-lang.c (opencl_language_data): Likewise.
4942 * p-lang.c (pascal_language_data): Likewise.
4943 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
4944 rust_language::lookup_symbol_nonlocal.
4945 (rust_language_data): Delete la_lookup_symbol_nonlocal
4946 initializer.
4947 (rust_language::lookup_symbol_nonlocal): New member function,
4948 implementation from rust_lookup_symbol_nonlocal.
4949 * symtab.c (lookup_symbol_aux): Update call to
4950 lookup_symbol_nonlocal.
4951 (basic_lookup_symbol_nonlocal): Rename to...
4952 (language_defn::lookup_symbol_nonlocal): ...this, and update
4953 header comment. Remove language_defn parameter, and replace with
4954 uses of `this'.
4955 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
4956
4957 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4958
4959 * ada-lang.c (ada_language_data): Delete la_value_print_inner
4960 initializer.
4961 (ada_language::value_print_inner): New member function.
4962 * c-lang.c (c_language_data): Delete la_value_print_inner
4963 initializer.
4964 (cplus_language_data): Likewise.
4965 (asm_language_data): Likewise.
4966 (minimal_language_data): Likewise.
4967 * d-lang.c (d_language_data): Likewise.
4968 (d_language::value_print_inner): New member function.
4969 * f-lang.c (f_language_data): Delete la_value_print_inner
4970 initializer.
4971 (f_language::value_print_inner): New member function.
4972 * f-lang.h (f_value_print_innner): Rename to...
4973 (f_value_print_inner): ...this (note spelling of 'inner').
4974 * f-valprint.c (f_value_print_innner): Rename to...
4975 (f_value_print_inner): ...this (note spelling of 'inner').
4976 * go-lang.c (go_language_data): Delete la_value_print_inner
4977 initializer.
4978 (go_language::value_print_inner): New member function.
4979 * language.c (language_defn::value_print_inner): Define new member
4980 function.
4981 (unk_lang_value_print_inner): Delete.
4982 (unknown_language_data): Delete la_value_print_inner initializer.
4983 (unknown_language::value_print_inner): New member function.
4984 (auto_language_data): Delete la_value_print_inner initializer.
4985 (auto_language::value_print_inner): New member function.
4986 * language.h (language_data): Delete la_value_print_inner field.
4987 (language_defn::value_print_inner): Delcare new member function.
4988 * m2-lang.c (m2_language_data): Delete la_value_print_inner
4989 initializer.
4990 (m2_language::value_print_inner): New member function.
4991 * objc-lang.c (objc_language_data): Delete la_value_print_inner
4992 initializer.
4993 * opencl-lang.c (opencl_language_data): Likewise.
4994 * p-lang.c (pascal_language_data): Likewise.
4995 (pascal_language::value_print_inner): New member function.
4996 * rust-lang.c (rust_language_data): Delete la_value_print_inner
4997 initializer.
4998 (rust_language::value_print_inner): New member function.
4999 * valprint.c (do_val_print): Update call to value_print_inner.
5000
5001 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5002
5003 * ada-lang.c (ada_language_data): Delete la_value_print
5004 initializer.
5005 (ada_language::value_print): New member function.
5006 * c-lang.c (c_language_data): Delete la_value_print initializer.
5007 (cplus_language_data): Likewise.
5008 (asm_language_data): Likewise.
5009 (minimal_language_data): Likewise.
5010 * d-lang.c (d_language_data): Likewise.
5011 * f-lang.c (f_language_data): Likewise.
5012 * go-lang.c (go_language_data): Likewise.
5013 * language.c (unk_lang_value_print): Delete.
5014 (language_defn::value_print): Define new member function.
5015 (unknown_language_data): Delete la_value_print initializer.
5016 (unknown_language::value_print): New member function.
5017 (auto_language_data): Delete la_value_print initializer.
5018 (auto_language::value_print): New member function.
5019 * language.h (language_data): Delete la_value_print field.
5020 (language_defn::value_print): Declare new member function.
5021 (LA_VALUE_PRINT): Update call to value_print.
5022 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
5023 * objc-lang.c (objc_language_data): Likewise.
5024 * opencl-lang.c (opencl_language_data): Likewise.
5025 * p-lang.c (pascal_language_data): Likewise.
5026 (pascal_language::value_print): New member function.
5027 * rust-lang.c (rust_language_data): Delete la_value_print
5028 initializer.
5029
5030 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5031
5032 * ada-lang.c (ada_watch_location_expression): Rename to
5033 ada_language::watch_location_expression.
5034 (ada_language_data): Delete la_watch_location_expression
5035 initializer.
5036 (ada_language::watch_location_expression): New member function,
5037 implementation from ada_watch_location_expression.
5038 * breakpoint.c (watch_command_1): Update call to
5039 watch_location_expression.
5040 * c-lang.c (c_watch_location_expression): Rename to
5041 language_defn::watch_location_expression.
5042 (c_language_data): Delete la_watch_location_expression
5043 initializer.
5044 (cplus_language_data): Likewise.
5045 (asm_language_data): Likewise.
5046 (minimal_language_data): Likewise.
5047 * c-lang.h (c_watch_location_expression): Delete declaration.
5048 * d-lang.c (d_language_data): Delete la_watch_location_expression
5049 initializer.
5050 * f-lang.c (f_language_data): Likewise.
5051 * go-lang.c (go_language_data): Likewise.
5052 * language.c (language_defn::watch_location_expression): Member
5053 function implementation from c_watch_location_expression.
5054 (unknown_language_data): Delete la_watch_location_expression
5055 initializer.
5056 (auto_language_data): Likewise.
5057 * language.h (language_data): Delete la_watch_location_expression
5058 field.
5059 (language_defn::watch_location_expression): Declare new member
5060 function.
5061 * m2-lang.c (m2_language_data): Delete
5062 la_watch_location_expression initializer.
5063 * objc-lang.c (objc_language_data): Likewise.
5064 * opencl-lang.c (opencl_language_data): Likewise.
5065 * p-lang.c (pascal_language_data): Likewise.
5066 * rust-lang.c (rust_watch_location_expression): Rename to
5067 rust_language::watch_location_expression.
5068 (rust_language_data): Delete la_watch_location_expression
5069 initializer.
5070 (rust_language::watch_location_expression): New member function,
5071 implementation from rust_watch_location_expression.
5072
5073 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5074
5075 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
5076 ada_language::collect_symbol_completion_matches.
5077 (ada_language_data): Delete la_collect_symbol_completion_matches
5078 initializer.
5079 (ada_language::collect_symbol_completion_matches): New member
5080 function, implementation from
5081 ada_collect_symbol_completion_matches.
5082 * c-lang.c (c_language_data): Delete
5083 la_collect_symbol_completion_matches initializer.
5084 (cplus_language_data): Likewise.
5085 (asm_language_data): Likewise.
5086 (minimal_language_data): Likewise.
5087 * d-lang.c (d_language_data): Likewise.
5088 * f-lang.c (f_collect_symbol_completion_matches): Rename to
5089 f_language::collect_symbol_completion_matches.
5090 (f_language_data): Delete la_collect_symbol_completion_matches
5091 initializer.
5092 (f_language::collect_symbol_completion_matches) New member
5093 function, implementation from f_collect_symbol_completion_matches.
5094 * go-lang.c (go_language_data): Delete
5095 la_collect_symbol_completion_matches initializer.
5096 * language.c (unknown_language_data): Likewise.
5097 (auto_language_data): Likewise.
5098 * language.h (language_data): Delete
5099 la_collect_symbol_completion_matches field.
5100 (language_defn::collect_symbol_completion_matches): New member
5101 function.
5102 * m2-lang.c (m2_language_data): Delete
5103 la_collect_symbol_completion_matches initializer.
5104 * objc-lang.c (objc_language_data): Likewise.
5105 * opencl-lang.c (opencl_language_data): Likewise.
5106 * p-lang.c (pascal_language_data): Likewise.
5107 * rust-lang.c (rust_language_data): Likewise.
5108 * symtab.c (default_collect_symbol_completion_matches): Delete.
5109 (collect_symbol_completion_matches): Update call to
5110 collect_symbol_completion_matches.
5111 (collect_symbol_completion_matches_type): Likewise.
5112 * symtab.h (default_collect_symbol_completion_matches): Delete
5113 declaration.
5114
5115 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5116
5117 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
5118 (ada_language_data): Delete la_word_break_characters initializer.
5119 (ada_language::word_break_characters): New member function.
5120 * c-lang.c (c_language_data): Delete la_word_break_characters
5121 initializer.
5122 (cplus_language_data): Likewise.
5123 (asm_language_data): Likewise.
5124 (minimal_language_data): Likewise.
5125 * completer.c: Update global comment.
5126 (advance_to_expression_complete_word_point): Update call to
5127 word_break_characters.
5128 (complete_files_symbols): Likewise.
5129 (complete_line_internal_1): Likewise.
5130 (default_completer_handle_brkchars): Likewise.
5131 (skip_quoted_chars): Likewise.
5132 * d-lang.c (d_language_data): Delete la_word_break_characters
5133 initializer.
5134 * f-lang.c (f_word_break_characters): Delete.
5135 (f_language_data): Delete la_word_break_characters initializer.
5136 (f_language::word_break_characters): New member function.
5137 * go-lang.c (go_language_data): Delete la_word_break_characters
5138 initializer.
5139 * language.c (unknown_language_data): Likewise.
5140 (auto_language_data): Likewise.
5141 * language.h (default_word_break_characters): Move declaration to
5142 earlier in the file.
5143 (language_data): Delete la_word_break_characters field.
5144 (language_defn::word_break_characters): New member function.
5145 * m2-lang.c (m2_language_data): Delete la_word_break_characters
5146 initializer.
5147 * objc-lang.c (objc_language_data): Likewise.
5148 * opencl-lang.c (opencl_language_data): Likewise.
5149 * p-lang.c (pascal_language_data): Likewise.
5150 * rust-lang.c (rust_language_data): Likewise.
5151
5152 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5153
5154 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
5155 (ada_language_data): Delete la_get_symbol_name_matcher
5156 initializer.
5157 (language_defn::get_symbol_name_matcher_inner): New member
5158 function.
5159 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
5160 initializer.
5161 (cplus_language_data): Likewise.
5162 (cplus_language::get_symbol_name_matcher_inner): New member
5163 function.
5164 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
5165 (minimal_language_data): Likewise.
5166 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
5167 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
5168 initializer.
5169 * dictionary.c (iter_match_first_hashed): Update call to
5170 get_symbol_name_matcher.
5171 (iter_match_next_hashed): Likewise.
5172 (iter_match_next_linear): Likewise.
5173 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
5174 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
5175 initializer.
5176 (f_language::get_symbol_name_matcher_inner): New member function.
5177 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
5178 initializer.
5179 * language.c (default_symbol_name_matcher): Update header comment,
5180 make static.
5181 (language_defn::get_symbol_name_matcher): New definition.
5182 (language_defn::get_symbol_name_matcher_inner): Likewise.
5183 (get_symbol_name_matcher): Delete.
5184 (unknown_language_data): Delete la_get_symbol_name_matcher
5185 initializer.
5186 (auto_language_data): Likewise.
5187 * language.h (language_data): Delete la_get_symbol_name_matcher
5188 field.
5189 (language_defn::get_symbol_name_matcher): New member function.
5190 (language_defn::get_symbol_name_matcher_inner): Likewise.
5191 (default_symbol_name_matcher): Delete declaration.
5192 * linespec.c (find_methods): Update call to
5193 get_symbol_name_matcher.
5194 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
5195 initializer.
5196 * minsyms.c (lookup_minimal_symbol): Update call to
5197 get_symbol_name_matcher.
5198 (iterate_over_minimal_symbols): Likewise.
5199 * objc-lang.c (objc_language_data): Delete
5200 la_get_symbol_name_matcher initializer.
5201 * opencl-lang.c (opencl_language_data): Likewise.
5202 * p-lang.c (pascal_language_data): Likewise.
5203 * psymtab.c (psymbol_name_matches): Update call to
5204 get_symbol_name_matcher.
5205 * rust-lang.c (rust_language_data): Delete
5206 la_get_symbol_name_matcher initializer.
5207 * symtab.c (symbol_matches_search_name): Update call to
5208 get_symbol_name_matcher.
5209 (compare_symbol_name): Likewise.
5210
5211 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5212
5213 * ada-lang.c (ada_language_data): Delete la_compute_program
5214 initializer.
5215 * c-lang.c (c_language_data): Likewise.
5216 (c_language::compute_program): New member function.
5217 (cplus_language_data): Delete la_compute_program initializer.
5218 (cplus_language::compute_program): New member function.
5219 (asm_language_data): Delete la_compute_program initializer.
5220 (minimal_language_data): Likewise.
5221 * c-lang.h (c_compute_program): Update comment.
5222 (cplus_compute_program): Likewise.
5223 * compile/compile-c-support.c (c_compute_program): Likewise.
5224 (cplus_compute_program): Likewise.
5225 * compile/compile.c (compile_to_object): Update call to
5226 la_compute_program.
5227 * d-lang.c (d_language_data): Delete la_compute_program
5228 initializer.
5229 * f-lang.c (f_language_data): Likewise.
5230 * go-lang.c (go_language_data): Likewise.
5231 * language.c (unknown_language_data): Likewise.
5232 (auto_language_data): Likewise.
5233 * language.h (language_data): Delete la_compute_program field.
5234 (language_defn::compute_program): New member function.
5235 * m2-lang.c (m2_language_data): Delete la_compute_program
5236 initializer.
5237 * objc-lang.c (objc_language_data): Likewise.
5238 * opencl-lang.c (opencl_language_data): Likewise.
5239 * p-lang.c (pascal_language_data): Likewise.
5240 * rust-lang.c (rust_language_data): Likewise.
5241
5242 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5243
5244 * ada-lang.c (ada_language_data) Delete
5245 la_class_name_from_physname initializer.
5246 * c-lang.c (c_language_data): Likewise.
5247 (cplus_language_data): Likewise.
5248 (cplus_language::class_name_from_physname): New member function.
5249 (asm_language_data): Delete la_class_name_from_physname
5250 initializer.
5251 (minimal_language_data): Likewise.
5252 * d-lang.c (d_language_data): Likewise.
5253 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
5254 method on language_defn class.
5255 (guess_full_die_structure_name): Likewise.
5256 * f-lang.c (f_language_data): Delete la_class_name_from_physname
5257 initializer.
5258 * go-lang.c (go_language_data): Likewise.
5259 * language.c (language_class_name_from_physname): Delete.
5260 (unk_lang_class_name): Delete.
5261 (unknown_language_data): Delete la_class_name_from_physname
5262 initializer.
5263 (auto_language_data): Likewise.
5264 * language.h (language_data): Delete la_class_name_from_physname
5265 field.
5266 (language_defn::class_name_from_physname): New function.
5267 (language_class_name_from_physname): Delete declaration.
5268 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
5269 initializer.
5270 * objc-lang.c (objc_language_data): Likewise.
5271 * opencl-lang.c (opencl_language_data): Likewise.
5272 * p-lang.c (pascal_language_data): Likewise.
5273 * rust-lang.c (rust_language_data): Likewise.
5274
5275 2020-06-16 Tom Tromey <tom@tromey.com>
5276
5277 * tui/tui-data.h (STATUS_NAME): New macro.
5278 * tui/tui-layout.c (tui_remove_some_windows)
5279 (initialize_known_windows, tui_register_window)
5280 (tui_layout_split::remove_windows, initialize_layouts)
5281 (tui_new_layout_command): Don't use hard-coded window names.
5282
5283 2020-06-16 Tom Tromey <tom@tromey.com>
5284
5285 PR tui/25348:
5286 * tui/tui.c (tui_ensure_readline_initialized): Rename from
5287 tui_initialize_readline. Only run once. Call rl_initialize.
5288 * tui/tui.h (tui_ensure_readline_initialized): Rename from
5289 tui_initialize_readline.
5290 * tui/tui-io.c (tui_setup_io): Call
5291 tui_ensure_readline_initialized.
5292 * tui/tui-interp.c (tui_interp::init): Update.
5293
5294 2020-06-16 Tom Tromey <tom@tromey.com>
5295
5296 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
5297 Also preserve the status window.
5298
5299 2020-06-16 Tom Tromey <tom@tromey.com>
5300
5301 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
5302 where m_window==nullptr.
5303
5304 2020-06-15 Tom Tromey <tromey@adacore.com>
5305
5306 * windows-nat.c (windows_nat::handle_output_debug_string):
5307 Update.
5308 (windows_nat::handle_ms_vc_exception): Update.
5309 * target.h (target_read_string): Change API.
5310 * target.c (target_read_string): Change API.
5311 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
5312 Update.
5313 * solib-frv.c (frv_current_sos): Update.
5314 * solib-dsbt.c (dsbt_current_sos): Update.
5315 * solib-darwin.c (darwin_current_sos): Update.
5316 * linux-thread-db.c (inferior_has_bug): Update.
5317 * expprint.c (print_subexp_standard): Update.
5318 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
5319 (ada_exception_message_1): Update.
5320
5321 2020-06-15 Tom Tromey <tromey@adacore.com>
5322
5323 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
5324
5325 2020-06-15 Tom Tromey <tromey@adacore.com>
5326
5327 * valprint.c (read_string): Update comment.
5328 * target.c (MIN): Remove.
5329 (target_read_string): Rewrite.
5330
5331 2020-06-15 Tom Tromey <tromey@adacore.com>
5332
5333 * corefile.c (read_memory_string): Remove.
5334 * ada-valprint.c (ada_value_print_ptr): Update.
5335 * ada-lang.h (ada_tag_name): Change return type.
5336 * ada-lang.c (type_from_tag): Update.
5337 (ada_tag_name_from_tsd): Change return type. Use
5338 target_read_string.
5339 (ada_tag_name): Likewise.
5340 * gdbcore.h (read_memory_string): Don't declare.
5341
5342 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
5343
5344 * symtab.c (rbreak_command): Ignore Windows drive colon.
5345
5346 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
5347
5348 * NEWS: Mention removed GDBserver host support.
5349
5350 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
5351
5352 * features/riscv/rebuild-csr-xml.sh: Updated.
5353
5354 2020-06-11 Tom Tromey <tom@tromey.com>
5355
5356 PR gdb/18318:
5357 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
5358
5359 2020-06-09 Jonny Grant <jg@jguk.org>
5360 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
5361
5362 * main.c (captured_main_1): Don't print new line after help.
5363 (print_gdb_help): add mailing list and IRC channel information
5364 to --help. Add new lines between items in the footer. Remove
5365 quotes around bug url.
5366
5367 2020-06-11 Keith Seitz <keiths@redhat.com>
5368
5369 PR gdb/21356
5370 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
5371 Resolve typedefs for type length calculations.
5372
5373 2020-06-10 Tom de Vries <tdevries@suse.de>
5374
5375 PR ada/24713
5376 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
5377 (write_psymbols): Enable .gdb_index for ada.
5378 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
5379 ada.
5380
5381 2020-06-10 Tom de Vries <tdevries@suse.de>
5382
5383 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
5384 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
5385 namei" instead of "const char *name" argument.
5386 (dw2_map_matching_symbols): Use "offset_type namei" variant of
5387 dw2_symtab_iter_init.
5388
5389 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
5390
5391 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
5392 to use type::field and field::type instead.
5393
5394 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
5395
5396 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
5397 to use field::type instead.
5398
5399 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
5400
5401 * gdbtypes.h (struct field) <type, set_type>: New methods.
5402 Rename `type` field to...
5403 <m_type>: ... this. Change references throughout to use type or
5404 set_type methods.
5405 (FIELD_TYPE): Use field::type. Change call sites that modify
5406 the field's type to use field::set_type instead.
5407
5408 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
5409
5410 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
5411 to use type::index_type instead.
5412
5413 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
5414
5415 * gdbtypes.h (struct type) <index_type, set_index_type>: New
5416 methods.
5417 (TYPE_INDEX_TYPE): Use type::index_type.
5418 * gdbtypes.c (create_array_type_with_stride): Likewise.
5419
5420 2020-06-07 Tom Tromey <tom@tromey.com>
5421
5422 * valprint.c (generic_val_print_float): Remove "embedded_offset"
5423 parameter.
5424 (generic_value_print): Update.
5425
5426 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
5427
5428 Revert commit 982a38f60b0.
5429 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
5430
5431 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
5432
5433 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
5434 avoid use after free.
5435
5436 2020-06-05 Tom de Vries <tdevries@suse.de>
5437
5438 * NEWS: Fix typos.
5439
5440 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
5441
5442 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
5443 the per_bfd object.
5444 (dwarf2_read_debug_names): Likewise.
5445 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
5446 object when re-using a per_bfd object with an index.
5447
5448 2020-06-03 Tom de Vries <tdevries@suse.de>
5449
5450 PR symtab/26046
5451 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
5452 children for C++.
5453 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
5454 DW_TAG_subprogram.
5455
5456 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5457
5458 * ada-lang.c (ada_language_data): Delete skip_trampoline
5459 initializer.
5460 * c-lang.c (c_language_data): Likewise.
5461 (cplus_language_data): Likewise.
5462 (cplus_language::skip_trampoline): New member function.
5463 (asm_language_data): Delete skip_trampoline initializer.
5464 (minimal_language_data): Likewise.
5465 * d-lang.c (d_language_data): Likewise.
5466 * f-lang.c (f_language_data): Likewise.
5467 * go-lang.c (go_language_data): Likewise.
5468 * language.c (unk_lang_trampoline): Delete function.
5469 (skip_language_trampoline): Update.
5470 (unknown_language_data): Delete skip_trampoline initializer.
5471 (auto_language_data): Likewise.
5472 * language.h (language_data): Delete skip_trampoline field.
5473 (language_defn::skip_trampoline): New function.
5474 * m2-lang.c (m2_language_data): Delete skip_trampoline
5475 initializer.
5476 * objc-lang.c (objc_skip_trampoline): Delete function, move
5477 implementation to objc_language::skip_trampoline.
5478 (objc_language_data): Delete skip_trampoline initializer.
5479 (objc_language::skip_trampoline): New member function with
5480 implementation from objc_skip_trampoline.
5481 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
5482 initializer.
5483 * p-lang.c (pascal_language_data): Likewise.
5484 * rust-lang.c (rust_language_data): Likewise.
5485
5486 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5487
5488 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
5489 (ada_language::demangle): New member function.
5490 * c-lang.c (c_language_data): Delete la_demangle initializer.
5491 (cplus_language_data): Delete la_demangle initializer.
5492 (cplus_language::demangle): New member function.
5493 (asm_language_data): Delete la_demangle initializer.
5494 (minimal_language_data): Delete la_demangle initializer.
5495 * d-lang.c (d_language_data): Delete la_demangle initializer.
5496 (d_language::demangle): New member function.
5497 * f-lang.c (f_language_data): Delete la_demangle initializer.
5498 (f_language::demangle): New member function.
5499 * go-lang.c (go_language_data): Delete la_demangle initializer.
5500 (go_language::demangle): New member function.
5501 * language.c (language_demangle): Update.
5502 (unk_lang_demangle): Delete.
5503 (unknown_language_data): Delete la_demangle initializer.
5504 (unknown_language::demangle): New member function.
5505 (auto_language_data): Delete la_demangle initializer.
5506 (auto_language::demangle): New member function.
5507 * language.h (language_data): Delete la_demangle field.
5508 (language_defn::demangle): New function.
5509 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
5510 * objc-lang.c (objc_language_data): Delete la_demangle
5511 initializer.
5512 (objc_language::demangle): New member function.
5513 * opencl-lang.c (opencl_language_data): Delete la_demangle
5514 initializer.
5515 * p-lang.c (pascal_language_data): Likewise.
5516 * rust-lang.c (rust_language_data): Likewise.
5517 (rust_language::demangle): New member function.
5518
5519 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5520
5521 * ada-lang.c (ada_language_data): Delete la_print_type
5522 initializer.
5523 (ada_language::print_type): New member function.
5524 * c-lang.c (c_language_data): Delete la_print_type initializer.
5525 (c_language::print_type): New member function.
5526 (cplus_language_data): Delete la_print_type initializer.
5527 (cplus_language::print_type): New member function.
5528 (asm_language_data): Delete la_print_type initializer.
5529 (asm_language::print_type): New member function.
5530 (minimal_language_data): Delete la_print_type initializer.
5531 (minimal_language::print_type): New member function.
5532 * d-lang.c (d_language_data): Delete la_print_type initializer.
5533 (d_language::print_type): New member function.
5534 * f-lang.c (f_language_data): Delete la_print_type initializer.
5535 (f_language::print_type): New member function.
5536 * go-lang.c (go_language_data): Delete la_print_type initializer.
5537 (go_language::print_type): New member function.
5538 * language.c (unk_lang_print_type): Delete.
5539 (unknown_language_data): Delete la_print_type initializer.
5540 (unknown_language::print_type): New member function.
5541 (auto_language_data): Delete la_print_type initializer.
5542 (auto_language::print_type): New member function.
5543 * language.h (language_data): Delete la_print_type field.
5544 (language_defn::print_type): New function.
5545 (LA_PRINT_TYPE): Update.
5546 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
5547 (m2_language::print_type): New member function.
5548 * objc-lang.c (objc_language_data): Delete la_print_type
5549 initializer.
5550 (objc_language::print_type): New member function.
5551 * opencl-lang.c (opencl_print_type): Delete, implementation moved
5552 to opencl_language::print_type.
5553 (opencl_language_data): Delete la_print_type initializer.
5554 (opencl_language::print_type): New member function, implementation
5555 from opencl_print_type.
5556 * p-lang.c (pascal_language_data): Delete la_print_type
5557 initializer.
5558 (pascal_language::print_type): New member function.
5559 * rust-lang.c (rust_print_type): Delete, implementation moved to
5560 rust_language::print_type.
5561 (rust_language_data): Delete la_print_type initializer.
5562 (rust_language::print_type): New member function, implementation
5563 from rust_print_type.
5564
5565 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5566
5567 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
5568 implementation moves to...
5569 (ada_language::sniff_from_mangled_name): ...here. Update return
5570 type.
5571 (ada_language_data): Delete la_sniff_from_mangled_name
5572 initializer.
5573 * c-lang.c (c_language_data): Likewise.
5574 (cplus_language_data): Likewise.
5575 (cplus_language::sniff_from_mangled_name): New member function,
5576 implementation taken from gdb_sniff_from_mangled_name.
5577 (asm_language_data): Delete la_sniff_from_mangled_name
5578 initializer.
5579 (minimal_language_data): Likewise.
5580 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
5581 implementation moves to cplus_language::sniff_from_mangled_name.
5582 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
5583 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
5584 moves to...
5585 (d_language::sniff_from_mangled_name): ...here.
5586 (d_language_data): Delete la_sniff_from_mangled_name initializer.
5587 * f-lang.c (f_language_data): Likewise.
5588 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
5589 moves to...
5590 (go_language::sniff_from_mangled_name): ...here.
5591 (go_language_data): Delete la_sniff_from_mangled_name initializer.
5592 * language.c (language_sniff_from_mangled_name): Delete.
5593 (unknown_language_data): Delete la_sniff_from_mangled_name
5594 initializer.
5595 (auto_language_data): Likewise.
5596 * language.h (language_data): Delete la_sniff_from_mangled_name
5597 field.
5598 (language_defn::sniff_from_mangled_name): New function.
5599 (language_sniff_from_mangled_name): Delete declaration.
5600 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
5601 field.
5602 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
5603 implementation moves to...
5604 (objc_language::sniff_from_mangled_name): ...here.
5605 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
5606 * opencl-lang.c (opencl_language_data): Likewise.
5607 * p-lang.c (pascal_language_data): Likewise.
5608 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
5609 implementation moves to...
5610 (rust_language::sniff_from_mangled_name): ...here.
5611 (rust_language_data): Delete la_sniff_from_mangled_name
5612 initializer.
5613 * symtab.c (symbol_find_demangled_name): Call
5614 sniff_from_mangled_name member function.
5615
5616 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5617
5618 * ada-lang.c (ada_language_data): Delete la_search_name_hash
5619 initializer.
5620 * c-lang.c (c_language_data): Likewise.
5621 (cplus_language_data): Likewise.
5622 (cplus_language::search_name_hash): New member function.
5623 (asm_language_data): Delete la_search_name_hash initializer.
5624 (minimal_language_data): Likewise.
5625 * d-lang.c (d_language_data): Likewise.
5626 * dictionary.c (default_search_name_hash): Rename to...
5627 (language_defn::search_name_hash): ...this.
5628 * f-lang.c (f_language_data): Likewise.
5629 (f_language::search_name_hash): New member function.
5630 * go-lang.c (go_language_data): Delete la_search_name_hash
5631 initializer.
5632 * language.c (unknown_language_data): Likewise.
5633 (auto_language_data): Likewise.
5634 * language.h (struct language_data): Delete la_search_name_hash
5635 field.
5636 (language_defn::search_name_hash): Declare new member function.
5637 (default_search_name_hash): Delete declaration.
5638 * m2-lang.c (m2_language_data): Delete la_search_name_hash
5639 initializer.
5640 * objc-lang.c (objc_language_data): Likewise.
5641 * opencl-lang.c (opencl_language_data): Likewise.
5642 * p-lang.c (pascal_language_data): Likewise.
5643 * rust-lang.c (rust_language_data): Likewise.
5644 * symtab.c (search_name_hash): Update call.
5645
5646 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5647
5648 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
5649 initializer.
5650 * c-lang.c (class compile_instance): Declare.
5651 (c_language_data): Delete la_get_compile_instance initializer.
5652 (c_language::get_compile_instance): New member function.
5653 (cplus_language_data): Delete la_get_compile_instance initializer.
5654 (cplus_language::get_compile_instance): New member function.
5655 (asm_language_data): Delete la_get_compile_instance initializer.
5656 (minimal_language_data): Likewise.
5657 * c-lang.h (c_get_compile_context): Update comment.
5658 (cplus_get_compile_context): Update comment.
5659 * compile/compile.c (compile_to_object): Update calls, don't rely
5660 on function pointer being NULL.
5661 * d-lang.c (d_language_data): Delete la_get_compile_instance
5662 initializer.
5663 * f-lang.c (f_language_data): Likewise.
5664 * go-lang.c (go_language_data): Likewise.
5665 * language.c (unknown_language_data): Likewise.
5666 (auto_language_data): Likewise.
5667 * language.h (language_data): Delete la_get_compile_instance field.
5668 (language_defn::get_compile_instance): New member function.
5669 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
5670 initializer.
5671 * objc-lang.c (objc_language_data): Likewise.
5672 * opencl-lang.c (opencl_language_data): Likewise.
5673 * p-lang.c (pascal_language_data): Likewise.
5674 * rust-lang.c (rust_language_data): Likewise.
5675
5676 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5677
5678 * ada-lang.c (ada_add_all_symbols): Update comment.
5679 (ada_iterate_over_symbols): Delete, move implementation to...
5680 (ada_language::iterate_over_symbols): ...here, a new member
5681 function, rewrite to use range based for loop.
5682 (ada_language_data): Delete la_iterate_over_symbols initializer.
5683 * c-lang.c (c_language_data): Likewise.
5684 (cplus_language_data): Likewise.
5685 (asm_language_data): Likewise.
5686 (minimal_language_data): Likewise.
5687 * d-lang.c (d_language_data): Likewise.
5688 * f-lang.c (f_language_data): Likewise.
5689 * go-lang.c (go_language_data): Likewise.
5690 * language.c (unknown_language_data): Likewise.
5691 (auto_language_data): Likewise.
5692 * language.h (language_data): Delete la_iterate_over_symbols field.
5693 (language_defn::iterate_over_symbols): New member function.
5694 (LA_ITERATE_OVER_SYMBOLS): Update.
5695 * linespec.c (iterate_over_all_matching_symtabs): Update.
5696 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
5697 initializer.
5698 * objc-lang.c (objc_language_data): Likewise.
5699 * opencl-lang.c (opencl_language_data): Likewise.
5700 * p-lang.c (pascal_language_data): Likewise.
5701 * rust-lang.c (rust_language_data): Likewise.
5702
5703 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5704
5705 * ada-lang.c (ada_language_data): Delete
5706 la_lookup_transparent_type initializer.
5707 * c-lang.c (c_language_data): Likewise.
5708 (cplus_language_data): Likewise.
5709 (cplus_language::lookup_transparent_type): New member function.
5710 (asm_language_data): Delete la_lookup_transparent_type
5711 initializer.
5712 (minimal_language_data): Likewise.
5713 * d-lang.c (d_language_data): Likewise.
5714 * f-lang.c (f_language_data): Likewise.
5715 * go-lang.c (go_language_data): Likewise.
5716 * language.c (unknown_language_data): Likewise.
5717 (auto_language_data): Likewise.
5718 * language.h (struct language_data): Delete
5719 la_lookup_transparent_type field.
5720 (language_defn::lookup_transparent_type): New member function.
5721 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
5722 initializer.
5723 * objc-lang.c (objc_language_data): Likewise.
5724 * opencl-lang.c (opencl_language_data): Likewise.
5725 * p-lang.c (pascal_language_data): Likewise.
5726 * rust-lang.c (rust_language_data): Likewise.
5727 * symtab.c (symbol_matches_domain): Update call.
5728
5729 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5730
5731 * ada-lang.c (ada_language_arch_info): Delete function, move
5732 implementation to...
5733 (ada_language::language_arch_info): ...here, a new member
5734 function.
5735 (ada_language_data): Delete la_language_arch_info.
5736 * c-lang.c (c_language_data): Likewise.
5737 (c_language::language_arch_info): New member function.
5738 (cplus_language_arch_info): Delete function, move
5739 implementation to...
5740 (cplus_language::language_arch_info): ...here, a new member
5741 function.
5742 (cplus_language_data): Delete la_language_arch_info.
5743 (asm_language_data): Likewise.
5744 (asm_language::language_arch_info): New member function.
5745 (minimal_language_data): Delete la_language_arch_info.
5746 (minimal_language::language_arch_info): New member function.
5747 * d-lang.c (d_language_arch_info): Delete function, move
5748 implementation to...
5749 (d_language::language_arch_info): ...here, a new member
5750 function.
5751 (d_language_data): Delete la_language_arch_info.
5752 * f-lang.c (f_language_arch_info): Delete function, move
5753 implementation to...
5754 (f_language::language_arch_info): ...here, a new member
5755 function.
5756 (f_language_data): Delete la_language_arch_info.
5757 * go-lang.c (go_language_arch_info): Delete function, move
5758 implementation to...
5759 (go_language::language_arch_info): ...here, a new member
5760 function.
5761 (go_language_data): Delete la_language_arch_info.
5762 * language.c (unknown_language_data): Likewise.
5763 (unknown_language::language_arch_info): New member function.
5764 (auto_language_data): Delete la_language_arch_info.
5765 (auto_language::language_arch_info): New member function.
5766 (language_gdbarch_post_init): Update call to
5767 la_language_arch_info.
5768 * language.h (language_data): Delete la_language_arch_info
5769 function pointer.
5770 (language_defn::language_arch_info): New function.
5771 * m2-lang.c (m2_language_arch_info): Delete function, move
5772 implementation to...
5773 (m2_language::language_arch_info): ...here, a new member
5774 function.
5775 (m2_language_data): Delete la_language_arch_info.
5776 * objc-lang.c (objc_language_arch_info): Delete function, move
5777 implementation to...
5778 (objc_language::language_arch_info): ...here, a new member
5779 function.
5780 (objc_language_data): Delete la_language_arch_info.
5781 * opencl-lang.c (opencl_language_arch_info): Delete function, move
5782 implementation to...
5783 (opencl_language::language_arch_info): ...here, a new member
5784 function.
5785 (opencl_language_data): Delete la_language_arch_info.
5786 * p-lang.c (pascal_language_arch_info): Delete function, move
5787 implementation to...
5788 (pascal_language::language_arch_info): ...here, a new member
5789 function.
5790 (pascal_language_data): Delete la_language_arch_info.
5791 * rust-lang.c (rust_language_arch_info): Delete function, move
5792 implementation to...
5793 (rust_language::language_arch_info): ...here, a new member
5794 function.
5795 (rust_language_data): Delete la_language_arch_info.
5796
5797 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5798
5799 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
5800 initializer.
5801 * c-lang.c (c_language_data): Likewise.
5802 (cplus_language_data): Likewise.
5803 (cplus_language::pass_by_reference_info): New method.
5804 (asm_language_data): Delete la_pass_by_reference initializer.
5805 (minimal_language_data): Likewise.
5806 * cp-abi.c (cp_pass_by_reference): Remove use of
5807 default_pass_by_reference.
5808 * d-lang.c (d_language_data): Likewise.
5809 * f-lang.c (f_language_data): Likewise.
5810 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
5811 default_pass_by_reference.
5812 * go-lang.c (go_language_data): Likewise.
5813 * language.c (language_pass_by_reference): Update.
5814 (default_pass_by_reference): Delete.
5815 (unknown_language_data): Delete la_pass_by_reference
5816 initializer.
5817 (auto_language_data): Likewise.
5818 * language.h (struct language_data): Delete la_pass_by_reference
5819 field.
5820 (language_defn::pass_by_reference_info): New member function.
5821 (default_pass_by_reference): Delete declaration.
5822 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
5823 initializer.
5824 * objc-lang.c (objc_language_data): Likewise.
5825 * opencl-lang.c (opencl_language_data): Likewise.
5826 * p-lang.c (pascal_language_data): Likewise.
5827 * rust-lang.c (rust_language_data): Likewise.
5828
5829 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5830
5831 * ada-lang.c (ada_read_var_value): Delete function, move
5832 implementation to...
5833 (ada_language::read_var_value): ...here.
5834 (ada_language_data): Delete la_read_var_value initializer.
5835 * c-lang.c (c_language_data): Likewise.
5836 (cplus_language_data): Likewise.
5837 (minimal_language_data): Likewise.
5838 * d-lang.c (d_language_data): Likewise.
5839 * f-lang.c (f_language_data): Likewise.
5840 * findvar.c (default_read_var_value): Rename to...
5841 (language_defn::read_var_value): ...this.
5842 * findvar.c (read_var_value): Update header comment, and change to
5843 call member function instead of function pointer.
5844 * go-lang.c (go_language_data): Likewise.
5845 * language.c (unknown_language_data): Delete la_read_var_value
5846 initializer.
5847 (auto_language_data): Likewise.
5848 * language.h (struct language_data): Delete la_read_var_value
5849 field.
5850 (language_defn::read_var_value): New member function.
5851 (default_read_var_value): Delete declaration.
5852 * m2-lang.c (m2_language_data): Delete la_read_var_value
5853 initializer.
5854 * objc-lang.c (objc_language_data): Likewise.
5855 * opencl-lang.c (opencl_language_data): Likewise.
5856 * p-lang.c (pascal_language_data): Likewise.
5857 * rust-lang.c (rust_language_data): Likewise.
5858 * value.h (default_read_var_value): Delete declaration.
5859
5860 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5861
5862 * ada-lang.c (ada_print_array_index): Delete function, move
5863 implementation to...
5864 (ada_language::print_array_index): ...here.
5865 (ada_language_data): Delete la_print_array_index initializer.
5866 * c-lang.c (c_language_data): Likewise.
5867 (cplus_language_data): Likewise.
5868 (minimal_language_data): Likewise.
5869 * d-lang.c (d_language_data): Likewise.
5870 * f-lang.c (f_language_data): Likewise.
5871 * go-lang.c (go_language_data): Likewise.
5872 * language.c (default_print_array_index): Delete function, move
5873 implementation to...
5874 (language_defn::print_array_index): ...here.
5875 (unknown_language_data): Delete la_print_array_index initializer.
5876 (auto_language_data): Likewise.
5877 * language.h (struct language_data): Delete la_print_array_index
5878 field.
5879 (language_defn::print_array_index): New member function.
5880 (LA_PRINT_ARRAY_INDEX): Update.
5881 (default_print_array_index): Delete declaration.
5882 * m2-lang.c (m2_language_data): Delete la_print_array_index
5883 initializer.
5884 * objc-lang.c (objc_language_data): Likewise.
5885 * opencl-lang.c (opencl_language_data): Likewise.
5886 * p-lang.c (pascal_language_data): Likewise.
5887 * rust-lang.c (rust_language_data): Likewise.
5888
5889 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5890
5891 * gdb/ada-lang.c (ada_language_defn): Convert to...
5892 (ada_language_data): ...this.
5893 (class ada_language): New class.
5894 (ada_language_defn): New static global.
5895 * gdb/c-lang.c (c_language_defn): Convert to...
5896 (c_language_data): ...this.
5897 (class c_language): New class.
5898 (c_language_defn): New static global.
5899 (cplus_language_defn): Convert to...
5900 (cplus_language_data): ...this.
5901 (class cplus_language): New class.
5902 (cplus_language_defn): New static global.
5903 (asm_language_defn): Convert to...
5904 (asm_language_data): ...this.
5905 (class asm_language): New class.
5906 (asm_language_defn): New static global.
5907 (minimal_language_defn): Convert to...
5908 (minimal_language_data): ...this.
5909 (class minimal_language): New class.
5910 (minimal_language_defn): New static global.
5911 * gdb/d-lang.c (d_language_defn): Convert to...
5912 (d_language_data): ...this.
5913 (class d_language): New class.
5914 (d_language_defn): New static global.
5915 * gdb/f-lang.c (f_language_defn): Convert to...
5916 (f_language_data): ...this.
5917 (class f_language): New class.
5918 (f_language_defn): New static global.
5919 * gdb/go-lang.c (go_language_defn): Convert to...
5920 (go_language_data): ...this.
5921 (class go_language): New class.
5922 (go_language_defn): New static global.
5923 * gdb/language.c (unknown_language_defn): Remove declaration.
5924 (current_language): Initialize to nullptr, real initialization is
5925 moved to _initialize_language.
5926 (languages): Delete global.
5927 (language_defn::languages): Define.
5928 (set_language_command): Use language_defn::languages.
5929 (set_language): Likewise.
5930 (range_error): Likewise.
5931 (language_enum): Likewise.
5932 (language_def): Likewise.
5933 (add_set_language_command): Use language_def::languages for the
5934 language list, and language_def to lookup language pointers.
5935 (skip_language_trampoline): Use language_defn::languages.
5936 (unknown_language_defn): Convert to...
5937 (unknown_language_data): ...this.
5938 (class unknown_language): New class.
5939 (unknown_language_defn): New static global.
5940 (auto_language_defn): Convert to...
5941 (auto_language_data): ...this.
5942 (class auto_language): New class.
5943 (auto_language_defn): New static global.
5944 (language_gdbarch_post_init): Use language_defn::languages.
5945 (_initialize_language): Initialize current_language.
5946 * gdb/language.h (struct language_defn): Rename to...
5947 (struct language_data): ...this.
5948 (struct language_defn): New.
5949 (auto_language_defn): Delete.
5950 (unknown_language_defn): Delete.
5951 (minimal_language_defn): Delete.
5952 (ada_language_defn): Delete.
5953 (asm_language_defn): Delete.
5954 (c_language_defn): Delete.
5955 (cplus_language_defn): Delete.
5956 (d_language_defn): Delete.
5957 (f_language_defn): Delete.
5958 (go_language_defn): Delete.
5959 (m2_language_defn): Delete.
5960 (objc_language_defn): Delete.
5961 (opencl_language_defn): Delete.
5962 (pascal_language_defn): Delete.
5963 (rust_language_defn): Delete.
5964 * gdb/m2-lang.c (m2_language_defn): Convert to...
5965 (m2_language_data): ...this.
5966 (class m2_language): New class.
5967 (m2_language_defn): New static global.
5968 * gdb/objc-lang.c (objc_language_defn): Convert to...
5969 (objc_language_data): ...this.
5970 (class objc_language): New class.
5971 (objc_language_defn): New static global.
5972 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
5973 (opencl_language_data): ...this.
5974 (class opencl_language): New class.
5975 (opencl_language_defn): New static global.
5976 * gdb/p-lang.c (pascal_language_defn): Convert to...
5977 (pascal_language_data): ...this.
5978 (class pascal_language): New class.
5979 (pascal_language_defn): New static global.
5980 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
5981 language pointer, update comment format.
5982 * gdb/rust-lang.c (rust_language_defn): Convert to...
5983 (rust_language_data): ...this.
5984 (class rust_language): New class.
5985 (rust_language_defn): New static global.
5986
5987 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
5988
5989 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
5990 member variable.
5991 <m_stmt_at_address>: New member variable.
5992 (lnp_state_machine::record_line): Don't record some lines, update
5993 tracking of is_stmt at the same address.
5994 (lnp_state_machine::lnp_state_machine): Initialise new member
5995 variables.
5996
5997 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
5998
5999 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
6000 "-include gnu-nat-mig.h".
6001 * gnu-nat-mig.h: New file.
6002 * gnu-nat.c: Include "gnu-nat-mig.h".
6003 (exc_server, msg_reply_server, notify_server,
6004 process_reply_server): Remove declarations.
6005
6006 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6007
6008 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
6009 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
6010 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
6011 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
6012 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
6013 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
6014 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
6015 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
6016 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
6017 to gnu_nat_target class.
6018 * gnu-nat.c: Likewise.
6019 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
6020 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
6021 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
6022 object.
6023 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
6024 instead of `gnu_target'.
6025
6026 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6027
6028 * i386-gnu-tdep.c: Include "gdbcore.h"
6029 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
6030 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
6031 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
6032 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
6033 i386_gnu_sigcontext_addr): New functions
6034 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
6035 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
6036 tdep.
6037
6038 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6039
6040 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
6041 before fork_inferior call. Avoid calling it if target_is_pushed returns
6042 true.
6043
6044 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6045
6046 * gnu-nat.h (gnu_target): New variable declaration.
6047 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
6048 gnu_target.
6049 * gnu-nat.c (gnu_target): New variable.
6050 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
6051 add_thread_silent, and add_thread calls.
6052 (gnu_nat_target::create_inferior): Pass gnu_target to
6053 add_thread_silent, thread_change_ptid call.
6054 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
6055 call.
6056
6057 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6058
6059 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
6060 (gnu_nat_target::find_memory_regions): Remove unused
6061 `old_address' variable.
6062
6063 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6064
6065 * gnu-nat.c: Include "gdbarch.h".
6066
6067 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6068
6069 * reply_mig_hack.awk (Error return): Cast function through
6070 void *, to bypass compiler function call check.
6071
6072 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6073
6074 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
6075 $(srcdir)/reply_mig_hack.awk.
6076
6077 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6078
6079 * gnu-nat.h (gnu_debug_flag): Set type to bool.
6080
6081 2020-05-30 Jonny Grant <jg@jguk.org>
6082
6083 * configure.ac (ACX_BUGURL): change bug URL to https.
6084
6085 2020-05-30 Pedro Alves <palves@redhat.com>
6086
6087 * cp-support.c (replace_typedefs_template): New.
6088 (replace_typedefs_qualified_name): Handle
6089 DEMANGLE_COMPONENT_TEMPLATE.
6090
6091 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
6092
6093 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
6094 dwarf2/index-cache.h, dwarf2/index-write.c,
6095 dwarf2/index-write.h, dwarf2/line-header.c,
6096 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
6097 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
6098 variables and fields from `dwarf2_per_objfile` to just
6099 `per_objfile` throughout.
6100
6101 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
6102
6103 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6104 <push_dwarf_reg_entry_value>: Add comment.
6105
6106 2020-05-28 Kevin Buettner <kevinb@redhat.com>
6107 Keith Seitz <keiths@redhat.com>
6108
6109 * python/python.c (do_start_initialization): Call PyEval_SaveThread
6110 instead of PyEval_ReleaseLock.
6111 (class gdbpy_gil): Move to earlier in file.
6112 (finalize_python): Set gdb_python_initialized.
6113 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
6114 when not initialized.
6115
6116 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
6117
6118 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6119 <push_dwarf_reg_entry_value>: Remove assert. Override
6120 per_objfile with caller_per_objfile.
6121
6122 2020-05-28 Tom de Vries <tdevries@suse.de>
6123
6124 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
6125 PR gold/15646 workaround to symbol kind "type".
6126
6127 2020-05-27 Tom Tromey <tromey@adacore.com>
6128
6129 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
6130
6131 2020-05-27 Tom Tromey <tromey@adacore.com>
6132
6133 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
6134 Use htab_find_with_hash.
6135 <add_abbrev>: Remove "abbrev_number" parameter.
6136 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
6137 "abbrev_number" parameter. Use htab_find_slot_with_hash.
6138 (hash_abbrev): Add comment.
6139 (abbrev_table::lookup_abbrev): Move to header file.
6140 (abbrev_table::read): Update.
6141
6142 2020-05-27 Tom Tromey <tromey@adacore.com>
6143
6144 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
6145 method.
6146 <canonical_name>: New member.
6147 <raw_name>: Rename from "name".
6148 (partial_die_info): Initialize canonical_name.
6149 (scan_partial_symbols): Check raw_name.
6150 (partial_die_parent_scope, partial_die_full_name)
6151 (add_partial_symbol, add_partial_subprogram)
6152 (add_partial_enumeration, load_partial_dies): Use "name" method.
6153 (partial_die_info::name): New method.
6154 (partial_die_info::read, guess_partial_die_structure_name)
6155 (partial_die_info::fixup): Update.
6156
6157 2020-05-27 Tom Tromey <tromey@adacore.com>
6158
6159 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
6160 <get_ref_die_offset>: Inline.
6161 <get_ref_die_offset_complaint>: New method.
6162 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
6163 (attribute::get_ref_die_offset_complaint): Rename from
6164 get_ref_die_offset. Just issue complaint.
6165
6166 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
6167
6168 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
6169
6170 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
6171
6172 * exec.c (exec_file_attach): Use errno value of first openp failure.
6173
6174 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
6175
6176 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
6177 Don't close thread handle.
6178
6179 2020-05-27 Tom Tromey <tom@tromey.com>
6180 Simon Marchi <simon.marchi@efficios.com>
6181
6182 * objfiles.h (struct objfile) <partial_symtabs>: Now a
6183 shared_ptr.
6184 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
6185 member.
6186 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
6187 dwarf2_per_bfd_objfile_data_key>: New globals.
6188 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
6189 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
6190 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
6191 shared.
6192 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
6193 short-circuit when sharing.
6194 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
6195 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
6196
6197 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6198
6199 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
6200 to...
6201 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
6202 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
6203
6204 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6205
6206 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
6207 build_name_components, find_name_components_bounds>:
6208 Add per_objfile parameter.
6209 (struct mapped_index) <symbol_name_at>: Likewise.
6210 (struct mapped_debug_names): Remove constructor.
6211 <dwarf2_per_objfile>: Remove field.
6212 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
6213 (mapped_index_base::find_name_components_bounds,
6214 mapped_index_base::build_name_components,
6215 dw2_expand_symtabs_matching_symbol): Likewise.
6216 (class mock_mapped_index) <symbol_name_at>: Likewise.
6217 (check_match): Likewise.
6218 (check_find_bounds_finds): Likewise.
6219 (test_mapped_index_find_name_component_bounds): Update.
6220 (CHECK_MATCH): Update.
6221 (dw2_expand_symtabs_matching): Update.
6222 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
6223 per_objfile parameter.
6224 <find_vec_in_debug_names>: Likewise.
6225 <m_per_objfile>: New field.
6226 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
6227 parameter.
6228 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
6229 (dw2_debug_names_iterator::next): Update.
6230 (dw2_debug_names_lookup_symbol): Update.
6231 (dw2_debug_names_expand_symtabs_for_function): Update.
6232 (dw2_debug_names_map_matching_symbols): Update.
6233 (dw2_debug_names_expand_symtabs_matching): Update.
6234 (dwarf2_read_debug_names): Update.
6235
6236 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6237
6238 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
6239 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
6240 move to dwarf2_per_objfile.
6241 <read_in_chain>: Remove.
6242 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
6243 remove_all_cus, age_comp_units>: New methods.
6244 <m_dwarf2_cus>: New member.
6245 (struct dwarf2_per_cu_data) <cu>: Remove.
6246 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
6247 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
6248 moved to methods of dwarf2_per_objfile.
6249 (dwarf2_clear_marks): Remove.
6250 (dwarf2_queue_item::~dwarf2_queue_item): Update.
6251 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
6252 (dwarf2_per_bfd::free_cached_comp_units): Remove.
6253 (dwarf2_per_objfile::remove_all_cus): New.
6254 (class free_cached_comp_units) <~free_cached_comp_units>:
6255 Update.
6256 (load_cu): Update.
6257 (dw2_do_instantiate_symtab): Adjust.
6258 (fill_in_sig_entry_from_dwo_entry): Adjust.
6259 (cutu_reader::init_tu_and_read_dwo_dies): Update.
6260 (cutu_reader::cutu_reader): Likewise.
6261 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
6262 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
6263 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
6264 and dwarf2_per_objfile::age_comp_units.
6265 (load_partial_comp_unit): Update.
6266 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
6267 (process_queue): Likewise.
6268 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
6269 backlink.
6270 (dwarf2_read_addr_index): Likewise.
6271 (follow_die_offset): Likewise.
6272 (dwarf2_fetch_die_loc_sect_off): Likewise.
6273 (dwarf2_fetch_constant_bytes): Likewise.
6274 (dwarf2_fetch_die_type_sect_off): Likewise.
6275 (follow_die_sig_1): Likewise.
6276 (load_full_type_unit): Likewise.
6277 (read_signatured_type): Likewise.
6278 (dwarf2_cu::dwarf2_cu): Don't set cu field.
6279 (dwarf2_cu::~dwarf2_cu): Remove.
6280 (dwarf2_per_objfile::get_cu): New.
6281 (dwarf2_per_objfile::set_cu): New.
6282 (age_cached_comp_units): Rename to...
6283 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
6284 to std::unordered_map.
6285 (free_one_cached_comp_unit): Rename to...
6286 (dwarf2_per_objfile::remove_cu): ... this. Adjust
6287 to std::unordered_map.
6288 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
6289 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
6290 a dwarf2_per_objfile in data.
6291 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
6292 (dwarf2_clear_marks): Remove.
6293
6294 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6295
6296 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
6297 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
6298 (init_tu_and_read_dwo_dies): Likewise.
6299 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
6300 (cutu_reader::cutu_reader): Likewise.
6301 (load_partial_comp_unit): Likewise.
6302 (process_psymtab_comp_unit): Update.
6303 (build_type_psymtabs_1): Update.
6304 (process_skeletonless_type_unit): Update.
6305 (load_full_comp_unit): Update.
6306 (find_partial_die): Update.
6307 (dwarf2_read_addr_index): Update.
6308 (read_signatured_type): Update.
6309
6310 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6311
6312 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
6313 m_header_read_in>: New fields.
6314 <get_header>: New method.
6315 * dwarf2/read.c (per_cu_header_read_in): Remove.
6316 (dwarf2_per_cu_data::get_header): New.
6317 (dwarf2_per_cu_data::addr_size): Update.
6318 (dwarf2_per_cu_data::offset_size): Update.
6319 (dwarf2_per_cu_data::ref_addr_size): Update.
6320
6321 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6322
6323 * dwarf2/read.c (load_cu): Return dwarf2_cu.
6324 (dw2_do_instantiate_symtab): Update.
6325 (queue_and_load_all_dwo_tus): Change parameter from
6326 dwarf2_per_cu_data to dwarf2_cu.
6327 (dwarf2_fetch_die_loc_sect_off): Update.
6328 (dwarf2_fetch_constant_bytes): Update.
6329 (dwarf2_fetch_die_type_sect_off): Update.
6330
6331 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6332
6333 * dwarf2/read.c (process_full_comp_unit,
6334 process_full_type_unit): Remove per_cu, per_objfile paramters.
6335 Add dwarf2_cu parameter.
6336 (process_queue): Update.
6337
6338 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6339
6340 * dwarf2/read.c (create_cu_from_index_list): Replace
6341 dwarf2_per_objfile parameter with dwarf2_per_bfd.
6342 (create_cus_from_index_list): Likewise.
6343 (create_cus_from_index): Likewise.
6344 (create_signatured_type_table_from_index): Likewise.
6345 (create_cus_from_debug_names_list): Likewise.
6346 (create_cus_from_debug_names): Likewise.
6347 (dwarf2_read_gdb_index): Update.
6348 (dwarf2_read_debug_names): Update.
6349
6350 2020-05-27 Tom Tromey <tom@tromey.com>
6351 Simon Marchi <simon.marchi@efficios.com>
6352
6353 * dwarf2/read.h (struct dwarf2_per_objfile)
6354 <get_type_for_signatured_type, set_type_for_signatured_type>:
6355 New methods.
6356 <m_type_map>: New member.
6357 (struct signatured_type) <type>: Remove.
6358 * dwarf2/read.c
6359 (dwarf2_per_objfile::get_type_for_signatured_type,
6360 dwarf2_per_objfile::set_type_for_signatured_type): New.
6361 (get_signatured_type): Use new methods.
6362
6363 2020-05-27 Tom Tromey <tom@tromey.com>
6364 Simon Marchi <simon.marchi@efficios.com>
6365
6366 * dwarf2/read.h (struct type_unit_group_unshareable): New.
6367 (struct dwarf2_per_objfile) <type_units>: New member.
6368 <get_type_unit_group_unshareable>: New method.
6369 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
6370 num_symtabs, symtabs>: Remove; move to
6371 type_unit_group_unshareable.
6372 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
6373 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
6374 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
6375
6376 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6377
6378 * dwarf2/read.h (struct dwarf2_per_cu_data):
6379 <dwarf2_per_objfile>: Remove.
6380 * dwarf2/read.c (create_cu_from_index_list): Don't assign
6381 dwarf2_per_objfile.
6382 (create_signatured_type_table_from_index): Likewise.
6383 (create_signatured_type_table_from_debug_names): Likewise.
6384 (create_debug_type_hash_table): Likewise.
6385 (fill_in_sig_entry_from_dwo_entry): Likewise.
6386 (create_type_unit_group): Likewise.
6387 (read_comp_units_from_section): Likewise.
6388 (create_cus_hash_table): Likewise.
6389
6390 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6391
6392 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
6393 dwarf2_per_cu_data::dwarf2_per_objfile.
6394 (compute_compunit_symtab_includes): Likewise.
6395 (dwarf2_cu::start_symtab): Likewise.
6396
6397 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6398
6399 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
6400 parameter.
6401 * dwarf2/read.c (get_die_type_at_offset): Likewise.
6402 (read_namespace_alias): Update.
6403 (lookup_die_type): Update.
6404 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
6405 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
6406 Update.
6407 (disassemble_dwarf_expression): Update.
6408
6409 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6410
6411 * dwarf2/read.h (struct dwarf2_queue_item): Add
6412 dwarf2_per_objfile parameter, assign new parameter.
6413 <per_objfile>: New field.
6414 * dwarf2/read.c (free_one_cached_comp_unit): Add
6415 dwarf2_per_objfile parameter.
6416 (queue_comp_unit): Likewise.
6417 (dw2_do_instantiate_symtab): Update.
6418 (process_psymtab_comp_unit): Update.
6419 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
6420 (process_imported_unit_die): Update.
6421 (queue_and_load_dwo_tu): Update.
6422 (follow_die_offset): Update.
6423 (follow_die_sig_1): Update.
6424
6425 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6426
6427 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
6428 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
6429 (read_call_site_scope): Assign per_objfile.
6430 (dwarf2_per_cu_data::objfile): Remove.
6431 * gdbtypes.h (struct call_site) <per_objfile>: New member.
6432 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
6433 dwarf2_per_objfile parameter.
6434 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
6435 dwarf2_per_objfile parameter.
6436 (dwarf_expr_reg_to_entry_parameter): Add output
6437 dwarf2_per_objfile parameter.
6438 (locexpr_get_frame_base): Update.
6439 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
6440 <push_dwarf_reg_entry_value>: Update.
6441 <call_site_to_target_addr>: Update.
6442 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
6443 parameter.
6444 (value_of_dwarf_reg_entry): Update.
6445 (rw_pieced_value): Update.
6446 (indirect_synthetic_pointer): Update.
6447 (dwarf2_evaluate_property): Update.
6448 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
6449 parameter.
6450 (locexpr_read_variable): Update.
6451 (locexpr_get_symbol_read_needs): Update.
6452 (loclist_read_variable): Update.
6453
6454 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6455
6456 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
6457 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
6458 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
6459 parameter.
6460 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
6461 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
6462 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
6463 parameter.
6464 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
6465 sect_variable_value): Add dwarf2_per_objfile parameter.
6466 (class dwarf_evaluate_loc_desc) <dwarf_call,
6467 dwarf_variable_value>: Update.
6468 (fetch_const_value_from_synthetic_pointer): Add
6469 dwarf2_per_objfile parameter.
6470 (fetch_const_value_from_synthetic_pointer): Update.
6471 (coerced_pieced_ref): Update.
6472 (class symbol_needs_eval_context) <dwarf_call,
6473 dwarf_variable_value>: Update.
6474 (dwarf2_compile_expr_to_ax): Update.
6475
6476 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6477
6478 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
6479 parameter.
6480 (dwarf2_evaluate_loc_desc_full): Update.
6481
6482 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6483
6484 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
6485 parameter.
6486 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
6487 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
6488 dwarf2_per_objfile parameter.
6489 (decode_debug_loc_dwo_addresses): Likewise.
6490 (dwarf2_find_location_expression): Update.
6491 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
6492 (locexpr_describe_location_piece): Add dwarf2_per_objfile
6493 parameter.
6494 (disassemble_dwarf_expression): Add dwarf2_per_objfile
6495 parameter.
6496 (locexpr_describe_location_1): Likewise.
6497 (locexpr_describe_location): Update.
6498
6499 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6500
6501 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
6502 Remove.
6503 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
6504 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
6505 (dwarf2_compile_property_to_c): Update.
6506 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
6507 use text offset from objfile.
6508 (locexpr_tracepoint_var_ref): Update.
6509 (locexpr_generate_c_location): Update.
6510 (loclist_describe_location): Update.
6511 (loclist_tracepoint_var_ref): Update.
6512 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
6513 dwarf2_per_objfile parameter.
6514 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
6515 use text offset from objfile.
6516 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
6517
6518 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6519
6520 * dwarf2/expr.h (struct dwarf_expr_context)
6521 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
6522 <offset>: Remove.
6523 <per_objfile>: New member.
6524 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
6525 dwarf2_per_objfile parameter. Don't set offset, set
6526 per_objfile.
6527 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
6528 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
6529 a dwarf2_per_objfile object instead of an offset.
6530 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
6531 constructor.
6532 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
6533 to dwarf2_expr_executor constructor. Don't set offset.
6534 (dwarf2_fetch_cfa_info): Update.
6535 (struct dwarf2_frame_cache) <text_offset>: Remove.
6536 <per_objfile>: New field.
6537 (dwarf2_frame_cache): Update.
6538 (dwarf2_frame_prev_register): Update.
6539 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6540 <dwarf_evaluate_loc_desc>: Add constructor.
6541 (dwarf2_evaluate_loc_desc_full): Update.
6542 (dwarf2_locexpr_baton_eval): Update.
6543 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
6544 Add constructor.
6545 (dwarf2_loc_desc_get_symbol_read_needs): Update.
6546
6547 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6548
6549 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
6550 addr_sized_int_type>: Move to dwarf2_cu.
6551 <int_type>: Move to dwarf2_per_objfile.
6552 (struct dwarf2_per_objfile) <int_type>: Move here.
6553 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
6554 addr_sized_int_type>: Move here.
6555 (read_func_scope): Update.
6556 (read_array_type): Update.
6557 (read_tag_string_type): Update.
6558 (attr_to_dynamic_prop): Update.
6559 (dwarf2_per_cu_data::int_type): Rename to...
6560 (dwarf2_per_objfile::int_type): ... this.
6561 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
6562 (dwarf2_cu::addr_sized_int_type): ... this.
6563 (read_subrange_type): Update.
6564 (dwarf2_per_cu_data::addr_type): Rename to...
6565 (dwarf2_cu::addr_type): ... this.
6566 (set_die_type): Update.
6567
6568 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6569
6570 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
6571 data through per_cu->cu.
6572
6573 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6574
6575 * dwarf2/read.c (lookup_dwo_comp_unit): Change
6576 dwarf2_per_cu_data parameter fo dwarf2_cu.
6577 (lookup_dwo_type_unit): Likewise.
6578 (read_cutu_die_from_dwo): Likewise.
6579 (lookup_dwo_unit): Likewise.
6580 (open_and_init_dwo_file): Likewise.
6581 (lookup_dwo_cutu): Likewise.
6582 (lookup_dwo_comp_unit): Likewise.
6583 (lookup_dwo_type_unit): Likewise.
6584 (cutu_reader::init_tu_and_read_dwo_dies): Update.
6585 (cutu_reader::cutu_reader): Update.
6586
6587 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6588
6589 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
6590 parameter.
6591 (process_full_type_unit): Likewise.
6592 (process_queue): Update.
6593
6594 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6595
6596 * dwarf2/read.c (recursively_compute_inclusions): Add
6597 dwarf2_per_objfile parameter.
6598 (compute_compunit_symtab_includes): Likewise.
6599 (process_cu_includes): Update.
6600
6601 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6602
6603 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
6604 parameter.
6605 (create_type_unit_group): Update.
6606 (process_psymtab_comp_unit_reader): Update.
6607 (build_type_psymtabs_reader): Update.
6608
6609 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6610
6611 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
6612 object through m_this_cu->cu.
6613
6614 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6615
6616 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
6617 the info parameter.
6618 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
6619
6620 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6621
6622 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
6623 per_objfile parameter.
6624 (load_full_type_unit): Add per_objfile parameter.
6625 (read_signatured_type): Likewise.
6626 (load_full_comp_unit): Likewise.
6627 (load_cu): Likewise.
6628 (dw2_do_instantiate_symtab): Likewise.
6629 (dw2_get_file_names): Likewise.
6630 (dw2_map_symtabs_matching_filename): Update.
6631 (dw_expand_symtabs_matching_file_matcher): Update.
6632 (dw2_map_symbol_filenames): Update.
6633 (process_psymtab_comp_unit): Add per_objfile parameter.
6634 (build_type_psymtabs_1): Update.
6635 (process_skeletonless_type_unit): Update.
6636 (dwarf2_build_psymtabs_hard): Update.
6637 (load_partial_comp_unit): Add per_objfile parameter.
6638 (scan_partial_symbols): Update.
6639 (load_full_comp_unit): Add per_objfile parameter.
6640 (process_imported_unit_die): Update.
6641 (create_cus_hash_table): Update.
6642 (find_partial_die): Update.
6643 (dwarf2_read_addr_index): Update.
6644 (follow_die_offset): Update.
6645 (dwarf2_fetch_die_loc_sect_off): Update.
6646 (dwarf2_fetch_constant_bytes): Update.
6647 (dwarf2_fetch_die_type_sect_off): Update.
6648 (follow_die_sig_1): Update.
6649 (load_full_type_unit): Add per_objfile parameter.
6650 (read_signatured_type): Likewise.
6651
6652 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6653
6654 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
6655 of objfile_name.
6656
6657 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6658
6659 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
6660 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
6661 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
6662 field.
6663 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
6664 (create_cus_from_index): Update.
6665 (dwarf2_read_gdb_index): Update.
6666 (create_cus_from_debug_names): Update.
6667 (dwarf2_read_debug_names): Update.
6668 (get_abbrev_section_for_cu): Update.
6669 (create_all_comp_units): Update.
6670 (read_attribute_value): Update.
6671 (get_debug_line_section): Update.
6672 * dwarf2/index-cache.c (index_cache::store): Update.
6673 * dwarf2/index-write.c (save_gdb_index_command): Update.
6674 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
6675
6676 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6677
6678 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
6679 member.
6680 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
6681 dwarf2_per_cu_data::per_bfd.
6682 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
6683 (create_type_unit_group): Likewise.
6684 (queue_comp_unit): Remove reference to
6685 per_cu->dwarf2_per_objfile.
6686 (maybe_queue_comp_unit): Likewise.
6687 (fill_in_sig_entry_from_dwo_entry): Assign new field.
6688 (create_cus_hash_table): Assign new field.
6689
6690 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6691
6692 * dwarf2/read.c: Replace
6693 dwarf2_cu->per_cu->dwarf2_per_objfile references with
6694 dwarf2_cu->per_objfile throughout.
6695
6696 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6697
6698 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
6699 parameter, don't use per_cu->dwarf2_per_objfile.
6700 (dw2_instantiate_symtab): Likewise.
6701 (dw2_find_last_source_symtab): Update.
6702 (dw2_map_expand_apply): Update.
6703 (dw2_lookup_symbol): Update.
6704 (dw2_expand_symtabs_for_function): Update.
6705 (dw2_expand_all_symtabs): Update.
6706 (dw2_expand_symtabs_with_fullname): Update.
6707 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
6708 don't use per_cu->dwarf2_per_objfile.
6709 (dw2_expand_marked_cus): Update.
6710 (dw2_find_pc_sect_compunit_symtab): Update.
6711 (dw2_debug_names_lookup_symbol): Update.
6712 (dw2_debug_names_expand_symtabs_for_function): Update.
6713 (dw2_debug_names_map_matching_symbols): Update.
6714 (dwarf2_psymtab::expand_psymtab): Update.
6715
6716 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6717
6718 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
6719 <per_objfile>: New member.
6720 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
6721 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
6722 call to dwarf2_cu.
6723 (cutu_reader::cutu_reader): Update.
6724 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
6725
6726 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6727
6728 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
6729 struct dwarf2_per_objfile.
6730 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
6731 dwarf2_per_bfd.
6732 * dwarf2/read.c (set_die_type): Update.
6733 (get_die_type_at_offset): Update.
6734
6735 2020-05-27 Tom Tromey <tom@tromey.com>
6736 Simon Marchi <simon.marchi@efficios.com>
6737
6738 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
6739 method.
6740 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
6741 get_symtab, set_symtab>: New methods.
6742 <m_symtabs>: New field.
6743 (struct dwarf2_psymtab): Derive from partial_symtab.
6744 <readin_p, get_compunit_symtab>: Declare methods.
6745 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
6746 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
6747 New methods.
6748 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
6749 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
6750 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
6751 (dw2_symtab_iter_next, dw2_print_stats)
6752 (dw2_expand_symtabs_with_fullname)
6753 (dw2_expand_symtabs_matching_one)
6754 (dw_expand_symtabs_matching_file_matcher)
6755 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
6756 (dw2_debug_names_iterator::next)
6757 (dw2_debug_names_map_matching_symbols)
6758 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
6759 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
6760 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
6761 New methods.
6762 (get_compunit_symtab, process_full_comp_unit)
6763 (process_full_type_unit): Update.
6764 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
6765
6766 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6767
6768 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
6769 then introduce a new dwarf2_per_objfile type.
6770 <read_line_string>: Move to the new dwarf2_per_objfile type.
6771 <objfile>: Likewise.
6772 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
6773 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
6774 dwarf2_per_objfile->per_bfd.
6775 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
6776 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
6777 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
6778 (dwarf2_per_bfd::free_cached_comp_units): ... this.
6779 (dwarf2_has_info): Allocate dwarf2_per_bfd.
6780 (dwarf2_per_objfile::locate_sections): Rename to...
6781 (dwarf2_per_bfd::locate_sections): ... this.
6782 (dwarf2_per_objfile::get_cutu): Rename to...
6783 (dwarf2_per_bfd::get_cutu): ... this.
6784 (dwarf2_per_objfile::get_cu): Rename to...
6785 (dwarf2_per_bfd::get_cu): ... this.
6786 (dwarf2_per_objfile::get_tu): Rename to...
6787 (dwarf2_per_bfd::get_tu): ... this.
6788 (dwarf2_per_objfile::allocate_per_cu): Rename to...
6789 (dwarf2_per_bfd::allocate_per_cu): ... this.
6790 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
6791 (dwarf2_per_bfd::allocate_signatured_type): ... this.
6792 (get_gdb_index_contents_ftype): Change parameter from
6793 dwarf2_per_objfile to dwarf2_per_bfd.
6794 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
6795 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
6796
6797 2020-05-27 Tom Tromey <tom@tromey.com>
6798 Simon Marchi <simon.marchi@efficios.com>
6799
6800 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
6801 (allocate_piece_closure): Set "per_objfile" member.
6802 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
6803 (locexpr_describe_location, loclist_describe_location): Use new
6804 member.
6805 * dwarf2/read.c (read_call_site_scope)
6806 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
6807 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
6808 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
6809 handle_data_member_location): Set per_objfile member.
6810 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
6811 member.
6812 (struct dwarf2_loclist_baton) <per_objfile>: New member.
6813
6814 2020-05-27 Tom Tromey <tom@tromey.com>
6815
6816 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
6817 allocate_signatured_type>: Declare new methods.
6818 <m_num_psymtabs>: New member.
6819 (struct dwarf2_per_cu_data) <index>: New member.
6820 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
6821 (dwarf2_per_objfile::allocate_signatured_type): New methods.
6822 (create_cu_from_index_list): Use allocate_per_cu.
6823 (create_signatured_type_table_from_index)
6824 (create_signatured_type_table_from_debug_names)
6825 (create_debug_type_hash_table, add_type_unit)
6826 (read_comp_units_from_section): Use allocate_signatured_type.
6827
6828 2020-05-27 Tom Tromey <tom@tromey.com>
6829
6830 * psymtab.c (partial_map_expand_apply)
6831 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
6832 (psym_lookup_global_symbol_language)
6833 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
6834 (psym_print_stats, psym_expand_symtabs_for_function)
6835 (psym_map_symbol_filenames, psym_map_matching_symbols)
6836 (psym_expand_symtabs_matching)
6837 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
6838 (maintenance_check_psymtabs): Update.
6839 * psympriv.h (struct partial_symtab) <readin_p,
6840 get_compunit_symtab>: Add objfile parameter.
6841 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
6842 Likewise.
6843 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
6844 get_compunit_symtab>: Likewise.
6845 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
6846
6847 2020-05-27 Tom Tromey <tom@tromey.com>
6848
6849 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
6850 member.
6851 * dwarf2/read.c (delete_file_name_entry): Fix comment.
6852 (create_cu_from_index_list)
6853 (create_signatured_type_table_from_index)
6854 (create_signatured_type_table_from_debug_names)
6855 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
6856 (dwarf2_create_include_psymtab)
6857 (create_debug_type_hash_table, add_type_unit)
6858 (create_type_unit_group, read_comp_units_from_section)
6859 (dwarf2_compute_name, create_cus_hash_table)
6860 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
6861 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
6862 obstack.
6863 (dw2_get_real_path): Likewise. Change argument to
6864 dwarf2_per_objfile.
6865
6866 2020-05-27 Luis Machado <luis.machado@linaro.org>
6867
6868 PR tdep/26000
6869 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
6870 for ldrd (immediate).
6871
6872 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6873
6874 * command.h: Add comment giving the name of class_tui.
6875 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
6876 create the fake command for the help for class_tui.
6877
6878 2020-05-26 Tom Tromey <tromey@adacore.com>
6879
6880 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
6881 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
6882 (val_atr): New function.
6883 (value_val_atr): Use it.
6884 * ada-valprint.c (print_optional_low_bound): Change low bound
6885 handling for enums.
6886 (val_print_packed_array_elements): Don't call discrete_position.
6887 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
6888 discrete_position for enum types.
6889 * language.c (default_print_array_index): Change type.
6890 * language.h (struct language_defn) <la_print_array_index>: Add
6891 index_type parameter, change type of index_value.
6892 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
6893 (default_print_array_index): Update.
6894 * valprint.c (maybe_print_array_index): Don't call
6895 value_from_longest. Update.
6896 (value_print_array_elements): Don't call discrete_position.
6897
6898 2020-05-26 Tom Tromey <tromey@adacore.com>
6899
6900 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
6901 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
6902
6903 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
6904
6905 PR gdb/13519
6906 * avr-tdep.c (avr_integer_to_address): Return data or code
6907 address accordingly to the second 'type' argument of the
6908 function.
6909
6910 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
6911
6912 * infcmd.c, inferior.h: (construct_inferior_arguments):
6913 Moved function from here to gdbsupport/common-inferior.{h,cc}
6914
6915 2020-05-23 Tom Tromey <tom@tromey.com>
6916
6917 Revert commit eca1f90c:
6918 * NEWS: Remove entry for completion styling.
6919 * completer.c (_rl_completion_prefix_display_length): Move
6920 declaration later.
6921 (gdb_fnprint): Revert.
6922 (gdb_display_match_list_1): Likewise.
6923 * cli/cli-style.c (completion_prefix_style)
6924 (completion_difference_style, completion_suffix_style): Remove.
6925 (_initialize_cli_style): Revert.
6926 * cli/cli-style.h (completion_prefix_style)
6927 (completion_difference_style, completion_suffix_style): Don't
6928 declare.
6929
6930 2020-05-24 Pedro Alves <palves@redhat.com>
6931
6932 * symtab.c (completion_list_add_name): Return boolean indication
6933 of whether the symbol matched.
6934 (completion_list_add_symbol): Don't try to remove C++ aliases if
6935 the symbol didn't match in the first place.
6936 * symtab.h (completion_list_add_name): Return bool.
6937
6938 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
6939
6940 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
6941 type::field.
6942
6943 2020-05-23 Joel Brobecker <brobecker@adacore.com>
6944
6945 GDB 9.2 released.
6946
6947 2020-05-23 Tom Tromey <tom@tromey.com>
6948
6949 * NEWS: Add entry for completion styling.
6950 * completer.c (_rl_completion_prefix_display_length): Move
6951 declaration earlier.
6952 (gdb_fnprint): Use completion_style.
6953 (gdb_display_match_list_1): Likewise.
6954 * cli/cli-style.c (completion_prefix_style)
6955 (completion_difference_style, completion_suffix_style): New
6956 globals.
6957 (_initialize_cli_style): Register new globals.
6958 * cli/cli-style.h (completion_prefix_style)
6959 (completion_difference_style, completion_suffix_style): Declare.
6960
6961 2020-05-23 Pedro Alves <palves@redhat.com>
6962
6963 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
6964 (parse_escape): Use ISDIGIT instead of isdigit.
6965 (puts_debug): Use gdb_isprint instead of isprint.
6966 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
6967 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
6968 ISSPACE instead of isspace.
6969 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
6970 instead of isspace.
6971 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
6972 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
6973 instead of isxdigit and ISDIGIT instead of isdigit.
6974
6975 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
6976
6977 * gdbtypes.h (struct type) <field>: New method.
6978 (TYPE_FIELDS): Remove, replace all uses with either type::fields
6979 or type::field.
6980
6981 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
6982
6983 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
6984 (TYPE_FIELDS): Use type::fields. Change all call sites that
6985 modify the propery to use type::set_fields instead.
6986
6987 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
6988
6989 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
6990 type::num_fields instead.
6991
6992 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
6993
6994 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
6995 methods.
6996 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
6997 that modify the number of fields to use type::set_num_fields
6998 instead.
6999
7000 2020-05-22 Tom Tromey <tromey@adacore.com>
7001
7002 * compile/compile-object-load.h (munmap_list_free): Don't
7003 declare.
7004
7005 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
7006
7007 * annotate.c (annotate_source_line): Update return type, add call
7008 to update current symtab and line.
7009 * annotate.h (annotate_source_line): Update return type, and
7010 extend header comment.
7011 * source.c (info_line_command): Check annotation_level before
7012 calling annotate_source_line.
7013 * stack.c (print_frame_info): If calling annotate_source_line
7014 returns true, then don't print any other source line information.
7015
7016 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
7017
7018 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
7019
7020 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
7021
7022 * coffread.c (patch_type): Remove NULL check before xfree.
7023 * corefile.c (set_gnutarget): Likewise.
7024 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
7025 * exec.c (build_section_table): Likewise.
7026 * remote.c (remote_target::pass_signals): Likewise.
7027 * utils.c (n_spaces): Likewise.
7028 * cli/cli-script.c (document_command): Likewise.
7029 * i386-windows-tdep.c (core_process_module_section): Likewise.
7030 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
7031
7032 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
7033
7034 * symfile.c (reread_symbols): Clear objfile's section_offsets
7035 vector and section indices, re-compute them by calling
7036 sym_offsets.
7037
7038 2020-05-20 Tom Tromey <tromey@adacore.com>
7039
7040 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
7041 (desc_one_bound, desc_index_type): Compute field name.
7042
7043 2020-05-20 Tom de Vries <tdevries@suse.de>
7044
7045 PR symtab/25833
7046 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
7047
7048 2020-05-20 Alan Modra <amodra@gmail.com>
7049
7050 PR 25993
7051 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
7052 bfd_set_filename.
7053 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
7054 passed to bfd_set_filename.
7055 * symfile-mem.c (add_vsyscall_page): Likewise for string
7056 passed to symbol_file_add_from_memory.
7057 (symbol_file_add_from_memory): Make name param a const char* and
7058 don't strdup.
7059
7060 2020-05-20 Alan Modra <amodra@gmail.com>
7061
7062 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
7063 rather than accessing bfd->filename directly.
7064 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
7065 and use bfd_section_name.
7066 * dwarf2/frame.c (decode_frame_entry): Likewise.
7067 * exec.c (exec_set_section_address): Likewise.
7068 * solib-aix.c (solib_aix_bfd_open): Likewise.
7069 * stap-probe.c (get_stap_base_address): Likewise.
7070 * symfile.c (reread_symbols): Likewise.
7071
7072 2020-05-19 Tom Tromey <tromey@adacore.com>
7073
7074 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
7075
7076 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
7077
7078 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
7079
7080 2020-05-19 Pedro Alves <palves@redhat.com>
7081
7082 * NEWS (set exec-file-mismatch): Adjust entry.
7083 * exec.c: Include "build-id.h".
7084 (validate_exec_file): Try to match build IDs instead of filenames.
7085 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
7086 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
7087 and pass down 'warn_if_slow'.
7088 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
7089 gdb_bfd_open_closure to pass it down.
7090 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
7091
7092 2020-05-19 Pedro Alves <palves@redhat.com>
7093
7094 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
7095 * target.c (target_fileio_open_1): Rename to target_fileio_open
7096 and make extern. Use bool.
7097 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
7098 (target_fileio_read_alloc_1): Adjust.
7099 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
7100 (target_fileio_open_warn_if_slow): Delete declaration.
7101
7102 2020-05-19 Pedro Alves <palves@redhat.com>
7103
7104 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
7105 Adjust all callers.
7106
7107 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
7108
7109 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
7110 whether disp is negative.
7111
7112 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
7113
7114 * symfile.h (struct symfile_segment_data)
7115 <~symfile_segment_data>: Remove.
7116 <segment_info>: Change to std::vector.
7117 * symfile.c (default_symfile_segments): Update.
7118 * elfread.c (elf_symfile_segments): Update.
7119
7120 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
7121
7122 * symfile.h (struct symfile_segment_data) <struct segment>: New.
7123 <segments>: New.
7124 <segment_bases, segment_sizes>: Remove.
7125 * symfile.c (default_symfile_segments): Update.
7126 * elfread.c (elf_symfile_segments): Update.
7127 * remote.c (remote_target::get_offsets): Update.
7128 * solib-target.c (solib_target_relocate_section_addresses):
7129 Update.
7130
7131 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
7132
7133 * symfile.h (struct symfile_segment_data): Initialize fields.
7134 <~symfile_segment_data>: Add.
7135 (symfile_segment_data_up): New.
7136 (struct sym_fns) <sym_segments>: Return a
7137 symfile_segment_data_up.
7138 (default_symfile_segments): Return a symfile_segment_data_up.
7139 (free_symfile_segment_data): Remove.
7140 (get_symfile_segment_data): Return a symfile_segment_data_up.
7141 * symfile.c (default_symfile_segments): Likewise.
7142 (get_symfile_segment_data): Likewise.
7143 (free_symfile_segment_data): Remove.
7144 (symfile_find_segment_sections): Update.
7145 * elfread.c (elf_symfile_segments): Return a
7146 symfile_segment_data_up.
7147 * remote.c (remote_target::get_offsets): Update.
7148 * solib-target.c (solib_target_relocate_section_addresses):
7149 Update.
7150 * symfile-debug.c (debug_sym_segments): Return a
7151 symfile_segment_data_up.
7152
7153 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7154
7155 PR build/25981
7156 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
7157 Hardcode register numbers.
7158
7159 PR build/25981
7160 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
7161 procfs_find_LDT_entry): Remove.
7162 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
7163 procfs_find_LDT_entry): Remove.
7164 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
7165 Remove.
7166
7167 2020-05-17 Pedro Alves <palves@redhat.com>
7168 Andrew Burgess <andrew.burgess@embecosm.com>
7169 Keno Fischer <keno@juliacomputing.com>
7170
7171 PR gdb/25741
7172 * breakpoint.c (build_target_condition_list): Update comments.
7173 (build_target_command_list): Update comments and skip matching
7174 locations.
7175 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
7176 a separate function. Simplify "set breakpoint auto-hw off"
7177 handling.
7178 (insert_breakpoints): Update comment.
7179 (tracepoint_locations_match): New parameter. For breakpoints,
7180 compare location types too, if the caller wants to.
7181 (handle_automatic_hardware_breakpoints): New functions.
7182 (bp_location_is_less_than): Also sort by location type and
7183 hardware breakpoint length.
7184 (update_global_location_list): Handle "set breakpoint auto-hw on"
7185 here.
7186 (update_breakpoint_locations): Ask breakpoint_locations_match to
7187 ignore location types.
7188
7189 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
7190
7191 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
7192 type::name instead.
7193
7194 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
7195
7196 * gdbtypes.h (struct type) <name, set_name>: New methods.
7197 (TYPE_CODE): Use type::name. Change all call sites used to set
7198 the name to use type::set_name instead.
7199
7200 2020-05-16 Tom Tromey <tom@tromey.com>
7201
7202 * top.c (quit_force): Update.
7203 * infrun.c (handle_no_resumed): Update.
7204 * top.h (all_uis): New function.
7205 (ALL_UIS): Remove.
7206
7207 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
7208
7209 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
7210
7211 2020-05-16 Pedro Alves <palves@redhat.com>
7212
7213 * ia64-linux-nat.c
7214 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
7215 Declare method.
7216 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
7217
7218 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
7219
7220 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
7221 (sparc64_adi_info): Likewise.
7222
7223 2020-05-15 Tom Tromey <tom@tromey.com>
7224
7225 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
7226 block_objfile.
7227 (lookup_objfile_from_block): Remove.
7228 (lookup_symbol_in_block, lookup_symbol_in_static_block)
7229 (lookup_global_symbol): Use block_objfile.
7230 * symtab.h (lookup_objfile_from_block): Don't declare.
7231 * printcmd.c (clear_dangling_display_expressions): Use
7232 block_objfile.
7233 * parse.c (operator_check_standard): Use block_objfile.
7234
7235 2020-05-15 Tom Tromey <tom@tromey.com>
7236
7237 * language.c (language_alloc_type_symbol): Set
7238 SYMBOL_SECTION.
7239 * symtab.c (initialize_objfile_symbol): Remove.
7240 (allocate_symbol): Remove.
7241 (allocate_template_symbol): Remove.
7242 * dwarf2/read.c (fixup_go_packaging): Use "new".
7243 (new_symbol): Use "new".
7244 (read_variable): Don't call initialize_objfile_symbol. Use
7245 "new".
7246 (read_func_scope): Use "new".
7247 * xcoffread.c (process_xcoff_symbol): Don't call
7248 initialize_objfile_symbol.
7249 (SYMBOL_DUP): Remove.
7250 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
7251 "new".
7252 * symtab.h (allocate_symbol, initialize_objfile_symbol)
7253 (allocate_template_symbol): Don't declare.
7254 (struct symbol): Add copy constructor. Change defaults.
7255 * jit.c (finalize_symtab): Use "new".
7256 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
7257 Use "new".
7258 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
7259 (common_block_end): Use "new".
7260 * mdebugread.c (parse_symbol): Use "new".
7261 (new_symbol): Likewise.
7262
7263 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7264
7265 * NEWS: Mention changes to help and apropos.
7266
7267 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7268
7269 * command.h (enum command_class): Improve comments, document
7270 that class_alias is for user-defined aliases, give the class
7271 name for each class, remove unused class_xdb.
7272 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
7273 * breakpoint.c (_initialize_breakpoint): Replace class_alias
7274 by a precise class.
7275 * infcmd.c (_initialize_infcmd): Likewise.
7276 * reverse.c (_initialize_reverse): Likewise.
7277 * stack.c (_initialize_stack): Likewise.
7278 * symfile.c (_initialize_symfile): Likewise.
7279 * tracepoint.c (_initialize_tracepoint): Likewise.
7280
7281 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7282
7283 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
7284 when their aliased command is traversed.
7285 (help_cmd): Add fput_command_names_styled call to
7286 output command name and aliases when command has an alias.
7287
7288 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7289
7290 * cli/cli-decode.h (help_cmd_list): Remove declaration.
7291 * cli/cli-decode.c (help_cmd_list): Declare as static,
7292 remove prefix argument, use bool for recurse arg, rework to show the aliases of
7293 a command together with the command.
7294 (fput_command_name_styled, fput_command_names_styled): New functions.
7295 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
7296 fput_command_name_styled.
7297 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
7298 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
7299
7300 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7301
7302 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
7303 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
7304 * command.h (cmd_show_list): Likewise.
7305 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
7306 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
7307
7308 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7309
7310 * unittests/command-def-selftests.c (traverse_command_structure):
7311 Verify all commands of a list have the same prefix command and
7312 that only the top cmdlist commands have a null prefix.
7313
7314 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7315
7316 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
7317 as prefix, not one of its aliases.
7318 (set_cmd_prefix): Remove.
7319 (do_add_cmd): Centralize the setting of the prefix of a command, when
7320 command is defined after its full chain of prefix commands.
7321 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
7322 (add_setshow_cmd_full): Likewise.
7323 (update_prefix_field_of_prefixed_commands): New function.
7324 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
7325 update_prefix_field_of_prefixed_commands.
7326 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
7327 addresses of remote_set_cmdlist and remote_show_cmdlist given
7328 as argument, not the address of an argument.
7329 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
7330 * gdb/remote.c (_initialize_remote): Likewise.
7331
7332 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7333
7334 * cli/cli-cmds.c (alias_command): Check for an existing alias
7335 using lookup_cmd_composition, as valid_command_p is too strict
7336 and forbids aliases that are the prefix of an existing alias
7337 or command.
7338 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
7339 command is properly recognised as a valid command.
7340
7341 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7342
7343 * unittests/help-doc-selftests.c: Rename to
7344 unittests/command-def-selftests.c
7345 * unittests/command-def-selftests.c (help_doc_tests): Update some
7346 comments.
7347 (command_structure_tests, traverse_command_structure): New namespace
7348 and function.
7349 (command_structure_invariants_tests): New function.
7350 (_initialize_command_def_selftests) Renamed from
7351 _initialize_help_doc_selftests, register command_structure_invariants
7352 selftest.
7353
7354 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7355
7356 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
7357 an alias of 'show'.
7358
7359 2020-05-15 Joel Brobecker <brobecker@adacore.com>
7360
7361 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
7362 ada_is_fixed_point_type. Update all callers.
7363 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
7364 all callers.
7365 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
7366 Update all callers.
7367 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
7368 print_fixed_point_type. Update all callers.
7369 * ada-valprint.c (ada_value_print_num): Replace call to
7370 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
7371
7372 2020-05-14 Kevin Buettner <kevinb@redhat.com>
7373
7374 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
7375 processors.
7376 (cpu_supports_bts): Add CV_AMD case.
7377
7378 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
7379 Simon Marchi <simon.marchi@efficios.com>
7380
7381 * infrun.c (stop_all_threads): Collect multiple wait events at
7382 each pass.
7383
7384 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
7385
7386 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
7387 type::code instead.
7388
7389 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
7390
7391 * gdbtypes.h (struct type) <code, set_code>: New methods.
7392 (TYPE_CODE): Use type::code. Change all call sites used to set
7393 the code to use type::set_code instead.
7394
7395 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7396 Tom de Vries <tdevries@suse.de>
7397 Pedro Alves <palves@redhat.com>
7398
7399 PR threads/25478
7400 * infrun.c (stop_all_threads): Do NOT ignore
7401 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
7402 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
7403 received.
7404 (handle_no_resumed): Remove code handling a live inferior with no
7405 threads.
7406 * remote.c (has_single_non_exited_thread): New.
7407 (remote_target::update_thread_list): Do not delete a thread if is
7408 the last thread of the process.
7409 * thread.c (thread_select): Call delete_exited_threads instead of
7410 prune_threads.
7411
7412 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7413
7414 * infrun.c (stop_all_threads): Enable/disable thread events of all
7415 targets. Move a debug message denoting the end of the function
7416 into the SCOPED_EXIT block.
7417
7418 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7419
7420 * process-stratum-target.h: Include <set>.
7421 (all_non_exited_process_targets, switch_to_target_no_thread): New
7422 function declarations.
7423 * process-stratum-target.c (all_non_exited_process_targets)
7424 (switch_to_target_no_thread): New function implementations.
7425
7426 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7427
7428 * infrun.c (handle_inferior_event): Extract out a piece of code
7429 into...
7430 (mark_non_executing_threads): ...this new function.
7431
7432 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7433
7434 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
7435 use.
7436
7437 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7438
7439 * regcache.c (regcache_read_pc_protected): New function
7440 implementation that returns 0 if the PC cannot read via
7441 'regcache_read_pc'.
7442 * infrun.c (proceed): Call 'regcache_read_pc_protected'
7443 instead of 'regcache_read_pc'.
7444 (keep_going_pass_signal): Ditto.
7445
7446 2020-05-13 Tom Tromey <tromey@adacore.com>
7447
7448 * ada-lang.c (align_value): Remove.
7449 (ada_template_to_fixed_record_type_1): Use align_up.
7450
7451 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7452
7453 * async-event.c: Update the copyright year.
7454 * async-event.h: Update the copyright year.
7455
7456 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
7457
7458 * objfiles.h (is_addr_in_objfile,
7459 shared_objfile_contains_address_p): Return bool.
7460 * objfile.c (is_addr_in_objfile,
7461 shared_objfile_contains_address_p): Return bool.
7462
7463 2020-05-11 Tom Tromey <tromey@adacore.com>
7464
7465 * cli/cli-cmds.c (info_command): Restore.
7466 (_initialize_cli_cmds): Use add_prefix_command for "info".
7467 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
7468
7469 2020-05-11 Tom Tromey <tromey@adacore.com>
7470
7471 * ada-lang.c (ada_value_primitive_field): Now public.
7472 * ada-lang.h (ada_value_primitive_field): Declare.
7473 * ada-valprint.c (print_field_values): Use
7474 ada_value_primitive_field for wrapper fields.
7475
7476 2020-05-11 Tom de Vries <tdevries@suse.de>
7477
7478 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
7479 MODULE_DOMAIN.
7480
7481 2020-05-11 Tom de Vries <tdevries@suse.de>
7482
7483 PR symtab/25941
7484 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
7485 with length 0, if not gdb-produced.
7486 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
7487
7488 2020-05-09 Tom de Vries <tdevries@suse.de>
7489
7490 PR gdb/25955
7491 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
7492 calculation.
7493
7494 2020-05-09 Tom Tromey <tom@tromey.com>
7495
7496 * top.c (server_command): Now bool.
7497 * top.h (server_command): Now bool.
7498
7499 2020-05-08 Tom Tromey <tromey@adacore.com>
7500
7501 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
7502 already being processed.
7503
7504 2020-05-08 Tom Tromey <tom@tromey.com>
7505
7506 * printcmd.c (struct display) <next>: Remove.
7507 <display>: New constructor.
7508 <exp_string>: Now a std::string.
7509 <enabled_p>: Now a bool.
7510 (display_number): Move definition earlier.
7511 (displays): Rename from display_chain. Now a std::vector.
7512 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
7513 (display_command): Update.
7514 (do_one_display, disable_display)
7515 (enable_disable_display_command, do_enable_disable_display):
7516 Update.
7517 (free_display): Remove.
7518 (clear_displays): Rewrite.
7519 (delete_display): Update.
7520 (map_display_numbers): Use function_view. Remove "data"
7521 parameter. Update.
7522 (do_delete_display): Remove.
7523 (undisplay_command): Update.
7524 (do_one_display, do_displays, disable_display)
7525 (info_display_command): Update.
7526 (do_enable_disable_display): Remove.
7527 (enable_disable_display_command)
7528 (clear_dangling_display_expressions): Update.
7529
7530 2020-05-08 Tom Tromey <tom@tromey.com>
7531
7532 * symtab.c (set_symbol_cache_size)
7533 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
7534 (maintenance_print_symbol_cache_statistics): Update.
7535 * symmisc.c (print_symbol_bcache_statistics)
7536 (print_objfile_statistics, maintenance_print_objfiles)
7537 (maintenance_info_symtabs, maintenance_check_symtabs)
7538 (maintenance_expand_symtabs, maintenance_info_line_tables):
7539 Update.
7540 * symfile-debug.c (set_debug_symfile): Update.
7541 * source.c (forget_cached_source_info): Update.
7542 * python/python.c (gdbpy_progspaces): Update.
7543 * psymtab.c (maintenance_info_psymtabs): Update.
7544 * probe.c (parse_probes): Update.
7545 * linespec.c (iterate_over_all_matching_symtabs)
7546 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
7547 * guile/scm-progspace.c (gdbscm_progspaces): Update.
7548 * exec.c (exec_target::close): Update.
7549 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
7550 * breakpoint.c (print_one_breakpoint_location)
7551 (create_longjmp_master_breakpoint)
7552 (create_std_terminate_master_breakpoint): Update.
7553 * progspace.c (program_spaces): Now a std::vector.
7554 (maybe_new_address_space): Update.
7555 (add_program_space): Remove.
7556 (program_space::program_space): Update.
7557 (remove_program_space): Update.
7558 (number_of_program_spaces): Remove.
7559 (print_program_space, update_address_spaces): Update.
7560 * progspace.h (program_spaces): Change type.
7561 (ALL_PSPACES): Remove.
7562 (number_of_program_spaces): Don't declare.
7563 (struct program_space) <next>: Remove.
7564
7565 2020-05-08 Tom Tromey <tom@tromey.com>
7566
7567 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
7568 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
7569 (enable_break): Update.
7570 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
7571 (frv_fdpic_find_canonical_descriptor): Update.
7572 (frv_fetch_objfile_link_map): Update.
7573 * progspace.c (program_space::free_all_objfiles): Update.
7574 (program_space::solibs): New method.
7575 * progspace.h (struct program_space) <solibs>: New method.
7576 * solist.h (master_so_list): Don't declare.
7577 (ALL_SO_LIBS): Remove.
7578 * solib.h (so_list_head): Remove.
7579 (update_solib_list): Update comment.
7580 * solib.c (master_so_list): Remove.
7581 (solib_used, update_solib_list, solib_add)
7582 (info_sharedlibrary_command, clear_solib)
7583 (reload_shared_libraries_1, remove_user_added_objfile): Update.
7584
7585 2020-05-08 Tom Tromey <tom@tromey.com>
7586
7587 * extension.c (extension_languages): Now a std::array.
7588 (ALL_EXTENSION_LANGUAGES): Remove.
7589 (get_ext_lang_defn, get_ext_lang_of_file)
7590 (eval_ext_lang_from_control_command): Update.
7591 (finish_ext_lang_initialization)
7592 (auto_load_ext_lang_scripts_for_objfile)
7593 (ext_lang_type_printers::ext_lang_type_printers)
7594 (apply_ext_lang_type_printers)
7595 (ext_lang_type_printers::~ext_lang_type_printers)
7596 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
7597 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
7598 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
7599 (get_matching_xmethod_workers, ext_lang_colorize)
7600 (ext_lang_before_prompt): Update.
7601 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
7602
7603 2020-05-08 Tom Tromey <tom@tromey.com>
7604
7605 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
7606 overload.
7607 <swap_string, m_string>: Remove.
7608 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
7609 Update.
7610 * stabsread.c (define_symbol, read_type): Update.
7611 * linespec.c (find_linespec_symbols): Update.
7612 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
7613 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
7614 * dbxread.c (read_dbx_symtab): Update.
7615 * cp-support.h (cp_canonicalize_string_full)
7616 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
7617 Return unique_xmalloc_ptr.
7618 * cp-support.c (inspect_type): Update.
7619 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
7620 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
7621 Likewise.
7622 * c-typeprint.c (print_name_maybe_canonical): Update.
7623 * break-catch-throw.c (check_status_exception_catchpoint):
7624 Update.
7625
7626 2020-05-08 Tom de Vries <tdevries@suse.de>
7627
7628 * infrun.c (follow_fork): Copy current_line and current_symtab to
7629 child thread.
7630
7631 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
7632
7633 * async-event.c (struct async_signal_handler, struct
7634 async_event_handler): Reformat, remove typedef.
7635
7636 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
7637
7638 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
7639 access thistype->main_type->dyn_prop_list directly.
7640
7641 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
7642
7643 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
7644 (remove_dyn_prop): Remove. Update all users to use
7645 type::remove_dyn_prop.
7646 * gdbtypes.c (remove_dyn_prop): Rename to...
7647 (type::remove_dyn_prop): ... this.
7648
7649 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
7650
7651 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
7652 (add_dyn_prop): Remove. Update all users to use
7653 type::add_dyn_prop.
7654 * gdbtypes.c (add_dyn_prop): Rename to...
7655 (type::add_dyn_prop): ... this.
7656
7657 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
7658
7659 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
7660 (get_dyn_prop): Remove. Update all users to use
7661 type::dyn_prop.
7662 * gdbtypes.c (get_dyn_prop): Rename to...
7663 (type::dyn_prop): ... this.
7664
7665 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
7666
7667 * gdbtypes.h (struct main_type) <flag_static>: Remove.
7668
7669 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
7670
7671 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
7672 instruction, skip it if it's there.
7673
7674 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
7675
7676 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
7677
7678 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
7679
7680 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
7681 * gdbtypes.c (recursive_dump_type): Remove use of
7682 TYPE_INCOMPLETE.
7683
7684 2020-05-03 Tom Tromey <tom@tromey.com>
7685
7686 * breakpoint.c (catch_command, tcatch_command): Remove.
7687 (_initialize_breakpoint): Use add_basic_prefix_cmd,
7688 add_show_prefix_cmd.
7689 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
7690 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
7691 Remove.
7692 (add_internal_problem_command): Use add_basic_prefix_cmd,
7693 add_show_prefix_cmd.
7694 * mips-tdep.c (set_mipsfpu_command): Remove.
7695 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
7696 * dwarf2/index-cache.c (set_index_cache_command): Remove.
7697 (_initialize_index_cache): Use add_basic_prefix_cmd.
7698 * memattr.c (dummy_cmd): Remove.
7699 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
7700 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
7701 (_initialize_tui_win): Use add_basic_prefix_cmd,
7702 add_show_prefix_cmd.
7703 * cli/cli-logging.c (set_logging_command): Remove.
7704 (_initialize_cli_logging): Use add_basic_prefix_cmd,
7705 add_show_prefix_cmd.
7706 (show_logging_command): Remove.
7707 * target.c (target_command): Remove.
7708 (add_target): Use add_basic_prefix_cmd.
7709
7710 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
7711
7712 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
7713
7714 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7715
7716 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
7717 info_command.
7718
7719 2020-04-30 Kamil Rytarowski <n54@gmx.com>
7720
7721 * nbsd-nat.c (nbsd_enable_proc_events)
7722 (nbsd_nat_target::post_startup_inferior): Add.
7723 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
7724 (nbsd_nat_target::update_thread_list): Rewrite.
7725 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
7726 "PTRACE_LWP_CREATE".
7727 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
7728
7729 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7730
7731 * stack.c (_initialize_stack): Remove duplicated creation
7732 of "frame" command and "f" alias.
7733
7734 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
7735
7736 PR gdb/18706
7737 * gdbtypes.c (check_typedef): Calculate size of array of
7738 stubbed type.
7739
7740 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
7741
7742 PR gdb/15559
7743 * i386-tdep.c (i386_push_dummy_call): Call
7744 i386_thiscall_push_dummy_call.
7745 (i386_thiscall_push_dummy_call): New function.
7746 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
7747 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
7748 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
7749
7750 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7751
7752 * gdbarch.sh (do_read): Add shellcheck disable directive for
7753 warning SC2162.
7754
7755 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7756
7757 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
7758 "referenced but not assigned" warning.
7759
7760 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7761
7762 * gdbarch.sh: Remove code that sets fallbackdefault.
7763
7764 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7765
7766 * gdbarch.sh: Use shell operators && and || instead of
7767 -a and -o.
7768
7769 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7770
7771 * gdbarch.sh: Use $(...) instead of `...`.
7772
7773 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7774
7775 * gdbarch.sh: Use double quotes around variables.
7776
7777 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7778
7779 * gdbarch.sh: Use %s with printf, instead of variables in the
7780 format string.
7781
7782 2020-04-29 Tom Tromey <tromey@adacore.com>
7783
7784 PR ada/25875:
7785 * dwarf2/read.c (update_enumeration_type_from_children): Compute
7786 type fields here.
7787 (read_enumeration_type): Call
7788 update_enumeration_type_from_children later. Update comments.
7789 (process_enumeration_scope): Don't create type fields.
7790
7791 2020-04-29 Kamil Rytarowski <n54@gmx.com>
7792
7793 * nbsd-tdep.c: Include "xml-syscall.h".
7794 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
7795
7796 2020-04-29 Kamil Rytarowski <n54@gmx.com>
7797
7798 * nbsd-nat.c: Include "sys/wait.h".
7799 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
7800 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
7801 (nbsd_nat_target::remove_exec_catchpoint)
7802 (nbsd_nat_target::set_syscall_catchpoint): Add.
7803 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
7804 (nbsd_nat_target::insert_exec_catchpoint)
7805 (nbsd_nat_target::remove_exec_catchpoint)
7806 (nbsd_nat_target::set_syscall_catchpoint): Add.
7807 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
7808 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
7809 `nbsd_get_syscall_number'.
7810
7811 2020-04-29 Tom Tromey <tom@tromey.com>
7812
7813 * stack.c (print_block_frame_labels): Remove.
7814
7815 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
7816
7817 PR gdb/17320
7818 * ada-valprint.c (val_print_packed_array_elements): Move array
7819 end bracket to new line.
7820 (ada_val_print_string): Remove extra spaces before first array
7821 element.
7822 * c-valprint.c (c_value_print_array): Likewise.
7823 * m2-valprint.c (m2_print_array_contents): Likewise.
7824 (m2_value_print_inner): Likewise.
7825 * p-valprint.c (pascal_value_print_inner): Likewise.
7826 * valprint.c (generic_val_print_array): Likewise.
7827 (value_print_array_elements): Move first array element and array
7828 end bracket to new line.
7829
7830 2020-04-29 Tom de Vries <tdevries@suse.de>
7831
7832 PR symtab/25889
7833 * linespec.c (find_method): Fix ix calculation.
7834
7835 2020-04-28 Kamil Rytarowski <n54@gmx.com>
7836
7837 * syscalls/update-netbsd.sh: New file.
7838 * syscalls/netbsd.xml: Regenerate.
7839 * data-directory/Makefile.in: Register `netbsd.xml' in
7840 `SYSCALLS_FILES'.
7841
7842 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
7843
7844 * syscalls/update-freebsd.sh: Add double quotes.
7845
7846 2020-04-28 Tom Tromey <tom@tromey.com>
7847
7848 * NEWS: Update.
7849 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
7850 (cmdpy_init): Allow class_tui.
7851
7852 2020-04-28 Mark Williams <mark@myosotissp.com>
7853
7854 PR gdb/24480
7855 * dwarf2read.c: Add missing assingments to list_in_scope when
7856 start_symtab was already called.
7857
7858 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
7859
7860 PR gdb/25881
7861 * dwarf2/read.c (offset_map_type): Use
7862 gdb:hash_enum<sect_offset> as hash function.
7863
7864 2020-04-28 Tom de Vries <tdevries@suse.de>
7865
7866 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
7867 with DW_AT_signature.
7868
7869 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
7870
7871 * configure.ac: Remove check for fs_base/gs_base in
7872 user_regs_struct.
7873 * configure: Re-generate.
7874 * config.in: Re-generate.
7875 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
7876 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
7877 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
7878
7879 2020-04-27 Luis Machado <luis.machado@linaro.org>
7880
7881 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
7882 problematic inline frame unwinding situation.
7883 * frame.c (frame_id_computed_p): New function.
7884 * frame.h (frame_id_computed_p): New prototype.
7885
7886 2020-04-26 Tom Tromey <tom@tromey.com>
7887
7888 * command.h (enum command_class) <class_pseudo>: Remove.
7889
7890 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7891
7892 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
7893 and whitespace.
7894
7895 2020-04-25 Kamil Rytarowski <n54@gmx.com>
7896
7897 * inf-ptrace.c (inf_ptrace_target::wait): Remove
7898 `PT_GET_PROCESS_STATE' block.
7899
7900 2020-04-24 Tom Tromey <tom@tromey.com>
7901
7902 * symtab.h (symbol_get_demangled_name): Don't declare.
7903 * symtab.c (symbol_get_demangled_name): Remove.
7904 (general_symbol_info::natural_name)
7905 (general_symbol_info::demangled_name): Update.
7906
7907 2020-04-24 Tom Tromey <tom@tromey.com>
7908
7909 PR rust/25025:
7910 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
7911
7912 2020-04-24 Tom Tromey <tom@tromey.com>
7913
7914 PR symtab/12707:
7915 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
7916 exists.
7917 (new_symbol): Likewise.
7918 * compile/compile-object-load.c (get_out_value_type): Use
7919 symbol_matches_search_name.
7920
7921 2020-04-24 Tom Tromey <tom@tromey.com>
7922
7923 * dwarf2/read.c (add_partial_symbol): Do not call
7924 compute_and_set_names.
7925
7926 2020-04-24 Tom Tromey <tom@tromey.com>
7927
7928 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
7929 overload.
7930
7931 2020-04-24 Tom Tromey <tom@tromey.com>
7932
7933 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
7934 (add_psymbol_to_list): New overload. Make old overload call new
7935 one.
7936 * psympriv.h (add_psymbol_to_list): New overload.
7937
7938 2020-04-24 Tom Tromey <tom@tromey.com>
7939
7940 * dwarf2/read.c (partial_die_info::read) <case
7941 DW_AT_linkage_name>: Use value_as_string.
7942 (dwarf2_string_attr): Use value_as_string.
7943 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
7944 method.
7945 * dwarf2/attribute.c (attribute::value_as_string): New method.
7946
7947 2020-04-24 Tom Tromey <tom@tromey.com>
7948
7949 * symtab.c (general_symbol_info::natural_name)
7950 (general_symbol_info::demangled_name): Check for language_rust.
7951
7952 2020-04-24 Tom Tromey <tom@tromey.com>
7953
7954 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
7955 (dwarf2_physname): ... from here.
7956 (partial_die_info::read): Add Rust "{" hack.
7957
7958 2020-04-24 Tom Tromey <tom@tromey.com>
7959
7960 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
7961 method.
7962 (symbol_set_demangled_name): Don't declare.
7963 * symtab.c (general_symbol_info::set_demangled_name): Rename from
7964 symbol_set_demangled_name.
7965 (general_symbol_info::set_language)
7966 (general_symbol_info::compute_and_set_names): Update.
7967 * minsyms.c (minimal_symbol_reader::install): Update.
7968 * dwarf2/read.c (new_symbol): Update.
7969
7970 2020-04-24 Tom Tromey <tromey@adacore.com>
7971
7972 PR python/23662:
7973 * python/py-type.c (convert_field): Handle
7974 FIELD_LOC_KIND_DWARF_BLOCK.
7975 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
7976 (typy_get_dynamic): Nw function.
7977 (type_object_getset): Add "dynamic".
7978 * NEWS: Add entry.
7979
7980 2020-04-24 Tom Tromey <tromey@adacore.com>
7981
7982 * ada-typeprint.c (print_choices, print_variant_part)
7983 (print_record_field_types_dynamic): New functions.
7984 (print_record_field_types): Use print_record_field_types_dynamic.
7985
7986 2020-04-24 Tom Tromey <tromey@adacore.com>
7987
7988 * dwarf2/read.c (handle_data_member_location): New overload.
7989 (dwarf2_add_field): Use it.
7990 (decode_locdesc): Add "computed" parameter. Update comment.
7991 * gdbtypes.c (is_dynamic_type_internal): Also look for
7992 FIELD_LOC_KIND_DWARF_BLOCK.
7993 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
7994 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
7995 virtual base classes.
7996 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
7997 FIELD_LOC_KIND_DWARF_BLOCK.
7998
7999 2020-04-24 Tom Tromey <tromey@adacore.com>
8000
8001 * dwarf2/read.c (read_structure_type): Handle dynamic length.
8002 * gdbtypes.c (is_dynamic_type_internal): Check
8003 TYPE_HAS_DYNAMIC_LENGTH.
8004 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
8005 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
8006 New macros.
8007 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
8008 constant.
8009
8010 2020-04-24 Tom Tromey <tromey@adacore.com>
8011
8012 * dwarf2/read.c (struct variant_field): Rewrite.
8013 (struct variant_part_builder): New.
8014 (struct nextfield): Remove "variant" field. Add "offset".
8015 (struct field_info): Add "current_variant_part" and
8016 "variant_parts".
8017 (alloc_discriminant_info): Remove.
8018 (alloc_rust_variant): New function.
8019 (quirk_rust_enum): Update.
8020 (dwarf2_add_field): Set "offset" member. Don't handle
8021 DW_TAG_variant_part.
8022 (offset_map_type): New typedef.
8023 (convert_variant_range, create_one_variant)
8024 (create_one_variant_part, create_variant_parts)
8025 (add_variant_property): New functions.
8026 (dwarf2_attach_fields_to_type): Call add_variant_property.
8027 (read_structure_type): Don't handle DW_TAG_variant_part.
8028 (handle_variant_part, handle_variant): New functions.
8029 (handle_struct_member_die): Use them.
8030 (process_structure_scope): Don't handle variant parts.
8031 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
8032 (struct discriminant_info): Remove.
8033 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
8034 (struct main_type) <flag_discriminated_union>: Remove.
8035 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
8036 (rust_enum_variant): Return int. Remove "contents". Rewrite.
8037 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
8038 Update.
8039 * valops.c (value_union_variant): Remove.
8040 * value.h (value_union_variant): Don't declare.
8041
8042 2020-04-24 Tom Tromey <tromey@adacore.com>
8043
8044 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
8045 (ada_value_primitive_packed_val): Update.
8046 * ada-valprint.c (ada_value_print_1): Update.
8047 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
8048 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
8049 just an address. Use evaluate_for_locexpr_baton.
8050 (dwarf2_evaluate_property): Update.
8051 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
8052 array_view.
8053 * findvar.c (default_read_var_value): Update.
8054 * gdbtypes.c (compute_variant_fields_inner)
8055 (resolve_dynamic_type_internal): Update.
8056 (resolve_dynamic_type): Change type of valaddr parameter.
8057 * gdbtypes.h (resolve_dynamic_type): Update.
8058 * valarith.c (value_subscripted_rvalue): Update.
8059 * value.c (value_from_contents_and_address): Update.
8060
8061 2020-04-24 Tom Tromey <tromey@adacore.com>
8062
8063 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
8064 "push_initial_value" parameter.
8065 (dwarf2_evaluate_property): Likewise.
8066 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
8067
8068 2020-04-24 Tom Tromey <tromey@adacore.com>
8069
8070 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
8071 (variant::matches, compute_variant_fields_recurse)
8072 (compute_variant_fields_inner, compute_variant_fields): New
8073 functions.
8074 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
8075 Use resolved_type after type is made.
8076 (operator==): Add new cases.
8077 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
8078 (struct discriminant_range, struct variant, struct variant_part):
8079 New.
8080 (union dynamic_prop_data) <variant_parts, original_type>: New
8081 members.
8082 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
8083 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
8084 constants.
8085 * value.c (unpack_bits_as_long): Now public.
8086 * value.h (unpack_bits_as_long): Declare.
8087
8088 2020-04-24 Tom Tromey <tromey@adacore.com>
8089
8090 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
8091 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
8092
8093 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
8094
8095 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
8096
8097 2020-04-24 Kamil Rytarowski <n54@gmx.com>
8098
8099 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
8100 (remove_fork_catchpoint, post_startup_inferior)
8101 (post_attach): Move...
8102 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
8103 (remove_fork_catchpoint, post_startup_inferior)
8104 (post_attach): ...here.
8105 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
8106 (remove_fork_catchpoint, post_startup_inferior)
8107 (post_attach): Move...
8108 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
8109 (remove_fork_catchpoint, post_startup_inferior)
8110 (post_attach): ...here.
8111
8112 2020-04-24 Tom Tromey <tromey@adacore.com>
8113
8114 * nat/windows-nat.h (struct windows_thread_info)
8115 <pc_adjusted>: New member.
8116 * windows-nat.c (windows_fetch_one_register): Check
8117 pc_adjusted.
8118 (windows_nat_target::get_windows_debug_event)
8119 (windows_nat_target::wait): Set pc_adjusted.
8120
8121 2020-04-24 Tom de Vries <tdevries@suse.de>
8122
8123 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
8124 Run gdb-add-index inside temp dir.
8125
8126 2020-04-23 Tom Tromey <tromey@adacore.com>
8127
8128 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
8129 in loop.
8130
8131 2020-04-23 Luis Machado <luis.machado@linaro.org>
8132
8133 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
8134 get_frame_register instead of gdbarch_unwind_pc.
8135
8136 2020-04-23 Tom de Vries <tdevries@suse.de>
8137
8138 * symtab.c (lookup_global_symbol): Prefer def over decl.
8139
8140 2020-04-23 Tom de Vries <tdevries@suse.de>
8141
8142 PR symtab/25807
8143 * block.c (best_symbol, better_symbol): Promote to external.
8144 * block.h (best_symbol, better_symbol): Declare.
8145 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
8146 decl.
8147
8148 2020-04-23 Tom Tromey <tromey@adacore.com>
8149
8150 PR ada/25837:
8151 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
8152 "const char *", not a "const std::string &".
8153 <name_and_matcher::operator==>: Update.
8154 * unittests/lookup_name_info-selftests.c: Change type of
8155 "result".
8156
8157 2020-04-23 Tom Tromey <tom@tromey.com>
8158
8159 * inferior.h (iterate_over_inferiors): Don't declare.
8160 * inferior.c (iterate_over_inferiors): Remove.
8161 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
8162 Remove.
8163 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
8164 use iterate_over_inferiors.
8165 (darwin_resume_inferior_it)
8166 (struct resume_inferior_threads_param)
8167 (darwin_resume_inferior_threads_it): Remove.
8168 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
8169
8170 2020-04-23 Tom de Vries <tdevries@suse.de>
8171
8172 * blockframe.c (find_pc_partial_function): Use
8173 find_pc_sect_compunit_symtab rather than
8174 objfile->sf->qf->find_pc_sect_compunit_symtab.
8175
8176 2020-04-22 Tom de Vries <tdevries@suse.de>
8177
8178 PR symtab/25764
8179 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
8180 in psymtabs.
8181
8182 2020-04-22 Tom de Vries <tdevries@suse.de>
8183
8184 PR symtab/25801
8185 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
8186 symtabs.
8187
8188 2020-04-22 Tom de Vries <tdevries@suse.de>
8189
8190 PR symtab/25700
8191 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
8192 CU if already created.
8193
8194 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8195
8196 * infrun.c (displaced_step_fixup): Switch to the event_thread
8197 before calling displaced_step_restore, not after.
8198
8199 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
8200
8201 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
8202 its inferior is not recorded by us.
8203 (record_btrace_target_open): Replace call to
8204 all_non_exited_threads () with call to current_inferior
8205 ()->non_exited_threads ().
8206 (record_btrace_target::stop_recording): Likewise.
8207 (record_btrace_target::close): Likewise.
8208 (record_btrace_target::wait): Likewise.
8209 (record_btrace_target::record_stop_replaying): Likewise.
8210
8211 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
8212
8213 * btrace.c (btrace_enable): Throw an error on double enables and
8214 when enabling recording fails.
8215 (btrace_disable): Throw an error if the thread is not recorded.
8216
8217 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
8218
8219 * record-btrace.c (record_btrace_target::fetch_registers): Forward
8220 request if we do not have a thread_info.
8221
8222 2020-04-21 Tom de Vries <tdevries@suse.de>
8223
8224 PR gdb/25471
8225 * thread.c
8226 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
8227 exception in get_frame_id.
8228
8229 2020-04-20 Tom Tromey <tromey@adacore.com>
8230
8231 * python/python.c (struct gdbpy_event): Mark move constructor as
8232 noexcept.
8233 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
8234 constructor as noexcept.
8235 * completer.h (struct completion_result): Mark move constructor as
8236 noexcept.
8237 * completer.c (completion_result::completion_result): Use
8238 initialization style. Don't call reset_match_list.
8239
8240 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
8241
8242 * MAINTAINERS (Write After Approval): Add myself.
8243
8244 2020-04-18 Tom Tromey <tom@tromey.com>
8245
8246 * windows-tdep.c (init_w32_command_list)
8247 (w32_prefix_command_valid): Restore.
8248 (_initialize_windows_tdep): Call init_w32_command_list.
8249
8250 2020-04-18 Tom Tromey <tom@tromey.com>
8251
8252 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
8253 * value.c (value_fn_field): Update.
8254 * valops.c (find_function_in_inferior)
8255 (value_allocate_space_in_inferior): Update.
8256 * tui/tui-winsource.c (tui_update_source_windows_with_line):
8257 Update.
8258 * tui/tui-source.c (tui_source_window::set_contents): Update.
8259 * symtab.c (lookup_global_or_static_symbol)
8260 (find_function_start_sal_1, skip_prologue_sal)
8261 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
8262 * symmisc.c (dump_msymbols, dump_symtab_1)
8263 (maintenance_print_one_line_table): Update.
8264 * symfile.c (init_entry_point_info, section_is_mapped)
8265 (list_overlays_command, simple_read_overlay_table)
8266 (simple_overlay_update_1): Update.
8267 * stap-probe.c (handle_stap_probe): Update.
8268 * stabsread.c (dbx_init_float_type, define_symbol)
8269 (read_one_struct_field, read_enum_type, read_range_type): Update.
8270 * source.c (info_line_command): Update.
8271 * python/python.c (gdbpy_source_objfile_script)
8272 (gdbpy_execute_objfile_script): Update.
8273 * python/py-type.c (save_objfile_types): Update.
8274 * python/py-objfile.c (py_free_objfile): Update.
8275 * python/py-inferior.c (python_new_objfile): Update.
8276 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
8277 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
8278 (maintenance_check_psymtabs): Update.
8279 * printcmd.c (info_address_command): Update.
8280 * objfiles.h (struct objfile) <arch>: New method, from
8281 get_objfile_arch.
8282 (get_objfile_arch): Don't declare.
8283 * objfiles.c (get_objfile_arch): Remove.
8284 (filter_overlapping_sections): Update.
8285 * minsyms.c (msymbol_is_function): Update.
8286 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
8287 (output_nondebug_symbol): Update.
8288 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
8289 (mdebug_expand_psymtab): Update.
8290 * machoread.c (macho_add_oso_symfile): Update.
8291 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
8292 Update.
8293 * linux-fork.c (checkpoint_command): Update.
8294 * linespec.c (convert_linespec_to_sals): Update.
8295 * jit.c (finalize_symtab): Update.
8296 * infrun.c (insert_exception_resume_from_probe): Update.
8297 * ia64-tdep.c (ia64_find_unwind_table): Update.
8298 * hppa-tdep.c (internalize_unwinds): Update.
8299 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
8300 Update.
8301 * gcore.c (call_target_sbrk): Update.
8302 * elfread.c (record_minimal_symbol, elf_symtab_read)
8303 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
8304 (elf_gnu_ifunc_resolve_by_got): Update.
8305 * dwarf2/read.c (create_addrmap_from_index)
8306 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
8307 (read_debug_names_from_section)
8308 (process_psymtab_comp_unit_reader, add_partial_symbol)
8309 (add_partial_subprogram, process_full_comp_unit)
8310 (read_file_scope, read_func_scope, read_lexical_block_scope)
8311 (read_call_site_scope, dwarf2_ranges_read)
8312 (dwarf2_record_block_ranges, dwarf2_add_field)
8313 (mark_common_block_symbol_computed, read_tag_pointer_type)
8314 (read_tag_string_type, dwarf2_init_float_type)
8315 (dwarf2_init_complex_target_type, read_base_type)
8316 (partial_die_info::read, partial_die_info::read)
8317 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
8318 (dwarf2_fetch_die_loc_sect_off): Update.
8319 * dwarf2/loc.c (dwarf2_find_location_expression)
8320 (class dwarf_evaluate_loc_desc, rw_pieced_value)
8321 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
8322 (dwarf2_loc_desc_get_symbol_read_needs)
8323 (locexpr_describe_location_piece, locexpr_describe_location_1)
8324 (loclist_describe_location): Update.
8325 * dwarf2/index-write.c (write_debug_names): Update.
8326 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
8327 * dtrace-probe.c (dtrace_process_dof): Update.
8328 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
8329 (process_one_symbol): Update.
8330 * ctfread.c (ctf_init_float_type, read_base_type): Update.
8331 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
8332 (coff_read_enum_type): Update.
8333 * cli/cli-cmds.c (edit_command, list_command): Update.
8334 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
8335 * breakpoint.c (create_overlay_event_breakpoint)
8336 (create_longjmp_master_breakpoint)
8337 (create_std_terminate_master_breakpoint)
8338 (create_exception_master_breakpoint, get_sal_arch): Update.
8339 * block.c (block_gdbarch): Update.
8340 * annotate.c (annotate_source_line): Update.
8341
8342 2020-04-17 Tom Tromey <tromey@adacore.com>
8343
8344 * auto-load.c (show_auto_load_cmd): Remove.
8345 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
8346 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
8347 (maintenance_print_arc_command): Remove.
8348 * tui/tui-win.c (tui_command): Remove.
8349 (tui_get_cmd_list): Use add_basic_prefix_cmd.
8350 * tui/tui-layout.c (tui_layout_command): Remove.
8351 (_initialize_tui_layout): Use add_basic_prefix_cmd.
8352 * python/python.c (user_set_python, user_show_python): Remove.
8353 (_initialize_python): Use add_basic_prefix_cmd,
8354 add_show_prefix_cmd.
8355 * guile/guile.c (set_guile_command, show_guile_command): Remove.
8356 (install_gdb_commands): Use add_basic_prefix_cmd,
8357 add_show_prefix_cmd.
8358 (info_guile_command): Remove.
8359 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
8360 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
8361 add_show_prefix_cmd.
8362 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
8363 Remove do_set and do_show parameters.
8364 * cli/cli-style.c (set_style, show_style): Remove.
8365 (_initialize_cli_style): Use add_basic_prefix_cmd,
8366 add_show_prefix_cmd.
8367 (cli_style_option::add_setshow_commands): Remove do_set and
8368 do_show parameters.
8369 (cli_style_option::add_setshow_commands): Use
8370 add_basic_prefix_cmd, add_show_prefix_cmd.
8371 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
8372 (set_style_name): Remove.
8373 * cli/cli-dump.c (dump_command, append_command): Remove.
8374 (srec_dump_command, ihex_dump_command, verilog_dump_command)
8375 (tekhex_dump_command, binary_dump_command)
8376 (binary_append_command): Remove.
8377 (_initialize_cli_dump): Use add_basic_prefix_cmd.
8378 * windows-tdep.c (w32_prefix_command_valid): Remove global.
8379 (init_w32_command_list): Remove; move into ...
8380 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
8381 * valprint.c (set_print, show_print, set_print_raw)
8382 (show_print_raw): Remove.
8383 (_initialize_valprint): Use add_basic_prefix_cmd,
8384 add_show_prefix_cmd.
8385 * typeprint.c (set_print_type, show_print_type): Remove.
8386 (_initialize_typeprint): Use add_basic_prefix_cmd,
8387 add_show_prefix_cmd.
8388 * record.c (set_record_command, show_record_command): Remove.
8389 (_initialize_record): Use add_basic_prefix_cmd,
8390 add_show_prefix_cmd.
8391 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
8392 add_show_prefix_cmd.
8393 (info_command, show_command, set_debug, show_debug): Remove.
8394 * top.h (set_history, show_history): Don't declare.
8395 * top.c (set_history, show_history): Remove.
8396 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
8397 (unset_tdesc_cmd): Remove.
8398 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
8399 add_show_prefix_cmd.
8400 * symtab.c (info_module_command): Remove.
8401 (_initialize_symtab): Use add_basic_prefix_cmd.
8402 * symfile.c (overlay_command): Remove.
8403 (_initialize_symfile): Use add_basic_prefix_cmd.
8404 * sparc64-tdep.c (info_adi_command): Remove.
8405 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
8406 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
8407 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
8408 add_show_prefix_cmd.
8409 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
8410 (_initialize_serial): Use add_basic_prefix_cmd,
8411 add_show_prefix_cmd.
8412 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
8413 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
8414 add_show_prefix_cmd.
8415 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
8416 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
8417 add_show_prefix_cmd.
8418 * riscv-tdep.c (show_riscv_command, set_riscv_command)
8419 (show_debug_riscv_command, set_debug_riscv_command): Remove.
8420 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
8421 add_show_prefix_cmd.
8422 * remote.c (remote_command, set_remote_cmd): Remove.
8423 (_initialize_remote): Use add_basic_prefix_cmd.
8424 * record-full.c (set_record_full_command)
8425 (show_record_full_command): Remove.
8426 (_initialize_record_full): Use add_basic_prefix_cmd,
8427 add_show_prefix_cmd.
8428 * record-btrace.c (cmd_set_record_btrace)
8429 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
8430 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
8431 (cmd_show_record_btrace_pt): Remove.
8432 (_initialize_record_btrace): Use add_basic_prefix_cmd,
8433 add_show_prefix_cmd.
8434 * ravenscar-thread.c (set_ravenscar_command)
8435 (show_ravenscar_command): Remove.
8436 (_initialize_ravenscar): Use add_basic_prefix_cmd,
8437 add_show_prefix_cmd.
8438 * mips-tdep.c (show_mips_command, set_mips_command)
8439 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
8440 add_show_prefix_cmd.
8441 * maint.c (maintenance_command, maintenance_info_command)
8442 (maintenance_check_command, maintenance_print_command)
8443 (maintenance_set_cmd, maintenance_show_cmd): Remove.
8444 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
8445 add_show_prefix_cmd.
8446 (show_per_command_cmd): Remove.
8447 * maint-test-settings.c (maintenance_set_test_settings_cmd):
8448 Remove.
8449 (maintenance_show_test_settings_cmd): Remove.
8450 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
8451 add_show_prefix_cmd.
8452 * maint-test-options.c (maintenance_test_options_command):
8453 Remove.
8454 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
8455 * macrocmd.c (macro_command): Remove
8456 (_initialize_macrocmd): Use add_basic_prefix_cmd.
8457 * language.c (set_check, show_check): Remove.
8458 (_initialize_language): Use add_basic_prefix_cmd,
8459 add_show_prefix_cmd.
8460 * infcmd.c (unset_command): Remove.
8461 (_initialize_infcmd): Use add_basic_prefix_cmd.
8462 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
8463 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
8464 add_show_prefix_cmd.
8465 * go32-nat.c (go32_info_dos_command): Remove.
8466 (_initialize_go32_nat): Use add_basic_prefix_cmd.
8467 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
8468 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
8469 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
8470 (_initialize_frame): Use add_basic_prefix_cmd,
8471 add_show_prefix_cmd.
8472 * dcache.c (set_dcache_command, show_dcache_command): Remove.
8473 (_initialize_dcache): Use add_basic_prefix_cmd,
8474 add_show_prefix_cmd.
8475 * cp-support.c (maint_cplus_command): Remove.
8476 (_initialize_cp_support): Use add_basic_prefix_cmd.
8477 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
8478 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
8479 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
8480 add_basic_prefix_cmd, add_show_prefix_cmd.
8481 * breakpoint.c (save_command): Remove.
8482 (_initialize_breakpoint): Use add_basic_prefix_cmd.
8483 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
8484 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
8485 add_show_prefix_cmd.
8486 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
8487 (set_ada_command, show_ada_command): Remove.
8488 (_initialize_ada_language): Use add_basic_prefix_cmd,
8489 add_show_prefix_cmd.
8490 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
8491
8492 2020-04-16 Kamil Rytarowski <n54@gmx.com>
8493
8494 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
8495 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
8496
8497 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
8498
8499 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
8500 warning messages.
8501
8502 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
8503
8504 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
8505 import table is not at beginning of .idata section.
8506
8507 2020-04-16 Pedro Alves <palves@redhat.com>
8508
8509 * inferior.c (delete_inferior): Use delete operator directly
8510 instead of delete_program_space.
8511 * progspace.c (add_program_space): New, factored out from
8512 program_space::program_space.
8513 (remove_program_space): New, factored out from
8514 delete_program_space.
8515 (program_space::program_space): Remove intro comment. Rewrite.
8516 (program_space::~program_space): Remove intro comment. Call
8517 remove_program_space.
8518 (delete_program_space): Delete.
8519 * progspace.h (program_space::program_space): Make explicit. Move
8520 intro comment here, adjusted.
8521 (program_space::~program_space): Move intro comment here,
8522 adjusted.
8523 (delete_program_space): Remove.
8524
8525 2020-04-16 Tom Tromey <tromey@adacore.com>
8526
8527 * windows-nat.c (windows_nat::handle_access_violation): New
8528 function.
8529 * nat/windows-nat.h (handle_access_violation): Declare.
8530 * nat/windows-nat.c (handle_exception): Move Cygwin code to
8531 windows-nat.c. Call handle_access_violation.
8532
8533 2020-04-16 Tom de Vries <tdevries@suse.de>
8534
8535 PR symtab/25791
8536 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
8537 CUs without psymtab.
8538
8539 2020-04-16 Kevin Buettner <kevinb@redhat.com>
8540
8541 * python/python.c (do_start_initialization): Don't call
8542 PyEval_InitThreads for Python 3.9 and beyond.
8543
8544 2020-04-15 Kamil Rytarowski <n54@gmx.com>
8545
8546 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
8547 thread functions.
8548 (obsd_nat_target::wait): Likewise.
8549
8550 2020-04-15 Tom Tromey <tromey@adacore.com>
8551
8552 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
8553 (DEBUG_EXCEPT): Use debug_printf.
8554
8555 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
8556
8557 * completer.c (class completion_tracker::completion_hash_entry)
8558 <hash_name>: New member function.
8559 (completion_tracker::discard_completions): New callback to hash a
8560 completion_hash_entry, pass this to htab_create_alloc.
8561
8562 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
8563
8564 * windows-nat.c (windows_make_so): Warn rather than stopping with
8565 an error if realpath() fails.
8566
8567 2020-04-14 Kamil Rytarowski <n54@gmx.com>
8568
8569 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
8570 (nbsd_nat_target::info_proc): Add do_status.
8571
8572 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
8573 Tom de Vries <tdevries@suse.de>
8574
8575 PR symtab/25718
8576 * psympriv.h (struct partial_symtab::read_symtab)
8577 (struct partial_symtab::expand_psymtab)
8578 (struct partial_symtab::read_dependencies): Update comments.
8579 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
8580 read_symtab for includer.
8581 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
8582 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
8583 (struct dwarf2_include_psymtab::m_readin): Remove.
8584 (struct dwarf2_include_psymtab::includer): New member function.
8585 (dwarf2_psymtab::expand_psymtab): Assert !readin.
8586
8587 2020-04-14 Tom de Vries <tdevries@suse.de>
8588
8589 PR symtab/25720
8590 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
8591 with NULL symbol_matcher and lookup_name.
8592 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
8593 and lookup_name.
8594 * dwarf2/read.c (dw2_expand_symtabs_matching)
8595 (dw2_debug_names_expand_symtabs_matching): Same.
8596 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
8597 Make lookup_name a pointer. Update comment.
8598 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
8599 lookup_name being a pointer.
8600 * symfile.c (expand_symtabs_matching): Same.
8601 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
8602 * linespec.c (iterate_over_all_matching_symtabs): Same.
8603
8604 2020-04-13 Tom Tromey <tom@tromey.com>
8605
8606 * run-on-main-thread.c: Update include.
8607 * unittests/main-thread-selftests.c: Update include.
8608 * tui/tui-win.c: Update include.
8609 * tui/tui-io.c: Update include.
8610 * tui/tui-interp.c: Update include.
8611 * tui/tui-hooks.c: Update include.
8612 * top.h: Update include.
8613 * top.c: Update include.
8614 * ser-base.c: Update include.
8615 * remote.c: Update include.
8616 * remote-notif.c: Update include.
8617 * remote-fileio.c: Update include.
8618 * record-full.c: Update include.
8619 * record-btrace.c: Update include.
8620 * python/python.c: Update include.
8621 * posix-hdep.c: Update include.
8622 * mingw-hdep.c: Update include.
8623 * mi/mi-main.c: Update include.
8624 * mi/mi-interp.c: Update include.
8625 * main.c: Update include.
8626 * linux-nat.c: Update include.
8627 * interps.c: Update include.
8628 * infrun.c: Update include.
8629 * inf-loop.c: Update include.
8630 * event-top.c: Update include.
8631 * event-loop.c: Move to ../gdbsupport/.
8632 * event-loop.h: Move to ../gdbsupport/.
8633 * async-event.h: Update include.
8634 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
8635
8636 2020-04-13 Tom Tromey <tom@tromey.com>
8637
8638 * tui/tui-win.c: Include async-event.h.
8639 * remote.c: Include async-event.h.
8640 * remote-notif.c: Include async-event.h.
8641 * record-full.c: Include async-event.h.
8642 * record-btrace.c: Include async-event.h.
8643 * infrun.c: Include async-event.h.
8644 * event-top.c: Include async-event.h.
8645 * event-loop.h: Move some declarations to async-event.h.
8646 * event-loop.c: Don't include ser-event.h or top.h. Move some
8647 code to async-event.c.
8648 * async-event.h: New file.
8649 * async-event.c: New file.
8650 * Makefile.in (COMMON_SFILES): Add async-event.c.
8651 (HFILES_NO_SRCDIR): Add async-event.h.
8652
8653 2020-04-13 Tom Tromey <tom@tromey.com>
8654
8655 * utils.c (flush_streams): New function.
8656 * event-loop.c (gdb_wait_for_event): Call flush_streams.
8657
8658 2020-04-13 Tom Tromey <tom@tromey.com>
8659
8660 * event-loop.c (handle_file_event): Use warning, not
8661 printf_unfiltered.
8662
8663 2020-04-13 Tom Tromey <tom@tromey.com>
8664
8665 * event-loop.c: Include <chrono>.
8666
8667 2020-04-13 Tom Tromey <tom@tromey.com>
8668
8669 * gdb_select.h: Move to ../gdbsupport/.
8670 * event-loop.c: Update include path.
8671 * top.c: Update include path.
8672 * ser-base.c: Update include path.
8673 * ui-file.c: Update include path.
8674 * ser-tcp.c: Update include path.
8675 * guile/scm-ports.c: Update include path.
8676 * posix-hdep.c: Update include path.
8677 * ser-unix.c: Update include path.
8678 * gdb_usleep.c: Update include path.
8679 * mingw-hdep.c: Update include path.
8680 * inflow.c: Update include path.
8681 * infrun.c: Update include path.
8682 * event-top.c: Update include path.
8683
8684 2020-04-13 Tom Tromey <tom@tromey.com>
8685
8686 * configure: Rebuild.
8687 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
8688
8689 2020-04-13 Tom Tromey <tom@tromey.com>
8690
8691 * event-loop.h (start_event_loop): Don't declare.
8692 * event-loop.c (start_event_loop): Move...
8693 * main.c (start_event_loop): ...here. Now static.
8694
8695 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
8696
8697 * MAINTAINERS: Update my email address.
8698
8699 2020-04-12 Kamil Rytarowski <n54@gmx.com>
8700
8701 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
8702 IP_ALL.
8703
8704 2020-04-12 Kamil Rytarowski <n54@gmx.com>
8705
8706 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
8707 (nbsd_nat_target::info_proc): Add do_cmdline.
8708
8709 2020-04-12 Kamil Rytarowski <n54@gmx.com>
8710
8711 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
8712 (nbsd_nat_target::info_proc): Add do_cwd.
8713
8714 2020-04-12 Kamil Rytarowski <n54@gmx.com>
8715
8716 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
8717
8718 2020-04-11 Kamil Rytarowski <n54@gmx.com>
8719
8720 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
8721 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
8722 (nbsd_nat_target::info_proc): New functions.
8723 * nbsd-nat.c (kinfo_get_vmmap): New function.
8724 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
8725 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
8726 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
8727 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
8728 functions.
8729 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
8730 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
8731 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
8732 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
8733 (KINFO_VME_FLAG_GROWS_DOWN): New.
8734
8735 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
8736
8737 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
8738 bit shift.
8739
8740 2020-04-10 Tom Tromey <tromey@adacore.com>
8741
8742 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
8743
8744 2020-04-10 Tom Tromey <tromey@adacore.com>
8745
8746 * symtab.c (get_symbol_address, get_msymbol_address): Skip
8747 separate debug files.
8748
8749 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
8750
8751 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
8752 Move to...
8753 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
8754 ... here.
8755 * windows-nat.c (windows_nat_target::get_windows_debug_event):
8756 Check for STATUS_WX86_BREAKPOINT.
8757 (windows_nat_target::wait): Same.
8758
8759 2020-04-10 Tom de Vries <tdevries@suse.de>
8760
8761 PR cli/25808
8762 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
8763
8764 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
8765
8766 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
8767 (Write After Approval): Remove Tom de Vries.
8768
8769 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
8770
8771 revert partially:
8772 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8773
8774 * buildsym.c (record_line): Fix undefined behavior and preserve
8775 lines at eof.
8776
8777 2020-04-09 Kamil Rytarowski <n54@gmx.com>
8778
8779 * auxv.h (svr4_auxv_parse): New.
8780 * auxv.c (default_auxv_parse): Split into default_auxv_parse
8781 and generic_auxv_parse.
8782 (svr4_auxv_parse): Add.
8783 * obsd-tdep.c: Include "auxv.h".
8784 (obsd_auxv_parse): Remove.
8785 (obsd_init_abi): Remove comment.
8786 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
8787 from `obsd_auxv_parse' to `svr4_auxv_parse'.
8788 * nbsd-tdep.c: Include "auxv.h".
8789 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
8790
8791 2020-04-08 Tom Tromey <tromey@adacore.com>
8792
8793 * nat/windows-nat.h (last_wait_event): Don't declare.
8794 (wait_for_debug_event): Update comment.
8795 * nat/windows-nat.c (last_wait_event): Now static.
8796
8797 2020-04-08 Tom Tromey <tromey@adacore.com>
8798
8799 * windows-nat.c (wait_for_debug_event): Move to
8800 nat/windows-nat.c.
8801 * nat/windows-nat.h (wait_for_debug_event): Declare.
8802 * nat/windows-nat.c (wait_for_debug_event): Move from
8803 windows-nat.c. No longer static.
8804
8805 2020-04-08 Tom Tromey <tromey@adacore.com>
8806
8807 * windows-nat.c (get_windows_debug_event): Use
8808 fetch_pending_stop.
8809 * nat/windows-nat.h (fetch_pending_stop): Declare.
8810 * nat/windows-nat.c (fetch_pending_stop): New function.
8811
8812 2020-04-08 Tom Tromey <tromey@adacore.com>
8813
8814 * windows-nat.c (windows_continue): Use matching_pending_stop and
8815 continue_last_debug_event.
8816 * nat/windows-nat.h (matching_pending_stop)
8817 (continue_last_debug_event): Declare.
8818 * nat/windows-nat.c (DEBUG_EVENTS): New define.
8819 (matching_pending_stop, continue_last_debug_event): New
8820 functions.
8821
8822 2020-04-08 Tom Tromey <tromey@adacore.com>
8823
8824 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
8825 (handle_exception_result): Move to nat/windows-nat.h.
8826 (DEBUG_EXCEPTION_SIMPLE): Remove.
8827 (windows_nat::handle_ms_vc_exception): New function.
8828 (handle_exception): Move to nat/windows-nat.c.
8829 (get_windows_debug_event): Update.
8830 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
8831 nat/windows-nat.c.
8832 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
8833 (handle_exception_result): Move from windows-nat.c.
8834 (handle_exception): Declare.
8835 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
8836 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
8837 windows-nat.c.
8838
8839 2020-04-08 Tom Tromey <tromey@adacore.com>
8840
8841 * windows-nat.c (exception_count, event_count): Remove.
8842 (handle_exception, get_windows_debug_event)
8843 (do_initial_windows_stuff): Update.
8844
8845 2020-04-08 Tom Tromey <tromey@adacore.com>
8846
8847 * windows-nat.c (windows_nat::handle_load_dll)
8848 (windows_nat::handle_unload_dll): Rename. No longer static.
8849 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
8850 Declare.
8851
8852 2020-04-08 Tom Tromey <tromey@adacore.com>
8853
8854 * complaints.h (stop_whining): Declare at top-level.
8855 (complaint): Don't declare stop_whining.
8856
8857 2020-04-08 Tom Tromey <tromey@adacore.com>
8858
8859 * windows-nat.c (windows_nat::handle_output_debug_string):
8860 Rename. No longer static.
8861 * nat/windows-nat.h (handle_output_debug_string): Declare.
8862
8863 2020-04-08 Tom Tromey <tromey@adacore.com>
8864
8865 * windows-nat.c (current_process_handle, current_process_id)
8866 (main_thread_id, last_sig, current_event, last_wait_event)
8867 (current_windows_thread, desired_stop_thread_id, pending_stops)
8868 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
8869 (display_selectors, fake_create_process)
8870 (get_windows_debug_event): Update.
8871 * nat/windows-nat.h (current_process_handle, current_process_id)
8872 (main_thread_id, last_sig, current_event, last_wait_event)
8873 (current_windows_thread, desired_stop_thread_id, pending_stops)
8874 (struct pending_stop, siginfo_er): Move from windows-nat.c.
8875 * nat/windows-nat.c (current_process_handle, current_process_id)
8876 (main_thread_id, last_sig, current_event, last_wait_event)
8877 (current_windows_thread, desired_stop_thread_id, pending_stops)
8878 (siginfo_er): New globals. Move from windows-nat.c.
8879
8880 2020-04-08 Tom Tromey <tromey@adacore.com>
8881
8882 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
8883 (handle_load_dll): Update.
8884 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
8885
8886 2020-04-08 Tom Tromey <tromey@adacore.com>
8887
8888 * windows-nat.c (enum thread_disposition_type): Move to
8889 nat/windows-nat.h.
8890 (windows_nat::thread_rec): Rename from thread_rec. No longer
8891 static.
8892 (windows_add_thread, windows_nat_target::fetch_registers)
8893 (windows_nat_target::store_registers, handle_exception)
8894 (windows_nat_target::resume, get_windows_debug_event)
8895 (windows_nat_target::get_tib_address)
8896 (windows_nat_target::thread_name)
8897 (windows_nat_target::thread_alive): Update.
8898 * nat/windows-nat.h (enum thread_disposition_type): Move from
8899 windows-nat.c.
8900 (thread_rec): Declare.
8901
8902 2020-04-08 Tom Tromey <tromey@adacore.com>
8903
8904 * windows-nat.c: Add "using namespace".
8905 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
8906 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
8907
8908 2020-04-08 Tom Tromey <tromey@adacore.com>
8909
8910 * nat/windows-nat.h (struct windows_thread_info): Declare
8911 destructor.
8912 * nat/windows-nat.c (~windows_thread_info): New.
8913
8914 2020-04-08 Tom Tromey <tromey@adacore.com>
8915
8916 PR gdb/22992
8917 * windows-nat.c (current_event): Update comment.
8918 (last_wait_event, desired_stop_thread_id): New globals.
8919 (struct pending_stop): New.
8920 (pending_stops): New global.
8921 (windows_nat_target) <stopped_by_sw_breakpoint>
8922 <supports_stopped_by_sw_breakpoint>: New methods.
8923 (windows_fetch_one_register): Add assertions. Adjust PC.
8924 (windows_continue): Handle pending stops. Suspend other threads
8925 when stepping. Use last_wait_event
8926 (wait_for_debug_event): New function.
8927 (get_windows_debug_event): Use wait_for_debug_event. Handle
8928 pending stops. Queue spurious stops.
8929 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
8930 (windows_nat_target::kill): Use wait_for_debug_event.
8931 * nat/windows-nat.h (struct windows_thread_info)
8932 <stopped_at_software_breakpoint>: New field.
8933 * nat/windows-nat.c (windows_thread_info::resume): Clear
8934 stopped_at_software_breakpoint.
8935
8936 2020-04-08 Tom Tromey <tromey@adacore.com>
8937
8938 * windows-nat.c (enum thread_disposition_type): New.
8939 (thread_rec): Replace "get_context" parameter with "disposition";
8940 change type.
8941 (windows_add_thread, windows_nat_target::fetch_registers)
8942 (windows_nat_target::store_registers, handle_exception)
8943 (windows_nat_target::resume, get_windows_debug_event)
8944 (windows_nat_target::get_tib_address)
8945 (windows_nat_target::thread_name)
8946 (windows_nat_target::thread_alive): Update.
8947
8948 2020-04-08 Tom Tromey <tromey@adacore.com>
8949
8950 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
8951 (windows_continue): Use windows_continue::resume.
8952 * nat/windows-nat.h (struct windows_thread_info) <suspend,
8953 resume>: Declare new methods.
8954 * nat/windows-nat.c: New file.
8955 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
8956
8957 2020-04-08 Tom Tromey <tromey@adacore.com>
8958
8959 * windows-nat.c (windows_add_thread, windows_delete_thread)
8960 (windows_nat_target::fetch_registers)
8961 (windows_nat_target::store_registers, fake_create_process)
8962 (windows_nat_target::resume, windows_nat_target::resume)
8963 (get_windows_debug_event, windows_nat_target::wait)
8964 (windows_nat_target::pid_to_str)
8965 (windows_nat_target::get_tib_address)
8966 (windows_nat_target::get_ada_task_ptid)
8967 (windows_nat_target::thread_name)
8968 (windows_nat_target::thread_alive): Use lwp, not tid.
8969
8970 2020-04-08 Tom Tromey <tromey@adacore.com>
8971
8972 * windows-nat.c (handle_exception)
8973 (windows_nat_target::thread_name): Update.
8974 * nat/windows-nat.h (windows_thread_info): Remove destructor.
8975 <name>: Now unique_xmalloc_ptr.
8976
8977 2020-04-08 Tom Tromey <tromey@adacore.com>
8978
8979 * windows-nat.c (thread_rec)
8980 (windows_nat_target::fetch_registers): Update.
8981 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
8982 Update comment.
8983 <debug_registers_changed, reload_context>: Now bool.
8984
8985 2020-04-08 Tom Tromey <tromey@adacore.com>
8986
8987 * windows-nat.c (windows_add_thread): Use new.
8988 (windows_init_thread_list, windows_delete_thread): Use delete.
8989 (get_windows_debug_event): Update.
8990 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
8991 destructor, and initializers.
8992
8993 2020-04-08 Tom Tromey <tromey@adacore.com>
8994
8995 * windows-nat.c (struct windows_thread_info): Remove.
8996 * nat/windows-nat.h: New file.
8997
8998 2020-04-08 Tom Tromey <tromey@adacore.com>
8999
9000 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
9001 (thread_rec, windows_add_thread, windows_delete_thread)
9002 (windows_continue): Update.
9003
9004 2020-04-08 Tom Tromey <tromey@adacore.com>
9005
9006 * windows-nat.c (struct windows_thread_info): Remove typedef.
9007 (thread_head): Remove.
9008 (thread_list): New global.
9009 (thread_rec, windows_add_thread, windows_init_thread_list)
9010 (windows_delete_thread, windows_continue): Update.
9011
9012 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
9013
9014 * windows-tdep.h (windows_init_abi): Add comment.
9015 (cygwin_init_abi): New declaration.
9016 * windows-tdep.c: Split signal enumeration in two, one for
9017 Windows and one for Cygwin.
9018 (windows_gdb_signal_to_target): Only deal with signal of the
9019 Windows OS ABI.
9020 (cygwin_gdb_signal_to_target): New function.
9021 (windows_init_abi): Rename to windows_init_abi_common, don't set
9022 gdb_signal_to_target gdbarch method. Add new new function with
9023 this name.
9024 (cygwin_init_abi): New function.
9025 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
9026 comment. Don't call windows_init_abi.
9027 (amd64_windows_init_abi): Add comment, call windows_init_abi.
9028 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
9029 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
9030 i386_windows_init_abi_common, don't call windows_init_abi. Add
9031 a new function of this name.
9032 (i386_cygwin_init_abi): New function.
9033 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
9034 OS ABI Cygwin.
9035
9036 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
9037
9038 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
9039 parameter.c.
9040 (dwarf2_read_gdb_index): Update.
9041
9042 2020-04-07 Kamil Rytarowski <n54@gmx.com>
9043
9044 * nbsd-tdep.c: Include "objfiles.h".
9045 (nbsd_skip_solib_resolver): New.
9046 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
9047
9048 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
9049
9050 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
9051 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
9052 with DW_LLE_base_addressx are being emitted in DWARFv5.
9053 Add the newly added kind DW_LOC_OFFSET_PAIR also.
9054 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
9055 unsigned integer.
9056
9057 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
9058
9059 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
9060 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
9061 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
9062 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
9063 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
9064 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
9065 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
9066
9067
9068 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
9069
9070 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
9071 (read_loclist_index): New function definition.
9072 (lookup_loclist_base): New function definition.
9073 (read_loclist_header): New function definition.
9074 (dwarf2_cu): Add loclist_base and loclist_header field.
9075 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
9076 (read_full_die_1): Read the value of DW_AT_loclists_base.
9077 (read_attribute_reprocess): Handle DW_FORM_loclistx.
9078 (read_attribute_value): Handle DW_FORM_loclistx.
9079 (skip_one_die): Handle DW_FORM_loclistx.
9080 (loclist_header): New structure declaration.
9081 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
9082
9083 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9084
9085 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
9086 constructor. Remove `addr` parameter from other constructor and
9087 add `per_cu` parameter.
9088 * dwarf2/read.c (create_partial_symtab): Update.
9089
9090 2020-04-07 Tom de Vries <tdevries@suse.de>
9091
9092 PR symtab/25796
9093 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
9094 (partial_die_info::fixup): Inherit has_const_value.
9095
9096 2020-04-07 Tom de Vries <tdevries@suse.de>
9097
9098 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
9099 symbols without address.
9100
9101 2020-04-06 Kamil Rytarowski <n54@gmx.com>
9102
9103 * nbsd-nat.h (struct thread_info): Add forward declaration.
9104 (nbsd_nat_target::thread_alive): Add.
9105 (nbsd_nat_target::thread_name): Likewise.
9106 (nbsd_nat_target::update_thread_list): Likewise.
9107 (update_thread_list::post_attach): Likewise.
9108 (post_attach::pid_to_str): Likewise.
9109 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
9110 (nbsd_thread_lister): Add.
9111 (nbsd_nat_target::thread_alive): Likewise.
9112 (nbsd_nat_target::thread_name): Likewise.
9113 (nbsd_add_threads): Likewise.
9114 (update_thread_list::post_attach): Likewise.
9115 (nbsd_nat_target::update_thread_list): Likewise.
9116 (post_attach::pid_to_str): Likewise.
9117
9118 2020-04-06 Tom Tromey <tromey@adacore.com>
9119
9120 * ada-valprint.c (print_variant_part): Extract the variant field.
9121 (print_field_values): Use the field as the outer value when
9122 recursing.
9123
9124 2020-04-06 Tom Tromey <tromey@adacore.com>
9125
9126 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
9127 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
9128 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
9129 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
9130 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
9131
9132 2020-04-06 Tom Tromey <tromey@adacore.com>
9133
9134 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
9135 TYPE_CODE_ERROR.
9136
9137 2020-04-06 Kamil Rytarowski <n54@gmx.com>
9138
9139 * nbsd-tdep.c: Include "gdbarch.h".
9140 Define enum with NetBSD signal numbers.
9141 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
9142 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
9143 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
9144 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
9145 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
9146 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
9147 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
9148 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
9149 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
9150 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
9151 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
9152 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
9153
9154 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
9155
9156 PR gdb/25325
9157 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
9158
9159 2020-04-03 Tom Tromey <tromey@adacore.com>
9160
9161 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
9162 Read constant block.
9163
9164 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
9165
9166 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
9167 (gdb_bfd_get_full_section_contents): New declaration.
9168 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
9169 * windows-tdep.c (is_linked_with_cygwin_dll): Use
9170 gdb_bfd_get_full_section_contents.
9171
9172 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
9173
9174 * exec.c (build_section_table): Replace internal_error with
9175 gdb_assert.
9176 (section_table_xfer_memory_partial): Likewise.
9177 * mdebugread.c (parse_partial_symbols): Likewise.
9178 * psymtab.c (lookup_partial_symbol): Likewise.
9179 * utils.c (wrap_here): Likewise.
9180
9181 2020-04-02 Tom Tromey <tromey@adacore.com>
9182
9183 * f-lang.c (build_fortran_types): Use arch_type to initialize
9184 builtin_complex_s32 in the TYPE_CODE_ERROR case.
9185
9186 2020-04-02 Tom Tromey <tromey@adacore.com>
9187
9188 * dwarf2/read.c (partial_die_info::read): Do not create a vector
9189 of attributes.
9190
9191 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
9192 Bernd Edlinger <bernd.edlinger@hotmail.de>
9193 Tom Tromey <tromey@adacore.com>
9194
9195 * buildsym.c (buildsym_compunit::record_line): Remove
9196 deduplication code.
9197
9198 2020-04-02 Tom de Vries <tdevries@suse.de>
9199
9200 PR ada/24671
9201 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
9202
9203 2020-04-02 Tom de Vries <tdevries@suse.de>
9204
9205 * dwarf2/read.c (dwarf2_gdb_index_functions,
9206 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
9207 NULL.
9208 * psymtab.c (psym_lookup_global_symbol_language): New function.
9209 (psym_functions): Init psym_lookup_global_symbol_language with
9210 psym_lookup_global_symbol_language.
9211 * symfile-debug.c (debug_sym_quick_functions): Init
9212 lookup_global_symbol_language with NULL.
9213 * symfile.c (set_initial_language): Remove fixme comment.
9214 * symfile.h (struct quick_symbol_functions): Add
9215 lookup_global_symbol_language.
9216 * symtab.c (find_quick_global_symbol_language): New function.
9217 (find_main_name): Use find_quick_global_symbol_language.
9218
9219 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
9220
9221 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
9222
9223 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
9224
9225 * buildsym.c (record_line): Fix undefined behavior and preserve
9226 lines at eof.
9227
9228 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
9229
9230 * buildsym.c (record_line): Fix the resizing condition.
9231
9232 2020-04-01 Tom Tromey <tom@tromey.com>
9233
9234 * value.h (value_literal_complex): Add comment.
9235 * valops.c (value_literal_complex): Refer to value.h.
9236
9237 2020-04-01 Tom Tromey <tom@tromey.com>
9238
9239 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
9240 (scalar_type): New rule, from typebase.
9241 (typebase): Use scalar_type. Recognize complex types.
9242 (field_name): Handle FLOAT_KEYWORD.
9243 (ident_tokens): Add _Complex and __complex__.
9244
9245 2020-04-01 Tom Tromey <tom@tromey.com>
9246
9247 PR exp/25299:
9248 * valarith.c (promotion_type, complex_binop): New functions.
9249 (scalar_binop): Handle complex numbers. Use promotion_type.
9250 (value_pos, value_neg, value_complement): Handle complex numbers.
9251
9252 2020-04-01 Tom Tromey <tom@tromey.com>
9253
9254 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
9255 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
9256 (parse_number): Handle complex numbers.
9257
9258 2020-04-01 Tom Tromey <tom@tromey.com>
9259
9260 * c-valprint.c (c_decorations): Change complex suffix to "i".
9261
9262 2020-04-01 Tom Tromey <tom@tromey.com>
9263
9264 * valprint.c (generic_value_print_complex): Use accessors.
9265 * value.h (value_real_part, value_imaginary_part): Declare.
9266 * valops.c (value_real_part, value_imaginary_part): New
9267 functions.
9268 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
9269
9270 2020-04-01 Tom Tromey <tom@tromey.com>
9271
9272 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
9273 (read_range_type): Update.
9274 * mdebugread.c (basic_type): Update.
9275 * go-lang.c (build_go_types): Use init_complex_type.
9276 * gdbtypes.h (struct main_type) <complex_type>: New member.
9277 (init_complex_type): Update.
9278 (arch_complex_type): Don't declare.
9279 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
9280 Make name if none given. Use alloc_type_copy. Look for cached
9281 complex type.
9282 (arch_complex_type): Remove.
9283 (gdbtypes_post_init): Use init_complex_type.
9284 * f-lang.c (build_fortran_types): Use init_complex_type.
9285 * dwarf2/read.c (read_base_type): Update.
9286 * d-lang.c (build_d_types): Use init_complex_type.
9287 * ctfread.c (read_base_type): Update.
9288
9289 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9290
9291 * infrun.c (stop_all_threads): Update assertion, plus when
9292 stopping threads, take into account that we might be trying
9293 to stop an all-stop target.
9294 (stop_waiting): Call 'stop_all_threads' if there exists a
9295 non-stop target.
9296
9297 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9298
9299 * target.h (exists_non_stop_target): New function declaration.
9300 * target.c (exists_non_stop_target): New function.
9301
9302 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
9303
9304 PR gdb/24789
9305 * eval.c (is_integral_or_integral_reference): New function.
9306 (evaluate_subexp_standard): Allow integer references in
9307 pointer arithmetic.
9308
9309 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9310
9311 * remote.c (remote_target::remote_parse_stop_reply): Remove the
9312 check for no ptid in the stop reply when the target is non-stop.
9313
9314 2020-04-01 Tom Tromey <tromey@adacore.com>
9315
9316 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
9317 "name" parameter to rvalue reference. Initialize m_name_holder.
9318 <lookup_name_info>: New overloads.
9319 <name>: Return gdb::string_view.
9320 <c_str>: New method.
9321 <make_ignore_params>: Update.
9322 <search_name_hash>: Update.
9323 <language_lookup_name>: Return const char *.
9324 <m_name>: Change type.
9325 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
9326 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
9327 (lookup_name_info::match_any): Update.
9328 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
9329 Update.
9330 * minsyms.c (linkage_name_str): Update.
9331 * language.c (default_symbol_name_matcher): Update.
9332 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
9333 Update.
9334 * ada-lang.c (ada_fold_name): Change parameter to string_view.
9335 (ada_lookup_name_info::ada_lookup_name_info): Update.
9336 (literal_symbol_name_matcher): Update.
9337
9338 2020-04-01 Tom Tromey <tromey@adacore.com>
9339
9340 * psymtab.c (psymtab_search_name): Remove function.
9341 (psym_lookup_symbol): Create search name and lookup name here.
9342 (lookup_partial_symbol): Remove "name" parameter; add
9343 lookup_name.
9344 (psym_expand_symtabs_for_function): Update.
9345
9346 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
9347
9348 PR tui/25597:
9349 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
9350
9351 2020-03-31 Tom Tromey <tromey@adacore.com>
9352
9353 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
9354 memcpy.
9355
9356 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
9357
9358 * features/riscv/32bit-csr.xml: Regenerated.
9359 * features/riscv/64bit-csr.xml: Regenerated.
9360
9361 2020-03-30 Tom Tromey <tromey@adacore.com>
9362
9363 * ada-valprint.c (print_variant_part): Update.
9364 * ada-lang.h (ada_which_variant_applies): Update.
9365 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
9366 outer_valaddr parameters; replace with "outer" value parameter.
9367 (to_fixed_variant_branch_type): Update.
9368
9369 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9370
9371 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
9372 <list>. Remove inclusion of observable.h.
9373 (PPC_DEBUG_CURRENT_VERSION): Move up define.
9374 (struct arch_lwp_info): New struct.
9375 (class ppc_linux_dreg_interface): New class.
9376 (struct ppc_linux_process_info): New struct.
9377 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
9378 <low_new_clone, low_forget_process, low_prepare_to_resume>
9379 <copy_thread_dreg_state, mark_thread_stale>
9380 <mark_debug_registers_changed, register_hw_breakpoint>
9381 <clear_hw_breakpoint, register_wp, clear_wp>
9382 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
9383 <num_memory_accesses, get_trigger_type>
9384 <create_watchpoint_request, hwdebug_point_cmp>
9385 <init_arch_lwp_info, get_arch_lwp_info>
9386 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
9387 methods.
9388 <struct ptid_hash>: New inner struct.
9389 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
9390 members.
9391 (saved_dabr_value, hwdebug_info, max_slots_number)
9392 (struct hw_break_tuple, struct thread_points, ppc_threads)
9393 (have_ptrace_hwdebug_interface)
9394 (hwdebug_find_thread_points_by_tid)
9395 (hwdebug_insert_point, hwdebug_remove_point): Remove.
9396 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
9397 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
9398 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
9399 use m_dreg_interface.
9400 (hwdebug_point_cmp): Change to...
9401 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
9402 reference arguments instead of pointers.
9403 (ppc_linux_nat_target::ranged_break_num_registers): Use
9404 m_dreg_interface.
9405 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
9406 m_dreg_interface. Call register_hw_breakpoint.
9407 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
9408 m_dreg_interface. Call clear_hw_breakpoint.
9409 (get_trigger_type): Change to...
9410 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
9411 comment.
9412 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
9413 use m_dreg_interface. Call register_hw_breakpoint.
9414 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
9415 use m_dreg_interface. Call clear_hw_breakpoint.
9416 (can_use_watchpoint_cond_accel): Change to...
9417 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
9418 method. Update comment, use m_dreg_interface and
9419 m_process_info.
9420 (calculate_dvc): Change to...
9421 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
9422 m_dreg_interface.
9423 (num_memory_accesses): Change to...
9424 (ppc_linux_nat_target::num_memory_accesses): ...this method.
9425 (check_condition): Change to...
9426 (ppc_linux_nat_target::check_condition): ...this method.
9427 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
9428 comment, use m_dreg_interface.
9429 (create_watchpoint_request): Change to...
9430 (ppc_linux_nat_target::create_watchpoint_request): ...this
9431 method. Use m_dreg_interface.
9432 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
9433 m_dreg_interface. Call register_hw_breakpoint or register_wp.
9434 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
9435 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
9436 (ppc_linux_nat_target::low_forget_process)
9437 (ppc_linux_nat_target::low_new_fork)
9438 (ppc_linux_nat_target::low_new_clone)
9439 (ppc_linux_nat_target::low_delete_thread)
9440 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
9441 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
9442 only call mark_thread_stale.
9443 (ppc_linux_thread_exit): Remove.
9444 (ppc_linux_nat_target::stopped_data_address): Change to...
9445 (ppc_linux_nat_target::low_stopped_data_address): This. Add
9446 comment, use m_dreg_interface and m_thread_hw_breakpoints.
9447 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
9448 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
9449 comment. Call low_stopped_data_address.
9450 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
9451 m_dreg_interface.
9452 (ppc_linux_nat_target::masked_watch_num_registers): Use
9453 m_dreg_interface.
9454 (ppc_linux_nat_target::copy_thread_dreg_state)
9455 (ppc_linux_nat_target::mark_thread_stale)
9456 (ppc_linux_nat_target::mark_debug_registers_changed)
9457 (ppc_linux_nat_target::register_hw_breakpoint)
9458 (ppc_linux_nat_target::clear_hw_breakpoint)
9459 (ppc_linux_nat_target::register_wp)
9460 (ppc_linux_nat_target::clear_wp)
9461 (ppc_linux_nat_target::init_arch_lwp_info)
9462 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
9463 (_initialize_ppc_linux_nat): Remove observer callback.
9464
9465 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9466
9467 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
9468 (ppc_linux_nat_target::auxv_parse)
9469 (ppc_linux_nat_target::read_description)
9470 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
9471 Move up.
9472
9473 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9474
9475 * linux-nat.h (low_new_clone): New method.
9476 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
9477
9478 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9479
9480 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
9481 (dbx_expand_psymtab): ... this.
9482 (start_psymtab): Update.
9483 * mdebugread.c (psymtab_to_symtab_1): Rename to...
9484 (mdebug_expand_psymtab): ... this.
9485 (parse_partial_symbols): Update.
9486 (new_psymtab): Update.
9487 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
9488 (xcoff_expand_psymtab): ... this.
9489 (xcoff_start_psymtab): Update.
9490
9491 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9492
9493 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
9494 <expand_dependencies>: ... this.
9495 * psymtab.c (partial_symtab::read_dependencies): Rename to...
9496 (partial_symtab::expand_dependencies): ... this.
9497 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
9498 Update.
9499 (dwarf2_psymtab::expand_psymtab): Update.
9500 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
9501 * mdebugread.c (psymtab_to_symtab_1): Update.
9502 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
9503
9504 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9505
9506 * psympriv.h (discard_psymtab): Remove.
9507 * dbxread.c (dbx_end_psymtab): Update.
9508 * xcoffread.c (xcoff_end_psymtab): Update.
9509
9510 2020-03-28 Tom Tromey <tom@tromey.com>
9511
9512 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
9513 comment.
9514
9515 2020-03-28 Tom Tromey <tom@tromey.com>
9516
9517 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
9518
9519 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
9520
9521 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
9522
9523 2020-03-26 John Baldwin <jhb@FreeBSD.org>
9524
9525 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
9526
9527 2020-03-26 Tom Tromey <tom@tromey.com>
9528
9529 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
9530 (mark_common_block_symbol_computed, read_tag_string_type)
9531 (attr_to_dynamic_prop, read_subrange_type): Update.
9532 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
9533 to be methods on struct attribute.
9534 (skip_one_die, process_imported_unit_die, read_namespace_alias)
9535 (read_call_site_scope, partial_die_info::read)
9536 (partial_die_info::read, lookup_die_type, follow_die_ref):
9537 Update.
9538 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
9539 from dwarf2_get_ref_die_offset.
9540 (attribute::constant_value): New method, from
9541 dwarf2_get_attr_constant_value.
9542 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
9543 Declare method.
9544 <constant_value>: New method.
9545
9546 2020-03-26 Tom Tromey <tom@tromey.com>
9547
9548 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
9549 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
9550 (dwarf_type_encoding_name): Move to stringify.c.
9551 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
9552 * dwarf2/stringify.c: New file.
9553 * dwarf2/stringify.h: New file.
9554
9555 2020-03-26 Tom Tromey <tom@tromey.com>
9556
9557 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
9558 Rewrite.
9559
9560 2020-03-26 Tom Tromey <tom@tromey.com>
9561
9562 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
9563 methods.
9564 * dwarf2/read.c (lookup_addr_base): Move to die.h.
9565 (lookup_ranges_base): Likewise.
9566 (read_cutu_die_from_dwo, read_full_die_1): Update.
9567
9568 2020-03-26 Tom Tromey <tom@tromey.com>
9569
9570 * dwarf2/read.c (read_import_statement, read_file_scope)
9571 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
9572 (read_lexical_block_scope, read_call_site_scope)
9573 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
9574 (handle_struct_member_die, process_structure_scope)
9575 (update_enumeration_type_from_children)
9576 (process_enumeration_scope, read_array_type, read_common_block)
9577 (read_namespace, read_module, read_subroutine_type): Update.
9578 (sibling_die): Remove.
9579
9580 2020-03-26 Tom Tromey <tom@tromey.com>
9581
9582 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
9583 (build_type_psymtabs_reader, read_structure_type)
9584 (read_enumeration_type, read_full_die_1): Update.
9585 (dwarf2_attr_no_follow): Move to die.h.
9586 * dwarf2/die.h (struct die_info) <attr>: New method.
9587
9588 2020-03-26 Tom Tromey <tom@tromey.com>
9589
9590 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
9591 <base_address>: Now an optional.
9592 (dwarf2_find_base_address, dwarf2_rnglists_process)
9593 (dwarf2_ranges_process, fill_in_loclist_baton)
9594 (dwarf2_symbol_mark_computed): Update.
9595
9596 2020-03-26 Tom Tromey <tom@tromey.com>
9597
9598 * dwarf2/read.c (struct die_info): Move to die.h.
9599 * dwarf2/die.h: New file.
9600
9601 2020-03-26 Tom Tromey <tom@tromey.com>
9602
9603 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
9604 * dwarf2/read.c
9605 (dwarf2_statement_list_fits_in_line_number_section_complaint):
9606 Move to line-header.c.
9607 (read_checked_initial_length_and_offset, read_formatted_entries):
9608 Likewise.
9609 (dwarf_decode_line_header): Split into two.
9610 * dwarf2/line-header.c
9611 (dwarf2_statement_list_fits_in_line_number_section_complaint):
9612 Move from read.c.
9613 (read_checked_initial_length_and_offset, read_formatted_entries):
9614 Likewise.
9615 (dwarf_decode_line_header): New function, split from read.c.
9616
9617 2020-03-26 Tom Tromey <tom@tromey.com>
9618
9619 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
9620 Declare method.
9621 * dwarf2/read.c (read_attribute_value): Update.
9622 (dwarf2_per_objfile::read_line_string): Rename from
9623 read_indirect_line_string.
9624 (read_formatted_entries): Update.
9625
9626 2020-03-26 Tom Tromey <tom@tromey.com>
9627
9628 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
9629 variable.
9630
9631 2020-03-26 Tom Tromey <tom@tromey.com>
9632
9633 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
9634 const.
9635 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
9636 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
9637 parameter const.
9638
9639 2020-03-26 Tom Tromey <tom@tromey.com>
9640
9641 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
9642 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
9643 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
9644 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
9645
9646 2020-03-26 Tom Tromey <tom@tromey.com>
9647
9648 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
9649 file_names_size, file_full_name, file_file_name>: Use const.
9650 <file_name_at, file_names>: Add const overload.
9651 * dwarf2/line-header.c (line_header::file_file_name)
9652 (line_header::file_full_name): Update.
9653
9654 2020-03-26 Tom Tromey <tom@tromey.com>
9655
9656 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
9657 (macro_start_file, consume_improper_spaces)
9658 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
9659 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
9660 (dwarf_decode_macros): Move to macro.c.
9661 * dwarf2/macro.c: New file.
9662 * dwarf2/macro.h: New file.
9663 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
9664
9665 2020-03-26 Tom Tromey <tom@tromey.com>
9666
9667 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
9668 method.
9669 * dwarf2/section.c: New method. From
9670 read_indirect_string_at_offset_from.
9671 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
9672 (read_indirect_string_at_offset_from): Move to section.c.
9673 (read_indirect_string_at_offset): Rewrite.
9674 (read_indirect_line_string_at_offset): Remove.
9675 (read_indirect_string, read_indirect_line_string)
9676 (dwarf_decode_macro_bytes): Update.
9677
9678 2020-03-26 Tom Tromey <tom@tromey.com>
9679
9680 * dwarf2/section.h (struct dwarf2_section_info)
9681 <overload_complaint>: Declare.
9682 (dwarf2_section_buffer_overflow_complaint): Don't declare.
9683 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
9684 Rename from dwarf2_section_buffer_overflow_complaint.
9685 * dwarf2/read.c (skip_one_die, partial_die_info::read)
9686 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
9687
9688 2020-03-26 Tom Tromey <tom@tromey.com>
9689
9690 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
9691 Declare.
9692 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
9693 Move from read.c.
9694 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
9695 to section.c.
9696
9697 2020-03-26 Tom Tromey <tom@tromey.com>
9698
9699 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
9700
9701 2020-03-26 Tom Tromey <tom@tromey.com>
9702
9703 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
9704 "builder".
9705 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
9706 parameter.
9707 (dwarf_decode_macros): Update.
9708
9709 2020-03-26 Tom Tromey <tom@tromey.com>
9710
9711 * dwarf2/read.c (read_attribute_value): Update.
9712 (read_indirect_string_from_dwz): Move to dwz.c; change into
9713 method.
9714 (dwarf_decode_macro_bytes): Update.
9715 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
9716 * dwarf2/dwz.c: New file.
9717 * Makefile.in (COMMON_SFILES): Add dwz.c.
9718
9719 2020-03-26 Tom Tromey <tom@tromey.com>
9720
9721 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
9722 * dwarf2/read.c: Add include.
9723 * dwarf2/index-write.c: Add include.
9724 * dwarf2/index-cache.c: Add include.
9725 * dwarf2/dwz.h: New file.
9726
9727 2020-03-25 Tom Tromey <tom@tromey.com>
9728
9729 * compile/compile-object-load.c (get_out_value_type): Mention
9730 correct symbol name in error message.
9731
9732 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
9733
9734 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
9735
9736 2020-03-25 Tom de Vries <tdevries@suse.de>
9737
9738 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
9739 * symmisc.c (dump_symtab_1): Print user and includes fields.
9740 (maintenance_info_symtabs): Same.
9741
9742 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
9743
9744 PR gdb/25534
9745 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
9746 (riscv_regcache_cooked_write): New function.
9747 (riscv_push_dummy_call): Use new function.
9748 (riscv_return_value): Likewise.
9749
9750 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
9751
9752 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
9753 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
9754 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
9755 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
9756 * infrun.c (follow_fork): Likewise.
9757 (follow_fork_inferior): Likewise.
9758 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
9759 * linux-nat.h (class linux_nat_target): Likewise.
9760 * remote.c (class remote_target) <follow_fork>: Likewise.
9761 (remote_target::follow_fork): Likewise.
9762 * target-delegates.c: Re-generate.
9763 * target.c (default_follow_fork): Likewise.
9764 (target_follow_fork): Likewise.
9765 * target.h (struct target_ops) <follow_fork>: Likewise.
9766 (target_follow_fork): Likewise.
9767
9768 2020-03-24 Tom de Vries <tdevries@suse.de>
9769
9770 * psymtab.c (maintenance_info_psymtabs): Print user field.
9771
9772 2020-03-20 Tom Tromey <tromey@adacore.com>
9773
9774 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
9775 const.
9776 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
9777 const.
9778
9779 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
9780
9781 * ptrace.m4: Don't check for ptrace declaration.
9782 * config.in: Re-generate.
9783 * configure: Re-generate.
9784 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
9785 not defined.
9786
9787 2020-03-20 Kamil Rytarowski <n54@gmx.com>
9788
9789 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
9790 `PTRACE_TYPE_RET'.
9791 * i386-bsd-nat.c (gdb_ptrace): Likewise.
9792 * sparc-nat.c (gdb_ptrace): Likewise.
9793 * x86-bsd-nat.c (gdb_ptrace): Likewise.
9794
9795 2020-03-20 Tom Tromey <tromey@adacore.com>
9796
9797 * c-exp.y (lex_one_token): Fix assert.
9798
9799 2020-03-20 Tom Tromey <tromey@adacore.com>
9800
9801 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
9802 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
9803 strncpy call.
9804
9805 2020-03-20 Tom Tromey <tromey@adacore.com>
9806
9807 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
9808
9809 2020-03-20 Tom Tromey <tromey@adacore.com>
9810
9811 * ada-valprint.c (print_variant_part): Remove parameters; switch
9812 to value-based API.
9813 (print_field_values): Likewise.
9814 (ada_val_print_struct_union): Likewise.
9815 (ada_value_print_1): Update.
9816
9817 2020-03-20 Kamil Rytarowski <n54@gmx.com>
9818
9819 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
9820 nbsd_nat_target instead of inf_ptrace_target.
9821 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9822 nbsd_nat_target.
9823
9824 2020-03-20 Kamil Rytarowski <n54@gmx.com>
9825
9826 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
9827 it to the ptrace call.
9828 * (store_registers): Likewise.
9829
9830 2020-03-20 Kamil Rytarowski <n54@gmx.com>
9831
9832 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
9833 it to the ptrace call.
9834 * (store_registers): Likewise.
9835
9836 2020-03-19 Luis Machado <luis.machado@linaro.org>
9837
9838 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
9839 valid, fetch vg value from ptrace.
9840
9841 2020-03-19 Kamil Rytarowski <n54@gmx.com>
9842 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
9843 * inf-ptrace.c: Likewise.
9844 * (gdb_ptrace): Add.
9845 * (inf_ptrace_target::resume): Update.
9846 * (inf_ptrace_target::xfer_partial): Likewise.
9847 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
9848 * (inf_ptrace_peek_poke): Update.
9849
9850 2020-03-19 Kamil Rytarowski <n54@gmx.com>
9851
9852 * x86-bsd-nat.c (gdb_ptrace): New.
9853 * (x86bsd_dr_set): Add new argument `ptid'.
9854 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
9855 x86bsd_dr_set_addr): Update.
9856
9857 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9858
9859 * remote.c (remote_target::process_stop_reply): Handle events for
9860 all threads differently.
9861
9862 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9863
9864 * completer.c (completion_tracker::remove_completion): Define new
9865 function.
9866 * completer.h (completion_tracker::remove_completion): Declare new
9867 function.
9868 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
9869 when adding a C++ function symbol.
9870
9871 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9872
9873 * completer.c (completion_tracker::completion_hash_entry): Define
9874 new class.
9875 (advance_to_filename_complete_word_point): Call
9876 recompute_lowest_common_denominator.
9877 (completion_tracker::completion_tracker): Call discard_completions
9878 to setup the hash table.
9879 (completion_tracker::discard_completions): Allow for being called
9880 from the constructor, pass new equal function, and element deleter
9881 when constructing the hash table. Initialise new class member
9882 variables.
9883 (completion_tracker::maybe_add_completion): Remove use of
9884 m_entries_vec, and store more information into m_entries_hash.
9885 (completion_tracker::recompute_lcd_visitor): New function, most
9886 content taken from...
9887 (completion_tracker::recompute_lowest_common_denominator):
9888 ...here, this now just visits each item in the hash calling the
9889 above visitor.
9890 (completion_tracker::build_completion_result): Remove use of
9891 m_entries_vec, call recompute_lowest_common_denominator.
9892 * completer.h (completion_tracker::have_completions): Remove use
9893 of m_entries_vec.
9894 (completion_tracker::completion_hash_entry): Declare new class.
9895 (completion_tracker::recompute_lowest_common_denominator): Change
9896 function signature.
9897 (completion_tracker::recompute_lcd_visitor): Declare new function.
9898 (completion_tracker::m_entries_vec): Delete.
9899 (completion_tracker::m_entries_hash): Initialize to NULL.
9900 (completion_tracker::m_lowest_common_denominator_valid): New
9901 member variable.
9902 (completion_tracker::m_lowest_common_denominator_max_length): New
9903 member variable.
9904
9905 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9906
9907 * regformats/regdef.h: Put reg in gdb namespace.
9908
9909 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9910
9911 * i386-bsd-nat.c (gdb_ptrace): New.
9912 * (i386bsd_fetch_inferior_registers,
9913 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
9914 * (i386bsd_fetch_inferior_registers,
9915 i386bsd_store_inferior_registers) Use gdb_ptrace.
9916
9917 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9918
9919 * amd64-bsd-nat.c (gdb_ptrace): New.
9920 * (amd64bsd_fetch_inferior_registers,
9921 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
9922 * (amd64bsd_fetch_inferior_registers,
9923 amd64bsd_store_inferior_registers) Use gdb_ptrace.
9924
9925 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9926
9927 * user-regs.c (user_reg::read): Rename to...
9928 (user_reg::xread): ...this.
9929 * (append_user_reg): Rename argument `read' to `xread'.
9930 * (user_reg_add_builtin): Likewise.
9931 * (user_reg_add): Likewise.
9932 * (value_of_user_reg): Likewise.
9933
9934 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9935
9936 * sparc-nat.c (gdb_ptrace): New.
9937 * sparc-nat.c (sparc_fetch_inferior_registers)
9938 (sparc_store_inferior_registers) Remove obsolete comment.
9939 * sparc-nat.c (sparc_fetch_inferior_registers)
9940 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
9941 * sparc-nat.c (sparc_fetch_inferior_registers)
9942 (sparc_store_inferior_registers) Use gdb_ptrace.
9943
9944 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9945
9946 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
9947 it to the ptrace call.
9948 * sh-nbsd-nat.c (store_registers): Likewise.
9949
9950 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9951
9952 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
9953 nbsd_nat_target instead of inf_ptrace_target.
9954 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9955 nbsd_nat_target.
9956
9957 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9958
9959 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
9960
9961 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9962
9963 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
9964 <sys/sysctl.h>.
9965 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
9966
9967 2020-03-17 Tom de Vries <tdevries@suse.de>
9968
9969 PR gdb/23710
9970 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
9971 fields.
9972 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
9973 fields.
9974 (process_imported_unit_die): Skip import of c++ CUs.
9975
9976 2020-03-16 Tom Tromey <tom@tromey.com>
9977
9978 * p-valprint.c (pascal_object_print_value): Initialize
9979 base_value.
9980
9981 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
9982 Shahab Vahedi <shahab@synopsys.com>
9983
9984 * Makefile.in: Add arch/arc.o
9985 * configure.tgt: Likewise.
9986 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
9987 (_initialize_arc_tdep): Don't initialize old target descriptions.
9988 (arc_read_description): New function to cache target descriptions.
9989 * arc-tdep.h (arc_read_description): Add proto type.
9990 * arch/arc.c: New file.
9991 * arch/arc.h: Likewise.
9992 * features/Makefile: Replace old target descriptions with new.
9993 * features/arc-arcompact.c: Remove.
9994 * features/arc-arcompact.xml: Likewise.
9995 * features/arc-v2.c: Likewise
9996 * features/arc-v2.xml: Likewise
9997 * features/arc/aux-arcompact.xml: New file.
9998 * features/arc/aux-v2.xml: Likewise.
9999 * features/arc/core-arcompact.xml: Likewise.
10000 * features/arc/core-v2.xml: Likewise.
10001 * features/arc/aux-arcompact.c: Generate.
10002 * features/arc/aux-v2.c: Likewise.
10003 * features/arc/core-arcompact.c: Likewise.
10004 * features/arc/core-v2.c: Likewise.
10005 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
10006
10007 2020-03-16 Tom Tromey <tromey@adacore.com>
10008
10009 PR gdb/25663:
10010 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
10011 putting value into bcache.
10012
10013 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
10014
10015 PR gdb/21500
10016 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
10017 to...
10018 (amd64_windows_init_abi_common): ... this. Don't set size of
10019 long type.
10020 (amd64_windows_init_abi): New function.
10021 (amd64_cygwin_init_abi): New function.
10022 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
10023 the Cygwin OS ABI.
10024 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
10025 comment.
10026
10027 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
10028
10029 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
10030 * windows-tdep.c (CYGWIN_DLL_NAME): New.
10031 (pe_import_directory_entry): New struct type.
10032 (is_linked_with_cygwin_dll): New function.
10033 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
10034 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
10035 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
10036
10037 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
10038
10039 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
10040 i386_cygwin_core_osabi_sniffer.
10041
10042 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
10043
10044 * i386-cygwin-tdep.c: Rename to...
10045 * i386-windows-tdep.c: ... this.
10046 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
10047 i386-windows-tdep.c.
10048 * configure.tgt: Likewise.
10049
10050 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
10051
10052 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
10053 * osabi.c (gdb_osabi_names): Add "Windows".
10054 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
10055 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
10056 (i386_cygwin_core_osabi_sniffer): New function, extracted from
10057 i386_cygwin_osabi_sniffer.
10058 (_initialize_i386_cygwin_tdep): Register OS ABI
10059 GDB_OSABI_WINDOWS for i386.
10060 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
10061 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
10062 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
10063 for x86-64.
10064 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
10065 when the target matches '*-*-mingw*'.
10066
10067 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
10068
10069 * defs.h (enum gdb_osabi): Move to...
10070 * osabi.h (enum gdb_osabi): ... here.
10071 * gdbarch.sh: Include osabi.h in gdbarch.h.
10072 * gdbarch.h: Re-generate.
10073
10074 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
10075
10076 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
10077 function.
10078 (_initialize_amd64_windows_tdep): Register osabi sniffer.
10079
10080 2020-03-14 Tom Tromey <tom@tromey.com>
10081
10082 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
10083 for C++.
10084 (c_type_print_modifier): Likewise. Add "language" parameter.
10085 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
10086 (c_type_print_base_1): Update.
10087 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
10088 constants.
10089 * type-stack.c (type_stack::insert): Handle tp_atomic and
10090 tp_restrict.
10091 (type_stack::follow_type_instance_flags): Likewise.
10092 (type_stack::follow_types): Likewise. Merge type-following code.
10093 * c-exp.y (RESTRICT, ATOMIC): New tokens.
10094 (space_identifier, cv_with_space_id)
10095 (const_or_volatile_or_space_identifier_noopt)
10096 (const_or_volatile_or_space_identifier): Remove.
10097 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
10098 rules.
10099 (ptr_operator, typebase): Update.
10100 (enum token_flag) <FLAG_C>: New constant.
10101 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
10102 "_Atomic".
10103 (lex_one_token): Handle FLAG_C.
10104
10105 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10106
10107 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
10108 it to the ptrace call.
10109 * m68k-bsd-nat.c (store_registers): Likewise.
10110
10111 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10112
10113 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
10114 gdb_byte *.
10115 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
10116 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
10117 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
10118
10119 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10120
10121 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
10122 nbsd_nat_target instead of inf_ptrace_target.
10123 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
10124 nbsd_nat_target.
10125
10126 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10127
10128 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
10129 register_t.
10130
10131 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10132
10133 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
10134 it to the ptrace call.
10135 * alpha-bsd-nat.c (store_registers): Likewise.
10136
10137 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10138
10139 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
10140 includes.
10141 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
10142 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
10143 fill_fpregset): Likewise.
10144
10145 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10146
10147 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
10148 nbsd_nat_target instead of inf_ptrace_target.
10149 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
10150 nbsd_nat_target.
10151
10152 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10153
10154 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
10155 register_t.
10156
10157 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10158
10159 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
10160 it to the ptrace call.
10161 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
10162 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
10163 * arm-nbsd-nat.c (store_register): Likewise.
10164 * arm-nbsd-nat.c (store_regs): Likewise.
10165 * arm-nbsd-nat.c (store_fp_register): Likewise.
10166 * arm-nbsd-nat.c (store_fp_regs): Likewise.
10167
10168 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10169
10170 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
10171 nbsd_nat_target instead of inf_ptrace_target.
10172 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
10173 nbsd_nat_target.
10174
10175 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10176
10177 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
10178 it to the ptrace call.
10179 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
10180
10181 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10182
10183 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
10184 it to the ptrace call.
10185 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
10186
10187 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10188
10189 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
10190 gdb_byte *.
10191 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
10192
10193 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10194
10195 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
10196 instead of inf_ptrace_target.
10197 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
10198 nbsd_nat_target.
10199
10200 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10201
10202 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10203 register_t.
10204
10205 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10206
10207 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10208 register_t.
10209
10210 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10211
10212 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
10213 register_t.
10214
10215 2020-03-13 Tom Tromey <tom@tromey.com>
10216
10217 * value.h (val_print): Don't declare.
10218 * valprint.h (val_print_array_elements)
10219 (val_print_scalar_formatted, generic_val_print): Don't declare.
10220 * valprint.c (generic_val_print_array): Take a struct value.
10221 (generic_val_print_ptr, generic_val_print_memberptr)
10222 (generic_val_print_bool, generic_val_print_int)
10223 (generic_val_print_char, generic_val_print_complex)
10224 (generic_val_print): Remove.
10225 (generic_value_print): Update.
10226 (do_val_print): Remove unused parameters. Don't call
10227 la_val_print.
10228 (val_print): Remove.
10229 (common_val_print): Update. Don't call value_check_printable.
10230 (val_print_scalar_formatted, val_print_array_elements): Remove.
10231 * rust-lang.c (rust_val_print): Remove.
10232 (rust_language_defn): Update.
10233 * p-valprint.c (pascal_val_print): Remove.
10234 (pascal_value_print_inner): Update.
10235 (pascal_object_print_val_fields, pascal_object_print_val):
10236 Remove.
10237 (pascal_object_print_static_field): Update.
10238 * p-lang.h (pascal_val_print): Don't declare.
10239 * p-lang.c (pascal_language_defn): Update.
10240 * opencl-lang.c (opencl_language_defn): Update.
10241 * objc-lang.c (objc_language_defn): Update.
10242 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
10243 * m2-lang.h (m2_val_print): Don't declare.
10244 * m2-lang.c (m2_language_defn): Update.
10245 * language.h (struct language_defn) <la_val_print>: Remove.
10246 * language.c (unk_lang_value_print_inner): Rename. Change
10247 argument types.
10248 (unknown_language_defn, auto_language_defn): Update.
10249 * go-valprint.c (go_val_print): Remove.
10250 * go-lang.h (go_val_print): Don't declare.
10251 * go-lang.c (go_language_defn): Update.
10252 * f-valprint.c (f_val_print): Remove.
10253 * f-lang.h (f_value_print): Don't declare.
10254 * f-lang.c (f_language_defn): Update.
10255 * d-valprint.c (d_val_print): Remove.
10256 * d-lang.h (d_value_print): Don't declare.
10257 * d-lang.c (d_language_defn): Update.
10258 * cp-valprint.c (cp_print_value_fields)
10259 (cp_print_value_fields_rtti, cp_print_value): Remove.
10260 (cp_print_static_field): Update.
10261 * c-valprint.c (c_val_print_array, c_val_print_ptr)
10262 (c_val_print_struct, c_val_print_union, c_val_print_int)
10263 (c_val_print_memberptr, c_val_print): Remove.
10264 * c-lang.h (c_val_print_array, cp_print_value_fields)
10265 (cp_print_value_fields_rtti): Don't declare.
10266 * c-lang.c (c_language_defn, cplus_language_defn)
10267 (asm_language_defn, minimal_language_defn): Update.
10268 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
10269 (ada_val_print_enum): Take a struct value.
10270 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
10271 (ada_val_print): Remove.
10272 (ada_value_print_1): Update.
10273 (printable_val_type): Remove.
10274 * ada-lang.h (ada_val_print): Don't declare.
10275 * ada-lang.c (ada_language_defn): Update.
10276
10277 2020-03-13 Tom Tromey <tom@tromey.com>
10278
10279 * valprint.c (do_val_print): Update.
10280 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
10281 a struct value.
10282 (value_to_value_object_no_release): Declare.
10283 * python/py-value.c (value_to_value_object_no_release): New
10284 function.
10285 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
10286 struct value.
10287 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
10288 function.
10289 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
10290 a struct value.
10291 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
10292 Declare.
10293 (gdbscm_apply_val_pretty_printer): Take a struct value.
10294 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
10295 value.
10296 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
10297 value.
10298 * extension-priv.h (struct extension_language_ops)
10299 <apply_val_pretty_printer>: Take a struct value.
10300 * cp-valprint.c (cp_print_value): Create a struct value.
10301 (cp_print_value): Update.
10302
10303 2020-03-13 Tom Tromey <tom@tromey.com>
10304
10305 * ada-valprint.c (print_field_values): Call common_val_print.
10306
10307 2020-03-13 Tom Tromey <tom@tromey.com>
10308
10309 * ada-valprint.c (val_print_packed_array_elements): Remove
10310 bitoffset and val parameters. Call common_val_print.
10311 (ada_val_print_string): Remove offset, address, and original_value
10312 parameters.
10313 (ada_val_print_array): Update.
10314 (ada_value_print_array): New function.
10315 (ada_value_print_1): Call it.
10316
10317 2020-03-13 Tom Tromey <tom@tromey.com>
10318
10319 * ada-valprint.c (ada_value_print): Use common_val_print.
10320
10321 2020-03-13 Tom Tromey <tom@tromey.com>
10322
10323 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
10324
10325 2020-03-13 Tom Tromey <tom@tromey.com>
10326
10327 * ada-valprint.c (ada_value_print_num): New function.
10328 (ada_value_print_1): Use it.
10329
10330 2020-03-13 Tom Tromey <tom@tromey.com>
10331
10332 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
10333
10334 2020-03-13 Tom Tromey <tom@tromey.com>
10335
10336 * ada-valprint.c (ada_value_print_ptr): New function.
10337 (ada_value_print_1): Use it.
10338
10339 2020-03-13 Tom Tromey <tom@tromey.com>
10340
10341 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
10342 call common_val_print.
10343 (ada_val_print_1): Update.
10344 (ada_value_print_1): New function.
10345 (ada_value_print_inner): Rewrite.
10346
10347 2020-03-13 Tom Tromey <tom@tromey.com>
10348
10349 * cp-valprint.c (cp_print_value_fields): Update.
10350 (cp_print_value): New function.
10351
10352 2020-03-13 Tom Tromey <tom@tromey.com>
10353
10354 * m2-valprint.c (m2_value_print_inner): Use
10355 cp_print_value_fields.
10356 * cp-valprint.c (cp_print_value_fields): New function.
10357 * c-valprint.c (c_value_print_struct): New function.
10358 (c_value_print_inner): Use c_value_print_struct.
10359 * c-lang.h (cp_print_value_fields): Declare.
10360
10361 2020-03-13 Tom Tromey <tom@tromey.com>
10362
10363 * c-valprint.c (c_value_print_array): New function.
10364 (c_value_print_inner): Use it.
10365
10366 2020-03-13 Tom Tromey <tom@tromey.com>
10367
10368 * c-valprint.c (c_value_print_memberptr): New function.
10369 (c_value_print_inner): Use it.
10370
10371 2020-03-13 Tom Tromey <tom@tromey.com>
10372
10373 * c-valprint.c (c_value_print_int): New function.
10374 (c_value_print_inner): Use it.
10375
10376 2020-03-13 Tom Tromey <tom@tromey.com>
10377
10378 * c-valprint.c (c_value_print_ptr): New function.
10379 (c_value_print_inner): Use it.
10380
10381 2020-03-13 Tom Tromey <tom@tromey.com>
10382
10383 * c-valprint.c (c_value_print_inner): Rewrite.
10384
10385 2020-03-13 Tom Tromey <tom@tromey.com>
10386
10387 * valprint.c (generic_value_print_complex): New function.
10388 (generic_value_print): Use it.
10389
10390 2020-03-13 Tom Tromey <tom@tromey.com>
10391
10392 * valprint.c (generic_val_print_float): Don't call
10393 val_print_scalar_formatted.
10394 (generic_val_print, generic_value_print): Update.
10395
10396 2020-03-13 Tom Tromey <tom@tromey.com>
10397
10398 * valprint.c (generic_value_print_char): New function
10399 (generic_value_print): Use it.
10400
10401 2020-03-13 Tom Tromey <tom@tromey.com>
10402
10403 * valprint.c (generic_value_print_int): New function.
10404 (generic_value_print): Use it.
10405
10406 2020-03-13 Tom Tromey <tom@tromey.com>
10407
10408 * valprint.c (generic_value_print_bool): New function.
10409 (generic_value_print): Use it.
10410
10411 2020-03-13 Tom Tromey <tom@tromey.com>
10412
10413 * valprint.c (generic_val_print_func): Simplify.
10414 (generic_val_print, generic_value_print): Update.
10415
10416 2020-03-13 Tom Tromey <tom@tromey.com>
10417
10418 * valprint.c (generic_val_print_flags): Remove.
10419 (generic_val_print, generic_value_print): Update.
10420 (val_print_type_code_flags): Add original_value parameter.
10421
10422 2020-03-13 Tom Tromey <tom@tromey.com>
10423
10424 * valprint.c (generic_val_print): Update.
10425 (generic_value_print): Update.
10426 * valprint.c (generic_val_print_enum): Don't call
10427 val_print_scalar_formatted.
10428
10429 2020-03-13 Tom Tromey <tom@tromey.com>
10430
10431 * valprint.c (generic_value_print): Call generic_value_print_ptr.
10432 * valprint.c (generic_value_print_ptr): New function.
10433
10434 2020-03-13 Tom Tromey <tom@tromey.com>
10435
10436 * valprint.c (generic_value_print): Rewrite.
10437
10438 2020-03-13 Tom Tromey <tom@tromey.com>
10439
10440 * p-valprint.c (pascal_object_print_value_fields)
10441 (pascal_object_print_value): New functions.
10442
10443 2020-03-13 Tom Tromey <tom@tromey.com>
10444
10445 * p-valprint.c (pascal_value_print_inner): Rewrite.
10446
10447 2020-03-13 Tom Tromey <tom@tromey.com>
10448
10449 * f-valprint.c (f_value_print_innner): Rewrite.
10450
10451 2020-03-13 Tom Tromey <tom@tromey.com>
10452
10453 * m2-valprint.c (m2_print_unbounded_array): New overload.
10454 (m2_print_unbounded_array): Update.
10455 (m2_print_array_contents): Take a struct value.
10456 (m2_value_print_inner): Rewrite.
10457
10458 2020-03-13 Tom Tromey <tom@tromey.com>
10459
10460 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
10461 (d_value_print_inner): New function.
10462 * d-lang.h (d_value_print_inner): Declare.
10463 * d-lang.c (d_language_defn): Use d_value_print_inner.
10464
10465 2020-03-13 Tom Tromey <tom@tromey.com>
10466
10467 * go-valprint.c (go_value_print_inner): New function.
10468 * go-lang.h (go_value_print_inner): Declare.
10469 * go-lang.c (go_language_defn): Use go_value_print_inner.
10470
10471 2020-03-13 Tom Tromey <tom@tromey.com>
10472
10473 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
10474 API.
10475 (rust_val_print): Rewrite.
10476 (rust_value_print_inner): New function, from rust_val_print.
10477 (rust_language_defn): Use rust_value_print_inner.
10478
10479 2020-03-13 Tom Tromey <tom@tromey.com>
10480
10481 * ada-valprint.c (ada_value_print_inner): New function.
10482 * ada-lang.h (ada_value_print_inner): Declare.
10483 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
10484
10485 2020-03-13 Tom Tromey <tom@tromey.com>
10486
10487 * f-valprint.c (f_value_print_innner): New function.
10488 * f-lang.h (f_value_print_innner): Declare.
10489 * f-lang.c (f_language_defn): Use f_value_print_innner.
10490
10491 2020-03-13 Tom Tromey <tom@tromey.com>
10492
10493 * p-valprint.c (pascal_value_print_inner): New function.
10494 * p-lang.h (pascal_value_print_inner): Declare.
10495 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
10496
10497 2020-03-13 Tom Tromey <tom@tromey.com>
10498
10499 * m2-valprint.c (m2_value_print_inner): New function.
10500 * m2-lang.h (m2_value_print_inner): Declare.
10501 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
10502
10503 2020-03-13 Tom Tromey <tom@tromey.com>
10504
10505 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
10506 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
10507 * c-valprint.c (c_value_print_inner): New function.
10508 * c-lang.h (c_value_print_inner): Declare.
10509 * c-lang.c (c_language_defn, cplus_language_defn)
10510 (asm_language_defn, minimal_language_defn): Use
10511 c_value_print_inner.
10512
10513 2020-03-13 Tom Tromey <tom@tromey.com>
10514
10515 * p-valprint.c (pascal_object_print_value_fields): Now static.
10516 * p-lang.h (pascal_object_print_value_fields): Don't declare.
10517
10518 2020-03-13 Tom Tromey <tom@tromey.com>
10519
10520 * c-valprint.c (c_val_print_array): Simplify.
10521
10522 2020-03-13 Tom Tromey <tom@tromey.com>
10523
10524 * valprint.c (value_print_array_elements): New function.
10525 * valprint.h (value_print_array_elements): Declare.
10526
10527 2020-03-13 Tom Tromey <tom@tromey.com>
10528
10529 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
10530 * mips-tdep.c (mips_print_register): Use
10531 value_print_scalar_formatted.
10532
10533 2020-03-13 Tom Tromey <tom@tromey.com>
10534
10535 * valprint.h (value_print_scalar_formatted): Declare.
10536 * valprint.c (value_print_scalar_formatted): New function.
10537
10538 2020-03-13 Tom Tromey <tom@tromey.com>
10539
10540 * valprint.h (generic_value_print): Declare.
10541 * valprint.c (generic_value_print): New function.
10542
10543 2020-03-13 Tom Tromey <tom@tromey.com>
10544
10545 * valprint.c (do_val_print): Call la_value_print_inner, if
10546 available.
10547 * rust-lang.c (rust_language_defn): Update.
10548 * p-lang.c (pascal_language_defn): Update.
10549 * opencl-lang.c (opencl_language_defn): Update.
10550 * objc-lang.c (objc_language_defn): Update.
10551 * m2-lang.c (m2_language_defn): Update.
10552 * language.h (struct language_defn) <la_value_print_inner>: New
10553 member.
10554 * language.c (unknown_language_defn, auto_language_defn): Update.
10555 * go-lang.c (go_language_defn): Update.
10556 * f-lang.c (f_language_defn): Update.
10557 * d-lang.c (d_language_defn): Update.
10558 * c-lang.c (c_language_defn, cplus_language_defn)
10559 (asm_language_defn, minimal_language_defn): Update.
10560 * ada-lang.c (ada_language_defn): Update.
10561
10562 2020-03-13 Tom Tromey <tom@tromey.com>
10563
10564 * c-valprint.c (c_value_print): Use common_val_print.
10565
10566 2020-03-13 Tom Tromey <tom@tromey.com>
10567
10568 * cp-valprint.c (cp_print_static_field): Use common_val_print.
10569
10570 2020-03-13 Tom Tromey <tom@tromey.com>
10571
10572 * f-valprint.c (f77_print_array_1, f_val_print): Use
10573 common_val_print.
10574
10575 2020-03-13 Tom Tromey <tom@tromey.com>
10576
10577 * riscv-tdep.c (riscv_print_one_register_info): Use
10578 common_val_print.
10579
10580 2020-03-13 Tom Tromey <tom@tromey.com>
10581
10582 * mi/mi-main.c (output_register): Use common_val_print.
10583
10584 2020-03-13 Tom Tromey <tom@tromey.com>
10585
10586 * infcmd.c (default_print_one_register_info): Use
10587 common_val_print.
10588
10589 2020-03-13 Tom Tromey <tom@tromey.com>
10590
10591 * valprint.h (common_val_print_checked): Declare.
10592 * valprint.c (common_val_print_checked): New function.
10593 * stack.c (print_frame_arg): Use common_val_print_checked.
10594
10595 2020-03-13 Tom Tromey <tom@tromey.com>
10596
10597 * valprint.c (do_val_print): New function, from val_print.
10598 (val_print): Use do_val_print.
10599 (common_val_print): Use do_val_print.
10600
10601 2020-03-13 Tom Tromey <tom@tromey.com>
10602
10603 * valprint.c (value_print): Use scoped_value_mark.
10604
10605 2020-03-13 Tom de Vries <tdevries@suse.de>
10606
10607 PR symtab/25646
10608 * psymtab.c (partial_symtab::partial_symtab): Don't set
10609 globals_offset and statics_offset. Push element onto
10610 current_global_psymbols and current_static_psymbols stacks.
10611 (concat): New function.
10612 (end_psymtab_common): Set globals_offset and statics_offset. Pop
10613 element from current_global_psymbols and current_static_psymbols
10614 stacks. Concat popped elements to global_psymbols and
10615 static_symbols.
10616 (add_psymbol_to_list): Use current_global_psymbols and
10617 current_static_psymbols stacks.
10618 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
10619 current_static_psymbols fields.
10620
10621 2020-03-12 Christian Biesinger <cbiesinger@google.com>
10622
10623 * corelow.c (sniff_core_bfd): Remove.
10624 (class core_target) <m_core_vec>: Remove.
10625 (core_target::core_target): Update.
10626 (core_file_fns): Remove.
10627 (deprecated_add_core_fns): Remove.
10628 (default_core_sniffer): Remove.
10629 (sniff_core_bfd): Remove.
10630 (default_check_format): Remove.
10631 (gdb_check_format): Remove.
10632 (core_target_open): Update.
10633 (core_target::get_core_register_section): Update.
10634 (get_core_registers_cb): Update.
10635 (core_target::fetch_registers): Update.
10636 * gdbcore.h (struct core_fns): Remove.
10637 (deprecated_add_core_fns): Remove.
10638 (default_core_sniffer): Remove.
10639 (default_check_format): Remove.
10640
10641 2020-03-12 Tom Tromey <tom@tromey.com>
10642
10643 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
10644 CORE_ADDR.
10645 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
10646
10647 2020-03-12 Tom Tromey <tom@tromey.com>
10648
10649 * remote.c (remote_target::download_tracepoint)
10650 (remote_target::enable_tracepoint)
10651 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
10652 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
10653 sprintf_vma.
10654
10655 2020-03-12 Tom Tromey <tom@tromey.com>
10656
10657 * symfile-mem.c: Update CORE_ADDR size assert.
10658
10659 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
10660
10661 * selftest.m4: Move to gdbsupport/.
10662 * acinclude.m4: Update path to selftest.m4.
10663
10664 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
10665
10666 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
10667 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
10668 gdbarch-selfselftests.c and selftest-arch.c.
10669 (SUBDIR_UNITTESTS_OBS): Rename to...
10670 (SELFTESTS_OBS): ... this.
10671 (COMMON_SFILES): Remove disasm-selftests.c and
10672 gdbarch-selftests.c.
10673 * configure.ac: Don't add selftest-arch.{c,o} to
10674 CONFIG_{SRCS,OBS}.
10675 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
10676 preprocessor conditions.
10677
10678 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
10679
10680 * configure.ac: Don't source bfd/development.sh.
10681 * selftest.m4: Modify comment.
10682 * configure: Re-generate.
10683
10684 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
10685
10686 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
10687 not "true" or "false".
10688 * configure: Re-generate.
10689
10690 2020-03-12 Christian Biesinger <cbiesinger@google.com>
10691
10692 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
10693 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
10694 renamed to arm_nbsd_supply_gregset.
10695 (fetch_register): Update to call arm_nbsd_supply_gregset.
10696 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
10697 (arm_netbsd_nat_target::fetch_registers): Update.
10698 (fetch_elfcore_registers): Removed.
10699 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
10700 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
10701 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
10702 not require NetBSD system headers.
10703 (arm_nbsd_regset): New struct.
10704 (arm_nbsd_iterate_over_regset_sections): New function.
10705 (arm_netbsd_init_abi_common): Updated to call
10706 set_gdbarch_iterate_over_regset_sections.
10707 * arm-nbsd-tdep.h: New file.
10708
10709 2020-03-11 Kevin Buettner <kevinb@redhat.com>
10710
10711 * symtab.c (find_pc_sect_line): Add check which prevents infinite
10712 recursion.
10713
10714 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
10715
10716 * configure: Re-generate.
10717
10718 2020-03-11 Tom Tromey <tromey@adacore.com>
10719
10720 * ada-typeprint.c (print_choices): Fix comment.
10721
10722 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
10723
10724 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
10725 previous item in the list, when the list has no items.
10726
10727 2020-03-11 Tom de Vries <tdevries@suse.de>
10728
10729 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
10730 PROP_LOCLIST handling code.
10731
10732 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
10733
10734 * buildsym-legacy.c (record_line): Pass extra parameter to
10735 record_line.
10736 * buildsym.c (buildsym_compunit::record_line): Take an extra
10737 parameter, reduce duplication in the line table, and record the
10738 is_stmt flag in the line table.
10739 * buildsym.h (buildsym_compunit::record_line): Add extra
10740 parameter.
10741 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
10742 non-statement lines.
10743 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
10744 this to the symtab builder.
10745 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
10746 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
10747 through to dwarf_record_line_1.
10748 * infrun.c (process_event_stop_test): When stepping, don't stop at
10749 a non-statement instruction, and only refresh the step info when
10750 we land in the middle of a line's range. Also add an extra
10751 comment.
10752 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
10753 field.
10754 * record-btrace.c (btrace_find_line_range): Only record lines
10755 marked as is-statement.
10756 * stack.c (frame_show_address): Show the frame address if we are
10757 in a non-statement sal.
10758 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
10759 (maintenance_print_one_line_table): Print a header for the is_stmt
10760 column, and include is_stmt information in the output.
10761 * symtab.c (find_pc_sect_line): Find lines marked as statements in
10762 preference to non-statements.
10763 (find_pcs_for_symtab_line): Prefer is-statement entries.
10764 (find_line_common): Likewise.
10765 * symtab.h (struct linetable_entry): Add is_stmt field.
10766 (struct symtab_and_line): Likewise.
10767 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
10768 arranging the line table.
10769
10770 2020-03-07 Tom de Vries <tdevries@suse.de>
10771
10772 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
10773 DIE.
10774
10775 2020-03-07 Tom Tromey <tom@tromey.com>
10776
10777 * valops.c (value_literal_complex): Remove obsolete comment.
10778 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
10779 comment.
10780
10781 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
10782
10783 * infrun.h: Forward-declare thread_info.
10784 (set_step_info): Add thread_info parameter, add doc.
10785 * infrun.c (set_step_info): Add thread_info parameter, move doc
10786 to header.
10787 * infrun.c (process_event_stop_test): Pass thread to
10788 set_step_info call.
10789 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
10790 set_step_info.
10791 (prepare_one_step): Add thread_info parameter, pass it to
10792 set_step_frame and prepare_one_step (recursive) call.
10793 (step_1): Pass thread to prepare_one_step call.
10794 (step_command_fsm::should_stop): Pass thread to
10795 prepare_one_step.
10796 (until_next_fsm): Pass thread to set_step_frame call.
10797 (finish_command): Pass thread to set_step_info call.
10798
10799 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
10800
10801 * windows-tdep.c (windows_solib_create_inferior_hook):
10802 Check if inferior is running.
10803
10804 2020-03-06 Tom de Vries <tdevries@suse.de>
10805
10806 * NEWS: Fix "the the".
10807 * ctfread.c: Same.
10808
10809 2020-03-06 Tom de Vries <tdevries@suse.de>
10810
10811 * psymtab.c (psymtab_to_symtab): Don't print "done.".
10812
10813 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10814
10815 * .dir-locals.el: Add a comment referencing the other copies of
10816 this file.
10817
10818 2020-03-05 John Baldwin <jhb@FreeBSD.org>
10819
10820 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
10821 psargs.
10822
10823 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10824
10825 * .gitattributes: New file.
10826
10827 2020-03-04 Tom Tromey <tom@tromey.com>
10828
10829 * symmisc.c (print_symbol_bcache_statistics)
10830 (print_objfile_statistics): Update.
10831 * symfile.c (allocate_symtab): Use intern.
10832 * psymtab.c (partial_symtab::partial_symtab): Use intern.
10833 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
10834 macro_cache>: Remove.
10835 <string_cache>: New member.
10836 (struct objfile) <intern>: New methods.
10837 * elfread.c (elf_symtab_read): Use intern.
10838 * dwarf2/read.c (fixup_go_packaging): Intern package name.
10839 (dwarf2_compute_name, dwarf2_physname)
10840 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
10841 names.
10842 (guess_partial_die_structure_name): Update.
10843 (partial_die_info::fixup): Intern name.
10844 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
10845 name.
10846 (dwarf2_name): Intern name. Update.
10847 * buildsym.c (buildsym_compunit::get_macro_table): Use
10848 string_cache.
10849
10850 2020-03-04 Tom Tromey <tom@tromey.com>
10851
10852 * jit.c (bfd_open_from_target_memory): Make "target" const.
10853 * corefile.c (gnutarget): Now const.
10854 * gdbcore.h (gnutarget): Now const.
10855
10856 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
10857
10858 * NEWS: Mention support for WOW64 processes.
10859 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
10860 (amd64_windows_segment_register_p): Remove static.
10861 (_initialize_amd64_windows_nat): Update.
10862 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
10863 * i386-windows-nat.c (context_offset): Update.
10864 (i386_mappings): Rename and remove static.
10865 (i386_windows_segment_register_p): Remove static.
10866 (_initialize_i386_windows_nat): Update.
10867 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
10868 (STATUS_WX86_SINGLE_STEP): New macro.
10869 (EnumProcessModulesEx): New macro.
10870 (Wow64SuspendThread): New macro.
10871 (Wow64GetThreadContext): New macro.
10872 (Wow64SetThreadContext): New macro.
10873 (Wow64GetThreadSelectorEntry): New macro.
10874 (windows_set_context_register_offsets): Add static.
10875 (windows_set_segment_register_p): Likewise.
10876 (windows_add_thread): Adapt for WOW64 processes.
10877 (windows_fetch_one_register): Likewise.
10878 (windows_nat_target::fetch_registers): Likewise.
10879 (windows_store_one_register): Likewise.
10880 (display_selector): Likewise.
10881 (display_selectors): Likewise.
10882 (handle_exception): Likewise.
10883 (windows_continue): Likewise.
10884 (windows_nat_target::resume): Likewise.
10885 (windows_add_all_dlls): Likewise.
10886 (do_initial_windows_stuff): Likewise.
10887 (windows_nat_target::attach): Likewise.
10888 (windows_get_exec_module_filename): Likewise.
10889 (windows_nat_target::create_inferior): Likewise.
10890 (windows_xfer_siginfo): Likewise.
10891 (_initialize_loadable): Initialize Wow64SuspendThread,
10892 Wow64GetThreadContext, Wow64SetThreadContext,
10893 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
10894 * windows-nat.h (windows_set_context_register_offsets):
10895 Remove declaration.
10896 (windows_set_segment_register_p): Likewise.
10897 (i386_windows_segment_register_p): Add declaration.
10898 (amd64_windows_segment_register_p): Likewise.
10899
10900 2020-03-04 Luis Machado <luis.machado@linaro.org>
10901
10902 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
10903 in "info registers" for AArch64/ARM.
10904
10905 The change caused "info registers" to not print GPR's.
10906
10907 gdb/ChangeLog:
10908
10909 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
10910
10911 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10912 when reg->group is empty and reggroup is not.
10913
10914 2020-03-03 Tom Tromey <tromey@adacore.com>
10915
10916 * dwarf2/frame.c (struct dwarf2_frame_cache)
10917 <checked_tailcall_bottom, entry_cfa_sp_offset,
10918 entry_cfa_sp_offset_p>: Remove members.
10919 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
10920 (dwarf2_frame_prev_register): Don't call
10921 dwarf2_tailcall_sniffer_first.
10922 (dwarf2_append_unwinders): Don't append tailcall unwinder.
10923 * frame-unwind.c (add_unwinder): New fuction.
10924 (frame_unwind_init): Use it. Add tailcall unwinder.
10925
10926 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
10927 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10928
10929 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
10930 value should be printed as true.
10931
10932 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
10933
10934 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
10935 (windows_init_abi): Set and use windows_so_ops.
10936
10937 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
10938
10939 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
10940 when verifying if dealing with a convenience variable.
10941
10942 2020-03-03 Luis Machado <luis.machado@linaro.org>
10943
10944 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
10945
10946 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10947
10948 * infrun.c (gdbarch_supports_displaced_stepping): New.
10949 (use_displaced_stepping): Break up conditions in smaller pieces.
10950 Use gdbarch_supports_displaced_stepping.
10951 (displaced_step_prepare_throw): Use
10952 gdbarch_supports_displaced_stepping.
10953
10954 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
10955
10956 * NEWS: Mention new behaviour of the history filename.
10957 * top.c (write_history_p): Add comment.
10958 (show_write_history_p): Add header comment, give a different
10959 message when history writing is on, but the history filename is
10960 empty.
10961 (history_filename): Add comment.
10962 (history_filename_empty): New function.
10963 (show_history_filename): Add header comment, give a different
10964 message when the filename is empty.
10965 (init_history): Compare history_filename against nullptr, and only
10966 read history if the filename is not empty.
10967 (set_history_filename): Add header comment, and only make
10968 non-empty filenames absolute.
10969 (init_main): Make the filename argument to 'set history filename'
10970 optional.
10971
10972 2020-03-02 Christian Biesinger <cbiesinger@google.com>
10973
10974 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
10975 (arm_supply_vfpregset): ...this, and update to use VFP registers.
10976 (fetch_fp_register): Update.
10977 (fetch_fp_regs): Update.
10978 (store_fp_register): Update.
10979 (store_fp_regs): Update.
10980 (arm_netbsd_nat_target::read_description): New function.
10981 (fetch_elfcore_registers): Update.
10982
10983 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
10984
10985 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
10986 general_thread if the stop reply is missing a thread-id.
10987 (remote_target::process_stop_reply): Use the first non-exited
10988 thread if the target didn't pass a thread-id.
10989 * infrun.c (do_target_wait): Move call to
10990 switch_to_inferior_no_thread to ....
10991 (do_target_wait_1): ... here.
10992
10993 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
10994
10995 * debuginfod-support.c: Include defs.h first.
10996
10997 2020-02-28 Tom de Vries <tdevries@suse.de>
10998
10999 * symfile.c (set_initial_language): Use default language for lookup.
11000
11001 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
11002
11003 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
11004 reader variable, pass `this` to read_cutu_die_from_dwo.
11005
11006 2020-02-27 Aaron Merey <amerey@redhat.com>
11007
11008 * source.c (open_source_file): Check for nullptr when computing
11009 srcpath.
11010
11011 2020-02-27 Tom Tromey <tromey@adacore.com>
11012
11013 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
11014 member.
11015 (dwarf2_add_field): Don't update nfields.
11016 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
11017
11018 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11019
11020 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
11021 abs.
11022
11023 2020-02-26 Tom Tromey <tom@tromey.com>
11024
11025 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
11026 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
11027 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
11028 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
11029 per_cu_data.
11030
11031 2020-02-26 Tom Tromey <tom@tromey.com>
11032
11033 * dwarf2/index-write.c (psym_index_map): Change type.
11034 (add_address_entry_worker, write_one_signatured_type)
11035 (recursively_count_psymbols, recursively_write_psymbols)
11036 (class debug_names, psyms_seen_size, write_gdbindex)
11037 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
11038
11039 2020-02-26 Aaron Merey <amerey@redhat.com>
11040
11041 * Makefile.in: Handle optional debuginfod support.
11042 * NEWS: Update.
11043 * README: Add --with-debuginfod summary.
11044 * config.in: Regenerate.
11045 * configure: Regenerate.
11046 * configure.ac: Handle optional debuginfod support.
11047 * debuginfod-support.c: debuginfod helper functions.
11048 * debuginfod-support.h: Ditto.
11049 * doc/gdb.texinfo: Add --with-debuginfod to configure options
11050 summary.
11051 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
11052 when a dwz file cannot be found.
11053 * elfread.c (elf_symfile_read): Query debuginfod servers when a
11054 debuginfo file cannot be found.
11055 * source.c (open_source_file): Query debuginfod servers when a
11056 source file cannot be found.
11057 * top.c (print_gdb_configuration): Include
11058 --{with,without}-debuginfod in the output.
11059
11060 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
11061
11062 * thread.c (thr_try_catch_cmd): Print thread name.
11063
11064 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
11065
11066 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
11067 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
11068 dwarf2_fetch_die_type_sect_off): Move to...
11069 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
11070 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
11071 dwarf2_fetch_die_type_sect_off): ... here.
11072 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
11073 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
11074 dwarf2_fetch_die_type_sect_off): Move doc to header file.
11075
11076 2020-02-26 Tom de Vries <tdevries@suse.de>
11077
11078 PR gdb/25603
11079 * symfile.c (set_initial_language): Exit-early if
11080 language_mode == language_mode_manual.
11081
11082 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
11083
11084 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
11085 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
11086 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
11087
11088 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
11089
11090 * gdbtypes.c (create_array_type_with_stride): Handle negative
11091 array strides.
11092 * valarith.c (value_subscripted_rvalue): Likewise.
11093
11094 2020-02-25 Luis Machado <luis.machado@linaro.org>
11095
11096 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
11097
11098 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
11099
11100 * loc.h (dwarf2_get_die_type): Move to...
11101 * read.h (dwarf2_get_die_type): ... here.
11102 * read.c (dwarf2_get_die_type): Move doc to header.
11103
11104 2020-02-25 Joel Brobecker <brobecker@adacore.com>
11105
11106 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
11107 'gnulib/Makefile.in' to the list.
11108
11109 2020-02-24 Tom Tromey <tom@tromey.com>
11110
11111 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
11112 Remove.
11113 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
11114 XOBNEWVEC.
11115
11116 2020-02-24 Tom Tromey <tom@tromey.com>
11117
11118 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
11119 New method.
11120 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
11121 (dw2_do_instantiate_symtab, dw2_get_file_names)
11122 (build_type_psymtab_dependencies, load_full_type_unit): Update.
11123
11124 2020-02-24 Tom Tromey <tom@tromey.com>
11125
11126 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
11127 make_scoped_restore.
11128 (dwarf2_psymtab::read_symtab): Don't clear
11129 reading_partial_symbols.
11130
11131 2020-02-24 Tom de Vries <tdevries@suse.de>
11132
11133 PR gdb/25592
11134 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
11135
11136 2020-02-24 Tom de Vries <tdevries@suse.de>
11137
11138 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
11139 commands layout next/prev/regs.
11140
11141 2020-02-22 Tom Tromey <tom@tromey.com>
11142
11143 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
11144 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
11145
11146 2020-02-22 Tom Tromey <tom@tromey.com>
11147
11148 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
11149
11150 2020-02-22 Tom Tromey <tom@tromey.com>
11151
11152 * tui/tui-win.c (_initialize_tui_win): Add usage text.
11153 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
11154 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
11155 * tui/tui.c (_initialize_tui): Add usage text.
11156
11157 2020-02-22 Tom Tromey <tom@tromey.com>
11158
11159 * tui/tui-win.c (tui_set_focus_command)
11160 (tui_set_win_height_command): Use error_no_arg.
11161 (_initialize_tui_win): Update help text.
11162 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
11163
11164 2020-02-22 Tom Tromey <tom@tromey.com>
11165
11166 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
11167 * tui/tui-disasm.h (struct tui_disasm_window)
11168 <display_start_addr>: Declare.
11169 * tui/tui-source.h (struct tui_source_window)
11170 <display_start_addr>: Declare.
11171 * tui/tui-winsource.h (struct tui_source_window_base)
11172 <show_source_line, display_start_addr>: New methods.
11173 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
11174 Rename and move to protected section.
11175 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
11176 (tui_source_window_base::do_erase_source_content): Update.
11177 (tui_source_window_base::show_source_line): Now a method.
11178 (tui_source_window_base::show_source_content)
11179 (tui_source_window_base::tui_source_window_base)
11180 (tui_source_window_base::rerender)
11181 (tui_source_window_base::refill)
11182 (tui_source_window_base::do_scroll_horizontal)
11183 (tui_source_window_base::set_is_exec_point_at)
11184 (tui_source_window_base::update_breakpoint_info)
11185 (tui_source_window_base::update_exec_info): Update.
11186 * tui/tui-source.c (tui_source_window::set_contents)
11187 (tui_source_window::showing_source_p)
11188 (tui_source_window::do_scroll_vertical)
11189 (tui_source_window::location_matches_p)
11190 (tui_source_window::line_is_displayed): Update.
11191 (tui_source_window::display_start_addr): New method.
11192 * tui/tui-disasm.c (tui_disasm_window::set_contents)
11193 (tui_disasm_window::do_scroll_vertical)
11194 (tui_disasm_window::location_matches_p): Update.
11195 (tui_disasm_window::display_start_addr): New method.
11196
11197 2020-02-22 Tom Tromey <tom@tromey.com>
11198
11199 * NEWS: Add entry for gdb.register_window_type.
11200 * tui/tui-layout.h (window_factory): New typedef.
11201 (tui_register_window): Declare.
11202 * tui/tui-layout.c (saved_tui_windows): New global.
11203 (tui_apply_current_layout): Use it.
11204 (tui_register_window): New function.
11205 * python/python.c (do_start_initialization): Call
11206 gdbpy_initialize_tui.
11207 (python_GdbMethods): Add "register_window_type" function.
11208 * python/python-internal.h (gdbpy_register_tui_window)
11209 (gdbpy_initialize_tui): Declare.
11210 * python/py-tui.c: New file.
11211 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
11212
11213 2020-02-22 Tom Tromey <tom@tromey.com>
11214
11215 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
11216
11217 2020-02-22 Tom Tromey <tom@tromey.com>
11218
11219 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
11220 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
11221 * tui/tui-data.c (tui_set_win_with_focus): Remove.
11222 (tui_set_win_focus_to): Move from tui-win.c.
11223
11224 2020-02-22 Tom Tromey <tom@tromey.com>
11225
11226 * tui/tui-layout.c (make_standard_window, get_locator_window): New
11227 functions.
11228 (known_window_types): New global.
11229 (tui_get_window_by_name): Reimplement.
11230 (initialize_known_windows): New function.
11231 (validate_window_name): Rewrite.
11232 (_initialize_tui_layout): Call initialize_known_windows.
11233
11234 2020-02-22 Tom Tromey <tom@tromey.com>
11235
11236 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
11237 Remove constants.
11238 * tui/tui-winsource.h (struct tui_source_window_base)
11239 <tui_source_window_base>: Remove parameter.
11240 * tui/tui-winsource.c
11241 (tui_source_window_base::tui_source_window_base): Remove
11242 parameter.
11243 (tui_source_window_base::refill): Update.
11244 * tui/tui-stack.h (struct tui_locator_window)
11245 <tui_locator_window>: Update.
11246 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
11247 Default the constructor.
11248 * tui/tui-regs.h (struct tui_data_item_window)
11249 <tui_data_item_window>: Default the constructor.
11250 (struct tui_data_window) <tui_data_window>: Likewise.
11251 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
11252 Default the constructor.
11253 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
11254 Default the constructor.
11255 <type>: Remove.
11256 (struct tui_win_info) <tui_win_info>: Default the constructor.
11257 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
11258 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
11259 Default the constructor.
11260
11261 2020-02-22 Tom Tromey <tom@tromey.com>
11262
11263 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
11264 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
11265 * tui/tui-win.c (tui_resize_all): Don't call
11266 tui_delete_invisible_windows.
11267 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
11268 done.
11269 (tui_set_layout): Update.
11270 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
11271 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
11272 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
11273
11274 2020-02-22 Tom Tromey <tom@tromey.com>
11275
11276 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
11277 correctly.
11278
11279 2020-02-22 Tom Tromey <tom@tromey.com>
11280
11281 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
11282
11283 2020-02-22 Tom Tromey <tom@tromey.com>
11284
11285 * tui/tui-winsource.h (struct tui_source_window_iterator)
11286 <inner_iterator>: New etytypedef.
11287 <tui_source_window_iterator>: Take "end" parameter.
11288 <tui_source_window_iterator>: Take iterator.
11289 <operator*, advance>: Update.
11290 <m_iter>: Change type.
11291 <m_end>: New field.
11292 (struct tui_source_windows) <begin, end>: Update.
11293 * tui/tui-layout.c (tui_windows): New global.
11294 (tui_apply_current_layout): Clear tui_windows.
11295 (tui_layout_window::apply): Update tui_windows.
11296 * tui/tui-data.h (tui_windows): Declare.
11297 (all_tui_windows): Now inline function.
11298 (class tui_window_iterator, struct all_tui_windows): Remove.
11299
11300 2020-02-22 Tom Tromey <tom@tromey.com>
11301
11302 PR tui/17850:
11303 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
11304 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
11305 "height" argument.
11306 (class tui_layout_window) <get_sizes>: Likewise.
11307 (class tui_layout_split) <tui_layout_split>: Add "vertical"
11308 argument.
11309 <get_sizes>: Add "height" argument.
11310 <m_vertical>: New field.
11311 * tui/tui-layout.c (tui_layout_split::clone): Update.
11312 (tui_layout_split::get_sizes): Add "height" argument.
11313 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
11314 (tui_new_layout_command): Parse "-horizontal".
11315 (_initialize_tui_layout): Update help string.
11316 (tui_layout_split::specification): Add "-horizontal" when needed.
11317 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
11318 argument.
11319 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
11320 New methods.
11321
11322 2020-02-22 Tom Tromey <tom@tromey.com>
11323
11324 * tui/tui-layout.h (enum tui_adjust_result): New.
11325 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
11326 (class tui_layout_window) <adjust_size>: Return
11327 tui_adjust_result. Rewrite.
11328 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
11329 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
11330
11331 2020-02-22 Tom Tromey <tom@tromey.com>
11332
11333 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
11334 parameter and return types.
11335 (class tui_layout_base) <specification>: Add "depth".
11336 (class tui_layout_window) <specification>: Add "depth".
11337 (class tui_layout_split) <specification>: Add "depth".
11338 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
11339 and return types.
11340 (tui_new_layout_command): Parse sub-layouts.
11341 (_initialize_tui_layout): Update help string.
11342 (tui_layout_window::specification): Add "depth".
11343 (add_layout_command): Update.
11344
11345 2020-02-22 Tom Tromey <tom@tromey.com>
11346
11347 * NEWS: Add "tui new-layout" item.
11348 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
11349 Add new-layout command to help text.
11350 (validate_window_name): New function.
11351 (tui_new_layout_command): New function.
11352 (_initialize_tui_layout): Register "new-layout".
11353 (tui_layout_window::specification): New method.
11354 (tui_layout_window::specification): New method.
11355 * tui/tui-layout.h (class tui_layout_base) <specification>: New
11356 method.
11357 (class tui_layout_window) <specification>: New method.
11358 (class tui_layout_split) <specification>: New method.
11359
11360 2020-02-22 Tom Tromey <tom@tromey.com>
11361
11362 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
11363 * tui/tui-win.c (window_name_completer): Update comment.
11364 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
11365 Declare method.
11366 (class tui_layout_window) <replace_window>: Likewise.
11367 (class tui_layout_split) <replace_window>: Likewise.
11368 (tui_set_layout): Don't declare.
11369 (tui_set_initial_layout): Declare function.
11370 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
11371 (asm_regs_layout): New globals.
11372 (tui_current_layout, show_layout): Remove.
11373 (tui_set_layout, tui_add_win_to_layout): Rewrite.
11374 (find_layout, tui_apply_layout): New function.
11375 (layout_completer): Remove.
11376 (tui_next_layout): Reimplement.
11377 (tui_next_layout_command): New function.
11378 (tui_set_initial_layout, tui_prev_layout_command): New functions.
11379 (tui_regs_layout): Reimplement.
11380 (tui_regs_layout_command): New function.
11381 (extract_display_start_addr): Rewrite.
11382 (next_layout, prev_layout): Remove.
11383 (tui_layout_window::replace_window): New method.
11384 (tui_layout_split::replace_window): New method.
11385 (destroy_layout): New function.
11386 (layout_list): New global.
11387 (add_layout_command): New function.
11388 (initialize_layouts): Update.
11389 (tui_layout_command): New function.
11390 (_initialize_tui_layout): Install "layout" commands.
11391 * tui/tui-data.h (enum tui_layout_type): Remove.
11392 (tui_current_layout): Don't declare.
11393
11394 2020-02-22 Tom Tromey <tom@tromey.com>
11395
11396 * tui/tui-regs.c (tui_reg_layout): Remove.
11397 (tui_reg_command): Use tui_regs_layout.
11398 * tui/tui-layout.h (tui_reg_command): Declare.
11399 * tui/tui-layout.c (tui_reg_command): New function.
11400
11401 2020-02-22 Tom Tromey <tom@tromey.com>
11402
11403 * tui/tui.c (tui_rl_delete_other_windows): Call
11404 tui_remove_some_windows.
11405 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
11406 Declare method.
11407 (class tui_layout_window) <remove_windows>: New method.
11408 (class tui_layout_split) <remove_windows>: Declare.
11409 (tui_remove_some_windows): Declare.
11410 * tui/tui-layout.c (tui_remove_some_windows): New function.
11411 (tui_layout_split::remove_windows): New method.
11412
11413 2020-02-22 Tom Tromey <tom@tromey.com>
11414
11415 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
11416 * tui/tui-layout.h (tui_next_layout): Declare.
11417 * tui/tui-layout.c (tui_next_layout): New function.
11418
11419 2020-02-22 Tom Tromey <tom@tromey.com>
11420
11421 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
11422 correct coordinates.
11423
11424 2020-02-22 Tom Tromey <tom@tromey.com>
11425
11426 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
11427 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
11428 DATA_WIN case.
11429
11430 2020-02-22 Tom Tromey <tom@tromey.com>
11431
11432 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
11433 TUI_DISASM_WIN, not tui_win_list.
11434
11435 2020-02-22 Tom Tromey <tom@tromey.com>
11436
11437 * valprint.c (generic_val_print_enum_1)
11438 (val_print_type_code_flags): Style member names.
11439 * rust-lang.c (val_print_struct, rust_print_enum)
11440 (rust_print_struct_def, rust_internal_print_type): Style member
11441 names.
11442 * p-valprint.c (pascal_object_print_value_fields): Style member
11443 names. Only call fprintf_symbol_filtered for static members.
11444 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
11445 * f-valprint.c (f_val_print): Style member names.
11446 * f-typeprint.c (f_type_print_base): Style member names.
11447 * cp-valprint.c (cp_print_value_fields): Style member names. Only
11448 call fprintf_symbol_filtered for static members.
11449 (cp_print_class_member): Style member names.
11450 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
11451 member names.
11452 * ada-valprint.c (ada_print_scalar): Style enum names.
11453 (ada_val_print_enum): Likewise.
11454 * ada-typeprint.c (print_enum_type): Style enum names.
11455
11456 2020-02-21 Tom Tromey <tom@tromey.com>
11457
11458 * psympriv.h (struct partial_symtab): Update comment.
11459
11460 2020-02-21 Tom Tromey <tromey@adacore.com>
11461
11462 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
11463 type is CORE_ADDR.
11464
11465 2020-02-21 Tom de Vries <tdevries@suse.de>
11466
11467 PR gdb/25534
11468 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
11469 if dependencies[i]->user != NULL.
11470
11471 2020-02-21 Ali Tamur <tamur@google.com>
11472
11473 * dwarf2/read.c (dwarf2_name): Add null check.
11474
11475 2020-02-20 Tom Tromey <tom@tromey.com>
11476
11477 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
11478 ">=", in binary search.
11479 (dwarf2_find_containing_comp_unit): New overload.
11480 (run_test): New self-test.
11481 (_initialize_dwarf2_read): Register new test.
11482
11483 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
11484
11485 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
11486 * riscv-tdep.h: Likewise.
11487 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
11488 rv32-only CSR.
11489 * features/riscv/64bit-csr.xml: Regenerated.
11490
11491 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
11492 Tom Tromey <tom@tromey.com>
11493
11494 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
11495 of 'fputc_unfiltered'.
11496 (putchar_unfiltered): Call 'fputc_unfiltered'.
11497 (fputc_unfiltered): Call 'fputs_unfiltered'.
11498
11499 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
11500
11501 * config.in: Regenerate.
11502 * configure: Regenerate.
11503 * configure.ac: Add --with-python-libdir option.
11504 * main.c: Use WITH_PYTHON_LIBDIR.
11505
11506 2020-02-19 Tom Tromey <tom@tromey.com>
11507
11508 * symtab.c (general_symbol_info::compute_and_set_names): Use
11509 obstack_strndup. Simplify call to symbol_set_demangled_name.
11510
11511 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
11512
11513 * dwarf2/read.c (allocate_signatured_type_table,
11514 allocate_dwo_unit_table, allocate_type_unit_groups_table,
11515 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
11516 Remove objfile parameter, update all callers.
11517
11518 2020-02-19 Doug Evans <dje@google.com>
11519
11520 PR rust/25535
11521 * rust-lang.c (rust_print_enum): Apply embedded_offset to
11522 rust_enum_variant calculation.
11523
11524 2020-02-19 Tom Tromey <tromey@adacore.com>
11525
11526 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
11527
11528 2020-02-19 Tom Tromey <tromey@adacore.com>
11529
11530 * ada-lang.c (cache_symbol): Use obstack_strdup.
11531
11532 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
11533
11534 * configure: Regenerate.
11535
11536 2020-02-19 Tom Tromey <tromey@adacore.com>
11537
11538 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
11539 NULL check.
11540
11541 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
11542
11543 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
11544
11545 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
11546
11547 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
11548 if GDBSERVER is not defined.
11549 (riscv_tdesc_cache): Likewise, also store const target_desc.
11550 (STATIC_IN_GDB): Define.
11551 (riscv_create_target_description): Update declaration with
11552 STATIC_IN_GDB.
11553 (riscv_lookup_target_description): New function, only define if
11554 GDBSERVER is not defined.
11555 * arch/riscv.h (riscv_create_target_description): Declare only
11556 when GDBSERVER is defined.
11557 (riscv_lookup_target_description): New declaration when GDBSERVER
11558 is not defined.
11559 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
11560 (riscv_linux_read_features): ...this, and return
11561 riscv_gdbarch_features instead of target_desc.
11562 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
11563 (riscv_linux_read_description): Rename to...
11564 (riscv_linux_read_features): ...this.
11565 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
11566 Update to use riscv_gdbarch_features and
11567 riscv_lookup_target_description.
11568 * riscv-tdep.c (riscv_find_default_target_description): Use
11569 riscv_lookup_target_description instead of
11570 riscv_create_target_description.
11571
11572 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
11573
11574 * valprint.c (generic_val_print_enum_1): When printing a flag
11575 enum with value 0 and there is no enumerator with value 0, print
11576 just "0" instead of "(unknown: 0x0)".
11577
11578 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
11579
11580 * valprint.c (generic_val_print_enum_1): Print unknown part of
11581 flag enum in hex.
11582
11583 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
11584
11585 * dwarf2/read.c (update_enumeration_type_from_children): Allow
11586 flag enums to contain duplicate enumerators.
11587 * valprint.c (generic_val_print_enum_1): Update comment.
11588
11589 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
11590
11591 * dwarf2/read.c: Include "count-one-bits.h".
11592 (update_enumeration_type_from_children): If an enumerator has
11593 multiple bits set, don't treat the enumeration as a "flag enum".
11594 * valprint.c (generic_val_print_enum_1): Assert that enumerators
11595 of flag enums have 0 or 1 bit set.
11596
11597 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
11598
11599 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
11600 conversion.
11601 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11602 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
11603 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11604 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
11605 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11606
11607 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
11608
11609 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
11610
11611 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
11612
11613 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
11614 displaced_step_closure_up.
11615 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
11616 (struct displaced_step_closure_up):
11617 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11618 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
11619 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
11620 Likewise.
11621 * gdbarch.sh (displaced_step_copy_insn): Likewise.
11622 * gdbarch.c, gdbarch.h: Re-generate.
11623 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
11624 displaced_step_closure_up.
11625 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11626 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
11627 * infrun.h (displaced_step_closure_up): New type alias.
11628 (struct displaced_step_inferior_state) <step_closure>: Change
11629 type to displaced_step_closure_up.
11630 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
11631 displaced_step_closure_up.
11632 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11633
11634 2020-02-14 Tom Tromey <tom@tromey.com>
11635
11636 * minidebug.c (gnu_debug_key): New global.
11637 (find_separate_debug_file_in_section): Use it.
11638
11639 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
11640
11641 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
11642 std::unique_ptr.
11643 * gdbarch.c: Re-generate.
11644 * gdbarch.h: Re-generate.
11645 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
11646 change.
11647 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
11648 type to std::unique_ptr.
11649 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
11650 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11651 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
11652 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
11653 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
11654 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11655 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
11656 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
11657 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11658
11659 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
11660
11661 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
11662 std::unique_ptr.
11663 (displaced_step_clear): Rename to...
11664 (displaced_step_reset): ... this. Just call displaced->reset ().
11665 (displaced_step_clear_cleanup): Rename to...
11666 (displaced_step_reset_cleanup): ... this.
11667 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
11668 (displaced_step_fixup): Likewise.
11669 (resume_1): Likewise.
11670 (handle_inferior_event): Restore child's memory before calling
11671 displaced_step_fixup on the parent.
11672 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
11673 to std::unique_ptr.
11674 <step_closure>: Change type to std::unique_ptr.
11675
11676 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
11677
11678 * arm-tdep.c: Include count-one-bits.h.
11679 (cleanup_block_store_pc): Use count_one_bits.
11680 (cleanup_block_load_pc): Use count_one_bits.
11681 (arm_copy_block_xfer): Use count_one_bits.
11682 (thumb2_copy_block_xfer): Use count_one_bits.
11683 (thumb_copy_pop_pc_16bit): Use count_one_bits.
11684 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
11685 (thumb_get_next_pcs_raw): Use count_one_bits.
11686 (arm_get_next_pcs_raw): Use count_one_bits_l.
11687 * arch/arm.c (bitcount): Remove.
11688 * arch/arm.h (bitcount): Remove.
11689
11690 2020-02-14 Tom Tromey <tromey@adacore.com>
11691
11692 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
11693 Update.
11694 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
11695 * dwarf2/loc.c (call_site_find_chain_1): Return
11696 unique_xmalloc_ptr.
11697 (call_site_find_chain): Likewise.
11698
11699 2020-02-14 Richard Biener <rguenther@suse.de>
11700
11701 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
11702 on expression with division operators.
11703
11704 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11705
11706 * MAINTAINERS (Write After Approval): Adding myself.
11707
11708 2020-02-12 Tom Tromey <tom@tromey.com>
11709
11710 * event-loop.c (event_data, gdb_event, event_handler_func):
11711 Remove.
11712
11713 2020-02-12 Tom Tromey <tom@tromey.com>
11714
11715 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
11716 (dwarf2_frame_objfile_data): Add comment.
11717 (find_comp_unit, set_comp_unit): New functions.
11718 (dwarf2_frame_find_fde): Use find_comp_unit.
11719 (dwarf2_build_frame_info): Use set_comp_unit.
11720
11721 2020-02-12 Tom Tromey <tom@tromey.com>
11722
11723 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
11724 (comp_unit): Don't initialize objfile.
11725 (execute_cfa_program): Add text_offset parameter.
11726 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
11727 (dwarf2_frame_cache): Update.
11728 (dwarf2_build_frame_info): Don't set "objfile" member.
11729
11730 2020-02-12 Tom Tromey <tom@tromey.com>
11731
11732 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
11733 (decode_frame_entry): Likewise.
11734 (dwarf2_build_frame_info): Update.
11735
11736 2020-02-12 Tom Tromey <tom@tromey.com>
11737
11738 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
11739 (decode_frame_entry_1): Use the comp_unit obstack.
11740
11741 2020-02-12 Tom Tromey <tom@tromey.com>
11742
11743 * dwarf2/frame.c (struct comp_unit): Add initializers and
11744 constructor.
11745 (dwarf2_frame_objfile_data): Store a comp_unit.
11746 (dwarf2_frame_find_fde): Update.
11747 (dwarf2_build_frame_info): Use "new".
11748
11749 2020-02-12 Tom Tromey <tom@tromey.com>
11750
11751 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
11752 (dwarf2_fde_table): Typedef for std::vector.
11753 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
11754 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
11755 (decode_frame_entry): Update.
11756 (dwarf2_build_frame_info): Use "new".
11757
11758 2020-02-12 Christian Biesinger <cbiesinger@google.com>
11759
11760 * arm-tdep.c (arm_gdbarch_init): Update.
11761 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
11762 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
11763 have_neon, is_m>: Change to bool.
11764
11765 2020-02-12 Christian Biesinger <cbiesinger@google.com>
11766
11767 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
11768
11769 2020-02-12 Tom Tromey <tom@tromey.com>
11770
11771 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
11772
11773 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
11774
11775 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
11776 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
11777
11778 2020-02-11 Tom Tromey <tom@tromey.com>
11779
11780 * psymtab.h: Update comment.
11781
11782 2020-02-11 Tom Tromey <tom@tromey.com>
11783
11784 * gdb_obstack.h (struct auto_obstack): Use
11785 DISABLE_COPY_AND_ASSIGN.
11786
11787 2020-02-11 Tom Tromey <tom@tromey.com>
11788
11789 * dwarf2/frame.h (struct objfile): Don't forward declare.
11790
11791 2020-02-11 Christian Biesinger <cbiesinger@google.com>
11792
11793 * cris-tdep.c (cris_supply_gregset): Change signature to match
11794 what struct regset expects.
11795 (cris_regset): New struct.
11796 (fetch_core_registers): Remove.
11797 (cris_iterate_over_regset_sections): New function.
11798 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
11799 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
11800
11801 2020-02-11 Christian Biesinger <cbiesinger@google.com>
11802
11803 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
11804 registers.
11805
11806 2020-02-11 Christian Biesinger <cbiesinger@google.com>
11807
11808 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
11809
11810 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
11811
11812 * configure: Re-generate.
11813
11814 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
11815
11816 * configure: Re-generate.
11817
11818 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
11819
11820 * acinclude: Update warning.m4 path.
11821 * warning.m4: Move to gdbsupport.
11822
11823 2020-02-11 Tom Tromey <tromey@adacore.com>
11824
11825 * remote.c (remote_console_output): Update.
11826 * printcmd.c (printf_command): Update.
11827 * event-loop.c (gdb_wait_for_event): Update.
11828 * linux-nat.c (sigchld_handler): Update.
11829 * remote-sim.c (gdb_os_write_stdout): Update.
11830 (gdb_os_flush_stdout): Update.
11831 (gdb_os_flush_stderr): Update.
11832 (gdb_os_write_stderr): Update.
11833 * exceptions.c (print_exception): Update.
11834 * remote-fileio.c (remote_fileio_func_read): Update.
11835 (remote_fileio_func_write): Update.
11836 * tui/tui.c (tui_enable): Update.
11837 * tui/tui-interp.c (tui_interp::init): Update.
11838 * utils.c (init_page_info): Update.
11839 (putchar_unfiltered, fputc_unfiltered): Update.
11840 (gdb_flush): Update.
11841 (emit_style_escape): Update.
11842 (flush_wrap_buffer, fputs_maybe_filtered): Update.
11843 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
11844 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
11845 (stderr_file::write): Update.
11846 (stderr_file::puts): Update.
11847 * ui-file.h (ui_file_isatty, ui_file_write)
11848 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
11849 (ui_file_puts): Don't declare.
11850
11851 2020-02-10 Tom de Vries <tdevries@suse.de>
11852
11853 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
11854 sentinel to char *.
11855
11856 2020-02-09 Tom de Vries <tdevries@suse.de>
11857
11858 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
11859 filename if it matches "<artificial>".
11860
11861 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
11862
11863 * windows-tdep.c (struct enum_value_name): New struct.
11864 (create_enum): New function.
11865 (windows_get_siginfo_type): Create and use enum types.
11866
11867 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
11868
11869 * NEWS: Mention $_siginfo support for Windows.
11870 * windows-nat.c (handle_exception): Set siginfo_er.
11871 (windows_nat_target::mourn_inferior): Reset siginfo_er.
11872 (windows_xfer_siginfo): New function.
11873 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
11874 * windows-tdep.c (struct windows_gdbarch_data): New struct.
11875 (init_windows_gdbarch_data): New function.
11876 (get_windows_gdbarch_data): New function.
11877 (windows_get_siginfo_type): New function.
11878 (windows_init_abi): Register windows_get_siginfo_type.
11879 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
11880
11881 2020-02-08 Tom Tromey <tom@tromey.com>
11882
11883 * dwarf2/read.c (class cutu_reader) <cutu_reader,
11884 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
11885 <keep>: Declare method.
11886 <m_keep>: Remove member.
11887 <~cutu_reader>: Remove.
11888 (cutu_reader::init_tu_and_read_dwo_dies): Update.
11889 (cutu_reader::cutu_reader): Update.
11890 (cutu_reader::keep): Rename from ~cutu_reader.
11891 (process_psymtab_comp_unit, build_type_psymtabs_1)
11892 (process_skeletonless_type_unit, load_partial_comp_unit)
11893 (load_full_comp_unit, dwarf2_read_addr_index)
11894 (read_signatured_type): Update.
11895
11896 2020-02-08 Tom Tromey <tom@tromey.com>
11897
11898 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
11899 "want_partial_unit" parameter.
11900 (process_psymtab_comp_unit): Change want_partial_unit to bool.
11901 Inline check for DW_TAG_partial_unit.
11902 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
11903
11904 2020-02-08 Tom Tromey <tom@tromey.com>
11905
11906 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
11907 read.c.
11908 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
11909 read.c.
11910
11911 2020-02-08 Tom Tromey <tom@tromey.com>
11912
11913 * dwarf2/read.c (read_address): Move to comp-unit.c.
11914 (dwarf2_rnglists_process, dwarf2_ranges_process)
11915 (read_attribute_value, dwarf_decode_lines_1)
11916 (var_decode_location, decode_locdesc): Update.
11917 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
11918 read.c. Remove "cu" parameter.
11919 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
11920 method.
11921
11922 2020-02-08 Tom Tromey <tom@tromey.com>
11923
11924 * dwarf2/read.c (read_attribute_value, read_indirect_string)
11925 (read_indirect_line_string): Update.
11926 * dwarf2/comp-unit.c (read_offset): Remove.
11927 (read_comp_unit_head): Update.
11928 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
11929 method.
11930 (read_offset): Don't declare.
11931
11932 2020-02-08 Tom Tromey <tom@tromey.com>
11933
11934 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
11935 * dwarf2/read.c (struct comp_unit_head): Move to
11936 dwarf2/comp-unit.h.
11937 (enum class rcuh_kind): Move to comp-unit.h.
11938 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
11939 (read_comp_unit_head, error_check_comp_unit_head)
11940 (read_and_check_comp_unit_head): Move to comp-unit.c.
11941 (read_offset, dwarf_unit_type_name): Likewise.
11942 (create_debug_type_hash_table, read_cutu_die_from_dwo)
11943 (cutu_reader::cutu_reader, read_call_site_scope)
11944 (find_partial_die, follow_die_offset): Update.
11945 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
11946
11947 2020-02-08 Tom Tromey <tom@tromey.com>
11948
11949 * dwarf2/read.c (read_offset_1): Move to leb.c.
11950 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
11951 (dwarf_decode_macro_bytes): Update.
11952 * dwarf2/leb.c (read_offset): Rename; move from read.c.
11953 * dwarf2/leb.h (read_offset): Declare.
11954
11955 2020-02-08 Tom Tromey <tom@tromey.com>
11956
11957 * dwarf2/read.c (dwarf2_section_size): Remove.
11958 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
11959 Update.
11960 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
11961
11962 2020-02-08 Tom Tromey <tom@tromey.com>
11963
11964 * dwarf2/read.c (read_initial_length): Move to leb.c.
11965 * dwarf2/leb.h (read_initial_length): Declare.
11966 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
11967 handle_nonstd parameter.
11968 * dwarf2/frame.c (read_initial_length): Remove.
11969 (decode_frame_entry_1): Update.
11970
11971 2020-02-08 Tom Tromey <tom@tromey.com>
11972
11973 * dwarf2/loc.c (dwarf2_find_location_expression)
11974 (dwarf_evaluate_loc_desc::get_tls_address)
11975 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
11976 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
11977 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
11978 (dwarf2_compile_property_to_c)
11979 (dwarf2_loc_desc_get_symbol_read_needs)
11980 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
11981 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
11982 (loclist_describe_location, loclist_tracepoint_var_ref)
11983 (loclist_generate_c_location): Update.
11984 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
11985 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
11986 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
11987 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
11988 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
11989 (dwarf2_per_cu_data::addr_size)
11990 (dwarf2_per_cu_data::ref_addr_size)
11991 (dwarf2_per_cu_data::text_offset)
11992 (dwarf2_per_cu_data::addr_type): Now methods.
11993 (per_cu_header_read_in): Make per_cu "const".
11994 (dwarf2_version): Remove.
11995 (dwarf2_per_cu_data::int_type): Now a method.
11996 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
11997 (set_die_type, read_array_type, read_subrange_index_type)
11998 (read_tag_string_type, read_subrange_type): Update.
11999 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
12000 offset_size, ref_addr_size, text_offset, addr_type, version,
12001 objfile, int_type, addr_sized_int_type>: Declare methods.
12002
12003 2020-02-08 Tom Tromey <tom@tromey.com>
12004
12005 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
12006 Move earlier.
12007
12008 2020-02-08 Tom Tromey <tom@tromey.com>
12009
12010 * dwarf2/read.h (dwarf_line_debug): Declare.
12011 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
12012 * dwarf2/read.c: Move line_header code to new files.
12013 (dwarf_line_debug): No longer static.
12014 * dwarf2/line-header.c: New file.
12015 * dwarf2/line-header.h: New file.
12016
12017 2020-02-08 Tom Tromey <tom@tromey.com>
12018
12019 * dwarf2/read.c (struct line_header) <file_full_name,
12020 file_file_name>: Return unique_xmalloc_ptr.
12021 (line_header::file_file_name): Update.
12022 (line_header::file_full_name): Update.
12023 (dw2_get_file_names_reader): Update.
12024 (macro_start_file): Update.
12025
12026 2020-02-08 Tom Tromey <tom@tromey.com>
12027
12028 * dwarf2/read.c (struct line_header) <file_full_name,
12029 file_file_name>: Declare methods.
12030 (dw2_get_file_names_reader): Update.
12031 (file_file_name): Now a method.
12032 (file_full_name): Likewise.
12033 (macro_start_file): Update.
12034
12035 2020-02-08 Tom Tromey <tom@tromey.com>
12036
12037 * dwarf2/read.c (dwarf_always_disassemble)
12038 (show_dwarf_always_disassemble): Move to loc.c.
12039 (_initialize_dwarf2_read): Move "always-disassemble" registration
12040 to loc.c.
12041 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
12042 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
12043 static.
12044 (show_dwarf_always_disassemble): Move from read.c.
12045 (_initialize_dwarf2loc): Move always-disassemble from read.c.
12046
12047 2020-02-08 Tom Tromey <tom@tromey.com>
12048
12049 * dwarf2/read.c (~dwarf2_per_objfile): Update.
12050 (create_quick_file_names_table): Return htab_up.
12051 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
12052 Update.
12053 * dwarf2/read.h (struct dwarf2_per_objfile)
12054 <quick_file_names_table>: Now htab_up.
12055
12056 2020-02-08 Tom Tromey <tom@tromey.com>
12057
12058 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
12059
12060 2020-02-08 Tom Tromey <tom@tromey.com>
12061
12062 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
12063 Rewrite.
12064 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
12065 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
12066 (abbrev_table::abbrev_table): No longer inline.
12067 (ABBREV_HASH_SIZE): Remove.
12068 (abbrev_table::m_abbrevs): Now an htab_up.
12069
12070 2020-02-08 Tom Tromey <tom@tromey.com>
12071
12072 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
12073 (cutu_reader): Update.
12074 (build_type_psymtabs_1): Update.
12075 * dwarf2/abbrev.c (abbrev_table::read): Rename.
12076 (abbrev_table::alloc_abbrev): Update.
12077 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
12078 (abbrev_table::read): New static method, renamed from
12079 abbrev_table_read_table.
12080 (abbrev_table::alloc_abbrev)
12081 (abbrev_table::add_abbrev): Now private.
12082 (abbrev_table::abbrev_table): Now private.
12083 (abbrev_table::m_abbrev_obstack): Now private. Rename.
12084
12085 2020-02-08 Tom Tromey <tom@tromey.com>
12086
12087 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
12088 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
12089 htab_up.
12090
12091 2020-02-08 Tom Tromey <tom@tromey.com>
12092
12093 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
12094 htab_up.
12095 (lookup_dwo_unit_in_dwp): Update.
12096 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
12097 on obstack.
12098
12099 2020-02-08 Tom Tromey <tom@tromey.com>
12100
12101 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
12102 obstack.
12103
12104 2020-02-08 Tom Tromey <tom@tromey.com>
12105
12106 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
12107 line_header_hash.
12108 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
12109 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
12110 Change type to htab_up.
12111
12112 2020-02-08 Tom Tromey <tom@tromey.com>
12113
12114 * dwarf2/read.c (allocate_type_unit_groups_table): Return
12115 htab_up. Don't allocate on obstack.
12116 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
12117 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
12118 Change type to htab_up.
12119
12120 2020-02-08 Tom Tromey <tom@tromey.com>
12121
12122 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
12123 Change type to htab_up.
12124 * dwarf2/read.c (create_signatured_type_table_from_index)
12125 (create_signatured_type_table_from_debug_names)
12126 (create_all_type_units, add_type_unit)
12127 (lookup_dwo_signatured_type, lookup_signatured_type)
12128 (process_skeletonless_type_unit): Update.
12129 (create_debug_type_hash_table, create_debug_types_hash_table):
12130 Change type of types_htab.
12131 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
12132 htab_up. Don't allocate on obstack.
12133 (create_cus_hash_table): Change type of cus_htab parameter.
12134 (struct dwo_file) <cus, tus>: Now htab_up.
12135 (lookup_dwo_signatured_type, lookup_dwo_cutu)
12136 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
12137 (queue_and_load_all_dwo_tus): Update.
12138 * dwarf2/index-write.c (write_gdbindex): Update.
12139 (write_debug_names): Update.
12140
12141 2020-02-08 Tom Tromey <tom@tromey.com>
12142
12143 * dwarf2/read.h (struct dwarf2_queue_item): Move from
12144 dwarf2/read.c. Remove "next" member. Add constructor ntad
12145 destructor.
12146 (struct dwarf2_per_objfile) <queue>: New member.
12147 * dwarf2/read.c (struct dwarf2_queue_item): Move to
12148 dwarf2/read.h.
12149 (dwarf2_queue, dwarf2_queue_tail): Remove.
12150 (class dwarf2_queue_guard): Add parameter to constructor. Use
12151 DISABLE_COPY_AND_ASSIGN.
12152 <m_per_objfile>: New member.
12153 <~dwarf2_queue_guard>: Rewrite.
12154 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
12155 Update.
12156 (~dwarf2_queue_item): New.
12157
12158 2020-02-08 Tom Tromey <tom@tromey.com>
12159
12160 * dwarf2/read.c (struct die_info) <has_children>: New member.
12161 (dw2_get_file_names_reader): Remove has_children.
12162 (dw2_get_file_names): Update.
12163 (read_cutu_die_from_dwo): Remove has_children.
12164 (cutu_reader::init_tu_and_read_dwo_dies)
12165 (cutu_reader::cutu_reader): Update.
12166 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
12167 Remove has_children.
12168 (build_type_psymtabs_1, process_skeletonless_type_unit)
12169 (load_partial_comp_unit, load_full_comp_unit): Update.
12170 (create_dwo_cu_reader): Remove has_children.
12171 (create_cus_hash_table, read_die_and_children): Update.
12172 (read_full_die_1,read_full_die): Remove has_children.
12173 (read_signatured_type): Update.
12174 (class cutu_reader) <has_children>: Remove.
12175
12176 2020-02-08 Tom Tromey <tom@tromey.com>
12177
12178 * dwarf2/expr.c: Rename from dwarf2expr.c.
12179 * dwarf2/expr.h: Rename from dwarf2expr.h.
12180 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
12181 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
12182 * dwarf2/frame.c: Rename from dwarf2-frame.c.
12183 * dwarf2/frame.h: Rename from dwarf2-frame.h.
12184 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
12185 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
12186 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
12187 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
12188 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
12189 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
12190 * dwarf2/loc.c: Rename from dwarf2loc.c.
12191 * dwarf2/loc.h: Rename from dwarf2loc.h.
12192 * dwarf2/read.c: Rename from dwarf2read.c.
12193 * dwarf2/read.h: Rename from dwarf2read.h.
12194 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
12195 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
12196 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
12197 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
12198 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
12199 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
12200 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
12201 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
12202 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
12203 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
12204 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
12205 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
12206 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
12207 Update.
12208 * Makefile.in (COMMON_SFILES): Update.
12209 (HFILES_NO_SRCDIR): Update.
12210
12211 2020-02-08 Tom Tromey <tom@tromey.com>
12212
12213 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
12214 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
12215
12216 2020-02-08 Tom Tromey <tom@tromey.com>
12217
12218 * dwarf2read.h (struct die_info): Don't declare.
12219
12220 2020-02-08 Tom Tromey <tom@tromey.com>
12221
12222 * dwarf2read.h (die_info_ptr): Remove typedef.
12223
12224 2020-02-08 Tom Tromey <tom@tromey.com>
12225
12226 * dwarf2read.c (read_call_site_scope)
12227 (handle_data_member_location, dwarf2_add_member_fn)
12228 (mark_common_block_symbol_computed, read_common_block)
12229 (attr_to_dynamic_prop, partial_die_info::read)
12230 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
12231 (dwarf2_symbol_mark_computed, set_die_type): Update.
12232 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
12233 method.
12234 (attr_form_is_block): Don't declare.
12235 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
12236
12237 2020-02-08 Tom Tromey <tom@tromey.com>
12238
12239 * dwarf2read.c (dwarf2_find_base_address, )
12240 (read_call_site_scope, rust_containing_type)
12241 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
12242 (handle_data_member_location, dwarf2_add_member_fn)
12243 (get_alignment, read_structure_type, process_structure_scope)
12244 (mark_common_block_symbol_computed, read_common_block)
12245 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
12246 (partial_die_info::read, read_attribute_value, new_symbol)
12247 (lookup_die_type, dwarf2_get_ref_die_offset)
12248 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
12249 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
12250 (dwarf2_symbol_mark_computed): Update.
12251 * dwarf2/attribute.h (struct attribute) <value_as_address,
12252 form_is_section_offset, form_is_constant, form_is_ref>: Declare
12253 methods.
12254 (value_as_address, attr_form_is_section_offset)
12255 (attr_form_is_constant, attr_form_is_ref): Don't declare.
12256 * dwarf2/attribute.c (attribute::value_as_address)
12257 (attribute::form_is_section_offset, attribute::form_is_constant)
12258 (attribute::form_is_ref): Now methods.
12259
12260 2020-02-08 Tom Tromey <tom@tromey.com>
12261
12262 * dwarf2read.c (struct attribute, DW_STRING)
12263 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
12264 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
12265 (attr_form_is_block, attr_form_is_section_offset)
12266 (attr_form_is_constant, attr_form_is_ref): Move.
12267 * dwarf2/attribute.h: New file.
12268 * dwarf2/attribute.c: New file, from dwarf2read.c.
12269 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
12270
12271 2020-02-08 Tom Tromey <tom@tromey.com>
12272
12273 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
12274 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
12275 Move.
12276 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
12277 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
12278 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
12279 abbrev.c.
12280 * dwarf2/abbrev.h: New file.
12281 * dwarf2/abbrev.c: New file, from dwarf2read.c.
12282 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
12283
12284 2020-02-08 Tom Tromey <tom@tromey.com>
12285
12286 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
12287 (dwarf2_section_size, dwarf2_get_section_info)
12288 (create_signatured_type_table_from_debug_names)
12289 (create_addrmap_from_aranges, read_debug_names_from_section)
12290 (get_gdb_index_contents_from_section, read_comp_unit_head)
12291 (error_check_comp_unit_head, read_abbrev_offset)
12292 (create_debug_type_hash_table, init_cu_die_reader)
12293 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
12294 (read_comp_units_from_section, create_cus_hash_table)
12295 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
12296 (create_dwp_v2_section, dwarf2_rnglists_process)
12297 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
12298 (abbrev_table_read_table, read_indirect_string_at_offset_from)
12299 (read_indirect_string_from_dwz, read_addr_index_1)
12300 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
12301 (dwarf_decode_macro_bytes, dwarf_decode_macros)
12302 (fill_in_loclist_baton): Update.
12303 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
12304 get_containing_section, get_bfd_owner, get_bfd_section,
12305 get_file_name, get_id, get_flags, empty, read>: Declare methods.
12306 (dwarf2_read_section, get_section_name, get_section_file_name)
12307 (get_containing_section, get_section_bfd_owner)
12308 (get_section_bfd_section, get_section_name, get_section_file_name)
12309 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
12310 declare.
12311 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
12312 (dwarf2_section_info::get_bfd_owner)
12313 (dwarf2_section_info::get_bfd_section)
12314 (dwarf2_section_info::get_name)
12315 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
12316 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
12317 (dwarf2_section_info::read): Now methods.
12318 * dwarf-index-write.c (class debug_names): Update.
12319
12320 2020-02-08 Tom Tromey <tom@tromey.com>
12321
12322 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
12323 Move to dwarf2/section.h.
12324 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
12325 (get_section_bfd_section, get_section_name)
12326 (get_section_file_name, get_section_id, get_section_flags)
12327 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
12328 dwarf2/section.c.
12329 * dwarf2/section.h: New file.
12330 * dwarf2/section.c: New file, from dwarf2read.c.
12331 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
12332
12333 2020-02-08 Tom Tromey <tom@tromey.com>
12334
12335 * dwarf2read.h (read_unsigned_leb128): Don't declare.
12336 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
12337 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
12338 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
12339 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
12340 * dwarf2/leb.h: New file, from dwarf2read.c.
12341 * dwarf2/leb.c: New file, from dwarf2read.c.
12342 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
12343 Remove.
12344 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
12345 (COMMON_SFILES): Add dwarf2/leb.c.
12346
12347 2020-02-08 Joel Brobecker <brobecker@adacore.com>
12348
12349 GDB 9.1 released.
12350
12351 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
12352
12353 PR gdb/25190:
12354 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
12355 * gdb/remote.c (remote_console_output): Update.
12356 * gdb/ui-file.c (fputs_unfiltered): Rename to...
12357 (ui_file_puts): ...this.
12358 * gdb/ui-file.h (ui_file_puts): Add declaration.
12359 * gdb/utils.c (emit_style_escape): Update.
12360 (flush_wrap_buffer): Update.
12361 (fputs_maybe_filtered): Update.
12362 (fputs_unfiltered): Add function.
12363
12364 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
12365
12366 * gdb/event-loop.c (gdb_wait_for_event): Update.
12367 * gdb/printcmd.c (printf_command): Update.
12368 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
12369 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
12370 (gdb_os_flush_stderr): Update.
12371 * gdb/remote.c (remote_console_output): Update.
12372 * gdb/ui-file.c (gdb_flush): Rename to...
12373 (ui_file_flush): ...this.
12374 (stderr_file::write): Update.
12375 (stderr_file::puts): Update.
12376 * gdb/ui-file.h (gdb_flush): Rename to...
12377 (ui_file_flush): ...this.
12378 * gdb/utils.c (gdb_flush): Add function.
12379 * gdb/utils.h (gdb_flush): Add declaration.
12380
12381 2020-02-07 Tom Tromey <tromey@adacore.com>
12382
12383 PR breakpoints/24915:
12384 * source.c (find_and_open_source): Do not check basenames_may_differ.
12385
12386 2020-02-07 Tom Tromey <tom@tromey.com>
12387
12388 * README: Update gdbserver documentation.
12389 * gdbserver: Move to top level.
12390 * configure.tgt (build_gdbserver): Remove.
12391 * configure.ac: Remove --enable-gdbserver.
12392 * configure: Rebuild.
12393 * Makefile.in (distclean): Don't mention gdbserver.
12394
12395 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
12396
12397 * source-cache.c (source_cache::ensure): Surround
12398 get_plain_source_lines with a try/catch.
12399 (source_cache::get_line_charpos): Get rid of try/catch
12400 and only check for the return value of "ensure".
12401 * tui/tui-source.c (tui_source_window::set_contents):
12402 Simplify "nlines" calculation.
12403
12404 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
12405
12406 * MAINTAINERS (Write After Approval): Add myself.
12407
12408 2020-02-05 Christian Biesinger <cbiesinger@google.com>
12409
12410 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
12411 function call.
12412
12413 2020-02-05 Christian Biesinger <cbiesinger@google.com>
12414
12415 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
12416
12417 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
12418
12419 * nat/riscv-linux-tdesc.h: New file.
12420 * nat/riscv-linux-tdesc.c: New file, taking code from...
12421 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
12422 ... here.
12423 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
12424 NATDEPFILES.
12425
12426 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
12427
12428 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
12429 we don't set the fake simulator ptid to the null_ptid.
12430
12431 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
12432
12433 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
12434 * gdbthread.h (class thread_info) <resumed>: Likewise.
12435 * infrun.c (resume_1): Likewise.
12436 (proceed): Likewise.
12437 (infrun_thread_stop_requested): Likewise.
12438 (stop_all_threads): Likewise.
12439 (handle_inferior_event): Likewise.
12440 (restart_threads): Likewise.
12441 (finish_step_over): Likewise.
12442 (keep_going_stepped_thread): Likewise.
12443 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
12444 (linux_handle_extended_wait): Likewise.
12445 * record-btrace.c (get_thread_current_frame_id): Likewise.
12446 * record-full.c (record_full_wait_1): Likewise.
12447 * remote.c (remote_target::process_initial_stop_replies): Likewise.
12448 * target.c (target_resume): Likewise.
12449 * thread.c (set_running_thread): Likewise.
12450
12451 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
12452
12453 * f-valprint.c (f77_print_array_1): Changed datatype of index
12454 variable to LONGEST from int to enable it to contain bound
12455 values correctly.
12456
12457 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
12458
12459 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
12460 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
12461 offsets according to FLEN determined.
12462 (riscv_linux_nat_target::read_description): Determine FLEN
12463 dynamically.
12464 (riscv_linux_nat_target::fetch_registers): Size regset buffer
12465 according to FLEN determined.
12466 (riscv_linux_nat_target::store_registers): Likewise.
12467
12468 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
12469
12470 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
12471 when reg->group is empty and reggroup is not.
12472
12473 2020-01-31 Tom Tromey <tromey@adacore.com>
12474
12475 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
12476 Call beneath target's mourn_inferior after unpushing.
12477
12478 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
12479
12480 PR tui/9765
12481 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
12482 have enough lines to fill the screen, still return the lowest
12483 address we found.
12484
12485 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
12486
12487 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
12488 '-', '<', and '>' commands.
12489
12490 2020-01-29 Pedro Alves <palves@redhat.com>
12491 Sergio Durigan Junior <sergiodj@redhat.com>
12492
12493 * infcmd.c (construct_inferior_arguments): Assert that
12494 'argc' is greater than 0.
12495
12496 2020-01-29 Luis Machado <luis.machado@linaro.org>
12497
12498 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
12499 (BRK_INSN_MASK): Define to 0xd4200000.
12500 (aarch64_program_breakpoint_here_p): New function.
12501 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
12502 * arch-utils.c (default_program_breakpoint_here_p): Moved from
12503 breakpoint.c.
12504 * arch-utils.h (default_program_breakpoint_here_p): Moved from
12505 breakpoint.h
12506 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
12507 call gdbarch_program_breakpoint_here_p.
12508 (program_breakpoint_here): Moved to arch-utils.c, renamed to
12509 default_program_breakpoint_here_p, changed return type to bool and
12510 simplified.
12511 * breakpoint.h (program_breakpoint_here): Moved prototype to
12512 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
12513 return type to bool.
12514 * gdbarch.c: Regenerate.
12515 * gdbarch.h: Regenerate.
12516 * gdbarch.sh (program_breakpoint_here_p): New method.
12517 * infrun.c (handle_signal_stop): Call
12518 gdbarch_program_breakpoint_here_p.
12519
12520 2020-01-26 Tom Tromey <tom@tromey.com>
12521
12522 * ctfread.c (struct ctf_fp_info): Reindent.
12523 (_initialize_ctfread): Remove.
12524
12525 2020-01-26 Tom Tromey <tom@tromey.com>
12526
12527 * psymtab.c (partial_map_expand_apply)
12528 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
12529 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
12530 (psym_print_stats, psym_expand_symtabs_for_function)
12531 (psym_map_symbol_filenames, psym_map_matching_symbols)
12532 (psym_expand_symtabs_matching)
12533 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
12534 (maintenance_check_psymtabs): Use new methods.
12535 * psympriv.h (struct partial_symtab) <readin_p,
12536 get_compunit_symtab>: New methods.
12537 <readin, compunit_symtab>: Remove members.
12538 (struct standard_psymtab): New.
12539 (struct legacy_psymtab): Derive from standard_psymtab.
12540 * dwarf2read.h (struct dwarf2_psymtab): Derive from
12541 standard_psymtab.
12542 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
12543
12544 2020-01-26 Tom Tromey <tom@tromey.com>
12545
12546 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
12547 read_dependencies. Add assert.
12548 * psymtab.c (partial_symtab::read_dependencies): New method.
12549 * psympriv.h (struct partial_symtab) <read_dependencies>: New
12550 method.
12551 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
12552 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
12553 read_dependencies.
12554 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
12555 Add assert.
12556
12557 2020-01-26 Tom Tromey <tom@tromey.com>
12558
12559 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
12560 Call expand_psymtab.
12561 (xcoff_read_symtab): Call expand_psymtab.
12562 (xcoff_start_psymtab, xcoff_end_psymtab): Set
12563 legacy_expand_psymtab.
12564 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
12565 method.
12566 (struct legacy_psymtab) <expand_psymtab>: Implement.
12567 <legacy_expand_psymtab>: New member.
12568 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
12569 (parse_partial_symbols): Set legacy_expand_psymtab.
12570 (psymtab_to_symtab_1): Change argument order. Call
12571 expand_psymtab.
12572 (new_psymtab): Set legacy_expand_psymtab.
12573 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
12574 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
12575 expand_psymtab.
12576 (dwarf2_psymtab::expand_psymtab): Rename from
12577 psymtab_to_symtab_1. Call expand_psymtab.
12578 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
12579 (dbx_end_psymtab): Likewise.
12580 (dbx_psymtab_to_symtab_1): Change argument order. Call
12581 expand_psymtab.
12582 (dbx_read_symtab): Call expand_psymtab.
12583 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
12584 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
12585 (ctf_psymtab::read_symtab): Call expand_psymtab.
12586
12587 2020-01-26 Tom Tromey <tom@tromey.com>
12588
12589 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
12590 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
12591 messages.
12592 * mdebugread.c (mdebug_read_symtab): Remove prints.
12593 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
12594 assert.
12595 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
12596
12597 2020-01-26 Tom Tromey <tom@tromey.com>
12598
12599 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
12600 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
12601 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
12602 legacy_symtab.
12603 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
12604 * psymtab.c (psymtab_to_symtab): Call method.
12605 (dump_psymtab): Update.
12606 * psympriv.h (struct partial_symtab): Add virtual destructor.
12607 <read_symtab>: New method.
12608 (struct legacy_symtab): New.
12609 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
12610 (struct pst_map) <pst>: Now a legacy_psymtab.
12611 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
12612 (new_psymtab): Use legacy_psymtab.
12613 * dwarf2read.h (struct dwarf2_psymtab): New.
12614 (struct dwarf2_per_cu_data) <psymtab>: Use it.
12615 * dwarf2read.c (dwarf2_create_include_psymtab)
12616 (dwarf2_build_include_psymtabs, create_type_unit_group)
12617 (create_partial_symtab, process_psymtab_comp_unit_reader)
12618 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
12619 (set_partial_user): Use dwarf2_psymtab.
12620 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
12621 (psymtab_to_symtab_1, process_full_comp_unit)
12622 (process_full_type_unit, dwarf2_ranges_read)
12623 (dwarf2_get_pc_bounds, psymtab_include_file_name)
12624 (dwarf_decode_lines): Use dwarf2_psymtab.
12625 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
12626 (add_address_entry_worker, write_one_signatured_type)
12627 (recursively_count_psymbols, recursively_write_psymbols)
12628 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
12629 (write_debug_names): Likewise.
12630 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
12631 <pst>: Now a legacy_psymtab.
12632 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
12633 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
12634 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
12635 * ctfread.c (struct ctf_psymtab): New.
12636 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
12637 ctf_psymtab.
12638 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
12639 (create_partial_symtab): Return a ctf_psymtab.
12640 (scan_partial_symbols): Update.
12641
12642 2020-01-26 Tom Tromey <tom@tromey.com>
12643
12644 * xcoffread.c (xcoff_start_psymtab): Use new.
12645 * psymtab.c (partial_symtab::partial_symtab): New constructor,
12646 renamed from start_psymtab_common.
12647 * psympriv.h (struct partial_symtab): Add new constructor.
12648 (start_psymtab_common): Don't declare.
12649 * mdebugread.c (parse_partial_symbols): Use new.
12650 * dwarf2read.c (create_partial_symtab): Use new.
12651 * dbxread.c (start_psymtab): Use new.
12652 * ctfread.c (create_partial_symtab): Use new.
12653
12654 2020-01-26 Tom Tromey <tom@tromey.com>
12655
12656 * xcoffread.c (xcoff_end_psymtab): Use new.
12657 * psymtab.c (start_psymtab_common): Use new.
12658 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
12659 Update.
12660 * psympriv.h (struct partial_symtab): Add parameters to
12661 constructor. Don't inline.
12662 (allocate_psymtab): Don't declare.
12663 * mdebugread.c (new_psymtab): Use new.
12664 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
12665 * dbxread.c (dbx_end_psymtab): Use new.
12666
12667 2020-01-26 Tom Tromey <tom@tromey.com>
12668
12669 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
12670 allocate_psymtab. Update documentation.
12671 * psymtab.c (psymtab_storage::install_psymtab): Rename from
12672 allocate_psymtab. Do not use new.
12673 (allocate_psymtab): Use new. Update.
12674
12675 2020-01-26 Tom Tromey <tom@tromey.com>
12676
12677 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
12678 * psymtab.c (psym_print_stats): Update.
12679 * psympriv.h (struct partial_symtab) <readin,
12680 psymtabs_addrmap_supported, anonymous>: Now bool.
12681 * mdebugread.c (psymtab_to_symtab_1): Update.
12682 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
12683 (build_type_psymtabs_reader, psymtab_to_symtab_1)
12684 (process_full_comp_unit, process_full_type_unit): Update.
12685 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
12686 * ctfread.c (psymtab_to_symtab): Update.
12687
12688 2020-01-26 Tom Tromey <tom@tromey.com>
12689
12690 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
12691 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
12692 * psymtab.c (psymtab_storage): Delete psymtabs.
12693 (psymtab_storage::allocate_psymtab): Use new.
12694 (psymtab_storage::discard_psymtab): Use delete.
12695 * psympriv.h (struct partial_symtab): Add constructor and
12696 initializers.
12697
12698 2020-01-26 Tom Tromey <tom@tromey.com>
12699
12700 * machoread.c: Do not include psympriv.h.
12701
12702 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12703
12704 * NEWS: Mention the new option and the set/show commands.
12705
12706 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12707
12708 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
12709 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
12710 (validate_exec_file): New variables, enums, functions.
12711 (exec_file_locate_attach, print_section_info): Style the filenames.
12712 (_initialize_exec): Install show_exec_file_mismatch_command and
12713 set_exec_file_mismatch_command.
12714 * gdbcore.h (validate_exec_file): Declare.
12715 * infcmd.c (attach_command): Call validate_exec_file.
12716 * remote.c ( remote_target::remote_add_inferior): Likewise.
12717
12718 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12719
12720 * frame.c (find_frame_sal): Move call to get_next_frame into more
12721 inner scope.
12722 * inline-frame.c (inilne_state) <inline_state>: Update argument
12723 types.
12724 (inilne_state) <skipped_symbol>: Rename to...
12725 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
12726 (skip_inline_frames): Build vector of skipped symbols and use this
12727 to reate the inline_state.
12728 (inline_skipped_symbol): Add a comment and some assertions, fetch
12729 skipped symbol from the list.
12730
12731 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12732
12733 * buildsym.c (lte_is_less_than): Delete.
12734 (buildsym_compunit::end_symtab_with_blockvector): Create local
12735 lambda function to sort line table entries, and use
12736 std::stable_sort instead of std::sort.
12737 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
12738 markers when looking for a previous line.
12739
12740 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12741
12742 * dwarf2read.c (lnp_state_machine::record_line): Include
12743 end_sequence parameter in debug print out. Record the line if we
12744 are at an end_sequence marker even if it's not the start of a
12745 statement.
12746 * symmisc.c (maintenance_print_one_line_table): Print end of
12747 sequence markers with 'END' not '0'.
12748
12749 2020-01-24 Pedro Alves <palves@redhat.com>
12750
12751 PR gdb/25410
12752 * thread.c (scoped_restore_current_thread::restore): Use
12753 switch_to_inferior_no_thread.
12754 * exec.c: Include "progspace-and-thread.h".
12755 (add_target_sections, remove_target_sections):
12756 scoped_restore_current_pspace_and_thread instead of
12757 scoped_restore_current_thread.
12758 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
12759 and aspace to the inferior before calling clone_program_space.
12760 Remove stale comment.
12761
12762 2020-01-24 Christian Biesinger <cbiesinger@google.com>
12763
12764 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
12765 (arm_netbsd_nat_target::fetch_registers): ...this.
12766 (arm_nbsd_nat_target::store_registers): Rename to...
12767 (arm_netbsd_nat_target::store_registers): ...this.
12768
12769 2020-01-24 Christian Biesinger <cbiesinger@google.com>
12770
12771 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12772 register_t.
12773
12774 2020-01-24 Christian Biesinger <cbiesinger@google.com>
12775
12776 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
12777 Update comment.
12778 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
12779 Likewise.
12780 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
12781 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
12782 the correct replacement (iterate_over_regset_sections).
12783 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
12784 Update comment.
12785
12786 2020-01-24 Graham Markall <graham.markall@embecosm.com>
12787
12788 PR gdb/23718
12789 * gdb/python/python.c (execute_gdb_command): Call
12790 async_enable_stdin in catch block.
12791
12792 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12793
12794 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
12795 SWITCH_THRU_ALL_UIS.
12796
12797 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12798
12799 PR tui/9765
12800 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
12801 comment, add extra parameter, and update to store previous symbol
12802 when appropriate.
12803 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
12804 add extra parameter.
12805 * tui/tui-disasm.c (tui_disassemble): Update header comment,
12806 remove unneeded parameter, add try/catch around gdb_print_insn,
12807 rewrite to add items to asm_lines vector.
12808 (tui_find_backward_disassembly_start_address): New function.
12809 (tui_find_disassembly_address): Updated throughout.
12810 (tui_disasm_window::set_contents): Update for changes to
12811 tui_disassemble.
12812 (tui_disasm_window::do_scroll_vertical): No need to adjust the
12813 number of lines to scroll.
12814
12815 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
12816
12817 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
12818 (SECT_OFF_DATA): Likewise.
12819 (SECT_OFF_RODATA): Likewise.
12820 (SECT_OFF_TEXT): Likewise.
12821 (SECT_OFF_BSS): Likewise.
12822 (struct objfile) <text_section_offset, data_section_offset>: New
12823 methods.
12824 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
12825 objfile::text_section_offset.
12826 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
12827 * coffread.c (coff_symtab_read): Likewise.
12828 (enter_linenos): Likewise.
12829 (process_coff_symbol): Likewise.
12830 * ctfread.c (get_objfile_text_range): Likewise.
12831 * dtrace-probe.c (dtrace_probe::get_relocated_address):
12832 Use objfile::data_section_offset.
12833 * dwarf2-frame.c (execute_cfa_program): Use
12834 objfile::text_section_offset.
12835 (dwarf2_frame_find_fde): Likewise.
12836 * dwarf2read.c (create_addrmap_from_index): Likewise.
12837 (create_addrmap_from_aranges): Likewise.
12838 (dw2_find_pc_sect_compunit_symtab): Likewise.
12839 (process_psymtab_comp_unit_reader): Likewise.
12840 (add_partial_symbol): Likewise.
12841 (add_partial_subprogram): Likewise.
12842 (process_full_comp_unit): Likewise.
12843 (read_file_scope): Likewise.
12844 (read_func_scope): Likewise.
12845 (read_lexical_block_scope): Likewise.
12846 (read_call_site_scope): Likewise.
12847 (dwarf2_rnglists_process): Likewise.
12848 (dwarf2_ranges_process): Likewise.
12849 (dwarf2_ranges_read): Likewise.
12850 (dwarf_decode_lines_1): Likewise.
12851 (new_symbol): Likewise.
12852 (dwarf2_fetch_die_loc_sect_off): Likewise.
12853 (dwarf2_per_cu_text_offset): Likewise.
12854 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
12855 * hppa-tdep.c (read_unwind_info): Likewise.
12856 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
12857 * psympriv.h (struct partial_symtab): Likewise.
12858 * psymtab.c (find_pc_sect_psymtab): Likewise.
12859 * solib-svr4.c (enable_break): Likewise.
12860 * stap-probe.c (relocate_address): Use
12861 objfile::data_section_offset.
12862 * xcoffread.c (enter_line_range): Use
12863 objfile::text_section_offset.
12864 (read_xcoff_symtab): Likewise.
12865
12866 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
12867
12868 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
12869 declaration to narrower scopes.
12870
12871 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
12872
12873 * darwin-nat.h (struct darwin_exception_msg, enum
12874 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
12875 Move up.
12876 (class darwin_nat_target) <wait_1, check_new_threads,
12877 decode_exception_message, decode_message, stop_inferior,
12878 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
12879 * darwin-nat.c (darwin_check_new_threads): Rename to...
12880 (darwin_nat_target::check_new_threads): ... this.
12881 (darwin_suspend_inferior_it): Remove.
12882 (darwin_decode_exception_message): Rename to...
12883 (darwin_nat_target::decode_exception_message): ... this.
12884 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
12885 (darwin_decode_message): Rename to...
12886 (darwin_nat_target::decode_message): ... this.
12887 (cancel_breakpoint): Rename to...
12888 (darwin_nat_target::cancel_breakpoint): ... this.
12889 (darwin_wait): Rename to...
12890 (darwin_nat_target::wait_1): ... this. Use range-based for loop
12891 instead of iterate_over_inferiors.
12892 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
12893 (darwin_stop_inferior): Rename to...
12894 (darwin_nat_target::stop_inferior): ... this.
12895 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
12896 (darwin_init_thread_list): Rename to...
12897 (darwin_nat_target::init_thread_list): ... this.
12898 (darwin_ptrace_him): Rename to...
12899 (darwin_nat_target::ptrace_him): ... this.
12900 (darwin_nat_target::create_inferior): Pass lambda function to
12901 fork_inferior.
12902 (darwin_nat_target::detach): Call stop_inferior instead of
12903 darwin_stop_inferior.
12904 * fork-inferior.h (fork_inferior): Change init_trace_fun
12905 parameter to gdb::function_view.
12906 * fork-inferior.c (fork_inferior): Likewise.
12907
12908 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
12909
12910 * i386-cygwin-tdep.c (core_process_module_section): Update.
12911 * windows-nat.c (struct lm_info_windows): Add text_offset.
12912 (windows_xfer_shared_libraries): Update.
12913 * windows-tdep.c (windows_xfer_shared_library):
12914 Add text_offset_cached argument.
12915 * windows-tdep.h (windows_xfer_shared_library): Update.
12916
12917 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
12918
12919 * gdbarch.sh: Add declaration for _initialize_gdbarch.
12920
12921 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
12922
12923 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
12924 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
12925 replace with range-based for.
12926 (gdbsim_interrupt_inferior): Remove.
12927 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
12928 with a range-based for. Inline code from
12929 gdbsim_interrupt_inferior.
12930
12931 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
12932
12933 * infrun.c (proceed): Fix indentation.
12934
12935 2020-01-21 Tom Tromey <tromey@adacore.com>
12936
12937 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
12938 * python/python.c (python_extension_ops): Update.
12939 (gdbpy_colorize): New function.
12940 * python/lib/gdb/__init__.py (colorize): New function.
12941 * extension.h (ext_lang_colorize): Declare.
12942 * extension.c (ext_lang_colorize): New function.
12943 * extension-priv.h (struct extension_language_ops) <colorize>: New
12944 member.
12945 * cli/cli-style.c (_initialize_cli_style): Update help text.
12946
12947 2020-01-21 Luis Machado <luis.machado@linaro.org>
12948
12949 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
12950 <cond>: Change type to bool.
12951 (aarch64_displaced_step_b_cond): Update cond to use bool type.
12952 (aarch64_displaced_step_cb): Likewise.
12953 (aarch64_displaced_step_tb): Likewise.
12954
12955 2020-01-21 Luis Machado <luis.machado@linaro.org>
12956
12957 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
12958 output.
12959
12960 2020-01-21 Luis Machado <luis.machado@linaro.org>
12961
12962 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
12963 <pc_adjust>: Adjust the documentation.
12964 (aarch64_displaced_step_fixup): Check if PC really moved before
12965 adjusting it.
12966
12967 2020-01-19 Tom Tromey <tom@tromey.com>
12968
12969 * disasm.c (~gdb_disassembler): New destructor.
12970 (gdb_buffered_insn_length): Call disassemble_free_target.
12971 * disasm.h (class gdb_disassembler): Declare destructor. Use
12972 DISABLE_COPY_AND_ASSIGN.
12973
12974 2020-01-19 Tom Tromey <tom@tromey.com>
12975
12976 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
12977 (die_reader_func_ftype): Remove.
12978 (cutu_reader): New class.
12979 (dw2_get_file_names_reader): Remove "data" parameter.
12980 (dw2_get_file_names): Use cutu_reader.
12981 (create_debug_type_hash_table): Update.
12982 (read_cutu_die_from_dwo): Update comment.
12983 (lookup_dwo_unit): Add dwo_name parameter.
12984 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
12985 die_reader_func_ftype and data parameters.
12986 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
12987 Remove die_reader_func_ftype and data parameters.
12988 (~cutu_reader): New; from init_cutu_and_read_dies.
12989 (cutu_reader::cutu_reader): Rename from
12990 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
12991 and data parameters.
12992 (init_cutu_and_read_dies_simple): Remove.
12993 (struct process_psymtab_comp_unit_data): Remove.
12994 (process_psymtab_comp_unit_reader): Remove data parameter; add
12995 want_partial_unit and pretend_language parameters.
12996 (process_psymtab_comp_unit): Use cutu_reader.
12997 (build_type_psymtabs_reader): Remove data parameter.
12998 (build_type_psymtabs_1): Use cutu_reader.
12999 (process_skeletonless_type_unit): Likewise.
13000 (load_partial_comp_unit_reader): Remove.
13001 (load_partial_comp_unit): Use cutu_reader.
13002 (load_full_comp_unit_reader): Remove.
13003 (load_full_comp_unit): Use cutu_reader.
13004 (struct create_dwo_cu_data): Remove.
13005 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
13006 dwo_unit parameters.
13007 (create_cus_hash_table): Use cutu_reader.
13008 (struct dwarf2_read_addr_index_data): Remove.
13009 (dwarf2_read_addr_index_reader): Remove.
13010 (dwarf2_read_addr_index): Use cutu_reader.
13011 (read_signatured_type_reader): Remove.
13012 (read_signatured_type): Use cutu_reader.
13013
13014 2020-01-19 Tom Tromey <tom@tromey.com>
13015
13016 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
13017 * tui/tui-wingeneral.h (class tui_suppress_output): New.
13018 (tui_wrefresh): Declare.
13019 * tui/tui-wingeneral.c (suppress_output): New global.
13020 (tui_suppress_output, ~tui_suppress_output): New constructor and
13021 destructor.
13022 (tui_wrefresh): New function.
13023 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
13024 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
13025 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
13026 method.
13027 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
13028 tui_wrefresh.
13029 (tui_data_window::no_refresh): New method.
13030 (tui_data_item_window::refresh_window): Call tui_wrefresh.
13031 (tui_reg_command): Use tui_suppress_output
13032 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
13033 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
13034 method.
13035 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
13036
13037 2020-01-19 Tom Tromey <tom@tromey.com>
13038
13039 * tui/tui-winsource.c (tui_update_source_windows_with_line):
13040 Handle case where symtab is null.
13041
13042 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
13043
13044 * linux-fork.c (one_fork_p): Simplify.
13045
13046 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
13047
13048 * top.c (struct qt_args): Remove.
13049 (kill_or_detach): Change return type to void, replace `void *`
13050 parameter with a proper one.
13051 (print_inferior_quit_action): Likewise.
13052 (quit_confirm): Use range-based for loop to iterate over inferiors.
13053 (quit_force): Likewise.
13054
13055 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
13056
13057 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
13058 `void *` parameter with proper parameters.
13059 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
13060 (print_one_inferior): Change return type to void, replace `void *`
13061 parameter with proper parameters.
13062 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
13063 inferiors.
13064 (get_other_inferior): Remove.
13065 (mi_cmd_remove_inferior): Use range-based loop to iterate over
13066 inferiors.
13067
13068 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
13069
13070 * mi/mi-interp.c (report_initial_inferior): Remove.
13071 (mi_interp::init): Use range-based for to iterate over inferiors.
13072
13073 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
13074
13075 * python/py-inferior.c (build_inferior_list): Remove.
13076 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
13077
13078 2020-01-16 Christian Biesinger <cbiesinger@google.com>
13079
13080 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
13081 (btrace_stitch_trace): Likewise.
13082 * charset.c (intermediate_encoding): Likewise (vaild).
13083 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
13084 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
13085 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
13086
13087 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
13088
13089 * windows-tdep.c (windows_get_tlb_type):
13090 Add rtl_user_process_parameters type.
13091
13092 2020-01-16 Pedro Alves <palves@redhat.com>
13093 Norbert Lange <nolange79@gmail.com>
13094
13095 PR build/24805
13096 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
13097 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
13098 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
13099 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
13100 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
13101 (ps_plog): Redeclare exported functions with default visibility.
13102
13103 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
13104
13105 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
13106 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
13107
13108 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
13109
13110 * infcmd.c (post_create_inferior): Use get_thread_regcache
13111 instead of get_current_regcache.
13112
13113 2020-01-14 Tom Tromey <tom@tromey.com>
13114
13115 PR symtab/12535:
13116 * python/python.c (gdbpy_decode_line): Treat empty string the same
13117 as no argument.
13118
13119 2020-01-14 Tom Tromey <tom@tromey.com>
13120
13121 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
13122
13123 2020-01-14 Tom Tromey <tom@tromey.com>
13124
13125 * nat/linux-btrace.c: Don't include <config.h>.
13126 * nat/linux-ptrace.c: Don't include <config.h>.
13127 * nat/x86-linux-dregs.c: Don't include <config.h>.
13128
13129 2020-01-14 Tom Tromey <tom@tromey.com>
13130
13131 * configure: Rebuild.
13132 * configure.ac: Move many checks to ../gdbsupport/common.m4.
13133
13134 2020-01-14 Tom Tromey <tom@tromey.com>
13135
13136 * nat/x86-linux-dregs.c: Include configh.h.
13137 * nat/linux-ptrace.c: Include configh.h.
13138 * nat/linux-btrace.c: Include configh.h.
13139 * defs.h: Include config.h, bfd.h.
13140 * configure.ac: Don't source common.host.
13141 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
13142 * configure: Rebuild.
13143 * acinclude.m4: Update path.
13144 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
13145 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
13146 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
13147 (CLIBS): Add LIBSUPPORT.
13148 (CDEPS): Likewise.
13149 (COMMON_SFILES): Remove gdbsupport files.
13150 (HFILES_NO_SRCDIR): Likewise.
13151 (stamp-version): Update path to create-version.sh.
13152 (ALLDEPFILES): Remove gdbsupport files.
13153
13154 2020-01-14 Tom Tromey <tom@tromey.com>
13155
13156 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
13157 USE_WIN32API when needed.
13158 * configure.ac (USE_WIN32API): Don't define.
13159 (WIN32LIBS): Use WIN32APILIBS.
13160 * configure: Rebuild.
13161
13162 2020-01-14 Tom Tromey <tom@tromey.com>
13163
13164 * configure: Rebuild.
13165 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
13166
13167 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
13168
13169 * skip.c (skip_function_command): Make skip w/o arguments use the
13170 name of the inlined function if pc is inside any inlined function.
13171
13172 2020-01-14 Luis Machado <luis.machado@linaro.org>
13173
13174 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
13175 * infrun.c (resume_1): Likewise.
13176 (handle_inferior_event): Remove stale comment.
13177 * linux-nat.c (linux_nat_target::resume): Update comments.
13178 (save_stop_reason): Likewise.
13179 (linux_nat_filter_event): Likewise.
13180 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
13181
13182 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
13183
13184 * elfread.c (record_minimal_symbol): Set section index to 0 for
13185 non-allocatable sections.
13186
13187
13188 2020-01-13 Ali Tamur <tamur@google.com>
13189
13190 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
13191 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
13192 to gdb::optional. Update comments.
13193 (dwo_file): Update comments.
13194 (read_attribute): Update API to take an additional out parameter,
13195 need_reprocess. This is used to mark attributes that need other
13196 attributes (e.g. str_offsets_base) for correct computation which may not
13197 have been read yet.
13198 (read_attribute_reprocess): New function declaration.
13199 (read_addr_index): Likewise.
13200 (read_dwo_str_index): Likewise.
13201 (read_stub_str_index): Likewise.
13202 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
13203 (lookup_addr_base): New function definition.
13204 (lookup_ranges_base): Likewise.
13205 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
13206 lookup_ranges_base.
13207 (init_cutu_and_read_dies): Update comments.
13208 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
13209 unit. This is used to inherit parent's str_offsets_base and addr_base.
13210 Update comments.
13211 (init_cutu_and_read_dies_simple): Reflect API changes.
13212 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
13213 (create_cus_hash_table): Change API to take parent compile unit.
13214 Reflect API changes.
13215 (open_and_init_dwo_file): Reflect API changes.
13216 (dwarf2_get_pc_bounds): Update comments.
13217 (dwarf2_record_block_ranges): Likewise.
13218 (read_full_die_1): Change implementation to reprocess attributes that
13219 need str_offsets_base and addr_base.
13220 (partial_die_info::read): Likewise.
13221 (read_attribute_reprocess): New function definition.
13222 (read_attribute_value): Change API to take an additional out parameter,
13223 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
13224 when a non-dwo compile unit has index based attributes.
13225 (read_attribute): Reflect API changes.
13226 (read_addr_index_1): Reflect API changes. Update comments.
13227 (dwarf2_read_addr_index_data): Reflect API changes.
13228 (dwarf2_read_addr_index): Likewise.
13229 (read_str_index): Change API and implementation. This becomes a helper
13230 to be used by the new string index related methods. Update error
13231 message and comments.
13232 (read_dwo_str_index): New function definition.
13233 (read_stub_str_index): Likewise.
13234 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
13235 * symfile.h (dwarf2_debug_sections): Likewise.
13236 * xcoffread.c (dwarf2_debug_sections): Likewise.
13237
13238 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
13239
13240 * gdbcore.h (struct core_fns) <core_read_registers>: Change
13241 core_reg_sect type to gdb_byte *.
13242 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
13243 * cris-tdep.c (fetch_core_registers): Likewise.
13244 * corelow.c (core_target::get_core_register_section): Change
13245 type of `contents` to gdb::byte_vector.
13246
13247 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
13248
13249 * tui/tui-wingeneral.c (box_win): Position the title in the center
13250 of the border.
13251
13252 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13253
13254 * corelow.c (core_target::get_core_register_section): Use
13255 std::vector instead of alloca.
13256
13257 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
13258
13259 * warning.m4: Add -Wmissing-declarations to build_warnings.
13260 * configure: Re-generate.
13261
13262 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
13263
13264 * python/python.c (init__gdb_module): Add declaration.
13265
13266 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
13267
13268 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
13269 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
13270 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
13271 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
13272 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
13273 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
13274 * ada-exp.y (_initialize_ada_exp): Add declaration.
13275 * ada-lang.c (_initialize_ada_language): Add declaration.
13276 * ada-tasks.c (_initialize_tasks): Add declaration.
13277 * agent.c (_initialize_agent): Add declaration.
13278 * aix-thread.c (_initialize_aix_thread): Add declaration.
13279 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
13280 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
13281 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
13282 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
13283 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
13284 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
13285 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
13286 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
13287 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
13288 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
13289 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
13290 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
13291 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
13292 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
13293 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
13294 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
13295 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
13296 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
13297 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
13298 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
13299 * annotate.c (_initialize_annotate): Add declaration.
13300 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
13301 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
13302 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
13303 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
13304 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
13305 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
13306 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
13307 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
13308 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
13309 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
13310 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
13311 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
13312 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
13313 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
13314 * auto-load.c (_initialize_auto_load): Add declaration.
13315 * auxv.c (_initialize_auxv): Add declaration.
13316 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
13317 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
13318 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
13319 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
13320 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
13321 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
13322 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
13323 * breakpoint.c (_initialize_breakpoint): Add declaration.
13324 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
13325 * btrace.c (_initialize_btrace): Add declaration.
13326 * charset.c (_initialize_charset): Add declaration.
13327 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
13328 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
13329 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
13330 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
13331 * cli/cli-script.c (_initialize_cli_script): Add declaration.
13332 * cli/cli-style.c (_initialize_cli_style): Add declaration.
13333 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
13334 * coffread.c (_initialize_coffread): Add declaration.
13335 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
13336 * compile/compile.c (_initialize_compile): Add declaration.
13337 * complaints.c (_initialize_complaints): Add declaration.
13338 * completer.c (_initialize_completer): Add declaration.
13339 * copying.c (_initialize_copying): Add declaration.
13340 * corefile.c (_initialize_core): Add declaration.
13341 * corelow.c (_initialize_corelow): Add declaration.
13342 * cp-abi.c (_initialize_cp_abi): Add declaration.
13343 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
13344 * cp-support.c (_initialize_cp_support): Add declaration.
13345 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
13346 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
13347 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
13348 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
13349 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
13350 * ctfread.c (_initialize_ctfread): Add declaration.
13351 * d-lang.c (_initialize_d_language): Add declaration.
13352 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
13353 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
13354 * dbxread.c (_initialize_dbxread): Add declaration.
13355 * dcache.c (_initialize_dcache): Add declaration.
13356 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
13357 * disasm.c (_initialize_disasm): Add declaration.
13358 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
13359 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
13360 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
13361 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
13362 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
13363 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
13364 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
13365 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
13366 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
13367 * elfread.c (_initialize_elfread): Add declaration.
13368 * exec.c (_initialize_exec): Add declaration.
13369 * extension.c (_initialize_extension): Add declaration.
13370 * f-lang.c (_initialize_f_language): Add declaration.
13371 * f-valprint.c (_initialize_f_valprint): Add declaration.
13372 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
13373 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
13374 * filesystem.c (_initialize_filesystem): Add declaration.
13375 * findcmd.c (_initialize_mem_search): Add declaration.
13376 * findvar.c (_initialize_findvar): Add declaration.
13377 * fork-child.c (_initialize_fork_child): Add declaration.
13378 * frame-base.c (_initialize_frame_base): Add declaration.
13379 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
13380 * frame.c (_initialize_frame): Add declaration.
13381 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
13382 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
13383 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
13384 * gcore.c (_initialize_gcore): Add declaration.
13385 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
13386 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
13387 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
13388 * gdbarch.c (_initialize_gdbarch): Add declaration.
13389 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
13390 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
13391 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
13392 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
13393 * go-lang.c (_initialize_go_language): Add declaration.
13394 * go32-nat.c (_initialize_go32_nat): Add declaration.
13395 * guile/guile.c (_initialize_guile): Add declaration.
13396 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
13397 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
13398 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
13399 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
13400 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
13401 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
13402 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
13403 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
13404 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
13405 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
13406 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
13407 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
13408 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
13409 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
13410 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
13411 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
13412 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
13413 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
13414 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
13415 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
13416 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
13417 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
13418 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
13419 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
13420 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
13421 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
13422 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
13423 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
13424 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
13425 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
13426 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
13427 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
13428 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
13429 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
13430 * infcall.c (_initialize_infcall): Add declaration.
13431 * infcmd.c (_initialize_infcmd): Add declaration.
13432 * inflow.c (_initialize_inflow): Add declaration.
13433 * infrun.c (_initialize_infrun): Add declaration.
13434 * interps.c (_initialize_interpreter): Add declaration.
13435 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
13436 * jit.c (_initialize_jit): Add declaration.
13437 * language.c (_initialize_language): Add declaration.
13438 * linux-fork.c (_initialize_linux_fork): Add declaration.
13439 * linux-nat.c (_initialize_linux_nat): Add declaration.
13440 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
13441 * linux-thread-db.c (_initialize_thread_db): Add declaration.
13442 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
13443 * m2-lang.c (_initialize_m2_language): Add declaration.
13444 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
13445 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
13446 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
13447 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
13448 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
13449 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
13450 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
13451 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
13452 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
13453 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
13454 * machoread.c (_initialize_machoread): Add declaration.
13455 * macrocmd.c (_initialize_macrocmd): Add declaration.
13456 * macroscope.c (_initialize_macroscope): Add declaration.
13457 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
13458 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
13459 * maint.c (_initialize_maint_cmds): Add declaration.
13460 * mdebugread.c (_initialize_mdebugread): Add declaration.
13461 * memattr.c (_initialize_mem): Add declaration.
13462 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
13463 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
13464 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
13465 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
13466 * mi/mi-main.c (_initialize_mi_main): Add declaration.
13467 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
13468 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
13469 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
13470 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
13471 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
13472 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
13473 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
13474 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
13475 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
13476 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
13477 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
13478 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
13479 * mipsread.c (_initialize_mipsread): Add declaration.
13480 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
13481 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
13482 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
13483 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
13484 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
13485 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
13486 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
13487 * nto-procfs.c (_initialize_procfs): Add declaration.
13488 * objc-lang.c (_initialize_objc_language): Add declaration.
13489 * observable.c (_initialize_observer): Add declaration.
13490 * opencl-lang.c (_initialize_opencl_language): Add declaration.
13491 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
13492 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
13493 * osabi.c (_initialize_gdb_osabi): Add declaration.
13494 * osdata.c (_initialize_osdata): Add declaration.
13495 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
13496 * parse.c (_initialize_parse): Add declaration.
13497 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
13498 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
13499 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
13500 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
13501 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
13502 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
13503 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
13504 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
13505 * printcmd.c (_initialize_printcmd): Add declaration.
13506 * probe.c (_initialize_probe): Add declaration.
13507 * proc-api.c (_initialize_proc_api): Add declaration.
13508 * proc-events.c (_initialize_proc_events): Add declaration.
13509 * proc-service.c (_initialize_proc_service): Add declaration.
13510 * procfs.c (_initialize_procfs): Add declaration.
13511 * producer.c (_initialize_producer): Add declaration.
13512 * psymtab.c (_initialize_psymtab): Add declaration.
13513 * python/python.c (_initialize_python): Add declaration.
13514 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
13515 * record-btrace.c (_initialize_record_btrace): Add declaration.
13516 * record-full.c (_initialize_record_full): Add declaration.
13517 * record.c (_initialize_record): Add declaration.
13518 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
13519 * regcache.c (_initialize_regcache): Add declaration.
13520 * reggroups.c (_initialize_reggroup): Add declaration.
13521 * remote-notif.c (_initialize_notif): Add declaration.
13522 * remote-sim.c (_initialize_remote_sim): Add declaration.
13523 * remote.c (_initialize_remote): Add declaration.
13524 * reverse.c (_initialize_reverse): Add declaration.
13525 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
13526 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
13527 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
13528 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
13529 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
13530 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
13531 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
13532 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
13533 Add declaration.
13534 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
13535 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
13536 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
13537 * rust-exp.y (_initialize_rust_exp): Add declaration.
13538 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
13539 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
13540 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
13541 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
13542 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
13543 * score-tdep.c (_initialize_score_tdep): Add declaration.
13544 * ser-go32.c (_initialize_ser_dos): Add declaration.
13545 * ser-mingw.c (_initialize_ser_windows): Add declaration.
13546 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
13547 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
13548 * ser-uds.c (_initialize_ser_socket): Add declaration.
13549 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
13550 * serial.c (_initialize_serial): Add declaration.
13551 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
13552 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
13553 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
13554 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
13555 * skip.c (_initialize_step_skip): Add declaration.
13556 * sol-thread.c (_initialize_sol_thread): Add declaration.
13557 * solib-aix.c (_initialize_solib_aix): Add declaration.
13558 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
13559 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
13560 * solib-frv.c (_initialize_frv_solib): Add declaration.
13561 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
13562 * solib-target.c (_initialize_solib_target): Add declaration.
13563 * solib.c (_initialize_solib): Add declaration.
13564 * source-cache.c (_initialize_source_cache): Add declaration.
13565 * source.c (_initialize_source): Add declaration.
13566 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
13567 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
13568 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
13569 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
13570 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
13571 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
13572 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
13573 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
13574 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
13575 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
13576 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
13577 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
13578 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
13579 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
13580 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
13581 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
13582 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
13583 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
13584 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
13585 * stabsread.c (_initialize_stabsread): Add declaration.
13586 * stack.c (_initialize_stack): Add declaration.
13587 * stap-probe.c (_initialize_stap_probe): Add declaration.
13588 * std-regs.c (_initialize_frame_reg): Add declaration.
13589 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
13590 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
13591 * symfile.c (_initialize_symfile): Add declaration.
13592 * symmisc.c (_initialize_symmisc): Add declaration.
13593 * symtab.c (_initialize_symtab): Add declaration.
13594 * target.c (_initialize_target): Add declaration.
13595 * target-connection.c (_initialize_target_connection): Add
13596 declaration.
13597 * target-dcache.c (_initialize_target_dcache): Add declaration.
13598 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
13599 * thread.c (_initialize_thread): Add declaration.
13600 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
13601 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
13602 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
13603 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
13604 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
13605 * tracectf.c (_initialize_ctf): Add declaration.
13606 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
13607 * tracefile.c (_initialize_tracefile): Add declaration.
13608 * tracepoint.c (_initialize_tracepoint): Add declaration.
13609 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
13610 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
13611 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
13612 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
13613 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
13614 * tui/tui-win.c (_initialize_tui_win): Add declaration.
13615 * tui/tui.c (_initialize_tui): Add declaration.
13616 * typeprint.c (_initialize_typeprint): Add declaration.
13617 * ui-style.c (_initialize_ui_style): Add declaration.
13618 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
13619 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
13620 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
13621 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
13622 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
13623 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
13624 * unittests/filtered_iterator-selftests.c
13625 (_initialize_filtered_iterator_selftests): Add declaration.
13626 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
13627 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
13628 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
13629 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
13630 * unittests/main-thread-selftests.c
13631 (_initialize_main_thread_selftests): Add declaration.
13632 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
13633 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
13634 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
13635 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
13636 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
13637 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
13638 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
13639 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
13640 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
13641 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
13642 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
13643 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
13644 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
13645 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
13646 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
13647 declaration.
13648 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
13649 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
13650 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
13651 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
13652 * user-regs.c (_initialize_user_regs): Add declaration.
13653 * utils.c (_initialize_utils): Add declaration.
13654 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
13655 * valops.c (_initialize_valops): Add declaration.
13656 * valprint.c (_initialize_valprint): Add declaration.
13657 * value.c (_initialize_values): Add declaration.
13658 * varobj.c (_initialize_varobj): Add declaration.
13659 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
13660 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
13661 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
13662 * windows-nat.c (_initialize_windows_nat): Add declaration.
13663 (_initialize_check_for_gdb_ini): Add declaration.
13664 (_initialize_loadable): Add declaration.
13665 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
13666 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
13667 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
13668 * xcoffread.c (_initialize_xcoffread): Add declaration.
13669 * xml-support.c (_initialize_xml_support): Add declaration.
13670 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
13671 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
13672 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
13673 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
13674
13675 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13676
13677 * regformats/regdat.sh: Generate declaration for init function.
13678
13679 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13680
13681 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
13682 up.
13683 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
13684 close_one_inferior>: New methods.
13685 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
13686 pass down target to find_inferior_pid.
13687 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
13688 Pass down target to find_inferior_ptid.
13689 (gdbsim_target::create_inferior): Pass down target to
13690 add_thread_silent.
13691 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
13692 target down to find_inferior_ptid and switch_to_thread.
13693 (gdbsim_target::close): Update to call close_one_inferior.
13694 (struct resume_data): Remove.
13695 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
13696 directly, rather than through a void pointer.
13697 (gdbsim_target::resume): Update to call resume_one_inferior.
13698
13699 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
13700
13701 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
13702
13703 2020-01-12 Pedro Alves <palves@redhat.com>
13704
13705 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
13706 directly for the current inferior instead of
13707 discard_all_inferiors.
13708 (discard_all_inferiors): Delete.
13709
13710 2020-01-11 Tom Tromey <tom@tromey.com>
13711
13712 * tui/tui-wingeneral.c (box_win): Check cli_styling.
13713 * tui/tui-winsource.c (tui_source_window_base::refill): Use
13714 deprecated_safe_get_selected_frame.
13715
13716 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13717
13718 * inferior.c (print_inferior): Switch inferior before printing it.
13719
13720 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
13721 Pedro Alves <palves@redhat.com>
13722
13723 * progspace-and-thread.c (switch_to_program_space_and_thread):
13724 Assert there's an inferior for PSPACE. Use
13725 switch_to_inferior_no_thread to switch the inferior too.
13726 * progspace.c (program_space::~program_space): Call
13727 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
13728 (program_space::free_all_objfiles): Don't call clear_symtab_users
13729 here.
13730 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
13731
13732 2020-01-10 Pedro Alves <palves@redhat.com>
13733
13734 * NEWS: Mention multi-target debugging, "info connections", and
13735 "add-inferior -no-connection".
13736
13737 2020-01-10 Pedro Alves <palves@redhat.com>
13738
13739 * infrun.c: Include "target-connection.h".
13740 (check_multi_target_resumption): New.
13741 (proceed): Call it.
13742 * target-connection.c (make_target_connection_string): Make
13743 extern.
13744 * target-connection.h (make_target_connection_string): Declare.
13745
13746 2020-01-10 Pedro Alves <palves@redhat.com>
13747
13748 * Makefile.in (COMMON_SFILES): Add target-connection.c.
13749 * inferior.c (uiout_field_connection): New function.
13750 (print_inferior): Add new "connection-id" column.
13751 (add_inferior_command): Show connection number/string of added
13752 inferior.
13753 * process-stratum-target.h
13754 (process_stratum_target::connection_string): New virtual method.
13755 (process_stratum_target::connection_number): New field.
13756 * remote.c (remote_target::connection_string): New override.
13757 * target-connection.c: New file.
13758 * target-connection.h: New file.
13759 * target.c (decref_target): Remove process_stratum targets from
13760 the connection list.
13761 (target_stack::push): Add process_stratum targets to the
13762 connection list.
13763
13764 2020-01-10 Pedro Alves <palves@redhat.com>
13765
13766 Revert:
13767 2016-04-12 Pedro Alves <palves@redhat.com>
13768 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
13769 Remove references to name.
13770 * serial.h (struct serial) <name>: Delete.
13771
13772 2020-01-10 Pedro Alves <palves@redhat.com>
13773
13774 * gdbarch-selftests.c (register_to_value_test): Remove "target
13775 already pushed" check.
13776
13777 2020-01-10 Pedro Alves <palves@redhat.com>
13778 John Baldwin <jhb@FreeBSD.org>
13779
13780 * aarch64-linux-nat.c
13781 (aarch64_linux_nat_target::thread_architecture): Adjust.
13782 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
13783 (task_command_1): Likewise.
13784 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
13785 (aix_thread_target::wait, aix_thread_target::fetch_registers)
13786 (aix_thread_target::store_registers)
13787 (aix_thread_target::thread_alive): Adjust.
13788 * amd64-fbsd-tdep.c: Include "inferior.h".
13789 (amd64fbsd_get_thread_local_address): Pass down target.
13790 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
13791 thread's gdbarch instead of target_gdbarch.
13792 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
13793 get_last_target_status.
13794 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
13795 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
13796 inferiors.
13797 (update_inserted_breakpoint_locations): Skip if inferiors with no
13798 execution.
13799 (update_global_location_list): When handling moribund locations,
13800 find representative inferior for location's pspace, and use thread
13801 count of its process_stratum target.
13802 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
13803 * bsd-uthread.c (bsd_uthread_target::wait): Use
13804 as_process_stratum_target and adjust thread_change_ptid and
13805 add_thread calls.
13806 (bsd_uthread_target::update_thread_list): Use
13807 as_process_stratum_target and adjust find_thread_ptid,
13808 thread_change_ptid and add_thread calls.
13809 * btrace.c (maint_btrace_packet_history_cmd): Adjust
13810 find_thread_ptid call.
13811 * corelow.c (add_to_thread_list): Adjust add_thread call.
13812 (core_target_open): Adjust add_thread_silent and thread_count
13813 calls.
13814 (core_target::pid_to_str): Adjust find_inferior_ptid call.
13815 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
13816 * event-top.c (async_disconnect): Pop targets from all inferiors.
13817 * exec.c (add_target_sections): Push exec target on all inferiors
13818 sharing the program space.
13819 (remove_target_sections): Remove the exec target from all
13820 inferiors sharing the program space.
13821 (exec_on_vfork): New.
13822 * exec.h (exec_on_vfork): Declare.
13823 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
13824 Pass it down.
13825 (fbsd_nat_target::update_thread_list): Adjust.
13826 (fbsd_nat_target::resume): Adjust.
13827 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
13828 down.
13829 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
13830 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
13831 get_thread_arch_regcache call.
13832 * fork-child.c (gdb_startup_inferior): Pass target down to
13833 startup_inferior and set_executing.
13834 * gdbthread.h (struct process_stratum_target): Forward declare.
13835 (add_thread, add_thread_silent, add_thread_with_info)
13836 (in_thread_list): Add process_stratum_target parameter.
13837 (find_thread_ptid(inferior*, ptid_t)): New overload.
13838 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
13839 parameter.
13840 (all_threads()): Delete overload.
13841 (all_threads, all_non_exited_threads): Add process_stratum_target
13842 parameter.
13843 (all_threads_safe): Use brace initialization.
13844 (thread_count): Add process_stratum_target parameter.
13845 (set_resumed, set_running, set_stop_requested, set_executing)
13846 (threads_are_executing, finish_thread_state): Add
13847 process_stratum_target parameter.
13848 (switch_to_thread): Use is_current_thread.
13849 * i386-fbsd-tdep.c: Include "inferior.h".
13850 (i386fbsd_get_thread_local_address): Pass down target.
13851 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
13852 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
13853 have_inferiors check.
13854 * inf-ptrace.c (inf_ptrace_target::create_inferior)
13855 (inf_ptrace_target::attach): Adjust.
13856 * infcall.c (run_inferior_call): Adjust.
13857 * infcmd.c (run_command_1): Pass target to
13858 scoped_finish_thread_state.
13859 (proceed_thread_callback): Skip inferiors with no execution.
13860 (continue_command): Rename 'all_threads' local to avoid hiding
13861 'all_threads' function. Adjust get_last_target_status call.
13862 (prepare_one_step): Adjust set_running call.
13863 (signal_command): Use user_visible_resume_target. Compare thread
13864 pointers instead of inferior_ptid.
13865 (info_program_command): Adjust to pass down target.
13866 (attach_command): Mark target's 'thread_executing' flag.
13867 (stop_current_target_threads_ns): New, factored out from ...
13868 (interrupt_target_1): ... this. Switch inferior before making
13869 target calls.
13870 * inferior-iter.h
13871 (struct all_inferiors_iterator, struct all_inferiors_range)
13872 (struct all_inferiors_safe_range)
13873 (struct all_non_exited_inferiors_range): Filter on
13874 process_stratum_target too. Remove explicit.
13875 * inferior.c (inferior::inferior): Push dummy target on target
13876 stack.
13877 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
13878 Add process_stratum_target parameter, and pass it down.
13879 (have_live_inferiors): Adjust.
13880 (switch_to_inferior_and_push_target): New.
13881 (add_inferior_command, clone_inferior_command): Handle
13882 "-no-connection" parameter. Use
13883 switch_to_inferior_and_push_target.
13884 (_initialize_inferior): Mention "-no-connection" option in
13885 the help of "add-inferior" and "clone-inferior" commands.
13886 * inferior.h: Include "process-stratum-target.h".
13887 (interrupt_target_1): Use bool.
13888 (struct inferior) <push_target, unpush_target, target_is_pushed,
13889 find_target_beneath, top_target, process_target, target_at,
13890 m_stack>: New.
13891 (discard_all_inferiors): Delete.
13892 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
13893 (all_inferiors, all_non_exited_inferiors): Add
13894 process_stratum_target parameter.
13895 * infrun.c: Include "gdb_select.h" and <unordered_map>.
13896 (target_last_proc_target): New global.
13897 (follow_fork_inferior): Push target on new inferior. Pass target
13898 to add_thread_silent. Call exec_on_vfork. Handle target's
13899 reference count.
13900 (follow_fork): Adjust get_last_target_status call. Also consider
13901 target.
13902 (follow_exec): Push target on new inferior.
13903 (struct execution_control_state) <target>: New field.
13904 (user_visible_resume_target): New.
13905 (do_target_resume): Call target_async.
13906 (resume_1): Set target's threads_executing flag. Consider resume
13907 target.
13908 (commit_resume_all_targets): New.
13909 (proceed): Also consider resume target. Skip threads of inferiors
13910 with no execution. Commit resumtion in all targets.
13911 (start_remote): Pass current inferior to wait_for_inferior.
13912 (infrun_thread_stop_requested): Consider target as well. Pass
13913 thread_info pointer to clear_inline_frame_state instead of ptid.
13914 (infrun_thread_thread_exit): Consider target as well.
13915 (random_pending_event_thread): New inferior parameter. Use it.
13916 (do_target_wait): Rename to ...
13917 (do_target_wait_1): ... this. Add inferior parameter, and pass it
13918 down.
13919 (threads_are_resumed_pending_p, do_target_wait): New.
13920 (prepare_for_detach): Adjust calls.
13921 (wait_for_inferior): New inferior parameter. Handle it. Use
13922 do_target_wait_1 instead of do_target_wait.
13923 (fetch_inferior_event): Adjust. Switch to representative
13924 inferior. Pass target down.
13925 (set_last_target_status): Add process_stratum_target parameter.
13926 Save target in global.
13927 (get_last_target_status): Add process_stratum_target parameter and
13928 handle it.
13929 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
13930 (context_switch): Check inferior_ptid == null_ptid before calling
13931 inferior_thread().
13932 (get_inferior_stop_soon): Pass down target.
13933 (wait_one): Rename to ...
13934 (poll_one_curr_target): ... this.
13935 (struct wait_one_event): New.
13936 (wait_one): New.
13937 (stop_all_threads): Adjust.
13938 (handle_no_resumed, handle_inferior_event): Adjust to consider the
13939 event's target.
13940 (switch_back_to_stepped_thread): Also consider target.
13941 (print_stop_event): Update.
13942 (normal_stop): Update. Also consider the resume target.
13943 * infrun.h (wait_for_inferior): Remove declaration.
13944 (user_visible_resume_target): New declaration.
13945 (get_last_target_status, set_last_target_status): New
13946 process_stratum_target parameter.
13947 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
13948 process_stratum_target parameter, and use it.
13949 (clear_inline_frame_state (thread_info*)): New.
13950 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
13951 process_stratum_target parameter.
13952 (clear_inline_frame_state (thread_info*)): Declare.
13953 * linux-fork.c (delete_checkpoint_command): Pass target down to
13954 find_thread_ptid.
13955 (checkpoint_command): Adjust.
13956 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
13957 instead of just tweaking inferior_ptid.
13958 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
13959 (exit_lwp): Pass target down to find_thread_ptid.
13960 (attach_proc_task_lwp_callback): Pass target down to
13961 add_thread/set_running/set_executing.
13962 (linux_nat_target::attach): Pass target down to
13963 thread_change_ptid.
13964 (get_detach_signal): Pass target down to find_thread_ptid.
13965 Consider last target status's target.
13966 (linux_resume_one_lwp_throw, resume_lwp)
13967 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
13968 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
13969 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
13970 (linux_nat_target::async_wait_fd): New.
13971 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
13972 target down.
13973 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
13974 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
13975 * linux-thread-db.c (struct thread_db_info::process_target): New
13976 field.
13977 (add_thread_db_info): Save target.
13978 (get_thread_db_info): New process_stratum_target parameter. Also
13979 match target.
13980 (delete_thread_db_info): New process_stratum_target parameter.
13981 Also match target.
13982 (thread_from_lwp): Adjust to pass down target.
13983 (thread_db_notice_clone): Pass down target.
13984 (check_thread_db_callback): Pass down target.
13985 (try_thread_db_load_1): Always push the thread_db target.
13986 (try_thread_db_load, record_thread): Pass target down.
13987 (thread_db_target::detach): Pass target down. Always unpush the
13988 thread_db target.
13989 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
13990 target down. Always unpush the thread_db target.
13991 (find_new_threads_callback, thread_db_find_new_threads_2)
13992 (thread_db_target::update_thread_list): Pass target down.
13993 (thread_db_target::pid_to_str): Pass current inferior down.
13994 (thread_db_target::get_thread_local_address): Pass target down.
13995 (thread_db_target::resume, maintenance_check_libthread_db): Pass
13996 target down.
13997 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
13998 * procfs.c (procfs_target::procfs_init_inferior): Declare.
13999 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
14000 (procfs_init_inferior): Rename to ...
14001 (procfs_target::procfs_init_inferior): ... this and adjust.
14002 (procfs_target::create_inferior, procfs_notice_thread)
14003 (procfs_do_thread_registers): Adjust.
14004 * ppc-fbsd-tdep.c: Include "inferior.h".
14005 (ppcfbsd_get_thread_local_address): Pass down target.
14006 * proc-service.c (ps_xfer_memory): Switch current inferior and
14007 program space as well.
14008 (get_ps_regcache): Pass target down.
14009 * process-stratum-target.c
14010 (process_stratum_target::thread_address_space)
14011 (process_stratum_target::thread_architecture): Pass target down.
14012 * process-stratum-target.h
14013 (process_stratum_target::threads_executing): New field.
14014 (as_process_stratum_target): New.
14015 * ravenscar-thread.c
14016 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
14017 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
14018 down.
14019 * record-btrace.c (record_btrace_target::info_record): Adjust.
14020 (record_btrace_target::record_method)
14021 (record_btrace_target::record_is_replaying)
14022 (record_btrace_target::fetch_registers)
14023 (get_thread_current_frame_id, record_btrace_target::resume)
14024 (record_btrace_target::wait, record_btrace_target::stop): Pass
14025 target down.
14026 * record-full.c (record_full_wait_1): Switch to event thread.
14027 Pass target down.
14028 * regcache.c (regcache::regcache)
14029 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
14030 process_stratum_target parameter and handle it.
14031 (current_thread_target): New global.
14032 (get_thread_regcache): Add process_stratum_target parameter and
14033 handle it. Switch inferior before calling target method.
14034 (get_thread_regcache): Pass target down.
14035 (get_thread_regcache_for_ptid): Pass target down.
14036 (registers_changed_ptid): Add process_stratum_target parameter and
14037 handle it.
14038 (registers_changed_thread, registers_changed): Pass target down.
14039 (test_get_thread_arch_aspace_regcache): New.
14040 (current_regcache_test): Define a couple local test_target_ops
14041 instances and use them for testing.
14042 (readwrite_regcache): Pass process_stratum_target parameter.
14043 (cooked_read_test, cooked_write_test): Pass mock_target down.
14044 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
14045 (get_thread_arch_aspace_regcache): Add process_stratum_target
14046 parameter.
14047 (regcache::target): New method.
14048 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
14049 (regcache::registers_changed_ptid): Add process_stratum_target
14050 parameter.
14051 (regcache::m_target): New field.
14052 (registers_changed_ptid): Add process_stratum_target parameter.
14053 * remote.c (remote_state::supports_vCont_probed): New field.
14054 (remote_target::async_wait_fd): New method.
14055 (remote_unpush_and_throw): Add remote_target parameter.
14056 (get_current_remote_target): Adjust.
14057 (remote_target::remote_add_inferior): Push target.
14058 (remote_target::remote_add_thread)
14059 (remote_target::remote_notice_new_inferior)
14060 (get_remote_thread_info): Pass target down.
14061 (remote_target::update_thread_list): Skip threads of inferiors
14062 bound to other targets. (remote_target::close): Don't discard
14063 inferiors. (remote_target::add_current_inferior_and_thread)
14064 (remote_target::process_initial_stop_replies)
14065 (remote_target::start_remote)
14066 (remote_target::remote_serial_quit_handler): Pass down target.
14067 (remote_target::remote_unpush_target): New remote_target
14068 parameter. Unpush the target from all inferiors.
14069 (remote_target::remote_unpush_and_throw): New remote_target
14070 parameter. Pass it down.
14071 (remote_target::open_1): Check whether the current inferior has
14072 execution instead of checking whether any inferior is live. Pass
14073 target down.
14074 (remote_target::remote_detach_1): Pass down target. Use
14075 remote_unpush_target.
14076 (extended_remote_target::attach): Pass down target.
14077 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
14078 (remote_target::append_resumption): Pass down target.
14079 (remote_target::append_pending_thread_resumptions)
14080 (remote_target::remote_resume_with_hc, remote_target::resume)
14081 (remote_target::commit_resume): Pass down target.
14082 (remote_target::remote_stop_ns): Check supports_vCont_probed.
14083 (remote_target::interrupt_query)
14084 (remote_target::remove_new_fork_children)
14085 (remote_target::check_pending_events_prevent_wildcard_vcont)
14086 (remote_target::remote_parse_stop_reply)
14087 (remote_target::process_stop_reply): Pass down target.
14088 (first_remote_resumed_thread): New remote_target parameter. Pass
14089 it down.
14090 (remote_target::wait_as): Pass down target.
14091 (unpush_and_perror): New remote_target parameter. Pass it down.
14092 (remote_target::readchar, remote_target::remote_serial_write)
14093 (remote_target::getpkt_or_notif_sane_1)
14094 (remote_target::kill_new_fork_children, remote_target::kill): Pass
14095 down target.
14096 (remote_target::mourn_inferior): Pass down target. Use
14097 remote_unpush_target.
14098 (remote_target::core_of_thread)
14099 (remote_target::remote_btrace_maybe_reopen): Pass down target.
14100 (remote_target::pid_to_exec_file)
14101 (remote_target::thread_handle_to_thread_info): Pass down target.
14102 (remote_target::async_wait_fd): New.
14103 * riscv-fbsd-tdep.c: Include "inferior.h".
14104 (riscv_fbsd_get_thread_local_address): Pass down target.
14105 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
14106 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
14107 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
14108 Adjust.
14109 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
14110 * solib-svr4.c (enable_break): Pass down target.
14111 * spu-multiarch.c (parse_spufs_run): Pass down target.
14112 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
14113 * target-delegates.c: Regenerate.
14114 * target.c (g_target_stack): Delete.
14115 (current_top_target): Return the current inferior's top target.
14116 (target_has_execution_1): Refer to the passed-in inferior's top
14117 target.
14118 (target_supports_terminal_ours): Check whether the initial
14119 inferior was already created.
14120 (decref_target): New.
14121 (target_stack::push): Incref/decref the target.
14122 (push_target, push_target, unpush_target): Adjust.
14123 (target_stack::unpush): Defref target.
14124 (target_is_pushed): Return bool. Adjust to refer to the current
14125 inferior's target stack.
14126 (dispose_inferior): Delete, and inline parts ...
14127 (target_preopen): ... here. Only dispose of the current inferior.
14128 (target_detach): Hold strong target reference while detaching.
14129 Pass target down.
14130 (target_thread_name): Add assertion.
14131 (target_resume): Pass down target.
14132 (target_ops::beneath, find_target_at): Adjust to refer to the
14133 current inferior's target stack.
14134 (get_dummy_target): New.
14135 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
14136 has a thread running.
14137 (initialize_targets): Rename to ...
14138 (_initialize_target): ... this.
14139 * target.h: Include "gdbsupport/refcounted-object.h".
14140 (struct target_ops): Inherit refcounted_object.
14141 (target_ops::shortname, target_ops::longname): Make const.
14142 (target_ops::async_wait_fd): New method.
14143 (decref_target): Declare.
14144 (struct target_ops_ref_policy): New.
14145 (target_ops_ref): New typedef.
14146 (get_dummy_target): Declare function.
14147 (target_is_pushed): Return bool.
14148 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
14149 (all_matching_threads_iterator::all_matching_threads_iterator):
14150 Handle filter target.
14151 * thread-iter.h (struct all_matching_threads_iterator, struct
14152 all_matching_threads_range, class all_non_exited_threads_range):
14153 Filter by target too. Remove explicit.
14154 * thread.c (threads_executing): Delete.
14155 (inferior_thread): Pass down current inferior.
14156 (clear_thread_inferior_resources): Pass down thread pointer
14157 instead of ptid_t.
14158 (add_thread_silent, add_thread_with_info, add_thread): Add
14159 process_stratum_target parameter. Use it for thread and inferior
14160 searches.
14161 (is_current_thread): New.
14162 (thread_info::deletable): Use it.
14163 (find_thread_ptid, thread_count, in_thread_list)
14164 (thread_change_ptid, set_resumed, set_running): New
14165 process_stratum_target parameter. Pass it down.
14166 (set_executing): New process_stratum_target parameter. Pass it
14167 down. Adjust reference to 'threads_executing'.
14168 (threads_are_executing): New process_stratum_target parameter.
14169 Adjust reference to 'threads_executing'.
14170 (set_stop_requested, finish_thread_state): New
14171 process_stratum_target parameter. Pass it down.
14172 (switch_to_thread): Also match inferior.
14173 (switch_to_thread): New process_stratum_target parameter. Pass it
14174 down.
14175 (update_threads_executing): Reimplement.
14176 * top.c (quit_force): Pop targets from all inferior.
14177 (gdb_init): Don't call initialize_targets.
14178 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
14179 Declare.
14180 (windows_add_thread, windows_delete_thread): Adjust.
14181 (get_windows_debug_event): Rename to ...
14182 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
14183 * tracefile-tfile.c (tfile_target_open): Pass down target.
14184 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
14185 Forward declare.
14186 (switch_to_thread): Add process_stratum_target parameter.
14187 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
14188 parameter. Use it.
14189 (mi_on_resume): Pass target down.
14190 * nat/fork-inferior.c (startup_inferior): Add
14191 process_stratum_target parameter. Pass it down.
14192 * nat/fork-inferior.h (startup_inferior): Add
14193 process_stratum_target parameter.
14194 * python/py-threadevent.c (py_get_event_thread): Pass target down.
14195
14196 2020-01-10 Pedro Alves <palves@redhat.com>
14197
14198 * remote.c (remote_target::start_remote): Don't set inferior_ptid
14199 directly. Instead find the first thread in the thread list and
14200 use switch_to_thread.
14201
14202 2020-01-10 Pedro Alves <palves@redhat.com>
14203
14204 * remote.c (remote_target::remote_add_inferior): Don't bind a
14205 process to the current inferior if the current inferior is already
14206 bound to a process.
14207
14208 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14209 Pedro Alves <palves@redhat.com>
14210
14211 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
14212 If no process is specified, return null_ptid instead of
14213 inferior_ptid.
14214 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
14215 TARGET_WAITKIND_SIGNALLED with no pid.
14216
14217 2020-01-10 Pedro Alves <palves@redhat.com>
14218
14219 * remote.c (first_remote_resumed_thread): New.
14220 (remote_target::wait_as): Use it as default event_ptid instead of
14221 inferior_ptid.
14222
14223 2020-01-10 Pedro Alves <palves@redhat.com>
14224
14225 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
14226
14227 2020-01-10 Pedro Alves <palves@redhat.com>
14228
14229 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
14230 not -1.
14231
14232 2020-01-10 Pedro Alves <palves@redhat.com>
14233
14234 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
14235 ptid to get_last_target_status.
14236 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
14237 ptid to get_last_target_status.
14238 * infcmd.c (continue_command): Don't pass a target_waitstatus to
14239 get_last_target_status.
14240 (info_program_command): Don't pass a target_waitstatus to
14241 get_last_target_status.
14242 * infrun.c (init_wait_for_inferior): Use
14243 nullify_last_target_wait_ptid.
14244 (get_last_target_status): Handle nullptr arguments.
14245 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
14246 (print_stop_event): Don't pass a ptid to get_last_target_status.
14247 (normal_stop): Don't pass a ptid to get_last_target_status.
14248 * infrun.h (get_last_target_status, set_last_target_status): Move
14249 comments here and update.
14250 (nullify_last_target_wait_ptid): Declare.
14251 * linux-fork.c (fork_load_infrun_state): Remove local extern
14252 declaration of nullify_last_target_wait_ptid.
14253 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
14254 to get_last_target_status.
14255
14256 2020-01-10 Pedro Alves <palves@redhat.com>
14257
14258 * gdbthread.h (scoped_restore_current_thread)
14259 <dont_restore, restore, m_dont_restore>: Declare.
14260 * thread.c (thread_alive): Add assertion. Return bool.
14261 (switch_to_thread_if_alive): New.
14262 (prune_threads): Switch inferior/thread.
14263 (print_thread_info_1): Switch thread before calling target methods.
14264 (scoped_restore_current_thread::restore): New, factored out from
14265 ...
14266 (scoped_restore_current_thread::~scoped_restore_current_thread):
14267 ... this.
14268 (scoped_restore_current_thread::scoped_restore_current_thread):
14269 Add assertion.
14270 (thread_apply_all_command, thread_select): Use
14271 switch_to_thread_if_alive.
14272 * infrun.c (proceed, restart_threads, handle_signal_stop)
14273 (switch_back_to_stepped_thread): Switch current thread before
14274 calling target methods.
14275
14276 2020-01-10 Pedro Alves <palves@redhat.com>
14277
14278 * inferior.c (switch_to_inferior_no_thread): New function,
14279 factored out from ...
14280 (inferior_command): ... here.
14281 * inferior.h (switch_to_inferior_no_thread): Declare.
14282 * mi/mi-main.c (run_one_inferior): Use
14283 switch_to_inferior_no_thread.
14284
14285 2020-01-10 Pedro Alves <palves@redhat.com>
14286
14287 * infcmd.c (kill_command): Remove dead code.
14288
14289 2020-01-10 Pedro Alves <palves@redhat.com>
14290
14291 * remote.c (remote_target::mourn_inferior): No longer check
14292 whether the target is running.
14293
14294 2020-01-10 Pedro Alves <palves@redhat.com>
14295
14296 * corelow.c (core_target::has_execution): Change parameter type to
14297 inferior pointer.
14298 * inferior.c (number_of_live_inferiors): Use
14299 inferior::has_execution instead of target_has_execution_1.
14300 * inferior.h (inferior::has_execution): New.
14301 * linux-thread-db.c (thread_db_target::update_thread_list): Use
14302 inferior::has_execution instead of target_has_execution_1.
14303 * process-stratum-target.c
14304 (process_stratum_target::has_execution): Change parameter type to
14305 inferior pointer. Check the inferior's PID instead of
14306 inferior_ptid.
14307 * process-stratum-target.h
14308 (process_stratum_target::has_execution): Change parameter type to
14309 inferior pointer.
14310 * record-full.c (record_full_core_target::has_execution): Change
14311 parameter type to inferior pointer.
14312 * target.c (target_has_execution_1): Change parameter type to
14313 inferior pointer.
14314 (target_has_execution_current): Adjust.
14315 * target.h (target_ops::has_execution): Change parameter type to
14316 inferior pointer.
14317 (target_has_execution_1): Change parameter type to inferior
14318 pointer. Change return type to bool.
14319 * tracefile.h (tracefile_target::has_execution): Change parameter
14320 type to inferior pointer.
14321
14322 2020-01-10 Pedro Alves <palves@redhat.com>
14323
14324 * exceptions.c (print_flush): Remove current_top_target() check.
14325
14326 2020-01-10 Pedro Alves <palves@redhat.com>
14327
14328 * remote.c (show_remote_exec_file): Show the current inferior's
14329 exec-file instead of the command variable's value.
14330
14331 2020-01-10 Pedro Alves <palves@redhat.com>
14332
14333 * record-full.c (record_full_resume_ptid): New global.
14334 (record_full_target::resume): Set it.
14335 (record_full_wait_1): Use record_full_resume_ptid instead of
14336 inferior_ptid.
14337
14338 2020-01-10 Pedro Alves <palves@redhat.com>
14339
14340 * gdbthread.h (scoped_restore_current_thread)
14341 <dont_restore, restore, m_dont_restore>: Declare.
14342 * thread.c (thread_alive): Add assertion. Return bool.
14343 (switch_to_thread_if_alive): New.
14344 (prune_threads): Switch inferior/thread.
14345 (print_thread_info_1): Switch thread before calling target methods.
14346 (scoped_restore_current_thread::restore): New, factored out from
14347 ...
14348 (scoped_restore_current_thread::~scoped_restore_current_thread):
14349 ... this.
14350 (scoped_restore_current_thread::scoped_restore_current_thread):
14351 Add assertion.
14352 (thread_apply_all_command, thread_select): Use
14353 switch_to_thread_if_alive.
14354
14355 2020-01-10 George Barrett <bob@bob131.so>
14356
14357 * stap-probe.c (stap_modify_semaphore): Don't check for null
14358 semaphores.
14359 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
14360 for null semaphores.
14361
14362 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
14363
14364 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
14365 all source windows, and maintain horizontal scroll status while
14366 doing so.
14367
14368 2020-01-09 Tom Tromey <tom@tromey.com>
14369
14370 PR tui/18932:
14371 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
14372 update_source_window, not print_source_lines.
14373
14374 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
14375
14376 * tui/tui.c (tui_enable): Register tui hooks after calling
14377 tui_display_main.
14378
14379 2020-01-09 Christian Biesinger <cbiesinger@google.com>
14380
14381 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
14382
14383 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
14384
14385 * thread.c (print_thread_info_1): Fix indentation.
14386
14387 2020-01-09 Christian Biesinger <cbiesinger@google.com>
14388
14389 * symtab.c (general_symbol_info::compute_and_set_names): Move the
14390 unique_xmalloc_ptr outside the if to always free the demangled name.
14391
14392 2020-01-08 Tom Tromey <tromey@adacore.com>
14393
14394 * xcoffread.c (enter_line_range, read_xcoff_symtab)
14395 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
14396 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
14397 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
14398 Remove.
14399 (section_offsets): New typedef.
14400 * symtab.c (fixup_section, get_msymbol_address): Update.
14401 * symmisc.c (dump_msymbols): Update.
14402 * symfile.h (relative_addr_info_to_section_offsets)
14403 (symfile_map_offsets_to_segments): Update.
14404 * symfile.c (build_section_addr_info_from_objfile)
14405 (init_objfile_sect_indices): Update.
14406 (struct place_section_arg): Change type of "offsets".
14407 (place_section): Update.
14408 (relative_addr_info_to_section_offsets): Change type of
14409 "section_offsets". Remove "num_sections" parameter.
14410 (default_symfile_offsets, syms_from_objfile_1)
14411 (set_objfile_default_section_offset): Update.
14412 (reread_symbols): No need to preserve section offsets by hand.
14413 (symfile_map_offsets_to_segments): Change type of "offsets".
14414 * stap-probe.c (relocate_address): Update.
14415 * stabsread.h (process_one_symbol): Update.
14416 * solib-target.c (struct lm_info_target) <offsets>: Change type.
14417 (solib_target_relocate_section_addresses): Update.
14418 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
14419 Update.
14420 * solib-frv.c (frv_relocate_main_executable): Update.
14421 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
14422 * solib-aix.c (solib_aix_get_section_offsets): Change return
14423 type.
14424 (solib_aix_solib_create_inferior_hook): Update.
14425 * remote.c (remote_target::get_offsets): Update.
14426 * psymtab.c (find_pc_sect_psymtab): Update.
14427 * psympriv.h (struct partial_symbol) <address, text_low,
14428 text_high>: Update.
14429 * objfiles.h (obj_section_offset): Update.
14430 (struct objfile) <section_offsets>: Change type.
14431 <num_sections>: Remove.
14432 (objfile_relocate): Update.
14433 * objfiles.c (entry_point_address_query): Update
14434 (relocate_one_symbol): Change type of "section_offsets".
14435 (objfile_relocate1, objfile_relocate1): Change type of
14436 "new_offsets".
14437 (objfile_rebase1): Update.
14438 * mipsread.c (mipscoff_symfile_read): Update.
14439 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
14440 parameter.
14441 * mdebugread.c (parse_symbol): Change type of "section_offsets".
14442 (parse_external, psymtab_to_symtab_1): Update.
14443 * machoread.c (macho_symfile_offsets): Update.
14444 * ia64-tdep.c (ia64_find_unwind_table): Update.
14445 * hppa-tdep.c (read_unwind_info): Update.
14446 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
14447 * dwarf2read.c (create_addrmap_from_index)
14448 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
14449 (process_psymtab_comp_unit_reader, add_partial_symbol)
14450 (add_partial_subprogram, process_full_comp_unit)
14451 (read_file_scope, read_func_scope, read_lexical_block_scope)
14452 (read_call_site_scope, dwarf2_rnglists_process)
14453 (dwarf2_ranges_process, dwarf2_ranges_read)
14454 (dwarf_decode_lines_1, var_decode_location, new_symbol)
14455 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
14456 Update.
14457 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
14458 Update.
14459 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
14460 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
14461 (process_one_symbol): Change type of "section_offsets".
14462 * ctfread.c (get_objfile_text_range): Update.
14463 * coffread.c (coff_symtab_read, enter_linenos)
14464 (process_coff_symbol): Update.
14465 * coff-pe-read.c (add_pe_forwarded_sym): Update.
14466 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
14467
14468 2020-01-08 Tom Tromey <tromey@adacore.com>
14469
14470 * dwarf2read.c (parse_macro_definition): Use std::string.
14471 (parse_macro_definition): Likewise.
14472
14473 2020-01-08 Tom Tromey <tromey@adacore.com>
14474
14475 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
14476 (ATTR_ALLOC_CHUNK): Remove.
14477
14478 2020-01-08 Tom Tromey <tromey@adacore.com>
14479
14480 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
14481
14482 2020-01-08 Tom Tromey <tromey@adacore.com>
14483
14484 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
14485 (dwarf2_compute_name, open_dwo_file): Likewise.
14486 (process_enumeration_scope): Use std::vector.
14487 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
14488 (partial_die_info::fixup, dwarf2_start_subfile)
14489 (guess_full_die_structure_name, dwarf2_name): Likewise.
14490 (determine_prefix): Update.
14491 (guess_full_die_structure_name): Make return type const.
14492 (partial_die_full_name): Return unique_xmalloc_ptr.
14493 (DW_FIELD_ALLOC_CHUNK): Remove.
14494
14495 2020-01-07 Tom Tromey <tromey@adacore.com>
14496
14497 PR build/24937:
14498 * stap-probe.c (class stap_static_probe_ops): Add constructor.
14499
14500 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
14501
14502 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
14503
14504 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
14505
14506 * stack.c (print_frame_info): Move disassemble_next_line code
14507 inside source_print block.
14508
14509 2020-01-06 Eli Zaretskii <eliz@gnu.org>
14510
14511 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
14512 gdb/signals.h, as we are now using native signal symbols.
14513
14514 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
14515
14516 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
14517 overflow by an early check of content vs threshold.
14518 * tui/tui-source.c (tui_source_window::line_is_displayed):
14519 Likewise.
14520
14521 2020-01-06 Eli Zaretskii <eliz@gnu.org>
14522
14523 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
14524
14525 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
14526
14527 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
14528 export table if no section contains it's RVA.
14529
14530 2020-01-06 Eli Zaretskii <eliz@gnu.org>
14531
14532 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
14533
14534 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
14535
14536 * source.c (print_source_lines_base): Set last_line_listed.
14537
14538 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
14539
14540 * tui/tui-disasm.c: Remove trailing spaces.
14541
14542 2020-01-06 Eli Zaretskii <eliz@gnu.org>
14543 Pedro Alves <palves@redhat.com>
14544
14545 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
14546 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
14547 (windows_gdb_signal_to_target): New function, uses the above
14548 enumeration to convert GDB internal signal codes to equivalent
14549 Windows codes.
14550 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
14551 * windows-nat.c: Include "gdb_wait.h".
14552 (get_windows_debug_event): Extract the fatal exception from the
14553 exit status and convert to the equivalent Posix signal number.
14554 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
14555 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
14556 * gdbsupport/gdb_wait.c: New file, implements
14557 windows_status_to_termsig.
14558 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
14559 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
14560
14561 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
14562
14563 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
14564 show_layout.
14565
14566 2020-01-05 Luis Machado <luis.machado@linaro.org>
14567
14568 * aarch64-linux-nat.c
14569 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
14570 and bfd_mach_aarch64.
14571
14572 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14573
14574 * ui-file.c (stdio_file::can_emit_style_escape)
14575 (tee_file::can_emit_style_escape): Ensure style is used also on
14576 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
14577 to gdb_stdout.
14578 * main.c (set_gdb_data_directory): Use file style to output the
14579 warning that the given pathname is not a directory.
14580 * top.c (show_history_filename, gdb_safe_append_history)
14581 (show_gdb_datadir): Use file style.
14582
14583 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
14584
14585 * solib-target.c (struct lm_info_target):
14586 Change offsets to be a unique_xmalloc_ptr.
14587 (solib_target_relocate_section_addresses): Update.
14588
14589 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
14590
14591 * windows-nat.c (windows_clear_solib): Free so_list linked list.
14592
14593 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
14594
14595 * MAINTAINERS (Write After Approval): Add myself.
14596
14597 2020-01-02 Luis Machado <luis.machado@linaro.org>
14598
14599 * proc-service.c (get_ps_regcache): Remove reference to obsolete
14600 Cell BE architecture.
14601 * target.h (struct target_ops) <thread_architecture>: Likewise.
14602
14603 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
14604
14605 * Makefile.in: Use INSTALL_PROGRAM_ENV.
14606
14607 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
14608
14609 * MAINTAINERS (Write After Approval): Add myself.
14610
14611 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14612
14613 * gdbarch.sh: Update copyright year range of generated files.
14614
14615 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14616
14617 Update copyright year range in all GDB files.
14618
14619 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14620
14621 * copyright.py: Convert to Python 3.
14622
14623 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14624
14625 * copyright.py: Adapt after move of gnulib directory from gdb
14626 directory to toplevel directory.
14627
14628 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14629
14630 * copyright.py (main): Exit if run from the wrong directory.
14631
14632 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14633
14634 * top.c (print_gdb_version): Change copyright year to 2020.
14635
14636 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14637
14638 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
14639
14640 For older changes see ChangeLog-2019.
14641 \f
14642 Local Variables:
14643 mode: change-log
14644 left-margin: 8
14645 fill-column: 74
14646 version-control: never
14647 coding: utf-8
14648 End:
This page took 0.305482 seconds and 5 git commands to generate.