Add simple_search_memory unit tests
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2020-10-07 Tom Tromey <tromey@adacore.com>
2
3 * unittests/search-memory-selftests.c: New file.
4 * Makefile.in (SELFTESTS_SRCS): Add
5 unittests/search-memory-selftests.c.
6
7 2020-10-07 Tom Tromey <tromey@adacore.com>
8
9 PR gdb/16930:
10 * findcmd.c (_initialize_mem_search): Mention that the range is
11 inclusive.
12
13 2020-10-07 Tom Tromey <tromey@adacore.com>
14
15 * target.h (simple_search_memory): Don't declare.
16 * target.c (simple_search_memory): Move to gdbsupport.
17 (default_search_memory): Update.
18 * remote.c (remote_target::search_memory): Update.
19
20 2020-10-07 Simon Marchi <simon.marchi@efficios.com>
21
22 * Makefile.in (COMPILE): Add CXXFLAGS.
23 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
24 (check-headers): Add CXXFLAGS.
25
26 2020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
27
28 * arc-linux-tdep.h: New file.
29 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
30 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
31 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
32 arc_linux_gregset, arc_linux_v2_regset,
33 arc_linux_iterate_over_regset_sections,
34 arc_linux_core_read_description): Implement.
35 (arc_linux_init_osabi): Set iterate_over_regset_sections.
36 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
37 (arc_gdbarch_features_create): Add.
38 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
39
40 2020-10-07 Shahab Vahedi <shahab@synopsys.com>
41
42 * arch/arc.h: Rename "arc_gdbarch_features" to
43 "arc_arch_features".
44 * arc-tdep.h: Likewise.
45 * arc-tdep.c: Likewise.
46
47 2020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
48
49 * infcmd.c (attach_command): Remove the redundant call to
50 `clear_proceed_status`.
51
52 2020-10-07 Kamil Rytarowski <n54@gmx.com>
53
54 * nat/netbsd-nat.c (write_memory, read_memory): Update.
55
56 2020-10-07 Kamil Rytarowski <n54@gmx.com>
57
58 * nat/netbsd-nat.c (write_memory, read_memory): Add.
59 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
60 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
61
62 2020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
63
64 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
65 (_initialize_break_catch_sig): Don't allocate array.
66
67 2020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
68
69 * symtab.c (find_pc_line): Return unmapped addresses when the
70 requested address is also unmapped.
71
72 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
73
74 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
75 tui/tui-out.h.
76
77 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
78
79 * amd64-windows-tdep.c (amd64_windows_return_value): Use
80 type::is_vector instead of TYPE_VECTOR.
81
82 2020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
83
84 * auto-load.c (auto_load_objfile_script_1): Don't use
85 debugfile_holder as temporary variable when stripping drive
86 letter.
87
88 2020-10-05 Hannes Domani <ssbssa@yahoo.de>
89
90 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
91 Add TYPE_CODE_COMPLEX.
92 (amd64_windows_return_value): Fix types returned via XMM0.
93
94 2020-10-05 Alan Hayward <alan.hayward@arm.com>
95
96 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
97 AArch64/ARM maintainers.
98
99 2020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
100
101 * NEWS: Mention set/show debug event-loop.
102
103 2020-10-02 Tom Tromey <tromey@adacore.com>
104
105 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
106 REG_EXTENDED.
107
108 2020-10-02 Simon Marchi <simon.marchi@efficios.com>
109
110 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
111 * procfs.c (procfs_inferior_created): Remove.
112 (_initialize_procfs): Don't register procfs_inferior_created.
113
114 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
115
116 * async-event.c (invoke_async_signal_handlers): Add debug
117 print.
118 (check_async_event_handlers): Likewise.
119 * event-top.c (show_debug_event_loop): New function.
120 (_initialize_event_top): Register "set debug event-loop"
121 setting.
122
123 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
124
125 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
126 * debug.h: Remove.
127 * infrun.c: Include gdbsupport/common-debug.h.
128 * linux-nat.c: Likewise.
129
130 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
131
132 * async-event.h (create_async_signal_handler): Add name
133 parameter.
134 (create_async_event_handler): Likewise.
135 * async-event.c (struct async_signal_handler) <name>: New field.
136 (struct async_event_handler) <name>: New field.
137 (create_async_signal_handler): Assign name.
138 (create_async_event_handler): Assign name.
139 * event-top.c (async_init_signals): Pass name when creating
140 handler.
141 * infrun.c (_initialize_infrun): Likewise.
142 * record-btrace.c (record_btrace_push_target): Likewise.
143 * record-full.c (record_full_open): Likewise.
144 * remote-notif.c (remote_notif_state_allocate): Likewise.
145 * remote.c (remote_target::open_1): Likewise.
146 * tui/tui-win.c (tui_initialize_win): Likewise.
147
148 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
149
150 * async-event.c (initialize_async_signal_handlers): Pass name to
151 add_file_handler
152 * event-top.c (ui_register_input_event_handler): Likewise.
153 * linux-nat.c (linux_nat_target::async): Likewise.
154 * run-on-main-thread.c (_initialize_run_on_main_thread):
155 Likewise
156 * ser-base.c (reschedule): Likewise.
157 (ser_base_async): Likewise.
158 * tui/tui-io.c: Likewise.
159 * top.h (struct ui) <num>: New field.
160 * top.c (highest_ui_num): New variable.
161 (ui::ui): Initialize num.
162
163 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
164
165 * observable.h <inferior_created>: Remove parameters. Update all
166 listeners.
167 * inferior.h (post_create_inferior): Remove target parameter.
168 Update all callers.
169
170 2020-10-02 Nitika Achra <Nitika.Achra@amd.com>
171
172 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
173 and DW_MACRO_undef_strx.
174 (dwarf_decode_macros): Likewise
175 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
176 which is the value of DW_AT_str_offsets_base.
177 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
178 str_offsets_base.
179
180 2020-10-01 Kamil Rytarowski <n54@gmx.com>
181
182 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
183
184 2020-10-01 Kamil Rytarowski <n54@gmx.com>
185
186 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
187 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
188
189 2020-10-01 Kamil Rytarowski <n54@gmx.com>
190
191 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
192
193 2020-09-30 Tom de Vries <tdevries@suse.de>
194
195 PR symtab/26683
196 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
197
198 2020-09-30 Tom Tromey <tromey@adacore.com>
199
200 * dwarf2/read.c (handle_variant): Use constant_value.
201
202 2020-09-29 Tom Tromey <tom@tromey.com>
203
204 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
205 (read_file_scope, dwarf2_get_pc_bounds)
206 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
207 (read_structure_type, handle_struct_member_die)
208 (read_enumeration_type, read_array_type, read_set_type)
209 (read_tag_pointer_type, read_tag_reference_type)
210 (read_subroutine_type, read_base_type, read_subrange_type)
211 (read_full_die_1, partial_die_info::read)
212 (partial_die_info::read, by, new_symbol)
213 (dwarf2_const_value_data, dwarf2_const_value_attr)
214 (dump_die_shallow, dwarf2_fetch_constant_bytes)
215 (prepare_one_comp_unit): Update.
216 * dwarf2/attribute.h (DW_UNSND): Remove.
217
218 2020-09-29 Tom Tromey <tom@tromey.com>
219
220 * dwarf2/read.c (read_func_scope, prototyped_function_p)
221 (read_subroutine_type, partial_die_info::read)
222 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
223 (dwarf2_add_member_fn): Update.
224 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
225 * dwarf2/attribute.c (attribute::as_boolean): New method.
226
227 2020-09-29 Tom Tromey <tom@tromey.com>
228
229 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
230 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
231 method.
232 * dwarf2/attribute.c (attribute::as_virtuality): New method.
233
234 2020-09-29 Tom Tromey <tom@tromey.com>
235
236 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
237 the attribute's form.
238
239 2020-09-29 Tom Tromey <tom@tromey.com>
240
241 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
242 (dwarf2_add_member_fn): Update.
243 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
244 * dwarf2/attribute.c (attribute::defaulted): New method, from
245 is_valid_DW_AT_defaulted.
246
247 2020-09-29 Tom Tromey <tom@tromey.com>
248
249 * dwarf2/read.c (dw2_get_file_names_reader)
250 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
251 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
252 (dwarf2_symbol_mark_computed): Use as_unsigned.
253 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
254 method.
255 <form_is_section_offset>: Update comment.
256
257 2020-09-29 Tom Tromey <tom@tromey.com>
258
259 * dwarf2/read.c (dwarf2_access_attribute): Rename from
260 dwarf2_default_access_attribute. Look up attribute.
261 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
262 Update.
263
264 2020-09-29 Tom Tromey <tom@tromey.com>
265
266 * dwarf2/read.c (skip_one_die): Update.
267 (read_full_die_1): Change how reprocessing is done.
268 (partial_die_info::read): Update.
269 (read_attribute_value): Remove need_reprocess parameter.
270 (read_attribute): Likewise.
271 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
272 New method.
273
274 2020-09-29 Tom Tromey <tom@tromey.com>
275
276 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
277 (dwarf2_const_value_attr, dump_die_shallow)
278 (dwarf2_fetch_constant_bytes): Update.
279 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
280 comment.
281 <set_address>: New method.
282 (DW_ADDR): Remove.
283 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
284 (attribute::as_string, attribute::as_address): Add assert.
285
286 2020-09-29 Tom Tromey <tom@tromey.com>
287
288 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
289 (read_attribute_reprocess, read_attribute_value): Update.
290 (read_attribute): Clear requires_reprocessing.
291 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
292 form_requires_reprocessing>: New methods.
293 <string_init>: Clear requires_reprocessing.
294 <set_unsigned_reprocess>: New method.
295 <name>: Shrink by one bit.
296 <requires_reprocessing>: New member.
297 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
298 method.
299
300 2020-09-29 Tom Tromey <tom@tromey.com>
301
302 * dwarf2/read.c (read_attribute_value): Update.
303 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
304 set_unsigned>: New methods.
305 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
306
307 2020-09-29 Tom Tromey <tom@tromey.com>
308
309 * dwarf2/read.c (get_alignment, read_array_order)
310 (read_attribute_value, dwarf2_const_value_attr)
311 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
312 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
313 New methods.
314 (DW_SND): Remove.
315
316 2020-09-29 Tom Tromey <tom@tromey.com>
317
318 * dwarf2/read.c (read_attribute_value, lookup_die_type)
319 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
320 Update.
321 * dwarf2/attribute.h (struct attribute) <as_signature,
322 set_signature>: New methods.
323 (DW_SIGNATURE): Remove.
324
325 2020-09-29 Tom Tromey <tom@tromey.com>
326
327 * dwarf2/read.c (read_call_site_scope)
328 (handle_data_member_location, dwarf2_add_member_fn)
329 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
330 (partial_die_info::read, read_attribute_value)
331 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
332 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
333 (dwarf2_symbol_mark_computed): Update.
334 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
335 methods.
336 (DW_BLOCK): Remove.
337 * dwarf2/attribute.c (attribute::form_is_block): Add
338 DW_FORM_data16.
339
340 2020-09-29 Tom Tromey <tom@tromey.com>
341
342 * dwarf2/read.c (read_cutu_die_from_dwo)
343 (read_attribute_reprocess, read_attribute_value, read_attribute)
344 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
345 (dwarf2_fetch_constant_bytes): Update.
346 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
347 <set_string_noncanonical, set_string_canonical>: New methods.
348 <string_is_canonical>: Update comment.
349 <canonical_string_p>: Add assert.
350 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
351 * dwarf2/attribute.c (attribute::form_is_string): New method.
352 (attribute::string): Use it.
353
354 2020-09-29 Tom Tromey <tom@tromey.com>
355
356 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
357 (dump_die_shallow): Use canonical_string_p.
358 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
359 method.
360
361 2020-09-29 Tom Tromey <tom@tromey.com>
362
363 * dwarf2/read.c (partial_die_info::read)
364 (dwarf2_const_value_attr, anonymous_struct_prefix, )
365 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
366 attribute::as_string.
367
368 2020-09-29 Tom Tromey <tom@tromey.com>
369
370 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
371 DW_ADDR.
372 (attribute::string): Don't use DW_STRING.
373 (attribute::get_ref_die_offset): Don't use DW_UNSND.
374 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
375
376 2020-09-29 Tom Tromey <tom@tromey.com>
377
378 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
379 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
380 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
381 * dwarf2/attribute.h (struct attribute): Rename methods.
382 * dwarf2/attribute.c (attribute::as_address): Rename from
383 value_as_address.
384 (attribute::as_string): Rename from value_as_string.
385
386 2020-09-29 Tom Tromey <tom@tromey.com>
387
388 * dwarf2/read.c (partial_die_info::read) <case
389 DW_AT_linkage_name>: Use value_as_string.
390 (dwarf2_string_attr): Use value_as_string.
391 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
392 method.
393 * dwarf2/attribute.c (attribute::value_as_string): New method.
394
395 2020-09-29 Pedro Alves <pedro@palves.net>
396
397 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
398 defined before using '#pragma GCC diagnostic' instead of checking
399 __clang__.
400
401 2020-09-28 Tom Tromey <tom@tromey.com>
402
403 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
404 (handle_signal_stop): Update.
405 * procfs.c (procfs_target::insert_watchpoint): Update.
406 * target.h (target_have_steppable_watchpoint): Now a function.
407
408 2020-09-28 Tom Tromey <tom@tromey.com>
409
410 * infrun.c (set_schedlock_func): Update.
411 * target.h (target_can_lock_scheduler): Now a function.
412
413 2020-09-28 Tom Tromey <tom@tromey.com>
414
415 * inferior.h (class inferior) <has_execution>: Update.
416 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
417 * valops.c (find_function_in_inferior)
418 (value_allocate_space_in_inferior): Update.
419 * top.c (kill_or_detach): Update.
420 * target.c (target_preopen, set_target_permissions): Update.
421 (target_has_execution_current): Remove.
422 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
423 Update.
424 * solib.c (update_solib_list, reload_shared_libraries): Update.
425 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
426 * solib-dsbt.c (enable_break): Update.
427 * score-tdep.c (score7_fetch_inst): Update.
428 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
429 Update.
430 * remote.c (remote_target::start_remote)
431 (remote_target::remote_check_symbols, remote_target::open_1)
432 (remote_target::remote_detach_1, remote_target::verify_memory)
433 (remote_target::xfer_partial, remote_target::read_description)
434 (remote_target::get_min_fast_tracepoint_insn_len): Update.
435 * record-full.c (record_full_open_1): Update.
436 * record-btrace.c (record_btrace_target_open): Update.
437 * objc-lang.c (lookup_objc_class, lookup_child_selector)
438 (value_nsstring): Update.
439 * linux-thread-db.c (add_thread_db_info)
440 (thread_db_find_new_threads_silently, check_thread_db_callback)
441 (try_thread_db_load_1, record_thread): Update.
442 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
443 Update.
444 * linux-fork.c (checkpoint_command): Update.
445 * infrun.c (set_non_stop, set_observer_mode)
446 (check_multi_target_resumption, for_each_just_stopped_thread)
447 (maybe_remove_breakpoints, normal_stop)
448 (class infcall_suspend_state): Update.
449 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
450 (info_program_command, attach_command): Update.
451 * infcall.c (call_function_by_hand_dummy): Update.
452 * inf-loop.c (inferior_event_handler): Update.
453 * gcore.c (gcore_command, derive_heap_segment): Update.
454 * exec.c (exec_file_command): Update.
455 * eval.c (evaluate_subexp): Update.
456 * compile/compile.c (compile_to_object): Update.
457 * cli/cli-dump.c (restore_command): Update.
458 * breakpoint.c (update_watchpoint)
459 (update_inserted_breakpoint_locations)
460 (insert_breakpoint_locations, get_bpstat_thread): Update.
461 * target.h (target_has_execution): Remove macro.
462 (target_has_execution_current): Don't declare.
463 (target_has_execution): Rename from target_has_execution_1. Add
464 argument default.
465
466 2020-09-28 Tom Tromey <tom@tromey.com>
467
468 * mi/mi-main.c (exec_reverse_continue)
469 (mi_cmd_list_target_features): Update.
470 * infrun.c (set_exec_direction_func): Update.
471 * target.c (default_execution_direction): Update.
472 * reverse.c (exec_reverse_once): Update.
473 * target.h (target_can_execute_reverse): Now a function.
474
475 2020-09-28 Tom Tromey <tom@tromey.com>
476
477 * tui/tui-regs.c (tui_get_register)
478 (tui_data_window::show_registers): Update.
479 * thread.c (scoped_restore_current_thread::restore)
480 (scoped_restore_current_thread::scoped_restore_current_thread):
481 Update.
482 * regcache-dump.c (regcache_print): Update.
483 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
484 Update.
485 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
486 * mep-tdep.c (current_me_module, current_options): Update.
487 * linux-thread-db.c (thread_db_load): Update.
488 * infcmd.c (registers_info, info_vector_command)
489 (info_float_command): Update.
490 * ia64-tdep.c (ia64_frame_prev_register)
491 (ia64_sigtramp_frame_prev_register): Update.
492 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
493 * gcore.c (derive_stack_segment): Update.
494 * frame.c (get_current_frame, has_stack_frames): Update.
495 * findvar.c (language_defn::read_var_value): Update.
496 * arm-tdep.c (arm_pc_is_thumb): Update.
497 * target.c (target_has_registers): Rename from
498 target_has_registers_1.
499 * target.h (target_has_registers): Remove macro.
500 (target_has_registers): Rename from target_has_registers_1.
501
502 2020-09-28 Tom Tromey <tom@tromey.com>
503
504 * windows-tdep.c (tlb_make_value): Update.
505 * tui/tui-regs.c (tui_data_window::show_registers): Update.
506 * thread.c (scoped_restore_current_thread::restore)
507 (scoped_restore_current_thread::scoped_restore_current_thread)
508 (thread_command): Update.
509 * stack.c (backtrace_command_1, frame_apply_level_command)
510 (frame_apply_all_command, frame_apply_command): Update.
511 * infrun.c (siginfo_make_value, restore_infcall_control_state):
512 Update.
513 * gcore.c (derive_stack_segment): Update.
514 * frame.c (get_current_frame, has_stack_frames): Update.
515 * auxv.c (info_auxv_command): Update.
516 * ada-tasks.c (ada_build_task_list): Update.
517 * target.c (target_has_stack): Rename from target_has_stack_1.
518 * target.h (target_has_stack): Remove macro.
519 (target_has_stack): Rename from target_has_stack_1.
520
521 2020-09-28 Tom Tromey <tom@tromey.com>
522
523 * target.c (target_has_memory): Rename from target_has_memory_1.
524 * tui/tui-regs.c (tui_data_window::show_registers): Update.
525 * thread.c (scoped_restore_current_thread::restore)
526 (scoped_restore_current_thread::scoped_restore_current_thread):
527 Update.
528 * frame.c (get_current_frame, has_stack_frames): Update.
529 * target.h (target_has_memory): Remove macro.
530 (target_has_memory): Rename from target_has_memory_1.
531
532 2020-09-28 Tom Tromey <tom@tromey.com>
533
534 * target.c (target_has_all_memory_1): Remove.
535 * target.h (target_has_all_memory): Remove define.
536 (target_has_all_memory_1): Don't declare.
537
538 2020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
539
540 * ser-base.c: Adjust comments formatting.
541
542 2020-09-27 Tom Tromey <tom@tromey.com>
543
544 PR tui/25342:
545 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
546
547 2020-09-27 Tom Tromey <tom@tromey.com>
548
549 PR tui/25342:
550 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
551
552 2020-09-27 Tom Tromey <tom@tromey.com>
553
554 * unittests/tui-selftests.c: Update.
555 * tui/tui-winsource.h (struct tui_source_window_base)
556 <extra_margin, show_line_number, refresh_pad>: New methods.
557 <m_max_length, m_pad>: New members.
558 (tui_copy_source_line): Update.
559 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
560 first_col, line_width, ndigits parameters. Add length.
561 (tui_source_window_base::show_source_line): Write to pad. Line
562 number now 0-based.
563 (tui_source_window_base::refresh_pad): New method.
564 (tui_source_window_base::show_source_content): Write to pad. Call
565 refresh_pad.
566 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
567 not refill.
568 (tui_source_window_base::update_exec_info): Call
569 show_line_number.
570 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
571 method.
572 <m_digits>: New member.
573 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
574 and m_max_length.
575 (tui_source_window::show_line_number): New method.
576 * tui/tui-io.h (tui_puts): Fix comment.
577 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
578 m_max_length.
579
580 2020-09-27 Tom Tromey <tom@tromey.com>
581
582 * tui/tui-winsource.c
583 (tui_source_window_base::set_is_exec_point_at): Don't call
584 show_source_line.
585
586 2020-09-27 Tom Tromey <tom@tromey.com>
587
588 * python/py-tui.c (class tui_py_window) <refresh_window>: New
589 method.
590 <erase>: Update.
591 <cursor_x, cursor_y>: Remove.
592 <m_inner_window>: New member.
593 (tui_py_window::rerender): Create inner window.
594 (tui_py_window::output): Write to inner window.
595
596 2020-09-26 Gareth Rees <grees@undo.io> (tiny change)
597
598 PR python/26586
599 * cli/cli-script.c (execute_control_commands): don't set
600 instream to nullptr here as this breaks the from_tty argument
601 to gdb.execute in Python.
602 (execute_user_command): set instream to nullptr here instead.
603
604 2020-09-25 Simon Marchi <simon.marchi@efficios.com>
605
606 * infrun.h (infrun_debug_printf): Fix formatting.
607 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
608
609 2020-09-25 Saagar Jha <saagar@saagarjha.com>
610
611 * compile/compile-object-load.h (struct munmap_list): Add
612 explicitly-defined move constructor.
613
614 2020-09-24 Tom Tromey <tromey@adacore.com>
615
616 PR tui/26638:
617 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
618 method.
619 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
620 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
621 (tui_prev_win): Rewrite.
622
623 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
624
625 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
626 in WOW64 processes as SIGINT.
627 * nat/windows-nat.h: Make wow64_process a shared variable.
628 * windows-nat.c: Remove static wow64_process variable.
629
630 2020-09-23 Tom Tromey <tom@tromey.com>
631
632 PR symtab/25470:
633 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
634 offset and bit size.
635 * printcmd.c (print_scalar_formatted): Handle zero-length
636 integer.
637 (print_scalar_formatted): Use bit_size_differs_p.
638 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
639 constant.
640 (union type_specific): <int_stuff>: New member.
641 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
642 methods.
643 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
644 TYPE_SPECIFIC_FIELD.
645 (recursive_dump_type, copy_type_recursive): Update.
646 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
647 DW_AT_data_bit_offset.
648
649 2020-09-23 Tom Tromey <tom@tromey.com>
650
651 * utils.h (class gdb_argv): Add move operators.
652 <append>: New methods.
653 * compile/compile.c (build_argc_argv): Remove.
654 (compile_args_argc): Remove.
655 (compile_args_argv): Change type.
656 (set_compile_args): Simplify.
657 (append_args): Remove.
658 (filter_args): Remove argcp parameter.
659 (get_args): Return gdb_argv. Simplify.
660 (compile_to_object): Update.
661
662 2020-09-23 Tom Tromey <tom@tromey.com>
663
664 * compile/compile-object-run.c (do_module_cleanup)
665 <~do_module_cleanup> :Remove.
666 (do_module_cleanup): Update.
667 * compile/compile-object-load.h (struct munmap_list): Add move
668 assignment operator.
669 <source_file>: Now a std::string.
670 <munmap_list>: Rename. No longer a pointer.
671 * compile/compile-object-load.c (struct setup_sections_data): Add
672 constructor.
673 <setup_one_section>: Declare.
674 <munmap_list>: Move earlier.
675 <m_bfd>: New member.
676 <m_last_size, m_last_section_first, m_last_prot,
677 m_last_max_alignment>: Rename, add initializers where needed.
678 (setup_sections_data::setup_one_section): Rename from
679 setup_sections. Update.
680 (compile_object_load): Update. Don't use bfd_map_over_sections.
681
682 2020-09-23 Tom Tromey <tom@tromey.com>
683
684 * compile/compile-object-run.c (struct do_module_cleanup): Add
685 parameters to constructor. Update destructor.
686 <source_file, scope, scope_data, out_value_type, out_value_addr,
687 munmap_list_head, objfile_name_string>: Remove.
688 <module>: New member.
689 (do_module_cleanup): Update.
690 (compile_object_run): Update.
691
692 2020-09-23 Tom Tromey <tom@tromey.com>
693
694 * compile/compile.c (eval_compile_command): Update.
695 * compile/compile-object-run.h (compile_object_run): Take a
696 compile_module_up.
697 * compile/compile-object-run.c (compile_object_run): Take a
698 compile_module_up.
699 * compile/compile-object-load.h (struct compile_module): Add
700 constructor, destructor.
701 (compile_module_up): New typedef.
702 (compile_object_load): Return compile_object_up.
703 * compile/compile-object-load.c (compile_object_load): Return
704 compile_module_up.
705
706 2020-09-23 Tom Tromey <tom@tromey.com>
707
708 * compile/compile-object-run.c (struct do_module_cleanup): Add
709 constructor, destructor.
710 <objfile_name_string>: Don't use struct hack.
711 (do_module_cleanup): Use delete.
712 (compile_object_run): Use new.
713
714 2020-09-23 Tom Tromey <tom@tromey.com>
715
716 * compile/compile-cplus-types.c
717 (compile_cplus_convert_struct_or_union): Use std::vector.
718 (compile_cplus_convert_func): Likewise.
719 * compile/compile-c-types.c (convert_func): Use std::vector.
720
721 2020-09-21 Tom Tromey <tromey@adacore.com>
722
723 * sparc-tdep.c (sparc32_skip_prologue): Use
724 skip_prologue_using_sal.
725
726 2020-09-19 Tom Tromey <tom@tromey.com>
727
728 * symfile.c (add_section_size_callback): Remove.
729 (load_one_section): Rename from load_section_callback. Change
730 parameters.
731 (generic_load): Use foreach.
732
733 2020-09-19 Tom Tromey <tom@tromey.com>
734
735 * exec.c (add_to_section_table): Remove.
736 (build_section_table): Use foreach.
737
738 2020-09-19 Tom Tromey <tom@tromey.com>
739
740 * elfread.c (elf_locate_sections): Change parameters.
741 (elf_symfile_read): Use foreach.
742
743 2020-09-19 Tom Tromey <tom@tromey.com>
744
745 * cli/cli-dump.c (struct callback_data): Remove.
746 (restore_one_section): Rename from restore_section_callback.
747 Change parameters.
748 (restore_binary_file): Change parameters.
749 (restore_command): Use foreach.
750
751 2020-09-19 Tom Tromey <tom@tromey.com>
752
753 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
754 (gcore_copy_callback): Likewise.
755 (gcore_memory_sections): Use foreach.
756
757 2020-09-19 Tom Tromey <tom@tromey.com>
758
759 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
760 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
761 parameters.
762 (generic_elf_osabi_sniffer): Use foreach.
763 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
764 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
765
766 2020-09-19 Tom Tromey <tom@tromey.com>
767
768 * dwarf2/read.c (locate_dwz_sections): Change parameters.
769 (dwarf2_get_dwz_file): Use foreach.
770 (dwarf2_locate_dwo_sections): Change parameters.
771 (open_and_init_dwo_file): Use foreach.
772 (dwarf2_locate_common_dwp_sections): Change parameters.
773 (open_and_init_dwp_file): Use foreach.
774
775 2020-09-19 Tom Tromey <tom@tromey.com>
776
777 * symfile.h: (find_lowest_section): Don't declare.
778 * symfile.c (find_lowest_section): Now static. Change
779 parameters.
780 (struct place_section_arg): Remove.
781 (place_section): Change parameters.
782 (addr_info_make_relative): Use foreach.
783 (symfile_dummy_outputs): Remove.
784 (default_symfile_relocate): Use foreach.
785
786 2020-09-19 Tom Tromey <tom@tromey.com>
787
788 * objfiles.c (add_to_objfile_sections): Rename from
789 add_to_objfile_sections_full.
790 (add_to_objfile_sections): Remove.
791 (build_objfile_section_table): Use foreach.
792
793 2020-09-19 Tom Tromey <tom@tromey.com>
794
795 * stap-probe.c (get_stap_base_address_1): Remove.
796 (get_stap_base_address): Use foreach.
797
798 2020-09-19 Tom Tromey <tom@tromey.com>
799
800 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
801 parameters.
802 (gdb_bfd_close_or_warn): Use foreach.
803
804 2020-09-19 Tom Tromey <tom@tromey.com>
805
806 * corelow.c (add_to_thread_list): Change parameters.
807 (core_target_open): Use foreach.
808
809 2020-09-19 Tom Tromey <tom@tromey.com>
810
811 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
812 existing function.
813
814 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
815
816 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
817 for arrays.
818
819 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
820
821 * eval.c: Remove 'f-lang.h' include.
822 (value_f90_subarray): Moved to f-lang.c.
823 (eval_call): Renamed to...
824 (evaluate_subexp_do_call): ...this, is no longer static, header
825 comment moved into header file.
826 (evaluate_funcall): Update call to eval_call.
827 (skip_undetermined_arglist): Moved to f-lang.c.
828 (fortran_value_subarray): Likewise.
829 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
830 moved to evaluate_subexp_f.
831 (calc_f77_array_dims): Moved to f-lang.c
832 * expprint.c (print_subexp_funcall): New function.
833 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
834 moved to print_subexp_f, OP_FUNCALL uses new function.
835 (dump_subexp_body_funcall): New function.
836 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
837 moved to dump_subexp_f, OP_FUNCALL uses new function.
838 * expression.h (evaluate_subexp_do_call): Declare.
839 * f-lang.c (value_f90_subarray): Moved from eval.c.
840 (skip_undetermined_arglist): Likewise.
841 (calc_f77_array_dims): Likewise.
842 (fortran_value_subarray): Likewise.
843 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
844 (operator_length_f): Likewise.
845 (print_subexp_f): Likewise.
846 (dump_subexp_body_f): Likewise.
847 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
848 declaration of this operation to here.
849 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
850 support moved to operator_length_f.
851 * parser-defs.h (dump_subexp_body_funcall): Declare.
852 (print_subexp_funcall): Declare.
853 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
854 fortran-operator.def.
855
856 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
857
858 * eval.c (fortran_value_subarray): New function, content is taken
859 from...
860 (evaluate_subexp_standard): ...here, in two places. Now arrays
861 and strings both call the new function.
862 (calc_f77_array_dims): Add header comment, handle strings.
863
864 2020-09-18 Victor Collod <vcollod@nvidia.com>
865
866 PR gdb/26635
867 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
868 (i386_analyze_prologue): Call i386_skip_endbr.
869
870 2020-09-18 Tom Tromey <tromey@adacore.com>
871
872 * windows-nat.c (struct windows_nat_target) <wait>: Update.
873 (windows_nat_target::wait): Update.
874 * target/wait.h (enum target_wait_flag): New. Use
875 DEF_ENUM_FLAGS_TYPE.
876 * target/target.h (target_wait): Change type of options.
877 * target.h (target_options_to_string, default_target_wait):
878 Update.
879 (struct target_ops) <wait>: Change type of options.
880 * target.c (target_wait, default_target_wait, do_option): Change
881 type of "options".
882 (target_options_to_string): Likewise.
883 * target-delegates.c: Rebuild.
884 * target-debug.h (target_debug_print_target_wait_flags): Rename
885 from target_debug_print_options.
886 * sol-thread.c (class sol_thread_target) <wait>: Update.
887 (sol_thread_target::wait): Update.
888 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
889 (rs6000_nat_target::wait): Update.
890 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
891 Update.
892 (remote_target::wait_ns, remote_target::wait_as): Change type of
893 "options".
894 (remote_target::wait): Update.
895 * remote-sim.c (struct gdbsim_target) <wait>: Update.
896 (gdbsim_target::wait): Update.
897 * record-full.c (class record_full_base_target) <wait>: Update.
898 (record_full_wait_1): Change type of "options".
899 (record_full_base_target::wait): Update.
900 * record-btrace.c (class record_btrace_target) <wait>: Update.
901 (record_btrace_target::wait): Update.
902 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
903 Update.
904 (ravenscar_thread_target::wait): Update.
905 * procfs.c (class procfs_target) <wait>: Update.
906 (procfs_target::wait): Update.
907 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
908 * obsd-nat.c (obsd_nat_target::wait): Update.
909 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
910 (nto_procfs_target::wait): Update.
911 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
912 * nbsd-nat.c (nbsd_wait): Change type of "options".
913 (nbsd_nat_target::wait): Update.
914 * linux-thread-db.c (class thread_db_target) <wait>: Update.
915 (thread_db_target::wait): Update.
916 * linux-nat.h (class linux_nat_target) <wait>: Update.
917 * linux-nat.c (linux_nat_target::wait): Update.
918 (linux_nat_wait_1): Update.
919 * infrun.c (do_target_wait_1, do_target_wait): Change type of
920 "options".
921 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
922 * inf-ptrace.c (inf_ptrace_target::wait): Update.
923 * go32-nat.c (struct go32_nat_target) <wait>: Update.
924 (go32_nat_target::wait): Update.
925 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
926 * gnu-nat.c (gnu_nat_target::wait): Update.
927 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
928 * fbsd-nat.c (fbsd_nat_target::wait): Update.
929 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
930 * darwin-nat.c (darwin_nat_target::wait): Update.
931 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
932 (bsd_uthread_target::wait): Update.
933 * aix-thread.c (class aix_thread_target) <wait>: Update.
934 (aix_thread_target::wait): Update.
935
936 2020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
937
938 * compile/compile-object-run.c (create_copied_type_recursive): New
939 function.
940 (compile_object_run): Use new function.
941
942 2020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
943
944 * NEWS: Mention x86_64 Cygwin core file support.
945
946 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
947
948 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
949 (core_process_module_section): Handle NOTE_INFO_MODULE64.
950
951 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
952
953 * windows-tdep.h: Add prototypes.
954 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
955 (i386_windows_core_pid_to_str): Move and rename ...
956 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
957 (windows_core_pid_to_str): ... and here.
958 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
959
960 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
961 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
962 (amd64_windows_init_abi_common): ... and register.
963
964 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
965
966 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
967 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
968
969 2020-09-18 Pedro Alves <pedro@palves.net>
970
971 PR gdb/26631
972 * thread.c (thread_find_command): Switch inferior before calling
973 target methods.
974
975 2020-09-17 Tom Tromey <tromey@adacore.com>
976
977 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
978 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
979 (tdesc_arch_data_up): New typedef.
980 (tdesc_use_registers, tdesc_data_alloc): Update.
981 (tdesc_data_cleanup): Don't declare.
982 * target-descriptions.c (tdesc_data_alloc): Return a
983 tdesc_arch_data_up.
984 (tdesc_arch_data_deleter::operator()): Rename from
985 tdesc_data_cleanup. Change argument type.
986 (tdesc_use_registers): Change early_data to an rvalue reference.
987 (tdesc_use_registers): Don't use delete.
988 * sparc-tdep.c (sparc32_gdbarch_init): Update.
989 * s390-tdep.c (s390_gdbarch_init): Update.
990 * rx-tdep.c (rx_gdbarch_init): Update.
991 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
992 * riscv-tdep.c (riscv_gdbarch_init): Update.
993 * or1k-tdep.c (or1k_gdbarch_init): Update.
994 * nios2-tdep.c (nios2_gdbarch_init): Update.
995 * nds32-tdep.c (nds32_gdbarch_init): Update.
996 * mips-tdep.c (mips_gdbarch_init): Update.
997 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
998 * m68k-tdep.c (m68k_gdbarch_init): Update.
999 * i386-tdep.c (i386_gdbarch_init): Update.
1000 * arm-tdep.c (arm_gdbarch_init): Update.
1001 * arc-tdep.c (arc_tdesc_init): Update.
1002 (arc_gdbarch_init): Update.
1003 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
1004
1005 2020-09-17 Hannes Domani <ssbssa@yahoo.de>
1006
1007 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
1008 for WOW64 processes.
1009
1010 2020-09-17 Tom Tromey <tom@tromey.com>
1011
1012 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
1013
1014 2020-09-17 Tom Tromey <tom@tromey.com>
1015
1016 * value.c (preserve_values): Update.
1017 * python/py-type.c (save_objfile_types): Update.
1018 * guile/scm-type.c (save_objfile_types): Update.
1019 * gdbtypes.h (create_copied_types_hash): Return htab_up.
1020 * gdbtypes.c (create_copied_types_hash): Return htab_up.
1021 * compile/compile-object-run.c (compile_object_run): Update.
1022
1023 2020-09-17 Tom Tromey <tom@tromey.com>
1024
1025 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
1026 Remove.
1027 <m_table>: Now htab_up.
1028 * typeprint.c (typedef_hash_table::recursively_update)
1029 (typedef_hash_table::add_template_parameters)
1030 (typedef_hash_table::typedef_hash_table): Update.
1031 (typedef_hash_table::~typedef_hash_table): Remove.
1032 (typedef_hash_table::typedef_hash_table)
1033 (typedef_hash_table::find_global_typedef)
1034 (typedef_hash_table::find_typedef): Update.
1035
1036 2020-09-17 Tom Tromey <tom@tromey.com>
1037
1038 * target-descriptions.c (tdesc_use_registers): Use htab_up.
1039
1040 2020-09-17 Tom Tromey <tom@tromey.com>
1041
1042 * linespec.c (class decode_compound_collector)
1043 <~decode_compound_collector>: Remove.
1044 <m_unique_syms>: Now htab_up.
1045 (decode_compound_collector::operator ()): Update.
1046 (class symtab_collector) <~symtab_collector>: Remove.
1047 <m_symtab_table>: Now htab_up.
1048 (symtab_collector::operator ()): Update.
1049
1050 2020-09-17 Tom Tromey <tom@tromey.com>
1051
1052 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
1053 (filename_seen_cache::clear): Update.
1054 (~filename_seen_cache): Remove.
1055 (filename_seen_cache::seen): Update.
1056 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
1057 htab_up.
1058 <~filename_seen_cache>: Remove.
1059 <traverse>: Update.
1060
1061 2020-09-17 Tom Tromey <tom@tromey.com>
1062
1063 * completer.c (completion_tracker::discard_completions)
1064 (completion_tracker::~completion_tracker)
1065 (completion_tracker::maybe_add_completion)
1066 (completion_tracker::remove_completion)
1067 (completion_tracker::recompute_lowest_common_denominator)
1068 (completion_tracker::build_completion_result): Update.
1069 * completer.h (class completion_tracker) <have_completions>:
1070 Update.
1071 <m_entries_hash>: Now htab_up.
1072
1073 2020-09-17 Tom Tromey <tom@tromey.com>
1074
1075 * breakpoint.c (ambiguous_names_p): Use htab_up.
1076
1077 2020-09-17 Tom Tromey <tom@tromey.com>
1078
1079 * auto-load.c (struct auto_load_pspace_info)
1080 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
1081 <loaded_script_files, loaded_script_texts>: Change type to
1082 htab_up.
1083 (~auto_load_pspace_info) Remove.
1084 (init_loaded_scripts_info, maybe_add_script_file)
1085 (maybe_add_script_text, auto_load_info_scripts): Update.
1086
1087 2020-09-17 Tom Tromey <tromey@adacore.com>
1088
1089 * c-exp.y (name_obstack): Now static.
1090
1091 2020-09-17 Chungyi Chi <demonic@csie.io>
1092
1093 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
1094
1095 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
1096
1097 * breakpoint.h (init_catchpoint): Change int parameter to bool.
1098 (add_solib_catchpoint): Likewise.
1099 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
1100 to bool.
1101 (add_solib_catchpoint): Change int parameter/variable to bool.
1102 (catch_load_or_unload): Likewise.
1103 (init_catchpoint): Likewise.
1104 (create_fork_vfork_event_catchpoint): Likewise.
1105 (catch_fork_command_1): Likewise.
1106 (catch_exec_command_1): Likewise.
1107
1108 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
1109
1110 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
1111 Change instance_flags to m_instance_flags.
1112
1113 2020-09-16 Tom Tromey <tromey@adacore.com>
1114
1115 PR gdb/26598:
1116 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
1117
1118 2020-09-16 John Baldwin <jhb@FreeBSD.org>
1119
1120 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
1121 PL_FLAG_EXEC.
1122 (fbsd_nat_target::insert_exec_catchpoint)
1123 (fbsd_nat_target::remove_exec_catchpoint): Always define.
1124 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
1125 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
1126
1127 2020-09-16 John Baldwin <jhb@FreeBSD.org>
1128
1129 * configure.ac: Remove check for kinfo_getvmmap().
1130 * configure, config.in: Regenerate.
1131 * fbsd-nat.c (fbsd_read_mapping): Remove
1132 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
1133 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
1134 kinfo_get_vmmap() are always present.
1135
1136 2020-09-16 John Baldwin <jhb@FreeBSD.org>
1137
1138 * fbsd-nat.c: Always include support for
1139 TARGET_OBJECT_SIGNAL_INFO.
1140
1141 2020-09-16 John Baldwin <jhb@FreeBSD.org>
1142
1143 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
1144 sysctl and remove procfs fallback.
1145
1146 2020-09-16 John Baldwin <jhb@FreeBSD.org>
1147
1148 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
1149 * fbsd-nat.h: Likewise.
1150
1151 2020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1152
1153 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
1154 argument.
1155
1156 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1157
1158 * ada-lang.c (ada_language_data): Delete.
1159 (ada_language): Remove references to ada_language_data.
1160 * c-lang.c (c_language_data): Delete.
1161 (c_language): Remove references to c_language_data.
1162 (cplus_language_data): Delete.
1163 (cplus_language): Remove references to cplus_language_data.
1164 (asm_language_data): Delete.
1165 (asm_language): Remove references to asm_language_data.
1166 (minimal_language_data): Delete.
1167 (minimal_language): Remove references to minimal_language_data.
1168 * d-lang.c (d_language_data): Delete.
1169 (d_language): Remove references to d_language_data.
1170 * f-lang.c (f_language_data): Delete.
1171 (f_language): Remove references to f_language_data.
1172 * go-lang.c (go_language_data): Delete.
1173 (go_language): Remove references to go_language_data.
1174 * language.c (unknown_language_data): Delete.
1175 (unknown_language): Remove references to unknown_language_data.
1176 (auto_language_data): Delete.
1177 (auto_language): Remove references to auto_language_data.
1178 * language.h (language_data): Delete struct.
1179 (language_defn): No longer inherit from language_data.
1180 * m2-lang.c (m2_language_data): Delete.
1181 (m2_language): Remove references to m2_language_data.
1182 * objc-lang.c (objc_language_data): Delete.
1183 (objc_language): Remove references to objc_language_data.
1184 * opencl-lang.c (opencl_language_data): Delete.
1185 (opencl_language): Remove references to opencl_language_data.
1186 * p-lang.c (pascal_language_data): Delete.
1187 (pascal_language): Remove references to pascal_language_data.
1188 * rust-lang.c (rust_language_data): Delete.
1189 (rust_language): Remove references to rust_language_data.
1190
1191 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1192
1193 * ada-lang.c (ada_language_data): Remove la_op_print_tab
1194 initializer.
1195 (ada_language::opcode_print_table): New member function.
1196 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
1197 (c_language::opcode_print_table): New member function.
1198 (cplus_language_data): Remove la_op_print_tab initializer.
1199 (cplus_language::opcode_print_table): New member function.
1200 (asm_language_data): Remove la_op_print_tab initializer.
1201 (asm_language::opcode_print_table): New member function.
1202 (minimal_language_data): Remove la_op_print_tab initializer.
1203 (minimal_language::opcode_print_table): New member function.
1204 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
1205 (d_language::opcode_print_table): New member function.
1206 * expprint.c (print_subexp_standard): Update call to
1207 opcode_print_table.
1208 (op_string): Likewise.
1209 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
1210 (f_language::opcode_print_table): New member function.
1211 * go-lang.c (go_language_data): Remove la_op_print_tab
1212 initializer.
1213 (go_language::opcode_print_table): New member function.
1214 * language.c (unknown_language_data): Remove la_op_print_tab
1215 initializer.
1216 (unknown_language::opcode_print_table): New member function.
1217 (auto_language_data): Remove la_op_print_tab initializer.
1218 (auto_language::opcode_print_table): New member function.
1219 * language.h (language_data): Remove la_op_print_tab field.
1220 (language_defn::opcode_print_table): Declare new member function.
1221 * m2-lang.c (m2_language_data): Remove la_op_print_tab
1222 initializer.
1223 (m2_language::opcode_print_table): New member function.
1224 * objc-lang.c (objc_language_data): Remove la_op_print_tab
1225 initializer.
1226 (objc_language::opcode_print_table): New member function.
1227 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
1228 initializer.
1229 (opencl_language::opcode_print_table): New member function.
1230 * p-lang.c (pascal_language_data): Remove la_op_print_tab
1231 initializer.
1232 (pascal_language::opcode_print_table): New member function.
1233 * rust-lang.c (rust_language_data): Remove la_op_print_tab
1234 initializer.
1235 (rust_language::opcode_print_table): New member function.
1236
1237 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1238
1239 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
1240 (ada_language::expression_ops): New member function.
1241 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
1242 (c_language::expression_ops): New member function.
1243 (cplus_language_data): Remove la_exp_desc initializer.
1244 (cplus_language::expression_ops): New member function.
1245 (asm_language_data): Remove la_exp_desc initializer.
1246 (asm_language::expression_ops): New member function.
1247 (minimal_language_data): Remove la_exp_desc initializer.
1248 (minimal_language::expression_ops): New member function.
1249 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
1250 (d_language::expression_ops): New member function.
1251 * eval.c (evaluate_subexp): Update call to expression_ops.
1252 * expprint.c (print_subexp): Likewise.
1253 (op_name): Likewise.
1254 (dump_subexp_body): Likewise.
1255 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
1256 (f_language::expression_ops): New member function.
1257 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
1258 (go_language::expression_ops): New member function.
1259 * language.c (language_defn::expression_ops): New function.
1260 (unknown_language_data): Remove la_exp_desc initializer.
1261 (auto_language_data): Likewise.
1262 * language.h (language_data): Remove la_exp_desc field.
1263 (language_defn::expression_ops): Declare new member function.
1264 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
1265 (m2_language::expression_ops): New member function.
1266 * objc-lang.c (objc_language_data): Remove la_exp_desc
1267 initializer.
1268 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
1269 initializer.
1270 (opencl_language::expression_ops): New member function.
1271 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
1272 * parse.c (operator_length): Update call to expression_ops.
1273 (exp_iterate): Likewise.
1274 * rust-lang.c (rust_language_data): Remove la_exp_desc
1275 initializer.
1276 (ruse_language::expression_ops): New member function.
1277
1278 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1279
1280 * ada-lang.c (ada_language_data): Remove la_varobj_ops
1281 initializer.
1282 (ada_language::varobj_ops): New member function.
1283 * c-lang.c (c_language_data): Remove la_varobj_ops
1284 initializer.
1285 (cplus_language_data): Likewise.
1286 (cplus_language::varobj_ops): New member function.
1287 (asm_language_data): Remove la_varobj_ops initializer.
1288 (minimal_language_data): Likewise.
1289 * d-lang.c (d_language_data): Likewise.
1290 * f-lang.c (f_language_data): Likewise.
1291 * go-lang.c (go_language_data): Likewise.
1292 * language.c (language_defn::varobj_ops): New function.
1293 (unknown_language_data): Remove la_varobj_ops
1294 initializer.
1295 (auto_language_data): Likewise.
1296 * language.h (language_data): Remove la_varobj_ops field.
1297 (language_defn::varobj_ops): Declare new member function.
1298 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
1299 * objc-lang.c (objc_language_data): Likewise.
1300 * opencl-lang.c (opencl_language_data): Likewise.
1301 * p-lang.c (pascal_language_data): Likewise.
1302 * rust-lang.c (rust_language_data): Likewise.
1303 * varobj.c (varobj_create): Update call to varobj_ops.
1304 * varobj.h (default_varobj_ops): Delete define.
1305
1306 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1307
1308 * ada-lang.c (ada_language_data): Remove la_macro_expansion
1309 initializer.
1310 * c-lang.c (c_language_data): Likewise.
1311 (c_language::macro_expansion): New member function.
1312 (cplus_language_data): Likewise.
1313 (cplus_language::macro_expansion): New member function.
1314 (asm_language_data): Likewise.
1315 (asm_language::macro_expansion): New member function.
1316 (minimal_language_data): Likewise.
1317 (minimal_language::macro_expansion): New member function.
1318 * d-lang.c (d_language_data): Remove la_macro_expansion
1319 initializer.
1320 * f-lang.c (f_language_data): Likewise.
1321 * go-lang.c (go_language_data): Likewise.
1322 * language.c (unknown_language_data): Likewise.
1323 (auto_language_data): Likewise.
1324 * language.h (language_data): Remove la_macro_expansion field.
1325 (language_defn::macro_expansion): New member function.
1326 * m2-lang.c (m2_language_data): Remove la_macro_expansion
1327 initializer.
1328 * objc-lang.c (objc_language_data): Likewise.
1329 (objc_language::macro_expansion): New member function.
1330 * opencl-lang.c (opencl_language_data): Likewise.
1331 (opencl_language::macro_expansion): New member function.
1332 * p-lang.c (pascal_language_data): Remove la_macro_expansion
1333 initializer.
1334 * rust-lang.c (rust_language_data): Likewise.
1335 * symtab.c (default_collect_symbol_completion_matches_break_on):
1336 Update call to macro_expansion.
1337
1338 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1339
1340 * ada-lang.c (ada_language_data): Remove la_array_ordering
1341 initializer.
1342 * c-lang.c (c_language_data): Likewise.
1343 (cplus_language_data): Likewise.
1344 (asm_language_data): Likewise.
1345 (minimal_language_data): Likewise.
1346 * d-lang.c (d_language_data): Likewise.
1347 * dwarf2/read.c (read_array_order): Update for call to
1348 array_ordering.
1349 * f-lang.c (f_language_data): Remove la_array_ordering
1350 initializer.
1351 (f_language::array_ordering): New member function.
1352 * go-lang.c (go_language_data): Remove la_array_ordering
1353 initializer.
1354 * language.c (unknown_language_data): Likewise.
1355 (auto_language_data): Likewise.
1356 * language.h (language_data): Delete la_array_ordering field.
1357 (language_defn::array_ordering): New member function.
1358 * m2-lang.c (m2_language_data): Remove la_array_ordering
1359 initializer.
1360 * objc-lang.c (objc_language_data): Likewise.
1361 * opencl-lang.c (opencl_language_data): Likewise.
1362 * p-lang.c (pascal_language_data): Likewise.
1363 * rust-lang.c (rust_language_data): Likewise.
1364
1365 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1366
1367 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
1368 initializer.
1369 * c-lang.c (c_language_data): Likewise.
1370 (cplus_language_data): Likewise.
1371 (asm_language_data): Likewise.
1372 (minimal_language_data): Likewise.
1373 * d-lang.c (d_language_data): Likewise.
1374 * f-lang.c (f_language_data): Likewise.
1375 (f_language::case_sensitivity): New member function.
1376 * go-lang.c (go_language_data): Remove la_case_sensitivity
1377 initializer.
1378 * language.c (enum case_mode): Moved here from language.h.
1379 (case_mode): Make static.
1380 (show_case_command): Update for case_sensitivity being a method.
1381 (set_case_command): Likewise.
1382 (set_range_case): Likewise.
1383 (unknown_language_data): Remove la_case_sensitivity initializer.
1384 (auto_language_data): Likewise.
1385 * language.h (case_mode): Delete, move enum declaration to
1386 language.c.
1387 (language_data): Delete la_case_sensitivity field.
1388 (language_defn::case_sensitivity): New member function.
1389 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
1390 initializer.
1391 * objc-lang.c (objc_language_data): Likewise.
1392 * opencl-lang.c (opencl_language_data): Likewise.
1393 * p-lang.c (pascal_language_data): Likewise.
1394 * rust-lang.c (rust_language_data): Likewise.
1395
1396 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1397
1398 * ada-lang.c (ada_language_data): Remove la_range_check
1399 initializer.
1400 * c-lang.c (c_language_data): Likewise.
1401 (cplus_language_data): Likewise.
1402 (asm_language_data): Likewise.
1403 (minimal_language_data): Likewise.
1404 * d-lang.c (d_language_data): Likewise.
1405 * f-lang.c (f_language_data): Likewise.
1406 (f_language::range_checking_on_by_default): New member function.
1407 * go-lang.c (go_language_data): Remove la_range_check initializer.
1408 * language.c (enum range_mode): Moved here from language.h.
1409 (range_mode): Made static.
1410 (show_range_command): Update to use
1411 range_checking_on_by_default.
1412 (set_range_command): Likewise.
1413 (set_range_case): Likewise.
1414 (unknown_language_data): Remove la_range_check initializer.
1415 (auto_language_data): Likewise.
1416 * language.h (range_mode): Delete. Enum definition moved to
1417 language.c.
1418 (language_data): Remove la_range_check field.
1419 (language_defn::range_checking_on_by_default): New member
1420 function.
1421 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
1422 (m2_language::range_checking_on_by_default): New member function.
1423 * objc-lang.c (objc_language_data): Remove la_range_check
1424 initializer.
1425 * opencl-lang.c (opencl_language_data): Likewise.
1426 * p-lang.c (pascal_language_data): Likewise.
1427 (pascal_language::range_checking_on_by_default): New member
1428 function.
1429 * rust-lang.c (rust_language_data): Remove la_range_check
1430 initializer.
1431 (rust_language::range_checking_on_by_default): New member
1432 function.
1433
1434 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1435
1436 * dwarf2/read.c (dwarf2_physname): Remove special case for
1437 language_go.
1438 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
1439 member function.
1440
1441 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1442
1443 * ada-lang.c (ada_language_data): Remove
1444 la_store_sym_names_in_linkage_form_p initializer.
1445 (ada_language::store_sym_names_in_linkage_form_p): New member
1446 function.
1447 * c-lang.c (c_language_data): Remove
1448 la_store_sym_names_in_linkage_form_p initializer.
1449 (c_language::store_sym_names_in_linkage_form_p): New member
1450 function.
1451 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
1452 initializer.
1453 (asm_language_data): Likewise.
1454 (asm_language::store_sym_names_in_linkage_form_p): New member
1455 function.
1456 (minimal_language_data): Remove
1457 la_store_sym_names_in_linkage_form_p initializer.
1458 (minimal_language::store_sym_names_in_linkage_form_p): New member
1459 function.
1460 * d-lang.c (d_language_data): Remove
1461 la_store_sym_names_in_linkage_form_p initializer.
1462 * dwarf2/read.c (dwarf2_physname): Update call to
1463 store_sym_names_in_linkage_form_p.
1464 * f-lang.c (f_language_data): Remove
1465 la_store_sym_names_in_linkage_form_p initializer.
1466 * go-lang.c (go_language_data): Remove
1467 la_store_sym_names_in_linkage_form_p initializer.
1468 * language.c (unknown_language_data): Remove
1469 la_store_sym_names_in_linkage_form_p initializer.
1470 (unknown_language::store_sym_names_in_linkage_form_p): New member
1471 function.
1472 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
1473 initializer.
1474 (auto_language::store_sym_names_in_linkage_form_p): New member
1475 function.
1476 * language.h (language_data): Remove
1477 la_store_sym_names_in_linkage_form_p member variable.
1478 (language_defn::store_sym_names_in_linkage_form_p): New member
1479 function.
1480 * m2-lang.c (m2_language_data): Remove
1481 la_store_sym_names_in_linkage_form_p initializer.
1482 * objc-lang.c (objc_language_data): Likewise.
1483 * opencl-lang.c (opencl_language_data): Likewise.
1484 * p-lang.c (pascal_language_data): Likewise.
1485 * rust-lang.c (rust_language_data): Likewise.
1486
1487 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1488
1489 * ada-lang.c (ada_language_data): Remove string_lower_bound
1490 initializer.
1491 * c-lang.c (c_language_data): Likewise.
1492 (cplus_language_data): Likewise.
1493 (asm_language_data): Likewise.
1494 (minimal_language_data): Likewise.
1495 * d-lang.c (d_language_data): Likewise.
1496 * f-lang.c (f_language_data): Likewise.
1497 * go-lang.c (go_language_data): Likewise.
1498 * language.c (unknown_language_data): Likewise.
1499 (auto_language_data): Likewise.
1500 * language.h (language_data): Remove string_lower_bound field.
1501 (language_defn::string_lower_bound): New member function.
1502 * m2-lang.c (m2_language_data): Remove string_lower_bound
1503 initializer.
1504 (m2_language::string_lower_bound): New member function.
1505 * objc-lang.c (objc_language_data): Remove string_lower_bound
1506 initializer.
1507 * opencl-lang.c (opencl_language_data): Likewise.
1508 * p-lang.c (pascal_language_data): Likewise.
1509 * rust-lang.c (rust_language_data): Likewise.
1510 * valops.c (value_cstring): Update call to string_lower_bound.
1511 (value_string): Likewise.
1512 * value.c (allocate_repeated_value): Likewise.
1513
1514 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1515
1516 * valops.c (value_repeat): Fix incorrect argument name in comment.
1517
1518 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1519
1520 * ada-lang.c (ada_language_data): Remove c_style_arrays
1521 initializer.
1522 (ada_language::c_style_arrays_p): New member fuction.
1523 * c-lang.c (c_language_data): Remove c_style_arrays
1524 initializer.
1525 (cplus_language_data): Likewise.
1526 (asm_language_data): Likewise.
1527 (minimal_language_data): Likewise.
1528 * d-lang.c (d_language_data): Likewise.
1529 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
1530 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
1531 (f_language::c_style_arrays_p): New member function.
1532 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
1533 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
1534 * language.c (unknown_language_data): Remove c_style_arrays
1535 initializer.
1536 (auto_language_data): Likewise.
1537 * language.h (language_data): Remove c_style_arrays field.
1538 (language_defn::c_style_arrays_p): New member function.
1539 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
1540 (m2_language::c_style_arrays_p): New member function.
1541 * objc-lang.c (objc_language_data): Remove c_style_arrays
1542 initializer.
1543 * opencl-lang.c (opencl_language_data): Likewise.
1544 * p-lang.c (pascal_language_data): Likewise.
1545 * rust-lang.c (rust_language_data): Likewise.
1546 * valarith.c (value_subscript): Update call to c_style_arrays_p,
1547 and update local variable to a bool.
1548 * valops.c (value_cast): Update call to c_style_arrays_p.
1549 (value_array): Likewise.
1550 * value.c (coerce_array): Likewise.
1551
1552 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1553
1554 * ada-lang.c (ada_language_data): Remove la_language initializer.
1555 * c-lang.c (c_language_data): Likewise.
1556 (cplus_language_data): Likewise.
1557 (asm_language_data): Likewise.
1558 (minimal_language_data): Likewise.
1559 * d-lang.c (d_language_data): Likewise.
1560 * f-lang.c (f_language_data): Likewise.
1561 * go-lang.c (go_language_data): Likewise.
1562 * language.c (unknown_language_data): Likewise.
1563 (auto_language_data): Likewise.
1564 * language.h (language_data): Remove la_language field.
1565 (language_defn::language_defn): Initialise la_language field.
1566 (language_defn::la_language): New member variable.
1567 * m2-lang.c (m2_language_data): Remove la_language field.
1568 * objc-lang.c (objc_language_data): Likewise.
1569 * opencl-lang.c (opencl_language_data): Likewise.
1570 * p-lang.c (pascal_language_data): Likewise.
1571 * rust-lang.c (rust_language_data): Likewise.
1572
1573 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1574
1575 * ada-lang.c (ada_extensions): Delete, moved into
1576 ada_language::filename_extensions.
1577 (ada_language_data): Remove la_filename_extensions initializer.
1578 (ada_language::filename_extensions): New member function.
1579 * c-lang.c (c_extensions): Delete, moved into
1580 c_language::filename_extensions.
1581 (c_language_data): Remove la_filename_extensions initializer.
1582 (c_language::filename_extensions): New member function.
1583 (cplus_extensions): Delete, moved into
1584 cplus_language::filename_extensions.
1585 (cplus_language_data): Remove la_filename_extensions initializer.
1586 (cplus_language::filename_extensions): New member function.
1587 (asm_extensions): Delete, moved into
1588 asm_language::filename_extensions.
1589 (asm_language_data): Remove la_filename_extensions initializer.
1590 (asm_language::filename_extensions): New member function.
1591 (minimal_language_data): Remove la_filename_extensions
1592 initializer.
1593 * d-lang.c (d_extensions): Delete, moved into
1594 d_language::filename_extensions.
1595 (d_language_data): Remove la_filename_extensions initializer.
1596 (d_language::filename_extensions): New member function.
1597 * f-lang.c (f_extensions): Delete, moved into
1598 f_language::filename_extensions.
1599 (f_language_data): Remove la_filename_extensions initializer.
1600 (f_language::filename_extensions): New member function.
1601 * go-lang.c (go_language_data): Remove la_filename_extensions
1602 initializer.
1603 * language.c (add_set_language_command): Update now that
1604 filename_extensions returns a vector.
1605 (unknown_language_data): Remove la_filename_extensions
1606 initializer.
1607 (auto_language_data): Likewise.
1608 * language.h (language_data): Remove la_filename_extensions field.
1609 (language_defn::filename_extensions): New member function.
1610 * m2-lang.c (m2_language_data): Remove la_filename_extensions
1611 initializer.
1612 * objc-lang.c (objc_extensions): Delete, moved into
1613 objc_language::filename_extensions.
1614 (objc_language_data): Remove la_filename_extensions initializer.
1615 (objc_language::filename_extensions): New member function.
1616 * opencl-lang.c (opencl_language_data): Remove
1617 la_filename_extensions initializer.
1618 * p-lang.c (pascal_extensions): Delete, moved into
1619 pascal_language::filename_extensions.
1620 (pascal_language_data): Remove la_filename_extensions initializer.
1621 (pascal_language::filename_extensions): New member function.
1622 * rust-lang.c (rust_extensions): Delete, moved into
1623 rust_language::filename_extensions.
1624 (rust_language_data): Remove la_filename_extensions initializer.
1625 (rust_language::filename_extensions): New member function.
1626 * symfile.c (add_filename_language): Add new assert.
1627
1628 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1629
1630 * ada-lang.c (ada_language_data): Remove la_name and
1631 la_natural_name initializers.
1632 (ada_language::name): New member function.
1633 (ada_language::natural_name): New member function.
1634 * c-lang.c (c_language_data): Remove la_name and
1635 la_natural_name initializers.
1636 (c_language::name): New member function.
1637 (c_language::natural_name): New member function.
1638 (cplus_language_data): Remove la_name and
1639 la_natural_name initializers.
1640 (cplus_language::name): New member function.
1641 (cplus_language::natural_name): New member function.
1642 (asm_language_data): Remove la_name and
1643 la_natural_name initializers.
1644 (asm_language::name): New member function.
1645 (asm_language::natural_name): New member function.
1646 (minimal_language_data): Remove la_name and
1647 la_natural_name initializers.
1648 (minimal_language::name): New member function.
1649 (minimal_language::natural_name): New member function.
1650 * compile/compile.c (compile_to_object): Update call to
1651 lanugage_defn::name.
1652 * d-lang.c (d_language_data): Remove la_name and
1653 la_natural_name initializers.
1654 (d_language::name): New member function.
1655 (d_language::natural_name): New member function.
1656 * expprint.c (print_subexp_standard): Update call to
1657 language_defn::name.
1658 (dump_raw_expression): Likewise
1659 (dump_prefix_expression): Likewise.
1660 * f-lang.c (f_language_data): Remove la_name and
1661 la_natural_name initializers.
1662 (f_language::name): New member function.
1663 (f_language::natural_name): New member function.
1664 * go-lang.c (go_language_data): Remove la_name and
1665 la_natural_name initializers.
1666 (go_language::name): New member function.
1667 (go_language::natural_name): New member function.
1668 * language.c (show_language_command): Update call to
1669 language_defn::name.
1670 (set_language_command): Likewise.
1671 (language_enum): Likewise.
1672 (language_str): Likewise.
1673 (add_set_language_command): Likewise, use
1674 language_defn::natural_name in the doc string.
1675 (unknown_language_data): Remove la_name and
1676 la_natural_name initializers.
1677 (unknown_language::name): New member function.
1678 (unknown_language::natural_name): New member function.
1679 (auto_language_data): Remove la_name and
1680 la_natural_name initializers.
1681 (auto_language::name): New member function.
1682 (auto_language::natural_name): New member function.
1683 (language_lookup_primitive_type_as_symbol): Update call to
1684 language_defn::name.
1685 * language.h (language_data): Remove la_name and la_natural_name
1686 member variables.
1687 (language_defn::name): New member function.
1688 (language_defn::natural_name): New member function.
1689 * m2-lang.c (m2_language_data): Remove la_name and
1690 la_natural_name initializers.
1691 (m2_language::name): New member function.
1692 (m2_language::natural_name): New member function.
1693 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
1694 language_defn::natural_name.
1695 * objc-lang.c (objc_language_data): Remove la_name and
1696 la_natural_name initializers.
1697 (objc_language::name): New member function.
1698 (objc_language::natural_name): New member function.
1699 * opencl-lang.c (opencl_language_data): Remove la_name and
1700 la_natural_name initializers.
1701 (opencl_language::name): New member function.
1702 (opencl_language::natural_name): New member function.
1703 * p-lang.c (pascal_language_data): Remove la_name and
1704 la_natural_name initializers.
1705 (pascal_language::name): New member function.
1706 (pascal_language::natural_name): New member function.
1707 * rust-lang.c (rust_language_data): Remove la_name and
1708 la_natural_name initializers.
1709 (rust_language::name): New member function.
1710 (rust_language::natural_name): New member function.
1711 * symtab.c (lookup_language_this): Update call to
1712 language_defn::name.
1713
1714 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1715
1716 * ada-lang.c (ada_language_data): Remove la_name_of_this
1717 initializer.
1718 * ax-gdb.c (gen_expr): Update call to name_of_this.
1719 * c-exp.y (classify_name): Likewise.
1720 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
1721 (cplus_language_data): Likewise.
1722 (cplus_language::name_of_this): New member function.
1723 (asm_language_data): Remove la_name_of_this initializer.
1724 (minimal_language_data): Likewise.
1725 * d-lang.c (d_language_data): Likewise.
1726 (d_language::name_of_this): New member function.
1727 * expprint.c (print_subexp_standard): Update call to name_of_this.
1728 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
1729 * go-lang.c (go_language_data): Likewise.
1730 * language.c (unknown_language_data): Likewise.
1731 (unknown_language::name_of_this): New member function.
1732 (auto_language_data): Remove la_name_of_this initializer.
1733 (auto_language::name_of_this): New member function.
1734 * language.h (language_data): Delete la_name_of_this member
1735 variable.
1736 (language_defn::name_of_this): New member function.
1737 * m2-lang.c (m2_language_data): Remove la_name_of_this
1738 initializer.
1739 * objc-lang.c (objc_language_data): Likewise.
1740 (objc_language::name_of_this): New member function.
1741 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
1742 initializer.
1743 * p-lang.c (pascal_language_data): Likewise.
1744 (pascal_language::name_of_this): New member function.
1745 * rust-lang.c (rust_language_data): Remove la_name_of_this
1746 initializer.
1747 * symtab.c (lookup_language_this): Update call to name_of_this.
1748 (lookup_symbol_aux): Likewise.
1749 * valops.c (value_of_this): Likewise.
1750
1751 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1752
1753 * ada-lang.c (ada_language_data): Remove
1754 la_struct_too_deep_ellipsis initializer.
1755 (ada_language::struct_too_deep_ellipsis): New member function.
1756 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
1757 initializer.
1758 (cplus_language_data): Likewise.
1759 (asm_language_data): Likewise.
1760 (minimal_language_data): Likewise.
1761 * cp-valprint.c (cp_print_value): Update call to
1762 struct_too_deep_ellipsis.
1763 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
1764 initializer.
1765 * f-lang.c (f_language_data): Likewise.
1766 (f_language::struct_too_deep_ellipsis): New member function.
1767 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
1768 initializer.
1769 * language.c (unknown_language_data): Likewise.
1770 (auto_language_data): Likewise.
1771 * language.h (language_data): Delete la_struct_too_deep_ellipsis
1772 member variable.
1773 (language_defn::struct_too_deep_ellipsis): New member function.
1774 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
1775 initializer.Q
1776 * objc-lang.c (objc_language_data): Likewise.
1777 * opencl-lang.c (opencl_language_data): Likewise.
1778 * p-lang.c (pascal_language_data): Likewise.
1779 * rust-lang.c (rust_language_data): Likewise.
1780 * valprint.c (val_print_check_max_depth): Update call to
1781 struct_too_deep_ellipsis.
1782
1783 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
1784
1785 * MAINTAINERS (Write After Approval): Add myself.
1786
1787 2020-09-15 Tom Tromey <tom@tromey.com>
1788
1789 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
1790 Remove.
1791
1792 2020-09-15 Tom Tromey <tom@tromey.com>
1793
1794 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
1795 and TYPE_CODE_METHODPTR cases.
1796 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
1797 (c_value_print_inner): Update.
1798 * valprint.c (generic_value_print_memberptr): New function, from
1799 c_value_print_memberptr.
1800 (generic_value_print): Use it. Call cplus_print_method_ptr.
1801
1802 2020-09-15 Tom Tromey <tromey@adacore.com>
1803
1804 * python/python-internal.h (PyInt_FromLong): Remove define.
1805 * python/py-value.c (convert_value_from_python): Use
1806 gdb_py_object_from_longest.
1807 * python/py-type.c (typy_get_code): Use
1808 gdb_py_object_from_longest.
1809 * python/py-symtab.c (salpy_get_line): Use
1810 gdb_py_object_from_longest.
1811 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
1812 gdb_py_object_from_longest.
1813 * python/py-record.c (recpy_gap_reason_code): Use
1814 gdb_py_object_from_longest.
1815 * python/py-record-btrace.c (recpy_bt_insn_size)
1816 (recpy_bt_func_level, btpy_list_count): Use
1817 gdb_py_object_from_longest.
1818 * python/py-infthread.c (gdbpy_create_ptid_object): Use
1819 gdb_py_object_from_longest. Fix error handling.
1820 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
1821 gdb_py_object_from_longest.
1822 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
1823 gdb_py_object_from_longest.
1824 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
1825 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
1826 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
1827
1828 2020-09-15 Tom Tromey <tromey@adacore.com>
1829
1830 * python/python.c (gdbpy_parameter_value): Use
1831 gdb_py_object_from_ulongest.
1832
1833 2020-09-15 Tom Tromey <tromey@adacore.com>
1834
1835 * python/py-infevents.c (create_register_changed_event_object):
1836 Use gdb_py_object_from_longest.
1837 * python/py-exitedevent.c (create_exited_event_object): Use
1838 gdb_py_object_from_longest.
1839
1840 2020-09-15 Tom Tromey <tromey@adacore.com>
1841
1842 * python/python.c (gdbpy_parameter_value): Use
1843 gdb_py_object_from_longest.
1844 * python/py-type.c (convert_field, typy_range): Use
1845 gdb_py_object_from_longest.
1846 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
1847 gdb_py_object_from_longest.
1848 * python/py-lazy-string.c (stpy_get_length): Use
1849 gdb_py_object_from_longest.
1850 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
1851 gdb_py_object_from_longest.
1852 * python/py-infevents.c (create_memory_changed_event_object): Use
1853 gdb_py_object_from_longest.
1854 * python/py-inferior.c (infpy_get_num): Use
1855 gdb_py_object_from_longest.
1856 (infpy_get_pid): Likewise.
1857
1858 2020-09-15 Tom Tromey <tromey@adacore.com>
1859
1860 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
1861 defines.
1862 * python/py-value.c (valpy_long): Use
1863 gdb_py_object_from_ulongest.
1864 * python/py-symtab.c (salpy_get_pc): Use
1865 gdb_py_object_from_ulongest.
1866 (salpy_get_last): Likewise.
1867 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
1868 gdb_py_object_from_ulongest.
1869 * python/py-lazy-string.c (stpy_get_address): Use
1870 gdb_py_object_from_ulongest.
1871 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
1872 * python/py-arch.c (archpy_disassemble): Use
1873 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
1874 error handling.
1875
1876 2020-09-15 Tom Tromey <tromey@adacore.com>
1877
1878 * python/python-internal.h (gdb_py_long_from_longest): Remove
1879 defines.
1880 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
1881 * python/py-type.c (convert_field, typy_get_sizeof): Use
1882 gdb_py_object_from_longest.
1883 * python/py-record-btrace.c (btpy_list_index): Use
1884 gdb_py_object_from_longest.
1885
1886 2020-09-15 Tom Tromey <tromey@adacore.com>
1887
1888 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
1889 * python/py-record.c (recpy_element_number): Use
1890 gdb_py_object_from_longest.
1891 (recpy_gap_number): Likewise.
1892
1893 2020-09-15 Tom Tromey <tromey@adacore.com>
1894
1895 * top.c (ui::ui): Update.
1896 (highest_ui_num): Remove.
1897 * top.h (struct ui) <num>: Remove.
1898
1899 2020-09-15 Tom Tromey <tromey@adacore.com>
1900
1901 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
1902 * ui-style.c (ansi_regex_text): Now array.
1903 * rust-exp.y (number_regex_text): Now array.
1904 * linespec.c (linespec_quote_characters): Now array.
1905 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
1906 Now arrays.
1907
1908 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1909
1910 * debuginfod-support.c (debuginfod_client_deleter): New.
1911 (debuginfod_client_up): New.
1912 (debuginfod_init): Return debuginfod_client_up.
1913 (debuginfod_source_query): Adjust.
1914 (debuginfod_debuginfo_query): Adjust.
1915
1916 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1917
1918 * debuginfod-support.c (debuginfod_source_query): Use
1919 make_unique_xstrdup.
1920
1921 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1922
1923 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
1924 with `type::instance_flags`.
1925
1926 2020-09-14 Michael Mullin <masmullin@gmail.com>
1927
1928 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
1929 Remove baton parameter.
1930
1931 2020-09-14 Pedro Alves <pedro@palves.net>
1932
1933 * Makefile.in (SELFTESTS_SRCS): Add
1934 unittests/enum-flags-selftests.c.
1935 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
1936 btrace_function_flags instead of enum btrace_function_flag.
1937 * compile/compile-c-types.c (convert_qualified): Use
1938 enum_flags::raw.
1939 * compile/compile-cplus-symbols.c (convert_one_symbol)
1940 (convert_symbol_bmsym):
1941 * compile/compile-cplus-types.c (compile_cplus_convert_method)
1942 (compile_cplus_convert_struct_or_union_methods)
1943 (compile_cplus_instance::convert_qualified_base):
1944 * go-exp.y (parse_string_or_char): Add cast to int.
1945 * unittests/enum-flags-selftests.c: New file.
1946 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
1947 type to btrace_thread_flags from btrace_thread_flag.
1948 (record_btrace_cancel_resume, record_btrace_step_thread): Change
1949 local's type to btrace_thread_flags from btrace_thread_flag. Add
1950 cast in DEBUG call.
1951
1952 2020-09-14 Pedro Alves <pedro@palves.net>
1953
1954 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
1955 * gdbtypes.c (address_space_name_to_int): Rename to ...
1956 (address_space_name_to_type_instance_flags): ... this.
1957 (address_space_int_to_name): Rename to ...
1958 (address_space_type_instance_flags_to_name): ... this.
1959 * gdbtypes.h (address_space_name_to_int): Rename to ...
1960 (address_space_name_to_type_instance_flags): ... this.
1961 (address_space_int_to_name): Rename to ...
1962 (address_space_type_instance_flags_to_name): ... this.
1963 * type-stack.c (type_stack::insert): Adjust to rename.
1964 * type-stack.h (type_stack::insert): Likewise.
1965
1966 2020-09-14 Pedro Alves <pedro@palves.net>
1967 Andrew Burgess <andrew.burgess@embecosm.com>
1968
1969 * avr-tdep.c (avr_address_class_type_flags): Return
1970 type_instance_flags.
1971 (avr_address_class_type_flags_to_name): Take a
1972 type_instance_flags.
1973 (avr_address_class_name_to_type_flags): Return bool and take a
1974 type_instance_flags.
1975 * d-lang.c (build_d_types): Use type::set_instance_flags.
1976 * ft32-tdep.c (ft32_address_class_type_flags): Return
1977 type_instance_flags.
1978 (ft32_address_class_type_flags_to_name): Take a
1979 type_instance_flags.
1980 (ft32_address_class_name_to_type_flags): Return bool and take a
1981 type_instance_flags.
1982 (ft32_gdbarch_init): Use type::set_instance_flags.
1983 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
1984 * gdbarch.h, gdbarch.c: Regenerate.
1985 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
1986 (address_class_name_to_type_flags): Use type_instance_flags and
1987 bool.
1988 * gdbtypes.c (address_space_name_to_int)
1989 (address_space_int_to_name, make_qualified_type): Use
1990 type_instance_flags.
1991 (make_qualified_type): Use type_instance_flags and
1992 type::set_instance_flags.
1993 (make_type_with_address_space, make_cv_type, make_vector_type)
1994 (check_typedef): Use type_instance_flags.
1995 (recursive_dump_type): Cast type_instance_flags to unsigned for
1996 printing.
1997 (copy_type_recursive): Use type::set_instance_flags.
1998 (gdbtypes_post_init): Use type::set_instance_flags.
1999 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
2000 <m_instance_flags>: ... this.
2001 <instance_flags, set_instance_flags>: New methods.
2002 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
2003 (SET_TYPE_INSTANCE_FLAGS): New.
2004 (address_space_name_to_int, address_space_int_to_name)
2005 (make_type_with_address_space): Pass flags using
2006 type_instance_flags instead of int.
2007 * stabsread.c (cleanup_undefined_types_noname): Use
2008 type::set_instance_flags.
2009 * s390-tdep.c (s390_address_class_type_flags): Return
2010 type_instance_flags.
2011 (s390_address_class_type_flags_to_name): Take a
2012 type_instance_flags.
2013 (s390_address_class_name_to_type_flags): Return bool and take a
2014 type_instance_flags.
2015 * type-stack.c (type_stack::follow_types): Use
2016 type_instance_flags.
2017 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
2018
2019 2020-09-14 Tom Tromey <tromey@adacore.com>
2020
2021 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
2022 * x86-tdep.c (x86_is_thunk_register_name)
2023 (x86_in_indirect_branch_thunk): Update.
2024 * sparc64-tdep.c (sparc64_fpu_register_names)
2025 (sparc64_cp0_register_names, sparc64_register_names)
2026 (sparc64_pseudo_register_names): Now const.
2027 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
2028 cp0_registers_num>: Now const.
2029 * sparc-tdep.c (sparc_core_register_names)
2030 (sparc32_fpu_register_names, sparc32_cp0_register_names)
2031 (sparc32_pseudo_register_names): Now const.
2032 (validate_tdesc_registers): Update.
2033 * rust-lang.c (rust_extensions): Now const.
2034 * p-lang.c (p_extensions): Now const.
2035 * objc-lang.c (objc_extensions): Now const.
2036 * nto-tdep.c (nto_thread_state_str): Now const.
2037 * moxie-tdep.c (moxie_register_names): Now const.
2038 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
2039 Now const.
2040 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
2041 (mips_linux_reg_names): Now const.
2042 (mips_gdbarch_init): Update.
2043 * microblaze-tdep.c (microblaze_register_names): Now const.
2044 * m68k-tdep.c (m68k_register_names): Now const.
2045 * m32r-tdep.c (m32r_register_names): Now const.
2046 * ia64-tdep.c (ia64_register_names): Now const.
2047 * i386-tdep.h (struct gdbarch_tdep) <register_names,
2048 ymmh_register_names, ymm16h_regnum, mpx_register_names,
2049 k_register_names, zmmh_register_names, xmm_avx512_register_names,
2050 ymm_avx512_register_names, pkeys_register_names>: Now const.
2051 * i386-tdep.c (i386_register_names, i386_zmm_names)
2052 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
2053 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
2054 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
2055 * f-lang.c (f_extensions): Now const.
2056 * d-lang.c (d_extensions): Now const.
2057 * csky-tdep.c (csky_register_names): Now const.
2058 * charset.c (default_charset_names, charset_enum): Now const.
2059 (_initialize_charset): Update.
2060 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
2061 const.
2062 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
2063 (bsd_uthread_solib_loaded): Update.
2064 (bsd_uthread_state): Now const.
2065 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
2066 (amd64_ymm_avx512_names, amd64_ymmh_names)
2067 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
2068 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
2069 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
2070 (amd64_dword_names): Now const.
2071 * agent.c (can_use_agent_enum): Now const.
2072 * ada-tasks.c (task_states, long_task_states): Now const.
2073 * ada-lang.c (known_runtime_file_name_patterns)
2074 (known_auxiliary_function_name_patterns, attribute_names)
2075 (standard_exc, ada_extensions): Now const.
2076
2077 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2078
2079 * bcache.h (struct bcache) <bcache>: Remove constructor.
2080 <m_hash_function, m_compare_function>: Remove.
2081 <~bcache>: Make virtual.
2082 <compare>: Remove static method, introduce virtual method.
2083 <default_hash>: Remove.
2084 <hash>: New virtual method.
2085 * bcache.c (bcache::expand_hash_table): Update.
2086 (bcache::insert): Update.
2087 (bcache::hash): New.
2088 (bcache::compare): Update comment and parameter names.
2089 * gdbtypes.c (types_deeply_equal): Update.
2090 * psymtab.h (struct psymbol_bcache): New struct.
2091 (class psymtab_storage) <psymtab_storage>: Make default.
2092 <psymbol_cache>: Change type to psymbol_bcache.
2093 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
2094 (psymbol_hash): Change to...
2095 (psymbol_bcache::hash): ... this.
2096 (psymbol_compare): Change to...
2097 (psymbol_bcache::compare): ... this.
2098
2099 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2100
2101 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
2102 checking for initial lwp.
2103
2104 2020-09-14 Tom Tromey <tromey@adacore.com>
2105
2106 * m68k-tdep.c (m68k_extract_return_value): Use
2107 pointer_result_regnum.
2108 (m68k_store_return_value): Likewise.
2109 (m68k_reg_struct_return_p): Handle vectors and arrays.
2110 (m68k_return_value): Handle arrays.
2111 (m68k_svr4_return_value): Fix single-element aggregate handling.
2112 Handle long double. Adjust for embedded ABI.
2113 (m68k_svr4_init_abi): Set pointer_result_regnum.
2114 (m68k_embedded_init_abi): New function.
2115 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
2116 (m68k_osabi_sniffer): New function.
2117 (_initialize_m68k_tdep): Register osabi sniffer.
2118 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
2119 member.
2120
2121 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2122
2123 * xml-support.c (xml_fetch_content_from_file): Replace xfree
2124 with gdb::unique_xmalloc_ptr<char>.
2125
2126 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2127
2128 * xml-support.h (xml_fetch_another): Change type to be a
2129 function_view.
2130 (xml_process_xincludes): Remove baton parameter.
2131 (xml_fetch_content_from_file): Change baton parameter to
2132 dirname.
2133 * xml-support.c (struct xinclude_parsing_data)
2134 <xinclude_parsing_data>: Remove baton parameter.
2135 <fetcher_baton>: Remove.
2136 (xinclude_start_include): Adjust.
2137 (xml_process_xincludes): Adjust.
2138 (xml_fetch_content_from_file): Replace baton parameter with
2139 dirname.
2140 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
2141 (xml_init_syscalls_info): Use a lambda.
2142 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
2143 (file_read_description_xml): Use a lambda.
2144 (fetch_available_features_from_target): Change baton parameter
2145 to target_ops.
2146 (target_read_description_xml): Use a lambda.
2147 (target_fetch_description_xml): Use a lambda.
2148 (string_read_description_xml): Update.
2149
2150 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2151
2152 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
2153 uses with type::endianity_is_not_default.
2154
2155 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2156
2157 * gdbtypes.h (struct type) <endianity_is_not_default,
2158 set_endianity_is_not_default>: New methods.
2159 (TYPE_ENDIANITY_NOT_DEFAULT): Use
2160 type::endianity_is_not_default, change all write call sites to
2161 use type::set_endianity_is_not_default.
2162
2163 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2164
2165 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
2166 uses with type::is_fixed_instance.
2167
2168 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2169
2170 * gdbtypes.h (struct type) <is_fixed_instance,
2171 set_is_fixed_instance>: New methods.
2172 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
2173 write call sites to use type::set_is_fixed_instance.
2174
2175 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2176
2177 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
2178 uses with type::is_gnu_ifunc.
2179
2180 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2181
2182 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
2183 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
2184 use type::set_is_gnu_ifunc.
2185
2186 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2187
2188 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
2189 uses with type::stub_is_supported.
2190
2191 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2192
2193 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
2194 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
2195 use type::set_stub_is_supported.
2196
2197 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2198
2199 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
2200 uses with type::is_vector.
2201
2202 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2203
2204 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
2205 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
2206 use type::set_is_vector.
2207
2208 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2209
2210 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
2211 uses with type::has_varargs.
2212
2213 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2214
2215 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
2216 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
2217 use type::set_has_varargs.
2218
2219 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2220
2221 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
2222 uses with type::is_prototyped.
2223
2224 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2225
2226 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
2227 New methods.
2228 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
2229 call sites to use type::set_is_prototyped.
2230
2231 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2232
2233 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
2234 uses with type::target_is_stub.
2235
2236 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2237
2238 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
2239 New methods.
2240 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
2241 sites to use type::set_target_is_stub.
2242
2243 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2244
2245 * gdbtypes.h (TYPE_STUB): Remove, replace all
2246 uses with type::is_stub.
2247
2248 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2249
2250 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
2251 (TYPE_STUB): Use type::is_stub, change all write call sites to
2252 use type::set_is_stub.
2253
2254 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2255
2256 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
2257 type::has_no_signedness.
2258
2259 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2260
2261 * gdbtypes.h (struct type) <has_no_signedness,
2262 set_has_no_signedness>: New methods.
2263 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
2264 call sites to use type::set_has_no_signedness.
2265
2266 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2267
2268 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
2269 type::is_unsigned.
2270
2271 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2272
2273 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
2274 methods.
2275 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
2276 sites to use type::set_is_unsigned.
2277
2278 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
2279 Adam Renquinha <arenquinha@cimeq.qc.ca>
2280
2281 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
2282 pointer and stack frame offset when unwinding.
2283
2284 2020-09-13 Pedro Alves <pedro@palves.net>
2285
2286 * NEWS: Document "-break-insert --qualified".
2287 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
2288
2289 2020-09-13 Pedro Alves <pedro@palves.net>
2290
2291 * linespec.c (classify_mtype, compare_msyms): Delete.
2292 (search_minsyms_for_name): Remove classification logic. Instead
2293 filter out trampoline symbols if we also found an external
2294 function of the same name.
2295
2296 2020-09-13 Joel Brobecker <brobecker@adacore.com>
2297
2298 * NEWS: Create a new section for the next release branch.
2299 Rename the section of the current branch, now that it has
2300 been cut.
2301
2302 2020-09-13 Joel Brobecker <brobecker@adacore.com>
2303
2304 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
2305 * version.in: Bump version to 11.0.50.DATE-git.
2306
2307 2020-09-12 Joel Brobecker <brobecker@adacore.com>
2308
2309 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
2310
2311 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
2312 Felix Willgerodt <Felix.Willgerodt@intel.com>
2313
2314 * gdbarch.sh: Added bfloat16 type.
2315 * gdbarch.c: Regenerated.
2316 * gdbarch.h: Regenerated.
2317 * gdbtypes.c (floatformats_bfloat16): New struct.
2318 (gdbtypes_post_init): Add builtin_bfloat16.
2319 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
2320 (floatformats_bfloat16): New struct.
2321 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
2322 (i386_ymm_type): Add field "v16_bfloat16"
2323 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
2324 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
2325 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
2326 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
2327 * features/i386/64bit-avx512.xml: Add bfloat16 type.
2328 * features/i386/64bit-avx512.c: Regenerated.
2329 * features/i386/64bit-sse.xml: Add bfloat16 type.
2330 * features/i386/64bit-sse.c: Regenerated.
2331
2332 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
2333
2334 * i386-tdep.c (i386_zmm_type): Fix field names.
2335 (i386_ymm_type): Fix field names.
2336
2337 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2338
2339 * breakpoint.c: Fix typo in the help message of the
2340 "set breakpoint condition-evaluation" command.
2341
2342 2020-09-10 Kamil Rytarowski <n54@gmx.com>
2343
2344 * nbsd-nat.c: Include "nat/netbsd-nat.h".
2345 * (nbsd_nat_target::pid_to_exec_file)
2346 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
2347 (nbsd_nat_target::post_startup_inferior)
2348 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
2349 (nbsd_add_threads): Switch local code to common gdb/nat functions.
2350 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
2351 * (nbsd_thread_lister): Remove.
2352
2353 2020-09-10 Kamil Rytarowski <n54@gmx.com>
2354
2355 * fork-inferior.c (startup_inferior): Avoid double free.
2356
2357 2020-09-10 Kamil Rytarowski <n54@gmx.com>
2358
2359 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
2360 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
2361
2362 2020-09-10 Kamil Rytarowski <n54@gmx.com>
2363
2364 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
2365 * netbsd-nat.c: Include <sys/ptrace.h>.
2366 * (netbsd_nat::enable_proc_events): Add.
2367
2368 2020-09-10 Kamil Rytarowski <n54@gmx.com>
2369
2370 * netbsd-nat.h: Include "gdbsupport/function-view.h".
2371 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
2372 (netbsd_nat::for_each_thread): Add.
2373 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
2374 "gdbsupport/common-debug.h".
2375 * (netbsd_nat::netbsd_thread_lister)
2376 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
2377 (netbsd_nat::for_each_thread): Add.
2378
2379 2020-09-10 Kamil Rytarowski <n54@gmx.com>
2380
2381 * netbsd-nat.h: Include <unistd.h>.
2382 * (netbsd_nat::pid_to_exec_file): Add.
2383 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
2384 * (netbsd_nat::pid_to_exec_file) Add.
2385
2386 2020-09-10 Kamil Rytarowski <n54@gmx.com>
2387
2388 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
2389
2390 2020-09-10 Kamil Rytarowski <n54@gmx.com>
2391
2392 * netbsd-nat.h: New file.
2393 * netbsd-nat.c: Likewise.
2394
2395 2020-09-09 Tom Tromey <tromey@adacore.com>
2396
2397 * ada-lang.c (remove_extra_symbols): Do not increment when
2398 removing an element
2399
2400 2020-09-08 Tom Tromey <tromey@adacore.com>
2401
2402 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
2403
2404 2020-09-08 Tom Tromey <tromey@adacore.com>
2405
2406 PR win32/25302:
2407 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
2408 (gdb_bfd_init_data): New function.
2409 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
2410
2411 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2412
2413 * infrun.c (fetch_inferior_event): Use
2414 `switch_to_target_no_thread` to switch the target.
2415
2416 2020-09-06 Tom Tromey <tom@tromey.com>
2417
2418 * symfile.h (dwarf2_free_objfile): Don't declare.
2419
2420 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2421
2422 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
2423 to match 16 byte real/complex type generated by Flang compiler.
2424
2425 2020-09-03 Tom de Vries <tdevries@suse.de>
2426
2427 PR breakpoint/26546
2428 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
2429 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
2430
2431 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
2432
2433 * maint.c (index_digits): New function.
2434 (struct maint_print_section_data): Remove.
2435 (print_bfd_section_info): Remove print_data parameter, add arg
2436 and index_digits.
2437 (print_objfile_section_info): Likewise.
2438 (print_bfd_section_info_maybe_relocated): Likewise (plus
2439 objfile).
2440 (maintenance_info_sections): Adjust calls.
2441
2442 2020-09-02 Tom Tromey <tromey@adacore.com>
2443
2444 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
2445 for null pointers.
2446 (ada_varobj_adjust_for_child_access): Special-case null pointers.
2447
2448 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
2449
2450 * bcache.h (struct bcache) <insert>: Change type of `added` to
2451 pointer to bool.
2452 * bcache.c (bcache::insert): Likewise.
2453 * gdbtypes.c (check_types_worklist): Adjust.
2454 * psymtab.c (add_psymbol_to_bcache): Adjust.
2455
2456 2020-08-31 Kevin Buettner <kevinb@redhat.com>
2457
2458 * corelow.c (unordered_set): Include.
2459 (class core_target): Add field 'm_core_unavailable_mappings'.
2460 (core_target::build_file_mappings): Print only one warning
2461 per inaccessible file. Add unavailable/broken mappings
2462 to m_core_unavailable_mappings.
2463 (core_target::xfer_partial): Call...
2464 (core_target::xfer_memory_via_mappings): New method.
2465
2466 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
2467
2468 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
2469 type to bool.
2470
2471 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
2472
2473 * dwarf2/read.c (struct field_info): Fix indentation.
2474
2475 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
2476
2477 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
2478 ordering in comment.
2479 * frame.c (frame_id_eq): Fix indentation.
2480
2481 2020-08-31 Scott Linder <scott@scottlinder.com>
2482 Simon Marchi <simon.marchi@efficios.com>
2483
2484 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
2485 inline frame ids in outer frame.
2486
2487 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
2488
2489 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
2490 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
2491 (outer_frame_id): Use FID_STACK_OUTER instead of
2492 FID_STACK_INVALID.
2493 (frame_id_p): Don't check for outer_frame_id.
2494
2495 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
2496
2497 * frame-unwind.c (frame_unwind_got_optimized): Don't set
2498 regnum/frame in value. Call allocate_value_lazy.
2499 * frame.c (frame_unwind_register_value): Use
2500 val_print_not_saved.
2501
2502 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
2503
2504 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
2505
2506 2020-08-29 Pedro Alves <pedro@palves.net>
2507
2508 * progspace.c (print_program_space): Use all_inferiors. Switch to
2509 the inferior before calling target_pid_to_str.
2510
2511 2020-08-28 Tom Tromey <tom@tromey.com>
2512
2513 * xcoffread.c (xcoff_end_psymtab): Update comment.
2514 * dbxread.c (dbx_end_psymtab): Update comment.
2515
2516 2020-08-28 Tom de Vries <tdevries@suse.de>
2517
2518 PR breakpoint/26544
2519 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
2520 event_location.
2521 (create_breakpoint): Same.
2522 (base_breakpoint_decode_location): Same.
2523 (bkpt_create_sals_from_location): Same.
2524 (bkpt_decode_location): Same.
2525 (bkpt_probe_create_sals_from_location): Same.
2526 (bkpt_probe_decode_location): Same.
2527 (tracepoint_create_sals_from_location): Same.
2528 (tracepoint_decode_location): Same.
2529 (tracepoint_probe_decode_location): Same.
2530 (strace_marker_create_sals_from_location): Same.
2531 (strace_marker_decode_location): Same.
2532 (create_sals_from_location_default): Same.
2533 (decode_location_default): Same.
2534 * breakpoint.h (struct breakpoint_ops): Same.
2535 (create_breakpoint): Same.
2536 * linespec.h (decode_line_full): Same.
2537 * linespec.c (decode_line_full): Same. Throw error if
2538 result.size () == 0.
2539
2540 2020-08-27 Pedro Alves <pedro@palves.net>
2541
2542 PR gdb/26524
2543 * breakpoint.c (until_break_fsm) <location_breakpoint,
2544 caller_breakpoint>: Delete fields.
2545 <breakpoints>: New field.
2546 <until_break_fsm>: Adjust to save a breakpoint vector instead of
2547 two individual breakpoints.
2548 (until_break_fsm::should_stop): Loop over breakpoints in the
2549 breakpoint vector.
2550 (until_break_fsm::clean_up): Adjust to clear the breakpoints
2551 vector.
2552 (until_break_command): Handle location expanding into multiple
2553 sals.
2554
2555 2020-08-27 Pedro Alves <pedro@palves.net>
2556
2557 PR gdb/26523
2558 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
2559 bp_until breakpoints user-specified locations. Update intro
2560 comment.
2561
2562 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
2563
2564 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
2565 gdb_bfd_sections): New.
2566 * maint.c (print_bfd_section_info): Change param type to
2567 maint_print_section_data.
2568 (print_objfile_section_info): Likewise.
2569 (print_bfd_section_info_maybe_relocated): Likewise.
2570 (maintenance_info_sections): Use gdb_bfd_sections.
2571
2572 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
2573
2574 * MAINTAINERS: Add ARC target and maintainer.
2575
2576 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
2577
2578 * configure.tgt: ARC support for GNU/Linux.
2579 * Makefile.in (ALL_TARGET_OBJS): Likewise.
2580 * arc-linux-tdep.c: New file.
2581 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
2582 * arc-tdep.c (arc_write_pc): Use it.
2583
2584 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
2585
2586 * arc-tdep.c (arc_check_for_hardware_loop): New.
2587 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
2588
2589 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
2590
2591 * arc-tdep.h: Include "gdbarch.h".
2592
2593 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
2594
2595 * arch/arc.h
2596 (arc_gdbarch_features): New class to stir the selection of target XML.
2597 (arc_create_target_description): Use FEATURES to choose XML target.
2598 (arc_lookup_target_description): Use arc_create_target_description
2599 to create _new_ target descriptions or return the already created
2600 ones if the FEATURES is the same.
2601 * arch/arc.c: Implementation of prototypes described above.
2602 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
2603 (arc_gdbarch_features_init): Initialize the FEATURES struct.
2604 * arc-tdep.c (*_feature_name): Make feature names consistent.
2605 (arc_register_feature): A new struct to hold information about
2606 registers of a particular target/feature.
2607 (arc_check_tdesc_feature): Check if XML provides registers in
2608 compliance with ARC_REGISTER_FEATURE structs.
2609 (arc_update_acc_reg_names): Add aliases for r58 and r59.
2610 (determine_*_reg_feature_set): Which feature name to look for.
2611 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
2612 (mach_type_to_arc_isa): Convert from a set of binutils machine types
2613 to expected ISA enums to be used in arc_gdbarch_features structs.
2614 * features/Makefile (FEATURE_XMLFILES): Add new files.
2615 * gdb/features/arc/v1-aux.c: New file.
2616 * gdb/features/arc/v1-aux.xml: Likewise.
2617 * gdb/features/arc/v1-core.c: Likewise.
2618 * gdb/features/arc/v1-core.xml: Likewise.
2619 * gdb/features/arc/v2-aux.c: Likewise.
2620 * gdb/features/arc/v2-aux.xml: Likewise.
2621 * gdb/features/arc/v2-core.c: Likewise.
2622 * gdb/features/arc/v2-core.xml: Likewise.
2623 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
2624
2625 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
2626 Andrew Burgess <andrew.burgess@embecosm.com>
2627
2628 PR m2/26372
2629 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
2630 an assert. Remove single element array indexing pattern as the
2631 MULTI_SUBSCRIPT support will handle this case too.
2632
2633 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
2634
2635 * value.h (valprint_check_validity): Move declaration from
2636 here...
2637 * valprint.h (valprint_check_validity): ... to here.
2638
2639 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
2640
2641 * debug.h: New file.
2642 * debug.c (debug_prefixed_vprintf): New function.
2643 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
2644 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
2645
2646 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
2647
2648 * infrun.h (infrun_debug_printf_1): New function declaration.
2649 (infrun_debug_printf): New macro.
2650 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
2651 throughout.
2652 (infrun_debug_printf): New function.
2653 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
2654 (handle_jit_event): Likewise.
2655
2656 2020-08-21 Mark Wielaard <mark@klomp.org>
2657
2658 * ada-lex.l: Extend register warnings diagnostics comment for g++.
2659
2660 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
2661
2662 * frame.c (enum class frame_id_status): New.
2663 (struct frame_info) <this_id::p>: Change type to frame_id_status.
2664 (fprintf_frame): Update.
2665 (compute_frame_id): Set frame id status to "computing" on entry.
2666 Set it back to "not_computed" on failure and to "computed" on
2667 success.
2668 (get_frame_id): Assert the frame id is not being computed.
2669 (create_sentinel_frame): Use frame_id_status::COMPUTED.
2670 (create_new_frame): Likewise.
2671 (frame_cleanup_after_sniffer): Update assert.
2672
2673 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2674
2675 * regcache.c (pid_ptid_regcache_map): New type.
2676 (target_ptid_regcache_map): Remove.
2677 (target_pid_ptid_regcache_map): New type.
2678 (regcaches): Change type to target_pid_ptid_regcache_map.
2679 (get_thread_arch_aspace_regcache): Update.
2680 (regcache_thread_ptid_changed): Update, handle pid-like ptid
2681 case.
2682 (regcaches_size): Update.
2683 (regcache_count): Update.
2684 (registers_changed_ptid_target_pid_test): New.
2685 (_initialize_regcache): Register new test.
2686
2687 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2688
2689 * regcache.c (regcache_count): New.
2690 (struct regcache_test_data): New.
2691 (regcache_test_data_up): New.
2692 (populate_regcaches_for_test): New.
2693 (regcaches_test): Remove.
2694 (get_thread_arch_aspace_regcache_test): New.
2695 (registers_changed_ptid_all_test): New.
2696 (registers_changed_ptid_target_test): New.
2697 (registers_changed_ptid_target_ptid_test): New.
2698 (regcache_thread_ptid_changed): Remove regcache_count lambda.
2699 (_initialize_regcache): Register new tests.
2700
2701 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2702
2703 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
2704 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
2705 gdbarch and aspace parameter. Use current inferior's aspace.
2706 Validate regcache's arch value.
2707 (regcaches_test): Update.
2708
2709 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2710
2711 * regcache.c (regcaches_test): Call registers_changed.
2712
2713 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2714
2715 * infrun.c (process_event_stop_test): Fix typo "breapoint".
2716
2717 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2718
2719 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
2720 to find the end of prologue for flang compiled binaries.
2721 * arm-tdep.c (arm_skip_prologue): Likewise.
2722 * i386-tdep.c (i386_skip_prologue): Likewise.
2723 * producer.c (producer_is_llvm): New function.
2724 (producer_parsing_tests): Added new tests for clang/flang.
2725 * producer.h (producer_is_llvm): New declaration.
2726
2727 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
2728
2729 * linux-nat.c (linux_nat_debug_printf): New function.
2730 (linux_nat_debug_printf_1): New macro. Use throughout the file.
2731
2732 2020-08-18 Aaron Merey <amerey@redhat.com>
2733
2734 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
2735 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
2736 (CLIBS): Add DEBUGINFOD_LIBS.
2737
2738 2020-08-17 Sergei Trofimovich <siarheit@google.com>
2739
2740 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
2741 'gdbarch_num_regs'.
2742
2743 2020-08-17 Tom Tromey <tromey@adacore.com>
2744
2745 * ada-varobj.c (ada_varobj_decode_var): Handle case where
2746 ada_get_decoded_value returns NULL.
2747
2748 2020-08-17 Tom Tromey <tromey@adacore.com>
2749
2750 * python/py-inferior.c (infpy_search_memory): Use
2751 gdb_py_object_from_ulongest.
2752 * python/py-infevents.c (create_inferior_call_event_object)
2753 (create_memory_changed_event_object): Use
2754 gdb_py_object_from_ulongest.
2755 * python/py-linetable.c (ltpy_entry_get_pc): Use
2756 gdb_py_object_from_ulongest.
2757
2758 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
2759
2760 * loc.c (class symbol_needs_eval_context): Fix indentation.
2761
2762 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
2763
2764 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
2765 bool.
2766
2767 2020-08-17 Tom de Vries <tdevries@suse.de>
2768
2769 PR gdb/26393
2770 * gdbtypes.c (dump_dynamic_prop): New function.
2771 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
2772
2773 2020-08-15 Tom de Vries <tdevries@suse.de>
2774
2775 PR backtrace/26390
2776 * stack.c (print_frame_args): Temporarily set the selected
2777 frame to FRAME while printing the frame's arguments.
2778
2779 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2780
2781 PR breakpoints/26385
2782 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
2783 Always clear watchpoint with PTRACE_SET_DEBUGREG.
2784
2785 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2786
2787 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
2788 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
2789 and >= to check return value instead of == -1 and != -1.
2790
2791 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
2792
2793 * utils.h (class gdb_argv) <as_array_view>: New method.
2794 * utils.c (gdb_argv_as_array_view_test): New.
2795 (_initialize_utils): Register selftest.
2796 * maint.c (maintenance_selftest): Use the new method.
2797
2798 2020-08-13 Kamil Rytarowski <n54@gmx.com>
2799
2800 * target.h (supports_dumpcore, dumpcore): New
2801 function declarations.
2802 * target.c (supports_dumpcore, dumpcore): New
2803 functions.
2804 * target-delegates.c: Rebuild.
2805 * gcore.c (gcore_command): Use target_supports_dumpcore ()
2806 and target_dumpcore ().
2807
2808 2020-08-13 Aaron Merey <amerey@redhat.com>
2809
2810 * debuginfod-support.c: Replace global variables with user_data.
2811
2812 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
2813
2814 * maint.c (maintenance_selftest): Split args and pass array_view
2815 to run_tests.
2816
2817 2020-08-12 Luis Machado <luis.machado@linaro.org>
2818
2819 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
2820 type's length.
2821 Use %s and pulongest to print the length.
2822
2823 2020-08-12 Pedro Alves <palves@redhat.com>
2824
2825 * NEWS: Move "Multi-target debugging support" item to the
2826 "Changes since GDB 9" section.
2827
2828 2020-08-12 Pedro Alves <palves@redhat.com>
2829
2830 PR gdb/26336
2831 * progspace.c (program_space::remove_objfile): Invalidate the
2832 frame cache.
2833
2834 2020-08-11 Tom de Vries <tdevries@suse.de>
2835
2836 * MAINTAINERS: Mark ms1 as deleted.
2837
2838 2020-08-10 Luis Machado <luis.machado@linaro.org>
2839
2840 PR gdb/26310
2841
2842 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
2843 act accordingly.
2844 (aarch64_analyze_prologue_test): Add more unit tests to exercise
2845 movz/str/stur/stp skipping behavior.
2846
2847 2020-08-10 Luis Machado <luis.machado@linaro.org>
2848
2849 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
2850 struct user_sve_header instead of struct sve_context.
2851
2852 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
2853
2854 * read.h (dwarf2_fetch_die_loc_sect_off,
2855 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
2856 `void *` parameter with function_view.
2857 * read.c (dwarf2_fetch_die_loc_sect_off,
2858 dwarf2_fetch_die_loc_cu_off): Likewise.
2859 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
2860 (per_cu_dwarf_call): Adjust.
2861 (get_frame_address_in_block_wrapper): Remove.
2862 (indirect_synthetic_pointer): Adjust.
2863 (get_ax_pc): Remove.
2864 (dwarf2_compile_expr_to_ax): Adjust.
2865
2866 2020-08-08 Tom de Vries <tdevries@suse.de>
2867
2868 PR build/26344
2869 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
2870 constructor.
2871 * regcache.c (get_thread_arch_aspace_regcache): Same.
2872
2873 2020-08-07 Tom Tromey <tromey@adacore.com>
2874
2875 * ravenscar-thread.c
2876 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
2877 New method.
2878 (ravenscar_thread_target::wait): Check
2879 runtime_initialized.
2880 (ravenscar_thread_target::prepare_to_store)
2881 (ravenscar_thread_target::stopped_by_sw_breakpoint)
2882 (ravenscar_thread_target::stopped_by_hw_breakpoint)
2883 (ravenscar_thread_target::stopped_by_watchpoint)
2884 (ravenscar_thread_target::stopped_data_address)
2885 (ravenscar_thread_target::core_of_thread): Use
2886 scoped_restore_current_thread and
2887 set_base_thread_from_ravenscar_task.
2888
2889 2020-08-07 Tom Tromey <tromey@adacore.com>
2890
2891 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
2892
2893 2020-08-07 Tom Tromey <tromey@adacore.com>
2894
2895 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
2896 update_inferior_ptid before update_thread_list.
2897 (temporarily_change_regcache_ptid): New class.
2898 (ravenscar_thread_target::fetch_registers)
2899 (ravenscar_thread_target::store_registers)
2900 (ravenscar_thread_target::prepare_to_store): Use base thread when
2901 forwarding operation.
2902
2903 2020-08-07 Tom Tromey <tromey@adacore.com>
2904
2905 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
2906 "is_pid" case.
2907
2908 2020-08-07 Tom Tromey <tromey@adacore.com>
2909
2910 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
2911 New methods.
2912 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
2913 first.
2914 (ravenscar_thread_target::add_thread): Rename from
2915 ravenscar_add_thread.
2916 (ravenscar_thread_target::update_thread_list): Use a lambda.
2917 (ravenscar_thread_target::xfer_partial): New method.
2918
2919 2020-08-07 Tom Tromey <tromey@adacore.com>
2920
2921 * ada-lang.h (ada_task_list_iterator_ftype): Now a
2922 gdb::function_view.
2923 (iterate_over_live_ada_tasks): Change type of argument.
2924 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
2925 of argument.
2926
2927 2020-08-07 Tom Tromey <tromey@adacore.com>
2928
2929 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
2930 Remove.
2931 (ravenscar_thread_target::extra_thread_info): Remove.
2932 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
2933 defer to target beneath for non-Ravenscar threads.
2934
2935 2020-08-07 Tom Tromey <tromey@adacore.com>
2936
2937 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
2938 get_base_thread_from_ravenscar_task>: Now methods.
2939 <m_cpu_map>: New member.
2940 (ravenscar_thread_target::get_thread_base_cpu): Rename from
2941 ravenscar_get_thread_base_cpu. Check m_cpu_map.
2942 (ravenscar_thread_target::task_is_currently_active): Update.
2943 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
2944 Now a method.
2945 (ravenscar_thread_target::add_active_thread): Put initial thread
2946 into the m_cpu_map.
2947
2948 2020-08-07 Tom Tromey <tromey@adacore.com>
2949
2950 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
2951 event_ptid.
2952
2953 2020-08-07 Tom Tromey <tromey@adacore.com>
2954
2955 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
2956 runtime_initialized.
2957
2958 2020-08-07 Tom Tromey <tromey@adacore.com>
2959
2960 * ravenscar-thread.c (ravenscar_thread_target): Don't call
2961 add_active_thread.
2962 (ravenscar_thread_target::add_active_thread): Now public.
2963 (ravenscar_inferior_created): Call add_active_thread after pushing
2964 the target.
2965
2966 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
2967
2968 * regcache.c (ptid_regcache_map): New type.
2969 (target_ptid_regcache_map): New type.
2970 (regcaches): Change type to target_ptid_regcache_map.
2971 (get_thread_arch_aspace_regcache): Update to regcaches' new
2972 type.
2973 (regcache_thread_ptid_changed): Likewise.
2974 (registers_changed_ptid): Likewise.
2975 (regcaches_size): Likewise.
2976 (regcaches_test): Update.
2977 (regcache_thread_ptid_changed): Update.
2978 * regcache.h (regcache_up): New type.
2979 * gdbsupport/ptid.h (hash_ptid): New struct.
2980
2981 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
2982
2983 * observable.h (thread_ptid_changed): Add parameter
2984 `process_stratum_target *`.
2985 * infrun.c (infrun_thread_ptid_changed): Add parameter
2986 `process_stratum_target *` and use it.
2987 (selftests): New namespace.
2988 (infrun_thread_ptid_changed): New function.
2989 (_initialize_infrun): Register selftest.
2990 * regcache.c (regcache_thread_ptid_changed): Add parameter
2991 `process_stratum_target *` and use it.
2992 (regcache_thread_ptid_changed): New function.
2993 (_initialize_regcache): Register selftest.
2994 * thread.c (thread_change_ptid): Pass target to
2995 thread_ptid_changed observable.
2996
2997 2020-08-06 Caroline Tice <cmtice@google.com>
2998
2999 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
3000 (struct dwp_sections): Update field comments. Add loclists and
3001 rnglists fields.
3002 (struct virtual_v2_dwo_sections): Rename struct to
3003 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
3004 size & offset fields for loclists and rnglists.
3005 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
3006 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
3007 skipping dummy type units.
3008 (create_dwp_hash_table): Update the large comment above the function to
3009 discuss Version 5 DWP files as well, with references. Update all the
3010 version checks in the function to check for version 5 as well. Add new
3011 section at the end to create dwp hash table for version 5.
3012 (create_dwp_v2_section): Rename function to
3013 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
3014 Add V5 to error message text.
3015 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
3016 into calls to create_dwp_v2_or_v5_section.
3017 (create_dwo_unit_in_dwp_v5): New function.
3018 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
3019 check for version2; add else clause to handle version 5.
3020 (open_and_init_dwo_file): Add code to check dwarf version & only call
3021 create_debug_types_hash_table (with sections.types) if version is not 5;
3022 else call create_debug_type_hash_table, with sections.info.
3023 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
3024 version 5.
3025 (dwarf2_locate_v5_dwp_sections): New function.
3026 (open_and_init_dwp_file): Add else-if clause for version 5 to call
3027 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
3028
3029 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
3030
3031 * regcache.h (class regcache): Remove friend
3032 registers_changed_ptid.
3033 <regcache_thread_ptid_changed>: Remove.
3034 <regcaches>: Remove.
3035 * regcache.c (regcache::regcaches): Rename to...
3036 (regcaches): ... this. Make static.
3037 (get_thread_arch_aspace_regcache): Update.
3038 (regcache::regcache_thread_ptid_changed): Rename to...
3039 (regcache_thread_ptid_changed): ... this. Update.
3040 (class regcache_access): Remove.
3041 (regcaches_test): Update.
3042 (_initialize_regcache): Update.
3043 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
3044 <forward_list>.
3045
3046 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
3047
3048 * regcache.h (class regcache) <current_regcache>: Rename to...
3049 <regcaches>: ... this. Move doc here.
3050 * regcache.c (regcache::current_regcache) Rename to...
3051 (regcache::regcaches): ... this. Move doc to header.
3052 (get_thread_arch_aspace_regcache): Update.
3053 (regcache::regcache_thread_ptid_changed): Update.
3054 (registers_changed_ptid): Update.
3055 (class regcache_access) <current_regcache_size>: Rename to...
3056 <regcaches_size>: ... this.
3057 (current_regcache_test): Rename to...
3058 (regcaches_test): ... this.
3059 (_initialize_regcache): Update.
3060
3061 2020-08-06 Victor Collod <vcollod@nvidia.com>
3062
3063 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
3064
3065 2020-08-05 Kevin Buettner <kevinb@redhat.com>
3066
3067 * corelow.c (core_target::build_file_mappings): Don't output
3068 null pathname in warning.
3069
3070 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
3071
3072 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
3073 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
3074 gdb.dwarf2/dw2-single-line-discriminators.exp,
3075 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
3076
3077 2020-08-05 Tom Tromey <tromey@adacore.com>
3078
3079 PR rust/26197:
3080 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
3081 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
3082 Fix off-by-one and type size errors in ordinary case.
3083
3084 2020-08-05 Tom de Vries <tdevries@suse.de>
3085
3086 * gdbtypes.c (type_not_allocated, type_not_associated): Use
3087 "prop->const_val () == 0" instead of "prop->const_val () != 0".
3088
3089 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
3090
3091 * frame.h (frame_id_p): Return bool.
3092 (frame_id_artificial_p): Return bool.
3093 (frame_id_eq): Return bool.
3094 (has_stack_frames): Return bool.
3095 (get_selected_frame): Fix typo in comment.
3096 (get_frame_pc_if_available): Return bool.
3097 (get_frame_address_in_block_if_available): Return bool.
3098 (get_frame_func_if_available): Return bool.
3099 (read_frame_register_unsigned): Return bool.
3100 (get_frame_register_bytes): Return bool.
3101 (safe_frame_unwind_memory): Return bool.
3102 (deprecated_frame_register_read): Return bool.
3103 (frame_unwinder_is): Return bool.
3104 * frame.c (struct frame_info) <prev_arch::p>: Change type to
3105 bool.
3106 <this_id::p>: Likewise.
3107 <prev_p>: Likewise.
3108 (frame_stash_add): Return bool.
3109 (get_frame_id): Use bool.
3110 (frame_id_build_special) Use bool.
3111 (frame_id_build_unavailable_stack): Use bool.
3112 (frame_id_build): Use bool.
3113 (frame_id_p): Return bool, use true/false instead of 1/0.
3114 (frame_id_artificial_p): Likewise.
3115 (frame_id_eq): Likewise.
3116 (frame_id_inner): Likewise.
3117 (get_frame_func_if_available): Likewise.
3118 (read_frame_register_unsigned): Likewise.
3119 (deprecated_frame_register_read): Likewise.
3120 (get_frame_register_bytes): Likewise.
3121 (has_stack_frames): Likewise.
3122 (inside_main_func): Likewise.
3123 (inside_entry_func): Likewise.
3124 (get_frame_pc_if_available): Likewise.
3125 (get_frame_address_in_block_if_available): Likewise.
3126 (frame_unwinder_is): Likewise.
3127 (safe_frame_unwind_memory): Likewise.
3128 (frame_unwind_arch): Likewise.
3129
3130 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
3131
3132 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
3133 type to cached_copy_status.
3134 (fprintf_frame): Adjust.
3135 (get_frame_func_if_available): Adjust.
3136 (frame_cleanup_after_sniffer): Adjust.
3137
3138 2020-08-04 Mark Wielaard <mark@klomp.org>
3139
3140 * MAINTAINERS (Write After Approval): Update email address.
3141
3142 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3143
3144 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
3145 dynamic_prop::const_val.
3146
3147 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3148
3149 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
3150 dynamic_prop::kind.
3151
3152 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3153
3154 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
3155
3156 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
3157
3158 * configure.tgt: Set gdb_sim for bpf-*-* targets.
3159
3160 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
3161 Jose E. Marchesi <jose.marchesi@oracle.com>
3162
3163 * configure.tgt: Add entry for bpf-*-*.
3164 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
3165 (ALLDEPFILES): Add bpf-tdep.c.
3166 * bpf-tdep.c: New file.
3167 * MAINTAINERS: Add bpf target and maintainer.
3168 * NEWS: Mention the support for the new target.
3169
3170 2020-08-04 Tom de Vries <tdevries@suse.de>
3171
3172 PR symtab/23270
3173 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
3174 Error.
3175
3176 2020-08-03 John Baldwin <jhb@FreeBSD.org>
3177
3178 * syscalls/freebsd.xml: Regenerate.
3179
3180 2020-08-03 John Baldwin <jhb@FreeBSD.org>
3181
3182 * syscalls/update-freebsd.sh: Fix usage and year range.
3183
3184 2020-08-03 Tom de Vries <tdevries@suse.de>
3185
3186 PR symtab/26333
3187 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
3188 DW_LNE_lo_user/DW_LNE_hi_user range.
3189
3190 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
3191
3192 PR ada/26318
3193 * ada-lang.c (ada_modulus): Return 0 if property is not of const
3194 kind.
3195
3196 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3197
3198 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
3199
3200 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3201
3202 * breakpoint.c (set_breakpoint_condition): Update the condition
3203 expressions after checking that the input condition string parses
3204 successfully and does not contain junk at the end.
3205
3206 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3207
3208 * breakpoint.c (set_breakpoint_condition): Update the
3209 condition string after parsing the new condition successfully.
3210
3211 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3212
3213 * proc-api.c (_STRUCTURED_PROC): Don't define.
3214 * proc-events.c: Likewise.
3215 * proc-flags.c: Likewise.
3216 * proc-why.c: Likewise.
3217 * procfs.c: Likewise.
3218
3219 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
3220 * configure, config.in: Regenerate.
3221
3222 2020-07-30 Tom de Vries <tdevries@suse.de>
3223
3224 PR build/26320
3225 * ui-style.h (struct ui_file_style::color): Wrap m_value and
3226 m_red/m_green/m_blue in a union.
3227
3228 2020-07-29 Tom de Vries <tdevries@suse.de>
3229
3230 PR tdep/26280
3231 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
3232
3233 2020-07-28 Tom Tromey <tromey@adacore.com>
3234
3235 PR symtab/26270:
3236 * symtab.h (find_pc_partial_function_sym): Declare.
3237 * cli/cli-cmds.c (disassemble_command): Use
3238 find_pc_partial_function_sym. Check asm_demangle.
3239 * blockframe.c (cache_pc_function_sym): New global.
3240 (cache_pc_function_name): Remove.
3241 (clear_pc_function_cache): Update.
3242 (find_pc_partial_function_sym): New function, from
3243 find_pc_partial_function.
3244 (find_pc_partial_function): Rewrite using
3245 find_pc_partial_function_sym.
3246
3247 2020-07-28 Tom Tromey <tromey@adacore.com>
3248
3249 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
3250 help. Add usage.
3251
3252 2020-07-28 Tom Tromey <tromey@adacore.com>
3253
3254 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
3255 <DW_OP_GNU_variable_value>: Cast to address type.
3256
3257 2020-07-28 Kamil Rytarowski <n54@gmx.com>
3258
3259 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
3260 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
3261 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
3262 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
3263 (nbsd_get_siginfo_type): New.
3264 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
3265 (_initialize_nbsd_tdep): New.
3266
3267 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
3268
3269 PR binutils/26301
3270 * configure: Regenerated.
3271
3272 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
3273
3274 PR binutils/26301
3275 * configure: Regenerated.
3276
3277 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
3278
3279 * python/py-frame.c: Remove 'user-regs.h' include.
3280 (frapy_read_register): Rewrite to make use of
3281 gdbpy_parse_register_id.
3282 * python/py-registers.c (gdbpy_parse_register_id): New function,
3283 moved here from python/py-unwind.c. Updated the return type, and
3284 also accepts register descriptor objects.
3285 * python/py-unwind.c: Remove 'user-regs.h' include.
3286 (pyuw_parse_register_id): Moved to python/py-registers.c.
3287 (unwind_infopy_add_saved_register): Update to use
3288 gdbpy_parse_register_id.
3289 (pending_framepy_read_register): Likewise.
3290 * python/python-internal.h (gdbpy_parse_register_id): Declare.
3291
3292 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
3293
3294 * python/py-registers.c: Add 'user-regs.h' include.
3295 (register_descriptor_iter_find): New function.
3296 (register_descriptor_iterator_object_methods): New static global
3297 methods array.
3298 (register_descriptor_iterator_object_type): Add pointer to methods
3299 array.
3300
3301 2020-07-27 John Baldwin <jhb@FreeBSD.org>
3302
3303 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
3304 for all architectures on FreeBSD 11.3 and later.
3305
3306 2020-07-27 Tom Tromey <tromey@adacore.com>
3307
3308 * gcore.h (load_corefile): Don't declare.
3309
3310 2020-07-27 Tom de Vries <tdevries@suse.de>
3311
3312 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
3313 * config.in: Regenerate.
3314 * configure: Regenerate.
3315
3316 2020-07-26 Eli Zaretskii <eliz@gnu.org>
3317
3318 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
3319 ws2tcpip.h. When checking whether socklen_t type is defined, use
3320 ws2tcpip.h if it is available and sys/socket.h isn't.
3321 * configure: Regenerate.
3322 * config.in: Regenerate.
3323
3324 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
3325
3326 PR fortran/23051
3327 PR fortran/26139
3328 * valops.c (value_ind): Pass address to
3329 readjust_indirect_value_type.
3330 * value.c (readjust_indirect_value_type): Make parameter
3331 non-const, and add extra address parameter. Resolve original type
3332 before using it.
3333 * value.h (readjust_indirect_value_type): Update function
3334 signature and comment.
3335
3336 2020-07-25 Tom de Vries <tdevries@suse.de>
3337
3338 PR symtab/26243
3339 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
3340 entries.
3341
3342 2020-07-24 Aaron Merey <amerey@redhat.com>
3343
3344 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
3345 * configure: Rebuild.
3346
3347 2020-07-23 Kevin Buettner <kevinb@redhat.com>
3348
3349 PR corefiles/26294
3350 * corelow.c (_initialize_corelow): Add period to help text
3351 for "maintenance print core-file-backed-mappings".
3352
3353 2020-07-23 Pedro Alves <pedro@palves.net>
3354
3355 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
3356 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
3357 meanwhile.
3358 * frame.c (frame_cache_generation, get_frame_cache_generation):
3359 New.
3360 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
3361 (get_prev_frame_if_no_cycle): On exception, don't touch
3362 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
3363 * frame.h (get_frame_cache_generation): Declare.
3364
3365 2020-07-23 Tom de Vries <tdevries@suse.de>
3366
3367 PR tui/26282
3368 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
3369 New default constructor.
3370
3371 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
3372
3373 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
3374 exclude non-statement entries.
3375
3376 2020-07-22 Kevin Buettner <kevinb@redhat.com>
3377
3378 * NEWS (New commands): Mention new command
3379 "maintenance print core-file-backed-mappings".
3380
3381 2020-07-22 Kevin Buettner <kevinb@redhat.com>
3382
3383 * corelow.c (gdbcmd.h): Include.
3384 (core_target::info_proc_mappings): New method.
3385 (get_current_core_target): New function.
3386 (maintenance_print_core_file_backed_mappings): New function.
3387 (_initialize_corelow): Add core-file-backed-mappings to
3388 "maint print" commands.
3389
3390 2020-07-22 Kevin Buettner <kevinb@redhat.com>
3391
3392 * linux-tdep.c (dump_note_entry_p): New function.
3393 (linux_dump_mapping_p_ftype): New typedef.
3394 (linux_find_memory_regions_full): Add new parameter,
3395 should_dump_mapping_p.
3396 (linux_find_memory_regions): Adjust call to
3397 linux_find_memory_regions_full.
3398 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
3399 call to linux_find_memory_regions_full.
3400
3401 2020-07-22 Kevin Buettner <kevinb@redhat.com>
3402
3403 * corelow.c (solist.h, unordered_map): Include.
3404 (class core_target): Add field m_core_file_mappings and
3405 method build_file_mappings.
3406 (core_target::core_target): Call build_file_mappings.
3407 (core_target::~core_target): Free memory associated with
3408 m_core_file_mappings.
3409 (core_target::build_file_mappings): New method.
3410 (core_target::xfer_partial): Use m_core_file_mappings
3411 for memory transfers.
3412 * linux-tdep.c (linux_read_core_file_mappings): New
3413 function.
3414 (linux_core_info_proc_mappings): Rewrite to use
3415 linux_read_core_file_mappings.
3416 (linux_init_abi): Register linux_read_core_file_mappings.
3417
3418 2020-07-22 Kevin Buettner <kevinb@redhat.com>
3419
3420 * arch-utils.c (default_read_core_file_mappings): New function.
3421 * arch-utils.c (default_read_core_file_mappings): Declare.
3422 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
3423 * gdbarch.h, gdbarch.c: Regenerate.
3424
3425 2020-07-22 Kevin Buettner <kevinb@redhat.com>
3426
3427 PR corefiles/25631
3428 * corelow.c (core_target:xfer_partial): Revise
3429 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
3430 case after first checking the stratum beneath the core
3431 target.
3432 (has_all_memory): Return true.
3433 * target.c (raw_memory_xfer_partial): Revise comment
3434 regarding use of has_all_memory.
3435
3436 2020-07-22 Kevin Buettner <kevinb@redhat.com>
3437
3438 * exec.h (section_table_xfer_memory): Revise declaration,
3439 replacing section name parameter with an optional callback
3440 predicate.
3441 * exec.c (section_table_xfer_memory): Likewise.
3442 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
3443 of section_table_xfer_memory.
3444
3445 2020-07-22 Tom Tromey <tromey@adacore.com>
3446
3447 * mi/mi-cmd-stack.c (list_args_or_locals): Use
3448 lookup_symbol_search_name.
3449
3450 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
3451
3452 * python/py-registers.c (gdbpy_register_object_data_init): Remove
3453 redundant local variable.
3454 (gdbpy_get_register_descriptor): Extract descriptor vector as a
3455 reference, not pointer, update code accordingly.
3456
3457 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3458 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3459
3460 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
3461 * jit.c (jit_breakpoint_re_set_internal): Use the
3462 `skip_jit_symbol_lookup` field.
3463
3464 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3465 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3466
3467 * jit.c (jit_read_descriptor): Define the descriptor address once,
3468 use twice.
3469 (jit_breakpoint_deleted): Move the declaration of the loop variable
3470 `iter` into the loop header.
3471 (jit_breakpoint_re_set_internal): Move the declaration of the local
3472 variable `objf_data` to the first point of definition.
3473 (jit_event_handler): Move the declaration of local variables
3474 `code_entry`, `entry_addr`, and `objf` to their first point of use.
3475 Rename `objf` to `jited`.
3476
3477 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3478
3479 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
3480 Remove.
3481 * jit.c (get_jiter_objfile_data): Update.
3482
3483 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3484 Simon Marchi <simon.marchi@polymtl.ca>
3485
3486 * jit.c (struct jit_program_space_data): Remove.
3487 (jit_program_space_key): Remove.
3488 (jiter_objfile_data::~jiter_objfile_data): Remove program space
3489 stuff.
3490 (get_jit_program_space_data): Remove.
3491 (jit_breakpoint_deleted): Iterate on all of the program space's
3492 objfiles.
3493 (jit_inferior_init): Likewise.
3494 (jit_breakpoint_re_set_internal): Likewise. Also change return
3495 type to void.
3496 (jit_breakpoint_re_set): Pass current_program_space to
3497 jit_breakpoint_re_set_internal.
3498
3499 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3500
3501 * jit.h (struct jiter_objfile_data) <cached_code_address,
3502 jit_breakpoint>: Move to here from ...
3503 * jit.c (jit_program_space_data): ... here.
3504 (jiter_objfile_data::~jiter_objfile_data): Update.
3505 (jit_breakpoint_deleted): Update.
3506 (jit_breakpoint_re_set_internal): Update.
3507
3508 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3509
3510 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
3511 checks.
3512 (jit_read_descriptor): Remove NULL check.
3513 (jit_event_handler): Add an assertion.
3514
3515 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3516
3517 * jit.h (struct jit_objfile_data): Split into...
3518 (struct jiter_objfile_data): ... this ...
3519 (struct jited_objfile_data): ... and this.
3520 * objfiles.h (struct objfile) <jit_data>: Remove.
3521 <jiter_data, jited_data>: New fields.
3522 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
3523 (jiter_objfile_data::~jiter_objfile_data): ... this.
3524 (get_jit_objfile_data): Rename to ...
3525 (get_jiter_objfile_data): ... this.
3526 (add_objfile_entry): Update.
3527 (jit_read_descriptor): Use get_jiter_objfile_data.
3528 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
3529 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
3530 (jit_inferior_exit_hook): Use objfile's jited_data field.
3531
3532 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3533
3534 * jit.h: Forward-declare `struct minimal_symbol`.
3535 (struct jit_objfile_data): Migrate to here from jit.c; also add a
3536 constructor, destructor, and an objfile* field.
3537 * jit.c (jit_objfile_data): Remove.
3538 (struct jit_objfile_data): Migrate from here to jit.h.
3539 (jit_objfile_data::~jit_objfile_data): New destructor
3540 implementation with code moved from free_objfile_data.
3541 (free_objfile_data): Delete.
3542 (get_jit_objfile_data): Update to use the jit_data field of objfile.
3543 (jit_find_objf_with_entry_addr): Ditto.
3544 (jit_inferior_exit_hook): Ditto.
3545 (_initialize_jit): Remove the call to
3546 register_objfile_data_with_cleanup.
3547 * objfiles.h (struct objfile) <jit_data>: New field.
3548
3549 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3550
3551 * jit.h: Forward-declare `struct objfile`.
3552 (jit_event_handler): Add a second parameter, the JITer objfile.
3553 * jit.c (jit_read_descriptor): Change the signature to take the
3554 JITer objfile as an argument instead of the jit_program_space_data.
3555 (jit_inferior_init): Update the call to jit_read_descriptor.
3556 (jit_event_handler): Use the new JITer objfile argument when calling
3557 jit_read_descriptor.
3558 * breakpoint.c (handle_jit_event): Update the call to
3559 jit_event_handler to pass the JITer objfile.
3560
3561 2020-07-21 John Baldwin <jhb@FreeBSD.org>
3562
3563 * gdbarch.c: Regenerate.
3564 * gdbarch.h: Regenerate.
3565 * gdbarch.sh (handle_segmentation_fault): Remove method.
3566 * infrun.c (handle_segmentation_fault): Remove.
3567 (print_signal_received_reason): Remove call to
3568 handle_segmentation_fault.
3569
3570 2020-07-21 John Baldwin <jhb@FreeBSD.org>
3571
3572 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
3573 Rename to sparc64_linux_report_signal_info and add siggnal
3574 argument.
3575 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
3576 instead of sparc64_linux_handle_segmentation_fault.
3577
3578 2020-07-21 John Baldwin <jhb@FreeBSD.org>
3579
3580 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
3581 i386_linux_report_signal_info instead of
3582 i386_linux_handle_segmentation_fault.
3583 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
3584 to i386_linux_report_signal_info and add siggnal argument.
3585 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
3586 of i386_linux_handle_segmentation_fault.
3587 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
3588 to i386_linux_report_signal_info and add siggnal argument.
3589
3590 2020-07-21 John Baldwin <jhb@FreeBSD.org>
3591
3592 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
3593 hook if present.
3594
3595 2020-07-21 John Baldwin <jhb@FreeBSD.org>
3596
3597 * gdbarch.c: Regenerate.
3598 * gdbarch.h: Regenerate.
3599 * gdbarch.sh (report_signal_info): New method.
3600 * infrun.c (print_signal_received_reason): Invoke gdbarch
3601 report_signal_info hook if present.
3602
3603 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
3604
3605 * python/py-registers.c : Add 'unordered_map' include.
3606 (gdbpy_new_reggroup): Renamed to...
3607 (gdbpy_get_reggroup): ...this. Update to only create register
3608 group descriptors when needed.
3609 (gdbpy_reggroup_iter_next): Update.
3610
3611 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
3612
3613 * python/py-registers.c (gdbpy_register_object_data): New static
3614 global.
3615 (gdbpy_register_object_data_init): New function.
3616 (gdbpy_new_register_descriptor): Renamed to...
3617 (gdbpy_get_register_descriptor): ...this, and update to reuse
3618 existing register descriptors where possible.
3619 (gdbpy_register_descriptor_iter_next): Update.
3620 (gdbpy_initialize_registers): Register new gdbarch data.
3621
3622 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
3623
3624 * linux-nat.c (stopped_pids): Make static.
3625
3626 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
3627
3628 PR ada/26235
3629 * gdbtypes.c (ada_discrete_type_low_bound,
3630 ada_discrete_type_high_bound): Handle undefined bounds.
3631
3632 2020-07-21 Kamil Rytarowski <n54@gmx.com>
3633
3634 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
3635 declaration.
3636 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
3637 function.
3638
3639 2020-07-20 John Baldwin <jhb@FreeBSD.org>
3640
3641 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
3642 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
3643 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
3644 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
3645 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
3646 method.
3647
3648 2020-07-20 Ludovic Courtès <ludo@gnu.org>
3649
3650 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
3651 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
3652 which are deprecated in Guile 3.0.
3653 * configure.ac (try_guile_versions): Add "guile-3.0".
3654 * configure (try_guile_versions): Regenerate.
3655 * NEWS: Update entry.
3656
3657 2020-07-20 Ludovic Courtès <ludo@gnu.org>
3658 Doug Evans <dje@google.com>
3659
3660 PR gdb/21104
3661 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
3662 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
3663 USING_GUILE_BEFORE_2_2.
3664 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
3665 Change type to 'scm_t_port_type *'.
3666 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
3667 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
3668 parameter and honor it. Update callers.
3669 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
3670 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
3671 functions.
3672 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
3673 USING_GUILE_BEFORE_2_2.
3674 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
3675 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
3676 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
3677 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
3678 and 'SCM_PORT_TYPE'.
3679 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
3680 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
3681 (gdbscm_memory_port_read, gdbscm_memory_port_write)
3682 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
3683 [!USING_GUILE_BEFORE_2_2]: New functions.
3684 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
3685 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
3686 'gdbscm_memory_port_read'.
3687 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
3688 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
3689 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
3690 function.
3691 (ioscm_init_memory_port): Remove.
3692 (ioscm_init_memory_port_stream): New function
3693 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
3694 function.
3695 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
3696 Return scm_from_uint (0).
3697 (gdbscm_set_memory_port_read_buffer_size_x)
3698 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
3699 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
3700 Return scm_from_uint (0).
3701 (gdbscm_set_memory_port_write_buffer_size_x)
3702 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
3703 * configure.ac (try_guile_versions): Add "guile-2.2".
3704 * configure: Regenerate.
3705 * NEWS: Add entry.
3706
3707 2020-07-18 Tom Tromey <tom@tromey.com>
3708
3709 * linux-nat.c (linux_multi_process): Remove.
3710 (linux_nat_target::supports_multi_process): Return true.
3711
3712 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
3713
3714 * arch/riscv.c (riscv_tdesc_cache): Change map type.
3715 (riscv_lookup_target_description): Return pointer out of
3716 unique_ptr.
3717 * target-descriptions.c (allocate_target_description): Add
3718 comment.
3719 (target_desc_deleter::operator()): Likewise.
3720 * target-descriptions.h (struct target_desc_deleter): Moved to
3721 gdbsupport/tdesc.h.
3722 (target_desc_up): Likewise.
3723
3724 2020-07-17 Tom Tromey <tromey@adacore.com>
3725
3726 * linux-nat.c (linux_nat_target::supports_non_stop)
3727 (linux_nat_target::always_non_stop_p): Use "true".
3728 (linux_nat_target::supports_disable_randomization): Use "true" and
3729 "false".
3730
3731 2020-07-16 Caroline Tice <cmtice@google.com>
3732
3733 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
3734 (RNGLIST_HEADER_SIZE64): New constant definition.
3735 (struct dwop_section_names): Add rnglists_dwo.
3736 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
3737 (struct loclist_header): Rename to 'loclists_rnglists_header'.
3738 (struct dwo_sections): Add rnglists field.
3739 (read_attribut_reprocess): Add tag parameter.
3740 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
3741 (cu_debug_rnglists_section): New function (decl & definition).
3742 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
3743 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
3744 die whose range is being checked; get rnglist section from
3745 cu_debug_rnglists_section, to get from either objfile or dwo file as
3746 appropriate. Add cases for DW_RLE_base_addressx,
3747 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
3748 the base address to DW_RLE_offset_pairs (not to all ranges), moving
3749 test inside if-condition and updating complaint message.
3750 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
3751 dwarf2_rnglists_process.
3752 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
3753 dwarf2_ranges_process.
3754 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
3755 need_ranges_base and update comment appropriately. Also pass die tag
3756 to dwarf2_ranges_read.
3757 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
3758 need_ranges_base and update comment appropriately. Also pass die tag
3759 to dwarf2_ranges_process.
3760 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
3761 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
3762 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
3763 need_ranges_base and update comment appropriately. Also pass die tag
3764 to read_attribute_reprocess and dwarf2_ranges_read.
3765 (read_loclist_header): Rename function to read_loclists_rnglists_header,
3766 and update function comment appropriately.
3767 (read_loclist_index): Call read_loclists_rnglists_header instead of
3768 read_loclist_header.
3769 (read_rnglist_index): New function.
3770 (read_attribute_reprocess): Add tag parameter. Add code for
3771 DW_FORM_rnglistx, passing tag to read_rnglist_index.
3772 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
3773
3774 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
3775
3776 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
3777 being resolved.
3778
3779 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
3780
3781 * arch-utils.c (show_architecture): Update formatting of messages.
3782
3783 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3784
3785 * gdbtypes.h (struct type) <bounds>: Handle array and string
3786 types.
3787 * ada-lang.c (assign_aggregate): Use type::bounds on
3788 array/string type.
3789 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
3790 * c-varobj.c (c_number_of_children): Likewise.
3791 (c_describe_child): Likewise.
3792 * eval.c (evaluate_subexp_for_sizeof): Likewise.
3793 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
3794 (f_type_print_base): Likewise.
3795 * f-valprint.c (f77_array_offset_tbl): Likewise.
3796 (f77_get_upperbound): Likewise.
3797 (f77_print_array_1): Likewise.
3798 * guile/scm-type.c (gdbscm_type_range): Likewise.
3799 * m2-typeprint.c (m2_array): Likewise.
3800 (m2_is_long_set_of_type): Likewise.
3801 * m2-valprint.c (get_long_set_bounds): Likewise.
3802 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
3803 * python/py-type.c (typy_range): Likewise.
3804 * rust-lang.c (rust_internal_print_type): Likewise.
3805 * type-stack.c (type_stack::follow_types): Likewise.
3806 * valarith.c (value_subscripted_rvalue): Likewise.
3807 * valops.c (value_cast): Likewise.
3808
3809 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3810
3811 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
3812 callers to use the equivalent accessor methods.
3813
3814 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3815
3816 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
3817 (struct type) <bit_stride>: New method.
3818 (TYPE_BIT_STRIDE): Remove.
3819 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
3820
3821 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3822
3823 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
3824 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
3825 callers to use the equivalent accessor methods instead.
3826
3827 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3828
3829 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
3830 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
3831 callers to use the equivalent accessor methods instead.
3832
3833 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3834
3835 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
3836 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
3837 to use dynamic_prop::kind.
3838
3839 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3840
3841 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
3842 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
3843 to get the bound property's kind and check against
3844 PROP_UNDEFINED.
3845
3846 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3847
3848 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
3849 all callers to use type::range_bounds followed by
3850 dynamic_prop::{low,high}.
3851
3852 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
3853
3854 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
3855 const_val, set_const_val, baton, set_locexpr, set_loclist,
3856 set_addr_offset, variant_parts, set_variant_parts,
3857 original_type, set_original_type>: New methods.
3858 <kind>: Rename to...
3859 <m_kind>: ... this. Update all users to use the new methods
3860 instead.
3861 <data>: Rename to...
3862 <m_data>: ... this. Update all users to use the new methods
3863 instead.
3864
3865 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3866
3867 * gdbtypes.c (get_discrete_bounds): Return failure if
3868 the range type's bounds are not both defined and constant
3869 values.
3870 (get_array_bounds): Update comment. Remove undefined bound check.
3871
3872 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
3873
3874 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
3875 the type::bounds method directly.
3876
3877 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3878
3879 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
3880 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
3881 are used to set the range type's bounds to use set_bounds.
3882
3883 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3884
3885 * exec.c (_initialize_exec): Update exec-file-mismatch help.
3886
3887 2020-07-10 Pedro Alves <pedro@palves.net>
3888
3889 * gdbthread.h (inferior_ref): Define.
3890 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
3891 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
3892 * thread.c
3893 (scoped_restore_current_thread::restore):
3894 Adjust to gdb::ref_ptr.
3895 (scoped_restore_current_thread::~scoped_restore_current_thread):
3896 Remove manual decref handling.
3897 (scoped_restore_current_thread::scoped_restore_current_thread):
3898 Adjust to use
3899 inferior_ref::new_reference/thread_info_ref::new_reference.
3900 Incref the thread before calling get_frame_id instead of after.
3901 Let TARGET_CLOSE_ERROR propagate.
3902
3903 2020-07-10 Pedro Alves <pedro@palves.net>
3904
3905 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
3906 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
3907 NOT_AVAILABLE_ERROR.
3908 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
3909 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
3910
3911 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3912 Pedro Alves <pedro@palves.net>
3913
3914 PR gdb/26199
3915 * infrun.c (threads_are_resumed_pending_p): Delete.
3916 (do_target_wait): Remove threads_are_executing and
3917 threads_are_resumed_pending_p checks from the inferior_matches
3918 lambda. Update comments.
3919
3920 2020-07-10 Pedro Alves <pedro@palves.net>
3921
3922 PR gdb/26199
3923 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
3924 executing threads.
3925
3926 2020-07-10 Pedro Alves <pedro@palves.net>
3927
3928 PR gdb/26199
3929 * infrun.c (handle_no_resumed): Handle multiple targets.
3930
3931 2020-07-10 Pedro Alves <pedro@palves.net>
3932
3933 PR gdb/26199
3934 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
3935 target_is_async_p.
3936
3937 2020-07-10 Pedro Alves <pedro@palves.net>
3938
3939 PR gdb/26199
3940 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
3941 threads, not all threads.
3942
3943 2020-07-10 Pedro Alves <pedro@palves.net>
3944
3945 PR gdb/26199
3946 * remote.c (remote_target::open_1): Pass remote target pointer as
3947 data to create_async_event_handler.
3948 (remote_async_inferior_event_handler): Mark async event handler
3949 before returning if the remote target still has either pending
3950 events or unacknowledged notifications.
3951
3952 2020-07-10 John Baldwin <jhb@FreeBSD.org>
3953
3954 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
3955 declaration.
3956 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
3957 function.
3958
3959 2020-07-09 John Baldwin <jhb@FreeBSD.org>
3960
3961 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
3962 inferior_ptid.
3963
3964 2020-07-09 John Baldwin <jhb@FreeBSD.org>
3965
3966 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
3967 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
3968 AT_FREEBSD_PS_STRINGS.
3969
3970 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
3971
3972 * auto-load.c (auto_load_objfile_script_1): Convert drive part
3973 of debugfile path on Windows.
3974
3975 2020-07-08 John Baldwin <jhb@FreeBSD.org>
3976
3977 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
3978 argument to 'data'.
3979
3980 2020-07-08 Tom Tromey <tromey@adacore.com>
3981
3982 * ada-lang.c (ada_exception_message_1): Use read_memory.
3983
3984 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3985
3986 PR python/22748
3987 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
3988 special handling for inline frames.
3989 * findvar.c (value_of_register_lazy): Skip inline frames when
3990 creating lazy register values.
3991 * frame.c (frame_id_computed_p): Delete definition.
3992 * frame.h (frame_id_computed_p): Delete declaration.
3993
3994 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3995
3996 * NEWS: Mention additions to Python API.
3997 * python/py-arch.c (archpy_register_groups): New function.
3998 (arch_object_methods): Add 'register_groups' method.
3999 * python/py-registers.c (reggroup_iterator_object): New struct.
4000 (reggroup_object): New struct.
4001 (gdbpy_new_reggroup): New function.
4002 (gdbpy_reggroup_to_string): New function.
4003 (gdbpy_reggroup_name): New function.
4004 (gdbpy_reggroup_iter): New function.
4005 (gdbpy_reggroup_iter_next): New function.
4006 (gdbpy_new_reggroup_iterator): New function
4007 (gdbpy_initialize_registers): Register new types.
4008 (reggroup_iterator_object_type): Define new Python type.
4009 (gdbpy_reggroup_getset): New static global.
4010 (reggroup_object_type): Define new Python type.
4011 * python/python-internal.h
4012
4013 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4014
4015 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
4016 * python/py-arch.c (archpy_registers): New function.
4017 (arch_object_methods): Add 'registers' method.
4018 * python/py-registers.c: New file.
4019 * python/python-internal.h
4020 (gdbpy_new_register_descriptor_iterator): Declare.
4021 (gdbpy_initialize_registers): Declare.
4022 * python/python.c (do_start_initialization): Call
4023 gdbpy_initialize_registers.
4024 * NEWS: Mention additions to the Python API.
4025
4026 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4027
4028 * NEWS: Mention new Python API method.
4029 * python/py-unwind.c (pending_framepy_architecture): New function.
4030 (pending_frame_object_methods): Add architecture method.
4031
4032 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4033
4034 * gdbarch.c: Regenerate.
4035 * gdbarch.h: Regenerate.
4036 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
4037 (gdbarch_data): Use internal_error for the case where
4038 deprecated_set_gdbarch_data was originally needed.
4039 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
4040 and use passed in obstack.
4041 (libunwind_frame_set_descr): Should no longer get back NULL from
4042 gdbarch_data.
4043 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
4044 type.
4045 * user-regs.c (user_regs_init): Update parameters, and use passed
4046 in obstack.
4047 (user_reg_add): Should no longer get back NULL from gdbarch_data.
4048 (_initialize_user_regs): Register as a pre-init gdbarch data type.
4049
4050 2020-07-06 Tom de Vries <tdevries@suse.de>
4051
4052 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
4053 End-Of-Sequence in lte_is_less_than.
4054 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
4055 "gdb: Don't reorder line table entries too much when sorting".
4056
4057 2020-07-06 Tom de Vries <tdevries@suse.de>
4058
4059 PR tui/26205
4060 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
4061
4062 2020-07-05 Tom de Vries <tdevries@suse.de>
4063
4064 PR build/26187
4065 * inferior.h (struct infcall_suspend_state_deleter): If available, use
4066 std::uncaught_exceptions instead of deprecated
4067 std::uncaught_exception.
4068
4069 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4070
4071 * macroexp.h (macro_stringify): Return
4072 gdb::unique_xmalloc_ptr<char>.
4073 * macroexp.c (macro_stringify): Likewise.
4074 * macrotab.c (fixup_definition): Update.
4075
4076 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4077
4078 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
4079 (lex_one_token): Update.
4080 * macroexp.c (struct macro_buffer) <release>: Return
4081 gdb::unique_xmalloc_ptr<char>.
4082 (macro_stringify): Update.
4083 (macro_expand): Update.
4084 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
4085 * macroexp.h (macro_expand_next): Likewise.
4086
4087 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
4088
4089 * macroexp.h (macro_lookup_ftype): Remove.
4090 (macro_expand, macro_expand_once, macro_expand_next): Remove
4091 lookup function parameters, add scope parameter.
4092 * macroexp.c (scan, substitute_args, expand, maybe_expand,
4093 macro_expand, macro_expand_once, macro_expand_next): Likewise.
4094 * macroscope.h (standard_macro_lookup): Change parameter type
4095 to macro_scope.
4096 * macroscope.c (standard_macro_lookup): Likewise.
4097 * c-exp.y (lex_one_token): Update.
4098 * macrocmd.c (macro_expand_command): Likewise.
4099 (macro_expand_once_command): Likewise.
4100
4101 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4102
4103 * inf-loop.c (inferior_event_handler): Remove client_data param.
4104 * inf-loop.h (inferior_event_handler): Likewise.
4105 * infcmd.c (step_1): Adjust.
4106 * infrun.c (proceed): Adjust.
4107 (fetch_inferior_event): Remove client_data param.
4108 (infrun_async_inferior_event_handler): Adjust.
4109 * infrun.h (fetch_inferior_event): Remove `void *` param.
4110 * linux-nat.c (handle_target_event): Adjust.
4111 * record-btrace.c (record_btrace_handle_async_inferior_event):
4112 Adjust.
4113 * record-full.c (record_full_async_inferior_event_handler):
4114 Adjust.
4115 * remote.c (remote_async_inferior_event_handler): Adjust.
4116
4117 2020-07-01 Tom Tromey <tom@tromey.com>
4118
4119 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
4120 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
4121
4122 2020-07-01 Tom Tromey <tom@tromey.com>
4123
4124 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
4125 tui_gen_win_info.
4126 (tui_win_info::make_window): Merge with
4127 tui_gen_win_info::make_window.
4128 (tui_win_info::make_visible): Move from tui_gen_win_info.
4129 * tui/tui-win.c (tui_win_info::max_width): Move from
4130 tui_gen_win_info.
4131 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
4132 type.
4133 <window_factory>: Likewise.
4134 * tui/tui-layout.c (tui_win_info::resize): Move from
4135 tui_gen_win_info.
4136 (make_standard_window): Change return type.
4137 (get_locator_window, tui_get_window_by_name): Likewise.
4138 (tui_layout_window::apply): Remove a cast.
4139 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
4140 (struct tui_win_info): Merge with tui_gen_win_info.
4141 (struct tui_gen_win_info): Remove.
4142
4143 2020-07-01 Tom Tromey <tom@tromey.com>
4144
4145 * tui/tui-stack.h (struct tui_locator_window): Derive from
4146 tui_win_info.
4147 <do_scroll_horizontal, do_scroll_vertical>: New methods.
4148 <can_box>: New method.
4149
4150 2020-07-01 Tom Tromey <tom@tromey.com>
4151
4152 * tui/tui-stack.h (struct tui_locator_window): Remove body.
4153
4154 2020-07-01 Tom Tromey <tom@tromey.com>
4155
4156 * tui/tui-regs.c (tui_data_window::display_registers_from)
4157 (tui_data_window::display_registers_from)
4158 (tui_data_window::first_data_item_displayed)
4159 (tui_data_window::delete_data_content_windows): Update.
4160 (tui_data_window::refresh_window, tui_data_window::no_refresh):
4161 Remove.
4162 (tui_data_window::check_register_values): Update.
4163 (tui_data_item_window::rerender): Add parameters. Update.
4164 (tui_data_item_window::refresh_window): Remove.
4165 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
4166 virtual.
4167 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
4168 tui_gen_win_info.
4169 <refresh_window, max_height, min_height>: Remove.
4170 <rerender>: Add parameters.
4171 <x, y, visible>: New members.
4172 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
4173 <m_item_width>: New member.
4174
4175 2020-07-01 Tom Tromey <tom@tromey.com>
4176
4177 * tui/tui-regs.c (tui_data_window::show_register_group)
4178 (tui_data_window::check_register_values): Update.
4179 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
4180 from item_no.
4181
4182 2020-07-01 Tom Tromey <tom@tromey.com>
4183
4184 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
4185 useless "if".
4186
4187 2020-07-01 Tom Tromey <tom@tromey.com>
4188
4189 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
4190 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
4191
4192 2020-07-01 Tom Tromey <tom@tromey.com>
4193
4194 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
4195 * tui/tui-winsource.h (enum tui_line_or_address_kind)
4196 (struct tui_line_or_address): Move from tui-data.h.
4197 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
4198 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
4199 (tui_cmd_window, tui_source_window_base, tui_source_window)
4200 (tui_disasm_window): Don't declare.
4201 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
4202 to tui-winsource.h.
4203 (SINGLE_KEY): Move to tui-stack.c.
4204
4205 2020-07-01 Tom Tromey <tom@tromey.com>
4206
4207 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
4208 std::string.
4209 * tui/tui-regs.c (class tab_expansion_file): New.
4210 (tab_expansion_file::write): New method.
4211 (tui_register_format): Change return type. Use
4212 tab_expansion_file.
4213 (tui_get_register, tui_data_window::display_registers_from)
4214 (tui_data_item_window::rerender): Update.
4215 * tui/tui-io.h (tui_expand_tabs): Don't declare.
4216 * tui/tui-io.c (tui_expand_tabs): Remove.
4217
4218 2020-07-01 Tom Tromey <tom@tromey.com>
4219
4220 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
4221
4222 2020-07-01 Fangrui Song <maskray@google.com>
4223
4224 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
4225
4226 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4227
4228 * dwarf2/read.c (set_die_type): Removed conditions to restrict
4229 forms for DW_AT_associated and DW_AT_allocated attributes,
4230 which is already checked in function attr_to_dynamic_prop.
4231
4232 2020-06-30 Tom Tromey <tromey@adacore.com>
4233
4234 * dwarf2/read.c (quirk_rust_enum): Correctly call
4235 alloc_rust_variant for default-less enum.
4236
4237 2020-06-30 Tom Tromey <tromey@adacore.com>
4238
4239 PR build/26183:
4240 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
4241 gdb::to_string.
4242
4243 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
4244
4245 * gdbarch.sh (displaced_step_copy_insn): Update doc.
4246 * gdbarch.h: Re-generate.
4247
4248 2020-06-28 Tom Tromey <tom@tromey.com>
4249
4250 * command.h (cmd_types): Remove.
4251 (cmd_type): Don't declare.
4252 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
4253 typedef.
4254 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
4255 * cli/cli-decode.c (cmd_type): Remove.
4256
4257 2020-06-27 Pedro Alves <palves@redhat.com>
4258
4259 * fork-child.c (prefork_hook): Adjust.
4260 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
4261 Delete.
4262 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
4263 * inferior.c (inferior::set_tty, inferior::tty): New methods.
4264 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
4265 Remove declarations.
4266 (struct inferior) <set_tty, tty>: New methods.
4267 (struct inferior) <terminal>: Rename to ...
4268 (struct inferior) <m_terminal>: ... this and make private.
4269 * main.c (captured_main_1): Adjust.
4270 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
4271 (mi_cmd_inferior_tty_show): Adjust.
4272 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
4273 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
4274
4275 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
4276
4277 * configure.ac: Add --enable-libctf: handle --disable-static
4278 properly.
4279 * acinclude.m4: sinclude ../config/enable.m4.
4280 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
4281 (LIBCTF): Substitute in.
4282 (CTF_DEPS): New, likewise.
4283 (CLIBS): libctf needs symbols from libbfd: move earlier.
4284 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
4285 flags.
4286 * ctfread.c: Surround in ENABLE_LIBCTF.
4287 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
4288 * configure: Regenerate.
4289 * config.in: Likewise.
4290
4291 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
4292
4293 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
4294
4295 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
4296
4297 * inferior.h (struct inferior) <terminal>: Change type to
4298 gdb::unique_xmalloc_ptr<char>.
4299 * inferior.c (inferior::~inferior): Don't free inf->terminal.
4300 * infcmd.c (set_inferior_io_terminal): Don't free terminal
4301 field, adjust to unique pointer.
4302 (get_inferior_io_terminal): Adjust to unique pointer.
4303
4304 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4305
4306 * riscv-tdep.c (riscv_print_registers_info): Loop over all
4307 registers, not just the known core set of registers.
4308
4309 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4310
4311 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
4312 fflags, frm, and fcsr registers.
4313 (riscv_register_reggroup_p): Remove unknown CSRs from save and
4314 restore groups.
4315 (riscv_tdesc_unknown_reg): New function.
4316 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
4317 tdesc_use_registers.
4318 * riscv-tdep.h (struct gdbarch_tdep): Add
4319 unknown_csrs_first_regnum, unknown_csrs_count,
4320 duplicate_fflags_regnum, duplicate_frm_regnum, and
4321 duplicate_fcsr_regnum fields.
4322
4323 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4324
4325 * target-descriptions.c (tdesc_use_registers): Add new parameter a
4326 callback, use the callback (when not null) to help number unknown
4327 registers.
4328 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
4329 (tdesc_use_registers): Add extra parameter to declaration.
4330
4331 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4332
4333 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
4334 in the file.
4335 (class riscv_pending_register_alias): Likewise.
4336 (riscv_register_feature::register_info): Change 'required_p' field
4337 to 'required', and change its type. Add 'check' member function.
4338 (riscv_register_feature::register_info::check): Define new member
4339 function.
4340 (riscv_xreg_feature): Change initialisation of 'required' field.
4341 (riscv_freg_feature): Likewise.
4342 (riscv_virtual_feature): Likewise.
4343 (riscv_csr_feature): Likewise.
4344 (riscv_check_tdesc_feature): Take extra parameter, the csr
4345 tdesc_feature, rewrite the function to use the new
4346 riscv_register_feature::register_info::check function.
4347 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
4348
4349 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4350
4351 * features/Makefile: Remove all references to the deleted files
4352 below.
4353 * features/riscv/32bit-csr.c: Deleted.
4354 * features/riscv/32bit-csr.xml: Deleted.
4355 * features/riscv/64bit-csr.c: Deleted.
4356 * features/riscv/64bit-csr.xml: Deleted.
4357 * features/riscv/rebuild-csr-xml.sh: Deleted.
4358
4359 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4360
4361 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
4362 whitespace error for declaration of names member variable.
4363 (struct riscv_register_feature): Add new prefer_first_name member
4364 variable, and fix whitespace error in declaration of registers.
4365 (riscv_xreg_feature): Initialize prefer_first_name field.
4366 (riscv_freg_feature): Likewise.
4367 (riscv_virtual_feature): Likewise.
4368 (riscv_csr_feature): Likewise.
4369 (riscv_register_name): Expand on comments. Remove register name
4370 modifications for CSR and virtual registers.
4371
4372 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4373
4374 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
4375 errors.
4376
4377 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4378
4379 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
4380 riscv-opc.h.
4381 (class riscv_pending_register_alias): New class.
4382 (riscv_check_tdesc_feature): Take vector of pending aliases and
4383 populate it as appropriate.
4384 (riscv_setup_register_aliases): Delete.
4385 (riscv_gdbarch_init): Create vector of pending aliases and pass it
4386 to riscv_check_tdesc_feature in all cases. Use the vector to
4387 create the register aliases.
4388
4389 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4390
4391 * sol2-tdep.c (sol2_static_transform_name): Remove.
4392 (sol2_init_abi): Don't register it.
4393 * gdbarch.sh (static_transform_name): Remove.
4394 * gdbarch.c, gdbarch.h: Regenerate.
4395
4396 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
4397 gdbarch_static_transform_name.
4398 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
4399 * stabsread.c (define_symbol) <'X'>: Remove.
4400 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
4401 handling.
4402 <'V'>: Likewise.
4403 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
4404 <'S'>: Remove call to gdbarch_static_transform_name.
4405
4406 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4407
4408 * procfs.c (procfs_pre_trace): New function.
4409 (procfs_target::create_inferior): Pass it to fork_inferior.
4410
4411 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4412
4413 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
4414 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
4415 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
4416 sol2-tdep.o, sparc-sol2-tdep.o.
4417 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
4418 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
4419 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
4420 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
4421
4422 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4423
4424 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
4425 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
4426 Call sol2_init_abi.
4427 Remove calls to set_gdbarch_skip_solib_resolver,
4428 set_gdbarch_core_pid_to_str.
4429 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
4430 (i386_sol2_static_transform_name): Remove.
4431 (i386_sol2_init_abi): Call sol2_init_abi.
4432 Remove calls to set_gdbarch_sofun_address_maybe_missing,
4433 set_gdbarch_static_transform_name,
4434 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
4435 Use sol2_sigtramp_p.
4436 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
4437 (sol2_sigtramp_p): New function.
4438 (sol2_static_transform_name): New function.
4439 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
4440 (sol2_init_abi): New function.
4441 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
4442 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
4443 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
4444 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
4445 (sparc_sol2_static_transform_name): Remove.
4446 (sparc32_sol2_init_abi): Call sol2_init_abi.
4447 Remove calls to set_gdbarch_sofun_address_maybe_missing,
4448 set_gdbarch_static_transform_name,
4449 set_gdbarch_skip_solib_resolver,
4450 set_gdbarch_core_pid_to_str.
4451 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
4452 (sparc_sol2_static_transform_name): Remove
4453 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
4454 call sol2_sigtramp_p.
4455 (sparc64_sol2_init_abi): Call sol2_init_abi.
4456 Remove calls to set_gdbarch_sofun_address_maybe_missing,
4457 set_gdbarch_static_transform_name,
4458 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
4459
4460 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4461
4462 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
4463 * exec.c (validate_exec_file): If from_tty, set both
4464 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
4465 * symfile.c (symbol_file_add_with_addrs): if always_confirm
4466 and from_tty, unconditionally ask a confirmation.
4467
4468 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4469
4470 * target-descriptions.c (tdesc_architecture_name): Protect against
4471 NULL pointer dereference.
4472 (maint_print_xml_tdesc_cmd): New function.
4473 (_initialize_target_descriptions): Register new 'maint print
4474 xml-tdesc' command and give it the filename completer.
4475 * NEWS: Mention new 'maint print xml-tdesc' command.
4476
4477 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4478
4479 * target-descriptions.c (class tdesc_compatible_info): New class.
4480 (struct target_desc): Change type of compatible vector.
4481 (tdesc_compatible_p): Update for change in type of
4482 target_desc::compatible.
4483 (tdesc_compatible_info_list): New function.
4484 (tdesc_compatible_info_arch_name): New function.
4485 (tdesc_add_compatible): Update for change in type of
4486 target_desc::compatible.
4487 (print_c_tdesc::visit_pre): Likewise.
4488
4489 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4490
4491 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
4492 whitespace to underscore.
4493 (maint_print_c_tdesc_cmd): Use fake filename for target
4494 descriptions that came from the target.
4495 (_initialize_target_descriptions): Add filename command completion
4496 for 'maint print c-tdesc'.
4497
4498 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
4499
4500 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
4501 lines.
4502
4503 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
4504
4505 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
4506 lines.
4507 (dwarf2_find_location_expression): Likewise.
4508 (call_site_parameter_matches): Likewise.
4509 (dwarf2_compile_expr_to_ax): Likewise.
4510 (disassemble_dwarf_expression): Likewise.
4511 (loclist_describe_location): Likewise.
4512
4513 2020-06-23 Pedro Alves <palves@redhat.com>
4514
4515 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
4516 progspace-and-thread.h. Include scoped-mock-context.h instead.
4517 (register_to_value_test): Use scoped_mock_context.
4518 * regcache.c: Include "scoped-mock-context.h".
4519 (cooked_read_test): Don't error out if a target is already pushed.
4520 Use scoped_mock_context. Adjust.
4521 * scoped-mock-context.h: New file.
4522
4523 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4524
4525 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
4526 initializer.
4527 (ada_language::is_string_type_p): New member function.
4528 * c-lang.c (c_language_data): Delete la_is_string_type_p
4529 initializer.
4530 (cplus_language_data): Likewise.
4531 (asm_language_data): Likewise.
4532 (minimal_language_data): Likewise.
4533 * d-lang.c (d_language_data): Likewise.
4534 * f-lang.c (f_is_string_type_p): Delete function, implementation
4535 moved to f_language::is_string_type_p.
4536 (f_language_data): Delete la_is_string_type_p initializer.
4537 (f_language::is_string_type_p): New member function,
4538 implementation from f_is_string_type_p.
4539 * go-lang.c (go_is_string_type_p): Delete function, implementation
4540 moved to go_language::is_string_type_p.
4541 (go_language_data): Delete la_is_string_type_p initializer.
4542 (go_language::is_string_type_p): New member function,
4543 implementation from go_is_string_type_p.
4544 * language.c (language_defn::is_string_type_p): Define new member
4545 function.
4546 (default_is_string_type_p): Make static, add comment copied from
4547 header file.
4548 (unknown_language_data): Delete la_is_string_type_p initializer.
4549 (unknown_language::is_string_type_p): New member function.
4550 (auto_language_data): Delete la_is_string_type_p initializer.
4551 (auto_language::is_string_type_p): New member function.
4552 * language.h (language_data): Delete la_is_string_type_p field.
4553 (language_defn::is_string_type_p): Declare new function.
4554 (default_is_string_type_p): Delete desclaration, move comment to
4555 definition.
4556 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
4557 moved to m2_language::is_string_type_p.
4558 (m2_language_data): Delete la_is_string_type_p initializer.
4559 (m2_language::is_string_type_p): New member function,
4560 implementation from m2_is_string_type_p.
4561 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
4562 initializer.
4563 * opencl-lang.c (opencl_language_data): Likewise.
4564 * p-lang.c (pascal_is_string_type_p): Delete function,
4565 implementation moved to pascal_language::is_string_type_p.
4566 (pascal_language_data): Delete la_is_string_type_p initializer.
4567 (pascal_language::is_string_type_p): New member function,
4568 implementation from pascal_is_string_type_p.
4569 * rust-lang.c (rust_is_string_type_p): Delete function,
4570 implementation moved to rust_language::is_string_type_p.
4571 (rust_language_data): Delete la_is_string_type_p initializer.
4572 (rust_language::is_string_type_p): New member function,
4573 implementation from rust_is_string_type_p.
4574 * valprint.c (val_print_scalar_or_string_type_p): Update call to
4575 is_string_type_p.
4576
4577 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4578
4579 * ada-lang.c (ada_language_data): Delete la_print_typedef
4580 initializer.
4581 (ada_language::print_typedef): New member function.
4582 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
4583 (cplus_language_data): Likewise.
4584 (asm_language_data): Likewise.
4585 (minimal_language_data): Likewise.
4586 * d-lang.c (d_language_data): Likewise.
4587 * f-lang.c (f_language_data): Likewise.
4588 (f_language::print_typedef): New member function.
4589 * go-lang.c (go_language_data): Delete la_print_typedef
4590 initializer.
4591 * language.c (language_defn::print_typedef): Define member
4592 function.
4593 (unknown_language_data): Delete la_print_typedef initializer.
4594 (unknown_language::print_typedef): New member function.
4595 (auto_language_data): Delete la_print_typedef initializer.
4596 (auto_language::print_typedef): New member function.
4597 * language.h (language_data): Delete la_print_typedef field.
4598 (language_defn::print_typedef): Declare new member function.
4599 (LA_PRINT_TYPEDEF): Update call to print_typedef.
4600 (default_print_typedef): Delete declaration.
4601 * m2-lang.c (m2_language_data): Delete la_print_typedef
4602 initializer.
4603 (m2_language::print_typedef): New member function.
4604 * objc-lang.c (objc_language_data): Delete la_print_typedef
4605 initializer.
4606 * opencl-lang.c (opencl_language_data): Likewise.
4607 * p-lang.c (pascal_language_data): Likewise.
4608 (pascal_language::print_typedef): New member function.
4609 * rust-lang.c (rust_print_typedef): Delete function,
4610 implementation moved to rust_language::print_typedef.
4611 (rust_language): Delete la_print_typedef initializer.
4612 (rust_language::print_typedef): New member function,
4613 implementation from rust_print_typedef.
4614 * typeprint.c (default_print_typedef): Delete.
4615
4616 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4617
4618 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
4619 (ada_language::printstr): New member function.
4620 * c-lang.c (c_language_data): Delete la_printstr initializer.
4621 (cplus_language_data): Likewise.
4622 (asm_language_data): Likewise.
4623 (minimal_language_data): Likewise.
4624 * d-lang.c (d_language_data): Likewise.
4625 * f-lang.c (f_printstr): Rename to f_language::printstr.
4626 (f_language_data): Delete la_printstr initializer.
4627 (f_language::printstr): New member function, implementation from
4628 f_printstr.
4629 * go-lang.c (go_language_data): Delete la_printstr initializer.
4630 * language.c (language_defn::printstr): Define new member
4631 function.
4632 (unk_lang_printstr): Delete.
4633 (unknown_language_data): Delete la_printstr initializer.
4634 (unknown_language::printstr): New member function.
4635 (auto_language_data): Delete la_printstr initializer.
4636 (auto_language::printstr): New member function.
4637 * language.h (language_data): Delete la_printstr field.
4638 (language_defn::printstr): Declare new member function.
4639 (LA_PRINT_STRING): Update call to printstr.
4640 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
4641 (m2_language_data): Delete la_printstr initializer.
4642 (m2_language::printstr): New member function, implementation from
4643 m2_printstr.
4644 * objc-lang.c (objc_language_data): Delete la_printstr
4645 initializer.
4646 * opencl-lang.c (opencl_language_data): Likewise.
4647 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
4648 (pascal_language_data): Delete la_printstr initializer.
4649 (pascal_language::printstr): New member function, implementation
4650 from pascal_printstr.
4651 * p-lang.h (pascal_printstr): Delete declaration.
4652 * rust-lang.c (rust_printstr): Update header comment.
4653 (rust_language_data): Delete la_printstr initializer.
4654 (rust_language::printstr): New member function.
4655
4656 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4657
4658 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
4659 (ada_language::printchar): New member function.
4660 * c-lang.c (c_language_data): Delete la_printchar initializer.
4661 (cplus_language_data): Likewise.
4662 (asm_language_data): Likewise.
4663 (minimal_language_data): Likewise.
4664 * d-lang.c (d_language_data): Likewise.
4665 * f-lang.c (f_printchar): Rename to f_language::printchar.
4666 (f_language_data): Delete la_printchar initializer.
4667 (f_language::printchar): New member function, implementation from
4668 f_printchar.
4669 * go-lang.c (go_language_data): Delete la_printchar initializer.
4670 * language.c (unk_lang_printchar): Delete.
4671 (language_defn::printchar): Define new member function.
4672 (unknown_language_data): Delete la_printchar initializer.
4673 (unknown_language::printchar): New member function.
4674 (auto_language_data): Delete la_printchar initializer.
4675 (auto_language::printchar): New member function.
4676 * language.h (language_data): Delete la_printchar field.
4677 (language_defn::printchar): Declare new member function.
4678 (LA_PRINT_CHAR): Update call to printchar.
4679 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
4680 (m2_language::printchar): New member function.
4681 * objc-lang.c (objc_language_data): Delete la_printchar
4682 initializer.
4683 * opencl-lang.c (opencl_language_data): Likewise.
4684 * p-lang.c (pascal_language_data): Delete la_printchar
4685 initializer.
4686 (pascal_language::printchar): New member function.
4687 * rust-lang.c (rust_printchar): Rename to
4688 rust_language::printchar.
4689 (rust_language_data): Delete la_printchar initializer.
4690 (rust_language::printchar): New member function, implementation
4691 from rust_printchar.
4692
4693 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4694
4695 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
4696 (ada_language_data): Delete la_emitchar initializer.
4697 (ada_language::emitchar): New member function, implementation from
4698 emit_char.
4699 * c-lang.c (c_language_data): Delete la_emitchar initializer.
4700 (cplus_language_data): Likewise.
4701 (asm_language_data): Likewise.
4702 (minimal_language_data): Likewise.
4703 * d-lang.c (d_language_data): Likewise.
4704 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
4705 (f_language_data): Delete la_emitchar initializer.
4706 (f_language::emitchar): New member function, implementation from
4707 f_emit_char.
4708 * go-lang.c (go_language_data): Delete la_emitchar initializer.
4709 * language.c (unk_lang_emit_char): Delete.
4710 (language_defn::emitchar): New member function definition.
4711 (unknown_language_data): Delete la_emitchar initializer.
4712 (unknown_language::emitchar): New member function.
4713 (auto_language_data): Delete la_emitchar initializer.
4714 (auto_language::emitchar): New member function.
4715 * language.h (language_data): Delete la_emitchar field.
4716 (language_defn::emitchar): New member field declaration.
4717 (LA_EMIT_CHAR): Update call to emitchar.
4718 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
4719 (m2_language_data): Delete la_emitchar initializer.
4720 (m2_language::emitchar): New member function, implementation from
4721 m2_emit_char.
4722 * objc-lang.c (objc_language_data): Delete la_emitchar
4723 initializer.
4724 * opencl-lang.c (opencl_language_data): Likewise.
4725 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
4726 (pascal_language_data): Delete la_emitchar initializer.
4727 (pascal_language::emitchar): New member function, implementation
4728 from pascal_emit_char.
4729 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
4730 (rust_language_data): Delete la_emitchar initializer.
4731 (rust_language::emitchar): New member function, implementation
4732 from rust_emitchar.
4733
4734 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4735
4736 * ada-lang.c (resolve): Rename to ada_language::post_parser.
4737 (ada_language_data): Delete la_post_parser initializer.
4738 (ada_language::post_parser): New member function.
4739 * c-lang.c (c_language_data): Delete la_post_parser initializer.
4740 (cplus_language_data): Likewise.
4741 (asm_language_data): Likewise.
4742 (minimal_language_data): Likewise.
4743 * d-lang.c (d_language_data): Likewise.
4744 * f-lang.c (f_language_data): Likewise.
4745 * go-lang.c (go_language_data): Likewise.
4746 * language.c (unknown_language_data): Likewise.
4747 (auto_language_data): Likewise.
4748 * language.h (language_data): Delete la_post_parser field.
4749 (language_defn::post_parser): New member function.
4750 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
4751 * objc-lang.c (objc_language_data): Likewise.
4752 * opencl-lang.c (opencl_language_data): Likewise.
4753 * p-lang.c (pascal_language_data): Likewise.
4754 * parse.c (parse_exp_in_context): Update call to post_parser.
4755 (null_post_parser): Delete definition.
4756 * parser-defs.h (null_post_parser): Delete declaration.
4757 * rust-lang.c (rust_language_data): Delete la_post_parser
4758 initializer.
4759
4760 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4761
4762 * ada-lang.c (parse): Rename to ada_language::parser.
4763 (ada_language_data): Delete la_parser initializer.
4764 (ada_language::parser): New member function, implementation from
4765 parse.
4766 * c-lang.c (c_language_data): Delete la_parser initializer.
4767 (cplus_language_data): Likewise.
4768 (asm_language_data): Likewise.
4769 (minimal_language_data): Likewise.
4770 * d-lang.c (d_language_data): Likewise.
4771 (d_language::parser): New member function.
4772 * f-lang.c (f_language_data): Delete la_parser initializer.
4773 (f_language::parser): New member function.
4774 * go-lang.c (go_language_data): Delete la_parser initializer.
4775 (go_language::parser): New member function.
4776 * language.c (unk_lang_parser): Delete.
4777 (language_defn::parser): Define new member function.
4778 (unknown_language_data): Delete la_parser initializer.
4779 (unknown_language::parser): New member function.
4780 (auto_language_data): Delete la_parser initializer.
4781 (auto_language::parser): New member function.
4782 * language.h (language_data): Delete la_parser field.
4783 (language_defn::parser): Declare new member function.
4784 * m2-lang.c (m2_language_data): Delete la_parser initializer.
4785 (m2_language::parser): New member function.
4786 * objc-lang.c (objc_language_data): Delete la_parser initializer.
4787 * opencl-lang.c (opencl_language_data): Likewise.
4788 * p-lang.c (pascal_language_data): Likewise.
4789 (pascal_language::parser): New member function.
4790 * parse.c (parse_exp_in_context): Update call to parser.
4791 * rust-lang.c (rust_language_data): Delete la_parser initializer.
4792 (rust_language::parser): New member function.
4793
4794 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4795
4796 * top.c (print_gdb_configuration): Print --with-python-libdir
4797 configuration value.
4798
4799 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4800
4801 * NEWS: Mention change to the alias command.
4802
4803 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4804
4805 * cli/cli-cmds.c (lookup_cmd_for_default_args)
4806 (alias_command_completer)
4807 (make_alias_options_def_group): New functions.
4808 (alias_opts, alias_option_defs): New struct and array.
4809 (alias_usage_error): Update usage.
4810 (alias_command): Handles optional DEFAULT-ARGS... arguments.
4811 Use option framework.
4812 (_initialize_cli_cmds): Update alias command help.
4813 Update aliases command help.
4814 (show_user):
4815 Add NULL for new default_args lookup_cmd argument.
4816 (valid_command_p): Rename to validate_aliased_command.
4817 Add NULL for new default_args lookup_cmd argument. Verify that the
4818 aliased_command has no default args.
4819 * cli/cli-decode.c (help_cmd): Show aliases definitions.
4820 (lookup_cmd_1, lookup_cmd): New argument default_args.
4821 (add_alias_cmd):
4822 Add NULL for new default_args lookup_cmd argument.
4823 (print_help_for_command): Show default args under the layout
4824 alias some_alias = some_aliased_cmd some_alias_default_arg.
4825 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
4826 xfree default_args in destructor.
4827 * cli/cli-script.c (process_next_line, do_define_command):
4828 Add NULL for new default_args lookup_cmd argument.
4829 * command.h: Declare new default_args argument in lookup_cmd
4830 and lookup_cmd_1.
4831 * completer.c (complete_line_internal_1):
4832 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4833 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
4834 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
4835 Likewise.
4836 * infcmd.c (_initialize_infcmd): Likewise.
4837 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
4838 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
4839 * python/py-param.c (add_setshow_generic): Likewise.
4840 * remote.c (_initialize_remote): Likewise.
4841 * top.c (execute_command): Prepend default_args if command has some.
4842 (set_verbose):
4843 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4844 * tracepoint.c (validate_actionline, encode_actions_1):
4845 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4846
4847 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4848
4849 * jit.c (jit_read_descriptor): Use bool as the return type.
4850 (jit_breakpoint_re_set_internal): Use bool as the return type.
4851 Invert the return value logic; return true if the jit breakpoint
4852 has been successfully initialized.
4853 (jit_inferior_init): Update the call to
4854 jit_breakpoint_re_set_internal.
4855
4856 2020-06-22 Pedro Alves <palves@redhat.com>
4857
4858 PR gdb/25939
4859 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
4860 Use the current inferior instead. Don't return
4861 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
4862 wait again.
4863 * sol-thread.c (sol_thread_target::wait): Don't reference
4864 inferior_ptid.
4865 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
4866 (sol_update_thread_list_callback): Use the current inferior's pid
4867 instead of inferior_ptid.
4868
4869 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4870
4871 * procfs.c: Cleanup many comments.
4872
4873 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
4874 (AFTER_WATCHFLAG): Replace by value.
4875
4876 (MAIN_PROC_NAME_FORMAT): Inline ...
4877 (create_procinfo): ... here.
4878
4879 (procfs_debug_inferior): Remove SYS_exec handling.
4880 (syscall_is_exec): Likewise.
4881 (procfs_set_exec_trap): Likewise.
4882
4883 (syscall_is_lwp_exit): Inline in callers.
4884 (syscall_is_exit): Likewise.
4885 (syscall_is_exec): Likewise.
4886 (syscall_is_lwp_create): Likewise.
4887
4888 (invalidate_cache): Remove #if 0 code.
4889
4890 (make_signal_thread_runnable): Remove.
4891 (procfs_target::resume): Remove #if 0 code.
4892
4893 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4894
4895 PR gdb/25939
4896 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
4897 call ...
4898 (procfs_target::create_inferior): ... here.
4899
4900 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4901
4902 * exec.c (validate_exec_file): Ensure the build-id is up to
4903 date by calling reopen_exec_file (that checks file timestamp
4904 to decide to re-read the file).
4905
4906 2020-06-18 Pedro Alves <palves@redhat.com>
4907
4908 PR gdb/25412
4909 * gdbthread.h (delete_thread, delete_thread_silent)
4910 (find_thread_ptid): Update comments.
4911 * thread.c (current_thread_): New global.
4912 (is_current_thread): Move higher, and reimplement.
4913 (inferior_thread): Reimplement.
4914 (set_thread_exited): Use bool. Add assertions.
4915 (add_thread_silent): Simplify thread-reuse handling by always
4916 calling delete_thread.
4917 (delete_thread): Remove intro comment.
4918 (find_thread_ptid): Skip exited threads.
4919 (switch_to_thread_no_regs): Write to current_thread_.
4920 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
4921 INFERIOR_PTID. Clear current_thread_.
4922
4923 2020-06-18 Pedro Alves <palves@redhat.com>
4924
4925 * aix-thread.c (pd_update): Use switch_to_thread.
4926
4927 2020-06-18 Pedro Alves <palves@redhat.com>
4928
4929 * ravenscar-thread.c (ravenscar_thread_target): Update.
4930 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
4931 (ravenscar_thread_target::add_active_thread): ... this. Don't
4932 set m_base_ptid here. Update to avoid referencing inferior_ptid.
4933 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
4934
4935 2020-06-18 Pedro Alves <palves@redhat.com>
4936
4937 * nat/windows-nat.c (current_windows_thread): Remove.
4938 * nat/windows-nat.h (current_windows_thread): Remove.
4939 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
4940 Adjust.
4941 (display_selectors): Adjust to fetch the current
4942 windows_thread_info based on inferior_ptid.
4943 (fake_create_process): No longer write to current_windows_thread.
4944 (windows_nat_target::get_windows_debug_event):
4945 Don't set inferior_ptid or current_windows_thread.
4946 (windows_nat_target::wait): Adjust to not rely on
4947 current_windows_thread.
4948 (do_initial_windows_stuff): Now a method of windows_nat_target.
4949 Switch to the last_ptid thread.
4950 (windows_nat_target::attach): Adjust.
4951 (windows_nat_target::detach): Use switch_to_no_thread instead of
4952 writing to inferior_ptid directly.
4953 (windows_nat_target::create_inferior): Adjust.
4954
4955 2020-06-18 Pedro Alves <palves@redhat.com>
4956
4957 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
4958
4959 2020-06-18 Pedro Alves <palves@redhat.com>
4960
4961 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
4962 after creating it, instead of writing to inferior_ptid. Don't
4963 write to inferior_ptid.
4964
4965 2020-06-18 Pedro Alves <palves@redhat.com>
4966
4967 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
4968
4969 2020-06-18 Pedro Alves <palves@redhat.com>
4970
4971 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
4972 it, instead of writing to inferior_ptid.
4973
4974 2020-06-18 Pedro Alves <palves@redhat.com>
4975
4976 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
4977 to inferior_ptid.
4978
4979 2020-06-18 Pedro Alves <palves@redhat.com>
4980
4981 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
4982 instead of writing to inferior_ptid directly.
4983
4984 2020-06-18 Pedro Alves <palves@redhat.com>
4985
4986 * corelow.c (core_target::close): Use switch_to_no_thread instead
4987 of writing to inferior_ptid directly.
4988 (add_to_thread_list, core_target_open): Use switch_to_thread
4989 instead of writing to inferior_ptid directly.
4990
4991 2020-06-18 Pedro Alves <palves@redhat.com>
4992
4993 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
4994 inferior_ptid.
4995 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
4996 inferior_ptid.
4997 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
4998 inferior_ptid directly.
4999 (darwin_nat_target::init_thread_list): Switch to thread, instead
5000 of writing to inferior_ptid.
5001 (darwin_nat_target::attach): Don't write to inferior_ptid.
5002 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
5003
5004 2020-06-18 Pedro Alves <palves@redhat.com>
5005
5006 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
5007 thread.
5008 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
5009 Instead use switch_to_thread.
5010 (gnu_nat_target::detach): Use switch_to_no_thread
5011 instead of writing to inferior_ptid directly. Used passed-in
5012 inferior instead of looking up the inferior by pid.
5013
5014 2020-06-18 Pedro Alves <palves@redhat.com>
5015
5016 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
5017 inferior_ptid.
5018
5019 2020-06-18 Pedro Alves <palves@redhat.com>
5020
5021 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
5022 inferior_ptid.
5023 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
5024 thread.
5025 (nto_procfs_target::detach): Avoid referencing
5026 inferior_ptid. Use switch_to_no_thread instead of writing to
5027 inferior_ptid directly.
5028 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
5029 instead of writing to inferior_ptid directly.
5030 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
5031 to thread.
5032
5033 2020-06-18 Pedro Alves <palves@redhat.com>
5034
5035 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
5036 after creating it, instead of writing to inferior_ptid.
5037 (gdbsim_target_open): Use switch_to_no_thread instead of writing
5038 to inferior_ptid directly.
5039 (gdbsim_target::wait): Don't write to inferior_ptid.
5040
5041 2020-06-18 Pedro Alves <palves@redhat.com>
5042
5043 * remote.c (remote_target::remote_notice_new_inferior): Use
5044 switch_to_thread instead of writing to inferior_ptid directly.
5045 (remote_target::add_current_inferior_and_thread): Use
5046 switch_to_no_thread instead of writing to inferior_ptid directly.
5047 (extended_remote_target::attach): Use switch_to_inferior_no_thread
5048 and switch_to_thread instead of using set_current_inferior or
5049 writing to inferior_ptid directly.
5050
5051 2020-06-18 Pedro Alves <palves@redhat.com>
5052
5053 * tracectf.c (ctf_target_open): Switch to added thread instead of
5054 writing to inferior_ptid directly.
5055 (ctf_target::close): Use switch_to_no_thread instead of writing to
5056 inferior_ptid directly.
5057
5058 2020-06-18 Pedro Alves <palves@redhat.com>
5059
5060 * tracefile-tfile.c (tfile_target_open): Don't write to
5061 inferior_ptid directly, instead switch to added thread.
5062 (tfile_target::close): Use switch_to_no_thread instead of writing
5063 to inferior_ptid directly.
5064
5065 2020-06-18 Pedro Alves <palves@redhat.com>
5066
5067 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
5068 (procfs_target::detach): Use switch_to_no_thread
5069 instead of writing to inferior_ptid directly.
5070 (do_attach): Change return type to void. Switch to the added
5071 thread.
5072 (procfs_target::create_inferior): Switch to the added thread.
5073 (procfs_do_thread_registers): Don't write to inferior_ptid.
5074
5075 2020-06-18 Pedro Alves <palves@redhat.com>
5076
5077 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
5078 of writing to inferior_ptid.
5079 (scoped_restore_exited_inferior): Delete.
5080 (handle_vfork_child_exec_or_exit): Simplify using
5081 scoped_restore_current_pspace_and_thread. Use switch_to_thread
5082 instead of writing to inferior_ptid.
5083 (THREAD_STOPPED_BY): Delete.
5084 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
5085 (thread_stopped_by_hw_breakpoint): Delete.
5086 (save_waitstatus): Use
5087 scoped_restore_current_thread+switch_to_thread, and call
5088 target_stopped_by_watchpoint instead of
5089 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
5090 instead of thread_stopped_by_sw_breakpoint, and
5091 target_stopped_by_hw_breakpoint instead of
5092 thread_stopped_by_hw_breakpoint.
5093 (handle_inferior_event)
5094 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
5095 inferior_ptid directly, nor
5096 set_current_inferior/set_current_program_space. Use
5097 switch_to_thread / switch_to_inferior_no_thread instead.
5098
5099 2020-06-18 Pedro Alves <palves@redhat.com>
5100
5101 * target.c (generic_mourn_inferior): Use switch_to_no_thread
5102 instead of writing to inferior_ptid.
5103
5104 2020-06-18 Pedro Alves <palves@redhat.com>
5105
5106 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
5107 added thread.
5108 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
5109 to the added thread.
5110 (inf_ptrace_target::detach_success): Use switch_to_no_thread
5111 instead of writing to inferior_ptid.
5112
5113 2020-06-18 Pedro Alves <palves@redhat.com>
5114
5115 * gdbarch-selftests.c: Include "progspace-and-thread.h".
5116 (register_to_value_test): Mock a program_space too. Heap-allocate
5117 the address space. Don't write to inferior_ptid. Use
5118 switch_to_thread instead.
5119
5120 2020-06-18 Pedro Alves <palves@redhat.com>
5121
5122 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
5123 Delete.
5124 (find_signalled_thread()): New, factored out from
5125 linux_make_corefile_notes and adjusted to handle exited threads.
5126 (linux_make_corefile_notes): Adjust to use the new
5127 find_signalled_thread.
5128
5129 2020-06-18 Pedro Alves <palves@redhat.com>
5130
5131 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
5132 of saving/restoring inferior_ptid.
5133
5134 2020-06-17 Tom Tromey <tom@tromey.com>
5135
5136 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
5137 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
5138 declare.
5139 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
5140
5141 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
5142
5143 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
5144 of partial symtabs.
5145
5146 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
5147
5148 * regformats/reg-arm.dat: Remove.
5149 * regformats/reg-bfin.dat: Remove.
5150 * regformats/reg-cris.dat: Remove.
5151 * regformats/reg-crisv32.dat: Remove.
5152 * regformats/reg-m32r.dat: Remove.
5153 * regformats/reg-tilegx.dat: Remove.
5154 * regformats/reg-tilegx32.dat: Remove.
5155
5156 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
5157
5158 * features/Makefile (WHICH): Remove arm files.
5159 * regformats/arm/arm-with-iwmmxt.dat: Remove.
5160 * regformats/arm/arm-with-neon.dat: Remove.
5161 * regformats/arm/arm-with-vfpv2.dat: Remove.
5162 * regformats/arm/arm-with-vfpv3.dat: Remove.
5163
5164 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
5165
5166 * features/Makefile (XMLTOC): Remove rx.xml.
5167
5168 2020-06-17 Pedro Alves <palves@redhat.com>
5169
5170 * gdbthread.h (thread_control_state) <trap_expected> Update
5171 comments.
5172
5173 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5174
5175 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
5176 ada_language::lookup_symbol_nonlocal.
5177 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
5178 (ada_language::lookup_symbol_nonlocal): New member function,
5179 implementation from ada_lookup_symbol_nonlocal.
5180 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
5181 initializer.
5182 (cplus_language_data): Delete la_lookup_symbol_nonlocal
5183 initializer.
5184 (cplus_language::lookup_symbol_nonlocal): New member function.
5185 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
5186 (minimal_language_data) Likewise.
5187 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
5188 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
5189 initializer.
5190 (d_language::lookup_symbol_nonlocal): New member function.
5191 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
5192 initializer.
5193 (f_language::lookup_symbol_nonlocal): New member function.
5194 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
5195 initializer.
5196 * language.c (unknown_language_data): Likewise.
5197 (auto_language_data): Likewise.
5198 * language.h (language_data): Delete la_lookup_symbol_nonlocal
5199 field.
5200 (language_defn::lookup_symbol_nonlocal): New member function.
5201 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
5202 initializer.
5203 * objc-lang.c (objc_language_data): Likewise.
5204 * opencl-lang.c (opencl_language_data): Likewise.
5205 * p-lang.c (pascal_language_data): Likewise.
5206 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
5207 rust_language::lookup_symbol_nonlocal.
5208 (rust_language_data): Delete la_lookup_symbol_nonlocal
5209 initializer.
5210 (rust_language::lookup_symbol_nonlocal): New member function,
5211 implementation from rust_lookup_symbol_nonlocal.
5212 * symtab.c (lookup_symbol_aux): Update call to
5213 lookup_symbol_nonlocal.
5214 (basic_lookup_symbol_nonlocal): Rename to...
5215 (language_defn::lookup_symbol_nonlocal): ...this, and update
5216 header comment. Remove language_defn parameter, and replace with
5217 uses of `this'.
5218 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
5219
5220 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5221
5222 * ada-lang.c (ada_language_data): Delete la_value_print_inner
5223 initializer.
5224 (ada_language::value_print_inner): New member function.
5225 * c-lang.c (c_language_data): Delete la_value_print_inner
5226 initializer.
5227 (cplus_language_data): Likewise.
5228 (asm_language_data): Likewise.
5229 (minimal_language_data): Likewise.
5230 * d-lang.c (d_language_data): Likewise.
5231 (d_language::value_print_inner): New member function.
5232 * f-lang.c (f_language_data): Delete la_value_print_inner
5233 initializer.
5234 (f_language::value_print_inner): New member function.
5235 * f-lang.h (f_value_print_innner): Rename to...
5236 (f_value_print_inner): ...this (note spelling of 'inner').
5237 * f-valprint.c (f_value_print_innner): Rename to...
5238 (f_value_print_inner): ...this (note spelling of 'inner').
5239 * go-lang.c (go_language_data): Delete la_value_print_inner
5240 initializer.
5241 (go_language::value_print_inner): New member function.
5242 * language.c (language_defn::value_print_inner): Define new member
5243 function.
5244 (unk_lang_value_print_inner): Delete.
5245 (unknown_language_data): Delete la_value_print_inner initializer.
5246 (unknown_language::value_print_inner): New member function.
5247 (auto_language_data): Delete la_value_print_inner initializer.
5248 (auto_language::value_print_inner): New member function.
5249 * language.h (language_data): Delete la_value_print_inner field.
5250 (language_defn::value_print_inner): Delcare new member function.
5251 * m2-lang.c (m2_language_data): Delete la_value_print_inner
5252 initializer.
5253 (m2_language::value_print_inner): New member function.
5254 * objc-lang.c (objc_language_data): Delete la_value_print_inner
5255 initializer.
5256 * opencl-lang.c (opencl_language_data): Likewise.
5257 * p-lang.c (pascal_language_data): Likewise.
5258 (pascal_language::value_print_inner): New member function.
5259 * rust-lang.c (rust_language_data): Delete la_value_print_inner
5260 initializer.
5261 (rust_language::value_print_inner): New member function.
5262 * valprint.c (do_val_print): Update call to value_print_inner.
5263
5264 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5265
5266 * ada-lang.c (ada_language_data): Delete la_value_print
5267 initializer.
5268 (ada_language::value_print): New member function.
5269 * c-lang.c (c_language_data): Delete la_value_print initializer.
5270 (cplus_language_data): Likewise.
5271 (asm_language_data): Likewise.
5272 (minimal_language_data): Likewise.
5273 * d-lang.c (d_language_data): Likewise.
5274 * f-lang.c (f_language_data): Likewise.
5275 * go-lang.c (go_language_data): Likewise.
5276 * language.c (unk_lang_value_print): Delete.
5277 (language_defn::value_print): Define new member function.
5278 (unknown_language_data): Delete la_value_print initializer.
5279 (unknown_language::value_print): New member function.
5280 (auto_language_data): Delete la_value_print initializer.
5281 (auto_language::value_print): New member function.
5282 * language.h (language_data): Delete la_value_print field.
5283 (language_defn::value_print): Declare new member function.
5284 (LA_VALUE_PRINT): Update call to value_print.
5285 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
5286 * objc-lang.c (objc_language_data): Likewise.
5287 * opencl-lang.c (opencl_language_data): Likewise.
5288 * p-lang.c (pascal_language_data): Likewise.
5289 (pascal_language::value_print): New member function.
5290 * rust-lang.c (rust_language_data): Delete la_value_print
5291 initializer.
5292
5293 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5294
5295 * ada-lang.c (ada_watch_location_expression): Rename to
5296 ada_language::watch_location_expression.
5297 (ada_language_data): Delete la_watch_location_expression
5298 initializer.
5299 (ada_language::watch_location_expression): New member function,
5300 implementation from ada_watch_location_expression.
5301 * breakpoint.c (watch_command_1): Update call to
5302 watch_location_expression.
5303 * c-lang.c (c_watch_location_expression): Rename to
5304 language_defn::watch_location_expression.
5305 (c_language_data): Delete la_watch_location_expression
5306 initializer.
5307 (cplus_language_data): Likewise.
5308 (asm_language_data): Likewise.
5309 (minimal_language_data): Likewise.
5310 * c-lang.h (c_watch_location_expression): Delete declaration.
5311 * d-lang.c (d_language_data): Delete la_watch_location_expression
5312 initializer.
5313 * f-lang.c (f_language_data): Likewise.
5314 * go-lang.c (go_language_data): Likewise.
5315 * language.c (language_defn::watch_location_expression): Member
5316 function implementation from c_watch_location_expression.
5317 (unknown_language_data): Delete la_watch_location_expression
5318 initializer.
5319 (auto_language_data): Likewise.
5320 * language.h (language_data): Delete la_watch_location_expression
5321 field.
5322 (language_defn::watch_location_expression): Declare new member
5323 function.
5324 * m2-lang.c (m2_language_data): Delete
5325 la_watch_location_expression initializer.
5326 * objc-lang.c (objc_language_data): Likewise.
5327 * opencl-lang.c (opencl_language_data): Likewise.
5328 * p-lang.c (pascal_language_data): Likewise.
5329 * rust-lang.c (rust_watch_location_expression): Rename to
5330 rust_language::watch_location_expression.
5331 (rust_language_data): Delete la_watch_location_expression
5332 initializer.
5333 (rust_language::watch_location_expression): New member function,
5334 implementation from rust_watch_location_expression.
5335
5336 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5337
5338 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
5339 ada_language::collect_symbol_completion_matches.
5340 (ada_language_data): Delete la_collect_symbol_completion_matches
5341 initializer.
5342 (ada_language::collect_symbol_completion_matches): New member
5343 function, implementation from
5344 ada_collect_symbol_completion_matches.
5345 * c-lang.c (c_language_data): Delete
5346 la_collect_symbol_completion_matches initializer.
5347 (cplus_language_data): Likewise.
5348 (asm_language_data): Likewise.
5349 (minimal_language_data): Likewise.
5350 * d-lang.c (d_language_data): Likewise.
5351 * f-lang.c (f_collect_symbol_completion_matches): Rename to
5352 f_language::collect_symbol_completion_matches.
5353 (f_language_data): Delete la_collect_symbol_completion_matches
5354 initializer.
5355 (f_language::collect_symbol_completion_matches) New member
5356 function, implementation from f_collect_symbol_completion_matches.
5357 * go-lang.c (go_language_data): Delete
5358 la_collect_symbol_completion_matches initializer.
5359 * language.c (unknown_language_data): Likewise.
5360 (auto_language_data): Likewise.
5361 * language.h (language_data): Delete
5362 la_collect_symbol_completion_matches field.
5363 (language_defn::collect_symbol_completion_matches): New member
5364 function.
5365 * m2-lang.c (m2_language_data): Delete
5366 la_collect_symbol_completion_matches initializer.
5367 * objc-lang.c (objc_language_data): Likewise.
5368 * opencl-lang.c (opencl_language_data): Likewise.
5369 * p-lang.c (pascal_language_data): Likewise.
5370 * rust-lang.c (rust_language_data): Likewise.
5371 * symtab.c (default_collect_symbol_completion_matches): Delete.
5372 (collect_symbol_completion_matches): Update call to
5373 collect_symbol_completion_matches.
5374 (collect_symbol_completion_matches_type): Likewise.
5375 * symtab.h (default_collect_symbol_completion_matches): Delete
5376 declaration.
5377
5378 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5379
5380 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
5381 (ada_language_data): Delete la_word_break_characters initializer.
5382 (ada_language::word_break_characters): New member function.
5383 * c-lang.c (c_language_data): Delete la_word_break_characters
5384 initializer.
5385 (cplus_language_data): Likewise.
5386 (asm_language_data): Likewise.
5387 (minimal_language_data): Likewise.
5388 * completer.c: Update global comment.
5389 (advance_to_expression_complete_word_point): Update call to
5390 word_break_characters.
5391 (complete_files_symbols): Likewise.
5392 (complete_line_internal_1): Likewise.
5393 (default_completer_handle_brkchars): Likewise.
5394 (skip_quoted_chars): Likewise.
5395 * d-lang.c (d_language_data): Delete la_word_break_characters
5396 initializer.
5397 * f-lang.c (f_word_break_characters): Delete.
5398 (f_language_data): Delete la_word_break_characters initializer.
5399 (f_language::word_break_characters): New member function.
5400 * go-lang.c (go_language_data): Delete la_word_break_characters
5401 initializer.
5402 * language.c (unknown_language_data): Likewise.
5403 (auto_language_data): Likewise.
5404 * language.h (default_word_break_characters): Move declaration to
5405 earlier in the file.
5406 (language_data): Delete la_word_break_characters field.
5407 (language_defn::word_break_characters): New member function.
5408 * m2-lang.c (m2_language_data): Delete la_word_break_characters
5409 initializer.
5410 * objc-lang.c (objc_language_data): Likewise.
5411 * opencl-lang.c (opencl_language_data): Likewise.
5412 * p-lang.c (pascal_language_data): Likewise.
5413 * rust-lang.c (rust_language_data): Likewise.
5414
5415 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5416
5417 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
5418 (ada_language_data): Delete la_get_symbol_name_matcher
5419 initializer.
5420 (language_defn::get_symbol_name_matcher_inner): New member
5421 function.
5422 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
5423 initializer.
5424 (cplus_language_data): Likewise.
5425 (cplus_language::get_symbol_name_matcher_inner): New member
5426 function.
5427 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
5428 (minimal_language_data): Likewise.
5429 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
5430 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
5431 initializer.
5432 * dictionary.c (iter_match_first_hashed): Update call to
5433 get_symbol_name_matcher.
5434 (iter_match_next_hashed): Likewise.
5435 (iter_match_next_linear): Likewise.
5436 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
5437 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
5438 initializer.
5439 (f_language::get_symbol_name_matcher_inner): New member function.
5440 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
5441 initializer.
5442 * language.c (default_symbol_name_matcher): Update header comment,
5443 make static.
5444 (language_defn::get_symbol_name_matcher): New definition.
5445 (language_defn::get_symbol_name_matcher_inner): Likewise.
5446 (get_symbol_name_matcher): Delete.
5447 (unknown_language_data): Delete la_get_symbol_name_matcher
5448 initializer.
5449 (auto_language_data): Likewise.
5450 * language.h (language_data): Delete la_get_symbol_name_matcher
5451 field.
5452 (language_defn::get_symbol_name_matcher): New member function.
5453 (language_defn::get_symbol_name_matcher_inner): Likewise.
5454 (default_symbol_name_matcher): Delete declaration.
5455 * linespec.c (find_methods): Update call to
5456 get_symbol_name_matcher.
5457 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
5458 initializer.
5459 * minsyms.c (lookup_minimal_symbol): Update call to
5460 get_symbol_name_matcher.
5461 (iterate_over_minimal_symbols): Likewise.
5462 * objc-lang.c (objc_language_data): Delete
5463 la_get_symbol_name_matcher initializer.
5464 * opencl-lang.c (opencl_language_data): Likewise.
5465 * p-lang.c (pascal_language_data): Likewise.
5466 * psymtab.c (psymbol_name_matches): Update call to
5467 get_symbol_name_matcher.
5468 * rust-lang.c (rust_language_data): Delete
5469 la_get_symbol_name_matcher initializer.
5470 * symtab.c (symbol_matches_search_name): Update call to
5471 get_symbol_name_matcher.
5472 (compare_symbol_name): Likewise.
5473
5474 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5475
5476 * ada-lang.c (ada_language_data): Delete la_compute_program
5477 initializer.
5478 * c-lang.c (c_language_data): Likewise.
5479 (c_language::compute_program): New member function.
5480 (cplus_language_data): Delete la_compute_program initializer.
5481 (cplus_language::compute_program): New member function.
5482 (asm_language_data): Delete la_compute_program initializer.
5483 (minimal_language_data): Likewise.
5484 * c-lang.h (c_compute_program): Update comment.
5485 (cplus_compute_program): Likewise.
5486 * compile/compile-c-support.c (c_compute_program): Likewise.
5487 (cplus_compute_program): Likewise.
5488 * compile/compile.c (compile_to_object): Update call to
5489 la_compute_program.
5490 * d-lang.c (d_language_data): Delete la_compute_program
5491 initializer.
5492 * f-lang.c (f_language_data): Likewise.
5493 * go-lang.c (go_language_data): Likewise.
5494 * language.c (unknown_language_data): Likewise.
5495 (auto_language_data): Likewise.
5496 * language.h (language_data): Delete la_compute_program field.
5497 (language_defn::compute_program): New member function.
5498 * m2-lang.c (m2_language_data): Delete la_compute_program
5499 initializer.
5500 * objc-lang.c (objc_language_data): Likewise.
5501 * opencl-lang.c (opencl_language_data): Likewise.
5502 * p-lang.c (pascal_language_data): Likewise.
5503 * rust-lang.c (rust_language_data): Likewise.
5504
5505 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5506
5507 * ada-lang.c (ada_language_data) Delete
5508 la_class_name_from_physname initializer.
5509 * c-lang.c (c_language_data): Likewise.
5510 (cplus_language_data): Likewise.
5511 (cplus_language::class_name_from_physname): New member function.
5512 (asm_language_data): Delete la_class_name_from_physname
5513 initializer.
5514 (minimal_language_data): Likewise.
5515 * d-lang.c (d_language_data): Likewise.
5516 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
5517 method on language_defn class.
5518 (guess_full_die_structure_name): Likewise.
5519 * f-lang.c (f_language_data): Delete la_class_name_from_physname
5520 initializer.
5521 * go-lang.c (go_language_data): Likewise.
5522 * language.c (language_class_name_from_physname): Delete.
5523 (unk_lang_class_name): Delete.
5524 (unknown_language_data): Delete la_class_name_from_physname
5525 initializer.
5526 (auto_language_data): Likewise.
5527 * language.h (language_data): Delete la_class_name_from_physname
5528 field.
5529 (language_defn::class_name_from_physname): New function.
5530 (language_class_name_from_physname): Delete declaration.
5531 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
5532 initializer.
5533 * objc-lang.c (objc_language_data): Likewise.
5534 * opencl-lang.c (opencl_language_data): Likewise.
5535 * p-lang.c (pascal_language_data): Likewise.
5536 * rust-lang.c (rust_language_data): Likewise.
5537
5538 2020-06-16 Tom Tromey <tom@tromey.com>
5539
5540 * tui/tui-data.h (STATUS_NAME): New macro.
5541 * tui/tui-layout.c (tui_remove_some_windows)
5542 (initialize_known_windows, tui_register_window)
5543 (tui_layout_split::remove_windows, initialize_layouts)
5544 (tui_new_layout_command): Don't use hard-coded window names.
5545
5546 2020-06-16 Tom Tromey <tom@tromey.com>
5547
5548 PR tui/25348:
5549 * tui/tui.c (tui_ensure_readline_initialized): Rename from
5550 tui_initialize_readline. Only run once. Call rl_initialize.
5551 * tui/tui.h (tui_ensure_readline_initialized): Rename from
5552 tui_initialize_readline.
5553 * tui/tui-io.c (tui_setup_io): Call
5554 tui_ensure_readline_initialized.
5555 * tui/tui-interp.c (tui_interp::init): Update.
5556
5557 2020-06-16 Tom Tromey <tom@tromey.com>
5558
5559 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
5560 Also preserve the status window.
5561
5562 2020-06-16 Tom Tromey <tom@tromey.com>
5563
5564 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
5565 where m_window==nullptr.
5566
5567 2020-06-15 Tom Tromey <tromey@adacore.com>
5568
5569 * windows-nat.c (windows_nat::handle_output_debug_string):
5570 Update.
5571 (windows_nat::handle_ms_vc_exception): Update.
5572 * target.h (target_read_string): Change API.
5573 * target.c (target_read_string): Change API.
5574 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
5575 Update.
5576 * solib-frv.c (frv_current_sos): Update.
5577 * solib-dsbt.c (dsbt_current_sos): Update.
5578 * solib-darwin.c (darwin_current_sos): Update.
5579 * linux-thread-db.c (inferior_has_bug): Update.
5580 * expprint.c (print_subexp_standard): Update.
5581 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
5582 (ada_exception_message_1): Update.
5583
5584 2020-06-15 Tom Tromey <tromey@adacore.com>
5585
5586 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
5587
5588 2020-06-15 Tom Tromey <tromey@adacore.com>
5589
5590 * valprint.c (read_string): Update comment.
5591 * target.c (MIN): Remove.
5592 (target_read_string): Rewrite.
5593
5594 2020-06-15 Tom Tromey <tromey@adacore.com>
5595
5596 * corefile.c (read_memory_string): Remove.
5597 * ada-valprint.c (ada_value_print_ptr): Update.
5598 * ada-lang.h (ada_tag_name): Change return type.
5599 * ada-lang.c (type_from_tag): Update.
5600 (ada_tag_name_from_tsd): Change return type. Use
5601 target_read_string.
5602 (ada_tag_name): Likewise.
5603 * gdbcore.h (read_memory_string): Don't declare.
5604
5605 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
5606
5607 * symtab.c (rbreak_command): Ignore Windows drive colon.
5608
5609 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
5610
5611 * NEWS: Mention removed GDBserver host support.
5612
5613 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
5614
5615 * features/riscv/rebuild-csr-xml.sh: Updated.
5616
5617 2020-06-11 Tom Tromey <tom@tromey.com>
5618
5619 PR gdb/18318:
5620 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
5621
5622 2020-06-09 Jonny Grant <jg@jguk.org>
5623 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
5624
5625 * main.c (captured_main_1): Don't print new line after help.
5626 (print_gdb_help): add mailing list and IRC channel information
5627 to --help. Add new lines between items in the footer. Remove
5628 quotes around bug url.
5629
5630 2020-06-11 Keith Seitz <keiths@redhat.com>
5631
5632 PR gdb/21356
5633 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
5634 Resolve typedefs for type length calculations.
5635
5636 2020-06-10 Tom de Vries <tdevries@suse.de>
5637
5638 PR ada/24713
5639 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
5640 (write_psymbols): Enable .gdb_index for ada.
5641 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
5642 ada.
5643
5644 2020-06-10 Tom de Vries <tdevries@suse.de>
5645
5646 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
5647 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
5648 namei" instead of "const char *name" argument.
5649 (dw2_map_matching_symbols): Use "offset_type namei" variant of
5650 dw2_symtab_iter_init.
5651
5652 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
5653
5654 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
5655 to use type::field and field::type instead.
5656
5657 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
5658
5659 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
5660 to use field::type instead.
5661
5662 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
5663
5664 * gdbtypes.h (struct field) <type, set_type>: New methods.
5665 Rename `type` field to...
5666 <m_type>: ... this. Change references throughout to use type or
5667 set_type methods.
5668 (FIELD_TYPE): Use field::type. Change call sites that modify
5669 the field's type to use field::set_type instead.
5670
5671 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
5672
5673 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
5674 to use type::index_type instead.
5675
5676 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
5677
5678 * gdbtypes.h (struct type) <index_type, set_index_type>: New
5679 methods.
5680 (TYPE_INDEX_TYPE): Use type::index_type.
5681 * gdbtypes.c (create_array_type_with_stride): Likewise.
5682
5683 2020-06-07 Tom Tromey <tom@tromey.com>
5684
5685 * valprint.c (generic_val_print_float): Remove "embedded_offset"
5686 parameter.
5687 (generic_value_print): Update.
5688
5689 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
5690
5691 Revert commit 982a38f60b0.
5692 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
5693
5694 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
5695
5696 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
5697 avoid use after free.
5698
5699 2020-06-05 Tom de Vries <tdevries@suse.de>
5700
5701 * NEWS: Fix typos.
5702
5703 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
5704
5705 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
5706 the per_bfd object.
5707 (dwarf2_read_debug_names): Likewise.
5708 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
5709 object when re-using a per_bfd object with an index.
5710
5711 2020-06-03 Tom de Vries <tdevries@suse.de>
5712
5713 PR symtab/26046
5714 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
5715 children for C++.
5716 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
5717 DW_TAG_subprogram.
5718
5719 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5720
5721 * ada-lang.c (ada_language_data): Delete skip_trampoline
5722 initializer.
5723 * c-lang.c (c_language_data): Likewise.
5724 (cplus_language_data): Likewise.
5725 (cplus_language::skip_trampoline): New member function.
5726 (asm_language_data): Delete skip_trampoline initializer.
5727 (minimal_language_data): Likewise.
5728 * d-lang.c (d_language_data): Likewise.
5729 * f-lang.c (f_language_data): Likewise.
5730 * go-lang.c (go_language_data): Likewise.
5731 * language.c (unk_lang_trampoline): Delete function.
5732 (skip_language_trampoline): Update.
5733 (unknown_language_data): Delete skip_trampoline initializer.
5734 (auto_language_data): Likewise.
5735 * language.h (language_data): Delete skip_trampoline field.
5736 (language_defn::skip_trampoline): New function.
5737 * m2-lang.c (m2_language_data): Delete skip_trampoline
5738 initializer.
5739 * objc-lang.c (objc_skip_trampoline): Delete function, move
5740 implementation to objc_language::skip_trampoline.
5741 (objc_language_data): Delete skip_trampoline initializer.
5742 (objc_language::skip_trampoline): New member function with
5743 implementation from objc_skip_trampoline.
5744 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
5745 initializer.
5746 * p-lang.c (pascal_language_data): Likewise.
5747 * rust-lang.c (rust_language_data): Likewise.
5748
5749 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5750
5751 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
5752 (ada_language::demangle): New member function.
5753 * c-lang.c (c_language_data): Delete la_demangle initializer.
5754 (cplus_language_data): Delete la_demangle initializer.
5755 (cplus_language::demangle): New member function.
5756 (asm_language_data): Delete la_demangle initializer.
5757 (minimal_language_data): Delete la_demangle initializer.
5758 * d-lang.c (d_language_data): Delete la_demangle initializer.
5759 (d_language::demangle): New member function.
5760 * f-lang.c (f_language_data): Delete la_demangle initializer.
5761 (f_language::demangle): New member function.
5762 * go-lang.c (go_language_data): Delete la_demangle initializer.
5763 (go_language::demangle): New member function.
5764 * language.c (language_demangle): Update.
5765 (unk_lang_demangle): Delete.
5766 (unknown_language_data): Delete la_demangle initializer.
5767 (unknown_language::demangle): New member function.
5768 (auto_language_data): Delete la_demangle initializer.
5769 (auto_language::demangle): New member function.
5770 * language.h (language_data): Delete la_demangle field.
5771 (language_defn::demangle): New function.
5772 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
5773 * objc-lang.c (objc_language_data): Delete la_demangle
5774 initializer.
5775 (objc_language::demangle): New member function.
5776 * opencl-lang.c (opencl_language_data): Delete la_demangle
5777 initializer.
5778 * p-lang.c (pascal_language_data): Likewise.
5779 * rust-lang.c (rust_language_data): Likewise.
5780 (rust_language::demangle): New member function.
5781
5782 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5783
5784 * ada-lang.c (ada_language_data): Delete la_print_type
5785 initializer.
5786 (ada_language::print_type): New member function.
5787 * c-lang.c (c_language_data): Delete la_print_type initializer.
5788 (c_language::print_type): New member function.
5789 (cplus_language_data): Delete la_print_type initializer.
5790 (cplus_language::print_type): New member function.
5791 (asm_language_data): Delete la_print_type initializer.
5792 (asm_language::print_type): New member function.
5793 (minimal_language_data): Delete la_print_type initializer.
5794 (minimal_language::print_type): New member function.
5795 * d-lang.c (d_language_data): Delete la_print_type initializer.
5796 (d_language::print_type): New member function.
5797 * f-lang.c (f_language_data): Delete la_print_type initializer.
5798 (f_language::print_type): New member function.
5799 * go-lang.c (go_language_data): Delete la_print_type initializer.
5800 (go_language::print_type): New member function.
5801 * language.c (unk_lang_print_type): Delete.
5802 (unknown_language_data): Delete la_print_type initializer.
5803 (unknown_language::print_type): New member function.
5804 (auto_language_data): Delete la_print_type initializer.
5805 (auto_language::print_type): New member function.
5806 * language.h (language_data): Delete la_print_type field.
5807 (language_defn::print_type): New function.
5808 (LA_PRINT_TYPE): Update.
5809 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
5810 (m2_language::print_type): New member function.
5811 * objc-lang.c (objc_language_data): Delete la_print_type
5812 initializer.
5813 (objc_language::print_type): New member function.
5814 * opencl-lang.c (opencl_print_type): Delete, implementation moved
5815 to opencl_language::print_type.
5816 (opencl_language_data): Delete la_print_type initializer.
5817 (opencl_language::print_type): New member function, implementation
5818 from opencl_print_type.
5819 * p-lang.c (pascal_language_data): Delete la_print_type
5820 initializer.
5821 (pascal_language::print_type): New member function.
5822 * rust-lang.c (rust_print_type): Delete, implementation moved to
5823 rust_language::print_type.
5824 (rust_language_data): Delete la_print_type initializer.
5825 (rust_language::print_type): New member function, implementation
5826 from rust_print_type.
5827
5828 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5829
5830 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
5831 implementation moves to...
5832 (ada_language::sniff_from_mangled_name): ...here. Update return
5833 type.
5834 (ada_language_data): Delete la_sniff_from_mangled_name
5835 initializer.
5836 * c-lang.c (c_language_data): Likewise.
5837 (cplus_language_data): Likewise.
5838 (cplus_language::sniff_from_mangled_name): New member function,
5839 implementation taken from gdb_sniff_from_mangled_name.
5840 (asm_language_data): Delete la_sniff_from_mangled_name
5841 initializer.
5842 (minimal_language_data): Likewise.
5843 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
5844 implementation moves to cplus_language::sniff_from_mangled_name.
5845 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
5846 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
5847 moves to...
5848 (d_language::sniff_from_mangled_name): ...here.
5849 (d_language_data): Delete la_sniff_from_mangled_name initializer.
5850 * f-lang.c (f_language_data): Likewise.
5851 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
5852 moves to...
5853 (go_language::sniff_from_mangled_name): ...here.
5854 (go_language_data): Delete la_sniff_from_mangled_name initializer.
5855 * language.c (language_sniff_from_mangled_name): Delete.
5856 (unknown_language_data): Delete la_sniff_from_mangled_name
5857 initializer.
5858 (auto_language_data): Likewise.
5859 * language.h (language_data): Delete la_sniff_from_mangled_name
5860 field.
5861 (language_defn::sniff_from_mangled_name): New function.
5862 (language_sniff_from_mangled_name): Delete declaration.
5863 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
5864 field.
5865 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
5866 implementation moves to...
5867 (objc_language::sniff_from_mangled_name): ...here.
5868 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
5869 * opencl-lang.c (opencl_language_data): Likewise.
5870 * p-lang.c (pascal_language_data): Likewise.
5871 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
5872 implementation moves to...
5873 (rust_language::sniff_from_mangled_name): ...here.
5874 (rust_language_data): Delete la_sniff_from_mangled_name
5875 initializer.
5876 * symtab.c (symbol_find_demangled_name): Call
5877 sniff_from_mangled_name member function.
5878
5879 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5880
5881 * ada-lang.c (ada_language_data): Delete la_search_name_hash
5882 initializer.
5883 * c-lang.c (c_language_data): Likewise.
5884 (cplus_language_data): Likewise.
5885 (cplus_language::search_name_hash): New member function.
5886 (asm_language_data): Delete la_search_name_hash initializer.
5887 (minimal_language_data): Likewise.
5888 * d-lang.c (d_language_data): Likewise.
5889 * dictionary.c (default_search_name_hash): Rename to...
5890 (language_defn::search_name_hash): ...this.
5891 * f-lang.c (f_language_data): Likewise.
5892 (f_language::search_name_hash): New member function.
5893 * go-lang.c (go_language_data): Delete la_search_name_hash
5894 initializer.
5895 * language.c (unknown_language_data): Likewise.
5896 (auto_language_data): Likewise.
5897 * language.h (struct language_data): Delete la_search_name_hash
5898 field.
5899 (language_defn::search_name_hash): Declare new member function.
5900 (default_search_name_hash): Delete declaration.
5901 * m2-lang.c (m2_language_data): Delete la_search_name_hash
5902 initializer.
5903 * objc-lang.c (objc_language_data): Likewise.
5904 * opencl-lang.c (opencl_language_data): Likewise.
5905 * p-lang.c (pascal_language_data): Likewise.
5906 * rust-lang.c (rust_language_data): Likewise.
5907 * symtab.c (search_name_hash): Update call.
5908
5909 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5910
5911 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
5912 initializer.
5913 * c-lang.c (class compile_instance): Declare.
5914 (c_language_data): Delete la_get_compile_instance initializer.
5915 (c_language::get_compile_instance): New member function.
5916 (cplus_language_data): Delete la_get_compile_instance initializer.
5917 (cplus_language::get_compile_instance): New member function.
5918 (asm_language_data): Delete la_get_compile_instance initializer.
5919 (minimal_language_data): Likewise.
5920 * c-lang.h (c_get_compile_context): Update comment.
5921 (cplus_get_compile_context): Update comment.
5922 * compile/compile.c (compile_to_object): Update calls, don't rely
5923 on function pointer being NULL.
5924 * d-lang.c (d_language_data): Delete la_get_compile_instance
5925 initializer.
5926 * f-lang.c (f_language_data): Likewise.
5927 * go-lang.c (go_language_data): Likewise.
5928 * language.c (unknown_language_data): Likewise.
5929 (auto_language_data): Likewise.
5930 * language.h (language_data): Delete la_get_compile_instance field.
5931 (language_defn::get_compile_instance): New member function.
5932 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
5933 initializer.
5934 * objc-lang.c (objc_language_data): Likewise.
5935 * opencl-lang.c (opencl_language_data): Likewise.
5936 * p-lang.c (pascal_language_data): Likewise.
5937 * rust-lang.c (rust_language_data): Likewise.
5938
5939 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5940
5941 * ada-lang.c (ada_add_all_symbols): Update comment.
5942 (ada_iterate_over_symbols): Delete, move implementation to...
5943 (ada_language::iterate_over_symbols): ...here, a new member
5944 function, rewrite to use range based for loop.
5945 (ada_language_data): Delete la_iterate_over_symbols initializer.
5946 * c-lang.c (c_language_data): Likewise.
5947 (cplus_language_data): Likewise.
5948 (asm_language_data): Likewise.
5949 (minimal_language_data): Likewise.
5950 * d-lang.c (d_language_data): Likewise.
5951 * f-lang.c (f_language_data): Likewise.
5952 * go-lang.c (go_language_data): Likewise.
5953 * language.c (unknown_language_data): Likewise.
5954 (auto_language_data): Likewise.
5955 * language.h (language_data): Delete la_iterate_over_symbols field.
5956 (language_defn::iterate_over_symbols): New member function.
5957 (LA_ITERATE_OVER_SYMBOLS): Update.
5958 * linespec.c (iterate_over_all_matching_symtabs): Update.
5959 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
5960 initializer.
5961 * objc-lang.c (objc_language_data): Likewise.
5962 * opencl-lang.c (opencl_language_data): Likewise.
5963 * p-lang.c (pascal_language_data): Likewise.
5964 * rust-lang.c (rust_language_data): Likewise.
5965
5966 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5967
5968 * ada-lang.c (ada_language_data): Delete
5969 la_lookup_transparent_type initializer.
5970 * c-lang.c (c_language_data): Likewise.
5971 (cplus_language_data): Likewise.
5972 (cplus_language::lookup_transparent_type): New member function.
5973 (asm_language_data): Delete la_lookup_transparent_type
5974 initializer.
5975 (minimal_language_data): Likewise.
5976 * d-lang.c (d_language_data): Likewise.
5977 * f-lang.c (f_language_data): Likewise.
5978 * go-lang.c (go_language_data): Likewise.
5979 * language.c (unknown_language_data): Likewise.
5980 (auto_language_data): Likewise.
5981 * language.h (struct language_data): Delete
5982 la_lookup_transparent_type field.
5983 (language_defn::lookup_transparent_type): New member function.
5984 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
5985 initializer.
5986 * objc-lang.c (objc_language_data): Likewise.
5987 * opencl-lang.c (opencl_language_data): Likewise.
5988 * p-lang.c (pascal_language_data): Likewise.
5989 * rust-lang.c (rust_language_data): Likewise.
5990 * symtab.c (symbol_matches_domain): Update call.
5991
5992 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5993
5994 * ada-lang.c (ada_language_arch_info): Delete function, move
5995 implementation to...
5996 (ada_language::language_arch_info): ...here, a new member
5997 function.
5998 (ada_language_data): Delete la_language_arch_info.
5999 * c-lang.c (c_language_data): Likewise.
6000 (c_language::language_arch_info): New member function.
6001 (cplus_language_arch_info): Delete function, move
6002 implementation to...
6003 (cplus_language::language_arch_info): ...here, a new member
6004 function.
6005 (cplus_language_data): Delete la_language_arch_info.
6006 (asm_language_data): Likewise.
6007 (asm_language::language_arch_info): New member function.
6008 (minimal_language_data): Delete la_language_arch_info.
6009 (minimal_language::language_arch_info): New member function.
6010 * d-lang.c (d_language_arch_info): Delete function, move
6011 implementation to...
6012 (d_language::language_arch_info): ...here, a new member
6013 function.
6014 (d_language_data): Delete la_language_arch_info.
6015 * f-lang.c (f_language_arch_info): Delete function, move
6016 implementation to...
6017 (f_language::language_arch_info): ...here, a new member
6018 function.
6019 (f_language_data): Delete la_language_arch_info.
6020 * go-lang.c (go_language_arch_info): Delete function, move
6021 implementation to...
6022 (go_language::language_arch_info): ...here, a new member
6023 function.
6024 (go_language_data): Delete la_language_arch_info.
6025 * language.c (unknown_language_data): Likewise.
6026 (unknown_language::language_arch_info): New member function.
6027 (auto_language_data): Delete la_language_arch_info.
6028 (auto_language::language_arch_info): New member function.
6029 (language_gdbarch_post_init): Update call to
6030 la_language_arch_info.
6031 * language.h (language_data): Delete la_language_arch_info
6032 function pointer.
6033 (language_defn::language_arch_info): New function.
6034 * m2-lang.c (m2_language_arch_info): Delete function, move
6035 implementation to...
6036 (m2_language::language_arch_info): ...here, a new member
6037 function.
6038 (m2_language_data): Delete la_language_arch_info.
6039 * objc-lang.c (objc_language_arch_info): Delete function, move
6040 implementation to...
6041 (objc_language::language_arch_info): ...here, a new member
6042 function.
6043 (objc_language_data): Delete la_language_arch_info.
6044 * opencl-lang.c (opencl_language_arch_info): Delete function, move
6045 implementation to...
6046 (opencl_language::language_arch_info): ...here, a new member
6047 function.
6048 (opencl_language_data): Delete la_language_arch_info.
6049 * p-lang.c (pascal_language_arch_info): Delete function, move
6050 implementation to...
6051 (pascal_language::language_arch_info): ...here, a new member
6052 function.
6053 (pascal_language_data): Delete la_language_arch_info.
6054 * rust-lang.c (rust_language_arch_info): Delete function, move
6055 implementation to...
6056 (rust_language::language_arch_info): ...here, a new member
6057 function.
6058 (rust_language_data): Delete la_language_arch_info.
6059
6060 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6061
6062 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
6063 initializer.
6064 * c-lang.c (c_language_data): Likewise.
6065 (cplus_language_data): Likewise.
6066 (cplus_language::pass_by_reference_info): New method.
6067 (asm_language_data): Delete la_pass_by_reference initializer.
6068 (minimal_language_data): Likewise.
6069 * cp-abi.c (cp_pass_by_reference): Remove use of
6070 default_pass_by_reference.
6071 * d-lang.c (d_language_data): Likewise.
6072 * f-lang.c (f_language_data): Likewise.
6073 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
6074 default_pass_by_reference.
6075 * go-lang.c (go_language_data): Likewise.
6076 * language.c (language_pass_by_reference): Update.
6077 (default_pass_by_reference): Delete.
6078 (unknown_language_data): Delete la_pass_by_reference
6079 initializer.
6080 (auto_language_data): Likewise.
6081 * language.h (struct language_data): Delete la_pass_by_reference
6082 field.
6083 (language_defn::pass_by_reference_info): New member function.
6084 (default_pass_by_reference): Delete declaration.
6085 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
6086 initializer.
6087 * objc-lang.c (objc_language_data): Likewise.
6088 * opencl-lang.c (opencl_language_data): Likewise.
6089 * p-lang.c (pascal_language_data): Likewise.
6090 * rust-lang.c (rust_language_data): Likewise.
6091
6092 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6093
6094 * ada-lang.c (ada_read_var_value): Delete function, move
6095 implementation to...
6096 (ada_language::read_var_value): ...here.
6097 (ada_language_data): Delete la_read_var_value initializer.
6098 * c-lang.c (c_language_data): Likewise.
6099 (cplus_language_data): Likewise.
6100 (minimal_language_data): Likewise.
6101 * d-lang.c (d_language_data): Likewise.
6102 * f-lang.c (f_language_data): Likewise.
6103 * findvar.c (default_read_var_value): Rename to...
6104 (language_defn::read_var_value): ...this.
6105 * findvar.c (read_var_value): Update header comment, and change to
6106 call member function instead of function pointer.
6107 * go-lang.c (go_language_data): Likewise.
6108 * language.c (unknown_language_data): Delete la_read_var_value
6109 initializer.
6110 (auto_language_data): Likewise.
6111 * language.h (struct language_data): Delete la_read_var_value
6112 field.
6113 (language_defn::read_var_value): New member function.
6114 (default_read_var_value): Delete declaration.
6115 * m2-lang.c (m2_language_data): Delete la_read_var_value
6116 initializer.
6117 * objc-lang.c (objc_language_data): Likewise.
6118 * opencl-lang.c (opencl_language_data): Likewise.
6119 * p-lang.c (pascal_language_data): Likewise.
6120 * rust-lang.c (rust_language_data): Likewise.
6121 * value.h (default_read_var_value): Delete declaration.
6122
6123 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6124
6125 * ada-lang.c (ada_print_array_index): Delete function, move
6126 implementation to...
6127 (ada_language::print_array_index): ...here.
6128 (ada_language_data): Delete la_print_array_index initializer.
6129 * c-lang.c (c_language_data): Likewise.
6130 (cplus_language_data): Likewise.
6131 (minimal_language_data): Likewise.
6132 * d-lang.c (d_language_data): Likewise.
6133 * f-lang.c (f_language_data): Likewise.
6134 * go-lang.c (go_language_data): Likewise.
6135 * language.c (default_print_array_index): Delete function, move
6136 implementation to...
6137 (language_defn::print_array_index): ...here.
6138 (unknown_language_data): Delete la_print_array_index initializer.
6139 (auto_language_data): Likewise.
6140 * language.h (struct language_data): Delete la_print_array_index
6141 field.
6142 (language_defn::print_array_index): New member function.
6143 (LA_PRINT_ARRAY_INDEX): Update.
6144 (default_print_array_index): Delete declaration.
6145 * m2-lang.c (m2_language_data): Delete la_print_array_index
6146 initializer.
6147 * objc-lang.c (objc_language_data): Likewise.
6148 * opencl-lang.c (opencl_language_data): Likewise.
6149 * p-lang.c (pascal_language_data): Likewise.
6150 * rust-lang.c (rust_language_data): Likewise.
6151
6152 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6153
6154 * gdb/ada-lang.c (ada_language_defn): Convert to...
6155 (ada_language_data): ...this.
6156 (class ada_language): New class.
6157 (ada_language_defn): New static global.
6158 * gdb/c-lang.c (c_language_defn): Convert to...
6159 (c_language_data): ...this.
6160 (class c_language): New class.
6161 (c_language_defn): New static global.
6162 (cplus_language_defn): Convert to...
6163 (cplus_language_data): ...this.
6164 (class cplus_language): New class.
6165 (cplus_language_defn): New static global.
6166 (asm_language_defn): Convert to...
6167 (asm_language_data): ...this.
6168 (class asm_language): New class.
6169 (asm_language_defn): New static global.
6170 (minimal_language_defn): Convert to...
6171 (minimal_language_data): ...this.
6172 (class minimal_language): New class.
6173 (minimal_language_defn): New static global.
6174 * gdb/d-lang.c (d_language_defn): Convert to...
6175 (d_language_data): ...this.
6176 (class d_language): New class.
6177 (d_language_defn): New static global.
6178 * gdb/f-lang.c (f_language_defn): Convert to...
6179 (f_language_data): ...this.
6180 (class f_language): New class.
6181 (f_language_defn): New static global.
6182 * gdb/go-lang.c (go_language_defn): Convert to...
6183 (go_language_data): ...this.
6184 (class go_language): New class.
6185 (go_language_defn): New static global.
6186 * gdb/language.c (unknown_language_defn): Remove declaration.
6187 (current_language): Initialize to nullptr, real initialization is
6188 moved to _initialize_language.
6189 (languages): Delete global.
6190 (language_defn::languages): Define.
6191 (set_language_command): Use language_defn::languages.
6192 (set_language): Likewise.
6193 (range_error): Likewise.
6194 (language_enum): Likewise.
6195 (language_def): Likewise.
6196 (add_set_language_command): Use language_def::languages for the
6197 language list, and language_def to lookup language pointers.
6198 (skip_language_trampoline): Use language_defn::languages.
6199 (unknown_language_defn): Convert to...
6200 (unknown_language_data): ...this.
6201 (class unknown_language): New class.
6202 (unknown_language_defn): New static global.
6203 (auto_language_defn): Convert to...
6204 (auto_language_data): ...this.
6205 (class auto_language): New class.
6206 (auto_language_defn): New static global.
6207 (language_gdbarch_post_init): Use language_defn::languages.
6208 (_initialize_language): Initialize current_language.
6209 * gdb/language.h (struct language_defn): Rename to...
6210 (struct language_data): ...this.
6211 (struct language_defn): New.
6212 (auto_language_defn): Delete.
6213 (unknown_language_defn): Delete.
6214 (minimal_language_defn): Delete.
6215 (ada_language_defn): Delete.
6216 (asm_language_defn): Delete.
6217 (c_language_defn): Delete.
6218 (cplus_language_defn): Delete.
6219 (d_language_defn): Delete.
6220 (f_language_defn): Delete.
6221 (go_language_defn): Delete.
6222 (m2_language_defn): Delete.
6223 (objc_language_defn): Delete.
6224 (opencl_language_defn): Delete.
6225 (pascal_language_defn): Delete.
6226 (rust_language_defn): Delete.
6227 * gdb/m2-lang.c (m2_language_defn): Convert to...
6228 (m2_language_data): ...this.
6229 (class m2_language): New class.
6230 (m2_language_defn): New static global.
6231 * gdb/objc-lang.c (objc_language_defn): Convert to...
6232 (objc_language_data): ...this.
6233 (class objc_language): New class.
6234 (objc_language_defn): New static global.
6235 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
6236 (opencl_language_data): ...this.
6237 (class opencl_language): New class.
6238 (opencl_language_defn): New static global.
6239 * gdb/p-lang.c (pascal_language_defn): Convert to...
6240 (pascal_language_data): ...this.
6241 (class pascal_language): New class.
6242 (pascal_language_defn): New static global.
6243 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
6244 language pointer, update comment format.
6245 * gdb/rust-lang.c (rust_language_defn): Convert to...
6246 (rust_language_data): ...this.
6247 (class rust_language): New class.
6248 (rust_language_defn): New static global.
6249
6250 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
6251
6252 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
6253 member variable.
6254 <m_stmt_at_address>: New member variable.
6255 (lnp_state_machine::record_line): Don't record some lines, update
6256 tracking of is_stmt at the same address.
6257 (lnp_state_machine::lnp_state_machine): Initialise new member
6258 variables.
6259
6260 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
6261
6262 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
6263 "-include gnu-nat-mig.h".
6264 * gnu-nat-mig.h: New file.
6265 * gnu-nat.c: Include "gnu-nat-mig.h".
6266 (exc_server, msg_reply_server, notify_server,
6267 process_reply_server): Remove declarations.
6268
6269 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6270
6271 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
6272 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
6273 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
6274 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
6275 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
6276 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
6277 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
6278 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
6279 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
6280 to gnu_nat_target class.
6281 * gnu-nat.c: Likewise.
6282 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
6283 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
6284 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
6285 object.
6286 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
6287 instead of `gnu_target'.
6288
6289 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6290
6291 * i386-gnu-tdep.c: Include "gdbcore.h"
6292 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
6293 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
6294 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
6295 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
6296 i386_gnu_sigcontext_addr): New functions
6297 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
6298 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
6299 tdep.
6300
6301 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6302
6303 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
6304 before fork_inferior call. Avoid calling it if target_is_pushed returns
6305 true.
6306
6307 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6308
6309 * gnu-nat.h (gnu_target): New variable declaration.
6310 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
6311 gnu_target.
6312 * gnu-nat.c (gnu_target): New variable.
6313 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
6314 add_thread_silent, and add_thread calls.
6315 (gnu_nat_target::create_inferior): Pass gnu_target to
6316 add_thread_silent, thread_change_ptid call.
6317 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
6318 call.
6319
6320 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6321
6322 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
6323 (gnu_nat_target::find_memory_regions): Remove unused
6324 `old_address' variable.
6325
6326 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6327
6328 * gnu-nat.c: Include "gdbarch.h".
6329
6330 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6331
6332 * reply_mig_hack.awk (Error return): Cast function through
6333 void *, to bypass compiler function call check.
6334
6335 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6336
6337 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
6338 $(srcdir)/reply_mig_hack.awk.
6339
6340 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6341
6342 * gnu-nat.h (gnu_debug_flag): Set type to bool.
6343
6344 2020-05-30 Jonny Grant <jg@jguk.org>
6345
6346 * configure.ac (ACX_BUGURL): change bug URL to https.
6347
6348 2020-05-30 Pedro Alves <palves@redhat.com>
6349
6350 * cp-support.c (replace_typedefs_template): New.
6351 (replace_typedefs_qualified_name): Handle
6352 DEMANGLE_COMPONENT_TEMPLATE.
6353
6354 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
6355
6356 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
6357 dwarf2/index-cache.h, dwarf2/index-write.c,
6358 dwarf2/index-write.h, dwarf2/line-header.c,
6359 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
6360 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
6361 variables and fields from `dwarf2_per_objfile` to just
6362 `per_objfile` throughout.
6363
6364 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
6365
6366 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6367 <push_dwarf_reg_entry_value>: Add comment.
6368
6369 2020-05-28 Kevin Buettner <kevinb@redhat.com>
6370 Keith Seitz <keiths@redhat.com>
6371
6372 * python/python.c (do_start_initialization): Call PyEval_SaveThread
6373 instead of PyEval_ReleaseLock.
6374 (class gdbpy_gil): Move to earlier in file.
6375 (finalize_python): Set gdb_python_initialized.
6376 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
6377 when not initialized.
6378
6379 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
6380
6381 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6382 <push_dwarf_reg_entry_value>: Remove assert. Override
6383 per_objfile with caller_per_objfile.
6384
6385 2020-05-28 Tom de Vries <tdevries@suse.de>
6386
6387 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
6388 PR gold/15646 workaround to symbol kind "type".
6389
6390 2020-05-27 Tom Tromey <tromey@adacore.com>
6391
6392 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
6393
6394 2020-05-27 Tom Tromey <tromey@adacore.com>
6395
6396 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
6397 Use htab_find_with_hash.
6398 <add_abbrev>: Remove "abbrev_number" parameter.
6399 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
6400 "abbrev_number" parameter. Use htab_find_slot_with_hash.
6401 (hash_abbrev): Add comment.
6402 (abbrev_table::lookup_abbrev): Move to header file.
6403 (abbrev_table::read): Update.
6404
6405 2020-05-27 Tom Tromey <tromey@adacore.com>
6406
6407 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
6408 method.
6409 <canonical_name>: New member.
6410 <raw_name>: Rename from "name".
6411 (partial_die_info): Initialize canonical_name.
6412 (scan_partial_symbols): Check raw_name.
6413 (partial_die_parent_scope, partial_die_full_name)
6414 (add_partial_symbol, add_partial_subprogram)
6415 (add_partial_enumeration, load_partial_dies): Use "name" method.
6416 (partial_die_info::name): New method.
6417 (partial_die_info::read, guess_partial_die_structure_name)
6418 (partial_die_info::fixup): Update.
6419
6420 2020-05-27 Tom Tromey <tromey@adacore.com>
6421
6422 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
6423 <get_ref_die_offset>: Inline.
6424 <get_ref_die_offset_complaint>: New method.
6425 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
6426 (attribute::get_ref_die_offset_complaint): Rename from
6427 get_ref_die_offset. Just issue complaint.
6428
6429 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
6430
6431 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
6432
6433 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
6434
6435 * exec.c (exec_file_attach): Use errno value of first openp failure.
6436
6437 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
6438
6439 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
6440 Don't close thread handle.
6441
6442 2020-05-27 Tom Tromey <tom@tromey.com>
6443 Simon Marchi <simon.marchi@efficios.com>
6444
6445 * objfiles.h (struct objfile) <partial_symtabs>: Now a
6446 shared_ptr.
6447 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
6448 member.
6449 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
6450 dwarf2_per_bfd_objfile_data_key>: New globals.
6451 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
6452 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
6453 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
6454 shared.
6455 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
6456 short-circuit when sharing.
6457 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
6458 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
6459
6460 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6461
6462 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
6463 to...
6464 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
6465 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
6466
6467 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6468
6469 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
6470 build_name_components, find_name_components_bounds>:
6471 Add per_objfile parameter.
6472 (struct mapped_index) <symbol_name_at>: Likewise.
6473 (struct mapped_debug_names): Remove constructor.
6474 <dwarf2_per_objfile>: Remove field.
6475 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
6476 (mapped_index_base::find_name_components_bounds,
6477 mapped_index_base::build_name_components,
6478 dw2_expand_symtabs_matching_symbol): Likewise.
6479 (class mock_mapped_index) <symbol_name_at>: Likewise.
6480 (check_match): Likewise.
6481 (check_find_bounds_finds): Likewise.
6482 (test_mapped_index_find_name_component_bounds): Update.
6483 (CHECK_MATCH): Update.
6484 (dw2_expand_symtabs_matching): Update.
6485 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
6486 per_objfile parameter.
6487 <find_vec_in_debug_names>: Likewise.
6488 <m_per_objfile>: New field.
6489 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
6490 parameter.
6491 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
6492 (dw2_debug_names_iterator::next): Update.
6493 (dw2_debug_names_lookup_symbol): Update.
6494 (dw2_debug_names_expand_symtabs_for_function): Update.
6495 (dw2_debug_names_map_matching_symbols): Update.
6496 (dw2_debug_names_expand_symtabs_matching): Update.
6497 (dwarf2_read_debug_names): Update.
6498
6499 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6500
6501 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
6502 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
6503 move to dwarf2_per_objfile.
6504 <read_in_chain>: Remove.
6505 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
6506 remove_all_cus, age_comp_units>: New methods.
6507 <m_dwarf2_cus>: New member.
6508 (struct dwarf2_per_cu_data) <cu>: Remove.
6509 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
6510 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
6511 moved to methods of dwarf2_per_objfile.
6512 (dwarf2_clear_marks): Remove.
6513 (dwarf2_queue_item::~dwarf2_queue_item): Update.
6514 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
6515 (dwarf2_per_bfd::free_cached_comp_units): Remove.
6516 (dwarf2_per_objfile::remove_all_cus): New.
6517 (class free_cached_comp_units) <~free_cached_comp_units>:
6518 Update.
6519 (load_cu): Update.
6520 (dw2_do_instantiate_symtab): Adjust.
6521 (fill_in_sig_entry_from_dwo_entry): Adjust.
6522 (cutu_reader::init_tu_and_read_dwo_dies): Update.
6523 (cutu_reader::cutu_reader): Likewise.
6524 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
6525 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
6526 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
6527 and dwarf2_per_objfile::age_comp_units.
6528 (load_partial_comp_unit): Update.
6529 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
6530 (process_queue): Likewise.
6531 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
6532 backlink.
6533 (dwarf2_read_addr_index): Likewise.
6534 (follow_die_offset): Likewise.
6535 (dwarf2_fetch_die_loc_sect_off): Likewise.
6536 (dwarf2_fetch_constant_bytes): Likewise.
6537 (dwarf2_fetch_die_type_sect_off): Likewise.
6538 (follow_die_sig_1): Likewise.
6539 (load_full_type_unit): Likewise.
6540 (read_signatured_type): Likewise.
6541 (dwarf2_cu::dwarf2_cu): Don't set cu field.
6542 (dwarf2_cu::~dwarf2_cu): Remove.
6543 (dwarf2_per_objfile::get_cu): New.
6544 (dwarf2_per_objfile::set_cu): New.
6545 (age_cached_comp_units): Rename to...
6546 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
6547 to std::unordered_map.
6548 (free_one_cached_comp_unit): Rename to...
6549 (dwarf2_per_objfile::remove_cu): ... this. Adjust
6550 to std::unordered_map.
6551 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
6552 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
6553 a dwarf2_per_objfile in data.
6554 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
6555 (dwarf2_clear_marks): Remove.
6556
6557 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6558
6559 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
6560 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
6561 (init_tu_and_read_dwo_dies): Likewise.
6562 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
6563 (cutu_reader::cutu_reader): Likewise.
6564 (load_partial_comp_unit): Likewise.
6565 (process_psymtab_comp_unit): Update.
6566 (build_type_psymtabs_1): Update.
6567 (process_skeletonless_type_unit): Update.
6568 (load_full_comp_unit): Update.
6569 (find_partial_die): Update.
6570 (dwarf2_read_addr_index): Update.
6571 (read_signatured_type): Update.
6572
6573 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6574
6575 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
6576 m_header_read_in>: New fields.
6577 <get_header>: New method.
6578 * dwarf2/read.c (per_cu_header_read_in): Remove.
6579 (dwarf2_per_cu_data::get_header): New.
6580 (dwarf2_per_cu_data::addr_size): Update.
6581 (dwarf2_per_cu_data::offset_size): Update.
6582 (dwarf2_per_cu_data::ref_addr_size): Update.
6583
6584 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6585
6586 * dwarf2/read.c (load_cu): Return dwarf2_cu.
6587 (dw2_do_instantiate_symtab): Update.
6588 (queue_and_load_all_dwo_tus): Change parameter from
6589 dwarf2_per_cu_data to dwarf2_cu.
6590 (dwarf2_fetch_die_loc_sect_off): Update.
6591 (dwarf2_fetch_constant_bytes): Update.
6592 (dwarf2_fetch_die_type_sect_off): Update.
6593
6594 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6595
6596 * dwarf2/read.c (process_full_comp_unit,
6597 process_full_type_unit): Remove per_cu, per_objfile paramters.
6598 Add dwarf2_cu parameter.
6599 (process_queue): Update.
6600
6601 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6602
6603 * dwarf2/read.c (create_cu_from_index_list): Replace
6604 dwarf2_per_objfile parameter with dwarf2_per_bfd.
6605 (create_cus_from_index_list): Likewise.
6606 (create_cus_from_index): Likewise.
6607 (create_signatured_type_table_from_index): Likewise.
6608 (create_cus_from_debug_names_list): Likewise.
6609 (create_cus_from_debug_names): Likewise.
6610 (dwarf2_read_gdb_index): Update.
6611 (dwarf2_read_debug_names): Update.
6612
6613 2020-05-27 Tom Tromey <tom@tromey.com>
6614 Simon Marchi <simon.marchi@efficios.com>
6615
6616 * dwarf2/read.h (struct dwarf2_per_objfile)
6617 <get_type_for_signatured_type, set_type_for_signatured_type>:
6618 New methods.
6619 <m_type_map>: New member.
6620 (struct signatured_type) <type>: Remove.
6621 * dwarf2/read.c
6622 (dwarf2_per_objfile::get_type_for_signatured_type,
6623 dwarf2_per_objfile::set_type_for_signatured_type): New.
6624 (get_signatured_type): Use new methods.
6625
6626 2020-05-27 Tom Tromey <tom@tromey.com>
6627 Simon Marchi <simon.marchi@efficios.com>
6628
6629 * dwarf2/read.h (struct type_unit_group_unshareable): New.
6630 (struct dwarf2_per_objfile) <type_units>: New member.
6631 <get_type_unit_group_unshareable>: New method.
6632 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
6633 num_symtabs, symtabs>: Remove; move to
6634 type_unit_group_unshareable.
6635 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
6636 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
6637 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
6638
6639 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6640
6641 * dwarf2/read.h (struct dwarf2_per_cu_data):
6642 <dwarf2_per_objfile>: Remove.
6643 * dwarf2/read.c (create_cu_from_index_list): Don't assign
6644 dwarf2_per_objfile.
6645 (create_signatured_type_table_from_index): Likewise.
6646 (create_signatured_type_table_from_debug_names): Likewise.
6647 (create_debug_type_hash_table): Likewise.
6648 (fill_in_sig_entry_from_dwo_entry): Likewise.
6649 (create_type_unit_group): Likewise.
6650 (read_comp_units_from_section): Likewise.
6651 (create_cus_hash_table): Likewise.
6652
6653 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6654
6655 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
6656 dwarf2_per_cu_data::dwarf2_per_objfile.
6657 (compute_compunit_symtab_includes): Likewise.
6658 (dwarf2_cu::start_symtab): Likewise.
6659
6660 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6661
6662 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
6663 parameter.
6664 * dwarf2/read.c (get_die_type_at_offset): Likewise.
6665 (read_namespace_alias): Update.
6666 (lookup_die_type): Update.
6667 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
6668 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
6669 Update.
6670 (disassemble_dwarf_expression): Update.
6671
6672 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6673
6674 * dwarf2/read.h (struct dwarf2_queue_item): Add
6675 dwarf2_per_objfile parameter, assign new parameter.
6676 <per_objfile>: New field.
6677 * dwarf2/read.c (free_one_cached_comp_unit): Add
6678 dwarf2_per_objfile parameter.
6679 (queue_comp_unit): Likewise.
6680 (dw2_do_instantiate_symtab): Update.
6681 (process_psymtab_comp_unit): Update.
6682 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
6683 (process_imported_unit_die): Update.
6684 (queue_and_load_dwo_tu): Update.
6685 (follow_die_offset): Update.
6686 (follow_die_sig_1): Update.
6687
6688 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6689
6690 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
6691 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
6692 (read_call_site_scope): Assign per_objfile.
6693 (dwarf2_per_cu_data::objfile): Remove.
6694 * gdbtypes.h (struct call_site) <per_objfile>: New member.
6695 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
6696 dwarf2_per_objfile parameter.
6697 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
6698 dwarf2_per_objfile parameter.
6699 (dwarf_expr_reg_to_entry_parameter): Add output
6700 dwarf2_per_objfile parameter.
6701 (locexpr_get_frame_base): Update.
6702 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
6703 <push_dwarf_reg_entry_value>: Update.
6704 <call_site_to_target_addr>: Update.
6705 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
6706 parameter.
6707 (value_of_dwarf_reg_entry): Update.
6708 (rw_pieced_value): Update.
6709 (indirect_synthetic_pointer): Update.
6710 (dwarf2_evaluate_property): Update.
6711 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
6712 parameter.
6713 (locexpr_read_variable): Update.
6714 (locexpr_get_symbol_read_needs): Update.
6715 (loclist_read_variable): Update.
6716
6717 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6718
6719 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
6720 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
6721 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
6722 parameter.
6723 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
6724 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
6725 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
6726 parameter.
6727 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
6728 sect_variable_value): Add dwarf2_per_objfile parameter.
6729 (class dwarf_evaluate_loc_desc) <dwarf_call,
6730 dwarf_variable_value>: Update.
6731 (fetch_const_value_from_synthetic_pointer): Add
6732 dwarf2_per_objfile parameter.
6733 (fetch_const_value_from_synthetic_pointer): Update.
6734 (coerced_pieced_ref): Update.
6735 (class symbol_needs_eval_context) <dwarf_call,
6736 dwarf_variable_value>: Update.
6737 (dwarf2_compile_expr_to_ax): Update.
6738
6739 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6740
6741 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
6742 parameter.
6743 (dwarf2_evaluate_loc_desc_full): Update.
6744
6745 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6746
6747 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
6748 parameter.
6749 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
6750 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
6751 dwarf2_per_objfile parameter.
6752 (decode_debug_loc_dwo_addresses): Likewise.
6753 (dwarf2_find_location_expression): Update.
6754 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
6755 (locexpr_describe_location_piece): Add dwarf2_per_objfile
6756 parameter.
6757 (disassemble_dwarf_expression): Add dwarf2_per_objfile
6758 parameter.
6759 (locexpr_describe_location_1): Likewise.
6760 (locexpr_describe_location): Update.
6761
6762 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6763
6764 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
6765 Remove.
6766 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
6767 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
6768 (dwarf2_compile_property_to_c): Update.
6769 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
6770 use text offset from objfile.
6771 (locexpr_tracepoint_var_ref): Update.
6772 (locexpr_generate_c_location): Update.
6773 (loclist_describe_location): Update.
6774 (loclist_tracepoint_var_ref): Update.
6775 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
6776 dwarf2_per_objfile parameter.
6777 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
6778 use text offset from objfile.
6779 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
6780
6781 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6782
6783 * dwarf2/expr.h (struct dwarf_expr_context)
6784 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
6785 <offset>: Remove.
6786 <per_objfile>: New member.
6787 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
6788 dwarf2_per_objfile parameter. Don't set offset, set
6789 per_objfile.
6790 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
6791 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
6792 a dwarf2_per_objfile object instead of an offset.
6793 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
6794 constructor.
6795 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
6796 to dwarf2_expr_executor constructor. Don't set offset.
6797 (dwarf2_fetch_cfa_info): Update.
6798 (struct dwarf2_frame_cache) <text_offset>: Remove.
6799 <per_objfile>: New field.
6800 (dwarf2_frame_cache): Update.
6801 (dwarf2_frame_prev_register): Update.
6802 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6803 <dwarf_evaluate_loc_desc>: Add constructor.
6804 (dwarf2_evaluate_loc_desc_full): Update.
6805 (dwarf2_locexpr_baton_eval): Update.
6806 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
6807 Add constructor.
6808 (dwarf2_loc_desc_get_symbol_read_needs): Update.
6809
6810 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6811
6812 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
6813 addr_sized_int_type>: Move to dwarf2_cu.
6814 <int_type>: Move to dwarf2_per_objfile.
6815 (struct dwarf2_per_objfile) <int_type>: Move here.
6816 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
6817 addr_sized_int_type>: Move here.
6818 (read_func_scope): Update.
6819 (read_array_type): Update.
6820 (read_tag_string_type): Update.
6821 (attr_to_dynamic_prop): Update.
6822 (dwarf2_per_cu_data::int_type): Rename to...
6823 (dwarf2_per_objfile::int_type): ... this.
6824 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
6825 (dwarf2_cu::addr_sized_int_type): ... this.
6826 (read_subrange_type): Update.
6827 (dwarf2_per_cu_data::addr_type): Rename to...
6828 (dwarf2_cu::addr_type): ... this.
6829 (set_die_type): Update.
6830
6831 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6832
6833 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
6834 data through per_cu->cu.
6835
6836 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6837
6838 * dwarf2/read.c (lookup_dwo_comp_unit): Change
6839 dwarf2_per_cu_data parameter fo dwarf2_cu.
6840 (lookup_dwo_type_unit): Likewise.
6841 (read_cutu_die_from_dwo): Likewise.
6842 (lookup_dwo_unit): Likewise.
6843 (open_and_init_dwo_file): Likewise.
6844 (lookup_dwo_cutu): Likewise.
6845 (lookup_dwo_comp_unit): Likewise.
6846 (lookup_dwo_type_unit): Likewise.
6847 (cutu_reader::init_tu_and_read_dwo_dies): Update.
6848 (cutu_reader::cutu_reader): Update.
6849
6850 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6851
6852 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
6853 parameter.
6854 (process_full_type_unit): Likewise.
6855 (process_queue): Update.
6856
6857 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6858
6859 * dwarf2/read.c (recursively_compute_inclusions): Add
6860 dwarf2_per_objfile parameter.
6861 (compute_compunit_symtab_includes): Likewise.
6862 (process_cu_includes): Update.
6863
6864 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6865
6866 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
6867 parameter.
6868 (create_type_unit_group): Update.
6869 (process_psymtab_comp_unit_reader): Update.
6870 (build_type_psymtabs_reader): Update.
6871
6872 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6873
6874 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
6875 object through m_this_cu->cu.
6876
6877 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6878
6879 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
6880 the info parameter.
6881 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
6882
6883 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6884
6885 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
6886 per_objfile parameter.
6887 (load_full_type_unit): Add per_objfile parameter.
6888 (read_signatured_type): Likewise.
6889 (load_full_comp_unit): Likewise.
6890 (load_cu): Likewise.
6891 (dw2_do_instantiate_symtab): Likewise.
6892 (dw2_get_file_names): Likewise.
6893 (dw2_map_symtabs_matching_filename): Update.
6894 (dw_expand_symtabs_matching_file_matcher): Update.
6895 (dw2_map_symbol_filenames): Update.
6896 (process_psymtab_comp_unit): Add per_objfile parameter.
6897 (build_type_psymtabs_1): Update.
6898 (process_skeletonless_type_unit): Update.
6899 (dwarf2_build_psymtabs_hard): Update.
6900 (load_partial_comp_unit): Add per_objfile parameter.
6901 (scan_partial_symbols): Update.
6902 (load_full_comp_unit): Add per_objfile parameter.
6903 (process_imported_unit_die): Update.
6904 (create_cus_hash_table): Update.
6905 (find_partial_die): Update.
6906 (dwarf2_read_addr_index): Update.
6907 (follow_die_offset): Update.
6908 (dwarf2_fetch_die_loc_sect_off): Update.
6909 (dwarf2_fetch_constant_bytes): Update.
6910 (dwarf2_fetch_die_type_sect_off): Update.
6911 (follow_die_sig_1): Update.
6912 (load_full_type_unit): Add per_objfile parameter.
6913 (read_signatured_type): Likewise.
6914
6915 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6916
6917 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
6918 of objfile_name.
6919
6920 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6921
6922 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
6923 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
6924 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
6925 field.
6926 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
6927 (create_cus_from_index): Update.
6928 (dwarf2_read_gdb_index): Update.
6929 (create_cus_from_debug_names): Update.
6930 (dwarf2_read_debug_names): Update.
6931 (get_abbrev_section_for_cu): Update.
6932 (create_all_comp_units): Update.
6933 (read_attribute_value): Update.
6934 (get_debug_line_section): Update.
6935 * dwarf2/index-cache.c (index_cache::store): Update.
6936 * dwarf2/index-write.c (save_gdb_index_command): Update.
6937 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
6938
6939 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6940
6941 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
6942 member.
6943 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
6944 dwarf2_per_cu_data::per_bfd.
6945 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
6946 (create_type_unit_group): Likewise.
6947 (queue_comp_unit): Remove reference to
6948 per_cu->dwarf2_per_objfile.
6949 (maybe_queue_comp_unit): Likewise.
6950 (fill_in_sig_entry_from_dwo_entry): Assign new field.
6951 (create_cus_hash_table): Assign new field.
6952
6953 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6954
6955 * dwarf2/read.c: Replace
6956 dwarf2_cu->per_cu->dwarf2_per_objfile references with
6957 dwarf2_cu->per_objfile throughout.
6958
6959 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6960
6961 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
6962 parameter, don't use per_cu->dwarf2_per_objfile.
6963 (dw2_instantiate_symtab): Likewise.
6964 (dw2_find_last_source_symtab): Update.
6965 (dw2_map_expand_apply): Update.
6966 (dw2_lookup_symbol): Update.
6967 (dw2_expand_symtabs_for_function): Update.
6968 (dw2_expand_all_symtabs): Update.
6969 (dw2_expand_symtabs_with_fullname): Update.
6970 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
6971 don't use per_cu->dwarf2_per_objfile.
6972 (dw2_expand_marked_cus): Update.
6973 (dw2_find_pc_sect_compunit_symtab): Update.
6974 (dw2_debug_names_lookup_symbol): Update.
6975 (dw2_debug_names_expand_symtabs_for_function): Update.
6976 (dw2_debug_names_map_matching_symbols): Update.
6977 (dwarf2_psymtab::expand_psymtab): Update.
6978
6979 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6980
6981 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
6982 <per_objfile>: New member.
6983 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
6984 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
6985 call to dwarf2_cu.
6986 (cutu_reader::cutu_reader): Update.
6987 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
6988
6989 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6990
6991 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
6992 struct dwarf2_per_objfile.
6993 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
6994 dwarf2_per_bfd.
6995 * dwarf2/read.c (set_die_type): Update.
6996 (get_die_type_at_offset): Update.
6997
6998 2020-05-27 Tom Tromey <tom@tromey.com>
6999 Simon Marchi <simon.marchi@efficios.com>
7000
7001 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
7002 method.
7003 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
7004 get_symtab, set_symtab>: New methods.
7005 <m_symtabs>: New field.
7006 (struct dwarf2_psymtab): Derive from partial_symtab.
7007 <readin_p, get_compunit_symtab>: Declare methods.
7008 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
7009 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
7010 New methods.
7011 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
7012 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
7013 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
7014 (dw2_symtab_iter_next, dw2_print_stats)
7015 (dw2_expand_symtabs_with_fullname)
7016 (dw2_expand_symtabs_matching_one)
7017 (dw_expand_symtabs_matching_file_matcher)
7018 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
7019 (dw2_debug_names_iterator::next)
7020 (dw2_debug_names_map_matching_symbols)
7021 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
7022 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
7023 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
7024 New methods.
7025 (get_compunit_symtab, process_full_comp_unit)
7026 (process_full_type_unit): Update.
7027 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
7028
7029 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7030
7031 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
7032 then introduce a new dwarf2_per_objfile type.
7033 <read_line_string>: Move to the new dwarf2_per_objfile type.
7034 <objfile>: Likewise.
7035 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
7036 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
7037 dwarf2_per_objfile->per_bfd.
7038 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
7039 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
7040 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
7041 (dwarf2_per_bfd::free_cached_comp_units): ... this.
7042 (dwarf2_has_info): Allocate dwarf2_per_bfd.
7043 (dwarf2_per_objfile::locate_sections): Rename to...
7044 (dwarf2_per_bfd::locate_sections): ... this.
7045 (dwarf2_per_objfile::get_cutu): Rename to...
7046 (dwarf2_per_bfd::get_cutu): ... this.
7047 (dwarf2_per_objfile::get_cu): Rename to...
7048 (dwarf2_per_bfd::get_cu): ... this.
7049 (dwarf2_per_objfile::get_tu): Rename to...
7050 (dwarf2_per_bfd::get_tu): ... this.
7051 (dwarf2_per_objfile::allocate_per_cu): Rename to...
7052 (dwarf2_per_bfd::allocate_per_cu): ... this.
7053 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
7054 (dwarf2_per_bfd::allocate_signatured_type): ... this.
7055 (get_gdb_index_contents_ftype): Change parameter from
7056 dwarf2_per_objfile to dwarf2_per_bfd.
7057 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
7058 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
7059
7060 2020-05-27 Tom Tromey <tom@tromey.com>
7061 Simon Marchi <simon.marchi@efficios.com>
7062
7063 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
7064 (allocate_piece_closure): Set "per_objfile" member.
7065 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
7066 (locexpr_describe_location, loclist_describe_location): Use new
7067 member.
7068 * dwarf2/read.c (read_call_site_scope)
7069 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
7070 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
7071 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
7072 handle_data_member_location): Set per_objfile member.
7073 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
7074 member.
7075 (struct dwarf2_loclist_baton) <per_objfile>: New member.
7076
7077 2020-05-27 Tom Tromey <tom@tromey.com>
7078
7079 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
7080 allocate_signatured_type>: Declare new methods.
7081 <m_num_psymtabs>: New member.
7082 (struct dwarf2_per_cu_data) <index>: New member.
7083 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
7084 (dwarf2_per_objfile::allocate_signatured_type): New methods.
7085 (create_cu_from_index_list): Use allocate_per_cu.
7086 (create_signatured_type_table_from_index)
7087 (create_signatured_type_table_from_debug_names)
7088 (create_debug_type_hash_table, add_type_unit)
7089 (read_comp_units_from_section): Use allocate_signatured_type.
7090
7091 2020-05-27 Tom Tromey <tom@tromey.com>
7092
7093 * psymtab.c (partial_map_expand_apply)
7094 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
7095 (psym_lookup_global_symbol_language)
7096 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
7097 (psym_print_stats, psym_expand_symtabs_for_function)
7098 (psym_map_symbol_filenames, psym_map_matching_symbols)
7099 (psym_expand_symtabs_matching)
7100 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
7101 (maintenance_check_psymtabs): Update.
7102 * psympriv.h (struct partial_symtab) <readin_p,
7103 get_compunit_symtab>: Add objfile parameter.
7104 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
7105 Likewise.
7106 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
7107 get_compunit_symtab>: Likewise.
7108 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
7109
7110 2020-05-27 Tom Tromey <tom@tromey.com>
7111
7112 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
7113 member.
7114 * dwarf2/read.c (delete_file_name_entry): Fix comment.
7115 (create_cu_from_index_list)
7116 (create_signatured_type_table_from_index)
7117 (create_signatured_type_table_from_debug_names)
7118 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
7119 (dwarf2_create_include_psymtab)
7120 (create_debug_type_hash_table, add_type_unit)
7121 (create_type_unit_group, read_comp_units_from_section)
7122 (dwarf2_compute_name, create_cus_hash_table)
7123 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
7124 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
7125 obstack.
7126 (dw2_get_real_path): Likewise. Change argument to
7127 dwarf2_per_objfile.
7128
7129 2020-05-27 Luis Machado <luis.machado@linaro.org>
7130
7131 PR tdep/26000
7132 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
7133 for ldrd (immediate).
7134
7135 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7136
7137 * command.h: Add comment giving the name of class_tui.
7138 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
7139 create the fake command for the help for class_tui.
7140
7141 2020-05-26 Tom Tromey <tromey@adacore.com>
7142
7143 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
7144 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
7145 (val_atr): New function.
7146 (value_val_atr): Use it.
7147 * ada-valprint.c (print_optional_low_bound): Change low bound
7148 handling for enums.
7149 (val_print_packed_array_elements): Don't call discrete_position.
7150 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
7151 discrete_position for enum types.
7152 * language.c (default_print_array_index): Change type.
7153 * language.h (struct language_defn) <la_print_array_index>: Add
7154 index_type parameter, change type of index_value.
7155 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
7156 (default_print_array_index): Update.
7157 * valprint.c (maybe_print_array_index): Don't call
7158 value_from_longest. Update.
7159 (value_print_array_elements): Don't call discrete_position.
7160
7161 2020-05-26 Tom Tromey <tromey@adacore.com>
7162
7163 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
7164 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
7165
7166 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
7167
7168 PR gdb/13519
7169 * avr-tdep.c (avr_integer_to_address): Return data or code
7170 address accordingly to the second 'type' argument of the
7171 function.
7172
7173 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
7174
7175 * infcmd.c, inferior.h: (construct_inferior_arguments):
7176 Moved function from here to gdbsupport/common-inferior.{h,cc}
7177
7178 2020-05-23 Tom Tromey <tom@tromey.com>
7179
7180 Revert commit eca1f90c:
7181 * NEWS: Remove entry for completion styling.
7182 * completer.c (_rl_completion_prefix_display_length): Move
7183 declaration later.
7184 (gdb_fnprint): Revert.
7185 (gdb_display_match_list_1): Likewise.
7186 * cli/cli-style.c (completion_prefix_style)
7187 (completion_difference_style, completion_suffix_style): Remove.
7188 (_initialize_cli_style): Revert.
7189 * cli/cli-style.h (completion_prefix_style)
7190 (completion_difference_style, completion_suffix_style): Don't
7191 declare.
7192
7193 2020-05-24 Pedro Alves <palves@redhat.com>
7194
7195 * symtab.c (completion_list_add_name): Return boolean indication
7196 of whether the symbol matched.
7197 (completion_list_add_symbol): Don't try to remove C++ aliases if
7198 the symbol didn't match in the first place.
7199 * symtab.h (completion_list_add_name): Return bool.
7200
7201 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
7202
7203 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
7204 type::field.
7205
7206 2020-05-23 Joel Brobecker <brobecker@adacore.com>
7207
7208 GDB 9.2 released.
7209
7210 2020-05-23 Tom Tromey <tom@tromey.com>
7211
7212 * NEWS: Add entry for completion styling.
7213 * completer.c (_rl_completion_prefix_display_length): Move
7214 declaration earlier.
7215 (gdb_fnprint): Use completion_style.
7216 (gdb_display_match_list_1): Likewise.
7217 * cli/cli-style.c (completion_prefix_style)
7218 (completion_difference_style, completion_suffix_style): New
7219 globals.
7220 (_initialize_cli_style): Register new globals.
7221 * cli/cli-style.h (completion_prefix_style)
7222 (completion_difference_style, completion_suffix_style): Declare.
7223
7224 2020-05-23 Pedro Alves <palves@redhat.com>
7225
7226 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
7227 (parse_escape): Use ISDIGIT instead of isdigit.
7228 (puts_debug): Use gdb_isprint instead of isprint.
7229 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
7230 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
7231 ISSPACE instead of isspace.
7232 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
7233 instead of isspace.
7234 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
7235 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
7236 instead of isxdigit and ISDIGIT instead of isdigit.
7237
7238 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
7239
7240 * gdbtypes.h (struct type) <field>: New method.
7241 (TYPE_FIELDS): Remove, replace all uses with either type::fields
7242 or type::field.
7243
7244 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
7245
7246 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
7247 (TYPE_FIELDS): Use type::fields. Change all call sites that
7248 modify the propery to use type::set_fields instead.
7249
7250 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
7251
7252 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
7253 type::num_fields instead.
7254
7255 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
7256
7257 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
7258 methods.
7259 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
7260 that modify the number of fields to use type::set_num_fields
7261 instead.
7262
7263 2020-05-22 Tom Tromey <tromey@adacore.com>
7264
7265 * compile/compile-object-load.h (munmap_list_free): Don't
7266 declare.
7267
7268 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
7269
7270 * annotate.c (annotate_source_line): Update return type, add call
7271 to update current symtab and line.
7272 * annotate.h (annotate_source_line): Update return type, and
7273 extend header comment.
7274 * source.c (info_line_command): Check annotation_level before
7275 calling annotate_source_line.
7276 * stack.c (print_frame_info): If calling annotate_source_line
7277 returns true, then don't print any other source line information.
7278
7279 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
7280
7281 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
7282
7283 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
7284
7285 * coffread.c (patch_type): Remove NULL check before xfree.
7286 * corefile.c (set_gnutarget): Likewise.
7287 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
7288 * exec.c (build_section_table): Likewise.
7289 * remote.c (remote_target::pass_signals): Likewise.
7290 * utils.c (n_spaces): Likewise.
7291 * cli/cli-script.c (document_command): Likewise.
7292 * i386-windows-tdep.c (core_process_module_section): Likewise.
7293 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
7294
7295 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
7296
7297 * symfile.c (reread_symbols): Clear objfile's section_offsets
7298 vector and section indices, re-compute them by calling
7299 sym_offsets.
7300
7301 2020-05-20 Tom Tromey <tromey@adacore.com>
7302
7303 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
7304 (desc_one_bound, desc_index_type): Compute field name.
7305
7306 2020-05-20 Tom de Vries <tdevries@suse.de>
7307
7308 PR symtab/25833
7309 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
7310
7311 2020-05-20 Alan Modra <amodra@gmail.com>
7312
7313 PR 25993
7314 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
7315 bfd_set_filename.
7316 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
7317 passed to bfd_set_filename.
7318 * symfile-mem.c (add_vsyscall_page): Likewise for string
7319 passed to symbol_file_add_from_memory.
7320 (symbol_file_add_from_memory): Make name param a const char* and
7321 don't strdup.
7322
7323 2020-05-20 Alan Modra <amodra@gmail.com>
7324
7325 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
7326 rather than accessing bfd->filename directly.
7327 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
7328 and use bfd_section_name.
7329 * dwarf2/frame.c (decode_frame_entry): Likewise.
7330 * exec.c (exec_set_section_address): Likewise.
7331 * solib-aix.c (solib_aix_bfd_open): Likewise.
7332 * stap-probe.c (get_stap_base_address): Likewise.
7333 * symfile.c (reread_symbols): Likewise.
7334
7335 2020-05-19 Tom Tromey <tromey@adacore.com>
7336
7337 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
7338
7339 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
7340
7341 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
7342
7343 2020-05-19 Pedro Alves <palves@redhat.com>
7344
7345 * NEWS (set exec-file-mismatch): Adjust entry.
7346 * exec.c: Include "build-id.h".
7347 (validate_exec_file): Try to match build IDs instead of filenames.
7348 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
7349 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
7350 and pass down 'warn_if_slow'.
7351 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
7352 gdb_bfd_open_closure to pass it down.
7353 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
7354
7355 2020-05-19 Pedro Alves <palves@redhat.com>
7356
7357 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
7358 * target.c (target_fileio_open_1): Rename to target_fileio_open
7359 and make extern. Use bool.
7360 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
7361 (target_fileio_read_alloc_1): Adjust.
7362 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
7363 (target_fileio_open_warn_if_slow): Delete declaration.
7364
7365 2020-05-19 Pedro Alves <palves@redhat.com>
7366
7367 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
7368 Adjust all callers.
7369
7370 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
7371
7372 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
7373 whether disp is negative.
7374
7375 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
7376
7377 * symfile.h (struct symfile_segment_data)
7378 <~symfile_segment_data>: Remove.
7379 <segment_info>: Change to std::vector.
7380 * symfile.c (default_symfile_segments): Update.
7381 * elfread.c (elf_symfile_segments): Update.
7382
7383 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
7384
7385 * symfile.h (struct symfile_segment_data) <struct segment>: New.
7386 <segments>: New.
7387 <segment_bases, segment_sizes>: Remove.
7388 * symfile.c (default_symfile_segments): Update.
7389 * elfread.c (elf_symfile_segments): Update.
7390 * remote.c (remote_target::get_offsets): Update.
7391 * solib-target.c (solib_target_relocate_section_addresses):
7392 Update.
7393
7394 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
7395
7396 * symfile.h (struct symfile_segment_data): Initialize fields.
7397 <~symfile_segment_data>: Add.
7398 (symfile_segment_data_up): New.
7399 (struct sym_fns) <sym_segments>: Return a
7400 symfile_segment_data_up.
7401 (default_symfile_segments): Return a symfile_segment_data_up.
7402 (free_symfile_segment_data): Remove.
7403 (get_symfile_segment_data): Return a symfile_segment_data_up.
7404 * symfile.c (default_symfile_segments): Likewise.
7405 (get_symfile_segment_data): Likewise.
7406 (free_symfile_segment_data): Remove.
7407 (symfile_find_segment_sections): Update.
7408 * elfread.c (elf_symfile_segments): Return a
7409 symfile_segment_data_up.
7410 * remote.c (remote_target::get_offsets): Update.
7411 * solib-target.c (solib_target_relocate_section_addresses):
7412 Update.
7413 * symfile-debug.c (debug_sym_segments): Return a
7414 symfile_segment_data_up.
7415
7416 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7417
7418 PR build/25981
7419 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
7420 Hardcode register numbers.
7421
7422 PR build/25981
7423 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
7424 procfs_find_LDT_entry): Remove.
7425 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
7426 procfs_find_LDT_entry): Remove.
7427 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
7428 Remove.
7429
7430 2020-05-17 Pedro Alves <palves@redhat.com>
7431 Andrew Burgess <andrew.burgess@embecosm.com>
7432 Keno Fischer <keno@juliacomputing.com>
7433
7434 PR gdb/25741
7435 * breakpoint.c (build_target_condition_list): Update comments.
7436 (build_target_command_list): Update comments and skip matching
7437 locations.
7438 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
7439 a separate function. Simplify "set breakpoint auto-hw off"
7440 handling.
7441 (insert_breakpoints): Update comment.
7442 (tracepoint_locations_match): New parameter. For breakpoints,
7443 compare location types too, if the caller wants to.
7444 (handle_automatic_hardware_breakpoints): New functions.
7445 (bp_location_is_less_than): Also sort by location type and
7446 hardware breakpoint length.
7447 (update_global_location_list): Handle "set breakpoint auto-hw on"
7448 here.
7449 (update_breakpoint_locations): Ask breakpoint_locations_match to
7450 ignore location types.
7451
7452 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
7453
7454 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
7455 type::name instead.
7456
7457 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
7458
7459 * gdbtypes.h (struct type) <name, set_name>: New methods.
7460 (TYPE_CODE): Use type::name. Change all call sites used to set
7461 the name to use type::set_name instead.
7462
7463 2020-05-16 Tom Tromey <tom@tromey.com>
7464
7465 * top.c (quit_force): Update.
7466 * infrun.c (handle_no_resumed): Update.
7467 * top.h (all_uis): New function.
7468 (ALL_UIS): Remove.
7469
7470 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
7471
7472 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
7473
7474 2020-05-16 Pedro Alves <palves@redhat.com>
7475
7476 * ia64-linux-nat.c
7477 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
7478 Declare method.
7479 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
7480
7481 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
7482
7483 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
7484 (sparc64_adi_info): Likewise.
7485
7486 2020-05-15 Tom Tromey <tom@tromey.com>
7487
7488 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
7489 block_objfile.
7490 (lookup_objfile_from_block): Remove.
7491 (lookup_symbol_in_block, lookup_symbol_in_static_block)
7492 (lookup_global_symbol): Use block_objfile.
7493 * symtab.h (lookup_objfile_from_block): Don't declare.
7494 * printcmd.c (clear_dangling_display_expressions): Use
7495 block_objfile.
7496 * parse.c (operator_check_standard): Use block_objfile.
7497
7498 2020-05-15 Tom Tromey <tom@tromey.com>
7499
7500 * language.c (language_alloc_type_symbol): Set
7501 SYMBOL_SECTION.
7502 * symtab.c (initialize_objfile_symbol): Remove.
7503 (allocate_symbol): Remove.
7504 (allocate_template_symbol): Remove.
7505 * dwarf2/read.c (fixup_go_packaging): Use "new".
7506 (new_symbol): Use "new".
7507 (read_variable): Don't call initialize_objfile_symbol. Use
7508 "new".
7509 (read_func_scope): Use "new".
7510 * xcoffread.c (process_xcoff_symbol): Don't call
7511 initialize_objfile_symbol.
7512 (SYMBOL_DUP): Remove.
7513 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
7514 "new".
7515 * symtab.h (allocate_symbol, initialize_objfile_symbol)
7516 (allocate_template_symbol): Don't declare.
7517 (struct symbol): Add copy constructor. Change defaults.
7518 * jit.c (finalize_symtab): Use "new".
7519 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
7520 Use "new".
7521 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
7522 (common_block_end): Use "new".
7523 * mdebugread.c (parse_symbol): Use "new".
7524 (new_symbol): Likewise.
7525
7526 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7527
7528 * NEWS: Mention changes to help and apropos.
7529
7530 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7531
7532 * command.h (enum command_class): Improve comments, document
7533 that class_alias is for user-defined aliases, give the class
7534 name for each class, remove unused class_xdb.
7535 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
7536 * breakpoint.c (_initialize_breakpoint): Replace class_alias
7537 by a precise class.
7538 * infcmd.c (_initialize_infcmd): Likewise.
7539 * reverse.c (_initialize_reverse): Likewise.
7540 * stack.c (_initialize_stack): Likewise.
7541 * symfile.c (_initialize_symfile): Likewise.
7542 * tracepoint.c (_initialize_tracepoint): Likewise.
7543
7544 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7545
7546 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
7547 when their aliased command is traversed.
7548 (help_cmd): Add fput_command_names_styled call to
7549 output command name and aliases when command has an alias.
7550
7551 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7552
7553 * cli/cli-decode.h (help_cmd_list): Remove declaration.
7554 * cli/cli-decode.c (help_cmd_list): Declare as static,
7555 remove prefix argument, use bool for recurse arg, rework to show the aliases of
7556 a command together with the command.
7557 (fput_command_name_styled, fput_command_names_styled): New functions.
7558 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
7559 fput_command_name_styled.
7560 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
7561 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
7562
7563 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7564
7565 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
7566 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
7567 * command.h (cmd_show_list): Likewise.
7568 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
7569 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
7570
7571 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7572
7573 * unittests/command-def-selftests.c (traverse_command_structure):
7574 Verify all commands of a list have the same prefix command and
7575 that only the top cmdlist commands have a null prefix.
7576
7577 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7578
7579 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
7580 as prefix, not one of its aliases.
7581 (set_cmd_prefix): Remove.
7582 (do_add_cmd): Centralize the setting of the prefix of a command, when
7583 command is defined after its full chain of prefix commands.
7584 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
7585 (add_setshow_cmd_full): Likewise.
7586 (update_prefix_field_of_prefixed_commands): New function.
7587 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
7588 update_prefix_field_of_prefixed_commands.
7589 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
7590 addresses of remote_set_cmdlist and remote_show_cmdlist given
7591 as argument, not the address of an argument.
7592 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
7593 * gdb/remote.c (_initialize_remote): Likewise.
7594
7595 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7596
7597 * cli/cli-cmds.c (alias_command): Check for an existing alias
7598 using lookup_cmd_composition, as valid_command_p is too strict
7599 and forbids aliases that are the prefix of an existing alias
7600 or command.
7601 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
7602 command is properly recognised as a valid command.
7603
7604 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7605
7606 * unittests/help-doc-selftests.c: Rename to
7607 unittests/command-def-selftests.c
7608 * unittests/command-def-selftests.c (help_doc_tests): Update some
7609 comments.
7610 (command_structure_tests, traverse_command_structure): New namespace
7611 and function.
7612 (command_structure_invariants_tests): New function.
7613 (_initialize_command_def_selftests) Renamed from
7614 _initialize_help_doc_selftests, register command_structure_invariants
7615 selftest.
7616
7617 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7618
7619 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
7620 an alias of 'show'.
7621
7622 2020-05-15 Joel Brobecker <brobecker@adacore.com>
7623
7624 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
7625 ada_is_fixed_point_type. Update all callers.
7626 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
7627 all callers.
7628 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
7629 Update all callers.
7630 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
7631 print_fixed_point_type. Update all callers.
7632 * ada-valprint.c (ada_value_print_num): Replace call to
7633 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
7634
7635 2020-05-14 Kevin Buettner <kevinb@redhat.com>
7636
7637 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
7638 processors.
7639 (cpu_supports_bts): Add CV_AMD case.
7640
7641 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
7642 Simon Marchi <simon.marchi@efficios.com>
7643
7644 * infrun.c (stop_all_threads): Collect multiple wait events at
7645 each pass.
7646
7647 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
7648
7649 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
7650 type::code instead.
7651
7652 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
7653
7654 * gdbtypes.h (struct type) <code, set_code>: New methods.
7655 (TYPE_CODE): Use type::code. Change all call sites used to set
7656 the code to use type::set_code instead.
7657
7658 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7659 Tom de Vries <tdevries@suse.de>
7660 Pedro Alves <palves@redhat.com>
7661
7662 PR threads/25478
7663 * infrun.c (stop_all_threads): Do NOT ignore
7664 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
7665 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
7666 received.
7667 (handle_no_resumed): Remove code handling a live inferior with no
7668 threads.
7669 * remote.c (has_single_non_exited_thread): New.
7670 (remote_target::update_thread_list): Do not delete a thread if is
7671 the last thread of the process.
7672 * thread.c (thread_select): Call delete_exited_threads instead of
7673 prune_threads.
7674
7675 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7676
7677 * infrun.c (stop_all_threads): Enable/disable thread events of all
7678 targets. Move a debug message denoting the end of the function
7679 into the SCOPED_EXIT block.
7680
7681 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7682
7683 * process-stratum-target.h: Include <set>.
7684 (all_non_exited_process_targets, switch_to_target_no_thread): New
7685 function declarations.
7686 * process-stratum-target.c (all_non_exited_process_targets)
7687 (switch_to_target_no_thread): New function implementations.
7688
7689 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7690
7691 * infrun.c (handle_inferior_event): Extract out a piece of code
7692 into...
7693 (mark_non_executing_threads): ...this new function.
7694
7695 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7696
7697 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
7698 use.
7699
7700 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7701
7702 * regcache.c (regcache_read_pc_protected): New function
7703 implementation that returns 0 if the PC cannot read via
7704 'regcache_read_pc'.
7705 * infrun.c (proceed): Call 'regcache_read_pc_protected'
7706 instead of 'regcache_read_pc'.
7707 (keep_going_pass_signal): Ditto.
7708
7709 2020-05-13 Tom Tromey <tromey@adacore.com>
7710
7711 * ada-lang.c (align_value): Remove.
7712 (ada_template_to_fixed_record_type_1): Use align_up.
7713
7714 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7715
7716 * async-event.c: Update the copyright year.
7717 * async-event.h: Update the copyright year.
7718
7719 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
7720
7721 * objfiles.h (is_addr_in_objfile,
7722 shared_objfile_contains_address_p): Return bool.
7723 * objfile.c (is_addr_in_objfile,
7724 shared_objfile_contains_address_p): Return bool.
7725
7726 2020-05-11 Tom Tromey <tromey@adacore.com>
7727
7728 * cli/cli-cmds.c (info_command): Restore.
7729 (_initialize_cli_cmds): Use add_prefix_command for "info".
7730 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
7731
7732 2020-05-11 Tom Tromey <tromey@adacore.com>
7733
7734 * ada-lang.c (ada_value_primitive_field): Now public.
7735 * ada-lang.h (ada_value_primitive_field): Declare.
7736 * ada-valprint.c (print_field_values): Use
7737 ada_value_primitive_field for wrapper fields.
7738
7739 2020-05-11 Tom de Vries <tdevries@suse.de>
7740
7741 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
7742 MODULE_DOMAIN.
7743
7744 2020-05-11 Tom de Vries <tdevries@suse.de>
7745
7746 PR symtab/25941
7747 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
7748 with length 0, if not gdb-produced.
7749 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
7750
7751 2020-05-09 Tom de Vries <tdevries@suse.de>
7752
7753 PR gdb/25955
7754 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
7755 calculation.
7756
7757 2020-05-09 Tom Tromey <tom@tromey.com>
7758
7759 * top.c (server_command): Now bool.
7760 * top.h (server_command): Now bool.
7761
7762 2020-05-08 Tom Tromey <tromey@adacore.com>
7763
7764 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
7765 already being processed.
7766
7767 2020-05-08 Tom Tromey <tom@tromey.com>
7768
7769 * printcmd.c (struct display) <next>: Remove.
7770 <display>: New constructor.
7771 <exp_string>: Now a std::string.
7772 <enabled_p>: Now a bool.
7773 (display_number): Move definition earlier.
7774 (displays): Rename from display_chain. Now a std::vector.
7775 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
7776 (display_command): Update.
7777 (do_one_display, disable_display)
7778 (enable_disable_display_command, do_enable_disable_display):
7779 Update.
7780 (free_display): Remove.
7781 (clear_displays): Rewrite.
7782 (delete_display): Update.
7783 (map_display_numbers): Use function_view. Remove "data"
7784 parameter. Update.
7785 (do_delete_display): Remove.
7786 (undisplay_command): Update.
7787 (do_one_display, do_displays, disable_display)
7788 (info_display_command): Update.
7789 (do_enable_disable_display): Remove.
7790 (enable_disable_display_command)
7791 (clear_dangling_display_expressions): Update.
7792
7793 2020-05-08 Tom Tromey <tom@tromey.com>
7794
7795 * symtab.c (set_symbol_cache_size)
7796 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
7797 (maintenance_print_symbol_cache_statistics): Update.
7798 * symmisc.c (print_symbol_bcache_statistics)
7799 (print_objfile_statistics, maintenance_print_objfiles)
7800 (maintenance_info_symtabs, maintenance_check_symtabs)
7801 (maintenance_expand_symtabs, maintenance_info_line_tables):
7802 Update.
7803 * symfile-debug.c (set_debug_symfile): Update.
7804 * source.c (forget_cached_source_info): Update.
7805 * python/python.c (gdbpy_progspaces): Update.
7806 * psymtab.c (maintenance_info_psymtabs): Update.
7807 * probe.c (parse_probes): Update.
7808 * linespec.c (iterate_over_all_matching_symtabs)
7809 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
7810 * guile/scm-progspace.c (gdbscm_progspaces): Update.
7811 * exec.c (exec_target::close): Update.
7812 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
7813 * breakpoint.c (print_one_breakpoint_location)
7814 (create_longjmp_master_breakpoint)
7815 (create_std_terminate_master_breakpoint): Update.
7816 * progspace.c (program_spaces): Now a std::vector.
7817 (maybe_new_address_space): Update.
7818 (add_program_space): Remove.
7819 (program_space::program_space): Update.
7820 (remove_program_space): Update.
7821 (number_of_program_spaces): Remove.
7822 (print_program_space, update_address_spaces): Update.
7823 * progspace.h (program_spaces): Change type.
7824 (ALL_PSPACES): Remove.
7825 (number_of_program_spaces): Don't declare.
7826 (struct program_space) <next>: Remove.
7827
7828 2020-05-08 Tom Tromey <tom@tromey.com>
7829
7830 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
7831 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
7832 (enable_break): Update.
7833 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
7834 (frv_fdpic_find_canonical_descriptor): Update.
7835 (frv_fetch_objfile_link_map): Update.
7836 * progspace.c (program_space::free_all_objfiles): Update.
7837 (program_space::solibs): New method.
7838 * progspace.h (struct program_space) <solibs>: New method.
7839 * solist.h (master_so_list): Don't declare.
7840 (ALL_SO_LIBS): Remove.
7841 * solib.h (so_list_head): Remove.
7842 (update_solib_list): Update comment.
7843 * solib.c (master_so_list): Remove.
7844 (solib_used, update_solib_list, solib_add)
7845 (info_sharedlibrary_command, clear_solib)
7846 (reload_shared_libraries_1, remove_user_added_objfile): Update.
7847
7848 2020-05-08 Tom Tromey <tom@tromey.com>
7849
7850 * extension.c (extension_languages): Now a std::array.
7851 (ALL_EXTENSION_LANGUAGES): Remove.
7852 (get_ext_lang_defn, get_ext_lang_of_file)
7853 (eval_ext_lang_from_control_command): Update.
7854 (finish_ext_lang_initialization)
7855 (auto_load_ext_lang_scripts_for_objfile)
7856 (ext_lang_type_printers::ext_lang_type_printers)
7857 (apply_ext_lang_type_printers)
7858 (ext_lang_type_printers::~ext_lang_type_printers)
7859 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
7860 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
7861 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
7862 (get_matching_xmethod_workers, ext_lang_colorize)
7863 (ext_lang_before_prompt): Update.
7864 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
7865
7866 2020-05-08 Tom Tromey <tom@tromey.com>
7867
7868 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
7869 overload.
7870 <swap_string, m_string>: Remove.
7871 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
7872 Update.
7873 * stabsread.c (define_symbol, read_type): Update.
7874 * linespec.c (find_linespec_symbols): Update.
7875 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
7876 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
7877 * dbxread.c (read_dbx_symtab): Update.
7878 * cp-support.h (cp_canonicalize_string_full)
7879 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
7880 Return unique_xmalloc_ptr.
7881 * cp-support.c (inspect_type): Update.
7882 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
7883 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
7884 Likewise.
7885 * c-typeprint.c (print_name_maybe_canonical): Update.
7886 * break-catch-throw.c (check_status_exception_catchpoint):
7887 Update.
7888
7889 2020-05-08 Tom de Vries <tdevries@suse.de>
7890
7891 * infrun.c (follow_fork): Copy current_line and current_symtab to
7892 child thread.
7893
7894 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
7895
7896 * async-event.c (struct async_signal_handler, struct
7897 async_event_handler): Reformat, remove typedef.
7898
7899 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
7900
7901 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
7902 access thistype->main_type->dyn_prop_list directly.
7903
7904 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
7905
7906 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
7907 (remove_dyn_prop): Remove. Update all users to use
7908 type::remove_dyn_prop.
7909 * gdbtypes.c (remove_dyn_prop): Rename to...
7910 (type::remove_dyn_prop): ... this.
7911
7912 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
7913
7914 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
7915 (add_dyn_prop): Remove. Update all users to use
7916 type::add_dyn_prop.
7917 * gdbtypes.c (add_dyn_prop): Rename to...
7918 (type::add_dyn_prop): ... this.
7919
7920 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
7921
7922 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
7923 (get_dyn_prop): Remove. Update all users to use
7924 type::dyn_prop.
7925 * gdbtypes.c (get_dyn_prop): Rename to...
7926 (type::dyn_prop): ... this.
7927
7928 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
7929
7930 * gdbtypes.h (struct main_type) <flag_static>: Remove.
7931
7932 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
7933
7934 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
7935 instruction, skip it if it's there.
7936
7937 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
7938
7939 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
7940
7941 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
7942
7943 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
7944 * gdbtypes.c (recursive_dump_type): Remove use of
7945 TYPE_INCOMPLETE.
7946
7947 2020-05-03 Tom Tromey <tom@tromey.com>
7948
7949 * breakpoint.c (catch_command, tcatch_command): Remove.
7950 (_initialize_breakpoint): Use add_basic_prefix_cmd,
7951 add_show_prefix_cmd.
7952 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
7953 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
7954 Remove.
7955 (add_internal_problem_command): Use add_basic_prefix_cmd,
7956 add_show_prefix_cmd.
7957 * mips-tdep.c (set_mipsfpu_command): Remove.
7958 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
7959 * dwarf2/index-cache.c (set_index_cache_command): Remove.
7960 (_initialize_index_cache): Use add_basic_prefix_cmd.
7961 * memattr.c (dummy_cmd): Remove.
7962 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
7963 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
7964 (_initialize_tui_win): Use add_basic_prefix_cmd,
7965 add_show_prefix_cmd.
7966 * cli/cli-logging.c (set_logging_command): Remove.
7967 (_initialize_cli_logging): Use add_basic_prefix_cmd,
7968 add_show_prefix_cmd.
7969 (show_logging_command): Remove.
7970 * target.c (target_command): Remove.
7971 (add_target): Use add_basic_prefix_cmd.
7972
7973 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
7974
7975 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
7976
7977 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7978
7979 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
7980 info_command.
7981
7982 2020-04-30 Kamil Rytarowski <n54@gmx.com>
7983
7984 * nbsd-nat.c (nbsd_enable_proc_events)
7985 (nbsd_nat_target::post_startup_inferior): Add.
7986 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
7987 (nbsd_nat_target::update_thread_list): Rewrite.
7988 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
7989 "PTRACE_LWP_CREATE".
7990 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
7991
7992 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7993
7994 * stack.c (_initialize_stack): Remove duplicated creation
7995 of "frame" command and "f" alias.
7996
7997 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
7998
7999 PR gdb/18706
8000 * gdbtypes.c (check_typedef): Calculate size of array of
8001 stubbed type.
8002
8003 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
8004
8005 PR gdb/15559
8006 * i386-tdep.c (i386_push_dummy_call): Call
8007 i386_thiscall_push_dummy_call.
8008 (i386_thiscall_push_dummy_call): New function.
8009 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
8010 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
8011 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
8012
8013 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
8014
8015 * gdbarch.sh (do_read): Add shellcheck disable directive for
8016 warning SC2162.
8017
8018 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
8019
8020 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
8021 "referenced but not assigned" warning.
8022
8023 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
8024
8025 * gdbarch.sh: Remove code that sets fallbackdefault.
8026
8027 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
8028
8029 * gdbarch.sh: Use shell operators && and || instead of
8030 -a and -o.
8031
8032 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
8033
8034 * gdbarch.sh: Use $(...) instead of `...`.
8035
8036 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
8037
8038 * gdbarch.sh: Use double quotes around variables.
8039
8040 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
8041
8042 * gdbarch.sh: Use %s with printf, instead of variables in the
8043 format string.
8044
8045 2020-04-29 Tom Tromey <tromey@adacore.com>
8046
8047 PR ada/25875:
8048 * dwarf2/read.c (update_enumeration_type_from_children): Compute
8049 type fields here.
8050 (read_enumeration_type): Call
8051 update_enumeration_type_from_children later. Update comments.
8052 (process_enumeration_scope): Don't create type fields.
8053
8054 2020-04-29 Kamil Rytarowski <n54@gmx.com>
8055
8056 * nbsd-tdep.c: Include "xml-syscall.h".
8057 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
8058
8059 2020-04-29 Kamil Rytarowski <n54@gmx.com>
8060
8061 * nbsd-nat.c: Include "sys/wait.h".
8062 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
8063 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
8064 (nbsd_nat_target::remove_exec_catchpoint)
8065 (nbsd_nat_target::set_syscall_catchpoint): Add.
8066 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
8067 (nbsd_nat_target::insert_exec_catchpoint)
8068 (nbsd_nat_target::remove_exec_catchpoint)
8069 (nbsd_nat_target::set_syscall_catchpoint): Add.
8070 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
8071 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
8072 `nbsd_get_syscall_number'.
8073
8074 2020-04-29 Tom Tromey <tom@tromey.com>
8075
8076 * stack.c (print_block_frame_labels): Remove.
8077
8078 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
8079
8080 PR gdb/17320
8081 * ada-valprint.c (val_print_packed_array_elements): Move array
8082 end bracket to new line.
8083 (ada_val_print_string): Remove extra spaces before first array
8084 element.
8085 * c-valprint.c (c_value_print_array): Likewise.
8086 * m2-valprint.c (m2_print_array_contents): Likewise.
8087 (m2_value_print_inner): Likewise.
8088 * p-valprint.c (pascal_value_print_inner): Likewise.
8089 * valprint.c (generic_val_print_array): Likewise.
8090 (value_print_array_elements): Move first array element and array
8091 end bracket to new line.
8092
8093 2020-04-29 Tom de Vries <tdevries@suse.de>
8094
8095 PR symtab/25889
8096 * linespec.c (find_method): Fix ix calculation.
8097
8098 2020-04-28 Kamil Rytarowski <n54@gmx.com>
8099
8100 * syscalls/update-netbsd.sh: New file.
8101 * syscalls/netbsd.xml: Regenerate.
8102 * data-directory/Makefile.in: Register `netbsd.xml' in
8103 `SYSCALLS_FILES'.
8104
8105 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
8106
8107 * syscalls/update-freebsd.sh: Add double quotes.
8108
8109 2020-04-28 Tom Tromey <tom@tromey.com>
8110
8111 * NEWS: Update.
8112 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
8113 (cmdpy_init): Allow class_tui.
8114
8115 2020-04-28 Mark Williams <mark@myosotissp.com>
8116
8117 PR gdb/24480
8118 * dwarf2read.c: Add missing assingments to list_in_scope when
8119 start_symtab was already called.
8120
8121 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
8122
8123 PR gdb/25881
8124 * dwarf2/read.c (offset_map_type): Use
8125 gdb:hash_enum<sect_offset> as hash function.
8126
8127 2020-04-28 Tom de Vries <tdevries@suse.de>
8128
8129 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
8130 with DW_AT_signature.
8131
8132 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
8133
8134 * configure.ac: Remove check for fs_base/gs_base in
8135 user_regs_struct.
8136 * configure: Re-generate.
8137 * config.in: Re-generate.
8138 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
8139 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
8140 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
8141
8142 2020-04-27 Luis Machado <luis.machado@linaro.org>
8143
8144 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
8145 problematic inline frame unwinding situation.
8146 * frame.c (frame_id_computed_p): New function.
8147 * frame.h (frame_id_computed_p): New prototype.
8148
8149 2020-04-26 Tom Tromey <tom@tromey.com>
8150
8151 * command.h (enum command_class) <class_pseudo>: Remove.
8152
8153 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8154
8155 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
8156 and whitespace.
8157
8158 2020-04-25 Kamil Rytarowski <n54@gmx.com>
8159
8160 * inf-ptrace.c (inf_ptrace_target::wait): Remove
8161 `PT_GET_PROCESS_STATE' block.
8162
8163 2020-04-24 Tom Tromey <tom@tromey.com>
8164
8165 * symtab.h (symbol_get_demangled_name): Don't declare.
8166 * symtab.c (symbol_get_demangled_name): Remove.
8167 (general_symbol_info::natural_name)
8168 (general_symbol_info::demangled_name): Update.
8169
8170 2020-04-24 Tom Tromey <tom@tromey.com>
8171
8172 PR rust/25025:
8173 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
8174
8175 2020-04-24 Tom Tromey <tom@tromey.com>
8176
8177 PR symtab/12707:
8178 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
8179 exists.
8180 (new_symbol): Likewise.
8181 * compile/compile-object-load.c (get_out_value_type): Use
8182 symbol_matches_search_name.
8183
8184 2020-04-24 Tom Tromey <tom@tromey.com>
8185
8186 * dwarf2/read.c (add_partial_symbol): Do not call
8187 compute_and_set_names.
8188
8189 2020-04-24 Tom Tromey <tom@tromey.com>
8190
8191 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
8192 overload.
8193
8194 2020-04-24 Tom Tromey <tom@tromey.com>
8195
8196 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
8197 (add_psymbol_to_list): New overload. Make old overload call new
8198 one.
8199 * psympriv.h (add_psymbol_to_list): New overload.
8200
8201 2020-04-24 Tom Tromey <tom@tromey.com>
8202
8203 * dwarf2/read.c (partial_die_info::read) <case
8204 DW_AT_linkage_name>: Use value_as_string.
8205 (dwarf2_string_attr): Use value_as_string.
8206 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
8207 method.
8208 * dwarf2/attribute.c (attribute::value_as_string): New method.
8209
8210 2020-04-24 Tom Tromey <tom@tromey.com>
8211
8212 * symtab.c (general_symbol_info::natural_name)
8213 (general_symbol_info::demangled_name): Check for language_rust.
8214
8215 2020-04-24 Tom Tromey <tom@tromey.com>
8216
8217 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
8218 (dwarf2_physname): ... from here.
8219 (partial_die_info::read): Add Rust "{" hack.
8220
8221 2020-04-24 Tom Tromey <tom@tromey.com>
8222
8223 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
8224 method.
8225 (symbol_set_demangled_name): Don't declare.
8226 * symtab.c (general_symbol_info::set_demangled_name): Rename from
8227 symbol_set_demangled_name.
8228 (general_symbol_info::set_language)
8229 (general_symbol_info::compute_and_set_names): Update.
8230 * minsyms.c (minimal_symbol_reader::install): Update.
8231 * dwarf2/read.c (new_symbol): Update.
8232
8233 2020-04-24 Tom Tromey <tromey@adacore.com>
8234
8235 PR python/23662:
8236 * python/py-type.c (convert_field): Handle
8237 FIELD_LOC_KIND_DWARF_BLOCK.
8238 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
8239 (typy_get_dynamic): Nw function.
8240 (type_object_getset): Add "dynamic".
8241 * NEWS: Add entry.
8242
8243 2020-04-24 Tom Tromey <tromey@adacore.com>
8244
8245 * ada-typeprint.c (print_choices, print_variant_part)
8246 (print_record_field_types_dynamic): New functions.
8247 (print_record_field_types): Use print_record_field_types_dynamic.
8248
8249 2020-04-24 Tom Tromey <tromey@adacore.com>
8250
8251 * dwarf2/read.c (handle_data_member_location): New overload.
8252 (dwarf2_add_field): Use it.
8253 (decode_locdesc): Add "computed" parameter. Update comment.
8254 * gdbtypes.c (is_dynamic_type_internal): Also look for
8255 FIELD_LOC_KIND_DWARF_BLOCK.
8256 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
8257 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
8258 virtual base classes.
8259 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
8260 FIELD_LOC_KIND_DWARF_BLOCK.
8261
8262 2020-04-24 Tom Tromey <tromey@adacore.com>
8263
8264 * dwarf2/read.c (read_structure_type): Handle dynamic length.
8265 * gdbtypes.c (is_dynamic_type_internal): Check
8266 TYPE_HAS_DYNAMIC_LENGTH.
8267 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
8268 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
8269 New macros.
8270 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
8271 constant.
8272
8273 2020-04-24 Tom Tromey <tromey@adacore.com>
8274
8275 * dwarf2/read.c (struct variant_field): Rewrite.
8276 (struct variant_part_builder): New.
8277 (struct nextfield): Remove "variant" field. Add "offset".
8278 (struct field_info): Add "current_variant_part" and
8279 "variant_parts".
8280 (alloc_discriminant_info): Remove.
8281 (alloc_rust_variant): New function.
8282 (quirk_rust_enum): Update.
8283 (dwarf2_add_field): Set "offset" member. Don't handle
8284 DW_TAG_variant_part.
8285 (offset_map_type): New typedef.
8286 (convert_variant_range, create_one_variant)
8287 (create_one_variant_part, create_variant_parts)
8288 (add_variant_property): New functions.
8289 (dwarf2_attach_fields_to_type): Call add_variant_property.
8290 (read_structure_type): Don't handle DW_TAG_variant_part.
8291 (handle_variant_part, handle_variant): New functions.
8292 (handle_struct_member_die): Use them.
8293 (process_structure_scope): Don't handle variant parts.
8294 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
8295 (struct discriminant_info): Remove.
8296 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
8297 (struct main_type) <flag_discriminated_union>: Remove.
8298 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
8299 (rust_enum_variant): Return int. Remove "contents". Rewrite.
8300 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
8301 Update.
8302 * valops.c (value_union_variant): Remove.
8303 * value.h (value_union_variant): Don't declare.
8304
8305 2020-04-24 Tom Tromey <tromey@adacore.com>
8306
8307 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
8308 (ada_value_primitive_packed_val): Update.
8309 * ada-valprint.c (ada_value_print_1): Update.
8310 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
8311 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
8312 just an address. Use evaluate_for_locexpr_baton.
8313 (dwarf2_evaluate_property): Update.
8314 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
8315 array_view.
8316 * findvar.c (default_read_var_value): Update.
8317 * gdbtypes.c (compute_variant_fields_inner)
8318 (resolve_dynamic_type_internal): Update.
8319 (resolve_dynamic_type): Change type of valaddr parameter.
8320 * gdbtypes.h (resolve_dynamic_type): Update.
8321 * valarith.c (value_subscripted_rvalue): Update.
8322 * value.c (value_from_contents_and_address): Update.
8323
8324 2020-04-24 Tom Tromey <tromey@adacore.com>
8325
8326 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
8327 "push_initial_value" parameter.
8328 (dwarf2_evaluate_property): Likewise.
8329 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
8330
8331 2020-04-24 Tom Tromey <tromey@adacore.com>
8332
8333 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
8334 (variant::matches, compute_variant_fields_recurse)
8335 (compute_variant_fields_inner, compute_variant_fields): New
8336 functions.
8337 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
8338 Use resolved_type after type is made.
8339 (operator==): Add new cases.
8340 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
8341 (struct discriminant_range, struct variant, struct variant_part):
8342 New.
8343 (union dynamic_prop_data) <variant_parts, original_type>: New
8344 members.
8345 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
8346 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
8347 constants.
8348 * value.c (unpack_bits_as_long): Now public.
8349 * value.h (unpack_bits_as_long): Declare.
8350
8351 2020-04-24 Tom Tromey <tromey@adacore.com>
8352
8353 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
8354 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
8355
8356 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
8357
8358 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
8359
8360 2020-04-24 Kamil Rytarowski <n54@gmx.com>
8361
8362 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
8363 (remove_fork_catchpoint, post_startup_inferior)
8364 (post_attach): Move...
8365 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
8366 (remove_fork_catchpoint, post_startup_inferior)
8367 (post_attach): ...here.
8368 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
8369 (remove_fork_catchpoint, post_startup_inferior)
8370 (post_attach): Move...
8371 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
8372 (remove_fork_catchpoint, post_startup_inferior)
8373 (post_attach): ...here.
8374
8375 2020-04-24 Tom Tromey <tromey@adacore.com>
8376
8377 * nat/windows-nat.h (struct windows_thread_info)
8378 <pc_adjusted>: New member.
8379 * windows-nat.c (windows_fetch_one_register): Check
8380 pc_adjusted.
8381 (windows_nat_target::get_windows_debug_event)
8382 (windows_nat_target::wait): Set pc_adjusted.
8383
8384 2020-04-24 Tom de Vries <tdevries@suse.de>
8385
8386 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
8387 Run gdb-add-index inside temp dir.
8388
8389 2020-04-23 Tom Tromey <tromey@adacore.com>
8390
8391 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
8392 in loop.
8393
8394 2020-04-23 Luis Machado <luis.machado@linaro.org>
8395
8396 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
8397 get_frame_register instead of gdbarch_unwind_pc.
8398
8399 2020-04-23 Tom de Vries <tdevries@suse.de>
8400
8401 * symtab.c (lookup_global_symbol): Prefer def over decl.
8402
8403 2020-04-23 Tom de Vries <tdevries@suse.de>
8404
8405 PR symtab/25807
8406 * block.c (best_symbol, better_symbol): Promote to external.
8407 * block.h (best_symbol, better_symbol): Declare.
8408 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
8409 decl.
8410
8411 2020-04-23 Tom Tromey <tromey@adacore.com>
8412
8413 PR ada/25837:
8414 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
8415 "const char *", not a "const std::string &".
8416 <name_and_matcher::operator==>: Update.
8417 * unittests/lookup_name_info-selftests.c: Change type of
8418 "result".
8419
8420 2020-04-23 Tom Tromey <tom@tromey.com>
8421
8422 * inferior.h (iterate_over_inferiors): Don't declare.
8423 * inferior.c (iterate_over_inferiors): Remove.
8424 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
8425 Remove.
8426 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
8427 use iterate_over_inferiors.
8428 (darwin_resume_inferior_it)
8429 (struct resume_inferior_threads_param)
8430 (darwin_resume_inferior_threads_it): Remove.
8431 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
8432
8433 2020-04-23 Tom de Vries <tdevries@suse.de>
8434
8435 * blockframe.c (find_pc_partial_function): Use
8436 find_pc_sect_compunit_symtab rather than
8437 objfile->sf->qf->find_pc_sect_compunit_symtab.
8438
8439 2020-04-22 Tom de Vries <tdevries@suse.de>
8440
8441 PR symtab/25764
8442 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
8443 in psymtabs.
8444
8445 2020-04-22 Tom de Vries <tdevries@suse.de>
8446
8447 PR symtab/25801
8448 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
8449 symtabs.
8450
8451 2020-04-22 Tom de Vries <tdevries@suse.de>
8452
8453 PR symtab/25700
8454 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
8455 CU if already created.
8456
8457 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8458
8459 * infrun.c (displaced_step_fixup): Switch to the event_thread
8460 before calling displaced_step_restore, not after.
8461
8462 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
8463
8464 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
8465 its inferior is not recorded by us.
8466 (record_btrace_target_open): Replace call to
8467 all_non_exited_threads () with call to current_inferior
8468 ()->non_exited_threads ().
8469 (record_btrace_target::stop_recording): Likewise.
8470 (record_btrace_target::close): Likewise.
8471 (record_btrace_target::wait): Likewise.
8472 (record_btrace_target::record_stop_replaying): Likewise.
8473
8474 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
8475
8476 * btrace.c (btrace_enable): Throw an error on double enables and
8477 when enabling recording fails.
8478 (btrace_disable): Throw an error if the thread is not recorded.
8479
8480 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
8481
8482 * record-btrace.c (record_btrace_target::fetch_registers): Forward
8483 request if we do not have a thread_info.
8484
8485 2020-04-21 Tom de Vries <tdevries@suse.de>
8486
8487 PR gdb/25471
8488 * thread.c
8489 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
8490 exception in get_frame_id.
8491
8492 2020-04-20 Tom Tromey <tromey@adacore.com>
8493
8494 * python/python.c (struct gdbpy_event): Mark move constructor as
8495 noexcept.
8496 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
8497 constructor as noexcept.
8498 * completer.h (struct completion_result): Mark move constructor as
8499 noexcept.
8500 * completer.c (completion_result::completion_result): Use
8501 initialization style. Don't call reset_match_list.
8502
8503 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
8504
8505 * MAINTAINERS (Write After Approval): Add myself.
8506
8507 2020-04-18 Tom Tromey <tom@tromey.com>
8508
8509 * windows-tdep.c (init_w32_command_list)
8510 (w32_prefix_command_valid): Restore.
8511 (_initialize_windows_tdep): Call init_w32_command_list.
8512
8513 2020-04-18 Tom Tromey <tom@tromey.com>
8514
8515 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
8516 * value.c (value_fn_field): Update.
8517 * valops.c (find_function_in_inferior)
8518 (value_allocate_space_in_inferior): Update.
8519 * tui/tui-winsource.c (tui_update_source_windows_with_line):
8520 Update.
8521 * tui/tui-source.c (tui_source_window::set_contents): Update.
8522 * symtab.c (lookup_global_or_static_symbol)
8523 (find_function_start_sal_1, skip_prologue_sal)
8524 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
8525 * symmisc.c (dump_msymbols, dump_symtab_1)
8526 (maintenance_print_one_line_table): Update.
8527 * symfile.c (init_entry_point_info, section_is_mapped)
8528 (list_overlays_command, simple_read_overlay_table)
8529 (simple_overlay_update_1): Update.
8530 * stap-probe.c (handle_stap_probe): Update.
8531 * stabsread.c (dbx_init_float_type, define_symbol)
8532 (read_one_struct_field, read_enum_type, read_range_type): Update.
8533 * source.c (info_line_command): Update.
8534 * python/python.c (gdbpy_source_objfile_script)
8535 (gdbpy_execute_objfile_script): Update.
8536 * python/py-type.c (save_objfile_types): Update.
8537 * python/py-objfile.c (py_free_objfile): Update.
8538 * python/py-inferior.c (python_new_objfile): Update.
8539 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
8540 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
8541 (maintenance_check_psymtabs): Update.
8542 * printcmd.c (info_address_command): Update.
8543 * objfiles.h (struct objfile) <arch>: New method, from
8544 get_objfile_arch.
8545 (get_objfile_arch): Don't declare.
8546 * objfiles.c (get_objfile_arch): Remove.
8547 (filter_overlapping_sections): Update.
8548 * minsyms.c (msymbol_is_function): Update.
8549 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
8550 (output_nondebug_symbol): Update.
8551 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
8552 (mdebug_expand_psymtab): Update.
8553 * machoread.c (macho_add_oso_symfile): Update.
8554 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
8555 Update.
8556 * linux-fork.c (checkpoint_command): Update.
8557 * linespec.c (convert_linespec_to_sals): Update.
8558 * jit.c (finalize_symtab): Update.
8559 * infrun.c (insert_exception_resume_from_probe): Update.
8560 * ia64-tdep.c (ia64_find_unwind_table): Update.
8561 * hppa-tdep.c (internalize_unwinds): Update.
8562 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
8563 Update.
8564 * gcore.c (call_target_sbrk): Update.
8565 * elfread.c (record_minimal_symbol, elf_symtab_read)
8566 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
8567 (elf_gnu_ifunc_resolve_by_got): Update.
8568 * dwarf2/read.c (create_addrmap_from_index)
8569 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
8570 (read_debug_names_from_section)
8571 (process_psymtab_comp_unit_reader, add_partial_symbol)
8572 (add_partial_subprogram, process_full_comp_unit)
8573 (read_file_scope, read_func_scope, read_lexical_block_scope)
8574 (read_call_site_scope, dwarf2_ranges_read)
8575 (dwarf2_record_block_ranges, dwarf2_add_field)
8576 (mark_common_block_symbol_computed, read_tag_pointer_type)
8577 (read_tag_string_type, dwarf2_init_float_type)
8578 (dwarf2_init_complex_target_type, read_base_type)
8579 (partial_die_info::read, partial_die_info::read)
8580 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
8581 (dwarf2_fetch_die_loc_sect_off): Update.
8582 * dwarf2/loc.c (dwarf2_find_location_expression)
8583 (class dwarf_evaluate_loc_desc, rw_pieced_value)
8584 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
8585 (dwarf2_loc_desc_get_symbol_read_needs)
8586 (locexpr_describe_location_piece, locexpr_describe_location_1)
8587 (loclist_describe_location): Update.
8588 * dwarf2/index-write.c (write_debug_names): Update.
8589 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
8590 * dtrace-probe.c (dtrace_process_dof): Update.
8591 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
8592 (process_one_symbol): Update.
8593 * ctfread.c (ctf_init_float_type, read_base_type): Update.
8594 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
8595 (coff_read_enum_type): Update.
8596 * cli/cli-cmds.c (edit_command, list_command): Update.
8597 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
8598 * breakpoint.c (create_overlay_event_breakpoint)
8599 (create_longjmp_master_breakpoint)
8600 (create_std_terminate_master_breakpoint)
8601 (create_exception_master_breakpoint, get_sal_arch): Update.
8602 * block.c (block_gdbarch): Update.
8603 * annotate.c (annotate_source_line): Update.
8604
8605 2020-04-17 Tom Tromey <tromey@adacore.com>
8606
8607 * auto-load.c (show_auto_load_cmd): Remove.
8608 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
8609 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
8610 (maintenance_print_arc_command): Remove.
8611 * tui/tui-win.c (tui_command): Remove.
8612 (tui_get_cmd_list): Use add_basic_prefix_cmd.
8613 * tui/tui-layout.c (tui_layout_command): Remove.
8614 (_initialize_tui_layout): Use add_basic_prefix_cmd.
8615 * python/python.c (user_set_python, user_show_python): Remove.
8616 (_initialize_python): Use add_basic_prefix_cmd,
8617 add_show_prefix_cmd.
8618 * guile/guile.c (set_guile_command, show_guile_command): Remove.
8619 (install_gdb_commands): Use add_basic_prefix_cmd,
8620 add_show_prefix_cmd.
8621 (info_guile_command): Remove.
8622 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
8623 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
8624 add_show_prefix_cmd.
8625 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
8626 Remove do_set and do_show parameters.
8627 * cli/cli-style.c (set_style, show_style): Remove.
8628 (_initialize_cli_style): Use add_basic_prefix_cmd,
8629 add_show_prefix_cmd.
8630 (cli_style_option::add_setshow_commands): Remove do_set and
8631 do_show parameters.
8632 (cli_style_option::add_setshow_commands): Use
8633 add_basic_prefix_cmd, add_show_prefix_cmd.
8634 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
8635 (set_style_name): Remove.
8636 * cli/cli-dump.c (dump_command, append_command): Remove.
8637 (srec_dump_command, ihex_dump_command, verilog_dump_command)
8638 (tekhex_dump_command, binary_dump_command)
8639 (binary_append_command): Remove.
8640 (_initialize_cli_dump): Use add_basic_prefix_cmd.
8641 * windows-tdep.c (w32_prefix_command_valid): Remove global.
8642 (init_w32_command_list): Remove; move into ...
8643 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
8644 * valprint.c (set_print, show_print, set_print_raw)
8645 (show_print_raw): Remove.
8646 (_initialize_valprint): Use add_basic_prefix_cmd,
8647 add_show_prefix_cmd.
8648 * typeprint.c (set_print_type, show_print_type): Remove.
8649 (_initialize_typeprint): Use add_basic_prefix_cmd,
8650 add_show_prefix_cmd.
8651 * record.c (set_record_command, show_record_command): Remove.
8652 (_initialize_record): Use add_basic_prefix_cmd,
8653 add_show_prefix_cmd.
8654 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
8655 add_show_prefix_cmd.
8656 (info_command, show_command, set_debug, show_debug): Remove.
8657 * top.h (set_history, show_history): Don't declare.
8658 * top.c (set_history, show_history): Remove.
8659 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
8660 (unset_tdesc_cmd): Remove.
8661 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
8662 add_show_prefix_cmd.
8663 * symtab.c (info_module_command): Remove.
8664 (_initialize_symtab): Use add_basic_prefix_cmd.
8665 * symfile.c (overlay_command): Remove.
8666 (_initialize_symfile): Use add_basic_prefix_cmd.
8667 * sparc64-tdep.c (info_adi_command): Remove.
8668 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
8669 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
8670 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
8671 add_show_prefix_cmd.
8672 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
8673 (_initialize_serial): Use add_basic_prefix_cmd,
8674 add_show_prefix_cmd.
8675 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
8676 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
8677 add_show_prefix_cmd.
8678 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
8679 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
8680 add_show_prefix_cmd.
8681 * riscv-tdep.c (show_riscv_command, set_riscv_command)
8682 (show_debug_riscv_command, set_debug_riscv_command): Remove.
8683 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
8684 add_show_prefix_cmd.
8685 * remote.c (remote_command, set_remote_cmd): Remove.
8686 (_initialize_remote): Use add_basic_prefix_cmd.
8687 * record-full.c (set_record_full_command)
8688 (show_record_full_command): Remove.
8689 (_initialize_record_full): Use add_basic_prefix_cmd,
8690 add_show_prefix_cmd.
8691 * record-btrace.c (cmd_set_record_btrace)
8692 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
8693 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
8694 (cmd_show_record_btrace_pt): Remove.
8695 (_initialize_record_btrace): Use add_basic_prefix_cmd,
8696 add_show_prefix_cmd.
8697 * ravenscar-thread.c (set_ravenscar_command)
8698 (show_ravenscar_command): Remove.
8699 (_initialize_ravenscar): Use add_basic_prefix_cmd,
8700 add_show_prefix_cmd.
8701 * mips-tdep.c (show_mips_command, set_mips_command)
8702 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
8703 add_show_prefix_cmd.
8704 * maint.c (maintenance_command, maintenance_info_command)
8705 (maintenance_check_command, maintenance_print_command)
8706 (maintenance_set_cmd, maintenance_show_cmd): Remove.
8707 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
8708 add_show_prefix_cmd.
8709 (show_per_command_cmd): Remove.
8710 * maint-test-settings.c (maintenance_set_test_settings_cmd):
8711 Remove.
8712 (maintenance_show_test_settings_cmd): Remove.
8713 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
8714 add_show_prefix_cmd.
8715 * maint-test-options.c (maintenance_test_options_command):
8716 Remove.
8717 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
8718 * macrocmd.c (macro_command): Remove
8719 (_initialize_macrocmd): Use add_basic_prefix_cmd.
8720 * language.c (set_check, show_check): Remove.
8721 (_initialize_language): Use add_basic_prefix_cmd,
8722 add_show_prefix_cmd.
8723 * infcmd.c (unset_command): Remove.
8724 (_initialize_infcmd): Use add_basic_prefix_cmd.
8725 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
8726 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
8727 add_show_prefix_cmd.
8728 * go32-nat.c (go32_info_dos_command): Remove.
8729 (_initialize_go32_nat): Use add_basic_prefix_cmd.
8730 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
8731 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
8732 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
8733 (_initialize_frame): Use add_basic_prefix_cmd,
8734 add_show_prefix_cmd.
8735 * dcache.c (set_dcache_command, show_dcache_command): Remove.
8736 (_initialize_dcache): Use add_basic_prefix_cmd,
8737 add_show_prefix_cmd.
8738 * cp-support.c (maint_cplus_command): Remove.
8739 (_initialize_cp_support): Use add_basic_prefix_cmd.
8740 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
8741 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
8742 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
8743 add_basic_prefix_cmd, add_show_prefix_cmd.
8744 * breakpoint.c (save_command): Remove.
8745 (_initialize_breakpoint): Use add_basic_prefix_cmd.
8746 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
8747 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
8748 add_show_prefix_cmd.
8749 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
8750 (set_ada_command, show_ada_command): Remove.
8751 (_initialize_ada_language): Use add_basic_prefix_cmd,
8752 add_show_prefix_cmd.
8753 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
8754
8755 2020-04-16 Kamil Rytarowski <n54@gmx.com>
8756
8757 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
8758 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
8759
8760 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
8761
8762 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
8763 warning messages.
8764
8765 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
8766
8767 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
8768 import table is not at beginning of .idata section.
8769
8770 2020-04-16 Pedro Alves <palves@redhat.com>
8771
8772 * inferior.c (delete_inferior): Use delete operator directly
8773 instead of delete_program_space.
8774 * progspace.c (add_program_space): New, factored out from
8775 program_space::program_space.
8776 (remove_program_space): New, factored out from
8777 delete_program_space.
8778 (program_space::program_space): Remove intro comment. Rewrite.
8779 (program_space::~program_space): Remove intro comment. Call
8780 remove_program_space.
8781 (delete_program_space): Delete.
8782 * progspace.h (program_space::program_space): Make explicit. Move
8783 intro comment here, adjusted.
8784 (program_space::~program_space): Move intro comment here,
8785 adjusted.
8786 (delete_program_space): Remove.
8787
8788 2020-04-16 Tom Tromey <tromey@adacore.com>
8789
8790 * windows-nat.c (windows_nat::handle_access_violation): New
8791 function.
8792 * nat/windows-nat.h (handle_access_violation): Declare.
8793 * nat/windows-nat.c (handle_exception): Move Cygwin code to
8794 windows-nat.c. Call handle_access_violation.
8795
8796 2020-04-16 Tom de Vries <tdevries@suse.de>
8797
8798 PR symtab/25791
8799 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
8800 CUs without psymtab.
8801
8802 2020-04-16 Kevin Buettner <kevinb@redhat.com>
8803
8804 * python/python.c (do_start_initialization): Don't call
8805 PyEval_InitThreads for Python 3.9 and beyond.
8806
8807 2020-04-15 Kamil Rytarowski <n54@gmx.com>
8808
8809 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
8810 thread functions.
8811 (obsd_nat_target::wait): Likewise.
8812
8813 2020-04-15 Tom Tromey <tromey@adacore.com>
8814
8815 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
8816 (DEBUG_EXCEPT): Use debug_printf.
8817
8818 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
8819
8820 * completer.c (class completion_tracker::completion_hash_entry)
8821 <hash_name>: New member function.
8822 (completion_tracker::discard_completions): New callback to hash a
8823 completion_hash_entry, pass this to htab_create_alloc.
8824
8825 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
8826
8827 * windows-nat.c (windows_make_so): Warn rather than stopping with
8828 an error if realpath() fails.
8829
8830 2020-04-14 Kamil Rytarowski <n54@gmx.com>
8831
8832 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
8833 (nbsd_nat_target::info_proc): Add do_status.
8834
8835 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
8836 Tom de Vries <tdevries@suse.de>
8837
8838 PR symtab/25718
8839 * psympriv.h (struct partial_symtab::read_symtab)
8840 (struct partial_symtab::expand_psymtab)
8841 (struct partial_symtab::read_dependencies): Update comments.
8842 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
8843 read_symtab for includer.
8844 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
8845 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
8846 (struct dwarf2_include_psymtab::m_readin): Remove.
8847 (struct dwarf2_include_psymtab::includer): New member function.
8848 (dwarf2_psymtab::expand_psymtab): Assert !readin.
8849
8850 2020-04-14 Tom de Vries <tdevries@suse.de>
8851
8852 PR symtab/25720
8853 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
8854 with NULL symbol_matcher and lookup_name.
8855 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
8856 and lookup_name.
8857 * dwarf2/read.c (dw2_expand_symtabs_matching)
8858 (dw2_debug_names_expand_symtabs_matching): Same.
8859 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
8860 Make lookup_name a pointer. Update comment.
8861 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
8862 lookup_name being a pointer.
8863 * symfile.c (expand_symtabs_matching): Same.
8864 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
8865 * linespec.c (iterate_over_all_matching_symtabs): Same.
8866
8867 2020-04-13 Tom Tromey <tom@tromey.com>
8868
8869 * run-on-main-thread.c: Update include.
8870 * unittests/main-thread-selftests.c: Update include.
8871 * tui/tui-win.c: Update include.
8872 * tui/tui-io.c: Update include.
8873 * tui/tui-interp.c: Update include.
8874 * tui/tui-hooks.c: Update include.
8875 * top.h: Update include.
8876 * top.c: Update include.
8877 * ser-base.c: Update include.
8878 * remote.c: Update include.
8879 * remote-notif.c: Update include.
8880 * remote-fileio.c: Update include.
8881 * record-full.c: Update include.
8882 * record-btrace.c: Update include.
8883 * python/python.c: Update include.
8884 * posix-hdep.c: Update include.
8885 * mingw-hdep.c: Update include.
8886 * mi/mi-main.c: Update include.
8887 * mi/mi-interp.c: Update include.
8888 * main.c: Update include.
8889 * linux-nat.c: Update include.
8890 * interps.c: Update include.
8891 * infrun.c: Update include.
8892 * inf-loop.c: Update include.
8893 * event-top.c: Update include.
8894 * event-loop.c: Move to ../gdbsupport/.
8895 * event-loop.h: Move to ../gdbsupport/.
8896 * async-event.h: Update include.
8897 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
8898
8899 2020-04-13 Tom Tromey <tom@tromey.com>
8900
8901 * tui/tui-win.c: Include async-event.h.
8902 * remote.c: Include async-event.h.
8903 * remote-notif.c: Include async-event.h.
8904 * record-full.c: Include async-event.h.
8905 * record-btrace.c: Include async-event.h.
8906 * infrun.c: Include async-event.h.
8907 * event-top.c: Include async-event.h.
8908 * event-loop.h: Move some declarations to async-event.h.
8909 * event-loop.c: Don't include ser-event.h or top.h. Move some
8910 code to async-event.c.
8911 * async-event.h: New file.
8912 * async-event.c: New file.
8913 * Makefile.in (COMMON_SFILES): Add async-event.c.
8914 (HFILES_NO_SRCDIR): Add async-event.h.
8915
8916 2020-04-13 Tom Tromey <tom@tromey.com>
8917
8918 * utils.c (flush_streams): New function.
8919 * event-loop.c (gdb_wait_for_event): Call flush_streams.
8920
8921 2020-04-13 Tom Tromey <tom@tromey.com>
8922
8923 * event-loop.c (handle_file_event): Use warning, not
8924 printf_unfiltered.
8925
8926 2020-04-13 Tom Tromey <tom@tromey.com>
8927
8928 * event-loop.c: Include <chrono>.
8929
8930 2020-04-13 Tom Tromey <tom@tromey.com>
8931
8932 * gdb_select.h: Move to ../gdbsupport/.
8933 * event-loop.c: Update include path.
8934 * top.c: Update include path.
8935 * ser-base.c: Update include path.
8936 * ui-file.c: Update include path.
8937 * ser-tcp.c: Update include path.
8938 * guile/scm-ports.c: Update include path.
8939 * posix-hdep.c: Update include path.
8940 * ser-unix.c: Update include path.
8941 * gdb_usleep.c: Update include path.
8942 * mingw-hdep.c: Update include path.
8943 * inflow.c: Update include path.
8944 * infrun.c: Update include path.
8945 * event-top.c: Update include path.
8946
8947 2020-04-13 Tom Tromey <tom@tromey.com>
8948
8949 * configure: Rebuild.
8950 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
8951
8952 2020-04-13 Tom Tromey <tom@tromey.com>
8953
8954 * event-loop.h (start_event_loop): Don't declare.
8955 * event-loop.c (start_event_loop): Move...
8956 * main.c (start_event_loop): ...here. Now static.
8957
8958 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
8959
8960 * MAINTAINERS: Update my email address.
8961
8962 2020-04-12 Kamil Rytarowski <n54@gmx.com>
8963
8964 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
8965 IP_ALL.
8966
8967 2020-04-12 Kamil Rytarowski <n54@gmx.com>
8968
8969 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
8970 (nbsd_nat_target::info_proc): Add do_cmdline.
8971
8972 2020-04-12 Kamil Rytarowski <n54@gmx.com>
8973
8974 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
8975 (nbsd_nat_target::info_proc): Add do_cwd.
8976
8977 2020-04-12 Kamil Rytarowski <n54@gmx.com>
8978
8979 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
8980
8981 2020-04-11 Kamil Rytarowski <n54@gmx.com>
8982
8983 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
8984 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
8985 (nbsd_nat_target::info_proc): New functions.
8986 * nbsd-nat.c (kinfo_get_vmmap): New function.
8987 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
8988 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
8989 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
8990 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
8991 functions.
8992 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
8993 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
8994 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
8995 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
8996 (KINFO_VME_FLAG_GROWS_DOWN): New.
8997
8998 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
8999
9000 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
9001 bit shift.
9002
9003 2020-04-10 Tom Tromey <tromey@adacore.com>
9004
9005 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
9006
9007 2020-04-10 Tom Tromey <tromey@adacore.com>
9008
9009 * symtab.c (get_symbol_address, get_msymbol_address): Skip
9010 separate debug files.
9011
9012 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
9013
9014 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
9015 Move to...
9016 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
9017 ... here.
9018 * windows-nat.c (windows_nat_target::get_windows_debug_event):
9019 Check for STATUS_WX86_BREAKPOINT.
9020 (windows_nat_target::wait): Same.
9021
9022 2020-04-10 Tom de Vries <tdevries@suse.de>
9023
9024 PR cli/25808
9025 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
9026
9027 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9028
9029 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
9030 (Write After Approval): Remove Tom de Vries.
9031
9032 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
9033
9034 revert partially:
9035 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
9036
9037 * buildsym.c (record_line): Fix undefined behavior and preserve
9038 lines at eof.
9039
9040 2020-04-09 Kamil Rytarowski <n54@gmx.com>
9041
9042 * auxv.h (svr4_auxv_parse): New.
9043 * auxv.c (default_auxv_parse): Split into default_auxv_parse
9044 and generic_auxv_parse.
9045 (svr4_auxv_parse): Add.
9046 * obsd-tdep.c: Include "auxv.h".
9047 (obsd_auxv_parse): Remove.
9048 (obsd_init_abi): Remove comment.
9049 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
9050 from `obsd_auxv_parse' to `svr4_auxv_parse'.
9051 * nbsd-tdep.c: Include "auxv.h".
9052 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
9053
9054 2020-04-08 Tom Tromey <tromey@adacore.com>
9055
9056 * nat/windows-nat.h (last_wait_event): Don't declare.
9057 (wait_for_debug_event): Update comment.
9058 * nat/windows-nat.c (last_wait_event): Now static.
9059
9060 2020-04-08 Tom Tromey <tromey@adacore.com>
9061
9062 * windows-nat.c (wait_for_debug_event): Move to
9063 nat/windows-nat.c.
9064 * nat/windows-nat.h (wait_for_debug_event): Declare.
9065 * nat/windows-nat.c (wait_for_debug_event): Move from
9066 windows-nat.c. No longer static.
9067
9068 2020-04-08 Tom Tromey <tromey@adacore.com>
9069
9070 * windows-nat.c (get_windows_debug_event): Use
9071 fetch_pending_stop.
9072 * nat/windows-nat.h (fetch_pending_stop): Declare.
9073 * nat/windows-nat.c (fetch_pending_stop): New function.
9074
9075 2020-04-08 Tom Tromey <tromey@adacore.com>
9076
9077 * windows-nat.c (windows_continue): Use matching_pending_stop and
9078 continue_last_debug_event.
9079 * nat/windows-nat.h (matching_pending_stop)
9080 (continue_last_debug_event): Declare.
9081 * nat/windows-nat.c (DEBUG_EVENTS): New define.
9082 (matching_pending_stop, continue_last_debug_event): New
9083 functions.
9084
9085 2020-04-08 Tom Tromey <tromey@adacore.com>
9086
9087 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
9088 (handle_exception_result): Move to nat/windows-nat.h.
9089 (DEBUG_EXCEPTION_SIMPLE): Remove.
9090 (windows_nat::handle_ms_vc_exception): New function.
9091 (handle_exception): Move to nat/windows-nat.c.
9092 (get_windows_debug_event): Update.
9093 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
9094 nat/windows-nat.c.
9095 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
9096 (handle_exception_result): Move from windows-nat.c.
9097 (handle_exception): Declare.
9098 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
9099 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
9100 windows-nat.c.
9101
9102 2020-04-08 Tom Tromey <tromey@adacore.com>
9103
9104 * windows-nat.c (exception_count, event_count): Remove.
9105 (handle_exception, get_windows_debug_event)
9106 (do_initial_windows_stuff): Update.
9107
9108 2020-04-08 Tom Tromey <tromey@adacore.com>
9109
9110 * windows-nat.c (windows_nat::handle_load_dll)
9111 (windows_nat::handle_unload_dll): Rename. No longer static.
9112 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
9113 Declare.
9114
9115 2020-04-08 Tom Tromey <tromey@adacore.com>
9116
9117 * complaints.h (stop_whining): Declare at top-level.
9118 (complaint): Don't declare stop_whining.
9119
9120 2020-04-08 Tom Tromey <tromey@adacore.com>
9121
9122 * windows-nat.c (windows_nat::handle_output_debug_string):
9123 Rename. No longer static.
9124 * nat/windows-nat.h (handle_output_debug_string): Declare.
9125
9126 2020-04-08 Tom Tromey <tromey@adacore.com>
9127
9128 * windows-nat.c (current_process_handle, current_process_id)
9129 (main_thread_id, last_sig, current_event, last_wait_event)
9130 (current_windows_thread, desired_stop_thread_id, pending_stops)
9131 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
9132 (display_selectors, fake_create_process)
9133 (get_windows_debug_event): Update.
9134 * nat/windows-nat.h (current_process_handle, current_process_id)
9135 (main_thread_id, last_sig, current_event, last_wait_event)
9136 (current_windows_thread, desired_stop_thread_id, pending_stops)
9137 (struct pending_stop, siginfo_er): Move from windows-nat.c.
9138 * nat/windows-nat.c (current_process_handle, current_process_id)
9139 (main_thread_id, last_sig, current_event, last_wait_event)
9140 (current_windows_thread, desired_stop_thread_id, pending_stops)
9141 (siginfo_er): New globals. Move from windows-nat.c.
9142
9143 2020-04-08 Tom Tromey <tromey@adacore.com>
9144
9145 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
9146 (handle_load_dll): Update.
9147 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
9148
9149 2020-04-08 Tom Tromey <tromey@adacore.com>
9150
9151 * windows-nat.c (enum thread_disposition_type): Move to
9152 nat/windows-nat.h.
9153 (windows_nat::thread_rec): Rename from thread_rec. No longer
9154 static.
9155 (windows_add_thread, windows_nat_target::fetch_registers)
9156 (windows_nat_target::store_registers, handle_exception)
9157 (windows_nat_target::resume, get_windows_debug_event)
9158 (windows_nat_target::get_tib_address)
9159 (windows_nat_target::thread_name)
9160 (windows_nat_target::thread_alive): Update.
9161 * nat/windows-nat.h (enum thread_disposition_type): Move from
9162 windows-nat.c.
9163 (thread_rec): Declare.
9164
9165 2020-04-08 Tom Tromey <tromey@adacore.com>
9166
9167 * windows-nat.c: Add "using namespace".
9168 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
9169 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
9170
9171 2020-04-08 Tom Tromey <tromey@adacore.com>
9172
9173 * nat/windows-nat.h (struct windows_thread_info): Declare
9174 destructor.
9175 * nat/windows-nat.c (~windows_thread_info): New.
9176
9177 2020-04-08 Tom Tromey <tromey@adacore.com>
9178
9179 PR gdb/22992
9180 * windows-nat.c (current_event): Update comment.
9181 (last_wait_event, desired_stop_thread_id): New globals.
9182 (struct pending_stop): New.
9183 (pending_stops): New global.
9184 (windows_nat_target) <stopped_by_sw_breakpoint>
9185 <supports_stopped_by_sw_breakpoint>: New methods.
9186 (windows_fetch_one_register): Add assertions. Adjust PC.
9187 (windows_continue): Handle pending stops. Suspend other threads
9188 when stepping. Use last_wait_event
9189 (wait_for_debug_event): New function.
9190 (get_windows_debug_event): Use wait_for_debug_event. Handle
9191 pending stops. Queue spurious stops.
9192 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
9193 (windows_nat_target::kill): Use wait_for_debug_event.
9194 * nat/windows-nat.h (struct windows_thread_info)
9195 <stopped_at_software_breakpoint>: New field.
9196 * nat/windows-nat.c (windows_thread_info::resume): Clear
9197 stopped_at_software_breakpoint.
9198
9199 2020-04-08 Tom Tromey <tromey@adacore.com>
9200
9201 * windows-nat.c (enum thread_disposition_type): New.
9202 (thread_rec): Replace "get_context" parameter with "disposition";
9203 change type.
9204 (windows_add_thread, windows_nat_target::fetch_registers)
9205 (windows_nat_target::store_registers, handle_exception)
9206 (windows_nat_target::resume, get_windows_debug_event)
9207 (windows_nat_target::get_tib_address)
9208 (windows_nat_target::thread_name)
9209 (windows_nat_target::thread_alive): Update.
9210
9211 2020-04-08 Tom Tromey <tromey@adacore.com>
9212
9213 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
9214 (windows_continue): Use windows_continue::resume.
9215 * nat/windows-nat.h (struct windows_thread_info) <suspend,
9216 resume>: Declare new methods.
9217 * nat/windows-nat.c: New file.
9218 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
9219
9220 2020-04-08 Tom Tromey <tromey@adacore.com>
9221
9222 * windows-nat.c (windows_add_thread, windows_delete_thread)
9223 (windows_nat_target::fetch_registers)
9224 (windows_nat_target::store_registers, fake_create_process)
9225 (windows_nat_target::resume, windows_nat_target::resume)
9226 (get_windows_debug_event, windows_nat_target::wait)
9227 (windows_nat_target::pid_to_str)
9228 (windows_nat_target::get_tib_address)
9229 (windows_nat_target::get_ada_task_ptid)
9230 (windows_nat_target::thread_name)
9231 (windows_nat_target::thread_alive): Use lwp, not tid.
9232
9233 2020-04-08 Tom Tromey <tromey@adacore.com>
9234
9235 * windows-nat.c (handle_exception)
9236 (windows_nat_target::thread_name): Update.
9237 * nat/windows-nat.h (windows_thread_info): Remove destructor.
9238 <name>: Now unique_xmalloc_ptr.
9239
9240 2020-04-08 Tom Tromey <tromey@adacore.com>
9241
9242 * windows-nat.c (thread_rec)
9243 (windows_nat_target::fetch_registers): Update.
9244 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
9245 Update comment.
9246 <debug_registers_changed, reload_context>: Now bool.
9247
9248 2020-04-08 Tom Tromey <tromey@adacore.com>
9249
9250 * windows-nat.c (windows_add_thread): Use new.
9251 (windows_init_thread_list, windows_delete_thread): Use delete.
9252 (get_windows_debug_event): Update.
9253 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
9254 destructor, and initializers.
9255
9256 2020-04-08 Tom Tromey <tromey@adacore.com>
9257
9258 * windows-nat.c (struct windows_thread_info): Remove.
9259 * nat/windows-nat.h: New file.
9260
9261 2020-04-08 Tom Tromey <tromey@adacore.com>
9262
9263 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
9264 (thread_rec, windows_add_thread, windows_delete_thread)
9265 (windows_continue): Update.
9266
9267 2020-04-08 Tom Tromey <tromey@adacore.com>
9268
9269 * windows-nat.c (struct windows_thread_info): Remove typedef.
9270 (thread_head): Remove.
9271 (thread_list): New global.
9272 (thread_rec, windows_add_thread, windows_init_thread_list)
9273 (windows_delete_thread, windows_continue): Update.
9274
9275 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
9276
9277 * windows-tdep.h (windows_init_abi): Add comment.
9278 (cygwin_init_abi): New declaration.
9279 * windows-tdep.c: Split signal enumeration in two, one for
9280 Windows and one for Cygwin.
9281 (windows_gdb_signal_to_target): Only deal with signal of the
9282 Windows OS ABI.
9283 (cygwin_gdb_signal_to_target): New function.
9284 (windows_init_abi): Rename to windows_init_abi_common, don't set
9285 gdb_signal_to_target gdbarch method. Add new new function with
9286 this name.
9287 (cygwin_init_abi): New function.
9288 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
9289 comment. Don't call windows_init_abi.
9290 (amd64_windows_init_abi): Add comment, call windows_init_abi.
9291 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
9292 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
9293 i386_windows_init_abi_common, don't call windows_init_abi. Add
9294 a new function of this name.
9295 (i386_cygwin_init_abi): New function.
9296 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
9297 OS ABI Cygwin.
9298
9299 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
9300
9301 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
9302 parameter.c.
9303 (dwarf2_read_gdb_index): Update.
9304
9305 2020-04-07 Kamil Rytarowski <n54@gmx.com>
9306
9307 * nbsd-tdep.c: Include "objfiles.h".
9308 (nbsd_skip_solib_resolver): New.
9309 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
9310
9311 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
9312
9313 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
9314 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
9315 with DW_LLE_base_addressx are being emitted in DWARFv5.
9316 Add the newly added kind DW_LOC_OFFSET_PAIR also.
9317 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
9318 unsigned integer.
9319
9320 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
9321
9322 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
9323 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
9324 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
9325 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
9326 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
9327 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
9328 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
9329
9330
9331 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
9332
9333 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
9334 (read_loclist_index): New function definition.
9335 (lookup_loclist_base): New function definition.
9336 (read_loclist_header): New function definition.
9337 (dwarf2_cu): Add loclist_base and loclist_header field.
9338 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
9339 (read_full_die_1): Read the value of DW_AT_loclists_base.
9340 (read_attribute_reprocess): Handle DW_FORM_loclistx.
9341 (read_attribute_value): Handle DW_FORM_loclistx.
9342 (skip_one_die): Handle DW_FORM_loclistx.
9343 (loclist_header): New structure declaration.
9344 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
9345
9346 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9347
9348 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
9349 constructor. Remove `addr` parameter from other constructor and
9350 add `per_cu` parameter.
9351 * dwarf2/read.c (create_partial_symtab): Update.
9352
9353 2020-04-07 Tom de Vries <tdevries@suse.de>
9354
9355 PR symtab/25796
9356 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
9357 (partial_die_info::fixup): Inherit has_const_value.
9358
9359 2020-04-07 Tom de Vries <tdevries@suse.de>
9360
9361 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
9362 symbols without address.
9363
9364 2020-04-06 Kamil Rytarowski <n54@gmx.com>
9365
9366 * nbsd-nat.h (struct thread_info): Add forward declaration.
9367 (nbsd_nat_target::thread_alive): Add.
9368 (nbsd_nat_target::thread_name): Likewise.
9369 (nbsd_nat_target::update_thread_list): Likewise.
9370 (update_thread_list::post_attach): Likewise.
9371 (post_attach::pid_to_str): Likewise.
9372 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
9373 (nbsd_thread_lister): Add.
9374 (nbsd_nat_target::thread_alive): Likewise.
9375 (nbsd_nat_target::thread_name): Likewise.
9376 (nbsd_add_threads): Likewise.
9377 (update_thread_list::post_attach): Likewise.
9378 (nbsd_nat_target::update_thread_list): Likewise.
9379 (post_attach::pid_to_str): Likewise.
9380
9381 2020-04-06 Tom Tromey <tromey@adacore.com>
9382
9383 * ada-valprint.c (print_variant_part): Extract the variant field.
9384 (print_field_values): Use the field as the outer value when
9385 recursing.
9386
9387 2020-04-06 Tom Tromey <tromey@adacore.com>
9388
9389 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
9390 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
9391 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
9392 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
9393 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
9394
9395 2020-04-06 Tom Tromey <tromey@adacore.com>
9396
9397 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
9398 TYPE_CODE_ERROR.
9399
9400 2020-04-06 Kamil Rytarowski <n54@gmx.com>
9401
9402 * nbsd-tdep.c: Include "gdbarch.h".
9403 Define enum with NetBSD signal numbers.
9404 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
9405 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
9406 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
9407 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
9408 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
9409 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
9410 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
9411 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
9412 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
9413 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
9414 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
9415 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
9416
9417 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
9418
9419 PR gdb/25325
9420 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
9421
9422 2020-04-03 Tom Tromey <tromey@adacore.com>
9423
9424 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
9425 Read constant block.
9426
9427 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
9428
9429 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
9430 (gdb_bfd_get_full_section_contents): New declaration.
9431 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
9432 * windows-tdep.c (is_linked_with_cygwin_dll): Use
9433 gdb_bfd_get_full_section_contents.
9434
9435 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
9436
9437 * exec.c (build_section_table): Replace internal_error with
9438 gdb_assert.
9439 (section_table_xfer_memory_partial): Likewise.
9440 * mdebugread.c (parse_partial_symbols): Likewise.
9441 * psymtab.c (lookup_partial_symbol): Likewise.
9442 * utils.c (wrap_here): Likewise.
9443
9444 2020-04-02 Tom Tromey <tromey@adacore.com>
9445
9446 * f-lang.c (build_fortran_types): Use arch_type to initialize
9447 builtin_complex_s32 in the TYPE_CODE_ERROR case.
9448
9449 2020-04-02 Tom Tromey <tromey@adacore.com>
9450
9451 * dwarf2/read.c (partial_die_info::read): Do not create a vector
9452 of attributes.
9453
9454 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
9455 Bernd Edlinger <bernd.edlinger@hotmail.de>
9456 Tom Tromey <tromey@adacore.com>
9457
9458 * buildsym.c (buildsym_compunit::record_line): Remove
9459 deduplication code.
9460
9461 2020-04-02 Tom de Vries <tdevries@suse.de>
9462
9463 PR ada/24671
9464 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
9465
9466 2020-04-02 Tom de Vries <tdevries@suse.de>
9467
9468 * dwarf2/read.c (dwarf2_gdb_index_functions,
9469 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
9470 NULL.
9471 * psymtab.c (psym_lookup_global_symbol_language): New function.
9472 (psym_functions): Init psym_lookup_global_symbol_language with
9473 psym_lookup_global_symbol_language.
9474 * symfile-debug.c (debug_sym_quick_functions): Init
9475 lookup_global_symbol_language with NULL.
9476 * symfile.c (set_initial_language): Remove fixme comment.
9477 * symfile.h (struct quick_symbol_functions): Add
9478 lookup_global_symbol_language.
9479 * symtab.c (find_quick_global_symbol_language): New function.
9480 (find_main_name): Use find_quick_global_symbol_language.
9481
9482 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
9483
9484 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
9485
9486 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
9487
9488 * buildsym.c (record_line): Fix undefined behavior and preserve
9489 lines at eof.
9490
9491 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
9492
9493 * buildsym.c (record_line): Fix the resizing condition.
9494
9495 2020-04-01 Tom Tromey <tom@tromey.com>
9496
9497 * value.h (value_literal_complex): Add comment.
9498 * valops.c (value_literal_complex): Refer to value.h.
9499
9500 2020-04-01 Tom Tromey <tom@tromey.com>
9501
9502 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
9503 (scalar_type): New rule, from typebase.
9504 (typebase): Use scalar_type. Recognize complex types.
9505 (field_name): Handle FLOAT_KEYWORD.
9506 (ident_tokens): Add _Complex and __complex__.
9507
9508 2020-04-01 Tom Tromey <tom@tromey.com>
9509
9510 PR exp/25299:
9511 * valarith.c (promotion_type, complex_binop): New functions.
9512 (scalar_binop): Handle complex numbers. Use promotion_type.
9513 (value_pos, value_neg, value_complement): Handle complex numbers.
9514
9515 2020-04-01 Tom Tromey <tom@tromey.com>
9516
9517 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
9518 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
9519 (parse_number): Handle complex numbers.
9520
9521 2020-04-01 Tom Tromey <tom@tromey.com>
9522
9523 * c-valprint.c (c_decorations): Change complex suffix to "i".
9524
9525 2020-04-01 Tom Tromey <tom@tromey.com>
9526
9527 * valprint.c (generic_value_print_complex): Use accessors.
9528 * value.h (value_real_part, value_imaginary_part): Declare.
9529 * valops.c (value_real_part, value_imaginary_part): New
9530 functions.
9531 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
9532
9533 2020-04-01 Tom Tromey <tom@tromey.com>
9534
9535 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
9536 (read_range_type): Update.
9537 * mdebugread.c (basic_type): Update.
9538 * go-lang.c (build_go_types): Use init_complex_type.
9539 * gdbtypes.h (struct main_type) <complex_type>: New member.
9540 (init_complex_type): Update.
9541 (arch_complex_type): Don't declare.
9542 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
9543 Make name if none given. Use alloc_type_copy. Look for cached
9544 complex type.
9545 (arch_complex_type): Remove.
9546 (gdbtypes_post_init): Use init_complex_type.
9547 * f-lang.c (build_fortran_types): Use init_complex_type.
9548 * dwarf2/read.c (read_base_type): Update.
9549 * d-lang.c (build_d_types): Use init_complex_type.
9550 * ctfread.c (read_base_type): Update.
9551
9552 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9553
9554 * infrun.c (stop_all_threads): Update assertion, plus when
9555 stopping threads, take into account that we might be trying
9556 to stop an all-stop target.
9557 (stop_waiting): Call 'stop_all_threads' if there exists a
9558 non-stop target.
9559
9560 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9561
9562 * target.h (exists_non_stop_target): New function declaration.
9563 * target.c (exists_non_stop_target): New function.
9564
9565 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
9566
9567 PR gdb/24789
9568 * eval.c (is_integral_or_integral_reference): New function.
9569 (evaluate_subexp_standard): Allow integer references in
9570 pointer arithmetic.
9571
9572 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9573
9574 * remote.c (remote_target::remote_parse_stop_reply): Remove the
9575 check for no ptid in the stop reply when the target is non-stop.
9576
9577 2020-04-01 Tom Tromey <tromey@adacore.com>
9578
9579 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
9580 "name" parameter to rvalue reference. Initialize m_name_holder.
9581 <lookup_name_info>: New overloads.
9582 <name>: Return gdb::string_view.
9583 <c_str>: New method.
9584 <make_ignore_params>: Update.
9585 <search_name_hash>: Update.
9586 <language_lookup_name>: Return const char *.
9587 <m_name>: Change type.
9588 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
9589 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
9590 (lookup_name_info::match_any): Update.
9591 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
9592 Update.
9593 * minsyms.c (linkage_name_str): Update.
9594 * language.c (default_symbol_name_matcher): Update.
9595 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
9596 Update.
9597 * ada-lang.c (ada_fold_name): Change parameter to string_view.
9598 (ada_lookup_name_info::ada_lookup_name_info): Update.
9599 (literal_symbol_name_matcher): Update.
9600
9601 2020-04-01 Tom Tromey <tromey@adacore.com>
9602
9603 * psymtab.c (psymtab_search_name): Remove function.
9604 (psym_lookup_symbol): Create search name and lookup name here.
9605 (lookup_partial_symbol): Remove "name" parameter; add
9606 lookup_name.
9607 (psym_expand_symtabs_for_function): Update.
9608
9609 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
9610
9611 PR tui/25597:
9612 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
9613
9614 2020-03-31 Tom Tromey <tromey@adacore.com>
9615
9616 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
9617 memcpy.
9618
9619 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
9620
9621 * features/riscv/32bit-csr.xml: Regenerated.
9622 * features/riscv/64bit-csr.xml: Regenerated.
9623
9624 2020-03-30 Tom Tromey <tromey@adacore.com>
9625
9626 * ada-valprint.c (print_variant_part): Update.
9627 * ada-lang.h (ada_which_variant_applies): Update.
9628 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
9629 outer_valaddr parameters; replace with "outer" value parameter.
9630 (to_fixed_variant_branch_type): Update.
9631
9632 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9633
9634 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
9635 <list>. Remove inclusion of observable.h.
9636 (PPC_DEBUG_CURRENT_VERSION): Move up define.
9637 (struct arch_lwp_info): New struct.
9638 (class ppc_linux_dreg_interface): New class.
9639 (struct ppc_linux_process_info): New struct.
9640 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
9641 <low_new_clone, low_forget_process, low_prepare_to_resume>
9642 <copy_thread_dreg_state, mark_thread_stale>
9643 <mark_debug_registers_changed, register_hw_breakpoint>
9644 <clear_hw_breakpoint, register_wp, clear_wp>
9645 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
9646 <num_memory_accesses, get_trigger_type>
9647 <create_watchpoint_request, hwdebug_point_cmp>
9648 <init_arch_lwp_info, get_arch_lwp_info>
9649 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
9650 methods.
9651 <struct ptid_hash>: New inner struct.
9652 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
9653 members.
9654 (saved_dabr_value, hwdebug_info, max_slots_number)
9655 (struct hw_break_tuple, struct thread_points, ppc_threads)
9656 (have_ptrace_hwdebug_interface)
9657 (hwdebug_find_thread_points_by_tid)
9658 (hwdebug_insert_point, hwdebug_remove_point): Remove.
9659 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
9660 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
9661 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
9662 use m_dreg_interface.
9663 (hwdebug_point_cmp): Change to...
9664 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
9665 reference arguments instead of pointers.
9666 (ppc_linux_nat_target::ranged_break_num_registers): Use
9667 m_dreg_interface.
9668 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
9669 m_dreg_interface. Call register_hw_breakpoint.
9670 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
9671 m_dreg_interface. Call clear_hw_breakpoint.
9672 (get_trigger_type): Change to...
9673 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
9674 comment.
9675 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
9676 use m_dreg_interface. Call register_hw_breakpoint.
9677 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
9678 use m_dreg_interface. Call clear_hw_breakpoint.
9679 (can_use_watchpoint_cond_accel): Change to...
9680 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
9681 method. Update comment, use m_dreg_interface and
9682 m_process_info.
9683 (calculate_dvc): Change to...
9684 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
9685 m_dreg_interface.
9686 (num_memory_accesses): Change to...
9687 (ppc_linux_nat_target::num_memory_accesses): ...this method.
9688 (check_condition): Change to...
9689 (ppc_linux_nat_target::check_condition): ...this method.
9690 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
9691 comment, use m_dreg_interface.
9692 (create_watchpoint_request): Change to...
9693 (ppc_linux_nat_target::create_watchpoint_request): ...this
9694 method. Use m_dreg_interface.
9695 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
9696 m_dreg_interface. Call register_hw_breakpoint or register_wp.
9697 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
9698 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
9699 (ppc_linux_nat_target::low_forget_process)
9700 (ppc_linux_nat_target::low_new_fork)
9701 (ppc_linux_nat_target::low_new_clone)
9702 (ppc_linux_nat_target::low_delete_thread)
9703 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
9704 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
9705 only call mark_thread_stale.
9706 (ppc_linux_thread_exit): Remove.
9707 (ppc_linux_nat_target::stopped_data_address): Change to...
9708 (ppc_linux_nat_target::low_stopped_data_address): This. Add
9709 comment, use m_dreg_interface and m_thread_hw_breakpoints.
9710 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
9711 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
9712 comment. Call low_stopped_data_address.
9713 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
9714 m_dreg_interface.
9715 (ppc_linux_nat_target::masked_watch_num_registers): Use
9716 m_dreg_interface.
9717 (ppc_linux_nat_target::copy_thread_dreg_state)
9718 (ppc_linux_nat_target::mark_thread_stale)
9719 (ppc_linux_nat_target::mark_debug_registers_changed)
9720 (ppc_linux_nat_target::register_hw_breakpoint)
9721 (ppc_linux_nat_target::clear_hw_breakpoint)
9722 (ppc_linux_nat_target::register_wp)
9723 (ppc_linux_nat_target::clear_wp)
9724 (ppc_linux_nat_target::init_arch_lwp_info)
9725 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
9726 (_initialize_ppc_linux_nat): Remove observer callback.
9727
9728 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9729
9730 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
9731 (ppc_linux_nat_target::auxv_parse)
9732 (ppc_linux_nat_target::read_description)
9733 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
9734 Move up.
9735
9736 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9737
9738 * linux-nat.h (low_new_clone): New method.
9739 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
9740
9741 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9742
9743 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
9744 (dbx_expand_psymtab): ... this.
9745 (start_psymtab): Update.
9746 * mdebugread.c (psymtab_to_symtab_1): Rename to...
9747 (mdebug_expand_psymtab): ... this.
9748 (parse_partial_symbols): Update.
9749 (new_psymtab): Update.
9750 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
9751 (xcoff_expand_psymtab): ... this.
9752 (xcoff_start_psymtab): Update.
9753
9754 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9755
9756 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
9757 <expand_dependencies>: ... this.
9758 * psymtab.c (partial_symtab::read_dependencies): Rename to...
9759 (partial_symtab::expand_dependencies): ... this.
9760 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
9761 Update.
9762 (dwarf2_psymtab::expand_psymtab): Update.
9763 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
9764 * mdebugread.c (psymtab_to_symtab_1): Update.
9765 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
9766
9767 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9768
9769 * psympriv.h (discard_psymtab): Remove.
9770 * dbxread.c (dbx_end_psymtab): Update.
9771 * xcoffread.c (xcoff_end_psymtab): Update.
9772
9773 2020-03-28 Tom Tromey <tom@tromey.com>
9774
9775 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
9776 comment.
9777
9778 2020-03-28 Tom Tromey <tom@tromey.com>
9779
9780 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
9781
9782 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
9783
9784 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
9785
9786 2020-03-26 John Baldwin <jhb@FreeBSD.org>
9787
9788 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
9789
9790 2020-03-26 Tom Tromey <tom@tromey.com>
9791
9792 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
9793 (mark_common_block_symbol_computed, read_tag_string_type)
9794 (attr_to_dynamic_prop, read_subrange_type): Update.
9795 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
9796 to be methods on struct attribute.
9797 (skip_one_die, process_imported_unit_die, read_namespace_alias)
9798 (read_call_site_scope, partial_die_info::read)
9799 (partial_die_info::read, lookup_die_type, follow_die_ref):
9800 Update.
9801 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
9802 from dwarf2_get_ref_die_offset.
9803 (attribute::constant_value): New method, from
9804 dwarf2_get_attr_constant_value.
9805 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
9806 Declare method.
9807 <constant_value>: New method.
9808
9809 2020-03-26 Tom Tromey <tom@tromey.com>
9810
9811 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
9812 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
9813 (dwarf_type_encoding_name): Move to stringify.c.
9814 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
9815 * dwarf2/stringify.c: New file.
9816 * dwarf2/stringify.h: New file.
9817
9818 2020-03-26 Tom Tromey <tom@tromey.com>
9819
9820 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
9821 Rewrite.
9822
9823 2020-03-26 Tom Tromey <tom@tromey.com>
9824
9825 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
9826 methods.
9827 * dwarf2/read.c (lookup_addr_base): Move to die.h.
9828 (lookup_ranges_base): Likewise.
9829 (read_cutu_die_from_dwo, read_full_die_1): Update.
9830
9831 2020-03-26 Tom Tromey <tom@tromey.com>
9832
9833 * dwarf2/read.c (read_import_statement, read_file_scope)
9834 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
9835 (read_lexical_block_scope, read_call_site_scope)
9836 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
9837 (handle_struct_member_die, process_structure_scope)
9838 (update_enumeration_type_from_children)
9839 (process_enumeration_scope, read_array_type, read_common_block)
9840 (read_namespace, read_module, read_subroutine_type): Update.
9841 (sibling_die): Remove.
9842
9843 2020-03-26 Tom Tromey <tom@tromey.com>
9844
9845 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
9846 (build_type_psymtabs_reader, read_structure_type)
9847 (read_enumeration_type, read_full_die_1): Update.
9848 (dwarf2_attr_no_follow): Move to die.h.
9849 * dwarf2/die.h (struct die_info) <attr>: New method.
9850
9851 2020-03-26 Tom Tromey <tom@tromey.com>
9852
9853 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
9854 <base_address>: Now an optional.
9855 (dwarf2_find_base_address, dwarf2_rnglists_process)
9856 (dwarf2_ranges_process, fill_in_loclist_baton)
9857 (dwarf2_symbol_mark_computed): Update.
9858
9859 2020-03-26 Tom Tromey <tom@tromey.com>
9860
9861 * dwarf2/read.c (struct die_info): Move to die.h.
9862 * dwarf2/die.h: New file.
9863
9864 2020-03-26 Tom Tromey <tom@tromey.com>
9865
9866 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
9867 * dwarf2/read.c
9868 (dwarf2_statement_list_fits_in_line_number_section_complaint):
9869 Move to line-header.c.
9870 (read_checked_initial_length_and_offset, read_formatted_entries):
9871 Likewise.
9872 (dwarf_decode_line_header): Split into two.
9873 * dwarf2/line-header.c
9874 (dwarf2_statement_list_fits_in_line_number_section_complaint):
9875 Move from read.c.
9876 (read_checked_initial_length_and_offset, read_formatted_entries):
9877 Likewise.
9878 (dwarf_decode_line_header): New function, split from read.c.
9879
9880 2020-03-26 Tom Tromey <tom@tromey.com>
9881
9882 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
9883 Declare method.
9884 * dwarf2/read.c (read_attribute_value): Update.
9885 (dwarf2_per_objfile::read_line_string): Rename from
9886 read_indirect_line_string.
9887 (read_formatted_entries): Update.
9888
9889 2020-03-26 Tom Tromey <tom@tromey.com>
9890
9891 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
9892 variable.
9893
9894 2020-03-26 Tom Tromey <tom@tromey.com>
9895
9896 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
9897 const.
9898 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
9899 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
9900 parameter const.
9901
9902 2020-03-26 Tom Tromey <tom@tromey.com>
9903
9904 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
9905 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
9906 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
9907 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
9908
9909 2020-03-26 Tom Tromey <tom@tromey.com>
9910
9911 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
9912 file_names_size, file_full_name, file_file_name>: Use const.
9913 <file_name_at, file_names>: Add const overload.
9914 * dwarf2/line-header.c (line_header::file_file_name)
9915 (line_header::file_full_name): Update.
9916
9917 2020-03-26 Tom Tromey <tom@tromey.com>
9918
9919 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
9920 (macro_start_file, consume_improper_spaces)
9921 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
9922 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
9923 (dwarf_decode_macros): Move to macro.c.
9924 * dwarf2/macro.c: New file.
9925 * dwarf2/macro.h: New file.
9926 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
9927
9928 2020-03-26 Tom Tromey <tom@tromey.com>
9929
9930 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
9931 method.
9932 * dwarf2/section.c: New method. From
9933 read_indirect_string_at_offset_from.
9934 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
9935 (read_indirect_string_at_offset_from): Move to section.c.
9936 (read_indirect_string_at_offset): Rewrite.
9937 (read_indirect_line_string_at_offset): Remove.
9938 (read_indirect_string, read_indirect_line_string)
9939 (dwarf_decode_macro_bytes): Update.
9940
9941 2020-03-26 Tom Tromey <tom@tromey.com>
9942
9943 * dwarf2/section.h (struct dwarf2_section_info)
9944 <overload_complaint>: Declare.
9945 (dwarf2_section_buffer_overflow_complaint): Don't declare.
9946 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
9947 Rename from dwarf2_section_buffer_overflow_complaint.
9948 * dwarf2/read.c (skip_one_die, partial_die_info::read)
9949 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
9950
9951 2020-03-26 Tom Tromey <tom@tromey.com>
9952
9953 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
9954 Declare.
9955 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
9956 Move from read.c.
9957 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
9958 to section.c.
9959
9960 2020-03-26 Tom Tromey <tom@tromey.com>
9961
9962 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
9963
9964 2020-03-26 Tom Tromey <tom@tromey.com>
9965
9966 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
9967 "builder".
9968 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
9969 parameter.
9970 (dwarf_decode_macros): Update.
9971
9972 2020-03-26 Tom Tromey <tom@tromey.com>
9973
9974 * dwarf2/read.c (read_attribute_value): Update.
9975 (read_indirect_string_from_dwz): Move to dwz.c; change into
9976 method.
9977 (dwarf_decode_macro_bytes): Update.
9978 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
9979 * dwarf2/dwz.c: New file.
9980 * Makefile.in (COMMON_SFILES): Add dwz.c.
9981
9982 2020-03-26 Tom Tromey <tom@tromey.com>
9983
9984 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
9985 * dwarf2/read.c: Add include.
9986 * dwarf2/index-write.c: Add include.
9987 * dwarf2/index-cache.c: Add include.
9988 * dwarf2/dwz.h: New file.
9989
9990 2020-03-25 Tom Tromey <tom@tromey.com>
9991
9992 * compile/compile-object-load.c (get_out_value_type): Mention
9993 correct symbol name in error message.
9994
9995 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
9996
9997 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
9998
9999 2020-03-25 Tom de Vries <tdevries@suse.de>
10000
10001 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
10002 * symmisc.c (dump_symtab_1): Print user and includes fields.
10003 (maintenance_info_symtabs): Same.
10004
10005 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
10006
10007 PR gdb/25534
10008 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
10009 (riscv_regcache_cooked_write): New function.
10010 (riscv_push_dummy_call): Use new function.
10011 (riscv_return_value): Likewise.
10012
10013 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
10014
10015 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
10016 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
10017 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
10018 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
10019 * infrun.c (follow_fork): Likewise.
10020 (follow_fork_inferior): Likewise.
10021 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
10022 * linux-nat.h (class linux_nat_target): Likewise.
10023 * remote.c (class remote_target) <follow_fork>: Likewise.
10024 (remote_target::follow_fork): Likewise.
10025 * target-delegates.c: Re-generate.
10026 * target.c (default_follow_fork): Likewise.
10027 (target_follow_fork): Likewise.
10028 * target.h (struct target_ops) <follow_fork>: Likewise.
10029 (target_follow_fork): Likewise.
10030
10031 2020-03-24 Tom de Vries <tdevries@suse.de>
10032
10033 * psymtab.c (maintenance_info_psymtabs): Print user field.
10034
10035 2020-03-20 Tom Tromey <tromey@adacore.com>
10036
10037 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
10038 const.
10039 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
10040 const.
10041
10042 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
10043
10044 * ptrace.m4: Don't check for ptrace declaration.
10045 * config.in: Re-generate.
10046 * configure: Re-generate.
10047 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
10048 not defined.
10049
10050 2020-03-20 Kamil Rytarowski <n54@gmx.com>
10051
10052 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
10053 `PTRACE_TYPE_RET'.
10054 * i386-bsd-nat.c (gdb_ptrace): Likewise.
10055 * sparc-nat.c (gdb_ptrace): Likewise.
10056 * x86-bsd-nat.c (gdb_ptrace): Likewise.
10057
10058 2020-03-20 Tom Tromey <tromey@adacore.com>
10059
10060 * c-exp.y (lex_one_token): Fix assert.
10061
10062 2020-03-20 Tom Tromey <tromey@adacore.com>
10063
10064 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
10065 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
10066 strncpy call.
10067
10068 2020-03-20 Tom Tromey <tromey@adacore.com>
10069
10070 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
10071
10072 2020-03-20 Tom Tromey <tromey@adacore.com>
10073
10074 * ada-valprint.c (print_variant_part): Remove parameters; switch
10075 to value-based API.
10076 (print_field_values): Likewise.
10077 (ada_val_print_struct_union): Likewise.
10078 (ada_value_print_1): Update.
10079
10080 2020-03-20 Kamil Rytarowski <n54@gmx.com>
10081
10082 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
10083 nbsd_nat_target instead of inf_ptrace_target.
10084 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
10085 nbsd_nat_target.
10086
10087 2020-03-20 Kamil Rytarowski <n54@gmx.com>
10088
10089 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
10090 it to the ptrace call.
10091 * (store_registers): Likewise.
10092
10093 2020-03-20 Kamil Rytarowski <n54@gmx.com>
10094
10095 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
10096 it to the ptrace call.
10097 * (store_registers): Likewise.
10098
10099 2020-03-19 Luis Machado <luis.machado@linaro.org>
10100
10101 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
10102 valid, fetch vg value from ptrace.
10103
10104 2020-03-19 Kamil Rytarowski <n54@gmx.com>
10105 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
10106 * inf-ptrace.c: Likewise.
10107 * (gdb_ptrace): Add.
10108 * (inf_ptrace_target::resume): Update.
10109 * (inf_ptrace_target::xfer_partial): Likewise.
10110 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
10111 * (inf_ptrace_peek_poke): Update.
10112
10113 2020-03-19 Kamil Rytarowski <n54@gmx.com>
10114
10115 * x86-bsd-nat.c (gdb_ptrace): New.
10116 * (x86bsd_dr_set): Add new argument `ptid'.
10117 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
10118 x86bsd_dr_set_addr): Update.
10119
10120 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
10121
10122 * remote.c (remote_target::process_stop_reply): Handle events for
10123 all threads differently.
10124
10125 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
10126
10127 * completer.c (completion_tracker::remove_completion): Define new
10128 function.
10129 * completer.h (completion_tracker::remove_completion): Declare new
10130 function.
10131 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
10132 when adding a C++ function symbol.
10133
10134 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
10135
10136 * completer.c (completion_tracker::completion_hash_entry): Define
10137 new class.
10138 (advance_to_filename_complete_word_point): Call
10139 recompute_lowest_common_denominator.
10140 (completion_tracker::completion_tracker): Call discard_completions
10141 to setup the hash table.
10142 (completion_tracker::discard_completions): Allow for being called
10143 from the constructor, pass new equal function, and element deleter
10144 when constructing the hash table. Initialise new class member
10145 variables.
10146 (completion_tracker::maybe_add_completion): Remove use of
10147 m_entries_vec, and store more information into m_entries_hash.
10148 (completion_tracker::recompute_lcd_visitor): New function, most
10149 content taken from...
10150 (completion_tracker::recompute_lowest_common_denominator):
10151 ...here, this now just visits each item in the hash calling the
10152 above visitor.
10153 (completion_tracker::build_completion_result): Remove use of
10154 m_entries_vec, call recompute_lowest_common_denominator.
10155 * completer.h (completion_tracker::have_completions): Remove use
10156 of m_entries_vec.
10157 (completion_tracker::completion_hash_entry): Declare new class.
10158 (completion_tracker::recompute_lowest_common_denominator): Change
10159 function signature.
10160 (completion_tracker::recompute_lcd_visitor): Declare new function.
10161 (completion_tracker::m_entries_vec): Delete.
10162 (completion_tracker::m_entries_hash): Initialize to NULL.
10163 (completion_tracker::m_lowest_common_denominator_valid): New
10164 member variable.
10165 (completion_tracker::m_lowest_common_denominator_max_length): New
10166 member variable.
10167
10168 2020-03-17 Kamil Rytarowski <n54@gmx.com>
10169
10170 * regformats/regdef.h: Put reg in gdb namespace.
10171
10172 2020-03-17 Kamil Rytarowski <n54@gmx.com>
10173
10174 * i386-bsd-nat.c (gdb_ptrace): New.
10175 * (i386bsd_fetch_inferior_registers,
10176 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
10177 * (i386bsd_fetch_inferior_registers,
10178 i386bsd_store_inferior_registers) Use gdb_ptrace.
10179
10180 2020-03-17 Kamil Rytarowski <n54@gmx.com>
10181
10182 * amd64-bsd-nat.c (gdb_ptrace): New.
10183 * (amd64bsd_fetch_inferior_registers,
10184 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
10185 * (amd64bsd_fetch_inferior_registers,
10186 amd64bsd_store_inferior_registers) Use gdb_ptrace.
10187
10188 2020-03-17 Kamil Rytarowski <n54@gmx.com>
10189
10190 * user-regs.c (user_reg::read): Rename to...
10191 (user_reg::xread): ...this.
10192 * (append_user_reg): Rename argument `read' to `xread'.
10193 * (user_reg_add_builtin): Likewise.
10194 * (user_reg_add): Likewise.
10195 * (value_of_user_reg): Likewise.
10196
10197 2020-03-17 Kamil Rytarowski <n54@gmx.com>
10198
10199 * sparc-nat.c (gdb_ptrace): New.
10200 * sparc-nat.c (sparc_fetch_inferior_registers)
10201 (sparc_store_inferior_registers) Remove obsolete comment.
10202 * sparc-nat.c (sparc_fetch_inferior_registers)
10203 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
10204 * sparc-nat.c (sparc_fetch_inferior_registers)
10205 (sparc_store_inferior_registers) Use gdb_ptrace.
10206
10207 2020-03-17 Kamil Rytarowski <n54@gmx.com>
10208
10209 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
10210 it to the ptrace call.
10211 * sh-nbsd-nat.c (store_registers): Likewise.
10212
10213 2020-03-17 Kamil Rytarowski <n54@gmx.com>
10214
10215 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
10216 nbsd_nat_target instead of inf_ptrace_target.
10217 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
10218 nbsd_nat_target.
10219
10220 2020-03-17 Kamil Rytarowski <n54@gmx.com>
10221
10222 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
10223
10224 2020-03-17 Kamil Rytarowski <n54@gmx.com>
10225
10226 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
10227 <sys/sysctl.h>.
10228 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
10229
10230 2020-03-17 Tom de Vries <tdevries@suse.de>
10231
10232 PR gdb/23710
10233 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
10234 fields.
10235 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
10236 fields.
10237 (process_imported_unit_die): Skip import of c++ CUs.
10238
10239 2020-03-16 Tom Tromey <tom@tromey.com>
10240
10241 * p-valprint.c (pascal_object_print_value): Initialize
10242 base_value.
10243
10244 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
10245 Shahab Vahedi <shahab@synopsys.com>
10246
10247 * Makefile.in: Add arch/arc.o
10248 * configure.tgt: Likewise.
10249 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
10250 (_initialize_arc_tdep): Don't initialize old target descriptions.
10251 (arc_read_description): New function to cache target descriptions.
10252 * arc-tdep.h (arc_read_description): Add proto type.
10253 * arch/arc.c: New file.
10254 * arch/arc.h: Likewise.
10255 * features/Makefile: Replace old target descriptions with new.
10256 * features/arc-arcompact.c: Remove.
10257 * features/arc-arcompact.xml: Likewise.
10258 * features/arc-v2.c: Likewise
10259 * features/arc-v2.xml: Likewise
10260 * features/arc/aux-arcompact.xml: New file.
10261 * features/arc/aux-v2.xml: Likewise.
10262 * features/arc/core-arcompact.xml: Likewise.
10263 * features/arc/core-v2.xml: Likewise.
10264 * features/arc/aux-arcompact.c: Generate.
10265 * features/arc/aux-v2.c: Likewise.
10266 * features/arc/core-arcompact.c: Likewise.
10267 * features/arc/core-v2.c: Likewise.
10268 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
10269
10270 2020-03-16 Tom Tromey <tromey@adacore.com>
10271
10272 PR gdb/25663:
10273 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
10274 putting value into bcache.
10275
10276 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
10277
10278 PR gdb/21500
10279 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
10280 to...
10281 (amd64_windows_init_abi_common): ... this. Don't set size of
10282 long type.
10283 (amd64_windows_init_abi): New function.
10284 (amd64_cygwin_init_abi): New function.
10285 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
10286 the Cygwin OS ABI.
10287 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
10288 comment.
10289
10290 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
10291
10292 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
10293 * windows-tdep.c (CYGWIN_DLL_NAME): New.
10294 (pe_import_directory_entry): New struct type.
10295 (is_linked_with_cygwin_dll): New function.
10296 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
10297 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
10298 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
10299
10300 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
10301
10302 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
10303 i386_cygwin_core_osabi_sniffer.
10304
10305 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
10306
10307 * i386-cygwin-tdep.c: Rename to...
10308 * i386-windows-tdep.c: ... this.
10309 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
10310 i386-windows-tdep.c.
10311 * configure.tgt: Likewise.
10312
10313 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
10314
10315 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
10316 * osabi.c (gdb_osabi_names): Add "Windows".
10317 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
10318 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
10319 (i386_cygwin_core_osabi_sniffer): New function, extracted from
10320 i386_cygwin_osabi_sniffer.
10321 (_initialize_i386_cygwin_tdep): Register OS ABI
10322 GDB_OSABI_WINDOWS for i386.
10323 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
10324 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
10325 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
10326 for x86-64.
10327 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
10328 when the target matches '*-*-mingw*'.
10329
10330 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
10331
10332 * defs.h (enum gdb_osabi): Move to...
10333 * osabi.h (enum gdb_osabi): ... here.
10334 * gdbarch.sh: Include osabi.h in gdbarch.h.
10335 * gdbarch.h: Re-generate.
10336
10337 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
10338
10339 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
10340 function.
10341 (_initialize_amd64_windows_tdep): Register osabi sniffer.
10342
10343 2020-03-14 Tom Tromey <tom@tromey.com>
10344
10345 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
10346 for C++.
10347 (c_type_print_modifier): Likewise. Add "language" parameter.
10348 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
10349 (c_type_print_base_1): Update.
10350 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
10351 constants.
10352 * type-stack.c (type_stack::insert): Handle tp_atomic and
10353 tp_restrict.
10354 (type_stack::follow_type_instance_flags): Likewise.
10355 (type_stack::follow_types): Likewise. Merge type-following code.
10356 * c-exp.y (RESTRICT, ATOMIC): New tokens.
10357 (space_identifier, cv_with_space_id)
10358 (const_or_volatile_or_space_identifier_noopt)
10359 (const_or_volatile_or_space_identifier): Remove.
10360 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
10361 rules.
10362 (ptr_operator, typebase): Update.
10363 (enum token_flag) <FLAG_C>: New constant.
10364 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
10365 "_Atomic".
10366 (lex_one_token): Handle FLAG_C.
10367
10368 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10369
10370 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
10371 it to the ptrace call.
10372 * m68k-bsd-nat.c (store_registers): Likewise.
10373
10374 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10375
10376 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
10377 gdb_byte *.
10378 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
10379 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
10380 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
10381
10382 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10383
10384 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
10385 nbsd_nat_target instead of inf_ptrace_target.
10386 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
10387 nbsd_nat_target.
10388
10389 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10390
10391 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
10392 register_t.
10393
10394 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10395
10396 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
10397 it to the ptrace call.
10398 * alpha-bsd-nat.c (store_registers): Likewise.
10399
10400 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10401
10402 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
10403 includes.
10404 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
10405 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
10406 fill_fpregset): Likewise.
10407
10408 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10409
10410 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
10411 nbsd_nat_target instead of inf_ptrace_target.
10412 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
10413 nbsd_nat_target.
10414
10415 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10416
10417 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
10418 register_t.
10419
10420 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10421
10422 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
10423 it to the ptrace call.
10424 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
10425 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
10426 * arm-nbsd-nat.c (store_register): Likewise.
10427 * arm-nbsd-nat.c (store_regs): Likewise.
10428 * arm-nbsd-nat.c (store_fp_register): Likewise.
10429 * arm-nbsd-nat.c (store_fp_regs): Likewise.
10430
10431 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10432
10433 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
10434 nbsd_nat_target instead of inf_ptrace_target.
10435 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
10436 nbsd_nat_target.
10437
10438 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10439
10440 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
10441 it to the ptrace call.
10442 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
10443
10444 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10445
10446 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
10447 it to the ptrace call.
10448 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
10449
10450 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10451
10452 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
10453 gdb_byte *.
10454 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
10455
10456 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10457
10458 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
10459 instead of inf_ptrace_target.
10460 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
10461 nbsd_nat_target.
10462
10463 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10464
10465 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10466 register_t.
10467
10468 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10469
10470 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10471 register_t.
10472
10473 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10474
10475 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
10476 register_t.
10477
10478 2020-03-13 Tom Tromey <tom@tromey.com>
10479
10480 * value.h (val_print): Don't declare.
10481 * valprint.h (val_print_array_elements)
10482 (val_print_scalar_formatted, generic_val_print): Don't declare.
10483 * valprint.c (generic_val_print_array): Take a struct value.
10484 (generic_val_print_ptr, generic_val_print_memberptr)
10485 (generic_val_print_bool, generic_val_print_int)
10486 (generic_val_print_char, generic_val_print_complex)
10487 (generic_val_print): Remove.
10488 (generic_value_print): Update.
10489 (do_val_print): Remove unused parameters. Don't call
10490 la_val_print.
10491 (val_print): Remove.
10492 (common_val_print): Update. Don't call value_check_printable.
10493 (val_print_scalar_formatted, val_print_array_elements): Remove.
10494 * rust-lang.c (rust_val_print): Remove.
10495 (rust_language_defn): Update.
10496 * p-valprint.c (pascal_val_print): Remove.
10497 (pascal_value_print_inner): Update.
10498 (pascal_object_print_val_fields, pascal_object_print_val):
10499 Remove.
10500 (pascal_object_print_static_field): Update.
10501 * p-lang.h (pascal_val_print): Don't declare.
10502 * p-lang.c (pascal_language_defn): Update.
10503 * opencl-lang.c (opencl_language_defn): Update.
10504 * objc-lang.c (objc_language_defn): Update.
10505 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
10506 * m2-lang.h (m2_val_print): Don't declare.
10507 * m2-lang.c (m2_language_defn): Update.
10508 * language.h (struct language_defn) <la_val_print>: Remove.
10509 * language.c (unk_lang_value_print_inner): Rename. Change
10510 argument types.
10511 (unknown_language_defn, auto_language_defn): Update.
10512 * go-valprint.c (go_val_print): Remove.
10513 * go-lang.h (go_val_print): Don't declare.
10514 * go-lang.c (go_language_defn): Update.
10515 * f-valprint.c (f_val_print): Remove.
10516 * f-lang.h (f_value_print): Don't declare.
10517 * f-lang.c (f_language_defn): Update.
10518 * d-valprint.c (d_val_print): Remove.
10519 * d-lang.h (d_value_print): Don't declare.
10520 * d-lang.c (d_language_defn): Update.
10521 * cp-valprint.c (cp_print_value_fields)
10522 (cp_print_value_fields_rtti, cp_print_value): Remove.
10523 (cp_print_static_field): Update.
10524 * c-valprint.c (c_val_print_array, c_val_print_ptr)
10525 (c_val_print_struct, c_val_print_union, c_val_print_int)
10526 (c_val_print_memberptr, c_val_print): Remove.
10527 * c-lang.h (c_val_print_array, cp_print_value_fields)
10528 (cp_print_value_fields_rtti): Don't declare.
10529 * c-lang.c (c_language_defn, cplus_language_defn)
10530 (asm_language_defn, minimal_language_defn): Update.
10531 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
10532 (ada_val_print_enum): Take a struct value.
10533 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
10534 (ada_val_print): Remove.
10535 (ada_value_print_1): Update.
10536 (printable_val_type): Remove.
10537 * ada-lang.h (ada_val_print): Don't declare.
10538 * ada-lang.c (ada_language_defn): Update.
10539
10540 2020-03-13 Tom Tromey <tom@tromey.com>
10541
10542 * valprint.c (do_val_print): Update.
10543 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
10544 a struct value.
10545 (value_to_value_object_no_release): Declare.
10546 * python/py-value.c (value_to_value_object_no_release): New
10547 function.
10548 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
10549 struct value.
10550 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
10551 function.
10552 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
10553 a struct value.
10554 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
10555 Declare.
10556 (gdbscm_apply_val_pretty_printer): Take a struct value.
10557 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
10558 value.
10559 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
10560 value.
10561 * extension-priv.h (struct extension_language_ops)
10562 <apply_val_pretty_printer>: Take a struct value.
10563 * cp-valprint.c (cp_print_value): Create a struct value.
10564 (cp_print_value): Update.
10565
10566 2020-03-13 Tom Tromey <tom@tromey.com>
10567
10568 * ada-valprint.c (print_field_values): Call common_val_print.
10569
10570 2020-03-13 Tom Tromey <tom@tromey.com>
10571
10572 * ada-valprint.c (val_print_packed_array_elements): Remove
10573 bitoffset and val parameters. Call common_val_print.
10574 (ada_val_print_string): Remove offset, address, and original_value
10575 parameters.
10576 (ada_val_print_array): Update.
10577 (ada_value_print_array): New function.
10578 (ada_value_print_1): Call it.
10579
10580 2020-03-13 Tom Tromey <tom@tromey.com>
10581
10582 * ada-valprint.c (ada_value_print): Use common_val_print.
10583
10584 2020-03-13 Tom Tromey <tom@tromey.com>
10585
10586 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
10587
10588 2020-03-13 Tom Tromey <tom@tromey.com>
10589
10590 * ada-valprint.c (ada_value_print_num): New function.
10591 (ada_value_print_1): Use it.
10592
10593 2020-03-13 Tom Tromey <tom@tromey.com>
10594
10595 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
10596
10597 2020-03-13 Tom Tromey <tom@tromey.com>
10598
10599 * ada-valprint.c (ada_value_print_ptr): New function.
10600 (ada_value_print_1): Use it.
10601
10602 2020-03-13 Tom Tromey <tom@tromey.com>
10603
10604 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
10605 call common_val_print.
10606 (ada_val_print_1): Update.
10607 (ada_value_print_1): New function.
10608 (ada_value_print_inner): Rewrite.
10609
10610 2020-03-13 Tom Tromey <tom@tromey.com>
10611
10612 * cp-valprint.c (cp_print_value_fields): Update.
10613 (cp_print_value): New function.
10614
10615 2020-03-13 Tom Tromey <tom@tromey.com>
10616
10617 * m2-valprint.c (m2_value_print_inner): Use
10618 cp_print_value_fields.
10619 * cp-valprint.c (cp_print_value_fields): New function.
10620 * c-valprint.c (c_value_print_struct): New function.
10621 (c_value_print_inner): Use c_value_print_struct.
10622 * c-lang.h (cp_print_value_fields): Declare.
10623
10624 2020-03-13 Tom Tromey <tom@tromey.com>
10625
10626 * c-valprint.c (c_value_print_array): New function.
10627 (c_value_print_inner): Use it.
10628
10629 2020-03-13 Tom Tromey <tom@tromey.com>
10630
10631 * c-valprint.c (c_value_print_memberptr): New function.
10632 (c_value_print_inner): Use it.
10633
10634 2020-03-13 Tom Tromey <tom@tromey.com>
10635
10636 * c-valprint.c (c_value_print_int): New function.
10637 (c_value_print_inner): Use it.
10638
10639 2020-03-13 Tom Tromey <tom@tromey.com>
10640
10641 * c-valprint.c (c_value_print_ptr): New function.
10642 (c_value_print_inner): Use it.
10643
10644 2020-03-13 Tom Tromey <tom@tromey.com>
10645
10646 * c-valprint.c (c_value_print_inner): Rewrite.
10647
10648 2020-03-13 Tom Tromey <tom@tromey.com>
10649
10650 * valprint.c (generic_value_print_complex): New function.
10651 (generic_value_print): Use it.
10652
10653 2020-03-13 Tom Tromey <tom@tromey.com>
10654
10655 * valprint.c (generic_val_print_float): Don't call
10656 val_print_scalar_formatted.
10657 (generic_val_print, generic_value_print): Update.
10658
10659 2020-03-13 Tom Tromey <tom@tromey.com>
10660
10661 * valprint.c (generic_value_print_char): New function
10662 (generic_value_print): Use it.
10663
10664 2020-03-13 Tom Tromey <tom@tromey.com>
10665
10666 * valprint.c (generic_value_print_int): New function.
10667 (generic_value_print): Use it.
10668
10669 2020-03-13 Tom Tromey <tom@tromey.com>
10670
10671 * valprint.c (generic_value_print_bool): New function.
10672 (generic_value_print): Use it.
10673
10674 2020-03-13 Tom Tromey <tom@tromey.com>
10675
10676 * valprint.c (generic_val_print_func): Simplify.
10677 (generic_val_print, generic_value_print): Update.
10678
10679 2020-03-13 Tom Tromey <tom@tromey.com>
10680
10681 * valprint.c (generic_val_print_flags): Remove.
10682 (generic_val_print, generic_value_print): Update.
10683 (val_print_type_code_flags): Add original_value parameter.
10684
10685 2020-03-13 Tom Tromey <tom@tromey.com>
10686
10687 * valprint.c (generic_val_print): Update.
10688 (generic_value_print): Update.
10689 * valprint.c (generic_val_print_enum): Don't call
10690 val_print_scalar_formatted.
10691
10692 2020-03-13 Tom Tromey <tom@tromey.com>
10693
10694 * valprint.c (generic_value_print): Call generic_value_print_ptr.
10695 * valprint.c (generic_value_print_ptr): New function.
10696
10697 2020-03-13 Tom Tromey <tom@tromey.com>
10698
10699 * valprint.c (generic_value_print): Rewrite.
10700
10701 2020-03-13 Tom Tromey <tom@tromey.com>
10702
10703 * p-valprint.c (pascal_object_print_value_fields)
10704 (pascal_object_print_value): New functions.
10705
10706 2020-03-13 Tom Tromey <tom@tromey.com>
10707
10708 * p-valprint.c (pascal_value_print_inner): Rewrite.
10709
10710 2020-03-13 Tom Tromey <tom@tromey.com>
10711
10712 * f-valprint.c (f_value_print_innner): Rewrite.
10713
10714 2020-03-13 Tom Tromey <tom@tromey.com>
10715
10716 * m2-valprint.c (m2_print_unbounded_array): New overload.
10717 (m2_print_unbounded_array): Update.
10718 (m2_print_array_contents): Take a struct value.
10719 (m2_value_print_inner): Rewrite.
10720
10721 2020-03-13 Tom Tromey <tom@tromey.com>
10722
10723 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
10724 (d_value_print_inner): New function.
10725 * d-lang.h (d_value_print_inner): Declare.
10726 * d-lang.c (d_language_defn): Use d_value_print_inner.
10727
10728 2020-03-13 Tom Tromey <tom@tromey.com>
10729
10730 * go-valprint.c (go_value_print_inner): New function.
10731 * go-lang.h (go_value_print_inner): Declare.
10732 * go-lang.c (go_language_defn): Use go_value_print_inner.
10733
10734 2020-03-13 Tom Tromey <tom@tromey.com>
10735
10736 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
10737 API.
10738 (rust_val_print): Rewrite.
10739 (rust_value_print_inner): New function, from rust_val_print.
10740 (rust_language_defn): Use rust_value_print_inner.
10741
10742 2020-03-13 Tom Tromey <tom@tromey.com>
10743
10744 * ada-valprint.c (ada_value_print_inner): New function.
10745 * ada-lang.h (ada_value_print_inner): Declare.
10746 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
10747
10748 2020-03-13 Tom Tromey <tom@tromey.com>
10749
10750 * f-valprint.c (f_value_print_innner): New function.
10751 * f-lang.h (f_value_print_innner): Declare.
10752 * f-lang.c (f_language_defn): Use f_value_print_innner.
10753
10754 2020-03-13 Tom Tromey <tom@tromey.com>
10755
10756 * p-valprint.c (pascal_value_print_inner): New function.
10757 * p-lang.h (pascal_value_print_inner): Declare.
10758 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
10759
10760 2020-03-13 Tom Tromey <tom@tromey.com>
10761
10762 * m2-valprint.c (m2_value_print_inner): New function.
10763 * m2-lang.h (m2_value_print_inner): Declare.
10764 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
10765
10766 2020-03-13 Tom Tromey <tom@tromey.com>
10767
10768 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
10769 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
10770 * c-valprint.c (c_value_print_inner): New function.
10771 * c-lang.h (c_value_print_inner): Declare.
10772 * c-lang.c (c_language_defn, cplus_language_defn)
10773 (asm_language_defn, minimal_language_defn): Use
10774 c_value_print_inner.
10775
10776 2020-03-13 Tom Tromey <tom@tromey.com>
10777
10778 * p-valprint.c (pascal_object_print_value_fields): Now static.
10779 * p-lang.h (pascal_object_print_value_fields): Don't declare.
10780
10781 2020-03-13 Tom Tromey <tom@tromey.com>
10782
10783 * c-valprint.c (c_val_print_array): Simplify.
10784
10785 2020-03-13 Tom Tromey <tom@tromey.com>
10786
10787 * valprint.c (value_print_array_elements): New function.
10788 * valprint.h (value_print_array_elements): Declare.
10789
10790 2020-03-13 Tom Tromey <tom@tromey.com>
10791
10792 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
10793 * mips-tdep.c (mips_print_register): Use
10794 value_print_scalar_formatted.
10795
10796 2020-03-13 Tom Tromey <tom@tromey.com>
10797
10798 * valprint.h (value_print_scalar_formatted): Declare.
10799 * valprint.c (value_print_scalar_formatted): New function.
10800
10801 2020-03-13 Tom Tromey <tom@tromey.com>
10802
10803 * valprint.h (generic_value_print): Declare.
10804 * valprint.c (generic_value_print): New function.
10805
10806 2020-03-13 Tom Tromey <tom@tromey.com>
10807
10808 * valprint.c (do_val_print): Call la_value_print_inner, if
10809 available.
10810 * rust-lang.c (rust_language_defn): Update.
10811 * p-lang.c (pascal_language_defn): Update.
10812 * opencl-lang.c (opencl_language_defn): Update.
10813 * objc-lang.c (objc_language_defn): Update.
10814 * m2-lang.c (m2_language_defn): Update.
10815 * language.h (struct language_defn) <la_value_print_inner>: New
10816 member.
10817 * language.c (unknown_language_defn, auto_language_defn): Update.
10818 * go-lang.c (go_language_defn): Update.
10819 * f-lang.c (f_language_defn): Update.
10820 * d-lang.c (d_language_defn): Update.
10821 * c-lang.c (c_language_defn, cplus_language_defn)
10822 (asm_language_defn, minimal_language_defn): Update.
10823 * ada-lang.c (ada_language_defn): Update.
10824
10825 2020-03-13 Tom Tromey <tom@tromey.com>
10826
10827 * c-valprint.c (c_value_print): Use common_val_print.
10828
10829 2020-03-13 Tom Tromey <tom@tromey.com>
10830
10831 * cp-valprint.c (cp_print_static_field): Use common_val_print.
10832
10833 2020-03-13 Tom Tromey <tom@tromey.com>
10834
10835 * f-valprint.c (f77_print_array_1, f_val_print): Use
10836 common_val_print.
10837
10838 2020-03-13 Tom Tromey <tom@tromey.com>
10839
10840 * riscv-tdep.c (riscv_print_one_register_info): Use
10841 common_val_print.
10842
10843 2020-03-13 Tom Tromey <tom@tromey.com>
10844
10845 * mi/mi-main.c (output_register): Use common_val_print.
10846
10847 2020-03-13 Tom Tromey <tom@tromey.com>
10848
10849 * infcmd.c (default_print_one_register_info): Use
10850 common_val_print.
10851
10852 2020-03-13 Tom Tromey <tom@tromey.com>
10853
10854 * valprint.h (common_val_print_checked): Declare.
10855 * valprint.c (common_val_print_checked): New function.
10856 * stack.c (print_frame_arg): Use common_val_print_checked.
10857
10858 2020-03-13 Tom Tromey <tom@tromey.com>
10859
10860 * valprint.c (do_val_print): New function, from val_print.
10861 (val_print): Use do_val_print.
10862 (common_val_print): Use do_val_print.
10863
10864 2020-03-13 Tom Tromey <tom@tromey.com>
10865
10866 * valprint.c (value_print): Use scoped_value_mark.
10867
10868 2020-03-13 Tom de Vries <tdevries@suse.de>
10869
10870 PR symtab/25646
10871 * psymtab.c (partial_symtab::partial_symtab): Don't set
10872 globals_offset and statics_offset. Push element onto
10873 current_global_psymbols and current_static_psymbols stacks.
10874 (concat): New function.
10875 (end_psymtab_common): Set globals_offset and statics_offset. Pop
10876 element from current_global_psymbols and current_static_psymbols
10877 stacks. Concat popped elements to global_psymbols and
10878 static_symbols.
10879 (add_psymbol_to_list): Use current_global_psymbols and
10880 current_static_psymbols stacks.
10881 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
10882 current_static_psymbols fields.
10883
10884 2020-03-12 Christian Biesinger <cbiesinger@google.com>
10885
10886 * corelow.c (sniff_core_bfd): Remove.
10887 (class core_target) <m_core_vec>: Remove.
10888 (core_target::core_target): Update.
10889 (core_file_fns): Remove.
10890 (deprecated_add_core_fns): Remove.
10891 (default_core_sniffer): Remove.
10892 (sniff_core_bfd): Remove.
10893 (default_check_format): Remove.
10894 (gdb_check_format): Remove.
10895 (core_target_open): Update.
10896 (core_target::get_core_register_section): Update.
10897 (get_core_registers_cb): Update.
10898 (core_target::fetch_registers): Update.
10899 * gdbcore.h (struct core_fns): Remove.
10900 (deprecated_add_core_fns): Remove.
10901 (default_core_sniffer): Remove.
10902 (default_check_format): Remove.
10903
10904 2020-03-12 Tom Tromey <tom@tromey.com>
10905
10906 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
10907 CORE_ADDR.
10908 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
10909
10910 2020-03-12 Tom Tromey <tom@tromey.com>
10911
10912 * remote.c (remote_target::download_tracepoint)
10913 (remote_target::enable_tracepoint)
10914 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
10915 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
10916 sprintf_vma.
10917
10918 2020-03-12 Tom Tromey <tom@tromey.com>
10919
10920 * symfile-mem.c: Update CORE_ADDR size assert.
10921
10922 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
10923
10924 * selftest.m4: Move to gdbsupport/.
10925 * acinclude.m4: Update path to selftest.m4.
10926
10927 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
10928
10929 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
10930 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
10931 gdbarch-selfselftests.c and selftest-arch.c.
10932 (SUBDIR_UNITTESTS_OBS): Rename to...
10933 (SELFTESTS_OBS): ... this.
10934 (COMMON_SFILES): Remove disasm-selftests.c and
10935 gdbarch-selftests.c.
10936 * configure.ac: Don't add selftest-arch.{c,o} to
10937 CONFIG_{SRCS,OBS}.
10938 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
10939 preprocessor conditions.
10940
10941 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
10942
10943 * configure.ac: Don't source bfd/development.sh.
10944 * selftest.m4: Modify comment.
10945 * configure: Re-generate.
10946
10947 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
10948
10949 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
10950 not "true" or "false".
10951 * configure: Re-generate.
10952
10953 2020-03-12 Christian Biesinger <cbiesinger@google.com>
10954
10955 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
10956 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
10957 renamed to arm_nbsd_supply_gregset.
10958 (fetch_register): Update to call arm_nbsd_supply_gregset.
10959 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
10960 (arm_netbsd_nat_target::fetch_registers): Update.
10961 (fetch_elfcore_registers): Removed.
10962 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
10963 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
10964 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
10965 not require NetBSD system headers.
10966 (arm_nbsd_regset): New struct.
10967 (arm_nbsd_iterate_over_regset_sections): New function.
10968 (arm_netbsd_init_abi_common): Updated to call
10969 set_gdbarch_iterate_over_regset_sections.
10970 * arm-nbsd-tdep.h: New file.
10971
10972 2020-03-11 Kevin Buettner <kevinb@redhat.com>
10973
10974 * symtab.c (find_pc_sect_line): Add check which prevents infinite
10975 recursion.
10976
10977 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
10978
10979 * configure: Re-generate.
10980
10981 2020-03-11 Tom Tromey <tromey@adacore.com>
10982
10983 * ada-typeprint.c (print_choices): Fix comment.
10984
10985 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
10986
10987 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
10988 previous item in the list, when the list has no items.
10989
10990 2020-03-11 Tom de Vries <tdevries@suse.de>
10991
10992 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
10993 PROP_LOCLIST handling code.
10994
10995 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
10996
10997 * buildsym-legacy.c (record_line): Pass extra parameter to
10998 record_line.
10999 * buildsym.c (buildsym_compunit::record_line): Take an extra
11000 parameter, reduce duplication in the line table, and record the
11001 is_stmt flag in the line table.
11002 * buildsym.h (buildsym_compunit::record_line): Add extra
11003 parameter.
11004 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
11005 non-statement lines.
11006 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
11007 this to the symtab builder.
11008 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
11009 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
11010 through to dwarf_record_line_1.
11011 * infrun.c (process_event_stop_test): When stepping, don't stop at
11012 a non-statement instruction, and only refresh the step info when
11013 we land in the middle of a line's range. Also add an extra
11014 comment.
11015 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
11016 field.
11017 * record-btrace.c (btrace_find_line_range): Only record lines
11018 marked as is-statement.
11019 * stack.c (frame_show_address): Show the frame address if we are
11020 in a non-statement sal.
11021 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
11022 (maintenance_print_one_line_table): Print a header for the is_stmt
11023 column, and include is_stmt information in the output.
11024 * symtab.c (find_pc_sect_line): Find lines marked as statements in
11025 preference to non-statements.
11026 (find_pcs_for_symtab_line): Prefer is-statement entries.
11027 (find_line_common): Likewise.
11028 * symtab.h (struct linetable_entry): Add is_stmt field.
11029 (struct symtab_and_line): Likewise.
11030 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
11031 arranging the line table.
11032
11033 2020-03-07 Tom de Vries <tdevries@suse.de>
11034
11035 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
11036 DIE.
11037
11038 2020-03-07 Tom Tromey <tom@tromey.com>
11039
11040 * valops.c (value_literal_complex): Remove obsolete comment.
11041 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
11042 comment.
11043
11044 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11045
11046 * infrun.h: Forward-declare thread_info.
11047 (set_step_info): Add thread_info parameter, add doc.
11048 * infrun.c (set_step_info): Add thread_info parameter, move doc
11049 to header.
11050 * infrun.c (process_event_stop_test): Pass thread to
11051 set_step_info call.
11052 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
11053 set_step_info.
11054 (prepare_one_step): Add thread_info parameter, pass it to
11055 set_step_frame and prepare_one_step (recursive) call.
11056 (step_1): Pass thread to prepare_one_step call.
11057 (step_command_fsm::should_stop): Pass thread to
11058 prepare_one_step.
11059 (until_next_fsm): Pass thread to set_step_frame call.
11060 (finish_command): Pass thread to set_step_info call.
11061
11062 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
11063
11064 * windows-tdep.c (windows_solib_create_inferior_hook):
11065 Check if inferior is running.
11066
11067 2020-03-06 Tom de Vries <tdevries@suse.de>
11068
11069 * NEWS: Fix "the the".
11070 * ctfread.c: Same.
11071
11072 2020-03-06 Tom de Vries <tdevries@suse.de>
11073
11074 * psymtab.c (psymtab_to_symtab): Don't print "done.".
11075
11076 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11077
11078 * .dir-locals.el: Add a comment referencing the other copies of
11079 this file.
11080
11081 2020-03-05 John Baldwin <jhb@FreeBSD.org>
11082
11083 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
11084 psargs.
11085
11086 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11087
11088 * .gitattributes: New file.
11089
11090 2020-03-04 Tom Tromey <tom@tromey.com>
11091
11092 * symmisc.c (print_symbol_bcache_statistics)
11093 (print_objfile_statistics): Update.
11094 * symfile.c (allocate_symtab): Use intern.
11095 * psymtab.c (partial_symtab::partial_symtab): Use intern.
11096 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
11097 macro_cache>: Remove.
11098 <string_cache>: New member.
11099 (struct objfile) <intern>: New methods.
11100 * elfread.c (elf_symtab_read): Use intern.
11101 * dwarf2/read.c (fixup_go_packaging): Intern package name.
11102 (dwarf2_compute_name, dwarf2_physname)
11103 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
11104 names.
11105 (guess_partial_die_structure_name): Update.
11106 (partial_die_info::fixup): Intern name.
11107 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
11108 name.
11109 (dwarf2_name): Intern name. Update.
11110 * buildsym.c (buildsym_compunit::get_macro_table): Use
11111 string_cache.
11112
11113 2020-03-04 Tom Tromey <tom@tromey.com>
11114
11115 * jit.c (bfd_open_from_target_memory): Make "target" const.
11116 * corefile.c (gnutarget): Now const.
11117 * gdbcore.h (gnutarget): Now const.
11118
11119 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
11120
11121 * NEWS: Mention support for WOW64 processes.
11122 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
11123 (amd64_windows_segment_register_p): Remove static.
11124 (_initialize_amd64_windows_nat): Update.
11125 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
11126 * i386-windows-nat.c (context_offset): Update.
11127 (i386_mappings): Rename and remove static.
11128 (i386_windows_segment_register_p): Remove static.
11129 (_initialize_i386_windows_nat): Update.
11130 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
11131 (STATUS_WX86_SINGLE_STEP): New macro.
11132 (EnumProcessModulesEx): New macro.
11133 (Wow64SuspendThread): New macro.
11134 (Wow64GetThreadContext): New macro.
11135 (Wow64SetThreadContext): New macro.
11136 (Wow64GetThreadSelectorEntry): New macro.
11137 (windows_set_context_register_offsets): Add static.
11138 (windows_set_segment_register_p): Likewise.
11139 (windows_add_thread): Adapt for WOW64 processes.
11140 (windows_fetch_one_register): Likewise.
11141 (windows_nat_target::fetch_registers): Likewise.
11142 (windows_store_one_register): Likewise.
11143 (display_selector): Likewise.
11144 (display_selectors): Likewise.
11145 (handle_exception): Likewise.
11146 (windows_continue): Likewise.
11147 (windows_nat_target::resume): Likewise.
11148 (windows_add_all_dlls): Likewise.
11149 (do_initial_windows_stuff): Likewise.
11150 (windows_nat_target::attach): Likewise.
11151 (windows_get_exec_module_filename): Likewise.
11152 (windows_nat_target::create_inferior): Likewise.
11153 (windows_xfer_siginfo): Likewise.
11154 (_initialize_loadable): Initialize Wow64SuspendThread,
11155 Wow64GetThreadContext, Wow64SetThreadContext,
11156 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
11157 * windows-nat.h (windows_set_context_register_offsets):
11158 Remove declaration.
11159 (windows_set_segment_register_p): Likewise.
11160 (i386_windows_segment_register_p): Add declaration.
11161 (amd64_windows_segment_register_p): Likewise.
11162
11163 2020-03-04 Luis Machado <luis.machado@linaro.org>
11164
11165 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
11166 in "info registers" for AArch64/ARM.
11167
11168 The change caused "info registers" to not print GPR's.
11169
11170 gdb/ChangeLog:
11171
11172 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
11173
11174 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
11175 when reg->group is empty and reggroup is not.
11176
11177 2020-03-03 Tom Tromey <tromey@adacore.com>
11178
11179 * dwarf2/frame.c (struct dwarf2_frame_cache)
11180 <checked_tailcall_bottom, entry_cfa_sp_offset,
11181 entry_cfa_sp_offset_p>: Remove members.
11182 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
11183 (dwarf2_frame_prev_register): Don't call
11184 dwarf2_tailcall_sniffer_first.
11185 (dwarf2_append_unwinders): Don't append tailcall unwinder.
11186 * frame-unwind.c (add_unwinder): New fuction.
11187 (frame_unwind_init): Use it. Add tailcall unwinder.
11188
11189 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
11190 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11191
11192 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
11193 value should be printed as true.
11194
11195 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
11196
11197 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
11198 (windows_init_abi): Set and use windows_so_ops.
11199
11200 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
11201
11202 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
11203 when verifying if dealing with a convenience variable.
11204
11205 2020-03-03 Luis Machado <luis.machado@linaro.org>
11206
11207 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
11208
11209 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11210
11211 * infrun.c (gdbarch_supports_displaced_stepping): New.
11212 (use_displaced_stepping): Break up conditions in smaller pieces.
11213 Use gdbarch_supports_displaced_stepping.
11214 (displaced_step_prepare_throw): Use
11215 gdbarch_supports_displaced_stepping.
11216
11217 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
11218
11219 * NEWS: Mention new behaviour of the history filename.
11220 * top.c (write_history_p): Add comment.
11221 (show_write_history_p): Add header comment, give a different
11222 message when history writing is on, but the history filename is
11223 empty.
11224 (history_filename): Add comment.
11225 (history_filename_empty): New function.
11226 (show_history_filename): Add header comment, give a different
11227 message when the filename is empty.
11228 (init_history): Compare history_filename against nullptr, and only
11229 read history if the filename is not empty.
11230 (set_history_filename): Add header comment, and only make
11231 non-empty filenames absolute.
11232 (init_main): Make the filename argument to 'set history filename'
11233 optional.
11234
11235 2020-03-02 Christian Biesinger <cbiesinger@google.com>
11236
11237 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
11238 (arm_supply_vfpregset): ...this, and update to use VFP registers.
11239 (fetch_fp_register): Update.
11240 (fetch_fp_regs): Update.
11241 (store_fp_register): Update.
11242 (store_fp_regs): Update.
11243 (arm_netbsd_nat_target::read_description): New function.
11244 (fetch_elfcore_registers): Update.
11245
11246 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
11247
11248 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
11249 general_thread if the stop reply is missing a thread-id.
11250 (remote_target::process_stop_reply): Use the first non-exited
11251 thread if the target didn't pass a thread-id.
11252 * infrun.c (do_target_wait): Move call to
11253 switch_to_inferior_no_thread to ....
11254 (do_target_wait_1): ... here.
11255
11256 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
11257
11258 * debuginfod-support.c: Include defs.h first.
11259
11260 2020-02-28 Tom de Vries <tdevries@suse.de>
11261
11262 * symfile.c (set_initial_language): Use default language for lookup.
11263
11264 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
11265
11266 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
11267 reader variable, pass `this` to read_cutu_die_from_dwo.
11268
11269 2020-02-27 Aaron Merey <amerey@redhat.com>
11270
11271 * source.c (open_source_file): Check for nullptr when computing
11272 srcpath.
11273
11274 2020-02-27 Tom Tromey <tromey@adacore.com>
11275
11276 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
11277 member.
11278 (dwarf2_add_field): Don't update nfields.
11279 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
11280
11281 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11282
11283 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
11284 abs.
11285
11286 2020-02-26 Tom Tromey <tom@tromey.com>
11287
11288 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
11289 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
11290 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
11291 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
11292 per_cu_data.
11293
11294 2020-02-26 Tom Tromey <tom@tromey.com>
11295
11296 * dwarf2/index-write.c (psym_index_map): Change type.
11297 (add_address_entry_worker, write_one_signatured_type)
11298 (recursively_count_psymbols, recursively_write_psymbols)
11299 (class debug_names, psyms_seen_size, write_gdbindex)
11300 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
11301
11302 2020-02-26 Aaron Merey <amerey@redhat.com>
11303
11304 * Makefile.in: Handle optional debuginfod support.
11305 * NEWS: Update.
11306 * README: Add --with-debuginfod summary.
11307 * config.in: Regenerate.
11308 * configure: Regenerate.
11309 * configure.ac: Handle optional debuginfod support.
11310 * debuginfod-support.c: debuginfod helper functions.
11311 * debuginfod-support.h: Ditto.
11312 * doc/gdb.texinfo: Add --with-debuginfod to configure options
11313 summary.
11314 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
11315 when a dwz file cannot be found.
11316 * elfread.c (elf_symfile_read): Query debuginfod servers when a
11317 debuginfo file cannot be found.
11318 * source.c (open_source_file): Query debuginfod servers when a
11319 source file cannot be found.
11320 * top.c (print_gdb_configuration): Include
11321 --{with,without}-debuginfod in the output.
11322
11323 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
11324
11325 * thread.c (thr_try_catch_cmd): Print thread name.
11326
11327 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
11328
11329 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
11330 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
11331 dwarf2_fetch_die_type_sect_off): Move to...
11332 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
11333 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
11334 dwarf2_fetch_die_type_sect_off): ... here.
11335 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
11336 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
11337 dwarf2_fetch_die_type_sect_off): Move doc to header file.
11338
11339 2020-02-26 Tom de Vries <tdevries@suse.de>
11340
11341 PR gdb/25603
11342 * symfile.c (set_initial_language): Exit-early if
11343 language_mode == language_mode_manual.
11344
11345 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
11346
11347 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
11348 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
11349 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
11350
11351 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
11352
11353 * gdbtypes.c (create_array_type_with_stride): Handle negative
11354 array strides.
11355 * valarith.c (value_subscripted_rvalue): Likewise.
11356
11357 2020-02-25 Luis Machado <luis.machado@linaro.org>
11358
11359 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
11360
11361 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
11362
11363 * loc.h (dwarf2_get_die_type): Move to...
11364 * read.h (dwarf2_get_die_type): ... here.
11365 * read.c (dwarf2_get_die_type): Move doc to header.
11366
11367 2020-02-25 Joel Brobecker <brobecker@adacore.com>
11368
11369 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
11370 'gnulib/Makefile.in' to the list.
11371
11372 2020-02-24 Tom Tromey <tom@tromey.com>
11373
11374 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
11375 Remove.
11376 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
11377 XOBNEWVEC.
11378
11379 2020-02-24 Tom Tromey <tom@tromey.com>
11380
11381 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
11382 New method.
11383 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
11384 (dw2_do_instantiate_symtab, dw2_get_file_names)
11385 (build_type_psymtab_dependencies, load_full_type_unit): Update.
11386
11387 2020-02-24 Tom Tromey <tom@tromey.com>
11388
11389 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
11390 make_scoped_restore.
11391 (dwarf2_psymtab::read_symtab): Don't clear
11392 reading_partial_symbols.
11393
11394 2020-02-24 Tom de Vries <tdevries@suse.de>
11395
11396 PR gdb/25592
11397 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
11398
11399 2020-02-24 Tom de Vries <tdevries@suse.de>
11400
11401 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
11402 commands layout next/prev/regs.
11403
11404 2020-02-22 Tom Tromey <tom@tromey.com>
11405
11406 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
11407 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
11408
11409 2020-02-22 Tom Tromey <tom@tromey.com>
11410
11411 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
11412
11413 2020-02-22 Tom Tromey <tom@tromey.com>
11414
11415 * tui/tui-win.c (_initialize_tui_win): Add usage text.
11416 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
11417 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
11418 * tui/tui.c (_initialize_tui): Add usage text.
11419
11420 2020-02-22 Tom Tromey <tom@tromey.com>
11421
11422 * tui/tui-win.c (tui_set_focus_command)
11423 (tui_set_win_height_command): Use error_no_arg.
11424 (_initialize_tui_win): Update help text.
11425 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
11426
11427 2020-02-22 Tom Tromey <tom@tromey.com>
11428
11429 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
11430 * tui/tui-disasm.h (struct tui_disasm_window)
11431 <display_start_addr>: Declare.
11432 * tui/tui-source.h (struct tui_source_window)
11433 <display_start_addr>: Declare.
11434 * tui/tui-winsource.h (struct tui_source_window_base)
11435 <show_source_line, display_start_addr>: New methods.
11436 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
11437 Rename and move to protected section.
11438 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
11439 (tui_source_window_base::do_erase_source_content): Update.
11440 (tui_source_window_base::show_source_line): Now a method.
11441 (tui_source_window_base::show_source_content)
11442 (tui_source_window_base::tui_source_window_base)
11443 (tui_source_window_base::rerender)
11444 (tui_source_window_base::refill)
11445 (tui_source_window_base::do_scroll_horizontal)
11446 (tui_source_window_base::set_is_exec_point_at)
11447 (tui_source_window_base::update_breakpoint_info)
11448 (tui_source_window_base::update_exec_info): Update.
11449 * tui/tui-source.c (tui_source_window::set_contents)
11450 (tui_source_window::showing_source_p)
11451 (tui_source_window::do_scroll_vertical)
11452 (tui_source_window::location_matches_p)
11453 (tui_source_window::line_is_displayed): Update.
11454 (tui_source_window::display_start_addr): New method.
11455 * tui/tui-disasm.c (tui_disasm_window::set_contents)
11456 (tui_disasm_window::do_scroll_vertical)
11457 (tui_disasm_window::location_matches_p): Update.
11458 (tui_disasm_window::display_start_addr): New method.
11459
11460 2020-02-22 Tom Tromey <tom@tromey.com>
11461
11462 * NEWS: Add entry for gdb.register_window_type.
11463 * tui/tui-layout.h (window_factory): New typedef.
11464 (tui_register_window): Declare.
11465 * tui/tui-layout.c (saved_tui_windows): New global.
11466 (tui_apply_current_layout): Use it.
11467 (tui_register_window): New function.
11468 * python/python.c (do_start_initialization): Call
11469 gdbpy_initialize_tui.
11470 (python_GdbMethods): Add "register_window_type" function.
11471 * python/python-internal.h (gdbpy_register_tui_window)
11472 (gdbpy_initialize_tui): Declare.
11473 * python/py-tui.c: New file.
11474 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
11475
11476 2020-02-22 Tom Tromey <tom@tromey.com>
11477
11478 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
11479
11480 2020-02-22 Tom Tromey <tom@tromey.com>
11481
11482 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
11483 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
11484 * tui/tui-data.c (tui_set_win_with_focus): Remove.
11485 (tui_set_win_focus_to): Move from tui-win.c.
11486
11487 2020-02-22 Tom Tromey <tom@tromey.com>
11488
11489 * tui/tui-layout.c (make_standard_window, get_locator_window): New
11490 functions.
11491 (known_window_types): New global.
11492 (tui_get_window_by_name): Reimplement.
11493 (initialize_known_windows): New function.
11494 (validate_window_name): Rewrite.
11495 (_initialize_tui_layout): Call initialize_known_windows.
11496
11497 2020-02-22 Tom Tromey <tom@tromey.com>
11498
11499 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
11500 Remove constants.
11501 * tui/tui-winsource.h (struct tui_source_window_base)
11502 <tui_source_window_base>: Remove parameter.
11503 * tui/tui-winsource.c
11504 (tui_source_window_base::tui_source_window_base): Remove
11505 parameter.
11506 (tui_source_window_base::refill): Update.
11507 * tui/tui-stack.h (struct tui_locator_window)
11508 <tui_locator_window>: Update.
11509 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
11510 Default the constructor.
11511 * tui/tui-regs.h (struct tui_data_item_window)
11512 <tui_data_item_window>: Default the constructor.
11513 (struct tui_data_window) <tui_data_window>: Likewise.
11514 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
11515 Default the constructor.
11516 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
11517 Default the constructor.
11518 <type>: Remove.
11519 (struct tui_win_info) <tui_win_info>: Default the constructor.
11520 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
11521 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
11522 Default the constructor.
11523
11524 2020-02-22 Tom Tromey <tom@tromey.com>
11525
11526 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
11527 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
11528 * tui/tui-win.c (tui_resize_all): Don't call
11529 tui_delete_invisible_windows.
11530 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
11531 done.
11532 (tui_set_layout): Update.
11533 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
11534 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
11535 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
11536
11537 2020-02-22 Tom Tromey <tom@tromey.com>
11538
11539 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
11540 correctly.
11541
11542 2020-02-22 Tom Tromey <tom@tromey.com>
11543
11544 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
11545
11546 2020-02-22 Tom Tromey <tom@tromey.com>
11547
11548 * tui/tui-winsource.h (struct tui_source_window_iterator)
11549 <inner_iterator>: New etytypedef.
11550 <tui_source_window_iterator>: Take "end" parameter.
11551 <tui_source_window_iterator>: Take iterator.
11552 <operator*, advance>: Update.
11553 <m_iter>: Change type.
11554 <m_end>: New field.
11555 (struct tui_source_windows) <begin, end>: Update.
11556 * tui/tui-layout.c (tui_windows): New global.
11557 (tui_apply_current_layout): Clear tui_windows.
11558 (tui_layout_window::apply): Update tui_windows.
11559 * tui/tui-data.h (tui_windows): Declare.
11560 (all_tui_windows): Now inline function.
11561 (class tui_window_iterator, struct all_tui_windows): Remove.
11562
11563 2020-02-22 Tom Tromey <tom@tromey.com>
11564
11565 PR tui/17850:
11566 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
11567 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
11568 "height" argument.
11569 (class tui_layout_window) <get_sizes>: Likewise.
11570 (class tui_layout_split) <tui_layout_split>: Add "vertical"
11571 argument.
11572 <get_sizes>: Add "height" argument.
11573 <m_vertical>: New field.
11574 * tui/tui-layout.c (tui_layout_split::clone): Update.
11575 (tui_layout_split::get_sizes): Add "height" argument.
11576 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
11577 (tui_new_layout_command): Parse "-horizontal".
11578 (_initialize_tui_layout): Update help string.
11579 (tui_layout_split::specification): Add "-horizontal" when needed.
11580 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
11581 argument.
11582 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
11583 New methods.
11584
11585 2020-02-22 Tom Tromey <tom@tromey.com>
11586
11587 * tui/tui-layout.h (enum tui_adjust_result): New.
11588 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
11589 (class tui_layout_window) <adjust_size>: Return
11590 tui_adjust_result. Rewrite.
11591 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
11592 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
11593
11594 2020-02-22 Tom Tromey <tom@tromey.com>
11595
11596 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
11597 parameter and return types.
11598 (class tui_layout_base) <specification>: Add "depth".
11599 (class tui_layout_window) <specification>: Add "depth".
11600 (class tui_layout_split) <specification>: Add "depth".
11601 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
11602 and return types.
11603 (tui_new_layout_command): Parse sub-layouts.
11604 (_initialize_tui_layout): Update help string.
11605 (tui_layout_window::specification): Add "depth".
11606 (add_layout_command): Update.
11607
11608 2020-02-22 Tom Tromey <tom@tromey.com>
11609
11610 * NEWS: Add "tui new-layout" item.
11611 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
11612 Add new-layout command to help text.
11613 (validate_window_name): New function.
11614 (tui_new_layout_command): New function.
11615 (_initialize_tui_layout): Register "new-layout".
11616 (tui_layout_window::specification): New method.
11617 (tui_layout_window::specification): New method.
11618 * tui/tui-layout.h (class tui_layout_base) <specification>: New
11619 method.
11620 (class tui_layout_window) <specification>: New method.
11621 (class tui_layout_split) <specification>: New method.
11622
11623 2020-02-22 Tom Tromey <tom@tromey.com>
11624
11625 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
11626 * tui/tui-win.c (window_name_completer): Update comment.
11627 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
11628 Declare method.
11629 (class tui_layout_window) <replace_window>: Likewise.
11630 (class tui_layout_split) <replace_window>: Likewise.
11631 (tui_set_layout): Don't declare.
11632 (tui_set_initial_layout): Declare function.
11633 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
11634 (asm_regs_layout): New globals.
11635 (tui_current_layout, show_layout): Remove.
11636 (tui_set_layout, tui_add_win_to_layout): Rewrite.
11637 (find_layout, tui_apply_layout): New function.
11638 (layout_completer): Remove.
11639 (tui_next_layout): Reimplement.
11640 (tui_next_layout_command): New function.
11641 (tui_set_initial_layout, tui_prev_layout_command): New functions.
11642 (tui_regs_layout): Reimplement.
11643 (tui_regs_layout_command): New function.
11644 (extract_display_start_addr): Rewrite.
11645 (next_layout, prev_layout): Remove.
11646 (tui_layout_window::replace_window): New method.
11647 (tui_layout_split::replace_window): New method.
11648 (destroy_layout): New function.
11649 (layout_list): New global.
11650 (add_layout_command): New function.
11651 (initialize_layouts): Update.
11652 (tui_layout_command): New function.
11653 (_initialize_tui_layout): Install "layout" commands.
11654 * tui/tui-data.h (enum tui_layout_type): Remove.
11655 (tui_current_layout): Don't declare.
11656
11657 2020-02-22 Tom Tromey <tom@tromey.com>
11658
11659 * tui/tui-regs.c (tui_reg_layout): Remove.
11660 (tui_reg_command): Use tui_regs_layout.
11661 * tui/tui-layout.h (tui_reg_command): Declare.
11662 * tui/tui-layout.c (tui_reg_command): New function.
11663
11664 2020-02-22 Tom Tromey <tom@tromey.com>
11665
11666 * tui/tui.c (tui_rl_delete_other_windows): Call
11667 tui_remove_some_windows.
11668 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
11669 Declare method.
11670 (class tui_layout_window) <remove_windows>: New method.
11671 (class tui_layout_split) <remove_windows>: Declare.
11672 (tui_remove_some_windows): Declare.
11673 * tui/tui-layout.c (tui_remove_some_windows): New function.
11674 (tui_layout_split::remove_windows): New method.
11675
11676 2020-02-22 Tom Tromey <tom@tromey.com>
11677
11678 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
11679 * tui/tui-layout.h (tui_next_layout): Declare.
11680 * tui/tui-layout.c (tui_next_layout): New function.
11681
11682 2020-02-22 Tom Tromey <tom@tromey.com>
11683
11684 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
11685 correct coordinates.
11686
11687 2020-02-22 Tom Tromey <tom@tromey.com>
11688
11689 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
11690 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
11691 DATA_WIN case.
11692
11693 2020-02-22 Tom Tromey <tom@tromey.com>
11694
11695 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
11696 TUI_DISASM_WIN, not tui_win_list.
11697
11698 2020-02-22 Tom Tromey <tom@tromey.com>
11699
11700 * valprint.c (generic_val_print_enum_1)
11701 (val_print_type_code_flags): Style member names.
11702 * rust-lang.c (val_print_struct, rust_print_enum)
11703 (rust_print_struct_def, rust_internal_print_type): Style member
11704 names.
11705 * p-valprint.c (pascal_object_print_value_fields): Style member
11706 names. Only call fprintf_symbol_filtered for static members.
11707 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
11708 * f-valprint.c (f_val_print): Style member names.
11709 * f-typeprint.c (f_type_print_base): Style member names.
11710 * cp-valprint.c (cp_print_value_fields): Style member names. Only
11711 call fprintf_symbol_filtered for static members.
11712 (cp_print_class_member): Style member names.
11713 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
11714 member names.
11715 * ada-valprint.c (ada_print_scalar): Style enum names.
11716 (ada_val_print_enum): Likewise.
11717 * ada-typeprint.c (print_enum_type): Style enum names.
11718
11719 2020-02-21 Tom Tromey <tom@tromey.com>
11720
11721 * psympriv.h (struct partial_symtab): Update comment.
11722
11723 2020-02-21 Tom Tromey <tromey@adacore.com>
11724
11725 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
11726 type is CORE_ADDR.
11727
11728 2020-02-21 Tom de Vries <tdevries@suse.de>
11729
11730 PR gdb/25534
11731 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
11732 if dependencies[i]->user != NULL.
11733
11734 2020-02-21 Ali Tamur <tamur@google.com>
11735
11736 * dwarf2/read.c (dwarf2_name): Add null check.
11737
11738 2020-02-20 Tom Tromey <tom@tromey.com>
11739
11740 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
11741 ">=", in binary search.
11742 (dwarf2_find_containing_comp_unit): New overload.
11743 (run_test): New self-test.
11744 (_initialize_dwarf2_read): Register new test.
11745
11746 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
11747
11748 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
11749 * riscv-tdep.h: Likewise.
11750 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
11751 rv32-only CSR.
11752 * features/riscv/64bit-csr.xml: Regenerated.
11753
11754 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
11755 Tom Tromey <tom@tromey.com>
11756
11757 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
11758 of 'fputc_unfiltered'.
11759 (putchar_unfiltered): Call 'fputc_unfiltered'.
11760 (fputc_unfiltered): Call 'fputs_unfiltered'.
11761
11762 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
11763
11764 * config.in: Regenerate.
11765 * configure: Regenerate.
11766 * configure.ac: Add --with-python-libdir option.
11767 * main.c: Use WITH_PYTHON_LIBDIR.
11768
11769 2020-02-19 Tom Tromey <tom@tromey.com>
11770
11771 * symtab.c (general_symbol_info::compute_and_set_names): Use
11772 obstack_strndup. Simplify call to symbol_set_demangled_name.
11773
11774 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
11775
11776 * dwarf2/read.c (allocate_signatured_type_table,
11777 allocate_dwo_unit_table, allocate_type_unit_groups_table,
11778 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
11779 Remove objfile parameter, update all callers.
11780
11781 2020-02-19 Doug Evans <dje@google.com>
11782
11783 PR rust/25535
11784 * rust-lang.c (rust_print_enum): Apply embedded_offset to
11785 rust_enum_variant calculation.
11786
11787 2020-02-19 Tom Tromey <tromey@adacore.com>
11788
11789 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
11790
11791 2020-02-19 Tom Tromey <tromey@adacore.com>
11792
11793 * ada-lang.c (cache_symbol): Use obstack_strdup.
11794
11795 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
11796
11797 * configure: Regenerate.
11798
11799 2020-02-19 Tom Tromey <tromey@adacore.com>
11800
11801 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
11802 NULL check.
11803
11804 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
11805
11806 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
11807
11808 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
11809
11810 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
11811 if GDBSERVER is not defined.
11812 (riscv_tdesc_cache): Likewise, also store const target_desc.
11813 (STATIC_IN_GDB): Define.
11814 (riscv_create_target_description): Update declaration with
11815 STATIC_IN_GDB.
11816 (riscv_lookup_target_description): New function, only define if
11817 GDBSERVER is not defined.
11818 * arch/riscv.h (riscv_create_target_description): Declare only
11819 when GDBSERVER is defined.
11820 (riscv_lookup_target_description): New declaration when GDBSERVER
11821 is not defined.
11822 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
11823 (riscv_linux_read_features): ...this, and return
11824 riscv_gdbarch_features instead of target_desc.
11825 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
11826 (riscv_linux_read_description): Rename to...
11827 (riscv_linux_read_features): ...this.
11828 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
11829 Update to use riscv_gdbarch_features and
11830 riscv_lookup_target_description.
11831 * riscv-tdep.c (riscv_find_default_target_description): Use
11832 riscv_lookup_target_description instead of
11833 riscv_create_target_description.
11834
11835 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
11836
11837 * valprint.c (generic_val_print_enum_1): When printing a flag
11838 enum with value 0 and there is no enumerator with value 0, print
11839 just "0" instead of "(unknown: 0x0)".
11840
11841 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
11842
11843 * valprint.c (generic_val_print_enum_1): Print unknown part of
11844 flag enum in hex.
11845
11846 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
11847
11848 * dwarf2/read.c (update_enumeration_type_from_children): Allow
11849 flag enums to contain duplicate enumerators.
11850 * valprint.c (generic_val_print_enum_1): Update comment.
11851
11852 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
11853
11854 * dwarf2/read.c: Include "count-one-bits.h".
11855 (update_enumeration_type_from_children): If an enumerator has
11856 multiple bits set, don't treat the enumeration as a "flag enum".
11857 * valprint.c (generic_val_print_enum_1): Assert that enumerators
11858 of flag enums have 0 or 1 bit set.
11859
11860 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
11861
11862 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
11863 conversion.
11864 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11865 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
11866 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11867 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
11868 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11869
11870 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
11871
11872 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
11873
11874 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
11875
11876 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
11877 displaced_step_closure_up.
11878 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
11879 (struct displaced_step_closure_up):
11880 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11881 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
11882 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
11883 Likewise.
11884 * gdbarch.sh (displaced_step_copy_insn): Likewise.
11885 * gdbarch.c, gdbarch.h: Re-generate.
11886 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
11887 displaced_step_closure_up.
11888 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11889 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
11890 * infrun.h (displaced_step_closure_up): New type alias.
11891 (struct displaced_step_inferior_state) <step_closure>: Change
11892 type to displaced_step_closure_up.
11893 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
11894 displaced_step_closure_up.
11895 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11896
11897 2020-02-14 Tom Tromey <tom@tromey.com>
11898
11899 * minidebug.c (gnu_debug_key): New global.
11900 (find_separate_debug_file_in_section): Use it.
11901
11902 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
11903
11904 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
11905 std::unique_ptr.
11906 * gdbarch.c: Re-generate.
11907 * gdbarch.h: Re-generate.
11908 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
11909 change.
11910 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
11911 type to std::unique_ptr.
11912 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
11913 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11914 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
11915 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
11916 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
11917 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11918 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
11919 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
11920 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11921
11922 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
11923
11924 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
11925 std::unique_ptr.
11926 (displaced_step_clear): Rename to...
11927 (displaced_step_reset): ... this. Just call displaced->reset ().
11928 (displaced_step_clear_cleanup): Rename to...
11929 (displaced_step_reset_cleanup): ... this.
11930 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
11931 (displaced_step_fixup): Likewise.
11932 (resume_1): Likewise.
11933 (handle_inferior_event): Restore child's memory before calling
11934 displaced_step_fixup on the parent.
11935 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
11936 to std::unique_ptr.
11937 <step_closure>: Change type to std::unique_ptr.
11938
11939 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
11940
11941 * arm-tdep.c: Include count-one-bits.h.
11942 (cleanup_block_store_pc): Use count_one_bits.
11943 (cleanup_block_load_pc): Use count_one_bits.
11944 (arm_copy_block_xfer): Use count_one_bits.
11945 (thumb2_copy_block_xfer): Use count_one_bits.
11946 (thumb_copy_pop_pc_16bit): Use count_one_bits.
11947 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
11948 (thumb_get_next_pcs_raw): Use count_one_bits.
11949 (arm_get_next_pcs_raw): Use count_one_bits_l.
11950 * arch/arm.c (bitcount): Remove.
11951 * arch/arm.h (bitcount): Remove.
11952
11953 2020-02-14 Tom Tromey <tromey@adacore.com>
11954
11955 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
11956 Update.
11957 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
11958 * dwarf2/loc.c (call_site_find_chain_1): Return
11959 unique_xmalloc_ptr.
11960 (call_site_find_chain): Likewise.
11961
11962 2020-02-14 Richard Biener <rguenther@suse.de>
11963
11964 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
11965 on expression with division operators.
11966
11967 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11968
11969 * MAINTAINERS (Write After Approval): Adding myself.
11970
11971 2020-02-12 Tom Tromey <tom@tromey.com>
11972
11973 * event-loop.c (event_data, gdb_event, event_handler_func):
11974 Remove.
11975
11976 2020-02-12 Tom Tromey <tom@tromey.com>
11977
11978 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
11979 (dwarf2_frame_objfile_data): Add comment.
11980 (find_comp_unit, set_comp_unit): New functions.
11981 (dwarf2_frame_find_fde): Use find_comp_unit.
11982 (dwarf2_build_frame_info): Use set_comp_unit.
11983
11984 2020-02-12 Tom Tromey <tom@tromey.com>
11985
11986 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
11987 (comp_unit): Don't initialize objfile.
11988 (execute_cfa_program): Add text_offset parameter.
11989 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
11990 (dwarf2_frame_cache): Update.
11991 (dwarf2_build_frame_info): Don't set "objfile" member.
11992
11993 2020-02-12 Tom Tromey <tom@tromey.com>
11994
11995 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
11996 (decode_frame_entry): Likewise.
11997 (dwarf2_build_frame_info): Update.
11998
11999 2020-02-12 Tom Tromey <tom@tromey.com>
12000
12001 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
12002 (decode_frame_entry_1): Use the comp_unit obstack.
12003
12004 2020-02-12 Tom Tromey <tom@tromey.com>
12005
12006 * dwarf2/frame.c (struct comp_unit): Add initializers and
12007 constructor.
12008 (dwarf2_frame_objfile_data): Store a comp_unit.
12009 (dwarf2_frame_find_fde): Update.
12010 (dwarf2_build_frame_info): Use "new".
12011
12012 2020-02-12 Tom Tromey <tom@tromey.com>
12013
12014 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
12015 (dwarf2_fde_table): Typedef for std::vector.
12016 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
12017 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
12018 (decode_frame_entry): Update.
12019 (dwarf2_build_frame_info): Use "new".
12020
12021 2020-02-12 Christian Biesinger <cbiesinger@google.com>
12022
12023 * arm-tdep.c (arm_gdbarch_init): Update.
12024 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
12025 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
12026 have_neon, is_m>: Change to bool.
12027
12028 2020-02-12 Christian Biesinger <cbiesinger@google.com>
12029
12030 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
12031
12032 2020-02-12 Tom Tromey <tom@tromey.com>
12033
12034 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
12035
12036 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
12037
12038 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
12039 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
12040
12041 2020-02-11 Tom Tromey <tom@tromey.com>
12042
12043 * psymtab.h: Update comment.
12044
12045 2020-02-11 Tom Tromey <tom@tromey.com>
12046
12047 * gdb_obstack.h (struct auto_obstack): Use
12048 DISABLE_COPY_AND_ASSIGN.
12049
12050 2020-02-11 Tom Tromey <tom@tromey.com>
12051
12052 * dwarf2/frame.h (struct objfile): Don't forward declare.
12053
12054 2020-02-11 Christian Biesinger <cbiesinger@google.com>
12055
12056 * cris-tdep.c (cris_supply_gregset): Change signature to match
12057 what struct regset expects.
12058 (cris_regset): New struct.
12059 (fetch_core_registers): Remove.
12060 (cris_iterate_over_regset_sections): New function.
12061 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
12062 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
12063
12064 2020-02-11 Christian Biesinger <cbiesinger@google.com>
12065
12066 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
12067 registers.
12068
12069 2020-02-11 Christian Biesinger <cbiesinger@google.com>
12070
12071 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
12072
12073 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
12074
12075 * configure: Re-generate.
12076
12077 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
12078
12079 * configure: Re-generate.
12080
12081 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
12082
12083 * acinclude: Update warning.m4 path.
12084 * warning.m4: Move to gdbsupport.
12085
12086 2020-02-11 Tom Tromey <tromey@adacore.com>
12087
12088 * remote.c (remote_console_output): Update.
12089 * printcmd.c (printf_command): Update.
12090 * event-loop.c (gdb_wait_for_event): Update.
12091 * linux-nat.c (sigchld_handler): Update.
12092 * remote-sim.c (gdb_os_write_stdout): Update.
12093 (gdb_os_flush_stdout): Update.
12094 (gdb_os_flush_stderr): Update.
12095 (gdb_os_write_stderr): Update.
12096 * exceptions.c (print_exception): Update.
12097 * remote-fileio.c (remote_fileio_func_read): Update.
12098 (remote_fileio_func_write): Update.
12099 * tui/tui.c (tui_enable): Update.
12100 * tui/tui-interp.c (tui_interp::init): Update.
12101 * utils.c (init_page_info): Update.
12102 (putchar_unfiltered, fputc_unfiltered): Update.
12103 (gdb_flush): Update.
12104 (emit_style_escape): Update.
12105 (flush_wrap_buffer, fputs_maybe_filtered): Update.
12106 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
12107 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
12108 (stderr_file::write): Update.
12109 (stderr_file::puts): Update.
12110 * ui-file.h (ui_file_isatty, ui_file_write)
12111 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
12112 (ui_file_puts): Don't declare.
12113
12114 2020-02-10 Tom de Vries <tdevries@suse.de>
12115
12116 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
12117 sentinel to char *.
12118
12119 2020-02-09 Tom de Vries <tdevries@suse.de>
12120
12121 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
12122 filename if it matches "<artificial>".
12123
12124 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
12125
12126 * windows-tdep.c (struct enum_value_name): New struct.
12127 (create_enum): New function.
12128 (windows_get_siginfo_type): Create and use enum types.
12129
12130 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
12131
12132 * NEWS: Mention $_siginfo support for Windows.
12133 * windows-nat.c (handle_exception): Set siginfo_er.
12134 (windows_nat_target::mourn_inferior): Reset siginfo_er.
12135 (windows_xfer_siginfo): New function.
12136 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
12137 * windows-tdep.c (struct windows_gdbarch_data): New struct.
12138 (init_windows_gdbarch_data): New function.
12139 (get_windows_gdbarch_data): New function.
12140 (windows_get_siginfo_type): New function.
12141 (windows_init_abi): Register windows_get_siginfo_type.
12142 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
12143
12144 2020-02-08 Tom Tromey <tom@tromey.com>
12145
12146 * dwarf2/read.c (class cutu_reader) <cutu_reader,
12147 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
12148 <keep>: Declare method.
12149 <m_keep>: Remove member.
12150 <~cutu_reader>: Remove.
12151 (cutu_reader::init_tu_and_read_dwo_dies): Update.
12152 (cutu_reader::cutu_reader): Update.
12153 (cutu_reader::keep): Rename from ~cutu_reader.
12154 (process_psymtab_comp_unit, build_type_psymtabs_1)
12155 (process_skeletonless_type_unit, load_partial_comp_unit)
12156 (load_full_comp_unit, dwarf2_read_addr_index)
12157 (read_signatured_type): Update.
12158
12159 2020-02-08 Tom Tromey <tom@tromey.com>
12160
12161 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
12162 "want_partial_unit" parameter.
12163 (process_psymtab_comp_unit): Change want_partial_unit to bool.
12164 Inline check for DW_TAG_partial_unit.
12165 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
12166
12167 2020-02-08 Tom Tromey <tom@tromey.com>
12168
12169 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
12170 read.c.
12171 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
12172 read.c.
12173
12174 2020-02-08 Tom Tromey <tom@tromey.com>
12175
12176 * dwarf2/read.c (read_address): Move to comp-unit.c.
12177 (dwarf2_rnglists_process, dwarf2_ranges_process)
12178 (read_attribute_value, dwarf_decode_lines_1)
12179 (var_decode_location, decode_locdesc): Update.
12180 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
12181 read.c. Remove "cu" parameter.
12182 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
12183 method.
12184
12185 2020-02-08 Tom Tromey <tom@tromey.com>
12186
12187 * dwarf2/read.c (read_attribute_value, read_indirect_string)
12188 (read_indirect_line_string): Update.
12189 * dwarf2/comp-unit.c (read_offset): Remove.
12190 (read_comp_unit_head): Update.
12191 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
12192 method.
12193 (read_offset): Don't declare.
12194
12195 2020-02-08 Tom Tromey <tom@tromey.com>
12196
12197 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
12198 * dwarf2/read.c (struct comp_unit_head): Move to
12199 dwarf2/comp-unit.h.
12200 (enum class rcuh_kind): Move to comp-unit.h.
12201 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
12202 (read_comp_unit_head, error_check_comp_unit_head)
12203 (read_and_check_comp_unit_head): Move to comp-unit.c.
12204 (read_offset, dwarf_unit_type_name): Likewise.
12205 (create_debug_type_hash_table, read_cutu_die_from_dwo)
12206 (cutu_reader::cutu_reader, read_call_site_scope)
12207 (find_partial_die, follow_die_offset): Update.
12208 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
12209
12210 2020-02-08 Tom Tromey <tom@tromey.com>
12211
12212 * dwarf2/read.c (read_offset_1): Move to leb.c.
12213 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
12214 (dwarf_decode_macro_bytes): Update.
12215 * dwarf2/leb.c (read_offset): Rename; move from read.c.
12216 * dwarf2/leb.h (read_offset): Declare.
12217
12218 2020-02-08 Tom Tromey <tom@tromey.com>
12219
12220 * dwarf2/read.c (dwarf2_section_size): Remove.
12221 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
12222 Update.
12223 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
12224
12225 2020-02-08 Tom Tromey <tom@tromey.com>
12226
12227 * dwarf2/read.c (read_initial_length): Move to leb.c.
12228 * dwarf2/leb.h (read_initial_length): Declare.
12229 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
12230 handle_nonstd parameter.
12231 * dwarf2/frame.c (read_initial_length): Remove.
12232 (decode_frame_entry_1): Update.
12233
12234 2020-02-08 Tom Tromey <tom@tromey.com>
12235
12236 * dwarf2/loc.c (dwarf2_find_location_expression)
12237 (dwarf_evaluate_loc_desc::get_tls_address)
12238 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
12239 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
12240 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
12241 (dwarf2_compile_property_to_c)
12242 (dwarf2_loc_desc_get_symbol_read_needs)
12243 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
12244 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
12245 (loclist_describe_location, loclist_tracepoint_var_ref)
12246 (loclist_generate_c_location): Update.
12247 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
12248 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
12249 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
12250 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
12251 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
12252 (dwarf2_per_cu_data::addr_size)
12253 (dwarf2_per_cu_data::ref_addr_size)
12254 (dwarf2_per_cu_data::text_offset)
12255 (dwarf2_per_cu_data::addr_type): Now methods.
12256 (per_cu_header_read_in): Make per_cu "const".
12257 (dwarf2_version): Remove.
12258 (dwarf2_per_cu_data::int_type): Now a method.
12259 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
12260 (set_die_type, read_array_type, read_subrange_index_type)
12261 (read_tag_string_type, read_subrange_type): Update.
12262 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
12263 offset_size, ref_addr_size, text_offset, addr_type, version,
12264 objfile, int_type, addr_sized_int_type>: Declare methods.
12265
12266 2020-02-08 Tom Tromey <tom@tromey.com>
12267
12268 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
12269 Move earlier.
12270
12271 2020-02-08 Tom Tromey <tom@tromey.com>
12272
12273 * dwarf2/read.h (dwarf_line_debug): Declare.
12274 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
12275 * dwarf2/read.c: Move line_header code to new files.
12276 (dwarf_line_debug): No longer static.
12277 * dwarf2/line-header.c: New file.
12278 * dwarf2/line-header.h: New file.
12279
12280 2020-02-08 Tom Tromey <tom@tromey.com>
12281
12282 * dwarf2/read.c (struct line_header) <file_full_name,
12283 file_file_name>: Return unique_xmalloc_ptr.
12284 (line_header::file_file_name): Update.
12285 (line_header::file_full_name): Update.
12286 (dw2_get_file_names_reader): Update.
12287 (macro_start_file): Update.
12288
12289 2020-02-08 Tom Tromey <tom@tromey.com>
12290
12291 * dwarf2/read.c (struct line_header) <file_full_name,
12292 file_file_name>: Declare methods.
12293 (dw2_get_file_names_reader): Update.
12294 (file_file_name): Now a method.
12295 (file_full_name): Likewise.
12296 (macro_start_file): Update.
12297
12298 2020-02-08 Tom Tromey <tom@tromey.com>
12299
12300 * dwarf2/read.c (dwarf_always_disassemble)
12301 (show_dwarf_always_disassemble): Move to loc.c.
12302 (_initialize_dwarf2_read): Move "always-disassemble" registration
12303 to loc.c.
12304 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
12305 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
12306 static.
12307 (show_dwarf_always_disassemble): Move from read.c.
12308 (_initialize_dwarf2loc): Move always-disassemble from read.c.
12309
12310 2020-02-08 Tom Tromey <tom@tromey.com>
12311
12312 * dwarf2/read.c (~dwarf2_per_objfile): Update.
12313 (create_quick_file_names_table): Return htab_up.
12314 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
12315 Update.
12316 * dwarf2/read.h (struct dwarf2_per_objfile)
12317 <quick_file_names_table>: Now htab_up.
12318
12319 2020-02-08 Tom Tromey <tom@tromey.com>
12320
12321 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
12322
12323 2020-02-08 Tom Tromey <tom@tromey.com>
12324
12325 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
12326 Rewrite.
12327 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
12328 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
12329 (abbrev_table::abbrev_table): No longer inline.
12330 (ABBREV_HASH_SIZE): Remove.
12331 (abbrev_table::m_abbrevs): Now an htab_up.
12332
12333 2020-02-08 Tom Tromey <tom@tromey.com>
12334
12335 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
12336 (cutu_reader): Update.
12337 (build_type_psymtabs_1): Update.
12338 * dwarf2/abbrev.c (abbrev_table::read): Rename.
12339 (abbrev_table::alloc_abbrev): Update.
12340 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
12341 (abbrev_table::read): New static method, renamed from
12342 abbrev_table_read_table.
12343 (abbrev_table::alloc_abbrev)
12344 (abbrev_table::add_abbrev): Now private.
12345 (abbrev_table::abbrev_table): Now private.
12346 (abbrev_table::m_abbrev_obstack): Now private. Rename.
12347
12348 2020-02-08 Tom Tromey <tom@tromey.com>
12349
12350 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
12351 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
12352 htab_up.
12353
12354 2020-02-08 Tom Tromey <tom@tromey.com>
12355
12356 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
12357 htab_up.
12358 (lookup_dwo_unit_in_dwp): Update.
12359 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
12360 on obstack.
12361
12362 2020-02-08 Tom Tromey <tom@tromey.com>
12363
12364 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
12365 obstack.
12366
12367 2020-02-08 Tom Tromey <tom@tromey.com>
12368
12369 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
12370 line_header_hash.
12371 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
12372 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
12373 Change type to htab_up.
12374
12375 2020-02-08 Tom Tromey <tom@tromey.com>
12376
12377 * dwarf2/read.c (allocate_type_unit_groups_table): Return
12378 htab_up. Don't allocate on obstack.
12379 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
12380 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
12381 Change type to htab_up.
12382
12383 2020-02-08 Tom Tromey <tom@tromey.com>
12384
12385 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
12386 Change type to htab_up.
12387 * dwarf2/read.c (create_signatured_type_table_from_index)
12388 (create_signatured_type_table_from_debug_names)
12389 (create_all_type_units, add_type_unit)
12390 (lookup_dwo_signatured_type, lookup_signatured_type)
12391 (process_skeletonless_type_unit): Update.
12392 (create_debug_type_hash_table, create_debug_types_hash_table):
12393 Change type of types_htab.
12394 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
12395 htab_up. Don't allocate on obstack.
12396 (create_cus_hash_table): Change type of cus_htab parameter.
12397 (struct dwo_file) <cus, tus>: Now htab_up.
12398 (lookup_dwo_signatured_type, lookup_dwo_cutu)
12399 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
12400 (queue_and_load_all_dwo_tus): Update.
12401 * dwarf2/index-write.c (write_gdbindex): Update.
12402 (write_debug_names): Update.
12403
12404 2020-02-08 Tom Tromey <tom@tromey.com>
12405
12406 * dwarf2/read.h (struct dwarf2_queue_item): Move from
12407 dwarf2/read.c. Remove "next" member. Add constructor ntad
12408 destructor.
12409 (struct dwarf2_per_objfile) <queue>: New member.
12410 * dwarf2/read.c (struct dwarf2_queue_item): Move to
12411 dwarf2/read.h.
12412 (dwarf2_queue, dwarf2_queue_tail): Remove.
12413 (class dwarf2_queue_guard): Add parameter to constructor. Use
12414 DISABLE_COPY_AND_ASSIGN.
12415 <m_per_objfile>: New member.
12416 <~dwarf2_queue_guard>: Rewrite.
12417 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
12418 Update.
12419 (~dwarf2_queue_item): New.
12420
12421 2020-02-08 Tom Tromey <tom@tromey.com>
12422
12423 * dwarf2/read.c (struct die_info) <has_children>: New member.
12424 (dw2_get_file_names_reader): Remove has_children.
12425 (dw2_get_file_names): Update.
12426 (read_cutu_die_from_dwo): Remove has_children.
12427 (cutu_reader::init_tu_and_read_dwo_dies)
12428 (cutu_reader::cutu_reader): Update.
12429 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
12430 Remove has_children.
12431 (build_type_psymtabs_1, process_skeletonless_type_unit)
12432 (load_partial_comp_unit, load_full_comp_unit): Update.
12433 (create_dwo_cu_reader): Remove has_children.
12434 (create_cus_hash_table, read_die_and_children): Update.
12435 (read_full_die_1,read_full_die): Remove has_children.
12436 (read_signatured_type): Update.
12437 (class cutu_reader) <has_children>: Remove.
12438
12439 2020-02-08 Tom Tromey <tom@tromey.com>
12440
12441 * dwarf2/expr.c: Rename from dwarf2expr.c.
12442 * dwarf2/expr.h: Rename from dwarf2expr.h.
12443 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
12444 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
12445 * dwarf2/frame.c: Rename from dwarf2-frame.c.
12446 * dwarf2/frame.h: Rename from dwarf2-frame.h.
12447 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
12448 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
12449 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
12450 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
12451 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
12452 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
12453 * dwarf2/loc.c: Rename from dwarf2loc.c.
12454 * dwarf2/loc.h: Rename from dwarf2loc.h.
12455 * dwarf2/read.c: Rename from dwarf2read.c.
12456 * dwarf2/read.h: Rename from dwarf2read.h.
12457 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
12458 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
12459 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
12460 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
12461 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
12462 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
12463 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
12464 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
12465 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
12466 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
12467 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
12468 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
12469 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
12470 Update.
12471 * Makefile.in (COMMON_SFILES): Update.
12472 (HFILES_NO_SRCDIR): Update.
12473
12474 2020-02-08 Tom Tromey <tom@tromey.com>
12475
12476 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
12477 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
12478
12479 2020-02-08 Tom Tromey <tom@tromey.com>
12480
12481 * dwarf2read.h (struct die_info): Don't declare.
12482
12483 2020-02-08 Tom Tromey <tom@tromey.com>
12484
12485 * dwarf2read.h (die_info_ptr): Remove typedef.
12486
12487 2020-02-08 Tom Tromey <tom@tromey.com>
12488
12489 * dwarf2read.c (read_call_site_scope)
12490 (handle_data_member_location, dwarf2_add_member_fn)
12491 (mark_common_block_symbol_computed, read_common_block)
12492 (attr_to_dynamic_prop, partial_die_info::read)
12493 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
12494 (dwarf2_symbol_mark_computed, set_die_type): Update.
12495 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
12496 method.
12497 (attr_form_is_block): Don't declare.
12498 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
12499
12500 2020-02-08 Tom Tromey <tom@tromey.com>
12501
12502 * dwarf2read.c (dwarf2_find_base_address, )
12503 (read_call_site_scope, rust_containing_type)
12504 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
12505 (handle_data_member_location, dwarf2_add_member_fn)
12506 (get_alignment, read_structure_type, process_structure_scope)
12507 (mark_common_block_symbol_computed, read_common_block)
12508 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
12509 (partial_die_info::read, read_attribute_value, new_symbol)
12510 (lookup_die_type, dwarf2_get_ref_die_offset)
12511 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
12512 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
12513 (dwarf2_symbol_mark_computed): Update.
12514 * dwarf2/attribute.h (struct attribute) <value_as_address,
12515 form_is_section_offset, form_is_constant, form_is_ref>: Declare
12516 methods.
12517 (value_as_address, attr_form_is_section_offset)
12518 (attr_form_is_constant, attr_form_is_ref): Don't declare.
12519 * dwarf2/attribute.c (attribute::value_as_address)
12520 (attribute::form_is_section_offset, attribute::form_is_constant)
12521 (attribute::form_is_ref): Now methods.
12522
12523 2020-02-08 Tom Tromey <tom@tromey.com>
12524
12525 * dwarf2read.c (struct attribute, DW_STRING)
12526 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
12527 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
12528 (attr_form_is_block, attr_form_is_section_offset)
12529 (attr_form_is_constant, attr_form_is_ref): Move.
12530 * dwarf2/attribute.h: New file.
12531 * dwarf2/attribute.c: New file, from dwarf2read.c.
12532 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
12533
12534 2020-02-08 Tom Tromey <tom@tromey.com>
12535
12536 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
12537 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
12538 Move.
12539 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
12540 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
12541 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
12542 abbrev.c.
12543 * dwarf2/abbrev.h: New file.
12544 * dwarf2/abbrev.c: New file, from dwarf2read.c.
12545 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
12546
12547 2020-02-08 Tom Tromey <tom@tromey.com>
12548
12549 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
12550 (dwarf2_section_size, dwarf2_get_section_info)
12551 (create_signatured_type_table_from_debug_names)
12552 (create_addrmap_from_aranges, read_debug_names_from_section)
12553 (get_gdb_index_contents_from_section, read_comp_unit_head)
12554 (error_check_comp_unit_head, read_abbrev_offset)
12555 (create_debug_type_hash_table, init_cu_die_reader)
12556 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
12557 (read_comp_units_from_section, create_cus_hash_table)
12558 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
12559 (create_dwp_v2_section, dwarf2_rnglists_process)
12560 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
12561 (abbrev_table_read_table, read_indirect_string_at_offset_from)
12562 (read_indirect_string_from_dwz, read_addr_index_1)
12563 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
12564 (dwarf_decode_macro_bytes, dwarf_decode_macros)
12565 (fill_in_loclist_baton): Update.
12566 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
12567 get_containing_section, get_bfd_owner, get_bfd_section,
12568 get_file_name, get_id, get_flags, empty, read>: Declare methods.
12569 (dwarf2_read_section, get_section_name, get_section_file_name)
12570 (get_containing_section, get_section_bfd_owner)
12571 (get_section_bfd_section, get_section_name, get_section_file_name)
12572 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
12573 declare.
12574 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
12575 (dwarf2_section_info::get_bfd_owner)
12576 (dwarf2_section_info::get_bfd_section)
12577 (dwarf2_section_info::get_name)
12578 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
12579 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
12580 (dwarf2_section_info::read): Now methods.
12581 * dwarf-index-write.c (class debug_names): Update.
12582
12583 2020-02-08 Tom Tromey <tom@tromey.com>
12584
12585 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
12586 Move to dwarf2/section.h.
12587 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
12588 (get_section_bfd_section, get_section_name)
12589 (get_section_file_name, get_section_id, get_section_flags)
12590 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
12591 dwarf2/section.c.
12592 * dwarf2/section.h: New file.
12593 * dwarf2/section.c: New file, from dwarf2read.c.
12594 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
12595
12596 2020-02-08 Tom Tromey <tom@tromey.com>
12597
12598 * dwarf2read.h (read_unsigned_leb128): Don't declare.
12599 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
12600 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
12601 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
12602 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
12603 * dwarf2/leb.h: New file, from dwarf2read.c.
12604 * dwarf2/leb.c: New file, from dwarf2read.c.
12605 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
12606 Remove.
12607 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
12608 (COMMON_SFILES): Add dwarf2/leb.c.
12609
12610 2020-02-08 Joel Brobecker <brobecker@adacore.com>
12611
12612 GDB 9.1 released.
12613
12614 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
12615
12616 PR gdb/25190:
12617 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
12618 * gdb/remote.c (remote_console_output): Update.
12619 * gdb/ui-file.c (fputs_unfiltered): Rename to...
12620 (ui_file_puts): ...this.
12621 * gdb/ui-file.h (ui_file_puts): Add declaration.
12622 * gdb/utils.c (emit_style_escape): Update.
12623 (flush_wrap_buffer): Update.
12624 (fputs_maybe_filtered): Update.
12625 (fputs_unfiltered): Add function.
12626
12627 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
12628
12629 * gdb/event-loop.c (gdb_wait_for_event): Update.
12630 * gdb/printcmd.c (printf_command): Update.
12631 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
12632 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
12633 (gdb_os_flush_stderr): Update.
12634 * gdb/remote.c (remote_console_output): Update.
12635 * gdb/ui-file.c (gdb_flush): Rename to...
12636 (ui_file_flush): ...this.
12637 (stderr_file::write): Update.
12638 (stderr_file::puts): Update.
12639 * gdb/ui-file.h (gdb_flush): Rename to...
12640 (ui_file_flush): ...this.
12641 * gdb/utils.c (gdb_flush): Add function.
12642 * gdb/utils.h (gdb_flush): Add declaration.
12643
12644 2020-02-07 Tom Tromey <tromey@adacore.com>
12645
12646 PR breakpoints/24915:
12647 * source.c (find_and_open_source): Do not check basenames_may_differ.
12648
12649 2020-02-07 Tom Tromey <tom@tromey.com>
12650
12651 * README: Update gdbserver documentation.
12652 * gdbserver: Move to top level.
12653 * configure.tgt (build_gdbserver): Remove.
12654 * configure.ac: Remove --enable-gdbserver.
12655 * configure: Rebuild.
12656 * Makefile.in (distclean): Don't mention gdbserver.
12657
12658 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
12659
12660 * source-cache.c (source_cache::ensure): Surround
12661 get_plain_source_lines with a try/catch.
12662 (source_cache::get_line_charpos): Get rid of try/catch
12663 and only check for the return value of "ensure".
12664 * tui/tui-source.c (tui_source_window::set_contents):
12665 Simplify "nlines" calculation.
12666
12667 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
12668
12669 * MAINTAINERS (Write After Approval): Add myself.
12670
12671 2020-02-05 Christian Biesinger <cbiesinger@google.com>
12672
12673 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
12674 function call.
12675
12676 2020-02-05 Christian Biesinger <cbiesinger@google.com>
12677
12678 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
12679
12680 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
12681
12682 * nat/riscv-linux-tdesc.h: New file.
12683 * nat/riscv-linux-tdesc.c: New file, taking code from...
12684 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
12685 ... here.
12686 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
12687 NATDEPFILES.
12688
12689 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
12690
12691 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
12692 we don't set the fake simulator ptid to the null_ptid.
12693
12694 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
12695
12696 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
12697 * gdbthread.h (class thread_info) <resumed>: Likewise.
12698 * infrun.c (resume_1): Likewise.
12699 (proceed): Likewise.
12700 (infrun_thread_stop_requested): Likewise.
12701 (stop_all_threads): Likewise.
12702 (handle_inferior_event): Likewise.
12703 (restart_threads): Likewise.
12704 (finish_step_over): Likewise.
12705 (keep_going_stepped_thread): Likewise.
12706 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
12707 (linux_handle_extended_wait): Likewise.
12708 * record-btrace.c (get_thread_current_frame_id): Likewise.
12709 * record-full.c (record_full_wait_1): Likewise.
12710 * remote.c (remote_target::process_initial_stop_replies): Likewise.
12711 * target.c (target_resume): Likewise.
12712 * thread.c (set_running_thread): Likewise.
12713
12714 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
12715
12716 * f-valprint.c (f77_print_array_1): Changed datatype of index
12717 variable to LONGEST from int to enable it to contain bound
12718 values correctly.
12719
12720 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
12721
12722 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
12723 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
12724 offsets according to FLEN determined.
12725 (riscv_linux_nat_target::read_description): Determine FLEN
12726 dynamically.
12727 (riscv_linux_nat_target::fetch_registers): Size regset buffer
12728 according to FLEN determined.
12729 (riscv_linux_nat_target::store_registers): Likewise.
12730
12731 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
12732
12733 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
12734 when reg->group is empty and reggroup is not.
12735
12736 2020-01-31 Tom Tromey <tromey@adacore.com>
12737
12738 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
12739 Call beneath target's mourn_inferior after unpushing.
12740
12741 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
12742
12743 PR tui/9765
12744 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
12745 have enough lines to fill the screen, still return the lowest
12746 address we found.
12747
12748 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
12749
12750 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
12751 '-', '<', and '>' commands.
12752
12753 2020-01-29 Pedro Alves <palves@redhat.com>
12754 Sergio Durigan Junior <sergiodj@redhat.com>
12755
12756 * infcmd.c (construct_inferior_arguments): Assert that
12757 'argc' is greater than 0.
12758
12759 2020-01-29 Luis Machado <luis.machado@linaro.org>
12760
12761 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
12762 (BRK_INSN_MASK): Define to 0xd4200000.
12763 (aarch64_program_breakpoint_here_p): New function.
12764 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
12765 * arch-utils.c (default_program_breakpoint_here_p): Moved from
12766 breakpoint.c.
12767 * arch-utils.h (default_program_breakpoint_here_p): Moved from
12768 breakpoint.h
12769 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
12770 call gdbarch_program_breakpoint_here_p.
12771 (program_breakpoint_here): Moved to arch-utils.c, renamed to
12772 default_program_breakpoint_here_p, changed return type to bool and
12773 simplified.
12774 * breakpoint.h (program_breakpoint_here): Moved prototype to
12775 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
12776 return type to bool.
12777 * gdbarch.c: Regenerate.
12778 * gdbarch.h: Regenerate.
12779 * gdbarch.sh (program_breakpoint_here_p): New method.
12780 * infrun.c (handle_signal_stop): Call
12781 gdbarch_program_breakpoint_here_p.
12782
12783 2020-01-26 Tom Tromey <tom@tromey.com>
12784
12785 * ctfread.c (struct ctf_fp_info): Reindent.
12786 (_initialize_ctfread): Remove.
12787
12788 2020-01-26 Tom Tromey <tom@tromey.com>
12789
12790 * psymtab.c (partial_map_expand_apply)
12791 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
12792 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
12793 (psym_print_stats, psym_expand_symtabs_for_function)
12794 (psym_map_symbol_filenames, psym_map_matching_symbols)
12795 (psym_expand_symtabs_matching)
12796 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
12797 (maintenance_check_psymtabs): Use new methods.
12798 * psympriv.h (struct partial_symtab) <readin_p,
12799 get_compunit_symtab>: New methods.
12800 <readin, compunit_symtab>: Remove members.
12801 (struct standard_psymtab): New.
12802 (struct legacy_psymtab): Derive from standard_psymtab.
12803 * dwarf2read.h (struct dwarf2_psymtab): Derive from
12804 standard_psymtab.
12805 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
12806
12807 2020-01-26 Tom Tromey <tom@tromey.com>
12808
12809 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
12810 read_dependencies. Add assert.
12811 * psymtab.c (partial_symtab::read_dependencies): New method.
12812 * psympriv.h (struct partial_symtab) <read_dependencies>: New
12813 method.
12814 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
12815 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
12816 read_dependencies.
12817 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
12818 Add assert.
12819
12820 2020-01-26 Tom Tromey <tom@tromey.com>
12821
12822 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
12823 Call expand_psymtab.
12824 (xcoff_read_symtab): Call expand_psymtab.
12825 (xcoff_start_psymtab, xcoff_end_psymtab): Set
12826 legacy_expand_psymtab.
12827 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
12828 method.
12829 (struct legacy_psymtab) <expand_psymtab>: Implement.
12830 <legacy_expand_psymtab>: New member.
12831 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
12832 (parse_partial_symbols): Set legacy_expand_psymtab.
12833 (psymtab_to_symtab_1): Change argument order. Call
12834 expand_psymtab.
12835 (new_psymtab): Set legacy_expand_psymtab.
12836 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
12837 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
12838 expand_psymtab.
12839 (dwarf2_psymtab::expand_psymtab): Rename from
12840 psymtab_to_symtab_1. Call expand_psymtab.
12841 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
12842 (dbx_end_psymtab): Likewise.
12843 (dbx_psymtab_to_symtab_1): Change argument order. Call
12844 expand_psymtab.
12845 (dbx_read_symtab): Call expand_psymtab.
12846 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
12847 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
12848 (ctf_psymtab::read_symtab): Call expand_psymtab.
12849
12850 2020-01-26 Tom Tromey <tom@tromey.com>
12851
12852 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
12853 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
12854 messages.
12855 * mdebugread.c (mdebug_read_symtab): Remove prints.
12856 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
12857 assert.
12858 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
12859
12860 2020-01-26 Tom Tromey <tom@tromey.com>
12861
12862 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
12863 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
12864 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
12865 legacy_symtab.
12866 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
12867 * psymtab.c (psymtab_to_symtab): Call method.
12868 (dump_psymtab): Update.
12869 * psympriv.h (struct partial_symtab): Add virtual destructor.
12870 <read_symtab>: New method.
12871 (struct legacy_symtab): New.
12872 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
12873 (struct pst_map) <pst>: Now a legacy_psymtab.
12874 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
12875 (new_psymtab): Use legacy_psymtab.
12876 * dwarf2read.h (struct dwarf2_psymtab): New.
12877 (struct dwarf2_per_cu_data) <psymtab>: Use it.
12878 * dwarf2read.c (dwarf2_create_include_psymtab)
12879 (dwarf2_build_include_psymtabs, create_type_unit_group)
12880 (create_partial_symtab, process_psymtab_comp_unit_reader)
12881 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
12882 (set_partial_user): Use dwarf2_psymtab.
12883 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
12884 (psymtab_to_symtab_1, process_full_comp_unit)
12885 (process_full_type_unit, dwarf2_ranges_read)
12886 (dwarf2_get_pc_bounds, psymtab_include_file_name)
12887 (dwarf_decode_lines): Use dwarf2_psymtab.
12888 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
12889 (add_address_entry_worker, write_one_signatured_type)
12890 (recursively_count_psymbols, recursively_write_psymbols)
12891 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
12892 (write_debug_names): Likewise.
12893 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
12894 <pst>: Now a legacy_psymtab.
12895 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
12896 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
12897 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
12898 * ctfread.c (struct ctf_psymtab): New.
12899 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
12900 ctf_psymtab.
12901 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
12902 (create_partial_symtab): Return a ctf_psymtab.
12903 (scan_partial_symbols): Update.
12904
12905 2020-01-26 Tom Tromey <tom@tromey.com>
12906
12907 * xcoffread.c (xcoff_start_psymtab): Use new.
12908 * psymtab.c (partial_symtab::partial_symtab): New constructor,
12909 renamed from start_psymtab_common.
12910 * psympriv.h (struct partial_symtab): Add new constructor.
12911 (start_psymtab_common): Don't declare.
12912 * mdebugread.c (parse_partial_symbols): Use new.
12913 * dwarf2read.c (create_partial_symtab): Use new.
12914 * dbxread.c (start_psymtab): Use new.
12915 * ctfread.c (create_partial_symtab): Use new.
12916
12917 2020-01-26 Tom Tromey <tom@tromey.com>
12918
12919 * xcoffread.c (xcoff_end_psymtab): Use new.
12920 * psymtab.c (start_psymtab_common): Use new.
12921 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
12922 Update.
12923 * psympriv.h (struct partial_symtab): Add parameters to
12924 constructor. Don't inline.
12925 (allocate_psymtab): Don't declare.
12926 * mdebugread.c (new_psymtab): Use new.
12927 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
12928 * dbxread.c (dbx_end_psymtab): Use new.
12929
12930 2020-01-26 Tom Tromey <tom@tromey.com>
12931
12932 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
12933 allocate_psymtab. Update documentation.
12934 * psymtab.c (psymtab_storage::install_psymtab): Rename from
12935 allocate_psymtab. Do not use new.
12936 (allocate_psymtab): Use new. Update.
12937
12938 2020-01-26 Tom Tromey <tom@tromey.com>
12939
12940 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
12941 * psymtab.c (psym_print_stats): Update.
12942 * psympriv.h (struct partial_symtab) <readin,
12943 psymtabs_addrmap_supported, anonymous>: Now bool.
12944 * mdebugread.c (psymtab_to_symtab_1): Update.
12945 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
12946 (build_type_psymtabs_reader, psymtab_to_symtab_1)
12947 (process_full_comp_unit, process_full_type_unit): Update.
12948 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
12949 * ctfread.c (psymtab_to_symtab): Update.
12950
12951 2020-01-26 Tom Tromey <tom@tromey.com>
12952
12953 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
12954 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
12955 * psymtab.c (psymtab_storage): Delete psymtabs.
12956 (psymtab_storage::allocate_psymtab): Use new.
12957 (psymtab_storage::discard_psymtab): Use delete.
12958 * psympriv.h (struct partial_symtab): Add constructor and
12959 initializers.
12960
12961 2020-01-26 Tom Tromey <tom@tromey.com>
12962
12963 * machoread.c: Do not include psympriv.h.
12964
12965 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12966
12967 * NEWS: Mention the new option and the set/show commands.
12968
12969 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12970
12971 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
12972 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
12973 (validate_exec_file): New variables, enums, functions.
12974 (exec_file_locate_attach, print_section_info): Style the filenames.
12975 (_initialize_exec): Install show_exec_file_mismatch_command and
12976 set_exec_file_mismatch_command.
12977 * gdbcore.h (validate_exec_file): Declare.
12978 * infcmd.c (attach_command): Call validate_exec_file.
12979 * remote.c ( remote_target::remote_add_inferior): Likewise.
12980
12981 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12982
12983 * frame.c (find_frame_sal): Move call to get_next_frame into more
12984 inner scope.
12985 * inline-frame.c (inilne_state) <inline_state>: Update argument
12986 types.
12987 (inilne_state) <skipped_symbol>: Rename to...
12988 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
12989 (skip_inline_frames): Build vector of skipped symbols and use this
12990 to reate the inline_state.
12991 (inline_skipped_symbol): Add a comment and some assertions, fetch
12992 skipped symbol from the list.
12993
12994 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12995
12996 * buildsym.c (lte_is_less_than): Delete.
12997 (buildsym_compunit::end_symtab_with_blockvector): Create local
12998 lambda function to sort line table entries, and use
12999 std::stable_sort instead of std::sort.
13000 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
13001 markers when looking for a previous line.
13002
13003 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13004
13005 * dwarf2read.c (lnp_state_machine::record_line): Include
13006 end_sequence parameter in debug print out. Record the line if we
13007 are at an end_sequence marker even if it's not the start of a
13008 statement.
13009 * symmisc.c (maintenance_print_one_line_table): Print end of
13010 sequence markers with 'END' not '0'.
13011
13012 2020-01-24 Pedro Alves <palves@redhat.com>
13013
13014 PR gdb/25410
13015 * thread.c (scoped_restore_current_thread::restore): Use
13016 switch_to_inferior_no_thread.
13017 * exec.c: Include "progspace-and-thread.h".
13018 (add_target_sections, remove_target_sections):
13019 scoped_restore_current_pspace_and_thread instead of
13020 scoped_restore_current_thread.
13021 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
13022 and aspace to the inferior before calling clone_program_space.
13023 Remove stale comment.
13024
13025 2020-01-24 Christian Biesinger <cbiesinger@google.com>
13026
13027 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
13028 (arm_netbsd_nat_target::fetch_registers): ...this.
13029 (arm_nbsd_nat_target::store_registers): Rename to...
13030 (arm_netbsd_nat_target::store_registers): ...this.
13031
13032 2020-01-24 Christian Biesinger <cbiesinger@google.com>
13033
13034 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13035 register_t.
13036
13037 2020-01-24 Christian Biesinger <cbiesinger@google.com>
13038
13039 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
13040 Update comment.
13041 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
13042 Likewise.
13043 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
13044 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
13045 the correct replacement (iterate_over_regset_sections).
13046 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
13047 Update comment.
13048
13049 2020-01-24 Graham Markall <graham.markall@embecosm.com>
13050
13051 PR gdb/23718
13052 * gdb/python/python.c (execute_gdb_command): Call
13053 async_enable_stdin in catch block.
13054
13055 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13056
13057 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
13058 SWITCH_THRU_ALL_UIS.
13059
13060 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13061
13062 PR tui/9765
13063 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
13064 comment, add extra parameter, and update to store previous symbol
13065 when appropriate.
13066 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
13067 add extra parameter.
13068 * tui/tui-disasm.c (tui_disassemble): Update header comment,
13069 remove unneeded parameter, add try/catch around gdb_print_insn,
13070 rewrite to add items to asm_lines vector.
13071 (tui_find_backward_disassembly_start_address): New function.
13072 (tui_find_disassembly_address): Updated throughout.
13073 (tui_disasm_window::set_contents): Update for changes to
13074 tui_disassemble.
13075 (tui_disasm_window::do_scroll_vertical): No need to adjust the
13076 number of lines to scroll.
13077
13078 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
13079
13080 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
13081 (SECT_OFF_DATA): Likewise.
13082 (SECT_OFF_RODATA): Likewise.
13083 (SECT_OFF_TEXT): Likewise.
13084 (SECT_OFF_BSS): Likewise.
13085 (struct objfile) <text_section_offset, data_section_offset>: New
13086 methods.
13087 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
13088 objfile::text_section_offset.
13089 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
13090 * coffread.c (coff_symtab_read): Likewise.
13091 (enter_linenos): Likewise.
13092 (process_coff_symbol): Likewise.
13093 * ctfread.c (get_objfile_text_range): Likewise.
13094 * dtrace-probe.c (dtrace_probe::get_relocated_address):
13095 Use objfile::data_section_offset.
13096 * dwarf2-frame.c (execute_cfa_program): Use
13097 objfile::text_section_offset.
13098 (dwarf2_frame_find_fde): Likewise.
13099 * dwarf2read.c (create_addrmap_from_index): Likewise.
13100 (create_addrmap_from_aranges): Likewise.
13101 (dw2_find_pc_sect_compunit_symtab): Likewise.
13102 (process_psymtab_comp_unit_reader): Likewise.
13103 (add_partial_symbol): Likewise.
13104 (add_partial_subprogram): Likewise.
13105 (process_full_comp_unit): Likewise.
13106 (read_file_scope): Likewise.
13107 (read_func_scope): Likewise.
13108 (read_lexical_block_scope): Likewise.
13109 (read_call_site_scope): Likewise.
13110 (dwarf2_rnglists_process): Likewise.
13111 (dwarf2_ranges_process): Likewise.
13112 (dwarf2_ranges_read): Likewise.
13113 (dwarf_decode_lines_1): Likewise.
13114 (new_symbol): Likewise.
13115 (dwarf2_fetch_die_loc_sect_off): Likewise.
13116 (dwarf2_per_cu_text_offset): Likewise.
13117 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
13118 * hppa-tdep.c (read_unwind_info): Likewise.
13119 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
13120 * psympriv.h (struct partial_symtab): Likewise.
13121 * psymtab.c (find_pc_sect_psymtab): Likewise.
13122 * solib-svr4.c (enable_break): Likewise.
13123 * stap-probe.c (relocate_address): Use
13124 objfile::data_section_offset.
13125 * xcoffread.c (enter_line_range): Use
13126 objfile::text_section_offset.
13127 (read_xcoff_symtab): Likewise.
13128
13129 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
13130
13131 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
13132 declaration to narrower scopes.
13133
13134 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
13135
13136 * darwin-nat.h (struct darwin_exception_msg, enum
13137 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
13138 Move up.
13139 (class darwin_nat_target) <wait_1, check_new_threads,
13140 decode_exception_message, decode_message, stop_inferior,
13141 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
13142 * darwin-nat.c (darwin_check_new_threads): Rename to...
13143 (darwin_nat_target::check_new_threads): ... this.
13144 (darwin_suspend_inferior_it): Remove.
13145 (darwin_decode_exception_message): Rename to...
13146 (darwin_nat_target::decode_exception_message): ... this.
13147 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
13148 (darwin_decode_message): Rename to...
13149 (darwin_nat_target::decode_message): ... this.
13150 (cancel_breakpoint): Rename to...
13151 (darwin_nat_target::cancel_breakpoint): ... this.
13152 (darwin_wait): Rename to...
13153 (darwin_nat_target::wait_1): ... this. Use range-based for loop
13154 instead of iterate_over_inferiors.
13155 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
13156 (darwin_stop_inferior): Rename to...
13157 (darwin_nat_target::stop_inferior): ... this.
13158 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
13159 (darwin_init_thread_list): Rename to...
13160 (darwin_nat_target::init_thread_list): ... this.
13161 (darwin_ptrace_him): Rename to...
13162 (darwin_nat_target::ptrace_him): ... this.
13163 (darwin_nat_target::create_inferior): Pass lambda function to
13164 fork_inferior.
13165 (darwin_nat_target::detach): Call stop_inferior instead of
13166 darwin_stop_inferior.
13167 * fork-inferior.h (fork_inferior): Change init_trace_fun
13168 parameter to gdb::function_view.
13169 * fork-inferior.c (fork_inferior): Likewise.
13170
13171 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
13172
13173 * i386-cygwin-tdep.c (core_process_module_section): Update.
13174 * windows-nat.c (struct lm_info_windows): Add text_offset.
13175 (windows_xfer_shared_libraries): Update.
13176 * windows-tdep.c (windows_xfer_shared_library):
13177 Add text_offset_cached argument.
13178 * windows-tdep.h (windows_xfer_shared_library): Update.
13179
13180 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
13181
13182 * gdbarch.sh: Add declaration for _initialize_gdbarch.
13183
13184 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
13185
13186 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
13187 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
13188 replace with range-based for.
13189 (gdbsim_interrupt_inferior): Remove.
13190 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
13191 with a range-based for. Inline code from
13192 gdbsim_interrupt_inferior.
13193
13194 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
13195
13196 * infrun.c (proceed): Fix indentation.
13197
13198 2020-01-21 Tom Tromey <tromey@adacore.com>
13199
13200 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
13201 * python/python.c (python_extension_ops): Update.
13202 (gdbpy_colorize): New function.
13203 * python/lib/gdb/__init__.py (colorize): New function.
13204 * extension.h (ext_lang_colorize): Declare.
13205 * extension.c (ext_lang_colorize): New function.
13206 * extension-priv.h (struct extension_language_ops) <colorize>: New
13207 member.
13208 * cli/cli-style.c (_initialize_cli_style): Update help text.
13209
13210 2020-01-21 Luis Machado <luis.machado@linaro.org>
13211
13212 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
13213 <cond>: Change type to bool.
13214 (aarch64_displaced_step_b_cond): Update cond to use bool type.
13215 (aarch64_displaced_step_cb): Likewise.
13216 (aarch64_displaced_step_tb): Likewise.
13217
13218 2020-01-21 Luis Machado <luis.machado@linaro.org>
13219
13220 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
13221 output.
13222
13223 2020-01-21 Luis Machado <luis.machado@linaro.org>
13224
13225 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
13226 <pc_adjust>: Adjust the documentation.
13227 (aarch64_displaced_step_fixup): Check if PC really moved before
13228 adjusting it.
13229
13230 2020-01-19 Tom Tromey <tom@tromey.com>
13231
13232 * disasm.c (~gdb_disassembler): New destructor.
13233 (gdb_buffered_insn_length): Call disassemble_free_target.
13234 * disasm.h (class gdb_disassembler): Declare destructor. Use
13235 DISABLE_COPY_AND_ASSIGN.
13236
13237 2020-01-19 Tom Tromey <tom@tromey.com>
13238
13239 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
13240 (die_reader_func_ftype): Remove.
13241 (cutu_reader): New class.
13242 (dw2_get_file_names_reader): Remove "data" parameter.
13243 (dw2_get_file_names): Use cutu_reader.
13244 (create_debug_type_hash_table): Update.
13245 (read_cutu_die_from_dwo): Update comment.
13246 (lookup_dwo_unit): Add dwo_name parameter.
13247 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
13248 die_reader_func_ftype and data parameters.
13249 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
13250 Remove die_reader_func_ftype and data parameters.
13251 (~cutu_reader): New; from init_cutu_and_read_dies.
13252 (cutu_reader::cutu_reader): Rename from
13253 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
13254 and data parameters.
13255 (init_cutu_and_read_dies_simple): Remove.
13256 (struct process_psymtab_comp_unit_data): Remove.
13257 (process_psymtab_comp_unit_reader): Remove data parameter; add
13258 want_partial_unit and pretend_language parameters.
13259 (process_psymtab_comp_unit): Use cutu_reader.
13260 (build_type_psymtabs_reader): Remove data parameter.
13261 (build_type_psymtabs_1): Use cutu_reader.
13262 (process_skeletonless_type_unit): Likewise.
13263 (load_partial_comp_unit_reader): Remove.
13264 (load_partial_comp_unit): Use cutu_reader.
13265 (load_full_comp_unit_reader): Remove.
13266 (load_full_comp_unit): Use cutu_reader.
13267 (struct create_dwo_cu_data): Remove.
13268 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
13269 dwo_unit parameters.
13270 (create_cus_hash_table): Use cutu_reader.
13271 (struct dwarf2_read_addr_index_data): Remove.
13272 (dwarf2_read_addr_index_reader): Remove.
13273 (dwarf2_read_addr_index): Use cutu_reader.
13274 (read_signatured_type_reader): Remove.
13275 (read_signatured_type): Use cutu_reader.
13276
13277 2020-01-19 Tom Tromey <tom@tromey.com>
13278
13279 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
13280 * tui/tui-wingeneral.h (class tui_suppress_output): New.
13281 (tui_wrefresh): Declare.
13282 * tui/tui-wingeneral.c (suppress_output): New global.
13283 (tui_suppress_output, ~tui_suppress_output): New constructor and
13284 destructor.
13285 (tui_wrefresh): New function.
13286 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
13287 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
13288 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
13289 method.
13290 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
13291 tui_wrefresh.
13292 (tui_data_window::no_refresh): New method.
13293 (tui_data_item_window::refresh_window): Call tui_wrefresh.
13294 (tui_reg_command): Use tui_suppress_output
13295 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
13296 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
13297 method.
13298 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
13299
13300 2020-01-19 Tom Tromey <tom@tromey.com>
13301
13302 * tui/tui-winsource.c (tui_update_source_windows_with_line):
13303 Handle case where symtab is null.
13304
13305 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
13306
13307 * linux-fork.c (one_fork_p): Simplify.
13308
13309 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
13310
13311 * top.c (struct qt_args): Remove.
13312 (kill_or_detach): Change return type to void, replace `void *`
13313 parameter with a proper one.
13314 (print_inferior_quit_action): Likewise.
13315 (quit_confirm): Use range-based for loop to iterate over inferiors.
13316 (quit_force): Likewise.
13317
13318 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
13319
13320 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
13321 `void *` parameter with proper parameters.
13322 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
13323 (print_one_inferior): Change return type to void, replace `void *`
13324 parameter with proper parameters.
13325 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
13326 inferiors.
13327 (get_other_inferior): Remove.
13328 (mi_cmd_remove_inferior): Use range-based loop to iterate over
13329 inferiors.
13330
13331 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
13332
13333 * mi/mi-interp.c (report_initial_inferior): Remove.
13334 (mi_interp::init): Use range-based for to iterate over inferiors.
13335
13336 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
13337
13338 * python/py-inferior.c (build_inferior_list): Remove.
13339 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
13340
13341 2020-01-16 Christian Biesinger <cbiesinger@google.com>
13342
13343 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
13344 (btrace_stitch_trace): Likewise.
13345 * charset.c (intermediate_encoding): Likewise (vaild).
13346 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
13347 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
13348 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
13349
13350 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
13351
13352 * windows-tdep.c (windows_get_tlb_type):
13353 Add rtl_user_process_parameters type.
13354
13355 2020-01-16 Pedro Alves <palves@redhat.com>
13356 Norbert Lange <nolange79@gmail.com>
13357
13358 PR build/24805
13359 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
13360 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
13361 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
13362 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
13363 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
13364 (ps_plog): Redeclare exported functions with default visibility.
13365
13366 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
13367
13368 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
13369 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
13370
13371 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
13372
13373 * infcmd.c (post_create_inferior): Use get_thread_regcache
13374 instead of get_current_regcache.
13375
13376 2020-01-14 Tom Tromey <tom@tromey.com>
13377
13378 PR symtab/12535:
13379 * python/python.c (gdbpy_decode_line): Treat empty string the same
13380 as no argument.
13381
13382 2020-01-14 Tom Tromey <tom@tromey.com>
13383
13384 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
13385
13386 2020-01-14 Tom Tromey <tom@tromey.com>
13387
13388 * nat/linux-btrace.c: Don't include <config.h>.
13389 * nat/linux-ptrace.c: Don't include <config.h>.
13390 * nat/x86-linux-dregs.c: Don't include <config.h>.
13391
13392 2020-01-14 Tom Tromey <tom@tromey.com>
13393
13394 * configure: Rebuild.
13395 * configure.ac: Move many checks to ../gdbsupport/common.m4.
13396
13397 2020-01-14 Tom Tromey <tom@tromey.com>
13398
13399 * nat/x86-linux-dregs.c: Include configh.h.
13400 * nat/linux-ptrace.c: Include configh.h.
13401 * nat/linux-btrace.c: Include configh.h.
13402 * defs.h: Include config.h, bfd.h.
13403 * configure.ac: Don't source common.host.
13404 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
13405 * configure: Rebuild.
13406 * acinclude.m4: Update path.
13407 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
13408 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
13409 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
13410 (CLIBS): Add LIBSUPPORT.
13411 (CDEPS): Likewise.
13412 (COMMON_SFILES): Remove gdbsupport files.
13413 (HFILES_NO_SRCDIR): Likewise.
13414 (stamp-version): Update path to create-version.sh.
13415 (ALLDEPFILES): Remove gdbsupport files.
13416
13417 2020-01-14 Tom Tromey <tom@tromey.com>
13418
13419 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
13420 USE_WIN32API when needed.
13421 * configure.ac (USE_WIN32API): Don't define.
13422 (WIN32LIBS): Use WIN32APILIBS.
13423 * configure: Rebuild.
13424
13425 2020-01-14 Tom Tromey <tom@tromey.com>
13426
13427 * configure: Rebuild.
13428 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
13429
13430 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
13431
13432 * skip.c (skip_function_command): Make skip w/o arguments use the
13433 name of the inlined function if pc is inside any inlined function.
13434
13435 2020-01-14 Luis Machado <luis.machado@linaro.org>
13436
13437 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
13438 * infrun.c (resume_1): Likewise.
13439 (handle_inferior_event): Remove stale comment.
13440 * linux-nat.c (linux_nat_target::resume): Update comments.
13441 (save_stop_reason): Likewise.
13442 (linux_nat_filter_event): Likewise.
13443 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
13444
13445 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
13446
13447 * elfread.c (record_minimal_symbol): Set section index to 0 for
13448 non-allocatable sections.
13449
13450
13451 2020-01-13 Ali Tamur <tamur@google.com>
13452
13453 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
13454 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
13455 to gdb::optional. Update comments.
13456 (dwo_file): Update comments.
13457 (read_attribute): Update API to take an additional out parameter,
13458 need_reprocess. This is used to mark attributes that need other
13459 attributes (e.g. str_offsets_base) for correct computation which may not
13460 have been read yet.
13461 (read_attribute_reprocess): New function declaration.
13462 (read_addr_index): Likewise.
13463 (read_dwo_str_index): Likewise.
13464 (read_stub_str_index): Likewise.
13465 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
13466 (lookup_addr_base): New function definition.
13467 (lookup_ranges_base): Likewise.
13468 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
13469 lookup_ranges_base.
13470 (init_cutu_and_read_dies): Update comments.
13471 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
13472 unit. This is used to inherit parent's str_offsets_base and addr_base.
13473 Update comments.
13474 (init_cutu_and_read_dies_simple): Reflect API changes.
13475 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
13476 (create_cus_hash_table): Change API to take parent compile unit.
13477 Reflect API changes.
13478 (open_and_init_dwo_file): Reflect API changes.
13479 (dwarf2_get_pc_bounds): Update comments.
13480 (dwarf2_record_block_ranges): Likewise.
13481 (read_full_die_1): Change implementation to reprocess attributes that
13482 need str_offsets_base and addr_base.
13483 (partial_die_info::read): Likewise.
13484 (read_attribute_reprocess): New function definition.
13485 (read_attribute_value): Change API to take an additional out parameter,
13486 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
13487 when a non-dwo compile unit has index based attributes.
13488 (read_attribute): Reflect API changes.
13489 (read_addr_index_1): Reflect API changes. Update comments.
13490 (dwarf2_read_addr_index_data): Reflect API changes.
13491 (dwarf2_read_addr_index): Likewise.
13492 (read_str_index): Change API and implementation. This becomes a helper
13493 to be used by the new string index related methods. Update error
13494 message and comments.
13495 (read_dwo_str_index): New function definition.
13496 (read_stub_str_index): Likewise.
13497 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
13498 * symfile.h (dwarf2_debug_sections): Likewise.
13499 * xcoffread.c (dwarf2_debug_sections): Likewise.
13500
13501 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
13502
13503 * gdbcore.h (struct core_fns) <core_read_registers>: Change
13504 core_reg_sect type to gdb_byte *.
13505 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
13506 * cris-tdep.c (fetch_core_registers): Likewise.
13507 * corelow.c (core_target::get_core_register_section): Change
13508 type of `contents` to gdb::byte_vector.
13509
13510 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
13511
13512 * tui/tui-wingeneral.c (box_win): Position the title in the center
13513 of the border.
13514
13515 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13516
13517 * corelow.c (core_target::get_core_register_section): Use
13518 std::vector instead of alloca.
13519
13520 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
13521
13522 * warning.m4: Add -Wmissing-declarations to build_warnings.
13523 * configure: Re-generate.
13524
13525 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
13526
13527 * python/python.c (init__gdb_module): Add declaration.
13528
13529 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
13530
13531 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
13532 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
13533 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
13534 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
13535 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
13536 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
13537 * ada-exp.y (_initialize_ada_exp): Add declaration.
13538 * ada-lang.c (_initialize_ada_language): Add declaration.
13539 * ada-tasks.c (_initialize_tasks): Add declaration.
13540 * agent.c (_initialize_agent): Add declaration.
13541 * aix-thread.c (_initialize_aix_thread): Add declaration.
13542 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
13543 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
13544 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
13545 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
13546 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
13547 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
13548 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
13549 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
13550 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
13551 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
13552 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
13553 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
13554 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
13555 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
13556 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
13557 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
13558 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
13559 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
13560 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
13561 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
13562 * annotate.c (_initialize_annotate): Add declaration.
13563 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
13564 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
13565 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
13566 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
13567 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
13568 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
13569 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
13570 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
13571 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
13572 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
13573 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
13574 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
13575 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
13576 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
13577 * auto-load.c (_initialize_auto_load): Add declaration.
13578 * auxv.c (_initialize_auxv): Add declaration.
13579 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
13580 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
13581 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
13582 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
13583 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
13584 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
13585 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
13586 * breakpoint.c (_initialize_breakpoint): Add declaration.
13587 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
13588 * btrace.c (_initialize_btrace): Add declaration.
13589 * charset.c (_initialize_charset): Add declaration.
13590 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
13591 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
13592 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
13593 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
13594 * cli/cli-script.c (_initialize_cli_script): Add declaration.
13595 * cli/cli-style.c (_initialize_cli_style): Add declaration.
13596 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
13597 * coffread.c (_initialize_coffread): Add declaration.
13598 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
13599 * compile/compile.c (_initialize_compile): Add declaration.
13600 * complaints.c (_initialize_complaints): Add declaration.
13601 * completer.c (_initialize_completer): Add declaration.
13602 * copying.c (_initialize_copying): Add declaration.
13603 * corefile.c (_initialize_core): Add declaration.
13604 * corelow.c (_initialize_corelow): Add declaration.
13605 * cp-abi.c (_initialize_cp_abi): Add declaration.
13606 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
13607 * cp-support.c (_initialize_cp_support): Add declaration.
13608 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
13609 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
13610 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
13611 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
13612 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
13613 * ctfread.c (_initialize_ctfread): Add declaration.
13614 * d-lang.c (_initialize_d_language): Add declaration.
13615 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
13616 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
13617 * dbxread.c (_initialize_dbxread): Add declaration.
13618 * dcache.c (_initialize_dcache): Add declaration.
13619 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
13620 * disasm.c (_initialize_disasm): Add declaration.
13621 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
13622 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
13623 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
13624 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
13625 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
13626 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
13627 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
13628 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
13629 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
13630 * elfread.c (_initialize_elfread): Add declaration.
13631 * exec.c (_initialize_exec): Add declaration.
13632 * extension.c (_initialize_extension): Add declaration.
13633 * f-lang.c (_initialize_f_language): Add declaration.
13634 * f-valprint.c (_initialize_f_valprint): Add declaration.
13635 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
13636 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
13637 * filesystem.c (_initialize_filesystem): Add declaration.
13638 * findcmd.c (_initialize_mem_search): Add declaration.
13639 * findvar.c (_initialize_findvar): Add declaration.
13640 * fork-child.c (_initialize_fork_child): Add declaration.
13641 * frame-base.c (_initialize_frame_base): Add declaration.
13642 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
13643 * frame.c (_initialize_frame): Add declaration.
13644 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
13645 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
13646 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
13647 * gcore.c (_initialize_gcore): Add declaration.
13648 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
13649 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
13650 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
13651 * gdbarch.c (_initialize_gdbarch): Add declaration.
13652 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
13653 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
13654 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
13655 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
13656 * go-lang.c (_initialize_go_language): Add declaration.
13657 * go32-nat.c (_initialize_go32_nat): Add declaration.
13658 * guile/guile.c (_initialize_guile): Add declaration.
13659 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
13660 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
13661 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
13662 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
13663 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
13664 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
13665 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
13666 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
13667 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
13668 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
13669 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
13670 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
13671 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
13672 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
13673 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
13674 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
13675 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
13676 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
13677 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
13678 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
13679 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
13680 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
13681 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
13682 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
13683 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
13684 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
13685 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
13686 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
13687 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
13688 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
13689 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
13690 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
13691 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
13692 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
13693 * infcall.c (_initialize_infcall): Add declaration.
13694 * infcmd.c (_initialize_infcmd): Add declaration.
13695 * inflow.c (_initialize_inflow): Add declaration.
13696 * infrun.c (_initialize_infrun): Add declaration.
13697 * interps.c (_initialize_interpreter): Add declaration.
13698 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
13699 * jit.c (_initialize_jit): Add declaration.
13700 * language.c (_initialize_language): Add declaration.
13701 * linux-fork.c (_initialize_linux_fork): Add declaration.
13702 * linux-nat.c (_initialize_linux_nat): Add declaration.
13703 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
13704 * linux-thread-db.c (_initialize_thread_db): Add declaration.
13705 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
13706 * m2-lang.c (_initialize_m2_language): Add declaration.
13707 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
13708 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
13709 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
13710 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
13711 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
13712 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
13713 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
13714 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
13715 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
13716 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
13717 * machoread.c (_initialize_machoread): Add declaration.
13718 * macrocmd.c (_initialize_macrocmd): Add declaration.
13719 * macroscope.c (_initialize_macroscope): Add declaration.
13720 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
13721 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
13722 * maint.c (_initialize_maint_cmds): Add declaration.
13723 * mdebugread.c (_initialize_mdebugread): Add declaration.
13724 * memattr.c (_initialize_mem): Add declaration.
13725 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
13726 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
13727 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
13728 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
13729 * mi/mi-main.c (_initialize_mi_main): Add declaration.
13730 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
13731 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
13732 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
13733 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
13734 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
13735 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
13736 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
13737 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
13738 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
13739 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
13740 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
13741 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
13742 * mipsread.c (_initialize_mipsread): Add declaration.
13743 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
13744 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
13745 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
13746 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
13747 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
13748 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
13749 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
13750 * nto-procfs.c (_initialize_procfs): Add declaration.
13751 * objc-lang.c (_initialize_objc_language): Add declaration.
13752 * observable.c (_initialize_observer): Add declaration.
13753 * opencl-lang.c (_initialize_opencl_language): Add declaration.
13754 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
13755 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
13756 * osabi.c (_initialize_gdb_osabi): Add declaration.
13757 * osdata.c (_initialize_osdata): Add declaration.
13758 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
13759 * parse.c (_initialize_parse): Add declaration.
13760 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
13761 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
13762 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
13763 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
13764 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
13765 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
13766 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
13767 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
13768 * printcmd.c (_initialize_printcmd): Add declaration.
13769 * probe.c (_initialize_probe): Add declaration.
13770 * proc-api.c (_initialize_proc_api): Add declaration.
13771 * proc-events.c (_initialize_proc_events): Add declaration.
13772 * proc-service.c (_initialize_proc_service): Add declaration.
13773 * procfs.c (_initialize_procfs): Add declaration.
13774 * producer.c (_initialize_producer): Add declaration.
13775 * psymtab.c (_initialize_psymtab): Add declaration.
13776 * python/python.c (_initialize_python): Add declaration.
13777 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
13778 * record-btrace.c (_initialize_record_btrace): Add declaration.
13779 * record-full.c (_initialize_record_full): Add declaration.
13780 * record.c (_initialize_record): Add declaration.
13781 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
13782 * regcache.c (_initialize_regcache): Add declaration.
13783 * reggroups.c (_initialize_reggroup): Add declaration.
13784 * remote-notif.c (_initialize_notif): Add declaration.
13785 * remote-sim.c (_initialize_remote_sim): Add declaration.
13786 * remote.c (_initialize_remote): Add declaration.
13787 * reverse.c (_initialize_reverse): Add declaration.
13788 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
13789 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
13790 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
13791 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
13792 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
13793 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
13794 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
13795 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
13796 Add declaration.
13797 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
13798 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
13799 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
13800 * rust-exp.y (_initialize_rust_exp): Add declaration.
13801 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
13802 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
13803 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
13804 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
13805 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
13806 * score-tdep.c (_initialize_score_tdep): Add declaration.
13807 * ser-go32.c (_initialize_ser_dos): Add declaration.
13808 * ser-mingw.c (_initialize_ser_windows): Add declaration.
13809 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
13810 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
13811 * ser-uds.c (_initialize_ser_socket): Add declaration.
13812 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
13813 * serial.c (_initialize_serial): Add declaration.
13814 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
13815 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
13816 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
13817 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
13818 * skip.c (_initialize_step_skip): Add declaration.
13819 * sol-thread.c (_initialize_sol_thread): Add declaration.
13820 * solib-aix.c (_initialize_solib_aix): Add declaration.
13821 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
13822 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
13823 * solib-frv.c (_initialize_frv_solib): Add declaration.
13824 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
13825 * solib-target.c (_initialize_solib_target): Add declaration.
13826 * solib.c (_initialize_solib): Add declaration.
13827 * source-cache.c (_initialize_source_cache): Add declaration.
13828 * source.c (_initialize_source): Add declaration.
13829 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
13830 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
13831 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
13832 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
13833 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
13834 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
13835 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
13836 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
13837 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
13838 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
13839 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
13840 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
13841 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
13842 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
13843 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
13844 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
13845 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
13846 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
13847 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
13848 * stabsread.c (_initialize_stabsread): Add declaration.
13849 * stack.c (_initialize_stack): Add declaration.
13850 * stap-probe.c (_initialize_stap_probe): Add declaration.
13851 * std-regs.c (_initialize_frame_reg): Add declaration.
13852 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
13853 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
13854 * symfile.c (_initialize_symfile): Add declaration.
13855 * symmisc.c (_initialize_symmisc): Add declaration.
13856 * symtab.c (_initialize_symtab): Add declaration.
13857 * target.c (_initialize_target): Add declaration.
13858 * target-connection.c (_initialize_target_connection): Add
13859 declaration.
13860 * target-dcache.c (_initialize_target_dcache): Add declaration.
13861 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
13862 * thread.c (_initialize_thread): Add declaration.
13863 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
13864 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
13865 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
13866 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
13867 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
13868 * tracectf.c (_initialize_ctf): Add declaration.
13869 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
13870 * tracefile.c (_initialize_tracefile): Add declaration.
13871 * tracepoint.c (_initialize_tracepoint): Add declaration.
13872 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
13873 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
13874 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
13875 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
13876 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
13877 * tui/tui-win.c (_initialize_tui_win): Add declaration.
13878 * tui/tui.c (_initialize_tui): Add declaration.
13879 * typeprint.c (_initialize_typeprint): Add declaration.
13880 * ui-style.c (_initialize_ui_style): Add declaration.
13881 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
13882 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
13883 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
13884 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
13885 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
13886 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
13887 * unittests/filtered_iterator-selftests.c
13888 (_initialize_filtered_iterator_selftests): Add declaration.
13889 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
13890 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
13891 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
13892 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
13893 * unittests/main-thread-selftests.c
13894 (_initialize_main_thread_selftests): Add declaration.
13895 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
13896 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
13897 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
13898 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
13899 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
13900 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
13901 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
13902 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
13903 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
13904 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
13905 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
13906 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
13907 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
13908 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
13909 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
13910 declaration.
13911 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
13912 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
13913 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
13914 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
13915 * user-regs.c (_initialize_user_regs): Add declaration.
13916 * utils.c (_initialize_utils): Add declaration.
13917 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
13918 * valops.c (_initialize_valops): Add declaration.
13919 * valprint.c (_initialize_valprint): Add declaration.
13920 * value.c (_initialize_values): Add declaration.
13921 * varobj.c (_initialize_varobj): Add declaration.
13922 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
13923 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
13924 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
13925 * windows-nat.c (_initialize_windows_nat): Add declaration.
13926 (_initialize_check_for_gdb_ini): Add declaration.
13927 (_initialize_loadable): Add declaration.
13928 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
13929 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
13930 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
13931 * xcoffread.c (_initialize_xcoffread): Add declaration.
13932 * xml-support.c (_initialize_xml_support): Add declaration.
13933 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
13934 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
13935 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
13936 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
13937
13938 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13939
13940 * regformats/regdat.sh: Generate declaration for init function.
13941
13942 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13943
13944 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
13945 up.
13946 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
13947 close_one_inferior>: New methods.
13948 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
13949 pass down target to find_inferior_pid.
13950 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
13951 Pass down target to find_inferior_ptid.
13952 (gdbsim_target::create_inferior): Pass down target to
13953 add_thread_silent.
13954 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
13955 target down to find_inferior_ptid and switch_to_thread.
13956 (gdbsim_target::close): Update to call close_one_inferior.
13957 (struct resume_data): Remove.
13958 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
13959 directly, rather than through a void pointer.
13960 (gdbsim_target::resume): Update to call resume_one_inferior.
13961
13962 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
13963
13964 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
13965
13966 2020-01-12 Pedro Alves <palves@redhat.com>
13967
13968 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
13969 directly for the current inferior instead of
13970 discard_all_inferiors.
13971 (discard_all_inferiors): Delete.
13972
13973 2020-01-11 Tom Tromey <tom@tromey.com>
13974
13975 * tui/tui-wingeneral.c (box_win): Check cli_styling.
13976 * tui/tui-winsource.c (tui_source_window_base::refill): Use
13977 deprecated_safe_get_selected_frame.
13978
13979 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13980
13981 * inferior.c (print_inferior): Switch inferior before printing it.
13982
13983 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
13984 Pedro Alves <palves@redhat.com>
13985
13986 * progspace-and-thread.c (switch_to_program_space_and_thread):
13987 Assert there's an inferior for PSPACE. Use
13988 switch_to_inferior_no_thread to switch the inferior too.
13989 * progspace.c (program_space::~program_space): Call
13990 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
13991 (program_space::free_all_objfiles): Don't call clear_symtab_users
13992 here.
13993 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
13994
13995 2020-01-10 Pedro Alves <palves@redhat.com>
13996
13997 * NEWS: Mention multi-target debugging, "info connections", and
13998 "add-inferior -no-connection".
13999
14000 2020-01-10 Pedro Alves <palves@redhat.com>
14001
14002 * infrun.c: Include "target-connection.h".
14003 (check_multi_target_resumption): New.
14004 (proceed): Call it.
14005 * target-connection.c (make_target_connection_string): Make
14006 extern.
14007 * target-connection.h (make_target_connection_string): Declare.
14008
14009 2020-01-10 Pedro Alves <palves@redhat.com>
14010
14011 * Makefile.in (COMMON_SFILES): Add target-connection.c.
14012 * inferior.c (uiout_field_connection): New function.
14013 (print_inferior): Add new "connection-id" column.
14014 (add_inferior_command): Show connection number/string of added
14015 inferior.
14016 * process-stratum-target.h
14017 (process_stratum_target::connection_string): New virtual method.
14018 (process_stratum_target::connection_number): New field.
14019 * remote.c (remote_target::connection_string): New override.
14020 * target-connection.c: New file.
14021 * target-connection.h: New file.
14022 * target.c (decref_target): Remove process_stratum targets from
14023 the connection list.
14024 (target_stack::push): Add process_stratum targets to the
14025 connection list.
14026
14027 2020-01-10 Pedro Alves <palves@redhat.com>
14028
14029 Revert:
14030 2016-04-12 Pedro Alves <palves@redhat.com>
14031 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
14032 Remove references to name.
14033 * serial.h (struct serial) <name>: Delete.
14034
14035 2020-01-10 Pedro Alves <palves@redhat.com>
14036
14037 * gdbarch-selftests.c (register_to_value_test): Remove "target
14038 already pushed" check.
14039
14040 2020-01-10 Pedro Alves <palves@redhat.com>
14041 John Baldwin <jhb@FreeBSD.org>
14042
14043 * aarch64-linux-nat.c
14044 (aarch64_linux_nat_target::thread_architecture): Adjust.
14045 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
14046 (task_command_1): Likewise.
14047 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
14048 (aix_thread_target::wait, aix_thread_target::fetch_registers)
14049 (aix_thread_target::store_registers)
14050 (aix_thread_target::thread_alive): Adjust.
14051 * amd64-fbsd-tdep.c: Include "inferior.h".
14052 (amd64fbsd_get_thread_local_address): Pass down target.
14053 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
14054 thread's gdbarch instead of target_gdbarch.
14055 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
14056 get_last_target_status.
14057 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
14058 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
14059 inferiors.
14060 (update_inserted_breakpoint_locations): Skip if inferiors with no
14061 execution.
14062 (update_global_location_list): When handling moribund locations,
14063 find representative inferior for location's pspace, and use thread
14064 count of its process_stratum target.
14065 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
14066 * bsd-uthread.c (bsd_uthread_target::wait): Use
14067 as_process_stratum_target and adjust thread_change_ptid and
14068 add_thread calls.
14069 (bsd_uthread_target::update_thread_list): Use
14070 as_process_stratum_target and adjust find_thread_ptid,
14071 thread_change_ptid and add_thread calls.
14072 * btrace.c (maint_btrace_packet_history_cmd): Adjust
14073 find_thread_ptid call.
14074 * corelow.c (add_to_thread_list): Adjust add_thread call.
14075 (core_target_open): Adjust add_thread_silent and thread_count
14076 calls.
14077 (core_target::pid_to_str): Adjust find_inferior_ptid call.
14078 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
14079 * event-top.c (async_disconnect): Pop targets from all inferiors.
14080 * exec.c (add_target_sections): Push exec target on all inferiors
14081 sharing the program space.
14082 (remove_target_sections): Remove the exec target from all
14083 inferiors sharing the program space.
14084 (exec_on_vfork): New.
14085 * exec.h (exec_on_vfork): Declare.
14086 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
14087 Pass it down.
14088 (fbsd_nat_target::update_thread_list): Adjust.
14089 (fbsd_nat_target::resume): Adjust.
14090 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
14091 down.
14092 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
14093 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
14094 get_thread_arch_regcache call.
14095 * fork-child.c (gdb_startup_inferior): Pass target down to
14096 startup_inferior and set_executing.
14097 * gdbthread.h (struct process_stratum_target): Forward declare.
14098 (add_thread, add_thread_silent, add_thread_with_info)
14099 (in_thread_list): Add process_stratum_target parameter.
14100 (find_thread_ptid(inferior*, ptid_t)): New overload.
14101 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
14102 parameter.
14103 (all_threads()): Delete overload.
14104 (all_threads, all_non_exited_threads): Add process_stratum_target
14105 parameter.
14106 (all_threads_safe): Use brace initialization.
14107 (thread_count): Add process_stratum_target parameter.
14108 (set_resumed, set_running, set_stop_requested, set_executing)
14109 (threads_are_executing, finish_thread_state): Add
14110 process_stratum_target parameter.
14111 (switch_to_thread): Use is_current_thread.
14112 * i386-fbsd-tdep.c: Include "inferior.h".
14113 (i386fbsd_get_thread_local_address): Pass down target.
14114 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
14115 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
14116 have_inferiors check.
14117 * inf-ptrace.c (inf_ptrace_target::create_inferior)
14118 (inf_ptrace_target::attach): Adjust.
14119 * infcall.c (run_inferior_call): Adjust.
14120 * infcmd.c (run_command_1): Pass target to
14121 scoped_finish_thread_state.
14122 (proceed_thread_callback): Skip inferiors with no execution.
14123 (continue_command): Rename 'all_threads' local to avoid hiding
14124 'all_threads' function. Adjust get_last_target_status call.
14125 (prepare_one_step): Adjust set_running call.
14126 (signal_command): Use user_visible_resume_target. Compare thread
14127 pointers instead of inferior_ptid.
14128 (info_program_command): Adjust to pass down target.
14129 (attach_command): Mark target's 'thread_executing' flag.
14130 (stop_current_target_threads_ns): New, factored out from ...
14131 (interrupt_target_1): ... this. Switch inferior before making
14132 target calls.
14133 * inferior-iter.h
14134 (struct all_inferiors_iterator, struct all_inferiors_range)
14135 (struct all_inferiors_safe_range)
14136 (struct all_non_exited_inferiors_range): Filter on
14137 process_stratum_target too. Remove explicit.
14138 * inferior.c (inferior::inferior): Push dummy target on target
14139 stack.
14140 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
14141 Add process_stratum_target parameter, and pass it down.
14142 (have_live_inferiors): Adjust.
14143 (switch_to_inferior_and_push_target): New.
14144 (add_inferior_command, clone_inferior_command): Handle
14145 "-no-connection" parameter. Use
14146 switch_to_inferior_and_push_target.
14147 (_initialize_inferior): Mention "-no-connection" option in
14148 the help of "add-inferior" and "clone-inferior" commands.
14149 * inferior.h: Include "process-stratum-target.h".
14150 (interrupt_target_1): Use bool.
14151 (struct inferior) <push_target, unpush_target, target_is_pushed,
14152 find_target_beneath, top_target, process_target, target_at,
14153 m_stack>: New.
14154 (discard_all_inferiors): Delete.
14155 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
14156 (all_inferiors, all_non_exited_inferiors): Add
14157 process_stratum_target parameter.
14158 * infrun.c: Include "gdb_select.h" and <unordered_map>.
14159 (target_last_proc_target): New global.
14160 (follow_fork_inferior): Push target on new inferior. Pass target
14161 to add_thread_silent. Call exec_on_vfork. Handle target's
14162 reference count.
14163 (follow_fork): Adjust get_last_target_status call. Also consider
14164 target.
14165 (follow_exec): Push target on new inferior.
14166 (struct execution_control_state) <target>: New field.
14167 (user_visible_resume_target): New.
14168 (do_target_resume): Call target_async.
14169 (resume_1): Set target's threads_executing flag. Consider resume
14170 target.
14171 (commit_resume_all_targets): New.
14172 (proceed): Also consider resume target. Skip threads of inferiors
14173 with no execution. Commit resumtion in all targets.
14174 (start_remote): Pass current inferior to wait_for_inferior.
14175 (infrun_thread_stop_requested): Consider target as well. Pass
14176 thread_info pointer to clear_inline_frame_state instead of ptid.
14177 (infrun_thread_thread_exit): Consider target as well.
14178 (random_pending_event_thread): New inferior parameter. Use it.
14179 (do_target_wait): Rename to ...
14180 (do_target_wait_1): ... this. Add inferior parameter, and pass it
14181 down.
14182 (threads_are_resumed_pending_p, do_target_wait): New.
14183 (prepare_for_detach): Adjust calls.
14184 (wait_for_inferior): New inferior parameter. Handle it. Use
14185 do_target_wait_1 instead of do_target_wait.
14186 (fetch_inferior_event): Adjust. Switch to representative
14187 inferior. Pass target down.
14188 (set_last_target_status): Add process_stratum_target parameter.
14189 Save target in global.
14190 (get_last_target_status): Add process_stratum_target parameter and
14191 handle it.
14192 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
14193 (context_switch): Check inferior_ptid == null_ptid before calling
14194 inferior_thread().
14195 (get_inferior_stop_soon): Pass down target.
14196 (wait_one): Rename to ...
14197 (poll_one_curr_target): ... this.
14198 (struct wait_one_event): New.
14199 (wait_one): New.
14200 (stop_all_threads): Adjust.
14201 (handle_no_resumed, handle_inferior_event): Adjust to consider the
14202 event's target.
14203 (switch_back_to_stepped_thread): Also consider target.
14204 (print_stop_event): Update.
14205 (normal_stop): Update. Also consider the resume target.
14206 * infrun.h (wait_for_inferior): Remove declaration.
14207 (user_visible_resume_target): New declaration.
14208 (get_last_target_status, set_last_target_status): New
14209 process_stratum_target parameter.
14210 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
14211 process_stratum_target parameter, and use it.
14212 (clear_inline_frame_state (thread_info*)): New.
14213 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
14214 process_stratum_target parameter.
14215 (clear_inline_frame_state (thread_info*)): Declare.
14216 * linux-fork.c (delete_checkpoint_command): Pass target down to
14217 find_thread_ptid.
14218 (checkpoint_command): Adjust.
14219 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
14220 instead of just tweaking inferior_ptid.
14221 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
14222 (exit_lwp): Pass target down to find_thread_ptid.
14223 (attach_proc_task_lwp_callback): Pass target down to
14224 add_thread/set_running/set_executing.
14225 (linux_nat_target::attach): Pass target down to
14226 thread_change_ptid.
14227 (get_detach_signal): Pass target down to find_thread_ptid.
14228 Consider last target status's target.
14229 (linux_resume_one_lwp_throw, resume_lwp)
14230 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
14231 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
14232 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
14233 (linux_nat_target::async_wait_fd): New.
14234 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
14235 target down.
14236 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
14237 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
14238 * linux-thread-db.c (struct thread_db_info::process_target): New
14239 field.
14240 (add_thread_db_info): Save target.
14241 (get_thread_db_info): New process_stratum_target parameter. Also
14242 match target.
14243 (delete_thread_db_info): New process_stratum_target parameter.
14244 Also match target.
14245 (thread_from_lwp): Adjust to pass down target.
14246 (thread_db_notice_clone): Pass down target.
14247 (check_thread_db_callback): Pass down target.
14248 (try_thread_db_load_1): Always push the thread_db target.
14249 (try_thread_db_load, record_thread): Pass target down.
14250 (thread_db_target::detach): Pass target down. Always unpush the
14251 thread_db target.
14252 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
14253 target down. Always unpush the thread_db target.
14254 (find_new_threads_callback, thread_db_find_new_threads_2)
14255 (thread_db_target::update_thread_list): Pass target down.
14256 (thread_db_target::pid_to_str): Pass current inferior down.
14257 (thread_db_target::get_thread_local_address): Pass target down.
14258 (thread_db_target::resume, maintenance_check_libthread_db): Pass
14259 target down.
14260 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
14261 * procfs.c (procfs_target::procfs_init_inferior): Declare.
14262 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
14263 (procfs_init_inferior): Rename to ...
14264 (procfs_target::procfs_init_inferior): ... this and adjust.
14265 (procfs_target::create_inferior, procfs_notice_thread)
14266 (procfs_do_thread_registers): Adjust.
14267 * ppc-fbsd-tdep.c: Include "inferior.h".
14268 (ppcfbsd_get_thread_local_address): Pass down target.
14269 * proc-service.c (ps_xfer_memory): Switch current inferior and
14270 program space as well.
14271 (get_ps_regcache): Pass target down.
14272 * process-stratum-target.c
14273 (process_stratum_target::thread_address_space)
14274 (process_stratum_target::thread_architecture): Pass target down.
14275 * process-stratum-target.h
14276 (process_stratum_target::threads_executing): New field.
14277 (as_process_stratum_target): New.
14278 * ravenscar-thread.c
14279 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
14280 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
14281 down.
14282 * record-btrace.c (record_btrace_target::info_record): Adjust.
14283 (record_btrace_target::record_method)
14284 (record_btrace_target::record_is_replaying)
14285 (record_btrace_target::fetch_registers)
14286 (get_thread_current_frame_id, record_btrace_target::resume)
14287 (record_btrace_target::wait, record_btrace_target::stop): Pass
14288 target down.
14289 * record-full.c (record_full_wait_1): Switch to event thread.
14290 Pass target down.
14291 * regcache.c (regcache::regcache)
14292 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
14293 process_stratum_target parameter and handle it.
14294 (current_thread_target): New global.
14295 (get_thread_regcache): Add process_stratum_target parameter and
14296 handle it. Switch inferior before calling target method.
14297 (get_thread_regcache): Pass target down.
14298 (get_thread_regcache_for_ptid): Pass target down.
14299 (registers_changed_ptid): Add process_stratum_target parameter and
14300 handle it.
14301 (registers_changed_thread, registers_changed): Pass target down.
14302 (test_get_thread_arch_aspace_regcache): New.
14303 (current_regcache_test): Define a couple local test_target_ops
14304 instances and use them for testing.
14305 (readwrite_regcache): Pass process_stratum_target parameter.
14306 (cooked_read_test, cooked_write_test): Pass mock_target down.
14307 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
14308 (get_thread_arch_aspace_regcache): Add process_stratum_target
14309 parameter.
14310 (regcache::target): New method.
14311 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
14312 (regcache::registers_changed_ptid): Add process_stratum_target
14313 parameter.
14314 (regcache::m_target): New field.
14315 (registers_changed_ptid): Add process_stratum_target parameter.
14316 * remote.c (remote_state::supports_vCont_probed): New field.
14317 (remote_target::async_wait_fd): New method.
14318 (remote_unpush_and_throw): Add remote_target parameter.
14319 (get_current_remote_target): Adjust.
14320 (remote_target::remote_add_inferior): Push target.
14321 (remote_target::remote_add_thread)
14322 (remote_target::remote_notice_new_inferior)
14323 (get_remote_thread_info): Pass target down.
14324 (remote_target::update_thread_list): Skip threads of inferiors
14325 bound to other targets. (remote_target::close): Don't discard
14326 inferiors. (remote_target::add_current_inferior_and_thread)
14327 (remote_target::process_initial_stop_replies)
14328 (remote_target::start_remote)
14329 (remote_target::remote_serial_quit_handler): Pass down target.
14330 (remote_target::remote_unpush_target): New remote_target
14331 parameter. Unpush the target from all inferiors.
14332 (remote_target::remote_unpush_and_throw): New remote_target
14333 parameter. Pass it down.
14334 (remote_target::open_1): Check whether the current inferior has
14335 execution instead of checking whether any inferior is live. Pass
14336 target down.
14337 (remote_target::remote_detach_1): Pass down target. Use
14338 remote_unpush_target.
14339 (extended_remote_target::attach): Pass down target.
14340 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
14341 (remote_target::append_resumption): Pass down target.
14342 (remote_target::append_pending_thread_resumptions)
14343 (remote_target::remote_resume_with_hc, remote_target::resume)
14344 (remote_target::commit_resume): Pass down target.
14345 (remote_target::remote_stop_ns): Check supports_vCont_probed.
14346 (remote_target::interrupt_query)
14347 (remote_target::remove_new_fork_children)
14348 (remote_target::check_pending_events_prevent_wildcard_vcont)
14349 (remote_target::remote_parse_stop_reply)
14350 (remote_target::process_stop_reply): Pass down target.
14351 (first_remote_resumed_thread): New remote_target parameter. Pass
14352 it down.
14353 (remote_target::wait_as): Pass down target.
14354 (unpush_and_perror): New remote_target parameter. Pass it down.
14355 (remote_target::readchar, remote_target::remote_serial_write)
14356 (remote_target::getpkt_or_notif_sane_1)
14357 (remote_target::kill_new_fork_children, remote_target::kill): Pass
14358 down target.
14359 (remote_target::mourn_inferior): Pass down target. Use
14360 remote_unpush_target.
14361 (remote_target::core_of_thread)
14362 (remote_target::remote_btrace_maybe_reopen): Pass down target.
14363 (remote_target::pid_to_exec_file)
14364 (remote_target::thread_handle_to_thread_info): Pass down target.
14365 (remote_target::async_wait_fd): New.
14366 * riscv-fbsd-tdep.c: Include "inferior.h".
14367 (riscv_fbsd_get_thread_local_address): Pass down target.
14368 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
14369 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
14370 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
14371 Adjust.
14372 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
14373 * solib-svr4.c (enable_break): Pass down target.
14374 * spu-multiarch.c (parse_spufs_run): Pass down target.
14375 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
14376 * target-delegates.c: Regenerate.
14377 * target.c (g_target_stack): Delete.
14378 (current_top_target): Return the current inferior's top target.
14379 (target_has_execution_1): Refer to the passed-in inferior's top
14380 target.
14381 (target_supports_terminal_ours): Check whether the initial
14382 inferior was already created.
14383 (decref_target): New.
14384 (target_stack::push): Incref/decref the target.
14385 (push_target, push_target, unpush_target): Adjust.
14386 (target_stack::unpush): Defref target.
14387 (target_is_pushed): Return bool. Adjust to refer to the current
14388 inferior's target stack.
14389 (dispose_inferior): Delete, and inline parts ...
14390 (target_preopen): ... here. Only dispose of the current inferior.
14391 (target_detach): Hold strong target reference while detaching.
14392 Pass target down.
14393 (target_thread_name): Add assertion.
14394 (target_resume): Pass down target.
14395 (target_ops::beneath, find_target_at): Adjust to refer to the
14396 current inferior's target stack.
14397 (get_dummy_target): New.
14398 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
14399 has a thread running.
14400 (initialize_targets): Rename to ...
14401 (_initialize_target): ... this.
14402 * target.h: Include "gdbsupport/refcounted-object.h".
14403 (struct target_ops): Inherit refcounted_object.
14404 (target_ops::shortname, target_ops::longname): Make const.
14405 (target_ops::async_wait_fd): New method.
14406 (decref_target): Declare.
14407 (struct target_ops_ref_policy): New.
14408 (target_ops_ref): New typedef.
14409 (get_dummy_target): Declare function.
14410 (target_is_pushed): Return bool.
14411 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
14412 (all_matching_threads_iterator::all_matching_threads_iterator):
14413 Handle filter target.
14414 * thread-iter.h (struct all_matching_threads_iterator, struct
14415 all_matching_threads_range, class all_non_exited_threads_range):
14416 Filter by target too. Remove explicit.
14417 * thread.c (threads_executing): Delete.
14418 (inferior_thread): Pass down current inferior.
14419 (clear_thread_inferior_resources): Pass down thread pointer
14420 instead of ptid_t.
14421 (add_thread_silent, add_thread_with_info, add_thread): Add
14422 process_stratum_target parameter. Use it for thread and inferior
14423 searches.
14424 (is_current_thread): New.
14425 (thread_info::deletable): Use it.
14426 (find_thread_ptid, thread_count, in_thread_list)
14427 (thread_change_ptid, set_resumed, set_running): New
14428 process_stratum_target parameter. Pass it down.
14429 (set_executing): New process_stratum_target parameter. Pass it
14430 down. Adjust reference to 'threads_executing'.
14431 (threads_are_executing): New process_stratum_target parameter.
14432 Adjust reference to 'threads_executing'.
14433 (set_stop_requested, finish_thread_state): New
14434 process_stratum_target parameter. Pass it down.
14435 (switch_to_thread): Also match inferior.
14436 (switch_to_thread): New process_stratum_target parameter. Pass it
14437 down.
14438 (update_threads_executing): Reimplement.
14439 * top.c (quit_force): Pop targets from all inferior.
14440 (gdb_init): Don't call initialize_targets.
14441 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
14442 Declare.
14443 (windows_add_thread, windows_delete_thread): Adjust.
14444 (get_windows_debug_event): Rename to ...
14445 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
14446 * tracefile-tfile.c (tfile_target_open): Pass down target.
14447 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
14448 Forward declare.
14449 (switch_to_thread): Add process_stratum_target parameter.
14450 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
14451 parameter. Use it.
14452 (mi_on_resume): Pass target down.
14453 * nat/fork-inferior.c (startup_inferior): Add
14454 process_stratum_target parameter. Pass it down.
14455 * nat/fork-inferior.h (startup_inferior): Add
14456 process_stratum_target parameter.
14457 * python/py-threadevent.c (py_get_event_thread): Pass target down.
14458
14459 2020-01-10 Pedro Alves <palves@redhat.com>
14460
14461 * remote.c (remote_target::start_remote): Don't set inferior_ptid
14462 directly. Instead find the first thread in the thread list and
14463 use switch_to_thread.
14464
14465 2020-01-10 Pedro Alves <palves@redhat.com>
14466
14467 * remote.c (remote_target::remote_add_inferior): Don't bind a
14468 process to the current inferior if the current inferior is already
14469 bound to a process.
14470
14471 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14472 Pedro Alves <palves@redhat.com>
14473
14474 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
14475 If no process is specified, return null_ptid instead of
14476 inferior_ptid.
14477 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
14478 TARGET_WAITKIND_SIGNALLED with no pid.
14479
14480 2020-01-10 Pedro Alves <palves@redhat.com>
14481
14482 * remote.c (first_remote_resumed_thread): New.
14483 (remote_target::wait_as): Use it as default event_ptid instead of
14484 inferior_ptid.
14485
14486 2020-01-10 Pedro Alves <palves@redhat.com>
14487
14488 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
14489
14490 2020-01-10 Pedro Alves <palves@redhat.com>
14491
14492 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
14493 not -1.
14494
14495 2020-01-10 Pedro Alves <palves@redhat.com>
14496
14497 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
14498 ptid to get_last_target_status.
14499 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
14500 ptid to get_last_target_status.
14501 * infcmd.c (continue_command): Don't pass a target_waitstatus to
14502 get_last_target_status.
14503 (info_program_command): Don't pass a target_waitstatus to
14504 get_last_target_status.
14505 * infrun.c (init_wait_for_inferior): Use
14506 nullify_last_target_wait_ptid.
14507 (get_last_target_status): Handle nullptr arguments.
14508 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
14509 (print_stop_event): Don't pass a ptid to get_last_target_status.
14510 (normal_stop): Don't pass a ptid to get_last_target_status.
14511 * infrun.h (get_last_target_status, set_last_target_status): Move
14512 comments here and update.
14513 (nullify_last_target_wait_ptid): Declare.
14514 * linux-fork.c (fork_load_infrun_state): Remove local extern
14515 declaration of nullify_last_target_wait_ptid.
14516 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
14517 to get_last_target_status.
14518
14519 2020-01-10 Pedro Alves <palves@redhat.com>
14520
14521 * gdbthread.h (scoped_restore_current_thread)
14522 <dont_restore, restore, m_dont_restore>: Declare.
14523 * thread.c (thread_alive): Add assertion. Return bool.
14524 (switch_to_thread_if_alive): New.
14525 (prune_threads): Switch inferior/thread.
14526 (print_thread_info_1): Switch thread before calling target methods.
14527 (scoped_restore_current_thread::restore): New, factored out from
14528 ...
14529 (scoped_restore_current_thread::~scoped_restore_current_thread):
14530 ... this.
14531 (scoped_restore_current_thread::scoped_restore_current_thread):
14532 Add assertion.
14533 (thread_apply_all_command, thread_select): Use
14534 switch_to_thread_if_alive.
14535 * infrun.c (proceed, restart_threads, handle_signal_stop)
14536 (switch_back_to_stepped_thread): Switch current thread before
14537 calling target methods.
14538
14539 2020-01-10 Pedro Alves <palves@redhat.com>
14540
14541 * inferior.c (switch_to_inferior_no_thread): New function,
14542 factored out from ...
14543 (inferior_command): ... here.
14544 * inferior.h (switch_to_inferior_no_thread): Declare.
14545 * mi/mi-main.c (run_one_inferior): Use
14546 switch_to_inferior_no_thread.
14547
14548 2020-01-10 Pedro Alves <palves@redhat.com>
14549
14550 * infcmd.c (kill_command): Remove dead code.
14551
14552 2020-01-10 Pedro Alves <palves@redhat.com>
14553
14554 * remote.c (remote_target::mourn_inferior): No longer check
14555 whether the target is running.
14556
14557 2020-01-10 Pedro Alves <palves@redhat.com>
14558
14559 * corelow.c (core_target::has_execution): Change parameter type to
14560 inferior pointer.
14561 * inferior.c (number_of_live_inferiors): Use
14562 inferior::has_execution instead of target_has_execution_1.
14563 * inferior.h (inferior::has_execution): New.
14564 * linux-thread-db.c (thread_db_target::update_thread_list): Use
14565 inferior::has_execution instead of target_has_execution_1.
14566 * process-stratum-target.c
14567 (process_stratum_target::has_execution): Change parameter type to
14568 inferior pointer. Check the inferior's PID instead of
14569 inferior_ptid.
14570 * process-stratum-target.h
14571 (process_stratum_target::has_execution): Change parameter type to
14572 inferior pointer.
14573 * record-full.c (record_full_core_target::has_execution): Change
14574 parameter type to inferior pointer.
14575 * target.c (target_has_execution_1): Change parameter type to
14576 inferior pointer.
14577 (target_has_execution_current): Adjust.
14578 * target.h (target_ops::has_execution): Change parameter type to
14579 inferior pointer.
14580 (target_has_execution_1): Change parameter type to inferior
14581 pointer. Change return type to bool.
14582 * tracefile.h (tracefile_target::has_execution): Change parameter
14583 type to inferior pointer.
14584
14585 2020-01-10 Pedro Alves <palves@redhat.com>
14586
14587 * exceptions.c (print_flush): Remove current_top_target() check.
14588
14589 2020-01-10 Pedro Alves <palves@redhat.com>
14590
14591 * remote.c (show_remote_exec_file): Show the current inferior's
14592 exec-file instead of the command variable's value.
14593
14594 2020-01-10 Pedro Alves <palves@redhat.com>
14595
14596 * record-full.c (record_full_resume_ptid): New global.
14597 (record_full_target::resume): Set it.
14598 (record_full_wait_1): Use record_full_resume_ptid instead of
14599 inferior_ptid.
14600
14601 2020-01-10 Pedro Alves <palves@redhat.com>
14602
14603 * gdbthread.h (scoped_restore_current_thread)
14604 <dont_restore, restore, m_dont_restore>: Declare.
14605 * thread.c (thread_alive): Add assertion. Return bool.
14606 (switch_to_thread_if_alive): New.
14607 (prune_threads): Switch inferior/thread.
14608 (print_thread_info_1): Switch thread before calling target methods.
14609 (scoped_restore_current_thread::restore): New, factored out from
14610 ...
14611 (scoped_restore_current_thread::~scoped_restore_current_thread):
14612 ... this.
14613 (scoped_restore_current_thread::scoped_restore_current_thread):
14614 Add assertion.
14615 (thread_apply_all_command, thread_select): Use
14616 switch_to_thread_if_alive.
14617
14618 2020-01-10 George Barrett <bob@bob131.so>
14619
14620 * stap-probe.c (stap_modify_semaphore): Don't check for null
14621 semaphores.
14622 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
14623 for null semaphores.
14624
14625 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
14626
14627 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
14628 all source windows, and maintain horizontal scroll status while
14629 doing so.
14630
14631 2020-01-09 Tom Tromey <tom@tromey.com>
14632
14633 PR tui/18932:
14634 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
14635 update_source_window, not print_source_lines.
14636
14637 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
14638
14639 * tui/tui.c (tui_enable): Register tui hooks after calling
14640 tui_display_main.
14641
14642 2020-01-09 Christian Biesinger <cbiesinger@google.com>
14643
14644 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
14645
14646 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
14647
14648 * thread.c (print_thread_info_1): Fix indentation.
14649
14650 2020-01-09 Christian Biesinger <cbiesinger@google.com>
14651
14652 * symtab.c (general_symbol_info::compute_and_set_names): Move the
14653 unique_xmalloc_ptr outside the if to always free the demangled name.
14654
14655 2020-01-08 Tom Tromey <tromey@adacore.com>
14656
14657 * xcoffread.c (enter_line_range, read_xcoff_symtab)
14658 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
14659 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
14660 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
14661 Remove.
14662 (section_offsets): New typedef.
14663 * symtab.c (fixup_section, get_msymbol_address): Update.
14664 * symmisc.c (dump_msymbols): Update.
14665 * symfile.h (relative_addr_info_to_section_offsets)
14666 (symfile_map_offsets_to_segments): Update.
14667 * symfile.c (build_section_addr_info_from_objfile)
14668 (init_objfile_sect_indices): Update.
14669 (struct place_section_arg): Change type of "offsets".
14670 (place_section): Update.
14671 (relative_addr_info_to_section_offsets): Change type of
14672 "section_offsets". Remove "num_sections" parameter.
14673 (default_symfile_offsets, syms_from_objfile_1)
14674 (set_objfile_default_section_offset): Update.
14675 (reread_symbols): No need to preserve section offsets by hand.
14676 (symfile_map_offsets_to_segments): Change type of "offsets".
14677 * stap-probe.c (relocate_address): Update.
14678 * stabsread.h (process_one_symbol): Update.
14679 * solib-target.c (struct lm_info_target) <offsets>: Change type.
14680 (solib_target_relocate_section_addresses): Update.
14681 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
14682 Update.
14683 * solib-frv.c (frv_relocate_main_executable): Update.
14684 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
14685 * solib-aix.c (solib_aix_get_section_offsets): Change return
14686 type.
14687 (solib_aix_solib_create_inferior_hook): Update.
14688 * remote.c (remote_target::get_offsets): Update.
14689 * psymtab.c (find_pc_sect_psymtab): Update.
14690 * psympriv.h (struct partial_symbol) <address, text_low,
14691 text_high>: Update.
14692 * objfiles.h (obj_section_offset): Update.
14693 (struct objfile) <section_offsets>: Change type.
14694 <num_sections>: Remove.
14695 (objfile_relocate): Update.
14696 * objfiles.c (entry_point_address_query): Update
14697 (relocate_one_symbol): Change type of "section_offsets".
14698 (objfile_relocate1, objfile_relocate1): Change type of
14699 "new_offsets".
14700 (objfile_rebase1): Update.
14701 * mipsread.c (mipscoff_symfile_read): Update.
14702 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
14703 parameter.
14704 * mdebugread.c (parse_symbol): Change type of "section_offsets".
14705 (parse_external, psymtab_to_symtab_1): Update.
14706 * machoread.c (macho_symfile_offsets): Update.
14707 * ia64-tdep.c (ia64_find_unwind_table): Update.
14708 * hppa-tdep.c (read_unwind_info): Update.
14709 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
14710 * dwarf2read.c (create_addrmap_from_index)
14711 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
14712 (process_psymtab_comp_unit_reader, add_partial_symbol)
14713 (add_partial_subprogram, process_full_comp_unit)
14714 (read_file_scope, read_func_scope, read_lexical_block_scope)
14715 (read_call_site_scope, dwarf2_rnglists_process)
14716 (dwarf2_ranges_process, dwarf2_ranges_read)
14717 (dwarf_decode_lines_1, var_decode_location, new_symbol)
14718 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
14719 Update.
14720 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
14721 Update.
14722 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
14723 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
14724 (process_one_symbol): Change type of "section_offsets".
14725 * ctfread.c (get_objfile_text_range): Update.
14726 * coffread.c (coff_symtab_read, enter_linenos)
14727 (process_coff_symbol): Update.
14728 * coff-pe-read.c (add_pe_forwarded_sym): Update.
14729 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
14730
14731 2020-01-08 Tom Tromey <tromey@adacore.com>
14732
14733 * dwarf2read.c (parse_macro_definition): Use std::string.
14734 (parse_macro_definition): Likewise.
14735
14736 2020-01-08 Tom Tromey <tromey@adacore.com>
14737
14738 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
14739 (ATTR_ALLOC_CHUNK): Remove.
14740
14741 2020-01-08 Tom Tromey <tromey@adacore.com>
14742
14743 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
14744
14745 2020-01-08 Tom Tromey <tromey@adacore.com>
14746
14747 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
14748 (dwarf2_compute_name, open_dwo_file): Likewise.
14749 (process_enumeration_scope): Use std::vector.
14750 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
14751 (partial_die_info::fixup, dwarf2_start_subfile)
14752 (guess_full_die_structure_name, dwarf2_name): Likewise.
14753 (determine_prefix): Update.
14754 (guess_full_die_structure_name): Make return type const.
14755 (partial_die_full_name): Return unique_xmalloc_ptr.
14756 (DW_FIELD_ALLOC_CHUNK): Remove.
14757
14758 2020-01-07 Tom Tromey <tromey@adacore.com>
14759
14760 PR build/24937:
14761 * stap-probe.c (class stap_static_probe_ops): Add constructor.
14762
14763 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
14764
14765 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
14766
14767 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
14768
14769 * stack.c (print_frame_info): Move disassemble_next_line code
14770 inside source_print block.
14771
14772 2020-01-06 Eli Zaretskii <eliz@gnu.org>
14773
14774 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
14775 gdb/signals.h, as we are now using native signal symbols.
14776
14777 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
14778
14779 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
14780 overflow by an early check of content vs threshold.
14781 * tui/tui-source.c (tui_source_window::line_is_displayed):
14782 Likewise.
14783
14784 2020-01-06 Eli Zaretskii <eliz@gnu.org>
14785
14786 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
14787
14788 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
14789
14790 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
14791 export table if no section contains it's RVA.
14792
14793 2020-01-06 Eli Zaretskii <eliz@gnu.org>
14794
14795 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
14796
14797 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
14798
14799 * source.c (print_source_lines_base): Set last_line_listed.
14800
14801 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
14802
14803 * tui/tui-disasm.c: Remove trailing spaces.
14804
14805 2020-01-06 Eli Zaretskii <eliz@gnu.org>
14806 Pedro Alves <palves@redhat.com>
14807
14808 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
14809 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
14810 (windows_gdb_signal_to_target): New function, uses the above
14811 enumeration to convert GDB internal signal codes to equivalent
14812 Windows codes.
14813 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
14814 * windows-nat.c: Include "gdb_wait.h".
14815 (get_windows_debug_event): Extract the fatal exception from the
14816 exit status and convert to the equivalent Posix signal number.
14817 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
14818 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
14819 * gdbsupport/gdb_wait.c: New file, implements
14820 windows_status_to_termsig.
14821 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
14822 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
14823
14824 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
14825
14826 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
14827 show_layout.
14828
14829 2020-01-05 Luis Machado <luis.machado@linaro.org>
14830
14831 * aarch64-linux-nat.c
14832 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
14833 and bfd_mach_aarch64.
14834
14835 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14836
14837 * ui-file.c (stdio_file::can_emit_style_escape)
14838 (tee_file::can_emit_style_escape): Ensure style is used also on
14839 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
14840 to gdb_stdout.
14841 * main.c (set_gdb_data_directory): Use file style to output the
14842 warning that the given pathname is not a directory.
14843 * top.c (show_history_filename, gdb_safe_append_history)
14844 (show_gdb_datadir): Use file style.
14845
14846 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
14847
14848 * solib-target.c (struct lm_info_target):
14849 Change offsets to be a unique_xmalloc_ptr.
14850 (solib_target_relocate_section_addresses): Update.
14851
14852 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
14853
14854 * windows-nat.c (windows_clear_solib): Free so_list linked list.
14855
14856 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
14857
14858 * MAINTAINERS (Write After Approval): Add myself.
14859
14860 2020-01-02 Luis Machado <luis.machado@linaro.org>
14861
14862 * proc-service.c (get_ps_regcache): Remove reference to obsolete
14863 Cell BE architecture.
14864 * target.h (struct target_ops) <thread_architecture>: Likewise.
14865
14866 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
14867
14868 * Makefile.in: Use INSTALL_PROGRAM_ENV.
14869
14870 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
14871
14872 * MAINTAINERS (Write After Approval): Add myself.
14873
14874 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14875
14876 * gdbarch.sh: Update copyright year range of generated files.
14877
14878 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14879
14880 Update copyright year range in all GDB files.
14881
14882 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14883
14884 * copyright.py: Convert to Python 3.
14885
14886 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14887
14888 * copyright.py: Adapt after move of gnulib directory from gdb
14889 directory to toplevel directory.
14890
14891 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14892
14893 * copyright.py (main): Exit if run from the wrong directory.
14894
14895 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14896
14897 * top.c (print_gdb_version): Change copyright year to 2020.
14898
14899 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14900
14901 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
14902
14903 For older changes see ChangeLog-2019.
14904 \f
14905 Local Variables:
14906 mode: change-log
14907 left-margin: 8
14908 fill-column: 74
14909 version-control: never
14910 coding: utf-8
14911 End:
This page took 0.322889 seconds and 5 git commands to generate.