gdb: add doc for "set/show debug event-loop"
[binutils-gdb.git] / gdb / ChangeLog
1 2020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
2
3 * NEWS: Mention set/show debug event-loop.
4
5 2020-10-02 Tom Tromey <tromey@adacore.com>
6
7 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
8 REG_EXTENDED.
9
10 2020-10-02 Simon Marchi <simon.marchi@efficios.com>
11
12 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
13 * procfs.c (procfs_inferior_created): Remove.
14 (_initialize_procfs): Don't register procfs_inferior_created.
15
16 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
17
18 * async-event.c (invoke_async_signal_handlers): Add debug
19 print.
20 (check_async_event_handlers): Likewise.
21 * event-top.c (show_debug_event_loop): New function.
22 (_initialize_event_top): Register "set debug event-loop"
23 setting.
24
25 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
26
27 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
28 * debug.h: Remove.
29 * infrun.c: Include gdbsupport/common-debug.h.
30 * linux-nat.c: Likewise.
31
32 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
33
34 * async-event.h (create_async_signal_handler): Add name
35 parameter.
36 (create_async_event_handler): Likewise.
37 * async-event.c (struct async_signal_handler) <name>: New field.
38 (struct async_event_handler) <name>: New field.
39 (create_async_signal_handler): Assign name.
40 (create_async_event_handler): Assign name.
41 * event-top.c (async_init_signals): Pass name when creating
42 handler.
43 * infrun.c (_initialize_infrun): Likewise.
44 * record-btrace.c (record_btrace_push_target): Likewise.
45 * record-full.c (record_full_open): Likewise.
46 * remote-notif.c (remote_notif_state_allocate): Likewise.
47 * remote.c (remote_target::open_1): Likewise.
48 * tui/tui-win.c (tui_initialize_win): Likewise.
49
50 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
51
52 * async-event.c (initialize_async_signal_handlers): Pass name to
53 add_file_handler
54 * event-top.c (ui_register_input_event_handler): Likewise.
55 * linux-nat.c (linux_nat_target::async): Likewise.
56 * run-on-main-thread.c (_initialize_run_on_main_thread):
57 Likewise
58 * ser-base.c (reschedule): Likewise.
59 (ser_base_async): Likewise.
60 * tui/tui-io.c: Likewise.
61 * top.h (struct ui) <num>: New field.
62 * top.c (highest_ui_num): New variable.
63 (ui::ui): Initialize num.
64
65 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
66
67 * observable.h <inferior_created>: Remove parameters. Update all
68 listeners.
69 * inferior.h (post_create_inferior): Remove target parameter.
70 Update all callers.
71
72 2020-10-02 Nitika Achra <Nitika.Achra@amd.com>
73
74 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
75 and DW_MACRO_undef_strx.
76 (dwarf_decode_macros): Likewise
77 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
78 which is the value of DW_AT_str_offsets_base.
79 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
80 str_offsets_base.
81
82 2020-10-01 Kamil Rytarowski <n54@gmx.com>
83
84 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
85
86 2020-10-01 Kamil Rytarowski <n54@gmx.com>
87
88 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
89 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
90
91 2020-10-01 Kamil Rytarowski <n54@gmx.com>
92
93 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
94
95 2020-09-30 Tom de Vries <tdevries@suse.de>
96
97 PR symtab/26683
98 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
99
100 2020-09-30 Tom Tromey <tromey@adacore.com>
101
102 * dwarf2/read.c (handle_variant): Use constant_value.
103
104 2020-09-29 Tom Tromey <tom@tromey.com>
105
106 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
107 (read_file_scope, dwarf2_get_pc_bounds)
108 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
109 (read_structure_type, handle_struct_member_die)
110 (read_enumeration_type, read_array_type, read_set_type)
111 (read_tag_pointer_type, read_tag_reference_type)
112 (read_subroutine_type, read_base_type, read_subrange_type)
113 (read_full_die_1, partial_die_info::read)
114 (partial_die_info::read, by, new_symbol)
115 (dwarf2_const_value_data, dwarf2_const_value_attr)
116 (dump_die_shallow, dwarf2_fetch_constant_bytes)
117 (prepare_one_comp_unit): Update.
118 * dwarf2/attribute.h (DW_UNSND): Remove.
119
120 2020-09-29 Tom Tromey <tom@tromey.com>
121
122 * dwarf2/read.c (read_func_scope, prototyped_function_p)
123 (read_subroutine_type, partial_die_info::read)
124 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
125 (dwarf2_add_member_fn): Update.
126 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
127 * dwarf2/attribute.c (attribute::as_boolean): New method.
128
129 2020-09-29 Tom Tromey <tom@tromey.com>
130
131 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
132 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
133 method.
134 * dwarf2/attribute.c (attribute::as_virtuality): New method.
135
136 2020-09-29 Tom Tromey <tom@tromey.com>
137
138 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
139 the attribute's form.
140
141 2020-09-29 Tom Tromey <tom@tromey.com>
142
143 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
144 (dwarf2_add_member_fn): Update.
145 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
146 * dwarf2/attribute.c (attribute::defaulted): New method, from
147 is_valid_DW_AT_defaulted.
148
149 2020-09-29 Tom Tromey <tom@tromey.com>
150
151 * dwarf2/read.c (dw2_get_file_names_reader)
152 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
153 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
154 (dwarf2_symbol_mark_computed): Use as_unsigned.
155 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
156 method.
157 <form_is_section_offset>: Update comment.
158
159 2020-09-29 Tom Tromey <tom@tromey.com>
160
161 * dwarf2/read.c (dwarf2_access_attribute): Rename from
162 dwarf2_default_access_attribute. Look up attribute.
163 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
164 Update.
165
166 2020-09-29 Tom Tromey <tom@tromey.com>
167
168 * dwarf2/read.c (skip_one_die): Update.
169 (read_full_die_1): Change how reprocessing is done.
170 (partial_die_info::read): Update.
171 (read_attribute_value): Remove need_reprocess parameter.
172 (read_attribute): Likewise.
173 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
174 New method.
175
176 2020-09-29 Tom Tromey <tom@tromey.com>
177
178 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
179 (dwarf2_const_value_attr, dump_die_shallow)
180 (dwarf2_fetch_constant_bytes): Update.
181 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
182 comment.
183 <set_address>: New method.
184 (DW_ADDR): Remove.
185 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
186 (attribute::as_string, attribute::as_address): Add assert.
187
188 2020-09-29 Tom Tromey <tom@tromey.com>
189
190 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
191 (read_attribute_reprocess, read_attribute_value): Update.
192 (read_attribute): Clear requires_reprocessing.
193 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
194 form_requires_reprocessing>: New methods.
195 <string_init>: Clear requires_reprocessing.
196 <set_unsigned_reprocess>: New method.
197 <name>: Shrink by one bit.
198 <requires_reprocessing>: New member.
199 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
200 method.
201
202 2020-09-29 Tom Tromey <tom@tromey.com>
203
204 * dwarf2/read.c (read_attribute_value): Update.
205 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
206 set_unsigned>: New methods.
207 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
208
209 2020-09-29 Tom Tromey <tom@tromey.com>
210
211 * dwarf2/read.c (get_alignment, read_array_order)
212 (read_attribute_value, dwarf2_const_value_attr)
213 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
214 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
215 New methods.
216 (DW_SND): Remove.
217
218 2020-09-29 Tom Tromey <tom@tromey.com>
219
220 * dwarf2/read.c (read_attribute_value, lookup_die_type)
221 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
222 Update.
223 * dwarf2/attribute.h (struct attribute) <as_signature,
224 set_signature>: New methods.
225 (DW_SIGNATURE): Remove.
226
227 2020-09-29 Tom Tromey <tom@tromey.com>
228
229 * dwarf2/read.c (read_call_site_scope)
230 (handle_data_member_location, dwarf2_add_member_fn)
231 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
232 (partial_die_info::read, read_attribute_value)
233 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
234 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
235 (dwarf2_symbol_mark_computed): Update.
236 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
237 methods.
238 (DW_BLOCK): Remove.
239 * dwarf2/attribute.c (attribute::form_is_block): Add
240 DW_FORM_data16.
241
242 2020-09-29 Tom Tromey <tom@tromey.com>
243
244 * dwarf2/read.c (read_cutu_die_from_dwo)
245 (read_attribute_reprocess, read_attribute_value, read_attribute)
246 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
247 (dwarf2_fetch_constant_bytes): Update.
248 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
249 <set_string_noncanonical, set_string_canonical>: New methods.
250 <string_is_canonical>: Update comment.
251 <canonical_string_p>: Add assert.
252 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
253 * dwarf2/attribute.c (attribute::form_is_string): New method.
254 (attribute::string): Use it.
255
256 2020-09-29 Tom Tromey <tom@tromey.com>
257
258 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
259 (dump_die_shallow): Use canonical_string_p.
260 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
261 method.
262
263 2020-09-29 Tom Tromey <tom@tromey.com>
264
265 * dwarf2/read.c (partial_die_info::read)
266 (dwarf2_const_value_attr, anonymous_struct_prefix, )
267 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
268 attribute::as_string.
269
270 2020-09-29 Tom Tromey <tom@tromey.com>
271
272 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
273 DW_ADDR.
274 (attribute::string): Don't use DW_STRING.
275 (attribute::get_ref_die_offset): Don't use DW_UNSND.
276 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
277
278 2020-09-29 Tom Tromey <tom@tromey.com>
279
280 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
281 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
282 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
283 * dwarf2/attribute.h (struct attribute): Rename methods.
284 * dwarf2/attribute.c (attribute::as_address): Rename from
285 value_as_address.
286 (attribute::as_string): Rename from value_as_string.
287
288 2020-09-29 Tom Tromey <tom@tromey.com>
289
290 * dwarf2/read.c (partial_die_info::read) <case
291 DW_AT_linkage_name>: Use value_as_string.
292 (dwarf2_string_attr): Use value_as_string.
293 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
294 method.
295 * dwarf2/attribute.c (attribute::value_as_string): New method.
296
297 2020-09-29 Pedro Alves <pedro@palves.net>
298
299 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
300 defined before using '#pragma GCC diagnostic' instead of checking
301 __clang__.
302
303 2020-09-28 Tom Tromey <tom@tromey.com>
304
305 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
306 (handle_signal_stop): Update.
307 * procfs.c (procfs_target::insert_watchpoint): Update.
308 * target.h (target_have_steppable_watchpoint): Now a function.
309
310 2020-09-28 Tom Tromey <tom@tromey.com>
311
312 * infrun.c (set_schedlock_func): Update.
313 * target.h (target_can_lock_scheduler): Now a function.
314
315 2020-09-28 Tom Tromey <tom@tromey.com>
316
317 * inferior.h (class inferior) <has_execution>: Update.
318 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
319 * valops.c (find_function_in_inferior)
320 (value_allocate_space_in_inferior): Update.
321 * top.c (kill_or_detach): Update.
322 * target.c (target_preopen, set_target_permissions): Update.
323 (target_has_execution_current): Remove.
324 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
325 Update.
326 * solib.c (update_solib_list, reload_shared_libraries): Update.
327 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
328 * solib-dsbt.c (enable_break): Update.
329 * score-tdep.c (score7_fetch_inst): Update.
330 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
331 Update.
332 * remote.c (remote_target::start_remote)
333 (remote_target::remote_check_symbols, remote_target::open_1)
334 (remote_target::remote_detach_1, remote_target::verify_memory)
335 (remote_target::xfer_partial, remote_target::read_description)
336 (remote_target::get_min_fast_tracepoint_insn_len): Update.
337 * record-full.c (record_full_open_1): Update.
338 * record-btrace.c (record_btrace_target_open): Update.
339 * objc-lang.c (lookup_objc_class, lookup_child_selector)
340 (value_nsstring): Update.
341 * linux-thread-db.c (add_thread_db_info)
342 (thread_db_find_new_threads_silently, check_thread_db_callback)
343 (try_thread_db_load_1, record_thread): Update.
344 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
345 Update.
346 * linux-fork.c (checkpoint_command): Update.
347 * infrun.c (set_non_stop, set_observer_mode)
348 (check_multi_target_resumption, for_each_just_stopped_thread)
349 (maybe_remove_breakpoints, normal_stop)
350 (class infcall_suspend_state): Update.
351 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
352 (info_program_command, attach_command): Update.
353 * infcall.c (call_function_by_hand_dummy): Update.
354 * inf-loop.c (inferior_event_handler): Update.
355 * gcore.c (gcore_command, derive_heap_segment): Update.
356 * exec.c (exec_file_command): Update.
357 * eval.c (evaluate_subexp): Update.
358 * compile/compile.c (compile_to_object): Update.
359 * cli/cli-dump.c (restore_command): Update.
360 * breakpoint.c (update_watchpoint)
361 (update_inserted_breakpoint_locations)
362 (insert_breakpoint_locations, get_bpstat_thread): Update.
363 * target.h (target_has_execution): Remove macro.
364 (target_has_execution_current): Don't declare.
365 (target_has_execution): Rename from target_has_execution_1. Add
366 argument default.
367
368 2020-09-28 Tom Tromey <tom@tromey.com>
369
370 * mi/mi-main.c (exec_reverse_continue)
371 (mi_cmd_list_target_features): Update.
372 * infrun.c (set_exec_direction_func): Update.
373 * target.c (default_execution_direction): Update.
374 * reverse.c (exec_reverse_once): Update.
375 * target.h (target_can_execute_reverse): Now a function.
376
377 2020-09-28 Tom Tromey <tom@tromey.com>
378
379 * tui/tui-regs.c (tui_get_register)
380 (tui_data_window::show_registers): Update.
381 * thread.c (scoped_restore_current_thread::restore)
382 (scoped_restore_current_thread::scoped_restore_current_thread):
383 Update.
384 * regcache-dump.c (regcache_print): Update.
385 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
386 Update.
387 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
388 * mep-tdep.c (current_me_module, current_options): Update.
389 * linux-thread-db.c (thread_db_load): Update.
390 * infcmd.c (registers_info, info_vector_command)
391 (info_float_command): Update.
392 * ia64-tdep.c (ia64_frame_prev_register)
393 (ia64_sigtramp_frame_prev_register): Update.
394 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
395 * gcore.c (derive_stack_segment): Update.
396 * frame.c (get_current_frame, has_stack_frames): Update.
397 * findvar.c (language_defn::read_var_value): Update.
398 * arm-tdep.c (arm_pc_is_thumb): Update.
399 * target.c (target_has_registers): Rename from
400 target_has_registers_1.
401 * target.h (target_has_registers): Remove macro.
402 (target_has_registers): Rename from target_has_registers_1.
403
404 2020-09-28 Tom Tromey <tom@tromey.com>
405
406 * windows-tdep.c (tlb_make_value): Update.
407 * tui/tui-regs.c (tui_data_window::show_registers): Update.
408 * thread.c (scoped_restore_current_thread::restore)
409 (scoped_restore_current_thread::scoped_restore_current_thread)
410 (thread_command): Update.
411 * stack.c (backtrace_command_1, frame_apply_level_command)
412 (frame_apply_all_command, frame_apply_command): Update.
413 * infrun.c (siginfo_make_value, restore_infcall_control_state):
414 Update.
415 * gcore.c (derive_stack_segment): Update.
416 * frame.c (get_current_frame, has_stack_frames): Update.
417 * auxv.c (info_auxv_command): Update.
418 * ada-tasks.c (ada_build_task_list): Update.
419 * target.c (target_has_stack): Rename from target_has_stack_1.
420 * target.h (target_has_stack): Remove macro.
421 (target_has_stack): Rename from target_has_stack_1.
422
423 2020-09-28 Tom Tromey <tom@tromey.com>
424
425 * target.c (target_has_memory): Rename from target_has_memory_1.
426 * tui/tui-regs.c (tui_data_window::show_registers): Update.
427 * thread.c (scoped_restore_current_thread::restore)
428 (scoped_restore_current_thread::scoped_restore_current_thread):
429 Update.
430 * frame.c (get_current_frame, has_stack_frames): Update.
431 * target.h (target_has_memory): Remove macro.
432 (target_has_memory): Rename from target_has_memory_1.
433
434 2020-09-28 Tom Tromey <tom@tromey.com>
435
436 * target.c (target_has_all_memory_1): Remove.
437 * target.h (target_has_all_memory): Remove define.
438 (target_has_all_memory_1): Don't declare.
439
440 2020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
441
442 * ser-base.c: Adjust comments formatting.
443
444 2020-09-27 Tom Tromey <tom@tromey.com>
445
446 PR tui/25342:
447 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
448
449 2020-09-27 Tom Tromey <tom@tromey.com>
450
451 PR tui/25342:
452 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
453
454 2020-09-27 Tom Tromey <tom@tromey.com>
455
456 * unittests/tui-selftests.c: Update.
457 * tui/tui-winsource.h (struct tui_source_window_base)
458 <extra_margin, show_line_number, refresh_pad>: New methods.
459 <m_max_length, m_pad>: New members.
460 (tui_copy_source_line): Update.
461 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
462 first_col, line_width, ndigits parameters. Add length.
463 (tui_source_window_base::show_source_line): Write to pad. Line
464 number now 0-based.
465 (tui_source_window_base::refresh_pad): New method.
466 (tui_source_window_base::show_source_content): Write to pad. Call
467 refresh_pad.
468 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
469 not refill.
470 (tui_source_window_base::update_exec_info): Call
471 show_line_number.
472 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
473 method.
474 <m_digits>: New member.
475 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
476 and m_max_length.
477 (tui_source_window::show_line_number): New method.
478 * tui/tui-io.h (tui_puts): Fix comment.
479 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
480 m_max_length.
481
482 2020-09-27 Tom Tromey <tom@tromey.com>
483
484 * tui/tui-winsource.c
485 (tui_source_window_base::set_is_exec_point_at): Don't call
486 show_source_line.
487
488 2020-09-27 Tom Tromey <tom@tromey.com>
489
490 * python/py-tui.c (class tui_py_window) <refresh_window>: New
491 method.
492 <erase>: Update.
493 <cursor_x, cursor_y>: Remove.
494 <m_inner_window>: New member.
495 (tui_py_window::rerender): Create inner window.
496 (tui_py_window::output): Write to inner window.
497
498 2020-09-26 Gareth Rees <grees@undo.io> (tiny change)
499
500 PR python/26586
501 * cli/cli-script.c (execute_control_commands): don't set
502 instream to nullptr here as this breaks the from_tty argument
503 to gdb.execute in Python.
504 (execute_user_command): set instream to nullptr here instead.
505
506 2020-09-25 Simon Marchi <simon.marchi@efficios.com>
507
508 * infrun.h (infrun_debug_printf): Fix formatting.
509 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
510
511 2020-09-25 Saagar Jha <saagar@saagarjha.com>
512
513 * compile/compile-object-load.h (struct munmap_list): Add
514 explicitly-defined move constructor.
515
516 2020-09-24 Tom Tromey <tromey@adacore.com>
517
518 PR tui/26638:
519 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
520 method.
521 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
522 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
523 (tui_prev_win): Rewrite.
524
525 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
526
527 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
528 in WOW64 processes as SIGINT.
529 * nat/windows-nat.h: Make wow64_process a shared variable.
530 * windows-nat.c: Remove static wow64_process variable.
531
532 2020-09-23 Tom Tromey <tom@tromey.com>
533
534 PR symtab/25470:
535 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
536 offset and bit size.
537 * printcmd.c (print_scalar_formatted): Handle zero-length
538 integer.
539 (print_scalar_formatted): Use bit_size_differs_p.
540 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
541 constant.
542 (union type_specific): <int_stuff>: New member.
543 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
544 methods.
545 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
546 TYPE_SPECIFIC_FIELD.
547 (recursive_dump_type, copy_type_recursive): Update.
548 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
549 DW_AT_data_bit_offset.
550
551 2020-09-23 Tom Tromey <tom@tromey.com>
552
553 * utils.h (class gdb_argv): Add move operators.
554 <append>: New methods.
555 * compile/compile.c (build_argc_argv): Remove.
556 (compile_args_argc): Remove.
557 (compile_args_argv): Change type.
558 (set_compile_args): Simplify.
559 (append_args): Remove.
560 (filter_args): Remove argcp parameter.
561 (get_args): Return gdb_argv. Simplify.
562 (compile_to_object): Update.
563
564 2020-09-23 Tom Tromey <tom@tromey.com>
565
566 * compile/compile-object-run.c (do_module_cleanup)
567 <~do_module_cleanup> :Remove.
568 (do_module_cleanup): Update.
569 * compile/compile-object-load.h (struct munmap_list): Add move
570 assignment operator.
571 <source_file>: Now a std::string.
572 <munmap_list>: Rename. No longer a pointer.
573 * compile/compile-object-load.c (struct setup_sections_data): Add
574 constructor.
575 <setup_one_section>: Declare.
576 <munmap_list>: Move earlier.
577 <m_bfd>: New member.
578 <m_last_size, m_last_section_first, m_last_prot,
579 m_last_max_alignment>: Rename, add initializers where needed.
580 (setup_sections_data::setup_one_section): Rename from
581 setup_sections. Update.
582 (compile_object_load): Update. Don't use bfd_map_over_sections.
583
584 2020-09-23 Tom Tromey <tom@tromey.com>
585
586 * compile/compile-object-run.c (struct do_module_cleanup): Add
587 parameters to constructor. Update destructor.
588 <source_file, scope, scope_data, out_value_type, out_value_addr,
589 munmap_list_head, objfile_name_string>: Remove.
590 <module>: New member.
591 (do_module_cleanup): Update.
592 (compile_object_run): Update.
593
594 2020-09-23 Tom Tromey <tom@tromey.com>
595
596 * compile/compile.c (eval_compile_command): Update.
597 * compile/compile-object-run.h (compile_object_run): Take a
598 compile_module_up.
599 * compile/compile-object-run.c (compile_object_run): Take a
600 compile_module_up.
601 * compile/compile-object-load.h (struct compile_module): Add
602 constructor, destructor.
603 (compile_module_up): New typedef.
604 (compile_object_load): Return compile_object_up.
605 * compile/compile-object-load.c (compile_object_load): Return
606 compile_module_up.
607
608 2020-09-23 Tom Tromey <tom@tromey.com>
609
610 * compile/compile-object-run.c (struct do_module_cleanup): Add
611 constructor, destructor.
612 <objfile_name_string>: Don't use struct hack.
613 (do_module_cleanup): Use delete.
614 (compile_object_run): Use new.
615
616 2020-09-23 Tom Tromey <tom@tromey.com>
617
618 * compile/compile-cplus-types.c
619 (compile_cplus_convert_struct_or_union): Use std::vector.
620 (compile_cplus_convert_func): Likewise.
621 * compile/compile-c-types.c (convert_func): Use std::vector.
622
623 2020-09-21 Tom Tromey <tromey@adacore.com>
624
625 * sparc-tdep.c (sparc32_skip_prologue): Use
626 skip_prologue_using_sal.
627
628 2020-09-19 Tom Tromey <tom@tromey.com>
629
630 * symfile.c (add_section_size_callback): Remove.
631 (load_one_section): Rename from load_section_callback. Change
632 parameters.
633 (generic_load): Use foreach.
634
635 2020-09-19 Tom Tromey <tom@tromey.com>
636
637 * exec.c (add_to_section_table): Remove.
638 (build_section_table): Use foreach.
639
640 2020-09-19 Tom Tromey <tom@tromey.com>
641
642 * elfread.c (elf_locate_sections): Change parameters.
643 (elf_symfile_read): Use foreach.
644
645 2020-09-19 Tom Tromey <tom@tromey.com>
646
647 * cli/cli-dump.c (struct callback_data): Remove.
648 (restore_one_section): Rename from restore_section_callback.
649 Change parameters.
650 (restore_binary_file): Change parameters.
651 (restore_command): Use foreach.
652
653 2020-09-19 Tom Tromey <tom@tromey.com>
654
655 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
656 (gcore_copy_callback): Likewise.
657 (gcore_memory_sections): Use foreach.
658
659 2020-09-19 Tom Tromey <tom@tromey.com>
660
661 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
662 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
663 parameters.
664 (generic_elf_osabi_sniffer): Use foreach.
665 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
666 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
667
668 2020-09-19 Tom Tromey <tom@tromey.com>
669
670 * dwarf2/read.c (locate_dwz_sections): Change parameters.
671 (dwarf2_get_dwz_file): Use foreach.
672 (dwarf2_locate_dwo_sections): Change parameters.
673 (open_and_init_dwo_file): Use foreach.
674 (dwarf2_locate_common_dwp_sections): Change parameters.
675 (open_and_init_dwp_file): Use foreach.
676
677 2020-09-19 Tom Tromey <tom@tromey.com>
678
679 * symfile.h: (find_lowest_section): Don't declare.
680 * symfile.c (find_lowest_section): Now static. Change
681 parameters.
682 (struct place_section_arg): Remove.
683 (place_section): Change parameters.
684 (addr_info_make_relative): Use foreach.
685 (symfile_dummy_outputs): Remove.
686 (default_symfile_relocate): Use foreach.
687
688 2020-09-19 Tom Tromey <tom@tromey.com>
689
690 * objfiles.c (add_to_objfile_sections): Rename from
691 add_to_objfile_sections_full.
692 (add_to_objfile_sections): Remove.
693 (build_objfile_section_table): Use foreach.
694
695 2020-09-19 Tom Tromey <tom@tromey.com>
696
697 * stap-probe.c (get_stap_base_address_1): Remove.
698 (get_stap_base_address): Use foreach.
699
700 2020-09-19 Tom Tromey <tom@tromey.com>
701
702 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
703 parameters.
704 (gdb_bfd_close_or_warn): Use foreach.
705
706 2020-09-19 Tom Tromey <tom@tromey.com>
707
708 * corelow.c (add_to_thread_list): Change parameters.
709 (core_target_open): Use foreach.
710
711 2020-09-19 Tom Tromey <tom@tromey.com>
712
713 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
714 existing function.
715
716 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
717
718 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
719 for arrays.
720
721 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
722
723 * eval.c: Remove 'f-lang.h' include.
724 (value_f90_subarray): Moved to f-lang.c.
725 (eval_call): Renamed to...
726 (evaluate_subexp_do_call): ...this, is no longer static, header
727 comment moved into header file.
728 (evaluate_funcall): Update call to eval_call.
729 (skip_undetermined_arglist): Moved to f-lang.c.
730 (fortran_value_subarray): Likewise.
731 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
732 moved to evaluate_subexp_f.
733 (calc_f77_array_dims): Moved to f-lang.c
734 * expprint.c (print_subexp_funcall): New function.
735 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
736 moved to print_subexp_f, OP_FUNCALL uses new function.
737 (dump_subexp_body_funcall): New function.
738 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
739 moved to dump_subexp_f, OP_FUNCALL uses new function.
740 * expression.h (evaluate_subexp_do_call): Declare.
741 * f-lang.c (value_f90_subarray): Moved from eval.c.
742 (skip_undetermined_arglist): Likewise.
743 (calc_f77_array_dims): Likewise.
744 (fortran_value_subarray): Likewise.
745 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
746 (operator_length_f): Likewise.
747 (print_subexp_f): Likewise.
748 (dump_subexp_body_f): Likewise.
749 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
750 declaration of this operation to here.
751 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
752 support moved to operator_length_f.
753 * parser-defs.h (dump_subexp_body_funcall): Declare.
754 (print_subexp_funcall): Declare.
755 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
756 fortran-operator.def.
757
758 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
759
760 * eval.c (fortran_value_subarray): New function, content is taken
761 from...
762 (evaluate_subexp_standard): ...here, in two places. Now arrays
763 and strings both call the new function.
764 (calc_f77_array_dims): Add header comment, handle strings.
765
766 2020-09-18 Victor Collod <vcollod@nvidia.com>
767
768 PR gdb/26635
769 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
770 (i386_analyze_prologue): Call i386_skip_endbr.
771
772 2020-09-18 Tom Tromey <tromey@adacore.com>
773
774 * windows-nat.c (struct windows_nat_target) <wait>: Update.
775 (windows_nat_target::wait): Update.
776 * target/wait.h (enum target_wait_flag): New. Use
777 DEF_ENUM_FLAGS_TYPE.
778 * target/target.h (target_wait): Change type of options.
779 * target.h (target_options_to_string, default_target_wait):
780 Update.
781 (struct target_ops) <wait>: Change type of options.
782 * target.c (target_wait, default_target_wait, do_option): Change
783 type of "options".
784 (target_options_to_string): Likewise.
785 * target-delegates.c: Rebuild.
786 * target-debug.h (target_debug_print_target_wait_flags): Rename
787 from target_debug_print_options.
788 * sol-thread.c (class sol_thread_target) <wait>: Update.
789 (sol_thread_target::wait): Update.
790 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
791 (rs6000_nat_target::wait): Update.
792 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
793 Update.
794 (remote_target::wait_ns, remote_target::wait_as): Change type of
795 "options".
796 (remote_target::wait): Update.
797 * remote-sim.c (struct gdbsim_target) <wait>: Update.
798 (gdbsim_target::wait): Update.
799 * record-full.c (class record_full_base_target) <wait>: Update.
800 (record_full_wait_1): Change type of "options".
801 (record_full_base_target::wait): Update.
802 * record-btrace.c (class record_btrace_target) <wait>: Update.
803 (record_btrace_target::wait): Update.
804 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
805 Update.
806 (ravenscar_thread_target::wait): Update.
807 * procfs.c (class procfs_target) <wait>: Update.
808 (procfs_target::wait): Update.
809 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
810 * obsd-nat.c (obsd_nat_target::wait): Update.
811 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
812 (nto_procfs_target::wait): Update.
813 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
814 * nbsd-nat.c (nbsd_wait): Change type of "options".
815 (nbsd_nat_target::wait): Update.
816 * linux-thread-db.c (class thread_db_target) <wait>: Update.
817 (thread_db_target::wait): Update.
818 * linux-nat.h (class linux_nat_target) <wait>: Update.
819 * linux-nat.c (linux_nat_target::wait): Update.
820 (linux_nat_wait_1): Update.
821 * infrun.c (do_target_wait_1, do_target_wait): Change type of
822 "options".
823 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
824 * inf-ptrace.c (inf_ptrace_target::wait): Update.
825 * go32-nat.c (struct go32_nat_target) <wait>: Update.
826 (go32_nat_target::wait): Update.
827 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
828 * gnu-nat.c (gnu_nat_target::wait): Update.
829 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
830 * fbsd-nat.c (fbsd_nat_target::wait): Update.
831 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
832 * darwin-nat.c (darwin_nat_target::wait): Update.
833 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
834 (bsd_uthread_target::wait): Update.
835 * aix-thread.c (class aix_thread_target) <wait>: Update.
836 (aix_thread_target::wait): Update.
837
838 2020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
839
840 * compile/compile-object-run.c (create_copied_type_recursive): New
841 function.
842 (compile_object_run): Use new function.
843
844 2020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
845
846 * NEWS: Mention x86_64 Cygwin core file support.
847
848 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
849
850 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
851 (core_process_module_section): Handle NOTE_INFO_MODULE64.
852
853 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
854
855 * windows-tdep.h: Add prototypes.
856 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
857 (i386_windows_core_pid_to_str): Move and rename ...
858 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
859 (windows_core_pid_to_str): ... and here.
860 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
861
862 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
863 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
864 (amd64_windows_init_abi_common): ... and register.
865
866 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
867
868 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
869 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
870
871 2020-09-18 Pedro Alves <pedro@palves.net>
872
873 PR gdb/26631
874 * thread.c (thread_find_command): Switch inferior before calling
875 target methods.
876
877 2020-09-17 Tom Tromey <tromey@adacore.com>
878
879 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
880 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
881 (tdesc_arch_data_up): New typedef.
882 (tdesc_use_registers, tdesc_data_alloc): Update.
883 (tdesc_data_cleanup): Don't declare.
884 * target-descriptions.c (tdesc_data_alloc): Return a
885 tdesc_arch_data_up.
886 (tdesc_arch_data_deleter::operator()): Rename from
887 tdesc_data_cleanup. Change argument type.
888 (tdesc_use_registers): Change early_data to an rvalue reference.
889 (tdesc_use_registers): Don't use delete.
890 * sparc-tdep.c (sparc32_gdbarch_init): Update.
891 * s390-tdep.c (s390_gdbarch_init): Update.
892 * rx-tdep.c (rx_gdbarch_init): Update.
893 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
894 * riscv-tdep.c (riscv_gdbarch_init): Update.
895 * or1k-tdep.c (or1k_gdbarch_init): Update.
896 * nios2-tdep.c (nios2_gdbarch_init): Update.
897 * nds32-tdep.c (nds32_gdbarch_init): Update.
898 * mips-tdep.c (mips_gdbarch_init): Update.
899 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
900 * m68k-tdep.c (m68k_gdbarch_init): Update.
901 * i386-tdep.c (i386_gdbarch_init): Update.
902 * arm-tdep.c (arm_gdbarch_init): Update.
903 * arc-tdep.c (arc_tdesc_init): Update.
904 (arc_gdbarch_init): Update.
905 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
906
907 2020-09-17 Hannes Domani <ssbssa@yahoo.de>
908
909 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
910 for WOW64 processes.
911
912 2020-09-17 Tom Tromey <tom@tromey.com>
913
914 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
915
916 2020-09-17 Tom Tromey <tom@tromey.com>
917
918 * value.c (preserve_values): Update.
919 * python/py-type.c (save_objfile_types): Update.
920 * guile/scm-type.c (save_objfile_types): Update.
921 * gdbtypes.h (create_copied_types_hash): Return htab_up.
922 * gdbtypes.c (create_copied_types_hash): Return htab_up.
923 * compile/compile-object-run.c (compile_object_run): Update.
924
925 2020-09-17 Tom Tromey <tom@tromey.com>
926
927 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
928 Remove.
929 <m_table>: Now htab_up.
930 * typeprint.c (typedef_hash_table::recursively_update)
931 (typedef_hash_table::add_template_parameters)
932 (typedef_hash_table::typedef_hash_table): Update.
933 (typedef_hash_table::~typedef_hash_table): Remove.
934 (typedef_hash_table::typedef_hash_table)
935 (typedef_hash_table::find_global_typedef)
936 (typedef_hash_table::find_typedef): Update.
937
938 2020-09-17 Tom Tromey <tom@tromey.com>
939
940 * target-descriptions.c (tdesc_use_registers): Use htab_up.
941
942 2020-09-17 Tom Tromey <tom@tromey.com>
943
944 * linespec.c (class decode_compound_collector)
945 <~decode_compound_collector>: Remove.
946 <m_unique_syms>: Now htab_up.
947 (decode_compound_collector::operator ()): Update.
948 (class symtab_collector) <~symtab_collector>: Remove.
949 <m_symtab_table>: Now htab_up.
950 (symtab_collector::operator ()): Update.
951
952 2020-09-17 Tom Tromey <tom@tromey.com>
953
954 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
955 (filename_seen_cache::clear): Update.
956 (~filename_seen_cache): Remove.
957 (filename_seen_cache::seen): Update.
958 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
959 htab_up.
960 <~filename_seen_cache>: Remove.
961 <traverse>: Update.
962
963 2020-09-17 Tom Tromey <tom@tromey.com>
964
965 * completer.c (completion_tracker::discard_completions)
966 (completion_tracker::~completion_tracker)
967 (completion_tracker::maybe_add_completion)
968 (completion_tracker::remove_completion)
969 (completion_tracker::recompute_lowest_common_denominator)
970 (completion_tracker::build_completion_result): Update.
971 * completer.h (class completion_tracker) <have_completions>:
972 Update.
973 <m_entries_hash>: Now htab_up.
974
975 2020-09-17 Tom Tromey <tom@tromey.com>
976
977 * breakpoint.c (ambiguous_names_p): Use htab_up.
978
979 2020-09-17 Tom Tromey <tom@tromey.com>
980
981 * auto-load.c (struct auto_load_pspace_info)
982 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
983 <loaded_script_files, loaded_script_texts>: Change type to
984 htab_up.
985 (~auto_load_pspace_info) Remove.
986 (init_loaded_scripts_info, maybe_add_script_file)
987 (maybe_add_script_text, auto_load_info_scripts): Update.
988
989 2020-09-17 Tom Tromey <tromey@adacore.com>
990
991 * c-exp.y (name_obstack): Now static.
992
993 2020-09-17 Chungyi Chi <demonic@csie.io>
994
995 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
996
997 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
998
999 * breakpoint.h (init_catchpoint): Change int parameter to bool.
1000 (add_solib_catchpoint): Likewise.
1001 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
1002 to bool.
1003 (add_solib_catchpoint): Change int parameter/variable to bool.
1004 (catch_load_or_unload): Likewise.
1005 (init_catchpoint): Likewise.
1006 (create_fork_vfork_event_catchpoint): Likewise.
1007 (catch_fork_command_1): Likewise.
1008 (catch_exec_command_1): Likewise.
1009
1010 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
1011
1012 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
1013 Change instance_flags to m_instance_flags.
1014
1015 2020-09-16 Tom Tromey <tromey@adacore.com>
1016
1017 PR gdb/26598:
1018 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
1019
1020 2020-09-16 John Baldwin <jhb@FreeBSD.org>
1021
1022 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
1023 PL_FLAG_EXEC.
1024 (fbsd_nat_target::insert_exec_catchpoint)
1025 (fbsd_nat_target::remove_exec_catchpoint): Always define.
1026 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
1027 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
1028
1029 2020-09-16 John Baldwin <jhb@FreeBSD.org>
1030
1031 * configure.ac: Remove check for kinfo_getvmmap().
1032 * configure, config.in: Regenerate.
1033 * fbsd-nat.c (fbsd_read_mapping): Remove
1034 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
1035 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
1036 kinfo_get_vmmap() are always present.
1037
1038 2020-09-16 John Baldwin <jhb@FreeBSD.org>
1039
1040 * fbsd-nat.c: Always include support for
1041 TARGET_OBJECT_SIGNAL_INFO.
1042
1043 2020-09-16 John Baldwin <jhb@FreeBSD.org>
1044
1045 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
1046 sysctl and remove procfs fallback.
1047
1048 2020-09-16 John Baldwin <jhb@FreeBSD.org>
1049
1050 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
1051 * fbsd-nat.h: Likewise.
1052
1053 2020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1054
1055 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
1056 argument.
1057
1058 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1059
1060 * ada-lang.c (ada_language_data): Delete.
1061 (ada_language): Remove references to ada_language_data.
1062 * c-lang.c (c_language_data): Delete.
1063 (c_language): Remove references to c_language_data.
1064 (cplus_language_data): Delete.
1065 (cplus_language): Remove references to cplus_language_data.
1066 (asm_language_data): Delete.
1067 (asm_language): Remove references to asm_language_data.
1068 (minimal_language_data): Delete.
1069 (minimal_language): Remove references to minimal_language_data.
1070 * d-lang.c (d_language_data): Delete.
1071 (d_language): Remove references to d_language_data.
1072 * f-lang.c (f_language_data): Delete.
1073 (f_language): Remove references to f_language_data.
1074 * go-lang.c (go_language_data): Delete.
1075 (go_language): Remove references to go_language_data.
1076 * language.c (unknown_language_data): Delete.
1077 (unknown_language): Remove references to unknown_language_data.
1078 (auto_language_data): Delete.
1079 (auto_language): Remove references to auto_language_data.
1080 * language.h (language_data): Delete struct.
1081 (language_defn): No longer inherit from language_data.
1082 * m2-lang.c (m2_language_data): Delete.
1083 (m2_language): Remove references to m2_language_data.
1084 * objc-lang.c (objc_language_data): Delete.
1085 (objc_language): Remove references to objc_language_data.
1086 * opencl-lang.c (opencl_language_data): Delete.
1087 (opencl_language): Remove references to opencl_language_data.
1088 * p-lang.c (pascal_language_data): Delete.
1089 (pascal_language): Remove references to pascal_language_data.
1090 * rust-lang.c (rust_language_data): Delete.
1091 (rust_language): Remove references to rust_language_data.
1092
1093 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1094
1095 * ada-lang.c (ada_language_data): Remove la_op_print_tab
1096 initializer.
1097 (ada_language::opcode_print_table): New member function.
1098 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
1099 (c_language::opcode_print_table): New member function.
1100 (cplus_language_data): Remove la_op_print_tab initializer.
1101 (cplus_language::opcode_print_table): New member function.
1102 (asm_language_data): Remove la_op_print_tab initializer.
1103 (asm_language::opcode_print_table): New member function.
1104 (minimal_language_data): Remove la_op_print_tab initializer.
1105 (minimal_language::opcode_print_table): New member function.
1106 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
1107 (d_language::opcode_print_table): New member function.
1108 * expprint.c (print_subexp_standard): Update call to
1109 opcode_print_table.
1110 (op_string): Likewise.
1111 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
1112 (f_language::opcode_print_table): New member function.
1113 * go-lang.c (go_language_data): Remove la_op_print_tab
1114 initializer.
1115 (go_language::opcode_print_table): New member function.
1116 * language.c (unknown_language_data): Remove la_op_print_tab
1117 initializer.
1118 (unknown_language::opcode_print_table): New member function.
1119 (auto_language_data): Remove la_op_print_tab initializer.
1120 (auto_language::opcode_print_table): New member function.
1121 * language.h (language_data): Remove la_op_print_tab field.
1122 (language_defn::opcode_print_table): Declare new member function.
1123 * m2-lang.c (m2_language_data): Remove la_op_print_tab
1124 initializer.
1125 (m2_language::opcode_print_table): New member function.
1126 * objc-lang.c (objc_language_data): Remove la_op_print_tab
1127 initializer.
1128 (objc_language::opcode_print_table): New member function.
1129 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
1130 initializer.
1131 (opencl_language::opcode_print_table): New member function.
1132 * p-lang.c (pascal_language_data): Remove la_op_print_tab
1133 initializer.
1134 (pascal_language::opcode_print_table): New member function.
1135 * rust-lang.c (rust_language_data): Remove la_op_print_tab
1136 initializer.
1137 (rust_language::opcode_print_table): New member function.
1138
1139 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1140
1141 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
1142 (ada_language::expression_ops): New member function.
1143 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
1144 (c_language::expression_ops): New member function.
1145 (cplus_language_data): Remove la_exp_desc initializer.
1146 (cplus_language::expression_ops): New member function.
1147 (asm_language_data): Remove la_exp_desc initializer.
1148 (asm_language::expression_ops): New member function.
1149 (minimal_language_data): Remove la_exp_desc initializer.
1150 (minimal_language::expression_ops): New member function.
1151 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
1152 (d_language::expression_ops): New member function.
1153 * eval.c (evaluate_subexp): Update call to expression_ops.
1154 * expprint.c (print_subexp): Likewise.
1155 (op_name): Likewise.
1156 (dump_subexp_body): Likewise.
1157 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
1158 (f_language::expression_ops): New member function.
1159 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
1160 (go_language::expression_ops): New member function.
1161 * language.c (language_defn::expression_ops): New function.
1162 (unknown_language_data): Remove la_exp_desc initializer.
1163 (auto_language_data): Likewise.
1164 * language.h (language_data): Remove la_exp_desc field.
1165 (language_defn::expression_ops): Declare new member function.
1166 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
1167 (m2_language::expression_ops): New member function.
1168 * objc-lang.c (objc_language_data): Remove la_exp_desc
1169 initializer.
1170 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
1171 initializer.
1172 (opencl_language::expression_ops): New member function.
1173 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
1174 * parse.c (operator_length): Update call to expression_ops.
1175 (exp_iterate): Likewise.
1176 * rust-lang.c (rust_language_data): Remove la_exp_desc
1177 initializer.
1178 (ruse_language::expression_ops): New member function.
1179
1180 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1181
1182 * ada-lang.c (ada_language_data): Remove la_varobj_ops
1183 initializer.
1184 (ada_language::varobj_ops): New member function.
1185 * c-lang.c (c_language_data): Remove la_varobj_ops
1186 initializer.
1187 (cplus_language_data): Likewise.
1188 (cplus_language::varobj_ops): New member function.
1189 (asm_language_data): Remove la_varobj_ops initializer.
1190 (minimal_language_data): Likewise.
1191 * d-lang.c (d_language_data): Likewise.
1192 * f-lang.c (f_language_data): Likewise.
1193 * go-lang.c (go_language_data): Likewise.
1194 * language.c (language_defn::varobj_ops): New function.
1195 (unknown_language_data): Remove la_varobj_ops
1196 initializer.
1197 (auto_language_data): Likewise.
1198 * language.h (language_data): Remove la_varobj_ops field.
1199 (language_defn::varobj_ops): Declare new member function.
1200 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
1201 * objc-lang.c (objc_language_data): Likewise.
1202 * opencl-lang.c (opencl_language_data): Likewise.
1203 * p-lang.c (pascal_language_data): Likewise.
1204 * rust-lang.c (rust_language_data): Likewise.
1205 * varobj.c (varobj_create): Update call to varobj_ops.
1206 * varobj.h (default_varobj_ops): Delete define.
1207
1208 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1209
1210 * ada-lang.c (ada_language_data): Remove la_macro_expansion
1211 initializer.
1212 * c-lang.c (c_language_data): Likewise.
1213 (c_language::macro_expansion): New member function.
1214 (cplus_language_data): Likewise.
1215 (cplus_language::macro_expansion): New member function.
1216 (asm_language_data): Likewise.
1217 (asm_language::macro_expansion): New member function.
1218 (minimal_language_data): Likewise.
1219 (minimal_language::macro_expansion): New member function.
1220 * d-lang.c (d_language_data): Remove la_macro_expansion
1221 initializer.
1222 * f-lang.c (f_language_data): Likewise.
1223 * go-lang.c (go_language_data): Likewise.
1224 * language.c (unknown_language_data): Likewise.
1225 (auto_language_data): Likewise.
1226 * language.h (language_data): Remove la_macro_expansion field.
1227 (language_defn::macro_expansion): New member function.
1228 * m2-lang.c (m2_language_data): Remove la_macro_expansion
1229 initializer.
1230 * objc-lang.c (objc_language_data): Likewise.
1231 (objc_language::macro_expansion): New member function.
1232 * opencl-lang.c (opencl_language_data): Likewise.
1233 (opencl_language::macro_expansion): New member function.
1234 * p-lang.c (pascal_language_data): Remove la_macro_expansion
1235 initializer.
1236 * rust-lang.c (rust_language_data): Likewise.
1237 * symtab.c (default_collect_symbol_completion_matches_break_on):
1238 Update call to macro_expansion.
1239
1240 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1241
1242 * ada-lang.c (ada_language_data): Remove la_array_ordering
1243 initializer.
1244 * c-lang.c (c_language_data): Likewise.
1245 (cplus_language_data): Likewise.
1246 (asm_language_data): Likewise.
1247 (minimal_language_data): Likewise.
1248 * d-lang.c (d_language_data): Likewise.
1249 * dwarf2/read.c (read_array_order): Update for call to
1250 array_ordering.
1251 * f-lang.c (f_language_data): Remove la_array_ordering
1252 initializer.
1253 (f_language::array_ordering): New member function.
1254 * go-lang.c (go_language_data): Remove la_array_ordering
1255 initializer.
1256 * language.c (unknown_language_data): Likewise.
1257 (auto_language_data): Likewise.
1258 * language.h (language_data): Delete la_array_ordering field.
1259 (language_defn::array_ordering): New member function.
1260 * m2-lang.c (m2_language_data): Remove la_array_ordering
1261 initializer.
1262 * objc-lang.c (objc_language_data): Likewise.
1263 * opencl-lang.c (opencl_language_data): Likewise.
1264 * p-lang.c (pascal_language_data): Likewise.
1265 * rust-lang.c (rust_language_data): Likewise.
1266
1267 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1268
1269 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
1270 initializer.
1271 * c-lang.c (c_language_data): Likewise.
1272 (cplus_language_data): Likewise.
1273 (asm_language_data): Likewise.
1274 (minimal_language_data): Likewise.
1275 * d-lang.c (d_language_data): Likewise.
1276 * f-lang.c (f_language_data): Likewise.
1277 (f_language::case_sensitivity): New member function.
1278 * go-lang.c (go_language_data): Remove la_case_sensitivity
1279 initializer.
1280 * language.c (enum case_mode): Moved here from language.h.
1281 (case_mode): Make static.
1282 (show_case_command): Update for case_sensitivity being a method.
1283 (set_case_command): Likewise.
1284 (set_range_case): Likewise.
1285 (unknown_language_data): Remove la_case_sensitivity initializer.
1286 (auto_language_data): Likewise.
1287 * language.h (case_mode): Delete, move enum declaration to
1288 language.c.
1289 (language_data): Delete la_case_sensitivity field.
1290 (language_defn::case_sensitivity): New member function.
1291 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
1292 initializer.
1293 * objc-lang.c (objc_language_data): Likewise.
1294 * opencl-lang.c (opencl_language_data): Likewise.
1295 * p-lang.c (pascal_language_data): Likewise.
1296 * rust-lang.c (rust_language_data): Likewise.
1297
1298 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1299
1300 * ada-lang.c (ada_language_data): Remove la_range_check
1301 initializer.
1302 * c-lang.c (c_language_data): Likewise.
1303 (cplus_language_data): Likewise.
1304 (asm_language_data): Likewise.
1305 (minimal_language_data): Likewise.
1306 * d-lang.c (d_language_data): Likewise.
1307 * f-lang.c (f_language_data): Likewise.
1308 (f_language::range_checking_on_by_default): New member function.
1309 * go-lang.c (go_language_data): Remove la_range_check initializer.
1310 * language.c (enum range_mode): Moved here from language.h.
1311 (range_mode): Made static.
1312 (show_range_command): Update to use
1313 range_checking_on_by_default.
1314 (set_range_command): Likewise.
1315 (set_range_case): Likewise.
1316 (unknown_language_data): Remove la_range_check initializer.
1317 (auto_language_data): Likewise.
1318 * language.h (range_mode): Delete. Enum definition moved to
1319 language.c.
1320 (language_data): Remove la_range_check field.
1321 (language_defn::range_checking_on_by_default): New member
1322 function.
1323 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
1324 (m2_language::range_checking_on_by_default): New member function.
1325 * objc-lang.c (objc_language_data): Remove la_range_check
1326 initializer.
1327 * opencl-lang.c (opencl_language_data): Likewise.
1328 * p-lang.c (pascal_language_data): Likewise.
1329 (pascal_language::range_checking_on_by_default): New member
1330 function.
1331 * rust-lang.c (rust_language_data): Remove la_range_check
1332 initializer.
1333 (rust_language::range_checking_on_by_default): New member
1334 function.
1335
1336 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1337
1338 * dwarf2/read.c (dwarf2_physname): Remove special case for
1339 language_go.
1340 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
1341 member function.
1342
1343 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1344
1345 * ada-lang.c (ada_language_data): Remove
1346 la_store_sym_names_in_linkage_form_p initializer.
1347 (ada_language::store_sym_names_in_linkage_form_p): New member
1348 function.
1349 * c-lang.c (c_language_data): Remove
1350 la_store_sym_names_in_linkage_form_p initializer.
1351 (c_language::store_sym_names_in_linkage_form_p): New member
1352 function.
1353 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
1354 initializer.
1355 (asm_language_data): Likewise.
1356 (asm_language::store_sym_names_in_linkage_form_p): New member
1357 function.
1358 (minimal_language_data): Remove
1359 la_store_sym_names_in_linkage_form_p initializer.
1360 (minimal_language::store_sym_names_in_linkage_form_p): New member
1361 function.
1362 * d-lang.c (d_language_data): Remove
1363 la_store_sym_names_in_linkage_form_p initializer.
1364 * dwarf2/read.c (dwarf2_physname): Update call to
1365 store_sym_names_in_linkage_form_p.
1366 * f-lang.c (f_language_data): Remove
1367 la_store_sym_names_in_linkage_form_p initializer.
1368 * go-lang.c (go_language_data): Remove
1369 la_store_sym_names_in_linkage_form_p initializer.
1370 * language.c (unknown_language_data): Remove
1371 la_store_sym_names_in_linkage_form_p initializer.
1372 (unknown_language::store_sym_names_in_linkage_form_p): New member
1373 function.
1374 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
1375 initializer.
1376 (auto_language::store_sym_names_in_linkage_form_p): New member
1377 function.
1378 * language.h (language_data): Remove
1379 la_store_sym_names_in_linkage_form_p member variable.
1380 (language_defn::store_sym_names_in_linkage_form_p): New member
1381 function.
1382 * m2-lang.c (m2_language_data): Remove
1383 la_store_sym_names_in_linkage_form_p initializer.
1384 * objc-lang.c (objc_language_data): Likewise.
1385 * opencl-lang.c (opencl_language_data): Likewise.
1386 * p-lang.c (pascal_language_data): Likewise.
1387 * rust-lang.c (rust_language_data): Likewise.
1388
1389 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1390
1391 * ada-lang.c (ada_language_data): Remove string_lower_bound
1392 initializer.
1393 * c-lang.c (c_language_data): Likewise.
1394 (cplus_language_data): Likewise.
1395 (asm_language_data): Likewise.
1396 (minimal_language_data): Likewise.
1397 * d-lang.c (d_language_data): Likewise.
1398 * f-lang.c (f_language_data): Likewise.
1399 * go-lang.c (go_language_data): Likewise.
1400 * language.c (unknown_language_data): Likewise.
1401 (auto_language_data): Likewise.
1402 * language.h (language_data): Remove string_lower_bound field.
1403 (language_defn::string_lower_bound): New member function.
1404 * m2-lang.c (m2_language_data): Remove string_lower_bound
1405 initializer.
1406 (m2_language::string_lower_bound): New member function.
1407 * objc-lang.c (objc_language_data): Remove string_lower_bound
1408 initializer.
1409 * opencl-lang.c (opencl_language_data): Likewise.
1410 * p-lang.c (pascal_language_data): Likewise.
1411 * rust-lang.c (rust_language_data): Likewise.
1412 * valops.c (value_cstring): Update call to string_lower_bound.
1413 (value_string): Likewise.
1414 * value.c (allocate_repeated_value): Likewise.
1415
1416 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1417
1418 * valops.c (value_repeat): Fix incorrect argument name in comment.
1419
1420 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1421
1422 * ada-lang.c (ada_language_data): Remove c_style_arrays
1423 initializer.
1424 (ada_language::c_style_arrays_p): New member fuction.
1425 * c-lang.c (c_language_data): Remove c_style_arrays
1426 initializer.
1427 (cplus_language_data): Likewise.
1428 (asm_language_data): Likewise.
1429 (minimal_language_data): Likewise.
1430 * d-lang.c (d_language_data): Likewise.
1431 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
1432 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
1433 (f_language::c_style_arrays_p): New member function.
1434 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
1435 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
1436 * language.c (unknown_language_data): Remove c_style_arrays
1437 initializer.
1438 (auto_language_data): Likewise.
1439 * language.h (language_data): Remove c_style_arrays field.
1440 (language_defn::c_style_arrays_p): New member function.
1441 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
1442 (m2_language::c_style_arrays_p): New member function.
1443 * objc-lang.c (objc_language_data): Remove c_style_arrays
1444 initializer.
1445 * opencl-lang.c (opencl_language_data): Likewise.
1446 * p-lang.c (pascal_language_data): Likewise.
1447 * rust-lang.c (rust_language_data): Likewise.
1448 * valarith.c (value_subscript): Update call to c_style_arrays_p,
1449 and update local variable to a bool.
1450 * valops.c (value_cast): Update call to c_style_arrays_p.
1451 (value_array): Likewise.
1452 * value.c (coerce_array): Likewise.
1453
1454 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1455
1456 * ada-lang.c (ada_language_data): Remove la_language initializer.
1457 * c-lang.c (c_language_data): Likewise.
1458 (cplus_language_data): Likewise.
1459 (asm_language_data): Likewise.
1460 (minimal_language_data): Likewise.
1461 * d-lang.c (d_language_data): Likewise.
1462 * f-lang.c (f_language_data): Likewise.
1463 * go-lang.c (go_language_data): Likewise.
1464 * language.c (unknown_language_data): Likewise.
1465 (auto_language_data): Likewise.
1466 * language.h (language_data): Remove la_language field.
1467 (language_defn::language_defn): Initialise la_language field.
1468 (language_defn::la_language): New member variable.
1469 * m2-lang.c (m2_language_data): Remove la_language field.
1470 * objc-lang.c (objc_language_data): Likewise.
1471 * opencl-lang.c (opencl_language_data): Likewise.
1472 * p-lang.c (pascal_language_data): Likewise.
1473 * rust-lang.c (rust_language_data): Likewise.
1474
1475 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1476
1477 * ada-lang.c (ada_extensions): Delete, moved into
1478 ada_language::filename_extensions.
1479 (ada_language_data): Remove la_filename_extensions initializer.
1480 (ada_language::filename_extensions): New member function.
1481 * c-lang.c (c_extensions): Delete, moved into
1482 c_language::filename_extensions.
1483 (c_language_data): Remove la_filename_extensions initializer.
1484 (c_language::filename_extensions): New member function.
1485 (cplus_extensions): Delete, moved into
1486 cplus_language::filename_extensions.
1487 (cplus_language_data): Remove la_filename_extensions initializer.
1488 (cplus_language::filename_extensions): New member function.
1489 (asm_extensions): Delete, moved into
1490 asm_language::filename_extensions.
1491 (asm_language_data): Remove la_filename_extensions initializer.
1492 (asm_language::filename_extensions): New member function.
1493 (minimal_language_data): Remove la_filename_extensions
1494 initializer.
1495 * d-lang.c (d_extensions): Delete, moved into
1496 d_language::filename_extensions.
1497 (d_language_data): Remove la_filename_extensions initializer.
1498 (d_language::filename_extensions): New member function.
1499 * f-lang.c (f_extensions): Delete, moved into
1500 f_language::filename_extensions.
1501 (f_language_data): Remove la_filename_extensions initializer.
1502 (f_language::filename_extensions): New member function.
1503 * go-lang.c (go_language_data): Remove la_filename_extensions
1504 initializer.
1505 * language.c (add_set_language_command): Update now that
1506 filename_extensions returns a vector.
1507 (unknown_language_data): Remove la_filename_extensions
1508 initializer.
1509 (auto_language_data): Likewise.
1510 * language.h (language_data): Remove la_filename_extensions field.
1511 (language_defn::filename_extensions): New member function.
1512 * m2-lang.c (m2_language_data): Remove la_filename_extensions
1513 initializer.
1514 * objc-lang.c (objc_extensions): Delete, moved into
1515 objc_language::filename_extensions.
1516 (objc_language_data): Remove la_filename_extensions initializer.
1517 (objc_language::filename_extensions): New member function.
1518 * opencl-lang.c (opencl_language_data): Remove
1519 la_filename_extensions initializer.
1520 * p-lang.c (pascal_extensions): Delete, moved into
1521 pascal_language::filename_extensions.
1522 (pascal_language_data): Remove la_filename_extensions initializer.
1523 (pascal_language::filename_extensions): New member function.
1524 * rust-lang.c (rust_extensions): Delete, moved into
1525 rust_language::filename_extensions.
1526 (rust_language_data): Remove la_filename_extensions initializer.
1527 (rust_language::filename_extensions): New member function.
1528 * symfile.c (add_filename_language): Add new assert.
1529
1530 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1531
1532 * ada-lang.c (ada_language_data): Remove la_name and
1533 la_natural_name initializers.
1534 (ada_language::name): New member function.
1535 (ada_language::natural_name): New member function.
1536 * c-lang.c (c_language_data): Remove la_name and
1537 la_natural_name initializers.
1538 (c_language::name): New member function.
1539 (c_language::natural_name): New member function.
1540 (cplus_language_data): Remove la_name and
1541 la_natural_name initializers.
1542 (cplus_language::name): New member function.
1543 (cplus_language::natural_name): New member function.
1544 (asm_language_data): Remove la_name and
1545 la_natural_name initializers.
1546 (asm_language::name): New member function.
1547 (asm_language::natural_name): New member function.
1548 (minimal_language_data): Remove la_name and
1549 la_natural_name initializers.
1550 (minimal_language::name): New member function.
1551 (minimal_language::natural_name): New member function.
1552 * compile/compile.c (compile_to_object): Update call to
1553 lanugage_defn::name.
1554 * d-lang.c (d_language_data): Remove la_name and
1555 la_natural_name initializers.
1556 (d_language::name): New member function.
1557 (d_language::natural_name): New member function.
1558 * expprint.c (print_subexp_standard): Update call to
1559 language_defn::name.
1560 (dump_raw_expression): Likewise
1561 (dump_prefix_expression): Likewise.
1562 * f-lang.c (f_language_data): Remove la_name and
1563 la_natural_name initializers.
1564 (f_language::name): New member function.
1565 (f_language::natural_name): New member function.
1566 * go-lang.c (go_language_data): Remove la_name and
1567 la_natural_name initializers.
1568 (go_language::name): New member function.
1569 (go_language::natural_name): New member function.
1570 * language.c (show_language_command): Update call to
1571 language_defn::name.
1572 (set_language_command): Likewise.
1573 (language_enum): Likewise.
1574 (language_str): Likewise.
1575 (add_set_language_command): Likewise, use
1576 language_defn::natural_name in the doc string.
1577 (unknown_language_data): Remove la_name and
1578 la_natural_name initializers.
1579 (unknown_language::name): New member function.
1580 (unknown_language::natural_name): New member function.
1581 (auto_language_data): Remove la_name and
1582 la_natural_name initializers.
1583 (auto_language::name): New member function.
1584 (auto_language::natural_name): New member function.
1585 (language_lookup_primitive_type_as_symbol): Update call to
1586 language_defn::name.
1587 * language.h (language_data): Remove la_name and la_natural_name
1588 member variables.
1589 (language_defn::name): New member function.
1590 (language_defn::natural_name): New member function.
1591 * m2-lang.c (m2_language_data): Remove la_name and
1592 la_natural_name initializers.
1593 (m2_language::name): New member function.
1594 (m2_language::natural_name): New member function.
1595 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
1596 language_defn::natural_name.
1597 * objc-lang.c (objc_language_data): Remove la_name and
1598 la_natural_name initializers.
1599 (objc_language::name): New member function.
1600 (objc_language::natural_name): New member function.
1601 * opencl-lang.c (opencl_language_data): Remove la_name and
1602 la_natural_name initializers.
1603 (opencl_language::name): New member function.
1604 (opencl_language::natural_name): New member function.
1605 * p-lang.c (pascal_language_data): Remove la_name and
1606 la_natural_name initializers.
1607 (pascal_language::name): New member function.
1608 (pascal_language::natural_name): New member function.
1609 * rust-lang.c (rust_language_data): Remove la_name and
1610 la_natural_name initializers.
1611 (rust_language::name): New member function.
1612 (rust_language::natural_name): New member function.
1613 * symtab.c (lookup_language_this): Update call to
1614 language_defn::name.
1615
1616 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1617
1618 * ada-lang.c (ada_language_data): Remove la_name_of_this
1619 initializer.
1620 * ax-gdb.c (gen_expr): Update call to name_of_this.
1621 * c-exp.y (classify_name): Likewise.
1622 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
1623 (cplus_language_data): Likewise.
1624 (cplus_language::name_of_this): New member function.
1625 (asm_language_data): Remove la_name_of_this initializer.
1626 (minimal_language_data): Likewise.
1627 * d-lang.c (d_language_data): Likewise.
1628 (d_language::name_of_this): New member function.
1629 * expprint.c (print_subexp_standard): Update call to name_of_this.
1630 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
1631 * go-lang.c (go_language_data): Likewise.
1632 * language.c (unknown_language_data): Likewise.
1633 (unknown_language::name_of_this): New member function.
1634 (auto_language_data): Remove la_name_of_this initializer.
1635 (auto_language::name_of_this): New member function.
1636 * language.h (language_data): Delete la_name_of_this member
1637 variable.
1638 (language_defn::name_of_this): New member function.
1639 * m2-lang.c (m2_language_data): Remove la_name_of_this
1640 initializer.
1641 * objc-lang.c (objc_language_data): Likewise.
1642 (objc_language::name_of_this): New member function.
1643 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
1644 initializer.
1645 * p-lang.c (pascal_language_data): Likewise.
1646 (pascal_language::name_of_this): New member function.
1647 * rust-lang.c (rust_language_data): Remove la_name_of_this
1648 initializer.
1649 * symtab.c (lookup_language_this): Update call to name_of_this.
1650 (lookup_symbol_aux): Likewise.
1651 * valops.c (value_of_this): Likewise.
1652
1653 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1654
1655 * ada-lang.c (ada_language_data): Remove
1656 la_struct_too_deep_ellipsis initializer.
1657 (ada_language::struct_too_deep_ellipsis): New member function.
1658 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
1659 initializer.
1660 (cplus_language_data): Likewise.
1661 (asm_language_data): Likewise.
1662 (minimal_language_data): Likewise.
1663 * cp-valprint.c (cp_print_value): Update call to
1664 struct_too_deep_ellipsis.
1665 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
1666 initializer.
1667 * f-lang.c (f_language_data): Likewise.
1668 (f_language::struct_too_deep_ellipsis): New member function.
1669 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
1670 initializer.
1671 * language.c (unknown_language_data): Likewise.
1672 (auto_language_data): Likewise.
1673 * language.h (language_data): Delete la_struct_too_deep_ellipsis
1674 member variable.
1675 (language_defn::struct_too_deep_ellipsis): New member function.
1676 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
1677 initializer.Q
1678 * objc-lang.c (objc_language_data): Likewise.
1679 * opencl-lang.c (opencl_language_data): Likewise.
1680 * p-lang.c (pascal_language_data): Likewise.
1681 * rust-lang.c (rust_language_data): Likewise.
1682 * valprint.c (val_print_check_max_depth): Update call to
1683 struct_too_deep_ellipsis.
1684
1685 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
1686
1687 * MAINTAINERS (Write After Approval): Add myself.
1688
1689 2020-09-15 Tom Tromey <tom@tromey.com>
1690
1691 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
1692 Remove.
1693
1694 2020-09-15 Tom Tromey <tom@tromey.com>
1695
1696 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
1697 and TYPE_CODE_METHODPTR cases.
1698 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
1699 (c_value_print_inner): Update.
1700 * valprint.c (generic_value_print_memberptr): New function, from
1701 c_value_print_memberptr.
1702 (generic_value_print): Use it. Call cplus_print_method_ptr.
1703
1704 2020-09-15 Tom Tromey <tromey@adacore.com>
1705
1706 * python/python-internal.h (PyInt_FromLong): Remove define.
1707 * python/py-value.c (convert_value_from_python): Use
1708 gdb_py_object_from_longest.
1709 * python/py-type.c (typy_get_code): Use
1710 gdb_py_object_from_longest.
1711 * python/py-symtab.c (salpy_get_line): Use
1712 gdb_py_object_from_longest.
1713 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
1714 gdb_py_object_from_longest.
1715 * python/py-record.c (recpy_gap_reason_code): Use
1716 gdb_py_object_from_longest.
1717 * python/py-record-btrace.c (recpy_bt_insn_size)
1718 (recpy_bt_func_level, btpy_list_count): Use
1719 gdb_py_object_from_longest.
1720 * python/py-infthread.c (gdbpy_create_ptid_object): Use
1721 gdb_py_object_from_longest. Fix error handling.
1722 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
1723 gdb_py_object_from_longest.
1724 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
1725 gdb_py_object_from_longest.
1726 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
1727 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
1728 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
1729
1730 2020-09-15 Tom Tromey <tromey@adacore.com>
1731
1732 * python/python.c (gdbpy_parameter_value): Use
1733 gdb_py_object_from_ulongest.
1734
1735 2020-09-15 Tom Tromey <tromey@adacore.com>
1736
1737 * python/py-infevents.c (create_register_changed_event_object):
1738 Use gdb_py_object_from_longest.
1739 * python/py-exitedevent.c (create_exited_event_object): Use
1740 gdb_py_object_from_longest.
1741
1742 2020-09-15 Tom Tromey <tromey@adacore.com>
1743
1744 * python/python.c (gdbpy_parameter_value): Use
1745 gdb_py_object_from_longest.
1746 * python/py-type.c (convert_field, typy_range): Use
1747 gdb_py_object_from_longest.
1748 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
1749 gdb_py_object_from_longest.
1750 * python/py-lazy-string.c (stpy_get_length): Use
1751 gdb_py_object_from_longest.
1752 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
1753 gdb_py_object_from_longest.
1754 * python/py-infevents.c (create_memory_changed_event_object): Use
1755 gdb_py_object_from_longest.
1756 * python/py-inferior.c (infpy_get_num): Use
1757 gdb_py_object_from_longest.
1758 (infpy_get_pid): Likewise.
1759
1760 2020-09-15 Tom Tromey <tromey@adacore.com>
1761
1762 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
1763 defines.
1764 * python/py-value.c (valpy_long): Use
1765 gdb_py_object_from_ulongest.
1766 * python/py-symtab.c (salpy_get_pc): Use
1767 gdb_py_object_from_ulongest.
1768 (salpy_get_last): Likewise.
1769 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
1770 gdb_py_object_from_ulongest.
1771 * python/py-lazy-string.c (stpy_get_address): Use
1772 gdb_py_object_from_ulongest.
1773 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
1774 * python/py-arch.c (archpy_disassemble): Use
1775 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
1776 error handling.
1777
1778 2020-09-15 Tom Tromey <tromey@adacore.com>
1779
1780 * python/python-internal.h (gdb_py_long_from_longest): Remove
1781 defines.
1782 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
1783 * python/py-type.c (convert_field, typy_get_sizeof): Use
1784 gdb_py_object_from_longest.
1785 * python/py-record-btrace.c (btpy_list_index): Use
1786 gdb_py_object_from_longest.
1787
1788 2020-09-15 Tom Tromey <tromey@adacore.com>
1789
1790 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
1791 * python/py-record.c (recpy_element_number): Use
1792 gdb_py_object_from_longest.
1793 (recpy_gap_number): Likewise.
1794
1795 2020-09-15 Tom Tromey <tromey@adacore.com>
1796
1797 * top.c (ui::ui): Update.
1798 (highest_ui_num): Remove.
1799 * top.h (struct ui) <num>: Remove.
1800
1801 2020-09-15 Tom Tromey <tromey@adacore.com>
1802
1803 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
1804 * ui-style.c (ansi_regex_text): Now array.
1805 * rust-exp.y (number_regex_text): Now array.
1806 * linespec.c (linespec_quote_characters): Now array.
1807 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
1808 Now arrays.
1809
1810 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1811
1812 * debuginfod-support.c (debuginfod_client_deleter): New.
1813 (debuginfod_client_up): New.
1814 (debuginfod_init): Return debuginfod_client_up.
1815 (debuginfod_source_query): Adjust.
1816 (debuginfod_debuginfo_query): Adjust.
1817
1818 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1819
1820 * debuginfod-support.c (debuginfod_source_query): Use
1821 make_unique_xstrdup.
1822
1823 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1824
1825 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
1826 with `type::instance_flags`.
1827
1828 2020-09-14 Michael Mullin <masmullin@gmail.com>
1829
1830 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
1831 Remove baton parameter.
1832
1833 2020-09-14 Pedro Alves <pedro@palves.net>
1834
1835 * Makefile.in (SELFTESTS_SRCS): Add
1836 unittests/enum-flags-selftests.c.
1837 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
1838 btrace_function_flags instead of enum btrace_function_flag.
1839 * compile/compile-c-types.c (convert_qualified): Use
1840 enum_flags::raw.
1841 * compile/compile-cplus-symbols.c (convert_one_symbol)
1842 (convert_symbol_bmsym):
1843 * compile/compile-cplus-types.c (compile_cplus_convert_method)
1844 (compile_cplus_convert_struct_or_union_methods)
1845 (compile_cplus_instance::convert_qualified_base):
1846 * go-exp.y (parse_string_or_char): Add cast to int.
1847 * unittests/enum-flags-selftests.c: New file.
1848 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
1849 type to btrace_thread_flags from btrace_thread_flag.
1850 (record_btrace_cancel_resume, record_btrace_step_thread): Change
1851 local's type to btrace_thread_flags from btrace_thread_flag. Add
1852 cast in DEBUG call.
1853
1854 2020-09-14 Pedro Alves <pedro@palves.net>
1855
1856 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
1857 * gdbtypes.c (address_space_name_to_int): Rename to ...
1858 (address_space_name_to_type_instance_flags): ... this.
1859 (address_space_int_to_name): Rename to ...
1860 (address_space_type_instance_flags_to_name): ... this.
1861 * gdbtypes.h (address_space_name_to_int): Rename to ...
1862 (address_space_name_to_type_instance_flags): ... this.
1863 (address_space_int_to_name): Rename to ...
1864 (address_space_type_instance_flags_to_name): ... this.
1865 * type-stack.c (type_stack::insert): Adjust to rename.
1866 * type-stack.h (type_stack::insert): Likewise.
1867
1868 2020-09-14 Pedro Alves <pedro@palves.net>
1869 Andrew Burgess <andrew.burgess@embecosm.com>
1870
1871 * avr-tdep.c (avr_address_class_type_flags): Return
1872 type_instance_flags.
1873 (avr_address_class_type_flags_to_name): Take a
1874 type_instance_flags.
1875 (avr_address_class_name_to_type_flags): Return bool and take a
1876 type_instance_flags.
1877 * d-lang.c (build_d_types): Use type::set_instance_flags.
1878 * ft32-tdep.c (ft32_address_class_type_flags): Return
1879 type_instance_flags.
1880 (ft32_address_class_type_flags_to_name): Take a
1881 type_instance_flags.
1882 (ft32_address_class_name_to_type_flags): Return bool and take a
1883 type_instance_flags.
1884 (ft32_gdbarch_init): Use type::set_instance_flags.
1885 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
1886 * gdbarch.h, gdbarch.c: Regenerate.
1887 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
1888 (address_class_name_to_type_flags): Use type_instance_flags and
1889 bool.
1890 * gdbtypes.c (address_space_name_to_int)
1891 (address_space_int_to_name, make_qualified_type): Use
1892 type_instance_flags.
1893 (make_qualified_type): Use type_instance_flags and
1894 type::set_instance_flags.
1895 (make_type_with_address_space, make_cv_type, make_vector_type)
1896 (check_typedef): Use type_instance_flags.
1897 (recursive_dump_type): Cast type_instance_flags to unsigned for
1898 printing.
1899 (copy_type_recursive): Use type::set_instance_flags.
1900 (gdbtypes_post_init): Use type::set_instance_flags.
1901 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
1902 <m_instance_flags>: ... this.
1903 <instance_flags, set_instance_flags>: New methods.
1904 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
1905 (SET_TYPE_INSTANCE_FLAGS): New.
1906 (address_space_name_to_int, address_space_int_to_name)
1907 (make_type_with_address_space): Pass flags using
1908 type_instance_flags instead of int.
1909 * stabsread.c (cleanup_undefined_types_noname): Use
1910 type::set_instance_flags.
1911 * s390-tdep.c (s390_address_class_type_flags): Return
1912 type_instance_flags.
1913 (s390_address_class_type_flags_to_name): Take a
1914 type_instance_flags.
1915 (s390_address_class_name_to_type_flags): Return bool and take a
1916 type_instance_flags.
1917 * type-stack.c (type_stack::follow_types): Use
1918 type_instance_flags.
1919 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
1920
1921 2020-09-14 Tom Tromey <tromey@adacore.com>
1922
1923 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
1924 * x86-tdep.c (x86_is_thunk_register_name)
1925 (x86_in_indirect_branch_thunk): Update.
1926 * sparc64-tdep.c (sparc64_fpu_register_names)
1927 (sparc64_cp0_register_names, sparc64_register_names)
1928 (sparc64_pseudo_register_names): Now const.
1929 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
1930 cp0_registers_num>: Now const.
1931 * sparc-tdep.c (sparc_core_register_names)
1932 (sparc32_fpu_register_names, sparc32_cp0_register_names)
1933 (sparc32_pseudo_register_names): Now const.
1934 (validate_tdesc_registers): Update.
1935 * rust-lang.c (rust_extensions): Now const.
1936 * p-lang.c (p_extensions): Now const.
1937 * objc-lang.c (objc_extensions): Now const.
1938 * nto-tdep.c (nto_thread_state_str): Now const.
1939 * moxie-tdep.c (moxie_register_names): Now const.
1940 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
1941 Now const.
1942 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
1943 (mips_linux_reg_names): Now const.
1944 (mips_gdbarch_init): Update.
1945 * microblaze-tdep.c (microblaze_register_names): Now const.
1946 * m68k-tdep.c (m68k_register_names): Now const.
1947 * m32r-tdep.c (m32r_register_names): Now const.
1948 * ia64-tdep.c (ia64_register_names): Now const.
1949 * i386-tdep.h (struct gdbarch_tdep) <register_names,
1950 ymmh_register_names, ymm16h_regnum, mpx_register_names,
1951 k_register_names, zmmh_register_names, xmm_avx512_register_names,
1952 ymm_avx512_register_names, pkeys_register_names>: Now const.
1953 * i386-tdep.c (i386_register_names, i386_zmm_names)
1954 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
1955 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
1956 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
1957 * f-lang.c (f_extensions): Now const.
1958 * d-lang.c (d_extensions): Now const.
1959 * csky-tdep.c (csky_register_names): Now const.
1960 * charset.c (default_charset_names, charset_enum): Now const.
1961 (_initialize_charset): Update.
1962 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
1963 const.
1964 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
1965 (bsd_uthread_solib_loaded): Update.
1966 (bsd_uthread_state): Now const.
1967 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
1968 (amd64_ymm_avx512_names, amd64_ymmh_names)
1969 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
1970 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
1971 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
1972 (amd64_dword_names): Now const.
1973 * agent.c (can_use_agent_enum): Now const.
1974 * ada-tasks.c (task_states, long_task_states): Now const.
1975 * ada-lang.c (known_runtime_file_name_patterns)
1976 (known_auxiliary_function_name_patterns, attribute_names)
1977 (standard_exc, ada_extensions): Now const.
1978
1979 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1980
1981 * bcache.h (struct bcache) <bcache>: Remove constructor.
1982 <m_hash_function, m_compare_function>: Remove.
1983 <~bcache>: Make virtual.
1984 <compare>: Remove static method, introduce virtual method.
1985 <default_hash>: Remove.
1986 <hash>: New virtual method.
1987 * bcache.c (bcache::expand_hash_table): Update.
1988 (bcache::insert): Update.
1989 (bcache::hash): New.
1990 (bcache::compare): Update comment and parameter names.
1991 * gdbtypes.c (types_deeply_equal): Update.
1992 * psymtab.h (struct psymbol_bcache): New struct.
1993 (class psymtab_storage) <psymtab_storage>: Make default.
1994 <psymbol_cache>: Change type to psymbol_bcache.
1995 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
1996 (psymbol_hash): Change to...
1997 (psymbol_bcache::hash): ... this.
1998 (psymbol_compare): Change to...
1999 (psymbol_bcache::compare): ... this.
2000
2001 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2002
2003 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
2004 checking for initial lwp.
2005
2006 2020-09-14 Tom Tromey <tromey@adacore.com>
2007
2008 * m68k-tdep.c (m68k_extract_return_value): Use
2009 pointer_result_regnum.
2010 (m68k_store_return_value): Likewise.
2011 (m68k_reg_struct_return_p): Handle vectors and arrays.
2012 (m68k_return_value): Handle arrays.
2013 (m68k_svr4_return_value): Fix single-element aggregate handling.
2014 Handle long double. Adjust for embedded ABI.
2015 (m68k_svr4_init_abi): Set pointer_result_regnum.
2016 (m68k_embedded_init_abi): New function.
2017 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
2018 (m68k_osabi_sniffer): New function.
2019 (_initialize_m68k_tdep): Register osabi sniffer.
2020 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
2021 member.
2022
2023 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2024
2025 * xml-support.c (xml_fetch_content_from_file): Replace xfree
2026 with gdb::unique_xmalloc_ptr<char>.
2027
2028 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2029
2030 * xml-support.h (xml_fetch_another): Change type to be a
2031 function_view.
2032 (xml_process_xincludes): Remove baton parameter.
2033 (xml_fetch_content_from_file): Change baton parameter to
2034 dirname.
2035 * xml-support.c (struct xinclude_parsing_data)
2036 <xinclude_parsing_data>: Remove baton parameter.
2037 <fetcher_baton>: Remove.
2038 (xinclude_start_include): Adjust.
2039 (xml_process_xincludes): Adjust.
2040 (xml_fetch_content_from_file): Replace baton parameter with
2041 dirname.
2042 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
2043 (xml_init_syscalls_info): Use a lambda.
2044 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
2045 (file_read_description_xml): Use a lambda.
2046 (fetch_available_features_from_target): Change baton parameter
2047 to target_ops.
2048 (target_read_description_xml): Use a lambda.
2049 (target_fetch_description_xml): Use a lambda.
2050 (string_read_description_xml): Update.
2051
2052 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2053
2054 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
2055 uses with type::endianity_is_not_default.
2056
2057 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2058
2059 * gdbtypes.h (struct type) <endianity_is_not_default,
2060 set_endianity_is_not_default>: New methods.
2061 (TYPE_ENDIANITY_NOT_DEFAULT): Use
2062 type::endianity_is_not_default, change all write call sites to
2063 use type::set_endianity_is_not_default.
2064
2065 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2066
2067 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
2068 uses with type::is_fixed_instance.
2069
2070 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2071
2072 * gdbtypes.h (struct type) <is_fixed_instance,
2073 set_is_fixed_instance>: New methods.
2074 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
2075 write call sites to use type::set_is_fixed_instance.
2076
2077 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2078
2079 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
2080 uses with type::is_gnu_ifunc.
2081
2082 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2083
2084 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
2085 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
2086 use type::set_is_gnu_ifunc.
2087
2088 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2089
2090 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
2091 uses with type::stub_is_supported.
2092
2093 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2094
2095 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
2096 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
2097 use type::set_stub_is_supported.
2098
2099 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2100
2101 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
2102 uses with type::is_vector.
2103
2104 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2105
2106 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
2107 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
2108 use type::set_is_vector.
2109
2110 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2111
2112 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
2113 uses with type::has_varargs.
2114
2115 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2116
2117 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
2118 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
2119 use type::set_has_varargs.
2120
2121 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2122
2123 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
2124 uses with type::is_prototyped.
2125
2126 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2127
2128 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
2129 New methods.
2130 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
2131 call sites to use type::set_is_prototyped.
2132
2133 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2134
2135 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
2136 uses with type::target_is_stub.
2137
2138 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2139
2140 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
2141 New methods.
2142 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
2143 sites to use type::set_target_is_stub.
2144
2145 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2146
2147 * gdbtypes.h (TYPE_STUB): Remove, replace all
2148 uses with type::is_stub.
2149
2150 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2151
2152 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
2153 (TYPE_STUB): Use type::is_stub, change all write call sites to
2154 use type::set_is_stub.
2155
2156 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2157
2158 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
2159 type::has_no_signedness.
2160
2161 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2162
2163 * gdbtypes.h (struct type) <has_no_signedness,
2164 set_has_no_signedness>: New methods.
2165 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
2166 call sites to use type::set_has_no_signedness.
2167
2168 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2169
2170 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
2171 type::is_unsigned.
2172
2173 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2174
2175 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
2176 methods.
2177 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
2178 sites to use type::set_is_unsigned.
2179
2180 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
2181 Adam Renquinha <arenquinha@cimeq.qc.ca>
2182
2183 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
2184 pointer and stack frame offset when unwinding.
2185
2186 2020-09-13 Pedro Alves <pedro@palves.net>
2187
2188 * NEWS: Document "-break-insert --qualified".
2189 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
2190
2191 2020-09-13 Pedro Alves <pedro@palves.net>
2192
2193 * linespec.c (classify_mtype, compare_msyms): Delete.
2194 (search_minsyms_for_name): Remove classification logic. Instead
2195 filter out trampoline symbols if we also found an external
2196 function of the same name.
2197
2198 2020-09-13 Joel Brobecker <brobecker@adacore.com>
2199
2200 * NEWS: Create a new section for the next release branch.
2201 Rename the section of the current branch, now that it has
2202 been cut.
2203
2204 2020-09-13 Joel Brobecker <brobecker@adacore.com>
2205
2206 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
2207 * version.in: Bump version to 11.0.50.DATE-git.
2208
2209 2020-09-12 Joel Brobecker <brobecker@adacore.com>
2210
2211 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
2212
2213 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
2214 Felix Willgerodt <Felix.Willgerodt@intel.com>
2215
2216 * gdbarch.sh: Added bfloat16 type.
2217 * gdbarch.c: Regenerated.
2218 * gdbarch.h: Regenerated.
2219 * gdbtypes.c (floatformats_bfloat16): New struct.
2220 (gdbtypes_post_init): Add builtin_bfloat16.
2221 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
2222 (floatformats_bfloat16): New struct.
2223 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
2224 (i386_ymm_type): Add field "v16_bfloat16"
2225 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
2226 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
2227 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
2228 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
2229 * features/i386/64bit-avx512.xml: Add bfloat16 type.
2230 * features/i386/64bit-avx512.c: Regenerated.
2231 * features/i386/64bit-sse.xml: Add bfloat16 type.
2232 * features/i386/64bit-sse.c: Regenerated.
2233
2234 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
2235
2236 * i386-tdep.c (i386_zmm_type): Fix field names.
2237 (i386_ymm_type): Fix field names.
2238
2239 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2240
2241 * breakpoint.c: Fix typo in the help message of the
2242 "set breakpoint condition-evaluation" command.
2243
2244 2020-09-10 Kamil Rytarowski <n54@gmx.com>
2245
2246 * nbsd-nat.c: Include "nat/netbsd-nat.h".
2247 * (nbsd_nat_target::pid_to_exec_file)
2248 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
2249 (nbsd_nat_target::post_startup_inferior)
2250 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
2251 (nbsd_add_threads): Switch local code to common gdb/nat functions.
2252 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
2253 * (nbsd_thread_lister): Remove.
2254
2255 2020-09-10 Kamil Rytarowski <n54@gmx.com>
2256
2257 * fork-inferior.c (startup_inferior): Avoid double free.
2258
2259 2020-09-10 Kamil Rytarowski <n54@gmx.com>
2260
2261 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
2262 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
2263
2264 2020-09-10 Kamil Rytarowski <n54@gmx.com>
2265
2266 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
2267 * netbsd-nat.c: Include <sys/ptrace.h>.
2268 * (netbsd_nat::enable_proc_events): Add.
2269
2270 2020-09-10 Kamil Rytarowski <n54@gmx.com>
2271
2272 * netbsd-nat.h: Include "gdbsupport/function-view.h".
2273 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
2274 (netbsd_nat::for_each_thread): Add.
2275 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
2276 "gdbsupport/common-debug.h".
2277 * (netbsd_nat::netbsd_thread_lister)
2278 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
2279 (netbsd_nat::for_each_thread): Add.
2280
2281 2020-09-10 Kamil Rytarowski <n54@gmx.com>
2282
2283 * netbsd-nat.h: Include <unistd.h>.
2284 * (netbsd_nat::pid_to_exec_file): Add.
2285 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
2286 * (netbsd_nat::pid_to_exec_file) Add.
2287
2288 2020-09-10 Kamil Rytarowski <n54@gmx.com>
2289
2290 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
2291
2292 2020-09-10 Kamil Rytarowski <n54@gmx.com>
2293
2294 * netbsd-nat.h: New file.
2295 * netbsd-nat.c: Likewise.
2296
2297 2020-09-09 Tom Tromey <tromey@adacore.com>
2298
2299 * ada-lang.c (remove_extra_symbols): Do not increment when
2300 removing an element
2301
2302 2020-09-08 Tom Tromey <tromey@adacore.com>
2303
2304 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
2305
2306 2020-09-08 Tom Tromey <tromey@adacore.com>
2307
2308 PR win32/25302:
2309 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
2310 (gdb_bfd_init_data): New function.
2311 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
2312
2313 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2314
2315 * infrun.c (fetch_inferior_event): Use
2316 `switch_to_target_no_thread` to switch the target.
2317
2318 2020-09-06 Tom Tromey <tom@tromey.com>
2319
2320 * symfile.h (dwarf2_free_objfile): Don't declare.
2321
2322 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2323
2324 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
2325 to match 16 byte real/complex type generated by Flang compiler.
2326
2327 2020-09-03 Tom de Vries <tdevries@suse.de>
2328
2329 PR breakpoint/26546
2330 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
2331 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
2332
2333 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
2334
2335 * maint.c (index_digits): New function.
2336 (struct maint_print_section_data): Remove.
2337 (print_bfd_section_info): Remove print_data parameter, add arg
2338 and index_digits.
2339 (print_objfile_section_info): Likewise.
2340 (print_bfd_section_info_maybe_relocated): Likewise (plus
2341 objfile).
2342 (maintenance_info_sections): Adjust calls.
2343
2344 2020-09-02 Tom Tromey <tromey@adacore.com>
2345
2346 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
2347 for null pointers.
2348 (ada_varobj_adjust_for_child_access): Special-case null pointers.
2349
2350 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
2351
2352 * bcache.h (struct bcache) <insert>: Change type of `added` to
2353 pointer to bool.
2354 * bcache.c (bcache::insert): Likewise.
2355 * gdbtypes.c (check_types_worklist): Adjust.
2356 * psymtab.c (add_psymbol_to_bcache): Adjust.
2357
2358 2020-08-31 Kevin Buettner <kevinb@redhat.com>
2359
2360 * corelow.c (unordered_set): Include.
2361 (class core_target): Add field 'm_core_unavailable_mappings'.
2362 (core_target::build_file_mappings): Print only one warning
2363 per inaccessible file. Add unavailable/broken mappings
2364 to m_core_unavailable_mappings.
2365 (core_target::xfer_partial): Call...
2366 (core_target::xfer_memory_via_mappings): New method.
2367
2368 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
2369
2370 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
2371 type to bool.
2372
2373 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
2374
2375 * dwarf2/read.c (struct field_info): Fix indentation.
2376
2377 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
2378
2379 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
2380 ordering in comment.
2381 * frame.c (frame_id_eq): Fix indentation.
2382
2383 2020-08-31 Scott Linder <scott@scottlinder.com>
2384 Simon Marchi <simon.marchi@efficios.com>
2385
2386 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
2387 inline frame ids in outer frame.
2388
2389 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
2390
2391 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
2392 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
2393 (outer_frame_id): Use FID_STACK_OUTER instead of
2394 FID_STACK_INVALID.
2395 (frame_id_p): Don't check for outer_frame_id.
2396
2397 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
2398
2399 * frame-unwind.c (frame_unwind_got_optimized): Don't set
2400 regnum/frame in value. Call allocate_value_lazy.
2401 * frame.c (frame_unwind_register_value): Use
2402 val_print_not_saved.
2403
2404 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
2405
2406 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
2407
2408 2020-08-29 Pedro Alves <pedro@palves.net>
2409
2410 * progspace.c (print_program_space): Use all_inferiors. Switch to
2411 the inferior before calling target_pid_to_str.
2412
2413 2020-08-28 Tom Tromey <tom@tromey.com>
2414
2415 * xcoffread.c (xcoff_end_psymtab): Update comment.
2416 * dbxread.c (dbx_end_psymtab): Update comment.
2417
2418 2020-08-28 Tom de Vries <tdevries@suse.de>
2419
2420 PR breakpoint/26544
2421 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
2422 event_location.
2423 (create_breakpoint): Same.
2424 (base_breakpoint_decode_location): Same.
2425 (bkpt_create_sals_from_location): Same.
2426 (bkpt_decode_location): Same.
2427 (bkpt_probe_create_sals_from_location): Same.
2428 (bkpt_probe_decode_location): Same.
2429 (tracepoint_create_sals_from_location): Same.
2430 (tracepoint_decode_location): Same.
2431 (tracepoint_probe_decode_location): Same.
2432 (strace_marker_create_sals_from_location): Same.
2433 (strace_marker_decode_location): Same.
2434 (create_sals_from_location_default): Same.
2435 (decode_location_default): Same.
2436 * breakpoint.h (struct breakpoint_ops): Same.
2437 (create_breakpoint): Same.
2438 * linespec.h (decode_line_full): Same.
2439 * linespec.c (decode_line_full): Same. Throw error if
2440 result.size () == 0.
2441
2442 2020-08-27 Pedro Alves <pedro@palves.net>
2443
2444 PR gdb/26524
2445 * breakpoint.c (until_break_fsm) <location_breakpoint,
2446 caller_breakpoint>: Delete fields.
2447 <breakpoints>: New field.
2448 <until_break_fsm>: Adjust to save a breakpoint vector instead of
2449 two individual breakpoints.
2450 (until_break_fsm::should_stop): Loop over breakpoints in the
2451 breakpoint vector.
2452 (until_break_fsm::clean_up): Adjust to clear the breakpoints
2453 vector.
2454 (until_break_command): Handle location expanding into multiple
2455 sals.
2456
2457 2020-08-27 Pedro Alves <pedro@palves.net>
2458
2459 PR gdb/26523
2460 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
2461 bp_until breakpoints user-specified locations. Update intro
2462 comment.
2463
2464 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
2465
2466 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
2467 gdb_bfd_sections): New.
2468 * maint.c (print_bfd_section_info): Change param type to
2469 maint_print_section_data.
2470 (print_objfile_section_info): Likewise.
2471 (print_bfd_section_info_maybe_relocated): Likewise.
2472 (maintenance_info_sections): Use gdb_bfd_sections.
2473
2474 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
2475
2476 * MAINTAINERS: Add ARC target and maintainer.
2477
2478 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
2479
2480 * configure.tgt: ARC support for GNU/Linux.
2481 * Makefile.in (ALL_TARGET_OBJS): Likewise.
2482 * arc-linux-tdep.c: New file.
2483 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
2484 * arc-tdep.c (arc_write_pc): Use it.
2485
2486 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
2487
2488 * arc-tdep.c (arc_check_for_hardware_loop): New.
2489 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
2490
2491 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
2492
2493 * arc-tdep.h: Include "gdbarch.h".
2494
2495 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
2496
2497 * arch/arc.h
2498 (arc_gdbarch_features): New class to stir the selection of target XML.
2499 (arc_create_target_description): Use FEATURES to choose XML target.
2500 (arc_lookup_target_description): Use arc_create_target_description
2501 to create _new_ target descriptions or return the already created
2502 ones if the FEATURES is the same.
2503 * arch/arc.c: Implementation of prototypes described above.
2504 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
2505 (arc_gdbarch_features_init): Initialize the FEATURES struct.
2506 * arc-tdep.c (*_feature_name): Make feature names consistent.
2507 (arc_register_feature): A new struct to hold information about
2508 registers of a particular target/feature.
2509 (arc_check_tdesc_feature): Check if XML provides registers in
2510 compliance with ARC_REGISTER_FEATURE structs.
2511 (arc_update_acc_reg_names): Add aliases for r58 and r59.
2512 (determine_*_reg_feature_set): Which feature name to look for.
2513 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
2514 (mach_type_to_arc_isa): Convert from a set of binutils machine types
2515 to expected ISA enums to be used in arc_gdbarch_features structs.
2516 * features/Makefile (FEATURE_XMLFILES): Add new files.
2517 * gdb/features/arc/v1-aux.c: New file.
2518 * gdb/features/arc/v1-aux.xml: Likewise.
2519 * gdb/features/arc/v1-core.c: Likewise.
2520 * gdb/features/arc/v1-core.xml: Likewise.
2521 * gdb/features/arc/v2-aux.c: Likewise.
2522 * gdb/features/arc/v2-aux.xml: Likewise.
2523 * gdb/features/arc/v2-core.c: Likewise.
2524 * gdb/features/arc/v2-core.xml: Likewise.
2525 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
2526
2527 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
2528 Andrew Burgess <andrew.burgess@embecosm.com>
2529
2530 PR m2/26372
2531 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
2532 an assert. Remove single element array indexing pattern as the
2533 MULTI_SUBSCRIPT support will handle this case too.
2534
2535 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
2536
2537 * value.h (valprint_check_validity): Move declaration from
2538 here...
2539 * valprint.h (valprint_check_validity): ... to here.
2540
2541 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
2542
2543 * debug.h: New file.
2544 * debug.c (debug_prefixed_vprintf): New function.
2545 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
2546 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
2547
2548 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
2549
2550 * infrun.h (infrun_debug_printf_1): New function declaration.
2551 (infrun_debug_printf): New macro.
2552 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
2553 throughout.
2554 (infrun_debug_printf): New function.
2555 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
2556 (handle_jit_event): Likewise.
2557
2558 2020-08-21 Mark Wielaard <mark@klomp.org>
2559
2560 * ada-lex.l: Extend register warnings diagnostics comment for g++.
2561
2562 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
2563
2564 * frame.c (enum class frame_id_status): New.
2565 (struct frame_info) <this_id::p>: Change type to frame_id_status.
2566 (fprintf_frame): Update.
2567 (compute_frame_id): Set frame id status to "computing" on entry.
2568 Set it back to "not_computed" on failure and to "computed" on
2569 success.
2570 (get_frame_id): Assert the frame id is not being computed.
2571 (create_sentinel_frame): Use frame_id_status::COMPUTED.
2572 (create_new_frame): Likewise.
2573 (frame_cleanup_after_sniffer): Update assert.
2574
2575 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2576
2577 * regcache.c (pid_ptid_regcache_map): New type.
2578 (target_ptid_regcache_map): Remove.
2579 (target_pid_ptid_regcache_map): New type.
2580 (regcaches): Change type to target_pid_ptid_regcache_map.
2581 (get_thread_arch_aspace_regcache): Update.
2582 (regcache_thread_ptid_changed): Update, handle pid-like ptid
2583 case.
2584 (regcaches_size): Update.
2585 (regcache_count): Update.
2586 (registers_changed_ptid_target_pid_test): New.
2587 (_initialize_regcache): Register new test.
2588
2589 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2590
2591 * regcache.c (regcache_count): New.
2592 (struct regcache_test_data): New.
2593 (regcache_test_data_up): New.
2594 (populate_regcaches_for_test): New.
2595 (regcaches_test): Remove.
2596 (get_thread_arch_aspace_regcache_test): New.
2597 (registers_changed_ptid_all_test): New.
2598 (registers_changed_ptid_target_test): New.
2599 (registers_changed_ptid_target_ptid_test): New.
2600 (regcache_thread_ptid_changed): Remove regcache_count lambda.
2601 (_initialize_regcache): Register new tests.
2602
2603 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2604
2605 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
2606 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
2607 gdbarch and aspace parameter. Use current inferior's aspace.
2608 Validate regcache's arch value.
2609 (regcaches_test): Update.
2610
2611 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2612
2613 * regcache.c (regcaches_test): Call registers_changed.
2614
2615 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2616
2617 * infrun.c (process_event_stop_test): Fix typo "breapoint".
2618
2619 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2620
2621 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
2622 to find the end of prologue for flang compiled binaries.
2623 * arm-tdep.c (arm_skip_prologue): Likewise.
2624 * i386-tdep.c (i386_skip_prologue): Likewise.
2625 * producer.c (producer_is_llvm): New function.
2626 (producer_parsing_tests): Added new tests for clang/flang.
2627 * producer.h (producer_is_llvm): New declaration.
2628
2629 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
2630
2631 * linux-nat.c (linux_nat_debug_printf): New function.
2632 (linux_nat_debug_printf_1): New macro. Use throughout the file.
2633
2634 2020-08-18 Aaron Merey <amerey@redhat.com>
2635
2636 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
2637 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
2638 (CLIBS): Add DEBUGINFOD_LIBS.
2639
2640 2020-08-17 Sergei Trofimovich <siarheit@google.com>
2641
2642 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
2643 'gdbarch_num_regs'.
2644
2645 2020-08-17 Tom Tromey <tromey@adacore.com>
2646
2647 * ada-varobj.c (ada_varobj_decode_var): Handle case where
2648 ada_get_decoded_value returns NULL.
2649
2650 2020-08-17 Tom Tromey <tromey@adacore.com>
2651
2652 * python/py-inferior.c (infpy_search_memory): Use
2653 gdb_py_object_from_ulongest.
2654 * python/py-infevents.c (create_inferior_call_event_object)
2655 (create_memory_changed_event_object): Use
2656 gdb_py_object_from_ulongest.
2657 * python/py-linetable.c (ltpy_entry_get_pc): Use
2658 gdb_py_object_from_ulongest.
2659
2660 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
2661
2662 * loc.c (class symbol_needs_eval_context): Fix indentation.
2663
2664 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
2665
2666 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
2667 bool.
2668
2669 2020-08-17 Tom de Vries <tdevries@suse.de>
2670
2671 PR gdb/26393
2672 * gdbtypes.c (dump_dynamic_prop): New function.
2673 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
2674
2675 2020-08-15 Tom de Vries <tdevries@suse.de>
2676
2677 PR backtrace/26390
2678 * stack.c (print_frame_args): Temporarily set the selected
2679 frame to FRAME while printing the frame's arguments.
2680
2681 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2682
2683 PR breakpoints/26385
2684 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
2685 Always clear watchpoint with PTRACE_SET_DEBUGREG.
2686
2687 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2688
2689 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
2690 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
2691 and >= to check return value instead of == -1 and != -1.
2692
2693 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
2694
2695 * utils.h (class gdb_argv) <as_array_view>: New method.
2696 * utils.c (gdb_argv_as_array_view_test): New.
2697 (_initialize_utils): Register selftest.
2698 * maint.c (maintenance_selftest): Use the new method.
2699
2700 2020-08-13 Kamil Rytarowski <n54@gmx.com>
2701
2702 * target.h (supports_dumpcore, dumpcore): New
2703 function declarations.
2704 * target.c (supports_dumpcore, dumpcore): New
2705 functions.
2706 * target-delegates.c: Rebuild.
2707 * gcore.c (gcore_command): Use target_supports_dumpcore ()
2708 and target_dumpcore ().
2709
2710 2020-08-13 Aaron Merey <amerey@redhat.com>
2711
2712 * debuginfod-support.c: Replace global variables with user_data.
2713
2714 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
2715
2716 * maint.c (maintenance_selftest): Split args and pass array_view
2717 to run_tests.
2718
2719 2020-08-12 Luis Machado <luis.machado@linaro.org>
2720
2721 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
2722 type's length.
2723 Use %s and pulongest to print the length.
2724
2725 2020-08-12 Pedro Alves <palves@redhat.com>
2726
2727 * NEWS: Move "Multi-target debugging support" item to the
2728 "Changes since GDB 9" section.
2729
2730 2020-08-12 Pedro Alves <palves@redhat.com>
2731
2732 PR gdb/26336
2733 * progspace.c (program_space::remove_objfile): Invalidate the
2734 frame cache.
2735
2736 2020-08-11 Tom de Vries <tdevries@suse.de>
2737
2738 * MAINTAINERS: Mark ms1 as deleted.
2739
2740 2020-08-10 Luis Machado <luis.machado@linaro.org>
2741
2742 PR gdb/26310
2743
2744 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
2745 act accordingly.
2746 (aarch64_analyze_prologue_test): Add more unit tests to exercise
2747 movz/str/stur/stp skipping behavior.
2748
2749 2020-08-10 Luis Machado <luis.machado@linaro.org>
2750
2751 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
2752 struct user_sve_header instead of struct sve_context.
2753
2754 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
2755
2756 * read.h (dwarf2_fetch_die_loc_sect_off,
2757 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
2758 `void *` parameter with function_view.
2759 * read.c (dwarf2_fetch_die_loc_sect_off,
2760 dwarf2_fetch_die_loc_cu_off): Likewise.
2761 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
2762 (per_cu_dwarf_call): Adjust.
2763 (get_frame_address_in_block_wrapper): Remove.
2764 (indirect_synthetic_pointer): Adjust.
2765 (get_ax_pc): Remove.
2766 (dwarf2_compile_expr_to_ax): Adjust.
2767
2768 2020-08-08 Tom de Vries <tdevries@suse.de>
2769
2770 PR build/26344
2771 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
2772 constructor.
2773 * regcache.c (get_thread_arch_aspace_regcache): Same.
2774
2775 2020-08-07 Tom Tromey <tromey@adacore.com>
2776
2777 * ravenscar-thread.c
2778 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
2779 New method.
2780 (ravenscar_thread_target::wait): Check
2781 runtime_initialized.
2782 (ravenscar_thread_target::prepare_to_store)
2783 (ravenscar_thread_target::stopped_by_sw_breakpoint)
2784 (ravenscar_thread_target::stopped_by_hw_breakpoint)
2785 (ravenscar_thread_target::stopped_by_watchpoint)
2786 (ravenscar_thread_target::stopped_data_address)
2787 (ravenscar_thread_target::core_of_thread): Use
2788 scoped_restore_current_thread and
2789 set_base_thread_from_ravenscar_task.
2790
2791 2020-08-07 Tom Tromey <tromey@adacore.com>
2792
2793 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
2794
2795 2020-08-07 Tom Tromey <tromey@adacore.com>
2796
2797 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
2798 update_inferior_ptid before update_thread_list.
2799 (temporarily_change_regcache_ptid): New class.
2800 (ravenscar_thread_target::fetch_registers)
2801 (ravenscar_thread_target::store_registers)
2802 (ravenscar_thread_target::prepare_to_store): Use base thread when
2803 forwarding operation.
2804
2805 2020-08-07 Tom Tromey <tromey@adacore.com>
2806
2807 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
2808 "is_pid" case.
2809
2810 2020-08-07 Tom Tromey <tromey@adacore.com>
2811
2812 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
2813 New methods.
2814 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
2815 first.
2816 (ravenscar_thread_target::add_thread): Rename from
2817 ravenscar_add_thread.
2818 (ravenscar_thread_target::update_thread_list): Use a lambda.
2819 (ravenscar_thread_target::xfer_partial): New method.
2820
2821 2020-08-07 Tom Tromey <tromey@adacore.com>
2822
2823 * ada-lang.h (ada_task_list_iterator_ftype): Now a
2824 gdb::function_view.
2825 (iterate_over_live_ada_tasks): Change type of argument.
2826 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
2827 of argument.
2828
2829 2020-08-07 Tom Tromey <tromey@adacore.com>
2830
2831 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
2832 Remove.
2833 (ravenscar_thread_target::extra_thread_info): Remove.
2834 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
2835 defer to target beneath for non-Ravenscar threads.
2836
2837 2020-08-07 Tom Tromey <tromey@adacore.com>
2838
2839 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
2840 get_base_thread_from_ravenscar_task>: Now methods.
2841 <m_cpu_map>: New member.
2842 (ravenscar_thread_target::get_thread_base_cpu): Rename from
2843 ravenscar_get_thread_base_cpu. Check m_cpu_map.
2844 (ravenscar_thread_target::task_is_currently_active): Update.
2845 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
2846 Now a method.
2847 (ravenscar_thread_target::add_active_thread): Put initial thread
2848 into the m_cpu_map.
2849
2850 2020-08-07 Tom Tromey <tromey@adacore.com>
2851
2852 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
2853 event_ptid.
2854
2855 2020-08-07 Tom Tromey <tromey@adacore.com>
2856
2857 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
2858 runtime_initialized.
2859
2860 2020-08-07 Tom Tromey <tromey@adacore.com>
2861
2862 * ravenscar-thread.c (ravenscar_thread_target): Don't call
2863 add_active_thread.
2864 (ravenscar_thread_target::add_active_thread): Now public.
2865 (ravenscar_inferior_created): Call add_active_thread after pushing
2866 the target.
2867
2868 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
2869
2870 * regcache.c (ptid_regcache_map): New type.
2871 (target_ptid_regcache_map): New type.
2872 (regcaches): Change type to target_ptid_regcache_map.
2873 (get_thread_arch_aspace_regcache): Update to regcaches' new
2874 type.
2875 (regcache_thread_ptid_changed): Likewise.
2876 (registers_changed_ptid): Likewise.
2877 (regcaches_size): Likewise.
2878 (regcaches_test): Update.
2879 (regcache_thread_ptid_changed): Update.
2880 * regcache.h (regcache_up): New type.
2881 * gdbsupport/ptid.h (hash_ptid): New struct.
2882
2883 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
2884
2885 * observable.h (thread_ptid_changed): Add parameter
2886 `process_stratum_target *`.
2887 * infrun.c (infrun_thread_ptid_changed): Add parameter
2888 `process_stratum_target *` and use it.
2889 (selftests): New namespace.
2890 (infrun_thread_ptid_changed): New function.
2891 (_initialize_infrun): Register selftest.
2892 * regcache.c (regcache_thread_ptid_changed): Add parameter
2893 `process_stratum_target *` and use it.
2894 (regcache_thread_ptid_changed): New function.
2895 (_initialize_regcache): Register selftest.
2896 * thread.c (thread_change_ptid): Pass target to
2897 thread_ptid_changed observable.
2898
2899 2020-08-06 Caroline Tice <cmtice@google.com>
2900
2901 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
2902 (struct dwp_sections): Update field comments. Add loclists and
2903 rnglists fields.
2904 (struct virtual_v2_dwo_sections): Rename struct to
2905 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
2906 size & offset fields for loclists and rnglists.
2907 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
2908 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
2909 skipping dummy type units.
2910 (create_dwp_hash_table): Update the large comment above the function to
2911 discuss Version 5 DWP files as well, with references. Update all the
2912 version checks in the function to check for version 5 as well. Add new
2913 section at the end to create dwp hash table for version 5.
2914 (create_dwp_v2_section): Rename function to
2915 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
2916 Add V5 to error message text.
2917 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
2918 into calls to create_dwp_v2_or_v5_section.
2919 (create_dwo_unit_in_dwp_v5): New function.
2920 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
2921 check for version2; add else clause to handle version 5.
2922 (open_and_init_dwo_file): Add code to check dwarf version & only call
2923 create_debug_types_hash_table (with sections.types) if version is not 5;
2924 else call create_debug_type_hash_table, with sections.info.
2925 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
2926 version 5.
2927 (dwarf2_locate_v5_dwp_sections): New function.
2928 (open_and_init_dwp_file): Add else-if clause for version 5 to call
2929 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
2930
2931 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
2932
2933 * regcache.h (class regcache): Remove friend
2934 registers_changed_ptid.
2935 <regcache_thread_ptid_changed>: Remove.
2936 <regcaches>: Remove.
2937 * regcache.c (regcache::regcaches): Rename to...
2938 (regcaches): ... this. Make static.
2939 (get_thread_arch_aspace_regcache): Update.
2940 (regcache::regcache_thread_ptid_changed): Rename to...
2941 (regcache_thread_ptid_changed): ... this. Update.
2942 (class regcache_access): Remove.
2943 (regcaches_test): Update.
2944 (_initialize_regcache): Update.
2945 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
2946 <forward_list>.
2947
2948 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
2949
2950 * regcache.h (class regcache) <current_regcache>: Rename to...
2951 <regcaches>: ... this. Move doc here.
2952 * regcache.c (regcache::current_regcache) Rename to...
2953 (regcache::regcaches): ... this. Move doc to header.
2954 (get_thread_arch_aspace_regcache): Update.
2955 (regcache::regcache_thread_ptid_changed): Update.
2956 (registers_changed_ptid): Update.
2957 (class regcache_access) <current_regcache_size>: Rename to...
2958 <regcaches_size>: ... this.
2959 (current_regcache_test): Rename to...
2960 (regcaches_test): ... this.
2961 (_initialize_regcache): Update.
2962
2963 2020-08-06 Victor Collod <vcollod@nvidia.com>
2964
2965 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
2966
2967 2020-08-05 Kevin Buettner <kevinb@redhat.com>
2968
2969 * corelow.c (core_target::build_file_mappings): Don't output
2970 null pathname in warning.
2971
2972 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
2973
2974 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
2975 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
2976 gdb.dwarf2/dw2-single-line-discriminators.exp,
2977 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
2978
2979 2020-08-05 Tom Tromey <tromey@adacore.com>
2980
2981 PR rust/26197:
2982 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
2983 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
2984 Fix off-by-one and type size errors in ordinary case.
2985
2986 2020-08-05 Tom de Vries <tdevries@suse.de>
2987
2988 * gdbtypes.c (type_not_allocated, type_not_associated): Use
2989 "prop->const_val () == 0" instead of "prop->const_val () != 0".
2990
2991 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
2992
2993 * frame.h (frame_id_p): Return bool.
2994 (frame_id_artificial_p): Return bool.
2995 (frame_id_eq): Return bool.
2996 (has_stack_frames): Return bool.
2997 (get_selected_frame): Fix typo in comment.
2998 (get_frame_pc_if_available): Return bool.
2999 (get_frame_address_in_block_if_available): Return bool.
3000 (get_frame_func_if_available): Return bool.
3001 (read_frame_register_unsigned): Return bool.
3002 (get_frame_register_bytes): Return bool.
3003 (safe_frame_unwind_memory): Return bool.
3004 (deprecated_frame_register_read): Return bool.
3005 (frame_unwinder_is): Return bool.
3006 * frame.c (struct frame_info) <prev_arch::p>: Change type to
3007 bool.
3008 <this_id::p>: Likewise.
3009 <prev_p>: Likewise.
3010 (frame_stash_add): Return bool.
3011 (get_frame_id): Use bool.
3012 (frame_id_build_special) Use bool.
3013 (frame_id_build_unavailable_stack): Use bool.
3014 (frame_id_build): Use bool.
3015 (frame_id_p): Return bool, use true/false instead of 1/0.
3016 (frame_id_artificial_p): Likewise.
3017 (frame_id_eq): Likewise.
3018 (frame_id_inner): Likewise.
3019 (get_frame_func_if_available): Likewise.
3020 (read_frame_register_unsigned): Likewise.
3021 (deprecated_frame_register_read): Likewise.
3022 (get_frame_register_bytes): Likewise.
3023 (has_stack_frames): Likewise.
3024 (inside_main_func): Likewise.
3025 (inside_entry_func): Likewise.
3026 (get_frame_pc_if_available): Likewise.
3027 (get_frame_address_in_block_if_available): Likewise.
3028 (frame_unwinder_is): Likewise.
3029 (safe_frame_unwind_memory): Likewise.
3030 (frame_unwind_arch): Likewise.
3031
3032 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
3033
3034 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
3035 type to cached_copy_status.
3036 (fprintf_frame): Adjust.
3037 (get_frame_func_if_available): Adjust.
3038 (frame_cleanup_after_sniffer): Adjust.
3039
3040 2020-08-04 Mark Wielaard <mark@klomp.org>
3041
3042 * MAINTAINERS (Write After Approval): Update email address.
3043
3044 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3045
3046 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
3047 dynamic_prop::const_val.
3048
3049 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3050
3051 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
3052 dynamic_prop::kind.
3053
3054 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3055
3056 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
3057
3058 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
3059
3060 * configure.tgt: Set gdb_sim for bpf-*-* targets.
3061
3062 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
3063 Jose E. Marchesi <jose.marchesi@oracle.com>
3064
3065 * configure.tgt: Add entry for bpf-*-*.
3066 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
3067 (ALLDEPFILES): Add bpf-tdep.c.
3068 * bpf-tdep.c: New file.
3069 * MAINTAINERS: Add bpf target and maintainer.
3070 * NEWS: Mention the support for the new target.
3071
3072 2020-08-04 Tom de Vries <tdevries@suse.de>
3073
3074 PR symtab/23270
3075 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
3076 Error.
3077
3078 2020-08-03 John Baldwin <jhb@FreeBSD.org>
3079
3080 * syscalls/freebsd.xml: Regenerate.
3081
3082 2020-08-03 John Baldwin <jhb@FreeBSD.org>
3083
3084 * syscalls/update-freebsd.sh: Fix usage and year range.
3085
3086 2020-08-03 Tom de Vries <tdevries@suse.de>
3087
3088 PR symtab/26333
3089 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
3090 DW_LNE_lo_user/DW_LNE_hi_user range.
3091
3092 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
3093
3094 PR ada/26318
3095 * ada-lang.c (ada_modulus): Return 0 if property is not of const
3096 kind.
3097
3098 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3099
3100 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
3101
3102 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3103
3104 * breakpoint.c (set_breakpoint_condition): Update the condition
3105 expressions after checking that the input condition string parses
3106 successfully and does not contain junk at the end.
3107
3108 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3109
3110 * breakpoint.c (set_breakpoint_condition): Update the
3111 condition string after parsing the new condition successfully.
3112
3113 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3114
3115 * proc-api.c (_STRUCTURED_PROC): Don't define.
3116 * proc-events.c: Likewise.
3117 * proc-flags.c: Likewise.
3118 * proc-why.c: Likewise.
3119 * procfs.c: Likewise.
3120
3121 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
3122 * configure, config.in: Regenerate.
3123
3124 2020-07-30 Tom de Vries <tdevries@suse.de>
3125
3126 PR build/26320
3127 * ui-style.h (struct ui_file_style::color): Wrap m_value and
3128 m_red/m_green/m_blue in a union.
3129
3130 2020-07-29 Tom de Vries <tdevries@suse.de>
3131
3132 PR tdep/26280
3133 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
3134
3135 2020-07-28 Tom Tromey <tromey@adacore.com>
3136
3137 PR symtab/26270:
3138 * symtab.h (find_pc_partial_function_sym): Declare.
3139 * cli/cli-cmds.c (disassemble_command): Use
3140 find_pc_partial_function_sym. Check asm_demangle.
3141 * blockframe.c (cache_pc_function_sym): New global.
3142 (cache_pc_function_name): Remove.
3143 (clear_pc_function_cache): Update.
3144 (find_pc_partial_function_sym): New function, from
3145 find_pc_partial_function.
3146 (find_pc_partial_function): Rewrite using
3147 find_pc_partial_function_sym.
3148
3149 2020-07-28 Tom Tromey <tromey@adacore.com>
3150
3151 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
3152 help. Add usage.
3153
3154 2020-07-28 Tom Tromey <tromey@adacore.com>
3155
3156 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
3157 <DW_OP_GNU_variable_value>: Cast to address type.
3158
3159 2020-07-28 Kamil Rytarowski <n54@gmx.com>
3160
3161 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
3162 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
3163 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
3164 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
3165 (nbsd_get_siginfo_type): New.
3166 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
3167 (_initialize_nbsd_tdep): New.
3168
3169 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
3170
3171 PR binutils/26301
3172 * configure: Regenerated.
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 Andrew Burgess <andrew.burgess@embecosm.com>
3180
3181 * python/py-frame.c: Remove 'user-regs.h' include.
3182 (frapy_read_register): Rewrite to make use of
3183 gdbpy_parse_register_id.
3184 * python/py-registers.c (gdbpy_parse_register_id): New function,
3185 moved here from python/py-unwind.c. Updated the return type, and
3186 also accepts register descriptor objects.
3187 * python/py-unwind.c: Remove 'user-regs.h' include.
3188 (pyuw_parse_register_id): Moved to python/py-registers.c.
3189 (unwind_infopy_add_saved_register): Update to use
3190 gdbpy_parse_register_id.
3191 (pending_framepy_read_register): Likewise.
3192 * python/python-internal.h (gdbpy_parse_register_id): Declare.
3193
3194 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
3195
3196 * python/py-registers.c: Add 'user-regs.h' include.
3197 (register_descriptor_iter_find): New function.
3198 (register_descriptor_iterator_object_methods): New static global
3199 methods array.
3200 (register_descriptor_iterator_object_type): Add pointer to methods
3201 array.
3202
3203 2020-07-27 John Baldwin <jhb@FreeBSD.org>
3204
3205 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
3206 for all architectures on FreeBSD 11.3 and later.
3207
3208 2020-07-27 Tom Tromey <tromey@adacore.com>
3209
3210 * gcore.h (load_corefile): Don't declare.
3211
3212 2020-07-27 Tom de Vries <tdevries@suse.de>
3213
3214 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
3215 * config.in: Regenerate.
3216 * configure: Regenerate.
3217
3218 2020-07-26 Eli Zaretskii <eliz@gnu.org>
3219
3220 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
3221 ws2tcpip.h. When checking whether socklen_t type is defined, use
3222 ws2tcpip.h if it is available and sys/socket.h isn't.
3223 * configure: Regenerate.
3224 * config.in: Regenerate.
3225
3226 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
3227
3228 PR fortran/23051
3229 PR fortran/26139
3230 * valops.c (value_ind): Pass address to
3231 readjust_indirect_value_type.
3232 * value.c (readjust_indirect_value_type): Make parameter
3233 non-const, and add extra address parameter. Resolve original type
3234 before using it.
3235 * value.h (readjust_indirect_value_type): Update function
3236 signature and comment.
3237
3238 2020-07-25 Tom de Vries <tdevries@suse.de>
3239
3240 PR symtab/26243
3241 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
3242 entries.
3243
3244 2020-07-24 Aaron Merey <amerey@redhat.com>
3245
3246 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
3247 * configure: Rebuild.
3248
3249 2020-07-23 Kevin Buettner <kevinb@redhat.com>
3250
3251 PR corefiles/26294
3252 * corelow.c (_initialize_corelow): Add period to help text
3253 for "maintenance print core-file-backed-mappings".
3254
3255 2020-07-23 Pedro Alves <pedro@palves.net>
3256
3257 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
3258 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
3259 meanwhile.
3260 * frame.c (frame_cache_generation, get_frame_cache_generation):
3261 New.
3262 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
3263 (get_prev_frame_if_no_cycle): On exception, don't touch
3264 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
3265 * frame.h (get_frame_cache_generation): Declare.
3266
3267 2020-07-23 Tom de Vries <tdevries@suse.de>
3268
3269 PR tui/26282
3270 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
3271 New default constructor.
3272
3273 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
3274
3275 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
3276 exclude non-statement entries.
3277
3278 2020-07-22 Kevin Buettner <kevinb@redhat.com>
3279
3280 * NEWS (New commands): Mention new command
3281 "maintenance print core-file-backed-mappings".
3282
3283 2020-07-22 Kevin Buettner <kevinb@redhat.com>
3284
3285 * corelow.c (gdbcmd.h): Include.
3286 (core_target::info_proc_mappings): New method.
3287 (get_current_core_target): New function.
3288 (maintenance_print_core_file_backed_mappings): New function.
3289 (_initialize_corelow): Add core-file-backed-mappings to
3290 "maint print" commands.
3291
3292 2020-07-22 Kevin Buettner <kevinb@redhat.com>
3293
3294 * linux-tdep.c (dump_note_entry_p): New function.
3295 (linux_dump_mapping_p_ftype): New typedef.
3296 (linux_find_memory_regions_full): Add new parameter,
3297 should_dump_mapping_p.
3298 (linux_find_memory_regions): Adjust call to
3299 linux_find_memory_regions_full.
3300 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
3301 call to linux_find_memory_regions_full.
3302
3303 2020-07-22 Kevin Buettner <kevinb@redhat.com>
3304
3305 * corelow.c (solist.h, unordered_map): Include.
3306 (class core_target): Add field m_core_file_mappings and
3307 method build_file_mappings.
3308 (core_target::core_target): Call build_file_mappings.
3309 (core_target::~core_target): Free memory associated with
3310 m_core_file_mappings.
3311 (core_target::build_file_mappings): New method.
3312 (core_target::xfer_partial): Use m_core_file_mappings
3313 for memory transfers.
3314 * linux-tdep.c (linux_read_core_file_mappings): New
3315 function.
3316 (linux_core_info_proc_mappings): Rewrite to use
3317 linux_read_core_file_mappings.
3318 (linux_init_abi): Register linux_read_core_file_mappings.
3319
3320 2020-07-22 Kevin Buettner <kevinb@redhat.com>
3321
3322 * arch-utils.c (default_read_core_file_mappings): New function.
3323 * arch-utils.c (default_read_core_file_mappings): Declare.
3324 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
3325 * gdbarch.h, gdbarch.c: Regenerate.
3326
3327 2020-07-22 Kevin Buettner <kevinb@redhat.com>
3328
3329 PR corefiles/25631
3330 * corelow.c (core_target:xfer_partial): Revise
3331 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
3332 case after first checking the stratum beneath the core
3333 target.
3334 (has_all_memory): Return true.
3335 * target.c (raw_memory_xfer_partial): Revise comment
3336 regarding use of has_all_memory.
3337
3338 2020-07-22 Kevin Buettner <kevinb@redhat.com>
3339
3340 * exec.h (section_table_xfer_memory): Revise declaration,
3341 replacing section name parameter with an optional callback
3342 predicate.
3343 * exec.c (section_table_xfer_memory): Likewise.
3344 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
3345 of section_table_xfer_memory.
3346
3347 2020-07-22 Tom Tromey <tromey@adacore.com>
3348
3349 * mi/mi-cmd-stack.c (list_args_or_locals): Use
3350 lookup_symbol_search_name.
3351
3352 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
3353
3354 * python/py-registers.c (gdbpy_register_object_data_init): Remove
3355 redundant local variable.
3356 (gdbpy_get_register_descriptor): Extract descriptor vector as a
3357 reference, not pointer, update code accordingly.
3358
3359 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3360 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3361
3362 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
3363 * jit.c (jit_breakpoint_re_set_internal): Use the
3364 `skip_jit_symbol_lookup` field.
3365
3366 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3367 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3368
3369 * jit.c (jit_read_descriptor): Define the descriptor address once,
3370 use twice.
3371 (jit_breakpoint_deleted): Move the declaration of the loop variable
3372 `iter` into the loop header.
3373 (jit_breakpoint_re_set_internal): Move the declaration of the local
3374 variable `objf_data` to the first point of definition.
3375 (jit_event_handler): Move the declaration of local variables
3376 `code_entry`, `entry_addr`, and `objf` to their first point of use.
3377 Rename `objf` to `jited`.
3378
3379 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3380
3381 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
3382 Remove.
3383 * jit.c (get_jiter_objfile_data): Update.
3384
3385 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3386 Simon Marchi <simon.marchi@polymtl.ca>
3387
3388 * jit.c (struct jit_program_space_data): Remove.
3389 (jit_program_space_key): Remove.
3390 (jiter_objfile_data::~jiter_objfile_data): Remove program space
3391 stuff.
3392 (get_jit_program_space_data): Remove.
3393 (jit_breakpoint_deleted): Iterate on all of the program space's
3394 objfiles.
3395 (jit_inferior_init): Likewise.
3396 (jit_breakpoint_re_set_internal): Likewise. Also change return
3397 type to void.
3398 (jit_breakpoint_re_set): Pass current_program_space to
3399 jit_breakpoint_re_set_internal.
3400
3401 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3402
3403 * jit.h (struct jiter_objfile_data) <cached_code_address,
3404 jit_breakpoint>: Move to here from ...
3405 * jit.c (jit_program_space_data): ... here.
3406 (jiter_objfile_data::~jiter_objfile_data): Update.
3407 (jit_breakpoint_deleted): Update.
3408 (jit_breakpoint_re_set_internal): Update.
3409
3410 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3411
3412 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
3413 checks.
3414 (jit_read_descriptor): Remove NULL check.
3415 (jit_event_handler): Add an assertion.
3416
3417 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3418
3419 * jit.h (struct jit_objfile_data): Split into...
3420 (struct jiter_objfile_data): ... this ...
3421 (struct jited_objfile_data): ... and this.
3422 * objfiles.h (struct objfile) <jit_data>: Remove.
3423 <jiter_data, jited_data>: New fields.
3424 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
3425 (jiter_objfile_data::~jiter_objfile_data): ... this.
3426 (get_jit_objfile_data): Rename to ...
3427 (get_jiter_objfile_data): ... this.
3428 (add_objfile_entry): Update.
3429 (jit_read_descriptor): Use get_jiter_objfile_data.
3430 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
3431 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
3432 (jit_inferior_exit_hook): Use objfile's jited_data field.
3433
3434 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3435
3436 * jit.h: Forward-declare `struct minimal_symbol`.
3437 (struct jit_objfile_data): Migrate to here from jit.c; also add a
3438 constructor, destructor, and an objfile* field.
3439 * jit.c (jit_objfile_data): Remove.
3440 (struct jit_objfile_data): Migrate from here to jit.h.
3441 (jit_objfile_data::~jit_objfile_data): New destructor
3442 implementation with code moved from free_objfile_data.
3443 (free_objfile_data): Delete.
3444 (get_jit_objfile_data): Update to use the jit_data field of objfile.
3445 (jit_find_objf_with_entry_addr): Ditto.
3446 (jit_inferior_exit_hook): Ditto.
3447 (_initialize_jit): Remove the call to
3448 register_objfile_data_with_cleanup.
3449 * objfiles.h (struct objfile) <jit_data>: New field.
3450
3451 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3452
3453 * jit.h: Forward-declare `struct objfile`.
3454 (jit_event_handler): Add a second parameter, the JITer objfile.
3455 * jit.c (jit_read_descriptor): Change the signature to take the
3456 JITer objfile as an argument instead of the jit_program_space_data.
3457 (jit_inferior_init): Update the call to jit_read_descriptor.
3458 (jit_event_handler): Use the new JITer objfile argument when calling
3459 jit_read_descriptor.
3460 * breakpoint.c (handle_jit_event): Update the call to
3461 jit_event_handler to pass the JITer objfile.
3462
3463 2020-07-21 John Baldwin <jhb@FreeBSD.org>
3464
3465 * gdbarch.c: Regenerate.
3466 * gdbarch.h: Regenerate.
3467 * gdbarch.sh (handle_segmentation_fault): Remove method.
3468 * infrun.c (handle_segmentation_fault): Remove.
3469 (print_signal_received_reason): Remove call to
3470 handle_segmentation_fault.
3471
3472 2020-07-21 John Baldwin <jhb@FreeBSD.org>
3473
3474 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
3475 Rename to sparc64_linux_report_signal_info and add siggnal
3476 argument.
3477 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
3478 instead of sparc64_linux_handle_segmentation_fault.
3479
3480 2020-07-21 John Baldwin <jhb@FreeBSD.org>
3481
3482 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
3483 i386_linux_report_signal_info instead of
3484 i386_linux_handle_segmentation_fault.
3485 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
3486 to i386_linux_report_signal_info and add siggnal argument.
3487 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
3488 of i386_linux_handle_segmentation_fault.
3489 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
3490 to i386_linux_report_signal_info and add siggnal argument.
3491
3492 2020-07-21 John Baldwin <jhb@FreeBSD.org>
3493
3494 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
3495 hook if present.
3496
3497 2020-07-21 John Baldwin <jhb@FreeBSD.org>
3498
3499 * gdbarch.c: Regenerate.
3500 * gdbarch.h: Regenerate.
3501 * gdbarch.sh (report_signal_info): New method.
3502 * infrun.c (print_signal_received_reason): Invoke gdbarch
3503 report_signal_info hook if present.
3504
3505 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
3506
3507 * python/py-registers.c : Add 'unordered_map' include.
3508 (gdbpy_new_reggroup): Renamed to...
3509 (gdbpy_get_reggroup): ...this. Update to only create register
3510 group descriptors when needed.
3511 (gdbpy_reggroup_iter_next): Update.
3512
3513 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
3514
3515 * python/py-registers.c (gdbpy_register_object_data): New static
3516 global.
3517 (gdbpy_register_object_data_init): New function.
3518 (gdbpy_new_register_descriptor): Renamed to...
3519 (gdbpy_get_register_descriptor): ...this, and update to reuse
3520 existing register descriptors where possible.
3521 (gdbpy_register_descriptor_iter_next): Update.
3522 (gdbpy_initialize_registers): Register new gdbarch data.
3523
3524 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
3525
3526 * linux-nat.c (stopped_pids): Make static.
3527
3528 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
3529
3530 PR ada/26235
3531 * gdbtypes.c (ada_discrete_type_low_bound,
3532 ada_discrete_type_high_bound): Handle undefined bounds.
3533
3534 2020-07-21 Kamil Rytarowski <n54@gmx.com>
3535
3536 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
3537 declaration.
3538 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
3539 function.
3540
3541 2020-07-20 John Baldwin <jhb@FreeBSD.org>
3542
3543 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
3544 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
3545 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
3546 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
3547 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
3548 method.
3549
3550 2020-07-20 Ludovic Courtès <ludo@gnu.org>
3551
3552 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
3553 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
3554 which are deprecated in Guile 3.0.
3555 * configure.ac (try_guile_versions): Add "guile-3.0".
3556 * configure (try_guile_versions): Regenerate.
3557 * NEWS: Update entry.
3558
3559 2020-07-20 Ludovic Courtès <ludo@gnu.org>
3560 Doug Evans <dje@google.com>
3561
3562 PR gdb/21104
3563 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
3564 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
3565 USING_GUILE_BEFORE_2_2.
3566 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
3567 Change type to 'scm_t_port_type *'.
3568 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
3569 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
3570 parameter and honor it. Update callers.
3571 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
3572 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
3573 functions.
3574 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
3575 USING_GUILE_BEFORE_2_2.
3576 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
3577 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
3578 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
3579 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
3580 and 'SCM_PORT_TYPE'.
3581 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
3582 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
3583 (gdbscm_memory_port_read, gdbscm_memory_port_write)
3584 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
3585 [!USING_GUILE_BEFORE_2_2]: New functions.
3586 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
3587 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
3588 'gdbscm_memory_port_read'.
3589 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
3590 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
3591 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
3592 function.
3593 (ioscm_init_memory_port): Remove.
3594 (ioscm_init_memory_port_stream): New function
3595 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
3596 function.
3597 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
3598 Return scm_from_uint (0).
3599 (gdbscm_set_memory_port_read_buffer_size_x)
3600 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
3601 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
3602 Return scm_from_uint (0).
3603 (gdbscm_set_memory_port_write_buffer_size_x)
3604 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
3605 * configure.ac (try_guile_versions): Add "guile-2.2".
3606 * configure: Regenerate.
3607 * NEWS: Add entry.
3608
3609 2020-07-18 Tom Tromey <tom@tromey.com>
3610
3611 * linux-nat.c (linux_multi_process): Remove.
3612 (linux_nat_target::supports_multi_process): Return true.
3613
3614 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
3615
3616 * arch/riscv.c (riscv_tdesc_cache): Change map type.
3617 (riscv_lookup_target_description): Return pointer out of
3618 unique_ptr.
3619 * target-descriptions.c (allocate_target_description): Add
3620 comment.
3621 (target_desc_deleter::operator()): Likewise.
3622 * target-descriptions.h (struct target_desc_deleter): Moved to
3623 gdbsupport/tdesc.h.
3624 (target_desc_up): Likewise.
3625
3626 2020-07-17 Tom Tromey <tromey@adacore.com>
3627
3628 * linux-nat.c (linux_nat_target::supports_non_stop)
3629 (linux_nat_target::always_non_stop_p): Use "true".
3630 (linux_nat_target::supports_disable_randomization): Use "true" and
3631 "false".
3632
3633 2020-07-16 Caroline Tice <cmtice@google.com>
3634
3635 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
3636 (RNGLIST_HEADER_SIZE64): New constant definition.
3637 (struct dwop_section_names): Add rnglists_dwo.
3638 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
3639 (struct loclist_header): Rename to 'loclists_rnglists_header'.
3640 (struct dwo_sections): Add rnglists field.
3641 (read_attribut_reprocess): Add tag parameter.
3642 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
3643 (cu_debug_rnglists_section): New function (decl & definition).
3644 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
3645 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
3646 die whose range is being checked; get rnglist section from
3647 cu_debug_rnglists_section, to get from either objfile or dwo file as
3648 appropriate. Add cases for DW_RLE_base_addressx,
3649 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
3650 the base address to DW_RLE_offset_pairs (not to all ranges), moving
3651 test inside if-condition and updating complaint message.
3652 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
3653 dwarf2_rnglists_process.
3654 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
3655 dwarf2_ranges_process.
3656 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
3657 need_ranges_base and update comment appropriately. Also pass die tag
3658 to dwarf2_ranges_read.
3659 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
3660 need_ranges_base and update comment appropriately. Also pass die tag
3661 to dwarf2_ranges_process.
3662 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
3663 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
3664 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
3665 need_ranges_base and update comment appropriately. Also pass die tag
3666 to read_attribute_reprocess and dwarf2_ranges_read.
3667 (read_loclist_header): Rename function to read_loclists_rnglists_header,
3668 and update function comment appropriately.
3669 (read_loclist_index): Call read_loclists_rnglists_header instead of
3670 read_loclist_header.
3671 (read_rnglist_index): New function.
3672 (read_attribute_reprocess): Add tag parameter. Add code for
3673 DW_FORM_rnglistx, passing tag to read_rnglist_index.
3674 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
3675
3676 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
3677
3678 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
3679 being resolved.
3680
3681 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
3682
3683 * arch-utils.c (show_architecture): Update formatting of messages.
3684
3685 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3686
3687 * gdbtypes.h (struct type) <bounds>: Handle array and string
3688 types.
3689 * ada-lang.c (assign_aggregate): Use type::bounds on
3690 array/string type.
3691 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
3692 * c-varobj.c (c_number_of_children): Likewise.
3693 (c_describe_child): Likewise.
3694 * eval.c (evaluate_subexp_for_sizeof): Likewise.
3695 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
3696 (f_type_print_base): Likewise.
3697 * f-valprint.c (f77_array_offset_tbl): Likewise.
3698 (f77_get_upperbound): Likewise.
3699 (f77_print_array_1): Likewise.
3700 * guile/scm-type.c (gdbscm_type_range): Likewise.
3701 * m2-typeprint.c (m2_array): Likewise.
3702 (m2_is_long_set_of_type): Likewise.
3703 * m2-valprint.c (get_long_set_bounds): Likewise.
3704 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
3705 * python/py-type.c (typy_range): Likewise.
3706 * rust-lang.c (rust_internal_print_type): Likewise.
3707 * type-stack.c (type_stack::follow_types): Likewise.
3708 * valarith.c (value_subscripted_rvalue): Likewise.
3709 * valops.c (value_cast): Likewise.
3710
3711 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3712
3713 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
3714 callers to use the equivalent accessor methods.
3715
3716 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3717
3718 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
3719 (struct type) <bit_stride>: New method.
3720 (TYPE_BIT_STRIDE): Remove.
3721 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
3722
3723 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3724
3725 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
3726 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
3727 callers to use the equivalent accessor methods instead.
3728
3729 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3730
3731 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
3732 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
3733 callers to use the equivalent accessor methods instead.
3734
3735 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3736
3737 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
3738 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
3739 to use dynamic_prop::kind.
3740
3741 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3742
3743 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
3744 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
3745 to get the bound property's kind and check against
3746 PROP_UNDEFINED.
3747
3748 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3749
3750 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
3751 all callers to use type::range_bounds followed by
3752 dynamic_prop::{low,high}.
3753
3754 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
3755
3756 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
3757 const_val, set_const_val, baton, set_locexpr, set_loclist,
3758 set_addr_offset, variant_parts, set_variant_parts,
3759 original_type, set_original_type>: New methods.
3760 <kind>: Rename to...
3761 <m_kind>: ... this. Update all users to use the new methods
3762 instead.
3763 <data>: Rename to...
3764 <m_data>: ... this. Update all users to use the new methods
3765 instead.
3766
3767 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3768
3769 * gdbtypes.c (get_discrete_bounds): Return failure if
3770 the range type's bounds are not both defined and constant
3771 values.
3772 (get_array_bounds): Update comment. Remove undefined bound check.
3773
3774 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
3775
3776 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
3777 the type::bounds method directly.
3778
3779 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3780
3781 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
3782 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
3783 are used to set the range type's bounds to use set_bounds.
3784
3785 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3786
3787 * exec.c (_initialize_exec): Update exec-file-mismatch help.
3788
3789 2020-07-10 Pedro Alves <pedro@palves.net>
3790
3791 * gdbthread.h (inferior_ref): Define.
3792 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
3793 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
3794 * thread.c
3795 (scoped_restore_current_thread::restore):
3796 Adjust to gdb::ref_ptr.
3797 (scoped_restore_current_thread::~scoped_restore_current_thread):
3798 Remove manual decref handling.
3799 (scoped_restore_current_thread::scoped_restore_current_thread):
3800 Adjust to use
3801 inferior_ref::new_reference/thread_info_ref::new_reference.
3802 Incref the thread before calling get_frame_id instead of after.
3803 Let TARGET_CLOSE_ERROR propagate.
3804
3805 2020-07-10 Pedro Alves <pedro@palves.net>
3806
3807 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
3808 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
3809 NOT_AVAILABLE_ERROR.
3810 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
3811 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
3812
3813 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3814 Pedro Alves <pedro@palves.net>
3815
3816 PR gdb/26199
3817 * infrun.c (threads_are_resumed_pending_p): Delete.
3818 (do_target_wait): Remove threads_are_executing and
3819 threads_are_resumed_pending_p checks from the inferior_matches
3820 lambda. Update comments.
3821
3822 2020-07-10 Pedro Alves <pedro@palves.net>
3823
3824 PR gdb/26199
3825 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
3826 executing threads.
3827
3828 2020-07-10 Pedro Alves <pedro@palves.net>
3829
3830 PR gdb/26199
3831 * infrun.c (handle_no_resumed): Handle multiple targets.
3832
3833 2020-07-10 Pedro Alves <pedro@palves.net>
3834
3835 PR gdb/26199
3836 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
3837 target_is_async_p.
3838
3839 2020-07-10 Pedro Alves <pedro@palves.net>
3840
3841 PR gdb/26199
3842 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
3843 threads, not all threads.
3844
3845 2020-07-10 Pedro Alves <pedro@palves.net>
3846
3847 PR gdb/26199
3848 * remote.c (remote_target::open_1): Pass remote target pointer as
3849 data to create_async_event_handler.
3850 (remote_async_inferior_event_handler): Mark async event handler
3851 before returning if the remote target still has either pending
3852 events or unacknowledged notifications.
3853
3854 2020-07-10 John Baldwin <jhb@FreeBSD.org>
3855
3856 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
3857 declaration.
3858 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
3859 function.
3860
3861 2020-07-09 John Baldwin <jhb@FreeBSD.org>
3862
3863 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
3864 inferior_ptid.
3865
3866 2020-07-09 John Baldwin <jhb@FreeBSD.org>
3867
3868 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
3869 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
3870 AT_FREEBSD_PS_STRINGS.
3871
3872 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
3873
3874 * auto-load.c (auto_load_objfile_script_1): Convert drive part
3875 of debugfile path on Windows.
3876
3877 2020-07-08 John Baldwin <jhb@FreeBSD.org>
3878
3879 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
3880 argument to 'data'.
3881
3882 2020-07-08 Tom Tromey <tromey@adacore.com>
3883
3884 * ada-lang.c (ada_exception_message_1): Use read_memory.
3885
3886 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3887
3888 PR python/22748
3889 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
3890 special handling for inline frames.
3891 * findvar.c (value_of_register_lazy): Skip inline frames when
3892 creating lazy register values.
3893 * frame.c (frame_id_computed_p): Delete definition.
3894 * frame.h (frame_id_computed_p): Delete declaration.
3895
3896 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3897
3898 * NEWS: Mention additions to Python API.
3899 * python/py-arch.c (archpy_register_groups): New function.
3900 (arch_object_methods): Add 'register_groups' method.
3901 * python/py-registers.c (reggroup_iterator_object): New struct.
3902 (reggroup_object): New struct.
3903 (gdbpy_new_reggroup): New function.
3904 (gdbpy_reggroup_to_string): New function.
3905 (gdbpy_reggroup_name): New function.
3906 (gdbpy_reggroup_iter): New function.
3907 (gdbpy_reggroup_iter_next): New function.
3908 (gdbpy_new_reggroup_iterator): New function
3909 (gdbpy_initialize_registers): Register new types.
3910 (reggroup_iterator_object_type): Define new Python type.
3911 (gdbpy_reggroup_getset): New static global.
3912 (reggroup_object_type): Define new Python type.
3913 * python/python-internal.h
3914
3915 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3916
3917 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
3918 * python/py-arch.c (archpy_registers): New function.
3919 (arch_object_methods): Add 'registers' method.
3920 * python/py-registers.c: New file.
3921 * python/python-internal.h
3922 (gdbpy_new_register_descriptor_iterator): Declare.
3923 (gdbpy_initialize_registers): Declare.
3924 * python/python.c (do_start_initialization): Call
3925 gdbpy_initialize_registers.
3926 * NEWS: Mention additions to the Python API.
3927
3928 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3929
3930 * NEWS: Mention new Python API method.
3931 * python/py-unwind.c (pending_framepy_architecture): New function.
3932 (pending_frame_object_methods): Add architecture method.
3933
3934 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3935
3936 * gdbarch.c: Regenerate.
3937 * gdbarch.h: Regenerate.
3938 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
3939 (gdbarch_data): Use internal_error for the case where
3940 deprecated_set_gdbarch_data was originally needed.
3941 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
3942 and use passed in obstack.
3943 (libunwind_frame_set_descr): Should no longer get back NULL from
3944 gdbarch_data.
3945 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
3946 type.
3947 * user-regs.c (user_regs_init): Update parameters, and use passed
3948 in obstack.
3949 (user_reg_add): Should no longer get back NULL from gdbarch_data.
3950 (_initialize_user_regs): Register as a pre-init gdbarch data type.
3951
3952 2020-07-06 Tom de Vries <tdevries@suse.de>
3953
3954 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
3955 End-Of-Sequence in lte_is_less_than.
3956 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
3957 "gdb: Don't reorder line table entries too much when sorting".
3958
3959 2020-07-06 Tom de Vries <tdevries@suse.de>
3960
3961 PR tui/26205
3962 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
3963
3964 2020-07-05 Tom de Vries <tdevries@suse.de>
3965
3966 PR build/26187
3967 * inferior.h (struct infcall_suspend_state_deleter): If available, use
3968 std::uncaught_exceptions instead of deprecated
3969 std::uncaught_exception.
3970
3971 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3972
3973 * macroexp.h (macro_stringify): Return
3974 gdb::unique_xmalloc_ptr<char>.
3975 * macroexp.c (macro_stringify): Likewise.
3976 * macrotab.c (fixup_definition): Update.
3977
3978 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3979
3980 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
3981 (lex_one_token): Update.
3982 * macroexp.c (struct macro_buffer) <release>: Return
3983 gdb::unique_xmalloc_ptr<char>.
3984 (macro_stringify): Update.
3985 (macro_expand): Update.
3986 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
3987 * macroexp.h (macro_expand_next): Likewise.
3988
3989 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
3990
3991 * macroexp.h (macro_lookup_ftype): Remove.
3992 (macro_expand, macro_expand_once, macro_expand_next): Remove
3993 lookup function parameters, add scope parameter.
3994 * macroexp.c (scan, substitute_args, expand, maybe_expand,
3995 macro_expand, macro_expand_once, macro_expand_next): Likewise.
3996 * macroscope.h (standard_macro_lookup): Change parameter type
3997 to macro_scope.
3998 * macroscope.c (standard_macro_lookup): Likewise.
3999 * c-exp.y (lex_one_token): Update.
4000 * macrocmd.c (macro_expand_command): Likewise.
4001 (macro_expand_once_command): Likewise.
4002
4003 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4004
4005 * inf-loop.c (inferior_event_handler): Remove client_data param.
4006 * inf-loop.h (inferior_event_handler): Likewise.
4007 * infcmd.c (step_1): Adjust.
4008 * infrun.c (proceed): Adjust.
4009 (fetch_inferior_event): Remove client_data param.
4010 (infrun_async_inferior_event_handler): Adjust.
4011 * infrun.h (fetch_inferior_event): Remove `void *` param.
4012 * linux-nat.c (handle_target_event): Adjust.
4013 * record-btrace.c (record_btrace_handle_async_inferior_event):
4014 Adjust.
4015 * record-full.c (record_full_async_inferior_event_handler):
4016 Adjust.
4017 * remote.c (remote_async_inferior_event_handler): Adjust.
4018
4019 2020-07-01 Tom Tromey <tom@tromey.com>
4020
4021 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
4022 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
4023
4024 2020-07-01 Tom Tromey <tom@tromey.com>
4025
4026 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
4027 tui_gen_win_info.
4028 (tui_win_info::make_window): Merge with
4029 tui_gen_win_info::make_window.
4030 (tui_win_info::make_visible): Move from tui_gen_win_info.
4031 * tui/tui-win.c (tui_win_info::max_width): Move from
4032 tui_gen_win_info.
4033 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
4034 type.
4035 <window_factory>: Likewise.
4036 * tui/tui-layout.c (tui_win_info::resize): Move from
4037 tui_gen_win_info.
4038 (make_standard_window): Change return type.
4039 (get_locator_window, tui_get_window_by_name): Likewise.
4040 (tui_layout_window::apply): Remove a cast.
4041 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
4042 (struct tui_win_info): Merge with tui_gen_win_info.
4043 (struct tui_gen_win_info): Remove.
4044
4045 2020-07-01 Tom Tromey <tom@tromey.com>
4046
4047 * tui/tui-stack.h (struct tui_locator_window): Derive from
4048 tui_win_info.
4049 <do_scroll_horizontal, do_scroll_vertical>: New methods.
4050 <can_box>: New method.
4051
4052 2020-07-01 Tom Tromey <tom@tromey.com>
4053
4054 * tui/tui-stack.h (struct tui_locator_window): Remove body.
4055
4056 2020-07-01 Tom Tromey <tom@tromey.com>
4057
4058 * tui/tui-regs.c (tui_data_window::display_registers_from)
4059 (tui_data_window::display_registers_from)
4060 (tui_data_window::first_data_item_displayed)
4061 (tui_data_window::delete_data_content_windows): Update.
4062 (tui_data_window::refresh_window, tui_data_window::no_refresh):
4063 Remove.
4064 (tui_data_window::check_register_values): Update.
4065 (tui_data_item_window::rerender): Add parameters. Update.
4066 (tui_data_item_window::refresh_window): Remove.
4067 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
4068 virtual.
4069 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
4070 tui_gen_win_info.
4071 <refresh_window, max_height, min_height>: Remove.
4072 <rerender>: Add parameters.
4073 <x, y, visible>: New members.
4074 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
4075 <m_item_width>: New member.
4076
4077 2020-07-01 Tom Tromey <tom@tromey.com>
4078
4079 * tui/tui-regs.c (tui_data_window::show_register_group)
4080 (tui_data_window::check_register_values): Update.
4081 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
4082 from item_no.
4083
4084 2020-07-01 Tom Tromey <tom@tromey.com>
4085
4086 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
4087 useless "if".
4088
4089 2020-07-01 Tom Tromey <tom@tromey.com>
4090
4091 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
4092 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
4093
4094 2020-07-01 Tom Tromey <tom@tromey.com>
4095
4096 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
4097 * tui/tui-winsource.h (enum tui_line_or_address_kind)
4098 (struct tui_line_or_address): Move from tui-data.h.
4099 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
4100 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
4101 (tui_cmd_window, tui_source_window_base, tui_source_window)
4102 (tui_disasm_window): Don't declare.
4103 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
4104 to tui-winsource.h.
4105 (SINGLE_KEY): Move to tui-stack.c.
4106
4107 2020-07-01 Tom Tromey <tom@tromey.com>
4108
4109 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
4110 std::string.
4111 * tui/tui-regs.c (class tab_expansion_file): New.
4112 (tab_expansion_file::write): New method.
4113 (tui_register_format): Change return type. Use
4114 tab_expansion_file.
4115 (tui_get_register, tui_data_window::display_registers_from)
4116 (tui_data_item_window::rerender): Update.
4117 * tui/tui-io.h (tui_expand_tabs): Don't declare.
4118 * tui/tui-io.c (tui_expand_tabs): Remove.
4119
4120 2020-07-01 Tom Tromey <tom@tromey.com>
4121
4122 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
4123
4124 2020-07-01 Fangrui Song <maskray@google.com>
4125
4126 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
4127
4128 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4129
4130 * dwarf2/read.c (set_die_type): Removed conditions to restrict
4131 forms for DW_AT_associated and DW_AT_allocated attributes,
4132 which is already checked in function attr_to_dynamic_prop.
4133
4134 2020-06-30 Tom Tromey <tromey@adacore.com>
4135
4136 * dwarf2/read.c (quirk_rust_enum): Correctly call
4137 alloc_rust_variant for default-less enum.
4138
4139 2020-06-30 Tom Tromey <tromey@adacore.com>
4140
4141 PR build/26183:
4142 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
4143 gdb::to_string.
4144
4145 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
4146
4147 * gdbarch.sh (displaced_step_copy_insn): Update doc.
4148 * gdbarch.h: Re-generate.
4149
4150 2020-06-28 Tom Tromey <tom@tromey.com>
4151
4152 * command.h (cmd_types): Remove.
4153 (cmd_type): Don't declare.
4154 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
4155 typedef.
4156 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
4157 * cli/cli-decode.c (cmd_type): Remove.
4158
4159 2020-06-27 Pedro Alves <palves@redhat.com>
4160
4161 * fork-child.c (prefork_hook): Adjust.
4162 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
4163 Delete.
4164 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
4165 * inferior.c (inferior::set_tty, inferior::tty): New methods.
4166 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
4167 Remove declarations.
4168 (struct inferior) <set_tty, tty>: New methods.
4169 (struct inferior) <terminal>: Rename to ...
4170 (struct inferior) <m_terminal>: ... this and make private.
4171 * main.c (captured_main_1): Adjust.
4172 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
4173 (mi_cmd_inferior_tty_show): Adjust.
4174 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
4175 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
4176
4177 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
4178
4179 * configure.ac: Add --enable-libctf: handle --disable-static
4180 properly.
4181 * acinclude.m4: sinclude ../config/enable.m4.
4182 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
4183 (LIBCTF): Substitute in.
4184 (CTF_DEPS): New, likewise.
4185 (CLIBS): libctf needs symbols from libbfd: move earlier.
4186 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
4187 flags.
4188 * ctfread.c: Surround in ENABLE_LIBCTF.
4189 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
4190 * configure: Regenerate.
4191 * config.in: Likewise.
4192
4193 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
4194
4195 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
4196
4197 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
4198
4199 * inferior.h (struct inferior) <terminal>: Change type to
4200 gdb::unique_xmalloc_ptr<char>.
4201 * inferior.c (inferior::~inferior): Don't free inf->terminal.
4202 * infcmd.c (set_inferior_io_terminal): Don't free terminal
4203 field, adjust to unique pointer.
4204 (get_inferior_io_terminal): Adjust to unique pointer.
4205
4206 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4207
4208 * riscv-tdep.c (riscv_print_registers_info): Loop over all
4209 registers, not just the known core set of registers.
4210
4211 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4212
4213 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
4214 fflags, frm, and fcsr registers.
4215 (riscv_register_reggroup_p): Remove unknown CSRs from save and
4216 restore groups.
4217 (riscv_tdesc_unknown_reg): New function.
4218 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
4219 tdesc_use_registers.
4220 * riscv-tdep.h (struct gdbarch_tdep): Add
4221 unknown_csrs_first_regnum, unknown_csrs_count,
4222 duplicate_fflags_regnum, duplicate_frm_regnum, and
4223 duplicate_fcsr_regnum fields.
4224
4225 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4226
4227 * target-descriptions.c (tdesc_use_registers): Add new parameter a
4228 callback, use the callback (when not null) to help number unknown
4229 registers.
4230 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
4231 (tdesc_use_registers): Add extra parameter to declaration.
4232
4233 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4234
4235 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
4236 in the file.
4237 (class riscv_pending_register_alias): Likewise.
4238 (riscv_register_feature::register_info): Change 'required_p' field
4239 to 'required', and change its type. Add 'check' member function.
4240 (riscv_register_feature::register_info::check): Define new member
4241 function.
4242 (riscv_xreg_feature): Change initialisation of 'required' field.
4243 (riscv_freg_feature): Likewise.
4244 (riscv_virtual_feature): Likewise.
4245 (riscv_csr_feature): Likewise.
4246 (riscv_check_tdesc_feature): Take extra parameter, the csr
4247 tdesc_feature, rewrite the function to use the new
4248 riscv_register_feature::register_info::check function.
4249 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
4250
4251 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4252
4253 * features/Makefile: Remove all references to the deleted files
4254 below.
4255 * features/riscv/32bit-csr.c: Deleted.
4256 * features/riscv/32bit-csr.xml: Deleted.
4257 * features/riscv/64bit-csr.c: Deleted.
4258 * features/riscv/64bit-csr.xml: Deleted.
4259 * features/riscv/rebuild-csr-xml.sh: Deleted.
4260
4261 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4262
4263 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
4264 whitespace error for declaration of names member variable.
4265 (struct riscv_register_feature): Add new prefer_first_name member
4266 variable, and fix whitespace error in declaration of registers.
4267 (riscv_xreg_feature): Initialize prefer_first_name field.
4268 (riscv_freg_feature): Likewise.
4269 (riscv_virtual_feature): Likewise.
4270 (riscv_csr_feature): Likewise.
4271 (riscv_register_name): Expand on comments. Remove register name
4272 modifications for CSR and virtual registers.
4273
4274 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4275
4276 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
4277 errors.
4278
4279 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4280
4281 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
4282 riscv-opc.h.
4283 (class riscv_pending_register_alias): New class.
4284 (riscv_check_tdesc_feature): Take vector of pending aliases and
4285 populate it as appropriate.
4286 (riscv_setup_register_aliases): Delete.
4287 (riscv_gdbarch_init): Create vector of pending aliases and pass it
4288 to riscv_check_tdesc_feature in all cases. Use the vector to
4289 create the register aliases.
4290
4291 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4292
4293 * sol2-tdep.c (sol2_static_transform_name): Remove.
4294 (sol2_init_abi): Don't register it.
4295 * gdbarch.sh (static_transform_name): Remove.
4296 * gdbarch.c, gdbarch.h: Regenerate.
4297
4298 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
4299 gdbarch_static_transform_name.
4300 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
4301 * stabsread.c (define_symbol) <'X'>: Remove.
4302 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
4303 handling.
4304 <'V'>: Likewise.
4305 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
4306 <'S'>: Remove call to gdbarch_static_transform_name.
4307
4308 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4309
4310 * procfs.c (procfs_pre_trace): New function.
4311 (procfs_target::create_inferior): Pass it to fork_inferior.
4312
4313 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4314
4315 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
4316 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
4317 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
4318 sol2-tdep.o, sparc-sol2-tdep.o.
4319 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
4320 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
4321 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
4322 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
4323
4324 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4325
4326 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
4327 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
4328 Call sol2_init_abi.
4329 Remove calls to set_gdbarch_skip_solib_resolver,
4330 set_gdbarch_core_pid_to_str.
4331 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
4332 (i386_sol2_static_transform_name): Remove.
4333 (i386_sol2_init_abi): Call sol2_init_abi.
4334 Remove calls to set_gdbarch_sofun_address_maybe_missing,
4335 set_gdbarch_static_transform_name,
4336 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
4337 Use sol2_sigtramp_p.
4338 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
4339 (sol2_sigtramp_p): New function.
4340 (sol2_static_transform_name): New function.
4341 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
4342 (sol2_init_abi): New function.
4343 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
4344 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
4345 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
4346 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
4347 (sparc_sol2_static_transform_name): Remove.
4348 (sparc32_sol2_init_abi): Call sol2_init_abi.
4349 Remove calls to set_gdbarch_sofun_address_maybe_missing,
4350 set_gdbarch_static_transform_name,
4351 set_gdbarch_skip_solib_resolver,
4352 set_gdbarch_core_pid_to_str.
4353 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
4354 (sparc_sol2_static_transform_name): Remove
4355 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
4356 call sol2_sigtramp_p.
4357 (sparc64_sol2_init_abi): Call sol2_init_abi.
4358 Remove calls to set_gdbarch_sofun_address_maybe_missing,
4359 set_gdbarch_static_transform_name,
4360 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
4361
4362 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4363
4364 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
4365 * exec.c (validate_exec_file): If from_tty, set both
4366 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
4367 * symfile.c (symbol_file_add_with_addrs): if always_confirm
4368 and from_tty, unconditionally ask a confirmation.
4369
4370 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4371
4372 * target-descriptions.c (tdesc_architecture_name): Protect against
4373 NULL pointer dereference.
4374 (maint_print_xml_tdesc_cmd): New function.
4375 (_initialize_target_descriptions): Register new 'maint print
4376 xml-tdesc' command and give it the filename completer.
4377 * NEWS: Mention new 'maint print xml-tdesc' command.
4378
4379 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4380
4381 * target-descriptions.c (class tdesc_compatible_info): New class.
4382 (struct target_desc): Change type of compatible vector.
4383 (tdesc_compatible_p): Update for change in type of
4384 target_desc::compatible.
4385 (tdesc_compatible_info_list): New function.
4386 (tdesc_compatible_info_arch_name): New function.
4387 (tdesc_add_compatible): Update for change in type of
4388 target_desc::compatible.
4389 (print_c_tdesc::visit_pre): Likewise.
4390
4391 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4392
4393 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
4394 whitespace to underscore.
4395 (maint_print_c_tdesc_cmd): Use fake filename for target
4396 descriptions that came from the target.
4397 (_initialize_target_descriptions): Add filename command completion
4398 for 'maint print c-tdesc'.
4399
4400 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
4401
4402 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
4403 lines.
4404
4405 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
4406
4407 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
4408 lines.
4409 (dwarf2_find_location_expression): Likewise.
4410 (call_site_parameter_matches): Likewise.
4411 (dwarf2_compile_expr_to_ax): Likewise.
4412 (disassemble_dwarf_expression): Likewise.
4413 (loclist_describe_location): Likewise.
4414
4415 2020-06-23 Pedro Alves <palves@redhat.com>
4416
4417 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
4418 progspace-and-thread.h. Include scoped-mock-context.h instead.
4419 (register_to_value_test): Use scoped_mock_context.
4420 * regcache.c: Include "scoped-mock-context.h".
4421 (cooked_read_test): Don't error out if a target is already pushed.
4422 Use scoped_mock_context. Adjust.
4423 * scoped-mock-context.h: New file.
4424
4425 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4426
4427 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
4428 initializer.
4429 (ada_language::is_string_type_p): New member function.
4430 * c-lang.c (c_language_data): Delete la_is_string_type_p
4431 initializer.
4432 (cplus_language_data): Likewise.
4433 (asm_language_data): Likewise.
4434 (minimal_language_data): Likewise.
4435 * d-lang.c (d_language_data): Likewise.
4436 * f-lang.c (f_is_string_type_p): Delete function, implementation
4437 moved to f_language::is_string_type_p.
4438 (f_language_data): Delete la_is_string_type_p initializer.
4439 (f_language::is_string_type_p): New member function,
4440 implementation from f_is_string_type_p.
4441 * go-lang.c (go_is_string_type_p): Delete function, implementation
4442 moved to go_language::is_string_type_p.
4443 (go_language_data): Delete la_is_string_type_p initializer.
4444 (go_language::is_string_type_p): New member function,
4445 implementation from go_is_string_type_p.
4446 * language.c (language_defn::is_string_type_p): Define new member
4447 function.
4448 (default_is_string_type_p): Make static, add comment copied from
4449 header file.
4450 (unknown_language_data): Delete la_is_string_type_p initializer.
4451 (unknown_language::is_string_type_p): New member function.
4452 (auto_language_data): Delete la_is_string_type_p initializer.
4453 (auto_language::is_string_type_p): New member function.
4454 * language.h (language_data): Delete la_is_string_type_p field.
4455 (language_defn::is_string_type_p): Declare new function.
4456 (default_is_string_type_p): Delete desclaration, move comment to
4457 definition.
4458 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
4459 moved to m2_language::is_string_type_p.
4460 (m2_language_data): Delete la_is_string_type_p initializer.
4461 (m2_language::is_string_type_p): New member function,
4462 implementation from m2_is_string_type_p.
4463 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
4464 initializer.
4465 * opencl-lang.c (opencl_language_data): Likewise.
4466 * p-lang.c (pascal_is_string_type_p): Delete function,
4467 implementation moved to pascal_language::is_string_type_p.
4468 (pascal_language_data): Delete la_is_string_type_p initializer.
4469 (pascal_language::is_string_type_p): New member function,
4470 implementation from pascal_is_string_type_p.
4471 * rust-lang.c (rust_is_string_type_p): Delete function,
4472 implementation moved to rust_language::is_string_type_p.
4473 (rust_language_data): Delete la_is_string_type_p initializer.
4474 (rust_language::is_string_type_p): New member function,
4475 implementation from rust_is_string_type_p.
4476 * valprint.c (val_print_scalar_or_string_type_p): Update call to
4477 is_string_type_p.
4478
4479 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4480
4481 * ada-lang.c (ada_language_data): Delete la_print_typedef
4482 initializer.
4483 (ada_language::print_typedef): New member function.
4484 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
4485 (cplus_language_data): Likewise.
4486 (asm_language_data): Likewise.
4487 (minimal_language_data): Likewise.
4488 * d-lang.c (d_language_data): Likewise.
4489 * f-lang.c (f_language_data): Likewise.
4490 (f_language::print_typedef): New member function.
4491 * go-lang.c (go_language_data): Delete la_print_typedef
4492 initializer.
4493 * language.c (language_defn::print_typedef): Define member
4494 function.
4495 (unknown_language_data): Delete la_print_typedef initializer.
4496 (unknown_language::print_typedef): New member function.
4497 (auto_language_data): Delete la_print_typedef initializer.
4498 (auto_language::print_typedef): New member function.
4499 * language.h (language_data): Delete la_print_typedef field.
4500 (language_defn::print_typedef): Declare new member function.
4501 (LA_PRINT_TYPEDEF): Update call to print_typedef.
4502 (default_print_typedef): Delete declaration.
4503 * m2-lang.c (m2_language_data): Delete la_print_typedef
4504 initializer.
4505 (m2_language::print_typedef): New member function.
4506 * objc-lang.c (objc_language_data): Delete la_print_typedef
4507 initializer.
4508 * opencl-lang.c (opencl_language_data): Likewise.
4509 * p-lang.c (pascal_language_data): Likewise.
4510 (pascal_language::print_typedef): New member function.
4511 * rust-lang.c (rust_print_typedef): Delete function,
4512 implementation moved to rust_language::print_typedef.
4513 (rust_language): Delete la_print_typedef initializer.
4514 (rust_language::print_typedef): New member function,
4515 implementation from rust_print_typedef.
4516 * typeprint.c (default_print_typedef): Delete.
4517
4518 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4519
4520 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
4521 (ada_language::printstr): New member function.
4522 * c-lang.c (c_language_data): Delete la_printstr initializer.
4523 (cplus_language_data): Likewise.
4524 (asm_language_data): Likewise.
4525 (minimal_language_data): Likewise.
4526 * d-lang.c (d_language_data): Likewise.
4527 * f-lang.c (f_printstr): Rename to f_language::printstr.
4528 (f_language_data): Delete la_printstr initializer.
4529 (f_language::printstr): New member function, implementation from
4530 f_printstr.
4531 * go-lang.c (go_language_data): Delete la_printstr initializer.
4532 * language.c (language_defn::printstr): Define new member
4533 function.
4534 (unk_lang_printstr): Delete.
4535 (unknown_language_data): Delete la_printstr initializer.
4536 (unknown_language::printstr): New member function.
4537 (auto_language_data): Delete la_printstr initializer.
4538 (auto_language::printstr): New member function.
4539 * language.h (language_data): Delete la_printstr field.
4540 (language_defn::printstr): Declare new member function.
4541 (LA_PRINT_STRING): Update call to printstr.
4542 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
4543 (m2_language_data): Delete la_printstr initializer.
4544 (m2_language::printstr): New member function, implementation from
4545 m2_printstr.
4546 * objc-lang.c (objc_language_data): Delete la_printstr
4547 initializer.
4548 * opencl-lang.c (opencl_language_data): Likewise.
4549 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
4550 (pascal_language_data): Delete la_printstr initializer.
4551 (pascal_language::printstr): New member function, implementation
4552 from pascal_printstr.
4553 * p-lang.h (pascal_printstr): Delete declaration.
4554 * rust-lang.c (rust_printstr): Update header comment.
4555 (rust_language_data): Delete la_printstr initializer.
4556 (rust_language::printstr): New member function.
4557
4558 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4559
4560 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
4561 (ada_language::printchar): New member function.
4562 * c-lang.c (c_language_data): Delete la_printchar initializer.
4563 (cplus_language_data): Likewise.
4564 (asm_language_data): Likewise.
4565 (minimal_language_data): Likewise.
4566 * d-lang.c (d_language_data): Likewise.
4567 * f-lang.c (f_printchar): Rename to f_language::printchar.
4568 (f_language_data): Delete la_printchar initializer.
4569 (f_language::printchar): New member function, implementation from
4570 f_printchar.
4571 * go-lang.c (go_language_data): Delete la_printchar initializer.
4572 * language.c (unk_lang_printchar): Delete.
4573 (language_defn::printchar): Define new member function.
4574 (unknown_language_data): Delete la_printchar initializer.
4575 (unknown_language::printchar): New member function.
4576 (auto_language_data): Delete la_printchar initializer.
4577 (auto_language::printchar): New member function.
4578 * language.h (language_data): Delete la_printchar field.
4579 (language_defn::printchar): Declare new member function.
4580 (LA_PRINT_CHAR): Update call to printchar.
4581 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
4582 (m2_language::printchar): New member function.
4583 * objc-lang.c (objc_language_data): Delete la_printchar
4584 initializer.
4585 * opencl-lang.c (opencl_language_data): Likewise.
4586 * p-lang.c (pascal_language_data): Delete la_printchar
4587 initializer.
4588 (pascal_language::printchar): New member function.
4589 * rust-lang.c (rust_printchar): Rename to
4590 rust_language::printchar.
4591 (rust_language_data): Delete la_printchar initializer.
4592 (rust_language::printchar): New member function, implementation
4593 from rust_printchar.
4594
4595 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4596
4597 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
4598 (ada_language_data): Delete la_emitchar initializer.
4599 (ada_language::emitchar): New member function, implementation from
4600 emit_char.
4601 * c-lang.c (c_language_data): Delete la_emitchar initializer.
4602 (cplus_language_data): Likewise.
4603 (asm_language_data): Likewise.
4604 (minimal_language_data): Likewise.
4605 * d-lang.c (d_language_data): Likewise.
4606 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
4607 (f_language_data): Delete la_emitchar initializer.
4608 (f_language::emitchar): New member function, implementation from
4609 f_emit_char.
4610 * go-lang.c (go_language_data): Delete la_emitchar initializer.
4611 * language.c (unk_lang_emit_char): Delete.
4612 (language_defn::emitchar): New member function definition.
4613 (unknown_language_data): Delete la_emitchar initializer.
4614 (unknown_language::emitchar): New member function.
4615 (auto_language_data): Delete la_emitchar initializer.
4616 (auto_language::emitchar): New member function.
4617 * language.h (language_data): Delete la_emitchar field.
4618 (language_defn::emitchar): New member field declaration.
4619 (LA_EMIT_CHAR): Update call to emitchar.
4620 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
4621 (m2_language_data): Delete la_emitchar initializer.
4622 (m2_language::emitchar): New member function, implementation from
4623 m2_emit_char.
4624 * objc-lang.c (objc_language_data): Delete la_emitchar
4625 initializer.
4626 * opencl-lang.c (opencl_language_data): Likewise.
4627 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
4628 (pascal_language_data): Delete la_emitchar initializer.
4629 (pascal_language::emitchar): New member function, implementation
4630 from pascal_emit_char.
4631 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
4632 (rust_language_data): Delete la_emitchar initializer.
4633 (rust_language::emitchar): New member function, implementation
4634 from rust_emitchar.
4635
4636 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4637
4638 * ada-lang.c (resolve): Rename to ada_language::post_parser.
4639 (ada_language_data): Delete la_post_parser initializer.
4640 (ada_language::post_parser): New member function.
4641 * c-lang.c (c_language_data): Delete la_post_parser initializer.
4642 (cplus_language_data): Likewise.
4643 (asm_language_data): Likewise.
4644 (minimal_language_data): Likewise.
4645 * d-lang.c (d_language_data): Likewise.
4646 * f-lang.c (f_language_data): Likewise.
4647 * go-lang.c (go_language_data): Likewise.
4648 * language.c (unknown_language_data): Likewise.
4649 (auto_language_data): Likewise.
4650 * language.h (language_data): Delete la_post_parser field.
4651 (language_defn::post_parser): New member function.
4652 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
4653 * objc-lang.c (objc_language_data): Likewise.
4654 * opencl-lang.c (opencl_language_data): Likewise.
4655 * p-lang.c (pascal_language_data): Likewise.
4656 * parse.c (parse_exp_in_context): Update call to post_parser.
4657 (null_post_parser): Delete definition.
4658 * parser-defs.h (null_post_parser): Delete declaration.
4659 * rust-lang.c (rust_language_data): Delete la_post_parser
4660 initializer.
4661
4662 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4663
4664 * ada-lang.c (parse): Rename to ada_language::parser.
4665 (ada_language_data): Delete la_parser initializer.
4666 (ada_language::parser): New member function, implementation from
4667 parse.
4668 * c-lang.c (c_language_data): Delete la_parser initializer.
4669 (cplus_language_data): Likewise.
4670 (asm_language_data): Likewise.
4671 (minimal_language_data): Likewise.
4672 * d-lang.c (d_language_data): Likewise.
4673 (d_language::parser): New member function.
4674 * f-lang.c (f_language_data): Delete la_parser initializer.
4675 (f_language::parser): New member function.
4676 * go-lang.c (go_language_data): Delete la_parser initializer.
4677 (go_language::parser): New member function.
4678 * language.c (unk_lang_parser): Delete.
4679 (language_defn::parser): Define new member function.
4680 (unknown_language_data): Delete la_parser initializer.
4681 (unknown_language::parser): New member function.
4682 (auto_language_data): Delete la_parser initializer.
4683 (auto_language::parser): New member function.
4684 * language.h (language_data): Delete la_parser field.
4685 (language_defn::parser): Declare new member function.
4686 * m2-lang.c (m2_language_data): Delete la_parser initializer.
4687 (m2_language::parser): New member function.
4688 * objc-lang.c (objc_language_data): Delete la_parser initializer.
4689 * opencl-lang.c (opencl_language_data): Likewise.
4690 * p-lang.c (pascal_language_data): Likewise.
4691 (pascal_language::parser): New member function.
4692 * parse.c (parse_exp_in_context): Update call to parser.
4693 * rust-lang.c (rust_language_data): Delete la_parser initializer.
4694 (rust_language::parser): New member function.
4695
4696 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4697
4698 * top.c (print_gdb_configuration): Print --with-python-libdir
4699 configuration value.
4700
4701 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4702
4703 * NEWS: Mention change to the alias command.
4704
4705 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4706
4707 * cli/cli-cmds.c (lookup_cmd_for_default_args)
4708 (alias_command_completer)
4709 (make_alias_options_def_group): New functions.
4710 (alias_opts, alias_option_defs): New struct and array.
4711 (alias_usage_error): Update usage.
4712 (alias_command): Handles optional DEFAULT-ARGS... arguments.
4713 Use option framework.
4714 (_initialize_cli_cmds): Update alias command help.
4715 Update aliases command help.
4716 (show_user):
4717 Add NULL for new default_args lookup_cmd argument.
4718 (valid_command_p): Rename to validate_aliased_command.
4719 Add NULL for new default_args lookup_cmd argument. Verify that the
4720 aliased_command has no default args.
4721 * cli/cli-decode.c (help_cmd): Show aliases definitions.
4722 (lookup_cmd_1, lookup_cmd): New argument default_args.
4723 (add_alias_cmd):
4724 Add NULL for new default_args lookup_cmd argument.
4725 (print_help_for_command): Show default args under the layout
4726 alias some_alias = some_aliased_cmd some_alias_default_arg.
4727 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
4728 xfree default_args in destructor.
4729 * cli/cli-script.c (process_next_line, do_define_command):
4730 Add NULL for new default_args lookup_cmd argument.
4731 * command.h: Declare new default_args argument in lookup_cmd
4732 and lookup_cmd_1.
4733 * completer.c (complete_line_internal_1):
4734 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4735 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
4736 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
4737 Likewise.
4738 * infcmd.c (_initialize_infcmd): Likewise.
4739 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
4740 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
4741 * python/py-param.c (add_setshow_generic): Likewise.
4742 * remote.c (_initialize_remote): Likewise.
4743 * top.c (execute_command): Prepend default_args if command has some.
4744 (set_verbose):
4745 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4746 * tracepoint.c (validate_actionline, encode_actions_1):
4747 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4748
4749 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4750
4751 * jit.c (jit_read_descriptor): Use bool as the return type.
4752 (jit_breakpoint_re_set_internal): Use bool as the return type.
4753 Invert the return value logic; return true if the jit breakpoint
4754 has been successfully initialized.
4755 (jit_inferior_init): Update the call to
4756 jit_breakpoint_re_set_internal.
4757
4758 2020-06-22 Pedro Alves <palves@redhat.com>
4759
4760 PR gdb/25939
4761 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
4762 Use the current inferior instead. Don't return
4763 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
4764 wait again.
4765 * sol-thread.c (sol_thread_target::wait): Don't reference
4766 inferior_ptid.
4767 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
4768 (sol_update_thread_list_callback): Use the current inferior's pid
4769 instead of inferior_ptid.
4770
4771 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4772
4773 * procfs.c: Cleanup many comments.
4774
4775 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
4776 (AFTER_WATCHFLAG): Replace by value.
4777
4778 (MAIN_PROC_NAME_FORMAT): Inline ...
4779 (create_procinfo): ... here.
4780
4781 (procfs_debug_inferior): Remove SYS_exec handling.
4782 (syscall_is_exec): Likewise.
4783 (procfs_set_exec_trap): Likewise.
4784
4785 (syscall_is_lwp_exit): Inline in callers.
4786 (syscall_is_exit): Likewise.
4787 (syscall_is_exec): Likewise.
4788 (syscall_is_lwp_create): Likewise.
4789
4790 (invalidate_cache): Remove #if 0 code.
4791
4792 (make_signal_thread_runnable): Remove.
4793 (procfs_target::resume): Remove #if 0 code.
4794
4795 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4796
4797 PR gdb/25939
4798 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
4799 call ...
4800 (procfs_target::create_inferior): ... here.
4801
4802 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4803
4804 * exec.c (validate_exec_file): Ensure the build-id is up to
4805 date by calling reopen_exec_file (that checks file timestamp
4806 to decide to re-read the file).
4807
4808 2020-06-18 Pedro Alves <palves@redhat.com>
4809
4810 PR gdb/25412
4811 * gdbthread.h (delete_thread, delete_thread_silent)
4812 (find_thread_ptid): Update comments.
4813 * thread.c (current_thread_): New global.
4814 (is_current_thread): Move higher, and reimplement.
4815 (inferior_thread): Reimplement.
4816 (set_thread_exited): Use bool. Add assertions.
4817 (add_thread_silent): Simplify thread-reuse handling by always
4818 calling delete_thread.
4819 (delete_thread): Remove intro comment.
4820 (find_thread_ptid): Skip exited threads.
4821 (switch_to_thread_no_regs): Write to current_thread_.
4822 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
4823 INFERIOR_PTID. Clear current_thread_.
4824
4825 2020-06-18 Pedro Alves <palves@redhat.com>
4826
4827 * aix-thread.c (pd_update): Use switch_to_thread.
4828
4829 2020-06-18 Pedro Alves <palves@redhat.com>
4830
4831 * ravenscar-thread.c (ravenscar_thread_target): Update.
4832 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
4833 (ravenscar_thread_target::add_active_thread): ... this. Don't
4834 set m_base_ptid here. Update to avoid referencing inferior_ptid.
4835 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
4836
4837 2020-06-18 Pedro Alves <palves@redhat.com>
4838
4839 * nat/windows-nat.c (current_windows_thread): Remove.
4840 * nat/windows-nat.h (current_windows_thread): Remove.
4841 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
4842 Adjust.
4843 (display_selectors): Adjust to fetch the current
4844 windows_thread_info based on inferior_ptid.
4845 (fake_create_process): No longer write to current_windows_thread.
4846 (windows_nat_target::get_windows_debug_event):
4847 Don't set inferior_ptid or current_windows_thread.
4848 (windows_nat_target::wait): Adjust to not rely on
4849 current_windows_thread.
4850 (do_initial_windows_stuff): Now a method of windows_nat_target.
4851 Switch to the last_ptid thread.
4852 (windows_nat_target::attach): Adjust.
4853 (windows_nat_target::detach): Use switch_to_no_thread instead of
4854 writing to inferior_ptid directly.
4855 (windows_nat_target::create_inferior): Adjust.
4856
4857 2020-06-18 Pedro Alves <palves@redhat.com>
4858
4859 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
4860
4861 2020-06-18 Pedro Alves <palves@redhat.com>
4862
4863 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
4864 after creating it, instead of writing to inferior_ptid. Don't
4865 write to inferior_ptid.
4866
4867 2020-06-18 Pedro Alves <palves@redhat.com>
4868
4869 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
4870
4871 2020-06-18 Pedro Alves <palves@redhat.com>
4872
4873 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
4874 it, instead of writing to inferior_ptid.
4875
4876 2020-06-18 Pedro Alves <palves@redhat.com>
4877
4878 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
4879 to inferior_ptid.
4880
4881 2020-06-18 Pedro Alves <palves@redhat.com>
4882
4883 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
4884 instead of writing to inferior_ptid directly.
4885
4886 2020-06-18 Pedro Alves <palves@redhat.com>
4887
4888 * corelow.c (core_target::close): Use switch_to_no_thread instead
4889 of writing to inferior_ptid directly.
4890 (add_to_thread_list, core_target_open): Use switch_to_thread
4891 instead of writing to inferior_ptid directly.
4892
4893 2020-06-18 Pedro Alves <palves@redhat.com>
4894
4895 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
4896 inferior_ptid.
4897 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
4898 inferior_ptid.
4899 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
4900 inferior_ptid directly.
4901 (darwin_nat_target::init_thread_list): Switch to thread, instead
4902 of writing to inferior_ptid.
4903 (darwin_nat_target::attach): Don't write to inferior_ptid.
4904 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
4905
4906 2020-06-18 Pedro Alves <palves@redhat.com>
4907
4908 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
4909 thread.
4910 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
4911 Instead use switch_to_thread.
4912 (gnu_nat_target::detach): Use switch_to_no_thread
4913 instead of writing to inferior_ptid directly. Used passed-in
4914 inferior instead of looking up the inferior by pid.
4915
4916 2020-06-18 Pedro Alves <palves@redhat.com>
4917
4918 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
4919 inferior_ptid.
4920
4921 2020-06-18 Pedro Alves <palves@redhat.com>
4922
4923 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
4924 inferior_ptid.
4925 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
4926 thread.
4927 (nto_procfs_target::detach): Avoid referencing
4928 inferior_ptid. Use switch_to_no_thread instead of writing to
4929 inferior_ptid directly.
4930 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
4931 instead of writing to inferior_ptid directly.
4932 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
4933 to thread.
4934
4935 2020-06-18 Pedro Alves <palves@redhat.com>
4936
4937 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
4938 after creating it, instead of writing to inferior_ptid.
4939 (gdbsim_target_open): Use switch_to_no_thread instead of writing
4940 to inferior_ptid directly.
4941 (gdbsim_target::wait): Don't write to inferior_ptid.
4942
4943 2020-06-18 Pedro Alves <palves@redhat.com>
4944
4945 * remote.c (remote_target::remote_notice_new_inferior): Use
4946 switch_to_thread instead of writing to inferior_ptid directly.
4947 (remote_target::add_current_inferior_and_thread): Use
4948 switch_to_no_thread instead of writing to inferior_ptid directly.
4949 (extended_remote_target::attach): Use switch_to_inferior_no_thread
4950 and switch_to_thread instead of using set_current_inferior or
4951 writing to inferior_ptid directly.
4952
4953 2020-06-18 Pedro Alves <palves@redhat.com>
4954
4955 * tracectf.c (ctf_target_open): Switch to added thread instead of
4956 writing to inferior_ptid directly.
4957 (ctf_target::close): Use switch_to_no_thread instead of writing to
4958 inferior_ptid directly.
4959
4960 2020-06-18 Pedro Alves <palves@redhat.com>
4961
4962 * tracefile-tfile.c (tfile_target_open): Don't write to
4963 inferior_ptid directly, instead switch to added thread.
4964 (tfile_target::close): Use switch_to_no_thread instead of writing
4965 to inferior_ptid directly.
4966
4967 2020-06-18 Pedro Alves <palves@redhat.com>
4968
4969 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
4970 (procfs_target::detach): Use switch_to_no_thread
4971 instead of writing to inferior_ptid directly.
4972 (do_attach): Change return type to void. Switch to the added
4973 thread.
4974 (procfs_target::create_inferior): Switch to the added thread.
4975 (procfs_do_thread_registers): Don't write to inferior_ptid.
4976
4977 2020-06-18 Pedro Alves <palves@redhat.com>
4978
4979 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
4980 of writing to inferior_ptid.
4981 (scoped_restore_exited_inferior): Delete.
4982 (handle_vfork_child_exec_or_exit): Simplify using
4983 scoped_restore_current_pspace_and_thread. Use switch_to_thread
4984 instead of writing to inferior_ptid.
4985 (THREAD_STOPPED_BY): Delete.
4986 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
4987 (thread_stopped_by_hw_breakpoint): Delete.
4988 (save_waitstatus): Use
4989 scoped_restore_current_thread+switch_to_thread, and call
4990 target_stopped_by_watchpoint instead of
4991 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
4992 instead of thread_stopped_by_sw_breakpoint, and
4993 target_stopped_by_hw_breakpoint instead of
4994 thread_stopped_by_hw_breakpoint.
4995 (handle_inferior_event)
4996 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
4997 inferior_ptid directly, nor
4998 set_current_inferior/set_current_program_space. Use
4999 switch_to_thread / switch_to_inferior_no_thread instead.
5000
5001 2020-06-18 Pedro Alves <palves@redhat.com>
5002
5003 * target.c (generic_mourn_inferior): Use switch_to_no_thread
5004 instead of writing to inferior_ptid.
5005
5006 2020-06-18 Pedro Alves <palves@redhat.com>
5007
5008 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
5009 added thread.
5010 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
5011 to the added thread.
5012 (inf_ptrace_target::detach_success): Use switch_to_no_thread
5013 instead of writing to inferior_ptid.
5014
5015 2020-06-18 Pedro Alves <palves@redhat.com>
5016
5017 * gdbarch-selftests.c: Include "progspace-and-thread.h".
5018 (register_to_value_test): Mock a program_space too. Heap-allocate
5019 the address space. Don't write to inferior_ptid. Use
5020 switch_to_thread instead.
5021
5022 2020-06-18 Pedro Alves <palves@redhat.com>
5023
5024 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
5025 Delete.
5026 (find_signalled_thread()): New, factored out from
5027 linux_make_corefile_notes and adjusted to handle exited threads.
5028 (linux_make_corefile_notes): Adjust to use the new
5029 find_signalled_thread.
5030
5031 2020-06-18 Pedro Alves <palves@redhat.com>
5032
5033 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
5034 of saving/restoring inferior_ptid.
5035
5036 2020-06-17 Tom Tromey <tom@tromey.com>
5037
5038 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
5039 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
5040 declare.
5041 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
5042
5043 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
5044
5045 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
5046 of partial symtabs.
5047
5048 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
5049
5050 * regformats/reg-arm.dat: Remove.
5051 * regformats/reg-bfin.dat: Remove.
5052 * regformats/reg-cris.dat: Remove.
5053 * regformats/reg-crisv32.dat: Remove.
5054 * regformats/reg-m32r.dat: Remove.
5055 * regformats/reg-tilegx.dat: Remove.
5056 * regformats/reg-tilegx32.dat: Remove.
5057
5058 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
5059
5060 * features/Makefile (WHICH): Remove arm files.
5061 * regformats/arm/arm-with-iwmmxt.dat: Remove.
5062 * regformats/arm/arm-with-neon.dat: Remove.
5063 * regformats/arm/arm-with-vfpv2.dat: Remove.
5064 * regformats/arm/arm-with-vfpv3.dat: Remove.
5065
5066 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
5067
5068 * features/Makefile (XMLTOC): Remove rx.xml.
5069
5070 2020-06-17 Pedro Alves <palves@redhat.com>
5071
5072 * gdbthread.h (thread_control_state) <trap_expected> Update
5073 comments.
5074
5075 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5076
5077 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
5078 ada_language::lookup_symbol_nonlocal.
5079 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
5080 (ada_language::lookup_symbol_nonlocal): New member function,
5081 implementation from ada_lookup_symbol_nonlocal.
5082 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
5083 initializer.
5084 (cplus_language_data): Delete la_lookup_symbol_nonlocal
5085 initializer.
5086 (cplus_language::lookup_symbol_nonlocal): New member function.
5087 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
5088 (minimal_language_data) Likewise.
5089 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
5090 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
5091 initializer.
5092 (d_language::lookup_symbol_nonlocal): New member function.
5093 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
5094 initializer.
5095 (f_language::lookup_symbol_nonlocal): New member function.
5096 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
5097 initializer.
5098 * language.c (unknown_language_data): Likewise.
5099 (auto_language_data): Likewise.
5100 * language.h (language_data): Delete la_lookup_symbol_nonlocal
5101 field.
5102 (language_defn::lookup_symbol_nonlocal): New member function.
5103 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
5104 initializer.
5105 * objc-lang.c (objc_language_data): Likewise.
5106 * opencl-lang.c (opencl_language_data): Likewise.
5107 * p-lang.c (pascal_language_data): Likewise.
5108 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
5109 rust_language::lookup_symbol_nonlocal.
5110 (rust_language_data): Delete la_lookup_symbol_nonlocal
5111 initializer.
5112 (rust_language::lookup_symbol_nonlocal): New member function,
5113 implementation from rust_lookup_symbol_nonlocal.
5114 * symtab.c (lookup_symbol_aux): Update call to
5115 lookup_symbol_nonlocal.
5116 (basic_lookup_symbol_nonlocal): Rename to...
5117 (language_defn::lookup_symbol_nonlocal): ...this, and update
5118 header comment. Remove language_defn parameter, and replace with
5119 uses of `this'.
5120 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
5121
5122 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5123
5124 * ada-lang.c (ada_language_data): Delete la_value_print_inner
5125 initializer.
5126 (ada_language::value_print_inner): New member function.
5127 * c-lang.c (c_language_data): Delete la_value_print_inner
5128 initializer.
5129 (cplus_language_data): Likewise.
5130 (asm_language_data): Likewise.
5131 (minimal_language_data): Likewise.
5132 * d-lang.c (d_language_data): Likewise.
5133 (d_language::value_print_inner): New member function.
5134 * f-lang.c (f_language_data): Delete la_value_print_inner
5135 initializer.
5136 (f_language::value_print_inner): New member function.
5137 * f-lang.h (f_value_print_innner): Rename to...
5138 (f_value_print_inner): ...this (note spelling of 'inner').
5139 * f-valprint.c (f_value_print_innner): Rename to...
5140 (f_value_print_inner): ...this (note spelling of 'inner').
5141 * go-lang.c (go_language_data): Delete la_value_print_inner
5142 initializer.
5143 (go_language::value_print_inner): New member function.
5144 * language.c (language_defn::value_print_inner): Define new member
5145 function.
5146 (unk_lang_value_print_inner): Delete.
5147 (unknown_language_data): Delete la_value_print_inner initializer.
5148 (unknown_language::value_print_inner): New member function.
5149 (auto_language_data): Delete la_value_print_inner initializer.
5150 (auto_language::value_print_inner): New member function.
5151 * language.h (language_data): Delete la_value_print_inner field.
5152 (language_defn::value_print_inner): Delcare new member function.
5153 * m2-lang.c (m2_language_data): Delete la_value_print_inner
5154 initializer.
5155 (m2_language::value_print_inner): New member function.
5156 * objc-lang.c (objc_language_data): Delete la_value_print_inner
5157 initializer.
5158 * opencl-lang.c (opencl_language_data): Likewise.
5159 * p-lang.c (pascal_language_data): Likewise.
5160 (pascal_language::value_print_inner): New member function.
5161 * rust-lang.c (rust_language_data): Delete la_value_print_inner
5162 initializer.
5163 (rust_language::value_print_inner): New member function.
5164 * valprint.c (do_val_print): Update call to value_print_inner.
5165
5166 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5167
5168 * ada-lang.c (ada_language_data): Delete la_value_print
5169 initializer.
5170 (ada_language::value_print): New member function.
5171 * c-lang.c (c_language_data): Delete la_value_print initializer.
5172 (cplus_language_data): Likewise.
5173 (asm_language_data): Likewise.
5174 (minimal_language_data): Likewise.
5175 * d-lang.c (d_language_data): Likewise.
5176 * f-lang.c (f_language_data): Likewise.
5177 * go-lang.c (go_language_data): Likewise.
5178 * language.c (unk_lang_value_print): Delete.
5179 (language_defn::value_print): Define new member function.
5180 (unknown_language_data): Delete la_value_print initializer.
5181 (unknown_language::value_print): New member function.
5182 (auto_language_data): Delete la_value_print initializer.
5183 (auto_language::value_print): New member function.
5184 * language.h (language_data): Delete la_value_print field.
5185 (language_defn::value_print): Declare new member function.
5186 (LA_VALUE_PRINT): Update call to value_print.
5187 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
5188 * objc-lang.c (objc_language_data): Likewise.
5189 * opencl-lang.c (opencl_language_data): Likewise.
5190 * p-lang.c (pascal_language_data): Likewise.
5191 (pascal_language::value_print): New member function.
5192 * rust-lang.c (rust_language_data): Delete la_value_print
5193 initializer.
5194
5195 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5196
5197 * ada-lang.c (ada_watch_location_expression): Rename to
5198 ada_language::watch_location_expression.
5199 (ada_language_data): Delete la_watch_location_expression
5200 initializer.
5201 (ada_language::watch_location_expression): New member function,
5202 implementation from ada_watch_location_expression.
5203 * breakpoint.c (watch_command_1): Update call to
5204 watch_location_expression.
5205 * c-lang.c (c_watch_location_expression): Rename to
5206 language_defn::watch_location_expression.
5207 (c_language_data): Delete la_watch_location_expression
5208 initializer.
5209 (cplus_language_data): Likewise.
5210 (asm_language_data): Likewise.
5211 (minimal_language_data): Likewise.
5212 * c-lang.h (c_watch_location_expression): Delete declaration.
5213 * d-lang.c (d_language_data): Delete la_watch_location_expression
5214 initializer.
5215 * f-lang.c (f_language_data): Likewise.
5216 * go-lang.c (go_language_data): Likewise.
5217 * language.c (language_defn::watch_location_expression): Member
5218 function implementation from c_watch_location_expression.
5219 (unknown_language_data): Delete la_watch_location_expression
5220 initializer.
5221 (auto_language_data): Likewise.
5222 * language.h (language_data): Delete la_watch_location_expression
5223 field.
5224 (language_defn::watch_location_expression): Declare new member
5225 function.
5226 * m2-lang.c (m2_language_data): Delete
5227 la_watch_location_expression initializer.
5228 * objc-lang.c (objc_language_data): Likewise.
5229 * opencl-lang.c (opencl_language_data): Likewise.
5230 * p-lang.c (pascal_language_data): Likewise.
5231 * rust-lang.c (rust_watch_location_expression): Rename to
5232 rust_language::watch_location_expression.
5233 (rust_language_data): Delete la_watch_location_expression
5234 initializer.
5235 (rust_language::watch_location_expression): New member function,
5236 implementation from rust_watch_location_expression.
5237
5238 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5239
5240 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
5241 ada_language::collect_symbol_completion_matches.
5242 (ada_language_data): Delete la_collect_symbol_completion_matches
5243 initializer.
5244 (ada_language::collect_symbol_completion_matches): New member
5245 function, implementation from
5246 ada_collect_symbol_completion_matches.
5247 * c-lang.c (c_language_data): Delete
5248 la_collect_symbol_completion_matches initializer.
5249 (cplus_language_data): Likewise.
5250 (asm_language_data): Likewise.
5251 (minimal_language_data): Likewise.
5252 * d-lang.c (d_language_data): Likewise.
5253 * f-lang.c (f_collect_symbol_completion_matches): Rename to
5254 f_language::collect_symbol_completion_matches.
5255 (f_language_data): Delete la_collect_symbol_completion_matches
5256 initializer.
5257 (f_language::collect_symbol_completion_matches) New member
5258 function, implementation from f_collect_symbol_completion_matches.
5259 * go-lang.c (go_language_data): Delete
5260 la_collect_symbol_completion_matches initializer.
5261 * language.c (unknown_language_data): Likewise.
5262 (auto_language_data): Likewise.
5263 * language.h (language_data): Delete
5264 la_collect_symbol_completion_matches field.
5265 (language_defn::collect_symbol_completion_matches): New member
5266 function.
5267 * m2-lang.c (m2_language_data): Delete
5268 la_collect_symbol_completion_matches initializer.
5269 * objc-lang.c (objc_language_data): Likewise.
5270 * opencl-lang.c (opencl_language_data): Likewise.
5271 * p-lang.c (pascal_language_data): Likewise.
5272 * rust-lang.c (rust_language_data): Likewise.
5273 * symtab.c (default_collect_symbol_completion_matches): Delete.
5274 (collect_symbol_completion_matches): Update call to
5275 collect_symbol_completion_matches.
5276 (collect_symbol_completion_matches_type): Likewise.
5277 * symtab.h (default_collect_symbol_completion_matches): Delete
5278 declaration.
5279
5280 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5281
5282 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
5283 (ada_language_data): Delete la_word_break_characters initializer.
5284 (ada_language::word_break_characters): New member function.
5285 * c-lang.c (c_language_data): Delete la_word_break_characters
5286 initializer.
5287 (cplus_language_data): Likewise.
5288 (asm_language_data): Likewise.
5289 (minimal_language_data): Likewise.
5290 * completer.c: Update global comment.
5291 (advance_to_expression_complete_word_point): Update call to
5292 word_break_characters.
5293 (complete_files_symbols): Likewise.
5294 (complete_line_internal_1): Likewise.
5295 (default_completer_handle_brkchars): Likewise.
5296 (skip_quoted_chars): Likewise.
5297 * d-lang.c (d_language_data): Delete la_word_break_characters
5298 initializer.
5299 * f-lang.c (f_word_break_characters): Delete.
5300 (f_language_data): Delete la_word_break_characters initializer.
5301 (f_language::word_break_characters): New member function.
5302 * go-lang.c (go_language_data): Delete la_word_break_characters
5303 initializer.
5304 * language.c (unknown_language_data): Likewise.
5305 (auto_language_data): Likewise.
5306 * language.h (default_word_break_characters): Move declaration to
5307 earlier in the file.
5308 (language_data): Delete la_word_break_characters field.
5309 (language_defn::word_break_characters): New member function.
5310 * m2-lang.c (m2_language_data): Delete la_word_break_characters
5311 initializer.
5312 * objc-lang.c (objc_language_data): Likewise.
5313 * opencl-lang.c (opencl_language_data): Likewise.
5314 * p-lang.c (pascal_language_data): Likewise.
5315 * rust-lang.c (rust_language_data): Likewise.
5316
5317 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5318
5319 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
5320 (ada_language_data): Delete la_get_symbol_name_matcher
5321 initializer.
5322 (language_defn::get_symbol_name_matcher_inner): New member
5323 function.
5324 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
5325 initializer.
5326 (cplus_language_data): Likewise.
5327 (cplus_language::get_symbol_name_matcher_inner): New member
5328 function.
5329 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
5330 (minimal_language_data): Likewise.
5331 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
5332 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
5333 initializer.
5334 * dictionary.c (iter_match_first_hashed): Update call to
5335 get_symbol_name_matcher.
5336 (iter_match_next_hashed): Likewise.
5337 (iter_match_next_linear): Likewise.
5338 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
5339 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
5340 initializer.
5341 (f_language::get_symbol_name_matcher_inner): New member function.
5342 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
5343 initializer.
5344 * language.c (default_symbol_name_matcher): Update header comment,
5345 make static.
5346 (language_defn::get_symbol_name_matcher): New definition.
5347 (language_defn::get_symbol_name_matcher_inner): Likewise.
5348 (get_symbol_name_matcher): Delete.
5349 (unknown_language_data): Delete la_get_symbol_name_matcher
5350 initializer.
5351 (auto_language_data): Likewise.
5352 * language.h (language_data): Delete la_get_symbol_name_matcher
5353 field.
5354 (language_defn::get_symbol_name_matcher): New member function.
5355 (language_defn::get_symbol_name_matcher_inner): Likewise.
5356 (default_symbol_name_matcher): Delete declaration.
5357 * linespec.c (find_methods): Update call to
5358 get_symbol_name_matcher.
5359 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
5360 initializer.
5361 * minsyms.c (lookup_minimal_symbol): Update call to
5362 get_symbol_name_matcher.
5363 (iterate_over_minimal_symbols): Likewise.
5364 * objc-lang.c (objc_language_data): Delete
5365 la_get_symbol_name_matcher initializer.
5366 * opencl-lang.c (opencl_language_data): Likewise.
5367 * p-lang.c (pascal_language_data): Likewise.
5368 * psymtab.c (psymbol_name_matches): Update call to
5369 get_symbol_name_matcher.
5370 * rust-lang.c (rust_language_data): Delete
5371 la_get_symbol_name_matcher initializer.
5372 * symtab.c (symbol_matches_search_name): Update call to
5373 get_symbol_name_matcher.
5374 (compare_symbol_name): Likewise.
5375
5376 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5377
5378 * ada-lang.c (ada_language_data): Delete la_compute_program
5379 initializer.
5380 * c-lang.c (c_language_data): Likewise.
5381 (c_language::compute_program): New member function.
5382 (cplus_language_data): Delete la_compute_program initializer.
5383 (cplus_language::compute_program): New member function.
5384 (asm_language_data): Delete la_compute_program initializer.
5385 (minimal_language_data): Likewise.
5386 * c-lang.h (c_compute_program): Update comment.
5387 (cplus_compute_program): Likewise.
5388 * compile/compile-c-support.c (c_compute_program): Likewise.
5389 (cplus_compute_program): Likewise.
5390 * compile/compile.c (compile_to_object): Update call to
5391 la_compute_program.
5392 * d-lang.c (d_language_data): Delete la_compute_program
5393 initializer.
5394 * f-lang.c (f_language_data): Likewise.
5395 * go-lang.c (go_language_data): Likewise.
5396 * language.c (unknown_language_data): Likewise.
5397 (auto_language_data): Likewise.
5398 * language.h (language_data): Delete la_compute_program field.
5399 (language_defn::compute_program): New member function.
5400 * m2-lang.c (m2_language_data): Delete la_compute_program
5401 initializer.
5402 * objc-lang.c (objc_language_data): Likewise.
5403 * opencl-lang.c (opencl_language_data): Likewise.
5404 * p-lang.c (pascal_language_data): Likewise.
5405 * rust-lang.c (rust_language_data): Likewise.
5406
5407 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5408
5409 * ada-lang.c (ada_language_data) Delete
5410 la_class_name_from_physname initializer.
5411 * c-lang.c (c_language_data): Likewise.
5412 (cplus_language_data): Likewise.
5413 (cplus_language::class_name_from_physname): New member function.
5414 (asm_language_data): Delete la_class_name_from_physname
5415 initializer.
5416 (minimal_language_data): Likewise.
5417 * d-lang.c (d_language_data): Likewise.
5418 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
5419 method on language_defn class.
5420 (guess_full_die_structure_name): Likewise.
5421 * f-lang.c (f_language_data): Delete la_class_name_from_physname
5422 initializer.
5423 * go-lang.c (go_language_data): Likewise.
5424 * language.c (language_class_name_from_physname): Delete.
5425 (unk_lang_class_name): Delete.
5426 (unknown_language_data): Delete la_class_name_from_physname
5427 initializer.
5428 (auto_language_data): Likewise.
5429 * language.h (language_data): Delete la_class_name_from_physname
5430 field.
5431 (language_defn::class_name_from_physname): New function.
5432 (language_class_name_from_physname): Delete declaration.
5433 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
5434 initializer.
5435 * objc-lang.c (objc_language_data): Likewise.
5436 * opencl-lang.c (opencl_language_data): Likewise.
5437 * p-lang.c (pascal_language_data): Likewise.
5438 * rust-lang.c (rust_language_data): Likewise.
5439
5440 2020-06-16 Tom Tromey <tom@tromey.com>
5441
5442 * tui/tui-data.h (STATUS_NAME): New macro.
5443 * tui/tui-layout.c (tui_remove_some_windows)
5444 (initialize_known_windows, tui_register_window)
5445 (tui_layout_split::remove_windows, initialize_layouts)
5446 (tui_new_layout_command): Don't use hard-coded window names.
5447
5448 2020-06-16 Tom Tromey <tom@tromey.com>
5449
5450 PR tui/25348:
5451 * tui/tui.c (tui_ensure_readline_initialized): Rename from
5452 tui_initialize_readline. Only run once. Call rl_initialize.
5453 * tui/tui.h (tui_ensure_readline_initialized): Rename from
5454 tui_initialize_readline.
5455 * tui/tui-io.c (tui_setup_io): Call
5456 tui_ensure_readline_initialized.
5457 * tui/tui-interp.c (tui_interp::init): Update.
5458
5459 2020-06-16 Tom Tromey <tom@tromey.com>
5460
5461 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
5462 Also preserve the status window.
5463
5464 2020-06-16 Tom Tromey <tom@tromey.com>
5465
5466 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
5467 where m_window==nullptr.
5468
5469 2020-06-15 Tom Tromey <tromey@adacore.com>
5470
5471 * windows-nat.c (windows_nat::handle_output_debug_string):
5472 Update.
5473 (windows_nat::handle_ms_vc_exception): Update.
5474 * target.h (target_read_string): Change API.
5475 * target.c (target_read_string): Change API.
5476 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
5477 Update.
5478 * solib-frv.c (frv_current_sos): Update.
5479 * solib-dsbt.c (dsbt_current_sos): Update.
5480 * solib-darwin.c (darwin_current_sos): Update.
5481 * linux-thread-db.c (inferior_has_bug): Update.
5482 * expprint.c (print_subexp_standard): Update.
5483 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
5484 (ada_exception_message_1): Update.
5485
5486 2020-06-15 Tom Tromey <tromey@adacore.com>
5487
5488 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
5489
5490 2020-06-15 Tom Tromey <tromey@adacore.com>
5491
5492 * valprint.c (read_string): Update comment.
5493 * target.c (MIN): Remove.
5494 (target_read_string): Rewrite.
5495
5496 2020-06-15 Tom Tromey <tromey@adacore.com>
5497
5498 * corefile.c (read_memory_string): Remove.
5499 * ada-valprint.c (ada_value_print_ptr): Update.
5500 * ada-lang.h (ada_tag_name): Change return type.
5501 * ada-lang.c (type_from_tag): Update.
5502 (ada_tag_name_from_tsd): Change return type. Use
5503 target_read_string.
5504 (ada_tag_name): Likewise.
5505 * gdbcore.h (read_memory_string): Don't declare.
5506
5507 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
5508
5509 * symtab.c (rbreak_command): Ignore Windows drive colon.
5510
5511 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
5512
5513 * NEWS: Mention removed GDBserver host support.
5514
5515 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
5516
5517 * features/riscv/rebuild-csr-xml.sh: Updated.
5518
5519 2020-06-11 Tom Tromey <tom@tromey.com>
5520
5521 PR gdb/18318:
5522 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
5523
5524 2020-06-09 Jonny Grant <jg@jguk.org>
5525 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
5526
5527 * main.c (captured_main_1): Don't print new line after help.
5528 (print_gdb_help): add mailing list and IRC channel information
5529 to --help. Add new lines between items in the footer. Remove
5530 quotes around bug url.
5531
5532 2020-06-11 Keith Seitz <keiths@redhat.com>
5533
5534 PR gdb/21356
5535 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
5536 Resolve typedefs for type length calculations.
5537
5538 2020-06-10 Tom de Vries <tdevries@suse.de>
5539
5540 PR ada/24713
5541 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
5542 (write_psymbols): Enable .gdb_index for ada.
5543 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
5544 ada.
5545
5546 2020-06-10 Tom de Vries <tdevries@suse.de>
5547
5548 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
5549 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
5550 namei" instead of "const char *name" argument.
5551 (dw2_map_matching_symbols): Use "offset_type namei" variant of
5552 dw2_symtab_iter_init.
5553
5554 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
5555
5556 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
5557 to use type::field and field::type instead.
5558
5559 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
5560
5561 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
5562 to use field::type instead.
5563
5564 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
5565
5566 * gdbtypes.h (struct field) <type, set_type>: New methods.
5567 Rename `type` field to...
5568 <m_type>: ... this. Change references throughout to use type or
5569 set_type methods.
5570 (FIELD_TYPE): Use field::type. Change call sites that modify
5571 the field's type to use field::set_type instead.
5572
5573 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
5574
5575 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
5576 to use type::index_type instead.
5577
5578 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
5579
5580 * gdbtypes.h (struct type) <index_type, set_index_type>: New
5581 methods.
5582 (TYPE_INDEX_TYPE): Use type::index_type.
5583 * gdbtypes.c (create_array_type_with_stride): Likewise.
5584
5585 2020-06-07 Tom Tromey <tom@tromey.com>
5586
5587 * valprint.c (generic_val_print_float): Remove "embedded_offset"
5588 parameter.
5589 (generic_value_print): Update.
5590
5591 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
5592
5593 Revert commit 982a38f60b0.
5594 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
5595
5596 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
5597
5598 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
5599 avoid use after free.
5600
5601 2020-06-05 Tom de Vries <tdevries@suse.de>
5602
5603 * NEWS: Fix typos.
5604
5605 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
5606
5607 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
5608 the per_bfd object.
5609 (dwarf2_read_debug_names): Likewise.
5610 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
5611 object when re-using a per_bfd object with an index.
5612
5613 2020-06-03 Tom de Vries <tdevries@suse.de>
5614
5615 PR symtab/26046
5616 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
5617 children for C++.
5618 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
5619 DW_TAG_subprogram.
5620
5621 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5622
5623 * ada-lang.c (ada_language_data): Delete skip_trampoline
5624 initializer.
5625 * c-lang.c (c_language_data): Likewise.
5626 (cplus_language_data): Likewise.
5627 (cplus_language::skip_trampoline): New member function.
5628 (asm_language_data): Delete skip_trampoline initializer.
5629 (minimal_language_data): Likewise.
5630 * d-lang.c (d_language_data): Likewise.
5631 * f-lang.c (f_language_data): Likewise.
5632 * go-lang.c (go_language_data): Likewise.
5633 * language.c (unk_lang_trampoline): Delete function.
5634 (skip_language_trampoline): Update.
5635 (unknown_language_data): Delete skip_trampoline initializer.
5636 (auto_language_data): Likewise.
5637 * language.h (language_data): Delete skip_trampoline field.
5638 (language_defn::skip_trampoline): New function.
5639 * m2-lang.c (m2_language_data): Delete skip_trampoline
5640 initializer.
5641 * objc-lang.c (objc_skip_trampoline): Delete function, move
5642 implementation to objc_language::skip_trampoline.
5643 (objc_language_data): Delete skip_trampoline initializer.
5644 (objc_language::skip_trampoline): New member function with
5645 implementation from objc_skip_trampoline.
5646 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
5647 initializer.
5648 * p-lang.c (pascal_language_data): Likewise.
5649 * rust-lang.c (rust_language_data): Likewise.
5650
5651 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5652
5653 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
5654 (ada_language::demangle): New member function.
5655 * c-lang.c (c_language_data): Delete la_demangle initializer.
5656 (cplus_language_data): Delete la_demangle initializer.
5657 (cplus_language::demangle): New member function.
5658 (asm_language_data): Delete la_demangle initializer.
5659 (minimal_language_data): Delete la_demangle initializer.
5660 * d-lang.c (d_language_data): Delete la_demangle initializer.
5661 (d_language::demangle): New member function.
5662 * f-lang.c (f_language_data): Delete la_demangle initializer.
5663 (f_language::demangle): New member function.
5664 * go-lang.c (go_language_data): Delete la_demangle initializer.
5665 (go_language::demangle): New member function.
5666 * language.c (language_demangle): Update.
5667 (unk_lang_demangle): Delete.
5668 (unknown_language_data): Delete la_demangle initializer.
5669 (unknown_language::demangle): New member function.
5670 (auto_language_data): Delete la_demangle initializer.
5671 (auto_language::demangle): New member function.
5672 * language.h (language_data): Delete la_demangle field.
5673 (language_defn::demangle): New function.
5674 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
5675 * objc-lang.c (objc_language_data): Delete la_demangle
5676 initializer.
5677 (objc_language::demangle): New member function.
5678 * opencl-lang.c (opencl_language_data): Delete la_demangle
5679 initializer.
5680 * p-lang.c (pascal_language_data): Likewise.
5681 * rust-lang.c (rust_language_data): Likewise.
5682 (rust_language::demangle): New member function.
5683
5684 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5685
5686 * ada-lang.c (ada_language_data): Delete la_print_type
5687 initializer.
5688 (ada_language::print_type): New member function.
5689 * c-lang.c (c_language_data): Delete la_print_type initializer.
5690 (c_language::print_type): New member function.
5691 (cplus_language_data): Delete la_print_type initializer.
5692 (cplus_language::print_type): New member function.
5693 (asm_language_data): Delete la_print_type initializer.
5694 (asm_language::print_type): New member function.
5695 (minimal_language_data): Delete la_print_type initializer.
5696 (minimal_language::print_type): New member function.
5697 * d-lang.c (d_language_data): Delete la_print_type initializer.
5698 (d_language::print_type): New member function.
5699 * f-lang.c (f_language_data): Delete la_print_type initializer.
5700 (f_language::print_type): New member function.
5701 * go-lang.c (go_language_data): Delete la_print_type initializer.
5702 (go_language::print_type): New member function.
5703 * language.c (unk_lang_print_type): Delete.
5704 (unknown_language_data): Delete la_print_type initializer.
5705 (unknown_language::print_type): New member function.
5706 (auto_language_data): Delete la_print_type initializer.
5707 (auto_language::print_type): New member function.
5708 * language.h (language_data): Delete la_print_type field.
5709 (language_defn::print_type): New function.
5710 (LA_PRINT_TYPE): Update.
5711 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
5712 (m2_language::print_type): New member function.
5713 * objc-lang.c (objc_language_data): Delete la_print_type
5714 initializer.
5715 (objc_language::print_type): New member function.
5716 * opencl-lang.c (opencl_print_type): Delete, implementation moved
5717 to opencl_language::print_type.
5718 (opencl_language_data): Delete la_print_type initializer.
5719 (opencl_language::print_type): New member function, implementation
5720 from opencl_print_type.
5721 * p-lang.c (pascal_language_data): Delete la_print_type
5722 initializer.
5723 (pascal_language::print_type): New member function.
5724 * rust-lang.c (rust_print_type): Delete, implementation moved to
5725 rust_language::print_type.
5726 (rust_language_data): Delete la_print_type initializer.
5727 (rust_language::print_type): New member function, implementation
5728 from rust_print_type.
5729
5730 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5731
5732 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
5733 implementation moves to...
5734 (ada_language::sniff_from_mangled_name): ...here. Update return
5735 type.
5736 (ada_language_data): Delete la_sniff_from_mangled_name
5737 initializer.
5738 * c-lang.c (c_language_data): Likewise.
5739 (cplus_language_data): Likewise.
5740 (cplus_language::sniff_from_mangled_name): New member function,
5741 implementation taken from gdb_sniff_from_mangled_name.
5742 (asm_language_data): Delete la_sniff_from_mangled_name
5743 initializer.
5744 (minimal_language_data): Likewise.
5745 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
5746 implementation moves to cplus_language::sniff_from_mangled_name.
5747 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
5748 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
5749 moves to...
5750 (d_language::sniff_from_mangled_name): ...here.
5751 (d_language_data): Delete la_sniff_from_mangled_name initializer.
5752 * f-lang.c (f_language_data): Likewise.
5753 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
5754 moves to...
5755 (go_language::sniff_from_mangled_name): ...here.
5756 (go_language_data): Delete la_sniff_from_mangled_name initializer.
5757 * language.c (language_sniff_from_mangled_name): Delete.
5758 (unknown_language_data): Delete la_sniff_from_mangled_name
5759 initializer.
5760 (auto_language_data): Likewise.
5761 * language.h (language_data): Delete la_sniff_from_mangled_name
5762 field.
5763 (language_defn::sniff_from_mangled_name): New function.
5764 (language_sniff_from_mangled_name): Delete declaration.
5765 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
5766 field.
5767 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
5768 implementation moves to...
5769 (objc_language::sniff_from_mangled_name): ...here.
5770 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
5771 * opencl-lang.c (opencl_language_data): Likewise.
5772 * p-lang.c (pascal_language_data): Likewise.
5773 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
5774 implementation moves to...
5775 (rust_language::sniff_from_mangled_name): ...here.
5776 (rust_language_data): Delete la_sniff_from_mangled_name
5777 initializer.
5778 * symtab.c (symbol_find_demangled_name): Call
5779 sniff_from_mangled_name member function.
5780
5781 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5782
5783 * ada-lang.c (ada_language_data): Delete la_search_name_hash
5784 initializer.
5785 * c-lang.c (c_language_data): Likewise.
5786 (cplus_language_data): Likewise.
5787 (cplus_language::search_name_hash): New member function.
5788 (asm_language_data): Delete la_search_name_hash initializer.
5789 (minimal_language_data): Likewise.
5790 * d-lang.c (d_language_data): Likewise.
5791 * dictionary.c (default_search_name_hash): Rename to...
5792 (language_defn::search_name_hash): ...this.
5793 * f-lang.c (f_language_data): Likewise.
5794 (f_language::search_name_hash): New member function.
5795 * go-lang.c (go_language_data): Delete la_search_name_hash
5796 initializer.
5797 * language.c (unknown_language_data): Likewise.
5798 (auto_language_data): Likewise.
5799 * language.h (struct language_data): Delete la_search_name_hash
5800 field.
5801 (language_defn::search_name_hash): Declare new member function.
5802 (default_search_name_hash): Delete declaration.
5803 * m2-lang.c (m2_language_data): Delete la_search_name_hash
5804 initializer.
5805 * objc-lang.c (objc_language_data): Likewise.
5806 * opencl-lang.c (opencl_language_data): Likewise.
5807 * p-lang.c (pascal_language_data): Likewise.
5808 * rust-lang.c (rust_language_data): Likewise.
5809 * symtab.c (search_name_hash): Update call.
5810
5811 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5812
5813 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
5814 initializer.
5815 * c-lang.c (class compile_instance): Declare.
5816 (c_language_data): Delete la_get_compile_instance initializer.
5817 (c_language::get_compile_instance): New member function.
5818 (cplus_language_data): Delete la_get_compile_instance initializer.
5819 (cplus_language::get_compile_instance): New member function.
5820 (asm_language_data): Delete la_get_compile_instance initializer.
5821 (minimal_language_data): Likewise.
5822 * c-lang.h (c_get_compile_context): Update comment.
5823 (cplus_get_compile_context): Update comment.
5824 * compile/compile.c (compile_to_object): Update calls, don't rely
5825 on function pointer being NULL.
5826 * d-lang.c (d_language_data): Delete la_get_compile_instance
5827 initializer.
5828 * f-lang.c (f_language_data): Likewise.
5829 * go-lang.c (go_language_data): Likewise.
5830 * language.c (unknown_language_data): Likewise.
5831 (auto_language_data): Likewise.
5832 * language.h (language_data): Delete la_get_compile_instance field.
5833 (language_defn::get_compile_instance): New member function.
5834 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
5835 initializer.
5836 * objc-lang.c (objc_language_data): Likewise.
5837 * opencl-lang.c (opencl_language_data): Likewise.
5838 * p-lang.c (pascal_language_data): Likewise.
5839 * rust-lang.c (rust_language_data): Likewise.
5840
5841 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5842
5843 * ada-lang.c (ada_add_all_symbols): Update comment.
5844 (ada_iterate_over_symbols): Delete, move implementation to...
5845 (ada_language::iterate_over_symbols): ...here, a new member
5846 function, rewrite to use range based for loop.
5847 (ada_language_data): Delete la_iterate_over_symbols initializer.
5848 * c-lang.c (c_language_data): Likewise.
5849 (cplus_language_data): Likewise.
5850 (asm_language_data): Likewise.
5851 (minimal_language_data): Likewise.
5852 * d-lang.c (d_language_data): Likewise.
5853 * f-lang.c (f_language_data): Likewise.
5854 * go-lang.c (go_language_data): Likewise.
5855 * language.c (unknown_language_data): Likewise.
5856 (auto_language_data): Likewise.
5857 * language.h (language_data): Delete la_iterate_over_symbols field.
5858 (language_defn::iterate_over_symbols): New member function.
5859 (LA_ITERATE_OVER_SYMBOLS): Update.
5860 * linespec.c (iterate_over_all_matching_symtabs): Update.
5861 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
5862 initializer.
5863 * objc-lang.c (objc_language_data): Likewise.
5864 * opencl-lang.c (opencl_language_data): Likewise.
5865 * p-lang.c (pascal_language_data): Likewise.
5866 * rust-lang.c (rust_language_data): Likewise.
5867
5868 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5869
5870 * ada-lang.c (ada_language_data): Delete
5871 la_lookup_transparent_type initializer.
5872 * c-lang.c (c_language_data): Likewise.
5873 (cplus_language_data): Likewise.
5874 (cplus_language::lookup_transparent_type): New member function.
5875 (asm_language_data): Delete la_lookup_transparent_type
5876 initializer.
5877 (minimal_language_data): Likewise.
5878 * d-lang.c (d_language_data): Likewise.
5879 * f-lang.c (f_language_data): Likewise.
5880 * go-lang.c (go_language_data): Likewise.
5881 * language.c (unknown_language_data): Likewise.
5882 (auto_language_data): Likewise.
5883 * language.h (struct language_data): Delete
5884 la_lookup_transparent_type field.
5885 (language_defn::lookup_transparent_type): New member function.
5886 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
5887 initializer.
5888 * objc-lang.c (objc_language_data): Likewise.
5889 * opencl-lang.c (opencl_language_data): Likewise.
5890 * p-lang.c (pascal_language_data): Likewise.
5891 * rust-lang.c (rust_language_data): Likewise.
5892 * symtab.c (symbol_matches_domain): Update call.
5893
5894 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5895
5896 * ada-lang.c (ada_language_arch_info): Delete function, move
5897 implementation to...
5898 (ada_language::language_arch_info): ...here, a new member
5899 function.
5900 (ada_language_data): Delete la_language_arch_info.
5901 * c-lang.c (c_language_data): Likewise.
5902 (c_language::language_arch_info): New member function.
5903 (cplus_language_arch_info): Delete function, move
5904 implementation to...
5905 (cplus_language::language_arch_info): ...here, a new member
5906 function.
5907 (cplus_language_data): Delete la_language_arch_info.
5908 (asm_language_data): Likewise.
5909 (asm_language::language_arch_info): New member function.
5910 (minimal_language_data): Delete la_language_arch_info.
5911 (minimal_language::language_arch_info): New member function.
5912 * d-lang.c (d_language_arch_info): Delete function, move
5913 implementation to...
5914 (d_language::language_arch_info): ...here, a new member
5915 function.
5916 (d_language_data): Delete la_language_arch_info.
5917 * f-lang.c (f_language_arch_info): Delete function, move
5918 implementation to...
5919 (f_language::language_arch_info): ...here, a new member
5920 function.
5921 (f_language_data): Delete la_language_arch_info.
5922 * go-lang.c (go_language_arch_info): Delete function, move
5923 implementation to...
5924 (go_language::language_arch_info): ...here, a new member
5925 function.
5926 (go_language_data): Delete la_language_arch_info.
5927 * language.c (unknown_language_data): Likewise.
5928 (unknown_language::language_arch_info): New member function.
5929 (auto_language_data): Delete la_language_arch_info.
5930 (auto_language::language_arch_info): New member function.
5931 (language_gdbarch_post_init): Update call to
5932 la_language_arch_info.
5933 * language.h (language_data): Delete la_language_arch_info
5934 function pointer.
5935 (language_defn::language_arch_info): New function.
5936 * m2-lang.c (m2_language_arch_info): Delete function, move
5937 implementation to...
5938 (m2_language::language_arch_info): ...here, a new member
5939 function.
5940 (m2_language_data): Delete la_language_arch_info.
5941 * objc-lang.c (objc_language_arch_info): Delete function, move
5942 implementation to...
5943 (objc_language::language_arch_info): ...here, a new member
5944 function.
5945 (objc_language_data): Delete la_language_arch_info.
5946 * opencl-lang.c (opencl_language_arch_info): Delete function, move
5947 implementation to...
5948 (opencl_language::language_arch_info): ...here, a new member
5949 function.
5950 (opencl_language_data): Delete la_language_arch_info.
5951 * p-lang.c (pascal_language_arch_info): Delete function, move
5952 implementation to...
5953 (pascal_language::language_arch_info): ...here, a new member
5954 function.
5955 (pascal_language_data): Delete la_language_arch_info.
5956 * rust-lang.c (rust_language_arch_info): Delete function, move
5957 implementation to...
5958 (rust_language::language_arch_info): ...here, a new member
5959 function.
5960 (rust_language_data): Delete la_language_arch_info.
5961
5962 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5963
5964 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
5965 initializer.
5966 * c-lang.c (c_language_data): Likewise.
5967 (cplus_language_data): Likewise.
5968 (cplus_language::pass_by_reference_info): New method.
5969 (asm_language_data): Delete la_pass_by_reference initializer.
5970 (minimal_language_data): Likewise.
5971 * cp-abi.c (cp_pass_by_reference): Remove use of
5972 default_pass_by_reference.
5973 * d-lang.c (d_language_data): Likewise.
5974 * f-lang.c (f_language_data): Likewise.
5975 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
5976 default_pass_by_reference.
5977 * go-lang.c (go_language_data): Likewise.
5978 * language.c (language_pass_by_reference): Update.
5979 (default_pass_by_reference): Delete.
5980 (unknown_language_data): Delete la_pass_by_reference
5981 initializer.
5982 (auto_language_data): Likewise.
5983 * language.h (struct language_data): Delete la_pass_by_reference
5984 field.
5985 (language_defn::pass_by_reference_info): New member function.
5986 (default_pass_by_reference): Delete declaration.
5987 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
5988 initializer.
5989 * objc-lang.c (objc_language_data): Likewise.
5990 * opencl-lang.c (opencl_language_data): Likewise.
5991 * p-lang.c (pascal_language_data): Likewise.
5992 * rust-lang.c (rust_language_data): Likewise.
5993
5994 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5995
5996 * ada-lang.c (ada_read_var_value): Delete function, move
5997 implementation to...
5998 (ada_language::read_var_value): ...here.
5999 (ada_language_data): Delete la_read_var_value initializer.
6000 * c-lang.c (c_language_data): Likewise.
6001 (cplus_language_data): Likewise.
6002 (minimal_language_data): Likewise.
6003 * d-lang.c (d_language_data): Likewise.
6004 * f-lang.c (f_language_data): Likewise.
6005 * findvar.c (default_read_var_value): Rename to...
6006 (language_defn::read_var_value): ...this.
6007 * findvar.c (read_var_value): Update header comment, and change to
6008 call member function instead of function pointer.
6009 * go-lang.c (go_language_data): Likewise.
6010 * language.c (unknown_language_data): Delete la_read_var_value
6011 initializer.
6012 (auto_language_data): Likewise.
6013 * language.h (struct language_data): Delete la_read_var_value
6014 field.
6015 (language_defn::read_var_value): New member function.
6016 (default_read_var_value): Delete declaration.
6017 * m2-lang.c (m2_language_data): Delete la_read_var_value
6018 initializer.
6019 * objc-lang.c (objc_language_data): Likewise.
6020 * opencl-lang.c (opencl_language_data): Likewise.
6021 * p-lang.c (pascal_language_data): Likewise.
6022 * rust-lang.c (rust_language_data): Likewise.
6023 * value.h (default_read_var_value): Delete declaration.
6024
6025 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6026
6027 * ada-lang.c (ada_print_array_index): Delete function, move
6028 implementation to...
6029 (ada_language::print_array_index): ...here.
6030 (ada_language_data): Delete la_print_array_index initializer.
6031 * c-lang.c (c_language_data): Likewise.
6032 (cplus_language_data): Likewise.
6033 (minimal_language_data): Likewise.
6034 * d-lang.c (d_language_data): Likewise.
6035 * f-lang.c (f_language_data): Likewise.
6036 * go-lang.c (go_language_data): Likewise.
6037 * language.c (default_print_array_index): Delete function, move
6038 implementation to...
6039 (language_defn::print_array_index): ...here.
6040 (unknown_language_data): Delete la_print_array_index initializer.
6041 (auto_language_data): Likewise.
6042 * language.h (struct language_data): Delete la_print_array_index
6043 field.
6044 (language_defn::print_array_index): New member function.
6045 (LA_PRINT_ARRAY_INDEX): Update.
6046 (default_print_array_index): Delete declaration.
6047 * m2-lang.c (m2_language_data): Delete la_print_array_index
6048 initializer.
6049 * objc-lang.c (objc_language_data): Likewise.
6050 * opencl-lang.c (opencl_language_data): Likewise.
6051 * p-lang.c (pascal_language_data): Likewise.
6052 * rust-lang.c (rust_language_data): Likewise.
6053
6054 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6055
6056 * gdb/ada-lang.c (ada_language_defn): Convert to...
6057 (ada_language_data): ...this.
6058 (class ada_language): New class.
6059 (ada_language_defn): New static global.
6060 * gdb/c-lang.c (c_language_defn): Convert to...
6061 (c_language_data): ...this.
6062 (class c_language): New class.
6063 (c_language_defn): New static global.
6064 (cplus_language_defn): Convert to...
6065 (cplus_language_data): ...this.
6066 (class cplus_language): New class.
6067 (cplus_language_defn): New static global.
6068 (asm_language_defn): Convert to...
6069 (asm_language_data): ...this.
6070 (class asm_language): New class.
6071 (asm_language_defn): New static global.
6072 (minimal_language_defn): Convert to...
6073 (minimal_language_data): ...this.
6074 (class minimal_language): New class.
6075 (minimal_language_defn): New static global.
6076 * gdb/d-lang.c (d_language_defn): Convert to...
6077 (d_language_data): ...this.
6078 (class d_language): New class.
6079 (d_language_defn): New static global.
6080 * gdb/f-lang.c (f_language_defn): Convert to...
6081 (f_language_data): ...this.
6082 (class f_language): New class.
6083 (f_language_defn): New static global.
6084 * gdb/go-lang.c (go_language_defn): Convert to...
6085 (go_language_data): ...this.
6086 (class go_language): New class.
6087 (go_language_defn): New static global.
6088 * gdb/language.c (unknown_language_defn): Remove declaration.
6089 (current_language): Initialize to nullptr, real initialization is
6090 moved to _initialize_language.
6091 (languages): Delete global.
6092 (language_defn::languages): Define.
6093 (set_language_command): Use language_defn::languages.
6094 (set_language): Likewise.
6095 (range_error): Likewise.
6096 (language_enum): Likewise.
6097 (language_def): Likewise.
6098 (add_set_language_command): Use language_def::languages for the
6099 language list, and language_def to lookup language pointers.
6100 (skip_language_trampoline): Use language_defn::languages.
6101 (unknown_language_defn): Convert to...
6102 (unknown_language_data): ...this.
6103 (class unknown_language): New class.
6104 (unknown_language_defn): New static global.
6105 (auto_language_defn): Convert to...
6106 (auto_language_data): ...this.
6107 (class auto_language): New class.
6108 (auto_language_defn): New static global.
6109 (language_gdbarch_post_init): Use language_defn::languages.
6110 (_initialize_language): Initialize current_language.
6111 * gdb/language.h (struct language_defn): Rename to...
6112 (struct language_data): ...this.
6113 (struct language_defn): New.
6114 (auto_language_defn): Delete.
6115 (unknown_language_defn): Delete.
6116 (minimal_language_defn): Delete.
6117 (ada_language_defn): Delete.
6118 (asm_language_defn): Delete.
6119 (c_language_defn): Delete.
6120 (cplus_language_defn): Delete.
6121 (d_language_defn): Delete.
6122 (f_language_defn): Delete.
6123 (go_language_defn): Delete.
6124 (m2_language_defn): Delete.
6125 (objc_language_defn): Delete.
6126 (opencl_language_defn): Delete.
6127 (pascal_language_defn): Delete.
6128 (rust_language_defn): Delete.
6129 * gdb/m2-lang.c (m2_language_defn): Convert to...
6130 (m2_language_data): ...this.
6131 (class m2_language): New class.
6132 (m2_language_defn): New static global.
6133 * gdb/objc-lang.c (objc_language_defn): Convert to...
6134 (objc_language_data): ...this.
6135 (class objc_language): New class.
6136 (objc_language_defn): New static global.
6137 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
6138 (opencl_language_data): ...this.
6139 (class opencl_language): New class.
6140 (opencl_language_defn): New static global.
6141 * gdb/p-lang.c (pascal_language_defn): Convert to...
6142 (pascal_language_data): ...this.
6143 (class pascal_language): New class.
6144 (pascal_language_defn): New static global.
6145 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
6146 language pointer, update comment format.
6147 * gdb/rust-lang.c (rust_language_defn): Convert to...
6148 (rust_language_data): ...this.
6149 (class rust_language): New class.
6150 (rust_language_defn): New static global.
6151
6152 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
6153
6154 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
6155 member variable.
6156 <m_stmt_at_address>: New member variable.
6157 (lnp_state_machine::record_line): Don't record some lines, update
6158 tracking of is_stmt at the same address.
6159 (lnp_state_machine::lnp_state_machine): Initialise new member
6160 variables.
6161
6162 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
6163
6164 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
6165 "-include gnu-nat-mig.h".
6166 * gnu-nat-mig.h: New file.
6167 * gnu-nat.c: Include "gnu-nat-mig.h".
6168 (exc_server, msg_reply_server, notify_server,
6169 process_reply_server): Remove declarations.
6170
6171 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6172
6173 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
6174 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
6175 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
6176 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
6177 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
6178 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
6179 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
6180 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
6181 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
6182 to gnu_nat_target class.
6183 * gnu-nat.c: Likewise.
6184 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
6185 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
6186 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
6187 object.
6188 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
6189 instead of `gnu_target'.
6190
6191 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6192
6193 * i386-gnu-tdep.c: Include "gdbcore.h"
6194 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
6195 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
6196 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
6197 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
6198 i386_gnu_sigcontext_addr): New functions
6199 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
6200 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
6201 tdep.
6202
6203 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6204
6205 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
6206 before fork_inferior call. Avoid calling it if target_is_pushed returns
6207 true.
6208
6209 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6210
6211 * gnu-nat.h (gnu_target): New variable declaration.
6212 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
6213 gnu_target.
6214 * gnu-nat.c (gnu_target): New variable.
6215 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
6216 add_thread_silent, and add_thread calls.
6217 (gnu_nat_target::create_inferior): Pass gnu_target to
6218 add_thread_silent, thread_change_ptid call.
6219 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
6220 call.
6221
6222 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6223
6224 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
6225 (gnu_nat_target::find_memory_regions): Remove unused
6226 `old_address' variable.
6227
6228 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6229
6230 * gnu-nat.c: Include "gdbarch.h".
6231
6232 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6233
6234 * reply_mig_hack.awk (Error return): Cast function through
6235 void *, to bypass compiler function call check.
6236
6237 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6238
6239 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
6240 $(srcdir)/reply_mig_hack.awk.
6241
6242 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6243
6244 * gnu-nat.h (gnu_debug_flag): Set type to bool.
6245
6246 2020-05-30 Jonny Grant <jg@jguk.org>
6247
6248 * configure.ac (ACX_BUGURL): change bug URL to https.
6249
6250 2020-05-30 Pedro Alves <palves@redhat.com>
6251
6252 * cp-support.c (replace_typedefs_template): New.
6253 (replace_typedefs_qualified_name): Handle
6254 DEMANGLE_COMPONENT_TEMPLATE.
6255
6256 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
6257
6258 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
6259 dwarf2/index-cache.h, dwarf2/index-write.c,
6260 dwarf2/index-write.h, dwarf2/line-header.c,
6261 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
6262 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
6263 variables and fields from `dwarf2_per_objfile` to just
6264 `per_objfile` throughout.
6265
6266 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
6267
6268 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6269 <push_dwarf_reg_entry_value>: Add comment.
6270
6271 2020-05-28 Kevin Buettner <kevinb@redhat.com>
6272 Keith Seitz <keiths@redhat.com>
6273
6274 * python/python.c (do_start_initialization): Call PyEval_SaveThread
6275 instead of PyEval_ReleaseLock.
6276 (class gdbpy_gil): Move to earlier in file.
6277 (finalize_python): Set gdb_python_initialized.
6278 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
6279 when not initialized.
6280
6281 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
6282
6283 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6284 <push_dwarf_reg_entry_value>: Remove assert. Override
6285 per_objfile with caller_per_objfile.
6286
6287 2020-05-28 Tom de Vries <tdevries@suse.de>
6288
6289 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
6290 PR gold/15646 workaround to symbol kind "type".
6291
6292 2020-05-27 Tom Tromey <tromey@adacore.com>
6293
6294 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
6295
6296 2020-05-27 Tom Tromey <tromey@adacore.com>
6297
6298 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
6299 Use htab_find_with_hash.
6300 <add_abbrev>: Remove "abbrev_number" parameter.
6301 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
6302 "abbrev_number" parameter. Use htab_find_slot_with_hash.
6303 (hash_abbrev): Add comment.
6304 (abbrev_table::lookup_abbrev): Move to header file.
6305 (abbrev_table::read): Update.
6306
6307 2020-05-27 Tom Tromey <tromey@adacore.com>
6308
6309 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
6310 method.
6311 <canonical_name>: New member.
6312 <raw_name>: Rename from "name".
6313 (partial_die_info): Initialize canonical_name.
6314 (scan_partial_symbols): Check raw_name.
6315 (partial_die_parent_scope, partial_die_full_name)
6316 (add_partial_symbol, add_partial_subprogram)
6317 (add_partial_enumeration, load_partial_dies): Use "name" method.
6318 (partial_die_info::name): New method.
6319 (partial_die_info::read, guess_partial_die_structure_name)
6320 (partial_die_info::fixup): Update.
6321
6322 2020-05-27 Tom Tromey <tromey@adacore.com>
6323
6324 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
6325 <get_ref_die_offset>: Inline.
6326 <get_ref_die_offset_complaint>: New method.
6327 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
6328 (attribute::get_ref_die_offset_complaint): Rename from
6329 get_ref_die_offset. Just issue complaint.
6330
6331 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
6332
6333 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
6334
6335 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
6336
6337 * exec.c (exec_file_attach): Use errno value of first openp failure.
6338
6339 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
6340
6341 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
6342 Don't close thread handle.
6343
6344 2020-05-27 Tom Tromey <tom@tromey.com>
6345 Simon Marchi <simon.marchi@efficios.com>
6346
6347 * objfiles.h (struct objfile) <partial_symtabs>: Now a
6348 shared_ptr.
6349 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
6350 member.
6351 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
6352 dwarf2_per_bfd_objfile_data_key>: New globals.
6353 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
6354 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
6355 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
6356 shared.
6357 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
6358 short-circuit when sharing.
6359 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
6360 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
6361
6362 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6363
6364 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
6365 to...
6366 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
6367 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
6368
6369 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6370
6371 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
6372 build_name_components, find_name_components_bounds>:
6373 Add per_objfile parameter.
6374 (struct mapped_index) <symbol_name_at>: Likewise.
6375 (struct mapped_debug_names): Remove constructor.
6376 <dwarf2_per_objfile>: Remove field.
6377 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
6378 (mapped_index_base::find_name_components_bounds,
6379 mapped_index_base::build_name_components,
6380 dw2_expand_symtabs_matching_symbol): Likewise.
6381 (class mock_mapped_index) <symbol_name_at>: Likewise.
6382 (check_match): Likewise.
6383 (check_find_bounds_finds): Likewise.
6384 (test_mapped_index_find_name_component_bounds): Update.
6385 (CHECK_MATCH): Update.
6386 (dw2_expand_symtabs_matching): Update.
6387 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
6388 per_objfile parameter.
6389 <find_vec_in_debug_names>: Likewise.
6390 <m_per_objfile>: New field.
6391 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
6392 parameter.
6393 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
6394 (dw2_debug_names_iterator::next): Update.
6395 (dw2_debug_names_lookup_symbol): Update.
6396 (dw2_debug_names_expand_symtabs_for_function): Update.
6397 (dw2_debug_names_map_matching_symbols): Update.
6398 (dw2_debug_names_expand_symtabs_matching): Update.
6399 (dwarf2_read_debug_names): Update.
6400
6401 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6402
6403 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
6404 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
6405 move to dwarf2_per_objfile.
6406 <read_in_chain>: Remove.
6407 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
6408 remove_all_cus, age_comp_units>: New methods.
6409 <m_dwarf2_cus>: New member.
6410 (struct dwarf2_per_cu_data) <cu>: Remove.
6411 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
6412 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
6413 moved to methods of dwarf2_per_objfile.
6414 (dwarf2_clear_marks): Remove.
6415 (dwarf2_queue_item::~dwarf2_queue_item): Update.
6416 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
6417 (dwarf2_per_bfd::free_cached_comp_units): Remove.
6418 (dwarf2_per_objfile::remove_all_cus): New.
6419 (class free_cached_comp_units) <~free_cached_comp_units>:
6420 Update.
6421 (load_cu): Update.
6422 (dw2_do_instantiate_symtab): Adjust.
6423 (fill_in_sig_entry_from_dwo_entry): Adjust.
6424 (cutu_reader::init_tu_and_read_dwo_dies): Update.
6425 (cutu_reader::cutu_reader): Likewise.
6426 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
6427 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
6428 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
6429 and dwarf2_per_objfile::age_comp_units.
6430 (load_partial_comp_unit): Update.
6431 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
6432 (process_queue): Likewise.
6433 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
6434 backlink.
6435 (dwarf2_read_addr_index): Likewise.
6436 (follow_die_offset): Likewise.
6437 (dwarf2_fetch_die_loc_sect_off): Likewise.
6438 (dwarf2_fetch_constant_bytes): Likewise.
6439 (dwarf2_fetch_die_type_sect_off): Likewise.
6440 (follow_die_sig_1): Likewise.
6441 (load_full_type_unit): Likewise.
6442 (read_signatured_type): Likewise.
6443 (dwarf2_cu::dwarf2_cu): Don't set cu field.
6444 (dwarf2_cu::~dwarf2_cu): Remove.
6445 (dwarf2_per_objfile::get_cu): New.
6446 (dwarf2_per_objfile::set_cu): New.
6447 (age_cached_comp_units): Rename to...
6448 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
6449 to std::unordered_map.
6450 (free_one_cached_comp_unit): Rename to...
6451 (dwarf2_per_objfile::remove_cu): ... this. Adjust
6452 to std::unordered_map.
6453 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
6454 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
6455 a dwarf2_per_objfile in data.
6456 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
6457 (dwarf2_clear_marks): Remove.
6458
6459 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6460
6461 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
6462 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
6463 (init_tu_and_read_dwo_dies): Likewise.
6464 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
6465 (cutu_reader::cutu_reader): Likewise.
6466 (load_partial_comp_unit): Likewise.
6467 (process_psymtab_comp_unit): Update.
6468 (build_type_psymtabs_1): Update.
6469 (process_skeletonless_type_unit): Update.
6470 (load_full_comp_unit): Update.
6471 (find_partial_die): Update.
6472 (dwarf2_read_addr_index): Update.
6473 (read_signatured_type): Update.
6474
6475 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6476
6477 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
6478 m_header_read_in>: New fields.
6479 <get_header>: New method.
6480 * dwarf2/read.c (per_cu_header_read_in): Remove.
6481 (dwarf2_per_cu_data::get_header): New.
6482 (dwarf2_per_cu_data::addr_size): Update.
6483 (dwarf2_per_cu_data::offset_size): Update.
6484 (dwarf2_per_cu_data::ref_addr_size): Update.
6485
6486 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6487
6488 * dwarf2/read.c (load_cu): Return dwarf2_cu.
6489 (dw2_do_instantiate_symtab): Update.
6490 (queue_and_load_all_dwo_tus): Change parameter from
6491 dwarf2_per_cu_data to dwarf2_cu.
6492 (dwarf2_fetch_die_loc_sect_off): Update.
6493 (dwarf2_fetch_constant_bytes): Update.
6494 (dwarf2_fetch_die_type_sect_off): Update.
6495
6496 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6497
6498 * dwarf2/read.c (process_full_comp_unit,
6499 process_full_type_unit): Remove per_cu, per_objfile paramters.
6500 Add dwarf2_cu parameter.
6501 (process_queue): Update.
6502
6503 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6504
6505 * dwarf2/read.c (create_cu_from_index_list): Replace
6506 dwarf2_per_objfile parameter with dwarf2_per_bfd.
6507 (create_cus_from_index_list): Likewise.
6508 (create_cus_from_index): Likewise.
6509 (create_signatured_type_table_from_index): Likewise.
6510 (create_cus_from_debug_names_list): Likewise.
6511 (create_cus_from_debug_names): Likewise.
6512 (dwarf2_read_gdb_index): Update.
6513 (dwarf2_read_debug_names): Update.
6514
6515 2020-05-27 Tom Tromey <tom@tromey.com>
6516 Simon Marchi <simon.marchi@efficios.com>
6517
6518 * dwarf2/read.h (struct dwarf2_per_objfile)
6519 <get_type_for_signatured_type, set_type_for_signatured_type>:
6520 New methods.
6521 <m_type_map>: New member.
6522 (struct signatured_type) <type>: Remove.
6523 * dwarf2/read.c
6524 (dwarf2_per_objfile::get_type_for_signatured_type,
6525 dwarf2_per_objfile::set_type_for_signatured_type): New.
6526 (get_signatured_type): Use new methods.
6527
6528 2020-05-27 Tom Tromey <tom@tromey.com>
6529 Simon Marchi <simon.marchi@efficios.com>
6530
6531 * dwarf2/read.h (struct type_unit_group_unshareable): New.
6532 (struct dwarf2_per_objfile) <type_units>: New member.
6533 <get_type_unit_group_unshareable>: New method.
6534 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
6535 num_symtabs, symtabs>: Remove; move to
6536 type_unit_group_unshareable.
6537 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
6538 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
6539 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
6540
6541 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6542
6543 * dwarf2/read.h (struct dwarf2_per_cu_data):
6544 <dwarf2_per_objfile>: Remove.
6545 * dwarf2/read.c (create_cu_from_index_list): Don't assign
6546 dwarf2_per_objfile.
6547 (create_signatured_type_table_from_index): Likewise.
6548 (create_signatured_type_table_from_debug_names): Likewise.
6549 (create_debug_type_hash_table): Likewise.
6550 (fill_in_sig_entry_from_dwo_entry): Likewise.
6551 (create_type_unit_group): Likewise.
6552 (read_comp_units_from_section): Likewise.
6553 (create_cus_hash_table): Likewise.
6554
6555 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6556
6557 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
6558 dwarf2_per_cu_data::dwarf2_per_objfile.
6559 (compute_compunit_symtab_includes): Likewise.
6560 (dwarf2_cu::start_symtab): Likewise.
6561
6562 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6563
6564 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
6565 parameter.
6566 * dwarf2/read.c (get_die_type_at_offset): Likewise.
6567 (read_namespace_alias): Update.
6568 (lookup_die_type): Update.
6569 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
6570 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
6571 Update.
6572 (disassemble_dwarf_expression): Update.
6573
6574 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6575
6576 * dwarf2/read.h (struct dwarf2_queue_item): Add
6577 dwarf2_per_objfile parameter, assign new parameter.
6578 <per_objfile>: New field.
6579 * dwarf2/read.c (free_one_cached_comp_unit): Add
6580 dwarf2_per_objfile parameter.
6581 (queue_comp_unit): Likewise.
6582 (dw2_do_instantiate_symtab): Update.
6583 (process_psymtab_comp_unit): Update.
6584 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
6585 (process_imported_unit_die): Update.
6586 (queue_and_load_dwo_tu): Update.
6587 (follow_die_offset): Update.
6588 (follow_die_sig_1): Update.
6589
6590 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6591
6592 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
6593 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
6594 (read_call_site_scope): Assign per_objfile.
6595 (dwarf2_per_cu_data::objfile): Remove.
6596 * gdbtypes.h (struct call_site) <per_objfile>: New member.
6597 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
6598 dwarf2_per_objfile parameter.
6599 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
6600 dwarf2_per_objfile parameter.
6601 (dwarf_expr_reg_to_entry_parameter): Add output
6602 dwarf2_per_objfile parameter.
6603 (locexpr_get_frame_base): Update.
6604 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
6605 <push_dwarf_reg_entry_value>: Update.
6606 <call_site_to_target_addr>: Update.
6607 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
6608 parameter.
6609 (value_of_dwarf_reg_entry): Update.
6610 (rw_pieced_value): Update.
6611 (indirect_synthetic_pointer): Update.
6612 (dwarf2_evaluate_property): Update.
6613 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
6614 parameter.
6615 (locexpr_read_variable): Update.
6616 (locexpr_get_symbol_read_needs): Update.
6617 (loclist_read_variable): Update.
6618
6619 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6620
6621 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
6622 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
6623 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
6624 parameter.
6625 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
6626 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
6627 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
6628 parameter.
6629 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
6630 sect_variable_value): Add dwarf2_per_objfile parameter.
6631 (class dwarf_evaluate_loc_desc) <dwarf_call,
6632 dwarf_variable_value>: Update.
6633 (fetch_const_value_from_synthetic_pointer): Add
6634 dwarf2_per_objfile parameter.
6635 (fetch_const_value_from_synthetic_pointer): Update.
6636 (coerced_pieced_ref): Update.
6637 (class symbol_needs_eval_context) <dwarf_call,
6638 dwarf_variable_value>: Update.
6639 (dwarf2_compile_expr_to_ax): Update.
6640
6641 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6642
6643 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
6644 parameter.
6645 (dwarf2_evaluate_loc_desc_full): Update.
6646
6647 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6648
6649 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
6650 parameter.
6651 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
6652 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
6653 dwarf2_per_objfile parameter.
6654 (decode_debug_loc_dwo_addresses): Likewise.
6655 (dwarf2_find_location_expression): Update.
6656 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
6657 (locexpr_describe_location_piece): Add dwarf2_per_objfile
6658 parameter.
6659 (disassemble_dwarf_expression): Add dwarf2_per_objfile
6660 parameter.
6661 (locexpr_describe_location_1): Likewise.
6662 (locexpr_describe_location): Update.
6663
6664 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6665
6666 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
6667 Remove.
6668 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
6669 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
6670 (dwarf2_compile_property_to_c): Update.
6671 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
6672 use text offset from objfile.
6673 (locexpr_tracepoint_var_ref): Update.
6674 (locexpr_generate_c_location): Update.
6675 (loclist_describe_location): Update.
6676 (loclist_tracepoint_var_ref): Update.
6677 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
6678 dwarf2_per_objfile parameter.
6679 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
6680 use text offset from objfile.
6681 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
6682
6683 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6684
6685 * dwarf2/expr.h (struct dwarf_expr_context)
6686 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
6687 <offset>: Remove.
6688 <per_objfile>: New member.
6689 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
6690 dwarf2_per_objfile parameter. Don't set offset, set
6691 per_objfile.
6692 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
6693 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
6694 a dwarf2_per_objfile object instead of an offset.
6695 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
6696 constructor.
6697 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
6698 to dwarf2_expr_executor constructor. Don't set offset.
6699 (dwarf2_fetch_cfa_info): Update.
6700 (struct dwarf2_frame_cache) <text_offset>: Remove.
6701 <per_objfile>: New field.
6702 (dwarf2_frame_cache): Update.
6703 (dwarf2_frame_prev_register): Update.
6704 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6705 <dwarf_evaluate_loc_desc>: Add constructor.
6706 (dwarf2_evaluate_loc_desc_full): Update.
6707 (dwarf2_locexpr_baton_eval): Update.
6708 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
6709 Add constructor.
6710 (dwarf2_loc_desc_get_symbol_read_needs): Update.
6711
6712 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6713
6714 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
6715 addr_sized_int_type>: Move to dwarf2_cu.
6716 <int_type>: Move to dwarf2_per_objfile.
6717 (struct dwarf2_per_objfile) <int_type>: Move here.
6718 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
6719 addr_sized_int_type>: Move here.
6720 (read_func_scope): Update.
6721 (read_array_type): Update.
6722 (read_tag_string_type): Update.
6723 (attr_to_dynamic_prop): Update.
6724 (dwarf2_per_cu_data::int_type): Rename to...
6725 (dwarf2_per_objfile::int_type): ... this.
6726 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
6727 (dwarf2_cu::addr_sized_int_type): ... this.
6728 (read_subrange_type): Update.
6729 (dwarf2_per_cu_data::addr_type): Rename to...
6730 (dwarf2_cu::addr_type): ... this.
6731 (set_die_type): Update.
6732
6733 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6734
6735 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
6736 data through per_cu->cu.
6737
6738 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6739
6740 * dwarf2/read.c (lookup_dwo_comp_unit): Change
6741 dwarf2_per_cu_data parameter fo dwarf2_cu.
6742 (lookup_dwo_type_unit): Likewise.
6743 (read_cutu_die_from_dwo): Likewise.
6744 (lookup_dwo_unit): Likewise.
6745 (open_and_init_dwo_file): Likewise.
6746 (lookup_dwo_cutu): Likewise.
6747 (lookup_dwo_comp_unit): Likewise.
6748 (lookup_dwo_type_unit): Likewise.
6749 (cutu_reader::init_tu_and_read_dwo_dies): Update.
6750 (cutu_reader::cutu_reader): Update.
6751
6752 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6753
6754 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
6755 parameter.
6756 (process_full_type_unit): Likewise.
6757 (process_queue): Update.
6758
6759 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6760
6761 * dwarf2/read.c (recursively_compute_inclusions): Add
6762 dwarf2_per_objfile parameter.
6763 (compute_compunit_symtab_includes): Likewise.
6764 (process_cu_includes): Update.
6765
6766 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6767
6768 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
6769 parameter.
6770 (create_type_unit_group): Update.
6771 (process_psymtab_comp_unit_reader): Update.
6772 (build_type_psymtabs_reader): Update.
6773
6774 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6775
6776 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
6777 object through m_this_cu->cu.
6778
6779 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6780
6781 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
6782 the info parameter.
6783 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
6784
6785 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6786
6787 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
6788 per_objfile parameter.
6789 (load_full_type_unit): Add per_objfile parameter.
6790 (read_signatured_type): Likewise.
6791 (load_full_comp_unit): Likewise.
6792 (load_cu): Likewise.
6793 (dw2_do_instantiate_symtab): Likewise.
6794 (dw2_get_file_names): Likewise.
6795 (dw2_map_symtabs_matching_filename): Update.
6796 (dw_expand_symtabs_matching_file_matcher): Update.
6797 (dw2_map_symbol_filenames): Update.
6798 (process_psymtab_comp_unit): Add per_objfile parameter.
6799 (build_type_psymtabs_1): Update.
6800 (process_skeletonless_type_unit): Update.
6801 (dwarf2_build_psymtabs_hard): Update.
6802 (load_partial_comp_unit): Add per_objfile parameter.
6803 (scan_partial_symbols): Update.
6804 (load_full_comp_unit): Add per_objfile parameter.
6805 (process_imported_unit_die): Update.
6806 (create_cus_hash_table): Update.
6807 (find_partial_die): Update.
6808 (dwarf2_read_addr_index): Update.
6809 (follow_die_offset): Update.
6810 (dwarf2_fetch_die_loc_sect_off): Update.
6811 (dwarf2_fetch_constant_bytes): Update.
6812 (dwarf2_fetch_die_type_sect_off): Update.
6813 (follow_die_sig_1): Update.
6814 (load_full_type_unit): Add per_objfile parameter.
6815 (read_signatured_type): Likewise.
6816
6817 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6818
6819 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
6820 of objfile_name.
6821
6822 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6823
6824 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
6825 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
6826 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
6827 field.
6828 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
6829 (create_cus_from_index): Update.
6830 (dwarf2_read_gdb_index): Update.
6831 (create_cus_from_debug_names): Update.
6832 (dwarf2_read_debug_names): Update.
6833 (get_abbrev_section_for_cu): Update.
6834 (create_all_comp_units): Update.
6835 (read_attribute_value): Update.
6836 (get_debug_line_section): Update.
6837 * dwarf2/index-cache.c (index_cache::store): Update.
6838 * dwarf2/index-write.c (save_gdb_index_command): Update.
6839 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
6840
6841 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6842
6843 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
6844 member.
6845 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
6846 dwarf2_per_cu_data::per_bfd.
6847 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
6848 (create_type_unit_group): Likewise.
6849 (queue_comp_unit): Remove reference to
6850 per_cu->dwarf2_per_objfile.
6851 (maybe_queue_comp_unit): Likewise.
6852 (fill_in_sig_entry_from_dwo_entry): Assign new field.
6853 (create_cus_hash_table): Assign new field.
6854
6855 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6856
6857 * dwarf2/read.c: Replace
6858 dwarf2_cu->per_cu->dwarf2_per_objfile references with
6859 dwarf2_cu->per_objfile throughout.
6860
6861 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6862
6863 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
6864 parameter, don't use per_cu->dwarf2_per_objfile.
6865 (dw2_instantiate_symtab): Likewise.
6866 (dw2_find_last_source_symtab): Update.
6867 (dw2_map_expand_apply): Update.
6868 (dw2_lookup_symbol): Update.
6869 (dw2_expand_symtabs_for_function): Update.
6870 (dw2_expand_all_symtabs): Update.
6871 (dw2_expand_symtabs_with_fullname): Update.
6872 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
6873 don't use per_cu->dwarf2_per_objfile.
6874 (dw2_expand_marked_cus): Update.
6875 (dw2_find_pc_sect_compunit_symtab): Update.
6876 (dw2_debug_names_lookup_symbol): Update.
6877 (dw2_debug_names_expand_symtabs_for_function): Update.
6878 (dw2_debug_names_map_matching_symbols): Update.
6879 (dwarf2_psymtab::expand_psymtab): Update.
6880
6881 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6882
6883 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
6884 <per_objfile>: New member.
6885 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
6886 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
6887 call to dwarf2_cu.
6888 (cutu_reader::cutu_reader): Update.
6889 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
6890
6891 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6892
6893 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
6894 struct dwarf2_per_objfile.
6895 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
6896 dwarf2_per_bfd.
6897 * dwarf2/read.c (set_die_type): Update.
6898 (get_die_type_at_offset): Update.
6899
6900 2020-05-27 Tom Tromey <tom@tromey.com>
6901 Simon Marchi <simon.marchi@efficios.com>
6902
6903 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
6904 method.
6905 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
6906 get_symtab, set_symtab>: New methods.
6907 <m_symtabs>: New field.
6908 (struct dwarf2_psymtab): Derive from partial_symtab.
6909 <readin_p, get_compunit_symtab>: Declare methods.
6910 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
6911 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
6912 New methods.
6913 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
6914 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
6915 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
6916 (dw2_symtab_iter_next, dw2_print_stats)
6917 (dw2_expand_symtabs_with_fullname)
6918 (dw2_expand_symtabs_matching_one)
6919 (dw_expand_symtabs_matching_file_matcher)
6920 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
6921 (dw2_debug_names_iterator::next)
6922 (dw2_debug_names_map_matching_symbols)
6923 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
6924 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
6925 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
6926 New methods.
6927 (get_compunit_symtab, process_full_comp_unit)
6928 (process_full_type_unit): Update.
6929 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
6930
6931 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6932
6933 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
6934 then introduce a new dwarf2_per_objfile type.
6935 <read_line_string>: Move to the new dwarf2_per_objfile type.
6936 <objfile>: Likewise.
6937 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
6938 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
6939 dwarf2_per_objfile->per_bfd.
6940 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
6941 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
6942 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
6943 (dwarf2_per_bfd::free_cached_comp_units): ... this.
6944 (dwarf2_has_info): Allocate dwarf2_per_bfd.
6945 (dwarf2_per_objfile::locate_sections): Rename to...
6946 (dwarf2_per_bfd::locate_sections): ... this.
6947 (dwarf2_per_objfile::get_cutu): Rename to...
6948 (dwarf2_per_bfd::get_cutu): ... this.
6949 (dwarf2_per_objfile::get_cu): Rename to...
6950 (dwarf2_per_bfd::get_cu): ... this.
6951 (dwarf2_per_objfile::get_tu): Rename to...
6952 (dwarf2_per_bfd::get_tu): ... this.
6953 (dwarf2_per_objfile::allocate_per_cu): Rename to...
6954 (dwarf2_per_bfd::allocate_per_cu): ... this.
6955 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
6956 (dwarf2_per_bfd::allocate_signatured_type): ... this.
6957 (get_gdb_index_contents_ftype): Change parameter from
6958 dwarf2_per_objfile to dwarf2_per_bfd.
6959 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
6960 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
6961
6962 2020-05-27 Tom Tromey <tom@tromey.com>
6963 Simon Marchi <simon.marchi@efficios.com>
6964
6965 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
6966 (allocate_piece_closure): Set "per_objfile" member.
6967 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
6968 (locexpr_describe_location, loclist_describe_location): Use new
6969 member.
6970 * dwarf2/read.c (read_call_site_scope)
6971 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
6972 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
6973 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
6974 handle_data_member_location): Set per_objfile member.
6975 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
6976 member.
6977 (struct dwarf2_loclist_baton) <per_objfile>: New member.
6978
6979 2020-05-27 Tom Tromey <tom@tromey.com>
6980
6981 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
6982 allocate_signatured_type>: Declare new methods.
6983 <m_num_psymtabs>: New member.
6984 (struct dwarf2_per_cu_data) <index>: New member.
6985 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
6986 (dwarf2_per_objfile::allocate_signatured_type): New methods.
6987 (create_cu_from_index_list): Use allocate_per_cu.
6988 (create_signatured_type_table_from_index)
6989 (create_signatured_type_table_from_debug_names)
6990 (create_debug_type_hash_table, add_type_unit)
6991 (read_comp_units_from_section): Use allocate_signatured_type.
6992
6993 2020-05-27 Tom Tromey <tom@tromey.com>
6994
6995 * psymtab.c (partial_map_expand_apply)
6996 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
6997 (psym_lookup_global_symbol_language)
6998 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
6999 (psym_print_stats, psym_expand_symtabs_for_function)
7000 (psym_map_symbol_filenames, psym_map_matching_symbols)
7001 (psym_expand_symtabs_matching)
7002 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
7003 (maintenance_check_psymtabs): Update.
7004 * psympriv.h (struct partial_symtab) <readin_p,
7005 get_compunit_symtab>: Add objfile parameter.
7006 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
7007 Likewise.
7008 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
7009 get_compunit_symtab>: Likewise.
7010 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
7011
7012 2020-05-27 Tom Tromey <tom@tromey.com>
7013
7014 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
7015 member.
7016 * dwarf2/read.c (delete_file_name_entry): Fix comment.
7017 (create_cu_from_index_list)
7018 (create_signatured_type_table_from_index)
7019 (create_signatured_type_table_from_debug_names)
7020 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
7021 (dwarf2_create_include_psymtab)
7022 (create_debug_type_hash_table, add_type_unit)
7023 (create_type_unit_group, read_comp_units_from_section)
7024 (dwarf2_compute_name, create_cus_hash_table)
7025 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
7026 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
7027 obstack.
7028 (dw2_get_real_path): Likewise. Change argument to
7029 dwarf2_per_objfile.
7030
7031 2020-05-27 Luis Machado <luis.machado@linaro.org>
7032
7033 PR tdep/26000
7034 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
7035 for ldrd (immediate).
7036
7037 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7038
7039 * command.h: Add comment giving the name of class_tui.
7040 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
7041 create the fake command for the help for class_tui.
7042
7043 2020-05-26 Tom Tromey <tromey@adacore.com>
7044
7045 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
7046 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
7047 (val_atr): New function.
7048 (value_val_atr): Use it.
7049 * ada-valprint.c (print_optional_low_bound): Change low bound
7050 handling for enums.
7051 (val_print_packed_array_elements): Don't call discrete_position.
7052 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
7053 discrete_position for enum types.
7054 * language.c (default_print_array_index): Change type.
7055 * language.h (struct language_defn) <la_print_array_index>: Add
7056 index_type parameter, change type of index_value.
7057 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
7058 (default_print_array_index): Update.
7059 * valprint.c (maybe_print_array_index): Don't call
7060 value_from_longest. Update.
7061 (value_print_array_elements): Don't call discrete_position.
7062
7063 2020-05-26 Tom Tromey <tromey@adacore.com>
7064
7065 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
7066 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
7067
7068 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
7069
7070 PR gdb/13519
7071 * avr-tdep.c (avr_integer_to_address): Return data or code
7072 address accordingly to the second 'type' argument of the
7073 function.
7074
7075 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
7076
7077 * infcmd.c, inferior.h: (construct_inferior_arguments):
7078 Moved function from here to gdbsupport/common-inferior.{h,cc}
7079
7080 2020-05-23 Tom Tromey <tom@tromey.com>
7081
7082 Revert commit eca1f90c:
7083 * NEWS: Remove entry for completion styling.
7084 * completer.c (_rl_completion_prefix_display_length): Move
7085 declaration later.
7086 (gdb_fnprint): Revert.
7087 (gdb_display_match_list_1): Likewise.
7088 * cli/cli-style.c (completion_prefix_style)
7089 (completion_difference_style, completion_suffix_style): Remove.
7090 (_initialize_cli_style): Revert.
7091 * cli/cli-style.h (completion_prefix_style)
7092 (completion_difference_style, completion_suffix_style): Don't
7093 declare.
7094
7095 2020-05-24 Pedro Alves <palves@redhat.com>
7096
7097 * symtab.c (completion_list_add_name): Return boolean indication
7098 of whether the symbol matched.
7099 (completion_list_add_symbol): Don't try to remove C++ aliases if
7100 the symbol didn't match in the first place.
7101 * symtab.h (completion_list_add_name): Return bool.
7102
7103 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
7104
7105 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
7106 type::field.
7107
7108 2020-05-23 Joel Brobecker <brobecker@adacore.com>
7109
7110 GDB 9.2 released.
7111
7112 2020-05-23 Tom Tromey <tom@tromey.com>
7113
7114 * NEWS: Add entry for completion styling.
7115 * completer.c (_rl_completion_prefix_display_length): Move
7116 declaration earlier.
7117 (gdb_fnprint): Use completion_style.
7118 (gdb_display_match_list_1): Likewise.
7119 * cli/cli-style.c (completion_prefix_style)
7120 (completion_difference_style, completion_suffix_style): New
7121 globals.
7122 (_initialize_cli_style): Register new globals.
7123 * cli/cli-style.h (completion_prefix_style)
7124 (completion_difference_style, completion_suffix_style): Declare.
7125
7126 2020-05-23 Pedro Alves <palves@redhat.com>
7127
7128 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
7129 (parse_escape): Use ISDIGIT instead of isdigit.
7130 (puts_debug): Use gdb_isprint instead of isprint.
7131 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
7132 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
7133 ISSPACE instead of isspace.
7134 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
7135 instead of isspace.
7136 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
7137 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
7138 instead of isxdigit and ISDIGIT instead of isdigit.
7139
7140 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
7141
7142 * gdbtypes.h (struct type) <field>: New method.
7143 (TYPE_FIELDS): Remove, replace all uses with either type::fields
7144 or type::field.
7145
7146 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
7147
7148 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
7149 (TYPE_FIELDS): Use type::fields. Change all call sites that
7150 modify the propery to use type::set_fields instead.
7151
7152 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
7153
7154 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
7155 type::num_fields instead.
7156
7157 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
7158
7159 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
7160 methods.
7161 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
7162 that modify the number of fields to use type::set_num_fields
7163 instead.
7164
7165 2020-05-22 Tom Tromey <tromey@adacore.com>
7166
7167 * compile/compile-object-load.h (munmap_list_free): Don't
7168 declare.
7169
7170 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
7171
7172 * annotate.c (annotate_source_line): Update return type, add call
7173 to update current symtab and line.
7174 * annotate.h (annotate_source_line): Update return type, and
7175 extend header comment.
7176 * source.c (info_line_command): Check annotation_level before
7177 calling annotate_source_line.
7178 * stack.c (print_frame_info): If calling annotate_source_line
7179 returns true, then don't print any other source line information.
7180
7181 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
7182
7183 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
7184
7185 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
7186
7187 * coffread.c (patch_type): Remove NULL check before xfree.
7188 * corefile.c (set_gnutarget): Likewise.
7189 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
7190 * exec.c (build_section_table): Likewise.
7191 * remote.c (remote_target::pass_signals): Likewise.
7192 * utils.c (n_spaces): Likewise.
7193 * cli/cli-script.c (document_command): Likewise.
7194 * i386-windows-tdep.c (core_process_module_section): Likewise.
7195 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
7196
7197 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
7198
7199 * symfile.c (reread_symbols): Clear objfile's section_offsets
7200 vector and section indices, re-compute them by calling
7201 sym_offsets.
7202
7203 2020-05-20 Tom Tromey <tromey@adacore.com>
7204
7205 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
7206 (desc_one_bound, desc_index_type): Compute field name.
7207
7208 2020-05-20 Tom de Vries <tdevries@suse.de>
7209
7210 PR symtab/25833
7211 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
7212
7213 2020-05-20 Alan Modra <amodra@gmail.com>
7214
7215 PR 25993
7216 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
7217 bfd_set_filename.
7218 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
7219 passed to bfd_set_filename.
7220 * symfile-mem.c (add_vsyscall_page): Likewise for string
7221 passed to symbol_file_add_from_memory.
7222 (symbol_file_add_from_memory): Make name param a const char* and
7223 don't strdup.
7224
7225 2020-05-20 Alan Modra <amodra@gmail.com>
7226
7227 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
7228 rather than accessing bfd->filename directly.
7229 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
7230 and use bfd_section_name.
7231 * dwarf2/frame.c (decode_frame_entry): Likewise.
7232 * exec.c (exec_set_section_address): Likewise.
7233 * solib-aix.c (solib_aix_bfd_open): Likewise.
7234 * stap-probe.c (get_stap_base_address): Likewise.
7235 * symfile.c (reread_symbols): Likewise.
7236
7237 2020-05-19 Tom Tromey <tromey@adacore.com>
7238
7239 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
7240
7241 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
7242
7243 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
7244
7245 2020-05-19 Pedro Alves <palves@redhat.com>
7246
7247 * NEWS (set exec-file-mismatch): Adjust entry.
7248 * exec.c: Include "build-id.h".
7249 (validate_exec_file): Try to match build IDs instead of filenames.
7250 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
7251 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
7252 and pass down 'warn_if_slow'.
7253 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
7254 gdb_bfd_open_closure to pass it down.
7255 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
7256
7257 2020-05-19 Pedro Alves <palves@redhat.com>
7258
7259 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
7260 * target.c (target_fileio_open_1): Rename to target_fileio_open
7261 and make extern. Use bool.
7262 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
7263 (target_fileio_read_alloc_1): Adjust.
7264 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
7265 (target_fileio_open_warn_if_slow): Delete declaration.
7266
7267 2020-05-19 Pedro Alves <palves@redhat.com>
7268
7269 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
7270 Adjust all callers.
7271
7272 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
7273
7274 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
7275 whether disp is negative.
7276
7277 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
7278
7279 * symfile.h (struct symfile_segment_data)
7280 <~symfile_segment_data>: Remove.
7281 <segment_info>: Change to std::vector.
7282 * symfile.c (default_symfile_segments): Update.
7283 * elfread.c (elf_symfile_segments): Update.
7284
7285 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
7286
7287 * symfile.h (struct symfile_segment_data) <struct segment>: New.
7288 <segments>: New.
7289 <segment_bases, segment_sizes>: Remove.
7290 * symfile.c (default_symfile_segments): Update.
7291 * elfread.c (elf_symfile_segments): Update.
7292 * remote.c (remote_target::get_offsets): Update.
7293 * solib-target.c (solib_target_relocate_section_addresses):
7294 Update.
7295
7296 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
7297
7298 * symfile.h (struct symfile_segment_data): Initialize fields.
7299 <~symfile_segment_data>: Add.
7300 (symfile_segment_data_up): New.
7301 (struct sym_fns) <sym_segments>: Return a
7302 symfile_segment_data_up.
7303 (default_symfile_segments): Return a symfile_segment_data_up.
7304 (free_symfile_segment_data): Remove.
7305 (get_symfile_segment_data): Return a symfile_segment_data_up.
7306 * symfile.c (default_symfile_segments): Likewise.
7307 (get_symfile_segment_data): Likewise.
7308 (free_symfile_segment_data): Remove.
7309 (symfile_find_segment_sections): Update.
7310 * elfread.c (elf_symfile_segments): Return a
7311 symfile_segment_data_up.
7312 * remote.c (remote_target::get_offsets): Update.
7313 * solib-target.c (solib_target_relocate_section_addresses):
7314 Update.
7315 * symfile-debug.c (debug_sym_segments): Return a
7316 symfile_segment_data_up.
7317
7318 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7319
7320 PR build/25981
7321 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
7322 Hardcode register numbers.
7323
7324 PR build/25981
7325 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
7326 procfs_find_LDT_entry): Remove.
7327 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
7328 procfs_find_LDT_entry): Remove.
7329 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
7330 Remove.
7331
7332 2020-05-17 Pedro Alves <palves@redhat.com>
7333 Andrew Burgess <andrew.burgess@embecosm.com>
7334 Keno Fischer <keno@juliacomputing.com>
7335
7336 PR gdb/25741
7337 * breakpoint.c (build_target_condition_list): Update comments.
7338 (build_target_command_list): Update comments and skip matching
7339 locations.
7340 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
7341 a separate function. Simplify "set breakpoint auto-hw off"
7342 handling.
7343 (insert_breakpoints): Update comment.
7344 (tracepoint_locations_match): New parameter. For breakpoints,
7345 compare location types too, if the caller wants to.
7346 (handle_automatic_hardware_breakpoints): New functions.
7347 (bp_location_is_less_than): Also sort by location type and
7348 hardware breakpoint length.
7349 (update_global_location_list): Handle "set breakpoint auto-hw on"
7350 here.
7351 (update_breakpoint_locations): Ask breakpoint_locations_match to
7352 ignore location types.
7353
7354 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
7355
7356 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
7357 type::name instead.
7358
7359 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
7360
7361 * gdbtypes.h (struct type) <name, set_name>: New methods.
7362 (TYPE_CODE): Use type::name. Change all call sites used to set
7363 the name to use type::set_name instead.
7364
7365 2020-05-16 Tom Tromey <tom@tromey.com>
7366
7367 * top.c (quit_force): Update.
7368 * infrun.c (handle_no_resumed): Update.
7369 * top.h (all_uis): New function.
7370 (ALL_UIS): Remove.
7371
7372 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
7373
7374 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
7375
7376 2020-05-16 Pedro Alves <palves@redhat.com>
7377
7378 * ia64-linux-nat.c
7379 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
7380 Declare method.
7381 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
7382
7383 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
7384
7385 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
7386 (sparc64_adi_info): Likewise.
7387
7388 2020-05-15 Tom Tromey <tom@tromey.com>
7389
7390 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
7391 block_objfile.
7392 (lookup_objfile_from_block): Remove.
7393 (lookup_symbol_in_block, lookup_symbol_in_static_block)
7394 (lookup_global_symbol): Use block_objfile.
7395 * symtab.h (lookup_objfile_from_block): Don't declare.
7396 * printcmd.c (clear_dangling_display_expressions): Use
7397 block_objfile.
7398 * parse.c (operator_check_standard): Use block_objfile.
7399
7400 2020-05-15 Tom Tromey <tom@tromey.com>
7401
7402 * language.c (language_alloc_type_symbol): Set
7403 SYMBOL_SECTION.
7404 * symtab.c (initialize_objfile_symbol): Remove.
7405 (allocate_symbol): Remove.
7406 (allocate_template_symbol): Remove.
7407 * dwarf2/read.c (fixup_go_packaging): Use "new".
7408 (new_symbol): Use "new".
7409 (read_variable): Don't call initialize_objfile_symbol. Use
7410 "new".
7411 (read_func_scope): Use "new".
7412 * xcoffread.c (process_xcoff_symbol): Don't call
7413 initialize_objfile_symbol.
7414 (SYMBOL_DUP): Remove.
7415 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
7416 "new".
7417 * symtab.h (allocate_symbol, initialize_objfile_symbol)
7418 (allocate_template_symbol): Don't declare.
7419 (struct symbol): Add copy constructor. Change defaults.
7420 * jit.c (finalize_symtab): Use "new".
7421 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
7422 Use "new".
7423 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
7424 (common_block_end): Use "new".
7425 * mdebugread.c (parse_symbol): Use "new".
7426 (new_symbol): Likewise.
7427
7428 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7429
7430 * NEWS: Mention changes to help and apropos.
7431
7432 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7433
7434 * command.h (enum command_class): Improve comments, document
7435 that class_alias is for user-defined aliases, give the class
7436 name for each class, remove unused class_xdb.
7437 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
7438 * breakpoint.c (_initialize_breakpoint): Replace class_alias
7439 by a precise class.
7440 * infcmd.c (_initialize_infcmd): Likewise.
7441 * reverse.c (_initialize_reverse): Likewise.
7442 * stack.c (_initialize_stack): Likewise.
7443 * symfile.c (_initialize_symfile): Likewise.
7444 * tracepoint.c (_initialize_tracepoint): Likewise.
7445
7446 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7447
7448 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
7449 when their aliased command is traversed.
7450 (help_cmd): Add fput_command_names_styled call to
7451 output command name and aliases when command has an alias.
7452
7453 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7454
7455 * cli/cli-decode.h (help_cmd_list): Remove declaration.
7456 * cli/cli-decode.c (help_cmd_list): Declare as static,
7457 remove prefix argument, use bool for recurse arg, rework to show the aliases of
7458 a command together with the command.
7459 (fput_command_name_styled, fput_command_names_styled): New functions.
7460 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
7461 fput_command_name_styled.
7462 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
7463 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
7464
7465 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7466
7467 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
7468 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
7469 * command.h (cmd_show_list): Likewise.
7470 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
7471 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
7472
7473 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7474
7475 * unittests/command-def-selftests.c (traverse_command_structure):
7476 Verify all commands of a list have the same prefix command and
7477 that only the top cmdlist commands have a null prefix.
7478
7479 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7480
7481 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
7482 as prefix, not one of its aliases.
7483 (set_cmd_prefix): Remove.
7484 (do_add_cmd): Centralize the setting of the prefix of a command, when
7485 command is defined after its full chain of prefix commands.
7486 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
7487 (add_setshow_cmd_full): Likewise.
7488 (update_prefix_field_of_prefixed_commands): New function.
7489 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
7490 update_prefix_field_of_prefixed_commands.
7491 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
7492 addresses of remote_set_cmdlist and remote_show_cmdlist given
7493 as argument, not the address of an argument.
7494 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
7495 * gdb/remote.c (_initialize_remote): Likewise.
7496
7497 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7498
7499 * cli/cli-cmds.c (alias_command): Check for an existing alias
7500 using lookup_cmd_composition, as valid_command_p is too strict
7501 and forbids aliases that are the prefix of an existing alias
7502 or command.
7503 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
7504 command is properly recognised as a valid command.
7505
7506 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7507
7508 * unittests/help-doc-selftests.c: Rename to
7509 unittests/command-def-selftests.c
7510 * unittests/command-def-selftests.c (help_doc_tests): Update some
7511 comments.
7512 (command_structure_tests, traverse_command_structure): New namespace
7513 and function.
7514 (command_structure_invariants_tests): New function.
7515 (_initialize_command_def_selftests) Renamed from
7516 _initialize_help_doc_selftests, register command_structure_invariants
7517 selftest.
7518
7519 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7520
7521 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
7522 an alias of 'show'.
7523
7524 2020-05-15 Joel Brobecker <brobecker@adacore.com>
7525
7526 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
7527 ada_is_fixed_point_type. Update all callers.
7528 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
7529 all callers.
7530 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
7531 Update all callers.
7532 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
7533 print_fixed_point_type. Update all callers.
7534 * ada-valprint.c (ada_value_print_num): Replace call to
7535 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
7536
7537 2020-05-14 Kevin Buettner <kevinb@redhat.com>
7538
7539 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
7540 processors.
7541 (cpu_supports_bts): Add CV_AMD case.
7542
7543 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
7544 Simon Marchi <simon.marchi@efficios.com>
7545
7546 * infrun.c (stop_all_threads): Collect multiple wait events at
7547 each pass.
7548
7549 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
7550
7551 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
7552 type::code instead.
7553
7554 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
7555
7556 * gdbtypes.h (struct type) <code, set_code>: New methods.
7557 (TYPE_CODE): Use type::code. Change all call sites used to set
7558 the code to use type::set_code instead.
7559
7560 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7561 Tom de Vries <tdevries@suse.de>
7562 Pedro Alves <palves@redhat.com>
7563
7564 PR threads/25478
7565 * infrun.c (stop_all_threads): Do NOT ignore
7566 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
7567 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
7568 received.
7569 (handle_no_resumed): Remove code handling a live inferior with no
7570 threads.
7571 * remote.c (has_single_non_exited_thread): New.
7572 (remote_target::update_thread_list): Do not delete a thread if is
7573 the last thread of the process.
7574 * thread.c (thread_select): Call delete_exited_threads instead of
7575 prune_threads.
7576
7577 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7578
7579 * infrun.c (stop_all_threads): Enable/disable thread events of all
7580 targets. Move a debug message denoting the end of the function
7581 into the SCOPED_EXIT block.
7582
7583 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7584
7585 * process-stratum-target.h: Include <set>.
7586 (all_non_exited_process_targets, switch_to_target_no_thread): New
7587 function declarations.
7588 * process-stratum-target.c (all_non_exited_process_targets)
7589 (switch_to_target_no_thread): New function implementations.
7590
7591 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7592
7593 * infrun.c (handle_inferior_event): Extract out a piece of code
7594 into...
7595 (mark_non_executing_threads): ...this new function.
7596
7597 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7598
7599 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
7600 use.
7601
7602 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7603
7604 * regcache.c (regcache_read_pc_protected): New function
7605 implementation that returns 0 if the PC cannot read via
7606 'regcache_read_pc'.
7607 * infrun.c (proceed): Call 'regcache_read_pc_protected'
7608 instead of 'regcache_read_pc'.
7609 (keep_going_pass_signal): Ditto.
7610
7611 2020-05-13 Tom Tromey <tromey@adacore.com>
7612
7613 * ada-lang.c (align_value): Remove.
7614 (ada_template_to_fixed_record_type_1): Use align_up.
7615
7616 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7617
7618 * async-event.c: Update the copyright year.
7619 * async-event.h: Update the copyright year.
7620
7621 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
7622
7623 * objfiles.h (is_addr_in_objfile,
7624 shared_objfile_contains_address_p): Return bool.
7625 * objfile.c (is_addr_in_objfile,
7626 shared_objfile_contains_address_p): Return bool.
7627
7628 2020-05-11 Tom Tromey <tromey@adacore.com>
7629
7630 * cli/cli-cmds.c (info_command): Restore.
7631 (_initialize_cli_cmds): Use add_prefix_command for "info".
7632 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
7633
7634 2020-05-11 Tom Tromey <tromey@adacore.com>
7635
7636 * ada-lang.c (ada_value_primitive_field): Now public.
7637 * ada-lang.h (ada_value_primitive_field): Declare.
7638 * ada-valprint.c (print_field_values): Use
7639 ada_value_primitive_field for wrapper fields.
7640
7641 2020-05-11 Tom de Vries <tdevries@suse.de>
7642
7643 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
7644 MODULE_DOMAIN.
7645
7646 2020-05-11 Tom de Vries <tdevries@suse.de>
7647
7648 PR symtab/25941
7649 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
7650 with length 0, if not gdb-produced.
7651 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
7652
7653 2020-05-09 Tom de Vries <tdevries@suse.de>
7654
7655 PR gdb/25955
7656 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
7657 calculation.
7658
7659 2020-05-09 Tom Tromey <tom@tromey.com>
7660
7661 * top.c (server_command): Now bool.
7662 * top.h (server_command): Now bool.
7663
7664 2020-05-08 Tom Tromey <tromey@adacore.com>
7665
7666 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
7667 already being processed.
7668
7669 2020-05-08 Tom Tromey <tom@tromey.com>
7670
7671 * printcmd.c (struct display) <next>: Remove.
7672 <display>: New constructor.
7673 <exp_string>: Now a std::string.
7674 <enabled_p>: Now a bool.
7675 (display_number): Move definition earlier.
7676 (displays): Rename from display_chain. Now a std::vector.
7677 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
7678 (display_command): Update.
7679 (do_one_display, disable_display)
7680 (enable_disable_display_command, do_enable_disable_display):
7681 Update.
7682 (free_display): Remove.
7683 (clear_displays): Rewrite.
7684 (delete_display): Update.
7685 (map_display_numbers): Use function_view. Remove "data"
7686 parameter. Update.
7687 (do_delete_display): Remove.
7688 (undisplay_command): Update.
7689 (do_one_display, do_displays, disable_display)
7690 (info_display_command): Update.
7691 (do_enable_disable_display): Remove.
7692 (enable_disable_display_command)
7693 (clear_dangling_display_expressions): Update.
7694
7695 2020-05-08 Tom Tromey <tom@tromey.com>
7696
7697 * symtab.c (set_symbol_cache_size)
7698 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
7699 (maintenance_print_symbol_cache_statistics): Update.
7700 * symmisc.c (print_symbol_bcache_statistics)
7701 (print_objfile_statistics, maintenance_print_objfiles)
7702 (maintenance_info_symtabs, maintenance_check_symtabs)
7703 (maintenance_expand_symtabs, maintenance_info_line_tables):
7704 Update.
7705 * symfile-debug.c (set_debug_symfile): Update.
7706 * source.c (forget_cached_source_info): Update.
7707 * python/python.c (gdbpy_progspaces): Update.
7708 * psymtab.c (maintenance_info_psymtabs): Update.
7709 * probe.c (parse_probes): Update.
7710 * linespec.c (iterate_over_all_matching_symtabs)
7711 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
7712 * guile/scm-progspace.c (gdbscm_progspaces): Update.
7713 * exec.c (exec_target::close): Update.
7714 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
7715 * breakpoint.c (print_one_breakpoint_location)
7716 (create_longjmp_master_breakpoint)
7717 (create_std_terminate_master_breakpoint): Update.
7718 * progspace.c (program_spaces): Now a std::vector.
7719 (maybe_new_address_space): Update.
7720 (add_program_space): Remove.
7721 (program_space::program_space): Update.
7722 (remove_program_space): Update.
7723 (number_of_program_spaces): Remove.
7724 (print_program_space, update_address_spaces): Update.
7725 * progspace.h (program_spaces): Change type.
7726 (ALL_PSPACES): Remove.
7727 (number_of_program_spaces): Don't declare.
7728 (struct program_space) <next>: Remove.
7729
7730 2020-05-08 Tom Tromey <tom@tromey.com>
7731
7732 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
7733 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
7734 (enable_break): Update.
7735 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
7736 (frv_fdpic_find_canonical_descriptor): Update.
7737 (frv_fetch_objfile_link_map): Update.
7738 * progspace.c (program_space::free_all_objfiles): Update.
7739 (program_space::solibs): New method.
7740 * progspace.h (struct program_space) <solibs>: New method.
7741 * solist.h (master_so_list): Don't declare.
7742 (ALL_SO_LIBS): Remove.
7743 * solib.h (so_list_head): Remove.
7744 (update_solib_list): Update comment.
7745 * solib.c (master_so_list): Remove.
7746 (solib_used, update_solib_list, solib_add)
7747 (info_sharedlibrary_command, clear_solib)
7748 (reload_shared_libraries_1, remove_user_added_objfile): Update.
7749
7750 2020-05-08 Tom Tromey <tom@tromey.com>
7751
7752 * extension.c (extension_languages): Now a std::array.
7753 (ALL_EXTENSION_LANGUAGES): Remove.
7754 (get_ext_lang_defn, get_ext_lang_of_file)
7755 (eval_ext_lang_from_control_command): Update.
7756 (finish_ext_lang_initialization)
7757 (auto_load_ext_lang_scripts_for_objfile)
7758 (ext_lang_type_printers::ext_lang_type_printers)
7759 (apply_ext_lang_type_printers)
7760 (ext_lang_type_printers::~ext_lang_type_printers)
7761 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
7762 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
7763 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
7764 (get_matching_xmethod_workers, ext_lang_colorize)
7765 (ext_lang_before_prompt): Update.
7766 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
7767
7768 2020-05-08 Tom Tromey <tom@tromey.com>
7769
7770 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
7771 overload.
7772 <swap_string, m_string>: Remove.
7773 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
7774 Update.
7775 * stabsread.c (define_symbol, read_type): Update.
7776 * linespec.c (find_linespec_symbols): Update.
7777 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
7778 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
7779 * dbxread.c (read_dbx_symtab): Update.
7780 * cp-support.h (cp_canonicalize_string_full)
7781 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
7782 Return unique_xmalloc_ptr.
7783 * cp-support.c (inspect_type): Update.
7784 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
7785 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
7786 Likewise.
7787 * c-typeprint.c (print_name_maybe_canonical): Update.
7788 * break-catch-throw.c (check_status_exception_catchpoint):
7789 Update.
7790
7791 2020-05-08 Tom de Vries <tdevries@suse.de>
7792
7793 * infrun.c (follow_fork): Copy current_line and current_symtab to
7794 child thread.
7795
7796 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
7797
7798 * async-event.c (struct async_signal_handler, struct
7799 async_event_handler): Reformat, remove typedef.
7800
7801 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
7802
7803 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
7804 access thistype->main_type->dyn_prop_list directly.
7805
7806 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
7807
7808 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
7809 (remove_dyn_prop): Remove. Update all users to use
7810 type::remove_dyn_prop.
7811 * gdbtypes.c (remove_dyn_prop): Rename to...
7812 (type::remove_dyn_prop): ... this.
7813
7814 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
7815
7816 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
7817 (add_dyn_prop): Remove. Update all users to use
7818 type::add_dyn_prop.
7819 * gdbtypes.c (add_dyn_prop): Rename to...
7820 (type::add_dyn_prop): ... this.
7821
7822 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
7823
7824 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
7825 (get_dyn_prop): Remove. Update all users to use
7826 type::dyn_prop.
7827 * gdbtypes.c (get_dyn_prop): Rename to...
7828 (type::dyn_prop): ... this.
7829
7830 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
7831
7832 * gdbtypes.h (struct main_type) <flag_static>: Remove.
7833
7834 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
7835
7836 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
7837 instruction, skip it if it's there.
7838
7839 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
7840
7841 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
7842
7843 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
7844
7845 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
7846 * gdbtypes.c (recursive_dump_type): Remove use of
7847 TYPE_INCOMPLETE.
7848
7849 2020-05-03 Tom Tromey <tom@tromey.com>
7850
7851 * breakpoint.c (catch_command, tcatch_command): Remove.
7852 (_initialize_breakpoint): Use add_basic_prefix_cmd,
7853 add_show_prefix_cmd.
7854 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
7855 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
7856 Remove.
7857 (add_internal_problem_command): Use add_basic_prefix_cmd,
7858 add_show_prefix_cmd.
7859 * mips-tdep.c (set_mipsfpu_command): Remove.
7860 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
7861 * dwarf2/index-cache.c (set_index_cache_command): Remove.
7862 (_initialize_index_cache): Use add_basic_prefix_cmd.
7863 * memattr.c (dummy_cmd): Remove.
7864 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
7865 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
7866 (_initialize_tui_win): Use add_basic_prefix_cmd,
7867 add_show_prefix_cmd.
7868 * cli/cli-logging.c (set_logging_command): Remove.
7869 (_initialize_cli_logging): Use add_basic_prefix_cmd,
7870 add_show_prefix_cmd.
7871 (show_logging_command): Remove.
7872 * target.c (target_command): Remove.
7873 (add_target): Use add_basic_prefix_cmd.
7874
7875 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
7876
7877 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
7878
7879 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7880
7881 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
7882 info_command.
7883
7884 2020-04-30 Kamil Rytarowski <n54@gmx.com>
7885
7886 * nbsd-nat.c (nbsd_enable_proc_events)
7887 (nbsd_nat_target::post_startup_inferior): Add.
7888 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
7889 (nbsd_nat_target::update_thread_list): Rewrite.
7890 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
7891 "PTRACE_LWP_CREATE".
7892 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
7893
7894 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7895
7896 * stack.c (_initialize_stack): Remove duplicated creation
7897 of "frame" command and "f" alias.
7898
7899 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
7900
7901 PR gdb/18706
7902 * gdbtypes.c (check_typedef): Calculate size of array of
7903 stubbed type.
7904
7905 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
7906
7907 PR gdb/15559
7908 * i386-tdep.c (i386_push_dummy_call): Call
7909 i386_thiscall_push_dummy_call.
7910 (i386_thiscall_push_dummy_call): New function.
7911 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
7912 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
7913 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
7914
7915 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7916
7917 * gdbarch.sh (do_read): Add shellcheck disable directive for
7918 warning SC2162.
7919
7920 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7921
7922 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
7923 "referenced but not assigned" warning.
7924
7925 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7926
7927 * gdbarch.sh: Remove code that sets fallbackdefault.
7928
7929 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7930
7931 * gdbarch.sh: Use shell operators && and || instead of
7932 -a and -o.
7933
7934 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7935
7936 * gdbarch.sh: Use $(...) instead of `...`.
7937
7938 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7939
7940 * gdbarch.sh: Use double quotes around variables.
7941
7942 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7943
7944 * gdbarch.sh: Use %s with printf, instead of variables in the
7945 format string.
7946
7947 2020-04-29 Tom Tromey <tromey@adacore.com>
7948
7949 PR ada/25875:
7950 * dwarf2/read.c (update_enumeration_type_from_children): Compute
7951 type fields here.
7952 (read_enumeration_type): Call
7953 update_enumeration_type_from_children later. Update comments.
7954 (process_enumeration_scope): Don't create type fields.
7955
7956 2020-04-29 Kamil Rytarowski <n54@gmx.com>
7957
7958 * nbsd-tdep.c: Include "xml-syscall.h".
7959 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
7960
7961 2020-04-29 Kamil Rytarowski <n54@gmx.com>
7962
7963 * nbsd-nat.c: Include "sys/wait.h".
7964 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
7965 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
7966 (nbsd_nat_target::remove_exec_catchpoint)
7967 (nbsd_nat_target::set_syscall_catchpoint): Add.
7968 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
7969 (nbsd_nat_target::insert_exec_catchpoint)
7970 (nbsd_nat_target::remove_exec_catchpoint)
7971 (nbsd_nat_target::set_syscall_catchpoint): Add.
7972 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
7973 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
7974 `nbsd_get_syscall_number'.
7975
7976 2020-04-29 Tom Tromey <tom@tromey.com>
7977
7978 * stack.c (print_block_frame_labels): Remove.
7979
7980 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
7981
7982 PR gdb/17320
7983 * ada-valprint.c (val_print_packed_array_elements): Move array
7984 end bracket to new line.
7985 (ada_val_print_string): Remove extra spaces before first array
7986 element.
7987 * c-valprint.c (c_value_print_array): Likewise.
7988 * m2-valprint.c (m2_print_array_contents): Likewise.
7989 (m2_value_print_inner): Likewise.
7990 * p-valprint.c (pascal_value_print_inner): Likewise.
7991 * valprint.c (generic_val_print_array): Likewise.
7992 (value_print_array_elements): Move first array element and array
7993 end bracket to new line.
7994
7995 2020-04-29 Tom de Vries <tdevries@suse.de>
7996
7997 PR symtab/25889
7998 * linespec.c (find_method): Fix ix calculation.
7999
8000 2020-04-28 Kamil Rytarowski <n54@gmx.com>
8001
8002 * syscalls/update-netbsd.sh: New file.
8003 * syscalls/netbsd.xml: Regenerate.
8004 * data-directory/Makefile.in: Register `netbsd.xml' in
8005 `SYSCALLS_FILES'.
8006
8007 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
8008
8009 * syscalls/update-freebsd.sh: Add double quotes.
8010
8011 2020-04-28 Tom Tromey <tom@tromey.com>
8012
8013 * NEWS: Update.
8014 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
8015 (cmdpy_init): Allow class_tui.
8016
8017 2020-04-28 Mark Williams <mark@myosotissp.com>
8018
8019 PR gdb/24480
8020 * dwarf2read.c: Add missing assingments to list_in_scope when
8021 start_symtab was already called.
8022
8023 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
8024
8025 PR gdb/25881
8026 * dwarf2/read.c (offset_map_type): Use
8027 gdb:hash_enum<sect_offset> as hash function.
8028
8029 2020-04-28 Tom de Vries <tdevries@suse.de>
8030
8031 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
8032 with DW_AT_signature.
8033
8034 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
8035
8036 * configure.ac: Remove check for fs_base/gs_base in
8037 user_regs_struct.
8038 * configure: Re-generate.
8039 * config.in: Re-generate.
8040 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
8041 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
8042 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
8043
8044 2020-04-27 Luis Machado <luis.machado@linaro.org>
8045
8046 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
8047 problematic inline frame unwinding situation.
8048 * frame.c (frame_id_computed_p): New function.
8049 * frame.h (frame_id_computed_p): New prototype.
8050
8051 2020-04-26 Tom Tromey <tom@tromey.com>
8052
8053 * command.h (enum command_class) <class_pseudo>: Remove.
8054
8055 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8056
8057 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
8058 and whitespace.
8059
8060 2020-04-25 Kamil Rytarowski <n54@gmx.com>
8061
8062 * inf-ptrace.c (inf_ptrace_target::wait): Remove
8063 `PT_GET_PROCESS_STATE' block.
8064
8065 2020-04-24 Tom Tromey <tom@tromey.com>
8066
8067 * symtab.h (symbol_get_demangled_name): Don't declare.
8068 * symtab.c (symbol_get_demangled_name): Remove.
8069 (general_symbol_info::natural_name)
8070 (general_symbol_info::demangled_name): Update.
8071
8072 2020-04-24 Tom Tromey <tom@tromey.com>
8073
8074 PR rust/25025:
8075 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
8076
8077 2020-04-24 Tom Tromey <tom@tromey.com>
8078
8079 PR symtab/12707:
8080 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
8081 exists.
8082 (new_symbol): Likewise.
8083 * compile/compile-object-load.c (get_out_value_type): Use
8084 symbol_matches_search_name.
8085
8086 2020-04-24 Tom Tromey <tom@tromey.com>
8087
8088 * dwarf2/read.c (add_partial_symbol): Do not call
8089 compute_and_set_names.
8090
8091 2020-04-24 Tom Tromey <tom@tromey.com>
8092
8093 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
8094 overload.
8095
8096 2020-04-24 Tom Tromey <tom@tromey.com>
8097
8098 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
8099 (add_psymbol_to_list): New overload. Make old overload call new
8100 one.
8101 * psympriv.h (add_psymbol_to_list): New overload.
8102
8103 2020-04-24 Tom Tromey <tom@tromey.com>
8104
8105 * dwarf2/read.c (partial_die_info::read) <case
8106 DW_AT_linkage_name>: Use value_as_string.
8107 (dwarf2_string_attr): Use value_as_string.
8108 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
8109 method.
8110 * dwarf2/attribute.c (attribute::value_as_string): New method.
8111
8112 2020-04-24 Tom Tromey <tom@tromey.com>
8113
8114 * symtab.c (general_symbol_info::natural_name)
8115 (general_symbol_info::demangled_name): Check for language_rust.
8116
8117 2020-04-24 Tom Tromey <tom@tromey.com>
8118
8119 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
8120 (dwarf2_physname): ... from here.
8121 (partial_die_info::read): Add Rust "{" hack.
8122
8123 2020-04-24 Tom Tromey <tom@tromey.com>
8124
8125 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
8126 method.
8127 (symbol_set_demangled_name): Don't declare.
8128 * symtab.c (general_symbol_info::set_demangled_name): Rename from
8129 symbol_set_demangled_name.
8130 (general_symbol_info::set_language)
8131 (general_symbol_info::compute_and_set_names): Update.
8132 * minsyms.c (minimal_symbol_reader::install): Update.
8133 * dwarf2/read.c (new_symbol): Update.
8134
8135 2020-04-24 Tom Tromey <tromey@adacore.com>
8136
8137 PR python/23662:
8138 * python/py-type.c (convert_field): Handle
8139 FIELD_LOC_KIND_DWARF_BLOCK.
8140 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
8141 (typy_get_dynamic): Nw function.
8142 (type_object_getset): Add "dynamic".
8143 * NEWS: Add entry.
8144
8145 2020-04-24 Tom Tromey <tromey@adacore.com>
8146
8147 * ada-typeprint.c (print_choices, print_variant_part)
8148 (print_record_field_types_dynamic): New functions.
8149 (print_record_field_types): Use print_record_field_types_dynamic.
8150
8151 2020-04-24 Tom Tromey <tromey@adacore.com>
8152
8153 * dwarf2/read.c (handle_data_member_location): New overload.
8154 (dwarf2_add_field): Use it.
8155 (decode_locdesc): Add "computed" parameter. Update comment.
8156 * gdbtypes.c (is_dynamic_type_internal): Also look for
8157 FIELD_LOC_KIND_DWARF_BLOCK.
8158 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
8159 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
8160 virtual base classes.
8161 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
8162 FIELD_LOC_KIND_DWARF_BLOCK.
8163
8164 2020-04-24 Tom Tromey <tromey@adacore.com>
8165
8166 * dwarf2/read.c (read_structure_type): Handle dynamic length.
8167 * gdbtypes.c (is_dynamic_type_internal): Check
8168 TYPE_HAS_DYNAMIC_LENGTH.
8169 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
8170 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
8171 New macros.
8172 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
8173 constant.
8174
8175 2020-04-24 Tom Tromey <tromey@adacore.com>
8176
8177 * dwarf2/read.c (struct variant_field): Rewrite.
8178 (struct variant_part_builder): New.
8179 (struct nextfield): Remove "variant" field. Add "offset".
8180 (struct field_info): Add "current_variant_part" and
8181 "variant_parts".
8182 (alloc_discriminant_info): Remove.
8183 (alloc_rust_variant): New function.
8184 (quirk_rust_enum): Update.
8185 (dwarf2_add_field): Set "offset" member. Don't handle
8186 DW_TAG_variant_part.
8187 (offset_map_type): New typedef.
8188 (convert_variant_range, create_one_variant)
8189 (create_one_variant_part, create_variant_parts)
8190 (add_variant_property): New functions.
8191 (dwarf2_attach_fields_to_type): Call add_variant_property.
8192 (read_structure_type): Don't handle DW_TAG_variant_part.
8193 (handle_variant_part, handle_variant): New functions.
8194 (handle_struct_member_die): Use them.
8195 (process_structure_scope): Don't handle variant parts.
8196 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
8197 (struct discriminant_info): Remove.
8198 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
8199 (struct main_type) <flag_discriminated_union>: Remove.
8200 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
8201 (rust_enum_variant): Return int. Remove "contents". Rewrite.
8202 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
8203 Update.
8204 * valops.c (value_union_variant): Remove.
8205 * value.h (value_union_variant): Don't declare.
8206
8207 2020-04-24 Tom Tromey <tromey@adacore.com>
8208
8209 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
8210 (ada_value_primitive_packed_val): Update.
8211 * ada-valprint.c (ada_value_print_1): Update.
8212 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
8213 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
8214 just an address. Use evaluate_for_locexpr_baton.
8215 (dwarf2_evaluate_property): Update.
8216 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
8217 array_view.
8218 * findvar.c (default_read_var_value): Update.
8219 * gdbtypes.c (compute_variant_fields_inner)
8220 (resolve_dynamic_type_internal): Update.
8221 (resolve_dynamic_type): Change type of valaddr parameter.
8222 * gdbtypes.h (resolve_dynamic_type): Update.
8223 * valarith.c (value_subscripted_rvalue): Update.
8224 * value.c (value_from_contents_and_address): Update.
8225
8226 2020-04-24 Tom Tromey <tromey@adacore.com>
8227
8228 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
8229 "push_initial_value" parameter.
8230 (dwarf2_evaluate_property): Likewise.
8231 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
8232
8233 2020-04-24 Tom Tromey <tromey@adacore.com>
8234
8235 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
8236 (variant::matches, compute_variant_fields_recurse)
8237 (compute_variant_fields_inner, compute_variant_fields): New
8238 functions.
8239 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
8240 Use resolved_type after type is made.
8241 (operator==): Add new cases.
8242 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
8243 (struct discriminant_range, struct variant, struct variant_part):
8244 New.
8245 (union dynamic_prop_data) <variant_parts, original_type>: New
8246 members.
8247 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
8248 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
8249 constants.
8250 * value.c (unpack_bits_as_long): Now public.
8251 * value.h (unpack_bits_as_long): Declare.
8252
8253 2020-04-24 Tom Tromey <tromey@adacore.com>
8254
8255 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
8256 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
8257
8258 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
8259
8260 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
8261
8262 2020-04-24 Kamil Rytarowski <n54@gmx.com>
8263
8264 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
8265 (remove_fork_catchpoint, post_startup_inferior)
8266 (post_attach): Move...
8267 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
8268 (remove_fork_catchpoint, post_startup_inferior)
8269 (post_attach): ...here.
8270 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
8271 (remove_fork_catchpoint, post_startup_inferior)
8272 (post_attach): Move...
8273 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
8274 (remove_fork_catchpoint, post_startup_inferior)
8275 (post_attach): ...here.
8276
8277 2020-04-24 Tom Tromey <tromey@adacore.com>
8278
8279 * nat/windows-nat.h (struct windows_thread_info)
8280 <pc_adjusted>: New member.
8281 * windows-nat.c (windows_fetch_one_register): Check
8282 pc_adjusted.
8283 (windows_nat_target::get_windows_debug_event)
8284 (windows_nat_target::wait): Set pc_adjusted.
8285
8286 2020-04-24 Tom de Vries <tdevries@suse.de>
8287
8288 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
8289 Run gdb-add-index inside temp dir.
8290
8291 2020-04-23 Tom Tromey <tromey@adacore.com>
8292
8293 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
8294 in loop.
8295
8296 2020-04-23 Luis Machado <luis.machado@linaro.org>
8297
8298 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
8299 get_frame_register instead of gdbarch_unwind_pc.
8300
8301 2020-04-23 Tom de Vries <tdevries@suse.de>
8302
8303 * symtab.c (lookup_global_symbol): Prefer def over decl.
8304
8305 2020-04-23 Tom de Vries <tdevries@suse.de>
8306
8307 PR symtab/25807
8308 * block.c (best_symbol, better_symbol): Promote to external.
8309 * block.h (best_symbol, better_symbol): Declare.
8310 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
8311 decl.
8312
8313 2020-04-23 Tom Tromey <tromey@adacore.com>
8314
8315 PR ada/25837:
8316 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
8317 "const char *", not a "const std::string &".
8318 <name_and_matcher::operator==>: Update.
8319 * unittests/lookup_name_info-selftests.c: Change type of
8320 "result".
8321
8322 2020-04-23 Tom Tromey <tom@tromey.com>
8323
8324 * inferior.h (iterate_over_inferiors): Don't declare.
8325 * inferior.c (iterate_over_inferiors): Remove.
8326 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
8327 Remove.
8328 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
8329 use iterate_over_inferiors.
8330 (darwin_resume_inferior_it)
8331 (struct resume_inferior_threads_param)
8332 (darwin_resume_inferior_threads_it): Remove.
8333 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
8334
8335 2020-04-23 Tom de Vries <tdevries@suse.de>
8336
8337 * blockframe.c (find_pc_partial_function): Use
8338 find_pc_sect_compunit_symtab rather than
8339 objfile->sf->qf->find_pc_sect_compunit_symtab.
8340
8341 2020-04-22 Tom de Vries <tdevries@suse.de>
8342
8343 PR symtab/25764
8344 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
8345 in psymtabs.
8346
8347 2020-04-22 Tom de Vries <tdevries@suse.de>
8348
8349 PR symtab/25801
8350 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
8351 symtabs.
8352
8353 2020-04-22 Tom de Vries <tdevries@suse.de>
8354
8355 PR symtab/25700
8356 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
8357 CU if already created.
8358
8359 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8360
8361 * infrun.c (displaced_step_fixup): Switch to the event_thread
8362 before calling displaced_step_restore, not after.
8363
8364 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
8365
8366 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
8367 its inferior is not recorded by us.
8368 (record_btrace_target_open): Replace call to
8369 all_non_exited_threads () with call to current_inferior
8370 ()->non_exited_threads ().
8371 (record_btrace_target::stop_recording): Likewise.
8372 (record_btrace_target::close): Likewise.
8373 (record_btrace_target::wait): Likewise.
8374 (record_btrace_target::record_stop_replaying): Likewise.
8375
8376 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
8377
8378 * btrace.c (btrace_enable): Throw an error on double enables and
8379 when enabling recording fails.
8380 (btrace_disable): Throw an error if the thread is not recorded.
8381
8382 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
8383
8384 * record-btrace.c (record_btrace_target::fetch_registers): Forward
8385 request if we do not have a thread_info.
8386
8387 2020-04-21 Tom de Vries <tdevries@suse.de>
8388
8389 PR gdb/25471
8390 * thread.c
8391 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
8392 exception in get_frame_id.
8393
8394 2020-04-20 Tom Tromey <tromey@adacore.com>
8395
8396 * python/python.c (struct gdbpy_event): Mark move constructor as
8397 noexcept.
8398 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
8399 constructor as noexcept.
8400 * completer.h (struct completion_result): Mark move constructor as
8401 noexcept.
8402 * completer.c (completion_result::completion_result): Use
8403 initialization style. Don't call reset_match_list.
8404
8405 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
8406
8407 * MAINTAINERS (Write After Approval): Add myself.
8408
8409 2020-04-18 Tom Tromey <tom@tromey.com>
8410
8411 * windows-tdep.c (init_w32_command_list)
8412 (w32_prefix_command_valid): Restore.
8413 (_initialize_windows_tdep): Call init_w32_command_list.
8414
8415 2020-04-18 Tom Tromey <tom@tromey.com>
8416
8417 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
8418 * value.c (value_fn_field): Update.
8419 * valops.c (find_function_in_inferior)
8420 (value_allocate_space_in_inferior): Update.
8421 * tui/tui-winsource.c (tui_update_source_windows_with_line):
8422 Update.
8423 * tui/tui-source.c (tui_source_window::set_contents): Update.
8424 * symtab.c (lookup_global_or_static_symbol)
8425 (find_function_start_sal_1, skip_prologue_sal)
8426 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
8427 * symmisc.c (dump_msymbols, dump_symtab_1)
8428 (maintenance_print_one_line_table): Update.
8429 * symfile.c (init_entry_point_info, section_is_mapped)
8430 (list_overlays_command, simple_read_overlay_table)
8431 (simple_overlay_update_1): Update.
8432 * stap-probe.c (handle_stap_probe): Update.
8433 * stabsread.c (dbx_init_float_type, define_symbol)
8434 (read_one_struct_field, read_enum_type, read_range_type): Update.
8435 * source.c (info_line_command): Update.
8436 * python/python.c (gdbpy_source_objfile_script)
8437 (gdbpy_execute_objfile_script): Update.
8438 * python/py-type.c (save_objfile_types): Update.
8439 * python/py-objfile.c (py_free_objfile): Update.
8440 * python/py-inferior.c (python_new_objfile): Update.
8441 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
8442 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
8443 (maintenance_check_psymtabs): Update.
8444 * printcmd.c (info_address_command): Update.
8445 * objfiles.h (struct objfile) <arch>: New method, from
8446 get_objfile_arch.
8447 (get_objfile_arch): Don't declare.
8448 * objfiles.c (get_objfile_arch): Remove.
8449 (filter_overlapping_sections): Update.
8450 * minsyms.c (msymbol_is_function): Update.
8451 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
8452 (output_nondebug_symbol): Update.
8453 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
8454 (mdebug_expand_psymtab): Update.
8455 * machoread.c (macho_add_oso_symfile): Update.
8456 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
8457 Update.
8458 * linux-fork.c (checkpoint_command): Update.
8459 * linespec.c (convert_linespec_to_sals): Update.
8460 * jit.c (finalize_symtab): Update.
8461 * infrun.c (insert_exception_resume_from_probe): Update.
8462 * ia64-tdep.c (ia64_find_unwind_table): Update.
8463 * hppa-tdep.c (internalize_unwinds): Update.
8464 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
8465 Update.
8466 * gcore.c (call_target_sbrk): Update.
8467 * elfread.c (record_minimal_symbol, elf_symtab_read)
8468 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
8469 (elf_gnu_ifunc_resolve_by_got): Update.
8470 * dwarf2/read.c (create_addrmap_from_index)
8471 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
8472 (read_debug_names_from_section)
8473 (process_psymtab_comp_unit_reader, add_partial_symbol)
8474 (add_partial_subprogram, process_full_comp_unit)
8475 (read_file_scope, read_func_scope, read_lexical_block_scope)
8476 (read_call_site_scope, dwarf2_ranges_read)
8477 (dwarf2_record_block_ranges, dwarf2_add_field)
8478 (mark_common_block_symbol_computed, read_tag_pointer_type)
8479 (read_tag_string_type, dwarf2_init_float_type)
8480 (dwarf2_init_complex_target_type, read_base_type)
8481 (partial_die_info::read, partial_die_info::read)
8482 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
8483 (dwarf2_fetch_die_loc_sect_off): Update.
8484 * dwarf2/loc.c (dwarf2_find_location_expression)
8485 (class dwarf_evaluate_loc_desc, rw_pieced_value)
8486 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
8487 (dwarf2_loc_desc_get_symbol_read_needs)
8488 (locexpr_describe_location_piece, locexpr_describe_location_1)
8489 (loclist_describe_location): Update.
8490 * dwarf2/index-write.c (write_debug_names): Update.
8491 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
8492 * dtrace-probe.c (dtrace_process_dof): Update.
8493 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
8494 (process_one_symbol): Update.
8495 * ctfread.c (ctf_init_float_type, read_base_type): Update.
8496 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
8497 (coff_read_enum_type): Update.
8498 * cli/cli-cmds.c (edit_command, list_command): Update.
8499 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
8500 * breakpoint.c (create_overlay_event_breakpoint)
8501 (create_longjmp_master_breakpoint)
8502 (create_std_terminate_master_breakpoint)
8503 (create_exception_master_breakpoint, get_sal_arch): Update.
8504 * block.c (block_gdbarch): Update.
8505 * annotate.c (annotate_source_line): Update.
8506
8507 2020-04-17 Tom Tromey <tromey@adacore.com>
8508
8509 * auto-load.c (show_auto_load_cmd): Remove.
8510 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
8511 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
8512 (maintenance_print_arc_command): Remove.
8513 * tui/tui-win.c (tui_command): Remove.
8514 (tui_get_cmd_list): Use add_basic_prefix_cmd.
8515 * tui/tui-layout.c (tui_layout_command): Remove.
8516 (_initialize_tui_layout): Use add_basic_prefix_cmd.
8517 * python/python.c (user_set_python, user_show_python): Remove.
8518 (_initialize_python): Use add_basic_prefix_cmd,
8519 add_show_prefix_cmd.
8520 * guile/guile.c (set_guile_command, show_guile_command): Remove.
8521 (install_gdb_commands): Use add_basic_prefix_cmd,
8522 add_show_prefix_cmd.
8523 (info_guile_command): Remove.
8524 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
8525 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
8526 add_show_prefix_cmd.
8527 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
8528 Remove do_set and do_show parameters.
8529 * cli/cli-style.c (set_style, show_style): Remove.
8530 (_initialize_cli_style): Use add_basic_prefix_cmd,
8531 add_show_prefix_cmd.
8532 (cli_style_option::add_setshow_commands): Remove do_set and
8533 do_show parameters.
8534 (cli_style_option::add_setshow_commands): Use
8535 add_basic_prefix_cmd, add_show_prefix_cmd.
8536 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
8537 (set_style_name): Remove.
8538 * cli/cli-dump.c (dump_command, append_command): Remove.
8539 (srec_dump_command, ihex_dump_command, verilog_dump_command)
8540 (tekhex_dump_command, binary_dump_command)
8541 (binary_append_command): Remove.
8542 (_initialize_cli_dump): Use add_basic_prefix_cmd.
8543 * windows-tdep.c (w32_prefix_command_valid): Remove global.
8544 (init_w32_command_list): Remove; move into ...
8545 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
8546 * valprint.c (set_print, show_print, set_print_raw)
8547 (show_print_raw): Remove.
8548 (_initialize_valprint): Use add_basic_prefix_cmd,
8549 add_show_prefix_cmd.
8550 * typeprint.c (set_print_type, show_print_type): Remove.
8551 (_initialize_typeprint): Use add_basic_prefix_cmd,
8552 add_show_prefix_cmd.
8553 * record.c (set_record_command, show_record_command): Remove.
8554 (_initialize_record): Use add_basic_prefix_cmd,
8555 add_show_prefix_cmd.
8556 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
8557 add_show_prefix_cmd.
8558 (info_command, show_command, set_debug, show_debug): Remove.
8559 * top.h (set_history, show_history): Don't declare.
8560 * top.c (set_history, show_history): Remove.
8561 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
8562 (unset_tdesc_cmd): Remove.
8563 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
8564 add_show_prefix_cmd.
8565 * symtab.c (info_module_command): Remove.
8566 (_initialize_symtab): Use add_basic_prefix_cmd.
8567 * symfile.c (overlay_command): Remove.
8568 (_initialize_symfile): Use add_basic_prefix_cmd.
8569 * sparc64-tdep.c (info_adi_command): Remove.
8570 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
8571 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
8572 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
8573 add_show_prefix_cmd.
8574 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
8575 (_initialize_serial): Use add_basic_prefix_cmd,
8576 add_show_prefix_cmd.
8577 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
8578 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
8579 add_show_prefix_cmd.
8580 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
8581 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
8582 add_show_prefix_cmd.
8583 * riscv-tdep.c (show_riscv_command, set_riscv_command)
8584 (show_debug_riscv_command, set_debug_riscv_command): Remove.
8585 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
8586 add_show_prefix_cmd.
8587 * remote.c (remote_command, set_remote_cmd): Remove.
8588 (_initialize_remote): Use add_basic_prefix_cmd.
8589 * record-full.c (set_record_full_command)
8590 (show_record_full_command): Remove.
8591 (_initialize_record_full): Use add_basic_prefix_cmd,
8592 add_show_prefix_cmd.
8593 * record-btrace.c (cmd_set_record_btrace)
8594 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
8595 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
8596 (cmd_show_record_btrace_pt): Remove.
8597 (_initialize_record_btrace): Use add_basic_prefix_cmd,
8598 add_show_prefix_cmd.
8599 * ravenscar-thread.c (set_ravenscar_command)
8600 (show_ravenscar_command): Remove.
8601 (_initialize_ravenscar): Use add_basic_prefix_cmd,
8602 add_show_prefix_cmd.
8603 * mips-tdep.c (show_mips_command, set_mips_command)
8604 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
8605 add_show_prefix_cmd.
8606 * maint.c (maintenance_command, maintenance_info_command)
8607 (maintenance_check_command, maintenance_print_command)
8608 (maintenance_set_cmd, maintenance_show_cmd): Remove.
8609 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
8610 add_show_prefix_cmd.
8611 (show_per_command_cmd): Remove.
8612 * maint-test-settings.c (maintenance_set_test_settings_cmd):
8613 Remove.
8614 (maintenance_show_test_settings_cmd): Remove.
8615 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
8616 add_show_prefix_cmd.
8617 * maint-test-options.c (maintenance_test_options_command):
8618 Remove.
8619 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
8620 * macrocmd.c (macro_command): Remove
8621 (_initialize_macrocmd): Use add_basic_prefix_cmd.
8622 * language.c (set_check, show_check): Remove.
8623 (_initialize_language): Use add_basic_prefix_cmd,
8624 add_show_prefix_cmd.
8625 * infcmd.c (unset_command): Remove.
8626 (_initialize_infcmd): Use add_basic_prefix_cmd.
8627 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
8628 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
8629 add_show_prefix_cmd.
8630 * go32-nat.c (go32_info_dos_command): Remove.
8631 (_initialize_go32_nat): Use add_basic_prefix_cmd.
8632 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
8633 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
8634 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
8635 (_initialize_frame): Use add_basic_prefix_cmd,
8636 add_show_prefix_cmd.
8637 * dcache.c (set_dcache_command, show_dcache_command): Remove.
8638 (_initialize_dcache): Use add_basic_prefix_cmd,
8639 add_show_prefix_cmd.
8640 * cp-support.c (maint_cplus_command): Remove.
8641 (_initialize_cp_support): Use add_basic_prefix_cmd.
8642 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
8643 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
8644 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
8645 add_basic_prefix_cmd, add_show_prefix_cmd.
8646 * breakpoint.c (save_command): Remove.
8647 (_initialize_breakpoint): Use add_basic_prefix_cmd.
8648 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
8649 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
8650 add_show_prefix_cmd.
8651 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
8652 (set_ada_command, show_ada_command): Remove.
8653 (_initialize_ada_language): Use add_basic_prefix_cmd,
8654 add_show_prefix_cmd.
8655 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
8656
8657 2020-04-16 Kamil Rytarowski <n54@gmx.com>
8658
8659 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
8660 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
8661
8662 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
8663
8664 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
8665 warning messages.
8666
8667 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
8668
8669 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
8670 import table is not at beginning of .idata section.
8671
8672 2020-04-16 Pedro Alves <palves@redhat.com>
8673
8674 * inferior.c (delete_inferior): Use delete operator directly
8675 instead of delete_program_space.
8676 * progspace.c (add_program_space): New, factored out from
8677 program_space::program_space.
8678 (remove_program_space): New, factored out from
8679 delete_program_space.
8680 (program_space::program_space): Remove intro comment. Rewrite.
8681 (program_space::~program_space): Remove intro comment. Call
8682 remove_program_space.
8683 (delete_program_space): Delete.
8684 * progspace.h (program_space::program_space): Make explicit. Move
8685 intro comment here, adjusted.
8686 (program_space::~program_space): Move intro comment here,
8687 adjusted.
8688 (delete_program_space): Remove.
8689
8690 2020-04-16 Tom Tromey <tromey@adacore.com>
8691
8692 * windows-nat.c (windows_nat::handle_access_violation): New
8693 function.
8694 * nat/windows-nat.h (handle_access_violation): Declare.
8695 * nat/windows-nat.c (handle_exception): Move Cygwin code to
8696 windows-nat.c. Call handle_access_violation.
8697
8698 2020-04-16 Tom de Vries <tdevries@suse.de>
8699
8700 PR symtab/25791
8701 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
8702 CUs without psymtab.
8703
8704 2020-04-16 Kevin Buettner <kevinb@redhat.com>
8705
8706 * python/python.c (do_start_initialization): Don't call
8707 PyEval_InitThreads for Python 3.9 and beyond.
8708
8709 2020-04-15 Kamil Rytarowski <n54@gmx.com>
8710
8711 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
8712 thread functions.
8713 (obsd_nat_target::wait): Likewise.
8714
8715 2020-04-15 Tom Tromey <tromey@adacore.com>
8716
8717 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
8718 (DEBUG_EXCEPT): Use debug_printf.
8719
8720 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
8721
8722 * completer.c (class completion_tracker::completion_hash_entry)
8723 <hash_name>: New member function.
8724 (completion_tracker::discard_completions): New callback to hash a
8725 completion_hash_entry, pass this to htab_create_alloc.
8726
8727 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
8728
8729 * windows-nat.c (windows_make_so): Warn rather than stopping with
8730 an error if realpath() fails.
8731
8732 2020-04-14 Kamil Rytarowski <n54@gmx.com>
8733
8734 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
8735 (nbsd_nat_target::info_proc): Add do_status.
8736
8737 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
8738 Tom de Vries <tdevries@suse.de>
8739
8740 PR symtab/25718
8741 * psympriv.h (struct partial_symtab::read_symtab)
8742 (struct partial_symtab::expand_psymtab)
8743 (struct partial_symtab::read_dependencies): Update comments.
8744 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
8745 read_symtab for includer.
8746 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
8747 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
8748 (struct dwarf2_include_psymtab::m_readin): Remove.
8749 (struct dwarf2_include_psymtab::includer): New member function.
8750 (dwarf2_psymtab::expand_psymtab): Assert !readin.
8751
8752 2020-04-14 Tom de Vries <tdevries@suse.de>
8753
8754 PR symtab/25720
8755 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
8756 with NULL symbol_matcher and lookup_name.
8757 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
8758 and lookup_name.
8759 * dwarf2/read.c (dw2_expand_symtabs_matching)
8760 (dw2_debug_names_expand_symtabs_matching): Same.
8761 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
8762 Make lookup_name a pointer. Update comment.
8763 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
8764 lookup_name being a pointer.
8765 * symfile.c (expand_symtabs_matching): Same.
8766 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
8767 * linespec.c (iterate_over_all_matching_symtabs): Same.
8768
8769 2020-04-13 Tom Tromey <tom@tromey.com>
8770
8771 * run-on-main-thread.c: Update include.
8772 * unittests/main-thread-selftests.c: Update include.
8773 * tui/tui-win.c: Update include.
8774 * tui/tui-io.c: Update include.
8775 * tui/tui-interp.c: Update include.
8776 * tui/tui-hooks.c: Update include.
8777 * top.h: Update include.
8778 * top.c: Update include.
8779 * ser-base.c: Update include.
8780 * remote.c: Update include.
8781 * remote-notif.c: Update include.
8782 * remote-fileio.c: Update include.
8783 * record-full.c: Update include.
8784 * record-btrace.c: Update include.
8785 * python/python.c: Update include.
8786 * posix-hdep.c: Update include.
8787 * mingw-hdep.c: Update include.
8788 * mi/mi-main.c: Update include.
8789 * mi/mi-interp.c: Update include.
8790 * main.c: Update include.
8791 * linux-nat.c: Update include.
8792 * interps.c: Update include.
8793 * infrun.c: Update include.
8794 * inf-loop.c: Update include.
8795 * event-top.c: Update include.
8796 * event-loop.c: Move to ../gdbsupport/.
8797 * event-loop.h: Move to ../gdbsupport/.
8798 * async-event.h: Update include.
8799 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
8800
8801 2020-04-13 Tom Tromey <tom@tromey.com>
8802
8803 * tui/tui-win.c: Include async-event.h.
8804 * remote.c: Include async-event.h.
8805 * remote-notif.c: Include async-event.h.
8806 * record-full.c: Include async-event.h.
8807 * record-btrace.c: Include async-event.h.
8808 * infrun.c: Include async-event.h.
8809 * event-top.c: Include async-event.h.
8810 * event-loop.h: Move some declarations to async-event.h.
8811 * event-loop.c: Don't include ser-event.h or top.h. Move some
8812 code to async-event.c.
8813 * async-event.h: New file.
8814 * async-event.c: New file.
8815 * Makefile.in (COMMON_SFILES): Add async-event.c.
8816 (HFILES_NO_SRCDIR): Add async-event.h.
8817
8818 2020-04-13 Tom Tromey <tom@tromey.com>
8819
8820 * utils.c (flush_streams): New function.
8821 * event-loop.c (gdb_wait_for_event): Call flush_streams.
8822
8823 2020-04-13 Tom Tromey <tom@tromey.com>
8824
8825 * event-loop.c (handle_file_event): Use warning, not
8826 printf_unfiltered.
8827
8828 2020-04-13 Tom Tromey <tom@tromey.com>
8829
8830 * event-loop.c: Include <chrono>.
8831
8832 2020-04-13 Tom Tromey <tom@tromey.com>
8833
8834 * gdb_select.h: Move to ../gdbsupport/.
8835 * event-loop.c: Update include path.
8836 * top.c: Update include path.
8837 * ser-base.c: Update include path.
8838 * ui-file.c: Update include path.
8839 * ser-tcp.c: Update include path.
8840 * guile/scm-ports.c: Update include path.
8841 * posix-hdep.c: Update include path.
8842 * ser-unix.c: Update include path.
8843 * gdb_usleep.c: Update include path.
8844 * mingw-hdep.c: Update include path.
8845 * inflow.c: Update include path.
8846 * infrun.c: Update include path.
8847 * event-top.c: Update include path.
8848
8849 2020-04-13 Tom Tromey <tom@tromey.com>
8850
8851 * configure: Rebuild.
8852 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
8853
8854 2020-04-13 Tom Tromey <tom@tromey.com>
8855
8856 * event-loop.h (start_event_loop): Don't declare.
8857 * event-loop.c (start_event_loop): Move...
8858 * main.c (start_event_loop): ...here. Now static.
8859
8860 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
8861
8862 * MAINTAINERS: Update my email address.
8863
8864 2020-04-12 Kamil Rytarowski <n54@gmx.com>
8865
8866 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
8867 IP_ALL.
8868
8869 2020-04-12 Kamil Rytarowski <n54@gmx.com>
8870
8871 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
8872 (nbsd_nat_target::info_proc): Add do_cmdline.
8873
8874 2020-04-12 Kamil Rytarowski <n54@gmx.com>
8875
8876 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
8877 (nbsd_nat_target::info_proc): Add do_cwd.
8878
8879 2020-04-12 Kamil Rytarowski <n54@gmx.com>
8880
8881 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
8882
8883 2020-04-11 Kamil Rytarowski <n54@gmx.com>
8884
8885 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
8886 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
8887 (nbsd_nat_target::info_proc): New functions.
8888 * nbsd-nat.c (kinfo_get_vmmap): New function.
8889 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
8890 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
8891 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
8892 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
8893 functions.
8894 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
8895 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
8896 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
8897 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
8898 (KINFO_VME_FLAG_GROWS_DOWN): New.
8899
8900 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
8901
8902 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
8903 bit shift.
8904
8905 2020-04-10 Tom Tromey <tromey@adacore.com>
8906
8907 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
8908
8909 2020-04-10 Tom Tromey <tromey@adacore.com>
8910
8911 * symtab.c (get_symbol_address, get_msymbol_address): Skip
8912 separate debug files.
8913
8914 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
8915
8916 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
8917 Move to...
8918 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
8919 ... here.
8920 * windows-nat.c (windows_nat_target::get_windows_debug_event):
8921 Check for STATUS_WX86_BREAKPOINT.
8922 (windows_nat_target::wait): Same.
8923
8924 2020-04-10 Tom de Vries <tdevries@suse.de>
8925
8926 PR cli/25808
8927 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
8928
8929 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
8930
8931 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
8932 (Write After Approval): Remove Tom de Vries.
8933
8934 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
8935
8936 revert partially:
8937 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8938
8939 * buildsym.c (record_line): Fix undefined behavior and preserve
8940 lines at eof.
8941
8942 2020-04-09 Kamil Rytarowski <n54@gmx.com>
8943
8944 * auxv.h (svr4_auxv_parse): New.
8945 * auxv.c (default_auxv_parse): Split into default_auxv_parse
8946 and generic_auxv_parse.
8947 (svr4_auxv_parse): Add.
8948 * obsd-tdep.c: Include "auxv.h".
8949 (obsd_auxv_parse): Remove.
8950 (obsd_init_abi): Remove comment.
8951 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
8952 from `obsd_auxv_parse' to `svr4_auxv_parse'.
8953 * nbsd-tdep.c: Include "auxv.h".
8954 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
8955
8956 2020-04-08 Tom Tromey <tromey@adacore.com>
8957
8958 * nat/windows-nat.h (last_wait_event): Don't declare.
8959 (wait_for_debug_event): Update comment.
8960 * nat/windows-nat.c (last_wait_event): Now static.
8961
8962 2020-04-08 Tom Tromey <tromey@adacore.com>
8963
8964 * windows-nat.c (wait_for_debug_event): Move to
8965 nat/windows-nat.c.
8966 * nat/windows-nat.h (wait_for_debug_event): Declare.
8967 * nat/windows-nat.c (wait_for_debug_event): Move from
8968 windows-nat.c. No longer static.
8969
8970 2020-04-08 Tom Tromey <tromey@adacore.com>
8971
8972 * windows-nat.c (get_windows_debug_event): Use
8973 fetch_pending_stop.
8974 * nat/windows-nat.h (fetch_pending_stop): Declare.
8975 * nat/windows-nat.c (fetch_pending_stop): New function.
8976
8977 2020-04-08 Tom Tromey <tromey@adacore.com>
8978
8979 * windows-nat.c (windows_continue): Use matching_pending_stop and
8980 continue_last_debug_event.
8981 * nat/windows-nat.h (matching_pending_stop)
8982 (continue_last_debug_event): Declare.
8983 * nat/windows-nat.c (DEBUG_EVENTS): New define.
8984 (matching_pending_stop, continue_last_debug_event): New
8985 functions.
8986
8987 2020-04-08 Tom Tromey <tromey@adacore.com>
8988
8989 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
8990 (handle_exception_result): Move to nat/windows-nat.h.
8991 (DEBUG_EXCEPTION_SIMPLE): Remove.
8992 (windows_nat::handle_ms_vc_exception): New function.
8993 (handle_exception): Move to nat/windows-nat.c.
8994 (get_windows_debug_event): Update.
8995 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
8996 nat/windows-nat.c.
8997 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
8998 (handle_exception_result): Move from windows-nat.c.
8999 (handle_exception): Declare.
9000 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
9001 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
9002 windows-nat.c.
9003
9004 2020-04-08 Tom Tromey <tromey@adacore.com>
9005
9006 * windows-nat.c (exception_count, event_count): Remove.
9007 (handle_exception, get_windows_debug_event)
9008 (do_initial_windows_stuff): Update.
9009
9010 2020-04-08 Tom Tromey <tromey@adacore.com>
9011
9012 * windows-nat.c (windows_nat::handle_load_dll)
9013 (windows_nat::handle_unload_dll): Rename. No longer static.
9014 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
9015 Declare.
9016
9017 2020-04-08 Tom Tromey <tromey@adacore.com>
9018
9019 * complaints.h (stop_whining): Declare at top-level.
9020 (complaint): Don't declare stop_whining.
9021
9022 2020-04-08 Tom Tromey <tromey@adacore.com>
9023
9024 * windows-nat.c (windows_nat::handle_output_debug_string):
9025 Rename. No longer static.
9026 * nat/windows-nat.h (handle_output_debug_string): Declare.
9027
9028 2020-04-08 Tom Tromey <tromey@adacore.com>
9029
9030 * windows-nat.c (current_process_handle, current_process_id)
9031 (main_thread_id, last_sig, current_event, last_wait_event)
9032 (current_windows_thread, desired_stop_thread_id, pending_stops)
9033 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
9034 (display_selectors, fake_create_process)
9035 (get_windows_debug_event): Update.
9036 * nat/windows-nat.h (current_process_handle, current_process_id)
9037 (main_thread_id, last_sig, current_event, last_wait_event)
9038 (current_windows_thread, desired_stop_thread_id, pending_stops)
9039 (struct pending_stop, siginfo_er): Move from windows-nat.c.
9040 * nat/windows-nat.c (current_process_handle, current_process_id)
9041 (main_thread_id, last_sig, current_event, last_wait_event)
9042 (current_windows_thread, desired_stop_thread_id, pending_stops)
9043 (siginfo_er): New globals. Move from windows-nat.c.
9044
9045 2020-04-08 Tom Tromey <tromey@adacore.com>
9046
9047 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
9048 (handle_load_dll): Update.
9049 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
9050
9051 2020-04-08 Tom Tromey <tromey@adacore.com>
9052
9053 * windows-nat.c (enum thread_disposition_type): Move to
9054 nat/windows-nat.h.
9055 (windows_nat::thread_rec): Rename from thread_rec. No longer
9056 static.
9057 (windows_add_thread, windows_nat_target::fetch_registers)
9058 (windows_nat_target::store_registers, handle_exception)
9059 (windows_nat_target::resume, get_windows_debug_event)
9060 (windows_nat_target::get_tib_address)
9061 (windows_nat_target::thread_name)
9062 (windows_nat_target::thread_alive): Update.
9063 * nat/windows-nat.h (enum thread_disposition_type): Move from
9064 windows-nat.c.
9065 (thread_rec): Declare.
9066
9067 2020-04-08 Tom Tromey <tromey@adacore.com>
9068
9069 * windows-nat.c: Add "using namespace".
9070 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
9071 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
9072
9073 2020-04-08 Tom Tromey <tromey@adacore.com>
9074
9075 * nat/windows-nat.h (struct windows_thread_info): Declare
9076 destructor.
9077 * nat/windows-nat.c (~windows_thread_info): New.
9078
9079 2020-04-08 Tom Tromey <tromey@adacore.com>
9080
9081 PR gdb/22992
9082 * windows-nat.c (current_event): Update comment.
9083 (last_wait_event, desired_stop_thread_id): New globals.
9084 (struct pending_stop): New.
9085 (pending_stops): New global.
9086 (windows_nat_target) <stopped_by_sw_breakpoint>
9087 <supports_stopped_by_sw_breakpoint>: New methods.
9088 (windows_fetch_one_register): Add assertions. Adjust PC.
9089 (windows_continue): Handle pending stops. Suspend other threads
9090 when stepping. Use last_wait_event
9091 (wait_for_debug_event): New function.
9092 (get_windows_debug_event): Use wait_for_debug_event. Handle
9093 pending stops. Queue spurious stops.
9094 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
9095 (windows_nat_target::kill): Use wait_for_debug_event.
9096 * nat/windows-nat.h (struct windows_thread_info)
9097 <stopped_at_software_breakpoint>: New field.
9098 * nat/windows-nat.c (windows_thread_info::resume): Clear
9099 stopped_at_software_breakpoint.
9100
9101 2020-04-08 Tom Tromey <tromey@adacore.com>
9102
9103 * windows-nat.c (enum thread_disposition_type): New.
9104 (thread_rec): Replace "get_context" parameter with "disposition";
9105 change type.
9106 (windows_add_thread, windows_nat_target::fetch_registers)
9107 (windows_nat_target::store_registers, handle_exception)
9108 (windows_nat_target::resume, get_windows_debug_event)
9109 (windows_nat_target::get_tib_address)
9110 (windows_nat_target::thread_name)
9111 (windows_nat_target::thread_alive): Update.
9112
9113 2020-04-08 Tom Tromey <tromey@adacore.com>
9114
9115 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
9116 (windows_continue): Use windows_continue::resume.
9117 * nat/windows-nat.h (struct windows_thread_info) <suspend,
9118 resume>: Declare new methods.
9119 * nat/windows-nat.c: New file.
9120 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
9121
9122 2020-04-08 Tom Tromey <tromey@adacore.com>
9123
9124 * windows-nat.c (windows_add_thread, windows_delete_thread)
9125 (windows_nat_target::fetch_registers)
9126 (windows_nat_target::store_registers, fake_create_process)
9127 (windows_nat_target::resume, windows_nat_target::resume)
9128 (get_windows_debug_event, windows_nat_target::wait)
9129 (windows_nat_target::pid_to_str)
9130 (windows_nat_target::get_tib_address)
9131 (windows_nat_target::get_ada_task_ptid)
9132 (windows_nat_target::thread_name)
9133 (windows_nat_target::thread_alive): Use lwp, not tid.
9134
9135 2020-04-08 Tom Tromey <tromey@adacore.com>
9136
9137 * windows-nat.c (handle_exception)
9138 (windows_nat_target::thread_name): Update.
9139 * nat/windows-nat.h (windows_thread_info): Remove destructor.
9140 <name>: Now unique_xmalloc_ptr.
9141
9142 2020-04-08 Tom Tromey <tromey@adacore.com>
9143
9144 * windows-nat.c (thread_rec)
9145 (windows_nat_target::fetch_registers): Update.
9146 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
9147 Update comment.
9148 <debug_registers_changed, reload_context>: Now bool.
9149
9150 2020-04-08 Tom Tromey <tromey@adacore.com>
9151
9152 * windows-nat.c (windows_add_thread): Use new.
9153 (windows_init_thread_list, windows_delete_thread): Use delete.
9154 (get_windows_debug_event): Update.
9155 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
9156 destructor, and initializers.
9157
9158 2020-04-08 Tom Tromey <tromey@adacore.com>
9159
9160 * windows-nat.c (struct windows_thread_info): Remove.
9161 * nat/windows-nat.h: New file.
9162
9163 2020-04-08 Tom Tromey <tromey@adacore.com>
9164
9165 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
9166 (thread_rec, windows_add_thread, windows_delete_thread)
9167 (windows_continue): Update.
9168
9169 2020-04-08 Tom Tromey <tromey@adacore.com>
9170
9171 * windows-nat.c (struct windows_thread_info): Remove typedef.
9172 (thread_head): Remove.
9173 (thread_list): New global.
9174 (thread_rec, windows_add_thread, windows_init_thread_list)
9175 (windows_delete_thread, windows_continue): Update.
9176
9177 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
9178
9179 * windows-tdep.h (windows_init_abi): Add comment.
9180 (cygwin_init_abi): New declaration.
9181 * windows-tdep.c: Split signal enumeration in two, one for
9182 Windows and one for Cygwin.
9183 (windows_gdb_signal_to_target): Only deal with signal of the
9184 Windows OS ABI.
9185 (cygwin_gdb_signal_to_target): New function.
9186 (windows_init_abi): Rename to windows_init_abi_common, don't set
9187 gdb_signal_to_target gdbarch method. Add new new function with
9188 this name.
9189 (cygwin_init_abi): New function.
9190 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
9191 comment. Don't call windows_init_abi.
9192 (amd64_windows_init_abi): Add comment, call windows_init_abi.
9193 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
9194 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
9195 i386_windows_init_abi_common, don't call windows_init_abi. Add
9196 a new function of this name.
9197 (i386_cygwin_init_abi): New function.
9198 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
9199 OS ABI Cygwin.
9200
9201 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
9202
9203 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
9204 parameter.c.
9205 (dwarf2_read_gdb_index): Update.
9206
9207 2020-04-07 Kamil Rytarowski <n54@gmx.com>
9208
9209 * nbsd-tdep.c: Include "objfiles.h".
9210 (nbsd_skip_solib_resolver): New.
9211 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
9212
9213 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
9214
9215 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
9216 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
9217 with DW_LLE_base_addressx are being emitted in DWARFv5.
9218 Add the newly added kind DW_LOC_OFFSET_PAIR also.
9219 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
9220 unsigned integer.
9221
9222 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
9223
9224 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
9225 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
9226 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
9227 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
9228 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
9229 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
9230 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
9231
9232
9233 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
9234
9235 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
9236 (read_loclist_index): New function definition.
9237 (lookup_loclist_base): New function definition.
9238 (read_loclist_header): New function definition.
9239 (dwarf2_cu): Add loclist_base and loclist_header field.
9240 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
9241 (read_full_die_1): Read the value of DW_AT_loclists_base.
9242 (read_attribute_reprocess): Handle DW_FORM_loclistx.
9243 (read_attribute_value): Handle DW_FORM_loclistx.
9244 (skip_one_die): Handle DW_FORM_loclistx.
9245 (loclist_header): New structure declaration.
9246 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
9247
9248 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9249
9250 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
9251 constructor. Remove `addr` parameter from other constructor and
9252 add `per_cu` parameter.
9253 * dwarf2/read.c (create_partial_symtab): Update.
9254
9255 2020-04-07 Tom de Vries <tdevries@suse.de>
9256
9257 PR symtab/25796
9258 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
9259 (partial_die_info::fixup): Inherit has_const_value.
9260
9261 2020-04-07 Tom de Vries <tdevries@suse.de>
9262
9263 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
9264 symbols without address.
9265
9266 2020-04-06 Kamil Rytarowski <n54@gmx.com>
9267
9268 * nbsd-nat.h (struct thread_info): Add forward declaration.
9269 (nbsd_nat_target::thread_alive): Add.
9270 (nbsd_nat_target::thread_name): Likewise.
9271 (nbsd_nat_target::update_thread_list): Likewise.
9272 (update_thread_list::post_attach): Likewise.
9273 (post_attach::pid_to_str): Likewise.
9274 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
9275 (nbsd_thread_lister): Add.
9276 (nbsd_nat_target::thread_alive): Likewise.
9277 (nbsd_nat_target::thread_name): Likewise.
9278 (nbsd_add_threads): Likewise.
9279 (update_thread_list::post_attach): Likewise.
9280 (nbsd_nat_target::update_thread_list): Likewise.
9281 (post_attach::pid_to_str): Likewise.
9282
9283 2020-04-06 Tom Tromey <tromey@adacore.com>
9284
9285 * ada-valprint.c (print_variant_part): Extract the variant field.
9286 (print_field_values): Use the field as the outer value when
9287 recursing.
9288
9289 2020-04-06 Tom Tromey <tromey@adacore.com>
9290
9291 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
9292 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
9293 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
9294 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
9295 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
9296
9297 2020-04-06 Tom Tromey <tromey@adacore.com>
9298
9299 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
9300 TYPE_CODE_ERROR.
9301
9302 2020-04-06 Kamil Rytarowski <n54@gmx.com>
9303
9304 * nbsd-tdep.c: Include "gdbarch.h".
9305 Define enum with NetBSD signal numbers.
9306 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
9307 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
9308 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
9309 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
9310 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
9311 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
9312 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
9313 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
9314 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
9315 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
9316 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
9317 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
9318
9319 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
9320
9321 PR gdb/25325
9322 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
9323
9324 2020-04-03 Tom Tromey <tromey@adacore.com>
9325
9326 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
9327 Read constant block.
9328
9329 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
9330
9331 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
9332 (gdb_bfd_get_full_section_contents): New declaration.
9333 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
9334 * windows-tdep.c (is_linked_with_cygwin_dll): Use
9335 gdb_bfd_get_full_section_contents.
9336
9337 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
9338
9339 * exec.c (build_section_table): Replace internal_error with
9340 gdb_assert.
9341 (section_table_xfer_memory_partial): Likewise.
9342 * mdebugread.c (parse_partial_symbols): Likewise.
9343 * psymtab.c (lookup_partial_symbol): Likewise.
9344 * utils.c (wrap_here): Likewise.
9345
9346 2020-04-02 Tom Tromey <tromey@adacore.com>
9347
9348 * f-lang.c (build_fortran_types): Use arch_type to initialize
9349 builtin_complex_s32 in the TYPE_CODE_ERROR case.
9350
9351 2020-04-02 Tom Tromey <tromey@adacore.com>
9352
9353 * dwarf2/read.c (partial_die_info::read): Do not create a vector
9354 of attributes.
9355
9356 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
9357 Bernd Edlinger <bernd.edlinger@hotmail.de>
9358 Tom Tromey <tromey@adacore.com>
9359
9360 * buildsym.c (buildsym_compunit::record_line): Remove
9361 deduplication code.
9362
9363 2020-04-02 Tom de Vries <tdevries@suse.de>
9364
9365 PR ada/24671
9366 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
9367
9368 2020-04-02 Tom de Vries <tdevries@suse.de>
9369
9370 * dwarf2/read.c (dwarf2_gdb_index_functions,
9371 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
9372 NULL.
9373 * psymtab.c (psym_lookup_global_symbol_language): New function.
9374 (psym_functions): Init psym_lookup_global_symbol_language with
9375 psym_lookup_global_symbol_language.
9376 * symfile-debug.c (debug_sym_quick_functions): Init
9377 lookup_global_symbol_language with NULL.
9378 * symfile.c (set_initial_language): Remove fixme comment.
9379 * symfile.h (struct quick_symbol_functions): Add
9380 lookup_global_symbol_language.
9381 * symtab.c (find_quick_global_symbol_language): New function.
9382 (find_main_name): Use find_quick_global_symbol_language.
9383
9384 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
9385
9386 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
9387
9388 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
9389
9390 * buildsym.c (record_line): Fix undefined behavior and preserve
9391 lines at eof.
9392
9393 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
9394
9395 * buildsym.c (record_line): Fix the resizing condition.
9396
9397 2020-04-01 Tom Tromey <tom@tromey.com>
9398
9399 * value.h (value_literal_complex): Add comment.
9400 * valops.c (value_literal_complex): Refer to value.h.
9401
9402 2020-04-01 Tom Tromey <tom@tromey.com>
9403
9404 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
9405 (scalar_type): New rule, from typebase.
9406 (typebase): Use scalar_type. Recognize complex types.
9407 (field_name): Handle FLOAT_KEYWORD.
9408 (ident_tokens): Add _Complex and __complex__.
9409
9410 2020-04-01 Tom Tromey <tom@tromey.com>
9411
9412 PR exp/25299:
9413 * valarith.c (promotion_type, complex_binop): New functions.
9414 (scalar_binop): Handle complex numbers. Use promotion_type.
9415 (value_pos, value_neg, value_complement): Handle complex numbers.
9416
9417 2020-04-01 Tom Tromey <tom@tromey.com>
9418
9419 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
9420 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
9421 (parse_number): Handle complex numbers.
9422
9423 2020-04-01 Tom Tromey <tom@tromey.com>
9424
9425 * c-valprint.c (c_decorations): Change complex suffix to "i".
9426
9427 2020-04-01 Tom Tromey <tom@tromey.com>
9428
9429 * valprint.c (generic_value_print_complex): Use accessors.
9430 * value.h (value_real_part, value_imaginary_part): Declare.
9431 * valops.c (value_real_part, value_imaginary_part): New
9432 functions.
9433 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
9434
9435 2020-04-01 Tom Tromey <tom@tromey.com>
9436
9437 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
9438 (read_range_type): Update.
9439 * mdebugread.c (basic_type): Update.
9440 * go-lang.c (build_go_types): Use init_complex_type.
9441 * gdbtypes.h (struct main_type) <complex_type>: New member.
9442 (init_complex_type): Update.
9443 (arch_complex_type): Don't declare.
9444 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
9445 Make name if none given. Use alloc_type_copy. Look for cached
9446 complex type.
9447 (arch_complex_type): Remove.
9448 (gdbtypes_post_init): Use init_complex_type.
9449 * f-lang.c (build_fortran_types): Use init_complex_type.
9450 * dwarf2/read.c (read_base_type): Update.
9451 * d-lang.c (build_d_types): Use init_complex_type.
9452 * ctfread.c (read_base_type): Update.
9453
9454 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9455
9456 * infrun.c (stop_all_threads): Update assertion, plus when
9457 stopping threads, take into account that we might be trying
9458 to stop an all-stop target.
9459 (stop_waiting): Call 'stop_all_threads' if there exists a
9460 non-stop target.
9461
9462 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9463
9464 * target.h (exists_non_stop_target): New function declaration.
9465 * target.c (exists_non_stop_target): New function.
9466
9467 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
9468
9469 PR gdb/24789
9470 * eval.c (is_integral_or_integral_reference): New function.
9471 (evaluate_subexp_standard): Allow integer references in
9472 pointer arithmetic.
9473
9474 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9475
9476 * remote.c (remote_target::remote_parse_stop_reply): Remove the
9477 check for no ptid in the stop reply when the target is non-stop.
9478
9479 2020-04-01 Tom Tromey <tromey@adacore.com>
9480
9481 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
9482 "name" parameter to rvalue reference. Initialize m_name_holder.
9483 <lookup_name_info>: New overloads.
9484 <name>: Return gdb::string_view.
9485 <c_str>: New method.
9486 <make_ignore_params>: Update.
9487 <search_name_hash>: Update.
9488 <language_lookup_name>: Return const char *.
9489 <m_name>: Change type.
9490 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
9491 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
9492 (lookup_name_info::match_any): Update.
9493 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
9494 Update.
9495 * minsyms.c (linkage_name_str): Update.
9496 * language.c (default_symbol_name_matcher): Update.
9497 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
9498 Update.
9499 * ada-lang.c (ada_fold_name): Change parameter to string_view.
9500 (ada_lookup_name_info::ada_lookup_name_info): Update.
9501 (literal_symbol_name_matcher): Update.
9502
9503 2020-04-01 Tom Tromey <tromey@adacore.com>
9504
9505 * psymtab.c (psymtab_search_name): Remove function.
9506 (psym_lookup_symbol): Create search name and lookup name here.
9507 (lookup_partial_symbol): Remove "name" parameter; add
9508 lookup_name.
9509 (psym_expand_symtabs_for_function): Update.
9510
9511 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
9512
9513 PR tui/25597:
9514 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
9515
9516 2020-03-31 Tom Tromey <tromey@adacore.com>
9517
9518 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
9519 memcpy.
9520
9521 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
9522
9523 * features/riscv/32bit-csr.xml: Regenerated.
9524 * features/riscv/64bit-csr.xml: Regenerated.
9525
9526 2020-03-30 Tom Tromey <tromey@adacore.com>
9527
9528 * ada-valprint.c (print_variant_part): Update.
9529 * ada-lang.h (ada_which_variant_applies): Update.
9530 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
9531 outer_valaddr parameters; replace with "outer" value parameter.
9532 (to_fixed_variant_branch_type): Update.
9533
9534 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9535
9536 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
9537 <list>. Remove inclusion of observable.h.
9538 (PPC_DEBUG_CURRENT_VERSION): Move up define.
9539 (struct arch_lwp_info): New struct.
9540 (class ppc_linux_dreg_interface): New class.
9541 (struct ppc_linux_process_info): New struct.
9542 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
9543 <low_new_clone, low_forget_process, low_prepare_to_resume>
9544 <copy_thread_dreg_state, mark_thread_stale>
9545 <mark_debug_registers_changed, register_hw_breakpoint>
9546 <clear_hw_breakpoint, register_wp, clear_wp>
9547 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
9548 <num_memory_accesses, get_trigger_type>
9549 <create_watchpoint_request, hwdebug_point_cmp>
9550 <init_arch_lwp_info, get_arch_lwp_info>
9551 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
9552 methods.
9553 <struct ptid_hash>: New inner struct.
9554 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
9555 members.
9556 (saved_dabr_value, hwdebug_info, max_slots_number)
9557 (struct hw_break_tuple, struct thread_points, ppc_threads)
9558 (have_ptrace_hwdebug_interface)
9559 (hwdebug_find_thread_points_by_tid)
9560 (hwdebug_insert_point, hwdebug_remove_point): Remove.
9561 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
9562 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
9563 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
9564 use m_dreg_interface.
9565 (hwdebug_point_cmp): Change to...
9566 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
9567 reference arguments instead of pointers.
9568 (ppc_linux_nat_target::ranged_break_num_registers): Use
9569 m_dreg_interface.
9570 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
9571 m_dreg_interface. Call register_hw_breakpoint.
9572 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
9573 m_dreg_interface. Call clear_hw_breakpoint.
9574 (get_trigger_type): Change to...
9575 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
9576 comment.
9577 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
9578 use m_dreg_interface. Call register_hw_breakpoint.
9579 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
9580 use m_dreg_interface. Call clear_hw_breakpoint.
9581 (can_use_watchpoint_cond_accel): Change to...
9582 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
9583 method. Update comment, use m_dreg_interface and
9584 m_process_info.
9585 (calculate_dvc): Change to...
9586 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
9587 m_dreg_interface.
9588 (num_memory_accesses): Change to...
9589 (ppc_linux_nat_target::num_memory_accesses): ...this method.
9590 (check_condition): Change to...
9591 (ppc_linux_nat_target::check_condition): ...this method.
9592 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
9593 comment, use m_dreg_interface.
9594 (create_watchpoint_request): Change to...
9595 (ppc_linux_nat_target::create_watchpoint_request): ...this
9596 method. Use m_dreg_interface.
9597 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
9598 m_dreg_interface. Call register_hw_breakpoint or register_wp.
9599 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
9600 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
9601 (ppc_linux_nat_target::low_forget_process)
9602 (ppc_linux_nat_target::low_new_fork)
9603 (ppc_linux_nat_target::low_new_clone)
9604 (ppc_linux_nat_target::low_delete_thread)
9605 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
9606 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
9607 only call mark_thread_stale.
9608 (ppc_linux_thread_exit): Remove.
9609 (ppc_linux_nat_target::stopped_data_address): Change to...
9610 (ppc_linux_nat_target::low_stopped_data_address): This. Add
9611 comment, use m_dreg_interface and m_thread_hw_breakpoints.
9612 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
9613 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
9614 comment. Call low_stopped_data_address.
9615 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
9616 m_dreg_interface.
9617 (ppc_linux_nat_target::masked_watch_num_registers): Use
9618 m_dreg_interface.
9619 (ppc_linux_nat_target::copy_thread_dreg_state)
9620 (ppc_linux_nat_target::mark_thread_stale)
9621 (ppc_linux_nat_target::mark_debug_registers_changed)
9622 (ppc_linux_nat_target::register_hw_breakpoint)
9623 (ppc_linux_nat_target::clear_hw_breakpoint)
9624 (ppc_linux_nat_target::register_wp)
9625 (ppc_linux_nat_target::clear_wp)
9626 (ppc_linux_nat_target::init_arch_lwp_info)
9627 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
9628 (_initialize_ppc_linux_nat): Remove observer callback.
9629
9630 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9631
9632 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
9633 (ppc_linux_nat_target::auxv_parse)
9634 (ppc_linux_nat_target::read_description)
9635 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
9636 Move up.
9637
9638 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9639
9640 * linux-nat.h (low_new_clone): New method.
9641 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
9642
9643 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9644
9645 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
9646 (dbx_expand_psymtab): ... this.
9647 (start_psymtab): Update.
9648 * mdebugread.c (psymtab_to_symtab_1): Rename to...
9649 (mdebug_expand_psymtab): ... this.
9650 (parse_partial_symbols): Update.
9651 (new_psymtab): Update.
9652 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
9653 (xcoff_expand_psymtab): ... this.
9654 (xcoff_start_psymtab): Update.
9655
9656 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9657
9658 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
9659 <expand_dependencies>: ... this.
9660 * psymtab.c (partial_symtab::read_dependencies): Rename to...
9661 (partial_symtab::expand_dependencies): ... this.
9662 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
9663 Update.
9664 (dwarf2_psymtab::expand_psymtab): Update.
9665 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
9666 * mdebugread.c (psymtab_to_symtab_1): Update.
9667 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
9668
9669 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9670
9671 * psympriv.h (discard_psymtab): Remove.
9672 * dbxread.c (dbx_end_psymtab): Update.
9673 * xcoffread.c (xcoff_end_psymtab): Update.
9674
9675 2020-03-28 Tom Tromey <tom@tromey.com>
9676
9677 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
9678 comment.
9679
9680 2020-03-28 Tom Tromey <tom@tromey.com>
9681
9682 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
9683
9684 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
9685
9686 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
9687
9688 2020-03-26 John Baldwin <jhb@FreeBSD.org>
9689
9690 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
9691
9692 2020-03-26 Tom Tromey <tom@tromey.com>
9693
9694 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
9695 (mark_common_block_symbol_computed, read_tag_string_type)
9696 (attr_to_dynamic_prop, read_subrange_type): Update.
9697 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
9698 to be methods on struct attribute.
9699 (skip_one_die, process_imported_unit_die, read_namespace_alias)
9700 (read_call_site_scope, partial_die_info::read)
9701 (partial_die_info::read, lookup_die_type, follow_die_ref):
9702 Update.
9703 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
9704 from dwarf2_get_ref_die_offset.
9705 (attribute::constant_value): New method, from
9706 dwarf2_get_attr_constant_value.
9707 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
9708 Declare method.
9709 <constant_value>: New method.
9710
9711 2020-03-26 Tom Tromey <tom@tromey.com>
9712
9713 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
9714 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
9715 (dwarf_type_encoding_name): Move to stringify.c.
9716 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
9717 * dwarf2/stringify.c: New file.
9718 * dwarf2/stringify.h: New file.
9719
9720 2020-03-26 Tom Tromey <tom@tromey.com>
9721
9722 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
9723 Rewrite.
9724
9725 2020-03-26 Tom Tromey <tom@tromey.com>
9726
9727 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
9728 methods.
9729 * dwarf2/read.c (lookup_addr_base): Move to die.h.
9730 (lookup_ranges_base): Likewise.
9731 (read_cutu_die_from_dwo, read_full_die_1): Update.
9732
9733 2020-03-26 Tom Tromey <tom@tromey.com>
9734
9735 * dwarf2/read.c (read_import_statement, read_file_scope)
9736 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
9737 (read_lexical_block_scope, read_call_site_scope)
9738 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
9739 (handle_struct_member_die, process_structure_scope)
9740 (update_enumeration_type_from_children)
9741 (process_enumeration_scope, read_array_type, read_common_block)
9742 (read_namespace, read_module, read_subroutine_type): Update.
9743 (sibling_die): Remove.
9744
9745 2020-03-26 Tom Tromey <tom@tromey.com>
9746
9747 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
9748 (build_type_psymtabs_reader, read_structure_type)
9749 (read_enumeration_type, read_full_die_1): Update.
9750 (dwarf2_attr_no_follow): Move to die.h.
9751 * dwarf2/die.h (struct die_info) <attr>: New method.
9752
9753 2020-03-26 Tom Tromey <tom@tromey.com>
9754
9755 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
9756 <base_address>: Now an optional.
9757 (dwarf2_find_base_address, dwarf2_rnglists_process)
9758 (dwarf2_ranges_process, fill_in_loclist_baton)
9759 (dwarf2_symbol_mark_computed): Update.
9760
9761 2020-03-26 Tom Tromey <tom@tromey.com>
9762
9763 * dwarf2/read.c (struct die_info): Move to die.h.
9764 * dwarf2/die.h: New file.
9765
9766 2020-03-26 Tom Tromey <tom@tromey.com>
9767
9768 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
9769 * dwarf2/read.c
9770 (dwarf2_statement_list_fits_in_line_number_section_complaint):
9771 Move to line-header.c.
9772 (read_checked_initial_length_and_offset, read_formatted_entries):
9773 Likewise.
9774 (dwarf_decode_line_header): Split into two.
9775 * dwarf2/line-header.c
9776 (dwarf2_statement_list_fits_in_line_number_section_complaint):
9777 Move from read.c.
9778 (read_checked_initial_length_and_offset, read_formatted_entries):
9779 Likewise.
9780 (dwarf_decode_line_header): New function, split from read.c.
9781
9782 2020-03-26 Tom Tromey <tom@tromey.com>
9783
9784 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
9785 Declare method.
9786 * dwarf2/read.c (read_attribute_value): Update.
9787 (dwarf2_per_objfile::read_line_string): Rename from
9788 read_indirect_line_string.
9789 (read_formatted_entries): Update.
9790
9791 2020-03-26 Tom Tromey <tom@tromey.com>
9792
9793 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
9794 variable.
9795
9796 2020-03-26 Tom Tromey <tom@tromey.com>
9797
9798 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
9799 const.
9800 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
9801 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
9802 parameter const.
9803
9804 2020-03-26 Tom Tromey <tom@tromey.com>
9805
9806 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
9807 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
9808 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
9809 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
9810
9811 2020-03-26 Tom Tromey <tom@tromey.com>
9812
9813 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
9814 file_names_size, file_full_name, file_file_name>: Use const.
9815 <file_name_at, file_names>: Add const overload.
9816 * dwarf2/line-header.c (line_header::file_file_name)
9817 (line_header::file_full_name): Update.
9818
9819 2020-03-26 Tom Tromey <tom@tromey.com>
9820
9821 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
9822 (macro_start_file, consume_improper_spaces)
9823 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
9824 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
9825 (dwarf_decode_macros): Move to macro.c.
9826 * dwarf2/macro.c: New file.
9827 * dwarf2/macro.h: New file.
9828 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
9829
9830 2020-03-26 Tom Tromey <tom@tromey.com>
9831
9832 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
9833 method.
9834 * dwarf2/section.c: New method. From
9835 read_indirect_string_at_offset_from.
9836 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
9837 (read_indirect_string_at_offset_from): Move to section.c.
9838 (read_indirect_string_at_offset): Rewrite.
9839 (read_indirect_line_string_at_offset): Remove.
9840 (read_indirect_string, read_indirect_line_string)
9841 (dwarf_decode_macro_bytes): Update.
9842
9843 2020-03-26 Tom Tromey <tom@tromey.com>
9844
9845 * dwarf2/section.h (struct dwarf2_section_info)
9846 <overload_complaint>: Declare.
9847 (dwarf2_section_buffer_overflow_complaint): Don't declare.
9848 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
9849 Rename from dwarf2_section_buffer_overflow_complaint.
9850 * dwarf2/read.c (skip_one_die, partial_die_info::read)
9851 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
9852
9853 2020-03-26 Tom Tromey <tom@tromey.com>
9854
9855 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
9856 Declare.
9857 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
9858 Move from read.c.
9859 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
9860 to section.c.
9861
9862 2020-03-26 Tom Tromey <tom@tromey.com>
9863
9864 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
9865
9866 2020-03-26 Tom Tromey <tom@tromey.com>
9867
9868 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
9869 "builder".
9870 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
9871 parameter.
9872 (dwarf_decode_macros): Update.
9873
9874 2020-03-26 Tom Tromey <tom@tromey.com>
9875
9876 * dwarf2/read.c (read_attribute_value): Update.
9877 (read_indirect_string_from_dwz): Move to dwz.c; change into
9878 method.
9879 (dwarf_decode_macro_bytes): Update.
9880 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
9881 * dwarf2/dwz.c: New file.
9882 * Makefile.in (COMMON_SFILES): Add dwz.c.
9883
9884 2020-03-26 Tom Tromey <tom@tromey.com>
9885
9886 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
9887 * dwarf2/read.c: Add include.
9888 * dwarf2/index-write.c: Add include.
9889 * dwarf2/index-cache.c: Add include.
9890 * dwarf2/dwz.h: New file.
9891
9892 2020-03-25 Tom Tromey <tom@tromey.com>
9893
9894 * compile/compile-object-load.c (get_out_value_type): Mention
9895 correct symbol name in error message.
9896
9897 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
9898
9899 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
9900
9901 2020-03-25 Tom de Vries <tdevries@suse.de>
9902
9903 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
9904 * symmisc.c (dump_symtab_1): Print user and includes fields.
9905 (maintenance_info_symtabs): Same.
9906
9907 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
9908
9909 PR gdb/25534
9910 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
9911 (riscv_regcache_cooked_write): New function.
9912 (riscv_push_dummy_call): Use new function.
9913 (riscv_return_value): Likewise.
9914
9915 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
9916
9917 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
9918 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
9919 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
9920 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
9921 * infrun.c (follow_fork): Likewise.
9922 (follow_fork_inferior): Likewise.
9923 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
9924 * linux-nat.h (class linux_nat_target): Likewise.
9925 * remote.c (class remote_target) <follow_fork>: Likewise.
9926 (remote_target::follow_fork): Likewise.
9927 * target-delegates.c: Re-generate.
9928 * target.c (default_follow_fork): Likewise.
9929 (target_follow_fork): Likewise.
9930 * target.h (struct target_ops) <follow_fork>: Likewise.
9931 (target_follow_fork): Likewise.
9932
9933 2020-03-24 Tom de Vries <tdevries@suse.de>
9934
9935 * psymtab.c (maintenance_info_psymtabs): Print user field.
9936
9937 2020-03-20 Tom Tromey <tromey@adacore.com>
9938
9939 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
9940 const.
9941 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
9942 const.
9943
9944 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
9945
9946 * ptrace.m4: Don't check for ptrace declaration.
9947 * config.in: Re-generate.
9948 * configure: Re-generate.
9949 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
9950 not defined.
9951
9952 2020-03-20 Kamil Rytarowski <n54@gmx.com>
9953
9954 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
9955 `PTRACE_TYPE_RET'.
9956 * i386-bsd-nat.c (gdb_ptrace): Likewise.
9957 * sparc-nat.c (gdb_ptrace): Likewise.
9958 * x86-bsd-nat.c (gdb_ptrace): Likewise.
9959
9960 2020-03-20 Tom Tromey <tromey@adacore.com>
9961
9962 * c-exp.y (lex_one_token): Fix assert.
9963
9964 2020-03-20 Tom Tromey <tromey@adacore.com>
9965
9966 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
9967 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
9968 strncpy call.
9969
9970 2020-03-20 Tom Tromey <tromey@adacore.com>
9971
9972 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
9973
9974 2020-03-20 Tom Tromey <tromey@adacore.com>
9975
9976 * ada-valprint.c (print_variant_part): Remove parameters; switch
9977 to value-based API.
9978 (print_field_values): Likewise.
9979 (ada_val_print_struct_union): Likewise.
9980 (ada_value_print_1): Update.
9981
9982 2020-03-20 Kamil Rytarowski <n54@gmx.com>
9983
9984 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
9985 nbsd_nat_target instead of inf_ptrace_target.
9986 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9987 nbsd_nat_target.
9988
9989 2020-03-20 Kamil Rytarowski <n54@gmx.com>
9990
9991 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
9992 it to the ptrace call.
9993 * (store_registers): Likewise.
9994
9995 2020-03-20 Kamil Rytarowski <n54@gmx.com>
9996
9997 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
9998 it to the ptrace call.
9999 * (store_registers): Likewise.
10000
10001 2020-03-19 Luis Machado <luis.machado@linaro.org>
10002
10003 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
10004 valid, fetch vg value from ptrace.
10005
10006 2020-03-19 Kamil Rytarowski <n54@gmx.com>
10007 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
10008 * inf-ptrace.c: Likewise.
10009 * (gdb_ptrace): Add.
10010 * (inf_ptrace_target::resume): Update.
10011 * (inf_ptrace_target::xfer_partial): Likewise.
10012 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
10013 * (inf_ptrace_peek_poke): Update.
10014
10015 2020-03-19 Kamil Rytarowski <n54@gmx.com>
10016
10017 * x86-bsd-nat.c (gdb_ptrace): New.
10018 * (x86bsd_dr_set): Add new argument `ptid'.
10019 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
10020 x86bsd_dr_set_addr): Update.
10021
10022 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
10023
10024 * remote.c (remote_target::process_stop_reply): Handle events for
10025 all threads differently.
10026
10027 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
10028
10029 * completer.c (completion_tracker::remove_completion): Define new
10030 function.
10031 * completer.h (completion_tracker::remove_completion): Declare new
10032 function.
10033 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
10034 when adding a C++ function symbol.
10035
10036 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
10037
10038 * completer.c (completion_tracker::completion_hash_entry): Define
10039 new class.
10040 (advance_to_filename_complete_word_point): Call
10041 recompute_lowest_common_denominator.
10042 (completion_tracker::completion_tracker): Call discard_completions
10043 to setup the hash table.
10044 (completion_tracker::discard_completions): Allow for being called
10045 from the constructor, pass new equal function, and element deleter
10046 when constructing the hash table. Initialise new class member
10047 variables.
10048 (completion_tracker::maybe_add_completion): Remove use of
10049 m_entries_vec, and store more information into m_entries_hash.
10050 (completion_tracker::recompute_lcd_visitor): New function, most
10051 content taken from...
10052 (completion_tracker::recompute_lowest_common_denominator):
10053 ...here, this now just visits each item in the hash calling the
10054 above visitor.
10055 (completion_tracker::build_completion_result): Remove use of
10056 m_entries_vec, call recompute_lowest_common_denominator.
10057 * completer.h (completion_tracker::have_completions): Remove use
10058 of m_entries_vec.
10059 (completion_tracker::completion_hash_entry): Declare new class.
10060 (completion_tracker::recompute_lowest_common_denominator): Change
10061 function signature.
10062 (completion_tracker::recompute_lcd_visitor): Declare new function.
10063 (completion_tracker::m_entries_vec): Delete.
10064 (completion_tracker::m_entries_hash): Initialize to NULL.
10065 (completion_tracker::m_lowest_common_denominator_valid): New
10066 member variable.
10067 (completion_tracker::m_lowest_common_denominator_max_length): New
10068 member variable.
10069
10070 2020-03-17 Kamil Rytarowski <n54@gmx.com>
10071
10072 * regformats/regdef.h: Put reg in gdb namespace.
10073
10074 2020-03-17 Kamil Rytarowski <n54@gmx.com>
10075
10076 * i386-bsd-nat.c (gdb_ptrace): New.
10077 * (i386bsd_fetch_inferior_registers,
10078 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
10079 * (i386bsd_fetch_inferior_registers,
10080 i386bsd_store_inferior_registers) Use gdb_ptrace.
10081
10082 2020-03-17 Kamil Rytarowski <n54@gmx.com>
10083
10084 * amd64-bsd-nat.c (gdb_ptrace): New.
10085 * (amd64bsd_fetch_inferior_registers,
10086 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
10087 * (amd64bsd_fetch_inferior_registers,
10088 amd64bsd_store_inferior_registers) Use gdb_ptrace.
10089
10090 2020-03-17 Kamil Rytarowski <n54@gmx.com>
10091
10092 * user-regs.c (user_reg::read): Rename to...
10093 (user_reg::xread): ...this.
10094 * (append_user_reg): Rename argument `read' to `xread'.
10095 * (user_reg_add_builtin): Likewise.
10096 * (user_reg_add): Likewise.
10097 * (value_of_user_reg): Likewise.
10098
10099 2020-03-17 Kamil Rytarowski <n54@gmx.com>
10100
10101 * sparc-nat.c (gdb_ptrace): New.
10102 * sparc-nat.c (sparc_fetch_inferior_registers)
10103 (sparc_store_inferior_registers) Remove obsolete comment.
10104 * sparc-nat.c (sparc_fetch_inferior_registers)
10105 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
10106 * sparc-nat.c (sparc_fetch_inferior_registers)
10107 (sparc_store_inferior_registers) Use gdb_ptrace.
10108
10109 2020-03-17 Kamil Rytarowski <n54@gmx.com>
10110
10111 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
10112 it to the ptrace call.
10113 * sh-nbsd-nat.c (store_registers): Likewise.
10114
10115 2020-03-17 Kamil Rytarowski <n54@gmx.com>
10116
10117 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
10118 nbsd_nat_target instead of inf_ptrace_target.
10119 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
10120 nbsd_nat_target.
10121
10122 2020-03-17 Kamil Rytarowski <n54@gmx.com>
10123
10124 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
10125
10126 2020-03-17 Kamil Rytarowski <n54@gmx.com>
10127
10128 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
10129 <sys/sysctl.h>.
10130 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
10131
10132 2020-03-17 Tom de Vries <tdevries@suse.de>
10133
10134 PR gdb/23710
10135 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
10136 fields.
10137 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
10138 fields.
10139 (process_imported_unit_die): Skip import of c++ CUs.
10140
10141 2020-03-16 Tom Tromey <tom@tromey.com>
10142
10143 * p-valprint.c (pascal_object_print_value): Initialize
10144 base_value.
10145
10146 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
10147 Shahab Vahedi <shahab@synopsys.com>
10148
10149 * Makefile.in: Add arch/arc.o
10150 * configure.tgt: Likewise.
10151 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
10152 (_initialize_arc_tdep): Don't initialize old target descriptions.
10153 (arc_read_description): New function to cache target descriptions.
10154 * arc-tdep.h (arc_read_description): Add proto type.
10155 * arch/arc.c: New file.
10156 * arch/arc.h: Likewise.
10157 * features/Makefile: Replace old target descriptions with new.
10158 * features/arc-arcompact.c: Remove.
10159 * features/arc-arcompact.xml: Likewise.
10160 * features/arc-v2.c: Likewise
10161 * features/arc-v2.xml: Likewise
10162 * features/arc/aux-arcompact.xml: New file.
10163 * features/arc/aux-v2.xml: Likewise.
10164 * features/arc/core-arcompact.xml: Likewise.
10165 * features/arc/core-v2.xml: Likewise.
10166 * features/arc/aux-arcompact.c: Generate.
10167 * features/arc/aux-v2.c: Likewise.
10168 * features/arc/core-arcompact.c: Likewise.
10169 * features/arc/core-v2.c: Likewise.
10170 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
10171
10172 2020-03-16 Tom Tromey <tromey@adacore.com>
10173
10174 PR gdb/25663:
10175 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
10176 putting value into bcache.
10177
10178 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
10179
10180 PR gdb/21500
10181 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
10182 to...
10183 (amd64_windows_init_abi_common): ... this. Don't set size of
10184 long type.
10185 (amd64_windows_init_abi): New function.
10186 (amd64_cygwin_init_abi): New function.
10187 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
10188 the Cygwin OS ABI.
10189 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
10190 comment.
10191
10192 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
10193
10194 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
10195 * windows-tdep.c (CYGWIN_DLL_NAME): New.
10196 (pe_import_directory_entry): New struct type.
10197 (is_linked_with_cygwin_dll): New function.
10198 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
10199 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
10200 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
10201
10202 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
10203
10204 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
10205 i386_cygwin_core_osabi_sniffer.
10206
10207 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
10208
10209 * i386-cygwin-tdep.c: Rename to...
10210 * i386-windows-tdep.c: ... this.
10211 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
10212 i386-windows-tdep.c.
10213 * configure.tgt: Likewise.
10214
10215 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
10216
10217 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
10218 * osabi.c (gdb_osabi_names): Add "Windows".
10219 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
10220 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
10221 (i386_cygwin_core_osabi_sniffer): New function, extracted from
10222 i386_cygwin_osabi_sniffer.
10223 (_initialize_i386_cygwin_tdep): Register OS ABI
10224 GDB_OSABI_WINDOWS for i386.
10225 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
10226 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
10227 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
10228 for x86-64.
10229 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
10230 when the target matches '*-*-mingw*'.
10231
10232 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
10233
10234 * defs.h (enum gdb_osabi): Move to...
10235 * osabi.h (enum gdb_osabi): ... here.
10236 * gdbarch.sh: Include osabi.h in gdbarch.h.
10237 * gdbarch.h: Re-generate.
10238
10239 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
10240
10241 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
10242 function.
10243 (_initialize_amd64_windows_tdep): Register osabi sniffer.
10244
10245 2020-03-14 Tom Tromey <tom@tromey.com>
10246
10247 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
10248 for C++.
10249 (c_type_print_modifier): Likewise. Add "language" parameter.
10250 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
10251 (c_type_print_base_1): Update.
10252 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
10253 constants.
10254 * type-stack.c (type_stack::insert): Handle tp_atomic and
10255 tp_restrict.
10256 (type_stack::follow_type_instance_flags): Likewise.
10257 (type_stack::follow_types): Likewise. Merge type-following code.
10258 * c-exp.y (RESTRICT, ATOMIC): New tokens.
10259 (space_identifier, cv_with_space_id)
10260 (const_or_volatile_or_space_identifier_noopt)
10261 (const_or_volatile_or_space_identifier): Remove.
10262 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
10263 rules.
10264 (ptr_operator, typebase): Update.
10265 (enum token_flag) <FLAG_C>: New constant.
10266 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
10267 "_Atomic".
10268 (lex_one_token): Handle FLAG_C.
10269
10270 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10271
10272 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
10273 it to the ptrace call.
10274 * m68k-bsd-nat.c (store_registers): Likewise.
10275
10276 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10277
10278 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
10279 gdb_byte *.
10280 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
10281 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
10282 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
10283
10284 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10285
10286 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
10287 nbsd_nat_target instead of inf_ptrace_target.
10288 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
10289 nbsd_nat_target.
10290
10291 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10292
10293 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
10294 register_t.
10295
10296 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10297
10298 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
10299 it to the ptrace call.
10300 * alpha-bsd-nat.c (store_registers): Likewise.
10301
10302 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10303
10304 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
10305 includes.
10306 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
10307 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
10308 fill_fpregset): Likewise.
10309
10310 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10311
10312 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
10313 nbsd_nat_target instead of inf_ptrace_target.
10314 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
10315 nbsd_nat_target.
10316
10317 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10318
10319 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
10320 register_t.
10321
10322 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10323
10324 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
10325 it to the ptrace call.
10326 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
10327 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
10328 * arm-nbsd-nat.c (store_register): Likewise.
10329 * arm-nbsd-nat.c (store_regs): Likewise.
10330 * arm-nbsd-nat.c (store_fp_register): Likewise.
10331 * arm-nbsd-nat.c (store_fp_regs): Likewise.
10332
10333 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10334
10335 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
10336 nbsd_nat_target instead of inf_ptrace_target.
10337 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
10338 nbsd_nat_target.
10339
10340 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10341
10342 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
10343 it to the ptrace call.
10344 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
10345
10346 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10347
10348 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
10349 it to the ptrace call.
10350 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
10351
10352 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10353
10354 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
10355 gdb_byte *.
10356 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
10357
10358 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10359
10360 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
10361 instead of inf_ptrace_target.
10362 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
10363 nbsd_nat_target.
10364
10365 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10366
10367 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10368 register_t.
10369
10370 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10371
10372 * ppc-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 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
10378 register_t.
10379
10380 2020-03-13 Tom Tromey <tom@tromey.com>
10381
10382 * value.h (val_print): Don't declare.
10383 * valprint.h (val_print_array_elements)
10384 (val_print_scalar_formatted, generic_val_print): Don't declare.
10385 * valprint.c (generic_val_print_array): Take a struct value.
10386 (generic_val_print_ptr, generic_val_print_memberptr)
10387 (generic_val_print_bool, generic_val_print_int)
10388 (generic_val_print_char, generic_val_print_complex)
10389 (generic_val_print): Remove.
10390 (generic_value_print): Update.
10391 (do_val_print): Remove unused parameters. Don't call
10392 la_val_print.
10393 (val_print): Remove.
10394 (common_val_print): Update. Don't call value_check_printable.
10395 (val_print_scalar_formatted, val_print_array_elements): Remove.
10396 * rust-lang.c (rust_val_print): Remove.
10397 (rust_language_defn): Update.
10398 * p-valprint.c (pascal_val_print): Remove.
10399 (pascal_value_print_inner): Update.
10400 (pascal_object_print_val_fields, pascal_object_print_val):
10401 Remove.
10402 (pascal_object_print_static_field): Update.
10403 * p-lang.h (pascal_val_print): Don't declare.
10404 * p-lang.c (pascal_language_defn): Update.
10405 * opencl-lang.c (opencl_language_defn): Update.
10406 * objc-lang.c (objc_language_defn): Update.
10407 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
10408 * m2-lang.h (m2_val_print): Don't declare.
10409 * m2-lang.c (m2_language_defn): Update.
10410 * language.h (struct language_defn) <la_val_print>: Remove.
10411 * language.c (unk_lang_value_print_inner): Rename. Change
10412 argument types.
10413 (unknown_language_defn, auto_language_defn): Update.
10414 * go-valprint.c (go_val_print): Remove.
10415 * go-lang.h (go_val_print): Don't declare.
10416 * go-lang.c (go_language_defn): Update.
10417 * f-valprint.c (f_val_print): Remove.
10418 * f-lang.h (f_value_print): Don't declare.
10419 * f-lang.c (f_language_defn): Update.
10420 * d-valprint.c (d_val_print): Remove.
10421 * d-lang.h (d_value_print): Don't declare.
10422 * d-lang.c (d_language_defn): Update.
10423 * cp-valprint.c (cp_print_value_fields)
10424 (cp_print_value_fields_rtti, cp_print_value): Remove.
10425 (cp_print_static_field): Update.
10426 * c-valprint.c (c_val_print_array, c_val_print_ptr)
10427 (c_val_print_struct, c_val_print_union, c_val_print_int)
10428 (c_val_print_memberptr, c_val_print): Remove.
10429 * c-lang.h (c_val_print_array, cp_print_value_fields)
10430 (cp_print_value_fields_rtti): Don't declare.
10431 * c-lang.c (c_language_defn, cplus_language_defn)
10432 (asm_language_defn, minimal_language_defn): Update.
10433 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
10434 (ada_val_print_enum): Take a struct value.
10435 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
10436 (ada_val_print): Remove.
10437 (ada_value_print_1): Update.
10438 (printable_val_type): Remove.
10439 * ada-lang.h (ada_val_print): Don't declare.
10440 * ada-lang.c (ada_language_defn): Update.
10441
10442 2020-03-13 Tom Tromey <tom@tromey.com>
10443
10444 * valprint.c (do_val_print): Update.
10445 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
10446 a struct value.
10447 (value_to_value_object_no_release): Declare.
10448 * python/py-value.c (value_to_value_object_no_release): New
10449 function.
10450 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
10451 struct value.
10452 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
10453 function.
10454 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
10455 a struct value.
10456 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
10457 Declare.
10458 (gdbscm_apply_val_pretty_printer): Take a struct value.
10459 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
10460 value.
10461 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
10462 value.
10463 * extension-priv.h (struct extension_language_ops)
10464 <apply_val_pretty_printer>: Take a struct value.
10465 * cp-valprint.c (cp_print_value): Create a struct value.
10466 (cp_print_value): Update.
10467
10468 2020-03-13 Tom Tromey <tom@tromey.com>
10469
10470 * ada-valprint.c (print_field_values): Call common_val_print.
10471
10472 2020-03-13 Tom Tromey <tom@tromey.com>
10473
10474 * ada-valprint.c (val_print_packed_array_elements): Remove
10475 bitoffset and val parameters. Call common_val_print.
10476 (ada_val_print_string): Remove offset, address, and original_value
10477 parameters.
10478 (ada_val_print_array): Update.
10479 (ada_value_print_array): New function.
10480 (ada_value_print_1): Call it.
10481
10482 2020-03-13 Tom Tromey <tom@tromey.com>
10483
10484 * ada-valprint.c (ada_value_print): Use common_val_print.
10485
10486 2020-03-13 Tom Tromey <tom@tromey.com>
10487
10488 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
10489
10490 2020-03-13 Tom Tromey <tom@tromey.com>
10491
10492 * ada-valprint.c (ada_value_print_num): New function.
10493 (ada_value_print_1): Use it.
10494
10495 2020-03-13 Tom Tromey <tom@tromey.com>
10496
10497 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
10498
10499 2020-03-13 Tom Tromey <tom@tromey.com>
10500
10501 * ada-valprint.c (ada_value_print_ptr): New function.
10502 (ada_value_print_1): Use it.
10503
10504 2020-03-13 Tom Tromey <tom@tromey.com>
10505
10506 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
10507 call common_val_print.
10508 (ada_val_print_1): Update.
10509 (ada_value_print_1): New function.
10510 (ada_value_print_inner): Rewrite.
10511
10512 2020-03-13 Tom Tromey <tom@tromey.com>
10513
10514 * cp-valprint.c (cp_print_value_fields): Update.
10515 (cp_print_value): New function.
10516
10517 2020-03-13 Tom Tromey <tom@tromey.com>
10518
10519 * m2-valprint.c (m2_value_print_inner): Use
10520 cp_print_value_fields.
10521 * cp-valprint.c (cp_print_value_fields): New function.
10522 * c-valprint.c (c_value_print_struct): New function.
10523 (c_value_print_inner): Use c_value_print_struct.
10524 * c-lang.h (cp_print_value_fields): Declare.
10525
10526 2020-03-13 Tom Tromey <tom@tromey.com>
10527
10528 * c-valprint.c (c_value_print_array): New function.
10529 (c_value_print_inner): Use it.
10530
10531 2020-03-13 Tom Tromey <tom@tromey.com>
10532
10533 * c-valprint.c (c_value_print_memberptr): 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_int): 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_ptr): 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_inner): Rewrite.
10549
10550 2020-03-13 Tom Tromey <tom@tromey.com>
10551
10552 * valprint.c (generic_value_print_complex): New function.
10553 (generic_value_print): Use it.
10554
10555 2020-03-13 Tom Tromey <tom@tromey.com>
10556
10557 * valprint.c (generic_val_print_float): Don't call
10558 val_print_scalar_formatted.
10559 (generic_val_print, generic_value_print): Update.
10560
10561 2020-03-13 Tom Tromey <tom@tromey.com>
10562
10563 * valprint.c (generic_value_print_char): New function
10564 (generic_value_print): Use it.
10565
10566 2020-03-13 Tom Tromey <tom@tromey.com>
10567
10568 * valprint.c (generic_value_print_int): 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_bool): New function.
10574 (generic_value_print): Use it.
10575
10576 2020-03-13 Tom Tromey <tom@tromey.com>
10577
10578 * valprint.c (generic_val_print_func): Simplify.
10579 (generic_val_print, generic_value_print): Update.
10580
10581 2020-03-13 Tom Tromey <tom@tromey.com>
10582
10583 * valprint.c (generic_val_print_flags): Remove.
10584 (generic_val_print, generic_value_print): Update.
10585 (val_print_type_code_flags): Add original_value parameter.
10586
10587 2020-03-13 Tom Tromey <tom@tromey.com>
10588
10589 * valprint.c (generic_val_print): Update.
10590 (generic_value_print): Update.
10591 * valprint.c (generic_val_print_enum): Don't call
10592 val_print_scalar_formatted.
10593
10594 2020-03-13 Tom Tromey <tom@tromey.com>
10595
10596 * valprint.c (generic_value_print): Call generic_value_print_ptr.
10597 * valprint.c (generic_value_print_ptr): New function.
10598
10599 2020-03-13 Tom Tromey <tom@tromey.com>
10600
10601 * valprint.c (generic_value_print): Rewrite.
10602
10603 2020-03-13 Tom Tromey <tom@tromey.com>
10604
10605 * p-valprint.c (pascal_object_print_value_fields)
10606 (pascal_object_print_value): New functions.
10607
10608 2020-03-13 Tom Tromey <tom@tromey.com>
10609
10610 * p-valprint.c (pascal_value_print_inner): Rewrite.
10611
10612 2020-03-13 Tom Tromey <tom@tromey.com>
10613
10614 * f-valprint.c (f_value_print_innner): Rewrite.
10615
10616 2020-03-13 Tom Tromey <tom@tromey.com>
10617
10618 * m2-valprint.c (m2_print_unbounded_array): New overload.
10619 (m2_print_unbounded_array): Update.
10620 (m2_print_array_contents): Take a struct value.
10621 (m2_value_print_inner): Rewrite.
10622
10623 2020-03-13 Tom Tromey <tom@tromey.com>
10624
10625 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
10626 (d_value_print_inner): New function.
10627 * d-lang.h (d_value_print_inner): Declare.
10628 * d-lang.c (d_language_defn): Use d_value_print_inner.
10629
10630 2020-03-13 Tom Tromey <tom@tromey.com>
10631
10632 * go-valprint.c (go_value_print_inner): New function.
10633 * go-lang.h (go_value_print_inner): Declare.
10634 * go-lang.c (go_language_defn): Use go_value_print_inner.
10635
10636 2020-03-13 Tom Tromey <tom@tromey.com>
10637
10638 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
10639 API.
10640 (rust_val_print): Rewrite.
10641 (rust_value_print_inner): New function, from rust_val_print.
10642 (rust_language_defn): Use rust_value_print_inner.
10643
10644 2020-03-13 Tom Tromey <tom@tromey.com>
10645
10646 * ada-valprint.c (ada_value_print_inner): New function.
10647 * ada-lang.h (ada_value_print_inner): Declare.
10648 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
10649
10650 2020-03-13 Tom Tromey <tom@tromey.com>
10651
10652 * f-valprint.c (f_value_print_innner): New function.
10653 * f-lang.h (f_value_print_innner): Declare.
10654 * f-lang.c (f_language_defn): Use f_value_print_innner.
10655
10656 2020-03-13 Tom Tromey <tom@tromey.com>
10657
10658 * p-valprint.c (pascal_value_print_inner): New function.
10659 * p-lang.h (pascal_value_print_inner): Declare.
10660 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
10661
10662 2020-03-13 Tom Tromey <tom@tromey.com>
10663
10664 * m2-valprint.c (m2_value_print_inner): New function.
10665 * m2-lang.h (m2_value_print_inner): Declare.
10666 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
10667
10668 2020-03-13 Tom Tromey <tom@tromey.com>
10669
10670 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
10671 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
10672 * c-valprint.c (c_value_print_inner): New function.
10673 * c-lang.h (c_value_print_inner): Declare.
10674 * c-lang.c (c_language_defn, cplus_language_defn)
10675 (asm_language_defn, minimal_language_defn): Use
10676 c_value_print_inner.
10677
10678 2020-03-13 Tom Tromey <tom@tromey.com>
10679
10680 * p-valprint.c (pascal_object_print_value_fields): Now static.
10681 * p-lang.h (pascal_object_print_value_fields): Don't declare.
10682
10683 2020-03-13 Tom Tromey <tom@tromey.com>
10684
10685 * c-valprint.c (c_val_print_array): Simplify.
10686
10687 2020-03-13 Tom Tromey <tom@tromey.com>
10688
10689 * valprint.c (value_print_array_elements): New function.
10690 * valprint.h (value_print_array_elements): Declare.
10691
10692 2020-03-13 Tom Tromey <tom@tromey.com>
10693
10694 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
10695 * mips-tdep.c (mips_print_register): Use
10696 value_print_scalar_formatted.
10697
10698 2020-03-13 Tom Tromey <tom@tromey.com>
10699
10700 * valprint.h (value_print_scalar_formatted): Declare.
10701 * valprint.c (value_print_scalar_formatted): New function.
10702
10703 2020-03-13 Tom Tromey <tom@tromey.com>
10704
10705 * valprint.h (generic_value_print): Declare.
10706 * valprint.c (generic_value_print): New function.
10707
10708 2020-03-13 Tom Tromey <tom@tromey.com>
10709
10710 * valprint.c (do_val_print): Call la_value_print_inner, if
10711 available.
10712 * rust-lang.c (rust_language_defn): Update.
10713 * p-lang.c (pascal_language_defn): Update.
10714 * opencl-lang.c (opencl_language_defn): Update.
10715 * objc-lang.c (objc_language_defn): Update.
10716 * m2-lang.c (m2_language_defn): Update.
10717 * language.h (struct language_defn) <la_value_print_inner>: New
10718 member.
10719 * language.c (unknown_language_defn, auto_language_defn): Update.
10720 * go-lang.c (go_language_defn): Update.
10721 * f-lang.c (f_language_defn): Update.
10722 * d-lang.c (d_language_defn): Update.
10723 * c-lang.c (c_language_defn, cplus_language_defn)
10724 (asm_language_defn, minimal_language_defn): Update.
10725 * ada-lang.c (ada_language_defn): Update.
10726
10727 2020-03-13 Tom Tromey <tom@tromey.com>
10728
10729 * c-valprint.c (c_value_print): Use common_val_print.
10730
10731 2020-03-13 Tom Tromey <tom@tromey.com>
10732
10733 * cp-valprint.c (cp_print_static_field): Use common_val_print.
10734
10735 2020-03-13 Tom Tromey <tom@tromey.com>
10736
10737 * f-valprint.c (f77_print_array_1, f_val_print): Use
10738 common_val_print.
10739
10740 2020-03-13 Tom Tromey <tom@tromey.com>
10741
10742 * riscv-tdep.c (riscv_print_one_register_info): Use
10743 common_val_print.
10744
10745 2020-03-13 Tom Tromey <tom@tromey.com>
10746
10747 * mi/mi-main.c (output_register): Use common_val_print.
10748
10749 2020-03-13 Tom Tromey <tom@tromey.com>
10750
10751 * infcmd.c (default_print_one_register_info): Use
10752 common_val_print.
10753
10754 2020-03-13 Tom Tromey <tom@tromey.com>
10755
10756 * valprint.h (common_val_print_checked): Declare.
10757 * valprint.c (common_val_print_checked): New function.
10758 * stack.c (print_frame_arg): Use common_val_print_checked.
10759
10760 2020-03-13 Tom Tromey <tom@tromey.com>
10761
10762 * valprint.c (do_val_print): New function, from val_print.
10763 (val_print): Use do_val_print.
10764 (common_val_print): Use do_val_print.
10765
10766 2020-03-13 Tom Tromey <tom@tromey.com>
10767
10768 * valprint.c (value_print): Use scoped_value_mark.
10769
10770 2020-03-13 Tom de Vries <tdevries@suse.de>
10771
10772 PR symtab/25646
10773 * psymtab.c (partial_symtab::partial_symtab): Don't set
10774 globals_offset and statics_offset. Push element onto
10775 current_global_psymbols and current_static_psymbols stacks.
10776 (concat): New function.
10777 (end_psymtab_common): Set globals_offset and statics_offset. Pop
10778 element from current_global_psymbols and current_static_psymbols
10779 stacks. Concat popped elements to global_psymbols and
10780 static_symbols.
10781 (add_psymbol_to_list): Use current_global_psymbols and
10782 current_static_psymbols stacks.
10783 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
10784 current_static_psymbols fields.
10785
10786 2020-03-12 Christian Biesinger <cbiesinger@google.com>
10787
10788 * corelow.c (sniff_core_bfd): Remove.
10789 (class core_target) <m_core_vec>: Remove.
10790 (core_target::core_target): Update.
10791 (core_file_fns): Remove.
10792 (deprecated_add_core_fns): Remove.
10793 (default_core_sniffer): Remove.
10794 (sniff_core_bfd): Remove.
10795 (default_check_format): Remove.
10796 (gdb_check_format): Remove.
10797 (core_target_open): Update.
10798 (core_target::get_core_register_section): Update.
10799 (get_core_registers_cb): Update.
10800 (core_target::fetch_registers): Update.
10801 * gdbcore.h (struct core_fns): Remove.
10802 (deprecated_add_core_fns): Remove.
10803 (default_core_sniffer): Remove.
10804 (default_check_format): Remove.
10805
10806 2020-03-12 Tom Tromey <tom@tromey.com>
10807
10808 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
10809 CORE_ADDR.
10810 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
10811
10812 2020-03-12 Tom Tromey <tom@tromey.com>
10813
10814 * remote.c (remote_target::download_tracepoint)
10815 (remote_target::enable_tracepoint)
10816 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
10817 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
10818 sprintf_vma.
10819
10820 2020-03-12 Tom Tromey <tom@tromey.com>
10821
10822 * symfile-mem.c: Update CORE_ADDR size assert.
10823
10824 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
10825
10826 * selftest.m4: Move to gdbsupport/.
10827 * acinclude.m4: Update path to selftest.m4.
10828
10829 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
10830
10831 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
10832 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
10833 gdbarch-selfselftests.c and selftest-arch.c.
10834 (SUBDIR_UNITTESTS_OBS): Rename to...
10835 (SELFTESTS_OBS): ... this.
10836 (COMMON_SFILES): Remove disasm-selftests.c and
10837 gdbarch-selftests.c.
10838 * configure.ac: Don't add selftest-arch.{c,o} to
10839 CONFIG_{SRCS,OBS}.
10840 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
10841 preprocessor conditions.
10842
10843 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
10844
10845 * configure.ac: Don't source bfd/development.sh.
10846 * selftest.m4: Modify comment.
10847 * configure: Re-generate.
10848
10849 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
10850
10851 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
10852 not "true" or "false".
10853 * configure: Re-generate.
10854
10855 2020-03-12 Christian Biesinger <cbiesinger@google.com>
10856
10857 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
10858 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
10859 renamed to arm_nbsd_supply_gregset.
10860 (fetch_register): Update to call arm_nbsd_supply_gregset.
10861 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
10862 (arm_netbsd_nat_target::fetch_registers): Update.
10863 (fetch_elfcore_registers): Removed.
10864 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
10865 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
10866 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
10867 not require NetBSD system headers.
10868 (arm_nbsd_regset): New struct.
10869 (arm_nbsd_iterate_over_regset_sections): New function.
10870 (arm_netbsd_init_abi_common): Updated to call
10871 set_gdbarch_iterate_over_regset_sections.
10872 * arm-nbsd-tdep.h: New file.
10873
10874 2020-03-11 Kevin Buettner <kevinb@redhat.com>
10875
10876 * symtab.c (find_pc_sect_line): Add check which prevents infinite
10877 recursion.
10878
10879 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
10880
10881 * configure: Re-generate.
10882
10883 2020-03-11 Tom Tromey <tromey@adacore.com>
10884
10885 * ada-typeprint.c (print_choices): Fix comment.
10886
10887 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
10888
10889 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
10890 previous item in the list, when the list has no items.
10891
10892 2020-03-11 Tom de Vries <tdevries@suse.de>
10893
10894 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
10895 PROP_LOCLIST handling code.
10896
10897 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
10898
10899 * buildsym-legacy.c (record_line): Pass extra parameter to
10900 record_line.
10901 * buildsym.c (buildsym_compunit::record_line): Take an extra
10902 parameter, reduce duplication in the line table, and record the
10903 is_stmt flag in the line table.
10904 * buildsym.h (buildsym_compunit::record_line): Add extra
10905 parameter.
10906 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
10907 non-statement lines.
10908 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
10909 this to the symtab builder.
10910 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
10911 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
10912 through to dwarf_record_line_1.
10913 * infrun.c (process_event_stop_test): When stepping, don't stop at
10914 a non-statement instruction, and only refresh the step info when
10915 we land in the middle of a line's range. Also add an extra
10916 comment.
10917 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
10918 field.
10919 * record-btrace.c (btrace_find_line_range): Only record lines
10920 marked as is-statement.
10921 * stack.c (frame_show_address): Show the frame address if we are
10922 in a non-statement sal.
10923 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
10924 (maintenance_print_one_line_table): Print a header for the is_stmt
10925 column, and include is_stmt information in the output.
10926 * symtab.c (find_pc_sect_line): Find lines marked as statements in
10927 preference to non-statements.
10928 (find_pcs_for_symtab_line): Prefer is-statement entries.
10929 (find_line_common): Likewise.
10930 * symtab.h (struct linetable_entry): Add is_stmt field.
10931 (struct symtab_and_line): Likewise.
10932 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
10933 arranging the line table.
10934
10935 2020-03-07 Tom de Vries <tdevries@suse.de>
10936
10937 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
10938 DIE.
10939
10940 2020-03-07 Tom Tromey <tom@tromey.com>
10941
10942 * valops.c (value_literal_complex): Remove obsolete comment.
10943 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
10944 comment.
10945
10946 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
10947
10948 * infrun.h: Forward-declare thread_info.
10949 (set_step_info): Add thread_info parameter, add doc.
10950 * infrun.c (set_step_info): Add thread_info parameter, move doc
10951 to header.
10952 * infrun.c (process_event_stop_test): Pass thread to
10953 set_step_info call.
10954 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
10955 set_step_info.
10956 (prepare_one_step): Add thread_info parameter, pass it to
10957 set_step_frame and prepare_one_step (recursive) call.
10958 (step_1): Pass thread to prepare_one_step call.
10959 (step_command_fsm::should_stop): Pass thread to
10960 prepare_one_step.
10961 (until_next_fsm): Pass thread to set_step_frame call.
10962 (finish_command): Pass thread to set_step_info call.
10963
10964 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
10965
10966 * windows-tdep.c (windows_solib_create_inferior_hook):
10967 Check if inferior is running.
10968
10969 2020-03-06 Tom de Vries <tdevries@suse.de>
10970
10971 * NEWS: Fix "the the".
10972 * ctfread.c: Same.
10973
10974 2020-03-06 Tom de Vries <tdevries@suse.de>
10975
10976 * psymtab.c (psymtab_to_symtab): Don't print "done.".
10977
10978 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10979
10980 * .dir-locals.el: Add a comment referencing the other copies of
10981 this file.
10982
10983 2020-03-05 John Baldwin <jhb@FreeBSD.org>
10984
10985 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
10986 psargs.
10987
10988 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10989
10990 * .gitattributes: New file.
10991
10992 2020-03-04 Tom Tromey <tom@tromey.com>
10993
10994 * symmisc.c (print_symbol_bcache_statistics)
10995 (print_objfile_statistics): Update.
10996 * symfile.c (allocate_symtab): Use intern.
10997 * psymtab.c (partial_symtab::partial_symtab): Use intern.
10998 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
10999 macro_cache>: Remove.
11000 <string_cache>: New member.
11001 (struct objfile) <intern>: New methods.
11002 * elfread.c (elf_symtab_read): Use intern.
11003 * dwarf2/read.c (fixup_go_packaging): Intern package name.
11004 (dwarf2_compute_name, dwarf2_physname)
11005 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
11006 names.
11007 (guess_partial_die_structure_name): Update.
11008 (partial_die_info::fixup): Intern name.
11009 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
11010 name.
11011 (dwarf2_name): Intern name. Update.
11012 * buildsym.c (buildsym_compunit::get_macro_table): Use
11013 string_cache.
11014
11015 2020-03-04 Tom Tromey <tom@tromey.com>
11016
11017 * jit.c (bfd_open_from_target_memory): Make "target" const.
11018 * corefile.c (gnutarget): Now const.
11019 * gdbcore.h (gnutarget): Now const.
11020
11021 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
11022
11023 * NEWS: Mention support for WOW64 processes.
11024 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
11025 (amd64_windows_segment_register_p): Remove static.
11026 (_initialize_amd64_windows_nat): Update.
11027 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
11028 * i386-windows-nat.c (context_offset): Update.
11029 (i386_mappings): Rename and remove static.
11030 (i386_windows_segment_register_p): Remove static.
11031 (_initialize_i386_windows_nat): Update.
11032 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
11033 (STATUS_WX86_SINGLE_STEP): New macro.
11034 (EnumProcessModulesEx): New macro.
11035 (Wow64SuspendThread): New macro.
11036 (Wow64GetThreadContext): New macro.
11037 (Wow64SetThreadContext): New macro.
11038 (Wow64GetThreadSelectorEntry): New macro.
11039 (windows_set_context_register_offsets): Add static.
11040 (windows_set_segment_register_p): Likewise.
11041 (windows_add_thread): Adapt for WOW64 processes.
11042 (windows_fetch_one_register): Likewise.
11043 (windows_nat_target::fetch_registers): Likewise.
11044 (windows_store_one_register): Likewise.
11045 (display_selector): Likewise.
11046 (display_selectors): Likewise.
11047 (handle_exception): Likewise.
11048 (windows_continue): Likewise.
11049 (windows_nat_target::resume): Likewise.
11050 (windows_add_all_dlls): Likewise.
11051 (do_initial_windows_stuff): Likewise.
11052 (windows_nat_target::attach): Likewise.
11053 (windows_get_exec_module_filename): Likewise.
11054 (windows_nat_target::create_inferior): Likewise.
11055 (windows_xfer_siginfo): Likewise.
11056 (_initialize_loadable): Initialize Wow64SuspendThread,
11057 Wow64GetThreadContext, Wow64SetThreadContext,
11058 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
11059 * windows-nat.h (windows_set_context_register_offsets):
11060 Remove declaration.
11061 (windows_set_segment_register_p): Likewise.
11062 (i386_windows_segment_register_p): Add declaration.
11063 (amd64_windows_segment_register_p): Likewise.
11064
11065 2020-03-04 Luis Machado <luis.machado@linaro.org>
11066
11067 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
11068 in "info registers" for AArch64/ARM.
11069
11070 The change caused "info registers" to not print GPR's.
11071
11072 gdb/ChangeLog:
11073
11074 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
11075
11076 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
11077 when reg->group is empty and reggroup is not.
11078
11079 2020-03-03 Tom Tromey <tromey@adacore.com>
11080
11081 * dwarf2/frame.c (struct dwarf2_frame_cache)
11082 <checked_tailcall_bottom, entry_cfa_sp_offset,
11083 entry_cfa_sp_offset_p>: Remove members.
11084 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
11085 (dwarf2_frame_prev_register): Don't call
11086 dwarf2_tailcall_sniffer_first.
11087 (dwarf2_append_unwinders): Don't append tailcall unwinder.
11088 * frame-unwind.c (add_unwinder): New fuction.
11089 (frame_unwind_init): Use it. Add tailcall unwinder.
11090
11091 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
11092 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11093
11094 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
11095 value should be printed as true.
11096
11097 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
11098
11099 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
11100 (windows_init_abi): Set and use windows_so_ops.
11101
11102 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
11103
11104 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
11105 when verifying if dealing with a convenience variable.
11106
11107 2020-03-03 Luis Machado <luis.machado@linaro.org>
11108
11109 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
11110
11111 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11112
11113 * infrun.c (gdbarch_supports_displaced_stepping): New.
11114 (use_displaced_stepping): Break up conditions in smaller pieces.
11115 Use gdbarch_supports_displaced_stepping.
11116 (displaced_step_prepare_throw): Use
11117 gdbarch_supports_displaced_stepping.
11118
11119 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
11120
11121 * NEWS: Mention new behaviour of the history filename.
11122 * top.c (write_history_p): Add comment.
11123 (show_write_history_p): Add header comment, give a different
11124 message when history writing is on, but the history filename is
11125 empty.
11126 (history_filename): Add comment.
11127 (history_filename_empty): New function.
11128 (show_history_filename): Add header comment, give a different
11129 message when the filename is empty.
11130 (init_history): Compare history_filename against nullptr, and only
11131 read history if the filename is not empty.
11132 (set_history_filename): Add header comment, and only make
11133 non-empty filenames absolute.
11134 (init_main): Make the filename argument to 'set history filename'
11135 optional.
11136
11137 2020-03-02 Christian Biesinger <cbiesinger@google.com>
11138
11139 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
11140 (arm_supply_vfpregset): ...this, and update to use VFP registers.
11141 (fetch_fp_register): Update.
11142 (fetch_fp_regs): Update.
11143 (store_fp_register): Update.
11144 (store_fp_regs): Update.
11145 (arm_netbsd_nat_target::read_description): New function.
11146 (fetch_elfcore_registers): Update.
11147
11148 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
11149
11150 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
11151 general_thread if the stop reply is missing a thread-id.
11152 (remote_target::process_stop_reply): Use the first non-exited
11153 thread if the target didn't pass a thread-id.
11154 * infrun.c (do_target_wait): Move call to
11155 switch_to_inferior_no_thread to ....
11156 (do_target_wait_1): ... here.
11157
11158 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
11159
11160 * debuginfod-support.c: Include defs.h first.
11161
11162 2020-02-28 Tom de Vries <tdevries@suse.de>
11163
11164 * symfile.c (set_initial_language): Use default language for lookup.
11165
11166 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
11167
11168 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
11169 reader variable, pass `this` to read_cutu_die_from_dwo.
11170
11171 2020-02-27 Aaron Merey <amerey@redhat.com>
11172
11173 * source.c (open_source_file): Check for nullptr when computing
11174 srcpath.
11175
11176 2020-02-27 Tom Tromey <tromey@adacore.com>
11177
11178 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
11179 member.
11180 (dwarf2_add_field): Don't update nfields.
11181 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
11182
11183 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11184
11185 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
11186 abs.
11187
11188 2020-02-26 Tom Tromey <tom@tromey.com>
11189
11190 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
11191 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
11192 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
11193 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
11194 per_cu_data.
11195
11196 2020-02-26 Tom Tromey <tom@tromey.com>
11197
11198 * dwarf2/index-write.c (psym_index_map): Change type.
11199 (add_address_entry_worker, write_one_signatured_type)
11200 (recursively_count_psymbols, recursively_write_psymbols)
11201 (class debug_names, psyms_seen_size, write_gdbindex)
11202 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
11203
11204 2020-02-26 Aaron Merey <amerey@redhat.com>
11205
11206 * Makefile.in: Handle optional debuginfod support.
11207 * NEWS: Update.
11208 * README: Add --with-debuginfod summary.
11209 * config.in: Regenerate.
11210 * configure: Regenerate.
11211 * configure.ac: Handle optional debuginfod support.
11212 * debuginfod-support.c: debuginfod helper functions.
11213 * debuginfod-support.h: Ditto.
11214 * doc/gdb.texinfo: Add --with-debuginfod to configure options
11215 summary.
11216 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
11217 when a dwz file cannot be found.
11218 * elfread.c (elf_symfile_read): Query debuginfod servers when a
11219 debuginfo file cannot be found.
11220 * source.c (open_source_file): Query debuginfod servers when a
11221 source file cannot be found.
11222 * top.c (print_gdb_configuration): Include
11223 --{with,without}-debuginfod in the output.
11224
11225 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
11226
11227 * thread.c (thr_try_catch_cmd): Print thread name.
11228
11229 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
11230
11231 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
11232 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
11233 dwarf2_fetch_die_type_sect_off): Move to...
11234 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
11235 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
11236 dwarf2_fetch_die_type_sect_off): ... here.
11237 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
11238 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
11239 dwarf2_fetch_die_type_sect_off): Move doc to header file.
11240
11241 2020-02-26 Tom de Vries <tdevries@suse.de>
11242
11243 PR gdb/25603
11244 * symfile.c (set_initial_language): Exit-early if
11245 language_mode == language_mode_manual.
11246
11247 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
11248
11249 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
11250 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
11251 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
11252
11253 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
11254
11255 * gdbtypes.c (create_array_type_with_stride): Handle negative
11256 array strides.
11257 * valarith.c (value_subscripted_rvalue): Likewise.
11258
11259 2020-02-25 Luis Machado <luis.machado@linaro.org>
11260
11261 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
11262
11263 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
11264
11265 * loc.h (dwarf2_get_die_type): Move to...
11266 * read.h (dwarf2_get_die_type): ... here.
11267 * read.c (dwarf2_get_die_type): Move doc to header.
11268
11269 2020-02-25 Joel Brobecker <brobecker@adacore.com>
11270
11271 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
11272 'gnulib/Makefile.in' to the list.
11273
11274 2020-02-24 Tom Tromey <tom@tromey.com>
11275
11276 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
11277 Remove.
11278 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
11279 XOBNEWVEC.
11280
11281 2020-02-24 Tom Tromey <tom@tromey.com>
11282
11283 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
11284 New method.
11285 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
11286 (dw2_do_instantiate_symtab, dw2_get_file_names)
11287 (build_type_psymtab_dependencies, load_full_type_unit): Update.
11288
11289 2020-02-24 Tom Tromey <tom@tromey.com>
11290
11291 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
11292 make_scoped_restore.
11293 (dwarf2_psymtab::read_symtab): Don't clear
11294 reading_partial_symbols.
11295
11296 2020-02-24 Tom de Vries <tdevries@suse.de>
11297
11298 PR gdb/25592
11299 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
11300
11301 2020-02-24 Tom de Vries <tdevries@suse.de>
11302
11303 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
11304 commands layout next/prev/regs.
11305
11306 2020-02-22 Tom Tromey <tom@tromey.com>
11307
11308 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
11309 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
11310
11311 2020-02-22 Tom Tromey <tom@tromey.com>
11312
11313 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
11314
11315 2020-02-22 Tom Tromey <tom@tromey.com>
11316
11317 * tui/tui-win.c (_initialize_tui_win): Add usage text.
11318 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
11319 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
11320 * tui/tui.c (_initialize_tui): Add usage text.
11321
11322 2020-02-22 Tom Tromey <tom@tromey.com>
11323
11324 * tui/tui-win.c (tui_set_focus_command)
11325 (tui_set_win_height_command): Use error_no_arg.
11326 (_initialize_tui_win): Update help text.
11327 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
11328
11329 2020-02-22 Tom Tromey <tom@tromey.com>
11330
11331 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
11332 * tui/tui-disasm.h (struct tui_disasm_window)
11333 <display_start_addr>: Declare.
11334 * tui/tui-source.h (struct tui_source_window)
11335 <display_start_addr>: Declare.
11336 * tui/tui-winsource.h (struct tui_source_window_base)
11337 <show_source_line, display_start_addr>: New methods.
11338 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
11339 Rename and move to protected section.
11340 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
11341 (tui_source_window_base::do_erase_source_content): Update.
11342 (tui_source_window_base::show_source_line): Now a method.
11343 (tui_source_window_base::show_source_content)
11344 (tui_source_window_base::tui_source_window_base)
11345 (tui_source_window_base::rerender)
11346 (tui_source_window_base::refill)
11347 (tui_source_window_base::do_scroll_horizontal)
11348 (tui_source_window_base::set_is_exec_point_at)
11349 (tui_source_window_base::update_breakpoint_info)
11350 (tui_source_window_base::update_exec_info): Update.
11351 * tui/tui-source.c (tui_source_window::set_contents)
11352 (tui_source_window::showing_source_p)
11353 (tui_source_window::do_scroll_vertical)
11354 (tui_source_window::location_matches_p)
11355 (tui_source_window::line_is_displayed): Update.
11356 (tui_source_window::display_start_addr): New method.
11357 * tui/tui-disasm.c (tui_disasm_window::set_contents)
11358 (tui_disasm_window::do_scroll_vertical)
11359 (tui_disasm_window::location_matches_p): Update.
11360 (tui_disasm_window::display_start_addr): New method.
11361
11362 2020-02-22 Tom Tromey <tom@tromey.com>
11363
11364 * NEWS: Add entry for gdb.register_window_type.
11365 * tui/tui-layout.h (window_factory): New typedef.
11366 (tui_register_window): Declare.
11367 * tui/tui-layout.c (saved_tui_windows): New global.
11368 (tui_apply_current_layout): Use it.
11369 (tui_register_window): New function.
11370 * python/python.c (do_start_initialization): Call
11371 gdbpy_initialize_tui.
11372 (python_GdbMethods): Add "register_window_type" function.
11373 * python/python-internal.h (gdbpy_register_tui_window)
11374 (gdbpy_initialize_tui): Declare.
11375 * python/py-tui.c: New file.
11376 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
11377
11378 2020-02-22 Tom Tromey <tom@tromey.com>
11379
11380 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
11381
11382 2020-02-22 Tom Tromey <tom@tromey.com>
11383
11384 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
11385 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
11386 * tui/tui-data.c (tui_set_win_with_focus): Remove.
11387 (tui_set_win_focus_to): Move from tui-win.c.
11388
11389 2020-02-22 Tom Tromey <tom@tromey.com>
11390
11391 * tui/tui-layout.c (make_standard_window, get_locator_window): New
11392 functions.
11393 (known_window_types): New global.
11394 (tui_get_window_by_name): Reimplement.
11395 (initialize_known_windows): New function.
11396 (validate_window_name): Rewrite.
11397 (_initialize_tui_layout): Call initialize_known_windows.
11398
11399 2020-02-22 Tom Tromey <tom@tromey.com>
11400
11401 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
11402 Remove constants.
11403 * tui/tui-winsource.h (struct tui_source_window_base)
11404 <tui_source_window_base>: Remove parameter.
11405 * tui/tui-winsource.c
11406 (tui_source_window_base::tui_source_window_base): Remove
11407 parameter.
11408 (tui_source_window_base::refill): Update.
11409 * tui/tui-stack.h (struct tui_locator_window)
11410 <tui_locator_window>: Update.
11411 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
11412 Default the constructor.
11413 * tui/tui-regs.h (struct tui_data_item_window)
11414 <tui_data_item_window>: Default the constructor.
11415 (struct tui_data_window) <tui_data_window>: Likewise.
11416 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
11417 Default the constructor.
11418 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
11419 Default the constructor.
11420 <type>: Remove.
11421 (struct tui_win_info) <tui_win_info>: Default the constructor.
11422 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
11423 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
11424 Default the constructor.
11425
11426 2020-02-22 Tom Tromey <tom@tromey.com>
11427
11428 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
11429 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
11430 * tui/tui-win.c (tui_resize_all): Don't call
11431 tui_delete_invisible_windows.
11432 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
11433 done.
11434 (tui_set_layout): Update.
11435 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
11436 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
11437 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
11438
11439 2020-02-22 Tom Tromey <tom@tromey.com>
11440
11441 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
11442 correctly.
11443
11444 2020-02-22 Tom Tromey <tom@tromey.com>
11445
11446 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
11447
11448 2020-02-22 Tom Tromey <tom@tromey.com>
11449
11450 * tui/tui-winsource.h (struct tui_source_window_iterator)
11451 <inner_iterator>: New etytypedef.
11452 <tui_source_window_iterator>: Take "end" parameter.
11453 <tui_source_window_iterator>: Take iterator.
11454 <operator*, advance>: Update.
11455 <m_iter>: Change type.
11456 <m_end>: New field.
11457 (struct tui_source_windows) <begin, end>: Update.
11458 * tui/tui-layout.c (tui_windows): New global.
11459 (tui_apply_current_layout): Clear tui_windows.
11460 (tui_layout_window::apply): Update tui_windows.
11461 * tui/tui-data.h (tui_windows): Declare.
11462 (all_tui_windows): Now inline function.
11463 (class tui_window_iterator, struct all_tui_windows): Remove.
11464
11465 2020-02-22 Tom Tromey <tom@tromey.com>
11466
11467 PR tui/17850:
11468 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
11469 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
11470 "height" argument.
11471 (class tui_layout_window) <get_sizes>: Likewise.
11472 (class tui_layout_split) <tui_layout_split>: Add "vertical"
11473 argument.
11474 <get_sizes>: Add "height" argument.
11475 <m_vertical>: New field.
11476 * tui/tui-layout.c (tui_layout_split::clone): Update.
11477 (tui_layout_split::get_sizes): Add "height" argument.
11478 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
11479 (tui_new_layout_command): Parse "-horizontal".
11480 (_initialize_tui_layout): Update help string.
11481 (tui_layout_split::specification): Add "-horizontal" when needed.
11482 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
11483 argument.
11484 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
11485 New methods.
11486
11487 2020-02-22 Tom Tromey <tom@tromey.com>
11488
11489 * tui/tui-layout.h (enum tui_adjust_result): New.
11490 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
11491 (class tui_layout_window) <adjust_size>: Return
11492 tui_adjust_result. Rewrite.
11493 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
11494 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
11495
11496 2020-02-22 Tom Tromey <tom@tromey.com>
11497
11498 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
11499 parameter and return types.
11500 (class tui_layout_base) <specification>: Add "depth".
11501 (class tui_layout_window) <specification>: Add "depth".
11502 (class tui_layout_split) <specification>: Add "depth".
11503 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
11504 and return types.
11505 (tui_new_layout_command): Parse sub-layouts.
11506 (_initialize_tui_layout): Update help string.
11507 (tui_layout_window::specification): Add "depth".
11508 (add_layout_command): Update.
11509
11510 2020-02-22 Tom Tromey <tom@tromey.com>
11511
11512 * NEWS: Add "tui new-layout" item.
11513 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
11514 Add new-layout command to help text.
11515 (validate_window_name): New function.
11516 (tui_new_layout_command): New function.
11517 (_initialize_tui_layout): Register "new-layout".
11518 (tui_layout_window::specification): New method.
11519 (tui_layout_window::specification): New method.
11520 * tui/tui-layout.h (class tui_layout_base) <specification>: New
11521 method.
11522 (class tui_layout_window) <specification>: New method.
11523 (class tui_layout_split) <specification>: New method.
11524
11525 2020-02-22 Tom Tromey <tom@tromey.com>
11526
11527 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
11528 * tui/tui-win.c (window_name_completer): Update comment.
11529 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
11530 Declare method.
11531 (class tui_layout_window) <replace_window>: Likewise.
11532 (class tui_layout_split) <replace_window>: Likewise.
11533 (tui_set_layout): Don't declare.
11534 (tui_set_initial_layout): Declare function.
11535 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
11536 (asm_regs_layout): New globals.
11537 (tui_current_layout, show_layout): Remove.
11538 (tui_set_layout, tui_add_win_to_layout): Rewrite.
11539 (find_layout, tui_apply_layout): New function.
11540 (layout_completer): Remove.
11541 (tui_next_layout): Reimplement.
11542 (tui_next_layout_command): New function.
11543 (tui_set_initial_layout, tui_prev_layout_command): New functions.
11544 (tui_regs_layout): Reimplement.
11545 (tui_regs_layout_command): New function.
11546 (extract_display_start_addr): Rewrite.
11547 (next_layout, prev_layout): Remove.
11548 (tui_layout_window::replace_window): New method.
11549 (tui_layout_split::replace_window): New method.
11550 (destroy_layout): New function.
11551 (layout_list): New global.
11552 (add_layout_command): New function.
11553 (initialize_layouts): Update.
11554 (tui_layout_command): New function.
11555 (_initialize_tui_layout): Install "layout" commands.
11556 * tui/tui-data.h (enum tui_layout_type): Remove.
11557 (tui_current_layout): Don't declare.
11558
11559 2020-02-22 Tom Tromey <tom@tromey.com>
11560
11561 * tui/tui-regs.c (tui_reg_layout): Remove.
11562 (tui_reg_command): Use tui_regs_layout.
11563 * tui/tui-layout.h (tui_reg_command): Declare.
11564 * tui/tui-layout.c (tui_reg_command): New function.
11565
11566 2020-02-22 Tom Tromey <tom@tromey.com>
11567
11568 * tui/tui.c (tui_rl_delete_other_windows): Call
11569 tui_remove_some_windows.
11570 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
11571 Declare method.
11572 (class tui_layout_window) <remove_windows>: New method.
11573 (class tui_layout_split) <remove_windows>: Declare.
11574 (tui_remove_some_windows): Declare.
11575 * tui/tui-layout.c (tui_remove_some_windows): New function.
11576 (tui_layout_split::remove_windows): New method.
11577
11578 2020-02-22 Tom Tromey <tom@tromey.com>
11579
11580 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
11581 * tui/tui-layout.h (tui_next_layout): Declare.
11582 * tui/tui-layout.c (tui_next_layout): New function.
11583
11584 2020-02-22 Tom Tromey <tom@tromey.com>
11585
11586 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
11587 correct coordinates.
11588
11589 2020-02-22 Tom Tromey <tom@tromey.com>
11590
11591 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
11592 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
11593 DATA_WIN case.
11594
11595 2020-02-22 Tom Tromey <tom@tromey.com>
11596
11597 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
11598 TUI_DISASM_WIN, not tui_win_list.
11599
11600 2020-02-22 Tom Tromey <tom@tromey.com>
11601
11602 * valprint.c (generic_val_print_enum_1)
11603 (val_print_type_code_flags): Style member names.
11604 * rust-lang.c (val_print_struct, rust_print_enum)
11605 (rust_print_struct_def, rust_internal_print_type): Style member
11606 names.
11607 * p-valprint.c (pascal_object_print_value_fields): Style member
11608 names. Only call fprintf_symbol_filtered for static members.
11609 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
11610 * f-valprint.c (f_val_print): Style member names.
11611 * f-typeprint.c (f_type_print_base): Style member names.
11612 * cp-valprint.c (cp_print_value_fields): Style member names. Only
11613 call fprintf_symbol_filtered for static members.
11614 (cp_print_class_member): Style member names.
11615 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
11616 member names.
11617 * ada-valprint.c (ada_print_scalar): Style enum names.
11618 (ada_val_print_enum): Likewise.
11619 * ada-typeprint.c (print_enum_type): Style enum names.
11620
11621 2020-02-21 Tom Tromey <tom@tromey.com>
11622
11623 * psympriv.h (struct partial_symtab): Update comment.
11624
11625 2020-02-21 Tom Tromey <tromey@adacore.com>
11626
11627 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
11628 type is CORE_ADDR.
11629
11630 2020-02-21 Tom de Vries <tdevries@suse.de>
11631
11632 PR gdb/25534
11633 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
11634 if dependencies[i]->user != NULL.
11635
11636 2020-02-21 Ali Tamur <tamur@google.com>
11637
11638 * dwarf2/read.c (dwarf2_name): Add null check.
11639
11640 2020-02-20 Tom Tromey <tom@tromey.com>
11641
11642 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
11643 ">=", in binary search.
11644 (dwarf2_find_containing_comp_unit): New overload.
11645 (run_test): New self-test.
11646 (_initialize_dwarf2_read): Register new test.
11647
11648 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
11649
11650 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
11651 * riscv-tdep.h: Likewise.
11652 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
11653 rv32-only CSR.
11654 * features/riscv/64bit-csr.xml: Regenerated.
11655
11656 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
11657 Tom Tromey <tom@tromey.com>
11658
11659 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
11660 of 'fputc_unfiltered'.
11661 (putchar_unfiltered): Call 'fputc_unfiltered'.
11662 (fputc_unfiltered): Call 'fputs_unfiltered'.
11663
11664 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
11665
11666 * config.in: Regenerate.
11667 * configure: Regenerate.
11668 * configure.ac: Add --with-python-libdir option.
11669 * main.c: Use WITH_PYTHON_LIBDIR.
11670
11671 2020-02-19 Tom Tromey <tom@tromey.com>
11672
11673 * symtab.c (general_symbol_info::compute_and_set_names): Use
11674 obstack_strndup. Simplify call to symbol_set_demangled_name.
11675
11676 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
11677
11678 * dwarf2/read.c (allocate_signatured_type_table,
11679 allocate_dwo_unit_table, allocate_type_unit_groups_table,
11680 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
11681 Remove objfile parameter, update all callers.
11682
11683 2020-02-19 Doug Evans <dje@google.com>
11684
11685 PR rust/25535
11686 * rust-lang.c (rust_print_enum): Apply embedded_offset to
11687 rust_enum_variant calculation.
11688
11689 2020-02-19 Tom Tromey <tromey@adacore.com>
11690
11691 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
11692
11693 2020-02-19 Tom Tromey <tromey@adacore.com>
11694
11695 * ada-lang.c (cache_symbol): Use obstack_strdup.
11696
11697 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
11698
11699 * configure: Regenerate.
11700
11701 2020-02-19 Tom Tromey <tromey@adacore.com>
11702
11703 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
11704 NULL check.
11705
11706 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
11707
11708 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
11709
11710 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
11711
11712 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
11713 if GDBSERVER is not defined.
11714 (riscv_tdesc_cache): Likewise, also store const target_desc.
11715 (STATIC_IN_GDB): Define.
11716 (riscv_create_target_description): Update declaration with
11717 STATIC_IN_GDB.
11718 (riscv_lookup_target_description): New function, only define if
11719 GDBSERVER is not defined.
11720 * arch/riscv.h (riscv_create_target_description): Declare only
11721 when GDBSERVER is defined.
11722 (riscv_lookup_target_description): New declaration when GDBSERVER
11723 is not defined.
11724 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
11725 (riscv_linux_read_features): ...this, and return
11726 riscv_gdbarch_features instead of target_desc.
11727 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
11728 (riscv_linux_read_description): Rename to...
11729 (riscv_linux_read_features): ...this.
11730 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
11731 Update to use riscv_gdbarch_features and
11732 riscv_lookup_target_description.
11733 * riscv-tdep.c (riscv_find_default_target_description): Use
11734 riscv_lookup_target_description instead of
11735 riscv_create_target_description.
11736
11737 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
11738
11739 * valprint.c (generic_val_print_enum_1): When printing a flag
11740 enum with value 0 and there is no enumerator with value 0, print
11741 just "0" instead of "(unknown: 0x0)".
11742
11743 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
11744
11745 * valprint.c (generic_val_print_enum_1): Print unknown part of
11746 flag enum in hex.
11747
11748 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
11749
11750 * dwarf2/read.c (update_enumeration_type_from_children): Allow
11751 flag enums to contain duplicate enumerators.
11752 * valprint.c (generic_val_print_enum_1): Update comment.
11753
11754 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
11755
11756 * dwarf2/read.c: Include "count-one-bits.h".
11757 (update_enumeration_type_from_children): If an enumerator has
11758 multiple bits set, don't treat the enumeration as a "flag enum".
11759 * valprint.c (generic_val_print_enum_1): Assert that enumerators
11760 of flag enums have 0 or 1 bit set.
11761
11762 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
11763
11764 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
11765 conversion.
11766 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11767 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
11768 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11769 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
11770 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11771
11772 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
11773
11774 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
11775
11776 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
11777
11778 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
11779 displaced_step_closure_up.
11780 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
11781 (struct displaced_step_closure_up):
11782 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11783 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
11784 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
11785 Likewise.
11786 * gdbarch.sh (displaced_step_copy_insn): Likewise.
11787 * gdbarch.c, gdbarch.h: Re-generate.
11788 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
11789 displaced_step_closure_up.
11790 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11791 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
11792 * infrun.h (displaced_step_closure_up): New type alias.
11793 (struct displaced_step_inferior_state) <step_closure>: Change
11794 type to displaced_step_closure_up.
11795 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
11796 displaced_step_closure_up.
11797 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11798
11799 2020-02-14 Tom Tromey <tom@tromey.com>
11800
11801 * minidebug.c (gnu_debug_key): New global.
11802 (find_separate_debug_file_in_section): Use it.
11803
11804 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
11805
11806 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
11807 std::unique_ptr.
11808 * gdbarch.c: Re-generate.
11809 * gdbarch.h: Re-generate.
11810 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
11811 change.
11812 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
11813 type to std::unique_ptr.
11814 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
11815 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11816 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
11817 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
11818 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
11819 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11820 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
11821 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
11822 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11823
11824 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
11825
11826 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
11827 std::unique_ptr.
11828 (displaced_step_clear): Rename to...
11829 (displaced_step_reset): ... this. Just call displaced->reset ().
11830 (displaced_step_clear_cleanup): Rename to...
11831 (displaced_step_reset_cleanup): ... this.
11832 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
11833 (displaced_step_fixup): Likewise.
11834 (resume_1): Likewise.
11835 (handle_inferior_event): Restore child's memory before calling
11836 displaced_step_fixup on the parent.
11837 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
11838 to std::unique_ptr.
11839 <step_closure>: Change type to std::unique_ptr.
11840
11841 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
11842
11843 * arm-tdep.c: Include count-one-bits.h.
11844 (cleanup_block_store_pc): Use count_one_bits.
11845 (cleanup_block_load_pc): Use count_one_bits.
11846 (arm_copy_block_xfer): Use count_one_bits.
11847 (thumb2_copy_block_xfer): Use count_one_bits.
11848 (thumb_copy_pop_pc_16bit): Use count_one_bits.
11849 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
11850 (thumb_get_next_pcs_raw): Use count_one_bits.
11851 (arm_get_next_pcs_raw): Use count_one_bits_l.
11852 * arch/arm.c (bitcount): Remove.
11853 * arch/arm.h (bitcount): Remove.
11854
11855 2020-02-14 Tom Tromey <tromey@adacore.com>
11856
11857 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
11858 Update.
11859 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
11860 * dwarf2/loc.c (call_site_find_chain_1): Return
11861 unique_xmalloc_ptr.
11862 (call_site_find_chain): Likewise.
11863
11864 2020-02-14 Richard Biener <rguenther@suse.de>
11865
11866 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
11867 on expression with division operators.
11868
11869 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11870
11871 * MAINTAINERS (Write After Approval): Adding myself.
11872
11873 2020-02-12 Tom Tromey <tom@tromey.com>
11874
11875 * event-loop.c (event_data, gdb_event, event_handler_func):
11876 Remove.
11877
11878 2020-02-12 Tom Tromey <tom@tromey.com>
11879
11880 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
11881 (dwarf2_frame_objfile_data): Add comment.
11882 (find_comp_unit, set_comp_unit): New functions.
11883 (dwarf2_frame_find_fde): Use find_comp_unit.
11884 (dwarf2_build_frame_info): Use set_comp_unit.
11885
11886 2020-02-12 Tom Tromey <tom@tromey.com>
11887
11888 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
11889 (comp_unit): Don't initialize objfile.
11890 (execute_cfa_program): Add text_offset parameter.
11891 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
11892 (dwarf2_frame_cache): Update.
11893 (dwarf2_build_frame_info): Don't set "objfile" member.
11894
11895 2020-02-12 Tom Tromey <tom@tromey.com>
11896
11897 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
11898 (decode_frame_entry): Likewise.
11899 (dwarf2_build_frame_info): Update.
11900
11901 2020-02-12 Tom Tromey <tom@tromey.com>
11902
11903 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
11904 (decode_frame_entry_1): Use the comp_unit obstack.
11905
11906 2020-02-12 Tom Tromey <tom@tromey.com>
11907
11908 * dwarf2/frame.c (struct comp_unit): Add initializers and
11909 constructor.
11910 (dwarf2_frame_objfile_data): Store a comp_unit.
11911 (dwarf2_frame_find_fde): Update.
11912 (dwarf2_build_frame_info): Use "new".
11913
11914 2020-02-12 Tom Tromey <tom@tromey.com>
11915
11916 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
11917 (dwarf2_fde_table): Typedef for std::vector.
11918 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
11919 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
11920 (decode_frame_entry): Update.
11921 (dwarf2_build_frame_info): Use "new".
11922
11923 2020-02-12 Christian Biesinger <cbiesinger@google.com>
11924
11925 * arm-tdep.c (arm_gdbarch_init): Update.
11926 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
11927 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
11928 have_neon, is_m>: Change to bool.
11929
11930 2020-02-12 Christian Biesinger <cbiesinger@google.com>
11931
11932 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
11933
11934 2020-02-12 Tom Tromey <tom@tromey.com>
11935
11936 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
11937
11938 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
11939
11940 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
11941 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
11942
11943 2020-02-11 Tom Tromey <tom@tromey.com>
11944
11945 * psymtab.h: Update comment.
11946
11947 2020-02-11 Tom Tromey <tom@tromey.com>
11948
11949 * gdb_obstack.h (struct auto_obstack): Use
11950 DISABLE_COPY_AND_ASSIGN.
11951
11952 2020-02-11 Tom Tromey <tom@tromey.com>
11953
11954 * dwarf2/frame.h (struct objfile): Don't forward declare.
11955
11956 2020-02-11 Christian Biesinger <cbiesinger@google.com>
11957
11958 * cris-tdep.c (cris_supply_gregset): Change signature to match
11959 what struct regset expects.
11960 (cris_regset): New struct.
11961 (fetch_core_registers): Remove.
11962 (cris_iterate_over_regset_sections): New function.
11963 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
11964 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
11965
11966 2020-02-11 Christian Biesinger <cbiesinger@google.com>
11967
11968 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
11969 registers.
11970
11971 2020-02-11 Christian Biesinger <cbiesinger@google.com>
11972
11973 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
11974
11975 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
11976
11977 * configure: Re-generate.
11978
11979 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
11980
11981 * configure: Re-generate.
11982
11983 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
11984
11985 * acinclude: Update warning.m4 path.
11986 * warning.m4: Move to gdbsupport.
11987
11988 2020-02-11 Tom Tromey <tromey@adacore.com>
11989
11990 * remote.c (remote_console_output): Update.
11991 * printcmd.c (printf_command): Update.
11992 * event-loop.c (gdb_wait_for_event): Update.
11993 * linux-nat.c (sigchld_handler): Update.
11994 * remote-sim.c (gdb_os_write_stdout): Update.
11995 (gdb_os_flush_stdout): Update.
11996 (gdb_os_flush_stderr): Update.
11997 (gdb_os_write_stderr): Update.
11998 * exceptions.c (print_exception): Update.
11999 * remote-fileio.c (remote_fileio_func_read): Update.
12000 (remote_fileio_func_write): Update.
12001 * tui/tui.c (tui_enable): Update.
12002 * tui/tui-interp.c (tui_interp::init): Update.
12003 * utils.c (init_page_info): Update.
12004 (putchar_unfiltered, fputc_unfiltered): Update.
12005 (gdb_flush): Update.
12006 (emit_style_escape): Update.
12007 (flush_wrap_buffer, fputs_maybe_filtered): Update.
12008 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
12009 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
12010 (stderr_file::write): Update.
12011 (stderr_file::puts): Update.
12012 * ui-file.h (ui_file_isatty, ui_file_write)
12013 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
12014 (ui_file_puts): Don't declare.
12015
12016 2020-02-10 Tom de Vries <tdevries@suse.de>
12017
12018 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
12019 sentinel to char *.
12020
12021 2020-02-09 Tom de Vries <tdevries@suse.de>
12022
12023 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
12024 filename if it matches "<artificial>".
12025
12026 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
12027
12028 * windows-tdep.c (struct enum_value_name): New struct.
12029 (create_enum): New function.
12030 (windows_get_siginfo_type): Create and use enum types.
12031
12032 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
12033
12034 * NEWS: Mention $_siginfo support for Windows.
12035 * windows-nat.c (handle_exception): Set siginfo_er.
12036 (windows_nat_target::mourn_inferior): Reset siginfo_er.
12037 (windows_xfer_siginfo): New function.
12038 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
12039 * windows-tdep.c (struct windows_gdbarch_data): New struct.
12040 (init_windows_gdbarch_data): New function.
12041 (get_windows_gdbarch_data): New function.
12042 (windows_get_siginfo_type): New function.
12043 (windows_init_abi): Register windows_get_siginfo_type.
12044 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
12045
12046 2020-02-08 Tom Tromey <tom@tromey.com>
12047
12048 * dwarf2/read.c (class cutu_reader) <cutu_reader,
12049 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
12050 <keep>: Declare method.
12051 <m_keep>: Remove member.
12052 <~cutu_reader>: Remove.
12053 (cutu_reader::init_tu_and_read_dwo_dies): Update.
12054 (cutu_reader::cutu_reader): Update.
12055 (cutu_reader::keep): Rename from ~cutu_reader.
12056 (process_psymtab_comp_unit, build_type_psymtabs_1)
12057 (process_skeletonless_type_unit, load_partial_comp_unit)
12058 (load_full_comp_unit, dwarf2_read_addr_index)
12059 (read_signatured_type): Update.
12060
12061 2020-02-08 Tom Tromey <tom@tromey.com>
12062
12063 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
12064 "want_partial_unit" parameter.
12065 (process_psymtab_comp_unit): Change want_partial_unit to bool.
12066 Inline check for DW_TAG_partial_unit.
12067 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
12068
12069 2020-02-08 Tom Tromey <tom@tromey.com>
12070
12071 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
12072 read.c.
12073 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
12074 read.c.
12075
12076 2020-02-08 Tom Tromey <tom@tromey.com>
12077
12078 * dwarf2/read.c (read_address): Move to comp-unit.c.
12079 (dwarf2_rnglists_process, dwarf2_ranges_process)
12080 (read_attribute_value, dwarf_decode_lines_1)
12081 (var_decode_location, decode_locdesc): Update.
12082 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
12083 read.c. Remove "cu" parameter.
12084 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
12085 method.
12086
12087 2020-02-08 Tom Tromey <tom@tromey.com>
12088
12089 * dwarf2/read.c (read_attribute_value, read_indirect_string)
12090 (read_indirect_line_string): Update.
12091 * dwarf2/comp-unit.c (read_offset): Remove.
12092 (read_comp_unit_head): Update.
12093 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
12094 method.
12095 (read_offset): Don't declare.
12096
12097 2020-02-08 Tom Tromey <tom@tromey.com>
12098
12099 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
12100 * dwarf2/read.c (struct comp_unit_head): Move to
12101 dwarf2/comp-unit.h.
12102 (enum class rcuh_kind): Move to comp-unit.h.
12103 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
12104 (read_comp_unit_head, error_check_comp_unit_head)
12105 (read_and_check_comp_unit_head): Move to comp-unit.c.
12106 (read_offset, dwarf_unit_type_name): Likewise.
12107 (create_debug_type_hash_table, read_cutu_die_from_dwo)
12108 (cutu_reader::cutu_reader, read_call_site_scope)
12109 (find_partial_die, follow_die_offset): Update.
12110 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
12111
12112 2020-02-08 Tom Tromey <tom@tromey.com>
12113
12114 * dwarf2/read.c (read_offset_1): Move to leb.c.
12115 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
12116 (dwarf_decode_macro_bytes): Update.
12117 * dwarf2/leb.c (read_offset): Rename; move from read.c.
12118 * dwarf2/leb.h (read_offset): Declare.
12119
12120 2020-02-08 Tom Tromey <tom@tromey.com>
12121
12122 * dwarf2/read.c (dwarf2_section_size): Remove.
12123 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
12124 Update.
12125 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
12126
12127 2020-02-08 Tom Tromey <tom@tromey.com>
12128
12129 * dwarf2/read.c (read_initial_length): Move to leb.c.
12130 * dwarf2/leb.h (read_initial_length): Declare.
12131 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
12132 handle_nonstd parameter.
12133 * dwarf2/frame.c (read_initial_length): Remove.
12134 (decode_frame_entry_1): Update.
12135
12136 2020-02-08 Tom Tromey <tom@tromey.com>
12137
12138 * dwarf2/loc.c (dwarf2_find_location_expression)
12139 (dwarf_evaluate_loc_desc::get_tls_address)
12140 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
12141 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
12142 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
12143 (dwarf2_compile_property_to_c)
12144 (dwarf2_loc_desc_get_symbol_read_needs)
12145 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
12146 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
12147 (loclist_describe_location, loclist_tracepoint_var_ref)
12148 (loclist_generate_c_location): Update.
12149 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
12150 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
12151 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
12152 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
12153 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
12154 (dwarf2_per_cu_data::addr_size)
12155 (dwarf2_per_cu_data::ref_addr_size)
12156 (dwarf2_per_cu_data::text_offset)
12157 (dwarf2_per_cu_data::addr_type): Now methods.
12158 (per_cu_header_read_in): Make per_cu "const".
12159 (dwarf2_version): Remove.
12160 (dwarf2_per_cu_data::int_type): Now a method.
12161 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
12162 (set_die_type, read_array_type, read_subrange_index_type)
12163 (read_tag_string_type, read_subrange_type): Update.
12164 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
12165 offset_size, ref_addr_size, text_offset, addr_type, version,
12166 objfile, int_type, addr_sized_int_type>: Declare methods.
12167
12168 2020-02-08 Tom Tromey <tom@tromey.com>
12169
12170 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
12171 Move earlier.
12172
12173 2020-02-08 Tom Tromey <tom@tromey.com>
12174
12175 * dwarf2/read.h (dwarf_line_debug): Declare.
12176 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
12177 * dwarf2/read.c: Move line_header code to new files.
12178 (dwarf_line_debug): No longer static.
12179 * dwarf2/line-header.c: New file.
12180 * dwarf2/line-header.h: New file.
12181
12182 2020-02-08 Tom Tromey <tom@tromey.com>
12183
12184 * dwarf2/read.c (struct line_header) <file_full_name,
12185 file_file_name>: Return unique_xmalloc_ptr.
12186 (line_header::file_file_name): Update.
12187 (line_header::file_full_name): Update.
12188 (dw2_get_file_names_reader): Update.
12189 (macro_start_file): Update.
12190
12191 2020-02-08 Tom Tromey <tom@tromey.com>
12192
12193 * dwarf2/read.c (struct line_header) <file_full_name,
12194 file_file_name>: Declare methods.
12195 (dw2_get_file_names_reader): Update.
12196 (file_file_name): Now a method.
12197 (file_full_name): Likewise.
12198 (macro_start_file): Update.
12199
12200 2020-02-08 Tom Tromey <tom@tromey.com>
12201
12202 * dwarf2/read.c (dwarf_always_disassemble)
12203 (show_dwarf_always_disassemble): Move to loc.c.
12204 (_initialize_dwarf2_read): Move "always-disassemble" registration
12205 to loc.c.
12206 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
12207 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
12208 static.
12209 (show_dwarf_always_disassemble): Move from read.c.
12210 (_initialize_dwarf2loc): Move always-disassemble from read.c.
12211
12212 2020-02-08 Tom Tromey <tom@tromey.com>
12213
12214 * dwarf2/read.c (~dwarf2_per_objfile): Update.
12215 (create_quick_file_names_table): Return htab_up.
12216 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
12217 Update.
12218 * dwarf2/read.h (struct dwarf2_per_objfile)
12219 <quick_file_names_table>: Now htab_up.
12220
12221 2020-02-08 Tom Tromey <tom@tromey.com>
12222
12223 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
12224
12225 2020-02-08 Tom Tromey <tom@tromey.com>
12226
12227 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
12228 Rewrite.
12229 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
12230 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
12231 (abbrev_table::abbrev_table): No longer inline.
12232 (ABBREV_HASH_SIZE): Remove.
12233 (abbrev_table::m_abbrevs): Now an htab_up.
12234
12235 2020-02-08 Tom Tromey <tom@tromey.com>
12236
12237 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
12238 (cutu_reader): Update.
12239 (build_type_psymtabs_1): Update.
12240 * dwarf2/abbrev.c (abbrev_table::read): Rename.
12241 (abbrev_table::alloc_abbrev): Update.
12242 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
12243 (abbrev_table::read): New static method, renamed from
12244 abbrev_table_read_table.
12245 (abbrev_table::alloc_abbrev)
12246 (abbrev_table::add_abbrev): Now private.
12247 (abbrev_table::abbrev_table): Now private.
12248 (abbrev_table::m_abbrev_obstack): Now private. Rename.
12249
12250 2020-02-08 Tom Tromey <tom@tromey.com>
12251
12252 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
12253 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
12254 htab_up.
12255
12256 2020-02-08 Tom Tromey <tom@tromey.com>
12257
12258 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
12259 htab_up.
12260 (lookup_dwo_unit_in_dwp): Update.
12261 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
12262 on obstack.
12263
12264 2020-02-08 Tom Tromey <tom@tromey.com>
12265
12266 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
12267 obstack.
12268
12269 2020-02-08 Tom Tromey <tom@tromey.com>
12270
12271 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
12272 line_header_hash.
12273 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
12274 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
12275 Change type to htab_up.
12276
12277 2020-02-08 Tom Tromey <tom@tromey.com>
12278
12279 * dwarf2/read.c (allocate_type_unit_groups_table): Return
12280 htab_up. Don't allocate on obstack.
12281 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
12282 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
12283 Change type to htab_up.
12284
12285 2020-02-08 Tom Tromey <tom@tromey.com>
12286
12287 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
12288 Change type to htab_up.
12289 * dwarf2/read.c (create_signatured_type_table_from_index)
12290 (create_signatured_type_table_from_debug_names)
12291 (create_all_type_units, add_type_unit)
12292 (lookup_dwo_signatured_type, lookup_signatured_type)
12293 (process_skeletonless_type_unit): Update.
12294 (create_debug_type_hash_table, create_debug_types_hash_table):
12295 Change type of types_htab.
12296 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
12297 htab_up. Don't allocate on obstack.
12298 (create_cus_hash_table): Change type of cus_htab parameter.
12299 (struct dwo_file) <cus, tus>: Now htab_up.
12300 (lookup_dwo_signatured_type, lookup_dwo_cutu)
12301 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
12302 (queue_and_load_all_dwo_tus): Update.
12303 * dwarf2/index-write.c (write_gdbindex): Update.
12304 (write_debug_names): Update.
12305
12306 2020-02-08 Tom Tromey <tom@tromey.com>
12307
12308 * dwarf2/read.h (struct dwarf2_queue_item): Move from
12309 dwarf2/read.c. Remove "next" member. Add constructor ntad
12310 destructor.
12311 (struct dwarf2_per_objfile) <queue>: New member.
12312 * dwarf2/read.c (struct dwarf2_queue_item): Move to
12313 dwarf2/read.h.
12314 (dwarf2_queue, dwarf2_queue_tail): Remove.
12315 (class dwarf2_queue_guard): Add parameter to constructor. Use
12316 DISABLE_COPY_AND_ASSIGN.
12317 <m_per_objfile>: New member.
12318 <~dwarf2_queue_guard>: Rewrite.
12319 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
12320 Update.
12321 (~dwarf2_queue_item): New.
12322
12323 2020-02-08 Tom Tromey <tom@tromey.com>
12324
12325 * dwarf2/read.c (struct die_info) <has_children>: New member.
12326 (dw2_get_file_names_reader): Remove has_children.
12327 (dw2_get_file_names): Update.
12328 (read_cutu_die_from_dwo): Remove has_children.
12329 (cutu_reader::init_tu_and_read_dwo_dies)
12330 (cutu_reader::cutu_reader): Update.
12331 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
12332 Remove has_children.
12333 (build_type_psymtabs_1, process_skeletonless_type_unit)
12334 (load_partial_comp_unit, load_full_comp_unit): Update.
12335 (create_dwo_cu_reader): Remove has_children.
12336 (create_cus_hash_table, read_die_and_children): Update.
12337 (read_full_die_1,read_full_die): Remove has_children.
12338 (read_signatured_type): Update.
12339 (class cutu_reader) <has_children>: Remove.
12340
12341 2020-02-08 Tom Tromey <tom@tromey.com>
12342
12343 * dwarf2/expr.c: Rename from dwarf2expr.c.
12344 * dwarf2/expr.h: Rename from dwarf2expr.h.
12345 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
12346 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
12347 * dwarf2/frame.c: Rename from dwarf2-frame.c.
12348 * dwarf2/frame.h: Rename from dwarf2-frame.h.
12349 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
12350 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
12351 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
12352 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
12353 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
12354 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
12355 * dwarf2/loc.c: Rename from dwarf2loc.c.
12356 * dwarf2/loc.h: Rename from dwarf2loc.h.
12357 * dwarf2/read.c: Rename from dwarf2read.c.
12358 * dwarf2/read.h: Rename from dwarf2read.h.
12359 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
12360 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
12361 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
12362 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
12363 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
12364 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
12365 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
12366 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
12367 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
12368 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
12369 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
12370 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
12371 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
12372 Update.
12373 * Makefile.in (COMMON_SFILES): Update.
12374 (HFILES_NO_SRCDIR): Update.
12375
12376 2020-02-08 Tom Tromey <tom@tromey.com>
12377
12378 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
12379 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
12380
12381 2020-02-08 Tom Tromey <tom@tromey.com>
12382
12383 * dwarf2read.h (struct die_info): Don't declare.
12384
12385 2020-02-08 Tom Tromey <tom@tromey.com>
12386
12387 * dwarf2read.h (die_info_ptr): Remove typedef.
12388
12389 2020-02-08 Tom Tromey <tom@tromey.com>
12390
12391 * dwarf2read.c (read_call_site_scope)
12392 (handle_data_member_location, dwarf2_add_member_fn)
12393 (mark_common_block_symbol_computed, read_common_block)
12394 (attr_to_dynamic_prop, partial_die_info::read)
12395 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
12396 (dwarf2_symbol_mark_computed, set_die_type): Update.
12397 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
12398 method.
12399 (attr_form_is_block): Don't declare.
12400 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
12401
12402 2020-02-08 Tom Tromey <tom@tromey.com>
12403
12404 * dwarf2read.c (dwarf2_find_base_address, )
12405 (read_call_site_scope, rust_containing_type)
12406 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
12407 (handle_data_member_location, dwarf2_add_member_fn)
12408 (get_alignment, read_structure_type, process_structure_scope)
12409 (mark_common_block_symbol_computed, read_common_block)
12410 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
12411 (partial_die_info::read, read_attribute_value, new_symbol)
12412 (lookup_die_type, dwarf2_get_ref_die_offset)
12413 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
12414 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
12415 (dwarf2_symbol_mark_computed): Update.
12416 * dwarf2/attribute.h (struct attribute) <value_as_address,
12417 form_is_section_offset, form_is_constant, form_is_ref>: Declare
12418 methods.
12419 (value_as_address, attr_form_is_section_offset)
12420 (attr_form_is_constant, attr_form_is_ref): Don't declare.
12421 * dwarf2/attribute.c (attribute::value_as_address)
12422 (attribute::form_is_section_offset, attribute::form_is_constant)
12423 (attribute::form_is_ref): Now methods.
12424
12425 2020-02-08 Tom Tromey <tom@tromey.com>
12426
12427 * dwarf2read.c (struct attribute, DW_STRING)
12428 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
12429 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
12430 (attr_form_is_block, attr_form_is_section_offset)
12431 (attr_form_is_constant, attr_form_is_ref): Move.
12432 * dwarf2/attribute.h: New file.
12433 * dwarf2/attribute.c: New file, from dwarf2read.c.
12434 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
12435
12436 2020-02-08 Tom Tromey <tom@tromey.com>
12437
12438 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
12439 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
12440 Move.
12441 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
12442 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
12443 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
12444 abbrev.c.
12445 * dwarf2/abbrev.h: New file.
12446 * dwarf2/abbrev.c: New file, from dwarf2read.c.
12447 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
12448
12449 2020-02-08 Tom Tromey <tom@tromey.com>
12450
12451 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
12452 (dwarf2_section_size, dwarf2_get_section_info)
12453 (create_signatured_type_table_from_debug_names)
12454 (create_addrmap_from_aranges, read_debug_names_from_section)
12455 (get_gdb_index_contents_from_section, read_comp_unit_head)
12456 (error_check_comp_unit_head, read_abbrev_offset)
12457 (create_debug_type_hash_table, init_cu_die_reader)
12458 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
12459 (read_comp_units_from_section, create_cus_hash_table)
12460 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
12461 (create_dwp_v2_section, dwarf2_rnglists_process)
12462 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
12463 (abbrev_table_read_table, read_indirect_string_at_offset_from)
12464 (read_indirect_string_from_dwz, read_addr_index_1)
12465 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
12466 (dwarf_decode_macro_bytes, dwarf_decode_macros)
12467 (fill_in_loclist_baton): Update.
12468 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
12469 get_containing_section, get_bfd_owner, get_bfd_section,
12470 get_file_name, get_id, get_flags, empty, read>: Declare methods.
12471 (dwarf2_read_section, get_section_name, get_section_file_name)
12472 (get_containing_section, get_section_bfd_owner)
12473 (get_section_bfd_section, get_section_name, get_section_file_name)
12474 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
12475 declare.
12476 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
12477 (dwarf2_section_info::get_bfd_owner)
12478 (dwarf2_section_info::get_bfd_section)
12479 (dwarf2_section_info::get_name)
12480 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
12481 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
12482 (dwarf2_section_info::read): Now methods.
12483 * dwarf-index-write.c (class debug_names): Update.
12484
12485 2020-02-08 Tom Tromey <tom@tromey.com>
12486
12487 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
12488 Move to dwarf2/section.h.
12489 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
12490 (get_section_bfd_section, get_section_name)
12491 (get_section_file_name, get_section_id, get_section_flags)
12492 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
12493 dwarf2/section.c.
12494 * dwarf2/section.h: New file.
12495 * dwarf2/section.c: New file, from dwarf2read.c.
12496 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
12497
12498 2020-02-08 Tom Tromey <tom@tromey.com>
12499
12500 * dwarf2read.h (read_unsigned_leb128): Don't declare.
12501 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
12502 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
12503 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
12504 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
12505 * dwarf2/leb.h: New file, from dwarf2read.c.
12506 * dwarf2/leb.c: New file, from dwarf2read.c.
12507 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
12508 Remove.
12509 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
12510 (COMMON_SFILES): Add dwarf2/leb.c.
12511
12512 2020-02-08 Joel Brobecker <brobecker@adacore.com>
12513
12514 GDB 9.1 released.
12515
12516 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
12517
12518 PR gdb/25190:
12519 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
12520 * gdb/remote.c (remote_console_output): Update.
12521 * gdb/ui-file.c (fputs_unfiltered): Rename to...
12522 (ui_file_puts): ...this.
12523 * gdb/ui-file.h (ui_file_puts): Add declaration.
12524 * gdb/utils.c (emit_style_escape): Update.
12525 (flush_wrap_buffer): Update.
12526 (fputs_maybe_filtered): Update.
12527 (fputs_unfiltered): Add function.
12528
12529 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
12530
12531 * gdb/event-loop.c (gdb_wait_for_event): Update.
12532 * gdb/printcmd.c (printf_command): Update.
12533 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
12534 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
12535 (gdb_os_flush_stderr): Update.
12536 * gdb/remote.c (remote_console_output): Update.
12537 * gdb/ui-file.c (gdb_flush): Rename to...
12538 (ui_file_flush): ...this.
12539 (stderr_file::write): Update.
12540 (stderr_file::puts): Update.
12541 * gdb/ui-file.h (gdb_flush): Rename to...
12542 (ui_file_flush): ...this.
12543 * gdb/utils.c (gdb_flush): Add function.
12544 * gdb/utils.h (gdb_flush): Add declaration.
12545
12546 2020-02-07 Tom Tromey <tromey@adacore.com>
12547
12548 PR breakpoints/24915:
12549 * source.c (find_and_open_source): Do not check basenames_may_differ.
12550
12551 2020-02-07 Tom Tromey <tom@tromey.com>
12552
12553 * README: Update gdbserver documentation.
12554 * gdbserver: Move to top level.
12555 * configure.tgt (build_gdbserver): Remove.
12556 * configure.ac: Remove --enable-gdbserver.
12557 * configure: Rebuild.
12558 * Makefile.in (distclean): Don't mention gdbserver.
12559
12560 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
12561
12562 * source-cache.c (source_cache::ensure): Surround
12563 get_plain_source_lines with a try/catch.
12564 (source_cache::get_line_charpos): Get rid of try/catch
12565 and only check for the return value of "ensure".
12566 * tui/tui-source.c (tui_source_window::set_contents):
12567 Simplify "nlines" calculation.
12568
12569 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
12570
12571 * MAINTAINERS (Write After Approval): Add myself.
12572
12573 2020-02-05 Christian Biesinger <cbiesinger@google.com>
12574
12575 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
12576 function call.
12577
12578 2020-02-05 Christian Biesinger <cbiesinger@google.com>
12579
12580 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
12581
12582 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
12583
12584 * nat/riscv-linux-tdesc.h: New file.
12585 * nat/riscv-linux-tdesc.c: New file, taking code from...
12586 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
12587 ... here.
12588 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
12589 NATDEPFILES.
12590
12591 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
12592
12593 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
12594 we don't set the fake simulator ptid to the null_ptid.
12595
12596 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
12597
12598 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
12599 * gdbthread.h (class thread_info) <resumed>: Likewise.
12600 * infrun.c (resume_1): Likewise.
12601 (proceed): Likewise.
12602 (infrun_thread_stop_requested): Likewise.
12603 (stop_all_threads): Likewise.
12604 (handle_inferior_event): Likewise.
12605 (restart_threads): Likewise.
12606 (finish_step_over): Likewise.
12607 (keep_going_stepped_thread): Likewise.
12608 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
12609 (linux_handle_extended_wait): Likewise.
12610 * record-btrace.c (get_thread_current_frame_id): Likewise.
12611 * record-full.c (record_full_wait_1): Likewise.
12612 * remote.c (remote_target::process_initial_stop_replies): Likewise.
12613 * target.c (target_resume): Likewise.
12614 * thread.c (set_running_thread): Likewise.
12615
12616 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
12617
12618 * f-valprint.c (f77_print_array_1): Changed datatype of index
12619 variable to LONGEST from int to enable it to contain bound
12620 values correctly.
12621
12622 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
12623
12624 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
12625 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
12626 offsets according to FLEN determined.
12627 (riscv_linux_nat_target::read_description): Determine FLEN
12628 dynamically.
12629 (riscv_linux_nat_target::fetch_registers): Size regset buffer
12630 according to FLEN determined.
12631 (riscv_linux_nat_target::store_registers): Likewise.
12632
12633 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
12634
12635 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
12636 when reg->group is empty and reggroup is not.
12637
12638 2020-01-31 Tom Tromey <tromey@adacore.com>
12639
12640 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
12641 Call beneath target's mourn_inferior after unpushing.
12642
12643 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
12644
12645 PR tui/9765
12646 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
12647 have enough lines to fill the screen, still return the lowest
12648 address we found.
12649
12650 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
12651
12652 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
12653 '-', '<', and '>' commands.
12654
12655 2020-01-29 Pedro Alves <palves@redhat.com>
12656 Sergio Durigan Junior <sergiodj@redhat.com>
12657
12658 * infcmd.c (construct_inferior_arguments): Assert that
12659 'argc' is greater than 0.
12660
12661 2020-01-29 Luis Machado <luis.machado@linaro.org>
12662
12663 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
12664 (BRK_INSN_MASK): Define to 0xd4200000.
12665 (aarch64_program_breakpoint_here_p): New function.
12666 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
12667 * arch-utils.c (default_program_breakpoint_here_p): Moved from
12668 breakpoint.c.
12669 * arch-utils.h (default_program_breakpoint_here_p): Moved from
12670 breakpoint.h
12671 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
12672 call gdbarch_program_breakpoint_here_p.
12673 (program_breakpoint_here): Moved to arch-utils.c, renamed to
12674 default_program_breakpoint_here_p, changed return type to bool and
12675 simplified.
12676 * breakpoint.h (program_breakpoint_here): Moved prototype to
12677 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
12678 return type to bool.
12679 * gdbarch.c: Regenerate.
12680 * gdbarch.h: Regenerate.
12681 * gdbarch.sh (program_breakpoint_here_p): New method.
12682 * infrun.c (handle_signal_stop): Call
12683 gdbarch_program_breakpoint_here_p.
12684
12685 2020-01-26 Tom Tromey <tom@tromey.com>
12686
12687 * ctfread.c (struct ctf_fp_info): Reindent.
12688 (_initialize_ctfread): Remove.
12689
12690 2020-01-26 Tom Tromey <tom@tromey.com>
12691
12692 * psymtab.c (partial_map_expand_apply)
12693 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
12694 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
12695 (psym_print_stats, psym_expand_symtabs_for_function)
12696 (psym_map_symbol_filenames, psym_map_matching_symbols)
12697 (psym_expand_symtabs_matching)
12698 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
12699 (maintenance_check_psymtabs): Use new methods.
12700 * psympriv.h (struct partial_symtab) <readin_p,
12701 get_compunit_symtab>: New methods.
12702 <readin, compunit_symtab>: Remove members.
12703 (struct standard_psymtab): New.
12704 (struct legacy_psymtab): Derive from standard_psymtab.
12705 * dwarf2read.h (struct dwarf2_psymtab): Derive from
12706 standard_psymtab.
12707 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
12708
12709 2020-01-26 Tom Tromey <tom@tromey.com>
12710
12711 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
12712 read_dependencies. Add assert.
12713 * psymtab.c (partial_symtab::read_dependencies): New method.
12714 * psympriv.h (struct partial_symtab) <read_dependencies>: New
12715 method.
12716 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
12717 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
12718 read_dependencies.
12719 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
12720 Add assert.
12721
12722 2020-01-26 Tom Tromey <tom@tromey.com>
12723
12724 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
12725 Call expand_psymtab.
12726 (xcoff_read_symtab): Call expand_psymtab.
12727 (xcoff_start_psymtab, xcoff_end_psymtab): Set
12728 legacy_expand_psymtab.
12729 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
12730 method.
12731 (struct legacy_psymtab) <expand_psymtab>: Implement.
12732 <legacy_expand_psymtab>: New member.
12733 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
12734 (parse_partial_symbols): Set legacy_expand_psymtab.
12735 (psymtab_to_symtab_1): Change argument order. Call
12736 expand_psymtab.
12737 (new_psymtab): Set legacy_expand_psymtab.
12738 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
12739 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
12740 expand_psymtab.
12741 (dwarf2_psymtab::expand_psymtab): Rename from
12742 psymtab_to_symtab_1. Call expand_psymtab.
12743 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
12744 (dbx_end_psymtab): Likewise.
12745 (dbx_psymtab_to_symtab_1): Change argument order. Call
12746 expand_psymtab.
12747 (dbx_read_symtab): Call expand_psymtab.
12748 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
12749 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
12750 (ctf_psymtab::read_symtab): Call expand_psymtab.
12751
12752 2020-01-26 Tom Tromey <tom@tromey.com>
12753
12754 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
12755 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
12756 messages.
12757 * mdebugread.c (mdebug_read_symtab): Remove prints.
12758 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
12759 assert.
12760 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
12761
12762 2020-01-26 Tom Tromey <tom@tromey.com>
12763
12764 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
12765 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
12766 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
12767 legacy_symtab.
12768 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
12769 * psymtab.c (psymtab_to_symtab): Call method.
12770 (dump_psymtab): Update.
12771 * psympriv.h (struct partial_symtab): Add virtual destructor.
12772 <read_symtab>: New method.
12773 (struct legacy_symtab): New.
12774 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
12775 (struct pst_map) <pst>: Now a legacy_psymtab.
12776 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
12777 (new_psymtab): Use legacy_psymtab.
12778 * dwarf2read.h (struct dwarf2_psymtab): New.
12779 (struct dwarf2_per_cu_data) <psymtab>: Use it.
12780 * dwarf2read.c (dwarf2_create_include_psymtab)
12781 (dwarf2_build_include_psymtabs, create_type_unit_group)
12782 (create_partial_symtab, process_psymtab_comp_unit_reader)
12783 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
12784 (set_partial_user): Use dwarf2_psymtab.
12785 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
12786 (psymtab_to_symtab_1, process_full_comp_unit)
12787 (process_full_type_unit, dwarf2_ranges_read)
12788 (dwarf2_get_pc_bounds, psymtab_include_file_name)
12789 (dwarf_decode_lines): Use dwarf2_psymtab.
12790 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
12791 (add_address_entry_worker, write_one_signatured_type)
12792 (recursively_count_psymbols, recursively_write_psymbols)
12793 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
12794 (write_debug_names): Likewise.
12795 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
12796 <pst>: Now a legacy_psymtab.
12797 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
12798 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
12799 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
12800 * ctfread.c (struct ctf_psymtab): New.
12801 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
12802 ctf_psymtab.
12803 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
12804 (create_partial_symtab): Return a ctf_psymtab.
12805 (scan_partial_symbols): Update.
12806
12807 2020-01-26 Tom Tromey <tom@tromey.com>
12808
12809 * xcoffread.c (xcoff_start_psymtab): Use new.
12810 * psymtab.c (partial_symtab::partial_symtab): New constructor,
12811 renamed from start_psymtab_common.
12812 * psympriv.h (struct partial_symtab): Add new constructor.
12813 (start_psymtab_common): Don't declare.
12814 * mdebugread.c (parse_partial_symbols): Use new.
12815 * dwarf2read.c (create_partial_symtab): Use new.
12816 * dbxread.c (start_psymtab): Use new.
12817 * ctfread.c (create_partial_symtab): Use new.
12818
12819 2020-01-26 Tom Tromey <tom@tromey.com>
12820
12821 * xcoffread.c (xcoff_end_psymtab): Use new.
12822 * psymtab.c (start_psymtab_common): Use new.
12823 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
12824 Update.
12825 * psympriv.h (struct partial_symtab): Add parameters to
12826 constructor. Don't inline.
12827 (allocate_psymtab): Don't declare.
12828 * mdebugread.c (new_psymtab): Use new.
12829 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
12830 * dbxread.c (dbx_end_psymtab): Use new.
12831
12832 2020-01-26 Tom Tromey <tom@tromey.com>
12833
12834 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
12835 allocate_psymtab. Update documentation.
12836 * psymtab.c (psymtab_storage::install_psymtab): Rename from
12837 allocate_psymtab. Do not use new.
12838 (allocate_psymtab): Use new. Update.
12839
12840 2020-01-26 Tom Tromey <tom@tromey.com>
12841
12842 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
12843 * psymtab.c (psym_print_stats): Update.
12844 * psympriv.h (struct partial_symtab) <readin,
12845 psymtabs_addrmap_supported, anonymous>: Now bool.
12846 * mdebugread.c (psymtab_to_symtab_1): Update.
12847 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
12848 (build_type_psymtabs_reader, psymtab_to_symtab_1)
12849 (process_full_comp_unit, process_full_type_unit): Update.
12850 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
12851 * ctfread.c (psymtab_to_symtab): Update.
12852
12853 2020-01-26 Tom Tromey <tom@tromey.com>
12854
12855 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
12856 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
12857 * psymtab.c (psymtab_storage): Delete psymtabs.
12858 (psymtab_storage::allocate_psymtab): Use new.
12859 (psymtab_storage::discard_psymtab): Use delete.
12860 * psympriv.h (struct partial_symtab): Add constructor and
12861 initializers.
12862
12863 2020-01-26 Tom Tromey <tom@tromey.com>
12864
12865 * machoread.c: Do not include psympriv.h.
12866
12867 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12868
12869 * NEWS: Mention the new option and the set/show commands.
12870
12871 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12872
12873 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
12874 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
12875 (validate_exec_file): New variables, enums, functions.
12876 (exec_file_locate_attach, print_section_info): Style the filenames.
12877 (_initialize_exec): Install show_exec_file_mismatch_command and
12878 set_exec_file_mismatch_command.
12879 * gdbcore.h (validate_exec_file): Declare.
12880 * infcmd.c (attach_command): Call validate_exec_file.
12881 * remote.c ( remote_target::remote_add_inferior): Likewise.
12882
12883 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12884
12885 * frame.c (find_frame_sal): Move call to get_next_frame into more
12886 inner scope.
12887 * inline-frame.c (inilne_state) <inline_state>: Update argument
12888 types.
12889 (inilne_state) <skipped_symbol>: Rename to...
12890 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
12891 (skip_inline_frames): Build vector of skipped symbols and use this
12892 to reate the inline_state.
12893 (inline_skipped_symbol): Add a comment and some assertions, fetch
12894 skipped symbol from the list.
12895
12896 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12897
12898 * buildsym.c (lte_is_less_than): Delete.
12899 (buildsym_compunit::end_symtab_with_blockvector): Create local
12900 lambda function to sort line table entries, and use
12901 std::stable_sort instead of std::sort.
12902 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
12903 markers when looking for a previous line.
12904
12905 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12906
12907 * dwarf2read.c (lnp_state_machine::record_line): Include
12908 end_sequence parameter in debug print out. Record the line if we
12909 are at an end_sequence marker even if it's not the start of a
12910 statement.
12911 * symmisc.c (maintenance_print_one_line_table): Print end of
12912 sequence markers with 'END' not '0'.
12913
12914 2020-01-24 Pedro Alves <palves@redhat.com>
12915
12916 PR gdb/25410
12917 * thread.c (scoped_restore_current_thread::restore): Use
12918 switch_to_inferior_no_thread.
12919 * exec.c: Include "progspace-and-thread.h".
12920 (add_target_sections, remove_target_sections):
12921 scoped_restore_current_pspace_and_thread instead of
12922 scoped_restore_current_thread.
12923 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
12924 and aspace to the inferior before calling clone_program_space.
12925 Remove stale comment.
12926
12927 2020-01-24 Christian Biesinger <cbiesinger@google.com>
12928
12929 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
12930 (arm_netbsd_nat_target::fetch_registers): ...this.
12931 (arm_nbsd_nat_target::store_registers): Rename to...
12932 (arm_netbsd_nat_target::store_registers): ...this.
12933
12934 2020-01-24 Christian Biesinger <cbiesinger@google.com>
12935
12936 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12937 register_t.
12938
12939 2020-01-24 Christian Biesinger <cbiesinger@google.com>
12940
12941 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
12942 Update comment.
12943 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
12944 Likewise.
12945 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
12946 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
12947 the correct replacement (iterate_over_regset_sections).
12948 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
12949 Update comment.
12950
12951 2020-01-24 Graham Markall <graham.markall@embecosm.com>
12952
12953 PR gdb/23718
12954 * gdb/python/python.c (execute_gdb_command): Call
12955 async_enable_stdin in catch block.
12956
12957 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12958
12959 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
12960 SWITCH_THRU_ALL_UIS.
12961
12962 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12963
12964 PR tui/9765
12965 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
12966 comment, add extra parameter, and update to store previous symbol
12967 when appropriate.
12968 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
12969 add extra parameter.
12970 * tui/tui-disasm.c (tui_disassemble): Update header comment,
12971 remove unneeded parameter, add try/catch around gdb_print_insn,
12972 rewrite to add items to asm_lines vector.
12973 (tui_find_backward_disassembly_start_address): New function.
12974 (tui_find_disassembly_address): Updated throughout.
12975 (tui_disasm_window::set_contents): Update for changes to
12976 tui_disassemble.
12977 (tui_disasm_window::do_scroll_vertical): No need to adjust the
12978 number of lines to scroll.
12979
12980 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
12981
12982 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
12983 (SECT_OFF_DATA): Likewise.
12984 (SECT_OFF_RODATA): Likewise.
12985 (SECT_OFF_TEXT): Likewise.
12986 (SECT_OFF_BSS): Likewise.
12987 (struct objfile) <text_section_offset, data_section_offset>: New
12988 methods.
12989 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
12990 objfile::text_section_offset.
12991 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
12992 * coffread.c (coff_symtab_read): Likewise.
12993 (enter_linenos): Likewise.
12994 (process_coff_symbol): Likewise.
12995 * ctfread.c (get_objfile_text_range): Likewise.
12996 * dtrace-probe.c (dtrace_probe::get_relocated_address):
12997 Use objfile::data_section_offset.
12998 * dwarf2-frame.c (execute_cfa_program): Use
12999 objfile::text_section_offset.
13000 (dwarf2_frame_find_fde): Likewise.
13001 * dwarf2read.c (create_addrmap_from_index): Likewise.
13002 (create_addrmap_from_aranges): Likewise.
13003 (dw2_find_pc_sect_compunit_symtab): Likewise.
13004 (process_psymtab_comp_unit_reader): Likewise.
13005 (add_partial_symbol): Likewise.
13006 (add_partial_subprogram): Likewise.
13007 (process_full_comp_unit): Likewise.
13008 (read_file_scope): Likewise.
13009 (read_func_scope): Likewise.
13010 (read_lexical_block_scope): Likewise.
13011 (read_call_site_scope): Likewise.
13012 (dwarf2_rnglists_process): Likewise.
13013 (dwarf2_ranges_process): Likewise.
13014 (dwarf2_ranges_read): Likewise.
13015 (dwarf_decode_lines_1): Likewise.
13016 (new_symbol): Likewise.
13017 (dwarf2_fetch_die_loc_sect_off): Likewise.
13018 (dwarf2_per_cu_text_offset): Likewise.
13019 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
13020 * hppa-tdep.c (read_unwind_info): Likewise.
13021 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
13022 * psympriv.h (struct partial_symtab): Likewise.
13023 * psymtab.c (find_pc_sect_psymtab): Likewise.
13024 * solib-svr4.c (enable_break): Likewise.
13025 * stap-probe.c (relocate_address): Use
13026 objfile::data_section_offset.
13027 * xcoffread.c (enter_line_range): Use
13028 objfile::text_section_offset.
13029 (read_xcoff_symtab): Likewise.
13030
13031 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
13032
13033 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
13034 declaration to narrower scopes.
13035
13036 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
13037
13038 * darwin-nat.h (struct darwin_exception_msg, enum
13039 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
13040 Move up.
13041 (class darwin_nat_target) <wait_1, check_new_threads,
13042 decode_exception_message, decode_message, stop_inferior,
13043 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
13044 * darwin-nat.c (darwin_check_new_threads): Rename to...
13045 (darwin_nat_target::check_new_threads): ... this.
13046 (darwin_suspend_inferior_it): Remove.
13047 (darwin_decode_exception_message): Rename to...
13048 (darwin_nat_target::decode_exception_message): ... this.
13049 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
13050 (darwin_decode_message): Rename to...
13051 (darwin_nat_target::decode_message): ... this.
13052 (cancel_breakpoint): Rename to...
13053 (darwin_nat_target::cancel_breakpoint): ... this.
13054 (darwin_wait): Rename to...
13055 (darwin_nat_target::wait_1): ... this. Use range-based for loop
13056 instead of iterate_over_inferiors.
13057 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
13058 (darwin_stop_inferior): Rename to...
13059 (darwin_nat_target::stop_inferior): ... this.
13060 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
13061 (darwin_init_thread_list): Rename to...
13062 (darwin_nat_target::init_thread_list): ... this.
13063 (darwin_ptrace_him): Rename to...
13064 (darwin_nat_target::ptrace_him): ... this.
13065 (darwin_nat_target::create_inferior): Pass lambda function to
13066 fork_inferior.
13067 (darwin_nat_target::detach): Call stop_inferior instead of
13068 darwin_stop_inferior.
13069 * fork-inferior.h (fork_inferior): Change init_trace_fun
13070 parameter to gdb::function_view.
13071 * fork-inferior.c (fork_inferior): Likewise.
13072
13073 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
13074
13075 * i386-cygwin-tdep.c (core_process_module_section): Update.
13076 * windows-nat.c (struct lm_info_windows): Add text_offset.
13077 (windows_xfer_shared_libraries): Update.
13078 * windows-tdep.c (windows_xfer_shared_library):
13079 Add text_offset_cached argument.
13080 * windows-tdep.h (windows_xfer_shared_library): Update.
13081
13082 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
13083
13084 * gdbarch.sh: Add declaration for _initialize_gdbarch.
13085
13086 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
13087
13088 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
13089 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
13090 replace with range-based for.
13091 (gdbsim_interrupt_inferior): Remove.
13092 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
13093 with a range-based for. Inline code from
13094 gdbsim_interrupt_inferior.
13095
13096 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
13097
13098 * infrun.c (proceed): Fix indentation.
13099
13100 2020-01-21 Tom Tromey <tromey@adacore.com>
13101
13102 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
13103 * python/python.c (python_extension_ops): Update.
13104 (gdbpy_colorize): New function.
13105 * python/lib/gdb/__init__.py (colorize): New function.
13106 * extension.h (ext_lang_colorize): Declare.
13107 * extension.c (ext_lang_colorize): New function.
13108 * extension-priv.h (struct extension_language_ops) <colorize>: New
13109 member.
13110 * cli/cli-style.c (_initialize_cli_style): Update help text.
13111
13112 2020-01-21 Luis Machado <luis.machado@linaro.org>
13113
13114 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
13115 <cond>: Change type to bool.
13116 (aarch64_displaced_step_b_cond): Update cond to use bool type.
13117 (aarch64_displaced_step_cb): Likewise.
13118 (aarch64_displaced_step_tb): Likewise.
13119
13120 2020-01-21 Luis Machado <luis.machado@linaro.org>
13121
13122 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
13123 output.
13124
13125 2020-01-21 Luis Machado <luis.machado@linaro.org>
13126
13127 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
13128 <pc_adjust>: Adjust the documentation.
13129 (aarch64_displaced_step_fixup): Check if PC really moved before
13130 adjusting it.
13131
13132 2020-01-19 Tom Tromey <tom@tromey.com>
13133
13134 * disasm.c (~gdb_disassembler): New destructor.
13135 (gdb_buffered_insn_length): Call disassemble_free_target.
13136 * disasm.h (class gdb_disassembler): Declare destructor. Use
13137 DISABLE_COPY_AND_ASSIGN.
13138
13139 2020-01-19 Tom Tromey <tom@tromey.com>
13140
13141 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
13142 (die_reader_func_ftype): Remove.
13143 (cutu_reader): New class.
13144 (dw2_get_file_names_reader): Remove "data" parameter.
13145 (dw2_get_file_names): Use cutu_reader.
13146 (create_debug_type_hash_table): Update.
13147 (read_cutu_die_from_dwo): Update comment.
13148 (lookup_dwo_unit): Add dwo_name parameter.
13149 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
13150 die_reader_func_ftype and data parameters.
13151 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
13152 Remove die_reader_func_ftype and data parameters.
13153 (~cutu_reader): New; from init_cutu_and_read_dies.
13154 (cutu_reader::cutu_reader): Rename from
13155 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
13156 and data parameters.
13157 (init_cutu_and_read_dies_simple): Remove.
13158 (struct process_psymtab_comp_unit_data): Remove.
13159 (process_psymtab_comp_unit_reader): Remove data parameter; add
13160 want_partial_unit and pretend_language parameters.
13161 (process_psymtab_comp_unit): Use cutu_reader.
13162 (build_type_psymtabs_reader): Remove data parameter.
13163 (build_type_psymtabs_1): Use cutu_reader.
13164 (process_skeletonless_type_unit): Likewise.
13165 (load_partial_comp_unit_reader): Remove.
13166 (load_partial_comp_unit): Use cutu_reader.
13167 (load_full_comp_unit_reader): Remove.
13168 (load_full_comp_unit): Use cutu_reader.
13169 (struct create_dwo_cu_data): Remove.
13170 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
13171 dwo_unit parameters.
13172 (create_cus_hash_table): Use cutu_reader.
13173 (struct dwarf2_read_addr_index_data): Remove.
13174 (dwarf2_read_addr_index_reader): Remove.
13175 (dwarf2_read_addr_index): Use cutu_reader.
13176 (read_signatured_type_reader): Remove.
13177 (read_signatured_type): Use cutu_reader.
13178
13179 2020-01-19 Tom Tromey <tom@tromey.com>
13180
13181 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
13182 * tui/tui-wingeneral.h (class tui_suppress_output): New.
13183 (tui_wrefresh): Declare.
13184 * tui/tui-wingeneral.c (suppress_output): New global.
13185 (tui_suppress_output, ~tui_suppress_output): New constructor and
13186 destructor.
13187 (tui_wrefresh): New function.
13188 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
13189 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
13190 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
13191 method.
13192 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
13193 tui_wrefresh.
13194 (tui_data_window::no_refresh): New method.
13195 (tui_data_item_window::refresh_window): Call tui_wrefresh.
13196 (tui_reg_command): Use tui_suppress_output
13197 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
13198 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
13199 method.
13200 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
13201
13202 2020-01-19 Tom Tromey <tom@tromey.com>
13203
13204 * tui/tui-winsource.c (tui_update_source_windows_with_line):
13205 Handle case where symtab is null.
13206
13207 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
13208
13209 * linux-fork.c (one_fork_p): Simplify.
13210
13211 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
13212
13213 * top.c (struct qt_args): Remove.
13214 (kill_or_detach): Change return type to void, replace `void *`
13215 parameter with a proper one.
13216 (print_inferior_quit_action): Likewise.
13217 (quit_confirm): Use range-based for loop to iterate over inferiors.
13218 (quit_force): Likewise.
13219
13220 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
13221
13222 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
13223 `void *` parameter with proper parameters.
13224 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
13225 (print_one_inferior): Change return type to void, replace `void *`
13226 parameter with proper parameters.
13227 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
13228 inferiors.
13229 (get_other_inferior): Remove.
13230 (mi_cmd_remove_inferior): Use range-based loop to iterate over
13231 inferiors.
13232
13233 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
13234
13235 * mi/mi-interp.c (report_initial_inferior): Remove.
13236 (mi_interp::init): Use range-based for to iterate over inferiors.
13237
13238 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
13239
13240 * python/py-inferior.c (build_inferior_list): Remove.
13241 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
13242
13243 2020-01-16 Christian Biesinger <cbiesinger@google.com>
13244
13245 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
13246 (btrace_stitch_trace): Likewise.
13247 * charset.c (intermediate_encoding): Likewise (vaild).
13248 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
13249 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
13250 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
13251
13252 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
13253
13254 * windows-tdep.c (windows_get_tlb_type):
13255 Add rtl_user_process_parameters type.
13256
13257 2020-01-16 Pedro Alves <palves@redhat.com>
13258 Norbert Lange <nolange79@gmail.com>
13259
13260 PR build/24805
13261 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
13262 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
13263 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
13264 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
13265 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
13266 (ps_plog): Redeclare exported functions with default visibility.
13267
13268 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
13269
13270 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
13271 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
13272
13273 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
13274
13275 * infcmd.c (post_create_inferior): Use get_thread_regcache
13276 instead of get_current_regcache.
13277
13278 2020-01-14 Tom Tromey <tom@tromey.com>
13279
13280 PR symtab/12535:
13281 * python/python.c (gdbpy_decode_line): Treat empty string the same
13282 as no argument.
13283
13284 2020-01-14 Tom Tromey <tom@tromey.com>
13285
13286 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
13287
13288 2020-01-14 Tom Tromey <tom@tromey.com>
13289
13290 * nat/linux-btrace.c: Don't include <config.h>.
13291 * nat/linux-ptrace.c: Don't include <config.h>.
13292 * nat/x86-linux-dregs.c: Don't include <config.h>.
13293
13294 2020-01-14 Tom Tromey <tom@tromey.com>
13295
13296 * configure: Rebuild.
13297 * configure.ac: Move many checks to ../gdbsupport/common.m4.
13298
13299 2020-01-14 Tom Tromey <tom@tromey.com>
13300
13301 * nat/x86-linux-dregs.c: Include configh.h.
13302 * nat/linux-ptrace.c: Include configh.h.
13303 * nat/linux-btrace.c: Include configh.h.
13304 * defs.h: Include config.h, bfd.h.
13305 * configure.ac: Don't source common.host.
13306 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
13307 * configure: Rebuild.
13308 * acinclude.m4: Update path.
13309 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
13310 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
13311 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
13312 (CLIBS): Add LIBSUPPORT.
13313 (CDEPS): Likewise.
13314 (COMMON_SFILES): Remove gdbsupport files.
13315 (HFILES_NO_SRCDIR): Likewise.
13316 (stamp-version): Update path to create-version.sh.
13317 (ALLDEPFILES): Remove gdbsupport files.
13318
13319 2020-01-14 Tom Tromey <tom@tromey.com>
13320
13321 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
13322 USE_WIN32API when needed.
13323 * configure.ac (USE_WIN32API): Don't define.
13324 (WIN32LIBS): Use WIN32APILIBS.
13325 * configure: Rebuild.
13326
13327 2020-01-14 Tom Tromey <tom@tromey.com>
13328
13329 * configure: Rebuild.
13330 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
13331
13332 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
13333
13334 * skip.c (skip_function_command): Make skip w/o arguments use the
13335 name of the inlined function if pc is inside any inlined function.
13336
13337 2020-01-14 Luis Machado <luis.machado@linaro.org>
13338
13339 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
13340 * infrun.c (resume_1): Likewise.
13341 (handle_inferior_event): Remove stale comment.
13342 * linux-nat.c (linux_nat_target::resume): Update comments.
13343 (save_stop_reason): Likewise.
13344 (linux_nat_filter_event): Likewise.
13345 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
13346
13347 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
13348
13349 * elfread.c (record_minimal_symbol): Set section index to 0 for
13350 non-allocatable sections.
13351
13352
13353 2020-01-13 Ali Tamur <tamur@google.com>
13354
13355 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
13356 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
13357 to gdb::optional. Update comments.
13358 (dwo_file): Update comments.
13359 (read_attribute): Update API to take an additional out parameter,
13360 need_reprocess. This is used to mark attributes that need other
13361 attributes (e.g. str_offsets_base) for correct computation which may not
13362 have been read yet.
13363 (read_attribute_reprocess): New function declaration.
13364 (read_addr_index): Likewise.
13365 (read_dwo_str_index): Likewise.
13366 (read_stub_str_index): Likewise.
13367 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
13368 (lookup_addr_base): New function definition.
13369 (lookup_ranges_base): Likewise.
13370 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
13371 lookup_ranges_base.
13372 (init_cutu_and_read_dies): Update comments.
13373 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
13374 unit. This is used to inherit parent's str_offsets_base and addr_base.
13375 Update comments.
13376 (init_cutu_and_read_dies_simple): Reflect API changes.
13377 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
13378 (create_cus_hash_table): Change API to take parent compile unit.
13379 Reflect API changes.
13380 (open_and_init_dwo_file): Reflect API changes.
13381 (dwarf2_get_pc_bounds): Update comments.
13382 (dwarf2_record_block_ranges): Likewise.
13383 (read_full_die_1): Change implementation to reprocess attributes that
13384 need str_offsets_base and addr_base.
13385 (partial_die_info::read): Likewise.
13386 (read_attribute_reprocess): New function definition.
13387 (read_attribute_value): Change API to take an additional out parameter,
13388 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
13389 when a non-dwo compile unit has index based attributes.
13390 (read_attribute): Reflect API changes.
13391 (read_addr_index_1): Reflect API changes. Update comments.
13392 (dwarf2_read_addr_index_data): Reflect API changes.
13393 (dwarf2_read_addr_index): Likewise.
13394 (read_str_index): Change API and implementation. This becomes a helper
13395 to be used by the new string index related methods. Update error
13396 message and comments.
13397 (read_dwo_str_index): New function definition.
13398 (read_stub_str_index): Likewise.
13399 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
13400 * symfile.h (dwarf2_debug_sections): Likewise.
13401 * xcoffread.c (dwarf2_debug_sections): Likewise.
13402
13403 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
13404
13405 * gdbcore.h (struct core_fns) <core_read_registers>: Change
13406 core_reg_sect type to gdb_byte *.
13407 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
13408 * cris-tdep.c (fetch_core_registers): Likewise.
13409 * corelow.c (core_target::get_core_register_section): Change
13410 type of `contents` to gdb::byte_vector.
13411
13412 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
13413
13414 * tui/tui-wingeneral.c (box_win): Position the title in the center
13415 of the border.
13416
13417 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13418
13419 * corelow.c (core_target::get_core_register_section): Use
13420 std::vector instead of alloca.
13421
13422 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
13423
13424 * warning.m4: Add -Wmissing-declarations to build_warnings.
13425 * configure: Re-generate.
13426
13427 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
13428
13429 * python/python.c (init__gdb_module): Add declaration.
13430
13431 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
13432
13433 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
13434 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
13435 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
13436 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
13437 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
13438 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
13439 * ada-exp.y (_initialize_ada_exp): Add declaration.
13440 * ada-lang.c (_initialize_ada_language): Add declaration.
13441 * ada-tasks.c (_initialize_tasks): Add declaration.
13442 * agent.c (_initialize_agent): Add declaration.
13443 * aix-thread.c (_initialize_aix_thread): Add declaration.
13444 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
13445 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
13446 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
13447 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
13448 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
13449 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
13450 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
13451 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
13452 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
13453 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
13454 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
13455 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
13456 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
13457 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
13458 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
13459 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
13460 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
13461 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
13462 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
13463 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
13464 * annotate.c (_initialize_annotate): Add declaration.
13465 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
13466 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
13467 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
13468 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
13469 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
13470 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
13471 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
13472 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
13473 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
13474 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
13475 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
13476 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
13477 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
13478 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
13479 * auto-load.c (_initialize_auto_load): Add declaration.
13480 * auxv.c (_initialize_auxv): Add declaration.
13481 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
13482 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
13483 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
13484 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
13485 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
13486 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
13487 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
13488 * breakpoint.c (_initialize_breakpoint): Add declaration.
13489 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
13490 * btrace.c (_initialize_btrace): Add declaration.
13491 * charset.c (_initialize_charset): Add declaration.
13492 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
13493 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
13494 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
13495 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
13496 * cli/cli-script.c (_initialize_cli_script): Add declaration.
13497 * cli/cli-style.c (_initialize_cli_style): Add declaration.
13498 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
13499 * coffread.c (_initialize_coffread): Add declaration.
13500 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
13501 * compile/compile.c (_initialize_compile): Add declaration.
13502 * complaints.c (_initialize_complaints): Add declaration.
13503 * completer.c (_initialize_completer): Add declaration.
13504 * copying.c (_initialize_copying): Add declaration.
13505 * corefile.c (_initialize_core): Add declaration.
13506 * corelow.c (_initialize_corelow): Add declaration.
13507 * cp-abi.c (_initialize_cp_abi): Add declaration.
13508 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
13509 * cp-support.c (_initialize_cp_support): Add declaration.
13510 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
13511 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
13512 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
13513 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
13514 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
13515 * ctfread.c (_initialize_ctfread): Add declaration.
13516 * d-lang.c (_initialize_d_language): Add declaration.
13517 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
13518 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
13519 * dbxread.c (_initialize_dbxread): Add declaration.
13520 * dcache.c (_initialize_dcache): Add declaration.
13521 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
13522 * disasm.c (_initialize_disasm): Add declaration.
13523 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
13524 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
13525 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
13526 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
13527 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
13528 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
13529 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
13530 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
13531 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
13532 * elfread.c (_initialize_elfread): Add declaration.
13533 * exec.c (_initialize_exec): Add declaration.
13534 * extension.c (_initialize_extension): Add declaration.
13535 * f-lang.c (_initialize_f_language): Add declaration.
13536 * f-valprint.c (_initialize_f_valprint): Add declaration.
13537 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
13538 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
13539 * filesystem.c (_initialize_filesystem): Add declaration.
13540 * findcmd.c (_initialize_mem_search): Add declaration.
13541 * findvar.c (_initialize_findvar): Add declaration.
13542 * fork-child.c (_initialize_fork_child): Add declaration.
13543 * frame-base.c (_initialize_frame_base): Add declaration.
13544 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
13545 * frame.c (_initialize_frame): Add declaration.
13546 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
13547 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
13548 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
13549 * gcore.c (_initialize_gcore): Add declaration.
13550 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
13551 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
13552 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
13553 * gdbarch.c (_initialize_gdbarch): Add declaration.
13554 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
13555 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
13556 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
13557 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
13558 * go-lang.c (_initialize_go_language): Add declaration.
13559 * go32-nat.c (_initialize_go32_nat): Add declaration.
13560 * guile/guile.c (_initialize_guile): Add declaration.
13561 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
13562 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
13563 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
13564 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
13565 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
13566 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
13567 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
13568 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
13569 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
13570 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
13571 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
13572 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
13573 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
13574 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
13575 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
13576 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
13577 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
13578 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
13579 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
13580 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
13581 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
13582 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
13583 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
13584 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
13585 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
13586 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
13587 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
13588 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
13589 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
13590 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
13591 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
13592 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
13593 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
13594 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
13595 * infcall.c (_initialize_infcall): Add declaration.
13596 * infcmd.c (_initialize_infcmd): Add declaration.
13597 * inflow.c (_initialize_inflow): Add declaration.
13598 * infrun.c (_initialize_infrun): Add declaration.
13599 * interps.c (_initialize_interpreter): Add declaration.
13600 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
13601 * jit.c (_initialize_jit): Add declaration.
13602 * language.c (_initialize_language): Add declaration.
13603 * linux-fork.c (_initialize_linux_fork): Add declaration.
13604 * linux-nat.c (_initialize_linux_nat): Add declaration.
13605 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
13606 * linux-thread-db.c (_initialize_thread_db): Add declaration.
13607 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
13608 * m2-lang.c (_initialize_m2_language): Add declaration.
13609 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
13610 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
13611 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
13612 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
13613 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
13614 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
13615 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
13616 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
13617 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
13618 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
13619 * machoread.c (_initialize_machoread): Add declaration.
13620 * macrocmd.c (_initialize_macrocmd): Add declaration.
13621 * macroscope.c (_initialize_macroscope): Add declaration.
13622 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
13623 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
13624 * maint.c (_initialize_maint_cmds): Add declaration.
13625 * mdebugread.c (_initialize_mdebugread): Add declaration.
13626 * memattr.c (_initialize_mem): Add declaration.
13627 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
13628 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
13629 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
13630 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
13631 * mi/mi-main.c (_initialize_mi_main): Add declaration.
13632 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
13633 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
13634 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
13635 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
13636 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
13637 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
13638 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
13639 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
13640 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
13641 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
13642 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
13643 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
13644 * mipsread.c (_initialize_mipsread): Add declaration.
13645 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
13646 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
13647 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
13648 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
13649 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
13650 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
13651 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
13652 * nto-procfs.c (_initialize_procfs): Add declaration.
13653 * objc-lang.c (_initialize_objc_language): Add declaration.
13654 * observable.c (_initialize_observer): Add declaration.
13655 * opencl-lang.c (_initialize_opencl_language): Add declaration.
13656 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
13657 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
13658 * osabi.c (_initialize_gdb_osabi): Add declaration.
13659 * osdata.c (_initialize_osdata): Add declaration.
13660 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
13661 * parse.c (_initialize_parse): Add declaration.
13662 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
13663 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
13664 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
13665 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
13666 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
13667 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
13668 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
13669 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
13670 * printcmd.c (_initialize_printcmd): Add declaration.
13671 * probe.c (_initialize_probe): Add declaration.
13672 * proc-api.c (_initialize_proc_api): Add declaration.
13673 * proc-events.c (_initialize_proc_events): Add declaration.
13674 * proc-service.c (_initialize_proc_service): Add declaration.
13675 * procfs.c (_initialize_procfs): Add declaration.
13676 * producer.c (_initialize_producer): Add declaration.
13677 * psymtab.c (_initialize_psymtab): Add declaration.
13678 * python/python.c (_initialize_python): Add declaration.
13679 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
13680 * record-btrace.c (_initialize_record_btrace): Add declaration.
13681 * record-full.c (_initialize_record_full): Add declaration.
13682 * record.c (_initialize_record): Add declaration.
13683 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
13684 * regcache.c (_initialize_regcache): Add declaration.
13685 * reggroups.c (_initialize_reggroup): Add declaration.
13686 * remote-notif.c (_initialize_notif): Add declaration.
13687 * remote-sim.c (_initialize_remote_sim): Add declaration.
13688 * remote.c (_initialize_remote): Add declaration.
13689 * reverse.c (_initialize_reverse): Add declaration.
13690 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
13691 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
13692 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
13693 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
13694 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
13695 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
13696 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
13697 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
13698 Add declaration.
13699 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
13700 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
13701 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
13702 * rust-exp.y (_initialize_rust_exp): Add declaration.
13703 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
13704 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
13705 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
13706 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
13707 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
13708 * score-tdep.c (_initialize_score_tdep): Add declaration.
13709 * ser-go32.c (_initialize_ser_dos): Add declaration.
13710 * ser-mingw.c (_initialize_ser_windows): Add declaration.
13711 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
13712 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
13713 * ser-uds.c (_initialize_ser_socket): Add declaration.
13714 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
13715 * serial.c (_initialize_serial): Add declaration.
13716 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
13717 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
13718 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
13719 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
13720 * skip.c (_initialize_step_skip): Add declaration.
13721 * sol-thread.c (_initialize_sol_thread): Add declaration.
13722 * solib-aix.c (_initialize_solib_aix): Add declaration.
13723 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
13724 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
13725 * solib-frv.c (_initialize_frv_solib): Add declaration.
13726 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
13727 * solib-target.c (_initialize_solib_target): Add declaration.
13728 * solib.c (_initialize_solib): Add declaration.
13729 * source-cache.c (_initialize_source_cache): Add declaration.
13730 * source.c (_initialize_source): Add declaration.
13731 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
13732 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
13733 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
13734 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
13735 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
13736 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
13737 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
13738 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
13739 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
13740 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
13741 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
13742 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
13743 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
13744 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
13745 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
13746 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
13747 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
13748 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
13749 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
13750 * stabsread.c (_initialize_stabsread): Add declaration.
13751 * stack.c (_initialize_stack): Add declaration.
13752 * stap-probe.c (_initialize_stap_probe): Add declaration.
13753 * std-regs.c (_initialize_frame_reg): Add declaration.
13754 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
13755 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
13756 * symfile.c (_initialize_symfile): Add declaration.
13757 * symmisc.c (_initialize_symmisc): Add declaration.
13758 * symtab.c (_initialize_symtab): Add declaration.
13759 * target.c (_initialize_target): Add declaration.
13760 * target-connection.c (_initialize_target_connection): Add
13761 declaration.
13762 * target-dcache.c (_initialize_target_dcache): Add declaration.
13763 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
13764 * thread.c (_initialize_thread): Add declaration.
13765 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
13766 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
13767 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
13768 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
13769 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
13770 * tracectf.c (_initialize_ctf): Add declaration.
13771 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
13772 * tracefile.c (_initialize_tracefile): Add declaration.
13773 * tracepoint.c (_initialize_tracepoint): Add declaration.
13774 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
13775 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
13776 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
13777 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
13778 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
13779 * tui/tui-win.c (_initialize_tui_win): Add declaration.
13780 * tui/tui.c (_initialize_tui): Add declaration.
13781 * typeprint.c (_initialize_typeprint): Add declaration.
13782 * ui-style.c (_initialize_ui_style): Add declaration.
13783 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
13784 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
13785 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
13786 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
13787 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
13788 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
13789 * unittests/filtered_iterator-selftests.c
13790 (_initialize_filtered_iterator_selftests): Add declaration.
13791 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
13792 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
13793 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
13794 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
13795 * unittests/main-thread-selftests.c
13796 (_initialize_main_thread_selftests): Add declaration.
13797 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
13798 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
13799 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
13800 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
13801 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
13802 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
13803 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
13804 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
13805 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
13806 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
13807 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
13808 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
13809 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
13810 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
13811 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
13812 declaration.
13813 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
13814 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
13815 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
13816 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
13817 * user-regs.c (_initialize_user_regs): Add declaration.
13818 * utils.c (_initialize_utils): Add declaration.
13819 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
13820 * valops.c (_initialize_valops): Add declaration.
13821 * valprint.c (_initialize_valprint): Add declaration.
13822 * value.c (_initialize_values): Add declaration.
13823 * varobj.c (_initialize_varobj): Add declaration.
13824 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
13825 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
13826 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
13827 * windows-nat.c (_initialize_windows_nat): Add declaration.
13828 (_initialize_check_for_gdb_ini): Add declaration.
13829 (_initialize_loadable): Add declaration.
13830 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
13831 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
13832 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
13833 * xcoffread.c (_initialize_xcoffread): Add declaration.
13834 * xml-support.c (_initialize_xml_support): Add declaration.
13835 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
13836 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
13837 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
13838 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
13839
13840 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13841
13842 * regformats/regdat.sh: Generate declaration for init function.
13843
13844 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13845
13846 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
13847 up.
13848 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
13849 close_one_inferior>: New methods.
13850 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
13851 pass down target to find_inferior_pid.
13852 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
13853 Pass down target to find_inferior_ptid.
13854 (gdbsim_target::create_inferior): Pass down target to
13855 add_thread_silent.
13856 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
13857 target down to find_inferior_ptid and switch_to_thread.
13858 (gdbsim_target::close): Update to call close_one_inferior.
13859 (struct resume_data): Remove.
13860 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
13861 directly, rather than through a void pointer.
13862 (gdbsim_target::resume): Update to call resume_one_inferior.
13863
13864 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
13865
13866 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
13867
13868 2020-01-12 Pedro Alves <palves@redhat.com>
13869
13870 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
13871 directly for the current inferior instead of
13872 discard_all_inferiors.
13873 (discard_all_inferiors): Delete.
13874
13875 2020-01-11 Tom Tromey <tom@tromey.com>
13876
13877 * tui/tui-wingeneral.c (box_win): Check cli_styling.
13878 * tui/tui-winsource.c (tui_source_window_base::refill): Use
13879 deprecated_safe_get_selected_frame.
13880
13881 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13882
13883 * inferior.c (print_inferior): Switch inferior before printing it.
13884
13885 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
13886 Pedro Alves <palves@redhat.com>
13887
13888 * progspace-and-thread.c (switch_to_program_space_and_thread):
13889 Assert there's an inferior for PSPACE. Use
13890 switch_to_inferior_no_thread to switch the inferior too.
13891 * progspace.c (program_space::~program_space): Call
13892 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
13893 (program_space::free_all_objfiles): Don't call clear_symtab_users
13894 here.
13895 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
13896
13897 2020-01-10 Pedro Alves <palves@redhat.com>
13898
13899 * NEWS: Mention multi-target debugging, "info connections", and
13900 "add-inferior -no-connection".
13901
13902 2020-01-10 Pedro Alves <palves@redhat.com>
13903
13904 * infrun.c: Include "target-connection.h".
13905 (check_multi_target_resumption): New.
13906 (proceed): Call it.
13907 * target-connection.c (make_target_connection_string): Make
13908 extern.
13909 * target-connection.h (make_target_connection_string): Declare.
13910
13911 2020-01-10 Pedro Alves <palves@redhat.com>
13912
13913 * Makefile.in (COMMON_SFILES): Add target-connection.c.
13914 * inferior.c (uiout_field_connection): New function.
13915 (print_inferior): Add new "connection-id" column.
13916 (add_inferior_command): Show connection number/string of added
13917 inferior.
13918 * process-stratum-target.h
13919 (process_stratum_target::connection_string): New virtual method.
13920 (process_stratum_target::connection_number): New field.
13921 * remote.c (remote_target::connection_string): New override.
13922 * target-connection.c: New file.
13923 * target-connection.h: New file.
13924 * target.c (decref_target): Remove process_stratum targets from
13925 the connection list.
13926 (target_stack::push): Add process_stratum targets to the
13927 connection list.
13928
13929 2020-01-10 Pedro Alves <palves@redhat.com>
13930
13931 Revert:
13932 2016-04-12 Pedro Alves <palves@redhat.com>
13933 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
13934 Remove references to name.
13935 * serial.h (struct serial) <name>: Delete.
13936
13937 2020-01-10 Pedro Alves <palves@redhat.com>
13938
13939 * gdbarch-selftests.c (register_to_value_test): Remove "target
13940 already pushed" check.
13941
13942 2020-01-10 Pedro Alves <palves@redhat.com>
13943 John Baldwin <jhb@FreeBSD.org>
13944
13945 * aarch64-linux-nat.c
13946 (aarch64_linux_nat_target::thread_architecture): Adjust.
13947 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
13948 (task_command_1): Likewise.
13949 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
13950 (aix_thread_target::wait, aix_thread_target::fetch_registers)
13951 (aix_thread_target::store_registers)
13952 (aix_thread_target::thread_alive): Adjust.
13953 * amd64-fbsd-tdep.c: Include "inferior.h".
13954 (amd64fbsd_get_thread_local_address): Pass down target.
13955 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
13956 thread's gdbarch instead of target_gdbarch.
13957 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
13958 get_last_target_status.
13959 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
13960 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
13961 inferiors.
13962 (update_inserted_breakpoint_locations): Skip if inferiors with no
13963 execution.
13964 (update_global_location_list): When handling moribund locations,
13965 find representative inferior for location's pspace, and use thread
13966 count of its process_stratum target.
13967 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
13968 * bsd-uthread.c (bsd_uthread_target::wait): Use
13969 as_process_stratum_target and adjust thread_change_ptid and
13970 add_thread calls.
13971 (bsd_uthread_target::update_thread_list): Use
13972 as_process_stratum_target and adjust find_thread_ptid,
13973 thread_change_ptid and add_thread calls.
13974 * btrace.c (maint_btrace_packet_history_cmd): Adjust
13975 find_thread_ptid call.
13976 * corelow.c (add_to_thread_list): Adjust add_thread call.
13977 (core_target_open): Adjust add_thread_silent and thread_count
13978 calls.
13979 (core_target::pid_to_str): Adjust find_inferior_ptid call.
13980 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
13981 * event-top.c (async_disconnect): Pop targets from all inferiors.
13982 * exec.c (add_target_sections): Push exec target on all inferiors
13983 sharing the program space.
13984 (remove_target_sections): Remove the exec target from all
13985 inferiors sharing the program space.
13986 (exec_on_vfork): New.
13987 * exec.h (exec_on_vfork): Declare.
13988 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
13989 Pass it down.
13990 (fbsd_nat_target::update_thread_list): Adjust.
13991 (fbsd_nat_target::resume): Adjust.
13992 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
13993 down.
13994 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
13995 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
13996 get_thread_arch_regcache call.
13997 * fork-child.c (gdb_startup_inferior): Pass target down to
13998 startup_inferior and set_executing.
13999 * gdbthread.h (struct process_stratum_target): Forward declare.
14000 (add_thread, add_thread_silent, add_thread_with_info)
14001 (in_thread_list): Add process_stratum_target parameter.
14002 (find_thread_ptid(inferior*, ptid_t)): New overload.
14003 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
14004 parameter.
14005 (all_threads()): Delete overload.
14006 (all_threads, all_non_exited_threads): Add process_stratum_target
14007 parameter.
14008 (all_threads_safe): Use brace initialization.
14009 (thread_count): Add process_stratum_target parameter.
14010 (set_resumed, set_running, set_stop_requested, set_executing)
14011 (threads_are_executing, finish_thread_state): Add
14012 process_stratum_target parameter.
14013 (switch_to_thread): Use is_current_thread.
14014 * i386-fbsd-tdep.c: Include "inferior.h".
14015 (i386fbsd_get_thread_local_address): Pass down target.
14016 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
14017 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
14018 have_inferiors check.
14019 * inf-ptrace.c (inf_ptrace_target::create_inferior)
14020 (inf_ptrace_target::attach): Adjust.
14021 * infcall.c (run_inferior_call): Adjust.
14022 * infcmd.c (run_command_1): Pass target to
14023 scoped_finish_thread_state.
14024 (proceed_thread_callback): Skip inferiors with no execution.
14025 (continue_command): Rename 'all_threads' local to avoid hiding
14026 'all_threads' function. Adjust get_last_target_status call.
14027 (prepare_one_step): Adjust set_running call.
14028 (signal_command): Use user_visible_resume_target. Compare thread
14029 pointers instead of inferior_ptid.
14030 (info_program_command): Adjust to pass down target.
14031 (attach_command): Mark target's 'thread_executing' flag.
14032 (stop_current_target_threads_ns): New, factored out from ...
14033 (interrupt_target_1): ... this. Switch inferior before making
14034 target calls.
14035 * inferior-iter.h
14036 (struct all_inferiors_iterator, struct all_inferiors_range)
14037 (struct all_inferiors_safe_range)
14038 (struct all_non_exited_inferiors_range): Filter on
14039 process_stratum_target too. Remove explicit.
14040 * inferior.c (inferior::inferior): Push dummy target on target
14041 stack.
14042 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
14043 Add process_stratum_target parameter, and pass it down.
14044 (have_live_inferiors): Adjust.
14045 (switch_to_inferior_and_push_target): New.
14046 (add_inferior_command, clone_inferior_command): Handle
14047 "-no-connection" parameter. Use
14048 switch_to_inferior_and_push_target.
14049 (_initialize_inferior): Mention "-no-connection" option in
14050 the help of "add-inferior" and "clone-inferior" commands.
14051 * inferior.h: Include "process-stratum-target.h".
14052 (interrupt_target_1): Use bool.
14053 (struct inferior) <push_target, unpush_target, target_is_pushed,
14054 find_target_beneath, top_target, process_target, target_at,
14055 m_stack>: New.
14056 (discard_all_inferiors): Delete.
14057 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
14058 (all_inferiors, all_non_exited_inferiors): Add
14059 process_stratum_target parameter.
14060 * infrun.c: Include "gdb_select.h" and <unordered_map>.
14061 (target_last_proc_target): New global.
14062 (follow_fork_inferior): Push target on new inferior. Pass target
14063 to add_thread_silent. Call exec_on_vfork. Handle target's
14064 reference count.
14065 (follow_fork): Adjust get_last_target_status call. Also consider
14066 target.
14067 (follow_exec): Push target on new inferior.
14068 (struct execution_control_state) <target>: New field.
14069 (user_visible_resume_target): New.
14070 (do_target_resume): Call target_async.
14071 (resume_1): Set target's threads_executing flag. Consider resume
14072 target.
14073 (commit_resume_all_targets): New.
14074 (proceed): Also consider resume target. Skip threads of inferiors
14075 with no execution. Commit resumtion in all targets.
14076 (start_remote): Pass current inferior to wait_for_inferior.
14077 (infrun_thread_stop_requested): Consider target as well. Pass
14078 thread_info pointer to clear_inline_frame_state instead of ptid.
14079 (infrun_thread_thread_exit): Consider target as well.
14080 (random_pending_event_thread): New inferior parameter. Use it.
14081 (do_target_wait): Rename to ...
14082 (do_target_wait_1): ... this. Add inferior parameter, and pass it
14083 down.
14084 (threads_are_resumed_pending_p, do_target_wait): New.
14085 (prepare_for_detach): Adjust calls.
14086 (wait_for_inferior): New inferior parameter. Handle it. Use
14087 do_target_wait_1 instead of do_target_wait.
14088 (fetch_inferior_event): Adjust. Switch to representative
14089 inferior. Pass target down.
14090 (set_last_target_status): Add process_stratum_target parameter.
14091 Save target in global.
14092 (get_last_target_status): Add process_stratum_target parameter and
14093 handle it.
14094 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
14095 (context_switch): Check inferior_ptid == null_ptid before calling
14096 inferior_thread().
14097 (get_inferior_stop_soon): Pass down target.
14098 (wait_one): Rename to ...
14099 (poll_one_curr_target): ... this.
14100 (struct wait_one_event): New.
14101 (wait_one): New.
14102 (stop_all_threads): Adjust.
14103 (handle_no_resumed, handle_inferior_event): Adjust to consider the
14104 event's target.
14105 (switch_back_to_stepped_thread): Also consider target.
14106 (print_stop_event): Update.
14107 (normal_stop): Update. Also consider the resume target.
14108 * infrun.h (wait_for_inferior): Remove declaration.
14109 (user_visible_resume_target): New declaration.
14110 (get_last_target_status, set_last_target_status): New
14111 process_stratum_target parameter.
14112 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
14113 process_stratum_target parameter, and use it.
14114 (clear_inline_frame_state (thread_info*)): New.
14115 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
14116 process_stratum_target parameter.
14117 (clear_inline_frame_state (thread_info*)): Declare.
14118 * linux-fork.c (delete_checkpoint_command): Pass target down to
14119 find_thread_ptid.
14120 (checkpoint_command): Adjust.
14121 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
14122 instead of just tweaking inferior_ptid.
14123 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
14124 (exit_lwp): Pass target down to find_thread_ptid.
14125 (attach_proc_task_lwp_callback): Pass target down to
14126 add_thread/set_running/set_executing.
14127 (linux_nat_target::attach): Pass target down to
14128 thread_change_ptid.
14129 (get_detach_signal): Pass target down to find_thread_ptid.
14130 Consider last target status's target.
14131 (linux_resume_one_lwp_throw, resume_lwp)
14132 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
14133 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
14134 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
14135 (linux_nat_target::async_wait_fd): New.
14136 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
14137 target down.
14138 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
14139 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
14140 * linux-thread-db.c (struct thread_db_info::process_target): New
14141 field.
14142 (add_thread_db_info): Save target.
14143 (get_thread_db_info): New process_stratum_target parameter. Also
14144 match target.
14145 (delete_thread_db_info): New process_stratum_target parameter.
14146 Also match target.
14147 (thread_from_lwp): Adjust to pass down target.
14148 (thread_db_notice_clone): Pass down target.
14149 (check_thread_db_callback): Pass down target.
14150 (try_thread_db_load_1): Always push the thread_db target.
14151 (try_thread_db_load, record_thread): Pass target down.
14152 (thread_db_target::detach): Pass target down. Always unpush the
14153 thread_db target.
14154 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
14155 target down. Always unpush the thread_db target.
14156 (find_new_threads_callback, thread_db_find_new_threads_2)
14157 (thread_db_target::update_thread_list): Pass target down.
14158 (thread_db_target::pid_to_str): Pass current inferior down.
14159 (thread_db_target::get_thread_local_address): Pass target down.
14160 (thread_db_target::resume, maintenance_check_libthread_db): Pass
14161 target down.
14162 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
14163 * procfs.c (procfs_target::procfs_init_inferior): Declare.
14164 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
14165 (procfs_init_inferior): Rename to ...
14166 (procfs_target::procfs_init_inferior): ... this and adjust.
14167 (procfs_target::create_inferior, procfs_notice_thread)
14168 (procfs_do_thread_registers): Adjust.
14169 * ppc-fbsd-tdep.c: Include "inferior.h".
14170 (ppcfbsd_get_thread_local_address): Pass down target.
14171 * proc-service.c (ps_xfer_memory): Switch current inferior and
14172 program space as well.
14173 (get_ps_regcache): Pass target down.
14174 * process-stratum-target.c
14175 (process_stratum_target::thread_address_space)
14176 (process_stratum_target::thread_architecture): Pass target down.
14177 * process-stratum-target.h
14178 (process_stratum_target::threads_executing): New field.
14179 (as_process_stratum_target): New.
14180 * ravenscar-thread.c
14181 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
14182 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
14183 down.
14184 * record-btrace.c (record_btrace_target::info_record): Adjust.
14185 (record_btrace_target::record_method)
14186 (record_btrace_target::record_is_replaying)
14187 (record_btrace_target::fetch_registers)
14188 (get_thread_current_frame_id, record_btrace_target::resume)
14189 (record_btrace_target::wait, record_btrace_target::stop): Pass
14190 target down.
14191 * record-full.c (record_full_wait_1): Switch to event thread.
14192 Pass target down.
14193 * regcache.c (regcache::regcache)
14194 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
14195 process_stratum_target parameter and handle it.
14196 (current_thread_target): New global.
14197 (get_thread_regcache): Add process_stratum_target parameter and
14198 handle it. Switch inferior before calling target method.
14199 (get_thread_regcache): Pass target down.
14200 (get_thread_regcache_for_ptid): Pass target down.
14201 (registers_changed_ptid): Add process_stratum_target parameter and
14202 handle it.
14203 (registers_changed_thread, registers_changed): Pass target down.
14204 (test_get_thread_arch_aspace_regcache): New.
14205 (current_regcache_test): Define a couple local test_target_ops
14206 instances and use them for testing.
14207 (readwrite_regcache): Pass process_stratum_target parameter.
14208 (cooked_read_test, cooked_write_test): Pass mock_target down.
14209 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
14210 (get_thread_arch_aspace_regcache): Add process_stratum_target
14211 parameter.
14212 (regcache::target): New method.
14213 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
14214 (regcache::registers_changed_ptid): Add process_stratum_target
14215 parameter.
14216 (regcache::m_target): New field.
14217 (registers_changed_ptid): Add process_stratum_target parameter.
14218 * remote.c (remote_state::supports_vCont_probed): New field.
14219 (remote_target::async_wait_fd): New method.
14220 (remote_unpush_and_throw): Add remote_target parameter.
14221 (get_current_remote_target): Adjust.
14222 (remote_target::remote_add_inferior): Push target.
14223 (remote_target::remote_add_thread)
14224 (remote_target::remote_notice_new_inferior)
14225 (get_remote_thread_info): Pass target down.
14226 (remote_target::update_thread_list): Skip threads of inferiors
14227 bound to other targets. (remote_target::close): Don't discard
14228 inferiors. (remote_target::add_current_inferior_and_thread)
14229 (remote_target::process_initial_stop_replies)
14230 (remote_target::start_remote)
14231 (remote_target::remote_serial_quit_handler): Pass down target.
14232 (remote_target::remote_unpush_target): New remote_target
14233 parameter. Unpush the target from all inferiors.
14234 (remote_target::remote_unpush_and_throw): New remote_target
14235 parameter. Pass it down.
14236 (remote_target::open_1): Check whether the current inferior has
14237 execution instead of checking whether any inferior is live. Pass
14238 target down.
14239 (remote_target::remote_detach_1): Pass down target. Use
14240 remote_unpush_target.
14241 (extended_remote_target::attach): Pass down target.
14242 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
14243 (remote_target::append_resumption): Pass down target.
14244 (remote_target::append_pending_thread_resumptions)
14245 (remote_target::remote_resume_with_hc, remote_target::resume)
14246 (remote_target::commit_resume): Pass down target.
14247 (remote_target::remote_stop_ns): Check supports_vCont_probed.
14248 (remote_target::interrupt_query)
14249 (remote_target::remove_new_fork_children)
14250 (remote_target::check_pending_events_prevent_wildcard_vcont)
14251 (remote_target::remote_parse_stop_reply)
14252 (remote_target::process_stop_reply): Pass down target.
14253 (first_remote_resumed_thread): New remote_target parameter. Pass
14254 it down.
14255 (remote_target::wait_as): Pass down target.
14256 (unpush_and_perror): New remote_target parameter. Pass it down.
14257 (remote_target::readchar, remote_target::remote_serial_write)
14258 (remote_target::getpkt_or_notif_sane_1)
14259 (remote_target::kill_new_fork_children, remote_target::kill): Pass
14260 down target.
14261 (remote_target::mourn_inferior): Pass down target. Use
14262 remote_unpush_target.
14263 (remote_target::core_of_thread)
14264 (remote_target::remote_btrace_maybe_reopen): Pass down target.
14265 (remote_target::pid_to_exec_file)
14266 (remote_target::thread_handle_to_thread_info): Pass down target.
14267 (remote_target::async_wait_fd): New.
14268 * riscv-fbsd-tdep.c: Include "inferior.h".
14269 (riscv_fbsd_get_thread_local_address): Pass down target.
14270 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
14271 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
14272 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
14273 Adjust.
14274 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
14275 * solib-svr4.c (enable_break): Pass down target.
14276 * spu-multiarch.c (parse_spufs_run): Pass down target.
14277 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
14278 * target-delegates.c: Regenerate.
14279 * target.c (g_target_stack): Delete.
14280 (current_top_target): Return the current inferior's top target.
14281 (target_has_execution_1): Refer to the passed-in inferior's top
14282 target.
14283 (target_supports_terminal_ours): Check whether the initial
14284 inferior was already created.
14285 (decref_target): New.
14286 (target_stack::push): Incref/decref the target.
14287 (push_target, push_target, unpush_target): Adjust.
14288 (target_stack::unpush): Defref target.
14289 (target_is_pushed): Return bool. Adjust to refer to the current
14290 inferior's target stack.
14291 (dispose_inferior): Delete, and inline parts ...
14292 (target_preopen): ... here. Only dispose of the current inferior.
14293 (target_detach): Hold strong target reference while detaching.
14294 Pass target down.
14295 (target_thread_name): Add assertion.
14296 (target_resume): Pass down target.
14297 (target_ops::beneath, find_target_at): Adjust to refer to the
14298 current inferior's target stack.
14299 (get_dummy_target): New.
14300 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
14301 has a thread running.
14302 (initialize_targets): Rename to ...
14303 (_initialize_target): ... this.
14304 * target.h: Include "gdbsupport/refcounted-object.h".
14305 (struct target_ops): Inherit refcounted_object.
14306 (target_ops::shortname, target_ops::longname): Make const.
14307 (target_ops::async_wait_fd): New method.
14308 (decref_target): Declare.
14309 (struct target_ops_ref_policy): New.
14310 (target_ops_ref): New typedef.
14311 (get_dummy_target): Declare function.
14312 (target_is_pushed): Return bool.
14313 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
14314 (all_matching_threads_iterator::all_matching_threads_iterator):
14315 Handle filter target.
14316 * thread-iter.h (struct all_matching_threads_iterator, struct
14317 all_matching_threads_range, class all_non_exited_threads_range):
14318 Filter by target too. Remove explicit.
14319 * thread.c (threads_executing): Delete.
14320 (inferior_thread): Pass down current inferior.
14321 (clear_thread_inferior_resources): Pass down thread pointer
14322 instead of ptid_t.
14323 (add_thread_silent, add_thread_with_info, add_thread): Add
14324 process_stratum_target parameter. Use it for thread and inferior
14325 searches.
14326 (is_current_thread): New.
14327 (thread_info::deletable): Use it.
14328 (find_thread_ptid, thread_count, in_thread_list)
14329 (thread_change_ptid, set_resumed, set_running): New
14330 process_stratum_target parameter. Pass it down.
14331 (set_executing): New process_stratum_target parameter. Pass it
14332 down. Adjust reference to 'threads_executing'.
14333 (threads_are_executing): New process_stratum_target parameter.
14334 Adjust reference to 'threads_executing'.
14335 (set_stop_requested, finish_thread_state): New
14336 process_stratum_target parameter. Pass it down.
14337 (switch_to_thread): Also match inferior.
14338 (switch_to_thread): New process_stratum_target parameter. Pass it
14339 down.
14340 (update_threads_executing): Reimplement.
14341 * top.c (quit_force): Pop targets from all inferior.
14342 (gdb_init): Don't call initialize_targets.
14343 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
14344 Declare.
14345 (windows_add_thread, windows_delete_thread): Adjust.
14346 (get_windows_debug_event): Rename to ...
14347 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
14348 * tracefile-tfile.c (tfile_target_open): Pass down target.
14349 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
14350 Forward declare.
14351 (switch_to_thread): Add process_stratum_target parameter.
14352 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
14353 parameter. Use it.
14354 (mi_on_resume): Pass target down.
14355 * nat/fork-inferior.c (startup_inferior): Add
14356 process_stratum_target parameter. Pass it down.
14357 * nat/fork-inferior.h (startup_inferior): Add
14358 process_stratum_target parameter.
14359 * python/py-threadevent.c (py_get_event_thread): Pass target down.
14360
14361 2020-01-10 Pedro Alves <palves@redhat.com>
14362
14363 * remote.c (remote_target::start_remote): Don't set inferior_ptid
14364 directly. Instead find the first thread in the thread list and
14365 use switch_to_thread.
14366
14367 2020-01-10 Pedro Alves <palves@redhat.com>
14368
14369 * remote.c (remote_target::remote_add_inferior): Don't bind a
14370 process to the current inferior if the current inferior is already
14371 bound to a process.
14372
14373 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14374 Pedro Alves <palves@redhat.com>
14375
14376 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
14377 If no process is specified, return null_ptid instead of
14378 inferior_ptid.
14379 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
14380 TARGET_WAITKIND_SIGNALLED with no pid.
14381
14382 2020-01-10 Pedro Alves <palves@redhat.com>
14383
14384 * remote.c (first_remote_resumed_thread): New.
14385 (remote_target::wait_as): Use it as default event_ptid instead of
14386 inferior_ptid.
14387
14388 2020-01-10 Pedro Alves <palves@redhat.com>
14389
14390 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
14391
14392 2020-01-10 Pedro Alves <palves@redhat.com>
14393
14394 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
14395 not -1.
14396
14397 2020-01-10 Pedro Alves <palves@redhat.com>
14398
14399 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
14400 ptid to get_last_target_status.
14401 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
14402 ptid to get_last_target_status.
14403 * infcmd.c (continue_command): Don't pass a target_waitstatus to
14404 get_last_target_status.
14405 (info_program_command): Don't pass a target_waitstatus to
14406 get_last_target_status.
14407 * infrun.c (init_wait_for_inferior): Use
14408 nullify_last_target_wait_ptid.
14409 (get_last_target_status): Handle nullptr arguments.
14410 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
14411 (print_stop_event): Don't pass a ptid to get_last_target_status.
14412 (normal_stop): Don't pass a ptid to get_last_target_status.
14413 * infrun.h (get_last_target_status, set_last_target_status): Move
14414 comments here and update.
14415 (nullify_last_target_wait_ptid): Declare.
14416 * linux-fork.c (fork_load_infrun_state): Remove local extern
14417 declaration of nullify_last_target_wait_ptid.
14418 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
14419 to get_last_target_status.
14420
14421 2020-01-10 Pedro Alves <palves@redhat.com>
14422
14423 * gdbthread.h (scoped_restore_current_thread)
14424 <dont_restore, restore, m_dont_restore>: Declare.
14425 * thread.c (thread_alive): Add assertion. Return bool.
14426 (switch_to_thread_if_alive): New.
14427 (prune_threads): Switch inferior/thread.
14428 (print_thread_info_1): Switch thread before calling target methods.
14429 (scoped_restore_current_thread::restore): New, factored out from
14430 ...
14431 (scoped_restore_current_thread::~scoped_restore_current_thread):
14432 ... this.
14433 (scoped_restore_current_thread::scoped_restore_current_thread):
14434 Add assertion.
14435 (thread_apply_all_command, thread_select): Use
14436 switch_to_thread_if_alive.
14437 * infrun.c (proceed, restart_threads, handle_signal_stop)
14438 (switch_back_to_stepped_thread): Switch current thread before
14439 calling target methods.
14440
14441 2020-01-10 Pedro Alves <palves@redhat.com>
14442
14443 * inferior.c (switch_to_inferior_no_thread): New function,
14444 factored out from ...
14445 (inferior_command): ... here.
14446 * inferior.h (switch_to_inferior_no_thread): Declare.
14447 * mi/mi-main.c (run_one_inferior): Use
14448 switch_to_inferior_no_thread.
14449
14450 2020-01-10 Pedro Alves <palves@redhat.com>
14451
14452 * infcmd.c (kill_command): Remove dead code.
14453
14454 2020-01-10 Pedro Alves <palves@redhat.com>
14455
14456 * remote.c (remote_target::mourn_inferior): No longer check
14457 whether the target is running.
14458
14459 2020-01-10 Pedro Alves <palves@redhat.com>
14460
14461 * corelow.c (core_target::has_execution): Change parameter type to
14462 inferior pointer.
14463 * inferior.c (number_of_live_inferiors): Use
14464 inferior::has_execution instead of target_has_execution_1.
14465 * inferior.h (inferior::has_execution): New.
14466 * linux-thread-db.c (thread_db_target::update_thread_list): Use
14467 inferior::has_execution instead of target_has_execution_1.
14468 * process-stratum-target.c
14469 (process_stratum_target::has_execution): Change parameter type to
14470 inferior pointer. Check the inferior's PID instead of
14471 inferior_ptid.
14472 * process-stratum-target.h
14473 (process_stratum_target::has_execution): Change parameter type to
14474 inferior pointer.
14475 * record-full.c (record_full_core_target::has_execution): Change
14476 parameter type to inferior pointer.
14477 * target.c (target_has_execution_1): Change parameter type to
14478 inferior pointer.
14479 (target_has_execution_current): Adjust.
14480 * target.h (target_ops::has_execution): Change parameter type to
14481 inferior pointer.
14482 (target_has_execution_1): Change parameter type to inferior
14483 pointer. Change return type to bool.
14484 * tracefile.h (tracefile_target::has_execution): Change parameter
14485 type to inferior pointer.
14486
14487 2020-01-10 Pedro Alves <palves@redhat.com>
14488
14489 * exceptions.c (print_flush): Remove current_top_target() check.
14490
14491 2020-01-10 Pedro Alves <palves@redhat.com>
14492
14493 * remote.c (show_remote_exec_file): Show the current inferior's
14494 exec-file instead of the command variable's value.
14495
14496 2020-01-10 Pedro Alves <palves@redhat.com>
14497
14498 * record-full.c (record_full_resume_ptid): New global.
14499 (record_full_target::resume): Set it.
14500 (record_full_wait_1): Use record_full_resume_ptid instead of
14501 inferior_ptid.
14502
14503 2020-01-10 Pedro Alves <palves@redhat.com>
14504
14505 * gdbthread.h (scoped_restore_current_thread)
14506 <dont_restore, restore, m_dont_restore>: Declare.
14507 * thread.c (thread_alive): Add assertion. Return bool.
14508 (switch_to_thread_if_alive): New.
14509 (prune_threads): Switch inferior/thread.
14510 (print_thread_info_1): Switch thread before calling target methods.
14511 (scoped_restore_current_thread::restore): New, factored out from
14512 ...
14513 (scoped_restore_current_thread::~scoped_restore_current_thread):
14514 ... this.
14515 (scoped_restore_current_thread::scoped_restore_current_thread):
14516 Add assertion.
14517 (thread_apply_all_command, thread_select): Use
14518 switch_to_thread_if_alive.
14519
14520 2020-01-10 George Barrett <bob@bob131.so>
14521
14522 * stap-probe.c (stap_modify_semaphore): Don't check for null
14523 semaphores.
14524 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
14525 for null semaphores.
14526
14527 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
14528
14529 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
14530 all source windows, and maintain horizontal scroll status while
14531 doing so.
14532
14533 2020-01-09 Tom Tromey <tom@tromey.com>
14534
14535 PR tui/18932:
14536 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
14537 update_source_window, not print_source_lines.
14538
14539 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
14540
14541 * tui/tui.c (tui_enable): Register tui hooks after calling
14542 tui_display_main.
14543
14544 2020-01-09 Christian Biesinger <cbiesinger@google.com>
14545
14546 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
14547
14548 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
14549
14550 * thread.c (print_thread_info_1): Fix indentation.
14551
14552 2020-01-09 Christian Biesinger <cbiesinger@google.com>
14553
14554 * symtab.c (general_symbol_info::compute_and_set_names): Move the
14555 unique_xmalloc_ptr outside the if to always free the demangled name.
14556
14557 2020-01-08 Tom Tromey <tromey@adacore.com>
14558
14559 * xcoffread.c (enter_line_range, read_xcoff_symtab)
14560 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
14561 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
14562 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
14563 Remove.
14564 (section_offsets): New typedef.
14565 * symtab.c (fixup_section, get_msymbol_address): Update.
14566 * symmisc.c (dump_msymbols): Update.
14567 * symfile.h (relative_addr_info_to_section_offsets)
14568 (symfile_map_offsets_to_segments): Update.
14569 * symfile.c (build_section_addr_info_from_objfile)
14570 (init_objfile_sect_indices): Update.
14571 (struct place_section_arg): Change type of "offsets".
14572 (place_section): Update.
14573 (relative_addr_info_to_section_offsets): Change type of
14574 "section_offsets". Remove "num_sections" parameter.
14575 (default_symfile_offsets, syms_from_objfile_1)
14576 (set_objfile_default_section_offset): Update.
14577 (reread_symbols): No need to preserve section offsets by hand.
14578 (symfile_map_offsets_to_segments): Change type of "offsets".
14579 * stap-probe.c (relocate_address): Update.
14580 * stabsread.h (process_one_symbol): Update.
14581 * solib-target.c (struct lm_info_target) <offsets>: Change type.
14582 (solib_target_relocate_section_addresses): Update.
14583 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
14584 Update.
14585 * solib-frv.c (frv_relocate_main_executable): Update.
14586 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
14587 * solib-aix.c (solib_aix_get_section_offsets): Change return
14588 type.
14589 (solib_aix_solib_create_inferior_hook): Update.
14590 * remote.c (remote_target::get_offsets): Update.
14591 * psymtab.c (find_pc_sect_psymtab): Update.
14592 * psympriv.h (struct partial_symbol) <address, text_low,
14593 text_high>: Update.
14594 * objfiles.h (obj_section_offset): Update.
14595 (struct objfile) <section_offsets>: Change type.
14596 <num_sections>: Remove.
14597 (objfile_relocate): Update.
14598 * objfiles.c (entry_point_address_query): Update
14599 (relocate_one_symbol): Change type of "section_offsets".
14600 (objfile_relocate1, objfile_relocate1): Change type of
14601 "new_offsets".
14602 (objfile_rebase1): Update.
14603 * mipsread.c (mipscoff_symfile_read): Update.
14604 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
14605 parameter.
14606 * mdebugread.c (parse_symbol): Change type of "section_offsets".
14607 (parse_external, psymtab_to_symtab_1): Update.
14608 * machoread.c (macho_symfile_offsets): Update.
14609 * ia64-tdep.c (ia64_find_unwind_table): Update.
14610 * hppa-tdep.c (read_unwind_info): Update.
14611 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
14612 * dwarf2read.c (create_addrmap_from_index)
14613 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
14614 (process_psymtab_comp_unit_reader, add_partial_symbol)
14615 (add_partial_subprogram, process_full_comp_unit)
14616 (read_file_scope, read_func_scope, read_lexical_block_scope)
14617 (read_call_site_scope, dwarf2_rnglists_process)
14618 (dwarf2_ranges_process, dwarf2_ranges_read)
14619 (dwarf_decode_lines_1, var_decode_location, new_symbol)
14620 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
14621 Update.
14622 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
14623 Update.
14624 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
14625 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
14626 (process_one_symbol): Change type of "section_offsets".
14627 * ctfread.c (get_objfile_text_range): Update.
14628 * coffread.c (coff_symtab_read, enter_linenos)
14629 (process_coff_symbol): Update.
14630 * coff-pe-read.c (add_pe_forwarded_sym): Update.
14631 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
14632
14633 2020-01-08 Tom Tromey <tromey@adacore.com>
14634
14635 * dwarf2read.c (parse_macro_definition): Use std::string.
14636 (parse_macro_definition): Likewise.
14637
14638 2020-01-08 Tom Tromey <tromey@adacore.com>
14639
14640 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
14641 (ATTR_ALLOC_CHUNK): Remove.
14642
14643 2020-01-08 Tom Tromey <tromey@adacore.com>
14644
14645 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
14646
14647 2020-01-08 Tom Tromey <tromey@adacore.com>
14648
14649 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
14650 (dwarf2_compute_name, open_dwo_file): Likewise.
14651 (process_enumeration_scope): Use std::vector.
14652 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
14653 (partial_die_info::fixup, dwarf2_start_subfile)
14654 (guess_full_die_structure_name, dwarf2_name): Likewise.
14655 (determine_prefix): Update.
14656 (guess_full_die_structure_name): Make return type const.
14657 (partial_die_full_name): Return unique_xmalloc_ptr.
14658 (DW_FIELD_ALLOC_CHUNK): Remove.
14659
14660 2020-01-07 Tom Tromey <tromey@adacore.com>
14661
14662 PR build/24937:
14663 * stap-probe.c (class stap_static_probe_ops): Add constructor.
14664
14665 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
14666
14667 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
14668
14669 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
14670
14671 * stack.c (print_frame_info): Move disassemble_next_line code
14672 inside source_print block.
14673
14674 2020-01-06 Eli Zaretskii <eliz@gnu.org>
14675
14676 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
14677 gdb/signals.h, as we are now using native signal symbols.
14678
14679 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
14680
14681 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
14682 overflow by an early check of content vs threshold.
14683 * tui/tui-source.c (tui_source_window::line_is_displayed):
14684 Likewise.
14685
14686 2020-01-06 Eli Zaretskii <eliz@gnu.org>
14687
14688 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
14689
14690 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
14691
14692 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
14693 export table if no section contains it's RVA.
14694
14695 2020-01-06 Eli Zaretskii <eliz@gnu.org>
14696
14697 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
14698
14699 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
14700
14701 * source.c (print_source_lines_base): Set last_line_listed.
14702
14703 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
14704
14705 * tui/tui-disasm.c: Remove trailing spaces.
14706
14707 2020-01-06 Eli Zaretskii <eliz@gnu.org>
14708 Pedro Alves <palves@redhat.com>
14709
14710 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
14711 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
14712 (windows_gdb_signal_to_target): New function, uses the above
14713 enumeration to convert GDB internal signal codes to equivalent
14714 Windows codes.
14715 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
14716 * windows-nat.c: Include "gdb_wait.h".
14717 (get_windows_debug_event): Extract the fatal exception from the
14718 exit status and convert to the equivalent Posix signal number.
14719 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
14720 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
14721 * gdbsupport/gdb_wait.c: New file, implements
14722 windows_status_to_termsig.
14723 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
14724 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
14725
14726 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
14727
14728 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
14729 show_layout.
14730
14731 2020-01-05 Luis Machado <luis.machado@linaro.org>
14732
14733 * aarch64-linux-nat.c
14734 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
14735 and bfd_mach_aarch64.
14736
14737 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14738
14739 * ui-file.c (stdio_file::can_emit_style_escape)
14740 (tee_file::can_emit_style_escape): Ensure style is used also on
14741 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
14742 to gdb_stdout.
14743 * main.c (set_gdb_data_directory): Use file style to output the
14744 warning that the given pathname is not a directory.
14745 * top.c (show_history_filename, gdb_safe_append_history)
14746 (show_gdb_datadir): Use file style.
14747
14748 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
14749
14750 * solib-target.c (struct lm_info_target):
14751 Change offsets to be a unique_xmalloc_ptr.
14752 (solib_target_relocate_section_addresses): Update.
14753
14754 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
14755
14756 * windows-nat.c (windows_clear_solib): Free so_list linked list.
14757
14758 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
14759
14760 * MAINTAINERS (Write After Approval): Add myself.
14761
14762 2020-01-02 Luis Machado <luis.machado@linaro.org>
14763
14764 * proc-service.c (get_ps_regcache): Remove reference to obsolete
14765 Cell BE architecture.
14766 * target.h (struct target_ops) <thread_architecture>: Likewise.
14767
14768 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
14769
14770 * Makefile.in: Use INSTALL_PROGRAM_ENV.
14771
14772 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
14773
14774 * MAINTAINERS (Write After Approval): Add myself.
14775
14776 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14777
14778 * gdbarch.sh: Update copyright year range of generated files.
14779
14780 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14781
14782 Update copyright year range in all GDB files.
14783
14784 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14785
14786 * copyright.py: Convert to Python 3.
14787
14788 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14789
14790 * copyright.py: Adapt after move of gnulib directory from gdb
14791 directory to toplevel directory.
14792
14793 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14794
14795 * copyright.py (main): Exit if run from the wrong directory.
14796
14797 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14798
14799 * top.c (print_gdb_version): Change copyright year to 2020.
14800
14801 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14802
14803 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
14804
14805 For older changes see ChangeLog-2019.
14806 \f
14807 Local Variables:
14808 mode: change-log
14809 left-margin: 8
14810 fill-column: 74
14811 version-control: never
14812 coding: utf-8
14813 End: