gdb/infcmd: remove redundant clear_proceed_status call
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
b68bef99
TBA
12020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2
3 * infcmd.c (attach_command): Remove the redundant call to
4 `clear_proceed_status`.
5
4641551a
KR
62020-10-07 Kamil Rytarowski <n54@gmx.com>
7
8 * nat/netbsd-nat.c (write_memory, read_memory): Update.
9
91e5e8db
KR
102020-10-07 Kamil Rytarowski <n54@gmx.com>
11
12 * nat/netbsd-nat.c (write_memory, read_memory): Add.
13 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
14 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
15
64c03bdb
SM
162020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
17
18 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
19 (_initialize_break_catch_sig): Don't allocate array.
20
31a8f60f
AB
212020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
22
23 * symtab.c (find_pc_line): Return unmapped addresses when the
24 requested address is also unmapped.
25
9e6dbd8b
SM
262020-10-05 Simon Marchi <simon.marchi@efficios.com>
27
28 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
29 tui/tui-out.h.
30
a1d217e8
SM
312020-10-05 Simon Marchi <simon.marchi@efficios.com>
32
33 * amd64-windows-tdep.c (amd64_windows_return_value): Use
34 type::is_vector instead of TYPE_VECTOR.
35
7d144117
SM
362020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
37
38 * auto-load.c (auto_load_objfile_script_1): Don't use
39 debugfile_holder as temporary variable when stripping drive
40 letter.
41
cd096ec8
HD
422020-10-05 Hannes Domani <ssbssa@yahoo.de>
43
44 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
45 Add TYPE_CODE_COMPLEX.
46 (amd64_windows_return_value): Fix types returned via XMM0.
47
b58e7f72
AH
482020-10-05 Alan Hayward <alan.hayward@arm.com>
49
50 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
51 AArch64/ARM maintainers.
52
8d378f27
SM
532020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
54
55 * NEWS: Mention set/show debug event-loop.
56
d5519913
TT
572020-10-02 Tom Tromey <tromey@adacore.com>
58
59 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
60 REG_EXTENDED.
61
18b67edc
SM
622020-10-02 Simon Marchi <simon.marchi@efficios.com>
63
64 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
65 * procfs.c (procfs_inferior_created): Remove.
66 (_initialize_procfs): Don't register procfs_inferior_created.
67
6b01403b
SM
682020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
69
70 * async-event.c (invoke_async_signal_handlers): Add debug
71 print.
72 (check_async_event_handlers): Likewise.
73 * event-top.c (show_debug_event_loop): New function.
74 (_initialize_event_top): Register "set debug event-loop"
75 setting.
76
ba988419
SM
772020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
78
79 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
80 * debug.h: Remove.
81 * infrun.c: Include gdbsupport/common-debug.h.
82 * linux-nat.c: Likewise.
83
db20ebdf
SM
842020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
85
86 * async-event.h (create_async_signal_handler): Add name
87 parameter.
88 (create_async_event_handler): Likewise.
89 * async-event.c (struct async_signal_handler) <name>: New field.
90 (struct async_event_handler) <name>: New field.
91 (create_async_signal_handler): Assign name.
92 (create_async_event_handler): Assign name.
93 * event-top.c (async_init_signals): Pass name when creating
94 handler.
95 * infrun.c (_initialize_infrun): Likewise.
96 * record-btrace.c (record_btrace_push_target): Likewise.
97 * record-full.c (record_full_open): Likewise.
98 * remote-notif.c (remote_notif_state_allocate): Likewise.
99 * remote.c (remote_target::open_1): Likewise.
100 * tui/tui-win.c (tui_initialize_win): Likewise.
101
2554f6f5
SM
1022020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
103
104 * async-event.c (initialize_async_signal_handlers): Pass name to
105 add_file_handler
106 * event-top.c (ui_register_input_event_handler): Likewise.
107 * linux-nat.c (linux_nat_target::async): Likewise.
108 * run-on-main-thread.c (_initialize_run_on_main_thread):
109 Likewise
110 * ser-base.c (reschedule): Likewise.
111 (ser_base_async): Likewise.
112 * tui/tui-io.c: Likewise.
113 * top.h (struct ui) <num>: New field.
114 * top.c (highest_ui_num): New variable.
115 (ui::ui): Initialize num.
116
a7aba266
SM
1172020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
118
119 * observable.h <inferior_created>: Remove parameters. Update all
120 listeners.
121 * inferior.h (post_create_inferior): Remove target parameter.
122 Update all callers.
123
048fde1e 1242020-10-02 Nitika Achra <Nitika.Achra@amd.com>
125
126 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
127 and DW_MACRO_undef_strx.
128 (dwarf_decode_macros): Likewise
129 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
130 which is the value of DW_AT_str_offsets_base.
131 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
132 str_offsets_base.
133
064280be
KR
1342020-10-01 Kamil Rytarowski <n54@gmx.com>
135
136 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
137
6ff33035
KR
1382020-10-01 Kamil Rytarowski <n54@gmx.com>
139
140 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
141 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
142
1eb6eb79
KR
1432020-10-01 Kamil Rytarowski <n54@gmx.com>
144
145 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
146
95eb9e54
TV
1472020-09-30 Tom de Vries <tdevries@suse.de>
148
149 PR symtab/26683
150 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
151
cae21f8e
TT
1522020-09-30 Tom Tromey <tromey@adacore.com>
153
154 * dwarf2/read.c (handle_variant): Use constant_value.
155
529908cb
TT
1562020-09-29 Tom Tromey <tom@tromey.com>
157
158 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
159 (read_file_scope, dwarf2_get_pc_bounds)
160 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
161 (read_structure_type, handle_struct_member_die)
162 (read_enumeration_type, read_array_type, read_set_type)
163 (read_tag_pointer_type, read_tag_reference_type)
164 (read_subroutine_type, read_base_type, read_subrange_type)
165 (read_full_die_1, partial_die_info::read)
166 (partial_die_info::read, by, new_symbol)
167 (dwarf2_const_value_data, dwarf2_const_value_attr)
168 (dump_die_shallow, dwarf2_fetch_constant_bytes)
169 (prepare_one_comp_unit): Update.
170 * dwarf2/attribute.h (DW_UNSND): Remove.
171
c45bc3f8
TT
1722020-09-29 Tom Tromey <tom@tromey.com>
173
174 * dwarf2/read.c (read_func_scope, prototyped_function_p)
175 (read_subroutine_type, partial_die_info::read)
176 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
177 (dwarf2_add_member_fn): Update.
178 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
179 * dwarf2/attribute.c (attribute::as_boolean): New method.
180
23dca5c3
TT
1812020-09-29 Tom Tromey <tom@tromey.com>
182
183 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
184 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
185 method.
186 * dwarf2/attribute.c (attribute::as_virtuality): New method.
187
52c14d11
TT
1882020-09-29 Tom Tromey <tom@tromey.com>
189
190 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
191 the attribute's form.
192
e8e5c158
TT
1932020-09-29 Tom Tromey <tom@tromey.com>
194
195 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
196 (dwarf2_add_member_fn): Update.
197 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
198 * dwarf2/attribute.c (attribute::defaulted): New method, from
199 is_valid_DW_AT_defaulted.
200
d4df075e
TT
2012020-09-29 Tom Tromey <tom@tromey.com>
202
203 * dwarf2/read.c (dw2_get_file_names_reader)
204 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
205 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
206 (dwarf2_symbol_mark_computed): Use as_unsigned.
207 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
208 method.
209 <form_is_section_offset>: Update comment.
210
bf23a268
TT
2112020-09-29 Tom Tromey <tom@tromey.com>
212
213 * dwarf2/read.c (dwarf2_access_attribute): Rename from
214 dwarf2_default_access_attribute. Look up attribute.
215 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
216 Update.
217
7a5f294d
TT
2182020-09-29 Tom Tromey <tom@tromey.com>
219
220 * dwarf2/read.c (skip_one_die): Update.
221 (read_full_die_1): Change how reprocessing is done.
222 (partial_die_info::read): Update.
223 (read_attribute_value): Remove need_reprocess parameter.
224 (read_attribute): Likewise.
225 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
226 New method.
227
36d378cf
TT
2282020-09-29 Tom Tromey <tom@tromey.com>
229
230 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
231 (dwarf2_const_value_attr, dump_die_shallow)
232 (dwarf2_fetch_constant_bytes): Update.
233 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
234 comment.
235 <set_address>: New method.
236 (DW_ADDR): Remove.
237 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
238 (attribute::as_string, attribute::as_address): Add assert.
239
fe56917a
TT
2402020-09-29 Tom Tromey <tom@tromey.com>
241
242 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
243 (read_attribute_reprocess, read_attribute_value): Update.
244 (read_attribute): Clear requires_reprocessing.
245 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
246 form_requires_reprocessing>: New methods.
247 <string_init>: Clear requires_reprocessing.
248 <set_unsigned_reprocess>: New method.
249 <name>: Shrink by one bit.
250 <requires_reprocessing>: New member.
251 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
252 method.
253
414ad644
TT
2542020-09-29 Tom Tromey <tom@tromey.com>
255
256 * dwarf2/read.c (read_attribute_value): Update.
257 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
258 set_unsigned>: New methods.
259 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
260
1bc397c5
TT
2612020-09-29 Tom Tromey <tom@tromey.com>
262
263 * dwarf2/read.c (get_alignment, read_array_order)
264 (read_attribute_value, dwarf2_const_value_attr)
265 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
266 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
267 New methods.
268 (DW_SND): Remove.
269
630ed6b9
TT
2702020-09-29 Tom Tromey <tom@tromey.com>
271
272 * dwarf2/read.c (read_attribute_value, lookup_die_type)
273 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
274 Update.
275 * dwarf2/attribute.h (struct attribute) <as_signature,
276 set_signature>: New methods.
277 (DW_SIGNATURE): Remove.
278
9d2246fc
TT
2792020-09-29 Tom Tromey <tom@tromey.com>
280
281 * dwarf2/read.c (read_call_site_scope)
282 (handle_data_member_location, dwarf2_add_member_fn)
283 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
284 (partial_die_info::read, read_attribute_value)
285 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
286 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
287 (dwarf2_symbol_mark_computed): Update.
288 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
289 methods.
290 (DW_BLOCK): Remove.
291 * dwarf2/attribute.c (attribute::form_is_block): Add
292 DW_FORM_data16.
293
c6481205
TT
2942020-09-29 Tom Tromey <tom@tromey.com>
295
296 * dwarf2/read.c (read_cutu_die_from_dwo)
297 (read_attribute_reprocess, read_attribute_value, read_attribute)
298 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
299 (dwarf2_fetch_constant_bytes): Update.
300 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
301 <set_string_noncanonical, set_string_canonical>: New methods.
302 <string_is_canonical>: Update comment.
303 <canonical_string_p>: Add assert.
304 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
305 * dwarf2/attribute.c (attribute::form_is_string): New method.
306 (attribute::string): Use it.
307
3b64bf15
TT
3082020-09-29 Tom Tromey <tom@tromey.com>
309
310 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
311 (dump_die_shallow): Use canonical_string_p.
312 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
313 method.
314
2c830f54
TT
3152020-09-29 Tom Tromey <tom@tromey.com>
316
317 * dwarf2/read.c (partial_die_info::read)
318 (dwarf2_const_value_attr, anonymous_struct_prefix, )
319 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
320 attribute::as_string.
321
6c412691
TT
3222020-09-29 Tom Tromey <tom@tromey.com>
323
324 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
325 DW_ADDR.
326 (attribute::string): Don't use DW_STRING.
327 (attribute::get_ref_die_offset): Don't use DW_UNSND.
328 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
329
95f982e5
TT
3302020-09-29 Tom Tromey <tom@tromey.com>
331
332 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
333 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
334 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
335 * dwarf2/attribute.h (struct attribute): Rename methods.
336 * dwarf2/attribute.c (attribute::as_address): Rename from
337 value_as_address.
338 (attribute::as_string): Rename from value_as_string.
339
f800b00e
TT
3402020-09-29 Tom Tromey <tom@tromey.com>
341
342 * dwarf2/read.c (partial_die_info::read) <case
343 DW_AT_linkage_name>: Use value_as_string.
344 (dwarf2_string_attr): Use value_as_string.
345 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
346 method.
347 * dwarf2/attribute.c (attribute::value_as_string): New method.
348
de38d64a
PA
3492020-09-29 Pedro Alves <pedro@palves.net>
350
351 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
352 defined before using '#pragma GCC diagnostic' instead of checking
353 __clang__.
354
9aed480c
TT
3552020-09-28 Tom Tromey <tom@tromey.com>
356
357 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
358 (handle_signal_stop): Update.
359 * procfs.c (procfs_target::insert_watchpoint): Update.
360 * target.h (target_have_steppable_watchpoint): Now a function.
361
8a3ecb79
TT
3622020-09-28 Tom Tromey <tom@tromey.com>
363
364 * infrun.c (set_schedlock_func): Update.
365 * target.h (target_can_lock_scheduler): Now a function.
366
55f6301a
TT
3672020-09-28 Tom Tromey <tom@tromey.com>
368
369 * inferior.h (class inferior) <has_execution>: Update.
370 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
371 * valops.c (find_function_in_inferior)
372 (value_allocate_space_in_inferior): Update.
373 * top.c (kill_or_detach): Update.
374 * target.c (target_preopen, set_target_permissions): Update.
375 (target_has_execution_current): Remove.
376 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
377 Update.
378 * solib.c (update_solib_list, reload_shared_libraries): Update.
379 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
380 * solib-dsbt.c (enable_break): Update.
381 * score-tdep.c (score7_fetch_inst): Update.
382 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
383 Update.
384 * remote.c (remote_target::start_remote)
385 (remote_target::remote_check_symbols, remote_target::open_1)
386 (remote_target::remote_detach_1, remote_target::verify_memory)
387 (remote_target::xfer_partial, remote_target::read_description)
388 (remote_target::get_min_fast_tracepoint_insn_len): Update.
389 * record-full.c (record_full_open_1): Update.
390 * record-btrace.c (record_btrace_target_open): Update.
391 * objc-lang.c (lookup_objc_class, lookup_child_selector)
392 (value_nsstring): Update.
393 * linux-thread-db.c (add_thread_db_info)
394 (thread_db_find_new_threads_silently, check_thread_db_callback)
395 (try_thread_db_load_1, record_thread): Update.
396 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
397 Update.
398 * linux-fork.c (checkpoint_command): Update.
399 * infrun.c (set_non_stop, set_observer_mode)
400 (check_multi_target_resumption, for_each_just_stopped_thread)
401 (maybe_remove_breakpoints, normal_stop)
402 (class infcall_suspend_state): Update.
403 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
404 (info_program_command, attach_command): Update.
405 * infcall.c (call_function_by_hand_dummy): Update.
406 * inf-loop.c (inferior_event_handler): Update.
407 * gcore.c (gcore_command, derive_heap_segment): Update.
408 * exec.c (exec_file_command): Update.
409 * eval.c (evaluate_subexp): Update.
410 * compile/compile.c (compile_to_object): Update.
411 * cli/cli-dump.c (restore_command): Update.
412 * breakpoint.c (update_watchpoint)
413 (update_inserted_breakpoint_locations)
414 (insert_breakpoint_locations, get_bpstat_thread): Update.
415 * target.h (target_has_execution): Remove macro.
416 (target_has_execution_current): Don't declare.
417 (target_has_execution): Rename from target_has_execution_1. Add
418 argument default.
419
05374cfd
TT
4202020-09-28 Tom Tromey <tom@tromey.com>
421
422 * mi/mi-main.c (exec_reverse_continue)
423 (mi_cmd_list_target_features): Update.
424 * infrun.c (set_exec_direction_func): Update.
425 * target.c (default_execution_direction): Update.
426 * reverse.c (exec_reverse_once): Update.
427 * target.h (target_can_execute_reverse): Now a function.
428
9dccd06e
TT
4292020-09-28 Tom Tromey <tom@tromey.com>
430
431 * tui/tui-regs.c (tui_get_register)
432 (tui_data_window::show_registers): Update.
433 * thread.c (scoped_restore_current_thread::restore)
434 (scoped_restore_current_thread::scoped_restore_current_thread):
435 Update.
436 * regcache-dump.c (regcache_print): Update.
437 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
438 Update.
439 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
440 * mep-tdep.c (current_me_module, current_options): Update.
441 * linux-thread-db.c (thread_db_load): Update.
442 * infcmd.c (registers_info, info_vector_command)
443 (info_float_command): Update.
444 * ia64-tdep.c (ia64_frame_prev_register)
445 (ia64_sigtramp_frame_prev_register): Update.
446 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
447 * gcore.c (derive_stack_segment): Update.
448 * frame.c (get_current_frame, has_stack_frames): Update.
449 * findvar.c (language_defn::read_var_value): Update.
450 * arm-tdep.c (arm_pc_is_thumb): Update.
451 * target.c (target_has_registers): Rename from
452 target_has_registers_1.
453 * target.h (target_has_registers): Remove macro.
454 (target_has_registers): Rename from target_has_registers_1.
455
841de120
TT
4562020-09-28 Tom Tromey <tom@tromey.com>
457
458 * windows-tdep.c (tlb_make_value): Update.
459 * tui/tui-regs.c (tui_data_window::show_registers): Update.
460 * thread.c (scoped_restore_current_thread::restore)
461 (scoped_restore_current_thread::scoped_restore_current_thread)
462 (thread_command): Update.
463 * stack.c (backtrace_command_1, frame_apply_level_command)
464 (frame_apply_all_command, frame_apply_command): Update.
465 * infrun.c (siginfo_make_value, restore_infcall_control_state):
466 Update.
467 * gcore.c (derive_stack_segment): Update.
468 * frame.c (get_current_frame, has_stack_frames): Update.
469 * auxv.c (info_auxv_command): Update.
470 * ada-tasks.c (ada_build_task_list): Update.
471 * target.c (target_has_stack): Rename from target_has_stack_1.
472 * target.h (target_has_stack): Remove macro.
473 (target_has_stack): Rename from target_has_stack_1.
474
a739972c
TT
4752020-09-28 Tom Tromey <tom@tromey.com>
476
477 * target.c (target_has_memory): Rename from target_has_memory_1.
478 * tui/tui-regs.c (tui_data_window::show_registers): Update.
479 * thread.c (scoped_restore_current_thread::restore)
480 (scoped_restore_current_thread::scoped_restore_current_thread):
481 Update.
482 * frame.c (get_current_frame, has_stack_frames): Update.
483 * target.h (target_has_memory): Remove macro.
484 (target_has_memory): Rename from target_has_memory_1.
485
5b8a4776
TT
4862020-09-28 Tom Tromey <tom@tromey.com>
487
488 * target.c (target_has_all_memory_1): Remove.
489 * target.h (target_has_all_memory): Remove define.
490 (target_has_all_memory_1): Don't declare.
491
bd356ec6
SM
4922020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
493
494 * ser-base.c: Adjust comments formatting.
495
2c72d5e5
TT
4962020-09-27 Tom Tromey <tom@tromey.com>
497
498 PR tui/25342:
499 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
500
35a98237
TT
5012020-09-27 Tom Tromey <tom@tromey.com>
502
503 PR tui/25342:
504 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
505
9e820dec
TT
5062020-09-27 Tom Tromey <tom@tromey.com>
507
508 * unittests/tui-selftests.c: Update.
509 * tui/tui-winsource.h (struct tui_source_window_base)
510 <extra_margin, show_line_number, refresh_pad>: New methods.
511 <m_max_length, m_pad>: New members.
512 (tui_copy_source_line): Update.
513 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
514 first_col, line_width, ndigits parameters. Add length.
515 (tui_source_window_base::show_source_line): Write to pad. Line
516 number now 0-based.
517 (tui_source_window_base::refresh_pad): New method.
518 (tui_source_window_base::show_source_content): Write to pad. Call
519 refresh_pad.
520 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
521 not refill.
522 (tui_source_window_base::update_exec_info): Call
523 show_line_number.
524 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
525 method.
526 <m_digits>: New member.
527 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
528 and m_max_length.
529 (tui_source_window::show_line_number): New method.
530 * tui/tui-io.h (tui_puts): Fix comment.
531 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
532 m_max_length.
533
c15c15c8
TT
5342020-09-27 Tom Tromey <tom@tromey.com>
535
536 * tui/tui-winsource.c
537 (tui_source_window_base::set_is_exec_point_at): Don't call
538 show_source_line.
539
149830c1
TT
5402020-09-27 Tom Tromey <tom@tromey.com>
541
542 * python/py-tui.c (class tui_py_window) <refresh_window>: New
543 method.
544 <erase>: Update.
545 <cursor_x, cursor_y>: Remove.
546 <m_inner_window>: New member.
547 (tui_py_window::rerender): Create inner window.
548 (tui_py_window::output): Write to inner window.
549
8f9929bb
GR
5502020-09-26 Gareth Rees <grees@undo.io> (tiny change)
551
552 PR python/26586
553 * cli/cli-script.c (execute_control_commands): don't set
554 instream to nullptr here as this breaks the from_tty argument
555 to gdb.execute in Python.
556 (execute_user_command): set instream to nullptr here instead.
557
956bdb59
SM
5582020-09-25 Simon Marchi <simon.marchi@efficios.com>
559
560 * infrun.h (infrun_debug_printf): Fix formatting.
561 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
562
3b93626b
SJ
5632020-09-25 Saagar Jha <saagar@saagarjha.com>
564
565 * compile/compile-object-load.h (struct munmap_list): Add
566 explicitly-defined move constructor.
567
b551a89f
TT
5682020-09-24 Tom Tromey <tromey@adacore.com>
569
570 PR tui/26638:
571 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
572 method.
573 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
574 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
575 (tui_prev_win): Rewrite.
576
99bb393f
HD
5772020-09-23 Hannes Domani <ssbssa@yahoo.de>
578
579 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
580 in WOW64 processes as SIGINT.
581 * nat/windows-nat.h: Make wow64_process a shared variable.
582 * windows-nat.c: Remove static wow64_process variable.
583
20a5fcbd
TT
5842020-09-23 Tom Tromey <tom@tromey.com>
585
586 PR symtab/25470:
587 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
588 offset and bit size.
589 * printcmd.c (print_scalar_formatted): Handle zero-length
590 integer.
591 (print_scalar_formatted): Use bit_size_differs_p.
592 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
593 constant.
594 (union type_specific): <int_stuff>: New member.
595 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
596 methods.
597 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
598 TYPE_SPECIFIC_FIELD.
599 (recursive_dump_type, copy_type_recursive): Update.
600 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
601 DW_AT_data_bit_offset.
602
bac51ab7
TT
6032020-09-23 Tom Tromey <tom@tromey.com>
604
605 * utils.h (class gdb_argv): Add move operators.
606 <append>: New methods.
607 * compile/compile.c (build_argc_argv): Remove.
608 (compile_args_argc): Remove.
609 (compile_args_argv): Change type.
610 (set_compile_args): Simplify.
611 (append_args): Remove.
612 (filter_args): Remove argcp parameter.
613 (get_args): Return gdb_argv. Simplify.
614 (compile_to_object): Update.
615
92677124
TT
6162020-09-23 Tom Tromey <tom@tromey.com>
617
618 * compile/compile-object-run.c (do_module_cleanup)
619 <~do_module_cleanup> :Remove.
620 (do_module_cleanup): Update.
621 * compile/compile-object-load.h (struct munmap_list): Add move
622 assignment operator.
623 <source_file>: Now a std::string.
624 <munmap_list>: Rename. No longer a pointer.
625 * compile/compile-object-load.c (struct setup_sections_data): Add
626 constructor.
627 <setup_one_section>: Declare.
628 <munmap_list>: Move earlier.
629 <m_bfd>: New member.
630 <m_last_size, m_last_section_first, m_last_prot,
631 m_last_max_alignment>: Rename, add initializers where needed.
632 (setup_sections_data::setup_one_section): Rename from
633 setup_sections. Update.
634 (compile_object_load): Update. Don't use bfd_map_over_sections.
635
e616f60a
TT
6362020-09-23 Tom Tromey <tom@tromey.com>
637
638 * compile/compile-object-run.c (struct do_module_cleanup): Add
639 parameters to constructor. Update destructor.
640 <source_file, scope, scope_data, out_value_type, out_value_addr,
641 munmap_list_head, objfile_name_string>: Remove.
642 <module>: New member.
643 (do_module_cleanup): Update.
644 (compile_object_run): Update.
645
e947a848
TT
6462020-09-23 Tom Tromey <tom@tromey.com>
647
648 * compile/compile.c (eval_compile_command): Update.
649 * compile/compile-object-run.h (compile_object_run): Take a
650 compile_module_up.
651 * compile/compile-object-run.c (compile_object_run): Take a
652 compile_module_up.
653 * compile/compile-object-load.h (struct compile_module): Add
654 constructor, destructor.
655 (compile_module_up): New typedef.
656 (compile_object_load): Return compile_object_up.
657 * compile/compile-object-load.c (compile_object_load): Return
658 compile_module_up.
659
0dbf6ee6
TT
6602020-09-23 Tom Tromey <tom@tromey.com>
661
662 * compile/compile-object-run.c (struct do_module_cleanup): Add
663 constructor, destructor.
664 <objfile_name_string>: Don't use struct hack.
665 (do_module_cleanup): Use delete.
666 (compile_object_run): Use new.
667
ebe824f5
TT
6682020-09-23 Tom Tromey <tom@tromey.com>
669
670 * compile/compile-cplus-types.c
671 (compile_cplus_convert_struct_or_union): Use std::vector.
672 (compile_cplus_convert_func): Likewise.
673 * compile/compile-c-types.c (convert_func): Use std::vector.
674
5dd918d9
TT
6752020-09-21 Tom Tromey <tromey@adacore.com>
676
677 * sparc-tdep.c (sparc32_skip_prologue): Use
678 skip_prologue_using_sal.
679
5486c517
TT
6802020-09-19 Tom Tromey <tom@tromey.com>
681
682 * symfile.c (add_section_size_callback): Remove.
683 (load_one_section): Rename from load_section_callback. Change
684 parameters.
685 (generic_load): Use foreach.
686
8a6bb1d1
TT
6872020-09-19 Tom Tromey <tom@tromey.com>
688
689 * exec.c (add_to_section_table): Remove.
690 (build_section_table): Use foreach.
691
08f93a1a
TT
6922020-09-19 Tom Tromey <tom@tromey.com>
693
694 * elfread.c (elf_locate_sections): Change parameters.
695 (elf_symfile_read): Use foreach.
696
03cd72b8
TT
6972020-09-19 Tom Tromey <tom@tromey.com>
698
699 * cli/cli-dump.c (struct callback_data): Remove.
700 (restore_one_section): Rename from restore_section_callback.
701 Change parameters.
702 (restore_binary_file): Change parameters.
703 (restore_command): Use foreach.
704
f4f2b85f
TT
7052020-09-19 Tom Tromey <tom@tromey.com>
706
707 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
708 (gcore_copy_callback): Likewise.
709 (gcore_memory_sections): Use foreach.
710
b35c1d1c
TT
7112020-09-19 Tom Tromey <tom@tromey.com>
712
713 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
714 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
715 parameters.
716 (generic_elf_osabi_sniffer): Use foreach.
717 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
718 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
719
5bb6e9dd
TT
7202020-09-19 Tom Tromey <tom@tromey.com>
721
722 * dwarf2/read.c (locate_dwz_sections): Change parameters.
723 (dwarf2_get_dwz_file): Use foreach.
724 (dwarf2_locate_dwo_sections): Change parameters.
725 (open_and_init_dwo_file): Use foreach.
726 (dwarf2_locate_common_dwp_sections): Change parameters.
727 (open_and_init_dwp_file): Use foreach.
728
ad7277da
TT
7292020-09-19 Tom Tromey <tom@tromey.com>
730
731 * symfile.h: (find_lowest_section): Don't declare.
732 * symfile.c (find_lowest_section): Now static. Change
733 parameters.
734 (struct place_section_arg): Remove.
735 (place_section): Change parameters.
736 (addr_info_make_relative): Use foreach.
737 (symfile_dummy_outputs): Remove.
738 (default_symfile_relocate): Use foreach.
739
cb814f2e
TT
7402020-09-19 Tom Tromey <tom@tromey.com>
741
742 * objfiles.c (add_to_objfile_sections): Rename from
743 add_to_objfile_sections_full.
744 (add_to_objfile_sections): Remove.
745 (build_objfile_section_table): Use foreach.
746
3cabfd26
TT
7472020-09-19 Tom Tromey <tom@tromey.com>
748
749 * stap-probe.c (get_stap_base_address_1): Remove.
750 (get_stap_base_address): Use foreach.
751
1ce51eb5
TT
7522020-09-19 Tom Tromey <tom@tromey.com>
753
754 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
755 parameters.
756 (gdb_bfd_close_or_warn): Use foreach.
757
a190fabb
TT
7582020-09-19 Tom Tromey <tom@tromey.com>
759
760 * corelow.c (add_to_thread_list): Change parameters.
761 (core_target_open): Use foreach.
762
cafb0d81
TT
7632020-09-19 Tom Tromey <tom@tromey.com>
764
765 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
766 existing function.
767
c8d5abea
AB
7682020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
769
770 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
771 for arrays.
772
6d816919
AB
7732020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
774
775 * eval.c: Remove 'f-lang.h' include.
776 (value_f90_subarray): Moved to f-lang.c.
777 (eval_call): Renamed to...
778 (evaluate_subexp_do_call): ...this, is no longer static, header
779 comment moved into header file.
780 (evaluate_funcall): Update call to eval_call.
781 (skip_undetermined_arglist): Moved to f-lang.c.
782 (fortran_value_subarray): Likewise.
783 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
784 moved to evaluate_subexp_f.
785 (calc_f77_array_dims): Moved to f-lang.c
786 * expprint.c (print_subexp_funcall): New function.
787 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
788 moved to print_subexp_f, OP_FUNCALL uses new function.
789 (dump_subexp_body_funcall): New function.
790 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
791 moved to dump_subexp_f, OP_FUNCALL uses new function.
792 * expression.h (evaluate_subexp_do_call): Declare.
793 * f-lang.c (value_f90_subarray): Moved from eval.c.
794 (skip_undetermined_arglist): Likewise.
795 (calc_f77_array_dims): Likewise.
796 (fortran_value_subarray): Likewise.
797 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
798 (operator_length_f): Likewise.
799 (print_subexp_f): Likewise.
800 (dump_subexp_body_f): Likewise.
801 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
802 declaration of this operation to here.
803 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
804 support moved to operator_length_f.
805 * parser-defs.h (dump_subexp_body_funcall): Declare.
806 (print_subexp_funcall): Declare.
807 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
808 fortran-operator.def.
809
8c37706a
AB
8102020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
811
812 * eval.c (fortran_value_subarray): New function, content is taken
813 from...
814 (evaluate_subexp_standard): ...here, in two places. Now arrays
815 and strings both call the new function.
816 (calc_f77_array_dims): Add header comment, handle strings.
817
14f9473c
VC
8182020-09-18 Victor Collod <vcollod@nvidia.com>
819
820 PR gdb/26635
821 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
822 (i386_analyze_prologue): Call i386_skip_endbr.
823
b60cea74
TT
8242020-09-18 Tom Tromey <tromey@adacore.com>
825
826 * windows-nat.c (struct windows_nat_target) <wait>: Update.
827 (windows_nat_target::wait): Update.
828 * target/wait.h (enum target_wait_flag): New. Use
829 DEF_ENUM_FLAGS_TYPE.
830 * target/target.h (target_wait): Change type of options.
831 * target.h (target_options_to_string, default_target_wait):
832 Update.
833 (struct target_ops) <wait>: Change type of options.
834 * target.c (target_wait, default_target_wait, do_option): Change
835 type of "options".
836 (target_options_to_string): Likewise.
837 * target-delegates.c: Rebuild.
838 * target-debug.h (target_debug_print_target_wait_flags): Rename
839 from target_debug_print_options.
840 * sol-thread.c (class sol_thread_target) <wait>: Update.
841 (sol_thread_target::wait): Update.
842 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
843 (rs6000_nat_target::wait): Update.
844 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
845 Update.
846 (remote_target::wait_ns, remote_target::wait_as): Change type of
847 "options".
848 (remote_target::wait): Update.
849 * remote-sim.c (struct gdbsim_target) <wait>: Update.
850 (gdbsim_target::wait): Update.
851 * record-full.c (class record_full_base_target) <wait>: Update.
852 (record_full_wait_1): Change type of "options".
853 (record_full_base_target::wait): Update.
854 * record-btrace.c (class record_btrace_target) <wait>: Update.
855 (record_btrace_target::wait): Update.
856 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
857 Update.
858 (ravenscar_thread_target::wait): Update.
859 * procfs.c (class procfs_target) <wait>: Update.
860 (procfs_target::wait): Update.
861 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
862 * obsd-nat.c (obsd_nat_target::wait): Update.
863 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
864 (nto_procfs_target::wait): Update.
865 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
866 * nbsd-nat.c (nbsd_wait): Change type of "options".
867 (nbsd_nat_target::wait): Update.
868 * linux-thread-db.c (class thread_db_target) <wait>: Update.
869 (thread_db_target::wait): Update.
870 * linux-nat.h (class linux_nat_target) <wait>: Update.
871 * linux-nat.c (linux_nat_target::wait): Update.
872 (linux_nat_wait_1): Update.
873 * infrun.c (do_target_wait_1, do_target_wait): Change type of
874 "options".
875 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
876 * inf-ptrace.c (inf_ptrace_target::wait): Update.
877 * go32-nat.c (struct go32_nat_target) <wait>: Update.
878 (go32_nat_target::wait): Update.
879 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
880 * gnu-nat.c (gnu_nat_target::wait): Update.
881 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
882 * fbsd-nat.c (fbsd_nat_target::wait): Update.
883 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
884 * darwin-nat.c (darwin_nat_target::wait): Update.
885 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
886 (bsd_uthread_target::wait): Update.
887 * aix-thread.c (class aix_thread_target) <wait>: Update.
888 (aix_thread_target::wait): Update.
889
0295dde6
AB
8902020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
891
892 * compile/compile-object-run.c (create_copied_type_recursive): New
893 function.
894 (compile_object_run): Use new function.
895
d3483b43
JT
8962020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
897
898 * NEWS: Mention x86_64 Cygwin core file support.
899
e7d612ad
JT
9002020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
901
902 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
903 (core_process_module_section): Handle NOTE_INFO_MODULE64.
904
aff9d387
JT
9052020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
906
62a5151b
JT
907 * windows-tdep.h: Add prototypes.
908 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
909 (i386_windows_core_pid_to_str): Move and rename ...
910 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
911 (windows_core_pid_to_str): ... and here.
912 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
913
9142020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
915 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
916 (amd64_windows_init_abi_common): ... and register.
917
7d155da3
JT
9182020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
919
920 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
921 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
922
e8ef12b9
PA
9232020-09-18 Pedro Alves <pedro@palves.net>
924
925 PR gdb/26631
926 * thread.c (thread_find_command): Switch inferior before calling
927 target methods.
928
c1e1314d
TT
9292020-09-17 Tom Tromey <tromey@adacore.com>
930
931 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
932 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
933 (tdesc_arch_data_up): New typedef.
934 (tdesc_use_registers, tdesc_data_alloc): Update.
935 (tdesc_data_cleanup): Don't declare.
936 * target-descriptions.c (tdesc_data_alloc): Return a
937 tdesc_arch_data_up.
938 (tdesc_arch_data_deleter::operator()): Rename from
939 tdesc_data_cleanup. Change argument type.
940 (tdesc_use_registers): Change early_data to an rvalue reference.
941 (tdesc_use_registers): Don't use delete.
942 * sparc-tdep.c (sparc32_gdbarch_init): Update.
943 * s390-tdep.c (s390_gdbarch_init): Update.
944 * rx-tdep.c (rx_gdbarch_init): Update.
945 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
946 * riscv-tdep.c (riscv_gdbarch_init): Update.
947 * or1k-tdep.c (or1k_gdbarch_init): Update.
948 * nios2-tdep.c (nios2_gdbarch_init): Update.
949 * nds32-tdep.c (nds32_gdbarch_init): Update.
950 * mips-tdep.c (mips_gdbarch_init): Update.
951 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
952 * m68k-tdep.c (m68k_gdbarch_init): Update.
953 * i386-tdep.c (i386_gdbarch_init): Update.
954 * arm-tdep.c (arm_gdbarch_init): Update.
955 * arc-tdep.c (arc_tdesc_init): Update.
956 (arc_gdbarch_init): Update.
957 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
958
0363df3d
HD
9592020-09-17 Hannes Domani <ssbssa@yahoo.de>
960
961 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
962 for WOW64 processes.
963
280a9412
TT
9642020-09-17 Tom Tromey <tom@tromey.com>
965
966 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
967
6108fd18
TT
9682020-09-17 Tom Tromey <tom@tromey.com>
969
970 * value.c (preserve_values): Update.
971 * python/py-type.c (save_objfile_types): Update.
972 * guile/scm-type.c (save_objfile_types): Update.
973 * gdbtypes.h (create_copied_types_hash): Return htab_up.
974 * gdbtypes.c (create_copied_types_hash): Return htab_up.
975 * compile/compile-object-run.c (compile_object_run): Update.
976
fa9b1164
TT
9772020-09-17 Tom Tromey <tom@tromey.com>
978
979 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
980 Remove.
981 <m_table>: Now htab_up.
982 * typeprint.c (typedef_hash_table::recursively_update)
983 (typedef_hash_table::add_template_parameters)
984 (typedef_hash_table::typedef_hash_table): Update.
985 (typedef_hash_table::~typedef_hash_table): Remove.
986 (typedef_hash_table::typedef_hash_table)
987 (typedef_hash_table::find_global_typedef)
988 (typedef_hash_table::find_typedef): Update.
989
eb53f105
TT
9902020-09-17 Tom Tromey <tom@tromey.com>
991
992 * target-descriptions.c (tdesc_use_registers): Use htab_up.
993
7a8a5d47
TT
9942020-09-17 Tom Tromey <tom@tromey.com>
995
996 * linespec.c (class decode_compound_collector)
997 <~decode_compound_collector>: Remove.
998 <m_unique_syms>: Now htab_up.
999 (decode_compound_collector::operator ()): Update.
1000 (class symtab_collector) <~symtab_collector>: Remove.
1001 <m_symtab_table>: Now htab_up.
1002 (symtab_collector::operator ()): Update.
1003
99032cfc
TT
10042020-09-17 Tom Tromey <tom@tromey.com>
1005
1006 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
1007 (filename_seen_cache::clear): Update.
1008 (~filename_seen_cache): Remove.
1009 (filename_seen_cache::seen): Update.
1010 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
1011 htab_up.
1012 <~filename_seen_cache>: Remove.
1013 <traverse>: Update.
1014
32580f6d
TT
10152020-09-17 Tom Tromey <tom@tromey.com>
1016
1017 * completer.c (completion_tracker::discard_completions)
1018 (completion_tracker::~completion_tracker)
1019 (completion_tracker::maybe_add_completion)
1020 (completion_tracker::remove_completion)
1021 (completion_tracker::recompute_lowest_common_denominator)
1022 (completion_tracker::build_completion_result): Update.
1023 * completer.h (class completion_tracker) <have_completions>:
1024 Update.
1025 <m_entries_hash>: Now htab_up.
1026
c1fb9836
TT
10272020-09-17 Tom Tromey <tom@tromey.com>
1028
1029 * breakpoint.c (ambiguous_names_p): Use htab_up.
1030
88f07206
TT
10312020-09-17 Tom Tromey <tom@tromey.com>
1032
1033 * auto-load.c (struct auto_load_pspace_info)
1034 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
1035 <loaded_script_files, loaded_script_texts>: Change type to
1036 htab_up.
1037 (~auto_load_pspace_info) Remove.
1038 (init_loaded_scripts_info, maybe_add_script_file)
1039 (maybe_add_script_text, auto_load_info_scripts): Update.
1040
9519b2ee
TT
10412020-09-17 Tom Tromey <tromey@adacore.com>
1042
1043 * c-exp.y (name_obstack): Now static.
1044
d2cd4113
CC
10452020-09-17 Chungyi Chi <demonic@csie.io>
1046
1047 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
1048
b650a282
SM
10492020-09-16 Simon Marchi <simon.marchi@efficios.com>
1050
1051 * breakpoint.h (init_catchpoint): Change int parameter to bool.
1052 (add_solib_catchpoint): Likewise.
1053 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
1054 to bool.
1055 (add_solib_catchpoint): Change int parameter/variable to bool.
1056 (catch_load_or_unload): Likewise.
1057 (init_catchpoint): Likewise.
1058 (create_fork_vfork_event_catchpoint): Likewise.
1059 (catch_fork_command_1): Likewise.
1060 (catch_exec_command_1): Likewise.
1061
4d0bcfcf
SM
10622020-09-16 Simon Marchi <simon.marchi@efficios.com>
1063
1064 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
1065 Change instance_flags to m_instance_flags.
1066
fe830662
TT
10672020-09-16 Tom Tromey <tromey@adacore.com>
1068
1069 PR gdb/26598:
1070 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
1071
fe5ddfc3
JB
10722020-09-16 John Baldwin <jhb@FreeBSD.org>
1073
1074 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
1075 PL_FLAG_EXEC.
1076 (fbsd_nat_target::insert_exec_catchpoint)
1077 (fbsd_nat_target::remove_exec_catchpoint): Always define.
1078 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
1079 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
1080
e911c666
JB
10812020-09-16 John Baldwin <jhb@FreeBSD.org>
1082
1083 * configure.ac: Remove check for kinfo_getvmmap().
1084 * configure, config.in: Regenerate.
1085 * fbsd-nat.c (fbsd_read_mapping): Remove
1086 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
1087 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
1088 kinfo_get_vmmap() are always present.
1089
1f17d372
JB
10902020-09-16 John Baldwin <jhb@FreeBSD.org>
1091
1092 * fbsd-nat.c: Always include support for
1093 TARGET_OBJECT_SIGNAL_INFO.
1094
bcb1da7f
JB
10952020-09-16 John Baldwin <jhb@FreeBSD.org>
1096
1097 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
1098 sysctl and remove procfs fallback.
1099
5515f729
JB
11002020-09-16 John Baldwin <jhb@FreeBSD.org>
1101
1102 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
1103 * fbsd-nat.h: Likewise.
1104
da1df1db
TBA
11052020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1106
1107 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
1108 argument.
1109
0e25e767
AB
11102020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1111
1112 * ada-lang.c (ada_language_data): Delete.
1113 (ada_language): Remove references to ada_language_data.
1114 * c-lang.c (c_language_data): Delete.
1115 (c_language): Remove references to c_language_data.
1116 (cplus_language_data): Delete.
1117 (cplus_language): Remove references to cplus_language_data.
1118 (asm_language_data): Delete.
1119 (asm_language): Remove references to asm_language_data.
1120 (minimal_language_data): Delete.
1121 (minimal_language): Remove references to minimal_language_data.
1122 * d-lang.c (d_language_data): Delete.
1123 (d_language): Remove references to d_language_data.
1124 * f-lang.c (f_language_data): Delete.
1125 (f_language): Remove references to f_language_data.
1126 * go-lang.c (go_language_data): Delete.
1127 (go_language): Remove references to go_language_data.
1128 * language.c (unknown_language_data): Delete.
1129 (unknown_language): Remove references to unknown_language_data.
1130 (auto_language_data): Delete.
1131 (auto_language): Remove references to auto_language_data.
1132 * language.h (language_data): Delete struct.
1133 (language_defn): No longer inherit from language_data.
1134 * m2-lang.c (m2_language_data): Delete.
1135 (m2_language): Remove references to m2_language_data.
1136 * objc-lang.c (objc_language_data): Delete.
1137 (objc_language): Remove references to objc_language_data.
1138 * opencl-lang.c (opencl_language_data): Delete.
1139 (opencl_language): Remove references to opencl_language_data.
1140 * p-lang.c (pascal_language_data): Delete.
1141 (pascal_language): Remove references to pascal_language_data.
1142 * rust-lang.c (rust_language_data): Delete.
1143 (rust_language): Remove references to rust_language_data.
1144
b7c6e27d
AB
11452020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1146
1147 * ada-lang.c (ada_language_data): Remove la_op_print_tab
1148 initializer.
1149 (ada_language::opcode_print_table): New member function.
1150 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
1151 (c_language::opcode_print_table): New member function.
1152 (cplus_language_data): Remove la_op_print_tab initializer.
1153 (cplus_language::opcode_print_table): New member function.
1154 (asm_language_data): Remove la_op_print_tab initializer.
1155 (asm_language::opcode_print_table): New member function.
1156 (minimal_language_data): Remove la_op_print_tab initializer.
1157 (minimal_language::opcode_print_table): New member function.
1158 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
1159 (d_language::opcode_print_table): New member function.
1160 * expprint.c (print_subexp_standard): Update call to
1161 opcode_print_table.
1162 (op_string): Likewise.
1163 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
1164 (f_language::opcode_print_table): New member function.
1165 * go-lang.c (go_language_data): Remove la_op_print_tab
1166 initializer.
1167 (go_language::opcode_print_table): New member function.
1168 * language.c (unknown_language_data): Remove la_op_print_tab
1169 initializer.
1170 (unknown_language::opcode_print_table): New member function.
1171 (auto_language_data): Remove la_op_print_tab initializer.
1172 (auto_language::opcode_print_table): New member function.
1173 * language.h (language_data): Remove la_op_print_tab field.
1174 (language_defn::opcode_print_table): Declare new member function.
1175 * m2-lang.c (m2_language_data): Remove la_op_print_tab
1176 initializer.
1177 (m2_language::opcode_print_table): New member function.
1178 * objc-lang.c (objc_language_data): Remove la_op_print_tab
1179 initializer.
1180 (objc_language::opcode_print_table): New member function.
1181 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
1182 initializer.
1183 (opencl_language::opcode_print_table): New member function.
1184 * p-lang.c (pascal_language_data): Remove la_op_print_tab
1185 initializer.
1186 (pascal_language::opcode_print_table): New member function.
1187 * rust-lang.c (rust_language_data): Remove la_op_print_tab
1188 initializer.
1189 (rust_language::opcode_print_table): New member function.
1190
5aba6ebe
AB
11912020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1192
1193 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
1194 (ada_language::expression_ops): New member function.
1195 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
1196 (c_language::expression_ops): New member function.
1197 (cplus_language_data): Remove la_exp_desc initializer.
1198 (cplus_language::expression_ops): New member function.
1199 (asm_language_data): Remove la_exp_desc initializer.
1200 (asm_language::expression_ops): New member function.
1201 (minimal_language_data): Remove la_exp_desc initializer.
1202 (minimal_language::expression_ops): New member function.
1203 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
1204 (d_language::expression_ops): New member function.
1205 * eval.c (evaluate_subexp): Update call to expression_ops.
1206 * expprint.c (print_subexp): Likewise.
1207 (op_name): Likewise.
1208 (dump_subexp_body): Likewise.
1209 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
1210 (f_language::expression_ops): New member function.
1211 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
1212 (go_language::expression_ops): New member function.
1213 * language.c (language_defn::expression_ops): New function.
1214 (unknown_language_data): Remove la_exp_desc initializer.
1215 (auto_language_data): Likewise.
1216 * language.h (language_data): Remove la_exp_desc field.
1217 (language_defn::expression_ops): Declare new member function.
1218 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
1219 (m2_language::expression_ops): New member function.
1220 * objc-lang.c (objc_language_data): Remove la_exp_desc
1221 initializer.
1222 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
1223 initializer.
1224 (opencl_language::expression_ops): New member function.
1225 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
1226 * parse.c (operator_length): Update call to expression_ops.
1227 (exp_iterate): Likewise.
1228 * rust-lang.c (rust_language_data): Remove la_exp_desc
1229 initializer.
1230 (ruse_language::expression_ops): New member function.
1231
b63a3f3f
AB
12322020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1233
1234 * ada-lang.c (ada_language_data): Remove la_varobj_ops
1235 initializer.
1236 (ada_language::varobj_ops): New member function.
1237 * c-lang.c (c_language_data): Remove la_varobj_ops
1238 initializer.
1239 (cplus_language_data): Likewise.
1240 (cplus_language::varobj_ops): New member function.
1241 (asm_language_data): Remove la_varobj_ops initializer.
1242 (minimal_language_data): Likewise.
1243 * d-lang.c (d_language_data): Likewise.
1244 * f-lang.c (f_language_data): Likewise.
1245 * go-lang.c (go_language_data): Likewise.
1246 * language.c (language_defn::varobj_ops): New function.
1247 (unknown_language_data): Remove la_varobj_ops
1248 initializer.
1249 (auto_language_data): Likewise.
1250 * language.h (language_data): Remove la_varobj_ops field.
1251 (language_defn::varobj_ops): Declare new member function.
1252 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
1253 * objc-lang.c (objc_language_data): Likewise.
1254 * opencl-lang.c (opencl_language_data): Likewise.
1255 * p-lang.c (pascal_language_data): Likewise.
1256 * rust-lang.c (rust_language_data): Likewise.
1257 * varobj.c (varobj_create): Update call to varobj_ops.
1258 * varobj.h (default_varobj_ops): Delete define.
1259
1ac14a04
AB
12602020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1261
1262 * ada-lang.c (ada_language_data): Remove la_macro_expansion
1263 initializer.
1264 * c-lang.c (c_language_data): Likewise.
1265 (c_language::macro_expansion): New member function.
1266 (cplus_language_data): Likewise.
1267 (cplus_language::macro_expansion): New member function.
1268 (asm_language_data): Likewise.
1269 (asm_language::macro_expansion): New member function.
1270 (minimal_language_data): Likewise.
1271 (minimal_language::macro_expansion): New member function.
1272 * d-lang.c (d_language_data): Remove la_macro_expansion
1273 initializer.
1274 * f-lang.c (f_language_data): Likewise.
1275 * go-lang.c (go_language_data): Likewise.
1276 * language.c (unknown_language_data): Likewise.
1277 (auto_language_data): Likewise.
1278 * language.h (language_data): Remove la_macro_expansion field.
1279 (language_defn::macro_expansion): New member function.
1280 * m2-lang.c (m2_language_data): Remove la_macro_expansion
1281 initializer.
1282 * objc-lang.c (objc_language_data): Likewise.
1283 (objc_language::macro_expansion): New member function.
1284 * opencl-lang.c (opencl_language_data): Likewise.
1285 (opencl_language::macro_expansion): New member function.
1286 * p-lang.c (pascal_language_data): Remove la_macro_expansion
1287 initializer.
1288 * rust-lang.c (rust_language_data): Likewise.
1289 * symtab.c (default_collect_symbol_completion_matches_break_on):
1290 Update call to macro_expansion.
1291
3a3440fb
AB
12922020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1293
1294 * ada-lang.c (ada_language_data): Remove la_array_ordering
1295 initializer.
1296 * c-lang.c (c_language_data): Likewise.
1297 (cplus_language_data): Likewise.
1298 (asm_language_data): Likewise.
1299 (minimal_language_data): Likewise.
1300 * d-lang.c (d_language_data): Likewise.
1301 * dwarf2/read.c (read_array_order): Update for call to
1302 array_ordering.
1303 * f-lang.c (f_language_data): Remove la_array_ordering
1304 initializer.
1305 (f_language::array_ordering): New member function.
1306 * go-lang.c (go_language_data): Remove la_array_ordering
1307 initializer.
1308 * language.c (unknown_language_data): Likewise.
1309 (auto_language_data): Likewise.
1310 * language.h (language_data): Delete la_array_ordering field.
1311 (language_defn::array_ordering): New member function.
1312 * m2-lang.c (m2_language_data): Remove la_array_ordering
1313 initializer.
1314 * objc-lang.c (objc_language_data): Likewise.
1315 * opencl-lang.c (opencl_language_data): Likewise.
1316 * p-lang.c (pascal_language_data): Likewise.
1317 * rust-lang.c (rust_language_data): Likewise.
1318
0d201fa4
AB
13192020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1320
1321 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
1322 initializer.
1323 * c-lang.c (c_language_data): Likewise.
1324 (cplus_language_data): Likewise.
1325 (asm_language_data): Likewise.
1326 (minimal_language_data): Likewise.
1327 * d-lang.c (d_language_data): Likewise.
1328 * f-lang.c (f_language_data): Likewise.
1329 (f_language::case_sensitivity): New member function.
1330 * go-lang.c (go_language_data): Remove la_case_sensitivity
1331 initializer.
1332 * language.c (enum case_mode): Moved here from language.h.
1333 (case_mode): Make static.
1334 (show_case_command): Update for case_sensitivity being a method.
1335 (set_case_command): Likewise.
1336 (set_range_case): Likewise.
1337 (unknown_language_data): Remove la_case_sensitivity initializer.
1338 (auto_language_data): Likewise.
1339 * language.h (case_mode): Delete, move enum declaration to
1340 language.c.
1341 (language_data): Delete la_case_sensitivity field.
1342 (language_defn::case_sensitivity): New member function.
1343 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
1344 initializer.
1345 * objc-lang.c (objc_language_data): Likewise.
1346 * opencl-lang.c (opencl_language_data): Likewise.
1347 * p-lang.c (pascal_language_data): Likewise.
1348 * rust-lang.c (rust_language_data): Likewise.
1349
efdf6a73
AB
13502020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1351
1352 * ada-lang.c (ada_language_data): Remove la_range_check
1353 initializer.
1354 * c-lang.c (c_language_data): Likewise.
1355 (cplus_language_data): Likewise.
1356 (asm_language_data): Likewise.
1357 (minimal_language_data): Likewise.
1358 * d-lang.c (d_language_data): Likewise.
1359 * f-lang.c (f_language_data): Likewise.
1360 (f_language::range_checking_on_by_default): New member function.
1361 * go-lang.c (go_language_data): Remove la_range_check initializer.
1362 * language.c (enum range_mode): Moved here from language.h.
1363 (range_mode): Made static.
1364 (show_range_command): Update to use
1365 range_checking_on_by_default.
1366 (set_range_command): Likewise.
1367 (set_range_case): Likewise.
1368 (unknown_language_data): Remove la_range_check initializer.
1369 (auto_language_data): Likewise.
1370 * language.h (range_mode): Delete. Enum definition moved to
1371 language.c.
1372 (language_data): Remove la_range_check field.
1373 (language_defn::range_checking_on_by_default): New member
1374 function.
1375 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
1376 (m2_language::range_checking_on_by_default): New member function.
1377 * objc-lang.c (objc_language_data): Remove la_range_check
1378 initializer.
1379 * opencl-lang.c (opencl_language_data): Likewise.
1380 * p-lang.c (pascal_language_data): Likewise.
1381 (pascal_language::range_checking_on_by_default): New member
1382 function.
1383 * rust-lang.c (rust_language_data): Remove la_range_check
1384 initializer.
1385 (rust_language::range_checking_on_by_default): New member
1386 function.
1387
bf92aec5
AB
13882020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1389
1390 * dwarf2/read.c (dwarf2_physname): Remove special case for
1391 language_go.
1392 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
1393 member function.
1394
d3355e4d
AB
13952020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1396
1397 * ada-lang.c (ada_language_data): Remove
1398 la_store_sym_names_in_linkage_form_p initializer.
1399 (ada_language::store_sym_names_in_linkage_form_p): New member
1400 function.
1401 * c-lang.c (c_language_data): Remove
1402 la_store_sym_names_in_linkage_form_p initializer.
1403 (c_language::store_sym_names_in_linkage_form_p): New member
1404 function.
1405 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
1406 initializer.
1407 (asm_language_data): Likewise.
1408 (asm_language::store_sym_names_in_linkage_form_p): New member
1409 function.
1410 (minimal_language_data): Remove
1411 la_store_sym_names_in_linkage_form_p initializer.
1412 (minimal_language::store_sym_names_in_linkage_form_p): New member
1413 function.
1414 * d-lang.c (d_language_data): Remove
1415 la_store_sym_names_in_linkage_form_p initializer.
1416 * dwarf2/read.c (dwarf2_physname): Update call to
1417 store_sym_names_in_linkage_form_p.
1418 * f-lang.c (f_language_data): Remove
1419 la_store_sym_names_in_linkage_form_p initializer.
1420 * go-lang.c (go_language_data): Remove
1421 la_store_sym_names_in_linkage_form_p initializer.
1422 * language.c (unknown_language_data): Remove
1423 la_store_sym_names_in_linkage_form_p initializer.
1424 (unknown_language::store_sym_names_in_linkage_form_p): New member
1425 function.
1426 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
1427 initializer.
1428 (auto_language::store_sym_names_in_linkage_form_p): New member
1429 function.
1430 * language.h (language_data): Remove
1431 la_store_sym_names_in_linkage_form_p member variable.
1432 (language_defn::store_sym_names_in_linkage_form_p): New member
1433 function.
1434 * m2-lang.c (m2_language_data): Remove
1435 la_store_sym_names_in_linkage_form_p initializer.
1436 * objc-lang.c (objc_language_data): Likewise.
1437 * opencl-lang.c (opencl_language_data): Likewise.
1438 * p-lang.c (pascal_language_data): Likewise.
1439 * rust-lang.c (rust_language_data): Likewise.
1440
22c12a6c
AB
14412020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1442
1443 * ada-lang.c (ada_language_data): Remove string_lower_bound
1444 initializer.
1445 * c-lang.c (c_language_data): Likewise.
1446 (cplus_language_data): Likewise.
1447 (asm_language_data): Likewise.
1448 (minimal_language_data): Likewise.
1449 * d-lang.c (d_language_data): Likewise.
1450 * f-lang.c (f_language_data): Likewise.
1451 * go-lang.c (go_language_data): Likewise.
1452 * language.c (unknown_language_data): Likewise.
1453 (auto_language_data): Likewise.
1454 * language.h (language_data): Remove string_lower_bound field.
1455 (language_defn::string_lower_bound): New member function.
1456 * m2-lang.c (m2_language_data): Remove string_lower_bound
1457 initializer.
1458 (m2_language::string_lower_bound): New member function.
1459 * objc-lang.c (objc_language_data): Remove string_lower_bound
1460 initializer.
1461 * opencl-lang.c (opencl_language_data): Likewise.
1462 * p-lang.c (pascal_language_data): Likewise.
1463 * rust-lang.c (rust_language_data): Likewise.
1464 * valops.c (value_cstring): Update call to string_lower_bound.
1465 (value_string): Likewise.
1466 * value.c (allocate_repeated_value): Likewise.
1467
1c236ddd
AB
14682020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1469
1470 * valops.c (value_repeat): Fix incorrect argument name in comment.
1471
67bd3fd5
AB
14722020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1473
1474 * ada-lang.c (ada_language_data): Remove c_style_arrays
1475 initializer.
1476 (ada_language::c_style_arrays_p): New member fuction.
1477 * c-lang.c (c_language_data): Remove c_style_arrays
1478 initializer.
1479 (cplus_language_data): Likewise.
1480 (asm_language_data): Likewise.
1481 (minimal_language_data): Likewise.
1482 * d-lang.c (d_language_data): Likewise.
1483 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
1484 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
1485 (f_language::c_style_arrays_p): New member function.
1486 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
1487 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
1488 * language.c (unknown_language_data): Remove c_style_arrays
1489 initializer.
1490 (auto_language_data): Likewise.
1491 * language.h (language_data): Remove c_style_arrays field.
1492 (language_defn::c_style_arrays_p): New member function.
1493 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
1494 (m2_language::c_style_arrays_p): New member function.
1495 * objc-lang.c (objc_language_data): Remove c_style_arrays
1496 initializer.
1497 * opencl-lang.c (opencl_language_data): Likewise.
1498 * p-lang.c (pascal_language_data): Likewise.
1499 * rust-lang.c (rust_language_data): Likewise.
1500 * valarith.c (value_subscript): Update call to c_style_arrays_p,
1501 and update local variable to a bool.
1502 * valops.c (value_cast): Update call to c_style_arrays_p.
1503 (value_array): Likewise.
1504 * value.c (coerce_array): Likewise.
1505
85967615
AB
15062020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1507
1508 * ada-lang.c (ada_language_data): Remove la_language initializer.
1509 * c-lang.c (c_language_data): Likewise.
1510 (cplus_language_data): Likewise.
1511 (asm_language_data): Likewise.
1512 (minimal_language_data): Likewise.
1513 * d-lang.c (d_language_data): Likewise.
1514 * f-lang.c (f_language_data): Likewise.
1515 * go-lang.c (go_language_data): Likewise.
1516 * language.c (unknown_language_data): Likewise.
1517 (auto_language_data): Likewise.
1518 * language.h (language_data): Remove la_language field.
1519 (language_defn::language_defn): Initialise la_language field.
1520 (language_defn::la_language): New member variable.
1521 * m2-lang.c (m2_language_data): Remove la_language field.
1522 * objc-lang.c (objc_language_data): Likewise.
1523 * opencl-lang.c (opencl_language_data): Likewise.
1524 * p-lang.c (pascal_language_data): Likewise.
1525 * rust-lang.c (rust_language_data): Likewise.
1526
e171d6f1
AB
15272020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1528
1529 * ada-lang.c (ada_extensions): Delete, moved into
1530 ada_language::filename_extensions.
1531 (ada_language_data): Remove la_filename_extensions initializer.
1532 (ada_language::filename_extensions): New member function.
1533 * c-lang.c (c_extensions): Delete, moved into
1534 c_language::filename_extensions.
1535 (c_language_data): Remove la_filename_extensions initializer.
1536 (c_language::filename_extensions): New member function.
1537 (cplus_extensions): Delete, moved into
1538 cplus_language::filename_extensions.
1539 (cplus_language_data): Remove la_filename_extensions initializer.
1540 (cplus_language::filename_extensions): New member function.
1541 (asm_extensions): Delete, moved into
1542 asm_language::filename_extensions.
1543 (asm_language_data): Remove la_filename_extensions initializer.
1544 (asm_language::filename_extensions): New member function.
1545 (minimal_language_data): Remove la_filename_extensions
1546 initializer.
1547 * d-lang.c (d_extensions): Delete, moved into
1548 d_language::filename_extensions.
1549 (d_language_data): Remove la_filename_extensions initializer.
1550 (d_language::filename_extensions): New member function.
1551 * f-lang.c (f_extensions): Delete, moved into
1552 f_language::filename_extensions.
1553 (f_language_data): Remove la_filename_extensions initializer.
1554 (f_language::filename_extensions): New member function.
1555 * go-lang.c (go_language_data): Remove la_filename_extensions
1556 initializer.
1557 * language.c (add_set_language_command): Update now that
1558 filename_extensions returns a vector.
1559 (unknown_language_data): Remove la_filename_extensions
1560 initializer.
1561 (auto_language_data): Likewise.
1562 * language.h (language_data): Remove la_filename_extensions field.
1563 (language_defn::filename_extensions): New member function.
1564 * m2-lang.c (m2_language_data): Remove la_filename_extensions
1565 initializer.
1566 * objc-lang.c (objc_extensions): Delete, moved into
1567 objc_language::filename_extensions.
1568 (objc_language_data): Remove la_filename_extensions initializer.
1569 (objc_language::filename_extensions): New member function.
1570 * opencl-lang.c (opencl_language_data): Remove
1571 la_filename_extensions initializer.
1572 * p-lang.c (pascal_extensions): Delete, moved into
1573 pascal_language::filename_extensions.
1574 (pascal_language_data): Remove la_filename_extensions initializer.
1575 (pascal_language::filename_extensions): New member function.
1576 * rust-lang.c (rust_extensions): Delete, moved into
1577 rust_language::filename_extensions.
1578 (rust_language_data): Remove la_filename_extensions initializer.
1579 (rust_language::filename_extensions): New member function.
1580 * symfile.c (add_filename_language): Add new assert.
1581
6f7664a9
AB
15822020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1583
1584 * ada-lang.c (ada_language_data): Remove la_name and
1585 la_natural_name initializers.
1586 (ada_language::name): New member function.
1587 (ada_language::natural_name): New member function.
1588 * c-lang.c (c_language_data): Remove la_name and
1589 la_natural_name initializers.
1590 (c_language::name): New member function.
1591 (c_language::natural_name): New member function.
1592 (cplus_language_data): Remove la_name and
1593 la_natural_name initializers.
1594 (cplus_language::name): New member function.
1595 (cplus_language::natural_name): New member function.
1596 (asm_language_data): Remove la_name and
1597 la_natural_name initializers.
1598 (asm_language::name): New member function.
1599 (asm_language::natural_name): New member function.
1600 (minimal_language_data): Remove la_name and
1601 la_natural_name initializers.
1602 (minimal_language::name): New member function.
1603 (minimal_language::natural_name): New member function.
1604 * compile/compile.c (compile_to_object): Update call to
1605 lanugage_defn::name.
1606 * d-lang.c (d_language_data): Remove la_name and
1607 la_natural_name initializers.
1608 (d_language::name): New member function.
1609 (d_language::natural_name): New member function.
1610 * expprint.c (print_subexp_standard): Update call to
1611 language_defn::name.
1612 (dump_raw_expression): Likewise
1613 (dump_prefix_expression): Likewise.
1614 * f-lang.c (f_language_data): Remove la_name and
1615 la_natural_name initializers.
1616 (f_language::name): New member function.
1617 (f_language::natural_name): New member function.
1618 * go-lang.c (go_language_data): Remove la_name and
1619 la_natural_name initializers.
1620 (go_language::name): New member function.
1621 (go_language::natural_name): New member function.
1622 * language.c (show_language_command): Update call to
1623 language_defn::name.
1624 (set_language_command): Likewise.
1625 (language_enum): Likewise.
1626 (language_str): Likewise.
1627 (add_set_language_command): Likewise, use
1628 language_defn::natural_name in the doc string.
1629 (unknown_language_data): Remove la_name and
1630 la_natural_name initializers.
1631 (unknown_language::name): New member function.
1632 (unknown_language::natural_name): New member function.
1633 (auto_language_data): Remove la_name and
1634 la_natural_name initializers.
1635 (auto_language::name): New member function.
1636 (auto_language::natural_name): New member function.
1637 (language_lookup_primitive_type_as_symbol): Update call to
1638 language_defn::name.
1639 * language.h (language_data): Remove la_name and la_natural_name
1640 member variables.
1641 (language_defn::name): New member function.
1642 (language_defn::natural_name): New member function.
1643 * m2-lang.c (m2_language_data): Remove la_name and
1644 la_natural_name initializers.
1645 (m2_language::name): New member function.
1646 (m2_language::natural_name): New member function.
1647 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
1648 language_defn::natural_name.
1649 * objc-lang.c (objc_language_data): Remove la_name and
1650 la_natural_name initializers.
1651 (objc_language::name): New member function.
1652 (objc_language::natural_name): New member function.
1653 * opencl-lang.c (opencl_language_data): Remove la_name and
1654 la_natural_name initializers.
1655 (opencl_language::name): New member function.
1656 (opencl_language::natural_name): New member function.
1657 * p-lang.c (pascal_language_data): Remove la_name and
1658 la_natural_name initializers.
1659 (pascal_language::name): New member function.
1660 (pascal_language::natural_name): New member function.
1661 * rust-lang.c (rust_language_data): Remove la_name and
1662 la_natural_name initializers.
1663 (rust_language::name): New member function.
1664 (rust_language::natural_name): New member function.
1665 * symtab.c (lookup_language_this): Update call to
1666 language_defn::name.
1667
5bae7c4e
AB
16682020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1669
1670 * ada-lang.c (ada_language_data): Remove la_name_of_this
1671 initializer.
1672 * ax-gdb.c (gen_expr): Update call to name_of_this.
1673 * c-exp.y (classify_name): Likewise.
1674 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
1675 (cplus_language_data): Likewise.
1676 (cplus_language::name_of_this): New member function.
1677 (asm_language_data): Remove la_name_of_this initializer.
1678 (minimal_language_data): Likewise.
1679 * d-lang.c (d_language_data): Likewise.
1680 (d_language::name_of_this): New member function.
1681 * expprint.c (print_subexp_standard): Update call to name_of_this.
1682 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
1683 * go-lang.c (go_language_data): Likewise.
1684 * language.c (unknown_language_data): Likewise.
1685 (unknown_language::name_of_this): New member function.
1686 (auto_language_data): Remove la_name_of_this initializer.
1687 (auto_language::name_of_this): New member function.
1688 * language.h (language_data): Delete la_name_of_this member
1689 variable.
1690 (language_defn::name_of_this): New member function.
1691 * m2-lang.c (m2_language_data): Remove la_name_of_this
1692 initializer.
1693 * objc-lang.c (objc_language_data): Likewise.
1694 (objc_language::name_of_this): New member function.
1695 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
1696 initializer.
1697 * p-lang.c (pascal_language_data): Likewise.
1698 (pascal_language::name_of_this): New member function.
1699 * rust-lang.c (rust_language_data): Remove la_name_of_this
1700 initializer.
1701 * symtab.c (lookup_language_this): Update call to name_of_this.
1702 (lookup_symbol_aux): Likewise.
1703 * valops.c (value_of_this): Likewise.
1704
22e3f3ed
AB
17052020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1706
1707 * ada-lang.c (ada_language_data): Remove
1708 la_struct_too_deep_ellipsis initializer.
1709 (ada_language::struct_too_deep_ellipsis): New member function.
1710 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
1711 initializer.
1712 (cplus_language_data): Likewise.
1713 (asm_language_data): Likewise.
1714 (minimal_language_data): Likewise.
1715 * cp-valprint.c (cp_print_value): Update call to
1716 struct_too_deep_ellipsis.
1717 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
1718 initializer.
1719 * f-lang.c (f_language_data): Likewise.
1720 (f_language::struct_too_deep_ellipsis): New member function.
1721 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
1722 initializer.
1723 * language.c (unknown_language_data): Likewise.
1724 (auto_language_data): Likewise.
1725 * language.h (language_data): Delete la_struct_too_deep_ellipsis
1726 member variable.
1727 (language_defn::struct_too_deep_ellipsis): New member function.
1728 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
1729 initializer.Q
1730 * objc-lang.c (objc_language_data): Likewise.
1731 * opencl-lang.c (opencl_language_data): Likewise.
1732 * p-lang.c (pascal_language_data): Likewise.
1733 * rust-lang.c (rust_language_data): Likewise.
1734 * valprint.c (val_print_check_max_depth): Update call to
1735 struct_too_deep_ellipsis.
1736
ed29e1c7
FW
17372020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
1738
1739 * MAINTAINERS (Write After Approval): Add myself.
1740
12d8f940
TT
17412020-09-15 Tom Tromey <tom@tromey.com>
1742
1743 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
1744 Remove.
1745
6b5a7bc7
TT
17462020-09-15 Tom Tromey <tom@tromey.com>
1747
1748 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
1749 and TYPE_CODE_METHODPTR cases.
1750 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
1751 (c_value_print_inner): Update.
1752 * valprint.c (generic_value_print_memberptr): New function, from
1753 c_value_print_memberptr.
1754 (generic_value_print): Use it. Call cplus_print_method_ptr.
1755
47f0e2ff
TT
17562020-09-15 Tom Tromey <tromey@adacore.com>
1757
1758 * python/python-internal.h (PyInt_FromLong): Remove define.
1759 * python/py-value.c (convert_value_from_python): Use
1760 gdb_py_object_from_longest.
1761 * python/py-type.c (typy_get_code): Use
1762 gdb_py_object_from_longest.
1763 * python/py-symtab.c (salpy_get_line): Use
1764 gdb_py_object_from_longest.
1765 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
1766 gdb_py_object_from_longest.
1767 * python/py-record.c (recpy_gap_reason_code): Use
1768 gdb_py_object_from_longest.
1769 * python/py-record-btrace.c (recpy_bt_insn_size)
1770 (recpy_bt_func_level, btpy_list_count): Use
1771 gdb_py_object_from_longest.
1772 * python/py-infthread.c (gdbpy_create_ptid_object): Use
1773 gdb_py_object_from_longest. Fix error handling.
1774 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
1775 gdb_py_object_from_longest.
1776 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
1777 gdb_py_object_from_longest.
1778 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
1779 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
1780 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
1781
512116ce
TT
17822020-09-15 Tom Tromey <tromey@adacore.com>
1783
1784 * python/python.c (gdbpy_parameter_value): Use
1785 gdb_py_object_from_ulongest.
1786
4ab1029c
TT
17872020-09-15 Tom Tromey <tromey@adacore.com>
1788
1789 * python/py-infevents.c (create_register_changed_event_object):
1790 Use gdb_py_object_from_longest.
1791 * python/py-exitedevent.c (create_exited_event_object): Use
1792 gdb_py_object_from_longest.
1793
062534d4
TT
17942020-09-15 Tom Tromey <tromey@adacore.com>
1795
1796 * python/python.c (gdbpy_parameter_value): Use
1797 gdb_py_object_from_longest.
1798 * python/py-type.c (convert_field, typy_range): Use
1799 gdb_py_object_from_longest.
1800 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
1801 gdb_py_object_from_longest.
1802 * python/py-lazy-string.c (stpy_get_length): Use
1803 gdb_py_object_from_longest.
1804 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
1805 gdb_py_object_from_longest.
1806 * python/py-infevents.c (create_memory_changed_event_object): Use
1807 gdb_py_object_from_longest.
1808 * python/py-inferior.c (infpy_get_num): Use
1809 gdb_py_object_from_longest.
1810 (infpy_get_pid): Likewise.
1811
d1cab987
TT
18122020-09-15 Tom Tromey <tromey@adacore.com>
1813
1814 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
1815 defines.
1816 * python/py-value.c (valpy_long): Use
1817 gdb_py_object_from_ulongest.
1818 * python/py-symtab.c (salpy_get_pc): Use
1819 gdb_py_object_from_ulongest.
1820 (salpy_get_last): Likewise.
1821 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
1822 gdb_py_object_from_ulongest.
1823 * python/py-lazy-string.c (stpy_get_address): Use
1824 gdb_py_object_from_ulongest.
1825 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
1826 * python/py-arch.c (archpy_disassemble): Use
1827 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
1828 error handling.
1829
4bde49dc
TT
18302020-09-15 Tom Tromey <tromey@adacore.com>
1831
1832 * python/python-internal.h (gdb_py_long_from_longest): Remove
1833 defines.
1834 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
1835 * python/py-type.c (convert_field, typy_get_sizeof): Use
1836 gdb_py_object_from_longest.
1837 * python/py-record-btrace.c (btpy_list_index): Use
1838 gdb_py_object_from_longest.
1839
37431074
TT
18402020-09-15 Tom Tromey <tromey@adacore.com>
1841
1842 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
1843 * python/py-record.c (recpy_element_number): Use
1844 gdb_py_object_from_longest.
1845 (recpy_gap_number): Likewise.
1846
cbe25684
TT
18472020-09-15 Tom Tromey <tromey@adacore.com>
1848
1849 * top.c (ui::ui): Update.
1850 (highest_ui_num): Remove.
1851 * top.h (struct ui) <num>: Remove.
1852
db92ac45
TT
18532020-09-15 Tom Tromey <tromey@adacore.com>
1854
1855 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
1856 * ui-style.c (ansi_regex_text): Now array.
1857 * rust-exp.y (number_regex_text): Now array.
1858 * linespec.c (linespec_quote_characters): Now array.
1859 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
1860 Now arrays.
1861
d2b31b67
SM
18622020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1863
1864 * debuginfod-support.c (debuginfod_client_deleter): New.
1865 (debuginfod_client_up): New.
1866 (debuginfod_init): Return debuginfod_client_up.
1867 (debuginfod_source_query): Adjust.
1868 (debuginfod_debuginfo_query): Adjust.
1869
3246bd8e
SM
18702020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1871
1872 * debuginfod-support.c (debuginfod_source_query): Use
1873 make_unique_xstrdup.
1874
10242f36
SM
18752020-09-14 Simon Marchi <simon.marchi@efficios.com>
1876
1877 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
1878 with `type::instance_flags`.
1879
e1044e6a
MM
18802020-09-14 Michael Mullin <masmullin@gmail.com>
1881
1882 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
1883 Remove baton parameter.
1884
04902b09
PA
18852020-09-14 Pedro Alves <pedro@palves.net>
1886
1887 * Makefile.in (SELFTESTS_SRCS): Add
1888 unittests/enum-flags-selftests.c.
1889 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
1890 btrace_function_flags instead of enum btrace_function_flag.
1891 * compile/compile-c-types.c (convert_qualified): Use
1892 enum_flags::raw.
1893 * compile/compile-cplus-symbols.c (convert_one_symbol)
1894 (convert_symbol_bmsym):
1895 * compile/compile-cplus-types.c (compile_cplus_convert_method)
1896 (compile_cplus_convert_struct_or_union_methods)
1897 (compile_cplus_instance::convert_qualified_base):
1898 * go-exp.y (parse_string_or_char): Add cast to int.
1899 * unittests/enum-flags-selftests.c: New file.
1900 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
1901 type to btrace_thread_flags from btrace_thread_flag.
1902 (record_btrace_cancel_resume, record_btrace_step_thread): Change
1903 local's type to btrace_thread_flags from btrace_thread_flag. Add
1904 cast in DEBUG call.
1905
69896a2c
PA
19062020-09-14 Pedro Alves <pedro@palves.net>
1907
1908 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
1909 * gdbtypes.c (address_space_name_to_int): Rename to ...
1910 (address_space_name_to_type_instance_flags): ... this.
1911 (address_space_int_to_name): Rename to ...
1912 (address_space_type_instance_flags_to_name): ... this.
1913 * gdbtypes.h (address_space_name_to_int): Rename to ...
1914 (address_space_name_to_type_instance_flags): ... this.
1915 (address_space_int_to_name): Rename to ...
1916 (address_space_type_instance_flags_to_name): ... this.
1917 * type-stack.c (type_stack::insert): Adjust to rename.
1918 * type-stack.h (type_stack::insert): Likewise.
1919
314ad88d
PA
19202020-09-14 Pedro Alves <pedro@palves.net>
1921 Andrew Burgess <andrew.burgess@embecosm.com>
1922
1923 * avr-tdep.c (avr_address_class_type_flags): Return
1924 type_instance_flags.
1925 (avr_address_class_type_flags_to_name): Take a
1926 type_instance_flags.
1927 (avr_address_class_name_to_type_flags): Return bool and take a
1928 type_instance_flags.
1929 * d-lang.c (build_d_types): Use type::set_instance_flags.
1930 * ft32-tdep.c (ft32_address_class_type_flags): Return
1931 type_instance_flags.
1932 (ft32_address_class_type_flags_to_name): Take a
1933 type_instance_flags.
1934 (ft32_address_class_name_to_type_flags): Return bool and take a
1935 type_instance_flags.
1936 (ft32_gdbarch_init): Use type::set_instance_flags.
1937 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
1938 * gdbarch.h, gdbarch.c: Regenerate.
1939 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
1940 (address_class_name_to_type_flags): Use type_instance_flags and
1941 bool.
1942 * gdbtypes.c (address_space_name_to_int)
1943 (address_space_int_to_name, make_qualified_type): Use
1944 type_instance_flags.
1945 (make_qualified_type): Use type_instance_flags and
1946 type::set_instance_flags.
1947 (make_type_with_address_space, make_cv_type, make_vector_type)
1948 (check_typedef): Use type_instance_flags.
1949 (recursive_dump_type): Cast type_instance_flags to unsigned for
1950 printing.
1951 (copy_type_recursive): Use type::set_instance_flags.
1952 (gdbtypes_post_init): Use type::set_instance_flags.
1953 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
1954 <m_instance_flags>: ... this.
1955 <instance_flags, set_instance_flags>: New methods.
1956 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
1957 (SET_TYPE_INSTANCE_FLAGS): New.
1958 (address_space_name_to_int, address_space_int_to_name)
1959 (make_type_with_address_space): Pass flags using
1960 type_instance_flags instead of int.
1961 * stabsread.c (cleanup_undefined_types_noname): Use
1962 type::set_instance_flags.
1963 * s390-tdep.c (s390_address_class_type_flags): Return
1964 type_instance_flags.
1965 (s390_address_class_type_flags_to_name): Take a
1966 type_instance_flags.
1967 (s390_address_class_name_to_type_flags): Return bool and take a
1968 type_instance_flags.
1969 * type-stack.c (type_stack::follow_types): Use
1970 type_instance_flags.
1971 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
1972
27087b7f
TT
19732020-09-14 Tom Tromey <tromey@adacore.com>
1974
1975 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
1976 * x86-tdep.c (x86_is_thunk_register_name)
1977 (x86_in_indirect_branch_thunk): Update.
1978 * sparc64-tdep.c (sparc64_fpu_register_names)
1979 (sparc64_cp0_register_names, sparc64_register_names)
1980 (sparc64_pseudo_register_names): Now const.
1981 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
1982 cp0_registers_num>: Now const.
1983 * sparc-tdep.c (sparc_core_register_names)
1984 (sparc32_fpu_register_names, sparc32_cp0_register_names)
1985 (sparc32_pseudo_register_names): Now const.
1986 (validate_tdesc_registers): Update.
1987 * rust-lang.c (rust_extensions): Now const.
1988 * p-lang.c (p_extensions): Now const.
1989 * objc-lang.c (objc_extensions): Now const.
1990 * nto-tdep.c (nto_thread_state_str): Now const.
1991 * moxie-tdep.c (moxie_register_names): Now const.
1992 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
1993 Now const.
1994 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
1995 (mips_linux_reg_names): Now const.
1996 (mips_gdbarch_init): Update.
1997 * microblaze-tdep.c (microblaze_register_names): Now const.
1998 * m68k-tdep.c (m68k_register_names): Now const.
1999 * m32r-tdep.c (m32r_register_names): Now const.
2000 * ia64-tdep.c (ia64_register_names): Now const.
2001 * i386-tdep.h (struct gdbarch_tdep) <register_names,
2002 ymmh_register_names, ymm16h_regnum, mpx_register_names,
2003 k_register_names, zmmh_register_names, xmm_avx512_register_names,
2004 ymm_avx512_register_names, pkeys_register_names>: Now const.
2005 * i386-tdep.c (i386_register_names, i386_zmm_names)
2006 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
2007 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
2008 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
2009 * f-lang.c (f_extensions): Now const.
2010 * d-lang.c (d_extensions): Now const.
2011 * csky-tdep.c (csky_register_names): Now const.
2012 * charset.c (default_charset_names, charset_enum): Now const.
2013 (_initialize_charset): Update.
2014 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
2015 const.
2016 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
2017 (bsd_uthread_solib_loaded): Update.
2018 (bsd_uthread_state): Now const.
2019 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
2020 (amd64_ymm_avx512_names, amd64_ymmh_names)
2021 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
2022 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
2023 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
2024 (amd64_dword_names): Now const.
2025 * agent.c (can_use_agent_enum): Now const.
2026 * ada-tasks.c (task_states, long_task_states): Now const.
2027 * ada-lang.c (known_runtime_file_name_patterns)
2028 (known_auxiliary_function_name_patterns, attribute_names)
2029 (standard_exc, ada_extensions): Now const.
2030
89806626
SM
20312020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2032
2033 * bcache.h (struct bcache) <bcache>: Remove constructor.
2034 <m_hash_function, m_compare_function>: Remove.
2035 <~bcache>: Make virtual.
2036 <compare>: Remove static method, introduce virtual method.
2037 <default_hash>: Remove.
2038 <hash>: New virtual method.
2039 * bcache.c (bcache::expand_hash_table): Update.
2040 (bcache::insert): Update.
2041 (bcache::hash): New.
2042 (bcache::compare): Update comment and parameter names.
2043 * gdbtypes.c (types_deeply_equal): Update.
2044 * psymtab.h (struct psymbol_bcache): New struct.
2045 (class psymtab_storage) <psymtab_storage>: Make default.
2046 <psymbol_cache>: Change type to psymbol_bcache.
2047 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
2048 (psymbol_hash): Change to...
2049 (psymbol_bcache::hash): ... this.
2050 (psymbol_compare): Change to...
2051 (psymbol_bcache::compare): ... this.
2052
677c92fe
SM
20532020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2054
2055 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
2056 checking for initial lwp.
2057
3eba3a01
TT
20582020-09-14 Tom Tromey <tromey@adacore.com>
2059
2060 * m68k-tdep.c (m68k_extract_return_value): Use
2061 pointer_result_regnum.
2062 (m68k_store_return_value): Likewise.
2063 (m68k_reg_struct_return_p): Handle vectors and arrays.
2064 (m68k_return_value): Handle arrays.
2065 (m68k_svr4_return_value): Fix single-element aggregate handling.
2066 Handle long double. Adjust for embedded ABI.
2067 (m68k_svr4_init_abi): Set pointer_result_regnum.
2068 (m68k_embedded_init_abi): New function.
2069 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
2070 (m68k_osabi_sniffer): New function.
2071 (_initialize_m68k_tdep): Register osabi sniffer.
2072 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
2073 member.
2074
33f4dd48
SM
20752020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2076
2077 * xml-support.c (xml_fetch_content_from_file): Replace xfree
2078 with gdb::unique_xmalloc_ptr<char>.
2079
8400a90d
SM
20802020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2081
2082 * xml-support.h (xml_fetch_another): Change type to be a
2083 function_view.
2084 (xml_process_xincludes): Remove baton parameter.
2085 (xml_fetch_content_from_file): Change baton parameter to
2086 dirname.
2087 * xml-support.c (struct xinclude_parsing_data)
2088 <xinclude_parsing_data>: Remove baton parameter.
2089 <fetcher_baton>: Remove.
2090 (xinclude_start_include): Adjust.
2091 (xml_process_xincludes): Adjust.
2092 (xml_fetch_content_from_file): Replace baton parameter with
2093 dirname.
2094 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
2095 (xml_init_syscalls_info): Use a lambda.
2096 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
2097 (file_read_description_xml): Use a lambda.
2098 (fetch_available_features_from_target): Change baton parameter
2099 to target_ops.
2100 (target_read_description_xml): Use a lambda.
2101 (target_fetch_description_xml): Use a lambda.
2102 (string_read_description_xml): Update.
2103
04f5bab2
SM
21042020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2105
2106 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
2107 uses with type::endianity_is_not_default.
2108
db558e34
SM
21092020-09-14 Simon Marchi <simon.marchi@efficios.com>
2110
2111 * gdbtypes.h (struct type) <endianity_is_not_default,
2112 set_endianity_is_not_default>: New methods.
2113 (TYPE_ENDIANITY_NOT_DEFAULT): Use
2114 type::endianity_is_not_default, change all write call sites to
2115 use type::set_endianity_is_not_default.
2116
22c4c60c
SM
21172020-09-14 Simon Marchi <simon.marchi@efficios.com>
2118
2119 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
2120 uses with type::is_fixed_instance.
2121
9cdd0d12
SM
21222020-09-14 Simon Marchi <simon.marchi@efficios.com>
2123
2124 * gdbtypes.h (struct type) <is_fixed_instance,
2125 set_is_fixed_instance>: New methods.
2126 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
2127 write call sites to use type::set_is_fixed_instance.
2128
0becda7a
SM
21292020-09-14 Simon Marchi <simon.marchi@efficios.com>
2130
2131 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
2132 uses with type::is_gnu_ifunc.
2133
03cc7249
SM
21342020-09-14 Simon Marchi <simon.marchi@efficios.com>
2135
2136 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
2137 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
2138 use type::set_is_gnu_ifunc.
2139
3f46044c
SM
21402020-09-14 Simon Marchi <simon.marchi@efficios.com>
2141
2142 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
2143 uses with type::stub_is_supported.
2144
9baccff6
SM
21452020-09-14 Simon Marchi <simon.marchi@efficios.com>
2146
2147 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
2148 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
2149 use type::set_stub_is_supported.
2150
bd63c870
SM
21512020-09-14 Simon Marchi <simon.marchi@efficios.com>
2152
2153 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
2154 uses with type::is_vector.
2155
2062087b
SM
21562020-09-14 Simon Marchi <simon.marchi@efficios.com>
2157
2158 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
2159 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
2160 use type::set_is_vector.
2161
a409645d
SM
21622020-09-14 Simon Marchi <simon.marchi@efficios.com>
2163
2164 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
2165 uses with type::has_varargs.
2166
1d6286ed
SM
21672020-09-14 Simon Marchi <simon.marchi@efficios.com>
2168
2169 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
2170 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
2171 use type::set_has_varargs.
2172
7f9f399b
SM
21732020-09-14 Simon Marchi <simon.marchi@efficios.com>
2174
2175 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
2176 uses with type::is_prototyped.
2177
27e69b7a
SM
21782020-09-14 Simon Marchi <simon.marchi@efficios.com>
2179
2180 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
2181 New methods.
2182 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
2183 call sites to use type::set_is_prototyped.
2184
d2183968
SM
21852020-09-14 Simon Marchi <simon.marchi@efficios.com>
2186
2187 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
2188 uses with type::target_is_stub.
2189
8f53807e
SM
21902020-09-14 Simon Marchi <simon.marchi@efficios.com>
2191
2192 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
2193 New methods.
2194 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
2195 sites to use type::set_target_is_stub.
2196
e46d3488
SM
21972020-09-14 Simon Marchi <simon.marchi@efficios.com>
2198
2199 * gdbtypes.h (TYPE_STUB): Remove, replace all
2200 uses with type::is_stub.
2201
b4b73759
SM
22022020-09-14 Simon Marchi <simon.marchi@efficios.com>
2203
2204 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
2205 (TYPE_STUB): Use type::is_stub, change all write call sites to
2206 use type::set_is_stub.
2207
20ce4123
SM
22082020-09-14 Simon Marchi <simon.marchi@efficios.com>
2209
2210 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
2211 type::has_no_signedness.
2212
15152a54
SM
22132020-09-14 Simon Marchi <simon.marchi@efficios.com>
2214
2215 * gdbtypes.h (struct type) <has_no_signedness,
2216 set_has_no_signedness>: New methods.
2217 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
2218 call sites to use type::set_has_no_signedness.
2219
c6d940a9
SM
22202020-09-14 Simon Marchi <simon.marchi@efficios.com>
2221
2222 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
2223 type::is_unsigned.
2224
653223d3
SM
22252020-09-14 Simon Marchi <simon.marchi@efficios.com>
2226
2227 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
2228 methods.
2229 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
2230 sites to use type::set_is_unsigned.
2231
55ea94da 22322020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
e851246a 2233 Adam Renquinha <arenquinha@cimeq.qc.ca>
55ea94da 2234
e851246a
SM
2235 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
2236 pointer and stack frame offset when unwinding.
55ea94da 2237
6791b117
PA
22382020-09-13 Pedro Alves <pedro@palves.net>
2239
2240 * NEWS: Document "-break-insert --qualified".
2241 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
2242
77f2120b
PA
22432020-09-13 Pedro Alves <pedro@palves.net>
2244
2245 * linespec.c (classify_mtype, compare_msyms): Delete.
2246 (search_minsyms_for_name): Remove classification logic. Instead
2247 filter out trampoline symbols if we also found an external
2248 function of the same name.
2249
ed6a896c
JB
22502020-09-13 Joel Brobecker <brobecker@adacore.com>
2251
2252 * NEWS: Create a new section for the next release branch.
2253 Rename the section of the current branch, now that it has
2254 been cut.
2255
32aea73e
JB
22562020-09-13 Joel Brobecker <brobecker@adacore.com>
2257
2258 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
2259 * version.in: Bump version to 11.0.50.DATE-git.
2260
8087c3fa
JB
22612020-09-12 Joel Brobecker <brobecker@adacore.com>
2262
2263 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
2264
2a67f09d
FW
22652020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
2266 Felix Willgerodt <Felix.Willgerodt@intel.com>
2267
2268 * gdbarch.sh: Added bfloat16 type.
2269 * gdbarch.c: Regenerated.
2270 * gdbarch.h: Regenerated.
2271 * gdbtypes.c (floatformats_bfloat16): New struct.
2272 (gdbtypes_post_init): Add builtin_bfloat16.
2273 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
2274 (floatformats_bfloat16): New struct.
2275 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
2276 (i386_ymm_type): Add field "v16_bfloat16"
2277 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
2278 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
2279 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
2280 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
2281 * features/i386/64bit-avx512.xml: Add bfloat16 type.
2282 * features/i386/64bit-avx512.c: Regenerated.
2283 * features/i386/64bit-sse.xml: Add bfloat16 type.
2284 * features/i386/64bit-sse.c: Regenerated.
2285
1347d111
FW
22862020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
2287
2288 * i386-tdep.c (i386_zmm_type): Fix field names.
2289 (i386_ymm_type): Fix field names.
2290
7a4e8e7d
TBA
22912020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2292
2293 * breakpoint.c: Fix typo in the help message of the
2294 "set breakpoint condition-evaluation" command.
2295
cf4ac4be
KR
22962020-09-10 Kamil Rytarowski <n54@gmx.com>
2297
2298 * nbsd-nat.c: Include "nat/netbsd-nat.h".
2299 * (nbsd_nat_target::pid_to_exec_file)
2300 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
2301 (nbsd_nat_target::post_startup_inferior)
2302 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
2303 (nbsd_add_threads): Switch local code to common gdb/nat functions.
2304 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
2305 * (nbsd_thread_lister): Remove.
2306
f404573e
KR
23072020-09-10 Kamil Rytarowski <n54@gmx.com>
2308
2309 * fork-inferior.c (startup_inferior): Avoid double free.
2310
1ccb2c17
KR
23112020-09-10 Kamil Rytarowski <n54@gmx.com>
2312
2313 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
2314 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
2315
feedfcc7
KR
23162020-09-10 Kamil Rytarowski <n54@gmx.com>
2317
2318 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
2319 * netbsd-nat.c: Include <sys/ptrace.h>.
2320 * (netbsd_nat::enable_proc_events): Add.
2321
c489f8c6
KR
23222020-09-10 Kamil Rytarowski <n54@gmx.com>
2323
2324 * netbsd-nat.h: Include "gdbsupport/function-view.h".
2325 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
2326 (netbsd_nat::for_each_thread): Add.
2327 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
2328 "gdbsupport/common-debug.h".
2329 * (netbsd_nat::netbsd_thread_lister)
2330 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
2331 (netbsd_nat::for_each_thread): Add.
2332
330662f6
KR
23332020-09-10 Kamil Rytarowski <n54@gmx.com>
2334
2335 * netbsd-nat.h: Include <unistd.h>.
2336 * (netbsd_nat::pid_to_exec_file): Add.
2337 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
2338 * (netbsd_nat::pid_to_exec_file) Add.
2339
70b67307
KR
23402020-09-10 Kamil Rytarowski <n54@gmx.com>
2341
2342 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
2343
99cf6da6
KR
23442020-09-10 Kamil Rytarowski <n54@gmx.com>
2345
2346 * netbsd-nat.h: New file.
2347 * netbsd-nat.c: Likewise.
2348
1b788fb6
TT
23492020-09-09 Tom Tromey <tromey@adacore.com>
2350
2351 * ada-lang.c (remove_extra_symbols): Do not increment when
2352 removing an element
2353
03b0a45f
TT
23542020-09-08 Tom Tromey <tromey@adacore.com>
2355
2356 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
2357
3cae4447
TT
23582020-09-08 Tom Tromey <tromey@adacore.com>
2359
2360 PR win32/25302:
2361 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
2362 (gdb_bfd_init_data): New function.
2363 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
2364
7f08fd51
TBA
23652020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2366
2367 * infrun.c (fetch_inferior_event): Use
2368 `switch_to_target_no_thread` to switch the target.
2369
3e6ff933
TT
23702020-09-06 Tom Tromey <tom@tromey.com>
2371
2372 * symfile.h (dwarf2_free_objfile): Don't declare.
2373
e56798df
AKS
23742020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2375
2376 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
2377 to match 16 byte real/complex type generated by Flang compiler.
2378
8f5c6526
TV
23792020-09-03 Tom de Vries <tdevries@suse.de>
2380
2381 PR breakpoint/26546
2382 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
2383 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
2384
c5065df0
SM
23852020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
2386
2387 * maint.c (index_digits): New function.
2388 (struct maint_print_section_data): Remove.
2389 (print_bfd_section_info): Remove print_data parameter, add arg
2390 and index_digits.
2391 (print_objfile_section_info): Likewise.
2392 (print_bfd_section_info_maybe_relocated): Likewise (plus
2393 objfile).
2394 (maintenance_info_sections): Adjust calls.
2395
02c6f3f1
TT
23962020-09-02 Tom Tromey <tromey@adacore.com>
2397
2398 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
2399 for null pointers.
2400 (ada_varobj_adjust_for_child_access): Special-case null pointers.
2401
ef5e5b0b
SM
24022020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
2403
2404 * bcache.h (struct bcache) <insert>: Change type of `added` to
2405 pointer to bool.
2406 * bcache.c (bcache::insert): Likewise.
2407 * gdbtypes.c (check_types_worklist): Adjust.
2408 * psymtab.c (add_psymbol_to_bcache): Adjust.
2409
973695d6
KB
24102020-08-31 Kevin Buettner <kevinb@redhat.com>
2411
2412 * corelow.c (unordered_set): Include.
2413 (class core_target): Add field 'm_core_unavailable_mappings'.
2414 (core_target::build_file_mappings): Print only one warning
2415 per inaccessible file. Add unavailable/broken mappings
2416 to m_core_unavailable_mappings.
2417 (core_target::xfer_partial): Call...
2418 (core_target::xfer_memory_via_mappings): New method.
2419
264fc0e2
SM
24202020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
2421
2422 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
2423 type to bool.
2424
2de01bdb
SM
24252020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
2426
2427 * dwarf2/read.c (struct field_info): Fix indentation.
2428
f3bd50f1
SM
24292020-08-31 Simon Marchi <simon.marchi@efficios.com>
2430
2431 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
2432 ordering in comment.
2433 * frame.c (frame_id_eq): Fix indentation.
2434
22b9b4b0
SL
24352020-08-31 Scott Linder <scott@scottlinder.com>
2436 Simon Marchi <simon.marchi@efficios.com>
2437
2438 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
2439 inline frame ids in outer frame.
2440
84154d16
SM
24412020-08-31 Simon Marchi <simon.marchi@efficios.com>
2442
2443 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
2444 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
2445 (outer_frame_id): Use FID_STACK_OUTER instead of
2446 FID_STACK_INVALID.
2447 (frame_id_p): Don't check for outer_frame_id.
2448
8efaf6b3
SM
24492020-08-31 Simon Marchi <simon.marchi@efficios.com>
2450
2451 * frame-unwind.c (frame_unwind_got_optimized): Don't set
2452 regnum/frame in value. Call allocate_value_lazy.
2453 * frame.c (frame_unwind_register_value): Use
2454 val_print_not_saved.
2455
fe1fe7ea
SM
24562020-08-31 Simon Marchi <simon.marchi@efficios.com>
2457
2458 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
2459
f7c7700d
PA
24602020-08-29 Pedro Alves <pedro@palves.net>
2461
2462 * progspace.c (print_program_space): Use all_inferiors. Switch to
2463 the inferior before calling target_pid_to_str.
2464
e0814aae
TT
24652020-08-28 Tom Tromey <tom@tromey.com>
2466
2467 * xcoffread.c (xcoff_end_psymtab): Update comment.
2468 * dbxread.c (dbx_end_psymtab): Update comment.
2469
626d2320
TV
24702020-08-28 Tom de Vries <tdevries@suse.de>
2471
2472 PR breakpoint/26544
2473 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
2474 event_location.
2475 (create_breakpoint): Same.
2476 (base_breakpoint_decode_location): Same.
2477 (bkpt_create_sals_from_location): Same.
2478 (bkpt_decode_location): Same.
2479 (bkpt_probe_create_sals_from_location): Same.
2480 (bkpt_probe_decode_location): Same.
2481 (tracepoint_create_sals_from_location): Same.
2482 (tracepoint_decode_location): Same.
2483 (tracepoint_probe_decode_location): Same.
2484 (strace_marker_create_sals_from_location): Same.
2485 (strace_marker_decode_location): Same.
2486 (create_sals_from_location_default): Same.
2487 (decode_location_default): Same.
2488 * breakpoint.h (struct breakpoint_ops): Same.
2489 (create_breakpoint): Same.
2490 * linespec.h (decode_line_full): Same.
2491 * linespec.c (decode_line_full): Same. Throw error if
2492 result.size () == 0.
2493
df631783
PA
24942020-08-27 Pedro Alves <pedro@palves.net>
2495
2496 PR gdb/26524
2497 * breakpoint.c (until_break_fsm) <location_breakpoint,
2498 caller_breakpoint>: Delete fields.
2499 <breakpoints>: New field.
2500 <until_break_fsm>: Adjust to save a breakpoint vector instead of
2501 two individual breakpoints.
2502 (until_break_fsm::should_stop): Loop over breakpoints in the
2503 breakpoint vector.
2504 (until_break_fsm::clean_up): Adjust to clear the breakpoints
2505 vector.
2506 (until_break_command): Handle location expanding into multiple
2507 sals.
2508
b2b38aa4
PA
25092020-08-27 Pedro Alves <pedro@palves.net>
2510
2511 PR gdb/26523
2512 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
2513 bp_until breakpoints user-specified locations. Update intro
2514 comment.
2515
b886559f
SM
25162020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
2517
2518 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
2519 gdb_bfd_sections): New.
2520 * maint.c (print_bfd_section_info): Change param type to
2521 maint_print_section_data.
2522 (print_objfile_section_info): Likewise.
2523 (print_bfd_section_info_maybe_relocated): Likewise.
2524 (maintenance_info_sections): Use gdb_bfd_sections.
2525
4c6e63bf
SV
25262020-08-25 Shahab Vahedi <shahab@synopsys.com>
2527
2528 * MAINTAINERS: Add ARC target and maintainer.
2529
8d7f0635
AK
25302020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
2531
2532 * configure.tgt: ARC support for GNU/Linux.
2533 * Makefile.in (ALL_TARGET_OBJS): Likewise.
2534 * arc-linux-tdep.c: New file.
2535 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
2536 * arc-tdep.c (arc_write_pc): Use it.
2537
fdd8731b
SV
25382020-08-25 Shahab Vahedi <shahab@synopsys.com>
2539
2540 * arc-tdep.c (arc_check_for_hardware_loop): New.
2541 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
2542
22459524
SV
25432020-08-25 Shahab Vahedi <shahab@synopsys.com>
2544
2545 * arc-tdep.h: Include "gdbarch.h".
2546
995d3a19
SV
25472020-08-25 Shahab Vahedi <shahab@synopsys.com>
2548
2549 * arch/arc.h
2550 (arc_gdbarch_features): New class to stir the selection of target XML.
2551 (arc_create_target_description): Use FEATURES to choose XML target.
2552 (arc_lookup_target_description): Use arc_create_target_description
2553 to create _new_ target descriptions or return the already created
2554 ones if the FEATURES is the same.
2555 * arch/arc.c: Implementation of prototypes described above.
2556 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
2557 (arc_gdbarch_features_init): Initialize the FEATURES struct.
2558 * arc-tdep.c (*_feature_name): Make feature names consistent.
2559 (arc_register_feature): A new struct to hold information about
2560 registers of a particular target/feature.
2561 (arc_check_tdesc_feature): Check if XML provides registers in
2562 compliance with ARC_REGISTER_FEATURE structs.
2563 (arc_update_acc_reg_names): Add aliases for r58 and r59.
2564 (determine_*_reg_feature_set): Which feature name to look for.
2565 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
2566 (mach_type_to_arc_isa): Convert from a set of binutils machine types
2567 to expected ISA enums to be used in arc_gdbarch_features structs.
2568 * features/Makefile (FEATURE_XMLFILES): Add new files.
2569 * gdb/features/arc/v1-aux.c: New file.
2570 * gdb/features/arc/v1-aux.xml: Likewise.
2571 * gdb/features/arc/v1-core.c: Likewise.
2572 * gdb/features/arc/v1-core.xml: Likewise.
2573 * gdb/features/arc/v2-aux.c: Likewise.
2574 * gdb/features/arc/v2-aux.xml: Likewise.
2575 * gdb/features/arc/v2-core.c: Likewise.
2576 * gdb/features/arc/v2-core.xml: Likewise.
2577 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
2578
3945d2d7
GM
25792020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
2580 Andrew Burgess <andrew.burgess@embecosm.com>
2581
2582 PR m2/26372
fc5d6901 2583 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
2584 an assert. Remove single element array indexing pattern as the
2585 MULTI_SUBSCRIPT support will handle this case too.
2586
2677f2d3
SM
25872020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
2588
2589 * value.h (valprint_check_validity): Move declaration from
2590 here...
2591 * valprint.h (valprint_check_validity): ... to here.
2592
c426fddb
SM
25932020-08-24 Simon Marchi <simon.marchi@efficios.com>
2594
2595 * debug.h: New file.
2596 * debug.c (debug_prefixed_vprintf): New function.
2597 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
2598 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
2599
1eb8556f
SM
26002020-08-24 Simon Marchi <simon.marchi@efficios.com>
2601
2602 * infrun.h (infrun_debug_printf_1): New function declaration.
2603 (infrun_debug_printf): New macro.
2604 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
2605 throughout.
2606 (infrun_debug_printf): New function.
2607 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
2608 (handle_jit_event): Likewise.
2609
b8fff44e
MW
26102020-08-21 Mark Wielaard <mark@klomp.org>
2611
2612 * ada-lex.l: Extend register warnings diagnostics comment for g++.
2613
d19c3068
SM
26142020-08-22 Simon Marchi <simon.marchi@efficios.com>
2615
2616 * frame.c (enum class frame_id_status): New.
2617 (struct frame_info) <this_id::p>: Change type to frame_id_status.
2618 (fprintf_frame): Update.
2619 (compute_frame_id): Set frame id status to "computing" on entry.
2620 Set it back to "not_computed" on failure and to "computed" on
2621 success.
2622 (get_frame_id): Assert the frame id is not being computed.
2623 (create_sentinel_frame): Use frame_id_status::COMPUTED.
2624 (create_new_frame): Likewise.
2625 (frame_cleanup_after_sniffer): Update assert.
2626
b70e516e
SM
26272020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2628
2629 * regcache.c (pid_ptid_regcache_map): New type.
2630 (target_ptid_regcache_map): Remove.
2631 (target_pid_ptid_regcache_map): New type.
2632 (regcaches): Change type to target_pid_ptid_regcache_map.
2633 (get_thread_arch_aspace_regcache): Update.
2634 (regcache_thread_ptid_changed): Update, handle pid-like ptid
2635 case.
2636 (regcaches_size): Update.
2637 (regcache_count): Update.
2638 (registers_changed_ptid_target_pid_test): New.
2639 (_initialize_regcache): Register new test.
2640
cdd9148a
SM
26412020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2642
2643 * regcache.c (regcache_count): New.
2644 (struct regcache_test_data): New.
2645 (regcache_test_data_up): New.
2646 (populate_regcaches_for_test): New.
2647 (regcaches_test): Remove.
2648 (get_thread_arch_aspace_regcache_test): New.
2649 (registers_changed_ptid_all_test): New.
2650 (registers_changed_ptid_target_test): New.
2651 (registers_changed_ptid_target_ptid_test): New.
2652 (regcache_thread_ptid_changed): Remove regcache_count lambda.
2653 (_initialize_regcache): Register new tests.
2654
dd125343
SM
26552020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2656
2657 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
2658 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
2659 gdbarch and aspace parameter. Use current inferior's aspace.
2660 Validate regcache's arch value.
2661 (regcaches_test): Update.
2662
3ee93972
SM
26632020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2664
2665 * regcache.c (regcaches_test): Call registers_changed.
2666
33bf4c5c
TBA
26672020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2668
2669 * infrun.c (process_event_stop_test): Fix typo "breapoint".
2670
c2fd7fae
AKS
26712020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2672
2673 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
2674 to find the end of prologue for flang compiled binaries.
2675 * arm-tdep.c (arm_skip_prologue): Likewise.
2676 * i386-tdep.c (i386_skip_prologue): Likewise.
2677 * producer.c (producer_is_llvm): New function.
2678 (producer_parsing_tests): Added new tests for clang/flang.
2679 * producer.h (producer_is_llvm): New declaration.
2680
9327494e
SM
26812020-08-18 Simon Marchi <simon.marchi@efficios.com>
2682
2683 * linux-nat.c (linux_nat_debug_printf): New function.
2684 (linux_nat_debug_printf_1): New macro. Use throughout the file.
2685
d138725a
AM
26862020-08-18 Aaron Merey <amerey@redhat.com>
2687
2688 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
2689 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
2690 (CLIBS): Add DEBUGINFOD_LIBS.
2691
f9b11e6b
ST
26922020-08-17 Sergei Trofimovich <siarheit@google.com>
2693
2694 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
2695 'gdbarch_num_regs'.
2696
3ae7ab99
TT
26972020-08-17 Tom Tromey <tromey@adacore.com>
2698
2699 * ada-varobj.c (ada_varobj_decode_var): Handle case where
2700 ada_get_decoded_value returns NULL.
2701
b017825f
TT
27022020-08-17 Tom Tromey <tromey@adacore.com>
2703
2704 * python/py-inferior.c (infpy_search_memory): Use
2705 gdb_py_object_from_ulongest.
2706 * python/py-infevents.c (create_inferior_call_event_object)
2707 (create_memory_changed_event_object): Use
2708 gdb_py_object_from_ulongest.
2709 * python/py-linetable.c (ltpy_entry_get_pc): Use
2710 gdb_py_object_from_ulongest.
2711
7635cf79
SM
27122020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
2713
2714 * loc.c (class symbol_needs_eval_context): Fix indentation.
2715
f54be24b
SM
27162020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
2717
2718 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
2719 bool.
2720
53d5a2a5
TV
27212020-08-17 Tom de Vries <tdevries@suse.de>
2722
2723 PR gdb/26393
2724 * gdbtypes.c (dump_dynamic_prop): New function.
2725 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
2726
547ce8f0
TV
27272020-08-15 Tom de Vries <tdevries@suse.de>
2728
2729 PR backtrace/26390
2730 * stack.c (print_frame_args): Temporarily set the selected
2731 frame to FRAME while printing the frame's arguments.
2732
6ea815e7
PFC
27332020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2734
2735 PR breakpoints/26385
2736 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
2737 Always clear watchpoint with PTRACE_SET_DEBUGREG.
2738
6e562fa3
PFC
27392020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2740
2741 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
2742 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
2743 and >= to check return value instead of == -1 and != -1.
2744
d369b608
SM
27452020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
2746
2747 * utils.h (class gdb_argv) <as_array_view>: New method.
2748 * utils.c (gdb_argv_as_array_view_test): New.
2749 (_initialize_utils): Register selftest.
2750 * maint.c (maintenance_selftest): Use the new method.
2751
b31488a3
KR
27522020-08-13 Kamil Rytarowski <n54@gmx.com>
2753
2754 * target.h (supports_dumpcore, dumpcore): New
2755 function declarations.
2756 * target.c (supports_dumpcore, dumpcore): New
2757 functions.
2758 * target-delegates.c: Rebuild.
2759 * gcore.c (gcore_command): Use target_supports_dumpcore ()
2760 and target_dumpcore ().
2761
002a3166
AM
27622020-08-13 Aaron Merey <amerey@redhat.com>
2763
2764 * debuginfod-support.c: Replace global variables with user_data.
2765
ece5bc8a
SM
27662020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
2767
2768 * maint.c (maintenance_selftest): Split args and pass array_view
2769 to run_tests.
2770
6d8a0a5e
LM
27712020-08-12 Luis Machado <luis.machado@linaro.org>
2772
2773 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
2774 type's length.
2775 Use %s and pulongest to print the length.
2776
7cf663a9
PA
27772020-08-12 Pedro Alves <palves@redhat.com>
2778
2779 * NEWS: Move "Multi-target debugging support" item to the
2780 "Changes since GDB 9" section.
2781
27c7b875
PA
27822020-08-12 Pedro Alves <palves@redhat.com>
2783
2784 PR gdb/26336
2785 * progspace.c (program_space::remove_objfile): Invalidate the
2786 frame cache.
2787
1796a2a1
TV
27882020-08-11 Tom de Vries <tdevries@suse.de>
2789
2790 * MAINTAINERS: Mark ms1 as deleted.
2791
f8e3fe0d
LM
27922020-08-10 Luis Machado <luis.machado@linaro.org>
2793
2794 PR gdb/26310
2795
2796 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
2797 act accordingly.
2798 (aarch64_analyze_prologue_test): Add more unit tests to exercise
2799 movz/str/stur/stp skipping behavior.
2800
cc308722
LM
28012020-08-10 Luis Machado <luis.machado@linaro.org>
2802
2803 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
2804 struct user_sve_header instead of struct sve_context.
2805
041d9819
SM
28062020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
2807
2808 * read.h (dwarf2_fetch_die_loc_sect_off,
2809 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
2810 `void *` parameter with function_view.
2811 * read.c (dwarf2_fetch_die_loc_sect_off,
2812 dwarf2_fetch_die_loc_cu_off): Likewise.
2813 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
2814 (per_cu_dwarf_call): Adjust.
2815 (get_frame_address_in_block_wrapper): Remove.
2816 (indirect_synthetic_pointer): Adjust.
2817 (get_ax_pc): Remove.
2818 (dwarf2_compile_expr_to_ax): Adjust.
2819
38f8aa06
TV
28202020-08-08 Tom de Vries <tdevries@suse.de>
2821
2822 PR build/26344
2823 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
2824 constructor.
2825 * regcache.c (get_thread_arch_aspace_regcache): Same.
2826
a52b3ae2
TT
28272020-08-07 Tom Tromey <tromey@adacore.com>
2828
2829 * ravenscar-thread.c
2830 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
2831 New method.
2832 (ravenscar_thread_target::wait): Check
2833 runtime_initialized.
2834 (ravenscar_thread_target::prepare_to_store)
2835 (ravenscar_thread_target::stopped_by_sw_breakpoint)
2836 (ravenscar_thread_target::stopped_by_hw_breakpoint)
2837 (ravenscar_thread_target::stopped_by_watchpoint)
2838 (ravenscar_thread_target::stopped_data_address)
2839 (ravenscar_thread_target::core_of_thread): Use
2840 scoped_restore_current_thread and
2841 set_base_thread_from_ravenscar_task.
2842
0e29517d
TT
28432020-08-07 Tom Tromey <tromey@adacore.com>
2844
2845 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
2846
592f9bd7
TT
28472020-08-07 Tom Tromey <tromey@adacore.com>
2848
2849 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
2850 update_inferior_ptid before update_thread_list.
2851 (temporarily_change_regcache_ptid): New class.
2852 (ravenscar_thread_target::fetch_registers)
2853 (ravenscar_thread_target::store_registers)
2854 (ravenscar_thread_target::prepare_to_store): Use base thread when
2855 forwarding operation.
2856
39e2018a
TT
28572020-08-07 Tom Tromey <tromey@adacore.com>
2858
2859 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
2860 "is_pid" case.
2861
2080266b
TT
28622020-08-07 Tom Tromey <tromey@adacore.com>
2863
2864 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
2865 New methods.
2866 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
2867 first.
2868 (ravenscar_thread_target::add_thread): Rename from
2869 ravenscar_add_thread.
2870 (ravenscar_thread_target::update_thread_list): Use a lambda.
2871 (ravenscar_thread_target::xfer_partial): New method.
2872
78c02f21
TT
28732020-08-07 Tom Tromey <tromey@adacore.com>
2874
2875 * ada-lang.h (ada_task_list_iterator_ftype): Now a
2876 gdb::function_view.
2877 (iterate_over_live_ada_tasks): Change type of argument.
2878 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
2879 of argument.
2880
d5d833af
TT
28812020-08-07 Tom Tromey <tromey@adacore.com>
2882
2883 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
2884 Remove.
2885 (ravenscar_thread_target::extra_thread_info): Remove.
2886 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
2887 defer to target beneath for non-Ravenscar threads.
2888
a8ac85bb
TT
28892020-08-07 Tom Tromey <tromey@adacore.com>
2890
2891 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
2892 get_base_thread_from_ravenscar_task>: Now methods.
2893 <m_cpu_map>: New member.
2894 (ravenscar_thread_target::get_thread_base_cpu): Rename from
2895 ravenscar_get_thread_base_cpu. Check m_cpu_map.
2896 (ravenscar_thread_target::task_is_currently_active): Update.
2897 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
2898 Now a method.
2899 (ravenscar_thread_target::add_active_thread): Put initial thread
2900 into the m_cpu_map.
2901
550ab58d
TT
29022020-08-07 Tom Tromey <tromey@adacore.com>
2903
2904 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
2905 event_ptid.
2906
e9546579
TT
29072020-08-07 Tom Tromey <tromey@adacore.com>
2908
2909 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
2910 runtime_initialized.
2911
3d4470e5
TT
29122020-08-07 Tom Tromey <tromey@adacore.com>
2913
2914 * ravenscar-thread.c (ravenscar_thread_target): Don't call
2915 add_active_thread.
2916 (ravenscar_thread_target::add_active_thread): Now public.
2917 (ravenscar_inferior_created): Call add_active_thread after pushing
2918 the target.
2919
888bdb2b
SM
29202020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
2921
2922 * regcache.c (ptid_regcache_map): New type.
2923 (target_ptid_regcache_map): New type.
2924 (regcaches): Change type to target_ptid_regcache_map.
2925 (get_thread_arch_aspace_regcache): Update to regcaches' new
2926 type.
2927 (regcache_thread_ptid_changed): Likewise.
2928 (registers_changed_ptid): Likewise.
2929 (regcaches_size): Likewise.
2930 (regcaches_test): Update.
2931 (regcache_thread_ptid_changed): Update.
2932 * regcache.h (regcache_up): New type.
2933 * gdbsupport/ptid.h (hash_ptid): New struct.
2934
b161a60d
SM
29352020-08-07 Simon Marchi <simon.marchi@efficios.com>
2936
2937 * observable.h (thread_ptid_changed): Add parameter
2938 `process_stratum_target *`.
2939 * infrun.c (infrun_thread_ptid_changed): Add parameter
2940 `process_stratum_target *` and use it.
2941 (selftests): New namespace.
2942 (infrun_thread_ptid_changed): New function.
2943 (_initialize_infrun): Register selftest.
2944 * regcache.c (regcache_thread_ptid_changed): Add parameter
2945 `process_stratum_target *` and use it.
2946 (regcache_thread_ptid_changed): New function.
2947 (_initialize_regcache): Register selftest.
2948 * thread.c (thread_change_ptid): Pass target to
2949 thread_ptid_changed observable.
2950
d2854d8d
CT
29512020-08-06 Caroline Tice <cmtice@google.com>
2952
fe4c3d43
SM
2953 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
2954 (struct dwp_sections): Update field comments. Add loclists and
2955 rnglists fields.
2956 (struct virtual_v2_dwo_sections): Rename struct to
2957 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
2958 size & offset fields for loclists and rnglists.
2959 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
2960 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
2961 skipping dummy type units.
2962 (create_dwp_hash_table): Update the large comment above the function to
2963 discuss Version 5 DWP files as well, with references. Update all the
2964 version checks in the function to check for version 5 as well. Add new
2965 section at the end to create dwp hash table for version 5.
2966 (create_dwp_v2_section): Rename function to
2967 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
2968 Add V5 to error message text.
2969 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
2970 into calls to create_dwp_v2_or_v5_section.
2971 (create_dwo_unit_in_dwp_v5): New function.
2972 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
2973 check for version2; add else clause to handle version 5.
2974 (open_and_init_dwo_file): Add code to check dwarf version & only call
2975 create_debug_types_hash_table (with sections.types) if version is not 5;
2976 else call create_debug_type_hash_table, with sections.info.
2977 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
2978 version 5.
2979 (dwarf2_locate_v5_dwp_sections): New function.
2980 (open_and_init_dwp_file): Add else-if clause for version 5 to call
2981 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 2982
159ed7d9
SM
29832020-08-06 Simon Marchi <simon.marchi@efficios.com>
2984
2985 * regcache.h (class regcache): Remove friend
2986 registers_changed_ptid.
2987 <regcache_thread_ptid_changed>: Remove.
2988 <regcaches>: Remove.
2989 * regcache.c (regcache::regcaches): Rename to...
2990 (regcaches): ... this. Make static.
2991 (get_thread_arch_aspace_regcache): Update.
2992 (regcache::regcache_thread_ptid_changed): Rename to...
2993 (regcache_thread_ptid_changed): ... this. Update.
2994 (class regcache_access): Remove.
2995 (regcaches_test): Update.
2996 (_initialize_regcache): Update.
2997 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
2998 <forward_list>.
2999
174981ae
SM
30002020-08-06 Simon Marchi <simon.marchi@efficios.com>
3001
3002 * regcache.h (class regcache) <current_regcache>: Rename to...
3003 <regcaches>: ... this. Move doc here.
3004 * regcache.c (regcache::current_regcache) Rename to...
3005 (regcache::regcaches): ... this. Move doc to header.
3006 (get_thread_arch_aspace_regcache): Update.
3007 (regcache::regcache_thread_ptid_changed): Update.
3008 (registers_changed_ptid): Update.
3009 (class regcache_access) <current_regcache_size>: Rename to...
3010 <regcaches_size>: ... this.
3011 (current_regcache_test): Rename to...
3012 (regcaches_test): ... this.
3013 (_initialize_regcache): Update.
3014
ed908db6
VC
30152020-08-06 Victor Collod <vcollod@nvidia.com>
3016
3017 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
3018
b5582ab7
KB
30192020-08-05 Kevin Buettner <kevinb@redhat.com>
3020
3021 * corelow.c (core_target::build_file_mappings): Don't output
3022 null pathname in warning.
3023
ea946b86
SM
30242020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
3025
3026 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
3027 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
3028 gdb.dwarf2/dw2-single-line-discriminators.exp,
3029 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
3030
57d02173
TT
30312020-08-05 Tom Tromey <tromey@adacore.com>
3032
3033 PR rust/26197:
3034 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
3035 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
3036 Fix off-by-one and type size errors in ordinary case.
3037
5555c86d
TV
30382020-08-05 Tom de Vries <tdevries@suse.de>
3039
3040 * gdbtypes.c (type_not_allocated, type_not_associated): Use
3041 "prop->const_val () == 0" instead of "prop->const_val () != 0".
3042
97916bfe
SM
30432020-08-04 Simon Marchi <simon.marchi@efficios.com>
3044
3045 * frame.h (frame_id_p): Return bool.
3046 (frame_id_artificial_p): Return bool.
3047 (frame_id_eq): Return bool.
3048 (has_stack_frames): Return bool.
3049 (get_selected_frame): Fix typo in comment.
3050 (get_frame_pc_if_available): Return bool.
3051 (get_frame_address_in_block_if_available): Return bool.
3052 (get_frame_func_if_available): Return bool.
3053 (read_frame_register_unsigned): Return bool.
3054 (get_frame_register_bytes): Return bool.
3055 (safe_frame_unwind_memory): Return bool.
3056 (deprecated_frame_register_read): Return bool.
3057 (frame_unwinder_is): Return bool.
3058 * frame.c (struct frame_info) <prev_arch::p>: Change type to
3059 bool.
3060 <this_id::p>: Likewise.
3061 <prev_p>: Likewise.
3062 (frame_stash_add): Return bool.
3063 (get_frame_id): Use bool.
3064 (frame_id_build_special) Use bool.
3065 (frame_id_build_unavailable_stack): Use bool.
3066 (frame_id_build): Use bool.
3067 (frame_id_p): Return bool, use true/false instead of 1/0.
3068 (frame_id_artificial_p): Likewise.
3069 (frame_id_eq): Likewise.
3070 (frame_id_inner): Likewise.
3071 (get_frame_func_if_available): Likewise.
3072 (read_frame_register_unsigned): Likewise.
3073 (deprecated_frame_register_read): Likewise.
3074 (get_frame_register_bytes): Likewise.
3075 (has_stack_frames): Likewise.
3076 (inside_main_func): Likewise.
3077 (inside_entry_func): Likewise.
3078 (get_frame_pc_if_available): Likewise.
3079 (get_frame_address_in_block_if_available): Likewise.
3080 (frame_unwinder_is): Likewise.
3081 (safe_frame_unwind_memory): Likewise.
3082 (frame_unwind_arch): Likewise.
3083
fedfee88
SM
30842020-08-04 Simon Marchi <simon.marchi@efficios.com>
3085
3086 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
3087 type to cached_copy_status.
3088 (fprintf_frame): Adjust.
3089 (get_frame_func_if_available): Adjust.
3090 (frame_cleanup_after_sniffer): Adjust.
3091
6cfa9b59
MW
30922020-08-04 Mark Wielaard <mark@klomp.org>
3093
3094 * MAINTAINERS (Write After Approval): Update email address.
3095
66d6346b
SM
30962020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3097
3098 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
3099 dynamic_prop::const_val.
3100
8a6d5e35
SM
31012020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3102
3103 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
3104 dynamic_prop::kind.
3105
51d6067d
SM
31062020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3107
3108 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
3109
b26e2ae7
JM
31102020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
3111
3112 * configure.tgt: Set gdb_sim for bpf-*-* targets.
3113
39791af2
JM
31142020-08-04 Weimin Pan <weimin.pan@oracle.com>
3115 Jose E. Marchesi <jose.marchesi@oracle.com>
3116
3117 * configure.tgt: Add entry for bpf-*-*.
3118 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
3119 (ALLDEPFILES): Add bpf-tdep.c.
3120 * bpf-tdep.c: New file.
3121 * MAINTAINERS: Add bpf target and maintainer.
3122 * NEWS: Mention the support for the new target.
3123
521894aa
TV
31242020-08-04 Tom de Vries <tdevries@suse.de>
3125
3126 PR symtab/23270
3127 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
3128 Error.
3129
5d6356e9
JB
31302020-08-03 John Baldwin <jhb@FreeBSD.org>
3131
3132 * syscalls/freebsd.xml: Regenerate.
3133
0cf82b81
JB
31342020-08-03 John Baldwin <jhb@FreeBSD.org>
3135
3136 * syscalls/update-freebsd.sh: Fix usage and year range.
3137
8f34b746
TV
31382020-08-03 Tom de Vries <tdevries@suse.de>
3139
3140 PR symtab/26333
3141 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
3142 DW_LNE_lo_user/DW_LNE_hi_user range.
3143
5e500d33
SM
31442020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
3145
3146 PR ada/26318
3147 * ada-lang.c (ada_modulus): Return 0 if property is not of const
3148 kind.
3149
78319c15
TBA
31502020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3151
3152 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
3153
4c55e970
TBA
31542020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3155
3156 * breakpoint.c (set_breakpoint_condition): Update the condition
3157 expressions after checking that the input condition string parses
3158 successfully and does not contain junk at the end.
3159
1e620590
TBA
31602020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3161
3162 * breakpoint.c (set_breakpoint_condition): Update the
3163 condition string after parsing the new condition successfully.
3164
c8693053
RO
31652020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3166
3167 * proc-api.c (_STRUCTURED_PROC): Don't define.
3168 * proc-events.c: Likewise.
3169 * proc-flags.c: Likewise.
3170 * proc-why.c: Likewise.
3171 * procfs.c: Likewise.
3172
3173 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
3174 * configure, config.in: Regenerate.
3175
5a99adb8
TV
31762020-07-30 Tom de Vries <tdevries@suse.de>
3177
3178 PR build/26320
3179 * ui-style.h (struct ui_file_style::color): Wrap m_value and
3180 m_red/m_green/m_blue in a union.
3181
8ba83e91
TV
31822020-07-29 Tom de Vries <tdevries@suse.de>
3183
3184 PR tdep/26280
3185 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
3186
f75a0693
AB
31872020-07-28 Tom Tromey <tromey@adacore.com>
3188
3189 PR symtab/26270:
3190 * symtab.h (find_pc_partial_function_sym): Declare.
3191 * cli/cli-cmds.c (disassemble_command): Use
3192 find_pc_partial_function_sym. Check asm_demangle.
3193 * blockframe.c (cache_pc_function_sym): New global.
3194 (cache_pc_function_name): Remove.
3195 (clear_pc_function_cache): Update.
3196 (find_pc_partial_function_sym): New function, from
3197 find_pc_partial_function.
3198 (find_pc_partial_function): Rewrite using
3199 find_pc_partial_function_sym.
3200
16f3242c
TT
32012020-07-28 Tom Tromey <tromey@adacore.com>
3202
3203 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
3204 help. Add usage.
3205
4888741a
TT
32062020-07-28 Tom Tromey <tromey@adacore.com>
3207
3208 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
3209 <DW_OP_GNU_variable_value>: Cast to address type.
3210
4d46f402
KR
32112020-07-28 Kamil Rytarowski <n54@gmx.com>
3212
3213 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
3214 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
3215 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
3216 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
3217 (nbsd_get_siginfo_type): New.
3218 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
3219 (_initialize_nbsd_tdep): New.
3220
d70f978b
L
32212020-07-28 H.J. Lu <hongjiu.lu@intel.com>
3222
3223 PR binutils/26301
3224 * configure: Regenerated.
3225
377170fa
L
32262020-07-28 H.J. Lu <hongjiu.lu@intel.com>
3227
3228 PR binutils/26301
3229 * configure: Regenerated.
3230
43d5901d
AB
32312020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
3232
3233 * python/py-frame.c: Remove 'user-regs.h' include.
3234 (frapy_read_register): Rewrite to make use of
3235 gdbpy_parse_register_id.
3236 * python/py-registers.c (gdbpy_parse_register_id): New function,
3237 moved here from python/py-unwind.c. Updated the return type, and
3238 also accepts register descriptor objects.
3239 * python/py-unwind.c: Remove 'user-regs.h' include.
3240 (pyuw_parse_register_id): Moved to python/py-registers.c.
3241 (unwind_infopy_add_saved_register): Update to use
3242 gdbpy_parse_register_id.
3243 (pending_framepy_read_register): Likewise.
3244 * python/python-internal.h (gdbpy_parse_register_id): Declare.
3245
14fa8fb3
AB
32462020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
3247
3248 * python/py-registers.c: Add 'user-regs.h' include.
3249 (register_descriptor_iter_find): New function.
3250 (register_descriptor_iterator_object_methods): New static global
3251 methods array.
3252 (register_descriptor_iterator_object_type): Add pointer to methods
3253 array.
3254
ddce1758
JB
32552020-07-27 John Baldwin <jhb@FreeBSD.org>
3256
3257 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
3258 for all architectures on FreeBSD 11.3 and later.
3259
a4089f52
TT
32602020-07-27 Tom Tromey <tromey@adacore.com>
3261
3262 * gcore.h (load_corefile): Don't declare.
3263
95420d30
TV
32642020-07-27 Tom de Vries <tdevries@suse.de>
3265
3266 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
3267 * config.in: Regenerate.
3268 * configure: Regenerate.
3269
05a6b8c2
EZ
32702020-07-26 Eli Zaretskii <eliz@gnu.org>
3271
3272 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
3273 ws2tcpip.h. When checking whether socklen_t type is defined, use
3274 ws2tcpip.h if it is available and sys/socket.h isn't.
3275 * configure: Regenerate.
3276 * config.in: Regenerate.
3277
e79eb02f
AB
32782020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
3279
3280 PR fortran/23051
3281 PR fortran/26139
3282 * valops.c (value_ind): Pass address to
3283 readjust_indirect_value_type.
3284 * value.c (readjust_indirect_value_type): Make parameter
3285 non-const, and add extra address parameter. Resolve original type
3286 before using it.
3287 * value.h (readjust_indirect_value_type): Update function
3288 signature and comment.
3289
876518dd
TV
32902020-07-25 Tom de Vries <tdevries@suse.de>
3291
3292 PR symtab/26243
3293 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
3294 entries.
3295
f6720b1c
AM
32962020-07-24 Aaron Merey <amerey@redhat.com>
3297
3298 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
3299 * configure: Rebuild.
3300
513487e1
KB
33012020-07-23 Kevin Buettner <kevinb@redhat.com>
3302
3303 PR corefiles/26294
3304 * corelow.c (_initialize_corelow): Add period to help text
3305 for "maintenance print core-file-backed-mappings".
3306
e7bc9db8
PA
33072020-07-23 Pedro Alves <pedro@palves.net>
3308
3309 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
3310 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
3311 meanwhile.
3312 * frame.c (frame_cache_generation, get_frame_cache_generation):
3313 New.
3314 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
3315 (get_prev_frame_if_no_cycle): On exception, don't touch
3316 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
3317 * frame.h (get_frame_cache_generation): Declare.
3318
90fcc466
TV
33192020-07-23 Tom de Vries <tdevries@suse.de>
3320
3321 PR tui/26282
3322 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
3323 New default constructor.
3324
78344df7
AB
33252020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
3326
3327 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
3328 exclude non-statement entries.
3329
b089853a
KB
33302020-07-22 Kevin Buettner <kevinb@redhat.com>
3331
3332 * NEWS (New commands): Mention new command
3333 "maintenance print core-file-backed-mappings".
3334
09c2f5d4
KB
33352020-07-22 Kevin Buettner <kevinb@redhat.com>
3336
3337 * corelow.c (gdbcmd.h): Include.
3338 (core_target::info_proc_mappings): New method.
3339 (get_current_core_target): New function.
3340 (maintenance_print_core_file_backed_mappings): New function.
3341 (_initialize_corelow): Add core-file-backed-mappings to
3342 "maint print" commands.
3343
9c5ec5c2 33442020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 3345
9c5ec5c2
KB
3346 * linux-tdep.c (dump_note_entry_p): New function.
3347 (linux_dump_mapping_p_ftype): New typedef.
3348 (linux_find_memory_regions_full): Add new parameter,
3349 should_dump_mapping_p.
3350 (linux_find_memory_regions): Adjust call to
3351 linux_find_memory_regions_full.
3352 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
3353 call to linux_find_memory_regions_full.
3354
db082f59
KB
33552020-07-22 Kevin Buettner <kevinb@redhat.com>
3356
3357 * corelow.c (solist.h, unordered_map): Include.
3358 (class core_target): Add field m_core_file_mappings and
3359 method build_file_mappings.
3360 (core_target::core_target): Call build_file_mappings.
3361 (core_target::~core_target): Free memory associated with
3362 m_core_file_mappings.
3363 (core_target::build_file_mappings): New method.
3364 (core_target::xfer_partial): Use m_core_file_mappings
3365 for memory transfers.
3366 * linux-tdep.c (linux_read_core_file_mappings): New
3367 function.
3368 (linux_core_info_proc_mappings): Rewrite to use
3369 linux_read_core_file_mappings.
3370 (linux_init_abi): Register linux_read_core_file_mappings.
3371
7e183d27
KB
33722020-07-22 Kevin Buettner <kevinb@redhat.com>
3373
3374 * arch-utils.c (default_read_core_file_mappings): New function.
3375 * arch-utils.c (default_read_core_file_mappings): Declare.
3376 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
3377 * gdbarch.h, gdbarch.c: Regenerate.
3378
2735d421
KB
33792020-07-22 Kevin Buettner <kevinb@redhat.com>
3380
3381 PR corefiles/25631
3382 * corelow.c (core_target:xfer_partial): Revise
3383 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
3384 case after first checking the stratum beneath the core
3385 target.
3386 (has_all_memory): Return true.
3387 * target.c (raw_memory_xfer_partial): Revise comment
3388 regarding use of has_all_memory.
3389
e56cb451
KB
33902020-07-22 Kevin Buettner <kevinb@redhat.com>
3391
3392 * exec.h (section_table_xfer_memory): Revise declaration,
3393 replacing section name parameter with an optional callback
3394 predicate.
3395 * exec.c (section_table_xfer_memory): Likewise.
3396 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
3397 of section_table_xfer_memory.
3398
32fa152e
TT
33992020-07-22 Tom Tromey <tromey@adacore.com>
3400
3401 * mi/mi-cmd-stack.c (list_args_or_locals): Use
3402 lookup_symbol_search_name.
3403
a67a1c41
AB
34042020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
3405
3406 * python/py-registers.c (gdbpy_register_object_data_init): Remove
3407 redundant local variable.
3408 (gdbpy_get_register_descriptor): Extract descriptor vector as a
3409 reference, not pointer, update code accordingly.
3410
a7b4ff4f
SM
34112020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3412 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3413
3414 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
3415 * jit.c (jit_breakpoint_re_set_internal): Use the
3416 `skip_jit_symbol_lookup` field.
3417
2340e834
SM
34182020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3419 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3420
3421 * jit.c (jit_read_descriptor): Define the descriptor address once,
3422 use twice.
3423 (jit_breakpoint_deleted): Move the declaration of the loop variable
3424 `iter` into the loop header.
3425 (jit_breakpoint_re_set_internal): Move the declaration of the local
3426 variable `objf_data` to the first point of definition.
3427 (jit_event_handler): Move the declaration of local variables
3428 `code_entry`, `entry_addr`, and `objf` to their first point of use.
3429 Rename `objf` to `jited`.
3430
c1072906
SM
34312020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3432
3433 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
3434 Remove.
3435 * jit.c (get_jiter_objfile_data): Update.
3436
c8474dc3
TBA
34372020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3438 Simon Marchi <simon.marchi@polymtl.ca>
3439
3440 * jit.c (struct jit_program_space_data): Remove.
3441 (jit_program_space_key): Remove.
3442 (jiter_objfile_data::~jiter_objfile_data): Remove program space
3443 stuff.
3444 (get_jit_program_space_data): Remove.
3445 (jit_breakpoint_deleted): Iterate on all of the program space's
3446 objfiles.
3447 (jit_inferior_init): Likewise.
3448 (jit_breakpoint_re_set_internal): Likewise. Also change return
3449 type to void.
3450 (jit_breakpoint_re_set): Pass current_program_space to
3451 jit_breakpoint_re_set_internal.
3452
77208eb7
SM
34532020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3454
3455 * jit.h (struct jiter_objfile_data) <cached_code_address,
3456 jit_breakpoint>: Move to here from ...
3457 * jit.c (jit_program_space_data): ... here.
3458 (jiter_objfile_data::~jiter_objfile_data): Update.
3459 (jit_breakpoint_deleted): Update.
3460 (jit_breakpoint_re_set_internal): Update.
3461
8c1c720f
SM
34622020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3463
3464 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
3465 checks.
3466 (jit_read_descriptor): Remove NULL check.
3467 (jit_event_handler): Add an assertion.
3468
0e74a041
SM
34692020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3470
3471 * jit.h (struct jit_objfile_data): Split into...
3472 (struct jiter_objfile_data): ... this ...
3473 (struct jited_objfile_data): ... and this.
3474 * objfiles.h (struct objfile) <jit_data>: Remove.
3475 <jiter_data, jited_data>: New fields.
3476 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
3477 (jiter_objfile_data::~jiter_objfile_data): ... this.
3478 (get_jit_objfile_data): Rename to ...
3479 (get_jiter_objfile_data): ... this.
3480 (add_objfile_entry): Update.
3481 (jit_read_descriptor): Use get_jiter_objfile_data.
3482 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
3483 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
3484 (jit_inferior_exit_hook): Use objfile's jited_data field.
3485
238b5c9f
SM
34862020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3487
3488 * jit.h: Forward-declare `struct minimal_symbol`.
3489 (struct jit_objfile_data): Migrate to here from jit.c; also add a
3490 constructor, destructor, and an objfile* field.
3491 * jit.c (jit_objfile_data): Remove.
3492 (struct jit_objfile_data): Migrate from here to jit.h.
3493 (jit_objfile_data::~jit_objfile_data): New destructor
3494 implementation with code moved from free_objfile_data.
3495 (free_objfile_data): Delete.
3496 (get_jit_objfile_data): Update to use the jit_data field of objfile.
3497 (jit_find_objf_with_entry_addr): Ditto.
3498 (jit_inferior_exit_hook): Ditto.
3499 (_initialize_jit): Remove the call to
3500 register_objfile_data_with_cleanup.
3501 * objfiles.h (struct objfile) <jit_data>: New field.
3502
fe053b9e
TBA
35032020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3504
3505 * jit.h: Forward-declare `struct objfile`.
3506 (jit_event_handler): Add a second parameter, the JITer objfile.
3507 * jit.c (jit_read_descriptor): Change the signature to take the
3508 JITer objfile as an argument instead of the jit_program_space_data.
3509 (jit_inferior_init): Update the call to jit_read_descriptor.
3510 (jit_event_handler): Use the new JITer objfile argument when calling
3511 jit_read_descriptor.
3512 * breakpoint.c (handle_jit_event): Update the call to
3513 jit_event_handler to pass the JITer objfile.
3514
4cec0c66
JB
35152020-07-21 John Baldwin <jhb@FreeBSD.org>
3516
3517 * gdbarch.c: Regenerate.
3518 * gdbarch.h: Regenerate.
3519 * gdbarch.sh (handle_segmentation_fault): Remove method.
3520 * infrun.c (handle_segmentation_fault): Remove.
3521 (print_signal_received_reason): Remove call to
3522 handle_segmentation_fault.
3523
0e42f66a
JB
35242020-07-21 John Baldwin <jhb@FreeBSD.org>
3525
3526 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
3527 Rename to sparc64_linux_report_signal_info and add siggnal
3528 argument.
3529 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
3530 instead of sparc64_linux_handle_segmentation_fault.
3531
77bdfeb2
JB
35322020-07-21 John Baldwin <jhb@FreeBSD.org>
3533
3534 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
3535 i386_linux_report_signal_info instead of
3536 i386_linux_handle_segmentation_fault.
3537 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
3538 to i386_linux_report_signal_info and add siggnal argument.
3539 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
3540 of i386_linux_handle_segmentation_fault.
3541 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
3542 to i386_linux_report_signal_info and add siggnal argument.
3543
ad97bfc5
JB
35442020-07-21 John Baldwin <jhb@FreeBSD.org>
3545
3546 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
3547 hook if present.
3548
272bb05c
JB
35492020-07-21 John Baldwin <jhb@FreeBSD.org>
3550
3551 * gdbarch.c: Regenerate.
3552 * gdbarch.h: Regenerate.
3553 * gdbarch.sh (report_signal_info): New method.
3554 * infrun.c (print_signal_received_reason): Invoke gdbarch
3555 report_signal_info hook if present.
3556
baf8791e
AB
35572020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
3558
3559 * python/py-registers.c : Add 'unordered_map' include.
3560 (gdbpy_new_reggroup): Renamed to...
3561 (gdbpy_get_reggroup): ...this. Update to only create register
3562 group descriptors when needed.
3563 (gdbpy_reggroup_iter_next): Update.
3564
f7306dac
AB
35652020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
3566
3567 * python/py-registers.c (gdbpy_register_object_data): New static
3568 global.
3569 (gdbpy_register_object_data_init): New function.
3570 (gdbpy_new_register_descriptor): Renamed to...
3571 (gdbpy_get_register_descriptor): ...this, and update to reuse
3572 existing register descriptors where possible.
3573 (gdbpy_register_descriptor_iter_next): Update.
3574 (gdbpy_initialize_registers): Register new gdbarch data.
3575
05c309a8
SM
35762020-07-21 Simon Marchi <simon.marchi@efficios.com>
3577
3578 * linux-nat.c (stopped_pids): Make static.
3579
d1fd641e
SM
35802020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
3581
3582 PR ada/26235
3583 * gdbtypes.c (ada_discrete_type_low_bound,
3584 ada_discrete_type_high_bound): Handle undefined bounds.
3585
1de14d77
KR
35862020-07-21 Kamil Rytarowski <n54@gmx.com>
3587
3588 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
3589 declaration.
3590 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
3591 function.
3592
ed810cc7
JB
35932020-07-20 John Baldwin <jhb@FreeBSD.org>
3594
3595 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
3596 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
3597 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
3598 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
3599 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
3600 method.
3601
ae5369e7
LC
36022020-07-20 Ludovic Courtès <ludo@gnu.org>
3603
3604 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
3605 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
3606 which are deprecated in Guile 3.0.
3607 * configure.ac (try_guile_versions): Add "guile-3.0".
3608 * configure (try_guile_versions): Regenerate.
3609 * NEWS: Update entry.
3610
68cf161c
LC
36112020-07-20 Ludovic Courtès <ludo@gnu.org>
3612 Doug Evans <dje@google.com>
3613
3614 PR gdb/21104
3615 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
3616 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
3617 USING_GUILE_BEFORE_2_2.
3618 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
3619 Change type to 'scm_t_port_type *'.
3620 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
3621 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
3622 parameter and honor it. Update callers.
3623 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
3624 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
3625 functions.
3626 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
3627 USING_GUILE_BEFORE_2_2.
3628 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
3629 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
3630 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
3631 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
3632 and 'SCM_PORT_TYPE'.
3633 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
3634 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
3635 (gdbscm_memory_port_read, gdbscm_memory_port_write)
3636 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
3637 [!USING_GUILE_BEFORE_2_2]: New functions.
3638 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
3639 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
3640 'gdbscm_memory_port_read'.
3641 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
3642 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
3643 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
3644 function.
3645 (ioscm_init_memory_port): Remove.
3646 (ioscm_init_memory_port_stream): New function
3647 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
3648 function.
3649 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
3650 Return scm_from_uint (0).
3651 (gdbscm_set_memory_port_read_buffer_size_x)
3652 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
3653 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
3654 Return scm_from_uint (0).
3655 (gdbscm_set_memory_port_write_buffer_size_x)
3656 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
3657 * configure.ac (try_guile_versions): Add "guile-2.2".
3658 * configure: Regenerate.
3659 * NEWS: Add entry.
3660
aee91db3
TT
36612020-07-18 Tom Tromey <tom@tromey.com>
3662
3663 * linux-nat.c (linux_multi_process): Remove.
3664 (linux_nat_target::supports_multi_process): Return true.
3665
0e267416
AB
36662020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
3667
3668 * arch/riscv.c (riscv_tdesc_cache): Change map type.
3669 (riscv_lookup_target_description): Return pointer out of
3670 unique_ptr.
3671 * target-descriptions.c (allocate_target_description): Add
3672 comment.
3673 (target_desc_deleter::operator()): Likewise.
3674 * target-descriptions.h (struct target_desc_deleter): Moved to
3675 gdbsupport/tdesc.h.
3676 (target_desc_up): Likewise.
3677
f80c8ec4
TT
36782020-07-17 Tom Tromey <tromey@adacore.com>
3679
3680 * linux-nat.c (linux_nat_target::supports_non_stop)
3681 (linux_nat_target::always_non_stop_p): Use "true".
3682 (linux_nat_target::supports_disable_randomization): Use "true" and
3683 "false".
3684
d0ce17d8
CT
36852020-07-16 Caroline Tice <cmtice@google.com>
3686
3687 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
3688 (RNGLIST_HEADER_SIZE64): New constant definition.
3689 (struct dwop_section_names): Add rnglists_dwo.
3690 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
3691 (struct loclist_header): Rename to 'loclists_rnglists_header'.
3692 (struct dwo_sections): Add rnglists field.
3693 (read_attribut_reprocess): Add tag parameter.
3694 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
3695 (cu_debug_rnglists_section): New function (decl & definition).
3696 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
3697 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
3698 die whose range is being checked; get rnglist section from
3699 cu_debug_rnglists_section, to get from either objfile or dwo file as
3700 appropriate. Add cases for DW_RLE_base_addressx,
3701 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
3702 the base address to DW_RLE_offset_pairs (not to all ranges), moving
3703 test inside if-condition and updating complaint message.
3704 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
3705 dwarf2_rnglists_process.
3706 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
3707 dwarf2_ranges_process.
3708 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
3709 need_ranges_base and update comment appropriately. Also pass die tag
3710 to dwarf2_ranges_read.
3711 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
3712 need_ranges_base and update comment appropriately. Also pass die tag
3713 to dwarf2_ranges_process.
3714 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
3715 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
3716 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
3717 need_ranges_base and update comment appropriately. Also pass die tag
3718 to read_attribute_reprocess and dwarf2_ranges_read.
3719 (read_loclist_header): Rename function to read_loclists_rnglists_header,
3720 and update function comment appropriately.
3721 (read_loclist_index): Call read_loclists_rnglists_header instead of
3722 read_loclist_header.
3723 (read_rnglist_index): New function.
3724 (read_attribute_reprocess): Add tag parameter. Add code for
3725 DW_FORM_rnglistx, passing tag to read_rnglist_index.
3726 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
3727
3dcc261c
AB
37282020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
3729
3730 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
3731 being resolved.
3732
ccb9eba6
AB
37332020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
3734
3735 * arch-utils.c (show_architecture): Update formatting of messages.
3736
cf88be68
SM
37372020-07-12 Simon Marchi <simon.marchi@efficios.com>
3738
3739 * gdbtypes.h (struct type) <bounds>: Handle array and string
3740 types.
3741 * ada-lang.c (assign_aggregate): Use type::bounds on
3742 array/string type.
3743 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
3744 * c-varobj.c (c_number_of_children): Likewise.
3745 (c_describe_child): Likewise.
3746 * eval.c (evaluate_subexp_for_sizeof): Likewise.
3747 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
3748 (f_type_print_base): Likewise.
3749 * f-valprint.c (f77_array_offset_tbl): Likewise.
3750 (f77_get_upperbound): Likewise.
3751 (f77_print_array_1): Likewise.
3752 * guile/scm-type.c (gdbscm_type_range): Likewise.
3753 * m2-typeprint.c (m2_array): Likewise.
3754 (m2_is_long_set_of_type): Likewise.
3755 * m2-valprint.c (get_long_set_bounds): Likewise.
3756 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
3757 * python/py-type.c (typy_range): Likewise.
3758 * rust-lang.c (rust_internal_print_type): Likewise.
3759 * type-stack.c (type_stack::follow_types): Likewise.
3760 * valarith.c (value_subscripted_rvalue): Likewise.
3761 * valops.c (value_cast): Likewise.
3762
509971ae
SM
37632020-07-12 Simon Marchi <simon.marchi@efficios.com>
3764
3765 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
3766 callers to use the equivalent accessor methods.
3767
107406b7
SM
37682020-07-12 Simon Marchi <simon.marchi@efficios.com>
3769
3770 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
3771 (struct type) <bit_stride>: New method.
3772 (TYPE_BIT_STRIDE): Remove.
3773 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
3774
bb789949
SM
37752020-07-12 Simon Marchi <simon.marchi@efficios.com>
3776
3777 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
3778 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
3779 callers to use the equivalent accessor methods instead.
3780
39498edb
SM
37812020-07-12 Simon Marchi <simon.marchi@efficios.com>
3782
3783 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
3784 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
3785 callers to use the equivalent accessor methods instead.
3786
3b606f38
SM
37872020-07-12 Simon Marchi <simon.marchi@efficios.com>
3788
3789 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
3790 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
3791 to use dynamic_prop::kind.
3792
064d9cb9
SM
37932020-07-12 Simon Marchi <simon.marchi@efficios.com>
3794
3795 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
3796 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
3797 to get the bound property's kind and check against
3798 PROP_UNDEFINED.
3799
5537ddd0
SM
38002020-07-12 Simon Marchi <simon.marchi@efficios.com>
3801
3802 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
3803 all callers to use type::range_bounds followed by
3804 dynamic_prop::{low,high}.
3805
8c2e4e06
SM
38062020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
3807
3808 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
3809 const_val, set_const_val, baton, set_locexpr, set_loclist,
3810 set_addr_offset, variant_parts, set_variant_parts,
3811 original_type, set_original_type>: New methods.
3812 <kind>: Rename to...
3813 <m_kind>: ... this. Update all users to use the new methods
3814 instead.
3815 <data>: Rename to...
3816 <m_data>: ... this. Update all users to use the new methods
3817 instead.
3818
7c6f2712
SM
38192020-07-12 Simon Marchi <simon.marchi@efficios.com>
3820
3821 * gdbtypes.c (get_discrete_bounds): Return failure if
3822 the range type's bounds are not both defined and constant
3823 values.
3824 (get_array_bounds): Update comment. Remove undefined bound check.
3825
599088e3
SM
38262020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
3827
3828 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
3829 the type::bounds method directly.
3830
c4dfcb36
SM
38312020-07-12 Simon Marchi <simon.marchi@efficios.com>
3832
3833 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
3834 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
3835 are used to set the range type's bounds to use set_bounds.
3836
0a278aa7
PW
38372020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3838
3839 * exec.c (_initialize_exec): Update exec-file-mismatch help.
3840
cce20f10
PA
38412020-07-10 Pedro Alves <pedro@palves.net>
3842
3843 * gdbthread.h (inferior_ref): Define.
3844 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
3845 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
3846 * thread.c
3847 (scoped_restore_current_thread::restore):
3848 Adjust to gdb::ref_ptr.
3849 (scoped_restore_current_thread::~scoped_restore_current_thread):
3850 Remove manual decref handling.
3851 (scoped_restore_current_thread::scoped_restore_current_thread):
3852 Adjust to use
3853 inferior_ref::new_reference/thread_info_ref::new_reference.
3854 Incref the thread before calling get_frame_id instead of after.
3855 Let TARGET_CLOSE_ERROR propagate.
3856
6d7aa592
PA
38572020-07-10 Pedro Alves <pedro@palves.net>
3858
3859 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
3860 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
3861 NOT_AVAILABLE_ERROR.
3862 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
3863 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
3864
b3e3a4c1
SM
38652020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3866 Pedro Alves <pedro@palves.net>
3867
3868 PR gdb/26199
3869 * infrun.c (threads_are_resumed_pending_p): Delete.
3870 (do_target_wait): Remove threads_are_executing and
3871 threads_are_resumed_pending_p checks from the inferior_matches
3872 lambda. Update comments.
3873
d6cc5d98
PA
38742020-07-10 Pedro Alves <pedro@palves.net>
3875
3876 PR gdb/26199
3877 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
3878 executing threads.
3879
7d3badc6
PA
38802020-07-10 Pedro Alves <pedro@palves.net>
3881
3882 PR gdb/26199
3883 * infrun.c (handle_no_resumed): Handle multiple targets.
3884
42bd97a6
PA
38852020-07-10 Pedro Alves <pedro@palves.net>
3886
3887 PR gdb/26199
3888 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
3889 target_is_async_p.
3890
43667cc6
PA
38912020-07-10 Pedro Alves <pedro@palves.net>
3892
3893 PR gdb/26199
3894 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
3895 threads, not all threads.
3896
96118d11
PA
38972020-07-10 Pedro Alves <pedro@palves.net>
3898
3899 PR gdb/26199
3900 * remote.c (remote_target::open_1): Pass remote target pointer as
3901 data to create_async_event_handler.
3902 (remote_async_inferior_event_handler): Mark async event handler
3903 before returning if the remote target still has either pending
3904 events or unacknowledged notifications.
3905
54904d81
JB
39062020-07-10 John Baldwin <jhb@FreeBSD.org>
3907
3908 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
3909 declaration.
3910 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
3911 function.
3912
f37e5866
JB
39132020-07-09 John Baldwin <jhb@FreeBSD.org>
3914
3915 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
3916 inferior_ptid.
3917
fc238d4a
JB
39182020-07-09 John Baldwin <jhb@FreeBSD.org>
3919
3920 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
3921 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
3922 AT_FREEBSD_PS_STRINGS.
3923
6e2469ff
HD
39242020-07-08 Hannes Domani <ssbssa@yahoo.de>
3925
3926 * auto-load.c (auto_load_objfile_script_1): Convert drive part
3927 of debugfile path on Windows.
3928
d1076c41
JB
39292020-07-08 John Baldwin <jhb@FreeBSD.org>
3930
3931 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
3932 argument to 'data'.
3933
15f3b077
TT
39342020-07-08 Tom Tromey <tromey@adacore.com>
3935
3936 * ada-lang.c (ada_exception_message_1): Use read_memory.
3937
9fc501fd
AB
39382020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3939
3940 PR python/22748
3941 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
3942 special handling for inline frames.
3943 * findvar.c (value_of_register_lazy): Skip inline frames when
3944 creating lazy register values.
3945 * frame.c (frame_id_computed_p): Delete definition.
3946 * frame.h (frame_id_computed_p): Delete declaration.
3947
64cb3757
AB
39482020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3949
3950 * NEWS: Mention additions to Python API.
3951 * python/py-arch.c (archpy_register_groups): New function.
3952 (arch_object_methods): Add 'register_groups' method.
3953 * python/py-registers.c (reggroup_iterator_object): New struct.
3954 (reggroup_object): New struct.
3955 (gdbpy_new_reggroup): New function.
3956 (gdbpy_reggroup_to_string): New function.
3957 (gdbpy_reggroup_name): New function.
3958 (gdbpy_reggroup_iter): New function.
3959 (gdbpy_reggroup_iter_next): New function.
3960 (gdbpy_new_reggroup_iterator): New function
3961 (gdbpy_initialize_registers): Register new types.
3962 (reggroup_iterator_object_type): Define new Python type.
3963 (gdbpy_reggroup_getset): New static global.
3964 (reggroup_object_type): Define new Python type.
3965 * python/python-internal.h
3966
0f767f94
AB
39672020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3968
3969 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
3970 * python/py-arch.c (archpy_registers): New function.
3971 (arch_object_methods): Add 'registers' method.
3972 * python/py-registers.c: New file.
3973 * python/python-internal.h
3974 (gdbpy_new_register_descriptor_iterator): Declare.
3975 (gdbpy_initialize_registers): Declare.
3976 * python/python.c (do_start_initialization): Call
3977 gdbpy_initialize_registers.
3978 * NEWS: Mention additions to the Python API.
3979
87dbc774
AB
39802020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3981
3982 * NEWS: Mention new Python API method.
3983 * python/py-unwind.c (pending_framepy_architecture): New function.
3984 (pending_frame_object_methods): Add architecture method.
3985
3bc98c0c
AB
39862020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3987
3988 * gdbarch.c: Regenerate.
3989 * gdbarch.h: Regenerate.
3990 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
3991 (gdbarch_data): Use internal_error for the case where
3992 deprecated_set_gdbarch_data was originally needed.
3993 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
3994 and use passed in obstack.
3995 (libunwind_frame_set_descr): Should no longer get back NULL from
3996 gdbarch_data.
3997 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
3998 type.
3999 * user-regs.c (user_regs_init): Update parameters, and use passed
4000 in obstack.
4001 (user_reg_add): Should no longer get back NULL from gdbarch_data.
4002 (_initialize_user_regs): Register as a pre-init gdbarch data type.
4003
d8cc8af6
TV
40042020-07-06 Tom de Vries <tdevries@suse.de>
4005
4006 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
4007 End-Of-Sequence in lte_is_less_than.
4008 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
4009 "gdb: Don't reorder line table entries too much when sorting".
4010
947f7597
TV
40112020-07-06 Tom de Vries <tdevries@suse.de>
4012
4013 PR tui/26205
4014 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
4015
1e7c1b22
TV
40162020-07-05 Tom de Vries <tdevries@suse.de>
4017
4018 PR build/26187
4019 * inferior.h (struct infcall_suspend_state_deleter): If available, use
4020 std::uncaught_exceptions instead of deprecated
4021 std::uncaught_exception.
4022
a36158ec
SM
40232020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4024
4025 * macroexp.h (macro_stringify): Return
4026 gdb::unique_xmalloc_ptr<char>.
4027 * macroexp.c (macro_stringify): Likewise.
4028 * macrotab.c (fixup_definition): Update.
4029
14d960c8
SM
40302020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4031
4032 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
4033 (lex_one_token): Update.
4034 * macroexp.c (struct macro_buffer) <release>: Return
4035 gdb::unique_xmalloc_ptr<char>.
4036 (macro_stringify): Update.
4037 (macro_expand): Update.
4038 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
4039 * macroexp.h (macro_expand_next): Likewise.
4040
211d5b1c
SM
40412020-07-02 Simon Marchi <simon.marchi@efficios.com>
4042
4043 * macroexp.h (macro_lookup_ftype): Remove.
4044 (macro_expand, macro_expand_once, macro_expand_next): Remove
4045 lookup function parameters, add scope parameter.
4046 * macroexp.c (scan, substitute_args, expand, maybe_expand,
4047 macro_expand, macro_expand_once, macro_expand_next): Likewise.
4048 * macroscope.h (standard_macro_lookup): Change parameter type
4049 to macro_scope.
4050 * macroscope.c (standard_macro_lookup): Likewise.
4051 * c-exp.y (lex_one_token): Update.
4052 * macrocmd.c (macro_expand_command): Likewise.
4053 (macro_expand_once_command): Likewise.
4054
b1a35af2
SM
40552020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4056
4057 * inf-loop.c (inferior_event_handler): Remove client_data param.
4058 * inf-loop.h (inferior_event_handler): Likewise.
4059 * infcmd.c (step_1): Adjust.
4060 * infrun.c (proceed): Adjust.
4061 (fetch_inferior_event): Remove client_data param.
4062 (infrun_async_inferior_event_handler): Adjust.
4063 * infrun.h (fetch_inferior_event): Remove `void *` param.
4064 * linux-nat.c (handle_target_event): Adjust.
4065 * record-btrace.c (record_btrace_handle_async_inferior_event):
4066 Adjust.
4067 * record-full.c (record_full_async_inferior_event_handler):
4068 Adjust.
4069 * remote.c (remote_async_inferior_event_handler): Adjust.
4070
1cdf9e33
TT
40712020-07-01 Tom Tromey <tom@tromey.com>
4072
4073 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
4074 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
4075
32c1e210
TT
40762020-07-01 Tom Tromey <tom@tromey.com>
4077
4078 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
4079 tui_gen_win_info.
4080 (tui_win_info::make_window): Merge with
4081 tui_gen_win_info::make_window.
4082 (tui_win_info::make_visible): Move from tui_gen_win_info.
4083 * tui/tui-win.c (tui_win_info::max_width): Move from
4084 tui_gen_win_info.
4085 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
4086 type.
4087 <window_factory>: Likewise.
4088 * tui/tui-layout.c (tui_win_info::resize): Move from
4089 tui_gen_win_info.
4090 (make_standard_window): Change return type.
4091 (get_locator_window, tui_get_window_by_name): Likewise.
4092 (tui_layout_window::apply): Remove a cast.
4093 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
4094 (struct tui_win_info): Merge with tui_gen_win_info.
4095 (struct tui_gen_win_info): Remove.
4096
a30cb6da
TT
40972020-07-01 Tom Tromey <tom@tromey.com>
4098
4099 * tui/tui-stack.h (struct tui_locator_window): Derive from
4100 tui_win_info.
4101 <do_scroll_horizontal, do_scroll_vertical>: New methods.
4102 <can_box>: New method.
4103
1eb2161f
TT
41042020-07-01 Tom Tromey <tom@tromey.com>
4105
4106 * tui/tui-stack.h (struct tui_locator_window): Remove body.
4107
7134f2eb
TT
41082020-07-01 Tom Tromey <tom@tromey.com>
4109
4110 * tui/tui-regs.c (tui_data_window::display_registers_from)
4111 (tui_data_window::display_registers_from)
4112 (tui_data_window::first_data_item_displayed)
4113 (tui_data_window::delete_data_content_windows): Update.
4114 (tui_data_window::refresh_window, tui_data_window::no_refresh):
4115 Remove.
4116 (tui_data_window::check_register_values): Update.
4117 (tui_data_item_window::rerender): Add parameters. Update.
4118 (tui_data_item_window::refresh_window): Remove.
4119 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
4120 virtual.
4121 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
4122 tui_gen_win_info.
4123 <refresh_window, max_height, min_height>: Remove.
4124 <rerender>: Add parameters.
4125 <x, y, visible>: New members.
4126 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
4127 <m_item_width>: New member.
4128
22b7b041
TT
41292020-07-01 Tom Tromey <tom@tromey.com>
4130
4131 * tui/tui-regs.c (tui_data_window::show_register_group)
4132 (tui_data_window::check_register_values): Update.
4133 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
4134 from item_no.
4135
c9753adb
TT
41362020-07-01 Tom Tromey <tom@tromey.com>
4137
4138 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
4139 useless "if".
4140
9ab26b4a
TT
41412020-07-01 Tom Tromey <tom@tromey.com>
4142
4143 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
4144 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
4145
e555083f
TT
41462020-07-01 Tom Tromey <tom@tromey.com>
4147
4148 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
4149 * tui/tui-winsource.h (enum tui_line_or_address_kind)
4150 (struct tui_line_or_address): Move from tui-data.h.
4151 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
4152 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
4153 (tui_cmd_window, tui_source_window_base, tui_source_window)
4154 (tui_disasm_window): Don't declare.
4155 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
4156 to tui-winsource.h.
4157 (SINGLE_KEY): Move to tui-stack.c.
4158
7a02bab7
TT
41592020-07-01 Tom Tromey <tom@tromey.com>
4160
4161 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
4162 std::string.
4163 * tui/tui-regs.c (class tab_expansion_file): New.
4164 (tab_expansion_file::write): New method.
4165 (tui_register_format): Change return type. Use
4166 tab_expansion_file.
4167 (tui_get_register, tui_data_window::display_registers_from)
4168 (tui_data_item_window::rerender): Update.
4169 * tui/tui-io.h (tui_expand_tabs): Don't declare.
4170 * tui/tui-io.c (tui_expand_tabs): Remove.
4171
ea68593b
TT
41722020-07-01 Tom Tromey <tom@tromey.com>
4173
4174 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
4175
a8caed5d
FS
41762020-07-01 Fangrui Song <maskray@google.com>
4177
4178 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
4179
9cdf9820
AKS
41802020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4181
4182 * dwarf2/read.c (set_die_type): Removed conditions to restrict
4183 forms for DW_AT_associated and DW_AT_allocated attributes,
4184 which is already checked in function attr_to_dynamic_prop.
4185
a1520ad8
TT
41862020-06-30 Tom Tromey <tromey@adacore.com>
4187
4188 * dwarf2/read.c (quirk_rust_enum): Correctly call
4189 alloc_rust_variant for default-less enum.
4190
5ac58899
TT
41912020-06-30 Tom Tromey <tromey@adacore.com>
4192
4193 PR build/26183:
4194 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
4195 gdb::to_string.
4196
19b187a9
SM
41972020-06-29 Simon Marchi <simon.marchi@efficios.com>
4198
4199 * gdbarch.sh (displaced_step_copy_insn): Update doc.
4200 * gdbarch.h: Re-generate.
4201
cd4c4c07
TT
42022020-06-28 Tom Tromey <tom@tromey.com>
4203
4204 * command.h (cmd_types): Remove.
4205 (cmd_type): Don't declare.
4206 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
4207 typedef.
4208 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
4209 * cli/cli-decode.c (cmd_type): Remove.
4210
05779d57
PA
42112020-06-27 Pedro Alves <palves@redhat.com>
4212
4213 * fork-child.c (prefork_hook): Adjust.
4214 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
4215 Delete.
4216 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
4217 * inferior.c (inferior::set_tty, inferior::tty): New methods.
4218 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
4219 Remove declarations.
4220 (struct inferior) <set_tty, tty>: New methods.
4221 (struct inferior) <terminal>: Rename to ...
4222 (struct inferior) <m_terminal>: ... this and make private.
4223 * main.c (captured_main_1): Adjust.
4224 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
4225 (mi_cmd_inferior_tty_show): Adjust.
4226 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
4227 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
4228
1776e3e5
NA
42292020-06-26 Nick Alcock <nick.alcock@oracle.com>
4230
4231 * configure.ac: Add --enable-libctf: handle --disable-static
4232 properly.
4233 * acinclude.m4: sinclude ../config/enable.m4.
4234 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
4235 (LIBCTF): Substitute in.
4236 (CTF_DEPS): New, likewise.
4237 (CLIBS): libctf needs symbols from libbfd: move earlier.
4238 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
4239 flags.
4240 * ctfread.c: Surround in ENABLE_LIBCTF.
4241 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
4242 * configure: Regenerate.
4243 * config.in: Likewise.
4244
58373b80
SM
42452020-06-25 Simon Marchi <simon.marchi@efficios.com>
4246
4247 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
4248
277474ee
SM
42492020-06-25 Simon Marchi <simon.marchi@efficios.com>
4250
4251 * inferior.h (struct inferior) <terminal>: Change type to
4252 gdb::unique_xmalloc_ptr<char>.
4253 * inferior.c (inferior::~inferior): Don't free inf->terminal.
4254 * infcmd.c (set_inferior_io_terminal): Don't free terminal
4255 field, adjust to unique pointer.
4256 (get_inferior_io_terminal): Adjust to unique pointer.
4257
6d74da72
AB
42582020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4259
4260 * riscv-tdep.c (riscv_print_registers_info): Loop over all
4261 registers, not just the known core set of registers.
4262
2e52d038
AB
42632020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4264
4265 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
4266 fflags, frm, and fcsr registers.
4267 (riscv_register_reggroup_p): Remove unknown CSRs from save and
4268 restore groups.
4269 (riscv_tdesc_unknown_reg): New function.
4270 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
4271 tdesc_use_registers.
4272 * riscv-tdep.h (struct gdbarch_tdep): Add
4273 unknown_csrs_first_regnum, unknown_csrs_count,
4274 duplicate_fflags_regnum, duplicate_frm_regnum, and
4275 duplicate_fcsr_regnum fields.
4276
be64fd07
AB
42772020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4278
4279 * target-descriptions.c (tdesc_use_registers): Add new parameter a
4280 callback, use the callback (when not null) to help number unknown
4281 registers.
4282 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
4283 (tdesc_use_registers): Add extra parameter to declaration.
4284
3b9fce96
AB
42852020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4286
4287 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
4288 in the file.
4289 (class riscv_pending_register_alias): Likewise.
4290 (riscv_register_feature::register_info): Change 'required_p' field
4291 to 'required', and change its type. Add 'check' member function.
4292 (riscv_register_feature::register_info::check): Define new member
4293 function.
4294 (riscv_xreg_feature): Change initialisation of 'required' field.
4295 (riscv_freg_feature): Likewise.
4296 (riscv_virtual_feature): Likewise.
4297 (riscv_csr_feature): Likewise.
4298 (riscv_check_tdesc_feature): Take extra parameter, the csr
4299 tdesc_feature, rewrite the function to use the new
4300 riscv_register_feature::register_info::check function.
4301 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
4302
865bad26
AB
43032020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4304
4305 * features/Makefile: Remove all references to the deleted files
4306 below.
4307 * features/riscv/32bit-csr.c: Deleted.
4308 * features/riscv/32bit-csr.xml: Deleted.
4309 * features/riscv/64bit-csr.c: Deleted.
4310 * features/riscv/64bit-csr.xml: Deleted.
4311 * features/riscv/rebuild-csr-xml.sh: Deleted.
4312
ed69cbc8
AB
43132020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4314
4315 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
4316 whitespace error for declaration of names member variable.
4317 (struct riscv_register_feature): Add new prefer_first_name member
4318 variable, and fix whitespace error in declaration of registers.
4319 (riscv_xreg_feature): Initialize prefer_first_name field.
4320 (riscv_freg_feature): Likewise.
4321 (riscv_virtual_feature): Likewise.
4322 (riscv_csr_feature): Likewise.
4323 (riscv_register_name): Expand on comments. Remove register name
4324 modifications for CSR and virtual registers.
4325
4445e8f5
AB
43262020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4327
4328 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
4329 errors.
4330
767a879e
AB
43312020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4332
4333 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
4334 riscv-opc.h.
4335 (class riscv_pending_register_alias): New class.
4336 (riscv_check_tdesc_feature): Take vector of pending aliases and
4337 populate it as appropriate.
4338 (riscv_setup_register_aliases): Delete.
4339 (riscv_gdbarch_init): Create vector of pending aliases and pass it
4340 to riscv_check_tdesc_feature in all cases. Use the vector to
4341 create the register aliases.
4342
bb6e55f3
RO
43432020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4344
4345 * sol2-tdep.c (sol2_static_transform_name): Remove.
4346 (sol2_init_abi): Don't register it.
4347 * gdbarch.sh (static_transform_name): Remove.
4348 * gdbarch.c, gdbarch.h: Regenerate.
4349
4350 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
4351 gdbarch_static_transform_name.
4352 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
4353 * stabsread.c (define_symbol) <'X'>: Remove.
4354 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
4355 handling.
4356 <'V'>: Likewise.
4357 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
4358 <'S'>: Remove call to gdbarch_static_transform_name.
4359
c6d36836
RO
43602020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4361
4362 * procfs.c (procfs_pre_trace): New function.
4363 (procfs_target::create_inferior): Pass it to fork_inferior.
4364
a7e6196b
RO
43652020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4366
4367 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
4368 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
4369 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
4370 sol2-tdep.o, sparc-sol2-tdep.o.
4371 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
4372 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
4373 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
4374 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
4375
d412e696
RO
43762020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4377
4378 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
4379 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
4380 Call sol2_init_abi.
4381 Remove calls to set_gdbarch_skip_solib_resolver,
4382 set_gdbarch_core_pid_to_str.
4383 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
4384 (i386_sol2_static_transform_name): Remove.
4385 (i386_sol2_init_abi): Call sol2_init_abi.
4386 Remove calls to set_gdbarch_sofun_address_maybe_missing,
4387 set_gdbarch_static_transform_name,
4388 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
4389 Use sol2_sigtramp_p.
4390 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
4391 (sol2_sigtramp_p): New function.
4392 (sol2_static_transform_name): New function.
4393 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
4394 (sol2_init_abi): New function.
4395 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
4396 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
4397 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
4398 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
4399 (sparc_sol2_static_transform_name): Remove.
4400 (sparc32_sol2_init_abi): Call sol2_init_abi.
4401 Remove calls to set_gdbarch_sofun_address_maybe_missing,
4402 set_gdbarch_static_transform_name,
4403 set_gdbarch_skip_solib_resolver,
4404 set_gdbarch_core_pid_to_str.
4405 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
4406 (sparc_sol2_static_transform_name): Remove
4407 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
4408 call sol2_sigtramp_p.
4409 (sparc64_sol2_init_abi): Call sol2_init_abi.
4410 Remove calls to set_gdbarch_sofun_address_maybe_missing,
4411 set_gdbarch_static_transform_name,
4412 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
4413
a8654e7d
PW
44142020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4415
4416 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
4417 * exec.c (validate_exec_file): If from_tty, set both
4418 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
4419 * symfile.c (symbol_file_add_with_addrs): if always_confirm
4420 and from_tty, unconditionally ask a confirmation.
4421
caa7fd04
AB
44222020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4423
4424 * target-descriptions.c (tdesc_architecture_name): Protect against
4425 NULL pointer dereference.
4426 (maint_print_xml_tdesc_cmd): New function.
4427 (_initialize_target_descriptions): Register new 'maint print
4428 xml-tdesc' command and give it the filename completer.
4429 * NEWS: Mention new 'maint print xml-tdesc' command.
4430
fbf42f4e
AB
44312020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4432
4433 * target-descriptions.c (class tdesc_compatible_info): New class.
4434 (struct target_desc): Change type of compatible vector.
4435 (tdesc_compatible_p): Update for change in type of
4436 target_desc::compatible.
4437 (tdesc_compatible_info_list): New function.
4438 (tdesc_compatible_info_arch_name): New function.
4439 (tdesc_add_compatible): Update for change in type of
4440 target_desc::compatible.
4441 (print_c_tdesc::visit_pre): Likewise.
4442
20821f4e
AB
44432020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4444
4445 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
4446 whitespace to underscore.
4447 (maint_print_c_tdesc_cmd): Use fake filename for target
4448 descriptions that came from the target.
4449 (_initialize_target_descriptions): Add filename command completion
4450 for 'maint print c-tdesc'.
4451
1fb5ee62
SM
44522020-06-23 Simon Marchi <simon.marchi@efficios.com>
4453
4454 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
4455 lines.
4456
fc3ecb3e
SM
44572020-06-23 Simon Marchi <simon.marchi@efficios.com>
4458
4459 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
4460 lines.
4461 (dwarf2_find_location_expression): Likewise.
4462 (call_site_parameter_matches): Likewise.
4463 (dwarf2_compile_expr_to_ax): Likewise.
4464 (disassemble_dwarf_expression): Likewise.
4465 (loclist_describe_location): Likewise.
4466
236ef034
PA
44672020-06-23 Pedro Alves <palves@redhat.com>
4468
4469 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
4470 progspace-and-thread.h. Include scoped-mock-context.h instead.
4471 (register_to_value_test): Use scoped_mock_context.
4472 * regcache.c: Include "scoped-mock-context.h".
4473 (cooked_read_test): Don't error out if a target is already pushed.
4474 Use scoped_mock_context. Adjust.
4475 * scoped-mock-context.h: New file.
4476
39e7ecca
AB
44772020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4478
4479 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
4480 initializer.
4481 (ada_language::is_string_type_p): New member function.
4482 * c-lang.c (c_language_data): Delete la_is_string_type_p
4483 initializer.
4484 (cplus_language_data): Likewise.
4485 (asm_language_data): Likewise.
4486 (minimal_language_data): Likewise.
4487 * d-lang.c (d_language_data): Likewise.
4488 * f-lang.c (f_is_string_type_p): Delete function, implementation
4489 moved to f_language::is_string_type_p.
4490 (f_language_data): Delete la_is_string_type_p initializer.
4491 (f_language::is_string_type_p): New member function,
4492 implementation from f_is_string_type_p.
4493 * go-lang.c (go_is_string_type_p): Delete function, implementation
4494 moved to go_language::is_string_type_p.
4495 (go_language_data): Delete la_is_string_type_p initializer.
4496 (go_language::is_string_type_p): New member function,
4497 implementation from go_is_string_type_p.
4498 * language.c (language_defn::is_string_type_p): Define new member
4499 function.
4500 (default_is_string_type_p): Make static, add comment copied from
4501 header file.
4502 (unknown_language_data): Delete la_is_string_type_p initializer.
4503 (unknown_language::is_string_type_p): New member function.
4504 (auto_language_data): Delete la_is_string_type_p initializer.
4505 (auto_language::is_string_type_p): New member function.
4506 * language.h (language_data): Delete la_is_string_type_p field.
4507 (language_defn::is_string_type_p): Declare new function.
4508 (default_is_string_type_p): Delete desclaration, move comment to
4509 definition.
4510 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
4511 moved to m2_language::is_string_type_p.
4512 (m2_language_data): Delete la_is_string_type_p initializer.
4513 (m2_language::is_string_type_p): New member function,
4514 implementation from m2_is_string_type_p.
4515 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
4516 initializer.
4517 * opencl-lang.c (opencl_language_data): Likewise.
4518 * p-lang.c (pascal_is_string_type_p): Delete function,
4519 implementation moved to pascal_language::is_string_type_p.
4520 (pascal_language_data): Delete la_is_string_type_p initializer.
4521 (pascal_language::is_string_type_p): New member function,
4522 implementation from pascal_is_string_type_p.
4523 * rust-lang.c (rust_is_string_type_p): Delete function,
4524 implementation moved to rust_language::is_string_type_p.
4525 (rust_language_data): Delete la_is_string_type_p initializer.
4526 (rust_language::is_string_type_p): New member function,
4527 implementation from rust_is_string_type_p.
4528 * valprint.c (val_print_scalar_or_string_type_p): Update call to
4529 is_string_type_p.
4530
4ffc13fb
AB
45312020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4532
4533 * ada-lang.c (ada_language_data): Delete la_print_typedef
4534 initializer.
4535 (ada_language::print_typedef): New member function.
4536 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
4537 (cplus_language_data): Likewise.
4538 (asm_language_data): Likewise.
4539 (minimal_language_data): Likewise.
4540 * d-lang.c (d_language_data): Likewise.
4541 * f-lang.c (f_language_data): Likewise.
4542 (f_language::print_typedef): New member function.
4543 * go-lang.c (go_language_data): Delete la_print_typedef
4544 initializer.
4545 * language.c (language_defn::print_typedef): Define member
4546 function.
4547 (unknown_language_data): Delete la_print_typedef initializer.
4548 (unknown_language::print_typedef): New member function.
4549 (auto_language_data): Delete la_print_typedef initializer.
4550 (auto_language::print_typedef): New member function.
4551 * language.h (language_data): Delete la_print_typedef field.
4552 (language_defn::print_typedef): Declare new member function.
4553 (LA_PRINT_TYPEDEF): Update call to print_typedef.
4554 (default_print_typedef): Delete declaration.
4555 * m2-lang.c (m2_language_data): Delete la_print_typedef
4556 initializer.
4557 (m2_language::print_typedef): New member function.
4558 * objc-lang.c (objc_language_data): Delete la_print_typedef
4559 initializer.
4560 * opencl-lang.c (opencl_language_data): Likewise.
4561 * p-lang.c (pascal_language_data): Likewise.
4562 (pascal_language::print_typedef): New member function.
4563 * rust-lang.c (rust_print_typedef): Delete function,
4564 implementation moved to rust_language::print_typedef.
4565 (rust_language): Delete la_print_typedef initializer.
4566 (rust_language::print_typedef): New member function,
4567 implementation from rust_print_typedef.
4568 * typeprint.c (default_print_typedef): Delete.
4569
d711ee67
AB
45702020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4571
4572 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
4573 (ada_language::printstr): New member function.
4574 * c-lang.c (c_language_data): Delete la_printstr initializer.
4575 (cplus_language_data): Likewise.
4576 (asm_language_data): Likewise.
4577 (minimal_language_data): Likewise.
4578 * d-lang.c (d_language_data): Likewise.
4579 * f-lang.c (f_printstr): Rename to f_language::printstr.
4580 (f_language_data): Delete la_printstr initializer.
4581 (f_language::printstr): New member function, implementation from
4582 f_printstr.
4583 * go-lang.c (go_language_data): Delete la_printstr initializer.
4584 * language.c (language_defn::printstr): Define new member
4585 function.
4586 (unk_lang_printstr): Delete.
4587 (unknown_language_data): Delete la_printstr initializer.
4588 (unknown_language::printstr): New member function.
4589 (auto_language_data): Delete la_printstr initializer.
4590 (auto_language::printstr): New member function.
4591 * language.h (language_data): Delete la_printstr field.
4592 (language_defn::printstr): Declare new member function.
4593 (LA_PRINT_STRING): Update call to printstr.
4594 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
4595 (m2_language_data): Delete la_printstr initializer.
4596 (m2_language::printstr): New member function, implementation from
4597 m2_printstr.
4598 * objc-lang.c (objc_language_data): Delete la_printstr
4599 initializer.
4600 * opencl-lang.c (opencl_language_data): Likewise.
4601 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
4602 (pascal_language_data): Delete la_printstr initializer.
4603 (pascal_language::printstr): New member function, implementation
4604 from pascal_printstr.
4605 * p-lang.h (pascal_printstr): Delete declaration.
4606 * rust-lang.c (rust_printstr): Update header comment.
4607 (rust_language_data): Delete la_printstr initializer.
4608 (rust_language::printstr): New member function.
4609
52b50f2c
AB
46102020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4611
4612 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
4613 (ada_language::printchar): New member function.
4614 * c-lang.c (c_language_data): Delete la_printchar initializer.
4615 (cplus_language_data): Likewise.
4616 (asm_language_data): Likewise.
4617 (minimal_language_data): Likewise.
4618 * d-lang.c (d_language_data): Likewise.
4619 * f-lang.c (f_printchar): Rename to f_language::printchar.
4620 (f_language_data): Delete la_printchar initializer.
4621 (f_language::printchar): New member function, implementation from
4622 f_printchar.
4623 * go-lang.c (go_language_data): Delete la_printchar initializer.
4624 * language.c (unk_lang_printchar): Delete.
4625 (language_defn::printchar): Define new member function.
4626 (unknown_language_data): Delete la_printchar initializer.
4627 (unknown_language::printchar): New member function.
4628 (auto_language_data): Delete la_printchar initializer.
4629 (auto_language::printchar): New member function.
4630 * language.h (language_data): Delete la_printchar field.
4631 (language_defn::printchar): Declare new member function.
4632 (LA_PRINT_CHAR): Update call to printchar.
4633 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
4634 (m2_language::printchar): New member function.
4635 * objc-lang.c (objc_language_data): Delete la_printchar
4636 initializer.
4637 * opencl-lang.c (opencl_language_data): Likewise.
4638 * p-lang.c (pascal_language_data): Delete la_printchar
4639 initializer.
4640 (pascal_language::printchar): New member function.
4641 * rust-lang.c (rust_printchar): Rename to
4642 rust_language::printchar.
4643 (rust_language_data): Delete la_printchar initializer.
4644 (rust_language::printchar): New member function, implementation
4645 from rust_printchar.
4646
ec8cec5b
AB
46472020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4648
4649 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
4650 (ada_language_data): Delete la_emitchar initializer.
4651 (ada_language::emitchar): New member function, implementation from
4652 emit_char.
4653 * c-lang.c (c_language_data): Delete la_emitchar initializer.
4654 (cplus_language_data): Likewise.
4655 (asm_language_data): Likewise.
4656 (minimal_language_data): Likewise.
4657 * d-lang.c (d_language_data): Likewise.
4658 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
4659 (f_language_data): Delete la_emitchar initializer.
4660 (f_language::emitchar): New member function, implementation from
4661 f_emit_char.
4662 * go-lang.c (go_language_data): Delete la_emitchar initializer.
4663 * language.c (unk_lang_emit_char): Delete.
4664 (language_defn::emitchar): New member function definition.
4665 (unknown_language_data): Delete la_emitchar initializer.
4666 (unknown_language::emitchar): New member function.
4667 (auto_language_data): Delete la_emitchar initializer.
4668 (auto_language::emitchar): New member function.
4669 * language.h (language_data): Delete la_emitchar field.
4670 (language_defn::emitchar): New member field declaration.
4671 (LA_EMIT_CHAR): Update call to emitchar.
4672 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
4673 (m2_language_data): Delete la_emitchar initializer.
4674 (m2_language::emitchar): New member function, implementation from
4675 m2_emit_char.
4676 * objc-lang.c (objc_language_data): Delete la_emitchar
4677 initializer.
4678 * opencl-lang.c (opencl_language_data): Likewise.
4679 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
4680 (pascal_language_data): Delete la_emitchar initializer.
4681 (pascal_language::emitchar): New member function, implementation
4682 from pascal_emit_char.
4683 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
4684 (rust_language_data): Delete la_emitchar initializer.
4685 (rust_language::emitchar): New member function, implementation
4686 from rust_emitchar.
4687
1bf9c363
AB
46882020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4689
4690 * ada-lang.c (resolve): Rename to ada_language::post_parser.
4691 (ada_language_data): Delete la_post_parser initializer.
4692 (ada_language::post_parser): New member function.
4693 * c-lang.c (c_language_data): Delete la_post_parser initializer.
4694 (cplus_language_data): Likewise.
4695 (asm_language_data): Likewise.
4696 (minimal_language_data): Likewise.
4697 * d-lang.c (d_language_data): Likewise.
4698 * f-lang.c (f_language_data): Likewise.
4699 * go-lang.c (go_language_data): Likewise.
4700 * language.c (unknown_language_data): Likewise.
4701 (auto_language_data): Likewise.
4702 * language.h (language_data): Delete la_post_parser field.
4703 (language_defn::post_parser): New member function.
4704 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
4705 * objc-lang.c (objc_language_data): Likewise.
4706 * opencl-lang.c (opencl_language_data): Likewise.
4707 * p-lang.c (pascal_language_data): Likewise.
4708 * parse.c (parse_exp_in_context): Update call to post_parser.
4709 (null_post_parser): Delete definition.
4710 * parser-defs.h (null_post_parser): Delete declaration.
4711 * rust-lang.c (rust_language_data): Delete la_post_parser
4712 initializer.
4713
87afa652
AB
47142020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4715
4716 * ada-lang.c (parse): Rename to ada_language::parser.
4717 (ada_language_data): Delete la_parser initializer.
4718 (ada_language::parser): New member function, implementation from
4719 parse.
4720 * c-lang.c (c_language_data): Delete la_parser initializer.
4721 (cplus_language_data): Likewise.
4722 (asm_language_data): Likewise.
4723 (minimal_language_data): Likewise.
4724 * d-lang.c (d_language_data): Likewise.
4725 (d_language::parser): New member function.
4726 * f-lang.c (f_language_data): Delete la_parser initializer.
4727 (f_language::parser): New member function.
4728 * go-lang.c (go_language_data): Delete la_parser initializer.
4729 (go_language::parser): New member function.
4730 * language.c (unk_lang_parser): Delete.
4731 (language_defn::parser): Define new member function.
4732 (unknown_language_data): Delete la_parser initializer.
4733 (unknown_language::parser): New member function.
4734 (auto_language_data): Delete la_parser initializer.
4735 (auto_language::parser): New member function.
4736 * language.h (language_data): Delete la_parser field.
4737 (language_defn::parser): Declare new member function.
4738 * m2-lang.c (m2_language_data): Delete la_parser initializer.
4739 (m2_language::parser): New member function.
4740 * objc-lang.c (objc_language_data): Delete la_parser initializer.
4741 * opencl-lang.c (opencl_language_data): Likewise.
4742 * p-lang.c (pascal_language_data): Likewise.
4743 (pascal_language::parser): New member function.
4744 * parse.c (parse_exp_in_context): Update call to parser.
4745 * rust-lang.c (rust_language_data): Delete la_parser initializer.
4746 (rust_language::parser): New member function.
4747
37825800
AB
47482020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4749
4750 * top.c (print_gdb_configuration): Print --with-python-libdir
4751 configuration value.
4752
5b860c93
PW
47532020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4754
4755 * NEWS: Mention change to the alias command.
4756
cf00cd6f
PW
47572020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4758
4759 * cli/cli-cmds.c (lookup_cmd_for_default_args)
4760 (alias_command_completer)
4761 (make_alias_options_def_group): New functions.
4762 (alias_opts, alias_option_defs): New struct and array.
4763 (alias_usage_error): Update usage.
4764 (alias_command): Handles optional DEFAULT-ARGS... arguments.
4765 Use option framework.
4766 (_initialize_cli_cmds): Update alias command help.
4767 Update aliases command help.
4768 (show_user):
4769 Add NULL for new default_args lookup_cmd argument.
4770 (valid_command_p): Rename to validate_aliased_command.
4771 Add NULL for new default_args lookup_cmd argument. Verify that the
4772 aliased_command has no default args.
4773 * cli/cli-decode.c (help_cmd): Show aliases definitions.
4774 (lookup_cmd_1, lookup_cmd): New argument default_args.
4775 (add_alias_cmd):
4776 Add NULL for new default_args lookup_cmd argument.
4777 (print_help_for_command): Show default args under the layout
4778 alias some_alias = some_aliased_cmd some_alias_default_arg.
4779 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
4780 xfree default_args in destructor.
4781 * cli/cli-script.c (process_next_line, do_define_command):
4782 Add NULL for new default_args lookup_cmd argument.
4783 * command.h: Declare new default_args argument in lookup_cmd
4784 and lookup_cmd_1.
4785 * completer.c (complete_line_internal_1):
4786 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4787 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
4788 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
4789 Likewise.
4790 * infcmd.c (_initialize_infcmd): Likewise.
4791 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
4792 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
4793 * python/py-param.c (add_setshow_generic): Likewise.
4794 * remote.c (_initialize_remote): Likewise.
4795 * top.c (execute_command): Prepend default_args if command has some.
4796 (set_verbose):
4797 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4798 * tracepoint.c (validate_actionline, encode_actions_1):
4799 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4800
bd920864
TBA
48012020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4802
4803 * jit.c (jit_read_descriptor): Use bool as the return type.
4804 (jit_breakpoint_re_set_internal): Use bool as the return type.
4805 Invert the return value logic; return true if the jit breakpoint
4806 has been successfully initialized.
4807 (jit_inferior_init): Update the call to
4808 jit_breakpoint_re_set_internal.
4809
f8098322
PA
48102020-06-22 Pedro Alves <palves@redhat.com>
4811
4812 PR gdb/25939
4813 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
4814 Use the current inferior instead. Don't return
4815 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
4816 wait again.
4817 * sol-thread.c (sol_thread_target::wait): Don't reference
4818 inferior_ptid.
4819 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
4820 (sol_update_thread_list_callback): Use the current inferior's pid
4821 instead of inferior_ptid.
4822
196535a6
RO
48232020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4824
4825 * procfs.c: Cleanup many comments.
4826
4827 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
4828 (AFTER_WATCHFLAG): Replace by value.
4829
4830 (MAIN_PROC_NAME_FORMAT): Inline ...
4831 (create_procinfo): ... here.
4832
4833 (procfs_debug_inferior): Remove SYS_exec handling.
4834 (syscall_is_exec): Likewise.
4835 (procfs_set_exec_trap): Likewise.
4836
4837 (syscall_is_lwp_exit): Inline in callers.
4838 (syscall_is_exit): Likewise.
4839 (syscall_is_exec): Likewise.
4840 (syscall_is_lwp_create): Likewise.
4841
4842 (invalidate_cache): Remove #if 0 code.
4843
4844 (make_signal_thread_runnable): Remove.
4845 (procfs_target::resume): Remove #if 0 code.
4846
cf6f3e86
RO
48472020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4848
4849 PR gdb/25939
4850 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
4851 call ...
4852 (procfs_target::create_inferior): ... here.
4853
48e9cc84
PW
48542020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4855
4856 * exec.c (validate_exec_file): Ensure the build-id is up to
4857 date by calling reopen_exec_file (that checks file timestamp
4858 to decide to re-read the file).
4859
3922b302
PA
48602020-06-18 Pedro Alves <palves@redhat.com>
4861
4862 PR gdb/25412
4863 * gdbthread.h (delete_thread, delete_thread_silent)
4864 (find_thread_ptid): Update comments.
4865 * thread.c (current_thread_): New global.
4866 (is_current_thread): Move higher, and reimplement.
4867 (inferior_thread): Reimplement.
4868 (set_thread_exited): Use bool. Add assertions.
4869 (add_thread_silent): Simplify thread-reuse handling by always
4870 calling delete_thread.
4871 (delete_thread): Remove intro comment.
4872 (find_thread_ptid): Skip exited threads.
4873 (switch_to_thread_no_regs): Write to current_thread_.
4874 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
4875 INFERIOR_PTID. Clear current_thread_.
4876
6dbdab44
PA
48772020-06-18 Pedro Alves <palves@redhat.com>
4878
4879 * aix-thread.c (pd_update): Use switch_to_thread.
4880
2da4b788
PA
48812020-06-18 Pedro Alves <palves@redhat.com>
4882
4883 * ravenscar-thread.c (ravenscar_thread_target): Update.
4884 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
4885 (ravenscar_thread_target::add_active_thread): ... this. Don't
4886 set m_base_ptid here. Update to avoid referencing inferior_ptid.
4887 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
4888
50838d1b
PA
48892020-06-18 Pedro Alves <palves@redhat.com>
4890
4891 * nat/windows-nat.c (current_windows_thread): Remove.
4892 * nat/windows-nat.h (current_windows_thread): Remove.
4893 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
4894 Adjust.
4895 (display_selectors): Adjust to fetch the current
4896 windows_thread_info based on inferior_ptid.
4897 (fake_create_process): No longer write to current_windows_thread.
4898 (windows_nat_target::get_windows_debug_event):
4899 Don't set inferior_ptid or current_windows_thread.
4900 (windows_nat_target::wait): Adjust to not rely on
4901 current_windows_thread.
4902 (do_initial_windows_stuff): Now a method of windows_nat_target.
4903 Switch to the last_ptid thread.
4904 (windows_nat_target::attach): Adjust.
4905 (windows_nat_target::detach): Use switch_to_no_thread instead of
4906 writing to inferior_ptid directly.
4907 (windows_nat_target::create_inferior): Adjust.
4908
31ce04e9
PA
49092020-06-18 Pedro Alves <palves@redhat.com>
4910
4911 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
4912
1ee1a363
PA
49132020-06-18 Pedro Alves <palves@redhat.com>
4914
4915 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
4916 after creating it, instead of writing to inferior_ptid. Don't
4917 write to inferior_ptid.
4918
6d350754
PA
49192020-06-18 Pedro Alves <palves@redhat.com>
4920
4921 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
4922
5d971d48
PA
49232020-06-18 Pedro Alves <palves@redhat.com>
4924
4925 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
4926 it, instead of writing to inferior_ptid.
4927
86e57d1b
PA
49282020-06-18 Pedro Alves <palves@redhat.com>
4929
4930 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
4931 to inferior_ptid.
4932
f2e1c129
PA
49332020-06-18 Pedro Alves <palves@redhat.com>
4934
4935 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
4936 instead of writing to inferior_ptid directly.
4937
60db1b85
PA
49382020-06-18 Pedro Alves <palves@redhat.com>
4939
4940 * corelow.c (core_target::close): Use switch_to_no_thread instead
4941 of writing to inferior_ptid directly.
4942 (add_to_thread_list, core_target_open): Use switch_to_thread
4943 instead of writing to inferior_ptid directly.
4944
fe7d6a8d
PA
49452020-06-18 Pedro Alves <palves@redhat.com>
4946
4947 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
4948 inferior_ptid.
4949 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
4950 inferior_ptid.
4951 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
4952 inferior_ptid directly.
4953 (darwin_nat_target::init_thread_list): Switch to thread, instead
4954 of writing to inferior_ptid.
4955 (darwin_nat_target::attach): Don't write to inferior_ptid.
4956 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
4957
975f8708
PA
49582020-06-18 Pedro Alves <palves@redhat.com>
4959
4960 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
4961 thread.
4962 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
4963 Instead use switch_to_thread.
4964 (gnu_nat_target::detach): Use switch_to_no_thread
4965 instead of writing to inferior_ptid directly. Used passed-in
4966 inferior instead of looking up the inferior by pid.
4967
1a204730
PA
49682020-06-18 Pedro Alves <palves@redhat.com>
4969
4970 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
4971 inferior_ptid.
4972
ebe84f23
PA
49732020-06-18 Pedro Alves <palves@redhat.com>
4974
4975 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
4976 inferior_ptid.
4977 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
4978 thread.
4979 (nto_procfs_target::detach): Avoid referencing
4980 inferior_ptid. Use switch_to_no_thread instead of writing to
4981 inferior_ptid directly.
4982 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
4983 instead of writing to inferior_ptid directly.
4984 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
4985 to thread.
4986
191f02e5
PA
49872020-06-18 Pedro Alves <palves@redhat.com>
4988
4989 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
4990 after creating it, instead of writing to inferior_ptid.
4991 (gdbsim_target_open): Use switch_to_no_thread instead of writing
4992 to inferior_ptid directly.
4993 (gdbsim_target::wait): Don't write to inferior_ptid.
4994
0ac55310
PA
49952020-06-18 Pedro Alves <palves@redhat.com>
4996
4997 * remote.c (remote_target::remote_notice_new_inferior): Use
4998 switch_to_thread instead of writing to inferior_ptid directly.
4999 (remote_target::add_current_inferior_and_thread): Use
5000 switch_to_no_thread instead of writing to inferior_ptid directly.
5001 (extended_remote_target::attach): Use switch_to_inferior_no_thread
5002 and switch_to_thread instead of using set_current_inferior or
5003 writing to inferior_ptid directly.
5004
5233f39b
PA
50052020-06-18 Pedro Alves <palves@redhat.com>
5006
5007 * tracectf.c (ctf_target_open): Switch to added thread instead of
5008 writing to inferior_ptid directly.
5009 (ctf_target::close): Use switch_to_no_thread instead of writing to
5010 inferior_ptid directly.
5011
087e161b
PA
50122020-06-18 Pedro Alves <palves@redhat.com>
5013
5014 * tracefile-tfile.c (tfile_target_open): Don't write to
5015 inferior_ptid directly, instead switch to added thread.
5016 (tfile_target::close): Use switch_to_no_thread instead of writing
5017 to inferior_ptid directly.
5018
7fb43e53
PA
50192020-06-18 Pedro Alves <palves@redhat.com>
5020
5021 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
5022 (procfs_target::detach): Use switch_to_no_thread
5023 instead of writing to inferior_ptid directly.
5024 (do_attach): Change return type to void. Switch to the added
5025 thread.
5026 (procfs_target::create_inferior): Switch to the added thread.
5027 (procfs_do_thread_registers): Don't write to inferior_ptid.
5028
18493a00
PA
50292020-06-18 Pedro Alves <palves@redhat.com>
5030
5031 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
5032 of writing to inferior_ptid.
5033 (scoped_restore_exited_inferior): Delete.
5034 (handle_vfork_child_exec_or_exit): Simplify using
5035 scoped_restore_current_pspace_and_thread. Use switch_to_thread
5036 instead of writing to inferior_ptid.
5037 (THREAD_STOPPED_BY): Delete.
5038 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
5039 (thread_stopped_by_hw_breakpoint): Delete.
5040 (save_waitstatus): Use
5041 scoped_restore_current_thread+switch_to_thread, and call
5042 target_stopped_by_watchpoint instead of
5043 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
5044 instead of thread_stopped_by_sw_breakpoint, and
5045 target_stopped_by_hw_breakpoint instead of
5046 thread_stopped_by_hw_breakpoint.
5047 (handle_inferior_event)
5048 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
5049 inferior_ptid directly, nor
5050 set_current_inferior/set_current_program_space. Use
5051 switch_to_thread / switch_to_inferior_no_thread instead.
5052
a0776b13
PA
50532020-06-18 Pedro Alves <palves@redhat.com>
5054
5055 * target.c (generic_mourn_inferior): Use switch_to_no_thread
5056 instead of writing to inferior_ptid.
5057
6155c136
PA
50582020-06-18 Pedro Alves <palves@redhat.com>
5059
5060 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
5061 added thread.
5062 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
5063 to the added thread.
5064 (inf_ptrace_target::detach_success): Use switch_to_no_thread
5065 instead of writing to inferior_ptid.
5066
c5316fc6
PA
50672020-06-18 Pedro Alves <palves@redhat.com>
5068
5069 * gdbarch-selftests.c: Include "progspace-and-thread.h".
5070 (register_to_value_test): Mock a program_space too. Heap-allocate
5071 the address space. Don't write to inferior_ptid. Use
5072 switch_to_thread instead.
5073
8df01799
PA
50742020-06-18 Pedro Alves <palves@redhat.com>
5075
5076 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
5077 Delete.
5078 (find_signalled_thread()): New, factored out from
5079 linux_make_corefile_notes and adjusted to handle exited threads.
5080 (linux_make_corefile_notes): Adjust to use the new
5081 find_signalled_thread.
5082
41792d68
PA
50832020-06-18 Pedro Alves <palves@redhat.com>
5084
5085 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
5086 of saving/restoring inferior_ptid.
5087
612f258a
TT
50882020-06-17 Tom Tromey <tom@tromey.com>
5089
5090 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
5091 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
5092 declare.
5093 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
5094
efb763a5
SM
50952020-06-15 Simon Marchi <simon.marchi@efficios.com>
5096
5097 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
5098 of partial symtabs.
5099
2951f6c0
SM
51002020-06-17 Simon Marchi <simon.marchi@efficios.com>
5101
5102 * regformats/reg-arm.dat: Remove.
5103 * regformats/reg-bfin.dat: Remove.
5104 * regformats/reg-cris.dat: Remove.
5105 * regformats/reg-crisv32.dat: Remove.
5106 * regformats/reg-m32r.dat: Remove.
5107 * regformats/reg-tilegx.dat: Remove.
5108 * regformats/reg-tilegx32.dat: Remove.
5109
7d458ea5
SM
51102020-06-17 Simon Marchi <simon.marchi@efficios.com>
5111
5112 * features/Makefile (WHICH): Remove arm files.
5113 * regformats/arm/arm-with-iwmmxt.dat: Remove.
5114 * regformats/arm/arm-with-neon.dat: Remove.
5115 * regformats/arm/arm-with-vfpv2.dat: Remove.
5116 * regformats/arm/arm-with-vfpv3.dat: Remove.
5117
3af96c0d
SM
51182020-06-17 Simon Marchi <simon.marchi@efficios.com>
5119
5120 * features/Makefile (XMLTOC): Remove rx.xml.
5121
b25e22fd
PA
51222020-06-17 Pedro Alves <palves@redhat.com>
5123
5124 * gdbthread.h (thread_control_state) <trap_expected> Update
5125 comments.
5126
a78a19b1
AB
51272020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5128
5129 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
5130 ada_language::lookup_symbol_nonlocal.
5131 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
5132 (ada_language::lookup_symbol_nonlocal): New member function,
5133 implementation from ada_lookup_symbol_nonlocal.
5134 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
5135 initializer.
5136 (cplus_language_data): Delete la_lookup_symbol_nonlocal
5137 initializer.
5138 (cplus_language::lookup_symbol_nonlocal): New member function.
5139 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
5140 (minimal_language_data) Likewise.
5141 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
5142 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
5143 initializer.
5144 (d_language::lookup_symbol_nonlocal): New member function.
5145 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
5146 initializer.
5147 (f_language::lookup_symbol_nonlocal): New member function.
5148 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
5149 initializer.
5150 * language.c (unknown_language_data): Likewise.
5151 (auto_language_data): Likewise.
5152 * language.h (language_data): Delete la_lookup_symbol_nonlocal
5153 field.
5154 (language_defn::lookup_symbol_nonlocal): New member function.
5155 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
5156 initializer.
5157 * objc-lang.c (objc_language_data): Likewise.
5158 * opencl-lang.c (opencl_language_data): Likewise.
5159 * p-lang.c (pascal_language_data): Likewise.
5160 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
5161 rust_language::lookup_symbol_nonlocal.
5162 (rust_language_data): Delete la_lookup_symbol_nonlocal
5163 initializer.
5164 (rust_language::lookup_symbol_nonlocal): New member function,
5165 implementation from rust_lookup_symbol_nonlocal.
5166 * symtab.c (lookup_symbol_aux): Update call to
5167 lookup_symbol_nonlocal.
5168 (basic_lookup_symbol_nonlocal): Rename to...
5169 (language_defn::lookup_symbol_nonlocal): ...this, and update
5170 header comment. Remove language_defn parameter, and replace with
5171 uses of `this'.
5172 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
5173
ebe2334e
AB
51742020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5175
5176 * ada-lang.c (ada_language_data): Delete la_value_print_inner
5177 initializer.
5178 (ada_language::value_print_inner): New member function.
5179 * c-lang.c (c_language_data): Delete la_value_print_inner
5180 initializer.
5181 (cplus_language_data): Likewise.
5182 (asm_language_data): Likewise.
5183 (minimal_language_data): Likewise.
5184 * d-lang.c (d_language_data): Likewise.
5185 (d_language::value_print_inner): New member function.
5186 * f-lang.c (f_language_data): Delete la_value_print_inner
5187 initializer.
5188 (f_language::value_print_inner): New member function.
5189 * f-lang.h (f_value_print_innner): Rename to...
5190 (f_value_print_inner): ...this (note spelling of 'inner').
5191 * f-valprint.c (f_value_print_innner): Rename to...
5192 (f_value_print_inner): ...this (note spelling of 'inner').
5193 * go-lang.c (go_language_data): Delete la_value_print_inner
5194 initializer.
5195 (go_language::value_print_inner): New member function.
5196 * language.c (language_defn::value_print_inner): Define new member
5197 function.
5198 (unk_lang_value_print_inner): Delete.
5199 (unknown_language_data): Delete la_value_print_inner initializer.
5200 (unknown_language::value_print_inner): New member function.
5201 (auto_language_data): Delete la_value_print_inner initializer.
5202 (auto_language::value_print_inner): New member function.
5203 * language.h (language_data): Delete la_value_print_inner field.
5204 (language_defn::value_print_inner): Delcare new member function.
5205 * m2-lang.c (m2_language_data): Delete la_value_print_inner
5206 initializer.
5207 (m2_language::value_print_inner): New member function.
5208 * objc-lang.c (objc_language_data): Delete la_value_print_inner
5209 initializer.
5210 * opencl-lang.c (opencl_language_data): Likewise.
5211 * p-lang.c (pascal_language_data): Likewise.
5212 (pascal_language::value_print_inner): New member function.
5213 * rust-lang.c (rust_language_data): Delete la_value_print_inner
5214 initializer.
5215 (rust_language::value_print_inner): New member function.
5216 * valprint.c (do_val_print): Update call to value_print_inner.
5217
a1d1fa3e
AB
52182020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5219
5220 * ada-lang.c (ada_language_data): Delete la_value_print
5221 initializer.
5222 (ada_language::value_print): New member function.
5223 * c-lang.c (c_language_data): Delete la_value_print initializer.
5224 (cplus_language_data): Likewise.
5225 (asm_language_data): Likewise.
5226 (minimal_language_data): Likewise.
5227 * d-lang.c (d_language_data): Likewise.
5228 * f-lang.c (f_language_data): Likewise.
5229 * go-lang.c (go_language_data): Likewise.
5230 * language.c (unk_lang_value_print): Delete.
5231 (language_defn::value_print): Define new member function.
5232 (unknown_language_data): Delete la_value_print initializer.
5233 (unknown_language::value_print): New member function.
5234 (auto_language_data): Delete la_value_print initializer.
5235 (auto_language::value_print): New member function.
5236 * language.h (language_data): Delete la_value_print field.
5237 (language_defn::value_print): Declare new member function.
5238 (LA_VALUE_PRINT): Update call to value_print.
5239 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
5240 * objc-lang.c (objc_language_data): Likewise.
5241 * opencl-lang.c (opencl_language_data): Likewise.
5242 * p-lang.c (pascal_language_data): Likewise.
5243 (pascal_language::value_print): New member function.
5244 * rust-lang.c (rust_language_data): Delete la_value_print
5245 initializer.
5246
f16a9f57
AB
52472020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5248
5249 * ada-lang.c (ada_watch_location_expression): Rename to
5250 ada_language::watch_location_expression.
5251 (ada_language_data): Delete la_watch_location_expression
5252 initializer.
5253 (ada_language::watch_location_expression): New member function,
5254 implementation from ada_watch_location_expression.
5255 * breakpoint.c (watch_command_1): Update call to
5256 watch_location_expression.
5257 * c-lang.c (c_watch_location_expression): Rename to
5258 language_defn::watch_location_expression.
5259 (c_language_data): Delete la_watch_location_expression
5260 initializer.
5261 (cplus_language_data): Likewise.
5262 (asm_language_data): Likewise.
5263 (minimal_language_data): Likewise.
5264 * c-lang.h (c_watch_location_expression): Delete declaration.
5265 * d-lang.c (d_language_data): Delete la_watch_location_expression
5266 initializer.
5267 * f-lang.c (f_language_data): Likewise.
5268 * go-lang.c (go_language_data): Likewise.
5269 * language.c (language_defn::watch_location_expression): Member
5270 function implementation from c_watch_location_expression.
5271 (unknown_language_data): Delete la_watch_location_expression
5272 initializer.
5273 (auto_language_data): Likewise.
5274 * language.h (language_data): Delete la_watch_location_expression
5275 field.
5276 (language_defn::watch_location_expression): Declare new member
5277 function.
5278 * m2-lang.c (m2_language_data): Delete
5279 la_watch_location_expression initializer.
5280 * objc-lang.c (objc_language_data): Likewise.
5281 * opencl-lang.c (opencl_language_data): Likewise.
5282 * p-lang.c (pascal_language_data): Likewise.
5283 * rust-lang.c (rust_watch_location_expression): Rename to
5284 rust_language::watch_location_expression.
5285 (rust_language_data): Delete la_watch_location_expression
5286 initializer.
5287 (rust_language::watch_location_expression): New member function,
5288 implementation from rust_watch_location_expression.
5289
7e56227d
AB
52902020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5291
5292 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
5293 ada_language::collect_symbol_completion_matches.
5294 (ada_language_data): Delete la_collect_symbol_completion_matches
5295 initializer.
5296 (ada_language::collect_symbol_completion_matches): New member
5297 function, implementation from
5298 ada_collect_symbol_completion_matches.
5299 * c-lang.c (c_language_data): Delete
5300 la_collect_symbol_completion_matches initializer.
5301 (cplus_language_data): Likewise.
5302 (asm_language_data): Likewise.
5303 (minimal_language_data): Likewise.
5304 * d-lang.c (d_language_data): Likewise.
5305 * f-lang.c (f_collect_symbol_completion_matches): Rename to
5306 f_language::collect_symbol_completion_matches.
5307 (f_language_data): Delete la_collect_symbol_completion_matches
5308 initializer.
5309 (f_language::collect_symbol_completion_matches) New member
5310 function, implementation from f_collect_symbol_completion_matches.
5311 * go-lang.c (go_language_data): Delete
5312 la_collect_symbol_completion_matches initializer.
5313 * language.c (unknown_language_data): Likewise.
5314 (auto_language_data): Likewise.
5315 * language.h (language_data): Delete
5316 la_collect_symbol_completion_matches field.
5317 (language_defn::collect_symbol_completion_matches): New member
5318 function.
5319 * m2-lang.c (m2_language_data): Delete
5320 la_collect_symbol_completion_matches initializer.
5321 * objc-lang.c (objc_language_data): Likewise.
5322 * opencl-lang.c (opencl_language_data): Likewise.
5323 * p-lang.c (pascal_language_data): Likewise.
5324 * rust-lang.c (rust_language_data): Likewise.
5325 * symtab.c (default_collect_symbol_completion_matches): Delete.
5326 (collect_symbol_completion_matches): Update call to
5327 collect_symbol_completion_matches.
5328 (collect_symbol_completion_matches_type): Likewise.
5329 * symtab.h (default_collect_symbol_completion_matches): Delete
5330 declaration.
5331
53fc67f8
AB
53322020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5333
5334 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
5335 (ada_language_data): Delete la_word_break_characters initializer.
5336 (ada_language::word_break_characters): New member function.
5337 * c-lang.c (c_language_data): Delete la_word_break_characters
5338 initializer.
5339 (cplus_language_data): Likewise.
5340 (asm_language_data): Likewise.
5341 (minimal_language_data): Likewise.
5342 * completer.c: Update global comment.
5343 (advance_to_expression_complete_word_point): Update call to
5344 word_break_characters.
5345 (complete_files_symbols): Likewise.
5346 (complete_line_internal_1): Likewise.
5347 (default_completer_handle_brkchars): Likewise.
5348 (skip_quoted_chars): Likewise.
5349 * d-lang.c (d_language_data): Delete la_word_break_characters
5350 initializer.
5351 * f-lang.c (f_word_break_characters): Delete.
5352 (f_language_data): Delete la_word_break_characters initializer.
5353 (f_language::word_break_characters): New member function.
5354 * go-lang.c (go_language_data): Delete la_word_break_characters
5355 initializer.
5356 * language.c (unknown_language_data): Likewise.
5357 (auto_language_data): Likewise.
5358 * language.h (default_word_break_characters): Move declaration to
5359 earlier in the file.
5360 (language_data): Delete la_word_break_characters field.
5361 (language_defn::word_break_characters): New member function.
5362 * m2-lang.c (m2_language_data): Delete la_word_break_characters
5363 initializer.
5364 * objc-lang.c (objc_language_data): Likewise.
5365 * opencl-lang.c (opencl_language_data): Likewise.
5366 * p-lang.c (pascal_language_data): Likewise.
5367 * rust-lang.c (rust_language_data): Likewise.
5368
c9debfb9
AB
53692020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5370
5371 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
5372 (ada_language_data): Delete la_get_symbol_name_matcher
5373 initializer.
5374 (language_defn::get_symbol_name_matcher_inner): New member
5375 function.
5376 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
5377 initializer.
5378 (cplus_language_data): Likewise.
5379 (cplus_language::get_symbol_name_matcher_inner): New member
5380 function.
5381 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
5382 (minimal_language_data): Likewise.
5383 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
5384 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
5385 initializer.
5386 * dictionary.c (iter_match_first_hashed): Update call to
5387 get_symbol_name_matcher.
5388 (iter_match_next_hashed): Likewise.
5389 (iter_match_next_linear): Likewise.
5390 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
5391 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
5392 initializer.
5393 (f_language::get_symbol_name_matcher_inner): New member function.
5394 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
5395 initializer.
5396 * language.c (default_symbol_name_matcher): Update header comment,
5397 make static.
5398 (language_defn::get_symbol_name_matcher): New definition.
5399 (language_defn::get_symbol_name_matcher_inner): Likewise.
5400 (get_symbol_name_matcher): Delete.
5401 (unknown_language_data): Delete la_get_symbol_name_matcher
5402 initializer.
5403 (auto_language_data): Likewise.
5404 * language.h (language_data): Delete la_get_symbol_name_matcher
5405 field.
5406 (language_defn::get_symbol_name_matcher): New member function.
5407 (language_defn::get_symbol_name_matcher_inner): Likewise.
5408 (default_symbol_name_matcher): Delete declaration.
5409 * linespec.c (find_methods): Update call to
5410 get_symbol_name_matcher.
5411 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
5412 initializer.
5413 * minsyms.c (lookup_minimal_symbol): Update call to
5414 get_symbol_name_matcher.
5415 (iterate_over_minimal_symbols): Likewise.
5416 * objc-lang.c (objc_language_data): Delete
5417 la_get_symbol_name_matcher initializer.
5418 * opencl-lang.c (opencl_language_data): Likewise.
5419 * p-lang.c (pascal_language_data): Likewise.
5420 * psymtab.c (psymbol_name_matches): Update call to
5421 get_symbol_name_matcher.
5422 * rust-lang.c (rust_language_data): Delete
5423 la_get_symbol_name_matcher initializer.
5424 * symtab.c (symbol_matches_search_name): Update call to
5425 get_symbol_name_matcher.
5426 (compare_symbol_name): Likewise.
5427
9a49ad8c
AB
54282020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5429
5430 * ada-lang.c (ada_language_data): Delete la_compute_program
5431 initializer.
5432 * c-lang.c (c_language_data): Likewise.
5433 (c_language::compute_program): New member function.
5434 (cplus_language_data): Delete la_compute_program initializer.
5435 (cplus_language::compute_program): New member function.
5436 (asm_language_data): Delete la_compute_program initializer.
5437 (minimal_language_data): Likewise.
5438 * c-lang.h (c_compute_program): Update comment.
5439 (cplus_compute_program): Likewise.
5440 * compile/compile-c-support.c (c_compute_program): Likewise.
5441 (cplus_compute_program): Likewise.
5442 * compile/compile.c (compile_to_object): Update call to
5443 la_compute_program.
5444 * d-lang.c (d_language_data): Delete la_compute_program
5445 initializer.
5446 * f-lang.c (f_language_data): Likewise.
5447 * go-lang.c (go_language_data): Likewise.
5448 * language.c (unknown_language_data): Likewise.
5449 (auto_language_data): Likewise.
5450 * language.h (language_data): Delete la_compute_program field.
5451 (language_defn::compute_program): New member function.
5452 * m2-lang.c (m2_language_data): Delete la_compute_program
5453 initializer.
5454 * objc-lang.c (objc_language_data): Likewise.
5455 * opencl-lang.c (opencl_language_data): Likewise.
5456 * p-lang.c (pascal_language_data): Likewise.
5457 * rust-lang.c (rust_language_data): Likewise.
5458
eff93b4d
AB
54592020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5460
5461 * ada-lang.c (ada_language_data) Delete
5462 la_class_name_from_physname initializer.
5463 * c-lang.c (c_language_data): Likewise.
5464 (cplus_language_data): Likewise.
5465 (cplus_language::class_name_from_physname): New member function.
5466 (asm_language_data): Delete la_class_name_from_physname
5467 initializer.
5468 (minimal_language_data): Likewise.
5469 * d-lang.c (d_language_data): Likewise.
5470 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
5471 method on language_defn class.
5472 (guess_full_die_structure_name): Likewise.
5473 * f-lang.c (f_language_data): Delete la_class_name_from_physname
5474 initializer.
5475 * go-lang.c (go_language_data): Likewise.
5476 * language.c (language_class_name_from_physname): Delete.
5477 (unk_lang_class_name): Delete.
5478 (unknown_language_data): Delete la_class_name_from_physname
5479 initializer.
5480 (auto_language_data): Likewise.
5481 * language.h (language_data): Delete la_class_name_from_physname
5482 field.
5483 (language_defn::class_name_from_physname): New function.
5484 (language_class_name_from_physname): Delete declaration.
5485 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
5486 initializer.
5487 * objc-lang.c (objc_language_data): Likewise.
5488 * opencl-lang.c (opencl_language_data): Likewise.
5489 * p-lang.c (pascal_language_data): Likewise.
5490 * rust-lang.c (rust_language_data): Likewise.
5491
de543742
TT
54922020-06-16 Tom Tromey <tom@tromey.com>
5493
5494 * tui/tui-data.h (STATUS_NAME): New macro.
5495 * tui/tui-layout.c (tui_remove_some_windows)
5496 (initialize_known_windows, tui_register_window)
5497 (tui_layout_split::remove_windows, initialize_layouts)
5498 (tui_new_layout_command): Don't use hard-coded window names.
5499
a350efd4
TT
55002020-06-16 Tom Tromey <tom@tromey.com>
5501
5502 PR tui/25348:
5503 * tui/tui.c (tui_ensure_readline_initialized): Rename from
5504 tui_initialize_readline. Only run once. Call rl_initialize.
5505 * tui/tui.h (tui_ensure_readline_initialized): Rename from
5506 tui_initialize_readline.
5507 * tui/tui-io.c (tui_setup_io): Call
5508 tui_ensure_readline_initialized.
5509 * tui/tui-interp.c (tui_interp::init): Update.
5510
39ec0490
TT
55112020-06-16 Tom Tromey <tom@tromey.com>
5512
5513 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
5514 Also preserve the status window.
5515
d2d1ea20
TT
55162020-06-16 Tom Tromey <tom@tromey.com>
5517
5518 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
5519 where m_window==nullptr.
5520
66920317
TT
55212020-06-15 Tom Tromey <tromey@adacore.com>
5522
5523 * windows-nat.c (windows_nat::handle_output_debug_string):
5524 Update.
5525 (windows_nat::handle_ms_vc_exception): Update.
5526 * target.h (target_read_string): Change API.
5527 * target.c (target_read_string): Change API.
5528 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
5529 Update.
5530 * solib-frv.c (frv_current_sos): Update.
5531 * solib-dsbt.c (dsbt_current_sos): Update.
5532 * solib-darwin.c (darwin_current_sos): Update.
5533 * linux-thread-db.c (inferior_has_bug): Update.
5534 * expprint.c (print_subexp_standard): Update.
5535 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
5536 (ada_exception_message_1): Update.
5537
a5d871dd
TT
55382020-06-15 Tom Tromey <tromey@adacore.com>
5539
5540 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
5541
670e35fa
TT
55422020-06-15 Tom Tromey <tromey@adacore.com>
5543
5544 * valprint.c (read_string): Update comment.
5545 * target.c (MIN): Remove.
5546 (target_read_string): Rewrite.
5547
f5272a3b
TT
55482020-06-15 Tom Tromey <tromey@adacore.com>
5549
5550 * corefile.c (read_memory_string): Remove.
5551 * ada-valprint.c (ada_value_print_ptr): Update.
5552 * ada-lang.h (ada_tag_name): Change return type.
5553 * ada-lang.c (type_from_tag): Update.
5554 (ada_tag_name_from_tsd): Change return type. Use
5555 target_read_string.
5556 (ada_tag_name): Likewise.
5557 * gdbcore.h (read_memory_string): Don't declare.
5558
2c074f49
HD
55592020-06-14 Hannes Domani <ssbssa@yahoo.de>
5560
5561 * symtab.c (rbreak_command): Ignore Windows drive colon.
5562
6a17d503
SM
55632020-06-12 Simon Marchi <simon.marchi@efficios.com>
5564
5565 * NEWS: Mention removed GDBserver host support.
5566
453c733f
NC
55672020-06-12 Nelson Chu <nelson.chu@sifive.com>
5568
5569 * features/riscv/rebuild-csr-xml.sh: Updated.
5570
2b4e6a3f
TT
55712020-06-11 Tom Tromey <tom@tromey.com>
5572
5573 PR gdb/18318:
5574 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
5575
4412332f
JG
55762020-06-09 Jonny Grant <jg@jguk.org>
55772020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
5578
5579 * main.c (captured_main_1): Don't print new line after help.
5580 (print_gdb_help): add mailing list and IRC channel information
5581 to --help. Add new lines between items in the footer. Remove
5582 quotes around bug url.
5583
2f33032a
KS
55842020-06-11 Keith Seitz <keiths@redhat.com>
5585
5586 PR gdb/21356
5587 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
5588 Resolve typedefs for type length calculations.
5589
7ab96794
TV
55902020-06-10 Tom de Vries <tdevries@suse.de>
5591
5592 PR ada/24713
5593 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
5594 (write_psymbols): Enable .gdb_index for ada.
5595 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
5596 ada.
5597
e5f3ece2
TV
55982020-06-10 Tom de Vries <tdevries@suse.de>
5599
5600 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
5601 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
5602 namei" instead of "const char *name" argument.
5603 (dw2_map_matching_symbols): Use "offset_type namei" variant of
5604 dw2_symtab_iter_init.
5605
940da03e
SM
56062020-06-08 Simon Marchi <simon.marchi@efficios.com>
5607
5608 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
5609 to use type::field and field::type instead.
5610
b6cdac4b
SM
56112020-06-08 Simon Marchi <simon.marchi@efficios.com>
5612
5613 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
5614 to use field::type instead.
5615
5d14b6e5
SM
56162020-06-08 Simon Marchi <simon.marchi@efficios.com>
5617
5618 * gdbtypes.h (struct field) <type, set_type>: New methods.
5619 Rename `type` field to...
5620 <m_type>: ... this. Change references throughout to use type or
5621 set_type methods.
5622 (FIELD_TYPE): Use field::type. Change call sites that modify
5623 the field's type to use field::set_type instead.
5624
3d967001
SM
56252020-06-08 Simon Marchi <simon.marchi@efficios.com>
5626
5627 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
5628 to use type::index_type instead.
5629
262abc0d
SM
56302020-06-08 Simon Marchi <simon.marchi@efficios.com>
5631
5632 * gdbtypes.h (struct type) <index_type, set_index_type>: New
5633 methods.
5634 (TYPE_INDEX_TYPE): Use type::index_type.
5635 * gdbtypes.c (create_array_type_with_stride): Likewise.
5636
82836c92
TT
56372020-06-07 Tom Tromey <tom@tromey.com>
5638
5639 * valprint.c (generic_val_print_float): Remove "embedded_offset"
5640 parameter.
5641 (generic_value_print): Update.
5642
940dace9
AB
56432020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
5644
5645 Revert commit 982a38f60b0.
5646 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
5647
982a38f6
AB
56482020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
5649
5650 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
5651 avoid use after free.
5652
82f06518
TV
56532020-06-05 Tom de Vries <tdevries@suse.de>
5654
5655 * NEWS: Fix typos.
5656
f8c41851
SM
56572020-06-04 Simon Marchi <simon.marchi@efficios.com>
5658
5659 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
5660 the per_bfd object.
5661 (dwarf2_read_debug_names): Likewise.
5662 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
5663 object when re-using a per_bfd object with an index.
5664
f9b5d5ea
TV
56652020-06-03 Tom de Vries <tdevries@suse.de>
5666
5667 PR symtab/26046
5668 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
5669 children for C++.
5670 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
5671 DW_TAG_subprogram.
5672
f6eee2d0
AB
56732020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5674
5675 * ada-lang.c (ada_language_data): Delete skip_trampoline
5676 initializer.
5677 * c-lang.c (c_language_data): Likewise.
5678 (cplus_language_data): Likewise.
5679 (cplus_language::skip_trampoline): New member function.
5680 (asm_language_data): Delete skip_trampoline initializer.
5681 (minimal_language_data): Likewise.
5682 * d-lang.c (d_language_data): Likewise.
5683 * f-lang.c (f_language_data): Likewise.
5684 * go-lang.c (go_language_data): Likewise.
5685 * language.c (unk_lang_trampoline): Delete function.
5686 (skip_language_trampoline): Update.
5687 (unknown_language_data): Delete skip_trampoline initializer.
5688 (auto_language_data): Likewise.
5689 * language.h (language_data): Delete skip_trampoline field.
5690 (language_defn::skip_trampoline): New function.
5691 * m2-lang.c (m2_language_data): Delete skip_trampoline
5692 initializer.
5693 * objc-lang.c (objc_skip_trampoline): Delete function, move
5694 implementation to objc_language::skip_trampoline.
5695 (objc_language_data): Delete skip_trampoline initializer.
5696 (objc_language::skip_trampoline): New member function with
5697 implementation from objc_skip_trampoline.
5698 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
5699 initializer.
5700 * p-lang.c (pascal_language_data): Likewise.
5701 * rust-lang.c (rust_language_data): Likewise.
5702
0a50df5d
AB
57032020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5704
5705 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
5706 (ada_language::demangle): New member function.
5707 * c-lang.c (c_language_data): Delete la_demangle initializer.
5708 (cplus_language_data): Delete la_demangle initializer.
5709 (cplus_language::demangle): New member function.
5710 (asm_language_data): Delete la_demangle initializer.
5711 (minimal_language_data): Delete la_demangle initializer.
5712 * d-lang.c (d_language_data): Delete la_demangle initializer.
5713 (d_language::demangle): New member function.
5714 * f-lang.c (f_language_data): Delete la_demangle initializer.
5715 (f_language::demangle): New member function.
5716 * go-lang.c (go_language_data): Delete la_demangle initializer.
5717 (go_language::demangle): New member function.
5718 * language.c (language_demangle): Update.
5719 (unk_lang_demangle): Delete.
5720 (unknown_language_data): Delete la_demangle initializer.
5721 (unknown_language::demangle): New member function.
5722 (auto_language_data): Delete la_demangle initializer.
5723 (auto_language::demangle): New member function.
5724 * language.h (language_data): Delete la_demangle field.
5725 (language_defn::demangle): New function.
5726 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
5727 * objc-lang.c (objc_language_data): Delete la_demangle
5728 initializer.
5729 (objc_language::demangle): New member function.
5730 * opencl-lang.c (opencl_language_data): Delete la_demangle
5731 initializer.
5732 * p-lang.c (pascal_language_data): Likewise.
5733 * rust-lang.c (rust_language_data): Likewise.
5734 (rust_language::demangle): New member function.
5735
fbfb0a46
AB
57362020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5737
5738 * ada-lang.c (ada_language_data): Delete la_print_type
5739 initializer.
5740 (ada_language::print_type): New member function.
5741 * c-lang.c (c_language_data): Delete la_print_type initializer.
5742 (c_language::print_type): New member function.
5743 (cplus_language_data): Delete la_print_type initializer.
5744 (cplus_language::print_type): New member function.
5745 (asm_language_data): Delete la_print_type initializer.
5746 (asm_language::print_type): New member function.
5747 (minimal_language_data): Delete la_print_type initializer.
5748 (minimal_language::print_type): New member function.
5749 * d-lang.c (d_language_data): Delete la_print_type initializer.
5750 (d_language::print_type): New member function.
5751 * f-lang.c (f_language_data): Delete la_print_type initializer.
5752 (f_language::print_type): New member function.
5753 * go-lang.c (go_language_data): Delete la_print_type initializer.
5754 (go_language::print_type): New member function.
5755 * language.c (unk_lang_print_type): Delete.
5756 (unknown_language_data): Delete la_print_type initializer.
5757 (unknown_language::print_type): New member function.
5758 (auto_language_data): Delete la_print_type initializer.
5759 (auto_language::print_type): New member function.
5760 * language.h (language_data): Delete la_print_type field.
5761 (language_defn::print_type): New function.
5762 (LA_PRINT_TYPE): Update.
5763 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
5764 (m2_language::print_type): New member function.
5765 * objc-lang.c (objc_language_data): Delete la_print_type
5766 initializer.
5767 (objc_language::print_type): New member function.
5768 * opencl-lang.c (opencl_print_type): Delete, implementation moved
5769 to opencl_language::print_type.
5770 (opencl_language_data): Delete la_print_type initializer.
5771 (opencl_language::print_type): New member function, implementation
5772 from opencl_print_type.
5773 * p-lang.c (pascal_language_data): Delete la_print_type
5774 initializer.
5775 (pascal_language::print_type): New member function.
5776 * rust-lang.c (rust_print_type): Delete, implementation moved to
5777 rust_language::print_type.
5778 (rust_language_data): Delete la_print_type initializer.
5779 (rust_language::print_type): New member function, implementation
5780 from rust_print_type.
5781
6f827019
AB
57822020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5783
5784 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
5785 implementation moves to...
5786 (ada_language::sniff_from_mangled_name): ...here. Update return
5787 type.
5788 (ada_language_data): Delete la_sniff_from_mangled_name
5789 initializer.
5790 * c-lang.c (c_language_data): Likewise.
5791 (cplus_language_data): Likewise.
5792 (cplus_language::sniff_from_mangled_name): New member function,
5793 implementation taken from gdb_sniff_from_mangled_name.
5794 (asm_language_data): Delete la_sniff_from_mangled_name
5795 initializer.
5796 (minimal_language_data): Likewise.
5797 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
5798 implementation moves to cplus_language::sniff_from_mangled_name.
5799 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
5800 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
5801 moves to...
5802 (d_language::sniff_from_mangled_name): ...here.
5803 (d_language_data): Delete la_sniff_from_mangled_name initializer.
5804 * f-lang.c (f_language_data): Likewise.
5805 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
5806 moves to...
5807 (go_language::sniff_from_mangled_name): ...here.
5808 (go_language_data): Delete la_sniff_from_mangled_name initializer.
5809 * language.c (language_sniff_from_mangled_name): Delete.
5810 (unknown_language_data): Delete la_sniff_from_mangled_name
5811 initializer.
5812 (auto_language_data): Likewise.
5813 * language.h (language_data): Delete la_sniff_from_mangled_name
5814 field.
5815 (language_defn::sniff_from_mangled_name): New function.
5816 (language_sniff_from_mangled_name): Delete declaration.
5817 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
5818 field.
5819 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
5820 implementation moves to...
5821 (objc_language::sniff_from_mangled_name): ...here.
5822 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
5823 * opencl-lang.c (opencl_language_data): Likewise.
5824 * p-lang.c (pascal_language_data): Likewise.
5825 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
5826 implementation moves to...
5827 (rust_language::sniff_from_mangled_name): ...here.
5828 (rust_language_data): Delete la_sniff_from_mangled_name
5829 initializer.
5830 * symtab.c (symbol_find_demangled_name): Call
5831 sniff_from_mangled_name member function.
5832
fb8006fd
AB
58332020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5834
5835 * ada-lang.c (ada_language_data): Delete la_search_name_hash
5836 initializer.
5837 * c-lang.c (c_language_data): Likewise.
5838 (cplus_language_data): Likewise.
5839 (cplus_language::search_name_hash): New member function.
5840 (asm_language_data): Delete la_search_name_hash initializer.
5841 (minimal_language_data): Likewise.
5842 * d-lang.c (d_language_data): Likewise.
5843 * dictionary.c (default_search_name_hash): Rename to...
5844 (language_defn::search_name_hash): ...this.
5845 * f-lang.c (f_language_data): Likewise.
5846 (f_language::search_name_hash): New member function.
5847 * go-lang.c (go_language_data): Delete la_search_name_hash
5848 initializer.
5849 * language.c (unknown_language_data): Likewise.
5850 (auto_language_data): Likewise.
5851 * language.h (struct language_data): Delete la_search_name_hash
5852 field.
5853 (language_defn::search_name_hash): Declare new member function.
5854 (default_search_name_hash): Delete declaration.
5855 * m2-lang.c (m2_language_data): Delete la_search_name_hash
5856 initializer.
5857 * objc-lang.c (objc_language_data): Likewise.
5858 * opencl-lang.c (opencl_language_data): Likewise.
5859 * p-lang.c (pascal_language_data): Likewise.
5860 * rust-lang.c (rust_language_data): Likewise.
5861 * symtab.c (search_name_hash): Update call.
5862
8e25bafe
AB
58632020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5864
5865 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
5866 initializer.
5867 * c-lang.c (class compile_instance): Declare.
5868 (c_language_data): Delete la_get_compile_instance initializer.
5869 (c_language::get_compile_instance): New member function.
5870 (cplus_language_data): Delete la_get_compile_instance initializer.
5871 (cplus_language::get_compile_instance): New member function.
5872 (asm_language_data): Delete la_get_compile_instance initializer.
5873 (minimal_language_data): Likewise.
5874 * c-lang.h (c_get_compile_context): Update comment.
5875 (cplus_get_compile_context): Update comment.
5876 * compile/compile.c (compile_to_object): Update calls, don't rely
5877 on function pointer being NULL.
5878 * d-lang.c (d_language_data): Delete la_get_compile_instance
5879 initializer.
5880 * f-lang.c (f_language_data): Likewise.
5881 * go-lang.c (go_language_data): Likewise.
5882 * language.c (unknown_language_data): Likewise.
5883 (auto_language_data): Likewise.
5884 * language.h (language_data): Delete la_get_compile_instance field.
5885 (language_defn::get_compile_instance): New member function.
5886 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
5887 initializer.
5888 * objc-lang.c (objc_language_data): Likewise.
5889 * opencl-lang.c (opencl_language_data): Likewise.
5890 * p-lang.c (pascal_language_data): Likewise.
5891 * rust-lang.c (rust_language_data): Likewise.
5892
4009ee92
AB
58932020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5894
5895 * ada-lang.c (ada_add_all_symbols): Update comment.
5896 (ada_iterate_over_symbols): Delete, move implementation to...
5897 (ada_language::iterate_over_symbols): ...here, a new member
5898 function, rewrite to use range based for loop.
5899 (ada_language_data): Delete la_iterate_over_symbols initializer.
5900 * c-lang.c (c_language_data): Likewise.
5901 (cplus_language_data): Likewise.
5902 (asm_language_data): Likewise.
5903 (minimal_language_data): Likewise.
5904 * d-lang.c (d_language_data): Likewise.
5905 * f-lang.c (f_language_data): Likewise.
5906 * go-lang.c (go_language_data): Likewise.
5907 * language.c (unknown_language_data): Likewise.
5908 (auto_language_data): Likewise.
5909 * language.h (language_data): Delete la_iterate_over_symbols field.
5910 (language_defn::iterate_over_symbols): New member function.
5911 (LA_ITERATE_OVER_SYMBOLS): Update.
5912 * linespec.c (iterate_over_all_matching_symtabs): Update.
5913 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
5914 initializer.
5915 * objc-lang.c (objc_language_data): Likewise.
5916 * opencl-lang.c (opencl_language_data): Likewise.
5917 * p-lang.c (pascal_language_data): Likewise.
5918 * rust-lang.c (rust_language_data): Likewise.
5919
54f4ca46
AB
59202020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5921
5922 * ada-lang.c (ada_language_data): Delete
5923 la_lookup_transparent_type initializer.
5924 * c-lang.c (c_language_data): Likewise.
5925 (cplus_language_data): Likewise.
5926 (cplus_language::lookup_transparent_type): New member function.
5927 (asm_language_data): Delete la_lookup_transparent_type
5928 initializer.
5929 (minimal_language_data): Likewise.
5930 * d-lang.c (d_language_data): Likewise.
5931 * f-lang.c (f_language_data): Likewise.
5932 * go-lang.c (go_language_data): Likewise.
5933 * language.c (unknown_language_data): Likewise.
5934 (auto_language_data): Likewise.
5935 * language.h (struct language_data): Delete
5936 la_lookup_transparent_type field.
5937 (language_defn::lookup_transparent_type): New member function.
5938 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
5939 initializer.
5940 * objc-lang.c (objc_language_data): Likewise.
5941 * opencl-lang.c (opencl_language_data): Likewise.
5942 * p-lang.c (pascal_language_data): Likewise.
5943 * rust-lang.c (rust_language_data): Likewise.
5944 * symtab.c (symbol_matches_domain): Update call.
5945
1fb314aa
AB
59462020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5947
5948 * ada-lang.c (ada_language_arch_info): Delete function, move
5949 implementation to...
5950 (ada_language::language_arch_info): ...here, a new member
5951 function.
5952 (ada_language_data): Delete la_language_arch_info.
5953 * c-lang.c (c_language_data): Likewise.
5954 (c_language::language_arch_info): New member function.
5955 (cplus_language_arch_info): Delete function, move
5956 implementation to...
5957 (cplus_language::language_arch_info): ...here, a new member
5958 function.
5959 (cplus_language_data): Delete la_language_arch_info.
5960 (asm_language_data): Likewise.
5961 (asm_language::language_arch_info): New member function.
5962 (minimal_language_data): Delete la_language_arch_info.
5963 (minimal_language::language_arch_info): New member function.
5964 * d-lang.c (d_language_arch_info): Delete function, move
5965 implementation to...
5966 (d_language::language_arch_info): ...here, a new member
5967 function.
5968 (d_language_data): Delete la_language_arch_info.
5969 * f-lang.c (f_language_arch_info): Delete function, move
5970 implementation to...
5971 (f_language::language_arch_info): ...here, a new member
5972 function.
5973 (f_language_data): Delete la_language_arch_info.
5974 * go-lang.c (go_language_arch_info): Delete function, move
5975 implementation to...
5976 (go_language::language_arch_info): ...here, a new member
5977 function.
5978 (go_language_data): Delete la_language_arch_info.
5979 * language.c (unknown_language_data): Likewise.
5980 (unknown_language::language_arch_info): New member function.
5981 (auto_language_data): Delete la_language_arch_info.
5982 (auto_language::language_arch_info): New member function.
5983 (language_gdbarch_post_init): Update call to
5984 la_language_arch_info.
5985 * language.h (language_data): Delete la_language_arch_info
5986 function pointer.
5987 (language_defn::language_arch_info): New function.
5988 * m2-lang.c (m2_language_arch_info): Delete function, move
5989 implementation to...
5990 (m2_language::language_arch_info): ...here, a new member
5991 function.
5992 (m2_language_data): Delete la_language_arch_info.
5993 * objc-lang.c (objc_language_arch_info): Delete function, move
5994 implementation to...
5995 (objc_language::language_arch_info): ...here, a new member
5996 function.
5997 (objc_language_data): Delete la_language_arch_info.
5998 * opencl-lang.c (opencl_language_arch_info): Delete function, move
5999 implementation to...
6000 (opencl_language::language_arch_info): ...here, a new member
6001 function.
6002 (opencl_language_data): Delete la_language_arch_info.
6003 * p-lang.c (pascal_language_arch_info): Delete function, move
6004 implementation to...
6005 (pascal_language::language_arch_info): ...here, a new member
6006 function.
6007 (pascal_language_data): Delete la_language_arch_info.
6008 * rust-lang.c (rust_language_arch_info): Delete function, move
6009 implementation to...
6010 (rust_language::language_arch_info): ...here, a new member
6011 function.
6012 (rust_language_data): Delete la_language_arch_info.
6013
48448202
AB
60142020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6015
6016 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
6017 initializer.
6018 * c-lang.c (c_language_data): Likewise.
6019 (cplus_language_data): Likewise.
6020 (cplus_language::pass_by_reference_info): New method.
6021 (asm_language_data): Delete la_pass_by_reference initializer.
6022 (minimal_language_data): Likewise.
6023 * cp-abi.c (cp_pass_by_reference): Remove use of
6024 default_pass_by_reference.
6025 * d-lang.c (d_language_data): Likewise.
6026 * f-lang.c (f_language_data): Likewise.
6027 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
6028 default_pass_by_reference.
6029 * go-lang.c (go_language_data): Likewise.
6030 * language.c (language_pass_by_reference): Update.
6031 (default_pass_by_reference): Delete.
6032 (unknown_language_data): Delete la_pass_by_reference
6033 initializer.
6034 (auto_language_data): Likewise.
6035 * language.h (struct language_data): Delete la_pass_by_reference
6036 field.
6037 (language_defn::pass_by_reference_info): New member function.
6038 (default_pass_by_reference): Delete declaration.
6039 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
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
15e5fd35
AB
60462020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6047
6048 * ada-lang.c (ada_read_var_value): Delete function, move
6049 implementation to...
6050 (ada_language::read_var_value): ...here.
6051 (ada_language_data): Delete la_read_var_value initializer.
6052 * c-lang.c (c_language_data): Likewise.
6053 (cplus_language_data): Likewise.
6054 (minimal_language_data): Likewise.
6055 * d-lang.c (d_language_data): Likewise.
6056 * f-lang.c (f_language_data): Likewise.
6057 * findvar.c (default_read_var_value): Rename to...
6058 (language_defn::read_var_value): ...this.
6059 * findvar.c (read_var_value): Update header comment, and change to
6060 call member function instead of function pointer.
6061 * go-lang.c (go_language_data): Likewise.
6062 * language.c (unknown_language_data): Delete la_read_var_value
6063 initializer.
6064 (auto_language_data): Likewise.
6065 * language.h (struct language_data): Delete la_read_var_value
6066 field.
6067 (language_defn::read_var_value): New member function.
6068 (default_read_var_value): Delete declaration.
6069 * m2-lang.c (m2_language_data): Delete la_read_var_value
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 * value.h (default_read_var_value): Delete declaration.
6076
5bd40f2a
AB
60772020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6078
6079 * ada-lang.c (ada_print_array_index): Delete function, move
6080 implementation to...
6081 (ada_language::print_array_index): ...here.
6082 (ada_language_data): Delete la_print_array_index initializer.
6083 * c-lang.c (c_language_data): Likewise.
6084 (cplus_language_data): Likewise.
6085 (minimal_language_data): Likewise.
6086 * d-lang.c (d_language_data): Likewise.
6087 * f-lang.c (f_language_data): Likewise.
6088 * go-lang.c (go_language_data): Likewise.
6089 * language.c (default_print_array_index): Delete function, move
6090 implementation to...
6091 (language_defn::print_array_index): ...here.
6092 (unknown_language_data): Delete la_print_array_index initializer.
6093 (auto_language_data): Likewise.
6094 * language.h (struct language_data): Delete la_print_array_index
6095 field.
6096 (language_defn::print_array_index): New member function.
6097 (LA_PRINT_ARRAY_INDEX): Update.
6098 (default_print_array_index): Delete declaration.
6099 * m2-lang.c (m2_language_data): Delete la_print_array_index
6100 initializer.
6101 * objc-lang.c (objc_language_data): Likewise.
6102 * opencl-lang.c (opencl_language_data): Likewise.
6103 * p-lang.c (pascal_language_data): Likewise.
6104 * rust-lang.c (rust_language_data): Likewise.
6105
0874fd07
AB
61062020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6107
6108 * gdb/ada-lang.c (ada_language_defn): Convert to...
6109 (ada_language_data): ...this.
6110 (class ada_language): New class.
6111 (ada_language_defn): New static global.
6112 * gdb/c-lang.c (c_language_defn): Convert to...
6113 (c_language_data): ...this.
6114 (class c_language): New class.
6115 (c_language_defn): New static global.
6116 (cplus_language_defn): Convert to...
6117 (cplus_language_data): ...this.
6118 (class cplus_language): New class.
6119 (cplus_language_defn): New static global.
6120 (asm_language_defn): Convert to...
6121 (asm_language_data): ...this.
6122 (class asm_language): New class.
6123 (asm_language_defn): New static global.
6124 (minimal_language_defn): Convert to...
6125 (minimal_language_data): ...this.
6126 (class minimal_language): New class.
6127 (minimal_language_defn): New static global.
6128 * gdb/d-lang.c (d_language_defn): Convert to...
6129 (d_language_data): ...this.
6130 (class d_language): New class.
6131 (d_language_defn): New static global.
6132 * gdb/f-lang.c (f_language_defn): Convert to...
6133 (f_language_data): ...this.
6134 (class f_language): New class.
6135 (f_language_defn): New static global.
6136 * gdb/go-lang.c (go_language_defn): Convert to...
6137 (go_language_data): ...this.
6138 (class go_language): New class.
6139 (go_language_defn): New static global.
6140 * gdb/language.c (unknown_language_defn): Remove declaration.
6141 (current_language): Initialize to nullptr, real initialization is
6142 moved to _initialize_language.
6143 (languages): Delete global.
6144 (language_defn::languages): Define.
6145 (set_language_command): Use language_defn::languages.
6146 (set_language): Likewise.
6147 (range_error): Likewise.
6148 (language_enum): Likewise.
6149 (language_def): Likewise.
6150 (add_set_language_command): Use language_def::languages for the
6151 language list, and language_def to lookup language pointers.
6152 (skip_language_trampoline): Use language_defn::languages.
6153 (unknown_language_defn): Convert to...
6154 (unknown_language_data): ...this.
6155 (class unknown_language): New class.
6156 (unknown_language_defn): New static global.
6157 (auto_language_defn): Convert to...
6158 (auto_language_data): ...this.
6159 (class auto_language): New class.
6160 (auto_language_defn): New static global.
6161 (language_gdbarch_post_init): Use language_defn::languages.
6162 (_initialize_language): Initialize current_language.
6163 * gdb/language.h (struct language_defn): Rename to...
6164 (struct language_data): ...this.
6165 (struct language_defn): New.
6166 (auto_language_defn): Delete.
6167 (unknown_language_defn): Delete.
6168 (minimal_language_defn): Delete.
6169 (ada_language_defn): Delete.
6170 (asm_language_defn): Delete.
6171 (c_language_defn): Delete.
6172 (cplus_language_defn): Delete.
6173 (d_language_defn): Delete.
6174 (f_language_defn): Delete.
6175 (go_language_defn): Delete.
6176 (m2_language_defn): Delete.
6177 (objc_language_defn): Delete.
6178 (opencl_language_defn): Delete.
6179 (pascal_language_defn): Delete.
6180 (rust_language_defn): Delete.
6181 * gdb/m2-lang.c (m2_language_defn): Convert to...
6182 (m2_language_data): ...this.
6183 (class m2_language): New class.
6184 (m2_language_defn): New static global.
6185 * gdb/objc-lang.c (objc_language_defn): Convert to...
6186 (objc_language_data): ...this.
6187 (class objc_language): New class.
6188 (objc_language_defn): New static global.
6189 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
6190 (opencl_language_data): ...this.
6191 (class opencl_language): New class.
6192 (opencl_language_defn): New static global.
6193 * gdb/p-lang.c (pascal_language_defn): Convert to...
6194 (pascal_language_data): ...this.
6195 (class pascal_language): New class.
6196 (pascal_language_defn): New static global.
6197 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
6198 language pointer, update comment format.
6199 * gdb/rust-lang.c (rust_language_defn): Convert to...
6200 (rust_language_data): ...this.
6201 (class rust_language): New class.
6202 (rust_language_defn): New static global.
6203
1313c56e
AB
62042020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
6205
6206 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
6207 member variable.
6208 <m_stmt_at_address>: New member variable.
6209 (lnp_state_machine::record_line): Don't record some lines, update
6210 tracking of is_stmt at the same address.
6211 (lnp_state_machine::lnp_state_machine): Initialise new member
6212 variables.
6213
b7ed9f3d
ST
62142020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
6215
6216 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
6217 "-include gnu-nat-mig.h".
6218 * gnu-nat-mig.h: New file.
6219 * gnu-nat.c: Include "gnu-nat-mig.h".
6220 (exc_server, msg_reply_server, notify_server,
6221 process_reply_server): Remove declarations.
6222
14a8ad62
ST
62232020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6224
6225 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
6226 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
6227 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
6228 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
6229 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
6230 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
6231 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
6232 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
6233 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
6234 to gnu_nat_target class.
6235 * gnu-nat.c: Likewise.
6236 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
6237 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
6238 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
6239 object.
6240 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
6241 instead of `gnu_target'.
6242
0af5e106
ST
62432020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6244
6245 * i386-gnu-tdep.c: Include "gdbcore.h"
6246 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
6247 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
6248 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
6249 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
6250 i386_gnu_sigcontext_addr): New functions
6251 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
6252 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
6253 tdep.
6254
078f2fc9
ST
62552020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6256
6257 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
6258 before fork_inferior call. Avoid calling it if target_is_pushed returns
6259 true.
6260
53dff92c
ST
62612020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6262
6263 * gnu-nat.h (gnu_target): New variable declaration.
6264 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
6265 gnu_target.
6266 * gnu-nat.c (gnu_target): New variable.
6267 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
6268 add_thread_silent, and add_thread calls.
6269 (gnu_nat_target::create_inferior): Pass gnu_target to
6270 add_thread_silent, thread_change_ptid call.
6271 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
6272 call.
6273
5a8b8627
ST
62742020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6275
6276 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
6277 (gnu_nat_target::find_memory_regions): Remove unused
6278 `old_address' variable.
6279
366f550a
ST
62802020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6281
6282 * gnu-nat.c: Include "gdbarch.h".
6283
f14871bf
ST
62842020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6285
6286 * reply_mig_hack.awk (Error return): Cast function through
6287 void *, to bypass compiler function call check.
6288
c6887cfb
ST
62892020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6290
6291 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
6292 $(srcdir)/reply_mig_hack.awk.
6293
6930bffe
ST
62942020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6295
6296 * gnu-nat.h (gnu_debug_flag): Set type to bool.
6297
112c22ed
JG
62982020-05-30 Jonny Grant <jg@jguk.org>
6299
6300 * configure.ac (ACX_BUGURL): change bug URL to https.
6301
f68f85b5
PA
63022020-05-30 Pedro Alves <palves@redhat.com>
6303
6304 * cp-support.c (replace_typedefs_template): New.
6305 (replace_typedefs_qualified_name): Handle
6306 DEMANGLE_COMPONENT_TEMPLATE.
6307
976ca316
SM
63082020-05-29 Simon Marchi <simon.marchi@efficios.com>
6309
6310 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
6311 dwarf2/index-cache.h, dwarf2/index-write.c,
6312 dwarf2/index-write.h, dwarf2/line-header.c,
6313 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
6314 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
6315 variables and fields from `dwarf2_per_objfile` to just
6316 `per_objfile` throughout.
6317
989ade05
SM
63182020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
6319
6320 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6321 <push_dwarf_reg_entry_value>: Add comment.
6322
c47bae85
KB
63232020-05-28 Kevin Buettner <kevinb@redhat.com>
6324 Keith Seitz <keiths@redhat.com>
6325
6326 * python/python.c (do_start_initialization): Call PyEval_SaveThread
6327 instead of PyEval_ReleaseLock.
6328 (class gdbpy_gil): Move to earlier in file.
6329 (finalize_python): Set gdb_python_initialized.
6330 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
6331 when not initialized.
6332
44486dcf
SM
63332020-05-28 Simon Marchi <simon.marchi@efficios.com>
6334
6335 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6336 <push_dwarf_reg_entry_value>: Remove assert. Override
6337 per_objfile with caller_per_objfile.
6338
f030440d
TV
63392020-05-28 Tom de Vries <tdevries@suse.de>
6340
6341 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
6342 PR gold/15646 workaround to symbol kind "type".
6343
f0fbb768
TT
63442020-05-27 Tom Tromey <tromey@adacore.com>
6345
6346 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
6347
af0b2a3e
TT
63482020-05-27 Tom Tromey <tromey@adacore.com>
6349
6350 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
6351 Use htab_find_with_hash.
6352 <add_abbrev>: Remove "abbrev_number" parameter.
6353 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
6354 "abbrev_number" parameter. Use htab_find_slot_with_hash.
6355 (hash_abbrev): Add comment.
6356 (abbrev_table::lookup_abbrev): Move to header file.
6357 (abbrev_table::read): Update.
6358
7d00ffec
TT
63592020-05-27 Tom Tromey <tromey@adacore.com>
6360
6361 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
6362 method.
6363 <canonical_name>: New member.
6364 <raw_name>: Rename from "name".
6365 (partial_die_info): Initialize canonical_name.
6366 (scan_partial_symbols): Check raw_name.
6367 (partial_die_parent_scope, partial_die_full_name)
6368 (add_partial_symbol, add_partial_subprogram)
6369 (add_partial_enumeration, load_partial_dies): Use "name" method.
6370 (partial_die_info::name): New method.
6371 (partial_die_info::read, guess_partial_die_structure_name)
6372 (partial_die_info::fixup): Update.
6373
697bba18
TT
63742020-05-27 Tom Tromey <tromey@adacore.com>
6375
6376 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
6377 <get_ref_die_offset>: Inline.
6378 <get_ref_die_offset_complaint>: New method.
6379 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
6380 (attribute::get_ref_die_offset_complaint): Rename from
6381 get_ref_die_offset. Just issue complaint.
6382
c17ace43
HD
63832020-05-27 Hannes Domani <ssbssa@yahoo.de>
6384
6385 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
6386
96445f0b
HD
63872020-05-27 Hannes Domani <ssbssa@yahoo.de>
6388
6389 * exec.c (exec_file_attach): Use errno value of first openp failure.
6390
ac637ec3
HD
63912020-05-27 Hannes Domani <ssbssa@yahoo.de>
6392
6393 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
6394 Don't close thread handle.
6395
17ee85fc
TT
63962020-05-27 Tom Tromey <tom@tromey.com>
6397 Simon Marchi <simon.marchi@efficios.com>
6398
6399 * objfiles.h (struct objfile) <partial_symtabs>: Now a
6400 shared_ptr.
6401 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
6402 member.
6403 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
6404 dwarf2_per_bfd_objfile_data_key>: New globals.
6405 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
6406 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
6407 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
6408 shared.
6409 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
6410 short-circuit when sharing.
6411 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
6412 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
6413
39b16f87
SM
64142020-05-27 Simon Marchi <simon.marchi@efficios.com>
6415
6416 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
6417 to...
6418 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
6419 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
6420
fcf23d5b
SM
64212020-05-27 Simon Marchi <simon.marchi@efficios.com>
6422
6423 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
6424 build_name_components, find_name_components_bounds>:
6425 Add per_objfile parameter.
6426 (struct mapped_index) <symbol_name_at>: Likewise.
6427 (struct mapped_debug_names): Remove constructor.
6428 <dwarf2_per_objfile>: Remove field.
6429 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
6430 (mapped_index_base::find_name_components_bounds,
6431 mapped_index_base::build_name_components,
6432 dw2_expand_symtabs_matching_symbol): Likewise.
6433 (class mock_mapped_index) <symbol_name_at>: Likewise.
6434 (check_match): Likewise.
6435 (check_find_bounds_finds): Likewise.
6436 (test_mapped_index_find_name_component_bounds): Update.
6437 (CHECK_MATCH): Update.
6438 (dw2_expand_symtabs_matching): Update.
6439 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
6440 per_objfile parameter.
6441 <find_vec_in_debug_names>: Likewise.
6442 <m_per_objfile>: New field.
6443 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
6444 parameter.
6445 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
6446 (dw2_debug_names_iterator::next): Update.
6447 (dw2_debug_names_lookup_symbol): Update.
6448 (dw2_debug_names_expand_symtabs_for_function): Update.
6449 (dw2_debug_names_map_matching_symbols): Update.
6450 (dw2_debug_names_expand_symtabs_matching): Update.
6451 (dwarf2_read_debug_names): Update.
6452
7188ed02
SM
64532020-05-27 Simon Marchi <simon.marchi@efficios.com>
6454
6455 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
6456 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
6457 move to dwarf2_per_objfile.
6458 <read_in_chain>: Remove.
6459 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
6460 remove_all_cus, age_comp_units>: New methods.
6461 <m_dwarf2_cus>: New member.
6462 (struct dwarf2_per_cu_data) <cu>: Remove.
6463 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
6464 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
6465 moved to methods of dwarf2_per_objfile.
6466 (dwarf2_clear_marks): Remove.
6467 (dwarf2_queue_item::~dwarf2_queue_item): Update.
6468 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
6469 (dwarf2_per_bfd::free_cached_comp_units): Remove.
6470 (dwarf2_per_objfile::remove_all_cus): New.
6471 (class free_cached_comp_units) <~free_cached_comp_units>:
6472 Update.
6473 (load_cu): Update.
6474 (dw2_do_instantiate_symtab): Adjust.
6475 (fill_in_sig_entry_from_dwo_entry): Adjust.
6476 (cutu_reader::init_tu_and_read_dwo_dies): Update.
6477 (cutu_reader::cutu_reader): Likewise.
6478 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
6479 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
6480 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
6481 and dwarf2_per_objfile::age_comp_units.
6482 (load_partial_comp_unit): Update.
6483 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
6484 (process_queue): Likewise.
6485 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
6486 backlink.
6487 (dwarf2_read_addr_index): Likewise.
6488 (follow_die_offset): Likewise.
6489 (dwarf2_fetch_die_loc_sect_off): Likewise.
6490 (dwarf2_fetch_constant_bytes): Likewise.
6491 (dwarf2_fetch_die_type_sect_off): Likewise.
6492 (follow_die_sig_1): Likewise.
6493 (load_full_type_unit): Likewise.
6494 (read_signatured_type): Likewise.
6495 (dwarf2_cu::dwarf2_cu): Don't set cu field.
6496 (dwarf2_cu::~dwarf2_cu): Remove.
6497 (dwarf2_per_objfile::get_cu): New.
6498 (dwarf2_per_objfile::set_cu): New.
6499 (age_cached_comp_units): Rename to...
6500 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
6501 to std::unordered_map.
6502 (free_one_cached_comp_unit): Rename to...
6503 (dwarf2_per_objfile::remove_cu): ... this. Adjust
6504 to std::unordered_map.
6505 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
6506 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
6507 a dwarf2_per_objfile in data.
6508 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
6509 (dwarf2_clear_marks): Remove.
6510
2e671100
SM
65112020-05-27 Simon Marchi <simon.marchi@efficios.com>
6512
6513 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
6514 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
6515 (init_tu_and_read_dwo_dies): Likewise.
6516 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
6517 (cutu_reader::cutu_reader): Likewise.
6518 (load_partial_comp_unit): Likewise.
6519 (process_psymtab_comp_unit): Update.
6520 (build_type_psymtabs_1): Update.
6521 (process_skeletonless_type_unit): Update.
6522 (load_full_comp_unit): Update.
6523 (find_partial_die): Update.
6524 (dwarf2_read_addr_index): Update.
6525 (read_signatured_type): Update.
6526
2e6a9f79
SM
65272020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6528
6529 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
6530 m_header_read_in>: New fields.
6531 <get_header>: New method.
6532 * dwarf2/read.c (per_cu_header_read_in): Remove.
6533 (dwarf2_per_cu_data::get_header): New.
6534 (dwarf2_per_cu_data::addr_size): Update.
6535 (dwarf2_per_cu_data::offset_size): Update.
6536 (dwarf2_per_cu_data::ref_addr_size): Update.
6537
1b555f17
SM
65382020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6539
6540 * dwarf2/read.c (load_cu): Return dwarf2_cu.
6541 (dw2_do_instantiate_symtab): Update.
6542 (queue_and_load_all_dwo_tus): Change parameter from
6543 dwarf2_per_cu_data to dwarf2_cu.
6544 (dwarf2_fetch_die_loc_sect_off): Update.
6545 (dwarf2_fetch_constant_bytes): Update.
6546 (dwarf2_fetch_die_type_sect_off): Update.
6547
8fc0b21d
SM
65482020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6549
6550 * dwarf2/read.c (process_full_comp_unit,
6551 process_full_type_unit): Remove per_cu, per_objfile paramters.
6552 Add dwarf2_cu parameter.
6553 (process_queue): Update.
6554
168c9250
SM
65552020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6556
6557 * dwarf2/read.c (create_cu_from_index_list): Replace
6558 dwarf2_per_objfile parameter with dwarf2_per_bfd.
6559 (create_cus_from_index_list): Likewise.
6560 (create_cus_from_index): Likewise.
6561 (create_signatured_type_table_from_index): Likewise.
6562 (create_cus_from_debug_names_list): Likewise.
6563 (create_cus_from_debug_names): Likewise.
6564 (dwarf2_read_gdb_index): Update.
6565 (dwarf2_read_debug_names): Update.
6566
e286671b
TT
65672020-05-27 Tom Tromey <tom@tromey.com>
6568 Simon Marchi <simon.marchi@efficios.com>
6569
6570 * dwarf2/read.h (struct dwarf2_per_objfile)
6571 <get_type_for_signatured_type, set_type_for_signatured_type>:
6572 New methods.
6573 <m_type_map>: New member.
6574 (struct signatured_type) <type>: Remove.
6575 * dwarf2/read.c
6576 (dwarf2_per_objfile::get_type_for_signatured_type,
6577 dwarf2_per_objfile::set_type_for_signatured_type): New.
6578 (get_signatured_type): Use new methods.
6579
8adb8487
TT
65802020-05-27 Tom Tromey <tom@tromey.com>
6581 Simon Marchi <simon.marchi@efficios.com>
6582
6583 * dwarf2/read.h (struct type_unit_group_unshareable): New.
6584 (struct dwarf2_per_objfile) <type_units>: New member.
6585 <get_type_unit_group_unshareable>: New method.
6586 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
6587 num_symtabs, symtabs>: Remove; move to
6588 type_unit_group_unshareable.
6589 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
6590 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
6591 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
6592
127bbf4b
SM
65932020-05-27 Simon Marchi <simon.marchi@efficios.com>
6594
6595 * dwarf2/read.h (struct dwarf2_per_cu_data):
6596 <dwarf2_per_objfile>: Remove.
6597 * dwarf2/read.c (create_cu_from_index_list): Don't assign
6598 dwarf2_per_objfile.
6599 (create_signatured_type_table_from_index): Likewise.
6600 (create_signatured_type_table_from_debug_names): Likewise.
6601 (create_debug_type_hash_table): Likewise.
6602 (fill_in_sig_entry_from_dwo_entry): Likewise.
6603 (create_type_unit_group): Likewise.
6604 (read_comp_units_from_section): Likewise.
6605 (create_cus_hash_table): Likewise.
6606
f6e649dd
SM
66072020-05-27 Simon Marchi <simon.marchi@efficios.com>
6608
6609 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
6610 dwarf2_per_cu_data::dwarf2_per_objfile.
6611 (compute_compunit_symtab_includes): Likewise.
6612 (dwarf2_cu::start_symtab): Likewise.
6613
aa66c379
SM
66142020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6615
6616 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
6617 parameter.
6618 * dwarf2/read.c (get_die_type_at_offset): Likewise.
6619 (read_namespace_alias): Update.
6620 (lookup_die_type): Update.
6621 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
6622 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
6623 Update.
6624 (disassemble_dwarf_expression): Update.
6625
120ce1b5
SM
66262020-05-27 Simon Marchi <simon.marchi@efficios.com>
6627
6628 * dwarf2/read.h (struct dwarf2_queue_item): Add
6629 dwarf2_per_objfile parameter, assign new parameter.
6630 <per_objfile>: New field.
6631 * dwarf2/read.c (free_one_cached_comp_unit): Add
6632 dwarf2_per_objfile parameter.
6633 (queue_comp_unit): Likewise.
6634 (dw2_do_instantiate_symtab): Update.
6635 (process_psymtab_comp_unit): Update.
6636 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
6637 (process_imported_unit_die): Update.
6638 (queue_and_load_dwo_tu): Update.
6639 (follow_die_offset): Update.
6640 (follow_die_sig_1): Update.
6641
9f47c707
SM
66422020-05-27 Simon Marchi <simon.marchi@efficios.com>
6643
6644 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
6645 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
6646 (read_call_site_scope): Assign per_objfile.
6647 (dwarf2_per_cu_data::objfile): Remove.
6648 * gdbtypes.h (struct call_site) <per_objfile>: New member.
6649 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
6650 dwarf2_per_objfile parameter.
6651 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
6652 dwarf2_per_objfile parameter.
6653 (dwarf_expr_reg_to_entry_parameter): Add output
6654 dwarf2_per_objfile parameter.
6655 (locexpr_get_frame_base): Update.
6656 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
6657 <push_dwarf_reg_entry_value>: Update.
6658 <call_site_to_target_addr>: Update.
6659 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
6660 parameter.
6661 (value_of_dwarf_reg_entry): Update.
6662 (rw_pieced_value): Update.
6663 (indirect_synthetic_pointer): Update.
6664 (dwarf2_evaluate_property): Update.
6665 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
6666 parameter.
6667 (locexpr_read_variable): Update.
6668 (locexpr_get_symbol_read_needs): Update.
6669 (loclist_read_variable): Update.
6670
14095eb3
SM
66712020-05-27 Simon Marchi <simon.marchi@efficios.com>
6672
6673 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
6674 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
6675 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
6676 parameter.
6677 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
6678 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
6679 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
6680 parameter.
6681 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
6682 sect_variable_value): Add dwarf2_per_objfile parameter.
6683 (class dwarf_evaluate_loc_desc) <dwarf_call,
6684 dwarf_variable_value>: Update.
6685 (fetch_const_value_from_synthetic_pointer): Add
6686 dwarf2_per_objfile parameter.
6687 (fetch_const_value_from_synthetic_pointer): Update.
6688 (coerced_pieced_ref): Update.
6689 (class symbol_needs_eval_context) <dwarf_call,
6690 dwarf_variable_value>: Update.
6691 (dwarf2_compile_expr_to_ax): Update.
6692
3c3cd3d4
SM
66932020-05-27 Simon Marchi <simon.marchi@efficios.com>
6694
6695 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
6696 parameter.
6697 (dwarf2_evaluate_loc_desc_full): Update.
6698
82ca3f51
SM
66992020-05-27 Simon Marchi <simon.marchi@efficios.com>
6700
6701 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
6702 parameter.
6703 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
6704 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
6705 dwarf2_per_objfile parameter.
6706 (decode_debug_loc_dwo_addresses): Likewise.
6707 (dwarf2_find_location_expression): Update.
6708 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
6709 (locexpr_describe_location_piece): Add dwarf2_per_objfile
6710 parameter.
6711 (disassemble_dwarf_expression): Add dwarf2_per_objfile
6712 parameter.
6713 (locexpr_describe_location_1): Likewise.
6714 (locexpr_describe_location): Update.
6715
4b167ea1
SM
67162020-05-27 Simon Marchi <simon.marchi@efficios.com>
6717
6718 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
6719 Remove.
6720 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
6721 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
6722 (dwarf2_compile_property_to_c): Update.
6723 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
6724 use text offset from objfile.
6725 (locexpr_tracepoint_var_ref): Update.
6726 (locexpr_generate_c_location): Update.
6727 (loclist_describe_location): Update.
6728 (loclist_tracepoint_var_ref): Update.
6729 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
6730 dwarf2_per_objfile parameter.
6731 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
6732 use text offset from objfile.
6733 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
6734
89b07335
SM
67352020-05-27 Simon Marchi <simon.marchi@efficios.com>
6736
6737 * dwarf2/expr.h (struct dwarf_expr_context)
6738 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
6739 <offset>: Remove.
6740 <per_objfile>: New member.
6741 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
6742 dwarf2_per_objfile parameter. Don't set offset, set
6743 per_objfile.
6744 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
6745 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
6746 a dwarf2_per_objfile object instead of an offset.
6747 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
6748 constructor.
6749 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
6750 to dwarf2_expr_executor constructor. Don't set offset.
6751 (dwarf2_fetch_cfa_info): Update.
6752 (struct dwarf2_frame_cache) <text_offset>: Remove.
6753 <per_objfile>: New field.
6754 (dwarf2_frame_cache): Update.
6755 (dwarf2_frame_prev_register): Update.
6756 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6757 <dwarf_evaluate_loc_desc>: Add constructor.
6758 (dwarf2_evaluate_loc_desc_full): Update.
6759 (dwarf2_locexpr_baton_eval): Update.
6760 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
6761 Add constructor.
6762 (dwarf2_loc_desc_get_symbol_read_needs): Update.
6763
293e7e51
SM
67642020-05-27 Simon Marchi <simon.marchi@efficios.com>
6765
6766 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
6767 addr_sized_int_type>: Move to dwarf2_cu.
6768 <int_type>: Move to dwarf2_per_objfile.
6769 (struct dwarf2_per_objfile) <int_type>: Move here.
6770 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
6771 addr_sized_int_type>: Move here.
6772 (read_func_scope): Update.
6773 (read_array_type): Update.
6774 (read_tag_string_type): Update.
6775 (attr_to_dynamic_prop): Update.
6776 (dwarf2_per_cu_data::int_type): Rename to...
6777 (dwarf2_per_objfile::int_type): ... this.
6778 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
6779 (dwarf2_cu::addr_sized_int_type): ... this.
6780 (read_subrange_type): Update.
6781 (dwarf2_per_cu_data::addr_type): Rename to...
6782 (dwarf2_cu::addr_type): ... this.
6783 (set_die_type): Update.
6784
64874a40
SM
67852020-05-27 Simon Marchi <simon.marchi@efficios.com>
6786
6787 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
6788 data through per_cu->cu.
6789
4ab09049
SM
67902020-05-27 Simon Marchi <simon.marchi@efficios.com>
6791
6792 * dwarf2/read.c (lookup_dwo_comp_unit): Change
6793 dwarf2_per_cu_data parameter fo dwarf2_cu.
6794 (lookup_dwo_type_unit): Likewise.
6795 (read_cutu_die_from_dwo): Likewise.
6796 (lookup_dwo_unit): Likewise.
6797 (open_and_init_dwo_file): Likewise.
6798 (lookup_dwo_cutu): Likewise.
6799 (lookup_dwo_comp_unit): Likewise.
6800 (lookup_dwo_type_unit): Likewise.
6801 (cutu_reader::init_tu_and_read_dwo_dies): Update.
6802 (cutu_reader::cutu_reader): Update.
6803
47b14e86
SM
68042020-05-27 Simon Marchi <simon.marchi@efficios.com>
6805
6806 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
6807 parameter.
6808 (process_full_type_unit): Likewise.
6809 (process_queue): Update.
6810
43182c09
SM
68112020-05-27 Simon Marchi <simon.marchi@efficios.com>
6812
6813 * dwarf2/read.c (recursively_compute_inclusions): Add
6814 dwarf2_per_objfile parameter.
6815 (compute_compunit_symtab_includes): Likewise.
6816 (process_cu_includes): Update.
6817
7aa104c4
SM
68182020-05-27 Simon Marchi <simon.marchi@efficios.com>
6819
6820 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
6821 parameter.
6822 (create_type_unit_group): Update.
6823 (process_psymtab_comp_unit_reader): Update.
6824 (build_type_psymtabs_reader): Update.
6825
e3beb21d
SM
68262020-05-27 Simon Marchi <simon.marchi@efficios.com>
6827
6828 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
6829 object through m_this_cu->cu.
6830
d460f660
SM
68312020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6832
6833 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
6834 the info parameter.
6835 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
6836
ab432490
SM
68372020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6838
6839 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
6840 per_objfile parameter.
6841 (load_full_type_unit): Add per_objfile parameter.
6842 (read_signatured_type): Likewise.
6843 (load_full_comp_unit): Likewise.
6844 (load_cu): Likewise.
6845 (dw2_do_instantiate_symtab): Likewise.
6846 (dw2_get_file_names): Likewise.
6847 (dw2_map_symtabs_matching_filename): Update.
6848 (dw_expand_symtabs_matching_file_matcher): Update.
6849 (dw2_map_symbol_filenames): Update.
6850 (process_psymtab_comp_unit): Add per_objfile parameter.
6851 (build_type_psymtabs_1): Update.
6852 (process_skeletonless_type_unit): Update.
6853 (dwarf2_build_psymtabs_hard): Update.
6854 (load_partial_comp_unit): Add per_objfile parameter.
6855 (scan_partial_symbols): Update.
6856 (load_full_comp_unit): Add per_objfile parameter.
6857 (process_imported_unit_die): Update.
6858 (create_cus_hash_table): Update.
6859 (find_partial_die): Update.
6860 (dwarf2_read_addr_index): Update.
6861 (follow_die_offset): Update.
6862 (dwarf2_fetch_die_loc_sect_off): Update.
6863 (dwarf2_fetch_constant_bytes): Update.
6864 (dwarf2_fetch_die_type_sect_off): Update.
6865 (follow_die_sig_1): Update.
6866 (load_full_type_unit): Add per_objfile parameter.
6867 (read_signatured_type): Likewise.
6868
313bad1b
SM
68692020-05-27 Simon Marchi <simon.marchi@efficios.com>
6870
6871 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
6872 of objfile_name.
6873
c3699833
SM
68742020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6875
6876 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
6877 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
6878 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
6879 field.
6880 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
6881 (create_cus_from_index): Update.
6882 (dwarf2_read_gdb_index): Update.
6883 (create_cus_from_debug_names): Update.
6884 (dwarf2_read_debug_names): Update.
6885 (get_abbrev_section_for_cu): Update.
6886 (create_all_comp_units): Update.
6887 (read_attribute_value): Update.
6888 (get_debug_line_section): Update.
6889 * dwarf2/index-cache.c (index_cache::store): Update.
6890 * dwarf2/index-write.c (save_gdb_index_command): Update.
6891 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
6892
1859c670
SM
68932020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6894
6895 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
6896 member.
6897 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
6898 dwarf2_per_cu_data::per_bfd.
6899 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
6900 (create_type_unit_group): Likewise.
6901 (queue_comp_unit): Remove reference to
6902 per_cu->dwarf2_per_objfile.
6903 (maybe_queue_comp_unit): Likewise.
6904 (fill_in_sig_entry_from_dwo_entry): Assign new field.
6905 (create_cus_hash_table): Assign new field.
6906
5e22e966
SM
69072020-05-27 Simon Marchi <simon.marchi@efficios.com>
6908
6909 * dwarf2/read.c: Replace
6910 dwarf2_cu->per_cu->dwarf2_per_objfile references with
6911 dwarf2_cu->per_objfile throughout.
6912
97a1449a
SM
69132020-05-27 Simon Marchi <simon.marchi@efficios.com>
6914
6915 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
6916 parameter, don't use per_cu->dwarf2_per_objfile.
6917 (dw2_instantiate_symtab): Likewise.
6918 (dw2_find_last_source_symtab): Update.
6919 (dw2_map_expand_apply): Update.
6920 (dw2_lookup_symbol): Update.
6921 (dw2_expand_symtabs_for_function): Update.
6922 (dw2_expand_all_symtabs): Update.
6923 (dw2_expand_symtabs_with_fullname): Update.
6924 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
6925 don't use per_cu->dwarf2_per_objfile.
6926 (dw2_expand_marked_cus): Update.
6927 (dw2_find_pc_sect_compunit_symtab): Update.
6928 (dw2_debug_names_lookup_symbol): Update.
6929 (dw2_debug_names_expand_symtabs_for_function): Update.
6930 (dw2_debug_names_map_matching_symbols): Update.
6931 (dwarf2_psymtab::expand_psymtab): Update.
6932
9e021579
SM
69332020-05-27 Simon Marchi <simon.marchi@efficios.com>
6934
6935 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
6936 <per_objfile>: New member.
6937 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
6938 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
6939 call to dwarf2_cu.
6940 (cutu_reader::cutu_reader): Update.
6941 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
6942
ae090bdb
SM
69432020-05-27 Simon Marchi <simon.marchi@efficios.com>
6944
6945 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
6946 struct dwarf2_per_objfile.
6947 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
6948 dwarf2_per_bfd.
6949 * dwarf2/read.c (set_die_type): Update.
6950 (get_die_type_at_offset): Update.
6951
af758d11
SM
69522020-05-27 Tom Tromey <tom@tromey.com>
6953 Simon Marchi <simon.marchi@efficios.com>
6954
6955 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
6956 method.
6957 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
6958 get_symtab, set_symtab>: New methods.
6959 <m_symtabs>: New field.
6960 (struct dwarf2_psymtab): Derive from partial_symtab.
6961 <readin_p, get_compunit_symtab>: Declare methods.
6962 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
6963 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
6964 New methods.
6965 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
6966 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
6967 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
6968 (dw2_symtab_iter_next, dw2_print_stats)
6969 (dw2_expand_symtabs_with_fullname)
6970 (dw2_expand_symtabs_matching_one)
6971 (dw_expand_symtabs_matching_file_matcher)
6972 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
6973 (dw2_debug_names_iterator::next)
6974 (dw2_debug_names_map_matching_symbols)
6975 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
6976 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
6977 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
6978 New methods.
6979 (get_compunit_symtab, process_full_comp_unit)
6980 (process_full_type_unit): Update.
6981 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
6982
5989a64e
SM
69832020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6984
6985 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
6986 then introduce a new dwarf2_per_objfile type.
6987 <read_line_string>: Move to the new dwarf2_per_objfile type.
6988 <objfile>: Likewise.
6989 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
6990 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
6991 dwarf2_per_objfile->per_bfd.
6992 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
6993 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
6994 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
6995 (dwarf2_per_bfd::free_cached_comp_units): ... this.
6996 (dwarf2_has_info): Allocate dwarf2_per_bfd.
6997 (dwarf2_per_objfile::locate_sections): Rename to...
6998 (dwarf2_per_bfd::locate_sections): ... this.
6999 (dwarf2_per_objfile::get_cutu): Rename to...
7000 (dwarf2_per_bfd::get_cutu): ... this.
7001 (dwarf2_per_objfile::get_cu): Rename to...
7002 (dwarf2_per_bfd::get_cu): ... this.
7003 (dwarf2_per_objfile::get_tu): Rename to...
7004 (dwarf2_per_bfd::get_tu): ... this.
7005 (dwarf2_per_objfile::allocate_per_cu): Rename to...
7006 (dwarf2_per_bfd::allocate_per_cu): ... this.
7007 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
7008 (dwarf2_per_bfd::allocate_signatured_type): ... this.
7009 (get_gdb_index_contents_ftype): Change parameter from
7010 dwarf2_per_objfile to dwarf2_per_bfd.
7011 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
7012 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
7013
a50264ba
TT
70142020-05-27 Tom Tromey <tom@tromey.com>
7015 Simon Marchi <simon.marchi@efficios.com>
7016
7017 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
7018 (allocate_piece_closure): Set "per_objfile" member.
7019 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
7020 (locexpr_describe_location, loclist_describe_location): Use new
7021 member.
7022 * dwarf2/read.c (read_call_site_scope)
7023 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
7024 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
7025 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
7026 handle_data_member_location): Set per_objfile member.
7027 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
7028 member.
7029 (struct dwarf2_loclist_baton) <per_objfile>: New member.
7030
d3473f0c
TT
70312020-05-27 Tom Tromey <tom@tromey.com>
7032
7033 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
7034 allocate_signatured_type>: Declare new methods.
7035 <m_num_psymtabs>: New member.
7036 (struct dwarf2_per_cu_data) <index>: New member.
7037 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
7038 (dwarf2_per_objfile::allocate_signatured_type): New methods.
7039 (create_cu_from_index_list): Use allocate_per_cu.
7040 (create_signatured_type_table_from_index)
7041 (create_signatured_type_table_from_debug_names)
7042 (create_debug_type_hash_table, add_type_unit)
7043 (read_comp_units_from_section): Use allocate_signatured_type.
7044
5717c425
TT
70452020-05-27 Tom Tromey <tom@tromey.com>
7046
7047 * psymtab.c (partial_map_expand_apply)
7048 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
7049 (psym_lookup_global_symbol_language)
7050 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
7051 (psym_print_stats, psym_expand_symtabs_for_function)
7052 (psym_map_symbol_filenames, psym_map_matching_symbols)
7053 (psym_expand_symtabs_matching)
7054 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
7055 (maintenance_check_psymtabs): Update.
7056 * psympriv.h (struct partial_symtab) <readin_p,
7057 get_compunit_symtab>: Add objfile parameter.
7058 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
7059 Likewise.
7060 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
7061 get_compunit_symtab>: Likewise.
7062 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
7063
45940949
TT
70642020-05-27 Tom Tromey <tom@tromey.com>
7065
7066 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
7067 member.
7068 * dwarf2/read.c (delete_file_name_entry): Fix comment.
7069 (create_cu_from_index_list)
7070 (create_signatured_type_table_from_index)
7071 (create_signatured_type_table_from_debug_names)
7072 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
7073 (dwarf2_create_include_psymtab)
7074 (create_debug_type_hash_table, add_type_unit)
7075 (create_type_unit_group, read_comp_units_from_section)
7076 (dwarf2_compute_name, create_cus_hash_table)
7077 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
7078 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
7079 obstack.
7080 (dw2_get_real_path): Likewise. Change argument to
7081 dwarf2_per_objfile.
7082
f8c6d152
LM
70832020-05-27 Luis Machado <luis.machado@linaro.org>
7084
7085 PR tdep/26000
7086 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
7087 for ldrd (immediate).
7088
e98d2e6d
PW
70892020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7090
7091 * command.h: Add comment giving the name of class_tui.
7092 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
7093 create the fake command for the help for class_tui.
7094
53a47a3e
TT
70952020-05-26 Tom Tromey <tromey@adacore.com>
7096
7097 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
7098 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
7099 (val_atr): New function.
7100 (value_val_atr): Use it.
7101 * ada-valprint.c (print_optional_low_bound): Change low bound
7102 handling for enums.
7103 (val_print_packed_array_elements): Don't call discrete_position.
7104 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
7105 discrete_position for enum types.
7106 * language.c (default_print_array_index): Change type.
7107 * language.h (struct language_defn) <la_print_array_index>: Add
7108 index_type parameter, change type of index_value.
7109 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
7110 (default_print_array_index): Update.
7111 * valprint.c (maybe_print_array_index): Don't call
7112 value_from_longest. Update.
7113 (value_print_array_elements): Don't call discrete_position.
7114
0bc2354b
TT
71152020-05-26 Tom Tromey <tromey@adacore.com>
7116
7117 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
7118 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
7119
1218a4bf
CDA
71202020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
7121
7122 PR gdb/13519
7123 * avr-tdep.c (avr_integer_to_address): Return data or code
7124 address accordingly to the second 'type' argument of the
7125 function.
7126
92651b1d
MW
71272020-05-25 Michael Weghorn <m.weghorn@posteo.de>
7128
7129 * infcmd.c, inferior.h: (construct_inferior_arguments):
7130 Moved function from here to gdbsupport/common-inferior.{h,cc}
7131
0a4f5f8c
TT
71322020-05-23 Tom Tromey <tom@tromey.com>
7133
7134 Revert commit eca1f90c:
7135 * NEWS: Remove entry for completion styling.
7136 * completer.c (_rl_completion_prefix_display_length): Move
7137 declaration later.
7138 (gdb_fnprint): Revert.
7139 (gdb_display_match_list_1): Likewise.
7140 * cli/cli-style.c (completion_prefix_style)
7141 (completion_difference_style, completion_suffix_style): Remove.
7142 (_initialize_cli_style): Revert.
7143 * cli/cli-style.h (completion_prefix_style)
7144 (completion_difference_style, completion_suffix_style): Don't
7145 declare.
7146
e08bd6c5
PA
71472020-05-24 Pedro Alves <palves@redhat.com>
7148
7149 * symtab.c (completion_list_add_name): Return boolean indication
7150 of whether the symbol matched.
7151 (completion_list_add_symbol): Don't try to remove C++ aliases if
7152 the symbol didn't match in the first place.
7153 * symtab.h (completion_list_add_name): Return bool.
7154
ceacbf6e
SM
71552020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
7156
7157 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
7158 type::field.
7159
26f16254
JB
71602020-05-23 Joel Brobecker <brobecker@adacore.com>
7161
7162 GDB 9.2 released.
7163
eca1f90c
TT
71642020-05-23 Tom Tromey <tom@tromey.com>
7165
7166 * NEWS: Add entry for completion styling.
7167 * completer.c (_rl_completion_prefix_display_length): Move
7168 declaration earlier.
7169 (gdb_fnprint): Use completion_style.
7170 (gdb_display_match_list_1): Likewise.
7171 * cli/cli-style.c (completion_prefix_style)
7172 (completion_difference_style, completion_suffix_style): New
7173 globals.
7174 (_initialize_cli_style): Register new globals.
7175 * cli/cli-style.h (completion_prefix_style)
7176 (completion_difference_style, completion_suffix_style): Declare.
7177
51e2cfa2
PA
71782020-05-23 Pedro Alves <palves@redhat.com>
7179
7180 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
7181 (parse_escape): Use ISDIGIT instead of isdigit.
7182 (puts_debug): Use gdb_isprint instead of isprint.
7183 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
7184 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
7185 ISSPACE instead of isspace.
7186 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
7187 instead of isspace.
7188 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
7189 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
7190 instead of isxdigit and ISDIGIT instead of isdigit.
7191
80fc5e77
SM
71922020-05-22 Simon Marchi <simon.marchi@efficios.com>
7193
7194 * gdbtypes.h (struct type) <field>: New method.
7195 (TYPE_FIELDS): Remove, replace all uses with either type::fields
7196 or type::field.
7197
3cabb6b0
SM
71982020-05-22 Simon Marchi <simon.marchi@efficios.com>
7199
7200 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
7201 (TYPE_FIELDS): Use type::fields. Change all call sites that
7202 modify the propery to use type::set_fields instead.
7203
1f704f76
SM
72042020-05-22 Simon Marchi <simon.marchi@efficios.com>
7205
7206 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
7207 type::num_fields instead.
7208
5e33d5f4
SM
72092020-05-22 Simon Marchi <simon.marchi@efficios.com>
7210
7211 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
7212 methods.
7213 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
7214 that modify the number of fields to use type::set_num_fields
7215 instead.
7216
9392ebb3
TT
72172020-05-22 Tom Tromey <tromey@adacore.com>
7218
7219 * compile/compile-object-load.h (munmap_list_free): Don't
7220 declare.
7221
7c13f4e8
AB
72222020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
7223
7224 * annotate.c (annotate_source_line): Update return type, add call
7225 to update current symtab and line.
7226 * annotate.h (annotate_source_line): Update return type, and
7227 extend header comment.
7228 * source.c (info_line_command): Check annotation_level before
7229 calling annotate_source_line.
7230 * stack.c (print_frame_info): If calling annotate_source_line
7231 returns true, then don't print any other source line information.
7232
aa370940
SM
72332020-05-21 Simon Marchi <simon.marchi@efficios.com>
7234
7235 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
7236
84d53fa9
SM
72372020-05-21 Simon Marchi <simon.marchi@efficios.com>
7238
7239 * coffread.c (patch_type): Remove NULL check before xfree.
7240 * corefile.c (set_gnutarget): Likewise.
7241 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
7242 * exec.c (build_section_table): Likewise.
7243 * remote.c (remote_target::pass_signals): Likewise.
7244 * utils.c (n_spaces): Likewise.
7245 * cli/cli-script.c (document_command): Likewise.
7246 * i386-windows-tdep.c (core_process_module_section): Likewise.
7247 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
7248
9d428aae
SM
72492020-05-20 Simon Marchi <simon.marchi@efficios.com>
7250
7251 * symfile.c (reread_symbols): Clear objfile's section_offsets
7252 vector and section indices, re-compute them by calling
7253 sym_offsets.
7254
250106a7
TT
72552020-05-20 Tom Tromey <tromey@adacore.com>
7256
7257 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 7258 (desc_one_bound, desc_index_type): Compute field name.
250106a7 7259
9a0bacfb
TV
72602020-05-20 Tom de Vries <tdevries@suse.de>
7261
7262 PR symtab/25833
7263 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
7264
7b958a48
AM
72652020-05-20 Alan Modra <amodra@gmail.com>
7266
7267 PR 25993
7268 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
7269 bfd_set_filename.
7270 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
7271 passed to bfd_set_filename.
7272 * symfile-mem.c (add_vsyscall_page): Likewise for string
7273 passed to symbol_file_add_from_memory.
7274 (symbol_file_add_from_memory): Make name param a const char* and
7275 don't strdup.
7276
c7e97679
AM
72772020-05-20 Alan Modra <amodra@gmail.com>
7278
7279 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
7280 rather than accessing bfd->filename directly.
7281 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
7282 and use bfd_section_name.
7283 * dwarf2/frame.c (decode_frame_entry): Likewise.
7284 * exec.c (exec_set_section_address): Likewise.
7285 * solib-aix.c (solib_aix_bfd_open): Likewise.
7286 * stap-probe.c (get_stap_base_address): Likewise.
7287 * symfile.c (reread_symbols): Likewise.
7288
563c591b
TT
72892020-05-19 Tom Tromey <tromey@adacore.com>
7290
7291 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
7292
f408d82c
SM
72932020-05-19 Simon Marchi <simon.marchi@efficios.com>
7294
7295 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
7296
98c59b52
PA
72972020-05-19 Pedro Alves <palves@redhat.com>
7298
7299 * NEWS (set exec-file-mismatch): Adjust entry.
7300 * exec.c: Include "build-id.h".
7301 (validate_exec_file): Try to match build IDs instead of filenames.
7302 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
7303 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
7304 and pass down 'warn_if_slow'.
7305 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
7306 gdb_bfd_open_closure to pass it down.
7307 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
7308
4111f652
PA
73092020-05-19 Pedro Alves <palves@redhat.com>
7310
7311 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
7312 * target.c (target_fileio_open_1): Rename to target_fileio_open
7313 and make extern. Use bool.
7314 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
7315 (target_fileio_read_alloc_1): Adjust.
7316 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
7317 (target_fileio_open_warn_if_slow): Delete declaration.
7318
ad80db5b
PA
73192020-05-19 Pedro Alves <palves@redhat.com>
7320
7321 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
7322 Adjust all callers.
7323
1d6ce4d3
YS
73242020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
7325
7326 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
7327 whether disp is negative.
7328
9005fbbb
SM
73292020-05-19 Simon Marchi <simon.marchi@efficios.com>
7330
7331 * symfile.h (struct symfile_segment_data)
7332 <~symfile_segment_data>: Remove.
7333 <segment_info>: Change to std::vector.
7334 * symfile.c (default_symfile_segments): Update.
7335 * elfread.c (elf_symfile_segments): Update.
7336
68b888ff
SM
73372020-05-19 Simon Marchi <simon.marchi@efficios.com>
7338
7339 * symfile.h (struct symfile_segment_data) <struct segment>: New.
7340 <segments>: New.
7341 <segment_bases, segment_sizes>: Remove.
7342 * symfile.c (default_symfile_segments): Update.
7343 * elfread.c (elf_symfile_segments): Update.
7344 * remote.c (remote_target::get_offsets): Update.
7345 * solib-target.c (solib_target_relocate_section_addresses):
7346 Update.
7347
62982abd
SM
73482020-05-19 Simon Marchi <simon.marchi@efficios.com>
7349
7350 * symfile.h (struct symfile_segment_data): Initialize fields.
7351 <~symfile_segment_data>: Add.
7352 (symfile_segment_data_up): New.
7353 (struct sym_fns) <sym_segments>: Return a
7354 symfile_segment_data_up.
7355 (default_symfile_segments): Return a symfile_segment_data_up.
7356 (free_symfile_segment_data): Remove.
7357 (get_symfile_segment_data): Return a symfile_segment_data_up.
7358 * symfile.c (default_symfile_segments): Likewise.
7359 (get_symfile_segment_data): Likewise.
7360 (free_symfile_segment_data): Remove.
7361 (symfile_find_segment_sections): Update.
7362 * elfread.c (elf_symfile_segments): Return a
7363 symfile_segment_data_up.
7364 * remote.c (remote_target::get_offsets): Update.
7365 * solib-target.c (solib_target_relocate_section_addresses):
7366 Update.
7367 * symfile-debug.c (debug_sym_segments): Return a
7368 symfile_segment_data_up.
7369
7f204339
RO
73702020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7371
e52a0f1b
RO
7372 PR build/25981
7373 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
7374 Hardcode register numbers.
7375
7f204339
RO
7376 PR build/25981
7377 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
7378 procfs_find_LDT_entry): Remove.
7379 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
7380 procfs_find_LDT_entry): Remove.
7381 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
7382 Remove.
7383
7f32a4d5
PA
73842020-05-17 Pedro Alves <palves@redhat.com>
7385 Andrew Burgess <andrew.burgess@embecosm.com>
7386 Keno Fischer <keno@juliacomputing.com>
7387
7388 PR gdb/25741
7389 * breakpoint.c (build_target_condition_list): Update comments.
7390 (build_target_command_list): Update comments and skip matching
7391 locations.
7392 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
7393 a separate function. Simplify "set breakpoint auto-hw off"
7394 handling.
7395 (insert_breakpoints): Update comment.
7396 (tracepoint_locations_match): New parameter. For breakpoints,
7397 compare location types too, if the caller wants to.
7398 (handle_automatic_hardware_breakpoints): New functions.
7399 (bp_location_is_less_than): Also sort by location type and
7400 hardware breakpoint length.
7401 (update_global_location_list): Handle "set breakpoint auto-hw on"
7402 here.
7403 (update_breakpoint_locations): Ask breakpoint_locations_match to
7404 ignore location types.
7405
7d93a1e0
SM
74062020-05-16 Simon Marchi <simon.marchi@efficios.com>
7407
7408 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
7409 type::name instead.
7410
d0e39ea2
SM
74112020-05-16 Simon Marchi <simon.marchi@efficios.com>
7412
7413 * gdbtypes.h (struct type) <name, set_name>: New methods.
7414 (TYPE_CODE): Use type::name. Change all call sites used to set
7415 the name to use type::set_name instead.
7416
2dab0c7b
TT
74172020-05-16 Tom Tromey <tom@tromey.com>
7418
7419 * top.c (quit_force): Update.
7420 * infrun.c (handle_no_resumed): Update.
7421 * top.h (all_uis): New function.
7422 (ALL_UIS): Remove.
7423
59f7bd8d
SM
74242020-05-16 Simon Marchi <simon.marchi@efficios.com>
7425
7426 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
7427
9bf058f0
PA
74282020-05-16 Pedro Alves <palves@redhat.com>
7429
7430 * ia64-linux-nat.c
7431 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
7432 Declare method.
7433 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
7434
8f86ae1a
SM
74352020-05-15 Simon Marchi <simon.marchi@efficios.com>
7436
7437 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
7438 (sparc64_adi_info): Likewise.
7439
d6bc0792
TT
74402020-05-15 Tom Tromey <tom@tromey.com>
7441
7442 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
7443 block_objfile.
7444 (lookup_objfile_from_block): Remove.
7445 (lookup_symbol_in_block, lookup_symbol_in_static_block)
7446 (lookup_global_symbol): Use block_objfile.
7447 * symtab.h (lookup_objfile_from_block): Don't declare.
7448 * printcmd.c (clear_dangling_display_expressions): Use
7449 block_objfile.
7450 * parse.c (operator_check_standard): Use block_objfile.
7451
8c14c3a3
TT
74522020-05-15 Tom Tromey <tom@tromey.com>
7453
7454 * language.c (language_alloc_type_symbol): Set
7455 SYMBOL_SECTION.
7456 * symtab.c (initialize_objfile_symbol): Remove.
7457 (allocate_symbol): Remove.
7458 (allocate_template_symbol): Remove.
7459 * dwarf2/read.c (fixup_go_packaging): Use "new".
7460 (new_symbol): Use "new".
7461 (read_variable): Don't call initialize_objfile_symbol. Use
7462 "new".
7463 (read_func_scope): Use "new".
7464 * xcoffread.c (process_xcoff_symbol): Don't call
7465 initialize_objfile_symbol.
7466 (SYMBOL_DUP): Remove.
7467 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
7468 "new".
7469 * symtab.h (allocate_symbol, initialize_objfile_symbol)
7470 (allocate_template_symbol): Don't declare.
7471 (struct symbol): Add copy constructor. Change defaults.
7472 * jit.c (finalize_symtab): Use "new".
7473 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
7474 Use "new".
7475 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
7476 (common_block_end): Use "new".
7477 * mdebugread.c (parse_symbol): Use "new".
7478 (new_symbol): Likewise.
7479
5b4a1a8d
PW
74802020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7481
7482 * NEWS: Mention changes to help and apropos.
7483
57b4f16e
PW
74842020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7485
7486 * command.h (enum command_class): Improve comments, document
7487 that class_alias is for user-defined aliases, give the class
7488 name for each class, remove unused class_xdb.
7489 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
7490 * breakpoint.c (_initialize_breakpoint): Replace class_alias
7491 by a precise class.
7492 * infcmd.c (_initialize_infcmd): Likewise.
7493 * reverse.c (_initialize_reverse): Likewise.
7494 * stack.c (_initialize_stack): Likewise.
7495 * symfile.c (_initialize_symfile): Likewise.
7496 * tracepoint.c (_initialize_tracepoint): Likewise.
7497
7c05caf7
PW
74982020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7499
7500 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
7501 when their aliased command is traversed.
7502 (help_cmd): Add fput_command_names_styled call to
7503 output command name and aliases when command has an alias.
7504
3b3aaacb
PW
75052020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7506
7507 * cli/cli-decode.h (help_cmd_list): Remove declaration.
7508 * cli/cli-decode.c (help_cmd_list): Declare as static,
7509 remove prefix argument, use bool for recurse arg, rework to show the aliases of
7510 a command together with the command.
7511 (fput_command_name_styled, fput_command_names_styled): New functions.
7512 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
7513 fput_command_name_styled.
7514 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
7515 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
7516
7aa1b46f
PW
75172020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7518
7519 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
7520 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
7521 * command.h (cmd_show_list): Likewise.
7522 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
7523 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
7524
89bcba74
PW
75252020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7526
7527 * unittests/command-def-selftests.c (traverse_command_structure):
7528 Verify all commands of a list have the same prefix command and
7529 that only the top cmdlist commands have a null prefix.
7530
3f4d92eb
PW
75312020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7532
7533 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
7534 as prefix, not one of its aliases.
7535 (set_cmd_prefix): Remove.
7536 (do_add_cmd): Centralize the setting of the prefix of a command, when
7537 command is defined after its full chain of prefix commands.
7538 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
7539 (add_setshow_cmd_full): Likewise.
7540 (update_prefix_field_of_prefixed_commands): New function.
7541 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
7542 update_prefix_field_of_prefixed_commands.
7543 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
7544 addresses of remote_set_cmdlist and remote_show_cmdlist given
7545 as argument, not the address of an argument.
7546 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
7547 * gdb/remote.c (_initialize_remote): Likewise.
7548
0605465f
PW
75492020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7550
7551 * cli/cli-cmds.c (alias_command): Check for an existing alias
7552 using lookup_cmd_composition, as valid_command_p is too strict
7553 and forbids aliases that are the prefix of an existing alias
7554 or command.
7555 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
7556 command is properly recognised as a valid command.
7557
58e6ac70
PW
75582020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7559
7560 * unittests/help-doc-selftests.c: Rename to
7561 unittests/command-def-selftests.c
7562 * unittests/command-def-selftests.c (help_doc_tests): Update some
7563 comments.
7564 (command_structure_tests, traverse_command_structure): New namespace
7565 and function.
7566 (command_structure_invariants_tests): New function.
7567 (_initialize_command_def_selftests) Renamed from
7568 _initialize_help_doc_selftests, register command_structure_invariants
7569 selftest.
7570
a7b9ceb8
PW
75712020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7572
7573 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
7574 an alias of 'show'.
7575
b2188a06
JB
75762020-05-15 Joel Brobecker <brobecker@adacore.com>
7577
7578 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
7579 ada_is_fixed_point_type. Update all callers.
7580 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
7581 all callers.
7582 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
7583 Update all callers.
7584 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
7585 print_fixed_point_type. Update all callers.
7586 * ada-valprint.c (ada_value_print_num): Replace call to
7587 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
7588
a51951c2
KB
75892020-05-14 Kevin Buettner <kevinb@redhat.com>
7590
7591 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
7592 processors.
7593 (cpu_supports_bts): Add CV_AMD case.
7594
29d6859f
LM
75952020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
7596 Simon Marchi <simon.marchi@efficios.com>
7597
7598 * infrun.c (stop_all_threads): Collect multiple wait events at
7599 each pass.
7600
78134374
SM
76012020-05-14 Simon Marchi <simon.marchi@efficios.com>
7602
7603 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
7604 type::code instead.
7605
67607e24
SM
76062020-05-14 Simon Marchi <simon.marchi@efficios.com>
7607
7608 * gdbtypes.h (struct type) <code, set_code>: New methods.
7609 (TYPE_CODE): Use type::code. Change all call sites used to set
7610 the code to use type::set_code instead.
7611
a05575d3
TBA
76122020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7613 Tom de Vries <tdevries@suse.de>
7614 Pedro Alves <palves@redhat.com>
7615
7616 PR threads/25478
7617 * infrun.c (stop_all_threads): Do NOT ignore
7618 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
7619 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
7620 received.
7621 (handle_no_resumed): Remove code handling a live inferior with no
7622 threads.
7623 * remote.c (has_single_non_exited_thread): New.
7624 (remote_target::update_thread_list): Do not delete a thread if is
7625 the last thread of the process.
7626 * thread.c (thread_select): Call delete_exited_threads instead of
7627 prune_threads.
7628
6ad82919
TBA
76292020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7630
7631 * infrun.c (stop_all_threads): Enable/disable thread events of all
7632 targets. Move a debug message denoting the end of the function
7633 into the SCOPED_EXIT block.
7634
d890404b
TBA
76352020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7636
7637 * process-stratum-target.h: Include <set>.
7638 (all_non_exited_process_targets, switch_to_target_no_thread): New
7639 function declarations.
7640 * process-stratum-target.c (all_non_exited_process_targets)
7641 (switch_to_target_no_thread): New function implementations.
7642
293b3ebc
TBA
76432020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7644
7645 * infrun.c (handle_inferior_event): Extract out a piece of code
7646 into...
7647 (mark_non_executing_threads): ...this new function.
7648
7ca9b62a
TBA
76492020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7650
7651 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
7652 use.
7653
fc75c28b
TBA
76542020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7655
7656 * regcache.c (regcache_read_pc_protected): New function
7657 implementation that returns 0 if the PC cannot read via
7658 'regcache_read_pc'.
7659 * infrun.c (proceed): Call 'regcache_read_pc_protected'
7660 instead of 'regcache_read_pc'.
7661 (keep_going_pass_signal): Ditto.
7662
a89febbd
TT
76632020-05-13 Tom Tromey <tromey@adacore.com>
7664
7665 * ada-lang.c (align_value): Remove.
7666 (ada_template_to_fixed_record_type_1): Use align_up.
7667
f7e23710
TBA
76682020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7669
7670 * async-event.c: Update the copyright year.
7671 * async-event.h: Update the copyright year.
7672
02ff80c2
SM
76732020-05-12 Simon Marchi <simon.marchi@efficios.com>
7674
7675 * objfiles.h (is_addr_in_objfile,
7676 shared_objfile_contains_address_p): Return bool.
7677 * objfile.c (is_addr_in_objfile,
7678 shared_objfile_contains_address_p): Return bool.
7679
4fd6c7e8
TT
76802020-05-11 Tom Tromey <tromey@adacore.com>
7681
7682 * cli/cli-cmds.c (info_command): Restore.
7683 (_initialize_cli_cmds): Use add_prefix_command for "info".
7684 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
7685
5eb68a39
TT
76862020-05-11 Tom Tromey <tromey@adacore.com>
7687
7688 * ada-lang.c (ada_value_primitive_field): Now public.
7689 * ada-lang.h (ada_value_primitive_field): Declare.
7690 * ada-valprint.c (print_field_values): Use
7691 ada_value_primitive_field for wrapper fields.
7692
7666722f
TV
76932020-05-11 Tom de Vries <tdevries@suse.de>
7694
7695 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
7696 MODULE_DOMAIN.
7697
3ee6bb11
TV
76982020-05-11 Tom de Vries <tdevries@suse.de>
7699
7700 PR symtab/25941
7701 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
7702 with length 0, if not gdb-produced.
7703 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
7704
43434996
TV
77052020-05-09 Tom de Vries <tdevries@suse.de>
7706
7707 PR gdb/25955
7708 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
7709 calculation.
7710
2f78cffc
TT
77112020-05-09 Tom Tromey <tom@tromey.com>
7712
7713 * top.c (server_command): Now bool.
7714 * top.h (server_command): Now bool.
7715
4f7bc5ed
TT
77162020-05-08 Tom Tromey <tromey@adacore.com>
7717
7718 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
7719 already being processed.
7720
8be4b118
TT
77212020-05-08 Tom Tromey <tom@tromey.com>
7722
7723 * printcmd.c (struct display) <next>: Remove.
7724 <display>: New constructor.
7725 <exp_string>: Now a std::string.
7726 <enabled_p>: Now a bool.
7727 (display_number): Move definition earlier.
7728 (displays): Rename from display_chain. Now a std::vector.
7729 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
7730 (display_command): Update.
7731 (do_one_display, disable_display)
7732 (enable_disable_display_command, do_enable_disable_display):
7733 Update.
7734 (free_display): Remove.
7735 (clear_displays): Rewrite.
7736 (delete_display): Update.
7737 (map_display_numbers): Use function_view. Remove "data"
7738 parameter. Update.
7739 (do_delete_display): Remove.
7740 (undisplay_command): Update.
7741 (do_one_display, do_displays, disable_display)
7742 (info_display_command): Update.
7743 (do_enable_disable_display): Remove.
7744 (enable_disable_display_command)
7745 (clear_dangling_display_expressions): Update.
7746
94c93c35
TT
77472020-05-08 Tom Tromey <tom@tromey.com>
7748
7749 * symtab.c (set_symbol_cache_size)
7750 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
7751 (maintenance_print_symbol_cache_statistics): Update.
7752 * symmisc.c (print_symbol_bcache_statistics)
7753 (print_objfile_statistics, maintenance_print_objfiles)
7754 (maintenance_info_symtabs, maintenance_check_symtabs)
7755 (maintenance_expand_symtabs, maintenance_info_line_tables):
7756 Update.
7757 * symfile-debug.c (set_debug_symfile): Update.
7758 * source.c (forget_cached_source_info): Update.
7759 * python/python.c (gdbpy_progspaces): Update.
7760 * psymtab.c (maintenance_info_psymtabs): Update.
7761 * probe.c (parse_probes): Update.
7762 * linespec.c (iterate_over_all_matching_symtabs)
7763 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
7764 * guile/scm-progspace.c (gdbscm_progspaces): Update.
7765 * exec.c (exec_target::close): Update.
7766 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
7767 * breakpoint.c (print_one_breakpoint_location)
7768 (create_longjmp_master_breakpoint)
7769 (create_std_terminate_master_breakpoint): Update.
7770 * progspace.c (program_spaces): Now a std::vector.
7771 (maybe_new_address_space): Update.
7772 (add_program_space): Remove.
7773 (program_space::program_space): Update.
7774 (remove_program_space): Update.
7775 (number_of_program_spaces): Remove.
7776 (print_program_space, update_address_spaces): Update.
7777 * progspace.h (program_spaces): Change type.
7778 (ALL_PSPACES): Remove.
7779 (number_of_program_spaces): Don't declare.
7780 (struct program_space) <next>: Remove.
7781
a1fd1ac9
TT
77822020-05-08 Tom Tromey <tom@tromey.com>
7783
7784 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
7785 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
7786 (enable_break): Update.
7787 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
7788 (frv_fdpic_find_canonical_descriptor): Update.
7789 (frv_fetch_objfile_link_map): Update.
7790 * progspace.c (program_space::free_all_objfiles): Update.
7791 (program_space::solibs): New method.
7792 * progspace.h (struct program_space) <solibs>: New method.
7793 * solist.h (master_so_list): Don't declare.
7794 (ALL_SO_LIBS): Remove.
7795 * solib.h (so_list_head): Remove.
7796 (update_solib_list): Update comment.
7797 * solib.c (master_so_list): Remove.
7798 (solib_used, update_solib_list, solib_add)
7799 (info_sharedlibrary_command, clear_solib)
7800 (reload_shared_libraries_1, remove_user_added_objfile): Update.
7801
38eae084
TT
78022020-05-08 Tom Tromey <tom@tromey.com>
7803
7804 * extension.c (extension_languages): Now a std::array.
7805 (ALL_EXTENSION_LANGUAGES): Remove.
7806 (get_ext_lang_defn, get_ext_lang_of_file)
7807 (eval_ext_lang_from_control_command): Update.
7808 (finish_ext_lang_initialization)
7809 (auto_load_ext_lang_scripts_for_objfile)
7810 (ext_lang_type_printers::ext_lang_type_printers)
7811 (apply_ext_lang_type_printers)
7812 (ext_lang_type_printers::~ext_lang_type_printers)
7813 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
7814 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
7815 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
7816 (get_matching_xmethod_workers, ext_lang_colorize)
7817 (ext_lang_before_prompt): Update.
7818 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
7819
596dc4ad
TT
78202020-05-08 Tom Tromey <tom@tromey.com>
7821
7822 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
7823 overload.
7824 <swap_string, m_string>: Remove.
7825 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
7826 Update.
7827 * stabsread.c (define_symbol, read_type): Update.
7828 * linespec.c (find_linespec_symbols): Update.
7829 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
7830 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
7831 * dbxread.c (read_dbx_symtab): Update.
7832 * cp-support.h (cp_canonicalize_string_full)
7833 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
7834 Return unique_xmalloc_ptr.
7835 * cp-support.c (inspect_type): Update.
7836 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
7837 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
7838 Likewise.
7839 * c-typeprint.c (print_name_maybe_canonical): Update.
7840 * break-catch-throw.c (check_status_exception_catchpoint):
7841 Update.
7842
bf4cb9be
TV
78432020-05-08 Tom de Vries <tdevries@suse.de>
7844
7845 * infrun.c (follow_fork): Copy current_line and current_symtab to
7846 child thread.
7847
a1b68f28
SM
78482020-05-07 Simon Marchi <simon.marchi@efficios.com>
7849
7850 * async-event.c (struct async_signal_handler, struct
7851 async_event_handler): Reformat, remove typedef.
7852
98d48915
SM
78532020-05-07 Simon Marchi <simon.marchi@efficios.com>
7854
7855 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
7856 access thistype->main_type->dyn_prop_list directly.
7857
7aa91313
SM
78582020-05-07 Simon Marchi <simon.marchi@efficios.com>
7859
7860 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
7861 (remove_dyn_prop): Remove. Update all users to use
7862 type::remove_dyn_prop.
7863 * gdbtypes.c (remove_dyn_prop): Rename to...
7864 (type::remove_dyn_prop): ... this.
7865
5c54719c
SM
78662020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
7867
7868 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
7869 (add_dyn_prop): Remove. Update all users to use
7870 type::add_dyn_prop.
7871 * gdbtypes.c (add_dyn_prop): Rename to...
7872 (type::add_dyn_prop): ... this.
7873
24e99c6c
SM
78742020-05-07 Simon Marchi <simon.marchi@efficios.com>
7875
7876 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
7877 (get_dyn_prop): Remove. Update all users to use
7878 type::dyn_prop.
7879 * gdbtypes.c (get_dyn_prop): Rename to...
7880 (type::dyn_prop): ... this.
7881
0d4bf016
SM
78822020-05-06 Simon Marchi <simon.marchi@efficios.com>
7883
7884 * gdbtypes.h (struct main_type) <flag_static>: Remove.
7885
ac4a4f1c
SM
78862020-05-06 Simon Marchi <simon.marchi@efficios.com>
7887
7888 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
7889 instruction, skip it if it's there.
7890
a3bbacc1
SM
78912020-05-05 Simon Marchi <simon.marchi@efficios.com>
7892
7893 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
7894
c3236f84
SM
78952020-05-04 Simon Marchi <simon.marchi@efficios.com>
7896
7897 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
7898 * gdbtypes.c (recursive_dump_type): Remove use of
7899 TYPE_INCOMPLETE.
7900
3b6acaee
TT
79012020-05-03 Tom Tromey <tom@tromey.com>
7902
7903 * breakpoint.c (catch_command, tcatch_command): Remove.
7904 (_initialize_breakpoint): Use add_basic_prefix_cmd,
7905 add_show_prefix_cmd.
7906 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
7907 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
7908 Remove.
7909 (add_internal_problem_command): Use add_basic_prefix_cmd,
7910 add_show_prefix_cmd.
7911 * mips-tdep.c (set_mipsfpu_command): Remove.
7912 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
7913 * dwarf2/index-cache.c (set_index_cache_command): Remove.
7914 (_initialize_index_cache): Use add_basic_prefix_cmd.
7915 * memattr.c (dummy_cmd): Remove.
7916 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
7917 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
7918 (_initialize_tui_win): Use add_basic_prefix_cmd,
7919 add_show_prefix_cmd.
7920 * cli/cli-logging.c (set_logging_command): Remove.
7921 (_initialize_cli_logging): Use add_basic_prefix_cmd,
7922 add_show_prefix_cmd.
7923 (show_logging_command): Remove.
7924 * target.c (target_command): Remove.
7925 (add_target): Use add_basic_prefix_cmd.
7926
a51119cd
HD
79272020-05-02 Hannes Domani <ssbssa@yahoo.de>
7928
7929 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
7930
652fc23a 79312020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 7932
652fc23a
PW
7933 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
7934 info_command.
7935
117539e6
KR
79362020-04-30 Kamil Rytarowski <n54@gmx.com>
7937
7938 * nbsd-nat.c (nbsd_enable_proc_events)
7939 (nbsd_nat_target::post_startup_inferior): Add.
7940 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
7941 (nbsd_nat_target::update_thread_list): Rewrite.
7942 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
7943 "PTRACE_LWP_CREATE".
7944 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
7945
102e38eb 79462020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 7947
102e38eb
PW
7948 * stack.c (_initialize_stack): Remove duplicated creation
7949 of "frame" command and "f" alias.
7950
ee9d1e5f
HD
79512020-04-30 Hannes Domani <ssbssa@yahoo.de>
7952
7953 PR gdb/18706
7954 * gdbtypes.c (check_typedef): Calculate size of array of
7955 stubbed type.
7956
627c7fb8
HD
79572020-04-30 Hannes Domani <ssbssa@yahoo.de>
7958
7959 PR gdb/15559
7960 * i386-tdep.c (i386_push_dummy_call): Call
7961 i386_thiscall_push_dummy_call.
7962 (i386_thiscall_push_dummy_call): New function.
7963 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
7964 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
7965 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
7966
ffc2844e
SM
79672020-04-29 Simon Marchi <simon.marchi@efficios.com>
7968
7969 * gdbarch.sh (do_read): Add shellcheck disable directive for
7970 warning SC2162.
7971
1207375d
SM
79722020-04-29 Simon Marchi <simon.marchi@efficios.com>
7973
7974 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
7975 "referenced but not assigned" warning.
7976
9fdb2916
SM
79772020-04-29 Simon Marchi <simon.marchi@efficios.com>
7978
7979 * gdbarch.sh: Remove code that sets fallbackdefault.
7980
759cea5e
SM
79812020-04-29 Simon Marchi <simon.marchi@efficios.com>
7982
7983 * gdbarch.sh: Use shell operators && and || instead of
7984 -a and -o.
7985
cb02ab24
SM
79862020-04-29 Simon Marchi <simon.marchi@efficios.com>
7987
7988 * gdbarch.sh: Use $(...) instead of `...`.
7989
a6fc5ffc
SM
79902020-04-29 Simon Marchi <simon.marchi@efficios.com>
7991
7992 * gdbarch.sh: Use double quotes around variables.
7993
8d113d13
SM
79942020-04-29 Simon Marchi <simon.marchi@efficios.com>
7995
7996 * gdbarch.sh: Use %s with printf, instead of variables in the
7997 format string.
7998
ed6acedd
TT
79992020-04-29 Tom Tromey <tromey@adacore.com>
8000
8001 PR ada/25875:
8002 * dwarf2/read.c (update_enumeration_type_from_children): Compute
8003 type fields here.
8004 (read_enumeration_type): Call
8005 update_enumeration_type_from_children later. Update comments.
8006 (process_enumeration_scope): Don't create type fields.
8007
b68b1b58
KR
80082020-04-29 Kamil Rytarowski <n54@gmx.com>
8009
8010 * nbsd-tdep.c: Include "xml-syscall.h".
8011 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
8012
f94b2e03
KR
80132020-04-29 Kamil Rytarowski <n54@gmx.com>
8014
8015 * nbsd-nat.c: Include "sys/wait.h".
8016 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
8017 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
8018 (nbsd_nat_target::remove_exec_catchpoint)
8019 (nbsd_nat_target::set_syscall_catchpoint): Add.
8020 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
8021 (nbsd_nat_target::insert_exec_catchpoint)
8022 (nbsd_nat_target::remove_exec_catchpoint)
8023 (nbsd_nat_target::set_syscall_catchpoint): Add.
8024 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
8025 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
8026 `nbsd_get_syscall_number'.
8027
fc49bc72
TT
80282020-04-29 Tom Tromey <tom@tromey.com>
8029
8030 * stack.c (print_block_frame_labels): Remove.
8031
d642b692
HD
80322020-04-29 Hannes Domani <ssbssa@yahoo.de>
8033
8034 PR gdb/17320
8035 * ada-valprint.c (val_print_packed_array_elements): Move array
8036 end bracket to new line.
8037 (ada_val_print_string): Remove extra spaces before first array
8038 element.
8039 * c-valprint.c (c_value_print_array): Likewise.
8040 * m2-valprint.c (m2_print_array_contents): Likewise.
8041 (m2_value_print_inner): Likewise.
8042 * p-valprint.c (pascal_value_print_inner): Likewise.
8043 * valprint.c (generic_val_print_array): Likewise.
8044 (value_print_array_elements): Move first array element and array
8045 end bracket to new line.
8046
ea90f227
TV
80472020-04-29 Tom de Vries <tdevries@suse.de>
8048
8049 PR symtab/25889
8050 * linespec.c (find_method): Fix ix calculation.
8051
4498ef4f
KR
80522020-04-28 Kamil Rytarowski <n54@gmx.com>
8053
8054 * syscalls/update-netbsd.sh: New file.
8055 * syscalls/netbsd.xml: Regenerate.
8056 * data-directory/Makefile.in: Register `netbsd.xml' in
8057 `SYSCALLS_FILES'.
8058
a55e30b5
SM
80592020-04-28 Simon Marchi <simon.marchi@efficios.com>
8060
8061 * syscalls/update-freebsd.sh: Add double quotes.
8062
2b2fbab8
TT
80632020-04-28 Tom Tromey <tom@tromey.com>
8064
8065 * NEWS: Update.
8066 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
8067 (cmdpy_init): Allow class_tui.
8068
a65189c9
TV
80692020-04-28 Mark Williams <mark@myosotissp.com>
8070
8071 PR gdb/24480
8072 * dwarf2read.c: Add missing assingments to list_in_scope when
8073 start_symtab was already called.
8074
1b95cdb7
SM
80752020-04-28 Simon Marchi <simon.marchi@efficios.com>
8076
8077 PR gdb/25881
8078 * dwarf2/read.c (offset_map_type): Use
8079 gdb:hash_enum<sect_offset> as hash function.
8080
15cd93d0
TV
80812020-04-28 Tom de Vries <tdevries@suse.de>
8082
8083 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
8084 with DW_AT_signature.
8085
1eb39914
SM
80862020-04-27 Simon Marchi <simon.marchi@efficios.com>
8087
8088 * configure.ac: Remove check for fs_base/gs_base in
8089 user_regs_struct.
8090 * configure: Re-generate.
8091 * config.in: Re-generate.
8092 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
8093 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
8094 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
8095
991a3e2e
LM
80962020-04-27 Luis Machado <luis.machado@linaro.org>
8097
8098 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
8099 problematic inline frame unwinding situation.
8100 * frame.c (frame_id_computed_p): New function.
8101 * frame.h (frame_id_computed_p): New prototype.
8102
361ba0e8
TT
81032020-04-26 Tom Tromey <tom@tromey.com>
8104
8105 * command.h (enum command_class) <class_pseudo>: Remove.
8106
bc3609fd
PW
81072020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8108
8109 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
8110 and whitespace.
8111
b9771db7
KR
81122020-04-25 Kamil Rytarowski <n54@gmx.com>
8113
ec16513e
SM
8114 * inf-ptrace.c (inf_ptrace_target::wait): Remove
8115 `PT_GET_PROCESS_STATE' block.
b9771db7 8116
7151c1af
TT
81172020-04-24 Tom Tromey <tom@tromey.com>
8118
8119 * symtab.h (symbol_get_demangled_name): Don't declare.
8120 * symtab.c (symbol_get_demangled_name): Remove.
8121 (general_symbol_info::natural_name)
8122 (general_symbol_info::demangled_name): Update.
8123
906bb4c5
TT
81242020-04-24 Tom Tromey <tom@tromey.com>
8125
8126 PR rust/25025:
8127 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
8128
bcfe6157
TT
81292020-04-24 Tom Tromey <tom@tromey.com>
8130
8131 PR symtab/12707:
8132 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
8133 exists.
8134 (new_symbol): Likewise.
8135 * compile/compile-object-load.c (get_out_value_type): Use
8136 symbol_matches_search_name.
8137
f049a313
TT
81382020-04-24 Tom Tromey <tom@tromey.com>
8139
8140 * dwarf2/read.c (add_partial_symbol): Do not call
8141 compute_and_set_names.
8142
76e288d1
TT
81432020-04-24 Tom Tromey <tom@tromey.com>
8144
8145 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
8146 overload.
8147
2467f4f6
TT
81482020-04-24 Tom Tromey <tom@tromey.com>
8149
8150 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
8151 (add_psymbol_to_list): New overload. Make old overload call new
8152 one.
8153 * psympriv.h (add_psymbol_to_list): New overload.
8154
e61108c9
TT
81552020-04-24 Tom Tromey <tom@tromey.com>
8156
8157 * dwarf2/read.c (partial_die_info::read) <case
8158 DW_AT_linkage_name>: Use value_as_string.
8159 (dwarf2_string_attr): Use value_as_string.
8160 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
8161 method.
8162 * dwarf2/attribute.c (attribute::value_as_string): New method.
8163
8c87a452
TT
81642020-04-24 Tom Tromey <tom@tromey.com>
8165
8166 * symtab.c (general_symbol_info::natural_name)
8167 (general_symbol_info::demangled_name): Check for language_rust.
8168
787de330
TT
81692020-04-24 Tom Tromey <tom@tromey.com>
8170
8171 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
8172 (dwarf2_physname): ... from here.
8173 (partial_die_info::read): Add Rust "{" hack.
8174
ff985671
TT
81752020-04-24 Tom Tromey <tom@tromey.com>
8176
8177 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
8178 method.
8179 (symbol_set_demangled_name): Don't declare.
8180 * symtab.c (general_symbol_info::set_demangled_name): Rename from
8181 symbol_set_demangled_name.
8182 (general_symbol_info::set_language)
8183 (general_symbol_info::compute_and_set_names): Update.
8184 * minsyms.c (minimal_symbol_reader::install): Update.
8185 * dwarf2/read.c (new_symbol): Update.
8186
1acda803
TT
81872020-04-24 Tom Tromey <tromey@adacore.com>
8188
8189 PR python/23662:
8190 * python/py-type.c (convert_field): Handle
8191 FIELD_LOC_KIND_DWARF_BLOCK.
8192 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
8193 (typy_get_dynamic): Nw function.
8194 (type_object_getset): Add "dynamic".
8195 * NEWS: Add entry.
8196
d656f129
TT
81972020-04-24 Tom Tromey <tromey@adacore.com>
8198
8199 * ada-typeprint.c (print_choices, print_variant_part)
8200 (print_record_field_types_dynamic): New functions.
8201 (print_record_field_types): Use print_record_field_types_dynamic.
8202
7d79de9a
TT
82032020-04-24 Tom Tromey <tromey@adacore.com>
8204
8205 * dwarf2/read.c (handle_data_member_location): New overload.
8206 (dwarf2_add_field): Use it.
8207 (decode_locdesc): Add "computed" parameter. Update comment.
8208 * gdbtypes.c (is_dynamic_type_internal): Also look for
8209 FIELD_LOC_KIND_DWARF_BLOCK.
8210 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
8211 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
8212 virtual base classes.
8213 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
8214 FIELD_LOC_KIND_DWARF_BLOCK.
8215
f8e89861
TT
82162020-04-24 Tom Tromey <tromey@adacore.com>
8217
8218 * dwarf2/read.c (read_structure_type): Handle dynamic length.
8219 * gdbtypes.c (is_dynamic_type_internal): Check
8220 TYPE_HAS_DYNAMIC_LENGTH.
8221 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
8222 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
8223 New macros.
8224 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
8225 constant.
8226
9c6a1327
TT
82272020-04-24 Tom Tromey <tromey@adacore.com>
8228
8229 * dwarf2/read.c (struct variant_field): Rewrite.
8230 (struct variant_part_builder): New.
8231 (struct nextfield): Remove "variant" field. Add "offset".
8232 (struct field_info): Add "current_variant_part" and
8233 "variant_parts".
8234 (alloc_discriminant_info): Remove.
8235 (alloc_rust_variant): New function.
8236 (quirk_rust_enum): Update.
8237 (dwarf2_add_field): Set "offset" member. Don't handle
8238 DW_TAG_variant_part.
8239 (offset_map_type): New typedef.
8240 (convert_variant_range, create_one_variant)
8241 (create_one_variant_part, create_variant_parts)
8242 (add_variant_property): New functions.
8243 (dwarf2_attach_fields_to_type): Call add_variant_property.
8244 (read_structure_type): Don't handle DW_TAG_variant_part.
8245 (handle_variant_part, handle_variant): New functions.
8246 (handle_struct_member_die): Use them.
8247 (process_structure_scope): Don't handle variant parts.
8248 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
8249 (struct discriminant_info): Remove.
8250 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
8251 (struct main_type) <flag_discriminated_union>: Remove.
8252 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
8253 (rust_enum_variant): Return int. Remove "contents". Rewrite.
8254 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
8255 Update.
8256 * valops.c (value_union_variant): Remove.
8257 * value.h (value_union_variant): Don't declare.
8258
b249d2c2
TT
82592020-04-24 Tom Tromey <tromey@adacore.com>
8260
8261 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
8262 (ada_value_primitive_packed_val): Update.
8263 * ada-valprint.c (ada_value_print_1): Update.
8264 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
8265 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
8266 just an address. Use evaluate_for_locexpr_baton.
8267 (dwarf2_evaluate_property): Update.
8268 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
8269 array_view.
8270 * findvar.c (default_read_var_value): Update.
8271 * gdbtypes.c (compute_variant_fields_inner)
8272 (resolve_dynamic_type_internal): Update.
8273 (resolve_dynamic_type): Change type of valaddr parameter.
8274 * gdbtypes.h (resolve_dynamic_type): Update.
8275 * valarith.c (value_subscripted_rvalue): Update.
8276 * value.c (value_from_contents_and_address): Update.
8277
61122aa9
TT
82782020-04-24 Tom Tromey <tromey@adacore.com>
8279
8280 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
8281 "push_initial_value" parameter.
8282 (dwarf2_evaluate_property): Likewise.
8283 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
8284
ef83a141
TT
82852020-04-24 Tom Tromey <tromey@adacore.com>
8286
8287 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
8288 (variant::matches, compute_variant_fields_recurse)
8289 (compute_variant_fields_inner, compute_variant_fields): New
8290 functions.
8291 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
8292 Use resolved_type after type is made.
8293 (operator==): Add new cases.
8294 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
8295 (struct discriminant_range, struct variant, struct variant_part):
8296 New.
8297 (union dynamic_prop_data) <variant_parts, original_type>: New
8298 members.
8299 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
8300 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
8301 constants.
8302 * value.c (unpack_bits_as_long): Now public.
8303 * value.h (unpack_bits_as_long): Declare.
8304
675127ec
TT
83052020-04-24 Tom Tromey <tromey@adacore.com>
8306
8307 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
8308 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
8309
9852ceef
HD
83102020-04-24 Hannes Domani <ssbssa@yahoo.de>
8311
8312 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
8313
7632c6ce
KR
83142020-04-24 Kamil Rytarowski <n54@gmx.com>
8315
8316 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
8317 (remove_fork_catchpoint, post_startup_inferior)
8318 (post_attach): Move...
8319 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
8320 (remove_fork_catchpoint, post_startup_inferior)
8321 (post_attach): ...here.
8322 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
8323 (remove_fork_catchpoint, post_startup_inferior)
8324 (post_attach): Move...
8325 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
8326 (remove_fork_catchpoint, post_startup_inferior)
8327 (post_attach): ...here.
8328
7be2bb4f
TT
83292020-04-24 Tom Tromey <tromey@adacore.com>
8330
8331 * nat/windows-nat.h (struct windows_thread_info)
8332 <pc_adjusted>: New member.
8333 * windows-nat.c (windows_fetch_one_register): Check
8334 pc_adjusted.
8335 (windows_nat_target::get_windows_debug_event)
8336 (windows_nat_target::wait): Set pc_adjusted.
8337
f80cb3b4
TV
83382020-04-24 Tom de Vries <tdevries@suse.de>
8339
8340 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
8341 Run gdb-add-index inside temp dir.
8342
29514b87
TT
83432020-04-23 Tom Tromey <tromey@adacore.com>
8344
8345 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
8346 in loop.
8347
5939967b
LM
83482020-04-23 Luis Machado <luis.machado@linaro.org>
8349
8350 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
8351 get_frame_register instead of gdbarch_unwind_pc.
8352
70bc38f5
TV
83532020-04-23 Tom de Vries <tdevries@suse.de>
8354
8355 * symtab.c (lookup_global_symbol): Prefer def over decl.
8356
de82891c
TV
83572020-04-23 Tom de Vries <tdevries@suse.de>
8358
8359 PR symtab/25807
8360 * block.c (best_symbol, better_symbol): Promote to external.
8361 * block.h (best_symbol, better_symbol): Declare.
8362 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
8363 decl.
8364
ecc6c606
TT
83652020-04-23 Tom Tromey <tromey@adacore.com>
8366
8367 PR ada/25837:
8368 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
8369 "const char *", not a "const std::string &".
8370 <name_and_matcher::operator==>: Update.
8371 * unittests/lookup_name_info-selftests.c: Change type of
8372 "result".
8373
740480b8
TT
83742020-04-23 Tom Tromey <tom@tromey.com>
8375
8376 * inferior.h (iterate_over_inferiors): Don't declare.
8377 * inferior.c (iterate_over_inferiors): Remove.
8378 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
8379 Remove.
8380 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
8381 use iterate_over_inferiors.
8382 (darwin_resume_inferior_it)
8383 (struct resume_inferior_threads_param)
8384 (darwin_resume_inferior_threads_it): Remove.
8385 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
8386
ae3ab1f0
TV
83872020-04-23 Tom de Vries <tdevries@suse.de>
8388
8389 * blockframe.c (find_pc_partial_function): Use
8390 find_pc_sect_compunit_symtab rather than
8391 objfile->sf->qf->find_pc_sect_compunit_symtab.
8392
317d2668
TV
83932020-04-22 Tom de Vries <tdevries@suse.de>
8394
8395 PR symtab/25764
8396 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
8397 in psymtabs.
8398
eea9e357
TV
83992020-04-22 Tom de Vries <tdevries@suse.de>
8400
8401 PR symtab/25801
8402 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
8403 symtabs.
8404
3d5afab3
TV
84052020-04-22 Tom de Vries <tdevries@suse.de>
8406
8407 PR symtab/25700
8408 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
8409 CU if already created.
8410
d43b7a2d
TBA
84112020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8412
8413 * infrun.c (displaced_step_fixup): Switch to the event_thread
8414 before calling displaced_step_restore, not after.
8415
d89edf9b
MM
84162020-04-21 Markus Metzger <markus.t.metzger@intel.com>
8417
8418 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
8419 its inferior is not recorded by us.
8420 (record_btrace_target_open): Replace call to
8421 all_non_exited_threads () with call to current_inferior
8422 ()->non_exited_threads ().
8423 (record_btrace_target::stop_recording): Likewise.
8424 (record_btrace_target::close): Likewise.
8425 (record_btrace_target::wait): Likewise.
8426 (record_btrace_target::record_stop_replaying): Likewise.
8427
5897fd49
MM
84282020-04-21 Markus Metzger <markus.t.metzger@intel.com>
8429
8430 * btrace.c (btrace_enable): Throw an error on double enables and
8431 when enabling recording fails.
8432 (btrace_disable): Throw an error if the thread is not recorded.
8433
1a476b6d
MM
84342020-04-21 Markus Metzger <markus.t.metzger@intel.com>
8435
8436 * record-btrace.c (record_btrace_target::fetch_registers): Forward
8437 request if we do not have a thread_info.
8438
4778a5f8
TV
84392020-04-21 Tom de Vries <tdevries@suse.de>
8440
8441 PR gdb/25471
8442 * thread.c
8443 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
8444 exception in get_frame_id.
8445
0fa7617d
TT
84462020-04-20 Tom Tromey <tromey@adacore.com>
8447
8448 * python/python.c (struct gdbpy_event): Mark move constructor as
8449 noexcept.
8450 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
8451 constructor as noexcept.
8452 * completer.h (struct completion_result): Mark move constructor as
8453 noexcept.
8454 * completer.c (completion_result::completion_result): Use
8455 initialization style. Don't call reset_match_list.
8456
ad23bda0
MS
84572020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
8458
8459 * MAINTAINERS (Write After Approval): Add myself.
8460
45e1f031
TT
84612020-04-18 Tom Tromey <tom@tromey.com>
8462
8463 * windows-tdep.c (init_w32_command_list)
8464 (w32_prefix_command_valid): Restore.
8465 (_initialize_windows_tdep): Call init_w32_command_list.
8466
08feed99
TT
84672020-04-18 Tom Tromey <tom@tromey.com>
8468
8469 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
8470 * value.c (value_fn_field): Update.
8471 * valops.c (find_function_in_inferior)
8472 (value_allocate_space_in_inferior): Update.
8473 * tui/tui-winsource.c (tui_update_source_windows_with_line):
8474 Update.
8475 * tui/tui-source.c (tui_source_window::set_contents): Update.
8476 * symtab.c (lookup_global_or_static_symbol)
8477 (find_function_start_sal_1, skip_prologue_sal)
8478 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
8479 * symmisc.c (dump_msymbols, dump_symtab_1)
8480 (maintenance_print_one_line_table): Update.
8481 * symfile.c (init_entry_point_info, section_is_mapped)
8482 (list_overlays_command, simple_read_overlay_table)
8483 (simple_overlay_update_1): Update.
8484 * stap-probe.c (handle_stap_probe): Update.
8485 * stabsread.c (dbx_init_float_type, define_symbol)
8486 (read_one_struct_field, read_enum_type, read_range_type): Update.
8487 * source.c (info_line_command): Update.
8488 * python/python.c (gdbpy_source_objfile_script)
8489 (gdbpy_execute_objfile_script): Update.
8490 * python/py-type.c (save_objfile_types): Update.
8491 * python/py-objfile.c (py_free_objfile): Update.
8492 * python/py-inferior.c (python_new_objfile): Update.
8493 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
8494 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
8495 (maintenance_check_psymtabs): Update.
8496 * printcmd.c (info_address_command): Update.
8497 * objfiles.h (struct objfile) <arch>: New method, from
8498 get_objfile_arch.
8499 (get_objfile_arch): Don't declare.
8500 * objfiles.c (get_objfile_arch): Remove.
8501 (filter_overlapping_sections): Update.
8502 * minsyms.c (msymbol_is_function): Update.
8503 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
8504 (output_nondebug_symbol): Update.
8505 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
8506 (mdebug_expand_psymtab): Update.
8507 * machoread.c (macho_add_oso_symfile): Update.
8508 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
8509 Update.
8510 * linux-fork.c (checkpoint_command): Update.
8511 * linespec.c (convert_linespec_to_sals): Update.
8512 * jit.c (finalize_symtab): Update.
8513 * infrun.c (insert_exception_resume_from_probe): Update.
8514 * ia64-tdep.c (ia64_find_unwind_table): Update.
8515 * hppa-tdep.c (internalize_unwinds): Update.
8516 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
8517 Update.
8518 * gcore.c (call_target_sbrk): Update.
8519 * elfread.c (record_minimal_symbol, elf_symtab_read)
8520 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
8521 (elf_gnu_ifunc_resolve_by_got): Update.
8522 * dwarf2/read.c (create_addrmap_from_index)
8523 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
8524 (read_debug_names_from_section)
8525 (process_psymtab_comp_unit_reader, add_partial_symbol)
8526 (add_partial_subprogram, process_full_comp_unit)
8527 (read_file_scope, read_func_scope, read_lexical_block_scope)
8528 (read_call_site_scope, dwarf2_ranges_read)
8529 (dwarf2_record_block_ranges, dwarf2_add_field)
8530 (mark_common_block_symbol_computed, read_tag_pointer_type)
8531 (read_tag_string_type, dwarf2_init_float_type)
8532 (dwarf2_init_complex_target_type, read_base_type)
8533 (partial_die_info::read, partial_die_info::read)
8534 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
8535 (dwarf2_fetch_die_loc_sect_off): Update.
8536 * dwarf2/loc.c (dwarf2_find_location_expression)
8537 (class dwarf_evaluate_loc_desc, rw_pieced_value)
8538 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
8539 (dwarf2_loc_desc_get_symbol_read_needs)
8540 (locexpr_describe_location_piece, locexpr_describe_location_1)
8541 (loclist_describe_location): Update.
8542 * dwarf2/index-write.c (write_debug_names): Update.
8543 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
8544 * dtrace-probe.c (dtrace_process_dof): Update.
8545 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
8546 (process_one_symbol): Update.
8547 * ctfread.c (ctf_init_float_type, read_base_type): Update.
8548 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
8549 (coff_read_enum_type): Update.
8550 * cli/cli-cmds.c (edit_command, list_command): Update.
8551 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
8552 * breakpoint.c (create_overlay_event_breakpoint)
8553 (create_longjmp_master_breakpoint)
8554 (create_std_terminate_master_breakpoint)
8555 (create_exception_master_breakpoint, get_sal_arch): Update.
8556 * block.c (block_gdbarch): Update.
8557 * annotate.c (annotate_source_line): Update.
8558
0743fc83
TT
85592020-04-17 Tom Tromey <tromey@adacore.com>
8560
8561 * auto-load.c (show_auto_load_cmd): Remove.
8562 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
8563 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
8564 (maintenance_print_arc_command): Remove.
8565 * tui/tui-win.c (tui_command): Remove.
8566 (tui_get_cmd_list): Use add_basic_prefix_cmd.
8567 * tui/tui-layout.c (tui_layout_command): Remove.
8568 (_initialize_tui_layout): Use add_basic_prefix_cmd.
8569 * python/python.c (user_set_python, user_show_python): Remove.
8570 (_initialize_python): Use add_basic_prefix_cmd,
8571 add_show_prefix_cmd.
8572 * guile/guile.c (set_guile_command, show_guile_command): Remove.
8573 (install_gdb_commands): Use add_basic_prefix_cmd,
8574 add_show_prefix_cmd.
8575 (info_guile_command): Remove.
8576 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
8577 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
8578 add_show_prefix_cmd.
8579 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
8580 Remove do_set and do_show parameters.
8581 * cli/cli-style.c (set_style, show_style): Remove.
8582 (_initialize_cli_style): Use add_basic_prefix_cmd,
8583 add_show_prefix_cmd.
8584 (cli_style_option::add_setshow_commands): Remove do_set and
8585 do_show parameters.
8586 (cli_style_option::add_setshow_commands): Use
8587 add_basic_prefix_cmd, add_show_prefix_cmd.
8588 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
8589 (set_style_name): Remove.
8590 * cli/cli-dump.c (dump_command, append_command): Remove.
8591 (srec_dump_command, ihex_dump_command, verilog_dump_command)
8592 (tekhex_dump_command, binary_dump_command)
8593 (binary_append_command): Remove.
8594 (_initialize_cli_dump): Use add_basic_prefix_cmd.
8595 * windows-tdep.c (w32_prefix_command_valid): Remove global.
8596 (init_w32_command_list): Remove; move into ...
8597 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
8598 * valprint.c (set_print, show_print, set_print_raw)
8599 (show_print_raw): Remove.
8600 (_initialize_valprint): Use add_basic_prefix_cmd,
8601 add_show_prefix_cmd.
8602 * typeprint.c (set_print_type, show_print_type): Remove.
8603 (_initialize_typeprint): Use add_basic_prefix_cmd,
8604 add_show_prefix_cmd.
8605 * record.c (set_record_command, show_record_command): Remove.
8606 (_initialize_record): Use add_basic_prefix_cmd,
8607 add_show_prefix_cmd.
8608 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
8609 add_show_prefix_cmd.
8610 (info_command, show_command, set_debug, show_debug): Remove.
8611 * top.h (set_history, show_history): Don't declare.
8612 * top.c (set_history, show_history): Remove.
8613 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
8614 (unset_tdesc_cmd): Remove.
8615 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
8616 add_show_prefix_cmd.
8617 * symtab.c (info_module_command): Remove.
8618 (_initialize_symtab): Use add_basic_prefix_cmd.
8619 * symfile.c (overlay_command): Remove.
8620 (_initialize_symfile): Use add_basic_prefix_cmd.
8621 * sparc64-tdep.c (info_adi_command): Remove.
8622 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
8623 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
8624 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
8625 add_show_prefix_cmd.
8626 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
8627 (_initialize_serial): Use add_basic_prefix_cmd,
8628 add_show_prefix_cmd.
8629 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
8630 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
8631 add_show_prefix_cmd.
8632 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
8633 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
8634 add_show_prefix_cmd.
8635 * riscv-tdep.c (show_riscv_command, set_riscv_command)
8636 (show_debug_riscv_command, set_debug_riscv_command): Remove.
8637 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
8638 add_show_prefix_cmd.
8639 * remote.c (remote_command, set_remote_cmd): Remove.
8640 (_initialize_remote): Use add_basic_prefix_cmd.
8641 * record-full.c (set_record_full_command)
8642 (show_record_full_command): Remove.
8643 (_initialize_record_full): Use add_basic_prefix_cmd,
8644 add_show_prefix_cmd.
8645 * record-btrace.c (cmd_set_record_btrace)
8646 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
8647 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
8648 (cmd_show_record_btrace_pt): Remove.
8649 (_initialize_record_btrace): Use add_basic_prefix_cmd,
8650 add_show_prefix_cmd.
8651 * ravenscar-thread.c (set_ravenscar_command)
8652 (show_ravenscar_command): Remove.
8653 (_initialize_ravenscar): Use add_basic_prefix_cmd,
8654 add_show_prefix_cmd.
8655 * mips-tdep.c (show_mips_command, set_mips_command)
8656 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
8657 add_show_prefix_cmd.
8658 * maint.c (maintenance_command, maintenance_info_command)
8659 (maintenance_check_command, maintenance_print_command)
8660 (maintenance_set_cmd, maintenance_show_cmd): Remove.
8661 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
8662 add_show_prefix_cmd.
8663 (show_per_command_cmd): Remove.
8664 * maint-test-settings.c (maintenance_set_test_settings_cmd):
8665 Remove.
8666 (maintenance_show_test_settings_cmd): Remove.
8667 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
8668 add_show_prefix_cmd.
8669 * maint-test-options.c (maintenance_test_options_command):
8670 Remove.
8671 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
8672 * macrocmd.c (macro_command): Remove
8673 (_initialize_macrocmd): Use add_basic_prefix_cmd.
8674 * language.c (set_check, show_check): Remove.
8675 (_initialize_language): Use add_basic_prefix_cmd,
8676 add_show_prefix_cmd.
8677 * infcmd.c (unset_command): Remove.
8678 (_initialize_infcmd): Use add_basic_prefix_cmd.
8679 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
8680 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
8681 add_show_prefix_cmd.
8682 * go32-nat.c (go32_info_dos_command): Remove.
8683 (_initialize_go32_nat): Use add_basic_prefix_cmd.
8684 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
8685 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
8686 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
8687 (_initialize_frame): Use add_basic_prefix_cmd,
8688 add_show_prefix_cmd.
8689 * dcache.c (set_dcache_command, show_dcache_command): Remove.
8690 (_initialize_dcache): Use add_basic_prefix_cmd,
8691 add_show_prefix_cmd.
8692 * cp-support.c (maint_cplus_command): Remove.
8693 (_initialize_cp_support): Use add_basic_prefix_cmd.
8694 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
8695 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
8696 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
8697 add_basic_prefix_cmd, add_show_prefix_cmd.
8698 * breakpoint.c (save_command): Remove.
8699 (_initialize_breakpoint): Use add_basic_prefix_cmd.
8700 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
8701 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
8702 add_show_prefix_cmd.
8703 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
8704 (set_ada_command, show_ada_command): Remove.
8705 (_initialize_ada_language): Use add_basic_prefix_cmd,
8706 add_show_prefix_cmd.
8707 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
8708
3557f442
KR
87092020-04-16 Kamil Rytarowski <n54@gmx.com>
8710
8711 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
8712 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
8713
16197208
SM
87142020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
8715
8716 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
8717 warning messages.
8718
00ac85d3
SM
87192020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
8720
8721 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
8722 import table is not at beginning of .idata section.
8723
381ce63f
PA
87242020-04-16 Pedro Alves <palves@redhat.com>
8725
8726 * inferior.c (delete_inferior): Use delete operator directly
8727 instead of delete_program_space.
8728 * progspace.c (add_program_space): New, factored out from
8729 program_space::program_space.
8730 (remove_program_space): New, factored out from
8731 delete_program_space.
8732 (program_space::program_space): Remove intro comment. Rewrite.
8733 (program_space::~program_space): Remove intro comment. Call
8734 remove_program_space.
8735 (delete_program_space): Delete.
8736 * progspace.h (program_space::program_space): Make explicit. Move
8737 intro comment here, adjusted.
8738 (program_space::~program_space): Move intro comment here,
8739 adjusted.
8740 (delete_program_space): Remove.
8741
a010605f
TT
87422020-04-16 Tom Tromey <tromey@adacore.com>
8743
8744 * windows-nat.c (windows_nat::handle_access_violation): New
8745 function.
8746 * nat/windows-nat.h (handle_access_violation): Declare.
8747 * nat/windows-nat.c (handle_exception): Move Cygwin code to
8748 windows-nat.c. Call handle_access_violation.
8749
efba5c23
TV
87502020-04-16 Tom de Vries <tdevries@suse.de>
8751
8752 PR symtab/25791
8753 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
8754 CUs without psymtab.
8755
97ed802d
KB
87562020-04-16 Kevin Buettner <kevinb@redhat.com>
8757
8758 * python/python.c (do_start_initialization): Don't call
8759 PyEval_InitThreads for Python 3.9 and beyond.
8760
c7d64809
KR
87612020-04-15 Kamil Rytarowski <n54@gmx.com>
8762
8763 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
8764 thread functions.
8765 (obsd_nat_target::wait): Likewise.
8766
ce127a96
TT
87672020-04-15 Tom Tromey <tromey@adacore.com>
8768
8769 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
8770 (DEBUG_EXCEPT): Use debug_printf.
8771
99f1bc6a
AB
87722020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
8773
8774 * completer.c (class completion_tracker::completion_hash_entry)
8775 <hash_name>: New member function.
8776 (completion_tracker::discard_completions): New callback to hash a
8777 completion_hash_entry, pass this to htab_create_alloc.
8778
a0e9b532
JT
87792016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
8780
8781 * windows-nat.c (windows_make_so): Warn rather than stopping with
8782 an error if realpath() fails.
8783
06ca5dd4
KR
87842020-04-14 Kamil Rytarowski <n54@gmx.com>
8785
8786 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
8787 (nbsd_nat_target::info_proc): Add do_status.
8788
194d088f
TV
87892020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
8790 Tom de Vries <tdevries@suse.de>
8791
8792 PR symtab/25718
8793 * psympriv.h (struct partial_symtab::read_symtab)
8794 (struct partial_symtab::expand_psymtab)
8795 (struct partial_symtab::read_dependencies): Update comments.
8796 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
8797 read_symtab for includer.
8798 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
8799 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
8800 (struct dwarf2_include_psymtab::m_readin): Remove.
8801 (struct dwarf2_include_psymtab::includer): New member function.
8802 (dwarf2_psymtab::expand_psymtab): Assert !readin.
8803
c1a66c06
TV
88042020-04-14 Tom de Vries <tdevries@suse.de>
8805
8806 PR symtab/25720
8807 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
8808 with NULL symbol_matcher and lookup_name.
8809 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
8810 and lookup_name.
8811 * dwarf2/read.c (dw2_expand_symtabs_matching)
8812 (dw2_debug_names_expand_symtabs_matching): Same.
8813 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
8814 Make lookup_name a pointer. Update comment.
8815 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
8816 lookup_name being a pointer.
8817 * symfile.c (expand_symtabs_matching): Same.
8818 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
8819 * linespec.c (iterate_over_all_matching_symtabs): Same.
8820
400b5eca
TT
88212020-04-13 Tom Tromey <tom@tromey.com>
8822
8823 * run-on-main-thread.c: Update include.
8824 * unittests/main-thread-selftests.c: Update include.
8825 * tui/tui-win.c: Update include.
8826 * tui/tui-io.c: Update include.
8827 * tui/tui-interp.c: Update include.
8828 * tui/tui-hooks.c: Update include.
8829 * top.h: Update include.
8830 * top.c: Update include.
8831 * ser-base.c: Update include.
8832 * remote.c: Update include.
8833 * remote-notif.c: Update include.
8834 * remote-fileio.c: Update include.
8835 * record-full.c: Update include.
8836 * record-btrace.c: Update include.
8837 * python/python.c: Update include.
8838 * posix-hdep.c: Update include.
8839 * mingw-hdep.c: Update include.
8840 * mi/mi-main.c: Update include.
8841 * mi/mi-interp.c: Update include.
8842 * main.c: Update include.
8843 * linux-nat.c: Update include.
8844 * interps.c: Update include.
8845 * infrun.c: Update include.
8846 * inf-loop.c: Update include.
8847 * event-top.c: Update include.
8848 * event-loop.c: Move to ../gdbsupport/.
8849 * event-loop.h: Move to ../gdbsupport/.
8850 * async-event.h: Update include.
8851 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
8852
93b54c8e
TT
88532020-04-13 Tom Tromey <tom@tromey.com>
8854
8855 * tui/tui-win.c: Include async-event.h.
8856 * remote.c: Include async-event.h.
8857 * remote-notif.c: Include async-event.h.
8858 * record-full.c: Include async-event.h.
8859 * record-btrace.c: Include async-event.h.
8860 * infrun.c: Include async-event.h.
8861 * event-top.c: Include async-event.h.
8862 * event-loop.h: Move some declarations to async-event.h.
8863 * event-loop.c: Don't include ser-event.h or top.h. Move some
8864 code to async-event.c.
8865 * async-event.h: New file.
8866 * async-event.c: New file.
8867 * Makefile.in (COMMON_SFILES): Add async-event.c.
8868 (HFILES_NO_SRCDIR): Add async-event.h.
8869
c1cd3163
TT
88702020-04-13 Tom Tromey <tom@tromey.com>
8871
8872 * utils.c (flush_streams): New function.
8873 * event-loop.c (gdb_wait_for_event): Call flush_streams.
8874
29f2bf4f
TT
88752020-04-13 Tom Tromey <tom@tromey.com>
8876
8877 * event-loop.c (handle_file_event): Use warning, not
8878 printf_unfiltered.
8879
98029d02
TT
88802020-04-13 Tom Tromey <tom@tromey.com>
8881
8882 * event-loop.c: Include <chrono>.
8883
06cc9596
TT
88842020-04-13 Tom Tromey <tom@tromey.com>
8885
8886 * gdb_select.h: Move to ../gdbsupport/.
8887 * event-loop.c: Update include path.
8888 * top.c: Update include path.
8889 * ser-base.c: Update include path.
8890 * ui-file.c: Update include path.
8891 * ser-tcp.c: Update include path.
8892 * guile/scm-ports.c: Update include path.
8893 * posix-hdep.c: Update include path.
8894 * ser-unix.c: Update include path.
8895 * gdb_usleep.c: Update include path.
8896 * mingw-hdep.c: Update include path.
8897 * inflow.c: Update include path.
8898 * infrun.c: Update include path.
8899 * event-top.c: Update include path.
8900
8ae8e197
TT
89012020-04-13 Tom Tromey <tom@tromey.com>
8902
8903 * configure: Rebuild.
8904 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
8905
58cf28e8
TT
89062020-04-13 Tom Tromey <tom@tromey.com>
8907
8908 * event-loop.h (start_event_loop): Don't declare.
8909 * event-loop.c (start_event_loop): Move...
8910 * main.c (start_event_loop): ...here. Now static.
8911
b7f999ae
SDJ
89122020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
8913
8914 * MAINTAINERS: Update my email address.
8915
1085dfd4
KR
89162020-04-12 Kamil Rytarowski <n54@gmx.com>
8917
8918 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
8919 IP_ALL.
8920
49d1d1f5
KR
89212020-04-12 Kamil Rytarowski <n54@gmx.com>
8922
8923 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 8924 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 8925
b4848d2a
KR
89262020-04-12 Kamil Rytarowski <n54@gmx.com>
8927
8928 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 8929 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 8930
51c133d5
KR
89312020-04-12 Kamil Rytarowski <n54@gmx.com>
8932
8933 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
8934
54b8cbd0
KR
89352020-04-11 Kamil Rytarowski <n54@gmx.com>
8936
8937 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
8938 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
8939 (nbsd_nat_target::info_proc): New functions.
8940 * nbsd-nat.c (kinfo_get_vmmap): New function.
8941 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
8942 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
8943 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
8944 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
8945 functions.
8946 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
8947 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
8948 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
8949 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
8950 (KINFO_VME_FLAG_GROWS_DOWN): New.
8951
cf83625d
AS
89522020-04-10 Artur Shepilko <nomadbyte@gmail.com>
8953
8954 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
8955 bit shift.
8956
0c4311ab
TT
89572020-04-10 Tom Tromey <tromey@adacore.com>
8958
8959 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
8960
3e65b3e9
TT
89612020-04-10 Tom Tromey <tromey@adacore.com>
8962
8963 * symtab.c (get_symbol_address, get_msymbol_address): Skip
8964 separate debug files.
8965
13302e95
HD
89662020-04-10 Hannes Domani <ssbssa@yahoo.de>
8967
8968 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
8969 Move to...
8970 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
8971 ... here.
8972 * windows-nat.c (windows_nat_target::get_windows_debug_event):
8973 Check for STATUS_WX86_BREAKPOINT.
8974 (windows_nat_target::wait): Same.
8975
bdfc1e8a
TV
89762020-04-10 Tom de Vries <tdevries@suse.de>
8977
8978 PR cli/25808
8979 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
8980
f4460aec
SM
89812020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
8982
8983 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
8984 (Write After Approval): Remove Tom de Vries.
8985
a25198bb
BE
89862020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
8987
8988 revert partially:
8989 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8990
aac66a4c
SM
8991 * buildsym.c (record_line): Fix undefined behavior and preserve
8992 lines at eof.
a25198bb 8993
206c98a6
KR
89942020-04-09 Kamil Rytarowski <n54@gmx.com>
8995
8996 * auxv.h (svr4_auxv_parse): New.
8997 * auxv.c (default_auxv_parse): Split into default_auxv_parse
8998 and generic_auxv_parse.
8999 (svr4_auxv_parse): Add.
9000 * obsd-tdep.c: Include "auxv.h".
9001 (obsd_auxv_parse): Remove.
9002 (obsd_init_abi): Remove comment.
9003 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
9004 from `obsd_auxv_parse' to `svr4_auxv_parse'.
9005 * nbsd-tdep.c: Include "auxv.h".
9006 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
9007
71fbdbaf
TT
90082020-04-08 Tom Tromey <tromey@adacore.com>
9009
9010 * nat/windows-nat.h (last_wait_event): Don't declare.
9011 (wait_for_debug_event): Update comment.
9012 * nat/windows-nat.c (last_wait_event): Now static.
9013
2c1d95e8
TT
90142020-04-08 Tom Tromey <tromey@adacore.com>
9015
9016 * windows-nat.c (wait_for_debug_event): Move to
9017 nat/windows-nat.c.
9018 * nat/windows-nat.h (wait_for_debug_event): Declare.
9019 * nat/windows-nat.c (wait_for_debug_event): Move from
9020 windows-nat.c. No longer static.
9021
d2977bc4
TT
90222020-04-08 Tom Tromey <tromey@adacore.com>
9023
9024 * windows-nat.c (get_windows_debug_event): Use
9025 fetch_pending_stop.
9026 * nat/windows-nat.h (fetch_pending_stop): Declare.
9027 * nat/windows-nat.c (fetch_pending_stop): New function.
9028
e758e19c
TT
90292020-04-08 Tom Tromey <tromey@adacore.com>
9030
9031 * windows-nat.c (windows_continue): Use matching_pending_stop and
9032 continue_last_debug_event.
9033 * nat/windows-nat.h (matching_pending_stop)
9034 (continue_last_debug_event): Declare.
9035 * nat/windows-nat.c (DEBUG_EVENTS): New define.
9036 (matching_pending_stop, continue_last_debug_event): New
9037 functions.
9038
8d30e395
TT
90392020-04-08 Tom Tromey <tromey@adacore.com>
9040
9041 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
9042 (handle_exception_result): Move to nat/windows-nat.h.
9043 (DEBUG_EXCEPTION_SIMPLE): Remove.
9044 (windows_nat::handle_ms_vc_exception): New function.
9045 (handle_exception): Move to nat/windows-nat.c.
9046 (get_windows_debug_event): Update.
9047 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
9048 nat/windows-nat.c.
9049 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
9050 (handle_exception_result): Move from windows-nat.c.
9051 (handle_exception): Declare.
9052 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
9053 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
9054 windows-nat.c.
9055
29de418d
TT
90562020-04-08 Tom Tromey <tromey@adacore.com>
9057
9058 * windows-nat.c (exception_count, event_count): Remove.
9059 (handle_exception, get_windows_debug_event)
9060 (do_initial_windows_stuff): Update.
9061
a816ba18
TT
90622020-04-08 Tom Tromey <tromey@adacore.com>
9063
9064 * windows-nat.c (windows_nat::handle_load_dll)
9065 (windows_nat::handle_unload_dll): Rename. No longer static.
9066 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
9067 Declare.
9068
a00caa12
TT
90692020-04-08 Tom Tromey <tromey@adacore.com>
9070
9071 * complaints.h (stop_whining): Declare at top-level.
9072 (complaint): Don't declare stop_whining.
9073
d41b524f
TT
90742020-04-08 Tom Tromey <tromey@adacore.com>
9075
9076 * windows-nat.c (windows_nat::handle_output_debug_string):
9077 Rename. No longer static.
9078 * nat/windows-nat.h (handle_output_debug_string): Declare.
9079
3c76026d
TT
90802020-04-08 Tom Tromey <tromey@adacore.com>
9081
9082 * windows-nat.c (current_process_handle, current_process_id)
9083 (main_thread_id, last_sig, current_event, last_wait_event)
9084 (current_windows_thread, desired_stop_thread_id, pending_stops)
9085 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
9086 (display_selectors, fake_create_process)
9087 (get_windows_debug_event): Update.
9088 * nat/windows-nat.h (current_process_handle, current_process_id)
9089 (main_thread_id, last_sig, current_event, last_wait_event)
9090 (current_windows_thread, desired_stop_thread_id, pending_stops)
9091 (struct pending_stop, siginfo_er): Move from windows-nat.c.
9092 * nat/windows-nat.c (current_process_handle, current_process_id)
9093 (main_thread_id, last_sig, current_event, last_wait_event)
9094 (current_windows_thread, desired_stop_thread_id, pending_stops)
9095 (siginfo_er): New globals. Move from windows-nat.c.
9096
9d8679cc
TT
90972020-04-08 Tom Tromey <tromey@adacore.com>
9098
9099 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
9100 (handle_load_dll): Update.
9101 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
9102
28688adf
TT
91032020-04-08 Tom Tromey <tromey@adacore.com>
9104
9105 * windows-nat.c (enum thread_disposition_type): Move to
9106 nat/windows-nat.h.
9107 (windows_nat::thread_rec): Rename from thread_rec. No longer
9108 static.
9109 (windows_add_thread, windows_nat_target::fetch_registers)
9110 (windows_nat_target::store_registers, handle_exception)
9111 (windows_nat_target::resume, get_windows_debug_event)
9112 (windows_nat_target::get_tib_address)
9113 (windows_nat_target::thread_name)
9114 (windows_nat_target::thread_alive): Update.
9115 * nat/windows-nat.h (enum thread_disposition_type): Move from
9116 windows-nat.c.
9117 (thread_rec): Declare.
9118
4834dad0
TT
91192020-04-08 Tom Tromey <tromey@adacore.com>
9120
9121 * windows-nat.c: Add "using namespace".
9122 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
9123 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
9124
65bafd5b
TT
91252020-04-08 Tom Tromey <tromey@adacore.com>
9126
9127 * nat/windows-nat.h (struct windows_thread_info): Declare
9128 destructor.
9129 * nat/windows-nat.c (~windows_thread_info): New.
9130
0a4afda3
TT
91312020-04-08 Tom Tromey <tromey@adacore.com>
9132
9133 PR gdb/22992
9134 * windows-nat.c (current_event): Update comment.
9135 (last_wait_event, desired_stop_thread_id): New globals.
9136 (struct pending_stop): New.
9137 (pending_stops): New global.
9138 (windows_nat_target) <stopped_by_sw_breakpoint>
9139 <supports_stopped_by_sw_breakpoint>: New methods.
9140 (windows_fetch_one_register): Add assertions. Adjust PC.
9141 (windows_continue): Handle pending stops. Suspend other threads
9142 when stepping. Use last_wait_event
9143 (wait_for_debug_event): New function.
9144 (get_windows_debug_event): Use wait_for_debug_event. Handle
9145 pending stops. Queue spurious stops.
9146 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
9147 (windows_nat_target::kill): Use wait_for_debug_event.
9148 * nat/windows-nat.h (struct windows_thread_info)
9149 <stopped_at_software_breakpoint>: New field.
9150 * nat/windows-nat.c (windows_thread_info::resume): Clear
9151 stopped_at_software_breakpoint.
9152
8e61ebec
TT
91532020-04-08 Tom Tromey <tromey@adacore.com>
9154
9155 * windows-nat.c (enum thread_disposition_type): New.
9156 (thread_rec): Replace "get_context" parameter with "disposition";
9157 change type.
9158 (windows_add_thread, windows_nat_target::fetch_registers)
9159 (windows_nat_target::store_registers, handle_exception)
9160 (windows_nat_target::resume, get_windows_debug_event)
9161 (windows_nat_target::get_tib_address)
9162 (windows_nat_target::thread_name)
9163 (windows_nat_target::thread_alive): Update.
9164
98a03287
TT
91652020-04-08 Tom Tromey <tromey@adacore.com>
9166
9167 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
9168 (windows_continue): Use windows_continue::resume.
9169 * nat/windows-nat.h (struct windows_thread_info) <suspend,
9170 resume>: Declare new methods.
9171 * nat/windows-nat.c: New file.
9172 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
9173
7c7411bc
TT
91742020-04-08 Tom Tromey <tromey@adacore.com>
9175
9176 * windows-nat.c (windows_add_thread, windows_delete_thread)
9177 (windows_nat_target::fetch_registers)
9178 (windows_nat_target::store_registers, fake_create_process)
9179 (windows_nat_target::resume, windows_nat_target::resume)
9180 (get_windows_debug_event, windows_nat_target::wait)
9181 (windows_nat_target::pid_to_str)
9182 (windows_nat_target::get_tib_address)
9183 (windows_nat_target::get_ada_task_ptid)
9184 (windows_nat_target::thread_name)
9185 (windows_nat_target::thread_alive): Use lwp, not tid.
9186
2950fdf7
TT
91872020-04-08 Tom Tromey <tromey@adacore.com>
9188
9189 * windows-nat.c (handle_exception)
9190 (windows_nat_target::thread_name): Update.
9191 * nat/windows-nat.h (windows_thread_info): Remove destructor.
9192 <name>: Now unique_xmalloc_ptr.
9193
62fe396b
TT
91942020-04-08 Tom Tromey <tromey@adacore.com>
9195
9196 * windows-nat.c (thread_rec)
9197 (windows_nat_target::fetch_registers): Update.
9198 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
9199 Update comment.
9200 <debug_registers_changed, reload_context>: Now bool.
9201
e9534bd2
TT
92022020-04-08 Tom Tromey <tromey@adacore.com>
9203
9204 * windows-nat.c (windows_add_thread): Use new.
9205 (windows_init_thread_list, windows_delete_thread): Use delete.
9206 (get_windows_debug_event): Update.
9207 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
9208 destructor, and initializers.
9209
ae1f8880
TT
92102020-04-08 Tom Tromey <tromey@adacore.com>
9211
9212 * windows-nat.c (struct windows_thread_info): Remove.
9213 * nat/windows-nat.h: New file.
9214
55a1e039
TT
92152020-04-08 Tom Tromey <tromey@adacore.com>
9216
9217 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
9218 (thread_rec, windows_add_thread, windows_delete_thread)
9219 (windows_continue): Update.
9220
93366324
TT
92212020-04-08 Tom Tromey <tromey@adacore.com>
9222
9223 * windows-nat.c (struct windows_thread_info): Remove typedef.
9224 (thread_head): Remove.
9225 (thread_list): New global.
9226 (thread_rec, windows_add_thread, windows_init_thread_list)
9227 (windows_delete_thread, windows_continue): Update.
9228
0f2265e2
SM
92292020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
9230
9231 * windows-tdep.h (windows_init_abi): Add comment.
9232 (cygwin_init_abi): New declaration.
9233 * windows-tdep.c: Split signal enumeration in two, one for
9234 Windows and one for Cygwin.
9235 (windows_gdb_signal_to_target): Only deal with signal of the
9236 Windows OS ABI.
9237 (cygwin_gdb_signal_to_target): New function.
9238 (windows_init_abi): Rename to windows_init_abi_common, don't set
9239 gdb_signal_to_target gdbarch method. Add new new function with
9240 this name.
9241 (cygwin_init_abi): New function.
9242 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
9243 comment. Don't call windows_init_abi.
9244 (amd64_windows_init_abi): Add comment, call windows_init_abi.
9245 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
9246 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
9247 i386_windows_init_abi_common, don't call windows_init_abi. Add
9248 a new function of this name.
9249 (i386_cygwin_init_abi): New function.
9250 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
9251 OS ABI Cygwin.
9252
3810f182
SM
92532020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
9254
9255 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
9256 parameter.c.
9257 (dwarf2_read_gdb_index): Update.
9258
063f8e80
KR
92592020-04-07 Kamil Rytarowski <n54@gmx.com>
9260
9261 * nbsd-tdep.c: Include "objfiles.h".
9262 (nbsd_skip_solib_resolver): New.
9263 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
9264
85a9510c 92652020-04-07 Nitika Achra <Nitika.Achra@amd.com>
9266
9267 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
9268 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
9269 with DW_LLE_base_addressx are being emitted in DWARFv5.
9270 Add the newly added kind DW_LOC_OFFSET_PAIR also.
9271 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
9272 unsigned integer.
9273
9fc3eaae 92742020-04-07 Nitika Achra <Nitika.Achra@amd.com>
9275
9276 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
9277 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
9278 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
9279 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
9280 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
9281 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
9282 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
9283
9284
41144253 92852020-04-07 Nitika Achra <Nitika.Achra@amd.com>
9286
9287 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
9288 (read_loclist_index): New function definition.
9289 (lookup_loclist_base): New function definition.
9290 (read_loclist_header): New function definition.
9291 (dwarf2_cu): Add loclist_base and loclist_header field.
9292 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
9293 (read_full_die_1): Read the value of DW_AT_loclists_base.
9294 (read_attribute_reprocess): Handle DW_FORM_loclistx.
9295 (read_attribute_value): Handle DW_FORM_loclistx.
9296 (skip_one_die): Handle DW_FORM_loclistx.
9297 (loclist_header): New structure declaration.
9298 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
9299
9f4e76a4
SM
93002020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9301
9302 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
9303 constructor. Remove `addr` parameter from other constructor and
9304 add `per_cu` parameter.
9305 * dwarf2/read.c (create_partial_symtab): Update.
9306
25c11aca
TV
93072020-04-07 Tom de Vries <tdevries@suse.de>
9308
9309 PR symtab/25796
9310 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
9311 (partial_die_info::fixup): Inherit has_const_value.
9312
5707e24b
TV
93132020-04-07 Tom de Vries <tdevries@suse.de>
9314
9315 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
9316 symbols without address.
9317
05f00e22
KR
93182020-04-06 Kamil Rytarowski <n54@gmx.com>
9319
9320 * nbsd-nat.h (struct thread_info): Add forward declaration.
9321 (nbsd_nat_target::thread_alive): Add.
9322 (nbsd_nat_target::thread_name): Likewise.
9323 (nbsd_nat_target::update_thread_list): Likewise.
9324 (update_thread_list::post_attach): Likewise.
9325 (post_attach::pid_to_str): Likewise.
9326 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
9327 (nbsd_thread_lister): Add.
9328 (nbsd_nat_target::thread_alive): Likewise.
9329 (nbsd_nat_target::thread_name): Likewise.
9330 (nbsd_add_threads): Likewise.
9331 (update_thread_list::post_attach): Likewise.
9332 (nbsd_nat_target::update_thread_list): Likewise.
9333 (post_attach::pid_to_str): Likewise.
9334
6ee448cc
TT
93352020-04-06 Tom Tromey <tromey@adacore.com>
9336
9337 * ada-valprint.c (print_variant_part): Extract the variant field.
9338 (print_field_values): Use the field as the outer value when
9339 recursing.
9340
dea34e8c
TT
93412020-04-06 Tom Tromey <tromey@adacore.com>
9342
9343 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
9344 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
9345 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
9346 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
9347 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
9348
93689ce9
TT
93492020-04-06 Tom Tromey <tromey@adacore.com>
9350
9351 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
9352 TYPE_CODE_ERROR.
9353
79743962
KR
93542020-04-06 Kamil Rytarowski <n54@gmx.com>
9355
9356 * nbsd-tdep.c: Include "gdbarch.h".
9357 Define enum with NetBSD signal numbers.
9358 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
9359 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
9360 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
9361 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
9362 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
9363 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
9364 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
9365 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
9366 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
9367 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
9368 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
9369 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
9370
9e7c9a03
HD
93712020-04-03 Hannes Domani <ssbssa@yahoo.de>
9372
9373 PR gdb/25325
9374 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
9375
d9e49b61
TT
93762020-04-03 Tom Tromey <tromey@adacore.com>
9377
9378 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
9379 Read constant block.
9380
e0fc5c3f
SM
93812020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
9382
9383 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
9384 (gdb_bfd_get_full_section_contents): New declaration.
9385 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
9386 * windows-tdep.c (is_linked_with_cygwin_dll): Use
9387 gdb_bfd_get_full_section_contents.
9388
e2ff18a0
SM
93892020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
9390
9391 * exec.c (build_section_table): Replace internal_error with
9392 gdb_assert.
9393 (section_table_xfer_memory_partial): Likewise.
9394 * mdebugread.c (parse_partial_symbols): Likewise.
9395 * psymtab.c (lookup_partial_symbol): Likewise.
9396 * utils.c (wrap_here): Likewise.
9397
0830d301
TT
93982020-04-02 Tom Tromey <tromey@adacore.com>
9399
9400 * f-lang.c (build_fortran_types): Use arch_type to initialize
9401 builtin_complex_s32 in the TYPE_CODE_ERROR case.
9402
e7da7f8f
TT
94032020-04-02 Tom Tromey <tromey@adacore.com>
9404
9405 * dwarf2/read.c (partial_die_info::read): Do not create a vector
9406 of attributes.
9407
c90d28ac
AB
94082020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
9409 Bernd Edlinger <bernd.edlinger@hotmail.de>
9410 Tom Tromey <tromey@adacore.com>
9411
9412 * buildsym.c (buildsym_compunit::record_line): Remove
9413 deduplication code.
9414
1aa98955
TV
94152020-04-02 Tom de Vries <tdevries@suse.de>
9416
9417 PR ada/24671
9418 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
9419
d3214198
TV
94202020-04-02 Tom de Vries <tdevries@suse.de>
9421
9422 * dwarf2/read.c (dwarf2_gdb_index_functions,
9423 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
9424 NULL.
9425 * psymtab.c (psym_lookup_global_symbol_language): New function.
9426 (psym_functions): Init psym_lookup_global_symbol_language with
9427 psym_lookup_global_symbol_language.
9428 * symfile-debug.c (debug_sym_quick_functions): Init
9429 lookup_global_symbol_language with NULL.
9430 * symfile.c (set_initial_language): Remove fixme comment.
9431 * symfile.h (struct quick_symbol_functions): Add
9432 lookup_global_symbol_language.
9433 * symtab.c (find_quick_global_symbol_language): New function.
9434 (find_main_name): Use find_quick_global_symbol_language.
9435
2836752f
SM
94362020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
9437
9438 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
9439
64dc2d4b
BE
94402020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
9441
9442 * buildsym.c (record_line): Fix undefined behavior and preserve
9443 lines at eof.
9444
bbe3dc41
BE
94452020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
9446
9447 * buildsym.c (record_line): Fix the resizing condition.
9448
6b4a335b
TT
94492020-04-01 Tom Tromey <tom@tromey.com>
9450
9451 * value.h (value_literal_complex): Add comment.
9452 * valops.c (value_literal_complex): Refer to value.h.
9453
3638a098
TT
94542020-04-01 Tom Tromey <tom@tromey.com>
9455
9456 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
9457 (scalar_type): New rule, from typebase.
9458 (typebase): Use scalar_type. Recognize complex types.
9459 (field_name): Handle FLOAT_KEYWORD.
9460 (ident_tokens): Add _Complex and __complex__.
9461
c34e8714
TT
94622020-04-01 Tom Tromey <tom@tromey.com>
9463
9464 PR exp/25299:
9465 * valarith.c (promotion_type, complex_binop): New functions.
9466 (scalar_binop): Handle complex numbers. Use promotion_type.
9467 (value_pos, value_neg, value_complement): Handle complex numbers.
9468
fa649bb7
TT
94692020-04-01 Tom Tromey <tom@tromey.com>
9470
9471 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
9472 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
9473 (parse_number): Handle complex numbers.
9474
981c08ce
TT
94752020-04-01 Tom Tromey <tom@tromey.com>
9476
9477 * c-valprint.c (c_decorations): Change complex suffix to "i".
9478
4c99290d
TT
94792020-04-01 Tom Tromey <tom@tromey.com>
9480
9481 * valprint.c (generic_value_print_complex): Use accessors.
9482 * value.h (value_real_part, value_imaginary_part): Declare.
9483 * valops.c (value_real_part, value_imaginary_part): New
9484 functions.
9485 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
9486
5b930b45
TT
94872020-04-01 Tom Tromey <tom@tromey.com>
9488
9489 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
9490 (read_range_type): Update.
9491 * mdebugread.c (basic_type): Update.
9492 * go-lang.c (build_go_types): Use init_complex_type.
9493 * gdbtypes.h (struct main_type) <complex_type>: New member.
9494 (init_complex_type): Update.
9495 (arch_complex_type): Don't declare.
9496 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
9497 Make name if none given. Use alloc_type_copy. Look for cached
9498 complex type.
9499 (arch_complex_type): Remove.
9500 (gdbtypes_post_init): Use init_complex_type.
9501 * f-lang.c (build_fortran_types): Use init_complex_type.
9502 * dwarf2/read.c (read_base_type): Update.
9503 * d-lang.c (build_d_types): Use init_complex_type.
9504 * ctfread.c (read_base_type): Update.
9505
53cccef1
TBA
95062020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9507
9508 * infrun.c (stop_all_threads): Update assertion, plus when
9509 stopping threads, take into account that we might be trying
9510 to stop an all-stop target.
9511 (stop_waiting): Call 'stop_all_threads' if there exists a
9512 non-stop target.
9513
a0714d30
TBA
95142020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9515
9516 * target.h (exists_non_stop_target): New function declaration.
9517 * target.c (exists_non_stop_target): New function.
9518
60e22c1e
HD
95192020-04-01 Hannes Domani <ssbssa@yahoo.de>
9520
9521 PR gdb/24789
9522 * eval.c (is_integral_or_integral_reference): New function.
9523 (evaluate_subexp_standard): Allow integer references in
9524 pointer arithmetic.
9525
e139a727
TBA
95262020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9527
9528 * remote.c (remote_target::remote_parse_stop_reply): Remove the
9529 check for no ptid in the stop reply when the target is non-stop.
9530
e0802d59
TT
95312020-04-01 Tom Tromey <tromey@adacore.com>
9532
9533 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
9534 "name" parameter to rvalue reference. Initialize m_name_holder.
9535 <lookup_name_info>: New overloads.
9536 <name>: Return gdb::string_view.
9537 <c_str>: New method.
9538 <make_ignore_params>: Update.
9539 <search_name_hash>: Update.
9540 <language_lookup_name>: Return const char *.
9541 <m_name>: Change type.
9542 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
9543 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
9544 (lookup_name_info::match_any): Update.
9545 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
9546 Update.
9547 * minsyms.c (linkage_name_str): Update.
9548 * language.c (default_symbol_name_matcher): Update.
9549 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
9550 Update.
9551 * ada-lang.c (ada_fold_name): Change parameter to string_view.
9552 (ada_lookup_name_info::ada_lookup_name_info): Update.
9553 (literal_symbol_name_matcher): Update.
9554
8c072cb6
TT
95552020-04-01 Tom Tromey <tromey@adacore.com>
9556
9557 * psymtab.c (psymtab_search_name): Remove function.
9558 (psym_lookup_symbol): Create search name and lookup name here.
9559 (lookup_partial_symbol): Remove "name" parameter; add
9560 lookup_name.
9561 (psym_expand_symtabs_for_function): Update.
9562
6f29a534
TT
95632020-03-31 Joel Jones <joelkevinjones@gmail.com>
9564
9565 PR tui/25597:
9566 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
9567
af62665e
TT
95682020-03-31 Tom Tromey <tromey@adacore.com>
9569
9570 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
9571 memcpy.
9572
d1a89da5
NC
95732020-03-30 Nelson Chu <nelson.chu@sifive.com>
9574
9575 * features/riscv/32bit-csr.xml: Regenerated.
9576 * features/riscv/64bit-csr.xml: Regenerated.
9577
d8af9068
TT
95782020-03-30 Tom Tromey <tromey@adacore.com>
9579
9580 * ada-valprint.c (print_variant_part): Update.
9581 * ada-lang.h (ada_which_variant_applies): Update.
9582 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
9583 outer_valaddr parameters; replace with "outer" value parameter.
9584 (to_fixed_variant_branch_type): Update.
9585
227c0bf4
PFC
95862020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9587
9588 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
9589 <list>. Remove inclusion of observable.h.
9590 (PPC_DEBUG_CURRENT_VERSION): Move up define.
9591 (struct arch_lwp_info): New struct.
9592 (class ppc_linux_dreg_interface): New class.
9593 (struct ppc_linux_process_info): New struct.
9594 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
9595 <low_new_clone, low_forget_process, low_prepare_to_resume>
9596 <copy_thread_dreg_state, mark_thread_stale>
9597 <mark_debug_registers_changed, register_hw_breakpoint>
9598 <clear_hw_breakpoint, register_wp, clear_wp>
9599 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
9600 <num_memory_accesses, get_trigger_type>
9601 <create_watchpoint_request, hwdebug_point_cmp>
9602 <init_arch_lwp_info, get_arch_lwp_info>
9603 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
9604 methods.
9605 <struct ptid_hash>: New inner struct.
9606 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
9607 members.
9608 (saved_dabr_value, hwdebug_info, max_slots_number)
9609 (struct hw_break_tuple, struct thread_points, ppc_threads)
9610 (have_ptrace_hwdebug_interface)
9611 (hwdebug_find_thread_points_by_tid)
9612 (hwdebug_insert_point, hwdebug_remove_point): Remove.
9613 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
9614 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
9615 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
9616 use m_dreg_interface.
9617 (hwdebug_point_cmp): Change to...
9618 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
9619 reference arguments instead of pointers.
9620 (ppc_linux_nat_target::ranged_break_num_registers): Use
9621 m_dreg_interface.
9622 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
9623 m_dreg_interface. Call register_hw_breakpoint.
9624 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
9625 m_dreg_interface. Call clear_hw_breakpoint.
9626 (get_trigger_type): Change to...
9627 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
9628 comment.
9629 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
9630 use m_dreg_interface. Call register_hw_breakpoint.
9631 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
9632 use m_dreg_interface. Call clear_hw_breakpoint.
9633 (can_use_watchpoint_cond_accel): Change to...
9634 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
9635 method. Update comment, use m_dreg_interface and
9636 m_process_info.
9637 (calculate_dvc): Change to...
9638 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
9639 m_dreg_interface.
9640 (num_memory_accesses): Change to...
9641 (ppc_linux_nat_target::num_memory_accesses): ...this method.
9642 (check_condition): Change to...
9643 (ppc_linux_nat_target::check_condition): ...this method.
9644 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
9645 comment, use m_dreg_interface.
9646 (create_watchpoint_request): Change to...
9647 (ppc_linux_nat_target::create_watchpoint_request): ...this
9648 method. Use m_dreg_interface.
9649 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
9650 m_dreg_interface. Call register_hw_breakpoint or register_wp.
9651 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
9652 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
9653 (ppc_linux_nat_target::low_forget_process)
9654 (ppc_linux_nat_target::low_new_fork)
9655 (ppc_linux_nat_target::low_new_clone)
9656 (ppc_linux_nat_target::low_delete_thread)
9657 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
9658 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
9659 only call mark_thread_stale.
9660 (ppc_linux_thread_exit): Remove.
9661 (ppc_linux_nat_target::stopped_data_address): Change to...
9662 (ppc_linux_nat_target::low_stopped_data_address): This. Add
9663 comment, use m_dreg_interface and m_thread_hw_breakpoints.
9664 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
9665 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
9666 comment. Call low_stopped_data_address.
9667 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
9668 m_dreg_interface.
9669 (ppc_linux_nat_target::masked_watch_num_registers): Use
9670 m_dreg_interface.
9671 (ppc_linux_nat_target::copy_thread_dreg_state)
9672 (ppc_linux_nat_target::mark_thread_stale)
9673 (ppc_linux_nat_target::mark_debug_registers_changed)
9674 (ppc_linux_nat_target::register_hw_breakpoint)
9675 (ppc_linux_nat_target::clear_hw_breakpoint)
9676 (ppc_linux_nat_target::register_wp)
9677 (ppc_linux_nat_target::clear_wp)
9678 (ppc_linux_nat_target::init_arch_lwp_info)
9679 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
9680 (_initialize_ppc_linux_nat): Remove observer callback.
9681
4db10d8f
PFC
96822020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9683
9684 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
9685 (ppc_linux_nat_target::auxv_parse)
9686 (ppc_linux_nat_target::read_description)
9687 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
9688 Move up.
9689
1310c1b0
PFC
96902020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9691
9692 * linux-nat.h (low_new_clone): New method.
9693 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
9694
69b037c3
SM
96952020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9696
9697 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
9698 (dbx_expand_psymtab): ... this.
9699 (start_psymtab): Update.
9700 * mdebugread.c (psymtab_to_symtab_1): Rename to...
9701 (mdebug_expand_psymtab): ... this.
9702 (parse_partial_symbols): Update.
9703 (new_psymtab): Update.
9704 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
9705 (xcoff_expand_psymtab): ... this.
9706 (xcoff_start_psymtab): Update.
9707
48993951
SM
97082020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9709
9710 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
9711 <expand_dependencies>: ... this.
9712 * psymtab.c (partial_symtab::read_dependencies): Rename to...
9713 (partial_symtab::expand_dependencies): ... this.
9714 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
9715 Update.
9716 (dwarf2_psymtab::expand_psymtab): Update.
9717 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
9718 * mdebugread.c (psymtab_to_symtab_1): Update.
9719 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
9720
3ad83046
SM
97212020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9722
9723 * psympriv.h (discard_psymtab): Remove.
9724 * dbxread.c (dbx_end_psymtab): Update.
9725 * xcoffread.c (xcoff_end_psymtab): Update.
9726
4d1b9ab6
TT
97272020-03-28 Tom Tromey <tom@tromey.com>
9728
9729 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
9730 comment.
9731
f1749218
TT
97322020-03-28 Tom Tromey <tom@tromey.com>
9733
9734 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
9735
ebea7626
HD
97362020-03-27 Hannes Domani <ssbssa@yahoo.de>
9737
9738 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
9739
a879b4d5
JB
97402020-03-26 John Baldwin <jhb@FreeBSD.org>
9741
9742 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
9743
0826b30a
TT
97442020-03-26 Tom Tromey <tom@tromey.com>
9745
9746 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
9747 (mark_common_block_symbol_computed, read_tag_string_type)
9748 (attr_to_dynamic_prop, read_subrange_type): Update.
9749 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
9750 to be methods on struct attribute.
9751 (skip_one_die, process_imported_unit_die, read_namespace_alias)
9752 (read_call_site_scope, partial_die_info::read)
9753 (partial_die_info::read, lookup_die_type, follow_die_ref):
9754 Update.
9755 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
9756 from dwarf2_get_ref_die_offset.
9757 (attribute::constant_value): New method, from
9758 dwarf2_get_attr_constant_value.
9759 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
9760 Declare method.
9761 <constant_value>: New method.
9762
2b2558bf
TT
97632020-03-26 Tom Tromey <tom@tromey.com>
9764
9765 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
9766 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
9767 (dwarf_type_encoding_name): Move to stringify.c.
9768 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
9769 * dwarf2/stringify.c: New file.
9770 * dwarf2/stringify.h: New file.
9771
eeb64781
TT
97722020-03-26 Tom Tromey <tom@tromey.com>
9773
9774 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
9775 Rewrite.
9776
a39fdb41
TT
97772020-03-26 Tom Tromey <tom@tromey.com>
9778
9779 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
9780 methods.
9781 * dwarf2/read.c (lookup_addr_base): Move to die.h.
9782 (lookup_ranges_base): Likewise.
9783 (read_cutu_die_from_dwo, read_full_die_1): Update.
9784
436c571c
TT
97852020-03-26 Tom Tromey <tom@tromey.com>
9786
9787 * dwarf2/read.c (read_import_statement, read_file_scope)
9788 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
9789 (read_lexical_block_scope, read_call_site_scope)
9790 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
9791 (handle_struct_member_die, process_structure_scope)
9792 (update_enumeration_type_from_children)
9793 (process_enumeration_scope, read_array_type, read_common_block)
9794 (read_namespace, read_module, read_subroutine_type): Update.
9795 (sibling_die): Remove.
9796
052c8bb8
TT
97972020-03-26 Tom Tromey <tom@tromey.com>
9798
9799 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
9800 (build_type_psymtabs_reader, read_structure_type)
9801 (read_enumeration_type, read_full_die_1): Update.
9802 (dwarf2_attr_no_follow): Move to die.h.
9803 * dwarf2/die.h (struct die_info) <attr>: New method.
9804
2b24b6e4
TT
98052020-03-26 Tom Tromey <tom@tromey.com>
9806
9807 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
9808 <base_address>: Now an optional.
9809 (dwarf2_find_base_address, dwarf2_rnglists_process)
9810 (dwarf2_ranges_process, fill_in_loclist_baton)
9811 (dwarf2_symbol_mark_computed): Update.
9812
c2d50fd0
TT
98132020-03-26 Tom Tromey <tom@tromey.com>
9814
9815 * dwarf2/read.c (struct die_info): Move to die.h.
9816 * dwarf2/die.h: New file.
9817
0df7ad3a
TT
98182020-03-26 Tom Tromey <tom@tromey.com>
9819
9820 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
9821 * dwarf2/read.c
9822 (dwarf2_statement_list_fits_in_line_number_section_complaint):
9823 Move to line-header.c.
9824 (read_checked_initial_length_and_offset, read_formatted_entries):
9825 Likewise.
9826 (dwarf_decode_line_header): Split into two.
9827 * dwarf2/line-header.c
9828 (dwarf2_statement_list_fits_in_line_number_section_complaint):
9829 Move from read.c.
9830 (read_checked_initial_length_and_offset, read_formatted_entries):
9831 Likewise.
9832 (dwarf_decode_line_header): New function, split from read.c.
9833
86c0bb4c
TT
98342020-03-26 Tom Tromey <tom@tromey.com>
9835
9836 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
9837 Declare method.
9838 * dwarf2/read.c (read_attribute_value): Update.
9839 (dwarf2_per_objfile::read_line_string): Rename from
9840 read_indirect_line_string.
9841 (read_formatted_entries): Update.
9842
2ef46c2f
TT
98432020-03-26 Tom Tromey <tom@tromey.com>
9844
9845 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
9846 variable.
9847
4f9c1eda
TT
98482020-03-26 Tom Tromey <tom@tromey.com>
9849
9850 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
9851 const.
9852 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
9853 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
9854 parameter const.
9855
5a0e026f
TT
98562020-03-26 Tom Tromey <tom@tromey.com>
9857
9858 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
9859 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
9860 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
9861 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
9862
8844c11b
TT
98632020-03-26 Tom Tromey <tom@tromey.com>
9864
9865 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
9866 file_names_size, file_full_name, file_file_name>: Use const.
9867 <file_name_at, file_names>: Add const overload.
9868 * dwarf2/line-header.c (line_header::file_file_name)
9869 (line_header::file_full_name): Update.
9870
c90ec28a
TT
98712020-03-26 Tom Tromey <tom@tromey.com>
9872
9873 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
9874 (macro_start_file, consume_improper_spaces)
9875 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
9876 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
9877 (dwarf_decode_macros): Move to macro.c.
9878 * dwarf2/macro.c: New file.
9879 * dwarf2/macro.h: New file.
9880 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
9881
4f44ae6c
TT
98822020-03-26 Tom Tromey <tom@tromey.com>
9883
9884 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
9885 method.
9886 * dwarf2/section.c: New method. From
9887 read_indirect_string_at_offset_from.
9888 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
9889 (read_indirect_string_at_offset_from): Move to section.c.
9890 (read_indirect_string_at_offset): Rewrite.
9891 (read_indirect_line_string_at_offset): Remove.
9892 (read_indirect_string, read_indirect_line_string)
9893 (dwarf_decode_macro_bytes): Update.
9894
a0194fa8
TT
98952020-03-26 Tom Tromey <tom@tromey.com>
9896
9897 * dwarf2/section.h (struct dwarf2_section_info)
9898 <overload_complaint>: Declare.
9899 (dwarf2_section_buffer_overflow_complaint): Don't declare.
9900 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
9901 Rename from dwarf2_section_buffer_overflow_complaint.
9902 * dwarf2/read.c (skip_one_die, partial_die_info::read)
9903 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
9904
3d27bbdb
TT
99052020-03-26 Tom Tromey <tom@tromey.com>
9906
9907 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
9908 Declare.
9909 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
9910 Move from read.c.
9911 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
9912 to section.c.
9913
9eac9650
TT
99142020-03-26 Tom Tromey <tom@tromey.com>
9915
9916 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
9917
bf80d710
TT
99182020-03-26 Tom Tromey <tom@tromey.com>
9919
9920 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
9921 "builder".
9922 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
9923 parameter.
9924 (dwarf_decode_macros): Update.
9925
0314b390
TT
99262020-03-26 Tom Tromey <tom@tromey.com>
9927
9928 * dwarf2/read.c (read_attribute_value): Update.
9929 (read_indirect_string_from_dwz): Move to dwz.c; change into
9930 method.
9931 (dwarf_decode_macro_bytes): Update.
9932 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
9933 * dwarf2/dwz.c: New file.
9934 * Makefile.in (COMMON_SFILES): Add dwz.c.
9935
9fda78b6
TT
99362020-03-26 Tom Tromey <tom@tromey.com>
9937
9938 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
9939 * dwarf2/read.c: Add include.
9940 * dwarf2/index-write.c: Add include.
9941 * dwarf2/index-cache.c: Add include.
9942 * dwarf2/dwz.h: New file.
9943
33aa3c10
TT
99442020-03-25 Tom Tromey <tom@tromey.com>
9945
9946 * compile/compile-object-load.c (get_out_value_type): Mention
9947 correct symbol name in error message.
9948
d503b685
HD
99492020-03-25 Hannes Domani <ssbssa@yahoo.de>
9950
9951 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
9952
7b1eff95
TV
99532020-03-25 Tom de Vries <tdevries@suse.de>
9954
9955 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
9956 * symmisc.c (dump_symtab_1): Print user and includes fields.
9957 (maintenance_info_symtabs): Same.
9958
dd895392
AB
99592020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
9960
9961 PR gdb/25534
9962 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
9963 (riscv_regcache_cooked_write): New function.
9964 (riscv_push_dummy_call): Use new function.
9965 (riscv_return_value): Likewise.
9966
5ab2fbf1
SM
99672020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
9968
9969 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
9970 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
9971 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
9972 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
9973 * infrun.c (follow_fork): Likewise.
9974 (follow_fork_inferior): Likewise.
9975 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
9976 * linux-nat.h (class linux_nat_target): Likewise.
9977 * remote.c (class remote_target) <follow_fork>: Likewise.
9978 (remote_target::follow_fork): Likewise.
9979 * target-delegates.c: Re-generate.
9980 * target.c (default_follow_fork): Likewise.
9981 (target_follow_fork): Likewise.
9982 * target.h (struct target_ops) <follow_fork>: Likewise.
9983 (target_follow_fork): Likewise.
9984
a64fafb5
TV
99852020-03-24 Tom de Vries <tdevries@suse.de>
9986
9987 * psymtab.c (maintenance_info_psymtabs): Print user field.
9988
fe26d3a3
TT
99892020-03-20 Tom Tromey <tromey@adacore.com>
9990
9991 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
9992 const.
9993 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
9994 const.
9995
c884cc46
SM
99962020-03-20 Simon Marchi <simon.marchi@efficios.com>
9997
9998 * ptrace.m4: Don't check for ptrace declaration.
9999 * config.in: Re-generate.
10000 * configure: Re-generate.
10001 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
10002 not defined.
10003
1ff700c2
KR
100042020-03-20 Kamil Rytarowski <n54@gmx.com>
10005
10006 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
10007 `PTRACE_TYPE_RET'.
10008 * i386-bsd-nat.c (gdb_ptrace): Likewise.
10009 * sparc-nat.c (gdb_ptrace): Likewise.
10010 * x86-bsd-nat.c (gdb_ptrace): Likewise.
10011
f7d4f0b1
TT
100122020-03-20 Tom Tromey <tromey@adacore.com>
10013
10014 * c-exp.y (lex_one_token): Fix assert.
10015
f67210ff
TT
100162020-03-20 Tom Tromey <tromey@adacore.com>
10017
10018 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
10019 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
10020 strncpy call.
10021
1773be9e
TT
100222020-03-20 Tom Tromey <tromey@adacore.com>
10023
10024 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
10025
70304be9
TT
100262020-03-20 Tom Tromey <tromey@adacore.com>
10027
10028 * ada-valprint.c (print_variant_part): Remove parameters; switch
10029 to value-based API.
10030 (print_field_values): Likewise.
10031 (ada_val_print_struct_union): Likewise.
10032 (ada_value_print_1): Update.
10033
9faa006d
KR
100342020-03-20 Kamil Rytarowski <n54@gmx.com>
10035
10036 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
10037 nbsd_nat_target instead of inf_ptrace_target.
10038 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
10039 nbsd_nat_target.
10040
4a90f062
KR
100412020-03-20 Kamil Rytarowski <n54@gmx.com>
10042
10043 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
10044 it to the ptrace call.
10045 * (store_registers): Likewise.
10046
100472020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
10048
10049 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
10050 it to the ptrace call.
10051 * (store_registers): Likewise.
10052
2d07da27
LM
100532020-03-19 Luis Machado <luis.machado@linaro.org>
10054
10055 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
10056 valid, fetch vg value from ptrace.
10057
f09db380
KR
100582020-03-19 Kamil Rytarowski <n54@gmx.com>
10059 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
10060 * inf-ptrace.c: Likewise.
10061 * (gdb_ptrace): Add.
10062 * (inf_ptrace_target::resume): Update.
10063 * (inf_ptrace_target::xfer_partial): Likewise.
10064 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
10065 * (inf_ptrace_peek_poke): Update.
10066
fcc7376e
KR
100672020-03-19 Kamil Rytarowski <n54@gmx.com>
10068
10069 * x86-bsd-nat.c (gdb_ptrace): New.
10070 * (x86bsd_dr_set): Add new argument `ptid'.
10071 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
10072 x86bsd_dr_set_addr): Update.
10073
cada5fc9
AB
100742020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
10075
10076 * remote.c (remote_target::process_stop_reply): Handle events for
10077 all threads differently.
10078
19a2740f
AB
100792020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
10080
10081 * completer.c (completion_tracker::remove_completion): Define new
10082 function.
10083 * completer.h (completion_tracker::remove_completion): Declare new
10084 function.
10085 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
10086 when adding a C++ function symbol.
10087
724fd9ba
AB
100882020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
10089
10090 * completer.c (completion_tracker::completion_hash_entry): Define
10091 new class.
10092 (advance_to_filename_complete_word_point): Call
10093 recompute_lowest_common_denominator.
10094 (completion_tracker::completion_tracker): Call discard_completions
10095 to setup the hash table.
10096 (completion_tracker::discard_completions): Allow for being called
10097 from the constructor, pass new equal function, and element deleter
10098 when constructing the hash table. Initialise new class member
10099 variables.
10100 (completion_tracker::maybe_add_completion): Remove use of
10101 m_entries_vec, and store more information into m_entries_hash.
10102 (completion_tracker::recompute_lcd_visitor): New function, most
10103 content taken from...
10104 (completion_tracker::recompute_lowest_common_denominator):
10105 ...here, this now just visits each item in the hash calling the
10106 above visitor.
10107 (completion_tracker::build_completion_result): Remove use of
10108 m_entries_vec, call recompute_lowest_common_denominator.
10109 * completer.h (completion_tracker::have_completions): Remove use
10110 of m_entries_vec.
10111 (completion_tracker::completion_hash_entry): Declare new class.
10112 (completion_tracker::recompute_lowest_common_denominator): Change
10113 function signature.
10114 (completion_tracker::recompute_lcd_visitor): Declare new function.
10115 (completion_tracker::m_entries_vec): Delete.
10116 (completion_tracker::m_entries_hash): Initialize to NULL.
10117 (completion_tracker::m_lowest_common_denominator_valid): New
10118 member variable.
10119 (completion_tracker::m_lowest_common_denominator_max_length): New
10120 member variable.
10121
5a82b8a1
KR
101222020-03-17 Kamil Rytarowski <n54@gmx.com>
10123
10124 * regformats/regdef.h: Put reg in gdb namespace.
10125
fb516a69
KR
101262020-03-17 Kamil Rytarowski <n54@gmx.com>
10127
10128 * i386-bsd-nat.c (gdb_ptrace): New.
10129 * (i386bsd_fetch_inferior_registers,
10130 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
10131 * (i386bsd_fetch_inferior_registers,
10132 i386bsd_store_inferior_registers) Use gdb_ptrace.
10133
1c0aa1fb
KR
101342020-03-17 Kamil Rytarowski <n54@gmx.com>
10135
10136 * amd64-bsd-nat.c (gdb_ptrace): New.
10137 * (amd64bsd_fetch_inferior_registers,
10138 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
10139 * (amd64bsd_fetch_inferior_registers,
10140 amd64bsd_store_inferior_registers) Use gdb_ptrace.
10141
5ccd2fb7
KR
101422020-03-17 Kamil Rytarowski <n54@gmx.com>
10143
10144 * user-regs.c (user_reg::read): Rename to...
10145 (user_reg::xread): ...this.
10146 * (append_user_reg): Rename argument `read' to `xread'.
10147 * (user_reg_add_builtin): Likewise.
10148 * (user_reg_add): Likewise.
10149 * (value_of_user_reg): Likewise.
10150
2108a63a
KR
101512020-03-17 Kamil Rytarowski <n54@gmx.com>
10152
10153 * sparc-nat.c (gdb_ptrace): New.
10154 * sparc-nat.c (sparc_fetch_inferior_registers)
10155 (sparc_store_inferior_registers) Remove obsolete comment.
10156 * sparc-nat.c (sparc_fetch_inferior_registers)
10157 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
10158 * sparc-nat.c (sparc_fetch_inferior_registers)
10159 (sparc_store_inferior_registers) Use gdb_ptrace.
10160
a225c9a8
KR
101612020-03-17 Kamil Rytarowski <n54@gmx.com>
10162
10163 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
10164 it to the ptrace call.
10165 * sh-nbsd-nat.c (store_registers): Likewise.
10166
98097623
KR
101672020-03-17 Kamil Rytarowski <n54@gmx.com>
10168
10169 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
10170 nbsd_nat_target instead of inf_ptrace_target.
10171 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
10172 nbsd_nat_target.
10173
9e38d619
KR
101742020-03-17 Kamil Rytarowski <n54@gmx.com>
10175
10176 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
10177
a2ecbe9f
KR
101782020-03-17 Kamil Rytarowski <n54@gmx.com>
10179
10180 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
10181 <sys/sysctl.h>.
10182 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
10183
58990295
TV
101842020-03-17 Tom de Vries <tdevries@suse.de>
10185
10186 PR gdb/23710
10187 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
10188 fields.
10189 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
10190 fields.
10191 (process_imported_unit_die): Skip import of c++ CUs.
10192
771dd3a8
TT
101932020-03-16 Tom Tromey <tom@tromey.com>
10194
10195 * p-valprint.c (pascal_object_print_value): Initialize
10196 base_value.
10197
817a7585
AK
101982020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
10199 Shahab Vahedi <shahab@synopsys.com>
10200
10201 * Makefile.in: Add arch/arc.o
10202 * configure.tgt: Likewise.
10203 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
10204 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 10205 (arc_read_description): New function to cache target descriptions.
817a7585
AK
10206 * arc-tdep.h (arc_read_description): Add proto type.
10207 * arch/arc.c: New file.
10208 * arch/arc.h: Likewise.
10209 * features/Makefile: Replace old target descriptions with new.
10210 * features/arc-arcompact.c: Remove.
10211 * features/arc-arcompact.xml: Likewise.
10212 * features/arc-v2.c: Likewise
10213 * features/arc-v2.xml: Likewise
10214 * features/arc/aux-arcompact.xml: New file.
10215 * features/arc/aux-v2.xml: Likewise.
10216 * features/arc/core-arcompact.xml: Likewise.
10217 * features/arc/core-v2.xml: Likewise.
10218 * features/arc/aux-arcompact.c: Generate.
10219 * features/arc/aux-v2.c: Likewise.
10220 * features/arc/core-arcompact.c: Likewise.
10221 * features/arc/core-v2.c: Likewise.
10222 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
10223
67430cd0
TT
102242020-03-16 Tom Tromey <tromey@adacore.com>
10225
10226 PR gdb/25663:
10227 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
10228 putting value into bcache.
10229
30efb6c7
SM
102302020-03-16 Simon Marchi <simon.marchi@efficios.com>
10231
10232 PR gdb/21500
10233 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
10234 to...
10235 (amd64_windows_init_abi_common): ... this. Don't set size of
10236 long type.
10237 (amd64_windows_init_abi): New function.
10238 (amd64_cygwin_init_abi): New function.
10239 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
10240 the Cygwin OS ABI.
10241 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
10242 comment.
10243
8db52437
SM
102442020-03-16 Simon Marchi <simon.marchi@efficios.com>
10245
10246 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
10247 * windows-tdep.c (CYGWIN_DLL_NAME): New.
10248 (pe_import_directory_entry): New struct type.
10249 (is_linked_with_cygwin_dll): New function.
10250 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
10251 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
10252 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
10253
5982a56a
SM
102542020-03-16 Simon Marchi <simon.marchi@efficios.com>
10255
10256 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
10257 i386_cygwin_core_osabi_sniffer.
10258
7a1998df
SM
102592020-03-16 Simon Marchi <simon.marchi@efficios.com>
10260
10261 * i386-cygwin-tdep.c: Rename to...
10262 * i386-windows-tdep.c: ... this.
10263 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
10264 i386-windows-tdep.c.
10265 * configure.tgt: Likewise.
10266
053205cc
SM
102672020-03-16 Simon Marchi <simon.marchi@efficios.com>
10268
10269 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
10270 * osabi.c (gdb_osabi_names): Add "Windows".
10271 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
10272 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
10273 (i386_cygwin_core_osabi_sniffer): New function, extracted from
10274 i386_cygwin_osabi_sniffer.
10275 (_initialize_i386_cygwin_tdep): Register OS ABI
10276 GDB_OSABI_WINDOWS for i386.
10277 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
10278 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
10279 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
10280 for x86-64.
10281 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
10282 when the target matches '*-*-mingw*'.
10283
fe4b2ee6
SM
102842020-03-16 Simon Marchi <simon.marchi@efficios.com>
10285
10286 * defs.h (enum gdb_osabi): Move to...
10287 * osabi.h (enum gdb_osabi): ... here.
10288 * gdbarch.sh: Include osabi.h in gdbarch.h.
10289 * gdbarch.h: Re-generate.
10290
cb9b645d
SM
102912020-03-16 Simon Marchi <simon.marchi@efficios.com>
10292
10293 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
10294 function.
10295 (_initialize_amd64_windows_tdep): Register osabi sniffer.
10296
3293bbaf
TT
102972020-03-14 Tom Tromey <tom@tromey.com>
10298
10299 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
10300 for C++.
10301 (c_type_print_modifier): Likewise. Add "language" parameter.
10302 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
10303 (c_type_print_base_1): Update.
10304 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
10305 constants.
10306 * type-stack.c (type_stack::insert): Handle tp_atomic and
10307 tp_restrict.
10308 (type_stack::follow_type_instance_flags): Likewise.
10309 (type_stack::follow_types): Likewise. Merge type-following code.
10310 * c-exp.y (RESTRICT, ATOMIC): New tokens.
10311 (space_identifier, cv_with_space_id)
10312 (const_or_volatile_or_space_identifier_noopt)
10313 (const_or_volatile_or_space_identifier): Remove.
10314 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
10315 rules.
10316 (ptr_operator, typebase): Update.
10317 (enum token_flag) <FLAG_C>: New constant.
10318 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
10319 "_Atomic".
10320 (lex_one_token): Handle FLAG_C.
10321
154151a6
KR
103222020-03-14 Kamil Rytarowski <n54@gmx.com>
10323
10324 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
10325 it to the ptrace call.
10326 * m68k-bsd-nat.c (store_registers): Likewise.
10327
bc107784
KR
103282020-03-14 Kamil Rytarowski <n54@gmx.com>
10329
10330 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
10331 gdb_byte *.
10332 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
10333 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
10334 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
10335
01a80117
KR
103362020-03-14 Kamil Rytarowski <n54@gmx.com>
10337
10338 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
10339 nbsd_nat_target instead of inf_ptrace_target.
10340 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
10341 nbsd_nat_target.
10342
f90280ca
KR
103432020-03-14 Kamil Rytarowski <n54@gmx.com>
10344
10345 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
10346 register_t.
10347
6def66f1
KR
103482020-03-14 Kamil Rytarowski <n54@gmx.com>
10349
10350 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
10351 it to the ptrace call.
10352 * alpha-bsd-nat.c (store_registers): Likewise.
10353
66eaca97
KR
103542020-03-14 Kamil Rytarowski <n54@gmx.com>
10355
10356 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
10357 includes.
10358 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
10359 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
10360 fill_fpregset): Likewise.
10361
4fed520b
KR
103622020-03-14 Kamil Rytarowski <n54@gmx.com>
10363
10364 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
10365 nbsd_nat_target instead of inf_ptrace_target.
10366 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
10367 nbsd_nat_target.
10368
2190cf06
KR
103692020-03-14 Kamil Rytarowski <n54@gmx.com>
10370
10371 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
10372 register_t.
10373
75c56d3d
KR
103742020-03-14 Kamil Rytarowski <n54@gmx.com>
10375
10376 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
10377 it to the ptrace call.
10378 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
10379 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
10380 * arm-nbsd-nat.c (store_register): Likewise.
10381 * arm-nbsd-nat.c (store_regs): Likewise.
10382 * arm-nbsd-nat.c (store_fp_register): Likewise.
10383 * arm-nbsd-nat.c (store_fp_regs): Likewise.
10384
6018d381
KR
103852020-03-14 Kamil Rytarowski <n54@gmx.com>
10386
10387 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
10388 nbsd_nat_target instead of inf_ptrace_target.
10389 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
10390 nbsd_nat_target.
10391
013f99f0
KR
103922020-03-14 Kamil Rytarowski <n54@gmx.com>
10393
10394 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
10395 it to the ptrace call.
10396 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
10397
12753073
KR
103982020-03-14 Kamil Rytarowski <n54@gmx.com>
10399
6227b330
KR
10400 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
10401 it to the ptrace call.
10402 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
10403
104042020-03-14 Kamil Rytarowski <n54@gmx.com>
10405
10406 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
10407 gdb_byte *.
12753073
KR
10408 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
10409
d5be5fa4
KR
104102020-03-14 Kamil Rytarowski <n54@gmx.com>
10411
10412 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
10413 instead of inf_ptrace_target.
10414 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
10415 nbsd_nat_target.
10416
8110f842
KR
104172020-03-14 Kamil Rytarowski <n54@gmx.com>
10418
10419 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10420 register_t.
10421
52feded7
KR
104222020-03-14 Kamil Rytarowski <n54@gmx.com>
10423
10424 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10425 register_t.
10426
25567eee
KR
104272020-03-14 Kamil Rytarowski <n54@gmx.com>
10428
10429 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
10430 register_t.
10431
426a9c18
TT
104322020-03-13 Tom Tromey <tom@tromey.com>
10433
10434 * value.h (val_print): Don't declare.
10435 * valprint.h (val_print_array_elements)
10436 (val_print_scalar_formatted, generic_val_print): Don't declare.
10437 * valprint.c (generic_val_print_array): Take a struct value.
10438 (generic_val_print_ptr, generic_val_print_memberptr)
10439 (generic_val_print_bool, generic_val_print_int)
10440 (generic_val_print_char, generic_val_print_complex)
10441 (generic_val_print): Remove.
10442 (generic_value_print): Update.
10443 (do_val_print): Remove unused parameters. Don't call
10444 la_val_print.
10445 (val_print): Remove.
10446 (common_val_print): Update. Don't call value_check_printable.
10447 (val_print_scalar_formatted, val_print_array_elements): Remove.
10448 * rust-lang.c (rust_val_print): Remove.
10449 (rust_language_defn): Update.
10450 * p-valprint.c (pascal_val_print): Remove.
10451 (pascal_value_print_inner): Update.
10452 (pascal_object_print_val_fields, pascal_object_print_val):
10453 Remove.
10454 (pascal_object_print_static_field): Update.
10455 * p-lang.h (pascal_val_print): Don't declare.
10456 * p-lang.c (pascal_language_defn): Update.
10457 * opencl-lang.c (opencl_language_defn): Update.
10458 * objc-lang.c (objc_language_defn): Update.
10459 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
10460 * m2-lang.h (m2_val_print): Don't declare.
10461 * m2-lang.c (m2_language_defn): Update.
10462 * language.h (struct language_defn) <la_val_print>: Remove.
10463 * language.c (unk_lang_value_print_inner): Rename. Change
10464 argument types.
10465 (unknown_language_defn, auto_language_defn): Update.
10466 * go-valprint.c (go_val_print): Remove.
10467 * go-lang.h (go_val_print): Don't declare.
10468 * go-lang.c (go_language_defn): Update.
10469 * f-valprint.c (f_val_print): Remove.
10470 * f-lang.h (f_value_print): Don't declare.
10471 * f-lang.c (f_language_defn): Update.
10472 * d-valprint.c (d_val_print): Remove.
10473 * d-lang.h (d_value_print): Don't declare.
10474 * d-lang.c (d_language_defn): Update.
10475 * cp-valprint.c (cp_print_value_fields)
10476 (cp_print_value_fields_rtti, cp_print_value): Remove.
10477 (cp_print_static_field): Update.
10478 * c-valprint.c (c_val_print_array, c_val_print_ptr)
10479 (c_val_print_struct, c_val_print_union, c_val_print_int)
10480 (c_val_print_memberptr, c_val_print): Remove.
10481 * c-lang.h (c_val_print_array, cp_print_value_fields)
10482 (cp_print_value_fields_rtti): Don't declare.
10483 * c-lang.c (c_language_defn, cplus_language_defn)
10484 (asm_language_defn, minimal_language_defn): Update.
10485 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
10486 (ada_val_print_enum): Take a struct value.
10487 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
10488 (ada_val_print): Remove.
10489 (ada_value_print_1): Update.
10490 (printable_val_type): Remove.
10491 * ada-lang.h (ada_val_print): Don't declare.
10492 * ada-lang.c (ada_language_defn): Update.
10493
42331a1e
TT
104942020-03-13 Tom Tromey <tom@tromey.com>
10495
10496 * valprint.c (do_val_print): Update.
10497 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
10498 a struct value.
10499 (value_to_value_object_no_release): Declare.
10500 * python/py-value.c (value_to_value_object_no_release): New
10501 function.
10502 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
10503 struct value.
10504 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
10505 function.
10506 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
10507 a struct value.
10508 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
10509 Declare.
10510 (gdbscm_apply_val_pretty_printer): Take a struct value.
10511 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
10512 value.
10513 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
10514 value.
10515 * extension-priv.h (struct extension_language_ops)
10516 <apply_val_pretty_printer>: Take a struct value.
10517 * cp-valprint.c (cp_print_value): Create a struct value.
10518 (cp_print_value): Update.
10519
3a916a97
TT
105202020-03-13 Tom Tromey <tom@tromey.com>
10521
10522 * ada-valprint.c (print_field_values): Call common_val_print.
10523
b59eac37
TT
105242020-03-13 Tom Tromey <tom@tromey.com>
10525
10526 * ada-valprint.c (val_print_packed_array_elements): Remove
10527 bitoffset and val parameters. Call common_val_print.
10528 (ada_val_print_string): Remove offset, address, and original_value
10529 parameters.
10530 (ada_val_print_array): Update.
10531 (ada_value_print_array): New function.
10532 (ada_value_print_1): Call it.
10533
03371129
TT
105342020-03-13 Tom Tromey <tom@tromey.com>
10535
10536 * ada-valprint.c (ada_value_print): Use common_val_print.
10537
2e088f8b
TT
105382020-03-13 Tom Tromey <tom@tromey.com>
10539
10540 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
10541
39ef85a8
TT
105422020-03-13 Tom Tromey <tom@tromey.com>
10543
10544 * ada-valprint.c (ada_value_print_num): New function.
10545 (ada_value_print_1): Use it.
10546
b9fa6e07
TT
105472020-03-13 Tom Tromey <tom@tromey.com>
10548
10549 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
10550
416595d6
TT
105512020-03-13 Tom Tromey <tom@tromey.com>
10552
10553 * ada-valprint.c (ada_value_print_ptr): New function.
10554 (ada_value_print_1): Use it.
10555
5b5e15ec
TT
105562020-03-13 Tom Tromey <tom@tromey.com>
10557
10558 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
10559 call common_val_print.
10560 (ada_val_print_1): Update.
10561 (ada_value_print_1): New function.
10562 (ada_value_print_inner): Rewrite.
10563
fbf54e75
TT
105642020-03-13 Tom Tromey <tom@tromey.com>
10565
10566 * cp-valprint.c (cp_print_value_fields): Update.
10567 (cp_print_value): New function.
10568
64b653ca
TT
105692020-03-13 Tom Tromey <tom@tromey.com>
10570
10571 * m2-valprint.c (m2_value_print_inner): Use
10572 cp_print_value_fields.
10573 * cp-valprint.c (cp_print_value_fields): New function.
10574 * c-valprint.c (c_value_print_struct): New function.
10575 (c_value_print_inner): Use c_value_print_struct.
10576 * c-lang.h (cp_print_value_fields): Declare.
10577
6999f067
TT
105782020-03-13 Tom Tromey <tom@tromey.com>
10579
10580 * c-valprint.c (c_value_print_array): New function.
10581 (c_value_print_inner): Use it.
10582
ce80b8bd
TT
105832020-03-13 Tom Tromey <tom@tromey.com>
10584
10585 * c-valprint.c (c_value_print_memberptr): New function.
10586 (c_value_print_inner): Use it.
10587
2faac269
TT
105882020-03-13 Tom Tromey <tom@tromey.com>
10589
10590 * c-valprint.c (c_value_print_int): New function.
10591 (c_value_print_inner): Use it.
10592
da3e2c29
TT
105932020-03-13 Tom Tromey <tom@tromey.com>
10594
10595 * c-valprint.c (c_value_print_ptr): New function.
10596 (c_value_print_inner): Use it.
10597
50836231
TT
105982020-03-13 Tom Tromey <tom@tromey.com>
10599
10600 * c-valprint.c (c_value_print_inner): Rewrite.
10601
4f412b6e
TT
106022020-03-13 Tom Tromey <tom@tromey.com>
10603
10604 * valprint.c (generic_value_print_complex): New function.
10605 (generic_value_print): Use it.
10606
f5354008
TT
106072020-03-13 Tom Tromey <tom@tromey.com>
10608
10609 * valprint.c (generic_val_print_float): Don't call
10610 val_print_scalar_formatted.
10611 (generic_val_print, generic_value_print): Update.
10612
3eec3b05
TT
106132020-03-13 Tom Tromey <tom@tromey.com>
10614
10615 * valprint.c (generic_value_print_char): New function
10616 (generic_value_print): Use it.
10617
fdddfccb
TT
106182020-03-13 Tom Tromey <tom@tromey.com>
10619
10620 * valprint.c (generic_value_print_int): New function.
10621 (generic_value_print): Use it.
10622
6dde7521
TT
106232020-03-13 Tom Tromey <tom@tromey.com>
10624
10625 * valprint.c (generic_value_print_bool): New function.
10626 (generic_value_print): Use it.
10627
4112d2e6
TT
106282020-03-13 Tom Tromey <tom@tromey.com>
10629
10630 * valprint.c (generic_val_print_func): Simplify.
10631 (generic_val_print, generic_value_print): Update.
10632
65786af6
TT
106332020-03-13 Tom Tromey <tom@tromey.com>
10634
10635 * valprint.c (generic_val_print_flags): Remove.
10636 (generic_val_print, generic_value_print): Update.
10637 (val_print_type_code_flags): Add original_value parameter.
10638
40f3ce18
TT
106392020-03-13 Tom Tromey <tom@tromey.com>
10640
10641 * valprint.c (generic_val_print): Update.
10642 (generic_value_print): Update.
10643 * valprint.c (generic_val_print_enum): Don't call
10644 val_print_scalar_formatted.
10645
2a5b130b
TT
106462020-03-13 Tom Tromey <tom@tromey.com>
10647
10648 * valprint.c (generic_value_print): Call generic_value_print_ptr.
10649 * valprint.c (generic_value_print_ptr): New function.
10650
abc66ce9
TT
106512020-03-13 Tom Tromey <tom@tromey.com>
10652
10653 * valprint.c (generic_value_print): Rewrite.
10654
07a32858
TT
106552020-03-13 Tom Tromey <tom@tromey.com>
10656
10657 * p-valprint.c (pascal_object_print_value_fields)
10658 (pascal_object_print_value): New functions.
10659
64d64d3a
TT
106602020-03-13 Tom Tromey <tom@tromey.com>
10661
10662 * p-valprint.c (pascal_value_print_inner): Rewrite.
10663
6a95a1f5
TT
106642020-03-13 Tom Tromey <tom@tromey.com>
10665
10666 * f-valprint.c (f_value_print_innner): Rewrite.
10667
59fcdac6
TT
106682020-03-13 Tom Tromey <tom@tromey.com>
10669
10670 * m2-valprint.c (m2_print_unbounded_array): New overload.
10671 (m2_print_unbounded_array): Update.
10672 (m2_print_array_contents): Take a struct value.
10673 (m2_value_print_inner): Rewrite.
10674
d133c3e1
TT
106752020-03-13 Tom Tromey <tom@tromey.com>
10676
10677 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
10678 (d_value_print_inner): New function.
10679 * d-lang.h (d_value_print_inner): Declare.
10680 * d-lang.c (d_language_defn): Use d_value_print_inner.
10681
23b0f06b
TT
106822020-03-13 Tom Tromey <tom@tromey.com>
10683
10684 * go-valprint.c (go_value_print_inner): New function.
10685 * go-lang.h (go_value_print_inner): Declare.
10686 * go-lang.c (go_language_defn): Use go_value_print_inner.
10687
5f56f7cb
TT
106882020-03-13 Tom Tromey <tom@tromey.com>
10689
10690 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
10691 API.
10692 (rust_val_print): Rewrite.
10693 (rust_value_print_inner): New function, from rust_val_print.
10694 (rust_language_defn): Use rust_value_print_inner.
10695
26792ee0
TT
106962020-03-13 Tom Tromey <tom@tromey.com>
10697
10698 * ada-valprint.c (ada_value_print_inner): New function.
10699 * ada-lang.h (ada_value_print_inner): Declare.
10700 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
10701
24051bbe
TT
107022020-03-13 Tom Tromey <tom@tromey.com>
10703
10704 * f-valprint.c (f_value_print_innner): New function.
10705 * f-lang.h (f_value_print_innner): Declare.
10706 * f-lang.c (f_language_defn): Use f_value_print_innner.
10707
c0941be6
TT
107082020-03-13 Tom Tromey <tom@tromey.com>
10709
10710 * p-valprint.c (pascal_value_print_inner): New function.
10711 * p-lang.h (pascal_value_print_inner): Declare.
10712 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
10713
62c4663d
TT
107142020-03-13 Tom Tromey <tom@tromey.com>
10715
10716 * m2-valprint.c (m2_value_print_inner): New function.
10717 * m2-lang.h (m2_value_print_inner): Declare.
10718 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
10719
62182190
TT
107202020-03-13 Tom Tromey <tom@tromey.com>
10721
10722 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
10723 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
10724 * c-valprint.c (c_value_print_inner): New function.
10725 * c-lang.h (c_value_print_inner): Declare.
10726 * c-lang.c (c_language_defn, cplus_language_defn)
10727 (asm_language_defn, minimal_language_defn): Use
10728 c_value_print_inner.
10729
1e592a8a
TT
107302020-03-13 Tom Tromey <tom@tromey.com>
10731
10732 * p-valprint.c (pascal_object_print_value_fields): Now static.
10733 * p-lang.h (pascal_object_print_value_fields): Don't declare.
10734
7fe471e9
TT
107352020-03-13 Tom Tromey <tom@tromey.com>
10736
10737 * c-valprint.c (c_val_print_array): Simplify.
10738
d121c6ce
TT
107392020-03-13 Tom Tromey <tom@tromey.com>
10740
10741 * valprint.c (value_print_array_elements): New function.
10742 * valprint.h (value_print_array_elements): Declare.
10743
4dba70ee
TT
107442020-03-13 Tom Tromey <tom@tromey.com>
10745
10746 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
10747 * mips-tdep.c (mips_print_register): Use
10748 value_print_scalar_formatted.
10749
4f9ae810
TT
107502020-03-13 Tom Tromey <tom@tromey.com>
10751
10752 * valprint.h (value_print_scalar_formatted): Declare.
10753 * valprint.c (value_print_scalar_formatted): New function.
10754
156bfec9
TT
107552020-03-13 Tom Tromey <tom@tromey.com>
10756
10757 * valprint.h (generic_value_print): Declare.
10758 * valprint.c (generic_value_print): New function.
10759
2b4e573d
TT
107602020-03-13 Tom Tromey <tom@tromey.com>
10761
10762 * valprint.c (do_val_print): Call la_value_print_inner, if
10763 available.
10764 * rust-lang.c (rust_language_defn): Update.
10765 * p-lang.c (pascal_language_defn): Update.
10766 * opencl-lang.c (opencl_language_defn): Update.
10767 * objc-lang.c (objc_language_defn): Update.
10768 * m2-lang.c (m2_language_defn): Update.
10769 * language.h (struct language_defn) <la_value_print_inner>: New
10770 member.
10771 * language.c (unknown_language_defn, auto_language_defn): Update.
10772 * go-lang.c (go_language_defn): Update.
10773 * f-lang.c (f_language_defn): Update.
10774 * d-lang.c (d_language_defn): Update.
10775 * c-lang.c (c_language_defn, cplus_language_defn)
10776 (asm_language_defn, minimal_language_defn): Update.
10777 * ada-lang.c (ada_language_defn): Update.
10778
a1f6a07c
TT
107792020-03-13 Tom Tromey <tom@tromey.com>
10780
10781 * c-valprint.c (c_value_print): Use common_val_print.
10782
410cf315
TT
107832020-03-13 Tom Tromey <tom@tromey.com>
10784
10785 * cp-valprint.c (cp_print_static_field): Use common_val_print.
10786
72a45c93
TT
107872020-03-13 Tom Tromey <tom@tromey.com>
10788
10789 * f-valprint.c (f77_print_array_1, f_val_print): Use
10790 common_val_print.
10791
040f66bd
TT
107922020-03-13 Tom Tromey <tom@tromey.com>
10793
10794 * riscv-tdep.c (riscv_print_one_register_info): Use
10795 common_val_print.
10796
a6e05a6c
TT
107972020-03-13 Tom Tromey <tom@tromey.com>
10798
10799 * mi/mi-main.c (output_register): Use common_val_print.
10800
3444c526
TT
108012020-03-13 Tom Tromey <tom@tromey.com>
10802
10803 * infcmd.c (default_print_one_register_info): Use
10804 common_val_print.
10805
c2a44efe
TT
108062020-03-13 Tom Tromey <tom@tromey.com>
10807
10808 * valprint.h (common_val_print_checked): Declare.
10809 * valprint.c (common_val_print_checked): New function.
10810 * stack.c (print_frame_arg): Use common_val_print_checked.
10811
b0c26e99
TT
108122020-03-13 Tom Tromey <tom@tromey.com>
10813
10814 * valprint.c (do_val_print): New function, from val_print.
10815 (val_print): Use do_val_print.
10816 (common_val_print): Use do_val_print.
10817
ce3acbe9
TT
108182020-03-13 Tom Tromey <tom@tromey.com>
10819
10820 * valprint.c (value_print): Use scoped_value_mark.
10821
96c7f873
TV
108222020-03-13 Tom de Vries <tdevries@suse.de>
10823
10824 PR symtab/25646
10825 * psymtab.c (partial_symtab::partial_symtab): Don't set
10826 globals_offset and statics_offset. Push element onto
10827 current_global_psymbols and current_static_psymbols stacks.
10828 (concat): New function.
10829 (end_psymtab_common): Set globals_offset and statics_offset. Pop
10830 element from current_global_psymbols and current_static_psymbols
10831 stacks. Concat popped elements to global_psymbols and
10832 static_symbols.
10833 (add_psymbol_to_list): Use current_global_psymbols and
10834 current_static_psymbols stacks.
10835 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
10836 current_static_psymbols fields.
10837
6ba0a321
CB
108382020-03-12 Christian Biesinger <cbiesinger@google.com>
10839
10840 * corelow.c (sniff_core_bfd): Remove.
10841 (class core_target) <m_core_vec>: Remove.
10842 (core_target::core_target): Update.
10843 (core_file_fns): Remove.
10844 (deprecated_add_core_fns): Remove.
10845 (default_core_sniffer): Remove.
10846 (sniff_core_bfd): Remove.
10847 (default_check_format): Remove.
10848 (gdb_check_format): Remove.
10849 (core_target_open): Update.
10850 (core_target::get_core_register_section): Update.
10851 (get_core_registers_cb): Update.
10852 (core_target::fetch_registers): Update.
10853 * gdbcore.h (struct core_fns): Remove.
10854 (deprecated_add_core_fns): Remove.
10855 (default_core_sniffer): Remove.
10856 (default_check_format): Remove.
10857
227031b2
TT
108582020-03-12 Tom Tromey <tom@tromey.com>
10859
10860 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
10861 CORE_ADDR.
10862 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
10863
53807e9f
TT
108642020-03-12 Tom Tromey <tom@tromey.com>
10865
10866 * remote.c (remote_target::download_tracepoint)
10867 (remote_target::enable_tracepoint)
10868 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
10869 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
10870 sprintf_vma.
10871
64f25102
TT
108722020-03-12 Tom Tromey <tom@tromey.com>
10873
10874 * symfile-mem.c: Update CORE_ADDR size assert.
10875
272cd5a3
SM
108762020-03-12 Simon Marchi <simon.marchi@efficios.com>
10877
10878 * selftest.m4: Move to gdbsupport/.
10879 * acinclude.m4: Update path to selftest.m4.
10880
74cd3f9d
SM
108812020-03-12 Simon Marchi <simon.marchi@efficios.com>
10882
10883 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
10884 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
10885 gdbarch-selfselftests.c and selftest-arch.c.
10886 (SUBDIR_UNITTESTS_OBS): Rename to...
10887 (SELFTESTS_OBS): ... this.
10888 (COMMON_SFILES): Remove disasm-selftests.c and
10889 gdbarch-selftests.c.
10890 * configure.ac: Don't add selftest-arch.{c,o} to
10891 CONFIG_{SRCS,OBS}.
10892 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
10893 preprocessor conditions.
10894
db6878ac
SM
108952020-03-12 Simon Marchi <simon.marchi@efficios.com>
10896
10897 * configure.ac: Don't source bfd/development.sh.
10898 * selftest.m4: Modify comment.
10899 * configure: Re-generate.
10900
4d696a5c
SM
109012020-03-12 Simon Marchi <simon.marchi@efficios.com>
10902
10903 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
10904 not "true" or "false".
10905 * configure: Re-generate.
10906
8dd8e1c7
CB
109072020-03-12 Christian Biesinger <cbiesinger@google.com>
10908
10909 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
10910 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
10911 renamed to arm_nbsd_supply_gregset.
10912 (fetch_register): Update to call arm_nbsd_supply_gregset.
10913 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
10914 (arm_netbsd_nat_target::fetch_registers): Update.
10915 (fetch_elfcore_registers): Removed.
10916 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
10917 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
10918 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
10919 not require NetBSD system headers.
10920 (arm_nbsd_regset): New struct.
10921 (arm_nbsd_iterate_over_regset_sections): New function.
10922 (arm_netbsd_init_abi_common): Updated to call
10923 set_gdbarch_iterate_over_regset_sections.
10924 * arm-nbsd-tdep.h: New file.
10925
dd69bf7a
KB
109262020-03-11 Kevin Buettner <kevinb@redhat.com>
10927
10928 * symtab.c (find_pc_sect_line): Add check which prevents infinite
10929 recursion.
10930
a0761e34
SM
109312020-03-11 Simon Marchi <simon.marchi@efficios.com>
10932
10933 * configure: Re-generate.
10934
e7a82140
TT
109352020-03-11 Tom Tromey <tromey@adacore.com>
10936
10937 * ada-typeprint.c (print_choices): Fix comment.
10938
dcc050c8
AB
109392020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
10940
10941 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
10942 previous item in the list, when the list has no items.
10943
1c33af77
TV
109442020-03-11 Tom de Vries <tdevries@suse.de>
10945
10946 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
10947 PROP_LOCLIST handling code.
10948
8c95582d
AB
109492020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
10950
10951 * buildsym-legacy.c (record_line): Pass extra parameter to
10952 record_line.
10953 * buildsym.c (buildsym_compunit::record_line): Take an extra
10954 parameter, reduce duplication in the line table, and record the
10955 is_stmt flag in the line table.
10956 * buildsym.h (buildsym_compunit::record_line): Add extra
10957 parameter.
10958 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
10959 non-statement lines.
10960 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
10961 this to the symtab builder.
10962 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
10963 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
10964 through to dwarf_record_line_1.
10965 * infrun.c (process_event_stop_test): When stepping, don't stop at
10966 a non-statement instruction, and only refresh the step info when
10967 we land in the middle of a line's range. Also add an extra
10968 comment.
10969 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
10970 field.
10971 * record-btrace.c (btrace_find_line_range): Only record lines
10972 marked as is-statement.
10973 * stack.c (frame_show_address): Show the frame address if we are
10974 in a non-statement sal.
10975 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
10976 (maintenance_print_one_line_table): Print a header for the is_stmt
10977 column, and include is_stmt information in the output.
10978 * symtab.c (find_pc_sect_line): Find lines marked as statements in
10979 preference to non-statements.
10980 (find_pcs_for_symtab_line): Prefer is-statement entries.
10981 (find_line_common): Likewise.
10982 * symtab.h (struct linetable_entry): Add is_stmt field.
10983 (struct symtab_and_line): Likewise.
10984 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
10985 arranging the line table.
10986
e4003a34
TV
109872020-03-07 Tom de Vries <tdevries@suse.de>
10988
10989 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
10990 DIE.
10991
e8932576
TT
109922020-03-07 Tom Tromey <tom@tromey.com>
10993
10994 * valops.c (value_literal_complex): Remove obsolete comment.
10995 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
10996 comment.
10997
29734269
SM
109982020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
10999
11000 * infrun.h: Forward-declare thread_info.
11001 (set_step_info): Add thread_info parameter, add doc.
11002 * infrun.c (set_step_info): Add thread_info parameter, move doc
11003 to header.
11004 * infrun.c (process_event_stop_test): Pass thread to
11005 set_step_info call.
11006 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
11007 set_step_info.
11008 (prepare_one_step): Add thread_info parameter, pass it to
11009 set_step_frame and prepare_one_step (recursive) call.
11010 (step_1): Pass thread to prepare_one_step call.
11011 (step_command_fsm::should_stop): Pass thread to
11012 prepare_one_step.
11013 (until_next_fsm): Pass thread to set_step_frame call.
11014 (finish_command): Pass thread to set_step_info call.
11015
b7d64b29
HD
110162020-03-06 Hannes Domani <ssbssa@yahoo.de>
11017
11018 * windows-tdep.c (windows_solib_create_inferior_hook):
11019 Check if inferior is running.
11020
09f2921c
TV
110212020-03-06 Tom de Vries <tdevries@suse.de>
11022
11023 * NEWS: Fix "the the".
11024 * ctfread.c: Same.
11025
fd760e79
TV
110262020-03-06 Tom de Vries <tdevries@suse.de>
11027
11028 * psymtab.c (psymtab_to_symtab): Don't print "done.".
11029
20ea4a60
AB
110302020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11031
11032 * .dir-locals.el: Add a comment referencing the other copies of
11033 this file.
11034
0afbabf0
JB
110352020-03-05 John Baldwin <jhb@FreeBSD.org>
11036
11037 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
11038 psargs.
11039
842806cb
TBA
110402020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11041
11042 * .gitattributes: New file.
11043
be1e3d3e
TT
110442020-03-04 Tom Tromey <tom@tromey.com>
11045
11046 * symmisc.c (print_symbol_bcache_statistics)
11047 (print_objfile_statistics): Update.
11048 * symfile.c (allocate_symtab): Use intern.
11049 * psymtab.c (partial_symtab::partial_symtab): Use intern.
11050 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
11051 macro_cache>: Remove.
11052 <string_cache>: New member.
11053 (struct objfile) <intern>: New methods.
11054 * elfread.c (elf_symtab_read): Use intern.
11055 * dwarf2/read.c (fixup_go_packaging): Intern package name.
11056 (dwarf2_compute_name, dwarf2_physname)
11057 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
11058 names.
11059 (guess_partial_die_structure_name): Update.
11060 (partial_die_info::fixup): Intern name.
11061 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
11062 name.
11063 (dwarf2_name): Intern name. Update.
11064 * buildsym.c (buildsym_compunit::get_macro_table): Use
11065 string_cache.
11066
4e7625fd
TT
110672020-03-04 Tom Tromey <tom@tromey.com>
11068
11069 * jit.c (bfd_open_from_target_memory): Make "target" const.
11070 * corefile.c (gnutarget): Now const.
11071 * gdbcore.h (gnutarget): Now const.
11072
46f9f931
HD
110732020-03-04 Hannes Domani <ssbssa@yahoo.de>
11074
11075 * NEWS: Mention support for WOW64 processes.
11076 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
11077 (amd64_windows_segment_register_p): Remove static.
11078 (_initialize_amd64_windows_nat): Update.
11079 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
11080 * i386-windows-nat.c (context_offset): Update.
11081 (i386_mappings): Rename and remove static.
11082 (i386_windows_segment_register_p): Remove static.
11083 (_initialize_i386_windows_nat): Update.
11084 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
11085 (STATUS_WX86_SINGLE_STEP): New macro.
11086 (EnumProcessModulesEx): New macro.
11087 (Wow64SuspendThread): New macro.
11088 (Wow64GetThreadContext): New macro.
11089 (Wow64SetThreadContext): New macro.
11090 (Wow64GetThreadSelectorEntry): New macro.
11091 (windows_set_context_register_offsets): Add static.
11092 (windows_set_segment_register_p): Likewise.
11093 (windows_add_thread): Adapt for WOW64 processes.
11094 (windows_fetch_one_register): Likewise.
11095 (windows_nat_target::fetch_registers): Likewise.
11096 (windows_store_one_register): Likewise.
11097 (display_selector): Likewise.
11098 (display_selectors): Likewise.
11099 (handle_exception): Likewise.
11100 (windows_continue): Likewise.
11101 (windows_nat_target::resume): Likewise.
11102 (windows_add_all_dlls): Likewise.
11103 (do_initial_windows_stuff): Likewise.
11104 (windows_nat_target::attach): Likewise.
11105 (windows_get_exec_module_filename): Likewise.
11106 (windows_nat_target::create_inferior): Likewise.
11107 (windows_xfer_siginfo): Likewise.
11108 (_initialize_loadable): Initialize Wow64SuspendThread,
11109 Wow64GetThreadContext, Wow64SetThreadContext,
11110 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
11111 * windows-nat.h (windows_set_context_register_offsets):
11112 Remove declaration.
11113 (windows_set_segment_register_p): Likewise.
11114 (i386_windows_segment_register_p): Add declaration.
11115 (amd64_windows_segment_register_p): Likewise.
11116
440cf44e
LM
111172020-03-04 Luis Machado <luis.machado@linaro.org>
11118
11119 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
11120 in "info registers" for AArch64/ARM.
11121
11122 The change caused "info registers" to not print GPR's.
11123
11124 gdb/ChangeLog:
11125
11126 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
11127
11128 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
11129 when reg->group is empty and reggroup is not.
11130
1009d92f
TT
111312020-03-03 Tom Tromey <tromey@adacore.com>
11132
11133 * dwarf2/frame.c (struct dwarf2_frame_cache)
11134 <checked_tailcall_bottom, entry_cfa_sp_offset,
11135 entry_cfa_sp_offset_p>: Remove members.
11136 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
11137 (dwarf2_frame_prev_register): Don't call
11138 dwarf2_tailcall_sniffer_first.
11139 (dwarf2_append_unwinders): Don't append tailcall unwinder.
11140 * frame-unwind.c (add_unwinder): New fuction.
11141 (frame_unwind_init): Use it. Add tailcall unwinder.
11142
5e5d66b6
AB
111432020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
11144 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11145
11146 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
11147 value should be printed as true.
11148
584cf46d
HD
111492020-03-03 Hannes Domani <ssbssa@yahoo.de>
11150
11151 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
11152 (windows_init_abi): Set and use windows_so_ops.
11153
7b973adc
SDJ
111542020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
11155
11156 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
11157 when verifying if dealing with a convenience variable.
11158
bb7b70ab
LM
111592020-03-03 Luis Machado <luis.machado@linaro.org>
11160
11161 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
11162
9822cb57
SM
111632020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11164
11165 * infrun.c (gdbarch_supports_displaced_stepping): New.
11166 (use_displaced_stepping): Break up conditions in smaller pieces.
11167 Use gdbarch_supports_displaced_stepping.
11168 (displaced_step_prepare_throw): Use
11169 gdbarch_supports_displaced_stepping.
11170
63e163f2
AB
111712020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
11172
11173 * NEWS: Mention new behaviour of the history filename.
11174 * top.c (write_history_p): Add comment.
11175 (show_write_history_p): Add header comment, give a different
11176 message when history writing is on, but the history filename is
11177 empty.
11178 (history_filename): Add comment.
11179 (history_filename_empty): New function.
11180 (show_history_filename): Add header comment, give a different
11181 message when the filename is empty.
11182 (init_history): Compare history_filename against nullptr, and only
11183 read history if the filename is not empty.
11184 (set_history_filename): Add header comment, and only make
11185 non-empty filenames absolute.
11186 (init_main): Make the filename argument to 'set history filename'
11187 optional.
11188
81b86b97
CB
111892020-03-02 Christian Biesinger <cbiesinger@google.com>
11190
11191 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
11192 (arm_supply_vfpregset): ...this, and update to use VFP registers.
11193 (fetch_fp_register): Update.
11194 (fetch_fp_regs): Update.
11195 (store_fp_register): Update.
11196 (store_fp_regs): Update.
11197 (arm_netbsd_nat_target::read_description): New function.
11198 (fetch_elfcore_registers): Update.
11199
24ed6739
AB
112002020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
11201
11202 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
11203 general_thread if the stop reply is missing a thread-id.
11204 (remote_target::process_stop_reply): Use the first non-exited
11205 thread if the target didn't pass a thread-id.
11206 * infrun.c (do_target_wait): Move call to
11207 switch_to_inferior_no_thread to ....
11208 (do_target_wait_1): ... here.
11209
a84bb2a0
JT
112102020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
11211
11212 * debuginfod-support.c: Include defs.h first.
11213
658dadf0
TV
112142020-02-28 Tom de Vries <tdevries@suse.de>
11215
11216 * symfile.c (set_initial_language): Use default language for lookup.
11217
4ebe4877
SM
112182020-02-28 Simon Marchi <simon.marchi@efficios.com>
11219
11220 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
11221 reader variable, pass `this` to read_cutu_die_from_dwo.
11222
e5da1139
AM
112232020-02-27 Aaron Merey <amerey@redhat.com>
11224
11225 * source.c (open_source_file): Check for nullptr when computing
11226 srcpath.
11227
317f7127
TT
112282020-02-27 Tom Tromey <tromey@adacore.com>
11229
11230 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
11231 member.
11232 (dwarf2_add_field): Don't update nfields.
11233 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
11234
3104d9ee
AB
112352020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11236
11237 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
11238 abs.
11239
b83470bf
TT
112402020-02-26 Tom Tromey <tom@tromey.com>
11241
11242 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
11243 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
11244 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
11245 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
11246 per_cu_data.
11247
edfe0a0c
TT
112482020-02-26 Tom Tromey <tom@tromey.com>
11249
11250 * dwarf2/index-write.c (psym_index_map): Change type.
11251 (add_address_entry_worker, write_one_signatured_type)
11252 (recursively_count_psymbols, recursively_write_psymbols)
11253 (class debug_names, psyms_seen_size, write_gdbindex)
11254 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
11255
0d79cdc4
AM
112562020-02-26 Aaron Merey <amerey@redhat.com>
11257
11258 * Makefile.in: Handle optional debuginfod support.
11259 * NEWS: Update.
11260 * README: Add --with-debuginfod summary.
11261 * config.in: Regenerate.
11262 * configure: Regenerate.
11263 * configure.ac: Handle optional debuginfod support.
11264 * debuginfod-support.c: debuginfod helper functions.
11265 * debuginfod-support.h: Ditto.
11266 * doc/gdb.texinfo: Add --with-debuginfod to configure options
11267 summary.
11268 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
11269 when a dwz file cannot be found.
11270 * elfread.c (elf_symfile_read): Query debuginfod servers when a
11271 debuginfo file cannot be found.
11272 * source.c (open_source_file): Query debuginfod servers when a
11273 source file cannot be found.
11274 * top.c (print_gdb_configuration): Include
11275 --{with,without}-debuginfod in the output.
11276
b65ce565
JG
112772020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
11278
11279 * thread.c (thr_try_catch_cmd): Print thread name.
11280
d4c9a4f8
SM
112812020-02-26 Simon Marchi <simon.marchi@efficios.com>
11282
11283 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
11284 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
11285 dwarf2_fetch_die_type_sect_off): Move to...
11286 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
11287 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
11288 dwarf2_fetch_die_type_sect_off): ... here.
11289 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
11290 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
11291 dwarf2_fetch_die_type_sect_off): Move doc to header file.
11292
0dce4280
TV
112932020-02-26 Tom de Vries <tdevries@suse.de>
11294
11295 PR gdb/25603
11296 * symfile.c (set_initial_language): Exit-early if
11297 language_mode == language_mode_manual.
11298
450a1bfc
SM
112992020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
11300
11301 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
11302 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
11303 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
11304
9e80cfa1
AB
113052020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
11306
11307 * gdbtypes.c (create_array_type_with_stride): Handle negative
11308 array strides.
11309 * valarith.c (value_subscripted_rvalue): Likewise.
11310
09624f1f
LM
113112020-02-25 Luis Machado <luis.machado@linaro.org>
11312
11313 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
11314
8cb5117c
SM
113152020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
11316
11317 * loc.h (dwarf2_get_die_type): Move to...
11318 * read.h (dwarf2_get_die_type): ... here.
11319 * read.c (dwarf2_get_die_type): Move doc to header.
11320
c325c44e
JB
113212020-02-25 Joel Brobecker <brobecker@adacore.com>
11322
11323 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
11324 'gnulib/Makefile.in' to the list.
11325
4ac93832
TT
113262020-02-24 Tom Tromey <tom@tromey.com>
11327
11328 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
11329 Remove.
11330 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
11331 XOBNEWVEC.
11332
197400e8
TT
113332020-02-24 Tom Tromey <tom@tromey.com>
11334
11335 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
11336 New method.
11337 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
11338 (dw2_do_instantiate_symtab, dw2_get_file_names)
11339 (build_type_psymtab_dependencies, load_full_type_unit): Update.
11340
76935768
TT
113412020-02-24 Tom Tromey <tom@tromey.com>
11342
11343 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
11344 make_scoped_restore.
11345 (dwarf2_psymtab::read_symtab): Don't clear
11346 reading_partial_symbols.
11347
a88ef40d
TV
113482020-02-24 Tom de Vries <tdevries@suse.de>
11349
11350 PR gdb/25592
11351 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
11352
c9af6521
TV
113532020-02-24 Tom de Vries <tdevries@suse.de>
11354
11355 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
11356 commands layout next/prev/regs.
11357
5707a07a
TT
113582020-02-22 Tom Tromey <tom@tromey.com>
11359
11360 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
11361 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
11362
3b0fb49e
TT
113632020-02-22 Tom Tromey <tom@tromey.com>
11364
11365 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
11366
283be8bf
TT
113672020-02-22 Tom Tromey <tom@tromey.com>
11368
11369 * tui/tui-win.c (_initialize_tui_win): Add usage text.
11370 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
11371 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
11372 * tui/tui.c (_initialize_tui): Add usage text.
11373
ca793b96
TT
113742020-02-22 Tom Tromey <tom@tromey.com>
11375
11376 * tui/tui-win.c (tui_set_focus_command)
11377 (tui_set_win_height_command): Use error_no_arg.
11378 (_initialize_tui_win): Update help text.
11379 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
11380
432b5c40
TT
113812020-02-22 Tom Tromey <tom@tromey.com>
11382
11383 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
11384 * tui/tui-disasm.h (struct tui_disasm_window)
11385 <display_start_addr>: Declare.
11386 * tui/tui-source.h (struct tui_source_window)
11387 <display_start_addr>: Declare.
11388 * tui/tui-winsource.h (struct tui_source_window_base)
11389 <show_source_line, display_start_addr>: New methods.
11390 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
11391 Rename and move to protected section.
11392 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
11393 (tui_source_window_base::do_erase_source_content): Update.
11394 (tui_source_window_base::show_source_line): Now a method.
11395 (tui_source_window_base::show_source_content)
11396 (tui_source_window_base::tui_source_window_base)
11397 (tui_source_window_base::rerender)
11398 (tui_source_window_base::refill)
11399 (tui_source_window_base::do_scroll_horizontal)
11400 (tui_source_window_base::set_is_exec_point_at)
11401 (tui_source_window_base::update_breakpoint_info)
11402 (tui_source_window_base::update_exec_info): Update.
11403 * tui/tui-source.c (tui_source_window::set_contents)
11404 (tui_source_window::showing_source_p)
11405 (tui_source_window::do_scroll_vertical)
11406 (tui_source_window::location_matches_p)
11407 (tui_source_window::line_is_displayed): Update.
11408 (tui_source_window::display_start_addr): New method.
11409 * tui/tui-disasm.c (tui_disasm_window::set_contents)
11410 (tui_disasm_window::do_scroll_vertical)
11411 (tui_disasm_window::location_matches_p): Update.
11412 (tui_disasm_window::display_start_addr): New method.
11413
01b1af32
TT
114142020-02-22 Tom Tromey <tom@tromey.com>
11415
11416 * NEWS: Add entry for gdb.register_window_type.
11417 * tui/tui-layout.h (window_factory): New typedef.
11418 (tui_register_window): Declare.
11419 * tui/tui-layout.c (saved_tui_windows): New global.
11420 (tui_apply_current_layout): Use it.
11421 (tui_register_window): New function.
11422 * python/python.c (do_start_initialization): Call
11423 gdbpy_initialize_tui.
11424 (python_GdbMethods): Add "register_window_type" function.
11425 * python/python-internal.h (gdbpy_register_tui_window)
11426 (gdbpy_initialize_tui): Declare.
11427 * python/py-tui.c: New file.
11428 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
11429
fc96d20b
TT
114302020-02-22 Tom Tromey <tom@tromey.com>
11431
11432 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
11433
935c78c0
TT
114342020-02-22 Tom Tromey <tom@tromey.com>
11435
11436 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
11437 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
11438 * tui/tui-data.c (tui_set_win_with_focus): Remove.
11439 (tui_set_win_focus_to): Move from tui-win.c.
11440
0240c8f1
TT
114412020-02-22 Tom Tromey <tom@tromey.com>
11442
11443 * tui/tui-layout.c (make_standard_window, get_locator_window): New
11444 functions.
11445 (known_window_types): New global.
11446 (tui_get_window_by_name): Reimplement.
11447 (initialize_known_windows): New function.
11448 (validate_window_name): Rewrite.
11449 (_initialize_tui_layout): Call initialize_known_windows.
11450
fdb01f0c
TT
114512020-02-22 Tom Tromey <tom@tromey.com>
11452
11453 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
11454 Remove constants.
11455 * tui/tui-winsource.h (struct tui_source_window_base)
11456 <tui_source_window_base>: Remove parameter.
11457 * tui/tui-winsource.c
11458 (tui_source_window_base::tui_source_window_base): Remove
11459 parameter.
11460 (tui_source_window_base::refill): Update.
11461 * tui/tui-stack.h (struct tui_locator_window)
11462 <tui_locator_window>: Update.
11463 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
11464 Default the constructor.
11465 * tui/tui-regs.h (struct tui_data_item_window)
11466 <tui_data_item_window>: Default the constructor.
11467 (struct tui_data_window) <tui_data_window>: Likewise.
11468 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
11469 Default the constructor.
11470 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
11471 Default the constructor.
11472 <type>: Remove.
11473 (struct tui_win_info) <tui_win_info>: Default the constructor.
11474 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
11475 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
11476 Default the constructor.
11477
865a5aec
TT
114782020-02-22 Tom Tromey <tom@tromey.com>
11479
11480 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
11481 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
11482 * tui/tui-win.c (tui_resize_all): Don't call
11483 tui_delete_invisible_windows.
11484 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
11485 done.
11486 (tui_set_layout): Update.
11487 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
11488 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
11489 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
11490
e098d18c
TT
114912020-02-22 Tom Tromey <tom@tromey.com>
11492
11493 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
11494 correctly.
11495
eb9c8874
TT
114962020-02-22 Tom Tromey <tom@tromey.com>
11497
11498 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
11499
7eed1a8e
TT
115002020-02-22 Tom Tromey <tom@tromey.com>
11501
11502 * tui/tui-winsource.h (struct tui_source_window_iterator)
11503 <inner_iterator>: New etytypedef.
11504 <tui_source_window_iterator>: Take "end" parameter.
11505 <tui_source_window_iterator>: Take iterator.
11506 <operator*, advance>: Update.
11507 <m_iter>: Change type.
11508 <m_end>: New field.
11509 (struct tui_source_windows) <begin, end>: Update.
11510 * tui/tui-layout.c (tui_windows): New global.
11511 (tui_apply_current_layout): Clear tui_windows.
11512 (tui_layout_window::apply): Update tui_windows.
11513 * tui/tui-data.h (tui_windows): Declare.
11514 (all_tui_windows): Now inline function.
11515 (class tui_window_iterator, struct all_tui_windows): Remove.
11516
7c043ba6
TT
115172020-02-22 Tom Tromey <tom@tromey.com>
11518
11519 PR tui/17850:
11520 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
11521 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
11522 "height" argument.
11523 (class tui_layout_window) <get_sizes>: Likewise.
11524 (class tui_layout_split) <tui_layout_split>: Add "vertical"
11525 argument.
11526 <get_sizes>: Add "height" argument.
11527 <m_vertical>: New field.
11528 * tui/tui-layout.c (tui_layout_split::clone): Update.
11529 (tui_layout_split::get_sizes): Add "height" argument.
11530 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
11531 (tui_new_layout_command): Parse "-horizontal".
11532 (_initialize_tui_layout): Update help string.
11533 (tui_layout_split::specification): Add "-horizontal" when needed.
11534 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
11535 argument.
11536 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
11537 New methods.
11538
6bc56648
TT
115392020-02-22 Tom Tromey <tom@tromey.com>
11540
11541 * tui/tui-layout.h (enum tui_adjust_result): New.
11542 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
11543 (class tui_layout_window) <adjust_size>: Return
11544 tui_adjust_result. Rewrite.
11545 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
11546 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
11547
c22fef7e
TT
115482020-02-22 Tom Tromey <tom@tromey.com>
11549
11550 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
11551 parameter and return types.
11552 (class tui_layout_base) <specification>: Add "depth".
11553 (class tui_layout_window) <specification>: Add "depth".
11554 (class tui_layout_split) <specification>: Add "depth".
11555 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
11556 and return types.
11557 (tui_new_layout_command): Parse sub-layouts.
11558 (_initialize_tui_layout): Update help string.
11559 (tui_layout_window::specification): Add "depth".
11560 (add_layout_command): Update.
11561
ee325b61
TT
115622020-02-22 Tom Tromey <tom@tromey.com>
11563
11564 * NEWS: Add "tui new-layout" item.
11565 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
11566 Add new-layout command to help text.
11567 (validate_window_name): New function.
11568 (tui_new_layout_command): New function.
11569 (_initialize_tui_layout): Register "new-layout".
11570 (tui_layout_window::specification): New method.
11571 (tui_layout_window::specification): New method.
11572 * tui/tui-layout.h (class tui_layout_base) <specification>: New
11573 method.
11574 (class tui_layout_window) <specification>: New method.
11575 (class tui_layout_split) <specification>: New method.
11576
416eb92d
TT
115772020-02-22 Tom Tromey <tom@tromey.com>
11578
11579 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
11580 * tui/tui-win.c (window_name_completer): Update comment.
11581 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
11582 Declare method.
11583 (class tui_layout_window) <replace_window>: Likewise.
11584 (class tui_layout_split) <replace_window>: Likewise.
11585 (tui_set_layout): Don't declare.
11586 (tui_set_initial_layout): Declare function.
11587 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
11588 (asm_regs_layout): New globals.
11589 (tui_current_layout, show_layout): Remove.
11590 (tui_set_layout, tui_add_win_to_layout): Rewrite.
11591 (find_layout, tui_apply_layout): New function.
11592 (layout_completer): Remove.
11593 (tui_next_layout): Reimplement.
11594 (tui_next_layout_command): New function.
11595 (tui_set_initial_layout, tui_prev_layout_command): New functions.
11596 (tui_regs_layout): Reimplement.
11597 (tui_regs_layout_command): New function.
11598 (extract_display_start_addr): Rewrite.
11599 (next_layout, prev_layout): Remove.
11600 (tui_layout_window::replace_window): New method.
11601 (tui_layout_split::replace_window): New method.
11602 (destroy_layout): New function.
11603 (layout_list): New global.
11604 (add_layout_command): New function.
11605 (initialize_layouts): Update.
11606 (tui_layout_command): New function.
11607 (_initialize_tui_layout): Install "layout" commands.
11608 * tui/tui-data.h (enum tui_layout_type): Remove.
11609 (tui_current_layout): Don't declare.
11610
0dbc2fc7
TT
116112020-02-22 Tom Tromey <tom@tromey.com>
11612
11613 * tui/tui-regs.c (tui_reg_layout): Remove.
11614 (tui_reg_command): Use tui_regs_layout.
11615 * tui/tui-layout.h (tui_reg_command): Declare.
11616 * tui/tui-layout.c (tui_reg_command): New function.
11617
5afe342e
TT
116182020-02-22 Tom Tromey <tom@tromey.com>
11619
11620 * tui/tui.c (tui_rl_delete_other_windows): Call
11621 tui_remove_some_windows.
11622 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
11623 Declare method.
11624 (class tui_layout_window) <remove_windows>: New method.
11625 (class tui_layout_split) <remove_windows>: Declare.
11626 (tui_remove_some_windows): Declare.
11627 * tui/tui-layout.c (tui_remove_some_windows): New function.
11628 (tui_layout_split::remove_windows): New method.
11629
427326a8
TT
116302020-02-22 Tom Tromey <tom@tromey.com>
11631
11632 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
11633 * tui/tui-layout.h (tui_next_layout): Declare.
11634 * tui/tui-layout.c (tui_next_layout): New function.
11635
3fe12b6d
TT
116362020-02-22 Tom Tromey <tom@tromey.com>
11637
11638 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
11639 correct coordinates.
11640
59b8b5d2
TT
116412020-02-22 Tom Tromey <tom@tromey.com>
11642
11643 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
11644 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
11645 DATA_WIN case.
11646
2a3d458b
TT
116472020-02-22 Tom Tromey <tom@tromey.com>
11648
11649 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
11650 TUI_DISASM_WIN, not tui_win_list.
11651
3f0cbb04
TT
116522020-02-22 Tom Tromey <tom@tromey.com>
11653
11654 * valprint.c (generic_val_print_enum_1)
11655 (val_print_type_code_flags): Style member names.
11656 * rust-lang.c (val_print_struct, rust_print_enum)
11657 (rust_print_struct_def, rust_internal_print_type): Style member
11658 names.
11659 * p-valprint.c (pascal_object_print_value_fields): Style member
11660 names. Only call fprintf_symbol_filtered for static members.
11661 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
11662 * f-valprint.c (f_val_print): Style member names.
11663 * f-typeprint.c (f_type_print_base): Style member names.
11664 * cp-valprint.c (cp_print_value_fields): Style member names. Only
11665 call fprintf_symbol_filtered for static members.
11666 (cp_print_class_member): Style member names.
11667 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
11668 member names.
11669 * ada-valprint.c (ada_print_scalar): Style enum names.
11670 (ada_val_print_enum): Likewise.
11671 * ada-typeprint.c (print_enum_type): Style enum names.
11672
d4d947ae
TT
116732020-02-21 Tom Tromey <tom@tromey.com>
11674
11675 * psympriv.h (struct partial_symtab): Update comment.
11676
e94e944b
TT
116772020-02-21 Tom Tromey <tromey@adacore.com>
11678
11679 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
11680 type is CORE_ADDR.
11681
1eb73179
TV
116822020-02-21 Tom de Vries <tdevries@suse.de>
11683
11684 PR gdb/25534
11685 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
11686 if dependencies[i]->user != NULL.
11687
4f180d53
AT
116882020-02-21 Ali Tamur <tamur@google.com>
11689
11690 * dwarf2/read.c (dwarf2_name): Add null check.
11691
22b6cd70
TT
116922020-02-20 Tom Tromey <tom@tromey.com>
11693
11694 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
11695 ">=", in binary search.
11696 (dwarf2_find_containing_comp_unit): New overload.
11697 (run_test): New self-test.
11698 (_initialize_dwarf2_read): Register new test.
11699
bd0cf5a6
NC
117002020-02-20 Nelson Chu <nelson.chu@sifive.com>
11701
11702 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
11703 * riscv-tdep.h: Likewise.
11704 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
11705 rv32-only CSR.
11706 * features/riscv/64bit-csr.xml: Regenerated.
11707
3f702acd
SDJ
117082020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
11709 Tom Tromey <tom@tromey.com>
11710
11711 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
11712 of 'fputc_unfiltered'.
11713 (putchar_unfiltered): Call 'fputc_unfiltered'.
11714 (fputc_unfiltered): Call 'fputs_unfiltered'.
11715
d13c7322
AB
117162020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
11717
11718 * config.in: Regenerate.
11719 * configure: Regenerate.
11720 * configure.ac: Add --with-python-libdir option.
11721 * main.c: Use WITH_PYTHON_LIBDIR.
11722
869d8950
TT
117232020-02-19 Tom Tromey <tom@tromey.com>
11724
11725 * symtab.c (general_symbol_info::compute_and_set_names): Use
11726 obstack_strndup. Simplify call to symbol_set_demangled_name.
11727
298e9637
SM
117282020-02-19 Simon Marchi <simon.marchi@efficios.com>
11729
11730 * dwarf2/read.c (allocate_signatured_type_table,
11731 allocate_dwo_unit_table, allocate_type_unit_groups_table,
11732 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
11733 Remove objfile parameter, update all callers.
11734
08410482
DE
117352020-02-19 Doug Evans <dje@google.com>
11736
11737 PR rust/25535
11738 * rust-lang.c (rust_print_enum): Apply embedded_offset to
11739 rust_enum_variant calculation.
11740
dfdeeca1
TT
117412020-02-19 Tom Tromey <tromey@adacore.com>
11742
11743 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
11744
2ef5453b
TT
117452020-02-19 Tom Tromey <tromey@adacore.com>
11746
11747 * ada-lang.c (cache_symbol): Use obstack_strdup.
11748
9f1528a1
AB
117492020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
11750
11751 * configure: Regenerate.
11752
d3c22fa8
TT
117532020-02-19 Tom Tromey <tromey@adacore.com>
11754
11755 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
11756 NULL check.
11757
bf84f706
MR
117582020-02-19 Maciej W. Rozycki <macro@wdc.com>
11759
11760 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
11761
d1c9b20f
AB
117622020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
11763
11764 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
11765 if GDBSERVER is not defined.
11766 (riscv_tdesc_cache): Likewise, also store const target_desc.
11767 (STATIC_IN_GDB): Define.
11768 (riscv_create_target_description): Update declaration with
11769 STATIC_IN_GDB.
11770 (riscv_lookup_target_description): New function, only define if
11771 GDBSERVER is not defined.
11772 * arch/riscv.h (riscv_create_target_description): Declare only
11773 when GDBSERVER is defined.
11774 (riscv_lookup_target_description): New declaration when GDBSERVER
11775 is not defined.
11776 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
11777 (riscv_linux_read_features): ...this, and return
11778 riscv_gdbarch_features instead of target_desc.
11779 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
11780 (riscv_linux_read_description): Rename to...
11781 (riscv_linux_read_features): ...this.
11782 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
11783 Update to use riscv_gdbarch_features and
11784 riscv_lookup_target_description.
11785 * riscv-tdep.c (riscv_find_default_target_description): Use
11786 riscv_lookup_target_description instead of
11787 riscv_create_target_description.
11788
373d7ac0
SM
117892020-02-18 Simon Marchi <simon.marchi@efficios.com>
11790
11791 * valprint.c (generic_val_print_enum_1): When printing a flag
11792 enum with value 0 and there is no enumerator with value 0, print
11793 just "0" instead of "(unknown: 0x0)".
11794
b29a2df0
SM
117952020-02-18 Simon Marchi <simon.marchi@efficios.com>
11796
11797 * valprint.c (generic_val_print_enum_1): Print unknown part of
11798 flag enum in hex.
11799
6740f0cc
SM
118002020-02-18 Simon Marchi <simon.marchi@efficios.com>
11801
11802 * dwarf2/read.c (update_enumeration_type_from_children): Allow
11803 flag enums to contain duplicate enumerators.
11804 * valprint.c (generic_val_print_enum_1): Update comment.
11805
edd45eb0
SM
118062020-02-18 Simon Marchi <simon.marchi@efficios.com>
11807
11808 * dwarf2/read.c: Include "count-one-bits.h".
11809 (update_enumeration_type_from_children): If an enumerator has
11810 multiple bits set, don't treat the enumeration as a "flag enum".
11811 * valprint.c (generic_val_print_enum_1): Assert that enumerators
11812 of flag enums have 0 or 1 bit set.
11813
6d0cf446
BE
118142020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
11815
11816 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
11817 conversion.
11818 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11819 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
11820 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11821 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
11822 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11823
7001c1b7
SM
118242020-02-18 Simon Marchi <simon.marchi@efficios.com>
11825
11826 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
11827
fdb61c6c
SM
118282020-02-14 Simon Marchi <simon.marchi@efficios.com>
11829
11830 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
11831 displaced_step_closure_up.
11832 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
11833 (struct displaced_step_closure_up):
11834 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11835 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
11836 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
11837 Likewise.
11838 * gdbarch.sh (displaced_step_copy_insn): Likewise.
11839 * gdbarch.c, gdbarch.h: Re-generate.
11840 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
11841 displaced_step_closure_up.
11842 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11843 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
11844 * infrun.h (displaced_step_closure_up): New type alias.
11845 (struct displaced_step_inferior_state) <step_closure>: Change
11846 type to displaced_step_closure_up.
11847 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
11848 displaced_step_closure_up.
11849 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11850
a4a38eb4
TT
118512020-02-14 Tom Tromey <tom@tromey.com>
11852
11853 * minidebug.c (gnu_debug_key): New global.
11854 (find_separate_debug_file_in_section): Use it.
11855
e8217e61
SM
118562020-02-14 Simon Marchi <simon.marchi@efficios.com>
11857
11858 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
11859 std::unique_ptr.
11860 * gdbarch.c: Re-generate.
11861 * gdbarch.h: Re-generate.
11862 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
11863 change.
11864 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
11865 type to std::unique_ptr.
11866 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
11867 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11868 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
11869 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
11870 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
11871 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11872 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
11873 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
11874 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11875
d8d83535
SM
118762020-02-14 Simon Marchi <simon.marchi@efficios.com>
11877
11878 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
11879 std::unique_ptr.
11880 (displaced_step_clear): Rename to...
11881 (displaced_step_reset): ... this. Just call displaced->reset ().
11882 (displaced_step_clear_cleanup): Rename to...
11883 (displaced_step_reset_cleanup): ... this.
11884 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
11885 (displaced_step_fixup): Likewise.
11886 (resume_1): Likewise.
11887 (handle_inferior_event): Restore child's memory before calling
11888 displaced_step_fixup on the parent.
11889 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
11890 to std::unique_ptr.
11891 <step_closure>: Change type to std::unique_ptr.
11892
5f661e03
SM
118932020-02-14 Simon Marchi <simon.marchi@efficios.com>
11894
11895 * arm-tdep.c: Include count-one-bits.h.
11896 (cleanup_block_store_pc): Use count_one_bits.
11897 (cleanup_block_load_pc): Use count_one_bits.
11898 (arm_copy_block_xfer): Use count_one_bits.
11899 (thumb2_copy_block_xfer): Use count_one_bits.
11900 (thumb_copy_pop_pc_16bit): Use count_one_bits.
11901 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
11902 (thumb_get_next_pcs_raw): Use count_one_bits.
11903 (arm_get_next_pcs_raw): Use count_one_bits_l.
11904 * arch/arm.c (bitcount): Remove.
11905 * arch/arm.h (bitcount): Remove.
11906
8084e579
TT
119072020-02-14 Tom Tromey <tromey@adacore.com>
11908
11909 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
11910 Update.
11911 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
11912 * dwarf2/loc.c (call_site_find_chain_1): Return
11913 unique_xmalloc_ptr.
11914 (call_site_find_chain): Likewise.
11915
258bf0ee
RB
119162020-02-14 Richard Biener <rguenther@suse.de>
11917
11918 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
11919 on expression with division operators.
11920
f98a8458
AKS
119212020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11922
11923 * MAINTAINERS (Write After Approval): Adding myself.
11924
d1437c0e
TT
119252020-02-12 Tom Tromey <tom@tromey.com>
11926
11927 * event-loop.c (event_data, gdb_event, event_handler_func):
11928 Remove.
11929
3d4560f7
TT
119302020-02-12 Tom Tromey <tom@tromey.com>
11931
11932 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
11933 (dwarf2_frame_objfile_data): Add comment.
11934 (find_comp_unit, set_comp_unit): New functions.
11935 (dwarf2_frame_find_fde): Use find_comp_unit.
11936 (dwarf2_build_frame_info): Use set_comp_unit.
11937
21982304
TT
119382020-02-12 Tom Tromey <tom@tromey.com>
11939
11940 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
11941 (comp_unit): Don't initialize objfile.
11942 (execute_cfa_program): Add text_offset parameter.
11943 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
11944 (dwarf2_frame_cache): Update.
11945 (dwarf2_build_frame_info): Don't set "objfile" member.
11946
4debb237
TT
119472020-02-12 Tom Tromey <tom@tromey.com>
11948
11949 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
11950 (decode_frame_entry): Likewise.
11951 (dwarf2_build_frame_info): Update.
11952
0d404d44
TT
119532020-02-12 Tom Tromey <tom@tromey.com>
11954
11955 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
11956 (decode_frame_entry_1): Use the comp_unit obstack.
11957
a7a3ae5c
TT
119582020-02-12 Tom Tromey <tom@tromey.com>
11959
11960 * dwarf2/frame.c (struct comp_unit): Add initializers and
11961 constructor.
11962 (dwarf2_frame_objfile_data): Store a comp_unit.
11963 (dwarf2_frame_find_fde): Update.
11964 (dwarf2_build_frame_info): Use "new".
11965
a9d65418
TT
119662020-02-12 Tom Tromey <tom@tromey.com>
11967
11968 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
11969 (dwarf2_fde_table): Typedef for std::vector.
11970 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
11971 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
11972 (decode_frame_entry): Update.
11973 (dwarf2_build_frame_info): Use "new".
11974
7559c217
CB
119752020-02-12 Christian Biesinger <cbiesinger@google.com>
11976
11977 * arm-tdep.c (arm_gdbarch_init): Update.
11978 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
11979 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
11980 have_neon, is_m>: Change to bool.
11981
aeefc73c
CB
119822020-02-12 Christian Biesinger <cbiesinger@google.com>
11983
11984 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
11985
d27b8e5f
TT
119862020-02-12 Tom Tromey <tom@tromey.com>
11987
11988 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
11989
cd5900f3
HD
119902020-02-12 Hannes Domani <ssbssa@yahoo.de>
11991
11992 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
11993 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
11994
f056b22b
TT
119952020-02-11 Tom Tromey <tom@tromey.com>
11996
11997 * psymtab.h: Update comment.
11998
f92ff6b5
TT
119992020-02-11 Tom Tromey <tom@tromey.com>
12000
12001 * gdb_obstack.h (struct auto_obstack): Use
12002 DISABLE_COPY_AND_ASSIGN.
12003
3fd6912b
TT
120042020-02-11 Tom Tromey <tom@tromey.com>
12005
12006 * dwarf2/frame.h (struct objfile): Don't forward declare.
12007
69ed9b74
CB
120082020-02-11 Christian Biesinger <cbiesinger@google.com>
12009
12010 * cris-tdep.c (cris_supply_gregset): Change signature to match
12011 what struct regset expects.
12012 (cris_regset): New struct.
12013 (fetch_core_registers): Remove.
12014 (cris_iterate_over_regset_sections): New function.
12015 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
12016 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
12017
bda874f6
CB
120182020-02-11 Christian Biesinger <cbiesinger@google.com>
12019
12020 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
12021 registers.
12022
754e1564
CB
120232020-02-11 Christian Biesinger <cbiesinger@google.com>
12024
12025 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
12026
8ddd8e0e
SM
120272020-02-11 Simon Marchi <simon.marchi@efficios.com>
12028
12029 * configure: Re-generate.
12030
898e7f60
SM
120312020-02-11 Simon Marchi <simon.marchi@efficios.com>
12032
12033 * configure: Re-generate.
12034
58df732b
SM
120352020-02-11 Simon Marchi <simon.marchi@efficios.com>
12036
12037 * acinclude: Update warning.m4 path.
12038 * warning.m4: Move to gdbsupport.
12039
da5bd37e
TT
120402020-02-11 Tom Tromey <tromey@adacore.com>
12041
12042 * remote.c (remote_console_output): Update.
12043 * printcmd.c (printf_command): Update.
12044 * event-loop.c (gdb_wait_for_event): Update.
12045 * linux-nat.c (sigchld_handler): Update.
12046 * remote-sim.c (gdb_os_write_stdout): Update.
12047 (gdb_os_flush_stdout): Update.
12048 (gdb_os_flush_stderr): Update.
12049 (gdb_os_write_stderr): Update.
12050 * exceptions.c (print_exception): Update.
12051 * remote-fileio.c (remote_fileio_func_read): Update.
12052 (remote_fileio_func_write): Update.
12053 * tui/tui.c (tui_enable): Update.
12054 * tui/tui-interp.c (tui_interp::init): Update.
12055 * utils.c (init_page_info): Update.
12056 (putchar_unfiltered, fputc_unfiltered): Update.
12057 (gdb_flush): Update.
12058 (emit_style_escape): Update.
12059 (flush_wrap_buffer, fputs_maybe_filtered): Update.
12060 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
12061 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
12062 (stderr_file::write): Update.
12063 (stderr_file::puts): Update.
12064 * ui-file.h (ui_file_isatty, ui_file_write)
12065 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
12066 (ui_file_puts): Don't declare.
12067
85f0dd3c
TV
120682020-02-10 Tom de Vries <tdevries@suse.de>
12069
12070 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
12071 sentinel to char *.
12072
2e927613
TV
120732020-02-09 Tom de Vries <tdevries@suse.de>
12074
12075 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
12076 filename if it matches "<artificial>".
12077
6bafc845
HD
120782020-02-09 Hannes Domani <ssbssa@yahoo.de>
12079
12080 * windows-tdep.c (struct enum_value_name): New struct.
12081 (create_enum): New function.
12082 (windows_get_siginfo_type): Create and use enum types.
12083
7928d571
HD
120842020-02-09 Hannes Domani <ssbssa@yahoo.de>
12085
12086 * NEWS: Mention $_siginfo support for Windows.
12087 * windows-nat.c (handle_exception): Set siginfo_er.
12088 (windows_nat_target::mourn_inferior): Reset siginfo_er.
12089 (windows_xfer_siginfo): New function.
12090 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
12091 * windows-tdep.c (struct windows_gdbarch_data): New struct.
12092 (init_windows_gdbarch_data): New function.
12093 (get_windows_gdbarch_data): New function.
12094 (windows_get_siginfo_type): New function.
12095 (windows_init_abi): Register windows_get_siginfo_type.
12096 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
12097
6751ebae
TT
120982020-02-08 Tom Tromey <tom@tromey.com>
12099
12100 * dwarf2/read.c (class cutu_reader) <cutu_reader,
12101 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
12102 <keep>: Declare method.
12103 <m_keep>: Remove member.
12104 <~cutu_reader>: Remove.
12105 (cutu_reader::init_tu_and_read_dwo_dies): Update.
12106 (cutu_reader::cutu_reader): Update.
12107 (cutu_reader::keep): Rename from ~cutu_reader.
12108 (process_psymtab_comp_unit, build_type_psymtabs_1)
12109 (process_skeletonless_type_unit, load_partial_comp_unit)
12110 (load_full_comp_unit, dwarf2_read_addr_index)
12111 (read_signatured_type): Update.
12112
135f5437
TT
121132020-02-08 Tom Tromey <tom@tromey.com>
12114
12115 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
12116 "want_partial_unit" parameter.
12117 (process_psymtab_comp_unit): Change want_partial_unit to bool.
12118 Inline check for DW_TAG_partial_unit.
12119 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
12120
9f66ff1c
TT
121212020-02-08 Tom Tromey <tom@tromey.com>
12122
12123 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
12124 read.c.
12125 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
12126 read.c.
12127
c8a7a66f
TT
121282020-02-08 Tom Tromey <tom@tromey.com>
12129
12130 * dwarf2/read.c (read_address): Move to comp-unit.c.
12131 (dwarf2_rnglists_process, dwarf2_ranges_process)
12132 (read_attribute_value, dwarf_decode_lines_1)
12133 (var_decode_location, decode_locdesc): Update.
12134 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
12135 read.c. Remove "cu" parameter.
12136 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
12137 method.
12138
8266302d
TT
121392020-02-08 Tom Tromey <tom@tromey.com>
12140
12141 * dwarf2/read.c (read_attribute_value, read_indirect_string)
12142 (read_indirect_line_string): Update.
12143 * dwarf2/comp-unit.c (read_offset): Remove.
12144 (read_comp_unit_head): Update.
12145 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
12146 method.
12147 (read_offset): Don't declare.
12148
4057dfde
TT
121492020-02-08 Tom Tromey <tom@tromey.com>
12150
12151 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
12152 * dwarf2/read.c (struct comp_unit_head): Move to
12153 dwarf2/comp-unit.h.
12154 (enum class rcuh_kind): Move to comp-unit.h.
12155 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
12156 (read_comp_unit_head, error_check_comp_unit_head)
12157 (read_and_check_comp_unit_head): Move to comp-unit.c.
12158 (read_offset, dwarf_unit_type_name): Likewise.
12159 (create_debug_type_hash_table, read_cutu_die_from_dwo)
12160 (cutu_reader::cutu_reader, read_call_site_scope)
12161 (find_partial_die, follow_die_offset): Update.
12162 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
12163
24aa364d
TT
121642020-02-08 Tom Tromey <tom@tromey.com>
12165
12166 * dwarf2/read.c (read_offset_1): Move to leb.c.
12167 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
12168 (dwarf_decode_macro_bytes): Update.
12169 * dwarf2/leb.c (read_offset): Rename; move from read.c.
12170 * dwarf2/leb.h (read_offset): Declare.
12171
2c7d5afc
TT
121722020-02-08 Tom Tromey <tom@tromey.com>
12173
12174 * dwarf2/read.c (dwarf2_section_size): Remove.
12175 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
12176 Update.
12177 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
12178
4075cb26
TT
121792020-02-08 Tom Tromey <tom@tromey.com>
12180
12181 * dwarf2/read.c (read_initial_length): Move to leb.c.
12182 * dwarf2/leb.h (read_initial_length): Declare.
12183 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
12184 handle_nonstd parameter.
12185 * dwarf2/frame.c (read_initial_length): Remove.
12186 (decode_frame_entry_1): Update.
12187
09ba997f
TT
121882020-02-08 Tom Tromey <tom@tromey.com>
12189
12190 * dwarf2/loc.c (dwarf2_find_location_expression)
12191 (dwarf_evaluate_loc_desc::get_tls_address)
12192 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
12193 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
12194 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
12195 (dwarf2_compile_property_to_c)
12196 (dwarf2_loc_desc_get_symbol_read_needs)
12197 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
12198 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
12199 (loclist_describe_location, loclist_tracepoint_var_ref)
12200 (loclist_generate_c_location): Update.
12201 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
12202 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
12203 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
12204 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
12205 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
12206 (dwarf2_per_cu_data::addr_size)
12207 (dwarf2_per_cu_data::ref_addr_size)
12208 (dwarf2_per_cu_data::text_offset)
12209 (dwarf2_per_cu_data::addr_type): Now methods.
12210 (per_cu_header_read_in): Make per_cu "const".
12211 (dwarf2_version): Remove.
12212 (dwarf2_per_cu_data::int_type): Now a method.
12213 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
12214 (set_die_type, read_array_type, read_subrange_index_type)
12215 (read_tag_string_type, read_subrange_type): Update.
12216 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
12217 offset_size, ref_addr_size, text_offset, addr_type, version,
12218 objfile, int_type, addr_sized_int_type>: Declare methods.
12219
96c738c0
TT
122202020-02-08 Tom Tromey <tom@tromey.com>
12221
12222 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
12223 Move earlier.
12224
8fdd972c
TT
122252020-02-08 Tom Tromey <tom@tromey.com>
12226
12227 * dwarf2/read.h (dwarf_line_debug): Declare.
12228 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
12229 * dwarf2/read.c: Move line_header code to new files.
12230 (dwarf_line_debug): No longer static.
12231 * dwarf2/line-header.c: New file.
12232 * dwarf2/line-header.h: New file.
12233
03075812
TT
122342020-02-08 Tom Tromey <tom@tromey.com>
12235
12236 * dwarf2/read.c (struct line_header) <file_full_name,
12237 file_file_name>: Return unique_xmalloc_ptr.
12238 (line_header::file_file_name): Update.
12239 (line_header::file_full_name): Update.
12240 (dw2_get_file_names_reader): Update.
12241 (macro_start_file): Update.
12242
bb822404
TT
122432020-02-08 Tom Tromey <tom@tromey.com>
12244
12245 * dwarf2/read.c (struct line_header) <file_full_name,
12246 file_file_name>: Declare methods.
12247 (dw2_get_file_names_reader): Update.
12248 (file_file_name): Now a method.
12249 (file_full_name): Likewise.
12250 (macro_start_file): Update.
12251
009b64fc
TT
122522020-02-08 Tom Tromey <tom@tromey.com>
12253
12254 * dwarf2/read.c (dwarf_always_disassemble)
12255 (show_dwarf_always_disassemble): Move to loc.c.
12256 (_initialize_dwarf2_read): Move "always-disassemble" registration
12257 to loc.c.
12258 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
12259 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
12260 static.
12261 (show_dwarf_always_disassemble): Move from read.c.
12262 (_initialize_dwarf2loc): Move always-disassemble from read.c.
12263
5895093f
TT
122642020-02-08 Tom Tromey <tom@tromey.com>
12265
12266 * dwarf2/read.c (~dwarf2_per_objfile): Update.
12267 (create_quick_file_names_table): Return htab_up.
12268 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
12269 Update.
12270 * dwarf2/read.h (struct dwarf2_per_objfile)
12271 <quick_file_names_table>: Now htab_up.
12272
b3b32279
TT
122732020-02-08 Tom Tromey <tom@tromey.com>
12274
12275 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
12276
1d33d811
TT
122772020-02-08 Tom Tromey <tom@tromey.com>
12278
12279 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
12280 Rewrite.
12281 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
12282 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
12283 (abbrev_table::abbrev_table): No longer inline.
12284 (ABBREV_HASH_SIZE): Remove.
12285 (abbrev_table::m_abbrevs): Now an htab_up.
12286
86de1d91
TT
122872020-02-08 Tom Tromey <tom@tromey.com>
12288
12289 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
12290 (cutu_reader): Update.
12291 (build_type_psymtabs_1): Update.
12292 * dwarf2/abbrev.c (abbrev_table::read): Rename.
12293 (abbrev_table::alloc_abbrev): Update.
12294 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
12295 (abbrev_table::read): New static method, renamed from
12296 abbrev_table_read_table.
12297 (abbrev_table::alloc_abbrev)
12298 (abbrev_table::add_abbrev): Now private.
12299 (abbrev_table::abbrev_table): Now private.
12300 (abbrev_table::m_abbrev_obstack): Now private. Rename.
12301
0335378b
TT
123022020-02-08 Tom Tromey <tom@tromey.com>
12303
12304 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
12305 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
12306 htab_up.
12307
48b490f2
TT
123082020-02-08 Tom Tromey <tom@tromey.com>
12309
12310 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
12311 htab_up.
12312 (lookup_dwo_unit_in_dwp): Update.
12313 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
12314 on obstack.
12315
bc68fb19
TT
123162020-02-08 Tom Tromey <tom@tromey.com>
12317
12318 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
12319 obstack.
12320
d15acc42
TT
123212020-02-08 Tom Tromey <tom@tromey.com>
12322
12323 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
12324 line_header_hash.
12325 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
12326 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
12327 Change type to htab_up.
12328
eaa5fa8b
TT
123292020-02-08 Tom Tromey <tom@tromey.com>
12330
12331 * dwarf2/read.c (allocate_type_unit_groups_table): Return
12332 htab_up. Don't allocate on obstack.
12333 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
12334 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
12335 Change type to htab_up.
12336
b0b6a987
TT
123372020-02-08 Tom Tromey <tom@tromey.com>
12338
12339 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
12340 Change type to htab_up.
12341 * dwarf2/read.c (create_signatured_type_table_from_index)
12342 (create_signatured_type_table_from_debug_names)
12343 (create_all_type_units, add_type_unit)
12344 (lookup_dwo_signatured_type, lookup_signatured_type)
12345 (process_skeletonless_type_unit): Update.
12346 (create_debug_type_hash_table, create_debug_types_hash_table):
12347 Change type of types_htab.
12348 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
12349 htab_up. Don't allocate on obstack.
12350 (create_cus_hash_table): Change type of cus_htab parameter.
12351 (struct dwo_file) <cus, tus>: Now htab_up.
12352 (lookup_dwo_signatured_type, lookup_dwo_cutu)
12353 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
12354 (queue_and_load_all_dwo_tus): Update.
12355 * dwarf2/index-write.c (write_gdbindex): Update.
12356 (write_debug_names): Update.
12357
39856def
TT
123582020-02-08 Tom Tromey <tom@tromey.com>
12359
12360 * dwarf2/read.h (struct dwarf2_queue_item): Move from
12361 dwarf2/read.c. Remove "next" member. Add constructor ntad
12362 destructor.
12363 (struct dwarf2_per_objfile) <queue>: New member.
12364 * dwarf2/read.c (struct dwarf2_queue_item): Move to
12365 dwarf2/read.h.
12366 (dwarf2_queue, dwarf2_queue_tail): Remove.
12367 (class dwarf2_queue_guard): Add parameter to constructor. Use
12368 DISABLE_COPY_AND_ASSIGN.
12369 <m_per_objfile>: New member.
12370 <~dwarf2_queue_guard>: Rewrite.
12371 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
12372 Update.
12373 (~dwarf2_queue_item): New.
12374
3e225074
TT
123752020-02-08 Tom Tromey <tom@tromey.com>
12376
12377 * dwarf2/read.c (struct die_info) <has_children>: New member.
12378 (dw2_get_file_names_reader): Remove has_children.
12379 (dw2_get_file_names): Update.
12380 (read_cutu_die_from_dwo): Remove has_children.
12381 (cutu_reader::init_tu_and_read_dwo_dies)
12382 (cutu_reader::cutu_reader): Update.
12383 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
12384 Remove has_children.
12385 (build_type_psymtabs_1, process_skeletonless_type_unit)
12386 (load_partial_comp_unit, load_full_comp_unit): Update.
12387 (create_dwo_cu_reader): Remove has_children.
12388 (create_cus_hash_table, read_die_and_children): Update.
12389 (read_full_die_1,read_full_die): Remove has_children.
12390 (read_signatured_type): Update.
12391 (class cutu_reader) <has_children>: Remove.
12392
82ca8957
TT
123932020-02-08 Tom Tromey <tom@tromey.com>
12394
12395 * dwarf2/expr.c: Rename from dwarf2expr.c.
12396 * dwarf2/expr.h: Rename from dwarf2expr.h.
12397 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
12398 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
12399 * dwarf2/frame.c: Rename from dwarf2-frame.c.
12400 * dwarf2/frame.h: Rename from dwarf2-frame.h.
12401 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
12402 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
12403 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
12404 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
12405 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
12406 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
12407 * dwarf2/loc.c: Rename from dwarf2loc.c.
12408 * dwarf2/loc.h: Rename from dwarf2loc.h.
12409 * dwarf2/read.c: Rename from dwarf2read.c.
12410 * dwarf2/read.h: Rename from dwarf2read.h.
12411 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
12412 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
12413 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
12414 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
12415 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
12416 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
12417 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
12418 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
12419 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
12420 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
12421 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
12422 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
12423 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
12424 Update.
12425 * Makefile.in (COMMON_SFILES): Update.
12426 (HFILES_NO_SRCDIR): Update.
12427
9e35d499
TT
124282020-02-08 Tom Tromey <tom@tromey.com>
12429
12430 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
12431 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
12432
1eba2311
TT
124332020-02-08 Tom Tromey <tom@tromey.com>
12434
12435 * dwarf2read.h (struct die_info): Don't declare.
12436
e41c2da2
TT
124372020-02-08 Tom Tromey <tom@tromey.com>
12438
12439 * dwarf2read.h (die_info_ptr): Remove typedef.
12440
4fc6c0d5
TT
124412020-02-08 Tom Tromey <tom@tromey.com>
12442
12443 * dwarf2read.c (read_call_site_scope)
12444 (handle_data_member_location, dwarf2_add_member_fn)
12445 (mark_common_block_symbol_computed, read_common_block)
12446 (attr_to_dynamic_prop, partial_die_info::read)
12447 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
12448 (dwarf2_symbol_mark_computed, set_die_type): Update.
12449 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
12450 method.
12451 (attr_form_is_block): Don't declare.
12452 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
12453
cd6c91b4
TT
124542020-02-08 Tom Tromey <tom@tromey.com>
12455
12456 * dwarf2read.c (dwarf2_find_base_address, )
12457 (read_call_site_scope, rust_containing_type)
12458 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
12459 (handle_data_member_location, dwarf2_add_member_fn)
12460 (get_alignment, read_structure_type, process_structure_scope)
12461 (mark_common_block_symbol_computed, read_common_block)
12462 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
12463 (partial_die_info::read, read_attribute_value, new_symbol)
12464 (lookup_die_type, dwarf2_get_ref_die_offset)
12465 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
12466 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
12467 (dwarf2_symbol_mark_computed): Update.
12468 * dwarf2/attribute.h (struct attribute) <value_as_address,
12469 form_is_section_offset, form_is_constant, form_is_ref>: Declare
12470 methods.
12471 (value_as_address, attr_form_is_section_offset)
12472 (attr_form_is_constant, attr_form_is_ref): Don't declare.
12473 * dwarf2/attribute.c (attribute::value_as_address)
12474 (attribute::form_is_section_offset, attribute::form_is_constant)
12475 (attribute::form_is_ref): Now methods.
12476
162dce55
TT
124772020-02-08 Tom Tromey <tom@tromey.com>
12478
12479 * dwarf2read.c (struct attribute, DW_STRING)
12480 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
12481 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
12482 (attr_form_is_block, attr_form_is_section_offset)
12483 (attr_form_is_constant, attr_form_is_ref): Move.
12484 * dwarf2/attribute.h: New file.
12485 * dwarf2/attribute.c: New file, from dwarf2read.c.
12486 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
12487
3054dd54
TT
124882020-02-08 Tom Tromey <tom@tromey.com>
12489
12490 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
12491 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
12492 Move.
12493 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
12494 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
12495 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
12496 abbrev.c.
12497 * dwarf2/abbrev.h: New file.
12498 * dwarf2/abbrev.c: New file, from dwarf2read.c.
12499 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
12500
96b79293
TT
125012020-02-08 Tom Tromey <tom@tromey.com>
12502
12503 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
12504 (dwarf2_section_size, dwarf2_get_section_info)
12505 (create_signatured_type_table_from_debug_names)
12506 (create_addrmap_from_aranges, read_debug_names_from_section)
12507 (get_gdb_index_contents_from_section, read_comp_unit_head)
12508 (error_check_comp_unit_head, read_abbrev_offset)
12509 (create_debug_type_hash_table, init_cu_die_reader)
12510 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
12511 (read_comp_units_from_section, create_cus_hash_table)
12512 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
12513 (create_dwp_v2_section, dwarf2_rnglists_process)
12514 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
12515 (abbrev_table_read_table, read_indirect_string_at_offset_from)
12516 (read_indirect_string_from_dwz, read_addr_index_1)
12517 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
12518 (dwarf_decode_macro_bytes, dwarf_decode_macros)
12519 (fill_in_loclist_baton): Update.
12520 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
12521 get_containing_section, get_bfd_owner, get_bfd_section,
12522 get_file_name, get_id, get_flags, empty, read>: Declare methods.
12523 (dwarf2_read_section, get_section_name, get_section_file_name)
12524 (get_containing_section, get_section_bfd_owner)
12525 (get_section_bfd_section, get_section_name, get_section_file_name)
12526 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
12527 declare.
12528 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
12529 (dwarf2_section_info::get_bfd_owner)
12530 (dwarf2_section_info::get_bfd_section)
12531 (dwarf2_section_info::get_name)
12532 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
12533 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
12534 (dwarf2_section_info::read): Now methods.
12535 * dwarf-index-write.c (class debug_names): Update.
12536
2c86cff9
TT
125372020-02-08 Tom Tromey <tom@tromey.com>
12538
12539 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
12540 Move to dwarf2/section.h.
12541 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
12542 (get_section_bfd_section, get_section_name)
12543 (get_section_file_name, get_section_id, get_section_flags)
12544 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
12545 dwarf2/section.c.
12546 * dwarf2/section.h: New file.
12547 * dwarf2/section.c: New file, from dwarf2read.c.
12548 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
12549
f4382c45
TT
125502020-02-08 Tom Tromey <tom@tromey.com>
12551
12552 * dwarf2read.h (read_unsigned_leb128): Don't declare.
12553 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
12554 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
12555 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
12556 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
12557 * dwarf2/leb.h: New file, from dwarf2read.c.
12558 * dwarf2/leb.c: New file, from dwarf2read.c.
12559 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
12560 Remove.
12561 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
12562 (COMMON_SFILES): Add dwarf2/leb.c.
12563
01840b7a
JB
125642020-02-08 Joel Brobecker <brobecker@adacore.com>
12565
12566 GDB 9.1 released.
12567
dfcb27e4
IB
125682020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
12569
12570 PR gdb/25190:
aac66a4c
SM
12571 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
12572 * gdb/remote.c (remote_console_output): Update.
12573 * gdb/ui-file.c (fputs_unfiltered): Rename to...
12574 (ui_file_puts): ...this.
12575 * gdb/ui-file.h (ui_file_puts): Add declaration.
12576 * gdb/utils.c (emit_style_escape): Update.
12577 (flush_wrap_buffer): Update.
12578 (fputs_maybe_filtered): Update.
12579 (fputs_unfiltered): Add function.
dfcb27e4 12580
faa17681
IB
125812020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
12582
aac66a4c
SM
12583 * gdb/event-loop.c (gdb_wait_for_event): Update.
12584 * gdb/printcmd.c (printf_command): Update.
12585 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
12586 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
12587 (gdb_os_flush_stderr): Update.
12588 * gdb/remote.c (remote_console_output): Update.
12589 * gdb/ui-file.c (gdb_flush): Rename to...
12590 (ui_file_flush): ...this.
12591 (stderr_file::write): Update.
12592 (stderr_file::puts): Update.
12593 * gdb/ui-file.h (gdb_flush): Rename to...
12594 (ui_file_flush): ...this.
12595 * gdb/utils.c (gdb_flush): Add function.
12596 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 12597
5abbbe1d
TT
125982020-02-07 Tom Tromey <tromey@adacore.com>
12599
12600 PR breakpoints/24915:
12601 * source.c (find_and_open_source): Do not check basenames_may_differ.
12602
919adfe8
TT
126032020-02-07 Tom Tromey <tom@tromey.com>
12604
12605 * README: Update gdbserver documentation.
12606 * gdbserver: Move to top level.
12607 * configure.tgt (build_gdbserver): Remove.
12608 * configure.ac: Remove --enable-gdbserver.
12609 * configure: Rebuild.
12610 * Makefile.in (distclean): Don't mention gdbserver.
12611
1d5d29e7
SV
126122020-02-06 Shahab Vahedi <shahab@synopsys.com>
12613
12614 * source-cache.c (source_cache::ensure): Surround
12615 get_plain_source_lines with a try/catch.
12616 (source_cache::get_line_charpos): Get rid of try/catch
12617 and only check for the return value of "ensure".
12618 * tui/tui-source.c (tui_source_window::set_contents):
12619 Simplify "nlines" calculation.
12620
6eb1129c
SV
126212020-02-06 Shahab Vahedi <shahab@synopsys.com>
12622
12623 * MAINTAINERS (Write After Approval): Add myself.
12624
c6a42d11
CB
126252020-02-05 Christian Biesinger <cbiesinger@google.com>
12626
12627 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
12628 function call.
12629
c8ecdda6
CB
126302020-02-05 Christian Biesinger <cbiesinger@google.com>
12631
12632 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
12633
f6480e70
MR
126342020-02-05 Maciej W. Rozycki <macro@wdc.com>
12635
12636 * nat/riscv-linux-tdesc.h: New file.
12637 * nat/riscv-linux-tdesc.c: New file, taking code from...
12638 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
12639 ... here.
12640 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
12641 NATDEPFILES.
12642
dcc9fbc6
AB
126432020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
12644
12645 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
12646 we don't set the fake simulator ptid to the null_ptid.
12647
719546c4
SM
126482020-02-03 Simon Marchi <simon.marchi@efficios.com>
12649
12650 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
12651 * gdbthread.h (class thread_info) <resumed>: Likewise.
12652 * infrun.c (resume_1): Likewise.
12653 (proceed): Likewise.
12654 (infrun_thread_stop_requested): Likewise.
12655 (stop_all_threads): Likewise.
12656 (handle_inferior_event): Likewise.
12657 (restart_threads): Likewise.
12658 (finish_step_over): Likewise.
12659 (keep_going_stepped_thread): Likewise.
12660 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
12661 (linux_handle_extended_wait): Likewise.
12662 * record-btrace.c (get_thread_current_frame_id): Likewise.
12663 * record-full.c (record_full_wait_1): Likewise.
12664 * remote.c (remote_target::process_initial_stop_replies): Likewise.
12665 * target.c (target_resume): Likewise.
12666 * thread.c (set_running_thread): Likewise.
12667
e409c542
AKS
126682020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
12669
12670 * f-valprint.c (f77_print_array_1): Changed datatype of index
12671 variable to LONGEST from int to enable it to contain bound
12672 values correctly.
12673
ee98c0da
MR
126742020-02-03 Maciej W. Rozycki <macro@wdc.com>
12675
12676 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
12677 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
12678 offsets according to FLEN determined.
12679 (riscv_linux_nat_target::read_description): Determine FLEN
12680 dynamically.
12681 (riscv_linux_nat_target::fetch_registers): Size regset buffer
12682 according to FLEN determined.
12683 (riscv_linux_nat_target::store_registers): Likewise.
12684
aa66aac4
SV
126852020-02-01 Shahab Vahedi <shahab@synopsys.com>
12686
12687 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
12688 when reg->group is empty and reggroup is not.
12689
fd9faca8
TT
126902020-01-31 Tom Tromey <tromey@adacore.com>
12691
12692 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
12693 Call beneath target's mourn_inferior after unpushing.
12694
42330a68
AB
126952020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
12696
12697 PR tui/9765
12698 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
12699 have enough lines to fill the screen, still return the lowest
12700 address we found.
12701
7a27a45b
AB
127022020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
12703
12704 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
12705 '-', '<', and '>' commands.
12706
c47f70e2
PA
127072020-01-29 Pedro Alves <palves@redhat.com>
12708 Sergio Durigan Junior <sergiodj@redhat.com>
12709
12710 * infcmd.c (construct_inferior_arguments): Assert that
12711 'argc' is greater than 0.
12712
5133a315
LM
127132020-01-29 Luis Machado <luis.machado@linaro.org>
12714
12715 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
12716 (BRK_INSN_MASK): Define to 0xd4200000.
12717 (aarch64_program_breakpoint_here_p): New function.
12718 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
12719 * arch-utils.c (default_program_breakpoint_here_p): Moved from
12720 breakpoint.c.
12721 * arch-utils.h (default_program_breakpoint_here_p): Moved from
12722 breakpoint.h
12723 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
12724 call gdbarch_program_breakpoint_here_p.
12725 (program_breakpoint_here): Moved to arch-utils.c, renamed to
12726 default_program_breakpoint_here_p, changed return type to bool and
12727 simplified.
12728 * breakpoint.h (program_breakpoint_here): Moved prototype to
12729 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
12730 return type to bool.
12731 * gdbarch.c: Regenerate.
12732 * gdbarch.h: Regenerate.
12733 * gdbarch.sh (program_breakpoint_here_p): New method.
12734 * infrun.c (handle_signal_stop): Call
12735 gdbarch_program_breakpoint_here_p.
12736
168f8c6b
TT
127372020-01-26 Tom Tromey <tom@tromey.com>
12738
12739 * ctfread.c (struct ctf_fp_info): Reindent.
12740 (_initialize_ctfread): Remove.
12741
128a391f
TT
127422020-01-26 Tom Tromey <tom@tromey.com>
12743
12744 * psymtab.c (partial_map_expand_apply)
12745 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
12746 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
12747 (psym_print_stats, psym_expand_symtabs_for_function)
12748 (psym_map_symbol_filenames, psym_map_matching_symbols)
12749 (psym_expand_symtabs_matching)
12750 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
12751 (maintenance_check_psymtabs): Use new methods.
12752 * psympriv.h (struct partial_symtab) <readin_p,
12753 get_compunit_symtab>: New methods.
12754 <readin, compunit_symtab>: Remove members.
12755 (struct standard_psymtab): New.
12756 (struct legacy_psymtab): Derive from standard_psymtab.
12757 * dwarf2read.h (struct dwarf2_psymtab): Derive from
12758 standard_psymtab.
12759 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
12760
0494dbec
TT
127612020-01-26 Tom Tromey <tom@tromey.com>
12762
12763 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
12764 read_dependencies. Add assert.
12765 * psymtab.c (partial_symtab::read_dependencies): New method.
12766 * psympriv.h (struct partial_symtab) <read_dependencies>: New
12767 method.
12768 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
12769 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
12770 read_dependencies.
12771 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
12772 Add assert.
12773
8566b89b
TT
127742020-01-26 Tom Tromey <tom@tromey.com>
12775
12776 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
12777 Call expand_psymtab.
12778 (xcoff_read_symtab): Call expand_psymtab.
12779 (xcoff_start_psymtab, xcoff_end_psymtab): Set
12780 legacy_expand_psymtab.
12781 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
12782 method.
12783 (struct legacy_psymtab) <expand_psymtab>: Implement.
12784 <legacy_expand_psymtab>: New member.
12785 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
12786 (parse_partial_symbols): Set legacy_expand_psymtab.
12787 (psymtab_to_symtab_1): Change argument order. Call
12788 expand_psymtab.
12789 (new_psymtab): Set legacy_expand_psymtab.
12790 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
12791 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
12792 expand_psymtab.
12793 (dwarf2_psymtab::expand_psymtab): Rename from
12794 psymtab_to_symtab_1. Call expand_psymtab.
12795 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
12796 (dbx_end_psymtab): Likewise.
12797 (dbx_psymtab_to_symtab_1): Change argument order. Call
12798 expand_psymtab.
12799 (dbx_read_symtab): Call expand_psymtab.
12800 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
12801 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
12802 (ctf_psymtab::read_symtab): Call expand_psymtab.
12803
077cbab2
TT
128042020-01-26 Tom Tromey <tom@tromey.com>
12805
12806 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
12807 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
12808 messages.
12809 * mdebugread.c (mdebug_read_symtab): Remove prints.
12810 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
12811 assert.
12812 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
12813
891813be
TT
128142020-01-26 Tom Tromey <tom@tromey.com>
12815
12816 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
12817 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
12818 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
12819 legacy_symtab.
12820 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
12821 * psymtab.c (psymtab_to_symtab): Call method.
12822 (dump_psymtab): Update.
12823 * psympriv.h (struct partial_symtab): Add virtual destructor.
12824 <read_symtab>: New method.
12825 (struct legacy_symtab): New.
12826 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
12827 (struct pst_map) <pst>: Now a legacy_psymtab.
12828 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
12829 (new_psymtab): Use legacy_psymtab.
12830 * dwarf2read.h (struct dwarf2_psymtab): New.
12831 (struct dwarf2_per_cu_data) <psymtab>: Use it.
12832 * dwarf2read.c (dwarf2_create_include_psymtab)
12833 (dwarf2_build_include_psymtabs, create_type_unit_group)
12834 (create_partial_symtab, process_psymtab_comp_unit_reader)
12835 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
12836 (set_partial_user): Use dwarf2_psymtab.
12837 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
12838 (psymtab_to_symtab_1, process_full_comp_unit)
12839 (process_full_type_unit, dwarf2_ranges_read)
12840 (dwarf2_get_pc_bounds, psymtab_include_file_name)
12841 (dwarf_decode_lines): Use dwarf2_psymtab.
12842 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
12843 (add_address_entry_worker, write_one_signatured_type)
12844 (recursively_count_psymbols, recursively_write_psymbols)
12845 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
12846 (write_debug_names): Likewise.
12847 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
12848 <pst>: Now a legacy_psymtab.
12849 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
12850 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
12851 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
12852 * ctfread.c (struct ctf_psymtab): New.
12853 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
12854 ctf_psymtab.
12855 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
12856 (create_partial_symtab): Return a ctf_psymtab.
12857 (scan_partial_symbols): Update.
12858
c3693a1d
TT
128592020-01-26 Tom Tromey <tom@tromey.com>
12860
12861 * xcoffread.c (xcoff_start_psymtab): Use new.
12862 * psymtab.c (partial_symtab::partial_symtab): New constructor,
12863 renamed from start_psymtab_common.
12864 * psympriv.h (struct partial_symtab): Add new constructor.
12865 (start_psymtab_common): Don't declare.
12866 * mdebugread.c (parse_partial_symbols): Use new.
12867 * dwarf2read.c (create_partial_symtab): Use new.
12868 * dbxread.c (start_psymtab): Use new.
12869 * ctfread.c (create_partial_symtab): Use new.
12870
32caafd0
TT
128712020-01-26 Tom Tromey <tom@tromey.com>
12872
12873 * xcoffread.c (xcoff_end_psymtab): Use new.
12874 * psymtab.c (start_psymtab_common): Use new.
12875 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
12876 Update.
12877 * psympriv.h (struct partial_symtab): Add parameters to
12878 constructor. Don't inline.
12879 (allocate_psymtab): Don't declare.
12880 * mdebugread.c (new_psymtab): Use new.
12881 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
12882 * dbxread.c (dbx_end_psymtab): Use new.
12883
abaa2f23
TT
128842020-01-26 Tom Tromey <tom@tromey.com>
12885
12886 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
12887 allocate_psymtab. Update documentation.
12888 * psymtab.c (psymtab_storage::install_psymtab): Rename from
12889 allocate_psymtab. Do not use new.
12890 (allocate_psymtab): Use new. Update.
12891
6d94535f
TT
128922020-01-26 Tom Tromey <tom@tromey.com>
12893
12894 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
12895 * psymtab.c (psym_print_stats): Update.
12896 * psympriv.h (struct partial_symtab) <readin,
12897 psymtabs_addrmap_supported, anonymous>: Now bool.
12898 * mdebugread.c (psymtab_to_symtab_1): Update.
12899 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
12900 (build_type_psymtabs_reader, psymtab_to_symtab_1)
12901 (process_full_comp_unit, process_full_type_unit): Update.
12902 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
12903 * ctfread.c (psymtab_to_symtab): Update.
12904
6f17252b
TT
129052020-01-26 Tom Tromey <tom@tromey.com>
12906
12907 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
12908 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
12909 * psymtab.c (psymtab_storage): Delete psymtabs.
12910 (psymtab_storage::allocate_psymtab): Use new.
12911 (psymtab_storage::discard_psymtab): Use delete.
12912 * psympriv.h (struct partial_symtab): Add constructor and
12913 initializers.
12914
f6f1cebc
TT
129152020-01-26 Tom Tromey <tom@tromey.com>
12916
12917 * machoread.c: Do not include psympriv.h.
12918
e47e48f6
PW
129192020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12920
12921 * NEWS: Mention the new option and the set/show commands.
12922
a2fedca9
PW
129232020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12924
12925 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
12926 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
12927 (validate_exec_file): New variables, enums, functions.
12928 (exec_file_locate_attach, print_section_info): Style the filenames.
12929 (_initialize_exec): Install show_exec_file_mismatch_command and
12930 set_exec_file_mismatch_command.
12931 * gdbcore.h (validate_exec_file): Declare.
12932 * infcmd.c (attach_command): Call validate_exec_file.
12933 * remote.c ( remote_target::remote_add_inferior): Likewise.
12934
7ffa82e1
AB
129352020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12936
12937 * frame.c (find_frame_sal): Move call to get_next_frame into more
12938 inner scope.
12939 * inline-frame.c (inilne_state) <inline_state>: Update argument
12940 types.
12941 (inilne_state) <skipped_symbol>: Rename to...
12942 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
12943 (skip_inline_frames): Build vector of skipped symbols and use this
12944 to reate the inline_state.
12945 (inline_skipped_symbol): Add a comment and some assertions, fetch
12946 skipped symbol from the list.
12947
3d92a3e3
AB
129482020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12949
12950 * buildsym.c (lte_is_less_than): Delete.
12951 (buildsym_compunit::end_symtab_with_blockvector): Create local
12952 lambda function to sort line table entries, and use
12953 std::stable_sort instead of std::sort.
12954 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
12955 markers when looking for a previous line.
12956
94a72be7
AB
129572020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12958
12959 * dwarf2read.c (lnp_state_machine::record_line): Include
12960 end_sequence parameter in debug print out. Record the line if we
12961 are at an end_sequence marker even if it's not the start of a
12962 statement.
12963 * symmisc.c (maintenance_print_one_line_table): Print end of
12964 sequence markers with 'END' not '0'.
12965
53af73bf
PA
129662020-01-24 Pedro Alves <palves@redhat.com>
12967
12968 PR gdb/25410
12969 * thread.c (scoped_restore_current_thread::restore): Use
12970 switch_to_inferior_no_thread.
12971 * exec.c: Include "progspace-and-thread.h".
12972 (add_target_sections, remove_target_sections):
12973 scoped_restore_current_pspace_and_thread instead of
12974 scoped_restore_current_thread.
12975 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
12976 and aspace to the inferior before calling clone_program_space.
12977 Remove stale comment.
12978
3050c6f4
CB
129792020-01-24 Christian Biesinger <cbiesinger@google.com>
12980
12981 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
12982 (arm_netbsd_nat_target::fetch_registers): ...this.
12983 (arm_nbsd_nat_target::store_registers): Rename to...
12984 (arm_netbsd_nat_target::store_registers): ...this.
12985
73685c7e
CB
129862020-01-24 Christian Biesinger <cbiesinger@google.com>
12987
12988 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12989 register_t.
12990
89203d40
CB
129912020-01-24 Christian Biesinger <cbiesinger@google.com>
12992
12993 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
12994 Update comment.
12995 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
12996 Likewise.
12997 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
12998 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
12999 the correct replacement (iterate_over_regset_sections).
13000 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
13001 Update comment.
13002
1ba1ac88
AB
130032020-01-24 Graham Markall <graham.markall@embecosm.com>
13004
13005 PR gdb/23718
13006 * gdb/python/python.c (execute_gdb_command): Call
13007 async_enable_stdin in catch block.
13008
f3364a6d
AB
130092020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13010
13011 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
13012 SWITCH_THRU_ALL_UIS.
13013
733d0a67
AB
130142020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13015
13016 PR tui/9765
13017 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
13018 comment, add extra parameter, and update to store previous symbol
13019 when appropriate.
13020 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
13021 add extra parameter.
13022 * tui/tui-disasm.c (tui_disassemble): Update header comment,
13023 remove unneeded parameter, add try/catch around gdb_print_insn,
13024 rewrite to add items to asm_lines vector.
13025 (tui_find_backward_disassembly_start_address): New function.
13026 (tui_find_disassembly_address): Updated throughout.
13027 (tui_disasm_window::set_contents): Update for changes to
13028 tui_disassemble.
13029 (tui_disasm_window::do_scroll_vertical): No need to adjust the
13030 number of lines to scroll.
13031
b3b3bada
SM
130322020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
13033
13034 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
13035 (SECT_OFF_DATA): Likewise.
13036 (SECT_OFF_RODATA): Likewise.
13037 (SECT_OFF_TEXT): Likewise.
13038 (SECT_OFF_BSS): Likewise.
13039 (struct objfile) <text_section_offset, data_section_offset>: New
13040 methods.
13041 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
13042 objfile::text_section_offset.
13043 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
13044 * coffread.c (coff_symtab_read): Likewise.
13045 (enter_linenos): Likewise.
13046 (process_coff_symbol): Likewise.
13047 * ctfread.c (get_objfile_text_range): Likewise.
13048 * dtrace-probe.c (dtrace_probe::get_relocated_address):
13049 Use objfile::data_section_offset.
13050 * dwarf2-frame.c (execute_cfa_program): Use
13051 objfile::text_section_offset.
13052 (dwarf2_frame_find_fde): Likewise.
13053 * dwarf2read.c (create_addrmap_from_index): Likewise.
13054 (create_addrmap_from_aranges): Likewise.
13055 (dw2_find_pc_sect_compunit_symtab): Likewise.
13056 (process_psymtab_comp_unit_reader): Likewise.
13057 (add_partial_symbol): Likewise.
13058 (add_partial_subprogram): Likewise.
13059 (process_full_comp_unit): Likewise.
13060 (read_file_scope): Likewise.
13061 (read_func_scope): Likewise.
13062 (read_lexical_block_scope): Likewise.
13063 (read_call_site_scope): Likewise.
13064 (dwarf2_rnglists_process): Likewise.
13065 (dwarf2_ranges_process): Likewise.
13066 (dwarf2_ranges_read): Likewise.
13067 (dwarf_decode_lines_1): Likewise.
13068 (new_symbol): Likewise.
13069 (dwarf2_fetch_die_loc_sect_off): Likewise.
13070 (dwarf2_per_cu_text_offset): Likewise.
13071 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
13072 * hppa-tdep.c (read_unwind_info): Likewise.
13073 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
13074 * psympriv.h (struct partial_symtab): Likewise.
13075 * psymtab.c (find_pc_sect_psymtab): Likewise.
13076 * solib-svr4.c (enable_break): Likewise.
13077 * stap-probe.c (relocate_address): Use
13078 objfile::data_section_offset.
13079 * xcoffread.c (enter_line_range): Use
13080 objfile::text_section_offset.
13081 (read_xcoff_symtab): Likewise.
13082
ab53f382
SM
130832020-01-23 Simon Marchi <simon.marchi@efficios.com>
13084
13085 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
13086 declaration to narrower scopes.
13087
e7eee665
SM
130882020-01-23 Simon Marchi <simon.marchi@efficios.com>
13089
13090 * darwin-nat.h (struct darwin_exception_msg, enum
13091 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
13092 Move up.
13093 (class darwin_nat_target) <wait_1, check_new_threads,
13094 decode_exception_message, decode_message, stop_inferior,
13095 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
13096 * darwin-nat.c (darwin_check_new_threads): Rename to...
13097 (darwin_nat_target::check_new_threads): ... this.
13098 (darwin_suspend_inferior_it): Remove.
13099 (darwin_decode_exception_message): Rename to...
13100 (darwin_nat_target::decode_exception_message): ... this.
13101 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
13102 (darwin_decode_message): Rename to...
13103 (darwin_nat_target::decode_message): ... this.
13104 (cancel_breakpoint): Rename to...
13105 (darwin_nat_target::cancel_breakpoint): ... this.
13106 (darwin_wait): Rename to...
13107 (darwin_nat_target::wait_1): ... this. Use range-based for loop
13108 instead of iterate_over_inferiors.
13109 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
13110 (darwin_stop_inferior): Rename to...
13111 (darwin_nat_target::stop_inferior): ... this.
13112 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
13113 (darwin_init_thread_list): Rename to...
13114 (darwin_nat_target::init_thread_list): ... this.
13115 (darwin_ptrace_him): Rename to...
13116 (darwin_nat_target::ptrace_him): ... this.
13117 (darwin_nat_target::create_inferior): Pass lambda function to
13118 fork_inferior.
13119 (darwin_nat_target::detach): Call stop_inferior instead of
13120 darwin_stop_inferior.
13121 * fork-inferior.h (fork_inferior): Change init_trace_fun
13122 parameter to gdb::function_view.
13123 * fork-inferior.c (fork_inferior): Likewise.
13124
c162ed3e
HD
131252020-01-23 Hannes Domani <ssbssa@yahoo.de>
13126
13127 * i386-cygwin-tdep.c (core_process_module_section): Update.
13128 * windows-nat.c (struct lm_info_windows): Add text_offset.
13129 (windows_xfer_shared_libraries): Update.
13130 * windows-tdep.c (windows_xfer_shared_library):
13131 Add text_offset_cached argument.
13132 * windows-tdep.h (windows_xfer_shared_library): Update.
13133
a1237872
SM
131342020-01-21 Simon Marchi <simon.marchi@efficios.com>
13135
13136 * gdbarch.sh: Add declaration for _initialize_gdbarch.
13137
b3ee6dd9
SM
131382020-01-21 Simon Marchi <simon.marchi@efficios.com>
13139
13140 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
13141 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
13142 replace with range-based for.
13143 (gdbsim_interrupt_inferior): Remove.
13144 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
13145 with a range-based for. Inline code from
13146 gdbsim_interrupt_inferior.
13147
f9fac3c8
SM
131482020-01-21 Simon Marchi <simon.marchi@efficios.com>
13149
13150 * infrun.c (proceed): Fix indentation.
13151
f6474de9
TT
131522020-01-21 Tom Tromey <tromey@adacore.com>
13153
13154 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
13155 * python/python.c (python_extension_ops): Update.
13156 (gdbpy_colorize): New function.
13157 * python/lib/gdb/__init__.py (colorize): New function.
13158 * extension.h (ext_lang_colorize): Declare.
13159 * extension.c (ext_lang_colorize): New function.
13160 * extension-priv.h (struct extension_language_ops) <colorize>: New
13161 member.
13162 * cli/cli-style.c (_initialize_cli_style): Update help text.
13163
f0c702d4
LM
131642020-01-21 Luis Machado <luis.machado@linaro.org>
13165
13166 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
13167 <cond>: Change type to bool.
13168 (aarch64_displaced_step_b_cond): Update cond to use bool type.
13169 (aarch64_displaced_step_cb): Likewise.
13170 (aarch64_displaced_step_tb): Likewise.
13171
1ab139e5
LM
131722020-01-21 Luis Machado <luis.machado@linaro.org>
13173
13174 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
13175 output.
13176
0c271889
LM
131772020-01-21 Luis Machado <luis.machado@linaro.org>
13178
13179 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
13180 <pc_adjust>: Adjust the documentation.
13181 (aarch64_displaced_step_fixup): Check if PC really moved before
13182 adjusting it.
13183
4d89c1c7
TT
131842020-01-19 Tom Tromey <tom@tromey.com>
13185
13186 * disasm.c (~gdb_disassembler): New destructor.
13187 (gdb_buffered_insn_length): Call disassemble_free_target.
13188 * disasm.h (class gdb_disassembler): Declare destructor. Use
13189 DISABLE_COPY_AND_ASSIGN.
13190
c0ab21c2
TT
131912020-01-19 Tom Tromey <tom@tromey.com>
13192
13193 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
13194 (die_reader_func_ftype): Remove.
13195 (cutu_reader): New class.
13196 (dw2_get_file_names_reader): Remove "data" parameter.
13197 (dw2_get_file_names): Use cutu_reader.
13198 (create_debug_type_hash_table): Update.
13199 (read_cutu_die_from_dwo): Update comment.
13200 (lookup_dwo_unit): Add dwo_name parameter.
13201 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
13202 die_reader_func_ftype and data parameters.
13203 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
13204 Remove die_reader_func_ftype and data parameters.
13205 (~cutu_reader): New; from init_cutu_and_read_dies.
13206 (cutu_reader::cutu_reader): Rename from
13207 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
13208 and data parameters.
13209 (init_cutu_and_read_dies_simple): Remove.
13210 (struct process_psymtab_comp_unit_data): Remove.
13211 (process_psymtab_comp_unit_reader): Remove data parameter; add
13212 want_partial_unit and pretend_language parameters.
13213 (process_psymtab_comp_unit): Use cutu_reader.
13214 (build_type_psymtabs_reader): Remove data parameter.
13215 (build_type_psymtabs_1): Use cutu_reader.
13216 (process_skeletonless_type_unit): Likewise.
13217 (load_partial_comp_unit_reader): Remove.
13218 (load_partial_comp_unit): Use cutu_reader.
13219 (load_full_comp_unit_reader): Remove.
13220 (load_full_comp_unit): Use cutu_reader.
13221 (struct create_dwo_cu_data): Remove.
13222 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
13223 dwo_unit parameters.
13224 (create_cus_hash_table): Use cutu_reader.
13225 (struct dwarf2_read_addr_index_data): Remove.
13226 (dwarf2_read_addr_index_reader): Remove.
13227 (dwarf2_read_addr_index): Use cutu_reader.
13228 (read_signatured_type_reader): Remove.
13229 (read_signatured_type): Use cutu_reader.
13230
45bbae5c
TT
132312020-01-19 Tom Tromey <tom@tromey.com>
13232
13233 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
13234 * tui/tui-wingeneral.h (class tui_suppress_output): New.
13235 (tui_wrefresh): Declare.
13236 * tui/tui-wingeneral.c (suppress_output): New global.
13237 (tui_suppress_output, ~tui_suppress_output): New constructor and
13238 destructor.
13239 (tui_wrefresh): New function.
13240 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
13241 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
13242 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
13243 method.
13244 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
13245 tui_wrefresh.
13246 (tui_data_window::no_refresh): New method.
13247 (tui_data_item_window::refresh_window): Call tui_wrefresh.
13248 (tui_reg_command): Use tui_suppress_output
13249 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
13250 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
13251 method.
13252 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
13253
4f13c1c0
TT
132542020-01-19 Tom Tromey <tom@tromey.com>
13255
13256 * tui/tui-winsource.c (tui_update_source_windows_with_line):
13257 Handle case where symtab is null.
13258
fa47e446
SM
132592020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
13260
13261 * linux-fork.c (one_fork_p): Simplify.
13262
26f42329
SM
132632020-01-17 Simon Marchi <simon.marchi@efficios.com>
13264
13265 * top.c (struct qt_args): Remove.
13266 (kill_or_detach): Change return type to void, replace `void *`
13267 parameter with a proper one.
13268 (print_inferior_quit_action): Likewise.
13269 (quit_confirm): Use range-based for loop to iterate over inferiors.
13270 (quit_force): Likewise.
13271
a9ac81b1
SM
132722020-01-17 Simon Marchi <simon.marchi@efficios.com>
13273
13274 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
13275 `void *` parameter with proper parameters.
13276 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
13277 (print_one_inferior): Change return type to void, replace `void *`
13278 parameter with proper parameters.
13279 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
13280 inferiors.
13281 (get_other_inferior): Remove.
13282 (mi_cmd_remove_inferior): Use range-based loop to iterate over
13283 inferiors.
13284
788eca49
SM
132852020-01-17 Simon Marchi <simon.marchi@efficios.com>
13286
13287 * mi/mi-interp.c (report_initial_inferior): Remove.
13288 (mi_interp::init): Use range-based for to iterate over inferiors.
13289
d9bc85b6
SM
132902020-01-17 Simon Marchi <simon.marchi@efficios.com>
13291
13292 * python/py-inferior.c (build_inferior_list): Remove.
13293 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
13294
40c94099
CB
132952020-01-16 Christian Biesinger <cbiesinger@google.com>
13296
13297 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
13298 (btrace_stitch_trace): Likewise.
13299 * charset.c (intermediate_encoding): Likewise (vaild).
13300 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
13301 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
13302 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
13303
e0cdfe3c
HD
133042020-01-16 Hannes Domani <ssbssa@yahoo.de>
13305
13306 * windows-tdep.c (windows_get_tlb_type):
13307 Add rtl_user_process_parameters type.
13308
790f1718 133092020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 13310 Norbert Lange <nolange79@gmail.com>
790f1718
PA
13311
13312 PR build/24805
13313 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
13314 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
13315 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
13316 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
13317 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
13318 (ps_plog): Redeclare exported functions with default visibility.
13319
3112ed97
NA
133202020-01-16 Nitika Achra <Nitika.Achra@amd.com>
13321
13322 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
13323 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
13324
8dc3273e
SM
133252020-01-15 Simon Marchi <simon.marchi@efficios.com>
13326
13327 * infcmd.c (post_create_inferior): Use get_thread_regcache
13328 instead of get_current_regcache.
13329
ff47f4f0
TT
133302020-01-14 Tom Tromey <tom@tromey.com>
13331
13332 PR symtab/12535:
13333 * python/python.c (gdbpy_decode_line): Treat empty string the same
13334 as no argument.
13335
975f45b7
TT
133362020-01-14 Tom Tromey <tom@tromey.com>
13337
13338 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
13339
25e57356
TT
133402020-01-14 Tom Tromey <tom@tromey.com>
13341
13342 * nat/linux-btrace.c: Don't include <config.h>.
13343 * nat/linux-ptrace.c: Don't include <config.h>.
13344 * nat/x86-linux-dregs.c: Don't include <config.h>.
13345
05ea2a05
TT
133462020-01-14 Tom Tromey <tom@tromey.com>
13347
13348 * configure: Rebuild.
13349 * configure.ac: Move many checks to ../gdbsupport/common.m4.
13350
01027315
TT
133512020-01-14 Tom Tromey <tom@tromey.com>
13352
13353 * nat/x86-linux-dregs.c: Include configh.h.
13354 * nat/linux-ptrace.c: Include configh.h.
13355 * nat/linux-btrace.c: Include configh.h.
13356 * defs.h: Include config.h, bfd.h.
13357 * configure.ac: Don't source common.host.
13358 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
13359 * configure: Rebuild.
13360 * acinclude.m4: Update path.
13361 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
13362 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
13363 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
13364 (CLIBS): Add LIBSUPPORT.
13365 (CDEPS): Likewise.
13366 (COMMON_SFILES): Remove gdbsupport files.
13367 (HFILES_NO_SRCDIR): Likewise.
13368 (stamp-version): Update path to create-version.sh.
13369 (ALLDEPFILES): Remove gdbsupport files.
13370
b2ceabe8
TT
133712020-01-14 Tom Tromey <tom@tromey.com>
13372
13373 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
13374 USE_WIN32API when needed.
13375 * configure.ac (USE_WIN32API): Don't define.
13376 (WIN32LIBS): Use WIN32APILIBS.
13377 * configure: Rebuild.
13378
25c51f71
TT
133792020-01-14 Tom Tromey <tom@tromey.com>
13380
13381 * configure: Rebuild.
13382 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
13383
717c684d
BE
133842020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
13385
13386 * skip.c (skip_function_command): Make skip w/o arguments use the
13387 name of the inlined function if pc is inside any inlined function.
13388
7da6a5b9
LM
133892020-01-14 Luis Machado <luis.machado@linaro.org>
13390
13391 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
13392 * infrun.c (resume_1): Likewise.
13393 (handle_inferior_event): Remove stale comment.
13394 * linux-nat.c (linux_nat_target::resume): Update comments.
13395 (save_stop_reason): Likewise.
13396 (linux_nat_filter_event): Likewise.
13397 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
13398
44e4c775
AB
133992020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
13400
13401 * elfread.c (record_minimal_symbol): Set section index to 0 for
13402 non-allocatable sections.
13403
18a8505e
AT
13404
134052020-01-13 Ali Tamur <tamur@google.com>
13406
13407 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
13408 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
13409 to gdb::optional. Update comments.
13410 (dwo_file): Update comments.
13411 (read_attribute): Update API to take an additional out parameter,
13412 need_reprocess. This is used to mark attributes that need other
13413 attributes (e.g. str_offsets_base) for correct computation which may not
13414 have been read yet.
13415 (read_attribute_reprocess): New function declaration.
13416 (read_addr_index): Likewise.
13417 (read_dwo_str_index): Likewise.
13418 (read_stub_str_index): Likewise.
13419 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
13420 (lookup_addr_base): New function definition.
13421 (lookup_ranges_base): Likewise.
13422 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
13423 lookup_ranges_base.
13424 (init_cutu_and_read_dies): Update comments.
13425 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
13426 unit. This is used to inherit parent's str_offsets_base and addr_base.
13427 Update comments.
13428 (init_cutu_and_read_dies_simple): Reflect API changes.
13429 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
13430 (create_cus_hash_table): Change API to take parent compile unit.
13431 Reflect API changes.
13432 (open_and_init_dwo_file): Reflect API changes.
13433 (dwarf2_get_pc_bounds): Update comments.
13434 (dwarf2_record_block_ranges): Likewise.
13435 (read_full_die_1): Change implementation to reprocess attributes that
13436 need str_offsets_base and addr_base.
13437 (partial_die_info::read): Likewise.
13438 (read_attribute_reprocess): New function definition.
13439 (read_attribute_value): Change API to take an additional out parameter,
13440 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
13441 when a non-dwo compile unit has index based attributes.
13442 (read_attribute): Reflect API changes.
13443 (read_addr_index_1): Reflect API changes. Update comments.
13444 (dwarf2_read_addr_index_data): Reflect API changes.
13445 (dwarf2_read_addr_index): Likewise.
13446 (read_str_index): Change API and implementation. This becomes a helper
13447 to be used by the new string index related methods. Update error
13448 message and comments.
13449 (read_dwo_str_index): New function definition.
13450 (read_stub_str_index): Likewise.
13451 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
13452 * symfile.h (dwarf2_debug_sections): Likewise.
13453 * xcoffread.c (dwarf2_debug_sections): Likewise.
13454
0cac9354
SM
134552020-01-13 Simon Marchi <simon.marchi@efficios.com>
13456
13457 * gdbcore.h (struct core_fns) <core_read_registers>: Change
13458 core_reg_sect type to gdb_byte *.
13459 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
13460 * cris-tdep.c (fetch_core_registers): Likewise.
13461 * corelow.c (core_target::get_core_register_section): Change
13462 type of `contents` to gdb::byte_vector.
13463
9a6d629c
AB
134642020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
13465
13466 * tui/tui-wingeneral.c (box_win): Position the title in the center
13467 of the border.
13468
d8b2f9e3
SM
134692020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13470
13471 * corelow.c (core_target::get_core_register_section): Use
13472 std::vector instead of alloca.
13473
bb564c58
SM
134742020-01-13 Simon Marchi <simon.marchi@efficios.com>
13475
13476 * warning.m4: Add -Wmissing-declarations to build_warnings.
13477 * configure: Re-generate.
13478
6b366111
SM
134792020-01-13 Simon Marchi <simon.marchi@efficios.com>
13480
13481 * python/python.c (init__gdb_module): Add declaration.
13482
6c265988
SM
134832020-01-13 Simon Marchi <simon.marchi@efficios.com>
13484
13485 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
13486 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
13487 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
13488 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
13489 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
13490 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
13491 * ada-exp.y (_initialize_ada_exp): Add declaration.
13492 * ada-lang.c (_initialize_ada_language): Add declaration.
13493 * ada-tasks.c (_initialize_tasks): Add declaration.
13494 * agent.c (_initialize_agent): Add declaration.
13495 * aix-thread.c (_initialize_aix_thread): Add declaration.
13496 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
13497 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
13498 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
13499 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
13500 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
13501 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
13502 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
13503 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
13504 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
13505 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
13506 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
13507 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
13508 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
13509 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
13510 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
13511 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
13512 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
13513 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
13514 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
13515 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
13516 * annotate.c (_initialize_annotate): Add declaration.
13517 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
13518 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
13519 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
13520 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
13521 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
13522 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
13523 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
13524 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
13525 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
13526 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
13527 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
13528 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
13529 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
13530 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
13531 * auto-load.c (_initialize_auto_load): Add declaration.
13532 * auxv.c (_initialize_auxv): Add declaration.
13533 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
13534 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
13535 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
13536 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
13537 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
13538 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
13539 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
13540 * breakpoint.c (_initialize_breakpoint): Add declaration.
13541 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
13542 * btrace.c (_initialize_btrace): Add declaration.
13543 * charset.c (_initialize_charset): Add declaration.
13544 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
13545 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
13546 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
13547 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
13548 * cli/cli-script.c (_initialize_cli_script): Add declaration.
13549 * cli/cli-style.c (_initialize_cli_style): Add declaration.
13550 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
13551 * coffread.c (_initialize_coffread): Add declaration.
13552 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
13553 * compile/compile.c (_initialize_compile): Add declaration.
13554 * complaints.c (_initialize_complaints): Add declaration.
13555 * completer.c (_initialize_completer): Add declaration.
13556 * copying.c (_initialize_copying): Add declaration.
13557 * corefile.c (_initialize_core): Add declaration.
13558 * corelow.c (_initialize_corelow): Add declaration.
13559 * cp-abi.c (_initialize_cp_abi): Add declaration.
13560 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
13561 * cp-support.c (_initialize_cp_support): Add declaration.
13562 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
13563 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
13564 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
13565 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
13566 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
13567 * ctfread.c (_initialize_ctfread): Add declaration.
13568 * d-lang.c (_initialize_d_language): Add declaration.
13569 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
13570 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
13571 * dbxread.c (_initialize_dbxread): Add declaration.
13572 * dcache.c (_initialize_dcache): Add declaration.
13573 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
13574 * disasm.c (_initialize_disasm): Add declaration.
13575 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
13576 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
13577 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
13578 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
13579 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
13580 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
13581 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
13582 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
13583 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
13584 * elfread.c (_initialize_elfread): Add declaration.
13585 * exec.c (_initialize_exec): Add declaration.
13586 * extension.c (_initialize_extension): Add declaration.
13587 * f-lang.c (_initialize_f_language): Add declaration.
13588 * f-valprint.c (_initialize_f_valprint): Add declaration.
13589 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
13590 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
13591 * filesystem.c (_initialize_filesystem): Add declaration.
13592 * findcmd.c (_initialize_mem_search): Add declaration.
13593 * findvar.c (_initialize_findvar): Add declaration.
13594 * fork-child.c (_initialize_fork_child): Add declaration.
13595 * frame-base.c (_initialize_frame_base): Add declaration.
13596 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
13597 * frame.c (_initialize_frame): Add declaration.
13598 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
13599 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
13600 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
13601 * gcore.c (_initialize_gcore): Add declaration.
13602 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
13603 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
13604 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
13605 * gdbarch.c (_initialize_gdbarch): Add declaration.
13606 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
13607 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
13608 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
13609 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
13610 * go-lang.c (_initialize_go_language): Add declaration.
13611 * go32-nat.c (_initialize_go32_nat): Add declaration.
13612 * guile/guile.c (_initialize_guile): Add declaration.
13613 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
13614 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
13615 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
13616 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
13617 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
13618 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
13619 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
13620 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
13621 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
13622 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
13623 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
13624 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
13625 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
13626 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
13627 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
13628 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
13629 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
13630 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
13631 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
13632 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
13633 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
13634 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
13635 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
13636 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
13637 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
13638 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
13639 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
13640 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
13641 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
13642 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
13643 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
13644 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
13645 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
13646 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
13647 * infcall.c (_initialize_infcall): Add declaration.
13648 * infcmd.c (_initialize_infcmd): Add declaration.
13649 * inflow.c (_initialize_inflow): Add declaration.
13650 * infrun.c (_initialize_infrun): Add declaration.
13651 * interps.c (_initialize_interpreter): Add declaration.
13652 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
13653 * jit.c (_initialize_jit): Add declaration.
13654 * language.c (_initialize_language): Add declaration.
13655 * linux-fork.c (_initialize_linux_fork): Add declaration.
13656 * linux-nat.c (_initialize_linux_nat): Add declaration.
13657 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
13658 * linux-thread-db.c (_initialize_thread_db): Add declaration.
13659 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
13660 * m2-lang.c (_initialize_m2_language): Add declaration.
13661 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
13662 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
13663 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
13664 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
13665 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
13666 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
13667 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
13668 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
13669 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
13670 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
13671 * machoread.c (_initialize_machoread): Add declaration.
13672 * macrocmd.c (_initialize_macrocmd): Add declaration.
13673 * macroscope.c (_initialize_macroscope): Add declaration.
13674 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
13675 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
13676 * maint.c (_initialize_maint_cmds): Add declaration.
13677 * mdebugread.c (_initialize_mdebugread): Add declaration.
13678 * memattr.c (_initialize_mem): Add declaration.
13679 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
13680 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
13681 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
13682 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
13683 * mi/mi-main.c (_initialize_mi_main): Add declaration.
13684 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
13685 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
13686 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
13687 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
13688 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
13689 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
13690 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
13691 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
13692 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
13693 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
13694 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
13695 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
13696 * mipsread.c (_initialize_mipsread): Add declaration.
13697 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
13698 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
13699 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
13700 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
13701 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
13702 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
13703 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
13704 * nto-procfs.c (_initialize_procfs): Add declaration.
13705 * objc-lang.c (_initialize_objc_language): Add declaration.
13706 * observable.c (_initialize_observer): Add declaration.
13707 * opencl-lang.c (_initialize_opencl_language): Add declaration.
13708 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
13709 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
13710 * osabi.c (_initialize_gdb_osabi): Add declaration.
13711 * osdata.c (_initialize_osdata): Add declaration.
13712 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
13713 * parse.c (_initialize_parse): Add declaration.
13714 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
13715 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
13716 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
13717 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
13718 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
13719 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
13720 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
13721 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
13722 * printcmd.c (_initialize_printcmd): Add declaration.
13723 * probe.c (_initialize_probe): Add declaration.
13724 * proc-api.c (_initialize_proc_api): Add declaration.
13725 * proc-events.c (_initialize_proc_events): Add declaration.
13726 * proc-service.c (_initialize_proc_service): Add declaration.
13727 * procfs.c (_initialize_procfs): Add declaration.
13728 * producer.c (_initialize_producer): Add declaration.
13729 * psymtab.c (_initialize_psymtab): Add declaration.
13730 * python/python.c (_initialize_python): Add declaration.
13731 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
13732 * record-btrace.c (_initialize_record_btrace): Add declaration.
13733 * record-full.c (_initialize_record_full): Add declaration.
13734 * record.c (_initialize_record): Add declaration.
13735 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
13736 * regcache.c (_initialize_regcache): Add declaration.
13737 * reggroups.c (_initialize_reggroup): Add declaration.
13738 * remote-notif.c (_initialize_notif): Add declaration.
13739 * remote-sim.c (_initialize_remote_sim): Add declaration.
13740 * remote.c (_initialize_remote): Add declaration.
13741 * reverse.c (_initialize_reverse): Add declaration.
13742 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
13743 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
13744 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
13745 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
13746 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
13747 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
13748 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
13749 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
13750 Add declaration.
13751 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
13752 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
13753 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
13754 * rust-exp.y (_initialize_rust_exp): Add declaration.
13755 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
13756 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
13757 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
13758 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
13759 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
13760 * score-tdep.c (_initialize_score_tdep): Add declaration.
13761 * ser-go32.c (_initialize_ser_dos): Add declaration.
13762 * ser-mingw.c (_initialize_ser_windows): Add declaration.
13763 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
13764 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
13765 * ser-uds.c (_initialize_ser_socket): Add declaration.
13766 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
13767 * serial.c (_initialize_serial): Add declaration.
13768 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
13769 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
13770 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
13771 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
13772 * skip.c (_initialize_step_skip): Add declaration.
13773 * sol-thread.c (_initialize_sol_thread): Add declaration.
13774 * solib-aix.c (_initialize_solib_aix): Add declaration.
13775 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
13776 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
13777 * solib-frv.c (_initialize_frv_solib): Add declaration.
13778 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
13779 * solib-target.c (_initialize_solib_target): Add declaration.
13780 * solib.c (_initialize_solib): Add declaration.
13781 * source-cache.c (_initialize_source_cache): Add declaration.
13782 * source.c (_initialize_source): Add declaration.
13783 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
13784 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
13785 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
13786 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
13787 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
13788 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
13789 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
13790 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
13791 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
13792 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
13793 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
13794 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
13795 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
13796 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
13797 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
13798 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
13799 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
13800 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
13801 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
13802 * stabsread.c (_initialize_stabsread): Add declaration.
13803 * stack.c (_initialize_stack): Add declaration.
13804 * stap-probe.c (_initialize_stap_probe): Add declaration.
13805 * std-regs.c (_initialize_frame_reg): Add declaration.
13806 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
13807 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
13808 * symfile.c (_initialize_symfile): Add declaration.
13809 * symmisc.c (_initialize_symmisc): Add declaration.
13810 * symtab.c (_initialize_symtab): Add declaration.
13811 * target.c (_initialize_target): Add declaration.
13812 * target-connection.c (_initialize_target_connection): Add
13813 declaration.
13814 * target-dcache.c (_initialize_target_dcache): Add declaration.
13815 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
13816 * thread.c (_initialize_thread): Add declaration.
13817 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
13818 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
13819 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
13820 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
13821 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
13822 * tracectf.c (_initialize_ctf): Add declaration.
13823 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
13824 * tracefile.c (_initialize_tracefile): Add declaration.
13825 * tracepoint.c (_initialize_tracepoint): Add declaration.
13826 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
13827 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
13828 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
13829 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
13830 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
13831 * tui/tui-win.c (_initialize_tui_win): Add declaration.
13832 * tui/tui.c (_initialize_tui): Add declaration.
13833 * typeprint.c (_initialize_typeprint): Add declaration.
13834 * ui-style.c (_initialize_ui_style): Add declaration.
13835 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
13836 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
13837 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
13838 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
13839 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
13840 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
13841 * unittests/filtered_iterator-selftests.c
13842 (_initialize_filtered_iterator_selftests): Add declaration.
13843 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
13844 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
13845 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
13846 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
13847 * unittests/main-thread-selftests.c
13848 (_initialize_main_thread_selftests): Add declaration.
13849 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
13850 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
13851 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
13852 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
13853 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
13854 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
13855 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
13856 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
13857 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
13858 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
13859 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
13860 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
13861 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
13862 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
13863 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
13864 declaration.
13865 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
13866 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
13867 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
13868 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
13869 * user-regs.c (_initialize_user_regs): Add declaration.
13870 * utils.c (_initialize_utils): Add declaration.
13871 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
13872 * valops.c (_initialize_valops): Add declaration.
13873 * valprint.c (_initialize_valprint): Add declaration.
13874 * value.c (_initialize_values): Add declaration.
13875 * varobj.c (_initialize_varobj): Add declaration.
13876 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
13877 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
13878 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
13879 * windows-nat.c (_initialize_windows_nat): Add declaration.
13880 (_initialize_check_for_gdb_ini): Add declaration.
13881 (_initialize_loadable): Add declaration.
13882 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
13883 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
13884 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
13885 * xcoffread.c (_initialize_xcoffread): Add declaration.
13886 * xml-support.c (_initialize_xml_support): Add declaration.
13887 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
13888 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
13889 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
13890 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
13891
e2de1eec
SM
138922020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13893
13894 * regformats/regdat.sh: Generate declaration for init function.
13895
e0037b4c
SM
138962020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13897
13898 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
13899 up.
13900 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
13901 close_one_inferior>: New methods.
13902 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
13903 pass down target to find_inferior_pid.
13904 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
13905 Pass down target to find_inferior_ptid.
13906 (gdbsim_target::create_inferior): Pass down target to
13907 add_thread_silent.
13908 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
13909 target down to find_inferior_ptid and switch_to_thread.
13910 (gdbsim_target::close): Update to call close_one_inferior.
13911 (struct resume_data): Remove.
13912 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
13913 directly, rather than through a void pointer.
13914 (gdbsim_target::resume): Update to call resume_one_inferior.
13915
58920b5b
SM
139162020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
13917
13918 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
13919
4ec89149
PA
139202020-01-12 Pedro Alves <palves@redhat.com>
13921
13922 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
13923 directly for the current inferior instead of
13924 discard_all_inferiors.
13925 (discard_all_inferiors): Delete.
13926
7c392d1d
TT
139272020-01-11 Tom Tromey <tom@tromey.com>
13928
13929 * tui/tui-wingeneral.c (box_win): Check cli_styling.
13930 * tui/tui-winsource.c (tui_source_window_base::refill): Use
13931 deprecated_safe_get_selected_frame.
13932
d9ebdab7
TBA
139332020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13934
13935 * inferior.c (print_inferior): Switch inferior before printing it.
13936
f3c469b9
PA
139372020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
13938 Pedro Alves <palves@redhat.com>
13939
13940 * progspace-and-thread.c (switch_to_program_space_and_thread):
13941 Assert there's an inferior for PSPACE. Use
13942 switch_to_inferior_no_thread to switch the inferior too.
13943 * progspace.c (program_space::~program_space): Call
13944 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
13945 (program_space::free_all_objfiles): Don't call clear_symtab_users
13946 here.
13947 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
13948
65c574f6
PA
139492020-01-10 Pedro Alves <palves@redhat.com>
13950
13951 * NEWS: Mention multi-target debugging, "info connections", and
13952 "add-inferior -no-connection".
13953
2f4fcf00
PA
139542020-01-10 Pedro Alves <palves@redhat.com>
13955
13956 * infrun.c: Include "target-connection.h".
13957 (check_multi_target_resumption): New.
13958 (proceed): Call it.
13959 * target-connection.c (make_target_connection_string): Make
13960 extern.
13961 * target-connection.h (make_target_connection_string): Declare.
13962
121b3efd
PA
139632020-01-10 Pedro Alves <palves@redhat.com>
13964
13965 * Makefile.in (COMMON_SFILES): Add target-connection.c.
13966 * inferior.c (uiout_field_connection): New function.
13967 (print_inferior): Add new "connection-id" column.
13968 (add_inferior_command): Show connection number/string of added
13969 inferior.
13970 * process-stratum-target.h
13971 (process_stratum_target::connection_string): New virtual method.
13972 (process_stratum_target::connection_number): New field.
13973 * remote.c (remote_target::connection_string): New override.
13974 * target-connection.c: New file.
13975 * target-connection.h: New file.
13976 * target.c (decref_target): Remove process_stratum targets from
13977 the connection list.
13978 (target_stack::push): Add process_stratum targets to the
13979 connection list.
13980
4f837581
PA
139812020-01-10 Pedro Alves <palves@redhat.com>
13982
13983 Revert:
13984 2016-04-12 Pedro Alves <palves@redhat.com>
13985 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
13986 Remove references to name.
13987 * serial.h (struct serial) <name>: Delete.
13988
f4ec508e
PA
139892020-01-10 Pedro Alves <palves@redhat.com>
13990
13991 * gdbarch-selftests.c (register_to_value_test): Remove "target
13992 already pushed" check.
13993
5b6d1e4f
PA
139942020-01-10 Pedro Alves <palves@redhat.com>
13995 John Baldwin <jhb@FreeBSD.org>
13996
13997 * aarch64-linux-nat.c
13998 (aarch64_linux_nat_target::thread_architecture): Adjust.
13999 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
14000 (task_command_1): Likewise.
14001 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
14002 (aix_thread_target::wait, aix_thread_target::fetch_registers)
14003 (aix_thread_target::store_registers)
14004 (aix_thread_target::thread_alive): Adjust.
14005 * amd64-fbsd-tdep.c: Include "inferior.h".
14006 (amd64fbsd_get_thread_local_address): Pass down target.
14007 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
14008 thread's gdbarch instead of target_gdbarch.
14009 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
14010 get_last_target_status.
14011 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
14012 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
14013 inferiors.
14014 (update_inserted_breakpoint_locations): Skip if inferiors with no
14015 execution.
14016 (update_global_location_list): When handling moribund locations,
14017 find representative inferior for location's pspace, and use thread
14018 count of its process_stratum target.
14019 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
14020 * bsd-uthread.c (bsd_uthread_target::wait): Use
14021 as_process_stratum_target and adjust thread_change_ptid and
14022 add_thread calls.
14023 (bsd_uthread_target::update_thread_list): Use
14024 as_process_stratum_target and adjust find_thread_ptid,
14025 thread_change_ptid and add_thread calls.
14026 * btrace.c (maint_btrace_packet_history_cmd): Adjust
14027 find_thread_ptid call.
14028 * corelow.c (add_to_thread_list): Adjust add_thread call.
14029 (core_target_open): Adjust add_thread_silent and thread_count
14030 calls.
14031 (core_target::pid_to_str): Adjust find_inferior_ptid call.
14032 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
14033 * event-top.c (async_disconnect): Pop targets from all inferiors.
14034 * exec.c (add_target_sections): Push exec target on all inferiors
14035 sharing the program space.
14036 (remove_target_sections): Remove the exec target from all
14037 inferiors sharing the program space.
14038 (exec_on_vfork): New.
14039 * exec.h (exec_on_vfork): Declare.
14040 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
14041 Pass it down.
14042 (fbsd_nat_target::update_thread_list): Adjust.
14043 (fbsd_nat_target::resume): Adjust.
14044 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
14045 down.
14046 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
14047 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
14048 get_thread_arch_regcache call.
14049 * fork-child.c (gdb_startup_inferior): Pass target down to
14050 startup_inferior and set_executing.
14051 * gdbthread.h (struct process_stratum_target): Forward declare.
14052 (add_thread, add_thread_silent, add_thread_with_info)
14053 (in_thread_list): Add process_stratum_target parameter.
14054 (find_thread_ptid(inferior*, ptid_t)): New overload.
14055 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
14056 parameter.
14057 (all_threads()): Delete overload.
14058 (all_threads, all_non_exited_threads): Add process_stratum_target
14059 parameter.
14060 (all_threads_safe): Use brace initialization.
14061 (thread_count): Add process_stratum_target parameter.
14062 (set_resumed, set_running, set_stop_requested, set_executing)
14063 (threads_are_executing, finish_thread_state): Add
14064 process_stratum_target parameter.
14065 (switch_to_thread): Use is_current_thread.
14066 * i386-fbsd-tdep.c: Include "inferior.h".
14067 (i386fbsd_get_thread_local_address): Pass down target.
14068 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
14069 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
14070 have_inferiors check.
14071 * inf-ptrace.c (inf_ptrace_target::create_inferior)
14072 (inf_ptrace_target::attach): Adjust.
14073 * infcall.c (run_inferior_call): Adjust.
14074 * infcmd.c (run_command_1): Pass target to
14075 scoped_finish_thread_state.
14076 (proceed_thread_callback): Skip inferiors with no execution.
14077 (continue_command): Rename 'all_threads' local to avoid hiding
14078 'all_threads' function. Adjust get_last_target_status call.
14079 (prepare_one_step): Adjust set_running call.
14080 (signal_command): Use user_visible_resume_target. Compare thread
14081 pointers instead of inferior_ptid.
14082 (info_program_command): Adjust to pass down target.
14083 (attach_command): Mark target's 'thread_executing' flag.
14084 (stop_current_target_threads_ns): New, factored out from ...
14085 (interrupt_target_1): ... this. Switch inferior before making
14086 target calls.
14087 * inferior-iter.h
14088 (struct all_inferiors_iterator, struct all_inferiors_range)
14089 (struct all_inferiors_safe_range)
14090 (struct all_non_exited_inferiors_range): Filter on
14091 process_stratum_target too. Remove explicit.
14092 * inferior.c (inferior::inferior): Push dummy target on target
14093 stack.
14094 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
14095 Add process_stratum_target parameter, and pass it down.
14096 (have_live_inferiors): Adjust.
14097 (switch_to_inferior_and_push_target): New.
14098 (add_inferior_command, clone_inferior_command): Handle
14099 "-no-connection" parameter. Use
14100 switch_to_inferior_and_push_target.
14101 (_initialize_inferior): Mention "-no-connection" option in
14102 the help of "add-inferior" and "clone-inferior" commands.
14103 * inferior.h: Include "process-stratum-target.h".
14104 (interrupt_target_1): Use bool.
14105 (struct inferior) <push_target, unpush_target, target_is_pushed,
14106 find_target_beneath, top_target, process_target, target_at,
14107 m_stack>: New.
14108 (discard_all_inferiors): Delete.
14109 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
14110 (all_inferiors, all_non_exited_inferiors): Add
14111 process_stratum_target parameter.
14112 * infrun.c: Include "gdb_select.h" and <unordered_map>.
14113 (target_last_proc_target): New global.
14114 (follow_fork_inferior): Push target on new inferior. Pass target
14115 to add_thread_silent. Call exec_on_vfork. Handle target's
14116 reference count.
14117 (follow_fork): Adjust get_last_target_status call. Also consider
14118 target.
14119 (follow_exec): Push target on new inferior.
14120 (struct execution_control_state) <target>: New field.
14121 (user_visible_resume_target): New.
14122 (do_target_resume): Call target_async.
14123 (resume_1): Set target's threads_executing flag. Consider resume
14124 target.
14125 (commit_resume_all_targets): New.
14126 (proceed): Also consider resume target. Skip threads of inferiors
14127 with no execution. Commit resumtion in all targets.
14128 (start_remote): Pass current inferior to wait_for_inferior.
14129 (infrun_thread_stop_requested): Consider target as well. Pass
14130 thread_info pointer to clear_inline_frame_state instead of ptid.
14131 (infrun_thread_thread_exit): Consider target as well.
14132 (random_pending_event_thread): New inferior parameter. Use it.
14133 (do_target_wait): Rename to ...
14134 (do_target_wait_1): ... this. Add inferior parameter, and pass it
14135 down.
14136 (threads_are_resumed_pending_p, do_target_wait): New.
14137 (prepare_for_detach): Adjust calls.
14138 (wait_for_inferior): New inferior parameter. Handle it. Use
14139 do_target_wait_1 instead of do_target_wait.
14140 (fetch_inferior_event): Adjust. Switch to representative
14141 inferior. Pass target down.
14142 (set_last_target_status): Add process_stratum_target parameter.
14143 Save target in global.
14144 (get_last_target_status): Add process_stratum_target parameter and
14145 handle it.
14146 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
14147 (context_switch): Check inferior_ptid == null_ptid before calling
14148 inferior_thread().
14149 (get_inferior_stop_soon): Pass down target.
14150 (wait_one): Rename to ...
14151 (poll_one_curr_target): ... this.
14152 (struct wait_one_event): New.
14153 (wait_one): New.
14154 (stop_all_threads): Adjust.
14155 (handle_no_resumed, handle_inferior_event): Adjust to consider the
14156 event's target.
14157 (switch_back_to_stepped_thread): Also consider target.
14158 (print_stop_event): Update.
14159 (normal_stop): Update. Also consider the resume target.
14160 * infrun.h (wait_for_inferior): Remove declaration.
14161 (user_visible_resume_target): New declaration.
14162 (get_last_target_status, set_last_target_status): New
14163 process_stratum_target parameter.
14164 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
14165 process_stratum_target parameter, and use it.
14166 (clear_inline_frame_state (thread_info*)): New.
14167 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
14168 process_stratum_target parameter.
14169 (clear_inline_frame_state (thread_info*)): Declare.
14170 * linux-fork.c (delete_checkpoint_command): Pass target down to
14171 find_thread_ptid.
14172 (checkpoint_command): Adjust.
14173 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
14174 instead of just tweaking inferior_ptid.
14175 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
14176 (exit_lwp): Pass target down to find_thread_ptid.
14177 (attach_proc_task_lwp_callback): Pass target down to
14178 add_thread/set_running/set_executing.
14179 (linux_nat_target::attach): Pass target down to
14180 thread_change_ptid.
14181 (get_detach_signal): Pass target down to find_thread_ptid.
14182 Consider last target status's target.
14183 (linux_resume_one_lwp_throw, resume_lwp)
14184 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
14185 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
14186 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
14187 (linux_nat_target::async_wait_fd): New.
14188 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
14189 target down.
14190 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
14191 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
14192 * linux-thread-db.c (struct thread_db_info::process_target): New
14193 field.
14194 (add_thread_db_info): Save target.
14195 (get_thread_db_info): New process_stratum_target parameter. Also
14196 match target.
14197 (delete_thread_db_info): New process_stratum_target parameter.
14198 Also match target.
14199 (thread_from_lwp): Adjust to pass down target.
14200 (thread_db_notice_clone): Pass down target.
14201 (check_thread_db_callback): Pass down target.
14202 (try_thread_db_load_1): Always push the thread_db target.
14203 (try_thread_db_load, record_thread): Pass target down.
14204 (thread_db_target::detach): Pass target down. Always unpush the
14205 thread_db target.
14206 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
14207 target down. Always unpush the thread_db target.
14208 (find_new_threads_callback, thread_db_find_new_threads_2)
14209 (thread_db_target::update_thread_list): Pass target down.
14210 (thread_db_target::pid_to_str): Pass current inferior down.
14211 (thread_db_target::get_thread_local_address): Pass target down.
14212 (thread_db_target::resume, maintenance_check_libthread_db): Pass
14213 target down.
14214 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
14215 * procfs.c (procfs_target::procfs_init_inferior): Declare.
14216 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
14217 (procfs_init_inferior): Rename to ...
14218 (procfs_target::procfs_init_inferior): ... this and adjust.
14219 (procfs_target::create_inferior, procfs_notice_thread)
14220 (procfs_do_thread_registers): Adjust.
14221 * ppc-fbsd-tdep.c: Include "inferior.h".
14222 (ppcfbsd_get_thread_local_address): Pass down target.
14223 * proc-service.c (ps_xfer_memory): Switch current inferior and
14224 program space as well.
14225 (get_ps_regcache): Pass target down.
14226 * process-stratum-target.c
14227 (process_stratum_target::thread_address_space)
14228 (process_stratum_target::thread_architecture): Pass target down.
14229 * process-stratum-target.h
14230 (process_stratum_target::threads_executing): New field.
14231 (as_process_stratum_target): New.
14232 * ravenscar-thread.c
14233 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
14234 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
14235 down.
14236 * record-btrace.c (record_btrace_target::info_record): Adjust.
14237 (record_btrace_target::record_method)
14238 (record_btrace_target::record_is_replaying)
14239 (record_btrace_target::fetch_registers)
14240 (get_thread_current_frame_id, record_btrace_target::resume)
14241 (record_btrace_target::wait, record_btrace_target::stop): Pass
14242 target down.
14243 * record-full.c (record_full_wait_1): Switch to event thread.
14244 Pass target down.
14245 * regcache.c (regcache::regcache)
14246 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
14247 process_stratum_target parameter and handle it.
14248 (current_thread_target): New global.
14249 (get_thread_regcache): Add process_stratum_target parameter and
14250 handle it. Switch inferior before calling target method.
14251 (get_thread_regcache): Pass target down.
14252 (get_thread_regcache_for_ptid): Pass target down.
14253 (registers_changed_ptid): Add process_stratum_target parameter and
14254 handle it.
14255 (registers_changed_thread, registers_changed): Pass target down.
14256 (test_get_thread_arch_aspace_regcache): New.
14257 (current_regcache_test): Define a couple local test_target_ops
14258 instances and use them for testing.
14259 (readwrite_regcache): Pass process_stratum_target parameter.
14260 (cooked_read_test, cooked_write_test): Pass mock_target down.
14261 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
14262 (get_thread_arch_aspace_regcache): Add process_stratum_target
14263 parameter.
14264 (regcache::target): New method.
14265 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
14266 (regcache::registers_changed_ptid): Add process_stratum_target
14267 parameter.
14268 (regcache::m_target): New field.
14269 (registers_changed_ptid): Add process_stratum_target parameter.
14270 * remote.c (remote_state::supports_vCont_probed): New field.
14271 (remote_target::async_wait_fd): New method.
14272 (remote_unpush_and_throw): Add remote_target parameter.
14273 (get_current_remote_target): Adjust.
14274 (remote_target::remote_add_inferior): Push target.
14275 (remote_target::remote_add_thread)
14276 (remote_target::remote_notice_new_inferior)
14277 (get_remote_thread_info): Pass target down.
14278 (remote_target::update_thread_list): Skip threads of inferiors
14279 bound to other targets. (remote_target::close): Don't discard
14280 inferiors. (remote_target::add_current_inferior_and_thread)
14281 (remote_target::process_initial_stop_replies)
14282 (remote_target::start_remote)
14283 (remote_target::remote_serial_quit_handler): Pass down target.
14284 (remote_target::remote_unpush_target): New remote_target
14285 parameter. Unpush the target from all inferiors.
14286 (remote_target::remote_unpush_and_throw): New remote_target
14287 parameter. Pass it down.
14288 (remote_target::open_1): Check whether the current inferior has
14289 execution instead of checking whether any inferior is live. Pass
14290 target down.
14291 (remote_target::remote_detach_1): Pass down target. Use
14292 remote_unpush_target.
14293 (extended_remote_target::attach): Pass down target.
14294 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
14295 (remote_target::append_resumption): Pass down target.
14296 (remote_target::append_pending_thread_resumptions)
14297 (remote_target::remote_resume_with_hc, remote_target::resume)
14298 (remote_target::commit_resume): Pass down target.
14299 (remote_target::remote_stop_ns): Check supports_vCont_probed.
14300 (remote_target::interrupt_query)
14301 (remote_target::remove_new_fork_children)
14302 (remote_target::check_pending_events_prevent_wildcard_vcont)
14303 (remote_target::remote_parse_stop_reply)
14304 (remote_target::process_stop_reply): Pass down target.
14305 (first_remote_resumed_thread): New remote_target parameter. Pass
14306 it down.
14307 (remote_target::wait_as): Pass down target.
14308 (unpush_and_perror): New remote_target parameter. Pass it down.
14309 (remote_target::readchar, remote_target::remote_serial_write)
14310 (remote_target::getpkt_or_notif_sane_1)
14311 (remote_target::kill_new_fork_children, remote_target::kill): Pass
14312 down target.
14313 (remote_target::mourn_inferior): Pass down target. Use
14314 remote_unpush_target.
14315 (remote_target::core_of_thread)
14316 (remote_target::remote_btrace_maybe_reopen): Pass down target.
14317 (remote_target::pid_to_exec_file)
14318 (remote_target::thread_handle_to_thread_info): Pass down target.
14319 (remote_target::async_wait_fd): New.
14320 * riscv-fbsd-tdep.c: Include "inferior.h".
14321 (riscv_fbsd_get_thread_local_address): Pass down target.
14322 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
14323 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
14324 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
14325 Adjust.
14326 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
14327 * solib-svr4.c (enable_break): Pass down target.
14328 * spu-multiarch.c (parse_spufs_run): Pass down target.
14329 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
14330 * target-delegates.c: Regenerate.
14331 * target.c (g_target_stack): Delete.
14332 (current_top_target): Return the current inferior's top target.
14333 (target_has_execution_1): Refer to the passed-in inferior's top
14334 target.
14335 (target_supports_terminal_ours): Check whether the initial
14336 inferior was already created.
14337 (decref_target): New.
14338 (target_stack::push): Incref/decref the target.
14339 (push_target, push_target, unpush_target): Adjust.
14340 (target_stack::unpush): Defref target.
14341 (target_is_pushed): Return bool. Adjust to refer to the current
14342 inferior's target stack.
14343 (dispose_inferior): Delete, and inline parts ...
14344 (target_preopen): ... here. Only dispose of the current inferior.
14345 (target_detach): Hold strong target reference while detaching.
14346 Pass target down.
14347 (target_thread_name): Add assertion.
14348 (target_resume): Pass down target.
14349 (target_ops::beneath, find_target_at): Adjust to refer to the
14350 current inferior's target stack.
14351 (get_dummy_target): New.
14352 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
14353 has a thread running.
14354 (initialize_targets): Rename to ...
14355 (_initialize_target): ... this.
14356 * target.h: Include "gdbsupport/refcounted-object.h".
14357 (struct target_ops): Inherit refcounted_object.
14358 (target_ops::shortname, target_ops::longname): Make const.
14359 (target_ops::async_wait_fd): New method.
14360 (decref_target): Declare.
14361 (struct target_ops_ref_policy): New.
14362 (target_ops_ref): New typedef.
14363 (get_dummy_target): Declare function.
14364 (target_is_pushed): Return bool.
14365 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
14366 (all_matching_threads_iterator::all_matching_threads_iterator):
14367 Handle filter target.
14368 * thread-iter.h (struct all_matching_threads_iterator, struct
14369 all_matching_threads_range, class all_non_exited_threads_range):
14370 Filter by target too. Remove explicit.
14371 * thread.c (threads_executing): Delete.
14372 (inferior_thread): Pass down current inferior.
14373 (clear_thread_inferior_resources): Pass down thread pointer
14374 instead of ptid_t.
14375 (add_thread_silent, add_thread_with_info, add_thread): Add
14376 process_stratum_target parameter. Use it for thread and inferior
14377 searches.
14378 (is_current_thread): New.
14379 (thread_info::deletable): Use it.
14380 (find_thread_ptid, thread_count, in_thread_list)
14381 (thread_change_ptid, set_resumed, set_running): New
14382 process_stratum_target parameter. Pass it down.
14383 (set_executing): New process_stratum_target parameter. Pass it
14384 down. Adjust reference to 'threads_executing'.
14385 (threads_are_executing): New process_stratum_target parameter.
14386 Adjust reference to 'threads_executing'.
14387 (set_stop_requested, finish_thread_state): New
14388 process_stratum_target parameter. Pass it down.
14389 (switch_to_thread): Also match inferior.
14390 (switch_to_thread): New process_stratum_target parameter. Pass it
14391 down.
14392 (update_threads_executing): Reimplement.
14393 * top.c (quit_force): Pop targets from all inferior.
14394 (gdb_init): Don't call initialize_targets.
14395 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
14396 Declare.
14397 (windows_add_thread, windows_delete_thread): Adjust.
14398 (get_windows_debug_event): Rename to ...
14399 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
14400 * tracefile-tfile.c (tfile_target_open): Pass down target.
14401 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
14402 Forward declare.
14403 (switch_to_thread): Add process_stratum_target parameter.
14404 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
14405 parameter. Use it.
14406 (mi_on_resume): Pass target down.
14407 * nat/fork-inferior.c (startup_inferior): Add
14408 process_stratum_target parameter. Pass it down.
14409 * nat/fork-inferior.h (startup_inferior): Add
14410 process_stratum_target parameter.
14411 * python/py-threadevent.c (py_get_event_thread): Pass target down.
14412
75c6c844
PA
144132020-01-10 Pedro Alves <palves@redhat.com>
14414
14415 * remote.c (remote_target::start_remote): Don't set inferior_ptid
14416 directly. Instead find the first thread in the thread list and
14417 use switch_to_thread.
14418
78f2c40a
PA
144192020-01-10 Pedro Alves <palves@redhat.com>
14420
14421 * remote.c (remote_target::remote_add_inferior): Don't bind a
14422 process to the current inferior if the current inferior is already
14423 bound to a process.
14424
e7af6c70
TBA
144252020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14426 Pedro Alves <palves@redhat.com>
14427
14428 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
14429 If no process is specified, return null_ptid instead of
14430 inferior_ptid.
14431 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
14432 TARGET_WAITKIND_SIGNALLED with no pid.
14433
31ba933e
PA
144342020-01-10 Pedro Alves <palves@redhat.com>
14435
14436 * remote.c (first_remote_resumed_thread): New.
14437 (remote_target::wait_as): Use it as default event_ptid instead of
14438 inferior_ptid.
14439
735fc2ca
PA
144402020-01-10 Pedro Alves <palves@redhat.com>
14441
14442 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
14443
c17e02e1
PA
144442020-01-10 Pedro Alves <palves@redhat.com>
14445
14446 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
14447 not -1.
14448
ab1ddbcf
PA
144492020-01-10 Pedro Alves <palves@redhat.com>
14450
14451 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
14452 ptid to get_last_target_status.
14453 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
14454 ptid to get_last_target_status.
14455 * infcmd.c (continue_command): Don't pass a target_waitstatus to
14456 get_last_target_status.
14457 (info_program_command): Don't pass a target_waitstatus to
14458 get_last_target_status.
14459 * infrun.c (init_wait_for_inferior): Use
14460 nullify_last_target_wait_ptid.
14461 (get_last_target_status): Handle nullptr arguments.
14462 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
14463 (print_stop_event): Don't pass a ptid to get_last_target_status.
14464 (normal_stop): Don't pass a ptid to get_last_target_status.
14465 * infrun.h (get_last_target_status, set_last_target_status): Move
14466 comments here and update.
14467 (nullify_last_target_wait_ptid): Declare.
14468 * linux-fork.c (fork_load_infrun_state): Remove local extern
14469 declaration of nullify_last_target_wait_ptid.
14470 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
14471 to get_last_target_status.
14472
f3f8ece4
PA
144732020-01-10 Pedro Alves <palves@redhat.com>
14474
14475 * gdbthread.h (scoped_restore_current_thread)
14476 <dont_restore, restore, m_dont_restore>: Declare.
14477 * thread.c (thread_alive): Add assertion. Return bool.
14478 (switch_to_thread_if_alive): New.
14479 (prune_threads): Switch inferior/thread.
14480 (print_thread_info_1): Switch thread before calling target methods.
14481 (scoped_restore_current_thread::restore): New, factored out from
14482 ...
14483 (scoped_restore_current_thread::~scoped_restore_current_thread):
14484 ... this.
14485 (scoped_restore_current_thread::scoped_restore_current_thread):
14486 Add assertion.
14487 (thread_apply_all_command, thread_select): Use
14488 switch_to_thread_if_alive.
14489 * infrun.c (proceed, restart_threads, handle_signal_stop)
14490 (switch_back_to_stepped_thread): Switch current thread before
14491 calling target methods.
14492
db2d40f7
PA
144932020-01-10 Pedro Alves <palves@redhat.com>
14494
14495 * inferior.c (switch_to_inferior_no_thread): New function,
14496 factored out from ...
14497 (inferior_command): ... here.
14498 * inferior.h (switch_to_inferior_no_thread): Declare.
14499 * mi/mi-main.c (run_one_inferior): Use
14500 switch_to_inferior_no_thread.
14501
bd420a2d
PA
145022020-01-10 Pedro Alves <palves@redhat.com>
14503
14504 * infcmd.c (kill_command): Remove dead code.
14505
ddf5db90
PA
145062020-01-10 Pedro Alves <palves@redhat.com>
14507
14508 * remote.c (remote_target::mourn_inferior): No longer check
14509 whether the target is running.
14510
5018ce90
PA
145112020-01-10 Pedro Alves <palves@redhat.com>
14512
14513 * corelow.c (core_target::has_execution): Change parameter type to
14514 inferior pointer.
14515 * inferior.c (number_of_live_inferiors): Use
14516 inferior::has_execution instead of target_has_execution_1.
14517 * inferior.h (inferior::has_execution): New.
14518 * linux-thread-db.c (thread_db_target::update_thread_list): Use
14519 inferior::has_execution instead of target_has_execution_1.
14520 * process-stratum-target.c
14521 (process_stratum_target::has_execution): Change parameter type to
14522 inferior pointer. Check the inferior's PID instead of
14523 inferior_ptid.
14524 * process-stratum-target.h
14525 (process_stratum_target::has_execution): Change parameter type to
14526 inferior pointer.
14527 * record-full.c (record_full_core_target::has_execution): Change
14528 parameter type to inferior pointer.
14529 * target.c (target_has_execution_1): Change parameter type to
14530 inferior pointer.
14531 (target_has_execution_current): Adjust.
14532 * target.h (target_ops::has_execution): Change parameter type to
14533 inferior pointer.
14534 (target_has_execution_1): Change parameter type to inferior
14535 pointer. Change return type to bool.
14536 * tracefile.h (tracefile_target::has_execution): Change parameter
14537 type to inferior pointer.
14538
74375d18
PA
145392020-01-10 Pedro Alves <palves@redhat.com>
14540
14541 * exceptions.c (print_flush): Remove current_top_target() check.
14542
acdf84a6
PA
145432020-01-10 Pedro Alves <palves@redhat.com>
14544
14545 * remote.c (show_remote_exec_file): Show the current inferior's
14546 exec-file instead of the command variable's value.
14547
ec506636
PA
145482020-01-10 Pedro Alves <palves@redhat.com>
14549
14550 * record-full.c (record_full_resume_ptid): New global.
14551 (record_full_target::resume): Set it.
14552 (record_full_wait_1): Use record_full_resume_ptid instead of
14553 inferior_ptid.
14554
873657b9
PA
145552020-01-10 Pedro Alves <palves@redhat.com>
14556
14557 * gdbthread.h (scoped_restore_current_thread)
14558 <dont_restore, restore, m_dont_restore>: Declare.
14559 * thread.c (thread_alive): Add assertion. Return bool.
14560 (switch_to_thread_if_alive): New.
14561 (prune_threads): Switch inferior/thread.
14562 (print_thread_info_1): Switch thread before calling target methods.
14563 (scoped_restore_current_thread::restore): New, factored out from
14564 ...
14565 (scoped_restore_current_thread::~scoped_restore_current_thread):
14566 ... this.
14567 (scoped_restore_current_thread::scoped_restore_current_thread):
14568 Add assertion.
14569 (thread_apply_all_command, thread_select): Use
14570 switch_to_thread_if_alive.
14571
7f0ae84c
GB
145722020-01-10 George Barrett <bob@bob131.so>
14573
14574 * stap-probe.c (stap_modify_semaphore): Don't check for null
14575 semaphores.
14576 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
14577 for null semaphores.
14578
f5a7c406
AB
145792020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
14580
14581 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
14582 all source windows, and maintain horizontal scroll status while
14583 doing so.
14584
9ae6bf64
TT
145852020-01-09 Tom Tromey <tom@tromey.com>
14586
14587 PR tui/18932:
14588 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
14589 update_source_window, not print_source_lines.
14590
b2efe70c
AB
145912020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
14592
14593 * tui/tui.c (tui_enable): Register tui hooks after calling
14594 tui_display_main.
14595
5f23a082
CB
145962020-01-09 Christian Biesinger <cbiesinger@google.com>
14597
14598 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
14599
3061113b
SM
146002020-01-08 Simon Marchi <simon.marchi@efficios.com>
14601
14602 * thread.c (print_thread_info_1): Fix indentation.
14603
57d75002
CB
146042020-01-09 Christian Biesinger <cbiesinger@google.com>
14605
14606 * symtab.c (general_symbol_info::compute_and_set_names): Move the
14607 unique_xmalloc_ptr outside the if to always free the demangled name.
14608
6a053cb1
TT
146092020-01-08 Tom Tromey <tromey@adacore.com>
14610
14611 * xcoffread.c (enter_line_range, read_xcoff_symtab)
14612 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
14613 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
14614 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
14615 Remove.
14616 (section_offsets): New typedef.
14617 * symtab.c (fixup_section, get_msymbol_address): Update.
14618 * symmisc.c (dump_msymbols): Update.
14619 * symfile.h (relative_addr_info_to_section_offsets)
14620 (symfile_map_offsets_to_segments): Update.
14621 * symfile.c (build_section_addr_info_from_objfile)
14622 (init_objfile_sect_indices): Update.
14623 (struct place_section_arg): Change type of "offsets".
14624 (place_section): Update.
14625 (relative_addr_info_to_section_offsets): Change type of
14626 "section_offsets". Remove "num_sections" parameter.
14627 (default_symfile_offsets, syms_from_objfile_1)
14628 (set_objfile_default_section_offset): Update.
14629 (reread_symbols): No need to preserve section offsets by hand.
14630 (symfile_map_offsets_to_segments): Change type of "offsets".
14631 * stap-probe.c (relocate_address): Update.
14632 * stabsread.h (process_one_symbol): Update.
14633 * solib-target.c (struct lm_info_target) <offsets>: Change type.
14634 (solib_target_relocate_section_addresses): Update.
14635 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
14636 Update.
14637 * solib-frv.c (frv_relocate_main_executable): Update.
14638 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
14639 * solib-aix.c (solib_aix_get_section_offsets): Change return
14640 type.
14641 (solib_aix_solib_create_inferior_hook): Update.
14642 * remote.c (remote_target::get_offsets): Update.
14643 * psymtab.c (find_pc_sect_psymtab): Update.
14644 * psympriv.h (struct partial_symbol) <address, text_low,
14645 text_high>: Update.
14646 * objfiles.h (obj_section_offset): Update.
14647 (struct objfile) <section_offsets>: Change type.
14648 <num_sections>: Remove.
14649 (objfile_relocate): Update.
14650 * objfiles.c (entry_point_address_query): Update
14651 (relocate_one_symbol): Change type of "section_offsets".
14652 (objfile_relocate1, objfile_relocate1): Change type of
14653 "new_offsets".
14654 (objfile_rebase1): Update.
14655 * mipsread.c (mipscoff_symfile_read): Update.
14656 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
14657 parameter.
14658 * mdebugread.c (parse_symbol): Change type of "section_offsets".
14659 (parse_external, psymtab_to_symtab_1): Update.
14660 * machoread.c (macho_symfile_offsets): Update.
14661 * ia64-tdep.c (ia64_find_unwind_table): Update.
14662 * hppa-tdep.c (read_unwind_info): Update.
14663 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
14664 * dwarf2read.c (create_addrmap_from_index)
14665 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
14666 (process_psymtab_comp_unit_reader, add_partial_symbol)
14667 (add_partial_subprogram, process_full_comp_unit)
14668 (read_file_scope, read_func_scope, read_lexical_block_scope)
14669 (read_call_site_scope, dwarf2_rnglists_process)
14670 (dwarf2_ranges_process, dwarf2_ranges_read)
14671 (dwarf_decode_lines_1, var_decode_location, new_symbol)
14672 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
14673 Update.
14674 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
14675 Update.
14676 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
14677 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
14678 (process_one_symbol): Change type of "section_offsets".
14679 * ctfread.c (get_objfile_text_range): Update.
14680 * coffread.c (coff_symtab_read, enter_linenos)
14681 (process_coff_symbol): Update.
14682 * coff-pe-read.c (add_pe_forwarded_sym): Update.
14683 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
14684
456e800a
TT
146852020-01-08 Tom Tromey <tromey@adacore.com>
14686
14687 * dwarf2read.c (parse_macro_definition): Use std::string.
14688 (parse_macro_definition): Likewise.
14689
6dfa2fc2
TT
146902020-01-08 Tom Tromey <tromey@adacore.com>
14691
14692 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
14693 (ATTR_ALLOC_CHUNK): Remove.
14694
421d1616
TT
146952020-01-08 Tom Tromey <tromey@adacore.com>
14696
14697 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
14698
43816ebc
TT
146992020-01-08 Tom Tromey <tromey@adacore.com>
14700
14701 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
14702 (dwarf2_compute_name, open_dwo_file): Likewise.
14703 (process_enumeration_scope): Use std::vector.
14704 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
14705 (partial_die_info::fixup, dwarf2_start_subfile)
14706 (guess_full_die_structure_name, dwarf2_name): Likewise.
14707 (determine_prefix): Update.
14708 (guess_full_die_structure_name): Make return type const.
14709 (partial_die_full_name): Return unique_xmalloc_ptr.
14710 (DW_FIELD_ALLOC_CHUNK): Remove.
14711
4212d509
TT
147122020-01-07 Tom Tromey <tromey@adacore.com>
14713
14714 PR build/24937:
14715 * stap-probe.c (class stap_static_probe_ops): Add constructor.
14716
06a6207a
JT
147172020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
14718
14719 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
14720
153d79c4
AB
147212020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
14722
14723 * stack.c (print_frame_info): Move disassemble_next_line code
14724 inside source_print block.
14725
66182876
EZ
147262020-01-06 Eli Zaretskii <eliz@gnu.org>
14727
14728 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
14729 gdb/signals.h, as we are now using native signal symbols.
14730
cbfa8581
SV
147312020-01-06 Shahab Vahedi <shahab@synopsys.com>
14732
14733 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
14734 overflow by an early check of content vs threshold.
aac66a4c 14735 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
14736 Likewise.
14737
3f602821
EZ
147382020-01-06 Eli Zaretskii <eliz@gnu.org>
14739
14740 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
14741
a08c904d
JT
147422020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
14743
14744 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
14745 export table if no section contains it's RVA.
14746
89a65580
EZ
147472020-01-06 Eli Zaretskii <eliz@gnu.org>
14748
14749 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
14750
8b7fcda2
HD
147512020-01-06 Hannes Domani <ssbssa@yahoo.de>
14752
14753 * source.c (print_source_lines_base): Set last_line_listed.
14754
a61b4f69
SV
147552020-01-06 Shahab Vahedi <shahab@synopsys.com>
14756
14757 * tui/tui-disasm.c: Remove trailing spaces.
14758
559e7e50
EZ
147592020-01-06 Eli Zaretskii <eliz@gnu.org>
14760 Pedro Alves <palves@redhat.com>
14761
14762 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
14763 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
14764 (windows_gdb_signal_to_target): New function, uses the above
14765 enumeration to convert GDB internal signal codes to equivalent
14766 Windows codes.
14767 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
14768 * windows-nat.c: Include "gdb_wait.h".
14769 (get_windows_debug_event): Extract the fatal exception from the
14770 exit status and convert to the equivalent Posix signal number.
14771 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
14772 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
14773 * gdbsupport/gdb_wait.c: New file, implements
14774 windows_status_to_termsig.
14775 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
14776 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
14777
f2302a34
AB
147782020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
14779
14780 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
14781 show_layout.
14782
6a5206eb
LM
147832020-01-05 Luis Machado <luis.machado@linaro.org>
14784
14785 * aarch64-linux-nat.c
14786 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
14787 and bfd_mach_aarch64.
14788
6ec1d75e
PW
147892020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14790
14791 * ui-file.c (stdio_file::can_emit_style_escape)
14792 (tee_file::can_emit_style_escape): Ensure style is used also on
14793 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
14794 to gdb_stdout.
14795 * main.c (set_gdb_data_directory): Use file style to output the
14796 warning that the given pathname is not a directory.
14797 * top.c (show_history_filename, gdb_safe_append_history)
14798 (show_gdb_datadir): Use file style.
14799
44f81a76
HD
148002020-01-03 Hannes Domani <ssbssa@yahoo.de>
14801
14802 * solib-target.c (struct lm_info_target):
14803 Change offsets to be a unique_xmalloc_ptr.
14804 (solib_target_relocate_section_addresses): Update.
14805
25057eb0
HD
148062020-01-03 Hannes Domani <ssbssa@yahoo.de>
14807
14808 * windows-nat.c (windows_clear_solib): Free so_list linked list.
14809
6e2118f5
BE
148102020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
14811
14812 * MAINTAINERS (Write After Approval): Add myself.
14813
8133c7dc
LM
148142020-01-02 Luis Machado <luis.machado@linaro.org>
14815
14816 * proc-service.c (get_ps_regcache): Remove reference to obsolete
14817 Cell BE architecture.
14818 * target.h (struct target_ops) <thread_architecture>: Likewise.
14819
48189bec
HD
148202020-01-01 Hannes Domani <ssbssa@yahoo.de>
14821
14822 * Makefile.in: Use INSTALL_PROGRAM_ENV.
14823
ead1063b
HD
148242020-01-01 Hannes Domani <ssbssa@yahoo.de>
14825
14826 * MAINTAINERS (Write After Approval): Add myself.
14827
e5d78223
JB
148282020-01-01 Joel Brobecker <brobecker@adacore.com>
14829
14830 * gdbarch.sh: Update copyright year range of generated files.
14831
b811d2c2
JB
148322020-01-01 Joel Brobecker <brobecker@adacore.com>
14833
14834 Update copyright year range in all GDB files.
14835
5f4def5c
JB
148362020-01-01 Joel Brobecker <brobecker@adacore.com>
14837
14838 * copyright.py: Convert to Python 3.
14839
51fd4002
JB
148402020-01-01 Joel Brobecker <brobecker@adacore.com>
14841
14842 * copyright.py: Adapt after move of gnulib directory from gdb
14843 directory to toplevel directory.
14844
5fb651f2
JB
148452020-01-01 Joel Brobecker <brobecker@adacore.com>
14846
14847 * copyright.py (main): Exit if run from the wrong directory.
14848
5dd8bf88
JB
148492020-01-01 Joel Brobecker <brobecker@adacore.com>
14850
14851 * top.c (print_gdb_version): Change copyright year to 2020.
14852
9f71dacb 148532020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 14854
9f71dacb 14855 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 14856
9f71dacb 14857For older changes see ChangeLog-2019.
c906108c
SS
14858\f
14859Local Variables:
14860mode: change-log
14861left-margin: 8
14862fill-column: 74
14863version-control: never
57da7796 14864coding: utf-8
c906108c 14865End:
This page took 3.491007 seconds and 4 git commands to generate.