gdb: TYPE_VECTOR -> type::is_vector in amd64-windows-tdep.c
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
2
3 * amd64-windows-tdep.c (amd64_windows_return_value): Use
4 type::is_vector instead of TYPE_VECTOR.
5
6 2020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
7
8 * auto-load.c (auto_load_objfile_script_1): Don't use
9 debugfile_holder as temporary variable when stripping drive
10 letter.
11
12 2020-10-05 Hannes Domani <ssbssa@yahoo.de>
13
14 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
15 Add TYPE_CODE_COMPLEX.
16 (amd64_windows_return_value): Fix types returned via XMM0.
17
18 2020-10-05 Alan Hayward <alan.hayward@arm.com>
19
20 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
21 AArch64/ARM maintainers.
22
23 2020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
24
25 * NEWS: Mention set/show debug event-loop.
26
27 2020-10-02 Tom Tromey <tromey@adacore.com>
28
29 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
30 REG_EXTENDED.
31
32 2020-10-02 Simon Marchi <simon.marchi@efficios.com>
33
34 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
35 * procfs.c (procfs_inferior_created): Remove.
36 (_initialize_procfs): Don't register procfs_inferior_created.
37
38 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
39
40 * async-event.c (invoke_async_signal_handlers): Add debug
41 print.
42 (check_async_event_handlers): Likewise.
43 * event-top.c (show_debug_event_loop): New function.
44 (_initialize_event_top): Register "set debug event-loop"
45 setting.
46
47 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
48
49 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
50 * debug.h: Remove.
51 * infrun.c: Include gdbsupport/common-debug.h.
52 * linux-nat.c: Likewise.
53
54 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
55
56 * async-event.h (create_async_signal_handler): Add name
57 parameter.
58 (create_async_event_handler): Likewise.
59 * async-event.c (struct async_signal_handler) <name>: New field.
60 (struct async_event_handler) <name>: New field.
61 (create_async_signal_handler): Assign name.
62 (create_async_event_handler): Assign name.
63 * event-top.c (async_init_signals): Pass name when creating
64 handler.
65 * infrun.c (_initialize_infrun): Likewise.
66 * record-btrace.c (record_btrace_push_target): Likewise.
67 * record-full.c (record_full_open): Likewise.
68 * remote-notif.c (remote_notif_state_allocate): Likewise.
69 * remote.c (remote_target::open_1): Likewise.
70 * tui/tui-win.c (tui_initialize_win): Likewise.
71
72 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
73
74 * async-event.c (initialize_async_signal_handlers): Pass name to
75 add_file_handler
76 * event-top.c (ui_register_input_event_handler): Likewise.
77 * linux-nat.c (linux_nat_target::async): Likewise.
78 * run-on-main-thread.c (_initialize_run_on_main_thread):
79 Likewise
80 * ser-base.c (reschedule): Likewise.
81 (ser_base_async): Likewise.
82 * tui/tui-io.c: Likewise.
83 * top.h (struct ui) <num>: New field.
84 * top.c (highest_ui_num): New variable.
85 (ui::ui): Initialize num.
86
87 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
88
89 * observable.h <inferior_created>: Remove parameters. Update all
90 listeners.
91 * inferior.h (post_create_inferior): Remove target parameter.
92 Update all callers.
93
94 2020-10-02 Nitika Achra <Nitika.Achra@amd.com>
95
96 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
97 and DW_MACRO_undef_strx.
98 (dwarf_decode_macros): Likewise
99 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
100 which is the value of DW_AT_str_offsets_base.
101 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
102 str_offsets_base.
103
104 2020-10-01 Kamil Rytarowski <n54@gmx.com>
105
106 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
107
108 2020-10-01 Kamil Rytarowski <n54@gmx.com>
109
110 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
111 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
112
113 2020-10-01 Kamil Rytarowski <n54@gmx.com>
114
115 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
116
117 2020-09-30 Tom de Vries <tdevries@suse.de>
118
119 PR symtab/26683
120 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
121
122 2020-09-30 Tom Tromey <tromey@adacore.com>
123
124 * dwarf2/read.c (handle_variant): Use constant_value.
125
126 2020-09-29 Tom Tromey <tom@tromey.com>
127
128 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
129 (read_file_scope, dwarf2_get_pc_bounds)
130 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
131 (read_structure_type, handle_struct_member_die)
132 (read_enumeration_type, read_array_type, read_set_type)
133 (read_tag_pointer_type, read_tag_reference_type)
134 (read_subroutine_type, read_base_type, read_subrange_type)
135 (read_full_die_1, partial_die_info::read)
136 (partial_die_info::read, by, new_symbol)
137 (dwarf2_const_value_data, dwarf2_const_value_attr)
138 (dump_die_shallow, dwarf2_fetch_constant_bytes)
139 (prepare_one_comp_unit): Update.
140 * dwarf2/attribute.h (DW_UNSND): Remove.
141
142 2020-09-29 Tom Tromey <tom@tromey.com>
143
144 * dwarf2/read.c (read_func_scope, prototyped_function_p)
145 (read_subroutine_type, partial_die_info::read)
146 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
147 (dwarf2_add_member_fn): Update.
148 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
149 * dwarf2/attribute.c (attribute::as_boolean): New method.
150
151 2020-09-29 Tom Tromey <tom@tromey.com>
152
153 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
154 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
155 method.
156 * dwarf2/attribute.c (attribute::as_virtuality): New method.
157
158 2020-09-29 Tom Tromey <tom@tromey.com>
159
160 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
161 the attribute's form.
162
163 2020-09-29 Tom Tromey <tom@tromey.com>
164
165 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
166 (dwarf2_add_member_fn): Update.
167 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
168 * dwarf2/attribute.c (attribute::defaulted): New method, from
169 is_valid_DW_AT_defaulted.
170
171 2020-09-29 Tom Tromey <tom@tromey.com>
172
173 * dwarf2/read.c (dw2_get_file_names_reader)
174 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
175 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
176 (dwarf2_symbol_mark_computed): Use as_unsigned.
177 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
178 method.
179 <form_is_section_offset>: Update comment.
180
181 2020-09-29 Tom Tromey <tom@tromey.com>
182
183 * dwarf2/read.c (dwarf2_access_attribute): Rename from
184 dwarf2_default_access_attribute. Look up attribute.
185 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
186 Update.
187
188 2020-09-29 Tom Tromey <tom@tromey.com>
189
190 * dwarf2/read.c (skip_one_die): Update.
191 (read_full_die_1): Change how reprocessing is done.
192 (partial_die_info::read): Update.
193 (read_attribute_value): Remove need_reprocess parameter.
194 (read_attribute): Likewise.
195 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
196 New method.
197
198 2020-09-29 Tom Tromey <tom@tromey.com>
199
200 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
201 (dwarf2_const_value_attr, dump_die_shallow)
202 (dwarf2_fetch_constant_bytes): Update.
203 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
204 comment.
205 <set_address>: New method.
206 (DW_ADDR): Remove.
207 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
208 (attribute::as_string, attribute::as_address): Add assert.
209
210 2020-09-29 Tom Tromey <tom@tromey.com>
211
212 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
213 (read_attribute_reprocess, read_attribute_value): Update.
214 (read_attribute): Clear requires_reprocessing.
215 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
216 form_requires_reprocessing>: New methods.
217 <string_init>: Clear requires_reprocessing.
218 <set_unsigned_reprocess>: New method.
219 <name>: Shrink by one bit.
220 <requires_reprocessing>: New member.
221 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
222 method.
223
224 2020-09-29 Tom Tromey <tom@tromey.com>
225
226 * dwarf2/read.c (read_attribute_value): Update.
227 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
228 set_unsigned>: New methods.
229 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
230
231 2020-09-29 Tom Tromey <tom@tromey.com>
232
233 * dwarf2/read.c (get_alignment, read_array_order)
234 (read_attribute_value, dwarf2_const_value_attr)
235 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
236 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
237 New methods.
238 (DW_SND): Remove.
239
240 2020-09-29 Tom Tromey <tom@tromey.com>
241
242 * dwarf2/read.c (read_attribute_value, lookup_die_type)
243 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
244 Update.
245 * dwarf2/attribute.h (struct attribute) <as_signature,
246 set_signature>: New methods.
247 (DW_SIGNATURE): Remove.
248
249 2020-09-29 Tom Tromey <tom@tromey.com>
250
251 * dwarf2/read.c (read_call_site_scope)
252 (handle_data_member_location, dwarf2_add_member_fn)
253 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
254 (partial_die_info::read, read_attribute_value)
255 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
256 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
257 (dwarf2_symbol_mark_computed): Update.
258 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
259 methods.
260 (DW_BLOCK): Remove.
261 * dwarf2/attribute.c (attribute::form_is_block): Add
262 DW_FORM_data16.
263
264 2020-09-29 Tom Tromey <tom@tromey.com>
265
266 * dwarf2/read.c (read_cutu_die_from_dwo)
267 (read_attribute_reprocess, read_attribute_value, read_attribute)
268 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
269 (dwarf2_fetch_constant_bytes): Update.
270 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
271 <set_string_noncanonical, set_string_canonical>: New methods.
272 <string_is_canonical>: Update comment.
273 <canonical_string_p>: Add assert.
274 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
275 * dwarf2/attribute.c (attribute::form_is_string): New method.
276 (attribute::string): Use it.
277
278 2020-09-29 Tom Tromey <tom@tromey.com>
279
280 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
281 (dump_die_shallow): Use canonical_string_p.
282 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
283 method.
284
285 2020-09-29 Tom Tromey <tom@tromey.com>
286
287 * dwarf2/read.c (partial_die_info::read)
288 (dwarf2_const_value_attr, anonymous_struct_prefix, )
289 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
290 attribute::as_string.
291
292 2020-09-29 Tom Tromey <tom@tromey.com>
293
294 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
295 DW_ADDR.
296 (attribute::string): Don't use DW_STRING.
297 (attribute::get_ref_die_offset): Don't use DW_UNSND.
298 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
299
300 2020-09-29 Tom Tromey <tom@tromey.com>
301
302 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
303 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
304 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
305 * dwarf2/attribute.h (struct attribute): Rename methods.
306 * dwarf2/attribute.c (attribute::as_address): Rename from
307 value_as_address.
308 (attribute::as_string): Rename from value_as_string.
309
310 2020-09-29 Tom Tromey <tom@tromey.com>
311
312 * dwarf2/read.c (partial_die_info::read) <case
313 DW_AT_linkage_name>: Use value_as_string.
314 (dwarf2_string_attr): Use value_as_string.
315 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
316 method.
317 * dwarf2/attribute.c (attribute::value_as_string): New method.
318
319 2020-09-29 Pedro Alves <pedro@palves.net>
320
321 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
322 defined before using '#pragma GCC diagnostic' instead of checking
323 __clang__.
324
325 2020-09-28 Tom Tromey <tom@tromey.com>
326
327 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
328 (handle_signal_stop): Update.
329 * procfs.c (procfs_target::insert_watchpoint): Update.
330 * target.h (target_have_steppable_watchpoint): Now a function.
331
332 2020-09-28 Tom Tromey <tom@tromey.com>
333
334 * infrun.c (set_schedlock_func): Update.
335 * target.h (target_can_lock_scheduler): Now a function.
336
337 2020-09-28 Tom Tromey <tom@tromey.com>
338
339 * inferior.h (class inferior) <has_execution>: Update.
340 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
341 * valops.c (find_function_in_inferior)
342 (value_allocate_space_in_inferior): Update.
343 * top.c (kill_or_detach): Update.
344 * target.c (target_preopen, set_target_permissions): Update.
345 (target_has_execution_current): Remove.
346 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
347 Update.
348 * solib.c (update_solib_list, reload_shared_libraries): Update.
349 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
350 * solib-dsbt.c (enable_break): Update.
351 * score-tdep.c (score7_fetch_inst): Update.
352 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
353 Update.
354 * remote.c (remote_target::start_remote)
355 (remote_target::remote_check_symbols, remote_target::open_1)
356 (remote_target::remote_detach_1, remote_target::verify_memory)
357 (remote_target::xfer_partial, remote_target::read_description)
358 (remote_target::get_min_fast_tracepoint_insn_len): Update.
359 * record-full.c (record_full_open_1): Update.
360 * record-btrace.c (record_btrace_target_open): Update.
361 * objc-lang.c (lookup_objc_class, lookup_child_selector)
362 (value_nsstring): Update.
363 * linux-thread-db.c (add_thread_db_info)
364 (thread_db_find_new_threads_silently, check_thread_db_callback)
365 (try_thread_db_load_1, record_thread): Update.
366 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
367 Update.
368 * linux-fork.c (checkpoint_command): Update.
369 * infrun.c (set_non_stop, set_observer_mode)
370 (check_multi_target_resumption, for_each_just_stopped_thread)
371 (maybe_remove_breakpoints, normal_stop)
372 (class infcall_suspend_state): Update.
373 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
374 (info_program_command, attach_command): Update.
375 * infcall.c (call_function_by_hand_dummy): Update.
376 * inf-loop.c (inferior_event_handler): Update.
377 * gcore.c (gcore_command, derive_heap_segment): Update.
378 * exec.c (exec_file_command): Update.
379 * eval.c (evaluate_subexp): Update.
380 * compile/compile.c (compile_to_object): Update.
381 * cli/cli-dump.c (restore_command): Update.
382 * breakpoint.c (update_watchpoint)
383 (update_inserted_breakpoint_locations)
384 (insert_breakpoint_locations, get_bpstat_thread): Update.
385 * target.h (target_has_execution): Remove macro.
386 (target_has_execution_current): Don't declare.
387 (target_has_execution): Rename from target_has_execution_1. Add
388 argument default.
389
390 2020-09-28 Tom Tromey <tom@tromey.com>
391
392 * mi/mi-main.c (exec_reverse_continue)
393 (mi_cmd_list_target_features): Update.
394 * infrun.c (set_exec_direction_func): Update.
395 * target.c (default_execution_direction): Update.
396 * reverse.c (exec_reverse_once): Update.
397 * target.h (target_can_execute_reverse): Now a function.
398
399 2020-09-28 Tom Tromey <tom@tromey.com>
400
401 * tui/tui-regs.c (tui_get_register)
402 (tui_data_window::show_registers): Update.
403 * thread.c (scoped_restore_current_thread::restore)
404 (scoped_restore_current_thread::scoped_restore_current_thread):
405 Update.
406 * regcache-dump.c (regcache_print): Update.
407 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
408 Update.
409 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
410 * mep-tdep.c (current_me_module, current_options): Update.
411 * linux-thread-db.c (thread_db_load): Update.
412 * infcmd.c (registers_info, info_vector_command)
413 (info_float_command): Update.
414 * ia64-tdep.c (ia64_frame_prev_register)
415 (ia64_sigtramp_frame_prev_register): Update.
416 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
417 * gcore.c (derive_stack_segment): Update.
418 * frame.c (get_current_frame, has_stack_frames): Update.
419 * findvar.c (language_defn::read_var_value): Update.
420 * arm-tdep.c (arm_pc_is_thumb): Update.
421 * target.c (target_has_registers): Rename from
422 target_has_registers_1.
423 * target.h (target_has_registers): Remove macro.
424 (target_has_registers): Rename from target_has_registers_1.
425
426 2020-09-28 Tom Tromey <tom@tromey.com>
427
428 * windows-tdep.c (tlb_make_value): Update.
429 * tui/tui-regs.c (tui_data_window::show_registers): Update.
430 * thread.c (scoped_restore_current_thread::restore)
431 (scoped_restore_current_thread::scoped_restore_current_thread)
432 (thread_command): Update.
433 * stack.c (backtrace_command_1, frame_apply_level_command)
434 (frame_apply_all_command, frame_apply_command): Update.
435 * infrun.c (siginfo_make_value, restore_infcall_control_state):
436 Update.
437 * gcore.c (derive_stack_segment): Update.
438 * frame.c (get_current_frame, has_stack_frames): Update.
439 * auxv.c (info_auxv_command): Update.
440 * ada-tasks.c (ada_build_task_list): Update.
441 * target.c (target_has_stack): Rename from target_has_stack_1.
442 * target.h (target_has_stack): Remove macro.
443 (target_has_stack): Rename from target_has_stack_1.
444
445 2020-09-28 Tom Tromey <tom@tromey.com>
446
447 * target.c (target_has_memory): Rename from target_has_memory_1.
448 * tui/tui-regs.c (tui_data_window::show_registers): Update.
449 * thread.c (scoped_restore_current_thread::restore)
450 (scoped_restore_current_thread::scoped_restore_current_thread):
451 Update.
452 * frame.c (get_current_frame, has_stack_frames): Update.
453 * target.h (target_has_memory): Remove macro.
454 (target_has_memory): Rename from target_has_memory_1.
455
456 2020-09-28 Tom Tromey <tom@tromey.com>
457
458 * target.c (target_has_all_memory_1): Remove.
459 * target.h (target_has_all_memory): Remove define.
460 (target_has_all_memory_1): Don't declare.
461
462 2020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
463
464 * ser-base.c: Adjust comments formatting.
465
466 2020-09-27 Tom Tromey <tom@tromey.com>
467
468 PR tui/25342:
469 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
470
471 2020-09-27 Tom Tromey <tom@tromey.com>
472
473 PR tui/25342:
474 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
475
476 2020-09-27 Tom Tromey <tom@tromey.com>
477
478 * unittests/tui-selftests.c: Update.
479 * tui/tui-winsource.h (struct tui_source_window_base)
480 <extra_margin, show_line_number, refresh_pad>: New methods.
481 <m_max_length, m_pad>: New members.
482 (tui_copy_source_line): Update.
483 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
484 first_col, line_width, ndigits parameters. Add length.
485 (tui_source_window_base::show_source_line): Write to pad. Line
486 number now 0-based.
487 (tui_source_window_base::refresh_pad): New method.
488 (tui_source_window_base::show_source_content): Write to pad. Call
489 refresh_pad.
490 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
491 not refill.
492 (tui_source_window_base::update_exec_info): Call
493 show_line_number.
494 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
495 method.
496 <m_digits>: New member.
497 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
498 and m_max_length.
499 (tui_source_window::show_line_number): New method.
500 * tui/tui-io.h (tui_puts): Fix comment.
501 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
502 m_max_length.
503
504 2020-09-27 Tom Tromey <tom@tromey.com>
505
506 * tui/tui-winsource.c
507 (tui_source_window_base::set_is_exec_point_at): Don't call
508 show_source_line.
509
510 2020-09-27 Tom Tromey <tom@tromey.com>
511
512 * python/py-tui.c (class tui_py_window) <refresh_window>: New
513 method.
514 <erase>: Update.
515 <cursor_x, cursor_y>: Remove.
516 <m_inner_window>: New member.
517 (tui_py_window::rerender): Create inner window.
518 (tui_py_window::output): Write to inner window.
519
520 2020-09-26 Gareth Rees <grees@undo.io> (tiny change)
521
522 PR python/26586
523 * cli/cli-script.c (execute_control_commands): don't set
524 instream to nullptr here as this breaks the from_tty argument
525 to gdb.execute in Python.
526 (execute_user_command): set instream to nullptr here instead.
527
528 2020-09-25 Simon Marchi <simon.marchi@efficios.com>
529
530 * infrun.h (infrun_debug_printf): Fix formatting.
531 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
532
533 2020-09-25 Saagar Jha <saagar@saagarjha.com>
534
535 * compile/compile-object-load.h (struct munmap_list): Add
536 explicitly-defined move constructor.
537
538 2020-09-24 Tom Tromey <tromey@adacore.com>
539
540 PR tui/26638:
541 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
542 method.
543 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
544 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
545 (tui_prev_win): Rewrite.
546
547 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
548
549 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
550 in WOW64 processes as SIGINT.
551 * nat/windows-nat.h: Make wow64_process a shared variable.
552 * windows-nat.c: Remove static wow64_process variable.
553
554 2020-09-23 Tom Tromey <tom@tromey.com>
555
556 PR symtab/25470:
557 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
558 offset and bit size.
559 * printcmd.c (print_scalar_formatted): Handle zero-length
560 integer.
561 (print_scalar_formatted): Use bit_size_differs_p.
562 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
563 constant.
564 (union type_specific): <int_stuff>: New member.
565 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
566 methods.
567 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
568 TYPE_SPECIFIC_FIELD.
569 (recursive_dump_type, copy_type_recursive): Update.
570 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
571 DW_AT_data_bit_offset.
572
573 2020-09-23 Tom Tromey <tom@tromey.com>
574
575 * utils.h (class gdb_argv): Add move operators.
576 <append>: New methods.
577 * compile/compile.c (build_argc_argv): Remove.
578 (compile_args_argc): Remove.
579 (compile_args_argv): Change type.
580 (set_compile_args): Simplify.
581 (append_args): Remove.
582 (filter_args): Remove argcp parameter.
583 (get_args): Return gdb_argv. Simplify.
584 (compile_to_object): Update.
585
586 2020-09-23 Tom Tromey <tom@tromey.com>
587
588 * compile/compile-object-run.c (do_module_cleanup)
589 <~do_module_cleanup> :Remove.
590 (do_module_cleanup): Update.
591 * compile/compile-object-load.h (struct munmap_list): Add move
592 assignment operator.
593 <source_file>: Now a std::string.
594 <munmap_list>: Rename. No longer a pointer.
595 * compile/compile-object-load.c (struct setup_sections_data): Add
596 constructor.
597 <setup_one_section>: Declare.
598 <munmap_list>: Move earlier.
599 <m_bfd>: New member.
600 <m_last_size, m_last_section_first, m_last_prot,
601 m_last_max_alignment>: Rename, add initializers where needed.
602 (setup_sections_data::setup_one_section): Rename from
603 setup_sections. Update.
604 (compile_object_load): Update. Don't use bfd_map_over_sections.
605
606 2020-09-23 Tom Tromey <tom@tromey.com>
607
608 * compile/compile-object-run.c (struct do_module_cleanup): Add
609 parameters to constructor. Update destructor.
610 <source_file, scope, scope_data, out_value_type, out_value_addr,
611 munmap_list_head, objfile_name_string>: Remove.
612 <module>: New member.
613 (do_module_cleanup): Update.
614 (compile_object_run): Update.
615
616 2020-09-23 Tom Tromey <tom@tromey.com>
617
618 * compile/compile.c (eval_compile_command): Update.
619 * compile/compile-object-run.h (compile_object_run): Take a
620 compile_module_up.
621 * compile/compile-object-run.c (compile_object_run): Take a
622 compile_module_up.
623 * compile/compile-object-load.h (struct compile_module): Add
624 constructor, destructor.
625 (compile_module_up): New typedef.
626 (compile_object_load): Return compile_object_up.
627 * compile/compile-object-load.c (compile_object_load): Return
628 compile_module_up.
629
630 2020-09-23 Tom Tromey <tom@tromey.com>
631
632 * compile/compile-object-run.c (struct do_module_cleanup): Add
633 constructor, destructor.
634 <objfile_name_string>: Don't use struct hack.
635 (do_module_cleanup): Use delete.
636 (compile_object_run): Use new.
637
638 2020-09-23 Tom Tromey <tom@tromey.com>
639
640 * compile/compile-cplus-types.c
641 (compile_cplus_convert_struct_or_union): Use std::vector.
642 (compile_cplus_convert_func): Likewise.
643 * compile/compile-c-types.c (convert_func): Use std::vector.
644
645 2020-09-21 Tom Tromey <tromey@adacore.com>
646
647 * sparc-tdep.c (sparc32_skip_prologue): Use
648 skip_prologue_using_sal.
649
650 2020-09-19 Tom Tromey <tom@tromey.com>
651
652 * symfile.c (add_section_size_callback): Remove.
653 (load_one_section): Rename from load_section_callback. Change
654 parameters.
655 (generic_load): Use foreach.
656
657 2020-09-19 Tom Tromey <tom@tromey.com>
658
659 * exec.c (add_to_section_table): Remove.
660 (build_section_table): Use foreach.
661
662 2020-09-19 Tom Tromey <tom@tromey.com>
663
664 * elfread.c (elf_locate_sections): Change parameters.
665 (elf_symfile_read): Use foreach.
666
667 2020-09-19 Tom Tromey <tom@tromey.com>
668
669 * cli/cli-dump.c (struct callback_data): Remove.
670 (restore_one_section): Rename from restore_section_callback.
671 Change parameters.
672 (restore_binary_file): Change parameters.
673 (restore_command): Use foreach.
674
675 2020-09-19 Tom Tromey <tom@tromey.com>
676
677 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
678 (gcore_copy_callback): Likewise.
679 (gcore_memory_sections): Use foreach.
680
681 2020-09-19 Tom Tromey <tom@tromey.com>
682
683 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
684 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
685 parameters.
686 (generic_elf_osabi_sniffer): Use foreach.
687 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
688 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
689
690 2020-09-19 Tom Tromey <tom@tromey.com>
691
692 * dwarf2/read.c (locate_dwz_sections): Change parameters.
693 (dwarf2_get_dwz_file): Use foreach.
694 (dwarf2_locate_dwo_sections): Change parameters.
695 (open_and_init_dwo_file): Use foreach.
696 (dwarf2_locate_common_dwp_sections): Change parameters.
697 (open_and_init_dwp_file): Use foreach.
698
699 2020-09-19 Tom Tromey <tom@tromey.com>
700
701 * symfile.h: (find_lowest_section): Don't declare.
702 * symfile.c (find_lowest_section): Now static. Change
703 parameters.
704 (struct place_section_arg): Remove.
705 (place_section): Change parameters.
706 (addr_info_make_relative): Use foreach.
707 (symfile_dummy_outputs): Remove.
708 (default_symfile_relocate): Use foreach.
709
710 2020-09-19 Tom Tromey <tom@tromey.com>
711
712 * objfiles.c (add_to_objfile_sections): Rename from
713 add_to_objfile_sections_full.
714 (add_to_objfile_sections): Remove.
715 (build_objfile_section_table): Use foreach.
716
717 2020-09-19 Tom Tromey <tom@tromey.com>
718
719 * stap-probe.c (get_stap_base_address_1): Remove.
720 (get_stap_base_address): Use foreach.
721
722 2020-09-19 Tom Tromey <tom@tromey.com>
723
724 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
725 parameters.
726 (gdb_bfd_close_or_warn): Use foreach.
727
728 2020-09-19 Tom Tromey <tom@tromey.com>
729
730 * corelow.c (add_to_thread_list): Change parameters.
731 (core_target_open): Use foreach.
732
733 2020-09-19 Tom Tromey <tom@tromey.com>
734
735 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
736 existing function.
737
738 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
739
740 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
741 for arrays.
742
743 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
744
745 * eval.c: Remove 'f-lang.h' include.
746 (value_f90_subarray): Moved to f-lang.c.
747 (eval_call): Renamed to...
748 (evaluate_subexp_do_call): ...this, is no longer static, header
749 comment moved into header file.
750 (evaluate_funcall): Update call to eval_call.
751 (skip_undetermined_arglist): Moved to f-lang.c.
752 (fortran_value_subarray): Likewise.
753 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
754 moved to evaluate_subexp_f.
755 (calc_f77_array_dims): Moved to f-lang.c
756 * expprint.c (print_subexp_funcall): New function.
757 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
758 moved to print_subexp_f, OP_FUNCALL uses new function.
759 (dump_subexp_body_funcall): New function.
760 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
761 moved to dump_subexp_f, OP_FUNCALL uses new function.
762 * expression.h (evaluate_subexp_do_call): Declare.
763 * f-lang.c (value_f90_subarray): Moved from eval.c.
764 (skip_undetermined_arglist): Likewise.
765 (calc_f77_array_dims): Likewise.
766 (fortran_value_subarray): Likewise.
767 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
768 (operator_length_f): Likewise.
769 (print_subexp_f): Likewise.
770 (dump_subexp_body_f): Likewise.
771 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
772 declaration of this operation to here.
773 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
774 support moved to operator_length_f.
775 * parser-defs.h (dump_subexp_body_funcall): Declare.
776 (print_subexp_funcall): Declare.
777 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
778 fortran-operator.def.
779
780 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
781
782 * eval.c (fortran_value_subarray): New function, content is taken
783 from...
784 (evaluate_subexp_standard): ...here, in two places. Now arrays
785 and strings both call the new function.
786 (calc_f77_array_dims): Add header comment, handle strings.
787
788 2020-09-18 Victor Collod <vcollod@nvidia.com>
789
790 PR gdb/26635
791 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
792 (i386_analyze_prologue): Call i386_skip_endbr.
793
794 2020-09-18 Tom Tromey <tromey@adacore.com>
795
796 * windows-nat.c (struct windows_nat_target) <wait>: Update.
797 (windows_nat_target::wait): Update.
798 * target/wait.h (enum target_wait_flag): New. Use
799 DEF_ENUM_FLAGS_TYPE.
800 * target/target.h (target_wait): Change type of options.
801 * target.h (target_options_to_string, default_target_wait):
802 Update.
803 (struct target_ops) <wait>: Change type of options.
804 * target.c (target_wait, default_target_wait, do_option): Change
805 type of "options".
806 (target_options_to_string): Likewise.
807 * target-delegates.c: Rebuild.
808 * target-debug.h (target_debug_print_target_wait_flags): Rename
809 from target_debug_print_options.
810 * sol-thread.c (class sol_thread_target) <wait>: Update.
811 (sol_thread_target::wait): Update.
812 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
813 (rs6000_nat_target::wait): Update.
814 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
815 Update.
816 (remote_target::wait_ns, remote_target::wait_as): Change type of
817 "options".
818 (remote_target::wait): Update.
819 * remote-sim.c (struct gdbsim_target) <wait>: Update.
820 (gdbsim_target::wait): Update.
821 * record-full.c (class record_full_base_target) <wait>: Update.
822 (record_full_wait_1): Change type of "options".
823 (record_full_base_target::wait): Update.
824 * record-btrace.c (class record_btrace_target) <wait>: Update.
825 (record_btrace_target::wait): Update.
826 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
827 Update.
828 (ravenscar_thread_target::wait): Update.
829 * procfs.c (class procfs_target) <wait>: Update.
830 (procfs_target::wait): Update.
831 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
832 * obsd-nat.c (obsd_nat_target::wait): Update.
833 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
834 (nto_procfs_target::wait): Update.
835 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
836 * nbsd-nat.c (nbsd_wait): Change type of "options".
837 (nbsd_nat_target::wait): Update.
838 * linux-thread-db.c (class thread_db_target) <wait>: Update.
839 (thread_db_target::wait): Update.
840 * linux-nat.h (class linux_nat_target) <wait>: Update.
841 * linux-nat.c (linux_nat_target::wait): Update.
842 (linux_nat_wait_1): Update.
843 * infrun.c (do_target_wait_1, do_target_wait): Change type of
844 "options".
845 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
846 * inf-ptrace.c (inf_ptrace_target::wait): Update.
847 * go32-nat.c (struct go32_nat_target) <wait>: Update.
848 (go32_nat_target::wait): Update.
849 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
850 * gnu-nat.c (gnu_nat_target::wait): Update.
851 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
852 * fbsd-nat.c (fbsd_nat_target::wait): Update.
853 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
854 * darwin-nat.c (darwin_nat_target::wait): Update.
855 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
856 (bsd_uthread_target::wait): Update.
857 * aix-thread.c (class aix_thread_target) <wait>: Update.
858 (aix_thread_target::wait): Update.
859
860 2020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
861
862 * compile/compile-object-run.c (create_copied_type_recursive): New
863 function.
864 (compile_object_run): Use new function.
865
866 2020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
867
868 * NEWS: Mention x86_64 Cygwin core file support.
869
870 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
871
872 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
873 (core_process_module_section): Handle NOTE_INFO_MODULE64.
874
875 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
876
877 * windows-tdep.h: Add prototypes.
878 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
879 (i386_windows_core_pid_to_str): Move and rename ...
880 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
881 (windows_core_pid_to_str): ... and here.
882 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
883
884 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
885 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
886 (amd64_windows_init_abi_common): ... and register.
887
888 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
889
890 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
891 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
892
893 2020-09-18 Pedro Alves <pedro@palves.net>
894
895 PR gdb/26631
896 * thread.c (thread_find_command): Switch inferior before calling
897 target methods.
898
899 2020-09-17 Tom Tromey <tromey@adacore.com>
900
901 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
902 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
903 (tdesc_arch_data_up): New typedef.
904 (tdesc_use_registers, tdesc_data_alloc): Update.
905 (tdesc_data_cleanup): Don't declare.
906 * target-descriptions.c (tdesc_data_alloc): Return a
907 tdesc_arch_data_up.
908 (tdesc_arch_data_deleter::operator()): Rename from
909 tdesc_data_cleanup. Change argument type.
910 (tdesc_use_registers): Change early_data to an rvalue reference.
911 (tdesc_use_registers): Don't use delete.
912 * sparc-tdep.c (sparc32_gdbarch_init): Update.
913 * s390-tdep.c (s390_gdbarch_init): Update.
914 * rx-tdep.c (rx_gdbarch_init): Update.
915 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
916 * riscv-tdep.c (riscv_gdbarch_init): Update.
917 * or1k-tdep.c (or1k_gdbarch_init): Update.
918 * nios2-tdep.c (nios2_gdbarch_init): Update.
919 * nds32-tdep.c (nds32_gdbarch_init): Update.
920 * mips-tdep.c (mips_gdbarch_init): Update.
921 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
922 * m68k-tdep.c (m68k_gdbarch_init): Update.
923 * i386-tdep.c (i386_gdbarch_init): Update.
924 * arm-tdep.c (arm_gdbarch_init): Update.
925 * arc-tdep.c (arc_tdesc_init): Update.
926 (arc_gdbarch_init): Update.
927 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
928
929 2020-09-17 Hannes Domani <ssbssa@yahoo.de>
930
931 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
932 for WOW64 processes.
933
934 2020-09-17 Tom Tromey <tom@tromey.com>
935
936 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
937
938 2020-09-17 Tom Tromey <tom@tromey.com>
939
940 * value.c (preserve_values): Update.
941 * python/py-type.c (save_objfile_types): Update.
942 * guile/scm-type.c (save_objfile_types): Update.
943 * gdbtypes.h (create_copied_types_hash): Return htab_up.
944 * gdbtypes.c (create_copied_types_hash): Return htab_up.
945 * compile/compile-object-run.c (compile_object_run): Update.
946
947 2020-09-17 Tom Tromey <tom@tromey.com>
948
949 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
950 Remove.
951 <m_table>: Now htab_up.
952 * typeprint.c (typedef_hash_table::recursively_update)
953 (typedef_hash_table::add_template_parameters)
954 (typedef_hash_table::typedef_hash_table): Update.
955 (typedef_hash_table::~typedef_hash_table): Remove.
956 (typedef_hash_table::typedef_hash_table)
957 (typedef_hash_table::find_global_typedef)
958 (typedef_hash_table::find_typedef): Update.
959
960 2020-09-17 Tom Tromey <tom@tromey.com>
961
962 * target-descriptions.c (tdesc_use_registers): Use htab_up.
963
964 2020-09-17 Tom Tromey <tom@tromey.com>
965
966 * linespec.c (class decode_compound_collector)
967 <~decode_compound_collector>: Remove.
968 <m_unique_syms>: Now htab_up.
969 (decode_compound_collector::operator ()): Update.
970 (class symtab_collector) <~symtab_collector>: Remove.
971 <m_symtab_table>: Now htab_up.
972 (symtab_collector::operator ()): Update.
973
974 2020-09-17 Tom Tromey <tom@tromey.com>
975
976 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
977 (filename_seen_cache::clear): Update.
978 (~filename_seen_cache): Remove.
979 (filename_seen_cache::seen): Update.
980 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
981 htab_up.
982 <~filename_seen_cache>: Remove.
983 <traverse>: Update.
984
985 2020-09-17 Tom Tromey <tom@tromey.com>
986
987 * completer.c (completion_tracker::discard_completions)
988 (completion_tracker::~completion_tracker)
989 (completion_tracker::maybe_add_completion)
990 (completion_tracker::remove_completion)
991 (completion_tracker::recompute_lowest_common_denominator)
992 (completion_tracker::build_completion_result): Update.
993 * completer.h (class completion_tracker) <have_completions>:
994 Update.
995 <m_entries_hash>: Now htab_up.
996
997 2020-09-17 Tom Tromey <tom@tromey.com>
998
999 * breakpoint.c (ambiguous_names_p): Use htab_up.
1000
1001 2020-09-17 Tom Tromey <tom@tromey.com>
1002
1003 * auto-load.c (struct auto_load_pspace_info)
1004 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
1005 <loaded_script_files, loaded_script_texts>: Change type to
1006 htab_up.
1007 (~auto_load_pspace_info) Remove.
1008 (init_loaded_scripts_info, maybe_add_script_file)
1009 (maybe_add_script_text, auto_load_info_scripts): Update.
1010
1011 2020-09-17 Tom Tromey <tromey@adacore.com>
1012
1013 * c-exp.y (name_obstack): Now static.
1014
1015 2020-09-17 Chungyi Chi <demonic@csie.io>
1016
1017 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
1018
1019 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
1020
1021 * breakpoint.h (init_catchpoint): Change int parameter to bool.
1022 (add_solib_catchpoint): Likewise.
1023 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
1024 to bool.
1025 (add_solib_catchpoint): Change int parameter/variable to bool.
1026 (catch_load_or_unload): Likewise.
1027 (init_catchpoint): Likewise.
1028 (create_fork_vfork_event_catchpoint): Likewise.
1029 (catch_fork_command_1): Likewise.
1030 (catch_exec_command_1): Likewise.
1031
1032 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
1033
1034 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
1035 Change instance_flags to m_instance_flags.
1036
1037 2020-09-16 Tom Tromey <tromey@adacore.com>
1038
1039 PR gdb/26598:
1040 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
1041
1042 2020-09-16 John Baldwin <jhb@FreeBSD.org>
1043
1044 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
1045 PL_FLAG_EXEC.
1046 (fbsd_nat_target::insert_exec_catchpoint)
1047 (fbsd_nat_target::remove_exec_catchpoint): Always define.
1048 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
1049 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
1050
1051 2020-09-16 John Baldwin <jhb@FreeBSD.org>
1052
1053 * configure.ac: Remove check for kinfo_getvmmap().
1054 * configure, config.in: Regenerate.
1055 * fbsd-nat.c (fbsd_read_mapping): Remove
1056 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
1057 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
1058 kinfo_get_vmmap() are always present.
1059
1060 2020-09-16 John Baldwin <jhb@FreeBSD.org>
1061
1062 * fbsd-nat.c: Always include support for
1063 TARGET_OBJECT_SIGNAL_INFO.
1064
1065 2020-09-16 John Baldwin <jhb@FreeBSD.org>
1066
1067 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
1068 sysctl and remove procfs fallback.
1069
1070 2020-09-16 John Baldwin <jhb@FreeBSD.org>
1071
1072 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
1073 * fbsd-nat.h: Likewise.
1074
1075 2020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1076
1077 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
1078 argument.
1079
1080 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1081
1082 * ada-lang.c (ada_language_data): Delete.
1083 (ada_language): Remove references to ada_language_data.
1084 * c-lang.c (c_language_data): Delete.
1085 (c_language): Remove references to c_language_data.
1086 (cplus_language_data): Delete.
1087 (cplus_language): Remove references to cplus_language_data.
1088 (asm_language_data): Delete.
1089 (asm_language): Remove references to asm_language_data.
1090 (minimal_language_data): Delete.
1091 (minimal_language): Remove references to minimal_language_data.
1092 * d-lang.c (d_language_data): Delete.
1093 (d_language): Remove references to d_language_data.
1094 * f-lang.c (f_language_data): Delete.
1095 (f_language): Remove references to f_language_data.
1096 * go-lang.c (go_language_data): Delete.
1097 (go_language): Remove references to go_language_data.
1098 * language.c (unknown_language_data): Delete.
1099 (unknown_language): Remove references to unknown_language_data.
1100 (auto_language_data): Delete.
1101 (auto_language): Remove references to auto_language_data.
1102 * language.h (language_data): Delete struct.
1103 (language_defn): No longer inherit from language_data.
1104 * m2-lang.c (m2_language_data): Delete.
1105 (m2_language): Remove references to m2_language_data.
1106 * objc-lang.c (objc_language_data): Delete.
1107 (objc_language): Remove references to objc_language_data.
1108 * opencl-lang.c (opencl_language_data): Delete.
1109 (opencl_language): Remove references to opencl_language_data.
1110 * p-lang.c (pascal_language_data): Delete.
1111 (pascal_language): Remove references to pascal_language_data.
1112 * rust-lang.c (rust_language_data): Delete.
1113 (rust_language): Remove references to rust_language_data.
1114
1115 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1116
1117 * ada-lang.c (ada_language_data): Remove la_op_print_tab
1118 initializer.
1119 (ada_language::opcode_print_table): New member function.
1120 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
1121 (c_language::opcode_print_table): New member function.
1122 (cplus_language_data): Remove la_op_print_tab initializer.
1123 (cplus_language::opcode_print_table): New member function.
1124 (asm_language_data): Remove la_op_print_tab initializer.
1125 (asm_language::opcode_print_table): New member function.
1126 (minimal_language_data): Remove la_op_print_tab initializer.
1127 (minimal_language::opcode_print_table): New member function.
1128 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
1129 (d_language::opcode_print_table): New member function.
1130 * expprint.c (print_subexp_standard): Update call to
1131 opcode_print_table.
1132 (op_string): Likewise.
1133 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
1134 (f_language::opcode_print_table): New member function.
1135 * go-lang.c (go_language_data): Remove la_op_print_tab
1136 initializer.
1137 (go_language::opcode_print_table): New member function.
1138 * language.c (unknown_language_data): Remove la_op_print_tab
1139 initializer.
1140 (unknown_language::opcode_print_table): New member function.
1141 (auto_language_data): Remove la_op_print_tab initializer.
1142 (auto_language::opcode_print_table): New member function.
1143 * language.h (language_data): Remove la_op_print_tab field.
1144 (language_defn::opcode_print_table): Declare new member function.
1145 * m2-lang.c (m2_language_data): Remove la_op_print_tab
1146 initializer.
1147 (m2_language::opcode_print_table): New member function.
1148 * objc-lang.c (objc_language_data): Remove la_op_print_tab
1149 initializer.
1150 (objc_language::opcode_print_table): New member function.
1151 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
1152 initializer.
1153 (opencl_language::opcode_print_table): New member function.
1154 * p-lang.c (pascal_language_data): Remove la_op_print_tab
1155 initializer.
1156 (pascal_language::opcode_print_table): New member function.
1157 * rust-lang.c (rust_language_data): Remove la_op_print_tab
1158 initializer.
1159 (rust_language::opcode_print_table): New member function.
1160
1161 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1162
1163 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
1164 (ada_language::expression_ops): New member function.
1165 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
1166 (c_language::expression_ops): New member function.
1167 (cplus_language_data): Remove la_exp_desc initializer.
1168 (cplus_language::expression_ops): New member function.
1169 (asm_language_data): Remove la_exp_desc initializer.
1170 (asm_language::expression_ops): New member function.
1171 (minimal_language_data): Remove la_exp_desc initializer.
1172 (minimal_language::expression_ops): New member function.
1173 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
1174 (d_language::expression_ops): New member function.
1175 * eval.c (evaluate_subexp): Update call to expression_ops.
1176 * expprint.c (print_subexp): Likewise.
1177 (op_name): Likewise.
1178 (dump_subexp_body): Likewise.
1179 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
1180 (f_language::expression_ops): New member function.
1181 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
1182 (go_language::expression_ops): New member function.
1183 * language.c (language_defn::expression_ops): New function.
1184 (unknown_language_data): Remove la_exp_desc initializer.
1185 (auto_language_data): Likewise.
1186 * language.h (language_data): Remove la_exp_desc field.
1187 (language_defn::expression_ops): Declare new member function.
1188 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
1189 (m2_language::expression_ops): New member function.
1190 * objc-lang.c (objc_language_data): Remove la_exp_desc
1191 initializer.
1192 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
1193 initializer.
1194 (opencl_language::expression_ops): New member function.
1195 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
1196 * parse.c (operator_length): Update call to expression_ops.
1197 (exp_iterate): Likewise.
1198 * rust-lang.c (rust_language_data): Remove la_exp_desc
1199 initializer.
1200 (ruse_language::expression_ops): New member function.
1201
1202 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1203
1204 * ada-lang.c (ada_language_data): Remove la_varobj_ops
1205 initializer.
1206 (ada_language::varobj_ops): New member function.
1207 * c-lang.c (c_language_data): Remove la_varobj_ops
1208 initializer.
1209 (cplus_language_data): Likewise.
1210 (cplus_language::varobj_ops): New member function.
1211 (asm_language_data): Remove la_varobj_ops initializer.
1212 (minimal_language_data): Likewise.
1213 * d-lang.c (d_language_data): Likewise.
1214 * f-lang.c (f_language_data): Likewise.
1215 * go-lang.c (go_language_data): Likewise.
1216 * language.c (language_defn::varobj_ops): New function.
1217 (unknown_language_data): Remove la_varobj_ops
1218 initializer.
1219 (auto_language_data): Likewise.
1220 * language.h (language_data): Remove la_varobj_ops field.
1221 (language_defn::varobj_ops): Declare new member function.
1222 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
1223 * objc-lang.c (objc_language_data): Likewise.
1224 * opencl-lang.c (opencl_language_data): Likewise.
1225 * p-lang.c (pascal_language_data): Likewise.
1226 * rust-lang.c (rust_language_data): Likewise.
1227 * varobj.c (varobj_create): Update call to varobj_ops.
1228 * varobj.h (default_varobj_ops): Delete define.
1229
1230 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1231
1232 * ada-lang.c (ada_language_data): Remove la_macro_expansion
1233 initializer.
1234 * c-lang.c (c_language_data): Likewise.
1235 (c_language::macro_expansion): New member function.
1236 (cplus_language_data): Likewise.
1237 (cplus_language::macro_expansion): New member function.
1238 (asm_language_data): Likewise.
1239 (asm_language::macro_expansion): New member function.
1240 (minimal_language_data): Likewise.
1241 (minimal_language::macro_expansion): New member function.
1242 * d-lang.c (d_language_data): Remove la_macro_expansion
1243 initializer.
1244 * f-lang.c (f_language_data): Likewise.
1245 * go-lang.c (go_language_data): Likewise.
1246 * language.c (unknown_language_data): Likewise.
1247 (auto_language_data): Likewise.
1248 * language.h (language_data): Remove la_macro_expansion field.
1249 (language_defn::macro_expansion): New member function.
1250 * m2-lang.c (m2_language_data): Remove la_macro_expansion
1251 initializer.
1252 * objc-lang.c (objc_language_data): Likewise.
1253 (objc_language::macro_expansion): New member function.
1254 * opencl-lang.c (opencl_language_data): Likewise.
1255 (opencl_language::macro_expansion): New member function.
1256 * p-lang.c (pascal_language_data): Remove la_macro_expansion
1257 initializer.
1258 * rust-lang.c (rust_language_data): Likewise.
1259 * symtab.c (default_collect_symbol_completion_matches_break_on):
1260 Update call to macro_expansion.
1261
1262 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1263
1264 * ada-lang.c (ada_language_data): Remove la_array_ordering
1265 initializer.
1266 * c-lang.c (c_language_data): Likewise.
1267 (cplus_language_data): Likewise.
1268 (asm_language_data): Likewise.
1269 (minimal_language_data): Likewise.
1270 * d-lang.c (d_language_data): Likewise.
1271 * dwarf2/read.c (read_array_order): Update for call to
1272 array_ordering.
1273 * f-lang.c (f_language_data): Remove la_array_ordering
1274 initializer.
1275 (f_language::array_ordering): New member function.
1276 * go-lang.c (go_language_data): Remove la_array_ordering
1277 initializer.
1278 * language.c (unknown_language_data): Likewise.
1279 (auto_language_data): Likewise.
1280 * language.h (language_data): Delete la_array_ordering field.
1281 (language_defn::array_ordering): New member function.
1282 * m2-lang.c (m2_language_data): Remove la_array_ordering
1283 initializer.
1284 * objc-lang.c (objc_language_data): Likewise.
1285 * opencl-lang.c (opencl_language_data): Likewise.
1286 * p-lang.c (pascal_language_data): Likewise.
1287 * rust-lang.c (rust_language_data): Likewise.
1288
1289 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1290
1291 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
1292 initializer.
1293 * c-lang.c (c_language_data): Likewise.
1294 (cplus_language_data): Likewise.
1295 (asm_language_data): Likewise.
1296 (minimal_language_data): Likewise.
1297 * d-lang.c (d_language_data): Likewise.
1298 * f-lang.c (f_language_data): Likewise.
1299 (f_language::case_sensitivity): New member function.
1300 * go-lang.c (go_language_data): Remove la_case_sensitivity
1301 initializer.
1302 * language.c (enum case_mode): Moved here from language.h.
1303 (case_mode): Make static.
1304 (show_case_command): Update for case_sensitivity being a method.
1305 (set_case_command): Likewise.
1306 (set_range_case): Likewise.
1307 (unknown_language_data): Remove la_case_sensitivity initializer.
1308 (auto_language_data): Likewise.
1309 * language.h (case_mode): Delete, move enum declaration to
1310 language.c.
1311 (language_data): Delete la_case_sensitivity field.
1312 (language_defn::case_sensitivity): New member function.
1313 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
1314 initializer.
1315 * objc-lang.c (objc_language_data): Likewise.
1316 * opencl-lang.c (opencl_language_data): Likewise.
1317 * p-lang.c (pascal_language_data): Likewise.
1318 * rust-lang.c (rust_language_data): Likewise.
1319
1320 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1321
1322 * ada-lang.c (ada_language_data): Remove la_range_check
1323 initializer.
1324 * c-lang.c (c_language_data): Likewise.
1325 (cplus_language_data): Likewise.
1326 (asm_language_data): Likewise.
1327 (minimal_language_data): Likewise.
1328 * d-lang.c (d_language_data): Likewise.
1329 * f-lang.c (f_language_data): Likewise.
1330 (f_language::range_checking_on_by_default): New member function.
1331 * go-lang.c (go_language_data): Remove la_range_check initializer.
1332 * language.c (enum range_mode): Moved here from language.h.
1333 (range_mode): Made static.
1334 (show_range_command): Update to use
1335 range_checking_on_by_default.
1336 (set_range_command): Likewise.
1337 (set_range_case): Likewise.
1338 (unknown_language_data): Remove la_range_check initializer.
1339 (auto_language_data): Likewise.
1340 * language.h (range_mode): Delete. Enum definition moved to
1341 language.c.
1342 (language_data): Remove la_range_check field.
1343 (language_defn::range_checking_on_by_default): New member
1344 function.
1345 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
1346 (m2_language::range_checking_on_by_default): New member function.
1347 * objc-lang.c (objc_language_data): Remove la_range_check
1348 initializer.
1349 * opencl-lang.c (opencl_language_data): Likewise.
1350 * p-lang.c (pascal_language_data): Likewise.
1351 (pascal_language::range_checking_on_by_default): New member
1352 function.
1353 * rust-lang.c (rust_language_data): Remove la_range_check
1354 initializer.
1355 (rust_language::range_checking_on_by_default): New member
1356 function.
1357
1358 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1359
1360 * dwarf2/read.c (dwarf2_physname): Remove special case for
1361 language_go.
1362 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
1363 member function.
1364
1365 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1366
1367 * ada-lang.c (ada_language_data): Remove
1368 la_store_sym_names_in_linkage_form_p initializer.
1369 (ada_language::store_sym_names_in_linkage_form_p): New member
1370 function.
1371 * c-lang.c (c_language_data): Remove
1372 la_store_sym_names_in_linkage_form_p initializer.
1373 (c_language::store_sym_names_in_linkage_form_p): New member
1374 function.
1375 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
1376 initializer.
1377 (asm_language_data): Likewise.
1378 (asm_language::store_sym_names_in_linkage_form_p): New member
1379 function.
1380 (minimal_language_data): Remove
1381 la_store_sym_names_in_linkage_form_p initializer.
1382 (minimal_language::store_sym_names_in_linkage_form_p): New member
1383 function.
1384 * d-lang.c (d_language_data): Remove
1385 la_store_sym_names_in_linkage_form_p initializer.
1386 * dwarf2/read.c (dwarf2_physname): Update call to
1387 store_sym_names_in_linkage_form_p.
1388 * f-lang.c (f_language_data): Remove
1389 la_store_sym_names_in_linkage_form_p initializer.
1390 * go-lang.c (go_language_data): Remove
1391 la_store_sym_names_in_linkage_form_p initializer.
1392 * language.c (unknown_language_data): Remove
1393 la_store_sym_names_in_linkage_form_p initializer.
1394 (unknown_language::store_sym_names_in_linkage_form_p): New member
1395 function.
1396 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
1397 initializer.
1398 (auto_language::store_sym_names_in_linkage_form_p): New member
1399 function.
1400 * language.h (language_data): Remove
1401 la_store_sym_names_in_linkage_form_p member variable.
1402 (language_defn::store_sym_names_in_linkage_form_p): New member
1403 function.
1404 * m2-lang.c (m2_language_data): Remove
1405 la_store_sym_names_in_linkage_form_p initializer.
1406 * objc-lang.c (objc_language_data): Likewise.
1407 * opencl-lang.c (opencl_language_data): Likewise.
1408 * p-lang.c (pascal_language_data): Likewise.
1409 * rust-lang.c (rust_language_data): Likewise.
1410
1411 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1412
1413 * ada-lang.c (ada_language_data): Remove string_lower_bound
1414 initializer.
1415 * c-lang.c (c_language_data): Likewise.
1416 (cplus_language_data): Likewise.
1417 (asm_language_data): Likewise.
1418 (minimal_language_data): Likewise.
1419 * d-lang.c (d_language_data): Likewise.
1420 * f-lang.c (f_language_data): Likewise.
1421 * go-lang.c (go_language_data): Likewise.
1422 * language.c (unknown_language_data): Likewise.
1423 (auto_language_data): Likewise.
1424 * language.h (language_data): Remove string_lower_bound field.
1425 (language_defn::string_lower_bound): New member function.
1426 * m2-lang.c (m2_language_data): Remove string_lower_bound
1427 initializer.
1428 (m2_language::string_lower_bound): New member function.
1429 * objc-lang.c (objc_language_data): Remove string_lower_bound
1430 initializer.
1431 * opencl-lang.c (opencl_language_data): Likewise.
1432 * p-lang.c (pascal_language_data): Likewise.
1433 * rust-lang.c (rust_language_data): Likewise.
1434 * valops.c (value_cstring): Update call to string_lower_bound.
1435 (value_string): Likewise.
1436 * value.c (allocate_repeated_value): Likewise.
1437
1438 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1439
1440 * valops.c (value_repeat): Fix incorrect argument name in comment.
1441
1442 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1443
1444 * ada-lang.c (ada_language_data): Remove c_style_arrays
1445 initializer.
1446 (ada_language::c_style_arrays_p): New member fuction.
1447 * c-lang.c (c_language_data): Remove c_style_arrays
1448 initializer.
1449 (cplus_language_data): Likewise.
1450 (asm_language_data): Likewise.
1451 (minimal_language_data): Likewise.
1452 * d-lang.c (d_language_data): Likewise.
1453 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
1454 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
1455 (f_language::c_style_arrays_p): New member function.
1456 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
1457 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
1458 * language.c (unknown_language_data): Remove c_style_arrays
1459 initializer.
1460 (auto_language_data): Likewise.
1461 * language.h (language_data): Remove c_style_arrays field.
1462 (language_defn::c_style_arrays_p): New member function.
1463 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
1464 (m2_language::c_style_arrays_p): New member function.
1465 * objc-lang.c (objc_language_data): Remove c_style_arrays
1466 initializer.
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 * valarith.c (value_subscript): Update call to c_style_arrays_p,
1471 and update local variable to a bool.
1472 * valops.c (value_cast): Update call to c_style_arrays_p.
1473 (value_array): Likewise.
1474 * value.c (coerce_array): Likewise.
1475
1476 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1477
1478 * ada-lang.c (ada_language_data): Remove la_language initializer.
1479 * c-lang.c (c_language_data): Likewise.
1480 (cplus_language_data): Likewise.
1481 (asm_language_data): Likewise.
1482 (minimal_language_data): Likewise.
1483 * d-lang.c (d_language_data): Likewise.
1484 * f-lang.c (f_language_data): Likewise.
1485 * go-lang.c (go_language_data): Likewise.
1486 * language.c (unknown_language_data): Likewise.
1487 (auto_language_data): Likewise.
1488 * language.h (language_data): Remove la_language field.
1489 (language_defn::language_defn): Initialise la_language field.
1490 (language_defn::la_language): New member variable.
1491 * m2-lang.c (m2_language_data): Remove la_language field.
1492 * objc-lang.c (objc_language_data): Likewise.
1493 * opencl-lang.c (opencl_language_data): Likewise.
1494 * p-lang.c (pascal_language_data): Likewise.
1495 * rust-lang.c (rust_language_data): Likewise.
1496
1497 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1498
1499 * ada-lang.c (ada_extensions): Delete, moved into
1500 ada_language::filename_extensions.
1501 (ada_language_data): Remove la_filename_extensions initializer.
1502 (ada_language::filename_extensions): New member function.
1503 * c-lang.c (c_extensions): Delete, moved into
1504 c_language::filename_extensions.
1505 (c_language_data): Remove la_filename_extensions initializer.
1506 (c_language::filename_extensions): New member function.
1507 (cplus_extensions): Delete, moved into
1508 cplus_language::filename_extensions.
1509 (cplus_language_data): Remove la_filename_extensions initializer.
1510 (cplus_language::filename_extensions): New member function.
1511 (asm_extensions): Delete, moved into
1512 asm_language::filename_extensions.
1513 (asm_language_data): Remove la_filename_extensions initializer.
1514 (asm_language::filename_extensions): New member function.
1515 (minimal_language_data): Remove la_filename_extensions
1516 initializer.
1517 * d-lang.c (d_extensions): Delete, moved into
1518 d_language::filename_extensions.
1519 (d_language_data): Remove la_filename_extensions initializer.
1520 (d_language::filename_extensions): New member function.
1521 * f-lang.c (f_extensions): Delete, moved into
1522 f_language::filename_extensions.
1523 (f_language_data): Remove la_filename_extensions initializer.
1524 (f_language::filename_extensions): New member function.
1525 * go-lang.c (go_language_data): Remove la_filename_extensions
1526 initializer.
1527 * language.c (add_set_language_command): Update now that
1528 filename_extensions returns a vector.
1529 (unknown_language_data): Remove la_filename_extensions
1530 initializer.
1531 (auto_language_data): Likewise.
1532 * language.h (language_data): Remove la_filename_extensions field.
1533 (language_defn::filename_extensions): New member function.
1534 * m2-lang.c (m2_language_data): Remove la_filename_extensions
1535 initializer.
1536 * objc-lang.c (objc_extensions): Delete, moved into
1537 objc_language::filename_extensions.
1538 (objc_language_data): Remove la_filename_extensions initializer.
1539 (objc_language::filename_extensions): New member function.
1540 * opencl-lang.c (opencl_language_data): Remove
1541 la_filename_extensions initializer.
1542 * p-lang.c (pascal_extensions): Delete, moved into
1543 pascal_language::filename_extensions.
1544 (pascal_language_data): Remove la_filename_extensions initializer.
1545 (pascal_language::filename_extensions): New member function.
1546 * rust-lang.c (rust_extensions): Delete, moved into
1547 rust_language::filename_extensions.
1548 (rust_language_data): Remove la_filename_extensions initializer.
1549 (rust_language::filename_extensions): New member function.
1550 * symfile.c (add_filename_language): Add new assert.
1551
1552 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1553
1554 * ada-lang.c (ada_language_data): Remove la_name and
1555 la_natural_name initializers.
1556 (ada_language::name): New member function.
1557 (ada_language::natural_name): New member function.
1558 * c-lang.c (c_language_data): Remove la_name and
1559 la_natural_name initializers.
1560 (c_language::name): New member function.
1561 (c_language::natural_name): New member function.
1562 (cplus_language_data): Remove la_name and
1563 la_natural_name initializers.
1564 (cplus_language::name): New member function.
1565 (cplus_language::natural_name): New member function.
1566 (asm_language_data): Remove la_name and
1567 la_natural_name initializers.
1568 (asm_language::name): New member function.
1569 (asm_language::natural_name): New member function.
1570 (minimal_language_data): Remove la_name and
1571 la_natural_name initializers.
1572 (minimal_language::name): New member function.
1573 (minimal_language::natural_name): New member function.
1574 * compile/compile.c (compile_to_object): Update call to
1575 lanugage_defn::name.
1576 * d-lang.c (d_language_data): Remove la_name and
1577 la_natural_name initializers.
1578 (d_language::name): New member function.
1579 (d_language::natural_name): New member function.
1580 * expprint.c (print_subexp_standard): Update call to
1581 language_defn::name.
1582 (dump_raw_expression): Likewise
1583 (dump_prefix_expression): Likewise.
1584 * f-lang.c (f_language_data): Remove la_name and
1585 la_natural_name initializers.
1586 (f_language::name): New member function.
1587 (f_language::natural_name): New member function.
1588 * go-lang.c (go_language_data): Remove la_name and
1589 la_natural_name initializers.
1590 (go_language::name): New member function.
1591 (go_language::natural_name): New member function.
1592 * language.c (show_language_command): Update call to
1593 language_defn::name.
1594 (set_language_command): Likewise.
1595 (language_enum): Likewise.
1596 (language_str): Likewise.
1597 (add_set_language_command): Likewise, use
1598 language_defn::natural_name in the doc string.
1599 (unknown_language_data): Remove la_name and
1600 la_natural_name initializers.
1601 (unknown_language::name): New member function.
1602 (unknown_language::natural_name): New member function.
1603 (auto_language_data): Remove la_name and
1604 la_natural_name initializers.
1605 (auto_language::name): New member function.
1606 (auto_language::natural_name): New member function.
1607 (language_lookup_primitive_type_as_symbol): Update call to
1608 language_defn::name.
1609 * language.h (language_data): Remove la_name and la_natural_name
1610 member variables.
1611 (language_defn::name): New member function.
1612 (language_defn::natural_name): New member function.
1613 * m2-lang.c (m2_language_data): Remove la_name and
1614 la_natural_name initializers.
1615 (m2_language::name): New member function.
1616 (m2_language::natural_name): New member function.
1617 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
1618 language_defn::natural_name.
1619 * objc-lang.c (objc_language_data): Remove la_name and
1620 la_natural_name initializers.
1621 (objc_language::name): New member function.
1622 (objc_language::natural_name): New member function.
1623 * opencl-lang.c (opencl_language_data): Remove la_name and
1624 la_natural_name initializers.
1625 (opencl_language::name): New member function.
1626 (opencl_language::natural_name): New member function.
1627 * p-lang.c (pascal_language_data): Remove la_name and
1628 la_natural_name initializers.
1629 (pascal_language::name): New member function.
1630 (pascal_language::natural_name): New member function.
1631 * rust-lang.c (rust_language_data): Remove la_name and
1632 la_natural_name initializers.
1633 (rust_language::name): New member function.
1634 (rust_language::natural_name): New member function.
1635 * symtab.c (lookup_language_this): Update call to
1636 language_defn::name.
1637
1638 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1639
1640 * ada-lang.c (ada_language_data): Remove la_name_of_this
1641 initializer.
1642 * ax-gdb.c (gen_expr): Update call to name_of_this.
1643 * c-exp.y (classify_name): Likewise.
1644 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
1645 (cplus_language_data): Likewise.
1646 (cplus_language::name_of_this): New member function.
1647 (asm_language_data): Remove la_name_of_this initializer.
1648 (minimal_language_data): Likewise.
1649 * d-lang.c (d_language_data): Likewise.
1650 (d_language::name_of_this): New member function.
1651 * expprint.c (print_subexp_standard): Update call to name_of_this.
1652 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
1653 * go-lang.c (go_language_data): Likewise.
1654 * language.c (unknown_language_data): Likewise.
1655 (unknown_language::name_of_this): New member function.
1656 (auto_language_data): Remove la_name_of_this initializer.
1657 (auto_language::name_of_this): New member function.
1658 * language.h (language_data): Delete la_name_of_this member
1659 variable.
1660 (language_defn::name_of_this): New member function.
1661 * m2-lang.c (m2_language_data): Remove la_name_of_this
1662 initializer.
1663 * objc-lang.c (objc_language_data): Likewise.
1664 (objc_language::name_of_this): New member function.
1665 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
1666 initializer.
1667 * p-lang.c (pascal_language_data): Likewise.
1668 (pascal_language::name_of_this): New member function.
1669 * rust-lang.c (rust_language_data): Remove la_name_of_this
1670 initializer.
1671 * symtab.c (lookup_language_this): Update call to name_of_this.
1672 (lookup_symbol_aux): Likewise.
1673 * valops.c (value_of_this): Likewise.
1674
1675 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1676
1677 * ada-lang.c (ada_language_data): Remove
1678 la_struct_too_deep_ellipsis initializer.
1679 (ada_language::struct_too_deep_ellipsis): New member function.
1680 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
1681 initializer.
1682 (cplus_language_data): Likewise.
1683 (asm_language_data): Likewise.
1684 (minimal_language_data): Likewise.
1685 * cp-valprint.c (cp_print_value): Update call to
1686 struct_too_deep_ellipsis.
1687 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
1688 initializer.
1689 * f-lang.c (f_language_data): Likewise.
1690 (f_language::struct_too_deep_ellipsis): New member function.
1691 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
1692 initializer.
1693 * language.c (unknown_language_data): Likewise.
1694 (auto_language_data): Likewise.
1695 * language.h (language_data): Delete la_struct_too_deep_ellipsis
1696 member variable.
1697 (language_defn::struct_too_deep_ellipsis): New member function.
1698 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
1699 initializer.Q
1700 * objc-lang.c (objc_language_data): Likewise.
1701 * opencl-lang.c (opencl_language_data): Likewise.
1702 * p-lang.c (pascal_language_data): Likewise.
1703 * rust-lang.c (rust_language_data): Likewise.
1704 * valprint.c (val_print_check_max_depth): Update call to
1705 struct_too_deep_ellipsis.
1706
1707 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
1708
1709 * MAINTAINERS (Write After Approval): Add myself.
1710
1711 2020-09-15 Tom Tromey <tom@tromey.com>
1712
1713 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
1714 Remove.
1715
1716 2020-09-15 Tom Tromey <tom@tromey.com>
1717
1718 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
1719 and TYPE_CODE_METHODPTR cases.
1720 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
1721 (c_value_print_inner): Update.
1722 * valprint.c (generic_value_print_memberptr): New function, from
1723 c_value_print_memberptr.
1724 (generic_value_print): Use it. Call cplus_print_method_ptr.
1725
1726 2020-09-15 Tom Tromey <tromey@adacore.com>
1727
1728 * python/python-internal.h (PyInt_FromLong): Remove define.
1729 * python/py-value.c (convert_value_from_python): Use
1730 gdb_py_object_from_longest.
1731 * python/py-type.c (typy_get_code): Use
1732 gdb_py_object_from_longest.
1733 * python/py-symtab.c (salpy_get_line): Use
1734 gdb_py_object_from_longest.
1735 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
1736 gdb_py_object_from_longest.
1737 * python/py-record.c (recpy_gap_reason_code): Use
1738 gdb_py_object_from_longest.
1739 * python/py-record-btrace.c (recpy_bt_insn_size)
1740 (recpy_bt_func_level, btpy_list_count): Use
1741 gdb_py_object_from_longest.
1742 * python/py-infthread.c (gdbpy_create_ptid_object): Use
1743 gdb_py_object_from_longest. Fix error handling.
1744 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
1745 gdb_py_object_from_longest.
1746 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
1747 gdb_py_object_from_longest.
1748 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
1749 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
1750 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
1751
1752 2020-09-15 Tom Tromey <tromey@adacore.com>
1753
1754 * python/python.c (gdbpy_parameter_value): Use
1755 gdb_py_object_from_ulongest.
1756
1757 2020-09-15 Tom Tromey <tromey@adacore.com>
1758
1759 * python/py-infevents.c (create_register_changed_event_object):
1760 Use gdb_py_object_from_longest.
1761 * python/py-exitedevent.c (create_exited_event_object): Use
1762 gdb_py_object_from_longest.
1763
1764 2020-09-15 Tom Tromey <tromey@adacore.com>
1765
1766 * python/python.c (gdbpy_parameter_value): Use
1767 gdb_py_object_from_longest.
1768 * python/py-type.c (convert_field, typy_range): Use
1769 gdb_py_object_from_longest.
1770 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
1771 gdb_py_object_from_longest.
1772 * python/py-lazy-string.c (stpy_get_length): Use
1773 gdb_py_object_from_longest.
1774 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
1775 gdb_py_object_from_longest.
1776 * python/py-infevents.c (create_memory_changed_event_object): Use
1777 gdb_py_object_from_longest.
1778 * python/py-inferior.c (infpy_get_num): Use
1779 gdb_py_object_from_longest.
1780 (infpy_get_pid): Likewise.
1781
1782 2020-09-15 Tom Tromey <tromey@adacore.com>
1783
1784 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
1785 defines.
1786 * python/py-value.c (valpy_long): Use
1787 gdb_py_object_from_ulongest.
1788 * python/py-symtab.c (salpy_get_pc): Use
1789 gdb_py_object_from_ulongest.
1790 (salpy_get_last): Likewise.
1791 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
1792 gdb_py_object_from_ulongest.
1793 * python/py-lazy-string.c (stpy_get_address): Use
1794 gdb_py_object_from_ulongest.
1795 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
1796 * python/py-arch.c (archpy_disassemble): Use
1797 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
1798 error handling.
1799
1800 2020-09-15 Tom Tromey <tromey@adacore.com>
1801
1802 * python/python-internal.h (gdb_py_long_from_longest): Remove
1803 defines.
1804 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
1805 * python/py-type.c (convert_field, typy_get_sizeof): Use
1806 gdb_py_object_from_longest.
1807 * python/py-record-btrace.c (btpy_list_index): Use
1808 gdb_py_object_from_longest.
1809
1810 2020-09-15 Tom Tromey <tromey@adacore.com>
1811
1812 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
1813 * python/py-record.c (recpy_element_number): Use
1814 gdb_py_object_from_longest.
1815 (recpy_gap_number): Likewise.
1816
1817 2020-09-15 Tom Tromey <tromey@adacore.com>
1818
1819 * top.c (ui::ui): Update.
1820 (highest_ui_num): Remove.
1821 * top.h (struct ui) <num>: Remove.
1822
1823 2020-09-15 Tom Tromey <tromey@adacore.com>
1824
1825 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
1826 * ui-style.c (ansi_regex_text): Now array.
1827 * rust-exp.y (number_regex_text): Now array.
1828 * linespec.c (linespec_quote_characters): Now array.
1829 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
1830 Now arrays.
1831
1832 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1833
1834 * debuginfod-support.c (debuginfod_client_deleter): New.
1835 (debuginfod_client_up): New.
1836 (debuginfod_init): Return debuginfod_client_up.
1837 (debuginfod_source_query): Adjust.
1838 (debuginfod_debuginfo_query): Adjust.
1839
1840 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1841
1842 * debuginfod-support.c (debuginfod_source_query): Use
1843 make_unique_xstrdup.
1844
1845 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1846
1847 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
1848 with `type::instance_flags`.
1849
1850 2020-09-14 Michael Mullin <masmullin@gmail.com>
1851
1852 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
1853 Remove baton parameter.
1854
1855 2020-09-14 Pedro Alves <pedro@palves.net>
1856
1857 * Makefile.in (SELFTESTS_SRCS): Add
1858 unittests/enum-flags-selftests.c.
1859 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
1860 btrace_function_flags instead of enum btrace_function_flag.
1861 * compile/compile-c-types.c (convert_qualified): Use
1862 enum_flags::raw.
1863 * compile/compile-cplus-symbols.c (convert_one_symbol)
1864 (convert_symbol_bmsym):
1865 * compile/compile-cplus-types.c (compile_cplus_convert_method)
1866 (compile_cplus_convert_struct_or_union_methods)
1867 (compile_cplus_instance::convert_qualified_base):
1868 * go-exp.y (parse_string_or_char): Add cast to int.
1869 * unittests/enum-flags-selftests.c: New file.
1870 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
1871 type to btrace_thread_flags from btrace_thread_flag.
1872 (record_btrace_cancel_resume, record_btrace_step_thread): Change
1873 local's type to btrace_thread_flags from btrace_thread_flag. Add
1874 cast in DEBUG call.
1875
1876 2020-09-14 Pedro Alves <pedro@palves.net>
1877
1878 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
1879 * gdbtypes.c (address_space_name_to_int): Rename to ...
1880 (address_space_name_to_type_instance_flags): ... this.
1881 (address_space_int_to_name): Rename to ...
1882 (address_space_type_instance_flags_to_name): ... this.
1883 * gdbtypes.h (address_space_name_to_int): Rename to ...
1884 (address_space_name_to_type_instance_flags): ... this.
1885 (address_space_int_to_name): Rename to ...
1886 (address_space_type_instance_flags_to_name): ... this.
1887 * type-stack.c (type_stack::insert): Adjust to rename.
1888 * type-stack.h (type_stack::insert): Likewise.
1889
1890 2020-09-14 Pedro Alves <pedro@palves.net>
1891 Andrew Burgess <andrew.burgess@embecosm.com>
1892
1893 * avr-tdep.c (avr_address_class_type_flags): Return
1894 type_instance_flags.
1895 (avr_address_class_type_flags_to_name): Take a
1896 type_instance_flags.
1897 (avr_address_class_name_to_type_flags): Return bool and take a
1898 type_instance_flags.
1899 * d-lang.c (build_d_types): Use type::set_instance_flags.
1900 * ft32-tdep.c (ft32_address_class_type_flags): Return
1901 type_instance_flags.
1902 (ft32_address_class_type_flags_to_name): Take a
1903 type_instance_flags.
1904 (ft32_address_class_name_to_type_flags): Return bool and take a
1905 type_instance_flags.
1906 (ft32_gdbarch_init): Use type::set_instance_flags.
1907 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
1908 * gdbarch.h, gdbarch.c: Regenerate.
1909 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
1910 (address_class_name_to_type_flags): Use type_instance_flags and
1911 bool.
1912 * gdbtypes.c (address_space_name_to_int)
1913 (address_space_int_to_name, make_qualified_type): Use
1914 type_instance_flags.
1915 (make_qualified_type): Use type_instance_flags and
1916 type::set_instance_flags.
1917 (make_type_with_address_space, make_cv_type, make_vector_type)
1918 (check_typedef): Use type_instance_flags.
1919 (recursive_dump_type): Cast type_instance_flags to unsigned for
1920 printing.
1921 (copy_type_recursive): Use type::set_instance_flags.
1922 (gdbtypes_post_init): Use type::set_instance_flags.
1923 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
1924 <m_instance_flags>: ... this.
1925 <instance_flags, set_instance_flags>: New methods.
1926 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
1927 (SET_TYPE_INSTANCE_FLAGS): New.
1928 (address_space_name_to_int, address_space_int_to_name)
1929 (make_type_with_address_space): Pass flags using
1930 type_instance_flags instead of int.
1931 * stabsread.c (cleanup_undefined_types_noname): Use
1932 type::set_instance_flags.
1933 * s390-tdep.c (s390_address_class_type_flags): Return
1934 type_instance_flags.
1935 (s390_address_class_type_flags_to_name): Take a
1936 type_instance_flags.
1937 (s390_address_class_name_to_type_flags): Return bool and take a
1938 type_instance_flags.
1939 * type-stack.c (type_stack::follow_types): Use
1940 type_instance_flags.
1941 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
1942
1943 2020-09-14 Tom Tromey <tromey@adacore.com>
1944
1945 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
1946 * x86-tdep.c (x86_is_thunk_register_name)
1947 (x86_in_indirect_branch_thunk): Update.
1948 * sparc64-tdep.c (sparc64_fpu_register_names)
1949 (sparc64_cp0_register_names, sparc64_register_names)
1950 (sparc64_pseudo_register_names): Now const.
1951 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
1952 cp0_registers_num>: Now const.
1953 * sparc-tdep.c (sparc_core_register_names)
1954 (sparc32_fpu_register_names, sparc32_cp0_register_names)
1955 (sparc32_pseudo_register_names): Now const.
1956 (validate_tdesc_registers): Update.
1957 * rust-lang.c (rust_extensions): Now const.
1958 * p-lang.c (p_extensions): Now const.
1959 * objc-lang.c (objc_extensions): Now const.
1960 * nto-tdep.c (nto_thread_state_str): Now const.
1961 * moxie-tdep.c (moxie_register_names): Now const.
1962 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
1963 Now const.
1964 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
1965 (mips_linux_reg_names): Now const.
1966 (mips_gdbarch_init): Update.
1967 * microblaze-tdep.c (microblaze_register_names): Now const.
1968 * m68k-tdep.c (m68k_register_names): Now const.
1969 * m32r-tdep.c (m32r_register_names): Now const.
1970 * ia64-tdep.c (ia64_register_names): Now const.
1971 * i386-tdep.h (struct gdbarch_tdep) <register_names,
1972 ymmh_register_names, ymm16h_regnum, mpx_register_names,
1973 k_register_names, zmmh_register_names, xmm_avx512_register_names,
1974 ymm_avx512_register_names, pkeys_register_names>: Now const.
1975 * i386-tdep.c (i386_register_names, i386_zmm_names)
1976 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
1977 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
1978 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
1979 * f-lang.c (f_extensions): Now const.
1980 * d-lang.c (d_extensions): Now const.
1981 * csky-tdep.c (csky_register_names): Now const.
1982 * charset.c (default_charset_names, charset_enum): Now const.
1983 (_initialize_charset): Update.
1984 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
1985 const.
1986 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
1987 (bsd_uthread_solib_loaded): Update.
1988 (bsd_uthread_state): Now const.
1989 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
1990 (amd64_ymm_avx512_names, amd64_ymmh_names)
1991 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
1992 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
1993 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
1994 (amd64_dword_names): Now const.
1995 * agent.c (can_use_agent_enum): Now const.
1996 * ada-tasks.c (task_states, long_task_states): Now const.
1997 * ada-lang.c (known_runtime_file_name_patterns)
1998 (known_auxiliary_function_name_patterns, attribute_names)
1999 (standard_exc, ada_extensions): Now const.
2000
2001 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2002
2003 * bcache.h (struct bcache) <bcache>: Remove constructor.
2004 <m_hash_function, m_compare_function>: Remove.
2005 <~bcache>: Make virtual.
2006 <compare>: Remove static method, introduce virtual method.
2007 <default_hash>: Remove.
2008 <hash>: New virtual method.
2009 * bcache.c (bcache::expand_hash_table): Update.
2010 (bcache::insert): Update.
2011 (bcache::hash): New.
2012 (bcache::compare): Update comment and parameter names.
2013 * gdbtypes.c (types_deeply_equal): Update.
2014 * psymtab.h (struct psymbol_bcache): New struct.
2015 (class psymtab_storage) <psymtab_storage>: Make default.
2016 <psymbol_cache>: Change type to psymbol_bcache.
2017 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
2018 (psymbol_hash): Change to...
2019 (psymbol_bcache::hash): ... this.
2020 (psymbol_compare): Change to...
2021 (psymbol_bcache::compare): ... this.
2022
2023 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2024
2025 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
2026 checking for initial lwp.
2027
2028 2020-09-14 Tom Tromey <tromey@adacore.com>
2029
2030 * m68k-tdep.c (m68k_extract_return_value): Use
2031 pointer_result_regnum.
2032 (m68k_store_return_value): Likewise.
2033 (m68k_reg_struct_return_p): Handle vectors and arrays.
2034 (m68k_return_value): Handle arrays.
2035 (m68k_svr4_return_value): Fix single-element aggregate handling.
2036 Handle long double. Adjust for embedded ABI.
2037 (m68k_svr4_init_abi): Set pointer_result_regnum.
2038 (m68k_embedded_init_abi): New function.
2039 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
2040 (m68k_osabi_sniffer): New function.
2041 (_initialize_m68k_tdep): Register osabi sniffer.
2042 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
2043 member.
2044
2045 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2046
2047 * xml-support.c (xml_fetch_content_from_file): Replace xfree
2048 with gdb::unique_xmalloc_ptr<char>.
2049
2050 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2051
2052 * xml-support.h (xml_fetch_another): Change type to be a
2053 function_view.
2054 (xml_process_xincludes): Remove baton parameter.
2055 (xml_fetch_content_from_file): Change baton parameter to
2056 dirname.
2057 * xml-support.c (struct xinclude_parsing_data)
2058 <xinclude_parsing_data>: Remove baton parameter.
2059 <fetcher_baton>: Remove.
2060 (xinclude_start_include): Adjust.
2061 (xml_process_xincludes): Adjust.
2062 (xml_fetch_content_from_file): Replace baton parameter with
2063 dirname.
2064 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
2065 (xml_init_syscalls_info): Use a lambda.
2066 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
2067 (file_read_description_xml): Use a lambda.
2068 (fetch_available_features_from_target): Change baton parameter
2069 to target_ops.
2070 (target_read_description_xml): Use a lambda.
2071 (target_fetch_description_xml): Use a lambda.
2072 (string_read_description_xml): Update.
2073
2074 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2075
2076 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
2077 uses with type::endianity_is_not_default.
2078
2079 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2080
2081 * gdbtypes.h (struct type) <endianity_is_not_default,
2082 set_endianity_is_not_default>: New methods.
2083 (TYPE_ENDIANITY_NOT_DEFAULT): Use
2084 type::endianity_is_not_default, change all write call sites to
2085 use type::set_endianity_is_not_default.
2086
2087 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2088
2089 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
2090 uses with type::is_fixed_instance.
2091
2092 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2093
2094 * gdbtypes.h (struct type) <is_fixed_instance,
2095 set_is_fixed_instance>: New methods.
2096 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
2097 write call sites to use type::set_is_fixed_instance.
2098
2099 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2100
2101 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
2102 uses with type::is_gnu_ifunc.
2103
2104 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2105
2106 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
2107 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
2108 use type::set_is_gnu_ifunc.
2109
2110 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2111
2112 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
2113 uses with type::stub_is_supported.
2114
2115 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2116
2117 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
2118 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
2119 use type::set_stub_is_supported.
2120
2121 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2122
2123 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
2124 uses with type::is_vector.
2125
2126 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2127
2128 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
2129 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
2130 use type::set_is_vector.
2131
2132 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2133
2134 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
2135 uses with type::has_varargs.
2136
2137 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2138
2139 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
2140 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
2141 use type::set_has_varargs.
2142
2143 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2144
2145 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
2146 uses with type::is_prototyped.
2147
2148 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2149
2150 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
2151 New methods.
2152 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
2153 call sites to use type::set_is_prototyped.
2154
2155 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2156
2157 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
2158 uses with type::target_is_stub.
2159
2160 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2161
2162 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
2163 New methods.
2164 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
2165 sites to use type::set_target_is_stub.
2166
2167 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2168
2169 * gdbtypes.h (TYPE_STUB): Remove, replace all
2170 uses with type::is_stub.
2171
2172 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2173
2174 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
2175 (TYPE_STUB): Use type::is_stub, change all write call sites to
2176 use type::set_is_stub.
2177
2178 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2179
2180 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
2181 type::has_no_signedness.
2182
2183 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2184
2185 * gdbtypes.h (struct type) <has_no_signedness,
2186 set_has_no_signedness>: New methods.
2187 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
2188 call sites to use type::set_has_no_signedness.
2189
2190 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2191
2192 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
2193 type::is_unsigned.
2194
2195 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2196
2197 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
2198 methods.
2199 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
2200 sites to use type::set_is_unsigned.
2201
2202 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
2203 Adam Renquinha <arenquinha@cimeq.qc.ca>
2204
2205 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
2206 pointer and stack frame offset when unwinding.
2207
2208 2020-09-13 Pedro Alves <pedro@palves.net>
2209
2210 * NEWS: Document "-break-insert --qualified".
2211 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
2212
2213 2020-09-13 Pedro Alves <pedro@palves.net>
2214
2215 * linespec.c (classify_mtype, compare_msyms): Delete.
2216 (search_minsyms_for_name): Remove classification logic. Instead
2217 filter out trampoline symbols if we also found an external
2218 function of the same name.
2219
2220 2020-09-13 Joel Brobecker <brobecker@adacore.com>
2221
2222 * NEWS: Create a new section for the next release branch.
2223 Rename the section of the current branch, now that it has
2224 been cut.
2225
2226 2020-09-13 Joel Brobecker <brobecker@adacore.com>
2227
2228 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
2229 * version.in: Bump version to 11.0.50.DATE-git.
2230
2231 2020-09-12 Joel Brobecker <brobecker@adacore.com>
2232
2233 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
2234
2235 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
2236 Felix Willgerodt <Felix.Willgerodt@intel.com>
2237
2238 * gdbarch.sh: Added bfloat16 type.
2239 * gdbarch.c: Regenerated.
2240 * gdbarch.h: Regenerated.
2241 * gdbtypes.c (floatformats_bfloat16): New struct.
2242 (gdbtypes_post_init): Add builtin_bfloat16.
2243 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
2244 (floatformats_bfloat16): New struct.
2245 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
2246 (i386_ymm_type): Add field "v16_bfloat16"
2247 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
2248 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
2249 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
2250 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
2251 * features/i386/64bit-avx512.xml: Add bfloat16 type.
2252 * features/i386/64bit-avx512.c: Regenerated.
2253 * features/i386/64bit-sse.xml: Add bfloat16 type.
2254 * features/i386/64bit-sse.c: Regenerated.
2255
2256 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
2257
2258 * i386-tdep.c (i386_zmm_type): Fix field names.
2259 (i386_ymm_type): Fix field names.
2260
2261 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2262
2263 * breakpoint.c: Fix typo in the help message of the
2264 "set breakpoint condition-evaluation" command.
2265
2266 2020-09-10 Kamil Rytarowski <n54@gmx.com>
2267
2268 * nbsd-nat.c: Include "nat/netbsd-nat.h".
2269 * (nbsd_nat_target::pid_to_exec_file)
2270 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
2271 (nbsd_nat_target::post_startup_inferior)
2272 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
2273 (nbsd_add_threads): Switch local code to common gdb/nat functions.
2274 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
2275 * (nbsd_thread_lister): Remove.
2276
2277 2020-09-10 Kamil Rytarowski <n54@gmx.com>
2278
2279 * fork-inferior.c (startup_inferior): Avoid double free.
2280
2281 2020-09-10 Kamil Rytarowski <n54@gmx.com>
2282
2283 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
2284 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
2285
2286 2020-09-10 Kamil Rytarowski <n54@gmx.com>
2287
2288 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
2289 * netbsd-nat.c: Include <sys/ptrace.h>.
2290 * (netbsd_nat::enable_proc_events): Add.
2291
2292 2020-09-10 Kamil Rytarowski <n54@gmx.com>
2293
2294 * netbsd-nat.h: Include "gdbsupport/function-view.h".
2295 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
2296 (netbsd_nat::for_each_thread): Add.
2297 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
2298 "gdbsupport/common-debug.h".
2299 * (netbsd_nat::netbsd_thread_lister)
2300 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
2301 (netbsd_nat::for_each_thread): Add.
2302
2303 2020-09-10 Kamil Rytarowski <n54@gmx.com>
2304
2305 * netbsd-nat.h: Include <unistd.h>.
2306 * (netbsd_nat::pid_to_exec_file): Add.
2307 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
2308 * (netbsd_nat::pid_to_exec_file) Add.
2309
2310 2020-09-10 Kamil Rytarowski <n54@gmx.com>
2311
2312 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
2313
2314 2020-09-10 Kamil Rytarowski <n54@gmx.com>
2315
2316 * netbsd-nat.h: New file.
2317 * netbsd-nat.c: Likewise.
2318
2319 2020-09-09 Tom Tromey <tromey@adacore.com>
2320
2321 * ada-lang.c (remove_extra_symbols): Do not increment when
2322 removing an element
2323
2324 2020-09-08 Tom Tromey <tromey@adacore.com>
2325
2326 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
2327
2328 2020-09-08 Tom Tromey <tromey@adacore.com>
2329
2330 PR win32/25302:
2331 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
2332 (gdb_bfd_init_data): New function.
2333 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
2334
2335 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2336
2337 * infrun.c (fetch_inferior_event): Use
2338 `switch_to_target_no_thread` to switch the target.
2339
2340 2020-09-06 Tom Tromey <tom@tromey.com>
2341
2342 * symfile.h (dwarf2_free_objfile): Don't declare.
2343
2344 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2345
2346 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
2347 to match 16 byte real/complex type generated by Flang compiler.
2348
2349 2020-09-03 Tom de Vries <tdevries@suse.de>
2350
2351 PR breakpoint/26546
2352 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
2353 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
2354
2355 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
2356
2357 * maint.c (index_digits): New function.
2358 (struct maint_print_section_data): Remove.
2359 (print_bfd_section_info): Remove print_data parameter, add arg
2360 and index_digits.
2361 (print_objfile_section_info): Likewise.
2362 (print_bfd_section_info_maybe_relocated): Likewise (plus
2363 objfile).
2364 (maintenance_info_sections): Adjust calls.
2365
2366 2020-09-02 Tom Tromey <tromey@adacore.com>
2367
2368 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
2369 for null pointers.
2370 (ada_varobj_adjust_for_child_access): Special-case null pointers.
2371
2372 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
2373
2374 * bcache.h (struct bcache) <insert>: Change type of `added` to
2375 pointer to bool.
2376 * bcache.c (bcache::insert): Likewise.
2377 * gdbtypes.c (check_types_worklist): Adjust.
2378 * psymtab.c (add_psymbol_to_bcache): Adjust.
2379
2380 2020-08-31 Kevin Buettner <kevinb@redhat.com>
2381
2382 * corelow.c (unordered_set): Include.
2383 (class core_target): Add field 'm_core_unavailable_mappings'.
2384 (core_target::build_file_mappings): Print only one warning
2385 per inaccessible file. Add unavailable/broken mappings
2386 to m_core_unavailable_mappings.
2387 (core_target::xfer_partial): Call...
2388 (core_target::xfer_memory_via_mappings): New method.
2389
2390 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
2391
2392 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
2393 type to bool.
2394
2395 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
2396
2397 * dwarf2/read.c (struct field_info): Fix indentation.
2398
2399 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
2400
2401 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
2402 ordering in comment.
2403 * frame.c (frame_id_eq): Fix indentation.
2404
2405 2020-08-31 Scott Linder <scott@scottlinder.com>
2406 Simon Marchi <simon.marchi@efficios.com>
2407
2408 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
2409 inline frame ids in outer frame.
2410
2411 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
2412
2413 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
2414 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
2415 (outer_frame_id): Use FID_STACK_OUTER instead of
2416 FID_STACK_INVALID.
2417 (frame_id_p): Don't check for outer_frame_id.
2418
2419 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
2420
2421 * frame-unwind.c (frame_unwind_got_optimized): Don't set
2422 regnum/frame in value. Call allocate_value_lazy.
2423 * frame.c (frame_unwind_register_value): Use
2424 val_print_not_saved.
2425
2426 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
2427
2428 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
2429
2430 2020-08-29 Pedro Alves <pedro@palves.net>
2431
2432 * progspace.c (print_program_space): Use all_inferiors. Switch to
2433 the inferior before calling target_pid_to_str.
2434
2435 2020-08-28 Tom Tromey <tom@tromey.com>
2436
2437 * xcoffread.c (xcoff_end_psymtab): Update comment.
2438 * dbxread.c (dbx_end_psymtab): Update comment.
2439
2440 2020-08-28 Tom de Vries <tdevries@suse.de>
2441
2442 PR breakpoint/26544
2443 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
2444 event_location.
2445 (create_breakpoint): Same.
2446 (base_breakpoint_decode_location): Same.
2447 (bkpt_create_sals_from_location): Same.
2448 (bkpt_decode_location): Same.
2449 (bkpt_probe_create_sals_from_location): Same.
2450 (bkpt_probe_decode_location): Same.
2451 (tracepoint_create_sals_from_location): Same.
2452 (tracepoint_decode_location): Same.
2453 (tracepoint_probe_decode_location): Same.
2454 (strace_marker_create_sals_from_location): Same.
2455 (strace_marker_decode_location): Same.
2456 (create_sals_from_location_default): Same.
2457 (decode_location_default): Same.
2458 * breakpoint.h (struct breakpoint_ops): Same.
2459 (create_breakpoint): Same.
2460 * linespec.h (decode_line_full): Same.
2461 * linespec.c (decode_line_full): Same. Throw error if
2462 result.size () == 0.
2463
2464 2020-08-27 Pedro Alves <pedro@palves.net>
2465
2466 PR gdb/26524
2467 * breakpoint.c (until_break_fsm) <location_breakpoint,
2468 caller_breakpoint>: Delete fields.
2469 <breakpoints>: New field.
2470 <until_break_fsm>: Adjust to save a breakpoint vector instead of
2471 two individual breakpoints.
2472 (until_break_fsm::should_stop): Loop over breakpoints in the
2473 breakpoint vector.
2474 (until_break_fsm::clean_up): Adjust to clear the breakpoints
2475 vector.
2476 (until_break_command): Handle location expanding into multiple
2477 sals.
2478
2479 2020-08-27 Pedro Alves <pedro@palves.net>
2480
2481 PR gdb/26523
2482 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
2483 bp_until breakpoints user-specified locations. Update intro
2484 comment.
2485
2486 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
2487
2488 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
2489 gdb_bfd_sections): New.
2490 * maint.c (print_bfd_section_info): Change param type to
2491 maint_print_section_data.
2492 (print_objfile_section_info): Likewise.
2493 (print_bfd_section_info_maybe_relocated): Likewise.
2494 (maintenance_info_sections): Use gdb_bfd_sections.
2495
2496 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
2497
2498 * MAINTAINERS: Add ARC target and maintainer.
2499
2500 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
2501
2502 * configure.tgt: ARC support for GNU/Linux.
2503 * Makefile.in (ALL_TARGET_OBJS): Likewise.
2504 * arc-linux-tdep.c: New file.
2505 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
2506 * arc-tdep.c (arc_write_pc): Use it.
2507
2508 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
2509
2510 * arc-tdep.c (arc_check_for_hardware_loop): New.
2511 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
2512
2513 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
2514
2515 * arc-tdep.h: Include "gdbarch.h".
2516
2517 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
2518
2519 * arch/arc.h
2520 (arc_gdbarch_features): New class to stir the selection of target XML.
2521 (arc_create_target_description): Use FEATURES to choose XML target.
2522 (arc_lookup_target_description): Use arc_create_target_description
2523 to create _new_ target descriptions or return the already created
2524 ones if the FEATURES is the same.
2525 * arch/arc.c: Implementation of prototypes described above.
2526 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
2527 (arc_gdbarch_features_init): Initialize the FEATURES struct.
2528 * arc-tdep.c (*_feature_name): Make feature names consistent.
2529 (arc_register_feature): A new struct to hold information about
2530 registers of a particular target/feature.
2531 (arc_check_tdesc_feature): Check if XML provides registers in
2532 compliance with ARC_REGISTER_FEATURE structs.
2533 (arc_update_acc_reg_names): Add aliases for r58 and r59.
2534 (determine_*_reg_feature_set): Which feature name to look for.
2535 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
2536 (mach_type_to_arc_isa): Convert from a set of binutils machine types
2537 to expected ISA enums to be used in arc_gdbarch_features structs.
2538 * features/Makefile (FEATURE_XMLFILES): Add new files.
2539 * gdb/features/arc/v1-aux.c: New file.
2540 * gdb/features/arc/v1-aux.xml: Likewise.
2541 * gdb/features/arc/v1-core.c: Likewise.
2542 * gdb/features/arc/v1-core.xml: Likewise.
2543 * gdb/features/arc/v2-aux.c: Likewise.
2544 * gdb/features/arc/v2-aux.xml: Likewise.
2545 * gdb/features/arc/v2-core.c: Likewise.
2546 * gdb/features/arc/v2-core.xml: Likewise.
2547 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
2548
2549 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
2550 Andrew Burgess <andrew.burgess@embecosm.com>
2551
2552 PR m2/26372
2553 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
2554 an assert. Remove single element array indexing pattern as the
2555 MULTI_SUBSCRIPT support will handle this case too.
2556
2557 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
2558
2559 * value.h (valprint_check_validity): Move declaration from
2560 here...
2561 * valprint.h (valprint_check_validity): ... to here.
2562
2563 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
2564
2565 * debug.h: New file.
2566 * debug.c (debug_prefixed_vprintf): New function.
2567 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
2568 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
2569
2570 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
2571
2572 * infrun.h (infrun_debug_printf_1): New function declaration.
2573 (infrun_debug_printf): New macro.
2574 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
2575 throughout.
2576 (infrun_debug_printf): New function.
2577 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
2578 (handle_jit_event): Likewise.
2579
2580 2020-08-21 Mark Wielaard <mark@klomp.org>
2581
2582 * ada-lex.l: Extend register warnings diagnostics comment for g++.
2583
2584 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
2585
2586 * frame.c (enum class frame_id_status): New.
2587 (struct frame_info) <this_id::p>: Change type to frame_id_status.
2588 (fprintf_frame): Update.
2589 (compute_frame_id): Set frame id status to "computing" on entry.
2590 Set it back to "not_computed" on failure and to "computed" on
2591 success.
2592 (get_frame_id): Assert the frame id is not being computed.
2593 (create_sentinel_frame): Use frame_id_status::COMPUTED.
2594 (create_new_frame): Likewise.
2595 (frame_cleanup_after_sniffer): Update assert.
2596
2597 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2598
2599 * regcache.c (pid_ptid_regcache_map): New type.
2600 (target_ptid_regcache_map): Remove.
2601 (target_pid_ptid_regcache_map): New type.
2602 (regcaches): Change type to target_pid_ptid_regcache_map.
2603 (get_thread_arch_aspace_regcache): Update.
2604 (regcache_thread_ptid_changed): Update, handle pid-like ptid
2605 case.
2606 (regcaches_size): Update.
2607 (regcache_count): Update.
2608 (registers_changed_ptid_target_pid_test): New.
2609 (_initialize_regcache): Register new test.
2610
2611 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2612
2613 * regcache.c (regcache_count): New.
2614 (struct regcache_test_data): New.
2615 (regcache_test_data_up): New.
2616 (populate_regcaches_for_test): New.
2617 (regcaches_test): Remove.
2618 (get_thread_arch_aspace_regcache_test): New.
2619 (registers_changed_ptid_all_test): New.
2620 (registers_changed_ptid_target_test): New.
2621 (registers_changed_ptid_target_ptid_test): New.
2622 (regcache_thread_ptid_changed): Remove regcache_count lambda.
2623 (_initialize_regcache): Register new tests.
2624
2625 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2626
2627 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
2628 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
2629 gdbarch and aspace parameter. Use current inferior's aspace.
2630 Validate regcache's arch value.
2631 (regcaches_test): Update.
2632
2633 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2634
2635 * regcache.c (regcaches_test): Call registers_changed.
2636
2637 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2638
2639 * infrun.c (process_event_stop_test): Fix typo "breapoint".
2640
2641 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2642
2643 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
2644 to find the end of prologue for flang compiled binaries.
2645 * arm-tdep.c (arm_skip_prologue): Likewise.
2646 * i386-tdep.c (i386_skip_prologue): Likewise.
2647 * producer.c (producer_is_llvm): New function.
2648 (producer_parsing_tests): Added new tests for clang/flang.
2649 * producer.h (producer_is_llvm): New declaration.
2650
2651 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
2652
2653 * linux-nat.c (linux_nat_debug_printf): New function.
2654 (linux_nat_debug_printf_1): New macro. Use throughout the file.
2655
2656 2020-08-18 Aaron Merey <amerey@redhat.com>
2657
2658 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
2659 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
2660 (CLIBS): Add DEBUGINFOD_LIBS.
2661
2662 2020-08-17 Sergei Trofimovich <siarheit@google.com>
2663
2664 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
2665 'gdbarch_num_regs'.
2666
2667 2020-08-17 Tom Tromey <tromey@adacore.com>
2668
2669 * ada-varobj.c (ada_varobj_decode_var): Handle case where
2670 ada_get_decoded_value returns NULL.
2671
2672 2020-08-17 Tom Tromey <tromey@adacore.com>
2673
2674 * python/py-inferior.c (infpy_search_memory): Use
2675 gdb_py_object_from_ulongest.
2676 * python/py-infevents.c (create_inferior_call_event_object)
2677 (create_memory_changed_event_object): Use
2678 gdb_py_object_from_ulongest.
2679 * python/py-linetable.c (ltpy_entry_get_pc): Use
2680 gdb_py_object_from_ulongest.
2681
2682 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
2683
2684 * loc.c (class symbol_needs_eval_context): Fix indentation.
2685
2686 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
2687
2688 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
2689 bool.
2690
2691 2020-08-17 Tom de Vries <tdevries@suse.de>
2692
2693 PR gdb/26393
2694 * gdbtypes.c (dump_dynamic_prop): New function.
2695 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
2696
2697 2020-08-15 Tom de Vries <tdevries@suse.de>
2698
2699 PR backtrace/26390
2700 * stack.c (print_frame_args): Temporarily set the selected
2701 frame to FRAME while printing the frame's arguments.
2702
2703 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2704
2705 PR breakpoints/26385
2706 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
2707 Always clear watchpoint with PTRACE_SET_DEBUGREG.
2708
2709 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2710
2711 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
2712 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
2713 and >= to check return value instead of == -1 and != -1.
2714
2715 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
2716
2717 * utils.h (class gdb_argv) <as_array_view>: New method.
2718 * utils.c (gdb_argv_as_array_view_test): New.
2719 (_initialize_utils): Register selftest.
2720 * maint.c (maintenance_selftest): Use the new method.
2721
2722 2020-08-13 Kamil Rytarowski <n54@gmx.com>
2723
2724 * target.h (supports_dumpcore, dumpcore): New
2725 function declarations.
2726 * target.c (supports_dumpcore, dumpcore): New
2727 functions.
2728 * target-delegates.c: Rebuild.
2729 * gcore.c (gcore_command): Use target_supports_dumpcore ()
2730 and target_dumpcore ().
2731
2732 2020-08-13 Aaron Merey <amerey@redhat.com>
2733
2734 * debuginfod-support.c: Replace global variables with user_data.
2735
2736 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
2737
2738 * maint.c (maintenance_selftest): Split args and pass array_view
2739 to run_tests.
2740
2741 2020-08-12 Luis Machado <luis.machado@linaro.org>
2742
2743 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
2744 type's length.
2745 Use %s and pulongest to print the length.
2746
2747 2020-08-12 Pedro Alves <palves@redhat.com>
2748
2749 * NEWS: Move "Multi-target debugging support" item to the
2750 "Changes since GDB 9" section.
2751
2752 2020-08-12 Pedro Alves <palves@redhat.com>
2753
2754 PR gdb/26336
2755 * progspace.c (program_space::remove_objfile): Invalidate the
2756 frame cache.
2757
2758 2020-08-11 Tom de Vries <tdevries@suse.de>
2759
2760 * MAINTAINERS: Mark ms1 as deleted.
2761
2762 2020-08-10 Luis Machado <luis.machado@linaro.org>
2763
2764 PR gdb/26310
2765
2766 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
2767 act accordingly.
2768 (aarch64_analyze_prologue_test): Add more unit tests to exercise
2769 movz/str/stur/stp skipping behavior.
2770
2771 2020-08-10 Luis Machado <luis.machado@linaro.org>
2772
2773 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
2774 struct user_sve_header instead of struct sve_context.
2775
2776 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
2777
2778 * read.h (dwarf2_fetch_die_loc_sect_off,
2779 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
2780 `void *` parameter with function_view.
2781 * read.c (dwarf2_fetch_die_loc_sect_off,
2782 dwarf2_fetch_die_loc_cu_off): Likewise.
2783 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
2784 (per_cu_dwarf_call): Adjust.
2785 (get_frame_address_in_block_wrapper): Remove.
2786 (indirect_synthetic_pointer): Adjust.
2787 (get_ax_pc): Remove.
2788 (dwarf2_compile_expr_to_ax): Adjust.
2789
2790 2020-08-08 Tom de Vries <tdevries@suse.de>
2791
2792 PR build/26344
2793 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
2794 constructor.
2795 * regcache.c (get_thread_arch_aspace_regcache): Same.
2796
2797 2020-08-07 Tom Tromey <tromey@adacore.com>
2798
2799 * ravenscar-thread.c
2800 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
2801 New method.
2802 (ravenscar_thread_target::wait): Check
2803 runtime_initialized.
2804 (ravenscar_thread_target::prepare_to_store)
2805 (ravenscar_thread_target::stopped_by_sw_breakpoint)
2806 (ravenscar_thread_target::stopped_by_hw_breakpoint)
2807 (ravenscar_thread_target::stopped_by_watchpoint)
2808 (ravenscar_thread_target::stopped_data_address)
2809 (ravenscar_thread_target::core_of_thread): Use
2810 scoped_restore_current_thread and
2811 set_base_thread_from_ravenscar_task.
2812
2813 2020-08-07 Tom Tromey <tromey@adacore.com>
2814
2815 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
2816
2817 2020-08-07 Tom Tromey <tromey@adacore.com>
2818
2819 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
2820 update_inferior_ptid before update_thread_list.
2821 (temporarily_change_regcache_ptid): New class.
2822 (ravenscar_thread_target::fetch_registers)
2823 (ravenscar_thread_target::store_registers)
2824 (ravenscar_thread_target::prepare_to_store): Use base thread when
2825 forwarding operation.
2826
2827 2020-08-07 Tom Tromey <tromey@adacore.com>
2828
2829 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
2830 "is_pid" case.
2831
2832 2020-08-07 Tom Tromey <tromey@adacore.com>
2833
2834 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
2835 New methods.
2836 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
2837 first.
2838 (ravenscar_thread_target::add_thread): Rename from
2839 ravenscar_add_thread.
2840 (ravenscar_thread_target::update_thread_list): Use a lambda.
2841 (ravenscar_thread_target::xfer_partial): New method.
2842
2843 2020-08-07 Tom Tromey <tromey@adacore.com>
2844
2845 * ada-lang.h (ada_task_list_iterator_ftype): Now a
2846 gdb::function_view.
2847 (iterate_over_live_ada_tasks): Change type of argument.
2848 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
2849 of argument.
2850
2851 2020-08-07 Tom Tromey <tromey@adacore.com>
2852
2853 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
2854 Remove.
2855 (ravenscar_thread_target::extra_thread_info): Remove.
2856 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
2857 defer to target beneath for non-Ravenscar threads.
2858
2859 2020-08-07 Tom Tromey <tromey@adacore.com>
2860
2861 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
2862 get_base_thread_from_ravenscar_task>: Now methods.
2863 <m_cpu_map>: New member.
2864 (ravenscar_thread_target::get_thread_base_cpu): Rename from
2865 ravenscar_get_thread_base_cpu. Check m_cpu_map.
2866 (ravenscar_thread_target::task_is_currently_active): Update.
2867 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
2868 Now a method.
2869 (ravenscar_thread_target::add_active_thread): Put initial thread
2870 into the m_cpu_map.
2871
2872 2020-08-07 Tom Tromey <tromey@adacore.com>
2873
2874 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
2875 event_ptid.
2876
2877 2020-08-07 Tom Tromey <tromey@adacore.com>
2878
2879 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
2880 runtime_initialized.
2881
2882 2020-08-07 Tom Tromey <tromey@adacore.com>
2883
2884 * ravenscar-thread.c (ravenscar_thread_target): Don't call
2885 add_active_thread.
2886 (ravenscar_thread_target::add_active_thread): Now public.
2887 (ravenscar_inferior_created): Call add_active_thread after pushing
2888 the target.
2889
2890 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
2891
2892 * regcache.c (ptid_regcache_map): New type.
2893 (target_ptid_regcache_map): New type.
2894 (regcaches): Change type to target_ptid_regcache_map.
2895 (get_thread_arch_aspace_regcache): Update to regcaches' new
2896 type.
2897 (regcache_thread_ptid_changed): Likewise.
2898 (registers_changed_ptid): Likewise.
2899 (regcaches_size): Likewise.
2900 (regcaches_test): Update.
2901 (regcache_thread_ptid_changed): Update.
2902 * regcache.h (regcache_up): New type.
2903 * gdbsupport/ptid.h (hash_ptid): New struct.
2904
2905 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
2906
2907 * observable.h (thread_ptid_changed): Add parameter
2908 `process_stratum_target *`.
2909 * infrun.c (infrun_thread_ptid_changed): Add parameter
2910 `process_stratum_target *` and use it.
2911 (selftests): New namespace.
2912 (infrun_thread_ptid_changed): New function.
2913 (_initialize_infrun): Register selftest.
2914 * regcache.c (regcache_thread_ptid_changed): Add parameter
2915 `process_stratum_target *` and use it.
2916 (regcache_thread_ptid_changed): New function.
2917 (_initialize_regcache): Register selftest.
2918 * thread.c (thread_change_ptid): Pass target to
2919 thread_ptid_changed observable.
2920
2921 2020-08-06 Caroline Tice <cmtice@google.com>
2922
2923 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
2924 (struct dwp_sections): Update field comments. Add loclists and
2925 rnglists fields.
2926 (struct virtual_v2_dwo_sections): Rename struct to
2927 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
2928 size & offset fields for loclists and rnglists.
2929 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
2930 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
2931 skipping dummy type units.
2932 (create_dwp_hash_table): Update the large comment above the function to
2933 discuss Version 5 DWP files as well, with references. Update all the
2934 version checks in the function to check for version 5 as well. Add new
2935 section at the end to create dwp hash table for version 5.
2936 (create_dwp_v2_section): Rename function to
2937 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
2938 Add V5 to error message text.
2939 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
2940 into calls to create_dwp_v2_or_v5_section.
2941 (create_dwo_unit_in_dwp_v5): New function.
2942 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
2943 check for version2; add else clause to handle version 5.
2944 (open_and_init_dwo_file): Add code to check dwarf version & only call
2945 create_debug_types_hash_table (with sections.types) if version is not 5;
2946 else call create_debug_type_hash_table, with sections.info.
2947 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
2948 version 5.
2949 (dwarf2_locate_v5_dwp_sections): New function.
2950 (open_and_init_dwp_file): Add else-if clause for version 5 to call
2951 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
2952
2953 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
2954
2955 * regcache.h (class regcache): Remove friend
2956 registers_changed_ptid.
2957 <regcache_thread_ptid_changed>: Remove.
2958 <regcaches>: Remove.
2959 * regcache.c (regcache::regcaches): Rename to...
2960 (regcaches): ... this. Make static.
2961 (get_thread_arch_aspace_regcache): Update.
2962 (regcache::regcache_thread_ptid_changed): Rename to...
2963 (regcache_thread_ptid_changed): ... this. Update.
2964 (class regcache_access): Remove.
2965 (regcaches_test): Update.
2966 (_initialize_regcache): Update.
2967 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
2968 <forward_list>.
2969
2970 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
2971
2972 * regcache.h (class regcache) <current_regcache>: Rename to...
2973 <regcaches>: ... this. Move doc here.
2974 * regcache.c (regcache::current_regcache) Rename to...
2975 (regcache::regcaches): ... this. Move doc to header.
2976 (get_thread_arch_aspace_regcache): Update.
2977 (regcache::regcache_thread_ptid_changed): Update.
2978 (registers_changed_ptid): Update.
2979 (class regcache_access) <current_regcache_size>: Rename to...
2980 <regcaches_size>: ... this.
2981 (current_regcache_test): Rename to...
2982 (regcaches_test): ... this.
2983 (_initialize_regcache): Update.
2984
2985 2020-08-06 Victor Collod <vcollod@nvidia.com>
2986
2987 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
2988
2989 2020-08-05 Kevin Buettner <kevinb@redhat.com>
2990
2991 * corelow.c (core_target::build_file_mappings): Don't output
2992 null pathname in warning.
2993
2994 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
2995
2996 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
2997 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
2998 gdb.dwarf2/dw2-single-line-discriminators.exp,
2999 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
3000
3001 2020-08-05 Tom Tromey <tromey@adacore.com>
3002
3003 PR rust/26197:
3004 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
3005 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
3006 Fix off-by-one and type size errors in ordinary case.
3007
3008 2020-08-05 Tom de Vries <tdevries@suse.de>
3009
3010 * gdbtypes.c (type_not_allocated, type_not_associated): Use
3011 "prop->const_val () == 0" instead of "prop->const_val () != 0".
3012
3013 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
3014
3015 * frame.h (frame_id_p): Return bool.
3016 (frame_id_artificial_p): Return bool.
3017 (frame_id_eq): Return bool.
3018 (has_stack_frames): Return bool.
3019 (get_selected_frame): Fix typo in comment.
3020 (get_frame_pc_if_available): Return bool.
3021 (get_frame_address_in_block_if_available): Return bool.
3022 (get_frame_func_if_available): Return bool.
3023 (read_frame_register_unsigned): Return bool.
3024 (get_frame_register_bytes): Return bool.
3025 (safe_frame_unwind_memory): Return bool.
3026 (deprecated_frame_register_read): Return bool.
3027 (frame_unwinder_is): Return bool.
3028 * frame.c (struct frame_info) <prev_arch::p>: Change type to
3029 bool.
3030 <this_id::p>: Likewise.
3031 <prev_p>: Likewise.
3032 (frame_stash_add): Return bool.
3033 (get_frame_id): Use bool.
3034 (frame_id_build_special) Use bool.
3035 (frame_id_build_unavailable_stack): Use bool.
3036 (frame_id_build): Use bool.
3037 (frame_id_p): Return bool, use true/false instead of 1/0.
3038 (frame_id_artificial_p): Likewise.
3039 (frame_id_eq): Likewise.
3040 (frame_id_inner): Likewise.
3041 (get_frame_func_if_available): Likewise.
3042 (read_frame_register_unsigned): Likewise.
3043 (deprecated_frame_register_read): Likewise.
3044 (get_frame_register_bytes): Likewise.
3045 (has_stack_frames): Likewise.
3046 (inside_main_func): Likewise.
3047 (inside_entry_func): Likewise.
3048 (get_frame_pc_if_available): Likewise.
3049 (get_frame_address_in_block_if_available): Likewise.
3050 (frame_unwinder_is): Likewise.
3051 (safe_frame_unwind_memory): Likewise.
3052 (frame_unwind_arch): Likewise.
3053
3054 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
3055
3056 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
3057 type to cached_copy_status.
3058 (fprintf_frame): Adjust.
3059 (get_frame_func_if_available): Adjust.
3060 (frame_cleanup_after_sniffer): Adjust.
3061
3062 2020-08-04 Mark Wielaard <mark@klomp.org>
3063
3064 * MAINTAINERS (Write After Approval): Update email address.
3065
3066 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3067
3068 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
3069 dynamic_prop::const_val.
3070
3071 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3072
3073 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
3074 dynamic_prop::kind.
3075
3076 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3077
3078 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
3079
3080 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
3081
3082 * configure.tgt: Set gdb_sim for bpf-*-* targets.
3083
3084 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
3085 Jose E. Marchesi <jose.marchesi@oracle.com>
3086
3087 * configure.tgt: Add entry for bpf-*-*.
3088 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
3089 (ALLDEPFILES): Add bpf-tdep.c.
3090 * bpf-tdep.c: New file.
3091 * MAINTAINERS: Add bpf target and maintainer.
3092 * NEWS: Mention the support for the new target.
3093
3094 2020-08-04 Tom de Vries <tdevries@suse.de>
3095
3096 PR symtab/23270
3097 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
3098 Error.
3099
3100 2020-08-03 John Baldwin <jhb@FreeBSD.org>
3101
3102 * syscalls/freebsd.xml: Regenerate.
3103
3104 2020-08-03 John Baldwin <jhb@FreeBSD.org>
3105
3106 * syscalls/update-freebsd.sh: Fix usage and year range.
3107
3108 2020-08-03 Tom de Vries <tdevries@suse.de>
3109
3110 PR symtab/26333
3111 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
3112 DW_LNE_lo_user/DW_LNE_hi_user range.
3113
3114 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
3115
3116 PR ada/26318
3117 * ada-lang.c (ada_modulus): Return 0 if property is not of const
3118 kind.
3119
3120 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3121
3122 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
3123
3124 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3125
3126 * breakpoint.c (set_breakpoint_condition): Update the condition
3127 expressions after checking that the input condition string parses
3128 successfully and does not contain junk at the end.
3129
3130 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3131
3132 * breakpoint.c (set_breakpoint_condition): Update the
3133 condition string after parsing the new condition successfully.
3134
3135 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3136
3137 * proc-api.c (_STRUCTURED_PROC): Don't define.
3138 * proc-events.c: Likewise.
3139 * proc-flags.c: Likewise.
3140 * proc-why.c: Likewise.
3141 * procfs.c: Likewise.
3142
3143 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
3144 * configure, config.in: Regenerate.
3145
3146 2020-07-30 Tom de Vries <tdevries@suse.de>
3147
3148 PR build/26320
3149 * ui-style.h (struct ui_file_style::color): Wrap m_value and
3150 m_red/m_green/m_blue in a union.
3151
3152 2020-07-29 Tom de Vries <tdevries@suse.de>
3153
3154 PR tdep/26280
3155 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
3156
3157 2020-07-28 Tom Tromey <tromey@adacore.com>
3158
3159 PR symtab/26270:
3160 * symtab.h (find_pc_partial_function_sym): Declare.
3161 * cli/cli-cmds.c (disassemble_command): Use
3162 find_pc_partial_function_sym. Check asm_demangle.
3163 * blockframe.c (cache_pc_function_sym): New global.
3164 (cache_pc_function_name): Remove.
3165 (clear_pc_function_cache): Update.
3166 (find_pc_partial_function_sym): New function, from
3167 find_pc_partial_function.
3168 (find_pc_partial_function): Rewrite using
3169 find_pc_partial_function_sym.
3170
3171 2020-07-28 Tom Tromey <tromey@adacore.com>
3172
3173 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
3174 help. Add usage.
3175
3176 2020-07-28 Tom Tromey <tromey@adacore.com>
3177
3178 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
3179 <DW_OP_GNU_variable_value>: Cast to address type.
3180
3181 2020-07-28 Kamil Rytarowski <n54@gmx.com>
3182
3183 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
3184 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
3185 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
3186 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
3187 (nbsd_get_siginfo_type): New.
3188 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
3189 (_initialize_nbsd_tdep): New.
3190
3191 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
3192
3193 PR binutils/26301
3194 * configure: Regenerated.
3195
3196 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
3197
3198 PR binutils/26301
3199 * configure: Regenerated.
3200
3201 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
3202
3203 * python/py-frame.c: Remove 'user-regs.h' include.
3204 (frapy_read_register): Rewrite to make use of
3205 gdbpy_parse_register_id.
3206 * python/py-registers.c (gdbpy_parse_register_id): New function,
3207 moved here from python/py-unwind.c. Updated the return type, and
3208 also accepts register descriptor objects.
3209 * python/py-unwind.c: Remove 'user-regs.h' include.
3210 (pyuw_parse_register_id): Moved to python/py-registers.c.
3211 (unwind_infopy_add_saved_register): Update to use
3212 gdbpy_parse_register_id.
3213 (pending_framepy_read_register): Likewise.
3214 * python/python-internal.h (gdbpy_parse_register_id): Declare.
3215
3216 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
3217
3218 * python/py-registers.c: Add 'user-regs.h' include.
3219 (register_descriptor_iter_find): New function.
3220 (register_descriptor_iterator_object_methods): New static global
3221 methods array.
3222 (register_descriptor_iterator_object_type): Add pointer to methods
3223 array.
3224
3225 2020-07-27 John Baldwin <jhb@FreeBSD.org>
3226
3227 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
3228 for all architectures on FreeBSD 11.3 and later.
3229
3230 2020-07-27 Tom Tromey <tromey@adacore.com>
3231
3232 * gcore.h (load_corefile): Don't declare.
3233
3234 2020-07-27 Tom de Vries <tdevries@suse.de>
3235
3236 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
3237 * config.in: Regenerate.
3238 * configure: Regenerate.
3239
3240 2020-07-26 Eli Zaretskii <eliz@gnu.org>
3241
3242 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
3243 ws2tcpip.h. When checking whether socklen_t type is defined, use
3244 ws2tcpip.h if it is available and sys/socket.h isn't.
3245 * configure: Regenerate.
3246 * config.in: Regenerate.
3247
3248 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
3249
3250 PR fortran/23051
3251 PR fortran/26139
3252 * valops.c (value_ind): Pass address to
3253 readjust_indirect_value_type.
3254 * value.c (readjust_indirect_value_type): Make parameter
3255 non-const, and add extra address parameter. Resolve original type
3256 before using it.
3257 * value.h (readjust_indirect_value_type): Update function
3258 signature and comment.
3259
3260 2020-07-25 Tom de Vries <tdevries@suse.de>
3261
3262 PR symtab/26243
3263 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
3264 entries.
3265
3266 2020-07-24 Aaron Merey <amerey@redhat.com>
3267
3268 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
3269 * configure: Rebuild.
3270
3271 2020-07-23 Kevin Buettner <kevinb@redhat.com>
3272
3273 PR corefiles/26294
3274 * corelow.c (_initialize_corelow): Add period to help text
3275 for "maintenance print core-file-backed-mappings".
3276
3277 2020-07-23 Pedro Alves <pedro@palves.net>
3278
3279 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
3280 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
3281 meanwhile.
3282 * frame.c (frame_cache_generation, get_frame_cache_generation):
3283 New.
3284 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
3285 (get_prev_frame_if_no_cycle): On exception, don't touch
3286 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
3287 * frame.h (get_frame_cache_generation): Declare.
3288
3289 2020-07-23 Tom de Vries <tdevries@suse.de>
3290
3291 PR tui/26282
3292 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
3293 New default constructor.
3294
3295 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
3296
3297 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
3298 exclude non-statement entries.
3299
3300 2020-07-22 Kevin Buettner <kevinb@redhat.com>
3301
3302 * NEWS (New commands): Mention new command
3303 "maintenance print core-file-backed-mappings".
3304
3305 2020-07-22 Kevin Buettner <kevinb@redhat.com>
3306
3307 * corelow.c (gdbcmd.h): Include.
3308 (core_target::info_proc_mappings): New method.
3309 (get_current_core_target): New function.
3310 (maintenance_print_core_file_backed_mappings): New function.
3311 (_initialize_corelow): Add core-file-backed-mappings to
3312 "maint print" commands.
3313
3314 2020-07-22 Kevin Buettner <kevinb@redhat.com>
3315
3316 * linux-tdep.c (dump_note_entry_p): New function.
3317 (linux_dump_mapping_p_ftype): New typedef.
3318 (linux_find_memory_regions_full): Add new parameter,
3319 should_dump_mapping_p.
3320 (linux_find_memory_regions): Adjust call to
3321 linux_find_memory_regions_full.
3322 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
3323 call to linux_find_memory_regions_full.
3324
3325 2020-07-22 Kevin Buettner <kevinb@redhat.com>
3326
3327 * corelow.c (solist.h, unordered_map): Include.
3328 (class core_target): Add field m_core_file_mappings and
3329 method build_file_mappings.
3330 (core_target::core_target): Call build_file_mappings.
3331 (core_target::~core_target): Free memory associated with
3332 m_core_file_mappings.
3333 (core_target::build_file_mappings): New method.
3334 (core_target::xfer_partial): Use m_core_file_mappings
3335 for memory transfers.
3336 * linux-tdep.c (linux_read_core_file_mappings): New
3337 function.
3338 (linux_core_info_proc_mappings): Rewrite to use
3339 linux_read_core_file_mappings.
3340 (linux_init_abi): Register linux_read_core_file_mappings.
3341
3342 2020-07-22 Kevin Buettner <kevinb@redhat.com>
3343
3344 * arch-utils.c (default_read_core_file_mappings): New function.
3345 * arch-utils.c (default_read_core_file_mappings): Declare.
3346 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
3347 * gdbarch.h, gdbarch.c: Regenerate.
3348
3349 2020-07-22 Kevin Buettner <kevinb@redhat.com>
3350
3351 PR corefiles/25631
3352 * corelow.c (core_target:xfer_partial): Revise
3353 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
3354 case after first checking the stratum beneath the core
3355 target.
3356 (has_all_memory): Return true.
3357 * target.c (raw_memory_xfer_partial): Revise comment
3358 regarding use of has_all_memory.
3359
3360 2020-07-22 Kevin Buettner <kevinb@redhat.com>
3361
3362 * exec.h (section_table_xfer_memory): Revise declaration,
3363 replacing section name parameter with an optional callback
3364 predicate.
3365 * exec.c (section_table_xfer_memory): Likewise.
3366 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
3367 of section_table_xfer_memory.
3368
3369 2020-07-22 Tom Tromey <tromey@adacore.com>
3370
3371 * mi/mi-cmd-stack.c (list_args_or_locals): Use
3372 lookup_symbol_search_name.
3373
3374 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
3375
3376 * python/py-registers.c (gdbpy_register_object_data_init): Remove
3377 redundant local variable.
3378 (gdbpy_get_register_descriptor): Extract descriptor vector as a
3379 reference, not pointer, update code accordingly.
3380
3381 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3382 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3383
3384 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
3385 * jit.c (jit_breakpoint_re_set_internal): Use the
3386 `skip_jit_symbol_lookup` field.
3387
3388 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3389 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3390
3391 * jit.c (jit_read_descriptor): Define the descriptor address once,
3392 use twice.
3393 (jit_breakpoint_deleted): Move the declaration of the loop variable
3394 `iter` into the loop header.
3395 (jit_breakpoint_re_set_internal): Move the declaration of the local
3396 variable `objf_data` to the first point of definition.
3397 (jit_event_handler): Move the declaration of local variables
3398 `code_entry`, `entry_addr`, and `objf` to their first point of use.
3399 Rename `objf` to `jited`.
3400
3401 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3402
3403 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
3404 Remove.
3405 * jit.c (get_jiter_objfile_data): Update.
3406
3407 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3408 Simon Marchi <simon.marchi@polymtl.ca>
3409
3410 * jit.c (struct jit_program_space_data): Remove.
3411 (jit_program_space_key): Remove.
3412 (jiter_objfile_data::~jiter_objfile_data): Remove program space
3413 stuff.
3414 (get_jit_program_space_data): Remove.
3415 (jit_breakpoint_deleted): Iterate on all of the program space's
3416 objfiles.
3417 (jit_inferior_init): Likewise.
3418 (jit_breakpoint_re_set_internal): Likewise. Also change return
3419 type to void.
3420 (jit_breakpoint_re_set): Pass current_program_space to
3421 jit_breakpoint_re_set_internal.
3422
3423 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3424
3425 * jit.h (struct jiter_objfile_data) <cached_code_address,
3426 jit_breakpoint>: Move to here from ...
3427 * jit.c (jit_program_space_data): ... here.
3428 (jiter_objfile_data::~jiter_objfile_data): Update.
3429 (jit_breakpoint_deleted): Update.
3430 (jit_breakpoint_re_set_internal): Update.
3431
3432 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3433
3434 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
3435 checks.
3436 (jit_read_descriptor): Remove NULL check.
3437 (jit_event_handler): Add an assertion.
3438
3439 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3440
3441 * jit.h (struct jit_objfile_data): Split into...
3442 (struct jiter_objfile_data): ... this ...
3443 (struct jited_objfile_data): ... and this.
3444 * objfiles.h (struct objfile) <jit_data>: Remove.
3445 <jiter_data, jited_data>: New fields.
3446 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
3447 (jiter_objfile_data::~jiter_objfile_data): ... this.
3448 (get_jit_objfile_data): Rename to ...
3449 (get_jiter_objfile_data): ... this.
3450 (add_objfile_entry): Update.
3451 (jit_read_descriptor): Use get_jiter_objfile_data.
3452 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
3453 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
3454 (jit_inferior_exit_hook): Use objfile's jited_data field.
3455
3456 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3457
3458 * jit.h: Forward-declare `struct minimal_symbol`.
3459 (struct jit_objfile_data): Migrate to here from jit.c; also add a
3460 constructor, destructor, and an objfile* field.
3461 * jit.c (jit_objfile_data): Remove.
3462 (struct jit_objfile_data): Migrate from here to jit.h.
3463 (jit_objfile_data::~jit_objfile_data): New destructor
3464 implementation with code moved from free_objfile_data.
3465 (free_objfile_data): Delete.
3466 (get_jit_objfile_data): Update to use the jit_data field of objfile.
3467 (jit_find_objf_with_entry_addr): Ditto.
3468 (jit_inferior_exit_hook): Ditto.
3469 (_initialize_jit): Remove the call to
3470 register_objfile_data_with_cleanup.
3471 * objfiles.h (struct objfile) <jit_data>: New field.
3472
3473 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3474
3475 * jit.h: Forward-declare `struct objfile`.
3476 (jit_event_handler): Add a second parameter, the JITer objfile.
3477 * jit.c (jit_read_descriptor): Change the signature to take the
3478 JITer objfile as an argument instead of the jit_program_space_data.
3479 (jit_inferior_init): Update the call to jit_read_descriptor.
3480 (jit_event_handler): Use the new JITer objfile argument when calling
3481 jit_read_descriptor.
3482 * breakpoint.c (handle_jit_event): Update the call to
3483 jit_event_handler to pass the JITer objfile.
3484
3485 2020-07-21 John Baldwin <jhb@FreeBSD.org>
3486
3487 * gdbarch.c: Regenerate.
3488 * gdbarch.h: Regenerate.
3489 * gdbarch.sh (handle_segmentation_fault): Remove method.
3490 * infrun.c (handle_segmentation_fault): Remove.
3491 (print_signal_received_reason): Remove call to
3492 handle_segmentation_fault.
3493
3494 2020-07-21 John Baldwin <jhb@FreeBSD.org>
3495
3496 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
3497 Rename to sparc64_linux_report_signal_info and add siggnal
3498 argument.
3499 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
3500 instead of sparc64_linux_handle_segmentation_fault.
3501
3502 2020-07-21 John Baldwin <jhb@FreeBSD.org>
3503
3504 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
3505 i386_linux_report_signal_info instead of
3506 i386_linux_handle_segmentation_fault.
3507 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
3508 to i386_linux_report_signal_info and add siggnal argument.
3509 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
3510 of i386_linux_handle_segmentation_fault.
3511 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
3512 to i386_linux_report_signal_info and add siggnal argument.
3513
3514 2020-07-21 John Baldwin <jhb@FreeBSD.org>
3515
3516 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
3517 hook if present.
3518
3519 2020-07-21 John Baldwin <jhb@FreeBSD.org>
3520
3521 * gdbarch.c: Regenerate.
3522 * gdbarch.h: Regenerate.
3523 * gdbarch.sh (report_signal_info): New method.
3524 * infrun.c (print_signal_received_reason): Invoke gdbarch
3525 report_signal_info hook if present.
3526
3527 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
3528
3529 * python/py-registers.c : Add 'unordered_map' include.
3530 (gdbpy_new_reggroup): Renamed to...
3531 (gdbpy_get_reggroup): ...this. Update to only create register
3532 group descriptors when needed.
3533 (gdbpy_reggroup_iter_next): Update.
3534
3535 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
3536
3537 * python/py-registers.c (gdbpy_register_object_data): New static
3538 global.
3539 (gdbpy_register_object_data_init): New function.
3540 (gdbpy_new_register_descriptor): Renamed to...
3541 (gdbpy_get_register_descriptor): ...this, and update to reuse
3542 existing register descriptors where possible.
3543 (gdbpy_register_descriptor_iter_next): Update.
3544 (gdbpy_initialize_registers): Register new gdbarch data.
3545
3546 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
3547
3548 * linux-nat.c (stopped_pids): Make static.
3549
3550 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
3551
3552 PR ada/26235
3553 * gdbtypes.c (ada_discrete_type_low_bound,
3554 ada_discrete_type_high_bound): Handle undefined bounds.
3555
3556 2020-07-21 Kamil Rytarowski <n54@gmx.com>
3557
3558 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
3559 declaration.
3560 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
3561 function.
3562
3563 2020-07-20 John Baldwin <jhb@FreeBSD.org>
3564
3565 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
3566 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
3567 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
3568 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
3569 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
3570 method.
3571
3572 2020-07-20 Ludovic Courtès <ludo@gnu.org>
3573
3574 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
3575 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
3576 which are deprecated in Guile 3.0.
3577 * configure.ac (try_guile_versions): Add "guile-3.0".
3578 * configure (try_guile_versions): Regenerate.
3579 * NEWS: Update entry.
3580
3581 2020-07-20 Ludovic Courtès <ludo@gnu.org>
3582 Doug Evans <dje@google.com>
3583
3584 PR gdb/21104
3585 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
3586 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
3587 USING_GUILE_BEFORE_2_2.
3588 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
3589 Change type to 'scm_t_port_type *'.
3590 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
3591 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
3592 parameter and honor it. Update callers.
3593 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
3594 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
3595 functions.
3596 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
3597 USING_GUILE_BEFORE_2_2.
3598 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
3599 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
3600 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
3601 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
3602 and 'SCM_PORT_TYPE'.
3603 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
3604 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
3605 (gdbscm_memory_port_read, gdbscm_memory_port_write)
3606 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
3607 [!USING_GUILE_BEFORE_2_2]: New functions.
3608 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
3609 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
3610 'gdbscm_memory_port_read'.
3611 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
3612 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
3613 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
3614 function.
3615 (ioscm_init_memory_port): Remove.
3616 (ioscm_init_memory_port_stream): New function
3617 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
3618 function.
3619 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
3620 Return scm_from_uint (0).
3621 (gdbscm_set_memory_port_read_buffer_size_x)
3622 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
3623 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
3624 Return scm_from_uint (0).
3625 (gdbscm_set_memory_port_write_buffer_size_x)
3626 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
3627 * configure.ac (try_guile_versions): Add "guile-2.2".
3628 * configure: Regenerate.
3629 * NEWS: Add entry.
3630
3631 2020-07-18 Tom Tromey <tom@tromey.com>
3632
3633 * linux-nat.c (linux_multi_process): Remove.
3634 (linux_nat_target::supports_multi_process): Return true.
3635
3636 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
3637
3638 * arch/riscv.c (riscv_tdesc_cache): Change map type.
3639 (riscv_lookup_target_description): Return pointer out of
3640 unique_ptr.
3641 * target-descriptions.c (allocate_target_description): Add
3642 comment.
3643 (target_desc_deleter::operator()): Likewise.
3644 * target-descriptions.h (struct target_desc_deleter): Moved to
3645 gdbsupport/tdesc.h.
3646 (target_desc_up): Likewise.
3647
3648 2020-07-17 Tom Tromey <tromey@adacore.com>
3649
3650 * linux-nat.c (linux_nat_target::supports_non_stop)
3651 (linux_nat_target::always_non_stop_p): Use "true".
3652 (linux_nat_target::supports_disable_randomization): Use "true" and
3653 "false".
3654
3655 2020-07-16 Caroline Tice <cmtice@google.com>
3656
3657 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
3658 (RNGLIST_HEADER_SIZE64): New constant definition.
3659 (struct dwop_section_names): Add rnglists_dwo.
3660 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
3661 (struct loclist_header): Rename to 'loclists_rnglists_header'.
3662 (struct dwo_sections): Add rnglists field.
3663 (read_attribut_reprocess): Add tag parameter.
3664 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
3665 (cu_debug_rnglists_section): New function (decl & definition).
3666 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
3667 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
3668 die whose range is being checked; get rnglist section from
3669 cu_debug_rnglists_section, to get from either objfile or dwo file as
3670 appropriate. Add cases for DW_RLE_base_addressx,
3671 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
3672 the base address to DW_RLE_offset_pairs (not to all ranges), moving
3673 test inside if-condition and updating complaint message.
3674 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
3675 dwarf2_rnglists_process.
3676 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
3677 dwarf2_ranges_process.
3678 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
3679 need_ranges_base and update comment appropriately. Also pass die tag
3680 to dwarf2_ranges_read.
3681 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
3682 need_ranges_base and update comment appropriately. Also pass die tag
3683 to dwarf2_ranges_process.
3684 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
3685 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
3686 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
3687 need_ranges_base and update comment appropriately. Also pass die tag
3688 to read_attribute_reprocess and dwarf2_ranges_read.
3689 (read_loclist_header): Rename function to read_loclists_rnglists_header,
3690 and update function comment appropriately.
3691 (read_loclist_index): Call read_loclists_rnglists_header instead of
3692 read_loclist_header.
3693 (read_rnglist_index): New function.
3694 (read_attribute_reprocess): Add tag parameter. Add code for
3695 DW_FORM_rnglistx, passing tag to read_rnglist_index.
3696 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
3697
3698 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
3699
3700 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
3701 being resolved.
3702
3703 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
3704
3705 * arch-utils.c (show_architecture): Update formatting of messages.
3706
3707 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3708
3709 * gdbtypes.h (struct type) <bounds>: Handle array and string
3710 types.
3711 * ada-lang.c (assign_aggregate): Use type::bounds on
3712 array/string type.
3713 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
3714 * c-varobj.c (c_number_of_children): Likewise.
3715 (c_describe_child): Likewise.
3716 * eval.c (evaluate_subexp_for_sizeof): Likewise.
3717 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
3718 (f_type_print_base): Likewise.
3719 * f-valprint.c (f77_array_offset_tbl): Likewise.
3720 (f77_get_upperbound): Likewise.
3721 (f77_print_array_1): Likewise.
3722 * guile/scm-type.c (gdbscm_type_range): Likewise.
3723 * m2-typeprint.c (m2_array): Likewise.
3724 (m2_is_long_set_of_type): Likewise.
3725 * m2-valprint.c (get_long_set_bounds): Likewise.
3726 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
3727 * python/py-type.c (typy_range): Likewise.
3728 * rust-lang.c (rust_internal_print_type): Likewise.
3729 * type-stack.c (type_stack::follow_types): Likewise.
3730 * valarith.c (value_subscripted_rvalue): Likewise.
3731 * valops.c (value_cast): Likewise.
3732
3733 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3734
3735 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
3736 callers to use the equivalent accessor methods.
3737
3738 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3739
3740 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
3741 (struct type) <bit_stride>: New method.
3742 (TYPE_BIT_STRIDE): Remove.
3743 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
3744
3745 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3746
3747 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
3748 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
3749 callers to use the equivalent accessor methods instead.
3750
3751 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3752
3753 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
3754 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
3755 callers to use the equivalent accessor methods instead.
3756
3757 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3758
3759 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
3760 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
3761 to use dynamic_prop::kind.
3762
3763 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3764
3765 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
3766 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
3767 to get the bound property's kind and check against
3768 PROP_UNDEFINED.
3769
3770 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3771
3772 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
3773 all callers to use type::range_bounds followed by
3774 dynamic_prop::{low,high}.
3775
3776 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
3777
3778 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
3779 const_val, set_const_val, baton, set_locexpr, set_loclist,
3780 set_addr_offset, variant_parts, set_variant_parts,
3781 original_type, set_original_type>: New methods.
3782 <kind>: Rename to...
3783 <m_kind>: ... this. Update all users to use the new methods
3784 instead.
3785 <data>: Rename to...
3786 <m_data>: ... this. Update all users to use the new methods
3787 instead.
3788
3789 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3790
3791 * gdbtypes.c (get_discrete_bounds): Return failure if
3792 the range type's bounds are not both defined and constant
3793 values.
3794 (get_array_bounds): Update comment. Remove undefined bound check.
3795
3796 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
3797
3798 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
3799 the type::bounds method directly.
3800
3801 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3802
3803 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
3804 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
3805 are used to set the range type's bounds to use set_bounds.
3806
3807 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3808
3809 * exec.c (_initialize_exec): Update exec-file-mismatch help.
3810
3811 2020-07-10 Pedro Alves <pedro@palves.net>
3812
3813 * gdbthread.h (inferior_ref): Define.
3814 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
3815 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
3816 * thread.c
3817 (scoped_restore_current_thread::restore):
3818 Adjust to gdb::ref_ptr.
3819 (scoped_restore_current_thread::~scoped_restore_current_thread):
3820 Remove manual decref handling.
3821 (scoped_restore_current_thread::scoped_restore_current_thread):
3822 Adjust to use
3823 inferior_ref::new_reference/thread_info_ref::new_reference.
3824 Incref the thread before calling get_frame_id instead of after.
3825 Let TARGET_CLOSE_ERROR propagate.
3826
3827 2020-07-10 Pedro Alves <pedro@palves.net>
3828
3829 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
3830 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
3831 NOT_AVAILABLE_ERROR.
3832 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
3833 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
3834
3835 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3836 Pedro Alves <pedro@palves.net>
3837
3838 PR gdb/26199
3839 * infrun.c (threads_are_resumed_pending_p): Delete.
3840 (do_target_wait): Remove threads_are_executing and
3841 threads_are_resumed_pending_p checks from the inferior_matches
3842 lambda. Update comments.
3843
3844 2020-07-10 Pedro Alves <pedro@palves.net>
3845
3846 PR gdb/26199
3847 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
3848 executing threads.
3849
3850 2020-07-10 Pedro Alves <pedro@palves.net>
3851
3852 PR gdb/26199
3853 * infrun.c (handle_no_resumed): Handle multiple targets.
3854
3855 2020-07-10 Pedro Alves <pedro@palves.net>
3856
3857 PR gdb/26199
3858 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
3859 target_is_async_p.
3860
3861 2020-07-10 Pedro Alves <pedro@palves.net>
3862
3863 PR gdb/26199
3864 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
3865 threads, not all threads.
3866
3867 2020-07-10 Pedro Alves <pedro@palves.net>
3868
3869 PR gdb/26199
3870 * remote.c (remote_target::open_1): Pass remote target pointer as
3871 data to create_async_event_handler.
3872 (remote_async_inferior_event_handler): Mark async event handler
3873 before returning if the remote target still has either pending
3874 events or unacknowledged notifications.
3875
3876 2020-07-10 John Baldwin <jhb@FreeBSD.org>
3877
3878 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
3879 declaration.
3880 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
3881 function.
3882
3883 2020-07-09 John Baldwin <jhb@FreeBSD.org>
3884
3885 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
3886 inferior_ptid.
3887
3888 2020-07-09 John Baldwin <jhb@FreeBSD.org>
3889
3890 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
3891 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
3892 AT_FREEBSD_PS_STRINGS.
3893
3894 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
3895
3896 * auto-load.c (auto_load_objfile_script_1): Convert drive part
3897 of debugfile path on Windows.
3898
3899 2020-07-08 John Baldwin <jhb@FreeBSD.org>
3900
3901 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
3902 argument to 'data'.
3903
3904 2020-07-08 Tom Tromey <tromey@adacore.com>
3905
3906 * ada-lang.c (ada_exception_message_1): Use read_memory.
3907
3908 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3909
3910 PR python/22748
3911 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
3912 special handling for inline frames.
3913 * findvar.c (value_of_register_lazy): Skip inline frames when
3914 creating lazy register values.
3915 * frame.c (frame_id_computed_p): Delete definition.
3916 * frame.h (frame_id_computed_p): Delete declaration.
3917
3918 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3919
3920 * NEWS: Mention additions to Python API.
3921 * python/py-arch.c (archpy_register_groups): New function.
3922 (arch_object_methods): Add 'register_groups' method.
3923 * python/py-registers.c (reggroup_iterator_object): New struct.
3924 (reggroup_object): New struct.
3925 (gdbpy_new_reggroup): New function.
3926 (gdbpy_reggroup_to_string): New function.
3927 (gdbpy_reggroup_name): New function.
3928 (gdbpy_reggroup_iter): New function.
3929 (gdbpy_reggroup_iter_next): New function.
3930 (gdbpy_new_reggroup_iterator): New function
3931 (gdbpy_initialize_registers): Register new types.
3932 (reggroup_iterator_object_type): Define new Python type.
3933 (gdbpy_reggroup_getset): New static global.
3934 (reggroup_object_type): Define new Python type.
3935 * python/python-internal.h
3936
3937 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3938
3939 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
3940 * python/py-arch.c (archpy_registers): New function.
3941 (arch_object_methods): Add 'registers' method.
3942 * python/py-registers.c: New file.
3943 * python/python-internal.h
3944 (gdbpy_new_register_descriptor_iterator): Declare.
3945 (gdbpy_initialize_registers): Declare.
3946 * python/python.c (do_start_initialization): Call
3947 gdbpy_initialize_registers.
3948 * NEWS: Mention additions to the Python API.
3949
3950 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3951
3952 * NEWS: Mention new Python API method.
3953 * python/py-unwind.c (pending_framepy_architecture): New function.
3954 (pending_frame_object_methods): Add architecture method.
3955
3956 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3957
3958 * gdbarch.c: Regenerate.
3959 * gdbarch.h: Regenerate.
3960 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
3961 (gdbarch_data): Use internal_error for the case where
3962 deprecated_set_gdbarch_data was originally needed.
3963 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
3964 and use passed in obstack.
3965 (libunwind_frame_set_descr): Should no longer get back NULL from
3966 gdbarch_data.
3967 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
3968 type.
3969 * user-regs.c (user_regs_init): Update parameters, and use passed
3970 in obstack.
3971 (user_reg_add): Should no longer get back NULL from gdbarch_data.
3972 (_initialize_user_regs): Register as a pre-init gdbarch data type.
3973
3974 2020-07-06 Tom de Vries <tdevries@suse.de>
3975
3976 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
3977 End-Of-Sequence in lte_is_less_than.
3978 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
3979 "gdb: Don't reorder line table entries too much when sorting".
3980
3981 2020-07-06 Tom de Vries <tdevries@suse.de>
3982
3983 PR tui/26205
3984 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
3985
3986 2020-07-05 Tom de Vries <tdevries@suse.de>
3987
3988 PR build/26187
3989 * inferior.h (struct infcall_suspend_state_deleter): If available, use
3990 std::uncaught_exceptions instead of deprecated
3991 std::uncaught_exception.
3992
3993 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3994
3995 * macroexp.h (macro_stringify): Return
3996 gdb::unique_xmalloc_ptr<char>.
3997 * macroexp.c (macro_stringify): Likewise.
3998 * macrotab.c (fixup_definition): Update.
3999
4000 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4001
4002 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
4003 (lex_one_token): Update.
4004 * macroexp.c (struct macro_buffer) <release>: Return
4005 gdb::unique_xmalloc_ptr<char>.
4006 (macro_stringify): Update.
4007 (macro_expand): Update.
4008 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
4009 * macroexp.h (macro_expand_next): Likewise.
4010
4011 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
4012
4013 * macroexp.h (macro_lookup_ftype): Remove.
4014 (macro_expand, macro_expand_once, macro_expand_next): Remove
4015 lookup function parameters, add scope parameter.
4016 * macroexp.c (scan, substitute_args, expand, maybe_expand,
4017 macro_expand, macro_expand_once, macro_expand_next): Likewise.
4018 * macroscope.h (standard_macro_lookup): Change parameter type
4019 to macro_scope.
4020 * macroscope.c (standard_macro_lookup): Likewise.
4021 * c-exp.y (lex_one_token): Update.
4022 * macrocmd.c (macro_expand_command): Likewise.
4023 (macro_expand_once_command): Likewise.
4024
4025 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4026
4027 * inf-loop.c (inferior_event_handler): Remove client_data param.
4028 * inf-loop.h (inferior_event_handler): Likewise.
4029 * infcmd.c (step_1): Adjust.
4030 * infrun.c (proceed): Adjust.
4031 (fetch_inferior_event): Remove client_data param.
4032 (infrun_async_inferior_event_handler): Adjust.
4033 * infrun.h (fetch_inferior_event): Remove `void *` param.
4034 * linux-nat.c (handle_target_event): Adjust.
4035 * record-btrace.c (record_btrace_handle_async_inferior_event):
4036 Adjust.
4037 * record-full.c (record_full_async_inferior_event_handler):
4038 Adjust.
4039 * remote.c (remote_async_inferior_event_handler): Adjust.
4040
4041 2020-07-01 Tom Tromey <tom@tromey.com>
4042
4043 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
4044 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
4045
4046 2020-07-01 Tom Tromey <tom@tromey.com>
4047
4048 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
4049 tui_gen_win_info.
4050 (tui_win_info::make_window): Merge with
4051 tui_gen_win_info::make_window.
4052 (tui_win_info::make_visible): Move from tui_gen_win_info.
4053 * tui/tui-win.c (tui_win_info::max_width): Move from
4054 tui_gen_win_info.
4055 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
4056 type.
4057 <window_factory>: Likewise.
4058 * tui/tui-layout.c (tui_win_info::resize): Move from
4059 tui_gen_win_info.
4060 (make_standard_window): Change return type.
4061 (get_locator_window, tui_get_window_by_name): Likewise.
4062 (tui_layout_window::apply): Remove a cast.
4063 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
4064 (struct tui_win_info): Merge with tui_gen_win_info.
4065 (struct tui_gen_win_info): Remove.
4066
4067 2020-07-01 Tom Tromey <tom@tromey.com>
4068
4069 * tui/tui-stack.h (struct tui_locator_window): Derive from
4070 tui_win_info.
4071 <do_scroll_horizontal, do_scroll_vertical>: New methods.
4072 <can_box>: New method.
4073
4074 2020-07-01 Tom Tromey <tom@tromey.com>
4075
4076 * tui/tui-stack.h (struct tui_locator_window): Remove body.
4077
4078 2020-07-01 Tom Tromey <tom@tromey.com>
4079
4080 * tui/tui-regs.c (tui_data_window::display_registers_from)
4081 (tui_data_window::display_registers_from)
4082 (tui_data_window::first_data_item_displayed)
4083 (tui_data_window::delete_data_content_windows): Update.
4084 (tui_data_window::refresh_window, tui_data_window::no_refresh):
4085 Remove.
4086 (tui_data_window::check_register_values): Update.
4087 (tui_data_item_window::rerender): Add parameters. Update.
4088 (tui_data_item_window::refresh_window): Remove.
4089 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
4090 virtual.
4091 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
4092 tui_gen_win_info.
4093 <refresh_window, max_height, min_height>: Remove.
4094 <rerender>: Add parameters.
4095 <x, y, visible>: New members.
4096 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
4097 <m_item_width>: New member.
4098
4099 2020-07-01 Tom Tromey <tom@tromey.com>
4100
4101 * tui/tui-regs.c (tui_data_window::show_register_group)
4102 (tui_data_window::check_register_values): Update.
4103 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
4104 from item_no.
4105
4106 2020-07-01 Tom Tromey <tom@tromey.com>
4107
4108 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
4109 useless "if".
4110
4111 2020-07-01 Tom Tromey <tom@tromey.com>
4112
4113 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
4114 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
4115
4116 2020-07-01 Tom Tromey <tom@tromey.com>
4117
4118 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
4119 * tui/tui-winsource.h (enum tui_line_or_address_kind)
4120 (struct tui_line_or_address): Move from tui-data.h.
4121 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
4122 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
4123 (tui_cmd_window, tui_source_window_base, tui_source_window)
4124 (tui_disasm_window): Don't declare.
4125 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
4126 to tui-winsource.h.
4127 (SINGLE_KEY): Move to tui-stack.c.
4128
4129 2020-07-01 Tom Tromey <tom@tromey.com>
4130
4131 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
4132 std::string.
4133 * tui/tui-regs.c (class tab_expansion_file): New.
4134 (tab_expansion_file::write): New method.
4135 (tui_register_format): Change return type. Use
4136 tab_expansion_file.
4137 (tui_get_register, tui_data_window::display_registers_from)
4138 (tui_data_item_window::rerender): Update.
4139 * tui/tui-io.h (tui_expand_tabs): Don't declare.
4140 * tui/tui-io.c (tui_expand_tabs): Remove.
4141
4142 2020-07-01 Tom Tromey <tom@tromey.com>
4143
4144 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
4145
4146 2020-07-01 Fangrui Song <maskray@google.com>
4147
4148 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
4149
4150 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4151
4152 * dwarf2/read.c (set_die_type): Removed conditions to restrict
4153 forms for DW_AT_associated and DW_AT_allocated attributes,
4154 which is already checked in function attr_to_dynamic_prop.
4155
4156 2020-06-30 Tom Tromey <tromey@adacore.com>
4157
4158 * dwarf2/read.c (quirk_rust_enum): Correctly call
4159 alloc_rust_variant for default-less enum.
4160
4161 2020-06-30 Tom Tromey <tromey@adacore.com>
4162
4163 PR build/26183:
4164 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
4165 gdb::to_string.
4166
4167 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
4168
4169 * gdbarch.sh (displaced_step_copy_insn): Update doc.
4170 * gdbarch.h: Re-generate.
4171
4172 2020-06-28 Tom Tromey <tom@tromey.com>
4173
4174 * command.h (cmd_types): Remove.
4175 (cmd_type): Don't declare.
4176 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
4177 typedef.
4178 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
4179 * cli/cli-decode.c (cmd_type): Remove.
4180
4181 2020-06-27 Pedro Alves <palves@redhat.com>
4182
4183 * fork-child.c (prefork_hook): Adjust.
4184 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
4185 Delete.
4186 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
4187 * inferior.c (inferior::set_tty, inferior::tty): New methods.
4188 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
4189 Remove declarations.
4190 (struct inferior) <set_tty, tty>: New methods.
4191 (struct inferior) <terminal>: Rename to ...
4192 (struct inferior) <m_terminal>: ... this and make private.
4193 * main.c (captured_main_1): Adjust.
4194 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
4195 (mi_cmd_inferior_tty_show): Adjust.
4196 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
4197 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
4198
4199 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
4200
4201 * configure.ac: Add --enable-libctf: handle --disable-static
4202 properly.
4203 * acinclude.m4: sinclude ../config/enable.m4.
4204 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
4205 (LIBCTF): Substitute in.
4206 (CTF_DEPS): New, likewise.
4207 (CLIBS): libctf needs symbols from libbfd: move earlier.
4208 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
4209 flags.
4210 * ctfread.c: Surround in ENABLE_LIBCTF.
4211 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
4212 * configure: Regenerate.
4213 * config.in: Likewise.
4214
4215 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
4216
4217 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
4218
4219 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
4220
4221 * inferior.h (struct inferior) <terminal>: Change type to
4222 gdb::unique_xmalloc_ptr<char>.
4223 * inferior.c (inferior::~inferior): Don't free inf->terminal.
4224 * infcmd.c (set_inferior_io_terminal): Don't free terminal
4225 field, adjust to unique pointer.
4226 (get_inferior_io_terminal): Adjust to unique pointer.
4227
4228 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4229
4230 * riscv-tdep.c (riscv_print_registers_info): Loop over all
4231 registers, not just the known core set of registers.
4232
4233 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4234
4235 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
4236 fflags, frm, and fcsr registers.
4237 (riscv_register_reggroup_p): Remove unknown CSRs from save and
4238 restore groups.
4239 (riscv_tdesc_unknown_reg): New function.
4240 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
4241 tdesc_use_registers.
4242 * riscv-tdep.h (struct gdbarch_tdep): Add
4243 unknown_csrs_first_regnum, unknown_csrs_count,
4244 duplicate_fflags_regnum, duplicate_frm_regnum, and
4245 duplicate_fcsr_regnum fields.
4246
4247 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4248
4249 * target-descriptions.c (tdesc_use_registers): Add new parameter a
4250 callback, use the callback (when not null) to help number unknown
4251 registers.
4252 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
4253 (tdesc_use_registers): Add extra parameter to declaration.
4254
4255 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4256
4257 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
4258 in the file.
4259 (class riscv_pending_register_alias): Likewise.
4260 (riscv_register_feature::register_info): Change 'required_p' field
4261 to 'required', and change its type. Add 'check' member function.
4262 (riscv_register_feature::register_info::check): Define new member
4263 function.
4264 (riscv_xreg_feature): Change initialisation of 'required' field.
4265 (riscv_freg_feature): Likewise.
4266 (riscv_virtual_feature): Likewise.
4267 (riscv_csr_feature): Likewise.
4268 (riscv_check_tdesc_feature): Take extra parameter, the csr
4269 tdesc_feature, rewrite the function to use the new
4270 riscv_register_feature::register_info::check function.
4271 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
4272
4273 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4274
4275 * features/Makefile: Remove all references to the deleted files
4276 below.
4277 * features/riscv/32bit-csr.c: Deleted.
4278 * features/riscv/32bit-csr.xml: Deleted.
4279 * features/riscv/64bit-csr.c: Deleted.
4280 * features/riscv/64bit-csr.xml: Deleted.
4281 * features/riscv/rebuild-csr-xml.sh: Deleted.
4282
4283 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4284
4285 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
4286 whitespace error for declaration of names member variable.
4287 (struct riscv_register_feature): Add new prefer_first_name member
4288 variable, and fix whitespace error in declaration of registers.
4289 (riscv_xreg_feature): Initialize prefer_first_name field.
4290 (riscv_freg_feature): Likewise.
4291 (riscv_virtual_feature): Likewise.
4292 (riscv_csr_feature): Likewise.
4293 (riscv_register_name): Expand on comments. Remove register name
4294 modifications for CSR and virtual registers.
4295
4296 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4297
4298 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
4299 errors.
4300
4301 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4302
4303 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
4304 riscv-opc.h.
4305 (class riscv_pending_register_alias): New class.
4306 (riscv_check_tdesc_feature): Take vector of pending aliases and
4307 populate it as appropriate.
4308 (riscv_setup_register_aliases): Delete.
4309 (riscv_gdbarch_init): Create vector of pending aliases and pass it
4310 to riscv_check_tdesc_feature in all cases. Use the vector to
4311 create the register aliases.
4312
4313 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4314
4315 * sol2-tdep.c (sol2_static_transform_name): Remove.
4316 (sol2_init_abi): Don't register it.
4317 * gdbarch.sh (static_transform_name): Remove.
4318 * gdbarch.c, gdbarch.h: Regenerate.
4319
4320 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
4321 gdbarch_static_transform_name.
4322 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
4323 * stabsread.c (define_symbol) <'X'>: Remove.
4324 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
4325 handling.
4326 <'V'>: Likewise.
4327 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
4328 <'S'>: Remove call to gdbarch_static_transform_name.
4329
4330 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4331
4332 * procfs.c (procfs_pre_trace): New function.
4333 (procfs_target::create_inferior): Pass it to fork_inferior.
4334
4335 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4336
4337 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
4338 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
4339 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
4340 sol2-tdep.o, sparc-sol2-tdep.o.
4341 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
4342 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
4343 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
4344 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
4345
4346 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4347
4348 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
4349 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
4350 Call sol2_init_abi.
4351 Remove calls to set_gdbarch_skip_solib_resolver,
4352 set_gdbarch_core_pid_to_str.
4353 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
4354 (i386_sol2_static_transform_name): Remove.
4355 (i386_sol2_init_abi): Call sol2_init_abi.
4356 Remove calls to set_gdbarch_sofun_address_maybe_missing,
4357 set_gdbarch_static_transform_name,
4358 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
4359 Use sol2_sigtramp_p.
4360 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
4361 (sol2_sigtramp_p): New function.
4362 (sol2_static_transform_name): New function.
4363 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
4364 (sol2_init_abi): New function.
4365 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
4366 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
4367 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
4368 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
4369 (sparc_sol2_static_transform_name): Remove.
4370 (sparc32_sol2_init_abi): Call sol2_init_abi.
4371 Remove calls to set_gdbarch_sofun_address_maybe_missing,
4372 set_gdbarch_static_transform_name,
4373 set_gdbarch_skip_solib_resolver,
4374 set_gdbarch_core_pid_to_str.
4375 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
4376 (sparc_sol2_static_transform_name): Remove
4377 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
4378 call sol2_sigtramp_p.
4379 (sparc64_sol2_init_abi): Call sol2_init_abi.
4380 Remove calls to set_gdbarch_sofun_address_maybe_missing,
4381 set_gdbarch_static_transform_name,
4382 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
4383
4384 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4385
4386 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
4387 * exec.c (validate_exec_file): If from_tty, set both
4388 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
4389 * symfile.c (symbol_file_add_with_addrs): if always_confirm
4390 and from_tty, unconditionally ask a confirmation.
4391
4392 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4393
4394 * target-descriptions.c (tdesc_architecture_name): Protect against
4395 NULL pointer dereference.
4396 (maint_print_xml_tdesc_cmd): New function.
4397 (_initialize_target_descriptions): Register new 'maint print
4398 xml-tdesc' command and give it the filename completer.
4399 * NEWS: Mention new 'maint print xml-tdesc' command.
4400
4401 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4402
4403 * target-descriptions.c (class tdesc_compatible_info): New class.
4404 (struct target_desc): Change type of compatible vector.
4405 (tdesc_compatible_p): Update for change in type of
4406 target_desc::compatible.
4407 (tdesc_compatible_info_list): New function.
4408 (tdesc_compatible_info_arch_name): New function.
4409 (tdesc_add_compatible): Update for change in type of
4410 target_desc::compatible.
4411 (print_c_tdesc::visit_pre): Likewise.
4412
4413 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4414
4415 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
4416 whitespace to underscore.
4417 (maint_print_c_tdesc_cmd): Use fake filename for target
4418 descriptions that came from the target.
4419 (_initialize_target_descriptions): Add filename command completion
4420 for 'maint print c-tdesc'.
4421
4422 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
4423
4424 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
4425 lines.
4426
4427 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
4428
4429 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
4430 lines.
4431 (dwarf2_find_location_expression): Likewise.
4432 (call_site_parameter_matches): Likewise.
4433 (dwarf2_compile_expr_to_ax): Likewise.
4434 (disassemble_dwarf_expression): Likewise.
4435 (loclist_describe_location): Likewise.
4436
4437 2020-06-23 Pedro Alves <palves@redhat.com>
4438
4439 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
4440 progspace-and-thread.h. Include scoped-mock-context.h instead.
4441 (register_to_value_test): Use scoped_mock_context.
4442 * regcache.c: Include "scoped-mock-context.h".
4443 (cooked_read_test): Don't error out if a target is already pushed.
4444 Use scoped_mock_context. Adjust.
4445 * scoped-mock-context.h: New file.
4446
4447 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4448
4449 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
4450 initializer.
4451 (ada_language::is_string_type_p): New member function.
4452 * c-lang.c (c_language_data): Delete la_is_string_type_p
4453 initializer.
4454 (cplus_language_data): Likewise.
4455 (asm_language_data): Likewise.
4456 (minimal_language_data): Likewise.
4457 * d-lang.c (d_language_data): Likewise.
4458 * f-lang.c (f_is_string_type_p): Delete function, implementation
4459 moved to f_language::is_string_type_p.
4460 (f_language_data): Delete la_is_string_type_p initializer.
4461 (f_language::is_string_type_p): New member function,
4462 implementation from f_is_string_type_p.
4463 * go-lang.c (go_is_string_type_p): Delete function, implementation
4464 moved to go_language::is_string_type_p.
4465 (go_language_data): Delete la_is_string_type_p initializer.
4466 (go_language::is_string_type_p): New member function,
4467 implementation from go_is_string_type_p.
4468 * language.c (language_defn::is_string_type_p): Define new member
4469 function.
4470 (default_is_string_type_p): Make static, add comment copied from
4471 header file.
4472 (unknown_language_data): Delete la_is_string_type_p initializer.
4473 (unknown_language::is_string_type_p): New member function.
4474 (auto_language_data): Delete la_is_string_type_p initializer.
4475 (auto_language::is_string_type_p): New member function.
4476 * language.h (language_data): Delete la_is_string_type_p field.
4477 (language_defn::is_string_type_p): Declare new function.
4478 (default_is_string_type_p): Delete desclaration, move comment to
4479 definition.
4480 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
4481 moved to m2_language::is_string_type_p.
4482 (m2_language_data): Delete la_is_string_type_p initializer.
4483 (m2_language::is_string_type_p): New member function,
4484 implementation from m2_is_string_type_p.
4485 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
4486 initializer.
4487 * opencl-lang.c (opencl_language_data): Likewise.
4488 * p-lang.c (pascal_is_string_type_p): Delete function,
4489 implementation moved to pascal_language::is_string_type_p.
4490 (pascal_language_data): Delete la_is_string_type_p initializer.
4491 (pascal_language::is_string_type_p): New member function,
4492 implementation from pascal_is_string_type_p.
4493 * rust-lang.c (rust_is_string_type_p): Delete function,
4494 implementation moved to rust_language::is_string_type_p.
4495 (rust_language_data): Delete la_is_string_type_p initializer.
4496 (rust_language::is_string_type_p): New member function,
4497 implementation from rust_is_string_type_p.
4498 * valprint.c (val_print_scalar_or_string_type_p): Update call to
4499 is_string_type_p.
4500
4501 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4502
4503 * ada-lang.c (ada_language_data): Delete la_print_typedef
4504 initializer.
4505 (ada_language::print_typedef): New member function.
4506 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
4507 (cplus_language_data): Likewise.
4508 (asm_language_data): Likewise.
4509 (minimal_language_data): Likewise.
4510 * d-lang.c (d_language_data): Likewise.
4511 * f-lang.c (f_language_data): Likewise.
4512 (f_language::print_typedef): New member function.
4513 * go-lang.c (go_language_data): Delete la_print_typedef
4514 initializer.
4515 * language.c (language_defn::print_typedef): Define member
4516 function.
4517 (unknown_language_data): Delete la_print_typedef initializer.
4518 (unknown_language::print_typedef): New member function.
4519 (auto_language_data): Delete la_print_typedef initializer.
4520 (auto_language::print_typedef): New member function.
4521 * language.h (language_data): Delete la_print_typedef field.
4522 (language_defn::print_typedef): Declare new member function.
4523 (LA_PRINT_TYPEDEF): Update call to print_typedef.
4524 (default_print_typedef): Delete declaration.
4525 * m2-lang.c (m2_language_data): Delete la_print_typedef
4526 initializer.
4527 (m2_language::print_typedef): New member function.
4528 * objc-lang.c (objc_language_data): Delete la_print_typedef
4529 initializer.
4530 * opencl-lang.c (opencl_language_data): Likewise.
4531 * p-lang.c (pascal_language_data): Likewise.
4532 (pascal_language::print_typedef): New member function.
4533 * rust-lang.c (rust_print_typedef): Delete function,
4534 implementation moved to rust_language::print_typedef.
4535 (rust_language): Delete la_print_typedef initializer.
4536 (rust_language::print_typedef): New member function,
4537 implementation from rust_print_typedef.
4538 * typeprint.c (default_print_typedef): Delete.
4539
4540 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4541
4542 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
4543 (ada_language::printstr): New member function.
4544 * c-lang.c (c_language_data): Delete la_printstr initializer.
4545 (cplus_language_data): Likewise.
4546 (asm_language_data): Likewise.
4547 (minimal_language_data): Likewise.
4548 * d-lang.c (d_language_data): Likewise.
4549 * f-lang.c (f_printstr): Rename to f_language::printstr.
4550 (f_language_data): Delete la_printstr initializer.
4551 (f_language::printstr): New member function, implementation from
4552 f_printstr.
4553 * go-lang.c (go_language_data): Delete la_printstr initializer.
4554 * language.c (language_defn::printstr): Define new member
4555 function.
4556 (unk_lang_printstr): Delete.
4557 (unknown_language_data): Delete la_printstr initializer.
4558 (unknown_language::printstr): New member function.
4559 (auto_language_data): Delete la_printstr initializer.
4560 (auto_language::printstr): New member function.
4561 * language.h (language_data): Delete la_printstr field.
4562 (language_defn::printstr): Declare new member function.
4563 (LA_PRINT_STRING): Update call to printstr.
4564 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
4565 (m2_language_data): Delete la_printstr initializer.
4566 (m2_language::printstr): New member function, implementation from
4567 m2_printstr.
4568 * objc-lang.c (objc_language_data): Delete la_printstr
4569 initializer.
4570 * opencl-lang.c (opencl_language_data): Likewise.
4571 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
4572 (pascal_language_data): Delete la_printstr initializer.
4573 (pascal_language::printstr): New member function, implementation
4574 from pascal_printstr.
4575 * p-lang.h (pascal_printstr): Delete declaration.
4576 * rust-lang.c (rust_printstr): Update header comment.
4577 (rust_language_data): Delete la_printstr initializer.
4578 (rust_language::printstr): New member function.
4579
4580 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4581
4582 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
4583 (ada_language::printchar): New member function.
4584 * c-lang.c (c_language_data): Delete la_printchar initializer.
4585 (cplus_language_data): Likewise.
4586 (asm_language_data): Likewise.
4587 (minimal_language_data): Likewise.
4588 * d-lang.c (d_language_data): Likewise.
4589 * f-lang.c (f_printchar): Rename to f_language::printchar.
4590 (f_language_data): Delete la_printchar initializer.
4591 (f_language::printchar): New member function, implementation from
4592 f_printchar.
4593 * go-lang.c (go_language_data): Delete la_printchar initializer.
4594 * language.c (unk_lang_printchar): Delete.
4595 (language_defn::printchar): Define new member function.
4596 (unknown_language_data): Delete la_printchar initializer.
4597 (unknown_language::printchar): New member function.
4598 (auto_language_data): Delete la_printchar initializer.
4599 (auto_language::printchar): New member function.
4600 * language.h (language_data): Delete la_printchar field.
4601 (language_defn::printchar): Declare new member function.
4602 (LA_PRINT_CHAR): Update call to printchar.
4603 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
4604 (m2_language::printchar): New member function.
4605 * objc-lang.c (objc_language_data): Delete la_printchar
4606 initializer.
4607 * opencl-lang.c (opencl_language_data): Likewise.
4608 * p-lang.c (pascal_language_data): Delete la_printchar
4609 initializer.
4610 (pascal_language::printchar): New member function.
4611 * rust-lang.c (rust_printchar): Rename to
4612 rust_language::printchar.
4613 (rust_language_data): Delete la_printchar initializer.
4614 (rust_language::printchar): New member function, implementation
4615 from rust_printchar.
4616
4617 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4618
4619 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
4620 (ada_language_data): Delete la_emitchar initializer.
4621 (ada_language::emitchar): New member function, implementation from
4622 emit_char.
4623 * c-lang.c (c_language_data): Delete la_emitchar initializer.
4624 (cplus_language_data): Likewise.
4625 (asm_language_data): Likewise.
4626 (minimal_language_data): Likewise.
4627 * d-lang.c (d_language_data): Likewise.
4628 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
4629 (f_language_data): Delete la_emitchar initializer.
4630 (f_language::emitchar): New member function, implementation from
4631 f_emit_char.
4632 * go-lang.c (go_language_data): Delete la_emitchar initializer.
4633 * language.c (unk_lang_emit_char): Delete.
4634 (language_defn::emitchar): New member function definition.
4635 (unknown_language_data): Delete la_emitchar initializer.
4636 (unknown_language::emitchar): New member function.
4637 (auto_language_data): Delete la_emitchar initializer.
4638 (auto_language::emitchar): New member function.
4639 * language.h (language_data): Delete la_emitchar field.
4640 (language_defn::emitchar): New member field declaration.
4641 (LA_EMIT_CHAR): Update call to emitchar.
4642 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
4643 (m2_language_data): Delete la_emitchar initializer.
4644 (m2_language::emitchar): New member function, implementation from
4645 m2_emit_char.
4646 * objc-lang.c (objc_language_data): Delete la_emitchar
4647 initializer.
4648 * opencl-lang.c (opencl_language_data): Likewise.
4649 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
4650 (pascal_language_data): Delete la_emitchar initializer.
4651 (pascal_language::emitchar): New member function, implementation
4652 from pascal_emit_char.
4653 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
4654 (rust_language_data): Delete la_emitchar initializer.
4655 (rust_language::emitchar): New member function, implementation
4656 from rust_emitchar.
4657
4658 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4659
4660 * ada-lang.c (resolve): Rename to ada_language::post_parser.
4661 (ada_language_data): Delete la_post_parser initializer.
4662 (ada_language::post_parser): New member function.
4663 * c-lang.c (c_language_data): Delete la_post_parser initializer.
4664 (cplus_language_data): Likewise.
4665 (asm_language_data): Likewise.
4666 (minimal_language_data): Likewise.
4667 * d-lang.c (d_language_data): Likewise.
4668 * f-lang.c (f_language_data): Likewise.
4669 * go-lang.c (go_language_data): Likewise.
4670 * language.c (unknown_language_data): Likewise.
4671 (auto_language_data): Likewise.
4672 * language.h (language_data): Delete la_post_parser field.
4673 (language_defn::post_parser): New member function.
4674 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
4675 * objc-lang.c (objc_language_data): Likewise.
4676 * opencl-lang.c (opencl_language_data): Likewise.
4677 * p-lang.c (pascal_language_data): Likewise.
4678 * parse.c (parse_exp_in_context): Update call to post_parser.
4679 (null_post_parser): Delete definition.
4680 * parser-defs.h (null_post_parser): Delete declaration.
4681 * rust-lang.c (rust_language_data): Delete la_post_parser
4682 initializer.
4683
4684 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4685
4686 * ada-lang.c (parse): Rename to ada_language::parser.
4687 (ada_language_data): Delete la_parser initializer.
4688 (ada_language::parser): New member function, implementation from
4689 parse.
4690 * c-lang.c (c_language_data): Delete la_parser initializer.
4691 (cplus_language_data): Likewise.
4692 (asm_language_data): Likewise.
4693 (minimal_language_data): Likewise.
4694 * d-lang.c (d_language_data): Likewise.
4695 (d_language::parser): New member function.
4696 * f-lang.c (f_language_data): Delete la_parser initializer.
4697 (f_language::parser): New member function.
4698 * go-lang.c (go_language_data): Delete la_parser initializer.
4699 (go_language::parser): New member function.
4700 * language.c (unk_lang_parser): Delete.
4701 (language_defn::parser): Define new member function.
4702 (unknown_language_data): Delete la_parser initializer.
4703 (unknown_language::parser): New member function.
4704 (auto_language_data): Delete la_parser initializer.
4705 (auto_language::parser): New member function.
4706 * language.h (language_data): Delete la_parser field.
4707 (language_defn::parser): Declare new member function.
4708 * m2-lang.c (m2_language_data): Delete la_parser initializer.
4709 (m2_language::parser): New member function.
4710 * objc-lang.c (objc_language_data): Delete la_parser initializer.
4711 * opencl-lang.c (opencl_language_data): Likewise.
4712 * p-lang.c (pascal_language_data): Likewise.
4713 (pascal_language::parser): New member function.
4714 * parse.c (parse_exp_in_context): Update call to parser.
4715 * rust-lang.c (rust_language_data): Delete la_parser initializer.
4716 (rust_language::parser): New member function.
4717
4718 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4719
4720 * top.c (print_gdb_configuration): Print --with-python-libdir
4721 configuration value.
4722
4723 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4724
4725 * NEWS: Mention change to the alias command.
4726
4727 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4728
4729 * cli/cli-cmds.c (lookup_cmd_for_default_args)
4730 (alias_command_completer)
4731 (make_alias_options_def_group): New functions.
4732 (alias_opts, alias_option_defs): New struct and array.
4733 (alias_usage_error): Update usage.
4734 (alias_command): Handles optional DEFAULT-ARGS... arguments.
4735 Use option framework.
4736 (_initialize_cli_cmds): Update alias command help.
4737 Update aliases command help.
4738 (show_user):
4739 Add NULL for new default_args lookup_cmd argument.
4740 (valid_command_p): Rename to validate_aliased_command.
4741 Add NULL for new default_args lookup_cmd argument. Verify that the
4742 aliased_command has no default args.
4743 * cli/cli-decode.c (help_cmd): Show aliases definitions.
4744 (lookup_cmd_1, lookup_cmd): New argument default_args.
4745 (add_alias_cmd):
4746 Add NULL for new default_args lookup_cmd argument.
4747 (print_help_for_command): Show default args under the layout
4748 alias some_alias = some_aliased_cmd some_alias_default_arg.
4749 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
4750 xfree default_args in destructor.
4751 * cli/cli-script.c (process_next_line, do_define_command):
4752 Add NULL for new default_args lookup_cmd argument.
4753 * command.h: Declare new default_args argument in lookup_cmd
4754 and lookup_cmd_1.
4755 * completer.c (complete_line_internal_1):
4756 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4757 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
4758 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
4759 Likewise.
4760 * infcmd.c (_initialize_infcmd): Likewise.
4761 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
4762 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
4763 * python/py-param.c (add_setshow_generic): Likewise.
4764 * remote.c (_initialize_remote): Likewise.
4765 * top.c (execute_command): Prepend default_args if command has some.
4766 (set_verbose):
4767 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4768 * tracepoint.c (validate_actionline, encode_actions_1):
4769 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4770
4771 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4772
4773 * jit.c (jit_read_descriptor): Use bool as the return type.
4774 (jit_breakpoint_re_set_internal): Use bool as the return type.
4775 Invert the return value logic; return true if the jit breakpoint
4776 has been successfully initialized.
4777 (jit_inferior_init): Update the call to
4778 jit_breakpoint_re_set_internal.
4779
4780 2020-06-22 Pedro Alves <palves@redhat.com>
4781
4782 PR gdb/25939
4783 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
4784 Use the current inferior instead. Don't return
4785 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
4786 wait again.
4787 * sol-thread.c (sol_thread_target::wait): Don't reference
4788 inferior_ptid.
4789 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
4790 (sol_update_thread_list_callback): Use the current inferior's pid
4791 instead of inferior_ptid.
4792
4793 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4794
4795 * procfs.c: Cleanup many comments.
4796
4797 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
4798 (AFTER_WATCHFLAG): Replace by value.
4799
4800 (MAIN_PROC_NAME_FORMAT): Inline ...
4801 (create_procinfo): ... here.
4802
4803 (procfs_debug_inferior): Remove SYS_exec handling.
4804 (syscall_is_exec): Likewise.
4805 (procfs_set_exec_trap): Likewise.
4806
4807 (syscall_is_lwp_exit): Inline in callers.
4808 (syscall_is_exit): Likewise.
4809 (syscall_is_exec): Likewise.
4810 (syscall_is_lwp_create): Likewise.
4811
4812 (invalidate_cache): Remove #if 0 code.
4813
4814 (make_signal_thread_runnable): Remove.
4815 (procfs_target::resume): Remove #if 0 code.
4816
4817 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4818
4819 PR gdb/25939
4820 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
4821 call ...
4822 (procfs_target::create_inferior): ... here.
4823
4824 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4825
4826 * exec.c (validate_exec_file): Ensure the build-id is up to
4827 date by calling reopen_exec_file (that checks file timestamp
4828 to decide to re-read the file).
4829
4830 2020-06-18 Pedro Alves <palves@redhat.com>
4831
4832 PR gdb/25412
4833 * gdbthread.h (delete_thread, delete_thread_silent)
4834 (find_thread_ptid): Update comments.
4835 * thread.c (current_thread_): New global.
4836 (is_current_thread): Move higher, and reimplement.
4837 (inferior_thread): Reimplement.
4838 (set_thread_exited): Use bool. Add assertions.
4839 (add_thread_silent): Simplify thread-reuse handling by always
4840 calling delete_thread.
4841 (delete_thread): Remove intro comment.
4842 (find_thread_ptid): Skip exited threads.
4843 (switch_to_thread_no_regs): Write to current_thread_.
4844 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
4845 INFERIOR_PTID. Clear current_thread_.
4846
4847 2020-06-18 Pedro Alves <palves@redhat.com>
4848
4849 * aix-thread.c (pd_update): Use switch_to_thread.
4850
4851 2020-06-18 Pedro Alves <palves@redhat.com>
4852
4853 * ravenscar-thread.c (ravenscar_thread_target): Update.
4854 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
4855 (ravenscar_thread_target::add_active_thread): ... this. Don't
4856 set m_base_ptid here. Update to avoid referencing inferior_ptid.
4857 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
4858
4859 2020-06-18 Pedro Alves <palves@redhat.com>
4860
4861 * nat/windows-nat.c (current_windows_thread): Remove.
4862 * nat/windows-nat.h (current_windows_thread): Remove.
4863 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
4864 Adjust.
4865 (display_selectors): Adjust to fetch the current
4866 windows_thread_info based on inferior_ptid.
4867 (fake_create_process): No longer write to current_windows_thread.
4868 (windows_nat_target::get_windows_debug_event):
4869 Don't set inferior_ptid or current_windows_thread.
4870 (windows_nat_target::wait): Adjust to not rely on
4871 current_windows_thread.
4872 (do_initial_windows_stuff): Now a method of windows_nat_target.
4873 Switch to the last_ptid thread.
4874 (windows_nat_target::attach): Adjust.
4875 (windows_nat_target::detach): Use switch_to_no_thread instead of
4876 writing to inferior_ptid directly.
4877 (windows_nat_target::create_inferior): Adjust.
4878
4879 2020-06-18 Pedro Alves <palves@redhat.com>
4880
4881 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
4882
4883 2020-06-18 Pedro Alves <palves@redhat.com>
4884
4885 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
4886 after creating it, instead of writing to inferior_ptid. Don't
4887 write to inferior_ptid.
4888
4889 2020-06-18 Pedro Alves <palves@redhat.com>
4890
4891 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
4892
4893 2020-06-18 Pedro Alves <palves@redhat.com>
4894
4895 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
4896 it, instead of writing to inferior_ptid.
4897
4898 2020-06-18 Pedro Alves <palves@redhat.com>
4899
4900 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
4901 to inferior_ptid.
4902
4903 2020-06-18 Pedro Alves <palves@redhat.com>
4904
4905 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
4906 instead of writing to inferior_ptid directly.
4907
4908 2020-06-18 Pedro Alves <palves@redhat.com>
4909
4910 * corelow.c (core_target::close): Use switch_to_no_thread instead
4911 of writing to inferior_ptid directly.
4912 (add_to_thread_list, core_target_open): Use switch_to_thread
4913 instead of writing to inferior_ptid directly.
4914
4915 2020-06-18 Pedro Alves <palves@redhat.com>
4916
4917 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
4918 inferior_ptid.
4919 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
4920 inferior_ptid.
4921 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
4922 inferior_ptid directly.
4923 (darwin_nat_target::init_thread_list): Switch to thread, instead
4924 of writing to inferior_ptid.
4925 (darwin_nat_target::attach): Don't write to inferior_ptid.
4926 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
4927
4928 2020-06-18 Pedro Alves <palves@redhat.com>
4929
4930 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
4931 thread.
4932 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
4933 Instead use switch_to_thread.
4934 (gnu_nat_target::detach): Use switch_to_no_thread
4935 instead of writing to inferior_ptid directly. Used passed-in
4936 inferior instead of looking up the inferior by pid.
4937
4938 2020-06-18 Pedro Alves <palves@redhat.com>
4939
4940 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
4941 inferior_ptid.
4942
4943 2020-06-18 Pedro Alves <palves@redhat.com>
4944
4945 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
4946 inferior_ptid.
4947 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
4948 thread.
4949 (nto_procfs_target::detach): Avoid referencing
4950 inferior_ptid. Use switch_to_no_thread instead of writing to
4951 inferior_ptid directly.
4952 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
4953 instead of writing to inferior_ptid directly.
4954 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
4955 to thread.
4956
4957 2020-06-18 Pedro Alves <palves@redhat.com>
4958
4959 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
4960 after creating it, instead of writing to inferior_ptid.
4961 (gdbsim_target_open): Use switch_to_no_thread instead of writing
4962 to inferior_ptid directly.
4963 (gdbsim_target::wait): Don't write to inferior_ptid.
4964
4965 2020-06-18 Pedro Alves <palves@redhat.com>
4966
4967 * remote.c (remote_target::remote_notice_new_inferior): Use
4968 switch_to_thread instead of writing to inferior_ptid directly.
4969 (remote_target::add_current_inferior_and_thread): Use
4970 switch_to_no_thread instead of writing to inferior_ptid directly.
4971 (extended_remote_target::attach): Use switch_to_inferior_no_thread
4972 and switch_to_thread instead of using set_current_inferior or
4973 writing to inferior_ptid directly.
4974
4975 2020-06-18 Pedro Alves <palves@redhat.com>
4976
4977 * tracectf.c (ctf_target_open): Switch to added thread instead of
4978 writing to inferior_ptid directly.
4979 (ctf_target::close): Use switch_to_no_thread instead of writing to
4980 inferior_ptid directly.
4981
4982 2020-06-18 Pedro Alves <palves@redhat.com>
4983
4984 * tracefile-tfile.c (tfile_target_open): Don't write to
4985 inferior_ptid directly, instead switch to added thread.
4986 (tfile_target::close): Use switch_to_no_thread instead of writing
4987 to inferior_ptid directly.
4988
4989 2020-06-18 Pedro Alves <palves@redhat.com>
4990
4991 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
4992 (procfs_target::detach): Use switch_to_no_thread
4993 instead of writing to inferior_ptid directly.
4994 (do_attach): Change return type to void. Switch to the added
4995 thread.
4996 (procfs_target::create_inferior): Switch to the added thread.
4997 (procfs_do_thread_registers): Don't write to inferior_ptid.
4998
4999 2020-06-18 Pedro Alves <palves@redhat.com>
5000
5001 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
5002 of writing to inferior_ptid.
5003 (scoped_restore_exited_inferior): Delete.
5004 (handle_vfork_child_exec_or_exit): Simplify using
5005 scoped_restore_current_pspace_and_thread. Use switch_to_thread
5006 instead of writing to inferior_ptid.
5007 (THREAD_STOPPED_BY): Delete.
5008 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
5009 (thread_stopped_by_hw_breakpoint): Delete.
5010 (save_waitstatus): Use
5011 scoped_restore_current_thread+switch_to_thread, and call
5012 target_stopped_by_watchpoint instead of
5013 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
5014 instead of thread_stopped_by_sw_breakpoint, and
5015 target_stopped_by_hw_breakpoint instead of
5016 thread_stopped_by_hw_breakpoint.
5017 (handle_inferior_event)
5018 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
5019 inferior_ptid directly, nor
5020 set_current_inferior/set_current_program_space. Use
5021 switch_to_thread / switch_to_inferior_no_thread instead.
5022
5023 2020-06-18 Pedro Alves <palves@redhat.com>
5024
5025 * target.c (generic_mourn_inferior): Use switch_to_no_thread
5026 instead of writing to inferior_ptid.
5027
5028 2020-06-18 Pedro Alves <palves@redhat.com>
5029
5030 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
5031 added thread.
5032 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
5033 to the added thread.
5034 (inf_ptrace_target::detach_success): Use switch_to_no_thread
5035 instead of writing to inferior_ptid.
5036
5037 2020-06-18 Pedro Alves <palves@redhat.com>
5038
5039 * gdbarch-selftests.c: Include "progspace-and-thread.h".
5040 (register_to_value_test): Mock a program_space too. Heap-allocate
5041 the address space. Don't write to inferior_ptid. Use
5042 switch_to_thread instead.
5043
5044 2020-06-18 Pedro Alves <palves@redhat.com>
5045
5046 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
5047 Delete.
5048 (find_signalled_thread()): New, factored out from
5049 linux_make_corefile_notes and adjusted to handle exited threads.
5050 (linux_make_corefile_notes): Adjust to use the new
5051 find_signalled_thread.
5052
5053 2020-06-18 Pedro Alves <palves@redhat.com>
5054
5055 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
5056 of saving/restoring inferior_ptid.
5057
5058 2020-06-17 Tom Tromey <tom@tromey.com>
5059
5060 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
5061 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
5062 declare.
5063 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
5064
5065 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
5066
5067 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
5068 of partial symtabs.
5069
5070 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
5071
5072 * regformats/reg-arm.dat: Remove.
5073 * regformats/reg-bfin.dat: Remove.
5074 * regformats/reg-cris.dat: Remove.
5075 * regformats/reg-crisv32.dat: Remove.
5076 * regformats/reg-m32r.dat: Remove.
5077 * regformats/reg-tilegx.dat: Remove.
5078 * regformats/reg-tilegx32.dat: Remove.
5079
5080 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
5081
5082 * features/Makefile (WHICH): Remove arm files.
5083 * regformats/arm/arm-with-iwmmxt.dat: Remove.
5084 * regformats/arm/arm-with-neon.dat: Remove.
5085 * regformats/arm/arm-with-vfpv2.dat: Remove.
5086 * regformats/arm/arm-with-vfpv3.dat: Remove.
5087
5088 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
5089
5090 * features/Makefile (XMLTOC): Remove rx.xml.
5091
5092 2020-06-17 Pedro Alves <palves@redhat.com>
5093
5094 * gdbthread.h (thread_control_state) <trap_expected> Update
5095 comments.
5096
5097 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5098
5099 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
5100 ada_language::lookup_symbol_nonlocal.
5101 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
5102 (ada_language::lookup_symbol_nonlocal): New member function,
5103 implementation from ada_lookup_symbol_nonlocal.
5104 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
5105 initializer.
5106 (cplus_language_data): Delete la_lookup_symbol_nonlocal
5107 initializer.
5108 (cplus_language::lookup_symbol_nonlocal): New member function.
5109 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
5110 (minimal_language_data) Likewise.
5111 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
5112 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
5113 initializer.
5114 (d_language::lookup_symbol_nonlocal): New member function.
5115 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
5116 initializer.
5117 (f_language::lookup_symbol_nonlocal): New member function.
5118 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
5119 initializer.
5120 * language.c (unknown_language_data): Likewise.
5121 (auto_language_data): Likewise.
5122 * language.h (language_data): Delete la_lookup_symbol_nonlocal
5123 field.
5124 (language_defn::lookup_symbol_nonlocal): New member function.
5125 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
5126 initializer.
5127 * objc-lang.c (objc_language_data): Likewise.
5128 * opencl-lang.c (opencl_language_data): Likewise.
5129 * p-lang.c (pascal_language_data): Likewise.
5130 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
5131 rust_language::lookup_symbol_nonlocal.
5132 (rust_language_data): Delete la_lookup_symbol_nonlocal
5133 initializer.
5134 (rust_language::lookup_symbol_nonlocal): New member function,
5135 implementation from rust_lookup_symbol_nonlocal.
5136 * symtab.c (lookup_symbol_aux): Update call to
5137 lookup_symbol_nonlocal.
5138 (basic_lookup_symbol_nonlocal): Rename to...
5139 (language_defn::lookup_symbol_nonlocal): ...this, and update
5140 header comment. Remove language_defn parameter, and replace with
5141 uses of `this'.
5142 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
5143
5144 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5145
5146 * ada-lang.c (ada_language_data): Delete la_value_print_inner
5147 initializer.
5148 (ada_language::value_print_inner): New member function.
5149 * c-lang.c (c_language_data): Delete la_value_print_inner
5150 initializer.
5151 (cplus_language_data): Likewise.
5152 (asm_language_data): Likewise.
5153 (minimal_language_data): Likewise.
5154 * d-lang.c (d_language_data): Likewise.
5155 (d_language::value_print_inner): New member function.
5156 * f-lang.c (f_language_data): Delete la_value_print_inner
5157 initializer.
5158 (f_language::value_print_inner): New member function.
5159 * f-lang.h (f_value_print_innner): Rename to...
5160 (f_value_print_inner): ...this (note spelling of 'inner').
5161 * f-valprint.c (f_value_print_innner): Rename to...
5162 (f_value_print_inner): ...this (note spelling of 'inner').
5163 * go-lang.c (go_language_data): Delete la_value_print_inner
5164 initializer.
5165 (go_language::value_print_inner): New member function.
5166 * language.c (language_defn::value_print_inner): Define new member
5167 function.
5168 (unk_lang_value_print_inner): Delete.
5169 (unknown_language_data): Delete la_value_print_inner initializer.
5170 (unknown_language::value_print_inner): New member function.
5171 (auto_language_data): Delete la_value_print_inner initializer.
5172 (auto_language::value_print_inner): New member function.
5173 * language.h (language_data): Delete la_value_print_inner field.
5174 (language_defn::value_print_inner): Delcare new member function.
5175 * m2-lang.c (m2_language_data): Delete la_value_print_inner
5176 initializer.
5177 (m2_language::value_print_inner): New member function.
5178 * objc-lang.c (objc_language_data): Delete la_value_print_inner
5179 initializer.
5180 * opencl-lang.c (opencl_language_data): Likewise.
5181 * p-lang.c (pascal_language_data): Likewise.
5182 (pascal_language::value_print_inner): New member function.
5183 * rust-lang.c (rust_language_data): Delete la_value_print_inner
5184 initializer.
5185 (rust_language::value_print_inner): New member function.
5186 * valprint.c (do_val_print): Update call to value_print_inner.
5187
5188 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5189
5190 * ada-lang.c (ada_language_data): Delete la_value_print
5191 initializer.
5192 (ada_language::value_print): New member function.
5193 * c-lang.c (c_language_data): Delete la_value_print initializer.
5194 (cplus_language_data): Likewise.
5195 (asm_language_data): Likewise.
5196 (minimal_language_data): Likewise.
5197 * d-lang.c (d_language_data): Likewise.
5198 * f-lang.c (f_language_data): Likewise.
5199 * go-lang.c (go_language_data): Likewise.
5200 * language.c (unk_lang_value_print): Delete.
5201 (language_defn::value_print): Define new member function.
5202 (unknown_language_data): Delete la_value_print initializer.
5203 (unknown_language::value_print): New member function.
5204 (auto_language_data): Delete la_value_print initializer.
5205 (auto_language::value_print): New member function.
5206 * language.h (language_data): Delete la_value_print field.
5207 (language_defn::value_print): Declare new member function.
5208 (LA_VALUE_PRINT): Update call to value_print.
5209 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
5210 * objc-lang.c (objc_language_data): Likewise.
5211 * opencl-lang.c (opencl_language_data): Likewise.
5212 * p-lang.c (pascal_language_data): Likewise.
5213 (pascal_language::value_print): New member function.
5214 * rust-lang.c (rust_language_data): Delete la_value_print
5215 initializer.
5216
5217 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5218
5219 * ada-lang.c (ada_watch_location_expression): Rename to
5220 ada_language::watch_location_expression.
5221 (ada_language_data): Delete la_watch_location_expression
5222 initializer.
5223 (ada_language::watch_location_expression): New member function,
5224 implementation from ada_watch_location_expression.
5225 * breakpoint.c (watch_command_1): Update call to
5226 watch_location_expression.
5227 * c-lang.c (c_watch_location_expression): Rename to
5228 language_defn::watch_location_expression.
5229 (c_language_data): Delete la_watch_location_expression
5230 initializer.
5231 (cplus_language_data): Likewise.
5232 (asm_language_data): Likewise.
5233 (minimal_language_data): Likewise.
5234 * c-lang.h (c_watch_location_expression): Delete declaration.
5235 * d-lang.c (d_language_data): Delete la_watch_location_expression
5236 initializer.
5237 * f-lang.c (f_language_data): Likewise.
5238 * go-lang.c (go_language_data): Likewise.
5239 * language.c (language_defn::watch_location_expression): Member
5240 function implementation from c_watch_location_expression.
5241 (unknown_language_data): Delete la_watch_location_expression
5242 initializer.
5243 (auto_language_data): Likewise.
5244 * language.h (language_data): Delete la_watch_location_expression
5245 field.
5246 (language_defn::watch_location_expression): Declare new member
5247 function.
5248 * m2-lang.c (m2_language_data): Delete
5249 la_watch_location_expression initializer.
5250 * objc-lang.c (objc_language_data): Likewise.
5251 * opencl-lang.c (opencl_language_data): Likewise.
5252 * p-lang.c (pascal_language_data): Likewise.
5253 * rust-lang.c (rust_watch_location_expression): Rename to
5254 rust_language::watch_location_expression.
5255 (rust_language_data): Delete la_watch_location_expression
5256 initializer.
5257 (rust_language::watch_location_expression): New member function,
5258 implementation from rust_watch_location_expression.
5259
5260 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5261
5262 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
5263 ada_language::collect_symbol_completion_matches.
5264 (ada_language_data): Delete la_collect_symbol_completion_matches
5265 initializer.
5266 (ada_language::collect_symbol_completion_matches): New member
5267 function, implementation from
5268 ada_collect_symbol_completion_matches.
5269 * c-lang.c (c_language_data): Delete
5270 la_collect_symbol_completion_matches initializer.
5271 (cplus_language_data): Likewise.
5272 (asm_language_data): Likewise.
5273 (minimal_language_data): Likewise.
5274 * d-lang.c (d_language_data): Likewise.
5275 * f-lang.c (f_collect_symbol_completion_matches): Rename to
5276 f_language::collect_symbol_completion_matches.
5277 (f_language_data): Delete la_collect_symbol_completion_matches
5278 initializer.
5279 (f_language::collect_symbol_completion_matches) New member
5280 function, implementation from f_collect_symbol_completion_matches.
5281 * go-lang.c (go_language_data): Delete
5282 la_collect_symbol_completion_matches initializer.
5283 * language.c (unknown_language_data): Likewise.
5284 (auto_language_data): Likewise.
5285 * language.h (language_data): Delete
5286 la_collect_symbol_completion_matches field.
5287 (language_defn::collect_symbol_completion_matches): New member
5288 function.
5289 * m2-lang.c (m2_language_data): Delete
5290 la_collect_symbol_completion_matches initializer.
5291 * objc-lang.c (objc_language_data): Likewise.
5292 * opencl-lang.c (opencl_language_data): Likewise.
5293 * p-lang.c (pascal_language_data): Likewise.
5294 * rust-lang.c (rust_language_data): Likewise.
5295 * symtab.c (default_collect_symbol_completion_matches): Delete.
5296 (collect_symbol_completion_matches): Update call to
5297 collect_symbol_completion_matches.
5298 (collect_symbol_completion_matches_type): Likewise.
5299 * symtab.h (default_collect_symbol_completion_matches): Delete
5300 declaration.
5301
5302 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5303
5304 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
5305 (ada_language_data): Delete la_word_break_characters initializer.
5306 (ada_language::word_break_characters): New member function.
5307 * c-lang.c (c_language_data): Delete la_word_break_characters
5308 initializer.
5309 (cplus_language_data): Likewise.
5310 (asm_language_data): Likewise.
5311 (minimal_language_data): Likewise.
5312 * completer.c: Update global comment.
5313 (advance_to_expression_complete_word_point): Update call to
5314 word_break_characters.
5315 (complete_files_symbols): Likewise.
5316 (complete_line_internal_1): Likewise.
5317 (default_completer_handle_brkchars): Likewise.
5318 (skip_quoted_chars): Likewise.
5319 * d-lang.c (d_language_data): Delete la_word_break_characters
5320 initializer.
5321 * f-lang.c (f_word_break_characters): Delete.
5322 (f_language_data): Delete la_word_break_characters initializer.
5323 (f_language::word_break_characters): New member function.
5324 * go-lang.c (go_language_data): Delete la_word_break_characters
5325 initializer.
5326 * language.c (unknown_language_data): Likewise.
5327 (auto_language_data): Likewise.
5328 * language.h (default_word_break_characters): Move declaration to
5329 earlier in the file.
5330 (language_data): Delete la_word_break_characters field.
5331 (language_defn::word_break_characters): New member function.
5332 * m2-lang.c (m2_language_data): Delete la_word_break_characters
5333 initializer.
5334 * objc-lang.c (objc_language_data): Likewise.
5335 * opencl-lang.c (opencl_language_data): Likewise.
5336 * p-lang.c (pascal_language_data): Likewise.
5337 * rust-lang.c (rust_language_data): Likewise.
5338
5339 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5340
5341 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
5342 (ada_language_data): Delete la_get_symbol_name_matcher
5343 initializer.
5344 (language_defn::get_symbol_name_matcher_inner): New member
5345 function.
5346 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
5347 initializer.
5348 (cplus_language_data): Likewise.
5349 (cplus_language::get_symbol_name_matcher_inner): New member
5350 function.
5351 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
5352 (minimal_language_data): Likewise.
5353 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
5354 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
5355 initializer.
5356 * dictionary.c (iter_match_first_hashed): Update call to
5357 get_symbol_name_matcher.
5358 (iter_match_next_hashed): Likewise.
5359 (iter_match_next_linear): Likewise.
5360 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
5361 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
5362 initializer.
5363 (f_language::get_symbol_name_matcher_inner): New member function.
5364 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
5365 initializer.
5366 * language.c (default_symbol_name_matcher): Update header comment,
5367 make static.
5368 (language_defn::get_symbol_name_matcher): New definition.
5369 (language_defn::get_symbol_name_matcher_inner): Likewise.
5370 (get_symbol_name_matcher): Delete.
5371 (unknown_language_data): Delete la_get_symbol_name_matcher
5372 initializer.
5373 (auto_language_data): Likewise.
5374 * language.h (language_data): Delete la_get_symbol_name_matcher
5375 field.
5376 (language_defn::get_symbol_name_matcher): New member function.
5377 (language_defn::get_symbol_name_matcher_inner): Likewise.
5378 (default_symbol_name_matcher): Delete declaration.
5379 * linespec.c (find_methods): Update call to
5380 get_symbol_name_matcher.
5381 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
5382 initializer.
5383 * minsyms.c (lookup_minimal_symbol): Update call to
5384 get_symbol_name_matcher.
5385 (iterate_over_minimal_symbols): Likewise.
5386 * objc-lang.c (objc_language_data): Delete
5387 la_get_symbol_name_matcher initializer.
5388 * opencl-lang.c (opencl_language_data): Likewise.
5389 * p-lang.c (pascal_language_data): Likewise.
5390 * psymtab.c (psymbol_name_matches): Update call to
5391 get_symbol_name_matcher.
5392 * rust-lang.c (rust_language_data): Delete
5393 la_get_symbol_name_matcher initializer.
5394 * symtab.c (symbol_matches_search_name): Update call to
5395 get_symbol_name_matcher.
5396 (compare_symbol_name): Likewise.
5397
5398 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5399
5400 * ada-lang.c (ada_language_data): Delete la_compute_program
5401 initializer.
5402 * c-lang.c (c_language_data): Likewise.
5403 (c_language::compute_program): New member function.
5404 (cplus_language_data): Delete la_compute_program initializer.
5405 (cplus_language::compute_program): New member function.
5406 (asm_language_data): Delete la_compute_program initializer.
5407 (minimal_language_data): Likewise.
5408 * c-lang.h (c_compute_program): Update comment.
5409 (cplus_compute_program): Likewise.
5410 * compile/compile-c-support.c (c_compute_program): Likewise.
5411 (cplus_compute_program): Likewise.
5412 * compile/compile.c (compile_to_object): Update call to
5413 la_compute_program.
5414 * d-lang.c (d_language_data): Delete la_compute_program
5415 initializer.
5416 * f-lang.c (f_language_data): Likewise.
5417 * go-lang.c (go_language_data): Likewise.
5418 * language.c (unknown_language_data): Likewise.
5419 (auto_language_data): Likewise.
5420 * language.h (language_data): Delete la_compute_program field.
5421 (language_defn::compute_program): New member function.
5422 * m2-lang.c (m2_language_data): Delete la_compute_program
5423 initializer.
5424 * objc-lang.c (objc_language_data): Likewise.
5425 * opencl-lang.c (opencl_language_data): Likewise.
5426 * p-lang.c (pascal_language_data): Likewise.
5427 * rust-lang.c (rust_language_data): Likewise.
5428
5429 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5430
5431 * ada-lang.c (ada_language_data) Delete
5432 la_class_name_from_physname initializer.
5433 * c-lang.c (c_language_data): Likewise.
5434 (cplus_language_data): Likewise.
5435 (cplus_language::class_name_from_physname): New member function.
5436 (asm_language_data): Delete la_class_name_from_physname
5437 initializer.
5438 (minimal_language_data): Likewise.
5439 * d-lang.c (d_language_data): Likewise.
5440 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
5441 method on language_defn class.
5442 (guess_full_die_structure_name): Likewise.
5443 * f-lang.c (f_language_data): Delete la_class_name_from_physname
5444 initializer.
5445 * go-lang.c (go_language_data): Likewise.
5446 * language.c (language_class_name_from_physname): Delete.
5447 (unk_lang_class_name): Delete.
5448 (unknown_language_data): Delete la_class_name_from_physname
5449 initializer.
5450 (auto_language_data): Likewise.
5451 * language.h (language_data): Delete la_class_name_from_physname
5452 field.
5453 (language_defn::class_name_from_physname): New function.
5454 (language_class_name_from_physname): Delete declaration.
5455 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
5456 initializer.
5457 * objc-lang.c (objc_language_data): Likewise.
5458 * opencl-lang.c (opencl_language_data): Likewise.
5459 * p-lang.c (pascal_language_data): Likewise.
5460 * rust-lang.c (rust_language_data): Likewise.
5461
5462 2020-06-16 Tom Tromey <tom@tromey.com>
5463
5464 * tui/tui-data.h (STATUS_NAME): New macro.
5465 * tui/tui-layout.c (tui_remove_some_windows)
5466 (initialize_known_windows, tui_register_window)
5467 (tui_layout_split::remove_windows, initialize_layouts)
5468 (tui_new_layout_command): Don't use hard-coded window names.
5469
5470 2020-06-16 Tom Tromey <tom@tromey.com>
5471
5472 PR tui/25348:
5473 * tui/tui.c (tui_ensure_readline_initialized): Rename from
5474 tui_initialize_readline. Only run once. Call rl_initialize.
5475 * tui/tui.h (tui_ensure_readline_initialized): Rename from
5476 tui_initialize_readline.
5477 * tui/tui-io.c (tui_setup_io): Call
5478 tui_ensure_readline_initialized.
5479 * tui/tui-interp.c (tui_interp::init): Update.
5480
5481 2020-06-16 Tom Tromey <tom@tromey.com>
5482
5483 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
5484 Also preserve the status window.
5485
5486 2020-06-16 Tom Tromey <tom@tromey.com>
5487
5488 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
5489 where m_window==nullptr.
5490
5491 2020-06-15 Tom Tromey <tromey@adacore.com>
5492
5493 * windows-nat.c (windows_nat::handle_output_debug_string):
5494 Update.
5495 (windows_nat::handle_ms_vc_exception): Update.
5496 * target.h (target_read_string): Change API.
5497 * target.c (target_read_string): Change API.
5498 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
5499 Update.
5500 * solib-frv.c (frv_current_sos): Update.
5501 * solib-dsbt.c (dsbt_current_sos): Update.
5502 * solib-darwin.c (darwin_current_sos): Update.
5503 * linux-thread-db.c (inferior_has_bug): Update.
5504 * expprint.c (print_subexp_standard): Update.
5505 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
5506 (ada_exception_message_1): Update.
5507
5508 2020-06-15 Tom Tromey <tromey@adacore.com>
5509
5510 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
5511
5512 2020-06-15 Tom Tromey <tromey@adacore.com>
5513
5514 * valprint.c (read_string): Update comment.
5515 * target.c (MIN): Remove.
5516 (target_read_string): Rewrite.
5517
5518 2020-06-15 Tom Tromey <tromey@adacore.com>
5519
5520 * corefile.c (read_memory_string): Remove.
5521 * ada-valprint.c (ada_value_print_ptr): Update.
5522 * ada-lang.h (ada_tag_name): Change return type.
5523 * ada-lang.c (type_from_tag): Update.
5524 (ada_tag_name_from_tsd): Change return type. Use
5525 target_read_string.
5526 (ada_tag_name): Likewise.
5527 * gdbcore.h (read_memory_string): Don't declare.
5528
5529 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
5530
5531 * symtab.c (rbreak_command): Ignore Windows drive colon.
5532
5533 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
5534
5535 * NEWS: Mention removed GDBserver host support.
5536
5537 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
5538
5539 * features/riscv/rebuild-csr-xml.sh: Updated.
5540
5541 2020-06-11 Tom Tromey <tom@tromey.com>
5542
5543 PR gdb/18318:
5544 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
5545
5546 2020-06-09 Jonny Grant <jg@jguk.org>
5547 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
5548
5549 * main.c (captured_main_1): Don't print new line after help.
5550 (print_gdb_help): add mailing list and IRC channel information
5551 to --help. Add new lines between items in the footer. Remove
5552 quotes around bug url.
5553
5554 2020-06-11 Keith Seitz <keiths@redhat.com>
5555
5556 PR gdb/21356
5557 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
5558 Resolve typedefs for type length calculations.
5559
5560 2020-06-10 Tom de Vries <tdevries@suse.de>
5561
5562 PR ada/24713
5563 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
5564 (write_psymbols): Enable .gdb_index for ada.
5565 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
5566 ada.
5567
5568 2020-06-10 Tom de Vries <tdevries@suse.de>
5569
5570 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
5571 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
5572 namei" instead of "const char *name" argument.
5573 (dw2_map_matching_symbols): Use "offset_type namei" variant of
5574 dw2_symtab_iter_init.
5575
5576 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
5577
5578 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
5579 to use type::field and field::type instead.
5580
5581 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
5582
5583 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
5584 to use field::type instead.
5585
5586 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
5587
5588 * gdbtypes.h (struct field) <type, set_type>: New methods.
5589 Rename `type` field to...
5590 <m_type>: ... this. Change references throughout to use type or
5591 set_type methods.
5592 (FIELD_TYPE): Use field::type. Change call sites that modify
5593 the field's type to use field::set_type instead.
5594
5595 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
5596
5597 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
5598 to use type::index_type instead.
5599
5600 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
5601
5602 * gdbtypes.h (struct type) <index_type, set_index_type>: New
5603 methods.
5604 (TYPE_INDEX_TYPE): Use type::index_type.
5605 * gdbtypes.c (create_array_type_with_stride): Likewise.
5606
5607 2020-06-07 Tom Tromey <tom@tromey.com>
5608
5609 * valprint.c (generic_val_print_float): Remove "embedded_offset"
5610 parameter.
5611 (generic_value_print): Update.
5612
5613 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
5614
5615 Revert commit 982a38f60b0.
5616 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
5617
5618 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
5619
5620 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
5621 avoid use after free.
5622
5623 2020-06-05 Tom de Vries <tdevries@suse.de>
5624
5625 * NEWS: Fix typos.
5626
5627 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
5628
5629 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
5630 the per_bfd object.
5631 (dwarf2_read_debug_names): Likewise.
5632 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
5633 object when re-using a per_bfd object with an index.
5634
5635 2020-06-03 Tom de Vries <tdevries@suse.de>
5636
5637 PR symtab/26046
5638 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
5639 children for C++.
5640 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
5641 DW_TAG_subprogram.
5642
5643 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5644
5645 * ada-lang.c (ada_language_data): Delete skip_trampoline
5646 initializer.
5647 * c-lang.c (c_language_data): Likewise.
5648 (cplus_language_data): Likewise.
5649 (cplus_language::skip_trampoline): New member function.
5650 (asm_language_data): Delete skip_trampoline initializer.
5651 (minimal_language_data): Likewise.
5652 * d-lang.c (d_language_data): Likewise.
5653 * f-lang.c (f_language_data): Likewise.
5654 * go-lang.c (go_language_data): Likewise.
5655 * language.c (unk_lang_trampoline): Delete function.
5656 (skip_language_trampoline): Update.
5657 (unknown_language_data): Delete skip_trampoline initializer.
5658 (auto_language_data): Likewise.
5659 * language.h (language_data): Delete skip_trampoline field.
5660 (language_defn::skip_trampoline): New function.
5661 * m2-lang.c (m2_language_data): Delete skip_trampoline
5662 initializer.
5663 * objc-lang.c (objc_skip_trampoline): Delete function, move
5664 implementation to objc_language::skip_trampoline.
5665 (objc_language_data): Delete skip_trampoline initializer.
5666 (objc_language::skip_trampoline): New member function with
5667 implementation from objc_skip_trampoline.
5668 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
5669 initializer.
5670 * p-lang.c (pascal_language_data): Likewise.
5671 * rust-lang.c (rust_language_data): Likewise.
5672
5673 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5674
5675 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
5676 (ada_language::demangle): New member function.
5677 * c-lang.c (c_language_data): Delete la_demangle initializer.
5678 (cplus_language_data): Delete la_demangle initializer.
5679 (cplus_language::demangle): New member function.
5680 (asm_language_data): Delete la_demangle initializer.
5681 (minimal_language_data): Delete la_demangle initializer.
5682 * d-lang.c (d_language_data): Delete la_demangle initializer.
5683 (d_language::demangle): New member function.
5684 * f-lang.c (f_language_data): Delete la_demangle initializer.
5685 (f_language::demangle): New member function.
5686 * go-lang.c (go_language_data): Delete la_demangle initializer.
5687 (go_language::demangle): New member function.
5688 * language.c (language_demangle): Update.
5689 (unk_lang_demangle): Delete.
5690 (unknown_language_data): Delete la_demangle initializer.
5691 (unknown_language::demangle): New member function.
5692 (auto_language_data): Delete la_demangle initializer.
5693 (auto_language::demangle): New member function.
5694 * language.h (language_data): Delete la_demangle field.
5695 (language_defn::demangle): New function.
5696 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
5697 * objc-lang.c (objc_language_data): Delete la_demangle
5698 initializer.
5699 (objc_language::demangle): New member function.
5700 * opencl-lang.c (opencl_language_data): Delete la_demangle
5701 initializer.
5702 * p-lang.c (pascal_language_data): Likewise.
5703 * rust-lang.c (rust_language_data): Likewise.
5704 (rust_language::demangle): New member function.
5705
5706 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5707
5708 * ada-lang.c (ada_language_data): Delete la_print_type
5709 initializer.
5710 (ada_language::print_type): New member function.
5711 * c-lang.c (c_language_data): Delete la_print_type initializer.
5712 (c_language::print_type): New member function.
5713 (cplus_language_data): Delete la_print_type initializer.
5714 (cplus_language::print_type): New member function.
5715 (asm_language_data): Delete la_print_type initializer.
5716 (asm_language::print_type): New member function.
5717 (minimal_language_data): Delete la_print_type initializer.
5718 (minimal_language::print_type): New member function.
5719 * d-lang.c (d_language_data): Delete la_print_type initializer.
5720 (d_language::print_type): New member function.
5721 * f-lang.c (f_language_data): Delete la_print_type initializer.
5722 (f_language::print_type): New member function.
5723 * go-lang.c (go_language_data): Delete la_print_type initializer.
5724 (go_language::print_type): New member function.
5725 * language.c (unk_lang_print_type): Delete.
5726 (unknown_language_data): Delete la_print_type initializer.
5727 (unknown_language::print_type): New member function.
5728 (auto_language_data): Delete la_print_type initializer.
5729 (auto_language::print_type): New member function.
5730 * language.h (language_data): Delete la_print_type field.
5731 (language_defn::print_type): New function.
5732 (LA_PRINT_TYPE): Update.
5733 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
5734 (m2_language::print_type): New member function.
5735 * objc-lang.c (objc_language_data): Delete la_print_type
5736 initializer.
5737 (objc_language::print_type): New member function.
5738 * opencl-lang.c (opencl_print_type): Delete, implementation moved
5739 to opencl_language::print_type.
5740 (opencl_language_data): Delete la_print_type initializer.
5741 (opencl_language::print_type): New member function, implementation
5742 from opencl_print_type.
5743 * p-lang.c (pascal_language_data): Delete la_print_type
5744 initializer.
5745 (pascal_language::print_type): New member function.
5746 * rust-lang.c (rust_print_type): Delete, implementation moved to
5747 rust_language::print_type.
5748 (rust_language_data): Delete la_print_type initializer.
5749 (rust_language::print_type): New member function, implementation
5750 from rust_print_type.
5751
5752 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5753
5754 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
5755 implementation moves to...
5756 (ada_language::sniff_from_mangled_name): ...here. Update return
5757 type.
5758 (ada_language_data): Delete la_sniff_from_mangled_name
5759 initializer.
5760 * c-lang.c (c_language_data): Likewise.
5761 (cplus_language_data): Likewise.
5762 (cplus_language::sniff_from_mangled_name): New member function,
5763 implementation taken from gdb_sniff_from_mangled_name.
5764 (asm_language_data): Delete la_sniff_from_mangled_name
5765 initializer.
5766 (minimal_language_data): Likewise.
5767 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
5768 implementation moves to cplus_language::sniff_from_mangled_name.
5769 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
5770 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
5771 moves to...
5772 (d_language::sniff_from_mangled_name): ...here.
5773 (d_language_data): Delete la_sniff_from_mangled_name initializer.
5774 * f-lang.c (f_language_data): Likewise.
5775 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
5776 moves to...
5777 (go_language::sniff_from_mangled_name): ...here.
5778 (go_language_data): Delete la_sniff_from_mangled_name initializer.
5779 * language.c (language_sniff_from_mangled_name): Delete.
5780 (unknown_language_data): Delete la_sniff_from_mangled_name
5781 initializer.
5782 (auto_language_data): Likewise.
5783 * language.h (language_data): Delete la_sniff_from_mangled_name
5784 field.
5785 (language_defn::sniff_from_mangled_name): New function.
5786 (language_sniff_from_mangled_name): Delete declaration.
5787 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
5788 field.
5789 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
5790 implementation moves to...
5791 (objc_language::sniff_from_mangled_name): ...here.
5792 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
5793 * opencl-lang.c (opencl_language_data): Likewise.
5794 * p-lang.c (pascal_language_data): Likewise.
5795 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
5796 implementation moves to...
5797 (rust_language::sniff_from_mangled_name): ...here.
5798 (rust_language_data): Delete la_sniff_from_mangled_name
5799 initializer.
5800 * symtab.c (symbol_find_demangled_name): Call
5801 sniff_from_mangled_name member function.
5802
5803 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5804
5805 * ada-lang.c (ada_language_data): Delete la_search_name_hash
5806 initializer.
5807 * c-lang.c (c_language_data): Likewise.
5808 (cplus_language_data): Likewise.
5809 (cplus_language::search_name_hash): New member function.
5810 (asm_language_data): Delete la_search_name_hash initializer.
5811 (minimal_language_data): Likewise.
5812 * d-lang.c (d_language_data): Likewise.
5813 * dictionary.c (default_search_name_hash): Rename to...
5814 (language_defn::search_name_hash): ...this.
5815 * f-lang.c (f_language_data): Likewise.
5816 (f_language::search_name_hash): New member function.
5817 * go-lang.c (go_language_data): Delete la_search_name_hash
5818 initializer.
5819 * language.c (unknown_language_data): Likewise.
5820 (auto_language_data): Likewise.
5821 * language.h (struct language_data): Delete la_search_name_hash
5822 field.
5823 (language_defn::search_name_hash): Declare new member function.
5824 (default_search_name_hash): Delete declaration.
5825 * m2-lang.c (m2_language_data): Delete la_search_name_hash
5826 initializer.
5827 * objc-lang.c (objc_language_data): Likewise.
5828 * opencl-lang.c (opencl_language_data): Likewise.
5829 * p-lang.c (pascal_language_data): Likewise.
5830 * rust-lang.c (rust_language_data): Likewise.
5831 * symtab.c (search_name_hash): Update call.
5832
5833 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5834
5835 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
5836 initializer.
5837 * c-lang.c (class compile_instance): Declare.
5838 (c_language_data): Delete la_get_compile_instance initializer.
5839 (c_language::get_compile_instance): New member function.
5840 (cplus_language_data): Delete la_get_compile_instance initializer.
5841 (cplus_language::get_compile_instance): New member function.
5842 (asm_language_data): Delete la_get_compile_instance initializer.
5843 (minimal_language_data): Likewise.
5844 * c-lang.h (c_get_compile_context): Update comment.
5845 (cplus_get_compile_context): Update comment.
5846 * compile/compile.c (compile_to_object): Update calls, don't rely
5847 on function pointer being NULL.
5848 * d-lang.c (d_language_data): Delete la_get_compile_instance
5849 initializer.
5850 * f-lang.c (f_language_data): Likewise.
5851 * go-lang.c (go_language_data): Likewise.
5852 * language.c (unknown_language_data): Likewise.
5853 (auto_language_data): Likewise.
5854 * language.h (language_data): Delete la_get_compile_instance field.
5855 (language_defn::get_compile_instance): New member function.
5856 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
5857 initializer.
5858 * objc-lang.c (objc_language_data): Likewise.
5859 * opencl-lang.c (opencl_language_data): Likewise.
5860 * p-lang.c (pascal_language_data): Likewise.
5861 * rust-lang.c (rust_language_data): Likewise.
5862
5863 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5864
5865 * ada-lang.c (ada_add_all_symbols): Update comment.
5866 (ada_iterate_over_symbols): Delete, move implementation to...
5867 (ada_language::iterate_over_symbols): ...here, a new member
5868 function, rewrite to use range based for loop.
5869 (ada_language_data): Delete la_iterate_over_symbols initializer.
5870 * c-lang.c (c_language_data): Likewise.
5871 (cplus_language_data): Likewise.
5872 (asm_language_data): Likewise.
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 (language_data): Delete la_iterate_over_symbols field.
5880 (language_defn::iterate_over_symbols): New member function.
5881 (LA_ITERATE_OVER_SYMBOLS): Update.
5882 * linespec.c (iterate_over_all_matching_symtabs): Update.
5883 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
5884 initializer.
5885 * objc-lang.c (objc_language_data): Likewise.
5886 * opencl-lang.c (opencl_language_data): Likewise.
5887 * p-lang.c (pascal_language_data): Likewise.
5888 * rust-lang.c (rust_language_data): Likewise.
5889
5890 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5891
5892 * ada-lang.c (ada_language_data): Delete
5893 la_lookup_transparent_type initializer.
5894 * c-lang.c (c_language_data): Likewise.
5895 (cplus_language_data): Likewise.
5896 (cplus_language::lookup_transparent_type): New member function.
5897 (asm_language_data): Delete la_lookup_transparent_type
5898 initializer.
5899 (minimal_language_data): Likewise.
5900 * d-lang.c (d_language_data): Likewise.
5901 * f-lang.c (f_language_data): Likewise.
5902 * go-lang.c (go_language_data): Likewise.
5903 * language.c (unknown_language_data): Likewise.
5904 (auto_language_data): Likewise.
5905 * language.h (struct language_data): Delete
5906 la_lookup_transparent_type field.
5907 (language_defn::lookup_transparent_type): New member function.
5908 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
5909 initializer.
5910 * objc-lang.c (objc_language_data): Likewise.
5911 * opencl-lang.c (opencl_language_data): Likewise.
5912 * p-lang.c (pascal_language_data): Likewise.
5913 * rust-lang.c (rust_language_data): Likewise.
5914 * symtab.c (symbol_matches_domain): Update call.
5915
5916 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5917
5918 * ada-lang.c (ada_language_arch_info): Delete function, move
5919 implementation to...
5920 (ada_language::language_arch_info): ...here, a new member
5921 function.
5922 (ada_language_data): Delete la_language_arch_info.
5923 * c-lang.c (c_language_data): Likewise.
5924 (c_language::language_arch_info): New member function.
5925 (cplus_language_arch_info): Delete function, move
5926 implementation to...
5927 (cplus_language::language_arch_info): ...here, a new member
5928 function.
5929 (cplus_language_data): Delete la_language_arch_info.
5930 (asm_language_data): Likewise.
5931 (asm_language::language_arch_info): New member function.
5932 (minimal_language_data): Delete la_language_arch_info.
5933 (minimal_language::language_arch_info): New member function.
5934 * d-lang.c (d_language_arch_info): Delete function, move
5935 implementation to...
5936 (d_language::language_arch_info): ...here, a new member
5937 function.
5938 (d_language_data): Delete la_language_arch_info.
5939 * f-lang.c (f_language_arch_info): Delete function, move
5940 implementation to...
5941 (f_language::language_arch_info): ...here, a new member
5942 function.
5943 (f_language_data): Delete la_language_arch_info.
5944 * go-lang.c (go_language_arch_info): Delete function, move
5945 implementation to...
5946 (go_language::language_arch_info): ...here, a new member
5947 function.
5948 (go_language_data): Delete la_language_arch_info.
5949 * language.c (unknown_language_data): Likewise.
5950 (unknown_language::language_arch_info): New member function.
5951 (auto_language_data): Delete la_language_arch_info.
5952 (auto_language::language_arch_info): New member function.
5953 (language_gdbarch_post_init): Update call to
5954 la_language_arch_info.
5955 * language.h (language_data): Delete la_language_arch_info
5956 function pointer.
5957 (language_defn::language_arch_info): New function.
5958 * m2-lang.c (m2_language_arch_info): Delete function, move
5959 implementation to...
5960 (m2_language::language_arch_info): ...here, a new member
5961 function.
5962 (m2_language_data): Delete la_language_arch_info.
5963 * objc-lang.c (objc_language_arch_info): Delete function, move
5964 implementation to...
5965 (objc_language::language_arch_info): ...here, a new member
5966 function.
5967 (objc_language_data): Delete la_language_arch_info.
5968 * opencl-lang.c (opencl_language_arch_info): Delete function, move
5969 implementation to...
5970 (opencl_language::language_arch_info): ...here, a new member
5971 function.
5972 (opencl_language_data): Delete la_language_arch_info.
5973 * p-lang.c (pascal_language_arch_info): Delete function, move
5974 implementation to...
5975 (pascal_language::language_arch_info): ...here, a new member
5976 function.
5977 (pascal_language_data): Delete la_language_arch_info.
5978 * rust-lang.c (rust_language_arch_info): Delete function, move
5979 implementation to...
5980 (rust_language::language_arch_info): ...here, a new member
5981 function.
5982 (rust_language_data): Delete la_language_arch_info.
5983
5984 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5985
5986 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
5987 initializer.
5988 * c-lang.c (c_language_data): Likewise.
5989 (cplus_language_data): Likewise.
5990 (cplus_language::pass_by_reference_info): New method.
5991 (asm_language_data): Delete la_pass_by_reference initializer.
5992 (minimal_language_data): Likewise.
5993 * cp-abi.c (cp_pass_by_reference): Remove use of
5994 default_pass_by_reference.
5995 * d-lang.c (d_language_data): Likewise.
5996 * f-lang.c (f_language_data): Likewise.
5997 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
5998 default_pass_by_reference.
5999 * go-lang.c (go_language_data): Likewise.
6000 * language.c (language_pass_by_reference): Update.
6001 (default_pass_by_reference): Delete.
6002 (unknown_language_data): Delete la_pass_by_reference
6003 initializer.
6004 (auto_language_data): Likewise.
6005 * language.h (struct language_data): Delete la_pass_by_reference
6006 field.
6007 (language_defn::pass_by_reference_info): New member function.
6008 (default_pass_by_reference): Delete declaration.
6009 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
6010 initializer.
6011 * objc-lang.c (objc_language_data): Likewise.
6012 * opencl-lang.c (opencl_language_data): Likewise.
6013 * p-lang.c (pascal_language_data): Likewise.
6014 * rust-lang.c (rust_language_data): Likewise.
6015
6016 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6017
6018 * ada-lang.c (ada_read_var_value): Delete function, move
6019 implementation to...
6020 (ada_language::read_var_value): ...here.
6021 (ada_language_data): Delete la_read_var_value initializer.
6022 * c-lang.c (c_language_data): Likewise.
6023 (cplus_language_data): Likewise.
6024 (minimal_language_data): Likewise.
6025 * d-lang.c (d_language_data): Likewise.
6026 * f-lang.c (f_language_data): Likewise.
6027 * findvar.c (default_read_var_value): Rename to...
6028 (language_defn::read_var_value): ...this.
6029 * findvar.c (read_var_value): Update header comment, and change to
6030 call member function instead of function pointer.
6031 * go-lang.c (go_language_data): Likewise.
6032 * language.c (unknown_language_data): Delete la_read_var_value
6033 initializer.
6034 (auto_language_data): Likewise.
6035 * language.h (struct language_data): Delete la_read_var_value
6036 field.
6037 (language_defn::read_var_value): New member function.
6038 (default_read_var_value): Delete declaration.
6039 * m2-lang.c (m2_language_data): Delete la_read_var_value
6040 initializer.
6041 * objc-lang.c (objc_language_data): Likewise.
6042 * opencl-lang.c (opencl_language_data): Likewise.
6043 * p-lang.c (pascal_language_data): Likewise.
6044 * rust-lang.c (rust_language_data): Likewise.
6045 * value.h (default_read_var_value): Delete declaration.
6046
6047 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6048
6049 * ada-lang.c (ada_print_array_index): Delete function, move
6050 implementation to...
6051 (ada_language::print_array_index): ...here.
6052 (ada_language_data): Delete la_print_array_index initializer.
6053 * c-lang.c (c_language_data): Likewise.
6054 (cplus_language_data): Likewise.
6055 (minimal_language_data): Likewise.
6056 * d-lang.c (d_language_data): Likewise.
6057 * f-lang.c (f_language_data): Likewise.
6058 * go-lang.c (go_language_data): Likewise.
6059 * language.c (default_print_array_index): Delete function, move
6060 implementation to...
6061 (language_defn::print_array_index): ...here.
6062 (unknown_language_data): Delete la_print_array_index initializer.
6063 (auto_language_data): Likewise.
6064 * language.h (struct language_data): Delete la_print_array_index
6065 field.
6066 (language_defn::print_array_index): New member function.
6067 (LA_PRINT_ARRAY_INDEX): Update.
6068 (default_print_array_index): Delete declaration.
6069 * m2-lang.c (m2_language_data): Delete la_print_array_index
6070 initializer.
6071 * objc-lang.c (objc_language_data): Likewise.
6072 * opencl-lang.c (opencl_language_data): Likewise.
6073 * p-lang.c (pascal_language_data): Likewise.
6074 * rust-lang.c (rust_language_data): Likewise.
6075
6076 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6077
6078 * gdb/ada-lang.c (ada_language_defn): Convert to...
6079 (ada_language_data): ...this.
6080 (class ada_language): New class.
6081 (ada_language_defn): New static global.
6082 * gdb/c-lang.c (c_language_defn): Convert to...
6083 (c_language_data): ...this.
6084 (class c_language): New class.
6085 (c_language_defn): New static global.
6086 (cplus_language_defn): Convert to...
6087 (cplus_language_data): ...this.
6088 (class cplus_language): New class.
6089 (cplus_language_defn): New static global.
6090 (asm_language_defn): Convert to...
6091 (asm_language_data): ...this.
6092 (class asm_language): New class.
6093 (asm_language_defn): New static global.
6094 (minimal_language_defn): Convert to...
6095 (minimal_language_data): ...this.
6096 (class minimal_language): New class.
6097 (minimal_language_defn): New static global.
6098 * gdb/d-lang.c (d_language_defn): Convert to...
6099 (d_language_data): ...this.
6100 (class d_language): New class.
6101 (d_language_defn): New static global.
6102 * gdb/f-lang.c (f_language_defn): Convert to...
6103 (f_language_data): ...this.
6104 (class f_language): New class.
6105 (f_language_defn): New static global.
6106 * gdb/go-lang.c (go_language_defn): Convert to...
6107 (go_language_data): ...this.
6108 (class go_language): New class.
6109 (go_language_defn): New static global.
6110 * gdb/language.c (unknown_language_defn): Remove declaration.
6111 (current_language): Initialize to nullptr, real initialization is
6112 moved to _initialize_language.
6113 (languages): Delete global.
6114 (language_defn::languages): Define.
6115 (set_language_command): Use language_defn::languages.
6116 (set_language): Likewise.
6117 (range_error): Likewise.
6118 (language_enum): Likewise.
6119 (language_def): Likewise.
6120 (add_set_language_command): Use language_def::languages for the
6121 language list, and language_def to lookup language pointers.
6122 (skip_language_trampoline): Use language_defn::languages.
6123 (unknown_language_defn): Convert to...
6124 (unknown_language_data): ...this.
6125 (class unknown_language): New class.
6126 (unknown_language_defn): New static global.
6127 (auto_language_defn): Convert to...
6128 (auto_language_data): ...this.
6129 (class auto_language): New class.
6130 (auto_language_defn): New static global.
6131 (language_gdbarch_post_init): Use language_defn::languages.
6132 (_initialize_language): Initialize current_language.
6133 * gdb/language.h (struct language_defn): Rename to...
6134 (struct language_data): ...this.
6135 (struct language_defn): New.
6136 (auto_language_defn): Delete.
6137 (unknown_language_defn): Delete.
6138 (minimal_language_defn): Delete.
6139 (ada_language_defn): Delete.
6140 (asm_language_defn): Delete.
6141 (c_language_defn): Delete.
6142 (cplus_language_defn): Delete.
6143 (d_language_defn): Delete.
6144 (f_language_defn): Delete.
6145 (go_language_defn): Delete.
6146 (m2_language_defn): Delete.
6147 (objc_language_defn): Delete.
6148 (opencl_language_defn): Delete.
6149 (pascal_language_defn): Delete.
6150 (rust_language_defn): Delete.
6151 * gdb/m2-lang.c (m2_language_defn): Convert to...
6152 (m2_language_data): ...this.
6153 (class m2_language): New class.
6154 (m2_language_defn): New static global.
6155 * gdb/objc-lang.c (objc_language_defn): Convert to...
6156 (objc_language_data): ...this.
6157 (class objc_language): New class.
6158 (objc_language_defn): New static global.
6159 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
6160 (opencl_language_data): ...this.
6161 (class opencl_language): New class.
6162 (opencl_language_defn): New static global.
6163 * gdb/p-lang.c (pascal_language_defn): Convert to...
6164 (pascal_language_data): ...this.
6165 (class pascal_language): New class.
6166 (pascal_language_defn): New static global.
6167 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
6168 language pointer, update comment format.
6169 * gdb/rust-lang.c (rust_language_defn): Convert to...
6170 (rust_language_data): ...this.
6171 (class rust_language): New class.
6172 (rust_language_defn): New static global.
6173
6174 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
6175
6176 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
6177 member variable.
6178 <m_stmt_at_address>: New member variable.
6179 (lnp_state_machine::record_line): Don't record some lines, update
6180 tracking of is_stmt at the same address.
6181 (lnp_state_machine::lnp_state_machine): Initialise new member
6182 variables.
6183
6184 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
6185
6186 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
6187 "-include gnu-nat-mig.h".
6188 * gnu-nat-mig.h: New file.
6189 * gnu-nat.c: Include "gnu-nat-mig.h".
6190 (exc_server, msg_reply_server, notify_server,
6191 process_reply_server): Remove declarations.
6192
6193 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6194
6195 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
6196 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
6197 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
6198 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
6199 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
6200 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
6201 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
6202 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
6203 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
6204 to gnu_nat_target class.
6205 * gnu-nat.c: Likewise.
6206 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
6207 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
6208 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
6209 object.
6210 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
6211 instead of `gnu_target'.
6212
6213 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6214
6215 * i386-gnu-tdep.c: Include "gdbcore.h"
6216 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
6217 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
6218 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
6219 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
6220 i386_gnu_sigcontext_addr): New functions
6221 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
6222 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
6223 tdep.
6224
6225 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6226
6227 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
6228 before fork_inferior call. Avoid calling it if target_is_pushed returns
6229 true.
6230
6231 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6232
6233 * gnu-nat.h (gnu_target): New variable declaration.
6234 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
6235 gnu_target.
6236 * gnu-nat.c (gnu_target): New variable.
6237 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
6238 add_thread_silent, and add_thread calls.
6239 (gnu_nat_target::create_inferior): Pass gnu_target to
6240 add_thread_silent, thread_change_ptid call.
6241 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
6242 call.
6243
6244 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6245
6246 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
6247 (gnu_nat_target::find_memory_regions): Remove unused
6248 `old_address' variable.
6249
6250 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6251
6252 * gnu-nat.c: Include "gdbarch.h".
6253
6254 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6255
6256 * reply_mig_hack.awk (Error return): Cast function through
6257 void *, to bypass compiler function call check.
6258
6259 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6260
6261 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
6262 $(srcdir)/reply_mig_hack.awk.
6263
6264 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6265
6266 * gnu-nat.h (gnu_debug_flag): Set type to bool.
6267
6268 2020-05-30 Jonny Grant <jg@jguk.org>
6269
6270 * configure.ac (ACX_BUGURL): change bug URL to https.
6271
6272 2020-05-30 Pedro Alves <palves@redhat.com>
6273
6274 * cp-support.c (replace_typedefs_template): New.
6275 (replace_typedefs_qualified_name): Handle
6276 DEMANGLE_COMPONENT_TEMPLATE.
6277
6278 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
6279
6280 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
6281 dwarf2/index-cache.h, dwarf2/index-write.c,
6282 dwarf2/index-write.h, dwarf2/line-header.c,
6283 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
6284 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
6285 variables and fields from `dwarf2_per_objfile` to just
6286 `per_objfile` throughout.
6287
6288 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
6289
6290 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6291 <push_dwarf_reg_entry_value>: Add comment.
6292
6293 2020-05-28 Kevin Buettner <kevinb@redhat.com>
6294 Keith Seitz <keiths@redhat.com>
6295
6296 * python/python.c (do_start_initialization): Call PyEval_SaveThread
6297 instead of PyEval_ReleaseLock.
6298 (class gdbpy_gil): Move to earlier in file.
6299 (finalize_python): Set gdb_python_initialized.
6300 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
6301 when not initialized.
6302
6303 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
6304
6305 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6306 <push_dwarf_reg_entry_value>: Remove assert. Override
6307 per_objfile with caller_per_objfile.
6308
6309 2020-05-28 Tom de Vries <tdevries@suse.de>
6310
6311 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
6312 PR gold/15646 workaround to symbol kind "type".
6313
6314 2020-05-27 Tom Tromey <tromey@adacore.com>
6315
6316 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
6317
6318 2020-05-27 Tom Tromey <tromey@adacore.com>
6319
6320 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
6321 Use htab_find_with_hash.
6322 <add_abbrev>: Remove "abbrev_number" parameter.
6323 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
6324 "abbrev_number" parameter. Use htab_find_slot_with_hash.
6325 (hash_abbrev): Add comment.
6326 (abbrev_table::lookup_abbrev): Move to header file.
6327 (abbrev_table::read): Update.
6328
6329 2020-05-27 Tom Tromey <tromey@adacore.com>
6330
6331 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
6332 method.
6333 <canonical_name>: New member.
6334 <raw_name>: Rename from "name".
6335 (partial_die_info): Initialize canonical_name.
6336 (scan_partial_symbols): Check raw_name.
6337 (partial_die_parent_scope, partial_die_full_name)
6338 (add_partial_symbol, add_partial_subprogram)
6339 (add_partial_enumeration, load_partial_dies): Use "name" method.
6340 (partial_die_info::name): New method.
6341 (partial_die_info::read, guess_partial_die_structure_name)
6342 (partial_die_info::fixup): Update.
6343
6344 2020-05-27 Tom Tromey <tromey@adacore.com>
6345
6346 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
6347 <get_ref_die_offset>: Inline.
6348 <get_ref_die_offset_complaint>: New method.
6349 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
6350 (attribute::get_ref_die_offset_complaint): Rename from
6351 get_ref_die_offset. Just issue complaint.
6352
6353 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
6354
6355 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
6356
6357 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
6358
6359 * exec.c (exec_file_attach): Use errno value of first openp failure.
6360
6361 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
6362
6363 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
6364 Don't close thread handle.
6365
6366 2020-05-27 Tom Tromey <tom@tromey.com>
6367 Simon Marchi <simon.marchi@efficios.com>
6368
6369 * objfiles.h (struct objfile) <partial_symtabs>: Now a
6370 shared_ptr.
6371 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
6372 member.
6373 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
6374 dwarf2_per_bfd_objfile_data_key>: New globals.
6375 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
6376 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
6377 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
6378 shared.
6379 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
6380 short-circuit when sharing.
6381 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
6382 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
6383
6384 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6385
6386 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
6387 to...
6388 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
6389 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
6390
6391 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6392
6393 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
6394 build_name_components, find_name_components_bounds>:
6395 Add per_objfile parameter.
6396 (struct mapped_index) <symbol_name_at>: Likewise.
6397 (struct mapped_debug_names): Remove constructor.
6398 <dwarf2_per_objfile>: Remove field.
6399 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
6400 (mapped_index_base::find_name_components_bounds,
6401 mapped_index_base::build_name_components,
6402 dw2_expand_symtabs_matching_symbol): Likewise.
6403 (class mock_mapped_index) <symbol_name_at>: Likewise.
6404 (check_match): Likewise.
6405 (check_find_bounds_finds): Likewise.
6406 (test_mapped_index_find_name_component_bounds): Update.
6407 (CHECK_MATCH): Update.
6408 (dw2_expand_symtabs_matching): Update.
6409 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
6410 per_objfile parameter.
6411 <find_vec_in_debug_names>: Likewise.
6412 <m_per_objfile>: New field.
6413 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
6414 parameter.
6415 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
6416 (dw2_debug_names_iterator::next): Update.
6417 (dw2_debug_names_lookup_symbol): Update.
6418 (dw2_debug_names_expand_symtabs_for_function): Update.
6419 (dw2_debug_names_map_matching_symbols): Update.
6420 (dw2_debug_names_expand_symtabs_matching): Update.
6421 (dwarf2_read_debug_names): Update.
6422
6423 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6424
6425 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
6426 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
6427 move to dwarf2_per_objfile.
6428 <read_in_chain>: Remove.
6429 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
6430 remove_all_cus, age_comp_units>: New methods.
6431 <m_dwarf2_cus>: New member.
6432 (struct dwarf2_per_cu_data) <cu>: Remove.
6433 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
6434 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
6435 moved to methods of dwarf2_per_objfile.
6436 (dwarf2_clear_marks): Remove.
6437 (dwarf2_queue_item::~dwarf2_queue_item): Update.
6438 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
6439 (dwarf2_per_bfd::free_cached_comp_units): Remove.
6440 (dwarf2_per_objfile::remove_all_cus): New.
6441 (class free_cached_comp_units) <~free_cached_comp_units>:
6442 Update.
6443 (load_cu): Update.
6444 (dw2_do_instantiate_symtab): Adjust.
6445 (fill_in_sig_entry_from_dwo_entry): Adjust.
6446 (cutu_reader::init_tu_and_read_dwo_dies): Update.
6447 (cutu_reader::cutu_reader): Likewise.
6448 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
6449 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
6450 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
6451 and dwarf2_per_objfile::age_comp_units.
6452 (load_partial_comp_unit): Update.
6453 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
6454 (process_queue): Likewise.
6455 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
6456 backlink.
6457 (dwarf2_read_addr_index): Likewise.
6458 (follow_die_offset): Likewise.
6459 (dwarf2_fetch_die_loc_sect_off): Likewise.
6460 (dwarf2_fetch_constant_bytes): Likewise.
6461 (dwarf2_fetch_die_type_sect_off): Likewise.
6462 (follow_die_sig_1): Likewise.
6463 (load_full_type_unit): Likewise.
6464 (read_signatured_type): Likewise.
6465 (dwarf2_cu::dwarf2_cu): Don't set cu field.
6466 (dwarf2_cu::~dwarf2_cu): Remove.
6467 (dwarf2_per_objfile::get_cu): New.
6468 (dwarf2_per_objfile::set_cu): New.
6469 (age_cached_comp_units): Rename to...
6470 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
6471 to std::unordered_map.
6472 (free_one_cached_comp_unit): Rename to...
6473 (dwarf2_per_objfile::remove_cu): ... this. Adjust
6474 to std::unordered_map.
6475 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
6476 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
6477 a dwarf2_per_objfile in data.
6478 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
6479 (dwarf2_clear_marks): Remove.
6480
6481 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6482
6483 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
6484 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
6485 (init_tu_and_read_dwo_dies): Likewise.
6486 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
6487 (cutu_reader::cutu_reader): Likewise.
6488 (load_partial_comp_unit): Likewise.
6489 (process_psymtab_comp_unit): Update.
6490 (build_type_psymtabs_1): Update.
6491 (process_skeletonless_type_unit): Update.
6492 (load_full_comp_unit): Update.
6493 (find_partial_die): Update.
6494 (dwarf2_read_addr_index): Update.
6495 (read_signatured_type): Update.
6496
6497 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6498
6499 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
6500 m_header_read_in>: New fields.
6501 <get_header>: New method.
6502 * dwarf2/read.c (per_cu_header_read_in): Remove.
6503 (dwarf2_per_cu_data::get_header): New.
6504 (dwarf2_per_cu_data::addr_size): Update.
6505 (dwarf2_per_cu_data::offset_size): Update.
6506 (dwarf2_per_cu_data::ref_addr_size): Update.
6507
6508 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6509
6510 * dwarf2/read.c (load_cu): Return dwarf2_cu.
6511 (dw2_do_instantiate_symtab): Update.
6512 (queue_and_load_all_dwo_tus): Change parameter from
6513 dwarf2_per_cu_data to dwarf2_cu.
6514 (dwarf2_fetch_die_loc_sect_off): Update.
6515 (dwarf2_fetch_constant_bytes): Update.
6516 (dwarf2_fetch_die_type_sect_off): Update.
6517
6518 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6519
6520 * dwarf2/read.c (process_full_comp_unit,
6521 process_full_type_unit): Remove per_cu, per_objfile paramters.
6522 Add dwarf2_cu parameter.
6523 (process_queue): Update.
6524
6525 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6526
6527 * dwarf2/read.c (create_cu_from_index_list): Replace
6528 dwarf2_per_objfile parameter with dwarf2_per_bfd.
6529 (create_cus_from_index_list): Likewise.
6530 (create_cus_from_index): Likewise.
6531 (create_signatured_type_table_from_index): Likewise.
6532 (create_cus_from_debug_names_list): Likewise.
6533 (create_cus_from_debug_names): Likewise.
6534 (dwarf2_read_gdb_index): Update.
6535 (dwarf2_read_debug_names): Update.
6536
6537 2020-05-27 Tom Tromey <tom@tromey.com>
6538 Simon Marchi <simon.marchi@efficios.com>
6539
6540 * dwarf2/read.h (struct dwarf2_per_objfile)
6541 <get_type_for_signatured_type, set_type_for_signatured_type>:
6542 New methods.
6543 <m_type_map>: New member.
6544 (struct signatured_type) <type>: Remove.
6545 * dwarf2/read.c
6546 (dwarf2_per_objfile::get_type_for_signatured_type,
6547 dwarf2_per_objfile::set_type_for_signatured_type): New.
6548 (get_signatured_type): Use new methods.
6549
6550 2020-05-27 Tom Tromey <tom@tromey.com>
6551 Simon Marchi <simon.marchi@efficios.com>
6552
6553 * dwarf2/read.h (struct type_unit_group_unshareable): New.
6554 (struct dwarf2_per_objfile) <type_units>: New member.
6555 <get_type_unit_group_unshareable>: New method.
6556 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
6557 num_symtabs, symtabs>: Remove; move to
6558 type_unit_group_unshareable.
6559 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
6560 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
6561 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
6562
6563 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6564
6565 * dwarf2/read.h (struct dwarf2_per_cu_data):
6566 <dwarf2_per_objfile>: Remove.
6567 * dwarf2/read.c (create_cu_from_index_list): Don't assign
6568 dwarf2_per_objfile.
6569 (create_signatured_type_table_from_index): Likewise.
6570 (create_signatured_type_table_from_debug_names): Likewise.
6571 (create_debug_type_hash_table): Likewise.
6572 (fill_in_sig_entry_from_dwo_entry): Likewise.
6573 (create_type_unit_group): Likewise.
6574 (read_comp_units_from_section): Likewise.
6575 (create_cus_hash_table): Likewise.
6576
6577 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6578
6579 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
6580 dwarf2_per_cu_data::dwarf2_per_objfile.
6581 (compute_compunit_symtab_includes): Likewise.
6582 (dwarf2_cu::start_symtab): Likewise.
6583
6584 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6585
6586 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
6587 parameter.
6588 * dwarf2/read.c (get_die_type_at_offset): Likewise.
6589 (read_namespace_alias): Update.
6590 (lookup_die_type): Update.
6591 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
6592 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
6593 Update.
6594 (disassemble_dwarf_expression): Update.
6595
6596 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6597
6598 * dwarf2/read.h (struct dwarf2_queue_item): Add
6599 dwarf2_per_objfile parameter, assign new parameter.
6600 <per_objfile>: New field.
6601 * dwarf2/read.c (free_one_cached_comp_unit): Add
6602 dwarf2_per_objfile parameter.
6603 (queue_comp_unit): Likewise.
6604 (dw2_do_instantiate_symtab): Update.
6605 (process_psymtab_comp_unit): Update.
6606 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
6607 (process_imported_unit_die): Update.
6608 (queue_and_load_dwo_tu): Update.
6609 (follow_die_offset): Update.
6610 (follow_die_sig_1): Update.
6611
6612 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6613
6614 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
6615 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
6616 (read_call_site_scope): Assign per_objfile.
6617 (dwarf2_per_cu_data::objfile): Remove.
6618 * gdbtypes.h (struct call_site) <per_objfile>: New member.
6619 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
6620 dwarf2_per_objfile parameter.
6621 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
6622 dwarf2_per_objfile parameter.
6623 (dwarf_expr_reg_to_entry_parameter): Add output
6624 dwarf2_per_objfile parameter.
6625 (locexpr_get_frame_base): Update.
6626 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
6627 <push_dwarf_reg_entry_value>: Update.
6628 <call_site_to_target_addr>: Update.
6629 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
6630 parameter.
6631 (value_of_dwarf_reg_entry): Update.
6632 (rw_pieced_value): Update.
6633 (indirect_synthetic_pointer): Update.
6634 (dwarf2_evaluate_property): Update.
6635 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
6636 parameter.
6637 (locexpr_read_variable): Update.
6638 (locexpr_get_symbol_read_needs): Update.
6639 (loclist_read_variable): Update.
6640
6641 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6642
6643 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
6644 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
6645 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
6646 parameter.
6647 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
6648 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
6649 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
6650 parameter.
6651 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
6652 sect_variable_value): Add dwarf2_per_objfile parameter.
6653 (class dwarf_evaluate_loc_desc) <dwarf_call,
6654 dwarf_variable_value>: Update.
6655 (fetch_const_value_from_synthetic_pointer): Add
6656 dwarf2_per_objfile parameter.
6657 (fetch_const_value_from_synthetic_pointer): Update.
6658 (coerced_pieced_ref): Update.
6659 (class symbol_needs_eval_context) <dwarf_call,
6660 dwarf_variable_value>: Update.
6661 (dwarf2_compile_expr_to_ax): Update.
6662
6663 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6664
6665 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
6666 parameter.
6667 (dwarf2_evaluate_loc_desc_full): Update.
6668
6669 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6670
6671 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
6672 parameter.
6673 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
6674 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
6675 dwarf2_per_objfile parameter.
6676 (decode_debug_loc_dwo_addresses): Likewise.
6677 (dwarf2_find_location_expression): Update.
6678 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
6679 (locexpr_describe_location_piece): Add dwarf2_per_objfile
6680 parameter.
6681 (disassemble_dwarf_expression): Add dwarf2_per_objfile
6682 parameter.
6683 (locexpr_describe_location_1): Likewise.
6684 (locexpr_describe_location): Update.
6685
6686 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6687
6688 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
6689 Remove.
6690 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
6691 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
6692 (dwarf2_compile_property_to_c): Update.
6693 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
6694 use text offset from objfile.
6695 (locexpr_tracepoint_var_ref): Update.
6696 (locexpr_generate_c_location): Update.
6697 (loclist_describe_location): Update.
6698 (loclist_tracepoint_var_ref): Update.
6699 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
6700 dwarf2_per_objfile parameter.
6701 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
6702 use text offset from objfile.
6703 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
6704
6705 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6706
6707 * dwarf2/expr.h (struct dwarf_expr_context)
6708 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
6709 <offset>: Remove.
6710 <per_objfile>: New member.
6711 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
6712 dwarf2_per_objfile parameter. Don't set offset, set
6713 per_objfile.
6714 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
6715 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
6716 a dwarf2_per_objfile object instead of an offset.
6717 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
6718 constructor.
6719 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
6720 to dwarf2_expr_executor constructor. Don't set offset.
6721 (dwarf2_fetch_cfa_info): Update.
6722 (struct dwarf2_frame_cache) <text_offset>: Remove.
6723 <per_objfile>: New field.
6724 (dwarf2_frame_cache): Update.
6725 (dwarf2_frame_prev_register): Update.
6726 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6727 <dwarf_evaluate_loc_desc>: Add constructor.
6728 (dwarf2_evaluate_loc_desc_full): Update.
6729 (dwarf2_locexpr_baton_eval): Update.
6730 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
6731 Add constructor.
6732 (dwarf2_loc_desc_get_symbol_read_needs): Update.
6733
6734 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6735
6736 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
6737 addr_sized_int_type>: Move to dwarf2_cu.
6738 <int_type>: Move to dwarf2_per_objfile.
6739 (struct dwarf2_per_objfile) <int_type>: Move here.
6740 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
6741 addr_sized_int_type>: Move here.
6742 (read_func_scope): Update.
6743 (read_array_type): Update.
6744 (read_tag_string_type): Update.
6745 (attr_to_dynamic_prop): Update.
6746 (dwarf2_per_cu_data::int_type): Rename to...
6747 (dwarf2_per_objfile::int_type): ... this.
6748 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
6749 (dwarf2_cu::addr_sized_int_type): ... this.
6750 (read_subrange_type): Update.
6751 (dwarf2_per_cu_data::addr_type): Rename to...
6752 (dwarf2_cu::addr_type): ... this.
6753 (set_die_type): Update.
6754
6755 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6756
6757 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
6758 data through per_cu->cu.
6759
6760 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6761
6762 * dwarf2/read.c (lookup_dwo_comp_unit): Change
6763 dwarf2_per_cu_data parameter fo dwarf2_cu.
6764 (lookup_dwo_type_unit): Likewise.
6765 (read_cutu_die_from_dwo): Likewise.
6766 (lookup_dwo_unit): Likewise.
6767 (open_and_init_dwo_file): Likewise.
6768 (lookup_dwo_cutu): Likewise.
6769 (lookup_dwo_comp_unit): Likewise.
6770 (lookup_dwo_type_unit): Likewise.
6771 (cutu_reader::init_tu_and_read_dwo_dies): Update.
6772 (cutu_reader::cutu_reader): Update.
6773
6774 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6775
6776 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
6777 parameter.
6778 (process_full_type_unit): Likewise.
6779 (process_queue): Update.
6780
6781 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6782
6783 * dwarf2/read.c (recursively_compute_inclusions): Add
6784 dwarf2_per_objfile parameter.
6785 (compute_compunit_symtab_includes): Likewise.
6786 (process_cu_includes): Update.
6787
6788 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6789
6790 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
6791 parameter.
6792 (create_type_unit_group): Update.
6793 (process_psymtab_comp_unit_reader): Update.
6794 (build_type_psymtabs_reader): Update.
6795
6796 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6797
6798 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
6799 object through m_this_cu->cu.
6800
6801 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6802
6803 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
6804 the info parameter.
6805 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
6806
6807 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6808
6809 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
6810 per_objfile parameter.
6811 (load_full_type_unit): Add per_objfile parameter.
6812 (read_signatured_type): Likewise.
6813 (load_full_comp_unit): Likewise.
6814 (load_cu): Likewise.
6815 (dw2_do_instantiate_symtab): Likewise.
6816 (dw2_get_file_names): Likewise.
6817 (dw2_map_symtabs_matching_filename): Update.
6818 (dw_expand_symtabs_matching_file_matcher): Update.
6819 (dw2_map_symbol_filenames): Update.
6820 (process_psymtab_comp_unit): Add per_objfile parameter.
6821 (build_type_psymtabs_1): Update.
6822 (process_skeletonless_type_unit): Update.
6823 (dwarf2_build_psymtabs_hard): Update.
6824 (load_partial_comp_unit): Add per_objfile parameter.
6825 (scan_partial_symbols): Update.
6826 (load_full_comp_unit): Add per_objfile parameter.
6827 (process_imported_unit_die): Update.
6828 (create_cus_hash_table): Update.
6829 (find_partial_die): Update.
6830 (dwarf2_read_addr_index): Update.
6831 (follow_die_offset): Update.
6832 (dwarf2_fetch_die_loc_sect_off): Update.
6833 (dwarf2_fetch_constant_bytes): Update.
6834 (dwarf2_fetch_die_type_sect_off): Update.
6835 (follow_die_sig_1): Update.
6836 (load_full_type_unit): Add per_objfile parameter.
6837 (read_signatured_type): Likewise.
6838
6839 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6840
6841 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
6842 of objfile_name.
6843
6844 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6845
6846 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
6847 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
6848 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
6849 field.
6850 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
6851 (create_cus_from_index): Update.
6852 (dwarf2_read_gdb_index): Update.
6853 (create_cus_from_debug_names): Update.
6854 (dwarf2_read_debug_names): Update.
6855 (get_abbrev_section_for_cu): Update.
6856 (create_all_comp_units): Update.
6857 (read_attribute_value): Update.
6858 (get_debug_line_section): Update.
6859 * dwarf2/index-cache.c (index_cache::store): Update.
6860 * dwarf2/index-write.c (save_gdb_index_command): Update.
6861 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
6862
6863 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6864
6865 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
6866 member.
6867 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
6868 dwarf2_per_cu_data::per_bfd.
6869 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
6870 (create_type_unit_group): Likewise.
6871 (queue_comp_unit): Remove reference to
6872 per_cu->dwarf2_per_objfile.
6873 (maybe_queue_comp_unit): Likewise.
6874 (fill_in_sig_entry_from_dwo_entry): Assign new field.
6875 (create_cus_hash_table): Assign new field.
6876
6877 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6878
6879 * dwarf2/read.c: Replace
6880 dwarf2_cu->per_cu->dwarf2_per_objfile references with
6881 dwarf2_cu->per_objfile throughout.
6882
6883 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6884
6885 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
6886 parameter, don't use per_cu->dwarf2_per_objfile.
6887 (dw2_instantiate_symtab): Likewise.
6888 (dw2_find_last_source_symtab): Update.
6889 (dw2_map_expand_apply): Update.
6890 (dw2_lookup_symbol): Update.
6891 (dw2_expand_symtabs_for_function): Update.
6892 (dw2_expand_all_symtabs): Update.
6893 (dw2_expand_symtabs_with_fullname): Update.
6894 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
6895 don't use per_cu->dwarf2_per_objfile.
6896 (dw2_expand_marked_cus): Update.
6897 (dw2_find_pc_sect_compunit_symtab): Update.
6898 (dw2_debug_names_lookup_symbol): Update.
6899 (dw2_debug_names_expand_symtabs_for_function): Update.
6900 (dw2_debug_names_map_matching_symbols): Update.
6901 (dwarf2_psymtab::expand_psymtab): Update.
6902
6903 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6904
6905 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
6906 <per_objfile>: New member.
6907 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
6908 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
6909 call to dwarf2_cu.
6910 (cutu_reader::cutu_reader): Update.
6911 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
6912
6913 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6914
6915 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
6916 struct dwarf2_per_objfile.
6917 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
6918 dwarf2_per_bfd.
6919 * dwarf2/read.c (set_die_type): Update.
6920 (get_die_type_at_offset): Update.
6921
6922 2020-05-27 Tom Tromey <tom@tromey.com>
6923 Simon Marchi <simon.marchi@efficios.com>
6924
6925 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
6926 method.
6927 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
6928 get_symtab, set_symtab>: New methods.
6929 <m_symtabs>: New field.
6930 (struct dwarf2_psymtab): Derive from partial_symtab.
6931 <readin_p, get_compunit_symtab>: Declare methods.
6932 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
6933 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
6934 New methods.
6935 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
6936 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
6937 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
6938 (dw2_symtab_iter_next, dw2_print_stats)
6939 (dw2_expand_symtabs_with_fullname)
6940 (dw2_expand_symtabs_matching_one)
6941 (dw_expand_symtabs_matching_file_matcher)
6942 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
6943 (dw2_debug_names_iterator::next)
6944 (dw2_debug_names_map_matching_symbols)
6945 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
6946 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
6947 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
6948 New methods.
6949 (get_compunit_symtab, process_full_comp_unit)
6950 (process_full_type_unit): Update.
6951 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
6952
6953 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6954
6955 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
6956 then introduce a new dwarf2_per_objfile type.
6957 <read_line_string>: Move to the new dwarf2_per_objfile type.
6958 <objfile>: Likewise.
6959 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
6960 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
6961 dwarf2_per_objfile->per_bfd.
6962 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
6963 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
6964 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
6965 (dwarf2_per_bfd::free_cached_comp_units): ... this.
6966 (dwarf2_has_info): Allocate dwarf2_per_bfd.
6967 (dwarf2_per_objfile::locate_sections): Rename to...
6968 (dwarf2_per_bfd::locate_sections): ... this.
6969 (dwarf2_per_objfile::get_cutu): Rename to...
6970 (dwarf2_per_bfd::get_cutu): ... this.
6971 (dwarf2_per_objfile::get_cu): Rename to...
6972 (dwarf2_per_bfd::get_cu): ... this.
6973 (dwarf2_per_objfile::get_tu): Rename to...
6974 (dwarf2_per_bfd::get_tu): ... this.
6975 (dwarf2_per_objfile::allocate_per_cu): Rename to...
6976 (dwarf2_per_bfd::allocate_per_cu): ... this.
6977 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
6978 (dwarf2_per_bfd::allocate_signatured_type): ... this.
6979 (get_gdb_index_contents_ftype): Change parameter from
6980 dwarf2_per_objfile to dwarf2_per_bfd.
6981 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
6982 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
6983
6984 2020-05-27 Tom Tromey <tom@tromey.com>
6985 Simon Marchi <simon.marchi@efficios.com>
6986
6987 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
6988 (allocate_piece_closure): Set "per_objfile" member.
6989 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
6990 (locexpr_describe_location, loclist_describe_location): Use new
6991 member.
6992 * dwarf2/read.c (read_call_site_scope)
6993 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
6994 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
6995 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
6996 handle_data_member_location): Set per_objfile member.
6997 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
6998 member.
6999 (struct dwarf2_loclist_baton) <per_objfile>: New member.
7000
7001 2020-05-27 Tom Tromey <tom@tromey.com>
7002
7003 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
7004 allocate_signatured_type>: Declare new methods.
7005 <m_num_psymtabs>: New member.
7006 (struct dwarf2_per_cu_data) <index>: New member.
7007 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
7008 (dwarf2_per_objfile::allocate_signatured_type): New methods.
7009 (create_cu_from_index_list): Use allocate_per_cu.
7010 (create_signatured_type_table_from_index)
7011 (create_signatured_type_table_from_debug_names)
7012 (create_debug_type_hash_table, add_type_unit)
7013 (read_comp_units_from_section): Use allocate_signatured_type.
7014
7015 2020-05-27 Tom Tromey <tom@tromey.com>
7016
7017 * psymtab.c (partial_map_expand_apply)
7018 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
7019 (psym_lookup_global_symbol_language)
7020 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
7021 (psym_print_stats, psym_expand_symtabs_for_function)
7022 (psym_map_symbol_filenames, psym_map_matching_symbols)
7023 (psym_expand_symtabs_matching)
7024 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
7025 (maintenance_check_psymtabs): Update.
7026 * psympriv.h (struct partial_symtab) <readin_p,
7027 get_compunit_symtab>: Add objfile parameter.
7028 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
7029 Likewise.
7030 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
7031 get_compunit_symtab>: Likewise.
7032 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
7033
7034 2020-05-27 Tom Tromey <tom@tromey.com>
7035
7036 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
7037 member.
7038 * dwarf2/read.c (delete_file_name_entry): Fix comment.
7039 (create_cu_from_index_list)
7040 (create_signatured_type_table_from_index)
7041 (create_signatured_type_table_from_debug_names)
7042 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
7043 (dwarf2_create_include_psymtab)
7044 (create_debug_type_hash_table, add_type_unit)
7045 (create_type_unit_group, read_comp_units_from_section)
7046 (dwarf2_compute_name, create_cus_hash_table)
7047 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
7048 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
7049 obstack.
7050 (dw2_get_real_path): Likewise. Change argument to
7051 dwarf2_per_objfile.
7052
7053 2020-05-27 Luis Machado <luis.machado@linaro.org>
7054
7055 PR tdep/26000
7056 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
7057 for ldrd (immediate).
7058
7059 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7060
7061 * command.h: Add comment giving the name of class_tui.
7062 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
7063 create the fake command for the help for class_tui.
7064
7065 2020-05-26 Tom Tromey <tromey@adacore.com>
7066
7067 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
7068 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
7069 (val_atr): New function.
7070 (value_val_atr): Use it.
7071 * ada-valprint.c (print_optional_low_bound): Change low bound
7072 handling for enums.
7073 (val_print_packed_array_elements): Don't call discrete_position.
7074 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
7075 discrete_position for enum types.
7076 * language.c (default_print_array_index): Change type.
7077 * language.h (struct language_defn) <la_print_array_index>: Add
7078 index_type parameter, change type of index_value.
7079 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
7080 (default_print_array_index): Update.
7081 * valprint.c (maybe_print_array_index): Don't call
7082 value_from_longest. Update.
7083 (value_print_array_elements): Don't call discrete_position.
7084
7085 2020-05-26 Tom Tromey <tromey@adacore.com>
7086
7087 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
7088 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
7089
7090 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
7091
7092 PR gdb/13519
7093 * avr-tdep.c (avr_integer_to_address): Return data or code
7094 address accordingly to the second 'type' argument of the
7095 function.
7096
7097 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
7098
7099 * infcmd.c, inferior.h: (construct_inferior_arguments):
7100 Moved function from here to gdbsupport/common-inferior.{h,cc}
7101
7102 2020-05-23 Tom Tromey <tom@tromey.com>
7103
7104 Revert commit eca1f90c:
7105 * NEWS: Remove entry for completion styling.
7106 * completer.c (_rl_completion_prefix_display_length): Move
7107 declaration later.
7108 (gdb_fnprint): Revert.
7109 (gdb_display_match_list_1): Likewise.
7110 * cli/cli-style.c (completion_prefix_style)
7111 (completion_difference_style, completion_suffix_style): Remove.
7112 (_initialize_cli_style): Revert.
7113 * cli/cli-style.h (completion_prefix_style)
7114 (completion_difference_style, completion_suffix_style): Don't
7115 declare.
7116
7117 2020-05-24 Pedro Alves <palves@redhat.com>
7118
7119 * symtab.c (completion_list_add_name): Return boolean indication
7120 of whether the symbol matched.
7121 (completion_list_add_symbol): Don't try to remove C++ aliases if
7122 the symbol didn't match in the first place.
7123 * symtab.h (completion_list_add_name): Return bool.
7124
7125 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
7126
7127 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
7128 type::field.
7129
7130 2020-05-23 Joel Brobecker <brobecker@adacore.com>
7131
7132 GDB 9.2 released.
7133
7134 2020-05-23 Tom Tromey <tom@tromey.com>
7135
7136 * NEWS: Add entry for completion styling.
7137 * completer.c (_rl_completion_prefix_display_length): Move
7138 declaration earlier.
7139 (gdb_fnprint): Use completion_style.
7140 (gdb_display_match_list_1): Likewise.
7141 * cli/cli-style.c (completion_prefix_style)
7142 (completion_difference_style, completion_suffix_style): New
7143 globals.
7144 (_initialize_cli_style): Register new globals.
7145 * cli/cli-style.h (completion_prefix_style)
7146 (completion_difference_style, completion_suffix_style): Declare.
7147
7148 2020-05-23 Pedro Alves <palves@redhat.com>
7149
7150 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
7151 (parse_escape): Use ISDIGIT instead of isdigit.
7152 (puts_debug): Use gdb_isprint instead of isprint.
7153 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
7154 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
7155 ISSPACE instead of isspace.
7156 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
7157 instead of isspace.
7158 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
7159 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
7160 instead of isxdigit and ISDIGIT instead of isdigit.
7161
7162 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
7163
7164 * gdbtypes.h (struct type) <field>: New method.
7165 (TYPE_FIELDS): Remove, replace all uses with either type::fields
7166 or type::field.
7167
7168 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
7169
7170 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
7171 (TYPE_FIELDS): Use type::fields. Change all call sites that
7172 modify the propery to use type::set_fields instead.
7173
7174 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
7175
7176 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
7177 type::num_fields instead.
7178
7179 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
7180
7181 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
7182 methods.
7183 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
7184 that modify the number of fields to use type::set_num_fields
7185 instead.
7186
7187 2020-05-22 Tom Tromey <tromey@adacore.com>
7188
7189 * compile/compile-object-load.h (munmap_list_free): Don't
7190 declare.
7191
7192 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
7193
7194 * annotate.c (annotate_source_line): Update return type, add call
7195 to update current symtab and line.
7196 * annotate.h (annotate_source_line): Update return type, and
7197 extend header comment.
7198 * source.c (info_line_command): Check annotation_level before
7199 calling annotate_source_line.
7200 * stack.c (print_frame_info): If calling annotate_source_line
7201 returns true, then don't print any other source line information.
7202
7203 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
7204
7205 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
7206
7207 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
7208
7209 * coffread.c (patch_type): Remove NULL check before xfree.
7210 * corefile.c (set_gnutarget): Likewise.
7211 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
7212 * exec.c (build_section_table): Likewise.
7213 * remote.c (remote_target::pass_signals): Likewise.
7214 * utils.c (n_spaces): Likewise.
7215 * cli/cli-script.c (document_command): Likewise.
7216 * i386-windows-tdep.c (core_process_module_section): Likewise.
7217 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
7218
7219 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
7220
7221 * symfile.c (reread_symbols): Clear objfile's section_offsets
7222 vector and section indices, re-compute them by calling
7223 sym_offsets.
7224
7225 2020-05-20 Tom Tromey <tromey@adacore.com>
7226
7227 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
7228 (desc_one_bound, desc_index_type): Compute field name.
7229
7230 2020-05-20 Tom de Vries <tdevries@suse.de>
7231
7232 PR symtab/25833
7233 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
7234
7235 2020-05-20 Alan Modra <amodra@gmail.com>
7236
7237 PR 25993
7238 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
7239 bfd_set_filename.
7240 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
7241 passed to bfd_set_filename.
7242 * symfile-mem.c (add_vsyscall_page): Likewise for string
7243 passed to symbol_file_add_from_memory.
7244 (symbol_file_add_from_memory): Make name param a const char* and
7245 don't strdup.
7246
7247 2020-05-20 Alan Modra <amodra@gmail.com>
7248
7249 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
7250 rather than accessing bfd->filename directly.
7251 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
7252 and use bfd_section_name.
7253 * dwarf2/frame.c (decode_frame_entry): Likewise.
7254 * exec.c (exec_set_section_address): Likewise.
7255 * solib-aix.c (solib_aix_bfd_open): Likewise.
7256 * stap-probe.c (get_stap_base_address): Likewise.
7257 * symfile.c (reread_symbols): Likewise.
7258
7259 2020-05-19 Tom Tromey <tromey@adacore.com>
7260
7261 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
7262
7263 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
7264
7265 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
7266
7267 2020-05-19 Pedro Alves <palves@redhat.com>
7268
7269 * NEWS (set exec-file-mismatch): Adjust entry.
7270 * exec.c: Include "build-id.h".
7271 (validate_exec_file): Try to match build IDs instead of filenames.
7272 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
7273 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
7274 and pass down 'warn_if_slow'.
7275 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
7276 gdb_bfd_open_closure to pass it down.
7277 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
7278
7279 2020-05-19 Pedro Alves <palves@redhat.com>
7280
7281 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
7282 * target.c (target_fileio_open_1): Rename to target_fileio_open
7283 and make extern. Use bool.
7284 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
7285 (target_fileio_read_alloc_1): Adjust.
7286 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
7287 (target_fileio_open_warn_if_slow): Delete declaration.
7288
7289 2020-05-19 Pedro Alves <palves@redhat.com>
7290
7291 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
7292 Adjust all callers.
7293
7294 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
7295
7296 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
7297 whether disp is negative.
7298
7299 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
7300
7301 * symfile.h (struct symfile_segment_data)
7302 <~symfile_segment_data>: Remove.
7303 <segment_info>: Change to std::vector.
7304 * symfile.c (default_symfile_segments): Update.
7305 * elfread.c (elf_symfile_segments): Update.
7306
7307 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
7308
7309 * symfile.h (struct symfile_segment_data) <struct segment>: New.
7310 <segments>: New.
7311 <segment_bases, segment_sizes>: Remove.
7312 * symfile.c (default_symfile_segments): Update.
7313 * elfread.c (elf_symfile_segments): Update.
7314 * remote.c (remote_target::get_offsets): Update.
7315 * solib-target.c (solib_target_relocate_section_addresses):
7316 Update.
7317
7318 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
7319
7320 * symfile.h (struct symfile_segment_data): Initialize fields.
7321 <~symfile_segment_data>: Add.
7322 (symfile_segment_data_up): New.
7323 (struct sym_fns) <sym_segments>: Return a
7324 symfile_segment_data_up.
7325 (default_symfile_segments): Return a symfile_segment_data_up.
7326 (free_symfile_segment_data): Remove.
7327 (get_symfile_segment_data): Return a symfile_segment_data_up.
7328 * symfile.c (default_symfile_segments): Likewise.
7329 (get_symfile_segment_data): Likewise.
7330 (free_symfile_segment_data): Remove.
7331 (symfile_find_segment_sections): Update.
7332 * elfread.c (elf_symfile_segments): Return a
7333 symfile_segment_data_up.
7334 * remote.c (remote_target::get_offsets): Update.
7335 * solib-target.c (solib_target_relocate_section_addresses):
7336 Update.
7337 * symfile-debug.c (debug_sym_segments): Return a
7338 symfile_segment_data_up.
7339
7340 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7341
7342 PR build/25981
7343 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
7344 Hardcode register numbers.
7345
7346 PR build/25981
7347 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
7348 procfs_find_LDT_entry): Remove.
7349 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
7350 procfs_find_LDT_entry): Remove.
7351 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
7352 Remove.
7353
7354 2020-05-17 Pedro Alves <palves@redhat.com>
7355 Andrew Burgess <andrew.burgess@embecosm.com>
7356 Keno Fischer <keno@juliacomputing.com>
7357
7358 PR gdb/25741
7359 * breakpoint.c (build_target_condition_list): Update comments.
7360 (build_target_command_list): Update comments and skip matching
7361 locations.
7362 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
7363 a separate function. Simplify "set breakpoint auto-hw off"
7364 handling.
7365 (insert_breakpoints): Update comment.
7366 (tracepoint_locations_match): New parameter. For breakpoints,
7367 compare location types too, if the caller wants to.
7368 (handle_automatic_hardware_breakpoints): New functions.
7369 (bp_location_is_less_than): Also sort by location type and
7370 hardware breakpoint length.
7371 (update_global_location_list): Handle "set breakpoint auto-hw on"
7372 here.
7373 (update_breakpoint_locations): Ask breakpoint_locations_match to
7374 ignore location types.
7375
7376 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
7377
7378 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
7379 type::name instead.
7380
7381 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
7382
7383 * gdbtypes.h (struct type) <name, set_name>: New methods.
7384 (TYPE_CODE): Use type::name. Change all call sites used to set
7385 the name to use type::set_name instead.
7386
7387 2020-05-16 Tom Tromey <tom@tromey.com>
7388
7389 * top.c (quit_force): Update.
7390 * infrun.c (handle_no_resumed): Update.
7391 * top.h (all_uis): New function.
7392 (ALL_UIS): Remove.
7393
7394 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
7395
7396 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
7397
7398 2020-05-16 Pedro Alves <palves@redhat.com>
7399
7400 * ia64-linux-nat.c
7401 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
7402 Declare method.
7403 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
7404
7405 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
7406
7407 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
7408 (sparc64_adi_info): Likewise.
7409
7410 2020-05-15 Tom Tromey <tom@tromey.com>
7411
7412 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
7413 block_objfile.
7414 (lookup_objfile_from_block): Remove.
7415 (lookup_symbol_in_block, lookup_symbol_in_static_block)
7416 (lookup_global_symbol): Use block_objfile.
7417 * symtab.h (lookup_objfile_from_block): Don't declare.
7418 * printcmd.c (clear_dangling_display_expressions): Use
7419 block_objfile.
7420 * parse.c (operator_check_standard): Use block_objfile.
7421
7422 2020-05-15 Tom Tromey <tom@tromey.com>
7423
7424 * language.c (language_alloc_type_symbol): Set
7425 SYMBOL_SECTION.
7426 * symtab.c (initialize_objfile_symbol): Remove.
7427 (allocate_symbol): Remove.
7428 (allocate_template_symbol): Remove.
7429 * dwarf2/read.c (fixup_go_packaging): Use "new".
7430 (new_symbol): Use "new".
7431 (read_variable): Don't call initialize_objfile_symbol. Use
7432 "new".
7433 (read_func_scope): Use "new".
7434 * xcoffread.c (process_xcoff_symbol): Don't call
7435 initialize_objfile_symbol.
7436 (SYMBOL_DUP): Remove.
7437 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
7438 "new".
7439 * symtab.h (allocate_symbol, initialize_objfile_symbol)
7440 (allocate_template_symbol): Don't declare.
7441 (struct symbol): Add copy constructor. Change defaults.
7442 * jit.c (finalize_symtab): Use "new".
7443 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
7444 Use "new".
7445 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
7446 (common_block_end): Use "new".
7447 * mdebugread.c (parse_symbol): Use "new".
7448 (new_symbol): Likewise.
7449
7450 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7451
7452 * NEWS: Mention changes to help and apropos.
7453
7454 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7455
7456 * command.h (enum command_class): Improve comments, document
7457 that class_alias is for user-defined aliases, give the class
7458 name for each class, remove unused class_xdb.
7459 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
7460 * breakpoint.c (_initialize_breakpoint): Replace class_alias
7461 by a precise class.
7462 * infcmd.c (_initialize_infcmd): Likewise.
7463 * reverse.c (_initialize_reverse): Likewise.
7464 * stack.c (_initialize_stack): Likewise.
7465 * symfile.c (_initialize_symfile): Likewise.
7466 * tracepoint.c (_initialize_tracepoint): Likewise.
7467
7468 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7469
7470 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
7471 when their aliased command is traversed.
7472 (help_cmd): Add fput_command_names_styled call to
7473 output command name and aliases when command has an alias.
7474
7475 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7476
7477 * cli/cli-decode.h (help_cmd_list): Remove declaration.
7478 * cli/cli-decode.c (help_cmd_list): Declare as static,
7479 remove prefix argument, use bool for recurse arg, rework to show the aliases of
7480 a command together with the command.
7481 (fput_command_name_styled, fput_command_names_styled): New functions.
7482 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
7483 fput_command_name_styled.
7484 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
7485 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
7486
7487 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7488
7489 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
7490 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
7491 * command.h (cmd_show_list): Likewise.
7492 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
7493 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
7494
7495 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7496
7497 * unittests/command-def-selftests.c (traverse_command_structure):
7498 Verify all commands of a list have the same prefix command and
7499 that only the top cmdlist commands have a null prefix.
7500
7501 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7502
7503 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
7504 as prefix, not one of its aliases.
7505 (set_cmd_prefix): Remove.
7506 (do_add_cmd): Centralize the setting of the prefix of a command, when
7507 command is defined after its full chain of prefix commands.
7508 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
7509 (add_setshow_cmd_full): Likewise.
7510 (update_prefix_field_of_prefixed_commands): New function.
7511 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
7512 update_prefix_field_of_prefixed_commands.
7513 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
7514 addresses of remote_set_cmdlist and remote_show_cmdlist given
7515 as argument, not the address of an argument.
7516 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
7517 * gdb/remote.c (_initialize_remote): Likewise.
7518
7519 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7520
7521 * cli/cli-cmds.c (alias_command): Check for an existing alias
7522 using lookup_cmd_composition, as valid_command_p is too strict
7523 and forbids aliases that are the prefix of an existing alias
7524 or command.
7525 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
7526 command is properly recognised as a valid command.
7527
7528 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7529
7530 * unittests/help-doc-selftests.c: Rename to
7531 unittests/command-def-selftests.c
7532 * unittests/command-def-selftests.c (help_doc_tests): Update some
7533 comments.
7534 (command_structure_tests, traverse_command_structure): New namespace
7535 and function.
7536 (command_structure_invariants_tests): New function.
7537 (_initialize_command_def_selftests) Renamed from
7538 _initialize_help_doc_selftests, register command_structure_invariants
7539 selftest.
7540
7541 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7542
7543 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
7544 an alias of 'show'.
7545
7546 2020-05-15 Joel Brobecker <brobecker@adacore.com>
7547
7548 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
7549 ada_is_fixed_point_type. Update all callers.
7550 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
7551 all callers.
7552 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
7553 Update all callers.
7554 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
7555 print_fixed_point_type. Update all callers.
7556 * ada-valprint.c (ada_value_print_num): Replace call to
7557 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
7558
7559 2020-05-14 Kevin Buettner <kevinb@redhat.com>
7560
7561 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
7562 processors.
7563 (cpu_supports_bts): Add CV_AMD case.
7564
7565 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
7566 Simon Marchi <simon.marchi@efficios.com>
7567
7568 * infrun.c (stop_all_threads): Collect multiple wait events at
7569 each pass.
7570
7571 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
7572
7573 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
7574 type::code instead.
7575
7576 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
7577
7578 * gdbtypes.h (struct type) <code, set_code>: New methods.
7579 (TYPE_CODE): Use type::code. Change all call sites used to set
7580 the code to use type::set_code instead.
7581
7582 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7583 Tom de Vries <tdevries@suse.de>
7584 Pedro Alves <palves@redhat.com>
7585
7586 PR threads/25478
7587 * infrun.c (stop_all_threads): Do NOT ignore
7588 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
7589 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
7590 received.
7591 (handle_no_resumed): Remove code handling a live inferior with no
7592 threads.
7593 * remote.c (has_single_non_exited_thread): New.
7594 (remote_target::update_thread_list): Do not delete a thread if is
7595 the last thread of the process.
7596 * thread.c (thread_select): Call delete_exited_threads instead of
7597 prune_threads.
7598
7599 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7600
7601 * infrun.c (stop_all_threads): Enable/disable thread events of all
7602 targets. Move a debug message denoting the end of the function
7603 into the SCOPED_EXIT block.
7604
7605 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7606
7607 * process-stratum-target.h: Include <set>.
7608 (all_non_exited_process_targets, switch_to_target_no_thread): New
7609 function declarations.
7610 * process-stratum-target.c (all_non_exited_process_targets)
7611 (switch_to_target_no_thread): New function implementations.
7612
7613 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7614
7615 * infrun.c (handle_inferior_event): Extract out a piece of code
7616 into...
7617 (mark_non_executing_threads): ...this new function.
7618
7619 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7620
7621 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
7622 use.
7623
7624 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7625
7626 * regcache.c (regcache_read_pc_protected): New function
7627 implementation that returns 0 if the PC cannot read via
7628 'regcache_read_pc'.
7629 * infrun.c (proceed): Call 'regcache_read_pc_protected'
7630 instead of 'regcache_read_pc'.
7631 (keep_going_pass_signal): Ditto.
7632
7633 2020-05-13 Tom Tromey <tromey@adacore.com>
7634
7635 * ada-lang.c (align_value): Remove.
7636 (ada_template_to_fixed_record_type_1): Use align_up.
7637
7638 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7639
7640 * async-event.c: Update the copyright year.
7641 * async-event.h: Update the copyright year.
7642
7643 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
7644
7645 * objfiles.h (is_addr_in_objfile,
7646 shared_objfile_contains_address_p): Return bool.
7647 * objfile.c (is_addr_in_objfile,
7648 shared_objfile_contains_address_p): Return bool.
7649
7650 2020-05-11 Tom Tromey <tromey@adacore.com>
7651
7652 * cli/cli-cmds.c (info_command): Restore.
7653 (_initialize_cli_cmds): Use add_prefix_command for "info".
7654 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
7655
7656 2020-05-11 Tom Tromey <tromey@adacore.com>
7657
7658 * ada-lang.c (ada_value_primitive_field): Now public.
7659 * ada-lang.h (ada_value_primitive_field): Declare.
7660 * ada-valprint.c (print_field_values): Use
7661 ada_value_primitive_field for wrapper fields.
7662
7663 2020-05-11 Tom de Vries <tdevries@suse.de>
7664
7665 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
7666 MODULE_DOMAIN.
7667
7668 2020-05-11 Tom de Vries <tdevries@suse.de>
7669
7670 PR symtab/25941
7671 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
7672 with length 0, if not gdb-produced.
7673 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
7674
7675 2020-05-09 Tom de Vries <tdevries@suse.de>
7676
7677 PR gdb/25955
7678 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
7679 calculation.
7680
7681 2020-05-09 Tom Tromey <tom@tromey.com>
7682
7683 * top.c (server_command): Now bool.
7684 * top.h (server_command): Now bool.
7685
7686 2020-05-08 Tom Tromey <tromey@adacore.com>
7687
7688 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
7689 already being processed.
7690
7691 2020-05-08 Tom Tromey <tom@tromey.com>
7692
7693 * printcmd.c (struct display) <next>: Remove.
7694 <display>: New constructor.
7695 <exp_string>: Now a std::string.
7696 <enabled_p>: Now a bool.
7697 (display_number): Move definition earlier.
7698 (displays): Rename from display_chain. Now a std::vector.
7699 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
7700 (display_command): Update.
7701 (do_one_display, disable_display)
7702 (enable_disable_display_command, do_enable_disable_display):
7703 Update.
7704 (free_display): Remove.
7705 (clear_displays): Rewrite.
7706 (delete_display): Update.
7707 (map_display_numbers): Use function_view. Remove "data"
7708 parameter. Update.
7709 (do_delete_display): Remove.
7710 (undisplay_command): Update.
7711 (do_one_display, do_displays, disable_display)
7712 (info_display_command): Update.
7713 (do_enable_disable_display): Remove.
7714 (enable_disable_display_command)
7715 (clear_dangling_display_expressions): Update.
7716
7717 2020-05-08 Tom Tromey <tom@tromey.com>
7718
7719 * symtab.c (set_symbol_cache_size)
7720 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
7721 (maintenance_print_symbol_cache_statistics): Update.
7722 * symmisc.c (print_symbol_bcache_statistics)
7723 (print_objfile_statistics, maintenance_print_objfiles)
7724 (maintenance_info_symtabs, maintenance_check_symtabs)
7725 (maintenance_expand_symtabs, maintenance_info_line_tables):
7726 Update.
7727 * symfile-debug.c (set_debug_symfile): Update.
7728 * source.c (forget_cached_source_info): Update.
7729 * python/python.c (gdbpy_progspaces): Update.
7730 * psymtab.c (maintenance_info_psymtabs): Update.
7731 * probe.c (parse_probes): Update.
7732 * linespec.c (iterate_over_all_matching_symtabs)
7733 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
7734 * guile/scm-progspace.c (gdbscm_progspaces): Update.
7735 * exec.c (exec_target::close): Update.
7736 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
7737 * breakpoint.c (print_one_breakpoint_location)
7738 (create_longjmp_master_breakpoint)
7739 (create_std_terminate_master_breakpoint): Update.
7740 * progspace.c (program_spaces): Now a std::vector.
7741 (maybe_new_address_space): Update.
7742 (add_program_space): Remove.
7743 (program_space::program_space): Update.
7744 (remove_program_space): Update.
7745 (number_of_program_spaces): Remove.
7746 (print_program_space, update_address_spaces): Update.
7747 * progspace.h (program_spaces): Change type.
7748 (ALL_PSPACES): Remove.
7749 (number_of_program_spaces): Don't declare.
7750 (struct program_space) <next>: Remove.
7751
7752 2020-05-08 Tom Tromey <tom@tromey.com>
7753
7754 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
7755 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
7756 (enable_break): Update.
7757 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
7758 (frv_fdpic_find_canonical_descriptor): Update.
7759 (frv_fetch_objfile_link_map): Update.
7760 * progspace.c (program_space::free_all_objfiles): Update.
7761 (program_space::solibs): New method.
7762 * progspace.h (struct program_space) <solibs>: New method.
7763 * solist.h (master_so_list): Don't declare.
7764 (ALL_SO_LIBS): Remove.
7765 * solib.h (so_list_head): Remove.
7766 (update_solib_list): Update comment.
7767 * solib.c (master_so_list): Remove.
7768 (solib_used, update_solib_list, solib_add)
7769 (info_sharedlibrary_command, clear_solib)
7770 (reload_shared_libraries_1, remove_user_added_objfile): Update.
7771
7772 2020-05-08 Tom Tromey <tom@tromey.com>
7773
7774 * extension.c (extension_languages): Now a std::array.
7775 (ALL_EXTENSION_LANGUAGES): Remove.
7776 (get_ext_lang_defn, get_ext_lang_of_file)
7777 (eval_ext_lang_from_control_command): Update.
7778 (finish_ext_lang_initialization)
7779 (auto_load_ext_lang_scripts_for_objfile)
7780 (ext_lang_type_printers::ext_lang_type_printers)
7781 (apply_ext_lang_type_printers)
7782 (ext_lang_type_printers::~ext_lang_type_printers)
7783 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
7784 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
7785 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
7786 (get_matching_xmethod_workers, ext_lang_colorize)
7787 (ext_lang_before_prompt): Update.
7788 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
7789
7790 2020-05-08 Tom Tromey <tom@tromey.com>
7791
7792 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
7793 overload.
7794 <swap_string, m_string>: Remove.
7795 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
7796 Update.
7797 * stabsread.c (define_symbol, read_type): Update.
7798 * linespec.c (find_linespec_symbols): Update.
7799 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
7800 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
7801 * dbxread.c (read_dbx_symtab): Update.
7802 * cp-support.h (cp_canonicalize_string_full)
7803 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
7804 Return unique_xmalloc_ptr.
7805 * cp-support.c (inspect_type): Update.
7806 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
7807 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
7808 Likewise.
7809 * c-typeprint.c (print_name_maybe_canonical): Update.
7810 * break-catch-throw.c (check_status_exception_catchpoint):
7811 Update.
7812
7813 2020-05-08 Tom de Vries <tdevries@suse.de>
7814
7815 * infrun.c (follow_fork): Copy current_line and current_symtab to
7816 child thread.
7817
7818 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
7819
7820 * async-event.c (struct async_signal_handler, struct
7821 async_event_handler): Reformat, remove typedef.
7822
7823 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
7824
7825 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
7826 access thistype->main_type->dyn_prop_list directly.
7827
7828 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
7829
7830 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
7831 (remove_dyn_prop): Remove. Update all users to use
7832 type::remove_dyn_prop.
7833 * gdbtypes.c (remove_dyn_prop): Rename to...
7834 (type::remove_dyn_prop): ... this.
7835
7836 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
7837
7838 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
7839 (add_dyn_prop): Remove. Update all users to use
7840 type::add_dyn_prop.
7841 * gdbtypes.c (add_dyn_prop): Rename to...
7842 (type::add_dyn_prop): ... this.
7843
7844 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
7845
7846 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
7847 (get_dyn_prop): Remove. Update all users to use
7848 type::dyn_prop.
7849 * gdbtypes.c (get_dyn_prop): Rename to...
7850 (type::dyn_prop): ... this.
7851
7852 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
7853
7854 * gdbtypes.h (struct main_type) <flag_static>: Remove.
7855
7856 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
7857
7858 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
7859 instruction, skip it if it's there.
7860
7861 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
7862
7863 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
7864
7865 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
7866
7867 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
7868 * gdbtypes.c (recursive_dump_type): Remove use of
7869 TYPE_INCOMPLETE.
7870
7871 2020-05-03 Tom Tromey <tom@tromey.com>
7872
7873 * breakpoint.c (catch_command, tcatch_command): Remove.
7874 (_initialize_breakpoint): Use add_basic_prefix_cmd,
7875 add_show_prefix_cmd.
7876 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
7877 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
7878 Remove.
7879 (add_internal_problem_command): Use add_basic_prefix_cmd,
7880 add_show_prefix_cmd.
7881 * mips-tdep.c (set_mipsfpu_command): Remove.
7882 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
7883 * dwarf2/index-cache.c (set_index_cache_command): Remove.
7884 (_initialize_index_cache): Use add_basic_prefix_cmd.
7885 * memattr.c (dummy_cmd): Remove.
7886 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
7887 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
7888 (_initialize_tui_win): Use add_basic_prefix_cmd,
7889 add_show_prefix_cmd.
7890 * cli/cli-logging.c (set_logging_command): Remove.
7891 (_initialize_cli_logging): Use add_basic_prefix_cmd,
7892 add_show_prefix_cmd.
7893 (show_logging_command): Remove.
7894 * target.c (target_command): Remove.
7895 (add_target): Use add_basic_prefix_cmd.
7896
7897 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
7898
7899 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
7900
7901 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7902
7903 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
7904 info_command.
7905
7906 2020-04-30 Kamil Rytarowski <n54@gmx.com>
7907
7908 * nbsd-nat.c (nbsd_enable_proc_events)
7909 (nbsd_nat_target::post_startup_inferior): Add.
7910 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
7911 (nbsd_nat_target::update_thread_list): Rewrite.
7912 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
7913 "PTRACE_LWP_CREATE".
7914 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
7915
7916 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7917
7918 * stack.c (_initialize_stack): Remove duplicated creation
7919 of "frame" command and "f" alias.
7920
7921 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
7922
7923 PR gdb/18706
7924 * gdbtypes.c (check_typedef): Calculate size of array of
7925 stubbed type.
7926
7927 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
7928
7929 PR gdb/15559
7930 * i386-tdep.c (i386_push_dummy_call): Call
7931 i386_thiscall_push_dummy_call.
7932 (i386_thiscall_push_dummy_call): New function.
7933 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
7934 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
7935 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
7936
7937 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7938
7939 * gdbarch.sh (do_read): Add shellcheck disable directive for
7940 warning SC2162.
7941
7942 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7943
7944 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
7945 "referenced but not assigned" warning.
7946
7947 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7948
7949 * gdbarch.sh: Remove code that sets fallbackdefault.
7950
7951 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7952
7953 * gdbarch.sh: Use shell operators && and || instead of
7954 -a and -o.
7955
7956 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7957
7958 * gdbarch.sh: Use $(...) instead of `...`.
7959
7960 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7961
7962 * gdbarch.sh: Use double quotes around variables.
7963
7964 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7965
7966 * gdbarch.sh: Use %s with printf, instead of variables in the
7967 format string.
7968
7969 2020-04-29 Tom Tromey <tromey@adacore.com>
7970
7971 PR ada/25875:
7972 * dwarf2/read.c (update_enumeration_type_from_children): Compute
7973 type fields here.
7974 (read_enumeration_type): Call
7975 update_enumeration_type_from_children later. Update comments.
7976 (process_enumeration_scope): Don't create type fields.
7977
7978 2020-04-29 Kamil Rytarowski <n54@gmx.com>
7979
7980 * nbsd-tdep.c: Include "xml-syscall.h".
7981 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
7982
7983 2020-04-29 Kamil Rytarowski <n54@gmx.com>
7984
7985 * nbsd-nat.c: Include "sys/wait.h".
7986 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
7987 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
7988 (nbsd_nat_target::remove_exec_catchpoint)
7989 (nbsd_nat_target::set_syscall_catchpoint): Add.
7990 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
7991 (nbsd_nat_target::insert_exec_catchpoint)
7992 (nbsd_nat_target::remove_exec_catchpoint)
7993 (nbsd_nat_target::set_syscall_catchpoint): Add.
7994 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
7995 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
7996 `nbsd_get_syscall_number'.
7997
7998 2020-04-29 Tom Tromey <tom@tromey.com>
7999
8000 * stack.c (print_block_frame_labels): Remove.
8001
8002 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
8003
8004 PR gdb/17320
8005 * ada-valprint.c (val_print_packed_array_elements): Move array
8006 end bracket to new line.
8007 (ada_val_print_string): Remove extra spaces before first array
8008 element.
8009 * c-valprint.c (c_value_print_array): Likewise.
8010 * m2-valprint.c (m2_print_array_contents): Likewise.
8011 (m2_value_print_inner): Likewise.
8012 * p-valprint.c (pascal_value_print_inner): Likewise.
8013 * valprint.c (generic_val_print_array): Likewise.
8014 (value_print_array_elements): Move first array element and array
8015 end bracket to new line.
8016
8017 2020-04-29 Tom de Vries <tdevries@suse.de>
8018
8019 PR symtab/25889
8020 * linespec.c (find_method): Fix ix calculation.
8021
8022 2020-04-28 Kamil Rytarowski <n54@gmx.com>
8023
8024 * syscalls/update-netbsd.sh: New file.
8025 * syscalls/netbsd.xml: Regenerate.
8026 * data-directory/Makefile.in: Register `netbsd.xml' in
8027 `SYSCALLS_FILES'.
8028
8029 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
8030
8031 * syscalls/update-freebsd.sh: Add double quotes.
8032
8033 2020-04-28 Tom Tromey <tom@tromey.com>
8034
8035 * NEWS: Update.
8036 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
8037 (cmdpy_init): Allow class_tui.
8038
8039 2020-04-28 Mark Williams <mark@myosotissp.com>
8040
8041 PR gdb/24480
8042 * dwarf2read.c: Add missing assingments to list_in_scope when
8043 start_symtab was already called.
8044
8045 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
8046
8047 PR gdb/25881
8048 * dwarf2/read.c (offset_map_type): Use
8049 gdb:hash_enum<sect_offset> as hash function.
8050
8051 2020-04-28 Tom de Vries <tdevries@suse.de>
8052
8053 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
8054 with DW_AT_signature.
8055
8056 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
8057
8058 * configure.ac: Remove check for fs_base/gs_base in
8059 user_regs_struct.
8060 * configure: Re-generate.
8061 * config.in: Re-generate.
8062 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
8063 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
8064 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
8065
8066 2020-04-27 Luis Machado <luis.machado@linaro.org>
8067
8068 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
8069 problematic inline frame unwinding situation.
8070 * frame.c (frame_id_computed_p): New function.
8071 * frame.h (frame_id_computed_p): New prototype.
8072
8073 2020-04-26 Tom Tromey <tom@tromey.com>
8074
8075 * command.h (enum command_class) <class_pseudo>: Remove.
8076
8077 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8078
8079 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
8080 and whitespace.
8081
8082 2020-04-25 Kamil Rytarowski <n54@gmx.com>
8083
8084 * inf-ptrace.c (inf_ptrace_target::wait): Remove
8085 `PT_GET_PROCESS_STATE' block.
8086
8087 2020-04-24 Tom Tromey <tom@tromey.com>
8088
8089 * symtab.h (symbol_get_demangled_name): Don't declare.
8090 * symtab.c (symbol_get_demangled_name): Remove.
8091 (general_symbol_info::natural_name)
8092 (general_symbol_info::demangled_name): Update.
8093
8094 2020-04-24 Tom Tromey <tom@tromey.com>
8095
8096 PR rust/25025:
8097 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
8098
8099 2020-04-24 Tom Tromey <tom@tromey.com>
8100
8101 PR symtab/12707:
8102 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
8103 exists.
8104 (new_symbol): Likewise.
8105 * compile/compile-object-load.c (get_out_value_type): Use
8106 symbol_matches_search_name.
8107
8108 2020-04-24 Tom Tromey <tom@tromey.com>
8109
8110 * dwarf2/read.c (add_partial_symbol): Do not call
8111 compute_and_set_names.
8112
8113 2020-04-24 Tom Tromey <tom@tromey.com>
8114
8115 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
8116 overload.
8117
8118 2020-04-24 Tom Tromey <tom@tromey.com>
8119
8120 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
8121 (add_psymbol_to_list): New overload. Make old overload call new
8122 one.
8123 * psympriv.h (add_psymbol_to_list): New overload.
8124
8125 2020-04-24 Tom Tromey <tom@tromey.com>
8126
8127 * dwarf2/read.c (partial_die_info::read) <case
8128 DW_AT_linkage_name>: Use value_as_string.
8129 (dwarf2_string_attr): Use value_as_string.
8130 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
8131 method.
8132 * dwarf2/attribute.c (attribute::value_as_string): New method.
8133
8134 2020-04-24 Tom Tromey <tom@tromey.com>
8135
8136 * symtab.c (general_symbol_info::natural_name)
8137 (general_symbol_info::demangled_name): Check for language_rust.
8138
8139 2020-04-24 Tom Tromey <tom@tromey.com>
8140
8141 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
8142 (dwarf2_physname): ... from here.
8143 (partial_die_info::read): Add Rust "{" hack.
8144
8145 2020-04-24 Tom Tromey <tom@tromey.com>
8146
8147 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
8148 method.
8149 (symbol_set_demangled_name): Don't declare.
8150 * symtab.c (general_symbol_info::set_demangled_name): Rename from
8151 symbol_set_demangled_name.
8152 (general_symbol_info::set_language)
8153 (general_symbol_info::compute_and_set_names): Update.
8154 * minsyms.c (minimal_symbol_reader::install): Update.
8155 * dwarf2/read.c (new_symbol): Update.
8156
8157 2020-04-24 Tom Tromey <tromey@adacore.com>
8158
8159 PR python/23662:
8160 * python/py-type.c (convert_field): Handle
8161 FIELD_LOC_KIND_DWARF_BLOCK.
8162 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
8163 (typy_get_dynamic): Nw function.
8164 (type_object_getset): Add "dynamic".
8165 * NEWS: Add entry.
8166
8167 2020-04-24 Tom Tromey <tromey@adacore.com>
8168
8169 * ada-typeprint.c (print_choices, print_variant_part)
8170 (print_record_field_types_dynamic): New functions.
8171 (print_record_field_types): Use print_record_field_types_dynamic.
8172
8173 2020-04-24 Tom Tromey <tromey@adacore.com>
8174
8175 * dwarf2/read.c (handle_data_member_location): New overload.
8176 (dwarf2_add_field): Use it.
8177 (decode_locdesc): Add "computed" parameter. Update comment.
8178 * gdbtypes.c (is_dynamic_type_internal): Also look for
8179 FIELD_LOC_KIND_DWARF_BLOCK.
8180 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
8181 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
8182 virtual base classes.
8183 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
8184 FIELD_LOC_KIND_DWARF_BLOCK.
8185
8186 2020-04-24 Tom Tromey <tromey@adacore.com>
8187
8188 * dwarf2/read.c (read_structure_type): Handle dynamic length.
8189 * gdbtypes.c (is_dynamic_type_internal): Check
8190 TYPE_HAS_DYNAMIC_LENGTH.
8191 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
8192 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
8193 New macros.
8194 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
8195 constant.
8196
8197 2020-04-24 Tom Tromey <tromey@adacore.com>
8198
8199 * dwarf2/read.c (struct variant_field): Rewrite.
8200 (struct variant_part_builder): New.
8201 (struct nextfield): Remove "variant" field. Add "offset".
8202 (struct field_info): Add "current_variant_part" and
8203 "variant_parts".
8204 (alloc_discriminant_info): Remove.
8205 (alloc_rust_variant): New function.
8206 (quirk_rust_enum): Update.
8207 (dwarf2_add_field): Set "offset" member. Don't handle
8208 DW_TAG_variant_part.
8209 (offset_map_type): New typedef.
8210 (convert_variant_range, create_one_variant)
8211 (create_one_variant_part, create_variant_parts)
8212 (add_variant_property): New functions.
8213 (dwarf2_attach_fields_to_type): Call add_variant_property.
8214 (read_structure_type): Don't handle DW_TAG_variant_part.
8215 (handle_variant_part, handle_variant): New functions.
8216 (handle_struct_member_die): Use them.
8217 (process_structure_scope): Don't handle variant parts.
8218 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
8219 (struct discriminant_info): Remove.
8220 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
8221 (struct main_type) <flag_discriminated_union>: Remove.
8222 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
8223 (rust_enum_variant): Return int. Remove "contents". Rewrite.
8224 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
8225 Update.
8226 * valops.c (value_union_variant): Remove.
8227 * value.h (value_union_variant): Don't declare.
8228
8229 2020-04-24 Tom Tromey <tromey@adacore.com>
8230
8231 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
8232 (ada_value_primitive_packed_val): Update.
8233 * ada-valprint.c (ada_value_print_1): Update.
8234 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
8235 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
8236 just an address. Use evaluate_for_locexpr_baton.
8237 (dwarf2_evaluate_property): Update.
8238 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
8239 array_view.
8240 * findvar.c (default_read_var_value): Update.
8241 * gdbtypes.c (compute_variant_fields_inner)
8242 (resolve_dynamic_type_internal): Update.
8243 (resolve_dynamic_type): Change type of valaddr parameter.
8244 * gdbtypes.h (resolve_dynamic_type): Update.
8245 * valarith.c (value_subscripted_rvalue): Update.
8246 * value.c (value_from_contents_and_address): Update.
8247
8248 2020-04-24 Tom Tromey <tromey@adacore.com>
8249
8250 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
8251 "push_initial_value" parameter.
8252 (dwarf2_evaluate_property): Likewise.
8253 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
8254
8255 2020-04-24 Tom Tromey <tromey@adacore.com>
8256
8257 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
8258 (variant::matches, compute_variant_fields_recurse)
8259 (compute_variant_fields_inner, compute_variant_fields): New
8260 functions.
8261 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
8262 Use resolved_type after type is made.
8263 (operator==): Add new cases.
8264 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
8265 (struct discriminant_range, struct variant, struct variant_part):
8266 New.
8267 (union dynamic_prop_data) <variant_parts, original_type>: New
8268 members.
8269 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
8270 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
8271 constants.
8272 * value.c (unpack_bits_as_long): Now public.
8273 * value.h (unpack_bits_as_long): Declare.
8274
8275 2020-04-24 Tom Tromey <tromey@adacore.com>
8276
8277 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
8278 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
8279
8280 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
8281
8282 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
8283
8284 2020-04-24 Kamil Rytarowski <n54@gmx.com>
8285
8286 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
8287 (remove_fork_catchpoint, post_startup_inferior)
8288 (post_attach): Move...
8289 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
8290 (remove_fork_catchpoint, post_startup_inferior)
8291 (post_attach): ...here.
8292 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
8293 (remove_fork_catchpoint, post_startup_inferior)
8294 (post_attach): Move...
8295 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
8296 (remove_fork_catchpoint, post_startup_inferior)
8297 (post_attach): ...here.
8298
8299 2020-04-24 Tom Tromey <tromey@adacore.com>
8300
8301 * nat/windows-nat.h (struct windows_thread_info)
8302 <pc_adjusted>: New member.
8303 * windows-nat.c (windows_fetch_one_register): Check
8304 pc_adjusted.
8305 (windows_nat_target::get_windows_debug_event)
8306 (windows_nat_target::wait): Set pc_adjusted.
8307
8308 2020-04-24 Tom de Vries <tdevries@suse.de>
8309
8310 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
8311 Run gdb-add-index inside temp dir.
8312
8313 2020-04-23 Tom Tromey <tromey@adacore.com>
8314
8315 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
8316 in loop.
8317
8318 2020-04-23 Luis Machado <luis.machado@linaro.org>
8319
8320 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
8321 get_frame_register instead of gdbarch_unwind_pc.
8322
8323 2020-04-23 Tom de Vries <tdevries@suse.de>
8324
8325 * symtab.c (lookup_global_symbol): Prefer def over decl.
8326
8327 2020-04-23 Tom de Vries <tdevries@suse.de>
8328
8329 PR symtab/25807
8330 * block.c (best_symbol, better_symbol): Promote to external.
8331 * block.h (best_symbol, better_symbol): Declare.
8332 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
8333 decl.
8334
8335 2020-04-23 Tom Tromey <tromey@adacore.com>
8336
8337 PR ada/25837:
8338 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
8339 "const char *", not a "const std::string &".
8340 <name_and_matcher::operator==>: Update.
8341 * unittests/lookup_name_info-selftests.c: Change type of
8342 "result".
8343
8344 2020-04-23 Tom Tromey <tom@tromey.com>
8345
8346 * inferior.h (iterate_over_inferiors): Don't declare.
8347 * inferior.c (iterate_over_inferiors): Remove.
8348 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
8349 Remove.
8350 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
8351 use iterate_over_inferiors.
8352 (darwin_resume_inferior_it)
8353 (struct resume_inferior_threads_param)
8354 (darwin_resume_inferior_threads_it): Remove.
8355 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
8356
8357 2020-04-23 Tom de Vries <tdevries@suse.de>
8358
8359 * blockframe.c (find_pc_partial_function): Use
8360 find_pc_sect_compunit_symtab rather than
8361 objfile->sf->qf->find_pc_sect_compunit_symtab.
8362
8363 2020-04-22 Tom de Vries <tdevries@suse.de>
8364
8365 PR symtab/25764
8366 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
8367 in psymtabs.
8368
8369 2020-04-22 Tom de Vries <tdevries@suse.de>
8370
8371 PR symtab/25801
8372 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
8373 symtabs.
8374
8375 2020-04-22 Tom de Vries <tdevries@suse.de>
8376
8377 PR symtab/25700
8378 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
8379 CU if already created.
8380
8381 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8382
8383 * infrun.c (displaced_step_fixup): Switch to the event_thread
8384 before calling displaced_step_restore, not after.
8385
8386 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
8387
8388 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
8389 its inferior is not recorded by us.
8390 (record_btrace_target_open): Replace call to
8391 all_non_exited_threads () with call to current_inferior
8392 ()->non_exited_threads ().
8393 (record_btrace_target::stop_recording): Likewise.
8394 (record_btrace_target::close): Likewise.
8395 (record_btrace_target::wait): Likewise.
8396 (record_btrace_target::record_stop_replaying): Likewise.
8397
8398 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
8399
8400 * btrace.c (btrace_enable): Throw an error on double enables and
8401 when enabling recording fails.
8402 (btrace_disable): Throw an error if the thread is not recorded.
8403
8404 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
8405
8406 * record-btrace.c (record_btrace_target::fetch_registers): Forward
8407 request if we do not have a thread_info.
8408
8409 2020-04-21 Tom de Vries <tdevries@suse.de>
8410
8411 PR gdb/25471
8412 * thread.c
8413 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
8414 exception in get_frame_id.
8415
8416 2020-04-20 Tom Tromey <tromey@adacore.com>
8417
8418 * python/python.c (struct gdbpy_event): Mark move constructor as
8419 noexcept.
8420 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
8421 constructor as noexcept.
8422 * completer.h (struct completion_result): Mark move constructor as
8423 noexcept.
8424 * completer.c (completion_result::completion_result): Use
8425 initialization style. Don't call reset_match_list.
8426
8427 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
8428
8429 * MAINTAINERS (Write After Approval): Add myself.
8430
8431 2020-04-18 Tom Tromey <tom@tromey.com>
8432
8433 * windows-tdep.c (init_w32_command_list)
8434 (w32_prefix_command_valid): Restore.
8435 (_initialize_windows_tdep): Call init_w32_command_list.
8436
8437 2020-04-18 Tom Tromey <tom@tromey.com>
8438
8439 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
8440 * value.c (value_fn_field): Update.
8441 * valops.c (find_function_in_inferior)
8442 (value_allocate_space_in_inferior): Update.
8443 * tui/tui-winsource.c (tui_update_source_windows_with_line):
8444 Update.
8445 * tui/tui-source.c (tui_source_window::set_contents): Update.
8446 * symtab.c (lookup_global_or_static_symbol)
8447 (find_function_start_sal_1, skip_prologue_sal)
8448 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
8449 * symmisc.c (dump_msymbols, dump_symtab_1)
8450 (maintenance_print_one_line_table): Update.
8451 * symfile.c (init_entry_point_info, section_is_mapped)
8452 (list_overlays_command, simple_read_overlay_table)
8453 (simple_overlay_update_1): Update.
8454 * stap-probe.c (handle_stap_probe): Update.
8455 * stabsread.c (dbx_init_float_type, define_symbol)
8456 (read_one_struct_field, read_enum_type, read_range_type): Update.
8457 * source.c (info_line_command): Update.
8458 * python/python.c (gdbpy_source_objfile_script)
8459 (gdbpy_execute_objfile_script): Update.
8460 * python/py-type.c (save_objfile_types): Update.
8461 * python/py-objfile.c (py_free_objfile): Update.
8462 * python/py-inferior.c (python_new_objfile): Update.
8463 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
8464 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
8465 (maintenance_check_psymtabs): Update.
8466 * printcmd.c (info_address_command): Update.
8467 * objfiles.h (struct objfile) <arch>: New method, from
8468 get_objfile_arch.
8469 (get_objfile_arch): Don't declare.
8470 * objfiles.c (get_objfile_arch): Remove.
8471 (filter_overlapping_sections): Update.
8472 * minsyms.c (msymbol_is_function): Update.
8473 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
8474 (output_nondebug_symbol): Update.
8475 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
8476 (mdebug_expand_psymtab): Update.
8477 * machoread.c (macho_add_oso_symfile): Update.
8478 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
8479 Update.
8480 * linux-fork.c (checkpoint_command): Update.
8481 * linespec.c (convert_linespec_to_sals): Update.
8482 * jit.c (finalize_symtab): Update.
8483 * infrun.c (insert_exception_resume_from_probe): Update.
8484 * ia64-tdep.c (ia64_find_unwind_table): Update.
8485 * hppa-tdep.c (internalize_unwinds): Update.
8486 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
8487 Update.
8488 * gcore.c (call_target_sbrk): Update.
8489 * elfread.c (record_minimal_symbol, elf_symtab_read)
8490 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
8491 (elf_gnu_ifunc_resolve_by_got): Update.
8492 * dwarf2/read.c (create_addrmap_from_index)
8493 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
8494 (read_debug_names_from_section)
8495 (process_psymtab_comp_unit_reader, add_partial_symbol)
8496 (add_partial_subprogram, process_full_comp_unit)
8497 (read_file_scope, read_func_scope, read_lexical_block_scope)
8498 (read_call_site_scope, dwarf2_ranges_read)
8499 (dwarf2_record_block_ranges, dwarf2_add_field)
8500 (mark_common_block_symbol_computed, read_tag_pointer_type)
8501 (read_tag_string_type, dwarf2_init_float_type)
8502 (dwarf2_init_complex_target_type, read_base_type)
8503 (partial_die_info::read, partial_die_info::read)
8504 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
8505 (dwarf2_fetch_die_loc_sect_off): Update.
8506 * dwarf2/loc.c (dwarf2_find_location_expression)
8507 (class dwarf_evaluate_loc_desc, rw_pieced_value)
8508 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
8509 (dwarf2_loc_desc_get_symbol_read_needs)
8510 (locexpr_describe_location_piece, locexpr_describe_location_1)
8511 (loclist_describe_location): Update.
8512 * dwarf2/index-write.c (write_debug_names): Update.
8513 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
8514 * dtrace-probe.c (dtrace_process_dof): Update.
8515 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
8516 (process_one_symbol): Update.
8517 * ctfread.c (ctf_init_float_type, read_base_type): Update.
8518 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
8519 (coff_read_enum_type): Update.
8520 * cli/cli-cmds.c (edit_command, list_command): Update.
8521 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
8522 * breakpoint.c (create_overlay_event_breakpoint)
8523 (create_longjmp_master_breakpoint)
8524 (create_std_terminate_master_breakpoint)
8525 (create_exception_master_breakpoint, get_sal_arch): Update.
8526 * block.c (block_gdbarch): Update.
8527 * annotate.c (annotate_source_line): Update.
8528
8529 2020-04-17 Tom Tromey <tromey@adacore.com>
8530
8531 * auto-load.c (show_auto_load_cmd): Remove.
8532 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
8533 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
8534 (maintenance_print_arc_command): Remove.
8535 * tui/tui-win.c (tui_command): Remove.
8536 (tui_get_cmd_list): Use add_basic_prefix_cmd.
8537 * tui/tui-layout.c (tui_layout_command): Remove.
8538 (_initialize_tui_layout): Use add_basic_prefix_cmd.
8539 * python/python.c (user_set_python, user_show_python): Remove.
8540 (_initialize_python): Use add_basic_prefix_cmd,
8541 add_show_prefix_cmd.
8542 * guile/guile.c (set_guile_command, show_guile_command): Remove.
8543 (install_gdb_commands): Use add_basic_prefix_cmd,
8544 add_show_prefix_cmd.
8545 (info_guile_command): Remove.
8546 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
8547 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
8548 add_show_prefix_cmd.
8549 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
8550 Remove do_set and do_show parameters.
8551 * cli/cli-style.c (set_style, show_style): Remove.
8552 (_initialize_cli_style): Use add_basic_prefix_cmd,
8553 add_show_prefix_cmd.
8554 (cli_style_option::add_setshow_commands): Remove do_set and
8555 do_show parameters.
8556 (cli_style_option::add_setshow_commands): Use
8557 add_basic_prefix_cmd, add_show_prefix_cmd.
8558 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
8559 (set_style_name): Remove.
8560 * cli/cli-dump.c (dump_command, append_command): Remove.
8561 (srec_dump_command, ihex_dump_command, verilog_dump_command)
8562 (tekhex_dump_command, binary_dump_command)
8563 (binary_append_command): Remove.
8564 (_initialize_cli_dump): Use add_basic_prefix_cmd.
8565 * windows-tdep.c (w32_prefix_command_valid): Remove global.
8566 (init_w32_command_list): Remove; move into ...
8567 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
8568 * valprint.c (set_print, show_print, set_print_raw)
8569 (show_print_raw): Remove.
8570 (_initialize_valprint): Use add_basic_prefix_cmd,
8571 add_show_prefix_cmd.
8572 * typeprint.c (set_print_type, show_print_type): Remove.
8573 (_initialize_typeprint): Use add_basic_prefix_cmd,
8574 add_show_prefix_cmd.
8575 * record.c (set_record_command, show_record_command): Remove.
8576 (_initialize_record): Use add_basic_prefix_cmd,
8577 add_show_prefix_cmd.
8578 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
8579 add_show_prefix_cmd.
8580 (info_command, show_command, set_debug, show_debug): Remove.
8581 * top.h (set_history, show_history): Don't declare.
8582 * top.c (set_history, show_history): Remove.
8583 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
8584 (unset_tdesc_cmd): Remove.
8585 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
8586 add_show_prefix_cmd.
8587 * symtab.c (info_module_command): Remove.
8588 (_initialize_symtab): Use add_basic_prefix_cmd.
8589 * symfile.c (overlay_command): Remove.
8590 (_initialize_symfile): Use add_basic_prefix_cmd.
8591 * sparc64-tdep.c (info_adi_command): Remove.
8592 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
8593 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
8594 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
8595 add_show_prefix_cmd.
8596 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
8597 (_initialize_serial): Use add_basic_prefix_cmd,
8598 add_show_prefix_cmd.
8599 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
8600 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
8601 add_show_prefix_cmd.
8602 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
8603 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
8604 add_show_prefix_cmd.
8605 * riscv-tdep.c (show_riscv_command, set_riscv_command)
8606 (show_debug_riscv_command, set_debug_riscv_command): Remove.
8607 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
8608 add_show_prefix_cmd.
8609 * remote.c (remote_command, set_remote_cmd): Remove.
8610 (_initialize_remote): Use add_basic_prefix_cmd.
8611 * record-full.c (set_record_full_command)
8612 (show_record_full_command): Remove.
8613 (_initialize_record_full): Use add_basic_prefix_cmd,
8614 add_show_prefix_cmd.
8615 * record-btrace.c (cmd_set_record_btrace)
8616 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
8617 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
8618 (cmd_show_record_btrace_pt): Remove.
8619 (_initialize_record_btrace): Use add_basic_prefix_cmd,
8620 add_show_prefix_cmd.
8621 * ravenscar-thread.c (set_ravenscar_command)
8622 (show_ravenscar_command): Remove.
8623 (_initialize_ravenscar): Use add_basic_prefix_cmd,
8624 add_show_prefix_cmd.
8625 * mips-tdep.c (show_mips_command, set_mips_command)
8626 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
8627 add_show_prefix_cmd.
8628 * maint.c (maintenance_command, maintenance_info_command)
8629 (maintenance_check_command, maintenance_print_command)
8630 (maintenance_set_cmd, maintenance_show_cmd): Remove.
8631 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
8632 add_show_prefix_cmd.
8633 (show_per_command_cmd): Remove.
8634 * maint-test-settings.c (maintenance_set_test_settings_cmd):
8635 Remove.
8636 (maintenance_show_test_settings_cmd): Remove.
8637 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
8638 add_show_prefix_cmd.
8639 * maint-test-options.c (maintenance_test_options_command):
8640 Remove.
8641 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
8642 * macrocmd.c (macro_command): Remove
8643 (_initialize_macrocmd): Use add_basic_prefix_cmd.
8644 * language.c (set_check, show_check): Remove.
8645 (_initialize_language): Use add_basic_prefix_cmd,
8646 add_show_prefix_cmd.
8647 * infcmd.c (unset_command): Remove.
8648 (_initialize_infcmd): Use add_basic_prefix_cmd.
8649 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
8650 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
8651 add_show_prefix_cmd.
8652 * go32-nat.c (go32_info_dos_command): Remove.
8653 (_initialize_go32_nat): Use add_basic_prefix_cmd.
8654 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
8655 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
8656 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
8657 (_initialize_frame): Use add_basic_prefix_cmd,
8658 add_show_prefix_cmd.
8659 * dcache.c (set_dcache_command, show_dcache_command): Remove.
8660 (_initialize_dcache): Use add_basic_prefix_cmd,
8661 add_show_prefix_cmd.
8662 * cp-support.c (maint_cplus_command): Remove.
8663 (_initialize_cp_support): Use add_basic_prefix_cmd.
8664 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
8665 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
8666 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
8667 add_basic_prefix_cmd, add_show_prefix_cmd.
8668 * breakpoint.c (save_command): Remove.
8669 (_initialize_breakpoint): Use add_basic_prefix_cmd.
8670 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
8671 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
8672 add_show_prefix_cmd.
8673 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
8674 (set_ada_command, show_ada_command): Remove.
8675 (_initialize_ada_language): Use add_basic_prefix_cmd,
8676 add_show_prefix_cmd.
8677 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
8678
8679 2020-04-16 Kamil Rytarowski <n54@gmx.com>
8680
8681 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
8682 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
8683
8684 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
8685
8686 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
8687 warning messages.
8688
8689 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
8690
8691 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
8692 import table is not at beginning of .idata section.
8693
8694 2020-04-16 Pedro Alves <palves@redhat.com>
8695
8696 * inferior.c (delete_inferior): Use delete operator directly
8697 instead of delete_program_space.
8698 * progspace.c (add_program_space): New, factored out from
8699 program_space::program_space.
8700 (remove_program_space): New, factored out from
8701 delete_program_space.
8702 (program_space::program_space): Remove intro comment. Rewrite.
8703 (program_space::~program_space): Remove intro comment. Call
8704 remove_program_space.
8705 (delete_program_space): Delete.
8706 * progspace.h (program_space::program_space): Make explicit. Move
8707 intro comment here, adjusted.
8708 (program_space::~program_space): Move intro comment here,
8709 adjusted.
8710 (delete_program_space): Remove.
8711
8712 2020-04-16 Tom Tromey <tromey@adacore.com>
8713
8714 * windows-nat.c (windows_nat::handle_access_violation): New
8715 function.
8716 * nat/windows-nat.h (handle_access_violation): Declare.
8717 * nat/windows-nat.c (handle_exception): Move Cygwin code to
8718 windows-nat.c. Call handle_access_violation.
8719
8720 2020-04-16 Tom de Vries <tdevries@suse.de>
8721
8722 PR symtab/25791
8723 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
8724 CUs without psymtab.
8725
8726 2020-04-16 Kevin Buettner <kevinb@redhat.com>
8727
8728 * python/python.c (do_start_initialization): Don't call
8729 PyEval_InitThreads for Python 3.9 and beyond.
8730
8731 2020-04-15 Kamil Rytarowski <n54@gmx.com>
8732
8733 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
8734 thread functions.
8735 (obsd_nat_target::wait): Likewise.
8736
8737 2020-04-15 Tom Tromey <tromey@adacore.com>
8738
8739 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
8740 (DEBUG_EXCEPT): Use debug_printf.
8741
8742 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
8743
8744 * completer.c (class completion_tracker::completion_hash_entry)
8745 <hash_name>: New member function.
8746 (completion_tracker::discard_completions): New callback to hash a
8747 completion_hash_entry, pass this to htab_create_alloc.
8748
8749 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
8750
8751 * windows-nat.c (windows_make_so): Warn rather than stopping with
8752 an error if realpath() fails.
8753
8754 2020-04-14 Kamil Rytarowski <n54@gmx.com>
8755
8756 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
8757 (nbsd_nat_target::info_proc): Add do_status.
8758
8759 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
8760 Tom de Vries <tdevries@suse.de>
8761
8762 PR symtab/25718
8763 * psympriv.h (struct partial_symtab::read_symtab)
8764 (struct partial_symtab::expand_psymtab)
8765 (struct partial_symtab::read_dependencies): Update comments.
8766 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
8767 read_symtab for includer.
8768 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
8769 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
8770 (struct dwarf2_include_psymtab::m_readin): Remove.
8771 (struct dwarf2_include_psymtab::includer): New member function.
8772 (dwarf2_psymtab::expand_psymtab): Assert !readin.
8773
8774 2020-04-14 Tom de Vries <tdevries@suse.de>
8775
8776 PR symtab/25720
8777 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
8778 with NULL symbol_matcher and lookup_name.
8779 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
8780 and lookup_name.
8781 * dwarf2/read.c (dw2_expand_symtabs_matching)
8782 (dw2_debug_names_expand_symtabs_matching): Same.
8783 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
8784 Make lookup_name a pointer. Update comment.
8785 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
8786 lookup_name being a pointer.
8787 * symfile.c (expand_symtabs_matching): Same.
8788 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
8789 * linespec.c (iterate_over_all_matching_symtabs): Same.
8790
8791 2020-04-13 Tom Tromey <tom@tromey.com>
8792
8793 * run-on-main-thread.c: Update include.
8794 * unittests/main-thread-selftests.c: Update include.
8795 * tui/tui-win.c: Update include.
8796 * tui/tui-io.c: Update include.
8797 * tui/tui-interp.c: Update include.
8798 * tui/tui-hooks.c: Update include.
8799 * top.h: Update include.
8800 * top.c: Update include.
8801 * ser-base.c: Update include.
8802 * remote.c: Update include.
8803 * remote-notif.c: Update include.
8804 * remote-fileio.c: Update include.
8805 * record-full.c: Update include.
8806 * record-btrace.c: Update include.
8807 * python/python.c: Update include.
8808 * posix-hdep.c: Update include.
8809 * mingw-hdep.c: Update include.
8810 * mi/mi-main.c: Update include.
8811 * mi/mi-interp.c: Update include.
8812 * main.c: Update include.
8813 * linux-nat.c: Update include.
8814 * interps.c: Update include.
8815 * infrun.c: Update include.
8816 * inf-loop.c: Update include.
8817 * event-top.c: Update include.
8818 * event-loop.c: Move to ../gdbsupport/.
8819 * event-loop.h: Move to ../gdbsupport/.
8820 * async-event.h: Update include.
8821 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
8822
8823 2020-04-13 Tom Tromey <tom@tromey.com>
8824
8825 * tui/tui-win.c: Include async-event.h.
8826 * remote.c: Include async-event.h.
8827 * remote-notif.c: Include async-event.h.
8828 * record-full.c: Include async-event.h.
8829 * record-btrace.c: Include async-event.h.
8830 * infrun.c: Include async-event.h.
8831 * event-top.c: Include async-event.h.
8832 * event-loop.h: Move some declarations to async-event.h.
8833 * event-loop.c: Don't include ser-event.h or top.h. Move some
8834 code to async-event.c.
8835 * async-event.h: New file.
8836 * async-event.c: New file.
8837 * Makefile.in (COMMON_SFILES): Add async-event.c.
8838 (HFILES_NO_SRCDIR): Add async-event.h.
8839
8840 2020-04-13 Tom Tromey <tom@tromey.com>
8841
8842 * utils.c (flush_streams): New function.
8843 * event-loop.c (gdb_wait_for_event): Call flush_streams.
8844
8845 2020-04-13 Tom Tromey <tom@tromey.com>
8846
8847 * event-loop.c (handle_file_event): Use warning, not
8848 printf_unfiltered.
8849
8850 2020-04-13 Tom Tromey <tom@tromey.com>
8851
8852 * event-loop.c: Include <chrono>.
8853
8854 2020-04-13 Tom Tromey <tom@tromey.com>
8855
8856 * gdb_select.h: Move to ../gdbsupport/.
8857 * event-loop.c: Update include path.
8858 * top.c: Update include path.
8859 * ser-base.c: Update include path.
8860 * ui-file.c: Update include path.
8861 * ser-tcp.c: Update include path.
8862 * guile/scm-ports.c: Update include path.
8863 * posix-hdep.c: Update include path.
8864 * ser-unix.c: Update include path.
8865 * gdb_usleep.c: Update include path.
8866 * mingw-hdep.c: Update include path.
8867 * inflow.c: Update include path.
8868 * infrun.c: Update include path.
8869 * event-top.c: Update include path.
8870
8871 2020-04-13 Tom Tromey <tom@tromey.com>
8872
8873 * configure: Rebuild.
8874 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
8875
8876 2020-04-13 Tom Tromey <tom@tromey.com>
8877
8878 * event-loop.h (start_event_loop): Don't declare.
8879 * event-loop.c (start_event_loop): Move...
8880 * main.c (start_event_loop): ...here. Now static.
8881
8882 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
8883
8884 * MAINTAINERS: Update my email address.
8885
8886 2020-04-12 Kamil Rytarowski <n54@gmx.com>
8887
8888 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
8889 IP_ALL.
8890
8891 2020-04-12 Kamil Rytarowski <n54@gmx.com>
8892
8893 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
8894 (nbsd_nat_target::info_proc): Add do_cmdline.
8895
8896 2020-04-12 Kamil Rytarowski <n54@gmx.com>
8897
8898 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
8899 (nbsd_nat_target::info_proc): Add do_cwd.
8900
8901 2020-04-12 Kamil Rytarowski <n54@gmx.com>
8902
8903 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
8904
8905 2020-04-11 Kamil Rytarowski <n54@gmx.com>
8906
8907 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
8908 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
8909 (nbsd_nat_target::info_proc): New functions.
8910 * nbsd-nat.c (kinfo_get_vmmap): New function.
8911 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
8912 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
8913 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
8914 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
8915 functions.
8916 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
8917 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
8918 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
8919 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
8920 (KINFO_VME_FLAG_GROWS_DOWN): New.
8921
8922 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
8923
8924 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
8925 bit shift.
8926
8927 2020-04-10 Tom Tromey <tromey@adacore.com>
8928
8929 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
8930
8931 2020-04-10 Tom Tromey <tromey@adacore.com>
8932
8933 * symtab.c (get_symbol_address, get_msymbol_address): Skip
8934 separate debug files.
8935
8936 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
8937
8938 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
8939 Move to...
8940 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
8941 ... here.
8942 * windows-nat.c (windows_nat_target::get_windows_debug_event):
8943 Check for STATUS_WX86_BREAKPOINT.
8944 (windows_nat_target::wait): Same.
8945
8946 2020-04-10 Tom de Vries <tdevries@suse.de>
8947
8948 PR cli/25808
8949 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
8950
8951 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
8952
8953 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
8954 (Write After Approval): Remove Tom de Vries.
8955
8956 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
8957
8958 revert partially:
8959 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8960
8961 * buildsym.c (record_line): Fix undefined behavior and preserve
8962 lines at eof.
8963
8964 2020-04-09 Kamil Rytarowski <n54@gmx.com>
8965
8966 * auxv.h (svr4_auxv_parse): New.
8967 * auxv.c (default_auxv_parse): Split into default_auxv_parse
8968 and generic_auxv_parse.
8969 (svr4_auxv_parse): Add.
8970 * obsd-tdep.c: Include "auxv.h".
8971 (obsd_auxv_parse): Remove.
8972 (obsd_init_abi): Remove comment.
8973 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
8974 from `obsd_auxv_parse' to `svr4_auxv_parse'.
8975 * nbsd-tdep.c: Include "auxv.h".
8976 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
8977
8978 2020-04-08 Tom Tromey <tromey@adacore.com>
8979
8980 * nat/windows-nat.h (last_wait_event): Don't declare.
8981 (wait_for_debug_event): Update comment.
8982 * nat/windows-nat.c (last_wait_event): Now static.
8983
8984 2020-04-08 Tom Tromey <tromey@adacore.com>
8985
8986 * windows-nat.c (wait_for_debug_event): Move to
8987 nat/windows-nat.c.
8988 * nat/windows-nat.h (wait_for_debug_event): Declare.
8989 * nat/windows-nat.c (wait_for_debug_event): Move from
8990 windows-nat.c. No longer static.
8991
8992 2020-04-08 Tom Tromey <tromey@adacore.com>
8993
8994 * windows-nat.c (get_windows_debug_event): Use
8995 fetch_pending_stop.
8996 * nat/windows-nat.h (fetch_pending_stop): Declare.
8997 * nat/windows-nat.c (fetch_pending_stop): New function.
8998
8999 2020-04-08 Tom Tromey <tromey@adacore.com>
9000
9001 * windows-nat.c (windows_continue): Use matching_pending_stop and
9002 continue_last_debug_event.
9003 * nat/windows-nat.h (matching_pending_stop)
9004 (continue_last_debug_event): Declare.
9005 * nat/windows-nat.c (DEBUG_EVENTS): New define.
9006 (matching_pending_stop, continue_last_debug_event): New
9007 functions.
9008
9009 2020-04-08 Tom Tromey <tromey@adacore.com>
9010
9011 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
9012 (handle_exception_result): Move to nat/windows-nat.h.
9013 (DEBUG_EXCEPTION_SIMPLE): Remove.
9014 (windows_nat::handle_ms_vc_exception): New function.
9015 (handle_exception): Move to nat/windows-nat.c.
9016 (get_windows_debug_event): Update.
9017 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
9018 nat/windows-nat.c.
9019 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
9020 (handle_exception_result): Move from windows-nat.c.
9021 (handle_exception): Declare.
9022 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
9023 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
9024 windows-nat.c.
9025
9026 2020-04-08 Tom Tromey <tromey@adacore.com>
9027
9028 * windows-nat.c (exception_count, event_count): Remove.
9029 (handle_exception, get_windows_debug_event)
9030 (do_initial_windows_stuff): Update.
9031
9032 2020-04-08 Tom Tromey <tromey@adacore.com>
9033
9034 * windows-nat.c (windows_nat::handle_load_dll)
9035 (windows_nat::handle_unload_dll): Rename. No longer static.
9036 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
9037 Declare.
9038
9039 2020-04-08 Tom Tromey <tromey@adacore.com>
9040
9041 * complaints.h (stop_whining): Declare at top-level.
9042 (complaint): Don't declare stop_whining.
9043
9044 2020-04-08 Tom Tromey <tromey@adacore.com>
9045
9046 * windows-nat.c (windows_nat::handle_output_debug_string):
9047 Rename. No longer static.
9048 * nat/windows-nat.h (handle_output_debug_string): Declare.
9049
9050 2020-04-08 Tom Tromey <tromey@adacore.com>
9051
9052 * windows-nat.c (current_process_handle, current_process_id)
9053 (main_thread_id, last_sig, current_event, last_wait_event)
9054 (current_windows_thread, desired_stop_thread_id, pending_stops)
9055 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
9056 (display_selectors, fake_create_process)
9057 (get_windows_debug_event): Update.
9058 * nat/windows-nat.h (current_process_handle, current_process_id)
9059 (main_thread_id, last_sig, current_event, last_wait_event)
9060 (current_windows_thread, desired_stop_thread_id, pending_stops)
9061 (struct pending_stop, siginfo_er): Move from windows-nat.c.
9062 * nat/windows-nat.c (current_process_handle, current_process_id)
9063 (main_thread_id, last_sig, current_event, last_wait_event)
9064 (current_windows_thread, desired_stop_thread_id, pending_stops)
9065 (siginfo_er): New globals. Move from windows-nat.c.
9066
9067 2020-04-08 Tom Tromey <tromey@adacore.com>
9068
9069 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
9070 (handle_load_dll): Update.
9071 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
9072
9073 2020-04-08 Tom Tromey <tromey@adacore.com>
9074
9075 * windows-nat.c (enum thread_disposition_type): Move to
9076 nat/windows-nat.h.
9077 (windows_nat::thread_rec): Rename from thread_rec. No longer
9078 static.
9079 (windows_add_thread, windows_nat_target::fetch_registers)
9080 (windows_nat_target::store_registers, handle_exception)
9081 (windows_nat_target::resume, get_windows_debug_event)
9082 (windows_nat_target::get_tib_address)
9083 (windows_nat_target::thread_name)
9084 (windows_nat_target::thread_alive): Update.
9085 * nat/windows-nat.h (enum thread_disposition_type): Move from
9086 windows-nat.c.
9087 (thread_rec): Declare.
9088
9089 2020-04-08 Tom Tromey <tromey@adacore.com>
9090
9091 * windows-nat.c: Add "using namespace".
9092 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
9093 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
9094
9095 2020-04-08 Tom Tromey <tromey@adacore.com>
9096
9097 * nat/windows-nat.h (struct windows_thread_info): Declare
9098 destructor.
9099 * nat/windows-nat.c (~windows_thread_info): New.
9100
9101 2020-04-08 Tom Tromey <tromey@adacore.com>
9102
9103 PR gdb/22992
9104 * windows-nat.c (current_event): Update comment.
9105 (last_wait_event, desired_stop_thread_id): New globals.
9106 (struct pending_stop): New.
9107 (pending_stops): New global.
9108 (windows_nat_target) <stopped_by_sw_breakpoint>
9109 <supports_stopped_by_sw_breakpoint>: New methods.
9110 (windows_fetch_one_register): Add assertions. Adjust PC.
9111 (windows_continue): Handle pending stops. Suspend other threads
9112 when stepping. Use last_wait_event
9113 (wait_for_debug_event): New function.
9114 (get_windows_debug_event): Use wait_for_debug_event. Handle
9115 pending stops. Queue spurious stops.
9116 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
9117 (windows_nat_target::kill): Use wait_for_debug_event.
9118 * nat/windows-nat.h (struct windows_thread_info)
9119 <stopped_at_software_breakpoint>: New field.
9120 * nat/windows-nat.c (windows_thread_info::resume): Clear
9121 stopped_at_software_breakpoint.
9122
9123 2020-04-08 Tom Tromey <tromey@adacore.com>
9124
9125 * windows-nat.c (enum thread_disposition_type): New.
9126 (thread_rec): Replace "get_context" parameter with "disposition";
9127 change type.
9128 (windows_add_thread, windows_nat_target::fetch_registers)
9129 (windows_nat_target::store_registers, handle_exception)
9130 (windows_nat_target::resume, get_windows_debug_event)
9131 (windows_nat_target::get_tib_address)
9132 (windows_nat_target::thread_name)
9133 (windows_nat_target::thread_alive): Update.
9134
9135 2020-04-08 Tom Tromey <tromey@adacore.com>
9136
9137 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
9138 (windows_continue): Use windows_continue::resume.
9139 * nat/windows-nat.h (struct windows_thread_info) <suspend,
9140 resume>: Declare new methods.
9141 * nat/windows-nat.c: New file.
9142 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
9143
9144 2020-04-08 Tom Tromey <tromey@adacore.com>
9145
9146 * windows-nat.c (windows_add_thread, windows_delete_thread)
9147 (windows_nat_target::fetch_registers)
9148 (windows_nat_target::store_registers, fake_create_process)
9149 (windows_nat_target::resume, windows_nat_target::resume)
9150 (get_windows_debug_event, windows_nat_target::wait)
9151 (windows_nat_target::pid_to_str)
9152 (windows_nat_target::get_tib_address)
9153 (windows_nat_target::get_ada_task_ptid)
9154 (windows_nat_target::thread_name)
9155 (windows_nat_target::thread_alive): Use lwp, not tid.
9156
9157 2020-04-08 Tom Tromey <tromey@adacore.com>
9158
9159 * windows-nat.c (handle_exception)
9160 (windows_nat_target::thread_name): Update.
9161 * nat/windows-nat.h (windows_thread_info): Remove destructor.
9162 <name>: Now unique_xmalloc_ptr.
9163
9164 2020-04-08 Tom Tromey <tromey@adacore.com>
9165
9166 * windows-nat.c (thread_rec)
9167 (windows_nat_target::fetch_registers): Update.
9168 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
9169 Update comment.
9170 <debug_registers_changed, reload_context>: Now bool.
9171
9172 2020-04-08 Tom Tromey <tromey@adacore.com>
9173
9174 * windows-nat.c (windows_add_thread): Use new.
9175 (windows_init_thread_list, windows_delete_thread): Use delete.
9176 (get_windows_debug_event): Update.
9177 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
9178 destructor, and initializers.
9179
9180 2020-04-08 Tom Tromey <tromey@adacore.com>
9181
9182 * windows-nat.c (struct windows_thread_info): Remove.
9183 * nat/windows-nat.h: New file.
9184
9185 2020-04-08 Tom Tromey <tromey@adacore.com>
9186
9187 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
9188 (thread_rec, windows_add_thread, windows_delete_thread)
9189 (windows_continue): Update.
9190
9191 2020-04-08 Tom Tromey <tromey@adacore.com>
9192
9193 * windows-nat.c (struct windows_thread_info): Remove typedef.
9194 (thread_head): Remove.
9195 (thread_list): New global.
9196 (thread_rec, windows_add_thread, windows_init_thread_list)
9197 (windows_delete_thread, windows_continue): Update.
9198
9199 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
9200
9201 * windows-tdep.h (windows_init_abi): Add comment.
9202 (cygwin_init_abi): New declaration.
9203 * windows-tdep.c: Split signal enumeration in two, one for
9204 Windows and one for Cygwin.
9205 (windows_gdb_signal_to_target): Only deal with signal of the
9206 Windows OS ABI.
9207 (cygwin_gdb_signal_to_target): New function.
9208 (windows_init_abi): Rename to windows_init_abi_common, don't set
9209 gdb_signal_to_target gdbarch method. Add new new function with
9210 this name.
9211 (cygwin_init_abi): New function.
9212 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
9213 comment. Don't call windows_init_abi.
9214 (amd64_windows_init_abi): Add comment, call windows_init_abi.
9215 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
9216 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
9217 i386_windows_init_abi_common, don't call windows_init_abi. Add
9218 a new function of this name.
9219 (i386_cygwin_init_abi): New function.
9220 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
9221 OS ABI Cygwin.
9222
9223 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
9224
9225 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
9226 parameter.c.
9227 (dwarf2_read_gdb_index): Update.
9228
9229 2020-04-07 Kamil Rytarowski <n54@gmx.com>
9230
9231 * nbsd-tdep.c: Include "objfiles.h".
9232 (nbsd_skip_solib_resolver): New.
9233 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
9234
9235 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
9236
9237 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
9238 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
9239 with DW_LLE_base_addressx are being emitted in DWARFv5.
9240 Add the newly added kind DW_LOC_OFFSET_PAIR also.
9241 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
9242 unsigned integer.
9243
9244 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
9245
9246 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
9247 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
9248 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
9249 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
9250 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
9251 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
9252 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
9253
9254
9255 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
9256
9257 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
9258 (read_loclist_index): New function definition.
9259 (lookup_loclist_base): New function definition.
9260 (read_loclist_header): New function definition.
9261 (dwarf2_cu): Add loclist_base and loclist_header field.
9262 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
9263 (read_full_die_1): Read the value of DW_AT_loclists_base.
9264 (read_attribute_reprocess): Handle DW_FORM_loclistx.
9265 (read_attribute_value): Handle DW_FORM_loclistx.
9266 (skip_one_die): Handle DW_FORM_loclistx.
9267 (loclist_header): New structure declaration.
9268 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
9269
9270 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9271
9272 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
9273 constructor. Remove `addr` parameter from other constructor and
9274 add `per_cu` parameter.
9275 * dwarf2/read.c (create_partial_symtab): Update.
9276
9277 2020-04-07 Tom de Vries <tdevries@suse.de>
9278
9279 PR symtab/25796
9280 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
9281 (partial_die_info::fixup): Inherit has_const_value.
9282
9283 2020-04-07 Tom de Vries <tdevries@suse.de>
9284
9285 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
9286 symbols without address.
9287
9288 2020-04-06 Kamil Rytarowski <n54@gmx.com>
9289
9290 * nbsd-nat.h (struct thread_info): Add forward declaration.
9291 (nbsd_nat_target::thread_alive): Add.
9292 (nbsd_nat_target::thread_name): Likewise.
9293 (nbsd_nat_target::update_thread_list): Likewise.
9294 (update_thread_list::post_attach): Likewise.
9295 (post_attach::pid_to_str): Likewise.
9296 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
9297 (nbsd_thread_lister): Add.
9298 (nbsd_nat_target::thread_alive): Likewise.
9299 (nbsd_nat_target::thread_name): Likewise.
9300 (nbsd_add_threads): Likewise.
9301 (update_thread_list::post_attach): Likewise.
9302 (nbsd_nat_target::update_thread_list): Likewise.
9303 (post_attach::pid_to_str): Likewise.
9304
9305 2020-04-06 Tom Tromey <tromey@adacore.com>
9306
9307 * ada-valprint.c (print_variant_part): Extract the variant field.
9308 (print_field_values): Use the field as the outer value when
9309 recursing.
9310
9311 2020-04-06 Tom Tromey <tromey@adacore.com>
9312
9313 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
9314 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
9315 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
9316 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
9317 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
9318
9319 2020-04-06 Tom Tromey <tromey@adacore.com>
9320
9321 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
9322 TYPE_CODE_ERROR.
9323
9324 2020-04-06 Kamil Rytarowski <n54@gmx.com>
9325
9326 * nbsd-tdep.c: Include "gdbarch.h".
9327 Define enum with NetBSD signal numbers.
9328 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
9329 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
9330 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
9331 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
9332 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
9333 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
9334 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
9335 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
9336 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
9337 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
9338 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
9339 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
9340
9341 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
9342
9343 PR gdb/25325
9344 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
9345
9346 2020-04-03 Tom Tromey <tromey@adacore.com>
9347
9348 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
9349 Read constant block.
9350
9351 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
9352
9353 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
9354 (gdb_bfd_get_full_section_contents): New declaration.
9355 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
9356 * windows-tdep.c (is_linked_with_cygwin_dll): Use
9357 gdb_bfd_get_full_section_contents.
9358
9359 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
9360
9361 * exec.c (build_section_table): Replace internal_error with
9362 gdb_assert.
9363 (section_table_xfer_memory_partial): Likewise.
9364 * mdebugread.c (parse_partial_symbols): Likewise.
9365 * psymtab.c (lookup_partial_symbol): Likewise.
9366 * utils.c (wrap_here): Likewise.
9367
9368 2020-04-02 Tom Tromey <tromey@adacore.com>
9369
9370 * f-lang.c (build_fortran_types): Use arch_type to initialize
9371 builtin_complex_s32 in the TYPE_CODE_ERROR case.
9372
9373 2020-04-02 Tom Tromey <tromey@adacore.com>
9374
9375 * dwarf2/read.c (partial_die_info::read): Do not create a vector
9376 of attributes.
9377
9378 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
9379 Bernd Edlinger <bernd.edlinger@hotmail.de>
9380 Tom Tromey <tromey@adacore.com>
9381
9382 * buildsym.c (buildsym_compunit::record_line): Remove
9383 deduplication code.
9384
9385 2020-04-02 Tom de Vries <tdevries@suse.de>
9386
9387 PR ada/24671
9388 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
9389
9390 2020-04-02 Tom de Vries <tdevries@suse.de>
9391
9392 * dwarf2/read.c (dwarf2_gdb_index_functions,
9393 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
9394 NULL.
9395 * psymtab.c (psym_lookup_global_symbol_language): New function.
9396 (psym_functions): Init psym_lookup_global_symbol_language with
9397 psym_lookup_global_symbol_language.
9398 * symfile-debug.c (debug_sym_quick_functions): Init
9399 lookup_global_symbol_language with NULL.
9400 * symfile.c (set_initial_language): Remove fixme comment.
9401 * symfile.h (struct quick_symbol_functions): Add
9402 lookup_global_symbol_language.
9403 * symtab.c (find_quick_global_symbol_language): New function.
9404 (find_main_name): Use find_quick_global_symbol_language.
9405
9406 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
9407
9408 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
9409
9410 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
9411
9412 * buildsym.c (record_line): Fix undefined behavior and preserve
9413 lines at eof.
9414
9415 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
9416
9417 * buildsym.c (record_line): Fix the resizing condition.
9418
9419 2020-04-01 Tom Tromey <tom@tromey.com>
9420
9421 * value.h (value_literal_complex): Add comment.
9422 * valops.c (value_literal_complex): Refer to value.h.
9423
9424 2020-04-01 Tom Tromey <tom@tromey.com>
9425
9426 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
9427 (scalar_type): New rule, from typebase.
9428 (typebase): Use scalar_type. Recognize complex types.
9429 (field_name): Handle FLOAT_KEYWORD.
9430 (ident_tokens): Add _Complex and __complex__.
9431
9432 2020-04-01 Tom Tromey <tom@tromey.com>
9433
9434 PR exp/25299:
9435 * valarith.c (promotion_type, complex_binop): New functions.
9436 (scalar_binop): Handle complex numbers. Use promotion_type.
9437 (value_pos, value_neg, value_complement): Handle complex numbers.
9438
9439 2020-04-01 Tom Tromey <tom@tromey.com>
9440
9441 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
9442 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
9443 (parse_number): Handle complex numbers.
9444
9445 2020-04-01 Tom Tromey <tom@tromey.com>
9446
9447 * c-valprint.c (c_decorations): Change complex suffix to "i".
9448
9449 2020-04-01 Tom Tromey <tom@tromey.com>
9450
9451 * valprint.c (generic_value_print_complex): Use accessors.
9452 * value.h (value_real_part, value_imaginary_part): Declare.
9453 * valops.c (value_real_part, value_imaginary_part): New
9454 functions.
9455 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
9456
9457 2020-04-01 Tom Tromey <tom@tromey.com>
9458
9459 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
9460 (read_range_type): Update.
9461 * mdebugread.c (basic_type): Update.
9462 * go-lang.c (build_go_types): Use init_complex_type.
9463 * gdbtypes.h (struct main_type) <complex_type>: New member.
9464 (init_complex_type): Update.
9465 (arch_complex_type): Don't declare.
9466 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
9467 Make name if none given. Use alloc_type_copy. Look for cached
9468 complex type.
9469 (arch_complex_type): Remove.
9470 (gdbtypes_post_init): Use init_complex_type.
9471 * f-lang.c (build_fortran_types): Use init_complex_type.
9472 * dwarf2/read.c (read_base_type): Update.
9473 * d-lang.c (build_d_types): Use init_complex_type.
9474 * ctfread.c (read_base_type): Update.
9475
9476 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9477
9478 * infrun.c (stop_all_threads): Update assertion, plus when
9479 stopping threads, take into account that we might be trying
9480 to stop an all-stop target.
9481 (stop_waiting): Call 'stop_all_threads' if there exists a
9482 non-stop target.
9483
9484 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9485
9486 * target.h (exists_non_stop_target): New function declaration.
9487 * target.c (exists_non_stop_target): New function.
9488
9489 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
9490
9491 PR gdb/24789
9492 * eval.c (is_integral_or_integral_reference): New function.
9493 (evaluate_subexp_standard): Allow integer references in
9494 pointer arithmetic.
9495
9496 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9497
9498 * remote.c (remote_target::remote_parse_stop_reply): Remove the
9499 check for no ptid in the stop reply when the target is non-stop.
9500
9501 2020-04-01 Tom Tromey <tromey@adacore.com>
9502
9503 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
9504 "name" parameter to rvalue reference. Initialize m_name_holder.
9505 <lookup_name_info>: New overloads.
9506 <name>: Return gdb::string_view.
9507 <c_str>: New method.
9508 <make_ignore_params>: Update.
9509 <search_name_hash>: Update.
9510 <language_lookup_name>: Return const char *.
9511 <m_name>: Change type.
9512 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
9513 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
9514 (lookup_name_info::match_any): Update.
9515 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
9516 Update.
9517 * minsyms.c (linkage_name_str): Update.
9518 * language.c (default_symbol_name_matcher): Update.
9519 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
9520 Update.
9521 * ada-lang.c (ada_fold_name): Change parameter to string_view.
9522 (ada_lookup_name_info::ada_lookup_name_info): Update.
9523 (literal_symbol_name_matcher): Update.
9524
9525 2020-04-01 Tom Tromey <tromey@adacore.com>
9526
9527 * psymtab.c (psymtab_search_name): Remove function.
9528 (psym_lookup_symbol): Create search name and lookup name here.
9529 (lookup_partial_symbol): Remove "name" parameter; add
9530 lookup_name.
9531 (psym_expand_symtabs_for_function): Update.
9532
9533 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
9534
9535 PR tui/25597:
9536 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
9537
9538 2020-03-31 Tom Tromey <tromey@adacore.com>
9539
9540 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
9541 memcpy.
9542
9543 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
9544
9545 * features/riscv/32bit-csr.xml: Regenerated.
9546 * features/riscv/64bit-csr.xml: Regenerated.
9547
9548 2020-03-30 Tom Tromey <tromey@adacore.com>
9549
9550 * ada-valprint.c (print_variant_part): Update.
9551 * ada-lang.h (ada_which_variant_applies): Update.
9552 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
9553 outer_valaddr parameters; replace with "outer" value parameter.
9554 (to_fixed_variant_branch_type): Update.
9555
9556 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9557
9558 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
9559 <list>. Remove inclusion of observable.h.
9560 (PPC_DEBUG_CURRENT_VERSION): Move up define.
9561 (struct arch_lwp_info): New struct.
9562 (class ppc_linux_dreg_interface): New class.
9563 (struct ppc_linux_process_info): New struct.
9564 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
9565 <low_new_clone, low_forget_process, low_prepare_to_resume>
9566 <copy_thread_dreg_state, mark_thread_stale>
9567 <mark_debug_registers_changed, register_hw_breakpoint>
9568 <clear_hw_breakpoint, register_wp, clear_wp>
9569 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
9570 <num_memory_accesses, get_trigger_type>
9571 <create_watchpoint_request, hwdebug_point_cmp>
9572 <init_arch_lwp_info, get_arch_lwp_info>
9573 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
9574 methods.
9575 <struct ptid_hash>: New inner struct.
9576 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
9577 members.
9578 (saved_dabr_value, hwdebug_info, max_slots_number)
9579 (struct hw_break_tuple, struct thread_points, ppc_threads)
9580 (have_ptrace_hwdebug_interface)
9581 (hwdebug_find_thread_points_by_tid)
9582 (hwdebug_insert_point, hwdebug_remove_point): Remove.
9583 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
9584 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
9585 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
9586 use m_dreg_interface.
9587 (hwdebug_point_cmp): Change to...
9588 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
9589 reference arguments instead of pointers.
9590 (ppc_linux_nat_target::ranged_break_num_registers): Use
9591 m_dreg_interface.
9592 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
9593 m_dreg_interface. Call register_hw_breakpoint.
9594 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
9595 m_dreg_interface. Call clear_hw_breakpoint.
9596 (get_trigger_type): Change to...
9597 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
9598 comment.
9599 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
9600 use m_dreg_interface. Call register_hw_breakpoint.
9601 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
9602 use m_dreg_interface. Call clear_hw_breakpoint.
9603 (can_use_watchpoint_cond_accel): Change to...
9604 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
9605 method. Update comment, use m_dreg_interface and
9606 m_process_info.
9607 (calculate_dvc): Change to...
9608 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
9609 m_dreg_interface.
9610 (num_memory_accesses): Change to...
9611 (ppc_linux_nat_target::num_memory_accesses): ...this method.
9612 (check_condition): Change to...
9613 (ppc_linux_nat_target::check_condition): ...this method.
9614 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
9615 comment, use m_dreg_interface.
9616 (create_watchpoint_request): Change to...
9617 (ppc_linux_nat_target::create_watchpoint_request): ...this
9618 method. Use m_dreg_interface.
9619 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
9620 m_dreg_interface. Call register_hw_breakpoint or register_wp.
9621 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
9622 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
9623 (ppc_linux_nat_target::low_forget_process)
9624 (ppc_linux_nat_target::low_new_fork)
9625 (ppc_linux_nat_target::low_new_clone)
9626 (ppc_linux_nat_target::low_delete_thread)
9627 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
9628 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
9629 only call mark_thread_stale.
9630 (ppc_linux_thread_exit): Remove.
9631 (ppc_linux_nat_target::stopped_data_address): Change to...
9632 (ppc_linux_nat_target::low_stopped_data_address): This. Add
9633 comment, use m_dreg_interface and m_thread_hw_breakpoints.
9634 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
9635 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
9636 comment. Call low_stopped_data_address.
9637 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
9638 m_dreg_interface.
9639 (ppc_linux_nat_target::masked_watch_num_registers): Use
9640 m_dreg_interface.
9641 (ppc_linux_nat_target::copy_thread_dreg_state)
9642 (ppc_linux_nat_target::mark_thread_stale)
9643 (ppc_linux_nat_target::mark_debug_registers_changed)
9644 (ppc_linux_nat_target::register_hw_breakpoint)
9645 (ppc_linux_nat_target::clear_hw_breakpoint)
9646 (ppc_linux_nat_target::register_wp)
9647 (ppc_linux_nat_target::clear_wp)
9648 (ppc_linux_nat_target::init_arch_lwp_info)
9649 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
9650 (_initialize_ppc_linux_nat): Remove observer callback.
9651
9652 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9653
9654 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
9655 (ppc_linux_nat_target::auxv_parse)
9656 (ppc_linux_nat_target::read_description)
9657 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
9658 Move up.
9659
9660 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9661
9662 * linux-nat.h (low_new_clone): New method.
9663 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
9664
9665 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9666
9667 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
9668 (dbx_expand_psymtab): ... this.
9669 (start_psymtab): Update.
9670 * mdebugread.c (psymtab_to_symtab_1): Rename to...
9671 (mdebug_expand_psymtab): ... this.
9672 (parse_partial_symbols): Update.
9673 (new_psymtab): Update.
9674 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
9675 (xcoff_expand_psymtab): ... this.
9676 (xcoff_start_psymtab): Update.
9677
9678 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9679
9680 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
9681 <expand_dependencies>: ... this.
9682 * psymtab.c (partial_symtab::read_dependencies): Rename to...
9683 (partial_symtab::expand_dependencies): ... this.
9684 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
9685 Update.
9686 (dwarf2_psymtab::expand_psymtab): Update.
9687 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
9688 * mdebugread.c (psymtab_to_symtab_1): Update.
9689 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
9690
9691 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9692
9693 * psympriv.h (discard_psymtab): Remove.
9694 * dbxread.c (dbx_end_psymtab): Update.
9695 * xcoffread.c (xcoff_end_psymtab): Update.
9696
9697 2020-03-28 Tom Tromey <tom@tromey.com>
9698
9699 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
9700 comment.
9701
9702 2020-03-28 Tom Tromey <tom@tromey.com>
9703
9704 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
9705
9706 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
9707
9708 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
9709
9710 2020-03-26 John Baldwin <jhb@FreeBSD.org>
9711
9712 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
9713
9714 2020-03-26 Tom Tromey <tom@tromey.com>
9715
9716 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
9717 (mark_common_block_symbol_computed, read_tag_string_type)
9718 (attr_to_dynamic_prop, read_subrange_type): Update.
9719 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
9720 to be methods on struct attribute.
9721 (skip_one_die, process_imported_unit_die, read_namespace_alias)
9722 (read_call_site_scope, partial_die_info::read)
9723 (partial_die_info::read, lookup_die_type, follow_die_ref):
9724 Update.
9725 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
9726 from dwarf2_get_ref_die_offset.
9727 (attribute::constant_value): New method, from
9728 dwarf2_get_attr_constant_value.
9729 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
9730 Declare method.
9731 <constant_value>: New method.
9732
9733 2020-03-26 Tom Tromey <tom@tromey.com>
9734
9735 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
9736 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
9737 (dwarf_type_encoding_name): Move to stringify.c.
9738 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
9739 * dwarf2/stringify.c: New file.
9740 * dwarf2/stringify.h: New file.
9741
9742 2020-03-26 Tom Tromey <tom@tromey.com>
9743
9744 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
9745 Rewrite.
9746
9747 2020-03-26 Tom Tromey <tom@tromey.com>
9748
9749 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
9750 methods.
9751 * dwarf2/read.c (lookup_addr_base): Move to die.h.
9752 (lookup_ranges_base): Likewise.
9753 (read_cutu_die_from_dwo, read_full_die_1): Update.
9754
9755 2020-03-26 Tom Tromey <tom@tromey.com>
9756
9757 * dwarf2/read.c (read_import_statement, read_file_scope)
9758 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
9759 (read_lexical_block_scope, read_call_site_scope)
9760 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
9761 (handle_struct_member_die, process_structure_scope)
9762 (update_enumeration_type_from_children)
9763 (process_enumeration_scope, read_array_type, read_common_block)
9764 (read_namespace, read_module, read_subroutine_type): Update.
9765 (sibling_die): Remove.
9766
9767 2020-03-26 Tom Tromey <tom@tromey.com>
9768
9769 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
9770 (build_type_psymtabs_reader, read_structure_type)
9771 (read_enumeration_type, read_full_die_1): Update.
9772 (dwarf2_attr_no_follow): Move to die.h.
9773 * dwarf2/die.h (struct die_info) <attr>: New method.
9774
9775 2020-03-26 Tom Tromey <tom@tromey.com>
9776
9777 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
9778 <base_address>: Now an optional.
9779 (dwarf2_find_base_address, dwarf2_rnglists_process)
9780 (dwarf2_ranges_process, fill_in_loclist_baton)
9781 (dwarf2_symbol_mark_computed): Update.
9782
9783 2020-03-26 Tom Tromey <tom@tromey.com>
9784
9785 * dwarf2/read.c (struct die_info): Move to die.h.
9786 * dwarf2/die.h: New file.
9787
9788 2020-03-26 Tom Tromey <tom@tromey.com>
9789
9790 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
9791 * dwarf2/read.c
9792 (dwarf2_statement_list_fits_in_line_number_section_complaint):
9793 Move to line-header.c.
9794 (read_checked_initial_length_and_offset, read_formatted_entries):
9795 Likewise.
9796 (dwarf_decode_line_header): Split into two.
9797 * dwarf2/line-header.c
9798 (dwarf2_statement_list_fits_in_line_number_section_complaint):
9799 Move from read.c.
9800 (read_checked_initial_length_and_offset, read_formatted_entries):
9801 Likewise.
9802 (dwarf_decode_line_header): New function, split from read.c.
9803
9804 2020-03-26 Tom Tromey <tom@tromey.com>
9805
9806 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
9807 Declare method.
9808 * dwarf2/read.c (read_attribute_value): Update.
9809 (dwarf2_per_objfile::read_line_string): Rename from
9810 read_indirect_line_string.
9811 (read_formatted_entries): Update.
9812
9813 2020-03-26 Tom Tromey <tom@tromey.com>
9814
9815 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
9816 variable.
9817
9818 2020-03-26 Tom Tromey <tom@tromey.com>
9819
9820 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
9821 const.
9822 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
9823 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
9824 parameter const.
9825
9826 2020-03-26 Tom Tromey <tom@tromey.com>
9827
9828 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
9829 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
9830 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
9831 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
9832
9833 2020-03-26 Tom Tromey <tom@tromey.com>
9834
9835 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
9836 file_names_size, file_full_name, file_file_name>: Use const.
9837 <file_name_at, file_names>: Add const overload.
9838 * dwarf2/line-header.c (line_header::file_file_name)
9839 (line_header::file_full_name): Update.
9840
9841 2020-03-26 Tom Tromey <tom@tromey.com>
9842
9843 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
9844 (macro_start_file, consume_improper_spaces)
9845 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
9846 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
9847 (dwarf_decode_macros): Move to macro.c.
9848 * dwarf2/macro.c: New file.
9849 * dwarf2/macro.h: New file.
9850 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
9851
9852 2020-03-26 Tom Tromey <tom@tromey.com>
9853
9854 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
9855 method.
9856 * dwarf2/section.c: New method. From
9857 read_indirect_string_at_offset_from.
9858 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
9859 (read_indirect_string_at_offset_from): Move to section.c.
9860 (read_indirect_string_at_offset): Rewrite.
9861 (read_indirect_line_string_at_offset): Remove.
9862 (read_indirect_string, read_indirect_line_string)
9863 (dwarf_decode_macro_bytes): Update.
9864
9865 2020-03-26 Tom Tromey <tom@tromey.com>
9866
9867 * dwarf2/section.h (struct dwarf2_section_info)
9868 <overload_complaint>: Declare.
9869 (dwarf2_section_buffer_overflow_complaint): Don't declare.
9870 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
9871 Rename from dwarf2_section_buffer_overflow_complaint.
9872 * dwarf2/read.c (skip_one_die, partial_die_info::read)
9873 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
9874
9875 2020-03-26 Tom Tromey <tom@tromey.com>
9876
9877 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
9878 Declare.
9879 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
9880 Move from read.c.
9881 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
9882 to section.c.
9883
9884 2020-03-26 Tom Tromey <tom@tromey.com>
9885
9886 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
9887
9888 2020-03-26 Tom Tromey <tom@tromey.com>
9889
9890 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
9891 "builder".
9892 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
9893 parameter.
9894 (dwarf_decode_macros): Update.
9895
9896 2020-03-26 Tom Tromey <tom@tromey.com>
9897
9898 * dwarf2/read.c (read_attribute_value): Update.
9899 (read_indirect_string_from_dwz): Move to dwz.c; change into
9900 method.
9901 (dwarf_decode_macro_bytes): Update.
9902 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
9903 * dwarf2/dwz.c: New file.
9904 * Makefile.in (COMMON_SFILES): Add dwz.c.
9905
9906 2020-03-26 Tom Tromey <tom@tromey.com>
9907
9908 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
9909 * dwarf2/read.c: Add include.
9910 * dwarf2/index-write.c: Add include.
9911 * dwarf2/index-cache.c: Add include.
9912 * dwarf2/dwz.h: New file.
9913
9914 2020-03-25 Tom Tromey <tom@tromey.com>
9915
9916 * compile/compile-object-load.c (get_out_value_type): Mention
9917 correct symbol name in error message.
9918
9919 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
9920
9921 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
9922
9923 2020-03-25 Tom de Vries <tdevries@suse.de>
9924
9925 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
9926 * symmisc.c (dump_symtab_1): Print user and includes fields.
9927 (maintenance_info_symtabs): Same.
9928
9929 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
9930
9931 PR gdb/25534
9932 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
9933 (riscv_regcache_cooked_write): New function.
9934 (riscv_push_dummy_call): Use new function.
9935 (riscv_return_value): Likewise.
9936
9937 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
9938
9939 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
9940 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
9941 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
9942 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
9943 * infrun.c (follow_fork): Likewise.
9944 (follow_fork_inferior): Likewise.
9945 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
9946 * linux-nat.h (class linux_nat_target): Likewise.
9947 * remote.c (class remote_target) <follow_fork>: Likewise.
9948 (remote_target::follow_fork): Likewise.
9949 * target-delegates.c: Re-generate.
9950 * target.c (default_follow_fork): Likewise.
9951 (target_follow_fork): Likewise.
9952 * target.h (struct target_ops) <follow_fork>: Likewise.
9953 (target_follow_fork): Likewise.
9954
9955 2020-03-24 Tom de Vries <tdevries@suse.de>
9956
9957 * psymtab.c (maintenance_info_psymtabs): Print user field.
9958
9959 2020-03-20 Tom Tromey <tromey@adacore.com>
9960
9961 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
9962 const.
9963 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
9964 const.
9965
9966 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
9967
9968 * ptrace.m4: Don't check for ptrace declaration.
9969 * config.in: Re-generate.
9970 * configure: Re-generate.
9971 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
9972 not defined.
9973
9974 2020-03-20 Kamil Rytarowski <n54@gmx.com>
9975
9976 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
9977 `PTRACE_TYPE_RET'.
9978 * i386-bsd-nat.c (gdb_ptrace): Likewise.
9979 * sparc-nat.c (gdb_ptrace): Likewise.
9980 * x86-bsd-nat.c (gdb_ptrace): Likewise.
9981
9982 2020-03-20 Tom Tromey <tromey@adacore.com>
9983
9984 * c-exp.y (lex_one_token): Fix assert.
9985
9986 2020-03-20 Tom Tromey <tromey@adacore.com>
9987
9988 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
9989 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
9990 strncpy call.
9991
9992 2020-03-20 Tom Tromey <tromey@adacore.com>
9993
9994 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
9995
9996 2020-03-20 Tom Tromey <tromey@adacore.com>
9997
9998 * ada-valprint.c (print_variant_part): Remove parameters; switch
9999 to value-based API.
10000 (print_field_values): Likewise.
10001 (ada_val_print_struct_union): Likewise.
10002 (ada_value_print_1): Update.
10003
10004 2020-03-20 Kamil Rytarowski <n54@gmx.com>
10005
10006 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
10007 nbsd_nat_target instead of inf_ptrace_target.
10008 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
10009 nbsd_nat_target.
10010
10011 2020-03-20 Kamil Rytarowski <n54@gmx.com>
10012
10013 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
10014 it to the ptrace call.
10015 * (store_registers): Likewise.
10016
10017 2020-03-20 Kamil Rytarowski <n54@gmx.com>
10018
10019 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
10020 it to the ptrace call.
10021 * (store_registers): Likewise.
10022
10023 2020-03-19 Luis Machado <luis.machado@linaro.org>
10024
10025 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
10026 valid, fetch vg value from ptrace.
10027
10028 2020-03-19 Kamil Rytarowski <n54@gmx.com>
10029 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
10030 * inf-ptrace.c: Likewise.
10031 * (gdb_ptrace): Add.
10032 * (inf_ptrace_target::resume): Update.
10033 * (inf_ptrace_target::xfer_partial): Likewise.
10034 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
10035 * (inf_ptrace_peek_poke): Update.
10036
10037 2020-03-19 Kamil Rytarowski <n54@gmx.com>
10038
10039 * x86-bsd-nat.c (gdb_ptrace): New.
10040 * (x86bsd_dr_set): Add new argument `ptid'.
10041 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
10042 x86bsd_dr_set_addr): Update.
10043
10044 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
10045
10046 * remote.c (remote_target::process_stop_reply): Handle events for
10047 all threads differently.
10048
10049 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
10050
10051 * completer.c (completion_tracker::remove_completion): Define new
10052 function.
10053 * completer.h (completion_tracker::remove_completion): Declare new
10054 function.
10055 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
10056 when adding a C++ function symbol.
10057
10058 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
10059
10060 * completer.c (completion_tracker::completion_hash_entry): Define
10061 new class.
10062 (advance_to_filename_complete_word_point): Call
10063 recompute_lowest_common_denominator.
10064 (completion_tracker::completion_tracker): Call discard_completions
10065 to setup the hash table.
10066 (completion_tracker::discard_completions): Allow for being called
10067 from the constructor, pass new equal function, and element deleter
10068 when constructing the hash table. Initialise new class member
10069 variables.
10070 (completion_tracker::maybe_add_completion): Remove use of
10071 m_entries_vec, and store more information into m_entries_hash.
10072 (completion_tracker::recompute_lcd_visitor): New function, most
10073 content taken from...
10074 (completion_tracker::recompute_lowest_common_denominator):
10075 ...here, this now just visits each item in the hash calling the
10076 above visitor.
10077 (completion_tracker::build_completion_result): Remove use of
10078 m_entries_vec, call recompute_lowest_common_denominator.
10079 * completer.h (completion_tracker::have_completions): Remove use
10080 of m_entries_vec.
10081 (completion_tracker::completion_hash_entry): Declare new class.
10082 (completion_tracker::recompute_lowest_common_denominator): Change
10083 function signature.
10084 (completion_tracker::recompute_lcd_visitor): Declare new function.
10085 (completion_tracker::m_entries_vec): Delete.
10086 (completion_tracker::m_entries_hash): Initialize to NULL.
10087 (completion_tracker::m_lowest_common_denominator_valid): New
10088 member variable.
10089 (completion_tracker::m_lowest_common_denominator_max_length): New
10090 member variable.
10091
10092 2020-03-17 Kamil Rytarowski <n54@gmx.com>
10093
10094 * regformats/regdef.h: Put reg in gdb namespace.
10095
10096 2020-03-17 Kamil Rytarowski <n54@gmx.com>
10097
10098 * i386-bsd-nat.c (gdb_ptrace): New.
10099 * (i386bsd_fetch_inferior_registers,
10100 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
10101 * (i386bsd_fetch_inferior_registers,
10102 i386bsd_store_inferior_registers) Use gdb_ptrace.
10103
10104 2020-03-17 Kamil Rytarowski <n54@gmx.com>
10105
10106 * amd64-bsd-nat.c (gdb_ptrace): New.
10107 * (amd64bsd_fetch_inferior_registers,
10108 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
10109 * (amd64bsd_fetch_inferior_registers,
10110 amd64bsd_store_inferior_registers) Use gdb_ptrace.
10111
10112 2020-03-17 Kamil Rytarowski <n54@gmx.com>
10113
10114 * user-regs.c (user_reg::read): Rename to...
10115 (user_reg::xread): ...this.
10116 * (append_user_reg): Rename argument `read' to `xread'.
10117 * (user_reg_add_builtin): Likewise.
10118 * (user_reg_add): Likewise.
10119 * (value_of_user_reg): Likewise.
10120
10121 2020-03-17 Kamil Rytarowski <n54@gmx.com>
10122
10123 * sparc-nat.c (gdb_ptrace): New.
10124 * sparc-nat.c (sparc_fetch_inferior_registers)
10125 (sparc_store_inferior_registers) Remove obsolete comment.
10126 * sparc-nat.c (sparc_fetch_inferior_registers)
10127 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
10128 * sparc-nat.c (sparc_fetch_inferior_registers)
10129 (sparc_store_inferior_registers) Use gdb_ptrace.
10130
10131 2020-03-17 Kamil Rytarowski <n54@gmx.com>
10132
10133 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
10134 it to the ptrace call.
10135 * sh-nbsd-nat.c (store_registers): Likewise.
10136
10137 2020-03-17 Kamil Rytarowski <n54@gmx.com>
10138
10139 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
10140 nbsd_nat_target instead of inf_ptrace_target.
10141 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
10142 nbsd_nat_target.
10143
10144 2020-03-17 Kamil Rytarowski <n54@gmx.com>
10145
10146 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
10147
10148 2020-03-17 Kamil Rytarowski <n54@gmx.com>
10149
10150 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
10151 <sys/sysctl.h>.
10152 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
10153
10154 2020-03-17 Tom de Vries <tdevries@suse.de>
10155
10156 PR gdb/23710
10157 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
10158 fields.
10159 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
10160 fields.
10161 (process_imported_unit_die): Skip import of c++ CUs.
10162
10163 2020-03-16 Tom Tromey <tom@tromey.com>
10164
10165 * p-valprint.c (pascal_object_print_value): Initialize
10166 base_value.
10167
10168 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
10169 Shahab Vahedi <shahab@synopsys.com>
10170
10171 * Makefile.in: Add arch/arc.o
10172 * configure.tgt: Likewise.
10173 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
10174 (_initialize_arc_tdep): Don't initialize old target descriptions.
10175 (arc_read_description): New function to cache target descriptions.
10176 * arc-tdep.h (arc_read_description): Add proto type.
10177 * arch/arc.c: New file.
10178 * arch/arc.h: Likewise.
10179 * features/Makefile: Replace old target descriptions with new.
10180 * features/arc-arcompact.c: Remove.
10181 * features/arc-arcompact.xml: Likewise.
10182 * features/arc-v2.c: Likewise
10183 * features/arc-v2.xml: Likewise
10184 * features/arc/aux-arcompact.xml: New file.
10185 * features/arc/aux-v2.xml: Likewise.
10186 * features/arc/core-arcompact.xml: Likewise.
10187 * features/arc/core-v2.xml: Likewise.
10188 * features/arc/aux-arcompact.c: Generate.
10189 * features/arc/aux-v2.c: Likewise.
10190 * features/arc/core-arcompact.c: Likewise.
10191 * features/arc/core-v2.c: Likewise.
10192 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
10193
10194 2020-03-16 Tom Tromey <tromey@adacore.com>
10195
10196 PR gdb/25663:
10197 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
10198 putting value into bcache.
10199
10200 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
10201
10202 PR gdb/21500
10203 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
10204 to...
10205 (amd64_windows_init_abi_common): ... this. Don't set size of
10206 long type.
10207 (amd64_windows_init_abi): New function.
10208 (amd64_cygwin_init_abi): New function.
10209 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
10210 the Cygwin OS ABI.
10211 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
10212 comment.
10213
10214 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
10215
10216 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
10217 * windows-tdep.c (CYGWIN_DLL_NAME): New.
10218 (pe_import_directory_entry): New struct type.
10219 (is_linked_with_cygwin_dll): New function.
10220 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
10221 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
10222 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
10223
10224 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
10225
10226 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
10227 i386_cygwin_core_osabi_sniffer.
10228
10229 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
10230
10231 * i386-cygwin-tdep.c: Rename to...
10232 * i386-windows-tdep.c: ... this.
10233 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
10234 i386-windows-tdep.c.
10235 * configure.tgt: Likewise.
10236
10237 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
10238
10239 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
10240 * osabi.c (gdb_osabi_names): Add "Windows".
10241 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
10242 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
10243 (i386_cygwin_core_osabi_sniffer): New function, extracted from
10244 i386_cygwin_osabi_sniffer.
10245 (_initialize_i386_cygwin_tdep): Register OS ABI
10246 GDB_OSABI_WINDOWS for i386.
10247 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
10248 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
10249 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
10250 for x86-64.
10251 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
10252 when the target matches '*-*-mingw*'.
10253
10254 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
10255
10256 * defs.h (enum gdb_osabi): Move to...
10257 * osabi.h (enum gdb_osabi): ... here.
10258 * gdbarch.sh: Include osabi.h in gdbarch.h.
10259 * gdbarch.h: Re-generate.
10260
10261 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
10262
10263 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
10264 function.
10265 (_initialize_amd64_windows_tdep): Register osabi sniffer.
10266
10267 2020-03-14 Tom Tromey <tom@tromey.com>
10268
10269 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
10270 for C++.
10271 (c_type_print_modifier): Likewise. Add "language" parameter.
10272 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
10273 (c_type_print_base_1): Update.
10274 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
10275 constants.
10276 * type-stack.c (type_stack::insert): Handle tp_atomic and
10277 tp_restrict.
10278 (type_stack::follow_type_instance_flags): Likewise.
10279 (type_stack::follow_types): Likewise. Merge type-following code.
10280 * c-exp.y (RESTRICT, ATOMIC): New tokens.
10281 (space_identifier, cv_with_space_id)
10282 (const_or_volatile_or_space_identifier_noopt)
10283 (const_or_volatile_or_space_identifier): Remove.
10284 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
10285 rules.
10286 (ptr_operator, typebase): Update.
10287 (enum token_flag) <FLAG_C>: New constant.
10288 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
10289 "_Atomic".
10290 (lex_one_token): Handle FLAG_C.
10291
10292 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10293
10294 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
10295 it to the ptrace call.
10296 * m68k-bsd-nat.c (store_registers): Likewise.
10297
10298 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10299
10300 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
10301 gdb_byte *.
10302 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
10303 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
10304 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
10305
10306 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10307
10308 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
10309 nbsd_nat_target instead of inf_ptrace_target.
10310 * m68k-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 * m68k-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 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
10321 it to the ptrace call.
10322 * alpha-bsd-nat.c (store_registers): Likewise.
10323
10324 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10325
10326 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
10327 includes.
10328 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
10329 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
10330 fill_fpregset): Likewise.
10331
10332 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10333
10334 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
10335 nbsd_nat_target instead of inf_ptrace_target.
10336 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
10337 nbsd_nat_target.
10338
10339 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10340
10341 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
10342 register_t.
10343
10344 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10345
10346 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
10347 it to the ptrace call.
10348 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
10349 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
10350 * arm-nbsd-nat.c (store_register): Likewise.
10351 * arm-nbsd-nat.c (store_regs): Likewise.
10352 * arm-nbsd-nat.c (store_fp_register): Likewise.
10353 * arm-nbsd-nat.c (store_fp_regs): Likewise.
10354
10355 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10356
10357 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
10358 nbsd_nat_target instead of inf_ptrace_target.
10359 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
10360 nbsd_nat_target.
10361
10362 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10363
10364 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
10365 it to the ptrace call.
10366 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
10367
10368 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10369
10370 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
10371 it to the ptrace call.
10372 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
10373
10374 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10375
10376 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
10377 gdb_byte *.
10378 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
10379
10380 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10381
10382 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
10383 instead of inf_ptrace_target.
10384 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
10385 nbsd_nat_target.
10386
10387 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10388
10389 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10390 register_t.
10391
10392 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10393
10394 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10395 register_t.
10396
10397 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10398
10399 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
10400 register_t.
10401
10402 2020-03-13 Tom Tromey <tom@tromey.com>
10403
10404 * value.h (val_print): Don't declare.
10405 * valprint.h (val_print_array_elements)
10406 (val_print_scalar_formatted, generic_val_print): Don't declare.
10407 * valprint.c (generic_val_print_array): Take a struct value.
10408 (generic_val_print_ptr, generic_val_print_memberptr)
10409 (generic_val_print_bool, generic_val_print_int)
10410 (generic_val_print_char, generic_val_print_complex)
10411 (generic_val_print): Remove.
10412 (generic_value_print): Update.
10413 (do_val_print): Remove unused parameters. Don't call
10414 la_val_print.
10415 (val_print): Remove.
10416 (common_val_print): Update. Don't call value_check_printable.
10417 (val_print_scalar_formatted, val_print_array_elements): Remove.
10418 * rust-lang.c (rust_val_print): Remove.
10419 (rust_language_defn): Update.
10420 * p-valprint.c (pascal_val_print): Remove.
10421 (pascal_value_print_inner): Update.
10422 (pascal_object_print_val_fields, pascal_object_print_val):
10423 Remove.
10424 (pascal_object_print_static_field): Update.
10425 * p-lang.h (pascal_val_print): Don't declare.
10426 * p-lang.c (pascal_language_defn): Update.
10427 * opencl-lang.c (opencl_language_defn): Update.
10428 * objc-lang.c (objc_language_defn): Update.
10429 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
10430 * m2-lang.h (m2_val_print): Don't declare.
10431 * m2-lang.c (m2_language_defn): Update.
10432 * language.h (struct language_defn) <la_val_print>: Remove.
10433 * language.c (unk_lang_value_print_inner): Rename. Change
10434 argument types.
10435 (unknown_language_defn, auto_language_defn): Update.
10436 * go-valprint.c (go_val_print): Remove.
10437 * go-lang.h (go_val_print): Don't declare.
10438 * go-lang.c (go_language_defn): Update.
10439 * f-valprint.c (f_val_print): Remove.
10440 * f-lang.h (f_value_print): Don't declare.
10441 * f-lang.c (f_language_defn): Update.
10442 * d-valprint.c (d_val_print): Remove.
10443 * d-lang.h (d_value_print): Don't declare.
10444 * d-lang.c (d_language_defn): Update.
10445 * cp-valprint.c (cp_print_value_fields)
10446 (cp_print_value_fields_rtti, cp_print_value): Remove.
10447 (cp_print_static_field): Update.
10448 * c-valprint.c (c_val_print_array, c_val_print_ptr)
10449 (c_val_print_struct, c_val_print_union, c_val_print_int)
10450 (c_val_print_memberptr, c_val_print): Remove.
10451 * c-lang.h (c_val_print_array, cp_print_value_fields)
10452 (cp_print_value_fields_rtti): Don't declare.
10453 * c-lang.c (c_language_defn, cplus_language_defn)
10454 (asm_language_defn, minimal_language_defn): Update.
10455 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
10456 (ada_val_print_enum): Take a struct value.
10457 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
10458 (ada_val_print): Remove.
10459 (ada_value_print_1): Update.
10460 (printable_val_type): Remove.
10461 * ada-lang.h (ada_val_print): Don't declare.
10462 * ada-lang.c (ada_language_defn): Update.
10463
10464 2020-03-13 Tom Tromey <tom@tromey.com>
10465
10466 * valprint.c (do_val_print): Update.
10467 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
10468 a struct value.
10469 (value_to_value_object_no_release): Declare.
10470 * python/py-value.c (value_to_value_object_no_release): New
10471 function.
10472 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
10473 struct value.
10474 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
10475 function.
10476 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
10477 a struct value.
10478 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
10479 Declare.
10480 (gdbscm_apply_val_pretty_printer): Take a struct value.
10481 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
10482 value.
10483 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
10484 value.
10485 * extension-priv.h (struct extension_language_ops)
10486 <apply_val_pretty_printer>: Take a struct value.
10487 * cp-valprint.c (cp_print_value): Create a struct value.
10488 (cp_print_value): Update.
10489
10490 2020-03-13 Tom Tromey <tom@tromey.com>
10491
10492 * ada-valprint.c (print_field_values): Call common_val_print.
10493
10494 2020-03-13 Tom Tromey <tom@tromey.com>
10495
10496 * ada-valprint.c (val_print_packed_array_elements): Remove
10497 bitoffset and val parameters. Call common_val_print.
10498 (ada_val_print_string): Remove offset, address, and original_value
10499 parameters.
10500 (ada_val_print_array): Update.
10501 (ada_value_print_array): New function.
10502 (ada_value_print_1): Call it.
10503
10504 2020-03-13 Tom Tromey <tom@tromey.com>
10505
10506 * ada-valprint.c (ada_value_print): Use common_val_print.
10507
10508 2020-03-13 Tom Tromey <tom@tromey.com>
10509
10510 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
10511
10512 2020-03-13 Tom Tromey <tom@tromey.com>
10513
10514 * ada-valprint.c (ada_value_print_num): New function.
10515 (ada_value_print_1): Use it.
10516
10517 2020-03-13 Tom Tromey <tom@tromey.com>
10518
10519 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
10520
10521 2020-03-13 Tom Tromey <tom@tromey.com>
10522
10523 * ada-valprint.c (ada_value_print_ptr): New function.
10524 (ada_value_print_1): Use it.
10525
10526 2020-03-13 Tom Tromey <tom@tromey.com>
10527
10528 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
10529 call common_val_print.
10530 (ada_val_print_1): Update.
10531 (ada_value_print_1): New function.
10532 (ada_value_print_inner): Rewrite.
10533
10534 2020-03-13 Tom Tromey <tom@tromey.com>
10535
10536 * cp-valprint.c (cp_print_value_fields): Update.
10537 (cp_print_value): New function.
10538
10539 2020-03-13 Tom Tromey <tom@tromey.com>
10540
10541 * m2-valprint.c (m2_value_print_inner): Use
10542 cp_print_value_fields.
10543 * cp-valprint.c (cp_print_value_fields): New function.
10544 * c-valprint.c (c_value_print_struct): New function.
10545 (c_value_print_inner): Use c_value_print_struct.
10546 * c-lang.h (cp_print_value_fields): Declare.
10547
10548 2020-03-13 Tom Tromey <tom@tromey.com>
10549
10550 * c-valprint.c (c_value_print_array): New function.
10551 (c_value_print_inner): Use it.
10552
10553 2020-03-13 Tom Tromey <tom@tromey.com>
10554
10555 * c-valprint.c (c_value_print_memberptr): New function.
10556 (c_value_print_inner): Use it.
10557
10558 2020-03-13 Tom Tromey <tom@tromey.com>
10559
10560 * c-valprint.c (c_value_print_int): New function.
10561 (c_value_print_inner): Use it.
10562
10563 2020-03-13 Tom Tromey <tom@tromey.com>
10564
10565 * c-valprint.c (c_value_print_ptr): New function.
10566 (c_value_print_inner): Use it.
10567
10568 2020-03-13 Tom Tromey <tom@tromey.com>
10569
10570 * c-valprint.c (c_value_print_inner): Rewrite.
10571
10572 2020-03-13 Tom Tromey <tom@tromey.com>
10573
10574 * valprint.c (generic_value_print_complex): New function.
10575 (generic_value_print): Use it.
10576
10577 2020-03-13 Tom Tromey <tom@tromey.com>
10578
10579 * valprint.c (generic_val_print_float): Don't call
10580 val_print_scalar_formatted.
10581 (generic_val_print, generic_value_print): Update.
10582
10583 2020-03-13 Tom Tromey <tom@tromey.com>
10584
10585 * valprint.c (generic_value_print_char): New function
10586 (generic_value_print): Use it.
10587
10588 2020-03-13 Tom Tromey <tom@tromey.com>
10589
10590 * valprint.c (generic_value_print_int): New function.
10591 (generic_value_print): Use it.
10592
10593 2020-03-13 Tom Tromey <tom@tromey.com>
10594
10595 * valprint.c (generic_value_print_bool): New function.
10596 (generic_value_print): Use it.
10597
10598 2020-03-13 Tom Tromey <tom@tromey.com>
10599
10600 * valprint.c (generic_val_print_func): Simplify.
10601 (generic_val_print, generic_value_print): Update.
10602
10603 2020-03-13 Tom Tromey <tom@tromey.com>
10604
10605 * valprint.c (generic_val_print_flags): Remove.
10606 (generic_val_print, generic_value_print): Update.
10607 (val_print_type_code_flags): Add original_value parameter.
10608
10609 2020-03-13 Tom Tromey <tom@tromey.com>
10610
10611 * valprint.c (generic_val_print): Update.
10612 (generic_value_print): Update.
10613 * valprint.c (generic_val_print_enum): Don't call
10614 val_print_scalar_formatted.
10615
10616 2020-03-13 Tom Tromey <tom@tromey.com>
10617
10618 * valprint.c (generic_value_print): Call generic_value_print_ptr.
10619 * valprint.c (generic_value_print_ptr): New function.
10620
10621 2020-03-13 Tom Tromey <tom@tromey.com>
10622
10623 * valprint.c (generic_value_print): Rewrite.
10624
10625 2020-03-13 Tom Tromey <tom@tromey.com>
10626
10627 * p-valprint.c (pascal_object_print_value_fields)
10628 (pascal_object_print_value): New functions.
10629
10630 2020-03-13 Tom Tromey <tom@tromey.com>
10631
10632 * p-valprint.c (pascal_value_print_inner): Rewrite.
10633
10634 2020-03-13 Tom Tromey <tom@tromey.com>
10635
10636 * f-valprint.c (f_value_print_innner): Rewrite.
10637
10638 2020-03-13 Tom Tromey <tom@tromey.com>
10639
10640 * m2-valprint.c (m2_print_unbounded_array): New overload.
10641 (m2_print_unbounded_array): Update.
10642 (m2_print_array_contents): Take a struct value.
10643 (m2_value_print_inner): Rewrite.
10644
10645 2020-03-13 Tom Tromey <tom@tromey.com>
10646
10647 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
10648 (d_value_print_inner): New function.
10649 * d-lang.h (d_value_print_inner): Declare.
10650 * d-lang.c (d_language_defn): Use d_value_print_inner.
10651
10652 2020-03-13 Tom Tromey <tom@tromey.com>
10653
10654 * go-valprint.c (go_value_print_inner): New function.
10655 * go-lang.h (go_value_print_inner): Declare.
10656 * go-lang.c (go_language_defn): Use go_value_print_inner.
10657
10658 2020-03-13 Tom Tromey <tom@tromey.com>
10659
10660 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
10661 API.
10662 (rust_val_print): Rewrite.
10663 (rust_value_print_inner): New function, from rust_val_print.
10664 (rust_language_defn): Use rust_value_print_inner.
10665
10666 2020-03-13 Tom Tromey <tom@tromey.com>
10667
10668 * ada-valprint.c (ada_value_print_inner): New function.
10669 * ada-lang.h (ada_value_print_inner): Declare.
10670 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
10671
10672 2020-03-13 Tom Tromey <tom@tromey.com>
10673
10674 * f-valprint.c (f_value_print_innner): New function.
10675 * f-lang.h (f_value_print_innner): Declare.
10676 * f-lang.c (f_language_defn): Use f_value_print_innner.
10677
10678 2020-03-13 Tom Tromey <tom@tromey.com>
10679
10680 * p-valprint.c (pascal_value_print_inner): New function.
10681 * p-lang.h (pascal_value_print_inner): Declare.
10682 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
10683
10684 2020-03-13 Tom Tromey <tom@tromey.com>
10685
10686 * m2-valprint.c (m2_value_print_inner): New function.
10687 * m2-lang.h (m2_value_print_inner): Declare.
10688 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
10689
10690 2020-03-13 Tom Tromey <tom@tromey.com>
10691
10692 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
10693 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
10694 * c-valprint.c (c_value_print_inner): New function.
10695 * c-lang.h (c_value_print_inner): Declare.
10696 * c-lang.c (c_language_defn, cplus_language_defn)
10697 (asm_language_defn, minimal_language_defn): Use
10698 c_value_print_inner.
10699
10700 2020-03-13 Tom Tromey <tom@tromey.com>
10701
10702 * p-valprint.c (pascal_object_print_value_fields): Now static.
10703 * p-lang.h (pascal_object_print_value_fields): Don't declare.
10704
10705 2020-03-13 Tom Tromey <tom@tromey.com>
10706
10707 * c-valprint.c (c_val_print_array): Simplify.
10708
10709 2020-03-13 Tom Tromey <tom@tromey.com>
10710
10711 * valprint.c (value_print_array_elements): New function.
10712 * valprint.h (value_print_array_elements): Declare.
10713
10714 2020-03-13 Tom Tromey <tom@tromey.com>
10715
10716 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
10717 * mips-tdep.c (mips_print_register): Use
10718 value_print_scalar_formatted.
10719
10720 2020-03-13 Tom Tromey <tom@tromey.com>
10721
10722 * valprint.h (value_print_scalar_formatted): Declare.
10723 * valprint.c (value_print_scalar_formatted): New function.
10724
10725 2020-03-13 Tom Tromey <tom@tromey.com>
10726
10727 * valprint.h (generic_value_print): Declare.
10728 * valprint.c (generic_value_print): New function.
10729
10730 2020-03-13 Tom Tromey <tom@tromey.com>
10731
10732 * valprint.c (do_val_print): Call la_value_print_inner, if
10733 available.
10734 * rust-lang.c (rust_language_defn): Update.
10735 * p-lang.c (pascal_language_defn): Update.
10736 * opencl-lang.c (opencl_language_defn): Update.
10737 * objc-lang.c (objc_language_defn): Update.
10738 * m2-lang.c (m2_language_defn): Update.
10739 * language.h (struct language_defn) <la_value_print_inner>: New
10740 member.
10741 * language.c (unknown_language_defn, auto_language_defn): Update.
10742 * go-lang.c (go_language_defn): Update.
10743 * f-lang.c (f_language_defn): Update.
10744 * d-lang.c (d_language_defn): Update.
10745 * c-lang.c (c_language_defn, cplus_language_defn)
10746 (asm_language_defn, minimal_language_defn): Update.
10747 * ada-lang.c (ada_language_defn): Update.
10748
10749 2020-03-13 Tom Tromey <tom@tromey.com>
10750
10751 * c-valprint.c (c_value_print): Use common_val_print.
10752
10753 2020-03-13 Tom Tromey <tom@tromey.com>
10754
10755 * cp-valprint.c (cp_print_static_field): Use common_val_print.
10756
10757 2020-03-13 Tom Tromey <tom@tromey.com>
10758
10759 * f-valprint.c (f77_print_array_1, f_val_print): Use
10760 common_val_print.
10761
10762 2020-03-13 Tom Tromey <tom@tromey.com>
10763
10764 * riscv-tdep.c (riscv_print_one_register_info): Use
10765 common_val_print.
10766
10767 2020-03-13 Tom Tromey <tom@tromey.com>
10768
10769 * mi/mi-main.c (output_register): Use common_val_print.
10770
10771 2020-03-13 Tom Tromey <tom@tromey.com>
10772
10773 * infcmd.c (default_print_one_register_info): Use
10774 common_val_print.
10775
10776 2020-03-13 Tom Tromey <tom@tromey.com>
10777
10778 * valprint.h (common_val_print_checked): Declare.
10779 * valprint.c (common_val_print_checked): New function.
10780 * stack.c (print_frame_arg): Use common_val_print_checked.
10781
10782 2020-03-13 Tom Tromey <tom@tromey.com>
10783
10784 * valprint.c (do_val_print): New function, from val_print.
10785 (val_print): Use do_val_print.
10786 (common_val_print): Use do_val_print.
10787
10788 2020-03-13 Tom Tromey <tom@tromey.com>
10789
10790 * valprint.c (value_print): Use scoped_value_mark.
10791
10792 2020-03-13 Tom de Vries <tdevries@suse.de>
10793
10794 PR symtab/25646
10795 * psymtab.c (partial_symtab::partial_symtab): Don't set
10796 globals_offset and statics_offset. Push element onto
10797 current_global_psymbols and current_static_psymbols stacks.
10798 (concat): New function.
10799 (end_psymtab_common): Set globals_offset and statics_offset. Pop
10800 element from current_global_psymbols and current_static_psymbols
10801 stacks. Concat popped elements to global_psymbols and
10802 static_symbols.
10803 (add_psymbol_to_list): Use current_global_psymbols and
10804 current_static_psymbols stacks.
10805 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
10806 current_static_psymbols fields.
10807
10808 2020-03-12 Christian Biesinger <cbiesinger@google.com>
10809
10810 * corelow.c (sniff_core_bfd): Remove.
10811 (class core_target) <m_core_vec>: Remove.
10812 (core_target::core_target): Update.
10813 (core_file_fns): Remove.
10814 (deprecated_add_core_fns): Remove.
10815 (default_core_sniffer): Remove.
10816 (sniff_core_bfd): Remove.
10817 (default_check_format): Remove.
10818 (gdb_check_format): Remove.
10819 (core_target_open): Update.
10820 (core_target::get_core_register_section): Update.
10821 (get_core_registers_cb): Update.
10822 (core_target::fetch_registers): Update.
10823 * gdbcore.h (struct core_fns): Remove.
10824 (deprecated_add_core_fns): Remove.
10825 (default_core_sniffer): Remove.
10826 (default_check_format): Remove.
10827
10828 2020-03-12 Tom Tromey <tom@tromey.com>
10829
10830 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
10831 CORE_ADDR.
10832 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
10833
10834 2020-03-12 Tom Tromey <tom@tromey.com>
10835
10836 * remote.c (remote_target::download_tracepoint)
10837 (remote_target::enable_tracepoint)
10838 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
10839 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
10840 sprintf_vma.
10841
10842 2020-03-12 Tom Tromey <tom@tromey.com>
10843
10844 * symfile-mem.c: Update CORE_ADDR size assert.
10845
10846 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
10847
10848 * selftest.m4: Move to gdbsupport/.
10849 * acinclude.m4: Update path to selftest.m4.
10850
10851 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
10852
10853 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
10854 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
10855 gdbarch-selfselftests.c and selftest-arch.c.
10856 (SUBDIR_UNITTESTS_OBS): Rename to...
10857 (SELFTESTS_OBS): ... this.
10858 (COMMON_SFILES): Remove disasm-selftests.c and
10859 gdbarch-selftests.c.
10860 * configure.ac: Don't add selftest-arch.{c,o} to
10861 CONFIG_{SRCS,OBS}.
10862 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
10863 preprocessor conditions.
10864
10865 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
10866
10867 * configure.ac: Don't source bfd/development.sh.
10868 * selftest.m4: Modify comment.
10869 * configure: Re-generate.
10870
10871 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
10872
10873 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
10874 not "true" or "false".
10875 * configure: Re-generate.
10876
10877 2020-03-12 Christian Biesinger <cbiesinger@google.com>
10878
10879 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
10880 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
10881 renamed to arm_nbsd_supply_gregset.
10882 (fetch_register): Update to call arm_nbsd_supply_gregset.
10883 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
10884 (arm_netbsd_nat_target::fetch_registers): Update.
10885 (fetch_elfcore_registers): Removed.
10886 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
10887 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
10888 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
10889 not require NetBSD system headers.
10890 (arm_nbsd_regset): New struct.
10891 (arm_nbsd_iterate_over_regset_sections): New function.
10892 (arm_netbsd_init_abi_common): Updated to call
10893 set_gdbarch_iterate_over_regset_sections.
10894 * arm-nbsd-tdep.h: New file.
10895
10896 2020-03-11 Kevin Buettner <kevinb@redhat.com>
10897
10898 * symtab.c (find_pc_sect_line): Add check which prevents infinite
10899 recursion.
10900
10901 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
10902
10903 * configure: Re-generate.
10904
10905 2020-03-11 Tom Tromey <tromey@adacore.com>
10906
10907 * ada-typeprint.c (print_choices): Fix comment.
10908
10909 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
10910
10911 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
10912 previous item in the list, when the list has no items.
10913
10914 2020-03-11 Tom de Vries <tdevries@suse.de>
10915
10916 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
10917 PROP_LOCLIST handling code.
10918
10919 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
10920
10921 * buildsym-legacy.c (record_line): Pass extra parameter to
10922 record_line.
10923 * buildsym.c (buildsym_compunit::record_line): Take an extra
10924 parameter, reduce duplication in the line table, and record the
10925 is_stmt flag in the line table.
10926 * buildsym.h (buildsym_compunit::record_line): Add extra
10927 parameter.
10928 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
10929 non-statement lines.
10930 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
10931 this to the symtab builder.
10932 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
10933 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
10934 through to dwarf_record_line_1.
10935 * infrun.c (process_event_stop_test): When stepping, don't stop at
10936 a non-statement instruction, and only refresh the step info when
10937 we land in the middle of a line's range. Also add an extra
10938 comment.
10939 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
10940 field.
10941 * record-btrace.c (btrace_find_line_range): Only record lines
10942 marked as is-statement.
10943 * stack.c (frame_show_address): Show the frame address if we are
10944 in a non-statement sal.
10945 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
10946 (maintenance_print_one_line_table): Print a header for the is_stmt
10947 column, and include is_stmt information in the output.
10948 * symtab.c (find_pc_sect_line): Find lines marked as statements in
10949 preference to non-statements.
10950 (find_pcs_for_symtab_line): Prefer is-statement entries.
10951 (find_line_common): Likewise.
10952 * symtab.h (struct linetable_entry): Add is_stmt field.
10953 (struct symtab_and_line): Likewise.
10954 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
10955 arranging the line table.
10956
10957 2020-03-07 Tom de Vries <tdevries@suse.de>
10958
10959 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
10960 DIE.
10961
10962 2020-03-07 Tom Tromey <tom@tromey.com>
10963
10964 * valops.c (value_literal_complex): Remove obsolete comment.
10965 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
10966 comment.
10967
10968 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
10969
10970 * infrun.h: Forward-declare thread_info.
10971 (set_step_info): Add thread_info parameter, add doc.
10972 * infrun.c (set_step_info): Add thread_info parameter, move doc
10973 to header.
10974 * infrun.c (process_event_stop_test): Pass thread to
10975 set_step_info call.
10976 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
10977 set_step_info.
10978 (prepare_one_step): Add thread_info parameter, pass it to
10979 set_step_frame and prepare_one_step (recursive) call.
10980 (step_1): Pass thread to prepare_one_step call.
10981 (step_command_fsm::should_stop): Pass thread to
10982 prepare_one_step.
10983 (until_next_fsm): Pass thread to set_step_frame call.
10984 (finish_command): Pass thread to set_step_info call.
10985
10986 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
10987
10988 * windows-tdep.c (windows_solib_create_inferior_hook):
10989 Check if inferior is running.
10990
10991 2020-03-06 Tom de Vries <tdevries@suse.de>
10992
10993 * NEWS: Fix "the the".
10994 * ctfread.c: Same.
10995
10996 2020-03-06 Tom de Vries <tdevries@suse.de>
10997
10998 * psymtab.c (psymtab_to_symtab): Don't print "done.".
10999
11000 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11001
11002 * .dir-locals.el: Add a comment referencing the other copies of
11003 this file.
11004
11005 2020-03-05 John Baldwin <jhb@FreeBSD.org>
11006
11007 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
11008 psargs.
11009
11010 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11011
11012 * .gitattributes: New file.
11013
11014 2020-03-04 Tom Tromey <tom@tromey.com>
11015
11016 * symmisc.c (print_symbol_bcache_statistics)
11017 (print_objfile_statistics): Update.
11018 * symfile.c (allocate_symtab): Use intern.
11019 * psymtab.c (partial_symtab::partial_symtab): Use intern.
11020 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
11021 macro_cache>: Remove.
11022 <string_cache>: New member.
11023 (struct objfile) <intern>: New methods.
11024 * elfread.c (elf_symtab_read): Use intern.
11025 * dwarf2/read.c (fixup_go_packaging): Intern package name.
11026 (dwarf2_compute_name, dwarf2_physname)
11027 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
11028 names.
11029 (guess_partial_die_structure_name): Update.
11030 (partial_die_info::fixup): Intern name.
11031 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
11032 name.
11033 (dwarf2_name): Intern name. Update.
11034 * buildsym.c (buildsym_compunit::get_macro_table): Use
11035 string_cache.
11036
11037 2020-03-04 Tom Tromey <tom@tromey.com>
11038
11039 * jit.c (bfd_open_from_target_memory): Make "target" const.
11040 * corefile.c (gnutarget): Now const.
11041 * gdbcore.h (gnutarget): Now const.
11042
11043 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
11044
11045 * NEWS: Mention support for WOW64 processes.
11046 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
11047 (amd64_windows_segment_register_p): Remove static.
11048 (_initialize_amd64_windows_nat): Update.
11049 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
11050 * i386-windows-nat.c (context_offset): Update.
11051 (i386_mappings): Rename and remove static.
11052 (i386_windows_segment_register_p): Remove static.
11053 (_initialize_i386_windows_nat): Update.
11054 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
11055 (STATUS_WX86_SINGLE_STEP): New macro.
11056 (EnumProcessModulesEx): New macro.
11057 (Wow64SuspendThread): New macro.
11058 (Wow64GetThreadContext): New macro.
11059 (Wow64SetThreadContext): New macro.
11060 (Wow64GetThreadSelectorEntry): New macro.
11061 (windows_set_context_register_offsets): Add static.
11062 (windows_set_segment_register_p): Likewise.
11063 (windows_add_thread): Adapt for WOW64 processes.
11064 (windows_fetch_one_register): Likewise.
11065 (windows_nat_target::fetch_registers): Likewise.
11066 (windows_store_one_register): Likewise.
11067 (display_selector): Likewise.
11068 (display_selectors): Likewise.
11069 (handle_exception): Likewise.
11070 (windows_continue): Likewise.
11071 (windows_nat_target::resume): Likewise.
11072 (windows_add_all_dlls): Likewise.
11073 (do_initial_windows_stuff): Likewise.
11074 (windows_nat_target::attach): Likewise.
11075 (windows_get_exec_module_filename): Likewise.
11076 (windows_nat_target::create_inferior): Likewise.
11077 (windows_xfer_siginfo): Likewise.
11078 (_initialize_loadable): Initialize Wow64SuspendThread,
11079 Wow64GetThreadContext, Wow64SetThreadContext,
11080 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
11081 * windows-nat.h (windows_set_context_register_offsets):
11082 Remove declaration.
11083 (windows_set_segment_register_p): Likewise.
11084 (i386_windows_segment_register_p): Add declaration.
11085 (amd64_windows_segment_register_p): Likewise.
11086
11087 2020-03-04 Luis Machado <luis.machado@linaro.org>
11088
11089 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
11090 in "info registers" for AArch64/ARM.
11091
11092 The change caused "info registers" to not print GPR's.
11093
11094 gdb/ChangeLog:
11095
11096 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
11097
11098 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
11099 when reg->group is empty and reggroup is not.
11100
11101 2020-03-03 Tom Tromey <tromey@adacore.com>
11102
11103 * dwarf2/frame.c (struct dwarf2_frame_cache)
11104 <checked_tailcall_bottom, entry_cfa_sp_offset,
11105 entry_cfa_sp_offset_p>: Remove members.
11106 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
11107 (dwarf2_frame_prev_register): Don't call
11108 dwarf2_tailcall_sniffer_first.
11109 (dwarf2_append_unwinders): Don't append tailcall unwinder.
11110 * frame-unwind.c (add_unwinder): New fuction.
11111 (frame_unwind_init): Use it. Add tailcall unwinder.
11112
11113 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
11114 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11115
11116 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
11117 value should be printed as true.
11118
11119 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
11120
11121 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
11122 (windows_init_abi): Set and use windows_so_ops.
11123
11124 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
11125
11126 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
11127 when verifying if dealing with a convenience variable.
11128
11129 2020-03-03 Luis Machado <luis.machado@linaro.org>
11130
11131 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
11132
11133 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11134
11135 * infrun.c (gdbarch_supports_displaced_stepping): New.
11136 (use_displaced_stepping): Break up conditions in smaller pieces.
11137 Use gdbarch_supports_displaced_stepping.
11138 (displaced_step_prepare_throw): Use
11139 gdbarch_supports_displaced_stepping.
11140
11141 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
11142
11143 * NEWS: Mention new behaviour of the history filename.
11144 * top.c (write_history_p): Add comment.
11145 (show_write_history_p): Add header comment, give a different
11146 message when history writing is on, but the history filename is
11147 empty.
11148 (history_filename): Add comment.
11149 (history_filename_empty): New function.
11150 (show_history_filename): Add header comment, give a different
11151 message when the filename is empty.
11152 (init_history): Compare history_filename against nullptr, and only
11153 read history if the filename is not empty.
11154 (set_history_filename): Add header comment, and only make
11155 non-empty filenames absolute.
11156 (init_main): Make the filename argument to 'set history filename'
11157 optional.
11158
11159 2020-03-02 Christian Biesinger <cbiesinger@google.com>
11160
11161 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
11162 (arm_supply_vfpregset): ...this, and update to use VFP registers.
11163 (fetch_fp_register): Update.
11164 (fetch_fp_regs): Update.
11165 (store_fp_register): Update.
11166 (store_fp_regs): Update.
11167 (arm_netbsd_nat_target::read_description): New function.
11168 (fetch_elfcore_registers): Update.
11169
11170 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
11171
11172 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
11173 general_thread if the stop reply is missing a thread-id.
11174 (remote_target::process_stop_reply): Use the first non-exited
11175 thread if the target didn't pass a thread-id.
11176 * infrun.c (do_target_wait): Move call to
11177 switch_to_inferior_no_thread to ....
11178 (do_target_wait_1): ... here.
11179
11180 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
11181
11182 * debuginfod-support.c: Include defs.h first.
11183
11184 2020-02-28 Tom de Vries <tdevries@suse.de>
11185
11186 * symfile.c (set_initial_language): Use default language for lookup.
11187
11188 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
11189
11190 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
11191 reader variable, pass `this` to read_cutu_die_from_dwo.
11192
11193 2020-02-27 Aaron Merey <amerey@redhat.com>
11194
11195 * source.c (open_source_file): Check for nullptr when computing
11196 srcpath.
11197
11198 2020-02-27 Tom Tromey <tromey@adacore.com>
11199
11200 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
11201 member.
11202 (dwarf2_add_field): Don't update nfields.
11203 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
11204
11205 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11206
11207 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
11208 abs.
11209
11210 2020-02-26 Tom Tromey <tom@tromey.com>
11211
11212 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
11213 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
11214 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
11215 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
11216 per_cu_data.
11217
11218 2020-02-26 Tom Tromey <tom@tromey.com>
11219
11220 * dwarf2/index-write.c (psym_index_map): Change type.
11221 (add_address_entry_worker, write_one_signatured_type)
11222 (recursively_count_psymbols, recursively_write_psymbols)
11223 (class debug_names, psyms_seen_size, write_gdbindex)
11224 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
11225
11226 2020-02-26 Aaron Merey <amerey@redhat.com>
11227
11228 * Makefile.in: Handle optional debuginfod support.
11229 * NEWS: Update.
11230 * README: Add --with-debuginfod summary.
11231 * config.in: Regenerate.
11232 * configure: Regenerate.
11233 * configure.ac: Handle optional debuginfod support.
11234 * debuginfod-support.c: debuginfod helper functions.
11235 * debuginfod-support.h: Ditto.
11236 * doc/gdb.texinfo: Add --with-debuginfod to configure options
11237 summary.
11238 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
11239 when a dwz file cannot be found.
11240 * elfread.c (elf_symfile_read): Query debuginfod servers when a
11241 debuginfo file cannot be found.
11242 * source.c (open_source_file): Query debuginfod servers when a
11243 source file cannot be found.
11244 * top.c (print_gdb_configuration): Include
11245 --{with,without}-debuginfod in the output.
11246
11247 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
11248
11249 * thread.c (thr_try_catch_cmd): Print thread name.
11250
11251 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
11252
11253 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
11254 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
11255 dwarf2_fetch_die_type_sect_off): Move to...
11256 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
11257 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
11258 dwarf2_fetch_die_type_sect_off): ... here.
11259 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
11260 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
11261 dwarf2_fetch_die_type_sect_off): Move doc to header file.
11262
11263 2020-02-26 Tom de Vries <tdevries@suse.de>
11264
11265 PR gdb/25603
11266 * symfile.c (set_initial_language): Exit-early if
11267 language_mode == language_mode_manual.
11268
11269 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
11270
11271 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
11272 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
11273 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
11274
11275 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
11276
11277 * gdbtypes.c (create_array_type_with_stride): Handle negative
11278 array strides.
11279 * valarith.c (value_subscripted_rvalue): Likewise.
11280
11281 2020-02-25 Luis Machado <luis.machado@linaro.org>
11282
11283 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
11284
11285 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
11286
11287 * loc.h (dwarf2_get_die_type): Move to...
11288 * read.h (dwarf2_get_die_type): ... here.
11289 * read.c (dwarf2_get_die_type): Move doc to header.
11290
11291 2020-02-25 Joel Brobecker <brobecker@adacore.com>
11292
11293 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
11294 'gnulib/Makefile.in' to the list.
11295
11296 2020-02-24 Tom Tromey <tom@tromey.com>
11297
11298 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
11299 Remove.
11300 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
11301 XOBNEWVEC.
11302
11303 2020-02-24 Tom Tromey <tom@tromey.com>
11304
11305 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
11306 New method.
11307 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
11308 (dw2_do_instantiate_symtab, dw2_get_file_names)
11309 (build_type_psymtab_dependencies, load_full_type_unit): Update.
11310
11311 2020-02-24 Tom Tromey <tom@tromey.com>
11312
11313 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
11314 make_scoped_restore.
11315 (dwarf2_psymtab::read_symtab): Don't clear
11316 reading_partial_symbols.
11317
11318 2020-02-24 Tom de Vries <tdevries@suse.de>
11319
11320 PR gdb/25592
11321 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
11322
11323 2020-02-24 Tom de Vries <tdevries@suse.de>
11324
11325 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
11326 commands layout next/prev/regs.
11327
11328 2020-02-22 Tom Tromey <tom@tromey.com>
11329
11330 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
11331 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
11332
11333 2020-02-22 Tom Tromey <tom@tromey.com>
11334
11335 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
11336
11337 2020-02-22 Tom Tromey <tom@tromey.com>
11338
11339 * tui/tui-win.c (_initialize_tui_win): Add usage text.
11340 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
11341 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
11342 * tui/tui.c (_initialize_tui): Add usage text.
11343
11344 2020-02-22 Tom Tromey <tom@tromey.com>
11345
11346 * tui/tui-win.c (tui_set_focus_command)
11347 (tui_set_win_height_command): Use error_no_arg.
11348 (_initialize_tui_win): Update help text.
11349 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
11350
11351 2020-02-22 Tom Tromey <tom@tromey.com>
11352
11353 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
11354 * tui/tui-disasm.h (struct tui_disasm_window)
11355 <display_start_addr>: Declare.
11356 * tui/tui-source.h (struct tui_source_window)
11357 <display_start_addr>: Declare.
11358 * tui/tui-winsource.h (struct tui_source_window_base)
11359 <show_source_line, display_start_addr>: New methods.
11360 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
11361 Rename and move to protected section.
11362 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
11363 (tui_source_window_base::do_erase_source_content): Update.
11364 (tui_source_window_base::show_source_line): Now a method.
11365 (tui_source_window_base::show_source_content)
11366 (tui_source_window_base::tui_source_window_base)
11367 (tui_source_window_base::rerender)
11368 (tui_source_window_base::refill)
11369 (tui_source_window_base::do_scroll_horizontal)
11370 (tui_source_window_base::set_is_exec_point_at)
11371 (tui_source_window_base::update_breakpoint_info)
11372 (tui_source_window_base::update_exec_info): Update.
11373 * tui/tui-source.c (tui_source_window::set_contents)
11374 (tui_source_window::showing_source_p)
11375 (tui_source_window::do_scroll_vertical)
11376 (tui_source_window::location_matches_p)
11377 (tui_source_window::line_is_displayed): Update.
11378 (tui_source_window::display_start_addr): New method.
11379 * tui/tui-disasm.c (tui_disasm_window::set_contents)
11380 (tui_disasm_window::do_scroll_vertical)
11381 (tui_disasm_window::location_matches_p): Update.
11382 (tui_disasm_window::display_start_addr): New method.
11383
11384 2020-02-22 Tom Tromey <tom@tromey.com>
11385
11386 * NEWS: Add entry for gdb.register_window_type.
11387 * tui/tui-layout.h (window_factory): New typedef.
11388 (tui_register_window): Declare.
11389 * tui/tui-layout.c (saved_tui_windows): New global.
11390 (tui_apply_current_layout): Use it.
11391 (tui_register_window): New function.
11392 * python/python.c (do_start_initialization): Call
11393 gdbpy_initialize_tui.
11394 (python_GdbMethods): Add "register_window_type" function.
11395 * python/python-internal.h (gdbpy_register_tui_window)
11396 (gdbpy_initialize_tui): Declare.
11397 * python/py-tui.c: New file.
11398 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
11399
11400 2020-02-22 Tom Tromey <tom@tromey.com>
11401
11402 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
11403
11404 2020-02-22 Tom Tromey <tom@tromey.com>
11405
11406 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
11407 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
11408 * tui/tui-data.c (tui_set_win_with_focus): Remove.
11409 (tui_set_win_focus_to): Move from tui-win.c.
11410
11411 2020-02-22 Tom Tromey <tom@tromey.com>
11412
11413 * tui/tui-layout.c (make_standard_window, get_locator_window): New
11414 functions.
11415 (known_window_types): New global.
11416 (tui_get_window_by_name): Reimplement.
11417 (initialize_known_windows): New function.
11418 (validate_window_name): Rewrite.
11419 (_initialize_tui_layout): Call initialize_known_windows.
11420
11421 2020-02-22 Tom Tromey <tom@tromey.com>
11422
11423 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
11424 Remove constants.
11425 * tui/tui-winsource.h (struct tui_source_window_base)
11426 <tui_source_window_base>: Remove parameter.
11427 * tui/tui-winsource.c
11428 (tui_source_window_base::tui_source_window_base): Remove
11429 parameter.
11430 (tui_source_window_base::refill): Update.
11431 * tui/tui-stack.h (struct tui_locator_window)
11432 <tui_locator_window>: Update.
11433 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
11434 Default the constructor.
11435 * tui/tui-regs.h (struct tui_data_item_window)
11436 <tui_data_item_window>: Default the constructor.
11437 (struct tui_data_window) <tui_data_window>: Likewise.
11438 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
11439 Default the constructor.
11440 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
11441 Default the constructor.
11442 <type>: Remove.
11443 (struct tui_win_info) <tui_win_info>: Default the constructor.
11444 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
11445 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
11446 Default the constructor.
11447
11448 2020-02-22 Tom Tromey <tom@tromey.com>
11449
11450 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
11451 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
11452 * tui/tui-win.c (tui_resize_all): Don't call
11453 tui_delete_invisible_windows.
11454 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
11455 done.
11456 (tui_set_layout): Update.
11457 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
11458 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
11459 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
11460
11461 2020-02-22 Tom Tromey <tom@tromey.com>
11462
11463 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
11464 correctly.
11465
11466 2020-02-22 Tom Tromey <tom@tromey.com>
11467
11468 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
11469
11470 2020-02-22 Tom Tromey <tom@tromey.com>
11471
11472 * tui/tui-winsource.h (struct tui_source_window_iterator)
11473 <inner_iterator>: New etytypedef.
11474 <tui_source_window_iterator>: Take "end" parameter.
11475 <tui_source_window_iterator>: Take iterator.
11476 <operator*, advance>: Update.
11477 <m_iter>: Change type.
11478 <m_end>: New field.
11479 (struct tui_source_windows) <begin, end>: Update.
11480 * tui/tui-layout.c (tui_windows): New global.
11481 (tui_apply_current_layout): Clear tui_windows.
11482 (tui_layout_window::apply): Update tui_windows.
11483 * tui/tui-data.h (tui_windows): Declare.
11484 (all_tui_windows): Now inline function.
11485 (class tui_window_iterator, struct all_tui_windows): Remove.
11486
11487 2020-02-22 Tom Tromey <tom@tromey.com>
11488
11489 PR tui/17850:
11490 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
11491 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
11492 "height" argument.
11493 (class tui_layout_window) <get_sizes>: Likewise.
11494 (class tui_layout_split) <tui_layout_split>: Add "vertical"
11495 argument.
11496 <get_sizes>: Add "height" argument.
11497 <m_vertical>: New field.
11498 * tui/tui-layout.c (tui_layout_split::clone): Update.
11499 (tui_layout_split::get_sizes): Add "height" argument.
11500 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
11501 (tui_new_layout_command): Parse "-horizontal".
11502 (_initialize_tui_layout): Update help string.
11503 (tui_layout_split::specification): Add "-horizontal" when needed.
11504 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
11505 argument.
11506 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
11507 New methods.
11508
11509 2020-02-22 Tom Tromey <tom@tromey.com>
11510
11511 * tui/tui-layout.h (enum tui_adjust_result): New.
11512 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
11513 (class tui_layout_window) <adjust_size>: Return
11514 tui_adjust_result. Rewrite.
11515 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
11516 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
11517
11518 2020-02-22 Tom Tromey <tom@tromey.com>
11519
11520 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
11521 parameter and return types.
11522 (class tui_layout_base) <specification>: Add "depth".
11523 (class tui_layout_window) <specification>: Add "depth".
11524 (class tui_layout_split) <specification>: Add "depth".
11525 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
11526 and return types.
11527 (tui_new_layout_command): Parse sub-layouts.
11528 (_initialize_tui_layout): Update help string.
11529 (tui_layout_window::specification): Add "depth".
11530 (add_layout_command): Update.
11531
11532 2020-02-22 Tom Tromey <tom@tromey.com>
11533
11534 * NEWS: Add "tui new-layout" item.
11535 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
11536 Add new-layout command to help text.
11537 (validate_window_name): New function.
11538 (tui_new_layout_command): New function.
11539 (_initialize_tui_layout): Register "new-layout".
11540 (tui_layout_window::specification): New method.
11541 (tui_layout_window::specification): New method.
11542 * tui/tui-layout.h (class tui_layout_base) <specification>: New
11543 method.
11544 (class tui_layout_window) <specification>: New method.
11545 (class tui_layout_split) <specification>: New method.
11546
11547 2020-02-22 Tom Tromey <tom@tromey.com>
11548
11549 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
11550 * tui/tui-win.c (window_name_completer): Update comment.
11551 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
11552 Declare method.
11553 (class tui_layout_window) <replace_window>: Likewise.
11554 (class tui_layout_split) <replace_window>: Likewise.
11555 (tui_set_layout): Don't declare.
11556 (tui_set_initial_layout): Declare function.
11557 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
11558 (asm_regs_layout): New globals.
11559 (tui_current_layout, show_layout): Remove.
11560 (tui_set_layout, tui_add_win_to_layout): Rewrite.
11561 (find_layout, tui_apply_layout): New function.
11562 (layout_completer): Remove.
11563 (tui_next_layout): Reimplement.
11564 (tui_next_layout_command): New function.
11565 (tui_set_initial_layout, tui_prev_layout_command): New functions.
11566 (tui_regs_layout): Reimplement.
11567 (tui_regs_layout_command): New function.
11568 (extract_display_start_addr): Rewrite.
11569 (next_layout, prev_layout): Remove.
11570 (tui_layout_window::replace_window): New method.
11571 (tui_layout_split::replace_window): New method.
11572 (destroy_layout): New function.
11573 (layout_list): New global.
11574 (add_layout_command): New function.
11575 (initialize_layouts): Update.
11576 (tui_layout_command): New function.
11577 (_initialize_tui_layout): Install "layout" commands.
11578 * tui/tui-data.h (enum tui_layout_type): Remove.
11579 (tui_current_layout): Don't declare.
11580
11581 2020-02-22 Tom Tromey <tom@tromey.com>
11582
11583 * tui/tui-regs.c (tui_reg_layout): Remove.
11584 (tui_reg_command): Use tui_regs_layout.
11585 * tui/tui-layout.h (tui_reg_command): Declare.
11586 * tui/tui-layout.c (tui_reg_command): New function.
11587
11588 2020-02-22 Tom Tromey <tom@tromey.com>
11589
11590 * tui/tui.c (tui_rl_delete_other_windows): Call
11591 tui_remove_some_windows.
11592 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
11593 Declare method.
11594 (class tui_layout_window) <remove_windows>: New method.
11595 (class tui_layout_split) <remove_windows>: Declare.
11596 (tui_remove_some_windows): Declare.
11597 * tui/tui-layout.c (tui_remove_some_windows): New function.
11598 (tui_layout_split::remove_windows): New method.
11599
11600 2020-02-22 Tom Tromey <tom@tromey.com>
11601
11602 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
11603 * tui/tui-layout.h (tui_next_layout): Declare.
11604 * tui/tui-layout.c (tui_next_layout): New function.
11605
11606 2020-02-22 Tom Tromey <tom@tromey.com>
11607
11608 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
11609 correct coordinates.
11610
11611 2020-02-22 Tom Tromey <tom@tromey.com>
11612
11613 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
11614 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
11615 DATA_WIN case.
11616
11617 2020-02-22 Tom Tromey <tom@tromey.com>
11618
11619 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
11620 TUI_DISASM_WIN, not tui_win_list.
11621
11622 2020-02-22 Tom Tromey <tom@tromey.com>
11623
11624 * valprint.c (generic_val_print_enum_1)
11625 (val_print_type_code_flags): Style member names.
11626 * rust-lang.c (val_print_struct, rust_print_enum)
11627 (rust_print_struct_def, rust_internal_print_type): Style member
11628 names.
11629 * p-valprint.c (pascal_object_print_value_fields): Style member
11630 names. Only call fprintf_symbol_filtered for static members.
11631 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
11632 * f-valprint.c (f_val_print): Style member names.
11633 * f-typeprint.c (f_type_print_base): Style member names.
11634 * cp-valprint.c (cp_print_value_fields): Style member names. Only
11635 call fprintf_symbol_filtered for static members.
11636 (cp_print_class_member): Style member names.
11637 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
11638 member names.
11639 * ada-valprint.c (ada_print_scalar): Style enum names.
11640 (ada_val_print_enum): Likewise.
11641 * ada-typeprint.c (print_enum_type): Style enum names.
11642
11643 2020-02-21 Tom Tromey <tom@tromey.com>
11644
11645 * psympriv.h (struct partial_symtab): Update comment.
11646
11647 2020-02-21 Tom Tromey <tromey@adacore.com>
11648
11649 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
11650 type is CORE_ADDR.
11651
11652 2020-02-21 Tom de Vries <tdevries@suse.de>
11653
11654 PR gdb/25534
11655 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
11656 if dependencies[i]->user != NULL.
11657
11658 2020-02-21 Ali Tamur <tamur@google.com>
11659
11660 * dwarf2/read.c (dwarf2_name): Add null check.
11661
11662 2020-02-20 Tom Tromey <tom@tromey.com>
11663
11664 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
11665 ">=", in binary search.
11666 (dwarf2_find_containing_comp_unit): New overload.
11667 (run_test): New self-test.
11668 (_initialize_dwarf2_read): Register new test.
11669
11670 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
11671
11672 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
11673 * riscv-tdep.h: Likewise.
11674 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
11675 rv32-only CSR.
11676 * features/riscv/64bit-csr.xml: Regenerated.
11677
11678 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
11679 Tom Tromey <tom@tromey.com>
11680
11681 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
11682 of 'fputc_unfiltered'.
11683 (putchar_unfiltered): Call 'fputc_unfiltered'.
11684 (fputc_unfiltered): Call 'fputs_unfiltered'.
11685
11686 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
11687
11688 * config.in: Regenerate.
11689 * configure: Regenerate.
11690 * configure.ac: Add --with-python-libdir option.
11691 * main.c: Use WITH_PYTHON_LIBDIR.
11692
11693 2020-02-19 Tom Tromey <tom@tromey.com>
11694
11695 * symtab.c (general_symbol_info::compute_and_set_names): Use
11696 obstack_strndup. Simplify call to symbol_set_demangled_name.
11697
11698 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
11699
11700 * dwarf2/read.c (allocate_signatured_type_table,
11701 allocate_dwo_unit_table, allocate_type_unit_groups_table,
11702 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
11703 Remove objfile parameter, update all callers.
11704
11705 2020-02-19 Doug Evans <dje@google.com>
11706
11707 PR rust/25535
11708 * rust-lang.c (rust_print_enum): Apply embedded_offset to
11709 rust_enum_variant calculation.
11710
11711 2020-02-19 Tom Tromey <tromey@adacore.com>
11712
11713 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
11714
11715 2020-02-19 Tom Tromey <tromey@adacore.com>
11716
11717 * ada-lang.c (cache_symbol): Use obstack_strdup.
11718
11719 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
11720
11721 * configure: Regenerate.
11722
11723 2020-02-19 Tom Tromey <tromey@adacore.com>
11724
11725 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
11726 NULL check.
11727
11728 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
11729
11730 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
11731
11732 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
11733
11734 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
11735 if GDBSERVER is not defined.
11736 (riscv_tdesc_cache): Likewise, also store const target_desc.
11737 (STATIC_IN_GDB): Define.
11738 (riscv_create_target_description): Update declaration with
11739 STATIC_IN_GDB.
11740 (riscv_lookup_target_description): New function, only define if
11741 GDBSERVER is not defined.
11742 * arch/riscv.h (riscv_create_target_description): Declare only
11743 when GDBSERVER is defined.
11744 (riscv_lookup_target_description): New declaration when GDBSERVER
11745 is not defined.
11746 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
11747 (riscv_linux_read_features): ...this, and return
11748 riscv_gdbarch_features instead of target_desc.
11749 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
11750 (riscv_linux_read_description): Rename to...
11751 (riscv_linux_read_features): ...this.
11752 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
11753 Update to use riscv_gdbarch_features and
11754 riscv_lookup_target_description.
11755 * riscv-tdep.c (riscv_find_default_target_description): Use
11756 riscv_lookup_target_description instead of
11757 riscv_create_target_description.
11758
11759 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
11760
11761 * valprint.c (generic_val_print_enum_1): When printing a flag
11762 enum with value 0 and there is no enumerator with value 0, print
11763 just "0" instead of "(unknown: 0x0)".
11764
11765 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
11766
11767 * valprint.c (generic_val_print_enum_1): Print unknown part of
11768 flag enum in hex.
11769
11770 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
11771
11772 * dwarf2/read.c (update_enumeration_type_from_children): Allow
11773 flag enums to contain duplicate enumerators.
11774 * valprint.c (generic_val_print_enum_1): Update comment.
11775
11776 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
11777
11778 * dwarf2/read.c: Include "count-one-bits.h".
11779 (update_enumeration_type_from_children): If an enumerator has
11780 multiple bits set, don't treat the enumeration as a "flag enum".
11781 * valprint.c (generic_val_print_enum_1): Assert that enumerators
11782 of flag enums have 0 or 1 bit set.
11783
11784 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
11785
11786 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
11787 conversion.
11788 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11789 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
11790 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11791 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
11792 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11793
11794 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
11795
11796 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
11797
11798 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
11799
11800 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
11801 displaced_step_closure_up.
11802 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
11803 (struct displaced_step_closure_up):
11804 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11805 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
11806 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
11807 Likewise.
11808 * gdbarch.sh (displaced_step_copy_insn): Likewise.
11809 * gdbarch.c, gdbarch.h: Re-generate.
11810 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
11811 displaced_step_closure_up.
11812 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11813 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
11814 * infrun.h (displaced_step_closure_up): New type alias.
11815 (struct displaced_step_inferior_state) <step_closure>: Change
11816 type to displaced_step_closure_up.
11817 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
11818 displaced_step_closure_up.
11819 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11820
11821 2020-02-14 Tom Tromey <tom@tromey.com>
11822
11823 * minidebug.c (gnu_debug_key): New global.
11824 (find_separate_debug_file_in_section): Use it.
11825
11826 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
11827
11828 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
11829 std::unique_ptr.
11830 * gdbarch.c: Re-generate.
11831 * gdbarch.h: Re-generate.
11832 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
11833 change.
11834 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
11835 type to std::unique_ptr.
11836 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
11837 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11838 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
11839 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
11840 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
11841 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11842 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
11843 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
11844 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11845
11846 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
11847
11848 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
11849 std::unique_ptr.
11850 (displaced_step_clear): Rename to...
11851 (displaced_step_reset): ... this. Just call displaced->reset ().
11852 (displaced_step_clear_cleanup): Rename to...
11853 (displaced_step_reset_cleanup): ... this.
11854 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
11855 (displaced_step_fixup): Likewise.
11856 (resume_1): Likewise.
11857 (handle_inferior_event): Restore child's memory before calling
11858 displaced_step_fixup on the parent.
11859 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
11860 to std::unique_ptr.
11861 <step_closure>: Change type to std::unique_ptr.
11862
11863 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
11864
11865 * arm-tdep.c: Include count-one-bits.h.
11866 (cleanup_block_store_pc): Use count_one_bits.
11867 (cleanup_block_load_pc): Use count_one_bits.
11868 (arm_copy_block_xfer): Use count_one_bits.
11869 (thumb2_copy_block_xfer): Use count_one_bits.
11870 (thumb_copy_pop_pc_16bit): Use count_one_bits.
11871 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
11872 (thumb_get_next_pcs_raw): Use count_one_bits.
11873 (arm_get_next_pcs_raw): Use count_one_bits_l.
11874 * arch/arm.c (bitcount): Remove.
11875 * arch/arm.h (bitcount): Remove.
11876
11877 2020-02-14 Tom Tromey <tromey@adacore.com>
11878
11879 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
11880 Update.
11881 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
11882 * dwarf2/loc.c (call_site_find_chain_1): Return
11883 unique_xmalloc_ptr.
11884 (call_site_find_chain): Likewise.
11885
11886 2020-02-14 Richard Biener <rguenther@suse.de>
11887
11888 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
11889 on expression with division operators.
11890
11891 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11892
11893 * MAINTAINERS (Write After Approval): Adding myself.
11894
11895 2020-02-12 Tom Tromey <tom@tromey.com>
11896
11897 * event-loop.c (event_data, gdb_event, event_handler_func):
11898 Remove.
11899
11900 2020-02-12 Tom Tromey <tom@tromey.com>
11901
11902 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
11903 (dwarf2_frame_objfile_data): Add comment.
11904 (find_comp_unit, set_comp_unit): New functions.
11905 (dwarf2_frame_find_fde): Use find_comp_unit.
11906 (dwarf2_build_frame_info): Use set_comp_unit.
11907
11908 2020-02-12 Tom Tromey <tom@tromey.com>
11909
11910 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
11911 (comp_unit): Don't initialize objfile.
11912 (execute_cfa_program): Add text_offset parameter.
11913 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
11914 (dwarf2_frame_cache): Update.
11915 (dwarf2_build_frame_info): Don't set "objfile" member.
11916
11917 2020-02-12 Tom Tromey <tom@tromey.com>
11918
11919 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
11920 (decode_frame_entry): Likewise.
11921 (dwarf2_build_frame_info): Update.
11922
11923 2020-02-12 Tom Tromey <tom@tromey.com>
11924
11925 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
11926 (decode_frame_entry_1): Use the comp_unit obstack.
11927
11928 2020-02-12 Tom Tromey <tom@tromey.com>
11929
11930 * dwarf2/frame.c (struct comp_unit): Add initializers and
11931 constructor.
11932 (dwarf2_frame_objfile_data): Store a comp_unit.
11933 (dwarf2_frame_find_fde): Update.
11934 (dwarf2_build_frame_info): Use "new".
11935
11936 2020-02-12 Tom Tromey <tom@tromey.com>
11937
11938 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
11939 (dwarf2_fde_table): Typedef for std::vector.
11940 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
11941 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
11942 (decode_frame_entry): Update.
11943 (dwarf2_build_frame_info): Use "new".
11944
11945 2020-02-12 Christian Biesinger <cbiesinger@google.com>
11946
11947 * arm-tdep.c (arm_gdbarch_init): Update.
11948 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
11949 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
11950 have_neon, is_m>: Change to bool.
11951
11952 2020-02-12 Christian Biesinger <cbiesinger@google.com>
11953
11954 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
11955
11956 2020-02-12 Tom Tromey <tom@tromey.com>
11957
11958 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
11959
11960 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
11961
11962 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
11963 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
11964
11965 2020-02-11 Tom Tromey <tom@tromey.com>
11966
11967 * psymtab.h: Update comment.
11968
11969 2020-02-11 Tom Tromey <tom@tromey.com>
11970
11971 * gdb_obstack.h (struct auto_obstack): Use
11972 DISABLE_COPY_AND_ASSIGN.
11973
11974 2020-02-11 Tom Tromey <tom@tromey.com>
11975
11976 * dwarf2/frame.h (struct objfile): Don't forward declare.
11977
11978 2020-02-11 Christian Biesinger <cbiesinger@google.com>
11979
11980 * cris-tdep.c (cris_supply_gregset): Change signature to match
11981 what struct regset expects.
11982 (cris_regset): New struct.
11983 (fetch_core_registers): Remove.
11984 (cris_iterate_over_regset_sections): New function.
11985 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
11986 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
11987
11988 2020-02-11 Christian Biesinger <cbiesinger@google.com>
11989
11990 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
11991 registers.
11992
11993 2020-02-11 Christian Biesinger <cbiesinger@google.com>
11994
11995 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
11996
11997 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
11998
11999 * configure: Re-generate.
12000
12001 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
12002
12003 * configure: Re-generate.
12004
12005 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
12006
12007 * acinclude: Update warning.m4 path.
12008 * warning.m4: Move to gdbsupport.
12009
12010 2020-02-11 Tom Tromey <tromey@adacore.com>
12011
12012 * remote.c (remote_console_output): Update.
12013 * printcmd.c (printf_command): Update.
12014 * event-loop.c (gdb_wait_for_event): Update.
12015 * linux-nat.c (sigchld_handler): Update.
12016 * remote-sim.c (gdb_os_write_stdout): Update.
12017 (gdb_os_flush_stdout): Update.
12018 (gdb_os_flush_stderr): Update.
12019 (gdb_os_write_stderr): Update.
12020 * exceptions.c (print_exception): Update.
12021 * remote-fileio.c (remote_fileio_func_read): Update.
12022 (remote_fileio_func_write): Update.
12023 * tui/tui.c (tui_enable): Update.
12024 * tui/tui-interp.c (tui_interp::init): Update.
12025 * utils.c (init_page_info): Update.
12026 (putchar_unfiltered, fputc_unfiltered): Update.
12027 (gdb_flush): Update.
12028 (emit_style_escape): Update.
12029 (flush_wrap_buffer, fputs_maybe_filtered): Update.
12030 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
12031 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
12032 (stderr_file::write): Update.
12033 (stderr_file::puts): Update.
12034 * ui-file.h (ui_file_isatty, ui_file_write)
12035 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
12036 (ui_file_puts): Don't declare.
12037
12038 2020-02-10 Tom de Vries <tdevries@suse.de>
12039
12040 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
12041 sentinel to char *.
12042
12043 2020-02-09 Tom de Vries <tdevries@suse.de>
12044
12045 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
12046 filename if it matches "<artificial>".
12047
12048 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
12049
12050 * windows-tdep.c (struct enum_value_name): New struct.
12051 (create_enum): New function.
12052 (windows_get_siginfo_type): Create and use enum types.
12053
12054 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
12055
12056 * NEWS: Mention $_siginfo support for Windows.
12057 * windows-nat.c (handle_exception): Set siginfo_er.
12058 (windows_nat_target::mourn_inferior): Reset siginfo_er.
12059 (windows_xfer_siginfo): New function.
12060 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
12061 * windows-tdep.c (struct windows_gdbarch_data): New struct.
12062 (init_windows_gdbarch_data): New function.
12063 (get_windows_gdbarch_data): New function.
12064 (windows_get_siginfo_type): New function.
12065 (windows_init_abi): Register windows_get_siginfo_type.
12066 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
12067
12068 2020-02-08 Tom Tromey <tom@tromey.com>
12069
12070 * dwarf2/read.c (class cutu_reader) <cutu_reader,
12071 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
12072 <keep>: Declare method.
12073 <m_keep>: Remove member.
12074 <~cutu_reader>: Remove.
12075 (cutu_reader::init_tu_and_read_dwo_dies): Update.
12076 (cutu_reader::cutu_reader): Update.
12077 (cutu_reader::keep): Rename from ~cutu_reader.
12078 (process_psymtab_comp_unit, build_type_psymtabs_1)
12079 (process_skeletonless_type_unit, load_partial_comp_unit)
12080 (load_full_comp_unit, dwarf2_read_addr_index)
12081 (read_signatured_type): Update.
12082
12083 2020-02-08 Tom Tromey <tom@tromey.com>
12084
12085 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
12086 "want_partial_unit" parameter.
12087 (process_psymtab_comp_unit): Change want_partial_unit to bool.
12088 Inline check for DW_TAG_partial_unit.
12089 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
12090
12091 2020-02-08 Tom Tromey <tom@tromey.com>
12092
12093 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
12094 read.c.
12095 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
12096 read.c.
12097
12098 2020-02-08 Tom Tromey <tom@tromey.com>
12099
12100 * dwarf2/read.c (read_address): Move to comp-unit.c.
12101 (dwarf2_rnglists_process, dwarf2_ranges_process)
12102 (read_attribute_value, dwarf_decode_lines_1)
12103 (var_decode_location, decode_locdesc): Update.
12104 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
12105 read.c. Remove "cu" parameter.
12106 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
12107 method.
12108
12109 2020-02-08 Tom Tromey <tom@tromey.com>
12110
12111 * dwarf2/read.c (read_attribute_value, read_indirect_string)
12112 (read_indirect_line_string): Update.
12113 * dwarf2/comp-unit.c (read_offset): Remove.
12114 (read_comp_unit_head): Update.
12115 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
12116 method.
12117 (read_offset): Don't declare.
12118
12119 2020-02-08 Tom Tromey <tom@tromey.com>
12120
12121 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
12122 * dwarf2/read.c (struct comp_unit_head): Move to
12123 dwarf2/comp-unit.h.
12124 (enum class rcuh_kind): Move to comp-unit.h.
12125 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
12126 (read_comp_unit_head, error_check_comp_unit_head)
12127 (read_and_check_comp_unit_head): Move to comp-unit.c.
12128 (read_offset, dwarf_unit_type_name): Likewise.
12129 (create_debug_type_hash_table, read_cutu_die_from_dwo)
12130 (cutu_reader::cutu_reader, read_call_site_scope)
12131 (find_partial_die, follow_die_offset): Update.
12132 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
12133
12134 2020-02-08 Tom Tromey <tom@tromey.com>
12135
12136 * dwarf2/read.c (read_offset_1): Move to leb.c.
12137 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
12138 (dwarf_decode_macro_bytes): Update.
12139 * dwarf2/leb.c (read_offset): Rename; move from read.c.
12140 * dwarf2/leb.h (read_offset): Declare.
12141
12142 2020-02-08 Tom Tromey <tom@tromey.com>
12143
12144 * dwarf2/read.c (dwarf2_section_size): Remove.
12145 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
12146 Update.
12147 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
12148
12149 2020-02-08 Tom Tromey <tom@tromey.com>
12150
12151 * dwarf2/read.c (read_initial_length): Move to leb.c.
12152 * dwarf2/leb.h (read_initial_length): Declare.
12153 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
12154 handle_nonstd parameter.
12155 * dwarf2/frame.c (read_initial_length): Remove.
12156 (decode_frame_entry_1): Update.
12157
12158 2020-02-08 Tom Tromey <tom@tromey.com>
12159
12160 * dwarf2/loc.c (dwarf2_find_location_expression)
12161 (dwarf_evaluate_loc_desc::get_tls_address)
12162 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
12163 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
12164 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
12165 (dwarf2_compile_property_to_c)
12166 (dwarf2_loc_desc_get_symbol_read_needs)
12167 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
12168 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
12169 (loclist_describe_location, loclist_tracepoint_var_ref)
12170 (loclist_generate_c_location): Update.
12171 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
12172 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
12173 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
12174 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
12175 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
12176 (dwarf2_per_cu_data::addr_size)
12177 (dwarf2_per_cu_data::ref_addr_size)
12178 (dwarf2_per_cu_data::text_offset)
12179 (dwarf2_per_cu_data::addr_type): Now methods.
12180 (per_cu_header_read_in): Make per_cu "const".
12181 (dwarf2_version): Remove.
12182 (dwarf2_per_cu_data::int_type): Now a method.
12183 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
12184 (set_die_type, read_array_type, read_subrange_index_type)
12185 (read_tag_string_type, read_subrange_type): Update.
12186 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
12187 offset_size, ref_addr_size, text_offset, addr_type, version,
12188 objfile, int_type, addr_sized_int_type>: Declare methods.
12189
12190 2020-02-08 Tom Tromey <tom@tromey.com>
12191
12192 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
12193 Move earlier.
12194
12195 2020-02-08 Tom Tromey <tom@tromey.com>
12196
12197 * dwarf2/read.h (dwarf_line_debug): Declare.
12198 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
12199 * dwarf2/read.c: Move line_header code to new files.
12200 (dwarf_line_debug): No longer static.
12201 * dwarf2/line-header.c: New file.
12202 * dwarf2/line-header.h: New file.
12203
12204 2020-02-08 Tom Tromey <tom@tromey.com>
12205
12206 * dwarf2/read.c (struct line_header) <file_full_name,
12207 file_file_name>: Return unique_xmalloc_ptr.
12208 (line_header::file_file_name): Update.
12209 (line_header::file_full_name): Update.
12210 (dw2_get_file_names_reader): Update.
12211 (macro_start_file): Update.
12212
12213 2020-02-08 Tom Tromey <tom@tromey.com>
12214
12215 * dwarf2/read.c (struct line_header) <file_full_name,
12216 file_file_name>: Declare methods.
12217 (dw2_get_file_names_reader): Update.
12218 (file_file_name): Now a method.
12219 (file_full_name): Likewise.
12220 (macro_start_file): Update.
12221
12222 2020-02-08 Tom Tromey <tom@tromey.com>
12223
12224 * dwarf2/read.c (dwarf_always_disassemble)
12225 (show_dwarf_always_disassemble): Move to loc.c.
12226 (_initialize_dwarf2_read): Move "always-disassemble" registration
12227 to loc.c.
12228 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
12229 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
12230 static.
12231 (show_dwarf_always_disassemble): Move from read.c.
12232 (_initialize_dwarf2loc): Move always-disassemble from read.c.
12233
12234 2020-02-08 Tom Tromey <tom@tromey.com>
12235
12236 * dwarf2/read.c (~dwarf2_per_objfile): Update.
12237 (create_quick_file_names_table): Return htab_up.
12238 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
12239 Update.
12240 * dwarf2/read.h (struct dwarf2_per_objfile)
12241 <quick_file_names_table>: Now htab_up.
12242
12243 2020-02-08 Tom Tromey <tom@tromey.com>
12244
12245 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
12246
12247 2020-02-08 Tom Tromey <tom@tromey.com>
12248
12249 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
12250 Rewrite.
12251 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
12252 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
12253 (abbrev_table::abbrev_table): No longer inline.
12254 (ABBREV_HASH_SIZE): Remove.
12255 (abbrev_table::m_abbrevs): Now an htab_up.
12256
12257 2020-02-08 Tom Tromey <tom@tromey.com>
12258
12259 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
12260 (cutu_reader): Update.
12261 (build_type_psymtabs_1): Update.
12262 * dwarf2/abbrev.c (abbrev_table::read): Rename.
12263 (abbrev_table::alloc_abbrev): Update.
12264 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
12265 (abbrev_table::read): New static method, renamed from
12266 abbrev_table_read_table.
12267 (abbrev_table::alloc_abbrev)
12268 (abbrev_table::add_abbrev): Now private.
12269 (abbrev_table::abbrev_table): Now private.
12270 (abbrev_table::m_abbrev_obstack): Now private. Rename.
12271
12272 2020-02-08 Tom Tromey <tom@tromey.com>
12273
12274 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
12275 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
12276 htab_up.
12277
12278 2020-02-08 Tom Tromey <tom@tromey.com>
12279
12280 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
12281 htab_up.
12282 (lookup_dwo_unit_in_dwp): Update.
12283 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
12284 on obstack.
12285
12286 2020-02-08 Tom Tromey <tom@tromey.com>
12287
12288 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
12289 obstack.
12290
12291 2020-02-08 Tom Tromey <tom@tromey.com>
12292
12293 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
12294 line_header_hash.
12295 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
12296 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
12297 Change type to htab_up.
12298
12299 2020-02-08 Tom Tromey <tom@tromey.com>
12300
12301 * dwarf2/read.c (allocate_type_unit_groups_table): Return
12302 htab_up. Don't allocate on obstack.
12303 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
12304 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
12305 Change type to htab_up.
12306
12307 2020-02-08 Tom Tromey <tom@tromey.com>
12308
12309 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
12310 Change type to htab_up.
12311 * dwarf2/read.c (create_signatured_type_table_from_index)
12312 (create_signatured_type_table_from_debug_names)
12313 (create_all_type_units, add_type_unit)
12314 (lookup_dwo_signatured_type, lookup_signatured_type)
12315 (process_skeletonless_type_unit): Update.
12316 (create_debug_type_hash_table, create_debug_types_hash_table):
12317 Change type of types_htab.
12318 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
12319 htab_up. Don't allocate on obstack.
12320 (create_cus_hash_table): Change type of cus_htab parameter.
12321 (struct dwo_file) <cus, tus>: Now htab_up.
12322 (lookup_dwo_signatured_type, lookup_dwo_cutu)
12323 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
12324 (queue_and_load_all_dwo_tus): Update.
12325 * dwarf2/index-write.c (write_gdbindex): Update.
12326 (write_debug_names): Update.
12327
12328 2020-02-08 Tom Tromey <tom@tromey.com>
12329
12330 * dwarf2/read.h (struct dwarf2_queue_item): Move from
12331 dwarf2/read.c. Remove "next" member. Add constructor ntad
12332 destructor.
12333 (struct dwarf2_per_objfile) <queue>: New member.
12334 * dwarf2/read.c (struct dwarf2_queue_item): Move to
12335 dwarf2/read.h.
12336 (dwarf2_queue, dwarf2_queue_tail): Remove.
12337 (class dwarf2_queue_guard): Add parameter to constructor. Use
12338 DISABLE_COPY_AND_ASSIGN.
12339 <m_per_objfile>: New member.
12340 <~dwarf2_queue_guard>: Rewrite.
12341 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
12342 Update.
12343 (~dwarf2_queue_item): New.
12344
12345 2020-02-08 Tom Tromey <tom@tromey.com>
12346
12347 * dwarf2/read.c (struct die_info) <has_children>: New member.
12348 (dw2_get_file_names_reader): Remove has_children.
12349 (dw2_get_file_names): Update.
12350 (read_cutu_die_from_dwo): Remove has_children.
12351 (cutu_reader::init_tu_and_read_dwo_dies)
12352 (cutu_reader::cutu_reader): Update.
12353 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
12354 Remove has_children.
12355 (build_type_psymtabs_1, process_skeletonless_type_unit)
12356 (load_partial_comp_unit, load_full_comp_unit): Update.
12357 (create_dwo_cu_reader): Remove has_children.
12358 (create_cus_hash_table, read_die_and_children): Update.
12359 (read_full_die_1,read_full_die): Remove has_children.
12360 (read_signatured_type): Update.
12361 (class cutu_reader) <has_children>: Remove.
12362
12363 2020-02-08 Tom Tromey <tom@tromey.com>
12364
12365 * dwarf2/expr.c: Rename from dwarf2expr.c.
12366 * dwarf2/expr.h: Rename from dwarf2expr.h.
12367 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
12368 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
12369 * dwarf2/frame.c: Rename from dwarf2-frame.c.
12370 * dwarf2/frame.h: Rename from dwarf2-frame.h.
12371 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
12372 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
12373 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
12374 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
12375 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
12376 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
12377 * dwarf2/loc.c: Rename from dwarf2loc.c.
12378 * dwarf2/loc.h: Rename from dwarf2loc.h.
12379 * dwarf2/read.c: Rename from dwarf2read.c.
12380 * dwarf2/read.h: Rename from dwarf2read.h.
12381 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
12382 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
12383 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
12384 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
12385 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
12386 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
12387 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
12388 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
12389 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
12390 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
12391 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
12392 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
12393 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
12394 Update.
12395 * Makefile.in (COMMON_SFILES): Update.
12396 (HFILES_NO_SRCDIR): Update.
12397
12398 2020-02-08 Tom Tromey <tom@tromey.com>
12399
12400 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
12401 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
12402
12403 2020-02-08 Tom Tromey <tom@tromey.com>
12404
12405 * dwarf2read.h (struct die_info): Don't declare.
12406
12407 2020-02-08 Tom Tromey <tom@tromey.com>
12408
12409 * dwarf2read.h (die_info_ptr): Remove typedef.
12410
12411 2020-02-08 Tom Tromey <tom@tromey.com>
12412
12413 * dwarf2read.c (read_call_site_scope)
12414 (handle_data_member_location, dwarf2_add_member_fn)
12415 (mark_common_block_symbol_computed, read_common_block)
12416 (attr_to_dynamic_prop, partial_die_info::read)
12417 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
12418 (dwarf2_symbol_mark_computed, set_die_type): Update.
12419 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
12420 method.
12421 (attr_form_is_block): Don't declare.
12422 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
12423
12424 2020-02-08 Tom Tromey <tom@tromey.com>
12425
12426 * dwarf2read.c (dwarf2_find_base_address, )
12427 (read_call_site_scope, rust_containing_type)
12428 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
12429 (handle_data_member_location, dwarf2_add_member_fn)
12430 (get_alignment, read_structure_type, process_structure_scope)
12431 (mark_common_block_symbol_computed, read_common_block)
12432 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
12433 (partial_die_info::read, read_attribute_value, new_symbol)
12434 (lookup_die_type, dwarf2_get_ref_die_offset)
12435 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
12436 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
12437 (dwarf2_symbol_mark_computed): Update.
12438 * dwarf2/attribute.h (struct attribute) <value_as_address,
12439 form_is_section_offset, form_is_constant, form_is_ref>: Declare
12440 methods.
12441 (value_as_address, attr_form_is_section_offset)
12442 (attr_form_is_constant, attr_form_is_ref): Don't declare.
12443 * dwarf2/attribute.c (attribute::value_as_address)
12444 (attribute::form_is_section_offset, attribute::form_is_constant)
12445 (attribute::form_is_ref): Now methods.
12446
12447 2020-02-08 Tom Tromey <tom@tromey.com>
12448
12449 * dwarf2read.c (struct attribute, DW_STRING)
12450 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
12451 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
12452 (attr_form_is_block, attr_form_is_section_offset)
12453 (attr_form_is_constant, attr_form_is_ref): Move.
12454 * dwarf2/attribute.h: New file.
12455 * dwarf2/attribute.c: New file, from dwarf2read.c.
12456 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
12457
12458 2020-02-08 Tom Tromey <tom@tromey.com>
12459
12460 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
12461 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
12462 Move.
12463 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
12464 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
12465 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
12466 abbrev.c.
12467 * dwarf2/abbrev.h: New file.
12468 * dwarf2/abbrev.c: New file, from dwarf2read.c.
12469 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
12470
12471 2020-02-08 Tom Tromey <tom@tromey.com>
12472
12473 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
12474 (dwarf2_section_size, dwarf2_get_section_info)
12475 (create_signatured_type_table_from_debug_names)
12476 (create_addrmap_from_aranges, read_debug_names_from_section)
12477 (get_gdb_index_contents_from_section, read_comp_unit_head)
12478 (error_check_comp_unit_head, read_abbrev_offset)
12479 (create_debug_type_hash_table, init_cu_die_reader)
12480 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
12481 (read_comp_units_from_section, create_cus_hash_table)
12482 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
12483 (create_dwp_v2_section, dwarf2_rnglists_process)
12484 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
12485 (abbrev_table_read_table, read_indirect_string_at_offset_from)
12486 (read_indirect_string_from_dwz, read_addr_index_1)
12487 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
12488 (dwarf_decode_macro_bytes, dwarf_decode_macros)
12489 (fill_in_loclist_baton): Update.
12490 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
12491 get_containing_section, get_bfd_owner, get_bfd_section,
12492 get_file_name, get_id, get_flags, empty, read>: Declare methods.
12493 (dwarf2_read_section, get_section_name, get_section_file_name)
12494 (get_containing_section, get_section_bfd_owner)
12495 (get_section_bfd_section, get_section_name, get_section_file_name)
12496 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
12497 declare.
12498 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
12499 (dwarf2_section_info::get_bfd_owner)
12500 (dwarf2_section_info::get_bfd_section)
12501 (dwarf2_section_info::get_name)
12502 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
12503 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
12504 (dwarf2_section_info::read): Now methods.
12505 * dwarf-index-write.c (class debug_names): Update.
12506
12507 2020-02-08 Tom Tromey <tom@tromey.com>
12508
12509 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
12510 Move to dwarf2/section.h.
12511 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
12512 (get_section_bfd_section, get_section_name)
12513 (get_section_file_name, get_section_id, get_section_flags)
12514 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
12515 dwarf2/section.c.
12516 * dwarf2/section.h: New file.
12517 * dwarf2/section.c: New file, from dwarf2read.c.
12518 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
12519
12520 2020-02-08 Tom Tromey <tom@tromey.com>
12521
12522 * dwarf2read.h (read_unsigned_leb128): Don't declare.
12523 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
12524 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
12525 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
12526 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
12527 * dwarf2/leb.h: New file, from dwarf2read.c.
12528 * dwarf2/leb.c: New file, from dwarf2read.c.
12529 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
12530 Remove.
12531 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
12532 (COMMON_SFILES): Add dwarf2/leb.c.
12533
12534 2020-02-08 Joel Brobecker <brobecker@adacore.com>
12535
12536 GDB 9.1 released.
12537
12538 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
12539
12540 PR gdb/25190:
12541 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
12542 * gdb/remote.c (remote_console_output): Update.
12543 * gdb/ui-file.c (fputs_unfiltered): Rename to...
12544 (ui_file_puts): ...this.
12545 * gdb/ui-file.h (ui_file_puts): Add declaration.
12546 * gdb/utils.c (emit_style_escape): Update.
12547 (flush_wrap_buffer): Update.
12548 (fputs_maybe_filtered): Update.
12549 (fputs_unfiltered): Add function.
12550
12551 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
12552
12553 * gdb/event-loop.c (gdb_wait_for_event): Update.
12554 * gdb/printcmd.c (printf_command): Update.
12555 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
12556 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
12557 (gdb_os_flush_stderr): Update.
12558 * gdb/remote.c (remote_console_output): Update.
12559 * gdb/ui-file.c (gdb_flush): Rename to...
12560 (ui_file_flush): ...this.
12561 (stderr_file::write): Update.
12562 (stderr_file::puts): Update.
12563 * gdb/ui-file.h (gdb_flush): Rename to...
12564 (ui_file_flush): ...this.
12565 * gdb/utils.c (gdb_flush): Add function.
12566 * gdb/utils.h (gdb_flush): Add declaration.
12567
12568 2020-02-07 Tom Tromey <tromey@adacore.com>
12569
12570 PR breakpoints/24915:
12571 * source.c (find_and_open_source): Do not check basenames_may_differ.
12572
12573 2020-02-07 Tom Tromey <tom@tromey.com>
12574
12575 * README: Update gdbserver documentation.
12576 * gdbserver: Move to top level.
12577 * configure.tgt (build_gdbserver): Remove.
12578 * configure.ac: Remove --enable-gdbserver.
12579 * configure: Rebuild.
12580 * Makefile.in (distclean): Don't mention gdbserver.
12581
12582 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
12583
12584 * source-cache.c (source_cache::ensure): Surround
12585 get_plain_source_lines with a try/catch.
12586 (source_cache::get_line_charpos): Get rid of try/catch
12587 and only check for the return value of "ensure".
12588 * tui/tui-source.c (tui_source_window::set_contents):
12589 Simplify "nlines" calculation.
12590
12591 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
12592
12593 * MAINTAINERS (Write After Approval): Add myself.
12594
12595 2020-02-05 Christian Biesinger <cbiesinger@google.com>
12596
12597 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
12598 function call.
12599
12600 2020-02-05 Christian Biesinger <cbiesinger@google.com>
12601
12602 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
12603
12604 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
12605
12606 * nat/riscv-linux-tdesc.h: New file.
12607 * nat/riscv-linux-tdesc.c: New file, taking code from...
12608 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
12609 ... here.
12610 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
12611 NATDEPFILES.
12612
12613 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
12614
12615 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
12616 we don't set the fake simulator ptid to the null_ptid.
12617
12618 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
12619
12620 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
12621 * gdbthread.h (class thread_info) <resumed>: Likewise.
12622 * infrun.c (resume_1): Likewise.
12623 (proceed): Likewise.
12624 (infrun_thread_stop_requested): Likewise.
12625 (stop_all_threads): Likewise.
12626 (handle_inferior_event): Likewise.
12627 (restart_threads): Likewise.
12628 (finish_step_over): Likewise.
12629 (keep_going_stepped_thread): Likewise.
12630 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
12631 (linux_handle_extended_wait): Likewise.
12632 * record-btrace.c (get_thread_current_frame_id): Likewise.
12633 * record-full.c (record_full_wait_1): Likewise.
12634 * remote.c (remote_target::process_initial_stop_replies): Likewise.
12635 * target.c (target_resume): Likewise.
12636 * thread.c (set_running_thread): Likewise.
12637
12638 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
12639
12640 * f-valprint.c (f77_print_array_1): Changed datatype of index
12641 variable to LONGEST from int to enable it to contain bound
12642 values correctly.
12643
12644 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
12645
12646 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
12647 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
12648 offsets according to FLEN determined.
12649 (riscv_linux_nat_target::read_description): Determine FLEN
12650 dynamically.
12651 (riscv_linux_nat_target::fetch_registers): Size regset buffer
12652 according to FLEN determined.
12653 (riscv_linux_nat_target::store_registers): Likewise.
12654
12655 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
12656
12657 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
12658 when reg->group is empty and reggroup is not.
12659
12660 2020-01-31 Tom Tromey <tromey@adacore.com>
12661
12662 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
12663 Call beneath target's mourn_inferior after unpushing.
12664
12665 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
12666
12667 PR tui/9765
12668 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
12669 have enough lines to fill the screen, still return the lowest
12670 address we found.
12671
12672 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
12673
12674 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
12675 '-', '<', and '>' commands.
12676
12677 2020-01-29 Pedro Alves <palves@redhat.com>
12678 Sergio Durigan Junior <sergiodj@redhat.com>
12679
12680 * infcmd.c (construct_inferior_arguments): Assert that
12681 'argc' is greater than 0.
12682
12683 2020-01-29 Luis Machado <luis.machado@linaro.org>
12684
12685 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
12686 (BRK_INSN_MASK): Define to 0xd4200000.
12687 (aarch64_program_breakpoint_here_p): New function.
12688 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
12689 * arch-utils.c (default_program_breakpoint_here_p): Moved from
12690 breakpoint.c.
12691 * arch-utils.h (default_program_breakpoint_here_p): Moved from
12692 breakpoint.h
12693 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
12694 call gdbarch_program_breakpoint_here_p.
12695 (program_breakpoint_here): Moved to arch-utils.c, renamed to
12696 default_program_breakpoint_here_p, changed return type to bool and
12697 simplified.
12698 * breakpoint.h (program_breakpoint_here): Moved prototype to
12699 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
12700 return type to bool.
12701 * gdbarch.c: Regenerate.
12702 * gdbarch.h: Regenerate.
12703 * gdbarch.sh (program_breakpoint_here_p): New method.
12704 * infrun.c (handle_signal_stop): Call
12705 gdbarch_program_breakpoint_here_p.
12706
12707 2020-01-26 Tom Tromey <tom@tromey.com>
12708
12709 * ctfread.c (struct ctf_fp_info): Reindent.
12710 (_initialize_ctfread): Remove.
12711
12712 2020-01-26 Tom Tromey <tom@tromey.com>
12713
12714 * psymtab.c (partial_map_expand_apply)
12715 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
12716 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
12717 (psym_print_stats, psym_expand_symtabs_for_function)
12718 (psym_map_symbol_filenames, psym_map_matching_symbols)
12719 (psym_expand_symtabs_matching)
12720 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
12721 (maintenance_check_psymtabs): Use new methods.
12722 * psympriv.h (struct partial_symtab) <readin_p,
12723 get_compunit_symtab>: New methods.
12724 <readin, compunit_symtab>: Remove members.
12725 (struct standard_psymtab): New.
12726 (struct legacy_psymtab): Derive from standard_psymtab.
12727 * dwarf2read.h (struct dwarf2_psymtab): Derive from
12728 standard_psymtab.
12729 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
12730
12731 2020-01-26 Tom Tromey <tom@tromey.com>
12732
12733 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
12734 read_dependencies. Add assert.
12735 * psymtab.c (partial_symtab::read_dependencies): New method.
12736 * psympriv.h (struct partial_symtab) <read_dependencies>: New
12737 method.
12738 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
12739 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
12740 read_dependencies.
12741 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
12742 Add assert.
12743
12744 2020-01-26 Tom Tromey <tom@tromey.com>
12745
12746 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
12747 Call expand_psymtab.
12748 (xcoff_read_symtab): Call expand_psymtab.
12749 (xcoff_start_psymtab, xcoff_end_psymtab): Set
12750 legacy_expand_psymtab.
12751 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
12752 method.
12753 (struct legacy_psymtab) <expand_psymtab>: Implement.
12754 <legacy_expand_psymtab>: New member.
12755 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
12756 (parse_partial_symbols): Set legacy_expand_psymtab.
12757 (psymtab_to_symtab_1): Change argument order. Call
12758 expand_psymtab.
12759 (new_psymtab): Set legacy_expand_psymtab.
12760 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
12761 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
12762 expand_psymtab.
12763 (dwarf2_psymtab::expand_psymtab): Rename from
12764 psymtab_to_symtab_1. Call expand_psymtab.
12765 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
12766 (dbx_end_psymtab): Likewise.
12767 (dbx_psymtab_to_symtab_1): Change argument order. Call
12768 expand_psymtab.
12769 (dbx_read_symtab): Call expand_psymtab.
12770 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
12771 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
12772 (ctf_psymtab::read_symtab): Call expand_psymtab.
12773
12774 2020-01-26 Tom Tromey <tom@tromey.com>
12775
12776 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
12777 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
12778 messages.
12779 * mdebugread.c (mdebug_read_symtab): Remove prints.
12780 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
12781 assert.
12782 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
12783
12784 2020-01-26 Tom Tromey <tom@tromey.com>
12785
12786 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
12787 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
12788 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
12789 legacy_symtab.
12790 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
12791 * psymtab.c (psymtab_to_symtab): Call method.
12792 (dump_psymtab): Update.
12793 * psympriv.h (struct partial_symtab): Add virtual destructor.
12794 <read_symtab>: New method.
12795 (struct legacy_symtab): New.
12796 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
12797 (struct pst_map) <pst>: Now a legacy_psymtab.
12798 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
12799 (new_psymtab): Use legacy_psymtab.
12800 * dwarf2read.h (struct dwarf2_psymtab): New.
12801 (struct dwarf2_per_cu_data) <psymtab>: Use it.
12802 * dwarf2read.c (dwarf2_create_include_psymtab)
12803 (dwarf2_build_include_psymtabs, create_type_unit_group)
12804 (create_partial_symtab, process_psymtab_comp_unit_reader)
12805 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
12806 (set_partial_user): Use dwarf2_psymtab.
12807 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
12808 (psymtab_to_symtab_1, process_full_comp_unit)
12809 (process_full_type_unit, dwarf2_ranges_read)
12810 (dwarf2_get_pc_bounds, psymtab_include_file_name)
12811 (dwarf_decode_lines): Use dwarf2_psymtab.
12812 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
12813 (add_address_entry_worker, write_one_signatured_type)
12814 (recursively_count_psymbols, recursively_write_psymbols)
12815 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
12816 (write_debug_names): Likewise.
12817 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
12818 <pst>: Now a legacy_psymtab.
12819 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
12820 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
12821 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
12822 * ctfread.c (struct ctf_psymtab): New.
12823 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
12824 ctf_psymtab.
12825 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
12826 (create_partial_symtab): Return a ctf_psymtab.
12827 (scan_partial_symbols): Update.
12828
12829 2020-01-26 Tom Tromey <tom@tromey.com>
12830
12831 * xcoffread.c (xcoff_start_psymtab): Use new.
12832 * psymtab.c (partial_symtab::partial_symtab): New constructor,
12833 renamed from start_psymtab_common.
12834 * psympriv.h (struct partial_symtab): Add new constructor.
12835 (start_psymtab_common): Don't declare.
12836 * mdebugread.c (parse_partial_symbols): Use new.
12837 * dwarf2read.c (create_partial_symtab): Use new.
12838 * dbxread.c (start_psymtab): Use new.
12839 * ctfread.c (create_partial_symtab): Use new.
12840
12841 2020-01-26 Tom Tromey <tom@tromey.com>
12842
12843 * xcoffread.c (xcoff_end_psymtab): Use new.
12844 * psymtab.c (start_psymtab_common): Use new.
12845 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
12846 Update.
12847 * psympriv.h (struct partial_symtab): Add parameters to
12848 constructor. Don't inline.
12849 (allocate_psymtab): Don't declare.
12850 * mdebugread.c (new_psymtab): Use new.
12851 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
12852 * dbxread.c (dbx_end_psymtab): Use new.
12853
12854 2020-01-26 Tom Tromey <tom@tromey.com>
12855
12856 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
12857 allocate_psymtab. Update documentation.
12858 * psymtab.c (psymtab_storage::install_psymtab): Rename from
12859 allocate_psymtab. Do not use new.
12860 (allocate_psymtab): Use new. Update.
12861
12862 2020-01-26 Tom Tromey <tom@tromey.com>
12863
12864 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
12865 * psymtab.c (psym_print_stats): Update.
12866 * psympriv.h (struct partial_symtab) <readin,
12867 psymtabs_addrmap_supported, anonymous>: Now bool.
12868 * mdebugread.c (psymtab_to_symtab_1): Update.
12869 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
12870 (build_type_psymtabs_reader, psymtab_to_symtab_1)
12871 (process_full_comp_unit, process_full_type_unit): Update.
12872 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
12873 * ctfread.c (psymtab_to_symtab): Update.
12874
12875 2020-01-26 Tom Tromey <tom@tromey.com>
12876
12877 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
12878 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
12879 * psymtab.c (psymtab_storage): Delete psymtabs.
12880 (psymtab_storage::allocate_psymtab): Use new.
12881 (psymtab_storage::discard_psymtab): Use delete.
12882 * psympriv.h (struct partial_symtab): Add constructor and
12883 initializers.
12884
12885 2020-01-26 Tom Tromey <tom@tromey.com>
12886
12887 * machoread.c: Do not include psympriv.h.
12888
12889 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12890
12891 * NEWS: Mention the new option and the set/show commands.
12892
12893 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12894
12895 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
12896 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
12897 (validate_exec_file): New variables, enums, functions.
12898 (exec_file_locate_attach, print_section_info): Style the filenames.
12899 (_initialize_exec): Install show_exec_file_mismatch_command and
12900 set_exec_file_mismatch_command.
12901 * gdbcore.h (validate_exec_file): Declare.
12902 * infcmd.c (attach_command): Call validate_exec_file.
12903 * remote.c ( remote_target::remote_add_inferior): Likewise.
12904
12905 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12906
12907 * frame.c (find_frame_sal): Move call to get_next_frame into more
12908 inner scope.
12909 * inline-frame.c (inilne_state) <inline_state>: Update argument
12910 types.
12911 (inilne_state) <skipped_symbol>: Rename to...
12912 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
12913 (skip_inline_frames): Build vector of skipped symbols and use this
12914 to reate the inline_state.
12915 (inline_skipped_symbol): Add a comment and some assertions, fetch
12916 skipped symbol from the list.
12917
12918 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12919
12920 * buildsym.c (lte_is_less_than): Delete.
12921 (buildsym_compunit::end_symtab_with_blockvector): Create local
12922 lambda function to sort line table entries, and use
12923 std::stable_sort instead of std::sort.
12924 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
12925 markers when looking for a previous line.
12926
12927 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12928
12929 * dwarf2read.c (lnp_state_machine::record_line): Include
12930 end_sequence parameter in debug print out. Record the line if we
12931 are at an end_sequence marker even if it's not the start of a
12932 statement.
12933 * symmisc.c (maintenance_print_one_line_table): Print end of
12934 sequence markers with 'END' not '0'.
12935
12936 2020-01-24 Pedro Alves <palves@redhat.com>
12937
12938 PR gdb/25410
12939 * thread.c (scoped_restore_current_thread::restore): Use
12940 switch_to_inferior_no_thread.
12941 * exec.c: Include "progspace-and-thread.h".
12942 (add_target_sections, remove_target_sections):
12943 scoped_restore_current_pspace_and_thread instead of
12944 scoped_restore_current_thread.
12945 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
12946 and aspace to the inferior before calling clone_program_space.
12947 Remove stale comment.
12948
12949 2020-01-24 Christian Biesinger <cbiesinger@google.com>
12950
12951 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
12952 (arm_netbsd_nat_target::fetch_registers): ...this.
12953 (arm_nbsd_nat_target::store_registers): Rename to...
12954 (arm_netbsd_nat_target::store_registers): ...this.
12955
12956 2020-01-24 Christian Biesinger <cbiesinger@google.com>
12957
12958 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12959 register_t.
12960
12961 2020-01-24 Christian Biesinger <cbiesinger@google.com>
12962
12963 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
12964 Update comment.
12965 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
12966 Likewise.
12967 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
12968 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
12969 the correct replacement (iterate_over_regset_sections).
12970 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
12971 Update comment.
12972
12973 2020-01-24 Graham Markall <graham.markall@embecosm.com>
12974
12975 PR gdb/23718
12976 * gdb/python/python.c (execute_gdb_command): Call
12977 async_enable_stdin in catch block.
12978
12979 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12980
12981 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
12982 SWITCH_THRU_ALL_UIS.
12983
12984 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12985
12986 PR tui/9765
12987 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
12988 comment, add extra parameter, and update to store previous symbol
12989 when appropriate.
12990 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
12991 add extra parameter.
12992 * tui/tui-disasm.c (tui_disassemble): Update header comment,
12993 remove unneeded parameter, add try/catch around gdb_print_insn,
12994 rewrite to add items to asm_lines vector.
12995 (tui_find_backward_disassembly_start_address): New function.
12996 (tui_find_disassembly_address): Updated throughout.
12997 (tui_disasm_window::set_contents): Update for changes to
12998 tui_disassemble.
12999 (tui_disasm_window::do_scroll_vertical): No need to adjust the
13000 number of lines to scroll.
13001
13002 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
13003
13004 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
13005 (SECT_OFF_DATA): Likewise.
13006 (SECT_OFF_RODATA): Likewise.
13007 (SECT_OFF_TEXT): Likewise.
13008 (SECT_OFF_BSS): Likewise.
13009 (struct objfile) <text_section_offset, data_section_offset>: New
13010 methods.
13011 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
13012 objfile::text_section_offset.
13013 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
13014 * coffread.c (coff_symtab_read): Likewise.
13015 (enter_linenos): Likewise.
13016 (process_coff_symbol): Likewise.
13017 * ctfread.c (get_objfile_text_range): Likewise.
13018 * dtrace-probe.c (dtrace_probe::get_relocated_address):
13019 Use objfile::data_section_offset.
13020 * dwarf2-frame.c (execute_cfa_program): Use
13021 objfile::text_section_offset.
13022 (dwarf2_frame_find_fde): Likewise.
13023 * dwarf2read.c (create_addrmap_from_index): Likewise.
13024 (create_addrmap_from_aranges): Likewise.
13025 (dw2_find_pc_sect_compunit_symtab): Likewise.
13026 (process_psymtab_comp_unit_reader): Likewise.
13027 (add_partial_symbol): Likewise.
13028 (add_partial_subprogram): Likewise.
13029 (process_full_comp_unit): Likewise.
13030 (read_file_scope): Likewise.
13031 (read_func_scope): Likewise.
13032 (read_lexical_block_scope): Likewise.
13033 (read_call_site_scope): Likewise.
13034 (dwarf2_rnglists_process): Likewise.
13035 (dwarf2_ranges_process): Likewise.
13036 (dwarf2_ranges_read): Likewise.
13037 (dwarf_decode_lines_1): Likewise.
13038 (new_symbol): Likewise.
13039 (dwarf2_fetch_die_loc_sect_off): Likewise.
13040 (dwarf2_per_cu_text_offset): Likewise.
13041 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
13042 * hppa-tdep.c (read_unwind_info): Likewise.
13043 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
13044 * psympriv.h (struct partial_symtab): Likewise.
13045 * psymtab.c (find_pc_sect_psymtab): Likewise.
13046 * solib-svr4.c (enable_break): Likewise.
13047 * stap-probe.c (relocate_address): Use
13048 objfile::data_section_offset.
13049 * xcoffread.c (enter_line_range): Use
13050 objfile::text_section_offset.
13051 (read_xcoff_symtab): Likewise.
13052
13053 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
13054
13055 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
13056 declaration to narrower scopes.
13057
13058 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
13059
13060 * darwin-nat.h (struct darwin_exception_msg, enum
13061 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
13062 Move up.
13063 (class darwin_nat_target) <wait_1, check_new_threads,
13064 decode_exception_message, decode_message, stop_inferior,
13065 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
13066 * darwin-nat.c (darwin_check_new_threads): Rename to...
13067 (darwin_nat_target::check_new_threads): ... this.
13068 (darwin_suspend_inferior_it): Remove.
13069 (darwin_decode_exception_message): Rename to...
13070 (darwin_nat_target::decode_exception_message): ... this.
13071 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
13072 (darwin_decode_message): Rename to...
13073 (darwin_nat_target::decode_message): ... this.
13074 (cancel_breakpoint): Rename to...
13075 (darwin_nat_target::cancel_breakpoint): ... this.
13076 (darwin_wait): Rename to...
13077 (darwin_nat_target::wait_1): ... this. Use range-based for loop
13078 instead of iterate_over_inferiors.
13079 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
13080 (darwin_stop_inferior): Rename to...
13081 (darwin_nat_target::stop_inferior): ... this.
13082 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
13083 (darwin_init_thread_list): Rename to...
13084 (darwin_nat_target::init_thread_list): ... this.
13085 (darwin_ptrace_him): Rename to...
13086 (darwin_nat_target::ptrace_him): ... this.
13087 (darwin_nat_target::create_inferior): Pass lambda function to
13088 fork_inferior.
13089 (darwin_nat_target::detach): Call stop_inferior instead of
13090 darwin_stop_inferior.
13091 * fork-inferior.h (fork_inferior): Change init_trace_fun
13092 parameter to gdb::function_view.
13093 * fork-inferior.c (fork_inferior): Likewise.
13094
13095 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
13096
13097 * i386-cygwin-tdep.c (core_process_module_section): Update.
13098 * windows-nat.c (struct lm_info_windows): Add text_offset.
13099 (windows_xfer_shared_libraries): Update.
13100 * windows-tdep.c (windows_xfer_shared_library):
13101 Add text_offset_cached argument.
13102 * windows-tdep.h (windows_xfer_shared_library): Update.
13103
13104 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
13105
13106 * gdbarch.sh: Add declaration for _initialize_gdbarch.
13107
13108 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
13109
13110 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
13111 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
13112 replace with range-based for.
13113 (gdbsim_interrupt_inferior): Remove.
13114 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
13115 with a range-based for. Inline code from
13116 gdbsim_interrupt_inferior.
13117
13118 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
13119
13120 * infrun.c (proceed): Fix indentation.
13121
13122 2020-01-21 Tom Tromey <tromey@adacore.com>
13123
13124 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
13125 * python/python.c (python_extension_ops): Update.
13126 (gdbpy_colorize): New function.
13127 * python/lib/gdb/__init__.py (colorize): New function.
13128 * extension.h (ext_lang_colorize): Declare.
13129 * extension.c (ext_lang_colorize): New function.
13130 * extension-priv.h (struct extension_language_ops) <colorize>: New
13131 member.
13132 * cli/cli-style.c (_initialize_cli_style): Update help text.
13133
13134 2020-01-21 Luis Machado <luis.machado@linaro.org>
13135
13136 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
13137 <cond>: Change type to bool.
13138 (aarch64_displaced_step_b_cond): Update cond to use bool type.
13139 (aarch64_displaced_step_cb): Likewise.
13140 (aarch64_displaced_step_tb): Likewise.
13141
13142 2020-01-21 Luis Machado <luis.machado@linaro.org>
13143
13144 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
13145 output.
13146
13147 2020-01-21 Luis Machado <luis.machado@linaro.org>
13148
13149 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
13150 <pc_adjust>: Adjust the documentation.
13151 (aarch64_displaced_step_fixup): Check if PC really moved before
13152 adjusting it.
13153
13154 2020-01-19 Tom Tromey <tom@tromey.com>
13155
13156 * disasm.c (~gdb_disassembler): New destructor.
13157 (gdb_buffered_insn_length): Call disassemble_free_target.
13158 * disasm.h (class gdb_disassembler): Declare destructor. Use
13159 DISABLE_COPY_AND_ASSIGN.
13160
13161 2020-01-19 Tom Tromey <tom@tromey.com>
13162
13163 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
13164 (die_reader_func_ftype): Remove.
13165 (cutu_reader): New class.
13166 (dw2_get_file_names_reader): Remove "data" parameter.
13167 (dw2_get_file_names): Use cutu_reader.
13168 (create_debug_type_hash_table): Update.
13169 (read_cutu_die_from_dwo): Update comment.
13170 (lookup_dwo_unit): Add dwo_name parameter.
13171 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
13172 die_reader_func_ftype and data parameters.
13173 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
13174 Remove die_reader_func_ftype and data parameters.
13175 (~cutu_reader): New; from init_cutu_and_read_dies.
13176 (cutu_reader::cutu_reader): Rename from
13177 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
13178 and data parameters.
13179 (init_cutu_and_read_dies_simple): Remove.
13180 (struct process_psymtab_comp_unit_data): Remove.
13181 (process_psymtab_comp_unit_reader): Remove data parameter; add
13182 want_partial_unit and pretend_language parameters.
13183 (process_psymtab_comp_unit): Use cutu_reader.
13184 (build_type_psymtabs_reader): Remove data parameter.
13185 (build_type_psymtabs_1): Use cutu_reader.
13186 (process_skeletonless_type_unit): Likewise.
13187 (load_partial_comp_unit_reader): Remove.
13188 (load_partial_comp_unit): Use cutu_reader.
13189 (load_full_comp_unit_reader): Remove.
13190 (load_full_comp_unit): Use cutu_reader.
13191 (struct create_dwo_cu_data): Remove.
13192 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
13193 dwo_unit parameters.
13194 (create_cus_hash_table): Use cutu_reader.
13195 (struct dwarf2_read_addr_index_data): Remove.
13196 (dwarf2_read_addr_index_reader): Remove.
13197 (dwarf2_read_addr_index): Use cutu_reader.
13198 (read_signatured_type_reader): Remove.
13199 (read_signatured_type): Use cutu_reader.
13200
13201 2020-01-19 Tom Tromey <tom@tromey.com>
13202
13203 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
13204 * tui/tui-wingeneral.h (class tui_suppress_output): New.
13205 (tui_wrefresh): Declare.
13206 * tui/tui-wingeneral.c (suppress_output): New global.
13207 (tui_suppress_output, ~tui_suppress_output): New constructor and
13208 destructor.
13209 (tui_wrefresh): New function.
13210 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
13211 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
13212 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
13213 method.
13214 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
13215 tui_wrefresh.
13216 (tui_data_window::no_refresh): New method.
13217 (tui_data_item_window::refresh_window): Call tui_wrefresh.
13218 (tui_reg_command): Use tui_suppress_output
13219 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
13220 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
13221 method.
13222 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
13223
13224 2020-01-19 Tom Tromey <tom@tromey.com>
13225
13226 * tui/tui-winsource.c (tui_update_source_windows_with_line):
13227 Handle case where symtab is null.
13228
13229 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
13230
13231 * linux-fork.c (one_fork_p): Simplify.
13232
13233 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
13234
13235 * top.c (struct qt_args): Remove.
13236 (kill_or_detach): Change return type to void, replace `void *`
13237 parameter with a proper one.
13238 (print_inferior_quit_action): Likewise.
13239 (quit_confirm): Use range-based for loop to iterate over inferiors.
13240 (quit_force): Likewise.
13241
13242 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
13243
13244 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
13245 `void *` parameter with proper parameters.
13246 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
13247 (print_one_inferior): Change return type to void, replace `void *`
13248 parameter with proper parameters.
13249 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
13250 inferiors.
13251 (get_other_inferior): Remove.
13252 (mi_cmd_remove_inferior): Use range-based loop to iterate over
13253 inferiors.
13254
13255 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
13256
13257 * mi/mi-interp.c (report_initial_inferior): Remove.
13258 (mi_interp::init): Use range-based for to iterate over inferiors.
13259
13260 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
13261
13262 * python/py-inferior.c (build_inferior_list): Remove.
13263 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
13264
13265 2020-01-16 Christian Biesinger <cbiesinger@google.com>
13266
13267 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
13268 (btrace_stitch_trace): Likewise.
13269 * charset.c (intermediate_encoding): Likewise (vaild).
13270 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
13271 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
13272 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
13273
13274 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
13275
13276 * windows-tdep.c (windows_get_tlb_type):
13277 Add rtl_user_process_parameters type.
13278
13279 2020-01-16 Pedro Alves <palves@redhat.com>
13280 Norbert Lange <nolange79@gmail.com>
13281
13282 PR build/24805
13283 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
13284 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
13285 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
13286 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
13287 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
13288 (ps_plog): Redeclare exported functions with default visibility.
13289
13290 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
13291
13292 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
13293 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
13294
13295 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
13296
13297 * infcmd.c (post_create_inferior): Use get_thread_regcache
13298 instead of get_current_regcache.
13299
13300 2020-01-14 Tom Tromey <tom@tromey.com>
13301
13302 PR symtab/12535:
13303 * python/python.c (gdbpy_decode_line): Treat empty string the same
13304 as no argument.
13305
13306 2020-01-14 Tom Tromey <tom@tromey.com>
13307
13308 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
13309
13310 2020-01-14 Tom Tromey <tom@tromey.com>
13311
13312 * nat/linux-btrace.c: Don't include <config.h>.
13313 * nat/linux-ptrace.c: Don't include <config.h>.
13314 * nat/x86-linux-dregs.c: Don't include <config.h>.
13315
13316 2020-01-14 Tom Tromey <tom@tromey.com>
13317
13318 * configure: Rebuild.
13319 * configure.ac: Move many checks to ../gdbsupport/common.m4.
13320
13321 2020-01-14 Tom Tromey <tom@tromey.com>
13322
13323 * nat/x86-linux-dregs.c: Include configh.h.
13324 * nat/linux-ptrace.c: Include configh.h.
13325 * nat/linux-btrace.c: Include configh.h.
13326 * defs.h: Include config.h, bfd.h.
13327 * configure.ac: Don't source common.host.
13328 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
13329 * configure: Rebuild.
13330 * acinclude.m4: Update path.
13331 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
13332 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
13333 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
13334 (CLIBS): Add LIBSUPPORT.
13335 (CDEPS): Likewise.
13336 (COMMON_SFILES): Remove gdbsupport files.
13337 (HFILES_NO_SRCDIR): Likewise.
13338 (stamp-version): Update path to create-version.sh.
13339 (ALLDEPFILES): Remove gdbsupport files.
13340
13341 2020-01-14 Tom Tromey <tom@tromey.com>
13342
13343 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
13344 USE_WIN32API when needed.
13345 * configure.ac (USE_WIN32API): Don't define.
13346 (WIN32LIBS): Use WIN32APILIBS.
13347 * configure: Rebuild.
13348
13349 2020-01-14 Tom Tromey <tom@tromey.com>
13350
13351 * configure: Rebuild.
13352 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
13353
13354 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
13355
13356 * skip.c (skip_function_command): Make skip w/o arguments use the
13357 name of the inlined function if pc is inside any inlined function.
13358
13359 2020-01-14 Luis Machado <luis.machado@linaro.org>
13360
13361 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
13362 * infrun.c (resume_1): Likewise.
13363 (handle_inferior_event): Remove stale comment.
13364 * linux-nat.c (linux_nat_target::resume): Update comments.
13365 (save_stop_reason): Likewise.
13366 (linux_nat_filter_event): Likewise.
13367 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
13368
13369 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
13370
13371 * elfread.c (record_minimal_symbol): Set section index to 0 for
13372 non-allocatable sections.
13373
13374
13375 2020-01-13 Ali Tamur <tamur@google.com>
13376
13377 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
13378 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
13379 to gdb::optional. Update comments.
13380 (dwo_file): Update comments.
13381 (read_attribute): Update API to take an additional out parameter,
13382 need_reprocess. This is used to mark attributes that need other
13383 attributes (e.g. str_offsets_base) for correct computation which may not
13384 have been read yet.
13385 (read_attribute_reprocess): New function declaration.
13386 (read_addr_index): Likewise.
13387 (read_dwo_str_index): Likewise.
13388 (read_stub_str_index): Likewise.
13389 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
13390 (lookup_addr_base): New function definition.
13391 (lookup_ranges_base): Likewise.
13392 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
13393 lookup_ranges_base.
13394 (init_cutu_and_read_dies): Update comments.
13395 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
13396 unit. This is used to inherit parent's str_offsets_base and addr_base.
13397 Update comments.
13398 (init_cutu_and_read_dies_simple): Reflect API changes.
13399 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
13400 (create_cus_hash_table): Change API to take parent compile unit.
13401 Reflect API changes.
13402 (open_and_init_dwo_file): Reflect API changes.
13403 (dwarf2_get_pc_bounds): Update comments.
13404 (dwarf2_record_block_ranges): Likewise.
13405 (read_full_die_1): Change implementation to reprocess attributes that
13406 need str_offsets_base and addr_base.
13407 (partial_die_info::read): Likewise.
13408 (read_attribute_reprocess): New function definition.
13409 (read_attribute_value): Change API to take an additional out parameter,
13410 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
13411 when a non-dwo compile unit has index based attributes.
13412 (read_attribute): Reflect API changes.
13413 (read_addr_index_1): Reflect API changes. Update comments.
13414 (dwarf2_read_addr_index_data): Reflect API changes.
13415 (dwarf2_read_addr_index): Likewise.
13416 (read_str_index): Change API and implementation. This becomes a helper
13417 to be used by the new string index related methods. Update error
13418 message and comments.
13419 (read_dwo_str_index): New function definition.
13420 (read_stub_str_index): Likewise.
13421 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
13422 * symfile.h (dwarf2_debug_sections): Likewise.
13423 * xcoffread.c (dwarf2_debug_sections): Likewise.
13424
13425 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
13426
13427 * gdbcore.h (struct core_fns) <core_read_registers>: Change
13428 core_reg_sect type to gdb_byte *.
13429 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
13430 * cris-tdep.c (fetch_core_registers): Likewise.
13431 * corelow.c (core_target::get_core_register_section): Change
13432 type of `contents` to gdb::byte_vector.
13433
13434 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
13435
13436 * tui/tui-wingeneral.c (box_win): Position the title in the center
13437 of the border.
13438
13439 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13440
13441 * corelow.c (core_target::get_core_register_section): Use
13442 std::vector instead of alloca.
13443
13444 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
13445
13446 * warning.m4: Add -Wmissing-declarations to build_warnings.
13447 * configure: Re-generate.
13448
13449 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
13450
13451 * python/python.c (init__gdb_module): Add declaration.
13452
13453 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
13454
13455 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
13456 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
13457 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
13458 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
13459 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
13460 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
13461 * ada-exp.y (_initialize_ada_exp): Add declaration.
13462 * ada-lang.c (_initialize_ada_language): Add declaration.
13463 * ada-tasks.c (_initialize_tasks): Add declaration.
13464 * agent.c (_initialize_agent): Add declaration.
13465 * aix-thread.c (_initialize_aix_thread): Add declaration.
13466 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
13467 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
13468 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
13469 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
13470 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
13471 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
13472 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
13473 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
13474 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
13475 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
13476 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
13477 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
13478 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
13479 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
13480 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
13481 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
13482 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
13483 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
13484 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
13485 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
13486 * annotate.c (_initialize_annotate): Add declaration.
13487 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
13488 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
13489 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
13490 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
13491 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
13492 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
13493 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
13494 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
13495 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
13496 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
13497 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
13498 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
13499 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
13500 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
13501 * auto-load.c (_initialize_auto_load): Add declaration.
13502 * auxv.c (_initialize_auxv): Add declaration.
13503 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
13504 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
13505 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
13506 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
13507 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
13508 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
13509 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
13510 * breakpoint.c (_initialize_breakpoint): Add declaration.
13511 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
13512 * btrace.c (_initialize_btrace): Add declaration.
13513 * charset.c (_initialize_charset): Add declaration.
13514 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
13515 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
13516 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
13517 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
13518 * cli/cli-script.c (_initialize_cli_script): Add declaration.
13519 * cli/cli-style.c (_initialize_cli_style): Add declaration.
13520 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
13521 * coffread.c (_initialize_coffread): Add declaration.
13522 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
13523 * compile/compile.c (_initialize_compile): Add declaration.
13524 * complaints.c (_initialize_complaints): Add declaration.
13525 * completer.c (_initialize_completer): Add declaration.
13526 * copying.c (_initialize_copying): Add declaration.
13527 * corefile.c (_initialize_core): Add declaration.
13528 * corelow.c (_initialize_corelow): Add declaration.
13529 * cp-abi.c (_initialize_cp_abi): Add declaration.
13530 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
13531 * cp-support.c (_initialize_cp_support): Add declaration.
13532 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
13533 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
13534 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
13535 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
13536 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
13537 * ctfread.c (_initialize_ctfread): Add declaration.
13538 * d-lang.c (_initialize_d_language): Add declaration.
13539 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
13540 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
13541 * dbxread.c (_initialize_dbxread): Add declaration.
13542 * dcache.c (_initialize_dcache): Add declaration.
13543 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
13544 * disasm.c (_initialize_disasm): Add declaration.
13545 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
13546 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
13547 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
13548 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
13549 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
13550 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
13551 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
13552 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
13553 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
13554 * elfread.c (_initialize_elfread): Add declaration.
13555 * exec.c (_initialize_exec): Add declaration.
13556 * extension.c (_initialize_extension): Add declaration.
13557 * f-lang.c (_initialize_f_language): Add declaration.
13558 * f-valprint.c (_initialize_f_valprint): Add declaration.
13559 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
13560 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
13561 * filesystem.c (_initialize_filesystem): Add declaration.
13562 * findcmd.c (_initialize_mem_search): Add declaration.
13563 * findvar.c (_initialize_findvar): Add declaration.
13564 * fork-child.c (_initialize_fork_child): Add declaration.
13565 * frame-base.c (_initialize_frame_base): Add declaration.
13566 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
13567 * frame.c (_initialize_frame): Add declaration.
13568 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
13569 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
13570 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
13571 * gcore.c (_initialize_gcore): Add declaration.
13572 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
13573 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
13574 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
13575 * gdbarch.c (_initialize_gdbarch): Add declaration.
13576 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
13577 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
13578 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
13579 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
13580 * go-lang.c (_initialize_go_language): Add declaration.
13581 * go32-nat.c (_initialize_go32_nat): Add declaration.
13582 * guile/guile.c (_initialize_guile): Add declaration.
13583 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
13584 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
13585 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
13586 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
13587 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
13588 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
13589 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
13590 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
13591 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
13592 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
13593 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
13594 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
13595 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
13596 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
13597 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
13598 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
13599 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
13600 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
13601 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
13602 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
13603 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
13604 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
13605 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
13606 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
13607 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
13608 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
13609 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
13610 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
13611 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
13612 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
13613 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
13614 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
13615 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
13616 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
13617 * infcall.c (_initialize_infcall): Add declaration.
13618 * infcmd.c (_initialize_infcmd): Add declaration.
13619 * inflow.c (_initialize_inflow): Add declaration.
13620 * infrun.c (_initialize_infrun): Add declaration.
13621 * interps.c (_initialize_interpreter): Add declaration.
13622 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
13623 * jit.c (_initialize_jit): Add declaration.
13624 * language.c (_initialize_language): Add declaration.
13625 * linux-fork.c (_initialize_linux_fork): Add declaration.
13626 * linux-nat.c (_initialize_linux_nat): Add declaration.
13627 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
13628 * linux-thread-db.c (_initialize_thread_db): Add declaration.
13629 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
13630 * m2-lang.c (_initialize_m2_language): Add declaration.
13631 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
13632 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
13633 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
13634 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
13635 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
13636 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
13637 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
13638 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
13639 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
13640 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
13641 * machoread.c (_initialize_machoread): Add declaration.
13642 * macrocmd.c (_initialize_macrocmd): Add declaration.
13643 * macroscope.c (_initialize_macroscope): Add declaration.
13644 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
13645 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
13646 * maint.c (_initialize_maint_cmds): Add declaration.
13647 * mdebugread.c (_initialize_mdebugread): Add declaration.
13648 * memattr.c (_initialize_mem): Add declaration.
13649 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
13650 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
13651 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
13652 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
13653 * mi/mi-main.c (_initialize_mi_main): Add declaration.
13654 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
13655 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
13656 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
13657 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
13658 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
13659 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
13660 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
13661 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
13662 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
13663 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
13664 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
13665 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
13666 * mipsread.c (_initialize_mipsread): Add declaration.
13667 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
13668 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
13669 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
13670 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
13671 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
13672 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
13673 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
13674 * nto-procfs.c (_initialize_procfs): Add declaration.
13675 * objc-lang.c (_initialize_objc_language): Add declaration.
13676 * observable.c (_initialize_observer): Add declaration.
13677 * opencl-lang.c (_initialize_opencl_language): Add declaration.
13678 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
13679 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
13680 * osabi.c (_initialize_gdb_osabi): Add declaration.
13681 * osdata.c (_initialize_osdata): Add declaration.
13682 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
13683 * parse.c (_initialize_parse): Add declaration.
13684 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
13685 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
13686 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
13687 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
13688 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
13689 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
13690 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
13691 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
13692 * printcmd.c (_initialize_printcmd): Add declaration.
13693 * probe.c (_initialize_probe): Add declaration.
13694 * proc-api.c (_initialize_proc_api): Add declaration.
13695 * proc-events.c (_initialize_proc_events): Add declaration.
13696 * proc-service.c (_initialize_proc_service): Add declaration.
13697 * procfs.c (_initialize_procfs): Add declaration.
13698 * producer.c (_initialize_producer): Add declaration.
13699 * psymtab.c (_initialize_psymtab): Add declaration.
13700 * python/python.c (_initialize_python): Add declaration.
13701 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
13702 * record-btrace.c (_initialize_record_btrace): Add declaration.
13703 * record-full.c (_initialize_record_full): Add declaration.
13704 * record.c (_initialize_record): Add declaration.
13705 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
13706 * regcache.c (_initialize_regcache): Add declaration.
13707 * reggroups.c (_initialize_reggroup): Add declaration.
13708 * remote-notif.c (_initialize_notif): Add declaration.
13709 * remote-sim.c (_initialize_remote_sim): Add declaration.
13710 * remote.c (_initialize_remote): Add declaration.
13711 * reverse.c (_initialize_reverse): Add declaration.
13712 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
13713 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
13714 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
13715 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
13716 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
13717 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
13718 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
13719 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
13720 Add declaration.
13721 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
13722 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
13723 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
13724 * rust-exp.y (_initialize_rust_exp): Add declaration.
13725 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
13726 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
13727 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
13728 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
13729 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
13730 * score-tdep.c (_initialize_score_tdep): Add declaration.
13731 * ser-go32.c (_initialize_ser_dos): Add declaration.
13732 * ser-mingw.c (_initialize_ser_windows): Add declaration.
13733 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
13734 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
13735 * ser-uds.c (_initialize_ser_socket): Add declaration.
13736 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
13737 * serial.c (_initialize_serial): Add declaration.
13738 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
13739 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
13740 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
13741 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
13742 * skip.c (_initialize_step_skip): Add declaration.
13743 * sol-thread.c (_initialize_sol_thread): Add declaration.
13744 * solib-aix.c (_initialize_solib_aix): Add declaration.
13745 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
13746 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
13747 * solib-frv.c (_initialize_frv_solib): Add declaration.
13748 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
13749 * solib-target.c (_initialize_solib_target): Add declaration.
13750 * solib.c (_initialize_solib): Add declaration.
13751 * source-cache.c (_initialize_source_cache): Add declaration.
13752 * source.c (_initialize_source): Add declaration.
13753 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
13754 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
13755 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
13756 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
13757 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
13758 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
13759 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
13760 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
13761 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
13762 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
13763 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
13764 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
13765 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
13766 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
13767 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
13768 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
13769 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
13770 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
13771 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
13772 * stabsread.c (_initialize_stabsread): Add declaration.
13773 * stack.c (_initialize_stack): Add declaration.
13774 * stap-probe.c (_initialize_stap_probe): Add declaration.
13775 * std-regs.c (_initialize_frame_reg): Add declaration.
13776 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
13777 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
13778 * symfile.c (_initialize_symfile): Add declaration.
13779 * symmisc.c (_initialize_symmisc): Add declaration.
13780 * symtab.c (_initialize_symtab): Add declaration.
13781 * target.c (_initialize_target): Add declaration.
13782 * target-connection.c (_initialize_target_connection): Add
13783 declaration.
13784 * target-dcache.c (_initialize_target_dcache): Add declaration.
13785 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
13786 * thread.c (_initialize_thread): Add declaration.
13787 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
13788 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
13789 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
13790 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
13791 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
13792 * tracectf.c (_initialize_ctf): Add declaration.
13793 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
13794 * tracefile.c (_initialize_tracefile): Add declaration.
13795 * tracepoint.c (_initialize_tracepoint): Add declaration.
13796 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
13797 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
13798 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
13799 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
13800 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
13801 * tui/tui-win.c (_initialize_tui_win): Add declaration.
13802 * tui/tui.c (_initialize_tui): Add declaration.
13803 * typeprint.c (_initialize_typeprint): Add declaration.
13804 * ui-style.c (_initialize_ui_style): Add declaration.
13805 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
13806 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
13807 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
13808 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
13809 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
13810 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
13811 * unittests/filtered_iterator-selftests.c
13812 (_initialize_filtered_iterator_selftests): Add declaration.
13813 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
13814 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
13815 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
13816 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
13817 * unittests/main-thread-selftests.c
13818 (_initialize_main_thread_selftests): Add declaration.
13819 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
13820 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
13821 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
13822 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
13823 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
13824 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
13825 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
13826 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
13827 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
13828 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
13829 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
13830 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
13831 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
13832 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
13833 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
13834 declaration.
13835 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
13836 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
13837 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
13838 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
13839 * user-regs.c (_initialize_user_regs): Add declaration.
13840 * utils.c (_initialize_utils): Add declaration.
13841 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
13842 * valops.c (_initialize_valops): Add declaration.
13843 * valprint.c (_initialize_valprint): Add declaration.
13844 * value.c (_initialize_values): Add declaration.
13845 * varobj.c (_initialize_varobj): Add declaration.
13846 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
13847 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
13848 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
13849 * windows-nat.c (_initialize_windows_nat): Add declaration.
13850 (_initialize_check_for_gdb_ini): Add declaration.
13851 (_initialize_loadable): Add declaration.
13852 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
13853 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
13854 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
13855 * xcoffread.c (_initialize_xcoffread): Add declaration.
13856 * xml-support.c (_initialize_xml_support): Add declaration.
13857 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
13858 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
13859 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
13860 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
13861
13862 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13863
13864 * regformats/regdat.sh: Generate declaration for init function.
13865
13866 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13867
13868 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
13869 up.
13870 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
13871 close_one_inferior>: New methods.
13872 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
13873 pass down target to find_inferior_pid.
13874 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
13875 Pass down target to find_inferior_ptid.
13876 (gdbsim_target::create_inferior): Pass down target to
13877 add_thread_silent.
13878 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
13879 target down to find_inferior_ptid and switch_to_thread.
13880 (gdbsim_target::close): Update to call close_one_inferior.
13881 (struct resume_data): Remove.
13882 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
13883 directly, rather than through a void pointer.
13884 (gdbsim_target::resume): Update to call resume_one_inferior.
13885
13886 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
13887
13888 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
13889
13890 2020-01-12 Pedro Alves <palves@redhat.com>
13891
13892 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
13893 directly for the current inferior instead of
13894 discard_all_inferiors.
13895 (discard_all_inferiors): Delete.
13896
13897 2020-01-11 Tom Tromey <tom@tromey.com>
13898
13899 * tui/tui-wingeneral.c (box_win): Check cli_styling.
13900 * tui/tui-winsource.c (tui_source_window_base::refill): Use
13901 deprecated_safe_get_selected_frame.
13902
13903 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13904
13905 * inferior.c (print_inferior): Switch inferior before printing it.
13906
13907 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
13908 Pedro Alves <palves@redhat.com>
13909
13910 * progspace-and-thread.c (switch_to_program_space_and_thread):
13911 Assert there's an inferior for PSPACE. Use
13912 switch_to_inferior_no_thread to switch the inferior too.
13913 * progspace.c (program_space::~program_space): Call
13914 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
13915 (program_space::free_all_objfiles): Don't call clear_symtab_users
13916 here.
13917 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
13918
13919 2020-01-10 Pedro Alves <palves@redhat.com>
13920
13921 * NEWS: Mention multi-target debugging, "info connections", and
13922 "add-inferior -no-connection".
13923
13924 2020-01-10 Pedro Alves <palves@redhat.com>
13925
13926 * infrun.c: Include "target-connection.h".
13927 (check_multi_target_resumption): New.
13928 (proceed): Call it.
13929 * target-connection.c (make_target_connection_string): Make
13930 extern.
13931 * target-connection.h (make_target_connection_string): Declare.
13932
13933 2020-01-10 Pedro Alves <palves@redhat.com>
13934
13935 * Makefile.in (COMMON_SFILES): Add target-connection.c.
13936 * inferior.c (uiout_field_connection): New function.
13937 (print_inferior): Add new "connection-id" column.
13938 (add_inferior_command): Show connection number/string of added
13939 inferior.
13940 * process-stratum-target.h
13941 (process_stratum_target::connection_string): New virtual method.
13942 (process_stratum_target::connection_number): New field.
13943 * remote.c (remote_target::connection_string): New override.
13944 * target-connection.c: New file.
13945 * target-connection.h: New file.
13946 * target.c (decref_target): Remove process_stratum targets from
13947 the connection list.
13948 (target_stack::push): Add process_stratum targets to the
13949 connection list.
13950
13951 2020-01-10 Pedro Alves <palves@redhat.com>
13952
13953 Revert:
13954 2016-04-12 Pedro Alves <palves@redhat.com>
13955 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
13956 Remove references to name.
13957 * serial.h (struct serial) <name>: Delete.
13958
13959 2020-01-10 Pedro Alves <palves@redhat.com>
13960
13961 * gdbarch-selftests.c (register_to_value_test): Remove "target
13962 already pushed" check.
13963
13964 2020-01-10 Pedro Alves <palves@redhat.com>
13965 John Baldwin <jhb@FreeBSD.org>
13966
13967 * aarch64-linux-nat.c
13968 (aarch64_linux_nat_target::thread_architecture): Adjust.
13969 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
13970 (task_command_1): Likewise.
13971 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
13972 (aix_thread_target::wait, aix_thread_target::fetch_registers)
13973 (aix_thread_target::store_registers)
13974 (aix_thread_target::thread_alive): Adjust.
13975 * amd64-fbsd-tdep.c: Include "inferior.h".
13976 (amd64fbsd_get_thread_local_address): Pass down target.
13977 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
13978 thread's gdbarch instead of target_gdbarch.
13979 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
13980 get_last_target_status.
13981 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
13982 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
13983 inferiors.
13984 (update_inserted_breakpoint_locations): Skip if inferiors with no
13985 execution.
13986 (update_global_location_list): When handling moribund locations,
13987 find representative inferior for location's pspace, and use thread
13988 count of its process_stratum target.
13989 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
13990 * bsd-uthread.c (bsd_uthread_target::wait): Use
13991 as_process_stratum_target and adjust thread_change_ptid and
13992 add_thread calls.
13993 (bsd_uthread_target::update_thread_list): Use
13994 as_process_stratum_target and adjust find_thread_ptid,
13995 thread_change_ptid and add_thread calls.
13996 * btrace.c (maint_btrace_packet_history_cmd): Adjust
13997 find_thread_ptid call.
13998 * corelow.c (add_to_thread_list): Adjust add_thread call.
13999 (core_target_open): Adjust add_thread_silent and thread_count
14000 calls.
14001 (core_target::pid_to_str): Adjust find_inferior_ptid call.
14002 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
14003 * event-top.c (async_disconnect): Pop targets from all inferiors.
14004 * exec.c (add_target_sections): Push exec target on all inferiors
14005 sharing the program space.
14006 (remove_target_sections): Remove the exec target from all
14007 inferiors sharing the program space.
14008 (exec_on_vfork): New.
14009 * exec.h (exec_on_vfork): Declare.
14010 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
14011 Pass it down.
14012 (fbsd_nat_target::update_thread_list): Adjust.
14013 (fbsd_nat_target::resume): Adjust.
14014 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
14015 down.
14016 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
14017 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
14018 get_thread_arch_regcache call.
14019 * fork-child.c (gdb_startup_inferior): Pass target down to
14020 startup_inferior and set_executing.
14021 * gdbthread.h (struct process_stratum_target): Forward declare.
14022 (add_thread, add_thread_silent, add_thread_with_info)
14023 (in_thread_list): Add process_stratum_target parameter.
14024 (find_thread_ptid(inferior*, ptid_t)): New overload.
14025 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
14026 parameter.
14027 (all_threads()): Delete overload.
14028 (all_threads, all_non_exited_threads): Add process_stratum_target
14029 parameter.
14030 (all_threads_safe): Use brace initialization.
14031 (thread_count): Add process_stratum_target parameter.
14032 (set_resumed, set_running, set_stop_requested, set_executing)
14033 (threads_are_executing, finish_thread_state): Add
14034 process_stratum_target parameter.
14035 (switch_to_thread): Use is_current_thread.
14036 * i386-fbsd-tdep.c: Include "inferior.h".
14037 (i386fbsd_get_thread_local_address): Pass down target.
14038 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
14039 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
14040 have_inferiors check.
14041 * inf-ptrace.c (inf_ptrace_target::create_inferior)
14042 (inf_ptrace_target::attach): Adjust.
14043 * infcall.c (run_inferior_call): Adjust.
14044 * infcmd.c (run_command_1): Pass target to
14045 scoped_finish_thread_state.
14046 (proceed_thread_callback): Skip inferiors with no execution.
14047 (continue_command): Rename 'all_threads' local to avoid hiding
14048 'all_threads' function. Adjust get_last_target_status call.
14049 (prepare_one_step): Adjust set_running call.
14050 (signal_command): Use user_visible_resume_target. Compare thread
14051 pointers instead of inferior_ptid.
14052 (info_program_command): Adjust to pass down target.
14053 (attach_command): Mark target's 'thread_executing' flag.
14054 (stop_current_target_threads_ns): New, factored out from ...
14055 (interrupt_target_1): ... this. Switch inferior before making
14056 target calls.
14057 * inferior-iter.h
14058 (struct all_inferiors_iterator, struct all_inferiors_range)
14059 (struct all_inferiors_safe_range)
14060 (struct all_non_exited_inferiors_range): Filter on
14061 process_stratum_target too. Remove explicit.
14062 * inferior.c (inferior::inferior): Push dummy target on target
14063 stack.
14064 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
14065 Add process_stratum_target parameter, and pass it down.
14066 (have_live_inferiors): Adjust.
14067 (switch_to_inferior_and_push_target): New.
14068 (add_inferior_command, clone_inferior_command): Handle
14069 "-no-connection" parameter. Use
14070 switch_to_inferior_and_push_target.
14071 (_initialize_inferior): Mention "-no-connection" option in
14072 the help of "add-inferior" and "clone-inferior" commands.
14073 * inferior.h: Include "process-stratum-target.h".
14074 (interrupt_target_1): Use bool.
14075 (struct inferior) <push_target, unpush_target, target_is_pushed,
14076 find_target_beneath, top_target, process_target, target_at,
14077 m_stack>: New.
14078 (discard_all_inferiors): Delete.
14079 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
14080 (all_inferiors, all_non_exited_inferiors): Add
14081 process_stratum_target parameter.
14082 * infrun.c: Include "gdb_select.h" and <unordered_map>.
14083 (target_last_proc_target): New global.
14084 (follow_fork_inferior): Push target on new inferior. Pass target
14085 to add_thread_silent. Call exec_on_vfork. Handle target's
14086 reference count.
14087 (follow_fork): Adjust get_last_target_status call. Also consider
14088 target.
14089 (follow_exec): Push target on new inferior.
14090 (struct execution_control_state) <target>: New field.
14091 (user_visible_resume_target): New.
14092 (do_target_resume): Call target_async.
14093 (resume_1): Set target's threads_executing flag. Consider resume
14094 target.
14095 (commit_resume_all_targets): New.
14096 (proceed): Also consider resume target. Skip threads of inferiors
14097 with no execution. Commit resumtion in all targets.
14098 (start_remote): Pass current inferior to wait_for_inferior.
14099 (infrun_thread_stop_requested): Consider target as well. Pass
14100 thread_info pointer to clear_inline_frame_state instead of ptid.
14101 (infrun_thread_thread_exit): Consider target as well.
14102 (random_pending_event_thread): New inferior parameter. Use it.
14103 (do_target_wait): Rename to ...
14104 (do_target_wait_1): ... this. Add inferior parameter, and pass it
14105 down.
14106 (threads_are_resumed_pending_p, do_target_wait): New.
14107 (prepare_for_detach): Adjust calls.
14108 (wait_for_inferior): New inferior parameter. Handle it. Use
14109 do_target_wait_1 instead of do_target_wait.
14110 (fetch_inferior_event): Adjust. Switch to representative
14111 inferior. Pass target down.
14112 (set_last_target_status): Add process_stratum_target parameter.
14113 Save target in global.
14114 (get_last_target_status): Add process_stratum_target parameter and
14115 handle it.
14116 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
14117 (context_switch): Check inferior_ptid == null_ptid before calling
14118 inferior_thread().
14119 (get_inferior_stop_soon): Pass down target.
14120 (wait_one): Rename to ...
14121 (poll_one_curr_target): ... this.
14122 (struct wait_one_event): New.
14123 (wait_one): New.
14124 (stop_all_threads): Adjust.
14125 (handle_no_resumed, handle_inferior_event): Adjust to consider the
14126 event's target.
14127 (switch_back_to_stepped_thread): Also consider target.
14128 (print_stop_event): Update.
14129 (normal_stop): Update. Also consider the resume target.
14130 * infrun.h (wait_for_inferior): Remove declaration.
14131 (user_visible_resume_target): New declaration.
14132 (get_last_target_status, set_last_target_status): New
14133 process_stratum_target parameter.
14134 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
14135 process_stratum_target parameter, and use it.
14136 (clear_inline_frame_state (thread_info*)): New.
14137 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
14138 process_stratum_target parameter.
14139 (clear_inline_frame_state (thread_info*)): Declare.
14140 * linux-fork.c (delete_checkpoint_command): Pass target down to
14141 find_thread_ptid.
14142 (checkpoint_command): Adjust.
14143 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
14144 instead of just tweaking inferior_ptid.
14145 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
14146 (exit_lwp): Pass target down to find_thread_ptid.
14147 (attach_proc_task_lwp_callback): Pass target down to
14148 add_thread/set_running/set_executing.
14149 (linux_nat_target::attach): Pass target down to
14150 thread_change_ptid.
14151 (get_detach_signal): Pass target down to find_thread_ptid.
14152 Consider last target status's target.
14153 (linux_resume_one_lwp_throw, resume_lwp)
14154 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
14155 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
14156 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
14157 (linux_nat_target::async_wait_fd): New.
14158 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
14159 target down.
14160 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
14161 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
14162 * linux-thread-db.c (struct thread_db_info::process_target): New
14163 field.
14164 (add_thread_db_info): Save target.
14165 (get_thread_db_info): New process_stratum_target parameter. Also
14166 match target.
14167 (delete_thread_db_info): New process_stratum_target parameter.
14168 Also match target.
14169 (thread_from_lwp): Adjust to pass down target.
14170 (thread_db_notice_clone): Pass down target.
14171 (check_thread_db_callback): Pass down target.
14172 (try_thread_db_load_1): Always push the thread_db target.
14173 (try_thread_db_load, record_thread): Pass target down.
14174 (thread_db_target::detach): Pass target down. Always unpush the
14175 thread_db target.
14176 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
14177 target down. Always unpush the thread_db target.
14178 (find_new_threads_callback, thread_db_find_new_threads_2)
14179 (thread_db_target::update_thread_list): Pass target down.
14180 (thread_db_target::pid_to_str): Pass current inferior down.
14181 (thread_db_target::get_thread_local_address): Pass target down.
14182 (thread_db_target::resume, maintenance_check_libthread_db): Pass
14183 target down.
14184 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
14185 * procfs.c (procfs_target::procfs_init_inferior): Declare.
14186 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
14187 (procfs_init_inferior): Rename to ...
14188 (procfs_target::procfs_init_inferior): ... this and adjust.
14189 (procfs_target::create_inferior, procfs_notice_thread)
14190 (procfs_do_thread_registers): Adjust.
14191 * ppc-fbsd-tdep.c: Include "inferior.h".
14192 (ppcfbsd_get_thread_local_address): Pass down target.
14193 * proc-service.c (ps_xfer_memory): Switch current inferior and
14194 program space as well.
14195 (get_ps_regcache): Pass target down.
14196 * process-stratum-target.c
14197 (process_stratum_target::thread_address_space)
14198 (process_stratum_target::thread_architecture): Pass target down.
14199 * process-stratum-target.h
14200 (process_stratum_target::threads_executing): New field.
14201 (as_process_stratum_target): New.
14202 * ravenscar-thread.c
14203 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
14204 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
14205 down.
14206 * record-btrace.c (record_btrace_target::info_record): Adjust.
14207 (record_btrace_target::record_method)
14208 (record_btrace_target::record_is_replaying)
14209 (record_btrace_target::fetch_registers)
14210 (get_thread_current_frame_id, record_btrace_target::resume)
14211 (record_btrace_target::wait, record_btrace_target::stop): Pass
14212 target down.
14213 * record-full.c (record_full_wait_1): Switch to event thread.
14214 Pass target down.
14215 * regcache.c (regcache::regcache)
14216 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
14217 process_stratum_target parameter and handle it.
14218 (current_thread_target): New global.
14219 (get_thread_regcache): Add process_stratum_target parameter and
14220 handle it. Switch inferior before calling target method.
14221 (get_thread_regcache): Pass target down.
14222 (get_thread_regcache_for_ptid): Pass target down.
14223 (registers_changed_ptid): Add process_stratum_target parameter and
14224 handle it.
14225 (registers_changed_thread, registers_changed): Pass target down.
14226 (test_get_thread_arch_aspace_regcache): New.
14227 (current_regcache_test): Define a couple local test_target_ops
14228 instances and use them for testing.
14229 (readwrite_regcache): Pass process_stratum_target parameter.
14230 (cooked_read_test, cooked_write_test): Pass mock_target down.
14231 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
14232 (get_thread_arch_aspace_regcache): Add process_stratum_target
14233 parameter.
14234 (regcache::target): New method.
14235 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
14236 (regcache::registers_changed_ptid): Add process_stratum_target
14237 parameter.
14238 (regcache::m_target): New field.
14239 (registers_changed_ptid): Add process_stratum_target parameter.
14240 * remote.c (remote_state::supports_vCont_probed): New field.
14241 (remote_target::async_wait_fd): New method.
14242 (remote_unpush_and_throw): Add remote_target parameter.
14243 (get_current_remote_target): Adjust.
14244 (remote_target::remote_add_inferior): Push target.
14245 (remote_target::remote_add_thread)
14246 (remote_target::remote_notice_new_inferior)
14247 (get_remote_thread_info): Pass target down.
14248 (remote_target::update_thread_list): Skip threads of inferiors
14249 bound to other targets. (remote_target::close): Don't discard
14250 inferiors. (remote_target::add_current_inferior_and_thread)
14251 (remote_target::process_initial_stop_replies)
14252 (remote_target::start_remote)
14253 (remote_target::remote_serial_quit_handler): Pass down target.
14254 (remote_target::remote_unpush_target): New remote_target
14255 parameter. Unpush the target from all inferiors.
14256 (remote_target::remote_unpush_and_throw): New remote_target
14257 parameter. Pass it down.
14258 (remote_target::open_1): Check whether the current inferior has
14259 execution instead of checking whether any inferior is live. Pass
14260 target down.
14261 (remote_target::remote_detach_1): Pass down target. Use
14262 remote_unpush_target.
14263 (extended_remote_target::attach): Pass down target.
14264 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
14265 (remote_target::append_resumption): Pass down target.
14266 (remote_target::append_pending_thread_resumptions)
14267 (remote_target::remote_resume_with_hc, remote_target::resume)
14268 (remote_target::commit_resume): Pass down target.
14269 (remote_target::remote_stop_ns): Check supports_vCont_probed.
14270 (remote_target::interrupt_query)
14271 (remote_target::remove_new_fork_children)
14272 (remote_target::check_pending_events_prevent_wildcard_vcont)
14273 (remote_target::remote_parse_stop_reply)
14274 (remote_target::process_stop_reply): Pass down target.
14275 (first_remote_resumed_thread): New remote_target parameter. Pass
14276 it down.
14277 (remote_target::wait_as): Pass down target.
14278 (unpush_and_perror): New remote_target parameter. Pass it down.
14279 (remote_target::readchar, remote_target::remote_serial_write)
14280 (remote_target::getpkt_or_notif_sane_1)
14281 (remote_target::kill_new_fork_children, remote_target::kill): Pass
14282 down target.
14283 (remote_target::mourn_inferior): Pass down target. Use
14284 remote_unpush_target.
14285 (remote_target::core_of_thread)
14286 (remote_target::remote_btrace_maybe_reopen): Pass down target.
14287 (remote_target::pid_to_exec_file)
14288 (remote_target::thread_handle_to_thread_info): Pass down target.
14289 (remote_target::async_wait_fd): New.
14290 * riscv-fbsd-tdep.c: Include "inferior.h".
14291 (riscv_fbsd_get_thread_local_address): Pass down target.
14292 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
14293 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
14294 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
14295 Adjust.
14296 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
14297 * solib-svr4.c (enable_break): Pass down target.
14298 * spu-multiarch.c (parse_spufs_run): Pass down target.
14299 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
14300 * target-delegates.c: Regenerate.
14301 * target.c (g_target_stack): Delete.
14302 (current_top_target): Return the current inferior's top target.
14303 (target_has_execution_1): Refer to the passed-in inferior's top
14304 target.
14305 (target_supports_terminal_ours): Check whether the initial
14306 inferior was already created.
14307 (decref_target): New.
14308 (target_stack::push): Incref/decref the target.
14309 (push_target, push_target, unpush_target): Adjust.
14310 (target_stack::unpush): Defref target.
14311 (target_is_pushed): Return bool. Adjust to refer to the current
14312 inferior's target stack.
14313 (dispose_inferior): Delete, and inline parts ...
14314 (target_preopen): ... here. Only dispose of the current inferior.
14315 (target_detach): Hold strong target reference while detaching.
14316 Pass target down.
14317 (target_thread_name): Add assertion.
14318 (target_resume): Pass down target.
14319 (target_ops::beneath, find_target_at): Adjust to refer to the
14320 current inferior's target stack.
14321 (get_dummy_target): New.
14322 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
14323 has a thread running.
14324 (initialize_targets): Rename to ...
14325 (_initialize_target): ... this.
14326 * target.h: Include "gdbsupport/refcounted-object.h".
14327 (struct target_ops): Inherit refcounted_object.
14328 (target_ops::shortname, target_ops::longname): Make const.
14329 (target_ops::async_wait_fd): New method.
14330 (decref_target): Declare.
14331 (struct target_ops_ref_policy): New.
14332 (target_ops_ref): New typedef.
14333 (get_dummy_target): Declare function.
14334 (target_is_pushed): Return bool.
14335 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
14336 (all_matching_threads_iterator::all_matching_threads_iterator):
14337 Handle filter target.
14338 * thread-iter.h (struct all_matching_threads_iterator, struct
14339 all_matching_threads_range, class all_non_exited_threads_range):
14340 Filter by target too. Remove explicit.
14341 * thread.c (threads_executing): Delete.
14342 (inferior_thread): Pass down current inferior.
14343 (clear_thread_inferior_resources): Pass down thread pointer
14344 instead of ptid_t.
14345 (add_thread_silent, add_thread_with_info, add_thread): Add
14346 process_stratum_target parameter. Use it for thread and inferior
14347 searches.
14348 (is_current_thread): New.
14349 (thread_info::deletable): Use it.
14350 (find_thread_ptid, thread_count, in_thread_list)
14351 (thread_change_ptid, set_resumed, set_running): New
14352 process_stratum_target parameter. Pass it down.
14353 (set_executing): New process_stratum_target parameter. Pass it
14354 down. Adjust reference to 'threads_executing'.
14355 (threads_are_executing): New process_stratum_target parameter.
14356 Adjust reference to 'threads_executing'.
14357 (set_stop_requested, finish_thread_state): New
14358 process_stratum_target parameter. Pass it down.
14359 (switch_to_thread): Also match inferior.
14360 (switch_to_thread): New process_stratum_target parameter. Pass it
14361 down.
14362 (update_threads_executing): Reimplement.
14363 * top.c (quit_force): Pop targets from all inferior.
14364 (gdb_init): Don't call initialize_targets.
14365 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
14366 Declare.
14367 (windows_add_thread, windows_delete_thread): Adjust.
14368 (get_windows_debug_event): Rename to ...
14369 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
14370 * tracefile-tfile.c (tfile_target_open): Pass down target.
14371 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
14372 Forward declare.
14373 (switch_to_thread): Add process_stratum_target parameter.
14374 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
14375 parameter. Use it.
14376 (mi_on_resume): Pass target down.
14377 * nat/fork-inferior.c (startup_inferior): Add
14378 process_stratum_target parameter. Pass it down.
14379 * nat/fork-inferior.h (startup_inferior): Add
14380 process_stratum_target parameter.
14381 * python/py-threadevent.c (py_get_event_thread): Pass target down.
14382
14383 2020-01-10 Pedro Alves <palves@redhat.com>
14384
14385 * remote.c (remote_target::start_remote): Don't set inferior_ptid
14386 directly. Instead find the first thread in the thread list and
14387 use switch_to_thread.
14388
14389 2020-01-10 Pedro Alves <palves@redhat.com>
14390
14391 * remote.c (remote_target::remote_add_inferior): Don't bind a
14392 process to the current inferior if the current inferior is already
14393 bound to a process.
14394
14395 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14396 Pedro Alves <palves@redhat.com>
14397
14398 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
14399 If no process is specified, return null_ptid instead of
14400 inferior_ptid.
14401 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
14402 TARGET_WAITKIND_SIGNALLED with no pid.
14403
14404 2020-01-10 Pedro Alves <palves@redhat.com>
14405
14406 * remote.c (first_remote_resumed_thread): New.
14407 (remote_target::wait_as): Use it as default event_ptid instead of
14408 inferior_ptid.
14409
14410 2020-01-10 Pedro Alves <palves@redhat.com>
14411
14412 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
14413
14414 2020-01-10 Pedro Alves <palves@redhat.com>
14415
14416 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
14417 not -1.
14418
14419 2020-01-10 Pedro Alves <palves@redhat.com>
14420
14421 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
14422 ptid to get_last_target_status.
14423 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
14424 ptid to get_last_target_status.
14425 * infcmd.c (continue_command): Don't pass a target_waitstatus to
14426 get_last_target_status.
14427 (info_program_command): Don't pass a target_waitstatus to
14428 get_last_target_status.
14429 * infrun.c (init_wait_for_inferior): Use
14430 nullify_last_target_wait_ptid.
14431 (get_last_target_status): Handle nullptr arguments.
14432 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
14433 (print_stop_event): Don't pass a ptid to get_last_target_status.
14434 (normal_stop): Don't pass a ptid to get_last_target_status.
14435 * infrun.h (get_last_target_status, set_last_target_status): Move
14436 comments here and update.
14437 (nullify_last_target_wait_ptid): Declare.
14438 * linux-fork.c (fork_load_infrun_state): Remove local extern
14439 declaration of nullify_last_target_wait_ptid.
14440 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
14441 to get_last_target_status.
14442
14443 2020-01-10 Pedro Alves <palves@redhat.com>
14444
14445 * gdbthread.h (scoped_restore_current_thread)
14446 <dont_restore, restore, m_dont_restore>: Declare.
14447 * thread.c (thread_alive): Add assertion. Return bool.
14448 (switch_to_thread_if_alive): New.
14449 (prune_threads): Switch inferior/thread.
14450 (print_thread_info_1): Switch thread before calling target methods.
14451 (scoped_restore_current_thread::restore): New, factored out from
14452 ...
14453 (scoped_restore_current_thread::~scoped_restore_current_thread):
14454 ... this.
14455 (scoped_restore_current_thread::scoped_restore_current_thread):
14456 Add assertion.
14457 (thread_apply_all_command, thread_select): Use
14458 switch_to_thread_if_alive.
14459 * infrun.c (proceed, restart_threads, handle_signal_stop)
14460 (switch_back_to_stepped_thread): Switch current thread before
14461 calling target methods.
14462
14463 2020-01-10 Pedro Alves <palves@redhat.com>
14464
14465 * inferior.c (switch_to_inferior_no_thread): New function,
14466 factored out from ...
14467 (inferior_command): ... here.
14468 * inferior.h (switch_to_inferior_no_thread): Declare.
14469 * mi/mi-main.c (run_one_inferior): Use
14470 switch_to_inferior_no_thread.
14471
14472 2020-01-10 Pedro Alves <palves@redhat.com>
14473
14474 * infcmd.c (kill_command): Remove dead code.
14475
14476 2020-01-10 Pedro Alves <palves@redhat.com>
14477
14478 * remote.c (remote_target::mourn_inferior): No longer check
14479 whether the target is running.
14480
14481 2020-01-10 Pedro Alves <palves@redhat.com>
14482
14483 * corelow.c (core_target::has_execution): Change parameter type to
14484 inferior pointer.
14485 * inferior.c (number_of_live_inferiors): Use
14486 inferior::has_execution instead of target_has_execution_1.
14487 * inferior.h (inferior::has_execution): New.
14488 * linux-thread-db.c (thread_db_target::update_thread_list): Use
14489 inferior::has_execution instead of target_has_execution_1.
14490 * process-stratum-target.c
14491 (process_stratum_target::has_execution): Change parameter type to
14492 inferior pointer. Check the inferior's PID instead of
14493 inferior_ptid.
14494 * process-stratum-target.h
14495 (process_stratum_target::has_execution): Change parameter type to
14496 inferior pointer.
14497 * record-full.c (record_full_core_target::has_execution): Change
14498 parameter type to inferior pointer.
14499 * target.c (target_has_execution_1): Change parameter type to
14500 inferior pointer.
14501 (target_has_execution_current): Adjust.
14502 * target.h (target_ops::has_execution): Change parameter type to
14503 inferior pointer.
14504 (target_has_execution_1): Change parameter type to inferior
14505 pointer. Change return type to bool.
14506 * tracefile.h (tracefile_target::has_execution): Change parameter
14507 type to inferior pointer.
14508
14509 2020-01-10 Pedro Alves <palves@redhat.com>
14510
14511 * exceptions.c (print_flush): Remove current_top_target() check.
14512
14513 2020-01-10 Pedro Alves <palves@redhat.com>
14514
14515 * remote.c (show_remote_exec_file): Show the current inferior's
14516 exec-file instead of the command variable's value.
14517
14518 2020-01-10 Pedro Alves <palves@redhat.com>
14519
14520 * record-full.c (record_full_resume_ptid): New global.
14521 (record_full_target::resume): Set it.
14522 (record_full_wait_1): Use record_full_resume_ptid instead of
14523 inferior_ptid.
14524
14525 2020-01-10 Pedro Alves <palves@redhat.com>
14526
14527 * gdbthread.h (scoped_restore_current_thread)
14528 <dont_restore, restore, m_dont_restore>: Declare.
14529 * thread.c (thread_alive): Add assertion. Return bool.
14530 (switch_to_thread_if_alive): New.
14531 (prune_threads): Switch inferior/thread.
14532 (print_thread_info_1): Switch thread before calling target methods.
14533 (scoped_restore_current_thread::restore): New, factored out from
14534 ...
14535 (scoped_restore_current_thread::~scoped_restore_current_thread):
14536 ... this.
14537 (scoped_restore_current_thread::scoped_restore_current_thread):
14538 Add assertion.
14539 (thread_apply_all_command, thread_select): Use
14540 switch_to_thread_if_alive.
14541
14542 2020-01-10 George Barrett <bob@bob131.so>
14543
14544 * stap-probe.c (stap_modify_semaphore): Don't check for null
14545 semaphores.
14546 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
14547 for null semaphores.
14548
14549 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
14550
14551 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
14552 all source windows, and maintain horizontal scroll status while
14553 doing so.
14554
14555 2020-01-09 Tom Tromey <tom@tromey.com>
14556
14557 PR tui/18932:
14558 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
14559 update_source_window, not print_source_lines.
14560
14561 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
14562
14563 * tui/tui.c (tui_enable): Register tui hooks after calling
14564 tui_display_main.
14565
14566 2020-01-09 Christian Biesinger <cbiesinger@google.com>
14567
14568 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
14569
14570 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
14571
14572 * thread.c (print_thread_info_1): Fix indentation.
14573
14574 2020-01-09 Christian Biesinger <cbiesinger@google.com>
14575
14576 * symtab.c (general_symbol_info::compute_and_set_names): Move the
14577 unique_xmalloc_ptr outside the if to always free the demangled name.
14578
14579 2020-01-08 Tom Tromey <tromey@adacore.com>
14580
14581 * xcoffread.c (enter_line_range, read_xcoff_symtab)
14582 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
14583 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
14584 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
14585 Remove.
14586 (section_offsets): New typedef.
14587 * symtab.c (fixup_section, get_msymbol_address): Update.
14588 * symmisc.c (dump_msymbols): Update.
14589 * symfile.h (relative_addr_info_to_section_offsets)
14590 (symfile_map_offsets_to_segments): Update.
14591 * symfile.c (build_section_addr_info_from_objfile)
14592 (init_objfile_sect_indices): Update.
14593 (struct place_section_arg): Change type of "offsets".
14594 (place_section): Update.
14595 (relative_addr_info_to_section_offsets): Change type of
14596 "section_offsets". Remove "num_sections" parameter.
14597 (default_symfile_offsets, syms_from_objfile_1)
14598 (set_objfile_default_section_offset): Update.
14599 (reread_symbols): No need to preserve section offsets by hand.
14600 (symfile_map_offsets_to_segments): Change type of "offsets".
14601 * stap-probe.c (relocate_address): Update.
14602 * stabsread.h (process_one_symbol): Update.
14603 * solib-target.c (struct lm_info_target) <offsets>: Change type.
14604 (solib_target_relocate_section_addresses): Update.
14605 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
14606 Update.
14607 * solib-frv.c (frv_relocate_main_executable): Update.
14608 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
14609 * solib-aix.c (solib_aix_get_section_offsets): Change return
14610 type.
14611 (solib_aix_solib_create_inferior_hook): Update.
14612 * remote.c (remote_target::get_offsets): Update.
14613 * psymtab.c (find_pc_sect_psymtab): Update.
14614 * psympriv.h (struct partial_symbol) <address, text_low,
14615 text_high>: Update.
14616 * objfiles.h (obj_section_offset): Update.
14617 (struct objfile) <section_offsets>: Change type.
14618 <num_sections>: Remove.
14619 (objfile_relocate): Update.
14620 * objfiles.c (entry_point_address_query): Update
14621 (relocate_one_symbol): Change type of "section_offsets".
14622 (objfile_relocate1, objfile_relocate1): Change type of
14623 "new_offsets".
14624 (objfile_rebase1): Update.
14625 * mipsread.c (mipscoff_symfile_read): Update.
14626 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
14627 parameter.
14628 * mdebugread.c (parse_symbol): Change type of "section_offsets".
14629 (parse_external, psymtab_to_symtab_1): Update.
14630 * machoread.c (macho_symfile_offsets): Update.
14631 * ia64-tdep.c (ia64_find_unwind_table): Update.
14632 * hppa-tdep.c (read_unwind_info): Update.
14633 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
14634 * dwarf2read.c (create_addrmap_from_index)
14635 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
14636 (process_psymtab_comp_unit_reader, add_partial_symbol)
14637 (add_partial_subprogram, process_full_comp_unit)
14638 (read_file_scope, read_func_scope, read_lexical_block_scope)
14639 (read_call_site_scope, dwarf2_rnglists_process)
14640 (dwarf2_ranges_process, dwarf2_ranges_read)
14641 (dwarf_decode_lines_1, var_decode_location, new_symbol)
14642 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
14643 Update.
14644 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
14645 Update.
14646 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
14647 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
14648 (process_one_symbol): Change type of "section_offsets".
14649 * ctfread.c (get_objfile_text_range): Update.
14650 * coffread.c (coff_symtab_read, enter_linenos)
14651 (process_coff_symbol): Update.
14652 * coff-pe-read.c (add_pe_forwarded_sym): Update.
14653 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
14654
14655 2020-01-08 Tom Tromey <tromey@adacore.com>
14656
14657 * dwarf2read.c (parse_macro_definition): Use std::string.
14658 (parse_macro_definition): Likewise.
14659
14660 2020-01-08 Tom Tromey <tromey@adacore.com>
14661
14662 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
14663 (ATTR_ALLOC_CHUNK): Remove.
14664
14665 2020-01-08 Tom Tromey <tromey@adacore.com>
14666
14667 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
14668
14669 2020-01-08 Tom Tromey <tromey@adacore.com>
14670
14671 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
14672 (dwarf2_compute_name, open_dwo_file): Likewise.
14673 (process_enumeration_scope): Use std::vector.
14674 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
14675 (partial_die_info::fixup, dwarf2_start_subfile)
14676 (guess_full_die_structure_name, dwarf2_name): Likewise.
14677 (determine_prefix): Update.
14678 (guess_full_die_structure_name): Make return type const.
14679 (partial_die_full_name): Return unique_xmalloc_ptr.
14680 (DW_FIELD_ALLOC_CHUNK): Remove.
14681
14682 2020-01-07 Tom Tromey <tromey@adacore.com>
14683
14684 PR build/24937:
14685 * stap-probe.c (class stap_static_probe_ops): Add constructor.
14686
14687 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
14688
14689 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
14690
14691 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
14692
14693 * stack.c (print_frame_info): Move disassemble_next_line code
14694 inside source_print block.
14695
14696 2020-01-06 Eli Zaretskii <eliz@gnu.org>
14697
14698 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
14699 gdb/signals.h, as we are now using native signal symbols.
14700
14701 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
14702
14703 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
14704 overflow by an early check of content vs threshold.
14705 * tui/tui-source.c (tui_source_window::line_is_displayed):
14706 Likewise.
14707
14708 2020-01-06 Eli Zaretskii <eliz@gnu.org>
14709
14710 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
14711
14712 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
14713
14714 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
14715 export table if no section contains it's RVA.
14716
14717 2020-01-06 Eli Zaretskii <eliz@gnu.org>
14718
14719 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
14720
14721 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
14722
14723 * source.c (print_source_lines_base): Set last_line_listed.
14724
14725 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
14726
14727 * tui/tui-disasm.c: Remove trailing spaces.
14728
14729 2020-01-06 Eli Zaretskii <eliz@gnu.org>
14730 Pedro Alves <palves@redhat.com>
14731
14732 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
14733 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
14734 (windows_gdb_signal_to_target): New function, uses the above
14735 enumeration to convert GDB internal signal codes to equivalent
14736 Windows codes.
14737 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
14738 * windows-nat.c: Include "gdb_wait.h".
14739 (get_windows_debug_event): Extract the fatal exception from the
14740 exit status and convert to the equivalent Posix signal number.
14741 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
14742 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
14743 * gdbsupport/gdb_wait.c: New file, implements
14744 windows_status_to_termsig.
14745 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
14746 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
14747
14748 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
14749
14750 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
14751 show_layout.
14752
14753 2020-01-05 Luis Machado <luis.machado@linaro.org>
14754
14755 * aarch64-linux-nat.c
14756 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
14757 and bfd_mach_aarch64.
14758
14759 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14760
14761 * ui-file.c (stdio_file::can_emit_style_escape)
14762 (tee_file::can_emit_style_escape): Ensure style is used also on
14763 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
14764 to gdb_stdout.
14765 * main.c (set_gdb_data_directory): Use file style to output the
14766 warning that the given pathname is not a directory.
14767 * top.c (show_history_filename, gdb_safe_append_history)
14768 (show_gdb_datadir): Use file style.
14769
14770 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
14771
14772 * solib-target.c (struct lm_info_target):
14773 Change offsets to be a unique_xmalloc_ptr.
14774 (solib_target_relocate_section_addresses): Update.
14775
14776 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
14777
14778 * windows-nat.c (windows_clear_solib): Free so_list linked list.
14779
14780 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
14781
14782 * MAINTAINERS (Write After Approval): Add myself.
14783
14784 2020-01-02 Luis Machado <luis.machado@linaro.org>
14785
14786 * proc-service.c (get_ps_regcache): Remove reference to obsolete
14787 Cell BE architecture.
14788 * target.h (struct target_ops) <thread_architecture>: Likewise.
14789
14790 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
14791
14792 * Makefile.in: Use INSTALL_PROGRAM_ENV.
14793
14794 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
14795
14796 * MAINTAINERS (Write After Approval): Add myself.
14797
14798 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14799
14800 * gdbarch.sh: Update copyright year range of generated files.
14801
14802 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14803
14804 Update copyright year range in all GDB files.
14805
14806 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14807
14808 * copyright.py: Convert to Python 3.
14809
14810 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14811
14812 * copyright.py: Adapt after move of gnulib directory from gdb
14813 directory to toplevel directory.
14814
14815 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14816
14817 * copyright.py (main): Exit if run from the wrong directory.
14818
14819 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14820
14821 * top.c (print_gdb_version): Change copyright year to 2020.
14822
14823 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14824
14825 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
14826
14827 For older changes see ChangeLog-2019.
14828 \f
14829 Local Variables:
14830 mode: change-log
14831 left-margin: 8
14832 fill-column: 74
14833 version-control: never
14834 coding: utf-8
14835 End:
This page took 0.352175 seconds and 5 git commands to generate.