Remove DW_UNSND
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2020-09-29 Tom Tromey <tom@tromey.com>
2
3 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
4 (read_file_scope, dwarf2_get_pc_bounds)
5 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
6 (read_structure_type, handle_struct_member_die)
7 (read_enumeration_type, read_array_type, read_set_type)
8 (read_tag_pointer_type, read_tag_reference_type)
9 (read_subroutine_type, read_base_type, read_subrange_type)
10 (read_full_die_1, partial_die_info::read)
11 (partial_die_info::read, by, new_symbol)
12 (dwarf2_const_value_data, dwarf2_const_value_attr)
13 (dump_die_shallow, dwarf2_fetch_constant_bytes)
14 (prepare_one_comp_unit): Update.
15 * dwarf2/attribute.h (DW_UNSND): Remove.
16
17 2020-09-29 Tom Tromey <tom@tromey.com>
18
19 * dwarf2/read.c (read_func_scope, prototyped_function_p)
20 (read_subroutine_type, partial_die_info::read)
21 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
22 (dwarf2_add_member_fn): Update.
23 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
24 * dwarf2/attribute.c (attribute::as_boolean): New method.
25
26 2020-09-29 Tom Tromey <tom@tromey.com>
27
28 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
29 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
30 method.
31 * dwarf2/attribute.c (attribute::as_virtuality): New method.
32
33 2020-09-29 Tom Tromey <tom@tromey.com>
34
35 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
36 the attribute's form.
37
38 2020-09-29 Tom Tromey <tom@tromey.com>
39
40 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
41 (dwarf2_add_member_fn): Update.
42 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
43 * dwarf2/attribute.c (attribute::defaulted): New method, from
44 is_valid_DW_AT_defaulted.
45
46 2020-09-29 Tom Tromey <tom@tromey.com>
47
48 * dwarf2/read.c (dw2_get_file_names_reader)
49 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
50 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
51 (dwarf2_symbol_mark_computed): Use as_unsigned.
52 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
53 method.
54 <form_is_section_offset>: Update comment.
55
56 2020-09-29 Tom Tromey <tom@tromey.com>
57
58 * dwarf2/read.c (dwarf2_access_attribute): Rename from
59 dwarf2_default_access_attribute. Look up attribute.
60 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
61 Update.
62
63 2020-09-29 Tom Tromey <tom@tromey.com>
64
65 * dwarf2/read.c (skip_one_die): Update.
66 (read_full_die_1): Change how reprocessing is done.
67 (partial_die_info::read): Update.
68 (read_attribute_value): Remove need_reprocess parameter.
69 (read_attribute): Likewise.
70 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
71 New method.
72
73 2020-09-29 Tom Tromey <tom@tromey.com>
74
75 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
76 (dwarf2_const_value_attr, dump_die_shallow)
77 (dwarf2_fetch_constant_bytes): Update.
78 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
79 comment.
80 <set_address>: New method.
81 (DW_ADDR): Remove.
82 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
83 (attribute::as_string, attribute::as_address): Add assert.
84
85 2020-09-29 Tom Tromey <tom@tromey.com>
86
87 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
88 (read_attribute_reprocess, read_attribute_value): Update.
89 (read_attribute): Clear requires_reprocessing.
90 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
91 form_requires_reprocessing>: New methods.
92 <string_init>: Clear requires_reprocessing.
93 <set_unsigned_reprocess>: New method.
94 <name>: Shrink by one bit.
95 <requires_reprocessing>: New member.
96 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
97 method.
98
99 2020-09-29 Tom Tromey <tom@tromey.com>
100
101 * dwarf2/read.c (read_attribute_value): Update.
102 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
103 set_unsigned>: New methods.
104 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
105
106 2020-09-29 Tom Tromey <tom@tromey.com>
107
108 * dwarf2/read.c (get_alignment, read_array_order)
109 (read_attribute_value, dwarf2_const_value_attr)
110 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
111 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
112 New methods.
113 (DW_SND): Remove.
114
115 2020-09-29 Tom Tromey <tom@tromey.com>
116
117 * dwarf2/read.c (read_attribute_value, lookup_die_type)
118 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
119 Update.
120 * dwarf2/attribute.h (struct attribute) <as_signature,
121 set_signature>: New methods.
122 (DW_SIGNATURE): Remove.
123
124 2020-09-29 Tom Tromey <tom@tromey.com>
125
126 * dwarf2/read.c (read_call_site_scope)
127 (handle_data_member_location, dwarf2_add_member_fn)
128 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
129 (partial_die_info::read, read_attribute_value)
130 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
131 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
132 (dwarf2_symbol_mark_computed): Update.
133 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
134 methods.
135 (DW_BLOCK): Remove.
136 * dwarf2/attribute.c (attribute::form_is_block): Add
137 DW_FORM_data16.
138
139 2020-09-29 Tom Tromey <tom@tromey.com>
140
141 * dwarf2/read.c (read_cutu_die_from_dwo)
142 (read_attribute_reprocess, read_attribute_value, read_attribute)
143 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
144 (dwarf2_fetch_constant_bytes): Update.
145 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
146 <set_string_noncanonical, set_string_canonical>: New methods.
147 <string_is_canonical>: Update comment.
148 <canonical_string_p>: Add assert.
149 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
150 * dwarf2/attribute.c (attribute::form_is_string): New method.
151 (attribute::string): Use it.
152
153 2020-09-29 Tom Tromey <tom@tromey.com>
154
155 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
156 (dump_die_shallow): Use canonical_string_p.
157 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
158 method.
159
160 2020-09-29 Tom Tromey <tom@tromey.com>
161
162 * dwarf2/read.c (partial_die_info::read)
163 (dwarf2_const_value_attr, anonymous_struct_prefix, )
164 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
165 attribute::as_string.
166
167 2020-09-29 Tom Tromey <tom@tromey.com>
168
169 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
170 DW_ADDR.
171 (attribute::string): Don't use DW_STRING.
172 (attribute::get_ref_die_offset): Don't use DW_UNSND.
173 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
174
175 2020-09-29 Tom Tromey <tom@tromey.com>
176
177 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
178 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
179 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
180 * dwarf2/attribute.h (struct attribute): Rename methods.
181 * dwarf2/attribute.c (attribute::as_address): Rename from
182 value_as_address.
183 (attribute::as_string): Rename from value_as_string.
184
185 2020-09-29 Tom Tromey <tom@tromey.com>
186
187 * dwarf2/read.c (partial_die_info::read) <case
188 DW_AT_linkage_name>: Use value_as_string.
189 (dwarf2_string_attr): Use value_as_string.
190 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
191 method.
192 * dwarf2/attribute.c (attribute::value_as_string): New method.
193
194 2020-09-29 Pedro Alves <pedro@palves.net>
195
196 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
197 defined before using '#pragma GCC diagnostic' instead of checking
198 __clang__.
199
200 2020-09-28 Tom Tromey <tom@tromey.com>
201
202 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
203 (handle_signal_stop): Update.
204 * procfs.c (procfs_target::insert_watchpoint): Update.
205 * target.h (target_have_steppable_watchpoint): Now a function.
206
207 2020-09-28 Tom Tromey <tom@tromey.com>
208
209 * infrun.c (set_schedlock_func): Update.
210 * target.h (target_can_lock_scheduler): Now a function.
211
212 2020-09-28 Tom Tromey <tom@tromey.com>
213
214 * inferior.h (class inferior) <has_execution>: Update.
215 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
216 * valops.c (find_function_in_inferior)
217 (value_allocate_space_in_inferior): Update.
218 * top.c (kill_or_detach): Update.
219 * target.c (target_preopen, set_target_permissions): Update.
220 (target_has_execution_current): Remove.
221 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
222 Update.
223 * solib.c (update_solib_list, reload_shared_libraries): Update.
224 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
225 * solib-dsbt.c (enable_break): Update.
226 * score-tdep.c (score7_fetch_inst): Update.
227 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
228 Update.
229 * remote.c (remote_target::start_remote)
230 (remote_target::remote_check_symbols, remote_target::open_1)
231 (remote_target::remote_detach_1, remote_target::verify_memory)
232 (remote_target::xfer_partial, remote_target::read_description)
233 (remote_target::get_min_fast_tracepoint_insn_len): Update.
234 * record-full.c (record_full_open_1): Update.
235 * record-btrace.c (record_btrace_target_open): Update.
236 * objc-lang.c (lookup_objc_class, lookup_child_selector)
237 (value_nsstring): Update.
238 * linux-thread-db.c (add_thread_db_info)
239 (thread_db_find_new_threads_silently, check_thread_db_callback)
240 (try_thread_db_load_1, record_thread): Update.
241 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
242 Update.
243 * linux-fork.c (checkpoint_command): Update.
244 * infrun.c (set_non_stop, set_observer_mode)
245 (check_multi_target_resumption, for_each_just_stopped_thread)
246 (maybe_remove_breakpoints, normal_stop)
247 (class infcall_suspend_state): Update.
248 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
249 (info_program_command, attach_command): Update.
250 * infcall.c (call_function_by_hand_dummy): Update.
251 * inf-loop.c (inferior_event_handler): Update.
252 * gcore.c (gcore_command, derive_heap_segment): Update.
253 * exec.c (exec_file_command): Update.
254 * eval.c (evaluate_subexp): Update.
255 * compile/compile.c (compile_to_object): Update.
256 * cli/cli-dump.c (restore_command): Update.
257 * breakpoint.c (update_watchpoint)
258 (update_inserted_breakpoint_locations)
259 (insert_breakpoint_locations, get_bpstat_thread): Update.
260 * target.h (target_has_execution): Remove macro.
261 (target_has_execution_current): Don't declare.
262 (target_has_execution): Rename from target_has_execution_1. Add
263 argument default.
264
265 2020-09-28 Tom Tromey <tom@tromey.com>
266
267 * mi/mi-main.c (exec_reverse_continue)
268 (mi_cmd_list_target_features): Update.
269 * infrun.c (set_exec_direction_func): Update.
270 * target.c (default_execution_direction): Update.
271 * reverse.c (exec_reverse_once): Update.
272 * target.h (target_can_execute_reverse): Now a function.
273
274 2020-09-28 Tom Tromey <tom@tromey.com>
275
276 * tui/tui-regs.c (tui_get_register)
277 (tui_data_window::show_registers): Update.
278 * thread.c (scoped_restore_current_thread::restore)
279 (scoped_restore_current_thread::scoped_restore_current_thread):
280 Update.
281 * regcache-dump.c (regcache_print): Update.
282 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
283 Update.
284 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
285 * mep-tdep.c (current_me_module, current_options): Update.
286 * linux-thread-db.c (thread_db_load): Update.
287 * infcmd.c (registers_info, info_vector_command)
288 (info_float_command): Update.
289 * ia64-tdep.c (ia64_frame_prev_register)
290 (ia64_sigtramp_frame_prev_register): Update.
291 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
292 * gcore.c (derive_stack_segment): Update.
293 * frame.c (get_current_frame, has_stack_frames): Update.
294 * findvar.c (language_defn::read_var_value): Update.
295 * arm-tdep.c (arm_pc_is_thumb): Update.
296 * target.c (target_has_registers): Rename from
297 target_has_registers_1.
298 * target.h (target_has_registers): Remove macro.
299 (target_has_registers): Rename from target_has_registers_1.
300
301 2020-09-28 Tom Tromey <tom@tromey.com>
302
303 * windows-tdep.c (tlb_make_value): Update.
304 * tui/tui-regs.c (tui_data_window::show_registers): Update.
305 * thread.c (scoped_restore_current_thread::restore)
306 (scoped_restore_current_thread::scoped_restore_current_thread)
307 (thread_command): Update.
308 * stack.c (backtrace_command_1, frame_apply_level_command)
309 (frame_apply_all_command, frame_apply_command): Update.
310 * infrun.c (siginfo_make_value, restore_infcall_control_state):
311 Update.
312 * gcore.c (derive_stack_segment): Update.
313 * frame.c (get_current_frame, has_stack_frames): Update.
314 * auxv.c (info_auxv_command): Update.
315 * ada-tasks.c (ada_build_task_list): Update.
316 * target.c (target_has_stack): Rename from target_has_stack_1.
317 * target.h (target_has_stack): Remove macro.
318 (target_has_stack): Rename from target_has_stack_1.
319
320 2020-09-28 Tom Tromey <tom@tromey.com>
321
322 * target.c (target_has_memory): Rename from target_has_memory_1.
323 * tui/tui-regs.c (tui_data_window::show_registers): Update.
324 * thread.c (scoped_restore_current_thread::restore)
325 (scoped_restore_current_thread::scoped_restore_current_thread):
326 Update.
327 * frame.c (get_current_frame, has_stack_frames): Update.
328 * target.h (target_has_memory): Remove macro.
329 (target_has_memory): Rename from target_has_memory_1.
330
331 2020-09-28 Tom Tromey <tom@tromey.com>
332
333 * target.c (target_has_all_memory_1): Remove.
334 * target.h (target_has_all_memory): Remove define.
335 (target_has_all_memory_1): Don't declare.
336
337 2020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
338
339 * ser-base.c: Adjust comments formatting.
340
341 2020-09-27 Tom Tromey <tom@tromey.com>
342
343 PR tui/25342:
344 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
345
346 2020-09-27 Tom Tromey <tom@tromey.com>
347
348 PR tui/25342:
349 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
350
351 2020-09-27 Tom Tromey <tom@tromey.com>
352
353 * unittests/tui-selftests.c: Update.
354 * tui/tui-winsource.h (struct tui_source_window_base)
355 <extra_margin, show_line_number, refresh_pad>: New methods.
356 <m_max_length, m_pad>: New members.
357 (tui_copy_source_line): Update.
358 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
359 first_col, line_width, ndigits parameters. Add length.
360 (tui_source_window_base::show_source_line): Write to pad. Line
361 number now 0-based.
362 (tui_source_window_base::refresh_pad): New method.
363 (tui_source_window_base::show_source_content): Write to pad. Call
364 refresh_pad.
365 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
366 not refill.
367 (tui_source_window_base::update_exec_info): Call
368 show_line_number.
369 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
370 method.
371 <m_digits>: New member.
372 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
373 and m_max_length.
374 (tui_source_window::show_line_number): New method.
375 * tui/tui-io.h (tui_puts): Fix comment.
376 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
377 m_max_length.
378
379 2020-09-27 Tom Tromey <tom@tromey.com>
380
381 * tui/tui-winsource.c
382 (tui_source_window_base::set_is_exec_point_at): Don't call
383 show_source_line.
384
385 2020-09-27 Tom Tromey <tom@tromey.com>
386
387 * python/py-tui.c (class tui_py_window) <refresh_window>: New
388 method.
389 <erase>: Update.
390 <cursor_x, cursor_y>: Remove.
391 <m_inner_window>: New member.
392 (tui_py_window::rerender): Create inner window.
393 (tui_py_window::output): Write to inner window.
394
395 2020-09-26 Gareth Rees <grees@undo.io> (tiny change)
396
397 PR python/26586
398 * cli/cli-script.c (execute_control_commands): don't set
399 instream to nullptr here as this breaks the from_tty argument
400 to gdb.execute in Python.
401 (execute_user_command): set instream to nullptr here instead.
402
403 2020-09-25 Simon Marchi <simon.marchi@efficios.com>
404
405 * infrun.h (infrun_debug_printf): Fix formatting.
406 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
407
408 2020-09-25 Saagar Jha <saagar@saagarjha.com>
409
410 * compile/compile-object-load.h (struct munmap_list): Add
411 explicitly-defined move constructor.
412
413 2020-09-24 Tom Tromey <tromey@adacore.com>
414
415 PR tui/26638:
416 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
417 method.
418 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
419 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
420 (tui_prev_win): Rewrite.
421
422 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
423
424 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
425 in WOW64 processes as SIGINT.
426 * nat/windows-nat.h: Make wow64_process a shared variable.
427 * windows-nat.c: Remove static wow64_process variable.
428
429 2020-09-23 Tom Tromey <tom@tromey.com>
430
431 PR symtab/25470:
432 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
433 offset and bit size.
434 * printcmd.c (print_scalar_formatted): Handle zero-length
435 integer.
436 (print_scalar_formatted): Use bit_size_differs_p.
437 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
438 constant.
439 (union type_specific): <int_stuff>: New member.
440 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
441 methods.
442 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
443 TYPE_SPECIFIC_FIELD.
444 (recursive_dump_type, copy_type_recursive): Update.
445 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
446 DW_AT_data_bit_offset.
447
448 2020-09-23 Tom Tromey <tom@tromey.com>
449
450 * utils.h (class gdb_argv): Add move operators.
451 <append>: New methods.
452 * compile/compile.c (build_argc_argv): Remove.
453 (compile_args_argc): Remove.
454 (compile_args_argv): Change type.
455 (set_compile_args): Simplify.
456 (append_args): Remove.
457 (filter_args): Remove argcp parameter.
458 (get_args): Return gdb_argv. Simplify.
459 (compile_to_object): Update.
460
461 2020-09-23 Tom Tromey <tom@tromey.com>
462
463 * compile/compile-object-run.c (do_module_cleanup)
464 <~do_module_cleanup> :Remove.
465 (do_module_cleanup): Update.
466 * compile/compile-object-load.h (struct munmap_list): Add move
467 assignment operator.
468 <source_file>: Now a std::string.
469 <munmap_list>: Rename. No longer a pointer.
470 * compile/compile-object-load.c (struct setup_sections_data): Add
471 constructor.
472 <setup_one_section>: Declare.
473 <munmap_list>: Move earlier.
474 <m_bfd>: New member.
475 <m_last_size, m_last_section_first, m_last_prot,
476 m_last_max_alignment>: Rename, add initializers where needed.
477 (setup_sections_data::setup_one_section): Rename from
478 setup_sections. Update.
479 (compile_object_load): Update. Don't use bfd_map_over_sections.
480
481 2020-09-23 Tom Tromey <tom@tromey.com>
482
483 * compile/compile-object-run.c (struct do_module_cleanup): Add
484 parameters to constructor. Update destructor.
485 <source_file, scope, scope_data, out_value_type, out_value_addr,
486 munmap_list_head, objfile_name_string>: Remove.
487 <module>: New member.
488 (do_module_cleanup): Update.
489 (compile_object_run): Update.
490
491 2020-09-23 Tom Tromey <tom@tromey.com>
492
493 * compile/compile.c (eval_compile_command): Update.
494 * compile/compile-object-run.h (compile_object_run): Take a
495 compile_module_up.
496 * compile/compile-object-run.c (compile_object_run): Take a
497 compile_module_up.
498 * compile/compile-object-load.h (struct compile_module): Add
499 constructor, destructor.
500 (compile_module_up): New typedef.
501 (compile_object_load): Return compile_object_up.
502 * compile/compile-object-load.c (compile_object_load): Return
503 compile_module_up.
504
505 2020-09-23 Tom Tromey <tom@tromey.com>
506
507 * compile/compile-object-run.c (struct do_module_cleanup): Add
508 constructor, destructor.
509 <objfile_name_string>: Don't use struct hack.
510 (do_module_cleanup): Use delete.
511 (compile_object_run): Use new.
512
513 2020-09-23 Tom Tromey <tom@tromey.com>
514
515 * compile/compile-cplus-types.c
516 (compile_cplus_convert_struct_or_union): Use std::vector.
517 (compile_cplus_convert_func): Likewise.
518 * compile/compile-c-types.c (convert_func): Use std::vector.
519
520 2020-09-21 Tom Tromey <tromey@adacore.com>
521
522 * sparc-tdep.c (sparc32_skip_prologue): Use
523 skip_prologue_using_sal.
524
525 2020-09-19 Tom Tromey <tom@tromey.com>
526
527 * symfile.c (add_section_size_callback): Remove.
528 (load_one_section): Rename from load_section_callback. Change
529 parameters.
530 (generic_load): Use foreach.
531
532 2020-09-19 Tom Tromey <tom@tromey.com>
533
534 * exec.c (add_to_section_table): Remove.
535 (build_section_table): Use foreach.
536
537 2020-09-19 Tom Tromey <tom@tromey.com>
538
539 * elfread.c (elf_locate_sections): Change parameters.
540 (elf_symfile_read): Use foreach.
541
542 2020-09-19 Tom Tromey <tom@tromey.com>
543
544 * cli/cli-dump.c (struct callback_data): Remove.
545 (restore_one_section): Rename from restore_section_callback.
546 Change parameters.
547 (restore_binary_file): Change parameters.
548 (restore_command): Use foreach.
549
550 2020-09-19 Tom Tromey <tom@tromey.com>
551
552 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
553 (gcore_copy_callback): Likewise.
554 (gcore_memory_sections): Use foreach.
555
556 2020-09-19 Tom Tromey <tom@tromey.com>
557
558 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
559 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
560 parameters.
561 (generic_elf_osabi_sniffer): Use foreach.
562 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
563 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
564
565 2020-09-19 Tom Tromey <tom@tromey.com>
566
567 * dwarf2/read.c (locate_dwz_sections): Change parameters.
568 (dwarf2_get_dwz_file): Use foreach.
569 (dwarf2_locate_dwo_sections): Change parameters.
570 (open_and_init_dwo_file): Use foreach.
571 (dwarf2_locate_common_dwp_sections): Change parameters.
572 (open_and_init_dwp_file): Use foreach.
573
574 2020-09-19 Tom Tromey <tom@tromey.com>
575
576 * symfile.h: (find_lowest_section): Don't declare.
577 * symfile.c (find_lowest_section): Now static. Change
578 parameters.
579 (struct place_section_arg): Remove.
580 (place_section): Change parameters.
581 (addr_info_make_relative): Use foreach.
582 (symfile_dummy_outputs): Remove.
583 (default_symfile_relocate): Use foreach.
584
585 2020-09-19 Tom Tromey <tom@tromey.com>
586
587 * objfiles.c (add_to_objfile_sections): Rename from
588 add_to_objfile_sections_full.
589 (add_to_objfile_sections): Remove.
590 (build_objfile_section_table): Use foreach.
591
592 2020-09-19 Tom Tromey <tom@tromey.com>
593
594 * stap-probe.c (get_stap_base_address_1): Remove.
595 (get_stap_base_address): Use foreach.
596
597 2020-09-19 Tom Tromey <tom@tromey.com>
598
599 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
600 parameters.
601 (gdb_bfd_close_or_warn): Use foreach.
602
603 2020-09-19 Tom Tromey <tom@tromey.com>
604
605 * corelow.c (add_to_thread_list): Change parameters.
606 (core_target_open): Use foreach.
607
608 2020-09-19 Tom Tromey <tom@tromey.com>
609
610 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
611 existing function.
612
613 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
614
615 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
616 for arrays.
617
618 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
619
620 * eval.c: Remove 'f-lang.h' include.
621 (value_f90_subarray): Moved to f-lang.c.
622 (eval_call): Renamed to...
623 (evaluate_subexp_do_call): ...this, is no longer static, header
624 comment moved into header file.
625 (evaluate_funcall): Update call to eval_call.
626 (skip_undetermined_arglist): Moved to f-lang.c.
627 (fortran_value_subarray): Likewise.
628 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
629 moved to evaluate_subexp_f.
630 (calc_f77_array_dims): Moved to f-lang.c
631 * expprint.c (print_subexp_funcall): New function.
632 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
633 moved to print_subexp_f, OP_FUNCALL uses new function.
634 (dump_subexp_body_funcall): New function.
635 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
636 moved to dump_subexp_f, OP_FUNCALL uses new function.
637 * expression.h (evaluate_subexp_do_call): Declare.
638 * f-lang.c (value_f90_subarray): Moved from eval.c.
639 (skip_undetermined_arglist): Likewise.
640 (calc_f77_array_dims): Likewise.
641 (fortran_value_subarray): Likewise.
642 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
643 (operator_length_f): Likewise.
644 (print_subexp_f): Likewise.
645 (dump_subexp_body_f): Likewise.
646 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
647 declaration of this operation to here.
648 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
649 support moved to operator_length_f.
650 * parser-defs.h (dump_subexp_body_funcall): Declare.
651 (print_subexp_funcall): Declare.
652 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
653 fortran-operator.def.
654
655 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
656
657 * eval.c (fortran_value_subarray): New function, content is taken
658 from...
659 (evaluate_subexp_standard): ...here, in two places. Now arrays
660 and strings both call the new function.
661 (calc_f77_array_dims): Add header comment, handle strings.
662
663 2020-09-18 Victor Collod <vcollod@nvidia.com>
664
665 PR gdb/26635
666 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
667 (i386_analyze_prologue): Call i386_skip_endbr.
668
669 2020-09-18 Tom Tromey <tromey@adacore.com>
670
671 * windows-nat.c (struct windows_nat_target) <wait>: Update.
672 (windows_nat_target::wait): Update.
673 * target/wait.h (enum target_wait_flag): New. Use
674 DEF_ENUM_FLAGS_TYPE.
675 * target/target.h (target_wait): Change type of options.
676 * target.h (target_options_to_string, default_target_wait):
677 Update.
678 (struct target_ops) <wait>: Change type of options.
679 * target.c (target_wait, default_target_wait, do_option): Change
680 type of "options".
681 (target_options_to_string): Likewise.
682 * target-delegates.c: Rebuild.
683 * target-debug.h (target_debug_print_target_wait_flags): Rename
684 from target_debug_print_options.
685 * sol-thread.c (class sol_thread_target) <wait>: Update.
686 (sol_thread_target::wait): Update.
687 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
688 (rs6000_nat_target::wait): Update.
689 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
690 Update.
691 (remote_target::wait_ns, remote_target::wait_as): Change type of
692 "options".
693 (remote_target::wait): Update.
694 * remote-sim.c (struct gdbsim_target) <wait>: Update.
695 (gdbsim_target::wait): Update.
696 * record-full.c (class record_full_base_target) <wait>: Update.
697 (record_full_wait_1): Change type of "options".
698 (record_full_base_target::wait): Update.
699 * record-btrace.c (class record_btrace_target) <wait>: Update.
700 (record_btrace_target::wait): Update.
701 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
702 Update.
703 (ravenscar_thread_target::wait): Update.
704 * procfs.c (class procfs_target) <wait>: Update.
705 (procfs_target::wait): Update.
706 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
707 * obsd-nat.c (obsd_nat_target::wait): Update.
708 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
709 (nto_procfs_target::wait): Update.
710 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
711 * nbsd-nat.c (nbsd_wait): Change type of "options".
712 (nbsd_nat_target::wait): Update.
713 * linux-thread-db.c (class thread_db_target) <wait>: Update.
714 (thread_db_target::wait): Update.
715 * linux-nat.h (class linux_nat_target) <wait>: Update.
716 * linux-nat.c (linux_nat_target::wait): Update.
717 (linux_nat_wait_1): Update.
718 * infrun.c (do_target_wait_1, do_target_wait): Change type of
719 "options".
720 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
721 * inf-ptrace.c (inf_ptrace_target::wait): Update.
722 * go32-nat.c (struct go32_nat_target) <wait>: Update.
723 (go32_nat_target::wait): Update.
724 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
725 * gnu-nat.c (gnu_nat_target::wait): Update.
726 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
727 * fbsd-nat.c (fbsd_nat_target::wait): Update.
728 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
729 * darwin-nat.c (darwin_nat_target::wait): Update.
730 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
731 (bsd_uthread_target::wait): Update.
732 * aix-thread.c (class aix_thread_target) <wait>: Update.
733 (aix_thread_target::wait): Update.
734
735 2020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
736
737 * compile/compile-object-run.c (create_copied_type_recursive): New
738 function.
739 (compile_object_run): Use new function.
740
741 2020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
742
743 * NEWS: Mention x86_64 Cygwin core file support.
744
745 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
746
747 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
748 (core_process_module_section): Handle NOTE_INFO_MODULE64.
749
750 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
751
752 * windows-tdep.h: Add prototypes.
753 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
754 (i386_windows_core_pid_to_str): Move and rename ...
755 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
756 (windows_core_pid_to_str): ... and here.
757 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
758
759 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
760 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
761 (amd64_windows_init_abi_common): ... and register.
762
763 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
764
765 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
766 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
767
768 2020-09-18 Pedro Alves <pedro@palves.net>
769
770 PR gdb/26631
771 * thread.c (thread_find_command): Switch inferior before calling
772 target methods.
773
774 2020-09-17 Tom Tromey <tromey@adacore.com>
775
776 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
777 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
778 (tdesc_arch_data_up): New typedef.
779 (tdesc_use_registers, tdesc_data_alloc): Update.
780 (tdesc_data_cleanup): Don't declare.
781 * target-descriptions.c (tdesc_data_alloc): Return a
782 tdesc_arch_data_up.
783 (tdesc_arch_data_deleter::operator()): Rename from
784 tdesc_data_cleanup. Change argument type.
785 (tdesc_use_registers): Change early_data to an rvalue reference.
786 (tdesc_use_registers): Don't use delete.
787 * sparc-tdep.c (sparc32_gdbarch_init): Update.
788 * s390-tdep.c (s390_gdbarch_init): Update.
789 * rx-tdep.c (rx_gdbarch_init): Update.
790 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
791 * riscv-tdep.c (riscv_gdbarch_init): Update.
792 * or1k-tdep.c (or1k_gdbarch_init): Update.
793 * nios2-tdep.c (nios2_gdbarch_init): Update.
794 * nds32-tdep.c (nds32_gdbarch_init): Update.
795 * mips-tdep.c (mips_gdbarch_init): Update.
796 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
797 * m68k-tdep.c (m68k_gdbarch_init): Update.
798 * i386-tdep.c (i386_gdbarch_init): Update.
799 * arm-tdep.c (arm_gdbarch_init): Update.
800 * arc-tdep.c (arc_tdesc_init): Update.
801 (arc_gdbarch_init): Update.
802 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
803
804 2020-09-17 Hannes Domani <ssbssa@yahoo.de>
805
806 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
807 for WOW64 processes.
808
809 2020-09-17 Tom Tromey <tom@tromey.com>
810
811 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
812
813 2020-09-17 Tom Tromey <tom@tromey.com>
814
815 * value.c (preserve_values): Update.
816 * python/py-type.c (save_objfile_types): Update.
817 * guile/scm-type.c (save_objfile_types): Update.
818 * gdbtypes.h (create_copied_types_hash): Return htab_up.
819 * gdbtypes.c (create_copied_types_hash): Return htab_up.
820 * compile/compile-object-run.c (compile_object_run): Update.
821
822 2020-09-17 Tom Tromey <tom@tromey.com>
823
824 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
825 Remove.
826 <m_table>: Now htab_up.
827 * typeprint.c (typedef_hash_table::recursively_update)
828 (typedef_hash_table::add_template_parameters)
829 (typedef_hash_table::typedef_hash_table): Update.
830 (typedef_hash_table::~typedef_hash_table): Remove.
831 (typedef_hash_table::typedef_hash_table)
832 (typedef_hash_table::find_global_typedef)
833 (typedef_hash_table::find_typedef): Update.
834
835 2020-09-17 Tom Tromey <tom@tromey.com>
836
837 * target-descriptions.c (tdesc_use_registers): Use htab_up.
838
839 2020-09-17 Tom Tromey <tom@tromey.com>
840
841 * linespec.c (class decode_compound_collector)
842 <~decode_compound_collector>: Remove.
843 <m_unique_syms>: Now htab_up.
844 (decode_compound_collector::operator ()): Update.
845 (class symtab_collector) <~symtab_collector>: Remove.
846 <m_symtab_table>: Now htab_up.
847 (symtab_collector::operator ()): Update.
848
849 2020-09-17 Tom Tromey <tom@tromey.com>
850
851 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
852 (filename_seen_cache::clear): Update.
853 (~filename_seen_cache): Remove.
854 (filename_seen_cache::seen): Update.
855 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
856 htab_up.
857 <~filename_seen_cache>: Remove.
858 <traverse>: Update.
859
860 2020-09-17 Tom Tromey <tom@tromey.com>
861
862 * completer.c (completion_tracker::discard_completions)
863 (completion_tracker::~completion_tracker)
864 (completion_tracker::maybe_add_completion)
865 (completion_tracker::remove_completion)
866 (completion_tracker::recompute_lowest_common_denominator)
867 (completion_tracker::build_completion_result): Update.
868 * completer.h (class completion_tracker) <have_completions>:
869 Update.
870 <m_entries_hash>: Now htab_up.
871
872 2020-09-17 Tom Tromey <tom@tromey.com>
873
874 * breakpoint.c (ambiguous_names_p): Use htab_up.
875
876 2020-09-17 Tom Tromey <tom@tromey.com>
877
878 * auto-load.c (struct auto_load_pspace_info)
879 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
880 <loaded_script_files, loaded_script_texts>: Change type to
881 htab_up.
882 (~auto_load_pspace_info) Remove.
883 (init_loaded_scripts_info, maybe_add_script_file)
884 (maybe_add_script_text, auto_load_info_scripts): Update.
885
886 2020-09-17 Tom Tromey <tromey@adacore.com>
887
888 * c-exp.y (name_obstack): Now static.
889
890 2020-09-17 Chungyi Chi <demonic@csie.io>
891
892 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
893
894 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
895
896 * breakpoint.h (init_catchpoint): Change int parameter to bool.
897 (add_solib_catchpoint): Likewise.
898 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
899 to bool.
900 (add_solib_catchpoint): Change int parameter/variable to bool.
901 (catch_load_or_unload): Likewise.
902 (init_catchpoint): Likewise.
903 (create_fork_vfork_event_catchpoint): Likewise.
904 (catch_fork_command_1): Likewise.
905 (catch_exec_command_1): Likewise.
906
907 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
908
909 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
910 Change instance_flags to m_instance_flags.
911
912 2020-09-16 Tom Tromey <tromey@adacore.com>
913
914 PR gdb/26598:
915 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
916
917 2020-09-16 John Baldwin <jhb@FreeBSD.org>
918
919 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
920 PL_FLAG_EXEC.
921 (fbsd_nat_target::insert_exec_catchpoint)
922 (fbsd_nat_target::remove_exec_catchpoint): Always define.
923 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
924 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
925
926 2020-09-16 John Baldwin <jhb@FreeBSD.org>
927
928 * configure.ac: Remove check for kinfo_getvmmap().
929 * configure, config.in: Regenerate.
930 * fbsd-nat.c (fbsd_read_mapping): Remove
931 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
932 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
933 kinfo_get_vmmap() are always present.
934
935 2020-09-16 John Baldwin <jhb@FreeBSD.org>
936
937 * fbsd-nat.c: Always include support for
938 TARGET_OBJECT_SIGNAL_INFO.
939
940 2020-09-16 John Baldwin <jhb@FreeBSD.org>
941
942 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
943 sysctl and remove procfs fallback.
944
945 2020-09-16 John Baldwin <jhb@FreeBSD.org>
946
947 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
948 * fbsd-nat.h: Likewise.
949
950 2020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
951
952 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
953 argument.
954
955 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
956
957 * ada-lang.c (ada_language_data): Delete.
958 (ada_language): Remove references to ada_language_data.
959 * c-lang.c (c_language_data): Delete.
960 (c_language): Remove references to c_language_data.
961 (cplus_language_data): Delete.
962 (cplus_language): Remove references to cplus_language_data.
963 (asm_language_data): Delete.
964 (asm_language): Remove references to asm_language_data.
965 (minimal_language_data): Delete.
966 (minimal_language): Remove references to minimal_language_data.
967 * d-lang.c (d_language_data): Delete.
968 (d_language): Remove references to d_language_data.
969 * f-lang.c (f_language_data): Delete.
970 (f_language): Remove references to f_language_data.
971 * go-lang.c (go_language_data): Delete.
972 (go_language): Remove references to go_language_data.
973 * language.c (unknown_language_data): Delete.
974 (unknown_language): Remove references to unknown_language_data.
975 (auto_language_data): Delete.
976 (auto_language): Remove references to auto_language_data.
977 * language.h (language_data): Delete struct.
978 (language_defn): No longer inherit from language_data.
979 * m2-lang.c (m2_language_data): Delete.
980 (m2_language): Remove references to m2_language_data.
981 * objc-lang.c (objc_language_data): Delete.
982 (objc_language): Remove references to objc_language_data.
983 * opencl-lang.c (opencl_language_data): Delete.
984 (opencl_language): Remove references to opencl_language_data.
985 * p-lang.c (pascal_language_data): Delete.
986 (pascal_language): Remove references to pascal_language_data.
987 * rust-lang.c (rust_language_data): Delete.
988 (rust_language): Remove references to rust_language_data.
989
990 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
991
992 * ada-lang.c (ada_language_data): Remove la_op_print_tab
993 initializer.
994 (ada_language::opcode_print_table): New member function.
995 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
996 (c_language::opcode_print_table): New member function.
997 (cplus_language_data): Remove la_op_print_tab initializer.
998 (cplus_language::opcode_print_table): New member function.
999 (asm_language_data): Remove la_op_print_tab initializer.
1000 (asm_language::opcode_print_table): New member function.
1001 (minimal_language_data): Remove la_op_print_tab initializer.
1002 (minimal_language::opcode_print_table): New member function.
1003 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
1004 (d_language::opcode_print_table): New member function.
1005 * expprint.c (print_subexp_standard): Update call to
1006 opcode_print_table.
1007 (op_string): Likewise.
1008 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
1009 (f_language::opcode_print_table): New member function.
1010 * go-lang.c (go_language_data): Remove la_op_print_tab
1011 initializer.
1012 (go_language::opcode_print_table): New member function.
1013 * language.c (unknown_language_data): Remove la_op_print_tab
1014 initializer.
1015 (unknown_language::opcode_print_table): New member function.
1016 (auto_language_data): Remove la_op_print_tab initializer.
1017 (auto_language::opcode_print_table): New member function.
1018 * language.h (language_data): Remove la_op_print_tab field.
1019 (language_defn::opcode_print_table): Declare new member function.
1020 * m2-lang.c (m2_language_data): Remove la_op_print_tab
1021 initializer.
1022 (m2_language::opcode_print_table): New member function.
1023 * objc-lang.c (objc_language_data): Remove la_op_print_tab
1024 initializer.
1025 (objc_language::opcode_print_table): New member function.
1026 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
1027 initializer.
1028 (opencl_language::opcode_print_table): New member function.
1029 * p-lang.c (pascal_language_data): Remove la_op_print_tab
1030 initializer.
1031 (pascal_language::opcode_print_table): New member function.
1032 * rust-lang.c (rust_language_data): Remove la_op_print_tab
1033 initializer.
1034 (rust_language::opcode_print_table): New member function.
1035
1036 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1037
1038 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
1039 (ada_language::expression_ops): New member function.
1040 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
1041 (c_language::expression_ops): New member function.
1042 (cplus_language_data): Remove la_exp_desc initializer.
1043 (cplus_language::expression_ops): New member function.
1044 (asm_language_data): Remove la_exp_desc initializer.
1045 (asm_language::expression_ops): New member function.
1046 (minimal_language_data): Remove la_exp_desc initializer.
1047 (minimal_language::expression_ops): New member function.
1048 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
1049 (d_language::expression_ops): New member function.
1050 * eval.c (evaluate_subexp): Update call to expression_ops.
1051 * expprint.c (print_subexp): Likewise.
1052 (op_name): Likewise.
1053 (dump_subexp_body): Likewise.
1054 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
1055 (f_language::expression_ops): New member function.
1056 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
1057 (go_language::expression_ops): New member function.
1058 * language.c (language_defn::expression_ops): New function.
1059 (unknown_language_data): Remove la_exp_desc initializer.
1060 (auto_language_data): Likewise.
1061 * language.h (language_data): Remove la_exp_desc field.
1062 (language_defn::expression_ops): Declare new member function.
1063 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
1064 (m2_language::expression_ops): New member function.
1065 * objc-lang.c (objc_language_data): Remove la_exp_desc
1066 initializer.
1067 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
1068 initializer.
1069 (opencl_language::expression_ops): New member function.
1070 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
1071 * parse.c (operator_length): Update call to expression_ops.
1072 (exp_iterate): Likewise.
1073 * rust-lang.c (rust_language_data): Remove la_exp_desc
1074 initializer.
1075 (ruse_language::expression_ops): New member function.
1076
1077 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1078
1079 * ada-lang.c (ada_language_data): Remove la_varobj_ops
1080 initializer.
1081 (ada_language::varobj_ops): New member function.
1082 * c-lang.c (c_language_data): Remove la_varobj_ops
1083 initializer.
1084 (cplus_language_data): Likewise.
1085 (cplus_language::varobj_ops): New member function.
1086 (asm_language_data): Remove la_varobj_ops initializer.
1087 (minimal_language_data): Likewise.
1088 * d-lang.c (d_language_data): Likewise.
1089 * f-lang.c (f_language_data): Likewise.
1090 * go-lang.c (go_language_data): Likewise.
1091 * language.c (language_defn::varobj_ops): New function.
1092 (unknown_language_data): Remove la_varobj_ops
1093 initializer.
1094 (auto_language_data): Likewise.
1095 * language.h (language_data): Remove la_varobj_ops field.
1096 (language_defn::varobj_ops): Declare new member function.
1097 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
1098 * objc-lang.c (objc_language_data): Likewise.
1099 * opencl-lang.c (opencl_language_data): Likewise.
1100 * p-lang.c (pascal_language_data): Likewise.
1101 * rust-lang.c (rust_language_data): Likewise.
1102 * varobj.c (varobj_create): Update call to varobj_ops.
1103 * varobj.h (default_varobj_ops): Delete define.
1104
1105 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1106
1107 * ada-lang.c (ada_language_data): Remove la_macro_expansion
1108 initializer.
1109 * c-lang.c (c_language_data): Likewise.
1110 (c_language::macro_expansion): New member function.
1111 (cplus_language_data): Likewise.
1112 (cplus_language::macro_expansion): New member function.
1113 (asm_language_data): Likewise.
1114 (asm_language::macro_expansion): New member function.
1115 (minimal_language_data): Likewise.
1116 (minimal_language::macro_expansion): New member function.
1117 * d-lang.c (d_language_data): Remove la_macro_expansion
1118 initializer.
1119 * f-lang.c (f_language_data): Likewise.
1120 * go-lang.c (go_language_data): Likewise.
1121 * language.c (unknown_language_data): Likewise.
1122 (auto_language_data): Likewise.
1123 * language.h (language_data): Remove la_macro_expansion field.
1124 (language_defn::macro_expansion): New member function.
1125 * m2-lang.c (m2_language_data): Remove la_macro_expansion
1126 initializer.
1127 * objc-lang.c (objc_language_data): Likewise.
1128 (objc_language::macro_expansion): New member function.
1129 * opencl-lang.c (opencl_language_data): Likewise.
1130 (opencl_language::macro_expansion): New member function.
1131 * p-lang.c (pascal_language_data): Remove la_macro_expansion
1132 initializer.
1133 * rust-lang.c (rust_language_data): Likewise.
1134 * symtab.c (default_collect_symbol_completion_matches_break_on):
1135 Update call to macro_expansion.
1136
1137 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1138
1139 * ada-lang.c (ada_language_data): Remove la_array_ordering
1140 initializer.
1141 * c-lang.c (c_language_data): Likewise.
1142 (cplus_language_data): Likewise.
1143 (asm_language_data): Likewise.
1144 (minimal_language_data): Likewise.
1145 * d-lang.c (d_language_data): Likewise.
1146 * dwarf2/read.c (read_array_order): Update for call to
1147 array_ordering.
1148 * f-lang.c (f_language_data): Remove la_array_ordering
1149 initializer.
1150 (f_language::array_ordering): New member function.
1151 * go-lang.c (go_language_data): Remove la_array_ordering
1152 initializer.
1153 * language.c (unknown_language_data): Likewise.
1154 (auto_language_data): Likewise.
1155 * language.h (language_data): Delete la_array_ordering field.
1156 (language_defn::array_ordering): New member function.
1157 * m2-lang.c (m2_language_data): Remove la_array_ordering
1158 initializer.
1159 * objc-lang.c (objc_language_data): Likewise.
1160 * opencl-lang.c (opencl_language_data): Likewise.
1161 * p-lang.c (pascal_language_data): Likewise.
1162 * rust-lang.c (rust_language_data): Likewise.
1163
1164 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1165
1166 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
1167 initializer.
1168 * c-lang.c (c_language_data): Likewise.
1169 (cplus_language_data): Likewise.
1170 (asm_language_data): Likewise.
1171 (minimal_language_data): Likewise.
1172 * d-lang.c (d_language_data): Likewise.
1173 * f-lang.c (f_language_data): Likewise.
1174 (f_language::case_sensitivity): New member function.
1175 * go-lang.c (go_language_data): Remove la_case_sensitivity
1176 initializer.
1177 * language.c (enum case_mode): Moved here from language.h.
1178 (case_mode): Make static.
1179 (show_case_command): Update for case_sensitivity being a method.
1180 (set_case_command): Likewise.
1181 (set_range_case): Likewise.
1182 (unknown_language_data): Remove la_case_sensitivity initializer.
1183 (auto_language_data): Likewise.
1184 * language.h (case_mode): Delete, move enum declaration to
1185 language.c.
1186 (language_data): Delete la_case_sensitivity field.
1187 (language_defn::case_sensitivity): New member function.
1188 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
1189 initializer.
1190 * objc-lang.c (objc_language_data): Likewise.
1191 * opencl-lang.c (opencl_language_data): Likewise.
1192 * p-lang.c (pascal_language_data): Likewise.
1193 * rust-lang.c (rust_language_data): Likewise.
1194
1195 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1196
1197 * ada-lang.c (ada_language_data): Remove la_range_check
1198 initializer.
1199 * c-lang.c (c_language_data): Likewise.
1200 (cplus_language_data): Likewise.
1201 (asm_language_data): Likewise.
1202 (minimal_language_data): Likewise.
1203 * d-lang.c (d_language_data): Likewise.
1204 * f-lang.c (f_language_data): Likewise.
1205 (f_language::range_checking_on_by_default): New member function.
1206 * go-lang.c (go_language_data): Remove la_range_check initializer.
1207 * language.c (enum range_mode): Moved here from language.h.
1208 (range_mode): Made static.
1209 (show_range_command): Update to use
1210 range_checking_on_by_default.
1211 (set_range_command): Likewise.
1212 (set_range_case): Likewise.
1213 (unknown_language_data): Remove la_range_check initializer.
1214 (auto_language_data): Likewise.
1215 * language.h (range_mode): Delete. Enum definition moved to
1216 language.c.
1217 (language_data): Remove la_range_check field.
1218 (language_defn::range_checking_on_by_default): New member
1219 function.
1220 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
1221 (m2_language::range_checking_on_by_default): New member function.
1222 * objc-lang.c (objc_language_data): Remove la_range_check
1223 initializer.
1224 * opencl-lang.c (opencl_language_data): Likewise.
1225 * p-lang.c (pascal_language_data): Likewise.
1226 (pascal_language::range_checking_on_by_default): New member
1227 function.
1228 * rust-lang.c (rust_language_data): Remove la_range_check
1229 initializer.
1230 (rust_language::range_checking_on_by_default): New member
1231 function.
1232
1233 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1234
1235 * dwarf2/read.c (dwarf2_physname): Remove special case for
1236 language_go.
1237 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
1238 member function.
1239
1240 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1241
1242 * ada-lang.c (ada_language_data): Remove
1243 la_store_sym_names_in_linkage_form_p initializer.
1244 (ada_language::store_sym_names_in_linkage_form_p): New member
1245 function.
1246 * c-lang.c (c_language_data): Remove
1247 la_store_sym_names_in_linkage_form_p initializer.
1248 (c_language::store_sym_names_in_linkage_form_p): New member
1249 function.
1250 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
1251 initializer.
1252 (asm_language_data): Likewise.
1253 (asm_language::store_sym_names_in_linkage_form_p): New member
1254 function.
1255 (minimal_language_data): Remove
1256 la_store_sym_names_in_linkage_form_p initializer.
1257 (minimal_language::store_sym_names_in_linkage_form_p): New member
1258 function.
1259 * d-lang.c (d_language_data): Remove
1260 la_store_sym_names_in_linkage_form_p initializer.
1261 * dwarf2/read.c (dwarf2_physname): Update call to
1262 store_sym_names_in_linkage_form_p.
1263 * f-lang.c (f_language_data): Remove
1264 la_store_sym_names_in_linkage_form_p initializer.
1265 * go-lang.c (go_language_data): Remove
1266 la_store_sym_names_in_linkage_form_p initializer.
1267 * language.c (unknown_language_data): Remove
1268 la_store_sym_names_in_linkage_form_p initializer.
1269 (unknown_language::store_sym_names_in_linkage_form_p): New member
1270 function.
1271 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
1272 initializer.
1273 (auto_language::store_sym_names_in_linkage_form_p): New member
1274 function.
1275 * language.h (language_data): Remove
1276 la_store_sym_names_in_linkage_form_p member variable.
1277 (language_defn::store_sym_names_in_linkage_form_p): New member
1278 function.
1279 * m2-lang.c (m2_language_data): Remove
1280 la_store_sym_names_in_linkage_form_p initializer.
1281 * objc-lang.c (objc_language_data): Likewise.
1282 * opencl-lang.c (opencl_language_data): Likewise.
1283 * p-lang.c (pascal_language_data): Likewise.
1284 * rust-lang.c (rust_language_data): Likewise.
1285
1286 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1287
1288 * ada-lang.c (ada_language_data): Remove string_lower_bound
1289 initializer.
1290 * c-lang.c (c_language_data): Likewise.
1291 (cplus_language_data): Likewise.
1292 (asm_language_data): Likewise.
1293 (minimal_language_data): Likewise.
1294 * d-lang.c (d_language_data): Likewise.
1295 * f-lang.c (f_language_data): Likewise.
1296 * go-lang.c (go_language_data): Likewise.
1297 * language.c (unknown_language_data): Likewise.
1298 (auto_language_data): Likewise.
1299 * language.h (language_data): Remove string_lower_bound field.
1300 (language_defn::string_lower_bound): New member function.
1301 * m2-lang.c (m2_language_data): Remove string_lower_bound
1302 initializer.
1303 (m2_language::string_lower_bound): New member function.
1304 * objc-lang.c (objc_language_data): Remove string_lower_bound
1305 initializer.
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 * valops.c (value_cstring): Update call to string_lower_bound.
1310 (value_string): Likewise.
1311 * value.c (allocate_repeated_value): Likewise.
1312
1313 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1314
1315 * valops.c (value_repeat): Fix incorrect argument name in comment.
1316
1317 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1318
1319 * ada-lang.c (ada_language_data): Remove c_style_arrays
1320 initializer.
1321 (ada_language::c_style_arrays_p): New member fuction.
1322 * c-lang.c (c_language_data): Remove c_style_arrays
1323 initializer.
1324 (cplus_language_data): Likewise.
1325 (asm_language_data): Likewise.
1326 (minimal_language_data): Likewise.
1327 * d-lang.c (d_language_data): Likewise.
1328 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
1329 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
1330 (f_language::c_style_arrays_p): New member function.
1331 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
1332 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
1333 * language.c (unknown_language_data): Remove c_style_arrays
1334 initializer.
1335 (auto_language_data): Likewise.
1336 * language.h (language_data): Remove c_style_arrays field.
1337 (language_defn::c_style_arrays_p): New member function.
1338 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
1339 (m2_language::c_style_arrays_p): New member function.
1340 * objc-lang.c (objc_language_data): Remove c_style_arrays
1341 initializer.
1342 * opencl-lang.c (opencl_language_data): Likewise.
1343 * p-lang.c (pascal_language_data): Likewise.
1344 * rust-lang.c (rust_language_data): Likewise.
1345 * valarith.c (value_subscript): Update call to c_style_arrays_p,
1346 and update local variable to a bool.
1347 * valops.c (value_cast): Update call to c_style_arrays_p.
1348 (value_array): Likewise.
1349 * value.c (coerce_array): Likewise.
1350
1351 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1352
1353 * ada-lang.c (ada_language_data): Remove la_language initializer.
1354 * c-lang.c (c_language_data): Likewise.
1355 (cplus_language_data): Likewise.
1356 (asm_language_data): Likewise.
1357 (minimal_language_data): Likewise.
1358 * d-lang.c (d_language_data): Likewise.
1359 * f-lang.c (f_language_data): Likewise.
1360 * go-lang.c (go_language_data): Likewise.
1361 * language.c (unknown_language_data): Likewise.
1362 (auto_language_data): Likewise.
1363 * language.h (language_data): Remove la_language field.
1364 (language_defn::language_defn): Initialise la_language field.
1365 (language_defn::la_language): New member variable.
1366 * m2-lang.c (m2_language_data): Remove la_language field.
1367 * objc-lang.c (objc_language_data): Likewise.
1368 * opencl-lang.c (opencl_language_data): Likewise.
1369 * p-lang.c (pascal_language_data): Likewise.
1370 * rust-lang.c (rust_language_data): Likewise.
1371
1372 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1373
1374 * ada-lang.c (ada_extensions): Delete, moved into
1375 ada_language::filename_extensions.
1376 (ada_language_data): Remove la_filename_extensions initializer.
1377 (ada_language::filename_extensions): New member function.
1378 * c-lang.c (c_extensions): Delete, moved into
1379 c_language::filename_extensions.
1380 (c_language_data): Remove la_filename_extensions initializer.
1381 (c_language::filename_extensions): New member function.
1382 (cplus_extensions): Delete, moved into
1383 cplus_language::filename_extensions.
1384 (cplus_language_data): Remove la_filename_extensions initializer.
1385 (cplus_language::filename_extensions): New member function.
1386 (asm_extensions): Delete, moved into
1387 asm_language::filename_extensions.
1388 (asm_language_data): Remove la_filename_extensions initializer.
1389 (asm_language::filename_extensions): New member function.
1390 (minimal_language_data): Remove la_filename_extensions
1391 initializer.
1392 * d-lang.c (d_extensions): Delete, moved into
1393 d_language::filename_extensions.
1394 (d_language_data): Remove la_filename_extensions initializer.
1395 (d_language::filename_extensions): New member function.
1396 * f-lang.c (f_extensions): Delete, moved into
1397 f_language::filename_extensions.
1398 (f_language_data): Remove la_filename_extensions initializer.
1399 (f_language::filename_extensions): New member function.
1400 * go-lang.c (go_language_data): Remove la_filename_extensions
1401 initializer.
1402 * language.c (add_set_language_command): Update now that
1403 filename_extensions returns a vector.
1404 (unknown_language_data): Remove la_filename_extensions
1405 initializer.
1406 (auto_language_data): Likewise.
1407 * language.h (language_data): Remove la_filename_extensions field.
1408 (language_defn::filename_extensions): New member function.
1409 * m2-lang.c (m2_language_data): Remove la_filename_extensions
1410 initializer.
1411 * objc-lang.c (objc_extensions): Delete, moved into
1412 objc_language::filename_extensions.
1413 (objc_language_data): Remove la_filename_extensions initializer.
1414 (objc_language::filename_extensions): New member function.
1415 * opencl-lang.c (opencl_language_data): Remove
1416 la_filename_extensions initializer.
1417 * p-lang.c (pascal_extensions): Delete, moved into
1418 pascal_language::filename_extensions.
1419 (pascal_language_data): Remove la_filename_extensions initializer.
1420 (pascal_language::filename_extensions): New member function.
1421 * rust-lang.c (rust_extensions): Delete, moved into
1422 rust_language::filename_extensions.
1423 (rust_language_data): Remove la_filename_extensions initializer.
1424 (rust_language::filename_extensions): New member function.
1425 * symfile.c (add_filename_language): Add new assert.
1426
1427 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1428
1429 * ada-lang.c (ada_language_data): Remove la_name and
1430 la_natural_name initializers.
1431 (ada_language::name): New member function.
1432 (ada_language::natural_name): New member function.
1433 * c-lang.c (c_language_data): Remove la_name and
1434 la_natural_name initializers.
1435 (c_language::name): New member function.
1436 (c_language::natural_name): New member function.
1437 (cplus_language_data): Remove la_name and
1438 la_natural_name initializers.
1439 (cplus_language::name): New member function.
1440 (cplus_language::natural_name): New member function.
1441 (asm_language_data): Remove la_name and
1442 la_natural_name initializers.
1443 (asm_language::name): New member function.
1444 (asm_language::natural_name): New member function.
1445 (minimal_language_data): Remove la_name and
1446 la_natural_name initializers.
1447 (minimal_language::name): New member function.
1448 (minimal_language::natural_name): New member function.
1449 * compile/compile.c (compile_to_object): Update call to
1450 lanugage_defn::name.
1451 * d-lang.c (d_language_data): Remove la_name and
1452 la_natural_name initializers.
1453 (d_language::name): New member function.
1454 (d_language::natural_name): New member function.
1455 * expprint.c (print_subexp_standard): Update call to
1456 language_defn::name.
1457 (dump_raw_expression): Likewise
1458 (dump_prefix_expression): Likewise.
1459 * f-lang.c (f_language_data): Remove la_name and
1460 la_natural_name initializers.
1461 (f_language::name): New member function.
1462 (f_language::natural_name): New member function.
1463 * go-lang.c (go_language_data): Remove la_name and
1464 la_natural_name initializers.
1465 (go_language::name): New member function.
1466 (go_language::natural_name): New member function.
1467 * language.c (show_language_command): Update call to
1468 language_defn::name.
1469 (set_language_command): Likewise.
1470 (language_enum): Likewise.
1471 (language_str): Likewise.
1472 (add_set_language_command): Likewise, use
1473 language_defn::natural_name in the doc string.
1474 (unknown_language_data): Remove la_name and
1475 la_natural_name initializers.
1476 (unknown_language::name): New member function.
1477 (unknown_language::natural_name): New member function.
1478 (auto_language_data): Remove la_name and
1479 la_natural_name initializers.
1480 (auto_language::name): New member function.
1481 (auto_language::natural_name): New member function.
1482 (language_lookup_primitive_type_as_symbol): Update call to
1483 language_defn::name.
1484 * language.h (language_data): Remove la_name and la_natural_name
1485 member variables.
1486 (language_defn::name): New member function.
1487 (language_defn::natural_name): New member function.
1488 * m2-lang.c (m2_language_data): Remove la_name and
1489 la_natural_name initializers.
1490 (m2_language::name): New member function.
1491 (m2_language::natural_name): New member function.
1492 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
1493 language_defn::natural_name.
1494 * objc-lang.c (objc_language_data): Remove la_name and
1495 la_natural_name initializers.
1496 (objc_language::name): New member function.
1497 (objc_language::natural_name): New member function.
1498 * opencl-lang.c (opencl_language_data): Remove la_name and
1499 la_natural_name initializers.
1500 (opencl_language::name): New member function.
1501 (opencl_language::natural_name): New member function.
1502 * p-lang.c (pascal_language_data): Remove la_name and
1503 la_natural_name initializers.
1504 (pascal_language::name): New member function.
1505 (pascal_language::natural_name): New member function.
1506 * rust-lang.c (rust_language_data): Remove la_name and
1507 la_natural_name initializers.
1508 (rust_language::name): New member function.
1509 (rust_language::natural_name): New member function.
1510 * symtab.c (lookup_language_this): Update call to
1511 language_defn::name.
1512
1513 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1514
1515 * ada-lang.c (ada_language_data): Remove la_name_of_this
1516 initializer.
1517 * ax-gdb.c (gen_expr): Update call to name_of_this.
1518 * c-exp.y (classify_name): Likewise.
1519 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
1520 (cplus_language_data): Likewise.
1521 (cplus_language::name_of_this): New member function.
1522 (asm_language_data): Remove la_name_of_this initializer.
1523 (minimal_language_data): Likewise.
1524 * d-lang.c (d_language_data): Likewise.
1525 (d_language::name_of_this): New member function.
1526 * expprint.c (print_subexp_standard): Update call to name_of_this.
1527 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
1528 * go-lang.c (go_language_data): Likewise.
1529 * language.c (unknown_language_data): Likewise.
1530 (unknown_language::name_of_this): New member function.
1531 (auto_language_data): Remove la_name_of_this initializer.
1532 (auto_language::name_of_this): New member function.
1533 * language.h (language_data): Delete la_name_of_this member
1534 variable.
1535 (language_defn::name_of_this): New member function.
1536 * m2-lang.c (m2_language_data): Remove la_name_of_this
1537 initializer.
1538 * objc-lang.c (objc_language_data): Likewise.
1539 (objc_language::name_of_this): New member function.
1540 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
1541 initializer.
1542 * p-lang.c (pascal_language_data): Likewise.
1543 (pascal_language::name_of_this): New member function.
1544 * rust-lang.c (rust_language_data): Remove la_name_of_this
1545 initializer.
1546 * symtab.c (lookup_language_this): Update call to name_of_this.
1547 (lookup_symbol_aux): Likewise.
1548 * valops.c (value_of_this): Likewise.
1549
1550 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1551
1552 * ada-lang.c (ada_language_data): Remove
1553 la_struct_too_deep_ellipsis initializer.
1554 (ada_language::struct_too_deep_ellipsis): New member function.
1555 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
1556 initializer.
1557 (cplus_language_data): Likewise.
1558 (asm_language_data): Likewise.
1559 (minimal_language_data): Likewise.
1560 * cp-valprint.c (cp_print_value): Update call to
1561 struct_too_deep_ellipsis.
1562 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
1563 initializer.
1564 * f-lang.c (f_language_data): Likewise.
1565 (f_language::struct_too_deep_ellipsis): New member function.
1566 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
1567 initializer.
1568 * language.c (unknown_language_data): Likewise.
1569 (auto_language_data): Likewise.
1570 * language.h (language_data): Delete la_struct_too_deep_ellipsis
1571 member variable.
1572 (language_defn::struct_too_deep_ellipsis): New member function.
1573 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
1574 initializer.Q
1575 * objc-lang.c (objc_language_data): Likewise.
1576 * opencl-lang.c (opencl_language_data): Likewise.
1577 * p-lang.c (pascal_language_data): Likewise.
1578 * rust-lang.c (rust_language_data): Likewise.
1579 * valprint.c (val_print_check_max_depth): Update call to
1580 struct_too_deep_ellipsis.
1581
1582 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
1583
1584 * MAINTAINERS (Write After Approval): Add myself.
1585
1586 2020-09-15 Tom Tromey <tom@tromey.com>
1587
1588 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
1589 Remove.
1590
1591 2020-09-15 Tom Tromey <tom@tromey.com>
1592
1593 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
1594 and TYPE_CODE_METHODPTR cases.
1595 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
1596 (c_value_print_inner): Update.
1597 * valprint.c (generic_value_print_memberptr): New function, from
1598 c_value_print_memberptr.
1599 (generic_value_print): Use it. Call cplus_print_method_ptr.
1600
1601 2020-09-15 Tom Tromey <tromey@adacore.com>
1602
1603 * python/python-internal.h (PyInt_FromLong): Remove define.
1604 * python/py-value.c (convert_value_from_python): Use
1605 gdb_py_object_from_longest.
1606 * python/py-type.c (typy_get_code): Use
1607 gdb_py_object_from_longest.
1608 * python/py-symtab.c (salpy_get_line): Use
1609 gdb_py_object_from_longest.
1610 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
1611 gdb_py_object_from_longest.
1612 * python/py-record.c (recpy_gap_reason_code): Use
1613 gdb_py_object_from_longest.
1614 * python/py-record-btrace.c (recpy_bt_insn_size)
1615 (recpy_bt_func_level, btpy_list_count): Use
1616 gdb_py_object_from_longest.
1617 * python/py-infthread.c (gdbpy_create_ptid_object): Use
1618 gdb_py_object_from_longest. Fix error handling.
1619 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
1620 gdb_py_object_from_longest.
1621 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
1622 gdb_py_object_from_longest.
1623 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
1624 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
1625 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
1626
1627 2020-09-15 Tom Tromey <tromey@adacore.com>
1628
1629 * python/python.c (gdbpy_parameter_value): Use
1630 gdb_py_object_from_ulongest.
1631
1632 2020-09-15 Tom Tromey <tromey@adacore.com>
1633
1634 * python/py-infevents.c (create_register_changed_event_object):
1635 Use gdb_py_object_from_longest.
1636 * python/py-exitedevent.c (create_exited_event_object): Use
1637 gdb_py_object_from_longest.
1638
1639 2020-09-15 Tom Tromey <tromey@adacore.com>
1640
1641 * python/python.c (gdbpy_parameter_value): Use
1642 gdb_py_object_from_longest.
1643 * python/py-type.c (convert_field, typy_range): Use
1644 gdb_py_object_from_longest.
1645 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
1646 gdb_py_object_from_longest.
1647 * python/py-lazy-string.c (stpy_get_length): Use
1648 gdb_py_object_from_longest.
1649 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
1650 gdb_py_object_from_longest.
1651 * python/py-infevents.c (create_memory_changed_event_object): Use
1652 gdb_py_object_from_longest.
1653 * python/py-inferior.c (infpy_get_num): Use
1654 gdb_py_object_from_longest.
1655 (infpy_get_pid): Likewise.
1656
1657 2020-09-15 Tom Tromey <tromey@adacore.com>
1658
1659 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
1660 defines.
1661 * python/py-value.c (valpy_long): Use
1662 gdb_py_object_from_ulongest.
1663 * python/py-symtab.c (salpy_get_pc): Use
1664 gdb_py_object_from_ulongest.
1665 (salpy_get_last): Likewise.
1666 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
1667 gdb_py_object_from_ulongest.
1668 * python/py-lazy-string.c (stpy_get_address): Use
1669 gdb_py_object_from_ulongest.
1670 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
1671 * python/py-arch.c (archpy_disassemble): Use
1672 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
1673 error handling.
1674
1675 2020-09-15 Tom Tromey <tromey@adacore.com>
1676
1677 * python/python-internal.h (gdb_py_long_from_longest): Remove
1678 defines.
1679 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
1680 * python/py-type.c (convert_field, typy_get_sizeof): Use
1681 gdb_py_object_from_longest.
1682 * python/py-record-btrace.c (btpy_list_index): Use
1683 gdb_py_object_from_longest.
1684
1685 2020-09-15 Tom Tromey <tromey@adacore.com>
1686
1687 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
1688 * python/py-record.c (recpy_element_number): Use
1689 gdb_py_object_from_longest.
1690 (recpy_gap_number): Likewise.
1691
1692 2020-09-15 Tom Tromey <tromey@adacore.com>
1693
1694 * top.c (ui::ui): Update.
1695 (highest_ui_num): Remove.
1696 * top.h (struct ui) <num>: Remove.
1697
1698 2020-09-15 Tom Tromey <tromey@adacore.com>
1699
1700 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
1701 * ui-style.c (ansi_regex_text): Now array.
1702 * rust-exp.y (number_regex_text): Now array.
1703 * linespec.c (linespec_quote_characters): Now array.
1704 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
1705 Now arrays.
1706
1707 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1708
1709 * debuginfod-support.c (debuginfod_client_deleter): New.
1710 (debuginfod_client_up): New.
1711 (debuginfod_init): Return debuginfod_client_up.
1712 (debuginfod_source_query): Adjust.
1713 (debuginfod_debuginfo_query): Adjust.
1714
1715 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1716
1717 * debuginfod-support.c (debuginfod_source_query): Use
1718 make_unique_xstrdup.
1719
1720 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1721
1722 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
1723 with `type::instance_flags`.
1724
1725 2020-09-14 Michael Mullin <masmullin@gmail.com>
1726
1727 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
1728 Remove baton parameter.
1729
1730 2020-09-14 Pedro Alves <pedro@palves.net>
1731
1732 * Makefile.in (SELFTESTS_SRCS): Add
1733 unittests/enum-flags-selftests.c.
1734 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
1735 btrace_function_flags instead of enum btrace_function_flag.
1736 * compile/compile-c-types.c (convert_qualified): Use
1737 enum_flags::raw.
1738 * compile/compile-cplus-symbols.c (convert_one_symbol)
1739 (convert_symbol_bmsym):
1740 * compile/compile-cplus-types.c (compile_cplus_convert_method)
1741 (compile_cplus_convert_struct_or_union_methods)
1742 (compile_cplus_instance::convert_qualified_base):
1743 * go-exp.y (parse_string_or_char): Add cast to int.
1744 * unittests/enum-flags-selftests.c: New file.
1745 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
1746 type to btrace_thread_flags from btrace_thread_flag.
1747 (record_btrace_cancel_resume, record_btrace_step_thread): Change
1748 local's type to btrace_thread_flags from btrace_thread_flag. Add
1749 cast in DEBUG call.
1750
1751 2020-09-14 Pedro Alves <pedro@palves.net>
1752
1753 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
1754 * gdbtypes.c (address_space_name_to_int): Rename to ...
1755 (address_space_name_to_type_instance_flags): ... this.
1756 (address_space_int_to_name): Rename to ...
1757 (address_space_type_instance_flags_to_name): ... this.
1758 * gdbtypes.h (address_space_name_to_int): Rename to ...
1759 (address_space_name_to_type_instance_flags): ... this.
1760 (address_space_int_to_name): Rename to ...
1761 (address_space_type_instance_flags_to_name): ... this.
1762 * type-stack.c (type_stack::insert): Adjust to rename.
1763 * type-stack.h (type_stack::insert): Likewise.
1764
1765 2020-09-14 Pedro Alves <pedro@palves.net>
1766 Andrew Burgess <andrew.burgess@embecosm.com>
1767
1768 * avr-tdep.c (avr_address_class_type_flags): Return
1769 type_instance_flags.
1770 (avr_address_class_type_flags_to_name): Take a
1771 type_instance_flags.
1772 (avr_address_class_name_to_type_flags): Return bool and take a
1773 type_instance_flags.
1774 * d-lang.c (build_d_types): Use type::set_instance_flags.
1775 * ft32-tdep.c (ft32_address_class_type_flags): Return
1776 type_instance_flags.
1777 (ft32_address_class_type_flags_to_name): Take a
1778 type_instance_flags.
1779 (ft32_address_class_name_to_type_flags): Return bool and take a
1780 type_instance_flags.
1781 (ft32_gdbarch_init): Use type::set_instance_flags.
1782 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
1783 * gdbarch.h, gdbarch.c: Regenerate.
1784 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
1785 (address_class_name_to_type_flags): Use type_instance_flags and
1786 bool.
1787 * gdbtypes.c (address_space_name_to_int)
1788 (address_space_int_to_name, make_qualified_type): Use
1789 type_instance_flags.
1790 (make_qualified_type): Use type_instance_flags and
1791 type::set_instance_flags.
1792 (make_type_with_address_space, make_cv_type, make_vector_type)
1793 (check_typedef): Use type_instance_flags.
1794 (recursive_dump_type): Cast type_instance_flags to unsigned for
1795 printing.
1796 (copy_type_recursive): Use type::set_instance_flags.
1797 (gdbtypes_post_init): Use type::set_instance_flags.
1798 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
1799 <m_instance_flags>: ... this.
1800 <instance_flags, set_instance_flags>: New methods.
1801 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
1802 (SET_TYPE_INSTANCE_FLAGS): New.
1803 (address_space_name_to_int, address_space_int_to_name)
1804 (make_type_with_address_space): Pass flags using
1805 type_instance_flags instead of int.
1806 * stabsread.c (cleanup_undefined_types_noname): Use
1807 type::set_instance_flags.
1808 * s390-tdep.c (s390_address_class_type_flags): Return
1809 type_instance_flags.
1810 (s390_address_class_type_flags_to_name): Take a
1811 type_instance_flags.
1812 (s390_address_class_name_to_type_flags): Return bool and take a
1813 type_instance_flags.
1814 * type-stack.c (type_stack::follow_types): Use
1815 type_instance_flags.
1816 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
1817
1818 2020-09-14 Tom Tromey <tromey@adacore.com>
1819
1820 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
1821 * x86-tdep.c (x86_is_thunk_register_name)
1822 (x86_in_indirect_branch_thunk): Update.
1823 * sparc64-tdep.c (sparc64_fpu_register_names)
1824 (sparc64_cp0_register_names, sparc64_register_names)
1825 (sparc64_pseudo_register_names): Now const.
1826 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
1827 cp0_registers_num>: Now const.
1828 * sparc-tdep.c (sparc_core_register_names)
1829 (sparc32_fpu_register_names, sparc32_cp0_register_names)
1830 (sparc32_pseudo_register_names): Now const.
1831 (validate_tdesc_registers): Update.
1832 * rust-lang.c (rust_extensions): Now const.
1833 * p-lang.c (p_extensions): Now const.
1834 * objc-lang.c (objc_extensions): Now const.
1835 * nto-tdep.c (nto_thread_state_str): Now const.
1836 * moxie-tdep.c (moxie_register_names): Now const.
1837 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
1838 Now const.
1839 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
1840 (mips_linux_reg_names): Now const.
1841 (mips_gdbarch_init): Update.
1842 * microblaze-tdep.c (microblaze_register_names): Now const.
1843 * m68k-tdep.c (m68k_register_names): Now const.
1844 * m32r-tdep.c (m32r_register_names): Now const.
1845 * ia64-tdep.c (ia64_register_names): Now const.
1846 * i386-tdep.h (struct gdbarch_tdep) <register_names,
1847 ymmh_register_names, ymm16h_regnum, mpx_register_names,
1848 k_register_names, zmmh_register_names, xmm_avx512_register_names,
1849 ymm_avx512_register_names, pkeys_register_names>: Now const.
1850 * i386-tdep.c (i386_register_names, i386_zmm_names)
1851 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
1852 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
1853 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
1854 * f-lang.c (f_extensions): Now const.
1855 * d-lang.c (d_extensions): Now const.
1856 * csky-tdep.c (csky_register_names): Now const.
1857 * charset.c (default_charset_names, charset_enum): Now const.
1858 (_initialize_charset): Update.
1859 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
1860 const.
1861 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
1862 (bsd_uthread_solib_loaded): Update.
1863 (bsd_uthread_state): Now const.
1864 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
1865 (amd64_ymm_avx512_names, amd64_ymmh_names)
1866 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
1867 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
1868 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
1869 (amd64_dword_names): Now const.
1870 * agent.c (can_use_agent_enum): Now const.
1871 * ada-tasks.c (task_states, long_task_states): Now const.
1872 * ada-lang.c (known_runtime_file_name_patterns)
1873 (known_auxiliary_function_name_patterns, attribute_names)
1874 (standard_exc, ada_extensions): Now const.
1875
1876 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1877
1878 * bcache.h (struct bcache) <bcache>: Remove constructor.
1879 <m_hash_function, m_compare_function>: Remove.
1880 <~bcache>: Make virtual.
1881 <compare>: Remove static method, introduce virtual method.
1882 <default_hash>: Remove.
1883 <hash>: New virtual method.
1884 * bcache.c (bcache::expand_hash_table): Update.
1885 (bcache::insert): Update.
1886 (bcache::hash): New.
1887 (bcache::compare): Update comment and parameter names.
1888 * gdbtypes.c (types_deeply_equal): Update.
1889 * psymtab.h (struct psymbol_bcache): New struct.
1890 (class psymtab_storage) <psymtab_storage>: Make default.
1891 <psymbol_cache>: Change type to psymbol_bcache.
1892 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
1893 (psymbol_hash): Change to...
1894 (psymbol_bcache::hash): ... this.
1895 (psymbol_compare): Change to...
1896 (psymbol_bcache::compare): ... this.
1897
1898 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1899
1900 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
1901 checking for initial lwp.
1902
1903 2020-09-14 Tom Tromey <tromey@adacore.com>
1904
1905 * m68k-tdep.c (m68k_extract_return_value): Use
1906 pointer_result_regnum.
1907 (m68k_store_return_value): Likewise.
1908 (m68k_reg_struct_return_p): Handle vectors and arrays.
1909 (m68k_return_value): Handle arrays.
1910 (m68k_svr4_return_value): Fix single-element aggregate handling.
1911 Handle long double. Adjust for embedded ABI.
1912 (m68k_svr4_init_abi): Set pointer_result_regnum.
1913 (m68k_embedded_init_abi): New function.
1914 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
1915 (m68k_osabi_sniffer): New function.
1916 (_initialize_m68k_tdep): Register osabi sniffer.
1917 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
1918 member.
1919
1920 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1921
1922 * xml-support.c (xml_fetch_content_from_file): Replace xfree
1923 with gdb::unique_xmalloc_ptr<char>.
1924
1925 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1926
1927 * xml-support.h (xml_fetch_another): Change type to be a
1928 function_view.
1929 (xml_process_xincludes): Remove baton parameter.
1930 (xml_fetch_content_from_file): Change baton parameter to
1931 dirname.
1932 * xml-support.c (struct xinclude_parsing_data)
1933 <xinclude_parsing_data>: Remove baton parameter.
1934 <fetcher_baton>: Remove.
1935 (xinclude_start_include): Adjust.
1936 (xml_process_xincludes): Adjust.
1937 (xml_fetch_content_from_file): Replace baton parameter with
1938 dirname.
1939 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
1940 (xml_init_syscalls_info): Use a lambda.
1941 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
1942 (file_read_description_xml): Use a lambda.
1943 (fetch_available_features_from_target): Change baton parameter
1944 to target_ops.
1945 (target_read_description_xml): Use a lambda.
1946 (target_fetch_description_xml): Use a lambda.
1947 (string_read_description_xml): Update.
1948
1949 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1950
1951 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
1952 uses with type::endianity_is_not_default.
1953
1954 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1955
1956 * gdbtypes.h (struct type) <endianity_is_not_default,
1957 set_endianity_is_not_default>: New methods.
1958 (TYPE_ENDIANITY_NOT_DEFAULT): Use
1959 type::endianity_is_not_default, change all write call sites to
1960 use type::set_endianity_is_not_default.
1961
1962 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1963
1964 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
1965 uses with type::is_fixed_instance.
1966
1967 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1968
1969 * gdbtypes.h (struct type) <is_fixed_instance,
1970 set_is_fixed_instance>: New methods.
1971 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
1972 write call sites to use type::set_is_fixed_instance.
1973
1974 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1975
1976 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
1977 uses with type::is_gnu_ifunc.
1978
1979 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1980
1981 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
1982 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
1983 use type::set_is_gnu_ifunc.
1984
1985 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1986
1987 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
1988 uses with type::stub_is_supported.
1989
1990 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1991
1992 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
1993 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
1994 use type::set_stub_is_supported.
1995
1996 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1997
1998 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
1999 uses with type::is_vector.
2000
2001 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2002
2003 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
2004 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
2005 use type::set_is_vector.
2006
2007 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2008
2009 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
2010 uses with type::has_varargs.
2011
2012 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2013
2014 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
2015 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
2016 use type::set_has_varargs.
2017
2018 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2019
2020 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
2021 uses with type::is_prototyped.
2022
2023 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2024
2025 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
2026 New methods.
2027 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
2028 call sites to use type::set_is_prototyped.
2029
2030 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2031
2032 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
2033 uses with type::target_is_stub.
2034
2035 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2036
2037 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
2038 New methods.
2039 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
2040 sites to use type::set_target_is_stub.
2041
2042 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2043
2044 * gdbtypes.h (TYPE_STUB): Remove, replace all
2045 uses with type::is_stub.
2046
2047 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2048
2049 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
2050 (TYPE_STUB): Use type::is_stub, change all write call sites to
2051 use type::set_is_stub.
2052
2053 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2054
2055 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
2056 type::has_no_signedness.
2057
2058 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2059
2060 * gdbtypes.h (struct type) <has_no_signedness,
2061 set_has_no_signedness>: New methods.
2062 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
2063 call sites to use type::set_has_no_signedness.
2064
2065 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2066
2067 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
2068 type::is_unsigned.
2069
2070 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2071
2072 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
2073 methods.
2074 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
2075 sites to use type::set_is_unsigned.
2076
2077 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
2078 Adam Renquinha <arenquinha@cimeq.qc.ca>
2079
2080 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
2081 pointer and stack frame offset when unwinding.
2082
2083 2020-09-13 Pedro Alves <pedro@palves.net>
2084
2085 * NEWS: Document "-break-insert --qualified".
2086 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
2087
2088 2020-09-13 Pedro Alves <pedro@palves.net>
2089
2090 * linespec.c (classify_mtype, compare_msyms): Delete.
2091 (search_minsyms_for_name): Remove classification logic. Instead
2092 filter out trampoline symbols if we also found an external
2093 function of the same name.
2094
2095 2020-09-13 Joel Brobecker <brobecker@adacore.com>
2096
2097 * NEWS: Create a new section for the next release branch.
2098 Rename the section of the current branch, now that it has
2099 been cut.
2100
2101 2020-09-13 Joel Brobecker <brobecker@adacore.com>
2102
2103 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
2104 * version.in: Bump version to 11.0.50.DATE-git.
2105
2106 2020-09-12 Joel Brobecker <brobecker@adacore.com>
2107
2108 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
2109
2110 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
2111 Felix Willgerodt <Felix.Willgerodt@intel.com>
2112
2113 * gdbarch.sh: Added bfloat16 type.
2114 * gdbarch.c: Regenerated.
2115 * gdbarch.h: Regenerated.
2116 * gdbtypes.c (floatformats_bfloat16): New struct.
2117 (gdbtypes_post_init): Add builtin_bfloat16.
2118 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
2119 (floatformats_bfloat16): New struct.
2120 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
2121 (i386_ymm_type): Add field "v16_bfloat16"
2122 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
2123 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
2124 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
2125 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
2126 * features/i386/64bit-avx512.xml: Add bfloat16 type.
2127 * features/i386/64bit-avx512.c: Regenerated.
2128 * features/i386/64bit-sse.xml: Add bfloat16 type.
2129 * features/i386/64bit-sse.c: Regenerated.
2130
2131 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
2132
2133 * i386-tdep.c (i386_zmm_type): Fix field names.
2134 (i386_ymm_type): Fix field names.
2135
2136 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2137
2138 * breakpoint.c: Fix typo in the help message of the
2139 "set breakpoint condition-evaluation" command.
2140
2141 2020-09-10 Kamil Rytarowski <n54@gmx.com>
2142
2143 * nbsd-nat.c: Include "nat/netbsd-nat.h".
2144 * (nbsd_nat_target::pid_to_exec_file)
2145 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
2146 (nbsd_nat_target::post_startup_inferior)
2147 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
2148 (nbsd_add_threads): Switch local code to common gdb/nat functions.
2149 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
2150 * (nbsd_thread_lister): Remove.
2151
2152 2020-09-10 Kamil Rytarowski <n54@gmx.com>
2153
2154 * fork-inferior.c (startup_inferior): Avoid double free.
2155
2156 2020-09-10 Kamil Rytarowski <n54@gmx.com>
2157
2158 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
2159 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
2160
2161 2020-09-10 Kamil Rytarowski <n54@gmx.com>
2162
2163 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
2164 * netbsd-nat.c: Include <sys/ptrace.h>.
2165 * (netbsd_nat::enable_proc_events): Add.
2166
2167 2020-09-10 Kamil Rytarowski <n54@gmx.com>
2168
2169 * netbsd-nat.h: Include "gdbsupport/function-view.h".
2170 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
2171 (netbsd_nat::for_each_thread): Add.
2172 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
2173 "gdbsupport/common-debug.h".
2174 * (netbsd_nat::netbsd_thread_lister)
2175 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
2176 (netbsd_nat::for_each_thread): Add.
2177
2178 2020-09-10 Kamil Rytarowski <n54@gmx.com>
2179
2180 * netbsd-nat.h: Include <unistd.h>.
2181 * (netbsd_nat::pid_to_exec_file): Add.
2182 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
2183 * (netbsd_nat::pid_to_exec_file) Add.
2184
2185 2020-09-10 Kamil Rytarowski <n54@gmx.com>
2186
2187 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
2188
2189 2020-09-10 Kamil Rytarowski <n54@gmx.com>
2190
2191 * netbsd-nat.h: New file.
2192 * netbsd-nat.c: Likewise.
2193
2194 2020-09-09 Tom Tromey <tromey@adacore.com>
2195
2196 * ada-lang.c (remove_extra_symbols): Do not increment when
2197 removing an element
2198
2199 2020-09-08 Tom Tromey <tromey@adacore.com>
2200
2201 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
2202
2203 2020-09-08 Tom Tromey <tromey@adacore.com>
2204
2205 PR win32/25302:
2206 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
2207 (gdb_bfd_init_data): New function.
2208 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
2209
2210 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2211
2212 * infrun.c (fetch_inferior_event): Use
2213 `switch_to_target_no_thread` to switch the target.
2214
2215 2020-09-06 Tom Tromey <tom@tromey.com>
2216
2217 * symfile.h (dwarf2_free_objfile): Don't declare.
2218
2219 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2220
2221 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
2222 to match 16 byte real/complex type generated by Flang compiler.
2223
2224 2020-09-03 Tom de Vries <tdevries@suse.de>
2225
2226 PR breakpoint/26546
2227 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
2228 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
2229
2230 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
2231
2232 * maint.c (index_digits): New function.
2233 (struct maint_print_section_data): Remove.
2234 (print_bfd_section_info): Remove print_data parameter, add arg
2235 and index_digits.
2236 (print_objfile_section_info): Likewise.
2237 (print_bfd_section_info_maybe_relocated): Likewise (plus
2238 objfile).
2239 (maintenance_info_sections): Adjust calls.
2240
2241 2020-09-02 Tom Tromey <tromey@adacore.com>
2242
2243 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
2244 for null pointers.
2245 (ada_varobj_adjust_for_child_access): Special-case null pointers.
2246
2247 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
2248
2249 * bcache.h (struct bcache) <insert>: Change type of `added` to
2250 pointer to bool.
2251 * bcache.c (bcache::insert): Likewise.
2252 * gdbtypes.c (check_types_worklist): Adjust.
2253 * psymtab.c (add_psymbol_to_bcache): Adjust.
2254
2255 2020-08-31 Kevin Buettner <kevinb@redhat.com>
2256
2257 * corelow.c (unordered_set): Include.
2258 (class core_target): Add field 'm_core_unavailable_mappings'.
2259 (core_target::build_file_mappings): Print only one warning
2260 per inaccessible file. Add unavailable/broken mappings
2261 to m_core_unavailable_mappings.
2262 (core_target::xfer_partial): Call...
2263 (core_target::xfer_memory_via_mappings): New method.
2264
2265 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
2266
2267 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
2268 type to bool.
2269
2270 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
2271
2272 * dwarf2/read.c (struct field_info): Fix indentation.
2273
2274 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
2275
2276 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
2277 ordering in comment.
2278 * frame.c (frame_id_eq): Fix indentation.
2279
2280 2020-08-31 Scott Linder <scott@scottlinder.com>
2281 Simon Marchi <simon.marchi@efficios.com>
2282
2283 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
2284 inline frame ids in outer frame.
2285
2286 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
2287
2288 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
2289 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
2290 (outer_frame_id): Use FID_STACK_OUTER instead of
2291 FID_STACK_INVALID.
2292 (frame_id_p): Don't check for outer_frame_id.
2293
2294 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
2295
2296 * frame-unwind.c (frame_unwind_got_optimized): Don't set
2297 regnum/frame in value. Call allocate_value_lazy.
2298 * frame.c (frame_unwind_register_value): Use
2299 val_print_not_saved.
2300
2301 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
2302
2303 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
2304
2305 2020-08-29 Pedro Alves <pedro@palves.net>
2306
2307 * progspace.c (print_program_space): Use all_inferiors. Switch to
2308 the inferior before calling target_pid_to_str.
2309
2310 2020-08-28 Tom Tromey <tom@tromey.com>
2311
2312 * xcoffread.c (xcoff_end_psymtab): Update comment.
2313 * dbxread.c (dbx_end_psymtab): Update comment.
2314
2315 2020-08-28 Tom de Vries <tdevries@suse.de>
2316
2317 PR breakpoint/26544
2318 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
2319 event_location.
2320 (create_breakpoint): Same.
2321 (base_breakpoint_decode_location): Same.
2322 (bkpt_create_sals_from_location): Same.
2323 (bkpt_decode_location): Same.
2324 (bkpt_probe_create_sals_from_location): Same.
2325 (bkpt_probe_decode_location): Same.
2326 (tracepoint_create_sals_from_location): Same.
2327 (tracepoint_decode_location): Same.
2328 (tracepoint_probe_decode_location): Same.
2329 (strace_marker_create_sals_from_location): Same.
2330 (strace_marker_decode_location): Same.
2331 (create_sals_from_location_default): Same.
2332 (decode_location_default): Same.
2333 * breakpoint.h (struct breakpoint_ops): Same.
2334 (create_breakpoint): Same.
2335 * linespec.h (decode_line_full): Same.
2336 * linespec.c (decode_line_full): Same. Throw error if
2337 result.size () == 0.
2338
2339 2020-08-27 Pedro Alves <pedro@palves.net>
2340
2341 PR gdb/26524
2342 * breakpoint.c (until_break_fsm) <location_breakpoint,
2343 caller_breakpoint>: Delete fields.
2344 <breakpoints>: New field.
2345 <until_break_fsm>: Adjust to save a breakpoint vector instead of
2346 two individual breakpoints.
2347 (until_break_fsm::should_stop): Loop over breakpoints in the
2348 breakpoint vector.
2349 (until_break_fsm::clean_up): Adjust to clear the breakpoints
2350 vector.
2351 (until_break_command): Handle location expanding into multiple
2352 sals.
2353
2354 2020-08-27 Pedro Alves <pedro@palves.net>
2355
2356 PR gdb/26523
2357 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
2358 bp_until breakpoints user-specified locations. Update intro
2359 comment.
2360
2361 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
2362
2363 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
2364 gdb_bfd_sections): New.
2365 * maint.c (print_bfd_section_info): Change param type to
2366 maint_print_section_data.
2367 (print_objfile_section_info): Likewise.
2368 (print_bfd_section_info_maybe_relocated): Likewise.
2369 (maintenance_info_sections): Use gdb_bfd_sections.
2370
2371 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
2372
2373 * MAINTAINERS: Add ARC target and maintainer.
2374
2375 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
2376
2377 * configure.tgt: ARC support for GNU/Linux.
2378 * Makefile.in (ALL_TARGET_OBJS): Likewise.
2379 * arc-linux-tdep.c: New file.
2380 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
2381 * arc-tdep.c (arc_write_pc): Use it.
2382
2383 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
2384
2385 * arc-tdep.c (arc_check_for_hardware_loop): New.
2386 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
2387
2388 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
2389
2390 * arc-tdep.h: Include "gdbarch.h".
2391
2392 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
2393
2394 * arch/arc.h
2395 (arc_gdbarch_features): New class to stir the selection of target XML.
2396 (arc_create_target_description): Use FEATURES to choose XML target.
2397 (arc_lookup_target_description): Use arc_create_target_description
2398 to create _new_ target descriptions or return the already created
2399 ones if the FEATURES is the same.
2400 * arch/arc.c: Implementation of prototypes described above.
2401 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
2402 (arc_gdbarch_features_init): Initialize the FEATURES struct.
2403 * arc-tdep.c (*_feature_name): Make feature names consistent.
2404 (arc_register_feature): A new struct to hold information about
2405 registers of a particular target/feature.
2406 (arc_check_tdesc_feature): Check if XML provides registers in
2407 compliance with ARC_REGISTER_FEATURE structs.
2408 (arc_update_acc_reg_names): Add aliases for r58 and r59.
2409 (determine_*_reg_feature_set): Which feature name to look for.
2410 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
2411 (mach_type_to_arc_isa): Convert from a set of binutils machine types
2412 to expected ISA enums to be used in arc_gdbarch_features structs.
2413 * features/Makefile (FEATURE_XMLFILES): Add new files.
2414 * gdb/features/arc/v1-aux.c: New file.
2415 * gdb/features/arc/v1-aux.xml: Likewise.
2416 * gdb/features/arc/v1-core.c: Likewise.
2417 * gdb/features/arc/v1-core.xml: Likewise.
2418 * gdb/features/arc/v2-aux.c: Likewise.
2419 * gdb/features/arc/v2-aux.xml: Likewise.
2420 * gdb/features/arc/v2-core.c: Likewise.
2421 * gdb/features/arc/v2-core.xml: Likewise.
2422 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
2423
2424 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
2425 Andrew Burgess <andrew.burgess@embecosm.com>
2426
2427 PR m2/26372
2428 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
2429 an assert. Remove single element array indexing pattern as the
2430 MULTI_SUBSCRIPT support will handle this case too.
2431
2432 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
2433
2434 * value.h (valprint_check_validity): Move declaration from
2435 here...
2436 * valprint.h (valprint_check_validity): ... to here.
2437
2438 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
2439
2440 * debug.h: New file.
2441 * debug.c (debug_prefixed_vprintf): New function.
2442 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
2443 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
2444
2445 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
2446
2447 * infrun.h (infrun_debug_printf_1): New function declaration.
2448 (infrun_debug_printf): New macro.
2449 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
2450 throughout.
2451 (infrun_debug_printf): New function.
2452 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
2453 (handle_jit_event): Likewise.
2454
2455 2020-08-21 Mark Wielaard <mark@klomp.org>
2456
2457 * ada-lex.l: Extend register warnings diagnostics comment for g++.
2458
2459 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
2460
2461 * frame.c (enum class frame_id_status): New.
2462 (struct frame_info) <this_id::p>: Change type to frame_id_status.
2463 (fprintf_frame): Update.
2464 (compute_frame_id): Set frame id status to "computing" on entry.
2465 Set it back to "not_computed" on failure and to "computed" on
2466 success.
2467 (get_frame_id): Assert the frame id is not being computed.
2468 (create_sentinel_frame): Use frame_id_status::COMPUTED.
2469 (create_new_frame): Likewise.
2470 (frame_cleanup_after_sniffer): Update assert.
2471
2472 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2473
2474 * regcache.c (pid_ptid_regcache_map): New type.
2475 (target_ptid_regcache_map): Remove.
2476 (target_pid_ptid_regcache_map): New type.
2477 (regcaches): Change type to target_pid_ptid_regcache_map.
2478 (get_thread_arch_aspace_regcache): Update.
2479 (regcache_thread_ptid_changed): Update, handle pid-like ptid
2480 case.
2481 (regcaches_size): Update.
2482 (regcache_count): Update.
2483 (registers_changed_ptid_target_pid_test): New.
2484 (_initialize_regcache): Register new test.
2485
2486 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2487
2488 * regcache.c (regcache_count): New.
2489 (struct regcache_test_data): New.
2490 (regcache_test_data_up): New.
2491 (populate_regcaches_for_test): New.
2492 (regcaches_test): Remove.
2493 (get_thread_arch_aspace_regcache_test): New.
2494 (registers_changed_ptid_all_test): New.
2495 (registers_changed_ptid_target_test): New.
2496 (registers_changed_ptid_target_ptid_test): New.
2497 (regcache_thread_ptid_changed): Remove regcache_count lambda.
2498 (_initialize_regcache): Register new tests.
2499
2500 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2501
2502 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
2503 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
2504 gdbarch and aspace parameter. Use current inferior's aspace.
2505 Validate regcache's arch value.
2506 (regcaches_test): Update.
2507
2508 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2509
2510 * regcache.c (regcaches_test): Call registers_changed.
2511
2512 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2513
2514 * infrun.c (process_event_stop_test): Fix typo "breapoint".
2515
2516 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2517
2518 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
2519 to find the end of prologue for flang compiled binaries.
2520 * arm-tdep.c (arm_skip_prologue): Likewise.
2521 * i386-tdep.c (i386_skip_prologue): Likewise.
2522 * producer.c (producer_is_llvm): New function.
2523 (producer_parsing_tests): Added new tests for clang/flang.
2524 * producer.h (producer_is_llvm): New declaration.
2525
2526 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
2527
2528 * linux-nat.c (linux_nat_debug_printf): New function.
2529 (linux_nat_debug_printf_1): New macro. Use throughout the file.
2530
2531 2020-08-18 Aaron Merey <amerey@redhat.com>
2532
2533 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
2534 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
2535 (CLIBS): Add DEBUGINFOD_LIBS.
2536
2537 2020-08-17 Sergei Trofimovich <siarheit@google.com>
2538
2539 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
2540 'gdbarch_num_regs'.
2541
2542 2020-08-17 Tom Tromey <tromey@adacore.com>
2543
2544 * ada-varobj.c (ada_varobj_decode_var): Handle case where
2545 ada_get_decoded_value returns NULL.
2546
2547 2020-08-17 Tom Tromey <tromey@adacore.com>
2548
2549 * python/py-inferior.c (infpy_search_memory): Use
2550 gdb_py_object_from_ulongest.
2551 * python/py-infevents.c (create_inferior_call_event_object)
2552 (create_memory_changed_event_object): Use
2553 gdb_py_object_from_ulongest.
2554 * python/py-linetable.c (ltpy_entry_get_pc): Use
2555 gdb_py_object_from_ulongest.
2556
2557 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
2558
2559 * loc.c (class symbol_needs_eval_context): Fix indentation.
2560
2561 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
2562
2563 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
2564 bool.
2565
2566 2020-08-17 Tom de Vries <tdevries@suse.de>
2567
2568 PR gdb/26393
2569 * gdbtypes.c (dump_dynamic_prop): New function.
2570 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
2571
2572 2020-08-15 Tom de Vries <tdevries@suse.de>
2573
2574 PR backtrace/26390
2575 * stack.c (print_frame_args): Temporarily set the selected
2576 frame to FRAME while printing the frame's arguments.
2577
2578 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2579
2580 PR breakpoints/26385
2581 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
2582 Always clear watchpoint with PTRACE_SET_DEBUGREG.
2583
2584 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2585
2586 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
2587 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
2588 and >= to check return value instead of == -1 and != -1.
2589
2590 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
2591
2592 * utils.h (class gdb_argv) <as_array_view>: New method.
2593 * utils.c (gdb_argv_as_array_view_test): New.
2594 (_initialize_utils): Register selftest.
2595 * maint.c (maintenance_selftest): Use the new method.
2596
2597 2020-08-13 Kamil Rytarowski <n54@gmx.com>
2598
2599 * target.h (supports_dumpcore, dumpcore): New
2600 function declarations.
2601 * target.c (supports_dumpcore, dumpcore): New
2602 functions.
2603 * target-delegates.c: Rebuild.
2604 * gcore.c (gcore_command): Use target_supports_dumpcore ()
2605 and target_dumpcore ().
2606
2607 2020-08-13 Aaron Merey <amerey@redhat.com>
2608
2609 * debuginfod-support.c: Replace global variables with user_data.
2610
2611 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
2612
2613 * maint.c (maintenance_selftest): Split args and pass array_view
2614 to run_tests.
2615
2616 2020-08-12 Luis Machado <luis.machado@linaro.org>
2617
2618 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
2619 type's length.
2620 Use %s and pulongest to print the length.
2621
2622 2020-08-12 Pedro Alves <palves@redhat.com>
2623
2624 * NEWS: Move "Multi-target debugging support" item to the
2625 "Changes since GDB 9" section.
2626
2627 2020-08-12 Pedro Alves <palves@redhat.com>
2628
2629 PR gdb/26336
2630 * progspace.c (program_space::remove_objfile): Invalidate the
2631 frame cache.
2632
2633 2020-08-11 Tom de Vries <tdevries@suse.de>
2634
2635 * MAINTAINERS: Mark ms1 as deleted.
2636
2637 2020-08-10 Luis Machado <luis.machado@linaro.org>
2638
2639 PR gdb/26310
2640
2641 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
2642 act accordingly.
2643 (aarch64_analyze_prologue_test): Add more unit tests to exercise
2644 movz/str/stur/stp skipping behavior.
2645
2646 2020-08-10 Luis Machado <luis.machado@linaro.org>
2647
2648 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
2649 struct user_sve_header instead of struct sve_context.
2650
2651 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
2652
2653 * read.h (dwarf2_fetch_die_loc_sect_off,
2654 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
2655 `void *` parameter with function_view.
2656 * read.c (dwarf2_fetch_die_loc_sect_off,
2657 dwarf2_fetch_die_loc_cu_off): Likewise.
2658 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
2659 (per_cu_dwarf_call): Adjust.
2660 (get_frame_address_in_block_wrapper): Remove.
2661 (indirect_synthetic_pointer): Adjust.
2662 (get_ax_pc): Remove.
2663 (dwarf2_compile_expr_to_ax): Adjust.
2664
2665 2020-08-08 Tom de Vries <tdevries@suse.de>
2666
2667 PR build/26344
2668 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
2669 constructor.
2670 * regcache.c (get_thread_arch_aspace_regcache): Same.
2671
2672 2020-08-07 Tom Tromey <tromey@adacore.com>
2673
2674 * ravenscar-thread.c
2675 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
2676 New method.
2677 (ravenscar_thread_target::wait): Check
2678 runtime_initialized.
2679 (ravenscar_thread_target::prepare_to_store)
2680 (ravenscar_thread_target::stopped_by_sw_breakpoint)
2681 (ravenscar_thread_target::stopped_by_hw_breakpoint)
2682 (ravenscar_thread_target::stopped_by_watchpoint)
2683 (ravenscar_thread_target::stopped_data_address)
2684 (ravenscar_thread_target::core_of_thread): Use
2685 scoped_restore_current_thread and
2686 set_base_thread_from_ravenscar_task.
2687
2688 2020-08-07 Tom Tromey <tromey@adacore.com>
2689
2690 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
2691
2692 2020-08-07 Tom Tromey <tromey@adacore.com>
2693
2694 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
2695 update_inferior_ptid before update_thread_list.
2696 (temporarily_change_regcache_ptid): New class.
2697 (ravenscar_thread_target::fetch_registers)
2698 (ravenscar_thread_target::store_registers)
2699 (ravenscar_thread_target::prepare_to_store): Use base thread when
2700 forwarding operation.
2701
2702 2020-08-07 Tom Tromey <tromey@adacore.com>
2703
2704 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
2705 "is_pid" case.
2706
2707 2020-08-07 Tom Tromey <tromey@adacore.com>
2708
2709 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
2710 New methods.
2711 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
2712 first.
2713 (ravenscar_thread_target::add_thread): Rename from
2714 ravenscar_add_thread.
2715 (ravenscar_thread_target::update_thread_list): Use a lambda.
2716 (ravenscar_thread_target::xfer_partial): New method.
2717
2718 2020-08-07 Tom Tromey <tromey@adacore.com>
2719
2720 * ada-lang.h (ada_task_list_iterator_ftype): Now a
2721 gdb::function_view.
2722 (iterate_over_live_ada_tasks): Change type of argument.
2723 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
2724 of argument.
2725
2726 2020-08-07 Tom Tromey <tromey@adacore.com>
2727
2728 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
2729 Remove.
2730 (ravenscar_thread_target::extra_thread_info): Remove.
2731 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
2732 defer to target beneath for non-Ravenscar threads.
2733
2734 2020-08-07 Tom Tromey <tromey@adacore.com>
2735
2736 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
2737 get_base_thread_from_ravenscar_task>: Now methods.
2738 <m_cpu_map>: New member.
2739 (ravenscar_thread_target::get_thread_base_cpu): Rename from
2740 ravenscar_get_thread_base_cpu. Check m_cpu_map.
2741 (ravenscar_thread_target::task_is_currently_active): Update.
2742 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
2743 Now a method.
2744 (ravenscar_thread_target::add_active_thread): Put initial thread
2745 into the m_cpu_map.
2746
2747 2020-08-07 Tom Tromey <tromey@adacore.com>
2748
2749 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
2750 event_ptid.
2751
2752 2020-08-07 Tom Tromey <tromey@adacore.com>
2753
2754 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
2755 runtime_initialized.
2756
2757 2020-08-07 Tom Tromey <tromey@adacore.com>
2758
2759 * ravenscar-thread.c (ravenscar_thread_target): Don't call
2760 add_active_thread.
2761 (ravenscar_thread_target::add_active_thread): Now public.
2762 (ravenscar_inferior_created): Call add_active_thread after pushing
2763 the target.
2764
2765 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
2766
2767 * regcache.c (ptid_regcache_map): New type.
2768 (target_ptid_regcache_map): New type.
2769 (regcaches): Change type to target_ptid_regcache_map.
2770 (get_thread_arch_aspace_regcache): Update to regcaches' new
2771 type.
2772 (regcache_thread_ptid_changed): Likewise.
2773 (registers_changed_ptid): Likewise.
2774 (regcaches_size): Likewise.
2775 (regcaches_test): Update.
2776 (regcache_thread_ptid_changed): Update.
2777 * regcache.h (regcache_up): New type.
2778 * gdbsupport/ptid.h (hash_ptid): New struct.
2779
2780 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
2781
2782 * observable.h (thread_ptid_changed): Add parameter
2783 `process_stratum_target *`.
2784 * infrun.c (infrun_thread_ptid_changed): Add parameter
2785 `process_stratum_target *` and use it.
2786 (selftests): New namespace.
2787 (infrun_thread_ptid_changed): New function.
2788 (_initialize_infrun): Register selftest.
2789 * regcache.c (regcache_thread_ptid_changed): Add parameter
2790 `process_stratum_target *` and use it.
2791 (regcache_thread_ptid_changed): New function.
2792 (_initialize_regcache): Register selftest.
2793 * thread.c (thread_change_ptid): Pass target to
2794 thread_ptid_changed observable.
2795
2796 2020-08-06 Caroline Tice <cmtice@google.com>
2797
2798 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
2799 (struct dwp_sections): Update field comments. Add loclists and
2800 rnglists fields.
2801 (struct virtual_v2_dwo_sections): Rename struct to
2802 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
2803 size & offset fields for loclists and rnglists.
2804 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
2805 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
2806 skipping dummy type units.
2807 (create_dwp_hash_table): Update the large comment above the function to
2808 discuss Version 5 DWP files as well, with references. Update all the
2809 version checks in the function to check for version 5 as well. Add new
2810 section at the end to create dwp hash table for version 5.
2811 (create_dwp_v2_section): Rename function to
2812 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
2813 Add V5 to error message text.
2814 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
2815 into calls to create_dwp_v2_or_v5_section.
2816 (create_dwo_unit_in_dwp_v5): New function.
2817 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
2818 check for version2; add else clause to handle version 5.
2819 (open_and_init_dwo_file): Add code to check dwarf version & only call
2820 create_debug_types_hash_table (with sections.types) if version is not 5;
2821 else call create_debug_type_hash_table, with sections.info.
2822 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
2823 version 5.
2824 (dwarf2_locate_v5_dwp_sections): New function.
2825 (open_and_init_dwp_file): Add else-if clause for version 5 to call
2826 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
2827
2828 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
2829
2830 * regcache.h (class regcache): Remove friend
2831 registers_changed_ptid.
2832 <regcache_thread_ptid_changed>: Remove.
2833 <regcaches>: Remove.
2834 * regcache.c (regcache::regcaches): Rename to...
2835 (regcaches): ... this. Make static.
2836 (get_thread_arch_aspace_regcache): Update.
2837 (regcache::regcache_thread_ptid_changed): Rename to...
2838 (regcache_thread_ptid_changed): ... this. Update.
2839 (class regcache_access): Remove.
2840 (regcaches_test): Update.
2841 (_initialize_regcache): Update.
2842 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
2843 <forward_list>.
2844
2845 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
2846
2847 * regcache.h (class regcache) <current_regcache>: Rename to...
2848 <regcaches>: ... this. Move doc here.
2849 * regcache.c (regcache::current_regcache) Rename to...
2850 (regcache::regcaches): ... this. Move doc to header.
2851 (get_thread_arch_aspace_regcache): Update.
2852 (regcache::regcache_thread_ptid_changed): Update.
2853 (registers_changed_ptid): Update.
2854 (class regcache_access) <current_regcache_size>: Rename to...
2855 <regcaches_size>: ... this.
2856 (current_regcache_test): Rename to...
2857 (regcaches_test): ... this.
2858 (_initialize_regcache): Update.
2859
2860 2020-08-06 Victor Collod <vcollod@nvidia.com>
2861
2862 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
2863
2864 2020-08-05 Kevin Buettner <kevinb@redhat.com>
2865
2866 * corelow.c (core_target::build_file_mappings): Don't output
2867 null pathname in warning.
2868
2869 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
2870
2871 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
2872 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
2873 gdb.dwarf2/dw2-single-line-discriminators.exp,
2874 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
2875
2876 2020-08-05 Tom Tromey <tromey@adacore.com>
2877
2878 PR rust/26197:
2879 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
2880 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
2881 Fix off-by-one and type size errors in ordinary case.
2882
2883 2020-08-05 Tom de Vries <tdevries@suse.de>
2884
2885 * gdbtypes.c (type_not_allocated, type_not_associated): Use
2886 "prop->const_val () == 0" instead of "prop->const_val () != 0".
2887
2888 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
2889
2890 * frame.h (frame_id_p): Return bool.
2891 (frame_id_artificial_p): Return bool.
2892 (frame_id_eq): Return bool.
2893 (has_stack_frames): Return bool.
2894 (get_selected_frame): Fix typo in comment.
2895 (get_frame_pc_if_available): Return bool.
2896 (get_frame_address_in_block_if_available): Return bool.
2897 (get_frame_func_if_available): Return bool.
2898 (read_frame_register_unsigned): Return bool.
2899 (get_frame_register_bytes): Return bool.
2900 (safe_frame_unwind_memory): Return bool.
2901 (deprecated_frame_register_read): Return bool.
2902 (frame_unwinder_is): Return bool.
2903 * frame.c (struct frame_info) <prev_arch::p>: Change type to
2904 bool.
2905 <this_id::p>: Likewise.
2906 <prev_p>: Likewise.
2907 (frame_stash_add): Return bool.
2908 (get_frame_id): Use bool.
2909 (frame_id_build_special) Use bool.
2910 (frame_id_build_unavailable_stack): Use bool.
2911 (frame_id_build): Use bool.
2912 (frame_id_p): Return bool, use true/false instead of 1/0.
2913 (frame_id_artificial_p): Likewise.
2914 (frame_id_eq): Likewise.
2915 (frame_id_inner): Likewise.
2916 (get_frame_func_if_available): Likewise.
2917 (read_frame_register_unsigned): Likewise.
2918 (deprecated_frame_register_read): Likewise.
2919 (get_frame_register_bytes): Likewise.
2920 (has_stack_frames): Likewise.
2921 (inside_main_func): Likewise.
2922 (inside_entry_func): Likewise.
2923 (get_frame_pc_if_available): Likewise.
2924 (get_frame_address_in_block_if_available): Likewise.
2925 (frame_unwinder_is): Likewise.
2926 (safe_frame_unwind_memory): Likewise.
2927 (frame_unwind_arch): Likewise.
2928
2929 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
2930
2931 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
2932 type to cached_copy_status.
2933 (fprintf_frame): Adjust.
2934 (get_frame_func_if_available): Adjust.
2935 (frame_cleanup_after_sniffer): Adjust.
2936
2937 2020-08-04 Mark Wielaard <mark@klomp.org>
2938
2939 * MAINTAINERS (Write After Approval): Update email address.
2940
2941 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2942
2943 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
2944 dynamic_prop::const_val.
2945
2946 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2947
2948 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
2949 dynamic_prop::kind.
2950
2951 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2952
2953 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
2954
2955 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
2956
2957 * configure.tgt: Set gdb_sim for bpf-*-* targets.
2958
2959 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
2960 Jose E. Marchesi <jose.marchesi@oracle.com>
2961
2962 * configure.tgt: Add entry for bpf-*-*.
2963 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
2964 (ALLDEPFILES): Add bpf-tdep.c.
2965 * bpf-tdep.c: New file.
2966 * MAINTAINERS: Add bpf target and maintainer.
2967 * NEWS: Mention the support for the new target.
2968
2969 2020-08-04 Tom de Vries <tdevries@suse.de>
2970
2971 PR symtab/23270
2972 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
2973 Error.
2974
2975 2020-08-03 John Baldwin <jhb@FreeBSD.org>
2976
2977 * syscalls/freebsd.xml: Regenerate.
2978
2979 2020-08-03 John Baldwin <jhb@FreeBSD.org>
2980
2981 * syscalls/update-freebsd.sh: Fix usage and year range.
2982
2983 2020-08-03 Tom de Vries <tdevries@suse.de>
2984
2985 PR symtab/26333
2986 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
2987 DW_LNE_lo_user/DW_LNE_hi_user range.
2988
2989 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
2990
2991 PR ada/26318
2992 * ada-lang.c (ada_modulus): Return 0 if property is not of const
2993 kind.
2994
2995 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2996
2997 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
2998
2999 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3000
3001 * breakpoint.c (set_breakpoint_condition): Update the condition
3002 expressions after checking that the input condition string parses
3003 successfully and does not contain junk at the end.
3004
3005 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3006
3007 * breakpoint.c (set_breakpoint_condition): Update the
3008 condition string after parsing the new condition successfully.
3009
3010 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3011
3012 * proc-api.c (_STRUCTURED_PROC): Don't define.
3013 * proc-events.c: Likewise.
3014 * proc-flags.c: Likewise.
3015 * proc-why.c: Likewise.
3016 * procfs.c: Likewise.
3017
3018 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
3019 * configure, config.in: Regenerate.
3020
3021 2020-07-30 Tom de Vries <tdevries@suse.de>
3022
3023 PR build/26320
3024 * ui-style.h (struct ui_file_style::color): Wrap m_value and
3025 m_red/m_green/m_blue in a union.
3026
3027 2020-07-29 Tom de Vries <tdevries@suse.de>
3028
3029 PR tdep/26280
3030 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
3031
3032 2020-07-28 Tom Tromey <tromey@adacore.com>
3033
3034 PR symtab/26270:
3035 * symtab.h (find_pc_partial_function_sym): Declare.
3036 * cli/cli-cmds.c (disassemble_command): Use
3037 find_pc_partial_function_sym. Check asm_demangle.
3038 * blockframe.c (cache_pc_function_sym): New global.
3039 (cache_pc_function_name): Remove.
3040 (clear_pc_function_cache): Update.
3041 (find_pc_partial_function_sym): New function, from
3042 find_pc_partial_function.
3043 (find_pc_partial_function): Rewrite using
3044 find_pc_partial_function_sym.
3045
3046 2020-07-28 Tom Tromey <tromey@adacore.com>
3047
3048 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
3049 help. Add usage.
3050
3051 2020-07-28 Tom Tromey <tromey@adacore.com>
3052
3053 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
3054 <DW_OP_GNU_variable_value>: Cast to address type.
3055
3056 2020-07-28 Kamil Rytarowski <n54@gmx.com>
3057
3058 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
3059 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
3060 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
3061 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
3062 (nbsd_get_siginfo_type): New.
3063 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
3064 (_initialize_nbsd_tdep): New.
3065
3066 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
3067
3068 PR binutils/26301
3069 * configure: Regenerated.
3070
3071 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
3072
3073 PR binutils/26301
3074 * configure: Regenerated.
3075
3076 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
3077
3078 * python/py-frame.c: Remove 'user-regs.h' include.
3079 (frapy_read_register): Rewrite to make use of
3080 gdbpy_parse_register_id.
3081 * python/py-registers.c (gdbpy_parse_register_id): New function,
3082 moved here from python/py-unwind.c. Updated the return type, and
3083 also accepts register descriptor objects.
3084 * python/py-unwind.c: Remove 'user-regs.h' include.
3085 (pyuw_parse_register_id): Moved to python/py-registers.c.
3086 (unwind_infopy_add_saved_register): Update to use
3087 gdbpy_parse_register_id.
3088 (pending_framepy_read_register): Likewise.
3089 * python/python-internal.h (gdbpy_parse_register_id): Declare.
3090
3091 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
3092
3093 * python/py-registers.c: Add 'user-regs.h' include.
3094 (register_descriptor_iter_find): New function.
3095 (register_descriptor_iterator_object_methods): New static global
3096 methods array.
3097 (register_descriptor_iterator_object_type): Add pointer to methods
3098 array.
3099
3100 2020-07-27 John Baldwin <jhb@FreeBSD.org>
3101
3102 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
3103 for all architectures on FreeBSD 11.3 and later.
3104
3105 2020-07-27 Tom Tromey <tromey@adacore.com>
3106
3107 * gcore.h (load_corefile): Don't declare.
3108
3109 2020-07-27 Tom de Vries <tdevries@suse.de>
3110
3111 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
3112 * config.in: Regenerate.
3113 * configure: Regenerate.
3114
3115 2020-07-26 Eli Zaretskii <eliz@gnu.org>
3116
3117 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
3118 ws2tcpip.h. When checking whether socklen_t type is defined, use
3119 ws2tcpip.h if it is available and sys/socket.h isn't.
3120 * configure: Regenerate.
3121 * config.in: Regenerate.
3122
3123 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
3124
3125 PR fortran/23051
3126 PR fortran/26139
3127 * valops.c (value_ind): Pass address to
3128 readjust_indirect_value_type.
3129 * value.c (readjust_indirect_value_type): Make parameter
3130 non-const, and add extra address parameter. Resolve original type
3131 before using it.
3132 * value.h (readjust_indirect_value_type): Update function
3133 signature and comment.
3134
3135 2020-07-25 Tom de Vries <tdevries@suse.de>
3136
3137 PR symtab/26243
3138 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
3139 entries.
3140
3141 2020-07-24 Aaron Merey <amerey@redhat.com>
3142
3143 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
3144 * configure: Rebuild.
3145
3146 2020-07-23 Kevin Buettner <kevinb@redhat.com>
3147
3148 PR corefiles/26294
3149 * corelow.c (_initialize_corelow): Add period to help text
3150 for "maintenance print core-file-backed-mappings".
3151
3152 2020-07-23 Pedro Alves <pedro@palves.net>
3153
3154 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
3155 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
3156 meanwhile.
3157 * frame.c (frame_cache_generation, get_frame_cache_generation):
3158 New.
3159 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
3160 (get_prev_frame_if_no_cycle): On exception, don't touch
3161 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
3162 * frame.h (get_frame_cache_generation): Declare.
3163
3164 2020-07-23 Tom de Vries <tdevries@suse.de>
3165
3166 PR tui/26282
3167 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
3168 New default constructor.
3169
3170 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
3171
3172 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
3173 exclude non-statement entries.
3174
3175 2020-07-22 Kevin Buettner <kevinb@redhat.com>
3176
3177 * NEWS (New commands): Mention new command
3178 "maintenance print core-file-backed-mappings".
3179
3180 2020-07-22 Kevin Buettner <kevinb@redhat.com>
3181
3182 * corelow.c (gdbcmd.h): Include.
3183 (core_target::info_proc_mappings): New method.
3184 (get_current_core_target): New function.
3185 (maintenance_print_core_file_backed_mappings): New function.
3186 (_initialize_corelow): Add core-file-backed-mappings to
3187 "maint print" commands.
3188
3189 2020-07-22 Kevin Buettner <kevinb@redhat.com>
3190
3191 * linux-tdep.c (dump_note_entry_p): New function.
3192 (linux_dump_mapping_p_ftype): New typedef.
3193 (linux_find_memory_regions_full): Add new parameter,
3194 should_dump_mapping_p.
3195 (linux_find_memory_regions): Adjust call to
3196 linux_find_memory_regions_full.
3197 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
3198 call to linux_find_memory_regions_full.
3199
3200 2020-07-22 Kevin Buettner <kevinb@redhat.com>
3201
3202 * corelow.c (solist.h, unordered_map): Include.
3203 (class core_target): Add field m_core_file_mappings and
3204 method build_file_mappings.
3205 (core_target::core_target): Call build_file_mappings.
3206 (core_target::~core_target): Free memory associated with
3207 m_core_file_mappings.
3208 (core_target::build_file_mappings): New method.
3209 (core_target::xfer_partial): Use m_core_file_mappings
3210 for memory transfers.
3211 * linux-tdep.c (linux_read_core_file_mappings): New
3212 function.
3213 (linux_core_info_proc_mappings): Rewrite to use
3214 linux_read_core_file_mappings.
3215 (linux_init_abi): Register linux_read_core_file_mappings.
3216
3217 2020-07-22 Kevin Buettner <kevinb@redhat.com>
3218
3219 * arch-utils.c (default_read_core_file_mappings): New function.
3220 * arch-utils.c (default_read_core_file_mappings): Declare.
3221 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
3222 * gdbarch.h, gdbarch.c: Regenerate.
3223
3224 2020-07-22 Kevin Buettner <kevinb@redhat.com>
3225
3226 PR corefiles/25631
3227 * corelow.c (core_target:xfer_partial): Revise
3228 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
3229 case after first checking the stratum beneath the core
3230 target.
3231 (has_all_memory): Return true.
3232 * target.c (raw_memory_xfer_partial): Revise comment
3233 regarding use of has_all_memory.
3234
3235 2020-07-22 Kevin Buettner <kevinb@redhat.com>
3236
3237 * exec.h (section_table_xfer_memory): Revise declaration,
3238 replacing section name parameter with an optional callback
3239 predicate.
3240 * exec.c (section_table_xfer_memory): Likewise.
3241 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
3242 of section_table_xfer_memory.
3243
3244 2020-07-22 Tom Tromey <tromey@adacore.com>
3245
3246 * mi/mi-cmd-stack.c (list_args_or_locals): Use
3247 lookup_symbol_search_name.
3248
3249 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
3250
3251 * python/py-registers.c (gdbpy_register_object_data_init): Remove
3252 redundant local variable.
3253 (gdbpy_get_register_descriptor): Extract descriptor vector as a
3254 reference, not pointer, update code accordingly.
3255
3256 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3257 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3258
3259 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
3260 * jit.c (jit_breakpoint_re_set_internal): Use the
3261 `skip_jit_symbol_lookup` field.
3262
3263 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3264 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3265
3266 * jit.c (jit_read_descriptor): Define the descriptor address once,
3267 use twice.
3268 (jit_breakpoint_deleted): Move the declaration of the loop variable
3269 `iter` into the loop header.
3270 (jit_breakpoint_re_set_internal): Move the declaration of the local
3271 variable `objf_data` to the first point of definition.
3272 (jit_event_handler): Move the declaration of local variables
3273 `code_entry`, `entry_addr`, and `objf` to their first point of use.
3274 Rename `objf` to `jited`.
3275
3276 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3277
3278 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
3279 Remove.
3280 * jit.c (get_jiter_objfile_data): Update.
3281
3282 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3283 Simon Marchi <simon.marchi@polymtl.ca>
3284
3285 * jit.c (struct jit_program_space_data): Remove.
3286 (jit_program_space_key): Remove.
3287 (jiter_objfile_data::~jiter_objfile_data): Remove program space
3288 stuff.
3289 (get_jit_program_space_data): Remove.
3290 (jit_breakpoint_deleted): Iterate on all of the program space's
3291 objfiles.
3292 (jit_inferior_init): Likewise.
3293 (jit_breakpoint_re_set_internal): Likewise. Also change return
3294 type to void.
3295 (jit_breakpoint_re_set): Pass current_program_space to
3296 jit_breakpoint_re_set_internal.
3297
3298 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3299
3300 * jit.h (struct jiter_objfile_data) <cached_code_address,
3301 jit_breakpoint>: Move to here from ...
3302 * jit.c (jit_program_space_data): ... here.
3303 (jiter_objfile_data::~jiter_objfile_data): Update.
3304 (jit_breakpoint_deleted): Update.
3305 (jit_breakpoint_re_set_internal): Update.
3306
3307 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3308
3309 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
3310 checks.
3311 (jit_read_descriptor): Remove NULL check.
3312 (jit_event_handler): Add an assertion.
3313
3314 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3315
3316 * jit.h (struct jit_objfile_data): Split into...
3317 (struct jiter_objfile_data): ... this ...
3318 (struct jited_objfile_data): ... and this.
3319 * objfiles.h (struct objfile) <jit_data>: Remove.
3320 <jiter_data, jited_data>: New fields.
3321 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
3322 (jiter_objfile_data::~jiter_objfile_data): ... this.
3323 (get_jit_objfile_data): Rename to ...
3324 (get_jiter_objfile_data): ... this.
3325 (add_objfile_entry): Update.
3326 (jit_read_descriptor): Use get_jiter_objfile_data.
3327 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
3328 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
3329 (jit_inferior_exit_hook): Use objfile's jited_data field.
3330
3331 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3332
3333 * jit.h: Forward-declare `struct minimal_symbol`.
3334 (struct jit_objfile_data): Migrate to here from jit.c; also add a
3335 constructor, destructor, and an objfile* field.
3336 * jit.c (jit_objfile_data): Remove.
3337 (struct jit_objfile_data): Migrate from here to jit.h.
3338 (jit_objfile_data::~jit_objfile_data): New destructor
3339 implementation with code moved from free_objfile_data.
3340 (free_objfile_data): Delete.
3341 (get_jit_objfile_data): Update to use the jit_data field of objfile.
3342 (jit_find_objf_with_entry_addr): Ditto.
3343 (jit_inferior_exit_hook): Ditto.
3344 (_initialize_jit): Remove the call to
3345 register_objfile_data_with_cleanup.
3346 * objfiles.h (struct objfile) <jit_data>: New field.
3347
3348 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3349
3350 * jit.h: Forward-declare `struct objfile`.
3351 (jit_event_handler): Add a second parameter, the JITer objfile.
3352 * jit.c (jit_read_descriptor): Change the signature to take the
3353 JITer objfile as an argument instead of the jit_program_space_data.
3354 (jit_inferior_init): Update the call to jit_read_descriptor.
3355 (jit_event_handler): Use the new JITer objfile argument when calling
3356 jit_read_descriptor.
3357 * breakpoint.c (handle_jit_event): Update the call to
3358 jit_event_handler to pass the JITer objfile.
3359
3360 2020-07-21 John Baldwin <jhb@FreeBSD.org>
3361
3362 * gdbarch.c: Regenerate.
3363 * gdbarch.h: Regenerate.
3364 * gdbarch.sh (handle_segmentation_fault): Remove method.
3365 * infrun.c (handle_segmentation_fault): Remove.
3366 (print_signal_received_reason): Remove call to
3367 handle_segmentation_fault.
3368
3369 2020-07-21 John Baldwin <jhb@FreeBSD.org>
3370
3371 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
3372 Rename to sparc64_linux_report_signal_info and add siggnal
3373 argument.
3374 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
3375 instead of sparc64_linux_handle_segmentation_fault.
3376
3377 2020-07-21 John Baldwin <jhb@FreeBSD.org>
3378
3379 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
3380 i386_linux_report_signal_info instead of
3381 i386_linux_handle_segmentation_fault.
3382 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
3383 to i386_linux_report_signal_info and add siggnal argument.
3384 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
3385 of i386_linux_handle_segmentation_fault.
3386 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
3387 to i386_linux_report_signal_info and add siggnal argument.
3388
3389 2020-07-21 John Baldwin <jhb@FreeBSD.org>
3390
3391 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
3392 hook if present.
3393
3394 2020-07-21 John Baldwin <jhb@FreeBSD.org>
3395
3396 * gdbarch.c: Regenerate.
3397 * gdbarch.h: Regenerate.
3398 * gdbarch.sh (report_signal_info): New method.
3399 * infrun.c (print_signal_received_reason): Invoke gdbarch
3400 report_signal_info hook if present.
3401
3402 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
3403
3404 * python/py-registers.c : Add 'unordered_map' include.
3405 (gdbpy_new_reggroup): Renamed to...
3406 (gdbpy_get_reggroup): ...this. Update to only create register
3407 group descriptors when needed.
3408 (gdbpy_reggroup_iter_next): Update.
3409
3410 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
3411
3412 * python/py-registers.c (gdbpy_register_object_data): New static
3413 global.
3414 (gdbpy_register_object_data_init): New function.
3415 (gdbpy_new_register_descriptor): Renamed to...
3416 (gdbpy_get_register_descriptor): ...this, and update to reuse
3417 existing register descriptors where possible.
3418 (gdbpy_register_descriptor_iter_next): Update.
3419 (gdbpy_initialize_registers): Register new gdbarch data.
3420
3421 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
3422
3423 * linux-nat.c (stopped_pids): Make static.
3424
3425 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
3426
3427 PR ada/26235
3428 * gdbtypes.c (ada_discrete_type_low_bound,
3429 ada_discrete_type_high_bound): Handle undefined bounds.
3430
3431 2020-07-21 Kamil Rytarowski <n54@gmx.com>
3432
3433 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
3434 declaration.
3435 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
3436 function.
3437
3438 2020-07-20 John Baldwin <jhb@FreeBSD.org>
3439
3440 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
3441 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
3442 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
3443 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
3444 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
3445 method.
3446
3447 2020-07-20 Ludovic Courtès <ludo@gnu.org>
3448
3449 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
3450 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
3451 which are deprecated in Guile 3.0.
3452 * configure.ac (try_guile_versions): Add "guile-3.0".
3453 * configure (try_guile_versions): Regenerate.
3454 * NEWS: Update entry.
3455
3456 2020-07-20 Ludovic Courtès <ludo@gnu.org>
3457 Doug Evans <dje@google.com>
3458
3459 PR gdb/21104
3460 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
3461 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
3462 USING_GUILE_BEFORE_2_2.
3463 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
3464 Change type to 'scm_t_port_type *'.
3465 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
3466 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
3467 parameter and honor it. Update callers.
3468 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
3469 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
3470 functions.
3471 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
3472 USING_GUILE_BEFORE_2_2.
3473 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
3474 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
3475 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
3476 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
3477 and 'SCM_PORT_TYPE'.
3478 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
3479 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
3480 (gdbscm_memory_port_read, gdbscm_memory_port_write)
3481 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
3482 [!USING_GUILE_BEFORE_2_2]: New functions.
3483 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
3484 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
3485 'gdbscm_memory_port_read'.
3486 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
3487 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
3488 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
3489 function.
3490 (ioscm_init_memory_port): Remove.
3491 (ioscm_init_memory_port_stream): New function
3492 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
3493 function.
3494 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
3495 Return scm_from_uint (0).
3496 (gdbscm_set_memory_port_read_buffer_size_x)
3497 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
3498 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
3499 Return scm_from_uint (0).
3500 (gdbscm_set_memory_port_write_buffer_size_x)
3501 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
3502 * configure.ac (try_guile_versions): Add "guile-2.2".
3503 * configure: Regenerate.
3504 * NEWS: Add entry.
3505
3506 2020-07-18 Tom Tromey <tom@tromey.com>
3507
3508 * linux-nat.c (linux_multi_process): Remove.
3509 (linux_nat_target::supports_multi_process): Return true.
3510
3511 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
3512
3513 * arch/riscv.c (riscv_tdesc_cache): Change map type.
3514 (riscv_lookup_target_description): Return pointer out of
3515 unique_ptr.
3516 * target-descriptions.c (allocate_target_description): Add
3517 comment.
3518 (target_desc_deleter::operator()): Likewise.
3519 * target-descriptions.h (struct target_desc_deleter): Moved to
3520 gdbsupport/tdesc.h.
3521 (target_desc_up): Likewise.
3522
3523 2020-07-17 Tom Tromey <tromey@adacore.com>
3524
3525 * linux-nat.c (linux_nat_target::supports_non_stop)
3526 (linux_nat_target::always_non_stop_p): Use "true".
3527 (linux_nat_target::supports_disable_randomization): Use "true" and
3528 "false".
3529
3530 2020-07-16 Caroline Tice <cmtice@google.com>
3531
3532 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
3533 (RNGLIST_HEADER_SIZE64): New constant definition.
3534 (struct dwop_section_names): Add rnglists_dwo.
3535 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
3536 (struct loclist_header): Rename to 'loclists_rnglists_header'.
3537 (struct dwo_sections): Add rnglists field.
3538 (read_attribut_reprocess): Add tag parameter.
3539 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
3540 (cu_debug_rnglists_section): New function (decl & definition).
3541 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
3542 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
3543 die whose range is being checked; get rnglist section from
3544 cu_debug_rnglists_section, to get from either objfile or dwo file as
3545 appropriate. Add cases for DW_RLE_base_addressx,
3546 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
3547 the base address to DW_RLE_offset_pairs (not to all ranges), moving
3548 test inside if-condition and updating complaint message.
3549 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
3550 dwarf2_rnglists_process.
3551 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
3552 dwarf2_ranges_process.
3553 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
3554 need_ranges_base and update comment appropriately. Also pass die tag
3555 to dwarf2_ranges_read.
3556 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
3557 need_ranges_base and update comment appropriately. Also pass die tag
3558 to dwarf2_ranges_process.
3559 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
3560 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
3561 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
3562 need_ranges_base and update comment appropriately. Also pass die tag
3563 to read_attribute_reprocess and dwarf2_ranges_read.
3564 (read_loclist_header): Rename function to read_loclists_rnglists_header,
3565 and update function comment appropriately.
3566 (read_loclist_index): Call read_loclists_rnglists_header instead of
3567 read_loclist_header.
3568 (read_rnglist_index): New function.
3569 (read_attribute_reprocess): Add tag parameter. Add code for
3570 DW_FORM_rnglistx, passing tag to read_rnglist_index.
3571 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
3572
3573 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
3574
3575 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
3576 being resolved.
3577
3578 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
3579
3580 * arch-utils.c (show_architecture): Update formatting of messages.
3581
3582 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3583
3584 * gdbtypes.h (struct type) <bounds>: Handle array and string
3585 types.
3586 * ada-lang.c (assign_aggregate): Use type::bounds on
3587 array/string type.
3588 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
3589 * c-varobj.c (c_number_of_children): Likewise.
3590 (c_describe_child): Likewise.
3591 * eval.c (evaluate_subexp_for_sizeof): Likewise.
3592 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
3593 (f_type_print_base): Likewise.
3594 * f-valprint.c (f77_array_offset_tbl): Likewise.
3595 (f77_get_upperbound): Likewise.
3596 (f77_print_array_1): Likewise.
3597 * guile/scm-type.c (gdbscm_type_range): Likewise.
3598 * m2-typeprint.c (m2_array): Likewise.
3599 (m2_is_long_set_of_type): Likewise.
3600 * m2-valprint.c (get_long_set_bounds): Likewise.
3601 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
3602 * python/py-type.c (typy_range): Likewise.
3603 * rust-lang.c (rust_internal_print_type): Likewise.
3604 * type-stack.c (type_stack::follow_types): Likewise.
3605 * valarith.c (value_subscripted_rvalue): Likewise.
3606 * valops.c (value_cast): Likewise.
3607
3608 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3609
3610 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
3611 callers to use the equivalent accessor methods.
3612
3613 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3614
3615 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
3616 (struct type) <bit_stride>: New method.
3617 (TYPE_BIT_STRIDE): Remove.
3618 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
3619
3620 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3621
3622 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
3623 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
3624 callers to use the equivalent accessor methods instead.
3625
3626 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3627
3628 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
3629 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
3630 callers to use the equivalent accessor methods instead.
3631
3632 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3633
3634 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
3635 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
3636 to use dynamic_prop::kind.
3637
3638 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3639
3640 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
3641 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
3642 to get the bound property's kind and check against
3643 PROP_UNDEFINED.
3644
3645 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3646
3647 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
3648 all callers to use type::range_bounds followed by
3649 dynamic_prop::{low,high}.
3650
3651 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
3652
3653 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
3654 const_val, set_const_val, baton, set_locexpr, set_loclist,
3655 set_addr_offset, variant_parts, set_variant_parts,
3656 original_type, set_original_type>: New methods.
3657 <kind>: Rename to...
3658 <m_kind>: ... this. Update all users to use the new methods
3659 instead.
3660 <data>: Rename to...
3661 <m_data>: ... this. Update all users to use the new methods
3662 instead.
3663
3664 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3665
3666 * gdbtypes.c (get_discrete_bounds): Return failure if
3667 the range type's bounds are not both defined and constant
3668 values.
3669 (get_array_bounds): Update comment. Remove undefined bound check.
3670
3671 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
3672
3673 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
3674 the type::bounds method directly.
3675
3676 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3677
3678 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
3679 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
3680 are used to set the range type's bounds to use set_bounds.
3681
3682 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3683
3684 * exec.c (_initialize_exec): Update exec-file-mismatch help.
3685
3686 2020-07-10 Pedro Alves <pedro@palves.net>
3687
3688 * gdbthread.h (inferior_ref): Define.
3689 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
3690 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
3691 * thread.c
3692 (scoped_restore_current_thread::restore):
3693 Adjust to gdb::ref_ptr.
3694 (scoped_restore_current_thread::~scoped_restore_current_thread):
3695 Remove manual decref handling.
3696 (scoped_restore_current_thread::scoped_restore_current_thread):
3697 Adjust to use
3698 inferior_ref::new_reference/thread_info_ref::new_reference.
3699 Incref the thread before calling get_frame_id instead of after.
3700 Let TARGET_CLOSE_ERROR propagate.
3701
3702 2020-07-10 Pedro Alves <pedro@palves.net>
3703
3704 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
3705 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
3706 NOT_AVAILABLE_ERROR.
3707 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
3708 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
3709
3710 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3711 Pedro Alves <pedro@palves.net>
3712
3713 PR gdb/26199
3714 * infrun.c (threads_are_resumed_pending_p): Delete.
3715 (do_target_wait): Remove threads_are_executing and
3716 threads_are_resumed_pending_p checks from the inferior_matches
3717 lambda. Update comments.
3718
3719 2020-07-10 Pedro Alves <pedro@palves.net>
3720
3721 PR gdb/26199
3722 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
3723 executing threads.
3724
3725 2020-07-10 Pedro Alves <pedro@palves.net>
3726
3727 PR gdb/26199
3728 * infrun.c (handle_no_resumed): Handle multiple targets.
3729
3730 2020-07-10 Pedro Alves <pedro@palves.net>
3731
3732 PR gdb/26199
3733 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
3734 target_is_async_p.
3735
3736 2020-07-10 Pedro Alves <pedro@palves.net>
3737
3738 PR gdb/26199
3739 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
3740 threads, not all threads.
3741
3742 2020-07-10 Pedro Alves <pedro@palves.net>
3743
3744 PR gdb/26199
3745 * remote.c (remote_target::open_1): Pass remote target pointer as
3746 data to create_async_event_handler.
3747 (remote_async_inferior_event_handler): Mark async event handler
3748 before returning if the remote target still has either pending
3749 events or unacknowledged notifications.
3750
3751 2020-07-10 John Baldwin <jhb@FreeBSD.org>
3752
3753 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
3754 declaration.
3755 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
3756 function.
3757
3758 2020-07-09 John Baldwin <jhb@FreeBSD.org>
3759
3760 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
3761 inferior_ptid.
3762
3763 2020-07-09 John Baldwin <jhb@FreeBSD.org>
3764
3765 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
3766 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
3767 AT_FREEBSD_PS_STRINGS.
3768
3769 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
3770
3771 * auto-load.c (auto_load_objfile_script_1): Convert drive part
3772 of debugfile path on Windows.
3773
3774 2020-07-08 John Baldwin <jhb@FreeBSD.org>
3775
3776 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
3777 argument to 'data'.
3778
3779 2020-07-08 Tom Tromey <tromey@adacore.com>
3780
3781 * ada-lang.c (ada_exception_message_1): Use read_memory.
3782
3783 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3784
3785 PR python/22748
3786 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
3787 special handling for inline frames.
3788 * findvar.c (value_of_register_lazy): Skip inline frames when
3789 creating lazy register values.
3790 * frame.c (frame_id_computed_p): Delete definition.
3791 * frame.h (frame_id_computed_p): Delete declaration.
3792
3793 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3794
3795 * NEWS: Mention additions to Python API.
3796 * python/py-arch.c (archpy_register_groups): New function.
3797 (arch_object_methods): Add 'register_groups' method.
3798 * python/py-registers.c (reggroup_iterator_object): New struct.
3799 (reggroup_object): New struct.
3800 (gdbpy_new_reggroup): New function.
3801 (gdbpy_reggroup_to_string): New function.
3802 (gdbpy_reggroup_name): New function.
3803 (gdbpy_reggroup_iter): New function.
3804 (gdbpy_reggroup_iter_next): New function.
3805 (gdbpy_new_reggroup_iterator): New function
3806 (gdbpy_initialize_registers): Register new types.
3807 (reggroup_iterator_object_type): Define new Python type.
3808 (gdbpy_reggroup_getset): New static global.
3809 (reggroup_object_type): Define new Python type.
3810 * python/python-internal.h
3811
3812 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3813
3814 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
3815 * python/py-arch.c (archpy_registers): New function.
3816 (arch_object_methods): Add 'registers' method.
3817 * python/py-registers.c: New file.
3818 * python/python-internal.h
3819 (gdbpy_new_register_descriptor_iterator): Declare.
3820 (gdbpy_initialize_registers): Declare.
3821 * python/python.c (do_start_initialization): Call
3822 gdbpy_initialize_registers.
3823 * NEWS: Mention additions to the Python API.
3824
3825 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3826
3827 * NEWS: Mention new Python API method.
3828 * python/py-unwind.c (pending_framepy_architecture): New function.
3829 (pending_frame_object_methods): Add architecture method.
3830
3831 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3832
3833 * gdbarch.c: Regenerate.
3834 * gdbarch.h: Regenerate.
3835 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
3836 (gdbarch_data): Use internal_error for the case where
3837 deprecated_set_gdbarch_data was originally needed.
3838 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
3839 and use passed in obstack.
3840 (libunwind_frame_set_descr): Should no longer get back NULL from
3841 gdbarch_data.
3842 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
3843 type.
3844 * user-regs.c (user_regs_init): Update parameters, and use passed
3845 in obstack.
3846 (user_reg_add): Should no longer get back NULL from gdbarch_data.
3847 (_initialize_user_regs): Register as a pre-init gdbarch data type.
3848
3849 2020-07-06 Tom de Vries <tdevries@suse.de>
3850
3851 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
3852 End-Of-Sequence in lte_is_less_than.
3853 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
3854 "gdb: Don't reorder line table entries too much when sorting".
3855
3856 2020-07-06 Tom de Vries <tdevries@suse.de>
3857
3858 PR tui/26205
3859 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
3860
3861 2020-07-05 Tom de Vries <tdevries@suse.de>
3862
3863 PR build/26187
3864 * inferior.h (struct infcall_suspend_state_deleter): If available, use
3865 std::uncaught_exceptions instead of deprecated
3866 std::uncaught_exception.
3867
3868 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3869
3870 * macroexp.h (macro_stringify): Return
3871 gdb::unique_xmalloc_ptr<char>.
3872 * macroexp.c (macro_stringify): Likewise.
3873 * macrotab.c (fixup_definition): Update.
3874
3875 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3876
3877 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
3878 (lex_one_token): Update.
3879 * macroexp.c (struct macro_buffer) <release>: Return
3880 gdb::unique_xmalloc_ptr<char>.
3881 (macro_stringify): Update.
3882 (macro_expand): Update.
3883 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
3884 * macroexp.h (macro_expand_next): Likewise.
3885
3886 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
3887
3888 * macroexp.h (macro_lookup_ftype): Remove.
3889 (macro_expand, macro_expand_once, macro_expand_next): Remove
3890 lookup function parameters, add scope parameter.
3891 * macroexp.c (scan, substitute_args, expand, maybe_expand,
3892 macro_expand, macro_expand_once, macro_expand_next): Likewise.
3893 * macroscope.h (standard_macro_lookup): Change parameter type
3894 to macro_scope.
3895 * macroscope.c (standard_macro_lookup): Likewise.
3896 * c-exp.y (lex_one_token): Update.
3897 * macrocmd.c (macro_expand_command): Likewise.
3898 (macro_expand_once_command): Likewise.
3899
3900 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3901
3902 * inf-loop.c (inferior_event_handler): Remove client_data param.
3903 * inf-loop.h (inferior_event_handler): Likewise.
3904 * infcmd.c (step_1): Adjust.
3905 * infrun.c (proceed): Adjust.
3906 (fetch_inferior_event): Remove client_data param.
3907 (infrun_async_inferior_event_handler): Adjust.
3908 * infrun.h (fetch_inferior_event): Remove `void *` param.
3909 * linux-nat.c (handle_target_event): Adjust.
3910 * record-btrace.c (record_btrace_handle_async_inferior_event):
3911 Adjust.
3912 * record-full.c (record_full_async_inferior_event_handler):
3913 Adjust.
3914 * remote.c (remote_async_inferior_event_handler): Adjust.
3915
3916 2020-07-01 Tom Tromey <tom@tromey.com>
3917
3918 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
3919 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
3920
3921 2020-07-01 Tom Tromey <tom@tromey.com>
3922
3923 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
3924 tui_gen_win_info.
3925 (tui_win_info::make_window): Merge with
3926 tui_gen_win_info::make_window.
3927 (tui_win_info::make_visible): Move from tui_gen_win_info.
3928 * tui/tui-win.c (tui_win_info::max_width): Move from
3929 tui_gen_win_info.
3930 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
3931 type.
3932 <window_factory>: Likewise.
3933 * tui/tui-layout.c (tui_win_info::resize): Move from
3934 tui_gen_win_info.
3935 (make_standard_window): Change return type.
3936 (get_locator_window, tui_get_window_by_name): Likewise.
3937 (tui_layout_window::apply): Remove a cast.
3938 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
3939 (struct tui_win_info): Merge with tui_gen_win_info.
3940 (struct tui_gen_win_info): Remove.
3941
3942 2020-07-01 Tom Tromey <tom@tromey.com>
3943
3944 * tui/tui-stack.h (struct tui_locator_window): Derive from
3945 tui_win_info.
3946 <do_scroll_horizontal, do_scroll_vertical>: New methods.
3947 <can_box>: New method.
3948
3949 2020-07-01 Tom Tromey <tom@tromey.com>
3950
3951 * tui/tui-stack.h (struct tui_locator_window): Remove body.
3952
3953 2020-07-01 Tom Tromey <tom@tromey.com>
3954
3955 * tui/tui-regs.c (tui_data_window::display_registers_from)
3956 (tui_data_window::display_registers_from)
3957 (tui_data_window::first_data_item_displayed)
3958 (tui_data_window::delete_data_content_windows): Update.
3959 (tui_data_window::refresh_window, tui_data_window::no_refresh):
3960 Remove.
3961 (tui_data_window::check_register_values): Update.
3962 (tui_data_item_window::rerender): Add parameters. Update.
3963 (tui_data_item_window::refresh_window): Remove.
3964 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
3965 virtual.
3966 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
3967 tui_gen_win_info.
3968 <refresh_window, max_height, min_height>: Remove.
3969 <rerender>: Add parameters.
3970 <x, y, visible>: New members.
3971 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
3972 <m_item_width>: New member.
3973
3974 2020-07-01 Tom Tromey <tom@tromey.com>
3975
3976 * tui/tui-regs.c (tui_data_window::show_register_group)
3977 (tui_data_window::check_register_values): Update.
3978 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
3979 from item_no.
3980
3981 2020-07-01 Tom Tromey <tom@tromey.com>
3982
3983 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
3984 useless "if".
3985
3986 2020-07-01 Tom Tromey <tom@tromey.com>
3987
3988 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
3989 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
3990
3991 2020-07-01 Tom Tromey <tom@tromey.com>
3992
3993 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
3994 * tui/tui-winsource.h (enum tui_line_or_address_kind)
3995 (struct tui_line_or_address): Move from tui-data.h.
3996 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
3997 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
3998 (tui_cmd_window, tui_source_window_base, tui_source_window)
3999 (tui_disasm_window): Don't declare.
4000 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
4001 to tui-winsource.h.
4002 (SINGLE_KEY): Move to tui-stack.c.
4003
4004 2020-07-01 Tom Tromey <tom@tromey.com>
4005
4006 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
4007 std::string.
4008 * tui/tui-regs.c (class tab_expansion_file): New.
4009 (tab_expansion_file::write): New method.
4010 (tui_register_format): Change return type. Use
4011 tab_expansion_file.
4012 (tui_get_register, tui_data_window::display_registers_from)
4013 (tui_data_item_window::rerender): Update.
4014 * tui/tui-io.h (tui_expand_tabs): Don't declare.
4015 * tui/tui-io.c (tui_expand_tabs): Remove.
4016
4017 2020-07-01 Tom Tromey <tom@tromey.com>
4018
4019 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
4020
4021 2020-07-01 Fangrui Song <maskray@google.com>
4022
4023 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
4024
4025 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4026
4027 * dwarf2/read.c (set_die_type): Removed conditions to restrict
4028 forms for DW_AT_associated and DW_AT_allocated attributes,
4029 which is already checked in function attr_to_dynamic_prop.
4030
4031 2020-06-30 Tom Tromey <tromey@adacore.com>
4032
4033 * dwarf2/read.c (quirk_rust_enum): Correctly call
4034 alloc_rust_variant for default-less enum.
4035
4036 2020-06-30 Tom Tromey <tromey@adacore.com>
4037
4038 PR build/26183:
4039 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
4040 gdb::to_string.
4041
4042 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
4043
4044 * gdbarch.sh (displaced_step_copy_insn): Update doc.
4045 * gdbarch.h: Re-generate.
4046
4047 2020-06-28 Tom Tromey <tom@tromey.com>
4048
4049 * command.h (cmd_types): Remove.
4050 (cmd_type): Don't declare.
4051 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
4052 typedef.
4053 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
4054 * cli/cli-decode.c (cmd_type): Remove.
4055
4056 2020-06-27 Pedro Alves <palves@redhat.com>
4057
4058 * fork-child.c (prefork_hook): Adjust.
4059 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
4060 Delete.
4061 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
4062 * inferior.c (inferior::set_tty, inferior::tty): New methods.
4063 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
4064 Remove declarations.
4065 (struct inferior) <set_tty, tty>: New methods.
4066 (struct inferior) <terminal>: Rename to ...
4067 (struct inferior) <m_terminal>: ... this and make private.
4068 * main.c (captured_main_1): Adjust.
4069 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
4070 (mi_cmd_inferior_tty_show): Adjust.
4071 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
4072 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
4073
4074 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
4075
4076 * configure.ac: Add --enable-libctf: handle --disable-static
4077 properly.
4078 * acinclude.m4: sinclude ../config/enable.m4.
4079 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
4080 (LIBCTF): Substitute in.
4081 (CTF_DEPS): New, likewise.
4082 (CLIBS): libctf needs symbols from libbfd: move earlier.
4083 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
4084 flags.
4085 * ctfread.c: Surround in ENABLE_LIBCTF.
4086 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
4087 * configure: Regenerate.
4088 * config.in: Likewise.
4089
4090 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
4091
4092 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
4093
4094 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
4095
4096 * inferior.h (struct inferior) <terminal>: Change type to
4097 gdb::unique_xmalloc_ptr<char>.
4098 * inferior.c (inferior::~inferior): Don't free inf->terminal.
4099 * infcmd.c (set_inferior_io_terminal): Don't free terminal
4100 field, adjust to unique pointer.
4101 (get_inferior_io_terminal): Adjust to unique pointer.
4102
4103 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4104
4105 * riscv-tdep.c (riscv_print_registers_info): Loop over all
4106 registers, not just the known core set of registers.
4107
4108 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4109
4110 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
4111 fflags, frm, and fcsr registers.
4112 (riscv_register_reggroup_p): Remove unknown CSRs from save and
4113 restore groups.
4114 (riscv_tdesc_unknown_reg): New function.
4115 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
4116 tdesc_use_registers.
4117 * riscv-tdep.h (struct gdbarch_tdep): Add
4118 unknown_csrs_first_regnum, unknown_csrs_count,
4119 duplicate_fflags_regnum, duplicate_frm_regnum, and
4120 duplicate_fcsr_regnum fields.
4121
4122 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4123
4124 * target-descriptions.c (tdesc_use_registers): Add new parameter a
4125 callback, use the callback (when not null) to help number unknown
4126 registers.
4127 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
4128 (tdesc_use_registers): Add extra parameter to declaration.
4129
4130 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4131
4132 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
4133 in the file.
4134 (class riscv_pending_register_alias): Likewise.
4135 (riscv_register_feature::register_info): Change 'required_p' field
4136 to 'required', and change its type. Add 'check' member function.
4137 (riscv_register_feature::register_info::check): Define new member
4138 function.
4139 (riscv_xreg_feature): Change initialisation of 'required' field.
4140 (riscv_freg_feature): Likewise.
4141 (riscv_virtual_feature): Likewise.
4142 (riscv_csr_feature): Likewise.
4143 (riscv_check_tdesc_feature): Take extra parameter, the csr
4144 tdesc_feature, rewrite the function to use the new
4145 riscv_register_feature::register_info::check function.
4146 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
4147
4148 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4149
4150 * features/Makefile: Remove all references to the deleted files
4151 below.
4152 * features/riscv/32bit-csr.c: Deleted.
4153 * features/riscv/32bit-csr.xml: Deleted.
4154 * features/riscv/64bit-csr.c: Deleted.
4155 * features/riscv/64bit-csr.xml: Deleted.
4156 * features/riscv/rebuild-csr-xml.sh: Deleted.
4157
4158 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4159
4160 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
4161 whitespace error for declaration of names member variable.
4162 (struct riscv_register_feature): Add new prefer_first_name member
4163 variable, and fix whitespace error in declaration of registers.
4164 (riscv_xreg_feature): Initialize prefer_first_name field.
4165 (riscv_freg_feature): Likewise.
4166 (riscv_virtual_feature): Likewise.
4167 (riscv_csr_feature): Likewise.
4168 (riscv_register_name): Expand on comments. Remove register name
4169 modifications for CSR and virtual registers.
4170
4171 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4172
4173 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
4174 errors.
4175
4176 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4177
4178 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
4179 riscv-opc.h.
4180 (class riscv_pending_register_alias): New class.
4181 (riscv_check_tdesc_feature): Take vector of pending aliases and
4182 populate it as appropriate.
4183 (riscv_setup_register_aliases): Delete.
4184 (riscv_gdbarch_init): Create vector of pending aliases and pass it
4185 to riscv_check_tdesc_feature in all cases. Use the vector to
4186 create the register aliases.
4187
4188 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4189
4190 * sol2-tdep.c (sol2_static_transform_name): Remove.
4191 (sol2_init_abi): Don't register it.
4192 * gdbarch.sh (static_transform_name): Remove.
4193 * gdbarch.c, gdbarch.h: Regenerate.
4194
4195 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
4196 gdbarch_static_transform_name.
4197 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
4198 * stabsread.c (define_symbol) <'X'>: Remove.
4199 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
4200 handling.
4201 <'V'>: Likewise.
4202 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
4203 <'S'>: Remove call to gdbarch_static_transform_name.
4204
4205 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4206
4207 * procfs.c (procfs_pre_trace): New function.
4208 (procfs_target::create_inferior): Pass it to fork_inferior.
4209
4210 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4211
4212 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
4213 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
4214 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
4215 sol2-tdep.o, sparc-sol2-tdep.o.
4216 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
4217 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
4218 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
4219 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
4220
4221 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4222
4223 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
4224 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
4225 Call sol2_init_abi.
4226 Remove calls to set_gdbarch_skip_solib_resolver,
4227 set_gdbarch_core_pid_to_str.
4228 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
4229 (i386_sol2_static_transform_name): Remove.
4230 (i386_sol2_init_abi): Call sol2_init_abi.
4231 Remove calls to set_gdbarch_sofun_address_maybe_missing,
4232 set_gdbarch_static_transform_name,
4233 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
4234 Use sol2_sigtramp_p.
4235 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
4236 (sol2_sigtramp_p): New function.
4237 (sol2_static_transform_name): New function.
4238 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
4239 (sol2_init_abi): New function.
4240 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
4241 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
4242 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
4243 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
4244 (sparc_sol2_static_transform_name): Remove.
4245 (sparc32_sol2_init_abi): Call sol2_init_abi.
4246 Remove calls to set_gdbarch_sofun_address_maybe_missing,
4247 set_gdbarch_static_transform_name,
4248 set_gdbarch_skip_solib_resolver,
4249 set_gdbarch_core_pid_to_str.
4250 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
4251 (sparc_sol2_static_transform_name): Remove
4252 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
4253 call sol2_sigtramp_p.
4254 (sparc64_sol2_init_abi): Call sol2_init_abi.
4255 Remove calls to set_gdbarch_sofun_address_maybe_missing,
4256 set_gdbarch_static_transform_name,
4257 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
4258
4259 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4260
4261 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
4262 * exec.c (validate_exec_file): If from_tty, set both
4263 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
4264 * symfile.c (symbol_file_add_with_addrs): if always_confirm
4265 and from_tty, unconditionally ask a confirmation.
4266
4267 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4268
4269 * target-descriptions.c (tdesc_architecture_name): Protect against
4270 NULL pointer dereference.
4271 (maint_print_xml_tdesc_cmd): New function.
4272 (_initialize_target_descriptions): Register new 'maint print
4273 xml-tdesc' command and give it the filename completer.
4274 * NEWS: Mention new 'maint print xml-tdesc' command.
4275
4276 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4277
4278 * target-descriptions.c (class tdesc_compatible_info): New class.
4279 (struct target_desc): Change type of compatible vector.
4280 (tdesc_compatible_p): Update for change in type of
4281 target_desc::compatible.
4282 (tdesc_compatible_info_list): New function.
4283 (tdesc_compatible_info_arch_name): New function.
4284 (tdesc_add_compatible): Update for change in type of
4285 target_desc::compatible.
4286 (print_c_tdesc::visit_pre): Likewise.
4287
4288 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4289
4290 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
4291 whitespace to underscore.
4292 (maint_print_c_tdesc_cmd): Use fake filename for target
4293 descriptions that came from the target.
4294 (_initialize_target_descriptions): Add filename command completion
4295 for 'maint print c-tdesc'.
4296
4297 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
4298
4299 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
4300 lines.
4301
4302 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
4303
4304 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
4305 lines.
4306 (dwarf2_find_location_expression): Likewise.
4307 (call_site_parameter_matches): Likewise.
4308 (dwarf2_compile_expr_to_ax): Likewise.
4309 (disassemble_dwarf_expression): Likewise.
4310 (loclist_describe_location): Likewise.
4311
4312 2020-06-23 Pedro Alves <palves@redhat.com>
4313
4314 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
4315 progspace-and-thread.h. Include scoped-mock-context.h instead.
4316 (register_to_value_test): Use scoped_mock_context.
4317 * regcache.c: Include "scoped-mock-context.h".
4318 (cooked_read_test): Don't error out if a target is already pushed.
4319 Use scoped_mock_context. Adjust.
4320 * scoped-mock-context.h: New file.
4321
4322 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4323
4324 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
4325 initializer.
4326 (ada_language::is_string_type_p): New member function.
4327 * c-lang.c (c_language_data): Delete la_is_string_type_p
4328 initializer.
4329 (cplus_language_data): Likewise.
4330 (asm_language_data): Likewise.
4331 (minimal_language_data): Likewise.
4332 * d-lang.c (d_language_data): Likewise.
4333 * f-lang.c (f_is_string_type_p): Delete function, implementation
4334 moved to f_language::is_string_type_p.
4335 (f_language_data): Delete la_is_string_type_p initializer.
4336 (f_language::is_string_type_p): New member function,
4337 implementation from f_is_string_type_p.
4338 * go-lang.c (go_is_string_type_p): Delete function, implementation
4339 moved to go_language::is_string_type_p.
4340 (go_language_data): Delete la_is_string_type_p initializer.
4341 (go_language::is_string_type_p): New member function,
4342 implementation from go_is_string_type_p.
4343 * language.c (language_defn::is_string_type_p): Define new member
4344 function.
4345 (default_is_string_type_p): Make static, add comment copied from
4346 header file.
4347 (unknown_language_data): Delete la_is_string_type_p initializer.
4348 (unknown_language::is_string_type_p): New member function.
4349 (auto_language_data): Delete la_is_string_type_p initializer.
4350 (auto_language::is_string_type_p): New member function.
4351 * language.h (language_data): Delete la_is_string_type_p field.
4352 (language_defn::is_string_type_p): Declare new function.
4353 (default_is_string_type_p): Delete desclaration, move comment to
4354 definition.
4355 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
4356 moved to m2_language::is_string_type_p.
4357 (m2_language_data): Delete la_is_string_type_p initializer.
4358 (m2_language::is_string_type_p): New member function,
4359 implementation from m2_is_string_type_p.
4360 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
4361 initializer.
4362 * opencl-lang.c (opencl_language_data): Likewise.
4363 * p-lang.c (pascal_is_string_type_p): Delete function,
4364 implementation moved to pascal_language::is_string_type_p.
4365 (pascal_language_data): Delete la_is_string_type_p initializer.
4366 (pascal_language::is_string_type_p): New member function,
4367 implementation from pascal_is_string_type_p.
4368 * rust-lang.c (rust_is_string_type_p): Delete function,
4369 implementation moved to rust_language::is_string_type_p.
4370 (rust_language_data): Delete la_is_string_type_p initializer.
4371 (rust_language::is_string_type_p): New member function,
4372 implementation from rust_is_string_type_p.
4373 * valprint.c (val_print_scalar_or_string_type_p): Update call to
4374 is_string_type_p.
4375
4376 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4377
4378 * ada-lang.c (ada_language_data): Delete la_print_typedef
4379 initializer.
4380 (ada_language::print_typedef): New member function.
4381 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
4382 (cplus_language_data): Likewise.
4383 (asm_language_data): Likewise.
4384 (minimal_language_data): Likewise.
4385 * d-lang.c (d_language_data): Likewise.
4386 * f-lang.c (f_language_data): Likewise.
4387 (f_language::print_typedef): New member function.
4388 * go-lang.c (go_language_data): Delete la_print_typedef
4389 initializer.
4390 * language.c (language_defn::print_typedef): Define member
4391 function.
4392 (unknown_language_data): Delete la_print_typedef initializer.
4393 (unknown_language::print_typedef): New member function.
4394 (auto_language_data): Delete la_print_typedef initializer.
4395 (auto_language::print_typedef): New member function.
4396 * language.h (language_data): Delete la_print_typedef field.
4397 (language_defn::print_typedef): Declare new member function.
4398 (LA_PRINT_TYPEDEF): Update call to print_typedef.
4399 (default_print_typedef): Delete declaration.
4400 * m2-lang.c (m2_language_data): Delete la_print_typedef
4401 initializer.
4402 (m2_language::print_typedef): New member function.
4403 * objc-lang.c (objc_language_data): Delete la_print_typedef
4404 initializer.
4405 * opencl-lang.c (opencl_language_data): Likewise.
4406 * p-lang.c (pascal_language_data): Likewise.
4407 (pascal_language::print_typedef): New member function.
4408 * rust-lang.c (rust_print_typedef): Delete function,
4409 implementation moved to rust_language::print_typedef.
4410 (rust_language): Delete la_print_typedef initializer.
4411 (rust_language::print_typedef): New member function,
4412 implementation from rust_print_typedef.
4413 * typeprint.c (default_print_typedef): Delete.
4414
4415 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4416
4417 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
4418 (ada_language::printstr): New member function.
4419 * c-lang.c (c_language_data): Delete la_printstr initializer.
4420 (cplus_language_data): Likewise.
4421 (asm_language_data): Likewise.
4422 (minimal_language_data): Likewise.
4423 * d-lang.c (d_language_data): Likewise.
4424 * f-lang.c (f_printstr): Rename to f_language::printstr.
4425 (f_language_data): Delete la_printstr initializer.
4426 (f_language::printstr): New member function, implementation from
4427 f_printstr.
4428 * go-lang.c (go_language_data): Delete la_printstr initializer.
4429 * language.c (language_defn::printstr): Define new member
4430 function.
4431 (unk_lang_printstr): Delete.
4432 (unknown_language_data): Delete la_printstr initializer.
4433 (unknown_language::printstr): New member function.
4434 (auto_language_data): Delete la_printstr initializer.
4435 (auto_language::printstr): New member function.
4436 * language.h (language_data): Delete la_printstr field.
4437 (language_defn::printstr): Declare new member function.
4438 (LA_PRINT_STRING): Update call to printstr.
4439 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
4440 (m2_language_data): Delete la_printstr initializer.
4441 (m2_language::printstr): New member function, implementation from
4442 m2_printstr.
4443 * objc-lang.c (objc_language_data): Delete la_printstr
4444 initializer.
4445 * opencl-lang.c (opencl_language_data): Likewise.
4446 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
4447 (pascal_language_data): Delete la_printstr initializer.
4448 (pascal_language::printstr): New member function, implementation
4449 from pascal_printstr.
4450 * p-lang.h (pascal_printstr): Delete declaration.
4451 * rust-lang.c (rust_printstr): Update header comment.
4452 (rust_language_data): Delete la_printstr initializer.
4453 (rust_language::printstr): New member function.
4454
4455 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4456
4457 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
4458 (ada_language::printchar): New member function.
4459 * c-lang.c (c_language_data): Delete la_printchar initializer.
4460 (cplus_language_data): Likewise.
4461 (asm_language_data): Likewise.
4462 (minimal_language_data): Likewise.
4463 * d-lang.c (d_language_data): Likewise.
4464 * f-lang.c (f_printchar): Rename to f_language::printchar.
4465 (f_language_data): Delete la_printchar initializer.
4466 (f_language::printchar): New member function, implementation from
4467 f_printchar.
4468 * go-lang.c (go_language_data): Delete la_printchar initializer.
4469 * language.c (unk_lang_printchar): Delete.
4470 (language_defn::printchar): Define new member function.
4471 (unknown_language_data): Delete la_printchar initializer.
4472 (unknown_language::printchar): New member function.
4473 (auto_language_data): Delete la_printchar initializer.
4474 (auto_language::printchar): New member function.
4475 * language.h (language_data): Delete la_printchar field.
4476 (language_defn::printchar): Declare new member function.
4477 (LA_PRINT_CHAR): Update call to printchar.
4478 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
4479 (m2_language::printchar): New member function.
4480 * objc-lang.c (objc_language_data): Delete la_printchar
4481 initializer.
4482 * opencl-lang.c (opencl_language_data): Likewise.
4483 * p-lang.c (pascal_language_data): Delete la_printchar
4484 initializer.
4485 (pascal_language::printchar): New member function.
4486 * rust-lang.c (rust_printchar): Rename to
4487 rust_language::printchar.
4488 (rust_language_data): Delete la_printchar initializer.
4489 (rust_language::printchar): New member function, implementation
4490 from rust_printchar.
4491
4492 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4493
4494 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
4495 (ada_language_data): Delete la_emitchar initializer.
4496 (ada_language::emitchar): New member function, implementation from
4497 emit_char.
4498 * c-lang.c (c_language_data): Delete la_emitchar initializer.
4499 (cplus_language_data): Likewise.
4500 (asm_language_data): Likewise.
4501 (minimal_language_data): Likewise.
4502 * d-lang.c (d_language_data): Likewise.
4503 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
4504 (f_language_data): Delete la_emitchar initializer.
4505 (f_language::emitchar): New member function, implementation from
4506 f_emit_char.
4507 * go-lang.c (go_language_data): Delete la_emitchar initializer.
4508 * language.c (unk_lang_emit_char): Delete.
4509 (language_defn::emitchar): New member function definition.
4510 (unknown_language_data): Delete la_emitchar initializer.
4511 (unknown_language::emitchar): New member function.
4512 (auto_language_data): Delete la_emitchar initializer.
4513 (auto_language::emitchar): New member function.
4514 * language.h (language_data): Delete la_emitchar field.
4515 (language_defn::emitchar): New member field declaration.
4516 (LA_EMIT_CHAR): Update call to emitchar.
4517 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
4518 (m2_language_data): Delete la_emitchar initializer.
4519 (m2_language::emitchar): New member function, implementation from
4520 m2_emit_char.
4521 * objc-lang.c (objc_language_data): Delete la_emitchar
4522 initializer.
4523 * opencl-lang.c (opencl_language_data): Likewise.
4524 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
4525 (pascal_language_data): Delete la_emitchar initializer.
4526 (pascal_language::emitchar): New member function, implementation
4527 from pascal_emit_char.
4528 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
4529 (rust_language_data): Delete la_emitchar initializer.
4530 (rust_language::emitchar): New member function, implementation
4531 from rust_emitchar.
4532
4533 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4534
4535 * ada-lang.c (resolve): Rename to ada_language::post_parser.
4536 (ada_language_data): Delete la_post_parser initializer.
4537 (ada_language::post_parser): New member function.
4538 * c-lang.c (c_language_data): Delete la_post_parser initializer.
4539 (cplus_language_data): Likewise.
4540 (asm_language_data): Likewise.
4541 (minimal_language_data): Likewise.
4542 * d-lang.c (d_language_data): Likewise.
4543 * f-lang.c (f_language_data): Likewise.
4544 * go-lang.c (go_language_data): Likewise.
4545 * language.c (unknown_language_data): Likewise.
4546 (auto_language_data): Likewise.
4547 * language.h (language_data): Delete la_post_parser field.
4548 (language_defn::post_parser): New member function.
4549 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
4550 * objc-lang.c (objc_language_data): Likewise.
4551 * opencl-lang.c (opencl_language_data): Likewise.
4552 * p-lang.c (pascal_language_data): Likewise.
4553 * parse.c (parse_exp_in_context): Update call to post_parser.
4554 (null_post_parser): Delete definition.
4555 * parser-defs.h (null_post_parser): Delete declaration.
4556 * rust-lang.c (rust_language_data): Delete la_post_parser
4557 initializer.
4558
4559 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4560
4561 * ada-lang.c (parse): Rename to ada_language::parser.
4562 (ada_language_data): Delete la_parser initializer.
4563 (ada_language::parser): New member function, implementation from
4564 parse.
4565 * c-lang.c (c_language_data): Delete la_parser initializer.
4566 (cplus_language_data): Likewise.
4567 (asm_language_data): Likewise.
4568 (minimal_language_data): Likewise.
4569 * d-lang.c (d_language_data): Likewise.
4570 (d_language::parser): New member function.
4571 * f-lang.c (f_language_data): Delete la_parser initializer.
4572 (f_language::parser): New member function.
4573 * go-lang.c (go_language_data): Delete la_parser initializer.
4574 (go_language::parser): New member function.
4575 * language.c (unk_lang_parser): Delete.
4576 (language_defn::parser): Define new member function.
4577 (unknown_language_data): Delete la_parser initializer.
4578 (unknown_language::parser): New member function.
4579 (auto_language_data): Delete la_parser initializer.
4580 (auto_language::parser): New member function.
4581 * language.h (language_data): Delete la_parser field.
4582 (language_defn::parser): Declare new member function.
4583 * m2-lang.c (m2_language_data): Delete la_parser initializer.
4584 (m2_language::parser): New member function.
4585 * objc-lang.c (objc_language_data): Delete la_parser initializer.
4586 * opencl-lang.c (opencl_language_data): Likewise.
4587 * p-lang.c (pascal_language_data): Likewise.
4588 (pascal_language::parser): New member function.
4589 * parse.c (parse_exp_in_context): Update call to parser.
4590 * rust-lang.c (rust_language_data): Delete la_parser initializer.
4591 (rust_language::parser): New member function.
4592
4593 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4594
4595 * top.c (print_gdb_configuration): Print --with-python-libdir
4596 configuration value.
4597
4598 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4599
4600 * NEWS: Mention change to the alias command.
4601
4602 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4603
4604 * cli/cli-cmds.c (lookup_cmd_for_default_args)
4605 (alias_command_completer)
4606 (make_alias_options_def_group): New functions.
4607 (alias_opts, alias_option_defs): New struct and array.
4608 (alias_usage_error): Update usage.
4609 (alias_command): Handles optional DEFAULT-ARGS... arguments.
4610 Use option framework.
4611 (_initialize_cli_cmds): Update alias command help.
4612 Update aliases command help.
4613 (show_user):
4614 Add NULL for new default_args lookup_cmd argument.
4615 (valid_command_p): Rename to validate_aliased_command.
4616 Add NULL for new default_args lookup_cmd argument. Verify that the
4617 aliased_command has no default args.
4618 * cli/cli-decode.c (help_cmd): Show aliases definitions.
4619 (lookup_cmd_1, lookup_cmd): New argument default_args.
4620 (add_alias_cmd):
4621 Add NULL for new default_args lookup_cmd argument.
4622 (print_help_for_command): Show default args under the layout
4623 alias some_alias = some_aliased_cmd some_alias_default_arg.
4624 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
4625 xfree default_args in destructor.
4626 * cli/cli-script.c (process_next_line, do_define_command):
4627 Add NULL for new default_args lookup_cmd argument.
4628 * command.h: Declare new default_args argument in lookup_cmd
4629 and lookup_cmd_1.
4630 * completer.c (complete_line_internal_1):
4631 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4632 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
4633 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
4634 Likewise.
4635 * infcmd.c (_initialize_infcmd): Likewise.
4636 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
4637 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
4638 * python/py-param.c (add_setshow_generic): Likewise.
4639 * remote.c (_initialize_remote): Likewise.
4640 * top.c (execute_command): Prepend default_args if command has some.
4641 (set_verbose):
4642 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4643 * tracepoint.c (validate_actionline, encode_actions_1):
4644 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4645
4646 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4647
4648 * jit.c (jit_read_descriptor): Use bool as the return type.
4649 (jit_breakpoint_re_set_internal): Use bool as the return type.
4650 Invert the return value logic; return true if the jit breakpoint
4651 has been successfully initialized.
4652 (jit_inferior_init): Update the call to
4653 jit_breakpoint_re_set_internal.
4654
4655 2020-06-22 Pedro Alves <palves@redhat.com>
4656
4657 PR gdb/25939
4658 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
4659 Use the current inferior instead. Don't return
4660 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
4661 wait again.
4662 * sol-thread.c (sol_thread_target::wait): Don't reference
4663 inferior_ptid.
4664 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
4665 (sol_update_thread_list_callback): Use the current inferior's pid
4666 instead of inferior_ptid.
4667
4668 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4669
4670 * procfs.c: Cleanup many comments.
4671
4672 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
4673 (AFTER_WATCHFLAG): Replace by value.
4674
4675 (MAIN_PROC_NAME_FORMAT): Inline ...
4676 (create_procinfo): ... here.
4677
4678 (procfs_debug_inferior): Remove SYS_exec handling.
4679 (syscall_is_exec): Likewise.
4680 (procfs_set_exec_trap): Likewise.
4681
4682 (syscall_is_lwp_exit): Inline in callers.
4683 (syscall_is_exit): Likewise.
4684 (syscall_is_exec): Likewise.
4685 (syscall_is_lwp_create): Likewise.
4686
4687 (invalidate_cache): Remove #if 0 code.
4688
4689 (make_signal_thread_runnable): Remove.
4690 (procfs_target::resume): Remove #if 0 code.
4691
4692 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4693
4694 PR gdb/25939
4695 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
4696 call ...
4697 (procfs_target::create_inferior): ... here.
4698
4699 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4700
4701 * exec.c (validate_exec_file): Ensure the build-id is up to
4702 date by calling reopen_exec_file (that checks file timestamp
4703 to decide to re-read the file).
4704
4705 2020-06-18 Pedro Alves <palves@redhat.com>
4706
4707 PR gdb/25412
4708 * gdbthread.h (delete_thread, delete_thread_silent)
4709 (find_thread_ptid): Update comments.
4710 * thread.c (current_thread_): New global.
4711 (is_current_thread): Move higher, and reimplement.
4712 (inferior_thread): Reimplement.
4713 (set_thread_exited): Use bool. Add assertions.
4714 (add_thread_silent): Simplify thread-reuse handling by always
4715 calling delete_thread.
4716 (delete_thread): Remove intro comment.
4717 (find_thread_ptid): Skip exited threads.
4718 (switch_to_thread_no_regs): Write to current_thread_.
4719 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
4720 INFERIOR_PTID. Clear current_thread_.
4721
4722 2020-06-18 Pedro Alves <palves@redhat.com>
4723
4724 * aix-thread.c (pd_update): Use switch_to_thread.
4725
4726 2020-06-18 Pedro Alves <palves@redhat.com>
4727
4728 * ravenscar-thread.c (ravenscar_thread_target): Update.
4729 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
4730 (ravenscar_thread_target::add_active_thread): ... this. Don't
4731 set m_base_ptid here. Update to avoid referencing inferior_ptid.
4732 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
4733
4734 2020-06-18 Pedro Alves <palves@redhat.com>
4735
4736 * nat/windows-nat.c (current_windows_thread): Remove.
4737 * nat/windows-nat.h (current_windows_thread): Remove.
4738 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
4739 Adjust.
4740 (display_selectors): Adjust to fetch the current
4741 windows_thread_info based on inferior_ptid.
4742 (fake_create_process): No longer write to current_windows_thread.
4743 (windows_nat_target::get_windows_debug_event):
4744 Don't set inferior_ptid or current_windows_thread.
4745 (windows_nat_target::wait): Adjust to not rely on
4746 current_windows_thread.
4747 (do_initial_windows_stuff): Now a method of windows_nat_target.
4748 Switch to the last_ptid thread.
4749 (windows_nat_target::attach): Adjust.
4750 (windows_nat_target::detach): Use switch_to_no_thread instead of
4751 writing to inferior_ptid directly.
4752 (windows_nat_target::create_inferior): Adjust.
4753
4754 2020-06-18 Pedro Alves <palves@redhat.com>
4755
4756 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
4757
4758 2020-06-18 Pedro Alves <palves@redhat.com>
4759
4760 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
4761 after creating it, instead of writing to inferior_ptid. Don't
4762 write to inferior_ptid.
4763
4764 2020-06-18 Pedro Alves <palves@redhat.com>
4765
4766 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
4767
4768 2020-06-18 Pedro Alves <palves@redhat.com>
4769
4770 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
4771 it, instead of writing to inferior_ptid.
4772
4773 2020-06-18 Pedro Alves <palves@redhat.com>
4774
4775 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
4776 to inferior_ptid.
4777
4778 2020-06-18 Pedro Alves <palves@redhat.com>
4779
4780 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
4781 instead of writing to inferior_ptid directly.
4782
4783 2020-06-18 Pedro Alves <palves@redhat.com>
4784
4785 * corelow.c (core_target::close): Use switch_to_no_thread instead
4786 of writing to inferior_ptid directly.
4787 (add_to_thread_list, core_target_open): Use switch_to_thread
4788 instead of writing to inferior_ptid directly.
4789
4790 2020-06-18 Pedro Alves <palves@redhat.com>
4791
4792 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
4793 inferior_ptid.
4794 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
4795 inferior_ptid.
4796 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
4797 inferior_ptid directly.
4798 (darwin_nat_target::init_thread_list): Switch to thread, instead
4799 of writing to inferior_ptid.
4800 (darwin_nat_target::attach): Don't write to inferior_ptid.
4801 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
4802
4803 2020-06-18 Pedro Alves <palves@redhat.com>
4804
4805 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
4806 thread.
4807 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
4808 Instead use switch_to_thread.
4809 (gnu_nat_target::detach): Use switch_to_no_thread
4810 instead of writing to inferior_ptid directly. Used passed-in
4811 inferior instead of looking up the inferior by pid.
4812
4813 2020-06-18 Pedro Alves <palves@redhat.com>
4814
4815 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
4816 inferior_ptid.
4817
4818 2020-06-18 Pedro Alves <palves@redhat.com>
4819
4820 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
4821 inferior_ptid.
4822 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
4823 thread.
4824 (nto_procfs_target::detach): Avoid referencing
4825 inferior_ptid. Use switch_to_no_thread instead of writing to
4826 inferior_ptid directly.
4827 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
4828 instead of writing to inferior_ptid directly.
4829 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
4830 to thread.
4831
4832 2020-06-18 Pedro Alves <palves@redhat.com>
4833
4834 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
4835 after creating it, instead of writing to inferior_ptid.
4836 (gdbsim_target_open): Use switch_to_no_thread instead of writing
4837 to inferior_ptid directly.
4838 (gdbsim_target::wait): Don't write to inferior_ptid.
4839
4840 2020-06-18 Pedro Alves <palves@redhat.com>
4841
4842 * remote.c (remote_target::remote_notice_new_inferior): Use
4843 switch_to_thread instead of writing to inferior_ptid directly.
4844 (remote_target::add_current_inferior_and_thread): Use
4845 switch_to_no_thread instead of writing to inferior_ptid directly.
4846 (extended_remote_target::attach): Use switch_to_inferior_no_thread
4847 and switch_to_thread instead of using set_current_inferior or
4848 writing to inferior_ptid directly.
4849
4850 2020-06-18 Pedro Alves <palves@redhat.com>
4851
4852 * tracectf.c (ctf_target_open): Switch to added thread instead of
4853 writing to inferior_ptid directly.
4854 (ctf_target::close): Use switch_to_no_thread instead of writing to
4855 inferior_ptid directly.
4856
4857 2020-06-18 Pedro Alves <palves@redhat.com>
4858
4859 * tracefile-tfile.c (tfile_target_open): Don't write to
4860 inferior_ptid directly, instead switch to added thread.
4861 (tfile_target::close): Use switch_to_no_thread instead of writing
4862 to inferior_ptid directly.
4863
4864 2020-06-18 Pedro Alves <palves@redhat.com>
4865
4866 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
4867 (procfs_target::detach): Use switch_to_no_thread
4868 instead of writing to inferior_ptid directly.
4869 (do_attach): Change return type to void. Switch to the added
4870 thread.
4871 (procfs_target::create_inferior): Switch to the added thread.
4872 (procfs_do_thread_registers): Don't write to inferior_ptid.
4873
4874 2020-06-18 Pedro Alves <palves@redhat.com>
4875
4876 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
4877 of writing to inferior_ptid.
4878 (scoped_restore_exited_inferior): Delete.
4879 (handle_vfork_child_exec_or_exit): Simplify using
4880 scoped_restore_current_pspace_and_thread. Use switch_to_thread
4881 instead of writing to inferior_ptid.
4882 (THREAD_STOPPED_BY): Delete.
4883 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
4884 (thread_stopped_by_hw_breakpoint): Delete.
4885 (save_waitstatus): Use
4886 scoped_restore_current_thread+switch_to_thread, and call
4887 target_stopped_by_watchpoint instead of
4888 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
4889 instead of thread_stopped_by_sw_breakpoint, and
4890 target_stopped_by_hw_breakpoint instead of
4891 thread_stopped_by_hw_breakpoint.
4892 (handle_inferior_event)
4893 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
4894 inferior_ptid directly, nor
4895 set_current_inferior/set_current_program_space. Use
4896 switch_to_thread / switch_to_inferior_no_thread instead.
4897
4898 2020-06-18 Pedro Alves <palves@redhat.com>
4899
4900 * target.c (generic_mourn_inferior): Use switch_to_no_thread
4901 instead of writing to inferior_ptid.
4902
4903 2020-06-18 Pedro Alves <palves@redhat.com>
4904
4905 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
4906 added thread.
4907 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
4908 to the added thread.
4909 (inf_ptrace_target::detach_success): Use switch_to_no_thread
4910 instead of writing to inferior_ptid.
4911
4912 2020-06-18 Pedro Alves <palves@redhat.com>
4913
4914 * gdbarch-selftests.c: Include "progspace-and-thread.h".
4915 (register_to_value_test): Mock a program_space too. Heap-allocate
4916 the address space. Don't write to inferior_ptid. Use
4917 switch_to_thread instead.
4918
4919 2020-06-18 Pedro Alves <palves@redhat.com>
4920
4921 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
4922 Delete.
4923 (find_signalled_thread()): New, factored out from
4924 linux_make_corefile_notes and adjusted to handle exited threads.
4925 (linux_make_corefile_notes): Adjust to use the new
4926 find_signalled_thread.
4927
4928 2020-06-18 Pedro Alves <palves@redhat.com>
4929
4930 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
4931 of saving/restoring inferior_ptid.
4932
4933 2020-06-17 Tom Tromey <tom@tromey.com>
4934
4935 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
4936 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
4937 declare.
4938 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
4939
4940 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
4941
4942 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
4943 of partial symtabs.
4944
4945 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
4946
4947 * regformats/reg-arm.dat: Remove.
4948 * regformats/reg-bfin.dat: Remove.
4949 * regformats/reg-cris.dat: Remove.
4950 * regformats/reg-crisv32.dat: Remove.
4951 * regformats/reg-m32r.dat: Remove.
4952 * regformats/reg-tilegx.dat: Remove.
4953 * regformats/reg-tilegx32.dat: Remove.
4954
4955 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
4956
4957 * features/Makefile (WHICH): Remove arm files.
4958 * regformats/arm/arm-with-iwmmxt.dat: Remove.
4959 * regformats/arm/arm-with-neon.dat: Remove.
4960 * regformats/arm/arm-with-vfpv2.dat: Remove.
4961 * regformats/arm/arm-with-vfpv3.dat: Remove.
4962
4963 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
4964
4965 * features/Makefile (XMLTOC): Remove rx.xml.
4966
4967 2020-06-17 Pedro Alves <palves@redhat.com>
4968
4969 * gdbthread.h (thread_control_state) <trap_expected> Update
4970 comments.
4971
4972 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4973
4974 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
4975 ada_language::lookup_symbol_nonlocal.
4976 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
4977 (ada_language::lookup_symbol_nonlocal): New member function,
4978 implementation from ada_lookup_symbol_nonlocal.
4979 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
4980 initializer.
4981 (cplus_language_data): Delete la_lookup_symbol_nonlocal
4982 initializer.
4983 (cplus_language::lookup_symbol_nonlocal): New member function.
4984 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
4985 (minimal_language_data) Likewise.
4986 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
4987 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
4988 initializer.
4989 (d_language::lookup_symbol_nonlocal): New member function.
4990 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
4991 initializer.
4992 (f_language::lookup_symbol_nonlocal): New member function.
4993 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
4994 initializer.
4995 * language.c (unknown_language_data): Likewise.
4996 (auto_language_data): Likewise.
4997 * language.h (language_data): Delete la_lookup_symbol_nonlocal
4998 field.
4999 (language_defn::lookup_symbol_nonlocal): New member function.
5000 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
5001 initializer.
5002 * objc-lang.c (objc_language_data): Likewise.
5003 * opencl-lang.c (opencl_language_data): Likewise.
5004 * p-lang.c (pascal_language_data): Likewise.
5005 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
5006 rust_language::lookup_symbol_nonlocal.
5007 (rust_language_data): Delete la_lookup_symbol_nonlocal
5008 initializer.
5009 (rust_language::lookup_symbol_nonlocal): New member function,
5010 implementation from rust_lookup_symbol_nonlocal.
5011 * symtab.c (lookup_symbol_aux): Update call to
5012 lookup_symbol_nonlocal.
5013 (basic_lookup_symbol_nonlocal): Rename to...
5014 (language_defn::lookup_symbol_nonlocal): ...this, and update
5015 header comment. Remove language_defn parameter, and replace with
5016 uses of `this'.
5017 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
5018
5019 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5020
5021 * ada-lang.c (ada_language_data): Delete la_value_print_inner
5022 initializer.
5023 (ada_language::value_print_inner): New member function.
5024 * c-lang.c (c_language_data): Delete la_value_print_inner
5025 initializer.
5026 (cplus_language_data): Likewise.
5027 (asm_language_data): Likewise.
5028 (minimal_language_data): Likewise.
5029 * d-lang.c (d_language_data): Likewise.
5030 (d_language::value_print_inner): New member function.
5031 * f-lang.c (f_language_data): Delete la_value_print_inner
5032 initializer.
5033 (f_language::value_print_inner): New member function.
5034 * f-lang.h (f_value_print_innner): Rename to...
5035 (f_value_print_inner): ...this (note spelling of 'inner').
5036 * f-valprint.c (f_value_print_innner): Rename to...
5037 (f_value_print_inner): ...this (note spelling of 'inner').
5038 * go-lang.c (go_language_data): Delete la_value_print_inner
5039 initializer.
5040 (go_language::value_print_inner): New member function.
5041 * language.c (language_defn::value_print_inner): Define new member
5042 function.
5043 (unk_lang_value_print_inner): Delete.
5044 (unknown_language_data): Delete la_value_print_inner initializer.
5045 (unknown_language::value_print_inner): New member function.
5046 (auto_language_data): Delete la_value_print_inner initializer.
5047 (auto_language::value_print_inner): New member function.
5048 * language.h (language_data): Delete la_value_print_inner field.
5049 (language_defn::value_print_inner): Delcare new member function.
5050 * m2-lang.c (m2_language_data): Delete la_value_print_inner
5051 initializer.
5052 (m2_language::value_print_inner): New member function.
5053 * objc-lang.c (objc_language_data): Delete la_value_print_inner
5054 initializer.
5055 * opencl-lang.c (opencl_language_data): Likewise.
5056 * p-lang.c (pascal_language_data): Likewise.
5057 (pascal_language::value_print_inner): New member function.
5058 * rust-lang.c (rust_language_data): Delete la_value_print_inner
5059 initializer.
5060 (rust_language::value_print_inner): New member function.
5061 * valprint.c (do_val_print): Update call to value_print_inner.
5062
5063 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5064
5065 * ada-lang.c (ada_language_data): Delete la_value_print
5066 initializer.
5067 (ada_language::value_print): New member function.
5068 * c-lang.c (c_language_data): Delete la_value_print initializer.
5069 (cplus_language_data): Likewise.
5070 (asm_language_data): Likewise.
5071 (minimal_language_data): Likewise.
5072 * d-lang.c (d_language_data): Likewise.
5073 * f-lang.c (f_language_data): Likewise.
5074 * go-lang.c (go_language_data): Likewise.
5075 * language.c (unk_lang_value_print): Delete.
5076 (language_defn::value_print): Define new member function.
5077 (unknown_language_data): Delete la_value_print initializer.
5078 (unknown_language::value_print): New member function.
5079 (auto_language_data): Delete la_value_print initializer.
5080 (auto_language::value_print): New member function.
5081 * language.h (language_data): Delete la_value_print field.
5082 (language_defn::value_print): Declare new member function.
5083 (LA_VALUE_PRINT): Update call to value_print.
5084 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
5085 * objc-lang.c (objc_language_data): Likewise.
5086 * opencl-lang.c (opencl_language_data): Likewise.
5087 * p-lang.c (pascal_language_data): Likewise.
5088 (pascal_language::value_print): New member function.
5089 * rust-lang.c (rust_language_data): Delete la_value_print
5090 initializer.
5091
5092 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5093
5094 * ada-lang.c (ada_watch_location_expression): Rename to
5095 ada_language::watch_location_expression.
5096 (ada_language_data): Delete la_watch_location_expression
5097 initializer.
5098 (ada_language::watch_location_expression): New member function,
5099 implementation from ada_watch_location_expression.
5100 * breakpoint.c (watch_command_1): Update call to
5101 watch_location_expression.
5102 * c-lang.c (c_watch_location_expression): Rename to
5103 language_defn::watch_location_expression.
5104 (c_language_data): Delete la_watch_location_expression
5105 initializer.
5106 (cplus_language_data): Likewise.
5107 (asm_language_data): Likewise.
5108 (minimal_language_data): Likewise.
5109 * c-lang.h (c_watch_location_expression): Delete declaration.
5110 * d-lang.c (d_language_data): Delete la_watch_location_expression
5111 initializer.
5112 * f-lang.c (f_language_data): Likewise.
5113 * go-lang.c (go_language_data): Likewise.
5114 * language.c (language_defn::watch_location_expression): Member
5115 function implementation from c_watch_location_expression.
5116 (unknown_language_data): Delete la_watch_location_expression
5117 initializer.
5118 (auto_language_data): Likewise.
5119 * language.h (language_data): Delete la_watch_location_expression
5120 field.
5121 (language_defn::watch_location_expression): Declare new member
5122 function.
5123 * m2-lang.c (m2_language_data): Delete
5124 la_watch_location_expression initializer.
5125 * objc-lang.c (objc_language_data): Likewise.
5126 * opencl-lang.c (opencl_language_data): Likewise.
5127 * p-lang.c (pascal_language_data): Likewise.
5128 * rust-lang.c (rust_watch_location_expression): Rename to
5129 rust_language::watch_location_expression.
5130 (rust_language_data): Delete la_watch_location_expression
5131 initializer.
5132 (rust_language::watch_location_expression): New member function,
5133 implementation from rust_watch_location_expression.
5134
5135 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5136
5137 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
5138 ada_language::collect_symbol_completion_matches.
5139 (ada_language_data): Delete la_collect_symbol_completion_matches
5140 initializer.
5141 (ada_language::collect_symbol_completion_matches): New member
5142 function, implementation from
5143 ada_collect_symbol_completion_matches.
5144 * c-lang.c (c_language_data): Delete
5145 la_collect_symbol_completion_matches initializer.
5146 (cplus_language_data): Likewise.
5147 (asm_language_data): Likewise.
5148 (minimal_language_data): Likewise.
5149 * d-lang.c (d_language_data): Likewise.
5150 * f-lang.c (f_collect_symbol_completion_matches): Rename to
5151 f_language::collect_symbol_completion_matches.
5152 (f_language_data): Delete la_collect_symbol_completion_matches
5153 initializer.
5154 (f_language::collect_symbol_completion_matches) New member
5155 function, implementation from f_collect_symbol_completion_matches.
5156 * go-lang.c (go_language_data): Delete
5157 la_collect_symbol_completion_matches initializer.
5158 * language.c (unknown_language_data): Likewise.
5159 (auto_language_data): Likewise.
5160 * language.h (language_data): Delete
5161 la_collect_symbol_completion_matches field.
5162 (language_defn::collect_symbol_completion_matches): New member
5163 function.
5164 * m2-lang.c (m2_language_data): Delete
5165 la_collect_symbol_completion_matches initializer.
5166 * objc-lang.c (objc_language_data): Likewise.
5167 * opencl-lang.c (opencl_language_data): Likewise.
5168 * p-lang.c (pascal_language_data): Likewise.
5169 * rust-lang.c (rust_language_data): Likewise.
5170 * symtab.c (default_collect_symbol_completion_matches): Delete.
5171 (collect_symbol_completion_matches): Update call to
5172 collect_symbol_completion_matches.
5173 (collect_symbol_completion_matches_type): Likewise.
5174 * symtab.h (default_collect_symbol_completion_matches): Delete
5175 declaration.
5176
5177 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5178
5179 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
5180 (ada_language_data): Delete la_word_break_characters initializer.
5181 (ada_language::word_break_characters): New member function.
5182 * c-lang.c (c_language_data): Delete la_word_break_characters
5183 initializer.
5184 (cplus_language_data): Likewise.
5185 (asm_language_data): Likewise.
5186 (minimal_language_data): Likewise.
5187 * completer.c: Update global comment.
5188 (advance_to_expression_complete_word_point): Update call to
5189 word_break_characters.
5190 (complete_files_symbols): Likewise.
5191 (complete_line_internal_1): Likewise.
5192 (default_completer_handle_brkchars): Likewise.
5193 (skip_quoted_chars): Likewise.
5194 * d-lang.c (d_language_data): Delete la_word_break_characters
5195 initializer.
5196 * f-lang.c (f_word_break_characters): Delete.
5197 (f_language_data): Delete la_word_break_characters initializer.
5198 (f_language::word_break_characters): New member function.
5199 * go-lang.c (go_language_data): Delete la_word_break_characters
5200 initializer.
5201 * language.c (unknown_language_data): Likewise.
5202 (auto_language_data): Likewise.
5203 * language.h (default_word_break_characters): Move declaration to
5204 earlier in the file.
5205 (language_data): Delete la_word_break_characters field.
5206 (language_defn::word_break_characters): New member function.
5207 * m2-lang.c (m2_language_data): Delete la_word_break_characters
5208 initializer.
5209 * objc-lang.c (objc_language_data): Likewise.
5210 * opencl-lang.c (opencl_language_data): Likewise.
5211 * p-lang.c (pascal_language_data): Likewise.
5212 * rust-lang.c (rust_language_data): Likewise.
5213
5214 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5215
5216 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
5217 (ada_language_data): Delete la_get_symbol_name_matcher
5218 initializer.
5219 (language_defn::get_symbol_name_matcher_inner): New member
5220 function.
5221 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
5222 initializer.
5223 (cplus_language_data): Likewise.
5224 (cplus_language::get_symbol_name_matcher_inner): New member
5225 function.
5226 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
5227 (minimal_language_data): Likewise.
5228 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
5229 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
5230 initializer.
5231 * dictionary.c (iter_match_first_hashed): Update call to
5232 get_symbol_name_matcher.
5233 (iter_match_next_hashed): Likewise.
5234 (iter_match_next_linear): Likewise.
5235 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
5236 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
5237 initializer.
5238 (f_language::get_symbol_name_matcher_inner): New member function.
5239 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
5240 initializer.
5241 * language.c (default_symbol_name_matcher): Update header comment,
5242 make static.
5243 (language_defn::get_symbol_name_matcher): New definition.
5244 (language_defn::get_symbol_name_matcher_inner): Likewise.
5245 (get_symbol_name_matcher): Delete.
5246 (unknown_language_data): Delete la_get_symbol_name_matcher
5247 initializer.
5248 (auto_language_data): Likewise.
5249 * language.h (language_data): Delete la_get_symbol_name_matcher
5250 field.
5251 (language_defn::get_symbol_name_matcher): New member function.
5252 (language_defn::get_symbol_name_matcher_inner): Likewise.
5253 (default_symbol_name_matcher): Delete declaration.
5254 * linespec.c (find_methods): Update call to
5255 get_symbol_name_matcher.
5256 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
5257 initializer.
5258 * minsyms.c (lookup_minimal_symbol): Update call to
5259 get_symbol_name_matcher.
5260 (iterate_over_minimal_symbols): Likewise.
5261 * objc-lang.c (objc_language_data): Delete
5262 la_get_symbol_name_matcher initializer.
5263 * opencl-lang.c (opencl_language_data): Likewise.
5264 * p-lang.c (pascal_language_data): Likewise.
5265 * psymtab.c (psymbol_name_matches): Update call to
5266 get_symbol_name_matcher.
5267 * rust-lang.c (rust_language_data): Delete
5268 la_get_symbol_name_matcher initializer.
5269 * symtab.c (symbol_matches_search_name): Update call to
5270 get_symbol_name_matcher.
5271 (compare_symbol_name): Likewise.
5272
5273 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5274
5275 * ada-lang.c (ada_language_data): Delete la_compute_program
5276 initializer.
5277 * c-lang.c (c_language_data): Likewise.
5278 (c_language::compute_program): New member function.
5279 (cplus_language_data): Delete la_compute_program initializer.
5280 (cplus_language::compute_program): New member function.
5281 (asm_language_data): Delete la_compute_program initializer.
5282 (minimal_language_data): Likewise.
5283 * c-lang.h (c_compute_program): Update comment.
5284 (cplus_compute_program): Likewise.
5285 * compile/compile-c-support.c (c_compute_program): Likewise.
5286 (cplus_compute_program): Likewise.
5287 * compile/compile.c (compile_to_object): Update call to
5288 la_compute_program.
5289 * d-lang.c (d_language_data): Delete la_compute_program
5290 initializer.
5291 * f-lang.c (f_language_data): Likewise.
5292 * go-lang.c (go_language_data): Likewise.
5293 * language.c (unknown_language_data): Likewise.
5294 (auto_language_data): Likewise.
5295 * language.h (language_data): Delete la_compute_program field.
5296 (language_defn::compute_program): New member function.
5297 * m2-lang.c (m2_language_data): Delete la_compute_program
5298 initializer.
5299 * objc-lang.c (objc_language_data): Likewise.
5300 * opencl-lang.c (opencl_language_data): Likewise.
5301 * p-lang.c (pascal_language_data): Likewise.
5302 * rust-lang.c (rust_language_data): Likewise.
5303
5304 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5305
5306 * ada-lang.c (ada_language_data) Delete
5307 la_class_name_from_physname initializer.
5308 * c-lang.c (c_language_data): Likewise.
5309 (cplus_language_data): Likewise.
5310 (cplus_language::class_name_from_physname): New member function.
5311 (asm_language_data): Delete la_class_name_from_physname
5312 initializer.
5313 (minimal_language_data): Likewise.
5314 * d-lang.c (d_language_data): Likewise.
5315 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
5316 method on language_defn class.
5317 (guess_full_die_structure_name): Likewise.
5318 * f-lang.c (f_language_data): Delete la_class_name_from_physname
5319 initializer.
5320 * go-lang.c (go_language_data): Likewise.
5321 * language.c (language_class_name_from_physname): Delete.
5322 (unk_lang_class_name): Delete.
5323 (unknown_language_data): Delete la_class_name_from_physname
5324 initializer.
5325 (auto_language_data): Likewise.
5326 * language.h (language_data): Delete la_class_name_from_physname
5327 field.
5328 (language_defn::class_name_from_physname): New function.
5329 (language_class_name_from_physname): Delete declaration.
5330 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
5331 initializer.
5332 * objc-lang.c (objc_language_data): Likewise.
5333 * opencl-lang.c (opencl_language_data): Likewise.
5334 * p-lang.c (pascal_language_data): Likewise.
5335 * rust-lang.c (rust_language_data): Likewise.
5336
5337 2020-06-16 Tom Tromey <tom@tromey.com>
5338
5339 * tui/tui-data.h (STATUS_NAME): New macro.
5340 * tui/tui-layout.c (tui_remove_some_windows)
5341 (initialize_known_windows, tui_register_window)
5342 (tui_layout_split::remove_windows, initialize_layouts)
5343 (tui_new_layout_command): Don't use hard-coded window names.
5344
5345 2020-06-16 Tom Tromey <tom@tromey.com>
5346
5347 PR tui/25348:
5348 * tui/tui.c (tui_ensure_readline_initialized): Rename from
5349 tui_initialize_readline. Only run once. Call rl_initialize.
5350 * tui/tui.h (tui_ensure_readline_initialized): Rename from
5351 tui_initialize_readline.
5352 * tui/tui-io.c (tui_setup_io): Call
5353 tui_ensure_readline_initialized.
5354 * tui/tui-interp.c (tui_interp::init): Update.
5355
5356 2020-06-16 Tom Tromey <tom@tromey.com>
5357
5358 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
5359 Also preserve the status window.
5360
5361 2020-06-16 Tom Tromey <tom@tromey.com>
5362
5363 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
5364 where m_window==nullptr.
5365
5366 2020-06-15 Tom Tromey <tromey@adacore.com>
5367
5368 * windows-nat.c (windows_nat::handle_output_debug_string):
5369 Update.
5370 (windows_nat::handle_ms_vc_exception): Update.
5371 * target.h (target_read_string): Change API.
5372 * target.c (target_read_string): Change API.
5373 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
5374 Update.
5375 * solib-frv.c (frv_current_sos): Update.
5376 * solib-dsbt.c (dsbt_current_sos): Update.
5377 * solib-darwin.c (darwin_current_sos): Update.
5378 * linux-thread-db.c (inferior_has_bug): Update.
5379 * expprint.c (print_subexp_standard): Update.
5380 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
5381 (ada_exception_message_1): Update.
5382
5383 2020-06-15 Tom Tromey <tromey@adacore.com>
5384
5385 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
5386
5387 2020-06-15 Tom Tromey <tromey@adacore.com>
5388
5389 * valprint.c (read_string): Update comment.
5390 * target.c (MIN): Remove.
5391 (target_read_string): Rewrite.
5392
5393 2020-06-15 Tom Tromey <tromey@adacore.com>
5394
5395 * corefile.c (read_memory_string): Remove.
5396 * ada-valprint.c (ada_value_print_ptr): Update.
5397 * ada-lang.h (ada_tag_name): Change return type.
5398 * ada-lang.c (type_from_tag): Update.
5399 (ada_tag_name_from_tsd): Change return type. Use
5400 target_read_string.
5401 (ada_tag_name): Likewise.
5402 * gdbcore.h (read_memory_string): Don't declare.
5403
5404 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
5405
5406 * symtab.c (rbreak_command): Ignore Windows drive colon.
5407
5408 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
5409
5410 * NEWS: Mention removed GDBserver host support.
5411
5412 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
5413
5414 * features/riscv/rebuild-csr-xml.sh: Updated.
5415
5416 2020-06-11 Tom Tromey <tom@tromey.com>
5417
5418 PR gdb/18318:
5419 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
5420
5421 2020-06-09 Jonny Grant <jg@jguk.org>
5422 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
5423
5424 * main.c (captured_main_1): Don't print new line after help.
5425 (print_gdb_help): add mailing list and IRC channel information
5426 to --help. Add new lines between items in the footer. Remove
5427 quotes around bug url.
5428
5429 2020-06-11 Keith Seitz <keiths@redhat.com>
5430
5431 PR gdb/21356
5432 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
5433 Resolve typedefs for type length calculations.
5434
5435 2020-06-10 Tom de Vries <tdevries@suse.de>
5436
5437 PR ada/24713
5438 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
5439 (write_psymbols): Enable .gdb_index for ada.
5440 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
5441 ada.
5442
5443 2020-06-10 Tom de Vries <tdevries@suse.de>
5444
5445 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
5446 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
5447 namei" instead of "const char *name" argument.
5448 (dw2_map_matching_symbols): Use "offset_type namei" variant of
5449 dw2_symtab_iter_init.
5450
5451 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
5452
5453 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
5454 to use type::field and field::type instead.
5455
5456 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
5457
5458 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
5459 to use field::type instead.
5460
5461 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
5462
5463 * gdbtypes.h (struct field) <type, set_type>: New methods.
5464 Rename `type` field to...
5465 <m_type>: ... this. Change references throughout to use type or
5466 set_type methods.
5467 (FIELD_TYPE): Use field::type. Change call sites that modify
5468 the field's type to use field::set_type instead.
5469
5470 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
5471
5472 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
5473 to use type::index_type instead.
5474
5475 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
5476
5477 * gdbtypes.h (struct type) <index_type, set_index_type>: New
5478 methods.
5479 (TYPE_INDEX_TYPE): Use type::index_type.
5480 * gdbtypes.c (create_array_type_with_stride): Likewise.
5481
5482 2020-06-07 Tom Tromey <tom@tromey.com>
5483
5484 * valprint.c (generic_val_print_float): Remove "embedded_offset"
5485 parameter.
5486 (generic_value_print): Update.
5487
5488 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
5489
5490 Revert commit 982a38f60b0.
5491 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
5492
5493 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
5494
5495 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
5496 avoid use after free.
5497
5498 2020-06-05 Tom de Vries <tdevries@suse.de>
5499
5500 * NEWS: Fix typos.
5501
5502 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
5503
5504 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
5505 the per_bfd object.
5506 (dwarf2_read_debug_names): Likewise.
5507 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
5508 object when re-using a per_bfd object with an index.
5509
5510 2020-06-03 Tom de Vries <tdevries@suse.de>
5511
5512 PR symtab/26046
5513 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
5514 children for C++.
5515 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
5516 DW_TAG_subprogram.
5517
5518 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5519
5520 * ada-lang.c (ada_language_data): Delete skip_trampoline
5521 initializer.
5522 * c-lang.c (c_language_data): Likewise.
5523 (cplus_language_data): Likewise.
5524 (cplus_language::skip_trampoline): New member function.
5525 (asm_language_data): Delete skip_trampoline initializer.
5526 (minimal_language_data): Likewise.
5527 * d-lang.c (d_language_data): Likewise.
5528 * f-lang.c (f_language_data): Likewise.
5529 * go-lang.c (go_language_data): Likewise.
5530 * language.c (unk_lang_trampoline): Delete function.
5531 (skip_language_trampoline): Update.
5532 (unknown_language_data): Delete skip_trampoline initializer.
5533 (auto_language_data): Likewise.
5534 * language.h (language_data): Delete skip_trampoline field.
5535 (language_defn::skip_trampoline): New function.
5536 * m2-lang.c (m2_language_data): Delete skip_trampoline
5537 initializer.
5538 * objc-lang.c (objc_skip_trampoline): Delete function, move
5539 implementation to objc_language::skip_trampoline.
5540 (objc_language_data): Delete skip_trampoline initializer.
5541 (objc_language::skip_trampoline): New member function with
5542 implementation from objc_skip_trampoline.
5543 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
5544 initializer.
5545 * p-lang.c (pascal_language_data): Likewise.
5546 * rust-lang.c (rust_language_data): Likewise.
5547
5548 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5549
5550 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
5551 (ada_language::demangle): New member function.
5552 * c-lang.c (c_language_data): Delete la_demangle initializer.
5553 (cplus_language_data): Delete la_demangle initializer.
5554 (cplus_language::demangle): New member function.
5555 (asm_language_data): Delete la_demangle initializer.
5556 (minimal_language_data): Delete la_demangle initializer.
5557 * d-lang.c (d_language_data): Delete la_demangle initializer.
5558 (d_language::demangle): New member function.
5559 * f-lang.c (f_language_data): Delete la_demangle initializer.
5560 (f_language::demangle): New member function.
5561 * go-lang.c (go_language_data): Delete la_demangle initializer.
5562 (go_language::demangle): New member function.
5563 * language.c (language_demangle): Update.
5564 (unk_lang_demangle): Delete.
5565 (unknown_language_data): Delete la_demangle initializer.
5566 (unknown_language::demangle): New member function.
5567 (auto_language_data): Delete la_demangle initializer.
5568 (auto_language::demangle): New member function.
5569 * language.h (language_data): Delete la_demangle field.
5570 (language_defn::demangle): New function.
5571 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
5572 * objc-lang.c (objc_language_data): Delete la_demangle
5573 initializer.
5574 (objc_language::demangle): New member function.
5575 * opencl-lang.c (opencl_language_data): Delete la_demangle
5576 initializer.
5577 * p-lang.c (pascal_language_data): Likewise.
5578 * rust-lang.c (rust_language_data): Likewise.
5579 (rust_language::demangle): New member function.
5580
5581 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5582
5583 * ada-lang.c (ada_language_data): Delete la_print_type
5584 initializer.
5585 (ada_language::print_type): New member function.
5586 * c-lang.c (c_language_data): Delete la_print_type initializer.
5587 (c_language::print_type): New member function.
5588 (cplus_language_data): Delete la_print_type initializer.
5589 (cplus_language::print_type): New member function.
5590 (asm_language_data): Delete la_print_type initializer.
5591 (asm_language::print_type): New member function.
5592 (minimal_language_data): Delete la_print_type initializer.
5593 (minimal_language::print_type): New member function.
5594 * d-lang.c (d_language_data): Delete la_print_type initializer.
5595 (d_language::print_type): New member function.
5596 * f-lang.c (f_language_data): Delete la_print_type initializer.
5597 (f_language::print_type): New member function.
5598 * go-lang.c (go_language_data): Delete la_print_type initializer.
5599 (go_language::print_type): New member function.
5600 * language.c (unk_lang_print_type): Delete.
5601 (unknown_language_data): Delete la_print_type initializer.
5602 (unknown_language::print_type): New member function.
5603 (auto_language_data): Delete la_print_type initializer.
5604 (auto_language::print_type): New member function.
5605 * language.h (language_data): Delete la_print_type field.
5606 (language_defn::print_type): New function.
5607 (LA_PRINT_TYPE): Update.
5608 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
5609 (m2_language::print_type): New member function.
5610 * objc-lang.c (objc_language_data): Delete la_print_type
5611 initializer.
5612 (objc_language::print_type): New member function.
5613 * opencl-lang.c (opencl_print_type): Delete, implementation moved
5614 to opencl_language::print_type.
5615 (opencl_language_data): Delete la_print_type initializer.
5616 (opencl_language::print_type): New member function, implementation
5617 from opencl_print_type.
5618 * p-lang.c (pascal_language_data): Delete la_print_type
5619 initializer.
5620 (pascal_language::print_type): New member function.
5621 * rust-lang.c (rust_print_type): Delete, implementation moved to
5622 rust_language::print_type.
5623 (rust_language_data): Delete la_print_type initializer.
5624 (rust_language::print_type): New member function, implementation
5625 from rust_print_type.
5626
5627 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5628
5629 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
5630 implementation moves to...
5631 (ada_language::sniff_from_mangled_name): ...here. Update return
5632 type.
5633 (ada_language_data): Delete la_sniff_from_mangled_name
5634 initializer.
5635 * c-lang.c (c_language_data): Likewise.
5636 (cplus_language_data): Likewise.
5637 (cplus_language::sniff_from_mangled_name): New member function,
5638 implementation taken from gdb_sniff_from_mangled_name.
5639 (asm_language_data): Delete la_sniff_from_mangled_name
5640 initializer.
5641 (minimal_language_data): Likewise.
5642 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
5643 implementation moves to cplus_language::sniff_from_mangled_name.
5644 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
5645 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
5646 moves to...
5647 (d_language::sniff_from_mangled_name): ...here.
5648 (d_language_data): Delete la_sniff_from_mangled_name initializer.
5649 * f-lang.c (f_language_data): Likewise.
5650 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
5651 moves to...
5652 (go_language::sniff_from_mangled_name): ...here.
5653 (go_language_data): Delete la_sniff_from_mangled_name initializer.
5654 * language.c (language_sniff_from_mangled_name): Delete.
5655 (unknown_language_data): Delete la_sniff_from_mangled_name
5656 initializer.
5657 (auto_language_data): Likewise.
5658 * language.h (language_data): Delete la_sniff_from_mangled_name
5659 field.
5660 (language_defn::sniff_from_mangled_name): New function.
5661 (language_sniff_from_mangled_name): Delete declaration.
5662 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
5663 field.
5664 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
5665 implementation moves to...
5666 (objc_language::sniff_from_mangled_name): ...here.
5667 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
5668 * opencl-lang.c (opencl_language_data): Likewise.
5669 * p-lang.c (pascal_language_data): Likewise.
5670 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
5671 implementation moves to...
5672 (rust_language::sniff_from_mangled_name): ...here.
5673 (rust_language_data): Delete la_sniff_from_mangled_name
5674 initializer.
5675 * symtab.c (symbol_find_demangled_name): Call
5676 sniff_from_mangled_name member function.
5677
5678 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5679
5680 * ada-lang.c (ada_language_data): Delete la_search_name_hash
5681 initializer.
5682 * c-lang.c (c_language_data): Likewise.
5683 (cplus_language_data): Likewise.
5684 (cplus_language::search_name_hash): New member function.
5685 (asm_language_data): Delete la_search_name_hash initializer.
5686 (minimal_language_data): Likewise.
5687 * d-lang.c (d_language_data): Likewise.
5688 * dictionary.c (default_search_name_hash): Rename to...
5689 (language_defn::search_name_hash): ...this.
5690 * f-lang.c (f_language_data): Likewise.
5691 (f_language::search_name_hash): New member function.
5692 * go-lang.c (go_language_data): Delete la_search_name_hash
5693 initializer.
5694 * language.c (unknown_language_data): Likewise.
5695 (auto_language_data): Likewise.
5696 * language.h (struct language_data): Delete la_search_name_hash
5697 field.
5698 (language_defn::search_name_hash): Declare new member function.
5699 (default_search_name_hash): Delete declaration.
5700 * m2-lang.c (m2_language_data): Delete la_search_name_hash
5701 initializer.
5702 * objc-lang.c (objc_language_data): Likewise.
5703 * opencl-lang.c (opencl_language_data): Likewise.
5704 * p-lang.c (pascal_language_data): Likewise.
5705 * rust-lang.c (rust_language_data): Likewise.
5706 * symtab.c (search_name_hash): Update call.
5707
5708 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5709
5710 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
5711 initializer.
5712 * c-lang.c (class compile_instance): Declare.
5713 (c_language_data): Delete la_get_compile_instance initializer.
5714 (c_language::get_compile_instance): New member function.
5715 (cplus_language_data): Delete la_get_compile_instance initializer.
5716 (cplus_language::get_compile_instance): New member function.
5717 (asm_language_data): Delete la_get_compile_instance initializer.
5718 (minimal_language_data): Likewise.
5719 * c-lang.h (c_get_compile_context): Update comment.
5720 (cplus_get_compile_context): Update comment.
5721 * compile/compile.c (compile_to_object): Update calls, don't rely
5722 on function pointer being NULL.
5723 * d-lang.c (d_language_data): Delete la_get_compile_instance
5724 initializer.
5725 * f-lang.c (f_language_data): Likewise.
5726 * go-lang.c (go_language_data): Likewise.
5727 * language.c (unknown_language_data): Likewise.
5728 (auto_language_data): Likewise.
5729 * language.h (language_data): Delete la_get_compile_instance field.
5730 (language_defn::get_compile_instance): New member function.
5731 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
5732 initializer.
5733 * objc-lang.c (objc_language_data): Likewise.
5734 * opencl-lang.c (opencl_language_data): Likewise.
5735 * p-lang.c (pascal_language_data): Likewise.
5736 * rust-lang.c (rust_language_data): Likewise.
5737
5738 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5739
5740 * ada-lang.c (ada_add_all_symbols): Update comment.
5741 (ada_iterate_over_symbols): Delete, move implementation to...
5742 (ada_language::iterate_over_symbols): ...here, a new member
5743 function, rewrite to use range based for loop.
5744 (ada_language_data): Delete la_iterate_over_symbols initializer.
5745 * c-lang.c (c_language_data): Likewise.
5746 (cplus_language_data): Likewise.
5747 (asm_language_data): Likewise.
5748 (minimal_language_data): Likewise.
5749 * d-lang.c (d_language_data): Likewise.
5750 * f-lang.c (f_language_data): Likewise.
5751 * go-lang.c (go_language_data): Likewise.
5752 * language.c (unknown_language_data): Likewise.
5753 (auto_language_data): Likewise.
5754 * language.h (language_data): Delete la_iterate_over_symbols field.
5755 (language_defn::iterate_over_symbols): New member function.
5756 (LA_ITERATE_OVER_SYMBOLS): Update.
5757 * linespec.c (iterate_over_all_matching_symtabs): Update.
5758 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
5759 initializer.
5760 * objc-lang.c (objc_language_data): Likewise.
5761 * opencl-lang.c (opencl_language_data): Likewise.
5762 * p-lang.c (pascal_language_data): Likewise.
5763 * rust-lang.c (rust_language_data): Likewise.
5764
5765 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5766
5767 * ada-lang.c (ada_language_data): Delete
5768 la_lookup_transparent_type initializer.
5769 * c-lang.c (c_language_data): Likewise.
5770 (cplus_language_data): Likewise.
5771 (cplus_language::lookup_transparent_type): New member function.
5772 (asm_language_data): Delete la_lookup_transparent_type
5773 initializer.
5774 (minimal_language_data): Likewise.
5775 * d-lang.c (d_language_data): Likewise.
5776 * f-lang.c (f_language_data): Likewise.
5777 * go-lang.c (go_language_data): Likewise.
5778 * language.c (unknown_language_data): Likewise.
5779 (auto_language_data): Likewise.
5780 * language.h (struct language_data): Delete
5781 la_lookup_transparent_type field.
5782 (language_defn::lookup_transparent_type): New member function.
5783 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
5784 initializer.
5785 * objc-lang.c (objc_language_data): Likewise.
5786 * opencl-lang.c (opencl_language_data): Likewise.
5787 * p-lang.c (pascal_language_data): Likewise.
5788 * rust-lang.c (rust_language_data): Likewise.
5789 * symtab.c (symbol_matches_domain): Update call.
5790
5791 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5792
5793 * ada-lang.c (ada_language_arch_info): Delete function, move
5794 implementation to...
5795 (ada_language::language_arch_info): ...here, a new member
5796 function.
5797 (ada_language_data): Delete la_language_arch_info.
5798 * c-lang.c (c_language_data): Likewise.
5799 (c_language::language_arch_info): New member function.
5800 (cplus_language_arch_info): Delete function, move
5801 implementation to...
5802 (cplus_language::language_arch_info): ...here, a new member
5803 function.
5804 (cplus_language_data): Delete la_language_arch_info.
5805 (asm_language_data): Likewise.
5806 (asm_language::language_arch_info): New member function.
5807 (minimal_language_data): Delete la_language_arch_info.
5808 (minimal_language::language_arch_info): New member function.
5809 * d-lang.c (d_language_arch_info): Delete function, move
5810 implementation to...
5811 (d_language::language_arch_info): ...here, a new member
5812 function.
5813 (d_language_data): Delete la_language_arch_info.
5814 * f-lang.c (f_language_arch_info): Delete function, move
5815 implementation to...
5816 (f_language::language_arch_info): ...here, a new member
5817 function.
5818 (f_language_data): Delete la_language_arch_info.
5819 * go-lang.c (go_language_arch_info): Delete function, move
5820 implementation to...
5821 (go_language::language_arch_info): ...here, a new member
5822 function.
5823 (go_language_data): Delete la_language_arch_info.
5824 * language.c (unknown_language_data): Likewise.
5825 (unknown_language::language_arch_info): New member function.
5826 (auto_language_data): Delete la_language_arch_info.
5827 (auto_language::language_arch_info): New member function.
5828 (language_gdbarch_post_init): Update call to
5829 la_language_arch_info.
5830 * language.h (language_data): Delete la_language_arch_info
5831 function pointer.
5832 (language_defn::language_arch_info): New function.
5833 * m2-lang.c (m2_language_arch_info): Delete function, move
5834 implementation to...
5835 (m2_language::language_arch_info): ...here, a new member
5836 function.
5837 (m2_language_data): Delete la_language_arch_info.
5838 * objc-lang.c (objc_language_arch_info): Delete function, move
5839 implementation to...
5840 (objc_language::language_arch_info): ...here, a new member
5841 function.
5842 (objc_language_data): Delete la_language_arch_info.
5843 * opencl-lang.c (opencl_language_arch_info): Delete function, move
5844 implementation to...
5845 (opencl_language::language_arch_info): ...here, a new member
5846 function.
5847 (opencl_language_data): Delete la_language_arch_info.
5848 * p-lang.c (pascal_language_arch_info): Delete function, move
5849 implementation to...
5850 (pascal_language::language_arch_info): ...here, a new member
5851 function.
5852 (pascal_language_data): Delete la_language_arch_info.
5853 * rust-lang.c (rust_language_arch_info): Delete function, move
5854 implementation to...
5855 (rust_language::language_arch_info): ...here, a new member
5856 function.
5857 (rust_language_data): Delete la_language_arch_info.
5858
5859 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5860
5861 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
5862 initializer.
5863 * c-lang.c (c_language_data): Likewise.
5864 (cplus_language_data): Likewise.
5865 (cplus_language::pass_by_reference_info): New method.
5866 (asm_language_data): Delete la_pass_by_reference initializer.
5867 (minimal_language_data): Likewise.
5868 * cp-abi.c (cp_pass_by_reference): Remove use of
5869 default_pass_by_reference.
5870 * d-lang.c (d_language_data): Likewise.
5871 * f-lang.c (f_language_data): Likewise.
5872 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
5873 default_pass_by_reference.
5874 * go-lang.c (go_language_data): Likewise.
5875 * language.c (language_pass_by_reference): Update.
5876 (default_pass_by_reference): Delete.
5877 (unknown_language_data): Delete la_pass_by_reference
5878 initializer.
5879 (auto_language_data): Likewise.
5880 * language.h (struct language_data): Delete la_pass_by_reference
5881 field.
5882 (language_defn::pass_by_reference_info): New member function.
5883 (default_pass_by_reference): Delete declaration.
5884 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
5885 initializer.
5886 * objc-lang.c (objc_language_data): Likewise.
5887 * opencl-lang.c (opencl_language_data): Likewise.
5888 * p-lang.c (pascal_language_data): Likewise.
5889 * rust-lang.c (rust_language_data): Likewise.
5890
5891 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5892
5893 * ada-lang.c (ada_read_var_value): Delete function, move
5894 implementation to...
5895 (ada_language::read_var_value): ...here.
5896 (ada_language_data): Delete la_read_var_value initializer.
5897 * c-lang.c (c_language_data): Likewise.
5898 (cplus_language_data): Likewise.
5899 (minimal_language_data): Likewise.
5900 * d-lang.c (d_language_data): Likewise.
5901 * f-lang.c (f_language_data): Likewise.
5902 * findvar.c (default_read_var_value): Rename to...
5903 (language_defn::read_var_value): ...this.
5904 * findvar.c (read_var_value): Update header comment, and change to
5905 call member function instead of function pointer.
5906 * go-lang.c (go_language_data): Likewise.
5907 * language.c (unknown_language_data): Delete la_read_var_value
5908 initializer.
5909 (auto_language_data): Likewise.
5910 * language.h (struct language_data): Delete la_read_var_value
5911 field.
5912 (language_defn::read_var_value): New member function.
5913 (default_read_var_value): Delete declaration.
5914 * m2-lang.c (m2_language_data): Delete la_read_var_value
5915 initializer.
5916 * objc-lang.c (objc_language_data): Likewise.
5917 * opencl-lang.c (opencl_language_data): Likewise.
5918 * p-lang.c (pascal_language_data): Likewise.
5919 * rust-lang.c (rust_language_data): Likewise.
5920 * value.h (default_read_var_value): Delete declaration.
5921
5922 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5923
5924 * ada-lang.c (ada_print_array_index): Delete function, move
5925 implementation to...
5926 (ada_language::print_array_index): ...here.
5927 (ada_language_data): Delete la_print_array_index initializer.
5928 * c-lang.c (c_language_data): Likewise.
5929 (cplus_language_data): Likewise.
5930 (minimal_language_data): Likewise.
5931 * d-lang.c (d_language_data): Likewise.
5932 * f-lang.c (f_language_data): Likewise.
5933 * go-lang.c (go_language_data): Likewise.
5934 * language.c (default_print_array_index): Delete function, move
5935 implementation to...
5936 (language_defn::print_array_index): ...here.
5937 (unknown_language_data): Delete la_print_array_index initializer.
5938 (auto_language_data): Likewise.
5939 * language.h (struct language_data): Delete la_print_array_index
5940 field.
5941 (language_defn::print_array_index): New member function.
5942 (LA_PRINT_ARRAY_INDEX): Update.
5943 (default_print_array_index): Delete declaration.
5944 * m2-lang.c (m2_language_data): Delete la_print_array_index
5945 initializer.
5946 * objc-lang.c (objc_language_data): Likewise.
5947 * opencl-lang.c (opencl_language_data): Likewise.
5948 * p-lang.c (pascal_language_data): Likewise.
5949 * rust-lang.c (rust_language_data): Likewise.
5950
5951 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5952
5953 * gdb/ada-lang.c (ada_language_defn): Convert to...
5954 (ada_language_data): ...this.
5955 (class ada_language): New class.
5956 (ada_language_defn): New static global.
5957 * gdb/c-lang.c (c_language_defn): Convert to...
5958 (c_language_data): ...this.
5959 (class c_language): New class.
5960 (c_language_defn): New static global.
5961 (cplus_language_defn): Convert to...
5962 (cplus_language_data): ...this.
5963 (class cplus_language): New class.
5964 (cplus_language_defn): New static global.
5965 (asm_language_defn): Convert to...
5966 (asm_language_data): ...this.
5967 (class asm_language): New class.
5968 (asm_language_defn): New static global.
5969 (minimal_language_defn): Convert to...
5970 (minimal_language_data): ...this.
5971 (class minimal_language): New class.
5972 (minimal_language_defn): New static global.
5973 * gdb/d-lang.c (d_language_defn): Convert to...
5974 (d_language_data): ...this.
5975 (class d_language): New class.
5976 (d_language_defn): New static global.
5977 * gdb/f-lang.c (f_language_defn): Convert to...
5978 (f_language_data): ...this.
5979 (class f_language): New class.
5980 (f_language_defn): New static global.
5981 * gdb/go-lang.c (go_language_defn): Convert to...
5982 (go_language_data): ...this.
5983 (class go_language): New class.
5984 (go_language_defn): New static global.
5985 * gdb/language.c (unknown_language_defn): Remove declaration.
5986 (current_language): Initialize to nullptr, real initialization is
5987 moved to _initialize_language.
5988 (languages): Delete global.
5989 (language_defn::languages): Define.
5990 (set_language_command): Use language_defn::languages.
5991 (set_language): Likewise.
5992 (range_error): Likewise.
5993 (language_enum): Likewise.
5994 (language_def): Likewise.
5995 (add_set_language_command): Use language_def::languages for the
5996 language list, and language_def to lookup language pointers.
5997 (skip_language_trampoline): Use language_defn::languages.
5998 (unknown_language_defn): Convert to...
5999 (unknown_language_data): ...this.
6000 (class unknown_language): New class.
6001 (unknown_language_defn): New static global.
6002 (auto_language_defn): Convert to...
6003 (auto_language_data): ...this.
6004 (class auto_language): New class.
6005 (auto_language_defn): New static global.
6006 (language_gdbarch_post_init): Use language_defn::languages.
6007 (_initialize_language): Initialize current_language.
6008 * gdb/language.h (struct language_defn): Rename to...
6009 (struct language_data): ...this.
6010 (struct language_defn): New.
6011 (auto_language_defn): Delete.
6012 (unknown_language_defn): Delete.
6013 (minimal_language_defn): Delete.
6014 (ada_language_defn): Delete.
6015 (asm_language_defn): Delete.
6016 (c_language_defn): Delete.
6017 (cplus_language_defn): Delete.
6018 (d_language_defn): Delete.
6019 (f_language_defn): Delete.
6020 (go_language_defn): Delete.
6021 (m2_language_defn): Delete.
6022 (objc_language_defn): Delete.
6023 (opencl_language_defn): Delete.
6024 (pascal_language_defn): Delete.
6025 (rust_language_defn): Delete.
6026 * gdb/m2-lang.c (m2_language_defn): Convert to...
6027 (m2_language_data): ...this.
6028 (class m2_language): New class.
6029 (m2_language_defn): New static global.
6030 * gdb/objc-lang.c (objc_language_defn): Convert to...
6031 (objc_language_data): ...this.
6032 (class objc_language): New class.
6033 (objc_language_defn): New static global.
6034 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
6035 (opencl_language_data): ...this.
6036 (class opencl_language): New class.
6037 (opencl_language_defn): New static global.
6038 * gdb/p-lang.c (pascal_language_defn): Convert to...
6039 (pascal_language_data): ...this.
6040 (class pascal_language): New class.
6041 (pascal_language_defn): New static global.
6042 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
6043 language pointer, update comment format.
6044 * gdb/rust-lang.c (rust_language_defn): Convert to...
6045 (rust_language_data): ...this.
6046 (class rust_language): New class.
6047 (rust_language_defn): New static global.
6048
6049 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
6050
6051 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
6052 member variable.
6053 <m_stmt_at_address>: New member variable.
6054 (lnp_state_machine::record_line): Don't record some lines, update
6055 tracking of is_stmt at the same address.
6056 (lnp_state_machine::lnp_state_machine): Initialise new member
6057 variables.
6058
6059 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
6060
6061 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
6062 "-include gnu-nat-mig.h".
6063 * gnu-nat-mig.h: New file.
6064 * gnu-nat.c: Include "gnu-nat-mig.h".
6065 (exc_server, msg_reply_server, notify_server,
6066 process_reply_server): Remove declarations.
6067
6068 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6069
6070 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
6071 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
6072 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
6073 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
6074 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
6075 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
6076 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
6077 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
6078 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
6079 to gnu_nat_target class.
6080 * gnu-nat.c: Likewise.
6081 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
6082 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
6083 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
6084 object.
6085 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
6086 instead of `gnu_target'.
6087
6088 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6089
6090 * i386-gnu-tdep.c: Include "gdbcore.h"
6091 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
6092 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
6093 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
6094 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
6095 i386_gnu_sigcontext_addr): New functions
6096 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
6097 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
6098 tdep.
6099
6100 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6101
6102 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
6103 before fork_inferior call. Avoid calling it if target_is_pushed returns
6104 true.
6105
6106 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6107
6108 * gnu-nat.h (gnu_target): New variable declaration.
6109 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
6110 gnu_target.
6111 * gnu-nat.c (gnu_target): New variable.
6112 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
6113 add_thread_silent, and add_thread calls.
6114 (gnu_nat_target::create_inferior): Pass gnu_target to
6115 add_thread_silent, thread_change_ptid call.
6116 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
6117 call.
6118
6119 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6120
6121 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
6122 (gnu_nat_target::find_memory_regions): Remove unused
6123 `old_address' variable.
6124
6125 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6126
6127 * gnu-nat.c: Include "gdbarch.h".
6128
6129 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6130
6131 * reply_mig_hack.awk (Error return): Cast function through
6132 void *, to bypass compiler function call check.
6133
6134 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6135
6136 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
6137 $(srcdir)/reply_mig_hack.awk.
6138
6139 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6140
6141 * gnu-nat.h (gnu_debug_flag): Set type to bool.
6142
6143 2020-05-30 Jonny Grant <jg@jguk.org>
6144
6145 * configure.ac (ACX_BUGURL): change bug URL to https.
6146
6147 2020-05-30 Pedro Alves <palves@redhat.com>
6148
6149 * cp-support.c (replace_typedefs_template): New.
6150 (replace_typedefs_qualified_name): Handle
6151 DEMANGLE_COMPONENT_TEMPLATE.
6152
6153 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
6154
6155 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
6156 dwarf2/index-cache.h, dwarf2/index-write.c,
6157 dwarf2/index-write.h, dwarf2/line-header.c,
6158 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
6159 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
6160 variables and fields from `dwarf2_per_objfile` to just
6161 `per_objfile` throughout.
6162
6163 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
6164
6165 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6166 <push_dwarf_reg_entry_value>: Add comment.
6167
6168 2020-05-28 Kevin Buettner <kevinb@redhat.com>
6169 Keith Seitz <keiths@redhat.com>
6170
6171 * python/python.c (do_start_initialization): Call PyEval_SaveThread
6172 instead of PyEval_ReleaseLock.
6173 (class gdbpy_gil): Move to earlier in file.
6174 (finalize_python): Set gdb_python_initialized.
6175 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
6176 when not initialized.
6177
6178 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
6179
6180 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6181 <push_dwarf_reg_entry_value>: Remove assert. Override
6182 per_objfile with caller_per_objfile.
6183
6184 2020-05-28 Tom de Vries <tdevries@suse.de>
6185
6186 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
6187 PR gold/15646 workaround to symbol kind "type".
6188
6189 2020-05-27 Tom Tromey <tromey@adacore.com>
6190
6191 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
6192
6193 2020-05-27 Tom Tromey <tromey@adacore.com>
6194
6195 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
6196 Use htab_find_with_hash.
6197 <add_abbrev>: Remove "abbrev_number" parameter.
6198 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
6199 "abbrev_number" parameter. Use htab_find_slot_with_hash.
6200 (hash_abbrev): Add comment.
6201 (abbrev_table::lookup_abbrev): Move to header file.
6202 (abbrev_table::read): Update.
6203
6204 2020-05-27 Tom Tromey <tromey@adacore.com>
6205
6206 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
6207 method.
6208 <canonical_name>: New member.
6209 <raw_name>: Rename from "name".
6210 (partial_die_info): Initialize canonical_name.
6211 (scan_partial_symbols): Check raw_name.
6212 (partial_die_parent_scope, partial_die_full_name)
6213 (add_partial_symbol, add_partial_subprogram)
6214 (add_partial_enumeration, load_partial_dies): Use "name" method.
6215 (partial_die_info::name): New method.
6216 (partial_die_info::read, guess_partial_die_structure_name)
6217 (partial_die_info::fixup): Update.
6218
6219 2020-05-27 Tom Tromey <tromey@adacore.com>
6220
6221 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
6222 <get_ref_die_offset>: Inline.
6223 <get_ref_die_offset_complaint>: New method.
6224 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
6225 (attribute::get_ref_die_offset_complaint): Rename from
6226 get_ref_die_offset. Just issue complaint.
6227
6228 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
6229
6230 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
6231
6232 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
6233
6234 * exec.c (exec_file_attach): Use errno value of first openp failure.
6235
6236 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
6237
6238 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
6239 Don't close thread handle.
6240
6241 2020-05-27 Tom Tromey <tom@tromey.com>
6242 Simon Marchi <simon.marchi@efficios.com>
6243
6244 * objfiles.h (struct objfile) <partial_symtabs>: Now a
6245 shared_ptr.
6246 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
6247 member.
6248 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
6249 dwarf2_per_bfd_objfile_data_key>: New globals.
6250 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
6251 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
6252 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
6253 shared.
6254 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
6255 short-circuit when sharing.
6256 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
6257 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
6258
6259 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6260
6261 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
6262 to...
6263 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
6264 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
6265
6266 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6267
6268 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
6269 build_name_components, find_name_components_bounds>:
6270 Add per_objfile parameter.
6271 (struct mapped_index) <symbol_name_at>: Likewise.
6272 (struct mapped_debug_names): Remove constructor.
6273 <dwarf2_per_objfile>: Remove field.
6274 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
6275 (mapped_index_base::find_name_components_bounds,
6276 mapped_index_base::build_name_components,
6277 dw2_expand_symtabs_matching_symbol): Likewise.
6278 (class mock_mapped_index) <symbol_name_at>: Likewise.
6279 (check_match): Likewise.
6280 (check_find_bounds_finds): Likewise.
6281 (test_mapped_index_find_name_component_bounds): Update.
6282 (CHECK_MATCH): Update.
6283 (dw2_expand_symtabs_matching): Update.
6284 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
6285 per_objfile parameter.
6286 <find_vec_in_debug_names>: Likewise.
6287 <m_per_objfile>: New field.
6288 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
6289 parameter.
6290 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
6291 (dw2_debug_names_iterator::next): Update.
6292 (dw2_debug_names_lookup_symbol): Update.
6293 (dw2_debug_names_expand_symtabs_for_function): Update.
6294 (dw2_debug_names_map_matching_symbols): Update.
6295 (dw2_debug_names_expand_symtabs_matching): Update.
6296 (dwarf2_read_debug_names): Update.
6297
6298 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6299
6300 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
6301 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
6302 move to dwarf2_per_objfile.
6303 <read_in_chain>: Remove.
6304 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
6305 remove_all_cus, age_comp_units>: New methods.
6306 <m_dwarf2_cus>: New member.
6307 (struct dwarf2_per_cu_data) <cu>: Remove.
6308 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
6309 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
6310 moved to methods of dwarf2_per_objfile.
6311 (dwarf2_clear_marks): Remove.
6312 (dwarf2_queue_item::~dwarf2_queue_item): Update.
6313 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
6314 (dwarf2_per_bfd::free_cached_comp_units): Remove.
6315 (dwarf2_per_objfile::remove_all_cus): New.
6316 (class free_cached_comp_units) <~free_cached_comp_units>:
6317 Update.
6318 (load_cu): Update.
6319 (dw2_do_instantiate_symtab): Adjust.
6320 (fill_in_sig_entry_from_dwo_entry): Adjust.
6321 (cutu_reader::init_tu_and_read_dwo_dies): Update.
6322 (cutu_reader::cutu_reader): Likewise.
6323 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
6324 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
6325 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
6326 and dwarf2_per_objfile::age_comp_units.
6327 (load_partial_comp_unit): Update.
6328 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
6329 (process_queue): Likewise.
6330 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
6331 backlink.
6332 (dwarf2_read_addr_index): Likewise.
6333 (follow_die_offset): Likewise.
6334 (dwarf2_fetch_die_loc_sect_off): Likewise.
6335 (dwarf2_fetch_constant_bytes): Likewise.
6336 (dwarf2_fetch_die_type_sect_off): Likewise.
6337 (follow_die_sig_1): Likewise.
6338 (load_full_type_unit): Likewise.
6339 (read_signatured_type): Likewise.
6340 (dwarf2_cu::dwarf2_cu): Don't set cu field.
6341 (dwarf2_cu::~dwarf2_cu): Remove.
6342 (dwarf2_per_objfile::get_cu): New.
6343 (dwarf2_per_objfile::set_cu): New.
6344 (age_cached_comp_units): Rename to...
6345 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
6346 to std::unordered_map.
6347 (free_one_cached_comp_unit): Rename to...
6348 (dwarf2_per_objfile::remove_cu): ... this. Adjust
6349 to std::unordered_map.
6350 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
6351 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
6352 a dwarf2_per_objfile in data.
6353 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
6354 (dwarf2_clear_marks): Remove.
6355
6356 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6357
6358 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
6359 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
6360 (init_tu_and_read_dwo_dies): Likewise.
6361 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
6362 (cutu_reader::cutu_reader): Likewise.
6363 (load_partial_comp_unit): Likewise.
6364 (process_psymtab_comp_unit): Update.
6365 (build_type_psymtabs_1): Update.
6366 (process_skeletonless_type_unit): Update.
6367 (load_full_comp_unit): Update.
6368 (find_partial_die): Update.
6369 (dwarf2_read_addr_index): Update.
6370 (read_signatured_type): Update.
6371
6372 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6373
6374 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
6375 m_header_read_in>: New fields.
6376 <get_header>: New method.
6377 * dwarf2/read.c (per_cu_header_read_in): Remove.
6378 (dwarf2_per_cu_data::get_header): New.
6379 (dwarf2_per_cu_data::addr_size): Update.
6380 (dwarf2_per_cu_data::offset_size): Update.
6381 (dwarf2_per_cu_data::ref_addr_size): Update.
6382
6383 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6384
6385 * dwarf2/read.c (load_cu): Return dwarf2_cu.
6386 (dw2_do_instantiate_symtab): Update.
6387 (queue_and_load_all_dwo_tus): Change parameter from
6388 dwarf2_per_cu_data to dwarf2_cu.
6389 (dwarf2_fetch_die_loc_sect_off): Update.
6390 (dwarf2_fetch_constant_bytes): Update.
6391 (dwarf2_fetch_die_type_sect_off): Update.
6392
6393 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6394
6395 * dwarf2/read.c (process_full_comp_unit,
6396 process_full_type_unit): Remove per_cu, per_objfile paramters.
6397 Add dwarf2_cu parameter.
6398 (process_queue): Update.
6399
6400 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6401
6402 * dwarf2/read.c (create_cu_from_index_list): Replace
6403 dwarf2_per_objfile parameter with dwarf2_per_bfd.
6404 (create_cus_from_index_list): Likewise.
6405 (create_cus_from_index): Likewise.
6406 (create_signatured_type_table_from_index): Likewise.
6407 (create_cus_from_debug_names_list): Likewise.
6408 (create_cus_from_debug_names): Likewise.
6409 (dwarf2_read_gdb_index): Update.
6410 (dwarf2_read_debug_names): Update.
6411
6412 2020-05-27 Tom Tromey <tom@tromey.com>
6413 Simon Marchi <simon.marchi@efficios.com>
6414
6415 * dwarf2/read.h (struct dwarf2_per_objfile)
6416 <get_type_for_signatured_type, set_type_for_signatured_type>:
6417 New methods.
6418 <m_type_map>: New member.
6419 (struct signatured_type) <type>: Remove.
6420 * dwarf2/read.c
6421 (dwarf2_per_objfile::get_type_for_signatured_type,
6422 dwarf2_per_objfile::set_type_for_signatured_type): New.
6423 (get_signatured_type): Use new methods.
6424
6425 2020-05-27 Tom Tromey <tom@tromey.com>
6426 Simon Marchi <simon.marchi@efficios.com>
6427
6428 * dwarf2/read.h (struct type_unit_group_unshareable): New.
6429 (struct dwarf2_per_objfile) <type_units>: New member.
6430 <get_type_unit_group_unshareable>: New method.
6431 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
6432 num_symtabs, symtabs>: Remove; move to
6433 type_unit_group_unshareable.
6434 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
6435 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
6436 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
6437
6438 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6439
6440 * dwarf2/read.h (struct dwarf2_per_cu_data):
6441 <dwarf2_per_objfile>: Remove.
6442 * dwarf2/read.c (create_cu_from_index_list): Don't assign
6443 dwarf2_per_objfile.
6444 (create_signatured_type_table_from_index): Likewise.
6445 (create_signatured_type_table_from_debug_names): Likewise.
6446 (create_debug_type_hash_table): Likewise.
6447 (fill_in_sig_entry_from_dwo_entry): Likewise.
6448 (create_type_unit_group): Likewise.
6449 (read_comp_units_from_section): Likewise.
6450 (create_cus_hash_table): Likewise.
6451
6452 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6453
6454 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
6455 dwarf2_per_cu_data::dwarf2_per_objfile.
6456 (compute_compunit_symtab_includes): Likewise.
6457 (dwarf2_cu::start_symtab): Likewise.
6458
6459 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6460
6461 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
6462 parameter.
6463 * dwarf2/read.c (get_die_type_at_offset): Likewise.
6464 (read_namespace_alias): Update.
6465 (lookup_die_type): Update.
6466 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
6467 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
6468 Update.
6469 (disassemble_dwarf_expression): Update.
6470
6471 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6472
6473 * dwarf2/read.h (struct dwarf2_queue_item): Add
6474 dwarf2_per_objfile parameter, assign new parameter.
6475 <per_objfile>: New field.
6476 * dwarf2/read.c (free_one_cached_comp_unit): Add
6477 dwarf2_per_objfile parameter.
6478 (queue_comp_unit): Likewise.
6479 (dw2_do_instantiate_symtab): Update.
6480 (process_psymtab_comp_unit): Update.
6481 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
6482 (process_imported_unit_die): Update.
6483 (queue_and_load_dwo_tu): Update.
6484 (follow_die_offset): Update.
6485 (follow_die_sig_1): Update.
6486
6487 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6488
6489 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
6490 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
6491 (read_call_site_scope): Assign per_objfile.
6492 (dwarf2_per_cu_data::objfile): Remove.
6493 * gdbtypes.h (struct call_site) <per_objfile>: New member.
6494 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
6495 dwarf2_per_objfile parameter.
6496 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
6497 dwarf2_per_objfile parameter.
6498 (dwarf_expr_reg_to_entry_parameter): Add output
6499 dwarf2_per_objfile parameter.
6500 (locexpr_get_frame_base): Update.
6501 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
6502 <push_dwarf_reg_entry_value>: Update.
6503 <call_site_to_target_addr>: Update.
6504 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
6505 parameter.
6506 (value_of_dwarf_reg_entry): Update.
6507 (rw_pieced_value): Update.
6508 (indirect_synthetic_pointer): Update.
6509 (dwarf2_evaluate_property): Update.
6510 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
6511 parameter.
6512 (locexpr_read_variable): Update.
6513 (locexpr_get_symbol_read_needs): Update.
6514 (loclist_read_variable): Update.
6515
6516 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6517
6518 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
6519 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
6520 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
6521 parameter.
6522 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
6523 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
6524 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
6525 parameter.
6526 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
6527 sect_variable_value): Add dwarf2_per_objfile parameter.
6528 (class dwarf_evaluate_loc_desc) <dwarf_call,
6529 dwarf_variable_value>: Update.
6530 (fetch_const_value_from_synthetic_pointer): Add
6531 dwarf2_per_objfile parameter.
6532 (fetch_const_value_from_synthetic_pointer): Update.
6533 (coerced_pieced_ref): Update.
6534 (class symbol_needs_eval_context) <dwarf_call,
6535 dwarf_variable_value>: Update.
6536 (dwarf2_compile_expr_to_ax): Update.
6537
6538 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6539
6540 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
6541 parameter.
6542 (dwarf2_evaluate_loc_desc_full): Update.
6543
6544 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6545
6546 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
6547 parameter.
6548 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
6549 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
6550 dwarf2_per_objfile parameter.
6551 (decode_debug_loc_dwo_addresses): Likewise.
6552 (dwarf2_find_location_expression): Update.
6553 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
6554 (locexpr_describe_location_piece): Add dwarf2_per_objfile
6555 parameter.
6556 (disassemble_dwarf_expression): Add dwarf2_per_objfile
6557 parameter.
6558 (locexpr_describe_location_1): Likewise.
6559 (locexpr_describe_location): Update.
6560
6561 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6562
6563 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
6564 Remove.
6565 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
6566 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
6567 (dwarf2_compile_property_to_c): Update.
6568 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
6569 use text offset from objfile.
6570 (locexpr_tracepoint_var_ref): Update.
6571 (locexpr_generate_c_location): Update.
6572 (loclist_describe_location): Update.
6573 (loclist_tracepoint_var_ref): Update.
6574 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
6575 dwarf2_per_objfile parameter.
6576 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
6577 use text offset from objfile.
6578 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
6579
6580 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6581
6582 * dwarf2/expr.h (struct dwarf_expr_context)
6583 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
6584 <offset>: Remove.
6585 <per_objfile>: New member.
6586 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
6587 dwarf2_per_objfile parameter. Don't set offset, set
6588 per_objfile.
6589 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
6590 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
6591 a dwarf2_per_objfile object instead of an offset.
6592 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
6593 constructor.
6594 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
6595 to dwarf2_expr_executor constructor. Don't set offset.
6596 (dwarf2_fetch_cfa_info): Update.
6597 (struct dwarf2_frame_cache) <text_offset>: Remove.
6598 <per_objfile>: New field.
6599 (dwarf2_frame_cache): Update.
6600 (dwarf2_frame_prev_register): Update.
6601 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6602 <dwarf_evaluate_loc_desc>: Add constructor.
6603 (dwarf2_evaluate_loc_desc_full): Update.
6604 (dwarf2_locexpr_baton_eval): Update.
6605 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
6606 Add constructor.
6607 (dwarf2_loc_desc_get_symbol_read_needs): Update.
6608
6609 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6610
6611 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
6612 addr_sized_int_type>: Move to dwarf2_cu.
6613 <int_type>: Move to dwarf2_per_objfile.
6614 (struct dwarf2_per_objfile) <int_type>: Move here.
6615 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
6616 addr_sized_int_type>: Move here.
6617 (read_func_scope): Update.
6618 (read_array_type): Update.
6619 (read_tag_string_type): Update.
6620 (attr_to_dynamic_prop): Update.
6621 (dwarf2_per_cu_data::int_type): Rename to...
6622 (dwarf2_per_objfile::int_type): ... this.
6623 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
6624 (dwarf2_cu::addr_sized_int_type): ... this.
6625 (read_subrange_type): Update.
6626 (dwarf2_per_cu_data::addr_type): Rename to...
6627 (dwarf2_cu::addr_type): ... this.
6628 (set_die_type): Update.
6629
6630 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6631
6632 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
6633 data through per_cu->cu.
6634
6635 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6636
6637 * dwarf2/read.c (lookup_dwo_comp_unit): Change
6638 dwarf2_per_cu_data parameter fo dwarf2_cu.
6639 (lookup_dwo_type_unit): Likewise.
6640 (read_cutu_die_from_dwo): Likewise.
6641 (lookup_dwo_unit): Likewise.
6642 (open_and_init_dwo_file): Likewise.
6643 (lookup_dwo_cutu): Likewise.
6644 (lookup_dwo_comp_unit): Likewise.
6645 (lookup_dwo_type_unit): Likewise.
6646 (cutu_reader::init_tu_and_read_dwo_dies): Update.
6647 (cutu_reader::cutu_reader): Update.
6648
6649 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6650
6651 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
6652 parameter.
6653 (process_full_type_unit): Likewise.
6654 (process_queue): Update.
6655
6656 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6657
6658 * dwarf2/read.c (recursively_compute_inclusions): Add
6659 dwarf2_per_objfile parameter.
6660 (compute_compunit_symtab_includes): Likewise.
6661 (process_cu_includes): Update.
6662
6663 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6664
6665 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
6666 parameter.
6667 (create_type_unit_group): Update.
6668 (process_psymtab_comp_unit_reader): Update.
6669 (build_type_psymtabs_reader): Update.
6670
6671 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6672
6673 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
6674 object through m_this_cu->cu.
6675
6676 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6677
6678 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
6679 the info parameter.
6680 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
6681
6682 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6683
6684 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
6685 per_objfile parameter.
6686 (load_full_type_unit): Add per_objfile parameter.
6687 (read_signatured_type): Likewise.
6688 (load_full_comp_unit): Likewise.
6689 (load_cu): Likewise.
6690 (dw2_do_instantiate_symtab): Likewise.
6691 (dw2_get_file_names): Likewise.
6692 (dw2_map_symtabs_matching_filename): Update.
6693 (dw_expand_symtabs_matching_file_matcher): Update.
6694 (dw2_map_symbol_filenames): Update.
6695 (process_psymtab_comp_unit): Add per_objfile parameter.
6696 (build_type_psymtabs_1): Update.
6697 (process_skeletonless_type_unit): Update.
6698 (dwarf2_build_psymtabs_hard): Update.
6699 (load_partial_comp_unit): Add per_objfile parameter.
6700 (scan_partial_symbols): Update.
6701 (load_full_comp_unit): Add per_objfile parameter.
6702 (process_imported_unit_die): Update.
6703 (create_cus_hash_table): Update.
6704 (find_partial_die): Update.
6705 (dwarf2_read_addr_index): Update.
6706 (follow_die_offset): Update.
6707 (dwarf2_fetch_die_loc_sect_off): Update.
6708 (dwarf2_fetch_constant_bytes): Update.
6709 (dwarf2_fetch_die_type_sect_off): Update.
6710 (follow_die_sig_1): Update.
6711 (load_full_type_unit): Add per_objfile parameter.
6712 (read_signatured_type): Likewise.
6713
6714 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6715
6716 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
6717 of objfile_name.
6718
6719 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6720
6721 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
6722 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
6723 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
6724 field.
6725 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
6726 (create_cus_from_index): Update.
6727 (dwarf2_read_gdb_index): Update.
6728 (create_cus_from_debug_names): Update.
6729 (dwarf2_read_debug_names): Update.
6730 (get_abbrev_section_for_cu): Update.
6731 (create_all_comp_units): Update.
6732 (read_attribute_value): Update.
6733 (get_debug_line_section): Update.
6734 * dwarf2/index-cache.c (index_cache::store): Update.
6735 * dwarf2/index-write.c (save_gdb_index_command): Update.
6736 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
6737
6738 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6739
6740 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
6741 member.
6742 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
6743 dwarf2_per_cu_data::per_bfd.
6744 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
6745 (create_type_unit_group): Likewise.
6746 (queue_comp_unit): Remove reference to
6747 per_cu->dwarf2_per_objfile.
6748 (maybe_queue_comp_unit): Likewise.
6749 (fill_in_sig_entry_from_dwo_entry): Assign new field.
6750 (create_cus_hash_table): Assign new field.
6751
6752 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6753
6754 * dwarf2/read.c: Replace
6755 dwarf2_cu->per_cu->dwarf2_per_objfile references with
6756 dwarf2_cu->per_objfile throughout.
6757
6758 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6759
6760 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
6761 parameter, don't use per_cu->dwarf2_per_objfile.
6762 (dw2_instantiate_symtab): Likewise.
6763 (dw2_find_last_source_symtab): Update.
6764 (dw2_map_expand_apply): Update.
6765 (dw2_lookup_symbol): Update.
6766 (dw2_expand_symtabs_for_function): Update.
6767 (dw2_expand_all_symtabs): Update.
6768 (dw2_expand_symtabs_with_fullname): Update.
6769 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
6770 don't use per_cu->dwarf2_per_objfile.
6771 (dw2_expand_marked_cus): Update.
6772 (dw2_find_pc_sect_compunit_symtab): Update.
6773 (dw2_debug_names_lookup_symbol): Update.
6774 (dw2_debug_names_expand_symtabs_for_function): Update.
6775 (dw2_debug_names_map_matching_symbols): Update.
6776 (dwarf2_psymtab::expand_psymtab): Update.
6777
6778 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6779
6780 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
6781 <per_objfile>: New member.
6782 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
6783 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
6784 call to dwarf2_cu.
6785 (cutu_reader::cutu_reader): Update.
6786 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
6787
6788 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6789
6790 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
6791 struct dwarf2_per_objfile.
6792 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
6793 dwarf2_per_bfd.
6794 * dwarf2/read.c (set_die_type): Update.
6795 (get_die_type_at_offset): Update.
6796
6797 2020-05-27 Tom Tromey <tom@tromey.com>
6798 Simon Marchi <simon.marchi@efficios.com>
6799
6800 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
6801 method.
6802 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
6803 get_symtab, set_symtab>: New methods.
6804 <m_symtabs>: New field.
6805 (struct dwarf2_psymtab): Derive from partial_symtab.
6806 <readin_p, get_compunit_symtab>: Declare methods.
6807 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
6808 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
6809 New methods.
6810 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
6811 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
6812 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
6813 (dw2_symtab_iter_next, dw2_print_stats)
6814 (dw2_expand_symtabs_with_fullname)
6815 (dw2_expand_symtabs_matching_one)
6816 (dw_expand_symtabs_matching_file_matcher)
6817 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
6818 (dw2_debug_names_iterator::next)
6819 (dw2_debug_names_map_matching_symbols)
6820 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
6821 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
6822 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
6823 New methods.
6824 (get_compunit_symtab, process_full_comp_unit)
6825 (process_full_type_unit): Update.
6826 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
6827
6828 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6829
6830 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
6831 then introduce a new dwarf2_per_objfile type.
6832 <read_line_string>: Move to the new dwarf2_per_objfile type.
6833 <objfile>: Likewise.
6834 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
6835 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
6836 dwarf2_per_objfile->per_bfd.
6837 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
6838 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
6839 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
6840 (dwarf2_per_bfd::free_cached_comp_units): ... this.
6841 (dwarf2_has_info): Allocate dwarf2_per_bfd.
6842 (dwarf2_per_objfile::locate_sections): Rename to...
6843 (dwarf2_per_bfd::locate_sections): ... this.
6844 (dwarf2_per_objfile::get_cutu): Rename to...
6845 (dwarf2_per_bfd::get_cutu): ... this.
6846 (dwarf2_per_objfile::get_cu): Rename to...
6847 (dwarf2_per_bfd::get_cu): ... this.
6848 (dwarf2_per_objfile::get_tu): Rename to...
6849 (dwarf2_per_bfd::get_tu): ... this.
6850 (dwarf2_per_objfile::allocate_per_cu): Rename to...
6851 (dwarf2_per_bfd::allocate_per_cu): ... this.
6852 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
6853 (dwarf2_per_bfd::allocate_signatured_type): ... this.
6854 (get_gdb_index_contents_ftype): Change parameter from
6855 dwarf2_per_objfile to dwarf2_per_bfd.
6856 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
6857 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
6858
6859 2020-05-27 Tom Tromey <tom@tromey.com>
6860 Simon Marchi <simon.marchi@efficios.com>
6861
6862 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
6863 (allocate_piece_closure): Set "per_objfile" member.
6864 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
6865 (locexpr_describe_location, loclist_describe_location): Use new
6866 member.
6867 * dwarf2/read.c (read_call_site_scope)
6868 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
6869 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
6870 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
6871 handle_data_member_location): Set per_objfile member.
6872 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
6873 member.
6874 (struct dwarf2_loclist_baton) <per_objfile>: New member.
6875
6876 2020-05-27 Tom Tromey <tom@tromey.com>
6877
6878 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
6879 allocate_signatured_type>: Declare new methods.
6880 <m_num_psymtabs>: New member.
6881 (struct dwarf2_per_cu_data) <index>: New member.
6882 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
6883 (dwarf2_per_objfile::allocate_signatured_type): New methods.
6884 (create_cu_from_index_list): Use allocate_per_cu.
6885 (create_signatured_type_table_from_index)
6886 (create_signatured_type_table_from_debug_names)
6887 (create_debug_type_hash_table, add_type_unit)
6888 (read_comp_units_from_section): Use allocate_signatured_type.
6889
6890 2020-05-27 Tom Tromey <tom@tromey.com>
6891
6892 * psymtab.c (partial_map_expand_apply)
6893 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
6894 (psym_lookup_global_symbol_language)
6895 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
6896 (psym_print_stats, psym_expand_symtabs_for_function)
6897 (psym_map_symbol_filenames, psym_map_matching_symbols)
6898 (psym_expand_symtabs_matching)
6899 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
6900 (maintenance_check_psymtabs): Update.
6901 * psympriv.h (struct partial_symtab) <readin_p,
6902 get_compunit_symtab>: Add objfile parameter.
6903 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
6904 Likewise.
6905 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
6906 get_compunit_symtab>: Likewise.
6907 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
6908
6909 2020-05-27 Tom Tromey <tom@tromey.com>
6910
6911 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
6912 member.
6913 * dwarf2/read.c (delete_file_name_entry): Fix comment.
6914 (create_cu_from_index_list)
6915 (create_signatured_type_table_from_index)
6916 (create_signatured_type_table_from_debug_names)
6917 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
6918 (dwarf2_create_include_psymtab)
6919 (create_debug_type_hash_table, add_type_unit)
6920 (create_type_unit_group, read_comp_units_from_section)
6921 (dwarf2_compute_name, create_cus_hash_table)
6922 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
6923 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
6924 obstack.
6925 (dw2_get_real_path): Likewise. Change argument to
6926 dwarf2_per_objfile.
6927
6928 2020-05-27 Luis Machado <luis.machado@linaro.org>
6929
6930 PR tdep/26000
6931 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
6932 for ldrd (immediate).
6933
6934 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6935
6936 * command.h: Add comment giving the name of class_tui.
6937 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
6938 create the fake command for the help for class_tui.
6939
6940 2020-05-26 Tom Tromey <tromey@adacore.com>
6941
6942 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
6943 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
6944 (val_atr): New function.
6945 (value_val_atr): Use it.
6946 * ada-valprint.c (print_optional_low_bound): Change low bound
6947 handling for enums.
6948 (val_print_packed_array_elements): Don't call discrete_position.
6949 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
6950 discrete_position for enum types.
6951 * language.c (default_print_array_index): Change type.
6952 * language.h (struct language_defn) <la_print_array_index>: Add
6953 index_type parameter, change type of index_value.
6954 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
6955 (default_print_array_index): Update.
6956 * valprint.c (maybe_print_array_index): Don't call
6957 value_from_longest. Update.
6958 (value_print_array_elements): Don't call discrete_position.
6959
6960 2020-05-26 Tom Tromey <tromey@adacore.com>
6961
6962 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
6963 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
6964
6965 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
6966
6967 PR gdb/13519
6968 * avr-tdep.c (avr_integer_to_address): Return data or code
6969 address accordingly to the second 'type' argument of the
6970 function.
6971
6972 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
6973
6974 * infcmd.c, inferior.h: (construct_inferior_arguments):
6975 Moved function from here to gdbsupport/common-inferior.{h,cc}
6976
6977 2020-05-23 Tom Tromey <tom@tromey.com>
6978
6979 Revert commit eca1f90c:
6980 * NEWS: Remove entry for completion styling.
6981 * completer.c (_rl_completion_prefix_display_length): Move
6982 declaration later.
6983 (gdb_fnprint): Revert.
6984 (gdb_display_match_list_1): Likewise.
6985 * cli/cli-style.c (completion_prefix_style)
6986 (completion_difference_style, completion_suffix_style): Remove.
6987 (_initialize_cli_style): Revert.
6988 * cli/cli-style.h (completion_prefix_style)
6989 (completion_difference_style, completion_suffix_style): Don't
6990 declare.
6991
6992 2020-05-24 Pedro Alves <palves@redhat.com>
6993
6994 * symtab.c (completion_list_add_name): Return boolean indication
6995 of whether the symbol matched.
6996 (completion_list_add_symbol): Don't try to remove C++ aliases if
6997 the symbol didn't match in the first place.
6998 * symtab.h (completion_list_add_name): Return bool.
6999
7000 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
7001
7002 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
7003 type::field.
7004
7005 2020-05-23 Joel Brobecker <brobecker@adacore.com>
7006
7007 GDB 9.2 released.
7008
7009 2020-05-23 Tom Tromey <tom@tromey.com>
7010
7011 * NEWS: Add entry for completion styling.
7012 * completer.c (_rl_completion_prefix_display_length): Move
7013 declaration earlier.
7014 (gdb_fnprint): Use completion_style.
7015 (gdb_display_match_list_1): Likewise.
7016 * cli/cli-style.c (completion_prefix_style)
7017 (completion_difference_style, completion_suffix_style): New
7018 globals.
7019 (_initialize_cli_style): Register new globals.
7020 * cli/cli-style.h (completion_prefix_style)
7021 (completion_difference_style, completion_suffix_style): Declare.
7022
7023 2020-05-23 Pedro Alves <palves@redhat.com>
7024
7025 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
7026 (parse_escape): Use ISDIGIT instead of isdigit.
7027 (puts_debug): Use gdb_isprint instead of isprint.
7028 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
7029 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
7030 ISSPACE instead of isspace.
7031 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
7032 instead of isspace.
7033 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
7034 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
7035 instead of isxdigit and ISDIGIT instead of isdigit.
7036
7037 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
7038
7039 * gdbtypes.h (struct type) <field>: New method.
7040 (TYPE_FIELDS): Remove, replace all uses with either type::fields
7041 or type::field.
7042
7043 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
7044
7045 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
7046 (TYPE_FIELDS): Use type::fields. Change all call sites that
7047 modify the propery to use type::set_fields instead.
7048
7049 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
7050
7051 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
7052 type::num_fields instead.
7053
7054 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
7055
7056 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
7057 methods.
7058 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
7059 that modify the number of fields to use type::set_num_fields
7060 instead.
7061
7062 2020-05-22 Tom Tromey <tromey@adacore.com>
7063
7064 * compile/compile-object-load.h (munmap_list_free): Don't
7065 declare.
7066
7067 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
7068
7069 * annotate.c (annotate_source_line): Update return type, add call
7070 to update current symtab and line.
7071 * annotate.h (annotate_source_line): Update return type, and
7072 extend header comment.
7073 * source.c (info_line_command): Check annotation_level before
7074 calling annotate_source_line.
7075 * stack.c (print_frame_info): If calling annotate_source_line
7076 returns true, then don't print any other source line information.
7077
7078 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
7079
7080 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
7081
7082 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
7083
7084 * coffread.c (patch_type): Remove NULL check before xfree.
7085 * corefile.c (set_gnutarget): Likewise.
7086 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
7087 * exec.c (build_section_table): Likewise.
7088 * remote.c (remote_target::pass_signals): Likewise.
7089 * utils.c (n_spaces): Likewise.
7090 * cli/cli-script.c (document_command): Likewise.
7091 * i386-windows-tdep.c (core_process_module_section): Likewise.
7092 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
7093
7094 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
7095
7096 * symfile.c (reread_symbols): Clear objfile's section_offsets
7097 vector and section indices, re-compute them by calling
7098 sym_offsets.
7099
7100 2020-05-20 Tom Tromey <tromey@adacore.com>
7101
7102 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
7103 (desc_one_bound, desc_index_type): Compute field name.
7104
7105 2020-05-20 Tom de Vries <tdevries@suse.de>
7106
7107 PR symtab/25833
7108 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
7109
7110 2020-05-20 Alan Modra <amodra@gmail.com>
7111
7112 PR 25993
7113 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
7114 bfd_set_filename.
7115 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
7116 passed to bfd_set_filename.
7117 * symfile-mem.c (add_vsyscall_page): Likewise for string
7118 passed to symbol_file_add_from_memory.
7119 (symbol_file_add_from_memory): Make name param a const char* and
7120 don't strdup.
7121
7122 2020-05-20 Alan Modra <amodra@gmail.com>
7123
7124 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
7125 rather than accessing bfd->filename directly.
7126 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
7127 and use bfd_section_name.
7128 * dwarf2/frame.c (decode_frame_entry): Likewise.
7129 * exec.c (exec_set_section_address): Likewise.
7130 * solib-aix.c (solib_aix_bfd_open): Likewise.
7131 * stap-probe.c (get_stap_base_address): Likewise.
7132 * symfile.c (reread_symbols): Likewise.
7133
7134 2020-05-19 Tom Tromey <tromey@adacore.com>
7135
7136 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
7137
7138 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
7139
7140 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
7141
7142 2020-05-19 Pedro Alves <palves@redhat.com>
7143
7144 * NEWS (set exec-file-mismatch): Adjust entry.
7145 * exec.c: Include "build-id.h".
7146 (validate_exec_file): Try to match build IDs instead of filenames.
7147 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
7148 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
7149 and pass down 'warn_if_slow'.
7150 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
7151 gdb_bfd_open_closure to pass it down.
7152 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
7153
7154 2020-05-19 Pedro Alves <palves@redhat.com>
7155
7156 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
7157 * target.c (target_fileio_open_1): Rename to target_fileio_open
7158 and make extern. Use bool.
7159 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
7160 (target_fileio_read_alloc_1): Adjust.
7161 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
7162 (target_fileio_open_warn_if_slow): Delete declaration.
7163
7164 2020-05-19 Pedro Alves <palves@redhat.com>
7165
7166 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
7167 Adjust all callers.
7168
7169 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
7170
7171 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
7172 whether disp is negative.
7173
7174 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
7175
7176 * symfile.h (struct symfile_segment_data)
7177 <~symfile_segment_data>: Remove.
7178 <segment_info>: Change to std::vector.
7179 * symfile.c (default_symfile_segments): Update.
7180 * elfread.c (elf_symfile_segments): Update.
7181
7182 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
7183
7184 * symfile.h (struct symfile_segment_data) <struct segment>: New.
7185 <segments>: New.
7186 <segment_bases, segment_sizes>: Remove.
7187 * symfile.c (default_symfile_segments): Update.
7188 * elfread.c (elf_symfile_segments): Update.
7189 * remote.c (remote_target::get_offsets): Update.
7190 * solib-target.c (solib_target_relocate_section_addresses):
7191 Update.
7192
7193 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
7194
7195 * symfile.h (struct symfile_segment_data): Initialize fields.
7196 <~symfile_segment_data>: Add.
7197 (symfile_segment_data_up): New.
7198 (struct sym_fns) <sym_segments>: Return a
7199 symfile_segment_data_up.
7200 (default_symfile_segments): Return a symfile_segment_data_up.
7201 (free_symfile_segment_data): Remove.
7202 (get_symfile_segment_data): Return a symfile_segment_data_up.
7203 * symfile.c (default_symfile_segments): Likewise.
7204 (get_symfile_segment_data): Likewise.
7205 (free_symfile_segment_data): Remove.
7206 (symfile_find_segment_sections): Update.
7207 * elfread.c (elf_symfile_segments): Return a
7208 symfile_segment_data_up.
7209 * remote.c (remote_target::get_offsets): Update.
7210 * solib-target.c (solib_target_relocate_section_addresses):
7211 Update.
7212 * symfile-debug.c (debug_sym_segments): Return a
7213 symfile_segment_data_up.
7214
7215 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7216
7217 PR build/25981
7218 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
7219 Hardcode register numbers.
7220
7221 PR build/25981
7222 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
7223 procfs_find_LDT_entry): Remove.
7224 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
7225 procfs_find_LDT_entry): Remove.
7226 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
7227 Remove.
7228
7229 2020-05-17 Pedro Alves <palves@redhat.com>
7230 Andrew Burgess <andrew.burgess@embecosm.com>
7231 Keno Fischer <keno@juliacomputing.com>
7232
7233 PR gdb/25741
7234 * breakpoint.c (build_target_condition_list): Update comments.
7235 (build_target_command_list): Update comments and skip matching
7236 locations.
7237 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
7238 a separate function. Simplify "set breakpoint auto-hw off"
7239 handling.
7240 (insert_breakpoints): Update comment.
7241 (tracepoint_locations_match): New parameter. For breakpoints,
7242 compare location types too, if the caller wants to.
7243 (handle_automatic_hardware_breakpoints): New functions.
7244 (bp_location_is_less_than): Also sort by location type and
7245 hardware breakpoint length.
7246 (update_global_location_list): Handle "set breakpoint auto-hw on"
7247 here.
7248 (update_breakpoint_locations): Ask breakpoint_locations_match to
7249 ignore location types.
7250
7251 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
7252
7253 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
7254 type::name instead.
7255
7256 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
7257
7258 * gdbtypes.h (struct type) <name, set_name>: New methods.
7259 (TYPE_CODE): Use type::name. Change all call sites used to set
7260 the name to use type::set_name instead.
7261
7262 2020-05-16 Tom Tromey <tom@tromey.com>
7263
7264 * top.c (quit_force): Update.
7265 * infrun.c (handle_no_resumed): Update.
7266 * top.h (all_uis): New function.
7267 (ALL_UIS): Remove.
7268
7269 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
7270
7271 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
7272
7273 2020-05-16 Pedro Alves <palves@redhat.com>
7274
7275 * ia64-linux-nat.c
7276 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
7277 Declare method.
7278 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
7279
7280 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
7281
7282 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
7283 (sparc64_adi_info): Likewise.
7284
7285 2020-05-15 Tom Tromey <tom@tromey.com>
7286
7287 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
7288 block_objfile.
7289 (lookup_objfile_from_block): Remove.
7290 (lookup_symbol_in_block, lookup_symbol_in_static_block)
7291 (lookup_global_symbol): Use block_objfile.
7292 * symtab.h (lookup_objfile_from_block): Don't declare.
7293 * printcmd.c (clear_dangling_display_expressions): Use
7294 block_objfile.
7295 * parse.c (operator_check_standard): Use block_objfile.
7296
7297 2020-05-15 Tom Tromey <tom@tromey.com>
7298
7299 * language.c (language_alloc_type_symbol): Set
7300 SYMBOL_SECTION.
7301 * symtab.c (initialize_objfile_symbol): Remove.
7302 (allocate_symbol): Remove.
7303 (allocate_template_symbol): Remove.
7304 * dwarf2/read.c (fixup_go_packaging): Use "new".
7305 (new_symbol): Use "new".
7306 (read_variable): Don't call initialize_objfile_symbol. Use
7307 "new".
7308 (read_func_scope): Use "new".
7309 * xcoffread.c (process_xcoff_symbol): Don't call
7310 initialize_objfile_symbol.
7311 (SYMBOL_DUP): Remove.
7312 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
7313 "new".
7314 * symtab.h (allocate_symbol, initialize_objfile_symbol)
7315 (allocate_template_symbol): Don't declare.
7316 (struct symbol): Add copy constructor. Change defaults.
7317 * jit.c (finalize_symtab): Use "new".
7318 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
7319 Use "new".
7320 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
7321 (common_block_end): Use "new".
7322 * mdebugread.c (parse_symbol): Use "new".
7323 (new_symbol): Likewise.
7324
7325 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7326
7327 * NEWS: Mention changes to help and apropos.
7328
7329 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7330
7331 * command.h (enum command_class): Improve comments, document
7332 that class_alias is for user-defined aliases, give the class
7333 name for each class, remove unused class_xdb.
7334 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
7335 * breakpoint.c (_initialize_breakpoint): Replace class_alias
7336 by a precise class.
7337 * infcmd.c (_initialize_infcmd): Likewise.
7338 * reverse.c (_initialize_reverse): Likewise.
7339 * stack.c (_initialize_stack): Likewise.
7340 * symfile.c (_initialize_symfile): Likewise.
7341 * tracepoint.c (_initialize_tracepoint): Likewise.
7342
7343 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7344
7345 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
7346 when their aliased command is traversed.
7347 (help_cmd): Add fput_command_names_styled call to
7348 output command name and aliases when command has an alias.
7349
7350 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7351
7352 * cli/cli-decode.h (help_cmd_list): Remove declaration.
7353 * cli/cli-decode.c (help_cmd_list): Declare as static,
7354 remove prefix argument, use bool for recurse arg, rework to show the aliases of
7355 a command together with the command.
7356 (fput_command_name_styled, fput_command_names_styled): New functions.
7357 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
7358 fput_command_name_styled.
7359 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
7360 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
7361
7362 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7363
7364 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
7365 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
7366 * command.h (cmd_show_list): Likewise.
7367 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
7368 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
7369
7370 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7371
7372 * unittests/command-def-selftests.c (traverse_command_structure):
7373 Verify all commands of a list have the same prefix command and
7374 that only the top cmdlist commands have a null prefix.
7375
7376 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7377
7378 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
7379 as prefix, not one of its aliases.
7380 (set_cmd_prefix): Remove.
7381 (do_add_cmd): Centralize the setting of the prefix of a command, when
7382 command is defined after its full chain of prefix commands.
7383 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
7384 (add_setshow_cmd_full): Likewise.
7385 (update_prefix_field_of_prefixed_commands): New function.
7386 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
7387 update_prefix_field_of_prefixed_commands.
7388 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
7389 addresses of remote_set_cmdlist and remote_show_cmdlist given
7390 as argument, not the address of an argument.
7391 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
7392 * gdb/remote.c (_initialize_remote): Likewise.
7393
7394 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7395
7396 * cli/cli-cmds.c (alias_command): Check for an existing alias
7397 using lookup_cmd_composition, as valid_command_p is too strict
7398 and forbids aliases that are the prefix of an existing alias
7399 or command.
7400 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
7401 command is properly recognised as a valid command.
7402
7403 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7404
7405 * unittests/help-doc-selftests.c: Rename to
7406 unittests/command-def-selftests.c
7407 * unittests/command-def-selftests.c (help_doc_tests): Update some
7408 comments.
7409 (command_structure_tests, traverse_command_structure): New namespace
7410 and function.
7411 (command_structure_invariants_tests): New function.
7412 (_initialize_command_def_selftests) Renamed from
7413 _initialize_help_doc_selftests, register command_structure_invariants
7414 selftest.
7415
7416 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7417
7418 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
7419 an alias of 'show'.
7420
7421 2020-05-15 Joel Brobecker <brobecker@adacore.com>
7422
7423 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
7424 ada_is_fixed_point_type. Update all callers.
7425 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
7426 all callers.
7427 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
7428 Update all callers.
7429 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
7430 print_fixed_point_type. Update all callers.
7431 * ada-valprint.c (ada_value_print_num): Replace call to
7432 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
7433
7434 2020-05-14 Kevin Buettner <kevinb@redhat.com>
7435
7436 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
7437 processors.
7438 (cpu_supports_bts): Add CV_AMD case.
7439
7440 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
7441 Simon Marchi <simon.marchi@efficios.com>
7442
7443 * infrun.c (stop_all_threads): Collect multiple wait events at
7444 each pass.
7445
7446 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
7447
7448 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
7449 type::code instead.
7450
7451 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
7452
7453 * gdbtypes.h (struct type) <code, set_code>: New methods.
7454 (TYPE_CODE): Use type::code. Change all call sites used to set
7455 the code to use type::set_code instead.
7456
7457 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7458 Tom de Vries <tdevries@suse.de>
7459 Pedro Alves <palves@redhat.com>
7460
7461 PR threads/25478
7462 * infrun.c (stop_all_threads): Do NOT ignore
7463 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
7464 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
7465 received.
7466 (handle_no_resumed): Remove code handling a live inferior with no
7467 threads.
7468 * remote.c (has_single_non_exited_thread): New.
7469 (remote_target::update_thread_list): Do not delete a thread if is
7470 the last thread of the process.
7471 * thread.c (thread_select): Call delete_exited_threads instead of
7472 prune_threads.
7473
7474 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7475
7476 * infrun.c (stop_all_threads): Enable/disable thread events of all
7477 targets. Move a debug message denoting the end of the function
7478 into the SCOPED_EXIT block.
7479
7480 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7481
7482 * process-stratum-target.h: Include <set>.
7483 (all_non_exited_process_targets, switch_to_target_no_thread): New
7484 function declarations.
7485 * process-stratum-target.c (all_non_exited_process_targets)
7486 (switch_to_target_no_thread): New function implementations.
7487
7488 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7489
7490 * infrun.c (handle_inferior_event): Extract out a piece of code
7491 into...
7492 (mark_non_executing_threads): ...this new function.
7493
7494 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7495
7496 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
7497 use.
7498
7499 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7500
7501 * regcache.c (regcache_read_pc_protected): New function
7502 implementation that returns 0 if the PC cannot read via
7503 'regcache_read_pc'.
7504 * infrun.c (proceed): Call 'regcache_read_pc_protected'
7505 instead of 'regcache_read_pc'.
7506 (keep_going_pass_signal): Ditto.
7507
7508 2020-05-13 Tom Tromey <tromey@adacore.com>
7509
7510 * ada-lang.c (align_value): Remove.
7511 (ada_template_to_fixed_record_type_1): Use align_up.
7512
7513 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7514
7515 * async-event.c: Update the copyright year.
7516 * async-event.h: Update the copyright year.
7517
7518 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
7519
7520 * objfiles.h (is_addr_in_objfile,
7521 shared_objfile_contains_address_p): Return bool.
7522 * objfile.c (is_addr_in_objfile,
7523 shared_objfile_contains_address_p): Return bool.
7524
7525 2020-05-11 Tom Tromey <tromey@adacore.com>
7526
7527 * cli/cli-cmds.c (info_command): Restore.
7528 (_initialize_cli_cmds): Use add_prefix_command for "info".
7529 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
7530
7531 2020-05-11 Tom Tromey <tromey@adacore.com>
7532
7533 * ada-lang.c (ada_value_primitive_field): Now public.
7534 * ada-lang.h (ada_value_primitive_field): Declare.
7535 * ada-valprint.c (print_field_values): Use
7536 ada_value_primitive_field for wrapper fields.
7537
7538 2020-05-11 Tom de Vries <tdevries@suse.de>
7539
7540 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
7541 MODULE_DOMAIN.
7542
7543 2020-05-11 Tom de Vries <tdevries@suse.de>
7544
7545 PR symtab/25941
7546 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
7547 with length 0, if not gdb-produced.
7548 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
7549
7550 2020-05-09 Tom de Vries <tdevries@suse.de>
7551
7552 PR gdb/25955
7553 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
7554 calculation.
7555
7556 2020-05-09 Tom Tromey <tom@tromey.com>
7557
7558 * top.c (server_command): Now bool.
7559 * top.h (server_command): Now bool.
7560
7561 2020-05-08 Tom Tromey <tromey@adacore.com>
7562
7563 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
7564 already being processed.
7565
7566 2020-05-08 Tom Tromey <tom@tromey.com>
7567
7568 * printcmd.c (struct display) <next>: Remove.
7569 <display>: New constructor.
7570 <exp_string>: Now a std::string.
7571 <enabled_p>: Now a bool.
7572 (display_number): Move definition earlier.
7573 (displays): Rename from display_chain. Now a std::vector.
7574 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
7575 (display_command): Update.
7576 (do_one_display, disable_display)
7577 (enable_disable_display_command, do_enable_disable_display):
7578 Update.
7579 (free_display): Remove.
7580 (clear_displays): Rewrite.
7581 (delete_display): Update.
7582 (map_display_numbers): Use function_view. Remove "data"
7583 parameter. Update.
7584 (do_delete_display): Remove.
7585 (undisplay_command): Update.
7586 (do_one_display, do_displays, disable_display)
7587 (info_display_command): Update.
7588 (do_enable_disable_display): Remove.
7589 (enable_disable_display_command)
7590 (clear_dangling_display_expressions): Update.
7591
7592 2020-05-08 Tom Tromey <tom@tromey.com>
7593
7594 * symtab.c (set_symbol_cache_size)
7595 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
7596 (maintenance_print_symbol_cache_statistics): Update.
7597 * symmisc.c (print_symbol_bcache_statistics)
7598 (print_objfile_statistics, maintenance_print_objfiles)
7599 (maintenance_info_symtabs, maintenance_check_symtabs)
7600 (maintenance_expand_symtabs, maintenance_info_line_tables):
7601 Update.
7602 * symfile-debug.c (set_debug_symfile): Update.
7603 * source.c (forget_cached_source_info): Update.
7604 * python/python.c (gdbpy_progspaces): Update.
7605 * psymtab.c (maintenance_info_psymtabs): Update.
7606 * probe.c (parse_probes): Update.
7607 * linespec.c (iterate_over_all_matching_symtabs)
7608 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
7609 * guile/scm-progspace.c (gdbscm_progspaces): Update.
7610 * exec.c (exec_target::close): Update.
7611 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
7612 * breakpoint.c (print_one_breakpoint_location)
7613 (create_longjmp_master_breakpoint)
7614 (create_std_terminate_master_breakpoint): Update.
7615 * progspace.c (program_spaces): Now a std::vector.
7616 (maybe_new_address_space): Update.
7617 (add_program_space): Remove.
7618 (program_space::program_space): Update.
7619 (remove_program_space): Update.
7620 (number_of_program_spaces): Remove.
7621 (print_program_space, update_address_spaces): Update.
7622 * progspace.h (program_spaces): Change type.
7623 (ALL_PSPACES): Remove.
7624 (number_of_program_spaces): Don't declare.
7625 (struct program_space) <next>: Remove.
7626
7627 2020-05-08 Tom Tromey <tom@tromey.com>
7628
7629 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
7630 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
7631 (enable_break): Update.
7632 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
7633 (frv_fdpic_find_canonical_descriptor): Update.
7634 (frv_fetch_objfile_link_map): Update.
7635 * progspace.c (program_space::free_all_objfiles): Update.
7636 (program_space::solibs): New method.
7637 * progspace.h (struct program_space) <solibs>: New method.
7638 * solist.h (master_so_list): Don't declare.
7639 (ALL_SO_LIBS): Remove.
7640 * solib.h (so_list_head): Remove.
7641 (update_solib_list): Update comment.
7642 * solib.c (master_so_list): Remove.
7643 (solib_used, update_solib_list, solib_add)
7644 (info_sharedlibrary_command, clear_solib)
7645 (reload_shared_libraries_1, remove_user_added_objfile): Update.
7646
7647 2020-05-08 Tom Tromey <tom@tromey.com>
7648
7649 * extension.c (extension_languages): Now a std::array.
7650 (ALL_EXTENSION_LANGUAGES): Remove.
7651 (get_ext_lang_defn, get_ext_lang_of_file)
7652 (eval_ext_lang_from_control_command): Update.
7653 (finish_ext_lang_initialization)
7654 (auto_load_ext_lang_scripts_for_objfile)
7655 (ext_lang_type_printers::ext_lang_type_printers)
7656 (apply_ext_lang_type_printers)
7657 (ext_lang_type_printers::~ext_lang_type_printers)
7658 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
7659 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
7660 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
7661 (get_matching_xmethod_workers, ext_lang_colorize)
7662 (ext_lang_before_prompt): Update.
7663 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
7664
7665 2020-05-08 Tom Tromey <tom@tromey.com>
7666
7667 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
7668 overload.
7669 <swap_string, m_string>: Remove.
7670 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
7671 Update.
7672 * stabsread.c (define_symbol, read_type): Update.
7673 * linespec.c (find_linespec_symbols): Update.
7674 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
7675 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
7676 * dbxread.c (read_dbx_symtab): Update.
7677 * cp-support.h (cp_canonicalize_string_full)
7678 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
7679 Return unique_xmalloc_ptr.
7680 * cp-support.c (inspect_type): Update.
7681 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
7682 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
7683 Likewise.
7684 * c-typeprint.c (print_name_maybe_canonical): Update.
7685 * break-catch-throw.c (check_status_exception_catchpoint):
7686 Update.
7687
7688 2020-05-08 Tom de Vries <tdevries@suse.de>
7689
7690 * infrun.c (follow_fork): Copy current_line and current_symtab to
7691 child thread.
7692
7693 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
7694
7695 * async-event.c (struct async_signal_handler, struct
7696 async_event_handler): Reformat, remove typedef.
7697
7698 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
7699
7700 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
7701 access thistype->main_type->dyn_prop_list directly.
7702
7703 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
7704
7705 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
7706 (remove_dyn_prop): Remove. Update all users to use
7707 type::remove_dyn_prop.
7708 * gdbtypes.c (remove_dyn_prop): Rename to...
7709 (type::remove_dyn_prop): ... this.
7710
7711 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
7712
7713 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
7714 (add_dyn_prop): Remove. Update all users to use
7715 type::add_dyn_prop.
7716 * gdbtypes.c (add_dyn_prop): Rename to...
7717 (type::add_dyn_prop): ... this.
7718
7719 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
7720
7721 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
7722 (get_dyn_prop): Remove. Update all users to use
7723 type::dyn_prop.
7724 * gdbtypes.c (get_dyn_prop): Rename to...
7725 (type::dyn_prop): ... this.
7726
7727 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
7728
7729 * gdbtypes.h (struct main_type) <flag_static>: Remove.
7730
7731 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
7732
7733 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
7734 instruction, skip it if it's there.
7735
7736 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
7737
7738 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
7739
7740 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
7741
7742 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
7743 * gdbtypes.c (recursive_dump_type): Remove use of
7744 TYPE_INCOMPLETE.
7745
7746 2020-05-03 Tom Tromey <tom@tromey.com>
7747
7748 * breakpoint.c (catch_command, tcatch_command): Remove.
7749 (_initialize_breakpoint): Use add_basic_prefix_cmd,
7750 add_show_prefix_cmd.
7751 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
7752 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
7753 Remove.
7754 (add_internal_problem_command): Use add_basic_prefix_cmd,
7755 add_show_prefix_cmd.
7756 * mips-tdep.c (set_mipsfpu_command): Remove.
7757 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
7758 * dwarf2/index-cache.c (set_index_cache_command): Remove.
7759 (_initialize_index_cache): Use add_basic_prefix_cmd.
7760 * memattr.c (dummy_cmd): Remove.
7761 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
7762 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
7763 (_initialize_tui_win): Use add_basic_prefix_cmd,
7764 add_show_prefix_cmd.
7765 * cli/cli-logging.c (set_logging_command): Remove.
7766 (_initialize_cli_logging): Use add_basic_prefix_cmd,
7767 add_show_prefix_cmd.
7768 (show_logging_command): Remove.
7769 * target.c (target_command): Remove.
7770 (add_target): Use add_basic_prefix_cmd.
7771
7772 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
7773
7774 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
7775
7776 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7777
7778 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
7779 info_command.
7780
7781 2020-04-30 Kamil Rytarowski <n54@gmx.com>
7782
7783 * nbsd-nat.c (nbsd_enable_proc_events)
7784 (nbsd_nat_target::post_startup_inferior): Add.
7785 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
7786 (nbsd_nat_target::update_thread_list): Rewrite.
7787 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
7788 "PTRACE_LWP_CREATE".
7789 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
7790
7791 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7792
7793 * stack.c (_initialize_stack): Remove duplicated creation
7794 of "frame" command and "f" alias.
7795
7796 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
7797
7798 PR gdb/18706
7799 * gdbtypes.c (check_typedef): Calculate size of array of
7800 stubbed type.
7801
7802 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
7803
7804 PR gdb/15559
7805 * i386-tdep.c (i386_push_dummy_call): Call
7806 i386_thiscall_push_dummy_call.
7807 (i386_thiscall_push_dummy_call): New function.
7808 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
7809 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
7810 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
7811
7812 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7813
7814 * gdbarch.sh (do_read): Add shellcheck disable directive for
7815 warning SC2162.
7816
7817 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7818
7819 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
7820 "referenced but not assigned" warning.
7821
7822 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7823
7824 * gdbarch.sh: Remove code that sets fallbackdefault.
7825
7826 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7827
7828 * gdbarch.sh: Use shell operators && and || instead of
7829 -a and -o.
7830
7831 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7832
7833 * gdbarch.sh: Use $(...) instead of `...`.
7834
7835 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7836
7837 * gdbarch.sh: Use double quotes around variables.
7838
7839 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7840
7841 * gdbarch.sh: Use %s with printf, instead of variables in the
7842 format string.
7843
7844 2020-04-29 Tom Tromey <tromey@adacore.com>
7845
7846 PR ada/25875:
7847 * dwarf2/read.c (update_enumeration_type_from_children): Compute
7848 type fields here.
7849 (read_enumeration_type): Call
7850 update_enumeration_type_from_children later. Update comments.
7851 (process_enumeration_scope): Don't create type fields.
7852
7853 2020-04-29 Kamil Rytarowski <n54@gmx.com>
7854
7855 * nbsd-tdep.c: Include "xml-syscall.h".
7856 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
7857
7858 2020-04-29 Kamil Rytarowski <n54@gmx.com>
7859
7860 * nbsd-nat.c: Include "sys/wait.h".
7861 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
7862 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
7863 (nbsd_nat_target::remove_exec_catchpoint)
7864 (nbsd_nat_target::set_syscall_catchpoint): Add.
7865 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
7866 (nbsd_nat_target::insert_exec_catchpoint)
7867 (nbsd_nat_target::remove_exec_catchpoint)
7868 (nbsd_nat_target::set_syscall_catchpoint): Add.
7869 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
7870 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
7871 `nbsd_get_syscall_number'.
7872
7873 2020-04-29 Tom Tromey <tom@tromey.com>
7874
7875 * stack.c (print_block_frame_labels): Remove.
7876
7877 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
7878
7879 PR gdb/17320
7880 * ada-valprint.c (val_print_packed_array_elements): Move array
7881 end bracket to new line.
7882 (ada_val_print_string): Remove extra spaces before first array
7883 element.
7884 * c-valprint.c (c_value_print_array): Likewise.
7885 * m2-valprint.c (m2_print_array_contents): Likewise.
7886 (m2_value_print_inner): Likewise.
7887 * p-valprint.c (pascal_value_print_inner): Likewise.
7888 * valprint.c (generic_val_print_array): Likewise.
7889 (value_print_array_elements): Move first array element and array
7890 end bracket to new line.
7891
7892 2020-04-29 Tom de Vries <tdevries@suse.de>
7893
7894 PR symtab/25889
7895 * linespec.c (find_method): Fix ix calculation.
7896
7897 2020-04-28 Kamil Rytarowski <n54@gmx.com>
7898
7899 * syscalls/update-netbsd.sh: New file.
7900 * syscalls/netbsd.xml: Regenerate.
7901 * data-directory/Makefile.in: Register `netbsd.xml' in
7902 `SYSCALLS_FILES'.
7903
7904 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
7905
7906 * syscalls/update-freebsd.sh: Add double quotes.
7907
7908 2020-04-28 Tom Tromey <tom@tromey.com>
7909
7910 * NEWS: Update.
7911 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
7912 (cmdpy_init): Allow class_tui.
7913
7914 2020-04-28 Mark Williams <mark@myosotissp.com>
7915
7916 PR gdb/24480
7917 * dwarf2read.c: Add missing assingments to list_in_scope when
7918 start_symtab was already called.
7919
7920 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
7921
7922 PR gdb/25881
7923 * dwarf2/read.c (offset_map_type): Use
7924 gdb:hash_enum<sect_offset> as hash function.
7925
7926 2020-04-28 Tom de Vries <tdevries@suse.de>
7927
7928 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
7929 with DW_AT_signature.
7930
7931 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
7932
7933 * configure.ac: Remove check for fs_base/gs_base in
7934 user_regs_struct.
7935 * configure: Re-generate.
7936 * config.in: Re-generate.
7937 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
7938 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
7939 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
7940
7941 2020-04-27 Luis Machado <luis.machado@linaro.org>
7942
7943 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
7944 problematic inline frame unwinding situation.
7945 * frame.c (frame_id_computed_p): New function.
7946 * frame.h (frame_id_computed_p): New prototype.
7947
7948 2020-04-26 Tom Tromey <tom@tromey.com>
7949
7950 * command.h (enum command_class) <class_pseudo>: Remove.
7951
7952 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7953
7954 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
7955 and whitespace.
7956
7957 2020-04-25 Kamil Rytarowski <n54@gmx.com>
7958
7959 * inf-ptrace.c (inf_ptrace_target::wait): Remove
7960 `PT_GET_PROCESS_STATE' block.
7961
7962 2020-04-24 Tom Tromey <tom@tromey.com>
7963
7964 * symtab.h (symbol_get_demangled_name): Don't declare.
7965 * symtab.c (symbol_get_demangled_name): Remove.
7966 (general_symbol_info::natural_name)
7967 (general_symbol_info::demangled_name): Update.
7968
7969 2020-04-24 Tom Tromey <tom@tromey.com>
7970
7971 PR rust/25025:
7972 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
7973
7974 2020-04-24 Tom Tromey <tom@tromey.com>
7975
7976 PR symtab/12707:
7977 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
7978 exists.
7979 (new_symbol): Likewise.
7980 * compile/compile-object-load.c (get_out_value_type): Use
7981 symbol_matches_search_name.
7982
7983 2020-04-24 Tom Tromey <tom@tromey.com>
7984
7985 * dwarf2/read.c (add_partial_symbol): Do not call
7986 compute_and_set_names.
7987
7988 2020-04-24 Tom Tromey <tom@tromey.com>
7989
7990 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
7991 overload.
7992
7993 2020-04-24 Tom Tromey <tom@tromey.com>
7994
7995 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
7996 (add_psymbol_to_list): New overload. Make old overload call new
7997 one.
7998 * psympriv.h (add_psymbol_to_list): New overload.
7999
8000 2020-04-24 Tom Tromey <tom@tromey.com>
8001
8002 * dwarf2/read.c (partial_die_info::read) <case
8003 DW_AT_linkage_name>: Use value_as_string.
8004 (dwarf2_string_attr): Use value_as_string.
8005 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
8006 method.
8007 * dwarf2/attribute.c (attribute::value_as_string): New method.
8008
8009 2020-04-24 Tom Tromey <tom@tromey.com>
8010
8011 * symtab.c (general_symbol_info::natural_name)
8012 (general_symbol_info::demangled_name): Check for language_rust.
8013
8014 2020-04-24 Tom Tromey <tom@tromey.com>
8015
8016 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
8017 (dwarf2_physname): ... from here.
8018 (partial_die_info::read): Add Rust "{" hack.
8019
8020 2020-04-24 Tom Tromey <tom@tromey.com>
8021
8022 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
8023 method.
8024 (symbol_set_demangled_name): Don't declare.
8025 * symtab.c (general_symbol_info::set_demangled_name): Rename from
8026 symbol_set_demangled_name.
8027 (general_symbol_info::set_language)
8028 (general_symbol_info::compute_and_set_names): Update.
8029 * minsyms.c (minimal_symbol_reader::install): Update.
8030 * dwarf2/read.c (new_symbol): Update.
8031
8032 2020-04-24 Tom Tromey <tromey@adacore.com>
8033
8034 PR python/23662:
8035 * python/py-type.c (convert_field): Handle
8036 FIELD_LOC_KIND_DWARF_BLOCK.
8037 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
8038 (typy_get_dynamic): Nw function.
8039 (type_object_getset): Add "dynamic".
8040 * NEWS: Add entry.
8041
8042 2020-04-24 Tom Tromey <tromey@adacore.com>
8043
8044 * ada-typeprint.c (print_choices, print_variant_part)
8045 (print_record_field_types_dynamic): New functions.
8046 (print_record_field_types): Use print_record_field_types_dynamic.
8047
8048 2020-04-24 Tom Tromey <tromey@adacore.com>
8049
8050 * dwarf2/read.c (handle_data_member_location): New overload.
8051 (dwarf2_add_field): Use it.
8052 (decode_locdesc): Add "computed" parameter. Update comment.
8053 * gdbtypes.c (is_dynamic_type_internal): Also look for
8054 FIELD_LOC_KIND_DWARF_BLOCK.
8055 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
8056 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
8057 virtual base classes.
8058 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
8059 FIELD_LOC_KIND_DWARF_BLOCK.
8060
8061 2020-04-24 Tom Tromey <tromey@adacore.com>
8062
8063 * dwarf2/read.c (read_structure_type): Handle dynamic length.
8064 * gdbtypes.c (is_dynamic_type_internal): Check
8065 TYPE_HAS_DYNAMIC_LENGTH.
8066 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
8067 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
8068 New macros.
8069 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
8070 constant.
8071
8072 2020-04-24 Tom Tromey <tromey@adacore.com>
8073
8074 * dwarf2/read.c (struct variant_field): Rewrite.
8075 (struct variant_part_builder): New.
8076 (struct nextfield): Remove "variant" field. Add "offset".
8077 (struct field_info): Add "current_variant_part" and
8078 "variant_parts".
8079 (alloc_discriminant_info): Remove.
8080 (alloc_rust_variant): New function.
8081 (quirk_rust_enum): Update.
8082 (dwarf2_add_field): Set "offset" member. Don't handle
8083 DW_TAG_variant_part.
8084 (offset_map_type): New typedef.
8085 (convert_variant_range, create_one_variant)
8086 (create_one_variant_part, create_variant_parts)
8087 (add_variant_property): New functions.
8088 (dwarf2_attach_fields_to_type): Call add_variant_property.
8089 (read_structure_type): Don't handle DW_TAG_variant_part.
8090 (handle_variant_part, handle_variant): New functions.
8091 (handle_struct_member_die): Use them.
8092 (process_structure_scope): Don't handle variant parts.
8093 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
8094 (struct discriminant_info): Remove.
8095 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
8096 (struct main_type) <flag_discriminated_union>: Remove.
8097 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
8098 (rust_enum_variant): Return int. Remove "contents". Rewrite.
8099 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
8100 Update.
8101 * valops.c (value_union_variant): Remove.
8102 * value.h (value_union_variant): Don't declare.
8103
8104 2020-04-24 Tom Tromey <tromey@adacore.com>
8105
8106 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
8107 (ada_value_primitive_packed_val): Update.
8108 * ada-valprint.c (ada_value_print_1): Update.
8109 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
8110 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
8111 just an address. Use evaluate_for_locexpr_baton.
8112 (dwarf2_evaluate_property): Update.
8113 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
8114 array_view.
8115 * findvar.c (default_read_var_value): Update.
8116 * gdbtypes.c (compute_variant_fields_inner)
8117 (resolve_dynamic_type_internal): Update.
8118 (resolve_dynamic_type): Change type of valaddr parameter.
8119 * gdbtypes.h (resolve_dynamic_type): Update.
8120 * valarith.c (value_subscripted_rvalue): Update.
8121 * value.c (value_from_contents_and_address): Update.
8122
8123 2020-04-24 Tom Tromey <tromey@adacore.com>
8124
8125 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
8126 "push_initial_value" parameter.
8127 (dwarf2_evaluate_property): Likewise.
8128 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
8129
8130 2020-04-24 Tom Tromey <tromey@adacore.com>
8131
8132 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
8133 (variant::matches, compute_variant_fields_recurse)
8134 (compute_variant_fields_inner, compute_variant_fields): New
8135 functions.
8136 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
8137 Use resolved_type after type is made.
8138 (operator==): Add new cases.
8139 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
8140 (struct discriminant_range, struct variant, struct variant_part):
8141 New.
8142 (union dynamic_prop_data) <variant_parts, original_type>: New
8143 members.
8144 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
8145 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
8146 constants.
8147 * value.c (unpack_bits_as_long): Now public.
8148 * value.h (unpack_bits_as_long): Declare.
8149
8150 2020-04-24 Tom Tromey <tromey@adacore.com>
8151
8152 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
8153 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
8154
8155 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
8156
8157 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
8158
8159 2020-04-24 Kamil Rytarowski <n54@gmx.com>
8160
8161 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
8162 (remove_fork_catchpoint, post_startup_inferior)
8163 (post_attach): Move...
8164 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
8165 (remove_fork_catchpoint, post_startup_inferior)
8166 (post_attach): ...here.
8167 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
8168 (remove_fork_catchpoint, post_startup_inferior)
8169 (post_attach): Move...
8170 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
8171 (remove_fork_catchpoint, post_startup_inferior)
8172 (post_attach): ...here.
8173
8174 2020-04-24 Tom Tromey <tromey@adacore.com>
8175
8176 * nat/windows-nat.h (struct windows_thread_info)
8177 <pc_adjusted>: New member.
8178 * windows-nat.c (windows_fetch_one_register): Check
8179 pc_adjusted.
8180 (windows_nat_target::get_windows_debug_event)
8181 (windows_nat_target::wait): Set pc_adjusted.
8182
8183 2020-04-24 Tom de Vries <tdevries@suse.de>
8184
8185 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
8186 Run gdb-add-index inside temp dir.
8187
8188 2020-04-23 Tom Tromey <tromey@adacore.com>
8189
8190 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
8191 in loop.
8192
8193 2020-04-23 Luis Machado <luis.machado@linaro.org>
8194
8195 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
8196 get_frame_register instead of gdbarch_unwind_pc.
8197
8198 2020-04-23 Tom de Vries <tdevries@suse.de>
8199
8200 * symtab.c (lookup_global_symbol): Prefer def over decl.
8201
8202 2020-04-23 Tom de Vries <tdevries@suse.de>
8203
8204 PR symtab/25807
8205 * block.c (best_symbol, better_symbol): Promote to external.
8206 * block.h (best_symbol, better_symbol): Declare.
8207 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
8208 decl.
8209
8210 2020-04-23 Tom Tromey <tromey@adacore.com>
8211
8212 PR ada/25837:
8213 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
8214 "const char *", not a "const std::string &".
8215 <name_and_matcher::operator==>: Update.
8216 * unittests/lookup_name_info-selftests.c: Change type of
8217 "result".
8218
8219 2020-04-23 Tom Tromey <tom@tromey.com>
8220
8221 * inferior.h (iterate_over_inferiors): Don't declare.
8222 * inferior.c (iterate_over_inferiors): Remove.
8223 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
8224 Remove.
8225 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
8226 use iterate_over_inferiors.
8227 (darwin_resume_inferior_it)
8228 (struct resume_inferior_threads_param)
8229 (darwin_resume_inferior_threads_it): Remove.
8230 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
8231
8232 2020-04-23 Tom de Vries <tdevries@suse.de>
8233
8234 * blockframe.c (find_pc_partial_function): Use
8235 find_pc_sect_compunit_symtab rather than
8236 objfile->sf->qf->find_pc_sect_compunit_symtab.
8237
8238 2020-04-22 Tom de Vries <tdevries@suse.de>
8239
8240 PR symtab/25764
8241 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
8242 in psymtabs.
8243
8244 2020-04-22 Tom de Vries <tdevries@suse.de>
8245
8246 PR symtab/25801
8247 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
8248 symtabs.
8249
8250 2020-04-22 Tom de Vries <tdevries@suse.de>
8251
8252 PR symtab/25700
8253 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
8254 CU if already created.
8255
8256 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8257
8258 * infrun.c (displaced_step_fixup): Switch to the event_thread
8259 before calling displaced_step_restore, not after.
8260
8261 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
8262
8263 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
8264 its inferior is not recorded by us.
8265 (record_btrace_target_open): Replace call to
8266 all_non_exited_threads () with call to current_inferior
8267 ()->non_exited_threads ().
8268 (record_btrace_target::stop_recording): Likewise.
8269 (record_btrace_target::close): Likewise.
8270 (record_btrace_target::wait): Likewise.
8271 (record_btrace_target::record_stop_replaying): Likewise.
8272
8273 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
8274
8275 * btrace.c (btrace_enable): Throw an error on double enables and
8276 when enabling recording fails.
8277 (btrace_disable): Throw an error if the thread is not recorded.
8278
8279 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
8280
8281 * record-btrace.c (record_btrace_target::fetch_registers): Forward
8282 request if we do not have a thread_info.
8283
8284 2020-04-21 Tom de Vries <tdevries@suse.de>
8285
8286 PR gdb/25471
8287 * thread.c
8288 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
8289 exception in get_frame_id.
8290
8291 2020-04-20 Tom Tromey <tromey@adacore.com>
8292
8293 * python/python.c (struct gdbpy_event): Mark move constructor as
8294 noexcept.
8295 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
8296 constructor as noexcept.
8297 * completer.h (struct completion_result): Mark move constructor as
8298 noexcept.
8299 * completer.c (completion_result::completion_result): Use
8300 initialization style. Don't call reset_match_list.
8301
8302 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
8303
8304 * MAINTAINERS (Write After Approval): Add myself.
8305
8306 2020-04-18 Tom Tromey <tom@tromey.com>
8307
8308 * windows-tdep.c (init_w32_command_list)
8309 (w32_prefix_command_valid): Restore.
8310 (_initialize_windows_tdep): Call init_w32_command_list.
8311
8312 2020-04-18 Tom Tromey <tom@tromey.com>
8313
8314 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
8315 * value.c (value_fn_field): Update.
8316 * valops.c (find_function_in_inferior)
8317 (value_allocate_space_in_inferior): Update.
8318 * tui/tui-winsource.c (tui_update_source_windows_with_line):
8319 Update.
8320 * tui/tui-source.c (tui_source_window::set_contents): Update.
8321 * symtab.c (lookup_global_or_static_symbol)
8322 (find_function_start_sal_1, skip_prologue_sal)
8323 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
8324 * symmisc.c (dump_msymbols, dump_symtab_1)
8325 (maintenance_print_one_line_table): Update.
8326 * symfile.c (init_entry_point_info, section_is_mapped)
8327 (list_overlays_command, simple_read_overlay_table)
8328 (simple_overlay_update_1): Update.
8329 * stap-probe.c (handle_stap_probe): Update.
8330 * stabsread.c (dbx_init_float_type, define_symbol)
8331 (read_one_struct_field, read_enum_type, read_range_type): Update.
8332 * source.c (info_line_command): Update.
8333 * python/python.c (gdbpy_source_objfile_script)
8334 (gdbpy_execute_objfile_script): Update.
8335 * python/py-type.c (save_objfile_types): Update.
8336 * python/py-objfile.c (py_free_objfile): Update.
8337 * python/py-inferior.c (python_new_objfile): Update.
8338 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
8339 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
8340 (maintenance_check_psymtabs): Update.
8341 * printcmd.c (info_address_command): Update.
8342 * objfiles.h (struct objfile) <arch>: New method, from
8343 get_objfile_arch.
8344 (get_objfile_arch): Don't declare.
8345 * objfiles.c (get_objfile_arch): Remove.
8346 (filter_overlapping_sections): Update.
8347 * minsyms.c (msymbol_is_function): Update.
8348 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
8349 (output_nondebug_symbol): Update.
8350 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
8351 (mdebug_expand_psymtab): Update.
8352 * machoread.c (macho_add_oso_symfile): Update.
8353 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
8354 Update.
8355 * linux-fork.c (checkpoint_command): Update.
8356 * linespec.c (convert_linespec_to_sals): Update.
8357 * jit.c (finalize_symtab): Update.
8358 * infrun.c (insert_exception_resume_from_probe): Update.
8359 * ia64-tdep.c (ia64_find_unwind_table): Update.
8360 * hppa-tdep.c (internalize_unwinds): Update.
8361 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
8362 Update.
8363 * gcore.c (call_target_sbrk): Update.
8364 * elfread.c (record_minimal_symbol, elf_symtab_read)
8365 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
8366 (elf_gnu_ifunc_resolve_by_got): Update.
8367 * dwarf2/read.c (create_addrmap_from_index)
8368 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
8369 (read_debug_names_from_section)
8370 (process_psymtab_comp_unit_reader, add_partial_symbol)
8371 (add_partial_subprogram, process_full_comp_unit)
8372 (read_file_scope, read_func_scope, read_lexical_block_scope)
8373 (read_call_site_scope, dwarf2_ranges_read)
8374 (dwarf2_record_block_ranges, dwarf2_add_field)
8375 (mark_common_block_symbol_computed, read_tag_pointer_type)
8376 (read_tag_string_type, dwarf2_init_float_type)
8377 (dwarf2_init_complex_target_type, read_base_type)
8378 (partial_die_info::read, partial_die_info::read)
8379 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
8380 (dwarf2_fetch_die_loc_sect_off): Update.
8381 * dwarf2/loc.c (dwarf2_find_location_expression)
8382 (class dwarf_evaluate_loc_desc, rw_pieced_value)
8383 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
8384 (dwarf2_loc_desc_get_symbol_read_needs)
8385 (locexpr_describe_location_piece, locexpr_describe_location_1)
8386 (loclist_describe_location): Update.
8387 * dwarf2/index-write.c (write_debug_names): Update.
8388 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
8389 * dtrace-probe.c (dtrace_process_dof): Update.
8390 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
8391 (process_one_symbol): Update.
8392 * ctfread.c (ctf_init_float_type, read_base_type): Update.
8393 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
8394 (coff_read_enum_type): Update.
8395 * cli/cli-cmds.c (edit_command, list_command): Update.
8396 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
8397 * breakpoint.c (create_overlay_event_breakpoint)
8398 (create_longjmp_master_breakpoint)
8399 (create_std_terminate_master_breakpoint)
8400 (create_exception_master_breakpoint, get_sal_arch): Update.
8401 * block.c (block_gdbarch): Update.
8402 * annotate.c (annotate_source_line): Update.
8403
8404 2020-04-17 Tom Tromey <tromey@adacore.com>
8405
8406 * auto-load.c (show_auto_load_cmd): Remove.
8407 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
8408 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
8409 (maintenance_print_arc_command): Remove.
8410 * tui/tui-win.c (tui_command): Remove.
8411 (tui_get_cmd_list): Use add_basic_prefix_cmd.
8412 * tui/tui-layout.c (tui_layout_command): Remove.
8413 (_initialize_tui_layout): Use add_basic_prefix_cmd.
8414 * python/python.c (user_set_python, user_show_python): Remove.
8415 (_initialize_python): Use add_basic_prefix_cmd,
8416 add_show_prefix_cmd.
8417 * guile/guile.c (set_guile_command, show_guile_command): Remove.
8418 (install_gdb_commands): Use add_basic_prefix_cmd,
8419 add_show_prefix_cmd.
8420 (info_guile_command): Remove.
8421 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
8422 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
8423 add_show_prefix_cmd.
8424 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
8425 Remove do_set and do_show parameters.
8426 * cli/cli-style.c (set_style, show_style): Remove.
8427 (_initialize_cli_style): Use add_basic_prefix_cmd,
8428 add_show_prefix_cmd.
8429 (cli_style_option::add_setshow_commands): Remove do_set and
8430 do_show parameters.
8431 (cli_style_option::add_setshow_commands): Use
8432 add_basic_prefix_cmd, add_show_prefix_cmd.
8433 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
8434 (set_style_name): Remove.
8435 * cli/cli-dump.c (dump_command, append_command): Remove.
8436 (srec_dump_command, ihex_dump_command, verilog_dump_command)
8437 (tekhex_dump_command, binary_dump_command)
8438 (binary_append_command): Remove.
8439 (_initialize_cli_dump): Use add_basic_prefix_cmd.
8440 * windows-tdep.c (w32_prefix_command_valid): Remove global.
8441 (init_w32_command_list): Remove; move into ...
8442 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
8443 * valprint.c (set_print, show_print, set_print_raw)
8444 (show_print_raw): Remove.
8445 (_initialize_valprint): Use add_basic_prefix_cmd,
8446 add_show_prefix_cmd.
8447 * typeprint.c (set_print_type, show_print_type): Remove.
8448 (_initialize_typeprint): Use add_basic_prefix_cmd,
8449 add_show_prefix_cmd.
8450 * record.c (set_record_command, show_record_command): Remove.
8451 (_initialize_record): Use add_basic_prefix_cmd,
8452 add_show_prefix_cmd.
8453 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
8454 add_show_prefix_cmd.
8455 (info_command, show_command, set_debug, show_debug): Remove.
8456 * top.h (set_history, show_history): Don't declare.
8457 * top.c (set_history, show_history): Remove.
8458 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
8459 (unset_tdesc_cmd): Remove.
8460 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
8461 add_show_prefix_cmd.
8462 * symtab.c (info_module_command): Remove.
8463 (_initialize_symtab): Use add_basic_prefix_cmd.
8464 * symfile.c (overlay_command): Remove.
8465 (_initialize_symfile): Use add_basic_prefix_cmd.
8466 * sparc64-tdep.c (info_adi_command): Remove.
8467 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
8468 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
8469 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
8470 add_show_prefix_cmd.
8471 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
8472 (_initialize_serial): Use add_basic_prefix_cmd,
8473 add_show_prefix_cmd.
8474 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
8475 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
8476 add_show_prefix_cmd.
8477 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
8478 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
8479 add_show_prefix_cmd.
8480 * riscv-tdep.c (show_riscv_command, set_riscv_command)
8481 (show_debug_riscv_command, set_debug_riscv_command): Remove.
8482 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
8483 add_show_prefix_cmd.
8484 * remote.c (remote_command, set_remote_cmd): Remove.
8485 (_initialize_remote): Use add_basic_prefix_cmd.
8486 * record-full.c (set_record_full_command)
8487 (show_record_full_command): Remove.
8488 (_initialize_record_full): Use add_basic_prefix_cmd,
8489 add_show_prefix_cmd.
8490 * record-btrace.c (cmd_set_record_btrace)
8491 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
8492 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
8493 (cmd_show_record_btrace_pt): Remove.
8494 (_initialize_record_btrace): Use add_basic_prefix_cmd,
8495 add_show_prefix_cmd.
8496 * ravenscar-thread.c (set_ravenscar_command)
8497 (show_ravenscar_command): Remove.
8498 (_initialize_ravenscar): Use add_basic_prefix_cmd,
8499 add_show_prefix_cmd.
8500 * mips-tdep.c (show_mips_command, set_mips_command)
8501 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
8502 add_show_prefix_cmd.
8503 * maint.c (maintenance_command, maintenance_info_command)
8504 (maintenance_check_command, maintenance_print_command)
8505 (maintenance_set_cmd, maintenance_show_cmd): Remove.
8506 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
8507 add_show_prefix_cmd.
8508 (show_per_command_cmd): Remove.
8509 * maint-test-settings.c (maintenance_set_test_settings_cmd):
8510 Remove.
8511 (maintenance_show_test_settings_cmd): Remove.
8512 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
8513 add_show_prefix_cmd.
8514 * maint-test-options.c (maintenance_test_options_command):
8515 Remove.
8516 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
8517 * macrocmd.c (macro_command): Remove
8518 (_initialize_macrocmd): Use add_basic_prefix_cmd.
8519 * language.c (set_check, show_check): Remove.
8520 (_initialize_language): Use add_basic_prefix_cmd,
8521 add_show_prefix_cmd.
8522 * infcmd.c (unset_command): Remove.
8523 (_initialize_infcmd): Use add_basic_prefix_cmd.
8524 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
8525 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
8526 add_show_prefix_cmd.
8527 * go32-nat.c (go32_info_dos_command): Remove.
8528 (_initialize_go32_nat): Use add_basic_prefix_cmd.
8529 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
8530 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
8531 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
8532 (_initialize_frame): Use add_basic_prefix_cmd,
8533 add_show_prefix_cmd.
8534 * dcache.c (set_dcache_command, show_dcache_command): Remove.
8535 (_initialize_dcache): Use add_basic_prefix_cmd,
8536 add_show_prefix_cmd.
8537 * cp-support.c (maint_cplus_command): Remove.
8538 (_initialize_cp_support): Use add_basic_prefix_cmd.
8539 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
8540 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
8541 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
8542 add_basic_prefix_cmd, add_show_prefix_cmd.
8543 * breakpoint.c (save_command): Remove.
8544 (_initialize_breakpoint): Use add_basic_prefix_cmd.
8545 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
8546 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
8547 add_show_prefix_cmd.
8548 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
8549 (set_ada_command, show_ada_command): Remove.
8550 (_initialize_ada_language): Use add_basic_prefix_cmd,
8551 add_show_prefix_cmd.
8552 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
8553
8554 2020-04-16 Kamil Rytarowski <n54@gmx.com>
8555
8556 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
8557 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
8558
8559 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
8560
8561 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
8562 warning messages.
8563
8564 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
8565
8566 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
8567 import table is not at beginning of .idata section.
8568
8569 2020-04-16 Pedro Alves <palves@redhat.com>
8570
8571 * inferior.c (delete_inferior): Use delete operator directly
8572 instead of delete_program_space.
8573 * progspace.c (add_program_space): New, factored out from
8574 program_space::program_space.
8575 (remove_program_space): New, factored out from
8576 delete_program_space.
8577 (program_space::program_space): Remove intro comment. Rewrite.
8578 (program_space::~program_space): Remove intro comment. Call
8579 remove_program_space.
8580 (delete_program_space): Delete.
8581 * progspace.h (program_space::program_space): Make explicit. Move
8582 intro comment here, adjusted.
8583 (program_space::~program_space): Move intro comment here,
8584 adjusted.
8585 (delete_program_space): Remove.
8586
8587 2020-04-16 Tom Tromey <tromey@adacore.com>
8588
8589 * windows-nat.c (windows_nat::handle_access_violation): New
8590 function.
8591 * nat/windows-nat.h (handle_access_violation): Declare.
8592 * nat/windows-nat.c (handle_exception): Move Cygwin code to
8593 windows-nat.c. Call handle_access_violation.
8594
8595 2020-04-16 Tom de Vries <tdevries@suse.de>
8596
8597 PR symtab/25791
8598 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
8599 CUs without psymtab.
8600
8601 2020-04-16 Kevin Buettner <kevinb@redhat.com>
8602
8603 * python/python.c (do_start_initialization): Don't call
8604 PyEval_InitThreads for Python 3.9 and beyond.
8605
8606 2020-04-15 Kamil Rytarowski <n54@gmx.com>
8607
8608 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
8609 thread functions.
8610 (obsd_nat_target::wait): Likewise.
8611
8612 2020-04-15 Tom Tromey <tromey@adacore.com>
8613
8614 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
8615 (DEBUG_EXCEPT): Use debug_printf.
8616
8617 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
8618
8619 * completer.c (class completion_tracker::completion_hash_entry)
8620 <hash_name>: New member function.
8621 (completion_tracker::discard_completions): New callback to hash a
8622 completion_hash_entry, pass this to htab_create_alloc.
8623
8624 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
8625
8626 * windows-nat.c (windows_make_so): Warn rather than stopping with
8627 an error if realpath() fails.
8628
8629 2020-04-14 Kamil Rytarowski <n54@gmx.com>
8630
8631 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
8632 (nbsd_nat_target::info_proc): Add do_status.
8633
8634 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
8635 Tom de Vries <tdevries@suse.de>
8636
8637 PR symtab/25718
8638 * psympriv.h (struct partial_symtab::read_symtab)
8639 (struct partial_symtab::expand_psymtab)
8640 (struct partial_symtab::read_dependencies): Update comments.
8641 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
8642 read_symtab for includer.
8643 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
8644 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
8645 (struct dwarf2_include_psymtab::m_readin): Remove.
8646 (struct dwarf2_include_psymtab::includer): New member function.
8647 (dwarf2_psymtab::expand_psymtab): Assert !readin.
8648
8649 2020-04-14 Tom de Vries <tdevries@suse.de>
8650
8651 PR symtab/25720
8652 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
8653 with NULL symbol_matcher and lookup_name.
8654 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
8655 and lookup_name.
8656 * dwarf2/read.c (dw2_expand_symtabs_matching)
8657 (dw2_debug_names_expand_symtabs_matching): Same.
8658 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
8659 Make lookup_name a pointer. Update comment.
8660 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
8661 lookup_name being a pointer.
8662 * symfile.c (expand_symtabs_matching): Same.
8663 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
8664 * linespec.c (iterate_over_all_matching_symtabs): Same.
8665
8666 2020-04-13 Tom Tromey <tom@tromey.com>
8667
8668 * run-on-main-thread.c: Update include.
8669 * unittests/main-thread-selftests.c: Update include.
8670 * tui/tui-win.c: Update include.
8671 * tui/tui-io.c: Update include.
8672 * tui/tui-interp.c: Update include.
8673 * tui/tui-hooks.c: Update include.
8674 * top.h: Update include.
8675 * top.c: Update include.
8676 * ser-base.c: Update include.
8677 * remote.c: Update include.
8678 * remote-notif.c: Update include.
8679 * remote-fileio.c: Update include.
8680 * record-full.c: Update include.
8681 * record-btrace.c: Update include.
8682 * python/python.c: Update include.
8683 * posix-hdep.c: Update include.
8684 * mingw-hdep.c: Update include.
8685 * mi/mi-main.c: Update include.
8686 * mi/mi-interp.c: Update include.
8687 * main.c: Update include.
8688 * linux-nat.c: Update include.
8689 * interps.c: Update include.
8690 * infrun.c: Update include.
8691 * inf-loop.c: Update include.
8692 * event-top.c: Update include.
8693 * event-loop.c: Move to ../gdbsupport/.
8694 * event-loop.h: Move to ../gdbsupport/.
8695 * async-event.h: Update include.
8696 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
8697
8698 2020-04-13 Tom Tromey <tom@tromey.com>
8699
8700 * tui/tui-win.c: Include async-event.h.
8701 * remote.c: Include async-event.h.
8702 * remote-notif.c: Include async-event.h.
8703 * record-full.c: Include async-event.h.
8704 * record-btrace.c: Include async-event.h.
8705 * infrun.c: Include async-event.h.
8706 * event-top.c: Include async-event.h.
8707 * event-loop.h: Move some declarations to async-event.h.
8708 * event-loop.c: Don't include ser-event.h or top.h. Move some
8709 code to async-event.c.
8710 * async-event.h: New file.
8711 * async-event.c: New file.
8712 * Makefile.in (COMMON_SFILES): Add async-event.c.
8713 (HFILES_NO_SRCDIR): Add async-event.h.
8714
8715 2020-04-13 Tom Tromey <tom@tromey.com>
8716
8717 * utils.c (flush_streams): New function.
8718 * event-loop.c (gdb_wait_for_event): Call flush_streams.
8719
8720 2020-04-13 Tom Tromey <tom@tromey.com>
8721
8722 * event-loop.c (handle_file_event): Use warning, not
8723 printf_unfiltered.
8724
8725 2020-04-13 Tom Tromey <tom@tromey.com>
8726
8727 * event-loop.c: Include <chrono>.
8728
8729 2020-04-13 Tom Tromey <tom@tromey.com>
8730
8731 * gdb_select.h: Move to ../gdbsupport/.
8732 * event-loop.c: Update include path.
8733 * top.c: Update include path.
8734 * ser-base.c: Update include path.
8735 * ui-file.c: Update include path.
8736 * ser-tcp.c: Update include path.
8737 * guile/scm-ports.c: Update include path.
8738 * posix-hdep.c: Update include path.
8739 * ser-unix.c: Update include path.
8740 * gdb_usleep.c: Update include path.
8741 * mingw-hdep.c: Update include path.
8742 * inflow.c: Update include path.
8743 * infrun.c: Update include path.
8744 * event-top.c: Update include path.
8745
8746 2020-04-13 Tom Tromey <tom@tromey.com>
8747
8748 * configure: Rebuild.
8749 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
8750
8751 2020-04-13 Tom Tromey <tom@tromey.com>
8752
8753 * event-loop.h (start_event_loop): Don't declare.
8754 * event-loop.c (start_event_loop): Move...
8755 * main.c (start_event_loop): ...here. Now static.
8756
8757 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
8758
8759 * MAINTAINERS: Update my email address.
8760
8761 2020-04-12 Kamil Rytarowski <n54@gmx.com>
8762
8763 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
8764 IP_ALL.
8765
8766 2020-04-12 Kamil Rytarowski <n54@gmx.com>
8767
8768 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
8769 (nbsd_nat_target::info_proc): Add do_cmdline.
8770
8771 2020-04-12 Kamil Rytarowski <n54@gmx.com>
8772
8773 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
8774 (nbsd_nat_target::info_proc): Add do_cwd.
8775
8776 2020-04-12 Kamil Rytarowski <n54@gmx.com>
8777
8778 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
8779
8780 2020-04-11 Kamil Rytarowski <n54@gmx.com>
8781
8782 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
8783 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
8784 (nbsd_nat_target::info_proc): New functions.
8785 * nbsd-nat.c (kinfo_get_vmmap): New function.
8786 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
8787 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
8788 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
8789 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
8790 functions.
8791 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
8792 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
8793 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
8794 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
8795 (KINFO_VME_FLAG_GROWS_DOWN): New.
8796
8797 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
8798
8799 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
8800 bit shift.
8801
8802 2020-04-10 Tom Tromey <tromey@adacore.com>
8803
8804 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
8805
8806 2020-04-10 Tom Tromey <tromey@adacore.com>
8807
8808 * symtab.c (get_symbol_address, get_msymbol_address): Skip
8809 separate debug files.
8810
8811 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
8812
8813 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
8814 Move to...
8815 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
8816 ... here.
8817 * windows-nat.c (windows_nat_target::get_windows_debug_event):
8818 Check for STATUS_WX86_BREAKPOINT.
8819 (windows_nat_target::wait): Same.
8820
8821 2020-04-10 Tom de Vries <tdevries@suse.de>
8822
8823 PR cli/25808
8824 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
8825
8826 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
8827
8828 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
8829 (Write After Approval): Remove Tom de Vries.
8830
8831 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
8832
8833 revert partially:
8834 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8835
8836 * buildsym.c (record_line): Fix undefined behavior and preserve
8837 lines at eof.
8838
8839 2020-04-09 Kamil Rytarowski <n54@gmx.com>
8840
8841 * auxv.h (svr4_auxv_parse): New.
8842 * auxv.c (default_auxv_parse): Split into default_auxv_parse
8843 and generic_auxv_parse.
8844 (svr4_auxv_parse): Add.
8845 * obsd-tdep.c: Include "auxv.h".
8846 (obsd_auxv_parse): Remove.
8847 (obsd_init_abi): Remove comment.
8848 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
8849 from `obsd_auxv_parse' to `svr4_auxv_parse'.
8850 * nbsd-tdep.c: Include "auxv.h".
8851 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
8852
8853 2020-04-08 Tom Tromey <tromey@adacore.com>
8854
8855 * nat/windows-nat.h (last_wait_event): Don't declare.
8856 (wait_for_debug_event): Update comment.
8857 * nat/windows-nat.c (last_wait_event): Now static.
8858
8859 2020-04-08 Tom Tromey <tromey@adacore.com>
8860
8861 * windows-nat.c (wait_for_debug_event): Move to
8862 nat/windows-nat.c.
8863 * nat/windows-nat.h (wait_for_debug_event): Declare.
8864 * nat/windows-nat.c (wait_for_debug_event): Move from
8865 windows-nat.c. No longer static.
8866
8867 2020-04-08 Tom Tromey <tromey@adacore.com>
8868
8869 * windows-nat.c (get_windows_debug_event): Use
8870 fetch_pending_stop.
8871 * nat/windows-nat.h (fetch_pending_stop): Declare.
8872 * nat/windows-nat.c (fetch_pending_stop): New function.
8873
8874 2020-04-08 Tom Tromey <tromey@adacore.com>
8875
8876 * windows-nat.c (windows_continue): Use matching_pending_stop and
8877 continue_last_debug_event.
8878 * nat/windows-nat.h (matching_pending_stop)
8879 (continue_last_debug_event): Declare.
8880 * nat/windows-nat.c (DEBUG_EVENTS): New define.
8881 (matching_pending_stop, continue_last_debug_event): New
8882 functions.
8883
8884 2020-04-08 Tom Tromey <tromey@adacore.com>
8885
8886 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
8887 (handle_exception_result): Move to nat/windows-nat.h.
8888 (DEBUG_EXCEPTION_SIMPLE): Remove.
8889 (windows_nat::handle_ms_vc_exception): New function.
8890 (handle_exception): Move to nat/windows-nat.c.
8891 (get_windows_debug_event): Update.
8892 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
8893 nat/windows-nat.c.
8894 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
8895 (handle_exception_result): Move from windows-nat.c.
8896 (handle_exception): Declare.
8897 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
8898 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
8899 windows-nat.c.
8900
8901 2020-04-08 Tom Tromey <tromey@adacore.com>
8902
8903 * windows-nat.c (exception_count, event_count): Remove.
8904 (handle_exception, get_windows_debug_event)
8905 (do_initial_windows_stuff): Update.
8906
8907 2020-04-08 Tom Tromey <tromey@adacore.com>
8908
8909 * windows-nat.c (windows_nat::handle_load_dll)
8910 (windows_nat::handle_unload_dll): Rename. No longer static.
8911 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
8912 Declare.
8913
8914 2020-04-08 Tom Tromey <tromey@adacore.com>
8915
8916 * complaints.h (stop_whining): Declare at top-level.
8917 (complaint): Don't declare stop_whining.
8918
8919 2020-04-08 Tom Tromey <tromey@adacore.com>
8920
8921 * windows-nat.c (windows_nat::handle_output_debug_string):
8922 Rename. No longer static.
8923 * nat/windows-nat.h (handle_output_debug_string): Declare.
8924
8925 2020-04-08 Tom Tromey <tromey@adacore.com>
8926
8927 * windows-nat.c (current_process_handle, current_process_id)
8928 (main_thread_id, last_sig, current_event, last_wait_event)
8929 (current_windows_thread, desired_stop_thread_id, pending_stops)
8930 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
8931 (display_selectors, fake_create_process)
8932 (get_windows_debug_event): Update.
8933 * nat/windows-nat.h (current_process_handle, current_process_id)
8934 (main_thread_id, last_sig, current_event, last_wait_event)
8935 (current_windows_thread, desired_stop_thread_id, pending_stops)
8936 (struct pending_stop, siginfo_er): Move from windows-nat.c.
8937 * nat/windows-nat.c (current_process_handle, current_process_id)
8938 (main_thread_id, last_sig, current_event, last_wait_event)
8939 (current_windows_thread, desired_stop_thread_id, pending_stops)
8940 (siginfo_er): New globals. Move from windows-nat.c.
8941
8942 2020-04-08 Tom Tromey <tromey@adacore.com>
8943
8944 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
8945 (handle_load_dll): Update.
8946 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
8947
8948 2020-04-08 Tom Tromey <tromey@adacore.com>
8949
8950 * windows-nat.c (enum thread_disposition_type): Move to
8951 nat/windows-nat.h.
8952 (windows_nat::thread_rec): Rename from thread_rec. No longer
8953 static.
8954 (windows_add_thread, windows_nat_target::fetch_registers)
8955 (windows_nat_target::store_registers, handle_exception)
8956 (windows_nat_target::resume, get_windows_debug_event)
8957 (windows_nat_target::get_tib_address)
8958 (windows_nat_target::thread_name)
8959 (windows_nat_target::thread_alive): Update.
8960 * nat/windows-nat.h (enum thread_disposition_type): Move from
8961 windows-nat.c.
8962 (thread_rec): Declare.
8963
8964 2020-04-08 Tom Tromey <tromey@adacore.com>
8965
8966 * windows-nat.c: Add "using namespace".
8967 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
8968 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
8969
8970 2020-04-08 Tom Tromey <tromey@adacore.com>
8971
8972 * nat/windows-nat.h (struct windows_thread_info): Declare
8973 destructor.
8974 * nat/windows-nat.c (~windows_thread_info): New.
8975
8976 2020-04-08 Tom Tromey <tromey@adacore.com>
8977
8978 PR gdb/22992
8979 * windows-nat.c (current_event): Update comment.
8980 (last_wait_event, desired_stop_thread_id): New globals.
8981 (struct pending_stop): New.
8982 (pending_stops): New global.
8983 (windows_nat_target) <stopped_by_sw_breakpoint>
8984 <supports_stopped_by_sw_breakpoint>: New methods.
8985 (windows_fetch_one_register): Add assertions. Adjust PC.
8986 (windows_continue): Handle pending stops. Suspend other threads
8987 when stepping. Use last_wait_event
8988 (wait_for_debug_event): New function.
8989 (get_windows_debug_event): Use wait_for_debug_event. Handle
8990 pending stops. Queue spurious stops.
8991 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
8992 (windows_nat_target::kill): Use wait_for_debug_event.
8993 * nat/windows-nat.h (struct windows_thread_info)
8994 <stopped_at_software_breakpoint>: New field.
8995 * nat/windows-nat.c (windows_thread_info::resume): Clear
8996 stopped_at_software_breakpoint.
8997
8998 2020-04-08 Tom Tromey <tromey@adacore.com>
8999
9000 * windows-nat.c (enum thread_disposition_type): New.
9001 (thread_rec): Replace "get_context" parameter with "disposition";
9002 change type.
9003 (windows_add_thread, windows_nat_target::fetch_registers)
9004 (windows_nat_target::store_registers, handle_exception)
9005 (windows_nat_target::resume, get_windows_debug_event)
9006 (windows_nat_target::get_tib_address)
9007 (windows_nat_target::thread_name)
9008 (windows_nat_target::thread_alive): Update.
9009
9010 2020-04-08 Tom Tromey <tromey@adacore.com>
9011
9012 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
9013 (windows_continue): Use windows_continue::resume.
9014 * nat/windows-nat.h (struct windows_thread_info) <suspend,
9015 resume>: Declare new methods.
9016 * nat/windows-nat.c: New file.
9017 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
9018
9019 2020-04-08 Tom Tromey <tromey@adacore.com>
9020
9021 * windows-nat.c (windows_add_thread, windows_delete_thread)
9022 (windows_nat_target::fetch_registers)
9023 (windows_nat_target::store_registers, fake_create_process)
9024 (windows_nat_target::resume, windows_nat_target::resume)
9025 (get_windows_debug_event, windows_nat_target::wait)
9026 (windows_nat_target::pid_to_str)
9027 (windows_nat_target::get_tib_address)
9028 (windows_nat_target::get_ada_task_ptid)
9029 (windows_nat_target::thread_name)
9030 (windows_nat_target::thread_alive): Use lwp, not tid.
9031
9032 2020-04-08 Tom Tromey <tromey@adacore.com>
9033
9034 * windows-nat.c (handle_exception)
9035 (windows_nat_target::thread_name): Update.
9036 * nat/windows-nat.h (windows_thread_info): Remove destructor.
9037 <name>: Now unique_xmalloc_ptr.
9038
9039 2020-04-08 Tom Tromey <tromey@adacore.com>
9040
9041 * windows-nat.c (thread_rec)
9042 (windows_nat_target::fetch_registers): Update.
9043 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
9044 Update comment.
9045 <debug_registers_changed, reload_context>: Now bool.
9046
9047 2020-04-08 Tom Tromey <tromey@adacore.com>
9048
9049 * windows-nat.c (windows_add_thread): Use new.
9050 (windows_init_thread_list, windows_delete_thread): Use delete.
9051 (get_windows_debug_event): Update.
9052 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
9053 destructor, and initializers.
9054
9055 2020-04-08 Tom Tromey <tromey@adacore.com>
9056
9057 * windows-nat.c (struct windows_thread_info): Remove.
9058 * nat/windows-nat.h: New file.
9059
9060 2020-04-08 Tom Tromey <tromey@adacore.com>
9061
9062 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
9063 (thread_rec, windows_add_thread, windows_delete_thread)
9064 (windows_continue): Update.
9065
9066 2020-04-08 Tom Tromey <tromey@adacore.com>
9067
9068 * windows-nat.c (struct windows_thread_info): Remove typedef.
9069 (thread_head): Remove.
9070 (thread_list): New global.
9071 (thread_rec, windows_add_thread, windows_init_thread_list)
9072 (windows_delete_thread, windows_continue): Update.
9073
9074 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
9075
9076 * windows-tdep.h (windows_init_abi): Add comment.
9077 (cygwin_init_abi): New declaration.
9078 * windows-tdep.c: Split signal enumeration in two, one for
9079 Windows and one for Cygwin.
9080 (windows_gdb_signal_to_target): Only deal with signal of the
9081 Windows OS ABI.
9082 (cygwin_gdb_signal_to_target): New function.
9083 (windows_init_abi): Rename to windows_init_abi_common, don't set
9084 gdb_signal_to_target gdbarch method. Add new new function with
9085 this name.
9086 (cygwin_init_abi): New function.
9087 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
9088 comment. Don't call windows_init_abi.
9089 (amd64_windows_init_abi): Add comment, call windows_init_abi.
9090 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
9091 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
9092 i386_windows_init_abi_common, don't call windows_init_abi. Add
9093 a new function of this name.
9094 (i386_cygwin_init_abi): New function.
9095 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
9096 OS ABI Cygwin.
9097
9098 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
9099
9100 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
9101 parameter.c.
9102 (dwarf2_read_gdb_index): Update.
9103
9104 2020-04-07 Kamil Rytarowski <n54@gmx.com>
9105
9106 * nbsd-tdep.c: Include "objfiles.h".
9107 (nbsd_skip_solib_resolver): New.
9108 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
9109
9110 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
9111
9112 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
9113 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
9114 with DW_LLE_base_addressx are being emitted in DWARFv5.
9115 Add the newly added kind DW_LOC_OFFSET_PAIR also.
9116 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
9117 unsigned integer.
9118
9119 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
9120
9121 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
9122 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
9123 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
9124 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
9125 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
9126 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
9127 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
9128
9129
9130 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
9131
9132 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
9133 (read_loclist_index): New function definition.
9134 (lookup_loclist_base): New function definition.
9135 (read_loclist_header): New function definition.
9136 (dwarf2_cu): Add loclist_base and loclist_header field.
9137 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
9138 (read_full_die_1): Read the value of DW_AT_loclists_base.
9139 (read_attribute_reprocess): Handle DW_FORM_loclistx.
9140 (read_attribute_value): Handle DW_FORM_loclistx.
9141 (skip_one_die): Handle DW_FORM_loclistx.
9142 (loclist_header): New structure declaration.
9143 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
9144
9145 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9146
9147 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
9148 constructor. Remove `addr` parameter from other constructor and
9149 add `per_cu` parameter.
9150 * dwarf2/read.c (create_partial_symtab): Update.
9151
9152 2020-04-07 Tom de Vries <tdevries@suse.de>
9153
9154 PR symtab/25796
9155 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
9156 (partial_die_info::fixup): Inherit has_const_value.
9157
9158 2020-04-07 Tom de Vries <tdevries@suse.de>
9159
9160 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
9161 symbols without address.
9162
9163 2020-04-06 Kamil Rytarowski <n54@gmx.com>
9164
9165 * nbsd-nat.h (struct thread_info): Add forward declaration.
9166 (nbsd_nat_target::thread_alive): Add.
9167 (nbsd_nat_target::thread_name): Likewise.
9168 (nbsd_nat_target::update_thread_list): Likewise.
9169 (update_thread_list::post_attach): Likewise.
9170 (post_attach::pid_to_str): Likewise.
9171 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
9172 (nbsd_thread_lister): Add.
9173 (nbsd_nat_target::thread_alive): Likewise.
9174 (nbsd_nat_target::thread_name): Likewise.
9175 (nbsd_add_threads): Likewise.
9176 (update_thread_list::post_attach): Likewise.
9177 (nbsd_nat_target::update_thread_list): Likewise.
9178 (post_attach::pid_to_str): Likewise.
9179
9180 2020-04-06 Tom Tromey <tromey@adacore.com>
9181
9182 * ada-valprint.c (print_variant_part): Extract the variant field.
9183 (print_field_values): Use the field as the outer value when
9184 recursing.
9185
9186 2020-04-06 Tom Tromey <tromey@adacore.com>
9187
9188 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
9189 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
9190 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
9191 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
9192 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
9193
9194 2020-04-06 Tom Tromey <tromey@adacore.com>
9195
9196 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
9197 TYPE_CODE_ERROR.
9198
9199 2020-04-06 Kamil Rytarowski <n54@gmx.com>
9200
9201 * nbsd-tdep.c: Include "gdbarch.h".
9202 Define enum with NetBSD signal numbers.
9203 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
9204 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
9205 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
9206 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
9207 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
9208 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
9209 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
9210 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
9211 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
9212 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
9213 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
9214 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
9215
9216 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
9217
9218 PR gdb/25325
9219 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
9220
9221 2020-04-03 Tom Tromey <tromey@adacore.com>
9222
9223 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
9224 Read constant block.
9225
9226 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
9227
9228 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
9229 (gdb_bfd_get_full_section_contents): New declaration.
9230 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
9231 * windows-tdep.c (is_linked_with_cygwin_dll): Use
9232 gdb_bfd_get_full_section_contents.
9233
9234 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
9235
9236 * exec.c (build_section_table): Replace internal_error with
9237 gdb_assert.
9238 (section_table_xfer_memory_partial): Likewise.
9239 * mdebugread.c (parse_partial_symbols): Likewise.
9240 * psymtab.c (lookup_partial_symbol): Likewise.
9241 * utils.c (wrap_here): Likewise.
9242
9243 2020-04-02 Tom Tromey <tromey@adacore.com>
9244
9245 * f-lang.c (build_fortran_types): Use arch_type to initialize
9246 builtin_complex_s32 in the TYPE_CODE_ERROR case.
9247
9248 2020-04-02 Tom Tromey <tromey@adacore.com>
9249
9250 * dwarf2/read.c (partial_die_info::read): Do not create a vector
9251 of attributes.
9252
9253 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
9254 Bernd Edlinger <bernd.edlinger@hotmail.de>
9255 Tom Tromey <tromey@adacore.com>
9256
9257 * buildsym.c (buildsym_compunit::record_line): Remove
9258 deduplication code.
9259
9260 2020-04-02 Tom de Vries <tdevries@suse.de>
9261
9262 PR ada/24671
9263 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
9264
9265 2020-04-02 Tom de Vries <tdevries@suse.de>
9266
9267 * dwarf2/read.c (dwarf2_gdb_index_functions,
9268 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
9269 NULL.
9270 * psymtab.c (psym_lookup_global_symbol_language): New function.
9271 (psym_functions): Init psym_lookup_global_symbol_language with
9272 psym_lookup_global_symbol_language.
9273 * symfile-debug.c (debug_sym_quick_functions): Init
9274 lookup_global_symbol_language with NULL.
9275 * symfile.c (set_initial_language): Remove fixme comment.
9276 * symfile.h (struct quick_symbol_functions): Add
9277 lookup_global_symbol_language.
9278 * symtab.c (find_quick_global_symbol_language): New function.
9279 (find_main_name): Use find_quick_global_symbol_language.
9280
9281 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
9282
9283 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
9284
9285 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
9286
9287 * buildsym.c (record_line): Fix undefined behavior and preserve
9288 lines at eof.
9289
9290 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
9291
9292 * buildsym.c (record_line): Fix the resizing condition.
9293
9294 2020-04-01 Tom Tromey <tom@tromey.com>
9295
9296 * value.h (value_literal_complex): Add comment.
9297 * valops.c (value_literal_complex): Refer to value.h.
9298
9299 2020-04-01 Tom Tromey <tom@tromey.com>
9300
9301 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
9302 (scalar_type): New rule, from typebase.
9303 (typebase): Use scalar_type. Recognize complex types.
9304 (field_name): Handle FLOAT_KEYWORD.
9305 (ident_tokens): Add _Complex and __complex__.
9306
9307 2020-04-01 Tom Tromey <tom@tromey.com>
9308
9309 PR exp/25299:
9310 * valarith.c (promotion_type, complex_binop): New functions.
9311 (scalar_binop): Handle complex numbers. Use promotion_type.
9312 (value_pos, value_neg, value_complement): Handle complex numbers.
9313
9314 2020-04-01 Tom Tromey <tom@tromey.com>
9315
9316 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
9317 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
9318 (parse_number): Handle complex numbers.
9319
9320 2020-04-01 Tom Tromey <tom@tromey.com>
9321
9322 * c-valprint.c (c_decorations): Change complex suffix to "i".
9323
9324 2020-04-01 Tom Tromey <tom@tromey.com>
9325
9326 * valprint.c (generic_value_print_complex): Use accessors.
9327 * value.h (value_real_part, value_imaginary_part): Declare.
9328 * valops.c (value_real_part, value_imaginary_part): New
9329 functions.
9330 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
9331
9332 2020-04-01 Tom Tromey <tom@tromey.com>
9333
9334 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
9335 (read_range_type): Update.
9336 * mdebugread.c (basic_type): Update.
9337 * go-lang.c (build_go_types): Use init_complex_type.
9338 * gdbtypes.h (struct main_type) <complex_type>: New member.
9339 (init_complex_type): Update.
9340 (arch_complex_type): Don't declare.
9341 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
9342 Make name if none given. Use alloc_type_copy. Look for cached
9343 complex type.
9344 (arch_complex_type): Remove.
9345 (gdbtypes_post_init): Use init_complex_type.
9346 * f-lang.c (build_fortran_types): Use init_complex_type.
9347 * dwarf2/read.c (read_base_type): Update.
9348 * d-lang.c (build_d_types): Use init_complex_type.
9349 * ctfread.c (read_base_type): Update.
9350
9351 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9352
9353 * infrun.c (stop_all_threads): Update assertion, plus when
9354 stopping threads, take into account that we might be trying
9355 to stop an all-stop target.
9356 (stop_waiting): Call 'stop_all_threads' if there exists a
9357 non-stop target.
9358
9359 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9360
9361 * target.h (exists_non_stop_target): New function declaration.
9362 * target.c (exists_non_stop_target): New function.
9363
9364 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
9365
9366 PR gdb/24789
9367 * eval.c (is_integral_or_integral_reference): New function.
9368 (evaluate_subexp_standard): Allow integer references in
9369 pointer arithmetic.
9370
9371 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9372
9373 * remote.c (remote_target::remote_parse_stop_reply): Remove the
9374 check for no ptid in the stop reply when the target is non-stop.
9375
9376 2020-04-01 Tom Tromey <tromey@adacore.com>
9377
9378 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
9379 "name" parameter to rvalue reference. Initialize m_name_holder.
9380 <lookup_name_info>: New overloads.
9381 <name>: Return gdb::string_view.
9382 <c_str>: New method.
9383 <make_ignore_params>: Update.
9384 <search_name_hash>: Update.
9385 <language_lookup_name>: Return const char *.
9386 <m_name>: Change type.
9387 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
9388 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
9389 (lookup_name_info::match_any): Update.
9390 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
9391 Update.
9392 * minsyms.c (linkage_name_str): Update.
9393 * language.c (default_symbol_name_matcher): Update.
9394 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
9395 Update.
9396 * ada-lang.c (ada_fold_name): Change parameter to string_view.
9397 (ada_lookup_name_info::ada_lookup_name_info): Update.
9398 (literal_symbol_name_matcher): Update.
9399
9400 2020-04-01 Tom Tromey <tromey@adacore.com>
9401
9402 * psymtab.c (psymtab_search_name): Remove function.
9403 (psym_lookup_symbol): Create search name and lookup name here.
9404 (lookup_partial_symbol): Remove "name" parameter; add
9405 lookup_name.
9406 (psym_expand_symtabs_for_function): Update.
9407
9408 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
9409
9410 PR tui/25597:
9411 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
9412
9413 2020-03-31 Tom Tromey <tromey@adacore.com>
9414
9415 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
9416 memcpy.
9417
9418 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
9419
9420 * features/riscv/32bit-csr.xml: Regenerated.
9421 * features/riscv/64bit-csr.xml: Regenerated.
9422
9423 2020-03-30 Tom Tromey <tromey@adacore.com>
9424
9425 * ada-valprint.c (print_variant_part): Update.
9426 * ada-lang.h (ada_which_variant_applies): Update.
9427 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
9428 outer_valaddr parameters; replace with "outer" value parameter.
9429 (to_fixed_variant_branch_type): Update.
9430
9431 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9432
9433 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
9434 <list>. Remove inclusion of observable.h.
9435 (PPC_DEBUG_CURRENT_VERSION): Move up define.
9436 (struct arch_lwp_info): New struct.
9437 (class ppc_linux_dreg_interface): New class.
9438 (struct ppc_linux_process_info): New struct.
9439 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
9440 <low_new_clone, low_forget_process, low_prepare_to_resume>
9441 <copy_thread_dreg_state, mark_thread_stale>
9442 <mark_debug_registers_changed, register_hw_breakpoint>
9443 <clear_hw_breakpoint, register_wp, clear_wp>
9444 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
9445 <num_memory_accesses, get_trigger_type>
9446 <create_watchpoint_request, hwdebug_point_cmp>
9447 <init_arch_lwp_info, get_arch_lwp_info>
9448 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
9449 methods.
9450 <struct ptid_hash>: New inner struct.
9451 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
9452 members.
9453 (saved_dabr_value, hwdebug_info, max_slots_number)
9454 (struct hw_break_tuple, struct thread_points, ppc_threads)
9455 (have_ptrace_hwdebug_interface)
9456 (hwdebug_find_thread_points_by_tid)
9457 (hwdebug_insert_point, hwdebug_remove_point): Remove.
9458 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
9459 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
9460 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
9461 use m_dreg_interface.
9462 (hwdebug_point_cmp): Change to...
9463 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
9464 reference arguments instead of pointers.
9465 (ppc_linux_nat_target::ranged_break_num_registers): Use
9466 m_dreg_interface.
9467 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
9468 m_dreg_interface. Call register_hw_breakpoint.
9469 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
9470 m_dreg_interface. Call clear_hw_breakpoint.
9471 (get_trigger_type): Change to...
9472 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
9473 comment.
9474 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
9475 use m_dreg_interface. Call register_hw_breakpoint.
9476 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
9477 use m_dreg_interface. Call clear_hw_breakpoint.
9478 (can_use_watchpoint_cond_accel): Change to...
9479 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
9480 method. Update comment, use m_dreg_interface and
9481 m_process_info.
9482 (calculate_dvc): Change to...
9483 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
9484 m_dreg_interface.
9485 (num_memory_accesses): Change to...
9486 (ppc_linux_nat_target::num_memory_accesses): ...this method.
9487 (check_condition): Change to...
9488 (ppc_linux_nat_target::check_condition): ...this method.
9489 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
9490 comment, use m_dreg_interface.
9491 (create_watchpoint_request): Change to...
9492 (ppc_linux_nat_target::create_watchpoint_request): ...this
9493 method. Use m_dreg_interface.
9494 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
9495 m_dreg_interface. Call register_hw_breakpoint or register_wp.
9496 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
9497 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
9498 (ppc_linux_nat_target::low_forget_process)
9499 (ppc_linux_nat_target::low_new_fork)
9500 (ppc_linux_nat_target::low_new_clone)
9501 (ppc_linux_nat_target::low_delete_thread)
9502 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
9503 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
9504 only call mark_thread_stale.
9505 (ppc_linux_thread_exit): Remove.
9506 (ppc_linux_nat_target::stopped_data_address): Change to...
9507 (ppc_linux_nat_target::low_stopped_data_address): This. Add
9508 comment, use m_dreg_interface and m_thread_hw_breakpoints.
9509 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
9510 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
9511 comment. Call low_stopped_data_address.
9512 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
9513 m_dreg_interface.
9514 (ppc_linux_nat_target::masked_watch_num_registers): Use
9515 m_dreg_interface.
9516 (ppc_linux_nat_target::copy_thread_dreg_state)
9517 (ppc_linux_nat_target::mark_thread_stale)
9518 (ppc_linux_nat_target::mark_debug_registers_changed)
9519 (ppc_linux_nat_target::register_hw_breakpoint)
9520 (ppc_linux_nat_target::clear_hw_breakpoint)
9521 (ppc_linux_nat_target::register_wp)
9522 (ppc_linux_nat_target::clear_wp)
9523 (ppc_linux_nat_target::init_arch_lwp_info)
9524 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
9525 (_initialize_ppc_linux_nat): Remove observer callback.
9526
9527 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9528
9529 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
9530 (ppc_linux_nat_target::auxv_parse)
9531 (ppc_linux_nat_target::read_description)
9532 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
9533 Move up.
9534
9535 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9536
9537 * linux-nat.h (low_new_clone): New method.
9538 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
9539
9540 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9541
9542 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
9543 (dbx_expand_psymtab): ... this.
9544 (start_psymtab): Update.
9545 * mdebugread.c (psymtab_to_symtab_1): Rename to...
9546 (mdebug_expand_psymtab): ... this.
9547 (parse_partial_symbols): Update.
9548 (new_psymtab): Update.
9549 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
9550 (xcoff_expand_psymtab): ... this.
9551 (xcoff_start_psymtab): Update.
9552
9553 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9554
9555 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
9556 <expand_dependencies>: ... this.
9557 * psymtab.c (partial_symtab::read_dependencies): Rename to...
9558 (partial_symtab::expand_dependencies): ... this.
9559 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
9560 Update.
9561 (dwarf2_psymtab::expand_psymtab): Update.
9562 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
9563 * mdebugread.c (psymtab_to_symtab_1): Update.
9564 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
9565
9566 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9567
9568 * psympriv.h (discard_psymtab): Remove.
9569 * dbxread.c (dbx_end_psymtab): Update.
9570 * xcoffread.c (xcoff_end_psymtab): Update.
9571
9572 2020-03-28 Tom Tromey <tom@tromey.com>
9573
9574 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
9575 comment.
9576
9577 2020-03-28 Tom Tromey <tom@tromey.com>
9578
9579 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
9580
9581 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
9582
9583 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
9584
9585 2020-03-26 John Baldwin <jhb@FreeBSD.org>
9586
9587 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
9588
9589 2020-03-26 Tom Tromey <tom@tromey.com>
9590
9591 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
9592 (mark_common_block_symbol_computed, read_tag_string_type)
9593 (attr_to_dynamic_prop, read_subrange_type): Update.
9594 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
9595 to be methods on struct attribute.
9596 (skip_one_die, process_imported_unit_die, read_namespace_alias)
9597 (read_call_site_scope, partial_die_info::read)
9598 (partial_die_info::read, lookup_die_type, follow_die_ref):
9599 Update.
9600 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
9601 from dwarf2_get_ref_die_offset.
9602 (attribute::constant_value): New method, from
9603 dwarf2_get_attr_constant_value.
9604 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
9605 Declare method.
9606 <constant_value>: New method.
9607
9608 2020-03-26 Tom Tromey <tom@tromey.com>
9609
9610 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
9611 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
9612 (dwarf_type_encoding_name): Move to stringify.c.
9613 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
9614 * dwarf2/stringify.c: New file.
9615 * dwarf2/stringify.h: New file.
9616
9617 2020-03-26 Tom Tromey <tom@tromey.com>
9618
9619 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
9620 Rewrite.
9621
9622 2020-03-26 Tom Tromey <tom@tromey.com>
9623
9624 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
9625 methods.
9626 * dwarf2/read.c (lookup_addr_base): Move to die.h.
9627 (lookup_ranges_base): Likewise.
9628 (read_cutu_die_from_dwo, read_full_die_1): Update.
9629
9630 2020-03-26 Tom Tromey <tom@tromey.com>
9631
9632 * dwarf2/read.c (read_import_statement, read_file_scope)
9633 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
9634 (read_lexical_block_scope, read_call_site_scope)
9635 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
9636 (handle_struct_member_die, process_structure_scope)
9637 (update_enumeration_type_from_children)
9638 (process_enumeration_scope, read_array_type, read_common_block)
9639 (read_namespace, read_module, read_subroutine_type): Update.
9640 (sibling_die): Remove.
9641
9642 2020-03-26 Tom Tromey <tom@tromey.com>
9643
9644 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
9645 (build_type_psymtabs_reader, read_structure_type)
9646 (read_enumeration_type, read_full_die_1): Update.
9647 (dwarf2_attr_no_follow): Move to die.h.
9648 * dwarf2/die.h (struct die_info) <attr>: New method.
9649
9650 2020-03-26 Tom Tromey <tom@tromey.com>
9651
9652 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
9653 <base_address>: Now an optional.
9654 (dwarf2_find_base_address, dwarf2_rnglists_process)
9655 (dwarf2_ranges_process, fill_in_loclist_baton)
9656 (dwarf2_symbol_mark_computed): Update.
9657
9658 2020-03-26 Tom Tromey <tom@tromey.com>
9659
9660 * dwarf2/read.c (struct die_info): Move to die.h.
9661 * dwarf2/die.h: New file.
9662
9663 2020-03-26 Tom Tromey <tom@tromey.com>
9664
9665 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
9666 * dwarf2/read.c
9667 (dwarf2_statement_list_fits_in_line_number_section_complaint):
9668 Move to line-header.c.
9669 (read_checked_initial_length_and_offset, read_formatted_entries):
9670 Likewise.
9671 (dwarf_decode_line_header): Split into two.
9672 * dwarf2/line-header.c
9673 (dwarf2_statement_list_fits_in_line_number_section_complaint):
9674 Move from read.c.
9675 (read_checked_initial_length_and_offset, read_formatted_entries):
9676 Likewise.
9677 (dwarf_decode_line_header): New function, split from read.c.
9678
9679 2020-03-26 Tom Tromey <tom@tromey.com>
9680
9681 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
9682 Declare method.
9683 * dwarf2/read.c (read_attribute_value): Update.
9684 (dwarf2_per_objfile::read_line_string): Rename from
9685 read_indirect_line_string.
9686 (read_formatted_entries): Update.
9687
9688 2020-03-26 Tom Tromey <tom@tromey.com>
9689
9690 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
9691 variable.
9692
9693 2020-03-26 Tom Tromey <tom@tromey.com>
9694
9695 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
9696 const.
9697 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
9698 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
9699 parameter const.
9700
9701 2020-03-26 Tom Tromey <tom@tromey.com>
9702
9703 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
9704 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
9705 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
9706 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
9707
9708 2020-03-26 Tom Tromey <tom@tromey.com>
9709
9710 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
9711 file_names_size, file_full_name, file_file_name>: Use const.
9712 <file_name_at, file_names>: Add const overload.
9713 * dwarf2/line-header.c (line_header::file_file_name)
9714 (line_header::file_full_name): Update.
9715
9716 2020-03-26 Tom Tromey <tom@tromey.com>
9717
9718 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
9719 (macro_start_file, consume_improper_spaces)
9720 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
9721 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
9722 (dwarf_decode_macros): Move to macro.c.
9723 * dwarf2/macro.c: New file.
9724 * dwarf2/macro.h: New file.
9725 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
9726
9727 2020-03-26 Tom Tromey <tom@tromey.com>
9728
9729 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
9730 method.
9731 * dwarf2/section.c: New method. From
9732 read_indirect_string_at_offset_from.
9733 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
9734 (read_indirect_string_at_offset_from): Move to section.c.
9735 (read_indirect_string_at_offset): Rewrite.
9736 (read_indirect_line_string_at_offset): Remove.
9737 (read_indirect_string, read_indirect_line_string)
9738 (dwarf_decode_macro_bytes): Update.
9739
9740 2020-03-26 Tom Tromey <tom@tromey.com>
9741
9742 * dwarf2/section.h (struct dwarf2_section_info)
9743 <overload_complaint>: Declare.
9744 (dwarf2_section_buffer_overflow_complaint): Don't declare.
9745 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
9746 Rename from dwarf2_section_buffer_overflow_complaint.
9747 * dwarf2/read.c (skip_one_die, partial_die_info::read)
9748 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
9749
9750 2020-03-26 Tom Tromey <tom@tromey.com>
9751
9752 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
9753 Declare.
9754 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
9755 Move from read.c.
9756 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
9757 to section.c.
9758
9759 2020-03-26 Tom Tromey <tom@tromey.com>
9760
9761 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
9762
9763 2020-03-26 Tom Tromey <tom@tromey.com>
9764
9765 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
9766 "builder".
9767 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
9768 parameter.
9769 (dwarf_decode_macros): Update.
9770
9771 2020-03-26 Tom Tromey <tom@tromey.com>
9772
9773 * dwarf2/read.c (read_attribute_value): Update.
9774 (read_indirect_string_from_dwz): Move to dwz.c; change into
9775 method.
9776 (dwarf_decode_macro_bytes): Update.
9777 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
9778 * dwarf2/dwz.c: New file.
9779 * Makefile.in (COMMON_SFILES): Add dwz.c.
9780
9781 2020-03-26 Tom Tromey <tom@tromey.com>
9782
9783 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
9784 * dwarf2/read.c: Add include.
9785 * dwarf2/index-write.c: Add include.
9786 * dwarf2/index-cache.c: Add include.
9787 * dwarf2/dwz.h: New file.
9788
9789 2020-03-25 Tom Tromey <tom@tromey.com>
9790
9791 * compile/compile-object-load.c (get_out_value_type): Mention
9792 correct symbol name in error message.
9793
9794 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
9795
9796 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
9797
9798 2020-03-25 Tom de Vries <tdevries@suse.de>
9799
9800 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
9801 * symmisc.c (dump_symtab_1): Print user and includes fields.
9802 (maintenance_info_symtabs): Same.
9803
9804 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
9805
9806 PR gdb/25534
9807 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
9808 (riscv_regcache_cooked_write): New function.
9809 (riscv_push_dummy_call): Use new function.
9810 (riscv_return_value): Likewise.
9811
9812 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
9813
9814 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
9815 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
9816 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
9817 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
9818 * infrun.c (follow_fork): Likewise.
9819 (follow_fork_inferior): Likewise.
9820 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
9821 * linux-nat.h (class linux_nat_target): Likewise.
9822 * remote.c (class remote_target) <follow_fork>: Likewise.
9823 (remote_target::follow_fork): Likewise.
9824 * target-delegates.c: Re-generate.
9825 * target.c (default_follow_fork): Likewise.
9826 (target_follow_fork): Likewise.
9827 * target.h (struct target_ops) <follow_fork>: Likewise.
9828 (target_follow_fork): Likewise.
9829
9830 2020-03-24 Tom de Vries <tdevries@suse.de>
9831
9832 * psymtab.c (maintenance_info_psymtabs): Print user field.
9833
9834 2020-03-20 Tom Tromey <tromey@adacore.com>
9835
9836 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
9837 const.
9838 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
9839 const.
9840
9841 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
9842
9843 * ptrace.m4: Don't check for ptrace declaration.
9844 * config.in: Re-generate.
9845 * configure: Re-generate.
9846 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
9847 not defined.
9848
9849 2020-03-20 Kamil Rytarowski <n54@gmx.com>
9850
9851 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
9852 `PTRACE_TYPE_RET'.
9853 * i386-bsd-nat.c (gdb_ptrace): Likewise.
9854 * sparc-nat.c (gdb_ptrace): Likewise.
9855 * x86-bsd-nat.c (gdb_ptrace): Likewise.
9856
9857 2020-03-20 Tom Tromey <tromey@adacore.com>
9858
9859 * c-exp.y (lex_one_token): Fix assert.
9860
9861 2020-03-20 Tom Tromey <tromey@adacore.com>
9862
9863 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
9864 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
9865 strncpy call.
9866
9867 2020-03-20 Tom Tromey <tromey@adacore.com>
9868
9869 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
9870
9871 2020-03-20 Tom Tromey <tromey@adacore.com>
9872
9873 * ada-valprint.c (print_variant_part): Remove parameters; switch
9874 to value-based API.
9875 (print_field_values): Likewise.
9876 (ada_val_print_struct_union): Likewise.
9877 (ada_value_print_1): Update.
9878
9879 2020-03-20 Kamil Rytarowski <n54@gmx.com>
9880
9881 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
9882 nbsd_nat_target instead of inf_ptrace_target.
9883 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9884 nbsd_nat_target.
9885
9886 2020-03-20 Kamil Rytarowski <n54@gmx.com>
9887
9888 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
9889 it to the ptrace call.
9890 * (store_registers): Likewise.
9891
9892 2020-03-20 Kamil Rytarowski <n54@gmx.com>
9893
9894 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
9895 it to the ptrace call.
9896 * (store_registers): Likewise.
9897
9898 2020-03-19 Luis Machado <luis.machado@linaro.org>
9899
9900 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
9901 valid, fetch vg value from ptrace.
9902
9903 2020-03-19 Kamil Rytarowski <n54@gmx.com>
9904 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
9905 * inf-ptrace.c: Likewise.
9906 * (gdb_ptrace): Add.
9907 * (inf_ptrace_target::resume): Update.
9908 * (inf_ptrace_target::xfer_partial): Likewise.
9909 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
9910 * (inf_ptrace_peek_poke): Update.
9911
9912 2020-03-19 Kamil Rytarowski <n54@gmx.com>
9913
9914 * x86-bsd-nat.c (gdb_ptrace): New.
9915 * (x86bsd_dr_set): Add new argument `ptid'.
9916 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
9917 x86bsd_dr_set_addr): Update.
9918
9919 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9920
9921 * remote.c (remote_target::process_stop_reply): Handle events for
9922 all threads differently.
9923
9924 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9925
9926 * completer.c (completion_tracker::remove_completion): Define new
9927 function.
9928 * completer.h (completion_tracker::remove_completion): Declare new
9929 function.
9930 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
9931 when adding a C++ function symbol.
9932
9933 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9934
9935 * completer.c (completion_tracker::completion_hash_entry): Define
9936 new class.
9937 (advance_to_filename_complete_word_point): Call
9938 recompute_lowest_common_denominator.
9939 (completion_tracker::completion_tracker): Call discard_completions
9940 to setup the hash table.
9941 (completion_tracker::discard_completions): Allow for being called
9942 from the constructor, pass new equal function, and element deleter
9943 when constructing the hash table. Initialise new class member
9944 variables.
9945 (completion_tracker::maybe_add_completion): Remove use of
9946 m_entries_vec, and store more information into m_entries_hash.
9947 (completion_tracker::recompute_lcd_visitor): New function, most
9948 content taken from...
9949 (completion_tracker::recompute_lowest_common_denominator):
9950 ...here, this now just visits each item in the hash calling the
9951 above visitor.
9952 (completion_tracker::build_completion_result): Remove use of
9953 m_entries_vec, call recompute_lowest_common_denominator.
9954 * completer.h (completion_tracker::have_completions): Remove use
9955 of m_entries_vec.
9956 (completion_tracker::completion_hash_entry): Declare new class.
9957 (completion_tracker::recompute_lowest_common_denominator): Change
9958 function signature.
9959 (completion_tracker::recompute_lcd_visitor): Declare new function.
9960 (completion_tracker::m_entries_vec): Delete.
9961 (completion_tracker::m_entries_hash): Initialize to NULL.
9962 (completion_tracker::m_lowest_common_denominator_valid): New
9963 member variable.
9964 (completion_tracker::m_lowest_common_denominator_max_length): New
9965 member variable.
9966
9967 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9968
9969 * regformats/regdef.h: Put reg in gdb namespace.
9970
9971 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9972
9973 * i386-bsd-nat.c (gdb_ptrace): New.
9974 * (i386bsd_fetch_inferior_registers,
9975 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
9976 * (i386bsd_fetch_inferior_registers,
9977 i386bsd_store_inferior_registers) Use gdb_ptrace.
9978
9979 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9980
9981 * amd64-bsd-nat.c (gdb_ptrace): New.
9982 * (amd64bsd_fetch_inferior_registers,
9983 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
9984 * (amd64bsd_fetch_inferior_registers,
9985 amd64bsd_store_inferior_registers) Use gdb_ptrace.
9986
9987 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9988
9989 * user-regs.c (user_reg::read): Rename to...
9990 (user_reg::xread): ...this.
9991 * (append_user_reg): Rename argument `read' to `xread'.
9992 * (user_reg_add_builtin): Likewise.
9993 * (user_reg_add): Likewise.
9994 * (value_of_user_reg): Likewise.
9995
9996 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9997
9998 * sparc-nat.c (gdb_ptrace): New.
9999 * sparc-nat.c (sparc_fetch_inferior_registers)
10000 (sparc_store_inferior_registers) Remove obsolete comment.
10001 * sparc-nat.c (sparc_fetch_inferior_registers)
10002 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
10003 * sparc-nat.c (sparc_fetch_inferior_registers)
10004 (sparc_store_inferior_registers) Use gdb_ptrace.
10005
10006 2020-03-17 Kamil Rytarowski <n54@gmx.com>
10007
10008 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
10009 it to the ptrace call.
10010 * sh-nbsd-nat.c (store_registers): Likewise.
10011
10012 2020-03-17 Kamil Rytarowski <n54@gmx.com>
10013
10014 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
10015 nbsd_nat_target instead of inf_ptrace_target.
10016 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
10017 nbsd_nat_target.
10018
10019 2020-03-17 Kamil Rytarowski <n54@gmx.com>
10020
10021 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
10022
10023 2020-03-17 Kamil Rytarowski <n54@gmx.com>
10024
10025 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
10026 <sys/sysctl.h>.
10027 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
10028
10029 2020-03-17 Tom de Vries <tdevries@suse.de>
10030
10031 PR gdb/23710
10032 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
10033 fields.
10034 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
10035 fields.
10036 (process_imported_unit_die): Skip import of c++ CUs.
10037
10038 2020-03-16 Tom Tromey <tom@tromey.com>
10039
10040 * p-valprint.c (pascal_object_print_value): Initialize
10041 base_value.
10042
10043 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
10044 Shahab Vahedi <shahab@synopsys.com>
10045
10046 * Makefile.in: Add arch/arc.o
10047 * configure.tgt: Likewise.
10048 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
10049 (_initialize_arc_tdep): Don't initialize old target descriptions.
10050 (arc_read_description): New function to cache target descriptions.
10051 * arc-tdep.h (arc_read_description): Add proto type.
10052 * arch/arc.c: New file.
10053 * arch/arc.h: Likewise.
10054 * features/Makefile: Replace old target descriptions with new.
10055 * features/arc-arcompact.c: Remove.
10056 * features/arc-arcompact.xml: Likewise.
10057 * features/arc-v2.c: Likewise
10058 * features/arc-v2.xml: Likewise
10059 * features/arc/aux-arcompact.xml: New file.
10060 * features/arc/aux-v2.xml: Likewise.
10061 * features/arc/core-arcompact.xml: Likewise.
10062 * features/arc/core-v2.xml: Likewise.
10063 * features/arc/aux-arcompact.c: Generate.
10064 * features/arc/aux-v2.c: Likewise.
10065 * features/arc/core-arcompact.c: Likewise.
10066 * features/arc/core-v2.c: Likewise.
10067 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
10068
10069 2020-03-16 Tom Tromey <tromey@adacore.com>
10070
10071 PR gdb/25663:
10072 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
10073 putting value into bcache.
10074
10075 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
10076
10077 PR gdb/21500
10078 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
10079 to...
10080 (amd64_windows_init_abi_common): ... this. Don't set size of
10081 long type.
10082 (amd64_windows_init_abi): New function.
10083 (amd64_cygwin_init_abi): New function.
10084 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
10085 the Cygwin OS ABI.
10086 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
10087 comment.
10088
10089 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
10090
10091 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
10092 * windows-tdep.c (CYGWIN_DLL_NAME): New.
10093 (pe_import_directory_entry): New struct type.
10094 (is_linked_with_cygwin_dll): New function.
10095 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
10096 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
10097 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
10098
10099 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
10100
10101 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
10102 i386_cygwin_core_osabi_sniffer.
10103
10104 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
10105
10106 * i386-cygwin-tdep.c: Rename to...
10107 * i386-windows-tdep.c: ... this.
10108 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
10109 i386-windows-tdep.c.
10110 * configure.tgt: Likewise.
10111
10112 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
10113
10114 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
10115 * osabi.c (gdb_osabi_names): Add "Windows".
10116 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
10117 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
10118 (i386_cygwin_core_osabi_sniffer): New function, extracted from
10119 i386_cygwin_osabi_sniffer.
10120 (_initialize_i386_cygwin_tdep): Register OS ABI
10121 GDB_OSABI_WINDOWS for i386.
10122 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
10123 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
10124 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
10125 for x86-64.
10126 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
10127 when the target matches '*-*-mingw*'.
10128
10129 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
10130
10131 * defs.h (enum gdb_osabi): Move to...
10132 * osabi.h (enum gdb_osabi): ... here.
10133 * gdbarch.sh: Include osabi.h in gdbarch.h.
10134 * gdbarch.h: Re-generate.
10135
10136 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
10137
10138 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
10139 function.
10140 (_initialize_amd64_windows_tdep): Register osabi sniffer.
10141
10142 2020-03-14 Tom Tromey <tom@tromey.com>
10143
10144 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
10145 for C++.
10146 (c_type_print_modifier): Likewise. Add "language" parameter.
10147 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
10148 (c_type_print_base_1): Update.
10149 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
10150 constants.
10151 * type-stack.c (type_stack::insert): Handle tp_atomic and
10152 tp_restrict.
10153 (type_stack::follow_type_instance_flags): Likewise.
10154 (type_stack::follow_types): Likewise. Merge type-following code.
10155 * c-exp.y (RESTRICT, ATOMIC): New tokens.
10156 (space_identifier, cv_with_space_id)
10157 (const_or_volatile_or_space_identifier_noopt)
10158 (const_or_volatile_or_space_identifier): Remove.
10159 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
10160 rules.
10161 (ptr_operator, typebase): Update.
10162 (enum token_flag) <FLAG_C>: New constant.
10163 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
10164 "_Atomic".
10165 (lex_one_token): Handle FLAG_C.
10166
10167 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10168
10169 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
10170 it to the ptrace call.
10171 * m68k-bsd-nat.c (store_registers): Likewise.
10172
10173 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10174
10175 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
10176 gdb_byte *.
10177 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
10178 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
10179 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
10180
10181 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10182
10183 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
10184 nbsd_nat_target instead of inf_ptrace_target.
10185 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
10186 nbsd_nat_target.
10187
10188 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10189
10190 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
10191 register_t.
10192
10193 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10194
10195 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
10196 it to the ptrace call.
10197 * alpha-bsd-nat.c (store_registers): Likewise.
10198
10199 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10200
10201 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
10202 includes.
10203 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
10204 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
10205 fill_fpregset): Likewise.
10206
10207 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10208
10209 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
10210 nbsd_nat_target instead of inf_ptrace_target.
10211 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
10212 nbsd_nat_target.
10213
10214 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10215
10216 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
10217 register_t.
10218
10219 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10220
10221 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
10222 it to the ptrace call.
10223 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
10224 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
10225 * arm-nbsd-nat.c (store_register): Likewise.
10226 * arm-nbsd-nat.c (store_regs): Likewise.
10227 * arm-nbsd-nat.c (store_fp_register): Likewise.
10228 * arm-nbsd-nat.c (store_fp_regs): Likewise.
10229
10230 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10231
10232 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
10233 nbsd_nat_target instead of inf_ptrace_target.
10234 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
10235 nbsd_nat_target.
10236
10237 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10238
10239 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
10240 it to the ptrace call.
10241 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
10242
10243 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10244
10245 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
10246 it to the ptrace call.
10247 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
10248
10249 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10250
10251 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
10252 gdb_byte *.
10253 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
10254
10255 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10256
10257 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
10258 instead of inf_ptrace_target.
10259 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
10260 nbsd_nat_target.
10261
10262 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10263
10264 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10265 register_t.
10266
10267 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10268
10269 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10270 register_t.
10271
10272 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10273
10274 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
10275 register_t.
10276
10277 2020-03-13 Tom Tromey <tom@tromey.com>
10278
10279 * value.h (val_print): Don't declare.
10280 * valprint.h (val_print_array_elements)
10281 (val_print_scalar_formatted, generic_val_print): Don't declare.
10282 * valprint.c (generic_val_print_array): Take a struct value.
10283 (generic_val_print_ptr, generic_val_print_memberptr)
10284 (generic_val_print_bool, generic_val_print_int)
10285 (generic_val_print_char, generic_val_print_complex)
10286 (generic_val_print): Remove.
10287 (generic_value_print): Update.
10288 (do_val_print): Remove unused parameters. Don't call
10289 la_val_print.
10290 (val_print): Remove.
10291 (common_val_print): Update. Don't call value_check_printable.
10292 (val_print_scalar_formatted, val_print_array_elements): Remove.
10293 * rust-lang.c (rust_val_print): Remove.
10294 (rust_language_defn): Update.
10295 * p-valprint.c (pascal_val_print): Remove.
10296 (pascal_value_print_inner): Update.
10297 (pascal_object_print_val_fields, pascal_object_print_val):
10298 Remove.
10299 (pascal_object_print_static_field): Update.
10300 * p-lang.h (pascal_val_print): Don't declare.
10301 * p-lang.c (pascal_language_defn): Update.
10302 * opencl-lang.c (opencl_language_defn): Update.
10303 * objc-lang.c (objc_language_defn): Update.
10304 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
10305 * m2-lang.h (m2_val_print): Don't declare.
10306 * m2-lang.c (m2_language_defn): Update.
10307 * language.h (struct language_defn) <la_val_print>: Remove.
10308 * language.c (unk_lang_value_print_inner): Rename. Change
10309 argument types.
10310 (unknown_language_defn, auto_language_defn): Update.
10311 * go-valprint.c (go_val_print): Remove.
10312 * go-lang.h (go_val_print): Don't declare.
10313 * go-lang.c (go_language_defn): Update.
10314 * f-valprint.c (f_val_print): Remove.
10315 * f-lang.h (f_value_print): Don't declare.
10316 * f-lang.c (f_language_defn): Update.
10317 * d-valprint.c (d_val_print): Remove.
10318 * d-lang.h (d_value_print): Don't declare.
10319 * d-lang.c (d_language_defn): Update.
10320 * cp-valprint.c (cp_print_value_fields)
10321 (cp_print_value_fields_rtti, cp_print_value): Remove.
10322 (cp_print_static_field): Update.
10323 * c-valprint.c (c_val_print_array, c_val_print_ptr)
10324 (c_val_print_struct, c_val_print_union, c_val_print_int)
10325 (c_val_print_memberptr, c_val_print): Remove.
10326 * c-lang.h (c_val_print_array, cp_print_value_fields)
10327 (cp_print_value_fields_rtti): Don't declare.
10328 * c-lang.c (c_language_defn, cplus_language_defn)
10329 (asm_language_defn, minimal_language_defn): Update.
10330 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
10331 (ada_val_print_enum): Take a struct value.
10332 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
10333 (ada_val_print): Remove.
10334 (ada_value_print_1): Update.
10335 (printable_val_type): Remove.
10336 * ada-lang.h (ada_val_print): Don't declare.
10337 * ada-lang.c (ada_language_defn): Update.
10338
10339 2020-03-13 Tom Tromey <tom@tromey.com>
10340
10341 * valprint.c (do_val_print): Update.
10342 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
10343 a struct value.
10344 (value_to_value_object_no_release): Declare.
10345 * python/py-value.c (value_to_value_object_no_release): New
10346 function.
10347 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
10348 struct value.
10349 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
10350 function.
10351 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
10352 a struct value.
10353 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
10354 Declare.
10355 (gdbscm_apply_val_pretty_printer): Take a struct value.
10356 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
10357 value.
10358 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
10359 value.
10360 * extension-priv.h (struct extension_language_ops)
10361 <apply_val_pretty_printer>: Take a struct value.
10362 * cp-valprint.c (cp_print_value): Create a struct value.
10363 (cp_print_value): Update.
10364
10365 2020-03-13 Tom Tromey <tom@tromey.com>
10366
10367 * ada-valprint.c (print_field_values): Call common_val_print.
10368
10369 2020-03-13 Tom Tromey <tom@tromey.com>
10370
10371 * ada-valprint.c (val_print_packed_array_elements): Remove
10372 bitoffset and val parameters. Call common_val_print.
10373 (ada_val_print_string): Remove offset, address, and original_value
10374 parameters.
10375 (ada_val_print_array): Update.
10376 (ada_value_print_array): New function.
10377 (ada_value_print_1): Call it.
10378
10379 2020-03-13 Tom Tromey <tom@tromey.com>
10380
10381 * ada-valprint.c (ada_value_print): Use common_val_print.
10382
10383 2020-03-13 Tom Tromey <tom@tromey.com>
10384
10385 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
10386
10387 2020-03-13 Tom Tromey <tom@tromey.com>
10388
10389 * ada-valprint.c (ada_value_print_num): New function.
10390 (ada_value_print_1): Use it.
10391
10392 2020-03-13 Tom Tromey <tom@tromey.com>
10393
10394 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
10395
10396 2020-03-13 Tom Tromey <tom@tromey.com>
10397
10398 * ada-valprint.c (ada_value_print_ptr): New function.
10399 (ada_value_print_1): Use it.
10400
10401 2020-03-13 Tom Tromey <tom@tromey.com>
10402
10403 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
10404 call common_val_print.
10405 (ada_val_print_1): Update.
10406 (ada_value_print_1): New function.
10407 (ada_value_print_inner): Rewrite.
10408
10409 2020-03-13 Tom Tromey <tom@tromey.com>
10410
10411 * cp-valprint.c (cp_print_value_fields): Update.
10412 (cp_print_value): New function.
10413
10414 2020-03-13 Tom Tromey <tom@tromey.com>
10415
10416 * m2-valprint.c (m2_value_print_inner): Use
10417 cp_print_value_fields.
10418 * cp-valprint.c (cp_print_value_fields): New function.
10419 * c-valprint.c (c_value_print_struct): New function.
10420 (c_value_print_inner): Use c_value_print_struct.
10421 * c-lang.h (cp_print_value_fields): Declare.
10422
10423 2020-03-13 Tom Tromey <tom@tromey.com>
10424
10425 * c-valprint.c (c_value_print_array): New function.
10426 (c_value_print_inner): Use it.
10427
10428 2020-03-13 Tom Tromey <tom@tromey.com>
10429
10430 * c-valprint.c (c_value_print_memberptr): New function.
10431 (c_value_print_inner): Use it.
10432
10433 2020-03-13 Tom Tromey <tom@tromey.com>
10434
10435 * c-valprint.c (c_value_print_int): New function.
10436 (c_value_print_inner): Use it.
10437
10438 2020-03-13 Tom Tromey <tom@tromey.com>
10439
10440 * c-valprint.c (c_value_print_ptr): New function.
10441 (c_value_print_inner): Use it.
10442
10443 2020-03-13 Tom Tromey <tom@tromey.com>
10444
10445 * c-valprint.c (c_value_print_inner): Rewrite.
10446
10447 2020-03-13 Tom Tromey <tom@tromey.com>
10448
10449 * valprint.c (generic_value_print_complex): New function.
10450 (generic_value_print): Use it.
10451
10452 2020-03-13 Tom Tromey <tom@tromey.com>
10453
10454 * valprint.c (generic_val_print_float): Don't call
10455 val_print_scalar_formatted.
10456 (generic_val_print, generic_value_print): Update.
10457
10458 2020-03-13 Tom Tromey <tom@tromey.com>
10459
10460 * valprint.c (generic_value_print_char): New function
10461 (generic_value_print): Use it.
10462
10463 2020-03-13 Tom Tromey <tom@tromey.com>
10464
10465 * valprint.c (generic_value_print_int): New function.
10466 (generic_value_print): Use it.
10467
10468 2020-03-13 Tom Tromey <tom@tromey.com>
10469
10470 * valprint.c (generic_value_print_bool): New function.
10471 (generic_value_print): Use it.
10472
10473 2020-03-13 Tom Tromey <tom@tromey.com>
10474
10475 * valprint.c (generic_val_print_func): Simplify.
10476 (generic_val_print, generic_value_print): Update.
10477
10478 2020-03-13 Tom Tromey <tom@tromey.com>
10479
10480 * valprint.c (generic_val_print_flags): Remove.
10481 (generic_val_print, generic_value_print): Update.
10482 (val_print_type_code_flags): Add original_value parameter.
10483
10484 2020-03-13 Tom Tromey <tom@tromey.com>
10485
10486 * valprint.c (generic_val_print): Update.
10487 (generic_value_print): Update.
10488 * valprint.c (generic_val_print_enum): Don't call
10489 val_print_scalar_formatted.
10490
10491 2020-03-13 Tom Tromey <tom@tromey.com>
10492
10493 * valprint.c (generic_value_print): Call generic_value_print_ptr.
10494 * valprint.c (generic_value_print_ptr): New function.
10495
10496 2020-03-13 Tom Tromey <tom@tromey.com>
10497
10498 * valprint.c (generic_value_print): Rewrite.
10499
10500 2020-03-13 Tom Tromey <tom@tromey.com>
10501
10502 * p-valprint.c (pascal_object_print_value_fields)
10503 (pascal_object_print_value): New functions.
10504
10505 2020-03-13 Tom Tromey <tom@tromey.com>
10506
10507 * p-valprint.c (pascal_value_print_inner): Rewrite.
10508
10509 2020-03-13 Tom Tromey <tom@tromey.com>
10510
10511 * f-valprint.c (f_value_print_innner): Rewrite.
10512
10513 2020-03-13 Tom Tromey <tom@tromey.com>
10514
10515 * m2-valprint.c (m2_print_unbounded_array): New overload.
10516 (m2_print_unbounded_array): Update.
10517 (m2_print_array_contents): Take a struct value.
10518 (m2_value_print_inner): Rewrite.
10519
10520 2020-03-13 Tom Tromey <tom@tromey.com>
10521
10522 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
10523 (d_value_print_inner): New function.
10524 * d-lang.h (d_value_print_inner): Declare.
10525 * d-lang.c (d_language_defn): Use d_value_print_inner.
10526
10527 2020-03-13 Tom Tromey <tom@tromey.com>
10528
10529 * go-valprint.c (go_value_print_inner): New function.
10530 * go-lang.h (go_value_print_inner): Declare.
10531 * go-lang.c (go_language_defn): Use go_value_print_inner.
10532
10533 2020-03-13 Tom Tromey <tom@tromey.com>
10534
10535 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
10536 API.
10537 (rust_val_print): Rewrite.
10538 (rust_value_print_inner): New function, from rust_val_print.
10539 (rust_language_defn): Use rust_value_print_inner.
10540
10541 2020-03-13 Tom Tromey <tom@tromey.com>
10542
10543 * ada-valprint.c (ada_value_print_inner): New function.
10544 * ada-lang.h (ada_value_print_inner): Declare.
10545 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
10546
10547 2020-03-13 Tom Tromey <tom@tromey.com>
10548
10549 * f-valprint.c (f_value_print_innner): New function.
10550 * f-lang.h (f_value_print_innner): Declare.
10551 * f-lang.c (f_language_defn): Use f_value_print_innner.
10552
10553 2020-03-13 Tom Tromey <tom@tromey.com>
10554
10555 * p-valprint.c (pascal_value_print_inner): New function.
10556 * p-lang.h (pascal_value_print_inner): Declare.
10557 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
10558
10559 2020-03-13 Tom Tromey <tom@tromey.com>
10560
10561 * m2-valprint.c (m2_value_print_inner): New function.
10562 * m2-lang.h (m2_value_print_inner): Declare.
10563 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
10564
10565 2020-03-13 Tom Tromey <tom@tromey.com>
10566
10567 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
10568 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
10569 * c-valprint.c (c_value_print_inner): New function.
10570 * c-lang.h (c_value_print_inner): Declare.
10571 * c-lang.c (c_language_defn, cplus_language_defn)
10572 (asm_language_defn, minimal_language_defn): Use
10573 c_value_print_inner.
10574
10575 2020-03-13 Tom Tromey <tom@tromey.com>
10576
10577 * p-valprint.c (pascal_object_print_value_fields): Now static.
10578 * p-lang.h (pascal_object_print_value_fields): Don't declare.
10579
10580 2020-03-13 Tom Tromey <tom@tromey.com>
10581
10582 * c-valprint.c (c_val_print_array): Simplify.
10583
10584 2020-03-13 Tom Tromey <tom@tromey.com>
10585
10586 * valprint.c (value_print_array_elements): New function.
10587 * valprint.h (value_print_array_elements): Declare.
10588
10589 2020-03-13 Tom Tromey <tom@tromey.com>
10590
10591 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
10592 * mips-tdep.c (mips_print_register): Use
10593 value_print_scalar_formatted.
10594
10595 2020-03-13 Tom Tromey <tom@tromey.com>
10596
10597 * valprint.h (value_print_scalar_formatted): Declare.
10598 * valprint.c (value_print_scalar_formatted): New function.
10599
10600 2020-03-13 Tom Tromey <tom@tromey.com>
10601
10602 * valprint.h (generic_value_print): Declare.
10603 * valprint.c (generic_value_print): New function.
10604
10605 2020-03-13 Tom Tromey <tom@tromey.com>
10606
10607 * valprint.c (do_val_print): Call la_value_print_inner, if
10608 available.
10609 * rust-lang.c (rust_language_defn): Update.
10610 * p-lang.c (pascal_language_defn): Update.
10611 * opencl-lang.c (opencl_language_defn): Update.
10612 * objc-lang.c (objc_language_defn): Update.
10613 * m2-lang.c (m2_language_defn): Update.
10614 * language.h (struct language_defn) <la_value_print_inner>: New
10615 member.
10616 * language.c (unknown_language_defn, auto_language_defn): Update.
10617 * go-lang.c (go_language_defn): Update.
10618 * f-lang.c (f_language_defn): Update.
10619 * d-lang.c (d_language_defn): Update.
10620 * c-lang.c (c_language_defn, cplus_language_defn)
10621 (asm_language_defn, minimal_language_defn): Update.
10622 * ada-lang.c (ada_language_defn): Update.
10623
10624 2020-03-13 Tom Tromey <tom@tromey.com>
10625
10626 * c-valprint.c (c_value_print): Use common_val_print.
10627
10628 2020-03-13 Tom Tromey <tom@tromey.com>
10629
10630 * cp-valprint.c (cp_print_static_field): Use common_val_print.
10631
10632 2020-03-13 Tom Tromey <tom@tromey.com>
10633
10634 * f-valprint.c (f77_print_array_1, f_val_print): Use
10635 common_val_print.
10636
10637 2020-03-13 Tom Tromey <tom@tromey.com>
10638
10639 * riscv-tdep.c (riscv_print_one_register_info): Use
10640 common_val_print.
10641
10642 2020-03-13 Tom Tromey <tom@tromey.com>
10643
10644 * mi/mi-main.c (output_register): Use common_val_print.
10645
10646 2020-03-13 Tom Tromey <tom@tromey.com>
10647
10648 * infcmd.c (default_print_one_register_info): Use
10649 common_val_print.
10650
10651 2020-03-13 Tom Tromey <tom@tromey.com>
10652
10653 * valprint.h (common_val_print_checked): Declare.
10654 * valprint.c (common_val_print_checked): New function.
10655 * stack.c (print_frame_arg): Use common_val_print_checked.
10656
10657 2020-03-13 Tom Tromey <tom@tromey.com>
10658
10659 * valprint.c (do_val_print): New function, from val_print.
10660 (val_print): Use do_val_print.
10661 (common_val_print): Use do_val_print.
10662
10663 2020-03-13 Tom Tromey <tom@tromey.com>
10664
10665 * valprint.c (value_print): Use scoped_value_mark.
10666
10667 2020-03-13 Tom de Vries <tdevries@suse.de>
10668
10669 PR symtab/25646
10670 * psymtab.c (partial_symtab::partial_symtab): Don't set
10671 globals_offset and statics_offset. Push element onto
10672 current_global_psymbols and current_static_psymbols stacks.
10673 (concat): New function.
10674 (end_psymtab_common): Set globals_offset and statics_offset. Pop
10675 element from current_global_psymbols and current_static_psymbols
10676 stacks. Concat popped elements to global_psymbols and
10677 static_symbols.
10678 (add_psymbol_to_list): Use current_global_psymbols and
10679 current_static_psymbols stacks.
10680 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
10681 current_static_psymbols fields.
10682
10683 2020-03-12 Christian Biesinger <cbiesinger@google.com>
10684
10685 * corelow.c (sniff_core_bfd): Remove.
10686 (class core_target) <m_core_vec>: Remove.
10687 (core_target::core_target): Update.
10688 (core_file_fns): Remove.
10689 (deprecated_add_core_fns): Remove.
10690 (default_core_sniffer): Remove.
10691 (sniff_core_bfd): Remove.
10692 (default_check_format): Remove.
10693 (gdb_check_format): Remove.
10694 (core_target_open): Update.
10695 (core_target::get_core_register_section): Update.
10696 (get_core_registers_cb): Update.
10697 (core_target::fetch_registers): Update.
10698 * gdbcore.h (struct core_fns): Remove.
10699 (deprecated_add_core_fns): Remove.
10700 (default_core_sniffer): Remove.
10701 (default_check_format): Remove.
10702
10703 2020-03-12 Tom Tromey <tom@tromey.com>
10704
10705 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
10706 CORE_ADDR.
10707 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
10708
10709 2020-03-12 Tom Tromey <tom@tromey.com>
10710
10711 * remote.c (remote_target::download_tracepoint)
10712 (remote_target::enable_tracepoint)
10713 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
10714 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
10715 sprintf_vma.
10716
10717 2020-03-12 Tom Tromey <tom@tromey.com>
10718
10719 * symfile-mem.c: Update CORE_ADDR size assert.
10720
10721 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
10722
10723 * selftest.m4: Move to gdbsupport/.
10724 * acinclude.m4: Update path to selftest.m4.
10725
10726 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
10727
10728 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
10729 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
10730 gdbarch-selfselftests.c and selftest-arch.c.
10731 (SUBDIR_UNITTESTS_OBS): Rename to...
10732 (SELFTESTS_OBS): ... this.
10733 (COMMON_SFILES): Remove disasm-selftests.c and
10734 gdbarch-selftests.c.
10735 * configure.ac: Don't add selftest-arch.{c,o} to
10736 CONFIG_{SRCS,OBS}.
10737 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
10738 preprocessor conditions.
10739
10740 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
10741
10742 * configure.ac: Don't source bfd/development.sh.
10743 * selftest.m4: Modify comment.
10744 * configure: Re-generate.
10745
10746 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
10747
10748 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
10749 not "true" or "false".
10750 * configure: Re-generate.
10751
10752 2020-03-12 Christian Biesinger <cbiesinger@google.com>
10753
10754 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
10755 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
10756 renamed to arm_nbsd_supply_gregset.
10757 (fetch_register): Update to call arm_nbsd_supply_gregset.
10758 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
10759 (arm_netbsd_nat_target::fetch_registers): Update.
10760 (fetch_elfcore_registers): Removed.
10761 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
10762 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
10763 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
10764 not require NetBSD system headers.
10765 (arm_nbsd_regset): New struct.
10766 (arm_nbsd_iterate_over_regset_sections): New function.
10767 (arm_netbsd_init_abi_common): Updated to call
10768 set_gdbarch_iterate_over_regset_sections.
10769 * arm-nbsd-tdep.h: New file.
10770
10771 2020-03-11 Kevin Buettner <kevinb@redhat.com>
10772
10773 * symtab.c (find_pc_sect_line): Add check which prevents infinite
10774 recursion.
10775
10776 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
10777
10778 * configure: Re-generate.
10779
10780 2020-03-11 Tom Tromey <tromey@adacore.com>
10781
10782 * ada-typeprint.c (print_choices): Fix comment.
10783
10784 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
10785
10786 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
10787 previous item in the list, when the list has no items.
10788
10789 2020-03-11 Tom de Vries <tdevries@suse.de>
10790
10791 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
10792 PROP_LOCLIST handling code.
10793
10794 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
10795
10796 * buildsym-legacy.c (record_line): Pass extra parameter to
10797 record_line.
10798 * buildsym.c (buildsym_compunit::record_line): Take an extra
10799 parameter, reduce duplication in the line table, and record the
10800 is_stmt flag in the line table.
10801 * buildsym.h (buildsym_compunit::record_line): Add extra
10802 parameter.
10803 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
10804 non-statement lines.
10805 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
10806 this to the symtab builder.
10807 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
10808 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
10809 through to dwarf_record_line_1.
10810 * infrun.c (process_event_stop_test): When stepping, don't stop at
10811 a non-statement instruction, and only refresh the step info when
10812 we land in the middle of a line's range. Also add an extra
10813 comment.
10814 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
10815 field.
10816 * record-btrace.c (btrace_find_line_range): Only record lines
10817 marked as is-statement.
10818 * stack.c (frame_show_address): Show the frame address if we are
10819 in a non-statement sal.
10820 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
10821 (maintenance_print_one_line_table): Print a header for the is_stmt
10822 column, and include is_stmt information in the output.
10823 * symtab.c (find_pc_sect_line): Find lines marked as statements in
10824 preference to non-statements.
10825 (find_pcs_for_symtab_line): Prefer is-statement entries.
10826 (find_line_common): Likewise.
10827 * symtab.h (struct linetable_entry): Add is_stmt field.
10828 (struct symtab_and_line): Likewise.
10829 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
10830 arranging the line table.
10831
10832 2020-03-07 Tom de Vries <tdevries@suse.de>
10833
10834 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
10835 DIE.
10836
10837 2020-03-07 Tom Tromey <tom@tromey.com>
10838
10839 * valops.c (value_literal_complex): Remove obsolete comment.
10840 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
10841 comment.
10842
10843 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
10844
10845 * infrun.h: Forward-declare thread_info.
10846 (set_step_info): Add thread_info parameter, add doc.
10847 * infrun.c (set_step_info): Add thread_info parameter, move doc
10848 to header.
10849 * infrun.c (process_event_stop_test): Pass thread to
10850 set_step_info call.
10851 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
10852 set_step_info.
10853 (prepare_one_step): Add thread_info parameter, pass it to
10854 set_step_frame and prepare_one_step (recursive) call.
10855 (step_1): Pass thread to prepare_one_step call.
10856 (step_command_fsm::should_stop): Pass thread to
10857 prepare_one_step.
10858 (until_next_fsm): Pass thread to set_step_frame call.
10859 (finish_command): Pass thread to set_step_info call.
10860
10861 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
10862
10863 * windows-tdep.c (windows_solib_create_inferior_hook):
10864 Check if inferior is running.
10865
10866 2020-03-06 Tom de Vries <tdevries@suse.de>
10867
10868 * NEWS: Fix "the the".
10869 * ctfread.c: Same.
10870
10871 2020-03-06 Tom de Vries <tdevries@suse.de>
10872
10873 * psymtab.c (psymtab_to_symtab): Don't print "done.".
10874
10875 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10876
10877 * .dir-locals.el: Add a comment referencing the other copies of
10878 this file.
10879
10880 2020-03-05 John Baldwin <jhb@FreeBSD.org>
10881
10882 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
10883 psargs.
10884
10885 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10886
10887 * .gitattributes: New file.
10888
10889 2020-03-04 Tom Tromey <tom@tromey.com>
10890
10891 * symmisc.c (print_symbol_bcache_statistics)
10892 (print_objfile_statistics): Update.
10893 * symfile.c (allocate_symtab): Use intern.
10894 * psymtab.c (partial_symtab::partial_symtab): Use intern.
10895 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
10896 macro_cache>: Remove.
10897 <string_cache>: New member.
10898 (struct objfile) <intern>: New methods.
10899 * elfread.c (elf_symtab_read): Use intern.
10900 * dwarf2/read.c (fixup_go_packaging): Intern package name.
10901 (dwarf2_compute_name, dwarf2_physname)
10902 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
10903 names.
10904 (guess_partial_die_structure_name): Update.
10905 (partial_die_info::fixup): Intern name.
10906 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
10907 name.
10908 (dwarf2_name): Intern name. Update.
10909 * buildsym.c (buildsym_compunit::get_macro_table): Use
10910 string_cache.
10911
10912 2020-03-04 Tom Tromey <tom@tromey.com>
10913
10914 * jit.c (bfd_open_from_target_memory): Make "target" const.
10915 * corefile.c (gnutarget): Now const.
10916 * gdbcore.h (gnutarget): Now const.
10917
10918 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
10919
10920 * NEWS: Mention support for WOW64 processes.
10921 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
10922 (amd64_windows_segment_register_p): Remove static.
10923 (_initialize_amd64_windows_nat): Update.
10924 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
10925 * i386-windows-nat.c (context_offset): Update.
10926 (i386_mappings): Rename and remove static.
10927 (i386_windows_segment_register_p): Remove static.
10928 (_initialize_i386_windows_nat): Update.
10929 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
10930 (STATUS_WX86_SINGLE_STEP): New macro.
10931 (EnumProcessModulesEx): New macro.
10932 (Wow64SuspendThread): New macro.
10933 (Wow64GetThreadContext): New macro.
10934 (Wow64SetThreadContext): New macro.
10935 (Wow64GetThreadSelectorEntry): New macro.
10936 (windows_set_context_register_offsets): Add static.
10937 (windows_set_segment_register_p): Likewise.
10938 (windows_add_thread): Adapt for WOW64 processes.
10939 (windows_fetch_one_register): Likewise.
10940 (windows_nat_target::fetch_registers): Likewise.
10941 (windows_store_one_register): Likewise.
10942 (display_selector): Likewise.
10943 (display_selectors): Likewise.
10944 (handle_exception): Likewise.
10945 (windows_continue): Likewise.
10946 (windows_nat_target::resume): Likewise.
10947 (windows_add_all_dlls): Likewise.
10948 (do_initial_windows_stuff): Likewise.
10949 (windows_nat_target::attach): Likewise.
10950 (windows_get_exec_module_filename): Likewise.
10951 (windows_nat_target::create_inferior): Likewise.
10952 (windows_xfer_siginfo): Likewise.
10953 (_initialize_loadable): Initialize Wow64SuspendThread,
10954 Wow64GetThreadContext, Wow64SetThreadContext,
10955 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
10956 * windows-nat.h (windows_set_context_register_offsets):
10957 Remove declaration.
10958 (windows_set_segment_register_p): Likewise.
10959 (i386_windows_segment_register_p): Add declaration.
10960 (amd64_windows_segment_register_p): Likewise.
10961
10962 2020-03-04 Luis Machado <luis.machado@linaro.org>
10963
10964 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
10965 in "info registers" for AArch64/ARM.
10966
10967 The change caused "info registers" to not print GPR's.
10968
10969 gdb/ChangeLog:
10970
10971 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
10972
10973 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10974 when reg->group is empty and reggroup is not.
10975
10976 2020-03-03 Tom Tromey <tromey@adacore.com>
10977
10978 * dwarf2/frame.c (struct dwarf2_frame_cache)
10979 <checked_tailcall_bottom, entry_cfa_sp_offset,
10980 entry_cfa_sp_offset_p>: Remove members.
10981 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
10982 (dwarf2_frame_prev_register): Don't call
10983 dwarf2_tailcall_sniffer_first.
10984 (dwarf2_append_unwinders): Don't append tailcall unwinder.
10985 * frame-unwind.c (add_unwinder): New fuction.
10986 (frame_unwind_init): Use it. Add tailcall unwinder.
10987
10988 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
10989 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10990
10991 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
10992 value should be printed as true.
10993
10994 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
10995
10996 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
10997 (windows_init_abi): Set and use windows_so_ops.
10998
10999 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
11000
11001 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
11002 when verifying if dealing with a convenience variable.
11003
11004 2020-03-03 Luis Machado <luis.machado@linaro.org>
11005
11006 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
11007
11008 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11009
11010 * infrun.c (gdbarch_supports_displaced_stepping): New.
11011 (use_displaced_stepping): Break up conditions in smaller pieces.
11012 Use gdbarch_supports_displaced_stepping.
11013 (displaced_step_prepare_throw): Use
11014 gdbarch_supports_displaced_stepping.
11015
11016 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
11017
11018 * NEWS: Mention new behaviour of the history filename.
11019 * top.c (write_history_p): Add comment.
11020 (show_write_history_p): Add header comment, give a different
11021 message when history writing is on, but the history filename is
11022 empty.
11023 (history_filename): Add comment.
11024 (history_filename_empty): New function.
11025 (show_history_filename): Add header comment, give a different
11026 message when the filename is empty.
11027 (init_history): Compare history_filename against nullptr, and only
11028 read history if the filename is not empty.
11029 (set_history_filename): Add header comment, and only make
11030 non-empty filenames absolute.
11031 (init_main): Make the filename argument to 'set history filename'
11032 optional.
11033
11034 2020-03-02 Christian Biesinger <cbiesinger@google.com>
11035
11036 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
11037 (arm_supply_vfpregset): ...this, and update to use VFP registers.
11038 (fetch_fp_register): Update.
11039 (fetch_fp_regs): Update.
11040 (store_fp_register): Update.
11041 (store_fp_regs): Update.
11042 (arm_netbsd_nat_target::read_description): New function.
11043 (fetch_elfcore_registers): Update.
11044
11045 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
11046
11047 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
11048 general_thread if the stop reply is missing a thread-id.
11049 (remote_target::process_stop_reply): Use the first non-exited
11050 thread if the target didn't pass a thread-id.
11051 * infrun.c (do_target_wait): Move call to
11052 switch_to_inferior_no_thread to ....
11053 (do_target_wait_1): ... here.
11054
11055 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
11056
11057 * debuginfod-support.c: Include defs.h first.
11058
11059 2020-02-28 Tom de Vries <tdevries@suse.de>
11060
11061 * symfile.c (set_initial_language): Use default language for lookup.
11062
11063 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
11064
11065 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
11066 reader variable, pass `this` to read_cutu_die_from_dwo.
11067
11068 2020-02-27 Aaron Merey <amerey@redhat.com>
11069
11070 * source.c (open_source_file): Check for nullptr when computing
11071 srcpath.
11072
11073 2020-02-27 Tom Tromey <tromey@adacore.com>
11074
11075 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
11076 member.
11077 (dwarf2_add_field): Don't update nfields.
11078 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
11079
11080 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11081
11082 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
11083 abs.
11084
11085 2020-02-26 Tom Tromey <tom@tromey.com>
11086
11087 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
11088 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
11089 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
11090 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
11091 per_cu_data.
11092
11093 2020-02-26 Tom Tromey <tom@tromey.com>
11094
11095 * dwarf2/index-write.c (psym_index_map): Change type.
11096 (add_address_entry_worker, write_one_signatured_type)
11097 (recursively_count_psymbols, recursively_write_psymbols)
11098 (class debug_names, psyms_seen_size, write_gdbindex)
11099 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
11100
11101 2020-02-26 Aaron Merey <amerey@redhat.com>
11102
11103 * Makefile.in: Handle optional debuginfod support.
11104 * NEWS: Update.
11105 * README: Add --with-debuginfod summary.
11106 * config.in: Regenerate.
11107 * configure: Regenerate.
11108 * configure.ac: Handle optional debuginfod support.
11109 * debuginfod-support.c: debuginfod helper functions.
11110 * debuginfod-support.h: Ditto.
11111 * doc/gdb.texinfo: Add --with-debuginfod to configure options
11112 summary.
11113 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
11114 when a dwz file cannot be found.
11115 * elfread.c (elf_symfile_read): Query debuginfod servers when a
11116 debuginfo file cannot be found.
11117 * source.c (open_source_file): Query debuginfod servers when a
11118 source file cannot be found.
11119 * top.c (print_gdb_configuration): Include
11120 --{with,without}-debuginfod in the output.
11121
11122 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
11123
11124 * thread.c (thr_try_catch_cmd): Print thread name.
11125
11126 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
11127
11128 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
11129 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
11130 dwarf2_fetch_die_type_sect_off): Move to...
11131 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
11132 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
11133 dwarf2_fetch_die_type_sect_off): ... here.
11134 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
11135 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
11136 dwarf2_fetch_die_type_sect_off): Move doc to header file.
11137
11138 2020-02-26 Tom de Vries <tdevries@suse.de>
11139
11140 PR gdb/25603
11141 * symfile.c (set_initial_language): Exit-early if
11142 language_mode == language_mode_manual.
11143
11144 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
11145
11146 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
11147 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
11148 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
11149
11150 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
11151
11152 * gdbtypes.c (create_array_type_with_stride): Handle negative
11153 array strides.
11154 * valarith.c (value_subscripted_rvalue): Likewise.
11155
11156 2020-02-25 Luis Machado <luis.machado@linaro.org>
11157
11158 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
11159
11160 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
11161
11162 * loc.h (dwarf2_get_die_type): Move to...
11163 * read.h (dwarf2_get_die_type): ... here.
11164 * read.c (dwarf2_get_die_type): Move doc to header.
11165
11166 2020-02-25 Joel Brobecker <brobecker@adacore.com>
11167
11168 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
11169 'gnulib/Makefile.in' to the list.
11170
11171 2020-02-24 Tom Tromey <tom@tromey.com>
11172
11173 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
11174 Remove.
11175 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
11176 XOBNEWVEC.
11177
11178 2020-02-24 Tom Tromey <tom@tromey.com>
11179
11180 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
11181 New method.
11182 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
11183 (dw2_do_instantiate_symtab, dw2_get_file_names)
11184 (build_type_psymtab_dependencies, load_full_type_unit): Update.
11185
11186 2020-02-24 Tom Tromey <tom@tromey.com>
11187
11188 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
11189 make_scoped_restore.
11190 (dwarf2_psymtab::read_symtab): Don't clear
11191 reading_partial_symbols.
11192
11193 2020-02-24 Tom de Vries <tdevries@suse.de>
11194
11195 PR gdb/25592
11196 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
11197
11198 2020-02-24 Tom de Vries <tdevries@suse.de>
11199
11200 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
11201 commands layout next/prev/regs.
11202
11203 2020-02-22 Tom Tromey <tom@tromey.com>
11204
11205 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
11206 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
11207
11208 2020-02-22 Tom Tromey <tom@tromey.com>
11209
11210 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
11211
11212 2020-02-22 Tom Tromey <tom@tromey.com>
11213
11214 * tui/tui-win.c (_initialize_tui_win): Add usage text.
11215 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
11216 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
11217 * tui/tui.c (_initialize_tui): Add usage text.
11218
11219 2020-02-22 Tom Tromey <tom@tromey.com>
11220
11221 * tui/tui-win.c (tui_set_focus_command)
11222 (tui_set_win_height_command): Use error_no_arg.
11223 (_initialize_tui_win): Update help text.
11224 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
11225
11226 2020-02-22 Tom Tromey <tom@tromey.com>
11227
11228 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
11229 * tui/tui-disasm.h (struct tui_disasm_window)
11230 <display_start_addr>: Declare.
11231 * tui/tui-source.h (struct tui_source_window)
11232 <display_start_addr>: Declare.
11233 * tui/tui-winsource.h (struct tui_source_window_base)
11234 <show_source_line, display_start_addr>: New methods.
11235 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
11236 Rename and move to protected section.
11237 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
11238 (tui_source_window_base::do_erase_source_content): Update.
11239 (tui_source_window_base::show_source_line): Now a method.
11240 (tui_source_window_base::show_source_content)
11241 (tui_source_window_base::tui_source_window_base)
11242 (tui_source_window_base::rerender)
11243 (tui_source_window_base::refill)
11244 (tui_source_window_base::do_scroll_horizontal)
11245 (tui_source_window_base::set_is_exec_point_at)
11246 (tui_source_window_base::update_breakpoint_info)
11247 (tui_source_window_base::update_exec_info): Update.
11248 * tui/tui-source.c (tui_source_window::set_contents)
11249 (tui_source_window::showing_source_p)
11250 (tui_source_window::do_scroll_vertical)
11251 (tui_source_window::location_matches_p)
11252 (tui_source_window::line_is_displayed): Update.
11253 (tui_source_window::display_start_addr): New method.
11254 * tui/tui-disasm.c (tui_disasm_window::set_contents)
11255 (tui_disasm_window::do_scroll_vertical)
11256 (tui_disasm_window::location_matches_p): Update.
11257 (tui_disasm_window::display_start_addr): New method.
11258
11259 2020-02-22 Tom Tromey <tom@tromey.com>
11260
11261 * NEWS: Add entry for gdb.register_window_type.
11262 * tui/tui-layout.h (window_factory): New typedef.
11263 (tui_register_window): Declare.
11264 * tui/tui-layout.c (saved_tui_windows): New global.
11265 (tui_apply_current_layout): Use it.
11266 (tui_register_window): New function.
11267 * python/python.c (do_start_initialization): Call
11268 gdbpy_initialize_tui.
11269 (python_GdbMethods): Add "register_window_type" function.
11270 * python/python-internal.h (gdbpy_register_tui_window)
11271 (gdbpy_initialize_tui): Declare.
11272 * python/py-tui.c: New file.
11273 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
11274
11275 2020-02-22 Tom Tromey <tom@tromey.com>
11276
11277 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
11278
11279 2020-02-22 Tom Tromey <tom@tromey.com>
11280
11281 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
11282 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
11283 * tui/tui-data.c (tui_set_win_with_focus): Remove.
11284 (tui_set_win_focus_to): Move from tui-win.c.
11285
11286 2020-02-22 Tom Tromey <tom@tromey.com>
11287
11288 * tui/tui-layout.c (make_standard_window, get_locator_window): New
11289 functions.
11290 (known_window_types): New global.
11291 (tui_get_window_by_name): Reimplement.
11292 (initialize_known_windows): New function.
11293 (validate_window_name): Rewrite.
11294 (_initialize_tui_layout): Call initialize_known_windows.
11295
11296 2020-02-22 Tom Tromey <tom@tromey.com>
11297
11298 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
11299 Remove constants.
11300 * tui/tui-winsource.h (struct tui_source_window_base)
11301 <tui_source_window_base>: Remove parameter.
11302 * tui/tui-winsource.c
11303 (tui_source_window_base::tui_source_window_base): Remove
11304 parameter.
11305 (tui_source_window_base::refill): Update.
11306 * tui/tui-stack.h (struct tui_locator_window)
11307 <tui_locator_window>: Update.
11308 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
11309 Default the constructor.
11310 * tui/tui-regs.h (struct tui_data_item_window)
11311 <tui_data_item_window>: Default the constructor.
11312 (struct tui_data_window) <tui_data_window>: Likewise.
11313 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
11314 Default the constructor.
11315 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
11316 Default the constructor.
11317 <type>: Remove.
11318 (struct tui_win_info) <tui_win_info>: Default the constructor.
11319 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
11320 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
11321 Default the constructor.
11322
11323 2020-02-22 Tom Tromey <tom@tromey.com>
11324
11325 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
11326 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
11327 * tui/tui-win.c (tui_resize_all): Don't call
11328 tui_delete_invisible_windows.
11329 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
11330 done.
11331 (tui_set_layout): Update.
11332 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
11333 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
11334 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
11335
11336 2020-02-22 Tom Tromey <tom@tromey.com>
11337
11338 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
11339 correctly.
11340
11341 2020-02-22 Tom Tromey <tom@tromey.com>
11342
11343 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
11344
11345 2020-02-22 Tom Tromey <tom@tromey.com>
11346
11347 * tui/tui-winsource.h (struct tui_source_window_iterator)
11348 <inner_iterator>: New etytypedef.
11349 <tui_source_window_iterator>: Take "end" parameter.
11350 <tui_source_window_iterator>: Take iterator.
11351 <operator*, advance>: Update.
11352 <m_iter>: Change type.
11353 <m_end>: New field.
11354 (struct tui_source_windows) <begin, end>: Update.
11355 * tui/tui-layout.c (tui_windows): New global.
11356 (tui_apply_current_layout): Clear tui_windows.
11357 (tui_layout_window::apply): Update tui_windows.
11358 * tui/tui-data.h (tui_windows): Declare.
11359 (all_tui_windows): Now inline function.
11360 (class tui_window_iterator, struct all_tui_windows): Remove.
11361
11362 2020-02-22 Tom Tromey <tom@tromey.com>
11363
11364 PR tui/17850:
11365 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
11366 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
11367 "height" argument.
11368 (class tui_layout_window) <get_sizes>: Likewise.
11369 (class tui_layout_split) <tui_layout_split>: Add "vertical"
11370 argument.
11371 <get_sizes>: Add "height" argument.
11372 <m_vertical>: New field.
11373 * tui/tui-layout.c (tui_layout_split::clone): Update.
11374 (tui_layout_split::get_sizes): Add "height" argument.
11375 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
11376 (tui_new_layout_command): Parse "-horizontal".
11377 (_initialize_tui_layout): Update help string.
11378 (tui_layout_split::specification): Add "-horizontal" when needed.
11379 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
11380 argument.
11381 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
11382 New methods.
11383
11384 2020-02-22 Tom Tromey <tom@tromey.com>
11385
11386 * tui/tui-layout.h (enum tui_adjust_result): New.
11387 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
11388 (class tui_layout_window) <adjust_size>: Return
11389 tui_adjust_result. Rewrite.
11390 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
11391 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
11392
11393 2020-02-22 Tom Tromey <tom@tromey.com>
11394
11395 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
11396 parameter and return types.
11397 (class tui_layout_base) <specification>: Add "depth".
11398 (class tui_layout_window) <specification>: Add "depth".
11399 (class tui_layout_split) <specification>: Add "depth".
11400 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
11401 and return types.
11402 (tui_new_layout_command): Parse sub-layouts.
11403 (_initialize_tui_layout): Update help string.
11404 (tui_layout_window::specification): Add "depth".
11405 (add_layout_command): Update.
11406
11407 2020-02-22 Tom Tromey <tom@tromey.com>
11408
11409 * NEWS: Add "tui new-layout" item.
11410 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
11411 Add new-layout command to help text.
11412 (validate_window_name): New function.
11413 (tui_new_layout_command): New function.
11414 (_initialize_tui_layout): Register "new-layout".
11415 (tui_layout_window::specification): New method.
11416 (tui_layout_window::specification): New method.
11417 * tui/tui-layout.h (class tui_layout_base) <specification>: New
11418 method.
11419 (class tui_layout_window) <specification>: New method.
11420 (class tui_layout_split) <specification>: New method.
11421
11422 2020-02-22 Tom Tromey <tom@tromey.com>
11423
11424 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
11425 * tui/tui-win.c (window_name_completer): Update comment.
11426 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
11427 Declare method.
11428 (class tui_layout_window) <replace_window>: Likewise.
11429 (class tui_layout_split) <replace_window>: Likewise.
11430 (tui_set_layout): Don't declare.
11431 (tui_set_initial_layout): Declare function.
11432 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
11433 (asm_regs_layout): New globals.
11434 (tui_current_layout, show_layout): Remove.
11435 (tui_set_layout, tui_add_win_to_layout): Rewrite.
11436 (find_layout, tui_apply_layout): New function.
11437 (layout_completer): Remove.
11438 (tui_next_layout): Reimplement.
11439 (tui_next_layout_command): New function.
11440 (tui_set_initial_layout, tui_prev_layout_command): New functions.
11441 (tui_regs_layout): Reimplement.
11442 (tui_regs_layout_command): New function.
11443 (extract_display_start_addr): Rewrite.
11444 (next_layout, prev_layout): Remove.
11445 (tui_layout_window::replace_window): New method.
11446 (tui_layout_split::replace_window): New method.
11447 (destroy_layout): New function.
11448 (layout_list): New global.
11449 (add_layout_command): New function.
11450 (initialize_layouts): Update.
11451 (tui_layout_command): New function.
11452 (_initialize_tui_layout): Install "layout" commands.
11453 * tui/tui-data.h (enum tui_layout_type): Remove.
11454 (tui_current_layout): Don't declare.
11455
11456 2020-02-22 Tom Tromey <tom@tromey.com>
11457
11458 * tui/tui-regs.c (tui_reg_layout): Remove.
11459 (tui_reg_command): Use tui_regs_layout.
11460 * tui/tui-layout.h (tui_reg_command): Declare.
11461 * tui/tui-layout.c (tui_reg_command): New function.
11462
11463 2020-02-22 Tom Tromey <tom@tromey.com>
11464
11465 * tui/tui.c (tui_rl_delete_other_windows): Call
11466 tui_remove_some_windows.
11467 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
11468 Declare method.
11469 (class tui_layout_window) <remove_windows>: New method.
11470 (class tui_layout_split) <remove_windows>: Declare.
11471 (tui_remove_some_windows): Declare.
11472 * tui/tui-layout.c (tui_remove_some_windows): New function.
11473 (tui_layout_split::remove_windows): New method.
11474
11475 2020-02-22 Tom Tromey <tom@tromey.com>
11476
11477 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
11478 * tui/tui-layout.h (tui_next_layout): Declare.
11479 * tui/tui-layout.c (tui_next_layout): New function.
11480
11481 2020-02-22 Tom Tromey <tom@tromey.com>
11482
11483 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
11484 correct coordinates.
11485
11486 2020-02-22 Tom Tromey <tom@tromey.com>
11487
11488 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
11489 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
11490 DATA_WIN case.
11491
11492 2020-02-22 Tom Tromey <tom@tromey.com>
11493
11494 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
11495 TUI_DISASM_WIN, not tui_win_list.
11496
11497 2020-02-22 Tom Tromey <tom@tromey.com>
11498
11499 * valprint.c (generic_val_print_enum_1)
11500 (val_print_type_code_flags): Style member names.
11501 * rust-lang.c (val_print_struct, rust_print_enum)
11502 (rust_print_struct_def, rust_internal_print_type): Style member
11503 names.
11504 * p-valprint.c (pascal_object_print_value_fields): Style member
11505 names. Only call fprintf_symbol_filtered for static members.
11506 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
11507 * f-valprint.c (f_val_print): Style member names.
11508 * f-typeprint.c (f_type_print_base): Style member names.
11509 * cp-valprint.c (cp_print_value_fields): Style member names. Only
11510 call fprintf_symbol_filtered for static members.
11511 (cp_print_class_member): Style member names.
11512 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
11513 member names.
11514 * ada-valprint.c (ada_print_scalar): Style enum names.
11515 (ada_val_print_enum): Likewise.
11516 * ada-typeprint.c (print_enum_type): Style enum names.
11517
11518 2020-02-21 Tom Tromey <tom@tromey.com>
11519
11520 * psympriv.h (struct partial_symtab): Update comment.
11521
11522 2020-02-21 Tom Tromey <tromey@adacore.com>
11523
11524 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
11525 type is CORE_ADDR.
11526
11527 2020-02-21 Tom de Vries <tdevries@suse.de>
11528
11529 PR gdb/25534
11530 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
11531 if dependencies[i]->user != NULL.
11532
11533 2020-02-21 Ali Tamur <tamur@google.com>
11534
11535 * dwarf2/read.c (dwarf2_name): Add null check.
11536
11537 2020-02-20 Tom Tromey <tom@tromey.com>
11538
11539 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
11540 ">=", in binary search.
11541 (dwarf2_find_containing_comp_unit): New overload.
11542 (run_test): New self-test.
11543 (_initialize_dwarf2_read): Register new test.
11544
11545 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
11546
11547 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
11548 * riscv-tdep.h: Likewise.
11549 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
11550 rv32-only CSR.
11551 * features/riscv/64bit-csr.xml: Regenerated.
11552
11553 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
11554 Tom Tromey <tom@tromey.com>
11555
11556 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
11557 of 'fputc_unfiltered'.
11558 (putchar_unfiltered): Call 'fputc_unfiltered'.
11559 (fputc_unfiltered): Call 'fputs_unfiltered'.
11560
11561 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
11562
11563 * config.in: Regenerate.
11564 * configure: Regenerate.
11565 * configure.ac: Add --with-python-libdir option.
11566 * main.c: Use WITH_PYTHON_LIBDIR.
11567
11568 2020-02-19 Tom Tromey <tom@tromey.com>
11569
11570 * symtab.c (general_symbol_info::compute_and_set_names): Use
11571 obstack_strndup. Simplify call to symbol_set_demangled_name.
11572
11573 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
11574
11575 * dwarf2/read.c (allocate_signatured_type_table,
11576 allocate_dwo_unit_table, allocate_type_unit_groups_table,
11577 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
11578 Remove objfile parameter, update all callers.
11579
11580 2020-02-19 Doug Evans <dje@google.com>
11581
11582 PR rust/25535
11583 * rust-lang.c (rust_print_enum): Apply embedded_offset to
11584 rust_enum_variant calculation.
11585
11586 2020-02-19 Tom Tromey <tromey@adacore.com>
11587
11588 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
11589
11590 2020-02-19 Tom Tromey <tromey@adacore.com>
11591
11592 * ada-lang.c (cache_symbol): Use obstack_strdup.
11593
11594 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
11595
11596 * configure: Regenerate.
11597
11598 2020-02-19 Tom Tromey <tromey@adacore.com>
11599
11600 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
11601 NULL check.
11602
11603 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
11604
11605 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
11606
11607 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
11608
11609 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
11610 if GDBSERVER is not defined.
11611 (riscv_tdesc_cache): Likewise, also store const target_desc.
11612 (STATIC_IN_GDB): Define.
11613 (riscv_create_target_description): Update declaration with
11614 STATIC_IN_GDB.
11615 (riscv_lookup_target_description): New function, only define if
11616 GDBSERVER is not defined.
11617 * arch/riscv.h (riscv_create_target_description): Declare only
11618 when GDBSERVER is defined.
11619 (riscv_lookup_target_description): New declaration when GDBSERVER
11620 is not defined.
11621 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
11622 (riscv_linux_read_features): ...this, and return
11623 riscv_gdbarch_features instead of target_desc.
11624 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
11625 (riscv_linux_read_description): Rename to...
11626 (riscv_linux_read_features): ...this.
11627 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
11628 Update to use riscv_gdbarch_features and
11629 riscv_lookup_target_description.
11630 * riscv-tdep.c (riscv_find_default_target_description): Use
11631 riscv_lookup_target_description instead of
11632 riscv_create_target_description.
11633
11634 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
11635
11636 * valprint.c (generic_val_print_enum_1): When printing a flag
11637 enum with value 0 and there is no enumerator with value 0, print
11638 just "0" instead of "(unknown: 0x0)".
11639
11640 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
11641
11642 * valprint.c (generic_val_print_enum_1): Print unknown part of
11643 flag enum in hex.
11644
11645 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
11646
11647 * dwarf2/read.c (update_enumeration_type_from_children): Allow
11648 flag enums to contain duplicate enumerators.
11649 * valprint.c (generic_val_print_enum_1): Update comment.
11650
11651 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
11652
11653 * dwarf2/read.c: Include "count-one-bits.h".
11654 (update_enumeration_type_from_children): If an enumerator has
11655 multiple bits set, don't treat the enumeration as a "flag enum".
11656 * valprint.c (generic_val_print_enum_1): Assert that enumerators
11657 of flag enums have 0 or 1 bit set.
11658
11659 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
11660
11661 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
11662 conversion.
11663 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11664 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
11665 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11666 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
11667 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11668
11669 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
11670
11671 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
11672
11673 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
11674
11675 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
11676 displaced_step_closure_up.
11677 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
11678 (struct displaced_step_closure_up):
11679 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11680 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
11681 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
11682 Likewise.
11683 * gdbarch.sh (displaced_step_copy_insn): Likewise.
11684 * gdbarch.c, gdbarch.h: Re-generate.
11685 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
11686 displaced_step_closure_up.
11687 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11688 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
11689 * infrun.h (displaced_step_closure_up): New type alias.
11690 (struct displaced_step_inferior_state) <step_closure>: Change
11691 type to displaced_step_closure_up.
11692 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
11693 displaced_step_closure_up.
11694 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11695
11696 2020-02-14 Tom Tromey <tom@tromey.com>
11697
11698 * minidebug.c (gnu_debug_key): New global.
11699 (find_separate_debug_file_in_section): Use it.
11700
11701 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
11702
11703 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
11704 std::unique_ptr.
11705 * gdbarch.c: Re-generate.
11706 * gdbarch.h: Re-generate.
11707 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
11708 change.
11709 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
11710 type to std::unique_ptr.
11711 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
11712 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11713 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
11714 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
11715 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
11716 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11717 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
11718 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
11719 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11720
11721 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
11722
11723 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
11724 std::unique_ptr.
11725 (displaced_step_clear): Rename to...
11726 (displaced_step_reset): ... this. Just call displaced->reset ().
11727 (displaced_step_clear_cleanup): Rename to...
11728 (displaced_step_reset_cleanup): ... this.
11729 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
11730 (displaced_step_fixup): Likewise.
11731 (resume_1): Likewise.
11732 (handle_inferior_event): Restore child's memory before calling
11733 displaced_step_fixup on the parent.
11734 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
11735 to std::unique_ptr.
11736 <step_closure>: Change type to std::unique_ptr.
11737
11738 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
11739
11740 * arm-tdep.c: Include count-one-bits.h.
11741 (cleanup_block_store_pc): Use count_one_bits.
11742 (cleanup_block_load_pc): Use count_one_bits.
11743 (arm_copy_block_xfer): Use count_one_bits.
11744 (thumb2_copy_block_xfer): Use count_one_bits.
11745 (thumb_copy_pop_pc_16bit): Use count_one_bits.
11746 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
11747 (thumb_get_next_pcs_raw): Use count_one_bits.
11748 (arm_get_next_pcs_raw): Use count_one_bits_l.
11749 * arch/arm.c (bitcount): Remove.
11750 * arch/arm.h (bitcount): Remove.
11751
11752 2020-02-14 Tom Tromey <tromey@adacore.com>
11753
11754 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
11755 Update.
11756 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
11757 * dwarf2/loc.c (call_site_find_chain_1): Return
11758 unique_xmalloc_ptr.
11759 (call_site_find_chain): Likewise.
11760
11761 2020-02-14 Richard Biener <rguenther@suse.de>
11762
11763 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
11764 on expression with division operators.
11765
11766 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11767
11768 * MAINTAINERS (Write After Approval): Adding myself.
11769
11770 2020-02-12 Tom Tromey <tom@tromey.com>
11771
11772 * event-loop.c (event_data, gdb_event, event_handler_func):
11773 Remove.
11774
11775 2020-02-12 Tom Tromey <tom@tromey.com>
11776
11777 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
11778 (dwarf2_frame_objfile_data): Add comment.
11779 (find_comp_unit, set_comp_unit): New functions.
11780 (dwarf2_frame_find_fde): Use find_comp_unit.
11781 (dwarf2_build_frame_info): Use set_comp_unit.
11782
11783 2020-02-12 Tom Tromey <tom@tromey.com>
11784
11785 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
11786 (comp_unit): Don't initialize objfile.
11787 (execute_cfa_program): Add text_offset parameter.
11788 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
11789 (dwarf2_frame_cache): Update.
11790 (dwarf2_build_frame_info): Don't set "objfile" member.
11791
11792 2020-02-12 Tom Tromey <tom@tromey.com>
11793
11794 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
11795 (decode_frame_entry): Likewise.
11796 (dwarf2_build_frame_info): Update.
11797
11798 2020-02-12 Tom Tromey <tom@tromey.com>
11799
11800 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
11801 (decode_frame_entry_1): Use the comp_unit obstack.
11802
11803 2020-02-12 Tom Tromey <tom@tromey.com>
11804
11805 * dwarf2/frame.c (struct comp_unit): Add initializers and
11806 constructor.
11807 (dwarf2_frame_objfile_data): Store a comp_unit.
11808 (dwarf2_frame_find_fde): Update.
11809 (dwarf2_build_frame_info): Use "new".
11810
11811 2020-02-12 Tom Tromey <tom@tromey.com>
11812
11813 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
11814 (dwarf2_fde_table): Typedef for std::vector.
11815 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
11816 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
11817 (decode_frame_entry): Update.
11818 (dwarf2_build_frame_info): Use "new".
11819
11820 2020-02-12 Christian Biesinger <cbiesinger@google.com>
11821
11822 * arm-tdep.c (arm_gdbarch_init): Update.
11823 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
11824 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
11825 have_neon, is_m>: Change to bool.
11826
11827 2020-02-12 Christian Biesinger <cbiesinger@google.com>
11828
11829 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
11830
11831 2020-02-12 Tom Tromey <tom@tromey.com>
11832
11833 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
11834
11835 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
11836
11837 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
11838 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
11839
11840 2020-02-11 Tom Tromey <tom@tromey.com>
11841
11842 * psymtab.h: Update comment.
11843
11844 2020-02-11 Tom Tromey <tom@tromey.com>
11845
11846 * gdb_obstack.h (struct auto_obstack): Use
11847 DISABLE_COPY_AND_ASSIGN.
11848
11849 2020-02-11 Tom Tromey <tom@tromey.com>
11850
11851 * dwarf2/frame.h (struct objfile): Don't forward declare.
11852
11853 2020-02-11 Christian Biesinger <cbiesinger@google.com>
11854
11855 * cris-tdep.c (cris_supply_gregset): Change signature to match
11856 what struct regset expects.
11857 (cris_regset): New struct.
11858 (fetch_core_registers): Remove.
11859 (cris_iterate_over_regset_sections): New function.
11860 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
11861 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
11862
11863 2020-02-11 Christian Biesinger <cbiesinger@google.com>
11864
11865 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
11866 registers.
11867
11868 2020-02-11 Christian Biesinger <cbiesinger@google.com>
11869
11870 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
11871
11872 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
11873
11874 * configure: Re-generate.
11875
11876 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
11877
11878 * configure: Re-generate.
11879
11880 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
11881
11882 * acinclude: Update warning.m4 path.
11883 * warning.m4: Move to gdbsupport.
11884
11885 2020-02-11 Tom Tromey <tromey@adacore.com>
11886
11887 * remote.c (remote_console_output): Update.
11888 * printcmd.c (printf_command): Update.
11889 * event-loop.c (gdb_wait_for_event): Update.
11890 * linux-nat.c (sigchld_handler): Update.
11891 * remote-sim.c (gdb_os_write_stdout): Update.
11892 (gdb_os_flush_stdout): Update.
11893 (gdb_os_flush_stderr): Update.
11894 (gdb_os_write_stderr): Update.
11895 * exceptions.c (print_exception): Update.
11896 * remote-fileio.c (remote_fileio_func_read): Update.
11897 (remote_fileio_func_write): Update.
11898 * tui/tui.c (tui_enable): Update.
11899 * tui/tui-interp.c (tui_interp::init): Update.
11900 * utils.c (init_page_info): Update.
11901 (putchar_unfiltered, fputc_unfiltered): Update.
11902 (gdb_flush): Update.
11903 (emit_style_escape): Update.
11904 (flush_wrap_buffer, fputs_maybe_filtered): Update.
11905 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
11906 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
11907 (stderr_file::write): Update.
11908 (stderr_file::puts): Update.
11909 * ui-file.h (ui_file_isatty, ui_file_write)
11910 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
11911 (ui_file_puts): Don't declare.
11912
11913 2020-02-10 Tom de Vries <tdevries@suse.de>
11914
11915 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
11916 sentinel to char *.
11917
11918 2020-02-09 Tom de Vries <tdevries@suse.de>
11919
11920 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
11921 filename if it matches "<artificial>".
11922
11923 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
11924
11925 * windows-tdep.c (struct enum_value_name): New struct.
11926 (create_enum): New function.
11927 (windows_get_siginfo_type): Create and use enum types.
11928
11929 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
11930
11931 * NEWS: Mention $_siginfo support for Windows.
11932 * windows-nat.c (handle_exception): Set siginfo_er.
11933 (windows_nat_target::mourn_inferior): Reset siginfo_er.
11934 (windows_xfer_siginfo): New function.
11935 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
11936 * windows-tdep.c (struct windows_gdbarch_data): New struct.
11937 (init_windows_gdbarch_data): New function.
11938 (get_windows_gdbarch_data): New function.
11939 (windows_get_siginfo_type): New function.
11940 (windows_init_abi): Register windows_get_siginfo_type.
11941 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
11942
11943 2020-02-08 Tom Tromey <tom@tromey.com>
11944
11945 * dwarf2/read.c (class cutu_reader) <cutu_reader,
11946 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
11947 <keep>: Declare method.
11948 <m_keep>: Remove member.
11949 <~cutu_reader>: Remove.
11950 (cutu_reader::init_tu_and_read_dwo_dies): Update.
11951 (cutu_reader::cutu_reader): Update.
11952 (cutu_reader::keep): Rename from ~cutu_reader.
11953 (process_psymtab_comp_unit, build_type_psymtabs_1)
11954 (process_skeletonless_type_unit, load_partial_comp_unit)
11955 (load_full_comp_unit, dwarf2_read_addr_index)
11956 (read_signatured_type): Update.
11957
11958 2020-02-08 Tom Tromey <tom@tromey.com>
11959
11960 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
11961 "want_partial_unit" parameter.
11962 (process_psymtab_comp_unit): Change want_partial_unit to bool.
11963 Inline check for DW_TAG_partial_unit.
11964 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
11965
11966 2020-02-08 Tom Tromey <tom@tromey.com>
11967
11968 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
11969 read.c.
11970 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
11971 read.c.
11972
11973 2020-02-08 Tom Tromey <tom@tromey.com>
11974
11975 * dwarf2/read.c (read_address): Move to comp-unit.c.
11976 (dwarf2_rnglists_process, dwarf2_ranges_process)
11977 (read_attribute_value, dwarf_decode_lines_1)
11978 (var_decode_location, decode_locdesc): Update.
11979 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
11980 read.c. Remove "cu" parameter.
11981 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
11982 method.
11983
11984 2020-02-08 Tom Tromey <tom@tromey.com>
11985
11986 * dwarf2/read.c (read_attribute_value, read_indirect_string)
11987 (read_indirect_line_string): Update.
11988 * dwarf2/comp-unit.c (read_offset): Remove.
11989 (read_comp_unit_head): Update.
11990 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
11991 method.
11992 (read_offset): Don't declare.
11993
11994 2020-02-08 Tom Tromey <tom@tromey.com>
11995
11996 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
11997 * dwarf2/read.c (struct comp_unit_head): Move to
11998 dwarf2/comp-unit.h.
11999 (enum class rcuh_kind): Move to comp-unit.h.
12000 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
12001 (read_comp_unit_head, error_check_comp_unit_head)
12002 (read_and_check_comp_unit_head): Move to comp-unit.c.
12003 (read_offset, dwarf_unit_type_name): Likewise.
12004 (create_debug_type_hash_table, read_cutu_die_from_dwo)
12005 (cutu_reader::cutu_reader, read_call_site_scope)
12006 (find_partial_die, follow_die_offset): Update.
12007 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
12008
12009 2020-02-08 Tom Tromey <tom@tromey.com>
12010
12011 * dwarf2/read.c (read_offset_1): Move to leb.c.
12012 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
12013 (dwarf_decode_macro_bytes): Update.
12014 * dwarf2/leb.c (read_offset): Rename; move from read.c.
12015 * dwarf2/leb.h (read_offset): Declare.
12016
12017 2020-02-08 Tom Tromey <tom@tromey.com>
12018
12019 * dwarf2/read.c (dwarf2_section_size): Remove.
12020 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
12021 Update.
12022 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
12023
12024 2020-02-08 Tom Tromey <tom@tromey.com>
12025
12026 * dwarf2/read.c (read_initial_length): Move to leb.c.
12027 * dwarf2/leb.h (read_initial_length): Declare.
12028 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
12029 handle_nonstd parameter.
12030 * dwarf2/frame.c (read_initial_length): Remove.
12031 (decode_frame_entry_1): Update.
12032
12033 2020-02-08 Tom Tromey <tom@tromey.com>
12034
12035 * dwarf2/loc.c (dwarf2_find_location_expression)
12036 (dwarf_evaluate_loc_desc::get_tls_address)
12037 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
12038 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
12039 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
12040 (dwarf2_compile_property_to_c)
12041 (dwarf2_loc_desc_get_symbol_read_needs)
12042 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
12043 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
12044 (loclist_describe_location, loclist_tracepoint_var_ref)
12045 (loclist_generate_c_location): Update.
12046 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
12047 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
12048 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
12049 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
12050 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
12051 (dwarf2_per_cu_data::addr_size)
12052 (dwarf2_per_cu_data::ref_addr_size)
12053 (dwarf2_per_cu_data::text_offset)
12054 (dwarf2_per_cu_data::addr_type): Now methods.
12055 (per_cu_header_read_in): Make per_cu "const".
12056 (dwarf2_version): Remove.
12057 (dwarf2_per_cu_data::int_type): Now a method.
12058 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
12059 (set_die_type, read_array_type, read_subrange_index_type)
12060 (read_tag_string_type, read_subrange_type): Update.
12061 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
12062 offset_size, ref_addr_size, text_offset, addr_type, version,
12063 objfile, int_type, addr_sized_int_type>: Declare methods.
12064
12065 2020-02-08 Tom Tromey <tom@tromey.com>
12066
12067 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
12068 Move earlier.
12069
12070 2020-02-08 Tom Tromey <tom@tromey.com>
12071
12072 * dwarf2/read.h (dwarf_line_debug): Declare.
12073 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
12074 * dwarf2/read.c: Move line_header code to new files.
12075 (dwarf_line_debug): No longer static.
12076 * dwarf2/line-header.c: New file.
12077 * dwarf2/line-header.h: New file.
12078
12079 2020-02-08 Tom Tromey <tom@tromey.com>
12080
12081 * dwarf2/read.c (struct line_header) <file_full_name,
12082 file_file_name>: Return unique_xmalloc_ptr.
12083 (line_header::file_file_name): Update.
12084 (line_header::file_full_name): Update.
12085 (dw2_get_file_names_reader): Update.
12086 (macro_start_file): Update.
12087
12088 2020-02-08 Tom Tromey <tom@tromey.com>
12089
12090 * dwarf2/read.c (struct line_header) <file_full_name,
12091 file_file_name>: Declare methods.
12092 (dw2_get_file_names_reader): Update.
12093 (file_file_name): Now a method.
12094 (file_full_name): Likewise.
12095 (macro_start_file): Update.
12096
12097 2020-02-08 Tom Tromey <tom@tromey.com>
12098
12099 * dwarf2/read.c (dwarf_always_disassemble)
12100 (show_dwarf_always_disassemble): Move to loc.c.
12101 (_initialize_dwarf2_read): Move "always-disassemble" registration
12102 to loc.c.
12103 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
12104 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
12105 static.
12106 (show_dwarf_always_disassemble): Move from read.c.
12107 (_initialize_dwarf2loc): Move always-disassemble from read.c.
12108
12109 2020-02-08 Tom Tromey <tom@tromey.com>
12110
12111 * dwarf2/read.c (~dwarf2_per_objfile): Update.
12112 (create_quick_file_names_table): Return htab_up.
12113 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
12114 Update.
12115 * dwarf2/read.h (struct dwarf2_per_objfile)
12116 <quick_file_names_table>: Now htab_up.
12117
12118 2020-02-08 Tom Tromey <tom@tromey.com>
12119
12120 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
12121
12122 2020-02-08 Tom Tromey <tom@tromey.com>
12123
12124 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
12125 Rewrite.
12126 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
12127 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
12128 (abbrev_table::abbrev_table): No longer inline.
12129 (ABBREV_HASH_SIZE): Remove.
12130 (abbrev_table::m_abbrevs): Now an htab_up.
12131
12132 2020-02-08 Tom Tromey <tom@tromey.com>
12133
12134 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
12135 (cutu_reader): Update.
12136 (build_type_psymtabs_1): Update.
12137 * dwarf2/abbrev.c (abbrev_table::read): Rename.
12138 (abbrev_table::alloc_abbrev): Update.
12139 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
12140 (abbrev_table::read): New static method, renamed from
12141 abbrev_table_read_table.
12142 (abbrev_table::alloc_abbrev)
12143 (abbrev_table::add_abbrev): Now private.
12144 (abbrev_table::abbrev_table): Now private.
12145 (abbrev_table::m_abbrev_obstack): Now private. Rename.
12146
12147 2020-02-08 Tom Tromey <tom@tromey.com>
12148
12149 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
12150 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
12151 htab_up.
12152
12153 2020-02-08 Tom Tromey <tom@tromey.com>
12154
12155 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
12156 htab_up.
12157 (lookup_dwo_unit_in_dwp): Update.
12158 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
12159 on obstack.
12160
12161 2020-02-08 Tom Tromey <tom@tromey.com>
12162
12163 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
12164 obstack.
12165
12166 2020-02-08 Tom Tromey <tom@tromey.com>
12167
12168 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
12169 line_header_hash.
12170 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
12171 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
12172 Change type to htab_up.
12173
12174 2020-02-08 Tom Tromey <tom@tromey.com>
12175
12176 * dwarf2/read.c (allocate_type_unit_groups_table): Return
12177 htab_up. Don't allocate on obstack.
12178 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
12179 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
12180 Change type to htab_up.
12181
12182 2020-02-08 Tom Tromey <tom@tromey.com>
12183
12184 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
12185 Change type to htab_up.
12186 * dwarf2/read.c (create_signatured_type_table_from_index)
12187 (create_signatured_type_table_from_debug_names)
12188 (create_all_type_units, add_type_unit)
12189 (lookup_dwo_signatured_type, lookup_signatured_type)
12190 (process_skeletonless_type_unit): Update.
12191 (create_debug_type_hash_table, create_debug_types_hash_table):
12192 Change type of types_htab.
12193 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
12194 htab_up. Don't allocate on obstack.
12195 (create_cus_hash_table): Change type of cus_htab parameter.
12196 (struct dwo_file) <cus, tus>: Now htab_up.
12197 (lookup_dwo_signatured_type, lookup_dwo_cutu)
12198 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
12199 (queue_and_load_all_dwo_tus): Update.
12200 * dwarf2/index-write.c (write_gdbindex): Update.
12201 (write_debug_names): Update.
12202
12203 2020-02-08 Tom Tromey <tom@tromey.com>
12204
12205 * dwarf2/read.h (struct dwarf2_queue_item): Move from
12206 dwarf2/read.c. Remove "next" member. Add constructor ntad
12207 destructor.
12208 (struct dwarf2_per_objfile) <queue>: New member.
12209 * dwarf2/read.c (struct dwarf2_queue_item): Move to
12210 dwarf2/read.h.
12211 (dwarf2_queue, dwarf2_queue_tail): Remove.
12212 (class dwarf2_queue_guard): Add parameter to constructor. Use
12213 DISABLE_COPY_AND_ASSIGN.
12214 <m_per_objfile>: New member.
12215 <~dwarf2_queue_guard>: Rewrite.
12216 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
12217 Update.
12218 (~dwarf2_queue_item): New.
12219
12220 2020-02-08 Tom Tromey <tom@tromey.com>
12221
12222 * dwarf2/read.c (struct die_info) <has_children>: New member.
12223 (dw2_get_file_names_reader): Remove has_children.
12224 (dw2_get_file_names): Update.
12225 (read_cutu_die_from_dwo): Remove has_children.
12226 (cutu_reader::init_tu_and_read_dwo_dies)
12227 (cutu_reader::cutu_reader): Update.
12228 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
12229 Remove has_children.
12230 (build_type_psymtabs_1, process_skeletonless_type_unit)
12231 (load_partial_comp_unit, load_full_comp_unit): Update.
12232 (create_dwo_cu_reader): Remove has_children.
12233 (create_cus_hash_table, read_die_and_children): Update.
12234 (read_full_die_1,read_full_die): Remove has_children.
12235 (read_signatured_type): Update.
12236 (class cutu_reader) <has_children>: Remove.
12237
12238 2020-02-08 Tom Tromey <tom@tromey.com>
12239
12240 * dwarf2/expr.c: Rename from dwarf2expr.c.
12241 * dwarf2/expr.h: Rename from dwarf2expr.h.
12242 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
12243 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
12244 * dwarf2/frame.c: Rename from dwarf2-frame.c.
12245 * dwarf2/frame.h: Rename from dwarf2-frame.h.
12246 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
12247 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
12248 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
12249 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
12250 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
12251 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
12252 * dwarf2/loc.c: Rename from dwarf2loc.c.
12253 * dwarf2/loc.h: Rename from dwarf2loc.h.
12254 * dwarf2/read.c: Rename from dwarf2read.c.
12255 * dwarf2/read.h: Rename from dwarf2read.h.
12256 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
12257 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
12258 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
12259 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
12260 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
12261 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
12262 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
12263 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
12264 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
12265 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
12266 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
12267 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
12268 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
12269 Update.
12270 * Makefile.in (COMMON_SFILES): Update.
12271 (HFILES_NO_SRCDIR): Update.
12272
12273 2020-02-08 Tom Tromey <tom@tromey.com>
12274
12275 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
12276 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
12277
12278 2020-02-08 Tom Tromey <tom@tromey.com>
12279
12280 * dwarf2read.h (struct die_info): Don't declare.
12281
12282 2020-02-08 Tom Tromey <tom@tromey.com>
12283
12284 * dwarf2read.h (die_info_ptr): Remove typedef.
12285
12286 2020-02-08 Tom Tromey <tom@tromey.com>
12287
12288 * dwarf2read.c (read_call_site_scope)
12289 (handle_data_member_location, dwarf2_add_member_fn)
12290 (mark_common_block_symbol_computed, read_common_block)
12291 (attr_to_dynamic_prop, partial_die_info::read)
12292 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
12293 (dwarf2_symbol_mark_computed, set_die_type): Update.
12294 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
12295 method.
12296 (attr_form_is_block): Don't declare.
12297 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
12298
12299 2020-02-08 Tom Tromey <tom@tromey.com>
12300
12301 * dwarf2read.c (dwarf2_find_base_address, )
12302 (read_call_site_scope, rust_containing_type)
12303 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
12304 (handle_data_member_location, dwarf2_add_member_fn)
12305 (get_alignment, read_structure_type, process_structure_scope)
12306 (mark_common_block_symbol_computed, read_common_block)
12307 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
12308 (partial_die_info::read, read_attribute_value, new_symbol)
12309 (lookup_die_type, dwarf2_get_ref_die_offset)
12310 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
12311 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
12312 (dwarf2_symbol_mark_computed): Update.
12313 * dwarf2/attribute.h (struct attribute) <value_as_address,
12314 form_is_section_offset, form_is_constant, form_is_ref>: Declare
12315 methods.
12316 (value_as_address, attr_form_is_section_offset)
12317 (attr_form_is_constant, attr_form_is_ref): Don't declare.
12318 * dwarf2/attribute.c (attribute::value_as_address)
12319 (attribute::form_is_section_offset, attribute::form_is_constant)
12320 (attribute::form_is_ref): Now methods.
12321
12322 2020-02-08 Tom Tromey <tom@tromey.com>
12323
12324 * dwarf2read.c (struct attribute, DW_STRING)
12325 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
12326 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
12327 (attr_form_is_block, attr_form_is_section_offset)
12328 (attr_form_is_constant, attr_form_is_ref): Move.
12329 * dwarf2/attribute.h: New file.
12330 * dwarf2/attribute.c: New file, from dwarf2read.c.
12331 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
12332
12333 2020-02-08 Tom Tromey <tom@tromey.com>
12334
12335 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
12336 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
12337 Move.
12338 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
12339 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
12340 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
12341 abbrev.c.
12342 * dwarf2/abbrev.h: New file.
12343 * dwarf2/abbrev.c: New file, from dwarf2read.c.
12344 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
12345
12346 2020-02-08 Tom Tromey <tom@tromey.com>
12347
12348 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
12349 (dwarf2_section_size, dwarf2_get_section_info)
12350 (create_signatured_type_table_from_debug_names)
12351 (create_addrmap_from_aranges, read_debug_names_from_section)
12352 (get_gdb_index_contents_from_section, read_comp_unit_head)
12353 (error_check_comp_unit_head, read_abbrev_offset)
12354 (create_debug_type_hash_table, init_cu_die_reader)
12355 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
12356 (read_comp_units_from_section, create_cus_hash_table)
12357 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
12358 (create_dwp_v2_section, dwarf2_rnglists_process)
12359 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
12360 (abbrev_table_read_table, read_indirect_string_at_offset_from)
12361 (read_indirect_string_from_dwz, read_addr_index_1)
12362 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
12363 (dwarf_decode_macro_bytes, dwarf_decode_macros)
12364 (fill_in_loclist_baton): Update.
12365 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
12366 get_containing_section, get_bfd_owner, get_bfd_section,
12367 get_file_name, get_id, get_flags, empty, read>: Declare methods.
12368 (dwarf2_read_section, get_section_name, get_section_file_name)
12369 (get_containing_section, get_section_bfd_owner)
12370 (get_section_bfd_section, get_section_name, get_section_file_name)
12371 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
12372 declare.
12373 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
12374 (dwarf2_section_info::get_bfd_owner)
12375 (dwarf2_section_info::get_bfd_section)
12376 (dwarf2_section_info::get_name)
12377 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
12378 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
12379 (dwarf2_section_info::read): Now methods.
12380 * dwarf-index-write.c (class debug_names): Update.
12381
12382 2020-02-08 Tom Tromey <tom@tromey.com>
12383
12384 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
12385 Move to dwarf2/section.h.
12386 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
12387 (get_section_bfd_section, get_section_name)
12388 (get_section_file_name, get_section_id, get_section_flags)
12389 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
12390 dwarf2/section.c.
12391 * dwarf2/section.h: New file.
12392 * dwarf2/section.c: New file, from dwarf2read.c.
12393 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
12394
12395 2020-02-08 Tom Tromey <tom@tromey.com>
12396
12397 * dwarf2read.h (read_unsigned_leb128): Don't declare.
12398 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
12399 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
12400 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
12401 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
12402 * dwarf2/leb.h: New file, from dwarf2read.c.
12403 * dwarf2/leb.c: New file, from dwarf2read.c.
12404 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
12405 Remove.
12406 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
12407 (COMMON_SFILES): Add dwarf2/leb.c.
12408
12409 2020-02-08 Joel Brobecker <brobecker@adacore.com>
12410
12411 GDB 9.1 released.
12412
12413 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
12414
12415 PR gdb/25190:
12416 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
12417 * gdb/remote.c (remote_console_output): Update.
12418 * gdb/ui-file.c (fputs_unfiltered): Rename to...
12419 (ui_file_puts): ...this.
12420 * gdb/ui-file.h (ui_file_puts): Add declaration.
12421 * gdb/utils.c (emit_style_escape): Update.
12422 (flush_wrap_buffer): Update.
12423 (fputs_maybe_filtered): Update.
12424 (fputs_unfiltered): Add function.
12425
12426 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
12427
12428 * gdb/event-loop.c (gdb_wait_for_event): Update.
12429 * gdb/printcmd.c (printf_command): Update.
12430 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
12431 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
12432 (gdb_os_flush_stderr): Update.
12433 * gdb/remote.c (remote_console_output): Update.
12434 * gdb/ui-file.c (gdb_flush): Rename to...
12435 (ui_file_flush): ...this.
12436 (stderr_file::write): Update.
12437 (stderr_file::puts): Update.
12438 * gdb/ui-file.h (gdb_flush): Rename to...
12439 (ui_file_flush): ...this.
12440 * gdb/utils.c (gdb_flush): Add function.
12441 * gdb/utils.h (gdb_flush): Add declaration.
12442
12443 2020-02-07 Tom Tromey <tromey@adacore.com>
12444
12445 PR breakpoints/24915:
12446 * source.c (find_and_open_source): Do not check basenames_may_differ.
12447
12448 2020-02-07 Tom Tromey <tom@tromey.com>
12449
12450 * README: Update gdbserver documentation.
12451 * gdbserver: Move to top level.
12452 * configure.tgt (build_gdbserver): Remove.
12453 * configure.ac: Remove --enable-gdbserver.
12454 * configure: Rebuild.
12455 * Makefile.in (distclean): Don't mention gdbserver.
12456
12457 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
12458
12459 * source-cache.c (source_cache::ensure): Surround
12460 get_plain_source_lines with a try/catch.
12461 (source_cache::get_line_charpos): Get rid of try/catch
12462 and only check for the return value of "ensure".
12463 * tui/tui-source.c (tui_source_window::set_contents):
12464 Simplify "nlines" calculation.
12465
12466 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
12467
12468 * MAINTAINERS (Write After Approval): Add myself.
12469
12470 2020-02-05 Christian Biesinger <cbiesinger@google.com>
12471
12472 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
12473 function call.
12474
12475 2020-02-05 Christian Biesinger <cbiesinger@google.com>
12476
12477 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
12478
12479 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
12480
12481 * nat/riscv-linux-tdesc.h: New file.
12482 * nat/riscv-linux-tdesc.c: New file, taking code from...
12483 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
12484 ... here.
12485 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
12486 NATDEPFILES.
12487
12488 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
12489
12490 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
12491 we don't set the fake simulator ptid to the null_ptid.
12492
12493 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
12494
12495 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
12496 * gdbthread.h (class thread_info) <resumed>: Likewise.
12497 * infrun.c (resume_1): Likewise.
12498 (proceed): Likewise.
12499 (infrun_thread_stop_requested): Likewise.
12500 (stop_all_threads): Likewise.
12501 (handle_inferior_event): Likewise.
12502 (restart_threads): Likewise.
12503 (finish_step_over): Likewise.
12504 (keep_going_stepped_thread): Likewise.
12505 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
12506 (linux_handle_extended_wait): Likewise.
12507 * record-btrace.c (get_thread_current_frame_id): Likewise.
12508 * record-full.c (record_full_wait_1): Likewise.
12509 * remote.c (remote_target::process_initial_stop_replies): Likewise.
12510 * target.c (target_resume): Likewise.
12511 * thread.c (set_running_thread): Likewise.
12512
12513 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
12514
12515 * f-valprint.c (f77_print_array_1): Changed datatype of index
12516 variable to LONGEST from int to enable it to contain bound
12517 values correctly.
12518
12519 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
12520
12521 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
12522 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
12523 offsets according to FLEN determined.
12524 (riscv_linux_nat_target::read_description): Determine FLEN
12525 dynamically.
12526 (riscv_linux_nat_target::fetch_registers): Size regset buffer
12527 according to FLEN determined.
12528 (riscv_linux_nat_target::store_registers): Likewise.
12529
12530 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
12531
12532 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
12533 when reg->group is empty and reggroup is not.
12534
12535 2020-01-31 Tom Tromey <tromey@adacore.com>
12536
12537 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
12538 Call beneath target's mourn_inferior after unpushing.
12539
12540 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
12541
12542 PR tui/9765
12543 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
12544 have enough lines to fill the screen, still return the lowest
12545 address we found.
12546
12547 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
12548
12549 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
12550 '-', '<', and '>' commands.
12551
12552 2020-01-29 Pedro Alves <palves@redhat.com>
12553 Sergio Durigan Junior <sergiodj@redhat.com>
12554
12555 * infcmd.c (construct_inferior_arguments): Assert that
12556 'argc' is greater than 0.
12557
12558 2020-01-29 Luis Machado <luis.machado@linaro.org>
12559
12560 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
12561 (BRK_INSN_MASK): Define to 0xd4200000.
12562 (aarch64_program_breakpoint_here_p): New function.
12563 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
12564 * arch-utils.c (default_program_breakpoint_here_p): Moved from
12565 breakpoint.c.
12566 * arch-utils.h (default_program_breakpoint_here_p): Moved from
12567 breakpoint.h
12568 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
12569 call gdbarch_program_breakpoint_here_p.
12570 (program_breakpoint_here): Moved to arch-utils.c, renamed to
12571 default_program_breakpoint_here_p, changed return type to bool and
12572 simplified.
12573 * breakpoint.h (program_breakpoint_here): Moved prototype to
12574 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
12575 return type to bool.
12576 * gdbarch.c: Regenerate.
12577 * gdbarch.h: Regenerate.
12578 * gdbarch.sh (program_breakpoint_here_p): New method.
12579 * infrun.c (handle_signal_stop): Call
12580 gdbarch_program_breakpoint_here_p.
12581
12582 2020-01-26 Tom Tromey <tom@tromey.com>
12583
12584 * ctfread.c (struct ctf_fp_info): Reindent.
12585 (_initialize_ctfread): Remove.
12586
12587 2020-01-26 Tom Tromey <tom@tromey.com>
12588
12589 * psymtab.c (partial_map_expand_apply)
12590 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
12591 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
12592 (psym_print_stats, psym_expand_symtabs_for_function)
12593 (psym_map_symbol_filenames, psym_map_matching_symbols)
12594 (psym_expand_symtabs_matching)
12595 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
12596 (maintenance_check_psymtabs): Use new methods.
12597 * psympriv.h (struct partial_symtab) <readin_p,
12598 get_compunit_symtab>: New methods.
12599 <readin, compunit_symtab>: Remove members.
12600 (struct standard_psymtab): New.
12601 (struct legacy_psymtab): Derive from standard_psymtab.
12602 * dwarf2read.h (struct dwarf2_psymtab): Derive from
12603 standard_psymtab.
12604 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
12605
12606 2020-01-26 Tom Tromey <tom@tromey.com>
12607
12608 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
12609 read_dependencies. Add assert.
12610 * psymtab.c (partial_symtab::read_dependencies): New method.
12611 * psympriv.h (struct partial_symtab) <read_dependencies>: New
12612 method.
12613 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
12614 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
12615 read_dependencies.
12616 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
12617 Add assert.
12618
12619 2020-01-26 Tom Tromey <tom@tromey.com>
12620
12621 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
12622 Call expand_psymtab.
12623 (xcoff_read_symtab): Call expand_psymtab.
12624 (xcoff_start_psymtab, xcoff_end_psymtab): Set
12625 legacy_expand_psymtab.
12626 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
12627 method.
12628 (struct legacy_psymtab) <expand_psymtab>: Implement.
12629 <legacy_expand_psymtab>: New member.
12630 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
12631 (parse_partial_symbols): Set legacy_expand_psymtab.
12632 (psymtab_to_symtab_1): Change argument order. Call
12633 expand_psymtab.
12634 (new_psymtab): Set legacy_expand_psymtab.
12635 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
12636 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
12637 expand_psymtab.
12638 (dwarf2_psymtab::expand_psymtab): Rename from
12639 psymtab_to_symtab_1. Call expand_psymtab.
12640 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
12641 (dbx_end_psymtab): Likewise.
12642 (dbx_psymtab_to_symtab_1): Change argument order. Call
12643 expand_psymtab.
12644 (dbx_read_symtab): Call expand_psymtab.
12645 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
12646 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
12647 (ctf_psymtab::read_symtab): Call expand_psymtab.
12648
12649 2020-01-26 Tom Tromey <tom@tromey.com>
12650
12651 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
12652 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
12653 messages.
12654 * mdebugread.c (mdebug_read_symtab): Remove prints.
12655 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
12656 assert.
12657 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
12658
12659 2020-01-26 Tom Tromey <tom@tromey.com>
12660
12661 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
12662 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
12663 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
12664 legacy_symtab.
12665 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
12666 * psymtab.c (psymtab_to_symtab): Call method.
12667 (dump_psymtab): Update.
12668 * psympriv.h (struct partial_symtab): Add virtual destructor.
12669 <read_symtab>: New method.
12670 (struct legacy_symtab): New.
12671 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
12672 (struct pst_map) <pst>: Now a legacy_psymtab.
12673 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
12674 (new_psymtab): Use legacy_psymtab.
12675 * dwarf2read.h (struct dwarf2_psymtab): New.
12676 (struct dwarf2_per_cu_data) <psymtab>: Use it.
12677 * dwarf2read.c (dwarf2_create_include_psymtab)
12678 (dwarf2_build_include_psymtabs, create_type_unit_group)
12679 (create_partial_symtab, process_psymtab_comp_unit_reader)
12680 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
12681 (set_partial_user): Use dwarf2_psymtab.
12682 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
12683 (psymtab_to_symtab_1, process_full_comp_unit)
12684 (process_full_type_unit, dwarf2_ranges_read)
12685 (dwarf2_get_pc_bounds, psymtab_include_file_name)
12686 (dwarf_decode_lines): Use dwarf2_psymtab.
12687 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
12688 (add_address_entry_worker, write_one_signatured_type)
12689 (recursively_count_psymbols, recursively_write_psymbols)
12690 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
12691 (write_debug_names): Likewise.
12692 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
12693 <pst>: Now a legacy_psymtab.
12694 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
12695 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
12696 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
12697 * ctfread.c (struct ctf_psymtab): New.
12698 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
12699 ctf_psymtab.
12700 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
12701 (create_partial_symtab): Return a ctf_psymtab.
12702 (scan_partial_symbols): Update.
12703
12704 2020-01-26 Tom Tromey <tom@tromey.com>
12705
12706 * xcoffread.c (xcoff_start_psymtab): Use new.
12707 * psymtab.c (partial_symtab::partial_symtab): New constructor,
12708 renamed from start_psymtab_common.
12709 * psympriv.h (struct partial_symtab): Add new constructor.
12710 (start_psymtab_common): Don't declare.
12711 * mdebugread.c (parse_partial_symbols): Use new.
12712 * dwarf2read.c (create_partial_symtab): Use new.
12713 * dbxread.c (start_psymtab): Use new.
12714 * ctfread.c (create_partial_symtab): Use new.
12715
12716 2020-01-26 Tom Tromey <tom@tromey.com>
12717
12718 * xcoffread.c (xcoff_end_psymtab): Use new.
12719 * psymtab.c (start_psymtab_common): Use new.
12720 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
12721 Update.
12722 * psympriv.h (struct partial_symtab): Add parameters to
12723 constructor. Don't inline.
12724 (allocate_psymtab): Don't declare.
12725 * mdebugread.c (new_psymtab): Use new.
12726 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
12727 * dbxread.c (dbx_end_psymtab): Use new.
12728
12729 2020-01-26 Tom Tromey <tom@tromey.com>
12730
12731 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
12732 allocate_psymtab. Update documentation.
12733 * psymtab.c (psymtab_storage::install_psymtab): Rename from
12734 allocate_psymtab. Do not use new.
12735 (allocate_psymtab): Use new. Update.
12736
12737 2020-01-26 Tom Tromey <tom@tromey.com>
12738
12739 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
12740 * psymtab.c (psym_print_stats): Update.
12741 * psympriv.h (struct partial_symtab) <readin,
12742 psymtabs_addrmap_supported, anonymous>: Now bool.
12743 * mdebugread.c (psymtab_to_symtab_1): Update.
12744 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
12745 (build_type_psymtabs_reader, psymtab_to_symtab_1)
12746 (process_full_comp_unit, process_full_type_unit): Update.
12747 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
12748 * ctfread.c (psymtab_to_symtab): Update.
12749
12750 2020-01-26 Tom Tromey <tom@tromey.com>
12751
12752 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
12753 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
12754 * psymtab.c (psymtab_storage): Delete psymtabs.
12755 (psymtab_storage::allocate_psymtab): Use new.
12756 (psymtab_storage::discard_psymtab): Use delete.
12757 * psympriv.h (struct partial_symtab): Add constructor and
12758 initializers.
12759
12760 2020-01-26 Tom Tromey <tom@tromey.com>
12761
12762 * machoread.c: Do not include psympriv.h.
12763
12764 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12765
12766 * NEWS: Mention the new option and the set/show commands.
12767
12768 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12769
12770 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
12771 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
12772 (validate_exec_file): New variables, enums, functions.
12773 (exec_file_locate_attach, print_section_info): Style the filenames.
12774 (_initialize_exec): Install show_exec_file_mismatch_command and
12775 set_exec_file_mismatch_command.
12776 * gdbcore.h (validate_exec_file): Declare.
12777 * infcmd.c (attach_command): Call validate_exec_file.
12778 * remote.c ( remote_target::remote_add_inferior): Likewise.
12779
12780 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12781
12782 * frame.c (find_frame_sal): Move call to get_next_frame into more
12783 inner scope.
12784 * inline-frame.c (inilne_state) <inline_state>: Update argument
12785 types.
12786 (inilne_state) <skipped_symbol>: Rename to...
12787 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
12788 (skip_inline_frames): Build vector of skipped symbols and use this
12789 to reate the inline_state.
12790 (inline_skipped_symbol): Add a comment and some assertions, fetch
12791 skipped symbol from the list.
12792
12793 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12794
12795 * buildsym.c (lte_is_less_than): Delete.
12796 (buildsym_compunit::end_symtab_with_blockvector): Create local
12797 lambda function to sort line table entries, and use
12798 std::stable_sort instead of std::sort.
12799 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
12800 markers when looking for a previous line.
12801
12802 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12803
12804 * dwarf2read.c (lnp_state_machine::record_line): Include
12805 end_sequence parameter in debug print out. Record the line if we
12806 are at an end_sequence marker even if it's not the start of a
12807 statement.
12808 * symmisc.c (maintenance_print_one_line_table): Print end of
12809 sequence markers with 'END' not '0'.
12810
12811 2020-01-24 Pedro Alves <palves@redhat.com>
12812
12813 PR gdb/25410
12814 * thread.c (scoped_restore_current_thread::restore): Use
12815 switch_to_inferior_no_thread.
12816 * exec.c: Include "progspace-and-thread.h".
12817 (add_target_sections, remove_target_sections):
12818 scoped_restore_current_pspace_and_thread instead of
12819 scoped_restore_current_thread.
12820 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
12821 and aspace to the inferior before calling clone_program_space.
12822 Remove stale comment.
12823
12824 2020-01-24 Christian Biesinger <cbiesinger@google.com>
12825
12826 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
12827 (arm_netbsd_nat_target::fetch_registers): ...this.
12828 (arm_nbsd_nat_target::store_registers): Rename to...
12829 (arm_netbsd_nat_target::store_registers): ...this.
12830
12831 2020-01-24 Christian Biesinger <cbiesinger@google.com>
12832
12833 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12834 register_t.
12835
12836 2020-01-24 Christian Biesinger <cbiesinger@google.com>
12837
12838 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
12839 Update comment.
12840 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
12841 Likewise.
12842 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
12843 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
12844 the correct replacement (iterate_over_regset_sections).
12845 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
12846 Update comment.
12847
12848 2020-01-24 Graham Markall <graham.markall@embecosm.com>
12849
12850 PR gdb/23718
12851 * gdb/python/python.c (execute_gdb_command): Call
12852 async_enable_stdin in catch block.
12853
12854 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12855
12856 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
12857 SWITCH_THRU_ALL_UIS.
12858
12859 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12860
12861 PR tui/9765
12862 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
12863 comment, add extra parameter, and update to store previous symbol
12864 when appropriate.
12865 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
12866 add extra parameter.
12867 * tui/tui-disasm.c (tui_disassemble): Update header comment,
12868 remove unneeded parameter, add try/catch around gdb_print_insn,
12869 rewrite to add items to asm_lines vector.
12870 (tui_find_backward_disassembly_start_address): New function.
12871 (tui_find_disassembly_address): Updated throughout.
12872 (tui_disasm_window::set_contents): Update for changes to
12873 tui_disassemble.
12874 (tui_disasm_window::do_scroll_vertical): No need to adjust the
12875 number of lines to scroll.
12876
12877 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
12878
12879 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
12880 (SECT_OFF_DATA): Likewise.
12881 (SECT_OFF_RODATA): Likewise.
12882 (SECT_OFF_TEXT): Likewise.
12883 (SECT_OFF_BSS): Likewise.
12884 (struct objfile) <text_section_offset, data_section_offset>: New
12885 methods.
12886 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
12887 objfile::text_section_offset.
12888 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
12889 * coffread.c (coff_symtab_read): Likewise.
12890 (enter_linenos): Likewise.
12891 (process_coff_symbol): Likewise.
12892 * ctfread.c (get_objfile_text_range): Likewise.
12893 * dtrace-probe.c (dtrace_probe::get_relocated_address):
12894 Use objfile::data_section_offset.
12895 * dwarf2-frame.c (execute_cfa_program): Use
12896 objfile::text_section_offset.
12897 (dwarf2_frame_find_fde): Likewise.
12898 * dwarf2read.c (create_addrmap_from_index): Likewise.
12899 (create_addrmap_from_aranges): Likewise.
12900 (dw2_find_pc_sect_compunit_symtab): Likewise.
12901 (process_psymtab_comp_unit_reader): Likewise.
12902 (add_partial_symbol): Likewise.
12903 (add_partial_subprogram): Likewise.
12904 (process_full_comp_unit): Likewise.
12905 (read_file_scope): Likewise.
12906 (read_func_scope): Likewise.
12907 (read_lexical_block_scope): Likewise.
12908 (read_call_site_scope): Likewise.
12909 (dwarf2_rnglists_process): Likewise.
12910 (dwarf2_ranges_process): Likewise.
12911 (dwarf2_ranges_read): Likewise.
12912 (dwarf_decode_lines_1): Likewise.
12913 (new_symbol): Likewise.
12914 (dwarf2_fetch_die_loc_sect_off): Likewise.
12915 (dwarf2_per_cu_text_offset): Likewise.
12916 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
12917 * hppa-tdep.c (read_unwind_info): Likewise.
12918 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
12919 * psympriv.h (struct partial_symtab): Likewise.
12920 * psymtab.c (find_pc_sect_psymtab): Likewise.
12921 * solib-svr4.c (enable_break): Likewise.
12922 * stap-probe.c (relocate_address): Use
12923 objfile::data_section_offset.
12924 * xcoffread.c (enter_line_range): Use
12925 objfile::text_section_offset.
12926 (read_xcoff_symtab): Likewise.
12927
12928 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
12929
12930 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
12931 declaration to narrower scopes.
12932
12933 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
12934
12935 * darwin-nat.h (struct darwin_exception_msg, enum
12936 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
12937 Move up.
12938 (class darwin_nat_target) <wait_1, check_new_threads,
12939 decode_exception_message, decode_message, stop_inferior,
12940 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
12941 * darwin-nat.c (darwin_check_new_threads): Rename to...
12942 (darwin_nat_target::check_new_threads): ... this.
12943 (darwin_suspend_inferior_it): Remove.
12944 (darwin_decode_exception_message): Rename to...
12945 (darwin_nat_target::decode_exception_message): ... this.
12946 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
12947 (darwin_decode_message): Rename to...
12948 (darwin_nat_target::decode_message): ... this.
12949 (cancel_breakpoint): Rename to...
12950 (darwin_nat_target::cancel_breakpoint): ... this.
12951 (darwin_wait): Rename to...
12952 (darwin_nat_target::wait_1): ... this. Use range-based for loop
12953 instead of iterate_over_inferiors.
12954 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
12955 (darwin_stop_inferior): Rename to...
12956 (darwin_nat_target::stop_inferior): ... this.
12957 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
12958 (darwin_init_thread_list): Rename to...
12959 (darwin_nat_target::init_thread_list): ... this.
12960 (darwin_ptrace_him): Rename to...
12961 (darwin_nat_target::ptrace_him): ... this.
12962 (darwin_nat_target::create_inferior): Pass lambda function to
12963 fork_inferior.
12964 (darwin_nat_target::detach): Call stop_inferior instead of
12965 darwin_stop_inferior.
12966 * fork-inferior.h (fork_inferior): Change init_trace_fun
12967 parameter to gdb::function_view.
12968 * fork-inferior.c (fork_inferior): Likewise.
12969
12970 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
12971
12972 * i386-cygwin-tdep.c (core_process_module_section): Update.
12973 * windows-nat.c (struct lm_info_windows): Add text_offset.
12974 (windows_xfer_shared_libraries): Update.
12975 * windows-tdep.c (windows_xfer_shared_library):
12976 Add text_offset_cached argument.
12977 * windows-tdep.h (windows_xfer_shared_library): Update.
12978
12979 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
12980
12981 * gdbarch.sh: Add declaration for _initialize_gdbarch.
12982
12983 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
12984
12985 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
12986 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
12987 replace with range-based for.
12988 (gdbsim_interrupt_inferior): Remove.
12989 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
12990 with a range-based for. Inline code from
12991 gdbsim_interrupt_inferior.
12992
12993 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
12994
12995 * infrun.c (proceed): Fix indentation.
12996
12997 2020-01-21 Tom Tromey <tromey@adacore.com>
12998
12999 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
13000 * python/python.c (python_extension_ops): Update.
13001 (gdbpy_colorize): New function.
13002 * python/lib/gdb/__init__.py (colorize): New function.
13003 * extension.h (ext_lang_colorize): Declare.
13004 * extension.c (ext_lang_colorize): New function.
13005 * extension-priv.h (struct extension_language_ops) <colorize>: New
13006 member.
13007 * cli/cli-style.c (_initialize_cli_style): Update help text.
13008
13009 2020-01-21 Luis Machado <luis.machado@linaro.org>
13010
13011 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
13012 <cond>: Change type to bool.
13013 (aarch64_displaced_step_b_cond): Update cond to use bool type.
13014 (aarch64_displaced_step_cb): Likewise.
13015 (aarch64_displaced_step_tb): Likewise.
13016
13017 2020-01-21 Luis Machado <luis.machado@linaro.org>
13018
13019 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
13020 output.
13021
13022 2020-01-21 Luis Machado <luis.machado@linaro.org>
13023
13024 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
13025 <pc_adjust>: Adjust the documentation.
13026 (aarch64_displaced_step_fixup): Check if PC really moved before
13027 adjusting it.
13028
13029 2020-01-19 Tom Tromey <tom@tromey.com>
13030
13031 * disasm.c (~gdb_disassembler): New destructor.
13032 (gdb_buffered_insn_length): Call disassemble_free_target.
13033 * disasm.h (class gdb_disassembler): Declare destructor. Use
13034 DISABLE_COPY_AND_ASSIGN.
13035
13036 2020-01-19 Tom Tromey <tom@tromey.com>
13037
13038 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
13039 (die_reader_func_ftype): Remove.
13040 (cutu_reader): New class.
13041 (dw2_get_file_names_reader): Remove "data" parameter.
13042 (dw2_get_file_names): Use cutu_reader.
13043 (create_debug_type_hash_table): Update.
13044 (read_cutu_die_from_dwo): Update comment.
13045 (lookup_dwo_unit): Add dwo_name parameter.
13046 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
13047 die_reader_func_ftype and data parameters.
13048 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
13049 Remove die_reader_func_ftype and data parameters.
13050 (~cutu_reader): New; from init_cutu_and_read_dies.
13051 (cutu_reader::cutu_reader): Rename from
13052 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
13053 and data parameters.
13054 (init_cutu_and_read_dies_simple): Remove.
13055 (struct process_psymtab_comp_unit_data): Remove.
13056 (process_psymtab_comp_unit_reader): Remove data parameter; add
13057 want_partial_unit and pretend_language parameters.
13058 (process_psymtab_comp_unit): Use cutu_reader.
13059 (build_type_psymtabs_reader): Remove data parameter.
13060 (build_type_psymtabs_1): Use cutu_reader.
13061 (process_skeletonless_type_unit): Likewise.
13062 (load_partial_comp_unit_reader): Remove.
13063 (load_partial_comp_unit): Use cutu_reader.
13064 (load_full_comp_unit_reader): Remove.
13065 (load_full_comp_unit): Use cutu_reader.
13066 (struct create_dwo_cu_data): Remove.
13067 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
13068 dwo_unit parameters.
13069 (create_cus_hash_table): Use cutu_reader.
13070 (struct dwarf2_read_addr_index_data): Remove.
13071 (dwarf2_read_addr_index_reader): Remove.
13072 (dwarf2_read_addr_index): Use cutu_reader.
13073 (read_signatured_type_reader): Remove.
13074 (read_signatured_type): Use cutu_reader.
13075
13076 2020-01-19 Tom Tromey <tom@tromey.com>
13077
13078 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
13079 * tui/tui-wingeneral.h (class tui_suppress_output): New.
13080 (tui_wrefresh): Declare.
13081 * tui/tui-wingeneral.c (suppress_output): New global.
13082 (tui_suppress_output, ~tui_suppress_output): New constructor and
13083 destructor.
13084 (tui_wrefresh): New function.
13085 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
13086 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
13087 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
13088 method.
13089 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
13090 tui_wrefresh.
13091 (tui_data_window::no_refresh): New method.
13092 (tui_data_item_window::refresh_window): Call tui_wrefresh.
13093 (tui_reg_command): Use tui_suppress_output
13094 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
13095 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
13096 method.
13097 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
13098
13099 2020-01-19 Tom Tromey <tom@tromey.com>
13100
13101 * tui/tui-winsource.c (tui_update_source_windows_with_line):
13102 Handle case where symtab is null.
13103
13104 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
13105
13106 * linux-fork.c (one_fork_p): Simplify.
13107
13108 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
13109
13110 * top.c (struct qt_args): Remove.
13111 (kill_or_detach): Change return type to void, replace `void *`
13112 parameter with a proper one.
13113 (print_inferior_quit_action): Likewise.
13114 (quit_confirm): Use range-based for loop to iterate over inferiors.
13115 (quit_force): Likewise.
13116
13117 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
13118
13119 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
13120 `void *` parameter with proper parameters.
13121 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
13122 (print_one_inferior): Change return type to void, replace `void *`
13123 parameter with proper parameters.
13124 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
13125 inferiors.
13126 (get_other_inferior): Remove.
13127 (mi_cmd_remove_inferior): Use range-based loop to iterate over
13128 inferiors.
13129
13130 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
13131
13132 * mi/mi-interp.c (report_initial_inferior): Remove.
13133 (mi_interp::init): Use range-based for to iterate over inferiors.
13134
13135 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
13136
13137 * python/py-inferior.c (build_inferior_list): Remove.
13138 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
13139
13140 2020-01-16 Christian Biesinger <cbiesinger@google.com>
13141
13142 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
13143 (btrace_stitch_trace): Likewise.
13144 * charset.c (intermediate_encoding): Likewise (vaild).
13145 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
13146 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
13147 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
13148
13149 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
13150
13151 * windows-tdep.c (windows_get_tlb_type):
13152 Add rtl_user_process_parameters type.
13153
13154 2020-01-16 Pedro Alves <palves@redhat.com>
13155 Norbert Lange <nolange79@gmail.com>
13156
13157 PR build/24805
13158 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
13159 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
13160 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
13161 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
13162 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
13163 (ps_plog): Redeclare exported functions with default visibility.
13164
13165 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
13166
13167 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
13168 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
13169
13170 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
13171
13172 * infcmd.c (post_create_inferior): Use get_thread_regcache
13173 instead of get_current_regcache.
13174
13175 2020-01-14 Tom Tromey <tom@tromey.com>
13176
13177 PR symtab/12535:
13178 * python/python.c (gdbpy_decode_line): Treat empty string the same
13179 as no argument.
13180
13181 2020-01-14 Tom Tromey <tom@tromey.com>
13182
13183 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
13184
13185 2020-01-14 Tom Tromey <tom@tromey.com>
13186
13187 * nat/linux-btrace.c: Don't include <config.h>.
13188 * nat/linux-ptrace.c: Don't include <config.h>.
13189 * nat/x86-linux-dregs.c: Don't include <config.h>.
13190
13191 2020-01-14 Tom Tromey <tom@tromey.com>
13192
13193 * configure: Rebuild.
13194 * configure.ac: Move many checks to ../gdbsupport/common.m4.
13195
13196 2020-01-14 Tom Tromey <tom@tromey.com>
13197
13198 * nat/x86-linux-dregs.c: Include configh.h.
13199 * nat/linux-ptrace.c: Include configh.h.
13200 * nat/linux-btrace.c: Include configh.h.
13201 * defs.h: Include config.h, bfd.h.
13202 * configure.ac: Don't source common.host.
13203 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
13204 * configure: Rebuild.
13205 * acinclude.m4: Update path.
13206 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
13207 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
13208 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
13209 (CLIBS): Add LIBSUPPORT.
13210 (CDEPS): Likewise.
13211 (COMMON_SFILES): Remove gdbsupport files.
13212 (HFILES_NO_SRCDIR): Likewise.
13213 (stamp-version): Update path to create-version.sh.
13214 (ALLDEPFILES): Remove gdbsupport files.
13215
13216 2020-01-14 Tom Tromey <tom@tromey.com>
13217
13218 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
13219 USE_WIN32API when needed.
13220 * configure.ac (USE_WIN32API): Don't define.
13221 (WIN32LIBS): Use WIN32APILIBS.
13222 * configure: Rebuild.
13223
13224 2020-01-14 Tom Tromey <tom@tromey.com>
13225
13226 * configure: Rebuild.
13227 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
13228
13229 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
13230
13231 * skip.c (skip_function_command): Make skip w/o arguments use the
13232 name of the inlined function if pc is inside any inlined function.
13233
13234 2020-01-14 Luis Machado <luis.machado@linaro.org>
13235
13236 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
13237 * infrun.c (resume_1): Likewise.
13238 (handle_inferior_event): Remove stale comment.
13239 * linux-nat.c (linux_nat_target::resume): Update comments.
13240 (save_stop_reason): Likewise.
13241 (linux_nat_filter_event): Likewise.
13242 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
13243
13244 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
13245
13246 * elfread.c (record_minimal_symbol): Set section index to 0 for
13247 non-allocatable sections.
13248
13249
13250 2020-01-13 Ali Tamur <tamur@google.com>
13251
13252 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
13253 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
13254 to gdb::optional. Update comments.
13255 (dwo_file): Update comments.
13256 (read_attribute): Update API to take an additional out parameter,
13257 need_reprocess. This is used to mark attributes that need other
13258 attributes (e.g. str_offsets_base) for correct computation which may not
13259 have been read yet.
13260 (read_attribute_reprocess): New function declaration.
13261 (read_addr_index): Likewise.
13262 (read_dwo_str_index): Likewise.
13263 (read_stub_str_index): Likewise.
13264 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
13265 (lookup_addr_base): New function definition.
13266 (lookup_ranges_base): Likewise.
13267 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
13268 lookup_ranges_base.
13269 (init_cutu_and_read_dies): Update comments.
13270 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
13271 unit. This is used to inherit parent's str_offsets_base and addr_base.
13272 Update comments.
13273 (init_cutu_and_read_dies_simple): Reflect API changes.
13274 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
13275 (create_cus_hash_table): Change API to take parent compile unit.
13276 Reflect API changes.
13277 (open_and_init_dwo_file): Reflect API changes.
13278 (dwarf2_get_pc_bounds): Update comments.
13279 (dwarf2_record_block_ranges): Likewise.
13280 (read_full_die_1): Change implementation to reprocess attributes that
13281 need str_offsets_base and addr_base.
13282 (partial_die_info::read): Likewise.
13283 (read_attribute_reprocess): New function definition.
13284 (read_attribute_value): Change API to take an additional out parameter,
13285 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
13286 when a non-dwo compile unit has index based attributes.
13287 (read_attribute): Reflect API changes.
13288 (read_addr_index_1): Reflect API changes. Update comments.
13289 (dwarf2_read_addr_index_data): Reflect API changes.
13290 (dwarf2_read_addr_index): Likewise.
13291 (read_str_index): Change API and implementation. This becomes a helper
13292 to be used by the new string index related methods. Update error
13293 message and comments.
13294 (read_dwo_str_index): New function definition.
13295 (read_stub_str_index): Likewise.
13296 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
13297 * symfile.h (dwarf2_debug_sections): Likewise.
13298 * xcoffread.c (dwarf2_debug_sections): Likewise.
13299
13300 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
13301
13302 * gdbcore.h (struct core_fns) <core_read_registers>: Change
13303 core_reg_sect type to gdb_byte *.
13304 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
13305 * cris-tdep.c (fetch_core_registers): Likewise.
13306 * corelow.c (core_target::get_core_register_section): Change
13307 type of `contents` to gdb::byte_vector.
13308
13309 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
13310
13311 * tui/tui-wingeneral.c (box_win): Position the title in the center
13312 of the border.
13313
13314 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13315
13316 * corelow.c (core_target::get_core_register_section): Use
13317 std::vector instead of alloca.
13318
13319 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
13320
13321 * warning.m4: Add -Wmissing-declarations to build_warnings.
13322 * configure: Re-generate.
13323
13324 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
13325
13326 * python/python.c (init__gdb_module): Add declaration.
13327
13328 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
13329
13330 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
13331 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
13332 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
13333 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
13334 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
13335 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
13336 * ada-exp.y (_initialize_ada_exp): Add declaration.
13337 * ada-lang.c (_initialize_ada_language): Add declaration.
13338 * ada-tasks.c (_initialize_tasks): Add declaration.
13339 * agent.c (_initialize_agent): Add declaration.
13340 * aix-thread.c (_initialize_aix_thread): Add declaration.
13341 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
13342 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
13343 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
13344 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
13345 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
13346 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
13347 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
13348 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
13349 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
13350 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
13351 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
13352 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
13353 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
13354 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
13355 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
13356 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
13357 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
13358 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
13359 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
13360 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
13361 * annotate.c (_initialize_annotate): Add declaration.
13362 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
13363 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
13364 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
13365 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
13366 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
13367 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
13368 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
13369 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
13370 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
13371 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
13372 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
13373 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
13374 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
13375 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
13376 * auto-load.c (_initialize_auto_load): Add declaration.
13377 * auxv.c (_initialize_auxv): Add declaration.
13378 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
13379 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
13380 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
13381 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
13382 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
13383 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
13384 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
13385 * breakpoint.c (_initialize_breakpoint): Add declaration.
13386 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
13387 * btrace.c (_initialize_btrace): Add declaration.
13388 * charset.c (_initialize_charset): Add declaration.
13389 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
13390 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
13391 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
13392 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
13393 * cli/cli-script.c (_initialize_cli_script): Add declaration.
13394 * cli/cli-style.c (_initialize_cli_style): Add declaration.
13395 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
13396 * coffread.c (_initialize_coffread): Add declaration.
13397 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
13398 * compile/compile.c (_initialize_compile): Add declaration.
13399 * complaints.c (_initialize_complaints): Add declaration.
13400 * completer.c (_initialize_completer): Add declaration.
13401 * copying.c (_initialize_copying): Add declaration.
13402 * corefile.c (_initialize_core): Add declaration.
13403 * corelow.c (_initialize_corelow): Add declaration.
13404 * cp-abi.c (_initialize_cp_abi): Add declaration.
13405 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
13406 * cp-support.c (_initialize_cp_support): Add declaration.
13407 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
13408 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
13409 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
13410 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
13411 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
13412 * ctfread.c (_initialize_ctfread): Add declaration.
13413 * d-lang.c (_initialize_d_language): Add declaration.
13414 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
13415 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
13416 * dbxread.c (_initialize_dbxread): Add declaration.
13417 * dcache.c (_initialize_dcache): Add declaration.
13418 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
13419 * disasm.c (_initialize_disasm): Add declaration.
13420 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
13421 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
13422 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
13423 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
13424 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
13425 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
13426 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
13427 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
13428 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
13429 * elfread.c (_initialize_elfread): Add declaration.
13430 * exec.c (_initialize_exec): Add declaration.
13431 * extension.c (_initialize_extension): Add declaration.
13432 * f-lang.c (_initialize_f_language): Add declaration.
13433 * f-valprint.c (_initialize_f_valprint): Add declaration.
13434 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
13435 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
13436 * filesystem.c (_initialize_filesystem): Add declaration.
13437 * findcmd.c (_initialize_mem_search): Add declaration.
13438 * findvar.c (_initialize_findvar): Add declaration.
13439 * fork-child.c (_initialize_fork_child): Add declaration.
13440 * frame-base.c (_initialize_frame_base): Add declaration.
13441 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
13442 * frame.c (_initialize_frame): Add declaration.
13443 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
13444 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
13445 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
13446 * gcore.c (_initialize_gcore): Add declaration.
13447 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
13448 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
13449 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
13450 * gdbarch.c (_initialize_gdbarch): Add declaration.
13451 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
13452 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
13453 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
13454 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
13455 * go-lang.c (_initialize_go_language): Add declaration.
13456 * go32-nat.c (_initialize_go32_nat): Add declaration.
13457 * guile/guile.c (_initialize_guile): Add declaration.
13458 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
13459 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
13460 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
13461 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
13462 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
13463 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
13464 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
13465 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
13466 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
13467 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
13468 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
13469 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
13470 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
13471 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
13472 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
13473 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
13474 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
13475 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
13476 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
13477 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
13478 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
13479 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
13480 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
13481 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
13482 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
13483 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
13484 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
13485 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
13486 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
13487 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
13488 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
13489 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
13490 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
13491 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
13492 * infcall.c (_initialize_infcall): Add declaration.
13493 * infcmd.c (_initialize_infcmd): Add declaration.
13494 * inflow.c (_initialize_inflow): Add declaration.
13495 * infrun.c (_initialize_infrun): Add declaration.
13496 * interps.c (_initialize_interpreter): Add declaration.
13497 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
13498 * jit.c (_initialize_jit): Add declaration.
13499 * language.c (_initialize_language): Add declaration.
13500 * linux-fork.c (_initialize_linux_fork): Add declaration.
13501 * linux-nat.c (_initialize_linux_nat): Add declaration.
13502 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
13503 * linux-thread-db.c (_initialize_thread_db): Add declaration.
13504 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
13505 * m2-lang.c (_initialize_m2_language): Add declaration.
13506 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
13507 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
13508 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
13509 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
13510 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
13511 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
13512 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
13513 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
13514 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
13515 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
13516 * machoread.c (_initialize_machoread): Add declaration.
13517 * macrocmd.c (_initialize_macrocmd): Add declaration.
13518 * macroscope.c (_initialize_macroscope): Add declaration.
13519 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
13520 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
13521 * maint.c (_initialize_maint_cmds): Add declaration.
13522 * mdebugread.c (_initialize_mdebugread): Add declaration.
13523 * memattr.c (_initialize_mem): Add declaration.
13524 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
13525 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
13526 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
13527 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
13528 * mi/mi-main.c (_initialize_mi_main): Add declaration.
13529 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
13530 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
13531 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
13532 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
13533 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
13534 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
13535 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
13536 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
13537 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
13538 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
13539 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
13540 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
13541 * mipsread.c (_initialize_mipsread): Add declaration.
13542 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
13543 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
13544 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
13545 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
13546 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
13547 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
13548 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
13549 * nto-procfs.c (_initialize_procfs): Add declaration.
13550 * objc-lang.c (_initialize_objc_language): Add declaration.
13551 * observable.c (_initialize_observer): Add declaration.
13552 * opencl-lang.c (_initialize_opencl_language): Add declaration.
13553 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
13554 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
13555 * osabi.c (_initialize_gdb_osabi): Add declaration.
13556 * osdata.c (_initialize_osdata): Add declaration.
13557 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
13558 * parse.c (_initialize_parse): Add declaration.
13559 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
13560 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
13561 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
13562 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
13563 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
13564 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
13565 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
13566 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
13567 * printcmd.c (_initialize_printcmd): Add declaration.
13568 * probe.c (_initialize_probe): Add declaration.
13569 * proc-api.c (_initialize_proc_api): Add declaration.
13570 * proc-events.c (_initialize_proc_events): Add declaration.
13571 * proc-service.c (_initialize_proc_service): Add declaration.
13572 * procfs.c (_initialize_procfs): Add declaration.
13573 * producer.c (_initialize_producer): Add declaration.
13574 * psymtab.c (_initialize_psymtab): Add declaration.
13575 * python/python.c (_initialize_python): Add declaration.
13576 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
13577 * record-btrace.c (_initialize_record_btrace): Add declaration.
13578 * record-full.c (_initialize_record_full): Add declaration.
13579 * record.c (_initialize_record): Add declaration.
13580 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
13581 * regcache.c (_initialize_regcache): Add declaration.
13582 * reggroups.c (_initialize_reggroup): Add declaration.
13583 * remote-notif.c (_initialize_notif): Add declaration.
13584 * remote-sim.c (_initialize_remote_sim): Add declaration.
13585 * remote.c (_initialize_remote): Add declaration.
13586 * reverse.c (_initialize_reverse): Add declaration.
13587 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
13588 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
13589 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
13590 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
13591 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
13592 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
13593 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
13594 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
13595 Add declaration.
13596 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
13597 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
13598 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
13599 * rust-exp.y (_initialize_rust_exp): Add declaration.
13600 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
13601 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
13602 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
13603 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
13604 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
13605 * score-tdep.c (_initialize_score_tdep): Add declaration.
13606 * ser-go32.c (_initialize_ser_dos): Add declaration.
13607 * ser-mingw.c (_initialize_ser_windows): Add declaration.
13608 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
13609 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
13610 * ser-uds.c (_initialize_ser_socket): Add declaration.
13611 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
13612 * serial.c (_initialize_serial): Add declaration.
13613 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
13614 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
13615 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
13616 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
13617 * skip.c (_initialize_step_skip): Add declaration.
13618 * sol-thread.c (_initialize_sol_thread): Add declaration.
13619 * solib-aix.c (_initialize_solib_aix): Add declaration.
13620 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
13621 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
13622 * solib-frv.c (_initialize_frv_solib): Add declaration.
13623 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
13624 * solib-target.c (_initialize_solib_target): Add declaration.
13625 * solib.c (_initialize_solib): Add declaration.
13626 * source-cache.c (_initialize_source_cache): Add declaration.
13627 * source.c (_initialize_source): Add declaration.
13628 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
13629 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
13630 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
13631 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
13632 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
13633 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
13634 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
13635 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
13636 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
13637 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
13638 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
13639 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
13640 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
13641 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
13642 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
13643 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
13644 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
13645 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
13646 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
13647 * stabsread.c (_initialize_stabsread): Add declaration.
13648 * stack.c (_initialize_stack): Add declaration.
13649 * stap-probe.c (_initialize_stap_probe): Add declaration.
13650 * std-regs.c (_initialize_frame_reg): Add declaration.
13651 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
13652 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
13653 * symfile.c (_initialize_symfile): Add declaration.
13654 * symmisc.c (_initialize_symmisc): Add declaration.
13655 * symtab.c (_initialize_symtab): Add declaration.
13656 * target.c (_initialize_target): Add declaration.
13657 * target-connection.c (_initialize_target_connection): Add
13658 declaration.
13659 * target-dcache.c (_initialize_target_dcache): Add declaration.
13660 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
13661 * thread.c (_initialize_thread): Add declaration.
13662 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
13663 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
13664 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
13665 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
13666 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
13667 * tracectf.c (_initialize_ctf): Add declaration.
13668 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
13669 * tracefile.c (_initialize_tracefile): Add declaration.
13670 * tracepoint.c (_initialize_tracepoint): Add declaration.
13671 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
13672 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
13673 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
13674 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
13675 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
13676 * tui/tui-win.c (_initialize_tui_win): Add declaration.
13677 * tui/tui.c (_initialize_tui): Add declaration.
13678 * typeprint.c (_initialize_typeprint): Add declaration.
13679 * ui-style.c (_initialize_ui_style): Add declaration.
13680 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
13681 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
13682 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
13683 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
13684 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
13685 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
13686 * unittests/filtered_iterator-selftests.c
13687 (_initialize_filtered_iterator_selftests): Add declaration.
13688 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
13689 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
13690 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
13691 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
13692 * unittests/main-thread-selftests.c
13693 (_initialize_main_thread_selftests): Add declaration.
13694 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
13695 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
13696 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
13697 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
13698 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
13699 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
13700 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
13701 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
13702 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
13703 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
13704 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
13705 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
13706 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
13707 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
13708 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
13709 declaration.
13710 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
13711 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
13712 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
13713 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
13714 * user-regs.c (_initialize_user_regs): Add declaration.
13715 * utils.c (_initialize_utils): Add declaration.
13716 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
13717 * valops.c (_initialize_valops): Add declaration.
13718 * valprint.c (_initialize_valprint): Add declaration.
13719 * value.c (_initialize_values): Add declaration.
13720 * varobj.c (_initialize_varobj): Add declaration.
13721 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
13722 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
13723 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
13724 * windows-nat.c (_initialize_windows_nat): Add declaration.
13725 (_initialize_check_for_gdb_ini): Add declaration.
13726 (_initialize_loadable): Add declaration.
13727 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
13728 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
13729 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
13730 * xcoffread.c (_initialize_xcoffread): Add declaration.
13731 * xml-support.c (_initialize_xml_support): Add declaration.
13732 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
13733 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
13734 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
13735 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
13736
13737 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13738
13739 * regformats/regdat.sh: Generate declaration for init function.
13740
13741 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13742
13743 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
13744 up.
13745 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
13746 close_one_inferior>: New methods.
13747 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
13748 pass down target to find_inferior_pid.
13749 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
13750 Pass down target to find_inferior_ptid.
13751 (gdbsim_target::create_inferior): Pass down target to
13752 add_thread_silent.
13753 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
13754 target down to find_inferior_ptid and switch_to_thread.
13755 (gdbsim_target::close): Update to call close_one_inferior.
13756 (struct resume_data): Remove.
13757 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
13758 directly, rather than through a void pointer.
13759 (gdbsim_target::resume): Update to call resume_one_inferior.
13760
13761 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
13762
13763 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
13764
13765 2020-01-12 Pedro Alves <palves@redhat.com>
13766
13767 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
13768 directly for the current inferior instead of
13769 discard_all_inferiors.
13770 (discard_all_inferiors): Delete.
13771
13772 2020-01-11 Tom Tromey <tom@tromey.com>
13773
13774 * tui/tui-wingeneral.c (box_win): Check cli_styling.
13775 * tui/tui-winsource.c (tui_source_window_base::refill): Use
13776 deprecated_safe_get_selected_frame.
13777
13778 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13779
13780 * inferior.c (print_inferior): Switch inferior before printing it.
13781
13782 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
13783 Pedro Alves <palves@redhat.com>
13784
13785 * progspace-and-thread.c (switch_to_program_space_and_thread):
13786 Assert there's an inferior for PSPACE. Use
13787 switch_to_inferior_no_thread to switch the inferior too.
13788 * progspace.c (program_space::~program_space): Call
13789 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
13790 (program_space::free_all_objfiles): Don't call clear_symtab_users
13791 here.
13792 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
13793
13794 2020-01-10 Pedro Alves <palves@redhat.com>
13795
13796 * NEWS: Mention multi-target debugging, "info connections", and
13797 "add-inferior -no-connection".
13798
13799 2020-01-10 Pedro Alves <palves@redhat.com>
13800
13801 * infrun.c: Include "target-connection.h".
13802 (check_multi_target_resumption): New.
13803 (proceed): Call it.
13804 * target-connection.c (make_target_connection_string): Make
13805 extern.
13806 * target-connection.h (make_target_connection_string): Declare.
13807
13808 2020-01-10 Pedro Alves <palves@redhat.com>
13809
13810 * Makefile.in (COMMON_SFILES): Add target-connection.c.
13811 * inferior.c (uiout_field_connection): New function.
13812 (print_inferior): Add new "connection-id" column.
13813 (add_inferior_command): Show connection number/string of added
13814 inferior.
13815 * process-stratum-target.h
13816 (process_stratum_target::connection_string): New virtual method.
13817 (process_stratum_target::connection_number): New field.
13818 * remote.c (remote_target::connection_string): New override.
13819 * target-connection.c: New file.
13820 * target-connection.h: New file.
13821 * target.c (decref_target): Remove process_stratum targets from
13822 the connection list.
13823 (target_stack::push): Add process_stratum targets to the
13824 connection list.
13825
13826 2020-01-10 Pedro Alves <palves@redhat.com>
13827
13828 Revert:
13829 2016-04-12 Pedro Alves <palves@redhat.com>
13830 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
13831 Remove references to name.
13832 * serial.h (struct serial) <name>: Delete.
13833
13834 2020-01-10 Pedro Alves <palves@redhat.com>
13835
13836 * gdbarch-selftests.c (register_to_value_test): Remove "target
13837 already pushed" check.
13838
13839 2020-01-10 Pedro Alves <palves@redhat.com>
13840 John Baldwin <jhb@FreeBSD.org>
13841
13842 * aarch64-linux-nat.c
13843 (aarch64_linux_nat_target::thread_architecture): Adjust.
13844 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
13845 (task_command_1): Likewise.
13846 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
13847 (aix_thread_target::wait, aix_thread_target::fetch_registers)
13848 (aix_thread_target::store_registers)
13849 (aix_thread_target::thread_alive): Adjust.
13850 * amd64-fbsd-tdep.c: Include "inferior.h".
13851 (amd64fbsd_get_thread_local_address): Pass down target.
13852 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
13853 thread's gdbarch instead of target_gdbarch.
13854 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
13855 get_last_target_status.
13856 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
13857 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
13858 inferiors.
13859 (update_inserted_breakpoint_locations): Skip if inferiors with no
13860 execution.
13861 (update_global_location_list): When handling moribund locations,
13862 find representative inferior for location's pspace, and use thread
13863 count of its process_stratum target.
13864 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
13865 * bsd-uthread.c (bsd_uthread_target::wait): Use
13866 as_process_stratum_target and adjust thread_change_ptid and
13867 add_thread calls.
13868 (bsd_uthread_target::update_thread_list): Use
13869 as_process_stratum_target and adjust find_thread_ptid,
13870 thread_change_ptid and add_thread calls.
13871 * btrace.c (maint_btrace_packet_history_cmd): Adjust
13872 find_thread_ptid call.
13873 * corelow.c (add_to_thread_list): Adjust add_thread call.
13874 (core_target_open): Adjust add_thread_silent and thread_count
13875 calls.
13876 (core_target::pid_to_str): Adjust find_inferior_ptid call.
13877 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
13878 * event-top.c (async_disconnect): Pop targets from all inferiors.
13879 * exec.c (add_target_sections): Push exec target on all inferiors
13880 sharing the program space.
13881 (remove_target_sections): Remove the exec target from all
13882 inferiors sharing the program space.
13883 (exec_on_vfork): New.
13884 * exec.h (exec_on_vfork): Declare.
13885 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
13886 Pass it down.
13887 (fbsd_nat_target::update_thread_list): Adjust.
13888 (fbsd_nat_target::resume): Adjust.
13889 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
13890 down.
13891 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
13892 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
13893 get_thread_arch_regcache call.
13894 * fork-child.c (gdb_startup_inferior): Pass target down to
13895 startup_inferior and set_executing.
13896 * gdbthread.h (struct process_stratum_target): Forward declare.
13897 (add_thread, add_thread_silent, add_thread_with_info)
13898 (in_thread_list): Add process_stratum_target parameter.
13899 (find_thread_ptid(inferior*, ptid_t)): New overload.
13900 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
13901 parameter.
13902 (all_threads()): Delete overload.
13903 (all_threads, all_non_exited_threads): Add process_stratum_target
13904 parameter.
13905 (all_threads_safe): Use brace initialization.
13906 (thread_count): Add process_stratum_target parameter.
13907 (set_resumed, set_running, set_stop_requested, set_executing)
13908 (threads_are_executing, finish_thread_state): Add
13909 process_stratum_target parameter.
13910 (switch_to_thread): Use is_current_thread.
13911 * i386-fbsd-tdep.c: Include "inferior.h".
13912 (i386fbsd_get_thread_local_address): Pass down target.
13913 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
13914 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
13915 have_inferiors check.
13916 * inf-ptrace.c (inf_ptrace_target::create_inferior)
13917 (inf_ptrace_target::attach): Adjust.
13918 * infcall.c (run_inferior_call): Adjust.
13919 * infcmd.c (run_command_1): Pass target to
13920 scoped_finish_thread_state.
13921 (proceed_thread_callback): Skip inferiors with no execution.
13922 (continue_command): Rename 'all_threads' local to avoid hiding
13923 'all_threads' function. Adjust get_last_target_status call.
13924 (prepare_one_step): Adjust set_running call.
13925 (signal_command): Use user_visible_resume_target. Compare thread
13926 pointers instead of inferior_ptid.
13927 (info_program_command): Adjust to pass down target.
13928 (attach_command): Mark target's 'thread_executing' flag.
13929 (stop_current_target_threads_ns): New, factored out from ...
13930 (interrupt_target_1): ... this. Switch inferior before making
13931 target calls.
13932 * inferior-iter.h
13933 (struct all_inferiors_iterator, struct all_inferiors_range)
13934 (struct all_inferiors_safe_range)
13935 (struct all_non_exited_inferiors_range): Filter on
13936 process_stratum_target too. Remove explicit.
13937 * inferior.c (inferior::inferior): Push dummy target on target
13938 stack.
13939 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
13940 Add process_stratum_target parameter, and pass it down.
13941 (have_live_inferiors): Adjust.
13942 (switch_to_inferior_and_push_target): New.
13943 (add_inferior_command, clone_inferior_command): Handle
13944 "-no-connection" parameter. Use
13945 switch_to_inferior_and_push_target.
13946 (_initialize_inferior): Mention "-no-connection" option in
13947 the help of "add-inferior" and "clone-inferior" commands.
13948 * inferior.h: Include "process-stratum-target.h".
13949 (interrupt_target_1): Use bool.
13950 (struct inferior) <push_target, unpush_target, target_is_pushed,
13951 find_target_beneath, top_target, process_target, target_at,
13952 m_stack>: New.
13953 (discard_all_inferiors): Delete.
13954 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
13955 (all_inferiors, all_non_exited_inferiors): Add
13956 process_stratum_target parameter.
13957 * infrun.c: Include "gdb_select.h" and <unordered_map>.
13958 (target_last_proc_target): New global.
13959 (follow_fork_inferior): Push target on new inferior. Pass target
13960 to add_thread_silent. Call exec_on_vfork. Handle target's
13961 reference count.
13962 (follow_fork): Adjust get_last_target_status call. Also consider
13963 target.
13964 (follow_exec): Push target on new inferior.
13965 (struct execution_control_state) <target>: New field.
13966 (user_visible_resume_target): New.
13967 (do_target_resume): Call target_async.
13968 (resume_1): Set target's threads_executing flag. Consider resume
13969 target.
13970 (commit_resume_all_targets): New.
13971 (proceed): Also consider resume target. Skip threads of inferiors
13972 with no execution. Commit resumtion in all targets.
13973 (start_remote): Pass current inferior to wait_for_inferior.
13974 (infrun_thread_stop_requested): Consider target as well. Pass
13975 thread_info pointer to clear_inline_frame_state instead of ptid.
13976 (infrun_thread_thread_exit): Consider target as well.
13977 (random_pending_event_thread): New inferior parameter. Use it.
13978 (do_target_wait): Rename to ...
13979 (do_target_wait_1): ... this. Add inferior parameter, and pass it
13980 down.
13981 (threads_are_resumed_pending_p, do_target_wait): New.
13982 (prepare_for_detach): Adjust calls.
13983 (wait_for_inferior): New inferior parameter. Handle it. Use
13984 do_target_wait_1 instead of do_target_wait.
13985 (fetch_inferior_event): Adjust. Switch to representative
13986 inferior. Pass target down.
13987 (set_last_target_status): Add process_stratum_target parameter.
13988 Save target in global.
13989 (get_last_target_status): Add process_stratum_target parameter and
13990 handle it.
13991 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
13992 (context_switch): Check inferior_ptid == null_ptid before calling
13993 inferior_thread().
13994 (get_inferior_stop_soon): Pass down target.
13995 (wait_one): Rename to ...
13996 (poll_one_curr_target): ... this.
13997 (struct wait_one_event): New.
13998 (wait_one): New.
13999 (stop_all_threads): Adjust.
14000 (handle_no_resumed, handle_inferior_event): Adjust to consider the
14001 event's target.
14002 (switch_back_to_stepped_thread): Also consider target.
14003 (print_stop_event): Update.
14004 (normal_stop): Update. Also consider the resume target.
14005 * infrun.h (wait_for_inferior): Remove declaration.
14006 (user_visible_resume_target): New declaration.
14007 (get_last_target_status, set_last_target_status): New
14008 process_stratum_target parameter.
14009 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
14010 process_stratum_target parameter, and use it.
14011 (clear_inline_frame_state (thread_info*)): New.
14012 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
14013 process_stratum_target parameter.
14014 (clear_inline_frame_state (thread_info*)): Declare.
14015 * linux-fork.c (delete_checkpoint_command): Pass target down to
14016 find_thread_ptid.
14017 (checkpoint_command): Adjust.
14018 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
14019 instead of just tweaking inferior_ptid.
14020 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
14021 (exit_lwp): Pass target down to find_thread_ptid.
14022 (attach_proc_task_lwp_callback): Pass target down to
14023 add_thread/set_running/set_executing.
14024 (linux_nat_target::attach): Pass target down to
14025 thread_change_ptid.
14026 (get_detach_signal): Pass target down to find_thread_ptid.
14027 Consider last target status's target.
14028 (linux_resume_one_lwp_throw, resume_lwp)
14029 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
14030 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
14031 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
14032 (linux_nat_target::async_wait_fd): New.
14033 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
14034 target down.
14035 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
14036 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
14037 * linux-thread-db.c (struct thread_db_info::process_target): New
14038 field.
14039 (add_thread_db_info): Save target.
14040 (get_thread_db_info): New process_stratum_target parameter. Also
14041 match target.
14042 (delete_thread_db_info): New process_stratum_target parameter.
14043 Also match target.
14044 (thread_from_lwp): Adjust to pass down target.
14045 (thread_db_notice_clone): Pass down target.
14046 (check_thread_db_callback): Pass down target.
14047 (try_thread_db_load_1): Always push the thread_db target.
14048 (try_thread_db_load, record_thread): Pass target down.
14049 (thread_db_target::detach): Pass target down. Always unpush the
14050 thread_db target.
14051 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
14052 target down. Always unpush the thread_db target.
14053 (find_new_threads_callback, thread_db_find_new_threads_2)
14054 (thread_db_target::update_thread_list): Pass target down.
14055 (thread_db_target::pid_to_str): Pass current inferior down.
14056 (thread_db_target::get_thread_local_address): Pass target down.
14057 (thread_db_target::resume, maintenance_check_libthread_db): Pass
14058 target down.
14059 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
14060 * procfs.c (procfs_target::procfs_init_inferior): Declare.
14061 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
14062 (procfs_init_inferior): Rename to ...
14063 (procfs_target::procfs_init_inferior): ... this and adjust.
14064 (procfs_target::create_inferior, procfs_notice_thread)
14065 (procfs_do_thread_registers): Adjust.
14066 * ppc-fbsd-tdep.c: Include "inferior.h".
14067 (ppcfbsd_get_thread_local_address): Pass down target.
14068 * proc-service.c (ps_xfer_memory): Switch current inferior and
14069 program space as well.
14070 (get_ps_regcache): Pass target down.
14071 * process-stratum-target.c
14072 (process_stratum_target::thread_address_space)
14073 (process_stratum_target::thread_architecture): Pass target down.
14074 * process-stratum-target.h
14075 (process_stratum_target::threads_executing): New field.
14076 (as_process_stratum_target): New.
14077 * ravenscar-thread.c
14078 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
14079 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
14080 down.
14081 * record-btrace.c (record_btrace_target::info_record): Adjust.
14082 (record_btrace_target::record_method)
14083 (record_btrace_target::record_is_replaying)
14084 (record_btrace_target::fetch_registers)
14085 (get_thread_current_frame_id, record_btrace_target::resume)
14086 (record_btrace_target::wait, record_btrace_target::stop): Pass
14087 target down.
14088 * record-full.c (record_full_wait_1): Switch to event thread.
14089 Pass target down.
14090 * regcache.c (regcache::regcache)
14091 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
14092 process_stratum_target parameter and handle it.
14093 (current_thread_target): New global.
14094 (get_thread_regcache): Add process_stratum_target parameter and
14095 handle it. Switch inferior before calling target method.
14096 (get_thread_regcache): Pass target down.
14097 (get_thread_regcache_for_ptid): Pass target down.
14098 (registers_changed_ptid): Add process_stratum_target parameter and
14099 handle it.
14100 (registers_changed_thread, registers_changed): Pass target down.
14101 (test_get_thread_arch_aspace_regcache): New.
14102 (current_regcache_test): Define a couple local test_target_ops
14103 instances and use them for testing.
14104 (readwrite_regcache): Pass process_stratum_target parameter.
14105 (cooked_read_test, cooked_write_test): Pass mock_target down.
14106 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
14107 (get_thread_arch_aspace_regcache): Add process_stratum_target
14108 parameter.
14109 (regcache::target): New method.
14110 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
14111 (regcache::registers_changed_ptid): Add process_stratum_target
14112 parameter.
14113 (regcache::m_target): New field.
14114 (registers_changed_ptid): Add process_stratum_target parameter.
14115 * remote.c (remote_state::supports_vCont_probed): New field.
14116 (remote_target::async_wait_fd): New method.
14117 (remote_unpush_and_throw): Add remote_target parameter.
14118 (get_current_remote_target): Adjust.
14119 (remote_target::remote_add_inferior): Push target.
14120 (remote_target::remote_add_thread)
14121 (remote_target::remote_notice_new_inferior)
14122 (get_remote_thread_info): Pass target down.
14123 (remote_target::update_thread_list): Skip threads of inferiors
14124 bound to other targets. (remote_target::close): Don't discard
14125 inferiors. (remote_target::add_current_inferior_and_thread)
14126 (remote_target::process_initial_stop_replies)
14127 (remote_target::start_remote)
14128 (remote_target::remote_serial_quit_handler): Pass down target.
14129 (remote_target::remote_unpush_target): New remote_target
14130 parameter. Unpush the target from all inferiors.
14131 (remote_target::remote_unpush_and_throw): New remote_target
14132 parameter. Pass it down.
14133 (remote_target::open_1): Check whether the current inferior has
14134 execution instead of checking whether any inferior is live. Pass
14135 target down.
14136 (remote_target::remote_detach_1): Pass down target. Use
14137 remote_unpush_target.
14138 (extended_remote_target::attach): Pass down target.
14139 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
14140 (remote_target::append_resumption): Pass down target.
14141 (remote_target::append_pending_thread_resumptions)
14142 (remote_target::remote_resume_with_hc, remote_target::resume)
14143 (remote_target::commit_resume): Pass down target.
14144 (remote_target::remote_stop_ns): Check supports_vCont_probed.
14145 (remote_target::interrupt_query)
14146 (remote_target::remove_new_fork_children)
14147 (remote_target::check_pending_events_prevent_wildcard_vcont)
14148 (remote_target::remote_parse_stop_reply)
14149 (remote_target::process_stop_reply): Pass down target.
14150 (first_remote_resumed_thread): New remote_target parameter. Pass
14151 it down.
14152 (remote_target::wait_as): Pass down target.
14153 (unpush_and_perror): New remote_target parameter. Pass it down.
14154 (remote_target::readchar, remote_target::remote_serial_write)
14155 (remote_target::getpkt_or_notif_sane_1)
14156 (remote_target::kill_new_fork_children, remote_target::kill): Pass
14157 down target.
14158 (remote_target::mourn_inferior): Pass down target. Use
14159 remote_unpush_target.
14160 (remote_target::core_of_thread)
14161 (remote_target::remote_btrace_maybe_reopen): Pass down target.
14162 (remote_target::pid_to_exec_file)
14163 (remote_target::thread_handle_to_thread_info): Pass down target.
14164 (remote_target::async_wait_fd): New.
14165 * riscv-fbsd-tdep.c: Include "inferior.h".
14166 (riscv_fbsd_get_thread_local_address): Pass down target.
14167 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
14168 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
14169 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
14170 Adjust.
14171 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
14172 * solib-svr4.c (enable_break): Pass down target.
14173 * spu-multiarch.c (parse_spufs_run): Pass down target.
14174 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
14175 * target-delegates.c: Regenerate.
14176 * target.c (g_target_stack): Delete.
14177 (current_top_target): Return the current inferior's top target.
14178 (target_has_execution_1): Refer to the passed-in inferior's top
14179 target.
14180 (target_supports_terminal_ours): Check whether the initial
14181 inferior was already created.
14182 (decref_target): New.
14183 (target_stack::push): Incref/decref the target.
14184 (push_target, push_target, unpush_target): Adjust.
14185 (target_stack::unpush): Defref target.
14186 (target_is_pushed): Return bool. Adjust to refer to the current
14187 inferior's target stack.
14188 (dispose_inferior): Delete, and inline parts ...
14189 (target_preopen): ... here. Only dispose of the current inferior.
14190 (target_detach): Hold strong target reference while detaching.
14191 Pass target down.
14192 (target_thread_name): Add assertion.
14193 (target_resume): Pass down target.
14194 (target_ops::beneath, find_target_at): Adjust to refer to the
14195 current inferior's target stack.
14196 (get_dummy_target): New.
14197 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
14198 has a thread running.
14199 (initialize_targets): Rename to ...
14200 (_initialize_target): ... this.
14201 * target.h: Include "gdbsupport/refcounted-object.h".
14202 (struct target_ops): Inherit refcounted_object.
14203 (target_ops::shortname, target_ops::longname): Make const.
14204 (target_ops::async_wait_fd): New method.
14205 (decref_target): Declare.
14206 (struct target_ops_ref_policy): New.
14207 (target_ops_ref): New typedef.
14208 (get_dummy_target): Declare function.
14209 (target_is_pushed): Return bool.
14210 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
14211 (all_matching_threads_iterator::all_matching_threads_iterator):
14212 Handle filter target.
14213 * thread-iter.h (struct all_matching_threads_iterator, struct
14214 all_matching_threads_range, class all_non_exited_threads_range):
14215 Filter by target too. Remove explicit.
14216 * thread.c (threads_executing): Delete.
14217 (inferior_thread): Pass down current inferior.
14218 (clear_thread_inferior_resources): Pass down thread pointer
14219 instead of ptid_t.
14220 (add_thread_silent, add_thread_with_info, add_thread): Add
14221 process_stratum_target parameter. Use it for thread and inferior
14222 searches.
14223 (is_current_thread): New.
14224 (thread_info::deletable): Use it.
14225 (find_thread_ptid, thread_count, in_thread_list)
14226 (thread_change_ptid, set_resumed, set_running): New
14227 process_stratum_target parameter. Pass it down.
14228 (set_executing): New process_stratum_target parameter. Pass it
14229 down. Adjust reference to 'threads_executing'.
14230 (threads_are_executing): New process_stratum_target parameter.
14231 Adjust reference to 'threads_executing'.
14232 (set_stop_requested, finish_thread_state): New
14233 process_stratum_target parameter. Pass it down.
14234 (switch_to_thread): Also match inferior.
14235 (switch_to_thread): New process_stratum_target parameter. Pass it
14236 down.
14237 (update_threads_executing): Reimplement.
14238 * top.c (quit_force): Pop targets from all inferior.
14239 (gdb_init): Don't call initialize_targets.
14240 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
14241 Declare.
14242 (windows_add_thread, windows_delete_thread): Adjust.
14243 (get_windows_debug_event): Rename to ...
14244 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
14245 * tracefile-tfile.c (tfile_target_open): Pass down target.
14246 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
14247 Forward declare.
14248 (switch_to_thread): Add process_stratum_target parameter.
14249 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
14250 parameter. Use it.
14251 (mi_on_resume): Pass target down.
14252 * nat/fork-inferior.c (startup_inferior): Add
14253 process_stratum_target parameter. Pass it down.
14254 * nat/fork-inferior.h (startup_inferior): Add
14255 process_stratum_target parameter.
14256 * python/py-threadevent.c (py_get_event_thread): Pass target down.
14257
14258 2020-01-10 Pedro Alves <palves@redhat.com>
14259
14260 * remote.c (remote_target::start_remote): Don't set inferior_ptid
14261 directly. Instead find the first thread in the thread list and
14262 use switch_to_thread.
14263
14264 2020-01-10 Pedro Alves <palves@redhat.com>
14265
14266 * remote.c (remote_target::remote_add_inferior): Don't bind a
14267 process to the current inferior if the current inferior is already
14268 bound to a process.
14269
14270 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14271 Pedro Alves <palves@redhat.com>
14272
14273 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
14274 If no process is specified, return null_ptid instead of
14275 inferior_ptid.
14276 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
14277 TARGET_WAITKIND_SIGNALLED with no pid.
14278
14279 2020-01-10 Pedro Alves <palves@redhat.com>
14280
14281 * remote.c (first_remote_resumed_thread): New.
14282 (remote_target::wait_as): Use it as default event_ptid instead of
14283 inferior_ptid.
14284
14285 2020-01-10 Pedro Alves <palves@redhat.com>
14286
14287 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
14288
14289 2020-01-10 Pedro Alves <palves@redhat.com>
14290
14291 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
14292 not -1.
14293
14294 2020-01-10 Pedro Alves <palves@redhat.com>
14295
14296 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
14297 ptid to get_last_target_status.
14298 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
14299 ptid to get_last_target_status.
14300 * infcmd.c (continue_command): Don't pass a target_waitstatus to
14301 get_last_target_status.
14302 (info_program_command): Don't pass a target_waitstatus to
14303 get_last_target_status.
14304 * infrun.c (init_wait_for_inferior): Use
14305 nullify_last_target_wait_ptid.
14306 (get_last_target_status): Handle nullptr arguments.
14307 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
14308 (print_stop_event): Don't pass a ptid to get_last_target_status.
14309 (normal_stop): Don't pass a ptid to get_last_target_status.
14310 * infrun.h (get_last_target_status, set_last_target_status): Move
14311 comments here and update.
14312 (nullify_last_target_wait_ptid): Declare.
14313 * linux-fork.c (fork_load_infrun_state): Remove local extern
14314 declaration of nullify_last_target_wait_ptid.
14315 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
14316 to get_last_target_status.
14317
14318 2020-01-10 Pedro Alves <palves@redhat.com>
14319
14320 * gdbthread.h (scoped_restore_current_thread)
14321 <dont_restore, restore, m_dont_restore>: Declare.
14322 * thread.c (thread_alive): Add assertion. Return bool.
14323 (switch_to_thread_if_alive): New.
14324 (prune_threads): Switch inferior/thread.
14325 (print_thread_info_1): Switch thread before calling target methods.
14326 (scoped_restore_current_thread::restore): New, factored out from
14327 ...
14328 (scoped_restore_current_thread::~scoped_restore_current_thread):
14329 ... this.
14330 (scoped_restore_current_thread::scoped_restore_current_thread):
14331 Add assertion.
14332 (thread_apply_all_command, thread_select): Use
14333 switch_to_thread_if_alive.
14334 * infrun.c (proceed, restart_threads, handle_signal_stop)
14335 (switch_back_to_stepped_thread): Switch current thread before
14336 calling target methods.
14337
14338 2020-01-10 Pedro Alves <palves@redhat.com>
14339
14340 * inferior.c (switch_to_inferior_no_thread): New function,
14341 factored out from ...
14342 (inferior_command): ... here.
14343 * inferior.h (switch_to_inferior_no_thread): Declare.
14344 * mi/mi-main.c (run_one_inferior): Use
14345 switch_to_inferior_no_thread.
14346
14347 2020-01-10 Pedro Alves <palves@redhat.com>
14348
14349 * infcmd.c (kill_command): Remove dead code.
14350
14351 2020-01-10 Pedro Alves <palves@redhat.com>
14352
14353 * remote.c (remote_target::mourn_inferior): No longer check
14354 whether the target is running.
14355
14356 2020-01-10 Pedro Alves <palves@redhat.com>
14357
14358 * corelow.c (core_target::has_execution): Change parameter type to
14359 inferior pointer.
14360 * inferior.c (number_of_live_inferiors): Use
14361 inferior::has_execution instead of target_has_execution_1.
14362 * inferior.h (inferior::has_execution): New.
14363 * linux-thread-db.c (thread_db_target::update_thread_list): Use
14364 inferior::has_execution instead of target_has_execution_1.
14365 * process-stratum-target.c
14366 (process_stratum_target::has_execution): Change parameter type to
14367 inferior pointer. Check the inferior's PID instead of
14368 inferior_ptid.
14369 * process-stratum-target.h
14370 (process_stratum_target::has_execution): Change parameter type to
14371 inferior pointer.
14372 * record-full.c (record_full_core_target::has_execution): Change
14373 parameter type to inferior pointer.
14374 * target.c (target_has_execution_1): Change parameter type to
14375 inferior pointer.
14376 (target_has_execution_current): Adjust.
14377 * target.h (target_ops::has_execution): Change parameter type to
14378 inferior pointer.
14379 (target_has_execution_1): Change parameter type to inferior
14380 pointer. Change return type to bool.
14381 * tracefile.h (tracefile_target::has_execution): Change parameter
14382 type to inferior pointer.
14383
14384 2020-01-10 Pedro Alves <palves@redhat.com>
14385
14386 * exceptions.c (print_flush): Remove current_top_target() check.
14387
14388 2020-01-10 Pedro Alves <palves@redhat.com>
14389
14390 * remote.c (show_remote_exec_file): Show the current inferior's
14391 exec-file instead of the command variable's value.
14392
14393 2020-01-10 Pedro Alves <palves@redhat.com>
14394
14395 * record-full.c (record_full_resume_ptid): New global.
14396 (record_full_target::resume): Set it.
14397 (record_full_wait_1): Use record_full_resume_ptid instead of
14398 inferior_ptid.
14399
14400 2020-01-10 Pedro Alves <palves@redhat.com>
14401
14402 * gdbthread.h (scoped_restore_current_thread)
14403 <dont_restore, restore, m_dont_restore>: Declare.
14404 * thread.c (thread_alive): Add assertion. Return bool.
14405 (switch_to_thread_if_alive): New.
14406 (prune_threads): Switch inferior/thread.
14407 (print_thread_info_1): Switch thread before calling target methods.
14408 (scoped_restore_current_thread::restore): New, factored out from
14409 ...
14410 (scoped_restore_current_thread::~scoped_restore_current_thread):
14411 ... this.
14412 (scoped_restore_current_thread::scoped_restore_current_thread):
14413 Add assertion.
14414 (thread_apply_all_command, thread_select): Use
14415 switch_to_thread_if_alive.
14416
14417 2020-01-10 George Barrett <bob@bob131.so>
14418
14419 * stap-probe.c (stap_modify_semaphore): Don't check for null
14420 semaphores.
14421 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
14422 for null semaphores.
14423
14424 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
14425
14426 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
14427 all source windows, and maintain horizontal scroll status while
14428 doing so.
14429
14430 2020-01-09 Tom Tromey <tom@tromey.com>
14431
14432 PR tui/18932:
14433 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
14434 update_source_window, not print_source_lines.
14435
14436 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
14437
14438 * tui/tui.c (tui_enable): Register tui hooks after calling
14439 tui_display_main.
14440
14441 2020-01-09 Christian Biesinger <cbiesinger@google.com>
14442
14443 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
14444
14445 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
14446
14447 * thread.c (print_thread_info_1): Fix indentation.
14448
14449 2020-01-09 Christian Biesinger <cbiesinger@google.com>
14450
14451 * symtab.c (general_symbol_info::compute_and_set_names): Move the
14452 unique_xmalloc_ptr outside the if to always free the demangled name.
14453
14454 2020-01-08 Tom Tromey <tromey@adacore.com>
14455
14456 * xcoffread.c (enter_line_range, read_xcoff_symtab)
14457 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
14458 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
14459 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
14460 Remove.
14461 (section_offsets): New typedef.
14462 * symtab.c (fixup_section, get_msymbol_address): Update.
14463 * symmisc.c (dump_msymbols): Update.
14464 * symfile.h (relative_addr_info_to_section_offsets)
14465 (symfile_map_offsets_to_segments): Update.
14466 * symfile.c (build_section_addr_info_from_objfile)
14467 (init_objfile_sect_indices): Update.
14468 (struct place_section_arg): Change type of "offsets".
14469 (place_section): Update.
14470 (relative_addr_info_to_section_offsets): Change type of
14471 "section_offsets". Remove "num_sections" parameter.
14472 (default_symfile_offsets, syms_from_objfile_1)
14473 (set_objfile_default_section_offset): Update.
14474 (reread_symbols): No need to preserve section offsets by hand.
14475 (symfile_map_offsets_to_segments): Change type of "offsets".
14476 * stap-probe.c (relocate_address): Update.
14477 * stabsread.h (process_one_symbol): Update.
14478 * solib-target.c (struct lm_info_target) <offsets>: Change type.
14479 (solib_target_relocate_section_addresses): Update.
14480 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
14481 Update.
14482 * solib-frv.c (frv_relocate_main_executable): Update.
14483 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
14484 * solib-aix.c (solib_aix_get_section_offsets): Change return
14485 type.
14486 (solib_aix_solib_create_inferior_hook): Update.
14487 * remote.c (remote_target::get_offsets): Update.
14488 * psymtab.c (find_pc_sect_psymtab): Update.
14489 * psympriv.h (struct partial_symbol) <address, text_low,
14490 text_high>: Update.
14491 * objfiles.h (obj_section_offset): Update.
14492 (struct objfile) <section_offsets>: Change type.
14493 <num_sections>: Remove.
14494 (objfile_relocate): Update.
14495 * objfiles.c (entry_point_address_query): Update
14496 (relocate_one_symbol): Change type of "section_offsets".
14497 (objfile_relocate1, objfile_relocate1): Change type of
14498 "new_offsets".
14499 (objfile_rebase1): Update.
14500 * mipsread.c (mipscoff_symfile_read): Update.
14501 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
14502 parameter.
14503 * mdebugread.c (parse_symbol): Change type of "section_offsets".
14504 (parse_external, psymtab_to_symtab_1): Update.
14505 * machoread.c (macho_symfile_offsets): Update.
14506 * ia64-tdep.c (ia64_find_unwind_table): Update.
14507 * hppa-tdep.c (read_unwind_info): Update.
14508 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
14509 * dwarf2read.c (create_addrmap_from_index)
14510 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
14511 (process_psymtab_comp_unit_reader, add_partial_symbol)
14512 (add_partial_subprogram, process_full_comp_unit)
14513 (read_file_scope, read_func_scope, read_lexical_block_scope)
14514 (read_call_site_scope, dwarf2_rnglists_process)
14515 (dwarf2_ranges_process, dwarf2_ranges_read)
14516 (dwarf_decode_lines_1, var_decode_location, new_symbol)
14517 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
14518 Update.
14519 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
14520 Update.
14521 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
14522 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
14523 (process_one_symbol): Change type of "section_offsets".
14524 * ctfread.c (get_objfile_text_range): Update.
14525 * coffread.c (coff_symtab_read, enter_linenos)
14526 (process_coff_symbol): Update.
14527 * coff-pe-read.c (add_pe_forwarded_sym): Update.
14528 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
14529
14530 2020-01-08 Tom Tromey <tromey@adacore.com>
14531
14532 * dwarf2read.c (parse_macro_definition): Use std::string.
14533 (parse_macro_definition): Likewise.
14534
14535 2020-01-08 Tom Tromey <tromey@adacore.com>
14536
14537 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
14538 (ATTR_ALLOC_CHUNK): Remove.
14539
14540 2020-01-08 Tom Tromey <tromey@adacore.com>
14541
14542 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
14543
14544 2020-01-08 Tom Tromey <tromey@adacore.com>
14545
14546 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
14547 (dwarf2_compute_name, open_dwo_file): Likewise.
14548 (process_enumeration_scope): Use std::vector.
14549 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
14550 (partial_die_info::fixup, dwarf2_start_subfile)
14551 (guess_full_die_structure_name, dwarf2_name): Likewise.
14552 (determine_prefix): Update.
14553 (guess_full_die_structure_name): Make return type const.
14554 (partial_die_full_name): Return unique_xmalloc_ptr.
14555 (DW_FIELD_ALLOC_CHUNK): Remove.
14556
14557 2020-01-07 Tom Tromey <tromey@adacore.com>
14558
14559 PR build/24937:
14560 * stap-probe.c (class stap_static_probe_ops): Add constructor.
14561
14562 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
14563
14564 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
14565
14566 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
14567
14568 * stack.c (print_frame_info): Move disassemble_next_line code
14569 inside source_print block.
14570
14571 2020-01-06 Eli Zaretskii <eliz@gnu.org>
14572
14573 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
14574 gdb/signals.h, as we are now using native signal symbols.
14575
14576 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
14577
14578 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
14579 overflow by an early check of content vs threshold.
14580 * tui/tui-source.c (tui_source_window::line_is_displayed):
14581 Likewise.
14582
14583 2020-01-06 Eli Zaretskii <eliz@gnu.org>
14584
14585 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
14586
14587 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
14588
14589 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
14590 export table if no section contains it's RVA.
14591
14592 2020-01-06 Eli Zaretskii <eliz@gnu.org>
14593
14594 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
14595
14596 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
14597
14598 * source.c (print_source_lines_base): Set last_line_listed.
14599
14600 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
14601
14602 * tui/tui-disasm.c: Remove trailing spaces.
14603
14604 2020-01-06 Eli Zaretskii <eliz@gnu.org>
14605 Pedro Alves <palves@redhat.com>
14606
14607 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
14608 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
14609 (windows_gdb_signal_to_target): New function, uses the above
14610 enumeration to convert GDB internal signal codes to equivalent
14611 Windows codes.
14612 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
14613 * windows-nat.c: Include "gdb_wait.h".
14614 (get_windows_debug_event): Extract the fatal exception from the
14615 exit status and convert to the equivalent Posix signal number.
14616 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
14617 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
14618 * gdbsupport/gdb_wait.c: New file, implements
14619 windows_status_to_termsig.
14620 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
14621 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
14622
14623 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
14624
14625 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
14626 show_layout.
14627
14628 2020-01-05 Luis Machado <luis.machado@linaro.org>
14629
14630 * aarch64-linux-nat.c
14631 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
14632 and bfd_mach_aarch64.
14633
14634 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14635
14636 * ui-file.c (stdio_file::can_emit_style_escape)
14637 (tee_file::can_emit_style_escape): Ensure style is used also on
14638 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
14639 to gdb_stdout.
14640 * main.c (set_gdb_data_directory): Use file style to output the
14641 warning that the given pathname is not a directory.
14642 * top.c (show_history_filename, gdb_safe_append_history)
14643 (show_gdb_datadir): Use file style.
14644
14645 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
14646
14647 * solib-target.c (struct lm_info_target):
14648 Change offsets to be a unique_xmalloc_ptr.
14649 (solib_target_relocate_section_addresses): Update.
14650
14651 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
14652
14653 * windows-nat.c (windows_clear_solib): Free so_list linked list.
14654
14655 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
14656
14657 * MAINTAINERS (Write After Approval): Add myself.
14658
14659 2020-01-02 Luis Machado <luis.machado@linaro.org>
14660
14661 * proc-service.c (get_ps_regcache): Remove reference to obsolete
14662 Cell BE architecture.
14663 * target.h (struct target_ops) <thread_architecture>: Likewise.
14664
14665 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
14666
14667 * Makefile.in: Use INSTALL_PROGRAM_ENV.
14668
14669 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
14670
14671 * MAINTAINERS (Write After Approval): Add myself.
14672
14673 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14674
14675 * gdbarch.sh: Update copyright year range of generated files.
14676
14677 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14678
14679 Update copyright year range in all GDB files.
14680
14681 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14682
14683 * copyright.py: Convert to Python 3.
14684
14685 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14686
14687 * copyright.py: Adapt after move of gnulib directory from gdb
14688 directory to toplevel directory.
14689
14690 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14691
14692 * copyright.py (main): Exit if run from the wrong directory.
14693
14694 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14695
14696 * top.c (print_gdb_version): Change copyright year to 2020.
14697
14698 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14699
14700 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
14701
14702 For older changes see ChangeLog-2019.
14703 \f
14704 Local Variables:
14705 mode: change-log
14706 left-margin: 8
14707 fill-column: 74
14708 version-control: never
14709 coding: utf-8
14710 End:
This page took 0.408926 seconds and 5 git commands to generate.