62dce7675e3842d0f07735bc53ebf9749c8e15d6
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2020-10-05 Alan Hayward <alan.hayward@arm.com>
2
3 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
4 AArch64/ARM maintainers.
5
6 2020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
7
8 * NEWS: Mention set/show debug event-loop.
9
10 2020-10-02 Tom Tromey <tromey@adacore.com>
11
12 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
13 REG_EXTENDED.
14
15 2020-10-02 Simon Marchi <simon.marchi@efficios.com>
16
17 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
18 * procfs.c (procfs_inferior_created): Remove.
19 (_initialize_procfs): Don't register procfs_inferior_created.
20
21 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
22
23 * async-event.c (invoke_async_signal_handlers): Add debug
24 print.
25 (check_async_event_handlers): Likewise.
26 * event-top.c (show_debug_event_loop): New function.
27 (_initialize_event_top): Register "set debug event-loop"
28 setting.
29
30 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
31
32 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
33 * debug.h: Remove.
34 * infrun.c: Include gdbsupport/common-debug.h.
35 * linux-nat.c: Likewise.
36
37 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
38
39 * async-event.h (create_async_signal_handler): Add name
40 parameter.
41 (create_async_event_handler): Likewise.
42 * async-event.c (struct async_signal_handler) <name>: New field.
43 (struct async_event_handler) <name>: New field.
44 (create_async_signal_handler): Assign name.
45 (create_async_event_handler): Assign name.
46 * event-top.c (async_init_signals): Pass name when creating
47 handler.
48 * infrun.c (_initialize_infrun): Likewise.
49 * record-btrace.c (record_btrace_push_target): Likewise.
50 * record-full.c (record_full_open): Likewise.
51 * remote-notif.c (remote_notif_state_allocate): Likewise.
52 * remote.c (remote_target::open_1): Likewise.
53 * tui/tui-win.c (tui_initialize_win): Likewise.
54
55 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
56
57 * async-event.c (initialize_async_signal_handlers): Pass name to
58 add_file_handler
59 * event-top.c (ui_register_input_event_handler): Likewise.
60 * linux-nat.c (linux_nat_target::async): Likewise.
61 * run-on-main-thread.c (_initialize_run_on_main_thread):
62 Likewise
63 * ser-base.c (reschedule): Likewise.
64 (ser_base_async): Likewise.
65 * tui/tui-io.c: Likewise.
66 * top.h (struct ui) <num>: New field.
67 * top.c (highest_ui_num): New variable.
68 (ui::ui): Initialize num.
69
70 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
71
72 * observable.h <inferior_created>: Remove parameters. Update all
73 listeners.
74 * inferior.h (post_create_inferior): Remove target parameter.
75 Update all callers.
76
77 2020-10-02 Nitika Achra <Nitika.Achra@amd.com>
78
79 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
80 and DW_MACRO_undef_strx.
81 (dwarf_decode_macros): Likewise
82 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
83 which is the value of DW_AT_str_offsets_base.
84 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
85 str_offsets_base.
86
87 2020-10-01 Kamil Rytarowski <n54@gmx.com>
88
89 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
90
91 2020-10-01 Kamil Rytarowski <n54@gmx.com>
92
93 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
94 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
95
96 2020-10-01 Kamil Rytarowski <n54@gmx.com>
97
98 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
99
100 2020-09-30 Tom de Vries <tdevries@suse.de>
101
102 PR symtab/26683
103 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
104
105 2020-09-30 Tom Tromey <tromey@adacore.com>
106
107 * dwarf2/read.c (handle_variant): Use constant_value.
108
109 2020-09-29 Tom Tromey <tom@tromey.com>
110
111 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
112 (read_file_scope, dwarf2_get_pc_bounds)
113 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
114 (read_structure_type, handle_struct_member_die)
115 (read_enumeration_type, read_array_type, read_set_type)
116 (read_tag_pointer_type, read_tag_reference_type)
117 (read_subroutine_type, read_base_type, read_subrange_type)
118 (read_full_die_1, partial_die_info::read)
119 (partial_die_info::read, by, new_symbol)
120 (dwarf2_const_value_data, dwarf2_const_value_attr)
121 (dump_die_shallow, dwarf2_fetch_constant_bytes)
122 (prepare_one_comp_unit): Update.
123 * dwarf2/attribute.h (DW_UNSND): Remove.
124
125 2020-09-29 Tom Tromey <tom@tromey.com>
126
127 * dwarf2/read.c (read_func_scope, prototyped_function_p)
128 (read_subroutine_type, partial_die_info::read)
129 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
130 (dwarf2_add_member_fn): Update.
131 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
132 * dwarf2/attribute.c (attribute::as_boolean): New method.
133
134 2020-09-29 Tom Tromey <tom@tromey.com>
135
136 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
137 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
138 method.
139 * dwarf2/attribute.c (attribute::as_virtuality): New method.
140
141 2020-09-29 Tom Tromey <tom@tromey.com>
142
143 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
144 the attribute's form.
145
146 2020-09-29 Tom Tromey <tom@tromey.com>
147
148 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
149 (dwarf2_add_member_fn): Update.
150 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
151 * dwarf2/attribute.c (attribute::defaulted): New method, from
152 is_valid_DW_AT_defaulted.
153
154 2020-09-29 Tom Tromey <tom@tromey.com>
155
156 * dwarf2/read.c (dw2_get_file_names_reader)
157 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
158 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
159 (dwarf2_symbol_mark_computed): Use as_unsigned.
160 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
161 method.
162 <form_is_section_offset>: Update comment.
163
164 2020-09-29 Tom Tromey <tom@tromey.com>
165
166 * dwarf2/read.c (dwarf2_access_attribute): Rename from
167 dwarf2_default_access_attribute. Look up attribute.
168 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
169 Update.
170
171 2020-09-29 Tom Tromey <tom@tromey.com>
172
173 * dwarf2/read.c (skip_one_die): Update.
174 (read_full_die_1): Change how reprocessing is done.
175 (partial_die_info::read): Update.
176 (read_attribute_value): Remove need_reprocess parameter.
177 (read_attribute): Likewise.
178 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
179 New method.
180
181 2020-09-29 Tom Tromey <tom@tromey.com>
182
183 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
184 (dwarf2_const_value_attr, dump_die_shallow)
185 (dwarf2_fetch_constant_bytes): Update.
186 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
187 comment.
188 <set_address>: New method.
189 (DW_ADDR): Remove.
190 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
191 (attribute::as_string, attribute::as_address): Add assert.
192
193 2020-09-29 Tom Tromey <tom@tromey.com>
194
195 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
196 (read_attribute_reprocess, read_attribute_value): Update.
197 (read_attribute): Clear requires_reprocessing.
198 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
199 form_requires_reprocessing>: New methods.
200 <string_init>: Clear requires_reprocessing.
201 <set_unsigned_reprocess>: New method.
202 <name>: Shrink by one bit.
203 <requires_reprocessing>: New member.
204 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
205 method.
206
207 2020-09-29 Tom Tromey <tom@tromey.com>
208
209 * dwarf2/read.c (read_attribute_value): Update.
210 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
211 set_unsigned>: New methods.
212 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
213
214 2020-09-29 Tom Tromey <tom@tromey.com>
215
216 * dwarf2/read.c (get_alignment, read_array_order)
217 (read_attribute_value, dwarf2_const_value_attr)
218 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
219 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
220 New methods.
221 (DW_SND): Remove.
222
223 2020-09-29 Tom Tromey <tom@tromey.com>
224
225 * dwarf2/read.c (read_attribute_value, lookup_die_type)
226 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
227 Update.
228 * dwarf2/attribute.h (struct attribute) <as_signature,
229 set_signature>: New methods.
230 (DW_SIGNATURE): Remove.
231
232 2020-09-29 Tom Tromey <tom@tromey.com>
233
234 * dwarf2/read.c (read_call_site_scope)
235 (handle_data_member_location, dwarf2_add_member_fn)
236 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
237 (partial_die_info::read, read_attribute_value)
238 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
239 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
240 (dwarf2_symbol_mark_computed): Update.
241 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
242 methods.
243 (DW_BLOCK): Remove.
244 * dwarf2/attribute.c (attribute::form_is_block): Add
245 DW_FORM_data16.
246
247 2020-09-29 Tom Tromey <tom@tromey.com>
248
249 * dwarf2/read.c (read_cutu_die_from_dwo)
250 (read_attribute_reprocess, read_attribute_value, read_attribute)
251 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
252 (dwarf2_fetch_constant_bytes): Update.
253 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
254 <set_string_noncanonical, set_string_canonical>: New methods.
255 <string_is_canonical>: Update comment.
256 <canonical_string_p>: Add assert.
257 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
258 * dwarf2/attribute.c (attribute::form_is_string): New method.
259 (attribute::string): Use it.
260
261 2020-09-29 Tom Tromey <tom@tromey.com>
262
263 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
264 (dump_die_shallow): Use canonical_string_p.
265 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
266 method.
267
268 2020-09-29 Tom Tromey <tom@tromey.com>
269
270 * dwarf2/read.c (partial_die_info::read)
271 (dwarf2_const_value_attr, anonymous_struct_prefix, )
272 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
273 attribute::as_string.
274
275 2020-09-29 Tom Tromey <tom@tromey.com>
276
277 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
278 DW_ADDR.
279 (attribute::string): Don't use DW_STRING.
280 (attribute::get_ref_die_offset): Don't use DW_UNSND.
281 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
282
283 2020-09-29 Tom Tromey <tom@tromey.com>
284
285 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
286 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
287 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
288 * dwarf2/attribute.h (struct attribute): Rename methods.
289 * dwarf2/attribute.c (attribute::as_address): Rename from
290 value_as_address.
291 (attribute::as_string): Rename from value_as_string.
292
293 2020-09-29 Tom Tromey <tom@tromey.com>
294
295 * dwarf2/read.c (partial_die_info::read) <case
296 DW_AT_linkage_name>: Use value_as_string.
297 (dwarf2_string_attr): Use value_as_string.
298 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
299 method.
300 * dwarf2/attribute.c (attribute::value_as_string): New method.
301
302 2020-09-29 Pedro Alves <pedro@palves.net>
303
304 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
305 defined before using '#pragma GCC diagnostic' instead of checking
306 __clang__.
307
308 2020-09-28 Tom Tromey <tom@tromey.com>
309
310 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
311 (handle_signal_stop): Update.
312 * procfs.c (procfs_target::insert_watchpoint): Update.
313 * target.h (target_have_steppable_watchpoint): Now a function.
314
315 2020-09-28 Tom Tromey <tom@tromey.com>
316
317 * infrun.c (set_schedlock_func): Update.
318 * target.h (target_can_lock_scheduler): Now a function.
319
320 2020-09-28 Tom Tromey <tom@tromey.com>
321
322 * inferior.h (class inferior) <has_execution>: Update.
323 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
324 * valops.c (find_function_in_inferior)
325 (value_allocate_space_in_inferior): Update.
326 * top.c (kill_or_detach): Update.
327 * target.c (target_preopen, set_target_permissions): Update.
328 (target_has_execution_current): Remove.
329 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
330 Update.
331 * solib.c (update_solib_list, reload_shared_libraries): Update.
332 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
333 * solib-dsbt.c (enable_break): Update.
334 * score-tdep.c (score7_fetch_inst): Update.
335 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
336 Update.
337 * remote.c (remote_target::start_remote)
338 (remote_target::remote_check_symbols, remote_target::open_1)
339 (remote_target::remote_detach_1, remote_target::verify_memory)
340 (remote_target::xfer_partial, remote_target::read_description)
341 (remote_target::get_min_fast_tracepoint_insn_len): Update.
342 * record-full.c (record_full_open_1): Update.
343 * record-btrace.c (record_btrace_target_open): Update.
344 * objc-lang.c (lookup_objc_class, lookup_child_selector)
345 (value_nsstring): Update.
346 * linux-thread-db.c (add_thread_db_info)
347 (thread_db_find_new_threads_silently, check_thread_db_callback)
348 (try_thread_db_load_1, record_thread): Update.
349 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
350 Update.
351 * linux-fork.c (checkpoint_command): Update.
352 * infrun.c (set_non_stop, set_observer_mode)
353 (check_multi_target_resumption, for_each_just_stopped_thread)
354 (maybe_remove_breakpoints, normal_stop)
355 (class infcall_suspend_state): Update.
356 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
357 (info_program_command, attach_command): Update.
358 * infcall.c (call_function_by_hand_dummy): Update.
359 * inf-loop.c (inferior_event_handler): Update.
360 * gcore.c (gcore_command, derive_heap_segment): Update.
361 * exec.c (exec_file_command): Update.
362 * eval.c (evaluate_subexp): Update.
363 * compile/compile.c (compile_to_object): Update.
364 * cli/cli-dump.c (restore_command): Update.
365 * breakpoint.c (update_watchpoint)
366 (update_inserted_breakpoint_locations)
367 (insert_breakpoint_locations, get_bpstat_thread): Update.
368 * target.h (target_has_execution): Remove macro.
369 (target_has_execution_current): Don't declare.
370 (target_has_execution): Rename from target_has_execution_1. Add
371 argument default.
372
373 2020-09-28 Tom Tromey <tom@tromey.com>
374
375 * mi/mi-main.c (exec_reverse_continue)
376 (mi_cmd_list_target_features): Update.
377 * infrun.c (set_exec_direction_func): Update.
378 * target.c (default_execution_direction): Update.
379 * reverse.c (exec_reverse_once): Update.
380 * target.h (target_can_execute_reverse): Now a function.
381
382 2020-09-28 Tom Tromey <tom@tromey.com>
383
384 * tui/tui-regs.c (tui_get_register)
385 (tui_data_window::show_registers): Update.
386 * thread.c (scoped_restore_current_thread::restore)
387 (scoped_restore_current_thread::scoped_restore_current_thread):
388 Update.
389 * regcache-dump.c (regcache_print): Update.
390 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
391 Update.
392 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
393 * mep-tdep.c (current_me_module, current_options): Update.
394 * linux-thread-db.c (thread_db_load): Update.
395 * infcmd.c (registers_info, info_vector_command)
396 (info_float_command): Update.
397 * ia64-tdep.c (ia64_frame_prev_register)
398 (ia64_sigtramp_frame_prev_register): Update.
399 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
400 * gcore.c (derive_stack_segment): Update.
401 * frame.c (get_current_frame, has_stack_frames): Update.
402 * findvar.c (language_defn::read_var_value): Update.
403 * arm-tdep.c (arm_pc_is_thumb): Update.
404 * target.c (target_has_registers): Rename from
405 target_has_registers_1.
406 * target.h (target_has_registers): Remove macro.
407 (target_has_registers): Rename from target_has_registers_1.
408
409 2020-09-28 Tom Tromey <tom@tromey.com>
410
411 * windows-tdep.c (tlb_make_value): Update.
412 * tui/tui-regs.c (tui_data_window::show_registers): Update.
413 * thread.c (scoped_restore_current_thread::restore)
414 (scoped_restore_current_thread::scoped_restore_current_thread)
415 (thread_command): Update.
416 * stack.c (backtrace_command_1, frame_apply_level_command)
417 (frame_apply_all_command, frame_apply_command): Update.
418 * infrun.c (siginfo_make_value, restore_infcall_control_state):
419 Update.
420 * gcore.c (derive_stack_segment): Update.
421 * frame.c (get_current_frame, has_stack_frames): Update.
422 * auxv.c (info_auxv_command): Update.
423 * ada-tasks.c (ada_build_task_list): Update.
424 * target.c (target_has_stack): Rename from target_has_stack_1.
425 * target.h (target_has_stack): Remove macro.
426 (target_has_stack): Rename from target_has_stack_1.
427
428 2020-09-28 Tom Tromey <tom@tromey.com>
429
430 * target.c (target_has_memory): Rename from target_has_memory_1.
431 * tui/tui-regs.c (tui_data_window::show_registers): Update.
432 * thread.c (scoped_restore_current_thread::restore)
433 (scoped_restore_current_thread::scoped_restore_current_thread):
434 Update.
435 * frame.c (get_current_frame, has_stack_frames): Update.
436 * target.h (target_has_memory): Remove macro.
437 (target_has_memory): Rename from target_has_memory_1.
438
439 2020-09-28 Tom Tromey <tom@tromey.com>
440
441 * target.c (target_has_all_memory_1): Remove.
442 * target.h (target_has_all_memory): Remove define.
443 (target_has_all_memory_1): Don't declare.
444
445 2020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
446
447 * ser-base.c: Adjust comments formatting.
448
449 2020-09-27 Tom Tromey <tom@tromey.com>
450
451 PR tui/25342:
452 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
453
454 2020-09-27 Tom Tromey <tom@tromey.com>
455
456 PR tui/25342:
457 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
458
459 2020-09-27 Tom Tromey <tom@tromey.com>
460
461 * unittests/tui-selftests.c: Update.
462 * tui/tui-winsource.h (struct tui_source_window_base)
463 <extra_margin, show_line_number, refresh_pad>: New methods.
464 <m_max_length, m_pad>: New members.
465 (tui_copy_source_line): Update.
466 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
467 first_col, line_width, ndigits parameters. Add length.
468 (tui_source_window_base::show_source_line): Write to pad. Line
469 number now 0-based.
470 (tui_source_window_base::refresh_pad): New method.
471 (tui_source_window_base::show_source_content): Write to pad. Call
472 refresh_pad.
473 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
474 not refill.
475 (tui_source_window_base::update_exec_info): Call
476 show_line_number.
477 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
478 method.
479 <m_digits>: New member.
480 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
481 and m_max_length.
482 (tui_source_window::show_line_number): New method.
483 * tui/tui-io.h (tui_puts): Fix comment.
484 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
485 m_max_length.
486
487 2020-09-27 Tom Tromey <tom@tromey.com>
488
489 * tui/tui-winsource.c
490 (tui_source_window_base::set_is_exec_point_at): Don't call
491 show_source_line.
492
493 2020-09-27 Tom Tromey <tom@tromey.com>
494
495 * python/py-tui.c (class tui_py_window) <refresh_window>: New
496 method.
497 <erase>: Update.
498 <cursor_x, cursor_y>: Remove.
499 <m_inner_window>: New member.
500 (tui_py_window::rerender): Create inner window.
501 (tui_py_window::output): Write to inner window.
502
503 2020-09-26 Gareth Rees <grees@undo.io> (tiny change)
504
505 PR python/26586
506 * cli/cli-script.c (execute_control_commands): don't set
507 instream to nullptr here as this breaks the from_tty argument
508 to gdb.execute in Python.
509 (execute_user_command): set instream to nullptr here instead.
510
511 2020-09-25 Simon Marchi <simon.marchi@efficios.com>
512
513 * infrun.h (infrun_debug_printf): Fix formatting.
514 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
515
516 2020-09-25 Saagar Jha <saagar@saagarjha.com>
517
518 * compile/compile-object-load.h (struct munmap_list): Add
519 explicitly-defined move constructor.
520
521 2020-09-24 Tom Tromey <tromey@adacore.com>
522
523 PR tui/26638:
524 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
525 method.
526 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
527 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
528 (tui_prev_win): Rewrite.
529
530 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
531
532 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
533 in WOW64 processes as SIGINT.
534 * nat/windows-nat.h: Make wow64_process a shared variable.
535 * windows-nat.c: Remove static wow64_process variable.
536
537 2020-09-23 Tom Tromey <tom@tromey.com>
538
539 PR symtab/25470:
540 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
541 offset and bit size.
542 * printcmd.c (print_scalar_formatted): Handle zero-length
543 integer.
544 (print_scalar_formatted): Use bit_size_differs_p.
545 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
546 constant.
547 (union type_specific): <int_stuff>: New member.
548 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
549 methods.
550 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
551 TYPE_SPECIFIC_FIELD.
552 (recursive_dump_type, copy_type_recursive): Update.
553 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
554 DW_AT_data_bit_offset.
555
556 2020-09-23 Tom Tromey <tom@tromey.com>
557
558 * utils.h (class gdb_argv): Add move operators.
559 <append>: New methods.
560 * compile/compile.c (build_argc_argv): Remove.
561 (compile_args_argc): Remove.
562 (compile_args_argv): Change type.
563 (set_compile_args): Simplify.
564 (append_args): Remove.
565 (filter_args): Remove argcp parameter.
566 (get_args): Return gdb_argv. Simplify.
567 (compile_to_object): Update.
568
569 2020-09-23 Tom Tromey <tom@tromey.com>
570
571 * compile/compile-object-run.c (do_module_cleanup)
572 <~do_module_cleanup> :Remove.
573 (do_module_cleanup): Update.
574 * compile/compile-object-load.h (struct munmap_list): Add move
575 assignment operator.
576 <source_file>: Now a std::string.
577 <munmap_list>: Rename. No longer a pointer.
578 * compile/compile-object-load.c (struct setup_sections_data): Add
579 constructor.
580 <setup_one_section>: Declare.
581 <munmap_list>: Move earlier.
582 <m_bfd>: New member.
583 <m_last_size, m_last_section_first, m_last_prot,
584 m_last_max_alignment>: Rename, add initializers where needed.
585 (setup_sections_data::setup_one_section): Rename from
586 setup_sections. Update.
587 (compile_object_load): Update. Don't use bfd_map_over_sections.
588
589 2020-09-23 Tom Tromey <tom@tromey.com>
590
591 * compile/compile-object-run.c (struct do_module_cleanup): Add
592 parameters to constructor. Update destructor.
593 <source_file, scope, scope_data, out_value_type, out_value_addr,
594 munmap_list_head, objfile_name_string>: Remove.
595 <module>: New member.
596 (do_module_cleanup): Update.
597 (compile_object_run): Update.
598
599 2020-09-23 Tom Tromey <tom@tromey.com>
600
601 * compile/compile.c (eval_compile_command): Update.
602 * compile/compile-object-run.h (compile_object_run): Take a
603 compile_module_up.
604 * compile/compile-object-run.c (compile_object_run): Take a
605 compile_module_up.
606 * compile/compile-object-load.h (struct compile_module): Add
607 constructor, destructor.
608 (compile_module_up): New typedef.
609 (compile_object_load): Return compile_object_up.
610 * compile/compile-object-load.c (compile_object_load): Return
611 compile_module_up.
612
613 2020-09-23 Tom Tromey <tom@tromey.com>
614
615 * compile/compile-object-run.c (struct do_module_cleanup): Add
616 constructor, destructor.
617 <objfile_name_string>: Don't use struct hack.
618 (do_module_cleanup): Use delete.
619 (compile_object_run): Use new.
620
621 2020-09-23 Tom Tromey <tom@tromey.com>
622
623 * compile/compile-cplus-types.c
624 (compile_cplus_convert_struct_or_union): Use std::vector.
625 (compile_cplus_convert_func): Likewise.
626 * compile/compile-c-types.c (convert_func): Use std::vector.
627
628 2020-09-21 Tom Tromey <tromey@adacore.com>
629
630 * sparc-tdep.c (sparc32_skip_prologue): Use
631 skip_prologue_using_sal.
632
633 2020-09-19 Tom Tromey <tom@tromey.com>
634
635 * symfile.c (add_section_size_callback): Remove.
636 (load_one_section): Rename from load_section_callback. Change
637 parameters.
638 (generic_load): Use foreach.
639
640 2020-09-19 Tom Tromey <tom@tromey.com>
641
642 * exec.c (add_to_section_table): Remove.
643 (build_section_table): Use foreach.
644
645 2020-09-19 Tom Tromey <tom@tromey.com>
646
647 * elfread.c (elf_locate_sections): Change parameters.
648 (elf_symfile_read): Use foreach.
649
650 2020-09-19 Tom Tromey <tom@tromey.com>
651
652 * cli/cli-dump.c (struct callback_data): Remove.
653 (restore_one_section): Rename from restore_section_callback.
654 Change parameters.
655 (restore_binary_file): Change parameters.
656 (restore_command): Use foreach.
657
658 2020-09-19 Tom Tromey <tom@tromey.com>
659
660 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
661 (gcore_copy_callback): Likewise.
662 (gcore_memory_sections): Use foreach.
663
664 2020-09-19 Tom Tromey <tom@tromey.com>
665
666 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
667 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
668 parameters.
669 (generic_elf_osabi_sniffer): Use foreach.
670 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
671 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
672
673 2020-09-19 Tom Tromey <tom@tromey.com>
674
675 * dwarf2/read.c (locate_dwz_sections): Change parameters.
676 (dwarf2_get_dwz_file): Use foreach.
677 (dwarf2_locate_dwo_sections): Change parameters.
678 (open_and_init_dwo_file): Use foreach.
679 (dwarf2_locate_common_dwp_sections): Change parameters.
680 (open_and_init_dwp_file): Use foreach.
681
682 2020-09-19 Tom Tromey <tom@tromey.com>
683
684 * symfile.h: (find_lowest_section): Don't declare.
685 * symfile.c (find_lowest_section): Now static. Change
686 parameters.
687 (struct place_section_arg): Remove.
688 (place_section): Change parameters.
689 (addr_info_make_relative): Use foreach.
690 (symfile_dummy_outputs): Remove.
691 (default_symfile_relocate): Use foreach.
692
693 2020-09-19 Tom Tromey <tom@tromey.com>
694
695 * objfiles.c (add_to_objfile_sections): Rename from
696 add_to_objfile_sections_full.
697 (add_to_objfile_sections): Remove.
698 (build_objfile_section_table): Use foreach.
699
700 2020-09-19 Tom Tromey <tom@tromey.com>
701
702 * stap-probe.c (get_stap_base_address_1): Remove.
703 (get_stap_base_address): Use foreach.
704
705 2020-09-19 Tom Tromey <tom@tromey.com>
706
707 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
708 parameters.
709 (gdb_bfd_close_or_warn): Use foreach.
710
711 2020-09-19 Tom Tromey <tom@tromey.com>
712
713 * corelow.c (add_to_thread_list): Change parameters.
714 (core_target_open): Use foreach.
715
716 2020-09-19 Tom Tromey <tom@tromey.com>
717
718 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
719 existing function.
720
721 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
722
723 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
724 for arrays.
725
726 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
727
728 * eval.c: Remove 'f-lang.h' include.
729 (value_f90_subarray): Moved to f-lang.c.
730 (eval_call): Renamed to...
731 (evaluate_subexp_do_call): ...this, is no longer static, header
732 comment moved into header file.
733 (evaluate_funcall): Update call to eval_call.
734 (skip_undetermined_arglist): Moved to f-lang.c.
735 (fortran_value_subarray): Likewise.
736 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
737 moved to evaluate_subexp_f.
738 (calc_f77_array_dims): Moved to f-lang.c
739 * expprint.c (print_subexp_funcall): New function.
740 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
741 moved to print_subexp_f, OP_FUNCALL uses new function.
742 (dump_subexp_body_funcall): New function.
743 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
744 moved to dump_subexp_f, OP_FUNCALL uses new function.
745 * expression.h (evaluate_subexp_do_call): Declare.
746 * f-lang.c (value_f90_subarray): Moved from eval.c.
747 (skip_undetermined_arglist): Likewise.
748 (calc_f77_array_dims): Likewise.
749 (fortran_value_subarray): Likewise.
750 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
751 (operator_length_f): Likewise.
752 (print_subexp_f): Likewise.
753 (dump_subexp_body_f): Likewise.
754 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
755 declaration of this operation to here.
756 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
757 support moved to operator_length_f.
758 * parser-defs.h (dump_subexp_body_funcall): Declare.
759 (print_subexp_funcall): Declare.
760 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
761 fortran-operator.def.
762
763 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
764
765 * eval.c (fortran_value_subarray): New function, content is taken
766 from...
767 (evaluate_subexp_standard): ...here, in two places. Now arrays
768 and strings both call the new function.
769 (calc_f77_array_dims): Add header comment, handle strings.
770
771 2020-09-18 Victor Collod <vcollod@nvidia.com>
772
773 PR gdb/26635
774 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
775 (i386_analyze_prologue): Call i386_skip_endbr.
776
777 2020-09-18 Tom Tromey <tromey@adacore.com>
778
779 * windows-nat.c (struct windows_nat_target) <wait>: Update.
780 (windows_nat_target::wait): Update.
781 * target/wait.h (enum target_wait_flag): New. Use
782 DEF_ENUM_FLAGS_TYPE.
783 * target/target.h (target_wait): Change type of options.
784 * target.h (target_options_to_string, default_target_wait):
785 Update.
786 (struct target_ops) <wait>: Change type of options.
787 * target.c (target_wait, default_target_wait, do_option): Change
788 type of "options".
789 (target_options_to_string): Likewise.
790 * target-delegates.c: Rebuild.
791 * target-debug.h (target_debug_print_target_wait_flags): Rename
792 from target_debug_print_options.
793 * sol-thread.c (class sol_thread_target) <wait>: Update.
794 (sol_thread_target::wait): Update.
795 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
796 (rs6000_nat_target::wait): Update.
797 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
798 Update.
799 (remote_target::wait_ns, remote_target::wait_as): Change type of
800 "options".
801 (remote_target::wait): Update.
802 * remote-sim.c (struct gdbsim_target) <wait>: Update.
803 (gdbsim_target::wait): Update.
804 * record-full.c (class record_full_base_target) <wait>: Update.
805 (record_full_wait_1): Change type of "options".
806 (record_full_base_target::wait): Update.
807 * record-btrace.c (class record_btrace_target) <wait>: Update.
808 (record_btrace_target::wait): Update.
809 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
810 Update.
811 (ravenscar_thread_target::wait): Update.
812 * procfs.c (class procfs_target) <wait>: Update.
813 (procfs_target::wait): Update.
814 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
815 * obsd-nat.c (obsd_nat_target::wait): Update.
816 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
817 (nto_procfs_target::wait): Update.
818 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
819 * nbsd-nat.c (nbsd_wait): Change type of "options".
820 (nbsd_nat_target::wait): Update.
821 * linux-thread-db.c (class thread_db_target) <wait>: Update.
822 (thread_db_target::wait): Update.
823 * linux-nat.h (class linux_nat_target) <wait>: Update.
824 * linux-nat.c (linux_nat_target::wait): Update.
825 (linux_nat_wait_1): Update.
826 * infrun.c (do_target_wait_1, do_target_wait): Change type of
827 "options".
828 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
829 * inf-ptrace.c (inf_ptrace_target::wait): Update.
830 * go32-nat.c (struct go32_nat_target) <wait>: Update.
831 (go32_nat_target::wait): Update.
832 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
833 * gnu-nat.c (gnu_nat_target::wait): Update.
834 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
835 * fbsd-nat.c (fbsd_nat_target::wait): Update.
836 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
837 * darwin-nat.c (darwin_nat_target::wait): Update.
838 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
839 (bsd_uthread_target::wait): Update.
840 * aix-thread.c (class aix_thread_target) <wait>: Update.
841 (aix_thread_target::wait): Update.
842
843 2020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
844
845 * compile/compile-object-run.c (create_copied_type_recursive): New
846 function.
847 (compile_object_run): Use new function.
848
849 2020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
850
851 * NEWS: Mention x86_64 Cygwin core file support.
852
853 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
854
855 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
856 (core_process_module_section): Handle NOTE_INFO_MODULE64.
857
858 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
859
860 * windows-tdep.h: Add prototypes.
861 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
862 (i386_windows_core_pid_to_str): Move and rename ...
863 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
864 (windows_core_pid_to_str): ... and here.
865 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
866
867 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
868 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
869 (amd64_windows_init_abi_common): ... and register.
870
871 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
872
873 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
874 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
875
876 2020-09-18 Pedro Alves <pedro@palves.net>
877
878 PR gdb/26631
879 * thread.c (thread_find_command): Switch inferior before calling
880 target methods.
881
882 2020-09-17 Tom Tromey <tromey@adacore.com>
883
884 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
885 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
886 (tdesc_arch_data_up): New typedef.
887 (tdesc_use_registers, tdesc_data_alloc): Update.
888 (tdesc_data_cleanup): Don't declare.
889 * target-descriptions.c (tdesc_data_alloc): Return a
890 tdesc_arch_data_up.
891 (tdesc_arch_data_deleter::operator()): Rename from
892 tdesc_data_cleanup. Change argument type.
893 (tdesc_use_registers): Change early_data to an rvalue reference.
894 (tdesc_use_registers): Don't use delete.
895 * sparc-tdep.c (sparc32_gdbarch_init): Update.
896 * s390-tdep.c (s390_gdbarch_init): Update.
897 * rx-tdep.c (rx_gdbarch_init): Update.
898 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
899 * riscv-tdep.c (riscv_gdbarch_init): Update.
900 * or1k-tdep.c (or1k_gdbarch_init): Update.
901 * nios2-tdep.c (nios2_gdbarch_init): Update.
902 * nds32-tdep.c (nds32_gdbarch_init): Update.
903 * mips-tdep.c (mips_gdbarch_init): Update.
904 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
905 * m68k-tdep.c (m68k_gdbarch_init): Update.
906 * i386-tdep.c (i386_gdbarch_init): Update.
907 * arm-tdep.c (arm_gdbarch_init): Update.
908 * arc-tdep.c (arc_tdesc_init): Update.
909 (arc_gdbarch_init): Update.
910 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
911
912 2020-09-17 Hannes Domani <ssbssa@yahoo.de>
913
914 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
915 for WOW64 processes.
916
917 2020-09-17 Tom Tromey <tom@tromey.com>
918
919 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
920
921 2020-09-17 Tom Tromey <tom@tromey.com>
922
923 * value.c (preserve_values): Update.
924 * python/py-type.c (save_objfile_types): Update.
925 * guile/scm-type.c (save_objfile_types): Update.
926 * gdbtypes.h (create_copied_types_hash): Return htab_up.
927 * gdbtypes.c (create_copied_types_hash): Return htab_up.
928 * compile/compile-object-run.c (compile_object_run): Update.
929
930 2020-09-17 Tom Tromey <tom@tromey.com>
931
932 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
933 Remove.
934 <m_table>: Now htab_up.
935 * typeprint.c (typedef_hash_table::recursively_update)
936 (typedef_hash_table::add_template_parameters)
937 (typedef_hash_table::typedef_hash_table): Update.
938 (typedef_hash_table::~typedef_hash_table): Remove.
939 (typedef_hash_table::typedef_hash_table)
940 (typedef_hash_table::find_global_typedef)
941 (typedef_hash_table::find_typedef): Update.
942
943 2020-09-17 Tom Tromey <tom@tromey.com>
944
945 * target-descriptions.c (tdesc_use_registers): Use htab_up.
946
947 2020-09-17 Tom Tromey <tom@tromey.com>
948
949 * linespec.c (class decode_compound_collector)
950 <~decode_compound_collector>: Remove.
951 <m_unique_syms>: Now htab_up.
952 (decode_compound_collector::operator ()): Update.
953 (class symtab_collector) <~symtab_collector>: Remove.
954 <m_symtab_table>: Now htab_up.
955 (symtab_collector::operator ()): Update.
956
957 2020-09-17 Tom Tromey <tom@tromey.com>
958
959 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
960 (filename_seen_cache::clear): Update.
961 (~filename_seen_cache): Remove.
962 (filename_seen_cache::seen): Update.
963 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
964 htab_up.
965 <~filename_seen_cache>: Remove.
966 <traverse>: Update.
967
968 2020-09-17 Tom Tromey <tom@tromey.com>
969
970 * completer.c (completion_tracker::discard_completions)
971 (completion_tracker::~completion_tracker)
972 (completion_tracker::maybe_add_completion)
973 (completion_tracker::remove_completion)
974 (completion_tracker::recompute_lowest_common_denominator)
975 (completion_tracker::build_completion_result): Update.
976 * completer.h (class completion_tracker) <have_completions>:
977 Update.
978 <m_entries_hash>: Now htab_up.
979
980 2020-09-17 Tom Tromey <tom@tromey.com>
981
982 * breakpoint.c (ambiguous_names_p): Use htab_up.
983
984 2020-09-17 Tom Tromey <tom@tromey.com>
985
986 * auto-load.c (struct auto_load_pspace_info)
987 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
988 <loaded_script_files, loaded_script_texts>: Change type to
989 htab_up.
990 (~auto_load_pspace_info) Remove.
991 (init_loaded_scripts_info, maybe_add_script_file)
992 (maybe_add_script_text, auto_load_info_scripts): Update.
993
994 2020-09-17 Tom Tromey <tromey@adacore.com>
995
996 * c-exp.y (name_obstack): Now static.
997
998 2020-09-17 Chungyi Chi <demonic@csie.io>
999
1000 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
1001
1002 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
1003
1004 * breakpoint.h (init_catchpoint): Change int parameter to bool.
1005 (add_solib_catchpoint): Likewise.
1006 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
1007 to bool.
1008 (add_solib_catchpoint): Change int parameter/variable to bool.
1009 (catch_load_or_unload): Likewise.
1010 (init_catchpoint): Likewise.
1011 (create_fork_vfork_event_catchpoint): Likewise.
1012 (catch_fork_command_1): Likewise.
1013 (catch_exec_command_1): Likewise.
1014
1015 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
1016
1017 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
1018 Change instance_flags to m_instance_flags.
1019
1020 2020-09-16 Tom Tromey <tromey@adacore.com>
1021
1022 PR gdb/26598:
1023 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
1024
1025 2020-09-16 John Baldwin <jhb@FreeBSD.org>
1026
1027 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
1028 PL_FLAG_EXEC.
1029 (fbsd_nat_target::insert_exec_catchpoint)
1030 (fbsd_nat_target::remove_exec_catchpoint): Always define.
1031 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
1032 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
1033
1034 2020-09-16 John Baldwin <jhb@FreeBSD.org>
1035
1036 * configure.ac: Remove check for kinfo_getvmmap().
1037 * configure, config.in: Regenerate.
1038 * fbsd-nat.c (fbsd_read_mapping): Remove
1039 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
1040 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
1041 kinfo_get_vmmap() are always present.
1042
1043 2020-09-16 John Baldwin <jhb@FreeBSD.org>
1044
1045 * fbsd-nat.c: Always include support for
1046 TARGET_OBJECT_SIGNAL_INFO.
1047
1048 2020-09-16 John Baldwin <jhb@FreeBSD.org>
1049
1050 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
1051 sysctl and remove procfs fallback.
1052
1053 2020-09-16 John Baldwin <jhb@FreeBSD.org>
1054
1055 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
1056 * fbsd-nat.h: Likewise.
1057
1058 2020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1059
1060 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
1061 argument.
1062
1063 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1064
1065 * ada-lang.c (ada_language_data): Delete.
1066 (ada_language): Remove references to ada_language_data.
1067 * c-lang.c (c_language_data): Delete.
1068 (c_language): Remove references to c_language_data.
1069 (cplus_language_data): Delete.
1070 (cplus_language): Remove references to cplus_language_data.
1071 (asm_language_data): Delete.
1072 (asm_language): Remove references to asm_language_data.
1073 (minimal_language_data): Delete.
1074 (minimal_language): Remove references to minimal_language_data.
1075 * d-lang.c (d_language_data): Delete.
1076 (d_language): Remove references to d_language_data.
1077 * f-lang.c (f_language_data): Delete.
1078 (f_language): Remove references to f_language_data.
1079 * go-lang.c (go_language_data): Delete.
1080 (go_language): Remove references to go_language_data.
1081 * language.c (unknown_language_data): Delete.
1082 (unknown_language): Remove references to unknown_language_data.
1083 (auto_language_data): Delete.
1084 (auto_language): Remove references to auto_language_data.
1085 * language.h (language_data): Delete struct.
1086 (language_defn): No longer inherit from language_data.
1087 * m2-lang.c (m2_language_data): Delete.
1088 (m2_language): Remove references to m2_language_data.
1089 * objc-lang.c (objc_language_data): Delete.
1090 (objc_language): Remove references to objc_language_data.
1091 * opencl-lang.c (opencl_language_data): Delete.
1092 (opencl_language): Remove references to opencl_language_data.
1093 * p-lang.c (pascal_language_data): Delete.
1094 (pascal_language): Remove references to pascal_language_data.
1095 * rust-lang.c (rust_language_data): Delete.
1096 (rust_language): Remove references to rust_language_data.
1097
1098 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1099
1100 * ada-lang.c (ada_language_data): Remove la_op_print_tab
1101 initializer.
1102 (ada_language::opcode_print_table): New member function.
1103 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
1104 (c_language::opcode_print_table): New member function.
1105 (cplus_language_data): Remove la_op_print_tab initializer.
1106 (cplus_language::opcode_print_table): New member function.
1107 (asm_language_data): Remove la_op_print_tab initializer.
1108 (asm_language::opcode_print_table): New member function.
1109 (minimal_language_data): Remove la_op_print_tab initializer.
1110 (minimal_language::opcode_print_table): New member function.
1111 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
1112 (d_language::opcode_print_table): New member function.
1113 * expprint.c (print_subexp_standard): Update call to
1114 opcode_print_table.
1115 (op_string): Likewise.
1116 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
1117 (f_language::opcode_print_table): New member function.
1118 * go-lang.c (go_language_data): Remove la_op_print_tab
1119 initializer.
1120 (go_language::opcode_print_table): New member function.
1121 * language.c (unknown_language_data): Remove la_op_print_tab
1122 initializer.
1123 (unknown_language::opcode_print_table): New member function.
1124 (auto_language_data): Remove la_op_print_tab initializer.
1125 (auto_language::opcode_print_table): New member function.
1126 * language.h (language_data): Remove la_op_print_tab field.
1127 (language_defn::opcode_print_table): Declare new member function.
1128 * m2-lang.c (m2_language_data): Remove la_op_print_tab
1129 initializer.
1130 (m2_language::opcode_print_table): New member function.
1131 * objc-lang.c (objc_language_data): Remove la_op_print_tab
1132 initializer.
1133 (objc_language::opcode_print_table): New member function.
1134 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
1135 initializer.
1136 (opencl_language::opcode_print_table): New member function.
1137 * p-lang.c (pascal_language_data): Remove la_op_print_tab
1138 initializer.
1139 (pascal_language::opcode_print_table): New member function.
1140 * rust-lang.c (rust_language_data): Remove la_op_print_tab
1141 initializer.
1142 (rust_language::opcode_print_table): New member function.
1143
1144 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1145
1146 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
1147 (ada_language::expression_ops): New member function.
1148 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
1149 (c_language::expression_ops): New member function.
1150 (cplus_language_data): Remove la_exp_desc initializer.
1151 (cplus_language::expression_ops): New member function.
1152 (asm_language_data): Remove la_exp_desc initializer.
1153 (asm_language::expression_ops): New member function.
1154 (minimal_language_data): Remove la_exp_desc initializer.
1155 (minimal_language::expression_ops): New member function.
1156 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
1157 (d_language::expression_ops): New member function.
1158 * eval.c (evaluate_subexp): Update call to expression_ops.
1159 * expprint.c (print_subexp): Likewise.
1160 (op_name): Likewise.
1161 (dump_subexp_body): Likewise.
1162 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
1163 (f_language::expression_ops): New member function.
1164 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
1165 (go_language::expression_ops): New member function.
1166 * language.c (language_defn::expression_ops): New function.
1167 (unknown_language_data): Remove la_exp_desc initializer.
1168 (auto_language_data): Likewise.
1169 * language.h (language_data): Remove la_exp_desc field.
1170 (language_defn::expression_ops): Declare new member function.
1171 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
1172 (m2_language::expression_ops): New member function.
1173 * objc-lang.c (objc_language_data): Remove la_exp_desc
1174 initializer.
1175 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
1176 initializer.
1177 (opencl_language::expression_ops): New member function.
1178 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
1179 * parse.c (operator_length): Update call to expression_ops.
1180 (exp_iterate): Likewise.
1181 * rust-lang.c (rust_language_data): Remove la_exp_desc
1182 initializer.
1183 (ruse_language::expression_ops): New member function.
1184
1185 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1186
1187 * ada-lang.c (ada_language_data): Remove la_varobj_ops
1188 initializer.
1189 (ada_language::varobj_ops): New member function.
1190 * c-lang.c (c_language_data): Remove la_varobj_ops
1191 initializer.
1192 (cplus_language_data): Likewise.
1193 (cplus_language::varobj_ops): New member function.
1194 (asm_language_data): Remove la_varobj_ops initializer.
1195 (minimal_language_data): Likewise.
1196 * d-lang.c (d_language_data): Likewise.
1197 * f-lang.c (f_language_data): Likewise.
1198 * go-lang.c (go_language_data): Likewise.
1199 * language.c (language_defn::varobj_ops): New function.
1200 (unknown_language_data): Remove la_varobj_ops
1201 initializer.
1202 (auto_language_data): Likewise.
1203 * language.h (language_data): Remove la_varobj_ops field.
1204 (language_defn::varobj_ops): Declare new member function.
1205 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
1206 * objc-lang.c (objc_language_data): Likewise.
1207 * opencl-lang.c (opencl_language_data): Likewise.
1208 * p-lang.c (pascal_language_data): Likewise.
1209 * rust-lang.c (rust_language_data): Likewise.
1210 * varobj.c (varobj_create): Update call to varobj_ops.
1211 * varobj.h (default_varobj_ops): Delete define.
1212
1213 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1214
1215 * ada-lang.c (ada_language_data): Remove la_macro_expansion
1216 initializer.
1217 * c-lang.c (c_language_data): Likewise.
1218 (c_language::macro_expansion): New member function.
1219 (cplus_language_data): Likewise.
1220 (cplus_language::macro_expansion): New member function.
1221 (asm_language_data): Likewise.
1222 (asm_language::macro_expansion): New member function.
1223 (minimal_language_data): Likewise.
1224 (minimal_language::macro_expansion): New member function.
1225 * d-lang.c (d_language_data): Remove la_macro_expansion
1226 initializer.
1227 * f-lang.c (f_language_data): Likewise.
1228 * go-lang.c (go_language_data): Likewise.
1229 * language.c (unknown_language_data): Likewise.
1230 (auto_language_data): Likewise.
1231 * language.h (language_data): Remove la_macro_expansion field.
1232 (language_defn::macro_expansion): New member function.
1233 * m2-lang.c (m2_language_data): Remove la_macro_expansion
1234 initializer.
1235 * objc-lang.c (objc_language_data): Likewise.
1236 (objc_language::macro_expansion): New member function.
1237 * opencl-lang.c (opencl_language_data): Likewise.
1238 (opencl_language::macro_expansion): New member function.
1239 * p-lang.c (pascal_language_data): Remove la_macro_expansion
1240 initializer.
1241 * rust-lang.c (rust_language_data): Likewise.
1242 * symtab.c (default_collect_symbol_completion_matches_break_on):
1243 Update call to macro_expansion.
1244
1245 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1246
1247 * ada-lang.c (ada_language_data): Remove la_array_ordering
1248 initializer.
1249 * c-lang.c (c_language_data): Likewise.
1250 (cplus_language_data): Likewise.
1251 (asm_language_data): Likewise.
1252 (minimal_language_data): Likewise.
1253 * d-lang.c (d_language_data): Likewise.
1254 * dwarf2/read.c (read_array_order): Update for call to
1255 array_ordering.
1256 * f-lang.c (f_language_data): Remove la_array_ordering
1257 initializer.
1258 (f_language::array_ordering): New member function.
1259 * go-lang.c (go_language_data): Remove la_array_ordering
1260 initializer.
1261 * language.c (unknown_language_data): Likewise.
1262 (auto_language_data): Likewise.
1263 * language.h (language_data): Delete la_array_ordering field.
1264 (language_defn::array_ordering): New member function.
1265 * m2-lang.c (m2_language_data): Remove la_array_ordering
1266 initializer.
1267 * objc-lang.c (objc_language_data): Likewise.
1268 * opencl-lang.c (opencl_language_data): Likewise.
1269 * p-lang.c (pascal_language_data): Likewise.
1270 * rust-lang.c (rust_language_data): Likewise.
1271
1272 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1273
1274 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
1275 initializer.
1276 * c-lang.c (c_language_data): Likewise.
1277 (cplus_language_data): Likewise.
1278 (asm_language_data): Likewise.
1279 (minimal_language_data): Likewise.
1280 * d-lang.c (d_language_data): Likewise.
1281 * f-lang.c (f_language_data): Likewise.
1282 (f_language::case_sensitivity): New member function.
1283 * go-lang.c (go_language_data): Remove la_case_sensitivity
1284 initializer.
1285 * language.c (enum case_mode): Moved here from language.h.
1286 (case_mode): Make static.
1287 (show_case_command): Update for case_sensitivity being a method.
1288 (set_case_command): Likewise.
1289 (set_range_case): Likewise.
1290 (unknown_language_data): Remove la_case_sensitivity initializer.
1291 (auto_language_data): Likewise.
1292 * language.h (case_mode): Delete, move enum declaration to
1293 language.c.
1294 (language_data): Delete la_case_sensitivity field.
1295 (language_defn::case_sensitivity): New member function.
1296 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
1297 initializer.
1298 * objc-lang.c (objc_language_data): Likewise.
1299 * opencl-lang.c (opencl_language_data): Likewise.
1300 * p-lang.c (pascal_language_data): Likewise.
1301 * rust-lang.c (rust_language_data): Likewise.
1302
1303 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1304
1305 * ada-lang.c (ada_language_data): Remove la_range_check
1306 initializer.
1307 * c-lang.c (c_language_data): Likewise.
1308 (cplus_language_data): Likewise.
1309 (asm_language_data): Likewise.
1310 (minimal_language_data): Likewise.
1311 * d-lang.c (d_language_data): Likewise.
1312 * f-lang.c (f_language_data): Likewise.
1313 (f_language::range_checking_on_by_default): New member function.
1314 * go-lang.c (go_language_data): Remove la_range_check initializer.
1315 * language.c (enum range_mode): Moved here from language.h.
1316 (range_mode): Made static.
1317 (show_range_command): Update to use
1318 range_checking_on_by_default.
1319 (set_range_command): Likewise.
1320 (set_range_case): Likewise.
1321 (unknown_language_data): Remove la_range_check initializer.
1322 (auto_language_data): Likewise.
1323 * language.h (range_mode): Delete. Enum definition moved to
1324 language.c.
1325 (language_data): Remove la_range_check field.
1326 (language_defn::range_checking_on_by_default): New member
1327 function.
1328 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
1329 (m2_language::range_checking_on_by_default): New member function.
1330 * objc-lang.c (objc_language_data): Remove la_range_check
1331 initializer.
1332 * opencl-lang.c (opencl_language_data): Likewise.
1333 * p-lang.c (pascal_language_data): Likewise.
1334 (pascal_language::range_checking_on_by_default): New member
1335 function.
1336 * rust-lang.c (rust_language_data): Remove la_range_check
1337 initializer.
1338 (rust_language::range_checking_on_by_default): New member
1339 function.
1340
1341 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1342
1343 * dwarf2/read.c (dwarf2_physname): Remove special case for
1344 language_go.
1345 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
1346 member function.
1347
1348 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1349
1350 * ada-lang.c (ada_language_data): Remove
1351 la_store_sym_names_in_linkage_form_p initializer.
1352 (ada_language::store_sym_names_in_linkage_form_p): New member
1353 function.
1354 * c-lang.c (c_language_data): Remove
1355 la_store_sym_names_in_linkage_form_p initializer.
1356 (c_language::store_sym_names_in_linkage_form_p): New member
1357 function.
1358 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
1359 initializer.
1360 (asm_language_data): Likewise.
1361 (asm_language::store_sym_names_in_linkage_form_p): New member
1362 function.
1363 (minimal_language_data): Remove
1364 la_store_sym_names_in_linkage_form_p initializer.
1365 (minimal_language::store_sym_names_in_linkage_form_p): New member
1366 function.
1367 * d-lang.c (d_language_data): Remove
1368 la_store_sym_names_in_linkage_form_p initializer.
1369 * dwarf2/read.c (dwarf2_physname): Update call to
1370 store_sym_names_in_linkage_form_p.
1371 * f-lang.c (f_language_data): Remove
1372 la_store_sym_names_in_linkage_form_p initializer.
1373 * go-lang.c (go_language_data): Remove
1374 la_store_sym_names_in_linkage_form_p initializer.
1375 * language.c (unknown_language_data): Remove
1376 la_store_sym_names_in_linkage_form_p initializer.
1377 (unknown_language::store_sym_names_in_linkage_form_p): New member
1378 function.
1379 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
1380 initializer.
1381 (auto_language::store_sym_names_in_linkage_form_p): New member
1382 function.
1383 * language.h (language_data): Remove
1384 la_store_sym_names_in_linkage_form_p member variable.
1385 (language_defn::store_sym_names_in_linkage_form_p): New member
1386 function.
1387 * m2-lang.c (m2_language_data): Remove
1388 la_store_sym_names_in_linkage_form_p initializer.
1389 * objc-lang.c (objc_language_data): Likewise.
1390 * opencl-lang.c (opencl_language_data): Likewise.
1391 * p-lang.c (pascal_language_data): Likewise.
1392 * rust-lang.c (rust_language_data): Likewise.
1393
1394 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1395
1396 * ada-lang.c (ada_language_data): Remove string_lower_bound
1397 initializer.
1398 * c-lang.c (c_language_data): Likewise.
1399 (cplus_language_data): Likewise.
1400 (asm_language_data): Likewise.
1401 (minimal_language_data): Likewise.
1402 * d-lang.c (d_language_data): Likewise.
1403 * f-lang.c (f_language_data): Likewise.
1404 * go-lang.c (go_language_data): Likewise.
1405 * language.c (unknown_language_data): Likewise.
1406 (auto_language_data): Likewise.
1407 * language.h (language_data): Remove string_lower_bound field.
1408 (language_defn::string_lower_bound): New member function.
1409 * m2-lang.c (m2_language_data): Remove string_lower_bound
1410 initializer.
1411 (m2_language::string_lower_bound): New member function.
1412 * objc-lang.c (objc_language_data): Remove string_lower_bound
1413 initializer.
1414 * opencl-lang.c (opencl_language_data): Likewise.
1415 * p-lang.c (pascal_language_data): Likewise.
1416 * rust-lang.c (rust_language_data): Likewise.
1417 * valops.c (value_cstring): Update call to string_lower_bound.
1418 (value_string): Likewise.
1419 * value.c (allocate_repeated_value): Likewise.
1420
1421 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1422
1423 * valops.c (value_repeat): Fix incorrect argument name in comment.
1424
1425 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1426
1427 * ada-lang.c (ada_language_data): Remove c_style_arrays
1428 initializer.
1429 (ada_language::c_style_arrays_p): New member fuction.
1430 * c-lang.c (c_language_data): Remove c_style_arrays
1431 initializer.
1432 (cplus_language_data): Likewise.
1433 (asm_language_data): Likewise.
1434 (minimal_language_data): Likewise.
1435 * d-lang.c (d_language_data): Likewise.
1436 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
1437 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
1438 (f_language::c_style_arrays_p): New member function.
1439 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
1440 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
1441 * language.c (unknown_language_data): Remove c_style_arrays
1442 initializer.
1443 (auto_language_data): Likewise.
1444 * language.h (language_data): Remove c_style_arrays field.
1445 (language_defn::c_style_arrays_p): New member function.
1446 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
1447 (m2_language::c_style_arrays_p): New member function.
1448 * objc-lang.c (objc_language_data): Remove c_style_arrays
1449 initializer.
1450 * opencl-lang.c (opencl_language_data): Likewise.
1451 * p-lang.c (pascal_language_data): Likewise.
1452 * rust-lang.c (rust_language_data): Likewise.
1453 * valarith.c (value_subscript): Update call to c_style_arrays_p,
1454 and update local variable to a bool.
1455 * valops.c (value_cast): Update call to c_style_arrays_p.
1456 (value_array): Likewise.
1457 * value.c (coerce_array): Likewise.
1458
1459 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1460
1461 * ada-lang.c (ada_language_data): Remove la_language initializer.
1462 * c-lang.c (c_language_data): Likewise.
1463 (cplus_language_data): Likewise.
1464 (asm_language_data): Likewise.
1465 (minimal_language_data): Likewise.
1466 * d-lang.c (d_language_data): Likewise.
1467 * f-lang.c (f_language_data): Likewise.
1468 * go-lang.c (go_language_data): Likewise.
1469 * language.c (unknown_language_data): Likewise.
1470 (auto_language_data): Likewise.
1471 * language.h (language_data): Remove la_language field.
1472 (language_defn::language_defn): Initialise la_language field.
1473 (language_defn::la_language): New member variable.
1474 * m2-lang.c (m2_language_data): Remove la_language field.
1475 * objc-lang.c (objc_language_data): Likewise.
1476 * opencl-lang.c (opencl_language_data): Likewise.
1477 * p-lang.c (pascal_language_data): Likewise.
1478 * rust-lang.c (rust_language_data): Likewise.
1479
1480 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1481
1482 * ada-lang.c (ada_extensions): Delete, moved into
1483 ada_language::filename_extensions.
1484 (ada_language_data): Remove la_filename_extensions initializer.
1485 (ada_language::filename_extensions): New member function.
1486 * c-lang.c (c_extensions): Delete, moved into
1487 c_language::filename_extensions.
1488 (c_language_data): Remove la_filename_extensions initializer.
1489 (c_language::filename_extensions): New member function.
1490 (cplus_extensions): Delete, moved into
1491 cplus_language::filename_extensions.
1492 (cplus_language_data): Remove la_filename_extensions initializer.
1493 (cplus_language::filename_extensions): New member function.
1494 (asm_extensions): Delete, moved into
1495 asm_language::filename_extensions.
1496 (asm_language_data): Remove la_filename_extensions initializer.
1497 (asm_language::filename_extensions): New member function.
1498 (minimal_language_data): Remove la_filename_extensions
1499 initializer.
1500 * d-lang.c (d_extensions): Delete, moved into
1501 d_language::filename_extensions.
1502 (d_language_data): Remove la_filename_extensions initializer.
1503 (d_language::filename_extensions): New member function.
1504 * f-lang.c (f_extensions): Delete, moved into
1505 f_language::filename_extensions.
1506 (f_language_data): Remove la_filename_extensions initializer.
1507 (f_language::filename_extensions): New member function.
1508 * go-lang.c (go_language_data): Remove la_filename_extensions
1509 initializer.
1510 * language.c (add_set_language_command): Update now that
1511 filename_extensions returns a vector.
1512 (unknown_language_data): Remove la_filename_extensions
1513 initializer.
1514 (auto_language_data): Likewise.
1515 * language.h (language_data): Remove la_filename_extensions field.
1516 (language_defn::filename_extensions): New member function.
1517 * m2-lang.c (m2_language_data): Remove la_filename_extensions
1518 initializer.
1519 * objc-lang.c (objc_extensions): Delete, moved into
1520 objc_language::filename_extensions.
1521 (objc_language_data): Remove la_filename_extensions initializer.
1522 (objc_language::filename_extensions): New member function.
1523 * opencl-lang.c (opencl_language_data): Remove
1524 la_filename_extensions initializer.
1525 * p-lang.c (pascal_extensions): Delete, moved into
1526 pascal_language::filename_extensions.
1527 (pascal_language_data): Remove la_filename_extensions initializer.
1528 (pascal_language::filename_extensions): New member function.
1529 * rust-lang.c (rust_extensions): Delete, moved into
1530 rust_language::filename_extensions.
1531 (rust_language_data): Remove la_filename_extensions initializer.
1532 (rust_language::filename_extensions): New member function.
1533 * symfile.c (add_filename_language): Add new assert.
1534
1535 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1536
1537 * ada-lang.c (ada_language_data): Remove la_name and
1538 la_natural_name initializers.
1539 (ada_language::name): New member function.
1540 (ada_language::natural_name): New member function.
1541 * c-lang.c (c_language_data): Remove la_name and
1542 la_natural_name initializers.
1543 (c_language::name): New member function.
1544 (c_language::natural_name): New member function.
1545 (cplus_language_data): Remove la_name and
1546 la_natural_name initializers.
1547 (cplus_language::name): New member function.
1548 (cplus_language::natural_name): New member function.
1549 (asm_language_data): Remove la_name and
1550 la_natural_name initializers.
1551 (asm_language::name): New member function.
1552 (asm_language::natural_name): New member function.
1553 (minimal_language_data): Remove la_name and
1554 la_natural_name initializers.
1555 (minimal_language::name): New member function.
1556 (minimal_language::natural_name): New member function.
1557 * compile/compile.c (compile_to_object): Update call to
1558 lanugage_defn::name.
1559 * d-lang.c (d_language_data): Remove la_name and
1560 la_natural_name initializers.
1561 (d_language::name): New member function.
1562 (d_language::natural_name): New member function.
1563 * expprint.c (print_subexp_standard): Update call to
1564 language_defn::name.
1565 (dump_raw_expression): Likewise
1566 (dump_prefix_expression): Likewise.
1567 * f-lang.c (f_language_data): Remove la_name and
1568 la_natural_name initializers.
1569 (f_language::name): New member function.
1570 (f_language::natural_name): New member function.
1571 * go-lang.c (go_language_data): Remove la_name and
1572 la_natural_name initializers.
1573 (go_language::name): New member function.
1574 (go_language::natural_name): New member function.
1575 * language.c (show_language_command): Update call to
1576 language_defn::name.
1577 (set_language_command): Likewise.
1578 (language_enum): Likewise.
1579 (language_str): Likewise.
1580 (add_set_language_command): Likewise, use
1581 language_defn::natural_name in the doc string.
1582 (unknown_language_data): Remove la_name and
1583 la_natural_name initializers.
1584 (unknown_language::name): New member function.
1585 (unknown_language::natural_name): New member function.
1586 (auto_language_data): Remove la_name and
1587 la_natural_name initializers.
1588 (auto_language::name): New member function.
1589 (auto_language::natural_name): New member function.
1590 (language_lookup_primitive_type_as_symbol): Update call to
1591 language_defn::name.
1592 * language.h (language_data): Remove la_name and la_natural_name
1593 member variables.
1594 (language_defn::name): New member function.
1595 (language_defn::natural_name): New member function.
1596 * m2-lang.c (m2_language_data): Remove la_name and
1597 la_natural_name initializers.
1598 (m2_language::name): New member function.
1599 (m2_language::natural_name): New member function.
1600 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
1601 language_defn::natural_name.
1602 * objc-lang.c (objc_language_data): Remove la_name and
1603 la_natural_name initializers.
1604 (objc_language::name): New member function.
1605 (objc_language::natural_name): New member function.
1606 * opencl-lang.c (opencl_language_data): Remove la_name and
1607 la_natural_name initializers.
1608 (opencl_language::name): New member function.
1609 (opencl_language::natural_name): New member function.
1610 * p-lang.c (pascal_language_data): Remove la_name and
1611 la_natural_name initializers.
1612 (pascal_language::name): New member function.
1613 (pascal_language::natural_name): New member function.
1614 * rust-lang.c (rust_language_data): Remove la_name and
1615 la_natural_name initializers.
1616 (rust_language::name): New member function.
1617 (rust_language::natural_name): New member function.
1618 * symtab.c (lookup_language_this): Update call to
1619 language_defn::name.
1620
1621 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1622
1623 * ada-lang.c (ada_language_data): Remove la_name_of_this
1624 initializer.
1625 * ax-gdb.c (gen_expr): Update call to name_of_this.
1626 * c-exp.y (classify_name): Likewise.
1627 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
1628 (cplus_language_data): Likewise.
1629 (cplus_language::name_of_this): New member function.
1630 (asm_language_data): Remove la_name_of_this initializer.
1631 (minimal_language_data): Likewise.
1632 * d-lang.c (d_language_data): Likewise.
1633 (d_language::name_of_this): New member function.
1634 * expprint.c (print_subexp_standard): Update call to name_of_this.
1635 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
1636 * go-lang.c (go_language_data): Likewise.
1637 * language.c (unknown_language_data): Likewise.
1638 (unknown_language::name_of_this): New member function.
1639 (auto_language_data): Remove la_name_of_this initializer.
1640 (auto_language::name_of_this): New member function.
1641 * language.h (language_data): Delete la_name_of_this member
1642 variable.
1643 (language_defn::name_of_this): New member function.
1644 * m2-lang.c (m2_language_data): Remove la_name_of_this
1645 initializer.
1646 * objc-lang.c (objc_language_data): Likewise.
1647 (objc_language::name_of_this): New member function.
1648 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
1649 initializer.
1650 * p-lang.c (pascal_language_data): Likewise.
1651 (pascal_language::name_of_this): New member function.
1652 * rust-lang.c (rust_language_data): Remove la_name_of_this
1653 initializer.
1654 * symtab.c (lookup_language_this): Update call to name_of_this.
1655 (lookup_symbol_aux): Likewise.
1656 * valops.c (value_of_this): Likewise.
1657
1658 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1659
1660 * ada-lang.c (ada_language_data): Remove
1661 la_struct_too_deep_ellipsis initializer.
1662 (ada_language::struct_too_deep_ellipsis): New member function.
1663 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
1664 initializer.
1665 (cplus_language_data): Likewise.
1666 (asm_language_data): Likewise.
1667 (minimal_language_data): Likewise.
1668 * cp-valprint.c (cp_print_value): Update call to
1669 struct_too_deep_ellipsis.
1670 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
1671 initializer.
1672 * f-lang.c (f_language_data): Likewise.
1673 (f_language::struct_too_deep_ellipsis): New member function.
1674 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
1675 initializer.
1676 * language.c (unknown_language_data): Likewise.
1677 (auto_language_data): Likewise.
1678 * language.h (language_data): Delete la_struct_too_deep_ellipsis
1679 member variable.
1680 (language_defn::struct_too_deep_ellipsis): New member function.
1681 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
1682 initializer.Q
1683 * objc-lang.c (objc_language_data): Likewise.
1684 * opencl-lang.c (opencl_language_data): Likewise.
1685 * p-lang.c (pascal_language_data): Likewise.
1686 * rust-lang.c (rust_language_data): Likewise.
1687 * valprint.c (val_print_check_max_depth): Update call to
1688 struct_too_deep_ellipsis.
1689
1690 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
1691
1692 * MAINTAINERS (Write After Approval): Add myself.
1693
1694 2020-09-15 Tom Tromey <tom@tromey.com>
1695
1696 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
1697 Remove.
1698
1699 2020-09-15 Tom Tromey <tom@tromey.com>
1700
1701 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
1702 and TYPE_CODE_METHODPTR cases.
1703 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
1704 (c_value_print_inner): Update.
1705 * valprint.c (generic_value_print_memberptr): New function, from
1706 c_value_print_memberptr.
1707 (generic_value_print): Use it. Call cplus_print_method_ptr.
1708
1709 2020-09-15 Tom Tromey <tromey@adacore.com>
1710
1711 * python/python-internal.h (PyInt_FromLong): Remove define.
1712 * python/py-value.c (convert_value_from_python): Use
1713 gdb_py_object_from_longest.
1714 * python/py-type.c (typy_get_code): Use
1715 gdb_py_object_from_longest.
1716 * python/py-symtab.c (salpy_get_line): Use
1717 gdb_py_object_from_longest.
1718 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
1719 gdb_py_object_from_longest.
1720 * python/py-record.c (recpy_gap_reason_code): Use
1721 gdb_py_object_from_longest.
1722 * python/py-record-btrace.c (recpy_bt_insn_size)
1723 (recpy_bt_func_level, btpy_list_count): Use
1724 gdb_py_object_from_longest.
1725 * python/py-infthread.c (gdbpy_create_ptid_object): Use
1726 gdb_py_object_from_longest. Fix error handling.
1727 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
1728 gdb_py_object_from_longest.
1729 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
1730 gdb_py_object_from_longest.
1731 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
1732 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
1733 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
1734
1735 2020-09-15 Tom Tromey <tromey@adacore.com>
1736
1737 * python/python.c (gdbpy_parameter_value): Use
1738 gdb_py_object_from_ulongest.
1739
1740 2020-09-15 Tom Tromey <tromey@adacore.com>
1741
1742 * python/py-infevents.c (create_register_changed_event_object):
1743 Use gdb_py_object_from_longest.
1744 * python/py-exitedevent.c (create_exited_event_object): Use
1745 gdb_py_object_from_longest.
1746
1747 2020-09-15 Tom Tromey <tromey@adacore.com>
1748
1749 * python/python.c (gdbpy_parameter_value): Use
1750 gdb_py_object_from_longest.
1751 * python/py-type.c (convert_field, typy_range): Use
1752 gdb_py_object_from_longest.
1753 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
1754 gdb_py_object_from_longest.
1755 * python/py-lazy-string.c (stpy_get_length): Use
1756 gdb_py_object_from_longest.
1757 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
1758 gdb_py_object_from_longest.
1759 * python/py-infevents.c (create_memory_changed_event_object): Use
1760 gdb_py_object_from_longest.
1761 * python/py-inferior.c (infpy_get_num): Use
1762 gdb_py_object_from_longest.
1763 (infpy_get_pid): Likewise.
1764
1765 2020-09-15 Tom Tromey <tromey@adacore.com>
1766
1767 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
1768 defines.
1769 * python/py-value.c (valpy_long): Use
1770 gdb_py_object_from_ulongest.
1771 * python/py-symtab.c (salpy_get_pc): Use
1772 gdb_py_object_from_ulongest.
1773 (salpy_get_last): Likewise.
1774 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
1775 gdb_py_object_from_ulongest.
1776 * python/py-lazy-string.c (stpy_get_address): Use
1777 gdb_py_object_from_ulongest.
1778 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
1779 * python/py-arch.c (archpy_disassemble): Use
1780 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
1781 error handling.
1782
1783 2020-09-15 Tom Tromey <tromey@adacore.com>
1784
1785 * python/python-internal.h (gdb_py_long_from_longest): Remove
1786 defines.
1787 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
1788 * python/py-type.c (convert_field, typy_get_sizeof): Use
1789 gdb_py_object_from_longest.
1790 * python/py-record-btrace.c (btpy_list_index): Use
1791 gdb_py_object_from_longest.
1792
1793 2020-09-15 Tom Tromey <tromey@adacore.com>
1794
1795 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
1796 * python/py-record.c (recpy_element_number): Use
1797 gdb_py_object_from_longest.
1798 (recpy_gap_number): Likewise.
1799
1800 2020-09-15 Tom Tromey <tromey@adacore.com>
1801
1802 * top.c (ui::ui): Update.
1803 (highest_ui_num): Remove.
1804 * top.h (struct ui) <num>: Remove.
1805
1806 2020-09-15 Tom Tromey <tromey@adacore.com>
1807
1808 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
1809 * ui-style.c (ansi_regex_text): Now array.
1810 * rust-exp.y (number_regex_text): Now array.
1811 * linespec.c (linespec_quote_characters): Now array.
1812 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
1813 Now arrays.
1814
1815 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1816
1817 * debuginfod-support.c (debuginfod_client_deleter): New.
1818 (debuginfod_client_up): New.
1819 (debuginfod_init): Return debuginfod_client_up.
1820 (debuginfod_source_query): Adjust.
1821 (debuginfod_debuginfo_query): Adjust.
1822
1823 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1824
1825 * debuginfod-support.c (debuginfod_source_query): Use
1826 make_unique_xstrdup.
1827
1828 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1829
1830 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
1831 with `type::instance_flags`.
1832
1833 2020-09-14 Michael Mullin <masmullin@gmail.com>
1834
1835 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
1836 Remove baton parameter.
1837
1838 2020-09-14 Pedro Alves <pedro@palves.net>
1839
1840 * Makefile.in (SELFTESTS_SRCS): Add
1841 unittests/enum-flags-selftests.c.
1842 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
1843 btrace_function_flags instead of enum btrace_function_flag.
1844 * compile/compile-c-types.c (convert_qualified): Use
1845 enum_flags::raw.
1846 * compile/compile-cplus-symbols.c (convert_one_symbol)
1847 (convert_symbol_bmsym):
1848 * compile/compile-cplus-types.c (compile_cplus_convert_method)
1849 (compile_cplus_convert_struct_or_union_methods)
1850 (compile_cplus_instance::convert_qualified_base):
1851 * go-exp.y (parse_string_or_char): Add cast to int.
1852 * unittests/enum-flags-selftests.c: New file.
1853 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
1854 type to btrace_thread_flags from btrace_thread_flag.
1855 (record_btrace_cancel_resume, record_btrace_step_thread): Change
1856 local's type to btrace_thread_flags from btrace_thread_flag. Add
1857 cast in DEBUG call.
1858
1859 2020-09-14 Pedro Alves <pedro@palves.net>
1860
1861 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
1862 * gdbtypes.c (address_space_name_to_int): Rename to ...
1863 (address_space_name_to_type_instance_flags): ... this.
1864 (address_space_int_to_name): Rename to ...
1865 (address_space_type_instance_flags_to_name): ... this.
1866 * gdbtypes.h (address_space_name_to_int): Rename to ...
1867 (address_space_name_to_type_instance_flags): ... this.
1868 (address_space_int_to_name): Rename to ...
1869 (address_space_type_instance_flags_to_name): ... this.
1870 * type-stack.c (type_stack::insert): Adjust to rename.
1871 * type-stack.h (type_stack::insert): Likewise.
1872
1873 2020-09-14 Pedro Alves <pedro@palves.net>
1874 Andrew Burgess <andrew.burgess@embecosm.com>
1875
1876 * avr-tdep.c (avr_address_class_type_flags): Return
1877 type_instance_flags.
1878 (avr_address_class_type_flags_to_name): Take a
1879 type_instance_flags.
1880 (avr_address_class_name_to_type_flags): Return bool and take a
1881 type_instance_flags.
1882 * d-lang.c (build_d_types): Use type::set_instance_flags.
1883 * ft32-tdep.c (ft32_address_class_type_flags): Return
1884 type_instance_flags.
1885 (ft32_address_class_type_flags_to_name): Take a
1886 type_instance_flags.
1887 (ft32_address_class_name_to_type_flags): Return bool and take a
1888 type_instance_flags.
1889 (ft32_gdbarch_init): Use type::set_instance_flags.
1890 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
1891 * gdbarch.h, gdbarch.c: Regenerate.
1892 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
1893 (address_class_name_to_type_flags): Use type_instance_flags and
1894 bool.
1895 * gdbtypes.c (address_space_name_to_int)
1896 (address_space_int_to_name, make_qualified_type): Use
1897 type_instance_flags.
1898 (make_qualified_type): Use type_instance_flags and
1899 type::set_instance_flags.
1900 (make_type_with_address_space, make_cv_type, make_vector_type)
1901 (check_typedef): Use type_instance_flags.
1902 (recursive_dump_type): Cast type_instance_flags to unsigned for
1903 printing.
1904 (copy_type_recursive): Use type::set_instance_flags.
1905 (gdbtypes_post_init): Use type::set_instance_flags.
1906 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
1907 <m_instance_flags>: ... this.
1908 <instance_flags, set_instance_flags>: New methods.
1909 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
1910 (SET_TYPE_INSTANCE_FLAGS): New.
1911 (address_space_name_to_int, address_space_int_to_name)
1912 (make_type_with_address_space): Pass flags using
1913 type_instance_flags instead of int.
1914 * stabsread.c (cleanup_undefined_types_noname): Use
1915 type::set_instance_flags.
1916 * s390-tdep.c (s390_address_class_type_flags): Return
1917 type_instance_flags.
1918 (s390_address_class_type_flags_to_name): Take a
1919 type_instance_flags.
1920 (s390_address_class_name_to_type_flags): Return bool and take a
1921 type_instance_flags.
1922 * type-stack.c (type_stack::follow_types): Use
1923 type_instance_flags.
1924 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
1925
1926 2020-09-14 Tom Tromey <tromey@adacore.com>
1927
1928 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
1929 * x86-tdep.c (x86_is_thunk_register_name)
1930 (x86_in_indirect_branch_thunk): Update.
1931 * sparc64-tdep.c (sparc64_fpu_register_names)
1932 (sparc64_cp0_register_names, sparc64_register_names)
1933 (sparc64_pseudo_register_names): Now const.
1934 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
1935 cp0_registers_num>: Now const.
1936 * sparc-tdep.c (sparc_core_register_names)
1937 (sparc32_fpu_register_names, sparc32_cp0_register_names)
1938 (sparc32_pseudo_register_names): Now const.
1939 (validate_tdesc_registers): Update.
1940 * rust-lang.c (rust_extensions): Now const.
1941 * p-lang.c (p_extensions): Now const.
1942 * objc-lang.c (objc_extensions): Now const.
1943 * nto-tdep.c (nto_thread_state_str): Now const.
1944 * moxie-tdep.c (moxie_register_names): Now const.
1945 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
1946 Now const.
1947 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
1948 (mips_linux_reg_names): Now const.
1949 (mips_gdbarch_init): Update.
1950 * microblaze-tdep.c (microblaze_register_names): Now const.
1951 * m68k-tdep.c (m68k_register_names): Now const.
1952 * m32r-tdep.c (m32r_register_names): Now const.
1953 * ia64-tdep.c (ia64_register_names): Now const.
1954 * i386-tdep.h (struct gdbarch_tdep) <register_names,
1955 ymmh_register_names, ymm16h_regnum, mpx_register_names,
1956 k_register_names, zmmh_register_names, xmm_avx512_register_names,
1957 ymm_avx512_register_names, pkeys_register_names>: Now const.
1958 * i386-tdep.c (i386_register_names, i386_zmm_names)
1959 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
1960 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
1961 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
1962 * f-lang.c (f_extensions): Now const.
1963 * d-lang.c (d_extensions): Now const.
1964 * csky-tdep.c (csky_register_names): Now const.
1965 * charset.c (default_charset_names, charset_enum): Now const.
1966 (_initialize_charset): Update.
1967 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
1968 const.
1969 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
1970 (bsd_uthread_solib_loaded): Update.
1971 (bsd_uthread_state): Now const.
1972 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
1973 (amd64_ymm_avx512_names, amd64_ymmh_names)
1974 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
1975 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
1976 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
1977 (amd64_dword_names): Now const.
1978 * agent.c (can_use_agent_enum): Now const.
1979 * ada-tasks.c (task_states, long_task_states): Now const.
1980 * ada-lang.c (known_runtime_file_name_patterns)
1981 (known_auxiliary_function_name_patterns, attribute_names)
1982 (standard_exc, ada_extensions): Now const.
1983
1984 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1985
1986 * bcache.h (struct bcache) <bcache>: Remove constructor.
1987 <m_hash_function, m_compare_function>: Remove.
1988 <~bcache>: Make virtual.
1989 <compare>: Remove static method, introduce virtual method.
1990 <default_hash>: Remove.
1991 <hash>: New virtual method.
1992 * bcache.c (bcache::expand_hash_table): Update.
1993 (bcache::insert): Update.
1994 (bcache::hash): New.
1995 (bcache::compare): Update comment and parameter names.
1996 * gdbtypes.c (types_deeply_equal): Update.
1997 * psymtab.h (struct psymbol_bcache): New struct.
1998 (class psymtab_storage) <psymtab_storage>: Make default.
1999 <psymbol_cache>: Change type to psymbol_bcache.
2000 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
2001 (psymbol_hash): Change to...
2002 (psymbol_bcache::hash): ... this.
2003 (psymbol_compare): Change to...
2004 (psymbol_bcache::compare): ... this.
2005
2006 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2007
2008 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
2009 checking for initial lwp.
2010
2011 2020-09-14 Tom Tromey <tromey@adacore.com>
2012
2013 * m68k-tdep.c (m68k_extract_return_value): Use
2014 pointer_result_regnum.
2015 (m68k_store_return_value): Likewise.
2016 (m68k_reg_struct_return_p): Handle vectors and arrays.
2017 (m68k_return_value): Handle arrays.
2018 (m68k_svr4_return_value): Fix single-element aggregate handling.
2019 Handle long double. Adjust for embedded ABI.
2020 (m68k_svr4_init_abi): Set pointer_result_regnum.
2021 (m68k_embedded_init_abi): New function.
2022 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
2023 (m68k_osabi_sniffer): New function.
2024 (_initialize_m68k_tdep): Register osabi sniffer.
2025 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
2026 member.
2027
2028 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2029
2030 * xml-support.c (xml_fetch_content_from_file): Replace xfree
2031 with gdb::unique_xmalloc_ptr<char>.
2032
2033 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2034
2035 * xml-support.h (xml_fetch_another): Change type to be a
2036 function_view.
2037 (xml_process_xincludes): Remove baton parameter.
2038 (xml_fetch_content_from_file): Change baton parameter to
2039 dirname.
2040 * xml-support.c (struct xinclude_parsing_data)
2041 <xinclude_parsing_data>: Remove baton parameter.
2042 <fetcher_baton>: Remove.
2043 (xinclude_start_include): Adjust.
2044 (xml_process_xincludes): Adjust.
2045 (xml_fetch_content_from_file): Replace baton parameter with
2046 dirname.
2047 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
2048 (xml_init_syscalls_info): Use a lambda.
2049 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
2050 (file_read_description_xml): Use a lambda.
2051 (fetch_available_features_from_target): Change baton parameter
2052 to target_ops.
2053 (target_read_description_xml): Use a lambda.
2054 (target_fetch_description_xml): Use a lambda.
2055 (string_read_description_xml): Update.
2056
2057 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2058
2059 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
2060 uses with type::endianity_is_not_default.
2061
2062 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2063
2064 * gdbtypes.h (struct type) <endianity_is_not_default,
2065 set_endianity_is_not_default>: New methods.
2066 (TYPE_ENDIANITY_NOT_DEFAULT): Use
2067 type::endianity_is_not_default, change all write call sites to
2068 use type::set_endianity_is_not_default.
2069
2070 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2071
2072 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
2073 uses with type::is_fixed_instance.
2074
2075 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2076
2077 * gdbtypes.h (struct type) <is_fixed_instance,
2078 set_is_fixed_instance>: New methods.
2079 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
2080 write call sites to use type::set_is_fixed_instance.
2081
2082 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2083
2084 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
2085 uses with type::is_gnu_ifunc.
2086
2087 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2088
2089 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
2090 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
2091 use type::set_is_gnu_ifunc.
2092
2093 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2094
2095 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
2096 uses with type::stub_is_supported.
2097
2098 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2099
2100 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
2101 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
2102 use type::set_stub_is_supported.
2103
2104 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2105
2106 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
2107 uses with type::is_vector.
2108
2109 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2110
2111 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
2112 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
2113 use type::set_is_vector.
2114
2115 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2116
2117 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
2118 uses with type::has_varargs.
2119
2120 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2121
2122 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
2123 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
2124 use type::set_has_varargs.
2125
2126 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2127
2128 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
2129 uses with type::is_prototyped.
2130
2131 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2132
2133 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
2134 New methods.
2135 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
2136 call sites to use type::set_is_prototyped.
2137
2138 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2139
2140 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
2141 uses with type::target_is_stub.
2142
2143 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2144
2145 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
2146 New methods.
2147 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
2148 sites to use type::set_target_is_stub.
2149
2150 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2151
2152 * gdbtypes.h (TYPE_STUB): Remove, replace all
2153 uses with type::is_stub.
2154
2155 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2156
2157 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
2158 (TYPE_STUB): Use type::is_stub, change all write call sites to
2159 use type::set_is_stub.
2160
2161 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2162
2163 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
2164 type::has_no_signedness.
2165
2166 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2167
2168 * gdbtypes.h (struct type) <has_no_signedness,
2169 set_has_no_signedness>: New methods.
2170 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
2171 call sites to use type::set_has_no_signedness.
2172
2173 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2174
2175 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
2176 type::is_unsigned.
2177
2178 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2179
2180 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
2181 methods.
2182 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
2183 sites to use type::set_is_unsigned.
2184
2185 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
2186 Adam Renquinha <arenquinha@cimeq.qc.ca>
2187
2188 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
2189 pointer and stack frame offset when unwinding.
2190
2191 2020-09-13 Pedro Alves <pedro@palves.net>
2192
2193 * NEWS: Document "-break-insert --qualified".
2194 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
2195
2196 2020-09-13 Pedro Alves <pedro@palves.net>
2197
2198 * linespec.c (classify_mtype, compare_msyms): Delete.
2199 (search_minsyms_for_name): Remove classification logic. Instead
2200 filter out trampoline symbols if we also found an external
2201 function of the same name.
2202
2203 2020-09-13 Joel Brobecker <brobecker@adacore.com>
2204
2205 * NEWS: Create a new section for the next release branch.
2206 Rename the section of the current branch, now that it has
2207 been cut.
2208
2209 2020-09-13 Joel Brobecker <brobecker@adacore.com>
2210
2211 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
2212 * version.in: Bump version to 11.0.50.DATE-git.
2213
2214 2020-09-12 Joel Brobecker <brobecker@adacore.com>
2215
2216 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
2217
2218 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
2219 Felix Willgerodt <Felix.Willgerodt@intel.com>
2220
2221 * gdbarch.sh: Added bfloat16 type.
2222 * gdbarch.c: Regenerated.
2223 * gdbarch.h: Regenerated.
2224 * gdbtypes.c (floatformats_bfloat16): New struct.
2225 (gdbtypes_post_init): Add builtin_bfloat16.
2226 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
2227 (floatformats_bfloat16): New struct.
2228 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
2229 (i386_ymm_type): Add field "v16_bfloat16"
2230 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
2231 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
2232 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
2233 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
2234 * features/i386/64bit-avx512.xml: Add bfloat16 type.
2235 * features/i386/64bit-avx512.c: Regenerated.
2236 * features/i386/64bit-sse.xml: Add bfloat16 type.
2237 * features/i386/64bit-sse.c: Regenerated.
2238
2239 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
2240
2241 * i386-tdep.c (i386_zmm_type): Fix field names.
2242 (i386_ymm_type): Fix field names.
2243
2244 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2245
2246 * breakpoint.c: Fix typo in the help message of the
2247 "set breakpoint condition-evaluation" command.
2248
2249 2020-09-10 Kamil Rytarowski <n54@gmx.com>
2250
2251 * nbsd-nat.c: Include "nat/netbsd-nat.h".
2252 * (nbsd_nat_target::pid_to_exec_file)
2253 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
2254 (nbsd_nat_target::post_startup_inferior)
2255 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
2256 (nbsd_add_threads): Switch local code to common gdb/nat functions.
2257 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
2258 * (nbsd_thread_lister): Remove.
2259
2260 2020-09-10 Kamil Rytarowski <n54@gmx.com>
2261
2262 * fork-inferior.c (startup_inferior): Avoid double free.
2263
2264 2020-09-10 Kamil Rytarowski <n54@gmx.com>
2265
2266 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
2267 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
2268
2269 2020-09-10 Kamil Rytarowski <n54@gmx.com>
2270
2271 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
2272 * netbsd-nat.c: Include <sys/ptrace.h>.
2273 * (netbsd_nat::enable_proc_events): Add.
2274
2275 2020-09-10 Kamil Rytarowski <n54@gmx.com>
2276
2277 * netbsd-nat.h: Include "gdbsupport/function-view.h".
2278 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
2279 (netbsd_nat::for_each_thread): Add.
2280 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
2281 "gdbsupport/common-debug.h".
2282 * (netbsd_nat::netbsd_thread_lister)
2283 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
2284 (netbsd_nat::for_each_thread): Add.
2285
2286 2020-09-10 Kamil Rytarowski <n54@gmx.com>
2287
2288 * netbsd-nat.h: Include <unistd.h>.
2289 * (netbsd_nat::pid_to_exec_file): Add.
2290 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
2291 * (netbsd_nat::pid_to_exec_file) Add.
2292
2293 2020-09-10 Kamil Rytarowski <n54@gmx.com>
2294
2295 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
2296
2297 2020-09-10 Kamil Rytarowski <n54@gmx.com>
2298
2299 * netbsd-nat.h: New file.
2300 * netbsd-nat.c: Likewise.
2301
2302 2020-09-09 Tom Tromey <tromey@adacore.com>
2303
2304 * ada-lang.c (remove_extra_symbols): Do not increment when
2305 removing an element
2306
2307 2020-09-08 Tom Tromey <tromey@adacore.com>
2308
2309 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
2310
2311 2020-09-08 Tom Tromey <tromey@adacore.com>
2312
2313 PR win32/25302:
2314 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
2315 (gdb_bfd_init_data): New function.
2316 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
2317
2318 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2319
2320 * infrun.c (fetch_inferior_event): Use
2321 `switch_to_target_no_thread` to switch the target.
2322
2323 2020-09-06 Tom Tromey <tom@tromey.com>
2324
2325 * symfile.h (dwarf2_free_objfile): Don't declare.
2326
2327 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2328
2329 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
2330 to match 16 byte real/complex type generated by Flang compiler.
2331
2332 2020-09-03 Tom de Vries <tdevries@suse.de>
2333
2334 PR breakpoint/26546
2335 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
2336 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
2337
2338 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
2339
2340 * maint.c (index_digits): New function.
2341 (struct maint_print_section_data): Remove.
2342 (print_bfd_section_info): Remove print_data parameter, add arg
2343 and index_digits.
2344 (print_objfile_section_info): Likewise.
2345 (print_bfd_section_info_maybe_relocated): Likewise (plus
2346 objfile).
2347 (maintenance_info_sections): Adjust calls.
2348
2349 2020-09-02 Tom Tromey <tromey@adacore.com>
2350
2351 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
2352 for null pointers.
2353 (ada_varobj_adjust_for_child_access): Special-case null pointers.
2354
2355 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
2356
2357 * bcache.h (struct bcache) <insert>: Change type of `added` to
2358 pointer to bool.
2359 * bcache.c (bcache::insert): Likewise.
2360 * gdbtypes.c (check_types_worklist): Adjust.
2361 * psymtab.c (add_psymbol_to_bcache): Adjust.
2362
2363 2020-08-31 Kevin Buettner <kevinb@redhat.com>
2364
2365 * corelow.c (unordered_set): Include.
2366 (class core_target): Add field 'm_core_unavailable_mappings'.
2367 (core_target::build_file_mappings): Print only one warning
2368 per inaccessible file. Add unavailable/broken mappings
2369 to m_core_unavailable_mappings.
2370 (core_target::xfer_partial): Call...
2371 (core_target::xfer_memory_via_mappings): New method.
2372
2373 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
2374
2375 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
2376 type to bool.
2377
2378 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
2379
2380 * dwarf2/read.c (struct field_info): Fix indentation.
2381
2382 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
2383
2384 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
2385 ordering in comment.
2386 * frame.c (frame_id_eq): Fix indentation.
2387
2388 2020-08-31 Scott Linder <scott@scottlinder.com>
2389 Simon Marchi <simon.marchi@efficios.com>
2390
2391 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
2392 inline frame ids in outer frame.
2393
2394 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
2395
2396 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
2397 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
2398 (outer_frame_id): Use FID_STACK_OUTER instead of
2399 FID_STACK_INVALID.
2400 (frame_id_p): Don't check for outer_frame_id.
2401
2402 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
2403
2404 * frame-unwind.c (frame_unwind_got_optimized): Don't set
2405 regnum/frame in value. Call allocate_value_lazy.
2406 * frame.c (frame_unwind_register_value): Use
2407 val_print_not_saved.
2408
2409 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
2410
2411 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
2412
2413 2020-08-29 Pedro Alves <pedro@palves.net>
2414
2415 * progspace.c (print_program_space): Use all_inferiors. Switch to
2416 the inferior before calling target_pid_to_str.
2417
2418 2020-08-28 Tom Tromey <tom@tromey.com>
2419
2420 * xcoffread.c (xcoff_end_psymtab): Update comment.
2421 * dbxread.c (dbx_end_psymtab): Update comment.
2422
2423 2020-08-28 Tom de Vries <tdevries@suse.de>
2424
2425 PR breakpoint/26544
2426 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
2427 event_location.
2428 (create_breakpoint): Same.
2429 (base_breakpoint_decode_location): Same.
2430 (bkpt_create_sals_from_location): Same.
2431 (bkpt_decode_location): Same.
2432 (bkpt_probe_create_sals_from_location): Same.
2433 (bkpt_probe_decode_location): Same.
2434 (tracepoint_create_sals_from_location): Same.
2435 (tracepoint_decode_location): Same.
2436 (tracepoint_probe_decode_location): Same.
2437 (strace_marker_create_sals_from_location): Same.
2438 (strace_marker_decode_location): Same.
2439 (create_sals_from_location_default): Same.
2440 (decode_location_default): Same.
2441 * breakpoint.h (struct breakpoint_ops): Same.
2442 (create_breakpoint): Same.
2443 * linespec.h (decode_line_full): Same.
2444 * linespec.c (decode_line_full): Same. Throw error if
2445 result.size () == 0.
2446
2447 2020-08-27 Pedro Alves <pedro@palves.net>
2448
2449 PR gdb/26524
2450 * breakpoint.c (until_break_fsm) <location_breakpoint,
2451 caller_breakpoint>: Delete fields.
2452 <breakpoints>: New field.
2453 <until_break_fsm>: Adjust to save a breakpoint vector instead of
2454 two individual breakpoints.
2455 (until_break_fsm::should_stop): Loop over breakpoints in the
2456 breakpoint vector.
2457 (until_break_fsm::clean_up): Adjust to clear the breakpoints
2458 vector.
2459 (until_break_command): Handle location expanding into multiple
2460 sals.
2461
2462 2020-08-27 Pedro Alves <pedro@palves.net>
2463
2464 PR gdb/26523
2465 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
2466 bp_until breakpoints user-specified locations. Update intro
2467 comment.
2468
2469 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
2470
2471 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
2472 gdb_bfd_sections): New.
2473 * maint.c (print_bfd_section_info): Change param type to
2474 maint_print_section_data.
2475 (print_objfile_section_info): Likewise.
2476 (print_bfd_section_info_maybe_relocated): Likewise.
2477 (maintenance_info_sections): Use gdb_bfd_sections.
2478
2479 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
2480
2481 * MAINTAINERS: Add ARC target and maintainer.
2482
2483 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
2484
2485 * configure.tgt: ARC support for GNU/Linux.
2486 * Makefile.in (ALL_TARGET_OBJS): Likewise.
2487 * arc-linux-tdep.c: New file.
2488 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
2489 * arc-tdep.c (arc_write_pc): Use it.
2490
2491 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
2492
2493 * arc-tdep.c (arc_check_for_hardware_loop): New.
2494 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
2495
2496 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
2497
2498 * arc-tdep.h: Include "gdbarch.h".
2499
2500 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
2501
2502 * arch/arc.h
2503 (arc_gdbarch_features): New class to stir the selection of target XML.
2504 (arc_create_target_description): Use FEATURES to choose XML target.
2505 (arc_lookup_target_description): Use arc_create_target_description
2506 to create _new_ target descriptions or return the already created
2507 ones if the FEATURES is the same.
2508 * arch/arc.c: Implementation of prototypes described above.
2509 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
2510 (arc_gdbarch_features_init): Initialize the FEATURES struct.
2511 * arc-tdep.c (*_feature_name): Make feature names consistent.
2512 (arc_register_feature): A new struct to hold information about
2513 registers of a particular target/feature.
2514 (arc_check_tdesc_feature): Check if XML provides registers in
2515 compliance with ARC_REGISTER_FEATURE structs.
2516 (arc_update_acc_reg_names): Add aliases for r58 and r59.
2517 (determine_*_reg_feature_set): Which feature name to look for.
2518 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
2519 (mach_type_to_arc_isa): Convert from a set of binutils machine types
2520 to expected ISA enums to be used in arc_gdbarch_features structs.
2521 * features/Makefile (FEATURE_XMLFILES): Add new files.
2522 * gdb/features/arc/v1-aux.c: New file.
2523 * gdb/features/arc/v1-aux.xml: Likewise.
2524 * gdb/features/arc/v1-core.c: Likewise.
2525 * gdb/features/arc/v1-core.xml: Likewise.
2526 * gdb/features/arc/v2-aux.c: Likewise.
2527 * gdb/features/arc/v2-aux.xml: Likewise.
2528 * gdb/features/arc/v2-core.c: Likewise.
2529 * gdb/features/arc/v2-core.xml: Likewise.
2530 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
2531
2532 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
2533 Andrew Burgess <andrew.burgess@embecosm.com>
2534
2535 PR m2/26372
2536 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
2537 an assert. Remove single element array indexing pattern as the
2538 MULTI_SUBSCRIPT support will handle this case too.
2539
2540 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
2541
2542 * value.h (valprint_check_validity): Move declaration from
2543 here...
2544 * valprint.h (valprint_check_validity): ... to here.
2545
2546 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
2547
2548 * debug.h: New file.
2549 * debug.c (debug_prefixed_vprintf): New function.
2550 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
2551 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
2552
2553 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
2554
2555 * infrun.h (infrun_debug_printf_1): New function declaration.
2556 (infrun_debug_printf): New macro.
2557 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
2558 throughout.
2559 (infrun_debug_printf): New function.
2560 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
2561 (handle_jit_event): Likewise.
2562
2563 2020-08-21 Mark Wielaard <mark@klomp.org>
2564
2565 * ada-lex.l: Extend register warnings diagnostics comment for g++.
2566
2567 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
2568
2569 * frame.c (enum class frame_id_status): New.
2570 (struct frame_info) <this_id::p>: Change type to frame_id_status.
2571 (fprintf_frame): Update.
2572 (compute_frame_id): Set frame id status to "computing" on entry.
2573 Set it back to "not_computed" on failure and to "computed" on
2574 success.
2575 (get_frame_id): Assert the frame id is not being computed.
2576 (create_sentinel_frame): Use frame_id_status::COMPUTED.
2577 (create_new_frame): Likewise.
2578 (frame_cleanup_after_sniffer): Update assert.
2579
2580 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2581
2582 * regcache.c (pid_ptid_regcache_map): New type.
2583 (target_ptid_regcache_map): Remove.
2584 (target_pid_ptid_regcache_map): New type.
2585 (regcaches): Change type to target_pid_ptid_regcache_map.
2586 (get_thread_arch_aspace_regcache): Update.
2587 (regcache_thread_ptid_changed): Update, handle pid-like ptid
2588 case.
2589 (regcaches_size): Update.
2590 (regcache_count): Update.
2591 (registers_changed_ptid_target_pid_test): New.
2592 (_initialize_regcache): Register new test.
2593
2594 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2595
2596 * regcache.c (regcache_count): New.
2597 (struct regcache_test_data): New.
2598 (regcache_test_data_up): New.
2599 (populate_regcaches_for_test): New.
2600 (regcaches_test): Remove.
2601 (get_thread_arch_aspace_regcache_test): New.
2602 (registers_changed_ptid_all_test): New.
2603 (registers_changed_ptid_target_test): New.
2604 (registers_changed_ptid_target_ptid_test): New.
2605 (regcache_thread_ptid_changed): Remove regcache_count lambda.
2606 (_initialize_regcache): Register new tests.
2607
2608 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2609
2610 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
2611 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
2612 gdbarch and aspace parameter. Use current inferior's aspace.
2613 Validate regcache's arch value.
2614 (regcaches_test): Update.
2615
2616 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2617
2618 * regcache.c (regcaches_test): Call registers_changed.
2619
2620 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2621
2622 * infrun.c (process_event_stop_test): Fix typo "breapoint".
2623
2624 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2625
2626 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
2627 to find the end of prologue for flang compiled binaries.
2628 * arm-tdep.c (arm_skip_prologue): Likewise.
2629 * i386-tdep.c (i386_skip_prologue): Likewise.
2630 * producer.c (producer_is_llvm): New function.
2631 (producer_parsing_tests): Added new tests for clang/flang.
2632 * producer.h (producer_is_llvm): New declaration.
2633
2634 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
2635
2636 * linux-nat.c (linux_nat_debug_printf): New function.
2637 (linux_nat_debug_printf_1): New macro. Use throughout the file.
2638
2639 2020-08-18 Aaron Merey <amerey@redhat.com>
2640
2641 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
2642 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
2643 (CLIBS): Add DEBUGINFOD_LIBS.
2644
2645 2020-08-17 Sergei Trofimovich <siarheit@google.com>
2646
2647 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
2648 'gdbarch_num_regs'.
2649
2650 2020-08-17 Tom Tromey <tromey@adacore.com>
2651
2652 * ada-varobj.c (ada_varobj_decode_var): Handle case where
2653 ada_get_decoded_value returns NULL.
2654
2655 2020-08-17 Tom Tromey <tromey@adacore.com>
2656
2657 * python/py-inferior.c (infpy_search_memory): Use
2658 gdb_py_object_from_ulongest.
2659 * python/py-infevents.c (create_inferior_call_event_object)
2660 (create_memory_changed_event_object): Use
2661 gdb_py_object_from_ulongest.
2662 * python/py-linetable.c (ltpy_entry_get_pc): Use
2663 gdb_py_object_from_ulongest.
2664
2665 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
2666
2667 * loc.c (class symbol_needs_eval_context): Fix indentation.
2668
2669 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
2670
2671 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
2672 bool.
2673
2674 2020-08-17 Tom de Vries <tdevries@suse.de>
2675
2676 PR gdb/26393
2677 * gdbtypes.c (dump_dynamic_prop): New function.
2678 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
2679
2680 2020-08-15 Tom de Vries <tdevries@suse.de>
2681
2682 PR backtrace/26390
2683 * stack.c (print_frame_args): Temporarily set the selected
2684 frame to FRAME while printing the frame's arguments.
2685
2686 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2687
2688 PR breakpoints/26385
2689 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
2690 Always clear watchpoint with PTRACE_SET_DEBUGREG.
2691
2692 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2693
2694 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
2695 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
2696 and >= to check return value instead of == -1 and != -1.
2697
2698 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
2699
2700 * utils.h (class gdb_argv) <as_array_view>: New method.
2701 * utils.c (gdb_argv_as_array_view_test): New.
2702 (_initialize_utils): Register selftest.
2703 * maint.c (maintenance_selftest): Use the new method.
2704
2705 2020-08-13 Kamil Rytarowski <n54@gmx.com>
2706
2707 * target.h (supports_dumpcore, dumpcore): New
2708 function declarations.
2709 * target.c (supports_dumpcore, dumpcore): New
2710 functions.
2711 * target-delegates.c: Rebuild.
2712 * gcore.c (gcore_command): Use target_supports_dumpcore ()
2713 and target_dumpcore ().
2714
2715 2020-08-13 Aaron Merey <amerey@redhat.com>
2716
2717 * debuginfod-support.c: Replace global variables with user_data.
2718
2719 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
2720
2721 * maint.c (maintenance_selftest): Split args and pass array_view
2722 to run_tests.
2723
2724 2020-08-12 Luis Machado <luis.machado@linaro.org>
2725
2726 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
2727 type's length.
2728 Use %s and pulongest to print the length.
2729
2730 2020-08-12 Pedro Alves <palves@redhat.com>
2731
2732 * NEWS: Move "Multi-target debugging support" item to the
2733 "Changes since GDB 9" section.
2734
2735 2020-08-12 Pedro Alves <palves@redhat.com>
2736
2737 PR gdb/26336
2738 * progspace.c (program_space::remove_objfile): Invalidate the
2739 frame cache.
2740
2741 2020-08-11 Tom de Vries <tdevries@suse.de>
2742
2743 * MAINTAINERS: Mark ms1 as deleted.
2744
2745 2020-08-10 Luis Machado <luis.machado@linaro.org>
2746
2747 PR gdb/26310
2748
2749 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
2750 act accordingly.
2751 (aarch64_analyze_prologue_test): Add more unit tests to exercise
2752 movz/str/stur/stp skipping behavior.
2753
2754 2020-08-10 Luis Machado <luis.machado@linaro.org>
2755
2756 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
2757 struct user_sve_header instead of struct sve_context.
2758
2759 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
2760
2761 * read.h (dwarf2_fetch_die_loc_sect_off,
2762 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
2763 `void *` parameter with function_view.
2764 * read.c (dwarf2_fetch_die_loc_sect_off,
2765 dwarf2_fetch_die_loc_cu_off): Likewise.
2766 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
2767 (per_cu_dwarf_call): Adjust.
2768 (get_frame_address_in_block_wrapper): Remove.
2769 (indirect_synthetic_pointer): Adjust.
2770 (get_ax_pc): Remove.
2771 (dwarf2_compile_expr_to_ax): Adjust.
2772
2773 2020-08-08 Tom de Vries <tdevries@suse.de>
2774
2775 PR build/26344
2776 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
2777 constructor.
2778 * regcache.c (get_thread_arch_aspace_regcache): Same.
2779
2780 2020-08-07 Tom Tromey <tromey@adacore.com>
2781
2782 * ravenscar-thread.c
2783 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
2784 New method.
2785 (ravenscar_thread_target::wait): Check
2786 runtime_initialized.
2787 (ravenscar_thread_target::prepare_to_store)
2788 (ravenscar_thread_target::stopped_by_sw_breakpoint)
2789 (ravenscar_thread_target::stopped_by_hw_breakpoint)
2790 (ravenscar_thread_target::stopped_by_watchpoint)
2791 (ravenscar_thread_target::stopped_data_address)
2792 (ravenscar_thread_target::core_of_thread): Use
2793 scoped_restore_current_thread and
2794 set_base_thread_from_ravenscar_task.
2795
2796 2020-08-07 Tom Tromey <tromey@adacore.com>
2797
2798 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
2799
2800 2020-08-07 Tom Tromey <tromey@adacore.com>
2801
2802 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
2803 update_inferior_ptid before update_thread_list.
2804 (temporarily_change_regcache_ptid): New class.
2805 (ravenscar_thread_target::fetch_registers)
2806 (ravenscar_thread_target::store_registers)
2807 (ravenscar_thread_target::prepare_to_store): Use base thread when
2808 forwarding operation.
2809
2810 2020-08-07 Tom Tromey <tromey@adacore.com>
2811
2812 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
2813 "is_pid" case.
2814
2815 2020-08-07 Tom Tromey <tromey@adacore.com>
2816
2817 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
2818 New methods.
2819 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
2820 first.
2821 (ravenscar_thread_target::add_thread): Rename from
2822 ravenscar_add_thread.
2823 (ravenscar_thread_target::update_thread_list): Use a lambda.
2824 (ravenscar_thread_target::xfer_partial): New method.
2825
2826 2020-08-07 Tom Tromey <tromey@adacore.com>
2827
2828 * ada-lang.h (ada_task_list_iterator_ftype): Now a
2829 gdb::function_view.
2830 (iterate_over_live_ada_tasks): Change type of argument.
2831 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
2832 of argument.
2833
2834 2020-08-07 Tom Tromey <tromey@adacore.com>
2835
2836 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
2837 Remove.
2838 (ravenscar_thread_target::extra_thread_info): Remove.
2839 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
2840 defer to target beneath for non-Ravenscar threads.
2841
2842 2020-08-07 Tom Tromey <tromey@adacore.com>
2843
2844 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
2845 get_base_thread_from_ravenscar_task>: Now methods.
2846 <m_cpu_map>: New member.
2847 (ravenscar_thread_target::get_thread_base_cpu): Rename from
2848 ravenscar_get_thread_base_cpu. Check m_cpu_map.
2849 (ravenscar_thread_target::task_is_currently_active): Update.
2850 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
2851 Now a method.
2852 (ravenscar_thread_target::add_active_thread): Put initial thread
2853 into the m_cpu_map.
2854
2855 2020-08-07 Tom Tromey <tromey@adacore.com>
2856
2857 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
2858 event_ptid.
2859
2860 2020-08-07 Tom Tromey <tromey@adacore.com>
2861
2862 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
2863 runtime_initialized.
2864
2865 2020-08-07 Tom Tromey <tromey@adacore.com>
2866
2867 * ravenscar-thread.c (ravenscar_thread_target): Don't call
2868 add_active_thread.
2869 (ravenscar_thread_target::add_active_thread): Now public.
2870 (ravenscar_inferior_created): Call add_active_thread after pushing
2871 the target.
2872
2873 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
2874
2875 * regcache.c (ptid_regcache_map): New type.
2876 (target_ptid_regcache_map): New type.
2877 (regcaches): Change type to target_ptid_regcache_map.
2878 (get_thread_arch_aspace_regcache): Update to regcaches' new
2879 type.
2880 (regcache_thread_ptid_changed): Likewise.
2881 (registers_changed_ptid): Likewise.
2882 (regcaches_size): Likewise.
2883 (regcaches_test): Update.
2884 (regcache_thread_ptid_changed): Update.
2885 * regcache.h (regcache_up): New type.
2886 * gdbsupport/ptid.h (hash_ptid): New struct.
2887
2888 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
2889
2890 * observable.h (thread_ptid_changed): Add parameter
2891 `process_stratum_target *`.
2892 * infrun.c (infrun_thread_ptid_changed): Add parameter
2893 `process_stratum_target *` and use it.
2894 (selftests): New namespace.
2895 (infrun_thread_ptid_changed): New function.
2896 (_initialize_infrun): Register selftest.
2897 * regcache.c (regcache_thread_ptid_changed): Add parameter
2898 `process_stratum_target *` and use it.
2899 (regcache_thread_ptid_changed): New function.
2900 (_initialize_regcache): Register selftest.
2901 * thread.c (thread_change_ptid): Pass target to
2902 thread_ptid_changed observable.
2903
2904 2020-08-06 Caroline Tice <cmtice@google.com>
2905
2906 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
2907 (struct dwp_sections): Update field comments. Add loclists and
2908 rnglists fields.
2909 (struct virtual_v2_dwo_sections): Rename struct to
2910 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
2911 size & offset fields for loclists and rnglists.
2912 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
2913 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
2914 skipping dummy type units.
2915 (create_dwp_hash_table): Update the large comment above the function to
2916 discuss Version 5 DWP files as well, with references. Update all the
2917 version checks in the function to check for version 5 as well. Add new
2918 section at the end to create dwp hash table for version 5.
2919 (create_dwp_v2_section): Rename function to
2920 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
2921 Add V5 to error message text.
2922 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
2923 into calls to create_dwp_v2_or_v5_section.
2924 (create_dwo_unit_in_dwp_v5): New function.
2925 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
2926 check for version2; add else clause to handle version 5.
2927 (open_and_init_dwo_file): Add code to check dwarf version & only call
2928 create_debug_types_hash_table (with sections.types) if version is not 5;
2929 else call create_debug_type_hash_table, with sections.info.
2930 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
2931 version 5.
2932 (dwarf2_locate_v5_dwp_sections): New function.
2933 (open_and_init_dwp_file): Add else-if clause for version 5 to call
2934 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
2935
2936 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
2937
2938 * regcache.h (class regcache): Remove friend
2939 registers_changed_ptid.
2940 <regcache_thread_ptid_changed>: Remove.
2941 <regcaches>: Remove.
2942 * regcache.c (regcache::regcaches): Rename to...
2943 (regcaches): ... this. Make static.
2944 (get_thread_arch_aspace_regcache): Update.
2945 (regcache::regcache_thread_ptid_changed): Rename to...
2946 (regcache_thread_ptid_changed): ... this. Update.
2947 (class regcache_access): Remove.
2948 (regcaches_test): Update.
2949 (_initialize_regcache): Update.
2950 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
2951 <forward_list>.
2952
2953 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
2954
2955 * regcache.h (class regcache) <current_regcache>: Rename to...
2956 <regcaches>: ... this. Move doc here.
2957 * regcache.c (regcache::current_regcache) Rename to...
2958 (regcache::regcaches): ... this. Move doc to header.
2959 (get_thread_arch_aspace_regcache): Update.
2960 (regcache::regcache_thread_ptid_changed): Update.
2961 (registers_changed_ptid): Update.
2962 (class regcache_access) <current_regcache_size>: Rename to...
2963 <regcaches_size>: ... this.
2964 (current_regcache_test): Rename to...
2965 (regcaches_test): ... this.
2966 (_initialize_regcache): Update.
2967
2968 2020-08-06 Victor Collod <vcollod@nvidia.com>
2969
2970 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
2971
2972 2020-08-05 Kevin Buettner <kevinb@redhat.com>
2973
2974 * corelow.c (core_target::build_file_mappings): Don't output
2975 null pathname in warning.
2976
2977 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
2978
2979 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
2980 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
2981 gdb.dwarf2/dw2-single-line-discriminators.exp,
2982 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
2983
2984 2020-08-05 Tom Tromey <tromey@adacore.com>
2985
2986 PR rust/26197:
2987 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
2988 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
2989 Fix off-by-one and type size errors in ordinary case.
2990
2991 2020-08-05 Tom de Vries <tdevries@suse.de>
2992
2993 * gdbtypes.c (type_not_allocated, type_not_associated): Use
2994 "prop->const_val () == 0" instead of "prop->const_val () != 0".
2995
2996 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
2997
2998 * frame.h (frame_id_p): Return bool.
2999 (frame_id_artificial_p): Return bool.
3000 (frame_id_eq): Return bool.
3001 (has_stack_frames): Return bool.
3002 (get_selected_frame): Fix typo in comment.
3003 (get_frame_pc_if_available): Return bool.
3004 (get_frame_address_in_block_if_available): Return bool.
3005 (get_frame_func_if_available): Return bool.
3006 (read_frame_register_unsigned): Return bool.
3007 (get_frame_register_bytes): Return bool.
3008 (safe_frame_unwind_memory): Return bool.
3009 (deprecated_frame_register_read): Return bool.
3010 (frame_unwinder_is): Return bool.
3011 * frame.c (struct frame_info) <prev_arch::p>: Change type to
3012 bool.
3013 <this_id::p>: Likewise.
3014 <prev_p>: Likewise.
3015 (frame_stash_add): Return bool.
3016 (get_frame_id): Use bool.
3017 (frame_id_build_special) Use bool.
3018 (frame_id_build_unavailable_stack): Use bool.
3019 (frame_id_build): Use bool.
3020 (frame_id_p): Return bool, use true/false instead of 1/0.
3021 (frame_id_artificial_p): Likewise.
3022 (frame_id_eq): Likewise.
3023 (frame_id_inner): Likewise.
3024 (get_frame_func_if_available): Likewise.
3025 (read_frame_register_unsigned): Likewise.
3026 (deprecated_frame_register_read): Likewise.
3027 (get_frame_register_bytes): Likewise.
3028 (has_stack_frames): Likewise.
3029 (inside_main_func): Likewise.
3030 (inside_entry_func): Likewise.
3031 (get_frame_pc_if_available): Likewise.
3032 (get_frame_address_in_block_if_available): Likewise.
3033 (frame_unwinder_is): Likewise.
3034 (safe_frame_unwind_memory): Likewise.
3035 (frame_unwind_arch): Likewise.
3036
3037 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
3038
3039 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
3040 type to cached_copy_status.
3041 (fprintf_frame): Adjust.
3042 (get_frame_func_if_available): Adjust.
3043 (frame_cleanup_after_sniffer): Adjust.
3044
3045 2020-08-04 Mark Wielaard <mark@klomp.org>
3046
3047 * MAINTAINERS (Write After Approval): Update email address.
3048
3049 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3050
3051 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
3052 dynamic_prop::const_val.
3053
3054 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3055
3056 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
3057 dynamic_prop::kind.
3058
3059 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3060
3061 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
3062
3063 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
3064
3065 * configure.tgt: Set gdb_sim for bpf-*-* targets.
3066
3067 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
3068 Jose E. Marchesi <jose.marchesi@oracle.com>
3069
3070 * configure.tgt: Add entry for bpf-*-*.
3071 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
3072 (ALLDEPFILES): Add bpf-tdep.c.
3073 * bpf-tdep.c: New file.
3074 * MAINTAINERS: Add bpf target and maintainer.
3075 * NEWS: Mention the support for the new target.
3076
3077 2020-08-04 Tom de Vries <tdevries@suse.de>
3078
3079 PR symtab/23270
3080 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
3081 Error.
3082
3083 2020-08-03 John Baldwin <jhb@FreeBSD.org>
3084
3085 * syscalls/freebsd.xml: Regenerate.
3086
3087 2020-08-03 John Baldwin <jhb@FreeBSD.org>
3088
3089 * syscalls/update-freebsd.sh: Fix usage and year range.
3090
3091 2020-08-03 Tom de Vries <tdevries@suse.de>
3092
3093 PR symtab/26333
3094 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
3095 DW_LNE_lo_user/DW_LNE_hi_user range.
3096
3097 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
3098
3099 PR ada/26318
3100 * ada-lang.c (ada_modulus): Return 0 if property is not of const
3101 kind.
3102
3103 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3104
3105 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
3106
3107 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3108
3109 * breakpoint.c (set_breakpoint_condition): Update the condition
3110 expressions after checking that the input condition string parses
3111 successfully and does not contain junk at the end.
3112
3113 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3114
3115 * breakpoint.c (set_breakpoint_condition): Update the
3116 condition string after parsing the new condition successfully.
3117
3118 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3119
3120 * proc-api.c (_STRUCTURED_PROC): Don't define.
3121 * proc-events.c: Likewise.
3122 * proc-flags.c: Likewise.
3123 * proc-why.c: Likewise.
3124 * procfs.c: Likewise.
3125
3126 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
3127 * configure, config.in: Regenerate.
3128
3129 2020-07-30 Tom de Vries <tdevries@suse.de>
3130
3131 PR build/26320
3132 * ui-style.h (struct ui_file_style::color): Wrap m_value and
3133 m_red/m_green/m_blue in a union.
3134
3135 2020-07-29 Tom de Vries <tdevries@suse.de>
3136
3137 PR tdep/26280
3138 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
3139
3140 2020-07-28 Tom Tromey <tromey@adacore.com>
3141
3142 PR symtab/26270:
3143 * symtab.h (find_pc_partial_function_sym): Declare.
3144 * cli/cli-cmds.c (disassemble_command): Use
3145 find_pc_partial_function_sym. Check asm_demangle.
3146 * blockframe.c (cache_pc_function_sym): New global.
3147 (cache_pc_function_name): Remove.
3148 (clear_pc_function_cache): Update.
3149 (find_pc_partial_function_sym): New function, from
3150 find_pc_partial_function.
3151 (find_pc_partial_function): Rewrite using
3152 find_pc_partial_function_sym.
3153
3154 2020-07-28 Tom Tromey <tromey@adacore.com>
3155
3156 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
3157 help. Add usage.
3158
3159 2020-07-28 Tom Tromey <tromey@adacore.com>
3160
3161 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
3162 <DW_OP_GNU_variable_value>: Cast to address type.
3163
3164 2020-07-28 Kamil Rytarowski <n54@gmx.com>
3165
3166 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
3167 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
3168 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
3169 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
3170 (nbsd_get_siginfo_type): New.
3171 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
3172 (_initialize_nbsd_tdep): New.
3173
3174 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
3175
3176 PR binutils/26301
3177 * configure: Regenerated.
3178
3179 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
3180
3181 PR binutils/26301
3182 * configure: Regenerated.
3183
3184 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
3185
3186 * python/py-frame.c: Remove 'user-regs.h' include.
3187 (frapy_read_register): Rewrite to make use of
3188 gdbpy_parse_register_id.
3189 * python/py-registers.c (gdbpy_parse_register_id): New function,
3190 moved here from python/py-unwind.c. Updated the return type, and
3191 also accepts register descriptor objects.
3192 * python/py-unwind.c: Remove 'user-regs.h' include.
3193 (pyuw_parse_register_id): Moved to python/py-registers.c.
3194 (unwind_infopy_add_saved_register): Update to use
3195 gdbpy_parse_register_id.
3196 (pending_framepy_read_register): Likewise.
3197 * python/python-internal.h (gdbpy_parse_register_id): Declare.
3198
3199 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
3200
3201 * python/py-registers.c: Add 'user-regs.h' include.
3202 (register_descriptor_iter_find): New function.
3203 (register_descriptor_iterator_object_methods): New static global
3204 methods array.
3205 (register_descriptor_iterator_object_type): Add pointer to methods
3206 array.
3207
3208 2020-07-27 John Baldwin <jhb@FreeBSD.org>
3209
3210 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
3211 for all architectures on FreeBSD 11.3 and later.
3212
3213 2020-07-27 Tom Tromey <tromey@adacore.com>
3214
3215 * gcore.h (load_corefile): Don't declare.
3216
3217 2020-07-27 Tom de Vries <tdevries@suse.de>
3218
3219 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
3220 * config.in: Regenerate.
3221 * configure: Regenerate.
3222
3223 2020-07-26 Eli Zaretskii <eliz@gnu.org>
3224
3225 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
3226 ws2tcpip.h. When checking whether socklen_t type is defined, use
3227 ws2tcpip.h if it is available and sys/socket.h isn't.
3228 * configure: Regenerate.
3229 * config.in: Regenerate.
3230
3231 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
3232
3233 PR fortran/23051
3234 PR fortran/26139
3235 * valops.c (value_ind): Pass address to
3236 readjust_indirect_value_type.
3237 * value.c (readjust_indirect_value_type): Make parameter
3238 non-const, and add extra address parameter. Resolve original type
3239 before using it.
3240 * value.h (readjust_indirect_value_type): Update function
3241 signature and comment.
3242
3243 2020-07-25 Tom de Vries <tdevries@suse.de>
3244
3245 PR symtab/26243
3246 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
3247 entries.
3248
3249 2020-07-24 Aaron Merey <amerey@redhat.com>
3250
3251 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
3252 * configure: Rebuild.
3253
3254 2020-07-23 Kevin Buettner <kevinb@redhat.com>
3255
3256 PR corefiles/26294
3257 * corelow.c (_initialize_corelow): Add period to help text
3258 for "maintenance print core-file-backed-mappings".
3259
3260 2020-07-23 Pedro Alves <pedro@palves.net>
3261
3262 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
3263 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
3264 meanwhile.
3265 * frame.c (frame_cache_generation, get_frame_cache_generation):
3266 New.
3267 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
3268 (get_prev_frame_if_no_cycle): On exception, don't touch
3269 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
3270 * frame.h (get_frame_cache_generation): Declare.
3271
3272 2020-07-23 Tom de Vries <tdevries@suse.de>
3273
3274 PR tui/26282
3275 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
3276 New default constructor.
3277
3278 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
3279
3280 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
3281 exclude non-statement entries.
3282
3283 2020-07-22 Kevin Buettner <kevinb@redhat.com>
3284
3285 * NEWS (New commands): Mention new command
3286 "maintenance print core-file-backed-mappings".
3287
3288 2020-07-22 Kevin Buettner <kevinb@redhat.com>
3289
3290 * corelow.c (gdbcmd.h): Include.
3291 (core_target::info_proc_mappings): New method.
3292 (get_current_core_target): New function.
3293 (maintenance_print_core_file_backed_mappings): New function.
3294 (_initialize_corelow): Add core-file-backed-mappings to
3295 "maint print" commands.
3296
3297 2020-07-22 Kevin Buettner <kevinb@redhat.com>
3298
3299 * linux-tdep.c (dump_note_entry_p): New function.
3300 (linux_dump_mapping_p_ftype): New typedef.
3301 (linux_find_memory_regions_full): Add new parameter,
3302 should_dump_mapping_p.
3303 (linux_find_memory_regions): Adjust call to
3304 linux_find_memory_regions_full.
3305 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
3306 call to linux_find_memory_regions_full.
3307
3308 2020-07-22 Kevin Buettner <kevinb@redhat.com>
3309
3310 * corelow.c (solist.h, unordered_map): Include.
3311 (class core_target): Add field m_core_file_mappings and
3312 method build_file_mappings.
3313 (core_target::core_target): Call build_file_mappings.
3314 (core_target::~core_target): Free memory associated with
3315 m_core_file_mappings.
3316 (core_target::build_file_mappings): New method.
3317 (core_target::xfer_partial): Use m_core_file_mappings
3318 for memory transfers.
3319 * linux-tdep.c (linux_read_core_file_mappings): New
3320 function.
3321 (linux_core_info_proc_mappings): Rewrite to use
3322 linux_read_core_file_mappings.
3323 (linux_init_abi): Register linux_read_core_file_mappings.
3324
3325 2020-07-22 Kevin Buettner <kevinb@redhat.com>
3326
3327 * arch-utils.c (default_read_core_file_mappings): New function.
3328 * arch-utils.c (default_read_core_file_mappings): Declare.
3329 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
3330 * gdbarch.h, gdbarch.c: Regenerate.
3331
3332 2020-07-22 Kevin Buettner <kevinb@redhat.com>
3333
3334 PR corefiles/25631
3335 * corelow.c (core_target:xfer_partial): Revise
3336 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
3337 case after first checking the stratum beneath the core
3338 target.
3339 (has_all_memory): Return true.
3340 * target.c (raw_memory_xfer_partial): Revise comment
3341 regarding use of has_all_memory.
3342
3343 2020-07-22 Kevin Buettner <kevinb@redhat.com>
3344
3345 * exec.h (section_table_xfer_memory): Revise declaration,
3346 replacing section name parameter with an optional callback
3347 predicate.
3348 * exec.c (section_table_xfer_memory): Likewise.
3349 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
3350 of section_table_xfer_memory.
3351
3352 2020-07-22 Tom Tromey <tromey@adacore.com>
3353
3354 * mi/mi-cmd-stack.c (list_args_or_locals): Use
3355 lookup_symbol_search_name.
3356
3357 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
3358
3359 * python/py-registers.c (gdbpy_register_object_data_init): Remove
3360 redundant local variable.
3361 (gdbpy_get_register_descriptor): Extract descriptor vector as a
3362 reference, not pointer, update code accordingly.
3363
3364 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3365 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3366
3367 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
3368 * jit.c (jit_breakpoint_re_set_internal): Use the
3369 `skip_jit_symbol_lookup` field.
3370
3371 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3372 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3373
3374 * jit.c (jit_read_descriptor): Define the descriptor address once,
3375 use twice.
3376 (jit_breakpoint_deleted): Move the declaration of the loop variable
3377 `iter` into the loop header.
3378 (jit_breakpoint_re_set_internal): Move the declaration of the local
3379 variable `objf_data` to the first point of definition.
3380 (jit_event_handler): Move the declaration of local variables
3381 `code_entry`, `entry_addr`, and `objf` to their first point of use.
3382 Rename `objf` to `jited`.
3383
3384 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3385
3386 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
3387 Remove.
3388 * jit.c (get_jiter_objfile_data): Update.
3389
3390 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3391 Simon Marchi <simon.marchi@polymtl.ca>
3392
3393 * jit.c (struct jit_program_space_data): Remove.
3394 (jit_program_space_key): Remove.
3395 (jiter_objfile_data::~jiter_objfile_data): Remove program space
3396 stuff.
3397 (get_jit_program_space_data): Remove.
3398 (jit_breakpoint_deleted): Iterate on all of the program space's
3399 objfiles.
3400 (jit_inferior_init): Likewise.
3401 (jit_breakpoint_re_set_internal): Likewise. Also change return
3402 type to void.
3403 (jit_breakpoint_re_set): Pass current_program_space to
3404 jit_breakpoint_re_set_internal.
3405
3406 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3407
3408 * jit.h (struct jiter_objfile_data) <cached_code_address,
3409 jit_breakpoint>: Move to here from ...
3410 * jit.c (jit_program_space_data): ... here.
3411 (jiter_objfile_data::~jiter_objfile_data): Update.
3412 (jit_breakpoint_deleted): Update.
3413 (jit_breakpoint_re_set_internal): Update.
3414
3415 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3416
3417 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
3418 checks.
3419 (jit_read_descriptor): Remove NULL check.
3420 (jit_event_handler): Add an assertion.
3421
3422 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3423
3424 * jit.h (struct jit_objfile_data): Split into...
3425 (struct jiter_objfile_data): ... this ...
3426 (struct jited_objfile_data): ... and this.
3427 * objfiles.h (struct objfile) <jit_data>: Remove.
3428 <jiter_data, jited_data>: New fields.
3429 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
3430 (jiter_objfile_data::~jiter_objfile_data): ... this.
3431 (get_jit_objfile_data): Rename to ...
3432 (get_jiter_objfile_data): ... this.
3433 (add_objfile_entry): Update.
3434 (jit_read_descriptor): Use get_jiter_objfile_data.
3435 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
3436 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
3437 (jit_inferior_exit_hook): Use objfile's jited_data field.
3438
3439 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3440
3441 * jit.h: Forward-declare `struct minimal_symbol`.
3442 (struct jit_objfile_data): Migrate to here from jit.c; also add a
3443 constructor, destructor, and an objfile* field.
3444 * jit.c (jit_objfile_data): Remove.
3445 (struct jit_objfile_data): Migrate from here to jit.h.
3446 (jit_objfile_data::~jit_objfile_data): New destructor
3447 implementation with code moved from free_objfile_data.
3448 (free_objfile_data): Delete.
3449 (get_jit_objfile_data): Update to use the jit_data field of objfile.
3450 (jit_find_objf_with_entry_addr): Ditto.
3451 (jit_inferior_exit_hook): Ditto.
3452 (_initialize_jit): Remove the call to
3453 register_objfile_data_with_cleanup.
3454 * objfiles.h (struct objfile) <jit_data>: New field.
3455
3456 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3457
3458 * jit.h: Forward-declare `struct objfile`.
3459 (jit_event_handler): Add a second parameter, the JITer objfile.
3460 * jit.c (jit_read_descriptor): Change the signature to take the
3461 JITer objfile as an argument instead of the jit_program_space_data.
3462 (jit_inferior_init): Update the call to jit_read_descriptor.
3463 (jit_event_handler): Use the new JITer objfile argument when calling
3464 jit_read_descriptor.
3465 * breakpoint.c (handle_jit_event): Update the call to
3466 jit_event_handler to pass the JITer objfile.
3467
3468 2020-07-21 John Baldwin <jhb@FreeBSD.org>
3469
3470 * gdbarch.c: Regenerate.
3471 * gdbarch.h: Regenerate.
3472 * gdbarch.sh (handle_segmentation_fault): Remove method.
3473 * infrun.c (handle_segmentation_fault): Remove.
3474 (print_signal_received_reason): Remove call to
3475 handle_segmentation_fault.
3476
3477 2020-07-21 John Baldwin <jhb@FreeBSD.org>
3478
3479 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
3480 Rename to sparc64_linux_report_signal_info and add siggnal
3481 argument.
3482 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
3483 instead of sparc64_linux_handle_segmentation_fault.
3484
3485 2020-07-21 John Baldwin <jhb@FreeBSD.org>
3486
3487 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
3488 i386_linux_report_signal_info instead of
3489 i386_linux_handle_segmentation_fault.
3490 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
3491 to i386_linux_report_signal_info and add siggnal argument.
3492 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
3493 of i386_linux_handle_segmentation_fault.
3494 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
3495 to i386_linux_report_signal_info and add siggnal argument.
3496
3497 2020-07-21 John Baldwin <jhb@FreeBSD.org>
3498
3499 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
3500 hook if present.
3501
3502 2020-07-21 John Baldwin <jhb@FreeBSD.org>
3503
3504 * gdbarch.c: Regenerate.
3505 * gdbarch.h: Regenerate.
3506 * gdbarch.sh (report_signal_info): New method.
3507 * infrun.c (print_signal_received_reason): Invoke gdbarch
3508 report_signal_info hook if present.
3509
3510 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
3511
3512 * python/py-registers.c : Add 'unordered_map' include.
3513 (gdbpy_new_reggroup): Renamed to...
3514 (gdbpy_get_reggroup): ...this. Update to only create register
3515 group descriptors when needed.
3516 (gdbpy_reggroup_iter_next): Update.
3517
3518 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
3519
3520 * python/py-registers.c (gdbpy_register_object_data): New static
3521 global.
3522 (gdbpy_register_object_data_init): New function.
3523 (gdbpy_new_register_descriptor): Renamed to...
3524 (gdbpy_get_register_descriptor): ...this, and update to reuse
3525 existing register descriptors where possible.
3526 (gdbpy_register_descriptor_iter_next): Update.
3527 (gdbpy_initialize_registers): Register new gdbarch data.
3528
3529 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
3530
3531 * linux-nat.c (stopped_pids): Make static.
3532
3533 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
3534
3535 PR ada/26235
3536 * gdbtypes.c (ada_discrete_type_low_bound,
3537 ada_discrete_type_high_bound): Handle undefined bounds.
3538
3539 2020-07-21 Kamil Rytarowski <n54@gmx.com>
3540
3541 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
3542 declaration.
3543 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
3544 function.
3545
3546 2020-07-20 John Baldwin <jhb@FreeBSD.org>
3547
3548 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
3549 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
3550 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
3551 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
3552 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
3553 method.
3554
3555 2020-07-20 Ludovic Courtès <ludo@gnu.org>
3556
3557 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
3558 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
3559 which are deprecated in Guile 3.0.
3560 * configure.ac (try_guile_versions): Add "guile-3.0".
3561 * configure (try_guile_versions): Regenerate.
3562 * NEWS: Update entry.
3563
3564 2020-07-20 Ludovic Courtès <ludo@gnu.org>
3565 Doug Evans <dje@google.com>
3566
3567 PR gdb/21104
3568 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
3569 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
3570 USING_GUILE_BEFORE_2_2.
3571 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
3572 Change type to 'scm_t_port_type *'.
3573 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
3574 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
3575 parameter and honor it. Update callers.
3576 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
3577 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
3578 functions.
3579 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
3580 USING_GUILE_BEFORE_2_2.
3581 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
3582 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
3583 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
3584 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
3585 and 'SCM_PORT_TYPE'.
3586 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
3587 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
3588 (gdbscm_memory_port_read, gdbscm_memory_port_write)
3589 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
3590 [!USING_GUILE_BEFORE_2_2]: New functions.
3591 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
3592 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
3593 'gdbscm_memory_port_read'.
3594 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
3595 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
3596 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
3597 function.
3598 (ioscm_init_memory_port): Remove.
3599 (ioscm_init_memory_port_stream): New function
3600 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
3601 function.
3602 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
3603 Return scm_from_uint (0).
3604 (gdbscm_set_memory_port_read_buffer_size_x)
3605 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
3606 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
3607 Return scm_from_uint (0).
3608 (gdbscm_set_memory_port_write_buffer_size_x)
3609 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
3610 * configure.ac (try_guile_versions): Add "guile-2.2".
3611 * configure: Regenerate.
3612 * NEWS: Add entry.
3613
3614 2020-07-18 Tom Tromey <tom@tromey.com>
3615
3616 * linux-nat.c (linux_multi_process): Remove.
3617 (linux_nat_target::supports_multi_process): Return true.
3618
3619 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
3620
3621 * arch/riscv.c (riscv_tdesc_cache): Change map type.
3622 (riscv_lookup_target_description): Return pointer out of
3623 unique_ptr.
3624 * target-descriptions.c (allocate_target_description): Add
3625 comment.
3626 (target_desc_deleter::operator()): Likewise.
3627 * target-descriptions.h (struct target_desc_deleter): Moved to
3628 gdbsupport/tdesc.h.
3629 (target_desc_up): Likewise.
3630
3631 2020-07-17 Tom Tromey <tromey@adacore.com>
3632
3633 * linux-nat.c (linux_nat_target::supports_non_stop)
3634 (linux_nat_target::always_non_stop_p): Use "true".
3635 (linux_nat_target::supports_disable_randomization): Use "true" and
3636 "false".
3637
3638 2020-07-16 Caroline Tice <cmtice@google.com>
3639
3640 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
3641 (RNGLIST_HEADER_SIZE64): New constant definition.
3642 (struct dwop_section_names): Add rnglists_dwo.
3643 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
3644 (struct loclist_header): Rename to 'loclists_rnglists_header'.
3645 (struct dwo_sections): Add rnglists field.
3646 (read_attribut_reprocess): Add tag parameter.
3647 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
3648 (cu_debug_rnglists_section): New function (decl & definition).
3649 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
3650 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
3651 die whose range is being checked; get rnglist section from
3652 cu_debug_rnglists_section, to get from either objfile or dwo file as
3653 appropriate. Add cases for DW_RLE_base_addressx,
3654 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
3655 the base address to DW_RLE_offset_pairs (not to all ranges), moving
3656 test inside if-condition and updating complaint message.
3657 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
3658 dwarf2_rnglists_process.
3659 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
3660 dwarf2_ranges_process.
3661 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
3662 need_ranges_base and update comment appropriately. Also pass die tag
3663 to dwarf2_ranges_read.
3664 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
3665 need_ranges_base and update comment appropriately. Also pass die tag
3666 to dwarf2_ranges_process.
3667 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
3668 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
3669 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
3670 need_ranges_base and update comment appropriately. Also pass die tag
3671 to read_attribute_reprocess and dwarf2_ranges_read.
3672 (read_loclist_header): Rename function to read_loclists_rnglists_header,
3673 and update function comment appropriately.
3674 (read_loclist_index): Call read_loclists_rnglists_header instead of
3675 read_loclist_header.
3676 (read_rnglist_index): New function.
3677 (read_attribute_reprocess): Add tag parameter. Add code for
3678 DW_FORM_rnglistx, passing tag to read_rnglist_index.
3679 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
3680
3681 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
3682
3683 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
3684 being resolved.
3685
3686 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
3687
3688 * arch-utils.c (show_architecture): Update formatting of messages.
3689
3690 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3691
3692 * gdbtypes.h (struct type) <bounds>: Handle array and string
3693 types.
3694 * ada-lang.c (assign_aggregate): Use type::bounds on
3695 array/string type.
3696 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
3697 * c-varobj.c (c_number_of_children): Likewise.
3698 (c_describe_child): Likewise.
3699 * eval.c (evaluate_subexp_for_sizeof): Likewise.
3700 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
3701 (f_type_print_base): Likewise.
3702 * f-valprint.c (f77_array_offset_tbl): Likewise.
3703 (f77_get_upperbound): Likewise.
3704 (f77_print_array_1): Likewise.
3705 * guile/scm-type.c (gdbscm_type_range): Likewise.
3706 * m2-typeprint.c (m2_array): Likewise.
3707 (m2_is_long_set_of_type): Likewise.
3708 * m2-valprint.c (get_long_set_bounds): Likewise.
3709 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
3710 * python/py-type.c (typy_range): Likewise.
3711 * rust-lang.c (rust_internal_print_type): Likewise.
3712 * type-stack.c (type_stack::follow_types): Likewise.
3713 * valarith.c (value_subscripted_rvalue): Likewise.
3714 * valops.c (value_cast): Likewise.
3715
3716 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3717
3718 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
3719 callers to use the equivalent accessor methods.
3720
3721 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3722
3723 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
3724 (struct type) <bit_stride>: New method.
3725 (TYPE_BIT_STRIDE): Remove.
3726 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
3727
3728 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3729
3730 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
3731 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
3732 callers to use the equivalent accessor methods instead.
3733
3734 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3735
3736 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
3737 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
3738 callers to use the equivalent accessor methods instead.
3739
3740 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3741
3742 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
3743 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
3744 to use dynamic_prop::kind.
3745
3746 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3747
3748 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
3749 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
3750 to get the bound property's kind and check against
3751 PROP_UNDEFINED.
3752
3753 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3754
3755 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
3756 all callers to use type::range_bounds followed by
3757 dynamic_prop::{low,high}.
3758
3759 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
3760
3761 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
3762 const_val, set_const_val, baton, set_locexpr, set_loclist,
3763 set_addr_offset, variant_parts, set_variant_parts,
3764 original_type, set_original_type>: New methods.
3765 <kind>: Rename to...
3766 <m_kind>: ... this. Update all users to use the new methods
3767 instead.
3768 <data>: Rename to...
3769 <m_data>: ... this. Update all users to use the new methods
3770 instead.
3771
3772 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3773
3774 * gdbtypes.c (get_discrete_bounds): Return failure if
3775 the range type's bounds are not both defined and constant
3776 values.
3777 (get_array_bounds): Update comment. Remove undefined bound check.
3778
3779 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
3780
3781 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
3782 the type::bounds method directly.
3783
3784 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3785
3786 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
3787 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
3788 are used to set the range type's bounds to use set_bounds.
3789
3790 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3791
3792 * exec.c (_initialize_exec): Update exec-file-mismatch help.
3793
3794 2020-07-10 Pedro Alves <pedro@palves.net>
3795
3796 * gdbthread.h (inferior_ref): Define.
3797 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
3798 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
3799 * thread.c
3800 (scoped_restore_current_thread::restore):
3801 Adjust to gdb::ref_ptr.
3802 (scoped_restore_current_thread::~scoped_restore_current_thread):
3803 Remove manual decref handling.
3804 (scoped_restore_current_thread::scoped_restore_current_thread):
3805 Adjust to use
3806 inferior_ref::new_reference/thread_info_ref::new_reference.
3807 Incref the thread before calling get_frame_id instead of after.
3808 Let TARGET_CLOSE_ERROR propagate.
3809
3810 2020-07-10 Pedro Alves <pedro@palves.net>
3811
3812 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
3813 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
3814 NOT_AVAILABLE_ERROR.
3815 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
3816 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
3817
3818 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3819 Pedro Alves <pedro@palves.net>
3820
3821 PR gdb/26199
3822 * infrun.c (threads_are_resumed_pending_p): Delete.
3823 (do_target_wait): Remove threads_are_executing and
3824 threads_are_resumed_pending_p checks from the inferior_matches
3825 lambda. Update comments.
3826
3827 2020-07-10 Pedro Alves <pedro@palves.net>
3828
3829 PR gdb/26199
3830 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
3831 executing threads.
3832
3833 2020-07-10 Pedro Alves <pedro@palves.net>
3834
3835 PR gdb/26199
3836 * infrun.c (handle_no_resumed): Handle multiple targets.
3837
3838 2020-07-10 Pedro Alves <pedro@palves.net>
3839
3840 PR gdb/26199
3841 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
3842 target_is_async_p.
3843
3844 2020-07-10 Pedro Alves <pedro@palves.net>
3845
3846 PR gdb/26199
3847 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
3848 threads, not all threads.
3849
3850 2020-07-10 Pedro Alves <pedro@palves.net>
3851
3852 PR gdb/26199
3853 * remote.c (remote_target::open_1): Pass remote target pointer as
3854 data to create_async_event_handler.
3855 (remote_async_inferior_event_handler): Mark async event handler
3856 before returning if the remote target still has either pending
3857 events or unacknowledged notifications.
3858
3859 2020-07-10 John Baldwin <jhb@FreeBSD.org>
3860
3861 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
3862 declaration.
3863 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
3864 function.
3865
3866 2020-07-09 John Baldwin <jhb@FreeBSD.org>
3867
3868 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
3869 inferior_ptid.
3870
3871 2020-07-09 John Baldwin <jhb@FreeBSD.org>
3872
3873 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
3874 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
3875 AT_FREEBSD_PS_STRINGS.
3876
3877 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
3878
3879 * auto-load.c (auto_load_objfile_script_1): Convert drive part
3880 of debugfile path on Windows.
3881
3882 2020-07-08 John Baldwin <jhb@FreeBSD.org>
3883
3884 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
3885 argument to 'data'.
3886
3887 2020-07-08 Tom Tromey <tromey@adacore.com>
3888
3889 * ada-lang.c (ada_exception_message_1): Use read_memory.
3890
3891 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3892
3893 PR python/22748
3894 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
3895 special handling for inline frames.
3896 * findvar.c (value_of_register_lazy): Skip inline frames when
3897 creating lazy register values.
3898 * frame.c (frame_id_computed_p): Delete definition.
3899 * frame.h (frame_id_computed_p): Delete declaration.
3900
3901 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3902
3903 * NEWS: Mention additions to Python API.
3904 * python/py-arch.c (archpy_register_groups): New function.
3905 (arch_object_methods): Add 'register_groups' method.
3906 * python/py-registers.c (reggroup_iterator_object): New struct.
3907 (reggroup_object): New struct.
3908 (gdbpy_new_reggroup): New function.
3909 (gdbpy_reggroup_to_string): New function.
3910 (gdbpy_reggroup_name): New function.
3911 (gdbpy_reggroup_iter): New function.
3912 (gdbpy_reggroup_iter_next): New function.
3913 (gdbpy_new_reggroup_iterator): New function
3914 (gdbpy_initialize_registers): Register new types.
3915 (reggroup_iterator_object_type): Define new Python type.
3916 (gdbpy_reggroup_getset): New static global.
3917 (reggroup_object_type): Define new Python type.
3918 * python/python-internal.h
3919
3920 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3921
3922 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
3923 * python/py-arch.c (archpy_registers): New function.
3924 (arch_object_methods): Add 'registers' method.
3925 * python/py-registers.c: New file.
3926 * python/python-internal.h
3927 (gdbpy_new_register_descriptor_iterator): Declare.
3928 (gdbpy_initialize_registers): Declare.
3929 * python/python.c (do_start_initialization): Call
3930 gdbpy_initialize_registers.
3931 * NEWS: Mention additions to the Python API.
3932
3933 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3934
3935 * NEWS: Mention new Python API method.
3936 * python/py-unwind.c (pending_framepy_architecture): New function.
3937 (pending_frame_object_methods): Add architecture method.
3938
3939 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3940
3941 * gdbarch.c: Regenerate.
3942 * gdbarch.h: Regenerate.
3943 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
3944 (gdbarch_data): Use internal_error for the case where
3945 deprecated_set_gdbarch_data was originally needed.
3946 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
3947 and use passed in obstack.
3948 (libunwind_frame_set_descr): Should no longer get back NULL from
3949 gdbarch_data.
3950 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
3951 type.
3952 * user-regs.c (user_regs_init): Update parameters, and use passed
3953 in obstack.
3954 (user_reg_add): Should no longer get back NULL from gdbarch_data.
3955 (_initialize_user_regs): Register as a pre-init gdbarch data type.
3956
3957 2020-07-06 Tom de Vries <tdevries@suse.de>
3958
3959 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
3960 End-Of-Sequence in lte_is_less_than.
3961 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
3962 "gdb: Don't reorder line table entries too much when sorting".
3963
3964 2020-07-06 Tom de Vries <tdevries@suse.de>
3965
3966 PR tui/26205
3967 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
3968
3969 2020-07-05 Tom de Vries <tdevries@suse.de>
3970
3971 PR build/26187
3972 * inferior.h (struct infcall_suspend_state_deleter): If available, use
3973 std::uncaught_exceptions instead of deprecated
3974 std::uncaught_exception.
3975
3976 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3977
3978 * macroexp.h (macro_stringify): Return
3979 gdb::unique_xmalloc_ptr<char>.
3980 * macroexp.c (macro_stringify): Likewise.
3981 * macrotab.c (fixup_definition): Update.
3982
3983 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3984
3985 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
3986 (lex_one_token): Update.
3987 * macroexp.c (struct macro_buffer) <release>: Return
3988 gdb::unique_xmalloc_ptr<char>.
3989 (macro_stringify): Update.
3990 (macro_expand): Update.
3991 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
3992 * macroexp.h (macro_expand_next): Likewise.
3993
3994 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
3995
3996 * macroexp.h (macro_lookup_ftype): Remove.
3997 (macro_expand, macro_expand_once, macro_expand_next): Remove
3998 lookup function parameters, add scope parameter.
3999 * macroexp.c (scan, substitute_args, expand, maybe_expand,
4000 macro_expand, macro_expand_once, macro_expand_next): Likewise.
4001 * macroscope.h (standard_macro_lookup): Change parameter type
4002 to macro_scope.
4003 * macroscope.c (standard_macro_lookup): Likewise.
4004 * c-exp.y (lex_one_token): Update.
4005 * macrocmd.c (macro_expand_command): Likewise.
4006 (macro_expand_once_command): Likewise.
4007
4008 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4009
4010 * inf-loop.c (inferior_event_handler): Remove client_data param.
4011 * inf-loop.h (inferior_event_handler): Likewise.
4012 * infcmd.c (step_1): Adjust.
4013 * infrun.c (proceed): Adjust.
4014 (fetch_inferior_event): Remove client_data param.
4015 (infrun_async_inferior_event_handler): Adjust.
4016 * infrun.h (fetch_inferior_event): Remove `void *` param.
4017 * linux-nat.c (handle_target_event): Adjust.
4018 * record-btrace.c (record_btrace_handle_async_inferior_event):
4019 Adjust.
4020 * record-full.c (record_full_async_inferior_event_handler):
4021 Adjust.
4022 * remote.c (remote_async_inferior_event_handler): Adjust.
4023
4024 2020-07-01 Tom Tromey <tom@tromey.com>
4025
4026 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
4027 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
4028
4029 2020-07-01 Tom Tromey <tom@tromey.com>
4030
4031 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
4032 tui_gen_win_info.
4033 (tui_win_info::make_window): Merge with
4034 tui_gen_win_info::make_window.
4035 (tui_win_info::make_visible): Move from tui_gen_win_info.
4036 * tui/tui-win.c (tui_win_info::max_width): Move from
4037 tui_gen_win_info.
4038 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
4039 type.
4040 <window_factory>: Likewise.
4041 * tui/tui-layout.c (tui_win_info::resize): Move from
4042 tui_gen_win_info.
4043 (make_standard_window): Change return type.
4044 (get_locator_window, tui_get_window_by_name): Likewise.
4045 (tui_layout_window::apply): Remove a cast.
4046 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
4047 (struct tui_win_info): Merge with tui_gen_win_info.
4048 (struct tui_gen_win_info): Remove.
4049
4050 2020-07-01 Tom Tromey <tom@tromey.com>
4051
4052 * tui/tui-stack.h (struct tui_locator_window): Derive from
4053 tui_win_info.
4054 <do_scroll_horizontal, do_scroll_vertical>: New methods.
4055 <can_box>: New method.
4056
4057 2020-07-01 Tom Tromey <tom@tromey.com>
4058
4059 * tui/tui-stack.h (struct tui_locator_window): Remove body.
4060
4061 2020-07-01 Tom Tromey <tom@tromey.com>
4062
4063 * tui/tui-regs.c (tui_data_window::display_registers_from)
4064 (tui_data_window::display_registers_from)
4065 (tui_data_window::first_data_item_displayed)
4066 (tui_data_window::delete_data_content_windows): Update.
4067 (tui_data_window::refresh_window, tui_data_window::no_refresh):
4068 Remove.
4069 (tui_data_window::check_register_values): Update.
4070 (tui_data_item_window::rerender): Add parameters. Update.
4071 (tui_data_item_window::refresh_window): Remove.
4072 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
4073 virtual.
4074 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
4075 tui_gen_win_info.
4076 <refresh_window, max_height, min_height>: Remove.
4077 <rerender>: Add parameters.
4078 <x, y, visible>: New members.
4079 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
4080 <m_item_width>: New member.
4081
4082 2020-07-01 Tom Tromey <tom@tromey.com>
4083
4084 * tui/tui-regs.c (tui_data_window::show_register_group)
4085 (tui_data_window::check_register_values): Update.
4086 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
4087 from item_no.
4088
4089 2020-07-01 Tom Tromey <tom@tromey.com>
4090
4091 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
4092 useless "if".
4093
4094 2020-07-01 Tom Tromey <tom@tromey.com>
4095
4096 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
4097 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
4098
4099 2020-07-01 Tom Tromey <tom@tromey.com>
4100
4101 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
4102 * tui/tui-winsource.h (enum tui_line_or_address_kind)
4103 (struct tui_line_or_address): Move from tui-data.h.
4104 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
4105 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
4106 (tui_cmd_window, tui_source_window_base, tui_source_window)
4107 (tui_disasm_window): Don't declare.
4108 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
4109 to tui-winsource.h.
4110 (SINGLE_KEY): Move to tui-stack.c.
4111
4112 2020-07-01 Tom Tromey <tom@tromey.com>
4113
4114 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
4115 std::string.
4116 * tui/tui-regs.c (class tab_expansion_file): New.
4117 (tab_expansion_file::write): New method.
4118 (tui_register_format): Change return type. Use
4119 tab_expansion_file.
4120 (tui_get_register, tui_data_window::display_registers_from)
4121 (tui_data_item_window::rerender): Update.
4122 * tui/tui-io.h (tui_expand_tabs): Don't declare.
4123 * tui/tui-io.c (tui_expand_tabs): Remove.
4124
4125 2020-07-01 Tom Tromey <tom@tromey.com>
4126
4127 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
4128
4129 2020-07-01 Fangrui Song <maskray@google.com>
4130
4131 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
4132
4133 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4134
4135 * dwarf2/read.c (set_die_type): Removed conditions to restrict
4136 forms for DW_AT_associated and DW_AT_allocated attributes,
4137 which is already checked in function attr_to_dynamic_prop.
4138
4139 2020-06-30 Tom Tromey <tromey@adacore.com>
4140
4141 * dwarf2/read.c (quirk_rust_enum): Correctly call
4142 alloc_rust_variant for default-less enum.
4143
4144 2020-06-30 Tom Tromey <tromey@adacore.com>
4145
4146 PR build/26183:
4147 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
4148 gdb::to_string.
4149
4150 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
4151
4152 * gdbarch.sh (displaced_step_copy_insn): Update doc.
4153 * gdbarch.h: Re-generate.
4154
4155 2020-06-28 Tom Tromey <tom@tromey.com>
4156
4157 * command.h (cmd_types): Remove.
4158 (cmd_type): Don't declare.
4159 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
4160 typedef.
4161 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
4162 * cli/cli-decode.c (cmd_type): Remove.
4163
4164 2020-06-27 Pedro Alves <palves@redhat.com>
4165
4166 * fork-child.c (prefork_hook): Adjust.
4167 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
4168 Delete.
4169 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
4170 * inferior.c (inferior::set_tty, inferior::tty): New methods.
4171 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
4172 Remove declarations.
4173 (struct inferior) <set_tty, tty>: New methods.
4174 (struct inferior) <terminal>: Rename to ...
4175 (struct inferior) <m_terminal>: ... this and make private.
4176 * main.c (captured_main_1): Adjust.
4177 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
4178 (mi_cmd_inferior_tty_show): Adjust.
4179 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
4180 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
4181
4182 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
4183
4184 * configure.ac: Add --enable-libctf: handle --disable-static
4185 properly.
4186 * acinclude.m4: sinclude ../config/enable.m4.
4187 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
4188 (LIBCTF): Substitute in.
4189 (CTF_DEPS): New, likewise.
4190 (CLIBS): libctf needs symbols from libbfd: move earlier.
4191 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
4192 flags.
4193 * ctfread.c: Surround in ENABLE_LIBCTF.
4194 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
4195 * configure: Regenerate.
4196 * config.in: Likewise.
4197
4198 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
4199
4200 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
4201
4202 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
4203
4204 * inferior.h (struct inferior) <terminal>: Change type to
4205 gdb::unique_xmalloc_ptr<char>.
4206 * inferior.c (inferior::~inferior): Don't free inf->terminal.
4207 * infcmd.c (set_inferior_io_terminal): Don't free terminal
4208 field, adjust to unique pointer.
4209 (get_inferior_io_terminal): Adjust to unique pointer.
4210
4211 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4212
4213 * riscv-tdep.c (riscv_print_registers_info): Loop over all
4214 registers, not just the known core set of registers.
4215
4216 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4217
4218 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
4219 fflags, frm, and fcsr registers.
4220 (riscv_register_reggroup_p): Remove unknown CSRs from save and
4221 restore groups.
4222 (riscv_tdesc_unknown_reg): New function.
4223 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
4224 tdesc_use_registers.
4225 * riscv-tdep.h (struct gdbarch_tdep): Add
4226 unknown_csrs_first_regnum, unknown_csrs_count,
4227 duplicate_fflags_regnum, duplicate_frm_regnum, and
4228 duplicate_fcsr_regnum fields.
4229
4230 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4231
4232 * target-descriptions.c (tdesc_use_registers): Add new parameter a
4233 callback, use the callback (when not null) to help number unknown
4234 registers.
4235 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
4236 (tdesc_use_registers): Add extra parameter to declaration.
4237
4238 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4239
4240 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
4241 in the file.
4242 (class riscv_pending_register_alias): Likewise.
4243 (riscv_register_feature::register_info): Change 'required_p' field
4244 to 'required', and change its type. Add 'check' member function.
4245 (riscv_register_feature::register_info::check): Define new member
4246 function.
4247 (riscv_xreg_feature): Change initialisation of 'required' field.
4248 (riscv_freg_feature): Likewise.
4249 (riscv_virtual_feature): Likewise.
4250 (riscv_csr_feature): Likewise.
4251 (riscv_check_tdesc_feature): Take extra parameter, the csr
4252 tdesc_feature, rewrite the function to use the new
4253 riscv_register_feature::register_info::check function.
4254 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
4255
4256 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4257
4258 * features/Makefile: Remove all references to the deleted files
4259 below.
4260 * features/riscv/32bit-csr.c: Deleted.
4261 * features/riscv/32bit-csr.xml: Deleted.
4262 * features/riscv/64bit-csr.c: Deleted.
4263 * features/riscv/64bit-csr.xml: Deleted.
4264 * features/riscv/rebuild-csr-xml.sh: Deleted.
4265
4266 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4267
4268 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
4269 whitespace error for declaration of names member variable.
4270 (struct riscv_register_feature): Add new prefer_first_name member
4271 variable, and fix whitespace error in declaration of registers.
4272 (riscv_xreg_feature): Initialize prefer_first_name field.
4273 (riscv_freg_feature): Likewise.
4274 (riscv_virtual_feature): Likewise.
4275 (riscv_csr_feature): Likewise.
4276 (riscv_register_name): Expand on comments. Remove register name
4277 modifications for CSR and virtual registers.
4278
4279 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4280
4281 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
4282 errors.
4283
4284 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4285
4286 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
4287 riscv-opc.h.
4288 (class riscv_pending_register_alias): New class.
4289 (riscv_check_tdesc_feature): Take vector of pending aliases and
4290 populate it as appropriate.
4291 (riscv_setup_register_aliases): Delete.
4292 (riscv_gdbarch_init): Create vector of pending aliases and pass it
4293 to riscv_check_tdesc_feature in all cases. Use the vector to
4294 create the register aliases.
4295
4296 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4297
4298 * sol2-tdep.c (sol2_static_transform_name): Remove.
4299 (sol2_init_abi): Don't register it.
4300 * gdbarch.sh (static_transform_name): Remove.
4301 * gdbarch.c, gdbarch.h: Regenerate.
4302
4303 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
4304 gdbarch_static_transform_name.
4305 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
4306 * stabsread.c (define_symbol) <'X'>: Remove.
4307 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
4308 handling.
4309 <'V'>: Likewise.
4310 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
4311 <'S'>: Remove call to gdbarch_static_transform_name.
4312
4313 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4314
4315 * procfs.c (procfs_pre_trace): New function.
4316 (procfs_target::create_inferior): Pass it to fork_inferior.
4317
4318 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4319
4320 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
4321 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
4322 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
4323 sol2-tdep.o, sparc-sol2-tdep.o.
4324 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
4325 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
4326 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
4327 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
4328
4329 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4330
4331 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
4332 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
4333 Call sol2_init_abi.
4334 Remove calls to set_gdbarch_skip_solib_resolver,
4335 set_gdbarch_core_pid_to_str.
4336 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
4337 (i386_sol2_static_transform_name): Remove.
4338 (i386_sol2_init_abi): Call sol2_init_abi.
4339 Remove calls to set_gdbarch_sofun_address_maybe_missing,
4340 set_gdbarch_static_transform_name,
4341 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
4342 Use sol2_sigtramp_p.
4343 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
4344 (sol2_sigtramp_p): New function.
4345 (sol2_static_transform_name): New function.
4346 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
4347 (sol2_init_abi): New function.
4348 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
4349 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
4350 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
4351 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
4352 (sparc_sol2_static_transform_name): Remove.
4353 (sparc32_sol2_init_abi): Call sol2_init_abi.
4354 Remove calls to set_gdbarch_sofun_address_maybe_missing,
4355 set_gdbarch_static_transform_name,
4356 set_gdbarch_skip_solib_resolver,
4357 set_gdbarch_core_pid_to_str.
4358 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
4359 (sparc_sol2_static_transform_name): Remove
4360 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
4361 call sol2_sigtramp_p.
4362 (sparc64_sol2_init_abi): Call sol2_init_abi.
4363 Remove calls to set_gdbarch_sofun_address_maybe_missing,
4364 set_gdbarch_static_transform_name,
4365 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
4366
4367 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4368
4369 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
4370 * exec.c (validate_exec_file): If from_tty, set both
4371 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
4372 * symfile.c (symbol_file_add_with_addrs): if always_confirm
4373 and from_tty, unconditionally ask a confirmation.
4374
4375 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4376
4377 * target-descriptions.c (tdesc_architecture_name): Protect against
4378 NULL pointer dereference.
4379 (maint_print_xml_tdesc_cmd): New function.
4380 (_initialize_target_descriptions): Register new 'maint print
4381 xml-tdesc' command and give it the filename completer.
4382 * NEWS: Mention new 'maint print xml-tdesc' command.
4383
4384 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4385
4386 * target-descriptions.c (class tdesc_compatible_info): New class.
4387 (struct target_desc): Change type of compatible vector.
4388 (tdesc_compatible_p): Update for change in type of
4389 target_desc::compatible.
4390 (tdesc_compatible_info_list): New function.
4391 (tdesc_compatible_info_arch_name): New function.
4392 (tdesc_add_compatible): Update for change in type of
4393 target_desc::compatible.
4394 (print_c_tdesc::visit_pre): Likewise.
4395
4396 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4397
4398 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
4399 whitespace to underscore.
4400 (maint_print_c_tdesc_cmd): Use fake filename for target
4401 descriptions that came from the target.
4402 (_initialize_target_descriptions): Add filename command completion
4403 for 'maint print c-tdesc'.
4404
4405 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
4406
4407 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
4408 lines.
4409
4410 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
4411
4412 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
4413 lines.
4414 (dwarf2_find_location_expression): Likewise.
4415 (call_site_parameter_matches): Likewise.
4416 (dwarf2_compile_expr_to_ax): Likewise.
4417 (disassemble_dwarf_expression): Likewise.
4418 (loclist_describe_location): Likewise.
4419
4420 2020-06-23 Pedro Alves <palves@redhat.com>
4421
4422 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
4423 progspace-and-thread.h. Include scoped-mock-context.h instead.
4424 (register_to_value_test): Use scoped_mock_context.
4425 * regcache.c: Include "scoped-mock-context.h".
4426 (cooked_read_test): Don't error out if a target is already pushed.
4427 Use scoped_mock_context. Adjust.
4428 * scoped-mock-context.h: New file.
4429
4430 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4431
4432 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
4433 initializer.
4434 (ada_language::is_string_type_p): New member function.
4435 * c-lang.c (c_language_data): Delete la_is_string_type_p
4436 initializer.
4437 (cplus_language_data): Likewise.
4438 (asm_language_data): Likewise.
4439 (minimal_language_data): Likewise.
4440 * d-lang.c (d_language_data): Likewise.
4441 * f-lang.c (f_is_string_type_p): Delete function, implementation
4442 moved to f_language::is_string_type_p.
4443 (f_language_data): Delete la_is_string_type_p initializer.
4444 (f_language::is_string_type_p): New member function,
4445 implementation from f_is_string_type_p.
4446 * go-lang.c (go_is_string_type_p): Delete function, implementation
4447 moved to go_language::is_string_type_p.
4448 (go_language_data): Delete la_is_string_type_p initializer.
4449 (go_language::is_string_type_p): New member function,
4450 implementation from go_is_string_type_p.
4451 * language.c (language_defn::is_string_type_p): Define new member
4452 function.
4453 (default_is_string_type_p): Make static, add comment copied from
4454 header file.
4455 (unknown_language_data): Delete la_is_string_type_p initializer.
4456 (unknown_language::is_string_type_p): New member function.
4457 (auto_language_data): Delete la_is_string_type_p initializer.
4458 (auto_language::is_string_type_p): New member function.
4459 * language.h (language_data): Delete la_is_string_type_p field.
4460 (language_defn::is_string_type_p): Declare new function.
4461 (default_is_string_type_p): Delete desclaration, move comment to
4462 definition.
4463 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
4464 moved to m2_language::is_string_type_p.
4465 (m2_language_data): Delete la_is_string_type_p initializer.
4466 (m2_language::is_string_type_p): New member function,
4467 implementation from m2_is_string_type_p.
4468 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
4469 initializer.
4470 * opencl-lang.c (opencl_language_data): Likewise.
4471 * p-lang.c (pascal_is_string_type_p): Delete function,
4472 implementation moved to pascal_language::is_string_type_p.
4473 (pascal_language_data): Delete la_is_string_type_p initializer.
4474 (pascal_language::is_string_type_p): New member function,
4475 implementation from pascal_is_string_type_p.
4476 * rust-lang.c (rust_is_string_type_p): Delete function,
4477 implementation moved to rust_language::is_string_type_p.
4478 (rust_language_data): Delete la_is_string_type_p initializer.
4479 (rust_language::is_string_type_p): New member function,
4480 implementation from rust_is_string_type_p.
4481 * valprint.c (val_print_scalar_or_string_type_p): Update call to
4482 is_string_type_p.
4483
4484 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4485
4486 * ada-lang.c (ada_language_data): Delete la_print_typedef
4487 initializer.
4488 (ada_language::print_typedef): New member function.
4489 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
4490 (cplus_language_data): Likewise.
4491 (asm_language_data): Likewise.
4492 (minimal_language_data): Likewise.
4493 * d-lang.c (d_language_data): Likewise.
4494 * f-lang.c (f_language_data): Likewise.
4495 (f_language::print_typedef): New member function.
4496 * go-lang.c (go_language_data): Delete la_print_typedef
4497 initializer.
4498 * language.c (language_defn::print_typedef): Define member
4499 function.
4500 (unknown_language_data): Delete la_print_typedef initializer.
4501 (unknown_language::print_typedef): New member function.
4502 (auto_language_data): Delete la_print_typedef initializer.
4503 (auto_language::print_typedef): New member function.
4504 * language.h (language_data): Delete la_print_typedef field.
4505 (language_defn::print_typedef): Declare new member function.
4506 (LA_PRINT_TYPEDEF): Update call to print_typedef.
4507 (default_print_typedef): Delete declaration.
4508 * m2-lang.c (m2_language_data): Delete la_print_typedef
4509 initializer.
4510 (m2_language::print_typedef): New member function.
4511 * objc-lang.c (objc_language_data): Delete la_print_typedef
4512 initializer.
4513 * opencl-lang.c (opencl_language_data): Likewise.
4514 * p-lang.c (pascal_language_data): Likewise.
4515 (pascal_language::print_typedef): New member function.
4516 * rust-lang.c (rust_print_typedef): Delete function,
4517 implementation moved to rust_language::print_typedef.
4518 (rust_language): Delete la_print_typedef initializer.
4519 (rust_language::print_typedef): New member function,
4520 implementation from rust_print_typedef.
4521 * typeprint.c (default_print_typedef): Delete.
4522
4523 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4524
4525 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
4526 (ada_language::printstr): New member function.
4527 * c-lang.c (c_language_data): Delete la_printstr initializer.
4528 (cplus_language_data): Likewise.
4529 (asm_language_data): Likewise.
4530 (minimal_language_data): Likewise.
4531 * d-lang.c (d_language_data): Likewise.
4532 * f-lang.c (f_printstr): Rename to f_language::printstr.
4533 (f_language_data): Delete la_printstr initializer.
4534 (f_language::printstr): New member function, implementation from
4535 f_printstr.
4536 * go-lang.c (go_language_data): Delete la_printstr initializer.
4537 * language.c (language_defn::printstr): Define new member
4538 function.
4539 (unk_lang_printstr): Delete.
4540 (unknown_language_data): Delete la_printstr initializer.
4541 (unknown_language::printstr): New member function.
4542 (auto_language_data): Delete la_printstr initializer.
4543 (auto_language::printstr): New member function.
4544 * language.h (language_data): Delete la_printstr field.
4545 (language_defn::printstr): Declare new member function.
4546 (LA_PRINT_STRING): Update call to printstr.
4547 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
4548 (m2_language_data): Delete la_printstr initializer.
4549 (m2_language::printstr): New member function, implementation from
4550 m2_printstr.
4551 * objc-lang.c (objc_language_data): Delete la_printstr
4552 initializer.
4553 * opencl-lang.c (opencl_language_data): Likewise.
4554 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
4555 (pascal_language_data): Delete la_printstr initializer.
4556 (pascal_language::printstr): New member function, implementation
4557 from pascal_printstr.
4558 * p-lang.h (pascal_printstr): Delete declaration.
4559 * rust-lang.c (rust_printstr): Update header comment.
4560 (rust_language_data): Delete la_printstr initializer.
4561 (rust_language::printstr): New member function.
4562
4563 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4564
4565 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
4566 (ada_language::printchar): New member function.
4567 * c-lang.c (c_language_data): Delete la_printchar initializer.
4568 (cplus_language_data): Likewise.
4569 (asm_language_data): Likewise.
4570 (minimal_language_data): Likewise.
4571 * d-lang.c (d_language_data): Likewise.
4572 * f-lang.c (f_printchar): Rename to f_language::printchar.
4573 (f_language_data): Delete la_printchar initializer.
4574 (f_language::printchar): New member function, implementation from
4575 f_printchar.
4576 * go-lang.c (go_language_data): Delete la_printchar initializer.
4577 * language.c (unk_lang_printchar): Delete.
4578 (language_defn::printchar): Define new member function.
4579 (unknown_language_data): Delete la_printchar initializer.
4580 (unknown_language::printchar): New member function.
4581 (auto_language_data): Delete la_printchar initializer.
4582 (auto_language::printchar): New member function.
4583 * language.h (language_data): Delete la_printchar field.
4584 (language_defn::printchar): Declare new member function.
4585 (LA_PRINT_CHAR): Update call to printchar.
4586 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
4587 (m2_language::printchar): New member function.
4588 * objc-lang.c (objc_language_data): Delete la_printchar
4589 initializer.
4590 * opencl-lang.c (opencl_language_data): Likewise.
4591 * p-lang.c (pascal_language_data): Delete la_printchar
4592 initializer.
4593 (pascal_language::printchar): New member function.
4594 * rust-lang.c (rust_printchar): Rename to
4595 rust_language::printchar.
4596 (rust_language_data): Delete la_printchar initializer.
4597 (rust_language::printchar): New member function, implementation
4598 from rust_printchar.
4599
4600 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4601
4602 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
4603 (ada_language_data): Delete la_emitchar initializer.
4604 (ada_language::emitchar): New member function, implementation from
4605 emit_char.
4606 * c-lang.c (c_language_data): Delete la_emitchar initializer.
4607 (cplus_language_data): Likewise.
4608 (asm_language_data): Likewise.
4609 (minimal_language_data): Likewise.
4610 * d-lang.c (d_language_data): Likewise.
4611 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
4612 (f_language_data): Delete la_emitchar initializer.
4613 (f_language::emitchar): New member function, implementation from
4614 f_emit_char.
4615 * go-lang.c (go_language_data): Delete la_emitchar initializer.
4616 * language.c (unk_lang_emit_char): Delete.
4617 (language_defn::emitchar): New member function definition.
4618 (unknown_language_data): Delete la_emitchar initializer.
4619 (unknown_language::emitchar): New member function.
4620 (auto_language_data): Delete la_emitchar initializer.
4621 (auto_language::emitchar): New member function.
4622 * language.h (language_data): Delete la_emitchar field.
4623 (language_defn::emitchar): New member field declaration.
4624 (LA_EMIT_CHAR): Update call to emitchar.
4625 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
4626 (m2_language_data): Delete la_emitchar initializer.
4627 (m2_language::emitchar): New member function, implementation from
4628 m2_emit_char.
4629 * objc-lang.c (objc_language_data): Delete la_emitchar
4630 initializer.
4631 * opencl-lang.c (opencl_language_data): Likewise.
4632 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
4633 (pascal_language_data): Delete la_emitchar initializer.
4634 (pascal_language::emitchar): New member function, implementation
4635 from pascal_emit_char.
4636 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
4637 (rust_language_data): Delete la_emitchar initializer.
4638 (rust_language::emitchar): New member function, implementation
4639 from rust_emitchar.
4640
4641 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4642
4643 * ada-lang.c (resolve): Rename to ada_language::post_parser.
4644 (ada_language_data): Delete la_post_parser initializer.
4645 (ada_language::post_parser): New member function.
4646 * c-lang.c (c_language_data): Delete la_post_parser initializer.
4647 (cplus_language_data): Likewise.
4648 (asm_language_data): Likewise.
4649 (minimal_language_data): Likewise.
4650 * d-lang.c (d_language_data): Likewise.
4651 * f-lang.c (f_language_data): Likewise.
4652 * go-lang.c (go_language_data): Likewise.
4653 * language.c (unknown_language_data): Likewise.
4654 (auto_language_data): Likewise.
4655 * language.h (language_data): Delete la_post_parser field.
4656 (language_defn::post_parser): New member function.
4657 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
4658 * objc-lang.c (objc_language_data): Likewise.
4659 * opencl-lang.c (opencl_language_data): Likewise.
4660 * p-lang.c (pascal_language_data): Likewise.
4661 * parse.c (parse_exp_in_context): Update call to post_parser.
4662 (null_post_parser): Delete definition.
4663 * parser-defs.h (null_post_parser): Delete declaration.
4664 * rust-lang.c (rust_language_data): Delete la_post_parser
4665 initializer.
4666
4667 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4668
4669 * ada-lang.c (parse): Rename to ada_language::parser.
4670 (ada_language_data): Delete la_parser initializer.
4671 (ada_language::parser): New member function, implementation from
4672 parse.
4673 * c-lang.c (c_language_data): Delete la_parser initializer.
4674 (cplus_language_data): Likewise.
4675 (asm_language_data): Likewise.
4676 (minimal_language_data): Likewise.
4677 * d-lang.c (d_language_data): Likewise.
4678 (d_language::parser): New member function.
4679 * f-lang.c (f_language_data): Delete la_parser initializer.
4680 (f_language::parser): New member function.
4681 * go-lang.c (go_language_data): Delete la_parser initializer.
4682 (go_language::parser): New member function.
4683 * language.c (unk_lang_parser): Delete.
4684 (language_defn::parser): Define new member function.
4685 (unknown_language_data): Delete la_parser initializer.
4686 (unknown_language::parser): New member function.
4687 (auto_language_data): Delete la_parser initializer.
4688 (auto_language::parser): New member function.
4689 * language.h (language_data): Delete la_parser field.
4690 (language_defn::parser): Declare new member function.
4691 * m2-lang.c (m2_language_data): Delete la_parser initializer.
4692 (m2_language::parser): New member function.
4693 * objc-lang.c (objc_language_data): Delete la_parser initializer.
4694 * opencl-lang.c (opencl_language_data): Likewise.
4695 * p-lang.c (pascal_language_data): Likewise.
4696 (pascal_language::parser): New member function.
4697 * parse.c (parse_exp_in_context): Update call to parser.
4698 * rust-lang.c (rust_language_data): Delete la_parser initializer.
4699 (rust_language::parser): New member function.
4700
4701 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4702
4703 * top.c (print_gdb_configuration): Print --with-python-libdir
4704 configuration value.
4705
4706 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4707
4708 * NEWS: Mention change to the alias command.
4709
4710 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4711
4712 * cli/cli-cmds.c (lookup_cmd_for_default_args)
4713 (alias_command_completer)
4714 (make_alias_options_def_group): New functions.
4715 (alias_opts, alias_option_defs): New struct and array.
4716 (alias_usage_error): Update usage.
4717 (alias_command): Handles optional DEFAULT-ARGS... arguments.
4718 Use option framework.
4719 (_initialize_cli_cmds): Update alias command help.
4720 Update aliases command help.
4721 (show_user):
4722 Add NULL for new default_args lookup_cmd argument.
4723 (valid_command_p): Rename to validate_aliased_command.
4724 Add NULL for new default_args lookup_cmd argument. Verify that the
4725 aliased_command has no default args.
4726 * cli/cli-decode.c (help_cmd): Show aliases definitions.
4727 (lookup_cmd_1, lookup_cmd): New argument default_args.
4728 (add_alias_cmd):
4729 Add NULL for new default_args lookup_cmd argument.
4730 (print_help_for_command): Show default args under the layout
4731 alias some_alias = some_aliased_cmd some_alias_default_arg.
4732 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
4733 xfree default_args in destructor.
4734 * cli/cli-script.c (process_next_line, do_define_command):
4735 Add NULL for new default_args lookup_cmd argument.
4736 * command.h: Declare new default_args argument in lookup_cmd
4737 and lookup_cmd_1.
4738 * completer.c (complete_line_internal_1):
4739 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4740 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
4741 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
4742 Likewise.
4743 * infcmd.c (_initialize_infcmd): Likewise.
4744 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
4745 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
4746 * python/py-param.c (add_setshow_generic): Likewise.
4747 * remote.c (_initialize_remote): Likewise.
4748 * top.c (execute_command): Prepend default_args if command has some.
4749 (set_verbose):
4750 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4751 * tracepoint.c (validate_actionline, encode_actions_1):
4752 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4753
4754 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4755
4756 * jit.c (jit_read_descriptor): Use bool as the return type.
4757 (jit_breakpoint_re_set_internal): Use bool as the return type.
4758 Invert the return value logic; return true if the jit breakpoint
4759 has been successfully initialized.
4760 (jit_inferior_init): Update the call to
4761 jit_breakpoint_re_set_internal.
4762
4763 2020-06-22 Pedro Alves <palves@redhat.com>
4764
4765 PR gdb/25939
4766 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
4767 Use the current inferior instead. Don't return
4768 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
4769 wait again.
4770 * sol-thread.c (sol_thread_target::wait): Don't reference
4771 inferior_ptid.
4772 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
4773 (sol_update_thread_list_callback): Use the current inferior's pid
4774 instead of inferior_ptid.
4775
4776 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4777
4778 * procfs.c: Cleanup many comments.
4779
4780 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
4781 (AFTER_WATCHFLAG): Replace by value.
4782
4783 (MAIN_PROC_NAME_FORMAT): Inline ...
4784 (create_procinfo): ... here.
4785
4786 (procfs_debug_inferior): Remove SYS_exec handling.
4787 (syscall_is_exec): Likewise.
4788 (procfs_set_exec_trap): Likewise.
4789
4790 (syscall_is_lwp_exit): Inline in callers.
4791 (syscall_is_exit): Likewise.
4792 (syscall_is_exec): Likewise.
4793 (syscall_is_lwp_create): Likewise.
4794
4795 (invalidate_cache): Remove #if 0 code.
4796
4797 (make_signal_thread_runnable): Remove.
4798 (procfs_target::resume): Remove #if 0 code.
4799
4800 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4801
4802 PR gdb/25939
4803 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
4804 call ...
4805 (procfs_target::create_inferior): ... here.
4806
4807 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4808
4809 * exec.c (validate_exec_file): Ensure the build-id is up to
4810 date by calling reopen_exec_file (that checks file timestamp
4811 to decide to re-read the file).
4812
4813 2020-06-18 Pedro Alves <palves@redhat.com>
4814
4815 PR gdb/25412
4816 * gdbthread.h (delete_thread, delete_thread_silent)
4817 (find_thread_ptid): Update comments.
4818 * thread.c (current_thread_): New global.
4819 (is_current_thread): Move higher, and reimplement.
4820 (inferior_thread): Reimplement.
4821 (set_thread_exited): Use bool. Add assertions.
4822 (add_thread_silent): Simplify thread-reuse handling by always
4823 calling delete_thread.
4824 (delete_thread): Remove intro comment.
4825 (find_thread_ptid): Skip exited threads.
4826 (switch_to_thread_no_regs): Write to current_thread_.
4827 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
4828 INFERIOR_PTID. Clear current_thread_.
4829
4830 2020-06-18 Pedro Alves <palves@redhat.com>
4831
4832 * aix-thread.c (pd_update): Use switch_to_thread.
4833
4834 2020-06-18 Pedro Alves <palves@redhat.com>
4835
4836 * ravenscar-thread.c (ravenscar_thread_target): Update.
4837 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
4838 (ravenscar_thread_target::add_active_thread): ... this. Don't
4839 set m_base_ptid here. Update to avoid referencing inferior_ptid.
4840 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
4841
4842 2020-06-18 Pedro Alves <palves@redhat.com>
4843
4844 * nat/windows-nat.c (current_windows_thread): Remove.
4845 * nat/windows-nat.h (current_windows_thread): Remove.
4846 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
4847 Adjust.
4848 (display_selectors): Adjust to fetch the current
4849 windows_thread_info based on inferior_ptid.
4850 (fake_create_process): No longer write to current_windows_thread.
4851 (windows_nat_target::get_windows_debug_event):
4852 Don't set inferior_ptid or current_windows_thread.
4853 (windows_nat_target::wait): Adjust to not rely on
4854 current_windows_thread.
4855 (do_initial_windows_stuff): Now a method of windows_nat_target.
4856 Switch to the last_ptid thread.
4857 (windows_nat_target::attach): Adjust.
4858 (windows_nat_target::detach): Use switch_to_no_thread instead of
4859 writing to inferior_ptid directly.
4860 (windows_nat_target::create_inferior): Adjust.
4861
4862 2020-06-18 Pedro Alves <palves@redhat.com>
4863
4864 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
4865
4866 2020-06-18 Pedro Alves <palves@redhat.com>
4867
4868 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
4869 after creating it, instead of writing to inferior_ptid. Don't
4870 write to inferior_ptid.
4871
4872 2020-06-18 Pedro Alves <palves@redhat.com>
4873
4874 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
4875
4876 2020-06-18 Pedro Alves <palves@redhat.com>
4877
4878 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
4879 it, instead of writing to inferior_ptid.
4880
4881 2020-06-18 Pedro Alves <palves@redhat.com>
4882
4883 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
4884 to inferior_ptid.
4885
4886 2020-06-18 Pedro Alves <palves@redhat.com>
4887
4888 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
4889 instead of writing to inferior_ptid directly.
4890
4891 2020-06-18 Pedro Alves <palves@redhat.com>
4892
4893 * corelow.c (core_target::close): Use switch_to_no_thread instead
4894 of writing to inferior_ptid directly.
4895 (add_to_thread_list, core_target_open): Use switch_to_thread
4896 instead of writing to inferior_ptid directly.
4897
4898 2020-06-18 Pedro Alves <palves@redhat.com>
4899
4900 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
4901 inferior_ptid.
4902 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
4903 inferior_ptid.
4904 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
4905 inferior_ptid directly.
4906 (darwin_nat_target::init_thread_list): Switch to thread, instead
4907 of writing to inferior_ptid.
4908 (darwin_nat_target::attach): Don't write to inferior_ptid.
4909 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
4910
4911 2020-06-18 Pedro Alves <palves@redhat.com>
4912
4913 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
4914 thread.
4915 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
4916 Instead use switch_to_thread.
4917 (gnu_nat_target::detach): Use switch_to_no_thread
4918 instead of writing to inferior_ptid directly. Used passed-in
4919 inferior instead of looking up the inferior by pid.
4920
4921 2020-06-18 Pedro Alves <palves@redhat.com>
4922
4923 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
4924 inferior_ptid.
4925
4926 2020-06-18 Pedro Alves <palves@redhat.com>
4927
4928 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
4929 inferior_ptid.
4930 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
4931 thread.
4932 (nto_procfs_target::detach): Avoid referencing
4933 inferior_ptid. Use switch_to_no_thread instead of writing to
4934 inferior_ptid directly.
4935 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
4936 instead of writing to inferior_ptid directly.
4937 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
4938 to thread.
4939
4940 2020-06-18 Pedro Alves <palves@redhat.com>
4941
4942 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
4943 after creating it, instead of writing to inferior_ptid.
4944 (gdbsim_target_open): Use switch_to_no_thread instead of writing
4945 to inferior_ptid directly.
4946 (gdbsim_target::wait): Don't write to inferior_ptid.
4947
4948 2020-06-18 Pedro Alves <palves@redhat.com>
4949
4950 * remote.c (remote_target::remote_notice_new_inferior): Use
4951 switch_to_thread instead of writing to inferior_ptid directly.
4952 (remote_target::add_current_inferior_and_thread): Use
4953 switch_to_no_thread instead of writing to inferior_ptid directly.
4954 (extended_remote_target::attach): Use switch_to_inferior_no_thread
4955 and switch_to_thread instead of using set_current_inferior or
4956 writing to inferior_ptid directly.
4957
4958 2020-06-18 Pedro Alves <palves@redhat.com>
4959
4960 * tracectf.c (ctf_target_open): Switch to added thread instead of
4961 writing to inferior_ptid directly.
4962 (ctf_target::close): Use switch_to_no_thread instead of writing to
4963 inferior_ptid directly.
4964
4965 2020-06-18 Pedro Alves <palves@redhat.com>
4966
4967 * tracefile-tfile.c (tfile_target_open): Don't write to
4968 inferior_ptid directly, instead switch to added thread.
4969 (tfile_target::close): Use switch_to_no_thread instead of writing
4970 to inferior_ptid directly.
4971
4972 2020-06-18 Pedro Alves <palves@redhat.com>
4973
4974 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
4975 (procfs_target::detach): Use switch_to_no_thread
4976 instead of writing to inferior_ptid directly.
4977 (do_attach): Change return type to void. Switch to the added
4978 thread.
4979 (procfs_target::create_inferior): Switch to the added thread.
4980 (procfs_do_thread_registers): Don't write to inferior_ptid.
4981
4982 2020-06-18 Pedro Alves <palves@redhat.com>
4983
4984 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
4985 of writing to inferior_ptid.
4986 (scoped_restore_exited_inferior): Delete.
4987 (handle_vfork_child_exec_or_exit): Simplify using
4988 scoped_restore_current_pspace_and_thread. Use switch_to_thread
4989 instead of writing to inferior_ptid.
4990 (THREAD_STOPPED_BY): Delete.
4991 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
4992 (thread_stopped_by_hw_breakpoint): Delete.
4993 (save_waitstatus): Use
4994 scoped_restore_current_thread+switch_to_thread, and call
4995 target_stopped_by_watchpoint instead of
4996 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
4997 instead of thread_stopped_by_sw_breakpoint, and
4998 target_stopped_by_hw_breakpoint instead of
4999 thread_stopped_by_hw_breakpoint.
5000 (handle_inferior_event)
5001 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
5002 inferior_ptid directly, nor
5003 set_current_inferior/set_current_program_space. Use
5004 switch_to_thread / switch_to_inferior_no_thread instead.
5005
5006 2020-06-18 Pedro Alves <palves@redhat.com>
5007
5008 * target.c (generic_mourn_inferior): Use switch_to_no_thread
5009 instead of writing to inferior_ptid.
5010
5011 2020-06-18 Pedro Alves <palves@redhat.com>
5012
5013 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
5014 added thread.
5015 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
5016 to the added thread.
5017 (inf_ptrace_target::detach_success): Use switch_to_no_thread
5018 instead of writing to inferior_ptid.
5019
5020 2020-06-18 Pedro Alves <palves@redhat.com>
5021
5022 * gdbarch-selftests.c: Include "progspace-and-thread.h".
5023 (register_to_value_test): Mock a program_space too. Heap-allocate
5024 the address space. Don't write to inferior_ptid. Use
5025 switch_to_thread instead.
5026
5027 2020-06-18 Pedro Alves <palves@redhat.com>
5028
5029 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
5030 Delete.
5031 (find_signalled_thread()): New, factored out from
5032 linux_make_corefile_notes and adjusted to handle exited threads.
5033 (linux_make_corefile_notes): Adjust to use the new
5034 find_signalled_thread.
5035
5036 2020-06-18 Pedro Alves <palves@redhat.com>
5037
5038 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
5039 of saving/restoring inferior_ptid.
5040
5041 2020-06-17 Tom Tromey <tom@tromey.com>
5042
5043 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
5044 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
5045 declare.
5046 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
5047
5048 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
5049
5050 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
5051 of partial symtabs.
5052
5053 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
5054
5055 * regformats/reg-arm.dat: Remove.
5056 * regformats/reg-bfin.dat: Remove.
5057 * regformats/reg-cris.dat: Remove.
5058 * regformats/reg-crisv32.dat: Remove.
5059 * regformats/reg-m32r.dat: Remove.
5060 * regformats/reg-tilegx.dat: Remove.
5061 * regformats/reg-tilegx32.dat: Remove.
5062
5063 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
5064
5065 * features/Makefile (WHICH): Remove arm files.
5066 * regformats/arm/arm-with-iwmmxt.dat: Remove.
5067 * regformats/arm/arm-with-neon.dat: Remove.
5068 * regformats/arm/arm-with-vfpv2.dat: Remove.
5069 * regformats/arm/arm-with-vfpv3.dat: Remove.
5070
5071 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
5072
5073 * features/Makefile (XMLTOC): Remove rx.xml.
5074
5075 2020-06-17 Pedro Alves <palves@redhat.com>
5076
5077 * gdbthread.h (thread_control_state) <trap_expected> Update
5078 comments.
5079
5080 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5081
5082 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
5083 ada_language::lookup_symbol_nonlocal.
5084 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
5085 (ada_language::lookup_symbol_nonlocal): New member function,
5086 implementation from ada_lookup_symbol_nonlocal.
5087 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
5088 initializer.
5089 (cplus_language_data): Delete la_lookup_symbol_nonlocal
5090 initializer.
5091 (cplus_language::lookup_symbol_nonlocal): New member function.
5092 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
5093 (minimal_language_data) Likewise.
5094 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
5095 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
5096 initializer.
5097 (d_language::lookup_symbol_nonlocal): New member function.
5098 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
5099 initializer.
5100 (f_language::lookup_symbol_nonlocal): New member function.
5101 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
5102 initializer.
5103 * language.c (unknown_language_data): Likewise.
5104 (auto_language_data): Likewise.
5105 * language.h (language_data): Delete la_lookup_symbol_nonlocal
5106 field.
5107 (language_defn::lookup_symbol_nonlocal): New member function.
5108 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
5109 initializer.
5110 * objc-lang.c (objc_language_data): Likewise.
5111 * opencl-lang.c (opencl_language_data): Likewise.
5112 * p-lang.c (pascal_language_data): Likewise.
5113 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
5114 rust_language::lookup_symbol_nonlocal.
5115 (rust_language_data): Delete la_lookup_symbol_nonlocal
5116 initializer.
5117 (rust_language::lookup_symbol_nonlocal): New member function,
5118 implementation from rust_lookup_symbol_nonlocal.
5119 * symtab.c (lookup_symbol_aux): Update call to
5120 lookup_symbol_nonlocal.
5121 (basic_lookup_symbol_nonlocal): Rename to...
5122 (language_defn::lookup_symbol_nonlocal): ...this, and update
5123 header comment. Remove language_defn parameter, and replace with
5124 uses of `this'.
5125 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
5126
5127 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5128
5129 * ada-lang.c (ada_language_data): Delete la_value_print_inner
5130 initializer.
5131 (ada_language::value_print_inner): New member function.
5132 * c-lang.c (c_language_data): Delete la_value_print_inner
5133 initializer.
5134 (cplus_language_data): Likewise.
5135 (asm_language_data): Likewise.
5136 (minimal_language_data): Likewise.
5137 * d-lang.c (d_language_data): Likewise.
5138 (d_language::value_print_inner): New member function.
5139 * f-lang.c (f_language_data): Delete la_value_print_inner
5140 initializer.
5141 (f_language::value_print_inner): New member function.
5142 * f-lang.h (f_value_print_innner): Rename to...
5143 (f_value_print_inner): ...this (note spelling of 'inner').
5144 * f-valprint.c (f_value_print_innner): Rename to...
5145 (f_value_print_inner): ...this (note spelling of 'inner').
5146 * go-lang.c (go_language_data): Delete la_value_print_inner
5147 initializer.
5148 (go_language::value_print_inner): New member function.
5149 * language.c (language_defn::value_print_inner): Define new member
5150 function.
5151 (unk_lang_value_print_inner): Delete.
5152 (unknown_language_data): Delete la_value_print_inner initializer.
5153 (unknown_language::value_print_inner): New member function.
5154 (auto_language_data): Delete la_value_print_inner initializer.
5155 (auto_language::value_print_inner): New member function.
5156 * language.h (language_data): Delete la_value_print_inner field.
5157 (language_defn::value_print_inner): Delcare new member function.
5158 * m2-lang.c (m2_language_data): Delete la_value_print_inner
5159 initializer.
5160 (m2_language::value_print_inner): New member function.
5161 * objc-lang.c (objc_language_data): Delete la_value_print_inner
5162 initializer.
5163 * opencl-lang.c (opencl_language_data): Likewise.
5164 * p-lang.c (pascal_language_data): Likewise.
5165 (pascal_language::value_print_inner): New member function.
5166 * rust-lang.c (rust_language_data): Delete la_value_print_inner
5167 initializer.
5168 (rust_language::value_print_inner): New member function.
5169 * valprint.c (do_val_print): Update call to value_print_inner.
5170
5171 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5172
5173 * ada-lang.c (ada_language_data): Delete la_value_print
5174 initializer.
5175 (ada_language::value_print): New member function.
5176 * c-lang.c (c_language_data): Delete la_value_print initializer.
5177 (cplus_language_data): Likewise.
5178 (asm_language_data): Likewise.
5179 (minimal_language_data): Likewise.
5180 * d-lang.c (d_language_data): Likewise.
5181 * f-lang.c (f_language_data): Likewise.
5182 * go-lang.c (go_language_data): Likewise.
5183 * language.c (unk_lang_value_print): Delete.
5184 (language_defn::value_print): Define new member function.
5185 (unknown_language_data): Delete la_value_print initializer.
5186 (unknown_language::value_print): New member function.
5187 (auto_language_data): Delete la_value_print initializer.
5188 (auto_language::value_print): New member function.
5189 * language.h (language_data): Delete la_value_print field.
5190 (language_defn::value_print): Declare new member function.
5191 (LA_VALUE_PRINT): Update call to value_print.
5192 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
5193 * objc-lang.c (objc_language_data): Likewise.
5194 * opencl-lang.c (opencl_language_data): Likewise.
5195 * p-lang.c (pascal_language_data): Likewise.
5196 (pascal_language::value_print): New member function.
5197 * rust-lang.c (rust_language_data): Delete la_value_print
5198 initializer.
5199
5200 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5201
5202 * ada-lang.c (ada_watch_location_expression): Rename to
5203 ada_language::watch_location_expression.
5204 (ada_language_data): Delete la_watch_location_expression
5205 initializer.
5206 (ada_language::watch_location_expression): New member function,
5207 implementation from ada_watch_location_expression.
5208 * breakpoint.c (watch_command_1): Update call to
5209 watch_location_expression.
5210 * c-lang.c (c_watch_location_expression): Rename to
5211 language_defn::watch_location_expression.
5212 (c_language_data): Delete la_watch_location_expression
5213 initializer.
5214 (cplus_language_data): Likewise.
5215 (asm_language_data): Likewise.
5216 (minimal_language_data): Likewise.
5217 * c-lang.h (c_watch_location_expression): Delete declaration.
5218 * d-lang.c (d_language_data): Delete la_watch_location_expression
5219 initializer.
5220 * f-lang.c (f_language_data): Likewise.
5221 * go-lang.c (go_language_data): Likewise.
5222 * language.c (language_defn::watch_location_expression): Member
5223 function implementation from c_watch_location_expression.
5224 (unknown_language_data): Delete la_watch_location_expression
5225 initializer.
5226 (auto_language_data): Likewise.
5227 * language.h (language_data): Delete la_watch_location_expression
5228 field.
5229 (language_defn::watch_location_expression): Declare new member
5230 function.
5231 * m2-lang.c (m2_language_data): Delete
5232 la_watch_location_expression initializer.
5233 * objc-lang.c (objc_language_data): Likewise.
5234 * opencl-lang.c (opencl_language_data): Likewise.
5235 * p-lang.c (pascal_language_data): Likewise.
5236 * rust-lang.c (rust_watch_location_expression): Rename to
5237 rust_language::watch_location_expression.
5238 (rust_language_data): Delete la_watch_location_expression
5239 initializer.
5240 (rust_language::watch_location_expression): New member function,
5241 implementation from rust_watch_location_expression.
5242
5243 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5244
5245 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
5246 ada_language::collect_symbol_completion_matches.
5247 (ada_language_data): Delete la_collect_symbol_completion_matches
5248 initializer.
5249 (ada_language::collect_symbol_completion_matches): New member
5250 function, implementation from
5251 ada_collect_symbol_completion_matches.
5252 * c-lang.c (c_language_data): Delete
5253 la_collect_symbol_completion_matches initializer.
5254 (cplus_language_data): Likewise.
5255 (asm_language_data): Likewise.
5256 (minimal_language_data): Likewise.
5257 * d-lang.c (d_language_data): Likewise.
5258 * f-lang.c (f_collect_symbol_completion_matches): Rename to
5259 f_language::collect_symbol_completion_matches.
5260 (f_language_data): Delete la_collect_symbol_completion_matches
5261 initializer.
5262 (f_language::collect_symbol_completion_matches) New member
5263 function, implementation from f_collect_symbol_completion_matches.
5264 * go-lang.c (go_language_data): Delete
5265 la_collect_symbol_completion_matches initializer.
5266 * language.c (unknown_language_data): Likewise.
5267 (auto_language_data): Likewise.
5268 * language.h (language_data): Delete
5269 la_collect_symbol_completion_matches field.
5270 (language_defn::collect_symbol_completion_matches): New member
5271 function.
5272 * m2-lang.c (m2_language_data): Delete
5273 la_collect_symbol_completion_matches initializer.
5274 * objc-lang.c (objc_language_data): Likewise.
5275 * opencl-lang.c (opencl_language_data): Likewise.
5276 * p-lang.c (pascal_language_data): Likewise.
5277 * rust-lang.c (rust_language_data): Likewise.
5278 * symtab.c (default_collect_symbol_completion_matches): Delete.
5279 (collect_symbol_completion_matches): Update call to
5280 collect_symbol_completion_matches.
5281 (collect_symbol_completion_matches_type): Likewise.
5282 * symtab.h (default_collect_symbol_completion_matches): Delete
5283 declaration.
5284
5285 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5286
5287 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
5288 (ada_language_data): Delete la_word_break_characters initializer.
5289 (ada_language::word_break_characters): New member function.
5290 * c-lang.c (c_language_data): Delete la_word_break_characters
5291 initializer.
5292 (cplus_language_data): Likewise.
5293 (asm_language_data): Likewise.
5294 (minimal_language_data): Likewise.
5295 * completer.c: Update global comment.
5296 (advance_to_expression_complete_word_point): Update call to
5297 word_break_characters.
5298 (complete_files_symbols): Likewise.
5299 (complete_line_internal_1): Likewise.
5300 (default_completer_handle_brkchars): Likewise.
5301 (skip_quoted_chars): Likewise.
5302 * d-lang.c (d_language_data): Delete la_word_break_characters
5303 initializer.
5304 * f-lang.c (f_word_break_characters): Delete.
5305 (f_language_data): Delete la_word_break_characters initializer.
5306 (f_language::word_break_characters): New member function.
5307 * go-lang.c (go_language_data): Delete la_word_break_characters
5308 initializer.
5309 * language.c (unknown_language_data): Likewise.
5310 (auto_language_data): Likewise.
5311 * language.h (default_word_break_characters): Move declaration to
5312 earlier in the file.
5313 (language_data): Delete la_word_break_characters field.
5314 (language_defn::word_break_characters): New member function.
5315 * m2-lang.c (m2_language_data): Delete la_word_break_characters
5316 initializer.
5317 * objc-lang.c (objc_language_data): Likewise.
5318 * opencl-lang.c (opencl_language_data): Likewise.
5319 * p-lang.c (pascal_language_data): Likewise.
5320 * rust-lang.c (rust_language_data): Likewise.
5321
5322 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5323
5324 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
5325 (ada_language_data): Delete la_get_symbol_name_matcher
5326 initializer.
5327 (language_defn::get_symbol_name_matcher_inner): New member
5328 function.
5329 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
5330 initializer.
5331 (cplus_language_data): Likewise.
5332 (cplus_language::get_symbol_name_matcher_inner): New member
5333 function.
5334 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
5335 (minimal_language_data): Likewise.
5336 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
5337 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
5338 initializer.
5339 * dictionary.c (iter_match_first_hashed): Update call to
5340 get_symbol_name_matcher.
5341 (iter_match_next_hashed): Likewise.
5342 (iter_match_next_linear): Likewise.
5343 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
5344 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
5345 initializer.
5346 (f_language::get_symbol_name_matcher_inner): New member function.
5347 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
5348 initializer.
5349 * language.c (default_symbol_name_matcher): Update header comment,
5350 make static.
5351 (language_defn::get_symbol_name_matcher): New definition.
5352 (language_defn::get_symbol_name_matcher_inner): Likewise.
5353 (get_symbol_name_matcher): Delete.
5354 (unknown_language_data): Delete la_get_symbol_name_matcher
5355 initializer.
5356 (auto_language_data): Likewise.
5357 * language.h (language_data): Delete la_get_symbol_name_matcher
5358 field.
5359 (language_defn::get_symbol_name_matcher): New member function.
5360 (language_defn::get_symbol_name_matcher_inner): Likewise.
5361 (default_symbol_name_matcher): Delete declaration.
5362 * linespec.c (find_methods): Update call to
5363 get_symbol_name_matcher.
5364 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
5365 initializer.
5366 * minsyms.c (lookup_minimal_symbol): Update call to
5367 get_symbol_name_matcher.
5368 (iterate_over_minimal_symbols): Likewise.
5369 * objc-lang.c (objc_language_data): Delete
5370 la_get_symbol_name_matcher initializer.
5371 * opencl-lang.c (opencl_language_data): Likewise.
5372 * p-lang.c (pascal_language_data): Likewise.
5373 * psymtab.c (psymbol_name_matches): Update call to
5374 get_symbol_name_matcher.
5375 * rust-lang.c (rust_language_data): Delete
5376 la_get_symbol_name_matcher initializer.
5377 * symtab.c (symbol_matches_search_name): Update call to
5378 get_symbol_name_matcher.
5379 (compare_symbol_name): Likewise.
5380
5381 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5382
5383 * ada-lang.c (ada_language_data): Delete la_compute_program
5384 initializer.
5385 * c-lang.c (c_language_data): Likewise.
5386 (c_language::compute_program): New member function.
5387 (cplus_language_data): Delete la_compute_program initializer.
5388 (cplus_language::compute_program): New member function.
5389 (asm_language_data): Delete la_compute_program initializer.
5390 (minimal_language_data): Likewise.
5391 * c-lang.h (c_compute_program): Update comment.
5392 (cplus_compute_program): Likewise.
5393 * compile/compile-c-support.c (c_compute_program): Likewise.
5394 (cplus_compute_program): Likewise.
5395 * compile/compile.c (compile_to_object): Update call to
5396 la_compute_program.
5397 * d-lang.c (d_language_data): Delete la_compute_program
5398 initializer.
5399 * f-lang.c (f_language_data): Likewise.
5400 * go-lang.c (go_language_data): Likewise.
5401 * language.c (unknown_language_data): Likewise.
5402 (auto_language_data): Likewise.
5403 * language.h (language_data): Delete la_compute_program field.
5404 (language_defn::compute_program): New member function.
5405 * m2-lang.c (m2_language_data): Delete la_compute_program
5406 initializer.
5407 * objc-lang.c (objc_language_data): Likewise.
5408 * opencl-lang.c (opencl_language_data): Likewise.
5409 * p-lang.c (pascal_language_data): Likewise.
5410 * rust-lang.c (rust_language_data): Likewise.
5411
5412 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5413
5414 * ada-lang.c (ada_language_data) Delete
5415 la_class_name_from_physname initializer.
5416 * c-lang.c (c_language_data): Likewise.
5417 (cplus_language_data): Likewise.
5418 (cplus_language::class_name_from_physname): New member function.
5419 (asm_language_data): Delete la_class_name_from_physname
5420 initializer.
5421 (minimal_language_data): Likewise.
5422 * d-lang.c (d_language_data): Likewise.
5423 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
5424 method on language_defn class.
5425 (guess_full_die_structure_name): Likewise.
5426 * f-lang.c (f_language_data): Delete la_class_name_from_physname
5427 initializer.
5428 * go-lang.c (go_language_data): Likewise.
5429 * language.c (language_class_name_from_physname): Delete.
5430 (unk_lang_class_name): Delete.
5431 (unknown_language_data): Delete la_class_name_from_physname
5432 initializer.
5433 (auto_language_data): Likewise.
5434 * language.h (language_data): Delete la_class_name_from_physname
5435 field.
5436 (language_defn::class_name_from_physname): New function.
5437 (language_class_name_from_physname): Delete declaration.
5438 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
5439 initializer.
5440 * objc-lang.c (objc_language_data): Likewise.
5441 * opencl-lang.c (opencl_language_data): Likewise.
5442 * p-lang.c (pascal_language_data): Likewise.
5443 * rust-lang.c (rust_language_data): Likewise.
5444
5445 2020-06-16 Tom Tromey <tom@tromey.com>
5446
5447 * tui/tui-data.h (STATUS_NAME): New macro.
5448 * tui/tui-layout.c (tui_remove_some_windows)
5449 (initialize_known_windows, tui_register_window)
5450 (tui_layout_split::remove_windows, initialize_layouts)
5451 (tui_new_layout_command): Don't use hard-coded window names.
5452
5453 2020-06-16 Tom Tromey <tom@tromey.com>
5454
5455 PR tui/25348:
5456 * tui/tui.c (tui_ensure_readline_initialized): Rename from
5457 tui_initialize_readline. Only run once. Call rl_initialize.
5458 * tui/tui.h (tui_ensure_readline_initialized): Rename from
5459 tui_initialize_readline.
5460 * tui/tui-io.c (tui_setup_io): Call
5461 tui_ensure_readline_initialized.
5462 * tui/tui-interp.c (tui_interp::init): Update.
5463
5464 2020-06-16 Tom Tromey <tom@tromey.com>
5465
5466 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
5467 Also preserve the status window.
5468
5469 2020-06-16 Tom Tromey <tom@tromey.com>
5470
5471 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
5472 where m_window==nullptr.
5473
5474 2020-06-15 Tom Tromey <tromey@adacore.com>
5475
5476 * windows-nat.c (windows_nat::handle_output_debug_string):
5477 Update.
5478 (windows_nat::handle_ms_vc_exception): Update.
5479 * target.h (target_read_string): Change API.
5480 * target.c (target_read_string): Change API.
5481 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
5482 Update.
5483 * solib-frv.c (frv_current_sos): Update.
5484 * solib-dsbt.c (dsbt_current_sos): Update.
5485 * solib-darwin.c (darwin_current_sos): Update.
5486 * linux-thread-db.c (inferior_has_bug): Update.
5487 * expprint.c (print_subexp_standard): Update.
5488 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
5489 (ada_exception_message_1): Update.
5490
5491 2020-06-15 Tom Tromey <tromey@adacore.com>
5492
5493 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
5494
5495 2020-06-15 Tom Tromey <tromey@adacore.com>
5496
5497 * valprint.c (read_string): Update comment.
5498 * target.c (MIN): Remove.
5499 (target_read_string): Rewrite.
5500
5501 2020-06-15 Tom Tromey <tromey@adacore.com>
5502
5503 * corefile.c (read_memory_string): Remove.
5504 * ada-valprint.c (ada_value_print_ptr): Update.
5505 * ada-lang.h (ada_tag_name): Change return type.
5506 * ada-lang.c (type_from_tag): Update.
5507 (ada_tag_name_from_tsd): Change return type. Use
5508 target_read_string.
5509 (ada_tag_name): Likewise.
5510 * gdbcore.h (read_memory_string): Don't declare.
5511
5512 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
5513
5514 * symtab.c (rbreak_command): Ignore Windows drive colon.
5515
5516 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
5517
5518 * NEWS: Mention removed GDBserver host support.
5519
5520 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
5521
5522 * features/riscv/rebuild-csr-xml.sh: Updated.
5523
5524 2020-06-11 Tom Tromey <tom@tromey.com>
5525
5526 PR gdb/18318:
5527 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
5528
5529 2020-06-09 Jonny Grant <jg@jguk.org>
5530 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
5531
5532 * main.c (captured_main_1): Don't print new line after help.
5533 (print_gdb_help): add mailing list and IRC channel information
5534 to --help. Add new lines between items in the footer. Remove
5535 quotes around bug url.
5536
5537 2020-06-11 Keith Seitz <keiths@redhat.com>
5538
5539 PR gdb/21356
5540 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
5541 Resolve typedefs for type length calculations.
5542
5543 2020-06-10 Tom de Vries <tdevries@suse.de>
5544
5545 PR ada/24713
5546 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
5547 (write_psymbols): Enable .gdb_index for ada.
5548 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
5549 ada.
5550
5551 2020-06-10 Tom de Vries <tdevries@suse.de>
5552
5553 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
5554 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
5555 namei" instead of "const char *name" argument.
5556 (dw2_map_matching_symbols): Use "offset_type namei" variant of
5557 dw2_symtab_iter_init.
5558
5559 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
5560
5561 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
5562 to use type::field and field::type instead.
5563
5564 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
5565
5566 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
5567 to use field::type instead.
5568
5569 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
5570
5571 * gdbtypes.h (struct field) <type, set_type>: New methods.
5572 Rename `type` field to...
5573 <m_type>: ... this. Change references throughout to use type or
5574 set_type methods.
5575 (FIELD_TYPE): Use field::type. Change call sites that modify
5576 the field's type to use field::set_type instead.
5577
5578 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
5579
5580 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
5581 to use type::index_type instead.
5582
5583 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
5584
5585 * gdbtypes.h (struct type) <index_type, set_index_type>: New
5586 methods.
5587 (TYPE_INDEX_TYPE): Use type::index_type.
5588 * gdbtypes.c (create_array_type_with_stride): Likewise.
5589
5590 2020-06-07 Tom Tromey <tom@tromey.com>
5591
5592 * valprint.c (generic_val_print_float): Remove "embedded_offset"
5593 parameter.
5594 (generic_value_print): Update.
5595
5596 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
5597
5598 Revert commit 982a38f60b0.
5599 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
5600
5601 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
5602
5603 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
5604 avoid use after free.
5605
5606 2020-06-05 Tom de Vries <tdevries@suse.de>
5607
5608 * NEWS: Fix typos.
5609
5610 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
5611
5612 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
5613 the per_bfd object.
5614 (dwarf2_read_debug_names): Likewise.
5615 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
5616 object when re-using a per_bfd object with an index.
5617
5618 2020-06-03 Tom de Vries <tdevries@suse.de>
5619
5620 PR symtab/26046
5621 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
5622 children for C++.
5623 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
5624 DW_TAG_subprogram.
5625
5626 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5627
5628 * ada-lang.c (ada_language_data): Delete skip_trampoline
5629 initializer.
5630 * c-lang.c (c_language_data): Likewise.
5631 (cplus_language_data): Likewise.
5632 (cplus_language::skip_trampoline): New member function.
5633 (asm_language_data): Delete skip_trampoline initializer.
5634 (minimal_language_data): Likewise.
5635 * d-lang.c (d_language_data): Likewise.
5636 * f-lang.c (f_language_data): Likewise.
5637 * go-lang.c (go_language_data): Likewise.
5638 * language.c (unk_lang_trampoline): Delete function.
5639 (skip_language_trampoline): Update.
5640 (unknown_language_data): Delete skip_trampoline initializer.
5641 (auto_language_data): Likewise.
5642 * language.h (language_data): Delete skip_trampoline field.
5643 (language_defn::skip_trampoline): New function.
5644 * m2-lang.c (m2_language_data): Delete skip_trampoline
5645 initializer.
5646 * objc-lang.c (objc_skip_trampoline): Delete function, move
5647 implementation to objc_language::skip_trampoline.
5648 (objc_language_data): Delete skip_trampoline initializer.
5649 (objc_language::skip_trampoline): New member function with
5650 implementation from objc_skip_trampoline.
5651 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
5652 initializer.
5653 * p-lang.c (pascal_language_data): Likewise.
5654 * rust-lang.c (rust_language_data): Likewise.
5655
5656 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5657
5658 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
5659 (ada_language::demangle): New member function.
5660 * c-lang.c (c_language_data): Delete la_demangle initializer.
5661 (cplus_language_data): Delete la_demangle initializer.
5662 (cplus_language::demangle): New member function.
5663 (asm_language_data): Delete la_demangle initializer.
5664 (minimal_language_data): Delete la_demangle initializer.
5665 * d-lang.c (d_language_data): Delete la_demangle initializer.
5666 (d_language::demangle): New member function.
5667 * f-lang.c (f_language_data): Delete la_demangle initializer.
5668 (f_language::demangle): New member function.
5669 * go-lang.c (go_language_data): Delete la_demangle initializer.
5670 (go_language::demangle): New member function.
5671 * language.c (language_demangle): Update.
5672 (unk_lang_demangle): Delete.
5673 (unknown_language_data): Delete la_demangle initializer.
5674 (unknown_language::demangle): New member function.
5675 (auto_language_data): Delete la_demangle initializer.
5676 (auto_language::demangle): New member function.
5677 * language.h (language_data): Delete la_demangle field.
5678 (language_defn::demangle): New function.
5679 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
5680 * objc-lang.c (objc_language_data): Delete la_demangle
5681 initializer.
5682 (objc_language::demangle): New member function.
5683 * opencl-lang.c (opencl_language_data): Delete la_demangle
5684 initializer.
5685 * p-lang.c (pascal_language_data): Likewise.
5686 * rust-lang.c (rust_language_data): Likewise.
5687 (rust_language::demangle): New member function.
5688
5689 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5690
5691 * ada-lang.c (ada_language_data): Delete la_print_type
5692 initializer.
5693 (ada_language::print_type): New member function.
5694 * c-lang.c (c_language_data): Delete la_print_type initializer.
5695 (c_language::print_type): New member function.
5696 (cplus_language_data): Delete la_print_type initializer.
5697 (cplus_language::print_type): New member function.
5698 (asm_language_data): Delete la_print_type initializer.
5699 (asm_language::print_type): New member function.
5700 (minimal_language_data): Delete la_print_type initializer.
5701 (minimal_language::print_type): New member function.
5702 * d-lang.c (d_language_data): Delete la_print_type initializer.
5703 (d_language::print_type): New member function.
5704 * f-lang.c (f_language_data): Delete la_print_type initializer.
5705 (f_language::print_type): New member function.
5706 * go-lang.c (go_language_data): Delete la_print_type initializer.
5707 (go_language::print_type): New member function.
5708 * language.c (unk_lang_print_type): Delete.
5709 (unknown_language_data): Delete la_print_type initializer.
5710 (unknown_language::print_type): New member function.
5711 (auto_language_data): Delete la_print_type initializer.
5712 (auto_language::print_type): New member function.
5713 * language.h (language_data): Delete la_print_type field.
5714 (language_defn::print_type): New function.
5715 (LA_PRINT_TYPE): Update.
5716 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
5717 (m2_language::print_type): New member function.
5718 * objc-lang.c (objc_language_data): Delete la_print_type
5719 initializer.
5720 (objc_language::print_type): New member function.
5721 * opencl-lang.c (opencl_print_type): Delete, implementation moved
5722 to opencl_language::print_type.
5723 (opencl_language_data): Delete la_print_type initializer.
5724 (opencl_language::print_type): New member function, implementation
5725 from opencl_print_type.
5726 * p-lang.c (pascal_language_data): Delete la_print_type
5727 initializer.
5728 (pascal_language::print_type): New member function.
5729 * rust-lang.c (rust_print_type): Delete, implementation moved to
5730 rust_language::print_type.
5731 (rust_language_data): Delete la_print_type initializer.
5732 (rust_language::print_type): New member function, implementation
5733 from rust_print_type.
5734
5735 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5736
5737 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
5738 implementation moves to...
5739 (ada_language::sniff_from_mangled_name): ...here. Update return
5740 type.
5741 (ada_language_data): Delete la_sniff_from_mangled_name
5742 initializer.
5743 * c-lang.c (c_language_data): Likewise.
5744 (cplus_language_data): Likewise.
5745 (cplus_language::sniff_from_mangled_name): New member function,
5746 implementation taken from gdb_sniff_from_mangled_name.
5747 (asm_language_data): Delete la_sniff_from_mangled_name
5748 initializer.
5749 (minimal_language_data): Likewise.
5750 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
5751 implementation moves to cplus_language::sniff_from_mangled_name.
5752 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
5753 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
5754 moves to...
5755 (d_language::sniff_from_mangled_name): ...here.
5756 (d_language_data): Delete la_sniff_from_mangled_name initializer.
5757 * f-lang.c (f_language_data): Likewise.
5758 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
5759 moves to...
5760 (go_language::sniff_from_mangled_name): ...here.
5761 (go_language_data): Delete la_sniff_from_mangled_name initializer.
5762 * language.c (language_sniff_from_mangled_name): Delete.
5763 (unknown_language_data): Delete la_sniff_from_mangled_name
5764 initializer.
5765 (auto_language_data): Likewise.
5766 * language.h (language_data): Delete la_sniff_from_mangled_name
5767 field.
5768 (language_defn::sniff_from_mangled_name): New function.
5769 (language_sniff_from_mangled_name): Delete declaration.
5770 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
5771 field.
5772 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
5773 implementation moves to...
5774 (objc_language::sniff_from_mangled_name): ...here.
5775 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
5776 * opencl-lang.c (opencl_language_data): Likewise.
5777 * p-lang.c (pascal_language_data): Likewise.
5778 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
5779 implementation moves to...
5780 (rust_language::sniff_from_mangled_name): ...here.
5781 (rust_language_data): Delete la_sniff_from_mangled_name
5782 initializer.
5783 * symtab.c (symbol_find_demangled_name): Call
5784 sniff_from_mangled_name member function.
5785
5786 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5787
5788 * ada-lang.c (ada_language_data): Delete la_search_name_hash
5789 initializer.
5790 * c-lang.c (c_language_data): Likewise.
5791 (cplus_language_data): Likewise.
5792 (cplus_language::search_name_hash): New member function.
5793 (asm_language_data): Delete la_search_name_hash initializer.
5794 (minimal_language_data): Likewise.
5795 * d-lang.c (d_language_data): Likewise.
5796 * dictionary.c (default_search_name_hash): Rename to...
5797 (language_defn::search_name_hash): ...this.
5798 * f-lang.c (f_language_data): Likewise.
5799 (f_language::search_name_hash): New member function.
5800 * go-lang.c (go_language_data): Delete la_search_name_hash
5801 initializer.
5802 * language.c (unknown_language_data): Likewise.
5803 (auto_language_data): Likewise.
5804 * language.h (struct language_data): Delete la_search_name_hash
5805 field.
5806 (language_defn::search_name_hash): Declare new member function.
5807 (default_search_name_hash): Delete declaration.
5808 * m2-lang.c (m2_language_data): Delete la_search_name_hash
5809 initializer.
5810 * objc-lang.c (objc_language_data): Likewise.
5811 * opencl-lang.c (opencl_language_data): Likewise.
5812 * p-lang.c (pascal_language_data): Likewise.
5813 * rust-lang.c (rust_language_data): Likewise.
5814 * symtab.c (search_name_hash): Update call.
5815
5816 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5817
5818 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
5819 initializer.
5820 * c-lang.c (class compile_instance): Declare.
5821 (c_language_data): Delete la_get_compile_instance initializer.
5822 (c_language::get_compile_instance): New member function.
5823 (cplus_language_data): Delete la_get_compile_instance initializer.
5824 (cplus_language::get_compile_instance): New member function.
5825 (asm_language_data): Delete la_get_compile_instance initializer.
5826 (minimal_language_data): Likewise.
5827 * c-lang.h (c_get_compile_context): Update comment.
5828 (cplus_get_compile_context): Update comment.
5829 * compile/compile.c (compile_to_object): Update calls, don't rely
5830 on function pointer being NULL.
5831 * d-lang.c (d_language_data): Delete la_get_compile_instance
5832 initializer.
5833 * f-lang.c (f_language_data): Likewise.
5834 * go-lang.c (go_language_data): Likewise.
5835 * language.c (unknown_language_data): Likewise.
5836 (auto_language_data): Likewise.
5837 * language.h (language_data): Delete la_get_compile_instance field.
5838 (language_defn::get_compile_instance): New member function.
5839 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
5840 initializer.
5841 * objc-lang.c (objc_language_data): Likewise.
5842 * opencl-lang.c (opencl_language_data): Likewise.
5843 * p-lang.c (pascal_language_data): Likewise.
5844 * rust-lang.c (rust_language_data): Likewise.
5845
5846 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5847
5848 * ada-lang.c (ada_add_all_symbols): Update comment.
5849 (ada_iterate_over_symbols): Delete, move implementation to...
5850 (ada_language::iterate_over_symbols): ...here, a new member
5851 function, rewrite to use range based for loop.
5852 (ada_language_data): Delete la_iterate_over_symbols initializer.
5853 * c-lang.c (c_language_data): Likewise.
5854 (cplus_language_data): Likewise.
5855 (asm_language_data): Likewise.
5856 (minimal_language_data): Likewise.
5857 * d-lang.c (d_language_data): Likewise.
5858 * f-lang.c (f_language_data): Likewise.
5859 * go-lang.c (go_language_data): Likewise.
5860 * language.c (unknown_language_data): Likewise.
5861 (auto_language_data): Likewise.
5862 * language.h (language_data): Delete la_iterate_over_symbols field.
5863 (language_defn::iterate_over_symbols): New member function.
5864 (LA_ITERATE_OVER_SYMBOLS): Update.
5865 * linespec.c (iterate_over_all_matching_symtabs): Update.
5866 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
5867 initializer.
5868 * objc-lang.c (objc_language_data): Likewise.
5869 * opencl-lang.c (opencl_language_data): Likewise.
5870 * p-lang.c (pascal_language_data): Likewise.
5871 * rust-lang.c (rust_language_data): Likewise.
5872
5873 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5874
5875 * ada-lang.c (ada_language_data): Delete
5876 la_lookup_transparent_type initializer.
5877 * c-lang.c (c_language_data): Likewise.
5878 (cplus_language_data): Likewise.
5879 (cplus_language::lookup_transparent_type): New member function.
5880 (asm_language_data): Delete la_lookup_transparent_type
5881 initializer.
5882 (minimal_language_data): Likewise.
5883 * d-lang.c (d_language_data): Likewise.
5884 * f-lang.c (f_language_data): Likewise.
5885 * go-lang.c (go_language_data): Likewise.
5886 * language.c (unknown_language_data): Likewise.
5887 (auto_language_data): Likewise.
5888 * language.h (struct language_data): Delete
5889 la_lookup_transparent_type field.
5890 (language_defn::lookup_transparent_type): New member function.
5891 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
5892 initializer.
5893 * objc-lang.c (objc_language_data): Likewise.
5894 * opencl-lang.c (opencl_language_data): Likewise.
5895 * p-lang.c (pascal_language_data): Likewise.
5896 * rust-lang.c (rust_language_data): Likewise.
5897 * symtab.c (symbol_matches_domain): Update call.
5898
5899 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5900
5901 * ada-lang.c (ada_language_arch_info): Delete function, move
5902 implementation to...
5903 (ada_language::language_arch_info): ...here, a new member
5904 function.
5905 (ada_language_data): Delete la_language_arch_info.
5906 * c-lang.c (c_language_data): Likewise.
5907 (c_language::language_arch_info): New member function.
5908 (cplus_language_arch_info): Delete function, move
5909 implementation to...
5910 (cplus_language::language_arch_info): ...here, a new member
5911 function.
5912 (cplus_language_data): Delete la_language_arch_info.
5913 (asm_language_data): Likewise.
5914 (asm_language::language_arch_info): New member function.
5915 (minimal_language_data): Delete la_language_arch_info.
5916 (minimal_language::language_arch_info): New member function.
5917 * d-lang.c (d_language_arch_info): Delete function, move
5918 implementation to...
5919 (d_language::language_arch_info): ...here, a new member
5920 function.
5921 (d_language_data): Delete la_language_arch_info.
5922 * f-lang.c (f_language_arch_info): Delete function, move
5923 implementation to...
5924 (f_language::language_arch_info): ...here, a new member
5925 function.
5926 (f_language_data): Delete la_language_arch_info.
5927 * go-lang.c (go_language_arch_info): Delete function, move
5928 implementation to...
5929 (go_language::language_arch_info): ...here, a new member
5930 function.
5931 (go_language_data): Delete la_language_arch_info.
5932 * language.c (unknown_language_data): Likewise.
5933 (unknown_language::language_arch_info): New member function.
5934 (auto_language_data): Delete la_language_arch_info.
5935 (auto_language::language_arch_info): New member function.
5936 (language_gdbarch_post_init): Update call to
5937 la_language_arch_info.
5938 * language.h (language_data): Delete la_language_arch_info
5939 function pointer.
5940 (language_defn::language_arch_info): New function.
5941 * m2-lang.c (m2_language_arch_info): Delete function, move
5942 implementation to...
5943 (m2_language::language_arch_info): ...here, a new member
5944 function.
5945 (m2_language_data): Delete la_language_arch_info.
5946 * objc-lang.c (objc_language_arch_info): Delete function, move
5947 implementation to...
5948 (objc_language::language_arch_info): ...here, a new member
5949 function.
5950 (objc_language_data): Delete la_language_arch_info.
5951 * opencl-lang.c (opencl_language_arch_info): Delete function, move
5952 implementation to...
5953 (opencl_language::language_arch_info): ...here, a new member
5954 function.
5955 (opencl_language_data): Delete la_language_arch_info.
5956 * p-lang.c (pascal_language_arch_info): Delete function, move
5957 implementation to...
5958 (pascal_language::language_arch_info): ...here, a new member
5959 function.
5960 (pascal_language_data): Delete la_language_arch_info.
5961 * rust-lang.c (rust_language_arch_info): Delete function, move
5962 implementation to...
5963 (rust_language::language_arch_info): ...here, a new member
5964 function.
5965 (rust_language_data): Delete la_language_arch_info.
5966
5967 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5968
5969 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
5970 initializer.
5971 * c-lang.c (c_language_data): Likewise.
5972 (cplus_language_data): Likewise.
5973 (cplus_language::pass_by_reference_info): New method.
5974 (asm_language_data): Delete la_pass_by_reference initializer.
5975 (minimal_language_data): Likewise.
5976 * cp-abi.c (cp_pass_by_reference): Remove use of
5977 default_pass_by_reference.
5978 * d-lang.c (d_language_data): Likewise.
5979 * f-lang.c (f_language_data): Likewise.
5980 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
5981 default_pass_by_reference.
5982 * go-lang.c (go_language_data): Likewise.
5983 * language.c (language_pass_by_reference): Update.
5984 (default_pass_by_reference): Delete.
5985 (unknown_language_data): Delete la_pass_by_reference
5986 initializer.
5987 (auto_language_data): Likewise.
5988 * language.h (struct language_data): Delete la_pass_by_reference
5989 field.
5990 (language_defn::pass_by_reference_info): New member function.
5991 (default_pass_by_reference): Delete declaration.
5992 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
5993 initializer.
5994 * objc-lang.c (objc_language_data): Likewise.
5995 * opencl-lang.c (opencl_language_data): Likewise.
5996 * p-lang.c (pascal_language_data): Likewise.
5997 * rust-lang.c (rust_language_data): Likewise.
5998
5999 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6000
6001 * ada-lang.c (ada_read_var_value): Delete function, move
6002 implementation to...
6003 (ada_language::read_var_value): ...here.
6004 (ada_language_data): Delete la_read_var_value initializer.
6005 * c-lang.c (c_language_data): Likewise.
6006 (cplus_language_data): Likewise.
6007 (minimal_language_data): Likewise.
6008 * d-lang.c (d_language_data): Likewise.
6009 * f-lang.c (f_language_data): Likewise.
6010 * findvar.c (default_read_var_value): Rename to...
6011 (language_defn::read_var_value): ...this.
6012 * findvar.c (read_var_value): Update header comment, and change to
6013 call member function instead of function pointer.
6014 * go-lang.c (go_language_data): Likewise.
6015 * language.c (unknown_language_data): Delete la_read_var_value
6016 initializer.
6017 (auto_language_data): Likewise.
6018 * language.h (struct language_data): Delete la_read_var_value
6019 field.
6020 (language_defn::read_var_value): New member function.
6021 (default_read_var_value): Delete declaration.
6022 * m2-lang.c (m2_language_data): Delete la_read_var_value
6023 initializer.
6024 * objc-lang.c (objc_language_data): Likewise.
6025 * opencl-lang.c (opencl_language_data): Likewise.
6026 * p-lang.c (pascal_language_data): Likewise.
6027 * rust-lang.c (rust_language_data): Likewise.
6028 * value.h (default_read_var_value): Delete declaration.
6029
6030 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6031
6032 * ada-lang.c (ada_print_array_index): Delete function, move
6033 implementation to...
6034 (ada_language::print_array_index): ...here.
6035 (ada_language_data): Delete la_print_array_index initializer.
6036 * c-lang.c (c_language_data): Likewise.
6037 (cplus_language_data): Likewise.
6038 (minimal_language_data): Likewise.
6039 * d-lang.c (d_language_data): Likewise.
6040 * f-lang.c (f_language_data): Likewise.
6041 * go-lang.c (go_language_data): Likewise.
6042 * language.c (default_print_array_index): Delete function, move
6043 implementation to...
6044 (language_defn::print_array_index): ...here.
6045 (unknown_language_data): Delete la_print_array_index initializer.
6046 (auto_language_data): Likewise.
6047 * language.h (struct language_data): Delete la_print_array_index
6048 field.
6049 (language_defn::print_array_index): New member function.
6050 (LA_PRINT_ARRAY_INDEX): Update.
6051 (default_print_array_index): Delete declaration.
6052 * m2-lang.c (m2_language_data): Delete la_print_array_index
6053 initializer.
6054 * objc-lang.c (objc_language_data): Likewise.
6055 * opencl-lang.c (opencl_language_data): Likewise.
6056 * p-lang.c (pascal_language_data): Likewise.
6057 * rust-lang.c (rust_language_data): Likewise.
6058
6059 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6060
6061 * gdb/ada-lang.c (ada_language_defn): Convert to...
6062 (ada_language_data): ...this.
6063 (class ada_language): New class.
6064 (ada_language_defn): New static global.
6065 * gdb/c-lang.c (c_language_defn): Convert to...
6066 (c_language_data): ...this.
6067 (class c_language): New class.
6068 (c_language_defn): New static global.
6069 (cplus_language_defn): Convert to...
6070 (cplus_language_data): ...this.
6071 (class cplus_language): New class.
6072 (cplus_language_defn): New static global.
6073 (asm_language_defn): Convert to...
6074 (asm_language_data): ...this.
6075 (class asm_language): New class.
6076 (asm_language_defn): New static global.
6077 (minimal_language_defn): Convert to...
6078 (minimal_language_data): ...this.
6079 (class minimal_language): New class.
6080 (minimal_language_defn): New static global.
6081 * gdb/d-lang.c (d_language_defn): Convert to...
6082 (d_language_data): ...this.
6083 (class d_language): New class.
6084 (d_language_defn): New static global.
6085 * gdb/f-lang.c (f_language_defn): Convert to...
6086 (f_language_data): ...this.
6087 (class f_language): New class.
6088 (f_language_defn): New static global.
6089 * gdb/go-lang.c (go_language_defn): Convert to...
6090 (go_language_data): ...this.
6091 (class go_language): New class.
6092 (go_language_defn): New static global.
6093 * gdb/language.c (unknown_language_defn): Remove declaration.
6094 (current_language): Initialize to nullptr, real initialization is
6095 moved to _initialize_language.
6096 (languages): Delete global.
6097 (language_defn::languages): Define.
6098 (set_language_command): Use language_defn::languages.
6099 (set_language): Likewise.
6100 (range_error): Likewise.
6101 (language_enum): Likewise.
6102 (language_def): Likewise.
6103 (add_set_language_command): Use language_def::languages for the
6104 language list, and language_def to lookup language pointers.
6105 (skip_language_trampoline): Use language_defn::languages.
6106 (unknown_language_defn): Convert to...
6107 (unknown_language_data): ...this.
6108 (class unknown_language): New class.
6109 (unknown_language_defn): New static global.
6110 (auto_language_defn): Convert to...
6111 (auto_language_data): ...this.
6112 (class auto_language): New class.
6113 (auto_language_defn): New static global.
6114 (language_gdbarch_post_init): Use language_defn::languages.
6115 (_initialize_language): Initialize current_language.
6116 * gdb/language.h (struct language_defn): Rename to...
6117 (struct language_data): ...this.
6118 (struct language_defn): New.
6119 (auto_language_defn): Delete.
6120 (unknown_language_defn): Delete.
6121 (minimal_language_defn): Delete.
6122 (ada_language_defn): Delete.
6123 (asm_language_defn): Delete.
6124 (c_language_defn): Delete.
6125 (cplus_language_defn): Delete.
6126 (d_language_defn): Delete.
6127 (f_language_defn): Delete.
6128 (go_language_defn): Delete.
6129 (m2_language_defn): Delete.
6130 (objc_language_defn): Delete.
6131 (opencl_language_defn): Delete.
6132 (pascal_language_defn): Delete.
6133 (rust_language_defn): Delete.
6134 * gdb/m2-lang.c (m2_language_defn): Convert to...
6135 (m2_language_data): ...this.
6136 (class m2_language): New class.
6137 (m2_language_defn): New static global.
6138 * gdb/objc-lang.c (objc_language_defn): Convert to...
6139 (objc_language_data): ...this.
6140 (class objc_language): New class.
6141 (objc_language_defn): New static global.
6142 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
6143 (opencl_language_data): ...this.
6144 (class opencl_language): New class.
6145 (opencl_language_defn): New static global.
6146 * gdb/p-lang.c (pascal_language_defn): Convert to...
6147 (pascal_language_data): ...this.
6148 (class pascal_language): New class.
6149 (pascal_language_defn): New static global.
6150 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
6151 language pointer, update comment format.
6152 * gdb/rust-lang.c (rust_language_defn): Convert to...
6153 (rust_language_data): ...this.
6154 (class rust_language): New class.
6155 (rust_language_defn): New static global.
6156
6157 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
6158
6159 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
6160 member variable.
6161 <m_stmt_at_address>: New member variable.
6162 (lnp_state_machine::record_line): Don't record some lines, update
6163 tracking of is_stmt at the same address.
6164 (lnp_state_machine::lnp_state_machine): Initialise new member
6165 variables.
6166
6167 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
6168
6169 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
6170 "-include gnu-nat-mig.h".
6171 * gnu-nat-mig.h: New file.
6172 * gnu-nat.c: Include "gnu-nat-mig.h".
6173 (exc_server, msg_reply_server, notify_server,
6174 process_reply_server): Remove declarations.
6175
6176 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6177
6178 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
6179 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
6180 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
6181 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
6182 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
6183 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
6184 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
6185 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
6186 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
6187 to gnu_nat_target class.
6188 * gnu-nat.c: Likewise.
6189 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
6190 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
6191 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
6192 object.
6193 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
6194 instead of `gnu_target'.
6195
6196 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6197
6198 * i386-gnu-tdep.c: Include "gdbcore.h"
6199 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
6200 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
6201 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
6202 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
6203 i386_gnu_sigcontext_addr): New functions
6204 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
6205 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
6206 tdep.
6207
6208 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6209
6210 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
6211 before fork_inferior call. Avoid calling it if target_is_pushed returns
6212 true.
6213
6214 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6215
6216 * gnu-nat.h (gnu_target): New variable declaration.
6217 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
6218 gnu_target.
6219 * gnu-nat.c (gnu_target): New variable.
6220 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
6221 add_thread_silent, and add_thread calls.
6222 (gnu_nat_target::create_inferior): Pass gnu_target to
6223 add_thread_silent, thread_change_ptid call.
6224 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
6225 call.
6226
6227 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6228
6229 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
6230 (gnu_nat_target::find_memory_regions): Remove unused
6231 `old_address' variable.
6232
6233 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6234
6235 * gnu-nat.c: Include "gdbarch.h".
6236
6237 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6238
6239 * reply_mig_hack.awk (Error return): Cast function through
6240 void *, to bypass compiler function call check.
6241
6242 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6243
6244 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
6245 $(srcdir)/reply_mig_hack.awk.
6246
6247 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6248
6249 * gnu-nat.h (gnu_debug_flag): Set type to bool.
6250
6251 2020-05-30 Jonny Grant <jg@jguk.org>
6252
6253 * configure.ac (ACX_BUGURL): change bug URL to https.
6254
6255 2020-05-30 Pedro Alves <palves@redhat.com>
6256
6257 * cp-support.c (replace_typedefs_template): New.
6258 (replace_typedefs_qualified_name): Handle
6259 DEMANGLE_COMPONENT_TEMPLATE.
6260
6261 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
6262
6263 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
6264 dwarf2/index-cache.h, dwarf2/index-write.c,
6265 dwarf2/index-write.h, dwarf2/line-header.c,
6266 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
6267 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
6268 variables and fields from `dwarf2_per_objfile` to just
6269 `per_objfile` throughout.
6270
6271 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
6272
6273 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6274 <push_dwarf_reg_entry_value>: Add comment.
6275
6276 2020-05-28 Kevin Buettner <kevinb@redhat.com>
6277 Keith Seitz <keiths@redhat.com>
6278
6279 * python/python.c (do_start_initialization): Call PyEval_SaveThread
6280 instead of PyEval_ReleaseLock.
6281 (class gdbpy_gil): Move to earlier in file.
6282 (finalize_python): Set gdb_python_initialized.
6283 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
6284 when not initialized.
6285
6286 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
6287
6288 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6289 <push_dwarf_reg_entry_value>: Remove assert. Override
6290 per_objfile with caller_per_objfile.
6291
6292 2020-05-28 Tom de Vries <tdevries@suse.de>
6293
6294 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
6295 PR gold/15646 workaround to symbol kind "type".
6296
6297 2020-05-27 Tom Tromey <tromey@adacore.com>
6298
6299 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
6300
6301 2020-05-27 Tom Tromey <tromey@adacore.com>
6302
6303 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
6304 Use htab_find_with_hash.
6305 <add_abbrev>: Remove "abbrev_number" parameter.
6306 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
6307 "abbrev_number" parameter. Use htab_find_slot_with_hash.
6308 (hash_abbrev): Add comment.
6309 (abbrev_table::lookup_abbrev): Move to header file.
6310 (abbrev_table::read): Update.
6311
6312 2020-05-27 Tom Tromey <tromey@adacore.com>
6313
6314 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
6315 method.
6316 <canonical_name>: New member.
6317 <raw_name>: Rename from "name".
6318 (partial_die_info): Initialize canonical_name.
6319 (scan_partial_symbols): Check raw_name.
6320 (partial_die_parent_scope, partial_die_full_name)
6321 (add_partial_symbol, add_partial_subprogram)
6322 (add_partial_enumeration, load_partial_dies): Use "name" method.
6323 (partial_die_info::name): New method.
6324 (partial_die_info::read, guess_partial_die_structure_name)
6325 (partial_die_info::fixup): Update.
6326
6327 2020-05-27 Tom Tromey <tromey@adacore.com>
6328
6329 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
6330 <get_ref_die_offset>: Inline.
6331 <get_ref_die_offset_complaint>: New method.
6332 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
6333 (attribute::get_ref_die_offset_complaint): Rename from
6334 get_ref_die_offset. Just issue complaint.
6335
6336 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
6337
6338 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
6339
6340 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
6341
6342 * exec.c (exec_file_attach): Use errno value of first openp failure.
6343
6344 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
6345
6346 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
6347 Don't close thread handle.
6348
6349 2020-05-27 Tom Tromey <tom@tromey.com>
6350 Simon Marchi <simon.marchi@efficios.com>
6351
6352 * objfiles.h (struct objfile) <partial_symtabs>: Now a
6353 shared_ptr.
6354 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
6355 member.
6356 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
6357 dwarf2_per_bfd_objfile_data_key>: New globals.
6358 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
6359 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
6360 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
6361 shared.
6362 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
6363 short-circuit when sharing.
6364 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
6365 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
6366
6367 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6368
6369 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
6370 to...
6371 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
6372 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
6373
6374 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6375
6376 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
6377 build_name_components, find_name_components_bounds>:
6378 Add per_objfile parameter.
6379 (struct mapped_index) <symbol_name_at>: Likewise.
6380 (struct mapped_debug_names): Remove constructor.
6381 <dwarf2_per_objfile>: Remove field.
6382 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
6383 (mapped_index_base::find_name_components_bounds,
6384 mapped_index_base::build_name_components,
6385 dw2_expand_symtabs_matching_symbol): Likewise.
6386 (class mock_mapped_index) <symbol_name_at>: Likewise.
6387 (check_match): Likewise.
6388 (check_find_bounds_finds): Likewise.
6389 (test_mapped_index_find_name_component_bounds): Update.
6390 (CHECK_MATCH): Update.
6391 (dw2_expand_symtabs_matching): Update.
6392 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
6393 per_objfile parameter.
6394 <find_vec_in_debug_names>: Likewise.
6395 <m_per_objfile>: New field.
6396 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
6397 parameter.
6398 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
6399 (dw2_debug_names_iterator::next): Update.
6400 (dw2_debug_names_lookup_symbol): Update.
6401 (dw2_debug_names_expand_symtabs_for_function): Update.
6402 (dw2_debug_names_map_matching_symbols): Update.
6403 (dw2_debug_names_expand_symtabs_matching): Update.
6404 (dwarf2_read_debug_names): Update.
6405
6406 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6407
6408 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
6409 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
6410 move to dwarf2_per_objfile.
6411 <read_in_chain>: Remove.
6412 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
6413 remove_all_cus, age_comp_units>: New methods.
6414 <m_dwarf2_cus>: New member.
6415 (struct dwarf2_per_cu_data) <cu>: Remove.
6416 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
6417 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
6418 moved to methods of dwarf2_per_objfile.
6419 (dwarf2_clear_marks): Remove.
6420 (dwarf2_queue_item::~dwarf2_queue_item): Update.
6421 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
6422 (dwarf2_per_bfd::free_cached_comp_units): Remove.
6423 (dwarf2_per_objfile::remove_all_cus): New.
6424 (class free_cached_comp_units) <~free_cached_comp_units>:
6425 Update.
6426 (load_cu): Update.
6427 (dw2_do_instantiate_symtab): Adjust.
6428 (fill_in_sig_entry_from_dwo_entry): Adjust.
6429 (cutu_reader::init_tu_and_read_dwo_dies): Update.
6430 (cutu_reader::cutu_reader): Likewise.
6431 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
6432 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
6433 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
6434 and dwarf2_per_objfile::age_comp_units.
6435 (load_partial_comp_unit): Update.
6436 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
6437 (process_queue): Likewise.
6438 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
6439 backlink.
6440 (dwarf2_read_addr_index): Likewise.
6441 (follow_die_offset): Likewise.
6442 (dwarf2_fetch_die_loc_sect_off): Likewise.
6443 (dwarf2_fetch_constant_bytes): Likewise.
6444 (dwarf2_fetch_die_type_sect_off): Likewise.
6445 (follow_die_sig_1): Likewise.
6446 (load_full_type_unit): Likewise.
6447 (read_signatured_type): Likewise.
6448 (dwarf2_cu::dwarf2_cu): Don't set cu field.
6449 (dwarf2_cu::~dwarf2_cu): Remove.
6450 (dwarf2_per_objfile::get_cu): New.
6451 (dwarf2_per_objfile::set_cu): New.
6452 (age_cached_comp_units): Rename to...
6453 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
6454 to std::unordered_map.
6455 (free_one_cached_comp_unit): Rename to...
6456 (dwarf2_per_objfile::remove_cu): ... this. Adjust
6457 to std::unordered_map.
6458 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
6459 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
6460 a dwarf2_per_objfile in data.
6461 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
6462 (dwarf2_clear_marks): Remove.
6463
6464 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6465
6466 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
6467 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
6468 (init_tu_and_read_dwo_dies): Likewise.
6469 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
6470 (cutu_reader::cutu_reader): Likewise.
6471 (load_partial_comp_unit): Likewise.
6472 (process_psymtab_comp_unit): Update.
6473 (build_type_psymtabs_1): Update.
6474 (process_skeletonless_type_unit): Update.
6475 (load_full_comp_unit): Update.
6476 (find_partial_die): Update.
6477 (dwarf2_read_addr_index): Update.
6478 (read_signatured_type): Update.
6479
6480 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6481
6482 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
6483 m_header_read_in>: New fields.
6484 <get_header>: New method.
6485 * dwarf2/read.c (per_cu_header_read_in): Remove.
6486 (dwarf2_per_cu_data::get_header): New.
6487 (dwarf2_per_cu_data::addr_size): Update.
6488 (dwarf2_per_cu_data::offset_size): Update.
6489 (dwarf2_per_cu_data::ref_addr_size): Update.
6490
6491 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6492
6493 * dwarf2/read.c (load_cu): Return dwarf2_cu.
6494 (dw2_do_instantiate_symtab): Update.
6495 (queue_and_load_all_dwo_tus): Change parameter from
6496 dwarf2_per_cu_data to dwarf2_cu.
6497 (dwarf2_fetch_die_loc_sect_off): Update.
6498 (dwarf2_fetch_constant_bytes): Update.
6499 (dwarf2_fetch_die_type_sect_off): Update.
6500
6501 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6502
6503 * dwarf2/read.c (process_full_comp_unit,
6504 process_full_type_unit): Remove per_cu, per_objfile paramters.
6505 Add dwarf2_cu parameter.
6506 (process_queue): Update.
6507
6508 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6509
6510 * dwarf2/read.c (create_cu_from_index_list): Replace
6511 dwarf2_per_objfile parameter with dwarf2_per_bfd.
6512 (create_cus_from_index_list): Likewise.
6513 (create_cus_from_index): Likewise.
6514 (create_signatured_type_table_from_index): Likewise.
6515 (create_cus_from_debug_names_list): Likewise.
6516 (create_cus_from_debug_names): Likewise.
6517 (dwarf2_read_gdb_index): Update.
6518 (dwarf2_read_debug_names): Update.
6519
6520 2020-05-27 Tom Tromey <tom@tromey.com>
6521 Simon Marchi <simon.marchi@efficios.com>
6522
6523 * dwarf2/read.h (struct dwarf2_per_objfile)
6524 <get_type_for_signatured_type, set_type_for_signatured_type>:
6525 New methods.
6526 <m_type_map>: New member.
6527 (struct signatured_type) <type>: Remove.
6528 * dwarf2/read.c
6529 (dwarf2_per_objfile::get_type_for_signatured_type,
6530 dwarf2_per_objfile::set_type_for_signatured_type): New.
6531 (get_signatured_type): Use new methods.
6532
6533 2020-05-27 Tom Tromey <tom@tromey.com>
6534 Simon Marchi <simon.marchi@efficios.com>
6535
6536 * dwarf2/read.h (struct type_unit_group_unshareable): New.
6537 (struct dwarf2_per_objfile) <type_units>: New member.
6538 <get_type_unit_group_unshareable>: New method.
6539 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
6540 num_symtabs, symtabs>: Remove; move to
6541 type_unit_group_unshareable.
6542 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
6543 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
6544 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
6545
6546 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6547
6548 * dwarf2/read.h (struct dwarf2_per_cu_data):
6549 <dwarf2_per_objfile>: Remove.
6550 * dwarf2/read.c (create_cu_from_index_list): Don't assign
6551 dwarf2_per_objfile.
6552 (create_signatured_type_table_from_index): Likewise.
6553 (create_signatured_type_table_from_debug_names): Likewise.
6554 (create_debug_type_hash_table): Likewise.
6555 (fill_in_sig_entry_from_dwo_entry): Likewise.
6556 (create_type_unit_group): Likewise.
6557 (read_comp_units_from_section): Likewise.
6558 (create_cus_hash_table): Likewise.
6559
6560 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6561
6562 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
6563 dwarf2_per_cu_data::dwarf2_per_objfile.
6564 (compute_compunit_symtab_includes): Likewise.
6565 (dwarf2_cu::start_symtab): Likewise.
6566
6567 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6568
6569 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
6570 parameter.
6571 * dwarf2/read.c (get_die_type_at_offset): Likewise.
6572 (read_namespace_alias): Update.
6573 (lookup_die_type): Update.
6574 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
6575 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
6576 Update.
6577 (disassemble_dwarf_expression): Update.
6578
6579 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6580
6581 * dwarf2/read.h (struct dwarf2_queue_item): Add
6582 dwarf2_per_objfile parameter, assign new parameter.
6583 <per_objfile>: New field.
6584 * dwarf2/read.c (free_one_cached_comp_unit): Add
6585 dwarf2_per_objfile parameter.
6586 (queue_comp_unit): Likewise.
6587 (dw2_do_instantiate_symtab): Update.
6588 (process_psymtab_comp_unit): Update.
6589 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
6590 (process_imported_unit_die): Update.
6591 (queue_and_load_dwo_tu): Update.
6592 (follow_die_offset): Update.
6593 (follow_die_sig_1): Update.
6594
6595 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6596
6597 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
6598 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
6599 (read_call_site_scope): Assign per_objfile.
6600 (dwarf2_per_cu_data::objfile): Remove.
6601 * gdbtypes.h (struct call_site) <per_objfile>: New member.
6602 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
6603 dwarf2_per_objfile parameter.
6604 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
6605 dwarf2_per_objfile parameter.
6606 (dwarf_expr_reg_to_entry_parameter): Add output
6607 dwarf2_per_objfile parameter.
6608 (locexpr_get_frame_base): Update.
6609 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
6610 <push_dwarf_reg_entry_value>: Update.
6611 <call_site_to_target_addr>: Update.
6612 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
6613 parameter.
6614 (value_of_dwarf_reg_entry): Update.
6615 (rw_pieced_value): Update.
6616 (indirect_synthetic_pointer): Update.
6617 (dwarf2_evaluate_property): Update.
6618 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
6619 parameter.
6620 (locexpr_read_variable): Update.
6621 (locexpr_get_symbol_read_needs): Update.
6622 (loclist_read_variable): Update.
6623
6624 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6625
6626 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
6627 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
6628 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
6629 parameter.
6630 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
6631 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
6632 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
6633 parameter.
6634 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
6635 sect_variable_value): Add dwarf2_per_objfile parameter.
6636 (class dwarf_evaluate_loc_desc) <dwarf_call,
6637 dwarf_variable_value>: Update.
6638 (fetch_const_value_from_synthetic_pointer): Add
6639 dwarf2_per_objfile parameter.
6640 (fetch_const_value_from_synthetic_pointer): Update.
6641 (coerced_pieced_ref): Update.
6642 (class symbol_needs_eval_context) <dwarf_call,
6643 dwarf_variable_value>: Update.
6644 (dwarf2_compile_expr_to_ax): Update.
6645
6646 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6647
6648 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
6649 parameter.
6650 (dwarf2_evaluate_loc_desc_full): Update.
6651
6652 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6653
6654 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
6655 parameter.
6656 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
6657 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
6658 dwarf2_per_objfile parameter.
6659 (decode_debug_loc_dwo_addresses): Likewise.
6660 (dwarf2_find_location_expression): Update.
6661 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
6662 (locexpr_describe_location_piece): Add dwarf2_per_objfile
6663 parameter.
6664 (disassemble_dwarf_expression): Add dwarf2_per_objfile
6665 parameter.
6666 (locexpr_describe_location_1): Likewise.
6667 (locexpr_describe_location): Update.
6668
6669 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6670
6671 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
6672 Remove.
6673 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
6674 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
6675 (dwarf2_compile_property_to_c): Update.
6676 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
6677 use text offset from objfile.
6678 (locexpr_tracepoint_var_ref): Update.
6679 (locexpr_generate_c_location): Update.
6680 (loclist_describe_location): Update.
6681 (loclist_tracepoint_var_ref): Update.
6682 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
6683 dwarf2_per_objfile parameter.
6684 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
6685 use text offset from objfile.
6686 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
6687
6688 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6689
6690 * dwarf2/expr.h (struct dwarf_expr_context)
6691 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
6692 <offset>: Remove.
6693 <per_objfile>: New member.
6694 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
6695 dwarf2_per_objfile parameter. Don't set offset, set
6696 per_objfile.
6697 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
6698 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
6699 a dwarf2_per_objfile object instead of an offset.
6700 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
6701 constructor.
6702 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
6703 to dwarf2_expr_executor constructor. Don't set offset.
6704 (dwarf2_fetch_cfa_info): Update.
6705 (struct dwarf2_frame_cache) <text_offset>: Remove.
6706 <per_objfile>: New field.
6707 (dwarf2_frame_cache): Update.
6708 (dwarf2_frame_prev_register): Update.
6709 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6710 <dwarf_evaluate_loc_desc>: Add constructor.
6711 (dwarf2_evaluate_loc_desc_full): Update.
6712 (dwarf2_locexpr_baton_eval): Update.
6713 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
6714 Add constructor.
6715 (dwarf2_loc_desc_get_symbol_read_needs): Update.
6716
6717 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6718
6719 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
6720 addr_sized_int_type>: Move to dwarf2_cu.
6721 <int_type>: Move to dwarf2_per_objfile.
6722 (struct dwarf2_per_objfile) <int_type>: Move here.
6723 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
6724 addr_sized_int_type>: Move here.
6725 (read_func_scope): Update.
6726 (read_array_type): Update.
6727 (read_tag_string_type): Update.
6728 (attr_to_dynamic_prop): Update.
6729 (dwarf2_per_cu_data::int_type): Rename to...
6730 (dwarf2_per_objfile::int_type): ... this.
6731 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
6732 (dwarf2_cu::addr_sized_int_type): ... this.
6733 (read_subrange_type): Update.
6734 (dwarf2_per_cu_data::addr_type): Rename to...
6735 (dwarf2_cu::addr_type): ... this.
6736 (set_die_type): Update.
6737
6738 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6739
6740 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
6741 data through per_cu->cu.
6742
6743 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6744
6745 * dwarf2/read.c (lookup_dwo_comp_unit): Change
6746 dwarf2_per_cu_data parameter fo dwarf2_cu.
6747 (lookup_dwo_type_unit): Likewise.
6748 (read_cutu_die_from_dwo): Likewise.
6749 (lookup_dwo_unit): Likewise.
6750 (open_and_init_dwo_file): Likewise.
6751 (lookup_dwo_cutu): Likewise.
6752 (lookup_dwo_comp_unit): Likewise.
6753 (lookup_dwo_type_unit): Likewise.
6754 (cutu_reader::init_tu_and_read_dwo_dies): Update.
6755 (cutu_reader::cutu_reader): Update.
6756
6757 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6758
6759 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
6760 parameter.
6761 (process_full_type_unit): Likewise.
6762 (process_queue): Update.
6763
6764 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6765
6766 * dwarf2/read.c (recursively_compute_inclusions): Add
6767 dwarf2_per_objfile parameter.
6768 (compute_compunit_symtab_includes): Likewise.
6769 (process_cu_includes): Update.
6770
6771 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6772
6773 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
6774 parameter.
6775 (create_type_unit_group): Update.
6776 (process_psymtab_comp_unit_reader): Update.
6777 (build_type_psymtabs_reader): Update.
6778
6779 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6780
6781 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
6782 object through m_this_cu->cu.
6783
6784 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6785
6786 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
6787 the info parameter.
6788 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
6789
6790 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6791
6792 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
6793 per_objfile parameter.
6794 (load_full_type_unit): Add per_objfile parameter.
6795 (read_signatured_type): Likewise.
6796 (load_full_comp_unit): Likewise.
6797 (load_cu): Likewise.
6798 (dw2_do_instantiate_symtab): Likewise.
6799 (dw2_get_file_names): Likewise.
6800 (dw2_map_symtabs_matching_filename): Update.
6801 (dw_expand_symtabs_matching_file_matcher): Update.
6802 (dw2_map_symbol_filenames): Update.
6803 (process_psymtab_comp_unit): Add per_objfile parameter.
6804 (build_type_psymtabs_1): Update.
6805 (process_skeletonless_type_unit): Update.
6806 (dwarf2_build_psymtabs_hard): Update.
6807 (load_partial_comp_unit): Add per_objfile parameter.
6808 (scan_partial_symbols): Update.
6809 (load_full_comp_unit): Add per_objfile parameter.
6810 (process_imported_unit_die): Update.
6811 (create_cus_hash_table): Update.
6812 (find_partial_die): Update.
6813 (dwarf2_read_addr_index): Update.
6814 (follow_die_offset): Update.
6815 (dwarf2_fetch_die_loc_sect_off): Update.
6816 (dwarf2_fetch_constant_bytes): Update.
6817 (dwarf2_fetch_die_type_sect_off): Update.
6818 (follow_die_sig_1): Update.
6819 (load_full_type_unit): Add per_objfile parameter.
6820 (read_signatured_type): Likewise.
6821
6822 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6823
6824 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
6825 of objfile_name.
6826
6827 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6828
6829 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
6830 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
6831 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
6832 field.
6833 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
6834 (create_cus_from_index): Update.
6835 (dwarf2_read_gdb_index): Update.
6836 (create_cus_from_debug_names): Update.
6837 (dwarf2_read_debug_names): Update.
6838 (get_abbrev_section_for_cu): Update.
6839 (create_all_comp_units): Update.
6840 (read_attribute_value): Update.
6841 (get_debug_line_section): Update.
6842 * dwarf2/index-cache.c (index_cache::store): Update.
6843 * dwarf2/index-write.c (save_gdb_index_command): Update.
6844 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
6845
6846 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6847
6848 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
6849 member.
6850 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
6851 dwarf2_per_cu_data::per_bfd.
6852 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
6853 (create_type_unit_group): Likewise.
6854 (queue_comp_unit): Remove reference to
6855 per_cu->dwarf2_per_objfile.
6856 (maybe_queue_comp_unit): Likewise.
6857 (fill_in_sig_entry_from_dwo_entry): Assign new field.
6858 (create_cus_hash_table): Assign new field.
6859
6860 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6861
6862 * dwarf2/read.c: Replace
6863 dwarf2_cu->per_cu->dwarf2_per_objfile references with
6864 dwarf2_cu->per_objfile throughout.
6865
6866 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6867
6868 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
6869 parameter, don't use per_cu->dwarf2_per_objfile.
6870 (dw2_instantiate_symtab): Likewise.
6871 (dw2_find_last_source_symtab): Update.
6872 (dw2_map_expand_apply): Update.
6873 (dw2_lookup_symbol): Update.
6874 (dw2_expand_symtabs_for_function): Update.
6875 (dw2_expand_all_symtabs): Update.
6876 (dw2_expand_symtabs_with_fullname): Update.
6877 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
6878 don't use per_cu->dwarf2_per_objfile.
6879 (dw2_expand_marked_cus): Update.
6880 (dw2_find_pc_sect_compunit_symtab): Update.
6881 (dw2_debug_names_lookup_symbol): Update.
6882 (dw2_debug_names_expand_symtabs_for_function): Update.
6883 (dw2_debug_names_map_matching_symbols): Update.
6884 (dwarf2_psymtab::expand_psymtab): Update.
6885
6886 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6887
6888 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
6889 <per_objfile>: New member.
6890 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
6891 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
6892 call to dwarf2_cu.
6893 (cutu_reader::cutu_reader): Update.
6894 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
6895
6896 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6897
6898 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
6899 struct dwarf2_per_objfile.
6900 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
6901 dwarf2_per_bfd.
6902 * dwarf2/read.c (set_die_type): Update.
6903 (get_die_type_at_offset): Update.
6904
6905 2020-05-27 Tom Tromey <tom@tromey.com>
6906 Simon Marchi <simon.marchi@efficios.com>
6907
6908 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
6909 method.
6910 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
6911 get_symtab, set_symtab>: New methods.
6912 <m_symtabs>: New field.
6913 (struct dwarf2_psymtab): Derive from partial_symtab.
6914 <readin_p, get_compunit_symtab>: Declare methods.
6915 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
6916 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
6917 New methods.
6918 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
6919 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
6920 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
6921 (dw2_symtab_iter_next, dw2_print_stats)
6922 (dw2_expand_symtabs_with_fullname)
6923 (dw2_expand_symtabs_matching_one)
6924 (dw_expand_symtabs_matching_file_matcher)
6925 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
6926 (dw2_debug_names_iterator::next)
6927 (dw2_debug_names_map_matching_symbols)
6928 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
6929 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
6930 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
6931 New methods.
6932 (get_compunit_symtab, process_full_comp_unit)
6933 (process_full_type_unit): Update.
6934 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
6935
6936 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6937
6938 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
6939 then introduce a new dwarf2_per_objfile type.
6940 <read_line_string>: Move to the new dwarf2_per_objfile type.
6941 <objfile>: Likewise.
6942 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
6943 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
6944 dwarf2_per_objfile->per_bfd.
6945 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
6946 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
6947 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
6948 (dwarf2_per_bfd::free_cached_comp_units): ... this.
6949 (dwarf2_has_info): Allocate dwarf2_per_bfd.
6950 (dwarf2_per_objfile::locate_sections): Rename to...
6951 (dwarf2_per_bfd::locate_sections): ... this.
6952 (dwarf2_per_objfile::get_cutu): Rename to...
6953 (dwarf2_per_bfd::get_cutu): ... this.
6954 (dwarf2_per_objfile::get_cu): Rename to...
6955 (dwarf2_per_bfd::get_cu): ... this.
6956 (dwarf2_per_objfile::get_tu): Rename to...
6957 (dwarf2_per_bfd::get_tu): ... this.
6958 (dwarf2_per_objfile::allocate_per_cu): Rename to...
6959 (dwarf2_per_bfd::allocate_per_cu): ... this.
6960 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
6961 (dwarf2_per_bfd::allocate_signatured_type): ... this.
6962 (get_gdb_index_contents_ftype): Change parameter from
6963 dwarf2_per_objfile to dwarf2_per_bfd.
6964 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
6965 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
6966
6967 2020-05-27 Tom Tromey <tom@tromey.com>
6968 Simon Marchi <simon.marchi@efficios.com>
6969
6970 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
6971 (allocate_piece_closure): Set "per_objfile" member.
6972 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
6973 (locexpr_describe_location, loclist_describe_location): Use new
6974 member.
6975 * dwarf2/read.c (read_call_site_scope)
6976 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
6977 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
6978 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
6979 handle_data_member_location): Set per_objfile member.
6980 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
6981 member.
6982 (struct dwarf2_loclist_baton) <per_objfile>: New member.
6983
6984 2020-05-27 Tom Tromey <tom@tromey.com>
6985
6986 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
6987 allocate_signatured_type>: Declare new methods.
6988 <m_num_psymtabs>: New member.
6989 (struct dwarf2_per_cu_data) <index>: New member.
6990 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
6991 (dwarf2_per_objfile::allocate_signatured_type): New methods.
6992 (create_cu_from_index_list): Use allocate_per_cu.
6993 (create_signatured_type_table_from_index)
6994 (create_signatured_type_table_from_debug_names)
6995 (create_debug_type_hash_table, add_type_unit)
6996 (read_comp_units_from_section): Use allocate_signatured_type.
6997
6998 2020-05-27 Tom Tromey <tom@tromey.com>
6999
7000 * psymtab.c (partial_map_expand_apply)
7001 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
7002 (psym_lookup_global_symbol_language)
7003 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
7004 (psym_print_stats, psym_expand_symtabs_for_function)
7005 (psym_map_symbol_filenames, psym_map_matching_symbols)
7006 (psym_expand_symtabs_matching)
7007 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
7008 (maintenance_check_psymtabs): Update.
7009 * psympriv.h (struct partial_symtab) <readin_p,
7010 get_compunit_symtab>: Add objfile parameter.
7011 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
7012 Likewise.
7013 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
7014 get_compunit_symtab>: Likewise.
7015 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
7016
7017 2020-05-27 Tom Tromey <tom@tromey.com>
7018
7019 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
7020 member.
7021 * dwarf2/read.c (delete_file_name_entry): Fix comment.
7022 (create_cu_from_index_list)
7023 (create_signatured_type_table_from_index)
7024 (create_signatured_type_table_from_debug_names)
7025 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
7026 (dwarf2_create_include_psymtab)
7027 (create_debug_type_hash_table, add_type_unit)
7028 (create_type_unit_group, read_comp_units_from_section)
7029 (dwarf2_compute_name, create_cus_hash_table)
7030 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
7031 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
7032 obstack.
7033 (dw2_get_real_path): Likewise. Change argument to
7034 dwarf2_per_objfile.
7035
7036 2020-05-27 Luis Machado <luis.machado@linaro.org>
7037
7038 PR tdep/26000
7039 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
7040 for ldrd (immediate).
7041
7042 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7043
7044 * command.h: Add comment giving the name of class_tui.
7045 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
7046 create the fake command for the help for class_tui.
7047
7048 2020-05-26 Tom Tromey <tromey@adacore.com>
7049
7050 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
7051 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
7052 (val_atr): New function.
7053 (value_val_atr): Use it.
7054 * ada-valprint.c (print_optional_low_bound): Change low bound
7055 handling for enums.
7056 (val_print_packed_array_elements): Don't call discrete_position.
7057 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
7058 discrete_position for enum types.
7059 * language.c (default_print_array_index): Change type.
7060 * language.h (struct language_defn) <la_print_array_index>: Add
7061 index_type parameter, change type of index_value.
7062 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
7063 (default_print_array_index): Update.
7064 * valprint.c (maybe_print_array_index): Don't call
7065 value_from_longest. Update.
7066 (value_print_array_elements): Don't call discrete_position.
7067
7068 2020-05-26 Tom Tromey <tromey@adacore.com>
7069
7070 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
7071 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
7072
7073 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
7074
7075 PR gdb/13519
7076 * avr-tdep.c (avr_integer_to_address): Return data or code
7077 address accordingly to the second 'type' argument of the
7078 function.
7079
7080 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
7081
7082 * infcmd.c, inferior.h: (construct_inferior_arguments):
7083 Moved function from here to gdbsupport/common-inferior.{h,cc}
7084
7085 2020-05-23 Tom Tromey <tom@tromey.com>
7086
7087 Revert commit eca1f90c:
7088 * NEWS: Remove entry for completion styling.
7089 * completer.c (_rl_completion_prefix_display_length): Move
7090 declaration later.
7091 (gdb_fnprint): Revert.
7092 (gdb_display_match_list_1): Likewise.
7093 * cli/cli-style.c (completion_prefix_style)
7094 (completion_difference_style, completion_suffix_style): Remove.
7095 (_initialize_cli_style): Revert.
7096 * cli/cli-style.h (completion_prefix_style)
7097 (completion_difference_style, completion_suffix_style): Don't
7098 declare.
7099
7100 2020-05-24 Pedro Alves <palves@redhat.com>
7101
7102 * symtab.c (completion_list_add_name): Return boolean indication
7103 of whether the symbol matched.
7104 (completion_list_add_symbol): Don't try to remove C++ aliases if
7105 the symbol didn't match in the first place.
7106 * symtab.h (completion_list_add_name): Return bool.
7107
7108 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
7109
7110 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
7111 type::field.
7112
7113 2020-05-23 Joel Brobecker <brobecker@adacore.com>
7114
7115 GDB 9.2 released.
7116
7117 2020-05-23 Tom Tromey <tom@tromey.com>
7118
7119 * NEWS: Add entry for completion styling.
7120 * completer.c (_rl_completion_prefix_display_length): Move
7121 declaration earlier.
7122 (gdb_fnprint): Use completion_style.
7123 (gdb_display_match_list_1): Likewise.
7124 * cli/cli-style.c (completion_prefix_style)
7125 (completion_difference_style, completion_suffix_style): New
7126 globals.
7127 (_initialize_cli_style): Register new globals.
7128 * cli/cli-style.h (completion_prefix_style)
7129 (completion_difference_style, completion_suffix_style): Declare.
7130
7131 2020-05-23 Pedro Alves <palves@redhat.com>
7132
7133 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
7134 (parse_escape): Use ISDIGIT instead of isdigit.
7135 (puts_debug): Use gdb_isprint instead of isprint.
7136 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
7137 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
7138 ISSPACE instead of isspace.
7139 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
7140 instead of isspace.
7141 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
7142 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
7143 instead of isxdigit and ISDIGIT instead of isdigit.
7144
7145 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
7146
7147 * gdbtypes.h (struct type) <field>: New method.
7148 (TYPE_FIELDS): Remove, replace all uses with either type::fields
7149 or type::field.
7150
7151 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
7152
7153 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
7154 (TYPE_FIELDS): Use type::fields. Change all call sites that
7155 modify the propery to use type::set_fields instead.
7156
7157 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
7158
7159 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
7160 type::num_fields instead.
7161
7162 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
7163
7164 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
7165 methods.
7166 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
7167 that modify the number of fields to use type::set_num_fields
7168 instead.
7169
7170 2020-05-22 Tom Tromey <tromey@adacore.com>
7171
7172 * compile/compile-object-load.h (munmap_list_free): Don't
7173 declare.
7174
7175 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
7176
7177 * annotate.c (annotate_source_line): Update return type, add call
7178 to update current symtab and line.
7179 * annotate.h (annotate_source_line): Update return type, and
7180 extend header comment.
7181 * source.c (info_line_command): Check annotation_level before
7182 calling annotate_source_line.
7183 * stack.c (print_frame_info): If calling annotate_source_line
7184 returns true, then don't print any other source line information.
7185
7186 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
7187
7188 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
7189
7190 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
7191
7192 * coffread.c (patch_type): Remove NULL check before xfree.
7193 * corefile.c (set_gnutarget): Likewise.
7194 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
7195 * exec.c (build_section_table): Likewise.
7196 * remote.c (remote_target::pass_signals): Likewise.
7197 * utils.c (n_spaces): Likewise.
7198 * cli/cli-script.c (document_command): Likewise.
7199 * i386-windows-tdep.c (core_process_module_section): Likewise.
7200 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
7201
7202 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
7203
7204 * symfile.c (reread_symbols): Clear objfile's section_offsets
7205 vector and section indices, re-compute them by calling
7206 sym_offsets.
7207
7208 2020-05-20 Tom Tromey <tromey@adacore.com>
7209
7210 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
7211 (desc_one_bound, desc_index_type): Compute field name.
7212
7213 2020-05-20 Tom de Vries <tdevries@suse.de>
7214
7215 PR symtab/25833
7216 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
7217
7218 2020-05-20 Alan Modra <amodra@gmail.com>
7219
7220 PR 25993
7221 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
7222 bfd_set_filename.
7223 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
7224 passed to bfd_set_filename.
7225 * symfile-mem.c (add_vsyscall_page): Likewise for string
7226 passed to symbol_file_add_from_memory.
7227 (symbol_file_add_from_memory): Make name param a const char* and
7228 don't strdup.
7229
7230 2020-05-20 Alan Modra <amodra@gmail.com>
7231
7232 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
7233 rather than accessing bfd->filename directly.
7234 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
7235 and use bfd_section_name.
7236 * dwarf2/frame.c (decode_frame_entry): Likewise.
7237 * exec.c (exec_set_section_address): Likewise.
7238 * solib-aix.c (solib_aix_bfd_open): Likewise.
7239 * stap-probe.c (get_stap_base_address): Likewise.
7240 * symfile.c (reread_symbols): Likewise.
7241
7242 2020-05-19 Tom Tromey <tromey@adacore.com>
7243
7244 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
7245
7246 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
7247
7248 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
7249
7250 2020-05-19 Pedro Alves <palves@redhat.com>
7251
7252 * NEWS (set exec-file-mismatch): Adjust entry.
7253 * exec.c: Include "build-id.h".
7254 (validate_exec_file): Try to match build IDs instead of filenames.
7255 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
7256 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
7257 and pass down 'warn_if_slow'.
7258 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
7259 gdb_bfd_open_closure to pass it down.
7260 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
7261
7262 2020-05-19 Pedro Alves <palves@redhat.com>
7263
7264 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
7265 * target.c (target_fileio_open_1): Rename to target_fileio_open
7266 and make extern. Use bool.
7267 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
7268 (target_fileio_read_alloc_1): Adjust.
7269 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
7270 (target_fileio_open_warn_if_slow): Delete declaration.
7271
7272 2020-05-19 Pedro Alves <palves@redhat.com>
7273
7274 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
7275 Adjust all callers.
7276
7277 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
7278
7279 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
7280 whether disp is negative.
7281
7282 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
7283
7284 * symfile.h (struct symfile_segment_data)
7285 <~symfile_segment_data>: Remove.
7286 <segment_info>: Change to std::vector.
7287 * symfile.c (default_symfile_segments): Update.
7288 * elfread.c (elf_symfile_segments): Update.
7289
7290 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
7291
7292 * symfile.h (struct symfile_segment_data) <struct segment>: New.
7293 <segments>: New.
7294 <segment_bases, segment_sizes>: Remove.
7295 * symfile.c (default_symfile_segments): Update.
7296 * elfread.c (elf_symfile_segments): Update.
7297 * remote.c (remote_target::get_offsets): Update.
7298 * solib-target.c (solib_target_relocate_section_addresses):
7299 Update.
7300
7301 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
7302
7303 * symfile.h (struct symfile_segment_data): Initialize fields.
7304 <~symfile_segment_data>: Add.
7305 (symfile_segment_data_up): New.
7306 (struct sym_fns) <sym_segments>: Return a
7307 symfile_segment_data_up.
7308 (default_symfile_segments): Return a symfile_segment_data_up.
7309 (free_symfile_segment_data): Remove.
7310 (get_symfile_segment_data): Return a symfile_segment_data_up.
7311 * symfile.c (default_symfile_segments): Likewise.
7312 (get_symfile_segment_data): Likewise.
7313 (free_symfile_segment_data): Remove.
7314 (symfile_find_segment_sections): Update.
7315 * elfread.c (elf_symfile_segments): Return a
7316 symfile_segment_data_up.
7317 * remote.c (remote_target::get_offsets): Update.
7318 * solib-target.c (solib_target_relocate_section_addresses):
7319 Update.
7320 * symfile-debug.c (debug_sym_segments): Return a
7321 symfile_segment_data_up.
7322
7323 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7324
7325 PR build/25981
7326 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
7327 Hardcode register numbers.
7328
7329 PR build/25981
7330 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
7331 procfs_find_LDT_entry): Remove.
7332 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
7333 procfs_find_LDT_entry): Remove.
7334 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
7335 Remove.
7336
7337 2020-05-17 Pedro Alves <palves@redhat.com>
7338 Andrew Burgess <andrew.burgess@embecosm.com>
7339 Keno Fischer <keno@juliacomputing.com>
7340
7341 PR gdb/25741
7342 * breakpoint.c (build_target_condition_list): Update comments.
7343 (build_target_command_list): Update comments and skip matching
7344 locations.
7345 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
7346 a separate function. Simplify "set breakpoint auto-hw off"
7347 handling.
7348 (insert_breakpoints): Update comment.
7349 (tracepoint_locations_match): New parameter. For breakpoints,
7350 compare location types too, if the caller wants to.
7351 (handle_automatic_hardware_breakpoints): New functions.
7352 (bp_location_is_less_than): Also sort by location type and
7353 hardware breakpoint length.
7354 (update_global_location_list): Handle "set breakpoint auto-hw on"
7355 here.
7356 (update_breakpoint_locations): Ask breakpoint_locations_match to
7357 ignore location types.
7358
7359 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
7360
7361 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
7362 type::name instead.
7363
7364 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
7365
7366 * gdbtypes.h (struct type) <name, set_name>: New methods.
7367 (TYPE_CODE): Use type::name. Change all call sites used to set
7368 the name to use type::set_name instead.
7369
7370 2020-05-16 Tom Tromey <tom@tromey.com>
7371
7372 * top.c (quit_force): Update.
7373 * infrun.c (handle_no_resumed): Update.
7374 * top.h (all_uis): New function.
7375 (ALL_UIS): Remove.
7376
7377 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
7378
7379 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
7380
7381 2020-05-16 Pedro Alves <palves@redhat.com>
7382
7383 * ia64-linux-nat.c
7384 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
7385 Declare method.
7386 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
7387
7388 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
7389
7390 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
7391 (sparc64_adi_info): Likewise.
7392
7393 2020-05-15 Tom Tromey <tom@tromey.com>
7394
7395 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
7396 block_objfile.
7397 (lookup_objfile_from_block): Remove.
7398 (lookup_symbol_in_block, lookup_symbol_in_static_block)
7399 (lookup_global_symbol): Use block_objfile.
7400 * symtab.h (lookup_objfile_from_block): Don't declare.
7401 * printcmd.c (clear_dangling_display_expressions): Use
7402 block_objfile.
7403 * parse.c (operator_check_standard): Use block_objfile.
7404
7405 2020-05-15 Tom Tromey <tom@tromey.com>
7406
7407 * language.c (language_alloc_type_symbol): Set
7408 SYMBOL_SECTION.
7409 * symtab.c (initialize_objfile_symbol): Remove.
7410 (allocate_symbol): Remove.
7411 (allocate_template_symbol): Remove.
7412 * dwarf2/read.c (fixup_go_packaging): Use "new".
7413 (new_symbol): Use "new".
7414 (read_variable): Don't call initialize_objfile_symbol. Use
7415 "new".
7416 (read_func_scope): Use "new".
7417 * xcoffread.c (process_xcoff_symbol): Don't call
7418 initialize_objfile_symbol.
7419 (SYMBOL_DUP): Remove.
7420 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
7421 "new".
7422 * symtab.h (allocate_symbol, initialize_objfile_symbol)
7423 (allocate_template_symbol): Don't declare.
7424 (struct symbol): Add copy constructor. Change defaults.
7425 * jit.c (finalize_symtab): Use "new".
7426 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
7427 Use "new".
7428 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
7429 (common_block_end): Use "new".
7430 * mdebugread.c (parse_symbol): Use "new".
7431 (new_symbol): Likewise.
7432
7433 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7434
7435 * NEWS: Mention changes to help and apropos.
7436
7437 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7438
7439 * command.h (enum command_class): Improve comments, document
7440 that class_alias is for user-defined aliases, give the class
7441 name for each class, remove unused class_xdb.
7442 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
7443 * breakpoint.c (_initialize_breakpoint): Replace class_alias
7444 by a precise class.
7445 * infcmd.c (_initialize_infcmd): Likewise.
7446 * reverse.c (_initialize_reverse): Likewise.
7447 * stack.c (_initialize_stack): Likewise.
7448 * symfile.c (_initialize_symfile): Likewise.
7449 * tracepoint.c (_initialize_tracepoint): Likewise.
7450
7451 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7452
7453 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
7454 when their aliased command is traversed.
7455 (help_cmd): Add fput_command_names_styled call to
7456 output command name and aliases when command has an alias.
7457
7458 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7459
7460 * cli/cli-decode.h (help_cmd_list): Remove declaration.
7461 * cli/cli-decode.c (help_cmd_list): Declare as static,
7462 remove prefix argument, use bool for recurse arg, rework to show the aliases of
7463 a command together with the command.
7464 (fput_command_name_styled, fput_command_names_styled): New functions.
7465 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
7466 fput_command_name_styled.
7467 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
7468 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
7469
7470 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7471
7472 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
7473 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
7474 * command.h (cmd_show_list): Likewise.
7475 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
7476 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
7477
7478 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7479
7480 * unittests/command-def-selftests.c (traverse_command_structure):
7481 Verify all commands of a list have the same prefix command and
7482 that only the top cmdlist commands have a null prefix.
7483
7484 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7485
7486 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
7487 as prefix, not one of its aliases.
7488 (set_cmd_prefix): Remove.
7489 (do_add_cmd): Centralize the setting of the prefix of a command, when
7490 command is defined after its full chain of prefix commands.
7491 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
7492 (add_setshow_cmd_full): Likewise.
7493 (update_prefix_field_of_prefixed_commands): New function.
7494 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
7495 update_prefix_field_of_prefixed_commands.
7496 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
7497 addresses of remote_set_cmdlist and remote_show_cmdlist given
7498 as argument, not the address of an argument.
7499 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
7500 * gdb/remote.c (_initialize_remote): Likewise.
7501
7502 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7503
7504 * cli/cli-cmds.c (alias_command): Check for an existing alias
7505 using lookup_cmd_composition, as valid_command_p is too strict
7506 and forbids aliases that are the prefix of an existing alias
7507 or command.
7508 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
7509 command is properly recognised as a valid command.
7510
7511 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7512
7513 * unittests/help-doc-selftests.c: Rename to
7514 unittests/command-def-selftests.c
7515 * unittests/command-def-selftests.c (help_doc_tests): Update some
7516 comments.
7517 (command_structure_tests, traverse_command_structure): New namespace
7518 and function.
7519 (command_structure_invariants_tests): New function.
7520 (_initialize_command_def_selftests) Renamed from
7521 _initialize_help_doc_selftests, register command_structure_invariants
7522 selftest.
7523
7524 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7525
7526 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
7527 an alias of 'show'.
7528
7529 2020-05-15 Joel Brobecker <brobecker@adacore.com>
7530
7531 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
7532 ada_is_fixed_point_type. Update all callers.
7533 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
7534 all callers.
7535 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
7536 Update all callers.
7537 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
7538 print_fixed_point_type. Update all callers.
7539 * ada-valprint.c (ada_value_print_num): Replace call to
7540 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
7541
7542 2020-05-14 Kevin Buettner <kevinb@redhat.com>
7543
7544 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
7545 processors.
7546 (cpu_supports_bts): Add CV_AMD case.
7547
7548 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
7549 Simon Marchi <simon.marchi@efficios.com>
7550
7551 * infrun.c (stop_all_threads): Collect multiple wait events at
7552 each pass.
7553
7554 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
7555
7556 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
7557 type::code instead.
7558
7559 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
7560
7561 * gdbtypes.h (struct type) <code, set_code>: New methods.
7562 (TYPE_CODE): Use type::code. Change all call sites used to set
7563 the code to use type::set_code instead.
7564
7565 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7566 Tom de Vries <tdevries@suse.de>
7567 Pedro Alves <palves@redhat.com>
7568
7569 PR threads/25478
7570 * infrun.c (stop_all_threads): Do NOT ignore
7571 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
7572 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
7573 received.
7574 (handle_no_resumed): Remove code handling a live inferior with no
7575 threads.
7576 * remote.c (has_single_non_exited_thread): New.
7577 (remote_target::update_thread_list): Do not delete a thread if is
7578 the last thread of the process.
7579 * thread.c (thread_select): Call delete_exited_threads instead of
7580 prune_threads.
7581
7582 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7583
7584 * infrun.c (stop_all_threads): Enable/disable thread events of all
7585 targets. Move a debug message denoting the end of the function
7586 into the SCOPED_EXIT block.
7587
7588 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7589
7590 * process-stratum-target.h: Include <set>.
7591 (all_non_exited_process_targets, switch_to_target_no_thread): New
7592 function declarations.
7593 * process-stratum-target.c (all_non_exited_process_targets)
7594 (switch_to_target_no_thread): New function implementations.
7595
7596 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7597
7598 * infrun.c (handle_inferior_event): Extract out a piece of code
7599 into...
7600 (mark_non_executing_threads): ...this new function.
7601
7602 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7603
7604 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
7605 use.
7606
7607 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7608
7609 * regcache.c (regcache_read_pc_protected): New function
7610 implementation that returns 0 if the PC cannot read via
7611 'regcache_read_pc'.
7612 * infrun.c (proceed): Call 'regcache_read_pc_protected'
7613 instead of 'regcache_read_pc'.
7614 (keep_going_pass_signal): Ditto.
7615
7616 2020-05-13 Tom Tromey <tromey@adacore.com>
7617
7618 * ada-lang.c (align_value): Remove.
7619 (ada_template_to_fixed_record_type_1): Use align_up.
7620
7621 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7622
7623 * async-event.c: Update the copyright year.
7624 * async-event.h: Update the copyright year.
7625
7626 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
7627
7628 * objfiles.h (is_addr_in_objfile,
7629 shared_objfile_contains_address_p): Return bool.
7630 * objfile.c (is_addr_in_objfile,
7631 shared_objfile_contains_address_p): Return bool.
7632
7633 2020-05-11 Tom Tromey <tromey@adacore.com>
7634
7635 * cli/cli-cmds.c (info_command): Restore.
7636 (_initialize_cli_cmds): Use add_prefix_command for "info".
7637 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
7638
7639 2020-05-11 Tom Tromey <tromey@adacore.com>
7640
7641 * ada-lang.c (ada_value_primitive_field): Now public.
7642 * ada-lang.h (ada_value_primitive_field): Declare.
7643 * ada-valprint.c (print_field_values): Use
7644 ada_value_primitive_field for wrapper fields.
7645
7646 2020-05-11 Tom de Vries <tdevries@suse.de>
7647
7648 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
7649 MODULE_DOMAIN.
7650
7651 2020-05-11 Tom de Vries <tdevries@suse.de>
7652
7653 PR symtab/25941
7654 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
7655 with length 0, if not gdb-produced.
7656 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
7657
7658 2020-05-09 Tom de Vries <tdevries@suse.de>
7659
7660 PR gdb/25955
7661 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
7662 calculation.
7663
7664 2020-05-09 Tom Tromey <tom@tromey.com>
7665
7666 * top.c (server_command): Now bool.
7667 * top.h (server_command): Now bool.
7668
7669 2020-05-08 Tom Tromey <tromey@adacore.com>
7670
7671 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
7672 already being processed.
7673
7674 2020-05-08 Tom Tromey <tom@tromey.com>
7675
7676 * printcmd.c (struct display) <next>: Remove.
7677 <display>: New constructor.
7678 <exp_string>: Now a std::string.
7679 <enabled_p>: Now a bool.
7680 (display_number): Move definition earlier.
7681 (displays): Rename from display_chain. Now a std::vector.
7682 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
7683 (display_command): Update.
7684 (do_one_display, disable_display)
7685 (enable_disable_display_command, do_enable_disable_display):
7686 Update.
7687 (free_display): Remove.
7688 (clear_displays): Rewrite.
7689 (delete_display): Update.
7690 (map_display_numbers): Use function_view. Remove "data"
7691 parameter. Update.
7692 (do_delete_display): Remove.
7693 (undisplay_command): Update.
7694 (do_one_display, do_displays, disable_display)
7695 (info_display_command): Update.
7696 (do_enable_disable_display): Remove.
7697 (enable_disable_display_command)
7698 (clear_dangling_display_expressions): Update.
7699
7700 2020-05-08 Tom Tromey <tom@tromey.com>
7701
7702 * symtab.c (set_symbol_cache_size)
7703 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
7704 (maintenance_print_symbol_cache_statistics): Update.
7705 * symmisc.c (print_symbol_bcache_statistics)
7706 (print_objfile_statistics, maintenance_print_objfiles)
7707 (maintenance_info_symtabs, maintenance_check_symtabs)
7708 (maintenance_expand_symtabs, maintenance_info_line_tables):
7709 Update.
7710 * symfile-debug.c (set_debug_symfile): Update.
7711 * source.c (forget_cached_source_info): Update.
7712 * python/python.c (gdbpy_progspaces): Update.
7713 * psymtab.c (maintenance_info_psymtabs): Update.
7714 * probe.c (parse_probes): Update.
7715 * linespec.c (iterate_over_all_matching_symtabs)
7716 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
7717 * guile/scm-progspace.c (gdbscm_progspaces): Update.
7718 * exec.c (exec_target::close): Update.
7719 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
7720 * breakpoint.c (print_one_breakpoint_location)
7721 (create_longjmp_master_breakpoint)
7722 (create_std_terminate_master_breakpoint): Update.
7723 * progspace.c (program_spaces): Now a std::vector.
7724 (maybe_new_address_space): Update.
7725 (add_program_space): Remove.
7726 (program_space::program_space): Update.
7727 (remove_program_space): Update.
7728 (number_of_program_spaces): Remove.
7729 (print_program_space, update_address_spaces): Update.
7730 * progspace.h (program_spaces): Change type.
7731 (ALL_PSPACES): Remove.
7732 (number_of_program_spaces): Don't declare.
7733 (struct program_space) <next>: Remove.
7734
7735 2020-05-08 Tom Tromey <tom@tromey.com>
7736
7737 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
7738 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
7739 (enable_break): Update.
7740 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
7741 (frv_fdpic_find_canonical_descriptor): Update.
7742 (frv_fetch_objfile_link_map): Update.
7743 * progspace.c (program_space::free_all_objfiles): Update.
7744 (program_space::solibs): New method.
7745 * progspace.h (struct program_space) <solibs>: New method.
7746 * solist.h (master_so_list): Don't declare.
7747 (ALL_SO_LIBS): Remove.
7748 * solib.h (so_list_head): Remove.
7749 (update_solib_list): Update comment.
7750 * solib.c (master_so_list): Remove.
7751 (solib_used, update_solib_list, solib_add)
7752 (info_sharedlibrary_command, clear_solib)
7753 (reload_shared_libraries_1, remove_user_added_objfile): Update.
7754
7755 2020-05-08 Tom Tromey <tom@tromey.com>
7756
7757 * extension.c (extension_languages): Now a std::array.
7758 (ALL_EXTENSION_LANGUAGES): Remove.
7759 (get_ext_lang_defn, get_ext_lang_of_file)
7760 (eval_ext_lang_from_control_command): Update.
7761 (finish_ext_lang_initialization)
7762 (auto_load_ext_lang_scripts_for_objfile)
7763 (ext_lang_type_printers::ext_lang_type_printers)
7764 (apply_ext_lang_type_printers)
7765 (ext_lang_type_printers::~ext_lang_type_printers)
7766 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
7767 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
7768 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
7769 (get_matching_xmethod_workers, ext_lang_colorize)
7770 (ext_lang_before_prompt): Update.
7771 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
7772
7773 2020-05-08 Tom Tromey <tom@tromey.com>
7774
7775 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
7776 overload.
7777 <swap_string, m_string>: Remove.
7778 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
7779 Update.
7780 * stabsread.c (define_symbol, read_type): Update.
7781 * linespec.c (find_linespec_symbols): Update.
7782 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
7783 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
7784 * dbxread.c (read_dbx_symtab): Update.
7785 * cp-support.h (cp_canonicalize_string_full)
7786 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
7787 Return unique_xmalloc_ptr.
7788 * cp-support.c (inspect_type): Update.
7789 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
7790 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
7791 Likewise.
7792 * c-typeprint.c (print_name_maybe_canonical): Update.
7793 * break-catch-throw.c (check_status_exception_catchpoint):
7794 Update.
7795
7796 2020-05-08 Tom de Vries <tdevries@suse.de>
7797
7798 * infrun.c (follow_fork): Copy current_line and current_symtab to
7799 child thread.
7800
7801 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
7802
7803 * async-event.c (struct async_signal_handler, struct
7804 async_event_handler): Reformat, remove typedef.
7805
7806 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
7807
7808 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
7809 access thistype->main_type->dyn_prop_list directly.
7810
7811 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
7812
7813 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
7814 (remove_dyn_prop): Remove. Update all users to use
7815 type::remove_dyn_prop.
7816 * gdbtypes.c (remove_dyn_prop): Rename to...
7817 (type::remove_dyn_prop): ... this.
7818
7819 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
7820
7821 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
7822 (add_dyn_prop): Remove. Update all users to use
7823 type::add_dyn_prop.
7824 * gdbtypes.c (add_dyn_prop): Rename to...
7825 (type::add_dyn_prop): ... this.
7826
7827 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
7828
7829 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
7830 (get_dyn_prop): Remove. Update all users to use
7831 type::dyn_prop.
7832 * gdbtypes.c (get_dyn_prop): Rename to...
7833 (type::dyn_prop): ... this.
7834
7835 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
7836
7837 * gdbtypes.h (struct main_type) <flag_static>: Remove.
7838
7839 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
7840
7841 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
7842 instruction, skip it if it's there.
7843
7844 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
7845
7846 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
7847
7848 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
7849
7850 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
7851 * gdbtypes.c (recursive_dump_type): Remove use of
7852 TYPE_INCOMPLETE.
7853
7854 2020-05-03 Tom Tromey <tom@tromey.com>
7855
7856 * breakpoint.c (catch_command, tcatch_command): Remove.
7857 (_initialize_breakpoint): Use add_basic_prefix_cmd,
7858 add_show_prefix_cmd.
7859 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
7860 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
7861 Remove.
7862 (add_internal_problem_command): Use add_basic_prefix_cmd,
7863 add_show_prefix_cmd.
7864 * mips-tdep.c (set_mipsfpu_command): Remove.
7865 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
7866 * dwarf2/index-cache.c (set_index_cache_command): Remove.
7867 (_initialize_index_cache): Use add_basic_prefix_cmd.
7868 * memattr.c (dummy_cmd): Remove.
7869 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
7870 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
7871 (_initialize_tui_win): Use add_basic_prefix_cmd,
7872 add_show_prefix_cmd.
7873 * cli/cli-logging.c (set_logging_command): Remove.
7874 (_initialize_cli_logging): Use add_basic_prefix_cmd,
7875 add_show_prefix_cmd.
7876 (show_logging_command): Remove.
7877 * target.c (target_command): Remove.
7878 (add_target): Use add_basic_prefix_cmd.
7879
7880 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
7881
7882 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
7883
7884 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7885
7886 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
7887 info_command.
7888
7889 2020-04-30 Kamil Rytarowski <n54@gmx.com>
7890
7891 * nbsd-nat.c (nbsd_enable_proc_events)
7892 (nbsd_nat_target::post_startup_inferior): Add.
7893 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
7894 (nbsd_nat_target::update_thread_list): Rewrite.
7895 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
7896 "PTRACE_LWP_CREATE".
7897 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
7898
7899 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7900
7901 * stack.c (_initialize_stack): Remove duplicated creation
7902 of "frame" command and "f" alias.
7903
7904 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
7905
7906 PR gdb/18706
7907 * gdbtypes.c (check_typedef): Calculate size of array of
7908 stubbed type.
7909
7910 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
7911
7912 PR gdb/15559
7913 * i386-tdep.c (i386_push_dummy_call): Call
7914 i386_thiscall_push_dummy_call.
7915 (i386_thiscall_push_dummy_call): New function.
7916 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
7917 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
7918 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
7919
7920 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7921
7922 * gdbarch.sh (do_read): Add shellcheck disable directive for
7923 warning SC2162.
7924
7925 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7926
7927 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
7928 "referenced but not assigned" warning.
7929
7930 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7931
7932 * gdbarch.sh: Remove code that sets fallbackdefault.
7933
7934 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7935
7936 * gdbarch.sh: Use shell operators && and || instead of
7937 -a and -o.
7938
7939 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7940
7941 * gdbarch.sh: Use $(...) instead of `...`.
7942
7943 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7944
7945 * gdbarch.sh: Use double quotes around variables.
7946
7947 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7948
7949 * gdbarch.sh: Use %s with printf, instead of variables in the
7950 format string.
7951
7952 2020-04-29 Tom Tromey <tromey@adacore.com>
7953
7954 PR ada/25875:
7955 * dwarf2/read.c (update_enumeration_type_from_children): Compute
7956 type fields here.
7957 (read_enumeration_type): Call
7958 update_enumeration_type_from_children later. Update comments.
7959 (process_enumeration_scope): Don't create type fields.
7960
7961 2020-04-29 Kamil Rytarowski <n54@gmx.com>
7962
7963 * nbsd-tdep.c: Include "xml-syscall.h".
7964 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
7965
7966 2020-04-29 Kamil Rytarowski <n54@gmx.com>
7967
7968 * nbsd-nat.c: Include "sys/wait.h".
7969 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
7970 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
7971 (nbsd_nat_target::remove_exec_catchpoint)
7972 (nbsd_nat_target::set_syscall_catchpoint): Add.
7973 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
7974 (nbsd_nat_target::insert_exec_catchpoint)
7975 (nbsd_nat_target::remove_exec_catchpoint)
7976 (nbsd_nat_target::set_syscall_catchpoint): Add.
7977 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
7978 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
7979 `nbsd_get_syscall_number'.
7980
7981 2020-04-29 Tom Tromey <tom@tromey.com>
7982
7983 * stack.c (print_block_frame_labels): Remove.
7984
7985 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
7986
7987 PR gdb/17320
7988 * ada-valprint.c (val_print_packed_array_elements): Move array
7989 end bracket to new line.
7990 (ada_val_print_string): Remove extra spaces before first array
7991 element.
7992 * c-valprint.c (c_value_print_array): Likewise.
7993 * m2-valprint.c (m2_print_array_contents): Likewise.
7994 (m2_value_print_inner): Likewise.
7995 * p-valprint.c (pascal_value_print_inner): Likewise.
7996 * valprint.c (generic_val_print_array): Likewise.
7997 (value_print_array_elements): Move first array element and array
7998 end bracket to new line.
7999
8000 2020-04-29 Tom de Vries <tdevries@suse.de>
8001
8002 PR symtab/25889
8003 * linespec.c (find_method): Fix ix calculation.
8004
8005 2020-04-28 Kamil Rytarowski <n54@gmx.com>
8006
8007 * syscalls/update-netbsd.sh: New file.
8008 * syscalls/netbsd.xml: Regenerate.
8009 * data-directory/Makefile.in: Register `netbsd.xml' in
8010 `SYSCALLS_FILES'.
8011
8012 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
8013
8014 * syscalls/update-freebsd.sh: Add double quotes.
8015
8016 2020-04-28 Tom Tromey <tom@tromey.com>
8017
8018 * NEWS: Update.
8019 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
8020 (cmdpy_init): Allow class_tui.
8021
8022 2020-04-28 Mark Williams <mark@myosotissp.com>
8023
8024 PR gdb/24480
8025 * dwarf2read.c: Add missing assingments to list_in_scope when
8026 start_symtab was already called.
8027
8028 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
8029
8030 PR gdb/25881
8031 * dwarf2/read.c (offset_map_type): Use
8032 gdb:hash_enum<sect_offset> as hash function.
8033
8034 2020-04-28 Tom de Vries <tdevries@suse.de>
8035
8036 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
8037 with DW_AT_signature.
8038
8039 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
8040
8041 * configure.ac: Remove check for fs_base/gs_base in
8042 user_regs_struct.
8043 * configure: Re-generate.
8044 * config.in: Re-generate.
8045 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
8046 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
8047 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
8048
8049 2020-04-27 Luis Machado <luis.machado@linaro.org>
8050
8051 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
8052 problematic inline frame unwinding situation.
8053 * frame.c (frame_id_computed_p): New function.
8054 * frame.h (frame_id_computed_p): New prototype.
8055
8056 2020-04-26 Tom Tromey <tom@tromey.com>
8057
8058 * command.h (enum command_class) <class_pseudo>: Remove.
8059
8060 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8061
8062 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
8063 and whitespace.
8064
8065 2020-04-25 Kamil Rytarowski <n54@gmx.com>
8066
8067 * inf-ptrace.c (inf_ptrace_target::wait): Remove
8068 `PT_GET_PROCESS_STATE' block.
8069
8070 2020-04-24 Tom Tromey <tom@tromey.com>
8071
8072 * symtab.h (symbol_get_demangled_name): Don't declare.
8073 * symtab.c (symbol_get_demangled_name): Remove.
8074 (general_symbol_info::natural_name)
8075 (general_symbol_info::demangled_name): Update.
8076
8077 2020-04-24 Tom Tromey <tom@tromey.com>
8078
8079 PR rust/25025:
8080 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
8081
8082 2020-04-24 Tom Tromey <tom@tromey.com>
8083
8084 PR symtab/12707:
8085 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
8086 exists.
8087 (new_symbol): Likewise.
8088 * compile/compile-object-load.c (get_out_value_type): Use
8089 symbol_matches_search_name.
8090
8091 2020-04-24 Tom Tromey <tom@tromey.com>
8092
8093 * dwarf2/read.c (add_partial_symbol): Do not call
8094 compute_and_set_names.
8095
8096 2020-04-24 Tom Tromey <tom@tromey.com>
8097
8098 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
8099 overload.
8100
8101 2020-04-24 Tom Tromey <tom@tromey.com>
8102
8103 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
8104 (add_psymbol_to_list): New overload. Make old overload call new
8105 one.
8106 * psympriv.h (add_psymbol_to_list): New overload.
8107
8108 2020-04-24 Tom Tromey <tom@tromey.com>
8109
8110 * dwarf2/read.c (partial_die_info::read) <case
8111 DW_AT_linkage_name>: Use value_as_string.
8112 (dwarf2_string_attr): Use value_as_string.
8113 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
8114 method.
8115 * dwarf2/attribute.c (attribute::value_as_string): New method.
8116
8117 2020-04-24 Tom Tromey <tom@tromey.com>
8118
8119 * symtab.c (general_symbol_info::natural_name)
8120 (general_symbol_info::demangled_name): Check for language_rust.
8121
8122 2020-04-24 Tom Tromey <tom@tromey.com>
8123
8124 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
8125 (dwarf2_physname): ... from here.
8126 (partial_die_info::read): Add Rust "{" hack.
8127
8128 2020-04-24 Tom Tromey <tom@tromey.com>
8129
8130 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
8131 method.
8132 (symbol_set_demangled_name): Don't declare.
8133 * symtab.c (general_symbol_info::set_demangled_name): Rename from
8134 symbol_set_demangled_name.
8135 (general_symbol_info::set_language)
8136 (general_symbol_info::compute_and_set_names): Update.
8137 * minsyms.c (minimal_symbol_reader::install): Update.
8138 * dwarf2/read.c (new_symbol): Update.
8139
8140 2020-04-24 Tom Tromey <tromey@adacore.com>
8141
8142 PR python/23662:
8143 * python/py-type.c (convert_field): Handle
8144 FIELD_LOC_KIND_DWARF_BLOCK.
8145 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
8146 (typy_get_dynamic): Nw function.
8147 (type_object_getset): Add "dynamic".
8148 * NEWS: Add entry.
8149
8150 2020-04-24 Tom Tromey <tromey@adacore.com>
8151
8152 * ada-typeprint.c (print_choices, print_variant_part)
8153 (print_record_field_types_dynamic): New functions.
8154 (print_record_field_types): Use print_record_field_types_dynamic.
8155
8156 2020-04-24 Tom Tromey <tromey@adacore.com>
8157
8158 * dwarf2/read.c (handle_data_member_location): New overload.
8159 (dwarf2_add_field): Use it.
8160 (decode_locdesc): Add "computed" parameter. Update comment.
8161 * gdbtypes.c (is_dynamic_type_internal): Also look for
8162 FIELD_LOC_KIND_DWARF_BLOCK.
8163 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
8164 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
8165 virtual base classes.
8166 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
8167 FIELD_LOC_KIND_DWARF_BLOCK.
8168
8169 2020-04-24 Tom Tromey <tromey@adacore.com>
8170
8171 * dwarf2/read.c (read_structure_type): Handle dynamic length.
8172 * gdbtypes.c (is_dynamic_type_internal): Check
8173 TYPE_HAS_DYNAMIC_LENGTH.
8174 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
8175 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
8176 New macros.
8177 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
8178 constant.
8179
8180 2020-04-24 Tom Tromey <tromey@adacore.com>
8181
8182 * dwarf2/read.c (struct variant_field): Rewrite.
8183 (struct variant_part_builder): New.
8184 (struct nextfield): Remove "variant" field. Add "offset".
8185 (struct field_info): Add "current_variant_part" and
8186 "variant_parts".
8187 (alloc_discriminant_info): Remove.
8188 (alloc_rust_variant): New function.
8189 (quirk_rust_enum): Update.
8190 (dwarf2_add_field): Set "offset" member. Don't handle
8191 DW_TAG_variant_part.
8192 (offset_map_type): New typedef.
8193 (convert_variant_range, create_one_variant)
8194 (create_one_variant_part, create_variant_parts)
8195 (add_variant_property): New functions.
8196 (dwarf2_attach_fields_to_type): Call add_variant_property.
8197 (read_structure_type): Don't handle DW_TAG_variant_part.
8198 (handle_variant_part, handle_variant): New functions.
8199 (handle_struct_member_die): Use them.
8200 (process_structure_scope): Don't handle variant parts.
8201 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
8202 (struct discriminant_info): Remove.
8203 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
8204 (struct main_type) <flag_discriminated_union>: Remove.
8205 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
8206 (rust_enum_variant): Return int. Remove "contents". Rewrite.
8207 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
8208 Update.
8209 * valops.c (value_union_variant): Remove.
8210 * value.h (value_union_variant): Don't declare.
8211
8212 2020-04-24 Tom Tromey <tromey@adacore.com>
8213
8214 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
8215 (ada_value_primitive_packed_val): Update.
8216 * ada-valprint.c (ada_value_print_1): Update.
8217 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
8218 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
8219 just an address. Use evaluate_for_locexpr_baton.
8220 (dwarf2_evaluate_property): Update.
8221 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
8222 array_view.
8223 * findvar.c (default_read_var_value): Update.
8224 * gdbtypes.c (compute_variant_fields_inner)
8225 (resolve_dynamic_type_internal): Update.
8226 (resolve_dynamic_type): Change type of valaddr parameter.
8227 * gdbtypes.h (resolve_dynamic_type): Update.
8228 * valarith.c (value_subscripted_rvalue): Update.
8229 * value.c (value_from_contents_and_address): Update.
8230
8231 2020-04-24 Tom Tromey <tromey@adacore.com>
8232
8233 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
8234 "push_initial_value" parameter.
8235 (dwarf2_evaluate_property): Likewise.
8236 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
8237
8238 2020-04-24 Tom Tromey <tromey@adacore.com>
8239
8240 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
8241 (variant::matches, compute_variant_fields_recurse)
8242 (compute_variant_fields_inner, compute_variant_fields): New
8243 functions.
8244 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
8245 Use resolved_type after type is made.
8246 (operator==): Add new cases.
8247 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
8248 (struct discriminant_range, struct variant, struct variant_part):
8249 New.
8250 (union dynamic_prop_data) <variant_parts, original_type>: New
8251 members.
8252 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
8253 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
8254 constants.
8255 * value.c (unpack_bits_as_long): Now public.
8256 * value.h (unpack_bits_as_long): Declare.
8257
8258 2020-04-24 Tom Tromey <tromey@adacore.com>
8259
8260 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
8261 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
8262
8263 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
8264
8265 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
8266
8267 2020-04-24 Kamil Rytarowski <n54@gmx.com>
8268
8269 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
8270 (remove_fork_catchpoint, post_startup_inferior)
8271 (post_attach): Move...
8272 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
8273 (remove_fork_catchpoint, post_startup_inferior)
8274 (post_attach): ...here.
8275 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
8276 (remove_fork_catchpoint, post_startup_inferior)
8277 (post_attach): Move...
8278 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
8279 (remove_fork_catchpoint, post_startup_inferior)
8280 (post_attach): ...here.
8281
8282 2020-04-24 Tom Tromey <tromey@adacore.com>
8283
8284 * nat/windows-nat.h (struct windows_thread_info)
8285 <pc_adjusted>: New member.
8286 * windows-nat.c (windows_fetch_one_register): Check
8287 pc_adjusted.
8288 (windows_nat_target::get_windows_debug_event)
8289 (windows_nat_target::wait): Set pc_adjusted.
8290
8291 2020-04-24 Tom de Vries <tdevries@suse.de>
8292
8293 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
8294 Run gdb-add-index inside temp dir.
8295
8296 2020-04-23 Tom Tromey <tromey@adacore.com>
8297
8298 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
8299 in loop.
8300
8301 2020-04-23 Luis Machado <luis.machado@linaro.org>
8302
8303 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
8304 get_frame_register instead of gdbarch_unwind_pc.
8305
8306 2020-04-23 Tom de Vries <tdevries@suse.de>
8307
8308 * symtab.c (lookup_global_symbol): Prefer def over decl.
8309
8310 2020-04-23 Tom de Vries <tdevries@suse.de>
8311
8312 PR symtab/25807
8313 * block.c (best_symbol, better_symbol): Promote to external.
8314 * block.h (best_symbol, better_symbol): Declare.
8315 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
8316 decl.
8317
8318 2020-04-23 Tom Tromey <tromey@adacore.com>
8319
8320 PR ada/25837:
8321 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
8322 "const char *", not a "const std::string &".
8323 <name_and_matcher::operator==>: Update.
8324 * unittests/lookup_name_info-selftests.c: Change type of
8325 "result".
8326
8327 2020-04-23 Tom Tromey <tom@tromey.com>
8328
8329 * inferior.h (iterate_over_inferiors): Don't declare.
8330 * inferior.c (iterate_over_inferiors): Remove.
8331 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
8332 Remove.
8333 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
8334 use iterate_over_inferiors.
8335 (darwin_resume_inferior_it)
8336 (struct resume_inferior_threads_param)
8337 (darwin_resume_inferior_threads_it): Remove.
8338 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
8339
8340 2020-04-23 Tom de Vries <tdevries@suse.de>
8341
8342 * blockframe.c (find_pc_partial_function): Use
8343 find_pc_sect_compunit_symtab rather than
8344 objfile->sf->qf->find_pc_sect_compunit_symtab.
8345
8346 2020-04-22 Tom de Vries <tdevries@suse.de>
8347
8348 PR symtab/25764
8349 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
8350 in psymtabs.
8351
8352 2020-04-22 Tom de Vries <tdevries@suse.de>
8353
8354 PR symtab/25801
8355 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
8356 symtabs.
8357
8358 2020-04-22 Tom de Vries <tdevries@suse.de>
8359
8360 PR symtab/25700
8361 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
8362 CU if already created.
8363
8364 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8365
8366 * infrun.c (displaced_step_fixup): Switch to the event_thread
8367 before calling displaced_step_restore, not after.
8368
8369 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
8370
8371 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
8372 its inferior is not recorded by us.
8373 (record_btrace_target_open): Replace call to
8374 all_non_exited_threads () with call to current_inferior
8375 ()->non_exited_threads ().
8376 (record_btrace_target::stop_recording): Likewise.
8377 (record_btrace_target::close): Likewise.
8378 (record_btrace_target::wait): Likewise.
8379 (record_btrace_target::record_stop_replaying): Likewise.
8380
8381 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
8382
8383 * btrace.c (btrace_enable): Throw an error on double enables and
8384 when enabling recording fails.
8385 (btrace_disable): Throw an error if the thread is not recorded.
8386
8387 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
8388
8389 * record-btrace.c (record_btrace_target::fetch_registers): Forward
8390 request if we do not have a thread_info.
8391
8392 2020-04-21 Tom de Vries <tdevries@suse.de>
8393
8394 PR gdb/25471
8395 * thread.c
8396 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
8397 exception in get_frame_id.
8398
8399 2020-04-20 Tom Tromey <tromey@adacore.com>
8400
8401 * python/python.c (struct gdbpy_event): Mark move constructor as
8402 noexcept.
8403 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
8404 constructor as noexcept.
8405 * completer.h (struct completion_result): Mark move constructor as
8406 noexcept.
8407 * completer.c (completion_result::completion_result): Use
8408 initialization style. Don't call reset_match_list.
8409
8410 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
8411
8412 * MAINTAINERS (Write After Approval): Add myself.
8413
8414 2020-04-18 Tom Tromey <tom@tromey.com>
8415
8416 * windows-tdep.c (init_w32_command_list)
8417 (w32_prefix_command_valid): Restore.
8418 (_initialize_windows_tdep): Call init_w32_command_list.
8419
8420 2020-04-18 Tom Tromey <tom@tromey.com>
8421
8422 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
8423 * value.c (value_fn_field): Update.
8424 * valops.c (find_function_in_inferior)
8425 (value_allocate_space_in_inferior): Update.
8426 * tui/tui-winsource.c (tui_update_source_windows_with_line):
8427 Update.
8428 * tui/tui-source.c (tui_source_window::set_contents): Update.
8429 * symtab.c (lookup_global_or_static_symbol)
8430 (find_function_start_sal_1, skip_prologue_sal)
8431 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
8432 * symmisc.c (dump_msymbols, dump_symtab_1)
8433 (maintenance_print_one_line_table): Update.
8434 * symfile.c (init_entry_point_info, section_is_mapped)
8435 (list_overlays_command, simple_read_overlay_table)
8436 (simple_overlay_update_1): Update.
8437 * stap-probe.c (handle_stap_probe): Update.
8438 * stabsread.c (dbx_init_float_type, define_symbol)
8439 (read_one_struct_field, read_enum_type, read_range_type): Update.
8440 * source.c (info_line_command): Update.
8441 * python/python.c (gdbpy_source_objfile_script)
8442 (gdbpy_execute_objfile_script): Update.
8443 * python/py-type.c (save_objfile_types): Update.
8444 * python/py-objfile.c (py_free_objfile): Update.
8445 * python/py-inferior.c (python_new_objfile): Update.
8446 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
8447 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
8448 (maintenance_check_psymtabs): Update.
8449 * printcmd.c (info_address_command): Update.
8450 * objfiles.h (struct objfile) <arch>: New method, from
8451 get_objfile_arch.
8452 (get_objfile_arch): Don't declare.
8453 * objfiles.c (get_objfile_arch): Remove.
8454 (filter_overlapping_sections): Update.
8455 * minsyms.c (msymbol_is_function): Update.
8456 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
8457 (output_nondebug_symbol): Update.
8458 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
8459 (mdebug_expand_psymtab): Update.
8460 * machoread.c (macho_add_oso_symfile): Update.
8461 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
8462 Update.
8463 * linux-fork.c (checkpoint_command): Update.
8464 * linespec.c (convert_linespec_to_sals): Update.
8465 * jit.c (finalize_symtab): Update.
8466 * infrun.c (insert_exception_resume_from_probe): Update.
8467 * ia64-tdep.c (ia64_find_unwind_table): Update.
8468 * hppa-tdep.c (internalize_unwinds): Update.
8469 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
8470 Update.
8471 * gcore.c (call_target_sbrk): Update.
8472 * elfread.c (record_minimal_symbol, elf_symtab_read)
8473 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
8474 (elf_gnu_ifunc_resolve_by_got): Update.
8475 * dwarf2/read.c (create_addrmap_from_index)
8476 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
8477 (read_debug_names_from_section)
8478 (process_psymtab_comp_unit_reader, add_partial_symbol)
8479 (add_partial_subprogram, process_full_comp_unit)
8480 (read_file_scope, read_func_scope, read_lexical_block_scope)
8481 (read_call_site_scope, dwarf2_ranges_read)
8482 (dwarf2_record_block_ranges, dwarf2_add_field)
8483 (mark_common_block_symbol_computed, read_tag_pointer_type)
8484 (read_tag_string_type, dwarf2_init_float_type)
8485 (dwarf2_init_complex_target_type, read_base_type)
8486 (partial_die_info::read, partial_die_info::read)
8487 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
8488 (dwarf2_fetch_die_loc_sect_off): Update.
8489 * dwarf2/loc.c (dwarf2_find_location_expression)
8490 (class dwarf_evaluate_loc_desc, rw_pieced_value)
8491 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
8492 (dwarf2_loc_desc_get_symbol_read_needs)
8493 (locexpr_describe_location_piece, locexpr_describe_location_1)
8494 (loclist_describe_location): Update.
8495 * dwarf2/index-write.c (write_debug_names): Update.
8496 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
8497 * dtrace-probe.c (dtrace_process_dof): Update.
8498 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
8499 (process_one_symbol): Update.
8500 * ctfread.c (ctf_init_float_type, read_base_type): Update.
8501 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
8502 (coff_read_enum_type): Update.
8503 * cli/cli-cmds.c (edit_command, list_command): Update.
8504 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
8505 * breakpoint.c (create_overlay_event_breakpoint)
8506 (create_longjmp_master_breakpoint)
8507 (create_std_terminate_master_breakpoint)
8508 (create_exception_master_breakpoint, get_sal_arch): Update.
8509 * block.c (block_gdbarch): Update.
8510 * annotate.c (annotate_source_line): Update.
8511
8512 2020-04-17 Tom Tromey <tromey@adacore.com>
8513
8514 * auto-load.c (show_auto_load_cmd): Remove.
8515 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
8516 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
8517 (maintenance_print_arc_command): Remove.
8518 * tui/tui-win.c (tui_command): Remove.
8519 (tui_get_cmd_list): Use add_basic_prefix_cmd.
8520 * tui/tui-layout.c (tui_layout_command): Remove.
8521 (_initialize_tui_layout): Use add_basic_prefix_cmd.
8522 * python/python.c (user_set_python, user_show_python): Remove.
8523 (_initialize_python): Use add_basic_prefix_cmd,
8524 add_show_prefix_cmd.
8525 * guile/guile.c (set_guile_command, show_guile_command): Remove.
8526 (install_gdb_commands): Use add_basic_prefix_cmd,
8527 add_show_prefix_cmd.
8528 (info_guile_command): Remove.
8529 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
8530 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
8531 add_show_prefix_cmd.
8532 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
8533 Remove do_set and do_show parameters.
8534 * cli/cli-style.c (set_style, show_style): Remove.
8535 (_initialize_cli_style): Use add_basic_prefix_cmd,
8536 add_show_prefix_cmd.
8537 (cli_style_option::add_setshow_commands): Remove do_set and
8538 do_show parameters.
8539 (cli_style_option::add_setshow_commands): Use
8540 add_basic_prefix_cmd, add_show_prefix_cmd.
8541 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
8542 (set_style_name): Remove.
8543 * cli/cli-dump.c (dump_command, append_command): Remove.
8544 (srec_dump_command, ihex_dump_command, verilog_dump_command)
8545 (tekhex_dump_command, binary_dump_command)
8546 (binary_append_command): Remove.
8547 (_initialize_cli_dump): Use add_basic_prefix_cmd.
8548 * windows-tdep.c (w32_prefix_command_valid): Remove global.
8549 (init_w32_command_list): Remove; move into ...
8550 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
8551 * valprint.c (set_print, show_print, set_print_raw)
8552 (show_print_raw): Remove.
8553 (_initialize_valprint): Use add_basic_prefix_cmd,
8554 add_show_prefix_cmd.
8555 * typeprint.c (set_print_type, show_print_type): Remove.
8556 (_initialize_typeprint): Use add_basic_prefix_cmd,
8557 add_show_prefix_cmd.
8558 * record.c (set_record_command, show_record_command): Remove.
8559 (_initialize_record): Use add_basic_prefix_cmd,
8560 add_show_prefix_cmd.
8561 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
8562 add_show_prefix_cmd.
8563 (info_command, show_command, set_debug, show_debug): Remove.
8564 * top.h (set_history, show_history): Don't declare.
8565 * top.c (set_history, show_history): Remove.
8566 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
8567 (unset_tdesc_cmd): Remove.
8568 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
8569 add_show_prefix_cmd.
8570 * symtab.c (info_module_command): Remove.
8571 (_initialize_symtab): Use add_basic_prefix_cmd.
8572 * symfile.c (overlay_command): Remove.
8573 (_initialize_symfile): Use add_basic_prefix_cmd.
8574 * sparc64-tdep.c (info_adi_command): Remove.
8575 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
8576 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
8577 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
8578 add_show_prefix_cmd.
8579 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
8580 (_initialize_serial): Use add_basic_prefix_cmd,
8581 add_show_prefix_cmd.
8582 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
8583 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
8584 add_show_prefix_cmd.
8585 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
8586 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
8587 add_show_prefix_cmd.
8588 * riscv-tdep.c (show_riscv_command, set_riscv_command)
8589 (show_debug_riscv_command, set_debug_riscv_command): Remove.
8590 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
8591 add_show_prefix_cmd.
8592 * remote.c (remote_command, set_remote_cmd): Remove.
8593 (_initialize_remote): Use add_basic_prefix_cmd.
8594 * record-full.c (set_record_full_command)
8595 (show_record_full_command): Remove.
8596 (_initialize_record_full): Use add_basic_prefix_cmd,
8597 add_show_prefix_cmd.
8598 * record-btrace.c (cmd_set_record_btrace)
8599 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
8600 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
8601 (cmd_show_record_btrace_pt): Remove.
8602 (_initialize_record_btrace): Use add_basic_prefix_cmd,
8603 add_show_prefix_cmd.
8604 * ravenscar-thread.c (set_ravenscar_command)
8605 (show_ravenscar_command): Remove.
8606 (_initialize_ravenscar): Use add_basic_prefix_cmd,
8607 add_show_prefix_cmd.
8608 * mips-tdep.c (show_mips_command, set_mips_command)
8609 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
8610 add_show_prefix_cmd.
8611 * maint.c (maintenance_command, maintenance_info_command)
8612 (maintenance_check_command, maintenance_print_command)
8613 (maintenance_set_cmd, maintenance_show_cmd): Remove.
8614 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
8615 add_show_prefix_cmd.
8616 (show_per_command_cmd): Remove.
8617 * maint-test-settings.c (maintenance_set_test_settings_cmd):
8618 Remove.
8619 (maintenance_show_test_settings_cmd): Remove.
8620 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
8621 add_show_prefix_cmd.
8622 * maint-test-options.c (maintenance_test_options_command):
8623 Remove.
8624 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
8625 * macrocmd.c (macro_command): Remove
8626 (_initialize_macrocmd): Use add_basic_prefix_cmd.
8627 * language.c (set_check, show_check): Remove.
8628 (_initialize_language): Use add_basic_prefix_cmd,
8629 add_show_prefix_cmd.
8630 * infcmd.c (unset_command): Remove.
8631 (_initialize_infcmd): Use add_basic_prefix_cmd.
8632 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
8633 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
8634 add_show_prefix_cmd.
8635 * go32-nat.c (go32_info_dos_command): Remove.
8636 (_initialize_go32_nat): Use add_basic_prefix_cmd.
8637 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
8638 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
8639 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
8640 (_initialize_frame): Use add_basic_prefix_cmd,
8641 add_show_prefix_cmd.
8642 * dcache.c (set_dcache_command, show_dcache_command): Remove.
8643 (_initialize_dcache): Use add_basic_prefix_cmd,
8644 add_show_prefix_cmd.
8645 * cp-support.c (maint_cplus_command): Remove.
8646 (_initialize_cp_support): Use add_basic_prefix_cmd.
8647 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
8648 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
8649 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
8650 add_basic_prefix_cmd, add_show_prefix_cmd.
8651 * breakpoint.c (save_command): Remove.
8652 (_initialize_breakpoint): Use add_basic_prefix_cmd.
8653 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
8654 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
8655 add_show_prefix_cmd.
8656 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
8657 (set_ada_command, show_ada_command): Remove.
8658 (_initialize_ada_language): Use add_basic_prefix_cmd,
8659 add_show_prefix_cmd.
8660 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
8661
8662 2020-04-16 Kamil Rytarowski <n54@gmx.com>
8663
8664 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
8665 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
8666
8667 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
8668
8669 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
8670 warning messages.
8671
8672 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
8673
8674 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
8675 import table is not at beginning of .idata section.
8676
8677 2020-04-16 Pedro Alves <palves@redhat.com>
8678
8679 * inferior.c (delete_inferior): Use delete operator directly
8680 instead of delete_program_space.
8681 * progspace.c (add_program_space): New, factored out from
8682 program_space::program_space.
8683 (remove_program_space): New, factored out from
8684 delete_program_space.
8685 (program_space::program_space): Remove intro comment. Rewrite.
8686 (program_space::~program_space): Remove intro comment. Call
8687 remove_program_space.
8688 (delete_program_space): Delete.
8689 * progspace.h (program_space::program_space): Make explicit. Move
8690 intro comment here, adjusted.
8691 (program_space::~program_space): Move intro comment here,
8692 adjusted.
8693 (delete_program_space): Remove.
8694
8695 2020-04-16 Tom Tromey <tromey@adacore.com>
8696
8697 * windows-nat.c (windows_nat::handle_access_violation): New
8698 function.
8699 * nat/windows-nat.h (handle_access_violation): Declare.
8700 * nat/windows-nat.c (handle_exception): Move Cygwin code to
8701 windows-nat.c. Call handle_access_violation.
8702
8703 2020-04-16 Tom de Vries <tdevries@suse.de>
8704
8705 PR symtab/25791
8706 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
8707 CUs without psymtab.
8708
8709 2020-04-16 Kevin Buettner <kevinb@redhat.com>
8710
8711 * python/python.c (do_start_initialization): Don't call
8712 PyEval_InitThreads for Python 3.9 and beyond.
8713
8714 2020-04-15 Kamil Rytarowski <n54@gmx.com>
8715
8716 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
8717 thread functions.
8718 (obsd_nat_target::wait): Likewise.
8719
8720 2020-04-15 Tom Tromey <tromey@adacore.com>
8721
8722 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
8723 (DEBUG_EXCEPT): Use debug_printf.
8724
8725 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
8726
8727 * completer.c (class completion_tracker::completion_hash_entry)
8728 <hash_name>: New member function.
8729 (completion_tracker::discard_completions): New callback to hash a
8730 completion_hash_entry, pass this to htab_create_alloc.
8731
8732 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
8733
8734 * windows-nat.c (windows_make_so): Warn rather than stopping with
8735 an error if realpath() fails.
8736
8737 2020-04-14 Kamil Rytarowski <n54@gmx.com>
8738
8739 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
8740 (nbsd_nat_target::info_proc): Add do_status.
8741
8742 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
8743 Tom de Vries <tdevries@suse.de>
8744
8745 PR symtab/25718
8746 * psympriv.h (struct partial_symtab::read_symtab)
8747 (struct partial_symtab::expand_psymtab)
8748 (struct partial_symtab::read_dependencies): Update comments.
8749 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
8750 read_symtab for includer.
8751 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
8752 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
8753 (struct dwarf2_include_psymtab::m_readin): Remove.
8754 (struct dwarf2_include_psymtab::includer): New member function.
8755 (dwarf2_psymtab::expand_psymtab): Assert !readin.
8756
8757 2020-04-14 Tom de Vries <tdevries@suse.de>
8758
8759 PR symtab/25720
8760 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
8761 with NULL symbol_matcher and lookup_name.
8762 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
8763 and lookup_name.
8764 * dwarf2/read.c (dw2_expand_symtabs_matching)
8765 (dw2_debug_names_expand_symtabs_matching): Same.
8766 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
8767 Make lookup_name a pointer. Update comment.
8768 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
8769 lookup_name being a pointer.
8770 * symfile.c (expand_symtabs_matching): Same.
8771 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
8772 * linespec.c (iterate_over_all_matching_symtabs): Same.
8773
8774 2020-04-13 Tom Tromey <tom@tromey.com>
8775
8776 * run-on-main-thread.c: Update include.
8777 * unittests/main-thread-selftests.c: Update include.
8778 * tui/tui-win.c: Update include.
8779 * tui/tui-io.c: Update include.
8780 * tui/tui-interp.c: Update include.
8781 * tui/tui-hooks.c: Update include.
8782 * top.h: Update include.
8783 * top.c: Update include.
8784 * ser-base.c: Update include.
8785 * remote.c: Update include.
8786 * remote-notif.c: Update include.
8787 * remote-fileio.c: Update include.
8788 * record-full.c: Update include.
8789 * record-btrace.c: Update include.
8790 * python/python.c: Update include.
8791 * posix-hdep.c: Update include.
8792 * mingw-hdep.c: Update include.
8793 * mi/mi-main.c: Update include.
8794 * mi/mi-interp.c: Update include.
8795 * main.c: Update include.
8796 * linux-nat.c: Update include.
8797 * interps.c: Update include.
8798 * infrun.c: Update include.
8799 * inf-loop.c: Update include.
8800 * event-top.c: Update include.
8801 * event-loop.c: Move to ../gdbsupport/.
8802 * event-loop.h: Move to ../gdbsupport/.
8803 * async-event.h: Update include.
8804 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
8805
8806 2020-04-13 Tom Tromey <tom@tromey.com>
8807
8808 * tui/tui-win.c: Include async-event.h.
8809 * remote.c: Include async-event.h.
8810 * remote-notif.c: Include async-event.h.
8811 * record-full.c: Include async-event.h.
8812 * record-btrace.c: Include async-event.h.
8813 * infrun.c: Include async-event.h.
8814 * event-top.c: Include async-event.h.
8815 * event-loop.h: Move some declarations to async-event.h.
8816 * event-loop.c: Don't include ser-event.h or top.h. Move some
8817 code to async-event.c.
8818 * async-event.h: New file.
8819 * async-event.c: New file.
8820 * Makefile.in (COMMON_SFILES): Add async-event.c.
8821 (HFILES_NO_SRCDIR): Add async-event.h.
8822
8823 2020-04-13 Tom Tromey <tom@tromey.com>
8824
8825 * utils.c (flush_streams): New function.
8826 * event-loop.c (gdb_wait_for_event): Call flush_streams.
8827
8828 2020-04-13 Tom Tromey <tom@tromey.com>
8829
8830 * event-loop.c (handle_file_event): Use warning, not
8831 printf_unfiltered.
8832
8833 2020-04-13 Tom Tromey <tom@tromey.com>
8834
8835 * event-loop.c: Include <chrono>.
8836
8837 2020-04-13 Tom Tromey <tom@tromey.com>
8838
8839 * gdb_select.h: Move to ../gdbsupport/.
8840 * event-loop.c: Update include path.
8841 * top.c: Update include path.
8842 * ser-base.c: Update include path.
8843 * ui-file.c: Update include path.
8844 * ser-tcp.c: Update include path.
8845 * guile/scm-ports.c: Update include path.
8846 * posix-hdep.c: Update include path.
8847 * ser-unix.c: Update include path.
8848 * gdb_usleep.c: Update include path.
8849 * mingw-hdep.c: Update include path.
8850 * inflow.c: Update include path.
8851 * infrun.c: Update include path.
8852 * event-top.c: Update include path.
8853
8854 2020-04-13 Tom Tromey <tom@tromey.com>
8855
8856 * configure: Rebuild.
8857 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
8858
8859 2020-04-13 Tom Tromey <tom@tromey.com>
8860
8861 * event-loop.h (start_event_loop): Don't declare.
8862 * event-loop.c (start_event_loop): Move...
8863 * main.c (start_event_loop): ...here. Now static.
8864
8865 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
8866
8867 * MAINTAINERS: Update my email address.
8868
8869 2020-04-12 Kamil Rytarowski <n54@gmx.com>
8870
8871 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
8872 IP_ALL.
8873
8874 2020-04-12 Kamil Rytarowski <n54@gmx.com>
8875
8876 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
8877 (nbsd_nat_target::info_proc): Add do_cmdline.
8878
8879 2020-04-12 Kamil Rytarowski <n54@gmx.com>
8880
8881 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
8882 (nbsd_nat_target::info_proc): Add do_cwd.
8883
8884 2020-04-12 Kamil Rytarowski <n54@gmx.com>
8885
8886 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
8887
8888 2020-04-11 Kamil Rytarowski <n54@gmx.com>
8889
8890 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
8891 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
8892 (nbsd_nat_target::info_proc): New functions.
8893 * nbsd-nat.c (kinfo_get_vmmap): New function.
8894 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
8895 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
8896 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
8897 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
8898 functions.
8899 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
8900 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
8901 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
8902 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
8903 (KINFO_VME_FLAG_GROWS_DOWN): New.
8904
8905 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
8906
8907 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
8908 bit shift.
8909
8910 2020-04-10 Tom Tromey <tromey@adacore.com>
8911
8912 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
8913
8914 2020-04-10 Tom Tromey <tromey@adacore.com>
8915
8916 * symtab.c (get_symbol_address, get_msymbol_address): Skip
8917 separate debug files.
8918
8919 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
8920
8921 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
8922 Move to...
8923 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
8924 ... here.
8925 * windows-nat.c (windows_nat_target::get_windows_debug_event):
8926 Check for STATUS_WX86_BREAKPOINT.
8927 (windows_nat_target::wait): Same.
8928
8929 2020-04-10 Tom de Vries <tdevries@suse.de>
8930
8931 PR cli/25808
8932 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
8933
8934 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
8935
8936 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
8937 (Write After Approval): Remove Tom de Vries.
8938
8939 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
8940
8941 revert partially:
8942 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8943
8944 * buildsym.c (record_line): Fix undefined behavior and preserve
8945 lines at eof.
8946
8947 2020-04-09 Kamil Rytarowski <n54@gmx.com>
8948
8949 * auxv.h (svr4_auxv_parse): New.
8950 * auxv.c (default_auxv_parse): Split into default_auxv_parse
8951 and generic_auxv_parse.
8952 (svr4_auxv_parse): Add.
8953 * obsd-tdep.c: Include "auxv.h".
8954 (obsd_auxv_parse): Remove.
8955 (obsd_init_abi): Remove comment.
8956 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
8957 from `obsd_auxv_parse' to `svr4_auxv_parse'.
8958 * nbsd-tdep.c: Include "auxv.h".
8959 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
8960
8961 2020-04-08 Tom Tromey <tromey@adacore.com>
8962
8963 * nat/windows-nat.h (last_wait_event): Don't declare.
8964 (wait_for_debug_event): Update comment.
8965 * nat/windows-nat.c (last_wait_event): Now static.
8966
8967 2020-04-08 Tom Tromey <tromey@adacore.com>
8968
8969 * windows-nat.c (wait_for_debug_event): Move to
8970 nat/windows-nat.c.
8971 * nat/windows-nat.h (wait_for_debug_event): Declare.
8972 * nat/windows-nat.c (wait_for_debug_event): Move from
8973 windows-nat.c. No longer static.
8974
8975 2020-04-08 Tom Tromey <tromey@adacore.com>
8976
8977 * windows-nat.c (get_windows_debug_event): Use
8978 fetch_pending_stop.
8979 * nat/windows-nat.h (fetch_pending_stop): Declare.
8980 * nat/windows-nat.c (fetch_pending_stop): New function.
8981
8982 2020-04-08 Tom Tromey <tromey@adacore.com>
8983
8984 * windows-nat.c (windows_continue): Use matching_pending_stop and
8985 continue_last_debug_event.
8986 * nat/windows-nat.h (matching_pending_stop)
8987 (continue_last_debug_event): Declare.
8988 * nat/windows-nat.c (DEBUG_EVENTS): New define.
8989 (matching_pending_stop, continue_last_debug_event): New
8990 functions.
8991
8992 2020-04-08 Tom Tromey <tromey@adacore.com>
8993
8994 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
8995 (handle_exception_result): Move to nat/windows-nat.h.
8996 (DEBUG_EXCEPTION_SIMPLE): Remove.
8997 (windows_nat::handle_ms_vc_exception): New function.
8998 (handle_exception): Move to nat/windows-nat.c.
8999 (get_windows_debug_event): Update.
9000 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
9001 nat/windows-nat.c.
9002 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
9003 (handle_exception_result): Move from windows-nat.c.
9004 (handle_exception): Declare.
9005 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
9006 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
9007 windows-nat.c.
9008
9009 2020-04-08 Tom Tromey <tromey@adacore.com>
9010
9011 * windows-nat.c (exception_count, event_count): Remove.
9012 (handle_exception, get_windows_debug_event)
9013 (do_initial_windows_stuff): Update.
9014
9015 2020-04-08 Tom Tromey <tromey@adacore.com>
9016
9017 * windows-nat.c (windows_nat::handle_load_dll)
9018 (windows_nat::handle_unload_dll): Rename. No longer static.
9019 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
9020 Declare.
9021
9022 2020-04-08 Tom Tromey <tromey@adacore.com>
9023
9024 * complaints.h (stop_whining): Declare at top-level.
9025 (complaint): Don't declare stop_whining.
9026
9027 2020-04-08 Tom Tromey <tromey@adacore.com>
9028
9029 * windows-nat.c (windows_nat::handle_output_debug_string):
9030 Rename. No longer static.
9031 * nat/windows-nat.h (handle_output_debug_string): Declare.
9032
9033 2020-04-08 Tom Tromey <tromey@adacore.com>
9034
9035 * windows-nat.c (current_process_handle, current_process_id)
9036 (main_thread_id, last_sig, current_event, last_wait_event)
9037 (current_windows_thread, desired_stop_thread_id, pending_stops)
9038 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
9039 (display_selectors, fake_create_process)
9040 (get_windows_debug_event): Update.
9041 * nat/windows-nat.h (current_process_handle, current_process_id)
9042 (main_thread_id, last_sig, current_event, last_wait_event)
9043 (current_windows_thread, desired_stop_thread_id, pending_stops)
9044 (struct pending_stop, siginfo_er): Move from windows-nat.c.
9045 * nat/windows-nat.c (current_process_handle, current_process_id)
9046 (main_thread_id, last_sig, current_event, last_wait_event)
9047 (current_windows_thread, desired_stop_thread_id, pending_stops)
9048 (siginfo_er): New globals. Move from windows-nat.c.
9049
9050 2020-04-08 Tom Tromey <tromey@adacore.com>
9051
9052 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
9053 (handle_load_dll): Update.
9054 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
9055
9056 2020-04-08 Tom Tromey <tromey@adacore.com>
9057
9058 * windows-nat.c (enum thread_disposition_type): Move to
9059 nat/windows-nat.h.
9060 (windows_nat::thread_rec): Rename from thread_rec. No longer
9061 static.
9062 (windows_add_thread, windows_nat_target::fetch_registers)
9063 (windows_nat_target::store_registers, handle_exception)
9064 (windows_nat_target::resume, get_windows_debug_event)
9065 (windows_nat_target::get_tib_address)
9066 (windows_nat_target::thread_name)
9067 (windows_nat_target::thread_alive): Update.
9068 * nat/windows-nat.h (enum thread_disposition_type): Move from
9069 windows-nat.c.
9070 (thread_rec): Declare.
9071
9072 2020-04-08 Tom Tromey <tromey@adacore.com>
9073
9074 * windows-nat.c: Add "using namespace".
9075 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
9076 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
9077
9078 2020-04-08 Tom Tromey <tromey@adacore.com>
9079
9080 * nat/windows-nat.h (struct windows_thread_info): Declare
9081 destructor.
9082 * nat/windows-nat.c (~windows_thread_info): New.
9083
9084 2020-04-08 Tom Tromey <tromey@adacore.com>
9085
9086 PR gdb/22992
9087 * windows-nat.c (current_event): Update comment.
9088 (last_wait_event, desired_stop_thread_id): New globals.
9089 (struct pending_stop): New.
9090 (pending_stops): New global.
9091 (windows_nat_target) <stopped_by_sw_breakpoint>
9092 <supports_stopped_by_sw_breakpoint>: New methods.
9093 (windows_fetch_one_register): Add assertions. Adjust PC.
9094 (windows_continue): Handle pending stops. Suspend other threads
9095 when stepping. Use last_wait_event
9096 (wait_for_debug_event): New function.
9097 (get_windows_debug_event): Use wait_for_debug_event. Handle
9098 pending stops. Queue spurious stops.
9099 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
9100 (windows_nat_target::kill): Use wait_for_debug_event.
9101 * nat/windows-nat.h (struct windows_thread_info)
9102 <stopped_at_software_breakpoint>: New field.
9103 * nat/windows-nat.c (windows_thread_info::resume): Clear
9104 stopped_at_software_breakpoint.
9105
9106 2020-04-08 Tom Tromey <tromey@adacore.com>
9107
9108 * windows-nat.c (enum thread_disposition_type): New.
9109 (thread_rec): Replace "get_context" parameter with "disposition";
9110 change type.
9111 (windows_add_thread, windows_nat_target::fetch_registers)
9112 (windows_nat_target::store_registers, handle_exception)
9113 (windows_nat_target::resume, get_windows_debug_event)
9114 (windows_nat_target::get_tib_address)
9115 (windows_nat_target::thread_name)
9116 (windows_nat_target::thread_alive): Update.
9117
9118 2020-04-08 Tom Tromey <tromey@adacore.com>
9119
9120 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
9121 (windows_continue): Use windows_continue::resume.
9122 * nat/windows-nat.h (struct windows_thread_info) <suspend,
9123 resume>: Declare new methods.
9124 * nat/windows-nat.c: New file.
9125 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
9126
9127 2020-04-08 Tom Tromey <tromey@adacore.com>
9128
9129 * windows-nat.c (windows_add_thread, windows_delete_thread)
9130 (windows_nat_target::fetch_registers)
9131 (windows_nat_target::store_registers, fake_create_process)
9132 (windows_nat_target::resume, windows_nat_target::resume)
9133 (get_windows_debug_event, windows_nat_target::wait)
9134 (windows_nat_target::pid_to_str)
9135 (windows_nat_target::get_tib_address)
9136 (windows_nat_target::get_ada_task_ptid)
9137 (windows_nat_target::thread_name)
9138 (windows_nat_target::thread_alive): Use lwp, not tid.
9139
9140 2020-04-08 Tom Tromey <tromey@adacore.com>
9141
9142 * windows-nat.c (handle_exception)
9143 (windows_nat_target::thread_name): Update.
9144 * nat/windows-nat.h (windows_thread_info): Remove destructor.
9145 <name>: Now unique_xmalloc_ptr.
9146
9147 2020-04-08 Tom Tromey <tromey@adacore.com>
9148
9149 * windows-nat.c (thread_rec)
9150 (windows_nat_target::fetch_registers): Update.
9151 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
9152 Update comment.
9153 <debug_registers_changed, reload_context>: Now bool.
9154
9155 2020-04-08 Tom Tromey <tromey@adacore.com>
9156
9157 * windows-nat.c (windows_add_thread): Use new.
9158 (windows_init_thread_list, windows_delete_thread): Use delete.
9159 (get_windows_debug_event): Update.
9160 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
9161 destructor, and initializers.
9162
9163 2020-04-08 Tom Tromey <tromey@adacore.com>
9164
9165 * windows-nat.c (struct windows_thread_info): Remove.
9166 * nat/windows-nat.h: New file.
9167
9168 2020-04-08 Tom Tromey <tromey@adacore.com>
9169
9170 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
9171 (thread_rec, windows_add_thread, windows_delete_thread)
9172 (windows_continue): Update.
9173
9174 2020-04-08 Tom Tromey <tromey@adacore.com>
9175
9176 * windows-nat.c (struct windows_thread_info): Remove typedef.
9177 (thread_head): Remove.
9178 (thread_list): New global.
9179 (thread_rec, windows_add_thread, windows_init_thread_list)
9180 (windows_delete_thread, windows_continue): Update.
9181
9182 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
9183
9184 * windows-tdep.h (windows_init_abi): Add comment.
9185 (cygwin_init_abi): New declaration.
9186 * windows-tdep.c: Split signal enumeration in two, one for
9187 Windows and one for Cygwin.
9188 (windows_gdb_signal_to_target): Only deal with signal of the
9189 Windows OS ABI.
9190 (cygwin_gdb_signal_to_target): New function.
9191 (windows_init_abi): Rename to windows_init_abi_common, don't set
9192 gdb_signal_to_target gdbarch method. Add new new function with
9193 this name.
9194 (cygwin_init_abi): New function.
9195 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
9196 comment. Don't call windows_init_abi.
9197 (amd64_windows_init_abi): Add comment, call windows_init_abi.
9198 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
9199 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
9200 i386_windows_init_abi_common, don't call windows_init_abi. Add
9201 a new function of this name.
9202 (i386_cygwin_init_abi): New function.
9203 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
9204 OS ABI Cygwin.
9205
9206 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
9207
9208 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
9209 parameter.c.
9210 (dwarf2_read_gdb_index): Update.
9211
9212 2020-04-07 Kamil Rytarowski <n54@gmx.com>
9213
9214 * nbsd-tdep.c: Include "objfiles.h".
9215 (nbsd_skip_solib_resolver): New.
9216 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
9217
9218 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
9219
9220 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
9221 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
9222 with DW_LLE_base_addressx are being emitted in DWARFv5.
9223 Add the newly added kind DW_LOC_OFFSET_PAIR also.
9224 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
9225 unsigned integer.
9226
9227 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
9228
9229 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
9230 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
9231 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
9232 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
9233 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
9234 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
9235 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
9236
9237
9238 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
9239
9240 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
9241 (read_loclist_index): New function definition.
9242 (lookup_loclist_base): New function definition.
9243 (read_loclist_header): New function definition.
9244 (dwarf2_cu): Add loclist_base and loclist_header field.
9245 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
9246 (read_full_die_1): Read the value of DW_AT_loclists_base.
9247 (read_attribute_reprocess): Handle DW_FORM_loclistx.
9248 (read_attribute_value): Handle DW_FORM_loclistx.
9249 (skip_one_die): Handle DW_FORM_loclistx.
9250 (loclist_header): New structure declaration.
9251 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
9252
9253 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9254
9255 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
9256 constructor. Remove `addr` parameter from other constructor and
9257 add `per_cu` parameter.
9258 * dwarf2/read.c (create_partial_symtab): Update.
9259
9260 2020-04-07 Tom de Vries <tdevries@suse.de>
9261
9262 PR symtab/25796
9263 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
9264 (partial_die_info::fixup): Inherit has_const_value.
9265
9266 2020-04-07 Tom de Vries <tdevries@suse.de>
9267
9268 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
9269 symbols without address.
9270
9271 2020-04-06 Kamil Rytarowski <n54@gmx.com>
9272
9273 * nbsd-nat.h (struct thread_info): Add forward declaration.
9274 (nbsd_nat_target::thread_alive): Add.
9275 (nbsd_nat_target::thread_name): Likewise.
9276 (nbsd_nat_target::update_thread_list): Likewise.
9277 (update_thread_list::post_attach): Likewise.
9278 (post_attach::pid_to_str): Likewise.
9279 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
9280 (nbsd_thread_lister): Add.
9281 (nbsd_nat_target::thread_alive): Likewise.
9282 (nbsd_nat_target::thread_name): Likewise.
9283 (nbsd_add_threads): Likewise.
9284 (update_thread_list::post_attach): Likewise.
9285 (nbsd_nat_target::update_thread_list): Likewise.
9286 (post_attach::pid_to_str): Likewise.
9287
9288 2020-04-06 Tom Tromey <tromey@adacore.com>
9289
9290 * ada-valprint.c (print_variant_part): Extract the variant field.
9291 (print_field_values): Use the field as the outer value when
9292 recursing.
9293
9294 2020-04-06 Tom Tromey <tromey@adacore.com>
9295
9296 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
9297 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
9298 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
9299 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
9300 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
9301
9302 2020-04-06 Tom Tromey <tromey@adacore.com>
9303
9304 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
9305 TYPE_CODE_ERROR.
9306
9307 2020-04-06 Kamil Rytarowski <n54@gmx.com>
9308
9309 * nbsd-tdep.c: Include "gdbarch.h".
9310 Define enum with NetBSD signal numbers.
9311 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
9312 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
9313 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
9314 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
9315 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
9316 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
9317 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
9318 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
9319 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
9320 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
9321 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
9322 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
9323
9324 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
9325
9326 PR gdb/25325
9327 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
9328
9329 2020-04-03 Tom Tromey <tromey@adacore.com>
9330
9331 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
9332 Read constant block.
9333
9334 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
9335
9336 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
9337 (gdb_bfd_get_full_section_contents): New declaration.
9338 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
9339 * windows-tdep.c (is_linked_with_cygwin_dll): Use
9340 gdb_bfd_get_full_section_contents.
9341
9342 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
9343
9344 * exec.c (build_section_table): Replace internal_error with
9345 gdb_assert.
9346 (section_table_xfer_memory_partial): Likewise.
9347 * mdebugread.c (parse_partial_symbols): Likewise.
9348 * psymtab.c (lookup_partial_symbol): Likewise.
9349 * utils.c (wrap_here): Likewise.
9350
9351 2020-04-02 Tom Tromey <tromey@adacore.com>
9352
9353 * f-lang.c (build_fortran_types): Use arch_type to initialize
9354 builtin_complex_s32 in the TYPE_CODE_ERROR case.
9355
9356 2020-04-02 Tom Tromey <tromey@adacore.com>
9357
9358 * dwarf2/read.c (partial_die_info::read): Do not create a vector
9359 of attributes.
9360
9361 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
9362 Bernd Edlinger <bernd.edlinger@hotmail.de>
9363 Tom Tromey <tromey@adacore.com>
9364
9365 * buildsym.c (buildsym_compunit::record_line): Remove
9366 deduplication code.
9367
9368 2020-04-02 Tom de Vries <tdevries@suse.de>
9369
9370 PR ada/24671
9371 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
9372
9373 2020-04-02 Tom de Vries <tdevries@suse.de>
9374
9375 * dwarf2/read.c (dwarf2_gdb_index_functions,
9376 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
9377 NULL.
9378 * psymtab.c (psym_lookup_global_symbol_language): New function.
9379 (psym_functions): Init psym_lookup_global_symbol_language with
9380 psym_lookup_global_symbol_language.
9381 * symfile-debug.c (debug_sym_quick_functions): Init
9382 lookup_global_symbol_language with NULL.
9383 * symfile.c (set_initial_language): Remove fixme comment.
9384 * symfile.h (struct quick_symbol_functions): Add
9385 lookup_global_symbol_language.
9386 * symtab.c (find_quick_global_symbol_language): New function.
9387 (find_main_name): Use find_quick_global_symbol_language.
9388
9389 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
9390
9391 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
9392
9393 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
9394
9395 * buildsym.c (record_line): Fix undefined behavior and preserve
9396 lines at eof.
9397
9398 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
9399
9400 * buildsym.c (record_line): Fix the resizing condition.
9401
9402 2020-04-01 Tom Tromey <tom@tromey.com>
9403
9404 * value.h (value_literal_complex): Add comment.
9405 * valops.c (value_literal_complex): Refer to value.h.
9406
9407 2020-04-01 Tom Tromey <tom@tromey.com>
9408
9409 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
9410 (scalar_type): New rule, from typebase.
9411 (typebase): Use scalar_type. Recognize complex types.
9412 (field_name): Handle FLOAT_KEYWORD.
9413 (ident_tokens): Add _Complex and __complex__.
9414
9415 2020-04-01 Tom Tromey <tom@tromey.com>
9416
9417 PR exp/25299:
9418 * valarith.c (promotion_type, complex_binop): New functions.
9419 (scalar_binop): Handle complex numbers. Use promotion_type.
9420 (value_pos, value_neg, value_complement): Handle complex numbers.
9421
9422 2020-04-01 Tom Tromey <tom@tromey.com>
9423
9424 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
9425 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
9426 (parse_number): Handle complex numbers.
9427
9428 2020-04-01 Tom Tromey <tom@tromey.com>
9429
9430 * c-valprint.c (c_decorations): Change complex suffix to "i".
9431
9432 2020-04-01 Tom Tromey <tom@tromey.com>
9433
9434 * valprint.c (generic_value_print_complex): Use accessors.
9435 * value.h (value_real_part, value_imaginary_part): Declare.
9436 * valops.c (value_real_part, value_imaginary_part): New
9437 functions.
9438 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
9439
9440 2020-04-01 Tom Tromey <tom@tromey.com>
9441
9442 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
9443 (read_range_type): Update.
9444 * mdebugread.c (basic_type): Update.
9445 * go-lang.c (build_go_types): Use init_complex_type.
9446 * gdbtypes.h (struct main_type) <complex_type>: New member.
9447 (init_complex_type): Update.
9448 (arch_complex_type): Don't declare.
9449 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
9450 Make name if none given. Use alloc_type_copy. Look for cached
9451 complex type.
9452 (arch_complex_type): Remove.
9453 (gdbtypes_post_init): Use init_complex_type.
9454 * f-lang.c (build_fortran_types): Use init_complex_type.
9455 * dwarf2/read.c (read_base_type): Update.
9456 * d-lang.c (build_d_types): Use init_complex_type.
9457 * ctfread.c (read_base_type): Update.
9458
9459 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9460
9461 * infrun.c (stop_all_threads): Update assertion, plus when
9462 stopping threads, take into account that we might be trying
9463 to stop an all-stop target.
9464 (stop_waiting): Call 'stop_all_threads' if there exists a
9465 non-stop target.
9466
9467 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9468
9469 * target.h (exists_non_stop_target): New function declaration.
9470 * target.c (exists_non_stop_target): New function.
9471
9472 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
9473
9474 PR gdb/24789
9475 * eval.c (is_integral_or_integral_reference): New function.
9476 (evaluate_subexp_standard): Allow integer references in
9477 pointer arithmetic.
9478
9479 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9480
9481 * remote.c (remote_target::remote_parse_stop_reply): Remove the
9482 check for no ptid in the stop reply when the target is non-stop.
9483
9484 2020-04-01 Tom Tromey <tromey@adacore.com>
9485
9486 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
9487 "name" parameter to rvalue reference. Initialize m_name_holder.
9488 <lookup_name_info>: New overloads.
9489 <name>: Return gdb::string_view.
9490 <c_str>: New method.
9491 <make_ignore_params>: Update.
9492 <search_name_hash>: Update.
9493 <language_lookup_name>: Return const char *.
9494 <m_name>: Change type.
9495 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
9496 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
9497 (lookup_name_info::match_any): Update.
9498 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
9499 Update.
9500 * minsyms.c (linkage_name_str): Update.
9501 * language.c (default_symbol_name_matcher): Update.
9502 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
9503 Update.
9504 * ada-lang.c (ada_fold_name): Change parameter to string_view.
9505 (ada_lookup_name_info::ada_lookup_name_info): Update.
9506 (literal_symbol_name_matcher): Update.
9507
9508 2020-04-01 Tom Tromey <tromey@adacore.com>
9509
9510 * psymtab.c (psymtab_search_name): Remove function.
9511 (psym_lookup_symbol): Create search name and lookup name here.
9512 (lookup_partial_symbol): Remove "name" parameter; add
9513 lookup_name.
9514 (psym_expand_symtabs_for_function): Update.
9515
9516 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
9517
9518 PR tui/25597:
9519 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
9520
9521 2020-03-31 Tom Tromey <tromey@adacore.com>
9522
9523 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
9524 memcpy.
9525
9526 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
9527
9528 * features/riscv/32bit-csr.xml: Regenerated.
9529 * features/riscv/64bit-csr.xml: Regenerated.
9530
9531 2020-03-30 Tom Tromey <tromey@adacore.com>
9532
9533 * ada-valprint.c (print_variant_part): Update.
9534 * ada-lang.h (ada_which_variant_applies): Update.
9535 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
9536 outer_valaddr parameters; replace with "outer" value parameter.
9537 (to_fixed_variant_branch_type): Update.
9538
9539 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9540
9541 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
9542 <list>. Remove inclusion of observable.h.
9543 (PPC_DEBUG_CURRENT_VERSION): Move up define.
9544 (struct arch_lwp_info): New struct.
9545 (class ppc_linux_dreg_interface): New class.
9546 (struct ppc_linux_process_info): New struct.
9547 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
9548 <low_new_clone, low_forget_process, low_prepare_to_resume>
9549 <copy_thread_dreg_state, mark_thread_stale>
9550 <mark_debug_registers_changed, register_hw_breakpoint>
9551 <clear_hw_breakpoint, register_wp, clear_wp>
9552 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
9553 <num_memory_accesses, get_trigger_type>
9554 <create_watchpoint_request, hwdebug_point_cmp>
9555 <init_arch_lwp_info, get_arch_lwp_info>
9556 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
9557 methods.
9558 <struct ptid_hash>: New inner struct.
9559 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
9560 members.
9561 (saved_dabr_value, hwdebug_info, max_slots_number)
9562 (struct hw_break_tuple, struct thread_points, ppc_threads)
9563 (have_ptrace_hwdebug_interface)
9564 (hwdebug_find_thread_points_by_tid)
9565 (hwdebug_insert_point, hwdebug_remove_point): Remove.
9566 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
9567 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
9568 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
9569 use m_dreg_interface.
9570 (hwdebug_point_cmp): Change to...
9571 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
9572 reference arguments instead of pointers.
9573 (ppc_linux_nat_target::ranged_break_num_registers): Use
9574 m_dreg_interface.
9575 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
9576 m_dreg_interface. Call register_hw_breakpoint.
9577 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
9578 m_dreg_interface. Call clear_hw_breakpoint.
9579 (get_trigger_type): Change to...
9580 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
9581 comment.
9582 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
9583 use m_dreg_interface. Call register_hw_breakpoint.
9584 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
9585 use m_dreg_interface. Call clear_hw_breakpoint.
9586 (can_use_watchpoint_cond_accel): Change to...
9587 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
9588 method. Update comment, use m_dreg_interface and
9589 m_process_info.
9590 (calculate_dvc): Change to...
9591 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
9592 m_dreg_interface.
9593 (num_memory_accesses): Change to...
9594 (ppc_linux_nat_target::num_memory_accesses): ...this method.
9595 (check_condition): Change to...
9596 (ppc_linux_nat_target::check_condition): ...this method.
9597 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
9598 comment, use m_dreg_interface.
9599 (create_watchpoint_request): Change to...
9600 (ppc_linux_nat_target::create_watchpoint_request): ...this
9601 method. Use m_dreg_interface.
9602 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
9603 m_dreg_interface. Call register_hw_breakpoint or register_wp.
9604 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
9605 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
9606 (ppc_linux_nat_target::low_forget_process)
9607 (ppc_linux_nat_target::low_new_fork)
9608 (ppc_linux_nat_target::low_new_clone)
9609 (ppc_linux_nat_target::low_delete_thread)
9610 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
9611 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
9612 only call mark_thread_stale.
9613 (ppc_linux_thread_exit): Remove.
9614 (ppc_linux_nat_target::stopped_data_address): Change to...
9615 (ppc_linux_nat_target::low_stopped_data_address): This. Add
9616 comment, use m_dreg_interface and m_thread_hw_breakpoints.
9617 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
9618 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
9619 comment. Call low_stopped_data_address.
9620 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
9621 m_dreg_interface.
9622 (ppc_linux_nat_target::masked_watch_num_registers): Use
9623 m_dreg_interface.
9624 (ppc_linux_nat_target::copy_thread_dreg_state)
9625 (ppc_linux_nat_target::mark_thread_stale)
9626 (ppc_linux_nat_target::mark_debug_registers_changed)
9627 (ppc_linux_nat_target::register_hw_breakpoint)
9628 (ppc_linux_nat_target::clear_hw_breakpoint)
9629 (ppc_linux_nat_target::register_wp)
9630 (ppc_linux_nat_target::clear_wp)
9631 (ppc_linux_nat_target::init_arch_lwp_info)
9632 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
9633 (_initialize_ppc_linux_nat): Remove observer callback.
9634
9635 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9636
9637 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
9638 (ppc_linux_nat_target::auxv_parse)
9639 (ppc_linux_nat_target::read_description)
9640 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
9641 Move up.
9642
9643 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9644
9645 * linux-nat.h (low_new_clone): New method.
9646 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
9647
9648 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9649
9650 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
9651 (dbx_expand_psymtab): ... this.
9652 (start_psymtab): Update.
9653 * mdebugread.c (psymtab_to_symtab_1): Rename to...
9654 (mdebug_expand_psymtab): ... this.
9655 (parse_partial_symbols): Update.
9656 (new_psymtab): Update.
9657 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
9658 (xcoff_expand_psymtab): ... this.
9659 (xcoff_start_psymtab): Update.
9660
9661 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9662
9663 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
9664 <expand_dependencies>: ... this.
9665 * psymtab.c (partial_symtab::read_dependencies): Rename to...
9666 (partial_symtab::expand_dependencies): ... this.
9667 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
9668 Update.
9669 (dwarf2_psymtab::expand_psymtab): Update.
9670 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
9671 * mdebugread.c (psymtab_to_symtab_1): Update.
9672 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
9673
9674 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9675
9676 * psympriv.h (discard_psymtab): Remove.
9677 * dbxread.c (dbx_end_psymtab): Update.
9678 * xcoffread.c (xcoff_end_psymtab): Update.
9679
9680 2020-03-28 Tom Tromey <tom@tromey.com>
9681
9682 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
9683 comment.
9684
9685 2020-03-28 Tom Tromey <tom@tromey.com>
9686
9687 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
9688
9689 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
9690
9691 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
9692
9693 2020-03-26 John Baldwin <jhb@FreeBSD.org>
9694
9695 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
9696
9697 2020-03-26 Tom Tromey <tom@tromey.com>
9698
9699 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
9700 (mark_common_block_symbol_computed, read_tag_string_type)
9701 (attr_to_dynamic_prop, read_subrange_type): Update.
9702 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
9703 to be methods on struct attribute.
9704 (skip_one_die, process_imported_unit_die, read_namespace_alias)
9705 (read_call_site_scope, partial_die_info::read)
9706 (partial_die_info::read, lookup_die_type, follow_die_ref):
9707 Update.
9708 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
9709 from dwarf2_get_ref_die_offset.
9710 (attribute::constant_value): New method, from
9711 dwarf2_get_attr_constant_value.
9712 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
9713 Declare method.
9714 <constant_value>: New method.
9715
9716 2020-03-26 Tom Tromey <tom@tromey.com>
9717
9718 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
9719 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
9720 (dwarf_type_encoding_name): Move to stringify.c.
9721 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
9722 * dwarf2/stringify.c: New file.
9723 * dwarf2/stringify.h: New file.
9724
9725 2020-03-26 Tom Tromey <tom@tromey.com>
9726
9727 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
9728 Rewrite.
9729
9730 2020-03-26 Tom Tromey <tom@tromey.com>
9731
9732 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
9733 methods.
9734 * dwarf2/read.c (lookup_addr_base): Move to die.h.
9735 (lookup_ranges_base): Likewise.
9736 (read_cutu_die_from_dwo, read_full_die_1): Update.
9737
9738 2020-03-26 Tom Tromey <tom@tromey.com>
9739
9740 * dwarf2/read.c (read_import_statement, read_file_scope)
9741 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
9742 (read_lexical_block_scope, read_call_site_scope)
9743 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
9744 (handle_struct_member_die, process_structure_scope)
9745 (update_enumeration_type_from_children)
9746 (process_enumeration_scope, read_array_type, read_common_block)
9747 (read_namespace, read_module, read_subroutine_type): Update.
9748 (sibling_die): Remove.
9749
9750 2020-03-26 Tom Tromey <tom@tromey.com>
9751
9752 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
9753 (build_type_psymtabs_reader, read_structure_type)
9754 (read_enumeration_type, read_full_die_1): Update.
9755 (dwarf2_attr_no_follow): Move to die.h.
9756 * dwarf2/die.h (struct die_info) <attr>: New method.
9757
9758 2020-03-26 Tom Tromey <tom@tromey.com>
9759
9760 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
9761 <base_address>: Now an optional.
9762 (dwarf2_find_base_address, dwarf2_rnglists_process)
9763 (dwarf2_ranges_process, fill_in_loclist_baton)
9764 (dwarf2_symbol_mark_computed): Update.
9765
9766 2020-03-26 Tom Tromey <tom@tromey.com>
9767
9768 * dwarf2/read.c (struct die_info): Move to die.h.
9769 * dwarf2/die.h: New file.
9770
9771 2020-03-26 Tom Tromey <tom@tromey.com>
9772
9773 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
9774 * dwarf2/read.c
9775 (dwarf2_statement_list_fits_in_line_number_section_complaint):
9776 Move to line-header.c.
9777 (read_checked_initial_length_and_offset, read_formatted_entries):
9778 Likewise.
9779 (dwarf_decode_line_header): Split into two.
9780 * dwarf2/line-header.c
9781 (dwarf2_statement_list_fits_in_line_number_section_complaint):
9782 Move from read.c.
9783 (read_checked_initial_length_and_offset, read_formatted_entries):
9784 Likewise.
9785 (dwarf_decode_line_header): New function, split from read.c.
9786
9787 2020-03-26 Tom Tromey <tom@tromey.com>
9788
9789 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
9790 Declare method.
9791 * dwarf2/read.c (read_attribute_value): Update.
9792 (dwarf2_per_objfile::read_line_string): Rename from
9793 read_indirect_line_string.
9794 (read_formatted_entries): Update.
9795
9796 2020-03-26 Tom Tromey <tom@tromey.com>
9797
9798 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
9799 variable.
9800
9801 2020-03-26 Tom Tromey <tom@tromey.com>
9802
9803 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
9804 const.
9805 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
9806 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
9807 parameter const.
9808
9809 2020-03-26 Tom Tromey <tom@tromey.com>
9810
9811 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
9812 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
9813 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
9814 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
9815
9816 2020-03-26 Tom Tromey <tom@tromey.com>
9817
9818 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
9819 file_names_size, file_full_name, file_file_name>: Use const.
9820 <file_name_at, file_names>: Add const overload.
9821 * dwarf2/line-header.c (line_header::file_file_name)
9822 (line_header::file_full_name): Update.
9823
9824 2020-03-26 Tom Tromey <tom@tromey.com>
9825
9826 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
9827 (macro_start_file, consume_improper_spaces)
9828 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
9829 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
9830 (dwarf_decode_macros): Move to macro.c.
9831 * dwarf2/macro.c: New file.
9832 * dwarf2/macro.h: New file.
9833 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
9834
9835 2020-03-26 Tom Tromey <tom@tromey.com>
9836
9837 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
9838 method.
9839 * dwarf2/section.c: New method. From
9840 read_indirect_string_at_offset_from.
9841 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
9842 (read_indirect_string_at_offset_from): Move to section.c.
9843 (read_indirect_string_at_offset): Rewrite.
9844 (read_indirect_line_string_at_offset): Remove.
9845 (read_indirect_string, read_indirect_line_string)
9846 (dwarf_decode_macro_bytes): Update.
9847
9848 2020-03-26 Tom Tromey <tom@tromey.com>
9849
9850 * dwarf2/section.h (struct dwarf2_section_info)
9851 <overload_complaint>: Declare.
9852 (dwarf2_section_buffer_overflow_complaint): Don't declare.
9853 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
9854 Rename from dwarf2_section_buffer_overflow_complaint.
9855 * dwarf2/read.c (skip_one_die, partial_die_info::read)
9856 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
9857
9858 2020-03-26 Tom Tromey <tom@tromey.com>
9859
9860 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
9861 Declare.
9862 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
9863 Move from read.c.
9864 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
9865 to section.c.
9866
9867 2020-03-26 Tom Tromey <tom@tromey.com>
9868
9869 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
9870
9871 2020-03-26 Tom Tromey <tom@tromey.com>
9872
9873 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
9874 "builder".
9875 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
9876 parameter.
9877 (dwarf_decode_macros): Update.
9878
9879 2020-03-26 Tom Tromey <tom@tromey.com>
9880
9881 * dwarf2/read.c (read_attribute_value): Update.
9882 (read_indirect_string_from_dwz): Move to dwz.c; change into
9883 method.
9884 (dwarf_decode_macro_bytes): Update.
9885 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
9886 * dwarf2/dwz.c: New file.
9887 * Makefile.in (COMMON_SFILES): Add dwz.c.
9888
9889 2020-03-26 Tom Tromey <tom@tromey.com>
9890
9891 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
9892 * dwarf2/read.c: Add include.
9893 * dwarf2/index-write.c: Add include.
9894 * dwarf2/index-cache.c: Add include.
9895 * dwarf2/dwz.h: New file.
9896
9897 2020-03-25 Tom Tromey <tom@tromey.com>
9898
9899 * compile/compile-object-load.c (get_out_value_type): Mention
9900 correct symbol name in error message.
9901
9902 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
9903
9904 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
9905
9906 2020-03-25 Tom de Vries <tdevries@suse.de>
9907
9908 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
9909 * symmisc.c (dump_symtab_1): Print user and includes fields.
9910 (maintenance_info_symtabs): Same.
9911
9912 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
9913
9914 PR gdb/25534
9915 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
9916 (riscv_regcache_cooked_write): New function.
9917 (riscv_push_dummy_call): Use new function.
9918 (riscv_return_value): Likewise.
9919
9920 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
9921
9922 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
9923 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
9924 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
9925 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
9926 * infrun.c (follow_fork): Likewise.
9927 (follow_fork_inferior): Likewise.
9928 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
9929 * linux-nat.h (class linux_nat_target): Likewise.
9930 * remote.c (class remote_target) <follow_fork>: Likewise.
9931 (remote_target::follow_fork): Likewise.
9932 * target-delegates.c: Re-generate.
9933 * target.c (default_follow_fork): Likewise.
9934 (target_follow_fork): Likewise.
9935 * target.h (struct target_ops) <follow_fork>: Likewise.
9936 (target_follow_fork): Likewise.
9937
9938 2020-03-24 Tom de Vries <tdevries@suse.de>
9939
9940 * psymtab.c (maintenance_info_psymtabs): Print user field.
9941
9942 2020-03-20 Tom Tromey <tromey@adacore.com>
9943
9944 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
9945 const.
9946 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
9947 const.
9948
9949 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
9950
9951 * ptrace.m4: Don't check for ptrace declaration.
9952 * config.in: Re-generate.
9953 * configure: Re-generate.
9954 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
9955 not defined.
9956
9957 2020-03-20 Kamil Rytarowski <n54@gmx.com>
9958
9959 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
9960 `PTRACE_TYPE_RET'.
9961 * i386-bsd-nat.c (gdb_ptrace): Likewise.
9962 * sparc-nat.c (gdb_ptrace): Likewise.
9963 * x86-bsd-nat.c (gdb_ptrace): Likewise.
9964
9965 2020-03-20 Tom Tromey <tromey@adacore.com>
9966
9967 * c-exp.y (lex_one_token): Fix assert.
9968
9969 2020-03-20 Tom Tromey <tromey@adacore.com>
9970
9971 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
9972 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
9973 strncpy call.
9974
9975 2020-03-20 Tom Tromey <tromey@adacore.com>
9976
9977 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
9978
9979 2020-03-20 Tom Tromey <tromey@adacore.com>
9980
9981 * ada-valprint.c (print_variant_part): Remove parameters; switch
9982 to value-based API.
9983 (print_field_values): Likewise.
9984 (ada_val_print_struct_union): Likewise.
9985 (ada_value_print_1): Update.
9986
9987 2020-03-20 Kamil Rytarowski <n54@gmx.com>
9988
9989 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
9990 nbsd_nat_target instead of inf_ptrace_target.
9991 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9992 nbsd_nat_target.
9993
9994 2020-03-20 Kamil Rytarowski <n54@gmx.com>
9995
9996 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
9997 it to the ptrace call.
9998 * (store_registers): Likewise.
9999
10000 2020-03-20 Kamil Rytarowski <n54@gmx.com>
10001
10002 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
10003 it to the ptrace call.
10004 * (store_registers): Likewise.
10005
10006 2020-03-19 Luis Machado <luis.machado@linaro.org>
10007
10008 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
10009 valid, fetch vg value from ptrace.
10010
10011 2020-03-19 Kamil Rytarowski <n54@gmx.com>
10012 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
10013 * inf-ptrace.c: Likewise.
10014 * (gdb_ptrace): Add.
10015 * (inf_ptrace_target::resume): Update.
10016 * (inf_ptrace_target::xfer_partial): Likewise.
10017 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
10018 * (inf_ptrace_peek_poke): Update.
10019
10020 2020-03-19 Kamil Rytarowski <n54@gmx.com>
10021
10022 * x86-bsd-nat.c (gdb_ptrace): New.
10023 * (x86bsd_dr_set): Add new argument `ptid'.
10024 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
10025 x86bsd_dr_set_addr): Update.
10026
10027 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
10028
10029 * remote.c (remote_target::process_stop_reply): Handle events for
10030 all threads differently.
10031
10032 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
10033
10034 * completer.c (completion_tracker::remove_completion): Define new
10035 function.
10036 * completer.h (completion_tracker::remove_completion): Declare new
10037 function.
10038 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
10039 when adding a C++ function symbol.
10040
10041 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
10042
10043 * completer.c (completion_tracker::completion_hash_entry): Define
10044 new class.
10045 (advance_to_filename_complete_word_point): Call
10046 recompute_lowest_common_denominator.
10047 (completion_tracker::completion_tracker): Call discard_completions
10048 to setup the hash table.
10049 (completion_tracker::discard_completions): Allow for being called
10050 from the constructor, pass new equal function, and element deleter
10051 when constructing the hash table. Initialise new class member
10052 variables.
10053 (completion_tracker::maybe_add_completion): Remove use of
10054 m_entries_vec, and store more information into m_entries_hash.
10055 (completion_tracker::recompute_lcd_visitor): New function, most
10056 content taken from...
10057 (completion_tracker::recompute_lowest_common_denominator):
10058 ...here, this now just visits each item in the hash calling the
10059 above visitor.
10060 (completion_tracker::build_completion_result): Remove use of
10061 m_entries_vec, call recompute_lowest_common_denominator.
10062 * completer.h (completion_tracker::have_completions): Remove use
10063 of m_entries_vec.
10064 (completion_tracker::completion_hash_entry): Declare new class.
10065 (completion_tracker::recompute_lowest_common_denominator): Change
10066 function signature.
10067 (completion_tracker::recompute_lcd_visitor): Declare new function.
10068 (completion_tracker::m_entries_vec): Delete.
10069 (completion_tracker::m_entries_hash): Initialize to NULL.
10070 (completion_tracker::m_lowest_common_denominator_valid): New
10071 member variable.
10072 (completion_tracker::m_lowest_common_denominator_max_length): New
10073 member variable.
10074
10075 2020-03-17 Kamil Rytarowski <n54@gmx.com>
10076
10077 * regformats/regdef.h: Put reg in gdb namespace.
10078
10079 2020-03-17 Kamil Rytarowski <n54@gmx.com>
10080
10081 * i386-bsd-nat.c (gdb_ptrace): New.
10082 * (i386bsd_fetch_inferior_registers,
10083 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
10084 * (i386bsd_fetch_inferior_registers,
10085 i386bsd_store_inferior_registers) Use gdb_ptrace.
10086
10087 2020-03-17 Kamil Rytarowski <n54@gmx.com>
10088
10089 * amd64-bsd-nat.c (gdb_ptrace): New.
10090 * (amd64bsd_fetch_inferior_registers,
10091 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
10092 * (amd64bsd_fetch_inferior_registers,
10093 amd64bsd_store_inferior_registers) Use gdb_ptrace.
10094
10095 2020-03-17 Kamil Rytarowski <n54@gmx.com>
10096
10097 * user-regs.c (user_reg::read): Rename to...
10098 (user_reg::xread): ...this.
10099 * (append_user_reg): Rename argument `read' to `xread'.
10100 * (user_reg_add_builtin): Likewise.
10101 * (user_reg_add): Likewise.
10102 * (value_of_user_reg): Likewise.
10103
10104 2020-03-17 Kamil Rytarowski <n54@gmx.com>
10105
10106 * sparc-nat.c (gdb_ptrace): New.
10107 * sparc-nat.c (sparc_fetch_inferior_registers)
10108 (sparc_store_inferior_registers) Remove obsolete comment.
10109 * sparc-nat.c (sparc_fetch_inferior_registers)
10110 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
10111 * sparc-nat.c (sparc_fetch_inferior_registers)
10112 (sparc_store_inferior_registers) Use gdb_ptrace.
10113
10114 2020-03-17 Kamil Rytarowski <n54@gmx.com>
10115
10116 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
10117 it to the ptrace call.
10118 * sh-nbsd-nat.c (store_registers): Likewise.
10119
10120 2020-03-17 Kamil Rytarowski <n54@gmx.com>
10121
10122 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
10123 nbsd_nat_target instead of inf_ptrace_target.
10124 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
10125 nbsd_nat_target.
10126
10127 2020-03-17 Kamil Rytarowski <n54@gmx.com>
10128
10129 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
10130
10131 2020-03-17 Kamil Rytarowski <n54@gmx.com>
10132
10133 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
10134 <sys/sysctl.h>.
10135 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
10136
10137 2020-03-17 Tom de Vries <tdevries@suse.de>
10138
10139 PR gdb/23710
10140 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
10141 fields.
10142 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
10143 fields.
10144 (process_imported_unit_die): Skip import of c++ CUs.
10145
10146 2020-03-16 Tom Tromey <tom@tromey.com>
10147
10148 * p-valprint.c (pascal_object_print_value): Initialize
10149 base_value.
10150
10151 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
10152 Shahab Vahedi <shahab@synopsys.com>
10153
10154 * Makefile.in: Add arch/arc.o
10155 * configure.tgt: Likewise.
10156 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
10157 (_initialize_arc_tdep): Don't initialize old target descriptions.
10158 (arc_read_description): New function to cache target descriptions.
10159 * arc-tdep.h (arc_read_description): Add proto type.
10160 * arch/arc.c: New file.
10161 * arch/arc.h: Likewise.
10162 * features/Makefile: Replace old target descriptions with new.
10163 * features/arc-arcompact.c: Remove.
10164 * features/arc-arcompact.xml: Likewise.
10165 * features/arc-v2.c: Likewise
10166 * features/arc-v2.xml: Likewise
10167 * features/arc/aux-arcompact.xml: New file.
10168 * features/arc/aux-v2.xml: Likewise.
10169 * features/arc/core-arcompact.xml: Likewise.
10170 * features/arc/core-v2.xml: Likewise.
10171 * features/arc/aux-arcompact.c: Generate.
10172 * features/arc/aux-v2.c: Likewise.
10173 * features/arc/core-arcompact.c: Likewise.
10174 * features/arc/core-v2.c: Likewise.
10175 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
10176
10177 2020-03-16 Tom Tromey <tromey@adacore.com>
10178
10179 PR gdb/25663:
10180 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
10181 putting value into bcache.
10182
10183 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
10184
10185 PR gdb/21500
10186 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
10187 to...
10188 (amd64_windows_init_abi_common): ... this. Don't set size of
10189 long type.
10190 (amd64_windows_init_abi): New function.
10191 (amd64_cygwin_init_abi): New function.
10192 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
10193 the Cygwin OS ABI.
10194 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
10195 comment.
10196
10197 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
10198
10199 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
10200 * windows-tdep.c (CYGWIN_DLL_NAME): New.
10201 (pe_import_directory_entry): New struct type.
10202 (is_linked_with_cygwin_dll): New function.
10203 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
10204 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
10205 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
10206
10207 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
10208
10209 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
10210 i386_cygwin_core_osabi_sniffer.
10211
10212 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
10213
10214 * i386-cygwin-tdep.c: Rename to...
10215 * i386-windows-tdep.c: ... this.
10216 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
10217 i386-windows-tdep.c.
10218 * configure.tgt: Likewise.
10219
10220 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
10221
10222 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
10223 * osabi.c (gdb_osabi_names): Add "Windows".
10224 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
10225 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
10226 (i386_cygwin_core_osabi_sniffer): New function, extracted from
10227 i386_cygwin_osabi_sniffer.
10228 (_initialize_i386_cygwin_tdep): Register OS ABI
10229 GDB_OSABI_WINDOWS for i386.
10230 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
10231 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
10232 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
10233 for x86-64.
10234 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
10235 when the target matches '*-*-mingw*'.
10236
10237 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
10238
10239 * defs.h (enum gdb_osabi): Move to...
10240 * osabi.h (enum gdb_osabi): ... here.
10241 * gdbarch.sh: Include osabi.h in gdbarch.h.
10242 * gdbarch.h: Re-generate.
10243
10244 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
10245
10246 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
10247 function.
10248 (_initialize_amd64_windows_tdep): Register osabi sniffer.
10249
10250 2020-03-14 Tom Tromey <tom@tromey.com>
10251
10252 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
10253 for C++.
10254 (c_type_print_modifier): Likewise. Add "language" parameter.
10255 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
10256 (c_type_print_base_1): Update.
10257 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
10258 constants.
10259 * type-stack.c (type_stack::insert): Handle tp_atomic and
10260 tp_restrict.
10261 (type_stack::follow_type_instance_flags): Likewise.
10262 (type_stack::follow_types): Likewise. Merge type-following code.
10263 * c-exp.y (RESTRICT, ATOMIC): New tokens.
10264 (space_identifier, cv_with_space_id)
10265 (const_or_volatile_or_space_identifier_noopt)
10266 (const_or_volatile_or_space_identifier): Remove.
10267 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
10268 rules.
10269 (ptr_operator, typebase): Update.
10270 (enum token_flag) <FLAG_C>: New constant.
10271 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
10272 "_Atomic".
10273 (lex_one_token): Handle FLAG_C.
10274
10275 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10276
10277 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
10278 it to the ptrace call.
10279 * m68k-bsd-nat.c (store_registers): Likewise.
10280
10281 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10282
10283 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
10284 gdb_byte *.
10285 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
10286 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
10287 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
10288
10289 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10290
10291 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
10292 nbsd_nat_target instead of inf_ptrace_target.
10293 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
10294 nbsd_nat_target.
10295
10296 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10297
10298 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
10299 register_t.
10300
10301 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10302
10303 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
10304 it to the ptrace call.
10305 * alpha-bsd-nat.c (store_registers): Likewise.
10306
10307 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10308
10309 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
10310 includes.
10311 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
10312 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
10313 fill_fpregset): Likewise.
10314
10315 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10316
10317 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
10318 nbsd_nat_target instead of inf_ptrace_target.
10319 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
10320 nbsd_nat_target.
10321
10322 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10323
10324 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
10325 register_t.
10326
10327 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10328
10329 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
10330 it to the ptrace call.
10331 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
10332 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
10333 * arm-nbsd-nat.c (store_register): Likewise.
10334 * arm-nbsd-nat.c (store_regs): Likewise.
10335 * arm-nbsd-nat.c (store_fp_register): Likewise.
10336 * arm-nbsd-nat.c (store_fp_regs): Likewise.
10337
10338 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10339
10340 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
10341 nbsd_nat_target instead of inf_ptrace_target.
10342 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
10343 nbsd_nat_target.
10344
10345 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10346
10347 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
10348 it to the ptrace call.
10349 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
10350
10351 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10352
10353 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
10354 it to the ptrace call.
10355 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
10356
10357 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10358
10359 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
10360 gdb_byte *.
10361 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
10362
10363 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10364
10365 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
10366 instead of inf_ptrace_target.
10367 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
10368 nbsd_nat_target.
10369
10370 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10371
10372 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10373 register_t.
10374
10375 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10376
10377 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10378 register_t.
10379
10380 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10381
10382 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
10383 register_t.
10384
10385 2020-03-13 Tom Tromey <tom@tromey.com>
10386
10387 * value.h (val_print): Don't declare.
10388 * valprint.h (val_print_array_elements)
10389 (val_print_scalar_formatted, generic_val_print): Don't declare.
10390 * valprint.c (generic_val_print_array): Take a struct value.
10391 (generic_val_print_ptr, generic_val_print_memberptr)
10392 (generic_val_print_bool, generic_val_print_int)
10393 (generic_val_print_char, generic_val_print_complex)
10394 (generic_val_print): Remove.
10395 (generic_value_print): Update.
10396 (do_val_print): Remove unused parameters. Don't call
10397 la_val_print.
10398 (val_print): Remove.
10399 (common_val_print): Update. Don't call value_check_printable.
10400 (val_print_scalar_formatted, val_print_array_elements): Remove.
10401 * rust-lang.c (rust_val_print): Remove.
10402 (rust_language_defn): Update.
10403 * p-valprint.c (pascal_val_print): Remove.
10404 (pascal_value_print_inner): Update.
10405 (pascal_object_print_val_fields, pascal_object_print_val):
10406 Remove.
10407 (pascal_object_print_static_field): Update.
10408 * p-lang.h (pascal_val_print): Don't declare.
10409 * p-lang.c (pascal_language_defn): Update.
10410 * opencl-lang.c (opencl_language_defn): Update.
10411 * objc-lang.c (objc_language_defn): Update.
10412 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
10413 * m2-lang.h (m2_val_print): Don't declare.
10414 * m2-lang.c (m2_language_defn): Update.
10415 * language.h (struct language_defn) <la_val_print>: Remove.
10416 * language.c (unk_lang_value_print_inner): Rename. Change
10417 argument types.
10418 (unknown_language_defn, auto_language_defn): Update.
10419 * go-valprint.c (go_val_print): Remove.
10420 * go-lang.h (go_val_print): Don't declare.
10421 * go-lang.c (go_language_defn): Update.
10422 * f-valprint.c (f_val_print): Remove.
10423 * f-lang.h (f_value_print): Don't declare.
10424 * f-lang.c (f_language_defn): Update.
10425 * d-valprint.c (d_val_print): Remove.
10426 * d-lang.h (d_value_print): Don't declare.
10427 * d-lang.c (d_language_defn): Update.
10428 * cp-valprint.c (cp_print_value_fields)
10429 (cp_print_value_fields_rtti, cp_print_value): Remove.
10430 (cp_print_static_field): Update.
10431 * c-valprint.c (c_val_print_array, c_val_print_ptr)
10432 (c_val_print_struct, c_val_print_union, c_val_print_int)
10433 (c_val_print_memberptr, c_val_print): Remove.
10434 * c-lang.h (c_val_print_array, cp_print_value_fields)
10435 (cp_print_value_fields_rtti): Don't declare.
10436 * c-lang.c (c_language_defn, cplus_language_defn)
10437 (asm_language_defn, minimal_language_defn): Update.
10438 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
10439 (ada_val_print_enum): Take a struct value.
10440 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
10441 (ada_val_print): Remove.
10442 (ada_value_print_1): Update.
10443 (printable_val_type): Remove.
10444 * ada-lang.h (ada_val_print): Don't declare.
10445 * ada-lang.c (ada_language_defn): Update.
10446
10447 2020-03-13 Tom Tromey <tom@tromey.com>
10448
10449 * valprint.c (do_val_print): Update.
10450 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
10451 a struct value.
10452 (value_to_value_object_no_release): Declare.
10453 * python/py-value.c (value_to_value_object_no_release): New
10454 function.
10455 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
10456 struct value.
10457 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
10458 function.
10459 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
10460 a struct value.
10461 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
10462 Declare.
10463 (gdbscm_apply_val_pretty_printer): Take a struct value.
10464 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
10465 value.
10466 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
10467 value.
10468 * extension-priv.h (struct extension_language_ops)
10469 <apply_val_pretty_printer>: Take a struct value.
10470 * cp-valprint.c (cp_print_value): Create a struct value.
10471 (cp_print_value): Update.
10472
10473 2020-03-13 Tom Tromey <tom@tromey.com>
10474
10475 * ada-valprint.c (print_field_values): Call common_val_print.
10476
10477 2020-03-13 Tom Tromey <tom@tromey.com>
10478
10479 * ada-valprint.c (val_print_packed_array_elements): Remove
10480 bitoffset and val parameters. Call common_val_print.
10481 (ada_val_print_string): Remove offset, address, and original_value
10482 parameters.
10483 (ada_val_print_array): Update.
10484 (ada_value_print_array): New function.
10485 (ada_value_print_1): Call it.
10486
10487 2020-03-13 Tom Tromey <tom@tromey.com>
10488
10489 * ada-valprint.c (ada_value_print): Use common_val_print.
10490
10491 2020-03-13 Tom Tromey <tom@tromey.com>
10492
10493 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
10494
10495 2020-03-13 Tom Tromey <tom@tromey.com>
10496
10497 * ada-valprint.c (ada_value_print_num): New function.
10498 (ada_value_print_1): Use it.
10499
10500 2020-03-13 Tom Tromey <tom@tromey.com>
10501
10502 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
10503
10504 2020-03-13 Tom Tromey <tom@tromey.com>
10505
10506 * ada-valprint.c (ada_value_print_ptr): New function.
10507 (ada_value_print_1): Use it.
10508
10509 2020-03-13 Tom Tromey <tom@tromey.com>
10510
10511 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
10512 call common_val_print.
10513 (ada_val_print_1): Update.
10514 (ada_value_print_1): New function.
10515 (ada_value_print_inner): Rewrite.
10516
10517 2020-03-13 Tom Tromey <tom@tromey.com>
10518
10519 * cp-valprint.c (cp_print_value_fields): Update.
10520 (cp_print_value): New function.
10521
10522 2020-03-13 Tom Tromey <tom@tromey.com>
10523
10524 * m2-valprint.c (m2_value_print_inner): Use
10525 cp_print_value_fields.
10526 * cp-valprint.c (cp_print_value_fields): New function.
10527 * c-valprint.c (c_value_print_struct): New function.
10528 (c_value_print_inner): Use c_value_print_struct.
10529 * c-lang.h (cp_print_value_fields): Declare.
10530
10531 2020-03-13 Tom Tromey <tom@tromey.com>
10532
10533 * c-valprint.c (c_value_print_array): New function.
10534 (c_value_print_inner): Use it.
10535
10536 2020-03-13 Tom Tromey <tom@tromey.com>
10537
10538 * c-valprint.c (c_value_print_memberptr): New function.
10539 (c_value_print_inner): Use it.
10540
10541 2020-03-13 Tom Tromey <tom@tromey.com>
10542
10543 * c-valprint.c (c_value_print_int): New function.
10544 (c_value_print_inner): Use it.
10545
10546 2020-03-13 Tom Tromey <tom@tromey.com>
10547
10548 * c-valprint.c (c_value_print_ptr): New function.
10549 (c_value_print_inner): Use it.
10550
10551 2020-03-13 Tom Tromey <tom@tromey.com>
10552
10553 * c-valprint.c (c_value_print_inner): Rewrite.
10554
10555 2020-03-13 Tom Tromey <tom@tromey.com>
10556
10557 * valprint.c (generic_value_print_complex): New function.
10558 (generic_value_print): Use it.
10559
10560 2020-03-13 Tom Tromey <tom@tromey.com>
10561
10562 * valprint.c (generic_val_print_float): Don't call
10563 val_print_scalar_formatted.
10564 (generic_val_print, generic_value_print): Update.
10565
10566 2020-03-13 Tom Tromey <tom@tromey.com>
10567
10568 * valprint.c (generic_value_print_char): New function
10569 (generic_value_print): Use it.
10570
10571 2020-03-13 Tom Tromey <tom@tromey.com>
10572
10573 * valprint.c (generic_value_print_int): New function.
10574 (generic_value_print): Use it.
10575
10576 2020-03-13 Tom Tromey <tom@tromey.com>
10577
10578 * valprint.c (generic_value_print_bool): New function.
10579 (generic_value_print): Use it.
10580
10581 2020-03-13 Tom Tromey <tom@tromey.com>
10582
10583 * valprint.c (generic_val_print_func): Simplify.
10584 (generic_val_print, generic_value_print): Update.
10585
10586 2020-03-13 Tom Tromey <tom@tromey.com>
10587
10588 * valprint.c (generic_val_print_flags): Remove.
10589 (generic_val_print, generic_value_print): Update.
10590 (val_print_type_code_flags): Add original_value parameter.
10591
10592 2020-03-13 Tom Tromey <tom@tromey.com>
10593
10594 * valprint.c (generic_val_print): Update.
10595 (generic_value_print): Update.
10596 * valprint.c (generic_val_print_enum): Don't call
10597 val_print_scalar_formatted.
10598
10599 2020-03-13 Tom Tromey <tom@tromey.com>
10600
10601 * valprint.c (generic_value_print): Call generic_value_print_ptr.
10602 * valprint.c (generic_value_print_ptr): New function.
10603
10604 2020-03-13 Tom Tromey <tom@tromey.com>
10605
10606 * valprint.c (generic_value_print): Rewrite.
10607
10608 2020-03-13 Tom Tromey <tom@tromey.com>
10609
10610 * p-valprint.c (pascal_object_print_value_fields)
10611 (pascal_object_print_value): New functions.
10612
10613 2020-03-13 Tom Tromey <tom@tromey.com>
10614
10615 * p-valprint.c (pascal_value_print_inner): Rewrite.
10616
10617 2020-03-13 Tom Tromey <tom@tromey.com>
10618
10619 * f-valprint.c (f_value_print_innner): Rewrite.
10620
10621 2020-03-13 Tom Tromey <tom@tromey.com>
10622
10623 * m2-valprint.c (m2_print_unbounded_array): New overload.
10624 (m2_print_unbounded_array): Update.
10625 (m2_print_array_contents): Take a struct value.
10626 (m2_value_print_inner): Rewrite.
10627
10628 2020-03-13 Tom Tromey <tom@tromey.com>
10629
10630 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
10631 (d_value_print_inner): New function.
10632 * d-lang.h (d_value_print_inner): Declare.
10633 * d-lang.c (d_language_defn): Use d_value_print_inner.
10634
10635 2020-03-13 Tom Tromey <tom@tromey.com>
10636
10637 * go-valprint.c (go_value_print_inner): New function.
10638 * go-lang.h (go_value_print_inner): Declare.
10639 * go-lang.c (go_language_defn): Use go_value_print_inner.
10640
10641 2020-03-13 Tom Tromey <tom@tromey.com>
10642
10643 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
10644 API.
10645 (rust_val_print): Rewrite.
10646 (rust_value_print_inner): New function, from rust_val_print.
10647 (rust_language_defn): Use rust_value_print_inner.
10648
10649 2020-03-13 Tom Tromey <tom@tromey.com>
10650
10651 * ada-valprint.c (ada_value_print_inner): New function.
10652 * ada-lang.h (ada_value_print_inner): Declare.
10653 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
10654
10655 2020-03-13 Tom Tromey <tom@tromey.com>
10656
10657 * f-valprint.c (f_value_print_innner): New function.
10658 * f-lang.h (f_value_print_innner): Declare.
10659 * f-lang.c (f_language_defn): Use f_value_print_innner.
10660
10661 2020-03-13 Tom Tromey <tom@tromey.com>
10662
10663 * p-valprint.c (pascal_value_print_inner): New function.
10664 * p-lang.h (pascal_value_print_inner): Declare.
10665 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
10666
10667 2020-03-13 Tom Tromey <tom@tromey.com>
10668
10669 * m2-valprint.c (m2_value_print_inner): New function.
10670 * m2-lang.h (m2_value_print_inner): Declare.
10671 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
10672
10673 2020-03-13 Tom Tromey <tom@tromey.com>
10674
10675 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
10676 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
10677 * c-valprint.c (c_value_print_inner): New function.
10678 * c-lang.h (c_value_print_inner): Declare.
10679 * c-lang.c (c_language_defn, cplus_language_defn)
10680 (asm_language_defn, minimal_language_defn): Use
10681 c_value_print_inner.
10682
10683 2020-03-13 Tom Tromey <tom@tromey.com>
10684
10685 * p-valprint.c (pascal_object_print_value_fields): Now static.
10686 * p-lang.h (pascal_object_print_value_fields): Don't declare.
10687
10688 2020-03-13 Tom Tromey <tom@tromey.com>
10689
10690 * c-valprint.c (c_val_print_array): Simplify.
10691
10692 2020-03-13 Tom Tromey <tom@tromey.com>
10693
10694 * valprint.c (value_print_array_elements): New function.
10695 * valprint.h (value_print_array_elements): Declare.
10696
10697 2020-03-13 Tom Tromey <tom@tromey.com>
10698
10699 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
10700 * mips-tdep.c (mips_print_register): Use
10701 value_print_scalar_formatted.
10702
10703 2020-03-13 Tom Tromey <tom@tromey.com>
10704
10705 * valprint.h (value_print_scalar_formatted): Declare.
10706 * valprint.c (value_print_scalar_formatted): New function.
10707
10708 2020-03-13 Tom Tromey <tom@tromey.com>
10709
10710 * valprint.h (generic_value_print): Declare.
10711 * valprint.c (generic_value_print): New function.
10712
10713 2020-03-13 Tom Tromey <tom@tromey.com>
10714
10715 * valprint.c (do_val_print): Call la_value_print_inner, if
10716 available.
10717 * rust-lang.c (rust_language_defn): Update.
10718 * p-lang.c (pascal_language_defn): Update.
10719 * opencl-lang.c (opencl_language_defn): Update.
10720 * objc-lang.c (objc_language_defn): Update.
10721 * m2-lang.c (m2_language_defn): Update.
10722 * language.h (struct language_defn) <la_value_print_inner>: New
10723 member.
10724 * language.c (unknown_language_defn, auto_language_defn): Update.
10725 * go-lang.c (go_language_defn): Update.
10726 * f-lang.c (f_language_defn): Update.
10727 * d-lang.c (d_language_defn): Update.
10728 * c-lang.c (c_language_defn, cplus_language_defn)
10729 (asm_language_defn, minimal_language_defn): Update.
10730 * ada-lang.c (ada_language_defn): Update.
10731
10732 2020-03-13 Tom Tromey <tom@tromey.com>
10733
10734 * c-valprint.c (c_value_print): Use common_val_print.
10735
10736 2020-03-13 Tom Tromey <tom@tromey.com>
10737
10738 * cp-valprint.c (cp_print_static_field): Use common_val_print.
10739
10740 2020-03-13 Tom Tromey <tom@tromey.com>
10741
10742 * f-valprint.c (f77_print_array_1, f_val_print): Use
10743 common_val_print.
10744
10745 2020-03-13 Tom Tromey <tom@tromey.com>
10746
10747 * riscv-tdep.c (riscv_print_one_register_info): Use
10748 common_val_print.
10749
10750 2020-03-13 Tom Tromey <tom@tromey.com>
10751
10752 * mi/mi-main.c (output_register): Use common_val_print.
10753
10754 2020-03-13 Tom Tromey <tom@tromey.com>
10755
10756 * infcmd.c (default_print_one_register_info): Use
10757 common_val_print.
10758
10759 2020-03-13 Tom Tromey <tom@tromey.com>
10760
10761 * valprint.h (common_val_print_checked): Declare.
10762 * valprint.c (common_val_print_checked): New function.
10763 * stack.c (print_frame_arg): Use common_val_print_checked.
10764
10765 2020-03-13 Tom Tromey <tom@tromey.com>
10766
10767 * valprint.c (do_val_print): New function, from val_print.
10768 (val_print): Use do_val_print.
10769 (common_val_print): Use do_val_print.
10770
10771 2020-03-13 Tom Tromey <tom@tromey.com>
10772
10773 * valprint.c (value_print): Use scoped_value_mark.
10774
10775 2020-03-13 Tom de Vries <tdevries@suse.de>
10776
10777 PR symtab/25646
10778 * psymtab.c (partial_symtab::partial_symtab): Don't set
10779 globals_offset and statics_offset. Push element onto
10780 current_global_psymbols and current_static_psymbols stacks.
10781 (concat): New function.
10782 (end_psymtab_common): Set globals_offset and statics_offset. Pop
10783 element from current_global_psymbols and current_static_psymbols
10784 stacks. Concat popped elements to global_psymbols and
10785 static_symbols.
10786 (add_psymbol_to_list): Use current_global_psymbols and
10787 current_static_psymbols stacks.
10788 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
10789 current_static_psymbols fields.
10790
10791 2020-03-12 Christian Biesinger <cbiesinger@google.com>
10792
10793 * corelow.c (sniff_core_bfd): Remove.
10794 (class core_target) <m_core_vec>: Remove.
10795 (core_target::core_target): Update.
10796 (core_file_fns): Remove.
10797 (deprecated_add_core_fns): Remove.
10798 (default_core_sniffer): Remove.
10799 (sniff_core_bfd): Remove.
10800 (default_check_format): Remove.
10801 (gdb_check_format): Remove.
10802 (core_target_open): Update.
10803 (core_target::get_core_register_section): Update.
10804 (get_core_registers_cb): Update.
10805 (core_target::fetch_registers): Update.
10806 * gdbcore.h (struct core_fns): Remove.
10807 (deprecated_add_core_fns): Remove.
10808 (default_core_sniffer): Remove.
10809 (default_check_format): Remove.
10810
10811 2020-03-12 Tom Tromey <tom@tromey.com>
10812
10813 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
10814 CORE_ADDR.
10815 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
10816
10817 2020-03-12 Tom Tromey <tom@tromey.com>
10818
10819 * remote.c (remote_target::download_tracepoint)
10820 (remote_target::enable_tracepoint)
10821 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
10822 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
10823 sprintf_vma.
10824
10825 2020-03-12 Tom Tromey <tom@tromey.com>
10826
10827 * symfile-mem.c: Update CORE_ADDR size assert.
10828
10829 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
10830
10831 * selftest.m4: Move to gdbsupport/.
10832 * acinclude.m4: Update path to selftest.m4.
10833
10834 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
10835
10836 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
10837 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
10838 gdbarch-selfselftests.c and selftest-arch.c.
10839 (SUBDIR_UNITTESTS_OBS): Rename to...
10840 (SELFTESTS_OBS): ... this.
10841 (COMMON_SFILES): Remove disasm-selftests.c and
10842 gdbarch-selftests.c.
10843 * configure.ac: Don't add selftest-arch.{c,o} to
10844 CONFIG_{SRCS,OBS}.
10845 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
10846 preprocessor conditions.
10847
10848 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
10849
10850 * configure.ac: Don't source bfd/development.sh.
10851 * selftest.m4: Modify comment.
10852 * configure: Re-generate.
10853
10854 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
10855
10856 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
10857 not "true" or "false".
10858 * configure: Re-generate.
10859
10860 2020-03-12 Christian Biesinger <cbiesinger@google.com>
10861
10862 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
10863 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
10864 renamed to arm_nbsd_supply_gregset.
10865 (fetch_register): Update to call arm_nbsd_supply_gregset.
10866 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
10867 (arm_netbsd_nat_target::fetch_registers): Update.
10868 (fetch_elfcore_registers): Removed.
10869 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
10870 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
10871 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
10872 not require NetBSD system headers.
10873 (arm_nbsd_regset): New struct.
10874 (arm_nbsd_iterate_over_regset_sections): New function.
10875 (arm_netbsd_init_abi_common): Updated to call
10876 set_gdbarch_iterate_over_regset_sections.
10877 * arm-nbsd-tdep.h: New file.
10878
10879 2020-03-11 Kevin Buettner <kevinb@redhat.com>
10880
10881 * symtab.c (find_pc_sect_line): Add check which prevents infinite
10882 recursion.
10883
10884 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
10885
10886 * configure: Re-generate.
10887
10888 2020-03-11 Tom Tromey <tromey@adacore.com>
10889
10890 * ada-typeprint.c (print_choices): Fix comment.
10891
10892 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
10893
10894 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
10895 previous item in the list, when the list has no items.
10896
10897 2020-03-11 Tom de Vries <tdevries@suse.de>
10898
10899 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
10900 PROP_LOCLIST handling code.
10901
10902 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
10903
10904 * buildsym-legacy.c (record_line): Pass extra parameter to
10905 record_line.
10906 * buildsym.c (buildsym_compunit::record_line): Take an extra
10907 parameter, reduce duplication in the line table, and record the
10908 is_stmt flag in the line table.
10909 * buildsym.h (buildsym_compunit::record_line): Add extra
10910 parameter.
10911 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
10912 non-statement lines.
10913 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
10914 this to the symtab builder.
10915 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
10916 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
10917 through to dwarf_record_line_1.
10918 * infrun.c (process_event_stop_test): When stepping, don't stop at
10919 a non-statement instruction, and only refresh the step info when
10920 we land in the middle of a line's range. Also add an extra
10921 comment.
10922 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
10923 field.
10924 * record-btrace.c (btrace_find_line_range): Only record lines
10925 marked as is-statement.
10926 * stack.c (frame_show_address): Show the frame address if we are
10927 in a non-statement sal.
10928 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
10929 (maintenance_print_one_line_table): Print a header for the is_stmt
10930 column, and include is_stmt information in the output.
10931 * symtab.c (find_pc_sect_line): Find lines marked as statements in
10932 preference to non-statements.
10933 (find_pcs_for_symtab_line): Prefer is-statement entries.
10934 (find_line_common): Likewise.
10935 * symtab.h (struct linetable_entry): Add is_stmt field.
10936 (struct symtab_and_line): Likewise.
10937 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
10938 arranging the line table.
10939
10940 2020-03-07 Tom de Vries <tdevries@suse.de>
10941
10942 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
10943 DIE.
10944
10945 2020-03-07 Tom Tromey <tom@tromey.com>
10946
10947 * valops.c (value_literal_complex): Remove obsolete comment.
10948 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
10949 comment.
10950
10951 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
10952
10953 * infrun.h: Forward-declare thread_info.
10954 (set_step_info): Add thread_info parameter, add doc.
10955 * infrun.c (set_step_info): Add thread_info parameter, move doc
10956 to header.
10957 * infrun.c (process_event_stop_test): Pass thread to
10958 set_step_info call.
10959 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
10960 set_step_info.
10961 (prepare_one_step): Add thread_info parameter, pass it to
10962 set_step_frame and prepare_one_step (recursive) call.
10963 (step_1): Pass thread to prepare_one_step call.
10964 (step_command_fsm::should_stop): Pass thread to
10965 prepare_one_step.
10966 (until_next_fsm): Pass thread to set_step_frame call.
10967 (finish_command): Pass thread to set_step_info call.
10968
10969 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
10970
10971 * windows-tdep.c (windows_solib_create_inferior_hook):
10972 Check if inferior is running.
10973
10974 2020-03-06 Tom de Vries <tdevries@suse.de>
10975
10976 * NEWS: Fix "the the".
10977 * ctfread.c: Same.
10978
10979 2020-03-06 Tom de Vries <tdevries@suse.de>
10980
10981 * psymtab.c (psymtab_to_symtab): Don't print "done.".
10982
10983 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10984
10985 * .dir-locals.el: Add a comment referencing the other copies of
10986 this file.
10987
10988 2020-03-05 John Baldwin <jhb@FreeBSD.org>
10989
10990 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
10991 psargs.
10992
10993 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10994
10995 * .gitattributes: New file.
10996
10997 2020-03-04 Tom Tromey <tom@tromey.com>
10998
10999 * symmisc.c (print_symbol_bcache_statistics)
11000 (print_objfile_statistics): Update.
11001 * symfile.c (allocate_symtab): Use intern.
11002 * psymtab.c (partial_symtab::partial_symtab): Use intern.
11003 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
11004 macro_cache>: Remove.
11005 <string_cache>: New member.
11006 (struct objfile) <intern>: New methods.
11007 * elfread.c (elf_symtab_read): Use intern.
11008 * dwarf2/read.c (fixup_go_packaging): Intern package name.
11009 (dwarf2_compute_name, dwarf2_physname)
11010 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
11011 names.
11012 (guess_partial_die_structure_name): Update.
11013 (partial_die_info::fixup): Intern name.
11014 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
11015 name.
11016 (dwarf2_name): Intern name. Update.
11017 * buildsym.c (buildsym_compunit::get_macro_table): Use
11018 string_cache.
11019
11020 2020-03-04 Tom Tromey <tom@tromey.com>
11021
11022 * jit.c (bfd_open_from_target_memory): Make "target" const.
11023 * corefile.c (gnutarget): Now const.
11024 * gdbcore.h (gnutarget): Now const.
11025
11026 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
11027
11028 * NEWS: Mention support for WOW64 processes.
11029 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
11030 (amd64_windows_segment_register_p): Remove static.
11031 (_initialize_amd64_windows_nat): Update.
11032 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
11033 * i386-windows-nat.c (context_offset): Update.
11034 (i386_mappings): Rename and remove static.
11035 (i386_windows_segment_register_p): Remove static.
11036 (_initialize_i386_windows_nat): Update.
11037 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
11038 (STATUS_WX86_SINGLE_STEP): New macro.
11039 (EnumProcessModulesEx): New macro.
11040 (Wow64SuspendThread): New macro.
11041 (Wow64GetThreadContext): New macro.
11042 (Wow64SetThreadContext): New macro.
11043 (Wow64GetThreadSelectorEntry): New macro.
11044 (windows_set_context_register_offsets): Add static.
11045 (windows_set_segment_register_p): Likewise.
11046 (windows_add_thread): Adapt for WOW64 processes.
11047 (windows_fetch_one_register): Likewise.
11048 (windows_nat_target::fetch_registers): Likewise.
11049 (windows_store_one_register): Likewise.
11050 (display_selector): Likewise.
11051 (display_selectors): Likewise.
11052 (handle_exception): Likewise.
11053 (windows_continue): Likewise.
11054 (windows_nat_target::resume): Likewise.
11055 (windows_add_all_dlls): Likewise.
11056 (do_initial_windows_stuff): Likewise.
11057 (windows_nat_target::attach): Likewise.
11058 (windows_get_exec_module_filename): Likewise.
11059 (windows_nat_target::create_inferior): Likewise.
11060 (windows_xfer_siginfo): Likewise.
11061 (_initialize_loadable): Initialize Wow64SuspendThread,
11062 Wow64GetThreadContext, Wow64SetThreadContext,
11063 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
11064 * windows-nat.h (windows_set_context_register_offsets):
11065 Remove declaration.
11066 (windows_set_segment_register_p): Likewise.
11067 (i386_windows_segment_register_p): Add declaration.
11068 (amd64_windows_segment_register_p): Likewise.
11069
11070 2020-03-04 Luis Machado <luis.machado@linaro.org>
11071
11072 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
11073 in "info registers" for AArch64/ARM.
11074
11075 The change caused "info registers" to not print GPR's.
11076
11077 gdb/ChangeLog:
11078
11079 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
11080
11081 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
11082 when reg->group is empty and reggroup is not.
11083
11084 2020-03-03 Tom Tromey <tromey@adacore.com>
11085
11086 * dwarf2/frame.c (struct dwarf2_frame_cache)
11087 <checked_tailcall_bottom, entry_cfa_sp_offset,
11088 entry_cfa_sp_offset_p>: Remove members.
11089 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
11090 (dwarf2_frame_prev_register): Don't call
11091 dwarf2_tailcall_sniffer_first.
11092 (dwarf2_append_unwinders): Don't append tailcall unwinder.
11093 * frame-unwind.c (add_unwinder): New fuction.
11094 (frame_unwind_init): Use it. Add tailcall unwinder.
11095
11096 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
11097 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11098
11099 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
11100 value should be printed as true.
11101
11102 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
11103
11104 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
11105 (windows_init_abi): Set and use windows_so_ops.
11106
11107 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
11108
11109 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
11110 when verifying if dealing with a convenience variable.
11111
11112 2020-03-03 Luis Machado <luis.machado@linaro.org>
11113
11114 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
11115
11116 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11117
11118 * infrun.c (gdbarch_supports_displaced_stepping): New.
11119 (use_displaced_stepping): Break up conditions in smaller pieces.
11120 Use gdbarch_supports_displaced_stepping.
11121 (displaced_step_prepare_throw): Use
11122 gdbarch_supports_displaced_stepping.
11123
11124 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
11125
11126 * NEWS: Mention new behaviour of the history filename.
11127 * top.c (write_history_p): Add comment.
11128 (show_write_history_p): Add header comment, give a different
11129 message when history writing is on, but the history filename is
11130 empty.
11131 (history_filename): Add comment.
11132 (history_filename_empty): New function.
11133 (show_history_filename): Add header comment, give a different
11134 message when the filename is empty.
11135 (init_history): Compare history_filename against nullptr, and only
11136 read history if the filename is not empty.
11137 (set_history_filename): Add header comment, and only make
11138 non-empty filenames absolute.
11139 (init_main): Make the filename argument to 'set history filename'
11140 optional.
11141
11142 2020-03-02 Christian Biesinger <cbiesinger@google.com>
11143
11144 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
11145 (arm_supply_vfpregset): ...this, and update to use VFP registers.
11146 (fetch_fp_register): Update.
11147 (fetch_fp_regs): Update.
11148 (store_fp_register): Update.
11149 (store_fp_regs): Update.
11150 (arm_netbsd_nat_target::read_description): New function.
11151 (fetch_elfcore_registers): Update.
11152
11153 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
11154
11155 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
11156 general_thread if the stop reply is missing a thread-id.
11157 (remote_target::process_stop_reply): Use the first non-exited
11158 thread if the target didn't pass a thread-id.
11159 * infrun.c (do_target_wait): Move call to
11160 switch_to_inferior_no_thread to ....
11161 (do_target_wait_1): ... here.
11162
11163 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
11164
11165 * debuginfod-support.c: Include defs.h first.
11166
11167 2020-02-28 Tom de Vries <tdevries@suse.de>
11168
11169 * symfile.c (set_initial_language): Use default language for lookup.
11170
11171 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
11172
11173 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
11174 reader variable, pass `this` to read_cutu_die_from_dwo.
11175
11176 2020-02-27 Aaron Merey <amerey@redhat.com>
11177
11178 * source.c (open_source_file): Check for nullptr when computing
11179 srcpath.
11180
11181 2020-02-27 Tom Tromey <tromey@adacore.com>
11182
11183 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
11184 member.
11185 (dwarf2_add_field): Don't update nfields.
11186 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
11187
11188 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11189
11190 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
11191 abs.
11192
11193 2020-02-26 Tom Tromey <tom@tromey.com>
11194
11195 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
11196 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
11197 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
11198 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
11199 per_cu_data.
11200
11201 2020-02-26 Tom Tromey <tom@tromey.com>
11202
11203 * dwarf2/index-write.c (psym_index_map): Change type.
11204 (add_address_entry_worker, write_one_signatured_type)
11205 (recursively_count_psymbols, recursively_write_psymbols)
11206 (class debug_names, psyms_seen_size, write_gdbindex)
11207 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
11208
11209 2020-02-26 Aaron Merey <amerey@redhat.com>
11210
11211 * Makefile.in: Handle optional debuginfod support.
11212 * NEWS: Update.
11213 * README: Add --with-debuginfod summary.
11214 * config.in: Regenerate.
11215 * configure: Regenerate.
11216 * configure.ac: Handle optional debuginfod support.
11217 * debuginfod-support.c: debuginfod helper functions.
11218 * debuginfod-support.h: Ditto.
11219 * doc/gdb.texinfo: Add --with-debuginfod to configure options
11220 summary.
11221 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
11222 when a dwz file cannot be found.
11223 * elfread.c (elf_symfile_read): Query debuginfod servers when a
11224 debuginfo file cannot be found.
11225 * source.c (open_source_file): Query debuginfod servers when a
11226 source file cannot be found.
11227 * top.c (print_gdb_configuration): Include
11228 --{with,without}-debuginfod in the output.
11229
11230 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
11231
11232 * thread.c (thr_try_catch_cmd): Print thread name.
11233
11234 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
11235
11236 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
11237 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
11238 dwarf2_fetch_die_type_sect_off): Move to...
11239 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
11240 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
11241 dwarf2_fetch_die_type_sect_off): ... here.
11242 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
11243 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
11244 dwarf2_fetch_die_type_sect_off): Move doc to header file.
11245
11246 2020-02-26 Tom de Vries <tdevries@suse.de>
11247
11248 PR gdb/25603
11249 * symfile.c (set_initial_language): Exit-early if
11250 language_mode == language_mode_manual.
11251
11252 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
11253
11254 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
11255 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
11256 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
11257
11258 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
11259
11260 * gdbtypes.c (create_array_type_with_stride): Handle negative
11261 array strides.
11262 * valarith.c (value_subscripted_rvalue): Likewise.
11263
11264 2020-02-25 Luis Machado <luis.machado@linaro.org>
11265
11266 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
11267
11268 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
11269
11270 * loc.h (dwarf2_get_die_type): Move to...
11271 * read.h (dwarf2_get_die_type): ... here.
11272 * read.c (dwarf2_get_die_type): Move doc to header.
11273
11274 2020-02-25 Joel Brobecker <brobecker@adacore.com>
11275
11276 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
11277 'gnulib/Makefile.in' to the list.
11278
11279 2020-02-24 Tom Tromey <tom@tromey.com>
11280
11281 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
11282 Remove.
11283 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
11284 XOBNEWVEC.
11285
11286 2020-02-24 Tom Tromey <tom@tromey.com>
11287
11288 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
11289 New method.
11290 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
11291 (dw2_do_instantiate_symtab, dw2_get_file_names)
11292 (build_type_psymtab_dependencies, load_full_type_unit): Update.
11293
11294 2020-02-24 Tom Tromey <tom@tromey.com>
11295
11296 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
11297 make_scoped_restore.
11298 (dwarf2_psymtab::read_symtab): Don't clear
11299 reading_partial_symbols.
11300
11301 2020-02-24 Tom de Vries <tdevries@suse.de>
11302
11303 PR gdb/25592
11304 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
11305
11306 2020-02-24 Tom de Vries <tdevries@suse.de>
11307
11308 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
11309 commands layout next/prev/regs.
11310
11311 2020-02-22 Tom Tromey <tom@tromey.com>
11312
11313 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
11314 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
11315
11316 2020-02-22 Tom Tromey <tom@tromey.com>
11317
11318 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
11319
11320 2020-02-22 Tom Tromey <tom@tromey.com>
11321
11322 * tui/tui-win.c (_initialize_tui_win): Add usage text.
11323 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
11324 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
11325 * tui/tui.c (_initialize_tui): Add usage text.
11326
11327 2020-02-22 Tom Tromey <tom@tromey.com>
11328
11329 * tui/tui-win.c (tui_set_focus_command)
11330 (tui_set_win_height_command): Use error_no_arg.
11331 (_initialize_tui_win): Update help text.
11332 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
11333
11334 2020-02-22 Tom Tromey <tom@tromey.com>
11335
11336 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
11337 * tui/tui-disasm.h (struct tui_disasm_window)
11338 <display_start_addr>: Declare.
11339 * tui/tui-source.h (struct tui_source_window)
11340 <display_start_addr>: Declare.
11341 * tui/tui-winsource.h (struct tui_source_window_base)
11342 <show_source_line, display_start_addr>: New methods.
11343 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
11344 Rename and move to protected section.
11345 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
11346 (tui_source_window_base::do_erase_source_content): Update.
11347 (tui_source_window_base::show_source_line): Now a method.
11348 (tui_source_window_base::show_source_content)
11349 (tui_source_window_base::tui_source_window_base)
11350 (tui_source_window_base::rerender)
11351 (tui_source_window_base::refill)
11352 (tui_source_window_base::do_scroll_horizontal)
11353 (tui_source_window_base::set_is_exec_point_at)
11354 (tui_source_window_base::update_breakpoint_info)
11355 (tui_source_window_base::update_exec_info): Update.
11356 * tui/tui-source.c (tui_source_window::set_contents)
11357 (tui_source_window::showing_source_p)
11358 (tui_source_window::do_scroll_vertical)
11359 (tui_source_window::location_matches_p)
11360 (tui_source_window::line_is_displayed): Update.
11361 (tui_source_window::display_start_addr): New method.
11362 * tui/tui-disasm.c (tui_disasm_window::set_contents)
11363 (tui_disasm_window::do_scroll_vertical)
11364 (tui_disasm_window::location_matches_p): Update.
11365 (tui_disasm_window::display_start_addr): New method.
11366
11367 2020-02-22 Tom Tromey <tom@tromey.com>
11368
11369 * NEWS: Add entry for gdb.register_window_type.
11370 * tui/tui-layout.h (window_factory): New typedef.
11371 (tui_register_window): Declare.
11372 * tui/tui-layout.c (saved_tui_windows): New global.
11373 (tui_apply_current_layout): Use it.
11374 (tui_register_window): New function.
11375 * python/python.c (do_start_initialization): Call
11376 gdbpy_initialize_tui.
11377 (python_GdbMethods): Add "register_window_type" function.
11378 * python/python-internal.h (gdbpy_register_tui_window)
11379 (gdbpy_initialize_tui): Declare.
11380 * python/py-tui.c: New file.
11381 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
11382
11383 2020-02-22 Tom Tromey <tom@tromey.com>
11384
11385 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
11386
11387 2020-02-22 Tom Tromey <tom@tromey.com>
11388
11389 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
11390 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
11391 * tui/tui-data.c (tui_set_win_with_focus): Remove.
11392 (tui_set_win_focus_to): Move from tui-win.c.
11393
11394 2020-02-22 Tom Tromey <tom@tromey.com>
11395
11396 * tui/tui-layout.c (make_standard_window, get_locator_window): New
11397 functions.
11398 (known_window_types): New global.
11399 (tui_get_window_by_name): Reimplement.
11400 (initialize_known_windows): New function.
11401 (validate_window_name): Rewrite.
11402 (_initialize_tui_layout): Call initialize_known_windows.
11403
11404 2020-02-22 Tom Tromey <tom@tromey.com>
11405
11406 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
11407 Remove constants.
11408 * tui/tui-winsource.h (struct tui_source_window_base)
11409 <tui_source_window_base>: Remove parameter.
11410 * tui/tui-winsource.c
11411 (tui_source_window_base::tui_source_window_base): Remove
11412 parameter.
11413 (tui_source_window_base::refill): Update.
11414 * tui/tui-stack.h (struct tui_locator_window)
11415 <tui_locator_window>: Update.
11416 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
11417 Default the constructor.
11418 * tui/tui-regs.h (struct tui_data_item_window)
11419 <tui_data_item_window>: Default the constructor.
11420 (struct tui_data_window) <tui_data_window>: Likewise.
11421 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
11422 Default the constructor.
11423 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
11424 Default the constructor.
11425 <type>: Remove.
11426 (struct tui_win_info) <tui_win_info>: Default the constructor.
11427 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
11428 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
11429 Default the constructor.
11430
11431 2020-02-22 Tom Tromey <tom@tromey.com>
11432
11433 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
11434 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
11435 * tui/tui-win.c (tui_resize_all): Don't call
11436 tui_delete_invisible_windows.
11437 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
11438 done.
11439 (tui_set_layout): Update.
11440 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
11441 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
11442 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
11443
11444 2020-02-22 Tom Tromey <tom@tromey.com>
11445
11446 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
11447 correctly.
11448
11449 2020-02-22 Tom Tromey <tom@tromey.com>
11450
11451 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
11452
11453 2020-02-22 Tom Tromey <tom@tromey.com>
11454
11455 * tui/tui-winsource.h (struct tui_source_window_iterator)
11456 <inner_iterator>: New etytypedef.
11457 <tui_source_window_iterator>: Take "end" parameter.
11458 <tui_source_window_iterator>: Take iterator.
11459 <operator*, advance>: Update.
11460 <m_iter>: Change type.
11461 <m_end>: New field.
11462 (struct tui_source_windows) <begin, end>: Update.
11463 * tui/tui-layout.c (tui_windows): New global.
11464 (tui_apply_current_layout): Clear tui_windows.
11465 (tui_layout_window::apply): Update tui_windows.
11466 * tui/tui-data.h (tui_windows): Declare.
11467 (all_tui_windows): Now inline function.
11468 (class tui_window_iterator, struct all_tui_windows): Remove.
11469
11470 2020-02-22 Tom Tromey <tom@tromey.com>
11471
11472 PR tui/17850:
11473 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
11474 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
11475 "height" argument.
11476 (class tui_layout_window) <get_sizes>: Likewise.
11477 (class tui_layout_split) <tui_layout_split>: Add "vertical"
11478 argument.
11479 <get_sizes>: Add "height" argument.
11480 <m_vertical>: New field.
11481 * tui/tui-layout.c (tui_layout_split::clone): Update.
11482 (tui_layout_split::get_sizes): Add "height" argument.
11483 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
11484 (tui_new_layout_command): Parse "-horizontal".
11485 (_initialize_tui_layout): Update help string.
11486 (tui_layout_split::specification): Add "-horizontal" when needed.
11487 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
11488 argument.
11489 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
11490 New methods.
11491
11492 2020-02-22 Tom Tromey <tom@tromey.com>
11493
11494 * tui/tui-layout.h (enum tui_adjust_result): New.
11495 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
11496 (class tui_layout_window) <adjust_size>: Return
11497 tui_adjust_result. Rewrite.
11498 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
11499 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
11500
11501 2020-02-22 Tom Tromey <tom@tromey.com>
11502
11503 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
11504 parameter and return types.
11505 (class tui_layout_base) <specification>: Add "depth".
11506 (class tui_layout_window) <specification>: Add "depth".
11507 (class tui_layout_split) <specification>: Add "depth".
11508 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
11509 and return types.
11510 (tui_new_layout_command): Parse sub-layouts.
11511 (_initialize_tui_layout): Update help string.
11512 (tui_layout_window::specification): Add "depth".
11513 (add_layout_command): Update.
11514
11515 2020-02-22 Tom Tromey <tom@tromey.com>
11516
11517 * NEWS: Add "tui new-layout" item.
11518 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
11519 Add new-layout command to help text.
11520 (validate_window_name): New function.
11521 (tui_new_layout_command): New function.
11522 (_initialize_tui_layout): Register "new-layout".
11523 (tui_layout_window::specification): New method.
11524 (tui_layout_window::specification): New method.
11525 * tui/tui-layout.h (class tui_layout_base) <specification>: New
11526 method.
11527 (class tui_layout_window) <specification>: New method.
11528 (class tui_layout_split) <specification>: New method.
11529
11530 2020-02-22 Tom Tromey <tom@tromey.com>
11531
11532 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
11533 * tui/tui-win.c (window_name_completer): Update comment.
11534 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
11535 Declare method.
11536 (class tui_layout_window) <replace_window>: Likewise.
11537 (class tui_layout_split) <replace_window>: Likewise.
11538 (tui_set_layout): Don't declare.
11539 (tui_set_initial_layout): Declare function.
11540 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
11541 (asm_regs_layout): New globals.
11542 (tui_current_layout, show_layout): Remove.
11543 (tui_set_layout, tui_add_win_to_layout): Rewrite.
11544 (find_layout, tui_apply_layout): New function.
11545 (layout_completer): Remove.
11546 (tui_next_layout): Reimplement.
11547 (tui_next_layout_command): New function.
11548 (tui_set_initial_layout, tui_prev_layout_command): New functions.
11549 (tui_regs_layout): Reimplement.
11550 (tui_regs_layout_command): New function.
11551 (extract_display_start_addr): Rewrite.
11552 (next_layout, prev_layout): Remove.
11553 (tui_layout_window::replace_window): New method.
11554 (tui_layout_split::replace_window): New method.
11555 (destroy_layout): New function.
11556 (layout_list): New global.
11557 (add_layout_command): New function.
11558 (initialize_layouts): Update.
11559 (tui_layout_command): New function.
11560 (_initialize_tui_layout): Install "layout" commands.
11561 * tui/tui-data.h (enum tui_layout_type): Remove.
11562 (tui_current_layout): Don't declare.
11563
11564 2020-02-22 Tom Tromey <tom@tromey.com>
11565
11566 * tui/tui-regs.c (tui_reg_layout): Remove.
11567 (tui_reg_command): Use tui_regs_layout.
11568 * tui/tui-layout.h (tui_reg_command): Declare.
11569 * tui/tui-layout.c (tui_reg_command): New function.
11570
11571 2020-02-22 Tom Tromey <tom@tromey.com>
11572
11573 * tui/tui.c (tui_rl_delete_other_windows): Call
11574 tui_remove_some_windows.
11575 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
11576 Declare method.
11577 (class tui_layout_window) <remove_windows>: New method.
11578 (class tui_layout_split) <remove_windows>: Declare.
11579 (tui_remove_some_windows): Declare.
11580 * tui/tui-layout.c (tui_remove_some_windows): New function.
11581 (tui_layout_split::remove_windows): New method.
11582
11583 2020-02-22 Tom Tromey <tom@tromey.com>
11584
11585 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
11586 * tui/tui-layout.h (tui_next_layout): Declare.
11587 * tui/tui-layout.c (tui_next_layout): New function.
11588
11589 2020-02-22 Tom Tromey <tom@tromey.com>
11590
11591 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
11592 correct coordinates.
11593
11594 2020-02-22 Tom Tromey <tom@tromey.com>
11595
11596 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
11597 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
11598 DATA_WIN case.
11599
11600 2020-02-22 Tom Tromey <tom@tromey.com>
11601
11602 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
11603 TUI_DISASM_WIN, not tui_win_list.
11604
11605 2020-02-22 Tom Tromey <tom@tromey.com>
11606
11607 * valprint.c (generic_val_print_enum_1)
11608 (val_print_type_code_flags): Style member names.
11609 * rust-lang.c (val_print_struct, rust_print_enum)
11610 (rust_print_struct_def, rust_internal_print_type): Style member
11611 names.
11612 * p-valprint.c (pascal_object_print_value_fields): Style member
11613 names. Only call fprintf_symbol_filtered for static members.
11614 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
11615 * f-valprint.c (f_val_print): Style member names.
11616 * f-typeprint.c (f_type_print_base): Style member names.
11617 * cp-valprint.c (cp_print_value_fields): Style member names. Only
11618 call fprintf_symbol_filtered for static members.
11619 (cp_print_class_member): Style member names.
11620 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
11621 member names.
11622 * ada-valprint.c (ada_print_scalar): Style enum names.
11623 (ada_val_print_enum): Likewise.
11624 * ada-typeprint.c (print_enum_type): Style enum names.
11625
11626 2020-02-21 Tom Tromey <tom@tromey.com>
11627
11628 * psympriv.h (struct partial_symtab): Update comment.
11629
11630 2020-02-21 Tom Tromey <tromey@adacore.com>
11631
11632 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
11633 type is CORE_ADDR.
11634
11635 2020-02-21 Tom de Vries <tdevries@suse.de>
11636
11637 PR gdb/25534
11638 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
11639 if dependencies[i]->user != NULL.
11640
11641 2020-02-21 Ali Tamur <tamur@google.com>
11642
11643 * dwarf2/read.c (dwarf2_name): Add null check.
11644
11645 2020-02-20 Tom Tromey <tom@tromey.com>
11646
11647 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
11648 ">=", in binary search.
11649 (dwarf2_find_containing_comp_unit): New overload.
11650 (run_test): New self-test.
11651 (_initialize_dwarf2_read): Register new test.
11652
11653 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
11654
11655 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
11656 * riscv-tdep.h: Likewise.
11657 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
11658 rv32-only CSR.
11659 * features/riscv/64bit-csr.xml: Regenerated.
11660
11661 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
11662 Tom Tromey <tom@tromey.com>
11663
11664 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
11665 of 'fputc_unfiltered'.
11666 (putchar_unfiltered): Call 'fputc_unfiltered'.
11667 (fputc_unfiltered): Call 'fputs_unfiltered'.
11668
11669 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
11670
11671 * config.in: Regenerate.
11672 * configure: Regenerate.
11673 * configure.ac: Add --with-python-libdir option.
11674 * main.c: Use WITH_PYTHON_LIBDIR.
11675
11676 2020-02-19 Tom Tromey <tom@tromey.com>
11677
11678 * symtab.c (general_symbol_info::compute_and_set_names): Use
11679 obstack_strndup. Simplify call to symbol_set_demangled_name.
11680
11681 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
11682
11683 * dwarf2/read.c (allocate_signatured_type_table,
11684 allocate_dwo_unit_table, allocate_type_unit_groups_table,
11685 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
11686 Remove objfile parameter, update all callers.
11687
11688 2020-02-19 Doug Evans <dje@google.com>
11689
11690 PR rust/25535
11691 * rust-lang.c (rust_print_enum): Apply embedded_offset to
11692 rust_enum_variant calculation.
11693
11694 2020-02-19 Tom Tromey <tromey@adacore.com>
11695
11696 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
11697
11698 2020-02-19 Tom Tromey <tromey@adacore.com>
11699
11700 * ada-lang.c (cache_symbol): Use obstack_strdup.
11701
11702 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
11703
11704 * configure: Regenerate.
11705
11706 2020-02-19 Tom Tromey <tromey@adacore.com>
11707
11708 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
11709 NULL check.
11710
11711 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
11712
11713 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
11714
11715 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
11716
11717 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
11718 if GDBSERVER is not defined.
11719 (riscv_tdesc_cache): Likewise, also store const target_desc.
11720 (STATIC_IN_GDB): Define.
11721 (riscv_create_target_description): Update declaration with
11722 STATIC_IN_GDB.
11723 (riscv_lookup_target_description): New function, only define if
11724 GDBSERVER is not defined.
11725 * arch/riscv.h (riscv_create_target_description): Declare only
11726 when GDBSERVER is defined.
11727 (riscv_lookup_target_description): New declaration when GDBSERVER
11728 is not defined.
11729 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
11730 (riscv_linux_read_features): ...this, and return
11731 riscv_gdbarch_features instead of target_desc.
11732 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
11733 (riscv_linux_read_description): Rename to...
11734 (riscv_linux_read_features): ...this.
11735 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
11736 Update to use riscv_gdbarch_features and
11737 riscv_lookup_target_description.
11738 * riscv-tdep.c (riscv_find_default_target_description): Use
11739 riscv_lookup_target_description instead of
11740 riscv_create_target_description.
11741
11742 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
11743
11744 * valprint.c (generic_val_print_enum_1): When printing a flag
11745 enum with value 0 and there is no enumerator with value 0, print
11746 just "0" instead of "(unknown: 0x0)".
11747
11748 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
11749
11750 * valprint.c (generic_val_print_enum_1): Print unknown part of
11751 flag enum in hex.
11752
11753 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
11754
11755 * dwarf2/read.c (update_enumeration_type_from_children): Allow
11756 flag enums to contain duplicate enumerators.
11757 * valprint.c (generic_val_print_enum_1): Update comment.
11758
11759 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
11760
11761 * dwarf2/read.c: Include "count-one-bits.h".
11762 (update_enumeration_type_from_children): If an enumerator has
11763 multiple bits set, don't treat the enumeration as a "flag enum".
11764 * valprint.c (generic_val_print_enum_1): Assert that enumerators
11765 of flag enums have 0 or 1 bit set.
11766
11767 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
11768
11769 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
11770 conversion.
11771 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11772 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
11773 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11774 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
11775 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11776
11777 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
11778
11779 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
11780
11781 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
11782
11783 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
11784 displaced_step_closure_up.
11785 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
11786 (struct displaced_step_closure_up):
11787 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11788 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
11789 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
11790 Likewise.
11791 * gdbarch.sh (displaced_step_copy_insn): Likewise.
11792 * gdbarch.c, gdbarch.h: Re-generate.
11793 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
11794 displaced_step_closure_up.
11795 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11796 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
11797 * infrun.h (displaced_step_closure_up): New type alias.
11798 (struct displaced_step_inferior_state) <step_closure>: Change
11799 type to displaced_step_closure_up.
11800 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
11801 displaced_step_closure_up.
11802 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11803
11804 2020-02-14 Tom Tromey <tom@tromey.com>
11805
11806 * minidebug.c (gnu_debug_key): New global.
11807 (find_separate_debug_file_in_section): Use it.
11808
11809 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
11810
11811 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
11812 std::unique_ptr.
11813 * gdbarch.c: Re-generate.
11814 * gdbarch.h: Re-generate.
11815 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
11816 change.
11817 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
11818 type to std::unique_ptr.
11819 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
11820 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11821 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
11822 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
11823 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
11824 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11825 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
11826 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
11827 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11828
11829 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
11830
11831 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
11832 std::unique_ptr.
11833 (displaced_step_clear): Rename to...
11834 (displaced_step_reset): ... this. Just call displaced->reset ().
11835 (displaced_step_clear_cleanup): Rename to...
11836 (displaced_step_reset_cleanup): ... this.
11837 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
11838 (displaced_step_fixup): Likewise.
11839 (resume_1): Likewise.
11840 (handle_inferior_event): Restore child's memory before calling
11841 displaced_step_fixup on the parent.
11842 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
11843 to std::unique_ptr.
11844 <step_closure>: Change type to std::unique_ptr.
11845
11846 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
11847
11848 * arm-tdep.c: Include count-one-bits.h.
11849 (cleanup_block_store_pc): Use count_one_bits.
11850 (cleanup_block_load_pc): Use count_one_bits.
11851 (arm_copy_block_xfer): Use count_one_bits.
11852 (thumb2_copy_block_xfer): Use count_one_bits.
11853 (thumb_copy_pop_pc_16bit): Use count_one_bits.
11854 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
11855 (thumb_get_next_pcs_raw): Use count_one_bits.
11856 (arm_get_next_pcs_raw): Use count_one_bits_l.
11857 * arch/arm.c (bitcount): Remove.
11858 * arch/arm.h (bitcount): Remove.
11859
11860 2020-02-14 Tom Tromey <tromey@adacore.com>
11861
11862 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
11863 Update.
11864 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
11865 * dwarf2/loc.c (call_site_find_chain_1): Return
11866 unique_xmalloc_ptr.
11867 (call_site_find_chain): Likewise.
11868
11869 2020-02-14 Richard Biener <rguenther@suse.de>
11870
11871 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
11872 on expression with division operators.
11873
11874 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11875
11876 * MAINTAINERS (Write After Approval): Adding myself.
11877
11878 2020-02-12 Tom Tromey <tom@tromey.com>
11879
11880 * event-loop.c (event_data, gdb_event, event_handler_func):
11881 Remove.
11882
11883 2020-02-12 Tom Tromey <tom@tromey.com>
11884
11885 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
11886 (dwarf2_frame_objfile_data): Add comment.
11887 (find_comp_unit, set_comp_unit): New functions.
11888 (dwarf2_frame_find_fde): Use find_comp_unit.
11889 (dwarf2_build_frame_info): Use set_comp_unit.
11890
11891 2020-02-12 Tom Tromey <tom@tromey.com>
11892
11893 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
11894 (comp_unit): Don't initialize objfile.
11895 (execute_cfa_program): Add text_offset parameter.
11896 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
11897 (dwarf2_frame_cache): Update.
11898 (dwarf2_build_frame_info): Don't set "objfile" member.
11899
11900 2020-02-12 Tom Tromey <tom@tromey.com>
11901
11902 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
11903 (decode_frame_entry): Likewise.
11904 (dwarf2_build_frame_info): Update.
11905
11906 2020-02-12 Tom Tromey <tom@tromey.com>
11907
11908 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
11909 (decode_frame_entry_1): Use the comp_unit obstack.
11910
11911 2020-02-12 Tom Tromey <tom@tromey.com>
11912
11913 * dwarf2/frame.c (struct comp_unit): Add initializers and
11914 constructor.
11915 (dwarf2_frame_objfile_data): Store a comp_unit.
11916 (dwarf2_frame_find_fde): Update.
11917 (dwarf2_build_frame_info): Use "new".
11918
11919 2020-02-12 Tom Tromey <tom@tromey.com>
11920
11921 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
11922 (dwarf2_fde_table): Typedef for std::vector.
11923 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
11924 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
11925 (decode_frame_entry): Update.
11926 (dwarf2_build_frame_info): Use "new".
11927
11928 2020-02-12 Christian Biesinger <cbiesinger@google.com>
11929
11930 * arm-tdep.c (arm_gdbarch_init): Update.
11931 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
11932 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
11933 have_neon, is_m>: Change to bool.
11934
11935 2020-02-12 Christian Biesinger <cbiesinger@google.com>
11936
11937 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
11938
11939 2020-02-12 Tom Tromey <tom@tromey.com>
11940
11941 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
11942
11943 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
11944
11945 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
11946 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
11947
11948 2020-02-11 Tom Tromey <tom@tromey.com>
11949
11950 * psymtab.h: Update comment.
11951
11952 2020-02-11 Tom Tromey <tom@tromey.com>
11953
11954 * gdb_obstack.h (struct auto_obstack): Use
11955 DISABLE_COPY_AND_ASSIGN.
11956
11957 2020-02-11 Tom Tromey <tom@tromey.com>
11958
11959 * dwarf2/frame.h (struct objfile): Don't forward declare.
11960
11961 2020-02-11 Christian Biesinger <cbiesinger@google.com>
11962
11963 * cris-tdep.c (cris_supply_gregset): Change signature to match
11964 what struct regset expects.
11965 (cris_regset): New struct.
11966 (fetch_core_registers): Remove.
11967 (cris_iterate_over_regset_sections): New function.
11968 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
11969 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
11970
11971 2020-02-11 Christian Biesinger <cbiesinger@google.com>
11972
11973 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
11974 registers.
11975
11976 2020-02-11 Christian Biesinger <cbiesinger@google.com>
11977
11978 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
11979
11980 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
11981
11982 * configure: Re-generate.
11983
11984 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
11985
11986 * configure: Re-generate.
11987
11988 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
11989
11990 * acinclude: Update warning.m4 path.
11991 * warning.m4: Move to gdbsupport.
11992
11993 2020-02-11 Tom Tromey <tromey@adacore.com>
11994
11995 * remote.c (remote_console_output): Update.
11996 * printcmd.c (printf_command): Update.
11997 * event-loop.c (gdb_wait_for_event): Update.
11998 * linux-nat.c (sigchld_handler): Update.
11999 * remote-sim.c (gdb_os_write_stdout): Update.
12000 (gdb_os_flush_stdout): Update.
12001 (gdb_os_flush_stderr): Update.
12002 (gdb_os_write_stderr): Update.
12003 * exceptions.c (print_exception): Update.
12004 * remote-fileio.c (remote_fileio_func_read): Update.
12005 (remote_fileio_func_write): Update.
12006 * tui/tui.c (tui_enable): Update.
12007 * tui/tui-interp.c (tui_interp::init): Update.
12008 * utils.c (init_page_info): Update.
12009 (putchar_unfiltered, fputc_unfiltered): Update.
12010 (gdb_flush): Update.
12011 (emit_style_escape): Update.
12012 (flush_wrap_buffer, fputs_maybe_filtered): Update.
12013 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
12014 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
12015 (stderr_file::write): Update.
12016 (stderr_file::puts): Update.
12017 * ui-file.h (ui_file_isatty, ui_file_write)
12018 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
12019 (ui_file_puts): Don't declare.
12020
12021 2020-02-10 Tom de Vries <tdevries@suse.de>
12022
12023 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
12024 sentinel to char *.
12025
12026 2020-02-09 Tom de Vries <tdevries@suse.de>
12027
12028 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
12029 filename if it matches "<artificial>".
12030
12031 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
12032
12033 * windows-tdep.c (struct enum_value_name): New struct.
12034 (create_enum): New function.
12035 (windows_get_siginfo_type): Create and use enum types.
12036
12037 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
12038
12039 * NEWS: Mention $_siginfo support for Windows.
12040 * windows-nat.c (handle_exception): Set siginfo_er.
12041 (windows_nat_target::mourn_inferior): Reset siginfo_er.
12042 (windows_xfer_siginfo): New function.
12043 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
12044 * windows-tdep.c (struct windows_gdbarch_data): New struct.
12045 (init_windows_gdbarch_data): New function.
12046 (get_windows_gdbarch_data): New function.
12047 (windows_get_siginfo_type): New function.
12048 (windows_init_abi): Register windows_get_siginfo_type.
12049 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
12050
12051 2020-02-08 Tom Tromey <tom@tromey.com>
12052
12053 * dwarf2/read.c (class cutu_reader) <cutu_reader,
12054 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
12055 <keep>: Declare method.
12056 <m_keep>: Remove member.
12057 <~cutu_reader>: Remove.
12058 (cutu_reader::init_tu_and_read_dwo_dies): Update.
12059 (cutu_reader::cutu_reader): Update.
12060 (cutu_reader::keep): Rename from ~cutu_reader.
12061 (process_psymtab_comp_unit, build_type_psymtabs_1)
12062 (process_skeletonless_type_unit, load_partial_comp_unit)
12063 (load_full_comp_unit, dwarf2_read_addr_index)
12064 (read_signatured_type): Update.
12065
12066 2020-02-08 Tom Tromey <tom@tromey.com>
12067
12068 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
12069 "want_partial_unit" parameter.
12070 (process_psymtab_comp_unit): Change want_partial_unit to bool.
12071 Inline check for DW_TAG_partial_unit.
12072 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
12073
12074 2020-02-08 Tom Tromey <tom@tromey.com>
12075
12076 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
12077 read.c.
12078 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
12079 read.c.
12080
12081 2020-02-08 Tom Tromey <tom@tromey.com>
12082
12083 * dwarf2/read.c (read_address): Move to comp-unit.c.
12084 (dwarf2_rnglists_process, dwarf2_ranges_process)
12085 (read_attribute_value, dwarf_decode_lines_1)
12086 (var_decode_location, decode_locdesc): Update.
12087 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
12088 read.c. Remove "cu" parameter.
12089 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
12090 method.
12091
12092 2020-02-08 Tom Tromey <tom@tromey.com>
12093
12094 * dwarf2/read.c (read_attribute_value, read_indirect_string)
12095 (read_indirect_line_string): Update.
12096 * dwarf2/comp-unit.c (read_offset): Remove.
12097 (read_comp_unit_head): Update.
12098 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
12099 method.
12100 (read_offset): Don't declare.
12101
12102 2020-02-08 Tom Tromey <tom@tromey.com>
12103
12104 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
12105 * dwarf2/read.c (struct comp_unit_head): Move to
12106 dwarf2/comp-unit.h.
12107 (enum class rcuh_kind): Move to comp-unit.h.
12108 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
12109 (read_comp_unit_head, error_check_comp_unit_head)
12110 (read_and_check_comp_unit_head): Move to comp-unit.c.
12111 (read_offset, dwarf_unit_type_name): Likewise.
12112 (create_debug_type_hash_table, read_cutu_die_from_dwo)
12113 (cutu_reader::cutu_reader, read_call_site_scope)
12114 (find_partial_die, follow_die_offset): Update.
12115 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
12116
12117 2020-02-08 Tom Tromey <tom@tromey.com>
12118
12119 * dwarf2/read.c (read_offset_1): Move to leb.c.
12120 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
12121 (dwarf_decode_macro_bytes): Update.
12122 * dwarf2/leb.c (read_offset): Rename; move from read.c.
12123 * dwarf2/leb.h (read_offset): Declare.
12124
12125 2020-02-08 Tom Tromey <tom@tromey.com>
12126
12127 * dwarf2/read.c (dwarf2_section_size): Remove.
12128 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
12129 Update.
12130 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
12131
12132 2020-02-08 Tom Tromey <tom@tromey.com>
12133
12134 * dwarf2/read.c (read_initial_length): Move to leb.c.
12135 * dwarf2/leb.h (read_initial_length): Declare.
12136 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
12137 handle_nonstd parameter.
12138 * dwarf2/frame.c (read_initial_length): Remove.
12139 (decode_frame_entry_1): Update.
12140
12141 2020-02-08 Tom Tromey <tom@tromey.com>
12142
12143 * dwarf2/loc.c (dwarf2_find_location_expression)
12144 (dwarf_evaluate_loc_desc::get_tls_address)
12145 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
12146 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
12147 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
12148 (dwarf2_compile_property_to_c)
12149 (dwarf2_loc_desc_get_symbol_read_needs)
12150 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
12151 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
12152 (loclist_describe_location, loclist_tracepoint_var_ref)
12153 (loclist_generate_c_location): Update.
12154 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
12155 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
12156 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
12157 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
12158 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
12159 (dwarf2_per_cu_data::addr_size)
12160 (dwarf2_per_cu_data::ref_addr_size)
12161 (dwarf2_per_cu_data::text_offset)
12162 (dwarf2_per_cu_data::addr_type): Now methods.
12163 (per_cu_header_read_in): Make per_cu "const".
12164 (dwarf2_version): Remove.
12165 (dwarf2_per_cu_data::int_type): Now a method.
12166 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
12167 (set_die_type, read_array_type, read_subrange_index_type)
12168 (read_tag_string_type, read_subrange_type): Update.
12169 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
12170 offset_size, ref_addr_size, text_offset, addr_type, version,
12171 objfile, int_type, addr_sized_int_type>: Declare methods.
12172
12173 2020-02-08 Tom Tromey <tom@tromey.com>
12174
12175 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
12176 Move earlier.
12177
12178 2020-02-08 Tom Tromey <tom@tromey.com>
12179
12180 * dwarf2/read.h (dwarf_line_debug): Declare.
12181 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
12182 * dwarf2/read.c: Move line_header code to new files.
12183 (dwarf_line_debug): No longer static.
12184 * dwarf2/line-header.c: New file.
12185 * dwarf2/line-header.h: New file.
12186
12187 2020-02-08 Tom Tromey <tom@tromey.com>
12188
12189 * dwarf2/read.c (struct line_header) <file_full_name,
12190 file_file_name>: Return unique_xmalloc_ptr.
12191 (line_header::file_file_name): Update.
12192 (line_header::file_full_name): Update.
12193 (dw2_get_file_names_reader): Update.
12194 (macro_start_file): Update.
12195
12196 2020-02-08 Tom Tromey <tom@tromey.com>
12197
12198 * dwarf2/read.c (struct line_header) <file_full_name,
12199 file_file_name>: Declare methods.
12200 (dw2_get_file_names_reader): Update.
12201 (file_file_name): Now a method.
12202 (file_full_name): Likewise.
12203 (macro_start_file): Update.
12204
12205 2020-02-08 Tom Tromey <tom@tromey.com>
12206
12207 * dwarf2/read.c (dwarf_always_disassemble)
12208 (show_dwarf_always_disassemble): Move to loc.c.
12209 (_initialize_dwarf2_read): Move "always-disassemble" registration
12210 to loc.c.
12211 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
12212 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
12213 static.
12214 (show_dwarf_always_disassemble): Move from read.c.
12215 (_initialize_dwarf2loc): Move always-disassemble from read.c.
12216
12217 2020-02-08 Tom Tromey <tom@tromey.com>
12218
12219 * dwarf2/read.c (~dwarf2_per_objfile): Update.
12220 (create_quick_file_names_table): Return htab_up.
12221 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
12222 Update.
12223 * dwarf2/read.h (struct dwarf2_per_objfile)
12224 <quick_file_names_table>: Now htab_up.
12225
12226 2020-02-08 Tom Tromey <tom@tromey.com>
12227
12228 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
12229
12230 2020-02-08 Tom Tromey <tom@tromey.com>
12231
12232 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
12233 Rewrite.
12234 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
12235 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
12236 (abbrev_table::abbrev_table): No longer inline.
12237 (ABBREV_HASH_SIZE): Remove.
12238 (abbrev_table::m_abbrevs): Now an htab_up.
12239
12240 2020-02-08 Tom Tromey <tom@tromey.com>
12241
12242 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
12243 (cutu_reader): Update.
12244 (build_type_psymtabs_1): Update.
12245 * dwarf2/abbrev.c (abbrev_table::read): Rename.
12246 (abbrev_table::alloc_abbrev): Update.
12247 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
12248 (abbrev_table::read): New static method, renamed from
12249 abbrev_table_read_table.
12250 (abbrev_table::alloc_abbrev)
12251 (abbrev_table::add_abbrev): Now private.
12252 (abbrev_table::abbrev_table): Now private.
12253 (abbrev_table::m_abbrev_obstack): Now private. Rename.
12254
12255 2020-02-08 Tom Tromey <tom@tromey.com>
12256
12257 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
12258 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
12259 htab_up.
12260
12261 2020-02-08 Tom Tromey <tom@tromey.com>
12262
12263 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
12264 htab_up.
12265 (lookup_dwo_unit_in_dwp): Update.
12266 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
12267 on obstack.
12268
12269 2020-02-08 Tom Tromey <tom@tromey.com>
12270
12271 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
12272 obstack.
12273
12274 2020-02-08 Tom Tromey <tom@tromey.com>
12275
12276 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
12277 line_header_hash.
12278 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
12279 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
12280 Change type to htab_up.
12281
12282 2020-02-08 Tom Tromey <tom@tromey.com>
12283
12284 * dwarf2/read.c (allocate_type_unit_groups_table): Return
12285 htab_up. Don't allocate on obstack.
12286 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
12287 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
12288 Change type to htab_up.
12289
12290 2020-02-08 Tom Tromey <tom@tromey.com>
12291
12292 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
12293 Change type to htab_up.
12294 * dwarf2/read.c (create_signatured_type_table_from_index)
12295 (create_signatured_type_table_from_debug_names)
12296 (create_all_type_units, add_type_unit)
12297 (lookup_dwo_signatured_type, lookup_signatured_type)
12298 (process_skeletonless_type_unit): Update.
12299 (create_debug_type_hash_table, create_debug_types_hash_table):
12300 Change type of types_htab.
12301 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
12302 htab_up. Don't allocate on obstack.
12303 (create_cus_hash_table): Change type of cus_htab parameter.
12304 (struct dwo_file) <cus, tus>: Now htab_up.
12305 (lookup_dwo_signatured_type, lookup_dwo_cutu)
12306 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
12307 (queue_and_load_all_dwo_tus): Update.
12308 * dwarf2/index-write.c (write_gdbindex): Update.
12309 (write_debug_names): Update.
12310
12311 2020-02-08 Tom Tromey <tom@tromey.com>
12312
12313 * dwarf2/read.h (struct dwarf2_queue_item): Move from
12314 dwarf2/read.c. Remove "next" member. Add constructor ntad
12315 destructor.
12316 (struct dwarf2_per_objfile) <queue>: New member.
12317 * dwarf2/read.c (struct dwarf2_queue_item): Move to
12318 dwarf2/read.h.
12319 (dwarf2_queue, dwarf2_queue_tail): Remove.
12320 (class dwarf2_queue_guard): Add parameter to constructor. Use
12321 DISABLE_COPY_AND_ASSIGN.
12322 <m_per_objfile>: New member.
12323 <~dwarf2_queue_guard>: Rewrite.
12324 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
12325 Update.
12326 (~dwarf2_queue_item): New.
12327
12328 2020-02-08 Tom Tromey <tom@tromey.com>
12329
12330 * dwarf2/read.c (struct die_info) <has_children>: New member.
12331 (dw2_get_file_names_reader): Remove has_children.
12332 (dw2_get_file_names): Update.
12333 (read_cutu_die_from_dwo): Remove has_children.
12334 (cutu_reader::init_tu_and_read_dwo_dies)
12335 (cutu_reader::cutu_reader): Update.
12336 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
12337 Remove has_children.
12338 (build_type_psymtabs_1, process_skeletonless_type_unit)
12339 (load_partial_comp_unit, load_full_comp_unit): Update.
12340 (create_dwo_cu_reader): Remove has_children.
12341 (create_cus_hash_table, read_die_and_children): Update.
12342 (read_full_die_1,read_full_die): Remove has_children.
12343 (read_signatured_type): Update.
12344 (class cutu_reader) <has_children>: Remove.
12345
12346 2020-02-08 Tom Tromey <tom@tromey.com>
12347
12348 * dwarf2/expr.c: Rename from dwarf2expr.c.
12349 * dwarf2/expr.h: Rename from dwarf2expr.h.
12350 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
12351 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
12352 * dwarf2/frame.c: Rename from dwarf2-frame.c.
12353 * dwarf2/frame.h: Rename from dwarf2-frame.h.
12354 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
12355 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
12356 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
12357 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
12358 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
12359 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
12360 * dwarf2/loc.c: Rename from dwarf2loc.c.
12361 * dwarf2/loc.h: Rename from dwarf2loc.h.
12362 * dwarf2/read.c: Rename from dwarf2read.c.
12363 * dwarf2/read.h: Rename from dwarf2read.h.
12364 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
12365 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
12366 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
12367 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
12368 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
12369 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
12370 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
12371 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
12372 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
12373 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
12374 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
12375 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
12376 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
12377 Update.
12378 * Makefile.in (COMMON_SFILES): Update.
12379 (HFILES_NO_SRCDIR): Update.
12380
12381 2020-02-08 Tom Tromey <tom@tromey.com>
12382
12383 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
12384 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
12385
12386 2020-02-08 Tom Tromey <tom@tromey.com>
12387
12388 * dwarf2read.h (struct die_info): Don't declare.
12389
12390 2020-02-08 Tom Tromey <tom@tromey.com>
12391
12392 * dwarf2read.h (die_info_ptr): Remove typedef.
12393
12394 2020-02-08 Tom Tromey <tom@tromey.com>
12395
12396 * dwarf2read.c (read_call_site_scope)
12397 (handle_data_member_location, dwarf2_add_member_fn)
12398 (mark_common_block_symbol_computed, read_common_block)
12399 (attr_to_dynamic_prop, partial_die_info::read)
12400 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
12401 (dwarf2_symbol_mark_computed, set_die_type): Update.
12402 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
12403 method.
12404 (attr_form_is_block): Don't declare.
12405 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
12406
12407 2020-02-08 Tom Tromey <tom@tromey.com>
12408
12409 * dwarf2read.c (dwarf2_find_base_address, )
12410 (read_call_site_scope, rust_containing_type)
12411 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
12412 (handle_data_member_location, dwarf2_add_member_fn)
12413 (get_alignment, read_structure_type, process_structure_scope)
12414 (mark_common_block_symbol_computed, read_common_block)
12415 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
12416 (partial_die_info::read, read_attribute_value, new_symbol)
12417 (lookup_die_type, dwarf2_get_ref_die_offset)
12418 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
12419 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
12420 (dwarf2_symbol_mark_computed): Update.
12421 * dwarf2/attribute.h (struct attribute) <value_as_address,
12422 form_is_section_offset, form_is_constant, form_is_ref>: Declare
12423 methods.
12424 (value_as_address, attr_form_is_section_offset)
12425 (attr_form_is_constant, attr_form_is_ref): Don't declare.
12426 * dwarf2/attribute.c (attribute::value_as_address)
12427 (attribute::form_is_section_offset, attribute::form_is_constant)
12428 (attribute::form_is_ref): Now methods.
12429
12430 2020-02-08 Tom Tromey <tom@tromey.com>
12431
12432 * dwarf2read.c (struct attribute, DW_STRING)
12433 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
12434 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
12435 (attr_form_is_block, attr_form_is_section_offset)
12436 (attr_form_is_constant, attr_form_is_ref): Move.
12437 * dwarf2/attribute.h: New file.
12438 * dwarf2/attribute.c: New file, from dwarf2read.c.
12439 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
12440
12441 2020-02-08 Tom Tromey <tom@tromey.com>
12442
12443 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
12444 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
12445 Move.
12446 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
12447 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
12448 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
12449 abbrev.c.
12450 * dwarf2/abbrev.h: New file.
12451 * dwarf2/abbrev.c: New file, from dwarf2read.c.
12452 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
12453
12454 2020-02-08 Tom Tromey <tom@tromey.com>
12455
12456 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
12457 (dwarf2_section_size, dwarf2_get_section_info)
12458 (create_signatured_type_table_from_debug_names)
12459 (create_addrmap_from_aranges, read_debug_names_from_section)
12460 (get_gdb_index_contents_from_section, read_comp_unit_head)
12461 (error_check_comp_unit_head, read_abbrev_offset)
12462 (create_debug_type_hash_table, init_cu_die_reader)
12463 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
12464 (read_comp_units_from_section, create_cus_hash_table)
12465 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
12466 (create_dwp_v2_section, dwarf2_rnglists_process)
12467 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
12468 (abbrev_table_read_table, read_indirect_string_at_offset_from)
12469 (read_indirect_string_from_dwz, read_addr_index_1)
12470 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
12471 (dwarf_decode_macro_bytes, dwarf_decode_macros)
12472 (fill_in_loclist_baton): Update.
12473 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
12474 get_containing_section, get_bfd_owner, get_bfd_section,
12475 get_file_name, get_id, get_flags, empty, read>: Declare methods.
12476 (dwarf2_read_section, get_section_name, get_section_file_name)
12477 (get_containing_section, get_section_bfd_owner)
12478 (get_section_bfd_section, get_section_name, get_section_file_name)
12479 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
12480 declare.
12481 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
12482 (dwarf2_section_info::get_bfd_owner)
12483 (dwarf2_section_info::get_bfd_section)
12484 (dwarf2_section_info::get_name)
12485 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
12486 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
12487 (dwarf2_section_info::read): Now methods.
12488 * dwarf-index-write.c (class debug_names): Update.
12489
12490 2020-02-08 Tom Tromey <tom@tromey.com>
12491
12492 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
12493 Move to dwarf2/section.h.
12494 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
12495 (get_section_bfd_section, get_section_name)
12496 (get_section_file_name, get_section_id, get_section_flags)
12497 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
12498 dwarf2/section.c.
12499 * dwarf2/section.h: New file.
12500 * dwarf2/section.c: New file, from dwarf2read.c.
12501 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
12502
12503 2020-02-08 Tom Tromey <tom@tromey.com>
12504
12505 * dwarf2read.h (read_unsigned_leb128): Don't declare.
12506 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
12507 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
12508 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
12509 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
12510 * dwarf2/leb.h: New file, from dwarf2read.c.
12511 * dwarf2/leb.c: New file, from dwarf2read.c.
12512 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
12513 Remove.
12514 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
12515 (COMMON_SFILES): Add dwarf2/leb.c.
12516
12517 2020-02-08 Joel Brobecker <brobecker@adacore.com>
12518
12519 GDB 9.1 released.
12520
12521 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
12522
12523 PR gdb/25190:
12524 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
12525 * gdb/remote.c (remote_console_output): Update.
12526 * gdb/ui-file.c (fputs_unfiltered): Rename to...
12527 (ui_file_puts): ...this.
12528 * gdb/ui-file.h (ui_file_puts): Add declaration.
12529 * gdb/utils.c (emit_style_escape): Update.
12530 (flush_wrap_buffer): Update.
12531 (fputs_maybe_filtered): Update.
12532 (fputs_unfiltered): Add function.
12533
12534 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
12535
12536 * gdb/event-loop.c (gdb_wait_for_event): Update.
12537 * gdb/printcmd.c (printf_command): Update.
12538 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
12539 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
12540 (gdb_os_flush_stderr): Update.
12541 * gdb/remote.c (remote_console_output): Update.
12542 * gdb/ui-file.c (gdb_flush): Rename to...
12543 (ui_file_flush): ...this.
12544 (stderr_file::write): Update.
12545 (stderr_file::puts): Update.
12546 * gdb/ui-file.h (gdb_flush): Rename to...
12547 (ui_file_flush): ...this.
12548 * gdb/utils.c (gdb_flush): Add function.
12549 * gdb/utils.h (gdb_flush): Add declaration.
12550
12551 2020-02-07 Tom Tromey <tromey@adacore.com>
12552
12553 PR breakpoints/24915:
12554 * source.c (find_and_open_source): Do not check basenames_may_differ.
12555
12556 2020-02-07 Tom Tromey <tom@tromey.com>
12557
12558 * README: Update gdbserver documentation.
12559 * gdbserver: Move to top level.
12560 * configure.tgt (build_gdbserver): Remove.
12561 * configure.ac: Remove --enable-gdbserver.
12562 * configure: Rebuild.
12563 * Makefile.in (distclean): Don't mention gdbserver.
12564
12565 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
12566
12567 * source-cache.c (source_cache::ensure): Surround
12568 get_plain_source_lines with a try/catch.
12569 (source_cache::get_line_charpos): Get rid of try/catch
12570 and only check for the return value of "ensure".
12571 * tui/tui-source.c (tui_source_window::set_contents):
12572 Simplify "nlines" calculation.
12573
12574 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
12575
12576 * MAINTAINERS (Write After Approval): Add myself.
12577
12578 2020-02-05 Christian Biesinger <cbiesinger@google.com>
12579
12580 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
12581 function call.
12582
12583 2020-02-05 Christian Biesinger <cbiesinger@google.com>
12584
12585 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
12586
12587 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
12588
12589 * nat/riscv-linux-tdesc.h: New file.
12590 * nat/riscv-linux-tdesc.c: New file, taking code from...
12591 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
12592 ... here.
12593 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
12594 NATDEPFILES.
12595
12596 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
12597
12598 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
12599 we don't set the fake simulator ptid to the null_ptid.
12600
12601 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
12602
12603 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
12604 * gdbthread.h (class thread_info) <resumed>: Likewise.
12605 * infrun.c (resume_1): Likewise.
12606 (proceed): Likewise.
12607 (infrun_thread_stop_requested): Likewise.
12608 (stop_all_threads): Likewise.
12609 (handle_inferior_event): Likewise.
12610 (restart_threads): Likewise.
12611 (finish_step_over): Likewise.
12612 (keep_going_stepped_thread): Likewise.
12613 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
12614 (linux_handle_extended_wait): Likewise.
12615 * record-btrace.c (get_thread_current_frame_id): Likewise.
12616 * record-full.c (record_full_wait_1): Likewise.
12617 * remote.c (remote_target::process_initial_stop_replies): Likewise.
12618 * target.c (target_resume): Likewise.
12619 * thread.c (set_running_thread): Likewise.
12620
12621 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
12622
12623 * f-valprint.c (f77_print_array_1): Changed datatype of index
12624 variable to LONGEST from int to enable it to contain bound
12625 values correctly.
12626
12627 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
12628
12629 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
12630 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
12631 offsets according to FLEN determined.
12632 (riscv_linux_nat_target::read_description): Determine FLEN
12633 dynamically.
12634 (riscv_linux_nat_target::fetch_registers): Size regset buffer
12635 according to FLEN determined.
12636 (riscv_linux_nat_target::store_registers): Likewise.
12637
12638 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
12639
12640 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
12641 when reg->group is empty and reggroup is not.
12642
12643 2020-01-31 Tom Tromey <tromey@adacore.com>
12644
12645 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
12646 Call beneath target's mourn_inferior after unpushing.
12647
12648 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
12649
12650 PR tui/9765
12651 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
12652 have enough lines to fill the screen, still return the lowest
12653 address we found.
12654
12655 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
12656
12657 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
12658 '-', '<', and '>' commands.
12659
12660 2020-01-29 Pedro Alves <palves@redhat.com>
12661 Sergio Durigan Junior <sergiodj@redhat.com>
12662
12663 * infcmd.c (construct_inferior_arguments): Assert that
12664 'argc' is greater than 0.
12665
12666 2020-01-29 Luis Machado <luis.machado@linaro.org>
12667
12668 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
12669 (BRK_INSN_MASK): Define to 0xd4200000.
12670 (aarch64_program_breakpoint_here_p): New function.
12671 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
12672 * arch-utils.c (default_program_breakpoint_here_p): Moved from
12673 breakpoint.c.
12674 * arch-utils.h (default_program_breakpoint_here_p): Moved from
12675 breakpoint.h
12676 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
12677 call gdbarch_program_breakpoint_here_p.
12678 (program_breakpoint_here): Moved to arch-utils.c, renamed to
12679 default_program_breakpoint_here_p, changed return type to bool and
12680 simplified.
12681 * breakpoint.h (program_breakpoint_here): Moved prototype to
12682 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
12683 return type to bool.
12684 * gdbarch.c: Regenerate.
12685 * gdbarch.h: Regenerate.
12686 * gdbarch.sh (program_breakpoint_here_p): New method.
12687 * infrun.c (handle_signal_stop): Call
12688 gdbarch_program_breakpoint_here_p.
12689
12690 2020-01-26 Tom Tromey <tom@tromey.com>
12691
12692 * ctfread.c (struct ctf_fp_info): Reindent.
12693 (_initialize_ctfread): Remove.
12694
12695 2020-01-26 Tom Tromey <tom@tromey.com>
12696
12697 * psymtab.c (partial_map_expand_apply)
12698 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
12699 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
12700 (psym_print_stats, psym_expand_symtabs_for_function)
12701 (psym_map_symbol_filenames, psym_map_matching_symbols)
12702 (psym_expand_symtabs_matching)
12703 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
12704 (maintenance_check_psymtabs): Use new methods.
12705 * psympriv.h (struct partial_symtab) <readin_p,
12706 get_compunit_symtab>: New methods.
12707 <readin, compunit_symtab>: Remove members.
12708 (struct standard_psymtab): New.
12709 (struct legacy_psymtab): Derive from standard_psymtab.
12710 * dwarf2read.h (struct dwarf2_psymtab): Derive from
12711 standard_psymtab.
12712 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
12713
12714 2020-01-26 Tom Tromey <tom@tromey.com>
12715
12716 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
12717 read_dependencies. Add assert.
12718 * psymtab.c (partial_symtab::read_dependencies): New method.
12719 * psympriv.h (struct partial_symtab) <read_dependencies>: New
12720 method.
12721 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
12722 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
12723 read_dependencies.
12724 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
12725 Add assert.
12726
12727 2020-01-26 Tom Tromey <tom@tromey.com>
12728
12729 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
12730 Call expand_psymtab.
12731 (xcoff_read_symtab): Call expand_psymtab.
12732 (xcoff_start_psymtab, xcoff_end_psymtab): Set
12733 legacy_expand_psymtab.
12734 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
12735 method.
12736 (struct legacy_psymtab) <expand_psymtab>: Implement.
12737 <legacy_expand_psymtab>: New member.
12738 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
12739 (parse_partial_symbols): Set legacy_expand_psymtab.
12740 (psymtab_to_symtab_1): Change argument order. Call
12741 expand_psymtab.
12742 (new_psymtab): Set legacy_expand_psymtab.
12743 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
12744 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
12745 expand_psymtab.
12746 (dwarf2_psymtab::expand_psymtab): Rename from
12747 psymtab_to_symtab_1. Call expand_psymtab.
12748 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
12749 (dbx_end_psymtab): Likewise.
12750 (dbx_psymtab_to_symtab_1): Change argument order. Call
12751 expand_psymtab.
12752 (dbx_read_symtab): Call expand_psymtab.
12753 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
12754 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
12755 (ctf_psymtab::read_symtab): Call expand_psymtab.
12756
12757 2020-01-26 Tom Tromey <tom@tromey.com>
12758
12759 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
12760 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
12761 messages.
12762 * mdebugread.c (mdebug_read_symtab): Remove prints.
12763 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
12764 assert.
12765 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
12766
12767 2020-01-26 Tom Tromey <tom@tromey.com>
12768
12769 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
12770 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
12771 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
12772 legacy_symtab.
12773 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
12774 * psymtab.c (psymtab_to_symtab): Call method.
12775 (dump_psymtab): Update.
12776 * psympriv.h (struct partial_symtab): Add virtual destructor.
12777 <read_symtab>: New method.
12778 (struct legacy_symtab): New.
12779 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
12780 (struct pst_map) <pst>: Now a legacy_psymtab.
12781 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
12782 (new_psymtab): Use legacy_psymtab.
12783 * dwarf2read.h (struct dwarf2_psymtab): New.
12784 (struct dwarf2_per_cu_data) <psymtab>: Use it.
12785 * dwarf2read.c (dwarf2_create_include_psymtab)
12786 (dwarf2_build_include_psymtabs, create_type_unit_group)
12787 (create_partial_symtab, process_psymtab_comp_unit_reader)
12788 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
12789 (set_partial_user): Use dwarf2_psymtab.
12790 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
12791 (psymtab_to_symtab_1, process_full_comp_unit)
12792 (process_full_type_unit, dwarf2_ranges_read)
12793 (dwarf2_get_pc_bounds, psymtab_include_file_name)
12794 (dwarf_decode_lines): Use dwarf2_psymtab.
12795 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
12796 (add_address_entry_worker, write_one_signatured_type)
12797 (recursively_count_psymbols, recursively_write_psymbols)
12798 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
12799 (write_debug_names): Likewise.
12800 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
12801 <pst>: Now a legacy_psymtab.
12802 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
12803 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
12804 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
12805 * ctfread.c (struct ctf_psymtab): New.
12806 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
12807 ctf_psymtab.
12808 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
12809 (create_partial_symtab): Return a ctf_psymtab.
12810 (scan_partial_symbols): Update.
12811
12812 2020-01-26 Tom Tromey <tom@tromey.com>
12813
12814 * xcoffread.c (xcoff_start_psymtab): Use new.
12815 * psymtab.c (partial_symtab::partial_symtab): New constructor,
12816 renamed from start_psymtab_common.
12817 * psympriv.h (struct partial_symtab): Add new constructor.
12818 (start_psymtab_common): Don't declare.
12819 * mdebugread.c (parse_partial_symbols): Use new.
12820 * dwarf2read.c (create_partial_symtab): Use new.
12821 * dbxread.c (start_psymtab): Use new.
12822 * ctfread.c (create_partial_symtab): Use new.
12823
12824 2020-01-26 Tom Tromey <tom@tromey.com>
12825
12826 * xcoffread.c (xcoff_end_psymtab): Use new.
12827 * psymtab.c (start_psymtab_common): Use new.
12828 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
12829 Update.
12830 * psympriv.h (struct partial_symtab): Add parameters to
12831 constructor. Don't inline.
12832 (allocate_psymtab): Don't declare.
12833 * mdebugread.c (new_psymtab): Use new.
12834 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
12835 * dbxread.c (dbx_end_psymtab): Use new.
12836
12837 2020-01-26 Tom Tromey <tom@tromey.com>
12838
12839 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
12840 allocate_psymtab. Update documentation.
12841 * psymtab.c (psymtab_storage::install_psymtab): Rename from
12842 allocate_psymtab. Do not use new.
12843 (allocate_psymtab): Use new. Update.
12844
12845 2020-01-26 Tom Tromey <tom@tromey.com>
12846
12847 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
12848 * psymtab.c (psym_print_stats): Update.
12849 * psympriv.h (struct partial_symtab) <readin,
12850 psymtabs_addrmap_supported, anonymous>: Now bool.
12851 * mdebugread.c (psymtab_to_symtab_1): Update.
12852 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
12853 (build_type_psymtabs_reader, psymtab_to_symtab_1)
12854 (process_full_comp_unit, process_full_type_unit): Update.
12855 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
12856 * ctfread.c (psymtab_to_symtab): Update.
12857
12858 2020-01-26 Tom Tromey <tom@tromey.com>
12859
12860 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
12861 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
12862 * psymtab.c (psymtab_storage): Delete psymtabs.
12863 (psymtab_storage::allocate_psymtab): Use new.
12864 (psymtab_storage::discard_psymtab): Use delete.
12865 * psympriv.h (struct partial_symtab): Add constructor and
12866 initializers.
12867
12868 2020-01-26 Tom Tromey <tom@tromey.com>
12869
12870 * machoread.c: Do not include psympriv.h.
12871
12872 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12873
12874 * NEWS: Mention the new option and the set/show commands.
12875
12876 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12877
12878 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
12879 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
12880 (validate_exec_file): New variables, enums, functions.
12881 (exec_file_locate_attach, print_section_info): Style the filenames.
12882 (_initialize_exec): Install show_exec_file_mismatch_command and
12883 set_exec_file_mismatch_command.
12884 * gdbcore.h (validate_exec_file): Declare.
12885 * infcmd.c (attach_command): Call validate_exec_file.
12886 * remote.c ( remote_target::remote_add_inferior): Likewise.
12887
12888 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12889
12890 * frame.c (find_frame_sal): Move call to get_next_frame into more
12891 inner scope.
12892 * inline-frame.c (inilne_state) <inline_state>: Update argument
12893 types.
12894 (inilne_state) <skipped_symbol>: Rename to...
12895 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
12896 (skip_inline_frames): Build vector of skipped symbols and use this
12897 to reate the inline_state.
12898 (inline_skipped_symbol): Add a comment and some assertions, fetch
12899 skipped symbol from the list.
12900
12901 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12902
12903 * buildsym.c (lte_is_less_than): Delete.
12904 (buildsym_compunit::end_symtab_with_blockvector): Create local
12905 lambda function to sort line table entries, and use
12906 std::stable_sort instead of std::sort.
12907 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
12908 markers when looking for a previous line.
12909
12910 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12911
12912 * dwarf2read.c (lnp_state_machine::record_line): Include
12913 end_sequence parameter in debug print out. Record the line if we
12914 are at an end_sequence marker even if it's not the start of a
12915 statement.
12916 * symmisc.c (maintenance_print_one_line_table): Print end of
12917 sequence markers with 'END' not '0'.
12918
12919 2020-01-24 Pedro Alves <palves@redhat.com>
12920
12921 PR gdb/25410
12922 * thread.c (scoped_restore_current_thread::restore): Use
12923 switch_to_inferior_no_thread.
12924 * exec.c: Include "progspace-and-thread.h".
12925 (add_target_sections, remove_target_sections):
12926 scoped_restore_current_pspace_and_thread instead of
12927 scoped_restore_current_thread.
12928 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
12929 and aspace to the inferior before calling clone_program_space.
12930 Remove stale comment.
12931
12932 2020-01-24 Christian Biesinger <cbiesinger@google.com>
12933
12934 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
12935 (arm_netbsd_nat_target::fetch_registers): ...this.
12936 (arm_nbsd_nat_target::store_registers): Rename to...
12937 (arm_netbsd_nat_target::store_registers): ...this.
12938
12939 2020-01-24 Christian Biesinger <cbiesinger@google.com>
12940
12941 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12942 register_t.
12943
12944 2020-01-24 Christian Biesinger <cbiesinger@google.com>
12945
12946 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
12947 Update comment.
12948 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
12949 Likewise.
12950 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
12951 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
12952 the correct replacement (iterate_over_regset_sections).
12953 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
12954 Update comment.
12955
12956 2020-01-24 Graham Markall <graham.markall@embecosm.com>
12957
12958 PR gdb/23718
12959 * gdb/python/python.c (execute_gdb_command): Call
12960 async_enable_stdin in catch block.
12961
12962 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12963
12964 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
12965 SWITCH_THRU_ALL_UIS.
12966
12967 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12968
12969 PR tui/9765
12970 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
12971 comment, add extra parameter, and update to store previous symbol
12972 when appropriate.
12973 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
12974 add extra parameter.
12975 * tui/tui-disasm.c (tui_disassemble): Update header comment,
12976 remove unneeded parameter, add try/catch around gdb_print_insn,
12977 rewrite to add items to asm_lines vector.
12978 (tui_find_backward_disassembly_start_address): New function.
12979 (tui_find_disassembly_address): Updated throughout.
12980 (tui_disasm_window::set_contents): Update for changes to
12981 tui_disassemble.
12982 (tui_disasm_window::do_scroll_vertical): No need to adjust the
12983 number of lines to scroll.
12984
12985 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
12986
12987 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
12988 (SECT_OFF_DATA): Likewise.
12989 (SECT_OFF_RODATA): Likewise.
12990 (SECT_OFF_TEXT): Likewise.
12991 (SECT_OFF_BSS): Likewise.
12992 (struct objfile) <text_section_offset, data_section_offset>: New
12993 methods.
12994 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
12995 objfile::text_section_offset.
12996 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
12997 * coffread.c (coff_symtab_read): Likewise.
12998 (enter_linenos): Likewise.
12999 (process_coff_symbol): Likewise.
13000 * ctfread.c (get_objfile_text_range): Likewise.
13001 * dtrace-probe.c (dtrace_probe::get_relocated_address):
13002 Use objfile::data_section_offset.
13003 * dwarf2-frame.c (execute_cfa_program): Use
13004 objfile::text_section_offset.
13005 (dwarf2_frame_find_fde): Likewise.
13006 * dwarf2read.c (create_addrmap_from_index): Likewise.
13007 (create_addrmap_from_aranges): Likewise.
13008 (dw2_find_pc_sect_compunit_symtab): Likewise.
13009 (process_psymtab_comp_unit_reader): Likewise.
13010 (add_partial_symbol): Likewise.
13011 (add_partial_subprogram): Likewise.
13012 (process_full_comp_unit): Likewise.
13013 (read_file_scope): Likewise.
13014 (read_func_scope): Likewise.
13015 (read_lexical_block_scope): Likewise.
13016 (read_call_site_scope): Likewise.
13017 (dwarf2_rnglists_process): Likewise.
13018 (dwarf2_ranges_process): Likewise.
13019 (dwarf2_ranges_read): Likewise.
13020 (dwarf_decode_lines_1): Likewise.
13021 (new_symbol): Likewise.
13022 (dwarf2_fetch_die_loc_sect_off): Likewise.
13023 (dwarf2_per_cu_text_offset): Likewise.
13024 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
13025 * hppa-tdep.c (read_unwind_info): Likewise.
13026 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
13027 * psympriv.h (struct partial_symtab): Likewise.
13028 * psymtab.c (find_pc_sect_psymtab): Likewise.
13029 * solib-svr4.c (enable_break): Likewise.
13030 * stap-probe.c (relocate_address): Use
13031 objfile::data_section_offset.
13032 * xcoffread.c (enter_line_range): Use
13033 objfile::text_section_offset.
13034 (read_xcoff_symtab): Likewise.
13035
13036 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
13037
13038 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
13039 declaration to narrower scopes.
13040
13041 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
13042
13043 * darwin-nat.h (struct darwin_exception_msg, enum
13044 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
13045 Move up.
13046 (class darwin_nat_target) <wait_1, check_new_threads,
13047 decode_exception_message, decode_message, stop_inferior,
13048 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
13049 * darwin-nat.c (darwin_check_new_threads): Rename to...
13050 (darwin_nat_target::check_new_threads): ... this.
13051 (darwin_suspend_inferior_it): Remove.
13052 (darwin_decode_exception_message): Rename to...
13053 (darwin_nat_target::decode_exception_message): ... this.
13054 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
13055 (darwin_decode_message): Rename to...
13056 (darwin_nat_target::decode_message): ... this.
13057 (cancel_breakpoint): Rename to...
13058 (darwin_nat_target::cancel_breakpoint): ... this.
13059 (darwin_wait): Rename to...
13060 (darwin_nat_target::wait_1): ... this. Use range-based for loop
13061 instead of iterate_over_inferiors.
13062 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
13063 (darwin_stop_inferior): Rename to...
13064 (darwin_nat_target::stop_inferior): ... this.
13065 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
13066 (darwin_init_thread_list): Rename to...
13067 (darwin_nat_target::init_thread_list): ... this.
13068 (darwin_ptrace_him): Rename to...
13069 (darwin_nat_target::ptrace_him): ... this.
13070 (darwin_nat_target::create_inferior): Pass lambda function to
13071 fork_inferior.
13072 (darwin_nat_target::detach): Call stop_inferior instead of
13073 darwin_stop_inferior.
13074 * fork-inferior.h (fork_inferior): Change init_trace_fun
13075 parameter to gdb::function_view.
13076 * fork-inferior.c (fork_inferior): Likewise.
13077
13078 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
13079
13080 * i386-cygwin-tdep.c (core_process_module_section): Update.
13081 * windows-nat.c (struct lm_info_windows): Add text_offset.
13082 (windows_xfer_shared_libraries): Update.
13083 * windows-tdep.c (windows_xfer_shared_library):
13084 Add text_offset_cached argument.
13085 * windows-tdep.h (windows_xfer_shared_library): Update.
13086
13087 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
13088
13089 * gdbarch.sh: Add declaration for _initialize_gdbarch.
13090
13091 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
13092
13093 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
13094 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
13095 replace with range-based for.
13096 (gdbsim_interrupt_inferior): Remove.
13097 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
13098 with a range-based for. Inline code from
13099 gdbsim_interrupt_inferior.
13100
13101 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
13102
13103 * infrun.c (proceed): Fix indentation.
13104
13105 2020-01-21 Tom Tromey <tromey@adacore.com>
13106
13107 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
13108 * python/python.c (python_extension_ops): Update.
13109 (gdbpy_colorize): New function.
13110 * python/lib/gdb/__init__.py (colorize): New function.
13111 * extension.h (ext_lang_colorize): Declare.
13112 * extension.c (ext_lang_colorize): New function.
13113 * extension-priv.h (struct extension_language_ops) <colorize>: New
13114 member.
13115 * cli/cli-style.c (_initialize_cli_style): Update help text.
13116
13117 2020-01-21 Luis Machado <luis.machado@linaro.org>
13118
13119 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
13120 <cond>: Change type to bool.
13121 (aarch64_displaced_step_b_cond): Update cond to use bool type.
13122 (aarch64_displaced_step_cb): Likewise.
13123 (aarch64_displaced_step_tb): Likewise.
13124
13125 2020-01-21 Luis Machado <luis.machado@linaro.org>
13126
13127 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
13128 output.
13129
13130 2020-01-21 Luis Machado <luis.machado@linaro.org>
13131
13132 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
13133 <pc_adjust>: Adjust the documentation.
13134 (aarch64_displaced_step_fixup): Check if PC really moved before
13135 adjusting it.
13136
13137 2020-01-19 Tom Tromey <tom@tromey.com>
13138
13139 * disasm.c (~gdb_disassembler): New destructor.
13140 (gdb_buffered_insn_length): Call disassemble_free_target.
13141 * disasm.h (class gdb_disassembler): Declare destructor. Use
13142 DISABLE_COPY_AND_ASSIGN.
13143
13144 2020-01-19 Tom Tromey <tom@tromey.com>
13145
13146 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
13147 (die_reader_func_ftype): Remove.
13148 (cutu_reader): New class.
13149 (dw2_get_file_names_reader): Remove "data" parameter.
13150 (dw2_get_file_names): Use cutu_reader.
13151 (create_debug_type_hash_table): Update.
13152 (read_cutu_die_from_dwo): Update comment.
13153 (lookup_dwo_unit): Add dwo_name parameter.
13154 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
13155 die_reader_func_ftype and data parameters.
13156 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
13157 Remove die_reader_func_ftype and data parameters.
13158 (~cutu_reader): New; from init_cutu_and_read_dies.
13159 (cutu_reader::cutu_reader): Rename from
13160 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
13161 and data parameters.
13162 (init_cutu_and_read_dies_simple): Remove.
13163 (struct process_psymtab_comp_unit_data): Remove.
13164 (process_psymtab_comp_unit_reader): Remove data parameter; add
13165 want_partial_unit and pretend_language parameters.
13166 (process_psymtab_comp_unit): Use cutu_reader.
13167 (build_type_psymtabs_reader): Remove data parameter.
13168 (build_type_psymtabs_1): Use cutu_reader.
13169 (process_skeletonless_type_unit): Likewise.
13170 (load_partial_comp_unit_reader): Remove.
13171 (load_partial_comp_unit): Use cutu_reader.
13172 (load_full_comp_unit_reader): Remove.
13173 (load_full_comp_unit): Use cutu_reader.
13174 (struct create_dwo_cu_data): Remove.
13175 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
13176 dwo_unit parameters.
13177 (create_cus_hash_table): Use cutu_reader.
13178 (struct dwarf2_read_addr_index_data): Remove.
13179 (dwarf2_read_addr_index_reader): Remove.
13180 (dwarf2_read_addr_index): Use cutu_reader.
13181 (read_signatured_type_reader): Remove.
13182 (read_signatured_type): Use cutu_reader.
13183
13184 2020-01-19 Tom Tromey <tom@tromey.com>
13185
13186 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
13187 * tui/tui-wingeneral.h (class tui_suppress_output): New.
13188 (tui_wrefresh): Declare.
13189 * tui/tui-wingeneral.c (suppress_output): New global.
13190 (tui_suppress_output, ~tui_suppress_output): New constructor and
13191 destructor.
13192 (tui_wrefresh): New function.
13193 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
13194 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
13195 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
13196 method.
13197 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
13198 tui_wrefresh.
13199 (tui_data_window::no_refresh): New method.
13200 (tui_data_item_window::refresh_window): Call tui_wrefresh.
13201 (tui_reg_command): Use tui_suppress_output
13202 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
13203 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
13204 method.
13205 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
13206
13207 2020-01-19 Tom Tromey <tom@tromey.com>
13208
13209 * tui/tui-winsource.c (tui_update_source_windows_with_line):
13210 Handle case where symtab is null.
13211
13212 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
13213
13214 * linux-fork.c (one_fork_p): Simplify.
13215
13216 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
13217
13218 * top.c (struct qt_args): Remove.
13219 (kill_or_detach): Change return type to void, replace `void *`
13220 parameter with a proper one.
13221 (print_inferior_quit_action): Likewise.
13222 (quit_confirm): Use range-based for loop to iterate over inferiors.
13223 (quit_force): Likewise.
13224
13225 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
13226
13227 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
13228 `void *` parameter with proper parameters.
13229 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
13230 (print_one_inferior): Change return type to void, replace `void *`
13231 parameter with proper parameters.
13232 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
13233 inferiors.
13234 (get_other_inferior): Remove.
13235 (mi_cmd_remove_inferior): Use range-based loop to iterate over
13236 inferiors.
13237
13238 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
13239
13240 * mi/mi-interp.c (report_initial_inferior): Remove.
13241 (mi_interp::init): Use range-based for to iterate over inferiors.
13242
13243 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
13244
13245 * python/py-inferior.c (build_inferior_list): Remove.
13246 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
13247
13248 2020-01-16 Christian Biesinger <cbiesinger@google.com>
13249
13250 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
13251 (btrace_stitch_trace): Likewise.
13252 * charset.c (intermediate_encoding): Likewise (vaild).
13253 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
13254 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
13255 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
13256
13257 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
13258
13259 * windows-tdep.c (windows_get_tlb_type):
13260 Add rtl_user_process_parameters type.
13261
13262 2020-01-16 Pedro Alves <palves@redhat.com>
13263 Norbert Lange <nolange79@gmail.com>
13264
13265 PR build/24805
13266 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
13267 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
13268 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
13269 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
13270 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
13271 (ps_plog): Redeclare exported functions with default visibility.
13272
13273 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
13274
13275 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
13276 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
13277
13278 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
13279
13280 * infcmd.c (post_create_inferior): Use get_thread_regcache
13281 instead of get_current_regcache.
13282
13283 2020-01-14 Tom Tromey <tom@tromey.com>
13284
13285 PR symtab/12535:
13286 * python/python.c (gdbpy_decode_line): Treat empty string the same
13287 as no argument.
13288
13289 2020-01-14 Tom Tromey <tom@tromey.com>
13290
13291 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
13292
13293 2020-01-14 Tom Tromey <tom@tromey.com>
13294
13295 * nat/linux-btrace.c: Don't include <config.h>.
13296 * nat/linux-ptrace.c: Don't include <config.h>.
13297 * nat/x86-linux-dregs.c: Don't include <config.h>.
13298
13299 2020-01-14 Tom Tromey <tom@tromey.com>
13300
13301 * configure: Rebuild.
13302 * configure.ac: Move many checks to ../gdbsupport/common.m4.
13303
13304 2020-01-14 Tom Tromey <tom@tromey.com>
13305
13306 * nat/x86-linux-dregs.c: Include configh.h.
13307 * nat/linux-ptrace.c: Include configh.h.
13308 * nat/linux-btrace.c: Include configh.h.
13309 * defs.h: Include config.h, bfd.h.
13310 * configure.ac: Don't source common.host.
13311 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
13312 * configure: Rebuild.
13313 * acinclude.m4: Update path.
13314 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
13315 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
13316 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
13317 (CLIBS): Add LIBSUPPORT.
13318 (CDEPS): Likewise.
13319 (COMMON_SFILES): Remove gdbsupport files.
13320 (HFILES_NO_SRCDIR): Likewise.
13321 (stamp-version): Update path to create-version.sh.
13322 (ALLDEPFILES): Remove gdbsupport files.
13323
13324 2020-01-14 Tom Tromey <tom@tromey.com>
13325
13326 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
13327 USE_WIN32API when needed.
13328 * configure.ac (USE_WIN32API): Don't define.
13329 (WIN32LIBS): Use WIN32APILIBS.
13330 * configure: Rebuild.
13331
13332 2020-01-14 Tom Tromey <tom@tromey.com>
13333
13334 * configure: Rebuild.
13335 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
13336
13337 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
13338
13339 * skip.c (skip_function_command): Make skip w/o arguments use the
13340 name of the inlined function if pc is inside any inlined function.
13341
13342 2020-01-14 Luis Machado <luis.machado@linaro.org>
13343
13344 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
13345 * infrun.c (resume_1): Likewise.
13346 (handle_inferior_event): Remove stale comment.
13347 * linux-nat.c (linux_nat_target::resume): Update comments.
13348 (save_stop_reason): Likewise.
13349 (linux_nat_filter_event): Likewise.
13350 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
13351
13352 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
13353
13354 * elfread.c (record_minimal_symbol): Set section index to 0 for
13355 non-allocatable sections.
13356
13357
13358 2020-01-13 Ali Tamur <tamur@google.com>
13359
13360 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
13361 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
13362 to gdb::optional. Update comments.
13363 (dwo_file): Update comments.
13364 (read_attribute): Update API to take an additional out parameter,
13365 need_reprocess. This is used to mark attributes that need other
13366 attributes (e.g. str_offsets_base) for correct computation which may not
13367 have been read yet.
13368 (read_attribute_reprocess): New function declaration.
13369 (read_addr_index): Likewise.
13370 (read_dwo_str_index): Likewise.
13371 (read_stub_str_index): Likewise.
13372 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
13373 (lookup_addr_base): New function definition.
13374 (lookup_ranges_base): Likewise.
13375 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
13376 lookup_ranges_base.
13377 (init_cutu_and_read_dies): Update comments.
13378 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
13379 unit. This is used to inherit parent's str_offsets_base and addr_base.
13380 Update comments.
13381 (init_cutu_and_read_dies_simple): Reflect API changes.
13382 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
13383 (create_cus_hash_table): Change API to take parent compile unit.
13384 Reflect API changes.
13385 (open_and_init_dwo_file): Reflect API changes.
13386 (dwarf2_get_pc_bounds): Update comments.
13387 (dwarf2_record_block_ranges): Likewise.
13388 (read_full_die_1): Change implementation to reprocess attributes that
13389 need str_offsets_base and addr_base.
13390 (partial_die_info::read): Likewise.
13391 (read_attribute_reprocess): New function definition.
13392 (read_attribute_value): Change API to take an additional out parameter,
13393 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
13394 when a non-dwo compile unit has index based attributes.
13395 (read_attribute): Reflect API changes.
13396 (read_addr_index_1): Reflect API changes. Update comments.
13397 (dwarf2_read_addr_index_data): Reflect API changes.
13398 (dwarf2_read_addr_index): Likewise.
13399 (read_str_index): Change API and implementation. This becomes a helper
13400 to be used by the new string index related methods. Update error
13401 message and comments.
13402 (read_dwo_str_index): New function definition.
13403 (read_stub_str_index): Likewise.
13404 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
13405 * symfile.h (dwarf2_debug_sections): Likewise.
13406 * xcoffread.c (dwarf2_debug_sections): Likewise.
13407
13408 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
13409
13410 * gdbcore.h (struct core_fns) <core_read_registers>: Change
13411 core_reg_sect type to gdb_byte *.
13412 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
13413 * cris-tdep.c (fetch_core_registers): Likewise.
13414 * corelow.c (core_target::get_core_register_section): Change
13415 type of `contents` to gdb::byte_vector.
13416
13417 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
13418
13419 * tui/tui-wingeneral.c (box_win): Position the title in the center
13420 of the border.
13421
13422 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13423
13424 * corelow.c (core_target::get_core_register_section): Use
13425 std::vector instead of alloca.
13426
13427 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
13428
13429 * warning.m4: Add -Wmissing-declarations to build_warnings.
13430 * configure: Re-generate.
13431
13432 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
13433
13434 * python/python.c (init__gdb_module): Add declaration.
13435
13436 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
13437
13438 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
13439 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
13440 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
13441 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
13442 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
13443 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
13444 * ada-exp.y (_initialize_ada_exp): Add declaration.
13445 * ada-lang.c (_initialize_ada_language): Add declaration.
13446 * ada-tasks.c (_initialize_tasks): Add declaration.
13447 * agent.c (_initialize_agent): Add declaration.
13448 * aix-thread.c (_initialize_aix_thread): Add declaration.
13449 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
13450 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
13451 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
13452 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
13453 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
13454 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
13455 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
13456 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
13457 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
13458 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
13459 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
13460 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
13461 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
13462 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
13463 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
13464 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
13465 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
13466 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
13467 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
13468 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
13469 * annotate.c (_initialize_annotate): Add declaration.
13470 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
13471 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
13472 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
13473 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
13474 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
13475 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
13476 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
13477 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
13478 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
13479 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
13480 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
13481 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
13482 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
13483 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
13484 * auto-load.c (_initialize_auto_load): Add declaration.
13485 * auxv.c (_initialize_auxv): Add declaration.
13486 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
13487 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
13488 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
13489 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
13490 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
13491 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
13492 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
13493 * breakpoint.c (_initialize_breakpoint): Add declaration.
13494 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
13495 * btrace.c (_initialize_btrace): Add declaration.
13496 * charset.c (_initialize_charset): Add declaration.
13497 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
13498 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
13499 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
13500 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
13501 * cli/cli-script.c (_initialize_cli_script): Add declaration.
13502 * cli/cli-style.c (_initialize_cli_style): Add declaration.
13503 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
13504 * coffread.c (_initialize_coffread): Add declaration.
13505 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
13506 * compile/compile.c (_initialize_compile): Add declaration.
13507 * complaints.c (_initialize_complaints): Add declaration.
13508 * completer.c (_initialize_completer): Add declaration.
13509 * copying.c (_initialize_copying): Add declaration.
13510 * corefile.c (_initialize_core): Add declaration.
13511 * corelow.c (_initialize_corelow): Add declaration.
13512 * cp-abi.c (_initialize_cp_abi): Add declaration.
13513 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
13514 * cp-support.c (_initialize_cp_support): Add declaration.
13515 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
13516 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
13517 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
13518 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
13519 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
13520 * ctfread.c (_initialize_ctfread): Add declaration.
13521 * d-lang.c (_initialize_d_language): Add declaration.
13522 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
13523 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
13524 * dbxread.c (_initialize_dbxread): Add declaration.
13525 * dcache.c (_initialize_dcache): Add declaration.
13526 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
13527 * disasm.c (_initialize_disasm): Add declaration.
13528 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
13529 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
13530 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
13531 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
13532 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
13533 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
13534 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
13535 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
13536 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
13537 * elfread.c (_initialize_elfread): Add declaration.
13538 * exec.c (_initialize_exec): Add declaration.
13539 * extension.c (_initialize_extension): Add declaration.
13540 * f-lang.c (_initialize_f_language): Add declaration.
13541 * f-valprint.c (_initialize_f_valprint): Add declaration.
13542 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
13543 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
13544 * filesystem.c (_initialize_filesystem): Add declaration.
13545 * findcmd.c (_initialize_mem_search): Add declaration.
13546 * findvar.c (_initialize_findvar): Add declaration.
13547 * fork-child.c (_initialize_fork_child): Add declaration.
13548 * frame-base.c (_initialize_frame_base): Add declaration.
13549 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
13550 * frame.c (_initialize_frame): Add declaration.
13551 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
13552 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
13553 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
13554 * gcore.c (_initialize_gcore): Add declaration.
13555 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
13556 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
13557 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
13558 * gdbarch.c (_initialize_gdbarch): Add declaration.
13559 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
13560 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
13561 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
13562 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
13563 * go-lang.c (_initialize_go_language): Add declaration.
13564 * go32-nat.c (_initialize_go32_nat): Add declaration.
13565 * guile/guile.c (_initialize_guile): Add declaration.
13566 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
13567 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
13568 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
13569 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
13570 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
13571 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
13572 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
13573 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
13574 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
13575 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
13576 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
13577 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
13578 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
13579 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
13580 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
13581 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
13582 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
13583 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
13584 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
13585 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
13586 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
13587 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
13588 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
13589 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
13590 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
13591 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
13592 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
13593 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
13594 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
13595 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
13596 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
13597 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
13598 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
13599 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
13600 * infcall.c (_initialize_infcall): Add declaration.
13601 * infcmd.c (_initialize_infcmd): Add declaration.
13602 * inflow.c (_initialize_inflow): Add declaration.
13603 * infrun.c (_initialize_infrun): Add declaration.
13604 * interps.c (_initialize_interpreter): Add declaration.
13605 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
13606 * jit.c (_initialize_jit): Add declaration.
13607 * language.c (_initialize_language): Add declaration.
13608 * linux-fork.c (_initialize_linux_fork): Add declaration.
13609 * linux-nat.c (_initialize_linux_nat): Add declaration.
13610 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
13611 * linux-thread-db.c (_initialize_thread_db): Add declaration.
13612 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
13613 * m2-lang.c (_initialize_m2_language): Add declaration.
13614 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
13615 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
13616 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
13617 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
13618 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
13619 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
13620 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
13621 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
13622 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
13623 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
13624 * machoread.c (_initialize_machoread): Add declaration.
13625 * macrocmd.c (_initialize_macrocmd): Add declaration.
13626 * macroscope.c (_initialize_macroscope): Add declaration.
13627 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
13628 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
13629 * maint.c (_initialize_maint_cmds): Add declaration.
13630 * mdebugread.c (_initialize_mdebugread): Add declaration.
13631 * memattr.c (_initialize_mem): Add declaration.
13632 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
13633 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
13634 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
13635 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
13636 * mi/mi-main.c (_initialize_mi_main): Add declaration.
13637 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
13638 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
13639 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
13640 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
13641 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
13642 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
13643 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
13644 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
13645 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
13646 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
13647 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
13648 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
13649 * mipsread.c (_initialize_mipsread): Add declaration.
13650 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
13651 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
13652 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
13653 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
13654 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
13655 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
13656 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
13657 * nto-procfs.c (_initialize_procfs): Add declaration.
13658 * objc-lang.c (_initialize_objc_language): Add declaration.
13659 * observable.c (_initialize_observer): Add declaration.
13660 * opencl-lang.c (_initialize_opencl_language): Add declaration.
13661 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
13662 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
13663 * osabi.c (_initialize_gdb_osabi): Add declaration.
13664 * osdata.c (_initialize_osdata): Add declaration.
13665 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
13666 * parse.c (_initialize_parse): Add declaration.
13667 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
13668 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
13669 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
13670 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
13671 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
13672 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
13673 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
13674 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
13675 * printcmd.c (_initialize_printcmd): Add declaration.
13676 * probe.c (_initialize_probe): Add declaration.
13677 * proc-api.c (_initialize_proc_api): Add declaration.
13678 * proc-events.c (_initialize_proc_events): Add declaration.
13679 * proc-service.c (_initialize_proc_service): Add declaration.
13680 * procfs.c (_initialize_procfs): Add declaration.
13681 * producer.c (_initialize_producer): Add declaration.
13682 * psymtab.c (_initialize_psymtab): Add declaration.
13683 * python/python.c (_initialize_python): Add declaration.
13684 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
13685 * record-btrace.c (_initialize_record_btrace): Add declaration.
13686 * record-full.c (_initialize_record_full): Add declaration.
13687 * record.c (_initialize_record): Add declaration.
13688 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
13689 * regcache.c (_initialize_regcache): Add declaration.
13690 * reggroups.c (_initialize_reggroup): Add declaration.
13691 * remote-notif.c (_initialize_notif): Add declaration.
13692 * remote-sim.c (_initialize_remote_sim): Add declaration.
13693 * remote.c (_initialize_remote): Add declaration.
13694 * reverse.c (_initialize_reverse): Add declaration.
13695 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
13696 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
13697 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
13698 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
13699 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
13700 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
13701 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
13702 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
13703 Add declaration.
13704 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
13705 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
13706 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
13707 * rust-exp.y (_initialize_rust_exp): Add declaration.
13708 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
13709 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
13710 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
13711 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
13712 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
13713 * score-tdep.c (_initialize_score_tdep): Add declaration.
13714 * ser-go32.c (_initialize_ser_dos): Add declaration.
13715 * ser-mingw.c (_initialize_ser_windows): Add declaration.
13716 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
13717 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
13718 * ser-uds.c (_initialize_ser_socket): Add declaration.
13719 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
13720 * serial.c (_initialize_serial): Add declaration.
13721 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
13722 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
13723 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
13724 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
13725 * skip.c (_initialize_step_skip): Add declaration.
13726 * sol-thread.c (_initialize_sol_thread): Add declaration.
13727 * solib-aix.c (_initialize_solib_aix): Add declaration.
13728 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
13729 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
13730 * solib-frv.c (_initialize_frv_solib): Add declaration.
13731 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
13732 * solib-target.c (_initialize_solib_target): Add declaration.
13733 * solib.c (_initialize_solib): Add declaration.
13734 * source-cache.c (_initialize_source_cache): Add declaration.
13735 * source.c (_initialize_source): Add declaration.
13736 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
13737 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
13738 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
13739 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
13740 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
13741 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
13742 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
13743 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
13744 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
13745 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
13746 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
13747 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
13748 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
13749 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
13750 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
13751 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
13752 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
13753 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
13754 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
13755 * stabsread.c (_initialize_stabsread): Add declaration.
13756 * stack.c (_initialize_stack): Add declaration.
13757 * stap-probe.c (_initialize_stap_probe): Add declaration.
13758 * std-regs.c (_initialize_frame_reg): Add declaration.
13759 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
13760 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
13761 * symfile.c (_initialize_symfile): Add declaration.
13762 * symmisc.c (_initialize_symmisc): Add declaration.
13763 * symtab.c (_initialize_symtab): Add declaration.
13764 * target.c (_initialize_target): Add declaration.
13765 * target-connection.c (_initialize_target_connection): Add
13766 declaration.
13767 * target-dcache.c (_initialize_target_dcache): Add declaration.
13768 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
13769 * thread.c (_initialize_thread): Add declaration.
13770 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
13771 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
13772 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
13773 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
13774 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
13775 * tracectf.c (_initialize_ctf): Add declaration.
13776 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
13777 * tracefile.c (_initialize_tracefile): Add declaration.
13778 * tracepoint.c (_initialize_tracepoint): Add declaration.
13779 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
13780 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
13781 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
13782 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
13783 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
13784 * tui/tui-win.c (_initialize_tui_win): Add declaration.
13785 * tui/tui.c (_initialize_tui): Add declaration.
13786 * typeprint.c (_initialize_typeprint): Add declaration.
13787 * ui-style.c (_initialize_ui_style): Add declaration.
13788 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
13789 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
13790 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
13791 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
13792 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
13793 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
13794 * unittests/filtered_iterator-selftests.c
13795 (_initialize_filtered_iterator_selftests): Add declaration.
13796 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
13797 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
13798 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
13799 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
13800 * unittests/main-thread-selftests.c
13801 (_initialize_main_thread_selftests): Add declaration.
13802 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
13803 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
13804 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
13805 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
13806 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
13807 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
13808 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
13809 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
13810 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
13811 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
13812 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
13813 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
13814 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
13815 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
13816 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
13817 declaration.
13818 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
13819 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
13820 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
13821 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
13822 * user-regs.c (_initialize_user_regs): Add declaration.
13823 * utils.c (_initialize_utils): Add declaration.
13824 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
13825 * valops.c (_initialize_valops): Add declaration.
13826 * valprint.c (_initialize_valprint): Add declaration.
13827 * value.c (_initialize_values): Add declaration.
13828 * varobj.c (_initialize_varobj): Add declaration.
13829 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
13830 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
13831 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
13832 * windows-nat.c (_initialize_windows_nat): Add declaration.
13833 (_initialize_check_for_gdb_ini): Add declaration.
13834 (_initialize_loadable): Add declaration.
13835 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
13836 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
13837 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
13838 * xcoffread.c (_initialize_xcoffread): Add declaration.
13839 * xml-support.c (_initialize_xml_support): Add declaration.
13840 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
13841 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
13842 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
13843 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
13844
13845 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13846
13847 * regformats/regdat.sh: Generate declaration for init function.
13848
13849 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13850
13851 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
13852 up.
13853 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
13854 close_one_inferior>: New methods.
13855 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
13856 pass down target to find_inferior_pid.
13857 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
13858 Pass down target to find_inferior_ptid.
13859 (gdbsim_target::create_inferior): Pass down target to
13860 add_thread_silent.
13861 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
13862 target down to find_inferior_ptid and switch_to_thread.
13863 (gdbsim_target::close): Update to call close_one_inferior.
13864 (struct resume_data): Remove.
13865 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
13866 directly, rather than through a void pointer.
13867 (gdbsim_target::resume): Update to call resume_one_inferior.
13868
13869 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
13870
13871 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
13872
13873 2020-01-12 Pedro Alves <palves@redhat.com>
13874
13875 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
13876 directly for the current inferior instead of
13877 discard_all_inferiors.
13878 (discard_all_inferiors): Delete.
13879
13880 2020-01-11 Tom Tromey <tom@tromey.com>
13881
13882 * tui/tui-wingeneral.c (box_win): Check cli_styling.
13883 * tui/tui-winsource.c (tui_source_window_base::refill): Use
13884 deprecated_safe_get_selected_frame.
13885
13886 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13887
13888 * inferior.c (print_inferior): Switch inferior before printing it.
13889
13890 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
13891 Pedro Alves <palves@redhat.com>
13892
13893 * progspace-and-thread.c (switch_to_program_space_and_thread):
13894 Assert there's an inferior for PSPACE. Use
13895 switch_to_inferior_no_thread to switch the inferior too.
13896 * progspace.c (program_space::~program_space): Call
13897 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
13898 (program_space::free_all_objfiles): Don't call clear_symtab_users
13899 here.
13900 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
13901
13902 2020-01-10 Pedro Alves <palves@redhat.com>
13903
13904 * NEWS: Mention multi-target debugging, "info connections", and
13905 "add-inferior -no-connection".
13906
13907 2020-01-10 Pedro Alves <palves@redhat.com>
13908
13909 * infrun.c: Include "target-connection.h".
13910 (check_multi_target_resumption): New.
13911 (proceed): Call it.
13912 * target-connection.c (make_target_connection_string): Make
13913 extern.
13914 * target-connection.h (make_target_connection_string): Declare.
13915
13916 2020-01-10 Pedro Alves <palves@redhat.com>
13917
13918 * Makefile.in (COMMON_SFILES): Add target-connection.c.
13919 * inferior.c (uiout_field_connection): New function.
13920 (print_inferior): Add new "connection-id" column.
13921 (add_inferior_command): Show connection number/string of added
13922 inferior.
13923 * process-stratum-target.h
13924 (process_stratum_target::connection_string): New virtual method.
13925 (process_stratum_target::connection_number): New field.
13926 * remote.c (remote_target::connection_string): New override.
13927 * target-connection.c: New file.
13928 * target-connection.h: New file.
13929 * target.c (decref_target): Remove process_stratum targets from
13930 the connection list.
13931 (target_stack::push): Add process_stratum targets to the
13932 connection list.
13933
13934 2020-01-10 Pedro Alves <palves@redhat.com>
13935
13936 Revert:
13937 2016-04-12 Pedro Alves <palves@redhat.com>
13938 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
13939 Remove references to name.
13940 * serial.h (struct serial) <name>: Delete.
13941
13942 2020-01-10 Pedro Alves <palves@redhat.com>
13943
13944 * gdbarch-selftests.c (register_to_value_test): Remove "target
13945 already pushed" check.
13946
13947 2020-01-10 Pedro Alves <palves@redhat.com>
13948 John Baldwin <jhb@FreeBSD.org>
13949
13950 * aarch64-linux-nat.c
13951 (aarch64_linux_nat_target::thread_architecture): Adjust.
13952 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
13953 (task_command_1): Likewise.
13954 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
13955 (aix_thread_target::wait, aix_thread_target::fetch_registers)
13956 (aix_thread_target::store_registers)
13957 (aix_thread_target::thread_alive): Adjust.
13958 * amd64-fbsd-tdep.c: Include "inferior.h".
13959 (amd64fbsd_get_thread_local_address): Pass down target.
13960 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
13961 thread's gdbarch instead of target_gdbarch.
13962 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
13963 get_last_target_status.
13964 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
13965 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
13966 inferiors.
13967 (update_inserted_breakpoint_locations): Skip if inferiors with no
13968 execution.
13969 (update_global_location_list): When handling moribund locations,
13970 find representative inferior for location's pspace, and use thread
13971 count of its process_stratum target.
13972 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
13973 * bsd-uthread.c (bsd_uthread_target::wait): Use
13974 as_process_stratum_target and adjust thread_change_ptid and
13975 add_thread calls.
13976 (bsd_uthread_target::update_thread_list): Use
13977 as_process_stratum_target and adjust find_thread_ptid,
13978 thread_change_ptid and add_thread calls.
13979 * btrace.c (maint_btrace_packet_history_cmd): Adjust
13980 find_thread_ptid call.
13981 * corelow.c (add_to_thread_list): Adjust add_thread call.
13982 (core_target_open): Adjust add_thread_silent and thread_count
13983 calls.
13984 (core_target::pid_to_str): Adjust find_inferior_ptid call.
13985 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
13986 * event-top.c (async_disconnect): Pop targets from all inferiors.
13987 * exec.c (add_target_sections): Push exec target on all inferiors
13988 sharing the program space.
13989 (remove_target_sections): Remove the exec target from all
13990 inferiors sharing the program space.
13991 (exec_on_vfork): New.
13992 * exec.h (exec_on_vfork): Declare.
13993 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
13994 Pass it down.
13995 (fbsd_nat_target::update_thread_list): Adjust.
13996 (fbsd_nat_target::resume): Adjust.
13997 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
13998 down.
13999 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
14000 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
14001 get_thread_arch_regcache call.
14002 * fork-child.c (gdb_startup_inferior): Pass target down to
14003 startup_inferior and set_executing.
14004 * gdbthread.h (struct process_stratum_target): Forward declare.
14005 (add_thread, add_thread_silent, add_thread_with_info)
14006 (in_thread_list): Add process_stratum_target parameter.
14007 (find_thread_ptid(inferior*, ptid_t)): New overload.
14008 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
14009 parameter.
14010 (all_threads()): Delete overload.
14011 (all_threads, all_non_exited_threads): Add process_stratum_target
14012 parameter.
14013 (all_threads_safe): Use brace initialization.
14014 (thread_count): Add process_stratum_target parameter.
14015 (set_resumed, set_running, set_stop_requested, set_executing)
14016 (threads_are_executing, finish_thread_state): Add
14017 process_stratum_target parameter.
14018 (switch_to_thread): Use is_current_thread.
14019 * i386-fbsd-tdep.c: Include "inferior.h".
14020 (i386fbsd_get_thread_local_address): Pass down target.
14021 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
14022 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
14023 have_inferiors check.
14024 * inf-ptrace.c (inf_ptrace_target::create_inferior)
14025 (inf_ptrace_target::attach): Adjust.
14026 * infcall.c (run_inferior_call): Adjust.
14027 * infcmd.c (run_command_1): Pass target to
14028 scoped_finish_thread_state.
14029 (proceed_thread_callback): Skip inferiors with no execution.
14030 (continue_command): Rename 'all_threads' local to avoid hiding
14031 'all_threads' function. Adjust get_last_target_status call.
14032 (prepare_one_step): Adjust set_running call.
14033 (signal_command): Use user_visible_resume_target. Compare thread
14034 pointers instead of inferior_ptid.
14035 (info_program_command): Adjust to pass down target.
14036 (attach_command): Mark target's 'thread_executing' flag.
14037 (stop_current_target_threads_ns): New, factored out from ...
14038 (interrupt_target_1): ... this. Switch inferior before making
14039 target calls.
14040 * inferior-iter.h
14041 (struct all_inferiors_iterator, struct all_inferiors_range)
14042 (struct all_inferiors_safe_range)
14043 (struct all_non_exited_inferiors_range): Filter on
14044 process_stratum_target too. Remove explicit.
14045 * inferior.c (inferior::inferior): Push dummy target on target
14046 stack.
14047 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
14048 Add process_stratum_target parameter, and pass it down.
14049 (have_live_inferiors): Adjust.
14050 (switch_to_inferior_and_push_target): New.
14051 (add_inferior_command, clone_inferior_command): Handle
14052 "-no-connection" parameter. Use
14053 switch_to_inferior_and_push_target.
14054 (_initialize_inferior): Mention "-no-connection" option in
14055 the help of "add-inferior" and "clone-inferior" commands.
14056 * inferior.h: Include "process-stratum-target.h".
14057 (interrupt_target_1): Use bool.
14058 (struct inferior) <push_target, unpush_target, target_is_pushed,
14059 find_target_beneath, top_target, process_target, target_at,
14060 m_stack>: New.
14061 (discard_all_inferiors): Delete.
14062 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
14063 (all_inferiors, all_non_exited_inferiors): Add
14064 process_stratum_target parameter.
14065 * infrun.c: Include "gdb_select.h" and <unordered_map>.
14066 (target_last_proc_target): New global.
14067 (follow_fork_inferior): Push target on new inferior. Pass target
14068 to add_thread_silent. Call exec_on_vfork. Handle target's
14069 reference count.
14070 (follow_fork): Adjust get_last_target_status call. Also consider
14071 target.
14072 (follow_exec): Push target on new inferior.
14073 (struct execution_control_state) <target>: New field.
14074 (user_visible_resume_target): New.
14075 (do_target_resume): Call target_async.
14076 (resume_1): Set target's threads_executing flag. Consider resume
14077 target.
14078 (commit_resume_all_targets): New.
14079 (proceed): Also consider resume target. Skip threads of inferiors
14080 with no execution. Commit resumtion in all targets.
14081 (start_remote): Pass current inferior to wait_for_inferior.
14082 (infrun_thread_stop_requested): Consider target as well. Pass
14083 thread_info pointer to clear_inline_frame_state instead of ptid.
14084 (infrun_thread_thread_exit): Consider target as well.
14085 (random_pending_event_thread): New inferior parameter. Use it.
14086 (do_target_wait): Rename to ...
14087 (do_target_wait_1): ... this. Add inferior parameter, and pass it
14088 down.
14089 (threads_are_resumed_pending_p, do_target_wait): New.
14090 (prepare_for_detach): Adjust calls.
14091 (wait_for_inferior): New inferior parameter. Handle it. Use
14092 do_target_wait_1 instead of do_target_wait.
14093 (fetch_inferior_event): Adjust. Switch to representative
14094 inferior. Pass target down.
14095 (set_last_target_status): Add process_stratum_target parameter.
14096 Save target in global.
14097 (get_last_target_status): Add process_stratum_target parameter and
14098 handle it.
14099 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
14100 (context_switch): Check inferior_ptid == null_ptid before calling
14101 inferior_thread().
14102 (get_inferior_stop_soon): Pass down target.
14103 (wait_one): Rename to ...
14104 (poll_one_curr_target): ... this.
14105 (struct wait_one_event): New.
14106 (wait_one): New.
14107 (stop_all_threads): Adjust.
14108 (handle_no_resumed, handle_inferior_event): Adjust to consider the
14109 event's target.
14110 (switch_back_to_stepped_thread): Also consider target.
14111 (print_stop_event): Update.
14112 (normal_stop): Update. Also consider the resume target.
14113 * infrun.h (wait_for_inferior): Remove declaration.
14114 (user_visible_resume_target): New declaration.
14115 (get_last_target_status, set_last_target_status): New
14116 process_stratum_target parameter.
14117 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
14118 process_stratum_target parameter, and use it.
14119 (clear_inline_frame_state (thread_info*)): New.
14120 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
14121 process_stratum_target parameter.
14122 (clear_inline_frame_state (thread_info*)): Declare.
14123 * linux-fork.c (delete_checkpoint_command): Pass target down to
14124 find_thread_ptid.
14125 (checkpoint_command): Adjust.
14126 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
14127 instead of just tweaking inferior_ptid.
14128 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
14129 (exit_lwp): Pass target down to find_thread_ptid.
14130 (attach_proc_task_lwp_callback): Pass target down to
14131 add_thread/set_running/set_executing.
14132 (linux_nat_target::attach): Pass target down to
14133 thread_change_ptid.
14134 (get_detach_signal): Pass target down to find_thread_ptid.
14135 Consider last target status's target.
14136 (linux_resume_one_lwp_throw, resume_lwp)
14137 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
14138 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
14139 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
14140 (linux_nat_target::async_wait_fd): New.
14141 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
14142 target down.
14143 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
14144 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
14145 * linux-thread-db.c (struct thread_db_info::process_target): New
14146 field.
14147 (add_thread_db_info): Save target.
14148 (get_thread_db_info): New process_stratum_target parameter. Also
14149 match target.
14150 (delete_thread_db_info): New process_stratum_target parameter.
14151 Also match target.
14152 (thread_from_lwp): Adjust to pass down target.
14153 (thread_db_notice_clone): Pass down target.
14154 (check_thread_db_callback): Pass down target.
14155 (try_thread_db_load_1): Always push the thread_db target.
14156 (try_thread_db_load, record_thread): Pass target down.
14157 (thread_db_target::detach): Pass target down. Always unpush the
14158 thread_db target.
14159 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
14160 target down. Always unpush the thread_db target.
14161 (find_new_threads_callback, thread_db_find_new_threads_2)
14162 (thread_db_target::update_thread_list): Pass target down.
14163 (thread_db_target::pid_to_str): Pass current inferior down.
14164 (thread_db_target::get_thread_local_address): Pass target down.
14165 (thread_db_target::resume, maintenance_check_libthread_db): Pass
14166 target down.
14167 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
14168 * procfs.c (procfs_target::procfs_init_inferior): Declare.
14169 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
14170 (procfs_init_inferior): Rename to ...
14171 (procfs_target::procfs_init_inferior): ... this and adjust.
14172 (procfs_target::create_inferior, procfs_notice_thread)
14173 (procfs_do_thread_registers): Adjust.
14174 * ppc-fbsd-tdep.c: Include "inferior.h".
14175 (ppcfbsd_get_thread_local_address): Pass down target.
14176 * proc-service.c (ps_xfer_memory): Switch current inferior and
14177 program space as well.
14178 (get_ps_regcache): Pass target down.
14179 * process-stratum-target.c
14180 (process_stratum_target::thread_address_space)
14181 (process_stratum_target::thread_architecture): Pass target down.
14182 * process-stratum-target.h
14183 (process_stratum_target::threads_executing): New field.
14184 (as_process_stratum_target): New.
14185 * ravenscar-thread.c
14186 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
14187 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
14188 down.
14189 * record-btrace.c (record_btrace_target::info_record): Adjust.
14190 (record_btrace_target::record_method)
14191 (record_btrace_target::record_is_replaying)
14192 (record_btrace_target::fetch_registers)
14193 (get_thread_current_frame_id, record_btrace_target::resume)
14194 (record_btrace_target::wait, record_btrace_target::stop): Pass
14195 target down.
14196 * record-full.c (record_full_wait_1): Switch to event thread.
14197 Pass target down.
14198 * regcache.c (regcache::regcache)
14199 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
14200 process_stratum_target parameter and handle it.
14201 (current_thread_target): New global.
14202 (get_thread_regcache): Add process_stratum_target parameter and
14203 handle it. Switch inferior before calling target method.
14204 (get_thread_regcache): Pass target down.
14205 (get_thread_regcache_for_ptid): Pass target down.
14206 (registers_changed_ptid): Add process_stratum_target parameter and
14207 handle it.
14208 (registers_changed_thread, registers_changed): Pass target down.
14209 (test_get_thread_arch_aspace_regcache): New.
14210 (current_regcache_test): Define a couple local test_target_ops
14211 instances and use them for testing.
14212 (readwrite_regcache): Pass process_stratum_target parameter.
14213 (cooked_read_test, cooked_write_test): Pass mock_target down.
14214 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
14215 (get_thread_arch_aspace_regcache): Add process_stratum_target
14216 parameter.
14217 (regcache::target): New method.
14218 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
14219 (regcache::registers_changed_ptid): Add process_stratum_target
14220 parameter.
14221 (regcache::m_target): New field.
14222 (registers_changed_ptid): Add process_stratum_target parameter.
14223 * remote.c (remote_state::supports_vCont_probed): New field.
14224 (remote_target::async_wait_fd): New method.
14225 (remote_unpush_and_throw): Add remote_target parameter.
14226 (get_current_remote_target): Adjust.
14227 (remote_target::remote_add_inferior): Push target.
14228 (remote_target::remote_add_thread)
14229 (remote_target::remote_notice_new_inferior)
14230 (get_remote_thread_info): Pass target down.
14231 (remote_target::update_thread_list): Skip threads of inferiors
14232 bound to other targets. (remote_target::close): Don't discard
14233 inferiors. (remote_target::add_current_inferior_and_thread)
14234 (remote_target::process_initial_stop_replies)
14235 (remote_target::start_remote)
14236 (remote_target::remote_serial_quit_handler): Pass down target.
14237 (remote_target::remote_unpush_target): New remote_target
14238 parameter. Unpush the target from all inferiors.
14239 (remote_target::remote_unpush_and_throw): New remote_target
14240 parameter. Pass it down.
14241 (remote_target::open_1): Check whether the current inferior has
14242 execution instead of checking whether any inferior is live. Pass
14243 target down.
14244 (remote_target::remote_detach_1): Pass down target. Use
14245 remote_unpush_target.
14246 (extended_remote_target::attach): Pass down target.
14247 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
14248 (remote_target::append_resumption): Pass down target.
14249 (remote_target::append_pending_thread_resumptions)
14250 (remote_target::remote_resume_with_hc, remote_target::resume)
14251 (remote_target::commit_resume): Pass down target.
14252 (remote_target::remote_stop_ns): Check supports_vCont_probed.
14253 (remote_target::interrupt_query)
14254 (remote_target::remove_new_fork_children)
14255 (remote_target::check_pending_events_prevent_wildcard_vcont)
14256 (remote_target::remote_parse_stop_reply)
14257 (remote_target::process_stop_reply): Pass down target.
14258 (first_remote_resumed_thread): New remote_target parameter. Pass
14259 it down.
14260 (remote_target::wait_as): Pass down target.
14261 (unpush_and_perror): New remote_target parameter. Pass it down.
14262 (remote_target::readchar, remote_target::remote_serial_write)
14263 (remote_target::getpkt_or_notif_sane_1)
14264 (remote_target::kill_new_fork_children, remote_target::kill): Pass
14265 down target.
14266 (remote_target::mourn_inferior): Pass down target. Use
14267 remote_unpush_target.
14268 (remote_target::core_of_thread)
14269 (remote_target::remote_btrace_maybe_reopen): Pass down target.
14270 (remote_target::pid_to_exec_file)
14271 (remote_target::thread_handle_to_thread_info): Pass down target.
14272 (remote_target::async_wait_fd): New.
14273 * riscv-fbsd-tdep.c: Include "inferior.h".
14274 (riscv_fbsd_get_thread_local_address): Pass down target.
14275 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
14276 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
14277 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
14278 Adjust.
14279 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
14280 * solib-svr4.c (enable_break): Pass down target.
14281 * spu-multiarch.c (parse_spufs_run): Pass down target.
14282 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
14283 * target-delegates.c: Regenerate.
14284 * target.c (g_target_stack): Delete.
14285 (current_top_target): Return the current inferior's top target.
14286 (target_has_execution_1): Refer to the passed-in inferior's top
14287 target.
14288 (target_supports_terminal_ours): Check whether the initial
14289 inferior was already created.
14290 (decref_target): New.
14291 (target_stack::push): Incref/decref the target.
14292 (push_target, push_target, unpush_target): Adjust.
14293 (target_stack::unpush): Defref target.
14294 (target_is_pushed): Return bool. Adjust to refer to the current
14295 inferior's target stack.
14296 (dispose_inferior): Delete, and inline parts ...
14297 (target_preopen): ... here. Only dispose of the current inferior.
14298 (target_detach): Hold strong target reference while detaching.
14299 Pass target down.
14300 (target_thread_name): Add assertion.
14301 (target_resume): Pass down target.
14302 (target_ops::beneath, find_target_at): Adjust to refer to the
14303 current inferior's target stack.
14304 (get_dummy_target): New.
14305 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
14306 has a thread running.
14307 (initialize_targets): Rename to ...
14308 (_initialize_target): ... this.
14309 * target.h: Include "gdbsupport/refcounted-object.h".
14310 (struct target_ops): Inherit refcounted_object.
14311 (target_ops::shortname, target_ops::longname): Make const.
14312 (target_ops::async_wait_fd): New method.
14313 (decref_target): Declare.
14314 (struct target_ops_ref_policy): New.
14315 (target_ops_ref): New typedef.
14316 (get_dummy_target): Declare function.
14317 (target_is_pushed): Return bool.
14318 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
14319 (all_matching_threads_iterator::all_matching_threads_iterator):
14320 Handle filter target.
14321 * thread-iter.h (struct all_matching_threads_iterator, struct
14322 all_matching_threads_range, class all_non_exited_threads_range):
14323 Filter by target too. Remove explicit.
14324 * thread.c (threads_executing): Delete.
14325 (inferior_thread): Pass down current inferior.
14326 (clear_thread_inferior_resources): Pass down thread pointer
14327 instead of ptid_t.
14328 (add_thread_silent, add_thread_with_info, add_thread): Add
14329 process_stratum_target parameter. Use it for thread and inferior
14330 searches.
14331 (is_current_thread): New.
14332 (thread_info::deletable): Use it.
14333 (find_thread_ptid, thread_count, in_thread_list)
14334 (thread_change_ptid, set_resumed, set_running): New
14335 process_stratum_target parameter. Pass it down.
14336 (set_executing): New process_stratum_target parameter. Pass it
14337 down. Adjust reference to 'threads_executing'.
14338 (threads_are_executing): New process_stratum_target parameter.
14339 Adjust reference to 'threads_executing'.
14340 (set_stop_requested, finish_thread_state): New
14341 process_stratum_target parameter. Pass it down.
14342 (switch_to_thread): Also match inferior.
14343 (switch_to_thread): New process_stratum_target parameter. Pass it
14344 down.
14345 (update_threads_executing): Reimplement.
14346 * top.c (quit_force): Pop targets from all inferior.
14347 (gdb_init): Don't call initialize_targets.
14348 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
14349 Declare.
14350 (windows_add_thread, windows_delete_thread): Adjust.
14351 (get_windows_debug_event): Rename to ...
14352 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
14353 * tracefile-tfile.c (tfile_target_open): Pass down target.
14354 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
14355 Forward declare.
14356 (switch_to_thread): Add process_stratum_target parameter.
14357 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
14358 parameter. Use it.
14359 (mi_on_resume): Pass target down.
14360 * nat/fork-inferior.c (startup_inferior): Add
14361 process_stratum_target parameter. Pass it down.
14362 * nat/fork-inferior.h (startup_inferior): Add
14363 process_stratum_target parameter.
14364 * python/py-threadevent.c (py_get_event_thread): Pass target down.
14365
14366 2020-01-10 Pedro Alves <palves@redhat.com>
14367
14368 * remote.c (remote_target::start_remote): Don't set inferior_ptid
14369 directly. Instead find the first thread in the thread list and
14370 use switch_to_thread.
14371
14372 2020-01-10 Pedro Alves <palves@redhat.com>
14373
14374 * remote.c (remote_target::remote_add_inferior): Don't bind a
14375 process to the current inferior if the current inferior is already
14376 bound to a process.
14377
14378 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14379 Pedro Alves <palves@redhat.com>
14380
14381 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
14382 If no process is specified, return null_ptid instead of
14383 inferior_ptid.
14384 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
14385 TARGET_WAITKIND_SIGNALLED with no pid.
14386
14387 2020-01-10 Pedro Alves <palves@redhat.com>
14388
14389 * remote.c (first_remote_resumed_thread): New.
14390 (remote_target::wait_as): Use it as default event_ptid instead of
14391 inferior_ptid.
14392
14393 2020-01-10 Pedro Alves <palves@redhat.com>
14394
14395 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
14396
14397 2020-01-10 Pedro Alves <palves@redhat.com>
14398
14399 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
14400 not -1.
14401
14402 2020-01-10 Pedro Alves <palves@redhat.com>
14403
14404 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
14405 ptid to get_last_target_status.
14406 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
14407 ptid to get_last_target_status.
14408 * infcmd.c (continue_command): Don't pass a target_waitstatus to
14409 get_last_target_status.
14410 (info_program_command): Don't pass a target_waitstatus to
14411 get_last_target_status.
14412 * infrun.c (init_wait_for_inferior): Use
14413 nullify_last_target_wait_ptid.
14414 (get_last_target_status): Handle nullptr arguments.
14415 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
14416 (print_stop_event): Don't pass a ptid to get_last_target_status.
14417 (normal_stop): Don't pass a ptid to get_last_target_status.
14418 * infrun.h (get_last_target_status, set_last_target_status): Move
14419 comments here and update.
14420 (nullify_last_target_wait_ptid): Declare.
14421 * linux-fork.c (fork_load_infrun_state): Remove local extern
14422 declaration of nullify_last_target_wait_ptid.
14423 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
14424 to get_last_target_status.
14425
14426 2020-01-10 Pedro Alves <palves@redhat.com>
14427
14428 * gdbthread.h (scoped_restore_current_thread)
14429 <dont_restore, restore, m_dont_restore>: Declare.
14430 * thread.c (thread_alive): Add assertion. Return bool.
14431 (switch_to_thread_if_alive): New.
14432 (prune_threads): Switch inferior/thread.
14433 (print_thread_info_1): Switch thread before calling target methods.
14434 (scoped_restore_current_thread::restore): New, factored out from
14435 ...
14436 (scoped_restore_current_thread::~scoped_restore_current_thread):
14437 ... this.
14438 (scoped_restore_current_thread::scoped_restore_current_thread):
14439 Add assertion.
14440 (thread_apply_all_command, thread_select): Use
14441 switch_to_thread_if_alive.
14442 * infrun.c (proceed, restart_threads, handle_signal_stop)
14443 (switch_back_to_stepped_thread): Switch current thread before
14444 calling target methods.
14445
14446 2020-01-10 Pedro Alves <palves@redhat.com>
14447
14448 * inferior.c (switch_to_inferior_no_thread): New function,
14449 factored out from ...
14450 (inferior_command): ... here.
14451 * inferior.h (switch_to_inferior_no_thread): Declare.
14452 * mi/mi-main.c (run_one_inferior): Use
14453 switch_to_inferior_no_thread.
14454
14455 2020-01-10 Pedro Alves <palves@redhat.com>
14456
14457 * infcmd.c (kill_command): Remove dead code.
14458
14459 2020-01-10 Pedro Alves <palves@redhat.com>
14460
14461 * remote.c (remote_target::mourn_inferior): No longer check
14462 whether the target is running.
14463
14464 2020-01-10 Pedro Alves <palves@redhat.com>
14465
14466 * corelow.c (core_target::has_execution): Change parameter type to
14467 inferior pointer.
14468 * inferior.c (number_of_live_inferiors): Use
14469 inferior::has_execution instead of target_has_execution_1.
14470 * inferior.h (inferior::has_execution): New.
14471 * linux-thread-db.c (thread_db_target::update_thread_list): Use
14472 inferior::has_execution instead of target_has_execution_1.
14473 * process-stratum-target.c
14474 (process_stratum_target::has_execution): Change parameter type to
14475 inferior pointer. Check the inferior's PID instead of
14476 inferior_ptid.
14477 * process-stratum-target.h
14478 (process_stratum_target::has_execution): Change parameter type to
14479 inferior pointer.
14480 * record-full.c (record_full_core_target::has_execution): Change
14481 parameter type to inferior pointer.
14482 * target.c (target_has_execution_1): Change parameter type to
14483 inferior pointer.
14484 (target_has_execution_current): Adjust.
14485 * target.h (target_ops::has_execution): Change parameter type to
14486 inferior pointer.
14487 (target_has_execution_1): Change parameter type to inferior
14488 pointer. Change return type to bool.
14489 * tracefile.h (tracefile_target::has_execution): Change parameter
14490 type to inferior pointer.
14491
14492 2020-01-10 Pedro Alves <palves@redhat.com>
14493
14494 * exceptions.c (print_flush): Remove current_top_target() check.
14495
14496 2020-01-10 Pedro Alves <palves@redhat.com>
14497
14498 * remote.c (show_remote_exec_file): Show the current inferior's
14499 exec-file instead of the command variable's value.
14500
14501 2020-01-10 Pedro Alves <palves@redhat.com>
14502
14503 * record-full.c (record_full_resume_ptid): New global.
14504 (record_full_target::resume): Set it.
14505 (record_full_wait_1): Use record_full_resume_ptid instead of
14506 inferior_ptid.
14507
14508 2020-01-10 Pedro Alves <palves@redhat.com>
14509
14510 * gdbthread.h (scoped_restore_current_thread)
14511 <dont_restore, restore, m_dont_restore>: Declare.
14512 * thread.c (thread_alive): Add assertion. Return bool.
14513 (switch_to_thread_if_alive): New.
14514 (prune_threads): Switch inferior/thread.
14515 (print_thread_info_1): Switch thread before calling target methods.
14516 (scoped_restore_current_thread::restore): New, factored out from
14517 ...
14518 (scoped_restore_current_thread::~scoped_restore_current_thread):
14519 ... this.
14520 (scoped_restore_current_thread::scoped_restore_current_thread):
14521 Add assertion.
14522 (thread_apply_all_command, thread_select): Use
14523 switch_to_thread_if_alive.
14524
14525 2020-01-10 George Barrett <bob@bob131.so>
14526
14527 * stap-probe.c (stap_modify_semaphore): Don't check for null
14528 semaphores.
14529 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
14530 for null semaphores.
14531
14532 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
14533
14534 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
14535 all source windows, and maintain horizontal scroll status while
14536 doing so.
14537
14538 2020-01-09 Tom Tromey <tom@tromey.com>
14539
14540 PR tui/18932:
14541 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
14542 update_source_window, not print_source_lines.
14543
14544 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
14545
14546 * tui/tui.c (tui_enable): Register tui hooks after calling
14547 tui_display_main.
14548
14549 2020-01-09 Christian Biesinger <cbiesinger@google.com>
14550
14551 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
14552
14553 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
14554
14555 * thread.c (print_thread_info_1): Fix indentation.
14556
14557 2020-01-09 Christian Biesinger <cbiesinger@google.com>
14558
14559 * symtab.c (general_symbol_info::compute_and_set_names): Move the
14560 unique_xmalloc_ptr outside the if to always free the demangled name.
14561
14562 2020-01-08 Tom Tromey <tromey@adacore.com>
14563
14564 * xcoffread.c (enter_line_range, read_xcoff_symtab)
14565 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
14566 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
14567 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
14568 Remove.
14569 (section_offsets): New typedef.
14570 * symtab.c (fixup_section, get_msymbol_address): Update.
14571 * symmisc.c (dump_msymbols): Update.
14572 * symfile.h (relative_addr_info_to_section_offsets)
14573 (symfile_map_offsets_to_segments): Update.
14574 * symfile.c (build_section_addr_info_from_objfile)
14575 (init_objfile_sect_indices): Update.
14576 (struct place_section_arg): Change type of "offsets".
14577 (place_section): Update.
14578 (relative_addr_info_to_section_offsets): Change type of
14579 "section_offsets". Remove "num_sections" parameter.
14580 (default_symfile_offsets, syms_from_objfile_1)
14581 (set_objfile_default_section_offset): Update.
14582 (reread_symbols): No need to preserve section offsets by hand.
14583 (symfile_map_offsets_to_segments): Change type of "offsets".
14584 * stap-probe.c (relocate_address): Update.
14585 * stabsread.h (process_one_symbol): Update.
14586 * solib-target.c (struct lm_info_target) <offsets>: Change type.
14587 (solib_target_relocate_section_addresses): Update.
14588 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
14589 Update.
14590 * solib-frv.c (frv_relocate_main_executable): Update.
14591 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
14592 * solib-aix.c (solib_aix_get_section_offsets): Change return
14593 type.
14594 (solib_aix_solib_create_inferior_hook): Update.
14595 * remote.c (remote_target::get_offsets): Update.
14596 * psymtab.c (find_pc_sect_psymtab): Update.
14597 * psympriv.h (struct partial_symbol) <address, text_low,
14598 text_high>: Update.
14599 * objfiles.h (obj_section_offset): Update.
14600 (struct objfile) <section_offsets>: Change type.
14601 <num_sections>: Remove.
14602 (objfile_relocate): Update.
14603 * objfiles.c (entry_point_address_query): Update
14604 (relocate_one_symbol): Change type of "section_offsets".
14605 (objfile_relocate1, objfile_relocate1): Change type of
14606 "new_offsets".
14607 (objfile_rebase1): Update.
14608 * mipsread.c (mipscoff_symfile_read): Update.
14609 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
14610 parameter.
14611 * mdebugread.c (parse_symbol): Change type of "section_offsets".
14612 (parse_external, psymtab_to_symtab_1): Update.
14613 * machoread.c (macho_symfile_offsets): Update.
14614 * ia64-tdep.c (ia64_find_unwind_table): Update.
14615 * hppa-tdep.c (read_unwind_info): Update.
14616 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
14617 * dwarf2read.c (create_addrmap_from_index)
14618 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
14619 (process_psymtab_comp_unit_reader, add_partial_symbol)
14620 (add_partial_subprogram, process_full_comp_unit)
14621 (read_file_scope, read_func_scope, read_lexical_block_scope)
14622 (read_call_site_scope, dwarf2_rnglists_process)
14623 (dwarf2_ranges_process, dwarf2_ranges_read)
14624 (dwarf_decode_lines_1, var_decode_location, new_symbol)
14625 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
14626 Update.
14627 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
14628 Update.
14629 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
14630 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
14631 (process_one_symbol): Change type of "section_offsets".
14632 * ctfread.c (get_objfile_text_range): Update.
14633 * coffread.c (coff_symtab_read, enter_linenos)
14634 (process_coff_symbol): Update.
14635 * coff-pe-read.c (add_pe_forwarded_sym): Update.
14636 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
14637
14638 2020-01-08 Tom Tromey <tromey@adacore.com>
14639
14640 * dwarf2read.c (parse_macro_definition): Use std::string.
14641 (parse_macro_definition): Likewise.
14642
14643 2020-01-08 Tom Tromey <tromey@adacore.com>
14644
14645 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
14646 (ATTR_ALLOC_CHUNK): Remove.
14647
14648 2020-01-08 Tom Tromey <tromey@adacore.com>
14649
14650 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
14651
14652 2020-01-08 Tom Tromey <tromey@adacore.com>
14653
14654 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
14655 (dwarf2_compute_name, open_dwo_file): Likewise.
14656 (process_enumeration_scope): Use std::vector.
14657 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
14658 (partial_die_info::fixup, dwarf2_start_subfile)
14659 (guess_full_die_structure_name, dwarf2_name): Likewise.
14660 (determine_prefix): Update.
14661 (guess_full_die_structure_name): Make return type const.
14662 (partial_die_full_name): Return unique_xmalloc_ptr.
14663 (DW_FIELD_ALLOC_CHUNK): Remove.
14664
14665 2020-01-07 Tom Tromey <tromey@adacore.com>
14666
14667 PR build/24937:
14668 * stap-probe.c (class stap_static_probe_ops): Add constructor.
14669
14670 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
14671
14672 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
14673
14674 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
14675
14676 * stack.c (print_frame_info): Move disassemble_next_line code
14677 inside source_print block.
14678
14679 2020-01-06 Eli Zaretskii <eliz@gnu.org>
14680
14681 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
14682 gdb/signals.h, as we are now using native signal symbols.
14683
14684 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
14685
14686 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
14687 overflow by an early check of content vs threshold.
14688 * tui/tui-source.c (tui_source_window::line_is_displayed):
14689 Likewise.
14690
14691 2020-01-06 Eli Zaretskii <eliz@gnu.org>
14692
14693 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
14694
14695 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
14696
14697 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
14698 export table if no section contains it's RVA.
14699
14700 2020-01-06 Eli Zaretskii <eliz@gnu.org>
14701
14702 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
14703
14704 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
14705
14706 * source.c (print_source_lines_base): Set last_line_listed.
14707
14708 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
14709
14710 * tui/tui-disasm.c: Remove trailing spaces.
14711
14712 2020-01-06 Eli Zaretskii <eliz@gnu.org>
14713 Pedro Alves <palves@redhat.com>
14714
14715 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
14716 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
14717 (windows_gdb_signal_to_target): New function, uses the above
14718 enumeration to convert GDB internal signal codes to equivalent
14719 Windows codes.
14720 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
14721 * windows-nat.c: Include "gdb_wait.h".
14722 (get_windows_debug_event): Extract the fatal exception from the
14723 exit status and convert to the equivalent Posix signal number.
14724 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
14725 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
14726 * gdbsupport/gdb_wait.c: New file, implements
14727 windows_status_to_termsig.
14728 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
14729 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
14730
14731 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
14732
14733 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
14734 show_layout.
14735
14736 2020-01-05 Luis Machado <luis.machado@linaro.org>
14737
14738 * aarch64-linux-nat.c
14739 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
14740 and bfd_mach_aarch64.
14741
14742 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14743
14744 * ui-file.c (stdio_file::can_emit_style_escape)
14745 (tee_file::can_emit_style_escape): Ensure style is used also on
14746 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
14747 to gdb_stdout.
14748 * main.c (set_gdb_data_directory): Use file style to output the
14749 warning that the given pathname is not a directory.
14750 * top.c (show_history_filename, gdb_safe_append_history)
14751 (show_gdb_datadir): Use file style.
14752
14753 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
14754
14755 * solib-target.c (struct lm_info_target):
14756 Change offsets to be a unique_xmalloc_ptr.
14757 (solib_target_relocate_section_addresses): Update.
14758
14759 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
14760
14761 * windows-nat.c (windows_clear_solib): Free so_list linked list.
14762
14763 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
14764
14765 * MAINTAINERS (Write After Approval): Add myself.
14766
14767 2020-01-02 Luis Machado <luis.machado@linaro.org>
14768
14769 * proc-service.c (get_ps_regcache): Remove reference to obsolete
14770 Cell BE architecture.
14771 * target.h (struct target_ops) <thread_architecture>: Likewise.
14772
14773 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
14774
14775 * Makefile.in: Use INSTALL_PROGRAM_ENV.
14776
14777 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
14778
14779 * MAINTAINERS (Write After Approval): Add myself.
14780
14781 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14782
14783 * gdbarch.sh: Update copyright year range of generated files.
14784
14785 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14786
14787 Update copyright year range in all GDB files.
14788
14789 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14790
14791 * copyright.py: Convert to Python 3.
14792
14793 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14794
14795 * copyright.py: Adapt after move of gnulib directory from gdb
14796 directory to toplevel directory.
14797
14798 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14799
14800 * copyright.py (main): Exit if run from the wrong directory.
14801
14802 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14803
14804 * top.c (print_gdb_version): Change copyright year to 2020.
14805
14806 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14807
14808 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
14809
14810 For older changes see ChangeLog-2019.
14811 \f
14812 Local Variables:
14813 mode: change-log
14814 left-margin: 8
14815 fill-column: 74
14816 version-control: never
14817 coding: utf-8
14818 End:
This page took 0.417809 seconds and 3 git commands to generate.