Unconditionally use REG_EXTENDED
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2020-10-02 Tom Tromey <tromey@adacore.com>
2
3 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
4 REG_EXTENDED.
5
6 2020-10-02 Simon Marchi <simon.marchi@efficios.com>
7
8 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
9 * procfs.c (procfs_inferior_created): Remove.
10 (_initialize_procfs): Don't register procfs_inferior_created.
11
12 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
13
14 * async-event.c (invoke_async_signal_handlers): Add debug
15 print.
16 (check_async_event_handlers): Likewise.
17 * event-top.c (show_debug_event_loop): New function.
18 (_initialize_event_top): Register "set debug event-loop"
19 setting.
20
21 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
22
23 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
24 * debug.h: Remove.
25 * infrun.c: Include gdbsupport/common-debug.h.
26 * linux-nat.c: Likewise.
27
28 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
29
30 * async-event.h (create_async_signal_handler): Add name
31 parameter.
32 (create_async_event_handler): Likewise.
33 * async-event.c (struct async_signal_handler) <name>: New field.
34 (struct async_event_handler) <name>: New field.
35 (create_async_signal_handler): Assign name.
36 (create_async_event_handler): Assign name.
37 * event-top.c (async_init_signals): Pass name when creating
38 handler.
39 * infrun.c (_initialize_infrun): Likewise.
40 * record-btrace.c (record_btrace_push_target): Likewise.
41 * record-full.c (record_full_open): Likewise.
42 * remote-notif.c (remote_notif_state_allocate): Likewise.
43 * remote.c (remote_target::open_1): Likewise.
44 * tui/tui-win.c (tui_initialize_win): Likewise.
45
46 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
47
48 * async-event.c (initialize_async_signal_handlers): Pass name to
49 add_file_handler
50 * event-top.c (ui_register_input_event_handler): Likewise.
51 * linux-nat.c (linux_nat_target::async): Likewise.
52 * run-on-main-thread.c (_initialize_run_on_main_thread):
53 Likewise
54 * ser-base.c (reschedule): Likewise.
55 (ser_base_async): Likewise.
56 * tui/tui-io.c: Likewise.
57 * top.h (struct ui) <num>: New field.
58 * top.c (highest_ui_num): New variable.
59 (ui::ui): Initialize num.
60
61 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
62
63 * observable.h <inferior_created>: Remove parameters. Update all
64 listeners.
65 * inferior.h (post_create_inferior): Remove target parameter.
66 Update all callers.
67
68 2020-10-02 Nitika Achra <Nitika.Achra@amd.com>
69
70 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
71 and DW_MACRO_undef_strx.
72 (dwarf_decode_macros): Likewise
73 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
74 which is the value of DW_AT_str_offsets_base.
75 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
76 str_offsets_base.
77
78 2020-10-01 Kamil Rytarowski <n54@gmx.com>
79
80 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
81
82 2020-10-01 Kamil Rytarowski <n54@gmx.com>
83
84 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
85 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
86
87 2020-10-01 Kamil Rytarowski <n54@gmx.com>
88
89 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
90
91 2020-09-30 Tom de Vries <tdevries@suse.de>
92
93 PR symtab/26683
94 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
95
96 2020-09-30 Tom Tromey <tromey@adacore.com>
97
98 * dwarf2/read.c (handle_variant): Use constant_value.
99
100 2020-09-29 Tom Tromey <tom@tromey.com>
101
102 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
103 (read_file_scope, dwarf2_get_pc_bounds)
104 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
105 (read_structure_type, handle_struct_member_die)
106 (read_enumeration_type, read_array_type, read_set_type)
107 (read_tag_pointer_type, read_tag_reference_type)
108 (read_subroutine_type, read_base_type, read_subrange_type)
109 (read_full_die_1, partial_die_info::read)
110 (partial_die_info::read, by, new_symbol)
111 (dwarf2_const_value_data, dwarf2_const_value_attr)
112 (dump_die_shallow, dwarf2_fetch_constant_bytes)
113 (prepare_one_comp_unit): Update.
114 * dwarf2/attribute.h (DW_UNSND): Remove.
115
116 2020-09-29 Tom Tromey <tom@tromey.com>
117
118 * dwarf2/read.c (read_func_scope, prototyped_function_p)
119 (read_subroutine_type, partial_die_info::read)
120 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
121 (dwarf2_add_member_fn): Update.
122 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
123 * dwarf2/attribute.c (attribute::as_boolean): New method.
124
125 2020-09-29 Tom Tromey <tom@tromey.com>
126
127 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
128 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
129 method.
130 * dwarf2/attribute.c (attribute::as_virtuality): New method.
131
132 2020-09-29 Tom Tromey <tom@tromey.com>
133
134 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
135 the attribute's form.
136
137 2020-09-29 Tom Tromey <tom@tromey.com>
138
139 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
140 (dwarf2_add_member_fn): Update.
141 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
142 * dwarf2/attribute.c (attribute::defaulted): New method, from
143 is_valid_DW_AT_defaulted.
144
145 2020-09-29 Tom Tromey <tom@tromey.com>
146
147 * dwarf2/read.c (dw2_get_file_names_reader)
148 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
149 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
150 (dwarf2_symbol_mark_computed): Use as_unsigned.
151 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
152 method.
153 <form_is_section_offset>: Update comment.
154
155 2020-09-29 Tom Tromey <tom@tromey.com>
156
157 * dwarf2/read.c (dwarf2_access_attribute): Rename from
158 dwarf2_default_access_attribute. Look up attribute.
159 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
160 Update.
161
162 2020-09-29 Tom Tromey <tom@tromey.com>
163
164 * dwarf2/read.c (skip_one_die): Update.
165 (read_full_die_1): Change how reprocessing is done.
166 (partial_die_info::read): Update.
167 (read_attribute_value): Remove need_reprocess parameter.
168 (read_attribute): Likewise.
169 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
170 New method.
171
172 2020-09-29 Tom Tromey <tom@tromey.com>
173
174 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
175 (dwarf2_const_value_attr, dump_die_shallow)
176 (dwarf2_fetch_constant_bytes): Update.
177 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
178 comment.
179 <set_address>: New method.
180 (DW_ADDR): Remove.
181 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
182 (attribute::as_string, attribute::as_address): Add assert.
183
184 2020-09-29 Tom Tromey <tom@tromey.com>
185
186 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
187 (read_attribute_reprocess, read_attribute_value): Update.
188 (read_attribute): Clear requires_reprocessing.
189 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
190 form_requires_reprocessing>: New methods.
191 <string_init>: Clear requires_reprocessing.
192 <set_unsigned_reprocess>: New method.
193 <name>: Shrink by one bit.
194 <requires_reprocessing>: New member.
195 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
196 method.
197
198 2020-09-29 Tom Tromey <tom@tromey.com>
199
200 * dwarf2/read.c (read_attribute_value): Update.
201 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
202 set_unsigned>: New methods.
203 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
204
205 2020-09-29 Tom Tromey <tom@tromey.com>
206
207 * dwarf2/read.c (get_alignment, read_array_order)
208 (read_attribute_value, dwarf2_const_value_attr)
209 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
210 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
211 New methods.
212 (DW_SND): Remove.
213
214 2020-09-29 Tom Tromey <tom@tromey.com>
215
216 * dwarf2/read.c (read_attribute_value, lookup_die_type)
217 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
218 Update.
219 * dwarf2/attribute.h (struct attribute) <as_signature,
220 set_signature>: New methods.
221 (DW_SIGNATURE): Remove.
222
223 2020-09-29 Tom Tromey <tom@tromey.com>
224
225 * dwarf2/read.c (read_call_site_scope)
226 (handle_data_member_location, dwarf2_add_member_fn)
227 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
228 (partial_die_info::read, read_attribute_value)
229 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
230 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
231 (dwarf2_symbol_mark_computed): Update.
232 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
233 methods.
234 (DW_BLOCK): Remove.
235 * dwarf2/attribute.c (attribute::form_is_block): Add
236 DW_FORM_data16.
237
238 2020-09-29 Tom Tromey <tom@tromey.com>
239
240 * dwarf2/read.c (read_cutu_die_from_dwo)
241 (read_attribute_reprocess, read_attribute_value, read_attribute)
242 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
243 (dwarf2_fetch_constant_bytes): Update.
244 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
245 <set_string_noncanonical, set_string_canonical>: New methods.
246 <string_is_canonical>: Update comment.
247 <canonical_string_p>: Add assert.
248 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
249 * dwarf2/attribute.c (attribute::form_is_string): New method.
250 (attribute::string): Use it.
251
252 2020-09-29 Tom Tromey <tom@tromey.com>
253
254 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
255 (dump_die_shallow): Use canonical_string_p.
256 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
257 method.
258
259 2020-09-29 Tom Tromey <tom@tromey.com>
260
261 * dwarf2/read.c (partial_die_info::read)
262 (dwarf2_const_value_attr, anonymous_struct_prefix, )
263 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
264 attribute::as_string.
265
266 2020-09-29 Tom Tromey <tom@tromey.com>
267
268 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
269 DW_ADDR.
270 (attribute::string): Don't use DW_STRING.
271 (attribute::get_ref_die_offset): Don't use DW_UNSND.
272 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
273
274 2020-09-29 Tom Tromey <tom@tromey.com>
275
276 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
277 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
278 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
279 * dwarf2/attribute.h (struct attribute): Rename methods.
280 * dwarf2/attribute.c (attribute::as_address): Rename from
281 value_as_address.
282 (attribute::as_string): Rename from value_as_string.
283
284 2020-09-29 Tom Tromey <tom@tromey.com>
285
286 * dwarf2/read.c (partial_die_info::read) <case
287 DW_AT_linkage_name>: Use value_as_string.
288 (dwarf2_string_attr): Use value_as_string.
289 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
290 method.
291 * dwarf2/attribute.c (attribute::value_as_string): New method.
292
293 2020-09-29 Pedro Alves <pedro@palves.net>
294
295 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
296 defined before using '#pragma GCC diagnostic' instead of checking
297 __clang__.
298
299 2020-09-28 Tom Tromey <tom@tromey.com>
300
301 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
302 (handle_signal_stop): Update.
303 * procfs.c (procfs_target::insert_watchpoint): Update.
304 * target.h (target_have_steppable_watchpoint): Now a function.
305
306 2020-09-28 Tom Tromey <tom@tromey.com>
307
308 * infrun.c (set_schedlock_func): Update.
309 * target.h (target_can_lock_scheduler): Now a function.
310
311 2020-09-28 Tom Tromey <tom@tromey.com>
312
313 * inferior.h (class inferior) <has_execution>: Update.
314 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
315 * valops.c (find_function_in_inferior)
316 (value_allocate_space_in_inferior): Update.
317 * top.c (kill_or_detach): Update.
318 * target.c (target_preopen, set_target_permissions): Update.
319 (target_has_execution_current): Remove.
320 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
321 Update.
322 * solib.c (update_solib_list, reload_shared_libraries): Update.
323 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
324 * solib-dsbt.c (enable_break): Update.
325 * score-tdep.c (score7_fetch_inst): Update.
326 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
327 Update.
328 * remote.c (remote_target::start_remote)
329 (remote_target::remote_check_symbols, remote_target::open_1)
330 (remote_target::remote_detach_1, remote_target::verify_memory)
331 (remote_target::xfer_partial, remote_target::read_description)
332 (remote_target::get_min_fast_tracepoint_insn_len): Update.
333 * record-full.c (record_full_open_1): Update.
334 * record-btrace.c (record_btrace_target_open): Update.
335 * objc-lang.c (lookup_objc_class, lookup_child_selector)
336 (value_nsstring): Update.
337 * linux-thread-db.c (add_thread_db_info)
338 (thread_db_find_new_threads_silently, check_thread_db_callback)
339 (try_thread_db_load_1, record_thread): Update.
340 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
341 Update.
342 * linux-fork.c (checkpoint_command): Update.
343 * infrun.c (set_non_stop, set_observer_mode)
344 (check_multi_target_resumption, for_each_just_stopped_thread)
345 (maybe_remove_breakpoints, normal_stop)
346 (class infcall_suspend_state): Update.
347 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
348 (info_program_command, attach_command): Update.
349 * infcall.c (call_function_by_hand_dummy): Update.
350 * inf-loop.c (inferior_event_handler): Update.
351 * gcore.c (gcore_command, derive_heap_segment): Update.
352 * exec.c (exec_file_command): Update.
353 * eval.c (evaluate_subexp): Update.
354 * compile/compile.c (compile_to_object): Update.
355 * cli/cli-dump.c (restore_command): Update.
356 * breakpoint.c (update_watchpoint)
357 (update_inserted_breakpoint_locations)
358 (insert_breakpoint_locations, get_bpstat_thread): Update.
359 * target.h (target_has_execution): Remove macro.
360 (target_has_execution_current): Don't declare.
361 (target_has_execution): Rename from target_has_execution_1. Add
362 argument default.
363
364 2020-09-28 Tom Tromey <tom@tromey.com>
365
366 * mi/mi-main.c (exec_reverse_continue)
367 (mi_cmd_list_target_features): Update.
368 * infrun.c (set_exec_direction_func): Update.
369 * target.c (default_execution_direction): Update.
370 * reverse.c (exec_reverse_once): Update.
371 * target.h (target_can_execute_reverse): Now a function.
372
373 2020-09-28 Tom Tromey <tom@tromey.com>
374
375 * tui/tui-regs.c (tui_get_register)
376 (tui_data_window::show_registers): Update.
377 * thread.c (scoped_restore_current_thread::restore)
378 (scoped_restore_current_thread::scoped_restore_current_thread):
379 Update.
380 * regcache-dump.c (regcache_print): Update.
381 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
382 Update.
383 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
384 * mep-tdep.c (current_me_module, current_options): Update.
385 * linux-thread-db.c (thread_db_load): Update.
386 * infcmd.c (registers_info, info_vector_command)
387 (info_float_command): Update.
388 * ia64-tdep.c (ia64_frame_prev_register)
389 (ia64_sigtramp_frame_prev_register): Update.
390 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
391 * gcore.c (derive_stack_segment): Update.
392 * frame.c (get_current_frame, has_stack_frames): Update.
393 * findvar.c (language_defn::read_var_value): Update.
394 * arm-tdep.c (arm_pc_is_thumb): Update.
395 * target.c (target_has_registers): Rename from
396 target_has_registers_1.
397 * target.h (target_has_registers): Remove macro.
398 (target_has_registers): Rename from target_has_registers_1.
399
400 2020-09-28 Tom Tromey <tom@tromey.com>
401
402 * windows-tdep.c (tlb_make_value): Update.
403 * tui/tui-regs.c (tui_data_window::show_registers): Update.
404 * thread.c (scoped_restore_current_thread::restore)
405 (scoped_restore_current_thread::scoped_restore_current_thread)
406 (thread_command): Update.
407 * stack.c (backtrace_command_1, frame_apply_level_command)
408 (frame_apply_all_command, frame_apply_command): Update.
409 * infrun.c (siginfo_make_value, restore_infcall_control_state):
410 Update.
411 * gcore.c (derive_stack_segment): Update.
412 * frame.c (get_current_frame, has_stack_frames): Update.
413 * auxv.c (info_auxv_command): Update.
414 * ada-tasks.c (ada_build_task_list): Update.
415 * target.c (target_has_stack): Rename from target_has_stack_1.
416 * target.h (target_has_stack): Remove macro.
417 (target_has_stack): Rename from target_has_stack_1.
418
419 2020-09-28 Tom Tromey <tom@tromey.com>
420
421 * target.c (target_has_memory): Rename from target_has_memory_1.
422 * tui/tui-regs.c (tui_data_window::show_registers): Update.
423 * thread.c (scoped_restore_current_thread::restore)
424 (scoped_restore_current_thread::scoped_restore_current_thread):
425 Update.
426 * frame.c (get_current_frame, has_stack_frames): Update.
427 * target.h (target_has_memory): Remove macro.
428 (target_has_memory): Rename from target_has_memory_1.
429
430 2020-09-28 Tom Tromey <tom@tromey.com>
431
432 * target.c (target_has_all_memory_1): Remove.
433 * target.h (target_has_all_memory): Remove define.
434 (target_has_all_memory_1): Don't declare.
435
436 2020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
437
438 * ser-base.c: Adjust comments formatting.
439
440 2020-09-27 Tom Tromey <tom@tromey.com>
441
442 PR tui/25342:
443 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
444
445 2020-09-27 Tom Tromey <tom@tromey.com>
446
447 PR tui/25342:
448 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
449
450 2020-09-27 Tom Tromey <tom@tromey.com>
451
452 * unittests/tui-selftests.c: Update.
453 * tui/tui-winsource.h (struct tui_source_window_base)
454 <extra_margin, show_line_number, refresh_pad>: New methods.
455 <m_max_length, m_pad>: New members.
456 (tui_copy_source_line): Update.
457 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
458 first_col, line_width, ndigits parameters. Add length.
459 (tui_source_window_base::show_source_line): Write to pad. Line
460 number now 0-based.
461 (tui_source_window_base::refresh_pad): New method.
462 (tui_source_window_base::show_source_content): Write to pad. Call
463 refresh_pad.
464 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
465 not refill.
466 (tui_source_window_base::update_exec_info): Call
467 show_line_number.
468 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
469 method.
470 <m_digits>: New member.
471 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
472 and m_max_length.
473 (tui_source_window::show_line_number): New method.
474 * tui/tui-io.h (tui_puts): Fix comment.
475 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
476 m_max_length.
477
478 2020-09-27 Tom Tromey <tom@tromey.com>
479
480 * tui/tui-winsource.c
481 (tui_source_window_base::set_is_exec_point_at): Don't call
482 show_source_line.
483
484 2020-09-27 Tom Tromey <tom@tromey.com>
485
486 * python/py-tui.c (class tui_py_window) <refresh_window>: New
487 method.
488 <erase>: Update.
489 <cursor_x, cursor_y>: Remove.
490 <m_inner_window>: New member.
491 (tui_py_window::rerender): Create inner window.
492 (tui_py_window::output): Write to inner window.
493
494 2020-09-26 Gareth Rees <grees@undo.io> (tiny change)
495
496 PR python/26586
497 * cli/cli-script.c (execute_control_commands): don't set
498 instream to nullptr here as this breaks the from_tty argument
499 to gdb.execute in Python.
500 (execute_user_command): set instream to nullptr here instead.
501
502 2020-09-25 Simon Marchi <simon.marchi@efficios.com>
503
504 * infrun.h (infrun_debug_printf): Fix formatting.
505 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
506
507 2020-09-25 Saagar Jha <saagar@saagarjha.com>
508
509 * compile/compile-object-load.h (struct munmap_list): Add
510 explicitly-defined move constructor.
511
512 2020-09-24 Tom Tromey <tromey@adacore.com>
513
514 PR tui/26638:
515 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
516 method.
517 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
518 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
519 (tui_prev_win): Rewrite.
520
521 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
522
523 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
524 in WOW64 processes as SIGINT.
525 * nat/windows-nat.h: Make wow64_process a shared variable.
526 * windows-nat.c: Remove static wow64_process variable.
527
528 2020-09-23 Tom Tromey <tom@tromey.com>
529
530 PR symtab/25470:
531 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
532 offset and bit size.
533 * printcmd.c (print_scalar_formatted): Handle zero-length
534 integer.
535 (print_scalar_formatted): Use bit_size_differs_p.
536 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
537 constant.
538 (union type_specific): <int_stuff>: New member.
539 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
540 methods.
541 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
542 TYPE_SPECIFIC_FIELD.
543 (recursive_dump_type, copy_type_recursive): Update.
544 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
545 DW_AT_data_bit_offset.
546
547 2020-09-23 Tom Tromey <tom@tromey.com>
548
549 * utils.h (class gdb_argv): Add move operators.
550 <append>: New methods.
551 * compile/compile.c (build_argc_argv): Remove.
552 (compile_args_argc): Remove.
553 (compile_args_argv): Change type.
554 (set_compile_args): Simplify.
555 (append_args): Remove.
556 (filter_args): Remove argcp parameter.
557 (get_args): Return gdb_argv. Simplify.
558 (compile_to_object): Update.
559
560 2020-09-23 Tom Tromey <tom@tromey.com>
561
562 * compile/compile-object-run.c (do_module_cleanup)
563 <~do_module_cleanup> :Remove.
564 (do_module_cleanup): Update.
565 * compile/compile-object-load.h (struct munmap_list): Add move
566 assignment operator.
567 <source_file>: Now a std::string.
568 <munmap_list>: Rename. No longer a pointer.
569 * compile/compile-object-load.c (struct setup_sections_data): Add
570 constructor.
571 <setup_one_section>: Declare.
572 <munmap_list>: Move earlier.
573 <m_bfd>: New member.
574 <m_last_size, m_last_section_first, m_last_prot,
575 m_last_max_alignment>: Rename, add initializers where needed.
576 (setup_sections_data::setup_one_section): Rename from
577 setup_sections. Update.
578 (compile_object_load): Update. Don't use bfd_map_over_sections.
579
580 2020-09-23 Tom Tromey <tom@tromey.com>
581
582 * compile/compile-object-run.c (struct do_module_cleanup): Add
583 parameters to constructor. Update destructor.
584 <source_file, scope, scope_data, out_value_type, out_value_addr,
585 munmap_list_head, objfile_name_string>: Remove.
586 <module>: New member.
587 (do_module_cleanup): Update.
588 (compile_object_run): Update.
589
590 2020-09-23 Tom Tromey <tom@tromey.com>
591
592 * compile/compile.c (eval_compile_command): Update.
593 * compile/compile-object-run.h (compile_object_run): Take a
594 compile_module_up.
595 * compile/compile-object-run.c (compile_object_run): Take a
596 compile_module_up.
597 * compile/compile-object-load.h (struct compile_module): Add
598 constructor, destructor.
599 (compile_module_up): New typedef.
600 (compile_object_load): Return compile_object_up.
601 * compile/compile-object-load.c (compile_object_load): Return
602 compile_module_up.
603
604 2020-09-23 Tom Tromey <tom@tromey.com>
605
606 * compile/compile-object-run.c (struct do_module_cleanup): Add
607 constructor, destructor.
608 <objfile_name_string>: Don't use struct hack.
609 (do_module_cleanup): Use delete.
610 (compile_object_run): Use new.
611
612 2020-09-23 Tom Tromey <tom@tromey.com>
613
614 * compile/compile-cplus-types.c
615 (compile_cplus_convert_struct_or_union): Use std::vector.
616 (compile_cplus_convert_func): Likewise.
617 * compile/compile-c-types.c (convert_func): Use std::vector.
618
619 2020-09-21 Tom Tromey <tromey@adacore.com>
620
621 * sparc-tdep.c (sparc32_skip_prologue): Use
622 skip_prologue_using_sal.
623
624 2020-09-19 Tom Tromey <tom@tromey.com>
625
626 * symfile.c (add_section_size_callback): Remove.
627 (load_one_section): Rename from load_section_callback. Change
628 parameters.
629 (generic_load): Use foreach.
630
631 2020-09-19 Tom Tromey <tom@tromey.com>
632
633 * exec.c (add_to_section_table): Remove.
634 (build_section_table): Use foreach.
635
636 2020-09-19 Tom Tromey <tom@tromey.com>
637
638 * elfread.c (elf_locate_sections): Change parameters.
639 (elf_symfile_read): Use foreach.
640
641 2020-09-19 Tom Tromey <tom@tromey.com>
642
643 * cli/cli-dump.c (struct callback_data): Remove.
644 (restore_one_section): Rename from restore_section_callback.
645 Change parameters.
646 (restore_binary_file): Change parameters.
647 (restore_command): Use foreach.
648
649 2020-09-19 Tom Tromey <tom@tromey.com>
650
651 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
652 (gcore_copy_callback): Likewise.
653 (gcore_memory_sections): Use foreach.
654
655 2020-09-19 Tom Tromey <tom@tromey.com>
656
657 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
658 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
659 parameters.
660 (generic_elf_osabi_sniffer): Use foreach.
661 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
662 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
663
664 2020-09-19 Tom Tromey <tom@tromey.com>
665
666 * dwarf2/read.c (locate_dwz_sections): Change parameters.
667 (dwarf2_get_dwz_file): Use foreach.
668 (dwarf2_locate_dwo_sections): Change parameters.
669 (open_and_init_dwo_file): Use foreach.
670 (dwarf2_locate_common_dwp_sections): Change parameters.
671 (open_and_init_dwp_file): Use foreach.
672
673 2020-09-19 Tom Tromey <tom@tromey.com>
674
675 * symfile.h: (find_lowest_section): Don't declare.
676 * symfile.c (find_lowest_section): Now static. Change
677 parameters.
678 (struct place_section_arg): Remove.
679 (place_section): Change parameters.
680 (addr_info_make_relative): Use foreach.
681 (symfile_dummy_outputs): Remove.
682 (default_symfile_relocate): Use foreach.
683
684 2020-09-19 Tom Tromey <tom@tromey.com>
685
686 * objfiles.c (add_to_objfile_sections): Rename from
687 add_to_objfile_sections_full.
688 (add_to_objfile_sections): Remove.
689 (build_objfile_section_table): Use foreach.
690
691 2020-09-19 Tom Tromey <tom@tromey.com>
692
693 * stap-probe.c (get_stap_base_address_1): Remove.
694 (get_stap_base_address): Use foreach.
695
696 2020-09-19 Tom Tromey <tom@tromey.com>
697
698 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
699 parameters.
700 (gdb_bfd_close_or_warn): Use foreach.
701
702 2020-09-19 Tom Tromey <tom@tromey.com>
703
704 * corelow.c (add_to_thread_list): Change parameters.
705 (core_target_open): Use foreach.
706
707 2020-09-19 Tom Tromey <tom@tromey.com>
708
709 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
710 existing function.
711
712 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
713
714 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
715 for arrays.
716
717 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
718
719 * eval.c: Remove 'f-lang.h' include.
720 (value_f90_subarray): Moved to f-lang.c.
721 (eval_call): Renamed to...
722 (evaluate_subexp_do_call): ...this, is no longer static, header
723 comment moved into header file.
724 (evaluate_funcall): Update call to eval_call.
725 (skip_undetermined_arglist): Moved to f-lang.c.
726 (fortran_value_subarray): Likewise.
727 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
728 moved to evaluate_subexp_f.
729 (calc_f77_array_dims): Moved to f-lang.c
730 * expprint.c (print_subexp_funcall): New function.
731 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
732 moved to print_subexp_f, OP_FUNCALL uses new function.
733 (dump_subexp_body_funcall): New function.
734 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
735 moved to dump_subexp_f, OP_FUNCALL uses new function.
736 * expression.h (evaluate_subexp_do_call): Declare.
737 * f-lang.c (value_f90_subarray): Moved from eval.c.
738 (skip_undetermined_arglist): Likewise.
739 (calc_f77_array_dims): Likewise.
740 (fortran_value_subarray): Likewise.
741 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
742 (operator_length_f): Likewise.
743 (print_subexp_f): Likewise.
744 (dump_subexp_body_f): Likewise.
745 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
746 declaration of this operation to here.
747 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
748 support moved to operator_length_f.
749 * parser-defs.h (dump_subexp_body_funcall): Declare.
750 (print_subexp_funcall): Declare.
751 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
752 fortran-operator.def.
753
754 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
755
756 * eval.c (fortran_value_subarray): New function, content is taken
757 from...
758 (evaluate_subexp_standard): ...here, in two places. Now arrays
759 and strings both call the new function.
760 (calc_f77_array_dims): Add header comment, handle strings.
761
762 2020-09-18 Victor Collod <vcollod@nvidia.com>
763
764 PR gdb/26635
765 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
766 (i386_analyze_prologue): Call i386_skip_endbr.
767
768 2020-09-18 Tom Tromey <tromey@adacore.com>
769
770 * windows-nat.c (struct windows_nat_target) <wait>: Update.
771 (windows_nat_target::wait): Update.
772 * target/wait.h (enum target_wait_flag): New. Use
773 DEF_ENUM_FLAGS_TYPE.
774 * target/target.h (target_wait): Change type of options.
775 * target.h (target_options_to_string, default_target_wait):
776 Update.
777 (struct target_ops) <wait>: Change type of options.
778 * target.c (target_wait, default_target_wait, do_option): Change
779 type of "options".
780 (target_options_to_string): Likewise.
781 * target-delegates.c: Rebuild.
782 * target-debug.h (target_debug_print_target_wait_flags): Rename
783 from target_debug_print_options.
784 * sol-thread.c (class sol_thread_target) <wait>: Update.
785 (sol_thread_target::wait): Update.
786 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
787 (rs6000_nat_target::wait): Update.
788 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
789 Update.
790 (remote_target::wait_ns, remote_target::wait_as): Change type of
791 "options".
792 (remote_target::wait): Update.
793 * remote-sim.c (struct gdbsim_target) <wait>: Update.
794 (gdbsim_target::wait): Update.
795 * record-full.c (class record_full_base_target) <wait>: Update.
796 (record_full_wait_1): Change type of "options".
797 (record_full_base_target::wait): Update.
798 * record-btrace.c (class record_btrace_target) <wait>: Update.
799 (record_btrace_target::wait): Update.
800 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
801 Update.
802 (ravenscar_thread_target::wait): Update.
803 * procfs.c (class procfs_target) <wait>: Update.
804 (procfs_target::wait): Update.
805 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
806 * obsd-nat.c (obsd_nat_target::wait): Update.
807 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
808 (nto_procfs_target::wait): Update.
809 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
810 * nbsd-nat.c (nbsd_wait): Change type of "options".
811 (nbsd_nat_target::wait): Update.
812 * linux-thread-db.c (class thread_db_target) <wait>: Update.
813 (thread_db_target::wait): Update.
814 * linux-nat.h (class linux_nat_target) <wait>: Update.
815 * linux-nat.c (linux_nat_target::wait): Update.
816 (linux_nat_wait_1): Update.
817 * infrun.c (do_target_wait_1, do_target_wait): Change type of
818 "options".
819 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
820 * inf-ptrace.c (inf_ptrace_target::wait): Update.
821 * go32-nat.c (struct go32_nat_target) <wait>: Update.
822 (go32_nat_target::wait): Update.
823 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
824 * gnu-nat.c (gnu_nat_target::wait): Update.
825 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
826 * fbsd-nat.c (fbsd_nat_target::wait): Update.
827 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
828 * darwin-nat.c (darwin_nat_target::wait): Update.
829 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
830 (bsd_uthread_target::wait): Update.
831 * aix-thread.c (class aix_thread_target) <wait>: Update.
832 (aix_thread_target::wait): Update.
833
834 2020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
835
836 * compile/compile-object-run.c (create_copied_type_recursive): New
837 function.
838 (compile_object_run): Use new function.
839
840 2020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
841
842 * NEWS: Mention x86_64 Cygwin core file support.
843
844 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
845
846 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
847 (core_process_module_section): Handle NOTE_INFO_MODULE64.
848
849 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
850
851 * windows-tdep.h: Add prototypes.
852 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
853 (i386_windows_core_pid_to_str): Move and rename ...
854 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
855 (windows_core_pid_to_str): ... and here.
856 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
857
858 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
859 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
860 (amd64_windows_init_abi_common): ... and register.
861
862 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
863
864 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
865 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
866
867 2020-09-18 Pedro Alves <pedro@palves.net>
868
869 PR gdb/26631
870 * thread.c (thread_find_command): Switch inferior before calling
871 target methods.
872
873 2020-09-17 Tom Tromey <tromey@adacore.com>
874
875 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
876 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
877 (tdesc_arch_data_up): New typedef.
878 (tdesc_use_registers, tdesc_data_alloc): Update.
879 (tdesc_data_cleanup): Don't declare.
880 * target-descriptions.c (tdesc_data_alloc): Return a
881 tdesc_arch_data_up.
882 (tdesc_arch_data_deleter::operator()): Rename from
883 tdesc_data_cleanup. Change argument type.
884 (tdesc_use_registers): Change early_data to an rvalue reference.
885 (tdesc_use_registers): Don't use delete.
886 * sparc-tdep.c (sparc32_gdbarch_init): Update.
887 * s390-tdep.c (s390_gdbarch_init): Update.
888 * rx-tdep.c (rx_gdbarch_init): Update.
889 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
890 * riscv-tdep.c (riscv_gdbarch_init): Update.
891 * or1k-tdep.c (or1k_gdbarch_init): Update.
892 * nios2-tdep.c (nios2_gdbarch_init): Update.
893 * nds32-tdep.c (nds32_gdbarch_init): Update.
894 * mips-tdep.c (mips_gdbarch_init): Update.
895 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
896 * m68k-tdep.c (m68k_gdbarch_init): Update.
897 * i386-tdep.c (i386_gdbarch_init): Update.
898 * arm-tdep.c (arm_gdbarch_init): Update.
899 * arc-tdep.c (arc_tdesc_init): Update.
900 (arc_gdbarch_init): Update.
901 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
902
903 2020-09-17 Hannes Domani <ssbssa@yahoo.de>
904
905 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
906 for WOW64 processes.
907
908 2020-09-17 Tom Tromey <tom@tromey.com>
909
910 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
911
912 2020-09-17 Tom Tromey <tom@tromey.com>
913
914 * value.c (preserve_values): Update.
915 * python/py-type.c (save_objfile_types): Update.
916 * guile/scm-type.c (save_objfile_types): Update.
917 * gdbtypes.h (create_copied_types_hash): Return htab_up.
918 * gdbtypes.c (create_copied_types_hash): Return htab_up.
919 * compile/compile-object-run.c (compile_object_run): Update.
920
921 2020-09-17 Tom Tromey <tom@tromey.com>
922
923 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
924 Remove.
925 <m_table>: Now htab_up.
926 * typeprint.c (typedef_hash_table::recursively_update)
927 (typedef_hash_table::add_template_parameters)
928 (typedef_hash_table::typedef_hash_table): Update.
929 (typedef_hash_table::~typedef_hash_table): Remove.
930 (typedef_hash_table::typedef_hash_table)
931 (typedef_hash_table::find_global_typedef)
932 (typedef_hash_table::find_typedef): Update.
933
934 2020-09-17 Tom Tromey <tom@tromey.com>
935
936 * target-descriptions.c (tdesc_use_registers): Use htab_up.
937
938 2020-09-17 Tom Tromey <tom@tromey.com>
939
940 * linespec.c (class decode_compound_collector)
941 <~decode_compound_collector>: Remove.
942 <m_unique_syms>: Now htab_up.
943 (decode_compound_collector::operator ()): Update.
944 (class symtab_collector) <~symtab_collector>: Remove.
945 <m_symtab_table>: Now htab_up.
946 (symtab_collector::operator ()): Update.
947
948 2020-09-17 Tom Tromey <tom@tromey.com>
949
950 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
951 (filename_seen_cache::clear): Update.
952 (~filename_seen_cache): Remove.
953 (filename_seen_cache::seen): Update.
954 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
955 htab_up.
956 <~filename_seen_cache>: Remove.
957 <traverse>: Update.
958
959 2020-09-17 Tom Tromey <tom@tromey.com>
960
961 * completer.c (completion_tracker::discard_completions)
962 (completion_tracker::~completion_tracker)
963 (completion_tracker::maybe_add_completion)
964 (completion_tracker::remove_completion)
965 (completion_tracker::recompute_lowest_common_denominator)
966 (completion_tracker::build_completion_result): Update.
967 * completer.h (class completion_tracker) <have_completions>:
968 Update.
969 <m_entries_hash>: Now htab_up.
970
971 2020-09-17 Tom Tromey <tom@tromey.com>
972
973 * breakpoint.c (ambiguous_names_p): Use htab_up.
974
975 2020-09-17 Tom Tromey <tom@tromey.com>
976
977 * auto-load.c (struct auto_load_pspace_info)
978 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
979 <loaded_script_files, loaded_script_texts>: Change type to
980 htab_up.
981 (~auto_load_pspace_info) Remove.
982 (init_loaded_scripts_info, maybe_add_script_file)
983 (maybe_add_script_text, auto_load_info_scripts): Update.
984
985 2020-09-17 Tom Tromey <tromey@adacore.com>
986
987 * c-exp.y (name_obstack): Now static.
988
989 2020-09-17 Chungyi Chi <demonic@csie.io>
990
991 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
992
993 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
994
995 * breakpoint.h (init_catchpoint): Change int parameter to bool.
996 (add_solib_catchpoint): Likewise.
997 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
998 to bool.
999 (add_solib_catchpoint): Change int parameter/variable to bool.
1000 (catch_load_or_unload): Likewise.
1001 (init_catchpoint): Likewise.
1002 (create_fork_vfork_event_catchpoint): Likewise.
1003 (catch_fork_command_1): Likewise.
1004 (catch_exec_command_1): Likewise.
1005
1006 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
1007
1008 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
1009 Change instance_flags to m_instance_flags.
1010
1011 2020-09-16 Tom Tromey <tromey@adacore.com>
1012
1013 PR gdb/26598:
1014 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
1015
1016 2020-09-16 John Baldwin <jhb@FreeBSD.org>
1017
1018 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
1019 PL_FLAG_EXEC.
1020 (fbsd_nat_target::insert_exec_catchpoint)
1021 (fbsd_nat_target::remove_exec_catchpoint): Always define.
1022 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
1023 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
1024
1025 2020-09-16 John Baldwin <jhb@FreeBSD.org>
1026
1027 * configure.ac: Remove check for kinfo_getvmmap().
1028 * configure, config.in: Regenerate.
1029 * fbsd-nat.c (fbsd_read_mapping): Remove
1030 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
1031 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
1032 kinfo_get_vmmap() are always present.
1033
1034 2020-09-16 John Baldwin <jhb@FreeBSD.org>
1035
1036 * fbsd-nat.c: Always include support for
1037 TARGET_OBJECT_SIGNAL_INFO.
1038
1039 2020-09-16 John Baldwin <jhb@FreeBSD.org>
1040
1041 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
1042 sysctl and remove procfs fallback.
1043
1044 2020-09-16 John Baldwin <jhb@FreeBSD.org>
1045
1046 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
1047 * fbsd-nat.h: Likewise.
1048
1049 2020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1050
1051 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
1052 argument.
1053
1054 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1055
1056 * ada-lang.c (ada_language_data): Delete.
1057 (ada_language): Remove references to ada_language_data.
1058 * c-lang.c (c_language_data): Delete.
1059 (c_language): Remove references to c_language_data.
1060 (cplus_language_data): Delete.
1061 (cplus_language): Remove references to cplus_language_data.
1062 (asm_language_data): Delete.
1063 (asm_language): Remove references to asm_language_data.
1064 (minimal_language_data): Delete.
1065 (minimal_language): Remove references to minimal_language_data.
1066 * d-lang.c (d_language_data): Delete.
1067 (d_language): Remove references to d_language_data.
1068 * f-lang.c (f_language_data): Delete.
1069 (f_language): Remove references to f_language_data.
1070 * go-lang.c (go_language_data): Delete.
1071 (go_language): Remove references to go_language_data.
1072 * language.c (unknown_language_data): Delete.
1073 (unknown_language): Remove references to unknown_language_data.
1074 (auto_language_data): Delete.
1075 (auto_language): Remove references to auto_language_data.
1076 * language.h (language_data): Delete struct.
1077 (language_defn): No longer inherit from language_data.
1078 * m2-lang.c (m2_language_data): Delete.
1079 (m2_language): Remove references to m2_language_data.
1080 * objc-lang.c (objc_language_data): Delete.
1081 (objc_language): Remove references to objc_language_data.
1082 * opencl-lang.c (opencl_language_data): Delete.
1083 (opencl_language): Remove references to opencl_language_data.
1084 * p-lang.c (pascal_language_data): Delete.
1085 (pascal_language): Remove references to pascal_language_data.
1086 * rust-lang.c (rust_language_data): Delete.
1087 (rust_language): Remove references to rust_language_data.
1088
1089 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1090
1091 * ada-lang.c (ada_language_data): Remove la_op_print_tab
1092 initializer.
1093 (ada_language::opcode_print_table): New member function.
1094 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
1095 (c_language::opcode_print_table): New member function.
1096 (cplus_language_data): Remove la_op_print_tab initializer.
1097 (cplus_language::opcode_print_table): New member function.
1098 (asm_language_data): Remove la_op_print_tab initializer.
1099 (asm_language::opcode_print_table): New member function.
1100 (minimal_language_data): Remove la_op_print_tab initializer.
1101 (minimal_language::opcode_print_table): New member function.
1102 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
1103 (d_language::opcode_print_table): New member function.
1104 * expprint.c (print_subexp_standard): Update call to
1105 opcode_print_table.
1106 (op_string): Likewise.
1107 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
1108 (f_language::opcode_print_table): New member function.
1109 * go-lang.c (go_language_data): Remove la_op_print_tab
1110 initializer.
1111 (go_language::opcode_print_table): New member function.
1112 * language.c (unknown_language_data): Remove la_op_print_tab
1113 initializer.
1114 (unknown_language::opcode_print_table): New member function.
1115 (auto_language_data): Remove la_op_print_tab initializer.
1116 (auto_language::opcode_print_table): New member function.
1117 * language.h (language_data): Remove la_op_print_tab field.
1118 (language_defn::opcode_print_table): Declare new member function.
1119 * m2-lang.c (m2_language_data): Remove la_op_print_tab
1120 initializer.
1121 (m2_language::opcode_print_table): New member function.
1122 * objc-lang.c (objc_language_data): Remove la_op_print_tab
1123 initializer.
1124 (objc_language::opcode_print_table): New member function.
1125 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
1126 initializer.
1127 (opencl_language::opcode_print_table): New member function.
1128 * p-lang.c (pascal_language_data): Remove la_op_print_tab
1129 initializer.
1130 (pascal_language::opcode_print_table): New member function.
1131 * rust-lang.c (rust_language_data): Remove la_op_print_tab
1132 initializer.
1133 (rust_language::opcode_print_table): New member function.
1134
1135 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1136
1137 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
1138 (ada_language::expression_ops): New member function.
1139 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
1140 (c_language::expression_ops): New member function.
1141 (cplus_language_data): Remove la_exp_desc initializer.
1142 (cplus_language::expression_ops): New member function.
1143 (asm_language_data): Remove la_exp_desc initializer.
1144 (asm_language::expression_ops): New member function.
1145 (minimal_language_data): Remove la_exp_desc initializer.
1146 (minimal_language::expression_ops): New member function.
1147 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
1148 (d_language::expression_ops): New member function.
1149 * eval.c (evaluate_subexp): Update call to expression_ops.
1150 * expprint.c (print_subexp): Likewise.
1151 (op_name): Likewise.
1152 (dump_subexp_body): Likewise.
1153 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
1154 (f_language::expression_ops): New member function.
1155 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
1156 (go_language::expression_ops): New member function.
1157 * language.c (language_defn::expression_ops): New function.
1158 (unknown_language_data): Remove la_exp_desc initializer.
1159 (auto_language_data): Likewise.
1160 * language.h (language_data): Remove la_exp_desc field.
1161 (language_defn::expression_ops): Declare new member function.
1162 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
1163 (m2_language::expression_ops): New member function.
1164 * objc-lang.c (objc_language_data): Remove la_exp_desc
1165 initializer.
1166 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
1167 initializer.
1168 (opencl_language::expression_ops): New member function.
1169 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
1170 * parse.c (operator_length): Update call to expression_ops.
1171 (exp_iterate): Likewise.
1172 * rust-lang.c (rust_language_data): Remove la_exp_desc
1173 initializer.
1174 (ruse_language::expression_ops): New member function.
1175
1176 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1177
1178 * ada-lang.c (ada_language_data): Remove la_varobj_ops
1179 initializer.
1180 (ada_language::varobj_ops): New member function.
1181 * c-lang.c (c_language_data): Remove la_varobj_ops
1182 initializer.
1183 (cplus_language_data): Likewise.
1184 (cplus_language::varobj_ops): New member function.
1185 (asm_language_data): Remove la_varobj_ops initializer.
1186 (minimal_language_data): Likewise.
1187 * d-lang.c (d_language_data): Likewise.
1188 * f-lang.c (f_language_data): Likewise.
1189 * go-lang.c (go_language_data): Likewise.
1190 * language.c (language_defn::varobj_ops): New function.
1191 (unknown_language_data): Remove la_varobj_ops
1192 initializer.
1193 (auto_language_data): Likewise.
1194 * language.h (language_data): Remove la_varobj_ops field.
1195 (language_defn::varobj_ops): Declare new member function.
1196 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
1197 * objc-lang.c (objc_language_data): Likewise.
1198 * opencl-lang.c (opencl_language_data): Likewise.
1199 * p-lang.c (pascal_language_data): Likewise.
1200 * rust-lang.c (rust_language_data): Likewise.
1201 * varobj.c (varobj_create): Update call to varobj_ops.
1202 * varobj.h (default_varobj_ops): Delete define.
1203
1204 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1205
1206 * ada-lang.c (ada_language_data): Remove la_macro_expansion
1207 initializer.
1208 * c-lang.c (c_language_data): Likewise.
1209 (c_language::macro_expansion): New member function.
1210 (cplus_language_data): Likewise.
1211 (cplus_language::macro_expansion): New member function.
1212 (asm_language_data): Likewise.
1213 (asm_language::macro_expansion): New member function.
1214 (minimal_language_data): Likewise.
1215 (minimal_language::macro_expansion): New member function.
1216 * d-lang.c (d_language_data): Remove la_macro_expansion
1217 initializer.
1218 * f-lang.c (f_language_data): Likewise.
1219 * go-lang.c (go_language_data): Likewise.
1220 * language.c (unknown_language_data): Likewise.
1221 (auto_language_data): Likewise.
1222 * language.h (language_data): Remove la_macro_expansion field.
1223 (language_defn::macro_expansion): New member function.
1224 * m2-lang.c (m2_language_data): Remove la_macro_expansion
1225 initializer.
1226 * objc-lang.c (objc_language_data): Likewise.
1227 (objc_language::macro_expansion): New member function.
1228 * opencl-lang.c (opencl_language_data): Likewise.
1229 (opencl_language::macro_expansion): New member function.
1230 * p-lang.c (pascal_language_data): Remove la_macro_expansion
1231 initializer.
1232 * rust-lang.c (rust_language_data): Likewise.
1233 * symtab.c (default_collect_symbol_completion_matches_break_on):
1234 Update call to macro_expansion.
1235
1236 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1237
1238 * ada-lang.c (ada_language_data): Remove la_array_ordering
1239 initializer.
1240 * c-lang.c (c_language_data): Likewise.
1241 (cplus_language_data): Likewise.
1242 (asm_language_data): Likewise.
1243 (minimal_language_data): Likewise.
1244 * d-lang.c (d_language_data): Likewise.
1245 * dwarf2/read.c (read_array_order): Update for call to
1246 array_ordering.
1247 * f-lang.c (f_language_data): Remove la_array_ordering
1248 initializer.
1249 (f_language::array_ordering): New member function.
1250 * go-lang.c (go_language_data): Remove la_array_ordering
1251 initializer.
1252 * language.c (unknown_language_data): Likewise.
1253 (auto_language_data): Likewise.
1254 * language.h (language_data): Delete la_array_ordering field.
1255 (language_defn::array_ordering): New member function.
1256 * m2-lang.c (m2_language_data): Remove la_array_ordering
1257 initializer.
1258 * objc-lang.c (objc_language_data): Likewise.
1259 * opencl-lang.c (opencl_language_data): Likewise.
1260 * p-lang.c (pascal_language_data): Likewise.
1261 * rust-lang.c (rust_language_data): Likewise.
1262
1263 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1264
1265 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
1266 initializer.
1267 * c-lang.c (c_language_data): Likewise.
1268 (cplus_language_data): Likewise.
1269 (asm_language_data): Likewise.
1270 (minimal_language_data): Likewise.
1271 * d-lang.c (d_language_data): Likewise.
1272 * f-lang.c (f_language_data): Likewise.
1273 (f_language::case_sensitivity): New member function.
1274 * go-lang.c (go_language_data): Remove la_case_sensitivity
1275 initializer.
1276 * language.c (enum case_mode): Moved here from language.h.
1277 (case_mode): Make static.
1278 (show_case_command): Update for case_sensitivity being a method.
1279 (set_case_command): Likewise.
1280 (set_range_case): Likewise.
1281 (unknown_language_data): Remove la_case_sensitivity initializer.
1282 (auto_language_data): Likewise.
1283 * language.h (case_mode): Delete, move enum declaration to
1284 language.c.
1285 (language_data): Delete la_case_sensitivity field.
1286 (language_defn::case_sensitivity): New member function.
1287 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
1288 initializer.
1289 * objc-lang.c (objc_language_data): Likewise.
1290 * opencl-lang.c (opencl_language_data): Likewise.
1291 * p-lang.c (pascal_language_data): Likewise.
1292 * rust-lang.c (rust_language_data): Likewise.
1293
1294 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1295
1296 * ada-lang.c (ada_language_data): Remove la_range_check
1297 initializer.
1298 * c-lang.c (c_language_data): Likewise.
1299 (cplus_language_data): Likewise.
1300 (asm_language_data): Likewise.
1301 (minimal_language_data): Likewise.
1302 * d-lang.c (d_language_data): Likewise.
1303 * f-lang.c (f_language_data): Likewise.
1304 (f_language::range_checking_on_by_default): New member function.
1305 * go-lang.c (go_language_data): Remove la_range_check initializer.
1306 * language.c (enum range_mode): Moved here from language.h.
1307 (range_mode): Made static.
1308 (show_range_command): Update to use
1309 range_checking_on_by_default.
1310 (set_range_command): Likewise.
1311 (set_range_case): Likewise.
1312 (unknown_language_data): Remove la_range_check initializer.
1313 (auto_language_data): Likewise.
1314 * language.h (range_mode): Delete. Enum definition moved to
1315 language.c.
1316 (language_data): Remove la_range_check field.
1317 (language_defn::range_checking_on_by_default): New member
1318 function.
1319 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
1320 (m2_language::range_checking_on_by_default): New member function.
1321 * objc-lang.c (objc_language_data): Remove la_range_check
1322 initializer.
1323 * opencl-lang.c (opencl_language_data): Likewise.
1324 * p-lang.c (pascal_language_data): Likewise.
1325 (pascal_language::range_checking_on_by_default): New member
1326 function.
1327 * rust-lang.c (rust_language_data): Remove la_range_check
1328 initializer.
1329 (rust_language::range_checking_on_by_default): New member
1330 function.
1331
1332 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1333
1334 * dwarf2/read.c (dwarf2_physname): Remove special case for
1335 language_go.
1336 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
1337 member function.
1338
1339 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1340
1341 * ada-lang.c (ada_language_data): Remove
1342 la_store_sym_names_in_linkage_form_p initializer.
1343 (ada_language::store_sym_names_in_linkage_form_p): New member
1344 function.
1345 * c-lang.c (c_language_data): Remove
1346 la_store_sym_names_in_linkage_form_p initializer.
1347 (c_language::store_sym_names_in_linkage_form_p): New member
1348 function.
1349 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
1350 initializer.
1351 (asm_language_data): Likewise.
1352 (asm_language::store_sym_names_in_linkage_form_p): New member
1353 function.
1354 (minimal_language_data): Remove
1355 la_store_sym_names_in_linkage_form_p initializer.
1356 (minimal_language::store_sym_names_in_linkage_form_p): New member
1357 function.
1358 * d-lang.c (d_language_data): Remove
1359 la_store_sym_names_in_linkage_form_p initializer.
1360 * dwarf2/read.c (dwarf2_physname): Update call to
1361 store_sym_names_in_linkage_form_p.
1362 * f-lang.c (f_language_data): Remove
1363 la_store_sym_names_in_linkage_form_p initializer.
1364 * go-lang.c (go_language_data): Remove
1365 la_store_sym_names_in_linkage_form_p initializer.
1366 * language.c (unknown_language_data): Remove
1367 la_store_sym_names_in_linkage_form_p initializer.
1368 (unknown_language::store_sym_names_in_linkage_form_p): New member
1369 function.
1370 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
1371 initializer.
1372 (auto_language::store_sym_names_in_linkage_form_p): New member
1373 function.
1374 * language.h (language_data): Remove
1375 la_store_sym_names_in_linkage_form_p member variable.
1376 (language_defn::store_sym_names_in_linkage_form_p): New member
1377 function.
1378 * m2-lang.c (m2_language_data): Remove
1379 la_store_sym_names_in_linkage_form_p initializer.
1380 * objc-lang.c (objc_language_data): Likewise.
1381 * opencl-lang.c (opencl_language_data): Likewise.
1382 * p-lang.c (pascal_language_data): Likewise.
1383 * rust-lang.c (rust_language_data): Likewise.
1384
1385 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1386
1387 * ada-lang.c (ada_language_data): Remove string_lower_bound
1388 initializer.
1389 * c-lang.c (c_language_data): Likewise.
1390 (cplus_language_data): Likewise.
1391 (asm_language_data): Likewise.
1392 (minimal_language_data): Likewise.
1393 * d-lang.c (d_language_data): Likewise.
1394 * f-lang.c (f_language_data): Likewise.
1395 * go-lang.c (go_language_data): Likewise.
1396 * language.c (unknown_language_data): Likewise.
1397 (auto_language_data): Likewise.
1398 * language.h (language_data): Remove string_lower_bound field.
1399 (language_defn::string_lower_bound): New member function.
1400 * m2-lang.c (m2_language_data): Remove string_lower_bound
1401 initializer.
1402 (m2_language::string_lower_bound): New member function.
1403 * objc-lang.c (objc_language_data): Remove string_lower_bound
1404 initializer.
1405 * opencl-lang.c (opencl_language_data): Likewise.
1406 * p-lang.c (pascal_language_data): Likewise.
1407 * rust-lang.c (rust_language_data): Likewise.
1408 * valops.c (value_cstring): Update call to string_lower_bound.
1409 (value_string): Likewise.
1410 * value.c (allocate_repeated_value): Likewise.
1411
1412 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1413
1414 * valops.c (value_repeat): Fix incorrect argument name in comment.
1415
1416 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1417
1418 * ada-lang.c (ada_language_data): Remove c_style_arrays
1419 initializer.
1420 (ada_language::c_style_arrays_p): New member fuction.
1421 * c-lang.c (c_language_data): Remove c_style_arrays
1422 initializer.
1423 (cplus_language_data): Likewise.
1424 (asm_language_data): Likewise.
1425 (minimal_language_data): Likewise.
1426 * d-lang.c (d_language_data): Likewise.
1427 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
1428 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
1429 (f_language::c_style_arrays_p): New member function.
1430 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
1431 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
1432 * language.c (unknown_language_data): Remove c_style_arrays
1433 initializer.
1434 (auto_language_data): Likewise.
1435 * language.h (language_data): Remove c_style_arrays field.
1436 (language_defn::c_style_arrays_p): New member function.
1437 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
1438 (m2_language::c_style_arrays_p): New member function.
1439 * objc-lang.c (objc_language_data): Remove c_style_arrays
1440 initializer.
1441 * opencl-lang.c (opencl_language_data): Likewise.
1442 * p-lang.c (pascal_language_data): Likewise.
1443 * rust-lang.c (rust_language_data): Likewise.
1444 * valarith.c (value_subscript): Update call to c_style_arrays_p,
1445 and update local variable to a bool.
1446 * valops.c (value_cast): Update call to c_style_arrays_p.
1447 (value_array): Likewise.
1448 * value.c (coerce_array): Likewise.
1449
1450 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1451
1452 * ada-lang.c (ada_language_data): Remove la_language initializer.
1453 * c-lang.c (c_language_data): Likewise.
1454 (cplus_language_data): Likewise.
1455 (asm_language_data): Likewise.
1456 (minimal_language_data): Likewise.
1457 * d-lang.c (d_language_data): Likewise.
1458 * f-lang.c (f_language_data): Likewise.
1459 * go-lang.c (go_language_data): Likewise.
1460 * language.c (unknown_language_data): Likewise.
1461 (auto_language_data): Likewise.
1462 * language.h (language_data): Remove la_language field.
1463 (language_defn::language_defn): Initialise la_language field.
1464 (language_defn::la_language): New member variable.
1465 * m2-lang.c (m2_language_data): Remove la_language field.
1466 * objc-lang.c (objc_language_data): Likewise.
1467 * opencl-lang.c (opencl_language_data): Likewise.
1468 * p-lang.c (pascal_language_data): Likewise.
1469 * rust-lang.c (rust_language_data): Likewise.
1470
1471 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1472
1473 * ada-lang.c (ada_extensions): Delete, moved into
1474 ada_language::filename_extensions.
1475 (ada_language_data): Remove la_filename_extensions initializer.
1476 (ada_language::filename_extensions): New member function.
1477 * c-lang.c (c_extensions): Delete, moved into
1478 c_language::filename_extensions.
1479 (c_language_data): Remove la_filename_extensions initializer.
1480 (c_language::filename_extensions): New member function.
1481 (cplus_extensions): Delete, moved into
1482 cplus_language::filename_extensions.
1483 (cplus_language_data): Remove la_filename_extensions initializer.
1484 (cplus_language::filename_extensions): New member function.
1485 (asm_extensions): Delete, moved into
1486 asm_language::filename_extensions.
1487 (asm_language_data): Remove la_filename_extensions initializer.
1488 (asm_language::filename_extensions): New member function.
1489 (minimal_language_data): Remove la_filename_extensions
1490 initializer.
1491 * d-lang.c (d_extensions): Delete, moved into
1492 d_language::filename_extensions.
1493 (d_language_data): Remove la_filename_extensions initializer.
1494 (d_language::filename_extensions): New member function.
1495 * f-lang.c (f_extensions): Delete, moved into
1496 f_language::filename_extensions.
1497 (f_language_data): Remove la_filename_extensions initializer.
1498 (f_language::filename_extensions): New member function.
1499 * go-lang.c (go_language_data): Remove la_filename_extensions
1500 initializer.
1501 * language.c (add_set_language_command): Update now that
1502 filename_extensions returns a vector.
1503 (unknown_language_data): Remove la_filename_extensions
1504 initializer.
1505 (auto_language_data): Likewise.
1506 * language.h (language_data): Remove la_filename_extensions field.
1507 (language_defn::filename_extensions): New member function.
1508 * m2-lang.c (m2_language_data): Remove la_filename_extensions
1509 initializer.
1510 * objc-lang.c (objc_extensions): Delete, moved into
1511 objc_language::filename_extensions.
1512 (objc_language_data): Remove la_filename_extensions initializer.
1513 (objc_language::filename_extensions): New member function.
1514 * opencl-lang.c (opencl_language_data): Remove
1515 la_filename_extensions initializer.
1516 * p-lang.c (pascal_extensions): Delete, moved into
1517 pascal_language::filename_extensions.
1518 (pascal_language_data): Remove la_filename_extensions initializer.
1519 (pascal_language::filename_extensions): New member function.
1520 * rust-lang.c (rust_extensions): Delete, moved into
1521 rust_language::filename_extensions.
1522 (rust_language_data): Remove la_filename_extensions initializer.
1523 (rust_language::filename_extensions): New member function.
1524 * symfile.c (add_filename_language): Add new assert.
1525
1526 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1527
1528 * ada-lang.c (ada_language_data): Remove la_name and
1529 la_natural_name initializers.
1530 (ada_language::name): New member function.
1531 (ada_language::natural_name): New member function.
1532 * c-lang.c (c_language_data): Remove la_name and
1533 la_natural_name initializers.
1534 (c_language::name): New member function.
1535 (c_language::natural_name): New member function.
1536 (cplus_language_data): Remove la_name and
1537 la_natural_name initializers.
1538 (cplus_language::name): New member function.
1539 (cplus_language::natural_name): New member function.
1540 (asm_language_data): Remove la_name and
1541 la_natural_name initializers.
1542 (asm_language::name): New member function.
1543 (asm_language::natural_name): New member function.
1544 (minimal_language_data): Remove la_name and
1545 la_natural_name initializers.
1546 (minimal_language::name): New member function.
1547 (minimal_language::natural_name): New member function.
1548 * compile/compile.c (compile_to_object): Update call to
1549 lanugage_defn::name.
1550 * d-lang.c (d_language_data): Remove la_name and
1551 la_natural_name initializers.
1552 (d_language::name): New member function.
1553 (d_language::natural_name): New member function.
1554 * expprint.c (print_subexp_standard): Update call to
1555 language_defn::name.
1556 (dump_raw_expression): Likewise
1557 (dump_prefix_expression): Likewise.
1558 * f-lang.c (f_language_data): Remove la_name and
1559 la_natural_name initializers.
1560 (f_language::name): New member function.
1561 (f_language::natural_name): New member function.
1562 * go-lang.c (go_language_data): Remove la_name and
1563 la_natural_name initializers.
1564 (go_language::name): New member function.
1565 (go_language::natural_name): New member function.
1566 * language.c (show_language_command): Update call to
1567 language_defn::name.
1568 (set_language_command): Likewise.
1569 (language_enum): Likewise.
1570 (language_str): Likewise.
1571 (add_set_language_command): Likewise, use
1572 language_defn::natural_name in the doc string.
1573 (unknown_language_data): Remove la_name and
1574 la_natural_name initializers.
1575 (unknown_language::name): New member function.
1576 (unknown_language::natural_name): New member function.
1577 (auto_language_data): Remove la_name and
1578 la_natural_name initializers.
1579 (auto_language::name): New member function.
1580 (auto_language::natural_name): New member function.
1581 (language_lookup_primitive_type_as_symbol): Update call to
1582 language_defn::name.
1583 * language.h (language_data): Remove la_name and la_natural_name
1584 member variables.
1585 (language_defn::name): New member function.
1586 (language_defn::natural_name): New member function.
1587 * m2-lang.c (m2_language_data): Remove la_name and
1588 la_natural_name initializers.
1589 (m2_language::name): New member function.
1590 (m2_language::natural_name): New member function.
1591 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
1592 language_defn::natural_name.
1593 * objc-lang.c (objc_language_data): Remove la_name and
1594 la_natural_name initializers.
1595 (objc_language::name): New member function.
1596 (objc_language::natural_name): New member function.
1597 * opencl-lang.c (opencl_language_data): Remove la_name and
1598 la_natural_name initializers.
1599 (opencl_language::name): New member function.
1600 (opencl_language::natural_name): New member function.
1601 * p-lang.c (pascal_language_data): Remove la_name and
1602 la_natural_name initializers.
1603 (pascal_language::name): New member function.
1604 (pascal_language::natural_name): New member function.
1605 * rust-lang.c (rust_language_data): Remove la_name and
1606 la_natural_name initializers.
1607 (rust_language::name): New member function.
1608 (rust_language::natural_name): New member function.
1609 * symtab.c (lookup_language_this): Update call to
1610 language_defn::name.
1611
1612 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1613
1614 * ada-lang.c (ada_language_data): Remove la_name_of_this
1615 initializer.
1616 * ax-gdb.c (gen_expr): Update call to name_of_this.
1617 * c-exp.y (classify_name): Likewise.
1618 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
1619 (cplus_language_data): Likewise.
1620 (cplus_language::name_of_this): New member function.
1621 (asm_language_data): Remove la_name_of_this initializer.
1622 (minimal_language_data): Likewise.
1623 * d-lang.c (d_language_data): Likewise.
1624 (d_language::name_of_this): New member function.
1625 * expprint.c (print_subexp_standard): Update call to name_of_this.
1626 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
1627 * go-lang.c (go_language_data): Likewise.
1628 * language.c (unknown_language_data): Likewise.
1629 (unknown_language::name_of_this): New member function.
1630 (auto_language_data): Remove la_name_of_this initializer.
1631 (auto_language::name_of_this): New member function.
1632 * language.h (language_data): Delete la_name_of_this member
1633 variable.
1634 (language_defn::name_of_this): New member function.
1635 * m2-lang.c (m2_language_data): Remove la_name_of_this
1636 initializer.
1637 * objc-lang.c (objc_language_data): Likewise.
1638 (objc_language::name_of_this): New member function.
1639 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
1640 initializer.
1641 * p-lang.c (pascal_language_data): Likewise.
1642 (pascal_language::name_of_this): New member function.
1643 * rust-lang.c (rust_language_data): Remove la_name_of_this
1644 initializer.
1645 * symtab.c (lookup_language_this): Update call to name_of_this.
1646 (lookup_symbol_aux): Likewise.
1647 * valops.c (value_of_this): Likewise.
1648
1649 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1650
1651 * ada-lang.c (ada_language_data): Remove
1652 la_struct_too_deep_ellipsis initializer.
1653 (ada_language::struct_too_deep_ellipsis): New member function.
1654 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
1655 initializer.
1656 (cplus_language_data): Likewise.
1657 (asm_language_data): Likewise.
1658 (minimal_language_data): Likewise.
1659 * cp-valprint.c (cp_print_value): Update call to
1660 struct_too_deep_ellipsis.
1661 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
1662 initializer.
1663 * f-lang.c (f_language_data): Likewise.
1664 (f_language::struct_too_deep_ellipsis): New member function.
1665 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
1666 initializer.
1667 * language.c (unknown_language_data): Likewise.
1668 (auto_language_data): Likewise.
1669 * language.h (language_data): Delete la_struct_too_deep_ellipsis
1670 member variable.
1671 (language_defn::struct_too_deep_ellipsis): New member function.
1672 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
1673 initializer.Q
1674 * objc-lang.c (objc_language_data): Likewise.
1675 * opencl-lang.c (opencl_language_data): Likewise.
1676 * p-lang.c (pascal_language_data): Likewise.
1677 * rust-lang.c (rust_language_data): Likewise.
1678 * valprint.c (val_print_check_max_depth): Update call to
1679 struct_too_deep_ellipsis.
1680
1681 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
1682
1683 * MAINTAINERS (Write After Approval): Add myself.
1684
1685 2020-09-15 Tom Tromey <tom@tromey.com>
1686
1687 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
1688 Remove.
1689
1690 2020-09-15 Tom Tromey <tom@tromey.com>
1691
1692 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
1693 and TYPE_CODE_METHODPTR cases.
1694 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
1695 (c_value_print_inner): Update.
1696 * valprint.c (generic_value_print_memberptr): New function, from
1697 c_value_print_memberptr.
1698 (generic_value_print): Use it. Call cplus_print_method_ptr.
1699
1700 2020-09-15 Tom Tromey <tromey@adacore.com>
1701
1702 * python/python-internal.h (PyInt_FromLong): Remove define.
1703 * python/py-value.c (convert_value_from_python): Use
1704 gdb_py_object_from_longest.
1705 * python/py-type.c (typy_get_code): Use
1706 gdb_py_object_from_longest.
1707 * python/py-symtab.c (salpy_get_line): Use
1708 gdb_py_object_from_longest.
1709 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
1710 gdb_py_object_from_longest.
1711 * python/py-record.c (recpy_gap_reason_code): Use
1712 gdb_py_object_from_longest.
1713 * python/py-record-btrace.c (recpy_bt_insn_size)
1714 (recpy_bt_func_level, btpy_list_count): Use
1715 gdb_py_object_from_longest.
1716 * python/py-infthread.c (gdbpy_create_ptid_object): Use
1717 gdb_py_object_from_longest. Fix error handling.
1718 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
1719 gdb_py_object_from_longest.
1720 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
1721 gdb_py_object_from_longest.
1722 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
1723 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
1724 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
1725
1726 2020-09-15 Tom Tromey <tromey@adacore.com>
1727
1728 * python/python.c (gdbpy_parameter_value): Use
1729 gdb_py_object_from_ulongest.
1730
1731 2020-09-15 Tom Tromey <tromey@adacore.com>
1732
1733 * python/py-infevents.c (create_register_changed_event_object):
1734 Use gdb_py_object_from_longest.
1735 * python/py-exitedevent.c (create_exited_event_object): Use
1736 gdb_py_object_from_longest.
1737
1738 2020-09-15 Tom Tromey <tromey@adacore.com>
1739
1740 * python/python.c (gdbpy_parameter_value): Use
1741 gdb_py_object_from_longest.
1742 * python/py-type.c (convert_field, typy_range): Use
1743 gdb_py_object_from_longest.
1744 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
1745 gdb_py_object_from_longest.
1746 * python/py-lazy-string.c (stpy_get_length): Use
1747 gdb_py_object_from_longest.
1748 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
1749 gdb_py_object_from_longest.
1750 * python/py-infevents.c (create_memory_changed_event_object): Use
1751 gdb_py_object_from_longest.
1752 * python/py-inferior.c (infpy_get_num): Use
1753 gdb_py_object_from_longest.
1754 (infpy_get_pid): Likewise.
1755
1756 2020-09-15 Tom Tromey <tromey@adacore.com>
1757
1758 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
1759 defines.
1760 * python/py-value.c (valpy_long): Use
1761 gdb_py_object_from_ulongest.
1762 * python/py-symtab.c (salpy_get_pc): Use
1763 gdb_py_object_from_ulongest.
1764 (salpy_get_last): Likewise.
1765 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
1766 gdb_py_object_from_ulongest.
1767 * python/py-lazy-string.c (stpy_get_address): Use
1768 gdb_py_object_from_ulongest.
1769 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
1770 * python/py-arch.c (archpy_disassemble): Use
1771 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
1772 error handling.
1773
1774 2020-09-15 Tom Tromey <tromey@adacore.com>
1775
1776 * python/python-internal.h (gdb_py_long_from_longest): Remove
1777 defines.
1778 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
1779 * python/py-type.c (convert_field, typy_get_sizeof): Use
1780 gdb_py_object_from_longest.
1781 * python/py-record-btrace.c (btpy_list_index): Use
1782 gdb_py_object_from_longest.
1783
1784 2020-09-15 Tom Tromey <tromey@adacore.com>
1785
1786 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
1787 * python/py-record.c (recpy_element_number): Use
1788 gdb_py_object_from_longest.
1789 (recpy_gap_number): Likewise.
1790
1791 2020-09-15 Tom Tromey <tromey@adacore.com>
1792
1793 * top.c (ui::ui): Update.
1794 (highest_ui_num): Remove.
1795 * top.h (struct ui) <num>: Remove.
1796
1797 2020-09-15 Tom Tromey <tromey@adacore.com>
1798
1799 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
1800 * ui-style.c (ansi_regex_text): Now array.
1801 * rust-exp.y (number_regex_text): Now array.
1802 * linespec.c (linespec_quote_characters): Now array.
1803 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
1804 Now arrays.
1805
1806 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1807
1808 * debuginfod-support.c (debuginfod_client_deleter): New.
1809 (debuginfod_client_up): New.
1810 (debuginfod_init): Return debuginfod_client_up.
1811 (debuginfod_source_query): Adjust.
1812 (debuginfod_debuginfo_query): Adjust.
1813
1814 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1815
1816 * debuginfod-support.c (debuginfod_source_query): Use
1817 make_unique_xstrdup.
1818
1819 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1820
1821 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
1822 with `type::instance_flags`.
1823
1824 2020-09-14 Michael Mullin <masmullin@gmail.com>
1825
1826 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
1827 Remove baton parameter.
1828
1829 2020-09-14 Pedro Alves <pedro@palves.net>
1830
1831 * Makefile.in (SELFTESTS_SRCS): Add
1832 unittests/enum-flags-selftests.c.
1833 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
1834 btrace_function_flags instead of enum btrace_function_flag.
1835 * compile/compile-c-types.c (convert_qualified): Use
1836 enum_flags::raw.
1837 * compile/compile-cplus-symbols.c (convert_one_symbol)
1838 (convert_symbol_bmsym):
1839 * compile/compile-cplus-types.c (compile_cplus_convert_method)
1840 (compile_cplus_convert_struct_or_union_methods)
1841 (compile_cplus_instance::convert_qualified_base):
1842 * go-exp.y (parse_string_or_char): Add cast to int.
1843 * unittests/enum-flags-selftests.c: New file.
1844 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
1845 type to btrace_thread_flags from btrace_thread_flag.
1846 (record_btrace_cancel_resume, record_btrace_step_thread): Change
1847 local's type to btrace_thread_flags from btrace_thread_flag. Add
1848 cast in DEBUG call.
1849
1850 2020-09-14 Pedro Alves <pedro@palves.net>
1851
1852 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
1853 * gdbtypes.c (address_space_name_to_int): Rename to ...
1854 (address_space_name_to_type_instance_flags): ... this.
1855 (address_space_int_to_name): Rename to ...
1856 (address_space_type_instance_flags_to_name): ... this.
1857 * gdbtypes.h (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 * type-stack.c (type_stack::insert): Adjust to rename.
1862 * type-stack.h (type_stack::insert): Likewise.
1863
1864 2020-09-14 Pedro Alves <pedro@palves.net>
1865 Andrew Burgess <andrew.burgess@embecosm.com>
1866
1867 * avr-tdep.c (avr_address_class_type_flags): Return
1868 type_instance_flags.
1869 (avr_address_class_type_flags_to_name): Take a
1870 type_instance_flags.
1871 (avr_address_class_name_to_type_flags): Return bool and take a
1872 type_instance_flags.
1873 * d-lang.c (build_d_types): Use type::set_instance_flags.
1874 * ft32-tdep.c (ft32_address_class_type_flags): Return
1875 type_instance_flags.
1876 (ft32_address_class_type_flags_to_name): Take a
1877 type_instance_flags.
1878 (ft32_address_class_name_to_type_flags): Return bool and take a
1879 type_instance_flags.
1880 (ft32_gdbarch_init): Use type::set_instance_flags.
1881 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
1882 * gdbarch.h, gdbarch.c: Regenerate.
1883 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
1884 (address_class_name_to_type_flags): Use type_instance_flags and
1885 bool.
1886 * gdbtypes.c (address_space_name_to_int)
1887 (address_space_int_to_name, make_qualified_type): Use
1888 type_instance_flags.
1889 (make_qualified_type): Use type_instance_flags and
1890 type::set_instance_flags.
1891 (make_type_with_address_space, make_cv_type, make_vector_type)
1892 (check_typedef): Use type_instance_flags.
1893 (recursive_dump_type): Cast type_instance_flags to unsigned for
1894 printing.
1895 (copy_type_recursive): Use type::set_instance_flags.
1896 (gdbtypes_post_init): Use type::set_instance_flags.
1897 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
1898 <m_instance_flags>: ... this.
1899 <instance_flags, set_instance_flags>: New methods.
1900 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
1901 (SET_TYPE_INSTANCE_FLAGS): New.
1902 (address_space_name_to_int, address_space_int_to_name)
1903 (make_type_with_address_space): Pass flags using
1904 type_instance_flags instead of int.
1905 * stabsread.c (cleanup_undefined_types_noname): Use
1906 type::set_instance_flags.
1907 * s390-tdep.c (s390_address_class_type_flags): Return
1908 type_instance_flags.
1909 (s390_address_class_type_flags_to_name): Take a
1910 type_instance_flags.
1911 (s390_address_class_name_to_type_flags): Return bool and take a
1912 type_instance_flags.
1913 * type-stack.c (type_stack::follow_types): Use
1914 type_instance_flags.
1915 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
1916
1917 2020-09-14 Tom Tromey <tromey@adacore.com>
1918
1919 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
1920 * x86-tdep.c (x86_is_thunk_register_name)
1921 (x86_in_indirect_branch_thunk): Update.
1922 * sparc64-tdep.c (sparc64_fpu_register_names)
1923 (sparc64_cp0_register_names, sparc64_register_names)
1924 (sparc64_pseudo_register_names): Now const.
1925 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
1926 cp0_registers_num>: Now const.
1927 * sparc-tdep.c (sparc_core_register_names)
1928 (sparc32_fpu_register_names, sparc32_cp0_register_names)
1929 (sparc32_pseudo_register_names): Now const.
1930 (validate_tdesc_registers): Update.
1931 * rust-lang.c (rust_extensions): Now const.
1932 * p-lang.c (p_extensions): Now const.
1933 * objc-lang.c (objc_extensions): Now const.
1934 * nto-tdep.c (nto_thread_state_str): Now const.
1935 * moxie-tdep.c (moxie_register_names): Now const.
1936 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
1937 Now const.
1938 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
1939 (mips_linux_reg_names): Now const.
1940 (mips_gdbarch_init): Update.
1941 * microblaze-tdep.c (microblaze_register_names): Now const.
1942 * m68k-tdep.c (m68k_register_names): Now const.
1943 * m32r-tdep.c (m32r_register_names): Now const.
1944 * ia64-tdep.c (ia64_register_names): Now const.
1945 * i386-tdep.h (struct gdbarch_tdep) <register_names,
1946 ymmh_register_names, ymm16h_regnum, mpx_register_names,
1947 k_register_names, zmmh_register_names, xmm_avx512_register_names,
1948 ymm_avx512_register_names, pkeys_register_names>: Now const.
1949 * i386-tdep.c (i386_register_names, i386_zmm_names)
1950 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
1951 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
1952 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
1953 * f-lang.c (f_extensions): Now const.
1954 * d-lang.c (d_extensions): Now const.
1955 * csky-tdep.c (csky_register_names): Now const.
1956 * charset.c (default_charset_names, charset_enum): Now const.
1957 (_initialize_charset): Update.
1958 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
1959 const.
1960 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
1961 (bsd_uthread_solib_loaded): Update.
1962 (bsd_uthread_state): Now const.
1963 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
1964 (amd64_ymm_avx512_names, amd64_ymmh_names)
1965 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
1966 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
1967 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
1968 (amd64_dword_names): Now const.
1969 * agent.c (can_use_agent_enum): Now const.
1970 * ada-tasks.c (task_states, long_task_states): Now const.
1971 * ada-lang.c (known_runtime_file_name_patterns)
1972 (known_auxiliary_function_name_patterns, attribute_names)
1973 (standard_exc, ada_extensions): Now const.
1974
1975 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1976
1977 * bcache.h (struct bcache) <bcache>: Remove constructor.
1978 <m_hash_function, m_compare_function>: Remove.
1979 <~bcache>: Make virtual.
1980 <compare>: Remove static method, introduce virtual method.
1981 <default_hash>: Remove.
1982 <hash>: New virtual method.
1983 * bcache.c (bcache::expand_hash_table): Update.
1984 (bcache::insert): Update.
1985 (bcache::hash): New.
1986 (bcache::compare): Update comment and parameter names.
1987 * gdbtypes.c (types_deeply_equal): Update.
1988 * psymtab.h (struct psymbol_bcache): New struct.
1989 (class psymtab_storage) <psymtab_storage>: Make default.
1990 <psymbol_cache>: Change type to psymbol_bcache.
1991 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
1992 (psymbol_hash): Change to...
1993 (psymbol_bcache::hash): ... this.
1994 (psymbol_compare): Change to...
1995 (psymbol_bcache::compare): ... this.
1996
1997 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1998
1999 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
2000 checking for initial lwp.
2001
2002 2020-09-14 Tom Tromey <tromey@adacore.com>
2003
2004 * m68k-tdep.c (m68k_extract_return_value): Use
2005 pointer_result_regnum.
2006 (m68k_store_return_value): Likewise.
2007 (m68k_reg_struct_return_p): Handle vectors and arrays.
2008 (m68k_return_value): Handle arrays.
2009 (m68k_svr4_return_value): Fix single-element aggregate handling.
2010 Handle long double. Adjust for embedded ABI.
2011 (m68k_svr4_init_abi): Set pointer_result_regnum.
2012 (m68k_embedded_init_abi): New function.
2013 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
2014 (m68k_osabi_sniffer): New function.
2015 (_initialize_m68k_tdep): Register osabi sniffer.
2016 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
2017 member.
2018
2019 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2020
2021 * xml-support.c (xml_fetch_content_from_file): Replace xfree
2022 with gdb::unique_xmalloc_ptr<char>.
2023
2024 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2025
2026 * xml-support.h (xml_fetch_another): Change type to be a
2027 function_view.
2028 (xml_process_xincludes): Remove baton parameter.
2029 (xml_fetch_content_from_file): Change baton parameter to
2030 dirname.
2031 * xml-support.c (struct xinclude_parsing_data)
2032 <xinclude_parsing_data>: Remove baton parameter.
2033 <fetcher_baton>: Remove.
2034 (xinclude_start_include): Adjust.
2035 (xml_process_xincludes): Adjust.
2036 (xml_fetch_content_from_file): Replace baton parameter with
2037 dirname.
2038 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
2039 (xml_init_syscalls_info): Use a lambda.
2040 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
2041 (file_read_description_xml): Use a lambda.
2042 (fetch_available_features_from_target): Change baton parameter
2043 to target_ops.
2044 (target_read_description_xml): Use a lambda.
2045 (target_fetch_description_xml): Use a lambda.
2046 (string_read_description_xml): Update.
2047
2048 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2049
2050 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
2051 uses with type::endianity_is_not_default.
2052
2053 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2054
2055 * gdbtypes.h (struct type) <endianity_is_not_default,
2056 set_endianity_is_not_default>: New methods.
2057 (TYPE_ENDIANITY_NOT_DEFAULT): Use
2058 type::endianity_is_not_default, change all write call sites to
2059 use type::set_endianity_is_not_default.
2060
2061 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2062
2063 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
2064 uses with type::is_fixed_instance.
2065
2066 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2067
2068 * gdbtypes.h (struct type) <is_fixed_instance,
2069 set_is_fixed_instance>: New methods.
2070 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
2071 write call sites to use type::set_is_fixed_instance.
2072
2073 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2074
2075 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
2076 uses with type::is_gnu_ifunc.
2077
2078 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2079
2080 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
2081 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
2082 use type::set_is_gnu_ifunc.
2083
2084 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2085
2086 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
2087 uses with type::stub_is_supported.
2088
2089 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2090
2091 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
2092 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
2093 use type::set_stub_is_supported.
2094
2095 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2096
2097 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
2098 uses with type::is_vector.
2099
2100 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2101
2102 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
2103 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
2104 use type::set_is_vector.
2105
2106 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2107
2108 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
2109 uses with type::has_varargs.
2110
2111 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2112
2113 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
2114 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
2115 use type::set_has_varargs.
2116
2117 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2118
2119 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
2120 uses with type::is_prototyped.
2121
2122 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2123
2124 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
2125 New methods.
2126 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
2127 call sites to use type::set_is_prototyped.
2128
2129 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2130
2131 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
2132 uses with type::target_is_stub.
2133
2134 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2135
2136 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
2137 New methods.
2138 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
2139 sites to use type::set_target_is_stub.
2140
2141 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2142
2143 * gdbtypes.h (TYPE_STUB): Remove, replace all
2144 uses with type::is_stub.
2145
2146 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2147
2148 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
2149 (TYPE_STUB): Use type::is_stub, change all write call sites to
2150 use type::set_is_stub.
2151
2152 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2153
2154 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
2155 type::has_no_signedness.
2156
2157 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2158
2159 * gdbtypes.h (struct type) <has_no_signedness,
2160 set_has_no_signedness>: New methods.
2161 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
2162 call sites to use type::set_has_no_signedness.
2163
2164 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2165
2166 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
2167 type::is_unsigned.
2168
2169 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2170
2171 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
2172 methods.
2173 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
2174 sites to use type::set_is_unsigned.
2175
2176 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
2177 Adam Renquinha <arenquinha@cimeq.qc.ca>
2178
2179 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
2180 pointer and stack frame offset when unwinding.
2181
2182 2020-09-13 Pedro Alves <pedro@palves.net>
2183
2184 * NEWS: Document "-break-insert --qualified".
2185 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
2186
2187 2020-09-13 Pedro Alves <pedro@palves.net>
2188
2189 * linespec.c (classify_mtype, compare_msyms): Delete.
2190 (search_minsyms_for_name): Remove classification logic. Instead
2191 filter out trampoline symbols if we also found an external
2192 function of the same name.
2193
2194 2020-09-13 Joel Brobecker <brobecker@adacore.com>
2195
2196 * NEWS: Create a new section for the next release branch.
2197 Rename the section of the current branch, now that it has
2198 been cut.
2199
2200 2020-09-13 Joel Brobecker <brobecker@adacore.com>
2201
2202 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
2203 * version.in: Bump version to 11.0.50.DATE-git.
2204
2205 2020-09-12 Joel Brobecker <brobecker@adacore.com>
2206
2207 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
2208
2209 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
2210 Felix Willgerodt <Felix.Willgerodt@intel.com>
2211
2212 * gdbarch.sh: Added bfloat16 type.
2213 * gdbarch.c: Regenerated.
2214 * gdbarch.h: Regenerated.
2215 * gdbtypes.c (floatformats_bfloat16): New struct.
2216 (gdbtypes_post_init): Add builtin_bfloat16.
2217 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
2218 (floatformats_bfloat16): New struct.
2219 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
2220 (i386_ymm_type): Add field "v16_bfloat16"
2221 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
2222 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
2223 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
2224 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
2225 * features/i386/64bit-avx512.xml: Add bfloat16 type.
2226 * features/i386/64bit-avx512.c: Regenerated.
2227 * features/i386/64bit-sse.xml: Add bfloat16 type.
2228 * features/i386/64bit-sse.c: Regenerated.
2229
2230 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
2231
2232 * i386-tdep.c (i386_zmm_type): Fix field names.
2233 (i386_ymm_type): Fix field names.
2234
2235 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2236
2237 * breakpoint.c: Fix typo in the help message of the
2238 "set breakpoint condition-evaluation" command.
2239
2240 2020-09-10 Kamil Rytarowski <n54@gmx.com>
2241
2242 * nbsd-nat.c: Include "nat/netbsd-nat.h".
2243 * (nbsd_nat_target::pid_to_exec_file)
2244 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
2245 (nbsd_nat_target::post_startup_inferior)
2246 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
2247 (nbsd_add_threads): Switch local code to common gdb/nat functions.
2248 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
2249 * (nbsd_thread_lister): Remove.
2250
2251 2020-09-10 Kamil Rytarowski <n54@gmx.com>
2252
2253 * fork-inferior.c (startup_inferior): Avoid double free.
2254
2255 2020-09-10 Kamil Rytarowski <n54@gmx.com>
2256
2257 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
2258 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
2259
2260 2020-09-10 Kamil Rytarowski <n54@gmx.com>
2261
2262 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
2263 * netbsd-nat.c: Include <sys/ptrace.h>.
2264 * (netbsd_nat::enable_proc_events): Add.
2265
2266 2020-09-10 Kamil Rytarowski <n54@gmx.com>
2267
2268 * netbsd-nat.h: Include "gdbsupport/function-view.h".
2269 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
2270 (netbsd_nat::for_each_thread): Add.
2271 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
2272 "gdbsupport/common-debug.h".
2273 * (netbsd_nat::netbsd_thread_lister)
2274 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
2275 (netbsd_nat::for_each_thread): Add.
2276
2277 2020-09-10 Kamil Rytarowski <n54@gmx.com>
2278
2279 * netbsd-nat.h: Include <unistd.h>.
2280 * (netbsd_nat::pid_to_exec_file): Add.
2281 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
2282 * (netbsd_nat::pid_to_exec_file) Add.
2283
2284 2020-09-10 Kamil Rytarowski <n54@gmx.com>
2285
2286 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
2287
2288 2020-09-10 Kamil Rytarowski <n54@gmx.com>
2289
2290 * netbsd-nat.h: New file.
2291 * netbsd-nat.c: Likewise.
2292
2293 2020-09-09 Tom Tromey <tromey@adacore.com>
2294
2295 * ada-lang.c (remove_extra_symbols): Do not increment when
2296 removing an element
2297
2298 2020-09-08 Tom Tromey <tromey@adacore.com>
2299
2300 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
2301
2302 2020-09-08 Tom Tromey <tromey@adacore.com>
2303
2304 PR win32/25302:
2305 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
2306 (gdb_bfd_init_data): New function.
2307 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
2308
2309 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2310
2311 * infrun.c (fetch_inferior_event): Use
2312 `switch_to_target_no_thread` to switch the target.
2313
2314 2020-09-06 Tom Tromey <tom@tromey.com>
2315
2316 * symfile.h (dwarf2_free_objfile): Don't declare.
2317
2318 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2319
2320 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
2321 to match 16 byte real/complex type generated by Flang compiler.
2322
2323 2020-09-03 Tom de Vries <tdevries@suse.de>
2324
2325 PR breakpoint/26546
2326 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
2327 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
2328
2329 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
2330
2331 * maint.c (index_digits): New function.
2332 (struct maint_print_section_data): Remove.
2333 (print_bfd_section_info): Remove print_data parameter, add arg
2334 and index_digits.
2335 (print_objfile_section_info): Likewise.
2336 (print_bfd_section_info_maybe_relocated): Likewise (plus
2337 objfile).
2338 (maintenance_info_sections): Adjust calls.
2339
2340 2020-09-02 Tom Tromey <tromey@adacore.com>
2341
2342 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
2343 for null pointers.
2344 (ada_varobj_adjust_for_child_access): Special-case null pointers.
2345
2346 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
2347
2348 * bcache.h (struct bcache) <insert>: Change type of `added` to
2349 pointer to bool.
2350 * bcache.c (bcache::insert): Likewise.
2351 * gdbtypes.c (check_types_worklist): Adjust.
2352 * psymtab.c (add_psymbol_to_bcache): Adjust.
2353
2354 2020-08-31 Kevin Buettner <kevinb@redhat.com>
2355
2356 * corelow.c (unordered_set): Include.
2357 (class core_target): Add field 'm_core_unavailable_mappings'.
2358 (core_target::build_file_mappings): Print only one warning
2359 per inaccessible file. Add unavailable/broken mappings
2360 to m_core_unavailable_mappings.
2361 (core_target::xfer_partial): Call...
2362 (core_target::xfer_memory_via_mappings): New method.
2363
2364 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
2365
2366 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
2367 type to bool.
2368
2369 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
2370
2371 * dwarf2/read.c (struct field_info): Fix indentation.
2372
2373 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
2374
2375 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
2376 ordering in comment.
2377 * frame.c (frame_id_eq): Fix indentation.
2378
2379 2020-08-31 Scott Linder <scott@scottlinder.com>
2380 Simon Marchi <simon.marchi@efficios.com>
2381
2382 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
2383 inline frame ids in outer frame.
2384
2385 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
2386
2387 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
2388 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
2389 (outer_frame_id): Use FID_STACK_OUTER instead of
2390 FID_STACK_INVALID.
2391 (frame_id_p): Don't check for outer_frame_id.
2392
2393 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
2394
2395 * frame-unwind.c (frame_unwind_got_optimized): Don't set
2396 regnum/frame in value. Call allocate_value_lazy.
2397 * frame.c (frame_unwind_register_value): Use
2398 val_print_not_saved.
2399
2400 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
2401
2402 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
2403
2404 2020-08-29 Pedro Alves <pedro@palves.net>
2405
2406 * progspace.c (print_program_space): Use all_inferiors. Switch to
2407 the inferior before calling target_pid_to_str.
2408
2409 2020-08-28 Tom Tromey <tom@tromey.com>
2410
2411 * xcoffread.c (xcoff_end_psymtab): Update comment.
2412 * dbxread.c (dbx_end_psymtab): Update comment.
2413
2414 2020-08-28 Tom de Vries <tdevries@suse.de>
2415
2416 PR breakpoint/26544
2417 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
2418 event_location.
2419 (create_breakpoint): Same.
2420 (base_breakpoint_decode_location): Same.
2421 (bkpt_create_sals_from_location): Same.
2422 (bkpt_decode_location): Same.
2423 (bkpt_probe_create_sals_from_location): Same.
2424 (bkpt_probe_decode_location): Same.
2425 (tracepoint_create_sals_from_location): Same.
2426 (tracepoint_decode_location): Same.
2427 (tracepoint_probe_decode_location): Same.
2428 (strace_marker_create_sals_from_location): Same.
2429 (strace_marker_decode_location): Same.
2430 (create_sals_from_location_default): Same.
2431 (decode_location_default): Same.
2432 * breakpoint.h (struct breakpoint_ops): Same.
2433 (create_breakpoint): Same.
2434 * linespec.h (decode_line_full): Same.
2435 * linespec.c (decode_line_full): Same. Throw error if
2436 result.size () == 0.
2437
2438 2020-08-27 Pedro Alves <pedro@palves.net>
2439
2440 PR gdb/26524
2441 * breakpoint.c (until_break_fsm) <location_breakpoint,
2442 caller_breakpoint>: Delete fields.
2443 <breakpoints>: New field.
2444 <until_break_fsm>: Adjust to save a breakpoint vector instead of
2445 two individual breakpoints.
2446 (until_break_fsm::should_stop): Loop over breakpoints in the
2447 breakpoint vector.
2448 (until_break_fsm::clean_up): Adjust to clear the breakpoints
2449 vector.
2450 (until_break_command): Handle location expanding into multiple
2451 sals.
2452
2453 2020-08-27 Pedro Alves <pedro@palves.net>
2454
2455 PR gdb/26523
2456 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
2457 bp_until breakpoints user-specified locations. Update intro
2458 comment.
2459
2460 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
2461
2462 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
2463 gdb_bfd_sections): New.
2464 * maint.c (print_bfd_section_info): Change param type to
2465 maint_print_section_data.
2466 (print_objfile_section_info): Likewise.
2467 (print_bfd_section_info_maybe_relocated): Likewise.
2468 (maintenance_info_sections): Use gdb_bfd_sections.
2469
2470 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
2471
2472 * MAINTAINERS: Add ARC target and maintainer.
2473
2474 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
2475
2476 * configure.tgt: ARC support for GNU/Linux.
2477 * Makefile.in (ALL_TARGET_OBJS): Likewise.
2478 * arc-linux-tdep.c: New file.
2479 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
2480 * arc-tdep.c (arc_write_pc): Use it.
2481
2482 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
2483
2484 * arc-tdep.c (arc_check_for_hardware_loop): New.
2485 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
2486
2487 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
2488
2489 * arc-tdep.h: Include "gdbarch.h".
2490
2491 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
2492
2493 * arch/arc.h
2494 (arc_gdbarch_features): New class to stir the selection of target XML.
2495 (arc_create_target_description): Use FEATURES to choose XML target.
2496 (arc_lookup_target_description): Use arc_create_target_description
2497 to create _new_ target descriptions or return the already created
2498 ones if the FEATURES is the same.
2499 * arch/arc.c: Implementation of prototypes described above.
2500 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
2501 (arc_gdbarch_features_init): Initialize the FEATURES struct.
2502 * arc-tdep.c (*_feature_name): Make feature names consistent.
2503 (arc_register_feature): A new struct to hold information about
2504 registers of a particular target/feature.
2505 (arc_check_tdesc_feature): Check if XML provides registers in
2506 compliance with ARC_REGISTER_FEATURE structs.
2507 (arc_update_acc_reg_names): Add aliases for r58 and r59.
2508 (determine_*_reg_feature_set): Which feature name to look for.
2509 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
2510 (mach_type_to_arc_isa): Convert from a set of binutils machine types
2511 to expected ISA enums to be used in arc_gdbarch_features structs.
2512 * features/Makefile (FEATURE_XMLFILES): Add new files.
2513 * gdb/features/arc/v1-aux.c: New file.
2514 * gdb/features/arc/v1-aux.xml: Likewise.
2515 * gdb/features/arc/v1-core.c: Likewise.
2516 * gdb/features/arc/v1-core.xml: Likewise.
2517 * gdb/features/arc/v2-aux.c: Likewise.
2518 * gdb/features/arc/v2-aux.xml: Likewise.
2519 * gdb/features/arc/v2-core.c: Likewise.
2520 * gdb/features/arc/v2-core.xml: Likewise.
2521 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
2522
2523 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
2524 Andrew Burgess <andrew.burgess@embecosm.com>
2525
2526 PR m2/26372
2527 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
2528 an assert. Remove single element array indexing pattern as the
2529 MULTI_SUBSCRIPT support will handle this case too.
2530
2531 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
2532
2533 * value.h (valprint_check_validity): Move declaration from
2534 here...
2535 * valprint.h (valprint_check_validity): ... to here.
2536
2537 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
2538
2539 * debug.h: New file.
2540 * debug.c (debug_prefixed_vprintf): New function.
2541 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
2542 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
2543
2544 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
2545
2546 * infrun.h (infrun_debug_printf_1): New function declaration.
2547 (infrun_debug_printf): New macro.
2548 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
2549 throughout.
2550 (infrun_debug_printf): New function.
2551 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
2552 (handle_jit_event): Likewise.
2553
2554 2020-08-21 Mark Wielaard <mark@klomp.org>
2555
2556 * ada-lex.l: Extend register warnings diagnostics comment for g++.
2557
2558 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
2559
2560 * frame.c (enum class frame_id_status): New.
2561 (struct frame_info) <this_id::p>: Change type to frame_id_status.
2562 (fprintf_frame): Update.
2563 (compute_frame_id): Set frame id status to "computing" on entry.
2564 Set it back to "not_computed" on failure and to "computed" on
2565 success.
2566 (get_frame_id): Assert the frame id is not being computed.
2567 (create_sentinel_frame): Use frame_id_status::COMPUTED.
2568 (create_new_frame): Likewise.
2569 (frame_cleanup_after_sniffer): Update assert.
2570
2571 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2572
2573 * regcache.c (pid_ptid_regcache_map): New type.
2574 (target_ptid_regcache_map): Remove.
2575 (target_pid_ptid_regcache_map): New type.
2576 (regcaches): Change type to target_pid_ptid_regcache_map.
2577 (get_thread_arch_aspace_regcache): Update.
2578 (regcache_thread_ptid_changed): Update, handle pid-like ptid
2579 case.
2580 (regcaches_size): Update.
2581 (regcache_count): Update.
2582 (registers_changed_ptid_target_pid_test): New.
2583 (_initialize_regcache): Register new test.
2584
2585 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2586
2587 * regcache.c (regcache_count): New.
2588 (struct regcache_test_data): New.
2589 (regcache_test_data_up): New.
2590 (populate_regcaches_for_test): New.
2591 (regcaches_test): Remove.
2592 (get_thread_arch_aspace_regcache_test): New.
2593 (registers_changed_ptid_all_test): New.
2594 (registers_changed_ptid_target_test): New.
2595 (registers_changed_ptid_target_ptid_test): New.
2596 (regcache_thread_ptid_changed): Remove regcache_count lambda.
2597 (_initialize_regcache): Register new tests.
2598
2599 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2600
2601 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
2602 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
2603 gdbarch and aspace parameter. Use current inferior's aspace.
2604 Validate regcache's arch value.
2605 (regcaches_test): Update.
2606
2607 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2608
2609 * regcache.c (regcaches_test): Call registers_changed.
2610
2611 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2612
2613 * infrun.c (process_event_stop_test): Fix typo "breapoint".
2614
2615 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2616
2617 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
2618 to find the end of prologue for flang compiled binaries.
2619 * arm-tdep.c (arm_skip_prologue): Likewise.
2620 * i386-tdep.c (i386_skip_prologue): Likewise.
2621 * producer.c (producer_is_llvm): New function.
2622 (producer_parsing_tests): Added new tests for clang/flang.
2623 * producer.h (producer_is_llvm): New declaration.
2624
2625 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
2626
2627 * linux-nat.c (linux_nat_debug_printf): New function.
2628 (linux_nat_debug_printf_1): New macro. Use throughout the file.
2629
2630 2020-08-18 Aaron Merey <amerey@redhat.com>
2631
2632 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
2633 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
2634 (CLIBS): Add DEBUGINFOD_LIBS.
2635
2636 2020-08-17 Sergei Trofimovich <siarheit@google.com>
2637
2638 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
2639 'gdbarch_num_regs'.
2640
2641 2020-08-17 Tom Tromey <tromey@adacore.com>
2642
2643 * ada-varobj.c (ada_varobj_decode_var): Handle case where
2644 ada_get_decoded_value returns NULL.
2645
2646 2020-08-17 Tom Tromey <tromey@adacore.com>
2647
2648 * python/py-inferior.c (infpy_search_memory): Use
2649 gdb_py_object_from_ulongest.
2650 * python/py-infevents.c (create_inferior_call_event_object)
2651 (create_memory_changed_event_object): Use
2652 gdb_py_object_from_ulongest.
2653 * python/py-linetable.c (ltpy_entry_get_pc): Use
2654 gdb_py_object_from_ulongest.
2655
2656 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
2657
2658 * loc.c (class symbol_needs_eval_context): Fix indentation.
2659
2660 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
2661
2662 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
2663 bool.
2664
2665 2020-08-17 Tom de Vries <tdevries@suse.de>
2666
2667 PR gdb/26393
2668 * gdbtypes.c (dump_dynamic_prop): New function.
2669 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
2670
2671 2020-08-15 Tom de Vries <tdevries@suse.de>
2672
2673 PR backtrace/26390
2674 * stack.c (print_frame_args): Temporarily set the selected
2675 frame to FRAME while printing the frame's arguments.
2676
2677 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2678
2679 PR breakpoints/26385
2680 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
2681 Always clear watchpoint with PTRACE_SET_DEBUGREG.
2682
2683 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2684
2685 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
2686 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
2687 and >= to check return value instead of == -1 and != -1.
2688
2689 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
2690
2691 * utils.h (class gdb_argv) <as_array_view>: New method.
2692 * utils.c (gdb_argv_as_array_view_test): New.
2693 (_initialize_utils): Register selftest.
2694 * maint.c (maintenance_selftest): Use the new method.
2695
2696 2020-08-13 Kamil Rytarowski <n54@gmx.com>
2697
2698 * target.h (supports_dumpcore, dumpcore): New
2699 function declarations.
2700 * target.c (supports_dumpcore, dumpcore): New
2701 functions.
2702 * target-delegates.c: Rebuild.
2703 * gcore.c (gcore_command): Use target_supports_dumpcore ()
2704 and target_dumpcore ().
2705
2706 2020-08-13 Aaron Merey <amerey@redhat.com>
2707
2708 * debuginfod-support.c: Replace global variables with user_data.
2709
2710 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
2711
2712 * maint.c (maintenance_selftest): Split args and pass array_view
2713 to run_tests.
2714
2715 2020-08-12 Luis Machado <luis.machado@linaro.org>
2716
2717 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
2718 type's length.
2719 Use %s and pulongest to print the length.
2720
2721 2020-08-12 Pedro Alves <palves@redhat.com>
2722
2723 * NEWS: Move "Multi-target debugging support" item to the
2724 "Changes since GDB 9" section.
2725
2726 2020-08-12 Pedro Alves <palves@redhat.com>
2727
2728 PR gdb/26336
2729 * progspace.c (program_space::remove_objfile): Invalidate the
2730 frame cache.
2731
2732 2020-08-11 Tom de Vries <tdevries@suse.de>
2733
2734 * MAINTAINERS: Mark ms1 as deleted.
2735
2736 2020-08-10 Luis Machado <luis.machado@linaro.org>
2737
2738 PR gdb/26310
2739
2740 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
2741 act accordingly.
2742 (aarch64_analyze_prologue_test): Add more unit tests to exercise
2743 movz/str/stur/stp skipping behavior.
2744
2745 2020-08-10 Luis Machado <luis.machado@linaro.org>
2746
2747 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
2748 struct user_sve_header instead of struct sve_context.
2749
2750 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
2751
2752 * read.h (dwarf2_fetch_die_loc_sect_off,
2753 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
2754 `void *` parameter with function_view.
2755 * read.c (dwarf2_fetch_die_loc_sect_off,
2756 dwarf2_fetch_die_loc_cu_off): Likewise.
2757 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
2758 (per_cu_dwarf_call): Adjust.
2759 (get_frame_address_in_block_wrapper): Remove.
2760 (indirect_synthetic_pointer): Adjust.
2761 (get_ax_pc): Remove.
2762 (dwarf2_compile_expr_to_ax): Adjust.
2763
2764 2020-08-08 Tom de Vries <tdevries@suse.de>
2765
2766 PR build/26344
2767 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
2768 constructor.
2769 * regcache.c (get_thread_arch_aspace_regcache): Same.
2770
2771 2020-08-07 Tom Tromey <tromey@adacore.com>
2772
2773 * ravenscar-thread.c
2774 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
2775 New method.
2776 (ravenscar_thread_target::wait): Check
2777 runtime_initialized.
2778 (ravenscar_thread_target::prepare_to_store)
2779 (ravenscar_thread_target::stopped_by_sw_breakpoint)
2780 (ravenscar_thread_target::stopped_by_hw_breakpoint)
2781 (ravenscar_thread_target::stopped_by_watchpoint)
2782 (ravenscar_thread_target::stopped_data_address)
2783 (ravenscar_thread_target::core_of_thread): Use
2784 scoped_restore_current_thread and
2785 set_base_thread_from_ravenscar_task.
2786
2787 2020-08-07 Tom Tromey <tromey@adacore.com>
2788
2789 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
2790
2791 2020-08-07 Tom Tromey <tromey@adacore.com>
2792
2793 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
2794 update_inferior_ptid before update_thread_list.
2795 (temporarily_change_regcache_ptid): New class.
2796 (ravenscar_thread_target::fetch_registers)
2797 (ravenscar_thread_target::store_registers)
2798 (ravenscar_thread_target::prepare_to_store): Use base thread when
2799 forwarding operation.
2800
2801 2020-08-07 Tom Tromey <tromey@adacore.com>
2802
2803 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
2804 "is_pid" case.
2805
2806 2020-08-07 Tom Tromey <tromey@adacore.com>
2807
2808 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
2809 New methods.
2810 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
2811 first.
2812 (ravenscar_thread_target::add_thread): Rename from
2813 ravenscar_add_thread.
2814 (ravenscar_thread_target::update_thread_list): Use a lambda.
2815 (ravenscar_thread_target::xfer_partial): New method.
2816
2817 2020-08-07 Tom Tromey <tromey@adacore.com>
2818
2819 * ada-lang.h (ada_task_list_iterator_ftype): Now a
2820 gdb::function_view.
2821 (iterate_over_live_ada_tasks): Change type of argument.
2822 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
2823 of argument.
2824
2825 2020-08-07 Tom Tromey <tromey@adacore.com>
2826
2827 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
2828 Remove.
2829 (ravenscar_thread_target::extra_thread_info): Remove.
2830 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
2831 defer to target beneath for non-Ravenscar threads.
2832
2833 2020-08-07 Tom Tromey <tromey@adacore.com>
2834
2835 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
2836 get_base_thread_from_ravenscar_task>: Now methods.
2837 <m_cpu_map>: New member.
2838 (ravenscar_thread_target::get_thread_base_cpu): Rename from
2839 ravenscar_get_thread_base_cpu. Check m_cpu_map.
2840 (ravenscar_thread_target::task_is_currently_active): Update.
2841 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
2842 Now a method.
2843 (ravenscar_thread_target::add_active_thread): Put initial thread
2844 into the m_cpu_map.
2845
2846 2020-08-07 Tom Tromey <tromey@adacore.com>
2847
2848 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
2849 event_ptid.
2850
2851 2020-08-07 Tom Tromey <tromey@adacore.com>
2852
2853 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
2854 runtime_initialized.
2855
2856 2020-08-07 Tom Tromey <tromey@adacore.com>
2857
2858 * ravenscar-thread.c (ravenscar_thread_target): Don't call
2859 add_active_thread.
2860 (ravenscar_thread_target::add_active_thread): Now public.
2861 (ravenscar_inferior_created): Call add_active_thread after pushing
2862 the target.
2863
2864 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
2865
2866 * regcache.c (ptid_regcache_map): New type.
2867 (target_ptid_regcache_map): New type.
2868 (regcaches): Change type to target_ptid_regcache_map.
2869 (get_thread_arch_aspace_regcache): Update to regcaches' new
2870 type.
2871 (regcache_thread_ptid_changed): Likewise.
2872 (registers_changed_ptid): Likewise.
2873 (regcaches_size): Likewise.
2874 (regcaches_test): Update.
2875 (regcache_thread_ptid_changed): Update.
2876 * regcache.h (regcache_up): New type.
2877 * gdbsupport/ptid.h (hash_ptid): New struct.
2878
2879 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
2880
2881 * observable.h (thread_ptid_changed): Add parameter
2882 `process_stratum_target *`.
2883 * infrun.c (infrun_thread_ptid_changed): Add parameter
2884 `process_stratum_target *` and use it.
2885 (selftests): New namespace.
2886 (infrun_thread_ptid_changed): New function.
2887 (_initialize_infrun): Register selftest.
2888 * regcache.c (regcache_thread_ptid_changed): Add parameter
2889 `process_stratum_target *` and use it.
2890 (regcache_thread_ptid_changed): New function.
2891 (_initialize_regcache): Register selftest.
2892 * thread.c (thread_change_ptid): Pass target to
2893 thread_ptid_changed observable.
2894
2895 2020-08-06 Caroline Tice <cmtice@google.com>
2896
2897 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
2898 (struct dwp_sections): Update field comments. Add loclists and
2899 rnglists fields.
2900 (struct virtual_v2_dwo_sections): Rename struct to
2901 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
2902 size & offset fields for loclists and rnglists.
2903 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
2904 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
2905 skipping dummy type units.
2906 (create_dwp_hash_table): Update the large comment above the function to
2907 discuss Version 5 DWP files as well, with references. Update all the
2908 version checks in the function to check for version 5 as well. Add new
2909 section at the end to create dwp hash table for version 5.
2910 (create_dwp_v2_section): Rename function to
2911 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
2912 Add V5 to error message text.
2913 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
2914 into calls to create_dwp_v2_or_v5_section.
2915 (create_dwo_unit_in_dwp_v5): New function.
2916 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
2917 check for version2; add else clause to handle version 5.
2918 (open_and_init_dwo_file): Add code to check dwarf version & only call
2919 create_debug_types_hash_table (with sections.types) if version is not 5;
2920 else call create_debug_type_hash_table, with sections.info.
2921 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
2922 version 5.
2923 (dwarf2_locate_v5_dwp_sections): New function.
2924 (open_and_init_dwp_file): Add else-if clause for version 5 to call
2925 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
2926
2927 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
2928
2929 * regcache.h (class regcache): Remove friend
2930 registers_changed_ptid.
2931 <regcache_thread_ptid_changed>: Remove.
2932 <regcaches>: Remove.
2933 * regcache.c (regcache::regcaches): Rename to...
2934 (regcaches): ... this. Make static.
2935 (get_thread_arch_aspace_regcache): Update.
2936 (regcache::regcache_thread_ptid_changed): Rename to...
2937 (regcache_thread_ptid_changed): ... this. Update.
2938 (class regcache_access): Remove.
2939 (regcaches_test): Update.
2940 (_initialize_regcache): Update.
2941 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
2942 <forward_list>.
2943
2944 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
2945
2946 * regcache.h (class regcache) <current_regcache>: Rename to...
2947 <regcaches>: ... this. Move doc here.
2948 * regcache.c (regcache::current_regcache) Rename to...
2949 (regcache::regcaches): ... this. Move doc to header.
2950 (get_thread_arch_aspace_regcache): Update.
2951 (regcache::regcache_thread_ptid_changed): Update.
2952 (registers_changed_ptid): Update.
2953 (class regcache_access) <current_regcache_size>: Rename to...
2954 <regcaches_size>: ... this.
2955 (current_regcache_test): Rename to...
2956 (regcaches_test): ... this.
2957 (_initialize_regcache): Update.
2958
2959 2020-08-06 Victor Collod <vcollod@nvidia.com>
2960
2961 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
2962
2963 2020-08-05 Kevin Buettner <kevinb@redhat.com>
2964
2965 * corelow.c (core_target::build_file_mappings): Don't output
2966 null pathname in warning.
2967
2968 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
2969
2970 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
2971 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
2972 gdb.dwarf2/dw2-single-line-discriminators.exp,
2973 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
2974
2975 2020-08-05 Tom Tromey <tromey@adacore.com>
2976
2977 PR rust/26197:
2978 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
2979 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
2980 Fix off-by-one and type size errors in ordinary case.
2981
2982 2020-08-05 Tom de Vries <tdevries@suse.de>
2983
2984 * gdbtypes.c (type_not_allocated, type_not_associated): Use
2985 "prop->const_val () == 0" instead of "prop->const_val () != 0".
2986
2987 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
2988
2989 * frame.h (frame_id_p): Return bool.
2990 (frame_id_artificial_p): Return bool.
2991 (frame_id_eq): Return bool.
2992 (has_stack_frames): Return bool.
2993 (get_selected_frame): Fix typo in comment.
2994 (get_frame_pc_if_available): Return bool.
2995 (get_frame_address_in_block_if_available): Return bool.
2996 (get_frame_func_if_available): Return bool.
2997 (read_frame_register_unsigned): Return bool.
2998 (get_frame_register_bytes): Return bool.
2999 (safe_frame_unwind_memory): Return bool.
3000 (deprecated_frame_register_read): Return bool.
3001 (frame_unwinder_is): Return bool.
3002 * frame.c (struct frame_info) <prev_arch::p>: Change type to
3003 bool.
3004 <this_id::p>: Likewise.
3005 <prev_p>: Likewise.
3006 (frame_stash_add): Return bool.
3007 (get_frame_id): Use bool.
3008 (frame_id_build_special) Use bool.
3009 (frame_id_build_unavailable_stack): Use bool.
3010 (frame_id_build): Use bool.
3011 (frame_id_p): Return bool, use true/false instead of 1/0.
3012 (frame_id_artificial_p): Likewise.
3013 (frame_id_eq): Likewise.
3014 (frame_id_inner): Likewise.
3015 (get_frame_func_if_available): Likewise.
3016 (read_frame_register_unsigned): Likewise.
3017 (deprecated_frame_register_read): Likewise.
3018 (get_frame_register_bytes): Likewise.
3019 (has_stack_frames): Likewise.
3020 (inside_main_func): Likewise.
3021 (inside_entry_func): Likewise.
3022 (get_frame_pc_if_available): Likewise.
3023 (get_frame_address_in_block_if_available): Likewise.
3024 (frame_unwinder_is): Likewise.
3025 (safe_frame_unwind_memory): Likewise.
3026 (frame_unwind_arch): Likewise.
3027
3028 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
3029
3030 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
3031 type to cached_copy_status.
3032 (fprintf_frame): Adjust.
3033 (get_frame_func_if_available): Adjust.
3034 (frame_cleanup_after_sniffer): Adjust.
3035
3036 2020-08-04 Mark Wielaard <mark@klomp.org>
3037
3038 * MAINTAINERS (Write After Approval): Update email address.
3039
3040 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3041
3042 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
3043 dynamic_prop::const_val.
3044
3045 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3046
3047 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
3048 dynamic_prop::kind.
3049
3050 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3051
3052 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
3053
3054 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
3055
3056 * configure.tgt: Set gdb_sim for bpf-*-* targets.
3057
3058 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
3059 Jose E. Marchesi <jose.marchesi@oracle.com>
3060
3061 * configure.tgt: Add entry for bpf-*-*.
3062 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
3063 (ALLDEPFILES): Add bpf-tdep.c.
3064 * bpf-tdep.c: New file.
3065 * MAINTAINERS: Add bpf target and maintainer.
3066 * NEWS: Mention the support for the new target.
3067
3068 2020-08-04 Tom de Vries <tdevries@suse.de>
3069
3070 PR symtab/23270
3071 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
3072 Error.
3073
3074 2020-08-03 John Baldwin <jhb@FreeBSD.org>
3075
3076 * syscalls/freebsd.xml: Regenerate.
3077
3078 2020-08-03 John Baldwin <jhb@FreeBSD.org>
3079
3080 * syscalls/update-freebsd.sh: Fix usage and year range.
3081
3082 2020-08-03 Tom de Vries <tdevries@suse.de>
3083
3084 PR symtab/26333
3085 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
3086 DW_LNE_lo_user/DW_LNE_hi_user range.
3087
3088 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
3089
3090 PR ada/26318
3091 * ada-lang.c (ada_modulus): Return 0 if property is not of const
3092 kind.
3093
3094 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3095
3096 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
3097
3098 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3099
3100 * breakpoint.c (set_breakpoint_condition): Update the condition
3101 expressions after checking that the input condition string parses
3102 successfully and does not contain junk at the end.
3103
3104 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3105
3106 * breakpoint.c (set_breakpoint_condition): Update the
3107 condition string after parsing the new condition successfully.
3108
3109 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3110
3111 * proc-api.c (_STRUCTURED_PROC): Don't define.
3112 * proc-events.c: Likewise.
3113 * proc-flags.c: Likewise.
3114 * proc-why.c: Likewise.
3115 * procfs.c: Likewise.
3116
3117 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
3118 * configure, config.in: Regenerate.
3119
3120 2020-07-30 Tom de Vries <tdevries@suse.de>
3121
3122 PR build/26320
3123 * ui-style.h (struct ui_file_style::color): Wrap m_value and
3124 m_red/m_green/m_blue in a union.
3125
3126 2020-07-29 Tom de Vries <tdevries@suse.de>
3127
3128 PR tdep/26280
3129 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
3130
3131 2020-07-28 Tom Tromey <tromey@adacore.com>
3132
3133 PR symtab/26270:
3134 * symtab.h (find_pc_partial_function_sym): Declare.
3135 * cli/cli-cmds.c (disassemble_command): Use
3136 find_pc_partial_function_sym. Check asm_demangle.
3137 * blockframe.c (cache_pc_function_sym): New global.
3138 (cache_pc_function_name): Remove.
3139 (clear_pc_function_cache): Update.
3140 (find_pc_partial_function_sym): New function, from
3141 find_pc_partial_function.
3142 (find_pc_partial_function): Rewrite using
3143 find_pc_partial_function_sym.
3144
3145 2020-07-28 Tom Tromey <tromey@adacore.com>
3146
3147 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
3148 help. Add usage.
3149
3150 2020-07-28 Tom Tromey <tromey@adacore.com>
3151
3152 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
3153 <DW_OP_GNU_variable_value>: Cast to address type.
3154
3155 2020-07-28 Kamil Rytarowski <n54@gmx.com>
3156
3157 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
3158 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
3159 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
3160 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
3161 (nbsd_get_siginfo_type): New.
3162 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
3163 (_initialize_nbsd_tdep): New.
3164
3165 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
3166
3167 PR binutils/26301
3168 * configure: Regenerated.
3169
3170 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
3171
3172 PR binutils/26301
3173 * configure: Regenerated.
3174
3175 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
3176
3177 * python/py-frame.c: Remove 'user-regs.h' include.
3178 (frapy_read_register): Rewrite to make use of
3179 gdbpy_parse_register_id.
3180 * python/py-registers.c (gdbpy_parse_register_id): New function,
3181 moved here from python/py-unwind.c. Updated the return type, and
3182 also accepts register descriptor objects.
3183 * python/py-unwind.c: Remove 'user-regs.h' include.
3184 (pyuw_parse_register_id): Moved to python/py-registers.c.
3185 (unwind_infopy_add_saved_register): Update to use
3186 gdbpy_parse_register_id.
3187 (pending_framepy_read_register): Likewise.
3188 * python/python-internal.h (gdbpy_parse_register_id): Declare.
3189
3190 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
3191
3192 * python/py-registers.c: Add 'user-regs.h' include.
3193 (register_descriptor_iter_find): New function.
3194 (register_descriptor_iterator_object_methods): New static global
3195 methods array.
3196 (register_descriptor_iterator_object_type): Add pointer to methods
3197 array.
3198
3199 2020-07-27 John Baldwin <jhb@FreeBSD.org>
3200
3201 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
3202 for all architectures on FreeBSD 11.3 and later.
3203
3204 2020-07-27 Tom Tromey <tromey@adacore.com>
3205
3206 * gcore.h (load_corefile): Don't declare.
3207
3208 2020-07-27 Tom de Vries <tdevries@suse.de>
3209
3210 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
3211 * config.in: Regenerate.
3212 * configure: Regenerate.
3213
3214 2020-07-26 Eli Zaretskii <eliz@gnu.org>
3215
3216 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
3217 ws2tcpip.h. When checking whether socklen_t type is defined, use
3218 ws2tcpip.h if it is available and sys/socket.h isn't.
3219 * configure: Regenerate.
3220 * config.in: Regenerate.
3221
3222 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
3223
3224 PR fortran/23051
3225 PR fortran/26139
3226 * valops.c (value_ind): Pass address to
3227 readjust_indirect_value_type.
3228 * value.c (readjust_indirect_value_type): Make parameter
3229 non-const, and add extra address parameter. Resolve original type
3230 before using it.
3231 * value.h (readjust_indirect_value_type): Update function
3232 signature and comment.
3233
3234 2020-07-25 Tom de Vries <tdevries@suse.de>
3235
3236 PR symtab/26243
3237 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
3238 entries.
3239
3240 2020-07-24 Aaron Merey <amerey@redhat.com>
3241
3242 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
3243 * configure: Rebuild.
3244
3245 2020-07-23 Kevin Buettner <kevinb@redhat.com>
3246
3247 PR corefiles/26294
3248 * corelow.c (_initialize_corelow): Add period to help text
3249 for "maintenance print core-file-backed-mappings".
3250
3251 2020-07-23 Pedro Alves <pedro@palves.net>
3252
3253 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
3254 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
3255 meanwhile.
3256 * frame.c (frame_cache_generation, get_frame_cache_generation):
3257 New.
3258 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
3259 (get_prev_frame_if_no_cycle): On exception, don't touch
3260 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
3261 * frame.h (get_frame_cache_generation): Declare.
3262
3263 2020-07-23 Tom de Vries <tdevries@suse.de>
3264
3265 PR tui/26282
3266 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
3267 New default constructor.
3268
3269 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
3270
3271 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
3272 exclude non-statement entries.
3273
3274 2020-07-22 Kevin Buettner <kevinb@redhat.com>
3275
3276 * NEWS (New commands): Mention new command
3277 "maintenance print core-file-backed-mappings".
3278
3279 2020-07-22 Kevin Buettner <kevinb@redhat.com>
3280
3281 * corelow.c (gdbcmd.h): Include.
3282 (core_target::info_proc_mappings): New method.
3283 (get_current_core_target): New function.
3284 (maintenance_print_core_file_backed_mappings): New function.
3285 (_initialize_corelow): Add core-file-backed-mappings to
3286 "maint print" commands.
3287
3288 2020-07-22 Kevin Buettner <kevinb@redhat.com>
3289
3290 * linux-tdep.c (dump_note_entry_p): New function.
3291 (linux_dump_mapping_p_ftype): New typedef.
3292 (linux_find_memory_regions_full): Add new parameter,
3293 should_dump_mapping_p.
3294 (linux_find_memory_regions): Adjust call to
3295 linux_find_memory_regions_full.
3296 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
3297 call to linux_find_memory_regions_full.
3298
3299 2020-07-22 Kevin Buettner <kevinb@redhat.com>
3300
3301 * corelow.c (solist.h, unordered_map): Include.
3302 (class core_target): Add field m_core_file_mappings and
3303 method build_file_mappings.
3304 (core_target::core_target): Call build_file_mappings.
3305 (core_target::~core_target): Free memory associated with
3306 m_core_file_mappings.
3307 (core_target::build_file_mappings): New method.
3308 (core_target::xfer_partial): Use m_core_file_mappings
3309 for memory transfers.
3310 * linux-tdep.c (linux_read_core_file_mappings): New
3311 function.
3312 (linux_core_info_proc_mappings): Rewrite to use
3313 linux_read_core_file_mappings.
3314 (linux_init_abi): Register linux_read_core_file_mappings.
3315
3316 2020-07-22 Kevin Buettner <kevinb@redhat.com>
3317
3318 * arch-utils.c (default_read_core_file_mappings): New function.
3319 * arch-utils.c (default_read_core_file_mappings): Declare.
3320 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
3321 * gdbarch.h, gdbarch.c: Regenerate.
3322
3323 2020-07-22 Kevin Buettner <kevinb@redhat.com>
3324
3325 PR corefiles/25631
3326 * corelow.c (core_target:xfer_partial): Revise
3327 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
3328 case after first checking the stratum beneath the core
3329 target.
3330 (has_all_memory): Return true.
3331 * target.c (raw_memory_xfer_partial): Revise comment
3332 regarding use of has_all_memory.
3333
3334 2020-07-22 Kevin Buettner <kevinb@redhat.com>
3335
3336 * exec.h (section_table_xfer_memory): Revise declaration,
3337 replacing section name parameter with an optional callback
3338 predicate.
3339 * exec.c (section_table_xfer_memory): Likewise.
3340 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
3341 of section_table_xfer_memory.
3342
3343 2020-07-22 Tom Tromey <tromey@adacore.com>
3344
3345 * mi/mi-cmd-stack.c (list_args_or_locals): Use
3346 lookup_symbol_search_name.
3347
3348 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
3349
3350 * python/py-registers.c (gdbpy_register_object_data_init): Remove
3351 redundant local variable.
3352 (gdbpy_get_register_descriptor): Extract descriptor vector as a
3353 reference, not pointer, update code accordingly.
3354
3355 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3356 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3357
3358 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
3359 * jit.c (jit_breakpoint_re_set_internal): Use the
3360 `skip_jit_symbol_lookup` field.
3361
3362 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3363 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3364
3365 * jit.c (jit_read_descriptor): Define the descriptor address once,
3366 use twice.
3367 (jit_breakpoint_deleted): Move the declaration of the loop variable
3368 `iter` into the loop header.
3369 (jit_breakpoint_re_set_internal): Move the declaration of the local
3370 variable `objf_data` to the first point of definition.
3371 (jit_event_handler): Move the declaration of local variables
3372 `code_entry`, `entry_addr`, and `objf` to their first point of use.
3373 Rename `objf` to `jited`.
3374
3375 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3376
3377 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
3378 Remove.
3379 * jit.c (get_jiter_objfile_data): Update.
3380
3381 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3382 Simon Marchi <simon.marchi@polymtl.ca>
3383
3384 * jit.c (struct jit_program_space_data): Remove.
3385 (jit_program_space_key): Remove.
3386 (jiter_objfile_data::~jiter_objfile_data): Remove program space
3387 stuff.
3388 (get_jit_program_space_data): Remove.
3389 (jit_breakpoint_deleted): Iterate on all of the program space's
3390 objfiles.
3391 (jit_inferior_init): Likewise.
3392 (jit_breakpoint_re_set_internal): Likewise. Also change return
3393 type to void.
3394 (jit_breakpoint_re_set): Pass current_program_space to
3395 jit_breakpoint_re_set_internal.
3396
3397 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3398
3399 * jit.h (struct jiter_objfile_data) <cached_code_address,
3400 jit_breakpoint>: Move to here from ...
3401 * jit.c (jit_program_space_data): ... here.
3402 (jiter_objfile_data::~jiter_objfile_data): Update.
3403 (jit_breakpoint_deleted): Update.
3404 (jit_breakpoint_re_set_internal): Update.
3405
3406 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3407
3408 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
3409 checks.
3410 (jit_read_descriptor): Remove NULL check.
3411 (jit_event_handler): Add an assertion.
3412
3413 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3414
3415 * jit.h (struct jit_objfile_data): Split into...
3416 (struct jiter_objfile_data): ... this ...
3417 (struct jited_objfile_data): ... and this.
3418 * objfiles.h (struct objfile) <jit_data>: Remove.
3419 <jiter_data, jited_data>: New fields.
3420 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
3421 (jiter_objfile_data::~jiter_objfile_data): ... this.
3422 (get_jit_objfile_data): Rename to ...
3423 (get_jiter_objfile_data): ... this.
3424 (add_objfile_entry): Update.
3425 (jit_read_descriptor): Use get_jiter_objfile_data.
3426 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
3427 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
3428 (jit_inferior_exit_hook): Use objfile's jited_data field.
3429
3430 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3431
3432 * jit.h: Forward-declare `struct minimal_symbol`.
3433 (struct jit_objfile_data): Migrate to here from jit.c; also add a
3434 constructor, destructor, and an objfile* field.
3435 * jit.c (jit_objfile_data): Remove.
3436 (struct jit_objfile_data): Migrate from here to jit.h.
3437 (jit_objfile_data::~jit_objfile_data): New destructor
3438 implementation with code moved from free_objfile_data.
3439 (free_objfile_data): Delete.
3440 (get_jit_objfile_data): Update to use the jit_data field of objfile.
3441 (jit_find_objf_with_entry_addr): Ditto.
3442 (jit_inferior_exit_hook): Ditto.
3443 (_initialize_jit): Remove the call to
3444 register_objfile_data_with_cleanup.
3445 * objfiles.h (struct objfile) <jit_data>: New field.
3446
3447 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3448
3449 * jit.h: Forward-declare `struct objfile`.
3450 (jit_event_handler): Add a second parameter, the JITer objfile.
3451 * jit.c (jit_read_descriptor): Change the signature to take the
3452 JITer objfile as an argument instead of the jit_program_space_data.
3453 (jit_inferior_init): Update the call to jit_read_descriptor.
3454 (jit_event_handler): Use the new JITer objfile argument when calling
3455 jit_read_descriptor.
3456 * breakpoint.c (handle_jit_event): Update the call to
3457 jit_event_handler to pass the JITer objfile.
3458
3459 2020-07-21 John Baldwin <jhb@FreeBSD.org>
3460
3461 * gdbarch.c: Regenerate.
3462 * gdbarch.h: Regenerate.
3463 * gdbarch.sh (handle_segmentation_fault): Remove method.
3464 * infrun.c (handle_segmentation_fault): Remove.
3465 (print_signal_received_reason): Remove call to
3466 handle_segmentation_fault.
3467
3468 2020-07-21 John Baldwin <jhb@FreeBSD.org>
3469
3470 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
3471 Rename to sparc64_linux_report_signal_info and add siggnal
3472 argument.
3473 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
3474 instead of sparc64_linux_handle_segmentation_fault.
3475
3476 2020-07-21 John Baldwin <jhb@FreeBSD.org>
3477
3478 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
3479 i386_linux_report_signal_info instead of
3480 i386_linux_handle_segmentation_fault.
3481 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
3482 to i386_linux_report_signal_info and add siggnal argument.
3483 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
3484 of i386_linux_handle_segmentation_fault.
3485 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
3486 to i386_linux_report_signal_info and add siggnal argument.
3487
3488 2020-07-21 John Baldwin <jhb@FreeBSD.org>
3489
3490 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
3491 hook if present.
3492
3493 2020-07-21 John Baldwin <jhb@FreeBSD.org>
3494
3495 * gdbarch.c: Regenerate.
3496 * gdbarch.h: Regenerate.
3497 * gdbarch.sh (report_signal_info): New method.
3498 * infrun.c (print_signal_received_reason): Invoke gdbarch
3499 report_signal_info hook if present.
3500
3501 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
3502
3503 * python/py-registers.c : Add 'unordered_map' include.
3504 (gdbpy_new_reggroup): Renamed to...
3505 (gdbpy_get_reggroup): ...this. Update to only create register
3506 group descriptors when needed.
3507 (gdbpy_reggroup_iter_next): Update.
3508
3509 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
3510
3511 * python/py-registers.c (gdbpy_register_object_data): New static
3512 global.
3513 (gdbpy_register_object_data_init): New function.
3514 (gdbpy_new_register_descriptor): Renamed to...
3515 (gdbpy_get_register_descriptor): ...this, and update to reuse
3516 existing register descriptors where possible.
3517 (gdbpy_register_descriptor_iter_next): Update.
3518 (gdbpy_initialize_registers): Register new gdbarch data.
3519
3520 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
3521
3522 * linux-nat.c (stopped_pids): Make static.
3523
3524 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
3525
3526 PR ada/26235
3527 * gdbtypes.c (ada_discrete_type_low_bound,
3528 ada_discrete_type_high_bound): Handle undefined bounds.
3529
3530 2020-07-21 Kamil Rytarowski <n54@gmx.com>
3531
3532 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
3533 declaration.
3534 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
3535 function.
3536
3537 2020-07-20 John Baldwin <jhb@FreeBSD.org>
3538
3539 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
3540 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
3541 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
3542 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
3543 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
3544 method.
3545
3546 2020-07-20 Ludovic Courtès <ludo@gnu.org>
3547
3548 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
3549 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
3550 which are deprecated in Guile 3.0.
3551 * configure.ac (try_guile_versions): Add "guile-3.0".
3552 * configure (try_guile_versions): Regenerate.
3553 * NEWS: Update entry.
3554
3555 2020-07-20 Ludovic Courtès <ludo@gnu.org>
3556 Doug Evans <dje@google.com>
3557
3558 PR gdb/21104
3559 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
3560 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
3561 USING_GUILE_BEFORE_2_2.
3562 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
3563 Change type to 'scm_t_port_type *'.
3564 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
3565 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
3566 parameter and honor it. Update callers.
3567 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
3568 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
3569 functions.
3570 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
3571 USING_GUILE_BEFORE_2_2.
3572 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
3573 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
3574 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
3575 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
3576 and 'SCM_PORT_TYPE'.
3577 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
3578 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
3579 (gdbscm_memory_port_read, gdbscm_memory_port_write)
3580 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
3581 [!USING_GUILE_BEFORE_2_2]: New functions.
3582 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
3583 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
3584 'gdbscm_memory_port_read'.
3585 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
3586 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
3587 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
3588 function.
3589 (ioscm_init_memory_port): Remove.
3590 (ioscm_init_memory_port_stream): New function
3591 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
3592 function.
3593 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
3594 Return scm_from_uint (0).
3595 (gdbscm_set_memory_port_read_buffer_size_x)
3596 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
3597 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
3598 Return scm_from_uint (0).
3599 (gdbscm_set_memory_port_write_buffer_size_x)
3600 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
3601 * configure.ac (try_guile_versions): Add "guile-2.2".
3602 * configure: Regenerate.
3603 * NEWS: Add entry.
3604
3605 2020-07-18 Tom Tromey <tom@tromey.com>
3606
3607 * linux-nat.c (linux_multi_process): Remove.
3608 (linux_nat_target::supports_multi_process): Return true.
3609
3610 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
3611
3612 * arch/riscv.c (riscv_tdesc_cache): Change map type.
3613 (riscv_lookup_target_description): Return pointer out of
3614 unique_ptr.
3615 * target-descriptions.c (allocate_target_description): Add
3616 comment.
3617 (target_desc_deleter::operator()): Likewise.
3618 * target-descriptions.h (struct target_desc_deleter): Moved to
3619 gdbsupport/tdesc.h.
3620 (target_desc_up): Likewise.
3621
3622 2020-07-17 Tom Tromey <tromey@adacore.com>
3623
3624 * linux-nat.c (linux_nat_target::supports_non_stop)
3625 (linux_nat_target::always_non_stop_p): Use "true".
3626 (linux_nat_target::supports_disable_randomization): Use "true" and
3627 "false".
3628
3629 2020-07-16 Caroline Tice <cmtice@google.com>
3630
3631 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
3632 (RNGLIST_HEADER_SIZE64): New constant definition.
3633 (struct dwop_section_names): Add rnglists_dwo.
3634 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
3635 (struct loclist_header): Rename to 'loclists_rnglists_header'.
3636 (struct dwo_sections): Add rnglists field.
3637 (read_attribut_reprocess): Add tag parameter.
3638 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
3639 (cu_debug_rnglists_section): New function (decl & definition).
3640 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
3641 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
3642 die whose range is being checked; get rnglist section from
3643 cu_debug_rnglists_section, to get from either objfile or dwo file as
3644 appropriate. Add cases for DW_RLE_base_addressx,
3645 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
3646 the base address to DW_RLE_offset_pairs (not to all ranges), moving
3647 test inside if-condition and updating complaint message.
3648 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
3649 dwarf2_rnglists_process.
3650 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
3651 dwarf2_ranges_process.
3652 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
3653 need_ranges_base and update comment appropriately. Also pass die tag
3654 to dwarf2_ranges_read.
3655 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
3656 need_ranges_base and update comment appropriately. Also pass die tag
3657 to dwarf2_ranges_process.
3658 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
3659 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
3660 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
3661 need_ranges_base and update comment appropriately. Also pass die tag
3662 to read_attribute_reprocess and dwarf2_ranges_read.
3663 (read_loclist_header): Rename function to read_loclists_rnglists_header,
3664 and update function comment appropriately.
3665 (read_loclist_index): Call read_loclists_rnglists_header instead of
3666 read_loclist_header.
3667 (read_rnglist_index): New function.
3668 (read_attribute_reprocess): Add tag parameter. Add code for
3669 DW_FORM_rnglistx, passing tag to read_rnglist_index.
3670 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
3671
3672 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
3673
3674 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
3675 being resolved.
3676
3677 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
3678
3679 * arch-utils.c (show_architecture): Update formatting of messages.
3680
3681 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3682
3683 * gdbtypes.h (struct type) <bounds>: Handle array and string
3684 types.
3685 * ada-lang.c (assign_aggregate): Use type::bounds on
3686 array/string type.
3687 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
3688 * c-varobj.c (c_number_of_children): Likewise.
3689 (c_describe_child): Likewise.
3690 * eval.c (evaluate_subexp_for_sizeof): Likewise.
3691 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
3692 (f_type_print_base): Likewise.
3693 * f-valprint.c (f77_array_offset_tbl): Likewise.
3694 (f77_get_upperbound): Likewise.
3695 (f77_print_array_1): Likewise.
3696 * guile/scm-type.c (gdbscm_type_range): Likewise.
3697 * m2-typeprint.c (m2_array): Likewise.
3698 (m2_is_long_set_of_type): Likewise.
3699 * m2-valprint.c (get_long_set_bounds): Likewise.
3700 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
3701 * python/py-type.c (typy_range): Likewise.
3702 * rust-lang.c (rust_internal_print_type): Likewise.
3703 * type-stack.c (type_stack::follow_types): Likewise.
3704 * valarith.c (value_subscripted_rvalue): Likewise.
3705 * valops.c (value_cast): Likewise.
3706
3707 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3708
3709 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
3710 callers to use the equivalent accessor methods.
3711
3712 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3713
3714 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
3715 (struct type) <bit_stride>: New method.
3716 (TYPE_BIT_STRIDE): Remove.
3717 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
3718
3719 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3720
3721 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
3722 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
3723 callers to use the equivalent accessor methods instead.
3724
3725 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3726
3727 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
3728 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
3729 callers to use the equivalent accessor methods instead.
3730
3731 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3732
3733 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
3734 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
3735 to use dynamic_prop::kind.
3736
3737 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3738
3739 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
3740 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
3741 to get the bound property's kind and check against
3742 PROP_UNDEFINED.
3743
3744 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3745
3746 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
3747 all callers to use type::range_bounds followed by
3748 dynamic_prop::{low,high}.
3749
3750 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
3751
3752 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
3753 const_val, set_const_val, baton, set_locexpr, set_loclist,
3754 set_addr_offset, variant_parts, set_variant_parts,
3755 original_type, set_original_type>: New methods.
3756 <kind>: Rename to...
3757 <m_kind>: ... this. Update all users to use the new methods
3758 instead.
3759 <data>: Rename to...
3760 <m_data>: ... this. Update all users to use the new methods
3761 instead.
3762
3763 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3764
3765 * gdbtypes.c (get_discrete_bounds): Return failure if
3766 the range type's bounds are not both defined and constant
3767 values.
3768 (get_array_bounds): Update comment. Remove undefined bound check.
3769
3770 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
3771
3772 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
3773 the type::bounds method directly.
3774
3775 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3776
3777 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
3778 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
3779 are used to set the range type's bounds to use set_bounds.
3780
3781 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3782
3783 * exec.c (_initialize_exec): Update exec-file-mismatch help.
3784
3785 2020-07-10 Pedro Alves <pedro@palves.net>
3786
3787 * gdbthread.h (inferior_ref): Define.
3788 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
3789 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
3790 * thread.c
3791 (scoped_restore_current_thread::restore):
3792 Adjust to gdb::ref_ptr.
3793 (scoped_restore_current_thread::~scoped_restore_current_thread):
3794 Remove manual decref handling.
3795 (scoped_restore_current_thread::scoped_restore_current_thread):
3796 Adjust to use
3797 inferior_ref::new_reference/thread_info_ref::new_reference.
3798 Incref the thread before calling get_frame_id instead of after.
3799 Let TARGET_CLOSE_ERROR propagate.
3800
3801 2020-07-10 Pedro Alves <pedro@palves.net>
3802
3803 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
3804 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
3805 NOT_AVAILABLE_ERROR.
3806 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
3807 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
3808
3809 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3810 Pedro Alves <pedro@palves.net>
3811
3812 PR gdb/26199
3813 * infrun.c (threads_are_resumed_pending_p): Delete.
3814 (do_target_wait): Remove threads_are_executing and
3815 threads_are_resumed_pending_p checks from the inferior_matches
3816 lambda. Update comments.
3817
3818 2020-07-10 Pedro Alves <pedro@palves.net>
3819
3820 PR gdb/26199
3821 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
3822 executing threads.
3823
3824 2020-07-10 Pedro Alves <pedro@palves.net>
3825
3826 PR gdb/26199
3827 * infrun.c (handle_no_resumed): Handle multiple targets.
3828
3829 2020-07-10 Pedro Alves <pedro@palves.net>
3830
3831 PR gdb/26199
3832 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
3833 target_is_async_p.
3834
3835 2020-07-10 Pedro Alves <pedro@palves.net>
3836
3837 PR gdb/26199
3838 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
3839 threads, not all threads.
3840
3841 2020-07-10 Pedro Alves <pedro@palves.net>
3842
3843 PR gdb/26199
3844 * remote.c (remote_target::open_1): Pass remote target pointer as
3845 data to create_async_event_handler.
3846 (remote_async_inferior_event_handler): Mark async event handler
3847 before returning if the remote target still has either pending
3848 events or unacknowledged notifications.
3849
3850 2020-07-10 John Baldwin <jhb@FreeBSD.org>
3851
3852 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
3853 declaration.
3854 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
3855 function.
3856
3857 2020-07-09 John Baldwin <jhb@FreeBSD.org>
3858
3859 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
3860 inferior_ptid.
3861
3862 2020-07-09 John Baldwin <jhb@FreeBSD.org>
3863
3864 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
3865 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
3866 AT_FREEBSD_PS_STRINGS.
3867
3868 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
3869
3870 * auto-load.c (auto_load_objfile_script_1): Convert drive part
3871 of debugfile path on Windows.
3872
3873 2020-07-08 John Baldwin <jhb@FreeBSD.org>
3874
3875 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
3876 argument to 'data'.
3877
3878 2020-07-08 Tom Tromey <tromey@adacore.com>
3879
3880 * ada-lang.c (ada_exception_message_1): Use read_memory.
3881
3882 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3883
3884 PR python/22748
3885 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
3886 special handling for inline frames.
3887 * findvar.c (value_of_register_lazy): Skip inline frames when
3888 creating lazy register values.
3889 * frame.c (frame_id_computed_p): Delete definition.
3890 * frame.h (frame_id_computed_p): Delete declaration.
3891
3892 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3893
3894 * NEWS: Mention additions to Python API.
3895 * python/py-arch.c (archpy_register_groups): New function.
3896 (arch_object_methods): Add 'register_groups' method.
3897 * python/py-registers.c (reggroup_iterator_object): New struct.
3898 (reggroup_object): New struct.
3899 (gdbpy_new_reggroup): New function.
3900 (gdbpy_reggroup_to_string): New function.
3901 (gdbpy_reggroup_name): New function.
3902 (gdbpy_reggroup_iter): New function.
3903 (gdbpy_reggroup_iter_next): New function.
3904 (gdbpy_new_reggroup_iterator): New function
3905 (gdbpy_initialize_registers): Register new types.
3906 (reggroup_iterator_object_type): Define new Python type.
3907 (gdbpy_reggroup_getset): New static global.
3908 (reggroup_object_type): Define new Python type.
3909 * python/python-internal.h
3910
3911 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3912
3913 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
3914 * python/py-arch.c (archpy_registers): New function.
3915 (arch_object_methods): Add 'registers' method.
3916 * python/py-registers.c: New file.
3917 * python/python-internal.h
3918 (gdbpy_new_register_descriptor_iterator): Declare.
3919 (gdbpy_initialize_registers): Declare.
3920 * python/python.c (do_start_initialization): Call
3921 gdbpy_initialize_registers.
3922 * NEWS: Mention additions to the Python API.
3923
3924 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3925
3926 * NEWS: Mention new Python API method.
3927 * python/py-unwind.c (pending_framepy_architecture): New function.
3928 (pending_frame_object_methods): Add architecture method.
3929
3930 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3931
3932 * gdbarch.c: Regenerate.
3933 * gdbarch.h: Regenerate.
3934 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
3935 (gdbarch_data): Use internal_error for the case where
3936 deprecated_set_gdbarch_data was originally needed.
3937 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
3938 and use passed in obstack.
3939 (libunwind_frame_set_descr): Should no longer get back NULL from
3940 gdbarch_data.
3941 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
3942 type.
3943 * user-regs.c (user_regs_init): Update parameters, and use passed
3944 in obstack.
3945 (user_reg_add): Should no longer get back NULL from gdbarch_data.
3946 (_initialize_user_regs): Register as a pre-init gdbarch data type.
3947
3948 2020-07-06 Tom de Vries <tdevries@suse.de>
3949
3950 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
3951 End-Of-Sequence in lte_is_less_than.
3952 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
3953 "gdb: Don't reorder line table entries too much when sorting".
3954
3955 2020-07-06 Tom de Vries <tdevries@suse.de>
3956
3957 PR tui/26205
3958 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
3959
3960 2020-07-05 Tom de Vries <tdevries@suse.de>
3961
3962 PR build/26187
3963 * inferior.h (struct infcall_suspend_state_deleter): If available, use
3964 std::uncaught_exceptions instead of deprecated
3965 std::uncaught_exception.
3966
3967 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3968
3969 * macroexp.h (macro_stringify): Return
3970 gdb::unique_xmalloc_ptr<char>.
3971 * macroexp.c (macro_stringify): Likewise.
3972 * macrotab.c (fixup_definition): Update.
3973
3974 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3975
3976 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
3977 (lex_one_token): Update.
3978 * macroexp.c (struct macro_buffer) <release>: Return
3979 gdb::unique_xmalloc_ptr<char>.
3980 (macro_stringify): Update.
3981 (macro_expand): Update.
3982 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
3983 * macroexp.h (macro_expand_next): Likewise.
3984
3985 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
3986
3987 * macroexp.h (macro_lookup_ftype): Remove.
3988 (macro_expand, macro_expand_once, macro_expand_next): Remove
3989 lookup function parameters, add scope parameter.
3990 * macroexp.c (scan, substitute_args, expand, maybe_expand,
3991 macro_expand, macro_expand_once, macro_expand_next): Likewise.
3992 * macroscope.h (standard_macro_lookup): Change parameter type
3993 to macro_scope.
3994 * macroscope.c (standard_macro_lookup): Likewise.
3995 * c-exp.y (lex_one_token): Update.
3996 * macrocmd.c (macro_expand_command): Likewise.
3997 (macro_expand_once_command): Likewise.
3998
3999 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4000
4001 * inf-loop.c (inferior_event_handler): Remove client_data param.
4002 * inf-loop.h (inferior_event_handler): Likewise.
4003 * infcmd.c (step_1): Adjust.
4004 * infrun.c (proceed): Adjust.
4005 (fetch_inferior_event): Remove client_data param.
4006 (infrun_async_inferior_event_handler): Adjust.
4007 * infrun.h (fetch_inferior_event): Remove `void *` param.
4008 * linux-nat.c (handle_target_event): Adjust.
4009 * record-btrace.c (record_btrace_handle_async_inferior_event):
4010 Adjust.
4011 * record-full.c (record_full_async_inferior_event_handler):
4012 Adjust.
4013 * remote.c (remote_async_inferior_event_handler): Adjust.
4014
4015 2020-07-01 Tom Tromey <tom@tromey.com>
4016
4017 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
4018 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
4019
4020 2020-07-01 Tom Tromey <tom@tromey.com>
4021
4022 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
4023 tui_gen_win_info.
4024 (tui_win_info::make_window): Merge with
4025 tui_gen_win_info::make_window.
4026 (tui_win_info::make_visible): Move from tui_gen_win_info.
4027 * tui/tui-win.c (tui_win_info::max_width): Move from
4028 tui_gen_win_info.
4029 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
4030 type.
4031 <window_factory>: Likewise.
4032 * tui/tui-layout.c (tui_win_info::resize): Move from
4033 tui_gen_win_info.
4034 (make_standard_window): Change return type.
4035 (get_locator_window, tui_get_window_by_name): Likewise.
4036 (tui_layout_window::apply): Remove a cast.
4037 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
4038 (struct tui_win_info): Merge with tui_gen_win_info.
4039 (struct tui_gen_win_info): Remove.
4040
4041 2020-07-01 Tom Tromey <tom@tromey.com>
4042
4043 * tui/tui-stack.h (struct tui_locator_window): Derive from
4044 tui_win_info.
4045 <do_scroll_horizontal, do_scroll_vertical>: New methods.
4046 <can_box>: New method.
4047
4048 2020-07-01 Tom Tromey <tom@tromey.com>
4049
4050 * tui/tui-stack.h (struct tui_locator_window): Remove body.
4051
4052 2020-07-01 Tom Tromey <tom@tromey.com>
4053
4054 * tui/tui-regs.c (tui_data_window::display_registers_from)
4055 (tui_data_window::display_registers_from)
4056 (tui_data_window::first_data_item_displayed)
4057 (tui_data_window::delete_data_content_windows): Update.
4058 (tui_data_window::refresh_window, tui_data_window::no_refresh):
4059 Remove.
4060 (tui_data_window::check_register_values): Update.
4061 (tui_data_item_window::rerender): Add parameters. Update.
4062 (tui_data_item_window::refresh_window): Remove.
4063 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
4064 virtual.
4065 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
4066 tui_gen_win_info.
4067 <refresh_window, max_height, min_height>: Remove.
4068 <rerender>: Add parameters.
4069 <x, y, visible>: New members.
4070 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
4071 <m_item_width>: New member.
4072
4073 2020-07-01 Tom Tromey <tom@tromey.com>
4074
4075 * tui/tui-regs.c (tui_data_window::show_register_group)
4076 (tui_data_window::check_register_values): Update.
4077 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
4078 from item_no.
4079
4080 2020-07-01 Tom Tromey <tom@tromey.com>
4081
4082 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
4083 useless "if".
4084
4085 2020-07-01 Tom Tromey <tom@tromey.com>
4086
4087 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
4088 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
4089
4090 2020-07-01 Tom Tromey <tom@tromey.com>
4091
4092 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
4093 * tui/tui-winsource.h (enum tui_line_or_address_kind)
4094 (struct tui_line_or_address): Move from tui-data.h.
4095 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
4096 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
4097 (tui_cmd_window, tui_source_window_base, tui_source_window)
4098 (tui_disasm_window): Don't declare.
4099 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
4100 to tui-winsource.h.
4101 (SINGLE_KEY): Move to tui-stack.c.
4102
4103 2020-07-01 Tom Tromey <tom@tromey.com>
4104
4105 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
4106 std::string.
4107 * tui/tui-regs.c (class tab_expansion_file): New.
4108 (tab_expansion_file::write): New method.
4109 (tui_register_format): Change return type. Use
4110 tab_expansion_file.
4111 (tui_get_register, tui_data_window::display_registers_from)
4112 (tui_data_item_window::rerender): Update.
4113 * tui/tui-io.h (tui_expand_tabs): Don't declare.
4114 * tui/tui-io.c (tui_expand_tabs): Remove.
4115
4116 2020-07-01 Tom Tromey <tom@tromey.com>
4117
4118 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
4119
4120 2020-07-01 Fangrui Song <maskray@google.com>
4121
4122 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
4123
4124 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4125
4126 * dwarf2/read.c (set_die_type): Removed conditions to restrict
4127 forms for DW_AT_associated and DW_AT_allocated attributes,
4128 which is already checked in function attr_to_dynamic_prop.
4129
4130 2020-06-30 Tom Tromey <tromey@adacore.com>
4131
4132 * dwarf2/read.c (quirk_rust_enum): Correctly call
4133 alloc_rust_variant for default-less enum.
4134
4135 2020-06-30 Tom Tromey <tromey@adacore.com>
4136
4137 PR build/26183:
4138 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
4139 gdb::to_string.
4140
4141 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
4142
4143 * gdbarch.sh (displaced_step_copy_insn): Update doc.
4144 * gdbarch.h: Re-generate.
4145
4146 2020-06-28 Tom Tromey <tom@tromey.com>
4147
4148 * command.h (cmd_types): Remove.
4149 (cmd_type): Don't declare.
4150 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
4151 typedef.
4152 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
4153 * cli/cli-decode.c (cmd_type): Remove.
4154
4155 2020-06-27 Pedro Alves <palves@redhat.com>
4156
4157 * fork-child.c (prefork_hook): Adjust.
4158 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
4159 Delete.
4160 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
4161 * inferior.c (inferior::set_tty, inferior::tty): New methods.
4162 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
4163 Remove declarations.
4164 (struct inferior) <set_tty, tty>: New methods.
4165 (struct inferior) <terminal>: Rename to ...
4166 (struct inferior) <m_terminal>: ... this and make private.
4167 * main.c (captured_main_1): Adjust.
4168 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
4169 (mi_cmd_inferior_tty_show): Adjust.
4170 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
4171 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
4172
4173 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
4174
4175 * configure.ac: Add --enable-libctf: handle --disable-static
4176 properly.
4177 * acinclude.m4: sinclude ../config/enable.m4.
4178 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
4179 (LIBCTF): Substitute in.
4180 (CTF_DEPS): New, likewise.
4181 (CLIBS): libctf needs symbols from libbfd: move earlier.
4182 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
4183 flags.
4184 * ctfread.c: Surround in ENABLE_LIBCTF.
4185 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
4186 * configure: Regenerate.
4187 * config.in: Likewise.
4188
4189 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
4190
4191 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
4192
4193 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
4194
4195 * inferior.h (struct inferior) <terminal>: Change type to
4196 gdb::unique_xmalloc_ptr<char>.
4197 * inferior.c (inferior::~inferior): Don't free inf->terminal.
4198 * infcmd.c (set_inferior_io_terminal): Don't free terminal
4199 field, adjust to unique pointer.
4200 (get_inferior_io_terminal): Adjust to unique pointer.
4201
4202 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4203
4204 * riscv-tdep.c (riscv_print_registers_info): Loop over all
4205 registers, not just the known core set of registers.
4206
4207 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4208
4209 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
4210 fflags, frm, and fcsr registers.
4211 (riscv_register_reggroup_p): Remove unknown CSRs from save and
4212 restore groups.
4213 (riscv_tdesc_unknown_reg): New function.
4214 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
4215 tdesc_use_registers.
4216 * riscv-tdep.h (struct gdbarch_tdep): Add
4217 unknown_csrs_first_regnum, unknown_csrs_count,
4218 duplicate_fflags_regnum, duplicate_frm_regnum, and
4219 duplicate_fcsr_regnum fields.
4220
4221 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4222
4223 * target-descriptions.c (tdesc_use_registers): Add new parameter a
4224 callback, use the callback (when not null) to help number unknown
4225 registers.
4226 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
4227 (tdesc_use_registers): Add extra parameter to declaration.
4228
4229 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4230
4231 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
4232 in the file.
4233 (class riscv_pending_register_alias): Likewise.
4234 (riscv_register_feature::register_info): Change 'required_p' field
4235 to 'required', and change its type. Add 'check' member function.
4236 (riscv_register_feature::register_info::check): Define new member
4237 function.
4238 (riscv_xreg_feature): Change initialisation of 'required' field.
4239 (riscv_freg_feature): Likewise.
4240 (riscv_virtual_feature): Likewise.
4241 (riscv_csr_feature): Likewise.
4242 (riscv_check_tdesc_feature): Take extra parameter, the csr
4243 tdesc_feature, rewrite the function to use the new
4244 riscv_register_feature::register_info::check function.
4245 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
4246
4247 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4248
4249 * features/Makefile: Remove all references to the deleted files
4250 below.
4251 * features/riscv/32bit-csr.c: Deleted.
4252 * features/riscv/32bit-csr.xml: Deleted.
4253 * features/riscv/64bit-csr.c: Deleted.
4254 * features/riscv/64bit-csr.xml: Deleted.
4255 * features/riscv/rebuild-csr-xml.sh: Deleted.
4256
4257 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4258
4259 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
4260 whitespace error for declaration of names member variable.
4261 (struct riscv_register_feature): Add new prefer_first_name member
4262 variable, and fix whitespace error in declaration of registers.
4263 (riscv_xreg_feature): Initialize prefer_first_name field.
4264 (riscv_freg_feature): Likewise.
4265 (riscv_virtual_feature): Likewise.
4266 (riscv_csr_feature): Likewise.
4267 (riscv_register_name): Expand on comments. Remove register name
4268 modifications for CSR and virtual registers.
4269
4270 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4271
4272 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
4273 errors.
4274
4275 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4276
4277 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
4278 riscv-opc.h.
4279 (class riscv_pending_register_alias): New class.
4280 (riscv_check_tdesc_feature): Take vector of pending aliases and
4281 populate it as appropriate.
4282 (riscv_setup_register_aliases): Delete.
4283 (riscv_gdbarch_init): Create vector of pending aliases and pass it
4284 to riscv_check_tdesc_feature in all cases. Use the vector to
4285 create the register aliases.
4286
4287 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4288
4289 * sol2-tdep.c (sol2_static_transform_name): Remove.
4290 (sol2_init_abi): Don't register it.
4291 * gdbarch.sh (static_transform_name): Remove.
4292 * gdbarch.c, gdbarch.h: Regenerate.
4293
4294 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
4295 gdbarch_static_transform_name.
4296 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
4297 * stabsread.c (define_symbol) <'X'>: Remove.
4298 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
4299 handling.
4300 <'V'>: Likewise.
4301 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
4302 <'S'>: Remove call to gdbarch_static_transform_name.
4303
4304 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4305
4306 * procfs.c (procfs_pre_trace): New function.
4307 (procfs_target::create_inferior): Pass it to fork_inferior.
4308
4309 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4310
4311 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
4312 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
4313 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
4314 sol2-tdep.o, sparc-sol2-tdep.o.
4315 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
4316 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
4317 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
4318 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
4319
4320 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4321
4322 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
4323 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
4324 Call sol2_init_abi.
4325 Remove calls to set_gdbarch_skip_solib_resolver,
4326 set_gdbarch_core_pid_to_str.
4327 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
4328 (i386_sol2_static_transform_name): Remove.
4329 (i386_sol2_init_abi): Call sol2_init_abi.
4330 Remove calls to set_gdbarch_sofun_address_maybe_missing,
4331 set_gdbarch_static_transform_name,
4332 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
4333 Use sol2_sigtramp_p.
4334 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
4335 (sol2_sigtramp_p): New function.
4336 (sol2_static_transform_name): New function.
4337 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
4338 (sol2_init_abi): New function.
4339 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
4340 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
4341 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
4342 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
4343 (sparc_sol2_static_transform_name): Remove.
4344 (sparc32_sol2_init_abi): Call sol2_init_abi.
4345 Remove calls to set_gdbarch_sofun_address_maybe_missing,
4346 set_gdbarch_static_transform_name,
4347 set_gdbarch_skip_solib_resolver,
4348 set_gdbarch_core_pid_to_str.
4349 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
4350 (sparc_sol2_static_transform_name): Remove
4351 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
4352 call sol2_sigtramp_p.
4353 (sparc64_sol2_init_abi): Call sol2_init_abi.
4354 Remove calls to set_gdbarch_sofun_address_maybe_missing,
4355 set_gdbarch_static_transform_name,
4356 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
4357
4358 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4359
4360 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
4361 * exec.c (validate_exec_file): If from_tty, set both
4362 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
4363 * symfile.c (symbol_file_add_with_addrs): if always_confirm
4364 and from_tty, unconditionally ask a confirmation.
4365
4366 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4367
4368 * target-descriptions.c (tdesc_architecture_name): Protect against
4369 NULL pointer dereference.
4370 (maint_print_xml_tdesc_cmd): New function.
4371 (_initialize_target_descriptions): Register new 'maint print
4372 xml-tdesc' command and give it the filename completer.
4373 * NEWS: Mention new 'maint print xml-tdesc' command.
4374
4375 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4376
4377 * target-descriptions.c (class tdesc_compatible_info): New class.
4378 (struct target_desc): Change type of compatible vector.
4379 (tdesc_compatible_p): Update for change in type of
4380 target_desc::compatible.
4381 (tdesc_compatible_info_list): New function.
4382 (tdesc_compatible_info_arch_name): New function.
4383 (tdesc_add_compatible): Update for change in type of
4384 target_desc::compatible.
4385 (print_c_tdesc::visit_pre): Likewise.
4386
4387 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4388
4389 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
4390 whitespace to underscore.
4391 (maint_print_c_tdesc_cmd): Use fake filename for target
4392 descriptions that came from the target.
4393 (_initialize_target_descriptions): Add filename command completion
4394 for 'maint print c-tdesc'.
4395
4396 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
4397
4398 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
4399 lines.
4400
4401 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
4402
4403 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
4404 lines.
4405 (dwarf2_find_location_expression): Likewise.
4406 (call_site_parameter_matches): Likewise.
4407 (dwarf2_compile_expr_to_ax): Likewise.
4408 (disassemble_dwarf_expression): Likewise.
4409 (loclist_describe_location): Likewise.
4410
4411 2020-06-23 Pedro Alves <palves@redhat.com>
4412
4413 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
4414 progspace-and-thread.h. Include scoped-mock-context.h instead.
4415 (register_to_value_test): Use scoped_mock_context.
4416 * regcache.c: Include "scoped-mock-context.h".
4417 (cooked_read_test): Don't error out if a target is already pushed.
4418 Use scoped_mock_context. Adjust.
4419 * scoped-mock-context.h: New file.
4420
4421 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4422
4423 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
4424 initializer.
4425 (ada_language::is_string_type_p): New member function.
4426 * c-lang.c (c_language_data): Delete la_is_string_type_p
4427 initializer.
4428 (cplus_language_data): Likewise.
4429 (asm_language_data): Likewise.
4430 (minimal_language_data): Likewise.
4431 * d-lang.c (d_language_data): Likewise.
4432 * f-lang.c (f_is_string_type_p): Delete function, implementation
4433 moved to f_language::is_string_type_p.
4434 (f_language_data): Delete la_is_string_type_p initializer.
4435 (f_language::is_string_type_p): New member function,
4436 implementation from f_is_string_type_p.
4437 * go-lang.c (go_is_string_type_p): Delete function, implementation
4438 moved to go_language::is_string_type_p.
4439 (go_language_data): Delete la_is_string_type_p initializer.
4440 (go_language::is_string_type_p): New member function,
4441 implementation from go_is_string_type_p.
4442 * language.c (language_defn::is_string_type_p): Define new member
4443 function.
4444 (default_is_string_type_p): Make static, add comment copied from
4445 header file.
4446 (unknown_language_data): Delete la_is_string_type_p initializer.
4447 (unknown_language::is_string_type_p): New member function.
4448 (auto_language_data): Delete la_is_string_type_p initializer.
4449 (auto_language::is_string_type_p): New member function.
4450 * language.h (language_data): Delete la_is_string_type_p field.
4451 (language_defn::is_string_type_p): Declare new function.
4452 (default_is_string_type_p): Delete desclaration, move comment to
4453 definition.
4454 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
4455 moved to m2_language::is_string_type_p.
4456 (m2_language_data): Delete la_is_string_type_p initializer.
4457 (m2_language::is_string_type_p): New member function,
4458 implementation from m2_is_string_type_p.
4459 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
4460 initializer.
4461 * opencl-lang.c (opencl_language_data): Likewise.
4462 * p-lang.c (pascal_is_string_type_p): Delete function,
4463 implementation moved to pascal_language::is_string_type_p.
4464 (pascal_language_data): Delete la_is_string_type_p initializer.
4465 (pascal_language::is_string_type_p): New member function,
4466 implementation from pascal_is_string_type_p.
4467 * rust-lang.c (rust_is_string_type_p): Delete function,
4468 implementation moved to rust_language::is_string_type_p.
4469 (rust_language_data): Delete la_is_string_type_p initializer.
4470 (rust_language::is_string_type_p): New member function,
4471 implementation from rust_is_string_type_p.
4472 * valprint.c (val_print_scalar_or_string_type_p): Update call to
4473 is_string_type_p.
4474
4475 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4476
4477 * ada-lang.c (ada_language_data): Delete la_print_typedef
4478 initializer.
4479 (ada_language::print_typedef): New member function.
4480 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
4481 (cplus_language_data): Likewise.
4482 (asm_language_data): Likewise.
4483 (minimal_language_data): Likewise.
4484 * d-lang.c (d_language_data): Likewise.
4485 * f-lang.c (f_language_data): Likewise.
4486 (f_language::print_typedef): New member function.
4487 * go-lang.c (go_language_data): Delete la_print_typedef
4488 initializer.
4489 * language.c (language_defn::print_typedef): Define member
4490 function.
4491 (unknown_language_data): Delete la_print_typedef initializer.
4492 (unknown_language::print_typedef): New member function.
4493 (auto_language_data): Delete la_print_typedef initializer.
4494 (auto_language::print_typedef): New member function.
4495 * language.h (language_data): Delete la_print_typedef field.
4496 (language_defn::print_typedef): Declare new member function.
4497 (LA_PRINT_TYPEDEF): Update call to print_typedef.
4498 (default_print_typedef): Delete declaration.
4499 * m2-lang.c (m2_language_data): Delete la_print_typedef
4500 initializer.
4501 (m2_language::print_typedef): New member function.
4502 * objc-lang.c (objc_language_data): Delete la_print_typedef
4503 initializer.
4504 * opencl-lang.c (opencl_language_data): Likewise.
4505 * p-lang.c (pascal_language_data): Likewise.
4506 (pascal_language::print_typedef): New member function.
4507 * rust-lang.c (rust_print_typedef): Delete function,
4508 implementation moved to rust_language::print_typedef.
4509 (rust_language): Delete la_print_typedef initializer.
4510 (rust_language::print_typedef): New member function,
4511 implementation from rust_print_typedef.
4512 * typeprint.c (default_print_typedef): Delete.
4513
4514 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4515
4516 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
4517 (ada_language::printstr): New member function.
4518 * c-lang.c (c_language_data): Delete la_printstr initializer.
4519 (cplus_language_data): Likewise.
4520 (asm_language_data): Likewise.
4521 (minimal_language_data): Likewise.
4522 * d-lang.c (d_language_data): Likewise.
4523 * f-lang.c (f_printstr): Rename to f_language::printstr.
4524 (f_language_data): Delete la_printstr initializer.
4525 (f_language::printstr): New member function, implementation from
4526 f_printstr.
4527 * go-lang.c (go_language_data): Delete la_printstr initializer.
4528 * language.c (language_defn::printstr): Define new member
4529 function.
4530 (unk_lang_printstr): Delete.
4531 (unknown_language_data): Delete la_printstr initializer.
4532 (unknown_language::printstr): New member function.
4533 (auto_language_data): Delete la_printstr initializer.
4534 (auto_language::printstr): New member function.
4535 * language.h (language_data): Delete la_printstr field.
4536 (language_defn::printstr): Declare new member function.
4537 (LA_PRINT_STRING): Update call to printstr.
4538 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
4539 (m2_language_data): Delete la_printstr initializer.
4540 (m2_language::printstr): New member function, implementation from
4541 m2_printstr.
4542 * objc-lang.c (objc_language_data): Delete la_printstr
4543 initializer.
4544 * opencl-lang.c (opencl_language_data): Likewise.
4545 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
4546 (pascal_language_data): Delete la_printstr initializer.
4547 (pascal_language::printstr): New member function, implementation
4548 from pascal_printstr.
4549 * p-lang.h (pascal_printstr): Delete declaration.
4550 * rust-lang.c (rust_printstr): Update header comment.
4551 (rust_language_data): Delete la_printstr initializer.
4552 (rust_language::printstr): New member function.
4553
4554 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4555
4556 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
4557 (ada_language::printchar): New member function.
4558 * c-lang.c (c_language_data): Delete la_printchar initializer.
4559 (cplus_language_data): Likewise.
4560 (asm_language_data): Likewise.
4561 (minimal_language_data): Likewise.
4562 * d-lang.c (d_language_data): Likewise.
4563 * f-lang.c (f_printchar): Rename to f_language::printchar.
4564 (f_language_data): Delete la_printchar initializer.
4565 (f_language::printchar): New member function, implementation from
4566 f_printchar.
4567 * go-lang.c (go_language_data): Delete la_printchar initializer.
4568 * language.c (unk_lang_printchar): Delete.
4569 (language_defn::printchar): Define new member function.
4570 (unknown_language_data): Delete la_printchar initializer.
4571 (unknown_language::printchar): New member function.
4572 (auto_language_data): Delete la_printchar initializer.
4573 (auto_language::printchar): New member function.
4574 * language.h (language_data): Delete la_printchar field.
4575 (language_defn::printchar): Declare new member function.
4576 (LA_PRINT_CHAR): Update call to printchar.
4577 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
4578 (m2_language::printchar): New member function.
4579 * objc-lang.c (objc_language_data): Delete la_printchar
4580 initializer.
4581 * opencl-lang.c (opencl_language_data): Likewise.
4582 * p-lang.c (pascal_language_data): Delete la_printchar
4583 initializer.
4584 (pascal_language::printchar): New member function.
4585 * rust-lang.c (rust_printchar): Rename to
4586 rust_language::printchar.
4587 (rust_language_data): Delete la_printchar initializer.
4588 (rust_language::printchar): New member function, implementation
4589 from rust_printchar.
4590
4591 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4592
4593 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
4594 (ada_language_data): Delete la_emitchar initializer.
4595 (ada_language::emitchar): New member function, implementation from
4596 emit_char.
4597 * c-lang.c (c_language_data): Delete la_emitchar initializer.
4598 (cplus_language_data): Likewise.
4599 (asm_language_data): Likewise.
4600 (minimal_language_data): Likewise.
4601 * d-lang.c (d_language_data): Likewise.
4602 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
4603 (f_language_data): Delete la_emitchar initializer.
4604 (f_language::emitchar): New member function, implementation from
4605 f_emit_char.
4606 * go-lang.c (go_language_data): Delete la_emitchar initializer.
4607 * language.c (unk_lang_emit_char): Delete.
4608 (language_defn::emitchar): New member function definition.
4609 (unknown_language_data): Delete la_emitchar initializer.
4610 (unknown_language::emitchar): New member function.
4611 (auto_language_data): Delete la_emitchar initializer.
4612 (auto_language::emitchar): New member function.
4613 * language.h (language_data): Delete la_emitchar field.
4614 (language_defn::emitchar): New member field declaration.
4615 (LA_EMIT_CHAR): Update call to emitchar.
4616 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
4617 (m2_language_data): Delete la_emitchar initializer.
4618 (m2_language::emitchar): New member function, implementation from
4619 m2_emit_char.
4620 * objc-lang.c (objc_language_data): Delete la_emitchar
4621 initializer.
4622 * opencl-lang.c (opencl_language_data): Likewise.
4623 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
4624 (pascal_language_data): Delete la_emitchar initializer.
4625 (pascal_language::emitchar): New member function, implementation
4626 from pascal_emit_char.
4627 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
4628 (rust_language_data): Delete la_emitchar initializer.
4629 (rust_language::emitchar): New member function, implementation
4630 from rust_emitchar.
4631
4632 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4633
4634 * ada-lang.c (resolve): Rename to ada_language::post_parser.
4635 (ada_language_data): Delete la_post_parser initializer.
4636 (ada_language::post_parser): New member function.
4637 * c-lang.c (c_language_data): Delete la_post_parser initializer.
4638 (cplus_language_data): Likewise.
4639 (asm_language_data): Likewise.
4640 (minimal_language_data): Likewise.
4641 * d-lang.c (d_language_data): Likewise.
4642 * f-lang.c (f_language_data): Likewise.
4643 * go-lang.c (go_language_data): Likewise.
4644 * language.c (unknown_language_data): Likewise.
4645 (auto_language_data): Likewise.
4646 * language.h (language_data): Delete la_post_parser field.
4647 (language_defn::post_parser): New member function.
4648 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
4649 * objc-lang.c (objc_language_data): Likewise.
4650 * opencl-lang.c (opencl_language_data): Likewise.
4651 * p-lang.c (pascal_language_data): Likewise.
4652 * parse.c (parse_exp_in_context): Update call to post_parser.
4653 (null_post_parser): Delete definition.
4654 * parser-defs.h (null_post_parser): Delete declaration.
4655 * rust-lang.c (rust_language_data): Delete la_post_parser
4656 initializer.
4657
4658 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4659
4660 * ada-lang.c (parse): Rename to ada_language::parser.
4661 (ada_language_data): Delete la_parser initializer.
4662 (ada_language::parser): New member function, implementation from
4663 parse.
4664 * c-lang.c (c_language_data): Delete la_parser initializer.
4665 (cplus_language_data): Likewise.
4666 (asm_language_data): Likewise.
4667 (minimal_language_data): Likewise.
4668 * d-lang.c (d_language_data): Likewise.
4669 (d_language::parser): New member function.
4670 * f-lang.c (f_language_data): Delete la_parser initializer.
4671 (f_language::parser): New member function.
4672 * go-lang.c (go_language_data): Delete la_parser initializer.
4673 (go_language::parser): New member function.
4674 * language.c (unk_lang_parser): Delete.
4675 (language_defn::parser): Define new member function.
4676 (unknown_language_data): Delete la_parser initializer.
4677 (unknown_language::parser): New member function.
4678 (auto_language_data): Delete la_parser initializer.
4679 (auto_language::parser): New member function.
4680 * language.h (language_data): Delete la_parser field.
4681 (language_defn::parser): Declare new member function.
4682 * m2-lang.c (m2_language_data): Delete la_parser initializer.
4683 (m2_language::parser): New member function.
4684 * objc-lang.c (objc_language_data): Delete la_parser initializer.
4685 * opencl-lang.c (opencl_language_data): Likewise.
4686 * p-lang.c (pascal_language_data): Likewise.
4687 (pascal_language::parser): New member function.
4688 * parse.c (parse_exp_in_context): Update call to parser.
4689 * rust-lang.c (rust_language_data): Delete la_parser initializer.
4690 (rust_language::parser): New member function.
4691
4692 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4693
4694 * top.c (print_gdb_configuration): Print --with-python-libdir
4695 configuration value.
4696
4697 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4698
4699 * NEWS: Mention change to the alias command.
4700
4701 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4702
4703 * cli/cli-cmds.c (lookup_cmd_for_default_args)
4704 (alias_command_completer)
4705 (make_alias_options_def_group): New functions.
4706 (alias_opts, alias_option_defs): New struct and array.
4707 (alias_usage_error): Update usage.
4708 (alias_command): Handles optional DEFAULT-ARGS... arguments.
4709 Use option framework.
4710 (_initialize_cli_cmds): Update alias command help.
4711 Update aliases command help.
4712 (show_user):
4713 Add NULL for new default_args lookup_cmd argument.
4714 (valid_command_p): Rename to validate_aliased_command.
4715 Add NULL for new default_args lookup_cmd argument. Verify that the
4716 aliased_command has no default args.
4717 * cli/cli-decode.c (help_cmd): Show aliases definitions.
4718 (lookup_cmd_1, lookup_cmd): New argument default_args.
4719 (add_alias_cmd):
4720 Add NULL for new default_args lookup_cmd argument.
4721 (print_help_for_command): Show default args under the layout
4722 alias some_alias = some_aliased_cmd some_alias_default_arg.
4723 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
4724 xfree default_args in destructor.
4725 * cli/cli-script.c (process_next_line, do_define_command):
4726 Add NULL for new default_args lookup_cmd argument.
4727 * command.h: Declare new default_args argument in lookup_cmd
4728 and lookup_cmd_1.
4729 * completer.c (complete_line_internal_1):
4730 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4731 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
4732 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
4733 Likewise.
4734 * infcmd.c (_initialize_infcmd): Likewise.
4735 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
4736 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
4737 * python/py-param.c (add_setshow_generic): Likewise.
4738 * remote.c (_initialize_remote): Likewise.
4739 * top.c (execute_command): Prepend default_args if command has some.
4740 (set_verbose):
4741 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4742 * tracepoint.c (validate_actionline, encode_actions_1):
4743 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4744
4745 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4746
4747 * jit.c (jit_read_descriptor): Use bool as the return type.
4748 (jit_breakpoint_re_set_internal): Use bool as the return type.
4749 Invert the return value logic; return true if the jit breakpoint
4750 has been successfully initialized.
4751 (jit_inferior_init): Update the call to
4752 jit_breakpoint_re_set_internal.
4753
4754 2020-06-22 Pedro Alves <palves@redhat.com>
4755
4756 PR gdb/25939
4757 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
4758 Use the current inferior instead. Don't return
4759 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
4760 wait again.
4761 * sol-thread.c (sol_thread_target::wait): Don't reference
4762 inferior_ptid.
4763 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
4764 (sol_update_thread_list_callback): Use the current inferior's pid
4765 instead of inferior_ptid.
4766
4767 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4768
4769 * procfs.c: Cleanup many comments.
4770
4771 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
4772 (AFTER_WATCHFLAG): Replace by value.
4773
4774 (MAIN_PROC_NAME_FORMAT): Inline ...
4775 (create_procinfo): ... here.
4776
4777 (procfs_debug_inferior): Remove SYS_exec handling.
4778 (syscall_is_exec): Likewise.
4779 (procfs_set_exec_trap): Likewise.
4780
4781 (syscall_is_lwp_exit): Inline in callers.
4782 (syscall_is_exit): Likewise.
4783 (syscall_is_exec): Likewise.
4784 (syscall_is_lwp_create): Likewise.
4785
4786 (invalidate_cache): Remove #if 0 code.
4787
4788 (make_signal_thread_runnable): Remove.
4789 (procfs_target::resume): Remove #if 0 code.
4790
4791 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4792
4793 PR gdb/25939
4794 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
4795 call ...
4796 (procfs_target::create_inferior): ... here.
4797
4798 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4799
4800 * exec.c (validate_exec_file): Ensure the build-id is up to
4801 date by calling reopen_exec_file (that checks file timestamp
4802 to decide to re-read the file).
4803
4804 2020-06-18 Pedro Alves <palves@redhat.com>
4805
4806 PR gdb/25412
4807 * gdbthread.h (delete_thread, delete_thread_silent)
4808 (find_thread_ptid): Update comments.
4809 * thread.c (current_thread_): New global.
4810 (is_current_thread): Move higher, and reimplement.
4811 (inferior_thread): Reimplement.
4812 (set_thread_exited): Use bool. Add assertions.
4813 (add_thread_silent): Simplify thread-reuse handling by always
4814 calling delete_thread.
4815 (delete_thread): Remove intro comment.
4816 (find_thread_ptid): Skip exited threads.
4817 (switch_to_thread_no_regs): Write to current_thread_.
4818 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
4819 INFERIOR_PTID. Clear current_thread_.
4820
4821 2020-06-18 Pedro Alves <palves@redhat.com>
4822
4823 * aix-thread.c (pd_update): Use switch_to_thread.
4824
4825 2020-06-18 Pedro Alves <palves@redhat.com>
4826
4827 * ravenscar-thread.c (ravenscar_thread_target): Update.
4828 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
4829 (ravenscar_thread_target::add_active_thread): ... this. Don't
4830 set m_base_ptid here. Update to avoid referencing inferior_ptid.
4831 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
4832
4833 2020-06-18 Pedro Alves <palves@redhat.com>
4834
4835 * nat/windows-nat.c (current_windows_thread): Remove.
4836 * nat/windows-nat.h (current_windows_thread): Remove.
4837 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
4838 Adjust.
4839 (display_selectors): Adjust to fetch the current
4840 windows_thread_info based on inferior_ptid.
4841 (fake_create_process): No longer write to current_windows_thread.
4842 (windows_nat_target::get_windows_debug_event):
4843 Don't set inferior_ptid or current_windows_thread.
4844 (windows_nat_target::wait): Adjust to not rely on
4845 current_windows_thread.
4846 (do_initial_windows_stuff): Now a method of windows_nat_target.
4847 Switch to the last_ptid thread.
4848 (windows_nat_target::attach): Adjust.
4849 (windows_nat_target::detach): Use switch_to_no_thread instead of
4850 writing to inferior_ptid directly.
4851 (windows_nat_target::create_inferior): Adjust.
4852
4853 2020-06-18 Pedro Alves <palves@redhat.com>
4854
4855 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
4856
4857 2020-06-18 Pedro Alves <palves@redhat.com>
4858
4859 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
4860 after creating it, instead of writing to inferior_ptid. Don't
4861 write to inferior_ptid.
4862
4863 2020-06-18 Pedro Alves <palves@redhat.com>
4864
4865 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
4866
4867 2020-06-18 Pedro Alves <palves@redhat.com>
4868
4869 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
4870 it, instead of writing to inferior_ptid.
4871
4872 2020-06-18 Pedro Alves <palves@redhat.com>
4873
4874 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
4875 to inferior_ptid.
4876
4877 2020-06-18 Pedro Alves <palves@redhat.com>
4878
4879 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
4880 instead of writing to inferior_ptid directly.
4881
4882 2020-06-18 Pedro Alves <palves@redhat.com>
4883
4884 * corelow.c (core_target::close): Use switch_to_no_thread instead
4885 of writing to inferior_ptid directly.
4886 (add_to_thread_list, core_target_open): Use switch_to_thread
4887 instead of writing to inferior_ptid directly.
4888
4889 2020-06-18 Pedro Alves <palves@redhat.com>
4890
4891 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
4892 inferior_ptid.
4893 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
4894 inferior_ptid.
4895 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
4896 inferior_ptid directly.
4897 (darwin_nat_target::init_thread_list): Switch to thread, instead
4898 of writing to inferior_ptid.
4899 (darwin_nat_target::attach): Don't write to inferior_ptid.
4900 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
4901
4902 2020-06-18 Pedro Alves <palves@redhat.com>
4903
4904 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
4905 thread.
4906 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
4907 Instead use switch_to_thread.
4908 (gnu_nat_target::detach): Use switch_to_no_thread
4909 instead of writing to inferior_ptid directly. Used passed-in
4910 inferior instead of looking up the inferior by pid.
4911
4912 2020-06-18 Pedro Alves <palves@redhat.com>
4913
4914 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
4915 inferior_ptid.
4916
4917 2020-06-18 Pedro Alves <palves@redhat.com>
4918
4919 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
4920 inferior_ptid.
4921 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
4922 thread.
4923 (nto_procfs_target::detach): Avoid referencing
4924 inferior_ptid. Use switch_to_no_thread instead of writing to
4925 inferior_ptid directly.
4926 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
4927 instead of writing to inferior_ptid directly.
4928 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
4929 to thread.
4930
4931 2020-06-18 Pedro Alves <palves@redhat.com>
4932
4933 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
4934 after creating it, instead of writing to inferior_ptid.
4935 (gdbsim_target_open): Use switch_to_no_thread instead of writing
4936 to inferior_ptid directly.
4937 (gdbsim_target::wait): Don't write to inferior_ptid.
4938
4939 2020-06-18 Pedro Alves <palves@redhat.com>
4940
4941 * remote.c (remote_target::remote_notice_new_inferior): Use
4942 switch_to_thread instead of writing to inferior_ptid directly.
4943 (remote_target::add_current_inferior_and_thread): Use
4944 switch_to_no_thread instead of writing to inferior_ptid directly.
4945 (extended_remote_target::attach): Use switch_to_inferior_no_thread
4946 and switch_to_thread instead of using set_current_inferior or
4947 writing to inferior_ptid directly.
4948
4949 2020-06-18 Pedro Alves <palves@redhat.com>
4950
4951 * tracectf.c (ctf_target_open): Switch to added thread instead of
4952 writing to inferior_ptid directly.
4953 (ctf_target::close): Use switch_to_no_thread instead of writing to
4954 inferior_ptid directly.
4955
4956 2020-06-18 Pedro Alves <palves@redhat.com>
4957
4958 * tracefile-tfile.c (tfile_target_open): Don't write to
4959 inferior_ptid directly, instead switch to added thread.
4960 (tfile_target::close): Use switch_to_no_thread instead of writing
4961 to inferior_ptid directly.
4962
4963 2020-06-18 Pedro Alves <palves@redhat.com>
4964
4965 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
4966 (procfs_target::detach): Use switch_to_no_thread
4967 instead of writing to inferior_ptid directly.
4968 (do_attach): Change return type to void. Switch to the added
4969 thread.
4970 (procfs_target::create_inferior): Switch to the added thread.
4971 (procfs_do_thread_registers): Don't write to inferior_ptid.
4972
4973 2020-06-18 Pedro Alves <palves@redhat.com>
4974
4975 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
4976 of writing to inferior_ptid.
4977 (scoped_restore_exited_inferior): Delete.
4978 (handle_vfork_child_exec_or_exit): Simplify using
4979 scoped_restore_current_pspace_and_thread. Use switch_to_thread
4980 instead of writing to inferior_ptid.
4981 (THREAD_STOPPED_BY): Delete.
4982 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
4983 (thread_stopped_by_hw_breakpoint): Delete.
4984 (save_waitstatus): Use
4985 scoped_restore_current_thread+switch_to_thread, and call
4986 target_stopped_by_watchpoint instead of
4987 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
4988 instead of thread_stopped_by_sw_breakpoint, and
4989 target_stopped_by_hw_breakpoint instead of
4990 thread_stopped_by_hw_breakpoint.
4991 (handle_inferior_event)
4992 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
4993 inferior_ptid directly, nor
4994 set_current_inferior/set_current_program_space. Use
4995 switch_to_thread / switch_to_inferior_no_thread instead.
4996
4997 2020-06-18 Pedro Alves <palves@redhat.com>
4998
4999 * target.c (generic_mourn_inferior): Use switch_to_no_thread
5000 instead of writing to inferior_ptid.
5001
5002 2020-06-18 Pedro Alves <palves@redhat.com>
5003
5004 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
5005 added thread.
5006 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
5007 to the added thread.
5008 (inf_ptrace_target::detach_success): Use switch_to_no_thread
5009 instead of writing to inferior_ptid.
5010
5011 2020-06-18 Pedro Alves <palves@redhat.com>
5012
5013 * gdbarch-selftests.c: Include "progspace-and-thread.h".
5014 (register_to_value_test): Mock a program_space too. Heap-allocate
5015 the address space. Don't write to inferior_ptid. Use
5016 switch_to_thread instead.
5017
5018 2020-06-18 Pedro Alves <palves@redhat.com>
5019
5020 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
5021 Delete.
5022 (find_signalled_thread()): New, factored out from
5023 linux_make_corefile_notes and adjusted to handle exited threads.
5024 (linux_make_corefile_notes): Adjust to use the new
5025 find_signalled_thread.
5026
5027 2020-06-18 Pedro Alves <palves@redhat.com>
5028
5029 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
5030 of saving/restoring inferior_ptid.
5031
5032 2020-06-17 Tom Tromey <tom@tromey.com>
5033
5034 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
5035 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
5036 declare.
5037 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
5038
5039 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
5040
5041 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
5042 of partial symtabs.
5043
5044 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
5045
5046 * regformats/reg-arm.dat: Remove.
5047 * regformats/reg-bfin.dat: Remove.
5048 * regformats/reg-cris.dat: Remove.
5049 * regformats/reg-crisv32.dat: Remove.
5050 * regformats/reg-m32r.dat: Remove.
5051 * regformats/reg-tilegx.dat: Remove.
5052 * regformats/reg-tilegx32.dat: Remove.
5053
5054 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
5055
5056 * features/Makefile (WHICH): Remove arm files.
5057 * regformats/arm/arm-with-iwmmxt.dat: Remove.
5058 * regformats/arm/arm-with-neon.dat: Remove.
5059 * regformats/arm/arm-with-vfpv2.dat: Remove.
5060 * regformats/arm/arm-with-vfpv3.dat: Remove.
5061
5062 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
5063
5064 * features/Makefile (XMLTOC): Remove rx.xml.
5065
5066 2020-06-17 Pedro Alves <palves@redhat.com>
5067
5068 * gdbthread.h (thread_control_state) <trap_expected> Update
5069 comments.
5070
5071 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5072
5073 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
5074 ada_language::lookup_symbol_nonlocal.
5075 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
5076 (ada_language::lookup_symbol_nonlocal): New member function,
5077 implementation from ada_lookup_symbol_nonlocal.
5078 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
5079 initializer.
5080 (cplus_language_data): Delete la_lookup_symbol_nonlocal
5081 initializer.
5082 (cplus_language::lookup_symbol_nonlocal): New member function.
5083 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
5084 (minimal_language_data) Likewise.
5085 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
5086 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
5087 initializer.
5088 (d_language::lookup_symbol_nonlocal): New member function.
5089 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
5090 initializer.
5091 (f_language::lookup_symbol_nonlocal): New member function.
5092 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
5093 initializer.
5094 * language.c (unknown_language_data): Likewise.
5095 (auto_language_data): Likewise.
5096 * language.h (language_data): Delete la_lookup_symbol_nonlocal
5097 field.
5098 (language_defn::lookup_symbol_nonlocal): New member function.
5099 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
5100 initializer.
5101 * objc-lang.c (objc_language_data): Likewise.
5102 * opencl-lang.c (opencl_language_data): Likewise.
5103 * p-lang.c (pascal_language_data): Likewise.
5104 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
5105 rust_language::lookup_symbol_nonlocal.
5106 (rust_language_data): Delete la_lookup_symbol_nonlocal
5107 initializer.
5108 (rust_language::lookup_symbol_nonlocal): New member function,
5109 implementation from rust_lookup_symbol_nonlocal.
5110 * symtab.c (lookup_symbol_aux): Update call to
5111 lookup_symbol_nonlocal.
5112 (basic_lookup_symbol_nonlocal): Rename to...
5113 (language_defn::lookup_symbol_nonlocal): ...this, and update
5114 header comment. Remove language_defn parameter, and replace with
5115 uses of `this'.
5116 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
5117
5118 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5119
5120 * ada-lang.c (ada_language_data): Delete la_value_print_inner
5121 initializer.
5122 (ada_language::value_print_inner): New member function.
5123 * c-lang.c (c_language_data): Delete la_value_print_inner
5124 initializer.
5125 (cplus_language_data): Likewise.
5126 (asm_language_data): Likewise.
5127 (minimal_language_data): Likewise.
5128 * d-lang.c (d_language_data): Likewise.
5129 (d_language::value_print_inner): New member function.
5130 * f-lang.c (f_language_data): Delete la_value_print_inner
5131 initializer.
5132 (f_language::value_print_inner): New member function.
5133 * f-lang.h (f_value_print_innner): Rename to...
5134 (f_value_print_inner): ...this (note spelling of 'inner').
5135 * f-valprint.c (f_value_print_innner): Rename to...
5136 (f_value_print_inner): ...this (note spelling of 'inner').
5137 * go-lang.c (go_language_data): Delete la_value_print_inner
5138 initializer.
5139 (go_language::value_print_inner): New member function.
5140 * language.c (language_defn::value_print_inner): Define new member
5141 function.
5142 (unk_lang_value_print_inner): Delete.
5143 (unknown_language_data): Delete la_value_print_inner initializer.
5144 (unknown_language::value_print_inner): New member function.
5145 (auto_language_data): Delete la_value_print_inner initializer.
5146 (auto_language::value_print_inner): New member function.
5147 * language.h (language_data): Delete la_value_print_inner field.
5148 (language_defn::value_print_inner): Delcare new member function.
5149 * m2-lang.c (m2_language_data): Delete la_value_print_inner
5150 initializer.
5151 (m2_language::value_print_inner): New member function.
5152 * objc-lang.c (objc_language_data): Delete la_value_print_inner
5153 initializer.
5154 * opencl-lang.c (opencl_language_data): Likewise.
5155 * p-lang.c (pascal_language_data): Likewise.
5156 (pascal_language::value_print_inner): New member function.
5157 * rust-lang.c (rust_language_data): Delete la_value_print_inner
5158 initializer.
5159 (rust_language::value_print_inner): New member function.
5160 * valprint.c (do_val_print): Update call to value_print_inner.
5161
5162 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5163
5164 * ada-lang.c (ada_language_data): Delete la_value_print
5165 initializer.
5166 (ada_language::value_print): New member function.
5167 * c-lang.c (c_language_data): Delete la_value_print initializer.
5168 (cplus_language_data): Likewise.
5169 (asm_language_data): Likewise.
5170 (minimal_language_data): Likewise.
5171 * d-lang.c (d_language_data): Likewise.
5172 * f-lang.c (f_language_data): Likewise.
5173 * go-lang.c (go_language_data): Likewise.
5174 * language.c (unk_lang_value_print): Delete.
5175 (language_defn::value_print): Define new member function.
5176 (unknown_language_data): Delete la_value_print initializer.
5177 (unknown_language::value_print): New member function.
5178 (auto_language_data): Delete la_value_print initializer.
5179 (auto_language::value_print): New member function.
5180 * language.h (language_data): Delete la_value_print field.
5181 (language_defn::value_print): Declare new member function.
5182 (LA_VALUE_PRINT): Update call to value_print.
5183 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
5184 * objc-lang.c (objc_language_data): Likewise.
5185 * opencl-lang.c (opencl_language_data): Likewise.
5186 * p-lang.c (pascal_language_data): Likewise.
5187 (pascal_language::value_print): New member function.
5188 * rust-lang.c (rust_language_data): Delete la_value_print
5189 initializer.
5190
5191 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5192
5193 * ada-lang.c (ada_watch_location_expression): Rename to
5194 ada_language::watch_location_expression.
5195 (ada_language_data): Delete la_watch_location_expression
5196 initializer.
5197 (ada_language::watch_location_expression): New member function,
5198 implementation from ada_watch_location_expression.
5199 * breakpoint.c (watch_command_1): Update call to
5200 watch_location_expression.
5201 * c-lang.c (c_watch_location_expression): Rename to
5202 language_defn::watch_location_expression.
5203 (c_language_data): Delete la_watch_location_expression
5204 initializer.
5205 (cplus_language_data): Likewise.
5206 (asm_language_data): Likewise.
5207 (minimal_language_data): Likewise.
5208 * c-lang.h (c_watch_location_expression): Delete declaration.
5209 * d-lang.c (d_language_data): Delete la_watch_location_expression
5210 initializer.
5211 * f-lang.c (f_language_data): Likewise.
5212 * go-lang.c (go_language_data): Likewise.
5213 * language.c (language_defn::watch_location_expression): Member
5214 function implementation from c_watch_location_expression.
5215 (unknown_language_data): Delete la_watch_location_expression
5216 initializer.
5217 (auto_language_data): Likewise.
5218 * language.h (language_data): Delete la_watch_location_expression
5219 field.
5220 (language_defn::watch_location_expression): Declare new member
5221 function.
5222 * m2-lang.c (m2_language_data): Delete
5223 la_watch_location_expression initializer.
5224 * objc-lang.c (objc_language_data): Likewise.
5225 * opencl-lang.c (opencl_language_data): Likewise.
5226 * p-lang.c (pascal_language_data): Likewise.
5227 * rust-lang.c (rust_watch_location_expression): Rename to
5228 rust_language::watch_location_expression.
5229 (rust_language_data): Delete la_watch_location_expression
5230 initializer.
5231 (rust_language::watch_location_expression): New member function,
5232 implementation from rust_watch_location_expression.
5233
5234 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5235
5236 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
5237 ada_language::collect_symbol_completion_matches.
5238 (ada_language_data): Delete la_collect_symbol_completion_matches
5239 initializer.
5240 (ada_language::collect_symbol_completion_matches): New member
5241 function, implementation from
5242 ada_collect_symbol_completion_matches.
5243 * c-lang.c (c_language_data): Delete
5244 la_collect_symbol_completion_matches initializer.
5245 (cplus_language_data): Likewise.
5246 (asm_language_data): Likewise.
5247 (minimal_language_data): Likewise.
5248 * d-lang.c (d_language_data): Likewise.
5249 * f-lang.c (f_collect_symbol_completion_matches): Rename to
5250 f_language::collect_symbol_completion_matches.
5251 (f_language_data): Delete la_collect_symbol_completion_matches
5252 initializer.
5253 (f_language::collect_symbol_completion_matches) New member
5254 function, implementation from f_collect_symbol_completion_matches.
5255 * go-lang.c (go_language_data): Delete
5256 la_collect_symbol_completion_matches initializer.
5257 * language.c (unknown_language_data): Likewise.
5258 (auto_language_data): Likewise.
5259 * language.h (language_data): Delete
5260 la_collect_symbol_completion_matches field.
5261 (language_defn::collect_symbol_completion_matches): New member
5262 function.
5263 * m2-lang.c (m2_language_data): Delete
5264 la_collect_symbol_completion_matches initializer.
5265 * objc-lang.c (objc_language_data): Likewise.
5266 * opencl-lang.c (opencl_language_data): Likewise.
5267 * p-lang.c (pascal_language_data): Likewise.
5268 * rust-lang.c (rust_language_data): Likewise.
5269 * symtab.c (default_collect_symbol_completion_matches): Delete.
5270 (collect_symbol_completion_matches): Update call to
5271 collect_symbol_completion_matches.
5272 (collect_symbol_completion_matches_type): Likewise.
5273 * symtab.h (default_collect_symbol_completion_matches): Delete
5274 declaration.
5275
5276 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5277
5278 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
5279 (ada_language_data): Delete la_word_break_characters initializer.
5280 (ada_language::word_break_characters): New member function.
5281 * c-lang.c (c_language_data): Delete la_word_break_characters
5282 initializer.
5283 (cplus_language_data): Likewise.
5284 (asm_language_data): Likewise.
5285 (minimal_language_data): Likewise.
5286 * completer.c: Update global comment.
5287 (advance_to_expression_complete_word_point): Update call to
5288 word_break_characters.
5289 (complete_files_symbols): Likewise.
5290 (complete_line_internal_1): Likewise.
5291 (default_completer_handle_brkchars): Likewise.
5292 (skip_quoted_chars): Likewise.
5293 * d-lang.c (d_language_data): Delete la_word_break_characters
5294 initializer.
5295 * f-lang.c (f_word_break_characters): Delete.
5296 (f_language_data): Delete la_word_break_characters initializer.
5297 (f_language::word_break_characters): New member function.
5298 * go-lang.c (go_language_data): Delete la_word_break_characters
5299 initializer.
5300 * language.c (unknown_language_data): Likewise.
5301 (auto_language_data): Likewise.
5302 * language.h (default_word_break_characters): Move declaration to
5303 earlier in the file.
5304 (language_data): Delete la_word_break_characters field.
5305 (language_defn::word_break_characters): New member function.
5306 * m2-lang.c (m2_language_data): Delete la_word_break_characters
5307 initializer.
5308 * objc-lang.c (objc_language_data): Likewise.
5309 * opencl-lang.c (opencl_language_data): Likewise.
5310 * p-lang.c (pascal_language_data): Likewise.
5311 * rust-lang.c (rust_language_data): Likewise.
5312
5313 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5314
5315 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
5316 (ada_language_data): Delete la_get_symbol_name_matcher
5317 initializer.
5318 (language_defn::get_symbol_name_matcher_inner): New member
5319 function.
5320 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
5321 initializer.
5322 (cplus_language_data): Likewise.
5323 (cplus_language::get_symbol_name_matcher_inner): New member
5324 function.
5325 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
5326 (minimal_language_data): Likewise.
5327 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
5328 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
5329 initializer.
5330 * dictionary.c (iter_match_first_hashed): Update call to
5331 get_symbol_name_matcher.
5332 (iter_match_next_hashed): Likewise.
5333 (iter_match_next_linear): Likewise.
5334 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
5335 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
5336 initializer.
5337 (f_language::get_symbol_name_matcher_inner): New member function.
5338 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
5339 initializer.
5340 * language.c (default_symbol_name_matcher): Update header comment,
5341 make static.
5342 (language_defn::get_symbol_name_matcher): New definition.
5343 (language_defn::get_symbol_name_matcher_inner): Likewise.
5344 (get_symbol_name_matcher): Delete.
5345 (unknown_language_data): Delete la_get_symbol_name_matcher
5346 initializer.
5347 (auto_language_data): Likewise.
5348 * language.h (language_data): Delete la_get_symbol_name_matcher
5349 field.
5350 (language_defn::get_symbol_name_matcher): New member function.
5351 (language_defn::get_symbol_name_matcher_inner): Likewise.
5352 (default_symbol_name_matcher): Delete declaration.
5353 * linespec.c (find_methods): Update call to
5354 get_symbol_name_matcher.
5355 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
5356 initializer.
5357 * minsyms.c (lookup_minimal_symbol): Update call to
5358 get_symbol_name_matcher.
5359 (iterate_over_minimal_symbols): Likewise.
5360 * objc-lang.c (objc_language_data): Delete
5361 la_get_symbol_name_matcher initializer.
5362 * opencl-lang.c (opencl_language_data): Likewise.
5363 * p-lang.c (pascal_language_data): Likewise.
5364 * psymtab.c (psymbol_name_matches): Update call to
5365 get_symbol_name_matcher.
5366 * rust-lang.c (rust_language_data): Delete
5367 la_get_symbol_name_matcher initializer.
5368 * symtab.c (symbol_matches_search_name): Update call to
5369 get_symbol_name_matcher.
5370 (compare_symbol_name): Likewise.
5371
5372 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5373
5374 * ada-lang.c (ada_language_data): Delete la_compute_program
5375 initializer.
5376 * c-lang.c (c_language_data): Likewise.
5377 (c_language::compute_program): New member function.
5378 (cplus_language_data): Delete la_compute_program initializer.
5379 (cplus_language::compute_program): New member function.
5380 (asm_language_data): Delete la_compute_program initializer.
5381 (minimal_language_data): Likewise.
5382 * c-lang.h (c_compute_program): Update comment.
5383 (cplus_compute_program): Likewise.
5384 * compile/compile-c-support.c (c_compute_program): Likewise.
5385 (cplus_compute_program): Likewise.
5386 * compile/compile.c (compile_to_object): Update call to
5387 la_compute_program.
5388 * d-lang.c (d_language_data): Delete la_compute_program
5389 initializer.
5390 * f-lang.c (f_language_data): Likewise.
5391 * go-lang.c (go_language_data): Likewise.
5392 * language.c (unknown_language_data): Likewise.
5393 (auto_language_data): Likewise.
5394 * language.h (language_data): Delete la_compute_program field.
5395 (language_defn::compute_program): New member function.
5396 * m2-lang.c (m2_language_data): Delete la_compute_program
5397 initializer.
5398 * objc-lang.c (objc_language_data): Likewise.
5399 * opencl-lang.c (opencl_language_data): Likewise.
5400 * p-lang.c (pascal_language_data): Likewise.
5401 * rust-lang.c (rust_language_data): Likewise.
5402
5403 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5404
5405 * ada-lang.c (ada_language_data) Delete
5406 la_class_name_from_physname initializer.
5407 * c-lang.c (c_language_data): Likewise.
5408 (cplus_language_data): Likewise.
5409 (cplus_language::class_name_from_physname): New member function.
5410 (asm_language_data): Delete la_class_name_from_physname
5411 initializer.
5412 (minimal_language_data): Likewise.
5413 * d-lang.c (d_language_data): Likewise.
5414 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
5415 method on language_defn class.
5416 (guess_full_die_structure_name): Likewise.
5417 * f-lang.c (f_language_data): Delete la_class_name_from_physname
5418 initializer.
5419 * go-lang.c (go_language_data): Likewise.
5420 * language.c (language_class_name_from_physname): Delete.
5421 (unk_lang_class_name): Delete.
5422 (unknown_language_data): Delete la_class_name_from_physname
5423 initializer.
5424 (auto_language_data): Likewise.
5425 * language.h (language_data): Delete la_class_name_from_physname
5426 field.
5427 (language_defn::class_name_from_physname): New function.
5428 (language_class_name_from_physname): Delete declaration.
5429 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
5430 initializer.
5431 * objc-lang.c (objc_language_data): Likewise.
5432 * opencl-lang.c (opencl_language_data): Likewise.
5433 * p-lang.c (pascal_language_data): Likewise.
5434 * rust-lang.c (rust_language_data): Likewise.
5435
5436 2020-06-16 Tom Tromey <tom@tromey.com>
5437
5438 * tui/tui-data.h (STATUS_NAME): New macro.
5439 * tui/tui-layout.c (tui_remove_some_windows)
5440 (initialize_known_windows, tui_register_window)
5441 (tui_layout_split::remove_windows, initialize_layouts)
5442 (tui_new_layout_command): Don't use hard-coded window names.
5443
5444 2020-06-16 Tom Tromey <tom@tromey.com>
5445
5446 PR tui/25348:
5447 * tui/tui.c (tui_ensure_readline_initialized): Rename from
5448 tui_initialize_readline. Only run once. Call rl_initialize.
5449 * tui/tui.h (tui_ensure_readline_initialized): Rename from
5450 tui_initialize_readline.
5451 * tui/tui-io.c (tui_setup_io): Call
5452 tui_ensure_readline_initialized.
5453 * tui/tui-interp.c (tui_interp::init): Update.
5454
5455 2020-06-16 Tom Tromey <tom@tromey.com>
5456
5457 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
5458 Also preserve the status window.
5459
5460 2020-06-16 Tom Tromey <tom@tromey.com>
5461
5462 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
5463 where m_window==nullptr.
5464
5465 2020-06-15 Tom Tromey <tromey@adacore.com>
5466
5467 * windows-nat.c (windows_nat::handle_output_debug_string):
5468 Update.
5469 (windows_nat::handle_ms_vc_exception): Update.
5470 * target.h (target_read_string): Change API.
5471 * target.c (target_read_string): Change API.
5472 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
5473 Update.
5474 * solib-frv.c (frv_current_sos): Update.
5475 * solib-dsbt.c (dsbt_current_sos): Update.
5476 * solib-darwin.c (darwin_current_sos): Update.
5477 * linux-thread-db.c (inferior_has_bug): Update.
5478 * expprint.c (print_subexp_standard): Update.
5479 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
5480 (ada_exception_message_1): Update.
5481
5482 2020-06-15 Tom Tromey <tromey@adacore.com>
5483
5484 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
5485
5486 2020-06-15 Tom Tromey <tromey@adacore.com>
5487
5488 * valprint.c (read_string): Update comment.
5489 * target.c (MIN): Remove.
5490 (target_read_string): Rewrite.
5491
5492 2020-06-15 Tom Tromey <tromey@adacore.com>
5493
5494 * corefile.c (read_memory_string): Remove.
5495 * ada-valprint.c (ada_value_print_ptr): Update.
5496 * ada-lang.h (ada_tag_name): Change return type.
5497 * ada-lang.c (type_from_tag): Update.
5498 (ada_tag_name_from_tsd): Change return type. Use
5499 target_read_string.
5500 (ada_tag_name): Likewise.
5501 * gdbcore.h (read_memory_string): Don't declare.
5502
5503 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
5504
5505 * symtab.c (rbreak_command): Ignore Windows drive colon.
5506
5507 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
5508
5509 * NEWS: Mention removed GDBserver host support.
5510
5511 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
5512
5513 * features/riscv/rebuild-csr-xml.sh: Updated.
5514
5515 2020-06-11 Tom Tromey <tom@tromey.com>
5516
5517 PR gdb/18318:
5518 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
5519
5520 2020-06-09 Jonny Grant <jg@jguk.org>
5521 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
5522
5523 * main.c (captured_main_1): Don't print new line after help.
5524 (print_gdb_help): add mailing list and IRC channel information
5525 to --help. Add new lines between items in the footer. Remove
5526 quotes around bug url.
5527
5528 2020-06-11 Keith Seitz <keiths@redhat.com>
5529
5530 PR gdb/21356
5531 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
5532 Resolve typedefs for type length calculations.
5533
5534 2020-06-10 Tom de Vries <tdevries@suse.de>
5535
5536 PR ada/24713
5537 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
5538 (write_psymbols): Enable .gdb_index for ada.
5539 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
5540 ada.
5541
5542 2020-06-10 Tom de Vries <tdevries@suse.de>
5543
5544 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
5545 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
5546 namei" instead of "const char *name" argument.
5547 (dw2_map_matching_symbols): Use "offset_type namei" variant of
5548 dw2_symtab_iter_init.
5549
5550 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
5551
5552 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
5553 to use type::field and field::type instead.
5554
5555 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
5556
5557 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
5558 to use field::type instead.
5559
5560 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
5561
5562 * gdbtypes.h (struct field) <type, set_type>: New methods.
5563 Rename `type` field to...
5564 <m_type>: ... this. Change references throughout to use type or
5565 set_type methods.
5566 (FIELD_TYPE): Use field::type. Change call sites that modify
5567 the field's type to use field::set_type instead.
5568
5569 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
5570
5571 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
5572 to use type::index_type instead.
5573
5574 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
5575
5576 * gdbtypes.h (struct type) <index_type, set_index_type>: New
5577 methods.
5578 (TYPE_INDEX_TYPE): Use type::index_type.
5579 * gdbtypes.c (create_array_type_with_stride): Likewise.
5580
5581 2020-06-07 Tom Tromey <tom@tromey.com>
5582
5583 * valprint.c (generic_val_print_float): Remove "embedded_offset"
5584 parameter.
5585 (generic_value_print): Update.
5586
5587 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
5588
5589 Revert commit 982a38f60b0.
5590 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
5591
5592 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
5593
5594 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
5595 avoid use after free.
5596
5597 2020-06-05 Tom de Vries <tdevries@suse.de>
5598
5599 * NEWS: Fix typos.
5600
5601 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
5602
5603 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
5604 the per_bfd object.
5605 (dwarf2_read_debug_names): Likewise.
5606 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
5607 object when re-using a per_bfd object with an index.
5608
5609 2020-06-03 Tom de Vries <tdevries@suse.de>
5610
5611 PR symtab/26046
5612 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
5613 children for C++.
5614 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
5615 DW_TAG_subprogram.
5616
5617 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5618
5619 * ada-lang.c (ada_language_data): Delete skip_trampoline
5620 initializer.
5621 * c-lang.c (c_language_data): Likewise.
5622 (cplus_language_data): Likewise.
5623 (cplus_language::skip_trampoline): New member function.
5624 (asm_language_data): Delete skip_trampoline initializer.
5625 (minimal_language_data): Likewise.
5626 * d-lang.c (d_language_data): Likewise.
5627 * f-lang.c (f_language_data): Likewise.
5628 * go-lang.c (go_language_data): Likewise.
5629 * language.c (unk_lang_trampoline): Delete function.
5630 (skip_language_trampoline): Update.
5631 (unknown_language_data): Delete skip_trampoline initializer.
5632 (auto_language_data): Likewise.
5633 * language.h (language_data): Delete skip_trampoline field.
5634 (language_defn::skip_trampoline): New function.
5635 * m2-lang.c (m2_language_data): Delete skip_trampoline
5636 initializer.
5637 * objc-lang.c (objc_skip_trampoline): Delete function, move
5638 implementation to objc_language::skip_trampoline.
5639 (objc_language_data): Delete skip_trampoline initializer.
5640 (objc_language::skip_trampoline): New member function with
5641 implementation from objc_skip_trampoline.
5642 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
5643 initializer.
5644 * p-lang.c (pascal_language_data): Likewise.
5645 * rust-lang.c (rust_language_data): Likewise.
5646
5647 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5648
5649 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
5650 (ada_language::demangle): New member function.
5651 * c-lang.c (c_language_data): Delete la_demangle initializer.
5652 (cplus_language_data): Delete la_demangle initializer.
5653 (cplus_language::demangle): New member function.
5654 (asm_language_data): Delete la_demangle initializer.
5655 (minimal_language_data): Delete la_demangle initializer.
5656 * d-lang.c (d_language_data): Delete la_demangle initializer.
5657 (d_language::demangle): New member function.
5658 * f-lang.c (f_language_data): Delete la_demangle initializer.
5659 (f_language::demangle): New member function.
5660 * go-lang.c (go_language_data): Delete la_demangle initializer.
5661 (go_language::demangle): New member function.
5662 * language.c (language_demangle): Update.
5663 (unk_lang_demangle): Delete.
5664 (unknown_language_data): Delete la_demangle initializer.
5665 (unknown_language::demangle): New member function.
5666 (auto_language_data): Delete la_demangle initializer.
5667 (auto_language::demangle): New member function.
5668 * language.h (language_data): Delete la_demangle field.
5669 (language_defn::demangle): New function.
5670 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
5671 * objc-lang.c (objc_language_data): Delete la_demangle
5672 initializer.
5673 (objc_language::demangle): New member function.
5674 * opencl-lang.c (opencl_language_data): Delete la_demangle
5675 initializer.
5676 * p-lang.c (pascal_language_data): Likewise.
5677 * rust-lang.c (rust_language_data): Likewise.
5678 (rust_language::demangle): New member function.
5679
5680 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5681
5682 * ada-lang.c (ada_language_data): Delete la_print_type
5683 initializer.
5684 (ada_language::print_type): New member function.
5685 * c-lang.c (c_language_data): Delete la_print_type initializer.
5686 (c_language::print_type): New member function.
5687 (cplus_language_data): Delete la_print_type initializer.
5688 (cplus_language::print_type): New member function.
5689 (asm_language_data): Delete la_print_type initializer.
5690 (asm_language::print_type): New member function.
5691 (minimal_language_data): Delete la_print_type initializer.
5692 (minimal_language::print_type): New member function.
5693 * d-lang.c (d_language_data): Delete la_print_type initializer.
5694 (d_language::print_type): New member function.
5695 * f-lang.c (f_language_data): Delete la_print_type initializer.
5696 (f_language::print_type): New member function.
5697 * go-lang.c (go_language_data): Delete la_print_type initializer.
5698 (go_language::print_type): New member function.
5699 * language.c (unk_lang_print_type): Delete.
5700 (unknown_language_data): Delete la_print_type initializer.
5701 (unknown_language::print_type): New member function.
5702 (auto_language_data): Delete la_print_type initializer.
5703 (auto_language::print_type): New member function.
5704 * language.h (language_data): Delete la_print_type field.
5705 (language_defn::print_type): New function.
5706 (LA_PRINT_TYPE): Update.
5707 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
5708 (m2_language::print_type): New member function.
5709 * objc-lang.c (objc_language_data): Delete la_print_type
5710 initializer.
5711 (objc_language::print_type): New member function.
5712 * opencl-lang.c (opencl_print_type): Delete, implementation moved
5713 to opencl_language::print_type.
5714 (opencl_language_data): Delete la_print_type initializer.
5715 (opencl_language::print_type): New member function, implementation
5716 from opencl_print_type.
5717 * p-lang.c (pascal_language_data): Delete la_print_type
5718 initializer.
5719 (pascal_language::print_type): New member function.
5720 * rust-lang.c (rust_print_type): Delete, implementation moved to
5721 rust_language::print_type.
5722 (rust_language_data): Delete la_print_type initializer.
5723 (rust_language::print_type): New member function, implementation
5724 from rust_print_type.
5725
5726 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5727
5728 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
5729 implementation moves to...
5730 (ada_language::sniff_from_mangled_name): ...here. Update return
5731 type.
5732 (ada_language_data): Delete la_sniff_from_mangled_name
5733 initializer.
5734 * c-lang.c (c_language_data): Likewise.
5735 (cplus_language_data): Likewise.
5736 (cplus_language::sniff_from_mangled_name): New member function,
5737 implementation taken from gdb_sniff_from_mangled_name.
5738 (asm_language_data): Delete la_sniff_from_mangled_name
5739 initializer.
5740 (minimal_language_data): Likewise.
5741 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
5742 implementation moves to cplus_language::sniff_from_mangled_name.
5743 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
5744 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
5745 moves to...
5746 (d_language::sniff_from_mangled_name): ...here.
5747 (d_language_data): Delete la_sniff_from_mangled_name initializer.
5748 * f-lang.c (f_language_data): Likewise.
5749 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
5750 moves to...
5751 (go_language::sniff_from_mangled_name): ...here.
5752 (go_language_data): Delete la_sniff_from_mangled_name initializer.
5753 * language.c (language_sniff_from_mangled_name): Delete.
5754 (unknown_language_data): Delete la_sniff_from_mangled_name
5755 initializer.
5756 (auto_language_data): Likewise.
5757 * language.h (language_data): Delete la_sniff_from_mangled_name
5758 field.
5759 (language_defn::sniff_from_mangled_name): New function.
5760 (language_sniff_from_mangled_name): Delete declaration.
5761 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
5762 field.
5763 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
5764 implementation moves to...
5765 (objc_language::sniff_from_mangled_name): ...here.
5766 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
5767 * opencl-lang.c (opencl_language_data): Likewise.
5768 * p-lang.c (pascal_language_data): Likewise.
5769 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
5770 implementation moves to...
5771 (rust_language::sniff_from_mangled_name): ...here.
5772 (rust_language_data): Delete la_sniff_from_mangled_name
5773 initializer.
5774 * symtab.c (symbol_find_demangled_name): Call
5775 sniff_from_mangled_name member function.
5776
5777 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5778
5779 * ada-lang.c (ada_language_data): Delete la_search_name_hash
5780 initializer.
5781 * c-lang.c (c_language_data): Likewise.
5782 (cplus_language_data): Likewise.
5783 (cplus_language::search_name_hash): New member function.
5784 (asm_language_data): Delete la_search_name_hash initializer.
5785 (minimal_language_data): Likewise.
5786 * d-lang.c (d_language_data): Likewise.
5787 * dictionary.c (default_search_name_hash): Rename to...
5788 (language_defn::search_name_hash): ...this.
5789 * f-lang.c (f_language_data): Likewise.
5790 (f_language::search_name_hash): New member function.
5791 * go-lang.c (go_language_data): Delete la_search_name_hash
5792 initializer.
5793 * language.c (unknown_language_data): Likewise.
5794 (auto_language_data): Likewise.
5795 * language.h (struct language_data): Delete la_search_name_hash
5796 field.
5797 (language_defn::search_name_hash): Declare new member function.
5798 (default_search_name_hash): Delete declaration.
5799 * m2-lang.c (m2_language_data): Delete la_search_name_hash
5800 initializer.
5801 * objc-lang.c (objc_language_data): Likewise.
5802 * opencl-lang.c (opencl_language_data): Likewise.
5803 * p-lang.c (pascal_language_data): Likewise.
5804 * rust-lang.c (rust_language_data): Likewise.
5805 * symtab.c (search_name_hash): Update call.
5806
5807 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5808
5809 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
5810 initializer.
5811 * c-lang.c (class compile_instance): Declare.
5812 (c_language_data): Delete la_get_compile_instance initializer.
5813 (c_language::get_compile_instance): New member function.
5814 (cplus_language_data): Delete la_get_compile_instance initializer.
5815 (cplus_language::get_compile_instance): New member function.
5816 (asm_language_data): Delete la_get_compile_instance initializer.
5817 (minimal_language_data): Likewise.
5818 * c-lang.h (c_get_compile_context): Update comment.
5819 (cplus_get_compile_context): Update comment.
5820 * compile/compile.c (compile_to_object): Update calls, don't rely
5821 on function pointer being NULL.
5822 * d-lang.c (d_language_data): Delete la_get_compile_instance
5823 initializer.
5824 * f-lang.c (f_language_data): Likewise.
5825 * go-lang.c (go_language_data): Likewise.
5826 * language.c (unknown_language_data): Likewise.
5827 (auto_language_data): Likewise.
5828 * language.h (language_data): Delete la_get_compile_instance field.
5829 (language_defn::get_compile_instance): New member function.
5830 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
5831 initializer.
5832 * objc-lang.c (objc_language_data): Likewise.
5833 * opencl-lang.c (opencl_language_data): Likewise.
5834 * p-lang.c (pascal_language_data): Likewise.
5835 * rust-lang.c (rust_language_data): Likewise.
5836
5837 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5838
5839 * ada-lang.c (ada_add_all_symbols): Update comment.
5840 (ada_iterate_over_symbols): Delete, move implementation to...
5841 (ada_language::iterate_over_symbols): ...here, a new member
5842 function, rewrite to use range based for loop.
5843 (ada_language_data): Delete la_iterate_over_symbols initializer.
5844 * c-lang.c (c_language_data): Likewise.
5845 (cplus_language_data): Likewise.
5846 (asm_language_data): Likewise.
5847 (minimal_language_data): Likewise.
5848 * d-lang.c (d_language_data): Likewise.
5849 * f-lang.c (f_language_data): Likewise.
5850 * go-lang.c (go_language_data): Likewise.
5851 * language.c (unknown_language_data): Likewise.
5852 (auto_language_data): Likewise.
5853 * language.h (language_data): Delete la_iterate_over_symbols field.
5854 (language_defn::iterate_over_symbols): New member function.
5855 (LA_ITERATE_OVER_SYMBOLS): Update.
5856 * linespec.c (iterate_over_all_matching_symtabs): Update.
5857 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
5858 initializer.
5859 * objc-lang.c (objc_language_data): Likewise.
5860 * opencl-lang.c (opencl_language_data): Likewise.
5861 * p-lang.c (pascal_language_data): Likewise.
5862 * rust-lang.c (rust_language_data): Likewise.
5863
5864 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5865
5866 * ada-lang.c (ada_language_data): Delete
5867 la_lookup_transparent_type initializer.
5868 * c-lang.c (c_language_data): Likewise.
5869 (cplus_language_data): Likewise.
5870 (cplus_language::lookup_transparent_type): New member function.
5871 (asm_language_data): Delete la_lookup_transparent_type
5872 initializer.
5873 (minimal_language_data): Likewise.
5874 * d-lang.c (d_language_data): Likewise.
5875 * f-lang.c (f_language_data): Likewise.
5876 * go-lang.c (go_language_data): Likewise.
5877 * language.c (unknown_language_data): Likewise.
5878 (auto_language_data): Likewise.
5879 * language.h (struct language_data): Delete
5880 la_lookup_transparent_type field.
5881 (language_defn::lookup_transparent_type): New member function.
5882 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
5883 initializer.
5884 * objc-lang.c (objc_language_data): Likewise.
5885 * opencl-lang.c (opencl_language_data): Likewise.
5886 * p-lang.c (pascal_language_data): Likewise.
5887 * rust-lang.c (rust_language_data): Likewise.
5888 * symtab.c (symbol_matches_domain): Update call.
5889
5890 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5891
5892 * ada-lang.c (ada_language_arch_info): Delete function, move
5893 implementation to...
5894 (ada_language::language_arch_info): ...here, a new member
5895 function.
5896 (ada_language_data): Delete la_language_arch_info.
5897 * c-lang.c (c_language_data): Likewise.
5898 (c_language::language_arch_info): New member function.
5899 (cplus_language_arch_info): Delete function, move
5900 implementation to...
5901 (cplus_language::language_arch_info): ...here, a new member
5902 function.
5903 (cplus_language_data): Delete la_language_arch_info.
5904 (asm_language_data): Likewise.
5905 (asm_language::language_arch_info): New member function.
5906 (minimal_language_data): Delete la_language_arch_info.
5907 (minimal_language::language_arch_info): New member function.
5908 * d-lang.c (d_language_arch_info): Delete function, move
5909 implementation to...
5910 (d_language::language_arch_info): ...here, a new member
5911 function.
5912 (d_language_data): Delete la_language_arch_info.
5913 * f-lang.c (f_language_arch_info): Delete function, move
5914 implementation to...
5915 (f_language::language_arch_info): ...here, a new member
5916 function.
5917 (f_language_data): Delete la_language_arch_info.
5918 * go-lang.c (go_language_arch_info): Delete function, move
5919 implementation to...
5920 (go_language::language_arch_info): ...here, a new member
5921 function.
5922 (go_language_data): Delete la_language_arch_info.
5923 * language.c (unknown_language_data): Likewise.
5924 (unknown_language::language_arch_info): New member function.
5925 (auto_language_data): Delete la_language_arch_info.
5926 (auto_language::language_arch_info): New member function.
5927 (language_gdbarch_post_init): Update call to
5928 la_language_arch_info.
5929 * language.h (language_data): Delete la_language_arch_info
5930 function pointer.
5931 (language_defn::language_arch_info): New function.
5932 * m2-lang.c (m2_language_arch_info): Delete function, move
5933 implementation to...
5934 (m2_language::language_arch_info): ...here, a new member
5935 function.
5936 (m2_language_data): Delete la_language_arch_info.
5937 * objc-lang.c (objc_language_arch_info): Delete function, move
5938 implementation to...
5939 (objc_language::language_arch_info): ...here, a new member
5940 function.
5941 (objc_language_data): Delete la_language_arch_info.
5942 * opencl-lang.c (opencl_language_arch_info): Delete function, move
5943 implementation to...
5944 (opencl_language::language_arch_info): ...here, a new member
5945 function.
5946 (opencl_language_data): Delete la_language_arch_info.
5947 * p-lang.c (pascal_language_arch_info): Delete function, move
5948 implementation to...
5949 (pascal_language::language_arch_info): ...here, a new member
5950 function.
5951 (pascal_language_data): Delete la_language_arch_info.
5952 * rust-lang.c (rust_language_arch_info): Delete function, move
5953 implementation to...
5954 (rust_language::language_arch_info): ...here, a new member
5955 function.
5956 (rust_language_data): Delete la_language_arch_info.
5957
5958 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5959
5960 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
5961 initializer.
5962 * c-lang.c (c_language_data): Likewise.
5963 (cplus_language_data): Likewise.
5964 (cplus_language::pass_by_reference_info): New method.
5965 (asm_language_data): Delete la_pass_by_reference initializer.
5966 (minimal_language_data): Likewise.
5967 * cp-abi.c (cp_pass_by_reference): Remove use of
5968 default_pass_by_reference.
5969 * d-lang.c (d_language_data): Likewise.
5970 * f-lang.c (f_language_data): Likewise.
5971 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
5972 default_pass_by_reference.
5973 * go-lang.c (go_language_data): Likewise.
5974 * language.c (language_pass_by_reference): Update.
5975 (default_pass_by_reference): Delete.
5976 (unknown_language_data): Delete la_pass_by_reference
5977 initializer.
5978 (auto_language_data): Likewise.
5979 * language.h (struct language_data): Delete la_pass_by_reference
5980 field.
5981 (language_defn::pass_by_reference_info): New member function.
5982 (default_pass_by_reference): Delete declaration.
5983 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
5984 initializer.
5985 * objc-lang.c (objc_language_data): Likewise.
5986 * opencl-lang.c (opencl_language_data): Likewise.
5987 * p-lang.c (pascal_language_data): Likewise.
5988 * rust-lang.c (rust_language_data): Likewise.
5989
5990 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5991
5992 * ada-lang.c (ada_read_var_value): Delete function, move
5993 implementation to...
5994 (ada_language::read_var_value): ...here.
5995 (ada_language_data): Delete la_read_var_value initializer.
5996 * c-lang.c (c_language_data): Likewise.
5997 (cplus_language_data): Likewise.
5998 (minimal_language_data): Likewise.
5999 * d-lang.c (d_language_data): Likewise.
6000 * f-lang.c (f_language_data): Likewise.
6001 * findvar.c (default_read_var_value): Rename to...
6002 (language_defn::read_var_value): ...this.
6003 * findvar.c (read_var_value): Update header comment, and change to
6004 call member function instead of function pointer.
6005 * go-lang.c (go_language_data): Likewise.
6006 * language.c (unknown_language_data): Delete la_read_var_value
6007 initializer.
6008 (auto_language_data): Likewise.
6009 * language.h (struct language_data): Delete la_read_var_value
6010 field.
6011 (language_defn::read_var_value): New member function.
6012 (default_read_var_value): Delete declaration.
6013 * m2-lang.c (m2_language_data): Delete la_read_var_value
6014 initializer.
6015 * objc-lang.c (objc_language_data): Likewise.
6016 * opencl-lang.c (opencl_language_data): Likewise.
6017 * p-lang.c (pascal_language_data): Likewise.
6018 * rust-lang.c (rust_language_data): Likewise.
6019 * value.h (default_read_var_value): Delete declaration.
6020
6021 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6022
6023 * ada-lang.c (ada_print_array_index): Delete function, move
6024 implementation to...
6025 (ada_language::print_array_index): ...here.
6026 (ada_language_data): Delete la_print_array_index initializer.
6027 * c-lang.c (c_language_data): Likewise.
6028 (cplus_language_data): Likewise.
6029 (minimal_language_data): Likewise.
6030 * d-lang.c (d_language_data): Likewise.
6031 * f-lang.c (f_language_data): Likewise.
6032 * go-lang.c (go_language_data): Likewise.
6033 * language.c (default_print_array_index): Delete function, move
6034 implementation to...
6035 (language_defn::print_array_index): ...here.
6036 (unknown_language_data): Delete la_print_array_index initializer.
6037 (auto_language_data): Likewise.
6038 * language.h (struct language_data): Delete la_print_array_index
6039 field.
6040 (language_defn::print_array_index): New member function.
6041 (LA_PRINT_ARRAY_INDEX): Update.
6042 (default_print_array_index): Delete declaration.
6043 * m2-lang.c (m2_language_data): Delete la_print_array_index
6044 initializer.
6045 * objc-lang.c (objc_language_data): Likewise.
6046 * opencl-lang.c (opencl_language_data): Likewise.
6047 * p-lang.c (pascal_language_data): Likewise.
6048 * rust-lang.c (rust_language_data): Likewise.
6049
6050 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6051
6052 * gdb/ada-lang.c (ada_language_defn): Convert to...
6053 (ada_language_data): ...this.
6054 (class ada_language): New class.
6055 (ada_language_defn): New static global.
6056 * gdb/c-lang.c (c_language_defn): Convert to...
6057 (c_language_data): ...this.
6058 (class c_language): New class.
6059 (c_language_defn): New static global.
6060 (cplus_language_defn): Convert to...
6061 (cplus_language_data): ...this.
6062 (class cplus_language): New class.
6063 (cplus_language_defn): New static global.
6064 (asm_language_defn): Convert to...
6065 (asm_language_data): ...this.
6066 (class asm_language): New class.
6067 (asm_language_defn): New static global.
6068 (minimal_language_defn): Convert to...
6069 (minimal_language_data): ...this.
6070 (class minimal_language): New class.
6071 (minimal_language_defn): New static global.
6072 * gdb/d-lang.c (d_language_defn): Convert to...
6073 (d_language_data): ...this.
6074 (class d_language): New class.
6075 (d_language_defn): New static global.
6076 * gdb/f-lang.c (f_language_defn): Convert to...
6077 (f_language_data): ...this.
6078 (class f_language): New class.
6079 (f_language_defn): New static global.
6080 * gdb/go-lang.c (go_language_defn): Convert to...
6081 (go_language_data): ...this.
6082 (class go_language): New class.
6083 (go_language_defn): New static global.
6084 * gdb/language.c (unknown_language_defn): Remove declaration.
6085 (current_language): Initialize to nullptr, real initialization is
6086 moved to _initialize_language.
6087 (languages): Delete global.
6088 (language_defn::languages): Define.
6089 (set_language_command): Use language_defn::languages.
6090 (set_language): Likewise.
6091 (range_error): Likewise.
6092 (language_enum): Likewise.
6093 (language_def): Likewise.
6094 (add_set_language_command): Use language_def::languages for the
6095 language list, and language_def to lookup language pointers.
6096 (skip_language_trampoline): Use language_defn::languages.
6097 (unknown_language_defn): Convert to...
6098 (unknown_language_data): ...this.
6099 (class unknown_language): New class.
6100 (unknown_language_defn): New static global.
6101 (auto_language_defn): Convert to...
6102 (auto_language_data): ...this.
6103 (class auto_language): New class.
6104 (auto_language_defn): New static global.
6105 (language_gdbarch_post_init): Use language_defn::languages.
6106 (_initialize_language): Initialize current_language.
6107 * gdb/language.h (struct language_defn): Rename to...
6108 (struct language_data): ...this.
6109 (struct language_defn): New.
6110 (auto_language_defn): Delete.
6111 (unknown_language_defn): Delete.
6112 (minimal_language_defn): Delete.
6113 (ada_language_defn): Delete.
6114 (asm_language_defn): Delete.
6115 (c_language_defn): Delete.
6116 (cplus_language_defn): Delete.
6117 (d_language_defn): Delete.
6118 (f_language_defn): Delete.
6119 (go_language_defn): Delete.
6120 (m2_language_defn): Delete.
6121 (objc_language_defn): Delete.
6122 (opencl_language_defn): Delete.
6123 (pascal_language_defn): Delete.
6124 (rust_language_defn): Delete.
6125 * gdb/m2-lang.c (m2_language_defn): Convert to...
6126 (m2_language_data): ...this.
6127 (class m2_language): New class.
6128 (m2_language_defn): New static global.
6129 * gdb/objc-lang.c (objc_language_defn): Convert to...
6130 (objc_language_data): ...this.
6131 (class objc_language): New class.
6132 (objc_language_defn): New static global.
6133 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
6134 (opencl_language_data): ...this.
6135 (class opencl_language): New class.
6136 (opencl_language_defn): New static global.
6137 * gdb/p-lang.c (pascal_language_defn): Convert to...
6138 (pascal_language_data): ...this.
6139 (class pascal_language): New class.
6140 (pascal_language_defn): New static global.
6141 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
6142 language pointer, update comment format.
6143 * gdb/rust-lang.c (rust_language_defn): Convert to...
6144 (rust_language_data): ...this.
6145 (class rust_language): New class.
6146 (rust_language_defn): New static global.
6147
6148 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
6149
6150 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
6151 member variable.
6152 <m_stmt_at_address>: New member variable.
6153 (lnp_state_machine::record_line): Don't record some lines, update
6154 tracking of is_stmt at the same address.
6155 (lnp_state_machine::lnp_state_machine): Initialise new member
6156 variables.
6157
6158 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
6159
6160 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
6161 "-include gnu-nat-mig.h".
6162 * gnu-nat-mig.h: New file.
6163 * gnu-nat.c: Include "gnu-nat-mig.h".
6164 (exc_server, msg_reply_server, notify_server,
6165 process_reply_server): Remove declarations.
6166
6167 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6168
6169 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
6170 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
6171 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
6172 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
6173 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
6174 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
6175 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
6176 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
6177 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
6178 to gnu_nat_target class.
6179 * gnu-nat.c: Likewise.
6180 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
6181 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
6182 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
6183 object.
6184 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
6185 instead of `gnu_target'.
6186
6187 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6188
6189 * i386-gnu-tdep.c: Include "gdbcore.h"
6190 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
6191 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
6192 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
6193 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
6194 i386_gnu_sigcontext_addr): New functions
6195 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
6196 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
6197 tdep.
6198
6199 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6200
6201 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
6202 before fork_inferior call. Avoid calling it if target_is_pushed returns
6203 true.
6204
6205 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6206
6207 * gnu-nat.h (gnu_target): New variable declaration.
6208 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
6209 gnu_target.
6210 * gnu-nat.c (gnu_target): New variable.
6211 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
6212 add_thread_silent, and add_thread calls.
6213 (gnu_nat_target::create_inferior): Pass gnu_target to
6214 add_thread_silent, thread_change_ptid call.
6215 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
6216 call.
6217
6218 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6219
6220 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
6221 (gnu_nat_target::find_memory_regions): Remove unused
6222 `old_address' variable.
6223
6224 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6225
6226 * gnu-nat.c: Include "gdbarch.h".
6227
6228 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6229
6230 * reply_mig_hack.awk (Error return): Cast function through
6231 void *, to bypass compiler function call check.
6232
6233 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6234
6235 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
6236 $(srcdir)/reply_mig_hack.awk.
6237
6238 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6239
6240 * gnu-nat.h (gnu_debug_flag): Set type to bool.
6241
6242 2020-05-30 Jonny Grant <jg@jguk.org>
6243
6244 * configure.ac (ACX_BUGURL): change bug URL to https.
6245
6246 2020-05-30 Pedro Alves <palves@redhat.com>
6247
6248 * cp-support.c (replace_typedefs_template): New.
6249 (replace_typedefs_qualified_name): Handle
6250 DEMANGLE_COMPONENT_TEMPLATE.
6251
6252 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
6253
6254 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
6255 dwarf2/index-cache.h, dwarf2/index-write.c,
6256 dwarf2/index-write.h, dwarf2/line-header.c,
6257 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
6258 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
6259 variables and fields from `dwarf2_per_objfile` to just
6260 `per_objfile` throughout.
6261
6262 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
6263
6264 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6265 <push_dwarf_reg_entry_value>: Add comment.
6266
6267 2020-05-28 Kevin Buettner <kevinb@redhat.com>
6268 Keith Seitz <keiths@redhat.com>
6269
6270 * python/python.c (do_start_initialization): Call PyEval_SaveThread
6271 instead of PyEval_ReleaseLock.
6272 (class gdbpy_gil): Move to earlier in file.
6273 (finalize_python): Set gdb_python_initialized.
6274 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
6275 when not initialized.
6276
6277 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
6278
6279 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6280 <push_dwarf_reg_entry_value>: Remove assert. Override
6281 per_objfile with caller_per_objfile.
6282
6283 2020-05-28 Tom de Vries <tdevries@suse.de>
6284
6285 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
6286 PR gold/15646 workaround to symbol kind "type".
6287
6288 2020-05-27 Tom Tromey <tromey@adacore.com>
6289
6290 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
6291
6292 2020-05-27 Tom Tromey <tromey@adacore.com>
6293
6294 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
6295 Use htab_find_with_hash.
6296 <add_abbrev>: Remove "abbrev_number" parameter.
6297 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
6298 "abbrev_number" parameter. Use htab_find_slot_with_hash.
6299 (hash_abbrev): Add comment.
6300 (abbrev_table::lookup_abbrev): Move to header file.
6301 (abbrev_table::read): Update.
6302
6303 2020-05-27 Tom Tromey <tromey@adacore.com>
6304
6305 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
6306 method.
6307 <canonical_name>: New member.
6308 <raw_name>: Rename from "name".
6309 (partial_die_info): Initialize canonical_name.
6310 (scan_partial_symbols): Check raw_name.
6311 (partial_die_parent_scope, partial_die_full_name)
6312 (add_partial_symbol, add_partial_subprogram)
6313 (add_partial_enumeration, load_partial_dies): Use "name" method.
6314 (partial_die_info::name): New method.
6315 (partial_die_info::read, guess_partial_die_structure_name)
6316 (partial_die_info::fixup): Update.
6317
6318 2020-05-27 Tom Tromey <tromey@adacore.com>
6319
6320 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
6321 <get_ref_die_offset>: Inline.
6322 <get_ref_die_offset_complaint>: New method.
6323 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
6324 (attribute::get_ref_die_offset_complaint): Rename from
6325 get_ref_die_offset. Just issue complaint.
6326
6327 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
6328
6329 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
6330
6331 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
6332
6333 * exec.c (exec_file_attach): Use errno value of first openp failure.
6334
6335 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
6336
6337 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
6338 Don't close thread handle.
6339
6340 2020-05-27 Tom Tromey <tom@tromey.com>
6341 Simon Marchi <simon.marchi@efficios.com>
6342
6343 * objfiles.h (struct objfile) <partial_symtabs>: Now a
6344 shared_ptr.
6345 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
6346 member.
6347 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
6348 dwarf2_per_bfd_objfile_data_key>: New globals.
6349 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
6350 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
6351 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
6352 shared.
6353 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
6354 short-circuit when sharing.
6355 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
6356 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
6357
6358 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6359
6360 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
6361 to...
6362 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
6363 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
6364
6365 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6366
6367 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
6368 build_name_components, find_name_components_bounds>:
6369 Add per_objfile parameter.
6370 (struct mapped_index) <symbol_name_at>: Likewise.
6371 (struct mapped_debug_names): Remove constructor.
6372 <dwarf2_per_objfile>: Remove field.
6373 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
6374 (mapped_index_base::find_name_components_bounds,
6375 mapped_index_base::build_name_components,
6376 dw2_expand_symtabs_matching_symbol): Likewise.
6377 (class mock_mapped_index) <symbol_name_at>: Likewise.
6378 (check_match): Likewise.
6379 (check_find_bounds_finds): Likewise.
6380 (test_mapped_index_find_name_component_bounds): Update.
6381 (CHECK_MATCH): Update.
6382 (dw2_expand_symtabs_matching): Update.
6383 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
6384 per_objfile parameter.
6385 <find_vec_in_debug_names>: Likewise.
6386 <m_per_objfile>: New field.
6387 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
6388 parameter.
6389 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
6390 (dw2_debug_names_iterator::next): Update.
6391 (dw2_debug_names_lookup_symbol): Update.
6392 (dw2_debug_names_expand_symtabs_for_function): Update.
6393 (dw2_debug_names_map_matching_symbols): Update.
6394 (dw2_debug_names_expand_symtabs_matching): Update.
6395 (dwarf2_read_debug_names): Update.
6396
6397 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6398
6399 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
6400 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
6401 move to dwarf2_per_objfile.
6402 <read_in_chain>: Remove.
6403 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
6404 remove_all_cus, age_comp_units>: New methods.
6405 <m_dwarf2_cus>: New member.
6406 (struct dwarf2_per_cu_data) <cu>: Remove.
6407 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
6408 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
6409 moved to methods of dwarf2_per_objfile.
6410 (dwarf2_clear_marks): Remove.
6411 (dwarf2_queue_item::~dwarf2_queue_item): Update.
6412 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
6413 (dwarf2_per_bfd::free_cached_comp_units): Remove.
6414 (dwarf2_per_objfile::remove_all_cus): New.
6415 (class free_cached_comp_units) <~free_cached_comp_units>:
6416 Update.
6417 (load_cu): Update.
6418 (dw2_do_instantiate_symtab): Adjust.
6419 (fill_in_sig_entry_from_dwo_entry): Adjust.
6420 (cutu_reader::init_tu_and_read_dwo_dies): Update.
6421 (cutu_reader::cutu_reader): Likewise.
6422 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
6423 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
6424 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
6425 and dwarf2_per_objfile::age_comp_units.
6426 (load_partial_comp_unit): Update.
6427 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
6428 (process_queue): Likewise.
6429 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
6430 backlink.
6431 (dwarf2_read_addr_index): Likewise.
6432 (follow_die_offset): Likewise.
6433 (dwarf2_fetch_die_loc_sect_off): Likewise.
6434 (dwarf2_fetch_constant_bytes): Likewise.
6435 (dwarf2_fetch_die_type_sect_off): Likewise.
6436 (follow_die_sig_1): Likewise.
6437 (load_full_type_unit): Likewise.
6438 (read_signatured_type): Likewise.
6439 (dwarf2_cu::dwarf2_cu): Don't set cu field.
6440 (dwarf2_cu::~dwarf2_cu): Remove.
6441 (dwarf2_per_objfile::get_cu): New.
6442 (dwarf2_per_objfile::set_cu): New.
6443 (age_cached_comp_units): Rename to...
6444 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
6445 to std::unordered_map.
6446 (free_one_cached_comp_unit): Rename to...
6447 (dwarf2_per_objfile::remove_cu): ... this. Adjust
6448 to std::unordered_map.
6449 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
6450 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
6451 a dwarf2_per_objfile in data.
6452 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
6453 (dwarf2_clear_marks): Remove.
6454
6455 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6456
6457 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
6458 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
6459 (init_tu_and_read_dwo_dies): Likewise.
6460 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
6461 (cutu_reader::cutu_reader): Likewise.
6462 (load_partial_comp_unit): Likewise.
6463 (process_psymtab_comp_unit): Update.
6464 (build_type_psymtabs_1): Update.
6465 (process_skeletonless_type_unit): Update.
6466 (load_full_comp_unit): Update.
6467 (find_partial_die): Update.
6468 (dwarf2_read_addr_index): Update.
6469 (read_signatured_type): Update.
6470
6471 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6472
6473 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
6474 m_header_read_in>: New fields.
6475 <get_header>: New method.
6476 * dwarf2/read.c (per_cu_header_read_in): Remove.
6477 (dwarf2_per_cu_data::get_header): New.
6478 (dwarf2_per_cu_data::addr_size): Update.
6479 (dwarf2_per_cu_data::offset_size): Update.
6480 (dwarf2_per_cu_data::ref_addr_size): Update.
6481
6482 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6483
6484 * dwarf2/read.c (load_cu): Return dwarf2_cu.
6485 (dw2_do_instantiate_symtab): Update.
6486 (queue_and_load_all_dwo_tus): Change parameter from
6487 dwarf2_per_cu_data to dwarf2_cu.
6488 (dwarf2_fetch_die_loc_sect_off): Update.
6489 (dwarf2_fetch_constant_bytes): Update.
6490 (dwarf2_fetch_die_type_sect_off): Update.
6491
6492 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6493
6494 * dwarf2/read.c (process_full_comp_unit,
6495 process_full_type_unit): Remove per_cu, per_objfile paramters.
6496 Add dwarf2_cu parameter.
6497 (process_queue): Update.
6498
6499 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6500
6501 * dwarf2/read.c (create_cu_from_index_list): Replace
6502 dwarf2_per_objfile parameter with dwarf2_per_bfd.
6503 (create_cus_from_index_list): Likewise.
6504 (create_cus_from_index): Likewise.
6505 (create_signatured_type_table_from_index): Likewise.
6506 (create_cus_from_debug_names_list): Likewise.
6507 (create_cus_from_debug_names): Likewise.
6508 (dwarf2_read_gdb_index): Update.
6509 (dwarf2_read_debug_names): Update.
6510
6511 2020-05-27 Tom Tromey <tom@tromey.com>
6512 Simon Marchi <simon.marchi@efficios.com>
6513
6514 * dwarf2/read.h (struct dwarf2_per_objfile)
6515 <get_type_for_signatured_type, set_type_for_signatured_type>:
6516 New methods.
6517 <m_type_map>: New member.
6518 (struct signatured_type) <type>: Remove.
6519 * dwarf2/read.c
6520 (dwarf2_per_objfile::get_type_for_signatured_type,
6521 dwarf2_per_objfile::set_type_for_signatured_type): New.
6522 (get_signatured_type): Use new methods.
6523
6524 2020-05-27 Tom Tromey <tom@tromey.com>
6525 Simon Marchi <simon.marchi@efficios.com>
6526
6527 * dwarf2/read.h (struct type_unit_group_unshareable): New.
6528 (struct dwarf2_per_objfile) <type_units>: New member.
6529 <get_type_unit_group_unshareable>: New method.
6530 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
6531 num_symtabs, symtabs>: Remove; move to
6532 type_unit_group_unshareable.
6533 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
6534 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
6535 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
6536
6537 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6538
6539 * dwarf2/read.h (struct dwarf2_per_cu_data):
6540 <dwarf2_per_objfile>: Remove.
6541 * dwarf2/read.c (create_cu_from_index_list): Don't assign
6542 dwarf2_per_objfile.
6543 (create_signatured_type_table_from_index): Likewise.
6544 (create_signatured_type_table_from_debug_names): Likewise.
6545 (create_debug_type_hash_table): Likewise.
6546 (fill_in_sig_entry_from_dwo_entry): Likewise.
6547 (create_type_unit_group): Likewise.
6548 (read_comp_units_from_section): Likewise.
6549 (create_cus_hash_table): Likewise.
6550
6551 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6552
6553 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
6554 dwarf2_per_cu_data::dwarf2_per_objfile.
6555 (compute_compunit_symtab_includes): Likewise.
6556 (dwarf2_cu::start_symtab): Likewise.
6557
6558 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6559
6560 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
6561 parameter.
6562 * dwarf2/read.c (get_die_type_at_offset): Likewise.
6563 (read_namespace_alias): Update.
6564 (lookup_die_type): Update.
6565 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
6566 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
6567 Update.
6568 (disassemble_dwarf_expression): Update.
6569
6570 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6571
6572 * dwarf2/read.h (struct dwarf2_queue_item): Add
6573 dwarf2_per_objfile parameter, assign new parameter.
6574 <per_objfile>: New field.
6575 * dwarf2/read.c (free_one_cached_comp_unit): Add
6576 dwarf2_per_objfile parameter.
6577 (queue_comp_unit): Likewise.
6578 (dw2_do_instantiate_symtab): Update.
6579 (process_psymtab_comp_unit): Update.
6580 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
6581 (process_imported_unit_die): Update.
6582 (queue_and_load_dwo_tu): Update.
6583 (follow_die_offset): Update.
6584 (follow_die_sig_1): Update.
6585
6586 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6587
6588 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
6589 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
6590 (read_call_site_scope): Assign per_objfile.
6591 (dwarf2_per_cu_data::objfile): Remove.
6592 * gdbtypes.h (struct call_site) <per_objfile>: New member.
6593 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
6594 dwarf2_per_objfile parameter.
6595 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
6596 dwarf2_per_objfile parameter.
6597 (dwarf_expr_reg_to_entry_parameter): Add output
6598 dwarf2_per_objfile parameter.
6599 (locexpr_get_frame_base): Update.
6600 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
6601 <push_dwarf_reg_entry_value>: Update.
6602 <call_site_to_target_addr>: Update.
6603 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
6604 parameter.
6605 (value_of_dwarf_reg_entry): Update.
6606 (rw_pieced_value): Update.
6607 (indirect_synthetic_pointer): Update.
6608 (dwarf2_evaluate_property): Update.
6609 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
6610 parameter.
6611 (locexpr_read_variable): Update.
6612 (locexpr_get_symbol_read_needs): Update.
6613 (loclist_read_variable): Update.
6614
6615 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6616
6617 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
6618 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
6619 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
6620 parameter.
6621 * dwarf2/read.c (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/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
6626 sect_variable_value): Add dwarf2_per_objfile parameter.
6627 (class dwarf_evaluate_loc_desc) <dwarf_call,
6628 dwarf_variable_value>: Update.
6629 (fetch_const_value_from_synthetic_pointer): Add
6630 dwarf2_per_objfile parameter.
6631 (fetch_const_value_from_synthetic_pointer): Update.
6632 (coerced_pieced_ref): Update.
6633 (class symbol_needs_eval_context) <dwarf_call,
6634 dwarf_variable_value>: Update.
6635 (dwarf2_compile_expr_to_ax): Update.
6636
6637 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6638
6639 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
6640 parameter.
6641 (dwarf2_evaluate_loc_desc_full): Update.
6642
6643 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6644
6645 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
6646 parameter.
6647 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
6648 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
6649 dwarf2_per_objfile parameter.
6650 (decode_debug_loc_dwo_addresses): Likewise.
6651 (dwarf2_find_location_expression): Update.
6652 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
6653 (locexpr_describe_location_piece): Add dwarf2_per_objfile
6654 parameter.
6655 (disassemble_dwarf_expression): Add dwarf2_per_objfile
6656 parameter.
6657 (locexpr_describe_location_1): Likewise.
6658 (locexpr_describe_location): Update.
6659
6660 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6661
6662 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
6663 Remove.
6664 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
6665 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
6666 (dwarf2_compile_property_to_c): Update.
6667 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
6668 use text offset from objfile.
6669 (locexpr_tracepoint_var_ref): Update.
6670 (locexpr_generate_c_location): Update.
6671 (loclist_describe_location): Update.
6672 (loclist_tracepoint_var_ref): Update.
6673 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
6674 dwarf2_per_objfile parameter.
6675 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
6676 use text offset from objfile.
6677 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
6678
6679 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6680
6681 * dwarf2/expr.h (struct dwarf_expr_context)
6682 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
6683 <offset>: Remove.
6684 <per_objfile>: New member.
6685 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
6686 dwarf2_per_objfile parameter. Don't set offset, set
6687 per_objfile.
6688 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
6689 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
6690 a dwarf2_per_objfile object instead of an offset.
6691 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
6692 constructor.
6693 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
6694 to dwarf2_expr_executor constructor. Don't set offset.
6695 (dwarf2_fetch_cfa_info): Update.
6696 (struct dwarf2_frame_cache) <text_offset>: Remove.
6697 <per_objfile>: New field.
6698 (dwarf2_frame_cache): Update.
6699 (dwarf2_frame_prev_register): Update.
6700 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6701 <dwarf_evaluate_loc_desc>: Add constructor.
6702 (dwarf2_evaluate_loc_desc_full): Update.
6703 (dwarf2_locexpr_baton_eval): Update.
6704 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
6705 Add constructor.
6706 (dwarf2_loc_desc_get_symbol_read_needs): Update.
6707
6708 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6709
6710 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
6711 addr_sized_int_type>: Move to dwarf2_cu.
6712 <int_type>: Move to dwarf2_per_objfile.
6713 (struct dwarf2_per_objfile) <int_type>: Move here.
6714 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
6715 addr_sized_int_type>: Move here.
6716 (read_func_scope): Update.
6717 (read_array_type): Update.
6718 (read_tag_string_type): Update.
6719 (attr_to_dynamic_prop): Update.
6720 (dwarf2_per_cu_data::int_type): Rename to...
6721 (dwarf2_per_objfile::int_type): ... this.
6722 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
6723 (dwarf2_cu::addr_sized_int_type): ... this.
6724 (read_subrange_type): Update.
6725 (dwarf2_per_cu_data::addr_type): Rename to...
6726 (dwarf2_cu::addr_type): ... this.
6727 (set_die_type): Update.
6728
6729 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6730
6731 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
6732 data through per_cu->cu.
6733
6734 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6735
6736 * dwarf2/read.c (lookup_dwo_comp_unit): Change
6737 dwarf2_per_cu_data parameter fo dwarf2_cu.
6738 (lookup_dwo_type_unit): Likewise.
6739 (read_cutu_die_from_dwo): Likewise.
6740 (lookup_dwo_unit): Likewise.
6741 (open_and_init_dwo_file): Likewise.
6742 (lookup_dwo_cutu): Likewise.
6743 (lookup_dwo_comp_unit): Likewise.
6744 (lookup_dwo_type_unit): Likewise.
6745 (cutu_reader::init_tu_and_read_dwo_dies): Update.
6746 (cutu_reader::cutu_reader): Update.
6747
6748 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6749
6750 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
6751 parameter.
6752 (process_full_type_unit): Likewise.
6753 (process_queue): Update.
6754
6755 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6756
6757 * dwarf2/read.c (recursively_compute_inclusions): Add
6758 dwarf2_per_objfile parameter.
6759 (compute_compunit_symtab_includes): Likewise.
6760 (process_cu_includes): Update.
6761
6762 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6763
6764 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
6765 parameter.
6766 (create_type_unit_group): Update.
6767 (process_psymtab_comp_unit_reader): Update.
6768 (build_type_psymtabs_reader): Update.
6769
6770 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6771
6772 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
6773 object through m_this_cu->cu.
6774
6775 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6776
6777 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
6778 the info parameter.
6779 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
6780
6781 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6782
6783 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
6784 per_objfile parameter.
6785 (load_full_type_unit): Add per_objfile parameter.
6786 (read_signatured_type): Likewise.
6787 (load_full_comp_unit): Likewise.
6788 (load_cu): Likewise.
6789 (dw2_do_instantiate_symtab): Likewise.
6790 (dw2_get_file_names): Likewise.
6791 (dw2_map_symtabs_matching_filename): Update.
6792 (dw_expand_symtabs_matching_file_matcher): Update.
6793 (dw2_map_symbol_filenames): Update.
6794 (process_psymtab_comp_unit): Add per_objfile parameter.
6795 (build_type_psymtabs_1): Update.
6796 (process_skeletonless_type_unit): Update.
6797 (dwarf2_build_psymtabs_hard): Update.
6798 (load_partial_comp_unit): Add per_objfile parameter.
6799 (scan_partial_symbols): Update.
6800 (load_full_comp_unit): Add per_objfile parameter.
6801 (process_imported_unit_die): Update.
6802 (create_cus_hash_table): Update.
6803 (find_partial_die): Update.
6804 (dwarf2_read_addr_index): Update.
6805 (follow_die_offset): Update.
6806 (dwarf2_fetch_die_loc_sect_off): Update.
6807 (dwarf2_fetch_constant_bytes): Update.
6808 (dwarf2_fetch_die_type_sect_off): Update.
6809 (follow_die_sig_1): Update.
6810 (load_full_type_unit): Add per_objfile parameter.
6811 (read_signatured_type): Likewise.
6812
6813 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6814
6815 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
6816 of objfile_name.
6817
6818 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6819
6820 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
6821 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
6822 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
6823 field.
6824 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
6825 (create_cus_from_index): Update.
6826 (dwarf2_read_gdb_index): Update.
6827 (create_cus_from_debug_names): Update.
6828 (dwarf2_read_debug_names): Update.
6829 (get_abbrev_section_for_cu): Update.
6830 (create_all_comp_units): Update.
6831 (read_attribute_value): Update.
6832 (get_debug_line_section): Update.
6833 * dwarf2/index-cache.c (index_cache::store): Update.
6834 * dwarf2/index-write.c (save_gdb_index_command): Update.
6835 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
6836
6837 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6838
6839 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
6840 member.
6841 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
6842 dwarf2_per_cu_data::per_bfd.
6843 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
6844 (create_type_unit_group): Likewise.
6845 (queue_comp_unit): Remove reference to
6846 per_cu->dwarf2_per_objfile.
6847 (maybe_queue_comp_unit): Likewise.
6848 (fill_in_sig_entry_from_dwo_entry): Assign new field.
6849 (create_cus_hash_table): Assign new field.
6850
6851 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6852
6853 * dwarf2/read.c: Replace
6854 dwarf2_cu->per_cu->dwarf2_per_objfile references with
6855 dwarf2_cu->per_objfile throughout.
6856
6857 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6858
6859 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
6860 parameter, don't use per_cu->dwarf2_per_objfile.
6861 (dw2_instantiate_symtab): Likewise.
6862 (dw2_find_last_source_symtab): Update.
6863 (dw2_map_expand_apply): Update.
6864 (dw2_lookup_symbol): Update.
6865 (dw2_expand_symtabs_for_function): Update.
6866 (dw2_expand_all_symtabs): Update.
6867 (dw2_expand_symtabs_with_fullname): Update.
6868 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
6869 don't use per_cu->dwarf2_per_objfile.
6870 (dw2_expand_marked_cus): Update.
6871 (dw2_find_pc_sect_compunit_symtab): Update.
6872 (dw2_debug_names_lookup_symbol): Update.
6873 (dw2_debug_names_expand_symtabs_for_function): Update.
6874 (dw2_debug_names_map_matching_symbols): Update.
6875 (dwarf2_psymtab::expand_psymtab): Update.
6876
6877 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6878
6879 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
6880 <per_objfile>: New member.
6881 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
6882 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
6883 call to dwarf2_cu.
6884 (cutu_reader::cutu_reader): Update.
6885 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
6886
6887 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6888
6889 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
6890 struct dwarf2_per_objfile.
6891 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
6892 dwarf2_per_bfd.
6893 * dwarf2/read.c (set_die_type): Update.
6894 (get_die_type_at_offset): Update.
6895
6896 2020-05-27 Tom Tromey <tom@tromey.com>
6897 Simon Marchi <simon.marchi@efficios.com>
6898
6899 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
6900 method.
6901 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
6902 get_symtab, set_symtab>: New methods.
6903 <m_symtabs>: New field.
6904 (struct dwarf2_psymtab): Derive from partial_symtab.
6905 <readin_p, get_compunit_symtab>: Declare methods.
6906 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
6907 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
6908 New methods.
6909 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
6910 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
6911 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
6912 (dw2_symtab_iter_next, dw2_print_stats)
6913 (dw2_expand_symtabs_with_fullname)
6914 (dw2_expand_symtabs_matching_one)
6915 (dw_expand_symtabs_matching_file_matcher)
6916 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
6917 (dw2_debug_names_iterator::next)
6918 (dw2_debug_names_map_matching_symbols)
6919 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
6920 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
6921 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
6922 New methods.
6923 (get_compunit_symtab, process_full_comp_unit)
6924 (process_full_type_unit): Update.
6925 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
6926
6927 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6928
6929 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
6930 then introduce a new dwarf2_per_objfile type.
6931 <read_line_string>: Move to the new dwarf2_per_objfile type.
6932 <objfile>: Likewise.
6933 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
6934 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
6935 dwarf2_per_objfile->per_bfd.
6936 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
6937 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
6938 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
6939 (dwarf2_per_bfd::free_cached_comp_units): ... this.
6940 (dwarf2_has_info): Allocate dwarf2_per_bfd.
6941 (dwarf2_per_objfile::locate_sections): Rename to...
6942 (dwarf2_per_bfd::locate_sections): ... this.
6943 (dwarf2_per_objfile::get_cutu): Rename to...
6944 (dwarf2_per_bfd::get_cutu): ... this.
6945 (dwarf2_per_objfile::get_cu): Rename to...
6946 (dwarf2_per_bfd::get_cu): ... this.
6947 (dwarf2_per_objfile::get_tu): Rename to...
6948 (dwarf2_per_bfd::get_tu): ... this.
6949 (dwarf2_per_objfile::allocate_per_cu): Rename to...
6950 (dwarf2_per_bfd::allocate_per_cu): ... this.
6951 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
6952 (dwarf2_per_bfd::allocate_signatured_type): ... this.
6953 (get_gdb_index_contents_ftype): Change parameter from
6954 dwarf2_per_objfile to dwarf2_per_bfd.
6955 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
6956 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
6957
6958 2020-05-27 Tom Tromey <tom@tromey.com>
6959 Simon Marchi <simon.marchi@efficios.com>
6960
6961 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
6962 (allocate_piece_closure): Set "per_objfile" member.
6963 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
6964 (locexpr_describe_location, loclist_describe_location): Use new
6965 member.
6966 * dwarf2/read.c (read_call_site_scope)
6967 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
6968 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
6969 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
6970 handle_data_member_location): Set per_objfile member.
6971 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
6972 member.
6973 (struct dwarf2_loclist_baton) <per_objfile>: New member.
6974
6975 2020-05-27 Tom Tromey <tom@tromey.com>
6976
6977 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
6978 allocate_signatured_type>: Declare new methods.
6979 <m_num_psymtabs>: New member.
6980 (struct dwarf2_per_cu_data) <index>: New member.
6981 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
6982 (dwarf2_per_objfile::allocate_signatured_type): New methods.
6983 (create_cu_from_index_list): Use allocate_per_cu.
6984 (create_signatured_type_table_from_index)
6985 (create_signatured_type_table_from_debug_names)
6986 (create_debug_type_hash_table, add_type_unit)
6987 (read_comp_units_from_section): Use allocate_signatured_type.
6988
6989 2020-05-27 Tom Tromey <tom@tromey.com>
6990
6991 * psymtab.c (partial_map_expand_apply)
6992 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
6993 (psym_lookup_global_symbol_language)
6994 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
6995 (psym_print_stats, psym_expand_symtabs_for_function)
6996 (psym_map_symbol_filenames, psym_map_matching_symbols)
6997 (psym_expand_symtabs_matching)
6998 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
6999 (maintenance_check_psymtabs): Update.
7000 * psympriv.h (struct partial_symtab) <readin_p,
7001 get_compunit_symtab>: Add objfile parameter.
7002 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
7003 Likewise.
7004 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
7005 get_compunit_symtab>: Likewise.
7006 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
7007
7008 2020-05-27 Tom Tromey <tom@tromey.com>
7009
7010 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
7011 member.
7012 * dwarf2/read.c (delete_file_name_entry): Fix comment.
7013 (create_cu_from_index_list)
7014 (create_signatured_type_table_from_index)
7015 (create_signatured_type_table_from_debug_names)
7016 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
7017 (dwarf2_create_include_psymtab)
7018 (create_debug_type_hash_table, add_type_unit)
7019 (create_type_unit_group, read_comp_units_from_section)
7020 (dwarf2_compute_name, create_cus_hash_table)
7021 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
7022 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
7023 obstack.
7024 (dw2_get_real_path): Likewise. Change argument to
7025 dwarf2_per_objfile.
7026
7027 2020-05-27 Luis Machado <luis.machado@linaro.org>
7028
7029 PR tdep/26000
7030 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
7031 for ldrd (immediate).
7032
7033 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7034
7035 * command.h: Add comment giving the name of class_tui.
7036 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
7037 create the fake command for the help for class_tui.
7038
7039 2020-05-26 Tom Tromey <tromey@adacore.com>
7040
7041 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
7042 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
7043 (val_atr): New function.
7044 (value_val_atr): Use it.
7045 * ada-valprint.c (print_optional_low_bound): Change low bound
7046 handling for enums.
7047 (val_print_packed_array_elements): Don't call discrete_position.
7048 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
7049 discrete_position for enum types.
7050 * language.c (default_print_array_index): Change type.
7051 * language.h (struct language_defn) <la_print_array_index>: Add
7052 index_type parameter, change type of index_value.
7053 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
7054 (default_print_array_index): Update.
7055 * valprint.c (maybe_print_array_index): Don't call
7056 value_from_longest. Update.
7057 (value_print_array_elements): Don't call discrete_position.
7058
7059 2020-05-26 Tom Tromey <tromey@adacore.com>
7060
7061 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
7062 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
7063
7064 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
7065
7066 PR gdb/13519
7067 * avr-tdep.c (avr_integer_to_address): Return data or code
7068 address accordingly to the second 'type' argument of the
7069 function.
7070
7071 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
7072
7073 * infcmd.c, inferior.h: (construct_inferior_arguments):
7074 Moved function from here to gdbsupport/common-inferior.{h,cc}
7075
7076 2020-05-23 Tom Tromey <tom@tromey.com>
7077
7078 Revert commit eca1f90c:
7079 * NEWS: Remove entry for completion styling.
7080 * completer.c (_rl_completion_prefix_display_length): Move
7081 declaration later.
7082 (gdb_fnprint): Revert.
7083 (gdb_display_match_list_1): Likewise.
7084 * cli/cli-style.c (completion_prefix_style)
7085 (completion_difference_style, completion_suffix_style): Remove.
7086 (_initialize_cli_style): Revert.
7087 * cli/cli-style.h (completion_prefix_style)
7088 (completion_difference_style, completion_suffix_style): Don't
7089 declare.
7090
7091 2020-05-24 Pedro Alves <palves@redhat.com>
7092
7093 * symtab.c (completion_list_add_name): Return boolean indication
7094 of whether the symbol matched.
7095 (completion_list_add_symbol): Don't try to remove C++ aliases if
7096 the symbol didn't match in the first place.
7097 * symtab.h (completion_list_add_name): Return bool.
7098
7099 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
7100
7101 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
7102 type::field.
7103
7104 2020-05-23 Joel Brobecker <brobecker@adacore.com>
7105
7106 GDB 9.2 released.
7107
7108 2020-05-23 Tom Tromey <tom@tromey.com>
7109
7110 * NEWS: Add entry for completion styling.
7111 * completer.c (_rl_completion_prefix_display_length): Move
7112 declaration earlier.
7113 (gdb_fnprint): Use completion_style.
7114 (gdb_display_match_list_1): Likewise.
7115 * cli/cli-style.c (completion_prefix_style)
7116 (completion_difference_style, completion_suffix_style): New
7117 globals.
7118 (_initialize_cli_style): Register new globals.
7119 * cli/cli-style.h (completion_prefix_style)
7120 (completion_difference_style, completion_suffix_style): Declare.
7121
7122 2020-05-23 Pedro Alves <palves@redhat.com>
7123
7124 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
7125 (parse_escape): Use ISDIGIT instead of isdigit.
7126 (puts_debug): Use gdb_isprint instead of isprint.
7127 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
7128 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
7129 ISSPACE instead of isspace.
7130 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
7131 instead of isspace.
7132 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
7133 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
7134 instead of isxdigit and ISDIGIT instead of isdigit.
7135
7136 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
7137
7138 * gdbtypes.h (struct type) <field>: New method.
7139 (TYPE_FIELDS): Remove, replace all uses with either type::fields
7140 or type::field.
7141
7142 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
7143
7144 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
7145 (TYPE_FIELDS): Use type::fields. Change all call sites that
7146 modify the propery to use type::set_fields instead.
7147
7148 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
7149
7150 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
7151 type::num_fields instead.
7152
7153 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
7154
7155 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
7156 methods.
7157 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
7158 that modify the number of fields to use type::set_num_fields
7159 instead.
7160
7161 2020-05-22 Tom Tromey <tromey@adacore.com>
7162
7163 * compile/compile-object-load.h (munmap_list_free): Don't
7164 declare.
7165
7166 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
7167
7168 * annotate.c (annotate_source_line): Update return type, add call
7169 to update current symtab and line.
7170 * annotate.h (annotate_source_line): Update return type, and
7171 extend header comment.
7172 * source.c (info_line_command): Check annotation_level before
7173 calling annotate_source_line.
7174 * stack.c (print_frame_info): If calling annotate_source_line
7175 returns true, then don't print any other source line information.
7176
7177 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
7178
7179 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
7180
7181 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
7182
7183 * coffread.c (patch_type): Remove NULL check before xfree.
7184 * corefile.c (set_gnutarget): Likewise.
7185 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
7186 * exec.c (build_section_table): Likewise.
7187 * remote.c (remote_target::pass_signals): Likewise.
7188 * utils.c (n_spaces): Likewise.
7189 * cli/cli-script.c (document_command): Likewise.
7190 * i386-windows-tdep.c (core_process_module_section): Likewise.
7191 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
7192
7193 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
7194
7195 * symfile.c (reread_symbols): Clear objfile's section_offsets
7196 vector and section indices, re-compute them by calling
7197 sym_offsets.
7198
7199 2020-05-20 Tom Tromey <tromey@adacore.com>
7200
7201 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
7202 (desc_one_bound, desc_index_type): Compute field name.
7203
7204 2020-05-20 Tom de Vries <tdevries@suse.de>
7205
7206 PR symtab/25833
7207 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
7208
7209 2020-05-20 Alan Modra <amodra@gmail.com>
7210
7211 PR 25993
7212 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
7213 bfd_set_filename.
7214 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
7215 passed to bfd_set_filename.
7216 * symfile-mem.c (add_vsyscall_page): Likewise for string
7217 passed to symbol_file_add_from_memory.
7218 (symbol_file_add_from_memory): Make name param a const char* and
7219 don't strdup.
7220
7221 2020-05-20 Alan Modra <amodra@gmail.com>
7222
7223 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
7224 rather than accessing bfd->filename directly.
7225 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
7226 and use bfd_section_name.
7227 * dwarf2/frame.c (decode_frame_entry): Likewise.
7228 * exec.c (exec_set_section_address): Likewise.
7229 * solib-aix.c (solib_aix_bfd_open): Likewise.
7230 * stap-probe.c (get_stap_base_address): Likewise.
7231 * symfile.c (reread_symbols): Likewise.
7232
7233 2020-05-19 Tom Tromey <tromey@adacore.com>
7234
7235 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
7236
7237 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
7238
7239 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
7240
7241 2020-05-19 Pedro Alves <palves@redhat.com>
7242
7243 * NEWS (set exec-file-mismatch): Adjust entry.
7244 * exec.c: Include "build-id.h".
7245 (validate_exec_file): Try to match build IDs instead of filenames.
7246 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
7247 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
7248 and pass down 'warn_if_slow'.
7249 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
7250 gdb_bfd_open_closure to pass it down.
7251 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
7252
7253 2020-05-19 Pedro Alves <palves@redhat.com>
7254
7255 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
7256 * target.c (target_fileio_open_1): Rename to target_fileio_open
7257 and make extern. Use bool.
7258 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
7259 (target_fileio_read_alloc_1): Adjust.
7260 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
7261 (target_fileio_open_warn_if_slow): Delete declaration.
7262
7263 2020-05-19 Pedro Alves <palves@redhat.com>
7264
7265 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
7266 Adjust all callers.
7267
7268 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
7269
7270 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
7271 whether disp is negative.
7272
7273 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
7274
7275 * symfile.h (struct symfile_segment_data)
7276 <~symfile_segment_data>: Remove.
7277 <segment_info>: Change to std::vector.
7278 * symfile.c (default_symfile_segments): Update.
7279 * elfread.c (elf_symfile_segments): Update.
7280
7281 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
7282
7283 * symfile.h (struct symfile_segment_data) <struct segment>: New.
7284 <segments>: New.
7285 <segment_bases, segment_sizes>: Remove.
7286 * symfile.c (default_symfile_segments): Update.
7287 * elfread.c (elf_symfile_segments): Update.
7288 * remote.c (remote_target::get_offsets): Update.
7289 * solib-target.c (solib_target_relocate_section_addresses):
7290 Update.
7291
7292 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
7293
7294 * symfile.h (struct symfile_segment_data): Initialize fields.
7295 <~symfile_segment_data>: Add.
7296 (symfile_segment_data_up): New.
7297 (struct sym_fns) <sym_segments>: Return a
7298 symfile_segment_data_up.
7299 (default_symfile_segments): Return a symfile_segment_data_up.
7300 (free_symfile_segment_data): Remove.
7301 (get_symfile_segment_data): Return a symfile_segment_data_up.
7302 * symfile.c (default_symfile_segments): Likewise.
7303 (get_symfile_segment_data): Likewise.
7304 (free_symfile_segment_data): Remove.
7305 (symfile_find_segment_sections): Update.
7306 * elfread.c (elf_symfile_segments): Return a
7307 symfile_segment_data_up.
7308 * remote.c (remote_target::get_offsets): Update.
7309 * solib-target.c (solib_target_relocate_section_addresses):
7310 Update.
7311 * symfile-debug.c (debug_sym_segments): Return a
7312 symfile_segment_data_up.
7313
7314 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7315
7316 PR build/25981
7317 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
7318 Hardcode register numbers.
7319
7320 PR build/25981
7321 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
7322 procfs_find_LDT_entry): Remove.
7323 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
7324 procfs_find_LDT_entry): Remove.
7325 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
7326 Remove.
7327
7328 2020-05-17 Pedro Alves <palves@redhat.com>
7329 Andrew Burgess <andrew.burgess@embecosm.com>
7330 Keno Fischer <keno@juliacomputing.com>
7331
7332 PR gdb/25741
7333 * breakpoint.c (build_target_condition_list): Update comments.
7334 (build_target_command_list): Update comments and skip matching
7335 locations.
7336 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
7337 a separate function. Simplify "set breakpoint auto-hw off"
7338 handling.
7339 (insert_breakpoints): Update comment.
7340 (tracepoint_locations_match): New parameter. For breakpoints,
7341 compare location types too, if the caller wants to.
7342 (handle_automatic_hardware_breakpoints): New functions.
7343 (bp_location_is_less_than): Also sort by location type and
7344 hardware breakpoint length.
7345 (update_global_location_list): Handle "set breakpoint auto-hw on"
7346 here.
7347 (update_breakpoint_locations): Ask breakpoint_locations_match to
7348 ignore location types.
7349
7350 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
7351
7352 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
7353 type::name instead.
7354
7355 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
7356
7357 * gdbtypes.h (struct type) <name, set_name>: New methods.
7358 (TYPE_CODE): Use type::name. Change all call sites used to set
7359 the name to use type::set_name instead.
7360
7361 2020-05-16 Tom Tromey <tom@tromey.com>
7362
7363 * top.c (quit_force): Update.
7364 * infrun.c (handle_no_resumed): Update.
7365 * top.h (all_uis): New function.
7366 (ALL_UIS): Remove.
7367
7368 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
7369
7370 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
7371
7372 2020-05-16 Pedro Alves <palves@redhat.com>
7373
7374 * ia64-linux-nat.c
7375 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
7376 Declare method.
7377 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
7378
7379 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
7380
7381 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
7382 (sparc64_adi_info): Likewise.
7383
7384 2020-05-15 Tom Tromey <tom@tromey.com>
7385
7386 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
7387 block_objfile.
7388 (lookup_objfile_from_block): Remove.
7389 (lookup_symbol_in_block, lookup_symbol_in_static_block)
7390 (lookup_global_symbol): Use block_objfile.
7391 * symtab.h (lookup_objfile_from_block): Don't declare.
7392 * printcmd.c (clear_dangling_display_expressions): Use
7393 block_objfile.
7394 * parse.c (operator_check_standard): Use block_objfile.
7395
7396 2020-05-15 Tom Tromey <tom@tromey.com>
7397
7398 * language.c (language_alloc_type_symbol): Set
7399 SYMBOL_SECTION.
7400 * symtab.c (initialize_objfile_symbol): Remove.
7401 (allocate_symbol): Remove.
7402 (allocate_template_symbol): Remove.
7403 * dwarf2/read.c (fixup_go_packaging): Use "new".
7404 (new_symbol): Use "new".
7405 (read_variable): Don't call initialize_objfile_symbol. Use
7406 "new".
7407 (read_func_scope): Use "new".
7408 * xcoffread.c (process_xcoff_symbol): Don't call
7409 initialize_objfile_symbol.
7410 (SYMBOL_DUP): Remove.
7411 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
7412 "new".
7413 * symtab.h (allocate_symbol, initialize_objfile_symbol)
7414 (allocate_template_symbol): Don't declare.
7415 (struct symbol): Add copy constructor. Change defaults.
7416 * jit.c (finalize_symtab): Use "new".
7417 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
7418 Use "new".
7419 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
7420 (common_block_end): Use "new".
7421 * mdebugread.c (parse_symbol): Use "new".
7422 (new_symbol): Likewise.
7423
7424 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7425
7426 * NEWS: Mention changes to help and apropos.
7427
7428 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7429
7430 * command.h (enum command_class): Improve comments, document
7431 that class_alias is for user-defined aliases, give the class
7432 name for each class, remove unused class_xdb.
7433 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
7434 * breakpoint.c (_initialize_breakpoint): Replace class_alias
7435 by a precise class.
7436 * infcmd.c (_initialize_infcmd): Likewise.
7437 * reverse.c (_initialize_reverse): Likewise.
7438 * stack.c (_initialize_stack): Likewise.
7439 * symfile.c (_initialize_symfile): Likewise.
7440 * tracepoint.c (_initialize_tracepoint): Likewise.
7441
7442 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7443
7444 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
7445 when their aliased command is traversed.
7446 (help_cmd): Add fput_command_names_styled call to
7447 output command name and aliases when command has an alias.
7448
7449 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7450
7451 * cli/cli-decode.h (help_cmd_list): Remove declaration.
7452 * cli/cli-decode.c (help_cmd_list): Declare as static,
7453 remove prefix argument, use bool for recurse arg, rework to show the aliases of
7454 a command together with the command.
7455 (fput_command_name_styled, fput_command_names_styled): New functions.
7456 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
7457 fput_command_name_styled.
7458 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
7459 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
7460
7461 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7462
7463 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
7464 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
7465 * command.h (cmd_show_list): Likewise.
7466 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
7467 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
7468
7469 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7470
7471 * unittests/command-def-selftests.c (traverse_command_structure):
7472 Verify all commands of a list have the same prefix command and
7473 that only the top cmdlist commands have a null prefix.
7474
7475 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7476
7477 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
7478 as prefix, not one of its aliases.
7479 (set_cmd_prefix): Remove.
7480 (do_add_cmd): Centralize the setting of the prefix of a command, when
7481 command is defined after its full chain of prefix commands.
7482 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
7483 (add_setshow_cmd_full): Likewise.
7484 (update_prefix_field_of_prefixed_commands): New function.
7485 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
7486 update_prefix_field_of_prefixed_commands.
7487 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
7488 addresses of remote_set_cmdlist and remote_show_cmdlist given
7489 as argument, not the address of an argument.
7490 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
7491 * gdb/remote.c (_initialize_remote): Likewise.
7492
7493 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7494
7495 * cli/cli-cmds.c (alias_command): Check for an existing alias
7496 using lookup_cmd_composition, as valid_command_p is too strict
7497 and forbids aliases that are the prefix of an existing alias
7498 or command.
7499 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
7500 command is properly recognised as a valid command.
7501
7502 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7503
7504 * unittests/help-doc-selftests.c: Rename to
7505 unittests/command-def-selftests.c
7506 * unittests/command-def-selftests.c (help_doc_tests): Update some
7507 comments.
7508 (command_structure_tests, traverse_command_structure): New namespace
7509 and function.
7510 (command_structure_invariants_tests): New function.
7511 (_initialize_command_def_selftests) Renamed from
7512 _initialize_help_doc_selftests, register command_structure_invariants
7513 selftest.
7514
7515 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7516
7517 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
7518 an alias of 'show'.
7519
7520 2020-05-15 Joel Brobecker <brobecker@adacore.com>
7521
7522 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
7523 ada_is_fixed_point_type. Update all callers.
7524 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
7525 all callers.
7526 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
7527 Update all callers.
7528 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
7529 print_fixed_point_type. Update all callers.
7530 * ada-valprint.c (ada_value_print_num): Replace call to
7531 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
7532
7533 2020-05-14 Kevin Buettner <kevinb@redhat.com>
7534
7535 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
7536 processors.
7537 (cpu_supports_bts): Add CV_AMD case.
7538
7539 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
7540 Simon Marchi <simon.marchi@efficios.com>
7541
7542 * infrun.c (stop_all_threads): Collect multiple wait events at
7543 each pass.
7544
7545 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
7546
7547 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
7548 type::code instead.
7549
7550 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
7551
7552 * gdbtypes.h (struct type) <code, set_code>: New methods.
7553 (TYPE_CODE): Use type::code. Change all call sites used to set
7554 the code to use type::set_code instead.
7555
7556 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7557 Tom de Vries <tdevries@suse.de>
7558 Pedro Alves <palves@redhat.com>
7559
7560 PR threads/25478
7561 * infrun.c (stop_all_threads): Do NOT ignore
7562 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
7563 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
7564 received.
7565 (handle_no_resumed): Remove code handling a live inferior with no
7566 threads.
7567 * remote.c (has_single_non_exited_thread): New.
7568 (remote_target::update_thread_list): Do not delete a thread if is
7569 the last thread of the process.
7570 * thread.c (thread_select): Call delete_exited_threads instead of
7571 prune_threads.
7572
7573 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7574
7575 * infrun.c (stop_all_threads): Enable/disable thread events of all
7576 targets. Move a debug message denoting the end of the function
7577 into the SCOPED_EXIT block.
7578
7579 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7580
7581 * process-stratum-target.h: Include <set>.
7582 (all_non_exited_process_targets, switch_to_target_no_thread): New
7583 function declarations.
7584 * process-stratum-target.c (all_non_exited_process_targets)
7585 (switch_to_target_no_thread): New function implementations.
7586
7587 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7588
7589 * infrun.c (handle_inferior_event): Extract out a piece of code
7590 into...
7591 (mark_non_executing_threads): ...this new function.
7592
7593 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7594
7595 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
7596 use.
7597
7598 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7599
7600 * regcache.c (regcache_read_pc_protected): New function
7601 implementation that returns 0 if the PC cannot read via
7602 'regcache_read_pc'.
7603 * infrun.c (proceed): Call 'regcache_read_pc_protected'
7604 instead of 'regcache_read_pc'.
7605 (keep_going_pass_signal): Ditto.
7606
7607 2020-05-13 Tom Tromey <tromey@adacore.com>
7608
7609 * ada-lang.c (align_value): Remove.
7610 (ada_template_to_fixed_record_type_1): Use align_up.
7611
7612 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7613
7614 * async-event.c: Update the copyright year.
7615 * async-event.h: Update the copyright year.
7616
7617 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
7618
7619 * objfiles.h (is_addr_in_objfile,
7620 shared_objfile_contains_address_p): Return bool.
7621 * objfile.c (is_addr_in_objfile,
7622 shared_objfile_contains_address_p): Return bool.
7623
7624 2020-05-11 Tom Tromey <tromey@adacore.com>
7625
7626 * cli/cli-cmds.c (info_command): Restore.
7627 (_initialize_cli_cmds): Use add_prefix_command for "info".
7628 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
7629
7630 2020-05-11 Tom Tromey <tromey@adacore.com>
7631
7632 * ada-lang.c (ada_value_primitive_field): Now public.
7633 * ada-lang.h (ada_value_primitive_field): Declare.
7634 * ada-valprint.c (print_field_values): Use
7635 ada_value_primitive_field for wrapper fields.
7636
7637 2020-05-11 Tom de Vries <tdevries@suse.de>
7638
7639 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
7640 MODULE_DOMAIN.
7641
7642 2020-05-11 Tom de Vries <tdevries@suse.de>
7643
7644 PR symtab/25941
7645 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
7646 with length 0, if not gdb-produced.
7647 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
7648
7649 2020-05-09 Tom de Vries <tdevries@suse.de>
7650
7651 PR gdb/25955
7652 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
7653 calculation.
7654
7655 2020-05-09 Tom Tromey <tom@tromey.com>
7656
7657 * top.c (server_command): Now bool.
7658 * top.h (server_command): Now bool.
7659
7660 2020-05-08 Tom Tromey <tromey@adacore.com>
7661
7662 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
7663 already being processed.
7664
7665 2020-05-08 Tom Tromey <tom@tromey.com>
7666
7667 * printcmd.c (struct display) <next>: Remove.
7668 <display>: New constructor.
7669 <exp_string>: Now a std::string.
7670 <enabled_p>: Now a bool.
7671 (display_number): Move definition earlier.
7672 (displays): Rename from display_chain. Now a std::vector.
7673 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
7674 (display_command): Update.
7675 (do_one_display, disable_display)
7676 (enable_disable_display_command, do_enable_disable_display):
7677 Update.
7678 (free_display): Remove.
7679 (clear_displays): Rewrite.
7680 (delete_display): Update.
7681 (map_display_numbers): Use function_view. Remove "data"
7682 parameter. Update.
7683 (do_delete_display): Remove.
7684 (undisplay_command): Update.
7685 (do_one_display, do_displays, disable_display)
7686 (info_display_command): Update.
7687 (do_enable_disable_display): Remove.
7688 (enable_disable_display_command)
7689 (clear_dangling_display_expressions): Update.
7690
7691 2020-05-08 Tom Tromey <tom@tromey.com>
7692
7693 * symtab.c (set_symbol_cache_size)
7694 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
7695 (maintenance_print_symbol_cache_statistics): Update.
7696 * symmisc.c (print_symbol_bcache_statistics)
7697 (print_objfile_statistics, maintenance_print_objfiles)
7698 (maintenance_info_symtabs, maintenance_check_symtabs)
7699 (maintenance_expand_symtabs, maintenance_info_line_tables):
7700 Update.
7701 * symfile-debug.c (set_debug_symfile): Update.
7702 * source.c (forget_cached_source_info): Update.
7703 * python/python.c (gdbpy_progspaces): Update.
7704 * psymtab.c (maintenance_info_psymtabs): Update.
7705 * probe.c (parse_probes): Update.
7706 * linespec.c (iterate_over_all_matching_symtabs)
7707 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
7708 * guile/scm-progspace.c (gdbscm_progspaces): Update.
7709 * exec.c (exec_target::close): Update.
7710 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
7711 * breakpoint.c (print_one_breakpoint_location)
7712 (create_longjmp_master_breakpoint)
7713 (create_std_terminate_master_breakpoint): Update.
7714 * progspace.c (program_spaces): Now a std::vector.
7715 (maybe_new_address_space): Update.
7716 (add_program_space): Remove.
7717 (program_space::program_space): Update.
7718 (remove_program_space): Update.
7719 (number_of_program_spaces): Remove.
7720 (print_program_space, update_address_spaces): Update.
7721 * progspace.h (program_spaces): Change type.
7722 (ALL_PSPACES): Remove.
7723 (number_of_program_spaces): Don't declare.
7724 (struct program_space) <next>: Remove.
7725
7726 2020-05-08 Tom Tromey <tom@tromey.com>
7727
7728 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
7729 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
7730 (enable_break): Update.
7731 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
7732 (frv_fdpic_find_canonical_descriptor): Update.
7733 (frv_fetch_objfile_link_map): Update.
7734 * progspace.c (program_space::free_all_objfiles): Update.
7735 (program_space::solibs): New method.
7736 * progspace.h (struct program_space) <solibs>: New method.
7737 * solist.h (master_so_list): Don't declare.
7738 (ALL_SO_LIBS): Remove.
7739 * solib.h (so_list_head): Remove.
7740 (update_solib_list): Update comment.
7741 * solib.c (master_so_list): Remove.
7742 (solib_used, update_solib_list, solib_add)
7743 (info_sharedlibrary_command, clear_solib)
7744 (reload_shared_libraries_1, remove_user_added_objfile): Update.
7745
7746 2020-05-08 Tom Tromey <tom@tromey.com>
7747
7748 * extension.c (extension_languages): Now a std::array.
7749 (ALL_EXTENSION_LANGUAGES): Remove.
7750 (get_ext_lang_defn, get_ext_lang_of_file)
7751 (eval_ext_lang_from_control_command): Update.
7752 (finish_ext_lang_initialization)
7753 (auto_load_ext_lang_scripts_for_objfile)
7754 (ext_lang_type_printers::ext_lang_type_printers)
7755 (apply_ext_lang_type_printers)
7756 (ext_lang_type_printers::~ext_lang_type_printers)
7757 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
7758 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
7759 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
7760 (get_matching_xmethod_workers, ext_lang_colorize)
7761 (ext_lang_before_prompt): Update.
7762 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
7763
7764 2020-05-08 Tom Tromey <tom@tromey.com>
7765
7766 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
7767 overload.
7768 <swap_string, m_string>: Remove.
7769 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
7770 Update.
7771 * stabsread.c (define_symbol, read_type): Update.
7772 * linespec.c (find_linespec_symbols): Update.
7773 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
7774 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
7775 * dbxread.c (read_dbx_symtab): Update.
7776 * cp-support.h (cp_canonicalize_string_full)
7777 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
7778 Return unique_xmalloc_ptr.
7779 * cp-support.c (inspect_type): Update.
7780 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
7781 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
7782 Likewise.
7783 * c-typeprint.c (print_name_maybe_canonical): Update.
7784 * break-catch-throw.c (check_status_exception_catchpoint):
7785 Update.
7786
7787 2020-05-08 Tom de Vries <tdevries@suse.de>
7788
7789 * infrun.c (follow_fork): Copy current_line and current_symtab to
7790 child thread.
7791
7792 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
7793
7794 * async-event.c (struct async_signal_handler, struct
7795 async_event_handler): Reformat, remove typedef.
7796
7797 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
7798
7799 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
7800 access thistype->main_type->dyn_prop_list directly.
7801
7802 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
7803
7804 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
7805 (remove_dyn_prop): Remove. Update all users to use
7806 type::remove_dyn_prop.
7807 * gdbtypes.c (remove_dyn_prop): Rename to...
7808 (type::remove_dyn_prop): ... this.
7809
7810 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
7811
7812 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
7813 (add_dyn_prop): Remove. Update all users to use
7814 type::add_dyn_prop.
7815 * gdbtypes.c (add_dyn_prop): Rename to...
7816 (type::add_dyn_prop): ... this.
7817
7818 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
7819
7820 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
7821 (get_dyn_prop): Remove. Update all users to use
7822 type::dyn_prop.
7823 * gdbtypes.c (get_dyn_prop): Rename to...
7824 (type::dyn_prop): ... this.
7825
7826 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
7827
7828 * gdbtypes.h (struct main_type) <flag_static>: Remove.
7829
7830 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
7831
7832 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
7833 instruction, skip it if it's there.
7834
7835 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
7836
7837 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
7838
7839 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
7840
7841 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
7842 * gdbtypes.c (recursive_dump_type): Remove use of
7843 TYPE_INCOMPLETE.
7844
7845 2020-05-03 Tom Tromey <tom@tromey.com>
7846
7847 * breakpoint.c (catch_command, tcatch_command): Remove.
7848 (_initialize_breakpoint): Use add_basic_prefix_cmd,
7849 add_show_prefix_cmd.
7850 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
7851 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
7852 Remove.
7853 (add_internal_problem_command): Use add_basic_prefix_cmd,
7854 add_show_prefix_cmd.
7855 * mips-tdep.c (set_mipsfpu_command): Remove.
7856 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
7857 * dwarf2/index-cache.c (set_index_cache_command): Remove.
7858 (_initialize_index_cache): Use add_basic_prefix_cmd.
7859 * memattr.c (dummy_cmd): Remove.
7860 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
7861 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
7862 (_initialize_tui_win): Use add_basic_prefix_cmd,
7863 add_show_prefix_cmd.
7864 * cli/cli-logging.c (set_logging_command): Remove.
7865 (_initialize_cli_logging): Use add_basic_prefix_cmd,
7866 add_show_prefix_cmd.
7867 (show_logging_command): Remove.
7868 * target.c (target_command): Remove.
7869 (add_target): Use add_basic_prefix_cmd.
7870
7871 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
7872
7873 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
7874
7875 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7876
7877 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
7878 info_command.
7879
7880 2020-04-30 Kamil Rytarowski <n54@gmx.com>
7881
7882 * nbsd-nat.c (nbsd_enable_proc_events)
7883 (nbsd_nat_target::post_startup_inferior): Add.
7884 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
7885 (nbsd_nat_target::update_thread_list): Rewrite.
7886 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
7887 "PTRACE_LWP_CREATE".
7888 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
7889
7890 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7891
7892 * stack.c (_initialize_stack): Remove duplicated creation
7893 of "frame" command and "f" alias.
7894
7895 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
7896
7897 PR gdb/18706
7898 * gdbtypes.c (check_typedef): Calculate size of array of
7899 stubbed type.
7900
7901 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
7902
7903 PR gdb/15559
7904 * i386-tdep.c (i386_push_dummy_call): Call
7905 i386_thiscall_push_dummy_call.
7906 (i386_thiscall_push_dummy_call): New function.
7907 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
7908 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
7909 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
7910
7911 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7912
7913 * gdbarch.sh (do_read): Add shellcheck disable directive for
7914 warning SC2162.
7915
7916 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7917
7918 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
7919 "referenced but not assigned" warning.
7920
7921 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7922
7923 * gdbarch.sh: Remove code that sets fallbackdefault.
7924
7925 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7926
7927 * gdbarch.sh: Use shell operators && and || instead of
7928 -a and -o.
7929
7930 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7931
7932 * gdbarch.sh: Use $(...) instead of `...`.
7933
7934 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7935
7936 * gdbarch.sh: Use double quotes around variables.
7937
7938 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7939
7940 * gdbarch.sh: Use %s with printf, instead of variables in the
7941 format string.
7942
7943 2020-04-29 Tom Tromey <tromey@adacore.com>
7944
7945 PR ada/25875:
7946 * dwarf2/read.c (update_enumeration_type_from_children): Compute
7947 type fields here.
7948 (read_enumeration_type): Call
7949 update_enumeration_type_from_children later. Update comments.
7950 (process_enumeration_scope): Don't create type fields.
7951
7952 2020-04-29 Kamil Rytarowski <n54@gmx.com>
7953
7954 * nbsd-tdep.c: Include "xml-syscall.h".
7955 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
7956
7957 2020-04-29 Kamil Rytarowski <n54@gmx.com>
7958
7959 * nbsd-nat.c: Include "sys/wait.h".
7960 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
7961 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
7962 (nbsd_nat_target::remove_exec_catchpoint)
7963 (nbsd_nat_target::set_syscall_catchpoint): Add.
7964 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
7965 (nbsd_nat_target::insert_exec_catchpoint)
7966 (nbsd_nat_target::remove_exec_catchpoint)
7967 (nbsd_nat_target::set_syscall_catchpoint): Add.
7968 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
7969 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
7970 `nbsd_get_syscall_number'.
7971
7972 2020-04-29 Tom Tromey <tom@tromey.com>
7973
7974 * stack.c (print_block_frame_labels): Remove.
7975
7976 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
7977
7978 PR gdb/17320
7979 * ada-valprint.c (val_print_packed_array_elements): Move array
7980 end bracket to new line.
7981 (ada_val_print_string): Remove extra spaces before first array
7982 element.
7983 * c-valprint.c (c_value_print_array): Likewise.
7984 * m2-valprint.c (m2_print_array_contents): Likewise.
7985 (m2_value_print_inner): Likewise.
7986 * p-valprint.c (pascal_value_print_inner): Likewise.
7987 * valprint.c (generic_val_print_array): Likewise.
7988 (value_print_array_elements): Move first array element and array
7989 end bracket to new line.
7990
7991 2020-04-29 Tom de Vries <tdevries@suse.de>
7992
7993 PR symtab/25889
7994 * linespec.c (find_method): Fix ix calculation.
7995
7996 2020-04-28 Kamil Rytarowski <n54@gmx.com>
7997
7998 * syscalls/update-netbsd.sh: New file.
7999 * syscalls/netbsd.xml: Regenerate.
8000 * data-directory/Makefile.in: Register `netbsd.xml' in
8001 `SYSCALLS_FILES'.
8002
8003 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
8004
8005 * syscalls/update-freebsd.sh: Add double quotes.
8006
8007 2020-04-28 Tom Tromey <tom@tromey.com>
8008
8009 * NEWS: Update.
8010 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
8011 (cmdpy_init): Allow class_tui.
8012
8013 2020-04-28 Mark Williams <mark@myosotissp.com>
8014
8015 PR gdb/24480
8016 * dwarf2read.c: Add missing assingments to list_in_scope when
8017 start_symtab was already called.
8018
8019 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
8020
8021 PR gdb/25881
8022 * dwarf2/read.c (offset_map_type): Use
8023 gdb:hash_enum<sect_offset> as hash function.
8024
8025 2020-04-28 Tom de Vries <tdevries@suse.de>
8026
8027 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
8028 with DW_AT_signature.
8029
8030 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
8031
8032 * configure.ac: Remove check for fs_base/gs_base in
8033 user_regs_struct.
8034 * configure: Re-generate.
8035 * config.in: Re-generate.
8036 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
8037 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
8038 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
8039
8040 2020-04-27 Luis Machado <luis.machado@linaro.org>
8041
8042 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
8043 problematic inline frame unwinding situation.
8044 * frame.c (frame_id_computed_p): New function.
8045 * frame.h (frame_id_computed_p): New prototype.
8046
8047 2020-04-26 Tom Tromey <tom@tromey.com>
8048
8049 * command.h (enum command_class) <class_pseudo>: Remove.
8050
8051 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8052
8053 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
8054 and whitespace.
8055
8056 2020-04-25 Kamil Rytarowski <n54@gmx.com>
8057
8058 * inf-ptrace.c (inf_ptrace_target::wait): Remove
8059 `PT_GET_PROCESS_STATE' block.
8060
8061 2020-04-24 Tom Tromey <tom@tromey.com>
8062
8063 * symtab.h (symbol_get_demangled_name): Don't declare.
8064 * symtab.c (symbol_get_demangled_name): Remove.
8065 (general_symbol_info::natural_name)
8066 (general_symbol_info::demangled_name): Update.
8067
8068 2020-04-24 Tom Tromey <tom@tromey.com>
8069
8070 PR rust/25025:
8071 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
8072
8073 2020-04-24 Tom Tromey <tom@tromey.com>
8074
8075 PR symtab/12707:
8076 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
8077 exists.
8078 (new_symbol): Likewise.
8079 * compile/compile-object-load.c (get_out_value_type): Use
8080 symbol_matches_search_name.
8081
8082 2020-04-24 Tom Tromey <tom@tromey.com>
8083
8084 * dwarf2/read.c (add_partial_symbol): Do not call
8085 compute_and_set_names.
8086
8087 2020-04-24 Tom Tromey <tom@tromey.com>
8088
8089 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
8090 overload.
8091
8092 2020-04-24 Tom Tromey <tom@tromey.com>
8093
8094 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
8095 (add_psymbol_to_list): New overload. Make old overload call new
8096 one.
8097 * psympriv.h (add_psymbol_to_list): New overload.
8098
8099 2020-04-24 Tom Tromey <tom@tromey.com>
8100
8101 * dwarf2/read.c (partial_die_info::read) <case
8102 DW_AT_linkage_name>: Use value_as_string.
8103 (dwarf2_string_attr): Use value_as_string.
8104 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
8105 method.
8106 * dwarf2/attribute.c (attribute::value_as_string): New method.
8107
8108 2020-04-24 Tom Tromey <tom@tromey.com>
8109
8110 * symtab.c (general_symbol_info::natural_name)
8111 (general_symbol_info::demangled_name): Check for language_rust.
8112
8113 2020-04-24 Tom Tromey <tom@tromey.com>
8114
8115 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
8116 (dwarf2_physname): ... from here.
8117 (partial_die_info::read): Add Rust "{" hack.
8118
8119 2020-04-24 Tom Tromey <tom@tromey.com>
8120
8121 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
8122 method.
8123 (symbol_set_demangled_name): Don't declare.
8124 * symtab.c (general_symbol_info::set_demangled_name): Rename from
8125 symbol_set_demangled_name.
8126 (general_symbol_info::set_language)
8127 (general_symbol_info::compute_and_set_names): Update.
8128 * minsyms.c (minimal_symbol_reader::install): Update.
8129 * dwarf2/read.c (new_symbol): Update.
8130
8131 2020-04-24 Tom Tromey <tromey@adacore.com>
8132
8133 PR python/23662:
8134 * python/py-type.c (convert_field): Handle
8135 FIELD_LOC_KIND_DWARF_BLOCK.
8136 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
8137 (typy_get_dynamic): Nw function.
8138 (type_object_getset): Add "dynamic".
8139 * NEWS: Add entry.
8140
8141 2020-04-24 Tom Tromey <tromey@adacore.com>
8142
8143 * ada-typeprint.c (print_choices, print_variant_part)
8144 (print_record_field_types_dynamic): New functions.
8145 (print_record_field_types): Use print_record_field_types_dynamic.
8146
8147 2020-04-24 Tom Tromey <tromey@adacore.com>
8148
8149 * dwarf2/read.c (handle_data_member_location): New overload.
8150 (dwarf2_add_field): Use it.
8151 (decode_locdesc): Add "computed" parameter. Update comment.
8152 * gdbtypes.c (is_dynamic_type_internal): Also look for
8153 FIELD_LOC_KIND_DWARF_BLOCK.
8154 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
8155 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
8156 virtual base classes.
8157 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
8158 FIELD_LOC_KIND_DWARF_BLOCK.
8159
8160 2020-04-24 Tom Tromey <tromey@adacore.com>
8161
8162 * dwarf2/read.c (read_structure_type): Handle dynamic length.
8163 * gdbtypes.c (is_dynamic_type_internal): Check
8164 TYPE_HAS_DYNAMIC_LENGTH.
8165 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
8166 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
8167 New macros.
8168 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
8169 constant.
8170
8171 2020-04-24 Tom Tromey <tromey@adacore.com>
8172
8173 * dwarf2/read.c (struct variant_field): Rewrite.
8174 (struct variant_part_builder): New.
8175 (struct nextfield): Remove "variant" field. Add "offset".
8176 (struct field_info): Add "current_variant_part" and
8177 "variant_parts".
8178 (alloc_discriminant_info): Remove.
8179 (alloc_rust_variant): New function.
8180 (quirk_rust_enum): Update.
8181 (dwarf2_add_field): Set "offset" member. Don't handle
8182 DW_TAG_variant_part.
8183 (offset_map_type): New typedef.
8184 (convert_variant_range, create_one_variant)
8185 (create_one_variant_part, create_variant_parts)
8186 (add_variant_property): New functions.
8187 (dwarf2_attach_fields_to_type): Call add_variant_property.
8188 (read_structure_type): Don't handle DW_TAG_variant_part.
8189 (handle_variant_part, handle_variant): New functions.
8190 (handle_struct_member_die): Use them.
8191 (process_structure_scope): Don't handle variant parts.
8192 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
8193 (struct discriminant_info): Remove.
8194 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
8195 (struct main_type) <flag_discriminated_union>: Remove.
8196 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
8197 (rust_enum_variant): Return int. Remove "contents". Rewrite.
8198 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
8199 Update.
8200 * valops.c (value_union_variant): Remove.
8201 * value.h (value_union_variant): Don't declare.
8202
8203 2020-04-24 Tom Tromey <tromey@adacore.com>
8204
8205 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
8206 (ada_value_primitive_packed_val): Update.
8207 * ada-valprint.c (ada_value_print_1): Update.
8208 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
8209 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
8210 just an address. Use evaluate_for_locexpr_baton.
8211 (dwarf2_evaluate_property): Update.
8212 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
8213 array_view.
8214 * findvar.c (default_read_var_value): Update.
8215 * gdbtypes.c (compute_variant_fields_inner)
8216 (resolve_dynamic_type_internal): Update.
8217 (resolve_dynamic_type): Change type of valaddr parameter.
8218 * gdbtypes.h (resolve_dynamic_type): Update.
8219 * valarith.c (value_subscripted_rvalue): Update.
8220 * value.c (value_from_contents_and_address): Update.
8221
8222 2020-04-24 Tom Tromey <tromey@adacore.com>
8223
8224 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
8225 "push_initial_value" parameter.
8226 (dwarf2_evaluate_property): Likewise.
8227 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
8228
8229 2020-04-24 Tom Tromey <tromey@adacore.com>
8230
8231 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
8232 (variant::matches, compute_variant_fields_recurse)
8233 (compute_variant_fields_inner, compute_variant_fields): New
8234 functions.
8235 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
8236 Use resolved_type after type is made.
8237 (operator==): Add new cases.
8238 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
8239 (struct discriminant_range, struct variant, struct variant_part):
8240 New.
8241 (union dynamic_prop_data) <variant_parts, original_type>: New
8242 members.
8243 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
8244 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
8245 constants.
8246 * value.c (unpack_bits_as_long): Now public.
8247 * value.h (unpack_bits_as_long): Declare.
8248
8249 2020-04-24 Tom Tromey <tromey@adacore.com>
8250
8251 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
8252 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
8253
8254 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
8255
8256 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
8257
8258 2020-04-24 Kamil Rytarowski <n54@gmx.com>
8259
8260 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
8261 (remove_fork_catchpoint, post_startup_inferior)
8262 (post_attach): Move...
8263 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
8264 (remove_fork_catchpoint, post_startup_inferior)
8265 (post_attach): ...here.
8266 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
8267 (remove_fork_catchpoint, post_startup_inferior)
8268 (post_attach): Move...
8269 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
8270 (remove_fork_catchpoint, post_startup_inferior)
8271 (post_attach): ...here.
8272
8273 2020-04-24 Tom Tromey <tromey@adacore.com>
8274
8275 * nat/windows-nat.h (struct windows_thread_info)
8276 <pc_adjusted>: New member.
8277 * windows-nat.c (windows_fetch_one_register): Check
8278 pc_adjusted.
8279 (windows_nat_target::get_windows_debug_event)
8280 (windows_nat_target::wait): Set pc_adjusted.
8281
8282 2020-04-24 Tom de Vries <tdevries@suse.de>
8283
8284 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
8285 Run gdb-add-index inside temp dir.
8286
8287 2020-04-23 Tom Tromey <tromey@adacore.com>
8288
8289 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
8290 in loop.
8291
8292 2020-04-23 Luis Machado <luis.machado@linaro.org>
8293
8294 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
8295 get_frame_register instead of gdbarch_unwind_pc.
8296
8297 2020-04-23 Tom de Vries <tdevries@suse.de>
8298
8299 * symtab.c (lookup_global_symbol): Prefer def over decl.
8300
8301 2020-04-23 Tom de Vries <tdevries@suse.de>
8302
8303 PR symtab/25807
8304 * block.c (best_symbol, better_symbol): Promote to external.
8305 * block.h (best_symbol, better_symbol): Declare.
8306 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
8307 decl.
8308
8309 2020-04-23 Tom Tromey <tromey@adacore.com>
8310
8311 PR ada/25837:
8312 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
8313 "const char *", not a "const std::string &".
8314 <name_and_matcher::operator==>: Update.
8315 * unittests/lookup_name_info-selftests.c: Change type of
8316 "result".
8317
8318 2020-04-23 Tom Tromey <tom@tromey.com>
8319
8320 * inferior.h (iterate_over_inferiors): Don't declare.
8321 * inferior.c (iterate_over_inferiors): Remove.
8322 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
8323 Remove.
8324 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
8325 use iterate_over_inferiors.
8326 (darwin_resume_inferior_it)
8327 (struct resume_inferior_threads_param)
8328 (darwin_resume_inferior_threads_it): Remove.
8329 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
8330
8331 2020-04-23 Tom de Vries <tdevries@suse.de>
8332
8333 * blockframe.c (find_pc_partial_function): Use
8334 find_pc_sect_compunit_symtab rather than
8335 objfile->sf->qf->find_pc_sect_compunit_symtab.
8336
8337 2020-04-22 Tom de Vries <tdevries@suse.de>
8338
8339 PR symtab/25764
8340 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
8341 in psymtabs.
8342
8343 2020-04-22 Tom de Vries <tdevries@suse.de>
8344
8345 PR symtab/25801
8346 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
8347 symtabs.
8348
8349 2020-04-22 Tom de Vries <tdevries@suse.de>
8350
8351 PR symtab/25700
8352 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
8353 CU if already created.
8354
8355 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8356
8357 * infrun.c (displaced_step_fixup): Switch to the event_thread
8358 before calling displaced_step_restore, not after.
8359
8360 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
8361
8362 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
8363 its inferior is not recorded by us.
8364 (record_btrace_target_open): Replace call to
8365 all_non_exited_threads () with call to current_inferior
8366 ()->non_exited_threads ().
8367 (record_btrace_target::stop_recording): Likewise.
8368 (record_btrace_target::close): Likewise.
8369 (record_btrace_target::wait): Likewise.
8370 (record_btrace_target::record_stop_replaying): Likewise.
8371
8372 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
8373
8374 * btrace.c (btrace_enable): Throw an error on double enables and
8375 when enabling recording fails.
8376 (btrace_disable): Throw an error if the thread is not recorded.
8377
8378 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
8379
8380 * record-btrace.c (record_btrace_target::fetch_registers): Forward
8381 request if we do not have a thread_info.
8382
8383 2020-04-21 Tom de Vries <tdevries@suse.de>
8384
8385 PR gdb/25471
8386 * thread.c
8387 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
8388 exception in get_frame_id.
8389
8390 2020-04-20 Tom Tromey <tromey@adacore.com>
8391
8392 * python/python.c (struct gdbpy_event): Mark move constructor as
8393 noexcept.
8394 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
8395 constructor as noexcept.
8396 * completer.h (struct completion_result): Mark move constructor as
8397 noexcept.
8398 * completer.c (completion_result::completion_result): Use
8399 initialization style. Don't call reset_match_list.
8400
8401 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
8402
8403 * MAINTAINERS (Write After Approval): Add myself.
8404
8405 2020-04-18 Tom Tromey <tom@tromey.com>
8406
8407 * windows-tdep.c (init_w32_command_list)
8408 (w32_prefix_command_valid): Restore.
8409 (_initialize_windows_tdep): Call init_w32_command_list.
8410
8411 2020-04-18 Tom Tromey <tom@tromey.com>
8412
8413 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
8414 * value.c (value_fn_field): Update.
8415 * valops.c (find_function_in_inferior)
8416 (value_allocate_space_in_inferior): Update.
8417 * tui/tui-winsource.c (tui_update_source_windows_with_line):
8418 Update.
8419 * tui/tui-source.c (tui_source_window::set_contents): Update.
8420 * symtab.c (lookup_global_or_static_symbol)
8421 (find_function_start_sal_1, skip_prologue_sal)
8422 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
8423 * symmisc.c (dump_msymbols, dump_symtab_1)
8424 (maintenance_print_one_line_table): Update.
8425 * symfile.c (init_entry_point_info, section_is_mapped)
8426 (list_overlays_command, simple_read_overlay_table)
8427 (simple_overlay_update_1): Update.
8428 * stap-probe.c (handle_stap_probe): Update.
8429 * stabsread.c (dbx_init_float_type, define_symbol)
8430 (read_one_struct_field, read_enum_type, read_range_type): Update.
8431 * source.c (info_line_command): Update.
8432 * python/python.c (gdbpy_source_objfile_script)
8433 (gdbpy_execute_objfile_script): Update.
8434 * python/py-type.c (save_objfile_types): Update.
8435 * python/py-objfile.c (py_free_objfile): Update.
8436 * python/py-inferior.c (python_new_objfile): Update.
8437 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
8438 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
8439 (maintenance_check_psymtabs): Update.
8440 * printcmd.c (info_address_command): Update.
8441 * objfiles.h (struct objfile) <arch>: New method, from
8442 get_objfile_arch.
8443 (get_objfile_arch): Don't declare.
8444 * objfiles.c (get_objfile_arch): Remove.
8445 (filter_overlapping_sections): Update.
8446 * minsyms.c (msymbol_is_function): Update.
8447 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
8448 (output_nondebug_symbol): Update.
8449 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
8450 (mdebug_expand_psymtab): Update.
8451 * machoread.c (macho_add_oso_symfile): Update.
8452 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
8453 Update.
8454 * linux-fork.c (checkpoint_command): Update.
8455 * linespec.c (convert_linespec_to_sals): Update.
8456 * jit.c (finalize_symtab): Update.
8457 * infrun.c (insert_exception_resume_from_probe): Update.
8458 * ia64-tdep.c (ia64_find_unwind_table): Update.
8459 * hppa-tdep.c (internalize_unwinds): Update.
8460 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
8461 Update.
8462 * gcore.c (call_target_sbrk): Update.
8463 * elfread.c (record_minimal_symbol, elf_symtab_read)
8464 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
8465 (elf_gnu_ifunc_resolve_by_got): Update.
8466 * dwarf2/read.c (create_addrmap_from_index)
8467 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
8468 (read_debug_names_from_section)
8469 (process_psymtab_comp_unit_reader, add_partial_symbol)
8470 (add_partial_subprogram, process_full_comp_unit)
8471 (read_file_scope, read_func_scope, read_lexical_block_scope)
8472 (read_call_site_scope, dwarf2_ranges_read)
8473 (dwarf2_record_block_ranges, dwarf2_add_field)
8474 (mark_common_block_symbol_computed, read_tag_pointer_type)
8475 (read_tag_string_type, dwarf2_init_float_type)
8476 (dwarf2_init_complex_target_type, read_base_type)
8477 (partial_die_info::read, partial_die_info::read)
8478 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
8479 (dwarf2_fetch_die_loc_sect_off): Update.
8480 * dwarf2/loc.c (dwarf2_find_location_expression)
8481 (class dwarf_evaluate_loc_desc, rw_pieced_value)
8482 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
8483 (dwarf2_loc_desc_get_symbol_read_needs)
8484 (locexpr_describe_location_piece, locexpr_describe_location_1)
8485 (loclist_describe_location): Update.
8486 * dwarf2/index-write.c (write_debug_names): Update.
8487 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
8488 * dtrace-probe.c (dtrace_process_dof): Update.
8489 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
8490 (process_one_symbol): Update.
8491 * ctfread.c (ctf_init_float_type, read_base_type): Update.
8492 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
8493 (coff_read_enum_type): Update.
8494 * cli/cli-cmds.c (edit_command, list_command): Update.
8495 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
8496 * breakpoint.c (create_overlay_event_breakpoint)
8497 (create_longjmp_master_breakpoint)
8498 (create_std_terminate_master_breakpoint)
8499 (create_exception_master_breakpoint, get_sal_arch): Update.
8500 * block.c (block_gdbarch): Update.
8501 * annotate.c (annotate_source_line): Update.
8502
8503 2020-04-17 Tom Tromey <tromey@adacore.com>
8504
8505 * auto-load.c (show_auto_load_cmd): Remove.
8506 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
8507 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
8508 (maintenance_print_arc_command): Remove.
8509 * tui/tui-win.c (tui_command): Remove.
8510 (tui_get_cmd_list): Use add_basic_prefix_cmd.
8511 * tui/tui-layout.c (tui_layout_command): Remove.
8512 (_initialize_tui_layout): Use add_basic_prefix_cmd.
8513 * python/python.c (user_set_python, user_show_python): Remove.
8514 (_initialize_python): Use add_basic_prefix_cmd,
8515 add_show_prefix_cmd.
8516 * guile/guile.c (set_guile_command, show_guile_command): Remove.
8517 (install_gdb_commands): Use add_basic_prefix_cmd,
8518 add_show_prefix_cmd.
8519 (info_guile_command): Remove.
8520 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
8521 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
8522 add_show_prefix_cmd.
8523 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
8524 Remove do_set and do_show parameters.
8525 * cli/cli-style.c (set_style, show_style): Remove.
8526 (_initialize_cli_style): Use add_basic_prefix_cmd,
8527 add_show_prefix_cmd.
8528 (cli_style_option::add_setshow_commands): Remove do_set and
8529 do_show parameters.
8530 (cli_style_option::add_setshow_commands): Use
8531 add_basic_prefix_cmd, add_show_prefix_cmd.
8532 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
8533 (set_style_name): Remove.
8534 * cli/cli-dump.c (dump_command, append_command): Remove.
8535 (srec_dump_command, ihex_dump_command, verilog_dump_command)
8536 (tekhex_dump_command, binary_dump_command)
8537 (binary_append_command): Remove.
8538 (_initialize_cli_dump): Use add_basic_prefix_cmd.
8539 * windows-tdep.c (w32_prefix_command_valid): Remove global.
8540 (init_w32_command_list): Remove; move into ...
8541 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
8542 * valprint.c (set_print, show_print, set_print_raw)
8543 (show_print_raw): Remove.
8544 (_initialize_valprint): Use add_basic_prefix_cmd,
8545 add_show_prefix_cmd.
8546 * typeprint.c (set_print_type, show_print_type): Remove.
8547 (_initialize_typeprint): Use add_basic_prefix_cmd,
8548 add_show_prefix_cmd.
8549 * record.c (set_record_command, show_record_command): Remove.
8550 (_initialize_record): Use add_basic_prefix_cmd,
8551 add_show_prefix_cmd.
8552 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
8553 add_show_prefix_cmd.
8554 (info_command, show_command, set_debug, show_debug): Remove.
8555 * top.h (set_history, show_history): Don't declare.
8556 * top.c (set_history, show_history): Remove.
8557 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
8558 (unset_tdesc_cmd): Remove.
8559 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
8560 add_show_prefix_cmd.
8561 * symtab.c (info_module_command): Remove.
8562 (_initialize_symtab): Use add_basic_prefix_cmd.
8563 * symfile.c (overlay_command): Remove.
8564 (_initialize_symfile): Use add_basic_prefix_cmd.
8565 * sparc64-tdep.c (info_adi_command): Remove.
8566 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
8567 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
8568 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
8569 add_show_prefix_cmd.
8570 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
8571 (_initialize_serial): Use add_basic_prefix_cmd,
8572 add_show_prefix_cmd.
8573 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
8574 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
8575 add_show_prefix_cmd.
8576 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
8577 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
8578 add_show_prefix_cmd.
8579 * riscv-tdep.c (show_riscv_command, set_riscv_command)
8580 (show_debug_riscv_command, set_debug_riscv_command): Remove.
8581 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
8582 add_show_prefix_cmd.
8583 * remote.c (remote_command, set_remote_cmd): Remove.
8584 (_initialize_remote): Use add_basic_prefix_cmd.
8585 * record-full.c (set_record_full_command)
8586 (show_record_full_command): Remove.
8587 (_initialize_record_full): Use add_basic_prefix_cmd,
8588 add_show_prefix_cmd.
8589 * record-btrace.c (cmd_set_record_btrace)
8590 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
8591 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
8592 (cmd_show_record_btrace_pt): Remove.
8593 (_initialize_record_btrace): Use add_basic_prefix_cmd,
8594 add_show_prefix_cmd.
8595 * ravenscar-thread.c (set_ravenscar_command)
8596 (show_ravenscar_command): Remove.
8597 (_initialize_ravenscar): Use add_basic_prefix_cmd,
8598 add_show_prefix_cmd.
8599 * mips-tdep.c (show_mips_command, set_mips_command)
8600 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
8601 add_show_prefix_cmd.
8602 * maint.c (maintenance_command, maintenance_info_command)
8603 (maintenance_check_command, maintenance_print_command)
8604 (maintenance_set_cmd, maintenance_show_cmd): Remove.
8605 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
8606 add_show_prefix_cmd.
8607 (show_per_command_cmd): Remove.
8608 * maint-test-settings.c (maintenance_set_test_settings_cmd):
8609 Remove.
8610 (maintenance_show_test_settings_cmd): Remove.
8611 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
8612 add_show_prefix_cmd.
8613 * maint-test-options.c (maintenance_test_options_command):
8614 Remove.
8615 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
8616 * macrocmd.c (macro_command): Remove
8617 (_initialize_macrocmd): Use add_basic_prefix_cmd.
8618 * language.c (set_check, show_check): Remove.
8619 (_initialize_language): Use add_basic_prefix_cmd,
8620 add_show_prefix_cmd.
8621 * infcmd.c (unset_command): Remove.
8622 (_initialize_infcmd): Use add_basic_prefix_cmd.
8623 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
8624 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
8625 add_show_prefix_cmd.
8626 * go32-nat.c (go32_info_dos_command): Remove.
8627 (_initialize_go32_nat): Use add_basic_prefix_cmd.
8628 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
8629 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
8630 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
8631 (_initialize_frame): Use add_basic_prefix_cmd,
8632 add_show_prefix_cmd.
8633 * dcache.c (set_dcache_command, show_dcache_command): Remove.
8634 (_initialize_dcache): Use add_basic_prefix_cmd,
8635 add_show_prefix_cmd.
8636 * cp-support.c (maint_cplus_command): Remove.
8637 (_initialize_cp_support): Use add_basic_prefix_cmd.
8638 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
8639 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
8640 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
8641 add_basic_prefix_cmd, add_show_prefix_cmd.
8642 * breakpoint.c (save_command): Remove.
8643 (_initialize_breakpoint): Use add_basic_prefix_cmd.
8644 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
8645 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
8646 add_show_prefix_cmd.
8647 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
8648 (set_ada_command, show_ada_command): Remove.
8649 (_initialize_ada_language): Use add_basic_prefix_cmd,
8650 add_show_prefix_cmd.
8651 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
8652
8653 2020-04-16 Kamil Rytarowski <n54@gmx.com>
8654
8655 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
8656 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
8657
8658 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
8659
8660 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
8661 warning messages.
8662
8663 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
8664
8665 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
8666 import table is not at beginning of .idata section.
8667
8668 2020-04-16 Pedro Alves <palves@redhat.com>
8669
8670 * inferior.c (delete_inferior): Use delete operator directly
8671 instead of delete_program_space.
8672 * progspace.c (add_program_space): New, factored out from
8673 program_space::program_space.
8674 (remove_program_space): New, factored out from
8675 delete_program_space.
8676 (program_space::program_space): Remove intro comment. Rewrite.
8677 (program_space::~program_space): Remove intro comment. Call
8678 remove_program_space.
8679 (delete_program_space): Delete.
8680 * progspace.h (program_space::program_space): Make explicit. Move
8681 intro comment here, adjusted.
8682 (program_space::~program_space): Move intro comment here,
8683 adjusted.
8684 (delete_program_space): Remove.
8685
8686 2020-04-16 Tom Tromey <tromey@adacore.com>
8687
8688 * windows-nat.c (windows_nat::handle_access_violation): New
8689 function.
8690 * nat/windows-nat.h (handle_access_violation): Declare.
8691 * nat/windows-nat.c (handle_exception): Move Cygwin code to
8692 windows-nat.c. Call handle_access_violation.
8693
8694 2020-04-16 Tom de Vries <tdevries@suse.de>
8695
8696 PR symtab/25791
8697 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
8698 CUs without psymtab.
8699
8700 2020-04-16 Kevin Buettner <kevinb@redhat.com>
8701
8702 * python/python.c (do_start_initialization): Don't call
8703 PyEval_InitThreads for Python 3.9 and beyond.
8704
8705 2020-04-15 Kamil Rytarowski <n54@gmx.com>
8706
8707 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
8708 thread functions.
8709 (obsd_nat_target::wait): Likewise.
8710
8711 2020-04-15 Tom Tromey <tromey@adacore.com>
8712
8713 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
8714 (DEBUG_EXCEPT): Use debug_printf.
8715
8716 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
8717
8718 * completer.c (class completion_tracker::completion_hash_entry)
8719 <hash_name>: New member function.
8720 (completion_tracker::discard_completions): New callback to hash a
8721 completion_hash_entry, pass this to htab_create_alloc.
8722
8723 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
8724
8725 * windows-nat.c (windows_make_so): Warn rather than stopping with
8726 an error if realpath() fails.
8727
8728 2020-04-14 Kamil Rytarowski <n54@gmx.com>
8729
8730 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
8731 (nbsd_nat_target::info_proc): Add do_status.
8732
8733 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
8734 Tom de Vries <tdevries@suse.de>
8735
8736 PR symtab/25718
8737 * psympriv.h (struct partial_symtab::read_symtab)
8738 (struct partial_symtab::expand_psymtab)
8739 (struct partial_symtab::read_dependencies): Update comments.
8740 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
8741 read_symtab for includer.
8742 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
8743 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
8744 (struct dwarf2_include_psymtab::m_readin): Remove.
8745 (struct dwarf2_include_psymtab::includer): New member function.
8746 (dwarf2_psymtab::expand_psymtab): Assert !readin.
8747
8748 2020-04-14 Tom de Vries <tdevries@suse.de>
8749
8750 PR symtab/25720
8751 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
8752 with NULL symbol_matcher and lookup_name.
8753 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
8754 and lookup_name.
8755 * dwarf2/read.c (dw2_expand_symtabs_matching)
8756 (dw2_debug_names_expand_symtabs_matching): Same.
8757 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
8758 Make lookup_name a pointer. Update comment.
8759 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
8760 lookup_name being a pointer.
8761 * symfile.c (expand_symtabs_matching): Same.
8762 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
8763 * linespec.c (iterate_over_all_matching_symtabs): Same.
8764
8765 2020-04-13 Tom Tromey <tom@tromey.com>
8766
8767 * run-on-main-thread.c: Update include.
8768 * unittests/main-thread-selftests.c: Update include.
8769 * tui/tui-win.c: Update include.
8770 * tui/tui-io.c: Update include.
8771 * tui/tui-interp.c: Update include.
8772 * tui/tui-hooks.c: Update include.
8773 * top.h: Update include.
8774 * top.c: Update include.
8775 * ser-base.c: Update include.
8776 * remote.c: Update include.
8777 * remote-notif.c: Update include.
8778 * remote-fileio.c: Update include.
8779 * record-full.c: Update include.
8780 * record-btrace.c: Update include.
8781 * python/python.c: Update include.
8782 * posix-hdep.c: Update include.
8783 * mingw-hdep.c: Update include.
8784 * mi/mi-main.c: Update include.
8785 * mi/mi-interp.c: Update include.
8786 * main.c: Update include.
8787 * linux-nat.c: Update include.
8788 * interps.c: Update include.
8789 * infrun.c: Update include.
8790 * inf-loop.c: Update include.
8791 * event-top.c: Update include.
8792 * event-loop.c: Move to ../gdbsupport/.
8793 * event-loop.h: Move to ../gdbsupport/.
8794 * async-event.h: Update include.
8795 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
8796
8797 2020-04-13 Tom Tromey <tom@tromey.com>
8798
8799 * tui/tui-win.c: Include async-event.h.
8800 * remote.c: Include async-event.h.
8801 * remote-notif.c: Include async-event.h.
8802 * record-full.c: Include async-event.h.
8803 * record-btrace.c: Include async-event.h.
8804 * infrun.c: Include async-event.h.
8805 * event-top.c: Include async-event.h.
8806 * event-loop.h: Move some declarations to async-event.h.
8807 * event-loop.c: Don't include ser-event.h or top.h. Move some
8808 code to async-event.c.
8809 * async-event.h: New file.
8810 * async-event.c: New file.
8811 * Makefile.in (COMMON_SFILES): Add async-event.c.
8812 (HFILES_NO_SRCDIR): Add async-event.h.
8813
8814 2020-04-13 Tom Tromey <tom@tromey.com>
8815
8816 * utils.c (flush_streams): New function.
8817 * event-loop.c (gdb_wait_for_event): Call flush_streams.
8818
8819 2020-04-13 Tom Tromey <tom@tromey.com>
8820
8821 * event-loop.c (handle_file_event): Use warning, not
8822 printf_unfiltered.
8823
8824 2020-04-13 Tom Tromey <tom@tromey.com>
8825
8826 * event-loop.c: Include <chrono>.
8827
8828 2020-04-13 Tom Tromey <tom@tromey.com>
8829
8830 * gdb_select.h: Move to ../gdbsupport/.
8831 * event-loop.c: Update include path.
8832 * top.c: Update include path.
8833 * ser-base.c: Update include path.
8834 * ui-file.c: Update include path.
8835 * ser-tcp.c: Update include path.
8836 * guile/scm-ports.c: Update include path.
8837 * posix-hdep.c: Update include path.
8838 * ser-unix.c: Update include path.
8839 * gdb_usleep.c: Update include path.
8840 * mingw-hdep.c: Update include path.
8841 * inflow.c: Update include path.
8842 * infrun.c: Update include path.
8843 * event-top.c: Update include path.
8844
8845 2020-04-13 Tom Tromey <tom@tromey.com>
8846
8847 * configure: Rebuild.
8848 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
8849
8850 2020-04-13 Tom Tromey <tom@tromey.com>
8851
8852 * event-loop.h (start_event_loop): Don't declare.
8853 * event-loop.c (start_event_loop): Move...
8854 * main.c (start_event_loop): ...here. Now static.
8855
8856 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
8857
8858 * MAINTAINERS: Update my email address.
8859
8860 2020-04-12 Kamil Rytarowski <n54@gmx.com>
8861
8862 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
8863 IP_ALL.
8864
8865 2020-04-12 Kamil Rytarowski <n54@gmx.com>
8866
8867 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
8868 (nbsd_nat_target::info_proc): Add do_cmdline.
8869
8870 2020-04-12 Kamil Rytarowski <n54@gmx.com>
8871
8872 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
8873 (nbsd_nat_target::info_proc): Add do_cwd.
8874
8875 2020-04-12 Kamil Rytarowski <n54@gmx.com>
8876
8877 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
8878
8879 2020-04-11 Kamil Rytarowski <n54@gmx.com>
8880
8881 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
8882 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
8883 (nbsd_nat_target::info_proc): New functions.
8884 * nbsd-nat.c (kinfo_get_vmmap): New function.
8885 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
8886 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
8887 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
8888 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
8889 functions.
8890 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
8891 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
8892 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
8893 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
8894 (KINFO_VME_FLAG_GROWS_DOWN): New.
8895
8896 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
8897
8898 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
8899 bit shift.
8900
8901 2020-04-10 Tom Tromey <tromey@adacore.com>
8902
8903 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
8904
8905 2020-04-10 Tom Tromey <tromey@adacore.com>
8906
8907 * symtab.c (get_symbol_address, get_msymbol_address): Skip
8908 separate debug files.
8909
8910 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
8911
8912 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
8913 Move to...
8914 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
8915 ... here.
8916 * windows-nat.c (windows_nat_target::get_windows_debug_event):
8917 Check for STATUS_WX86_BREAKPOINT.
8918 (windows_nat_target::wait): Same.
8919
8920 2020-04-10 Tom de Vries <tdevries@suse.de>
8921
8922 PR cli/25808
8923 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
8924
8925 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
8926
8927 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
8928 (Write After Approval): Remove Tom de Vries.
8929
8930 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
8931
8932 revert partially:
8933 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8934
8935 * buildsym.c (record_line): Fix undefined behavior and preserve
8936 lines at eof.
8937
8938 2020-04-09 Kamil Rytarowski <n54@gmx.com>
8939
8940 * auxv.h (svr4_auxv_parse): New.
8941 * auxv.c (default_auxv_parse): Split into default_auxv_parse
8942 and generic_auxv_parse.
8943 (svr4_auxv_parse): Add.
8944 * obsd-tdep.c: Include "auxv.h".
8945 (obsd_auxv_parse): Remove.
8946 (obsd_init_abi): Remove comment.
8947 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
8948 from `obsd_auxv_parse' to `svr4_auxv_parse'.
8949 * nbsd-tdep.c: Include "auxv.h".
8950 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
8951
8952 2020-04-08 Tom Tromey <tromey@adacore.com>
8953
8954 * nat/windows-nat.h (last_wait_event): Don't declare.
8955 (wait_for_debug_event): Update comment.
8956 * nat/windows-nat.c (last_wait_event): Now static.
8957
8958 2020-04-08 Tom Tromey <tromey@adacore.com>
8959
8960 * windows-nat.c (wait_for_debug_event): Move to
8961 nat/windows-nat.c.
8962 * nat/windows-nat.h (wait_for_debug_event): Declare.
8963 * nat/windows-nat.c (wait_for_debug_event): Move from
8964 windows-nat.c. No longer static.
8965
8966 2020-04-08 Tom Tromey <tromey@adacore.com>
8967
8968 * windows-nat.c (get_windows_debug_event): Use
8969 fetch_pending_stop.
8970 * nat/windows-nat.h (fetch_pending_stop): Declare.
8971 * nat/windows-nat.c (fetch_pending_stop): New function.
8972
8973 2020-04-08 Tom Tromey <tromey@adacore.com>
8974
8975 * windows-nat.c (windows_continue): Use matching_pending_stop and
8976 continue_last_debug_event.
8977 * nat/windows-nat.h (matching_pending_stop)
8978 (continue_last_debug_event): Declare.
8979 * nat/windows-nat.c (DEBUG_EVENTS): New define.
8980 (matching_pending_stop, continue_last_debug_event): New
8981 functions.
8982
8983 2020-04-08 Tom Tromey <tromey@adacore.com>
8984
8985 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
8986 (handle_exception_result): Move to nat/windows-nat.h.
8987 (DEBUG_EXCEPTION_SIMPLE): Remove.
8988 (windows_nat::handle_ms_vc_exception): New function.
8989 (handle_exception): Move to nat/windows-nat.c.
8990 (get_windows_debug_event): Update.
8991 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
8992 nat/windows-nat.c.
8993 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
8994 (handle_exception_result): Move from windows-nat.c.
8995 (handle_exception): Declare.
8996 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
8997 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
8998 windows-nat.c.
8999
9000 2020-04-08 Tom Tromey <tromey@adacore.com>
9001
9002 * windows-nat.c (exception_count, event_count): Remove.
9003 (handle_exception, get_windows_debug_event)
9004 (do_initial_windows_stuff): Update.
9005
9006 2020-04-08 Tom Tromey <tromey@adacore.com>
9007
9008 * windows-nat.c (windows_nat::handle_load_dll)
9009 (windows_nat::handle_unload_dll): Rename. No longer static.
9010 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
9011 Declare.
9012
9013 2020-04-08 Tom Tromey <tromey@adacore.com>
9014
9015 * complaints.h (stop_whining): Declare at top-level.
9016 (complaint): Don't declare stop_whining.
9017
9018 2020-04-08 Tom Tromey <tromey@adacore.com>
9019
9020 * windows-nat.c (windows_nat::handle_output_debug_string):
9021 Rename. No longer static.
9022 * nat/windows-nat.h (handle_output_debug_string): Declare.
9023
9024 2020-04-08 Tom Tromey <tromey@adacore.com>
9025
9026 * windows-nat.c (current_process_handle, current_process_id)
9027 (main_thread_id, last_sig, current_event, last_wait_event)
9028 (current_windows_thread, desired_stop_thread_id, pending_stops)
9029 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
9030 (display_selectors, fake_create_process)
9031 (get_windows_debug_event): Update.
9032 * nat/windows-nat.h (current_process_handle, current_process_id)
9033 (main_thread_id, last_sig, current_event, last_wait_event)
9034 (current_windows_thread, desired_stop_thread_id, pending_stops)
9035 (struct pending_stop, siginfo_er): Move from windows-nat.c.
9036 * nat/windows-nat.c (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 (siginfo_er): New globals. Move from windows-nat.c.
9040
9041 2020-04-08 Tom Tromey <tromey@adacore.com>
9042
9043 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
9044 (handle_load_dll): Update.
9045 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
9046
9047 2020-04-08 Tom Tromey <tromey@adacore.com>
9048
9049 * windows-nat.c (enum thread_disposition_type): Move to
9050 nat/windows-nat.h.
9051 (windows_nat::thread_rec): Rename from thread_rec. No longer
9052 static.
9053 (windows_add_thread, windows_nat_target::fetch_registers)
9054 (windows_nat_target::store_registers, handle_exception)
9055 (windows_nat_target::resume, get_windows_debug_event)
9056 (windows_nat_target::get_tib_address)
9057 (windows_nat_target::thread_name)
9058 (windows_nat_target::thread_alive): Update.
9059 * nat/windows-nat.h (enum thread_disposition_type): Move from
9060 windows-nat.c.
9061 (thread_rec): Declare.
9062
9063 2020-04-08 Tom Tromey <tromey@adacore.com>
9064
9065 * windows-nat.c: Add "using namespace".
9066 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
9067 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
9068
9069 2020-04-08 Tom Tromey <tromey@adacore.com>
9070
9071 * nat/windows-nat.h (struct windows_thread_info): Declare
9072 destructor.
9073 * nat/windows-nat.c (~windows_thread_info): New.
9074
9075 2020-04-08 Tom Tromey <tromey@adacore.com>
9076
9077 PR gdb/22992
9078 * windows-nat.c (current_event): Update comment.
9079 (last_wait_event, desired_stop_thread_id): New globals.
9080 (struct pending_stop): New.
9081 (pending_stops): New global.
9082 (windows_nat_target) <stopped_by_sw_breakpoint>
9083 <supports_stopped_by_sw_breakpoint>: New methods.
9084 (windows_fetch_one_register): Add assertions. Adjust PC.
9085 (windows_continue): Handle pending stops. Suspend other threads
9086 when stepping. Use last_wait_event
9087 (wait_for_debug_event): New function.
9088 (get_windows_debug_event): Use wait_for_debug_event. Handle
9089 pending stops. Queue spurious stops.
9090 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
9091 (windows_nat_target::kill): Use wait_for_debug_event.
9092 * nat/windows-nat.h (struct windows_thread_info)
9093 <stopped_at_software_breakpoint>: New field.
9094 * nat/windows-nat.c (windows_thread_info::resume): Clear
9095 stopped_at_software_breakpoint.
9096
9097 2020-04-08 Tom Tromey <tromey@adacore.com>
9098
9099 * windows-nat.c (enum thread_disposition_type): New.
9100 (thread_rec): Replace "get_context" parameter with "disposition";
9101 change type.
9102 (windows_add_thread, windows_nat_target::fetch_registers)
9103 (windows_nat_target::store_registers, handle_exception)
9104 (windows_nat_target::resume, get_windows_debug_event)
9105 (windows_nat_target::get_tib_address)
9106 (windows_nat_target::thread_name)
9107 (windows_nat_target::thread_alive): Update.
9108
9109 2020-04-08 Tom Tromey <tromey@adacore.com>
9110
9111 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
9112 (windows_continue): Use windows_continue::resume.
9113 * nat/windows-nat.h (struct windows_thread_info) <suspend,
9114 resume>: Declare new methods.
9115 * nat/windows-nat.c: New file.
9116 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
9117
9118 2020-04-08 Tom Tromey <tromey@adacore.com>
9119
9120 * windows-nat.c (windows_add_thread, windows_delete_thread)
9121 (windows_nat_target::fetch_registers)
9122 (windows_nat_target::store_registers, fake_create_process)
9123 (windows_nat_target::resume, windows_nat_target::resume)
9124 (get_windows_debug_event, windows_nat_target::wait)
9125 (windows_nat_target::pid_to_str)
9126 (windows_nat_target::get_tib_address)
9127 (windows_nat_target::get_ada_task_ptid)
9128 (windows_nat_target::thread_name)
9129 (windows_nat_target::thread_alive): Use lwp, not tid.
9130
9131 2020-04-08 Tom Tromey <tromey@adacore.com>
9132
9133 * windows-nat.c (handle_exception)
9134 (windows_nat_target::thread_name): Update.
9135 * nat/windows-nat.h (windows_thread_info): Remove destructor.
9136 <name>: Now unique_xmalloc_ptr.
9137
9138 2020-04-08 Tom Tromey <tromey@adacore.com>
9139
9140 * windows-nat.c (thread_rec)
9141 (windows_nat_target::fetch_registers): Update.
9142 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
9143 Update comment.
9144 <debug_registers_changed, reload_context>: Now bool.
9145
9146 2020-04-08 Tom Tromey <tromey@adacore.com>
9147
9148 * windows-nat.c (windows_add_thread): Use new.
9149 (windows_init_thread_list, windows_delete_thread): Use delete.
9150 (get_windows_debug_event): Update.
9151 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
9152 destructor, and initializers.
9153
9154 2020-04-08 Tom Tromey <tromey@adacore.com>
9155
9156 * windows-nat.c (struct windows_thread_info): Remove.
9157 * nat/windows-nat.h: New file.
9158
9159 2020-04-08 Tom Tromey <tromey@adacore.com>
9160
9161 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
9162 (thread_rec, windows_add_thread, windows_delete_thread)
9163 (windows_continue): Update.
9164
9165 2020-04-08 Tom Tromey <tromey@adacore.com>
9166
9167 * windows-nat.c (struct windows_thread_info): Remove typedef.
9168 (thread_head): Remove.
9169 (thread_list): New global.
9170 (thread_rec, windows_add_thread, windows_init_thread_list)
9171 (windows_delete_thread, windows_continue): Update.
9172
9173 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
9174
9175 * windows-tdep.h (windows_init_abi): Add comment.
9176 (cygwin_init_abi): New declaration.
9177 * windows-tdep.c: Split signal enumeration in two, one for
9178 Windows and one for Cygwin.
9179 (windows_gdb_signal_to_target): Only deal with signal of the
9180 Windows OS ABI.
9181 (cygwin_gdb_signal_to_target): New function.
9182 (windows_init_abi): Rename to windows_init_abi_common, don't set
9183 gdb_signal_to_target gdbarch method. Add new new function with
9184 this name.
9185 (cygwin_init_abi): New function.
9186 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
9187 comment. Don't call windows_init_abi.
9188 (amd64_windows_init_abi): Add comment, call windows_init_abi.
9189 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
9190 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
9191 i386_windows_init_abi_common, don't call windows_init_abi. Add
9192 a new function of this name.
9193 (i386_cygwin_init_abi): New function.
9194 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
9195 OS ABI Cygwin.
9196
9197 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
9198
9199 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
9200 parameter.c.
9201 (dwarf2_read_gdb_index): Update.
9202
9203 2020-04-07 Kamil Rytarowski <n54@gmx.com>
9204
9205 * nbsd-tdep.c: Include "objfiles.h".
9206 (nbsd_skip_solib_resolver): New.
9207 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
9208
9209 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
9210
9211 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
9212 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
9213 with DW_LLE_base_addressx are being emitted in DWARFv5.
9214 Add the newly added kind DW_LOC_OFFSET_PAIR also.
9215 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
9216 unsigned integer.
9217
9218 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
9219
9220 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
9221 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
9222 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
9223 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
9224 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
9225 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
9226 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
9227
9228
9229 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
9230
9231 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
9232 (read_loclist_index): New function definition.
9233 (lookup_loclist_base): New function definition.
9234 (read_loclist_header): New function definition.
9235 (dwarf2_cu): Add loclist_base and loclist_header field.
9236 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
9237 (read_full_die_1): Read the value of DW_AT_loclists_base.
9238 (read_attribute_reprocess): Handle DW_FORM_loclistx.
9239 (read_attribute_value): Handle DW_FORM_loclistx.
9240 (skip_one_die): Handle DW_FORM_loclistx.
9241 (loclist_header): New structure declaration.
9242 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
9243
9244 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9245
9246 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
9247 constructor. Remove `addr` parameter from other constructor and
9248 add `per_cu` parameter.
9249 * dwarf2/read.c (create_partial_symtab): Update.
9250
9251 2020-04-07 Tom de Vries <tdevries@suse.de>
9252
9253 PR symtab/25796
9254 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
9255 (partial_die_info::fixup): Inherit has_const_value.
9256
9257 2020-04-07 Tom de Vries <tdevries@suse.de>
9258
9259 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
9260 symbols without address.
9261
9262 2020-04-06 Kamil Rytarowski <n54@gmx.com>
9263
9264 * nbsd-nat.h (struct thread_info): Add forward declaration.
9265 (nbsd_nat_target::thread_alive): Add.
9266 (nbsd_nat_target::thread_name): Likewise.
9267 (nbsd_nat_target::update_thread_list): Likewise.
9268 (update_thread_list::post_attach): Likewise.
9269 (post_attach::pid_to_str): Likewise.
9270 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
9271 (nbsd_thread_lister): Add.
9272 (nbsd_nat_target::thread_alive): Likewise.
9273 (nbsd_nat_target::thread_name): Likewise.
9274 (nbsd_add_threads): Likewise.
9275 (update_thread_list::post_attach): Likewise.
9276 (nbsd_nat_target::update_thread_list): Likewise.
9277 (post_attach::pid_to_str): Likewise.
9278
9279 2020-04-06 Tom Tromey <tromey@adacore.com>
9280
9281 * ada-valprint.c (print_variant_part): Extract the variant field.
9282 (print_field_values): Use the field as the outer value when
9283 recursing.
9284
9285 2020-04-06 Tom Tromey <tromey@adacore.com>
9286
9287 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
9288 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
9289 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
9290 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
9291 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
9292
9293 2020-04-06 Tom Tromey <tromey@adacore.com>
9294
9295 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
9296 TYPE_CODE_ERROR.
9297
9298 2020-04-06 Kamil Rytarowski <n54@gmx.com>
9299
9300 * nbsd-tdep.c: Include "gdbarch.h".
9301 Define enum with NetBSD signal numbers.
9302 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
9303 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
9304 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
9305 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
9306 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
9307 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
9308 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
9309 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
9310 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
9311 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
9312 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
9313 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
9314
9315 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
9316
9317 PR gdb/25325
9318 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
9319
9320 2020-04-03 Tom Tromey <tromey@adacore.com>
9321
9322 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
9323 Read constant block.
9324
9325 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
9326
9327 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
9328 (gdb_bfd_get_full_section_contents): New declaration.
9329 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
9330 * windows-tdep.c (is_linked_with_cygwin_dll): Use
9331 gdb_bfd_get_full_section_contents.
9332
9333 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
9334
9335 * exec.c (build_section_table): Replace internal_error with
9336 gdb_assert.
9337 (section_table_xfer_memory_partial): Likewise.
9338 * mdebugread.c (parse_partial_symbols): Likewise.
9339 * psymtab.c (lookup_partial_symbol): Likewise.
9340 * utils.c (wrap_here): Likewise.
9341
9342 2020-04-02 Tom Tromey <tromey@adacore.com>
9343
9344 * f-lang.c (build_fortran_types): Use arch_type to initialize
9345 builtin_complex_s32 in the TYPE_CODE_ERROR case.
9346
9347 2020-04-02 Tom Tromey <tromey@adacore.com>
9348
9349 * dwarf2/read.c (partial_die_info::read): Do not create a vector
9350 of attributes.
9351
9352 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
9353 Bernd Edlinger <bernd.edlinger@hotmail.de>
9354 Tom Tromey <tromey@adacore.com>
9355
9356 * buildsym.c (buildsym_compunit::record_line): Remove
9357 deduplication code.
9358
9359 2020-04-02 Tom de Vries <tdevries@suse.de>
9360
9361 PR ada/24671
9362 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
9363
9364 2020-04-02 Tom de Vries <tdevries@suse.de>
9365
9366 * dwarf2/read.c (dwarf2_gdb_index_functions,
9367 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
9368 NULL.
9369 * psymtab.c (psym_lookup_global_symbol_language): New function.
9370 (psym_functions): Init psym_lookup_global_symbol_language with
9371 psym_lookup_global_symbol_language.
9372 * symfile-debug.c (debug_sym_quick_functions): Init
9373 lookup_global_symbol_language with NULL.
9374 * symfile.c (set_initial_language): Remove fixme comment.
9375 * symfile.h (struct quick_symbol_functions): Add
9376 lookup_global_symbol_language.
9377 * symtab.c (find_quick_global_symbol_language): New function.
9378 (find_main_name): Use find_quick_global_symbol_language.
9379
9380 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
9381
9382 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
9383
9384 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
9385
9386 * buildsym.c (record_line): Fix undefined behavior and preserve
9387 lines at eof.
9388
9389 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
9390
9391 * buildsym.c (record_line): Fix the resizing condition.
9392
9393 2020-04-01 Tom Tromey <tom@tromey.com>
9394
9395 * value.h (value_literal_complex): Add comment.
9396 * valops.c (value_literal_complex): Refer to value.h.
9397
9398 2020-04-01 Tom Tromey <tom@tromey.com>
9399
9400 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
9401 (scalar_type): New rule, from typebase.
9402 (typebase): Use scalar_type. Recognize complex types.
9403 (field_name): Handle FLOAT_KEYWORD.
9404 (ident_tokens): Add _Complex and __complex__.
9405
9406 2020-04-01 Tom Tromey <tom@tromey.com>
9407
9408 PR exp/25299:
9409 * valarith.c (promotion_type, complex_binop): New functions.
9410 (scalar_binop): Handle complex numbers. Use promotion_type.
9411 (value_pos, value_neg, value_complement): Handle complex numbers.
9412
9413 2020-04-01 Tom Tromey <tom@tromey.com>
9414
9415 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
9416 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
9417 (parse_number): Handle complex numbers.
9418
9419 2020-04-01 Tom Tromey <tom@tromey.com>
9420
9421 * c-valprint.c (c_decorations): Change complex suffix to "i".
9422
9423 2020-04-01 Tom Tromey <tom@tromey.com>
9424
9425 * valprint.c (generic_value_print_complex): Use accessors.
9426 * value.h (value_real_part, value_imaginary_part): Declare.
9427 * valops.c (value_real_part, value_imaginary_part): New
9428 functions.
9429 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
9430
9431 2020-04-01 Tom Tromey <tom@tromey.com>
9432
9433 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
9434 (read_range_type): Update.
9435 * mdebugread.c (basic_type): Update.
9436 * go-lang.c (build_go_types): Use init_complex_type.
9437 * gdbtypes.h (struct main_type) <complex_type>: New member.
9438 (init_complex_type): Update.
9439 (arch_complex_type): Don't declare.
9440 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
9441 Make name if none given. Use alloc_type_copy. Look for cached
9442 complex type.
9443 (arch_complex_type): Remove.
9444 (gdbtypes_post_init): Use init_complex_type.
9445 * f-lang.c (build_fortran_types): Use init_complex_type.
9446 * dwarf2/read.c (read_base_type): Update.
9447 * d-lang.c (build_d_types): Use init_complex_type.
9448 * ctfread.c (read_base_type): Update.
9449
9450 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9451
9452 * infrun.c (stop_all_threads): Update assertion, plus when
9453 stopping threads, take into account that we might be trying
9454 to stop an all-stop target.
9455 (stop_waiting): Call 'stop_all_threads' if there exists a
9456 non-stop target.
9457
9458 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9459
9460 * target.h (exists_non_stop_target): New function declaration.
9461 * target.c (exists_non_stop_target): New function.
9462
9463 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
9464
9465 PR gdb/24789
9466 * eval.c (is_integral_or_integral_reference): New function.
9467 (evaluate_subexp_standard): Allow integer references in
9468 pointer arithmetic.
9469
9470 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9471
9472 * remote.c (remote_target::remote_parse_stop_reply): Remove the
9473 check for no ptid in the stop reply when the target is non-stop.
9474
9475 2020-04-01 Tom Tromey <tromey@adacore.com>
9476
9477 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
9478 "name" parameter to rvalue reference. Initialize m_name_holder.
9479 <lookup_name_info>: New overloads.
9480 <name>: Return gdb::string_view.
9481 <c_str>: New method.
9482 <make_ignore_params>: Update.
9483 <search_name_hash>: Update.
9484 <language_lookup_name>: Return const char *.
9485 <m_name>: Change type.
9486 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
9487 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
9488 (lookup_name_info::match_any): Update.
9489 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
9490 Update.
9491 * minsyms.c (linkage_name_str): Update.
9492 * language.c (default_symbol_name_matcher): Update.
9493 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
9494 Update.
9495 * ada-lang.c (ada_fold_name): Change parameter to string_view.
9496 (ada_lookup_name_info::ada_lookup_name_info): Update.
9497 (literal_symbol_name_matcher): Update.
9498
9499 2020-04-01 Tom Tromey <tromey@adacore.com>
9500
9501 * psymtab.c (psymtab_search_name): Remove function.
9502 (psym_lookup_symbol): Create search name and lookup name here.
9503 (lookup_partial_symbol): Remove "name" parameter; add
9504 lookup_name.
9505 (psym_expand_symtabs_for_function): Update.
9506
9507 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
9508
9509 PR tui/25597:
9510 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
9511
9512 2020-03-31 Tom Tromey <tromey@adacore.com>
9513
9514 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
9515 memcpy.
9516
9517 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
9518
9519 * features/riscv/32bit-csr.xml: Regenerated.
9520 * features/riscv/64bit-csr.xml: Regenerated.
9521
9522 2020-03-30 Tom Tromey <tromey@adacore.com>
9523
9524 * ada-valprint.c (print_variant_part): Update.
9525 * ada-lang.h (ada_which_variant_applies): Update.
9526 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
9527 outer_valaddr parameters; replace with "outer" value parameter.
9528 (to_fixed_variant_branch_type): Update.
9529
9530 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9531
9532 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
9533 <list>. Remove inclusion of observable.h.
9534 (PPC_DEBUG_CURRENT_VERSION): Move up define.
9535 (struct arch_lwp_info): New struct.
9536 (class ppc_linux_dreg_interface): New class.
9537 (struct ppc_linux_process_info): New struct.
9538 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
9539 <low_new_clone, low_forget_process, low_prepare_to_resume>
9540 <copy_thread_dreg_state, mark_thread_stale>
9541 <mark_debug_registers_changed, register_hw_breakpoint>
9542 <clear_hw_breakpoint, register_wp, clear_wp>
9543 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
9544 <num_memory_accesses, get_trigger_type>
9545 <create_watchpoint_request, hwdebug_point_cmp>
9546 <init_arch_lwp_info, get_arch_lwp_info>
9547 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
9548 methods.
9549 <struct ptid_hash>: New inner struct.
9550 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
9551 members.
9552 (saved_dabr_value, hwdebug_info, max_slots_number)
9553 (struct hw_break_tuple, struct thread_points, ppc_threads)
9554 (have_ptrace_hwdebug_interface)
9555 (hwdebug_find_thread_points_by_tid)
9556 (hwdebug_insert_point, hwdebug_remove_point): Remove.
9557 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
9558 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
9559 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
9560 use m_dreg_interface.
9561 (hwdebug_point_cmp): Change to...
9562 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
9563 reference arguments instead of pointers.
9564 (ppc_linux_nat_target::ranged_break_num_registers): Use
9565 m_dreg_interface.
9566 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
9567 m_dreg_interface. Call register_hw_breakpoint.
9568 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
9569 m_dreg_interface. Call clear_hw_breakpoint.
9570 (get_trigger_type): Change to...
9571 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
9572 comment.
9573 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
9574 use m_dreg_interface. Call register_hw_breakpoint.
9575 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
9576 use m_dreg_interface. Call clear_hw_breakpoint.
9577 (can_use_watchpoint_cond_accel): Change to...
9578 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
9579 method. Update comment, use m_dreg_interface and
9580 m_process_info.
9581 (calculate_dvc): Change to...
9582 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
9583 m_dreg_interface.
9584 (num_memory_accesses): Change to...
9585 (ppc_linux_nat_target::num_memory_accesses): ...this method.
9586 (check_condition): Change to...
9587 (ppc_linux_nat_target::check_condition): ...this method.
9588 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
9589 comment, use m_dreg_interface.
9590 (create_watchpoint_request): Change to...
9591 (ppc_linux_nat_target::create_watchpoint_request): ...this
9592 method. Use m_dreg_interface.
9593 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
9594 m_dreg_interface. Call register_hw_breakpoint or register_wp.
9595 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
9596 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
9597 (ppc_linux_nat_target::low_forget_process)
9598 (ppc_linux_nat_target::low_new_fork)
9599 (ppc_linux_nat_target::low_new_clone)
9600 (ppc_linux_nat_target::low_delete_thread)
9601 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
9602 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
9603 only call mark_thread_stale.
9604 (ppc_linux_thread_exit): Remove.
9605 (ppc_linux_nat_target::stopped_data_address): Change to...
9606 (ppc_linux_nat_target::low_stopped_data_address): This. Add
9607 comment, use m_dreg_interface and m_thread_hw_breakpoints.
9608 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
9609 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
9610 comment. Call low_stopped_data_address.
9611 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
9612 m_dreg_interface.
9613 (ppc_linux_nat_target::masked_watch_num_registers): Use
9614 m_dreg_interface.
9615 (ppc_linux_nat_target::copy_thread_dreg_state)
9616 (ppc_linux_nat_target::mark_thread_stale)
9617 (ppc_linux_nat_target::mark_debug_registers_changed)
9618 (ppc_linux_nat_target::register_hw_breakpoint)
9619 (ppc_linux_nat_target::clear_hw_breakpoint)
9620 (ppc_linux_nat_target::register_wp)
9621 (ppc_linux_nat_target::clear_wp)
9622 (ppc_linux_nat_target::init_arch_lwp_info)
9623 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
9624 (_initialize_ppc_linux_nat): Remove observer callback.
9625
9626 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9627
9628 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
9629 (ppc_linux_nat_target::auxv_parse)
9630 (ppc_linux_nat_target::read_description)
9631 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
9632 Move up.
9633
9634 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9635
9636 * linux-nat.h (low_new_clone): New method.
9637 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
9638
9639 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9640
9641 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
9642 (dbx_expand_psymtab): ... this.
9643 (start_psymtab): Update.
9644 * mdebugread.c (psymtab_to_symtab_1): Rename to...
9645 (mdebug_expand_psymtab): ... this.
9646 (parse_partial_symbols): Update.
9647 (new_psymtab): Update.
9648 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
9649 (xcoff_expand_psymtab): ... this.
9650 (xcoff_start_psymtab): Update.
9651
9652 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9653
9654 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
9655 <expand_dependencies>: ... this.
9656 * psymtab.c (partial_symtab::read_dependencies): Rename to...
9657 (partial_symtab::expand_dependencies): ... this.
9658 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
9659 Update.
9660 (dwarf2_psymtab::expand_psymtab): Update.
9661 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
9662 * mdebugread.c (psymtab_to_symtab_1): Update.
9663 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
9664
9665 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9666
9667 * psympriv.h (discard_psymtab): Remove.
9668 * dbxread.c (dbx_end_psymtab): Update.
9669 * xcoffread.c (xcoff_end_psymtab): Update.
9670
9671 2020-03-28 Tom Tromey <tom@tromey.com>
9672
9673 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
9674 comment.
9675
9676 2020-03-28 Tom Tromey <tom@tromey.com>
9677
9678 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
9679
9680 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
9681
9682 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
9683
9684 2020-03-26 John Baldwin <jhb@FreeBSD.org>
9685
9686 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
9687
9688 2020-03-26 Tom Tromey <tom@tromey.com>
9689
9690 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
9691 (mark_common_block_symbol_computed, read_tag_string_type)
9692 (attr_to_dynamic_prop, read_subrange_type): Update.
9693 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
9694 to be methods on struct attribute.
9695 (skip_one_die, process_imported_unit_die, read_namespace_alias)
9696 (read_call_site_scope, partial_die_info::read)
9697 (partial_die_info::read, lookup_die_type, follow_die_ref):
9698 Update.
9699 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
9700 from dwarf2_get_ref_die_offset.
9701 (attribute::constant_value): New method, from
9702 dwarf2_get_attr_constant_value.
9703 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
9704 Declare method.
9705 <constant_value>: New method.
9706
9707 2020-03-26 Tom Tromey <tom@tromey.com>
9708
9709 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
9710 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
9711 (dwarf_type_encoding_name): Move to stringify.c.
9712 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
9713 * dwarf2/stringify.c: New file.
9714 * dwarf2/stringify.h: New file.
9715
9716 2020-03-26 Tom Tromey <tom@tromey.com>
9717
9718 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
9719 Rewrite.
9720
9721 2020-03-26 Tom Tromey <tom@tromey.com>
9722
9723 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
9724 methods.
9725 * dwarf2/read.c (lookup_addr_base): Move to die.h.
9726 (lookup_ranges_base): Likewise.
9727 (read_cutu_die_from_dwo, read_full_die_1): Update.
9728
9729 2020-03-26 Tom Tromey <tom@tromey.com>
9730
9731 * dwarf2/read.c (read_import_statement, read_file_scope)
9732 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
9733 (read_lexical_block_scope, read_call_site_scope)
9734 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
9735 (handle_struct_member_die, process_structure_scope)
9736 (update_enumeration_type_from_children)
9737 (process_enumeration_scope, read_array_type, read_common_block)
9738 (read_namespace, read_module, read_subroutine_type): Update.
9739 (sibling_die): Remove.
9740
9741 2020-03-26 Tom Tromey <tom@tromey.com>
9742
9743 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
9744 (build_type_psymtabs_reader, read_structure_type)
9745 (read_enumeration_type, read_full_die_1): Update.
9746 (dwarf2_attr_no_follow): Move to die.h.
9747 * dwarf2/die.h (struct die_info) <attr>: New method.
9748
9749 2020-03-26 Tom Tromey <tom@tromey.com>
9750
9751 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
9752 <base_address>: Now an optional.
9753 (dwarf2_find_base_address, dwarf2_rnglists_process)
9754 (dwarf2_ranges_process, fill_in_loclist_baton)
9755 (dwarf2_symbol_mark_computed): Update.
9756
9757 2020-03-26 Tom Tromey <tom@tromey.com>
9758
9759 * dwarf2/read.c (struct die_info): Move to die.h.
9760 * dwarf2/die.h: New file.
9761
9762 2020-03-26 Tom Tromey <tom@tromey.com>
9763
9764 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
9765 * dwarf2/read.c
9766 (dwarf2_statement_list_fits_in_line_number_section_complaint):
9767 Move to line-header.c.
9768 (read_checked_initial_length_and_offset, read_formatted_entries):
9769 Likewise.
9770 (dwarf_decode_line_header): Split into two.
9771 * dwarf2/line-header.c
9772 (dwarf2_statement_list_fits_in_line_number_section_complaint):
9773 Move from read.c.
9774 (read_checked_initial_length_and_offset, read_formatted_entries):
9775 Likewise.
9776 (dwarf_decode_line_header): New function, split from read.c.
9777
9778 2020-03-26 Tom Tromey <tom@tromey.com>
9779
9780 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
9781 Declare method.
9782 * dwarf2/read.c (read_attribute_value): Update.
9783 (dwarf2_per_objfile::read_line_string): Rename from
9784 read_indirect_line_string.
9785 (read_formatted_entries): Update.
9786
9787 2020-03-26 Tom Tromey <tom@tromey.com>
9788
9789 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
9790 variable.
9791
9792 2020-03-26 Tom Tromey <tom@tromey.com>
9793
9794 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
9795 const.
9796 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
9797 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
9798 parameter const.
9799
9800 2020-03-26 Tom Tromey <tom@tromey.com>
9801
9802 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
9803 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
9804 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
9805 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
9806
9807 2020-03-26 Tom Tromey <tom@tromey.com>
9808
9809 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
9810 file_names_size, file_full_name, file_file_name>: Use const.
9811 <file_name_at, file_names>: Add const overload.
9812 * dwarf2/line-header.c (line_header::file_file_name)
9813 (line_header::file_full_name): Update.
9814
9815 2020-03-26 Tom Tromey <tom@tromey.com>
9816
9817 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
9818 (macro_start_file, consume_improper_spaces)
9819 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
9820 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
9821 (dwarf_decode_macros): Move to macro.c.
9822 * dwarf2/macro.c: New file.
9823 * dwarf2/macro.h: New file.
9824 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
9825
9826 2020-03-26 Tom Tromey <tom@tromey.com>
9827
9828 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
9829 method.
9830 * dwarf2/section.c: New method. From
9831 read_indirect_string_at_offset_from.
9832 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
9833 (read_indirect_string_at_offset_from): Move to section.c.
9834 (read_indirect_string_at_offset): Rewrite.
9835 (read_indirect_line_string_at_offset): Remove.
9836 (read_indirect_string, read_indirect_line_string)
9837 (dwarf_decode_macro_bytes): Update.
9838
9839 2020-03-26 Tom Tromey <tom@tromey.com>
9840
9841 * dwarf2/section.h (struct dwarf2_section_info)
9842 <overload_complaint>: Declare.
9843 (dwarf2_section_buffer_overflow_complaint): Don't declare.
9844 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
9845 Rename from dwarf2_section_buffer_overflow_complaint.
9846 * dwarf2/read.c (skip_one_die, partial_die_info::read)
9847 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
9848
9849 2020-03-26 Tom Tromey <tom@tromey.com>
9850
9851 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
9852 Declare.
9853 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
9854 Move from read.c.
9855 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
9856 to section.c.
9857
9858 2020-03-26 Tom Tromey <tom@tromey.com>
9859
9860 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
9861
9862 2020-03-26 Tom Tromey <tom@tromey.com>
9863
9864 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
9865 "builder".
9866 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
9867 parameter.
9868 (dwarf_decode_macros): Update.
9869
9870 2020-03-26 Tom Tromey <tom@tromey.com>
9871
9872 * dwarf2/read.c (read_attribute_value): Update.
9873 (read_indirect_string_from_dwz): Move to dwz.c; change into
9874 method.
9875 (dwarf_decode_macro_bytes): Update.
9876 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
9877 * dwarf2/dwz.c: New file.
9878 * Makefile.in (COMMON_SFILES): Add dwz.c.
9879
9880 2020-03-26 Tom Tromey <tom@tromey.com>
9881
9882 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
9883 * dwarf2/read.c: Add include.
9884 * dwarf2/index-write.c: Add include.
9885 * dwarf2/index-cache.c: Add include.
9886 * dwarf2/dwz.h: New file.
9887
9888 2020-03-25 Tom Tromey <tom@tromey.com>
9889
9890 * compile/compile-object-load.c (get_out_value_type): Mention
9891 correct symbol name in error message.
9892
9893 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
9894
9895 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
9896
9897 2020-03-25 Tom de Vries <tdevries@suse.de>
9898
9899 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
9900 * symmisc.c (dump_symtab_1): Print user and includes fields.
9901 (maintenance_info_symtabs): Same.
9902
9903 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
9904
9905 PR gdb/25534
9906 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
9907 (riscv_regcache_cooked_write): New function.
9908 (riscv_push_dummy_call): Use new function.
9909 (riscv_return_value): Likewise.
9910
9911 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
9912
9913 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
9914 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
9915 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
9916 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
9917 * infrun.c (follow_fork): Likewise.
9918 (follow_fork_inferior): Likewise.
9919 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
9920 * linux-nat.h (class linux_nat_target): Likewise.
9921 * remote.c (class remote_target) <follow_fork>: Likewise.
9922 (remote_target::follow_fork): Likewise.
9923 * target-delegates.c: Re-generate.
9924 * target.c (default_follow_fork): Likewise.
9925 (target_follow_fork): Likewise.
9926 * target.h (struct target_ops) <follow_fork>: Likewise.
9927 (target_follow_fork): Likewise.
9928
9929 2020-03-24 Tom de Vries <tdevries@suse.de>
9930
9931 * psymtab.c (maintenance_info_psymtabs): Print user field.
9932
9933 2020-03-20 Tom Tromey <tromey@adacore.com>
9934
9935 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
9936 const.
9937 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
9938 const.
9939
9940 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
9941
9942 * ptrace.m4: Don't check for ptrace declaration.
9943 * config.in: Re-generate.
9944 * configure: Re-generate.
9945 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
9946 not defined.
9947
9948 2020-03-20 Kamil Rytarowski <n54@gmx.com>
9949
9950 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
9951 `PTRACE_TYPE_RET'.
9952 * i386-bsd-nat.c (gdb_ptrace): Likewise.
9953 * sparc-nat.c (gdb_ptrace): Likewise.
9954 * x86-bsd-nat.c (gdb_ptrace): Likewise.
9955
9956 2020-03-20 Tom Tromey <tromey@adacore.com>
9957
9958 * c-exp.y (lex_one_token): Fix assert.
9959
9960 2020-03-20 Tom Tromey <tromey@adacore.com>
9961
9962 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
9963 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
9964 strncpy call.
9965
9966 2020-03-20 Tom Tromey <tromey@adacore.com>
9967
9968 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
9969
9970 2020-03-20 Tom Tromey <tromey@adacore.com>
9971
9972 * ada-valprint.c (print_variant_part): Remove parameters; switch
9973 to value-based API.
9974 (print_field_values): Likewise.
9975 (ada_val_print_struct_union): Likewise.
9976 (ada_value_print_1): Update.
9977
9978 2020-03-20 Kamil Rytarowski <n54@gmx.com>
9979
9980 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
9981 nbsd_nat_target instead of inf_ptrace_target.
9982 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9983 nbsd_nat_target.
9984
9985 2020-03-20 Kamil Rytarowski <n54@gmx.com>
9986
9987 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
9988 it to the ptrace call.
9989 * (store_registers): Likewise.
9990
9991 2020-03-20 Kamil Rytarowski <n54@gmx.com>
9992
9993 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
9994 it to the ptrace call.
9995 * (store_registers): Likewise.
9996
9997 2020-03-19 Luis Machado <luis.machado@linaro.org>
9998
9999 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
10000 valid, fetch vg value from ptrace.
10001
10002 2020-03-19 Kamil Rytarowski <n54@gmx.com>
10003 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
10004 * inf-ptrace.c: Likewise.
10005 * (gdb_ptrace): Add.
10006 * (inf_ptrace_target::resume): Update.
10007 * (inf_ptrace_target::xfer_partial): Likewise.
10008 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
10009 * (inf_ptrace_peek_poke): Update.
10010
10011 2020-03-19 Kamil Rytarowski <n54@gmx.com>
10012
10013 * x86-bsd-nat.c (gdb_ptrace): New.
10014 * (x86bsd_dr_set): Add new argument `ptid'.
10015 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
10016 x86bsd_dr_set_addr): Update.
10017
10018 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
10019
10020 * remote.c (remote_target::process_stop_reply): Handle events for
10021 all threads differently.
10022
10023 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
10024
10025 * completer.c (completion_tracker::remove_completion): Define new
10026 function.
10027 * completer.h (completion_tracker::remove_completion): Declare new
10028 function.
10029 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
10030 when adding a C++ function symbol.
10031
10032 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
10033
10034 * completer.c (completion_tracker::completion_hash_entry): Define
10035 new class.
10036 (advance_to_filename_complete_word_point): Call
10037 recompute_lowest_common_denominator.
10038 (completion_tracker::completion_tracker): Call discard_completions
10039 to setup the hash table.
10040 (completion_tracker::discard_completions): Allow for being called
10041 from the constructor, pass new equal function, and element deleter
10042 when constructing the hash table. Initialise new class member
10043 variables.
10044 (completion_tracker::maybe_add_completion): Remove use of
10045 m_entries_vec, and store more information into m_entries_hash.
10046 (completion_tracker::recompute_lcd_visitor): New function, most
10047 content taken from...
10048 (completion_tracker::recompute_lowest_common_denominator):
10049 ...here, this now just visits each item in the hash calling the
10050 above visitor.
10051 (completion_tracker::build_completion_result): Remove use of
10052 m_entries_vec, call recompute_lowest_common_denominator.
10053 * completer.h (completion_tracker::have_completions): Remove use
10054 of m_entries_vec.
10055 (completion_tracker::completion_hash_entry): Declare new class.
10056 (completion_tracker::recompute_lowest_common_denominator): Change
10057 function signature.
10058 (completion_tracker::recompute_lcd_visitor): Declare new function.
10059 (completion_tracker::m_entries_vec): Delete.
10060 (completion_tracker::m_entries_hash): Initialize to NULL.
10061 (completion_tracker::m_lowest_common_denominator_valid): New
10062 member variable.
10063 (completion_tracker::m_lowest_common_denominator_max_length): New
10064 member variable.
10065
10066 2020-03-17 Kamil Rytarowski <n54@gmx.com>
10067
10068 * regformats/regdef.h: Put reg in gdb namespace.
10069
10070 2020-03-17 Kamil Rytarowski <n54@gmx.com>
10071
10072 * i386-bsd-nat.c (gdb_ptrace): New.
10073 * (i386bsd_fetch_inferior_registers,
10074 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
10075 * (i386bsd_fetch_inferior_registers,
10076 i386bsd_store_inferior_registers) Use gdb_ptrace.
10077
10078 2020-03-17 Kamil Rytarowski <n54@gmx.com>
10079
10080 * amd64-bsd-nat.c (gdb_ptrace): New.
10081 * (amd64bsd_fetch_inferior_registers,
10082 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
10083 * (amd64bsd_fetch_inferior_registers,
10084 amd64bsd_store_inferior_registers) Use gdb_ptrace.
10085
10086 2020-03-17 Kamil Rytarowski <n54@gmx.com>
10087
10088 * user-regs.c (user_reg::read): Rename to...
10089 (user_reg::xread): ...this.
10090 * (append_user_reg): Rename argument `read' to `xread'.
10091 * (user_reg_add_builtin): Likewise.
10092 * (user_reg_add): Likewise.
10093 * (value_of_user_reg): Likewise.
10094
10095 2020-03-17 Kamil Rytarowski <n54@gmx.com>
10096
10097 * sparc-nat.c (gdb_ptrace): New.
10098 * sparc-nat.c (sparc_fetch_inferior_registers)
10099 (sparc_store_inferior_registers) Remove obsolete comment.
10100 * sparc-nat.c (sparc_fetch_inferior_registers)
10101 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
10102 * sparc-nat.c (sparc_fetch_inferior_registers)
10103 (sparc_store_inferior_registers) Use gdb_ptrace.
10104
10105 2020-03-17 Kamil Rytarowski <n54@gmx.com>
10106
10107 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
10108 it to the ptrace call.
10109 * sh-nbsd-nat.c (store_registers): Likewise.
10110
10111 2020-03-17 Kamil Rytarowski <n54@gmx.com>
10112
10113 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
10114 nbsd_nat_target instead of inf_ptrace_target.
10115 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
10116 nbsd_nat_target.
10117
10118 2020-03-17 Kamil Rytarowski <n54@gmx.com>
10119
10120 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
10121
10122 2020-03-17 Kamil Rytarowski <n54@gmx.com>
10123
10124 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
10125 <sys/sysctl.h>.
10126 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
10127
10128 2020-03-17 Tom de Vries <tdevries@suse.de>
10129
10130 PR gdb/23710
10131 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
10132 fields.
10133 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
10134 fields.
10135 (process_imported_unit_die): Skip import of c++ CUs.
10136
10137 2020-03-16 Tom Tromey <tom@tromey.com>
10138
10139 * p-valprint.c (pascal_object_print_value): Initialize
10140 base_value.
10141
10142 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
10143 Shahab Vahedi <shahab@synopsys.com>
10144
10145 * Makefile.in: Add arch/arc.o
10146 * configure.tgt: Likewise.
10147 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
10148 (_initialize_arc_tdep): Don't initialize old target descriptions.
10149 (arc_read_description): New function to cache target descriptions.
10150 * arc-tdep.h (arc_read_description): Add proto type.
10151 * arch/arc.c: New file.
10152 * arch/arc.h: Likewise.
10153 * features/Makefile: Replace old target descriptions with new.
10154 * features/arc-arcompact.c: Remove.
10155 * features/arc-arcompact.xml: Likewise.
10156 * features/arc-v2.c: Likewise
10157 * features/arc-v2.xml: Likewise
10158 * features/arc/aux-arcompact.xml: New file.
10159 * features/arc/aux-v2.xml: Likewise.
10160 * features/arc/core-arcompact.xml: Likewise.
10161 * features/arc/core-v2.xml: Likewise.
10162 * features/arc/aux-arcompact.c: Generate.
10163 * features/arc/aux-v2.c: Likewise.
10164 * features/arc/core-arcompact.c: Likewise.
10165 * features/arc/core-v2.c: Likewise.
10166 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
10167
10168 2020-03-16 Tom Tromey <tromey@adacore.com>
10169
10170 PR gdb/25663:
10171 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
10172 putting value into bcache.
10173
10174 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
10175
10176 PR gdb/21500
10177 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
10178 to...
10179 (amd64_windows_init_abi_common): ... this. Don't set size of
10180 long type.
10181 (amd64_windows_init_abi): New function.
10182 (amd64_cygwin_init_abi): New function.
10183 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
10184 the Cygwin OS ABI.
10185 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
10186 comment.
10187
10188 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
10189
10190 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
10191 * windows-tdep.c (CYGWIN_DLL_NAME): New.
10192 (pe_import_directory_entry): New struct type.
10193 (is_linked_with_cygwin_dll): New function.
10194 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
10195 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
10196 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
10197
10198 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
10199
10200 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
10201 i386_cygwin_core_osabi_sniffer.
10202
10203 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
10204
10205 * i386-cygwin-tdep.c: Rename to...
10206 * i386-windows-tdep.c: ... this.
10207 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
10208 i386-windows-tdep.c.
10209 * configure.tgt: Likewise.
10210
10211 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
10212
10213 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
10214 * osabi.c (gdb_osabi_names): Add "Windows".
10215 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
10216 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
10217 (i386_cygwin_core_osabi_sniffer): New function, extracted from
10218 i386_cygwin_osabi_sniffer.
10219 (_initialize_i386_cygwin_tdep): Register OS ABI
10220 GDB_OSABI_WINDOWS for i386.
10221 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
10222 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
10223 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
10224 for x86-64.
10225 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
10226 when the target matches '*-*-mingw*'.
10227
10228 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
10229
10230 * defs.h (enum gdb_osabi): Move to...
10231 * osabi.h (enum gdb_osabi): ... here.
10232 * gdbarch.sh: Include osabi.h in gdbarch.h.
10233 * gdbarch.h: Re-generate.
10234
10235 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
10236
10237 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
10238 function.
10239 (_initialize_amd64_windows_tdep): Register osabi sniffer.
10240
10241 2020-03-14 Tom Tromey <tom@tromey.com>
10242
10243 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
10244 for C++.
10245 (c_type_print_modifier): Likewise. Add "language" parameter.
10246 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
10247 (c_type_print_base_1): Update.
10248 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
10249 constants.
10250 * type-stack.c (type_stack::insert): Handle tp_atomic and
10251 tp_restrict.
10252 (type_stack::follow_type_instance_flags): Likewise.
10253 (type_stack::follow_types): Likewise. Merge type-following code.
10254 * c-exp.y (RESTRICT, ATOMIC): New tokens.
10255 (space_identifier, cv_with_space_id)
10256 (const_or_volatile_or_space_identifier_noopt)
10257 (const_or_volatile_or_space_identifier): Remove.
10258 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
10259 rules.
10260 (ptr_operator, typebase): Update.
10261 (enum token_flag) <FLAG_C>: New constant.
10262 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
10263 "_Atomic".
10264 (lex_one_token): Handle FLAG_C.
10265
10266 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10267
10268 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
10269 it to the ptrace call.
10270 * m68k-bsd-nat.c (store_registers): Likewise.
10271
10272 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10273
10274 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
10275 gdb_byte *.
10276 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
10277 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
10278 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
10279
10280 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10281
10282 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
10283 nbsd_nat_target instead of inf_ptrace_target.
10284 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
10285 nbsd_nat_target.
10286
10287 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10288
10289 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
10290 register_t.
10291
10292 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10293
10294 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
10295 it to the ptrace call.
10296 * alpha-bsd-nat.c (store_registers): Likewise.
10297
10298 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10299
10300 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
10301 includes.
10302 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
10303 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
10304 fill_fpregset): Likewise.
10305
10306 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10307
10308 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
10309 nbsd_nat_target instead of inf_ptrace_target.
10310 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
10311 nbsd_nat_target.
10312
10313 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10314
10315 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
10316 register_t.
10317
10318 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10319
10320 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
10321 it to the ptrace call.
10322 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
10323 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
10324 * arm-nbsd-nat.c (store_register): Likewise.
10325 * arm-nbsd-nat.c (store_regs): Likewise.
10326 * arm-nbsd-nat.c (store_fp_register): Likewise.
10327 * arm-nbsd-nat.c (store_fp_regs): Likewise.
10328
10329 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10330
10331 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
10332 nbsd_nat_target instead of inf_ptrace_target.
10333 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
10334 nbsd_nat_target.
10335
10336 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10337
10338 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
10339 it to the ptrace call.
10340 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
10341
10342 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10343
10344 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
10345 it to the ptrace call.
10346 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
10347
10348 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10349
10350 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
10351 gdb_byte *.
10352 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
10353
10354 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10355
10356 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
10357 instead of inf_ptrace_target.
10358 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
10359 nbsd_nat_target.
10360
10361 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10362
10363 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10364 register_t.
10365
10366 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10367
10368 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10369 register_t.
10370
10371 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10372
10373 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
10374 register_t.
10375
10376 2020-03-13 Tom Tromey <tom@tromey.com>
10377
10378 * value.h (val_print): Don't declare.
10379 * valprint.h (val_print_array_elements)
10380 (val_print_scalar_formatted, generic_val_print): Don't declare.
10381 * valprint.c (generic_val_print_array): Take a struct value.
10382 (generic_val_print_ptr, generic_val_print_memberptr)
10383 (generic_val_print_bool, generic_val_print_int)
10384 (generic_val_print_char, generic_val_print_complex)
10385 (generic_val_print): Remove.
10386 (generic_value_print): Update.
10387 (do_val_print): Remove unused parameters. Don't call
10388 la_val_print.
10389 (val_print): Remove.
10390 (common_val_print): Update. Don't call value_check_printable.
10391 (val_print_scalar_formatted, val_print_array_elements): Remove.
10392 * rust-lang.c (rust_val_print): Remove.
10393 (rust_language_defn): Update.
10394 * p-valprint.c (pascal_val_print): Remove.
10395 (pascal_value_print_inner): Update.
10396 (pascal_object_print_val_fields, pascal_object_print_val):
10397 Remove.
10398 (pascal_object_print_static_field): Update.
10399 * p-lang.h (pascal_val_print): Don't declare.
10400 * p-lang.c (pascal_language_defn): Update.
10401 * opencl-lang.c (opencl_language_defn): Update.
10402 * objc-lang.c (objc_language_defn): Update.
10403 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
10404 * m2-lang.h (m2_val_print): Don't declare.
10405 * m2-lang.c (m2_language_defn): Update.
10406 * language.h (struct language_defn) <la_val_print>: Remove.
10407 * language.c (unk_lang_value_print_inner): Rename. Change
10408 argument types.
10409 (unknown_language_defn, auto_language_defn): Update.
10410 * go-valprint.c (go_val_print): Remove.
10411 * go-lang.h (go_val_print): Don't declare.
10412 * go-lang.c (go_language_defn): Update.
10413 * f-valprint.c (f_val_print): Remove.
10414 * f-lang.h (f_value_print): Don't declare.
10415 * f-lang.c (f_language_defn): Update.
10416 * d-valprint.c (d_val_print): Remove.
10417 * d-lang.h (d_value_print): Don't declare.
10418 * d-lang.c (d_language_defn): Update.
10419 * cp-valprint.c (cp_print_value_fields)
10420 (cp_print_value_fields_rtti, cp_print_value): Remove.
10421 (cp_print_static_field): Update.
10422 * c-valprint.c (c_val_print_array, c_val_print_ptr)
10423 (c_val_print_struct, c_val_print_union, c_val_print_int)
10424 (c_val_print_memberptr, c_val_print): Remove.
10425 * c-lang.h (c_val_print_array, cp_print_value_fields)
10426 (cp_print_value_fields_rtti): Don't declare.
10427 * c-lang.c (c_language_defn, cplus_language_defn)
10428 (asm_language_defn, minimal_language_defn): Update.
10429 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
10430 (ada_val_print_enum): Take a struct value.
10431 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
10432 (ada_val_print): Remove.
10433 (ada_value_print_1): Update.
10434 (printable_val_type): Remove.
10435 * ada-lang.h (ada_val_print): Don't declare.
10436 * ada-lang.c (ada_language_defn): Update.
10437
10438 2020-03-13 Tom Tromey <tom@tromey.com>
10439
10440 * valprint.c (do_val_print): Update.
10441 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
10442 a struct value.
10443 (value_to_value_object_no_release): Declare.
10444 * python/py-value.c (value_to_value_object_no_release): New
10445 function.
10446 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
10447 struct value.
10448 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
10449 function.
10450 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
10451 a struct value.
10452 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
10453 Declare.
10454 (gdbscm_apply_val_pretty_printer): Take a struct value.
10455 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
10456 value.
10457 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
10458 value.
10459 * extension-priv.h (struct extension_language_ops)
10460 <apply_val_pretty_printer>: Take a struct value.
10461 * cp-valprint.c (cp_print_value): Create a struct value.
10462 (cp_print_value): Update.
10463
10464 2020-03-13 Tom Tromey <tom@tromey.com>
10465
10466 * ada-valprint.c (print_field_values): Call common_val_print.
10467
10468 2020-03-13 Tom Tromey <tom@tromey.com>
10469
10470 * ada-valprint.c (val_print_packed_array_elements): Remove
10471 bitoffset and val parameters. Call common_val_print.
10472 (ada_val_print_string): Remove offset, address, and original_value
10473 parameters.
10474 (ada_val_print_array): Update.
10475 (ada_value_print_array): New function.
10476 (ada_value_print_1): Call it.
10477
10478 2020-03-13 Tom Tromey <tom@tromey.com>
10479
10480 * ada-valprint.c (ada_value_print): Use common_val_print.
10481
10482 2020-03-13 Tom Tromey <tom@tromey.com>
10483
10484 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
10485
10486 2020-03-13 Tom Tromey <tom@tromey.com>
10487
10488 * ada-valprint.c (ada_value_print_num): New function.
10489 (ada_value_print_1): Use it.
10490
10491 2020-03-13 Tom Tromey <tom@tromey.com>
10492
10493 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
10494
10495 2020-03-13 Tom Tromey <tom@tromey.com>
10496
10497 * ada-valprint.c (ada_value_print_ptr): New function.
10498 (ada_value_print_1): Use it.
10499
10500 2020-03-13 Tom Tromey <tom@tromey.com>
10501
10502 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
10503 call common_val_print.
10504 (ada_val_print_1): Update.
10505 (ada_value_print_1): New function.
10506 (ada_value_print_inner): Rewrite.
10507
10508 2020-03-13 Tom Tromey <tom@tromey.com>
10509
10510 * cp-valprint.c (cp_print_value_fields): Update.
10511 (cp_print_value): New function.
10512
10513 2020-03-13 Tom Tromey <tom@tromey.com>
10514
10515 * m2-valprint.c (m2_value_print_inner): Use
10516 cp_print_value_fields.
10517 * cp-valprint.c (cp_print_value_fields): New function.
10518 * c-valprint.c (c_value_print_struct): New function.
10519 (c_value_print_inner): Use c_value_print_struct.
10520 * c-lang.h (cp_print_value_fields): Declare.
10521
10522 2020-03-13 Tom Tromey <tom@tromey.com>
10523
10524 * c-valprint.c (c_value_print_array): New function.
10525 (c_value_print_inner): Use it.
10526
10527 2020-03-13 Tom Tromey <tom@tromey.com>
10528
10529 * c-valprint.c (c_value_print_memberptr): New function.
10530 (c_value_print_inner): Use it.
10531
10532 2020-03-13 Tom Tromey <tom@tromey.com>
10533
10534 * c-valprint.c (c_value_print_int): New function.
10535 (c_value_print_inner): Use it.
10536
10537 2020-03-13 Tom Tromey <tom@tromey.com>
10538
10539 * c-valprint.c (c_value_print_ptr): New function.
10540 (c_value_print_inner): Use it.
10541
10542 2020-03-13 Tom Tromey <tom@tromey.com>
10543
10544 * c-valprint.c (c_value_print_inner): Rewrite.
10545
10546 2020-03-13 Tom Tromey <tom@tromey.com>
10547
10548 * valprint.c (generic_value_print_complex): New function.
10549 (generic_value_print): Use it.
10550
10551 2020-03-13 Tom Tromey <tom@tromey.com>
10552
10553 * valprint.c (generic_val_print_float): Don't call
10554 val_print_scalar_formatted.
10555 (generic_val_print, generic_value_print): Update.
10556
10557 2020-03-13 Tom Tromey <tom@tromey.com>
10558
10559 * valprint.c (generic_value_print_char): New function
10560 (generic_value_print): Use it.
10561
10562 2020-03-13 Tom Tromey <tom@tromey.com>
10563
10564 * valprint.c (generic_value_print_int): New function.
10565 (generic_value_print): Use it.
10566
10567 2020-03-13 Tom Tromey <tom@tromey.com>
10568
10569 * valprint.c (generic_value_print_bool): New function.
10570 (generic_value_print): Use it.
10571
10572 2020-03-13 Tom Tromey <tom@tromey.com>
10573
10574 * valprint.c (generic_val_print_func): Simplify.
10575 (generic_val_print, generic_value_print): Update.
10576
10577 2020-03-13 Tom Tromey <tom@tromey.com>
10578
10579 * valprint.c (generic_val_print_flags): Remove.
10580 (generic_val_print, generic_value_print): Update.
10581 (val_print_type_code_flags): Add original_value parameter.
10582
10583 2020-03-13 Tom Tromey <tom@tromey.com>
10584
10585 * valprint.c (generic_val_print): Update.
10586 (generic_value_print): Update.
10587 * valprint.c (generic_val_print_enum): Don't call
10588 val_print_scalar_formatted.
10589
10590 2020-03-13 Tom Tromey <tom@tromey.com>
10591
10592 * valprint.c (generic_value_print): Call generic_value_print_ptr.
10593 * valprint.c (generic_value_print_ptr): New function.
10594
10595 2020-03-13 Tom Tromey <tom@tromey.com>
10596
10597 * valprint.c (generic_value_print): Rewrite.
10598
10599 2020-03-13 Tom Tromey <tom@tromey.com>
10600
10601 * p-valprint.c (pascal_object_print_value_fields)
10602 (pascal_object_print_value): New functions.
10603
10604 2020-03-13 Tom Tromey <tom@tromey.com>
10605
10606 * p-valprint.c (pascal_value_print_inner): Rewrite.
10607
10608 2020-03-13 Tom Tromey <tom@tromey.com>
10609
10610 * f-valprint.c (f_value_print_innner): Rewrite.
10611
10612 2020-03-13 Tom Tromey <tom@tromey.com>
10613
10614 * m2-valprint.c (m2_print_unbounded_array): New overload.
10615 (m2_print_unbounded_array): Update.
10616 (m2_print_array_contents): Take a struct value.
10617 (m2_value_print_inner): Rewrite.
10618
10619 2020-03-13 Tom Tromey <tom@tromey.com>
10620
10621 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
10622 (d_value_print_inner): New function.
10623 * d-lang.h (d_value_print_inner): Declare.
10624 * d-lang.c (d_language_defn): Use d_value_print_inner.
10625
10626 2020-03-13 Tom Tromey <tom@tromey.com>
10627
10628 * go-valprint.c (go_value_print_inner): New function.
10629 * go-lang.h (go_value_print_inner): Declare.
10630 * go-lang.c (go_language_defn): Use go_value_print_inner.
10631
10632 2020-03-13 Tom Tromey <tom@tromey.com>
10633
10634 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
10635 API.
10636 (rust_val_print): Rewrite.
10637 (rust_value_print_inner): New function, from rust_val_print.
10638 (rust_language_defn): Use rust_value_print_inner.
10639
10640 2020-03-13 Tom Tromey <tom@tromey.com>
10641
10642 * ada-valprint.c (ada_value_print_inner): New function.
10643 * ada-lang.h (ada_value_print_inner): Declare.
10644 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
10645
10646 2020-03-13 Tom Tromey <tom@tromey.com>
10647
10648 * f-valprint.c (f_value_print_innner): New function.
10649 * f-lang.h (f_value_print_innner): Declare.
10650 * f-lang.c (f_language_defn): Use f_value_print_innner.
10651
10652 2020-03-13 Tom Tromey <tom@tromey.com>
10653
10654 * p-valprint.c (pascal_value_print_inner): New function.
10655 * p-lang.h (pascal_value_print_inner): Declare.
10656 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
10657
10658 2020-03-13 Tom Tromey <tom@tromey.com>
10659
10660 * m2-valprint.c (m2_value_print_inner): New function.
10661 * m2-lang.h (m2_value_print_inner): Declare.
10662 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
10663
10664 2020-03-13 Tom Tromey <tom@tromey.com>
10665
10666 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
10667 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
10668 * c-valprint.c (c_value_print_inner): New function.
10669 * c-lang.h (c_value_print_inner): Declare.
10670 * c-lang.c (c_language_defn, cplus_language_defn)
10671 (asm_language_defn, minimal_language_defn): Use
10672 c_value_print_inner.
10673
10674 2020-03-13 Tom Tromey <tom@tromey.com>
10675
10676 * p-valprint.c (pascal_object_print_value_fields): Now static.
10677 * p-lang.h (pascal_object_print_value_fields): Don't declare.
10678
10679 2020-03-13 Tom Tromey <tom@tromey.com>
10680
10681 * c-valprint.c (c_val_print_array): Simplify.
10682
10683 2020-03-13 Tom Tromey <tom@tromey.com>
10684
10685 * valprint.c (value_print_array_elements): New function.
10686 * valprint.h (value_print_array_elements): Declare.
10687
10688 2020-03-13 Tom Tromey <tom@tromey.com>
10689
10690 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
10691 * mips-tdep.c (mips_print_register): Use
10692 value_print_scalar_formatted.
10693
10694 2020-03-13 Tom Tromey <tom@tromey.com>
10695
10696 * valprint.h (value_print_scalar_formatted): Declare.
10697 * valprint.c (value_print_scalar_formatted): New function.
10698
10699 2020-03-13 Tom Tromey <tom@tromey.com>
10700
10701 * valprint.h (generic_value_print): Declare.
10702 * valprint.c (generic_value_print): New function.
10703
10704 2020-03-13 Tom Tromey <tom@tromey.com>
10705
10706 * valprint.c (do_val_print): Call la_value_print_inner, if
10707 available.
10708 * rust-lang.c (rust_language_defn): Update.
10709 * p-lang.c (pascal_language_defn): Update.
10710 * opencl-lang.c (opencl_language_defn): Update.
10711 * objc-lang.c (objc_language_defn): Update.
10712 * m2-lang.c (m2_language_defn): Update.
10713 * language.h (struct language_defn) <la_value_print_inner>: New
10714 member.
10715 * language.c (unknown_language_defn, auto_language_defn): Update.
10716 * go-lang.c (go_language_defn): Update.
10717 * f-lang.c (f_language_defn): Update.
10718 * d-lang.c (d_language_defn): Update.
10719 * c-lang.c (c_language_defn, cplus_language_defn)
10720 (asm_language_defn, minimal_language_defn): Update.
10721 * ada-lang.c (ada_language_defn): Update.
10722
10723 2020-03-13 Tom Tromey <tom@tromey.com>
10724
10725 * c-valprint.c (c_value_print): Use common_val_print.
10726
10727 2020-03-13 Tom Tromey <tom@tromey.com>
10728
10729 * cp-valprint.c (cp_print_static_field): Use common_val_print.
10730
10731 2020-03-13 Tom Tromey <tom@tromey.com>
10732
10733 * f-valprint.c (f77_print_array_1, f_val_print): Use
10734 common_val_print.
10735
10736 2020-03-13 Tom Tromey <tom@tromey.com>
10737
10738 * riscv-tdep.c (riscv_print_one_register_info): Use
10739 common_val_print.
10740
10741 2020-03-13 Tom Tromey <tom@tromey.com>
10742
10743 * mi/mi-main.c (output_register): Use common_val_print.
10744
10745 2020-03-13 Tom Tromey <tom@tromey.com>
10746
10747 * infcmd.c (default_print_one_register_info): Use
10748 common_val_print.
10749
10750 2020-03-13 Tom Tromey <tom@tromey.com>
10751
10752 * valprint.h (common_val_print_checked): Declare.
10753 * valprint.c (common_val_print_checked): New function.
10754 * stack.c (print_frame_arg): Use common_val_print_checked.
10755
10756 2020-03-13 Tom Tromey <tom@tromey.com>
10757
10758 * valprint.c (do_val_print): New function, from val_print.
10759 (val_print): Use do_val_print.
10760 (common_val_print): Use do_val_print.
10761
10762 2020-03-13 Tom Tromey <tom@tromey.com>
10763
10764 * valprint.c (value_print): Use scoped_value_mark.
10765
10766 2020-03-13 Tom de Vries <tdevries@suse.de>
10767
10768 PR symtab/25646
10769 * psymtab.c (partial_symtab::partial_symtab): Don't set
10770 globals_offset and statics_offset. Push element onto
10771 current_global_psymbols and current_static_psymbols stacks.
10772 (concat): New function.
10773 (end_psymtab_common): Set globals_offset and statics_offset. Pop
10774 element from current_global_psymbols and current_static_psymbols
10775 stacks. Concat popped elements to global_psymbols and
10776 static_symbols.
10777 (add_psymbol_to_list): Use current_global_psymbols and
10778 current_static_psymbols stacks.
10779 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
10780 current_static_psymbols fields.
10781
10782 2020-03-12 Christian Biesinger <cbiesinger@google.com>
10783
10784 * corelow.c (sniff_core_bfd): Remove.
10785 (class core_target) <m_core_vec>: Remove.
10786 (core_target::core_target): Update.
10787 (core_file_fns): Remove.
10788 (deprecated_add_core_fns): Remove.
10789 (default_core_sniffer): Remove.
10790 (sniff_core_bfd): Remove.
10791 (default_check_format): Remove.
10792 (gdb_check_format): Remove.
10793 (core_target_open): Update.
10794 (core_target::get_core_register_section): Update.
10795 (get_core_registers_cb): Update.
10796 (core_target::fetch_registers): Update.
10797 * gdbcore.h (struct core_fns): Remove.
10798 (deprecated_add_core_fns): Remove.
10799 (default_core_sniffer): Remove.
10800 (default_check_format): Remove.
10801
10802 2020-03-12 Tom Tromey <tom@tromey.com>
10803
10804 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
10805 CORE_ADDR.
10806 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
10807
10808 2020-03-12 Tom Tromey <tom@tromey.com>
10809
10810 * remote.c (remote_target::download_tracepoint)
10811 (remote_target::enable_tracepoint)
10812 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
10813 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
10814 sprintf_vma.
10815
10816 2020-03-12 Tom Tromey <tom@tromey.com>
10817
10818 * symfile-mem.c: Update CORE_ADDR size assert.
10819
10820 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
10821
10822 * selftest.m4: Move to gdbsupport/.
10823 * acinclude.m4: Update path to selftest.m4.
10824
10825 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
10826
10827 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
10828 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
10829 gdbarch-selfselftests.c and selftest-arch.c.
10830 (SUBDIR_UNITTESTS_OBS): Rename to...
10831 (SELFTESTS_OBS): ... this.
10832 (COMMON_SFILES): Remove disasm-selftests.c and
10833 gdbarch-selftests.c.
10834 * configure.ac: Don't add selftest-arch.{c,o} to
10835 CONFIG_{SRCS,OBS}.
10836 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
10837 preprocessor conditions.
10838
10839 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
10840
10841 * configure.ac: Don't source bfd/development.sh.
10842 * selftest.m4: Modify comment.
10843 * configure: Re-generate.
10844
10845 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
10846
10847 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
10848 not "true" or "false".
10849 * configure: Re-generate.
10850
10851 2020-03-12 Christian Biesinger <cbiesinger@google.com>
10852
10853 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
10854 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
10855 renamed to arm_nbsd_supply_gregset.
10856 (fetch_register): Update to call arm_nbsd_supply_gregset.
10857 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
10858 (arm_netbsd_nat_target::fetch_registers): Update.
10859 (fetch_elfcore_registers): Removed.
10860 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
10861 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
10862 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
10863 not require NetBSD system headers.
10864 (arm_nbsd_regset): New struct.
10865 (arm_nbsd_iterate_over_regset_sections): New function.
10866 (arm_netbsd_init_abi_common): Updated to call
10867 set_gdbarch_iterate_over_regset_sections.
10868 * arm-nbsd-tdep.h: New file.
10869
10870 2020-03-11 Kevin Buettner <kevinb@redhat.com>
10871
10872 * symtab.c (find_pc_sect_line): Add check which prevents infinite
10873 recursion.
10874
10875 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
10876
10877 * configure: Re-generate.
10878
10879 2020-03-11 Tom Tromey <tromey@adacore.com>
10880
10881 * ada-typeprint.c (print_choices): Fix comment.
10882
10883 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
10884
10885 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
10886 previous item in the list, when the list has no items.
10887
10888 2020-03-11 Tom de Vries <tdevries@suse.de>
10889
10890 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
10891 PROP_LOCLIST handling code.
10892
10893 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
10894
10895 * buildsym-legacy.c (record_line): Pass extra parameter to
10896 record_line.
10897 * buildsym.c (buildsym_compunit::record_line): Take an extra
10898 parameter, reduce duplication in the line table, and record the
10899 is_stmt flag in the line table.
10900 * buildsym.h (buildsym_compunit::record_line): Add extra
10901 parameter.
10902 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
10903 non-statement lines.
10904 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
10905 this to the symtab builder.
10906 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
10907 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
10908 through to dwarf_record_line_1.
10909 * infrun.c (process_event_stop_test): When stepping, don't stop at
10910 a non-statement instruction, and only refresh the step info when
10911 we land in the middle of a line's range. Also add an extra
10912 comment.
10913 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
10914 field.
10915 * record-btrace.c (btrace_find_line_range): Only record lines
10916 marked as is-statement.
10917 * stack.c (frame_show_address): Show the frame address if we are
10918 in a non-statement sal.
10919 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
10920 (maintenance_print_one_line_table): Print a header for the is_stmt
10921 column, and include is_stmt information in the output.
10922 * symtab.c (find_pc_sect_line): Find lines marked as statements in
10923 preference to non-statements.
10924 (find_pcs_for_symtab_line): Prefer is-statement entries.
10925 (find_line_common): Likewise.
10926 * symtab.h (struct linetable_entry): Add is_stmt field.
10927 (struct symtab_and_line): Likewise.
10928 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
10929 arranging the line table.
10930
10931 2020-03-07 Tom de Vries <tdevries@suse.de>
10932
10933 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
10934 DIE.
10935
10936 2020-03-07 Tom Tromey <tom@tromey.com>
10937
10938 * valops.c (value_literal_complex): Remove obsolete comment.
10939 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
10940 comment.
10941
10942 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
10943
10944 * infrun.h: Forward-declare thread_info.
10945 (set_step_info): Add thread_info parameter, add doc.
10946 * infrun.c (set_step_info): Add thread_info parameter, move doc
10947 to header.
10948 * infrun.c (process_event_stop_test): Pass thread to
10949 set_step_info call.
10950 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
10951 set_step_info.
10952 (prepare_one_step): Add thread_info parameter, pass it to
10953 set_step_frame and prepare_one_step (recursive) call.
10954 (step_1): Pass thread to prepare_one_step call.
10955 (step_command_fsm::should_stop): Pass thread to
10956 prepare_one_step.
10957 (until_next_fsm): Pass thread to set_step_frame call.
10958 (finish_command): Pass thread to set_step_info call.
10959
10960 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
10961
10962 * windows-tdep.c (windows_solib_create_inferior_hook):
10963 Check if inferior is running.
10964
10965 2020-03-06 Tom de Vries <tdevries@suse.de>
10966
10967 * NEWS: Fix "the the".
10968 * ctfread.c: Same.
10969
10970 2020-03-06 Tom de Vries <tdevries@suse.de>
10971
10972 * psymtab.c (psymtab_to_symtab): Don't print "done.".
10973
10974 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10975
10976 * .dir-locals.el: Add a comment referencing the other copies of
10977 this file.
10978
10979 2020-03-05 John Baldwin <jhb@FreeBSD.org>
10980
10981 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
10982 psargs.
10983
10984 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10985
10986 * .gitattributes: New file.
10987
10988 2020-03-04 Tom Tromey <tom@tromey.com>
10989
10990 * symmisc.c (print_symbol_bcache_statistics)
10991 (print_objfile_statistics): Update.
10992 * symfile.c (allocate_symtab): Use intern.
10993 * psymtab.c (partial_symtab::partial_symtab): Use intern.
10994 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
10995 macro_cache>: Remove.
10996 <string_cache>: New member.
10997 (struct objfile) <intern>: New methods.
10998 * elfread.c (elf_symtab_read): Use intern.
10999 * dwarf2/read.c (fixup_go_packaging): Intern package name.
11000 (dwarf2_compute_name, dwarf2_physname)
11001 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
11002 names.
11003 (guess_partial_die_structure_name): Update.
11004 (partial_die_info::fixup): Intern name.
11005 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
11006 name.
11007 (dwarf2_name): Intern name. Update.
11008 * buildsym.c (buildsym_compunit::get_macro_table): Use
11009 string_cache.
11010
11011 2020-03-04 Tom Tromey <tom@tromey.com>
11012
11013 * jit.c (bfd_open_from_target_memory): Make "target" const.
11014 * corefile.c (gnutarget): Now const.
11015 * gdbcore.h (gnutarget): Now const.
11016
11017 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
11018
11019 * NEWS: Mention support for WOW64 processes.
11020 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
11021 (amd64_windows_segment_register_p): Remove static.
11022 (_initialize_amd64_windows_nat): Update.
11023 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
11024 * i386-windows-nat.c (context_offset): Update.
11025 (i386_mappings): Rename and remove static.
11026 (i386_windows_segment_register_p): Remove static.
11027 (_initialize_i386_windows_nat): Update.
11028 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
11029 (STATUS_WX86_SINGLE_STEP): New macro.
11030 (EnumProcessModulesEx): New macro.
11031 (Wow64SuspendThread): New macro.
11032 (Wow64GetThreadContext): New macro.
11033 (Wow64SetThreadContext): New macro.
11034 (Wow64GetThreadSelectorEntry): New macro.
11035 (windows_set_context_register_offsets): Add static.
11036 (windows_set_segment_register_p): Likewise.
11037 (windows_add_thread): Adapt for WOW64 processes.
11038 (windows_fetch_one_register): Likewise.
11039 (windows_nat_target::fetch_registers): Likewise.
11040 (windows_store_one_register): Likewise.
11041 (display_selector): Likewise.
11042 (display_selectors): Likewise.
11043 (handle_exception): Likewise.
11044 (windows_continue): Likewise.
11045 (windows_nat_target::resume): Likewise.
11046 (windows_add_all_dlls): Likewise.
11047 (do_initial_windows_stuff): Likewise.
11048 (windows_nat_target::attach): Likewise.
11049 (windows_get_exec_module_filename): Likewise.
11050 (windows_nat_target::create_inferior): Likewise.
11051 (windows_xfer_siginfo): Likewise.
11052 (_initialize_loadable): Initialize Wow64SuspendThread,
11053 Wow64GetThreadContext, Wow64SetThreadContext,
11054 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
11055 * windows-nat.h (windows_set_context_register_offsets):
11056 Remove declaration.
11057 (windows_set_segment_register_p): Likewise.
11058 (i386_windows_segment_register_p): Add declaration.
11059 (amd64_windows_segment_register_p): Likewise.
11060
11061 2020-03-04 Luis Machado <luis.machado@linaro.org>
11062
11063 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
11064 in "info registers" for AArch64/ARM.
11065
11066 The change caused "info registers" to not print GPR's.
11067
11068 gdb/ChangeLog:
11069
11070 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
11071
11072 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
11073 when reg->group is empty and reggroup is not.
11074
11075 2020-03-03 Tom Tromey <tromey@adacore.com>
11076
11077 * dwarf2/frame.c (struct dwarf2_frame_cache)
11078 <checked_tailcall_bottom, entry_cfa_sp_offset,
11079 entry_cfa_sp_offset_p>: Remove members.
11080 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
11081 (dwarf2_frame_prev_register): Don't call
11082 dwarf2_tailcall_sniffer_first.
11083 (dwarf2_append_unwinders): Don't append tailcall unwinder.
11084 * frame-unwind.c (add_unwinder): New fuction.
11085 (frame_unwind_init): Use it. Add tailcall unwinder.
11086
11087 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
11088 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11089
11090 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
11091 value should be printed as true.
11092
11093 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
11094
11095 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
11096 (windows_init_abi): Set and use windows_so_ops.
11097
11098 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
11099
11100 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
11101 when verifying if dealing with a convenience variable.
11102
11103 2020-03-03 Luis Machado <luis.machado@linaro.org>
11104
11105 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
11106
11107 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11108
11109 * infrun.c (gdbarch_supports_displaced_stepping): New.
11110 (use_displaced_stepping): Break up conditions in smaller pieces.
11111 Use gdbarch_supports_displaced_stepping.
11112 (displaced_step_prepare_throw): Use
11113 gdbarch_supports_displaced_stepping.
11114
11115 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
11116
11117 * NEWS: Mention new behaviour of the history filename.
11118 * top.c (write_history_p): Add comment.
11119 (show_write_history_p): Add header comment, give a different
11120 message when history writing is on, but the history filename is
11121 empty.
11122 (history_filename): Add comment.
11123 (history_filename_empty): New function.
11124 (show_history_filename): Add header comment, give a different
11125 message when the filename is empty.
11126 (init_history): Compare history_filename against nullptr, and only
11127 read history if the filename is not empty.
11128 (set_history_filename): Add header comment, and only make
11129 non-empty filenames absolute.
11130 (init_main): Make the filename argument to 'set history filename'
11131 optional.
11132
11133 2020-03-02 Christian Biesinger <cbiesinger@google.com>
11134
11135 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
11136 (arm_supply_vfpregset): ...this, and update to use VFP registers.
11137 (fetch_fp_register): Update.
11138 (fetch_fp_regs): Update.
11139 (store_fp_register): Update.
11140 (store_fp_regs): Update.
11141 (arm_netbsd_nat_target::read_description): New function.
11142 (fetch_elfcore_registers): Update.
11143
11144 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
11145
11146 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
11147 general_thread if the stop reply is missing a thread-id.
11148 (remote_target::process_stop_reply): Use the first non-exited
11149 thread if the target didn't pass a thread-id.
11150 * infrun.c (do_target_wait): Move call to
11151 switch_to_inferior_no_thread to ....
11152 (do_target_wait_1): ... here.
11153
11154 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
11155
11156 * debuginfod-support.c: Include defs.h first.
11157
11158 2020-02-28 Tom de Vries <tdevries@suse.de>
11159
11160 * symfile.c (set_initial_language): Use default language for lookup.
11161
11162 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
11163
11164 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
11165 reader variable, pass `this` to read_cutu_die_from_dwo.
11166
11167 2020-02-27 Aaron Merey <amerey@redhat.com>
11168
11169 * source.c (open_source_file): Check for nullptr when computing
11170 srcpath.
11171
11172 2020-02-27 Tom Tromey <tromey@adacore.com>
11173
11174 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
11175 member.
11176 (dwarf2_add_field): Don't update nfields.
11177 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
11178
11179 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11180
11181 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
11182 abs.
11183
11184 2020-02-26 Tom Tromey <tom@tromey.com>
11185
11186 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
11187 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
11188 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
11189 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
11190 per_cu_data.
11191
11192 2020-02-26 Tom Tromey <tom@tromey.com>
11193
11194 * dwarf2/index-write.c (psym_index_map): Change type.
11195 (add_address_entry_worker, write_one_signatured_type)
11196 (recursively_count_psymbols, recursively_write_psymbols)
11197 (class debug_names, psyms_seen_size, write_gdbindex)
11198 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
11199
11200 2020-02-26 Aaron Merey <amerey@redhat.com>
11201
11202 * Makefile.in: Handle optional debuginfod support.
11203 * NEWS: Update.
11204 * README: Add --with-debuginfod summary.
11205 * config.in: Regenerate.
11206 * configure: Regenerate.
11207 * configure.ac: Handle optional debuginfod support.
11208 * debuginfod-support.c: debuginfod helper functions.
11209 * debuginfod-support.h: Ditto.
11210 * doc/gdb.texinfo: Add --with-debuginfod to configure options
11211 summary.
11212 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
11213 when a dwz file cannot be found.
11214 * elfread.c (elf_symfile_read): Query debuginfod servers when a
11215 debuginfo file cannot be found.
11216 * source.c (open_source_file): Query debuginfod servers when a
11217 source file cannot be found.
11218 * top.c (print_gdb_configuration): Include
11219 --{with,without}-debuginfod in the output.
11220
11221 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
11222
11223 * thread.c (thr_try_catch_cmd): Print thread name.
11224
11225 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
11226
11227 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
11228 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
11229 dwarf2_fetch_die_type_sect_off): Move to...
11230 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
11231 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
11232 dwarf2_fetch_die_type_sect_off): ... here.
11233 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
11234 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
11235 dwarf2_fetch_die_type_sect_off): Move doc to header file.
11236
11237 2020-02-26 Tom de Vries <tdevries@suse.de>
11238
11239 PR gdb/25603
11240 * symfile.c (set_initial_language): Exit-early if
11241 language_mode == language_mode_manual.
11242
11243 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
11244
11245 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
11246 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
11247 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
11248
11249 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
11250
11251 * gdbtypes.c (create_array_type_with_stride): Handle negative
11252 array strides.
11253 * valarith.c (value_subscripted_rvalue): Likewise.
11254
11255 2020-02-25 Luis Machado <luis.machado@linaro.org>
11256
11257 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
11258
11259 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
11260
11261 * loc.h (dwarf2_get_die_type): Move to...
11262 * read.h (dwarf2_get_die_type): ... here.
11263 * read.c (dwarf2_get_die_type): Move doc to header.
11264
11265 2020-02-25 Joel Brobecker <brobecker@adacore.com>
11266
11267 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
11268 'gnulib/Makefile.in' to the list.
11269
11270 2020-02-24 Tom Tromey <tom@tromey.com>
11271
11272 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
11273 Remove.
11274 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
11275 XOBNEWVEC.
11276
11277 2020-02-24 Tom Tromey <tom@tromey.com>
11278
11279 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
11280 New method.
11281 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
11282 (dw2_do_instantiate_symtab, dw2_get_file_names)
11283 (build_type_psymtab_dependencies, load_full_type_unit): Update.
11284
11285 2020-02-24 Tom Tromey <tom@tromey.com>
11286
11287 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
11288 make_scoped_restore.
11289 (dwarf2_psymtab::read_symtab): Don't clear
11290 reading_partial_symbols.
11291
11292 2020-02-24 Tom de Vries <tdevries@suse.de>
11293
11294 PR gdb/25592
11295 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
11296
11297 2020-02-24 Tom de Vries <tdevries@suse.de>
11298
11299 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
11300 commands layout next/prev/regs.
11301
11302 2020-02-22 Tom Tromey <tom@tromey.com>
11303
11304 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
11305 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
11306
11307 2020-02-22 Tom Tromey <tom@tromey.com>
11308
11309 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
11310
11311 2020-02-22 Tom Tromey <tom@tromey.com>
11312
11313 * tui/tui-win.c (_initialize_tui_win): Add usage text.
11314 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
11315 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
11316 * tui/tui.c (_initialize_tui): Add usage text.
11317
11318 2020-02-22 Tom Tromey <tom@tromey.com>
11319
11320 * tui/tui-win.c (tui_set_focus_command)
11321 (tui_set_win_height_command): Use error_no_arg.
11322 (_initialize_tui_win): Update help text.
11323 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
11324
11325 2020-02-22 Tom Tromey <tom@tromey.com>
11326
11327 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
11328 * tui/tui-disasm.h (struct tui_disasm_window)
11329 <display_start_addr>: Declare.
11330 * tui/tui-source.h (struct tui_source_window)
11331 <display_start_addr>: Declare.
11332 * tui/tui-winsource.h (struct tui_source_window_base)
11333 <show_source_line, display_start_addr>: New methods.
11334 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
11335 Rename and move to protected section.
11336 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
11337 (tui_source_window_base::do_erase_source_content): Update.
11338 (tui_source_window_base::show_source_line): Now a method.
11339 (tui_source_window_base::show_source_content)
11340 (tui_source_window_base::tui_source_window_base)
11341 (tui_source_window_base::rerender)
11342 (tui_source_window_base::refill)
11343 (tui_source_window_base::do_scroll_horizontal)
11344 (tui_source_window_base::set_is_exec_point_at)
11345 (tui_source_window_base::update_breakpoint_info)
11346 (tui_source_window_base::update_exec_info): Update.
11347 * tui/tui-source.c (tui_source_window::set_contents)
11348 (tui_source_window::showing_source_p)
11349 (tui_source_window::do_scroll_vertical)
11350 (tui_source_window::location_matches_p)
11351 (tui_source_window::line_is_displayed): Update.
11352 (tui_source_window::display_start_addr): New method.
11353 * tui/tui-disasm.c (tui_disasm_window::set_contents)
11354 (tui_disasm_window::do_scroll_vertical)
11355 (tui_disasm_window::location_matches_p): Update.
11356 (tui_disasm_window::display_start_addr): New method.
11357
11358 2020-02-22 Tom Tromey <tom@tromey.com>
11359
11360 * NEWS: Add entry for gdb.register_window_type.
11361 * tui/tui-layout.h (window_factory): New typedef.
11362 (tui_register_window): Declare.
11363 * tui/tui-layout.c (saved_tui_windows): New global.
11364 (tui_apply_current_layout): Use it.
11365 (tui_register_window): New function.
11366 * python/python.c (do_start_initialization): Call
11367 gdbpy_initialize_tui.
11368 (python_GdbMethods): Add "register_window_type" function.
11369 * python/python-internal.h (gdbpy_register_tui_window)
11370 (gdbpy_initialize_tui): Declare.
11371 * python/py-tui.c: New file.
11372 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
11373
11374 2020-02-22 Tom Tromey <tom@tromey.com>
11375
11376 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
11377
11378 2020-02-22 Tom Tromey <tom@tromey.com>
11379
11380 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
11381 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
11382 * tui/tui-data.c (tui_set_win_with_focus): Remove.
11383 (tui_set_win_focus_to): Move from tui-win.c.
11384
11385 2020-02-22 Tom Tromey <tom@tromey.com>
11386
11387 * tui/tui-layout.c (make_standard_window, get_locator_window): New
11388 functions.
11389 (known_window_types): New global.
11390 (tui_get_window_by_name): Reimplement.
11391 (initialize_known_windows): New function.
11392 (validate_window_name): Rewrite.
11393 (_initialize_tui_layout): Call initialize_known_windows.
11394
11395 2020-02-22 Tom Tromey <tom@tromey.com>
11396
11397 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
11398 Remove constants.
11399 * tui/tui-winsource.h (struct tui_source_window_base)
11400 <tui_source_window_base>: Remove parameter.
11401 * tui/tui-winsource.c
11402 (tui_source_window_base::tui_source_window_base): Remove
11403 parameter.
11404 (tui_source_window_base::refill): Update.
11405 * tui/tui-stack.h (struct tui_locator_window)
11406 <tui_locator_window>: Update.
11407 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
11408 Default the constructor.
11409 * tui/tui-regs.h (struct tui_data_item_window)
11410 <tui_data_item_window>: Default the constructor.
11411 (struct tui_data_window) <tui_data_window>: Likewise.
11412 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
11413 Default the constructor.
11414 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
11415 Default the constructor.
11416 <type>: Remove.
11417 (struct tui_win_info) <tui_win_info>: Default the constructor.
11418 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
11419 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
11420 Default the constructor.
11421
11422 2020-02-22 Tom Tromey <tom@tromey.com>
11423
11424 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
11425 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
11426 * tui/tui-win.c (tui_resize_all): Don't call
11427 tui_delete_invisible_windows.
11428 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
11429 done.
11430 (tui_set_layout): Update.
11431 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
11432 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
11433 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
11434
11435 2020-02-22 Tom Tromey <tom@tromey.com>
11436
11437 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
11438 correctly.
11439
11440 2020-02-22 Tom Tromey <tom@tromey.com>
11441
11442 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
11443
11444 2020-02-22 Tom Tromey <tom@tromey.com>
11445
11446 * tui/tui-winsource.h (struct tui_source_window_iterator)
11447 <inner_iterator>: New etytypedef.
11448 <tui_source_window_iterator>: Take "end" parameter.
11449 <tui_source_window_iterator>: Take iterator.
11450 <operator*, advance>: Update.
11451 <m_iter>: Change type.
11452 <m_end>: New field.
11453 (struct tui_source_windows) <begin, end>: Update.
11454 * tui/tui-layout.c (tui_windows): New global.
11455 (tui_apply_current_layout): Clear tui_windows.
11456 (tui_layout_window::apply): Update tui_windows.
11457 * tui/tui-data.h (tui_windows): Declare.
11458 (all_tui_windows): Now inline function.
11459 (class tui_window_iterator, struct all_tui_windows): Remove.
11460
11461 2020-02-22 Tom Tromey <tom@tromey.com>
11462
11463 PR tui/17850:
11464 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
11465 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
11466 "height" argument.
11467 (class tui_layout_window) <get_sizes>: Likewise.
11468 (class tui_layout_split) <tui_layout_split>: Add "vertical"
11469 argument.
11470 <get_sizes>: Add "height" argument.
11471 <m_vertical>: New field.
11472 * tui/tui-layout.c (tui_layout_split::clone): Update.
11473 (tui_layout_split::get_sizes): Add "height" argument.
11474 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
11475 (tui_new_layout_command): Parse "-horizontal".
11476 (_initialize_tui_layout): Update help string.
11477 (tui_layout_split::specification): Add "-horizontal" when needed.
11478 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
11479 argument.
11480 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
11481 New methods.
11482
11483 2020-02-22 Tom Tromey <tom@tromey.com>
11484
11485 * tui/tui-layout.h (enum tui_adjust_result): New.
11486 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
11487 (class tui_layout_window) <adjust_size>: Return
11488 tui_adjust_result. Rewrite.
11489 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
11490 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
11491
11492 2020-02-22 Tom Tromey <tom@tromey.com>
11493
11494 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
11495 parameter and return types.
11496 (class tui_layout_base) <specification>: Add "depth".
11497 (class tui_layout_window) <specification>: Add "depth".
11498 (class tui_layout_split) <specification>: Add "depth".
11499 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
11500 and return types.
11501 (tui_new_layout_command): Parse sub-layouts.
11502 (_initialize_tui_layout): Update help string.
11503 (tui_layout_window::specification): Add "depth".
11504 (add_layout_command): Update.
11505
11506 2020-02-22 Tom Tromey <tom@tromey.com>
11507
11508 * NEWS: Add "tui new-layout" item.
11509 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
11510 Add new-layout command to help text.
11511 (validate_window_name): New function.
11512 (tui_new_layout_command): New function.
11513 (_initialize_tui_layout): Register "new-layout".
11514 (tui_layout_window::specification): New method.
11515 (tui_layout_window::specification): New method.
11516 * tui/tui-layout.h (class tui_layout_base) <specification>: New
11517 method.
11518 (class tui_layout_window) <specification>: New method.
11519 (class tui_layout_split) <specification>: New method.
11520
11521 2020-02-22 Tom Tromey <tom@tromey.com>
11522
11523 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
11524 * tui/tui-win.c (window_name_completer): Update comment.
11525 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
11526 Declare method.
11527 (class tui_layout_window) <replace_window>: Likewise.
11528 (class tui_layout_split) <replace_window>: Likewise.
11529 (tui_set_layout): Don't declare.
11530 (tui_set_initial_layout): Declare function.
11531 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
11532 (asm_regs_layout): New globals.
11533 (tui_current_layout, show_layout): Remove.
11534 (tui_set_layout, tui_add_win_to_layout): Rewrite.
11535 (find_layout, tui_apply_layout): New function.
11536 (layout_completer): Remove.
11537 (tui_next_layout): Reimplement.
11538 (tui_next_layout_command): New function.
11539 (tui_set_initial_layout, tui_prev_layout_command): New functions.
11540 (tui_regs_layout): Reimplement.
11541 (tui_regs_layout_command): New function.
11542 (extract_display_start_addr): Rewrite.
11543 (next_layout, prev_layout): Remove.
11544 (tui_layout_window::replace_window): New method.
11545 (tui_layout_split::replace_window): New method.
11546 (destroy_layout): New function.
11547 (layout_list): New global.
11548 (add_layout_command): New function.
11549 (initialize_layouts): Update.
11550 (tui_layout_command): New function.
11551 (_initialize_tui_layout): Install "layout" commands.
11552 * tui/tui-data.h (enum tui_layout_type): Remove.
11553 (tui_current_layout): Don't declare.
11554
11555 2020-02-22 Tom Tromey <tom@tromey.com>
11556
11557 * tui/tui-regs.c (tui_reg_layout): Remove.
11558 (tui_reg_command): Use tui_regs_layout.
11559 * tui/tui-layout.h (tui_reg_command): Declare.
11560 * tui/tui-layout.c (tui_reg_command): New function.
11561
11562 2020-02-22 Tom Tromey <tom@tromey.com>
11563
11564 * tui/tui.c (tui_rl_delete_other_windows): Call
11565 tui_remove_some_windows.
11566 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
11567 Declare method.
11568 (class tui_layout_window) <remove_windows>: New method.
11569 (class tui_layout_split) <remove_windows>: Declare.
11570 (tui_remove_some_windows): Declare.
11571 * tui/tui-layout.c (tui_remove_some_windows): New function.
11572 (tui_layout_split::remove_windows): New method.
11573
11574 2020-02-22 Tom Tromey <tom@tromey.com>
11575
11576 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
11577 * tui/tui-layout.h (tui_next_layout): Declare.
11578 * tui/tui-layout.c (tui_next_layout): New function.
11579
11580 2020-02-22 Tom Tromey <tom@tromey.com>
11581
11582 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
11583 correct coordinates.
11584
11585 2020-02-22 Tom Tromey <tom@tromey.com>
11586
11587 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
11588 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
11589 DATA_WIN case.
11590
11591 2020-02-22 Tom Tromey <tom@tromey.com>
11592
11593 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
11594 TUI_DISASM_WIN, not tui_win_list.
11595
11596 2020-02-22 Tom Tromey <tom@tromey.com>
11597
11598 * valprint.c (generic_val_print_enum_1)
11599 (val_print_type_code_flags): Style member names.
11600 * rust-lang.c (val_print_struct, rust_print_enum)
11601 (rust_print_struct_def, rust_internal_print_type): Style member
11602 names.
11603 * p-valprint.c (pascal_object_print_value_fields): Style member
11604 names. Only call fprintf_symbol_filtered for static members.
11605 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
11606 * f-valprint.c (f_val_print): Style member names.
11607 * f-typeprint.c (f_type_print_base): Style member names.
11608 * cp-valprint.c (cp_print_value_fields): Style member names. Only
11609 call fprintf_symbol_filtered for static members.
11610 (cp_print_class_member): Style member names.
11611 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
11612 member names.
11613 * ada-valprint.c (ada_print_scalar): Style enum names.
11614 (ada_val_print_enum): Likewise.
11615 * ada-typeprint.c (print_enum_type): Style enum names.
11616
11617 2020-02-21 Tom Tromey <tom@tromey.com>
11618
11619 * psympriv.h (struct partial_symtab): Update comment.
11620
11621 2020-02-21 Tom Tromey <tromey@adacore.com>
11622
11623 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
11624 type is CORE_ADDR.
11625
11626 2020-02-21 Tom de Vries <tdevries@suse.de>
11627
11628 PR gdb/25534
11629 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
11630 if dependencies[i]->user != NULL.
11631
11632 2020-02-21 Ali Tamur <tamur@google.com>
11633
11634 * dwarf2/read.c (dwarf2_name): Add null check.
11635
11636 2020-02-20 Tom Tromey <tom@tromey.com>
11637
11638 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
11639 ">=", in binary search.
11640 (dwarf2_find_containing_comp_unit): New overload.
11641 (run_test): New self-test.
11642 (_initialize_dwarf2_read): Register new test.
11643
11644 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
11645
11646 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
11647 * riscv-tdep.h: Likewise.
11648 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
11649 rv32-only CSR.
11650 * features/riscv/64bit-csr.xml: Regenerated.
11651
11652 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
11653 Tom Tromey <tom@tromey.com>
11654
11655 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
11656 of 'fputc_unfiltered'.
11657 (putchar_unfiltered): Call 'fputc_unfiltered'.
11658 (fputc_unfiltered): Call 'fputs_unfiltered'.
11659
11660 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
11661
11662 * config.in: Regenerate.
11663 * configure: Regenerate.
11664 * configure.ac: Add --with-python-libdir option.
11665 * main.c: Use WITH_PYTHON_LIBDIR.
11666
11667 2020-02-19 Tom Tromey <tom@tromey.com>
11668
11669 * symtab.c (general_symbol_info::compute_and_set_names): Use
11670 obstack_strndup. Simplify call to symbol_set_demangled_name.
11671
11672 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
11673
11674 * dwarf2/read.c (allocate_signatured_type_table,
11675 allocate_dwo_unit_table, allocate_type_unit_groups_table,
11676 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
11677 Remove objfile parameter, update all callers.
11678
11679 2020-02-19 Doug Evans <dje@google.com>
11680
11681 PR rust/25535
11682 * rust-lang.c (rust_print_enum): Apply embedded_offset to
11683 rust_enum_variant calculation.
11684
11685 2020-02-19 Tom Tromey <tromey@adacore.com>
11686
11687 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
11688
11689 2020-02-19 Tom Tromey <tromey@adacore.com>
11690
11691 * ada-lang.c (cache_symbol): Use obstack_strdup.
11692
11693 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
11694
11695 * configure: Regenerate.
11696
11697 2020-02-19 Tom Tromey <tromey@adacore.com>
11698
11699 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
11700 NULL check.
11701
11702 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
11703
11704 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
11705
11706 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
11707
11708 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
11709 if GDBSERVER is not defined.
11710 (riscv_tdesc_cache): Likewise, also store const target_desc.
11711 (STATIC_IN_GDB): Define.
11712 (riscv_create_target_description): Update declaration with
11713 STATIC_IN_GDB.
11714 (riscv_lookup_target_description): New function, only define if
11715 GDBSERVER is not defined.
11716 * arch/riscv.h (riscv_create_target_description): Declare only
11717 when GDBSERVER is defined.
11718 (riscv_lookup_target_description): New declaration when GDBSERVER
11719 is not defined.
11720 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
11721 (riscv_linux_read_features): ...this, and return
11722 riscv_gdbarch_features instead of target_desc.
11723 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
11724 (riscv_linux_read_description): Rename to...
11725 (riscv_linux_read_features): ...this.
11726 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
11727 Update to use riscv_gdbarch_features and
11728 riscv_lookup_target_description.
11729 * riscv-tdep.c (riscv_find_default_target_description): Use
11730 riscv_lookup_target_description instead of
11731 riscv_create_target_description.
11732
11733 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
11734
11735 * valprint.c (generic_val_print_enum_1): When printing a flag
11736 enum with value 0 and there is no enumerator with value 0, print
11737 just "0" instead of "(unknown: 0x0)".
11738
11739 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
11740
11741 * valprint.c (generic_val_print_enum_1): Print unknown part of
11742 flag enum in hex.
11743
11744 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
11745
11746 * dwarf2/read.c (update_enumeration_type_from_children): Allow
11747 flag enums to contain duplicate enumerators.
11748 * valprint.c (generic_val_print_enum_1): Update comment.
11749
11750 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
11751
11752 * dwarf2/read.c: Include "count-one-bits.h".
11753 (update_enumeration_type_from_children): If an enumerator has
11754 multiple bits set, don't treat the enumeration as a "flag enum".
11755 * valprint.c (generic_val_print_enum_1): Assert that enumerators
11756 of flag enums have 0 or 1 bit set.
11757
11758 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
11759
11760 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
11761 conversion.
11762 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11763 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
11764 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11765 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
11766 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11767
11768 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
11769
11770 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
11771
11772 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
11773
11774 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
11775 displaced_step_closure_up.
11776 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
11777 (struct displaced_step_closure_up):
11778 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11779 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
11780 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
11781 Likewise.
11782 * gdbarch.sh (displaced_step_copy_insn): Likewise.
11783 * gdbarch.c, gdbarch.h: Re-generate.
11784 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
11785 displaced_step_closure_up.
11786 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11787 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
11788 * infrun.h (displaced_step_closure_up): New type alias.
11789 (struct displaced_step_inferior_state) <step_closure>: Change
11790 type to displaced_step_closure_up.
11791 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
11792 displaced_step_closure_up.
11793 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11794
11795 2020-02-14 Tom Tromey <tom@tromey.com>
11796
11797 * minidebug.c (gnu_debug_key): New global.
11798 (find_separate_debug_file_in_section): Use it.
11799
11800 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
11801
11802 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
11803 std::unique_ptr.
11804 * gdbarch.c: Re-generate.
11805 * gdbarch.h: Re-generate.
11806 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
11807 change.
11808 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
11809 type to std::unique_ptr.
11810 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
11811 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11812 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
11813 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
11814 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
11815 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11816 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
11817 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
11818 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11819
11820 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
11821
11822 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
11823 std::unique_ptr.
11824 (displaced_step_clear): Rename to...
11825 (displaced_step_reset): ... this. Just call displaced->reset ().
11826 (displaced_step_clear_cleanup): Rename to...
11827 (displaced_step_reset_cleanup): ... this.
11828 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
11829 (displaced_step_fixup): Likewise.
11830 (resume_1): Likewise.
11831 (handle_inferior_event): Restore child's memory before calling
11832 displaced_step_fixup on the parent.
11833 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
11834 to std::unique_ptr.
11835 <step_closure>: Change type to std::unique_ptr.
11836
11837 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
11838
11839 * arm-tdep.c: Include count-one-bits.h.
11840 (cleanup_block_store_pc): Use count_one_bits.
11841 (cleanup_block_load_pc): Use count_one_bits.
11842 (arm_copy_block_xfer): Use count_one_bits.
11843 (thumb2_copy_block_xfer): Use count_one_bits.
11844 (thumb_copy_pop_pc_16bit): Use count_one_bits.
11845 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
11846 (thumb_get_next_pcs_raw): Use count_one_bits.
11847 (arm_get_next_pcs_raw): Use count_one_bits_l.
11848 * arch/arm.c (bitcount): Remove.
11849 * arch/arm.h (bitcount): Remove.
11850
11851 2020-02-14 Tom Tromey <tromey@adacore.com>
11852
11853 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
11854 Update.
11855 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
11856 * dwarf2/loc.c (call_site_find_chain_1): Return
11857 unique_xmalloc_ptr.
11858 (call_site_find_chain): Likewise.
11859
11860 2020-02-14 Richard Biener <rguenther@suse.de>
11861
11862 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
11863 on expression with division operators.
11864
11865 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11866
11867 * MAINTAINERS (Write After Approval): Adding myself.
11868
11869 2020-02-12 Tom Tromey <tom@tromey.com>
11870
11871 * event-loop.c (event_data, gdb_event, event_handler_func):
11872 Remove.
11873
11874 2020-02-12 Tom Tromey <tom@tromey.com>
11875
11876 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
11877 (dwarf2_frame_objfile_data): Add comment.
11878 (find_comp_unit, set_comp_unit): New functions.
11879 (dwarf2_frame_find_fde): Use find_comp_unit.
11880 (dwarf2_build_frame_info): Use set_comp_unit.
11881
11882 2020-02-12 Tom Tromey <tom@tromey.com>
11883
11884 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
11885 (comp_unit): Don't initialize objfile.
11886 (execute_cfa_program): Add text_offset parameter.
11887 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
11888 (dwarf2_frame_cache): Update.
11889 (dwarf2_build_frame_info): Don't set "objfile" member.
11890
11891 2020-02-12 Tom Tromey <tom@tromey.com>
11892
11893 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
11894 (decode_frame_entry): Likewise.
11895 (dwarf2_build_frame_info): Update.
11896
11897 2020-02-12 Tom Tromey <tom@tromey.com>
11898
11899 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
11900 (decode_frame_entry_1): Use the comp_unit obstack.
11901
11902 2020-02-12 Tom Tromey <tom@tromey.com>
11903
11904 * dwarf2/frame.c (struct comp_unit): Add initializers and
11905 constructor.
11906 (dwarf2_frame_objfile_data): Store a comp_unit.
11907 (dwarf2_frame_find_fde): Update.
11908 (dwarf2_build_frame_info): Use "new".
11909
11910 2020-02-12 Tom Tromey <tom@tromey.com>
11911
11912 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
11913 (dwarf2_fde_table): Typedef for std::vector.
11914 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
11915 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
11916 (decode_frame_entry): Update.
11917 (dwarf2_build_frame_info): Use "new".
11918
11919 2020-02-12 Christian Biesinger <cbiesinger@google.com>
11920
11921 * arm-tdep.c (arm_gdbarch_init): Update.
11922 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
11923 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
11924 have_neon, is_m>: Change to bool.
11925
11926 2020-02-12 Christian Biesinger <cbiesinger@google.com>
11927
11928 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
11929
11930 2020-02-12 Tom Tromey <tom@tromey.com>
11931
11932 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
11933
11934 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
11935
11936 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
11937 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
11938
11939 2020-02-11 Tom Tromey <tom@tromey.com>
11940
11941 * psymtab.h: Update comment.
11942
11943 2020-02-11 Tom Tromey <tom@tromey.com>
11944
11945 * gdb_obstack.h (struct auto_obstack): Use
11946 DISABLE_COPY_AND_ASSIGN.
11947
11948 2020-02-11 Tom Tromey <tom@tromey.com>
11949
11950 * dwarf2/frame.h (struct objfile): Don't forward declare.
11951
11952 2020-02-11 Christian Biesinger <cbiesinger@google.com>
11953
11954 * cris-tdep.c (cris_supply_gregset): Change signature to match
11955 what struct regset expects.
11956 (cris_regset): New struct.
11957 (fetch_core_registers): Remove.
11958 (cris_iterate_over_regset_sections): New function.
11959 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
11960 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
11961
11962 2020-02-11 Christian Biesinger <cbiesinger@google.com>
11963
11964 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
11965 registers.
11966
11967 2020-02-11 Christian Biesinger <cbiesinger@google.com>
11968
11969 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
11970
11971 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
11972
11973 * configure: Re-generate.
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 * acinclude: Update warning.m4 path.
11982 * warning.m4: Move to gdbsupport.
11983
11984 2020-02-11 Tom Tromey <tromey@adacore.com>
11985
11986 * remote.c (remote_console_output): Update.
11987 * printcmd.c (printf_command): Update.
11988 * event-loop.c (gdb_wait_for_event): Update.
11989 * linux-nat.c (sigchld_handler): Update.
11990 * remote-sim.c (gdb_os_write_stdout): Update.
11991 (gdb_os_flush_stdout): Update.
11992 (gdb_os_flush_stderr): Update.
11993 (gdb_os_write_stderr): Update.
11994 * exceptions.c (print_exception): Update.
11995 * remote-fileio.c (remote_fileio_func_read): Update.
11996 (remote_fileio_func_write): Update.
11997 * tui/tui.c (tui_enable): Update.
11998 * tui/tui-interp.c (tui_interp::init): Update.
11999 * utils.c (init_page_info): Update.
12000 (putchar_unfiltered, fputc_unfiltered): Update.
12001 (gdb_flush): Update.
12002 (emit_style_escape): Update.
12003 (flush_wrap_buffer, fputs_maybe_filtered): Update.
12004 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
12005 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
12006 (stderr_file::write): Update.
12007 (stderr_file::puts): Update.
12008 * ui-file.h (ui_file_isatty, ui_file_write)
12009 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
12010 (ui_file_puts): Don't declare.
12011
12012 2020-02-10 Tom de Vries <tdevries@suse.de>
12013
12014 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
12015 sentinel to char *.
12016
12017 2020-02-09 Tom de Vries <tdevries@suse.de>
12018
12019 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
12020 filename if it matches "<artificial>".
12021
12022 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
12023
12024 * windows-tdep.c (struct enum_value_name): New struct.
12025 (create_enum): New function.
12026 (windows_get_siginfo_type): Create and use enum types.
12027
12028 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
12029
12030 * NEWS: Mention $_siginfo support for Windows.
12031 * windows-nat.c (handle_exception): Set siginfo_er.
12032 (windows_nat_target::mourn_inferior): Reset siginfo_er.
12033 (windows_xfer_siginfo): New function.
12034 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
12035 * windows-tdep.c (struct windows_gdbarch_data): New struct.
12036 (init_windows_gdbarch_data): New function.
12037 (get_windows_gdbarch_data): New function.
12038 (windows_get_siginfo_type): New function.
12039 (windows_init_abi): Register windows_get_siginfo_type.
12040 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
12041
12042 2020-02-08 Tom Tromey <tom@tromey.com>
12043
12044 * dwarf2/read.c (class cutu_reader) <cutu_reader,
12045 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
12046 <keep>: Declare method.
12047 <m_keep>: Remove member.
12048 <~cutu_reader>: Remove.
12049 (cutu_reader::init_tu_and_read_dwo_dies): Update.
12050 (cutu_reader::cutu_reader): Update.
12051 (cutu_reader::keep): Rename from ~cutu_reader.
12052 (process_psymtab_comp_unit, build_type_psymtabs_1)
12053 (process_skeletonless_type_unit, load_partial_comp_unit)
12054 (load_full_comp_unit, dwarf2_read_addr_index)
12055 (read_signatured_type): Update.
12056
12057 2020-02-08 Tom Tromey <tom@tromey.com>
12058
12059 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
12060 "want_partial_unit" parameter.
12061 (process_psymtab_comp_unit): Change want_partial_unit to bool.
12062 Inline check for DW_TAG_partial_unit.
12063 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
12064
12065 2020-02-08 Tom Tromey <tom@tromey.com>
12066
12067 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
12068 read.c.
12069 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
12070 read.c.
12071
12072 2020-02-08 Tom Tromey <tom@tromey.com>
12073
12074 * dwarf2/read.c (read_address): Move to comp-unit.c.
12075 (dwarf2_rnglists_process, dwarf2_ranges_process)
12076 (read_attribute_value, dwarf_decode_lines_1)
12077 (var_decode_location, decode_locdesc): Update.
12078 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
12079 read.c. Remove "cu" parameter.
12080 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
12081 method.
12082
12083 2020-02-08 Tom Tromey <tom@tromey.com>
12084
12085 * dwarf2/read.c (read_attribute_value, read_indirect_string)
12086 (read_indirect_line_string): Update.
12087 * dwarf2/comp-unit.c (read_offset): Remove.
12088 (read_comp_unit_head): Update.
12089 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
12090 method.
12091 (read_offset): Don't declare.
12092
12093 2020-02-08 Tom Tromey <tom@tromey.com>
12094
12095 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
12096 * dwarf2/read.c (struct comp_unit_head): Move to
12097 dwarf2/comp-unit.h.
12098 (enum class rcuh_kind): Move to comp-unit.h.
12099 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
12100 (read_comp_unit_head, error_check_comp_unit_head)
12101 (read_and_check_comp_unit_head): Move to comp-unit.c.
12102 (read_offset, dwarf_unit_type_name): Likewise.
12103 (create_debug_type_hash_table, read_cutu_die_from_dwo)
12104 (cutu_reader::cutu_reader, read_call_site_scope)
12105 (find_partial_die, follow_die_offset): Update.
12106 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
12107
12108 2020-02-08 Tom Tromey <tom@tromey.com>
12109
12110 * dwarf2/read.c (read_offset_1): Move to leb.c.
12111 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
12112 (dwarf_decode_macro_bytes): Update.
12113 * dwarf2/leb.c (read_offset): Rename; move from read.c.
12114 * dwarf2/leb.h (read_offset): Declare.
12115
12116 2020-02-08 Tom Tromey <tom@tromey.com>
12117
12118 * dwarf2/read.c (dwarf2_section_size): Remove.
12119 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
12120 Update.
12121 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
12122
12123 2020-02-08 Tom Tromey <tom@tromey.com>
12124
12125 * dwarf2/read.c (read_initial_length): Move to leb.c.
12126 * dwarf2/leb.h (read_initial_length): Declare.
12127 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
12128 handle_nonstd parameter.
12129 * dwarf2/frame.c (read_initial_length): Remove.
12130 (decode_frame_entry_1): Update.
12131
12132 2020-02-08 Tom Tromey <tom@tromey.com>
12133
12134 * dwarf2/loc.c (dwarf2_find_location_expression)
12135 (dwarf_evaluate_loc_desc::get_tls_address)
12136 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
12137 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
12138 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
12139 (dwarf2_compile_property_to_c)
12140 (dwarf2_loc_desc_get_symbol_read_needs)
12141 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
12142 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
12143 (loclist_describe_location, loclist_tracepoint_var_ref)
12144 (loclist_generate_c_location): Update.
12145 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
12146 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
12147 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
12148 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
12149 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
12150 (dwarf2_per_cu_data::addr_size)
12151 (dwarf2_per_cu_data::ref_addr_size)
12152 (dwarf2_per_cu_data::text_offset)
12153 (dwarf2_per_cu_data::addr_type): Now methods.
12154 (per_cu_header_read_in): Make per_cu "const".
12155 (dwarf2_version): Remove.
12156 (dwarf2_per_cu_data::int_type): Now a method.
12157 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
12158 (set_die_type, read_array_type, read_subrange_index_type)
12159 (read_tag_string_type, read_subrange_type): Update.
12160 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
12161 offset_size, ref_addr_size, text_offset, addr_type, version,
12162 objfile, int_type, addr_sized_int_type>: Declare methods.
12163
12164 2020-02-08 Tom Tromey <tom@tromey.com>
12165
12166 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
12167 Move earlier.
12168
12169 2020-02-08 Tom Tromey <tom@tromey.com>
12170
12171 * dwarf2/read.h (dwarf_line_debug): Declare.
12172 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
12173 * dwarf2/read.c: Move line_header code to new files.
12174 (dwarf_line_debug): No longer static.
12175 * dwarf2/line-header.c: New file.
12176 * dwarf2/line-header.h: New file.
12177
12178 2020-02-08 Tom Tromey <tom@tromey.com>
12179
12180 * dwarf2/read.c (struct line_header) <file_full_name,
12181 file_file_name>: Return unique_xmalloc_ptr.
12182 (line_header::file_file_name): Update.
12183 (line_header::file_full_name): Update.
12184 (dw2_get_file_names_reader): Update.
12185 (macro_start_file): Update.
12186
12187 2020-02-08 Tom Tromey <tom@tromey.com>
12188
12189 * dwarf2/read.c (struct line_header) <file_full_name,
12190 file_file_name>: Declare methods.
12191 (dw2_get_file_names_reader): Update.
12192 (file_file_name): Now a method.
12193 (file_full_name): Likewise.
12194 (macro_start_file): Update.
12195
12196 2020-02-08 Tom Tromey <tom@tromey.com>
12197
12198 * dwarf2/read.c (dwarf_always_disassemble)
12199 (show_dwarf_always_disassemble): Move to loc.c.
12200 (_initialize_dwarf2_read): Move "always-disassemble" registration
12201 to loc.c.
12202 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
12203 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
12204 static.
12205 (show_dwarf_always_disassemble): Move from read.c.
12206 (_initialize_dwarf2loc): Move always-disassemble from read.c.
12207
12208 2020-02-08 Tom Tromey <tom@tromey.com>
12209
12210 * dwarf2/read.c (~dwarf2_per_objfile): Update.
12211 (create_quick_file_names_table): Return htab_up.
12212 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
12213 Update.
12214 * dwarf2/read.h (struct dwarf2_per_objfile)
12215 <quick_file_names_table>: Now htab_up.
12216
12217 2020-02-08 Tom Tromey <tom@tromey.com>
12218
12219 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
12220
12221 2020-02-08 Tom Tromey <tom@tromey.com>
12222
12223 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
12224 Rewrite.
12225 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
12226 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
12227 (abbrev_table::abbrev_table): No longer inline.
12228 (ABBREV_HASH_SIZE): Remove.
12229 (abbrev_table::m_abbrevs): Now an htab_up.
12230
12231 2020-02-08 Tom Tromey <tom@tromey.com>
12232
12233 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
12234 (cutu_reader): Update.
12235 (build_type_psymtabs_1): Update.
12236 * dwarf2/abbrev.c (abbrev_table::read): Rename.
12237 (abbrev_table::alloc_abbrev): Update.
12238 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
12239 (abbrev_table::read): New static method, renamed from
12240 abbrev_table_read_table.
12241 (abbrev_table::alloc_abbrev)
12242 (abbrev_table::add_abbrev): Now private.
12243 (abbrev_table::abbrev_table): Now private.
12244 (abbrev_table::m_abbrev_obstack): Now private. Rename.
12245
12246 2020-02-08 Tom Tromey <tom@tromey.com>
12247
12248 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
12249 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
12250 htab_up.
12251
12252 2020-02-08 Tom Tromey <tom@tromey.com>
12253
12254 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
12255 htab_up.
12256 (lookup_dwo_unit_in_dwp): Update.
12257 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
12258 on obstack.
12259
12260 2020-02-08 Tom Tromey <tom@tromey.com>
12261
12262 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
12263 obstack.
12264
12265 2020-02-08 Tom Tromey <tom@tromey.com>
12266
12267 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
12268 line_header_hash.
12269 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
12270 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
12271 Change type to htab_up.
12272
12273 2020-02-08 Tom Tromey <tom@tromey.com>
12274
12275 * dwarf2/read.c (allocate_type_unit_groups_table): Return
12276 htab_up. Don't allocate on obstack.
12277 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
12278 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
12279 Change type to htab_up.
12280
12281 2020-02-08 Tom Tromey <tom@tromey.com>
12282
12283 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
12284 Change type to htab_up.
12285 * dwarf2/read.c (create_signatured_type_table_from_index)
12286 (create_signatured_type_table_from_debug_names)
12287 (create_all_type_units, add_type_unit)
12288 (lookup_dwo_signatured_type, lookup_signatured_type)
12289 (process_skeletonless_type_unit): Update.
12290 (create_debug_type_hash_table, create_debug_types_hash_table):
12291 Change type of types_htab.
12292 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
12293 htab_up. Don't allocate on obstack.
12294 (create_cus_hash_table): Change type of cus_htab parameter.
12295 (struct dwo_file) <cus, tus>: Now htab_up.
12296 (lookup_dwo_signatured_type, lookup_dwo_cutu)
12297 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
12298 (queue_and_load_all_dwo_tus): Update.
12299 * dwarf2/index-write.c (write_gdbindex): Update.
12300 (write_debug_names): Update.
12301
12302 2020-02-08 Tom Tromey <tom@tromey.com>
12303
12304 * dwarf2/read.h (struct dwarf2_queue_item): Move from
12305 dwarf2/read.c. Remove "next" member. Add constructor ntad
12306 destructor.
12307 (struct dwarf2_per_objfile) <queue>: New member.
12308 * dwarf2/read.c (struct dwarf2_queue_item): Move to
12309 dwarf2/read.h.
12310 (dwarf2_queue, dwarf2_queue_tail): Remove.
12311 (class dwarf2_queue_guard): Add parameter to constructor. Use
12312 DISABLE_COPY_AND_ASSIGN.
12313 <m_per_objfile>: New member.
12314 <~dwarf2_queue_guard>: Rewrite.
12315 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
12316 Update.
12317 (~dwarf2_queue_item): New.
12318
12319 2020-02-08 Tom Tromey <tom@tromey.com>
12320
12321 * dwarf2/read.c (struct die_info) <has_children>: New member.
12322 (dw2_get_file_names_reader): Remove has_children.
12323 (dw2_get_file_names): Update.
12324 (read_cutu_die_from_dwo): Remove has_children.
12325 (cutu_reader::init_tu_and_read_dwo_dies)
12326 (cutu_reader::cutu_reader): Update.
12327 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
12328 Remove has_children.
12329 (build_type_psymtabs_1, process_skeletonless_type_unit)
12330 (load_partial_comp_unit, load_full_comp_unit): Update.
12331 (create_dwo_cu_reader): Remove has_children.
12332 (create_cus_hash_table, read_die_and_children): Update.
12333 (read_full_die_1,read_full_die): Remove has_children.
12334 (read_signatured_type): Update.
12335 (class cutu_reader) <has_children>: Remove.
12336
12337 2020-02-08 Tom Tromey <tom@tromey.com>
12338
12339 * dwarf2/expr.c: Rename from dwarf2expr.c.
12340 * dwarf2/expr.h: Rename from dwarf2expr.h.
12341 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
12342 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
12343 * dwarf2/frame.c: Rename from dwarf2-frame.c.
12344 * dwarf2/frame.h: Rename from dwarf2-frame.h.
12345 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
12346 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
12347 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
12348 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
12349 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
12350 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
12351 * dwarf2/loc.c: Rename from dwarf2loc.c.
12352 * dwarf2/loc.h: Rename from dwarf2loc.h.
12353 * dwarf2/read.c: Rename from dwarf2read.c.
12354 * dwarf2/read.h: Rename from dwarf2read.h.
12355 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
12356 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
12357 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
12358 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
12359 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
12360 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
12361 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
12362 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
12363 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
12364 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
12365 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
12366 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
12367 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
12368 Update.
12369 * Makefile.in (COMMON_SFILES): Update.
12370 (HFILES_NO_SRCDIR): Update.
12371
12372 2020-02-08 Tom Tromey <tom@tromey.com>
12373
12374 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
12375 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
12376
12377 2020-02-08 Tom Tromey <tom@tromey.com>
12378
12379 * dwarf2read.h (struct die_info): Don't declare.
12380
12381 2020-02-08 Tom Tromey <tom@tromey.com>
12382
12383 * dwarf2read.h (die_info_ptr): Remove typedef.
12384
12385 2020-02-08 Tom Tromey <tom@tromey.com>
12386
12387 * dwarf2read.c (read_call_site_scope)
12388 (handle_data_member_location, dwarf2_add_member_fn)
12389 (mark_common_block_symbol_computed, read_common_block)
12390 (attr_to_dynamic_prop, partial_die_info::read)
12391 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
12392 (dwarf2_symbol_mark_computed, set_die_type): Update.
12393 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
12394 method.
12395 (attr_form_is_block): Don't declare.
12396 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
12397
12398 2020-02-08 Tom Tromey <tom@tromey.com>
12399
12400 * dwarf2read.c (dwarf2_find_base_address, )
12401 (read_call_site_scope, rust_containing_type)
12402 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
12403 (handle_data_member_location, dwarf2_add_member_fn)
12404 (get_alignment, read_structure_type, process_structure_scope)
12405 (mark_common_block_symbol_computed, read_common_block)
12406 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
12407 (partial_die_info::read, read_attribute_value, new_symbol)
12408 (lookup_die_type, dwarf2_get_ref_die_offset)
12409 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
12410 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
12411 (dwarf2_symbol_mark_computed): Update.
12412 * dwarf2/attribute.h (struct attribute) <value_as_address,
12413 form_is_section_offset, form_is_constant, form_is_ref>: Declare
12414 methods.
12415 (value_as_address, attr_form_is_section_offset)
12416 (attr_form_is_constant, attr_form_is_ref): Don't declare.
12417 * dwarf2/attribute.c (attribute::value_as_address)
12418 (attribute::form_is_section_offset, attribute::form_is_constant)
12419 (attribute::form_is_ref): Now methods.
12420
12421 2020-02-08 Tom Tromey <tom@tromey.com>
12422
12423 * dwarf2read.c (struct attribute, DW_STRING)
12424 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
12425 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
12426 (attr_form_is_block, attr_form_is_section_offset)
12427 (attr_form_is_constant, attr_form_is_ref): Move.
12428 * dwarf2/attribute.h: New file.
12429 * dwarf2/attribute.c: New file, from dwarf2read.c.
12430 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
12431
12432 2020-02-08 Tom Tromey <tom@tromey.com>
12433
12434 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
12435 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
12436 Move.
12437 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
12438 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
12439 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
12440 abbrev.c.
12441 * dwarf2/abbrev.h: New file.
12442 * dwarf2/abbrev.c: New file, from dwarf2read.c.
12443 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
12444
12445 2020-02-08 Tom Tromey <tom@tromey.com>
12446
12447 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
12448 (dwarf2_section_size, dwarf2_get_section_info)
12449 (create_signatured_type_table_from_debug_names)
12450 (create_addrmap_from_aranges, read_debug_names_from_section)
12451 (get_gdb_index_contents_from_section, read_comp_unit_head)
12452 (error_check_comp_unit_head, read_abbrev_offset)
12453 (create_debug_type_hash_table, init_cu_die_reader)
12454 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
12455 (read_comp_units_from_section, create_cus_hash_table)
12456 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
12457 (create_dwp_v2_section, dwarf2_rnglists_process)
12458 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
12459 (abbrev_table_read_table, read_indirect_string_at_offset_from)
12460 (read_indirect_string_from_dwz, read_addr_index_1)
12461 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
12462 (dwarf_decode_macro_bytes, dwarf_decode_macros)
12463 (fill_in_loclist_baton): Update.
12464 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
12465 get_containing_section, get_bfd_owner, get_bfd_section,
12466 get_file_name, get_id, get_flags, empty, read>: Declare methods.
12467 (dwarf2_read_section, get_section_name, get_section_file_name)
12468 (get_containing_section, get_section_bfd_owner)
12469 (get_section_bfd_section, get_section_name, get_section_file_name)
12470 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
12471 declare.
12472 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
12473 (dwarf2_section_info::get_bfd_owner)
12474 (dwarf2_section_info::get_bfd_section)
12475 (dwarf2_section_info::get_name)
12476 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
12477 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
12478 (dwarf2_section_info::read): Now methods.
12479 * dwarf-index-write.c (class debug_names): Update.
12480
12481 2020-02-08 Tom Tromey <tom@tromey.com>
12482
12483 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
12484 Move to dwarf2/section.h.
12485 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
12486 (get_section_bfd_section, get_section_name)
12487 (get_section_file_name, get_section_id, get_section_flags)
12488 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
12489 dwarf2/section.c.
12490 * dwarf2/section.h: New file.
12491 * dwarf2/section.c: New file, from dwarf2read.c.
12492 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
12493
12494 2020-02-08 Tom Tromey <tom@tromey.com>
12495
12496 * dwarf2read.h (read_unsigned_leb128): Don't declare.
12497 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
12498 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
12499 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
12500 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
12501 * dwarf2/leb.h: New file, from dwarf2read.c.
12502 * dwarf2/leb.c: New file, from dwarf2read.c.
12503 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
12504 Remove.
12505 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
12506 (COMMON_SFILES): Add dwarf2/leb.c.
12507
12508 2020-02-08 Joel Brobecker <brobecker@adacore.com>
12509
12510 GDB 9.1 released.
12511
12512 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
12513
12514 PR gdb/25190:
12515 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
12516 * gdb/remote.c (remote_console_output): Update.
12517 * gdb/ui-file.c (fputs_unfiltered): Rename to...
12518 (ui_file_puts): ...this.
12519 * gdb/ui-file.h (ui_file_puts): Add declaration.
12520 * gdb/utils.c (emit_style_escape): Update.
12521 (flush_wrap_buffer): Update.
12522 (fputs_maybe_filtered): Update.
12523 (fputs_unfiltered): Add function.
12524
12525 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
12526
12527 * gdb/event-loop.c (gdb_wait_for_event): Update.
12528 * gdb/printcmd.c (printf_command): Update.
12529 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
12530 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
12531 (gdb_os_flush_stderr): Update.
12532 * gdb/remote.c (remote_console_output): Update.
12533 * gdb/ui-file.c (gdb_flush): Rename to...
12534 (ui_file_flush): ...this.
12535 (stderr_file::write): Update.
12536 (stderr_file::puts): Update.
12537 * gdb/ui-file.h (gdb_flush): Rename to...
12538 (ui_file_flush): ...this.
12539 * gdb/utils.c (gdb_flush): Add function.
12540 * gdb/utils.h (gdb_flush): Add declaration.
12541
12542 2020-02-07 Tom Tromey <tromey@adacore.com>
12543
12544 PR breakpoints/24915:
12545 * source.c (find_and_open_source): Do not check basenames_may_differ.
12546
12547 2020-02-07 Tom Tromey <tom@tromey.com>
12548
12549 * README: Update gdbserver documentation.
12550 * gdbserver: Move to top level.
12551 * configure.tgt (build_gdbserver): Remove.
12552 * configure.ac: Remove --enable-gdbserver.
12553 * configure: Rebuild.
12554 * Makefile.in (distclean): Don't mention gdbserver.
12555
12556 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
12557
12558 * source-cache.c (source_cache::ensure): Surround
12559 get_plain_source_lines with a try/catch.
12560 (source_cache::get_line_charpos): Get rid of try/catch
12561 and only check for the return value of "ensure".
12562 * tui/tui-source.c (tui_source_window::set_contents):
12563 Simplify "nlines" calculation.
12564
12565 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
12566
12567 * MAINTAINERS (Write After Approval): Add myself.
12568
12569 2020-02-05 Christian Biesinger <cbiesinger@google.com>
12570
12571 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
12572 function call.
12573
12574 2020-02-05 Christian Biesinger <cbiesinger@google.com>
12575
12576 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
12577
12578 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
12579
12580 * nat/riscv-linux-tdesc.h: New file.
12581 * nat/riscv-linux-tdesc.c: New file, taking code from...
12582 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
12583 ... here.
12584 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
12585 NATDEPFILES.
12586
12587 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
12588
12589 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
12590 we don't set the fake simulator ptid to the null_ptid.
12591
12592 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
12593
12594 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
12595 * gdbthread.h (class thread_info) <resumed>: Likewise.
12596 * infrun.c (resume_1): Likewise.
12597 (proceed): Likewise.
12598 (infrun_thread_stop_requested): Likewise.
12599 (stop_all_threads): Likewise.
12600 (handle_inferior_event): Likewise.
12601 (restart_threads): Likewise.
12602 (finish_step_over): Likewise.
12603 (keep_going_stepped_thread): Likewise.
12604 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
12605 (linux_handle_extended_wait): Likewise.
12606 * record-btrace.c (get_thread_current_frame_id): Likewise.
12607 * record-full.c (record_full_wait_1): Likewise.
12608 * remote.c (remote_target::process_initial_stop_replies): Likewise.
12609 * target.c (target_resume): Likewise.
12610 * thread.c (set_running_thread): Likewise.
12611
12612 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
12613
12614 * f-valprint.c (f77_print_array_1): Changed datatype of index
12615 variable to LONGEST from int to enable it to contain bound
12616 values correctly.
12617
12618 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
12619
12620 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
12621 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
12622 offsets according to FLEN determined.
12623 (riscv_linux_nat_target::read_description): Determine FLEN
12624 dynamically.
12625 (riscv_linux_nat_target::fetch_registers): Size regset buffer
12626 according to FLEN determined.
12627 (riscv_linux_nat_target::store_registers): Likewise.
12628
12629 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
12630
12631 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
12632 when reg->group is empty and reggroup is not.
12633
12634 2020-01-31 Tom Tromey <tromey@adacore.com>
12635
12636 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
12637 Call beneath target's mourn_inferior after unpushing.
12638
12639 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
12640
12641 PR tui/9765
12642 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
12643 have enough lines to fill the screen, still return the lowest
12644 address we found.
12645
12646 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
12647
12648 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
12649 '-', '<', and '>' commands.
12650
12651 2020-01-29 Pedro Alves <palves@redhat.com>
12652 Sergio Durigan Junior <sergiodj@redhat.com>
12653
12654 * infcmd.c (construct_inferior_arguments): Assert that
12655 'argc' is greater than 0.
12656
12657 2020-01-29 Luis Machado <luis.machado@linaro.org>
12658
12659 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
12660 (BRK_INSN_MASK): Define to 0xd4200000.
12661 (aarch64_program_breakpoint_here_p): New function.
12662 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
12663 * arch-utils.c (default_program_breakpoint_here_p): Moved from
12664 breakpoint.c.
12665 * arch-utils.h (default_program_breakpoint_here_p): Moved from
12666 breakpoint.h
12667 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
12668 call gdbarch_program_breakpoint_here_p.
12669 (program_breakpoint_here): Moved to arch-utils.c, renamed to
12670 default_program_breakpoint_here_p, changed return type to bool and
12671 simplified.
12672 * breakpoint.h (program_breakpoint_here): Moved prototype to
12673 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
12674 return type to bool.
12675 * gdbarch.c: Regenerate.
12676 * gdbarch.h: Regenerate.
12677 * gdbarch.sh (program_breakpoint_here_p): New method.
12678 * infrun.c (handle_signal_stop): Call
12679 gdbarch_program_breakpoint_here_p.
12680
12681 2020-01-26 Tom Tromey <tom@tromey.com>
12682
12683 * ctfread.c (struct ctf_fp_info): Reindent.
12684 (_initialize_ctfread): Remove.
12685
12686 2020-01-26 Tom Tromey <tom@tromey.com>
12687
12688 * psymtab.c (partial_map_expand_apply)
12689 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
12690 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
12691 (psym_print_stats, psym_expand_symtabs_for_function)
12692 (psym_map_symbol_filenames, psym_map_matching_symbols)
12693 (psym_expand_symtabs_matching)
12694 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
12695 (maintenance_check_psymtabs): Use new methods.
12696 * psympriv.h (struct partial_symtab) <readin_p,
12697 get_compunit_symtab>: New methods.
12698 <readin, compunit_symtab>: Remove members.
12699 (struct standard_psymtab): New.
12700 (struct legacy_psymtab): Derive from standard_psymtab.
12701 * dwarf2read.h (struct dwarf2_psymtab): Derive from
12702 standard_psymtab.
12703 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
12704
12705 2020-01-26 Tom Tromey <tom@tromey.com>
12706
12707 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
12708 read_dependencies. Add assert.
12709 * psymtab.c (partial_symtab::read_dependencies): New method.
12710 * psympriv.h (struct partial_symtab) <read_dependencies>: New
12711 method.
12712 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
12713 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
12714 read_dependencies.
12715 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
12716 Add assert.
12717
12718 2020-01-26 Tom Tromey <tom@tromey.com>
12719
12720 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
12721 Call expand_psymtab.
12722 (xcoff_read_symtab): Call expand_psymtab.
12723 (xcoff_start_psymtab, xcoff_end_psymtab): Set
12724 legacy_expand_psymtab.
12725 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
12726 method.
12727 (struct legacy_psymtab) <expand_psymtab>: Implement.
12728 <legacy_expand_psymtab>: New member.
12729 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
12730 (parse_partial_symbols): Set legacy_expand_psymtab.
12731 (psymtab_to_symtab_1): Change argument order. Call
12732 expand_psymtab.
12733 (new_psymtab): Set legacy_expand_psymtab.
12734 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
12735 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
12736 expand_psymtab.
12737 (dwarf2_psymtab::expand_psymtab): Rename from
12738 psymtab_to_symtab_1. Call expand_psymtab.
12739 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
12740 (dbx_end_psymtab): Likewise.
12741 (dbx_psymtab_to_symtab_1): Change argument order. Call
12742 expand_psymtab.
12743 (dbx_read_symtab): Call expand_psymtab.
12744 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
12745 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
12746 (ctf_psymtab::read_symtab): Call expand_psymtab.
12747
12748 2020-01-26 Tom Tromey <tom@tromey.com>
12749
12750 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
12751 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
12752 messages.
12753 * mdebugread.c (mdebug_read_symtab): Remove prints.
12754 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
12755 assert.
12756 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
12757
12758 2020-01-26 Tom Tromey <tom@tromey.com>
12759
12760 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
12761 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
12762 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
12763 legacy_symtab.
12764 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
12765 * psymtab.c (psymtab_to_symtab): Call method.
12766 (dump_psymtab): Update.
12767 * psympriv.h (struct partial_symtab): Add virtual destructor.
12768 <read_symtab>: New method.
12769 (struct legacy_symtab): New.
12770 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
12771 (struct pst_map) <pst>: Now a legacy_psymtab.
12772 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
12773 (new_psymtab): Use legacy_psymtab.
12774 * dwarf2read.h (struct dwarf2_psymtab): New.
12775 (struct dwarf2_per_cu_data) <psymtab>: Use it.
12776 * dwarf2read.c (dwarf2_create_include_psymtab)
12777 (dwarf2_build_include_psymtabs, create_type_unit_group)
12778 (create_partial_symtab, process_psymtab_comp_unit_reader)
12779 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
12780 (set_partial_user): Use dwarf2_psymtab.
12781 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
12782 (psymtab_to_symtab_1, process_full_comp_unit)
12783 (process_full_type_unit, dwarf2_ranges_read)
12784 (dwarf2_get_pc_bounds, psymtab_include_file_name)
12785 (dwarf_decode_lines): Use dwarf2_psymtab.
12786 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
12787 (add_address_entry_worker, write_one_signatured_type)
12788 (recursively_count_psymbols, recursively_write_psymbols)
12789 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
12790 (write_debug_names): Likewise.
12791 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
12792 <pst>: Now a legacy_psymtab.
12793 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
12794 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
12795 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
12796 * ctfread.c (struct ctf_psymtab): New.
12797 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
12798 ctf_psymtab.
12799 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
12800 (create_partial_symtab): Return a ctf_psymtab.
12801 (scan_partial_symbols): Update.
12802
12803 2020-01-26 Tom Tromey <tom@tromey.com>
12804
12805 * xcoffread.c (xcoff_start_psymtab): Use new.
12806 * psymtab.c (partial_symtab::partial_symtab): New constructor,
12807 renamed from start_psymtab_common.
12808 * psympriv.h (struct partial_symtab): Add new constructor.
12809 (start_psymtab_common): Don't declare.
12810 * mdebugread.c (parse_partial_symbols): Use new.
12811 * dwarf2read.c (create_partial_symtab): Use new.
12812 * dbxread.c (start_psymtab): Use new.
12813 * ctfread.c (create_partial_symtab): Use new.
12814
12815 2020-01-26 Tom Tromey <tom@tromey.com>
12816
12817 * xcoffread.c (xcoff_end_psymtab): Use new.
12818 * psymtab.c (start_psymtab_common): Use new.
12819 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
12820 Update.
12821 * psympriv.h (struct partial_symtab): Add parameters to
12822 constructor. Don't inline.
12823 (allocate_psymtab): Don't declare.
12824 * mdebugread.c (new_psymtab): Use new.
12825 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
12826 * dbxread.c (dbx_end_psymtab): Use new.
12827
12828 2020-01-26 Tom Tromey <tom@tromey.com>
12829
12830 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
12831 allocate_psymtab. Update documentation.
12832 * psymtab.c (psymtab_storage::install_psymtab): Rename from
12833 allocate_psymtab. Do not use new.
12834 (allocate_psymtab): Use new. Update.
12835
12836 2020-01-26 Tom Tromey <tom@tromey.com>
12837
12838 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
12839 * psymtab.c (psym_print_stats): Update.
12840 * psympriv.h (struct partial_symtab) <readin,
12841 psymtabs_addrmap_supported, anonymous>: Now bool.
12842 * mdebugread.c (psymtab_to_symtab_1): Update.
12843 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
12844 (build_type_psymtabs_reader, psymtab_to_symtab_1)
12845 (process_full_comp_unit, process_full_type_unit): Update.
12846 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
12847 * ctfread.c (psymtab_to_symtab): Update.
12848
12849 2020-01-26 Tom Tromey <tom@tromey.com>
12850
12851 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
12852 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
12853 * psymtab.c (psymtab_storage): Delete psymtabs.
12854 (psymtab_storage::allocate_psymtab): Use new.
12855 (psymtab_storage::discard_psymtab): Use delete.
12856 * psympriv.h (struct partial_symtab): Add constructor and
12857 initializers.
12858
12859 2020-01-26 Tom Tromey <tom@tromey.com>
12860
12861 * machoread.c: Do not include psympriv.h.
12862
12863 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12864
12865 * NEWS: Mention the new option and the set/show commands.
12866
12867 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12868
12869 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
12870 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
12871 (validate_exec_file): New variables, enums, functions.
12872 (exec_file_locate_attach, print_section_info): Style the filenames.
12873 (_initialize_exec): Install show_exec_file_mismatch_command and
12874 set_exec_file_mismatch_command.
12875 * gdbcore.h (validate_exec_file): Declare.
12876 * infcmd.c (attach_command): Call validate_exec_file.
12877 * remote.c ( remote_target::remote_add_inferior): Likewise.
12878
12879 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12880
12881 * frame.c (find_frame_sal): Move call to get_next_frame into more
12882 inner scope.
12883 * inline-frame.c (inilne_state) <inline_state>: Update argument
12884 types.
12885 (inilne_state) <skipped_symbol>: Rename to...
12886 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
12887 (skip_inline_frames): Build vector of skipped symbols and use this
12888 to reate the inline_state.
12889 (inline_skipped_symbol): Add a comment and some assertions, fetch
12890 skipped symbol from the list.
12891
12892 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12893
12894 * buildsym.c (lte_is_less_than): Delete.
12895 (buildsym_compunit::end_symtab_with_blockvector): Create local
12896 lambda function to sort line table entries, and use
12897 std::stable_sort instead of std::sort.
12898 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
12899 markers when looking for a previous line.
12900
12901 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12902
12903 * dwarf2read.c (lnp_state_machine::record_line): Include
12904 end_sequence parameter in debug print out. Record the line if we
12905 are at an end_sequence marker even if it's not the start of a
12906 statement.
12907 * symmisc.c (maintenance_print_one_line_table): Print end of
12908 sequence markers with 'END' not '0'.
12909
12910 2020-01-24 Pedro Alves <palves@redhat.com>
12911
12912 PR gdb/25410
12913 * thread.c (scoped_restore_current_thread::restore): Use
12914 switch_to_inferior_no_thread.
12915 * exec.c: Include "progspace-and-thread.h".
12916 (add_target_sections, remove_target_sections):
12917 scoped_restore_current_pspace_and_thread instead of
12918 scoped_restore_current_thread.
12919 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
12920 and aspace to the inferior before calling clone_program_space.
12921 Remove stale comment.
12922
12923 2020-01-24 Christian Biesinger <cbiesinger@google.com>
12924
12925 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
12926 (arm_netbsd_nat_target::fetch_registers): ...this.
12927 (arm_nbsd_nat_target::store_registers): Rename to...
12928 (arm_netbsd_nat_target::store_registers): ...this.
12929
12930 2020-01-24 Christian Biesinger <cbiesinger@google.com>
12931
12932 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12933 register_t.
12934
12935 2020-01-24 Christian Biesinger <cbiesinger@google.com>
12936
12937 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
12938 Update comment.
12939 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
12940 Likewise.
12941 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
12942 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
12943 the correct replacement (iterate_over_regset_sections).
12944 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
12945 Update comment.
12946
12947 2020-01-24 Graham Markall <graham.markall@embecosm.com>
12948
12949 PR gdb/23718
12950 * gdb/python/python.c (execute_gdb_command): Call
12951 async_enable_stdin in catch block.
12952
12953 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12954
12955 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
12956 SWITCH_THRU_ALL_UIS.
12957
12958 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12959
12960 PR tui/9765
12961 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
12962 comment, add extra parameter, and update to store previous symbol
12963 when appropriate.
12964 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
12965 add extra parameter.
12966 * tui/tui-disasm.c (tui_disassemble): Update header comment,
12967 remove unneeded parameter, add try/catch around gdb_print_insn,
12968 rewrite to add items to asm_lines vector.
12969 (tui_find_backward_disassembly_start_address): New function.
12970 (tui_find_disassembly_address): Updated throughout.
12971 (tui_disasm_window::set_contents): Update for changes to
12972 tui_disassemble.
12973 (tui_disasm_window::do_scroll_vertical): No need to adjust the
12974 number of lines to scroll.
12975
12976 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
12977
12978 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
12979 (SECT_OFF_DATA): Likewise.
12980 (SECT_OFF_RODATA): Likewise.
12981 (SECT_OFF_TEXT): Likewise.
12982 (SECT_OFF_BSS): Likewise.
12983 (struct objfile) <text_section_offset, data_section_offset>: New
12984 methods.
12985 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
12986 objfile::text_section_offset.
12987 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
12988 * coffread.c (coff_symtab_read): Likewise.
12989 (enter_linenos): Likewise.
12990 (process_coff_symbol): Likewise.
12991 * ctfread.c (get_objfile_text_range): Likewise.
12992 * dtrace-probe.c (dtrace_probe::get_relocated_address):
12993 Use objfile::data_section_offset.
12994 * dwarf2-frame.c (execute_cfa_program): Use
12995 objfile::text_section_offset.
12996 (dwarf2_frame_find_fde): Likewise.
12997 * dwarf2read.c (create_addrmap_from_index): Likewise.
12998 (create_addrmap_from_aranges): Likewise.
12999 (dw2_find_pc_sect_compunit_symtab): Likewise.
13000 (process_psymtab_comp_unit_reader): Likewise.
13001 (add_partial_symbol): Likewise.
13002 (add_partial_subprogram): Likewise.
13003 (process_full_comp_unit): Likewise.
13004 (read_file_scope): Likewise.
13005 (read_func_scope): Likewise.
13006 (read_lexical_block_scope): Likewise.
13007 (read_call_site_scope): Likewise.
13008 (dwarf2_rnglists_process): Likewise.
13009 (dwarf2_ranges_process): Likewise.
13010 (dwarf2_ranges_read): Likewise.
13011 (dwarf_decode_lines_1): Likewise.
13012 (new_symbol): Likewise.
13013 (dwarf2_fetch_die_loc_sect_off): Likewise.
13014 (dwarf2_per_cu_text_offset): Likewise.
13015 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
13016 * hppa-tdep.c (read_unwind_info): Likewise.
13017 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
13018 * psympriv.h (struct partial_symtab): Likewise.
13019 * psymtab.c (find_pc_sect_psymtab): Likewise.
13020 * solib-svr4.c (enable_break): Likewise.
13021 * stap-probe.c (relocate_address): Use
13022 objfile::data_section_offset.
13023 * xcoffread.c (enter_line_range): Use
13024 objfile::text_section_offset.
13025 (read_xcoff_symtab): Likewise.
13026
13027 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
13028
13029 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
13030 declaration to narrower scopes.
13031
13032 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
13033
13034 * darwin-nat.h (struct darwin_exception_msg, enum
13035 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
13036 Move up.
13037 (class darwin_nat_target) <wait_1, check_new_threads,
13038 decode_exception_message, decode_message, stop_inferior,
13039 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
13040 * darwin-nat.c (darwin_check_new_threads): Rename to...
13041 (darwin_nat_target::check_new_threads): ... this.
13042 (darwin_suspend_inferior_it): Remove.
13043 (darwin_decode_exception_message): Rename to...
13044 (darwin_nat_target::decode_exception_message): ... this.
13045 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
13046 (darwin_decode_message): Rename to...
13047 (darwin_nat_target::decode_message): ... this.
13048 (cancel_breakpoint): Rename to...
13049 (darwin_nat_target::cancel_breakpoint): ... this.
13050 (darwin_wait): Rename to...
13051 (darwin_nat_target::wait_1): ... this. Use range-based for loop
13052 instead of iterate_over_inferiors.
13053 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
13054 (darwin_stop_inferior): Rename to...
13055 (darwin_nat_target::stop_inferior): ... this.
13056 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
13057 (darwin_init_thread_list): Rename to...
13058 (darwin_nat_target::init_thread_list): ... this.
13059 (darwin_ptrace_him): Rename to...
13060 (darwin_nat_target::ptrace_him): ... this.
13061 (darwin_nat_target::create_inferior): Pass lambda function to
13062 fork_inferior.
13063 (darwin_nat_target::detach): Call stop_inferior instead of
13064 darwin_stop_inferior.
13065 * fork-inferior.h (fork_inferior): Change init_trace_fun
13066 parameter to gdb::function_view.
13067 * fork-inferior.c (fork_inferior): Likewise.
13068
13069 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
13070
13071 * i386-cygwin-tdep.c (core_process_module_section): Update.
13072 * windows-nat.c (struct lm_info_windows): Add text_offset.
13073 (windows_xfer_shared_libraries): Update.
13074 * windows-tdep.c (windows_xfer_shared_library):
13075 Add text_offset_cached argument.
13076 * windows-tdep.h (windows_xfer_shared_library): Update.
13077
13078 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
13079
13080 * gdbarch.sh: Add declaration for _initialize_gdbarch.
13081
13082 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
13083
13084 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
13085 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
13086 replace with range-based for.
13087 (gdbsim_interrupt_inferior): Remove.
13088 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
13089 with a range-based for. Inline code from
13090 gdbsim_interrupt_inferior.
13091
13092 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
13093
13094 * infrun.c (proceed): Fix indentation.
13095
13096 2020-01-21 Tom Tromey <tromey@adacore.com>
13097
13098 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
13099 * python/python.c (python_extension_ops): Update.
13100 (gdbpy_colorize): New function.
13101 * python/lib/gdb/__init__.py (colorize): New function.
13102 * extension.h (ext_lang_colorize): Declare.
13103 * extension.c (ext_lang_colorize): New function.
13104 * extension-priv.h (struct extension_language_ops) <colorize>: New
13105 member.
13106 * cli/cli-style.c (_initialize_cli_style): Update help text.
13107
13108 2020-01-21 Luis Machado <luis.machado@linaro.org>
13109
13110 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
13111 <cond>: Change type to bool.
13112 (aarch64_displaced_step_b_cond): Update cond to use bool type.
13113 (aarch64_displaced_step_cb): Likewise.
13114 (aarch64_displaced_step_tb): Likewise.
13115
13116 2020-01-21 Luis Machado <luis.machado@linaro.org>
13117
13118 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
13119 output.
13120
13121 2020-01-21 Luis Machado <luis.machado@linaro.org>
13122
13123 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
13124 <pc_adjust>: Adjust the documentation.
13125 (aarch64_displaced_step_fixup): Check if PC really moved before
13126 adjusting it.
13127
13128 2020-01-19 Tom Tromey <tom@tromey.com>
13129
13130 * disasm.c (~gdb_disassembler): New destructor.
13131 (gdb_buffered_insn_length): Call disassemble_free_target.
13132 * disasm.h (class gdb_disassembler): Declare destructor. Use
13133 DISABLE_COPY_AND_ASSIGN.
13134
13135 2020-01-19 Tom Tromey <tom@tromey.com>
13136
13137 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
13138 (die_reader_func_ftype): Remove.
13139 (cutu_reader): New class.
13140 (dw2_get_file_names_reader): Remove "data" parameter.
13141 (dw2_get_file_names): Use cutu_reader.
13142 (create_debug_type_hash_table): Update.
13143 (read_cutu_die_from_dwo): Update comment.
13144 (lookup_dwo_unit): Add dwo_name parameter.
13145 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
13146 die_reader_func_ftype and data parameters.
13147 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
13148 Remove die_reader_func_ftype and data parameters.
13149 (~cutu_reader): New; from init_cutu_and_read_dies.
13150 (cutu_reader::cutu_reader): Rename from
13151 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
13152 and data parameters.
13153 (init_cutu_and_read_dies_simple): Remove.
13154 (struct process_psymtab_comp_unit_data): Remove.
13155 (process_psymtab_comp_unit_reader): Remove data parameter; add
13156 want_partial_unit and pretend_language parameters.
13157 (process_psymtab_comp_unit): Use cutu_reader.
13158 (build_type_psymtabs_reader): Remove data parameter.
13159 (build_type_psymtabs_1): Use cutu_reader.
13160 (process_skeletonless_type_unit): Likewise.
13161 (load_partial_comp_unit_reader): Remove.
13162 (load_partial_comp_unit): Use cutu_reader.
13163 (load_full_comp_unit_reader): Remove.
13164 (load_full_comp_unit): Use cutu_reader.
13165 (struct create_dwo_cu_data): Remove.
13166 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
13167 dwo_unit parameters.
13168 (create_cus_hash_table): Use cutu_reader.
13169 (struct dwarf2_read_addr_index_data): Remove.
13170 (dwarf2_read_addr_index_reader): Remove.
13171 (dwarf2_read_addr_index): Use cutu_reader.
13172 (read_signatured_type_reader): Remove.
13173 (read_signatured_type): Use cutu_reader.
13174
13175 2020-01-19 Tom Tromey <tom@tromey.com>
13176
13177 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
13178 * tui/tui-wingeneral.h (class tui_suppress_output): New.
13179 (tui_wrefresh): Declare.
13180 * tui/tui-wingeneral.c (suppress_output): New global.
13181 (tui_suppress_output, ~tui_suppress_output): New constructor and
13182 destructor.
13183 (tui_wrefresh): New function.
13184 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
13185 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
13186 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
13187 method.
13188 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
13189 tui_wrefresh.
13190 (tui_data_window::no_refresh): New method.
13191 (tui_data_item_window::refresh_window): Call tui_wrefresh.
13192 (tui_reg_command): Use tui_suppress_output
13193 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
13194 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
13195 method.
13196 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
13197
13198 2020-01-19 Tom Tromey <tom@tromey.com>
13199
13200 * tui/tui-winsource.c (tui_update_source_windows_with_line):
13201 Handle case where symtab is null.
13202
13203 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
13204
13205 * linux-fork.c (one_fork_p): Simplify.
13206
13207 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
13208
13209 * top.c (struct qt_args): Remove.
13210 (kill_or_detach): Change return type to void, replace `void *`
13211 parameter with a proper one.
13212 (print_inferior_quit_action): Likewise.
13213 (quit_confirm): Use range-based for loop to iterate over inferiors.
13214 (quit_force): Likewise.
13215
13216 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
13217
13218 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
13219 `void *` parameter with proper parameters.
13220 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
13221 (print_one_inferior): Change return type to void, replace `void *`
13222 parameter with proper parameters.
13223 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
13224 inferiors.
13225 (get_other_inferior): Remove.
13226 (mi_cmd_remove_inferior): Use range-based loop to iterate over
13227 inferiors.
13228
13229 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
13230
13231 * mi/mi-interp.c (report_initial_inferior): Remove.
13232 (mi_interp::init): Use range-based for to iterate over inferiors.
13233
13234 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
13235
13236 * python/py-inferior.c (build_inferior_list): Remove.
13237 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
13238
13239 2020-01-16 Christian Biesinger <cbiesinger@google.com>
13240
13241 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
13242 (btrace_stitch_trace): Likewise.
13243 * charset.c (intermediate_encoding): Likewise (vaild).
13244 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
13245 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
13246 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
13247
13248 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
13249
13250 * windows-tdep.c (windows_get_tlb_type):
13251 Add rtl_user_process_parameters type.
13252
13253 2020-01-16 Pedro Alves <palves@redhat.com>
13254 Norbert Lange <nolange79@gmail.com>
13255
13256 PR build/24805
13257 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
13258 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
13259 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
13260 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
13261 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
13262 (ps_plog): Redeclare exported functions with default visibility.
13263
13264 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
13265
13266 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
13267 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
13268
13269 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
13270
13271 * infcmd.c (post_create_inferior): Use get_thread_regcache
13272 instead of get_current_regcache.
13273
13274 2020-01-14 Tom Tromey <tom@tromey.com>
13275
13276 PR symtab/12535:
13277 * python/python.c (gdbpy_decode_line): Treat empty string the same
13278 as no argument.
13279
13280 2020-01-14 Tom Tromey <tom@tromey.com>
13281
13282 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
13283
13284 2020-01-14 Tom Tromey <tom@tromey.com>
13285
13286 * nat/linux-btrace.c: Don't include <config.h>.
13287 * nat/linux-ptrace.c: Don't include <config.h>.
13288 * nat/x86-linux-dregs.c: Don't include <config.h>.
13289
13290 2020-01-14 Tom Tromey <tom@tromey.com>
13291
13292 * configure: Rebuild.
13293 * configure.ac: Move many checks to ../gdbsupport/common.m4.
13294
13295 2020-01-14 Tom Tromey <tom@tromey.com>
13296
13297 * nat/x86-linux-dregs.c: Include configh.h.
13298 * nat/linux-ptrace.c: Include configh.h.
13299 * nat/linux-btrace.c: Include configh.h.
13300 * defs.h: Include config.h, bfd.h.
13301 * configure.ac: Don't source common.host.
13302 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
13303 * configure: Rebuild.
13304 * acinclude.m4: Update path.
13305 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
13306 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
13307 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
13308 (CLIBS): Add LIBSUPPORT.
13309 (CDEPS): Likewise.
13310 (COMMON_SFILES): Remove gdbsupport files.
13311 (HFILES_NO_SRCDIR): Likewise.
13312 (stamp-version): Update path to create-version.sh.
13313 (ALLDEPFILES): Remove gdbsupport files.
13314
13315 2020-01-14 Tom Tromey <tom@tromey.com>
13316
13317 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
13318 USE_WIN32API when needed.
13319 * configure.ac (USE_WIN32API): Don't define.
13320 (WIN32LIBS): Use WIN32APILIBS.
13321 * configure: Rebuild.
13322
13323 2020-01-14 Tom Tromey <tom@tromey.com>
13324
13325 * configure: Rebuild.
13326 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
13327
13328 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
13329
13330 * skip.c (skip_function_command): Make skip w/o arguments use the
13331 name of the inlined function if pc is inside any inlined function.
13332
13333 2020-01-14 Luis Machado <luis.machado@linaro.org>
13334
13335 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
13336 * infrun.c (resume_1): Likewise.
13337 (handle_inferior_event): Remove stale comment.
13338 * linux-nat.c (linux_nat_target::resume): Update comments.
13339 (save_stop_reason): Likewise.
13340 (linux_nat_filter_event): Likewise.
13341 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
13342
13343 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
13344
13345 * elfread.c (record_minimal_symbol): Set section index to 0 for
13346 non-allocatable sections.
13347
13348
13349 2020-01-13 Ali Tamur <tamur@google.com>
13350
13351 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
13352 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
13353 to gdb::optional. Update comments.
13354 (dwo_file): Update comments.
13355 (read_attribute): Update API to take an additional out parameter,
13356 need_reprocess. This is used to mark attributes that need other
13357 attributes (e.g. str_offsets_base) for correct computation which may not
13358 have been read yet.
13359 (read_attribute_reprocess): New function declaration.
13360 (read_addr_index): Likewise.
13361 (read_dwo_str_index): Likewise.
13362 (read_stub_str_index): Likewise.
13363 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
13364 (lookup_addr_base): New function definition.
13365 (lookup_ranges_base): Likewise.
13366 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
13367 lookup_ranges_base.
13368 (init_cutu_and_read_dies): Update comments.
13369 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
13370 unit. This is used to inherit parent's str_offsets_base and addr_base.
13371 Update comments.
13372 (init_cutu_and_read_dies_simple): Reflect API changes.
13373 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
13374 (create_cus_hash_table): Change API to take parent compile unit.
13375 Reflect API changes.
13376 (open_and_init_dwo_file): Reflect API changes.
13377 (dwarf2_get_pc_bounds): Update comments.
13378 (dwarf2_record_block_ranges): Likewise.
13379 (read_full_die_1): Change implementation to reprocess attributes that
13380 need str_offsets_base and addr_base.
13381 (partial_die_info::read): Likewise.
13382 (read_attribute_reprocess): New function definition.
13383 (read_attribute_value): Change API to take an additional out parameter,
13384 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
13385 when a non-dwo compile unit has index based attributes.
13386 (read_attribute): Reflect API changes.
13387 (read_addr_index_1): Reflect API changes. Update comments.
13388 (dwarf2_read_addr_index_data): Reflect API changes.
13389 (dwarf2_read_addr_index): Likewise.
13390 (read_str_index): Change API and implementation. This becomes a helper
13391 to be used by the new string index related methods. Update error
13392 message and comments.
13393 (read_dwo_str_index): New function definition.
13394 (read_stub_str_index): Likewise.
13395 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
13396 * symfile.h (dwarf2_debug_sections): Likewise.
13397 * xcoffread.c (dwarf2_debug_sections): Likewise.
13398
13399 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
13400
13401 * gdbcore.h (struct core_fns) <core_read_registers>: Change
13402 core_reg_sect type to gdb_byte *.
13403 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
13404 * cris-tdep.c (fetch_core_registers): Likewise.
13405 * corelow.c (core_target::get_core_register_section): Change
13406 type of `contents` to gdb::byte_vector.
13407
13408 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
13409
13410 * tui/tui-wingeneral.c (box_win): Position the title in the center
13411 of the border.
13412
13413 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13414
13415 * corelow.c (core_target::get_core_register_section): Use
13416 std::vector instead of alloca.
13417
13418 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
13419
13420 * warning.m4: Add -Wmissing-declarations to build_warnings.
13421 * configure: Re-generate.
13422
13423 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
13424
13425 * python/python.c (init__gdb_module): Add declaration.
13426
13427 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
13428
13429 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
13430 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
13431 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
13432 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
13433 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
13434 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
13435 * ada-exp.y (_initialize_ada_exp): Add declaration.
13436 * ada-lang.c (_initialize_ada_language): Add declaration.
13437 * ada-tasks.c (_initialize_tasks): Add declaration.
13438 * agent.c (_initialize_agent): Add declaration.
13439 * aix-thread.c (_initialize_aix_thread): Add declaration.
13440 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
13441 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
13442 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
13443 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
13444 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
13445 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
13446 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
13447 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
13448 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
13449 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
13450 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
13451 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
13452 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
13453 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
13454 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
13455 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
13456 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
13457 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
13458 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
13459 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
13460 * annotate.c (_initialize_annotate): Add declaration.
13461 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
13462 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
13463 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
13464 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
13465 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
13466 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
13467 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
13468 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
13469 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
13470 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
13471 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
13472 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
13473 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
13474 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
13475 * auto-load.c (_initialize_auto_load): Add declaration.
13476 * auxv.c (_initialize_auxv): Add declaration.
13477 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
13478 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
13479 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
13480 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
13481 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
13482 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
13483 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
13484 * breakpoint.c (_initialize_breakpoint): Add declaration.
13485 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
13486 * btrace.c (_initialize_btrace): Add declaration.
13487 * charset.c (_initialize_charset): Add declaration.
13488 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
13489 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
13490 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
13491 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
13492 * cli/cli-script.c (_initialize_cli_script): Add declaration.
13493 * cli/cli-style.c (_initialize_cli_style): Add declaration.
13494 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
13495 * coffread.c (_initialize_coffread): Add declaration.
13496 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
13497 * compile/compile.c (_initialize_compile): Add declaration.
13498 * complaints.c (_initialize_complaints): Add declaration.
13499 * completer.c (_initialize_completer): Add declaration.
13500 * copying.c (_initialize_copying): Add declaration.
13501 * corefile.c (_initialize_core): Add declaration.
13502 * corelow.c (_initialize_corelow): Add declaration.
13503 * cp-abi.c (_initialize_cp_abi): Add declaration.
13504 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
13505 * cp-support.c (_initialize_cp_support): Add declaration.
13506 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
13507 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
13508 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
13509 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
13510 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
13511 * ctfread.c (_initialize_ctfread): Add declaration.
13512 * d-lang.c (_initialize_d_language): Add declaration.
13513 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
13514 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
13515 * dbxread.c (_initialize_dbxread): Add declaration.
13516 * dcache.c (_initialize_dcache): Add declaration.
13517 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
13518 * disasm.c (_initialize_disasm): Add declaration.
13519 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
13520 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
13521 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
13522 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
13523 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
13524 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
13525 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
13526 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
13527 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
13528 * elfread.c (_initialize_elfread): Add declaration.
13529 * exec.c (_initialize_exec): Add declaration.
13530 * extension.c (_initialize_extension): Add declaration.
13531 * f-lang.c (_initialize_f_language): Add declaration.
13532 * f-valprint.c (_initialize_f_valprint): Add declaration.
13533 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
13534 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
13535 * filesystem.c (_initialize_filesystem): Add declaration.
13536 * findcmd.c (_initialize_mem_search): Add declaration.
13537 * findvar.c (_initialize_findvar): Add declaration.
13538 * fork-child.c (_initialize_fork_child): Add declaration.
13539 * frame-base.c (_initialize_frame_base): Add declaration.
13540 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
13541 * frame.c (_initialize_frame): Add declaration.
13542 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
13543 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
13544 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
13545 * gcore.c (_initialize_gcore): Add declaration.
13546 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
13547 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
13548 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
13549 * gdbarch.c (_initialize_gdbarch): Add declaration.
13550 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
13551 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
13552 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
13553 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
13554 * go-lang.c (_initialize_go_language): Add declaration.
13555 * go32-nat.c (_initialize_go32_nat): Add declaration.
13556 * guile/guile.c (_initialize_guile): Add declaration.
13557 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
13558 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
13559 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
13560 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
13561 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
13562 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
13563 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
13564 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
13565 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
13566 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
13567 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
13568 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
13569 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
13570 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
13571 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
13572 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
13573 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
13574 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
13575 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
13576 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
13577 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
13578 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
13579 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
13580 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
13581 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
13582 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
13583 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
13584 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
13585 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
13586 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
13587 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
13588 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
13589 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
13590 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
13591 * infcall.c (_initialize_infcall): Add declaration.
13592 * infcmd.c (_initialize_infcmd): Add declaration.
13593 * inflow.c (_initialize_inflow): Add declaration.
13594 * infrun.c (_initialize_infrun): Add declaration.
13595 * interps.c (_initialize_interpreter): Add declaration.
13596 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
13597 * jit.c (_initialize_jit): Add declaration.
13598 * language.c (_initialize_language): Add declaration.
13599 * linux-fork.c (_initialize_linux_fork): Add declaration.
13600 * linux-nat.c (_initialize_linux_nat): Add declaration.
13601 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
13602 * linux-thread-db.c (_initialize_thread_db): Add declaration.
13603 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
13604 * m2-lang.c (_initialize_m2_language): Add declaration.
13605 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
13606 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
13607 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
13608 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
13609 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
13610 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
13611 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
13612 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
13613 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
13614 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
13615 * machoread.c (_initialize_machoread): Add declaration.
13616 * macrocmd.c (_initialize_macrocmd): Add declaration.
13617 * macroscope.c (_initialize_macroscope): Add declaration.
13618 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
13619 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
13620 * maint.c (_initialize_maint_cmds): Add declaration.
13621 * mdebugread.c (_initialize_mdebugread): Add declaration.
13622 * memattr.c (_initialize_mem): Add declaration.
13623 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
13624 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
13625 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
13626 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
13627 * mi/mi-main.c (_initialize_mi_main): Add declaration.
13628 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
13629 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
13630 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
13631 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
13632 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
13633 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
13634 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
13635 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
13636 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
13637 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
13638 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
13639 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
13640 * mipsread.c (_initialize_mipsread): Add declaration.
13641 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
13642 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
13643 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
13644 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
13645 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
13646 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
13647 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
13648 * nto-procfs.c (_initialize_procfs): Add declaration.
13649 * objc-lang.c (_initialize_objc_language): Add declaration.
13650 * observable.c (_initialize_observer): Add declaration.
13651 * opencl-lang.c (_initialize_opencl_language): Add declaration.
13652 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
13653 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
13654 * osabi.c (_initialize_gdb_osabi): Add declaration.
13655 * osdata.c (_initialize_osdata): Add declaration.
13656 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
13657 * parse.c (_initialize_parse): Add declaration.
13658 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
13659 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
13660 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
13661 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
13662 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
13663 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
13664 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
13665 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
13666 * printcmd.c (_initialize_printcmd): Add declaration.
13667 * probe.c (_initialize_probe): Add declaration.
13668 * proc-api.c (_initialize_proc_api): Add declaration.
13669 * proc-events.c (_initialize_proc_events): Add declaration.
13670 * proc-service.c (_initialize_proc_service): Add declaration.
13671 * procfs.c (_initialize_procfs): Add declaration.
13672 * producer.c (_initialize_producer): Add declaration.
13673 * psymtab.c (_initialize_psymtab): Add declaration.
13674 * python/python.c (_initialize_python): Add declaration.
13675 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
13676 * record-btrace.c (_initialize_record_btrace): Add declaration.
13677 * record-full.c (_initialize_record_full): Add declaration.
13678 * record.c (_initialize_record): Add declaration.
13679 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
13680 * regcache.c (_initialize_regcache): Add declaration.
13681 * reggroups.c (_initialize_reggroup): Add declaration.
13682 * remote-notif.c (_initialize_notif): Add declaration.
13683 * remote-sim.c (_initialize_remote_sim): Add declaration.
13684 * remote.c (_initialize_remote): Add declaration.
13685 * reverse.c (_initialize_reverse): Add declaration.
13686 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
13687 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
13688 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
13689 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
13690 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
13691 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
13692 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
13693 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
13694 Add declaration.
13695 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
13696 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
13697 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
13698 * rust-exp.y (_initialize_rust_exp): Add declaration.
13699 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
13700 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
13701 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
13702 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
13703 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
13704 * score-tdep.c (_initialize_score_tdep): Add declaration.
13705 * ser-go32.c (_initialize_ser_dos): Add declaration.
13706 * ser-mingw.c (_initialize_ser_windows): Add declaration.
13707 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
13708 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
13709 * ser-uds.c (_initialize_ser_socket): Add declaration.
13710 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
13711 * serial.c (_initialize_serial): Add declaration.
13712 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
13713 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
13714 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
13715 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
13716 * skip.c (_initialize_step_skip): Add declaration.
13717 * sol-thread.c (_initialize_sol_thread): Add declaration.
13718 * solib-aix.c (_initialize_solib_aix): Add declaration.
13719 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
13720 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
13721 * solib-frv.c (_initialize_frv_solib): Add declaration.
13722 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
13723 * solib-target.c (_initialize_solib_target): Add declaration.
13724 * solib.c (_initialize_solib): Add declaration.
13725 * source-cache.c (_initialize_source_cache): Add declaration.
13726 * source.c (_initialize_source): Add declaration.
13727 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
13728 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
13729 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
13730 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
13731 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
13732 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
13733 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
13734 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
13735 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
13736 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
13737 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
13738 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
13739 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
13740 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
13741 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
13742 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
13743 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
13744 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
13745 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
13746 * stabsread.c (_initialize_stabsread): Add declaration.
13747 * stack.c (_initialize_stack): Add declaration.
13748 * stap-probe.c (_initialize_stap_probe): Add declaration.
13749 * std-regs.c (_initialize_frame_reg): Add declaration.
13750 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
13751 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
13752 * symfile.c (_initialize_symfile): Add declaration.
13753 * symmisc.c (_initialize_symmisc): Add declaration.
13754 * symtab.c (_initialize_symtab): Add declaration.
13755 * target.c (_initialize_target): Add declaration.
13756 * target-connection.c (_initialize_target_connection): Add
13757 declaration.
13758 * target-dcache.c (_initialize_target_dcache): Add declaration.
13759 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
13760 * thread.c (_initialize_thread): Add declaration.
13761 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
13762 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
13763 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
13764 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
13765 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
13766 * tracectf.c (_initialize_ctf): Add declaration.
13767 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
13768 * tracefile.c (_initialize_tracefile): Add declaration.
13769 * tracepoint.c (_initialize_tracepoint): Add declaration.
13770 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
13771 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
13772 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
13773 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
13774 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
13775 * tui/tui-win.c (_initialize_tui_win): Add declaration.
13776 * tui/tui.c (_initialize_tui): Add declaration.
13777 * typeprint.c (_initialize_typeprint): Add declaration.
13778 * ui-style.c (_initialize_ui_style): Add declaration.
13779 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
13780 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
13781 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
13782 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
13783 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
13784 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
13785 * unittests/filtered_iterator-selftests.c
13786 (_initialize_filtered_iterator_selftests): Add declaration.
13787 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
13788 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
13789 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
13790 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
13791 * unittests/main-thread-selftests.c
13792 (_initialize_main_thread_selftests): Add declaration.
13793 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
13794 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
13795 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
13796 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
13797 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
13798 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
13799 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
13800 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
13801 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
13802 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
13803 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
13804 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
13805 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
13806 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
13807 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
13808 declaration.
13809 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
13810 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
13811 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
13812 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
13813 * user-regs.c (_initialize_user_regs): Add declaration.
13814 * utils.c (_initialize_utils): Add declaration.
13815 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
13816 * valops.c (_initialize_valops): Add declaration.
13817 * valprint.c (_initialize_valprint): Add declaration.
13818 * value.c (_initialize_values): Add declaration.
13819 * varobj.c (_initialize_varobj): Add declaration.
13820 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
13821 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
13822 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
13823 * windows-nat.c (_initialize_windows_nat): Add declaration.
13824 (_initialize_check_for_gdb_ini): Add declaration.
13825 (_initialize_loadable): Add declaration.
13826 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
13827 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
13828 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
13829 * xcoffread.c (_initialize_xcoffread): Add declaration.
13830 * xml-support.c (_initialize_xml_support): Add declaration.
13831 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
13832 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
13833 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
13834 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
13835
13836 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13837
13838 * regformats/regdat.sh: Generate declaration for init function.
13839
13840 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13841
13842 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
13843 up.
13844 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
13845 close_one_inferior>: New methods.
13846 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
13847 pass down target to find_inferior_pid.
13848 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
13849 Pass down target to find_inferior_ptid.
13850 (gdbsim_target::create_inferior): Pass down target to
13851 add_thread_silent.
13852 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
13853 target down to find_inferior_ptid and switch_to_thread.
13854 (gdbsim_target::close): Update to call close_one_inferior.
13855 (struct resume_data): Remove.
13856 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
13857 directly, rather than through a void pointer.
13858 (gdbsim_target::resume): Update to call resume_one_inferior.
13859
13860 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
13861
13862 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
13863
13864 2020-01-12 Pedro Alves <palves@redhat.com>
13865
13866 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
13867 directly for the current inferior instead of
13868 discard_all_inferiors.
13869 (discard_all_inferiors): Delete.
13870
13871 2020-01-11 Tom Tromey <tom@tromey.com>
13872
13873 * tui/tui-wingeneral.c (box_win): Check cli_styling.
13874 * tui/tui-winsource.c (tui_source_window_base::refill): Use
13875 deprecated_safe_get_selected_frame.
13876
13877 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13878
13879 * inferior.c (print_inferior): Switch inferior before printing it.
13880
13881 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
13882 Pedro Alves <palves@redhat.com>
13883
13884 * progspace-and-thread.c (switch_to_program_space_and_thread):
13885 Assert there's an inferior for PSPACE. Use
13886 switch_to_inferior_no_thread to switch the inferior too.
13887 * progspace.c (program_space::~program_space): Call
13888 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
13889 (program_space::free_all_objfiles): Don't call clear_symtab_users
13890 here.
13891 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
13892
13893 2020-01-10 Pedro Alves <palves@redhat.com>
13894
13895 * NEWS: Mention multi-target debugging, "info connections", and
13896 "add-inferior -no-connection".
13897
13898 2020-01-10 Pedro Alves <palves@redhat.com>
13899
13900 * infrun.c: Include "target-connection.h".
13901 (check_multi_target_resumption): New.
13902 (proceed): Call it.
13903 * target-connection.c (make_target_connection_string): Make
13904 extern.
13905 * target-connection.h (make_target_connection_string): Declare.
13906
13907 2020-01-10 Pedro Alves <palves@redhat.com>
13908
13909 * Makefile.in (COMMON_SFILES): Add target-connection.c.
13910 * inferior.c (uiout_field_connection): New function.
13911 (print_inferior): Add new "connection-id" column.
13912 (add_inferior_command): Show connection number/string of added
13913 inferior.
13914 * process-stratum-target.h
13915 (process_stratum_target::connection_string): New virtual method.
13916 (process_stratum_target::connection_number): New field.
13917 * remote.c (remote_target::connection_string): New override.
13918 * target-connection.c: New file.
13919 * target-connection.h: New file.
13920 * target.c (decref_target): Remove process_stratum targets from
13921 the connection list.
13922 (target_stack::push): Add process_stratum targets to the
13923 connection list.
13924
13925 2020-01-10 Pedro Alves <palves@redhat.com>
13926
13927 Revert:
13928 2016-04-12 Pedro Alves <palves@redhat.com>
13929 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
13930 Remove references to name.
13931 * serial.h (struct serial) <name>: Delete.
13932
13933 2020-01-10 Pedro Alves <palves@redhat.com>
13934
13935 * gdbarch-selftests.c (register_to_value_test): Remove "target
13936 already pushed" check.
13937
13938 2020-01-10 Pedro Alves <palves@redhat.com>
13939 John Baldwin <jhb@FreeBSD.org>
13940
13941 * aarch64-linux-nat.c
13942 (aarch64_linux_nat_target::thread_architecture): Adjust.
13943 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
13944 (task_command_1): Likewise.
13945 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
13946 (aix_thread_target::wait, aix_thread_target::fetch_registers)
13947 (aix_thread_target::store_registers)
13948 (aix_thread_target::thread_alive): Adjust.
13949 * amd64-fbsd-tdep.c: Include "inferior.h".
13950 (amd64fbsd_get_thread_local_address): Pass down target.
13951 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
13952 thread's gdbarch instead of target_gdbarch.
13953 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
13954 get_last_target_status.
13955 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
13956 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
13957 inferiors.
13958 (update_inserted_breakpoint_locations): Skip if inferiors with no
13959 execution.
13960 (update_global_location_list): When handling moribund locations,
13961 find representative inferior for location's pspace, and use thread
13962 count of its process_stratum target.
13963 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
13964 * bsd-uthread.c (bsd_uthread_target::wait): Use
13965 as_process_stratum_target and adjust thread_change_ptid and
13966 add_thread calls.
13967 (bsd_uthread_target::update_thread_list): Use
13968 as_process_stratum_target and adjust find_thread_ptid,
13969 thread_change_ptid and add_thread calls.
13970 * btrace.c (maint_btrace_packet_history_cmd): Adjust
13971 find_thread_ptid call.
13972 * corelow.c (add_to_thread_list): Adjust add_thread call.
13973 (core_target_open): Adjust add_thread_silent and thread_count
13974 calls.
13975 (core_target::pid_to_str): Adjust find_inferior_ptid call.
13976 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
13977 * event-top.c (async_disconnect): Pop targets from all inferiors.
13978 * exec.c (add_target_sections): Push exec target on all inferiors
13979 sharing the program space.
13980 (remove_target_sections): Remove the exec target from all
13981 inferiors sharing the program space.
13982 (exec_on_vfork): New.
13983 * exec.h (exec_on_vfork): Declare.
13984 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
13985 Pass it down.
13986 (fbsd_nat_target::update_thread_list): Adjust.
13987 (fbsd_nat_target::resume): Adjust.
13988 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
13989 down.
13990 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
13991 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
13992 get_thread_arch_regcache call.
13993 * fork-child.c (gdb_startup_inferior): Pass target down to
13994 startup_inferior and set_executing.
13995 * gdbthread.h (struct process_stratum_target): Forward declare.
13996 (add_thread, add_thread_silent, add_thread_with_info)
13997 (in_thread_list): Add process_stratum_target parameter.
13998 (find_thread_ptid(inferior*, ptid_t)): New overload.
13999 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
14000 parameter.
14001 (all_threads()): Delete overload.
14002 (all_threads, all_non_exited_threads): Add process_stratum_target
14003 parameter.
14004 (all_threads_safe): Use brace initialization.
14005 (thread_count): Add process_stratum_target parameter.
14006 (set_resumed, set_running, set_stop_requested, set_executing)
14007 (threads_are_executing, finish_thread_state): Add
14008 process_stratum_target parameter.
14009 (switch_to_thread): Use is_current_thread.
14010 * i386-fbsd-tdep.c: Include "inferior.h".
14011 (i386fbsd_get_thread_local_address): Pass down target.
14012 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
14013 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
14014 have_inferiors check.
14015 * inf-ptrace.c (inf_ptrace_target::create_inferior)
14016 (inf_ptrace_target::attach): Adjust.
14017 * infcall.c (run_inferior_call): Adjust.
14018 * infcmd.c (run_command_1): Pass target to
14019 scoped_finish_thread_state.
14020 (proceed_thread_callback): Skip inferiors with no execution.
14021 (continue_command): Rename 'all_threads' local to avoid hiding
14022 'all_threads' function. Adjust get_last_target_status call.
14023 (prepare_one_step): Adjust set_running call.
14024 (signal_command): Use user_visible_resume_target. Compare thread
14025 pointers instead of inferior_ptid.
14026 (info_program_command): Adjust to pass down target.
14027 (attach_command): Mark target's 'thread_executing' flag.
14028 (stop_current_target_threads_ns): New, factored out from ...
14029 (interrupt_target_1): ... this. Switch inferior before making
14030 target calls.
14031 * inferior-iter.h
14032 (struct all_inferiors_iterator, struct all_inferiors_range)
14033 (struct all_inferiors_safe_range)
14034 (struct all_non_exited_inferiors_range): Filter on
14035 process_stratum_target too. Remove explicit.
14036 * inferior.c (inferior::inferior): Push dummy target on target
14037 stack.
14038 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
14039 Add process_stratum_target parameter, and pass it down.
14040 (have_live_inferiors): Adjust.
14041 (switch_to_inferior_and_push_target): New.
14042 (add_inferior_command, clone_inferior_command): Handle
14043 "-no-connection" parameter. Use
14044 switch_to_inferior_and_push_target.
14045 (_initialize_inferior): Mention "-no-connection" option in
14046 the help of "add-inferior" and "clone-inferior" commands.
14047 * inferior.h: Include "process-stratum-target.h".
14048 (interrupt_target_1): Use bool.
14049 (struct inferior) <push_target, unpush_target, target_is_pushed,
14050 find_target_beneath, top_target, process_target, target_at,
14051 m_stack>: New.
14052 (discard_all_inferiors): Delete.
14053 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
14054 (all_inferiors, all_non_exited_inferiors): Add
14055 process_stratum_target parameter.
14056 * infrun.c: Include "gdb_select.h" and <unordered_map>.
14057 (target_last_proc_target): New global.
14058 (follow_fork_inferior): Push target on new inferior. Pass target
14059 to add_thread_silent. Call exec_on_vfork. Handle target's
14060 reference count.
14061 (follow_fork): Adjust get_last_target_status call. Also consider
14062 target.
14063 (follow_exec): Push target on new inferior.
14064 (struct execution_control_state) <target>: New field.
14065 (user_visible_resume_target): New.
14066 (do_target_resume): Call target_async.
14067 (resume_1): Set target's threads_executing flag. Consider resume
14068 target.
14069 (commit_resume_all_targets): New.
14070 (proceed): Also consider resume target. Skip threads of inferiors
14071 with no execution. Commit resumtion in all targets.
14072 (start_remote): Pass current inferior to wait_for_inferior.
14073 (infrun_thread_stop_requested): Consider target as well. Pass
14074 thread_info pointer to clear_inline_frame_state instead of ptid.
14075 (infrun_thread_thread_exit): Consider target as well.
14076 (random_pending_event_thread): New inferior parameter. Use it.
14077 (do_target_wait): Rename to ...
14078 (do_target_wait_1): ... this. Add inferior parameter, and pass it
14079 down.
14080 (threads_are_resumed_pending_p, do_target_wait): New.
14081 (prepare_for_detach): Adjust calls.
14082 (wait_for_inferior): New inferior parameter. Handle it. Use
14083 do_target_wait_1 instead of do_target_wait.
14084 (fetch_inferior_event): Adjust. Switch to representative
14085 inferior. Pass target down.
14086 (set_last_target_status): Add process_stratum_target parameter.
14087 Save target in global.
14088 (get_last_target_status): Add process_stratum_target parameter and
14089 handle it.
14090 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
14091 (context_switch): Check inferior_ptid == null_ptid before calling
14092 inferior_thread().
14093 (get_inferior_stop_soon): Pass down target.
14094 (wait_one): Rename to ...
14095 (poll_one_curr_target): ... this.
14096 (struct wait_one_event): New.
14097 (wait_one): New.
14098 (stop_all_threads): Adjust.
14099 (handle_no_resumed, handle_inferior_event): Adjust to consider the
14100 event's target.
14101 (switch_back_to_stepped_thread): Also consider target.
14102 (print_stop_event): Update.
14103 (normal_stop): Update. Also consider the resume target.
14104 * infrun.h (wait_for_inferior): Remove declaration.
14105 (user_visible_resume_target): New declaration.
14106 (get_last_target_status, set_last_target_status): New
14107 process_stratum_target parameter.
14108 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
14109 process_stratum_target parameter, and use it.
14110 (clear_inline_frame_state (thread_info*)): New.
14111 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
14112 process_stratum_target parameter.
14113 (clear_inline_frame_state (thread_info*)): Declare.
14114 * linux-fork.c (delete_checkpoint_command): Pass target down to
14115 find_thread_ptid.
14116 (checkpoint_command): Adjust.
14117 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
14118 instead of just tweaking inferior_ptid.
14119 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
14120 (exit_lwp): Pass target down to find_thread_ptid.
14121 (attach_proc_task_lwp_callback): Pass target down to
14122 add_thread/set_running/set_executing.
14123 (linux_nat_target::attach): Pass target down to
14124 thread_change_ptid.
14125 (get_detach_signal): Pass target down to find_thread_ptid.
14126 Consider last target status's target.
14127 (linux_resume_one_lwp_throw, resume_lwp)
14128 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
14129 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
14130 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
14131 (linux_nat_target::async_wait_fd): New.
14132 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
14133 target down.
14134 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
14135 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
14136 * linux-thread-db.c (struct thread_db_info::process_target): New
14137 field.
14138 (add_thread_db_info): Save target.
14139 (get_thread_db_info): New process_stratum_target parameter. Also
14140 match target.
14141 (delete_thread_db_info): New process_stratum_target parameter.
14142 Also match target.
14143 (thread_from_lwp): Adjust to pass down target.
14144 (thread_db_notice_clone): Pass down target.
14145 (check_thread_db_callback): Pass down target.
14146 (try_thread_db_load_1): Always push the thread_db target.
14147 (try_thread_db_load, record_thread): Pass target down.
14148 (thread_db_target::detach): Pass target down. Always unpush the
14149 thread_db target.
14150 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
14151 target down. Always unpush the thread_db target.
14152 (find_new_threads_callback, thread_db_find_new_threads_2)
14153 (thread_db_target::update_thread_list): Pass target down.
14154 (thread_db_target::pid_to_str): Pass current inferior down.
14155 (thread_db_target::get_thread_local_address): Pass target down.
14156 (thread_db_target::resume, maintenance_check_libthread_db): Pass
14157 target down.
14158 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
14159 * procfs.c (procfs_target::procfs_init_inferior): Declare.
14160 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
14161 (procfs_init_inferior): Rename to ...
14162 (procfs_target::procfs_init_inferior): ... this and adjust.
14163 (procfs_target::create_inferior, procfs_notice_thread)
14164 (procfs_do_thread_registers): Adjust.
14165 * ppc-fbsd-tdep.c: Include "inferior.h".
14166 (ppcfbsd_get_thread_local_address): Pass down target.
14167 * proc-service.c (ps_xfer_memory): Switch current inferior and
14168 program space as well.
14169 (get_ps_regcache): Pass target down.
14170 * process-stratum-target.c
14171 (process_stratum_target::thread_address_space)
14172 (process_stratum_target::thread_architecture): Pass target down.
14173 * process-stratum-target.h
14174 (process_stratum_target::threads_executing): New field.
14175 (as_process_stratum_target): New.
14176 * ravenscar-thread.c
14177 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
14178 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
14179 down.
14180 * record-btrace.c (record_btrace_target::info_record): Adjust.
14181 (record_btrace_target::record_method)
14182 (record_btrace_target::record_is_replaying)
14183 (record_btrace_target::fetch_registers)
14184 (get_thread_current_frame_id, record_btrace_target::resume)
14185 (record_btrace_target::wait, record_btrace_target::stop): Pass
14186 target down.
14187 * record-full.c (record_full_wait_1): Switch to event thread.
14188 Pass target down.
14189 * regcache.c (regcache::regcache)
14190 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
14191 process_stratum_target parameter and handle it.
14192 (current_thread_target): New global.
14193 (get_thread_regcache): Add process_stratum_target parameter and
14194 handle it. Switch inferior before calling target method.
14195 (get_thread_regcache): Pass target down.
14196 (get_thread_regcache_for_ptid): Pass target down.
14197 (registers_changed_ptid): Add process_stratum_target parameter and
14198 handle it.
14199 (registers_changed_thread, registers_changed): Pass target down.
14200 (test_get_thread_arch_aspace_regcache): New.
14201 (current_regcache_test): Define a couple local test_target_ops
14202 instances and use them for testing.
14203 (readwrite_regcache): Pass process_stratum_target parameter.
14204 (cooked_read_test, cooked_write_test): Pass mock_target down.
14205 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
14206 (get_thread_arch_aspace_regcache): Add process_stratum_target
14207 parameter.
14208 (regcache::target): New method.
14209 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
14210 (regcache::registers_changed_ptid): Add process_stratum_target
14211 parameter.
14212 (regcache::m_target): New field.
14213 (registers_changed_ptid): Add process_stratum_target parameter.
14214 * remote.c (remote_state::supports_vCont_probed): New field.
14215 (remote_target::async_wait_fd): New method.
14216 (remote_unpush_and_throw): Add remote_target parameter.
14217 (get_current_remote_target): Adjust.
14218 (remote_target::remote_add_inferior): Push target.
14219 (remote_target::remote_add_thread)
14220 (remote_target::remote_notice_new_inferior)
14221 (get_remote_thread_info): Pass target down.
14222 (remote_target::update_thread_list): Skip threads of inferiors
14223 bound to other targets. (remote_target::close): Don't discard
14224 inferiors. (remote_target::add_current_inferior_and_thread)
14225 (remote_target::process_initial_stop_replies)
14226 (remote_target::start_remote)
14227 (remote_target::remote_serial_quit_handler): Pass down target.
14228 (remote_target::remote_unpush_target): New remote_target
14229 parameter. Unpush the target from all inferiors.
14230 (remote_target::remote_unpush_and_throw): New remote_target
14231 parameter. Pass it down.
14232 (remote_target::open_1): Check whether the current inferior has
14233 execution instead of checking whether any inferior is live. Pass
14234 target down.
14235 (remote_target::remote_detach_1): Pass down target. Use
14236 remote_unpush_target.
14237 (extended_remote_target::attach): Pass down target.
14238 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
14239 (remote_target::append_resumption): Pass down target.
14240 (remote_target::append_pending_thread_resumptions)
14241 (remote_target::remote_resume_with_hc, remote_target::resume)
14242 (remote_target::commit_resume): Pass down target.
14243 (remote_target::remote_stop_ns): Check supports_vCont_probed.
14244 (remote_target::interrupt_query)
14245 (remote_target::remove_new_fork_children)
14246 (remote_target::check_pending_events_prevent_wildcard_vcont)
14247 (remote_target::remote_parse_stop_reply)
14248 (remote_target::process_stop_reply): Pass down target.
14249 (first_remote_resumed_thread): New remote_target parameter. Pass
14250 it down.
14251 (remote_target::wait_as): Pass down target.
14252 (unpush_and_perror): New remote_target parameter. Pass it down.
14253 (remote_target::readchar, remote_target::remote_serial_write)
14254 (remote_target::getpkt_or_notif_sane_1)
14255 (remote_target::kill_new_fork_children, remote_target::kill): Pass
14256 down target.
14257 (remote_target::mourn_inferior): Pass down target. Use
14258 remote_unpush_target.
14259 (remote_target::core_of_thread)
14260 (remote_target::remote_btrace_maybe_reopen): Pass down target.
14261 (remote_target::pid_to_exec_file)
14262 (remote_target::thread_handle_to_thread_info): Pass down target.
14263 (remote_target::async_wait_fd): New.
14264 * riscv-fbsd-tdep.c: Include "inferior.h".
14265 (riscv_fbsd_get_thread_local_address): Pass down target.
14266 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
14267 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
14268 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
14269 Adjust.
14270 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
14271 * solib-svr4.c (enable_break): Pass down target.
14272 * spu-multiarch.c (parse_spufs_run): Pass down target.
14273 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
14274 * target-delegates.c: Regenerate.
14275 * target.c (g_target_stack): Delete.
14276 (current_top_target): Return the current inferior's top target.
14277 (target_has_execution_1): Refer to the passed-in inferior's top
14278 target.
14279 (target_supports_terminal_ours): Check whether the initial
14280 inferior was already created.
14281 (decref_target): New.
14282 (target_stack::push): Incref/decref the target.
14283 (push_target, push_target, unpush_target): Adjust.
14284 (target_stack::unpush): Defref target.
14285 (target_is_pushed): Return bool. Adjust to refer to the current
14286 inferior's target stack.
14287 (dispose_inferior): Delete, and inline parts ...
14288 (target_preopen): ... here. Only dispose of the current inferior.
14289 (target_detach): Hold strong target reference while detaching.
14290 Pass target down.
14291 (target_thread_name): Add assertion.
14292 (target_resume): Pass down target.
14293 (target_ops::beneath, find_target_at): Adjust to refer to the
14294 current inferior's target stack.
14295 (get_dummy_target): New.
14296 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
14297 has a thread running.
14298 (initialize_targets): Rename to ...
14299 (_initialize_target): ... this.
14300 * target.h: Include "gdbsupport/refcounted-object.h".
14301 (struct target_ops): Inherit refcounted_object.
14302 (target_ops::shortname, target_ops::longname): Make const.
14303 (target_ops::async_wait_fd): New method.
14304 (decref_target): Declare.
14305 (struct target_ops_ref_policy): New.
14306 (target_ops_ref): New typedef.
14307 (get_dummy_target): Declare function.
14308 (target_is_pushed): Return bool.
14309 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
14310 (all_matching_threads_iterator::all_matching_threads_iterator):
14311 Handle filter target.
14312 * thread-iter.h (struct all_matching_threads_iterator, struct
14313 all_matching_threads_range, class all_non_exited_threads_range):
14314 Filter by target too. Remove explicit.
14315 * thread.c (threads_executing): Delete.
14316 (inferior_thread): Pass down current inferior.
14317 (clear_thread_inferior_resources): Pass down thread pointer
14318 instead of ptid_t.
14319 (add_thread_silent, add_thread_with_info, add_thread): Add
14320 process_stratum_target parameter. Use it for thread and inferior
14321 searches.
14322 (is_current_thread): New.
14323 (thread_info::deletable): Use it.
14324 (find_thread_ptid, thread_count, in_thread_list)
14325 (thread_change_ptid, set_resumed, set_running): New
14326 process_stratum_target parameter. Pass it down.
14327 (set_executing): New process_stratum_target parameter. Pass it
14328 down. Adjust reference to 'threads_executing'.
14329 (threads_are_executing): New process_stratum_target parameter.
14330 Adjust reference to 'threads_executing'.
14331 (set_stop_requested, finish_thread_state): New
14332 process_stratum_target parameter. Pass it down.
14333 (switch_to_thread): Also match inferior.
14334 (switch_to_thread): New process_stratum_target parameter. Pass it
14335 down.
14336 (update_threads_executing): Reimplement.
14337 * top.c (quit_force): Pop targets from all inferior.
14338 (gdb_init): Don't call initialize_targets.
14339 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
14340 Declare.
14341 (windows_add_thread, windows_delete_thread): Adjust.
14342 (get_windows_debug_event): Rename to ...
14343 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
14344 * tracefile-tfile.c (tfile_target_open): Pass down target.
14345 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
14346 Forward declare.
14347 (switch_to_thread): Add process_stratum_target parameter.
14348 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
14349 parameter. Use it.
14350 (mi_on_resume): Pass target down.
14351 * nat/fork-inferior.c (startup_inferior): Add
14352 process_stratum_target parameter. Pass it down.
14353 * nat/fork-inferior.h (startup_inferior): Add
14354 process_stratum_target parameter.
14355 * python/py-threadevent.c (py_get_event_thread): Pass target down.
14356
14357 2020-01-10 Pedro Alves <palves@redhat.com>
14358
14359 * remote.c (remote_target::start_remote): Don't set inferior_ptid
14360 directly. Instead find the first thread in the thread list and
14361 use switch_to_thread.
14362
14363 2020-01-10 Pedro Alves <palves@redhat.com>
14364
14365 * remote.c (remote_target::remote_add_inferior): Don't bind a
14366 process to the current inferior if the current inferior is already
14367 bound to a process.
14368
14369 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14370 Pedro Alves <palves@redhat.com>
14371
14372 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
14373 If no process is specified, return null_ptid instead of
14374 inferior_ptid.
14375 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
14376 TARGET_WAITKIND_SIGNALLED with no pid.
14377
14378 2020-01-10 Pedro Alves <palves@redhat.com>
14379
14380 * remote.c (first_remote_resumed_thread): New.
14381 (remote_target::wait_as): Use it as default event_ptid instead of
14382 inferior_ptid.
14383
14384 2020-01-10 Pedro Alves <palves@redhat.com>
14385
14386 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
14387
14388 2020-01-10 Pedro Alves <palves@redhat.com>
14389
14390 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
14391 not -1.
14392
14393 2020-01-10 Pedro Alves <palves@redhat.com>
14394
14395 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
14396 ptid to get_last_target_status.
14397 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
14398 ptid to get_last_target_status.
14399 * infcmd.c (continue_command): Don't pass a target_waitstatus to
14400 get_last_target_status.
14401 (info_program_command): Don't pass a target_waitstatus to
14402 get_last_target_status.
14403 * infrun.c (init_wait_for_inferior): Use
14404 nullify_last_target_wait_ptid.
14405 (get_last_target_status): Handle nullptr arguments.
14406 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
14407 (print_stop_event): Don't pass a ptid to get_last_target_status.
14408 (normal_stop): Don't pass a ptid to get_last_target_status.
14409 * infrun.h (get_last_target_status, set_last_target_status): Move
14410 comments here and update.
14411 (nullify_last_target_wait_ptid): Declare.
14412 * linux-fork.c (fork_load_infrun_state): Remove local extern
14413 declaration of nullify_last_target_wait_ptid.
14414 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
14415 to get_last_target_status.
14416
14417 2020-01-10 Pedro Alves <palves@redhat.com>
14418
14419 * gdbthread.h (scoped_restore_current_thread)
14420 <dont_restore, restore, m_dont_restore>: Declare.
14421 * thread.c (thread_alive): Add assertion. Return bool.
14422 (switch_to_thread_if_alive): New.
14423 (prune_threads): Switch inferior/thread.
14424 (print_thread_info_1): Switch thread before calling target methods.
14425 (scoped_restore_current_thread::restore): New, factored out from
14426 ...
14427 (scoped_restore_current_thread::~scoped_restore_current_thread):
14428 ... this.
14429 (scoped_restore_current_thread::scoped_restore_current_thread):
14430 Add assertion.
14431 (thread_apply_all_command, thread_select): Use
14432 switch_to_thread_if_alive.
14433 * infrun.c (proceed, restart_threads, handle_signal_stop)
14434 (switch_back_to_stepped_thread): Switch current thread before
14435 calling target methods.
14436
14437 2020-01-10 Pedro Alves <palves@redhat.com>
14438
14439 * inferior.c (switch_to_inferior_no_thread): New function,
14440 factored out from ...
14441 (inferior_command): ... here.
14442 * inferior.h (switch_to_inferior_no_thread): Declare.
14443 * mi/mi-main.c (run_one_inferior): Use
14444 switch_to_inferior_no_thread.
14445
14446 2020-01-10 Pedro Alves <palves@redhat.com>
14447
14448 * infcmd.c (kill_command): Remove dead code.
14449
14450 2020-01-10 Pedro Alves <palves@redhat.com>
14451
14452 * remote.c (remote_target::mourn_inferior): No longer check
14453 whether the target is running.
14454
14455 2020-01-10 Pedro Alves <palves@redhat.com>
14456
14457 * corelow.c (core_target::has_execution): Change parameter type to
14458 inferior pointer.
14459 * inferior.c (number_of_live_inferiors): Use
14460 inferior::has_execution instead of target_has_execution_1.
14461 * inferior.h (inferior::has_execution): New.
14462 * linux-thread-db.c (thread_db_target::update_thread_list): Use
14463 inferior::has_execution instead of target_has_execution_1.
14464 * process-stratum-target.c
14465 (process_stratum_target::has_execution): Change parameter type to
14466 inferior pointer. Check the inferior's PID instead of
14467 inferior_ptid.
14468 * process-stratum-target.h
14469 (process_stratum_target::has_execution): Change parameter type to
14470 inferior pointer.
14471 * record-full.c (record_full_core_target::has_execution): Change
14472 parameter type to inferior pointer.
14473 * target.c (target_has_execution_1): Change parameter type to
14474 inferior pointer.
14475 (target_has_execution_current): Adjust.
14476 * target.h (target_ops::has_execution): Change parameter type to
14477 inferior pointer.
14478 (target_has_execution_1): Change parameter type to inferior
14479 pointer. Change return type to bool.
14480 * tracefile.h (tracefile_target::has_execution): Change parameter
14481 type to inferior pointer.
14482
14483 2020-01-10 Pedro Alves <palves@redhat.com>
14484
14485 * exceptions.c (print_flush): Remove current_top_target() check.
14486
14487 2020-01-10 Pedro Alves <palves@redhat.com>
14488
14489 * remote.c (show_remote_exec_file): Show the current inferior's
14490 exec-file instead of the command variable's value.
14491
14492 2020-01-10 Pedro Alves <palves@redhat.com>
14493
14494 * record-full.c (record_full_resume_ptid): New global.
14495 (record_full_target::resume): Set it.
14496 (record_full_wait_1): Use record_full_resume_ptid instead of
14497 inferior_ptid.
14498
14499 2020-01-10 Pedro Alves <palves@redhat.com>
14500
14501 * gdbthread.h (scoped_restore_current_thread)
14502 <dont_restore, restore, m_dont_restore>: Declare.
14503 * thread.c (thread_alive): Add assertion. Return bool.
14504 (switch_to_thread_if_alive): New.
14505 (prune_threads): Switch inferior/thread.
14506 (print_thread_info_1): Switch thread before calling target methods.
14507 (scoped_restore_current_thread::restore): New, factored out from
14508 ...
14509 (scoped_restore_current_thread::~scoped_restore_current_thread):
14510 ... this.
14511 (scoped_restore_current_thread::scoped_restore_current_thread):
14512 Add assertion.
14513 (thread_apply_all_command, thread_select): Use
14514 switch_to_thread_if_alive.
14515
14516 2020-01-10 George Barrett <bob@bob131.so>
14517
14518 * stap-probe.c (stap_modify_semaphore): Don't check for null
14519 semaphores.
14520 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
14521 for null semaphores.
14522
14523 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
14524
14525 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
14526 all source windows, and maintain horizontal scroll status while
14527 doing so.
14528
14529 2020-01-09 Tom Tromey <tom@tromey.com>
14530
14531 PR tui/18932:
14532 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
14533 update_source_window, not print_source_lines.
14534
14535 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
14536
14537 * tui/tui.c (tui_enable): Register tui hooks after calling
14538 tui_display_main.
14539
14540 2020-01-09 Christian Biesinger <cbiesinger@google.com>
14541
14542 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
14543
14544 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
14545
14546 * thread.c (print_thread_info_1): Fix indentation.
14547
14548 2020-01-09 Christian Biesinger <cbiesinger@google.com>
14549
14550 * symtab.c (general_symbol_info::compute_and_set_names): Move the
14551 unique_xmalloc_ptr outside the if to always free the demangled name.
14552
14553 2020-01-08 Tom Tromey <tromey@adacore.com>
14554
14555 * xcoffread.c (enter_line_range, read_xcoff_symtab)
14556 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
14557 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
14558 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
14559 Remove.
14560 (section_offsets): New typedef.
14561 * symtab.c (fixup_section, get_msymbol_address): Update.
14562 * symmisc.c (dump_msymbols): Update.
14563 * symfile.h (relative_addr_info_to_section_offsets)
14564 (symfile_map_offsets_to_segments): Update.
14565 * symfile.c (build_section_addr_info_from_objfile)
14566 (init_objfile_sect_indices): Update.
14567 (struct place_section_arg): Change type of "offsets".
14568 (place_section): Update.
14569 (relative_addr_info_to_section_offsets): Change type of
14570 "section_offsets". Remove "num_sections" parameter.
14571 (default_symfile_offsets, syms_from_objfile_1)
14572 (set_objfile_default_section_offset): Update.
14573 (reread_symbols): No need to preserve section offsets by hand.
14574 (symfile_map_offsets_to_segments): Change type of "offsets".
14575 * stap-probe.c (relocate_address): Update.
14576 * stabsread.h (process_one_symbol): Update.
14577 * solib-target.c (struct lm_info_target) <offsets>: Change type.
14578 (solib_target_relocate_section_addresses): Update.
14579 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
14580 Update.
14581 * solib-frv.c (frv_relocate_main_executable): Update.
14582 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
14583 * solib-aix.c (solib_aix_get_section_offsets): Change return
14584 type.
14585 (solib_aix_solib_create_inferior_hook): Update.
14586 * remote.c (remote_target::get_offsets): Update.
14587 * psymtab.c (find_pc_sect_psymtab): Update.
14588 * psympriv.h (struct partial_symbol) <address, text_low,
14589 text_high>: Update.
14590 * objfiles.h (obj_section_offset): Update.
14591 (struct objfile) <section_offsets>: Change type.
14592 <num_sections>: Remove.
14593 (objfile_relocate): Update.
14594 * objfiles.c (entry_point_address_query): Update
14595 (relocate_one_symbol): Change type of "section_offsets".
14596 (objfile_relocate1, objfile_relocate1): Change type of
14597 "new_offsets".
14598 (objfile_rebase1): Update.
14599 * mipsread.c (mipscoff_symfile_read): Update.
14600 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
14601 parameter.
14602 * mdebugread.c (parse_symbol): Change type of "section_offsets".
14603 (parse_external, psymtab_to_symtab_1): Update.
14604 * machoread.c (macho_symfile_offsets): Update.
14605 * ia64-tdep.c (ia64_find_unwind_table): Update.
14606 * hppa-tdep.c (read_unwind_info): Update.
14607 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
14608 * dwarf2read.c (create_addrmap_from_index)
14609 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
14610 (process_psymtab_comp_unit_reader, add_partial_symbol)
14611 (add_partial_subprogram, process_full_comp_unit)
14612 (read_file_scope, read_func_scope, read_lexical_block_scope)
14613 (read_call_site_scope, dwarf2_rnglists_process)
14614 (dwarf2_ranges_process, dwarf2_ranges_read)
14615 (dwarf_decode_lines_1, var_decode_location, new_symbol)
14616 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
14617 Update.
14618 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
14619 Update.
14620 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
14621 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
14622 (process_one_symbol): Change type of "section_offsets".
14623 * ctfread.c (get_objfile_text_range): Update.
14624 * coffread.c (coff_symtab_read, enter_linenos)
14625 (process_coff_symbol): Update.
14626 * coff-pe-read.c (add_pe_forwarded_sym): Update.
14627 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
14628
14629 2020-01-08 Tom Tromey <tromey@adacore.com>
14630
14631 * dwarf2read.c (parse_macro_definition): Use std::string.
14632 (parse_macro_definition): Likewise.
14633
14634 2020-01-08 Tom Tromey <tromey@adacore.com>
14635
14636 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
14637 (ATTR_ALLOC_CHUNK): Remove.
14638
14639 2020-01-08 Tom Tromey <tromey@adacore.com>
14640
14641 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
14642
14643 2020-01-08 Tom Tromey <tromey@adacore.com>
14644
14645 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
14646 (dwarf2_compute_name, open_dwo_file): Likewise.
14647 (process_enumeration_scope): Use std::vector.
14648 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
14649 (partial_die_info::fixup, dwarf2_start_subfile)
14650 (guess_full_die_structure_name, dwarf2_name): Likewise.
14651 (determine_prefix): Update.
14652 (guess_full_die_structure_name): Make return type const.
14653 (partial_die_full_name): Return unique_xmalloc_ptr.
14654 (DW_FIELD_ALLOC_CHUNK): Remove.
14655
14656 2020-01-07 Tom Tromey <tromey@adacore.com>
14657
14658 PR build/24937:
14659 * stap-probe.c (class stap_static_probe_ops): Add constructor.
14660
14661 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
14662
14663 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
14664
14665 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
14666
14667 * stack.c (print_frame_info): Move disassemble_next_line code
14668 inside source_print block.
14669
14670 2020-01-06 Eli Zaretskii <eliz@gnu.org>
14671
14672 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
14673 gdb/signals.h, as we are now using native signal symbols.
14674
14675 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
14676
14677 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
14678 overflow by an early check of content vs threshold.
14679 * tui/tui-source.c (tui_source_window::line_is_displayed):
14680 Likewise.
14681
14682 2020-01-06 Eli Zaretskii <eliz@gnu.org>
14683
14684 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
14685
14686 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
14687
14688 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
14689 export table if no section contains it's RVA.
14690
14691 2020-01-06 Eli Zaretskii <eliz@gnu.org>
14692
14693 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
14694
14695 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
14696
14697 * source.c (print_source_lines_base): Set last_line_listed.
14698
14699 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
14700
14701 * tui/tui-disasm.c: Remove trailing spaces.
14702
14703 2020-01-06 Eli Zaretskii <eliz@gnu.org>
14704 Pedro Alves <palves@redhat.com>
14705
14706 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
14707 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
14708 (windows_gdb_signal_to_target): New function, uses the above
14709 enumeration to convert GDB internal signal codes to equivalent
14710 Windows codes.
14711 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
14712 * windows-nat.c: Include "gdb_wait.h".
14713 (get_windows_debug_event): Extract the fatal exception from the
14714 exit status and convert to the equivalent Posix signal number.
14715 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
14716 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
14717 * gdbsupport/gdb_wait.c: New file, implements
14718 windows_status_to_termsig.
14719 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
14720 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
14721
14722 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
14723
14724 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
14725 show_layout.
14726
14727 2020-01-05 Luis Machado <luis.machado@linaro.org>
14728
14729 * aarch64-linux-nat.c
14730 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
14731 and bfd_mach_aarch64.
14732
14733 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14734
14735 * ui-file.c (stdio_file::can_emit_style_escape)
14736 (tee_file::can_emit_style_escape): Ensure style is used also on
14737 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
14738 to gdb_stdout.
14739 * main.c (set_gdb_data_directory): Use file style to output the
14740 warning that the given pathname is not a directory.
14741 * top.c (show_history_filename, gdb_safe_append_history)
14742 (show_gdb_datadir): Use file style.
14743
14744 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
14745
14746 * solib-target.c (struct lm_info_target):
14747 Change offsets to be a unique_xmalloc_ptr.
14748 (solib_target_relocate_section_addresses): Update.
14749
14750 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
14751
14752 * windows-nat.c (windows_clear_solib): Free so_list linked list.
14753
14754 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
14755
14756 * MAINTAINERS (Write After Approval): Add myself.
14757
14758 2020-01-02 Luis Machado <luis.machado@linaro.org>
14759
14760 * proc-service.c (get_ps_regcache): Remove reference to obsolete
14761 Cell BE architecture.
14762 * target.h (struct target_ops) <thread_architecture>: Likewise.
14763
14764 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
14765
14766 * Makefile.in: Use INSTALL_PROGRAM_ENV.
14767
14768 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
14769
14770 * MAINTAINERS (Write After Approval): Add myself.
14771
14772 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14773
14774 * gdbarch.sh: Update copyright year range of generated files.
14775
14776 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14777
14778 Update copyright year range in all GDB files.
14779
14780 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14781
14782 * copyright.py: Convert to Python 3.
14783
14784 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14785
14786 * copyright.py: Adapt after move of gnulib directory from gdb
14787 directory to toplevel directory.
14788
14789 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14790
14791 * copyright.py (main): Exit if run from the wrong directory.
14792
14793 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14794
14795 * top.c (print_gdb_version): Change copyright year to 2020.
14796
14797 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14798
14799 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
14800
14801 For older changes see ChangeLog-2019.
14802 \f
14803 Local Variables:
14804 mode: change-log
14805 left-margin: 8
14806 fill-column: 74
14807 version-control: never
14808 coding: utf-8
14809 End:
This page took 0.356821 seconds and 5 git commands to generate.