Document inclusive range in help for "find"
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
3a135a91
TT
12020-10-07 Tom Tromey <tromey@adacore.com>
2
3 PR gdb/16930:
4 * findcmd.c (_initialize_mem_search): Mention that the range is
5 inclusive.
6
4a72de73
TT
72020-10-07 Tom Tromey <tromey@adacore.com>
8
9 * target.h (simple_search_memory): Don't declare.
10 * target.c (simple_search_memory): Move to gdbsupport.
11 (default_search_memory): Update.
12 * remote.c (remote_target::search_memory): Update.
13
a038ffd8
SM
142020-10-07 Simon Marchi <simon.marchi@efficios.com>
15
16 * Makefile.in (COMPILE): Add CXXFLAGS.
17 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
18 (check-headers): Add CXXFLAGS.
19
cc463201
AK
202020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
21
22 * arc-linux-tdep.h: New file.
23 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
24 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
25 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
26 arc_linux_gregset, arc_linux_v2_regset,
27 arc_linux_iterate_over_regset_sections,
28 arc_linux_core_read_description): Implement.
29 (arc_linux_init_osabi): Set iterate_over_regset_sections.
30 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
31 (arc_gdbarch_features_create): Add.
32 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
33
e4bd363f
SV
342020-10-07 Shahab Vahedi <shahab@synopsys.com>
35
36 * arch/arc.h: Rename "arc_gdbarch_features" to
37 "arc_arch_features".
38 * arc-tdep.h: Likewise.
39 * arc-tdep.c: Likewise.
40
b68bef99
TBA
412020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
42
43 * infcmd.c (attach_command): Remove the redundant call to
44 `clear_proceed_status`.
45
4641551a
KR
462020-10-07 Kamil Rytarowski <n54@gmx.com>
47
48 * nat/netbsd-nat.c (write_memory, read_memory): Update.
49
91e5e8db
KR
502020-10-07 Kamil Rytarowski <n54@gmx.com>
51
52 * nat/netbsd-nat.c (write_memory, read_memory): Add.
53 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
54 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
55
64c03bdb
SM
562020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
57
58 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
59 (_initialize_break_catch_sig): Don't allocate array.
60
31a8f60f
AB
612020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
62
63 * symtab.c (find_pc_line): Return unmapped addresses when the
64 requested address is also unmapped.
65
9e6dbd8b
SM
662020-10-05 Simon Marchi <simon.marchi@efficios.com>
67
68 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
69 tui/tui-out.h.
70
a1d217e8
SM
712020-10-05 Simon Marchi <simon.marchi@efficios.com>
72
73 * amd64-windows-tdep.c (amd64_windows_return_value): Use
74 type::is_vector instead of TYPE_VECTOR.
75
7d144117
SM
762020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
77
78 * auto-load.c (auto_load_objfile_script_1): Don't use
79 debugfile_holder as temporary variable when stripping drive
80 letter.
81
cd096ec8
HD
822020-10-05 Hannes Domani <ssbssa@yahoo.de>
83
84 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
85 Add TYPE_CODE_COMPLEX.
86 (amd64_windows_return_value): Fix types returned via XMM0.
87
b58e7f72
AH
882020-10-05 Alan Hayward <alan.hayward@arm.com>
89
90 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
91 AArch64/ARM maintainers.
92
8d378f27
SM
932020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
94
95 * NEWS: Mention set/show debug event-loop.
96
d5519913
TT
972020-10-02 Tom Tromey <tromey@adacore.com>
98
99 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
100 REG_EXTENDED.
101
18b67edc
SM
1022020-10-02 Simon Marchi <simon.marchi@efficios.com>
103
104 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
105 * procfs.c (procfs_inferior_created): Remove.
106 (_initialize_procfs): Don't register procfs_inferior_created.
107
6b01403b
SM
1082020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
109
110 * async-event.c (invoke_async_signal_handlers): Add debug
111 print.
112 (check_async_event_handlers): Likewise.
113 * event-top.c (show_debug_event_loop): New function.
114 (_initialize_event_top): Register "set debug event-loop"
115 setting.
116
ba988419
SM
1172020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
118
119 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
120 * debug.h: Remove.
121 * infrun.c: Include gdbsupport/common-debug.h.
122 * linux-nat.c: Likewise.
123
db20ebdf
SM
1242020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
125
126 * async-event.h (create_async_signal_handler): Add name
127 parameter.
128 (create_async_event_handler): Likewise.
129 * async-event.c (struct async_signal_handler) <name>: New field.
130 (struct async_event_handler) <name>: New field.
131 (create_async_signal_handler): Assign name.
132 (create_async_event_handler): Assign name.
133 * event-top.c (async_init_signals): Pass name when creating
134 handler.
135 * infrun.c (_initialize_infrun): Likewise.
136 * record-btrace.c (record_btrace_push_target): Likewise.
137 * record-full.c (record_full_open): Likewise.
138 * remote-notif.c (remote_notif_state_allocate): Likewise.
139 * remote.c (remote_target::open_1): Likewise.
140 * tui/tui-win.c (tui_initialize_win): Likewise.
141
2554f6f5
SM
1422020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
143
144 * async-event.c (initialize_async_signal_handlers): Pass name to
145 add_file_handler
146 * event-top.c (ui_register_input_event_handler): Likewise.
147 * linux-nat.c (linux_nat_target::async): Likewise.
148 * run-on-main-thread.c (_initialize_run_on_main_thread):
149 Likewise
150 * ser-base.c (reschedule): Likewise.
151 (ser_base_async): Likewise.
152 * tui/tui-io.c: Likewise.
153 * top.h (struct ui) <num>: New field.
154 * top.c (highest_ui_num): New variable.
155 (ui::ui): Initialize num.
156
a7aba266
SM
1572020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
158
159 * observable.h <inferior_created>: Remove parameters. Update all
160 listeners.
161 * inferior.h (post_create_inferior): Remove target parameter.
162 Update all callers.
163
048fde1e 1642020-10-02 Nitika Achra <Nitika.Achra@amd.com>
165
166 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
167 and DW_MACRO_undef_strx.
168 (dwarf_decode_macros): Likewise
169 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
170 which is the value of DW_AT_str_offsets_base.
171 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
172 str_offsets_base.
173
064280be
KR
1742020-10-01 Kamil Rytarowski <n54@gmx.com>
175
176 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
177
6ff33035
KR
1782020-10-01 Kamil Rytarowski <n54@gmx.com>
179
180 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
181 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
182
1eb6eb79
KR
1832020-10-01 Kamil Rytarowski <n54@gmx.com>
184
185 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
186
95eb9e54
TV
1872020-09-30 Tom de Vries <tdevries@suse.de>
188
189 PR symtab/26683
190 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
191
cae21f8e
TT
1922020-09-30 Tom Tromey <tromey@adacore.com>
193
194 * dwarf2/read.c (handle_variant): Use constant_value.
195
529908cb
TT
1962020-09-29 Tom Tromey <tom@tromey.com>
197
198 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
199 (read_file_scope, dwarf2_get_pc_bounds)
200 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
201 (read_structure_type, handle_struct_member_die)
202 (read_enumeration_type, read_array_type, read_set_type)
203 (read_tag_pointer_type, read_tag_reference_type)
204 (read_subroutine_type, read_base_type, read_subrange_type)
205 (read_full_die_1, partial_die_info::read)
206 (partial_die_info::read, by, new_symbol)
207 (dwarf2_const_value_data, dwarf2_const_value_attr)
208 (dump_die_shallow, dwarf2_fetch_constant_bytes)
209 (prepare_one_comp_unit): Update.
210 * dwarf2/attribute.h (DW_UNSND): Remove.
211
c45bc3f8
TT
2122020-09-29 Tom Tromey <tom@tromey.com>
213
214 * dwarf2/read.c (read_func_scope, prototyped_function_p)
215 (read_subroutine_type, partial_die_info::read)
216 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
217 (dwarf2_add_member_fn): Update.
218 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
219 * dwarf2/attribute.c (attribute::as_boolean): New method.
220
23dca5c3
TT
2212020-09-29 Tom Tromey <tom@tromey.com>
222
223 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
224 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
225 method.
226 * dwarf2/attribute.c (attribute::as_virtuality): New method.
227
52c14d11
TT
2282020-09-29 Tom Tromey <tom@tromey.com>
229
230 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
231 the attribute's form.
232
e8e5c158
TT
2332020-09-29 Tom Tromey <tom@tromey.com>
234
235 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
236 (dwarf2_add_member_fn): Update.
237 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
238 * dwarf2/attribute.c (attribute::defaulted): New method, from
239 is_valid_DW_AT_defaulted.
240
d4df075e
TT
2412020-09-29 Tom Tromey <tom@tromey.com>
242
243 * dwarf2/read.c (dw2_get_file_names_reader)
244 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
245 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
246 (dwarf2_symbol_mark_computed): Use as_unsigned.
247 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
248 method.
249 <form_is_section_offset>: Update comment.
250
bf23a268
TT
2512020-09-29 Tom Tromey <tom@tromey.com>
252
253 * dwarf2/read.c (dwarf2_access_attribute): Rename from
254 dwarf2_default_access_attribute. Look up attribute.
255 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
256 Update.
257
7a5f294d
TT
2582020-09-29 Tom Tromey <tom@tromey.com>
259
260 * dwarf2/read.c (skip_one_die): Update.
261 (read_full_die_1): Change how reprocessing is done.
262 (partial_die_info::read): Update.
263 (read_attribute_value): Remove need_reprocess parameter.
264 (read_attribute): Likewise.
265 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
266 New method.
267
36d378cf
TT
2682020-09-29 Tom Tromey <tom@tromey.com>
269
270 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
271 (dwarf2_const_value_attr, dump_die_shallow)
272 (dwarf2_fetch_constant_bytes): Update.
273 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
274 comment.
275 <set_address>: New method.
276 (DW_ADDR): Remove.
277 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
278 (attribute::as_string, attribute::as_address): Add assert.
279
fe56917a
TT
2802020-09-29 Tom Tromey <tom@tromey.com>
281
282 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
283 (read_attribute_reprocess, read_attribute_value): Update.
284 (read_attribute): Clear requires_reprocessing.
285 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
286 form_requires_reprocessing>: New methods.
287 <string_init>: Clear requires_reprocessing.
288 <set_unsigned_reprocess>: New method.
289 <name>: Shrink by one bit.
290 <requires_reprocessing>: New member.
291 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
292 method.
293
414ad644
TT
2942020-09-29 Tom Tromey <tom@tromey.com>
295
296 * dwarf2/read.c (read_attribute_value): Update.
297 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
298 set_unsigned>: New methods.
299 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
300
1bc397c5
TT
3012020-09-29 Tom Tromey <tom@tromey.com>
302
303 * dwarf2/read.c (get_alignment, read_array_order)
304 (read_attribute_value, dwarf2_const_value_attr)
305 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
306 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
307 New methods.
308 (DW_SND): Remove.
309
630ed6b9
TT
3102020-09-29 Tom Tromey <tom@tromey.com>
311
312 * dwarf2/read.c (read_attribute_value, lookup_die_type)
313 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
314 Update.
315 * dwarf2/attribute.h (struct attribute) <as_signature,
316 set_signature>: New methods.
317 (DW_SIGNATURE): Remove.
318
9d2246fc
TT
3192020-09-29 Tom Tromey <tom@tromey.com>
320
321 * dwarf2/read.c (read_call_site_scope)
322 (handle_data_member_location, dwarf2_add_member_fn)
323 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
324 (partial_die_info::read, read_attribute_value)
325 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
326 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
327 (dwarf2_symbol_mark_computed): Update.
328 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
329 methods.
330 (DW_BLOCK): Remove.
331 * dwarf2/attribute.c (attribute::form_is_block): Add
332 DW_FORM_data16.
333
c6481205
TT
3342020-09-29 Tom Tromey <tom@tromey.com>
335
336 * dwarf2/read.c (read_cutu_die_from_dwo)
337 (read_attribute_reprocess, read_attribute_value, read_attribute)
338 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
339 (dwarf2_fetch_constant_bytes): Update.
340 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
341 <set_string_noncanonical, set_string_canonical>: New methods.
342 <string_is_canonical>: Update comment.
343 <canonical_string_p>: Add assert.
344 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
345 * dwarf2/attribute.c (attribute::form_is_string): New method.
346 (attribute::string): Use it.
347
3b64bf15
TT
3482020-09-29 Tom Tromey <tom@tromey.com>
349
350 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
351 (dump_die_shallow): Use canonical_string_p.
352 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
353 method.
354
2c830f54
TT
3552020-09-29 Tom Tromey <tom@tromey.com>
356
357 * dwarf2/read.c (partial_die_info::read)
358 (dwarf2_const_value_attr, anonymous_struct_prefix, )
359 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
360 attribute::as_string.
361
6c412691
TT
3622020-09-29 Tom Tromey <tom@tromey.com>
363
364 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
365 DW_ADDR.
366 (attribute::string): Don't use DW_STRING.
367 (attribute::get_ref_die_offset): Don't use DW_UNSND.
368 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
369
95f982e5
TT
3702020-09-29 Tom Tromey <tom@tromey.com>
371
372 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
373 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
374 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
375 * dwarf2/attribute.h (struct attribute): Rename methods.
376 * dwarf2/attribute.c (attribute::as_address): Rename from
377 value_as_address.
378 (attribute::as_string): Rename from value_as_string.
379
f800b00e
TT
3802020-09-29 Tom Tromey <tom@tromey.com>
381
382 * dwarf2/read.c (partial_die_info::read) <case
383 DW_AT_linkage_name>: Use value_as_string.
384 (dwarf2_string_attr): Use value_as_string.
385 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
386 method.
387 * dwarf2/attribute.c (attribute::value_as_string): New method.
388
de38d64a
PA
3892020-09-29 Pedro Alves <pedro@palves.net>
390
391 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
392 defined before using '#pragma GCC diagnostic' instead of checking
393 __clang__.
394
9aed480c
TT
3952020-09-28 Tom Tromey <tom@tromey.com>
396
397 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
398 (handle_signal_stop): Update.
399 * procfs.c (procfs_target::insert_watchpoint): Update.
400 * target.h (target_have_steppable_watchpoint): Now a function.
401
8a3ecb79
TT
4022020-09-28 Tom Tromey <tom@tromey.com>
403
404 * infrun.c (set_schedlock_func): Update.
405 * target.h (target_can_lock_scheduler): Now a function.
406
55f6301a
TT
4072020-09-28 Tom Tromey <tom@tromey.com>
408
409 * inferior.h (class inferior) <has_execution>: Update.
410 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
411 * valops.c (find_function_in_inferior)
412 (value_allocate_space_in_inferior): Update.
413 * top.c (kill_or_detach): Update.
414 * target.c (target_preopen, set_target_permissions): Update.
415 (target_has_execution_current): Remove.
416 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
417 Update.
418 * solib.c (update_solib_list, reload_shared_libraries): Update.
419 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
420 * solib-dsbt.c (enable_break): Update.
421 * score-tdep.c (score7_fetch_inst): Update.
422 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
423 Update.
424 * remote.c (remote_target::start_remote)
425 (remote_target::remote_check_symbols, remote_target::open_1)
426 (remote_target::remote_detach_1, remote_target::verify_memory)
427 (remote_target::xfer_partial, remote_target::read_description)
428 (remote_target::get_min_fast_tracepoint_insn_len): Update.
429 * record-full.c (record_full_open_1): Update.
430 * record-btrace.c (record_btrace_target_open): Update.
431 * objc-lang.c (lookup_objc_class, lookup_child_selector)
432 (value_nsstring): Update.
433 * linux-thread-db.c (add_thread_db_info)
434 (thread_db_find_new_threads_silently, check_thread_db_callback)
435 (try_thread_db_load_1, record_thread): Update.
436 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
437 Update.
438 * linux-fork.c (checkpoint_command): Update.
439 * infrun.c (set_non_stop, set_observer_mode)
440 (check_multi_target_resumption, for_each_just_stopped_thread)
441 (maybe_remove_breakpoints, normal_stop)
442 (class infcall_suspend_state): Update.
443 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
444 (info_program_command, attach_command): Update.
445 * infcall.c (call_function_by_hand_dummy): Update.
446 * inf-loop.c (inferior_event_handler): Update.
447 * gcore.c (gcore_command, derive_heap_segment): Update.
448 * exec.c (exec_file_command): Update.
449 * eval.c (evaluate_subexp): Update.
450 * compile/compile.c (compile_to_object): Update.
451 * cli/cli-dump.c (restore_command): Update.
452 * breakpoint.c (update_watchpoint)
453 (update_inserted_breakpoint_locations)
454 (insert_breakpoint_locations, get_bpstat_thread): Update.
455 * target.h (target_has_execution): Remove macro.
456 (target_has_execution_current): Don't declare.
457 (target_has_execution): Rename from target_has_execution_1. Add
458 argument default.
459
05374cfd
TT
4602020-09-28 Tom Tromey <tom@tromey.com>
461
462 * mi/mi-main.c (exec_reverse_continue)
463 (mi_cmd_list_target_features): Update.
464 * infrun.c (set_exec_direction_func): Update.
465 * target.c (default_execution_direction): Update.
466 * reverse.c (exec_reverse_once): Update.
467 * target.h (target_can_execute_reverse): Now a function.
468
9dccd06e
TT
4692020-09-28 Tom Tromey <tom@tromey.com>
470
471 * tui/tui-regs.c (tui_get_register)
472 (tui_data_window::show_registers): Update.
473 * thread.c (scoped_restore_current_thread::restore)
474 (scoped_restore_current_thread::scoped_restore_current_thread):
475 Update.
476 * regcache-dump.c (regcache_print): Update.
477 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
478 Update.
479 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
480 * mep-tdep.c (current_me_module, current_options): Update.
481 * linux-thread-db.c (thread_db_load): Update.
482 * infcmd.c (registers_info, info_vector_command)
483 (info_float_command): Update.
484 * ia64-tdep.c (ia64_frame_prev_register)
485 (ia64_sigtramp_frame_prev_register): Update.
486 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
487 * gcore.c (derive_stack_segment): Update.
488 * frame.c (get_current_frame, has_stack_frames): Update.
489 * findvar.c (language_defn::read_var_value): Update.
490 * arm-tdep.c (arm_pc_is_thumb): Update.
491 * target.c (target_has_registers): Rename from
492 target_has_registers_1.
493 * target.h (target_has_registers): Remove macro.
494 (target_has_registers): Rename from target_has_registers_1.
495
841de120
TT
4962020-09-28 Tom Tromey <tom@tromey.com>
497
498 * windows-tdep.c (tlb_make_value): Update.
499 * tui/tui-regs.c (tui_data_window::show_registers): Update.
500 * thread.c (scoped_restore_current_thread::restore)
501 (scoped_restore_current_thread::scoped_restore_current_thread)
502 (thread_command): Update.
503 * stack.c (backtrace_command_1, frame_apply_level_command)
504 (frame_apply_all_command, frame_apply_command): Update.
505 * infrun.c (siginfo_make_value, restore_infcall_control_state):
506 Update.
507 * gcore.c (derive_stack_segment): Update.
508 * frame.c (get_current_frame, has_stack_frames): Update.
509 * auxv.c (info_auxv_command): Update.
510 * ada-tasks.c (ada_build_task_list): Update.
511 * target.c (target_has_stack): Rename from target_has_stack_1.
512 * target.h (target_has_stack): Remove macro.
513 (target_has_stack): Rename from target_has_stack_1.
514
a739972c
TT
5152020-09-28 Tom Tromey <tom@tromey.com>
516
517 * target.c (target_has_memory): Rename from target_has_memory_1.
518 * tui/tui-regs.c (tui_data_window::show_registers): Update.
519 * thread.c (scoped_restore_current_thread::restore)
520 (scoped_restore_current_thread::scoped_restore_current_thread):
521 Update.
522 * frame.c (get_current_frame, has_stack_frames): Update.
523 * target.h (target_has_memory): Remove macro.
524 (target_has_memory): Rename from target_has_memory_1.
525
5b8a4776
TT
5262020-09-28 Tom Tromey <tom@tromey.com>
527
528 * target.c (target_has_all_memory_1): Remove.
529 * target.h (target_has_all_memory): Remove define.
530 (target_has_all_memory_1): Don't declare.
531
bd356ec6
SM
5322020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
533
534 * ser-base.c: Adjust comments formatting.
535
2c72d5e5
TT
5362020-09-27 Tom Tromey <tom@tromey.com>
537
538 PR tui/25342:
539 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
540
35a98237
TT
5412020-09-27 Tom Tromey <tom@tromey.com>
542
543 PR tui/25342:
544 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
545
9e820dec
TT
5462020-09-27 Tom Tromey <tom@tromey.com>
547
548 * unittests/tui-selftests.c: Update.
549 * tui/tui-winsource.h (struct tui_source_window_base)
550 <extra_margin, show_line_number, refresh_pad>: New methods.
551 <m_max_length, m_pad>: New members.
552 (tui_copy_source_line): Update.
553 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
554 first_col, line_width, ndigits parameters. Add length.
555 (tui_source_window_base::show_source_line): Write to pad. Line
556 number now 0-based.
557 (tui_source_window_base::refresh_pad): New method.
558 (tui_source_window_base::show_source_content): Write to pad. Call
559 refresh_pad.
560 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
561 not refill.
562 (tui_source_window_base::update_exec_info): Call
563 show_line_number.
564 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
565 method.
566 <m_digits>: New member.
567 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
568 and m_max_length.
569 (tui_source_window::show_line_number): New method.
570 * tui/tui-io.h (tui_puts): Fix comment.
571 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
572 m_max_length.
573
c15c15c8
TT
5742020-09-27 Tom Tromey <tom@tromey.com>
575
576 * tui/tui-winsource.c
577 (tui_source_window_base::set_is_exec_point_at): Don't call
578 show_source_line.
579
149830c1
TT
5802020-09-27 Tom Tromey <tom@tromey.com>
581
582 * python/py-tui.c (class tui_py_window) <refresh_window>: New
583 method.
584 <erase>: Update.
585 <cursor_x, cursor_y>: Remove.
586 <m_inner_window>: New member.
587 (tui_py_window::rerender): Create inner window.
588 (tui_py_window::output): Write to inner window.
589
8f9929bb
GR
5902020-09-26 Gareth Rees <grees@undo.io> (tiny change)
591
592 PR python/26586
593 * cli/cli-script.c (execute_control_commands): don't set
594 instream to nullptr here as this breaks the from_tty argument
595 to gdb.execute in Python.
596 (execute_user_command): set instream to nullptr here instead.
597
956bdb59
SM
5982020-09-25 Simon Marchi <simon.marchi@efficios.com>
599
600 * infrun.h (infrun_debug_printf): Fix formatting.
601 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
602
3b93626b
SJ
6032020-09-25 Saagar Jha <saagar@saagarjha.com>
604
605 * compile/compile-object-load.h (struct munmap_list): Add
606 explicitly-defined move constructor.
607
b551a89f
TT
6082020-09-24 Tom Tromey <tromey@adacore.com>
609
610 PR tui/26638:
611 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
612 method.
613 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
614 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
615 (tui_prev_win): Rewrite.
616
99bb393f
HD
6172020-09-23 Hannes Domani <ssbssa@yahoo.de>
618
619 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
620 in WOW64 processes as SIGINT.
621 * nat/windows-nat.h: Make wow64_process a shared variable.
622 * windows-nat.c: Remove static wow64_process variable.
623
20a5fcbd
TT
6242020-09-23 Tom Tromey <tom@tromey.com>
625
626 PR symtab/25470:
627 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
628 offset and bit size.
629 * printcmd.c (print_scalar_formatted): Handle zero-length
630 integer.
631 (print_scalar_formatted): Use bit_size_differs_p.
632 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
633 constant.
634 (union type_specific): <int_stuff>: New member.
635 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
636 methods.
637 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
638 TYPE_SPECIFIC_FIELD.
639 (recursive_dump_type, copy_type_recursive): Update.
640 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
641 DW_AT_data_bit_offset.
642
bac51ab7
TT
6432020-09-23 Tom Tromey <tom@tromey.com>
644
645 * utils.h (class gdb_argv): Add move operators.
646 <append>: New methods.
647 * compile/compile.c (build_argc_argv): Remove.
648 (compile_args_argc): Remove.
649 (compile_args_argv): Change type.
650 (set_compile_args): Simplify.
651 (append_args): Remove.
652 (filter_args): Remove argcp parameter.
653 (get_args): Return gdb_argv. Simplify.
654 (compile_to_object): Update.
655
92677124
TT
6562020-09-23 Tom Tromey <tom@tromey.com>
657
658 * compile/compile-object-run.c (do_module_cleanup)
659 <~do_module_cleanup> :Remove.
660 (do_module_cleanup): Update.
661 * compile/compile-object-load.h (struct munmap_list): Add move
662 assignment operator.
663 <source_file>: Now a std::string.
664 <munmap_list>: Rename. No longer a pointer.
665 * compile/compile-object-load.c (struct setup_sections_data): Add
666 constructor.
667 <setup_one_section>: Declare.
668 <munmap_list>: Move earlier.
669 <m_bfd>: New member.
670 <m_last_size, m_last_section_first, m_last_prot,
671 m_last_max_alignment>: Rename, add initializers where needed.
672 (setup_sections_data::setup_one_section): Rename from
673 setup_sections. Update.
674 (compile_object_load): Update. Don't use bfd_map_over_sections.
675
e616f60a
TT
6762020-09-23 Tom Tromey <tom@tromey.com>
677
678 * compile/compile-object-run.c (struct do_module_cleanup): Add
679 parameters to constructor. Update destructor.
680 <source_file, scope, scope_data, out_value_type, out_value_addr,
681 munmap_list_head, objfile_name_string>: Remove.
682 <module>: New member.
683 (do_module_cleanup): Update.
684 (compile_object_run): Update.
685
e947a848
TT
6862020-09-23 Tom Tromey <tom@tromey.com>
687
688 * compile/compile.c (eval_compile_command): Update.
689 * compile/compile-object-run.h (compile_object_run): Take a
690 compile_module_up.
691 * compile/compile-object-run.c (compile_object_run): Take a
692 compile_module_up.
693 * compile/compile-object-load.h (struct compile_module): Add
694 constructor, destructor.
695 (compile_module_up): New typedef.
696 (compile_object_load): Return compile_object_up.
697 * compile/compile-object-load.c (compile_object_load): Return
698 compile_module_up.
699
0dbf6ee6
TT
7002020-09-23 Tom Tromey <tom@tromey.com>
701
702 * compile/compile-object-run.c (struct do_module_cleanup): Add
703 constructor, destructor.
704 <objfile_name_string>: Don't use struct hack.
705 (do_module_cleanup): Use delete.
706 (compile_object_run): Use new.
707
ebe824f5
TT
7082020-09-23 Tom Tromey <tom@tromey.com>
709
710 * compile/compile-cplus-types.c
711 (compile_cplus_convert_struct_or_union): Use std::vector.
712 (compile_cplus_convert_func): Likewise.
713 * compile/compile-c-types.c (convert_func): Use std::vector.
714
5dd918d9
TT
7152020-09-21 Tom Tromey <tromey@adacore.com>
716
717 * sparc-tdep.c (sparc32_skip_prologue): Use
718 skip_prologue_using_sal.
719
5486c517
TT
7202020-09-19 Tom Tromey <tom@tromey.com>
721
722 * symfile.c (add_section_size_callback): Remove.
723 (load_one_section): Rename from load_section_callback. Change
724 parameters.
725 (generic_load): Use foreach.
726
8a6bb1d1
TT
7272020-09-19 Tom Tromey <tom@tromey.com>
728
729 * exec.c (add_to_section_table): Remove.
730 (build_section_table): Use foreach.
731
08f93a1a
TT
7322020-09-19 Tom Tromey <tom@tromey.com>
733
734 * elfread.c (elf_locate_sections): Change parameters.
735 (elf_symfile_read): Use foreach.
736
03cd72b8
TT
7372020-09-19 Tom Tromey <tom@tromey.com>
738
739 * cli/cli-dump.c (struct callback_data): Remove.
740 (restore_one_section): Rename from restore_section_callback.
741 Change parameters.
742 (restore_binary_file): Change parameters.
743 (restore_command): Use foreach.
744
f4f2b85f
TT
7452020-09-19 Tom Tromey <tom@tromey.com>
746
747 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
748 (gcore_copy_callback): Likewise.
749 (gcore_memory_sections): Use foreach.
750
b35c1d1c
TT
7512020-09-19 Tom Tromey <tom@tromey.com>
752
753 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
754 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
755 parameters.
756 (generic_elf_osabi_sniffer): Use foreach.
757 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
758 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
759
5bb6e9dd
TT
7602020-09-19 Tom Tromey <tom@tromey.com>
761
762 * dwarf2/read.c (locate_dwz_sections): Change parameters.
763 (dwarf2_get_dwz_file): Use foreach.
764 (dwarf2_locate_dwo_sections): Change parameters.
765 (open_and_init_dwo_file): Use foreach.
766 (dwarf2_locate_common_dwp_sections): Change parameters.
767 (open_and_init_dwp_file): Use foreach.
768
ad7277da
TT
7692020-09-19 Tom Tromey <tom@tromey.com>
770
771 * symfile.h: (find_lowest_section): Don't declare.
772 * symfile.c (find_lowest_section): Now static. Change
773 parameters.
774 (struct place_section_arg): Remove.
775 (place_section): Change parameters.
776 (addr_info_make_relative): Use foreach.
777 (symfile_dummy_outputs): Remove.
778 (default_symfile_relocate): Use foreach.
779
cb814f2e
TT
7802020-09-19 Tom Tromey <tom@tromey.com>
781
782 * objfiles.c (add_to_objfile_sections): Rename from
783 add_to_objfile_sections_full.
784 (add_to_objfile_sections): Remove.
785 (build_objfile_section_table): Use foreach.
786
3cabfd26
TT
7872020-09-19 Tom Tromey <tom@tromey.com>
788
789 * stap-probe.c (get_stap_base_address_1): Remove.
790 (get_stap_base_address): Use foreach.
791
1ce51eb5
TT
7922020-09-19 Tom Tromey <tom@tromey.com>
793
794 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
795 parameters.
796 (gdb_bfd_close_or_warn): Use foreach.
797
a190fabb
TT
7982020-09-19 Tom Tromey <tom@tromey.com>
799
800 * corelow.c (add_to_thread_list): Change parameters.
801 (core_target_open): Use foreach.
802
cafb0d81
TT
8032020-09-19 Tom Tromey <tom@tromey.com>
804
805 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
806 existing function.
807
c8d5abea
AB
8082020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
809
810 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
811 for arrays.
812
6d816919
AB
8132020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
814
815 * eval.c: Remove 'f-lang.h' include.
816 (value_f90_subarray): Moved to f-lang.c.
817 (eval_call): Renamed to...
818 (evaluate_subexp_do_call): ...this, is no longer static, header
819 comment moved into header file.
820 (evaluate_funcall): Update call to eval_call.
821 (skip_undetermined_arglist): Moved to f-lang.c.
822 (fortran_value_subarray): Likewise.
823 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
824 moved to evaluate_subexp_f.
825 (calc_f77_array_dims): Moved to f-lang.c
826 * expprint.c (print_subexp_funcall): New function.
827 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
828 moved to print_subexp_f, OP_FUNCALL uses new function.
829 (dump_subexp_body_funcall): New function.
830 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
831 moved to dump_subexp_f, OP_FUNCALL uses new function.
832 * expression.h (evaluate_subexp_do_call): Declare.
833 * f-lang.c (value_f90_subarray): Moved from eval.c.
834 (skip_undetermined_arglist): Likewise.
835 (calc_f77_array_dims): Likewise.
836 (fortran_value_subarray): Likewise.
837 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
838 (operator_length_f): Likewise.
839 (print_subexp_f): Likewise.
840 (dump_subexp_body_f): Likewise.
841 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
842 declaration of this operation to here.
843 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
844 support moved to operator_length_f.
845 * parser-defs.h (dump_subexp_body_funcall): Declare.
846 (print_subexp_funcall): Declare.
847 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
848 fortran-operator.def.
849
8c37706a
AB
8502020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
851
852 * eval.c (fortran_value_subarray): New function, content is taken
853 from...
854 (evaluate_subexp_standard): ...here, in two places. Now arrays
855 and strings both call the new function.
856 (calc_f77_array_dims): Add header comment, handle strings.
857
14f9473c
VC
8582020-09-18 Victor Collod <vcollod@nvidia.com>
859
860 PR gdb/26635
861 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
862 (i386_analyze_prologue): Call i386_skip_endbr.
863
b60cea74
TT
8642020-09-18 Tom Tromey <tromey@adacore.com>
865
866 * windows-nat.c (struct windows_nat_target) <wait>: Update.
867 (windows_nat_target::wait): Update.
868 * target/wait.h (enum target_wait_flag): New. Use
869 DEF_ENUM_FLAGS_TYPE.
870 * target/target.h (target_wait): Change type of options.
871 * target.h (target_options_to_string, default_target_wait):
872 Update.
873 (struct target_ops) <wait>: Change type of options.
874 * target.c (target_wait, default_target_wait, do_option): Change
875 type of "options".
876 (target_options_to_string): Likewise.
877 * target-delegates.c: Rebuild.
878 * target-debug.h (target_debug_print_target_wait_flags): Rename
879 from target_debug_print_options.
880 * sol-thread.c (class sol_thread_target) <wait>: Update.
881 (sol_thread_target::wait): Update.
882 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
883 (rs6000_nat_target::wait): Update.
884 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
885 Update.
886 (remote_target::wait_ns, remote_target::wait_as): Change type of
887 "options".
888 (remote_target::wait): Update.
889 * remote-sim.c (struct gdbsim_target) <wait>: Update.
890 (gdbsim_target::wait): Update.
891 * record-full.c (class record_full_base_target) <wait>: Update.
892 (record_full_wait_1): Change type of "options".
893 (record_full_base_target::wait): Update.
894 * record-btrace.c (class record_btrace_target) <wait>: Update.
895 (record_btrace_target::wait): Update.
896 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
897 Update.
898 (ravenscar_thread_target::wait): Update.
899 * procfs.c (class procfs_target) <wait>: Update.
900 (procfs_target::wait): Update.
901 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
902 * obsd-nat.c (obsd_nat_target::wait): Update.
903 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
904 (nto_procfs_target::wait): Update.
905 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
906 * nbsd-nat.c (nbsd_wait): Change type of "options".
907 (nbsd_nat_target::wait): Update.
908 * linux-thread-db.c (class thread_db_target) <wait>: Update.
909 (thread_db_target::wait): Update.
910 * linux-nat.h (class linux_nat_target) <wait>: Update.
911 * linux-nat.c (linux_nat_target::wait): Update.
912 (linux_nat_wait_1): Update.
913 * infrun.c (do_target_wait_1, do_target_wait): Change type of
914 "options".
915 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
916 * inf-ptrace.c (inf_ptrace_target::wait): Update.
917 * go32-nat.c (struct go32_nat_target) <wait>: Update.
918 (go32_nat_target::wait): Update.
919 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
920 * gnu-nat.c (gnu_nat_target::wait): Update.
921 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
922 * fbsd-nat.c (fbsd_nat_target::wait): Update.
923 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
924 * darwin-nat.c (darwin_nat_target::wait): Update.
925 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
926 (bsd_uthread_target::wait): Update.
927 * aix-thread.c (class aix_thread_target) <wait>: Update.
928 (aix_thread_target::wait): Update.
929
0295dde6
AB
9302020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
931
932 * compile/compile-object-run.c (create_copied_type_recursive): New
933 function.
934 (compile_object_run): Use new function.
935
d3483b43
JT
9362020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
937
938 * NEWS: Mention x86_64 Cygwin core file support.
939
e7d612ad
JT
9402020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
941
942 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
943 (core_process_module_section): Handle NOTE_INFO_MODULE64.
944
aff9d387
JT
9452020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
946
62a5151b
JT
947 * windows-tdep.h: Add prototypes.
948 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
949 (i386_windows_core_pid_to_str): Move and rename ...
950 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
951 (windows_core_pid_to_str): ... and here.
952 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
953
9542020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
955 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
956 (amd64_windows_init_abi_common): ... and register.
957
7d155da3
JT
9582020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
959
960 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
961 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
962
e8ef12b9
PA
9632020-09-18 Pedro Alves <pedro@palves.net>
964
965 PR gdb/26631
966 * thread.c (thread_find_command): Switch inferior before calling
967 target methods.
968
c1e1314d
TT
9692020-09-17 Tom Tromey <tromey@adacore.com>
970
971 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
972 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
973 (tdesc_arch_data_up): New typedef.
974 (tdesc_use_registers, tdesc_data_alloc): Update.
975 (tdesc_data_cleanup): Don't declare.
976 * target-descriptions.c (tdesc_data_alloc): Return a
977 tdesc_arch_data_up.
978 (tdesc_arch_data_deleter::operator()): Rename from
979 tdesc_data_cleanup. Change argument type.
980 (tdesc_use_registers): Change early_data to an rvalue reference.
981 (tdesc_use_registers): Don't use delete.
982 * sparc-tdep.c (sparc32_gdbarch_init): Update.
983 * s390-tdep.c (s390_gdbarch_init): Update.
984 * rx-tdep.c (rx_gdbarch_init): Update.
985 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
986 * riscv-tdep.c (riscv_gdbarch_init): Update.
987 * or1k-tdep.c (or1k_gdbarch_init): Update.
988 * nios2-tdep.c (nios2_gdbarch_init): Update.
989 * nds32-tdep.c (nds32_gdbarch_init): Update.
990 * mips-tdep.c (mips_gdbarch_init): Update.
991 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
992 * m68k-tdep.c (m68k_gdbarch_init): Update.
993 * i386-tdep.c (i386_gdbarch_init): Update.
994 * arm-tdep.c (arm_gdbarch_init): Update.
995 * arc-tdep.c (arc_tdesc_init): Update.
996 (arc_gdbarch_init): Update.
997 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
998
0363df3d
HD
9992020-09-17 Hannes Domani <ssbssa@yahoo.de>
1000
1001 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
1002 for WOW64 processes.
1003
280a9412
TT
10042020-09-17 Tom Tromey <tom@tromey.com>
1005
1006 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
1007
6108fd18
TT
10082020-09-17 Tom Tromey <tom@tromey.com>
1009
1010 * value.c (preserve_values): Update.
1011 * python/py-type.c (save_objfile_types): Update.
1012 * guile/scm-type.c (save_objfile_types): Update.
1013 * gdbtypes.h (create_copied_types_hash): Return htab_up.
1014 * gdbtypes.c (create_copied_types_hash): Return htab_up.
1015 * compile/compile-object-run.c (compile_object_run): Update.
1016
fa9b1164
TT
10172020-09-17 Tom Tromey <tom@tromey.com>
1018
1019 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
1020 Remove.
1021 <m_table>: Now htab_up.
1022 * typeprint.c (typedef_hash_table::recursively_update)
1023 (typedef_hash_table::add_template_parameters)
1024 (typedef_hash_table::typedef_hash_table): Update.
1025 (typedef_hash_table::~typedef_hash_table): Remove.
1026 (typedef_hash_table::typedef_hash_table)
1027 (typedef_hash_table::find_global_typedef)
1028 (typedef_hash_table::find_typedef): Update.
1029
eb53f105
TT
10302020-09-17 Tom Tromey <tom@tromey.com>
1031
1032 * target-descriptions.c (tdesc_use_registers): Use htab_up.
1033
7a8a5d47
TT
10342020-09-17 Tom Tromey <tom@tromey.com>
1035
1036 * linespec.c (class decode_compound_collector)
1037 <~decode_compound_collector>: Remove.
1038 <m_unique_syms>: Now htab_up.
1039 (decode_compound_collector::operator ()): Update.
1040 (class symtab_collector) <~symtab_collector>: Remove.
1041 <m_symtab_table>: Now htab_up.
1042 (symtab_collector::operator ()): Update.
1043
99032cfc
TT
10442020-09-17 Tom Tromey <tom@tromey.com>
1045
1046 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
1047 (filename_seen_cache::clear): Update.
1048 (~filename_seen_cache): Remove.
1049 (filename_seen_cache::seen): Update.
1050 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
1051 htab_up.
1052 <~filename_seen_cache>: Remove.
1053 <traverse>: Update.
1054
32580f6d
TT
10552020-09-17 Tom Tromey <tom@tromey.com>
1056
1057 * completer.c (completion_tracker::discard_completions)
1058 (completion_tracker::~completion_tracker)
1059 (completion_tracker::maybe_add_completion)
1060 (completion_tracker::remove_completion)
1061 (completion_tracker::recompute_lowest_common_denominator)
1062 (completion_tracker::build_completion_result): Update.
1063 * completer.h (class completion_tracker) <have_completions>:
1064 Update.
1065 <m_entries_hash>: Now htab_up.
1066
c1fb9836
TT
10672020-09-17 Tom Tromey <tom@tromey.com>
1068
1069 * breakpoint.c (ambiguous_names_p): Use htab_up.
1070
88f07206
TT
10712020-09-17 Tom Tromey <tom@tromey.com>
1072
1073 * auto-load.c (struct auto_load_pspace_info)
1074 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
1075 <loaded_script_files, loaded_script_texts>: Change type to
1076 htab_up.
1077 (~auto_load_pspace_info) Remove.
1078 (init_loaded_scripts_info, maybe_add_script_file)
1079 (maybe_add_script_text, auto_load_info_scripts): Update.
1080
9519b2ee
TT
10812020-09-17 Tom Tromey <tromey@adacore.com>
1082
1083 * c-exp.y (name_obstack): Now static.
1084
d2cd4113
CC
10852020-09-17 Chungyi Chi <demonic@csie.io>
1086
1087 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
1088
b650a282
SM
10892020-09-16 Simon Marchi <simon.marchi@efficios.com>
1090
1091 * breakpoint.h (init_catchpoint): Change int parameter to bool.
1092 (add_solib_catchpoint): Likewise.
1093 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
1094 to bool.
1095 (add_solib_catchpoint): Change int parameter/variable to bool.
1096 (catch_load_or_unload): Likewise.
1097 (init_catchpoint): Likewise.
1098 (create_fork_vfork_event_catchpoint): Likewise.
1099 (catch_fork_command_1): Likewise.
1100 (catch_exec_command_1): Likewise.
1101
4d0bcfcf
SM
11022020-09-16 Simon Marchi <simon.marchi@efficios.com>
1103
1104 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
1105 Change instance_flags to m_instance_flags.
1106
fe830662
TT
11072020-09-16 Tom Tromey <tromey@adacore.com>
1108
1109 PR gdb/26598:
1110 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
1111
fe5ddfc3
JB
11122020-09-16 John Baldwin <jhb@FreeBSD.org>
1113
1114 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
1115 PL_FLAG_EXEC.
1116 (fbsd_nat_target::insert_exec_catchpoint)
1117 (fbsd_nat_target::remove_exec_catchpoint): Always define.
1118 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
1119 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
1120
e911c666
JB
11212020-09-16 John Baldwin <jhb@FreeBSD.org>
1122
1123 * configure.ac: Remove check for kinfo_getvmmap().
1124 * configure, config.in: Regenerate.
1125 * fbsd-nat.c (fbsd_read_mapping): Remove
1126 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
1127 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
1128 kinfo_get_vmmap() are always present.
1129
1f17d372
JB
11302020-09-16 John Baldwin <jhb@FreeBSD.org>
1131
1132 * fbsd-nat.c: Always include support for
1133 TARGET_OBJECT_SIGNAL_INFO.
1134
bcb1da7f
JB
11352020-09-16 John Baldwin <jhb@FreeBSD.org>
1136
1137 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
1138 sysctl and remove procfs fallback.
1139
5515f729
JB
11402020-09-16 John Baldwin <jhb@FreeBSD.org>
1141
1142 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
1143 * fbsd-nat.h: Likewise.
1144
da1df1db
TBA
11452020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1146
1147 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
1148 argument.
1149
0e25e767
AB
11502020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1151
1152 * ada-lang.c (ada_language_data): Delete.
1153 (ada_language): Remove references to ada_language_data.
1154 * c-lang.c (c_language_data): Delete.
1155 (c_language): Remove references to c_language_data.
1156 (cplus_language_data): Delete.
1157 (cplus_language): Remove references to cplus_language_data.
1158 (asm_language_data): Delete.
1159 (asm_language): Remove references to asm_language_data.
1160 (minimal_language_data): Delete.
1161 (minimal_language): Remove references to minimal_language_data.
1162 * d-lang.c (d_language_data): Delete.
1163 (d_language): Remove references to d_language_data.
1164 * f-lang.c (f_language_data): Delete.
1165 (f_language): Remove references to f_language_data.
1166 * go-lang.c (go_language_data): Delete.
1167 (go_language): Remove references to go_language_data.
1168 * language.c (unknown_language_data): Delete.
1169 (unknown_language): Remove references to unknown_language_data.
1170 (auto_language_data): Delete.
1171 (auto_language): Remove references to auto_language_data.
1172 * language.h (language_data): Delete struct.
1173 (language_defn): No longer inherit from language_data.
1174 * m2-lang.c (m2_language_data): Delete.
1175 (m2_language): Remove references to m2_language_data.
1176 * objc-lang.c (objc_language_data): Delete.
1177 (objc_language): Remove references to objc_language_data.
1178 * opencl-lang.c (opencl_language_data): Delete.
1179 (opencl_language): Remove references to opencl_language_data.
1180 * p-lang.c (pascal_language_data): Delete.
1181 (pascal_language): Remove references to pascal_language_data.
1182 * rust-lang.c (rust_language_data): Delete.
1183 (rust_language): Remove references to rust_language_data.
1184
b7c6e27d
AB
11852020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1186
1187 * ada-lang.c (ada_language_data): Remove la_op_print_tab
1188 initializer.
1189 (ada_language::opcode_print_table): New member function.
1190 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
1191 (c_language::opcode_print_table): New member function.
1192 (cplus_language_data): Remove la_op_print_tab initializer.
1193 (cplus_language::opcode_print_table): New member function.
1194 (asm_language_data): Remove la_op_print_tab initializer.
1195 (asm_language::opcode_print_table): New member function.
1196 (minimal_language_data): Remove la_op_print_tab initializer.
1197 (minimal_language::opcode_print_table): New member function.
1198 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
1199 (d_language::opcode_print_table): New member function.
1200 * expprint.c (print_subexp_standard): Update call to
1201 opcode_print_table.
1202 (op_string): Likewise.
1203 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
1204 (f_language::opcode_print_table): New member function.
1205 * go-lang.c (go_language_data): Remove la_op_print_tab
1206 initializer.
1207 (go_language::opcode_print_table): New member function.
1208 * language.c (unknown_language_data): Remove la_op_print_tab
1209 initializer.
1210 (unknown_language::opcode_print_table): New member function.
1211 (auto_language_data): Remove la_op_print_tab initializer.
1212 (auto_language::opcode_print_table): New member function.
1213 * language.h (language_data): Remove la_op_print_tab field.
1214 (language_defn::opcode_print_table): Declare new member function.
1215 * m2-lang.c (m2_language_data): Remove la_op_print_tab
1216 initializer.
1217 (m2_language::opcode_print_table): New member function.
1218 * objc-lang.c (objc_language_data): Remove la_op_print_tab
1219 initializer.
1220 (objc_language::opcode_print_table): New member function.
1221 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
1222 initializer.
1223 (opencl_language::opcode_print_table): New member function.
1224 * p-lang.c (pascal_language_data): Remove la_op_print_tab
1225 initializer.
1226 (pascal_language::opcode_print_table): New member function.
1227 * rust-lang.c (rust_language_data): Remove la_op_print_tab
1228 initializer.
1229 (rust_language::opcode_print_table): New member function.
1230
5aba6ebe
AB
12312020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1232
1233 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
1234 (ada_language::expression_ops): New member function.
1235 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
1236 (c_language::expression_ops): New member function.
1237 (cplus_language_data): Remove la_exp_desc initializer.
1238 (cplus_language::expression_ops): New member function.
1239 (asm_language_data): Remove la_exp_desc initializer.
1240 (asm_language::expression_ops): New member function.
1241 (minimal_language_data): Remove la_exp_desc initializer.
1242 (minimal_language::expression_ops): New member function.
1243 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
1244 (d_language::expression_ops): New member function.
1245 * eval.c (evaluate_subexp): Update call to expression_ops.
1246 * expprint.c (print_subexp): Likewise.
1247 (op_name): Likewise.
1248 (dump_subexp_body): Likewise.
1249 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
1250 (f_language::expression_ops): New member function.
1251 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
1252 (go_language::expression_ops): New member function.
1253 * language.c (language_defn::expression_ops): New function.
1254 (unknown_language_data): Remove la_exp_desc initializer.
1255 (auto_language_data): Likewise.
1256 * language.h (language_data): Remove la_exp_desc field.
1257 (language_defn::expression_ops): Declare new member function.
1258 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
1259 (m2_language::expression_ops): New member function.
1260 * objc-lang.c (objc_language_data): Remove la_exp_desc
1261 initializer.
1262 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
1263 initializer.
1264 (opencl_language::expression_ops): New member function.
1265 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
1266 * parse.c (operator_length): Update call to expression_ops.
1267 (exp_iterate): Likewise.
1268 * rust-lang.c (rust_language_data): Remove la_exp_desc
1269 initializer.
1270 (ruse_language::expression_ops): New member function.
1271
b63a3f3f
AB
12722020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1273
1274 * ada-lang.c (ada_language_data): Remove la_varobj_ops
1275 initializer.
1276 (ada_language::varobj_ops): New member function.
1277 * c-lang.c (c_language_data): Remove la_varobj_ops
1278 initializer.
1279 (cplus_language_data): Likewise.
1280 (cplus_language::varobj_ops): New member function.
1281 (asm_language_data): Remove la_varobj_ops initializer.
1282 (minimal_language_data): Likewise.
1283 * d-lang.c (d_language_data): Likewise.
1284 * f-lang.c (f_language_data): Likewise.
1285 * go-lang.c (go_language_data): Likewise.
1286 * language.c (language_defn::varobj_ops): New function.
1287 (unknown_language_data): Remove la_varobj_ops
1288 initializer.
1289 (auto_language_data): Likewise.
1290 * language.h (language_data): Remove la_varobj_ops field.
1291 (language_defn::varobj_ops): Declare new member function.
1292 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
1293 * objc-lang.c (objc_language_data): Likewise.
1294 * opencl-lang.c (opencl_language_data): Likewise.
1295 * p-lang.c (pascal_language_data): Likewise.
1296 * rust-lang.c (rust_language_data): Likewise.
1297 * varobj.c (varobj_create): Update call to varobj_ops.
1298 * varobj.h (default_varobj_ops): Delete define.
1299
1ac14a04
AB
13002020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1301
1302 * ada-lang.c (ada_language_data): Remove la_macro_expansion
1303 initializer.
1304 * c-lang.c (c_language_data): Likewise.
1305 (c_language::macro_expansion): New member function.
1306 (cplus_language_data): Likewise.
1307 (cplus_language::macro_expansion): New member function.
1308 (asm_language_data): Likewise.
1309 (asm_language::macro_expansion): New member function.
1310 (minimal_language_data): Likewise.
1311 (minimal_language::macro_expansion): New member function.
1312 * d-lang.c (d_language_data): Remove la_macro_expansion
1313 initializer.
1314 * f-lang.c (f_language_data): Likewise.
1315 * go-lang.c (go_language_data): Likewise.
1316 * language.c (unknown_language_data): Likewise.
1317 (auto_language_data): Likewise.
1318 * language.h (language_data): Remove la_macro_expansion field.
1319 (language_defn::macro_expansion): New member function.
1320 * m2-lang.c (m2_language_data): Remove la_macro_expansion
1321 initializer.
1322 * objc-lang.c (objc_language_data): Likewise.
1323 (objc_language::macro_expansion): New member function.
1324 * opencl-lang.c (opencl_language_data): Likewise.
1325 (opencl_language::macro_expansion): New member function.
1326 * p-lang.c (pascal_language_data): Remove la_macro_expansion
1327 initializer.
1328 * rust-lang.c (rust_language_data): Likewise.
1329 * symtab.c (default_collect_symbol_completion_matches_break_on):
1330 Update call to macro_expansion.
1331
3a3440fb
AB
13322020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1333
1334 * ada-lang.c (ada_language_data): Remove la_array_ordering
1335 initializer.
1336 * c-lang.c (c_language_data): Likewise.
1337 (cplus_language_data): Likewise.
1338 (asm_language_data): Likewise.
1339 (minimal_language_data): Likewise.
1340 * d-lang.c (d_language_data): Likewise.
1341 * dwarf2/read.c (read_array_order): Update for call to
1342 array_ordering.
1343 * f-lang.c (f_language_data): Remove la_array_ordering
1344 initializer.
1345 (f_language::array_ordering): New member function.
1346 * go-lang.c (go_language_data): Remove la_array_ordering
1347 initializer.
1348 * language.c (unknown_language_data): Likewise.
1349 (auto_language_data): Likewise.
1350 * language.h (language_data): Delete la_array_ordering field.
1351 (language_defn::array_ordering): New member function.
1352 * m2-lang.c (m2_language_data): Remove la_array_ordering
1353 initializer.
1354 * objc-lang.c (objc_language_data): Likewise.
1355 * opencl-lang.c (opencl_language_data): Likewise.
1356 * p-lang.c (pascal_language_data): Likewise.
1357 * rust-lang.c (rust_language_data): Likewise.
1358
0d201fa4
AB
13592020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1360
1361 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
1362 initializer.
1363 * c-lang.c (c_language_data): Likewise.
1364 (cplus_language_data): Likewise.
1365 (asm_language_data): Likewise.
1366 (minimal_language_data): Likewise.
1367 * d-lang.c (d_language_data): Likewise.
1368 * f-lang.c (f_language_data): Likewise.
1369 (f_language::case_sensitivity): New member function.
1370 * go-lang.c (go_language_data): Remove la_case_sensitivity
1371 initializer.
1372 * language.c (enum case_mode): Moved here from language.h.
1373 (case_mode): Make static.
1374 (show_case_command): Update for case_sensitivity being a method.
1375 (set_case_command): Likewise.
1376 (set_range_case): Likewise.
1377 (unknown_language_data): Remove la_case_sensitivity initializer.
1378 (auto_language_data): Likewise.
1379 * language.h (case_mode): Delete, move enum declaration to
1380 language.c.
1381 (language_data): Delete la_case_sensitivity field.
1382 (language_defn::case_sensitivity): New member function.
1383 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
1384 initializer.
1385 * objc-lang.c (objc_language_data): Likewise.
1386 * opencl-lang.c (opencl_language_data): Likewise.
1387 * p-lang.c (pascal_language_data): Likewise.
1388 * rust-lang.c (rust_language_data): Likewise.
1389
efdf6a73
AB
13902020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1391
1392 * ada-lang.c (ada_language_data): Remove la_range_check
1393 initializer.
1394 * c-lang.c (c_language_data): Likewise.
1395 (cplus_language_data): Likewise.
1396 (asm_language_data): Likewise.
1397 (minimal_language_data): Likewise.
1398 * d-lang.c (d_language_data): Likewise.
1399 * f-lang.c (f_language_data): Likewise.
1400 (f_language::range_checking_on_by_default): New member function.
1401 * go-lang.c (go_language_data): Remove la_range_check initializer.
1402 * language.c (enum range_mode): Moved here from language.h.
1403 (range_mode): Made static.
1404 (show_range_command): Update to use
1405 range_checking_on_by_default.
1406 (set_range_command): Likewise.
1407 (set_range_case): Likewise.
1408 (unknown_language_data): Remove la_range_check initializer.
1409 (auto_language_data): Likewise.
1410 * language.h (range_mode): Delete. Enum definition moved to
1411 language.c.
1412 (language_data): Remove la_range_check field.
1413 (language_defn::range_checking_on_by_default): New member
1414 function.
1415 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
1416 (m2_language::range_checking_on_by_default): New member function.
1417 * objc-lang.c (objc_language_data): Remove la_range_check
1418 initializer.
1419 * opencl-lang.c (opencl_language_data): Likewise.
1420 * p-lang.c (pascal_language_data): Likewise.
1421 (pascal_language::range_checking_on_by_default): New member
1422 function.
1423 * rust-lang.c (rust_language_data): Remove la_range_check
1424 initializer.
1425 (rust_language::range_checking_on_by_default): New member
1426 function.
1427
bf92aec5
AB
14282020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1429
1430 * dwarf2/read.c (dwarf2_physname): Remove special case for
1431 language_go.
1432 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
1433 member function.
1434
d3355e4d
AB
14352020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1436
1437 * ada-lang.c (ada_language_data): Remove
1438 la_store_sym_names_in_linkage_form_p initializer.
1439 (ada_language::store_sym_names_in_linkage_form_p): New member
1440 function.
1441 * c-lang.c (c_language_data): Remove
1442 la_store_sym_names_in_linkage_form_p initializer.
1443 (c_language::store_sym_names_in_linkage_form_p): New member
1444 function.
1445 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
1446 initializer.
1447 (asm_language_data): Likewise.
1448 (asm_language::store_sym_names_in_linkage_form_p): New member
1449 function.
1450 (minimal_language_data): Remove
1451 la_store_sym_names_in_linkage_form_p initializer.
1452 (minimal_language::store_sym_names_in_linkage_form_p): New member
1453 function.
1454 * d-lang.c (d_language_data): Remove
1455 la_store_sym_names_in_linkage_form_p initializer.
1456 * dwarf2/read.c (dwarf2_physname): Update call to
1457 store_sym_names_in_linkage_form_p.
1458 * f-lang.c (f_language_data): Remove
1459 la_store_sym_names_in_linkage_form_p initializer.
1460 * go-lang.c (go_language_data): Remove
1461 la_store_sym_names_in_linkage_form_p initializer.
1462 * language.c (unknown_language_data): Remove
1463 la_store_sym_names_in_linkage_form_p initializer.
1464 (unknown_language::store_sym_names_in_linkage_form_p): New member
1465 function.
1466 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
1467 initializer.
1468 (auto_language::store_sym_names_in_linkage_form_p): New member
1469 function.
1470 * language.h (language_data): Remove
1471 la_store_sym_names_in_linkage_form_p member variable.
1472 (language_defn::store_sym_names_in_linkage_form_p): New member
1473 function.
1474 * m2-lang.c (m2_language_data): Remove
1475 la_store_sym_names_in_linkage_form_p initializer.
1476 * objc-lang.c (objc_language_data): Likewise.
1477 * opencl-lang.c (opencl_language_data): Likewise.
1478 * p-lang.c (pascal_language_data): Likewise.
1479 * rust-lang.c (rust_language_data): Likewise.
1480
22c12a6c
AB
14812020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1482
1483 * ada-lang.c (ada_language_data): Remove string_lower_bound
1484 initializer.
1485 * c-lang.c (c_language_data): Likewise.
1486 (cplus_language_data): Likewise.
1487 (asm_language_data): Likewise.
1488 (minimal_language_data): Likewise.
1489 * d-lang.c (d_language_data): Likewise.
1490 * f-lang.c (f_language_data): Likewise.
1491 * go-lang.c (go_language_data): Likewise.
1492 * language.c (unknown_language_data): Likewise.
1493 (auto_language_data): Likewise.
1494 * language.h (language_data): Remove string_lower_bound field.
1495 (language_defn::string_lower_bound): New member function.
1496 * m2-lang.c (m2_language_data): Remove string_lower_bound
1497 initializer.
1498 (m2_language::string_lower_bound): New member function.
1499 * objc-lang.c (objc_language_data): Remove string_lower_bound
1500 initializer.
1501 * opencl-lang.c (opencl_language_data): Likewise.
1502 * p-lang.c (pascal_language_data): Likewise.
1503 * rust-lang.c (rust_language_data): Likewise.
1504 * valops.c (value_cstring): Update call to string_lower_bound.
1505 (value_string): Likewise.
1506 * value.c (allocate_repeated_value): Likewise.
1507
1c236ddd
AB
15082020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1509
1510 * valops.c (value_repeat): Fix incorrect argument name in comment.
1511
67bd3fd5
AB
15122020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1513
1514 * ada-lang.c (ada_language_data): Remove c_style_arrays
1515 initializer.
1516 (ada_language::c_style_arrays_p): New member fuction.
1517 * c-lang.c (c_language_data): Remove c_style_arrays
1518 initializer.
1519 (cplus_language_data): Likewise.
1520 (asm_language_data): Likewise.
1521 (minimal_language_data): Likewise.
1522 * d-lang.c (d_language_data): Likewise.
1523 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
1524 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
1525 (f_language::c_style_arrays_p): New member function.
1526 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
1527 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
1528 * language.c (unknown_language_data): Remove c_style_arrays
1529 initializer.
1530 (auto_language_data): Likewise.
1531 * language.h (language_data): Remove c_style_arrays field.
1532 (language_defn::c_style_arrays_p): New member function.
1533 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
1534 (m2_language::c_style_arrays_p): New member function.
1535 * objc-lang.c (objc_language_data): Remove c_style_arrays
1536 initializer.
1537 * opencl-lang.c (opencl_language_data): Likewise.
1538 * p-lang.c (pascal_language_data): Likewise.
1539 * rust-lang.c (rust_language_data): Likewise.
1540 * valarith.c (value_subscript): Update call to c_style_arrays_p,
1541 and update local variable to a bool.
1542 * valops.c (value_cast): Update call to c_style_arrays_p.
1543 (value_array): Likewise.
1544 * value.c (coerce_array): Likewise.
1545
85967615
AB
15462020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1547
1548 * ada-lang.c (ada_language_data): Remove la_language initializer.
1549 * c-lang.c (c_language_data): Likewise.
1550 (cplus_language_data): Likewise.
1551 (asm_language_data): Likewise.
1552 (minimal_language_data): Likewise.
1553 * d-lang.c (d_language_data): Likewise.
1554 * f-lang.c (f_language_data): Likewise.
1555 * go-lang.c (go_language_data): Likewise.
1556 * language.c (unknown_language_data): Likewise.
1557 (auto_language_data): Likewise.
1558 * language.h (language_data): Remove la_language field.
1559 (language_defn::language_defn): Initialise la_language field.
1560 (language_defn::la_language): New member variable.
1561 * m2-lang.c (m2_language_data): Remove la_language field.
1562 * objc-lang.c (objc_language_data): Likewise.
1563 * opencl-lang.c (opencl_language_data): Likewise.
1564 * p-lang.c (pascal_language_data): Likewise.
1565 * rust-lang.c (rust_language_data): Likewise.
1566
e171d6f1
AB
15672020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1568
1569 * ada-lang.c (ada_extensions): Delete, moved into
1570 ada_language::filename_extensions.
1571 (ada_language_data): Remove la_filename_extensions initializer.
1572 (ada_language::filename_extensions): New member function.
1573 * c-lang.c (c_extensions): Delete, moved into
1574 c_language::filename_extensions.
1575 (c_language_data): Remove la_filename_extensions initializer.
1576 (c_language::filename_extensions): New member function.
1577 (cplus_extensions): Delete, moved into
1578 cplus_language::filename_extensions.
1579 (cplus_language_data): Remove la_filename_extensions initializer.
1580 (cplus_language::filename_extensions): New member function.
1581 (asm_extensions): Delete, moved into
1582 asm_language::filename_extensions.
1583 (asm_language_data): Remove la_filename_extensions initializer.
1584 (asm_language::filename_extensions): New member function.
1585 (minimal_language_data): Remove la_filename_extensions
1586 initializer.
1587 * d-lang.c (d_extensions): Delete, moved into
1588 d_language::filename_extensions.
1589 (d_language_data): Remove la_filename_extensions initializer.
1590 (d_language::filename_extensions): New member function.
1591 * f-lang.c (f_extensions): Delete, moved into
1592 f_language::filename_extensions.
1593 (f_language_data): Remove la_filename_extensions initializer.
1594 (f_language::filename_extensions): New member function.
1595 * go-lang.c (go_language_data): Remove la_filename_extensions
1596 initializer.
1597 * language.c (add_set_language_command): Update now that
1598 filename_extensions returns a vector.
1599 (unknown_language_data): Remove la_filename_extensions
1600 initializer.
1601 (auto_language_data): Likewise.
1602 * language.h (language_data): Remove la_filename_extensions field.
1603 (language_defn::filename_extensions): New member function.
1604 * m2-lang.c (m2_language_data): Remove la_filename_extensions
1605 initializer.
1606 * objc-lang.c (objc_extensions): Delete, moved into
1607 objc_language::filename_extensions.
1608 (objc_language_data): Remove la_filename_extensions initializer.
1609 (objc_language::filename_extensions): New member function.
1610 * opencl-lang.c (opencl_language_data): Remove
1611 la_filename_extensions initializer.
1612 * p-lang.c (pascal_extensions): Delete, moved into
1613 pascal_language::filename_extensions.
1614 (pascal_language_data): Remove la_filename_extensions initializer.
1615 (pascal_language::filename_extensions): New member function.
1616 * rust-lang.c (rust_extensions): Delete, moved into
1617 rust_language::filename_extensions.
1618 (rust_language_data): Remove la_filename_extensions initializer.
1619 (rust_language::filename_extensions): New member function.
1620 * symfile.c (add_filename_language): Add new assert.
1621
6f7664a9
AB
16222020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1623
1624 * ada-lang.c (ada_language_data): Remove la_name and
1625 la_natural_name initializers.
1626 (ada_language::name): New member function.
1627 (ada_language::natural_name): New member function.
1628 * c-lang.c (c_language_data): Remove la_name and
1629 la_natural_name initializers.
1630 (c_language::name): New member function.
1631 (c_language::natural_name): New member function.
1632 (cplus_language_data): Remove la_name and
1633 la_natural_name initializers.
1634 (cplus_language::name): New member function.
1635 (cplus_language::natural_name): New member function.
1636 (asm_language_data): Remove la_name and
1637 la_natural_name initializers.
1638 (asm_language::name): New member function.
1639 (asm_language::natural_name): New member function.
1640 (minimal_language_data): Remove la_name and
1641 la_natural_name initializers.
1642 (minimal_language::name): New member function.
1643 (minimal_language::natural_name): New member function.
1644 * compile/compile.c (compile_to_object): Update call to
1645 lanugage_defn::name.
1646 * d-lang.c (d_language_data): Remove la_name and
1647 la_natural_name initializers.
1648 (d_language::name): New member function.
1649 (d_language::natural_name): New member function.
1650 * expprint.c (print_subexp_standard): Update call to
1651 language_defn::name.
1652 (dump_raw_expression): Likewise
1653 (dump_prefix_expression): Likewise.
1654 * f-lang.c (f_language_data): Remove la_name and
1655 la_natural_name initializers.
1656 (f_language::name): New member function.
1657 (f_language::natural_name): New member function.
1658 * go-lang.c (go_language_data): Remove la_name and
1659 la_natural_name initializers.
1660 (go_language::name): New member function.
1661 (go_language::natural_name): New member function.
1662 * language.c (show_language_command): Update call to
1663 language_defn::name.
1664 (set_language_command): Likewise.
1665 (language_enum): Likewise.
1666 (language_str): Likewise.
1667 (add_set_language_command): Likewise, use
1668 language_defn::natural_name in the doc string.
1669 (unknown_language_data): Remove la_name and
1670 la_natural_name initializers.
1671 (unknown_language::name): New member function.
1672 (unknown_language::natural_name): New member function.
1673 (auto_language_data): Remove la_name and
1674 la_natural_name initializers.
1675 (auto_language::name): New member function.
1676 (auto_language::natural_name): New member function.
1677 (language_lookup_primitive_type_as_symbol): Update call to
1678 language_defn::name.
1679 * language.h (language_data): Remove la_name and la_natural_name
1680 member variables.
1681 (language_defn::name): New member function.
1682 (language_defn::natural_name): New member function.
1683 * m2-lang.c (m2_language_data): Remove la_name and
1684 la_natural_name initializers.
1685 (m2_language::name): New member function.
1686 (m2_language::natural_name): New member function.
1687 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
1688 language_defn::natural_name.
1689 * objc-lang.c (objc_language_data): Remove la_name and
1690 la_natural_name initializers.
1691 (objc_language::name): New member function.
1692 (objc_language::natural_name): New member function.
1693 * opencl-lang.c (opencl_language_data): Remove la_name and
1694 la_natural_name initializers.
1695 (opencl_language::name): New member function.
1696 (opencl_language::natural_name): New member function.
1697 * p-lang.c (pascal_language_data): Remove la_name and
1698 la_natural_name initializers.
1699 (pascal_language::name): New member function.
1700 (pascal_language::natural_name): New member function.
1701 * rust-lang.c (rust_language_data): Remove la_name and
1702 la_natural_name initializers.
1703 (rust_language::name): New member function.
1704 (rust_language::natural_name): New member function.
1705 * symtab.c (lookup_language_this): Update call to
1706 language_defn::name.
1707
5bae7c4e
AB
17082020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1709
1710 * ada-lang.c (ada_language_data): Remove la_name_of_this
1711 initializer.
1712 * ax-gdb.c (gen_expr): Update call to name_of_this.
1713 * c-exp.y (classify_name): Likewise.
1714 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
1715 (cplus_language_data): Likewise.
1716 (cplus_language::name_of_this): New member function.
1717 (asm_language_data): Remove la_name_of_this initializer.
1718 (minimal_language_data): Likewise.
1719 * d-lang.c (d_language_data): Likewise.
1720 (d_language::name_of_this): New member function.
1721 * expprint.c (print_subexp_standard): Update call to name_of_this.
1722 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
1723 * go-lang.c (go_language_data): Likewise.
1724 * language.c (unknown_language_data): Likewise.
1725 (unknown_language::name_of_this): New member function.
1726 (auto_language_data): Remove la_name_of_this initializer.
1727 (auto_language::name_of_this): New member function.
1728 * language.h (language_data): Delete la_name_of_this member
1729 variable.
1730 (language_defn::name_of_this): New member function.
1731 * m2-lang.c (m2_language_data): Remove la_name_of_this
1732 initializer.
1733 * objc-lang.c (objc_language_data): Likewise.
1734 (objc_language::name_of_this): New member function.
1735 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
1736 initializer.
1737 * p-lang.c (pascal_language_data): Likewise.
1738 (pascal_language::name_of_this): New member function.
1739 * rust-lang.c (rust_language_data): Remove la_name_of_this
1740 initializer.
1741 * symtab.c (lookup_language_this): Update call to name_of_this.
1742 (lookup_symbol_aux): Likewise.
1743 * valops.c (value_of_this): Likewise.
1744
22e3f3ed
AB
17452020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1746
1747 * ada-lang.c (ada_language_data): Remove
1748 la_struct_too_deep_ellipsis initializer.
1749 (ada_language::struct_too_deep_ellipsis): New member function.
1750 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
1751 initializer.
1752 (cplus_language_data): Likewise.
1753 (asm_language_data): Likewise.
1754 (minimal_language_data): Likewise.
1755 * cp-valprint.c (cp_print_value): Update call to
1756 struct_too_deep_ellipsis.
1757 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
1758 initializer.
1759 * f-lang.c (f_language_data): Likewise.
1760 (f_language::struct_too_deep_ellipsis): New member function.
1761 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
1762 initializer.
1763 * language.c (unknown_language_data): Likewise.
1764 (auto_language_data): Likewise.
1765 * language.h (language_data): Delete la_struct_too_deep_ellipsis
1766 member variable.
1767 (language_defn::struct_too_deep_ellipsis): New member function.
1768 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
1769 initializer.Q
1770 * objc-lang.c (objc_language_data): Likewise.
1771 * opencl-lang.c (opencl_language_data): Likewise.
1772 * p-lang.c (pascal_language_data): Likewise.
1773 * rust-lang.c (rust_language_data): Likewise.
1774 * valprint.c (val_print_check_max_depth): Update call to
1775 struct_too_deep_ellipsis.
1776
ed29e1c7
FW
17772020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
1778
1779 * MAINTAINERS (Write After Approval): Add myself.
1780
12d8f940
TT
17812020-09-15 Tom Tromey <tom@tromey.com>
1782
1783 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
1784 Remove.
1785
6b5a7bc7
TT
17862020-09-15 Tom Tromey <tom@tromey.com>
1787
1788 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
1789 and TYPE_CODE_METHODPTR cases.
1790 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
1791 (c_value_print_inner): Update.
1792 * valprint.c (generic_value_print_memberptr): New function, from
1793 c_value_print_memberptr.
1794 (generic_value_print): Use it. Call cplus_print_method_ptr.
1795
47f0e2ff
TT
17962020-09-15 Tom Tromey <tromey@adacore.com>
1797
1798 * python/python-internal.h (PyInt_FromLong): Remove define.
1799 * python/py-value.c (convert_value_from_python): Use
1800 gdb_py_object_from_longest.
1801 * python/py-type.c (typy_get_code): Use
1802 gdb_py_object_from_longest.
1803 * python/py-symtab.c (salpy_get_line): Use
1804 gdb_py_object_from_longest.
1805 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
1806 gdb_py_object_from_longest.
1807 * python/py-record.c (recpy_gap_reason_code): Use
1808 gdb_py_object_from_longest.
1809 * python/py-record-btrace.c (recpy_bt_insn_size)
1810 (recpy_bt_func_level, btpy_list_count): Use
1811 gdb_py_object_from_longest.
1812 * python/py-infthread.c (gdbpy_create_ptid_object): Use
1813 gdb_py_object_from_longest. Fix error handling.
1814 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
1815 gdb_py_object_from_longest.
1816 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
1817 gdb_py_object_from_longest.
1818 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
1819 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
1820 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
1821
512116ce
TT
18222020-09-15 Tom Tromey <tromey@adacore.com>
1823
1824 * python/python.c (gdbpy_parameter_value): Use
1825 gdb_py_object_from_ulongest.
1826
4ab1029c
TT
18272020-09-15 Tom Tromey <tromey@adacore.com>
1828
1829 * python/py-infevents.c (create_register_changed_event_object):
1830 Use gdb_py_object_from_longest.
1831 * python/py-exitedevent.c (create_exited_event_object): Use
1832 gdb_py_object_from_longest.
1833
062534d4
TT
18342020-09-15 Tom Tromey <tromey@adacore.com>
1835
1836 * python/python.c (gdbpy_parameter_value): Use
1837 gdb_py_object_from_longest.
1838 * python/py-type.c (convert_field, typy_range): Use
1839 gdb_py_object_from_longest.
1840 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
1841 gdb_py_object_from_longest.
1842 * python/py-lazy-string.c (stpy_get_length): Use
1843 gdb_py_object_from_longest.
1844 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
1845 gdb_py_object_from_longest.
1846 * python/py-infevents.c (create_memory_changed_event_object): Use
1847 gdb_py_object_from_longest.
1848 * python/py-inferior.c (infpy_get_num): Use
1849 gdb_py_object_from_longest.
1850 (infpy_get_pid): Likewise.
1851
d1cab987
TT
18522020-09-15 Tom Tromey <tromey@adacore.com>
1853
1854 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
1855 defines.
1856 * python/py-value.c (valpy_long): Use
1857 gdb_py_object_from_ulongest.
1858 * python/py-symtab.c (salpy_get_pc): Use
1859 gdb_py_object_from_ulongest.
1860 (salpy_get_last): Likewise.
1861 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
1862 gdb_py_object_from_ulongest.
1863 * python/py-lazy-string.c (stpy_get_address): Use
1864 gdb_py_object_from_ulongest.
1865 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
1866 * python/py-arch.c (archpy_disassemble): Use
1867 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
1868 error handling.
1869
4bde49dc
TT
18702020-09-15 Tom Tromey <tromey@adacore.com>
1871
1872 * python/python-internal.h (gdb_py_long_from_longest): Remove
1873 defines.
1874 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
1875 * python/py-type.c (convert_field, typy_get_sizeof): Use
1876 gdb_py_object_from_longest.
1877 * python/py-record-btrace.c (btpy_list_index): Use
1878 gdb_py_object_from_longest.
1879
37431074
TT
18802020-09-15 Tom Tromey <tromey@adacore.com>
1881
1882 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
1883 * python/py-record.c (recpy_element_number): Use
1884 gdb_py_object_from_longest.
1885 (recpy_gap_number): Likewise.
1886
cbe25684
TT
18872020-09-15 Tom Tromey <tromey@adacore.com>
1888
1889 * top.c (ui::ui): Update.
1890 (highest_ui_num): Remove.
1891 * top.h (struct ui) <num>: Remove.
1892
db92ac45
TT
18932020-09-15 Tom Tromey <tromey@adacore.com>
1894
1895 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
1896 * ui-style.c (ansi_regex_text): Now array.
1897 * rust-exp.y (number_regex_text): Now array.
1898 * linespec.c (linespec_quote_characters): Now array.
1899 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
1900 Now arrays.
1901
d2b31b67
SM
19022020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1903
1904 * debuginfod-support.c (debuginfod_client_deleter): New.
1905 (debuginfod_client_up): New.
1906 (debuginfod_init): Return debuginfod_client_up.
1907 (debuginfod_source_query): Adjust.
1908 (debuginfod_debuginfo_query): Adjust.
1909
3246bd8e
SM
19102020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1911
1912 * debuginfod-support.c (debuginfod_source_query): Use
1913 make_unique_xstrdup.
1914
10242f36
SM
19152020-09-14 Simon Marchi <simon.marchi@efficios.com>
1916
1917 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
1918 with `type::instance_flags`.
1919
e1044e6a
MM
19202020-09-14 Michael Mullin <masmullin@gmail.com>
1921
1922 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
1923 Remove baton parameter.
1924
04902b09
PA
19252020-09-14 Pedro Alves <pedro@palves.net>
1926
1927 * Makefile.in (SELFTESTS_SRCS): Add
1928 unittests/enum-flags-selftests.c.
1929 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
1930 btrace_function_flags instead of enum btrace_function_flag.
1931 * compile/compile-c-types.c (convert_qualified): Use
1932 enum_flags::raw.
1933 * compile/compile-cplus-symbols.c (convert_one_symbol)
1934 (convert_symbol_bmsym):
1935 * compile/compile-cplus-types.c (compile_cplus_convert_method)
1936 (compile_cplus_convert_struct_or_union_methods)
1937 (compile_cplus_instance::convert_qualified_base):
1938 * go-exp.y (parse_string_or_char): Add cast to int.
1939 * unittests/enum-flags-selftests.c: New file.
1940 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
1941 type to btrace_thread_flags from btrace_thread_flag.
1942 (record_btrace_cancel_resume, record_btrace_step_thread): Change
1943 local's type to btrace_thread_flags from btrace_thread_flag. Add
1944 cast in DEBUG call.
1945
69896a2c
PA
19462020-09-14 Pedro Alves <pedro@palves.net>
1947
1948 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
1949 * gdbtypes.c (address_space_name_to_int): Rename to ...
1950 (address_space_name_to_type_instance_flags): ... this.
1951 (address_space_int_to_name): Rename to ...
1952 (address_space_type_instance_flags_to_name): ... this.
1953 * gdbtypes.h (address_space_name_to_int): Rename to ...
1954 (address_space_name_to_type_instance_flags): ... this.
1955 (address_space_int_to_name): Rename to ...
1956 (address_space_type_instance_flags_to_name): ... this.
1957 * type-stack.c (type_stack::insert): Adjust to rename.
1958 * type-stack.h (type_stack::insert): Likewise.
1959
314ad88d
PA
19602020-09-14 Pedro Alves <pedro@palves.net>
1961 Andrew Burgess <andrew.burgess@embecosm.com>
1962
1963 * avr-tdep.c (avr_address_class_type_flags): Return
1964 type_instance_flags.
1965 (avr_address_class_type_flags_to_name): Take a
1966 type_instance_flags.
1967 (avr_address_class_name_to_type_flags): Return bool and take a
1968 type_instance_flags.
1969 * d-lang.c (build_d_types): Use type::set_instance_flags.
1970 * ft32-tdep.c (ft32_address_class_type_flags): Return
1971 type_instance_flags.
1972 (ft32_address_class_type_flags_to_name): Take a
1973 type_instance_flags.
1974 (ft32_address_class_name_to_type_flags): Return bool and take a
1975 type_instance_flags.
1976 (ft32_gdbarch_init): Use type::set_instance_flags.
1977 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
1978 * gdbarch.h, gdbarch.c: Regenerate.
1979 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
1980 (address_class_name_to_type_flags): Use type_instance_flags and
1981 bool.
1982 * gdbtypes.c (address_space_name_to_int)
1983 (address_space_int_to_name, make_qualified_type): Use
1984 type_instance_flags.
1985 (make_qualified_type): Use type_instance_flags and
1986 type::set_instance_flags.
1987 (make_type_with_address_space, make_cv_type, make_vector_type)
1988 (check_typedef): Use type_instance_flags.
1989 (recursive_dump_type): Cast type_instance_flags to unsigned for
1990 printing.
1991 (copy_type_recursive): Use type::set_instance_flags.
1992 (gdbtypes_post_init): Use type::set_instance_flags.
1993 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
1994 <m_instance_flags>: ... this.
1995 <instance_flags, set_instance_flags>: New methods.
1996 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
1997 (SET_TYPE_INSTANCE_FLAGS): New.
1998 (address_space_name_to_int, address_space_int_to_name)
1999 (make_type_with_address_space): Pass flags using
2000 type_instance_flags instead of int.
2001 * stabsread.c (cleanup_undefined_types_noname): Use
2002 type::set_instance_flags.
2003 * s390-tdep.c (s390_address_class_type_flags): Return
2004 type_instance_flags.
2005 (s390_address_class_type_flags_to_name): Take a
2006 type_instance_flags.
2007 (s390_address_class_name_to_type_flags): Return bool and take a
2008 type_instance_flags.
2009 * type-stack.c (type_stack::follow_types): Use
2010 type_instance_flags.
2011 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
2012
27087b7f
TT
20132020-09-14 Tom Tromey <tromey@adacore.com>
2014
2015 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
2016 * x86-tdep.c (x86_is_thunk_register_name)
2017 (x86_in_indirect_branch_thunk): Update.
2018 * sparc64-tdep.c (sparc64_fpu_register_names)
2019 (sparc64_cp0_register_names, sparc64_register_names)
2020 (sparc64_pseudo_register_names): Now const.
2021 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
2022 cp0_registers_num>: Now const.
2023 * sparc-tdep.c (sparc_core_register_names)
2024 (sparc32_fpu_register_names, sparc32_cp0_register_names)
2025 (sparc32_pseudo_register_names): Now const.
2026 (validate_tdesc_registers): Update.
2027 * rust-lang.c (rust_extensions): Now const.
2028 * p-lang.c (p_extensions): Now const.
2029 * objc-lang.c (objc_extensions): Now const.
2030 * nto-tdep.c (nto_thread_state_str): Now const.
2031 * moxie-tdep.c (moxie_register_names): Now const.
2032 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
2033 Now const.
2034 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
2035 (mips_linux_reg_names): Now const.
2036 (mips_gdbarch_init): Update.
2037 * microblaze-tdep.c (microblaze_register_names): Now const.
2038 * m68k-tdep.c (m68k_register_names): Now const.
2039 * m32r-tdep.c (m32r_register_names): Now const.
2040 * ia64-tdep.c (ia64_register_names): Now const.
2041 * i386-tdep.h (struct gdbarch_tdep) <register_names,
2042 ymmh_register_names, ymm16h_regnum, mpx_register_names,
2043 k_register_names, zmmh_register_names, xmm_avx512_register_names,
2044 ymm_avx512_register_names, pkeys_register_names>: Now const.
2045 * i386-tdep.c (i386_register_names, i386_zmm_names)
2046 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
2047 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
2048 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
2049 * f-lang.c (f_extensions): Now const.
2050 * d-lang.c (d_extensions): Now const.
2051 * csky-tdep.c (csky_register_names): Now const.
2052 * charset.c (default_charset_names, charset_enum): Now const.
2053 (_initialize_charset): Update.
2054 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
2055 const.
2056 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
2057 (bsd_uthread_solib_loaded): Update.
2058 (bsd_uthread_state): Now const.
2059 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
2060 (amd64_ymm_avx512_names, amd64_ymmh_names)
2061 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
2062 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
2063 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
2064 (amd64_dword_names): Now const.
2065 * agent.c (can_use_agent_enum): Now const.
2066 * ada-tasks.c (task_states, long_task_states): Now const.
2067 * ada-lang.c (known_runtime_file_name_patterns)
2068 (known_auxiliary_function_name_patterns, attribute_names)
2069 (standard_exc, ada_extensions): Now const.
2070
89806626
SM
20712020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2072
2073 * bcache.h (struct bcache) <bcache>: Remove constructor.
2074 <m_hash_function, m_compare_function>: Remove.
2075 <~bcache>: Make virtual.
2076 <compare>: Remove static method, introduce virtual method.
2077 <default_hash>: Remove.
2078 <hash>: New virtual method.
2079 * bcache.c (bcache::expand_hash_table): Update.
2080 (bcache::insert): Update.
2081 (bcache::hash): New.
2082 (bcache::compare): Update comment and parameter names.
2083 * gdbtypes.c (types_deeply_equal): Update.
2084 * psymtab.h (struct psymbol_bcache): New struct.
2085 (class psymtab_storage) <psymtab_storage>: Make default.
2086 <psymbol_cache>: Change type to psymbol_bcache.
2087 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
2088 (psymbol_hash): Change to...
2089 (psymbol_bcache::hash): ... this.
2090 (psymbol_compare): Change to...
2091 (psymbol_bcache::compare): ... this.
2092
677c92fe
SM
20932020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2094
2095 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
2096 checking for initial lwp.
2097
3eba3a01
TT
20982020-09-14 Tom Tromey <tromey@adacore.com>
2099
2100 * m68k-tdep.c (m68k_extract_return_value): Use
2101 pointer_result_regnum.
2102 (m68k_store_return_value): Likewise.
2103 (m68k_reg_struct_return_p): Handle vectors and arrays.
2104 (m68k_return_value): Handle arrays.
2105 (m68k_svr4_return_value): Fix single-element aggregate handling.
2106 Handle long double. Adjust for embedded ABI.
2107 (m68k_svr4_init_abi): Set pointer_result_regnum.
2108 (m68k_embedded_init_abi): New function.
2109 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
2110 (m68k_osabi_sniffer): New function.
2111 (_initialize_m68k_tdep): Register osabi sniffer.
2112 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
2113 member.
2114
33f4dd48
SM
21152020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2116
2117 * xml-support.c (xml_fetch_content_from_file): Replace xfree
2118 with gdb::unique_xmalloc_ptr<char>.
2119
8400a90d
SM
21202020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2121
2122 * xml-support.h (xml_fetch_another): Change type to be a
2123 function_view.
2124 (xml_process_xincludes): Remove baton parameter.
2125 (xml_fetch_content_from_file): Change baton parameter to
2126 dirname.
2127 * xml-support.c (struct xinclude_parsing_data)
2128 <xinclude_parsing_data>: Remove baton parameter.
2129 <fetcher_baton>: Remove.
2130 (xinclude_start_include): Adjust.
2131 (xml_process_xincludes): Adjust.
2132 (xml_fetch_content_from_file): Replace baton parameter with
2133 dirname.
2134 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
2135 (xml_init_syscalls_info): Use a lambda.
2136 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
2137 (file_read_description_xml): Use a lambda.
2138 (fetch_available_features_from_target): Change baton parameter
2139 to target_ops.
2140 (target_read_description_xml): Use a lambda.
2141 (target_fetch_description_xml): Use a lambda.
2142 (string_read_description_xml): Update.
2143
04f5bab2
SM
21442020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2145
2146 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
2147 uses with type::endianity_is_not_default.
2148
db558e34
SM
21492020-09-14 Simon Marchi <simon.marchi@efficios.com>
2150
2151 * gdbtypes.h (struct type) <endianity_is_not_default,
2152 set_endianity_is_not_default>: New methods.
2153 (TYPE_ENDIANITY_NOT_DEFAULT): Use
2154 type::endianity_is_not_default, change all write call sites to
2155 use type::set_endianity_is_not_default.
2156
22c4c60c
SM
21572020-09-14 Simon Marchi <simon.marchi@efficios.com>
2158
2159 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
2160 uses with type::is_fixed_instance.
2161
9cdd0d12
SM
21622020-09-14 Simon Marchi <simon.marchi@efficios.com>
2163
2164 * gdbtypes.h (struct type) <is_fixed_instance,
2165 set_is_fixed_instance>: New methods.
2166 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
2167 write call sites to use type::set_is_fixed_instance.
2168
0becda7a
SM
21692020-09-14 Simon Marchi <simon.marchi@efficios.com>
2170
2171 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
2172 uses with type::is_gnu_ifunc.
2173
03cc7249
SM
21742020-09-14 Simon Marchi <simon.marchi@efficios.com>
2175
2176 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
2177 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
2178 use type::set_is_gnu_ifunc.
2179
3f46044c
SM
21802020-09-14 Simon Marchi <simon.marchi@efficios.com>
2181
2182 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
2183 uses with type::stub_is_supported.
2184
9baccff6
SM
21852020-09-14 Simon Marchi <simon.marchi@efficios.com>
2186
2187 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
2188 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
2189 use type::set_stub_is_supported.
2190
bd63c870
SM
21912020-09-14 Simon Marchi <simon.marchi@efficios.com>
2192
2193 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
2194 uses with type::is_vector.
2195
2062087b
SM
21962020-09-14 Simon Marchi <simon.marchi@efficios.com>
2197
2198 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
2199 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
2200 use type::set_is_vector.
2201
a409645d
SM
22022020-09-14 Simon Marchi <simon.marchi@efficios.com>
2203
2204 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
2205 uses with type::has_varargs.
2206
1d6286ed
SM
22072020-09-14 Simon Marchi <simon.marchi@efficios.com>
2208
2209 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
2210 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
2211 use type::set_has_varargs.
2212
7f9f399b
SM
22132020-09-14 Simon Marchi <simon.marchi@efficios.com>
2214
2215 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
2216 uses with type::is_prototyped.
2217
27e69b7a
SM
22182020-09-14 Simon Marchi <simon.marchi@efficios.com>
2219
2220 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
2221 New methods.
2222 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
2223 call sites to use type::set_is_prototyped.
2224
d2183968
SM
22252020-09-14 Simon Marchi <simon.marchi@efficios.com>
2226
2227 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
2228 uses with type::target_is_stub.
2229
8f53807e
SM
22302020-09-14 Simon Marchi <simon.marchi@efficios.com>
2231
2232 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
2233 New methods.
2234 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
2235 sites to use type::set_target_is_stub.
2236
e46d3488
SM
22372020-09-14 Simon Marchi <simon.marchi@efficios.com>
2238
2239 * gdbtypes.h (TYPE_STUB): Remove, replace all
2240 uses with type::is_stub.
2241
b4b73759
SM
22422020-09-14 Simon Marchi <simon.marchi@efficios.com>
2243
2244 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
2245 (TYPE_STUB): Use type::is_stub, change all write call sites to
2246 use type::set_is_stub.
2247
20ce4123
SM
22482020-09-14 Simon Marchi <simon.marchi@efficios.com>
2249
2250 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
2251 type::has_no_signedness.
2252
15152a54
SM
22532020-09-14 Simon Marchi <simon.marchi@efficios.com>
2254
2255 * gdbtypes.h (struct type) <has_no_signedness,
2256 set_has_no_signedness>: New methods.
2257 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
2258 call sites to use type::set_has_no_signedness.
2259
c6d940a9
SM
22602020-09-14 Simon Marchi <simon.marchi@efficios.com>
2261
2262 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
2263 type::is_unsigned.
2264
653223d3
SM
22652020-09-14 Simon Marchi <simon.marchi@efficios.com>
2266
2267 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
2268 methods.
2269 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
2270 sites to use type::set_is_unsigned.
2271
55ea94da 22722020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
e851246a 2273 Adam Renquinha <arenquinha@cimeq.qc.ca>
55ea94da 2274
e851246a
SM
2275 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
2276 pointer and stack frame offset when unwinding.
55ea94da 2277
6791b117
PA
22782020-09-13 Pedro Alves <pedro@palves.net>
2279
2280 * NEWS: Document "-break-insert --qualified".
2281 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
2282
77f2120b
PA
22832020-09-13 Pedro Alves <pedro@palves.net>
2284
2285 * linespec.c (classify_mtype, compare_msyms): Delete.
2286 (search_minsyms_for_name): Remove classification logic. Instead
2287 filter out trampoline symbols if we also found an external
2288 function of the same name.
2289
ed6a896c
JB
22902020-09-13 Joel Brobecker <brobecker@adacore.com>
2291
2292 * NEWS: Create a new section for the next release branch.
2293 Rename the section of the current branch, now that it has
2294 been cut.
2295
32aea73e
JB
22962020-09-13 Joel Brobecker <brobecker@adacore.com>
2297
2298 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
2299 * version.in: Bump version to 11.0.50.DATE-git.
2300
8087c3fa
JB
23012020-09-12 Joel Brobecker <brobecker@adacore.com>
2302
2303 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
2304
2a67f09d
FW
23052020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
2306 Felix Willgerodt <Felix.Willgerodt@intel.com>
2307
2308 * gdbarch.sh: Added bfloat16 type.
2309 * gdbarch.c: Regenerated.
2310 * gdbarch.h: Regenerated.
2311 * gdbtypes.c (floatformats_bfloat16): New struct.
2312 (gdbtypes_post_init): Add builtin_bfloat16.
2313 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
2314 (floatformats_bfloat16): New struct.
2315 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
2316 (i386_ymm_type): Add field "v16_bfloat16"
2317 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
2318 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
2319 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
2320 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
2321 * features/i386/64bit-avx512.xml: Add bfloat16 type.
2322 * features/i386/64bit-avx512.c: Regenerated.
2323 * features/i386/64bit-sse.xml: Add bfloat16 type.
2324 * features/i386/64bit-sse.c: Regenerated.
2325
1347d111
FW
23262020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
2327
2328 * i386-tdep.c (i386_zmm_type): Fix field names.
2329 (i386_ymm_type): Fix field names.
2330
7a4e8e7d
TBA
23312020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2332
2333 * breakpoint.c: Fix typo in the help message of the
2334 "set breakpoint condition-evaluation" command.
2335
cf4ac4be
KR
23362020-09-10 Kamil Rytarowski <n54@gmx.com>
2337
2338 * nbsd-nat.c: Include "nat/netbsd-nat.h".
2339 * (nbsd_nat_target::pid_to_exec_file)
2340 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
2341 (nbsd_nat_target::post_startup_inferior)
2342 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
2343 (nbsd_add_threads): Switch local code to common gdb/nat functions.
2344 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
2345 * (nbsd_thread_lister): Remove.
2346
f404573e
KR
23472020-09-10 Kamil Rytarowski <n54@gmx.com>
2348
2349 * fork-inferior.c (startup_inferior): Avoid double free.
2350
1ccb2c17
KR
23512020-09-10 Kamil Rytarowski <n54@gmx.com>
2352
2353 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
2354 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
2355
feedfcc7
KR
23562020-09-10 Kamil Rytarowski <n54@gmx.com>
2357
2358 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
2359 * netbsd-nat.c: Include <sys/ptrace.h>.
2360 * (netbsd_nat::enable_proc_events): Add.
2361
c489f8c6
KR
23622020-09-10 Kamil Rytarowski <n54@gmx.com>
2363
2364 * netbsd-nat.h: Include "gdbsupport/function-view.h".
2365 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
2366 (netbsd_nat::for_each_thread): Add.
2367 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
2368 "gdbsupport/common-debug.h".
2369 * (netbsd_nat::netbsd_thread_lister)
2370 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
2371 (netbsd_nat::for_each_thread): Add.
2372
330662f6
KR
23732020-09-10 Kamil Rytarowski <n54@gmx.com>
2374
2375 * netbsd-nat.h: Include <unistd.h>.
2376 * (netbsd_nat::pid_to_exec_file): Add.
2377 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
2378 * (netbsd_nat::pid_to_exec_file) Add.
2379
70b67307
KR
23802020-09-10 Kamil Rytarowski <n54@gmx.com>
2381
2382 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
2383
99cf6da6
KR
23842020-09-10 Kamil Rytarowski <n54@gmx.com>
2385
2386 * netbsd-nat.h: New file.
2387 * netbsd-nat.c: Likewise.
2388
1b788fb6
TT
23892020-09-09 Tom Tromey <tromey@adacore.com>
2390
2391 * ada-lang.c (remove_extra_symbols): Do not increment when
2392 removing an element
2393
03b0a45f
TT
23942020-09-08 Tom Tromey <tromey@adacore.com>
2395
2396 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
2397
3cae4447
TT
23982020-09-08 Tom Tromey <tromey@adacore.com>
2399
2400 PR win32/25302:
2401 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
2402 (gdb_bfd_init_data): New function.
2403 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
2404
7f08fd51
TBA
24052020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2406
2407 * infrun.c (fetch_inferior_event): Use
2408 `switch_to_target_no_thread` to switch the target.
2409
3e6ff933
TT
24102020-09-06 Tom Tromey <tom@tromey.com>
2411
2412 * symfile.h (dwarf2_free_objfile): Don't declare.
2413
e56798df
AKS
24142020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2415
2416 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
2417 to match 16 byte real/complex type generated by Flang compiler.
2418
8f5c6526
TV
24192020-09-03 Tom de Vries <tdevries@suse.de>
2420
2421 PR breakpoint/26546
2422 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
2423 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
2424
c5065df0
SM
24252020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
2426
2427 * maint.c (index_digits): New function.
2428 (struct maint_print_section_data): Remove.
2429 (print_bfd_section_info): Remove print_data parameter, add arg
2430 and index_digits.
2431 (print_objfile_section_info): Likewise.
2432 (print_bfd_section_info_maybe_relocated): Likewise (plus
2433 objfile).
2434 (maintenance_info_sections): Adjust calls.
2435
02c6f3f1
TT
24362020-09-02 Tom Tromey <tromey@adacore.com>
2437
2438 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
2439 for null pointers.
2440 (ada_varobj_adjust_for_child_access): Special-case null pointers.
2441
ef5e5b0b
SM
24422020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
2443
2444 * bcache.h (struct bcache) <insert>: Change type of `added` to
2445 pointer to bool.
2446 * bcache.c (bcache::insert): Likewise.
2447 * gdbtypes.c (check_types_worklist): Adjust.
2448 * psymtab.c (add_psymbol_to_bcache): Adjust.
2449
973695d6
KB
24502020-08-31 Kevin Buettner <kevinb@redhat.com>
2451
2452 * corelow.c (unordered_set): Include.
2453 (class core_target): Add field 'm_core_unavailable_mappings'.
2454 (core_target::build_file_mappings): Print only one warning
2455 per inaccessible file. Add unavailable/broken mappings
2456 to m_core_unavailable_mappings.
2457 (core_target::xfer_partial): Call...
2458 (core_target::xfer_memory_via_mappings): New method.
2459
264fc0e2
SM
24602020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
2461
2462 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
2463 type to bool.
2464
2de01bdb
SM
24652020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
2466
2467 * dwarf2/read.c (struct field_info): Fix indentation.
2468
f3bd50f1
SM
24692020-08-31 Simon Marchi <simon.marchi@efficios.com>
2470
2471 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
2472 ordering in comment.
2473 * frame.c (frame_id_eq): Fix indentation.
2474
22b9b4b0
SL
24752020-08-31 Scott Linder <scott@scottlinder.com>
2476 Simon Marchi <simon.marchi@efficios.com>
2477
2478 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
2479 inline frame ids in outer frame.
2480
84154d16
SM
24812020-08-31 Simon Marchi <simon.marchi@efficios.com>
2482
2483 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
2484 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
2485 (outer_frame_id): Use FID_STACK_OUTER instead of
2486 FID_STACK_INVALID.
2487 (frame_id_p): Don't check for outer_frame_id.
2488
8efaf6b3
SM
24892020-08-31 Simon Marchi <simon.marchi@efficios.com>
2490
2491 * frame-unwind.c (frame_unwind_got_optimized): Don't set
2492 regnum/frame in value. Call allocate_value_lazy.
2493 * frame.c (frame_unwind_register_value): Use
2494 val_print_not_saved.
2495
fe1fe7ea
SM
24962020-08-31 Simon Marchi <simon.marchi@efficios.com>
2497
2498 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
2499
f7c7700d
PA
25002020-08-29 Pedro Alves <pedro@palves.net>
2501
2502 * progspace.c (print_program_space): Use all_inferiors. Switch to
2503 the inferior before calling target_pid_to_str.
2504
e0814aae
TT
25052020-08-28 Tom Tromey <tom@tromey.com>
2506
2507 * xcoffread.c (xcoff_end_psymtab): Update comment.
2508 * dbxread.c (dbx_end_psymtab): Update comment.
2509
626d2320
TV
25102020-08-28 Tom de Vries <tdevries@suse.de>
2511
2512 PR breakpoint/26544
2513 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
2514 event_location.
2515 (create_breakpoint): Same.
2516 (base_breakpoint_decode_location): Same.
2517 (bkpt_create_sals_from_location): Same.
2518 (bkpt_decode_location): Same.
2519 (bkpt_probe_create_sals_from_location): Same.
2520 (bkpt_probe_decode_location): Same.
2521 (tracepoint_create_sals_from_location): Same.
2522 (tracepoint_decode_location): Same.
2523 (tracepoint_probe_decode_location): Same.
2524 (strace_marker_create_sals_from_location): Same.
2525 (strace_marker_decode_location): Same.
2526 (create_sals_from_location_default): Same.
2527 (decode_location_default): Same.
2528 * breakpoint.h (struct breakpoint_ops): Same.
2529 (create_breakpoint): Same.
2530 * linespec.h (decode_line_full): Same.
2531 * linespec.c (decode_line_full): Same. Throw error if
2532 result.size () == 0.
2533
df631783
PA
25342020-08-27 Pedro Alves <pedro@palves.net>
2535
2536 PR gdb/26524
2537 * breakpoint.c (until_break_fsm) <location_breakpoint,
2538 caller_breakpoint>: Delete fields.
2539 <breakpoints>: New field.
2540 <until_break_fsm>: Adjust to save a breakpoint vector instead of
2541 two individual breakpoints.
2542 (until_break_fsm::should_stop): Loop over breakpoints in the
2543 breakpoint vector.
2544 (until_break_fsm::clean_up): Adjust to clear the breakpoints
2545 vector.
2546 (until_break_command): Handle location expanding into multiple
2547 sals.
2548
b2b38aa4
PA
25492020-08-27 Pedro Alves <pedro@palves.net>
2550
2551 PR gdb/26523
2552 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
2553 bp_until breakpoints user-specified locations. Update intro
2554 comment.
2555
b886559f
SM
25562020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
2557
2558 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
2559 gdb_bfd_sections): New.
2560 * maint.c (print_bfd_section_info): Change param type to
2561 maint_print_section_data.
2562 (print_objfile_section_info): Likewise.
2563 (print_bfd_section_info_maybe_relocated): Likewise.
2564 (maintenance_info_sections): Use gdb_bfd_sections.
2565
4c6e63bf
SV
25662020-08-25 Shahab Vahedi <shahab@synopsys.com>
2567
2568 * MAINTAINERS: Add ARC target and maintainer.
2569
8d7f0635
AK
25702020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
2571
2572 * configure.tgt: ARC support for GNU/Linux.
2573 * Makefile.in (ALL_TARGET_OBJS): Likewise.
2574 * arc-linux-tdep.c: New file.
2575 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
2576 * arc-tdep.c (arc_write_pc): Use it.
2577
fdd8731b
SV
25782020-08-25 Shahab Vahedi <shahab@synopsys.com>
2579
2580 * arc-tdep.c (arc_check_for_hardware_loop): New.
2581 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
2582
22459524
SV
25832020-08-25 Shahab Vahedi <shahab@synopsys.com>
2584
2585 * arc-tdep.h: Include "gdbarch.h".
2586
995d3a19
SV
25872020-08-25 Shahab Vahedi <shahab@synopsys.com>
2588
2589 * arch/arc.h
2590 (arc_gdbarch_features): New class to stir the selection of target XML.
2591 (arc_create_target_description): Use FEATURES to choose XML target.
2592 (arc_lookup_target_description): Use arc_create_target_description
2593 to create _new_ target descriptions or return the already created
2594 ones if the FEATURES is the same.
2595 * arch/arc.c: Implementation of prototypes described above.
2596 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
2597 (arc_gdbarch_features_init): Initialize the FEATURES struct.
2598 * arc-tdep.c (*_feature_name): Make feature names consistent.
2599 (arc_register_feature): A new struct to hold information about
2600 registers of a particular target/feature.
2601 (arc_check_tdesc_feature): Check if XML provides registers in
2602 compliance with ARC_REGISTER_FEATURE structs.
2603 (arc_update_acc_reg_names): Add aliases for r58 and r59.
2604 (determine_*_reg_feature_set): Which feature name to look for.
2605 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
2606 (mach_type_to_arc_isa): Convert from a set of binutils machine types
2607 to expected ISA enums to be used in arc_gdbarch_features structs.
2608 * features/Makefile (FEATURE_XMLFILES): Add new files.
2609 * gdb/features/arc/v1-aux.c: New file.
2610 * gdb/features/arc/v1-aux.xml: Likewise.
2611 * gdb/features/arc/v1-core.c: Likewise.
2612 * gdb/features/arc/v1-core.xml: Likewise.
2613 * gdb/features/arc/v2-aux.c: Likewise.
2614 * gdb/features/arc/v2-aux.xml: Likewise.
2615 * gdb/features/arc/v2-core.c: Likewise.
2616 * gdb/features/arc/v2-core.xml: Likewise.
2617 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
2618
3945d2d7
GM
26192020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
2620 Andrew Burgess <andrew.burgess@embecosm.com>
2621
2622 PR m2/26372
fc5d6901 2623 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
2624 an assert. Remove single element array indexing pattern as the
2625 MULTI_SUBSCRIPT support will handle this case too.
2626
2677f2d3
SM
26272020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
2628
2629 * value.h (valprint_check_validity): Move declaration from
2630 here...
2631 * valprint.h (valprint_check_validity): ... to here.
2632
c426fddb
SM
26332020-08-24 Simon Marchi <simon.marchi@efficios.com>
2634
2635 * debug.h: New file.
2636 * debug.c (debug_prefixed_vprintf): New function.
2637 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
2638 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
2639
1eb8556f
SM
26402020-08-24 Simon Marchi <simon.marchi@efficios.com>
2641
2642 * infrun.h (infrun_debug_printf_1): New function declaration.
2643 (infrun_debug_printf): New macro.
2644 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
2645 throughout.
2646 (infrun_debug_printf): New function.
2647 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
2648 (handle_jit_event): Likewise.
2649
b8fff44e
MW
26502020-08-21 Mark Wielaard <mark@klomp.org>
2651
2652 * ada-lex.l: Extend register warnings diagnostics comment for g++.
2653
d19c3068
SM
26542020-08-22 Simon Marchi <simon.marchi@efficios.com>
2655
2656 * frame.c (enum class frame_id_status): New.
2657 (struct frame_info) <this_id::p>: Change type to frame_id_status.
2658 (fprintf_frame): Update.
2659 (compute_frame_id): Set frame id status to "computing" on entry.
2660 Set it back to "not_computed" on failure and to "computed" on
2661 success.
2662 (get_frame_id): Assert the frame id is not being computed.
2663 (create_sentinel_frame): Use frame_id_status::COMPUTED.
2664 (create_new_frame): Likewise.
2665 (frame_cleanup_after_sniffer): Update assert.
2666
b70e516e
SM
26672020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2668
2669 * regcache.c (pid_ptid_regcache_map): New type.
2670 (target_ptid_regcache_map): Remove.
2671 (target_pid_ptid_regcache_map): New type.
2672 (regcaches): Change type to target_pid_ptid_regcache_map.
2673 (get_thread_arch_aspace_regcache): Update.
2674 (regcache_thread_ptid_changed): Update, handle pid-like ptid
2675 case.
2676 (regcaches_size): Update.
2677 (regcache_count): Update.
2678 (registers_changed_ptid_target_pid_test): New.
2679 (_initialize_regcache): Register new test.
2680
cdd9148a
SM
26812020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2682
2683 * regcache.c (regcache_count): New.
2684 (struct regcache_test_data): New.
2685 (regcache_test_data_up): New.
2686 (populate_regcaches_for_test): New.
2687 (regcaches_test): Remove.
2688 (get_thread_arch_aspace_regcache_test): New.
2689 (registers_changed_ptid_all_test): New.
2690 (registers_changed_ptid_target_test): New.
2691 (registers_changed_ptid_target_ptid_test): New.
2692 (regcache_thread_ptid_changed): Remove regcache_count lambda.
2693 (_initialize_regcache): Register new tests.
2694
dd125343
SM
26952020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2696
2697 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
2698 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
2699 gdbarch and aspace parameter. Use current inferior's aspace.
2700 Validate regcache's arch value.
2701 (regcaches_test): Update.
2702
3ee93972
SM
27032020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2704
2705 * regcache.c (regcaches_test): Call registers_changed.
2706
33bf4c5c
TBA
27072020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2708
2709 * infrun.c (process_event_stop_test): Fix typo "breapoint".
2710
c2fd7fae
AKS
27112020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2712
2713 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
2714 to find the end of prologue for flang compiled binaries.
2715 * arm-tdep.c (arm_skip_prologue): Likewise.
2716 * i386-tdep.c (i386_skip_prologue): Likewise.
2717 * producer.c (producer_is_llvm): New function.
2718 (producer_parsing_tests): Added new tests for clang/flang.
2719 * producer.h (producer_is_llvm): New declaration.
2720
9327494e
SM
27212020-08-18 Simon Marchi <simon.marchi@efficios.com>
2722
2723 * linux-nat.c (linux_nat_debug_printf): New function.
2724 (linux_nat_debug_printf_1): New macro. Use throughout the file.
2725
d138725a
AM
27262020-08-18 Aaron Merey <amerey@redhat.com>
2727
2728 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
2729 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
2730 (CLIBS): Add DEBUGINFOD_LIBS.
2731
f9b11e6b
ST
27322020-08-17 Sergei Trofimovich <siarheit@google.com>
2733
2734 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
2735 'gdbarch_num_regs'.
2736
3ae7ab99
TT
27372020-08-17 Tom Tromey <tromey@adacore.com>
2738
2739 * ada-varobj.c (ada_varobj_decode_var): Handle case where
2740 ada_get_decoded_value returns NULL.
2741
b017825f
TT
27422020-08-17 Tom Tromey <tromey@adacore.com>
2743
2744 * python/py-inferior.c (infpy_search_memory): Use
2745 gdb_py_object_from_ulongest.
2746 * python/py-infevents.c (create_inferior_call_event_object)
2747 (create_memory_changed_event_object): Use
2748 gdb_py_object_from_ulongest.
2749 * python/py-linetable.c (ltpy_entry_get_pc): Use
2750 gdb_py_object_from_ulongest.
2751
7635cf79
SM
27522020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
2753
2754 * loc.c (class symbol_needs_eval_context): Fix indentation.
2755
f54be24b
SM
27562020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
2757
2758 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
2759 bool.
2760
53d5a2a5
TV
27612020-08-17 Tom de Vries <tdevries@suse.de>
2762
2763 PR gdb/26393
2764 * gdbtypes.c (dump_dynamic_prop): New function.
2765 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
2766
547ce8f0
TV
27672020-08-15 Tom de Vries <tdevries@suse.de>
2768
2769 PR backtrace/26390
2770 * stack.c (print_frame_args): Temporarily set the selected
2771 frame to FRAME while printing the frame's arguments.
2772
6ea815e7
PFC
27732020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2774
2775 PR breakpoints/26385
2776 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
2777 Always clear watchpoint with PTRACE_SET_DEBUGREG.
2778
6e562fa3
PFC
27792020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2780
2781 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
2782 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
2783 and >= to check return value instead of == -1 and != -1.
2784
d369b608
SM
27852020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
2786
2787 * utils.h (class gdb_argv) <as_array_view>: New method.
2788 * utils.c (gdb_argv_as_array_view_test): New.
2789 (_initialize_utils): Register selftest.
2790 * maint.c (maintenance_selftest): Use the new method.
2791
b31488a3
KR
27922020-08-13 Kamil Rytarowski <n54@gmx.com>
2793
2794 * target.h (supports_dumpcore, dumpcore): New
2795 function declarations.
2796 * target.c (supports_dumpcore, dumpcore): New
2797 functions.
2798 * target-delegates.c: Rebuild.
2799 * gcore.c (gcore_command): Use target_supports_dumpcore ()
2800 and target_dumpcore ().
2801
002a3166
AM
28022020-08-13 Aaron Merey <amerey@redhat.com>
2803
2804 * debuginfod-support.c: Replace global variables with user_data.
2805
ece5bc8a
SM
28062020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
2807
2808 * maint.c (maintenance_selftest): Split args and pass array_view
2809 to run_tests.
2810
6d8a0a5e
LM
28112020-08-12 Luis Machado <luis.machado@linaro.org>
2812
2813 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
2814 type's length.
2815 Use %s and pulongest to print the length.
2816
7cf663a9
PA
28172020-08-12 Pedro Alves <palves@redhat.com>
2818
2819 * NEWS: Move "Multi-target debugging support" item to the
2820 "Changes since GDB 9" section.
2821
27c7b875
PA
28222020-08-12 Pedro Alves <palves@redhat.com>
2823
2824 PR gdb/26336
2825 * progspace.c (program_space::remove_objfile): Invalidate the
2826 frame cache.
2827
1796a2a1
TV
28282020-08-11 Tom de Vries <tdevries@suse.de>
2829
2830 * MAINTAINERS: Mark ms1 as deleted.
2831
f8e3fe0d
LM
28322020-08-10 Luis Machado <luis.machado@linaro.org>
2833
2834 PR gdb/26310
2835
2836 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
2837 act accordingly.
2838 (aarch64_analyze_prologue_test): Add more unit tests to exercise
2839 movz/str/stur/stp skipping behavior.
2840
cc308722
LM
28412020-08-10 Luis Machado <luis.machado@linaro.org>
2842
2843 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
2844 struct user_sve_header instead of struct sve_context.
2845
041d9819
SM
28462020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
2847
2848 * read.h (dwarf2_fetch_die_loc_sect_off,
2849 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
2850 `void *` parameter with function_view.
2851 * read.c (dwarf2_fetch_die_loc_sect_off,
2852 dwarf2_fetch_die_loc_cu_off): Likewise.
2853 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
2854 (per_cu_dwarf_call): Adjust.
2855 (get_frame_address_in_block_wrapper): Remove.
2856 (indirect_synthetic_pointer): Adjust.
2857 (get_ax_pc): Remove.
2858 (dwarf2_compile_expr_to_ax): Adjust.
2859
38f8aa06
TV
28602020-08-08 Tom de Vries <tdevries@suse.de>
2861
2862 PR build/26344
2863 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
2864 constructor.
2865 * regcache.c (get_thread_arch_aspace_regcache): Same.
2866
a52b3ae2
TT
28672020-08-07 Tom Tromey <tromey@adacore.com>
2868
2869 * ravenscar-thread.c
2870 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
2871 New method.
2872 (ravenscar_thread_target::wait): Check
2873 runtime_initialized.
2874 (ravenscar_thread_target::prepare_to_store)
2875 (ravenscar_thread_target::stopped_by_sw_breakpoint)
2876 (ravenscar_thread_target::stopped_by_hw_breakpoint)
2877 (ravenscar_thread_target::stopped_by_watchpoint)
2878 (ravenscar_thread_target::stopped_data_address)
2879 (ravenscar_thread_target::core_of_thread): Use
2880 scoped_restore_current_thread and
2881 set_base_thread_from_ravenscar_task.
2882
0e29517d
TT
28832020-08-07 Tom Tromey <tromey@adacore.com>
2884
2885 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
2886
592f9bd7
TT
28872020-08-07 Tom Tromey <tromey@adacore.com>
2888
2889 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
2890 update_inferior_ptid before update_thread_list.
2891 (temporarily_change_regcache_ptid): New class.
2892 (ravenscar_thread_target::fetch_registers)
2893 (ravenscar_thread_target::store_registers)
2894 (ravenscar_thread_target::prepare_to_store): Use base thread when
2895 forwarding operation.
2896
39e2018a
TT
28972020-08-07 Tom Tromey <tromey@adacore.com>
2898
2899 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
2900 "is_pid" case.
2901
2080266b
TT
29022020-08-07 Tom Tromey <tromey@adacore.com>
2903
2904 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
2905 New methods.
2906 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
2907 first.
2908 (ravenscar_thread_target::add_thread): Rename from
2909 ravenscar_add_thread.
2910 (ravenscar_thread_target::update_thread_list): Use a lambda.
2911 (ravenscar_thread_target::xfer_partial): New method.
2912
78c02f21
TT
29132020-08-07 Tom Tromey <tromey@adacore.com>
2914
2915 * ada-lang.h (ada_task_list_iterator_ftype): Now a
2916 gdb::function_view.
2917 (iterate_over_live_ada_tasks): Change type of argument.
2918 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
2919 of argument.
2920
d5d833af
TT
29212020-08-07 Tom Tromey <tromey@adacore.com>
2922
2923 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
2924 Remove.
2925 (ravenscar_thread_target::extra_thread_info): Remove.
2926 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
2927 defer to target beneath for non-Ravenscar threads.
2928
a8ac85bb
TT
29292020-08-07 Tom Tromey <tromey@adacore.com>
2930
2931 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
2932 get_base_thread_from_ravenscar_task>: Now methods.
2933 <m_cpu_map>: New member.
2934 (ravenscar_thread_target::get_thread_base_cpu): Rename from
2935 ravenscar_get_thread_base_cpu. Check m_cpu_map.
2936 (ravenscar_thread_target::task_is_currently_active): Update.
2937 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
2938 Now a method.
2939 (ravenscar_thread_target::add_active_thread): Put initial thread
2940 into the m_cpu_map.
2941
550ab58d
TT
29422020-08-07 Tom Tromey <tromey@adacore.com>
2943
2944 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
2945 event_ptid.
2946
e9546579
TT
29472020-08-07 Tom Tromey <tromey@adacore.com>
2948
2949 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
2950 runtime_initialized.
2951
3d4470e5
TT
29522020-08-07 Tom Tromey <tromey@adacore.com>
2953
2954 * ravenscar-thread.c (ravenscar_thread_target): Don't call
2955 add_active_thread.
2956 (ravenscar_thread_target::add_active_thread): Now public.
2957 (ravenscar_inferior_created): Call add_active_thread after pushing
2958 the target.
2959
888bdb2b
SM
29602020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
2961
2962 * regcache.c (ptid_regcache_map): New type.
2963 (target_ptid_regcache_map): New type.
2964 (regcaches): Change type to target_ptid_regcache_map.
2965 (get_thread_arch_aspace_regcache): Update to regcaches' new
2966 type.
2967 (regcache_thread_ptid_changed): Likewise.
2968 (registers_changed_ptid): Likewise.
2969 (regcaches_size): Likewise.
2970 (regcaches_test): Update.
2971 (regcache_thread_ptid_changed): Update.
2972 * regcache.h (regcache_up): New type.
2973 * gdbsupport/ptid.h (hash_ptid): New struct.
2974
b161a60d
SM
29752020-08-07 Simon Marchi <simon.marchi@efficios.com>
2976
2977 * observable.h (thread_ptid_changed): Add parameter
2978 `process_stratum_target *`.
2979 * infrun.c (infrun_thread_ptid_changed): Add parameter
2980 `process_stratum_target *` and use it.
2981 (selftests): New namespace.
2982 (infrun_thread_ptid_changed): New function.
2983 (_initialize_infrun): Register selftest.
2984 * regcache.c (regcache_thread_ptid_changed): Add parameter
2985 `process_stratum_target *` and use it.
2986 (regcache_thread_ptid_changed): New function.
2987 (_initialize_regcache): Register selftest.
2988 * thread.c (thread_change_ptid): Pass target to
2989 thread_ptid_changed observable.
2990
d2854d8d
CT
29912020-08-06 Caroline Tice <cmtice@google.com>
2992
fe4c3d43
SM
2993 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
2994 (struct dwp_sections): Update field comments. Add loclists and
2995 rnglists fields.
2996 (struct virtual_v2_dwo_sections): Rename struct to
2997 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
2998 size & offset fields for loclists and rnglists.
2999 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
3000 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
3001 skipping dummy type units.
3002 (create_dwp_hash_table): Update the large comment above the function to
3003 discuss Version 5 DWP files as well, with references. Update all the
3004 version checks in the function to check for version 5 as well. Add new
3005 section at the end to create dwp hash table for version 5.
3006 (create_dwp_v2_section): Rename function to
3007 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
3008 Add V5 to error message text.
3009 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
3010 into calls to create_dwp_v2_or_v5_section.
3011 (create_dwo_unit_in_dwp_v5): New function.
3012 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
3013 check for version2; add else clause to handle version 5.
3014 (open_and_init_dwo_file): Add code to check dwarf version & only call
3015 create_debug_types_hash_table (with sections.types) if version is not 5;
3016 else call create_debug_type_hash_table, with sections.info.
3017 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
3018 version 5.
3019 (dwarf2_locate_v5_dwp_sections): New function.
3020 (open_and_init_dwp_file): Add else-if clause for version 5 to call
3021 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 3022
159ed7d9
SM
30232020-08-06 Simon Marchi <simon.marchi@efficios.com>
3024
3025 * regcache.h (class regcache): Remove friend
3026 registers_changed_ptid.
3027 <regcache_thread_ptid_changed>: Remove.
3028 <regcaches>: Remove.
3029 * regcache.c (regcache::regcaches): Rename to...
3030 (regcaches): ... this. Make static.
3031 (get_thread_arch_aspace_regcache): Update.
3032 (regcache::regcache_thread_ptid_changed): Rename to...
3033 (regcache_thread_ptid_changed): ... this. Update.
3034 (class regcache_access): Remove.
3035 (regcaches_test): Update.
3036 (_initialize_regcache): Update.
3037 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
3038 <forward_list>.
3039
174981ae
SM
30402020-08-06 Simon Marchi <simon.marchi@efficios.com>
3041
3042 * regcache.h (class regcache) <current_regcache>: Rename to...
3043 <regcaches>: ... this. Move doc here.
3044 * regcache.c (regcache::current_regcache) Rename to...
3045 (regcache::regcaches): ... this. Move doc to header.
3046 (get_thread_arch_aspace_regcache): Update.
3047 (regcache::regcache_thread_ptid_changed): Update.
3048 (registers_changed_ptid): Update.
3049 (class regcache_access) <current_regcache_size>: Rename to...
3050 <regcaches_size>: ... this.
3051 (current_regcache_test): Rename to...
3052 (regcaches_test): ... this.
3053 (_initialize_regcache): Update.
3054
ed908db6
VC
30552020-08-06 Victor Collod <vcollod@nvidia.com>
3056
3057 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
3058
b5582ab7
KB
30592020-08-05 Kevin Buettner <kevinb@redhat.com>
3060
3061 * corelow.c (core_target::build_file_mappings): Don't output
3062 null pathname in warning.
3063
ea946b86
SM
30642020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
3065
3066 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
3067 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
3068 gdb.dwarf2/dw2-single-line-discriminators.exp,
3069 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
3070
57d02173
TT
30712020-08-05 Tom Tromey <tromey@adacore.com>
3072
3073 PR rust/26197:
3074 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
3075 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
3076 Fix off-by-one and type size errors in ordinary case.
3077
5555c86d
TV
30782020-08-05 Tom de Vries <tdevries@suse.de>
3079
3080 * gdbtypes.c (type_not_allocated, type_not_associated): Use
3081 "prop->const_val () == 0" instead of "prop->const_val () != 0".
3082
97916bfe
SM
30832020-08-04 Simon Marchi <simon.marchi@efficios.com>
3084
3085 * frame.h (frame_id_p): Return bool.
3086 (frame_id_artificial_p): Return bool.
3087 (frame_id_eq): Return bool.
3088 (has_stack_frames): Return bool.
3089 (get_selected_frame): Fix typo in comment.
3090 (get_frame_pc_if_available): Return bool.
3091 (get_frame_address_in_block_if_available): Return bool.
3092 (get_frame_func_if_available): Return bool.
3093 (read_frame_register_unsigned): Return bool.
3094 (get_frame_register_bytes): Return bool.
3095 (safe_frame_unwind_memory): Return bool.
3096 (deprecated_frame_register_read): Return bool.
3097 (frame_unwinder_is): Return bool.
3098 * frame.c (struct frame_info) <prev_arch::p>: Change type to
3099 bool.
3100 <this_id::p>: Likewise.
3101 <prev_p>: Likewise.
3102 (frame_stash_add): Return bool.
3103 (get_frame_id): Use bool.
3104 (frame_id_build_special) Use bool.
3105 (frame_id_build_unavailable_stack): Use bool.
3106 (frame_id_build): Use bool.
3107 (frame_id_p): Return bool, use true/false instead of 1/0.
3108 (frame_id_artificial_p): Likewise.
3109 (frame_id_eq): Likewise.
3110 (frame_id_inner): Likewise.
3111 (get_frame_func_if_available): Likewise.
3112 (read_frame_register_unsigned): Likewise.
3113 (deprecated_frame_register_read): Likewise.
3114 (get_frame_register_bytes): Likewise.
3115 (has_stack_frames): Likewise.
3116 (inside_main_func): Likewise.
3117 (inside_entry_func): Likewise.
3118 (get_frame_pc_if_available): Likewise.
3119 (get_frame_address_in_block_if_available): Likewise.
3120 (frame_unwinder_is): Likewise.
3121 (safe_frame_unwind_memory): Likewise.
3122 (frame_unwind_arch): Likewise.
3123
fedfee88
SM
31242020-08-04 Simon Marchi <simon.marchi@efficios.com>
3125
3126 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
3127 type to cached_copy_status.
3128 (fprintf_frame): Adjust.
3129 (get_frame_func_if_available): Adjust.
3130 (frame_cleanup_after_sniffer): Adjust.
3131
6cfa9b59
MW
31322020-08-04 Mark Wielaard <mark@klomp.org>
3133
3134 * MAINTAINERS (Write After Approval): Update email address.
3135
66d6346b
SM
31362020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3137
3138 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
3139 dynamic_prop::const_val.
3140
8a6d5e35
SM
31412020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3142
3143 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
3144 dynamic_prop::kind.
3145
51d6067d
SM
31462020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3147
3148 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
3149
b26e2ae7
JM
31502020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
3151
3152 * configure.tgt: Set gdb_sim for bpf-*-* targets.
3153
39791af2
JM
31542020-08-04 Weimin Pan <weimin.pan@oracle.com>
3155 Jose E. Marchesi <jose.marchesi@oracle.com>
3156
3157 * configure.tgt: Add entry for bpf-*-*.
3158 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
3159 (ALLDEPFILES): Add bpf-tdep.c.
3160 * bpf-tdep.c: New file.
3161 * MAINTAINERS: Add bpf target and maintainer.
3162 * NEWS: Mention the support for the new target.
3163
521894aa
TV
31642020-08-04 Tom de Vries <tdevries@suse.de>
3165
3166 PR symtab/23270
3167 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
3168 Error.
3169
5d6356e9
JB
31702020-08-03 John Baldwin <jhb@FreeBSD.org>
3171
3172 * syscalls/freebsd.xml: Regenerate.
3173
0cf82b81
JB
31742020-08-03 John Baldwin <jhb@FreeBSD.org>
3175
3176 * syscalls/update-freebsd.sh: Fix usage and year range.
3177
8f34b746
TV
31782020-08-03 Tom de Vries <tdevries@suse.de>
3179
3180 PR symtab/26333
3181 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
3182 DW_LNE_lo_user/DW_LNE_hi_user range.
3183
5e500d33
SM
31842020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
3185
3186 PR ada/26318
3187 * ada-lang.c (ada_modulus): Return 0 if property is not of const
3188 kind.
3189
78319c15
TBA
31902020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3191
3192 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
3193
4c55e970
TBA
31942020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3195
3196 * breakpoint.c (set_breakpoint_condition): Update the condition
3197 expressions after checking that the input condition string parses
3198 successfully and does not contain junk at the end.
3199
1e620590
TBA
32002020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3201
3202 * breakpoint.c (set_breakpoint_condition): Update the
3203 condition string after parsing the new condition successfully.
3204
c8693053
RO
32052020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3206
3207 * proc-api.c (_STRUCTURED_PROC): Don't define.
3208 * proc-events.c: Likewise.
3209 * proc-flags.c: Likewise.
3210 * proc-why.c: Likewise.
3211 * procfs.c: Likewise.
3212
3213 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
3214 * configure, config.in: Regenerate.
3215
5a99adb8
TV
32162020-07-30 Tom de Vries <tdevries@suse.de>
3217
3218 PR build/26320
3219 * ui-style.h (struct ui_file_style::color): Wrap m_value and
3220 m_red/m_green/m_blue in a union.
3221
8ba83e91
TV
32222020-07-29 Tom de Vries <tdevries@suse.de>
3223
3224 PR tdep/26280
3225 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
3226
f75a0693
AB
32272020-07-28 Tom Tromey <tromey@adacore.com>
3228
3229 PR symtab/26270:
3230 * symtab.h (find_pc_partial_function_sym): Declare.
3231 * cli/cli-cmds.c (disassemble_command): Use
3232 find_pc_partial_function_sym. Check asm_demangle.
3233 * blockframe.c (cache_pc_function_sym): New global.
3234 (cache_pc_function_name): Remove.
3235 (clear_pc_function_cache): Update.
3236 (find_pc_partial_function_sym): New function, from
3237 find_pc_partial_function.
3238 (find_pc_partial_function): Rewrite using
3239 find_pc_partial_function_sym.
3240
16f3242c
TT
32412020-07-28 Tom Tromey <tromey@adacore.com>
3242
3243 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
3244 help. Add usage.
3245
4888741a
TT
32462020-07-28 Tom Tromey <tromey@adacore.com>
3247
3248 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
3249 <DW_OP_GNU_variable_value>: Cast to address type.
3250
4d46f402
KR
32512020-07-28 Kamil Rytarowski <n54@gmx.com>
3252
3253 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
3254 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
3255 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
3256 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
3257 (nbsd_get_siginfo_type): New.
3258 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
3259 (_initialize_nbsd_tdep): New.
3260
d70f978b
L
32612020-07-28 H.J. Lu <hongjiu.lu@intel.com>
3262
3263 PR binutils/26301
3264 * configure: Regenerated.
3265
377170fa
L
32662020-07-28 H.J. Lu <hongjiu.lu@intel.com>
3267
3268 PR binutils/26301
3269 * configure: Regenerated.
3270
43d5901d
AB
32712020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
3272
3273 * python/py-frame.c: Remove 'user-regs.h' include.
3274 (frapy_read_register): Rewrite to make use of
3275 gdbpy_parse_register_id.
3276 * python/py-registers.c (gdbpy_parse_register_id): New function,
3277 moved here from python/py-unwind.c. Updated the return type, and
3278 also accepts register descriptor objects.
3279 * python/py-unwind.c: Remove 'user-regs.h' include.
3280 (pyuw_parse_register_id): Moved to python/py-registers.c.
3281 (unwind_infopy_add_saved_register): Update to use
3282 gdbpy_parse_register_id.
3283 (pending_framepy_read_register): Likewise.
3284 * python/python-internal.h (gdbpy_parse_register_id): Declare.
3285
14fa8fb3
AB
32862020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
3287
3288 * python/py-registers.c: Add 'user-regs.h' include.
3289 (register_descriptor_iter_find): New function.
3290 (register_descriptor_iterator_object_methods): New static global
3291 methods array.
3292 (register_descriptor_iterator_object_type): Add pointer to methods
3293 array.
3294
ddce1758
JB
32952020-07-27 John Baldwin <jhb@FreeBSD.org>
3296
3297 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
3298 for all architectures on FreeBSD 11.3 and later.
3299
a4089f52
TT
33002020-07-27 Tom Tromey <tromey@adacore.com>
3301
3302 * gcore.h (load_corefile): Don't declare.
3303
95420d30
TV
33042020-07-27 Tom de Vries <tdevries@suse.de>
3305
3306 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
3307 * config.in: Regenerate.
3308 * configure: Regenerate.
3309
05a6b8c2
EZ
33102020-07-26 Eli Zaretskii <eliz@gnu.org>
3311
3312 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
3313 ws2tcpip.h. When checking whether socklen_t type is defined, use
3314 ws2tcpip.h if it is available and sys/socket.h isn't.
3315 * configure: Regenerate.
3316 * config.in: Regenerate.
3317
e79eb02f
AB
33182020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
3319
3320 PR fortran/23051
3321 PR fortran/26139
3322 * valops.c (value_ind): Pass address to
3323 readjust_indirect_value_type.
3324 * value.c (readjust_indirect_value_type): Make parameter
3325 non-const, and add extra address parameter. Resolve original type
3326 before using it.
3327 * value.h (readjust_indirect_value_type): Update function
3328 signature and comment.
3329
876518dd
TV
33302020-07-25 Tom de Vries <tdevries@suse.de>
3331
3332 PR symtab/26243
3333 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
3334 entries.
3335
f6720b1c
AM
33362020-07-24 Aaron Merey <amerey@redhat.com>
3337
3338 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
3339 * configure: Rebuild.
3340
513487e1
KB
33412020-07-23 Kevin Buettner <kevinb@redhat.com>
3342
3343 PR corefiles/26294
3344 * corelow.c (_initialize_corelow): Add period to help text
3345 for "maintenance print core-file-backed-mappings".
3346
e7bc9db8
PA
33472020-07-23 Pedro Alves <pedro@palves.net>
3348
3349 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
3350 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
3351 meanwhile.
3352 * frame.c (frame_cache_generation, get_frame_cache_generation):
3353 New.
3354 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
3355 (get_prev_frame_if_no_cycle): On exception, don't touch
3356 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
3357 * frame.h (get_frame_cache_generation): Declare.
3358
90fcc466
TV
33592020-07-23 Tom de Vries <tdevries@suse.de>
3360
3361 PR tui/26282
3362 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
3363 New default constructor.
3364
78344df7
AB
33652020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
3366
3367 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
3368 exclude non-statement entries.
3369
b089853a
KB
33702020-07-22 Kevin Buettner <kevinb@redhat.com>
3371
3372 * NEWS (New commands): Mention new command
3373 "maintenance print core-file-backed-mappings".
3374
09c2f5d4
KB
33752020-07-22 Kevin Buettner <kevinb@redhat.com>
3376
3377 * corelow.c (gdbcmd.h): Include.
3378 (core_target::info_proc_mappings): New method.
3379 (get_current_core_target): New function.
3380 (maintenance_print_core_file_backed_mappings): New function.
3381 (_initialize_corelow): Add core-file-backed-mappings to
3382 "maint print" commands.
3383
9c5ec5c2 33842020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 3385
9c5ec5c2
KB
3386 * linux-tdep.c (dump_note_entry_p): New function.
3387 (linux_dump_mapping_p_ftype): New typedef.
3388 (linux_find_memory_regions_full): Add new parameter,
3389 should_dump_mapping_p.
3390 (linux_find_memory_regions): Adjust call to
3391 linux_find_memory_regions_full.
3392 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
3393 call to linux_find_memory_regions_full.
3394
db082f59
KB
33952020-07-22 Kevin Buettner <kevinb@redhat.com>
3396
3397 * corelow.c (solist.h, unordered_map): Include.
3398 (class core_target): Add field m_core_file_mappings and
3399 method build_file_mappings.
3400 (core_target::core_target): Call build_file_mappings.
3401 (core_target::~core_target): Free memory associated with
3402 m_core_file_mappings.
3403 (core_target::build_file_mappings): New method.
3404 (core_target::xfer_partial): Use m_core_file_mappings
3405 for memory transfers.
3406 * linux-tdep.c (linux_read_core_file_mappings): New
3407 function.
3408 (linux_core_info_proc_mappings): Rewrite to use
3409 linux_read_core_file_mappings.
3410 (linux_init_abi): Register linux_read_core_file_mappings.
3411
7e183d27
KB
34122020-07-22 Kevin Buettner <kevinb@redhat.com>
3413
3414 * arch-utils.c (default_read_core_file_mappings): New function.
3415 * arch-utils.c (default_read_core_file_mappings): Declare.
3416 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
3417 * gdbarch.h, gdbarch.c: Regenerate.
3418
2735d421
KB
34192020-07-22 Kevin Buettner <kevinb@redhat.com>
3420
3421 PR corefiles/25631
3422 * corelow.c (core_target:xfer_partial): Revise
3423 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
3424 case after first checking the stratum beneath the core
3425 target.
3426 (has_all_memory): Return true.
3427 * target.c (raw_memory_xfer_partial): Revise comment
3428 regarding use of has_all_memory.
3429
e56cb451
KB
34302020-07-22 Kevin Buettner <kevinb@redhat.com>
3431
3432 * exec.h (section_table_xfer_memory): Revise declaration,
3433 replacing section name parameter with an optional callback
3434 predicate.
3435 * exec.c (section_table_xfer_memory): Likewise.
3436 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
3437 of section_table_xfer_memory.
3438
32fa152e
TT
34392020-07-22 Tom Tromey <tromey@adacore.com>
3440
3441 * mi/mi-cmd-stack.c (list_args_or_locals): Use
3442 lookup_symbol_search_name.
3443
a67a1c41
AB
34442020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
3445
3446 * python/py-registers.c (gdbpy_register_object_data_init): Remove
3447 redundant local variable.
3448 (gdbpy_get_register_descriptor): Extract descriptor vector as a
3449 reference, not pointer, update code accordingly.
3450
a7b4ff4f
SM
34512020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3452 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3453
3454 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
3455 * jit.c (jit_breakpoint_re_set_internal): Use the
3456 `skip_jit_symbol_lookup` field.
3457
2340e834
SM
34582020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3459 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3460
3461 * jit.c (jit_read_descriptor): Define the descriptor address once,
3462 use twice.
3463 (jit_breakpoint_deleted): Move the declaration of the loop variable
3464 `iter` into the loop header.
3465 (jit_breakpoint_re_set_internal): Move the declaration of the local
3466 variable `objf_data` to the first point of definition.
3467 (jit_event_handler): Move the declaration of local variables
3468 `code_entry`, `entry_addr`, and `objf` to their first point of use.
3469 Rename `objf` to `jited`.
3470
c1072906
SM
34712020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3472
3473 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
3474 Remove.
3475 * jit.c (get_jiter_objfile_data): Update.
3476
c8474dc3
TBA
34772020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3478 Simon Marchi <simon.marchi@polymtl.ca>
3479
3480 * jit.c (struct jit_program_space_data): Remove.
3481 (jit_program_space_key): Remove.
3482 (jiter_objfile_data::~jiter_objfile_data): Remove program space
3483 stuff.
3484 (get_jit_program_space_data): Remove.
3485 (jit_breakpoint_deleted): Iterate on all of the program space's
3486 objfiles.
3487 (jit_inferior_init): Likewise.
3488 (jit_breakpoint_re_set_internal): Likewise. Also change return
3489 type to void.
3490 (jit_breakpoint_re_set): Pass current_program_space to
3491 jit_breakpoint_re_set_internal.
3492
77208eb7
SM
34932020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3494
3495 * jit.h (struct jiter_objfile_data) <cached_code_address,
3496 jit_breakpoint>: Move to here from ...
3497 * jit.c (jit_program_space_data): ... here.
3498 (jiter_objfile_data::~jiter_objfile_data): Update.
3499 (jit_breakpoint_deleted): Update.
3500 (jit_breakpoint_re_set_internal): Update.
3501
8c1c720f
SM
35022020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3503
3504 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
3505 checks.
3506 (jit_read_descriptor): Remove NULL check.
3507 (jit_event_handler): Add an assertion.
3508
0e74a041
SM
35092020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3510
3511 * jit.h (struct jit_objfile_data): Split into...
3512 (struct jiter_objfile_data): ... this ...
3513 (struct jited_objfile_data): ... and this.
3514 * objfiles.h (struct objfile) <jit_data>: Remove.
3515 <jiter_data, jited_data>: New fields.
3516 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
3517 (jiter_objfile_data::~jiter_objfile_data): ... this.
3518 (get_jit_objfile_data): Rename to ...
3519 (get_jiter_objfile_data): ... this.
3520 (add_objfile_entry): Update.
3521 (jit_read_descriptor): Use get_jiter_objfile_data.
3522 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
3523 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
3524 (jit_inferior_exit_hook): Use objfile's jited_data field.
3525
238b5c9f
SM
35262020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3527
3528 * jit.h: Forward-declare `struct minimal_symbol`.
3529 (struct jit_objfile_data): Migrate to here from jit.c; also add a
3530 constructor, destructor, and an objfile* field.
3531 * jit.c (jit_objfile_data): Remove.
3532 (struct jit_objfile_data): Migrate from here to jit.h.
3533 (jit_objfile_data::~jit_objfile_data): New destructor
3534 implementation with code moved from free_objfile_data.
3535 (free_objfile_data): Delete.
3536 (get_jit_objfile_data): Update to use the jit_data field of objfile.
3537 (jit_find_objf_with_entry_addr): Ditto.
3538 (jit_inferior_exit_hook): Ditto.
3539 (_initialize_jit): Remove the call to
3540 register_objfile_data_with_cleanup.
3541 * objfiles.h (struct objfile) <jit_data>: New field.
3542
fe053b9e
TBA
35432020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3544
3545 * jit.h: Forward-declare `struct objfile`.
3546 (jit_event_handler): Add a second parameter, the JITer objfile.
3547 * jit.c (jit_read_descriptor): Change the signature to take the
3548 JITer objfile as an argument instead of the jit_program_space_data.
3549 (jit_inferior_init): Update the call to jit_read_descriptor.
3550 (jit_event_handler): Use the new JITer objfile argument when calling
3551 jit_read_descriptor.
3552 * breakpoint.c (handle_jit_event): Update the call to
3553 jit_event_handler to pass the JITer objfile.
3554
4cec0c66
JB
35552020-07-21 John Baldwin <jhb@FreeBSD.org>
3556
3557 * gdbarch.c: Regenerate.
3558 * gdbarch.h: Regenerate.
3559 * gdbarch.sh (handle_segmentation_fault): Remove method.
3560 * infrun.c (handle_segmentation_fault): Remove.
3561 (print_signal_received_reason): Remove call to
3562 handle_segmentation_fault.
3563
0e42f66a
JB
35642020-07-21 John Baldwin <jhb@FreeBSD.org>
3565
3566 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
3567 Rename to sparc64_linux_report_signal_info and add siggnal
3568 argument.
3569 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
3570 instead of sparc64_linux_handle_segmentation_fault.
3571
77bdfeb2
JB
35722020-07-21 John Baldwin <jhb@FreeBSD.org>
3573
3574 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
3575 i386_linux_report_signal_info instead of
3576 i386_linux_handle_segmentation_fault.
3577 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
3578 to i386_linux_report_signal_info and add siggnal argument.
3579 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
3580 of i386_linux_handle_segmentation_fault.
3581 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
3582 to i386_linux_report_signal_info and add siggnal argument.
3583
ad97bfc5
JB
35842020-07-21 John Baldwin <jhb@FreeBSD.org>
3585
3586 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
3587 hook if present.
3588
272bb05c
JB
35892020-07-21 John Baldwin <jhb@FreeBSD.org>
3590
3591 * gdbarch.c: Regenerate.
3592 * gdbarch.h: Regenerate.
3593 * gdbarch.sh (report_signal_info): New method.
3594 * infrun.c (print_signal_received_reason): Invoke gdbarch
3595 report_signal_info hook if present.
3596
baf8791e
AB
35972020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
3598
3599 * python/py-registers.c : Add 'unordered_map' include.
3600 (gdbpy_new_reggroup): Renamed to...
3601 (gdbpy_get_reggroup): ...this. Update to only create register
3602 group descriptors when needed.
3603 (gdbpy_reggroup_iter_next): Update.
3604
f7306dac
AB
36052020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
3606
3607 * python/py-registers.c (gdbpy_register_object_data): New static
3608 global.
3609 (gdbpy_register_object_data_init): New function.
3610 (gdbpy_new_register_descriptor): Renamed to...
3611 (gdbpy_get_register_descriptor): ...this, and update to reuse
3612 existing register descriptors where possible.
3613 (gdbpy_register_descriptor_iter_next): Update.
3614 (gdbpy_initialize_registers): Register new gdbarch data.
3615
05c309a8
SM
36162020-07-21 Simon Marchi <simon.marchi@efficios.com>
3617
3618 * linux-nat.c (stopped_pids): Make static.
3619
d1fd641e
SM
36202020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
3621
3622 PR ada/26235
3623 * gdbtypes.c (ada_discrete_type_low_bound,
3624 ada_discrete_type_high_bound): Handle undefined bounds.
3625
1de14d77
KR
36262020-07-21 Kamil Rytarowski <n54@gmx.com>
3627
3628 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
3629 declaration.
3630 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
3631 function.
3632
ed810cc7
JB
36332020-07-20 John Baldwin <jhb@FreeBSD.org>
3634
3635 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
3636 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
3637 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
3638 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
3639 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
3640 method.
3641
ae5369e7
LC
36422020-07-20 Ludovic Courtès <ludo@gnu.org>
3643
3644 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
3645 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
3646 which are deprecated in Guile 3.0.
3647 * configure.ac (try_guile_versions): Add "guile-3.0".
3648 * configure (try_guile_versions): Regenerate.
3649 * NEWS: Update entry.
3650
68cf161c
LC
36512020-07-20 Ludovic Courtès <ludo@gnu.org>
3652 Doug Evans <dje@google.com>
3653
3654 PR gdb/21104
3655 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
3656 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
3657 USING_GUILE_BEFORE_2_2.
3658 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
3659 Change type to 'scm_t_port_type *'.
3660 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
3661 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
3662 parameter and honor it. Update callers.
3663 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
3664 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
3665 functions.
3666 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
3667 USING_GUILE_BEFORE_2_2.
3668 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
3669 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
3670 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
3671 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
3672 and 'SCM_PORT_TYPE'.
3673 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
3674 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
3675 (gdbscm_memory_port_read, gdbscm_memory_port_write)
3676 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
3677 [!USING_GUILE_BEFORE_2_2]: New functions.
3678 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
3679 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
3680 'gdbscm_memory_port_read'.
3681 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
3682 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
3683 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
3684 function.
3685 (ioscm_init_memory_port): Remove.
3686 (ioscm_init_memory_port_stream): New function
3687 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
3688 function.
3689 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
3690 Return scm_from_uint (0).
3691 (gdbscm_set_memory_port_read_buffer_size_x)
3692 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
3693 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
3694 Return scm_from_uint (0).
3695 (gdbscm_set_memory_port_write_buffer_size_x)
3696 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
3697 * configure.ac (try_guile_versions): Add "guile-2.2".
3698 * configure: Regenerate.
3699 * NEWS: Add entry.
3700
aee91db3
TT
37012020-07-18 Tom Tromey <tom@tromey.com>
3702
3703 * linux-nat.c (linux_multi_process): Remove.
3704 (linux_nat_target::supports_multi_process): Return true.
3705
0e267416
AB
37062020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
3707
3708 * arch/riscv.c (riscv_tdesc_cache): Change map type.
3709 (riscv_lookup_target_description): Return pointer out of
3710 unique_ptr.
3711 * target-descriptions.c (allocate_target_description): Add
3712 comment.
3713 (target_desc_deleter::operator()): Likewise.
3714 * target-descriptions.h (struct target_desc_deleter): Moved to
3715 gdbsupport/tdesc.h.
3716 (target_desc_up): Likewise.
3717
f80c8ec4
TT
37182020-07-17 Tom Tromey <tromey@adacore.com>
3719
3720 * linux-nat.c (linux_nat_target::supports_non_stop)
3721 (linux_nat_target::always_non_stop_p): Use "true".
3722 (linux_nat_target::supports_disable_randomization): Use "true" and
3723 "false".
3724
d0ce17d8
CT
37252020-07-16 Caroline Tice <cmtice@google.com>
3726
3727 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
3728 (RNGLIST_HEADER_SIZE64): New constant definition.
3729 (struct dwop_section_names): Add rnglists_dwo.
3730 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
3731 (struct loclist_header): Rename to 'loclists_rnglists_header'.
3732 (struct dwo_sections): Add rnglists field.
3733 (read_attribut_reprocess): Add tag parameter.
3734 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
3735 (cu_debug_rnglists_section): New function (decl & definition).
3736 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
3737 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
3738 die whose range is being checked; get rnglist section from
3739 cu_debug_rnglists_section, to get from either objfile or dwo file as
3740 appropriate. Add cases for DW_RLE_base_addressx,
3741 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
3742 the base address to DW_RLE_offset_pairs (not to all ranges), moving
3743 test inside if-condition and updating complaint message.
3744 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
3745 dwarf2_rnglists_process.
3746 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
3747 dwarf2_ranges_process.
3748 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
3749 need_ranges_base and update comment appropriately. Also pass die tag
3750 to dwarf2_ranges_read.
3751 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
3752 need_ranges_base and update comment appropriately. Also pass die tag
3753 to dwarf2_ranges_process.
3754 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
3755 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
3756 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
3757 need_ranges_base and update comment appropriately. Also pass die tag
3758 to read_attribute_reprocess and dwarf2_ranges_read.
3759 (read_loclist_header): Rename function to read_loclists_rnglists_header,
3760 and update function comment appropriately.
3761 (read_loclist_index): Call read_loclists_rnglists_header instead of
3762 read_loclist_header.
3763 (read_rnglist_index): New function.
3764 (read_attribute_reprocess): Add tag parameter. Add code for
3765 DW_FORM_rnglistx, passing tag to read_rnglist_index.
3766 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
3767
3dcc261c
AB
37682020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
3769
3770 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
3771 being resolved.
3772
ccb9eba6
AB
37732020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
3774
3775 * arch-utils.c (show_architecture): Update formatting of messages.
3776
cf88be68
SM
37772020-07-12 Simon Marchi <simon.marchi@efficios.com>
3778
3779 * gdbtypes.h (struct type) <bounds>: Handle array and string
3780 types.
3781 * ada-lang.c (assign_aggregate): Use type::bounds on
3782 array/string type.
3783 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
3784 * c-varobj.c (c_number_of_children): Likewise.
3785 (c_describe_child): Likewise.
3786 * eval.c (evaluate_subexp_for_sizeof): Likewise.
3787 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
3788 (f_type_print_base): Likewise.
3789 * f-valprint.c (f77_array_offset_tbl): Likewise.
3790 (f77_get_upperbound): Likewise.
3791 (f77_print_array_1): Likewise.
3792 * guile/scm-type.c (gdbscm_type_range): Likewise.
3793 * m2-typeprint.c (m2_array): Likewise.
3794 (m2_is_long_set_of_type): Likewise.
3795 * m2-valprint.c (get_long_set_bounds): Likewise.
3796 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
3797 * python/py-type.c (typy_range): Likewise.
3798 * rust-lang.c (rust_internal_print_type): Likewise.
3799 * type-stack.c (type_stack::follow_types): Likewise.
3800 * valarith.c (value_subscripted_rvalue): Likewise.
3801 * valops.c (value_cast): Likewise.
3802
509971ae
SM
38032020-07-12 Simon Marchi <simon.marchi@efficios.com>
3804
3805 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
3806 callers to use the equivalent accessor methods.
3807
107406b7
SM
38082020-07-12 Simon Marchi <simon.marchi@efficios.com>
3809
3810 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
3811 (struct type) <bit_stride>: New method.
3812 (TYPE_BIT_STRIDE): Remove.
3813 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
3814
bb789949
SM
38152020-07-12 Simon Marchi <simon.marchi@efficios.com>
3816
3817 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
3818 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
3819 callers to use the equivalent accessor methods instead.
3820
39498edb
SM
38212020-07-12 Simon Marchi <simon.marchi@efficios.com>
3822
3823 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
3824 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
3825 callers to use the equivalent accessor methods instead.
3826
3b606f38
SM
38272020-07-12 Simon Marchi <simon.marchi@efficios.com>
3828
3829 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
3830 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
3831 to use dynamic_prop::kind.
3832
064d9cb9
SM
38332020-07-12 Simon Marchi <simon.marchi@efficios.com>
3834
3835 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
3836 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
3837 to get the bound property's kind and check against
3838 PROP_UNDEFINED.
3839
5537ddd0
SM
38402020-07-12 Simon Marchi <simon.marchi@efficios.com>
3841
3842 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
3843 all callers to use type::range_bounds followed by
3844 dynamic_prop::{low,high}.
3845
8c2e4e06
SM
38462020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
3847
3848 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
3849 const_val, set_const_val, baton, set_locexpr, set_loclist,
3850 set_addr_offset, variant_parts, set_variant_parts,
3851 original_type, set_original_type>: New methods.
3852 <kind>: Rename to...
3853 <m_kind>: ... this. Update all users to use the new methods
3854 instead.
3855 <data>: Rename to...
3856 <m_data>: ... this. Update all users to use the new methods
3857 instead.
3858
7c6f2712
SM
38592020-07-12 Simon Marchi <simon.marchi@efficios.com>
3860
3861 * gdbtypes.c (get_discrete_bounds): Return failure if
3862 the range type's bounds are not both defined and constant
3863 values.
3864 (get_array_bounds): Update comment. Remove undefined bound check.
3865
599088e3
SM
38662020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
3867
3868 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
3869 the type::bounds method directly.
3870
c4dfcb36
SM
38712020-07-12 Simon Marchi <simon.marchi@efficios.com>
3872
3873 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
3874 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
3875 are used to set the range type's bounds to use set_bounds.
3876
0a278aa7
PW
38772020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3878
3879 * exec.c (_initialize_exec): Update exec-file-mismatch help.
3880
cce20f10
PA
38812020-07-10 Pedro Alves <pedro@palves.net>
3882
3883 * gdbthread.h (inferior_ref): Define.
3884 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
3885 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
3886 * thread.c
3887 (scoped_restore_current_thread::restore):
3888 Adjust to gdb::ref_ptr.
3889 (scoped_restore_current_thread::~scoped_restore_current_thread):
3890 Remove manual decref handling.
3891 (scoped_restore_current_thread::scoped_restore_current_thread):
3892 Adjust to use
3893 inferior_ref::new_reference/thread_info_ref::new_reference.
3894 Incref the thread before calling get_frame_id instead of after.
3895 Let TARGET_CLOSE_ERROR propagate.
3896
6d7aa592
PA
38972020-07-10 Pedro Alves <pedro@palves.net>
3898
3899 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
3900 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
3901 NOT_AVAILABLE_ERROR.
3902 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
3903 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
3904
b3e3a4c1
SM
39052020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3906 Pedro Alves <pedro@palves.net>
3907
3908 PR gdb/26199
3909 * infrun.c (threads_are_resumed_pending_p): Delete.
3910 (do_target_wait): Remove threads_are_executing and
3911 threads_are_resumed_pending_p checks from the inferior_matches
3912 lambda. Update comments.
3913
d6cc5d98
PA
39142020-07-10 Pedro Alves <pedro@palves.net>
3915
3916 PR gdb/26199
3917 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
3918 executing threads.
3919
7d3badc6
PA
39202020-07-10 Pedro Alves <pedro@palves.net>
3921
3922 PR gdb/26199
3923 * infrun.c (handle_no_resumed): Handle multiple targets.
3924
42bd97a6
PA
39252020-07-10 Pedro Alves <pedro@palves.net>
3926
3927 PR gdb/26199
3928 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
3929 target_is_async_p.
3930
43667cc6
PA
39312020-07-10 Pedro Alves <pedro@palves.net>
3932
3933 PR gdb/26199
3934 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
3935 threads, not all threads.
3936
96118d11
PA
39372020-07-10 Pedro Alves <pedro@palves.net>
3938
3939 PR gdb/26199
3940 * remote.c (remote_target::open_1): Pass remote target pointer as
3941 data to create_async_event_handler.
3942 (remote_async_inferior_event_handler): Mark async event handler
3943 before returning if the remote target still has either pending
3944 events or unacknowledged notifications.
3945
54904d81
JB
39462020-07-10 John Baldwin <jhb@FreeBSD.org>
3947
3948 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
3949 declaration.
3950 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
3951 function.
3952
f37e5866
JB
39532020-07-09 John Baldwin <jhb@FreeBSD.org>
3954
3955 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
3956 inferior_ptid.
3957
fc238d4a
JB
39582020-07-09 John Baldwin <jhb@FreeBSD.org>
3959
3960 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
3961 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
3962 AT_FREEBSD_PS_STRINGS.
3963
6e2469ff
HD
39642020-07-08 Hannes Domani <ssbssa@yahoo.de>
3965
3966 * auto-load.c (auto_load_objfile_script_1): Convert drive part
3967 of debugfile path on Windows.
3968
d1076c41
JB
39692020-07-08 John Baldwin <jhb@FreeBSD.org>
3970
3971 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
3972 argument to 'data'.
3973
15f3b077
TT
39742020-07-08 Tom Tromey <tromey@adacore.com>
3975
3976 * ada-lang.c (ada_exception_message_1): Use read_memory.
3977
9fc501fd
AB
39782020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3979
3980 PR python/22748
3981 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
3982 special handling for inline frames.
3983 * findvar.c (value_of_register_lazy): Skip inline frames when
3984 creating lazy register values.
3985 * frame.c (frame_id_computed_p): Delete definition.
3986 * frame.h (frame_id_computed_p): Delete declaration.
3987
64cb3757
AB
39882020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3989
3990 * NEWS: Mention additions to Python API.
3991 * python/py-arch.c (archpy_register_groups): New function.
3992 (arch_object_methods): Add 'register_groups' method.
3993 * python/py-registers.c (reggroup_iterator_object): New struct.
3994 (reggroup_object): New struct.
3995 (gdbpy_new_reggroup): New function.
3996 (gdbpy_reggroup_to_string): New function.
3997 (gdbpy_reggroup_name): New function.
3998 (gdbpy_reggroup_iter): New function.
3999 (gdbpy_reggroup_iter_next): New function.
4000 (gdbpy_new_reggroup_iterator): New function
4001 (gdbpy_initialize_registers): Register new types.
4002 (reggroup_iterator_object_type): Define new Python type.
4003 (gdbpy_reggroup_getset): New static global.
4004 (reggroup_object_type): Define new Python type.
4005 * python/python-internal.h
4006
0f767f94
AB
40072020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4008
4009 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
4010 * python/py-arch.c (archpy_registers): New function.
4011 (arch_object_methods): Add 'registers' method.
4012 * python/py-registers.c: New file.
4013 * python/python-internal.h
4014 (gdbpy_new_register_descriptor_iterator): Declare.
4015 (gdbpy_initialize_registers): Declare.
4016 * python/python.c (do_start_initialization): Call
4017 gdbpy_initialize_registers.
4018 * NEWS: Mention additions to the Python API.
4019
87dbc774
AB
40202020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4021
4022 * NEWS: Mention new Python API method.
4023 * python/py-unwind.c (pending_framepy_architecture): New function.
4024 (pending_frame_object_methods): Add architecture method.
4025
3bc98c0c
AB
40262020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4027
4028 * gdbarch.c: Regenerate.
4029 * gdbarch.h: Regenerate.
4030 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
4031 (gdbarch_data): Use internal_error for the case where
4032 deprecated_set_gdbarch_data was originally needed.
4033 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
4034 and use passed in obstack.
4035 (libunwind_frame_set_descr): Should no longer get back NULL from
4036 gdbarch_data.
4037 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
4038 type.
4039 * user-regs.c (user_regs_init): Update parameters, and use passed
4040 in obstack.
4041 (user_reg_add): Should no longer get back NULL from gdbarch_data.
4042 (_initialize_user_regs): Register as a pre-init gdbarch data type.
4043
d8cc8af6
TV
40442020-07-06 Tom de Vries <tdevries@suse.de>
4045
4046 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
4047 End-Of-Sequence in lte_is_less_than.
4048 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
4049 "gdb: Don't reorder line table entries too much when sorting".
4050
947f7597
TV
40512020-07-06 Tom de Vries <tdevries@suse.de>
4052
4053 PR tui/26205
4054 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
4055
1e7c1b22
TV
40562020-07-05 Tom de Vries <tdevries@suse.de>
4057
4058 PR build/26187
4059 * inferior.h (struct infcall_suspend_state_deleter): If available, use
4060 std::uncaught_exceptions instead of deprecated
4061 std::uncaught_exception.
4062
a36158ec
SM
40632020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4064
4065 * macroexp.h (macro_stringify): Return
4066 gdb::unique_xmalloc_ptr<char>.
4067 * macroexp.c (macro_stringify): Likewise.
4068 * macrotab.c (fixup_definition): Update.
4069
14d960c8
SM
40702020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4071
4072 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
4073 (lex_one_token): Update.
4074 * macroexp.c (struct macro_buffer) <release>: Return
4075 gdb::unique_xmalloc_ptr<char>.
4076 (macro_stringify): Update.
4077 (macro_expand): Update.
4078 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
4079 * macroexp.h (macro_expand_next): Likewise.
4080
211d5b1c
SM
40812020-07-02 Simon Marchi <simon.marchi@efficios.com>
4082
4083 * macroexp.h (macro_lookup_ftype): Remove.
4084 (macro_expand, macro_expand_once, macro_expand_next): Remove
4085 lookup function parameters, add scope parameter.
4086 * macroexp.c (scan, substitute_args, expand, maybe_expand,
4087 macro_expand, macro_expand_once, macro_expand_next): Likewise.
4088 * macroscope.h (standard_macro_lookup): Change parameter type
4089 to macro_scope.
4090 * macroscope.c (standard_macro_lookup): Likewise.
4091 * c-exp.y (lex_one_token): Update.
4092 * macrocmd.c (macro_expand_command): Likewise.
4093 (macro_expand_once_command): Likewise.
4094
b1a35af2
SM
40952020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4096
4097 * inf-loop.c (inferior_event_handler): Remove client_data param.
4098 * inf-loop.h (inferior_event_handler): Likewise.
4099 * infcmd.c (step_1): Adjust.
4100 * infrun.c (proceed): Adjust.
4101 (fetch_inferior_event): Remove client_data param.
4102 (infrun_async_inferior_event_handler): Adjust.
4103 * infrun.h (fetch_inferior_event): Remove `void *` param.
4104 * linux-nat.c (handle_target_event): Adjust.
4105 * record-btrace.c (record_btrace_handle_async_inferior_event):
4106 Adjust.
4107 * record-full.c (record_full_async_inferior_event_handler):
4108 Adjust.
4109 * remote.c (remote_async_inferior_event_handler): Adjust.
4110
1cdf9e33
TT
41112020-07-01 Tom Tromey <tom@tromey.com>
4112
4113 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
4114 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
4115
32c1e210
TT
41162020-07-01 Tom Tromey <tom@tromey.com>
4117
4118 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
4119 tui_gen_win_info.
4120 (tui_win_info::make_window): Merge with
4121 tui_gen_win_info::make_window.
4122 (tui_win_info::make_visible): Move from tui_gen_win_info.
4123 * tui/tui-win.c (tui_win_info::max_width): Move from
4124 tui_gen_win_info.
4125 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
4126 type.
4127 <window_factory>: Likewise.
4128 * tui/tui-layout.c (tui_win_info::resize): Move from
4129 tui_gen_win_info.
4130 (make_standard_window): Change return type.
4131 (get_locator_window, tui_get_window_by_name): Likewise.
4132 (tui_layout_window::apply): Remove a cast.
4133 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
4134 (struct tui_win_info): Merge with tui_gen_win_info.
4135 (struct tui_gen_win_info): Remove.
4136
a30cb6da
TT
41372020-07-01 Tom Tromey <tom@tromey.com>
4138
4139 * tui/tui-stack.h (struct tui_locator_window): Derive from
4140 tui_win_info.
4141 <do_scroll_horizontal, do_scroll_vertical>: New methods.
4142 <can_box>: New method.
4143
1eb2161f
TT
41442020-07-01 Tom Tromey <tom@tromey.com>
4145
4146 * tui/tui-stack.h (struct tui_locator_window): Remove body.
4147
7134f2eb
TT
41482020-07-01 Tom Tromey <tom@tromey.com>
4149
4150 * tui/tui-regs.c (tui_data_window::display_registers_from)
4151 (tui_data_window::display_registers_from)
4152 (tui_data_window::first_data_item_displayed)
4153 (tui_data_window::delete_data_content_windows): Update.
4154 (tui_data_window::refresh_window, tui_data_window::no_refresh):
4155 Remove.
4156 (tui_data_window::check_register_values): Update.
4157 (tui_data_item_window::rerender): Add parameters. Update.
4158 (tui_data_item_window::refresh_window): Remove.
4159 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
4160 virtual.
4161 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
4162 tui_gen_win_info.
4163 <refresh_window, max_height, min_height>: Remove.
4164 <rerender>: Add parameters.
4165 <x, y, visible>: New members.
4166 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
4167 <m_item_width>: New member.
4168
22b7b041
TT
41692020-07-01 Tom Tromey <tom@tromey.com>
4170
4171 * tui/tui-regs.c (tui_data_window::show_register_group)
4172 (tui_data_window::check_register_values): Update.
4173 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
4174 from item_no.
4175
c9753adb
TT
41762020-07-01 Tom Tromey <tom@tromey.com>
4177
4178 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
4179 useless "if".
4180
9ab26b4a
TT
41812020-07-01 Tom Tromey <tom@tromey.com>
4182
4183 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
4184 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
4185
e555083f
TT
41862020-07-01 Tom Tromey <tom@tromey.com>
4187
4188 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
4189 * tui/tui-winsource.h (enum tui_line_or_address_kind)
4190 (struct tui_line_or_address): Move from tui-data.h.
4191 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
4192 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
4193 (tui_cmd_window, tui_source_window_base, tui_source_window)
4194 (tui_disasm_window): Don't declare.
4195 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
4196 to tui-winsource.h.
4197 (SINGLE_KEY): Move to tui-stack.c.
4198
7a02bab7
TT
41992020-07-01 Tom Tromey <tom@tromey.com>
4200
4201 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
4202 std::string.
4203 * tui/tui-regs.c (class tab_expansion_file): New.
4204 (tab_expansion_file::write): New method.
4205 (tui_register_format): Change return type. Use
4206 tab_expansion_file.
4207 (tui_get_register, tui_data_window::display_registers_from)
4208 (tui_data_item_window::rerender): Update.
4209 * tui/tui-io.h (tui_expand_tabs): Don't declare.
4210 * tui/tui-io.c (tui_expand_tabs): Remove.
4211
ea68593b
TT
42122020-07-01 Tom Tromey <tom@tromey.com>
4213
4214 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
4215
a8caed5d
FS
42162020-07-01 Fangrui Song <maskray@google.com>
4217
4218 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
4219
9cdf9820
AKS
42202020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4221
4222 * dwarf2/read.c (set_die_type): Removed conditions to restrict
4223 forms for DW_AT_associated and DW_AT_allocated attributes,
4224 which is already checked in function attr_to_dynamic_prop.
4225
a1520ad8
TT
42262020-06-30 Tom Tromey <tromey@adacore.com>
4227
4228 * dwarf2/read.c (quirk_rust_enum): Correctly call
4229 alloc_rust_variant for default-less enum.
4230
5ac58899
TT
42312020-06-30 Tom Tromey <tromey@adacore.com>
4232
4233 PR build/26183:
4234 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
4235 gdb::to_string.
4236
19b187a9
SM
42372020-06-29 Simon Marchi <simon.marchi@efficios.com>
4238
4239 * gdbarch.sh (displaced_step_copy_insn): Update doc.
4240 * gdbarch.h: Re-generate.
4241
cd4c4c07
TT
42422020-06-28 Tom Tromey <tom@tromey.com>
4243
4244 * command.h (cmd_types): Remove.
4245 (cmd_type): Don't declare.
4246 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
4247 typedef.
4248 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
4249 * cli/cli-decode.c (cmd_type): Remove.
4250
05779d57
PA
42512020-06-27 Pedro Alves <palves@redhat.com>
4252
4253 * fork-child.c (prefork_hook): Adjust.
4254 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
4255 Delete.
4256 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
4257 * inferior.c (inferior::set_tty, inferior::tty): New methods.
4258 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
4259 Remove declarations.
4260 (struct inferior) <set_tty, tty>: New methods.
4261 (struct inferior) <terminal>: Rename to ...
4262 (struct inferior) <m_terminal>: ... this and make private.
4263 * main.c (captured_main_1): Adjust.
4264 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
4265 (mi_cmd_inferior_tty_show): Adjust.
4266 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
4267 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
4268
1776e3e5
NA
42692020-06-26 Nick Alcock <nick.alcock@oracle.com>
4270
4271 * configure.ac: Add --enable-libctf: handle --disable-static
4272 properly.
4273 * acinclude.m4: sinclude ../config/enable.m4.
4274 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
4275 (LIBCTF): Substitute in.
4276 (CTF_DEPS): New, likewise.
4277 (CLIBS): libctf needs symbols from libbfd: move earlier.
4278 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
4279 flags.
4280 * ctfread.c: Surround in ENABLE_LIBCTF.
4281 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
4282 * configure: Regenerate.
4283 * config.in: Likewise.
4284
58373b80
SM
42852020-06-25 Simon Marchi <simon.marchi@efficios.com>
4286
4287 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
4288
277474ee
SM
42892020-06-25 Simon Marchi <simon.marchi@efficios.com>
4290
4291 * inferior.h (struct inferior) <terminal>: Change type to
4292 gdb::unique_xmalloc_ptr<char>.
4293 * inferior.c (inferior::~inferior): Don't free inf->terminal.
4294 * infcmd.c (set_inferior_io_terminal): Don't free terminal
4295 field, adjust to unique pointer.
4296 (get_inferior_io_terminal): Adjust to unique pointer.
4297
6d74da72
AB
42982020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4299
4300 * riscv-tdep.c (riscv_print_registers_info): Loop over all
4301 registers, not just the known core set of registers.
4302
2e52d038
AB
43032020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4304
4305 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
4306 fflags, frm, and fcsr registers.
4307 (riscv_register_reggroup_p): Remove unknown CSRs from save and
4308 restore groups.
4309 (riscv_tdesc_unknown_reg): New function.
4310 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
4311 tdesc_use_registers.
4312 * riscv-tdep.h (struct gdbarch_tdep): Add
4313 unknown_csrs_first_regnum, unknown_csrs_count,
4314 duplicate_fflags_regnum, duplicate_frm_regnum, and
4315 duplicate_fcsr_regnum fields.
4316
be64fd07
AB
43172020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4318
4319 * target-descriptions.c (tdesc_use_registers): Add new parameter a
4320 callback, use the callback (when not null) to help number unknown
4321 registers.
4322 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
4323 (tdesc_use_registers): Add extra parameter to declaration.
4324
3b9fce96
AB
43252020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4326
4327 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
4328 in the file.
4329 (class riscv_pending_register_alias): Likewise.
4330 (riscv_register_feature::register_info): Change 'required_p' field
4331 to 'required', and change its type. Add 'check' member function.
4332 (riscv_register_feature::register_info::check): Define new member
4333 function.
4334 (riscv_xreg_feature): Change initialisation of 'required' field.
4335 (riscv_freg_feature): Likewise.
4336 (riscv_virtual_feature): Likewise.
4337 (riscv_csr_feature): Likewise.
4338 (riscv_check_tdesc_feature): Take extra parameter, the csr
4339 tdesc_feature, rewrite the function to use the new
4340 riscv_register_feature::register_info::check function.
4341 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
4342
865bad26
AB
43432020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4344
4345 * features/Makefile: Remove all references to the deleted files
4346 below.
4347 * features/riscv/32bit-csr.c: Deleted.
4348 * features/riscv/32bit-csr.xml: Deleted.
4349 * features/riscv/64bit-csr.c: Deleted.
4350 * features/riscv/64bit-csr.xml: Deleted.
4351 * features/riscv/rebuild-csr-xml.sh: Deleted.
4352
ed69cbc8
AB
43532020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4354
4355 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
4356 whitespace error for declaration of names member variable.
4357 (struct riscv_register_feature): Add new prefer_first_name member
4358 variable, and fix whitespace error in declaration of registers.
4359 (riscv_xreg_feature): Initialize prefer_first_name field.
4360 (riscv_freg_feature): Likewise.
4361 (riscv_virtual_feature): Likewise.
4362 (riscv_csr_feature): Likewise.
4363 (riscv_register_name): Expand on comments. Remove register name
4364 modifications for CSR and virtual registers.
4365
4445e8f5
AB
43662020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4367
4368 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
4369 errors.
4370
767a879e
AB
43712020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4372
4373 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
4374 riscv-opc.h.
4375 (class riscv_pending_register_alias): New class.
4376 (riscv_check_tdesc_feature): Take vector of pending aliases and
4377 populate it as appropriate.
4378 (riscv_setup_register_aliases): Delete.
4379 (riscv_gdbarch_init): Create vector of pending aliases and pass it
4380 to riscv_check_tdesc_feature in all cases. Use the vector to
4381 create the register aliases.
4382
bb6e55f3
RO
43832020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4384
4385 * sol2-tdep.c (sol2_static_transform_name): Remove.
4386 (sol2_init_abi): Don't register it.
4387 * gdbarch.sh (static_transform_name): Remove.
4388 * gdbarch.c, gdbarch.h: Regenerate.
4389
4390 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
4391 gdbarch_static_transform_name.
4392 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
4393 * stabsread.c (define_symbol) <'X'>: Remove.
4394 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
4395 handling.
4396 <'V'>: Likewise.
4397 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
4398 <'S'>: Remove call to gdbarch_static_transform_name.
4399
c6d36836
RO
44002020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4401
4402 * procfs.c (procfs_pre_trace): New function.
4403 (procfs_target::create_inferior): Pass it to fork_inferior.
4404
a7e6196b
RO
44052020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4406
4407 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
4408 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
4409 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
4410 sol2-tdep.o, sparc-sol2-tdep.o.
4411 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
4412 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
4413 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
4414 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
4415
d412e696
RO
44162020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4417
4418 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
4419 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
4420 Call sol2_init_abi.
4421 Remove calls to set_gdbarch_skip_solib_resolver,
4422 set_gdbarch_core_pid_to_str.
4423 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
4424 (i386_sol2_static_transform_name): Remove.
4425 (i386_sol2_init_abi): Call sol2_init_abi.
4426 Remove calls to set_gdbarch_sofun_address_maybe_missing,
4427 set_gdbarch_static_transform_name,
4428 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
4429 Use sol2_sigtramp_p.
4430 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
4431 (sol2_sigtramp_p): New function.
4432 (sol2_static_transform_name): New function.
4433 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
4434 (sol2_init_abi): New function.
4435 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
4436 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
4437 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
4438 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
4439 (sparc_sol2_static_transform_name): Remove.
4440 (sparc32_sol2_init_abi): Call sol2_init_abi.
4441 Remove calls to set_gdbarch_sofun_address_maybe_missing,
4442 set_gdbarch_static_transform_name,
4443 set_gdbarch_skip_solib_resolver,
4444 set_gdbarch_core_pid_to_str.
4445 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
4446 (sparc_sol2_static_transform_name): Remove
4447 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
4448 call sol2_sigtramp_p.
4449 (sparc64_sol2_init_abi): Call sol2_init_abi.
4450 Remove calls to set_gdbarch_sofun_address_maybe_missing,
4451 set_gdbarch_static_transform_name,
4452 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
4453
a8654e7d
PW
44542020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4455
4456 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
4457 * exec.c (validate_exec_file): If from_tty, set both
4458 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
4459 * symfile.c (symbol_file_add_with_addrs): if always_confirm
4460 and from_tty, unconditionally ask a confirmation.
4461
caa7fd04
AB
44622020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4463
4464 * target-descriptions.c (tdesc_architecture_name): Protect against
4465 NULL pointer dereference.
4466 (maint_print_xml_tdesc_cmd): New function.
4467 (_initialize_target_descriptions): Register new 'maint print
4468 xml-tdesc' command and give it the filename completer.
4469 * NEWS: Mention new 'maint print xml-tdesc' command.
4470
fbf42f4e
AB
44712020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4472
4473 * target-descriptions.c (class tdesc_compatible_info): New class.
4474 (struct target_desc): Change type of compatible vector.
4475 (tdesc_compatible_p): Update for change in type of
4476 target_desc::compatible.
4477 (tdesc_compatible_info_list): New function.
4478 (tdesc_compatible_info_arch_name): New function.
4479 (tdesc_add_compatible): Update for change in type of
4480 target_desc::compatible.
4481 (print_c_tdesc::visit_pre): Likewise.
4482
20821f4e
AB
44832020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4484
4485 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
4486 whitespace to underscore.
4487 (maint_print_c_tdesc_cmd): Use fake filename for target
4488 descriptions that came from the target.
4489 (_initialize_target_descriptions): Add filename command completion
4490 for 'maint print c-tdesc'.
4491
1fb5ee62
SM
44922020-06-23 Simon Marchi <simon.marchi@efficios.com>
4493
4494 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
4495 lines.
4496
fc3ecb3e
SM
44972020-06-23 Simon Marchi <simon.marchi@efficios.com>
4498
4499 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
4500 lines.
4501 (dwarf2_find_location_expression): Likewise.
4502 (call_site_parameter_matches): Likewise.
4503 (dwarf2_compile_expr_to_ax): Likewise.
4504 (disassemble_dwarf_expression): Likewise.
4505 (loclist_describe_location): Likewise.
4506
236ef034
PA
45072020-06-23 Pedro Alves <palves@redhat.com>
4508
4509 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
4510 progspace-and-thread.h. Include scoped-mock-context.h instead.
4511 (register_to_value_test): Use scoped_mock_context.
4512 * regcache.c: Include "scoped-mock-context.h".
4513 (cooked_read_test): Don't error out if a target is already pushed.
4514 Use scoped_mock_context. Adjust.
4515 * scoped-mock-context.h: New file.
4516
39e7ecca
AB
45172020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4518
4519 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
4520 initializer.
4521 (ada_language::is_string_type_p): New member function.
4522 * c-lang.c (c_language_data): Delete la_is_string_type_p
4523 initializer.
4524 (cplus_language_data): Likewise.
4525 (asm_language_data): Likewise.
4526 (minimal_language_data): Likewise.
4527 * d-lang.c (d_language_data): Likewise.
4528 * f-lang.c (f_is_string_type_p): Delete function, implementation
4529 moved to f_language::is_string_type_p.
4530 (f_language_data): Delete la_is_string_type_p initializer.
4531 (f_language::is_string_type_p): New member function,
4532 implementation from f_is_string_type_p.
4533 * go-lang.c (go_is_string_type_p): Delete function, implementation
4534 moved to go_language::is_string_type_p.
4535 (go_language_data): Delete la_is_string_type_p initializer.
4536 (go_language::is_string_type_p): New member function,
4537 implementation from go_is_string_type_p.
4538 * language.c (language_defn::is_string_type_p): Define new member
4539 function.
4540 (default_is_string_type_p): Make static, add comment copied from
4541 header file.
4542 (unknown_language_data): Delete la_is_string_type_p initializer.
4543 (unknown_language::is_string_type_p): New member function.
4544 (auto_language_data): Delete la_is_string_type_p initializer.
4545 (auto_language::is_string_type_p): New member function.
4546 * language.h (language_data): Delete la_is_string_type_p field.
4547 (language_defn::is_string_type_p): Declare new function.
4548 (default_is_string_type_p): Delete desclaration, move comment to
4549 definition.
4550 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
4551 moved to m2_language::is_string_type_p.
4552 (m2_language_data): Delete la_is_string_type_p initializer.
4553 (m2_language::is_string_type_p): New member function,
4554 implementation from m2_is_string_type_p.
4555 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
4556 initializer.
4557 * opencl-lang.c (opencl_language_data): Likewise.
4558 * p-lang.c (pascal_is_string_type_p): Delete function,
4559 implementation moved to pascal_language::is_string_type_p.
4560 (pascal_language_data): Delete la_is_string_type_p initializer.
4561 (pascal_language::is_string_type_p): New member function,
4562 implementation from pascal_is_string_type_p.
4563 * rust-lang.c (rust_is_string_type_p): Delete function,
4564 implementation moved to rust_language::is_string_type_p.
4565 (rust_language_data): Delete la_is_string_type_p initializer.
4566 (rust_language::is_string_type_p): New member function,
4567 implementation from rust_is_string_type_p.
4568 * valprint.c (val_print_scalar_or_string_type_p): Update call to
4569 is_string_type_p.
4570
4ffc13fb
AB
45712020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4572
4573 * ada-lang.c (ada_language_data): Delete la_print_typedef
4574 initializer.
4575 (ada_language::print_typedef): New member function.
4576 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
4577 (cplus_language_data): Likewise.
4578 (asm_language_data): Likewise.
4579 (minimal_language_data): Likewise.
4580 * d-lang.c (d_language_data): Likewise.
4581 * f-lang.c (f_language_data): Likewise.
4582 (f_language::print_typedef): New member function.
4583 * go-lang.c (go_language_data): Delete la_print_typedef
4584 initializer.
4585 * language.c (language_defn::print_typedef): Define member
4586 function.
4587 (unknown_language_data): Delete la_print_typedef initializer.
4588 (unknown_language::print_typedef): New member function.
4589 (auto_language_data): Delete la_print_typedef initializer.
4590 (auto_language::print_typedef): New member function.
4591 * language.h (language_data): Delete la_print_typedef field.
4592 (language_defn::print_typedef): Declare new member function.
4593 (LA_PRINT_TYPEDEF): Update call to print_typedef.
4594 (default_print_typedef): Delete declaration.
4595 * m2-lang.c (m2_language_data): Delete la_print_typedef
4596 initializer.
4597 (m2_language::print_typedef): New member function.
4598 * objc-lang.c (objc_language_data): Delete la_print_typedef
4599 initializer.
4600 * opencl-lang.c (opencl_language_data): Likewise.
4601 * p-lang.c (pascal_language_data): Likewise.
4602 (pascal_language::print_typedef): New member function.
4603 * rust-lang.c (rust_print_typedef): Delete function,
4604 implementation moved to rust_language::print_typedef.
4605 (rust_language): Delete la_print_typedef initializer.
4606 (rust_language::print_typedef): New member function,
4607 implementation from rust_print_typedef.
4608 * typeprint.c (default_print_typedef): Delete.
4609
d711ee67
AB
46102020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4611
4612 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
4613 (ada_language::printstr): New member function.
4614 * c-lang.c (c_language_data): Delete la_printstr 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_printstr): Rename to f_language::printstr.
4620 (f_language_data): Delete la_printstr initializer.
4621 (f_language::printstr): New member function, implementation from
4622 f_printstr.
4623 * go-lang.c (go_language_data): Delete la_printstr initializer.
4624 * language.c (language_defn::printstr): Define new member
4625 function.
4626 (unk_lang_printstr): Delete.
4627 (unknown_language_data): Delete la_printstr initializer.
4628 (unknown_language::printstr): New member function.
4629 (auto_language_data): Delete la_printstr initializer.
4630 (auto_language::printstr): New member function.
4631 * language.h (language_data): Delete la_printstr field.
4632 (language_defn::printstr): Declare new member function.
4633 (LA_PRINT_STRING): Update call to printstr.
4634 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
4635 (m2_language_data): Delete la_printstr initializer.
4636 (m2_language::printstr): New member function, implementation from
4637 m2_printstr.
4638 * objc-lang.c (objc_language_data): Delete la_printstr
4639 initializer.
4640 * opencl-lang.c (opencl_language_data): Likewise.
4641 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
4642 (pascal_language_data): Delete la_printstr initializer.
4643 (pascal_language::printstr): New member function, implementation
4644 from pascal_printstr.
4645 * p-lang.h (pascal_printstr): Delete declaration.
4646 * rust-lang.c (rust_printstr): Update header comment.
4647 (rust_language_data): Delete la_printstr initializer.
4648 (rust_language::printstr): New member function.
4649
52b50f2c
AB
46502020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4651
4652 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
4653 (ada_language::printchar): New member function.
4654 * c-lang.c (c_language_data): Delete la_printchar initializer.
4655 (cplus_language_data): Likewise.
4656 (asm_language_data): Likewise.
4657 (minimal_language_data): Likewise.
4658 * d-lang.c (d_language_data): Likewise.
4659 * f-lang.c (f_printchar): Rename to f_language::printchar.
4660 (f_language_data): Delete la_printchar initializer.
4661 (f_language::printchar): New member function, implementation from
4662 f_printchar.
4663 * go-lang.c (go_language_data): Delete la_printchar initializer.
4664 * language.c (unk_lang_printchar): Delete.
4665 (language_defn::printchar): Define new member function.
4666 (unknown_language_data): Delete la_printchar initializer.
4667 (unknown_language::printchar): New member function.
4668 (auto_language_data): Delete la_printchar initializer.
4669 (auto_language::printchar): New member function.
4670 * language.h (language_data): Delete la_printchar field.
4671 (language_defn::printchar): Declare new member function.
4672 (LA_PRINT_CHAR): Update call to printchar.
4673 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
4674 (m2_language::printchar): New member function.
4675 * objc-lang.c (objc_language_data): Delete la_printchar
4676 initializer.
4677 * opencl-lang.c (opencl_language_data): Likewise.
4678 * p-lang.c (pascal_language_data): Delete la_printchar
4679 initializer.
4680 (pascal_language::printchar): New member function.
4681 * rust-lang.c (rust_printchar): Rename to
4682 rust_language::printchar.
4683 (rust_language_data): Delete la_printchar initializer.
4684 (rust_language::printchar): New member function, implementation
4685 from rust_printchar.
4686
ec8cec5b
AB
46872020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4688
4689 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
4690 (ada_language_data): Delete la_emitchar initializer.
4691 (ada_language::emitchar): New member function, implementation from
4692 emit_char.
4693 * c-lang.c (c_language_data): Delete la_emitchar 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_emit_char): Rename to f_language::emitchar.
4699 (f_language_data): Delete la_emitchar initializer.
4700 (f_language::emitchar): New member function, implementation from
4701 f_emit_char.
4702 * go-lang.c (go_language_data): Delete la_emitchar initializer.
4703 * language.c (unk_lang_emit_char): Delete.
4704 (language_defn::emitchar): New member function definition.
4705 (unknown_language_data): Delete la_emitchar initializer.
4706 (unknown_language::emitchar): New member function.
4707 (auto_language_data): Delete la_emitchar initializer.
4708 (auto_language::emitchar): New member function.
4709 * language.h (language_data): Delete la_emitchar field.
4710 (language_defn::emitchar): New member field declaration.
4711 (LA_EMIT_CHAR): Update call to emitchar.
4712 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
4713 (m2_language_data): Delete la_emitchar initializer.
4714 (m2_language::emitchar): New member function, implementation from
4715 m2_emit_char.
4716 * objc-lang.c (objc_language_data): Delete la_emitchar
4717 initializer.
4718 * opencl-lang.c (opencl_language_data): Likewise.
4719 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
4720 (pascal_language_data): Delete la_emitchar initializer.
4721 (pascal_language::emitchar): New member function, implementation
4722 from pascal_emit_char.
4723 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
4724 (rust_language_data): Delete la_emitchar initializer.
4725 (rust_language::emitchar): New member function, implementation
4726 from rust_emitchar.
4727
1bf9c363
AB
47282020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4729
4730 * ada-lang.c (resolve): Rename to ada_language::post_parser.
4731 (ada_language_data): Delete la_post_parser initializer.
4732 (ada_language::post_parser): New member function.
4733 * c-lang.c (c_language_data): Delete la_post_parser initializer.
4734 (cplus_language_data): Likewise.
4735 (asm_language_data): Likewise.
4736 (minimal_language_data): Likewise.
4737 * d-lang.c (d_language_data): Likewise.
4738 * f-lang.c (f_language_data): Likewise.
4739 * go-lang.c (go_language_data): Likewise.
4740 * language.c (unknown_language_data): Likewise.
4741 (auto_language_data): Likewise.
4742 * language.h (language_data): Delete la_post_parser field.
4743 (language_defn::post_parser): New member function.
4744 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
4745 * objc-lang.c (objc_language_data): Likewise.
4746 * opencl-lang.c (opencl_language_data): Likewise.
4747 * p-lang.c (pascal_language_data): Likewise.
4748 * parse.c (parse_exp_in_context): Update call to post_parser.
4749 (null_post_parser): Delete definition.
4750 * parser-defs.h (null_post_parser): Delete declaration.
4751 * rust-lang.c (rust_language_data): Delete la_post_parser
4752 initializer.
4753
87afa652
AB
47542020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4755
4756 * ada-lang.c (parse): Rename to ada_language::parser.
4757 (ada_language_data): Delete la_parser initializer.
4758 (ada_language::parser): New member function, implementation from
4759 parse.
4760 * c-lang.c (c_language_data): Delete la_parser initializer.
4761 (cplus_language_data): Likewise.
4762 (asm_language_data): Likewise.
4763 (minimal_language_data): Likewise.
4764 * d-lang.c (d_language_data): Likewise.
4765 (d_language::parser): New member function.
4766 * f-lang.c (f_language_data): Delete la_parser initializer.
4767 (f_language::parser): New member function.
4768 * go-lang.c (go_language_data): Delete la_parser initializer.
4769 (go_language::parser): New member function.
4770 * language.c (unk_lang_parser): Delete.
4771 (language_defn::parser): Define new member function.
4772 (unknown_language_data): Delete la_parser initializer.
4773 (unknown_language::parser): New member function.
4774 (auto_language_data): Delete la_parser initializer.
4775 (auto_language::parser): New member function.
4776 * language.h (language_data): Delete la_parser field.
4777 (language_defn::parser): Declare new member function.
4778 * m2-lang.c (m2_language_data): Delete la_parser initializer.
4779 (m2_language::parser): New member function.
4780 * objc-lang.c (objc_language_data): Delete la_parser initializer.
4781 * opencl-lang.c (opencl_language_data): Likewise.
4782 * p-lang.c (pascal_language_data): Likewise.
4783 (pascal_language::parser): New member function.
4784 * parse.c (parse_exp_in_context): Update call to parser.
4785 * rust-lang.c (rust_language_data): Delete la_parser initializer.
4786 (rust_language::parser): New member function.
4787
37825800
AB
47882020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4789
4790 * top.c (print_gdb_configuration): Print --with-python-libdir
4791 configuration value.
4792
5b860c93
PW
47932020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4794
4795 * NEWS: Mention change to the alias command.
4796
cf00cd6f
PW
47972020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4798
4799 * cli/cli-cmds.c (lookup_cmd_for_default_args)
4800 (alias_command_completer)
4801 (make_alias_options_def_group): New functions.
4802 (alias_opts, alias_option_defs): New struct and array.
4803 (alias_usage_error): Update usage.
4804 (alias_command): Handles optional DEFAULT-ARGS... arguments.
4805 Use option framework.
4806 (_initialize_cli_cmds): Update alias command help.
4807 Update aliases command help.
4808 (show_user):
4809 Add NULL for new default_args lookup_cmd argument.
4810 (valid_command_p): Rename to validate_aliased_command.
4811 Add NULL for new default_args lookup_cmd argument. Verify that the
4812 aliased_command has no default args.
4813 * cli/cli-decode.c (help_cmd): Show aliases definitions.
4814 (lookup_cmd_1, lookup_cmd): New argument default_args.
4815 (add_alias_cmd):
4816 Add NULL for new default_args lookup_cmd argument.
4817 (print_help_for_command): Show default args under the layout
4818 alias some_alias = some_aliased_cmd some_alias_default_arg.
4819 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
4820 xfree default_args in destructor.
4821 * cli/cli-script.c (process_next_line, do_define_command):
4822 Add NULL for new default_args lookup_cmd argument.
4823 * command.h: Declare new default_args argument in lookup_cmd
4824 and lookup_cmd_1.
4825 * completer.c (complete_line_internal_1):
4826 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4827 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
4828 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
4829 Likewise.
4830 * infcmd.c (_initialize_infcmd): Likewise.
4831 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
4832 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
4833 * python/py-param.c (add_setshow_generic): Likewise.
4834 * remote.c (_initialize_remote): Likewise.
4835 * top.c (execute_command): Prepend default_args if command has some.
4836 (set_verbose):
4837 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4838 * tracepoint.c (validate_actionline, encode_actions_1):
4839 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4840
bd920864
TBA
48412020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4842
4843 * jit.c (jit_read_descriptor): Use bool as the return type.
4844 (jit_breakpoint_re_set_internal): Use bool as the return type.
4845 Invert the return value logic; return true if the jit breakpoint
4846 has been successfully initialized.
4847 (jit_inferior_init): Update the call to
4848 jit_breakpoint_re_set_internal.
4849
f8098322
PA
48502020-06-22 Pedro Alves <palves@redhat.com>
4851
4852 PR gdb/25939
4853 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
4854 Use the current inferior instead. Don't return
4855 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
4856 wait again.
4857 * sol-thread.c (sol_thread_target::wait): Don't reference
4858 inferior_ptid.
4859 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
4860 (sol_update_thread_list_callback): Use the current inferior's pid
4861 instead of inferior_ptid.
4862
196535a6
RO
48632020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4864
4865 * procfs.c: Cleanup many comments.
4866
4867 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
4868 (AFTER_WATCHFLAG): Replace by value.
4869
4870 (MAIN_PROC_NAME_FORMAT): Inline ...
4871 (create_procinfo): ... here.
4872
4873 (procfs_debug_inferior): Remove SYS_exec handling.
4874 (syscall_is_exec): Likewise.
4875 (procfs_set_exec_trap): Likewise.
4876
4877 (syscall_is_lwp_exit): Inline in callers.
4878 (syscall_is_exit): Likewise.
4879 (syscall_is_exec): Likewise.
4880 (syscall_is_lwp_create): Likewise.
4881
4882 (invalidate_cache): Remove #if 0 code.
4883
4884 (make_signal_thread_runnable): Remove.
4885 (procfs_target::resume): Remove #if 0 code.
4886
cf6f3e86
RO
48872020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4888
4889 PR gdb/25939
4890 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
4891 call ...
4892 (procfs_target::create_inferior): ... here.
4893
48e9cc84
PW
48942020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4895
4896 * exec.c (validate_exec_file): Ensure the build-id is up to
4897 date by calling reopen_exec_file (that checks file timestamp
4898 to decide to re-read the file).
4899
3922b302
PA
49002020-06-18 Pedro Alves <palves@redhat.com>
4901
4902 PR gdb/25412
4903 * gdbthread.h (delete_thread, delete_thread_silent)
4904 (find_thread_ptid): Update comments.
4905 * thread.c (current_thread_): New global.
4906 (is_current_thread): Move higher, and reimplement.
4907 (inferior_thread): Reimplement.
4908 (set_thread_exited): Use bool. Add assertions.
4909 (add_thread_silent): Simplify thread-reuse handling by always
4910 calling delete_thread.
4911 (delete_thread): Remove intro comment.
4912 (find_thread_ptid): Skip exited threads.
4913 (switch_to_thread_no_regs): Write to current_thread_.
4914 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
4915 INFERIOR_PTID. Clear current_thread_.
4916
6dbdab44
PA
49172020-06-18 Pedro Alves <palves@redhat.com>
4918
4919 * aix-thread.c (pd_update): Use switch_to_thread.
4920
2da4b788
PA
49212020-06-18 Pedro Alves <palves@redhat.com>
4922
4923 * ravenscar-thread.c (ravenscar_thread_target): Update.
4924 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
4925 (ravenscar_thread_target::add_active_thread): ... this. Don't
4926 set m_base_ptid here. Update to avoid referencing inferior_ptid.
4927 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
4928
50838d1b
PA
49292020-06-18 Pedro Alves <palves@redhat.com>
4930
4931 * nat/windows-nat.c (current_windows_thread): Remove.
4932 * nat/windows-nat.h (current_windows_thread): Remove.
4933 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
4934 Adjust.
4935 (display_selectors): Adjust to fetch the current
4936 windows_thread_info based on inferior_ptid.
4937 (fake_create_process): No longer write to current_windows_thread.
4938 (windows_nat_target::get_windows_debug_event):
4939 Don't set inferior_ptid or current_windows_thread.
4940 (windows_nat_target::wait): Adjust to not rely on
4941 current_windows_thread.
4942 (do_initial_windows_stuff): Now a method of windows_nat_target.
4943 Switch to the last_ptid thread.
4944 (windows_nat_target::attach): Adjust.
4945 (windows_nat_target::detach): Use switch_to_no_thread instead of
4946 writing to inferior_ptid directly.
4947 (windows_nat_target::create_inferior): Adjust.
4948
31ce04e9
PA
49492020-06-18 Pedro Alves <palves@redhat.com>
4950
4951 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
4952
1ee1a363
PA
49532020-06-18 Pedro Alves <palves@redhat.com>
4954
4955 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
4956 after creating it, instead of writing to inferior_ptid. Don't
4957 write to inferior_ptid.
4958
6d350754
PA
49592020-06-18 Pedro Alves <palves@redhat.com>
4960
4961 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
4962
5d971d48
PA
49632020-06-18 Pedro Alves <palves@redhat.com>
4964
4965 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
4966 it, instead of writing to inferior_ptid.
4967
86e57d1b
PA
49682020-06-18 Pedro Alves <palves@redhat.com>
4969
4970 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
4971 to inferior_ptid.
4972
f2e1c129
PA
49732020-06-18 Pedro Alves <palves@redhat.com>
4974
4975 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
4976 instead of writing to inferior_ptid directly.
4977
60db1b85
PA
49782020-06-18 Pedro Alves <palves@redhat.com>
4979
4980 * corelow.c (core_target::close): Use switch_to_no_thread instead
4981 of writing to inferior_ptid directly.
4982 (add_to_thread_list, core_target_open): Use switch_to_thread
4983 instead of writing to inferior_ptid directly.
4984
fe7d6a8d
PA
49852020-06-18 Pedro Alves <palves@redhat.com>
4986
4987 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
4988 inferior_ptid.
4989 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
4990 inferior_ptid.
4991 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
4992 inferior_ptid directly.
4993 (darwin_nat_target::init_thread_list): Switch to thread, instead
4994 of writing to inferior_ptid.
4995 (darwin_nat_target::attach): Don't write to inferior_ptid.
4996 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
4997
975f8708
PA
49982020-06-18 Pedro Alves <palves@redhat.com>
4999
5000 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
5001 thread.
5002 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
5003 Instead use switch_to_thread.
5004 (gnu_nat_target::detach): Use switch_to_no_thread
5005 instead of writing to inferior_ptid directly. Used passed-in
5006 inferior instead of looking up the inferior by pid.
5007
1a204730
PA
50082020-06-18 Pedro Alves <palves@redhat.com>
5009
5010 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
5011 inferior_ptid.
5012
ebe84f23
PA
50132020-06-18 Pedro Alves <palves@redhat.com>
5014
5015 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
5016 inferior_ptid.
5017 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
5018 thread.
5019 (nto_procfs_target::detach): Avoid referencing
5020 inferior_ptid. Use switch_to_no_thread instead of writing to
5021 inferior_ptid directly.
5022 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
5023 instead of writing to inferior_ptid directly.
5024 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
5025 to thread.
5026
191f02e5
PA
50272020-06-18 Pedro Alves <palves@redhat.com>
5028
5029 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
5030 after creating it, instead of writing to inferior_ptid.
5031 (gdbsim_target_open): Use switch_to_no_thread instead of writing
5032 to inferior_ptid directly.
5033 (gdbsim_target::wait): Don't write to inferior_ptid.
5034
0ac55310
PA
50352020-06-18 Pedro Alves <palves@redhat.com>
5036
5037 * remote.c (remote_target::remote_notice_new_inferior): Use
5038 switch_to_thread instead of writing to inferior_ptid directly.
5039 (remote_target::add_current_inferior_and_thread): Use
5040 switch_to_no_thread instead of writing to inferior_ptid directly.
5041 (extended_remote_target::attach): Use switch_to_inferior_no_thread
5042 and switch_to_thread instead of using set_current_inferior or
5043 writing to inferior_ptid directly.
5044
5233f39b
PA
50452020-06-18 Pedro Alves <palves@redhat.com>
5046
5047 * tracectf.c (ctf_target_open): Switch to added thread instead of
5048 writing to inferior_ptid directly.
5049 (ctf_target::close): Use switch_to_no_thread instead of writing to
5050 inferior_ptid directly.
5051
087e161b
PA
50522020-06-18 Pedro Alves <palves@redhat.com>
5053
5054 * tracefile-tfile.c (tfile_target_open): Don't write to
5055 inferior_ptid directly, instead switch to added thread.
5056 (tfile_target::close): Use switch_to_no_thread instead of writing
5057 to inferior_ptid directly.
5058
7fb43e53
PA
50592020-06-18 Pedro Alves <palves@redhat.com>
5060
5061 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
5062 (procfs_target::detach): Use switch_to_no_thread
5063 instead of writing to inferior_ptid directly.
5064 (do_attach): Change return type to void. Switch to the added
5065 thread.
5066 (procfs_target::create_inferior): Switch to the added thread.
5067 (procfs_do_thread_registers): Don't write to inferior_ptid.
5068
18493a00
PA
50692020-06-18 Pedro Alves <palves@redhat.com>
5070
5071 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
5072 of writing to inferior_ptid.
5073 (scoped_restore_exited_inferior): Delete.
5074 (handle_vfork_child_exec_or_exit): Simplify using
5075 scoped_restore_current_pspace_and_thread. Use switch_to_thread
5076 instead of writing to inferior_ptid.
5077 (THREAD_STOPPED_BY): Delete.
5078 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
5079 (thread_stopped_by_hw_breakpoint): Delete.
5080 (save_waitstatus): Use
5081 scoped_restore_current_thread+switch_to_thread, and call
5082 target_stopped_by_watchpoint instead of
5083 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
5084 instead of thread_stopped_by_sw_breakpoint, and
5085 target_stopped_by_hw_breakpoint instead of
5086 thread_stopped_by_hw_breakpoint.
5087 (handle_inferior_event)
5088 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
5089 inferior_ptid directly, nor
5090 set_current_inferior/set_current_program_space. Use
5091 switch_to_thread / switch_to_inferior_no_thread instead.
5092
a0776b13
PA
50932020-06-18 Pedro Alves <palves@redhat.com>
5094
5095 * target.c (generic_mourn_inferior): Use switch_to_no_thread
5096 instead of writing to inferior_ptid.
5097
6155c136
PA
50982020-06-18 Pedro Alves <palves@redhat.com>
5099
5100 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
5101 added thread.
5102 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
5103 to the added thread.
5104 (inf_ptrace_target::detach_success): Use switch_to_no_thread
5105 instead of writing to inferior_ptid.
5106
c5316fc6
PA
51072020-06-18 Pedro Alves <palves@redhat.com>
5108
5109 * gdbarch-selftests.c: Include "progspace-and-thread.h".
5110 (register_to_value_test): Mock a program_space too. Heap-allocate
5111 the address space. Don't write to inferior_ptid. Use
5112 switch_to_thread instead.
5113
8df01799
PA
51142020-06-18 Pedro Alves <palves@redhat.com>
5115
5116 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
5117 Delete.
5118 (find_signalled_thread()): New, factored out from
5119 linux_make_corefile_notes and adjusted to handle exited threads.
5120 (linux_make_corefile_notes): Adjust to use the new
5121 find_signalled_thread.
5122
41792d68
PA
51232020-06-18 Pedro Alves <palves@redhat.com>
5124
5125 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
5126 of saving/restoring inferior_ptid.
5127
612f258a
TT
51282020-06-17 Tom Tromey <tom@tromey.com>
5129
5130 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
5131 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
5132 declare.
5133 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
5134
efb763a5
SM
51352020-06-15 Simon Marchi <simon.marchi@efficios.com>
5136
5137 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
5138 of partial symtabs.
5139
2951f6c0
SM
51402020-06-17 Simon Marchi <simon.marchi@efficios.com>
5141
5142 * regformats/reg-arm.dat: Remove.
5143 * regformats/reg-bfin.dat: Remove.
5144 * regformats/reg-cris.dat: Remove.
5145 * regformats/reg-crisv32.dat: Remove.
5146 * regformats/reg-m32r.dat: Remove.
5147 * regformats/reg-tilegx.dat: Remove.
5148 * regformats/reg-tilegx32.dat: Remove.
5149
7d458ea5
SM
51502020-06-17 Simon Marchi <simon.marchi@efficios.com>
5151
5152 * features/Makefile (WHICH): Remove arm files.
5153 * regformats/arm/arm-with-iwmmxt.dat: Remove.
5154 * regformats/arm/arm-with-neon.dat: Remove.
5155 * regformats/arm/arm-with-vfpv2.dat: Remove.
5156 * regformats/arm/arm-with-vfpv3.dat: Remove.
5157
3af96c0d
SM
51582020-06-17 Simon Marchi <simon.marchi@efficios.com>
5159
5160 * features/Makefile (XMLTOC): Remove rx.xml.
5161
b25e22fd
PA
51622020-06-17 Pedro Alves <palves@redhat.com>
5163
5164 * gdbthread.h (thread_control_state) <trap_expected> Update
5165 comments.
5166
a78a19b1
AB
51672020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5168
5169 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
5170 ada_language::lookup_symbol_nonlocal.
5171 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
5172 (ada_language::lookup_symbol_nonlocal): New member function,
5173 implementation from ada_lookup_symbol_nonlocal.
5174 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
5175 initializer.
5176 (cplus_language_data): Delete la_lookup_symbol_nonlocal
5177 initializer.
5178 (cplus_language::lookup_symbol_nonlocal): New member function.
5179 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
5180 (minimal_language_data) Likewise.
5181 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
5182 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
5183 initializer.
5184 (d_language::lookup_symbol_nonlocal): New member function.
5185 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
5186 initializer.
5187 (f_language::lookup_symbol_nonlocal): New member function.
5188 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
5189 initializer.
5190 * language.c (unknown_language_data): Likewise.
5191 (auto_language_data): Likewise.
5192 * language.h (language_data): Delete la_lookup_symbol_nonlocal
5193 field.
5194 (language_defn::lookup_symbol_nonlocal): New member function.
5195 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
5196 initializer.
5197 * objc-lang.c (objc_language_data): Likewise.
5198 * opencl-lang.c (opencl_language_data): Likewise.
5199 * p-lang.c (pascal_language_data): Likewise.
5200 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
5201 rust_language::lookup_symbol_nonlocal.
5202 (rust_language_data): Delete la_lookup_symbol_nonlocal
5203 initializer.
5204 (rust_language::lookup_symbol_nonlocal): New member function,
5205 implementation from rust_lookup_symbol_nonlocal.
5206 * symtab.c (lookup_symbol_aux): Update call to
5207 lookup_symbol_nonlocal.
5208 (basic_lookup_symbol_nonlocal): Rename to...
5209 (language_defn::lookup_symbol_nonlocal): ...this, and update
5210 header comment. Remove language_defn parameter, and replace with
5211 uses of `this'.
5212 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
5213
ebe2334e
AB
52142020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5215
5216 * ada-lang.c (ada_language_data): Delete la_value_print_inner
5217 initializer.
5218 (ada_language::value_print_inner): New member function.
5219 * c-lang.c (c_language_data): Delete la_value_print_inner
5220 initializer.
5221 (cplus_language_data): Likewise.
5222 (asm_language_data): Likewise.
5223 (minimal_language_data): Likewise.
5224 * d-lang.c (d_language_data): Likewise.
5225 (d_language::value_print_inner): New member function.
5226 * f-lang.c (f_language_data): Delete la_value_print_inner
5227 initializer.
5228 (f_language::value_print_inner): New member function.
5229 * f-lang.h (f_value_print_innner): Rename to...
5230 (f_value_print_inner): ...this (note spelling of 'inner').
5231 * f-valprint.c (f_value_print_innner): Rename to...
5232 (f_value_print_inner): ...this (note spelling of 'inner').
5233 * go-lang.c (go_language_data): Delete la_value_print_inner
5234 initializer.
5235 (go_language::value_print_inner): New member function.
5236 * language.c (language_defn::value_print_inner): Define new member
5237 function.
5238 (unk_lang_value_print_inner): Delete.
5239 (unknown_language_data): Delete la_value_print_inner initializer.
5240 (unknown_language::value_print_inner): New member function.
5241 (auto_language_data): Delete la_value_print_inner initializer.
5242 (auto_language::value_print_inner): New member function.
5243 * language.h (language_data): Delete la_value_print_inner field.
5244 (language_defn::value_print_inner): Delcare new member function.
5245 * m2-lang.c (m2_language_data): Delete la_value_print_inner
5246 initializer.
5247 (m2_language::value_print_inner): New member function.
5248 * objc-lang.c (objc_language_data): Delete la_value_print_inner
5249 initializer.
5250 * opencl-lang.c (opencl_language_data): Likewise.
5251 * p-lang.c (pascal_language_data): Likewise.
5252 (pascal_language::value_print_inner): New member function.
5253 * rust-lang.c (rust_language_data): Delete la_value_print_inner
5254 initializer.
5255 (rust_language::value_print_inner): New member function.
5256 * valprint.c (do_val_print): Update call to value_print_inner.
5257
a1d1fa3e
AB
52582020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5259
5260 * ada-lang.c (ada_language_data): Delete la_value_print
5261 initializer.
5262 (ada_language::value_print): New member function.
5263 * c-lang.c (c_language_data): Delete la_value_print initializer.
5264 (cplus_language_data): Likewise.
5265 (asm_language_data): Likewise.
5266 (minimal_language_data): Likewise.
5267 * d-lang.c (d_language_data): Likewise.
5268 * f-lang.c (f_language_data): Likewise.
5269 * go-lang.c (go_language_data): Likewise.
5270 * language.c (unk_lang_value_print): Delete.
5271 (language_defn::value_print): Define new member function.
5272 (unknown_language_data): Delete la_value_print initializer.
5273 (unknown_language::value_print): New member function.
5274 (auto_language_data): Delete la_value_print initializer.
5275 (auto_language::value_print): New member function.
5276 * language.h (language_data): Delete la_value_print field.
5277 (language_defn::value_print): Declare new member function.
5278 (LA_VALUE_PRINT): Update call to value_print.
5279 * m2-lang.c (m2_language_data): Delete la_value_print 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 (pascal_language::value_print): New member function.
5284 * rust-lang.c (rust_language_data): Delete la_value_print
5285 initializer.
5286
f16a9f57
AB
52872020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5288
5289 * ada-lang.c (ada_watch_location_expression): Rename to
5290 ada_language::watch_location_expression.
5291 (ada_language_data): Delete la_watch_location_expression
5292 initializer.
5293 (ada_language::watch_location_expression): New member function,
5294 implementation from ada_watch_location_expression.
5295 * breakpoint.c (watch_command_1): Update call to
5296 watch_location_expression.
5297 * c-lang.c (c_watch_location_expression): Rename to
5298 language_defn::watch_location_expression.
5299 (c_language_data): Delete la_watch_location_expression
5300 initializer.
5301 (cplus_language_data): Likewise.
5302 (asm_language_data): Likewise.
5303 (minimal_language_data): Likewise.
5304 * c-lang.h (c_watch_location_expression): Delete declaration.
5305 * d-lang.c (d_language_data): Delete la_watch_location_expression
5306 initializer.
5307 * f-lang.c (f_language_data): Likewise.
5308 * go-lang.c (go_language_data): Likewise.
5309 * language.c (language_defn::watch_location_expression): Member
5310 function implementation from c_watch_location_expression.
5311 (unknown_language_data): Delete la_watch_location_expression
5312 initializer.
5313 (auto_language_data): Likewise.
5314 * language.h (language_data): Delete la_watch_location_expression
5315 field.
5316 (language_defn::watch_location_expression): Declare new member
5317 function.
5318 * m2-lang.c (m2_language_data): Delete
5319 la_watch_location_expression initializer.
5320 * objc-lang.c (objc_language_data): Likewise.
5321 * opencl-lang.c (opencl_language_data): Likewise.
5322 * p-lang.c (pascal_language_data): Likewise.
5323 * rust-lang.c (rust_watch_location_expression): Rename to
5324 rust_language::watch_location_expression.
5325 (rust_language_data): Delete la_watch_location_expression
5326 initializer.
5327 (rust_language::watch_location_expression): New member function,
5328 implementation from rust_watch_location_expression.
5329
7e56227d
AB
53302020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5331
5332 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
5333 ada_language::collect_symbol_completion_matches.
5334 (ada_language_data): Delete la_collect_symbol_completion_matches
5335 initializer.
5336 (ada_language::collect_symbol_completion_matches): New member
5337 function, implementation from
5338 ada_collect_symbol_completion_matches.
5339 * c-lang.c (c_language_data): Delete
5340 la_collect_symbol_completion_matches initializer.
5341 (cplus_language_data): Likewise.
5342 (asm_language_data): Likewise.
5343 (minimal_language_data): Likewise.
5344 * d-lang.c (d_language_data): Likewise.
5345 * f-lang.c (f_collect_symbol_completion_matches): Rename to
5346 f_language::collect_symbol_completion_matches.
5347 (f_language_data): Delete la_collect_symbol_completion_matches
5348 initializer.
5349 (f_language::collect_symbol_completion_matches) New member
5350 function, implementation from f_collect_symbol_completion_matches.
5351 * go-lang.c (go_language_data): Delete
5352 la_collect_symbol_completion_matches initializer.
5353 * language.c (unknown_language_data): Likewise.
5354 (auto_language_data): Likewise.
5355 * language.h (language_data): Delete
5356 la_collect_symbol_completion_matches field.
5357 (language_defn::collect_symbol_completion_matches): New member
5358 function.
5359 * m2-lang.c (m2_language_data): Delete
5360 la_collect_symbol_completion_matches initializer.
5361 * objc-lang.c (objc_language_data): Likewise.
5362 * opencl-lang.c (opencl_language_data): Likewise.
5363 * p-lang.c (pascal_language_data): Likewise.
5364 * rust-lang.c (rust_language_data): Likewise.
5365 * symtab.c (default_collect_symbol_completion_matches): Delete.
5366 (collect_symbol_completion_matches): Update call to
5367 collect_symbol_completion_matches.
5368 (collect_symbol_completion_matches_type): Likewise.
5369 * symtab.h (default_collect_symbol_completion_matches): Delete
5370 declaration.
5371
53fc67f8
AB
53722020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5373
5374 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
5375 (ada_language_data): Delete la_word_break_characters initializer.
5376 (ada_language::word_break_characters): New member function.
5377 * c-lang.c (c_language_data): Delete la_word_break_characters
5378 initializer.
5379 (cplus_language_data): Likewise.
5380 (asm_language_data): Likewise.
5381 (minimal_language_data): Likewise.
5382 * completer.c: Update global comment.
5383 (advance_to_expression_complete_word_point): Update call to
5384 word_break_characters.
5385 (complete_files_symbols): Likewise.
5386 (complete_line_internal_1): Likewise.
5387 (default_completer_handle_brkchars): Likewise.
5388 (skip_quoted_chars): Likewise.
5389 * d-lang.c (d_language_data): Delete la_word_break_characters
5390 initializer.
5391 * f-lang.c (f_word_break_characters): Delete.
5392 (f_language_data): Delete la_word_break_characters initializer.
5393 (f_language::word_break_characters): New member function.
5394 * go-lang.c (go_language_data): Delete la_word_break_characters
5395 initializer.
5396 * language.c (unknown_language_data): Likewise.
5397 (auto_language_data): Likewise.
5398 * language.h (default_word_break_characters): Move declaration to
5399 earlier in the file.
5400 (language_data): Delete la_word_break_characters field.
5401 (language_defn::word_break_characters): New member function.
5402 * m2-lang.c (m2_language_data): Delete la_word_break_characters
5403 initializer.
5404 * objc-lang.c (objc_language_data): Likewise.
5405 * opencl-lang.c (opencl_language_data): Likewise.
5406 * p-lang.c (pascal_language_data): Likewise.
5407 * rust-lang.c (rust_language_data): Likewise.
5408
c9debfb9
AB
54092020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5410
5411 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
5412 (ada_language_data): Delete la_get_symbol_name_matcher
5413 initializer.
5414 (language_defn::get_symbol_name_matcher_inner): New member
5415 function.
5416 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
5417 initializer.
5418 (cplus_language_data): Likewise.
5419 (cplus_language::get_symbol_name_matcher_inner): New member
5420 function.
5421 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
5422 (minimal_language_data): Likewise.
5423 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
5424 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
5425 initializer.
5426 * dictionary.c (iter_match_first_hashed): Update call to
5427 get_symbol_name_matcher.
5428 (iter_match_next_hashed): Likewise.
5429 (iter_match_next_linear): Likewise.
5430 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
5431 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
5432 initializer.
5433 (f_language::get_symbol_name_matcher_inner): New member function.
5434 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
5435 initializer.
5436 * language.c (default_symbol_name_matcher): Update header comment,
5437 make static.
5438 (language_defn::get_symbol_name_matcher): New definition.
5439 (language_defn::get_symbol_name_matcher_inner): Likewise.
5440 (get_symbol_name_matcher): Delete.
5441 (unknown_language_data): Delete la_get_symbol_name_matcher
5442 initializer.
5443 (auto_language_data): Likewise.
5444 * language.h (language_data): Delete la_get_symbol_name_matcher
5445 field.
5446 (language_defn::get_symbol_name_matcher): New member function.
5447 (language_defn::get_symbol_name_matcher_inner): Likewise.
5448 (default_symbol_name_matcher): Delete declaration.
5449 * linespec.c (find_methods): Update call to
5450 get_symbol_name_matcher.
5451 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
5452 initializer.
5453 * minsyms.c (lookup_minimal_symbol): Update call to
5454 get_symbol_name_matcher.
5455 (iterate_over_minimal_symbols): Likewise.
5456 * objc-lang.c (objc_language_data): Delete
5457 la_get_symbol_name_matcher initializer.
5458 * opencl-lang.c (opencl_language_data): Likewise.
5459 * p-lang.c (pascal_language_data): Likewise.
5460 * psymtab.c (psymbol_name_matches): Update call to
5461 get_symbol_name_matcher.
5462 * rust-lang.c (rust_language_data): Delete
5463 la_get_symbol_name_matcher initializer.
5464 * symtab.c (symbol_matches_search_name): Update call to
5465 get_symbol_name_matcher.
5466 (compare_symbol_name): Likewise.
5467
9a49ad8c
AB
54682020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5469
5470 * ada-lang.c (ada_language_data): Delete la_compute_program
5471 initializer.
5472 * c-lang.c (c_language_data): Likewise.
5473 (c_language::compute_program): New member function.
5474 (cplus_language_data): Delete la_compute_program initializer.
5475 (cplus_language::compute_program): New member function.
5476 (asm_language_data): Delete la_compute_program initializer.
5477 (minimal_language_data): Likewise.
5478 * c-lang.h (c_compute_program): Update comment.
5479 (cplus_compute_program): Likewise.
5480 * compile/compile-c-support.c (c_compute_program): Likewise.
5481 (cplus_compute_program): Likewise.
5482 * compile/compile.c (compile_to_object): Update call to
5483 la_compute_program.
5484 * d-lang.c (d_language_data): Delete la_compute_program
5485 initializer.
5486 * f-lang.c (f_language_data): Likewise.
5487 * go-lang.c (go_language_data): Likewise.
5488 * language.c (unknown_language_data): Likewise.
5489 (auto_language_data): Likewise.
5490 * language.h (language_data): Delete la_compute_program field.
5491 (language_defn::compute_program): New member function.
5492 * m2-lang.c (m2_language_data): Delete la_compute_program
5493 initializer.
5494 * objc-lang.c (objc_language_data): Likewise.
5495 * opencl-lang.c (opencl_language_data): Likewise.
5496 * p-lang.c (pascal_language_data): Likewise.
5497 * rust-lang.c (rust_language_data): Likewise.
5498
eff93b4d
AB
54992020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5500
5501 * ada-lang.c (ada_language_data) Delete
5502 la_class_name_from_physname initializer.
5503 * c-lang.c (c_language_data): Likewise.
5504 (cplus_language_data): Likewise.
5505 (cplus_language::class_name_from_physname): New member function.
5506 (asm_language_data): Delete la_class_name_from_physname
5507 initializer.
5508 (minimal_language_data): Likewise.
5509 * d-lang.c (d_language_data): Likewise.
5510 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
5511 method on language_defn class.
5512 (guess_full_die_structure_name): Likewise.
5513 * f-lang.c (f_language_data): Delete la_class_name_from_physname
5514 initializer.
5515 * go-lang.c (go_language_data): Likewise.
5516 * language.c (language_class_name_from_physname): Delete.
5517 (unk_lang_class_name): Delete.
5518 (unknown_language_data): Delete la_class_name_from_physname
5519 initializer.
5520 (auto_language_data): Likewise.
5521 * language.h (language_data): Delete la_class_name_from_physname
5522 field.
5523 (language_defn::class_name_from_physname): New function.
5524 (language_class_name_from_physname): Delete declaration.
5525 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
5526 initializer.
5527 * objc-lang.c (objc_language_data): Likewise.
5528 * opencl-lang.c (opencl_language_data): Likewise.
5529 * p-lang.c (pascal_language_data): Likewise.
5530 * rust-lang.c (rust_language_data): Likewise.
5531
de543742
TT
55322020-06-16 Tom Tromey <tom@tromey.com>
5533
5534 * tui/tui-data.h (STATUS_NAME): New macro.
5535 * tui/tui-layout.c (tui_remove_some_windows)
5536 (initialize_known_windows, tui_register_window)
5537 (tui_layout_split::remove_windows, initialize_layouts)
5538 (tui_new_layout_command): Don't use hard-coded window names.
5539
a350efd4
TT
55402020-06-16 Tom Tromey <tom@tromey.com>
5541
5542 PR tui/25348:
5543 * tui/tui.c (tui_ensure_readline_initialized): Rename from
5544 tui_initialize_readline. Only run once. Call rl_initialize.
5545 * tui/tui.h (tui_ensure_readline_initialized): Rename from
5546 tui_initialize_readline.
5547 * tui/tui-io.c (tui_setup_io): Call
5548 tui_ensure_readline_initialized.
5549 * tui/tui-interp.c (tui_interp::init): Update.
5550
39ec0490
TT
55512020-06-16 Tom Tromey <tom@tromey.com>
5552
5553 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
5554 Also preserve the status window.
5555
d2d1ea20
TT
55562020-06-16 Tom Tromey <tom@tromey.com>
5557
5558 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
5559 where m_window==nullptr.
5560
66920317
TT
55612020-06-15 Tom Tromey <tromey@adacore.com>
5562
5563 * windows-nat.c (windows_nat::handle_output_debug_string):
5564 Update.
5565 (windows_nat::handle_ms_vc_exception): Update.
5566 * target.h (target_read_string): Change API.
5567 * target.c (target_read_string): Change API.
5568 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
5569 Update.
5570 * solib-frv.c (frv_current_sos): Update.
5571 * solib-dsbt.c (dsbt_current_sos): Update.
5572 * solib-darwin.c (darwin_current_sos): Update.
5573 * linux-thread-db.c (inferior_has_bug): Update.
5574 * expprint.c (print_subexp_standard): Update.
5575 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
5576 (ada_exception_message_1): Update.
5577
a5d871dd
TT
55782020-06-15 Tom Tromey <tromey@adacore.com>
5579
5580 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
5581
670e35fa
TT
55822020-06-15 Tom Tromey <tromey@adacore.com>
5583
5584 * valprint.c (read_string): Update comment.
5585 * target.c (MIN): Remove.
5586 (target_read_string): Rewrite.
5587
f5272a3b
TT
55882020-06-15 Tom Tromey <tromey@adacore.com>
5589
5590 * corefile.c (read_memory_string): Remove.
5591 * ada-valprint.c (ada_value_print_ptr): Update.
5592 * ada-lang.h (ada_tag_name): Change return type.
5593 * ada-lang.c (type_from_tag): Update.
5594 (ada_tag_name_from_tsd): Change return type. Use
5595 target_read_string.
5596 (ada_tag_name): Likewise.
5597 * gdbcore.h (read_memory_string): Don't declare.
5598
2c074f49
HD
55992020-06-14 Hannes Domani <ssbssa@yahoo.de>
5600
5601 * symtab.c (rbreak_command): Ignore Windows drive colon.
5602
6a17d503
SM
56032020-06-12 Simon Marchi <simon.marchi@efficios.com>
5604
5605 * NEWS: Mention removed GDBserver host support.
5606
453c733f
NC
56072020-06-12 Nelson Chu <nelson.chu@sifive.com>
5608
5609 * features/riscv/rebuild-csr-xml.sh: Updated.
5610
2b4e6a3f
TT
56112020-06-11 Tom Tromey <tom@tromey.com>
5612
5613 PR gdb/18318:
5614 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
5615
4412332f
JG
56162020-06-09 Jonny Grant <jg@jguk.org>
56172020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
5618
5619 * main.c (captured_main_1): Don't print new line after help.
5620 (print_gdb_help): add mailing list and IRC channel information
5621 to --help. Add new lines between items in the footer. Remove
5622 quotes around bug url.
5623
2f33032a
KS
56242020-06-11 Keith Seitz <keiths@redhat.com>
5625
5626 PR gdb/21356
5627 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
5628 Resolve typedefs for type length calculations.
5629
7ab96794
TV
56302020-06-10 Tom de Vries <tdevries@suse.de>
5631
5632 PR ada/24713
5633 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
5634 (write_psymbols): Enable .gdb_index for ada.
5635 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
5636 ada.
5637
e5f3ece2
TV
56382020-06-10 Tom de Vries <tdevries@suse.de>
5639
5640 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
5641 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
5642 namei" instead of "const char *name" argument.
5643 (dw2_map_matching_symbols): Use "offset_type namei" variant of
5644 dw2_symtab_iter_init.
5645
940da03e
SM
56462020-06-08 Simon Marchi <simon.marchi@efficios.com>
5647
5648 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
5649 to use type::field and field::type instead.
5650
b6cdac4b
SM
56512020-06-08 Simon Marchi <simon.marchi@efficios.com>
5652
5653 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
5654 to use field::type instead.
5655
5d14b6e5
SM
56562020-06-08 Simon Marchi <simon.marchi@efficios.com>
5657
5658 * gdbtypes.h (struct field) <type, set_type>: New methods.
5659 Rename `type` field to...
5660 <m_type>: ... this. Change references throughout to use type or
5661 set_type methods.
5662 (FIELD_TYPE): Use field::type. Change call sites that modify
5663 the field's type to use field::set_type instead.
5664
3d967001
SM
56652020-06-08 Simon Marchi <simon.marchi@efficios.com>
5666
5667 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
5668 to use type::index_type instead.
5669
262abc0d
SM
56702020-06-08 Simon Marchi <simon.marchi@efficios.com>
5671
5672 * gdbtypes.h (struct type) <index_type, set_index_type>: New
5673 methods.
5674 (TYPE_INDEX_TYPE): Use type::index_type.
5675 * gdbtypes.c (create_array_type_with_stride): Likewise.
5676
82836c92
TT
56772020-06-07 Tom Tromey <tom@tromey.com>
5678
5679 * valprint.c (generic_val_print_float): Remove "embedded_offset"
5680 parameter.
5681 (generic_value_print): Update.
5682
940dace9
AB
56832020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
5684
5685 Revert commit 982a38f60b0.
5686 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
5687
982a38f6
AB
56882020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
5689
5690 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
5691 avoid use after free.
5692
82f06518
TV
56932020-06-05 Tom de Vries <tdevries@suse.de>
5694
5695 * NEWS: Fix typos.
5696
f8c41851
SM
56972020-06-04 Simon Marchi <simon.marchi@efficios.com>
5698
5699 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
5700 the per_bfd object.
5701 (dwarf2_read_debug_names): Likewise.
5702 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
5703 object when re-using a per_bfd object with an index.
5704
f9b5d5ea
TV
57052020-06-03 Tom de Vries <tdevries@suse.de>
5706
5707 PR symtab/26046
5708 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
5709 children for C++.
5710 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
5711 DW_TAG_subprogram.
5712
f6eee2d0
AB
57132020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5714
5715 * ada-lang.c (ada_language_data): Delete skip_trampoline
5716 initializer.
5717 * c-lang.c (c_language_data): Likewise.
5718 (cplus_language_data): Likewise.
5719 (cplus_language::skip_trampoline): New member function.
5720 (asm_language_data): Delete skip_trampoline initializer.
5721 (minimal_language_data): Likewise.
5722 * d-lang.c (d_language_data): Likewise.
5723 * f-lang.c (f_language_data): Likewise.
5724 * go-lang.c (go_language_data): Likewise.
5725 * language.c (unk_lang_trampoline): Delete function.
5726 (skip_language_trampoline): Update.
5727 (unknown_language_data): Delete skip_trampoline initializer.
5728 (auto_language_data): Likewise.
5729 * language.h (language_data): Delete skip_trampoline field.
5730 (language_defn::skip_trampoline): New function.
5731 * m2-lang.c (m2_language_data): Delete skip_trampoline
5732 initializer.
5733 * objc-lang.c (objc_skip_trampoline): Delete function, move
5734 implementation to objc_language::skip_trampoline.
5735 (objc_language_data): Delete skip_trampoline initializer.
5736 (objc_language::skip_trampoline): New member function with
5737 implementation from objc_skip_trampoline.
5738 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
5739 initializer.
5740 * p-lang.c (pascal_language_data): Likewise.
5741 * rust-lang.c (rust_language_data): Likewise.
5742
0a50df5d
AB
57432020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5744
5745 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
5746 (ada_language::demangle): New member function.
5747 * c-lang.c (c_language_data): Delete la_demangle initializer.
5748 (cplus_language_data): Delete la_demangle initializer.
5749 (cplus_language::demangle): New member function.
5750 (asm_language_data): Delete la_demangle initializer.
5751 (minimal_language_data): Delete la_demangle initializer.
5752 * d-lang.c (d_language_data): Delete la_demangle initializer.
5753 (d_language::demangle): New member function.
5754 * f-lang.c (f_language_data): Delete la_demangle initializer.
5755 (f_language::demangle): New member function.
5756 * go-lang.c (go_language_data): Delete la_demangle initializer.
5757 (go_language::demangle): New member function.
5758 * language.c (language_demangle): Update.
5759 (unk_lang_demangle): Delete.
5760 (unknown_language_data): Delete la_demangle initializer.
5761 (unknown_language::demangle): New member function.
5762 (auto_language_data): Delete la_demangle initializer.
5763 (auto_language::demangle): New member function.
5764 * language.h (language_data): Delete la_demangle field.
5765 (language_defn::demangle): New function.
5766 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
5767 * objc-lang.c (objc_language_data): Delete la_demangle
5768 initializer.
5769 (objc_language::demangle): New member function.
5770 * opencl-lang.c (opencl_language_data): Delete la_demangle
5771 initializer.
5772 * p-lang.c (pascal_language_data): Likewise.
5773 * rust-lang.c (rust_language_data): Likewise.
5774 (rust_language::demangle): New member function.
5775
fbfb0a46
AB
57762020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5777
5778 * ada-lang.c (ada_language_data): Delete la_print_type
5779 initializer.
5780 (ada_language::print_type): New member function.
5781 * c-lang.c (c_language_data): Delete la_print_type initializer.
5782 (c_language::print_type): New member function.
5783 (cplus_language_data): Delete la_print_type initializer.
5784 (cplus_language::print_type): New member function.
5785 (asm_language_data): Delete la_print_type initializer.
5786 (asm_language::print_type): New member function.
5787 (minimal_language_data): Delete la_print_type initializer.
5788 (minimal_language::print_type): New member function.
5789 * d-lang.c (d_language_data): Delete la_print_type initializer.
5790 (d_language::print_type): New member function.
5791 * f-lang.c (f_language_data): Delete la_print_type initializer.
5792 (f_language::print_type): New member function.
5793 * go-lang.c (go_language_data): Delete la_print_type initializer.
5794 (go_language::print_type): New member function.
5795 * language.c (unk_lang_print_type): Delete.
5796 (unknown_language_data): Delete la_print_type initializer.
5797 (unknown_language::print_type): New member function.
5798 (auto_language_data): Delete la_print_type initializer.
5799 (auto_language::print_type): New member function.
5800 * language.h (language_data): Delete la_print_type field.
5801 (language_defn::print_type): New function.
5802 (LA_PRINT_TYPE): Update.
5803 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
5804 (m2_language::print_type): New member function.
5805 * objc-lang.c (objc_language_data): Delete la_print_type
5806 initializer.
5807 (objc_language::print_type): New member function.
5808 * opencl-lang.c (opencl_print_type): Delete, implementation moved
5809 to opencl_language::print_type.
5810 (opencl_language_data): Delete la_print_type initializer.
5811 (opencl_language::print_type): New member function, implementation
5812 from opencl_print_type.
5813 * p-lang.c (pascal_language_data): Delete la_print_type
5814 initializer.
5815 (pascal_language::print_type): New member function.
5816 * rust-lang.c (rust_print_type): Delete, implementation moved to
5817 rust_language::print_type.
5818 (rust_language_data): Delete la_print_type initializer.
5819 (rust_language::print_type): New member function, implementation
5820 from rust_print_type.
5821
6f827019
AB
58222020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5823
5824 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
5825 implementation moves to...
5826 (ada_language::sniff_from_mangled_name): ...here. Update return
5827 type.
5828 (ada_language_data): Delete la_sniff_from_mangled_name
5829 initializer.
5830 * c-lang.c (c_language_data): Likewise.
5831 (cplus_language_data): Likewise.
5832 (cplus_language::sniff_from_mangled_name): New member function,
5833 implementation taken from gdb_sniff_from_mangled_name.
5834 (asm_language_data): Delete la_sniff_from_mangled_name
5835 initializer.
5836 (minimal_language_data): Likewise.
5837 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
5838 implementation moves to cplus_language::sniff_from_mangled_name.
5839 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
5840 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
5841 moves to...
5842 (d_language::sniff_from_mangled_name): ...here.
5843 (d_language_data): Delete la_sniff_from_mangled_name initializer.
5844 * f-lang.c (f_language_data): Likewise.
5845 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
5846 moves to...
5847 (go_language::sniff_from_mangled_name): ...here.
5848 (go_language_data): Delete la_sniff_from_mangled_name initializer.
5849 * language.c (language_sniff_from_mangled_name): Delete.
5850 (unknown_language_data): Delete la_sniff_from_mangled_name
5851 initializer.
5852 (auto_language_data): Likewise.
5853 * language.h (language_data): Delete la_sniff_from_mangled_name
5854 field.
5855 (language_defn::sniff_from_mangled_name): New function.
5856 (language_sniff_from_mangled_name): Delete declaration.
5857 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
5858 field.
5859 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
5860 implementation moves to...
5861 (objc_language::sniff_from_mangled_name): ...here.
5862 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
5863 * opencl-lang.c (opencl_language_data): Likewise.
5864 * p-lang.c (pascal_language_data): Likewise.
5865 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
5866 implementation moves to...
5867 (rust_language::sniff_from_mangled_name): ...here.
5868 (rust_language_data): Delete la_sniff_from_mangled_name
5869 initializer.
5870 * symtab.c (symbol_find_demangled_name): Call
5871 sniff_from_mangled_name member function.
5872
fb8006fd
AB
58732020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5874
5875 * ada-lang.c (ada_language_data): Delete la_search_name_hash
5876 initializer.
5877 * c-lang.c (c_language_data): Likewise.
5878 (cplus_language_data): Likewise.
5879 (cplus_language::search_name_hash): New member function.
5880 (asm_language_data): Delete la_search_name_hash initializer.
5881 (minimal_language_data): Likewise.
5882 * d-lang.c (d_language_data): Likewise.
5883 * dictionary.c (default_search_name_hash): Rename to...
5884 (language_defn::search_name_hash): ...this.
5885 * f-lang.c (f_language_data): Likewise.
5886 (f_language::search_name_hash): New member function.
5887 * go-lang.c (go_language_data): Delete la_search_name_hash
5888 initializer.
5889 * language.c (unknown_language_data): Likewise.
5890 (auto_language_data): Likewise.
5891 * language.h (struct language_data): Delete la_search_name_hash
5892 field.
5893 (language_defn::search_name_hash): Declare new member function.
5894 (default_search_name_hash): Delete declaration.
5895 * m2-lang.c (m2_language_data): Delete la_search_name_hash
5896 initializer.
5897 * objc-lang.c (objc_language_data): Likewise.
5898 * opencl-lang.c (opencl_language_data): Likewise.
5899 * p-lang.c (pascal_language_data): Likewise.
5900 * rust-lang.c (rust_language_data): Likewise.
5901 * symtab.c (search_name_hash): Update call.
5902
8e25bafe
AB
59032020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5904
5905 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
5906 initializer.
5907 * c-lang.c (class compile_instance): Declare.
5908 (c_language_data): Delete la_get_compile_instance initializer.
5909 (c_language::get_compile_instance): New member function.
5910 (cplus_language_data): Delete la_get_compile_instance initializer.
5911 (cplus_language::get_compile_instance): New member function.
5912 (asm_language_data): Delete la_get_compile_instance initializer.
5913 (minimal_language_data): Likewise.
5914 * c-lang.h (c_get_compile_context): Update comment.
5915 (cplus_get_compile_context): Update comment.
5916 * compile/compile.c (compile_to_object): Update calls, don't rely
5917 on function pointer being NULL.
5918 * d-lang.c (d_language_data): Delete la_get_compile_instance
5919 initializer.
5920 * f-lang.c (f_language_data): Likewise.
5921 * go-lang.c (go_language_data): Likewise.
5922 * language.c (unknown_language_data): Likewise.
5923 (auto_language_data): Likewise.
5924 * language.h (language_data): Delete la_get_compile_instance field.
5925 (language_defn::get_compile_instance): New member function.
5926 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
5927 initializer.
5928 * objc-lang.c (objc_language_data): Likewise.
5929 * opencl-lang.c (opencl_language_data): Likewise.
5930 * p-lang.c (pascal_language_data): Likewise.
5931 * rust-lang.c (rust_language_data): Likewise.
5932
4009ee92
AB
59332020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5934
5935 * ada-lang.c (ada_add_all_symbols): Update comment.
5936 (ada_iterate_over_symbols): Delete, move implementation to...
5937 (ada_language::iterate_over_symbols): ...here, a new member
5938 function, rewrite to use range based for loop.
5939 (ada_language_data): Delete la_iterate_over_symbols initializer.
5940 * c-lang.c (c_language_data): Likewise.
5941 (cplus_language_data): Likewise.
5942 (asm_language_data): Likewise.
5943 (minimal_language_data): Likewise.
5944 * d-lang.c (d_language_data): Likewise.
5945 * f-lang.c (f_language_data): Likewise.
5946 * go-lang.c (go_language_data): Likewise.
5947 * language.c (unknown_language_data): Likewise.
5948 (auto_language_data): Likewise.
5949 * language.h (language_data): Delete la_iterate_over_symbols field.
5950 (language_defn::iterate_over_symbols): New member function.
5951 (LA_ITERATE_OVER_SYMBOLS): Update.
5952 * linespec.c (iterate_over_all_matching_symtabs): Update.
5953 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
5954 initializer.
5955 * objc-lang.c (objc_language_data): Likewise.
5956 * opencl-lang.c (opencl_language_data): Likewise.
5957 * p-lang.c (pascal_language_data): Likewise.
5958 * rust-lang.c (rust_language_data): Likewise.
5959
54f4ca46
AB
59602020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5961
5962 * ada-lang.c (ada_language_data): Delete
5963 la_lookup_transparent_type initializer.
5964 * c-lang.c (c_language_data): Likewise.
5965 (cplus_language_data): Likewise.
5966 (cplus_language::lookup_transparent_type): New member function.
5967 (asm_language_data): Delete la_lookup_transparent_type
5968 initializer.
5969 (minimal_language_data): Likewise.
5970 * d-lang.c (d_language_data): Likewise.
5971 * f-lang.c (f_language_data): Likewise.
5972 * go-lang.c (go_language_data): Likewise.
5973 * language.c (unknown_language_data): Likewise.
5974 (auto_language_data): Likewise.
5975 * language.h (struct language_data): Delete
5976 la_lookup_transparent_type field.
5977 (language_defn::lookup_transparent_type): New member function.
5978 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
5979 initializer.
5980 * objc-lang.c (objc_language_data): Likewise.
5981 * opencl-lang.c (opencl_language_data): Likewise.
5982 * p-lang.c (pascal_language_data): Likewise.
5983 * rust-lang.c (rust_language_data): Likewise.
5984 * symtab.c (symbol_matches_domain): Update call.
5985
1fb314aa
AB
59862020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5987
5988 * ada-lang.c (ada_language_arch_info): Delete function, move
5989 implementation to...
5990 (ada_language::language_arch_info): ...here, a new member
5991 function.
5992 (ada_language_data): Delete la_language_arch_info.
5993 * c-lang.c (c_language_data): Likewise.
5994 (c_language::language_arch_info): New member function.
5995 (cplus_language_arch_info): Delete function, move
5996 implementation to...
5997 (cplus_language::language_arch_info): ...here, a new member
5998 function.
5999 (cplus_language_data): Delete la_language_arch_info.
6000 (asm_language_data): Likewise.
6001 (asm_language::language_arch_info): New member function.
6002 (minimal_language_data): Delete la_language_arch_info.
6003 (minimal_language::language_arch_info): New member function.
6004 * d-lang.c (d_language_arch_info): Delete function, move
6005 implementation to...
6006 (d_language::language_arch_info): ...here, a new member
6007 function.
6008 (d_language_data): Delete la_language_arch_info.
6009 * f-lang.c (f_language_arch_info): Delete function, move
6010 implementation to...
6011 (f_language::language_arch_info): ...here, a new member
6012 function.
6013 (f_language_data): Delete la_language_arch_info.
6014 * go-lang.c (go_language_arch_info): Delete function, move
6015 implementation to...
6016 (go_language::language_arch_info): ...here, a new member
6017 function.
6018 (go_language_data): Delete la_language_arch_info.
6019 * language.c (unknown_language_data): Likewise.
6020 (unknown_language::language_arch_info): New member function.
6021 (auto_language_data): Delete la_language_arch_info.
6022 (auto_language::language_arch_info): New member function.
6023 (language_gdbarch_post_init): Update call to
6024 la_language_arch_info.
6025 * language.h (language_data): Delete la_language_arch_info
6026 function pointer.
6027 (language_defn::language_arch_info): New function.
6028 * m2-lang.c (m2_language_arch_info): Delete function, move
6029 implementation to...
6030 (m2_language::language_arch_info): ...here, a new member
6031 function.
6032 (m2_language_data): Delete la_language_arch_info.
6033 * objc-lang.c (objc_language_arch_info): Delete function, move
6034 implementation to...
6035 (objc_language::language_arch_info): ...here, a new member
6036 function.
6037 (objc_language_data): Delete la_language_arch_info.
6038 * opencl-lang.c (opencl_language_arch_info): Delete function, move
6039 implementation to...
6040 (opencl_language::language_arch_info): ...here, a new member
6041 function.
6042 (opencl_language_data): Delete la_language_arch_info.
6043 * p-lang.c (pascal_language_arch_info): Delete function, move
6044 implementation to...
6045 (pascal_language::language_arch_info): ...here, a new member
6046 function.
6047 (pascal_language_data): Delete la_language_arch_info.
6048 * rust-lang.c (rust_language_arch_info): Delete function, move
6049 implementation to...
6050 (rust_language::language_arch_info): ...here, a new member
6051 function.
6052 (rust_language_data): Delete la_language_arch_info.
6053
48448202
AB
60542020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6055
6056 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
6057 initializer.
6058 * c-lang.c (c_language_data): Likewise.
6059 (cplus_language_data): Likewise.
6060 (cplus_language::pass_by_reference_info): New method.
6061 (asm_language_data): Delete la_pass_by_reference initializer.
6062 (minimal_language_data): Likewise.
6063 * cp-abi.c (cp_pass_by_reference): Remove use of
6064 default_pass_by_reference.
6065 * d-lang.c (d_language_data): Likewise.
6066 * f-lang.c (f_language_data): Likewise.
6067 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
6068 default_pass_by_reference.
6069 * go-lang.c (go_language_data): Likewise.
6070 * language.c (language_pass_by_reference): Update.
6071 (default_pass_by_reference): Delete.
6072 (unknown_language_data): Delete la_pass_by_reference
6073 initializer.
6074 (auto_language_data): Likewise.
6075 * language.h (struct language_data): Delete la_pass_by_reference
6076 field.
6077 (language_defn::pass_by_reference_info): New member function.
6078 (default_pass_by_reference): Delete declaration.
6079 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
6080 initializer.
6081 * objc-lang.c (objc_language_data): Likewise.
6082 * opencl-lang.c (opencl_language_data): Likewise.
6083 * p-lang.c (pascal_language_data): Likewise.
6084 * rust-lang.c (rust_language_data): Likewise.
6085
15e5fd35
AB
60862020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6087
6088 * ada-lang.c (ada_read_var_value): Delete function, move
6089 implementation to...
6090 (ada_language::read_var_value): ...here.
6091 (ada_language_data): Delete la_read_var_value initializer.
6092 * c-lang.c (c_language_data): Likewise.
6093 (cplus_language_data): Likewise.
6094 (minimal_language_data): Likewise.
6095 * d-lang.c (d_language_data): Likewise.
6096 * f-lang.c (f_language_data): Likewise.
6097 * findvar.c (default_read_var_value): Rename to...
6098 (language_defn::read_var_value): ...this.
6099 * findvar.c (read_var_value): Update header comment, and change to
6100 call member function instead of function pointer.
6101 * go-lang.c (go_language_data): Likewise.
6102 * language.c (unknown_language_data): Delete la_read_var_value
6103 initializer.
6104 (auto_language_data): Likewise.
6105 * language.h (struct language_data): Delete la_read_var_value
6106 field.
6107 (language_defn::read_var_value): New member function.
6108 (default_read_var_value): Delete declaration.
6109 * m2-lang.c (m2_language_data): Delete la_read_var_value
6110 initializer.
6111 * objc-lang.c (objc_language_data): Likewise.
6112 * opencl-lang.c (opencl_language_data): Likewise.
6113 * p-lang.c (pascal_language_data): Likewise.
6114 * rust-lang.c (rust_language_data): Likewise.
6115 * value.h (default_read_var_value): Delete declaration.
6116
5bd40f2a
AB
61172020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6118
6119 * ada-lang.c (ada_print_array_index): Delete function, move
6120 implementation to...
6121 (ada_language::print_array_index): ...here.
6122 (ada_language_data): Delete la_print_array_index initializer.
6123 * c-lang.c (c_language_data): Likewise.
6124 (cplus_language_data): Likewise.
6125 (minimal_language_data): Likewise.
6126 * d-lang.c (d_language_data): Likewise.
6127 * f-lang.c (f_language_data): Likewise.
6128 * go-lang.c (go_language_data): Likewise.
6129 * language.c (default_print_array_index): Delete function, move
6130 implementation to...
6131 (language_defn::print_array_index): ...here.
6132 (unknown_language_data): Delete la_print_array_index initializer.
6133 (auto_language_data): Likewise.
6134 * language.h (struct language_data): Delete la_print_array_index
6135 field.
6136 (language_defn::print_array_index): New member function.
6137 (LA_PRINT_ARRAY_INDEX): Update.
6138 (default_print_array_index): Delete declaration.
6139 * m2-lang.c (m2_language_data): Delete la_print_array_index
6140 initializer.
6141 * objc-lang.c (objc_language_data): Likewise.
6142 * opencl-lang.c (opencl_language_data): Likewise.
6143 * p-lang.c (pascal_language_data): Likewise.
6144 * rust-lang.c (rust_language_data): Likewise.
6145
0874fd07
AB
61462020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6147
6148 * gdb/ada-lang.c (ada_language_defn): Convert to...
6149 (ada_language_data): ...this.
6150 (class ada_language): New class.
6151 (ada_language_defn): New static global.
6152 * gdb/c-lang.c (c_language_defn): Convert to...
6153 (c_language_data): ...this.
6154 (class c_language): New class.
6155 (c_language_defn): New static global.
6156 (cplus_language_defn): Convert to...
6157 (cplus_language_data): ...this.
6158 (class cplus_language): New class.
6159 (cplus_language_defn): New static global.
6160 (asm_language_defn): Convert to...
6161 (asm_language_data): ...this.
6162 (class asm_language): New class.
6163 (asm_language_defn): New static global.
6164 (minimal_language_defn): Convert to...
6165 (minimal_language_data): ...this.
6166 (class minimal_language): New class.
6167 (minimal_language_defn): New static global.
6168 * gdb/d-lang.c (d_language_defn): Convert to...
6169 (d_language_data): ...this.
6170 (class d_language): New class.
6171 (d_language_defn): New static global.
6172 * gdb/f-lang.c (f_language_defn): Convert to...
6173 (f_language_data): ...this.
6174 (class f_language): New class.
6175 (f_language_defn): New static global.
6176 * gdb/go-lang.c (go_language_defn): Convert to...
6177 (go_language_data): ...this.
6178 (class go_language): New class.
6179 (go_language_defn): New static global.
6180 * gdb/language.c (unknown_language_defn): Remove declaration.
6181 (current_language): Initialize to nullptr, real initialization is
6182 moved to _initialize_language.
6183 (languages): Delete global.
6184 (language_defn::languages): Define.
6185 (set_language_command): Use language_defn::languages.
6186 (set_language): Likewise.
6187 (range_error): Likewise.
6188 (language_enum): Likewise.
6189 (language_def): Likewise.
6190 (add_set_language_command): Use language_def::languages for the
6191 language list, and language_def to lookup language pointers.
6192 (skip_language_trampoline): Use language_defn::languages.
6193 (unknown_language_defn): Convert to...
6194 (unknown_language_data): ...this.
6195 (class unknown_language): New class.
6196 (unknown_language_defn): New static global.
6197 (auto_language_defn): Convert to...
6198 (auto_language_data): ...this.
6199 (class auto_language): New class.
6200 (auto_language_defn): New static global.
6201 (language_gdbarch_post_init): Use language_defn::languages.
6202 (_initialize_language): Initialize current_language.
6203 * gdb/language.h (struct language_defn): Rename to...
6204 (struct language_data): ...this.
6205 (struct language_defn): New.
6206 (auto_language_defn): Delete.
6207 (unknown_language_defn): Delete.
6208 (minimal_language_defn): Delete.
6209 (ada_language_defn): Delete.
6210 (asm_language_defn): Delete.
6211 (c_language_defn): Delete.
6212 (cplus_language_defn): Delete.
6213 (d_language_defn): Delete.
6214 (f_language_defn): Delete.
6215 (go_language_defn): Delete.
6216 (m2_language_defn): Delete.
6217 (objc_language_defn): Delete.
6218 (opencl_language_defn): Delete.
6219 (pascal_language_defn): Delete.
6220 (rust_language_defn): Delete.
6221 * gdb/m2-lang.c (m2_language_defn): Convert to...
6222 (m2_language_data): ...this.
6223 (class m2_language): New class.
6224 (m2_language_defn): New static global.
6225 * gdb/objc-lang.c (objc_language_defn): Convert to...
6226 (objc_language_data): ...this.
6227 (class objc_language): New class.
6228 (objc_language_defn): New static global.
6229 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
6230 (opencl_language_data): ...this.
6231 (class opencl_language): New class.
6232 (opencl_language_defn): New static global.
6233 * gdb/p-lang.c (pascal_language_defn): Convert to...
6234 (pascal_language_data): ...this.
6235 (class pascal_language): New class.
6236 (pascal_language_defn): New static global.
6237 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
6238 language pointer, update comment format.
6239 * gdb/rust-lang.c (rust_language_defn): Convert to...
6240 (rust_language_data): ...this.
6241 (class rust_language): New class.
6242 (rust_language_defn): New static global.
6243
1313c56e
AB
62442020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
6245
6246 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
6247 member variable.
6248 <m_stmt_at_address>: New member variable.
6249 (lnp_state_machine::record_line): Don't record some lines, update
6250 tracking of is_stmt at the same address.
6251 (lnp_state_machine::lnp_state_machine): Initialise new member
6252 variables.
6253
b7ed9f3d
ST
62542020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
6255
6256 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
6257 "-include gnu-nat-mig.h".
6258 * gnu-nat-mig.h: New file.
6259 * gnu-nat.c: Include "gnu-nat-mig.h".
6260 (exc_server, msg_reply_server, notify_server,
6261 process_reply_server): Remove declarations.
6262
14a8ad62
ST
62632020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6264
6265 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
6266 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
6267 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
6268 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
6269 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
6270 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
6271 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
6272 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
6273 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
6274 to gnu_nat_target class.
6275 * gnu-nat.c: Likewise.
6276 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
6277 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
6278 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
6279 object.
6280 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
6281 instead of `gnu_target'.
6282
0af5e106
ST
62832020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6284
6285 * i386-gnu-tdep.c: Include "gdbcore.h"
6286 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
6287 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
6288 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
6289 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
6290 i386_gnu_sigcontext_addr): New functions
6291 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
6292 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
6293 tdep.
6294
078f2fc9
ST
62952020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6296
6297 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
6298 before fork_inferior call. Avoid calling it if target_is_pushed returns
6299 true.
6300
53dff92c
ST
63012020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6302
6303 * gnu-nat.h (gnu_target): New variable declaration.
6304 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
6305 gnu_target.
6306 * gnu-nat.c (gnu_target): New variable.
6307 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
6308 add_thread_silent, and add_thread calls.
6309 (gnu_nat_target::create_inferior): Pass gnu_target to
6310 add_thread_silent, thread_change_ptid call.
6311 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
6312 call.
6313
5a8b8627
ST
63142020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6315
6316 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
6317 (gnu_nat_target::find_memory_regions): Remove unused
6318 `old_address' variable.
6319
366f550a
ST
63202020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6321
6322 * gnu-nat.c: Include "gdbarch.h".
6323
f14871bf
ST
63242020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6325
6326 * reply_mig_hack.awk (Error return): Cast function through
6327 void *, to bypass compiler function call check.
6328
c6887cfb
ST
63292020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6330
6331 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
6332 $(srcdir)/reply_mig_hack.awk.
6333
6930bffe
ST
63342020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6335
6336 * gnu-nat.h (gnu_debug_flag): Set type to bool.
6337
112c22ed
JG
63382020-05-30 Jonny Grant <jg@jguk.org>
6339
6340 * configure.ac (ACX_BUGURL): change bug URL to https.
6341
f68f85b5
PA
63422020-05-30 Pedro Alves <palves@redhat.com>
6343
6344 * cp-support.c (replace_typedefs_template): New.
6345 (replace_typedefs_qualified_name): Handle
6346 DEMANGLE_COMPONENT_TEMPLATE.
6347
976ca316
SM
63482020-05-29 Simon Marchi <simon.marchi@efficios.com>
6349
6350 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
6351 dwarf2/index-cache.h, dwarf2/index-write.c,
6352 dwarf2/index-write.h, dwarf2/line-header.c,
6353 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
6354 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
6355 variables and fields from `dwarf2_per_objfile` to just
6356 `per_objfile` throughout.
6357
989ade05
SM
63582020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
6359
6360 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6361 <push_dwarf_reg_entry_value>: Add comment.
6362
c47bae85
KB
63632020-05-28 Kevin Buettner <kevinb@redhat.com>
6364 Keith Seitz <keiths@redhat.com>
6365
6366 * python/python.c (do_start_initialization): Call PyEval_SaveThread
6367 instead of PyEval_ReleaseLock.
6368 (class gdbpy_gil): Move to earlier in file.
6369 (finalize_python): Set gdb_python_initialized.
6370 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
6371 when not initialized.
6372
44486dcf
SM
63732020-05-28 Simon Marchi <simon.marchi@efficios.com>
6374
6375 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6376 <push_dwarf_reg_entry_value>: Remove assert. Override
6377 per_objfile with caller_per_objfile.
6378
f030440d
TV
63792020-05-28 Tom de Vries <tdevries@suse.de>
6380
6381 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
6382 PR gold/15646 workaround to symbol kind "type".
6383
f0fbb768
TT
63842020-05-27 Tom Tromey <tromey@adacore.com>
6385
6386 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
6387
af0b2a3e
TT
63882020-05-27 Tom Tromey <tromey@adacore.com>
6389
6390 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
6391 Use htab_find_with_hash.
6392 <add_abbrev>: Remove "abbrev_number" parameter.
6393 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
6394 "abbrev_number" parameter. Use htab_find_slot_with_hash.
6395 (hash_abbrev): Add comment.
6396 (abbrev_table::lookup_abbrev): Move to header file.
6397 (abbrev_table::read): Update.
6398
7d00ffec
TT
63992020-05-27 Tom Tromey <tromey@adacore.com>
6400
6401 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
6402 method.
6403 <canonical_name>: New member.
6404 <raw_name>: Rename from "name".
6405 (partial_die_info): Initialize canonical_name.
6406 (scan_partial_symbols): Check raw_name.
6407 (partial_die_parent_scope, partial_die_full_name)
6408 (add_partial_symbol, add_partial_subprogram)
6409 (add_partial_enumeration, load_partial_dies): Use "name" method.
6410 (partial_die_info::name): New method.
6411 (partial_die_info::read, guess_partial_die_structure_name)
6412 (partial_die_info::fixup): Update.
6413
697bba18
TT
64142020-05-27 Tom Tromey <tromey@adacore.com>
6415
6416 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
6417 <get_ref_die_offset>: Inline.
6418 <get_ref_die_offset_complaint>: New method.
6419 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
6420 (attribute::get_ref_die_offset_complaint): Rename from
6421 get_ref_die_offset. Just issue complaint.
6422
c17ace43
HD
64232020-05-27 Hannes Domani <ssbssa@yahoo.de>
6424
6425 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
6426
96445f0b
HD
64272020-05-27 Hannes Domani <ssbssa@yahoo.de>
6428
6429 * exec.c (exec_file_attach): Use errno value of first openp failure.
6430
ac637ec3
HD
64312020-05-27 Hannes Domani <ssbssa@yahoo.de>
6432
6433 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
6434 Don't close thread handle.
6435
17ee85fc
TT
64362020-05-27 Tom Tromey <tom@tromey.com>
6437 Simon Marchi <simon.marchi@efficios.com>
6438
6439 * objfiles.h (struct objfile) <partial_symtabs>: Now a
6440 shared_ptr.
6441 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
6442 member.
6443 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
6444 dwarf2_per_bfd_objfile_data_key>: New globals.
6445 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
6446 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
6447 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
6448 shared.
6449 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
6450 short-circuit when sharing.
6451 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
6452 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
6453
39b16f87
SM
64542020-05-27 Simon Marchi <simon.marchi@efficios.com>
6455
6456 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
6457 to...
6458 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
6459 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
6460
fcf23d5b
SM
64612020-05-27 Simon Marchi <simon.marchi@efficios.com>
6462
6463 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
6464 build_name_components, find_name_components_bounds>:
6465 Add per_objfile parameter.
6466 (struct mapped_index) <symbol_name_at>: Likewise.
6467 (struct mapped_debug_names): Remove constructor.
6468 <dwarf2_per_objfile>: Remove field.
6469 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
6470 (mapped_index_base::find_name_components_bounds,
6471 mapped_index_base::build_name_components,
6472 dw2_expand_symtabs_matching_symbol): Likewise.
6473 (class mock_mapped_index) <symbol_name_at>: Likewise.
6474 (check_match): Likewise.
6475 (check_find_bounds_finds): Likewise.
6476 (test_mapped_index_find_name_component_bounds): Update.
6477 (CHECK_MATCH): Update.
6478 (dw2_expand_symtabs_matching): Update.
6479 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
6480 per_objfile parameter.
6481 <find_vec_in_debug_names>: Likewise.
6482 <m_per_objfile>: New field.
6483 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
6484 parameter.
6485 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
6486 (dw2_debug_names_iterator::next): Update.
6487 (dw2_debug_names_lookup_symbol): Update.
6488 (dw2_debug_names_expand_symtabs_for_function): Update.
6489 (dw2_debug_names_map_matching_symbols): Update.
6490 (dw2_debug_names_expand_symtabs_matching): Update.
6491 (dwarf2_read_debug_names): Update.
6492
7188ed02
SM
64932020-05-27 Simon Marchi <simon.marchi@efficios.com>
6494
6495 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
6496 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
6497 move to dwarf2_per_objfile.
6498 <read_in_chain>: Remove.
6499 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
6500 remove_all_cus, age_comp_units>: New methods.
6501 <m_dwarf2_cus>: New member.
6502 (struct dwarf2_per_cu_data) <cu>: Remove.
6503 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
6504 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
6505 moved to methods of dwarf2_per_objfile.
6506 (dwarf2_clear_marks): Remove.
6507 (dwarf2_queue_item::~dwarf2_queue_item): Update.
6508 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
6509 (dwarf2_per_bfd::free_cached_comp_units): Remove.
6510 (dwarf2_per_objfile::remove_all_cus): New.
6511 (class free_cached_comp_units) <~free_cached_comp_units>:
6512 Update.
6513 (load_cu): Update.
6514 (dw2_do_instantiate_symtab): Adjust.
6515 (fill_in_sig_entry_from_dwo_entry): Adjust.
6516 (cutu_reader::init_tu_and_read_dwo_dies): Update.
6517 (cutu_reader::cutu_reader): Likewise.
6518 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
6519 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
6520 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
6521 and dwarf2_per_objfile::age_comp_units.
6522 (load_partial_comp_unit): Update.
6523 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
6524 (process_queue): Likewise.
6525 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
6526 backlink.
6527 (dwarf2_read_addr_index): Likewise.
6528 (follow_die_offset): Likewise.
6529 (dwarf2_fetch_die_loc_sect_off): Likewise.
6530 (dwarf2_fetch_constant_bytes): Likewise.
6531 (dwarf2_fetch_die_type_sect_off): Likewise.
6532 (follow_die_sig_1): Likewise.
6533 (load_full_type_unit): Likewise.
6534 (read_signatured_type): Likewise.
6535 (dwarf2_cu::dwarf2_cu): Don't set cu field.
6536 (dwarf2_cu::~dwarf2_cu): Remove.
6537 (dwarf2_per_objfile::get_cu): New.
6538 (dwarf2_per_objfile::set_cu): New.
6539 (age_cached_comp_units): Rename to...
6540 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
6541 to std::unordered_map.
6542 (free_one_cached_comp_unit): Rename to...
6543 (dwarf2_per_objfile::remove_cu): ... this. Adjust
6544 to std::unordered_map.
6545 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
6546 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
6547 a dwarf2_per_objfile in data.
6548 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
6549 (dwarf2_clear_marks): Remove.
6550
2e671100
SM
65512020-05-27 Simon Marchi <simon.marchi@efficios.com>
6552
6553 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
6554 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
6555 (init_tu_and_read_dwo_dies): Likewise.
6556 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
6557 (cutu_reader::cutu_reader): Likewise.
6558 (load_partial_comp_unit): Likewise.
6559 (process_psymtab_comp_unit): Update.
6560 (build_type_psymtabs_1): Update.
6561 (process_skeletonless_type_unit): Update.
6562 (load_full_comp_unit): Update.
6563 (find_partial_die): Update.
6564 (dwarf2_read_addr_index): Update.
6565 (read_signatured_type): Update.
6566
2e6a9f79
SM
65672020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6568
6569 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
6570 m_header_read_in>: New fields.
6571 <get_header>: New method.
6572 * dwarf2/read.c (per_cu_header_read_in): Remove.
6573 (dwarf2_per_cu_data::get_header): New.
6574 (dwarf2_per_cu_data::addr_size): Update.
6575 (dwarf2_per_cu_data::offset_size): Update.
6576 (dwarf2_per_cu_data::ref_addr_size): Update.
6577
1b555f17
SM
65782020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6579
6580 * dwarf2/read.c (load_cu): Return dwarf2_cu.
6581 (dw2_do_instantiate_symtab): Update.
6582 (queue_and_load_all_dwo_tus): Change parameter from
6583 dwarf2_per_cu_data to dwarf2_cu.
6584 (dwarf2_fetch_die_loc_sect_off): Update.
6585 (dwarf2_fetch_constant_bytes): Update.
6586 (dwarf2_fetch_die_type_sect_off): Update.
6587
8fc0b21d
SM
65882020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6589
6590 * dwarf2/read.c (process_full_comp_unit,
6591 process_full_type_unit): Remove per_cu, per_objfile paramters.
6592 Add dwarf2_cu parameter.
6593 (process_queue): Update.
6594
168c9250
SM
65952020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6596
6597 * dwarf2/read.c (create_cu_from_index_list): Replace
6598 dwarf2_per_objfile parameter with dwarf2_per_bfd.
6599 (create_cus_from_index_list): Likewise.
6600 (create_cus_from_index): Likewise.
6601 (create_signatured_type_table_from_index): Likewise.
6602 (create_cus_from_debug_names_list): Likewise.
6603 (create_cus_from_debug_names): Likewise.
6604 (dwarf2_read_gdb_index): Update.
6605 (dwarf2_read_debug_names): Update.
6606
e286671b
TT
66072020-05-27 Tom Tromey <tom@tromey.com>
6608 Simon Marchi <simon.marchi@efficios.com>
6609
6610 * dwarf2/read.h (struct dwarf2_per_objfile)
6611 <get_type_for_signatured_type, set_type_for_signatured_type>:
6612 New methods.
6613 <m_type_map>: New member.
6614 (struct signatured_type) <type>: Remove.
6615 * dwarf2/read.c
6616 (dwarf2_per_objfile::get_type_for_signatured_type,
6617 dwarf2_per_objfile::set_type_for_signatured_type): New.
6618 (get_signatured_type): Use new methods.
6619
8adb8487
TT
66202020-05-27 Tom Tromey <tom@tromey.com>
6621 Simon Marchi <simon.marchi@efficios.com>
6622
6623 * dwarf2/read.h (struct type_unit_group_unshareable): New.
6624 (struct dwarf2_per_objfile) <type_units>: New member.
6625 <get_type_unit_group_unshareable>: New method.
6626 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
6627 num_symtabs, symtabs>: Remove; move to
6628 type_unit_group_unshareable.
6629 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
6630 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
6631 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
6632
127bbf4b
SM
66332020-05-27 Simon Marchi <simon.marchi@efficios.com>
6634
6635 * dwarf2/read.h (struct dwarf2_per_cu_data):
6636 <dwarf2_per_objfile>: Remove.
6637 * dwarf2/read.c (create_cu_from_index_list): Don't assign
6638 dwarf2_per_objfile.
6639 (create_signatured_type_table_from_index): Likewise.
6640 (create_signatured_type_table_from_debug_names): Likewise.
6641 (create_debug_type_hash_table): Likewise.
6642 (fill_in_sig_entry_from_dwo_entry): Likewise.
6643 (create_type_unit_group): Likewise.
6644 (read_comp_units_from_section): Likewise.
6645 (create_cus_hash_table): Likewise.
6646
f6e649dd
SM
66472020-05-27 Simon Marchi <simon.marchi@efficios.com>
6648
6649 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
6650 dwarf2_per_cu_data::dwarf2_per_objfile.
6651 (compute_compunit_symtab_includes): Likewise.
6652 (dwarf2_cu::start_symtab): Likewise.
6653
aa66c379
SM
66542020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6655
6656 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
6657 parameter.
6658 * dwarf2/read.c (get_die_type_at_offset): Likewise.
6659 (read_namespace_alias): Update.
6660 (lookup_die_type): Update.
6661 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
6662 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
6663 Update.
6664 (disassemble_dwarf_expression): Update.
6665
120ce1b5
SM
66662020-05-27 Simon Marchi <simon.marchi@efficios.com>
6667
6668 * dwarf2/read.h (struct dwarf2_queue_item): Add
6669 dwarf2_per_objfile parameter, assign new parameter.
6670 <per_objfile>: New field.
6671 * dwarf2/read.c (free_one_cached_comp_unit): Add
6672 dwarf2_per_objfile parameter.
6673 (queue_comp_unit): Likewise.
6674 (dw2_do_instantiate_symtab): Update.
6675 (process_psymtab_comp_unit): Update.
6676 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
6677 (process_imported_unit_die): Update.
6678 (queue_and_load_dwo_tu): Update.
6679 (follow_die_offset): Update.
6680 (follow_die_sig_1): Update.
6681
9f47c707
SM
66822020-05-27 Simon Marchi <simon.marchi@efficios.com>
6683
6684 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
6685 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
6686 (read_call_site_scope): Assign per_objfile.
6687 (dwarf2_per_cu_data::objfile): Remove.
6688 * gdbtypes.h (struct call_site) <per_objfile>: New member.
6689 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
6690 dwarf2_per_objfile parameter.
6691 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
6692 dwarf2_per_objfile parameter.
6693 (dwarf_expr_reg_to_entry_parameter): Add output
6694 dwarf2_per_objfile parameter.
6695 (locexpr_get_frame_base): Update.
6696 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
6697 <push_dwarf_reg_entry_value>: Update.
6698 <call_site_to_target_addr>: Update.
6699 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
6700 parameter.
6701 (value_of_dwarf_reg_entry): Update.
6702 (rw_pieced_value): Update.
6703 (indirect_synthetic_pointer): Update.
6704 (dwarf2_evaluate_property): Update.
6705 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
6706 parameter.
6707 (locexpr_read_variable): Update.
6708 (locexpr_get_symbol_read_needs): Update.
6709 (loclist_read_variable): Update.
6710
14095eb3
SM
67112020-05-27 Simon Marchi <simon.marchi@efficios.com>
6712
6713 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
6714 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
6715 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
6716 parameter.
6717 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
6718 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
6719 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
6720 parameter.
6721 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
6722 sect_variable_value): Add dwarf2_per_objfile parameter.
6723 (class dwarf_evaluate_loc_desc) <dwarf_call,
6724 dwarf_variable_value>: Update.
6725 (fetch_const_value_from_synthetic_pointer): Add
6726 dwarf2_per_objfile parameter.
6727 (fetch_const_value_from_synthetic_pointer): Update.
6728 (coerced_pieced_ref): Update.
6729 (class symbol_needs_eval_context) <dwarf_call,
6730 dwarf_variable_value>: Update.
6731 (dwarf2_compile_expr_to_ax): Update.
6732
3c3cd3d4
SM
67332020-05-27 Simon Marchi <simon.marchi@efficios.com>
6734
6735 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
6736 parameter.
6737 (dwarf2_evaluate_loc_desc_full): Update.
6738
82ca3f51
SM
67392020-05-27 Simon Marchi <simon.marchi@efficios.com>
6740
6741 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
6742 parameter.
6743 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
6744 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
6745 dwarf2_per_objfile parameter.
6746 (decode_debug_loc_dwo_addresses): Likewise.
6747 (dwarf2_find_location_expression): Update.
6748 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
6749 (locexpr_describe_location_piece): Add dwarf2_per_objfile
6750 parameter.
6751 (disassemble_dwarf_expression): Add dwarf2_per_objfile
6752 parameter.
6753 (locexpr_describe_location_1): Likewise.
6754 (locexpr_describe_location): Update.
6755
4b167ea1
SM
67562020-05-27 Simon Marchi <simon.marchi@efficios.com>
6757
6758 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
6759 Remove.
6760 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
6761 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
6762 (dwarf2_compile_property_to_c): Update.
6763 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
6764 use text offset from objfile.
6765 (locexpr_tracepoint_var_ref): Update.
6766 (locexpr_generate_c_location): Update.
6767 (loclist_describe_location): Update.
6768 (loclist_tracepoint_var_ref): Update.
6769 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
6770 dwarf2_per_objfile parameter.
6771 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
6772 use text offset from objfile.
6773 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
6774
89b07335
SM
67752020-05-27 Simon Marchi <simon.marchi@efficios.com>
6776
6777 * dwarf2/expr.h (struct dwarf_expr_context)
6778 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
6779 <offset>: Remove.
6780 <per_objfile>: New member.
6781 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
6782 dwarf2_per_objfile parameter. Don't set offset, set
6783 per_objfile.
6784 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
6785 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
6786 a dwarf2_per_objfile object instead of an offset.
6787 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
6788 constructor.
6789 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
6790 to dwarf2_expr_executor constructor. Don't set offset.
6791 (dwarf2_fetch_cfa_info): Update.
6792 (struct dwarf2_frame_cache) <text_offset>: Remove.
6793 <per_objfile>: New field.
6794 (dwarf2_frame_cache): Update.
6795 (dwarf2_frame_prev_register): Update.
6796 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6797 <dwarf_evaluate_loc_desc>: Add constructor.
6798 (dwarf2_evaluate_loc_desc_full): Update.
6799 (dwarf2_locexpr_baton_eval): Update.
6800 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
6801 Add constructor.
6802 (dwarf2_loc_desc_get_symbol_read_needs): Update.
6803
293e7e51
SM
68042020-05-27 Simon Marchi <simon.marchi@efficios.com>
6805
6806 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
6807 addr_sized_int_type>: Move to dwarf2_cu.
6808 <int_type>: Move to dwarf2_per_objfile.
6809 (struct dwarf2_per_objfile) <int_type>: Move here.
6810 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
6811 addr_sized_int_type>: Move here.
6812 (read_func_scope): Update.
6813 (read_array_type): Update.
6814 (read_tag_string_type): Update.
6815 (attr_to_dynamic_prop): Update.
6816 (dwarf2_per_cu_data::int_type): Rename to...
6817 (dwarf2_per_objfile::int_type): ... this.
6818 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
6819 (dwarf2_cu::addr_sized_int_type): ... this.
6820 (read_subrange_type): Update.
6821 (dwarf2_per_cu_data::addr_type): Rename to...
6822 (dwarf2_cu::addr_type): ... this.
6823 (set_die_type): Update.
6824
64874a40
SM
68252020-05-27 Simon Marchi <simon.marchi@efficios.com>
6826
6827 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
6828 data through per_cu->cu.
6829
4ab09049
SM
68302020-05-27 Simon Marchi <simon.marchi@efficios.com>
6831
6832 * dwarf2/read.c (lookup_dwo_comp_unit): Change
6833 dwarf2_per_cu_data parameter fo dwarf2_cu.
6834 (lookup_dwo_type_unit): Likewise.
6835 (read_cutu_die_from_dwo): Likewise.
6836 (lookup_dwo_unit): Likewise.
6837 (open_and_init_dwo_file): Likewise.
6838 (lookup_dwo_cutu): Likewise.
6839 (lookup_dwo_comp_unit): Likewise.
6840 (lookup_dwo_type_unit): Likewise.
6841 (cutu_reader::init_tu_and_read_dwo_dies): Update.
6842 (cutu_reader::cutu_reader): Update.
6843
47b14e86
SM
68442020-05-27 Simon Marchi <simon.marchi@efficios.com>
6845
6846 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
6847 parameter.
6848 (process_full_type_unit): Likewise.
6849 (process_queue): Update.
6850
43182c09
SM
68512020-05-27 Simon Marchi <simon.marchi@efficios.com>
6852
6853 * dwarf2/read.c (recursively_compute_inclusions): Add
6854 dwarf2_per_objfile parameter.
6855 (compute_compunit_symtab_includes): Likewise.
6856 (process_cu_includes): Update.
6857
7aa104c4
SM
68582020-05-27 Simon Marchi <simon.marchi@efficios.com>
6859
6860 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
6861 parameter.
6862 (create_type_unit_group): Update.
6863 (process_psymtab_comp_unit_reader): Update.
6864 (build_type_psymtabs_reader): Update.
6865
e3beb21d
SM
68662020-05-27 Simon Marchi <simon.marchi@efficios.com>
6867
6868 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
6869 object through m_this_cu->cu.
6870
d460f660
SM
68712020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6872
6873 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
6874 the info parameter.
6875 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
6876
ab432490
SM
68772020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6878
6879 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
6880 per_objfile parameter.
6881 (load_full_type_unit): Add per_objfile parameter.
6882 (read_signatured_type): Likewise.
6883 (load_full_comp_unit): Likewise.
6884 (load_cu): Likewise.
6885 (dw2_do_instantiate_symtab): Likewise.
6886 (dw2_get_file_names): Likewise.
6887 (dw2_map_symtabs_matching_filename): Update.
6888 (dw_expand_symtabs_matching_file_matcher): Update.
6889 (dw2_map_symbol_filenames): Update.
6890 (process_psymtab_comp_unit): Add per_objfile parameter.
6891 (build_type_psymtabs_1): Update.
6892 (process_skeletonless_type_unit): Update.
6893 (dwarf2_build_psymtabs_hard): Update.
6894 (load_partial_comp_unit): Add per_objfile parameter.
6895 (scan_partial_symbols): Update.
6896 (load_full_comp_unit): Add per_objfile parameter.
6897 (process_imported_unit_die): Update.
6898 (create_cus_hash_table): Update.
6899 (find_partial_die): Update.
6900 (dwarf2_read_addr_index): Update.
6901 (follow_die_offset): Update.
6902 (dwarf2_fetch_die_loc_sect_off): Update.
6903 (dwarf2_fetch_constant_bytes): Update.
6904 (dwarf2_fetch_die_type_sect_off): Update.
6905 (follow_die_sig_1): Update.
6906 (load_full_type_unit): Add per_objfile parameter.
6907 (read_signatured_type): Likewise.
6908
313bad1b
SM
69092020-05-27 Simon Marchi <simon.marchi@efficios.com>
6910
6911 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
6912 of objfile_name.
6913
c3699833
SM
69142020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6915
6916 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
6917 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
6918 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
6919 field.
6920 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
6921 (create_cus_from_index): Update.
6922 (dwarf2_read_gdb_index): Update.
6923 (create_cus_from_debug_names): Update.
6924 (dwarf2_read_debug_names): Update.
6925 (get_abbrev_section_for_cu): Update.
6926 (create_all_comp_units): Update.
6927 (read_attribute_value): Update.
6928 (get_debug_line_section): Update.
6929 * dwarf2/index-cache.c (index_cache::store): Update.
6930 * dwarf2/index-write.c (save_gdb_index_command): Update.
6931 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
6932
1859c670
SM
69332020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6934
6935 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
6936 member.
6937 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
6938 dwarf2_per_cu_data::per_bfd.
6939 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
6940 (create_type_unit_group): Likewise.
6941 (queue_comp_unit): Remove reference to
6942 per_cu->dwarf2_per_objfile.
6943 (maybe_queue_comp_unit): Likewise.
6944 (fill_in_sig_entry_from_dwo_entry): Assign new field.
6945 (create_cus_hash_table): Assign new field.
6946
5e22e966
SM
69472020-05-27 Simon Marchi <simon.marchi@efficios.com>
6948
6949 * dwarf2/read.c: Replace
6950 dwarf2_cu->per_cu->dwarf2_per_objfile references with
6951 dwarf2_cu->per_objfile throughout.
6952
97a1449a
SM
69532020-05-27 Simon Marchi <simon.marchi@efficios.com>
6954
6955 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
6956 parameter, don't use per_cu->dwarf2_per_objfile.
6957 (dw2_instantiate_symtab): Likewise.
6958 (dw2_find_last_source_symtab): Update.
6959 (dw2_map_expand_apply): Update.
6960 (dw2_lookup_symbol): Update.
6961 (dw2_expand_symtabs_for_function): Update.
6962 (dw2_expand_all_symtabs): Update.
6963 (dw2_expand_symtabs_with_fullname): Update.
6964 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
6965 don't use per_cu->dwarf2_per_objfile.
6966 (dw2_expand_marked_cus): Update.
6967 (dw2_find_pc_sect_compunit_symtab): Update.
6968 (dw2_debug_names_lookup_symbol): Update.
6969 (dw2_debug_names_expand_symtabs_for_function): Update.
6970 (dw2_debug_names_map_matching_symbols): Update.
6971 (dwarf2_psymtab::expand_psymtab): Update.
6972
9e021579
SM
69732020-05-27 Simon Marchi <simon.marchi@efficios.com>
6974
6975 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
6976 <per_objfile>: New member.
6977 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
6978 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
6979 call to dwarf2_cu.
6980 (cutu_reader::cutu_reader): Update.
6981 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
6982
ae090bdb
SM
69832020-05-27 Simon Marchi <simon.marchi@efficios.com>
6984
6985 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
6986 struct dwarf2_per_objfile.
6987 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
6988 dwarf2_per_bfd.
6989 * dwarf2/read.c (set_die_type): Update.
6990 (get_die_type_at_offset): Update.
6991
af758d11
SM
69922020-05-27 Tom Tromey <tom@tromey.com>
6993 Simon Marchi <simon.marchi@efficios.com>
6994
6995 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
6996 method.
6997 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
6998 get_symtab, set_symtab>: New methods.
6999 <m_symtabs>: New field.
7000 (struct dwarf2_psymtab): Derive from partial_symtab.
7001 <readin_p, get_compunit_symtab>: Declare methods.
7002 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
7003 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
7004 New methods.
7005 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
7006 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
7007 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
7008 (dw2_symtab_iter_next, dw2_print_stats)
7009 (dw2_expand_symtabs_with_fullname)
7010 (dw2_expand_symtabs_matching_one)
7011 (dw_expand_symtabs_matching_file_matcher)
7012 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
7013 (dw2_debug_names_iterator::next)
7014 (dw2_debug_names_map_matching_symbols)
7015 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
7016 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
7017 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
7018 New methods.
7019 (get_compunit_symtab, process_full_comp_unit)
7020 (process_full_type_unit): Update.
7021 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
7022
5989a64e
SM
70232020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7024
7025 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
7026 then introduce a new dwarf2_per_objfile type.
7027 <read_line_string>: Move to the new dwarf2_per_objfile type.
7028 <objfile>: Likewise.
7029 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
7030 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
7031 dwarf2_per_objfile->per_bfd.
7032 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
7033 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
7034 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
7035 (dwarf2_per_bfd::free_cached_comp_units): ... this.
7036 (dwarf2_has_info): Allocate dwarf2_per_bfd.
7037 (dwarf2_per_objfile::locate_sections): Rename to...
7038 (dwarf2_per_bfd::locate_sections): ... this.
7039 (dwarf2_per_objfile::get_cutu): Rename to...
7040 (dwarf2_per_bfd::get_cutu): ... this.
7041 (dwarf2_per_objfile::get_cu): Rename to...
7042 (dwarf2_per_bfd::get_cu): ... this.
7043 (dwarf2_per_objfile::get_tu): Rename to...
7044 (dwarf2_per_bfd::get_tu): ... this.
7045 (dwarf2_per_objfile::allocate_per_cu): Rename to...
7046 (dwarf2_per_bfd::allocate_per_cu): ... this.
7047 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
7048 (dwarf2_per_bfd::allocate_signatured_type): ... this.
7049 (get_gdb_index_contents_ftype): Change parameter from
7050 dwarf2_per_objfile to dwarf2_per_bfd.
7051 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
7052 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
7053
a50264ba
TT
70542020-05-27 Tom Tromey <tom@tromey.com>
7055 Simon Marchi <simon.marchi@efficios.com>
7056
7057 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
7058 (allocate_piece_closure): Set "per_objfile" member.
7059 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
7060 (locexpr_describe_location, loclist_describe_location): Use new
7061 member.
7062 * dwarf2/read.c (read_call_site_scope)
7063 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
7064 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
7065 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
7066 handle_data_member_location): Set per_objfile member.
7067 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
7068 member.
7069 (struct dwarf2_loclist_baton) <per_objfile>: New member.
7070
d3473f0c
TT
70712020-05-27 Tom Tromey <tom@tromey.com>
7072
7073 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
7074 allocate_signatured_type>: Declare new methods.
7075 <m_num_psymtabs>: New member.
7076 (struct dwarf2_per_cu_data) <index>: New member.
7077 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
7078 (dwarf2_per_objfile::allocate_signatured_type): New methods.
7079 (create_cu_from_index_list): Use allocate_per_cu.
7080 (create_signatured_type_table_from_index)
7081 (create_signatured_type_table_from_debug_names)
7082 (create_debug_type_hash_table, add_type_unit)
7083 (read_comp_units_from_section): Use allocate_signatured_type.
7084
5717c425
TT
70852020-05-27 Tom Tromey <tom@tromey.com>
7086
7087 * psymtab.c (partial_map_expand_apply)
7088 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
7089 (psym_lookup_global_symbol_language)
7090 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
7091 (psym_print_stats, psym_expand_symtabs_for_function)
7092 (psym_map_symbol_filenames, psym_map_matching_symbols)
7093 (psym_expand_symtabs_matching)
7094 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
7095 (maintenance_check_psymtabs): Update.
7096 * psympriv.h (struct partial_symtab) <readin_p,
7097 get_compunit_symtab>: Add objfile parameter.
7098 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
7099 Likewise.
7100 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
7101 get_compunit_symtab>: Likewise.
7102 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
7103
45940949
TT
71042020-05-27 Tom Tromey <tom@tromey.com>
7105
7106 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
7107 member.
7108 * dwarf2/read.c (delete_file_name_entry): Fix comment.
7109 (create_cu_from_index_list)
7110 (create_signatured_type_table_from_index)
7111 (create_signatured_type_table_from_debug_names)
7112 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
7113 (dwarf2_create_include_psymtab)
7114 (create_debug_type_hash_table, add_type_unit)
7115 (create_type_unit_group, read_comp_units_from_section)
7116 (dwarf2_compute_name, create_cus_hash_table)
7117 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
7118 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
7119 obstack.
7120 (dw2_get_real_path): Likewise. Change argument to
7121 dwarf2_per_objfile.
7122
f8c6d152
LM
71232020-05-27 Luis Machado <luis.machado@linaro.org>
7124
7125 PR tdep/26000
7126 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
7127 for ldrd (immediate).
7128
e98d2e6d
PW
71292020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7130
7131 * command.h: Add comment giving the name of class_tui.
7132 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
7133 create the fake command for the help for class_tui.
7134
53a47a3e
TT
71352020-05-26 Tom Tromey <tromey@adacore.com>
7136
7137 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
7138 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
7139 (val_atr): New function.
7140 (value_val_atr): Use it.
7141 * ada-valprint.c (print_optional_low_bound): Change low bound
7142 handling for enums.
7143 (val_print_packed_array_elements): Don't call discrete_position.
7144 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
7145 discrete_position for enum types.
7146 * language.c (default_print_array_index): Change type.
7147 * language.h (struct language_defn) <la_print_array_index>: Add
7148 index_type parameter, change type of index_value.
7149 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
7150 (default_print_array_index): Update.
7151 * valprint.c (maybe_print_array_index): Don't call
7152 value_from_longest. Update.
7153 (value_print_array_elements): Don't call discrete_position.
7154
0bc2354b
TT
71552020-05-26 Tom Tromey <tromey@adacore.com>
7156
7157 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
7158 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
7159
1218a4bf
CDA
71602020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
7161
7162 PR gdb/13519
7163 * avr-tdep.c (avr_integer_to_address): Return data or code
7164 address accordingly to the second 'type' argument of the
7165 function.
7166
92651b1d
MW
71672020-05-25 Michael Weghorn <m.weghorn@posteo.de>
7168
7169 * infcmd.c, inferior.h: (construct_inferior_arguments):
7170 Moved function from here to gdbsupport/common-inferior.{h,cc}
7171
0a4f5f8c
TT
71722020-05-23 Tom Tromey <tom@tromey.com>
7173
7174 Revert commit eca1f90c:
7175 * NEWS: Remove entry for completion styling.
7176 * completer.c (_rl_completion_prefix_display_length): Move
7177 declaration later.
7178 (gdb_fnprint): Revert.
7179 (gdb_display_match_list_1): Likewise.
7180 * cli/cli-style.c (completion_prefix_style)
7181 (completion_difference_style, completion_suffix_style): Remove.
7182 (_initialize_cli_style): Revert.
7183 * cli/cli-style.h (completion_prefix_style)
7184 (completion_difference_style, completion_suffix_style): Don't
7185 declare.
7186
e08bd6c5
PA
71872020-05-24 Pedro Alves <palves@redhat.com>
7188
7189 * symtab.c (completion_list_add_name): Return boolean indication
7190 of whether the symbol matched.
7191 (completion_list_add_symbol): Don't try to remove C++ aliases if
7192 the symbol didn't match in the first place.
7193 * symtab.h (completion_list_add_name): Return bool.
7194
ceacbf6e
SM
71952020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
7196
7197 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
7198 type::field.
7199
26f16254
JB
72002020-05-23 Joel Brobecker <brobecker@adacore.com>
7201
7202 GDB 9.2 released.
7203
eca1f90c
TT
72042020-05-23 Tom Tromey <tom@tromey.com>
7205
7206 * NEWS: Add entry for completion styling.
7207 * completer.c (_rl_completion_prefix_display_length): Move
7208 declaration earlier.
7209 (gdb_fnprint): Use completion_style.
7210 (gdb_display_match_list_1): Likewise.
7211 * cli/cli-style.c (completion_prefix_style)
7212 (completion_difference_style, completion_suffix_style): New
7213 globals.
7214 (_initialize_cli_style): Register new globals.
7215 * cli/cli-style.h (completion_prefix_style)
7216 (completion_difference_style, completion_suffix_style): Declare.
7217
51e2cfa2
PA
72182020-05-23 Pedro Alves <palves@redhat.com>
7219
7220 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
7221 (parse_escape): Use ISDIGIT instead of isdigit.
7222 (puts_debug): Use gdb_isprint instead of isprint.
7223 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
7224 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
7225 ISSPACE instead of isspace.
7226 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
7227 instead of isspace.
7228 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
7229 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
7230 instead of isxdigit and ISDIGIT instead of isdigit.
7231
80fc5e77
SM
72322020-05-22 Simon Marchi <simon.marchi@efficios.com>
7233
7234 * gdbtypes.h (struct type) <field>: New method.
7235 (TYPE_FIELDS): Remove, replace all uses with either type::fields
7236 or type::field.
7237
3cabb6b0
SM
72382020-05-22 Simon Marchi <simon.marchi@efficios.com>
7239
7240 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
7241 (TYPE_FIELDS): Use type::fields. Change all call sites that
7242 modify the propery to use type::set_fields instead.
7243
1f704f76
SM
72442020-05-22 Simon Marchi <simon.marchi@efficios.com>
7245
7246 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
7247 type::num_fields instead.
7248
5e33d5f4
SM
72492020-05-22 Simon Marchi <simon.marchi@efficios.com>
7250
7251 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
7252 methods.
7253 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
7254 that modify the number of fields to use type::set_num_fields
7255 instead.
7256
9392ebb3
TT
72572020-05-22 Tom Tromey <tromey@adacore.com>
7258
7259 * compile/compile-object-load.h (munmap_list_free): Don't
7260 declare.
7261
7c13f4e8
AB
72622020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
7263
7264 * annotate.c (annotate_source_line): Update return type, add call
7265 to update current symtab and line.
7266 * annotate.h (annotate_source_line): Update return type, and
7267 extend header comment.
7268 * source.c (info_line_command): Check annotation_level before
7269 calling annotate_source_line.
7270 * stack.c (print_frame_info): If calling annotate_source_line
7271 returns true, then don't print any other source line information.
7272
aa370940
SM
72732020-05-21 Simon Marchi <simon.marchi@efficios.com>
7274
7275 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
7276
84d53fa9
SM
72772020-05-21 Simon Marchi <simon.marchi@efficios.com>
7278
7279 * coffread.c (patch_type): Remove NULL check before xfree.
7280 * corefile.c (set_gnutarget): Likewise.
7281 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
7282 * exec.c (build_section_table): Likewise.
7283 * remote.c (remote_target::pass_signals): Likewise.
7284 * utils.c (n_spaces): Likewise.
7285 * cli/cli-script.c (document_command): Likewise.
7286 * i386-windows-tdep.c (core_process_module_section): Likewise.
7287 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
7288
9d428aae
SM
72892020-05-20 Simon Marchi <simon.marchi@efficios.com>
7290
7291 * symfile.c (reread_symbols): Clear objfile's section_offsets
7292 vector and section indices, re-compute them by calling
7293 sym_offsets.
7294
250106a7
TT
72952020-05-20 Tom Tromey <tromey@adacore.com>
7296
7297 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 7298 (desc_one_bound, desc_index_type): Compute field name.
250106a7 7299
9a0bacfb
TV
73002020-05-20 Tom de Vries <tdevries@suse.de>
7301
7302 PR symtab/25833
7303 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
7304
7b958a48
AM
73052020-05-20 Alan Modra <amodra@gmail.com>
7306
7307 PR 25993
7308 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
7309 bfd_set_filename.
7310 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
7311 passed to bfd_set_filename.
7312 * symfile-mem.c (add_vsyscall_page): Likewise for string
7313 passed to symbol_file_add_from_memory.
7314 (symbol_file_add_from_memory): Make name param a const char* and
7315 don't strdup.
7316
c7e97679
AM
73172020-05-20 Alan Modra <amodra@gmail.com>
7318
7319 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
7320 rather than accessing bfd->filename directly.
7321 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
7322 and use bfd_section_name.
7323 * dwarf2/frame.c (decode_frame_entry): Likewise.
7324 * exec.c (exec_set_section_address): Likewise.
7325 * solib-aix.c (solib_aix_bfd_open): Likewise.
7326 * stap-probe.c (get_stap_base_address): Likewise.
7327 * symfile.c (reread_symbols): Likewise.
7328
563c591b
TT
73292020-05-19 Tom Tromey <tromey@adacore.com>
7330
7331 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
7332
f408d82c
SM
73332020-05-19 Simon Marchi <simon.marchi@efficios.com>
7334
7335 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
7336
98c59b52
PA
73372020-05-19 Pedro Alves <palves@redhat.com>
7338
7339 * NEWS (set exec-file-mismatch): Adjust entry.
7340 * exec.c: Include "build-id.h".
7341 (validate_exec_file): Try to match build IDs instead of filenames.
7342 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
7343 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
7344 and pass down 'warn_if_slow'.
7345 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
7346 gdb_bfd_open_closure to pass it down.
7347 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
7348
4111f652
PA
73492020-05-19 Pedro Alves <palves@redhat.com>
7350
7351 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
7352 * target.c (target_fileio_open_1): Rename to target_fileio_open
7353 and make extern. Use bool.
7354 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
7355 (target_fileio_read_alloc_1): Adjust.
7356 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
7357 (target_fileio_open_warn_if_slow): Delete declaration.
7358
ad80db5b
PA
73592020-05-19 Pedro Alves <palves@redhat.com>
7360
7361 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
7362 Adjust all callers.
7363
1d6ce4d3
YS
73642020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
7365
7366 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
7367 whether disp is negative.
7368
9005fbbb
SM
73692020-05-19 Simon Marchi <simon.marchi@efficios.com>
7370
7371 * symfile.h (struct symfile_segment_data)
7372 <~symfile_segment_data>: Remove.
7373 <segment_info>: Change to std::vector.
7374 * symfile.c (default_symfile_segments): Update.
7375 * elfread.c (elf_symfile_segments): Update.
7376
68b888ff
SM
73772020-05-19 Simon Marchi <simon.marchi@efficios.com>
7378
7379 * symfile.h (struct symfile_segment_data) <struct segment>: New.
7380 <segments>: New.
7381 <segment_bases, segment_sizes>: Remove.
7382 * symfile.c (default_symfile_segments): Update.
7383 * elfread.c (elf_symfile_segments): Update.
7384 * remote.c (remote_target::get_offsets): Update.
7385 * solib-target.c (solib_target_relocate_section_addresses):
7386 Update.
7387
62982abd
SM
73882020-05-19 Simon Marchi <simon.marchi@efficios.com>
7389
7390 * symfile.h (struct symfile_segment_data): Initialize fields.
7391 <~symfile_segment_data>: Add.
7392 (symfile_segment_data_up): New.
7393 (struct sym_fns) <sym_segments>: Return a
7394 symfile_segment_data_up.
7395 (default_symfile_segments): Return a symfile_segment_data_up.
7396 (free_symfile_segment_data): Remove.
7397 (get_symfile_segment_data): Return a symfile_segment_data_up.
7398 * symfile.c (default_symfile_segments): Likewise.
7399 (get_symfile_segment_data): Likewise.
7400 (free_symfile_segment_data): Remove.
7401 (symfile_find_segment_sections): Update.
7402 * elfread.c (elf_symfile_segments): Return a
7403 symfile_segment_data_up.
7404 * remote.c (remote_target::get_offsets): Update.
7405 * solib-target.c (solib_target_relocate_section_addresses):
7406 Update.
7407 * symfile-debug.c (debug_sym_segments): Return a
7408 symfile_segment_data_up.
7409
7f204339
RO
74102020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7411
e52a0f1b
RO
7412 PR build/25981
7413 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
7414 Hardcode register numbers.
7415
7f204339
RO
7416 PR build/25981
7417 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
7418 procfs_find_LDT_entry): Remove.
7419 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
7420 procfs_find_LDT_entry): Remove.
7421 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
7422 Remove.
7423
7f32a4d5
PA
74242020-05-17 Pedro Alves <palves@redhat.com>
7425 Andrew Burgess <andrew.burgess@embecosm.com>
7426 Keno Fischer <keno@juliacomputing.com>
7427
7428 PR gdb/25741
7429 * breakpoint.c (build_target_condition_list): Update comments.
7430 (build_target_command_list): Update comments and skip matching
7431 locations.
7432 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
7433 a separate function. Simplify "set breakpoint auto-hw off"
7434 handling.
7435 (insert_breakpoints): Update comment.
7436 (tracepoint_locations_match): New parameter. For breakpoints,
7437 compare location types too, if the caller wants to.
7438 (handle_automatic_hardware_breakpoints): New functions.
7439 (bp_location_is_less_than): Also sort by location type and
7440 hardware breakpoint length.
7441 (update_global_location_list): Handle "set breakpoint auto-hw on"
7442 here.
7443 (update_breakpoint_locations): Ask breakpoint_locations_match to
7444 ignore location types.
7445
7d93a1e0
SM
74462020-05-16 Simon Marchi <simon.marchi@efficios.com>
7447
7448 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
7449 type::name instead.
7450
d0e39ea2
SM
74512020-05-16 Simon Marchi <simon.marchi@efficios.com>
7452
7453 * gdbtypes.h (struct type) <name, set_name>: New methods.
7454 (TYPE_CODE): Use type::name. Change all call sites used to set
7455 the name to use type::set_name instead.
7456
2dab0c7b
TT
74572020-05-16 Tom Tromey <tom@tromey.com>
7458
7459 * top.c (quit_force): Update.
7460 * infrun.c (handle_no_resumed): Update.
7461 * top.h (all_uis): New function.
7462 (ALL_UIS): Remove.
7463
59f7bd8d
SM
74642020-05-16 Simon Marchi <simon.marchi@efficios.com>
7465
7466 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
7467
9bf058f0
PA
74682020-05-16 Pedro Alves <palves@redhat.com>
7469
7470 * ia64-linux-nat.c
7471 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
7472 Declare method.
7473 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
7474
8f86ae1a
SM
74752020-05-15 Simon Marchi <simon.marchi@efficios.com>
7476
7477 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
7478 (sparc64_adi_info): Likewise.
7479
d6bc0792
TT
74802020-05-15 Tom Tromey <tom@tromey.com>
7481
7482 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
7483 block_objfile.
7484 (lookup_objfile_from_block): Remove.
7485 (lookup_symbol_in_block, lookup_symbol_in_static_block)
7486 (lookup_global_symbol): Use block_objfile.
7487 * symtab.h (lookup_objfile_from_block): Don't declare.
7488 * printcmd.c (clear_dangling_display_expressions): Use
7489 block_objfile.
7490 * parse.c (operator_check_standard): Use block_objfile.
7491
8c14c3a3
TT
74922020-05-15 Tom Tromey <tom@tromey.com>
7493
7494 * language.c (language_alloc_type_symbol): Set
7495 SYMBOL_SECTION.
7496 * symtab.c (initialize_objfile_symbol): Remove.
7497 (allocate_symbol): Remove.
7498 (allocate_template_symbol): Remove.
7499 * dwarf2/read.c (fixup_go_packaging): Use "new".
7500 (new_symbol): Use "new".
7501 (read_variable): Don't call initialize_objfile_symbol. Use
7502 "new".
7503 (read_func_scope): Use "new".
7504 * xcoffread.c (process_xcoff_symbol): Don't call
7505 initialize_objfile_symbol.
7506 (SYMBOL_DUP): Remove.
7507 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
7508 "new".
7509 * symtab.h (allocate_symbol, initialize_objfile_symbol)
7510 (allocate_template_symbol): Don't declare.
7511 (struct symbol): Add copy constructor. Change defaults.
7512 * jit.c (finalize_symtab): Use "new".
7513 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
7514 Use "new".
7515 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
7516 (common_block_end): Use "new".
7517 * mdebugread.c (parse_symbol): Use "new".
7518 (new_symbol): Likewise.
7519
5b4a1a8d
PW
75202020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7521
7522 * NEWS: Mention changes to help and apropos.
7523
57b4f16e
PW
75242020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7525
7526 * command.h (enum command_class): Improve comments, document
7527 that class_alias is for user-defined aliases, give the class
7528 name for each class, remove unused class_xdb.
7529 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
7530 * breakpoint.c (_initialize_breakpoint): Replace class_alias
7531 by a precise class.
7532 * infcmd.c (_initialize_infcmd): Likewise.
7533 * reverse.c (_initialize_reverse): Likewise.
7534 * stack.c (_initialize_stack): Likewise.
7535 * symfile.c (_initialize_symfile): Likewise.
7536 * tracepoint.c (_initialize_tracepoint): Likewise.
7537
7c05caf7
PW
75382020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7539
7540 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
7541 when their aliased command is traversed.
7542 (help_cmd): Add fput_command_names_styled call to
7543 output command name and aliases when command has an alias.
7544
3b3aaacb
PW
75452020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7546
7547 * cli/cli-decode.h (help_cmd_list): Remove declaration.
7548 * cli/cli-decode.c (help_cmd_list): Declare as static,
7549 remove prefix argument, use bool for recurse arg, rework to show the aliases of
7550 a command together with the command.
7551 (fput_command_name_styled, fput_command_names_styled): New functions.
7552 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
7553 fput_command_name_styled.
7554 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
7555 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
7556
7aa1b46f
PW
75572020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7558
7559 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
7560 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
7561 * command.h (cmd_show_list): Likewise.
7562 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
7563 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
7564
89bcba74
PW
75652020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7566
7567 * unittests/command-def-selftests.c (traverse_command_structure):
7568 Verify all commands of a list have the same prefix command and
7569 that only the top cmdlist commands have a null prefix.
7570
3f4d92eb
PW
75712020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7572
7573 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
7574 as prefix, not one of its aliases.
7575 (set_cmd_prefix): Remove.
7576 (do_add_cmd): Centralize the setting of the prefix of a command, when
7577 command is defined after its full chain of prefix commands.
7578 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
7579 (add_setshow_cmd_full): Likewise.
7580 (update_prefix_field_of_prefixed_commands): New function.
7581 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
7582 update_prefix_field_of_prefixed_commands.
7583 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
7584 addresses of remote_set_cmdlist and remote_show_cmdlist given
7585 as argument, not the address of an argument.
7586 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
7587 * gdb/remote.c (_initialize_remote): Likewise.
7588
0605465f
PW
75892020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7590
7591 * cli/cli-cmds.c (alias_command): Check for an existing alias
7592 using lookup_cmd_composition, as valid_command_p is too strict
7593 and forbids aliases that are the prefix of an existing alias
7594 or command.
7595 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
7596 command is properly recognised as a valid command.
7597
58e6ac70
PW
75982020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7599
7600 * unittests/help-doc-selftests.c: Rename to
7601 unittests/command-def-selftests.c
7602 * unittests/command-def-selftests.c (help_doc_tests): Update some
7603 comments.
7604 (command_structure_tests, traverse_command_structure): New namespace
7605 and function.
7606 (command_structure_invariants_tests): New function.
7607 (_initialize_command_def_selftests) Renamed from
7608 _initialize_help_doc_selftests, register command_structure_invariants
7609 selftest.
7610
a7b9ceb8
PW
76112020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7612
7613 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
7614 an alias of 'show'.
7615
b2188a06
JB
76162020-05-15 Joel Brobecker <brobecker@adacore.com>
7617
7618 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
7619 ada_is_fixed_point_type. Update all callers.
7620 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
7621 all callers.
7622 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
7623 Update all callers.
7624 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
7625 print_fixed_point_type. Update all callers.
7626 * ada-valprint.c (ada_value_print_num): Replace call to
7627 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
7628
a51951c2
KB
76292020-05-14 Kevin Buettner <kevinb@redhat.com>
7630
7631 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
7632 processors.
7633 (cpu_supports_bts): Add CV_AMD case.
7634
29d6859f
LM
76352020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
7636 Simon Marchi <simon.marchi@efficios.com>
7637
7638 * infrun.c (stop_all_threads): Collect multiple wait events at
7639 each pass.
7640
78134374
SM
76412020-05-14 Simon Marchi <simon.marchi@efficios.com>
7642
7643 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
7644 type::code instead.
7645
67607e24
SM
76462020-05-14 Simon Marchi <simon.marchi@efficios.com>
7647
7648 * gdbtypes.h (struct type) <code, set_code>: New methods.
7649 (TYPE_CODE): Use type::code. Change all call sites used to set
7650 the code to use type::set_code instead.
7651
a05575d3
TBA
76522020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7653 Tom de Vries <tdevries@suse.de>
7654 Pedro Alves <palves@redhat.com>
7655
7656 PR threads/25478
7657 * infrun.c (stop_all_threads): Do NOT ignore
7658 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
7659 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
7660 received.
7661 (handle_no_resumed): Remove code handling a live inferior with no
7662 threads.
7663 * remote.c (has_single_non_exited_thread): New.
7664 (remote_target::update_thread_list): Do not delete a thread if is
7665 the last thread of the process.
7666 * thread.c (thread_select): Call delete_exited_threads instead of
7667 prune_threads.
7668
6ad82919
TBA
76692020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7670
7671 * infrun.c (stop_all_threads): Enable/disable thread events of all
7672 targets. Move a debug message denoting the end of the function
7673 into the SCOPED_EXIT block.
7674
d890404b
TBA
76752020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7676
7677 * process-stratum-target.h: Include <set>.
7678 (all_non_exited_process_targets, switch_to_target_no_thread): New
7679 function declarations.
7680 * process-stratum-target.c (all_non_exited_process_targets)
7681 (switch_to_target_no_thread): New function implementations.
7682
293b3ebc
TBA
76832020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7684
7685 * infrun.c (handle_inferior_event): Extract out a piece of code
7686 into...
7687 (mark_non_executing_threads): ...this new function.
7688
7ca9b62a
TBA
76892020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7690
7691 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
7692 use.
7693
fc75c28b
TBA
76942020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7695
7696 * regcache.c (regcache_read_pc_protected): New function
7697 implementation that returns 0 if the PC cannot read via
7698 'regcache_read_pc'.
7699 * infrun.c (proceed): Call 'regcache_read_pc_protected'
7700 instead of 'regcache_read_pc'.
7701 (keep_going_pass_signal): Ditto.
7702
a89febbd
TT
77032020-05-13 Tom Tromey <tromey@adacore.com>
7704
7705 * ada-lang.c (align_value): Remove.
7706 (ada_template_to_fixed_record_type_1): Use align_up.
7707
f7e23710
TBA
77082020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7709
7710 * async-event.c: Update the copyright year.
7711 * async-event.h: Update the copyright year.
7712
02ff80c2
SM
77132020-05-12 Simon Marchi <simon.marchi@efficios.com>
7714
7715 * objfiles.h (is_addr_in_objfile,
7716 shared_objfile_contains_address_p): Return bool.
7717 * objfile.c (is_addr_in_objfile,
7718 shared_objfile_contains_address_p): Return bool.
7719
4fd6c7e8
TT
77202020-05-11 Tom Tromey <tromey@adacore.com>
7721
7722 * cli/cli-cmds.c (info_command): Restore.
7723 (_initialize_cli_cmds): Use add_prefix_command for "info".
7724 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
7725
5eb68a39
TT
77262020-05-11 Tom Tromey <tromey@adacore.com>
7727
7728 * ada-lang.c (ada_value_primitive_field): Now public.
7729 * ada-lang.h (ada_value_primitive_field): Declare.
7730 * ada-valprint.c (print_field_values): Use
7731 ada_value_primitive_field for wrapper fields.
7732
7666722f
TV
77332020-05-11 Tom de Vries <tdevries@suse.de>
7734
7735 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
7736 MODULE_DOMAIN.
7737
3ee6bb11
TV
77382020-05-11 Tom de Vries <tdevries@suse.de>
7739
7740 PR symtab/25941
7741 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
7742 with length 0, if not gdb-produced.
7743 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
7744
43434996
TV
77452020-05-09 Tom de Vries <tdevries@suse.de>
7746
7747 PR gdb/25955
7748 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
7749 calculation.
7750
2f78cffc
TT
77512020-05-09 Tom Tromey <tom@tromey.com>
7752
7753 * top.c (server_command): Now bool.
7754 * top.h (server_command): Now bool.
7755
4f7bc5ed
TT
77562020-05-08 Tom Tromey <tromey@adacore.com>
7757
7758 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
7759 already being processed.
7760
8be4b118
TT
77612020-05-08 Tom Tromey <tom@tromey.com>
7762
7763 * printcmd.c (struct display) <next>: Remove.
7764 <display>: New constructor.
7765 <exp_string>: Now a std::string.
7766 <enabled_p>: Now a bool.
7767 (display_number): Move definition earlier.
7768 (displays): Rename from display_chain. Now a std::vector.
7769 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
7770 (display_command): Update.
7771 (do_one_display, disable_display)
7772 (enable_disable_display_command, do_enable_disable_display):
7773 Update.
7774 (free_display): Remove.
7775 (clear_displays): Rewrite.
7776 (delete_display): Update.
7777 (map_display_numbers): Use function_view. Remove "data"
7778 parameter. Update.
7779 (do_delete_display): Remove.
7780 (undisplay_command): Update.
7781 (do_one_display, do_displays, disable_display)
7782 (info_display_command): Update.
7783 (do_enable_disable_display): Remove.
7784 (enable_disable_display_command)
7785 (clear_dangling_display_expressions): Update.
7786
94c93c35
TT
77872020-05-08 Tom Tromey <tom@tromey.com>
7788
7789 * symtab.c (set_symbol_cache_size)
7790 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
7791 (maintenance_print_symbol_cache_statistics): Update.
7792 * symmisc.c (print_symbol_bcache_statistics)
7793 (print_objfile_statistics, maintenance_print_objfiles)
7794 (maintenance_info_symtabs, maintenance_check_symtabs)
7795 (maintenance_expand_symtabs, maintenance_info_line_tables):
7796 Update.
7797 * symfile-debug.c (set_debug_symfile): Update.
7798 * source.c (forget_cached_source_info): Update.
7799 * python/python.c (gdbpy_progspaces): Update.
7800 * psymtab.c (maintenance_info_psymtabs): Update.
7801 * probe.c (parse_probes): Update.
7802 * linespec.c (iterate_over_all_matching_symtabs)
7803 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
7804 * guile/scm-progspace.c (gdbscm_progspaces): Update.
7805 * exec.c (exec_target::close): Update.
7806 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
7807 * breakpoint.c (print_one_breakpoint_location)
7808 (create_longjmp_master_breakpoint)
7809 (create_std_terminate_master_breakpoint): Update.
7810 * progspace.c (program_spaces): Now a std::vector.
7811 (maybe_new_address_space): Update.
7812 (add_program_space): Remove.
7813 (program_space::program_space): Update.
7814 (remove_program_space): Update.
7815 (number_of_program_spaces): Remove.
7816 (print_program_space, update_address_spaces): Update.
7817 * progspace.h (program_spaces): Change type.
7818 (ALL_PSPACES): Remove.
7819 (number_of_program_spaces): Don't declare.
7820 (struct program_space) <next>: Remove.
7821
a1fd1ac9
TT
78222020-05-08 Tom Tromey <tom@tromey.com>
7823
7824 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
7825 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
7826 (enable_break): Update.
7827 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
7828 (frv_fdpic_find_canonical_descriptor): Update.
7829 (frv_fetch_objfile_link_map): Update.
7830 * progspace.c (program_space::free_all_objfiles): Update.
7831 (program_space::solibs): New method.
7832 * progspace.h (struct program_space) <solibs>: New method.
7833 * solist.h (master_so_list): Don't declare.
7834 (ALL_SO_LIBS): Remove.
7835 * solib.h (so_list_head): Remove.
7836 (update_solib_list): Update comment.
7837 * solib.c (master_so_list): Remove.
7838 (solib_used, update_solib_list, solib_add)
7839 (info_sharedlibrary_command, clear_solib)
7840 (reload_shared_libraries_1, remove_user_added_objfile): Update.
7841
38eae084
TT
78422020-05-08 Tom Tromey <tom@tromey.com>
7843
7844 * extension.c (extension_languages): Now a std::array.
7845 (ALL_EXTENSION_LANGUAGES): Remove.
7846 (get_ext_lang_defn, get_ext_lang_of_file)
7847 (eval_ext_lang_from_control_command): Update.
7848 (finish_ext_lang_initialization)
7849 (auto_load_ext_lang_scripts_for_objfile)
7850 (ext_lang_type_printers::ext_lang_type_printers)
7851 (apply_ext_lang_type_printers)
7852 (ext_lang_type_printers::~ext_lang_type_printers)
7853 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
7854 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
7855 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
7856 (get_matching_xmethod_workers, ext_lang_colorize)
7857 (ext_lang_before_prompt): Update.
7858 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
7859
596dc4ad
TT
78602020-05-08 Tom Tromey <tom@tromey.com>
7861
7862 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
7863 overload.
7864 <swap_string, m_string>: Remove.
7865 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
7866 Update.
7867 * stabsread.c (define_symbol, read_type): Update.
7868 * linespec.c (find_linespec_symbols): Update.
7869 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
7870 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
7871 * dbxread.c (read_dbx_symtab): Update.
7872 * cp-support.h (cp_canonicalize_string_full)
7873 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
7874 Return unique_xmalloc_ptr.
7875 * cp-support.c (inspect_type): Update.
7876 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
7877 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
7878 Likewise.
7879 * c-typeprint.c (print_name_maybe_canonical): Update.
7880 * break-catch-throw.c (check_status_exception_catchpoint):
7881 Update.
7882
bf4cb9be
TV
78832020-05-08 Tom de Vries <tdevries@suse.de>
7884
7885 * infrun.c (follow_fork): Copy current_line and current_symtab to
7886 child thread.
7887
a1b68f28
SM
78882020-05-07 Simon Marchi <simon.marchi@efficios.com>
7889
7890 * async-event.c (struct async_signal_handler, struct
7891 async_event_handler): Reformat, remove typedef.
7892
98d48915
SM
78932020-05-07 Simon Marchi <simon.marchi@efficios.com>
7894
7895 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
7896 access thistype->main_type->dyn_prop_list directly.
7897
7aa91313
SM
78982020-05-07 Simon Marchi <simon.marchi@efficios.com>
7899
7900 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
7901 (remove_dyn_prop): Remove. Update all users to use
7902 type::remove_dyn_prop.
7903 * gdbtypes.c (remove_dyn_prop): Rename to...
7904 (type::remove_dyn_prop): ... this.
7905
5c54719c
SM
79062020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
7907
7908 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
7909 (add_dyn_prop): Remove. Update all users to use
7910 type::add_dyn_prop.
7911 * gdbtypes.c (add_dyn_prop): Rename to...
7912 (type::add_dyn_prop): ... this.
7913
24e99c6c
SM
79142020-05-07 Simon Marchi <simon.marchi@efficios.com>
7915
7916 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
7917 (get_dyn_prop): Remove. Update all users to use
7918 type::dyn_prop.
7919 * gdbtypes.c (get_dyn_prop): Rename to...
7920 (type::dyn_prop): ... this.
7921
0d4bf016
SM
79222020-05-06 Simon Marchi <simon.marchi@efficios.com>
7923
7924 * gdbtypes.h (struct main_type) <flag_static>: Remove.
7925
ac4a4f1c
SM
79262020-05-06 Simon Marchi <simon.marchi@efficios.com>
7927
7928 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
7929 instruction, skip it if it's there.
7930
a3bbacc1
SM
79312020-05-05 Simon Marchi <simon.marchi@efficios.com>
7932
7933 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
7934
c3236f84
SM
79352020-05-04 Simon Marchi <simon.marchi@efficios.com>
7936
7937 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
7938 * gdbtypes.c (recursive_dump_type): Remove use of
7939 TYPE_INCOMPLETE.
7940
3b6acaee
TT
79412020-05-03 Tom Tromey <tom@tromey.com>
7942
7943 * breakpoint.c (catch_command, tcatch_command): Remove.
7944 (_initialize_breakpoint): Use add_basic_prefix_cmd,
7945 add_show_prefix_cmd.
7946 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
7947 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
7948 Remove.
7949 (add_internal_problem_command): Use add_basic_prefix_cmd,
7950 add_show_prefix_cmd.
7951 * mips-tdep.c (set_mipsfpu_command): Remove.
7952 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
7953 * dwarf2/index-cache.c (set_index_cache_command): Remove.
7954 (_initialize_index_cache): Use add_basic_prefix_cmd.
7955 * memattr.c (dummy_cmd): Remove.
7956 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
7957 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
7958 (_initialize_tui_win): Use add_basic_prefix_cmd,
7959 add_show_prefix_cmd.
7960 * cli/cli-logging.c (set_logging_command): Remove.
7961 (_initialize_cli_logging): Use add_basic_prefix_cmd,
7962 add_show_prefix_cmd.
7963 (show_logging_command): Remove.
7964 * target.c (target_command): Remove.
7965 (add_target): Use add_basic_prefix_cmd.
7966
a51119cd
HD
79672020-05-02 Hannes Domani <ssbssa@yahoo.de>
7968
7969 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
7970
652fc23a 79712020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 7972
652fc23a
PW
7973 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
7974 info_command.
7975
117539e6
KR
79762020-04-30 Kamil Rytarowski <n54@gmx.com>
7977
7978 * nbsd-nat.c (nbsd_enable_proc_events)
7979 (nbsd_nat_target::post_startup_inferior): Add.
7980 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
7981 (nbsd_nat_target::update_thread_list): Rewrite.
7982 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
7983 "PTRACE_LWP_CREATE".
7984 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
7985
102e38eb 79862020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 7987
102e38eb
PW
7988 * stack.c (_initialize_stack): Remove duplicated creation
7989 of "frame" command and "f" alias.
7990
ee9d1e5f
HD
79912020-04-30 Hannes Domani <ssbssa@yahoo.de>
7992
7993 PR gdb/18706
7994 * gdbtypes.c (check_typedef): Calculate size of array of
7995 stubbed type.
7996
627c7fb8
HD
79972020-04-30 Hannes Domani <ssbssa@yahoo.de>
7998
7999 PR gdb/15559
8000 * i386-tdep.c (i386_push_dummy_call): Call
8001 i386_thiscall_push_dummy_call.
8002 (i386_thiscall_push_dummy_call): New function.
8003 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
8004 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
8005 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
8006
ffc2844e
SM
80072020-04-29 Simon Marchi <simon.marchi@efficios.com>
8008
8009 * gdbarch.sh (do_read): Add shellcheck disable directive for
8010 warning SC2162.
8011
1207375d
SM
80122020-04-29 Simon Marchi <simon.marchi@efficios.com>
8013
8014 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
8015 "referenced but not assigned" warning.
8016
9fdb2916
SM
80172020-04-29 Simon Marchi <simon.marchi@efficios.com>
8018
8019 * gdbarch.sh: Remove code that sets fallbackdefault.
8020
759cea5e
SM
80212020-04-29 Simon Marchi <simon.marchi@efficios.com>
8022
8023 * gdbarch.sh: Use shell operators && and || instead of
8024 -a and -o.
8025
cb02ab24
SM
80262020-04-29 Simon Marchi <simon.marchi@efficios.com>
8027
8028 * gdbarch.sh: Use $(...) instead of `...`.
8029
a6fc5ffc
SM
80302020-04-29 Simon Marchi <simon.marchi@efficios.com>
8031
8032 * gdbarch.sh: Use double quotes around variables.
8033
8d113d13
SM
80342020-04-29 Simon Marchi <simon.marchi@efficios.com>
8035
8036 * gdbarch.sh: Use %s with printf, instead of variables in the
8037 format string.
8038
ed6acedd
TT
80392020-04-29 Tom Tromey <tromey@adacore.com>
8040
8041 PR ada/25875:
8042 * dwarf2/read.c (update_enumeration_type_from_children): Compute
8043 type fields here.
8044 (read_enumeration_type): Call
8045 update_enumeration_type_from_children later. Update comments.
8046 (process_enumeration_scope): Don't create type fields.
8047
b68b1b58
KR
80482020-04-29 Kamil Rytarowski <n54@gmx.com>
8049
8050 * nbsd-tdep.c: Include "xml-syscall.h".
8051 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
8052
f94b2e03
KR
80532020-04-29 Kamil Rytarowski <n54@gmx.com>
8054
8055 * nbsd-nat.c: Include "sys/wait.h".
8056 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
8057 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
8058 (nbsd_nat_target::remove_exec_catchpoint)
8059 (nbsd_nat_target::set_syscall_catchpoint): Add.
8060 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
8061 (nbsd_nat_target::insert_exec_catchpoint)
8062 (nbsd_nat_target::remove_exec_catchpoint)
8063 (nbsd_nat_target::set_syscall_catchpoint): Add.
8064 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
8065 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
8066 `nbsd_get_syscall_number'.
8067
fc49bc72
TT
80682020-04-29 Tom Tromey <tom@tromey.com>
8069
8070 * stack.c (print_block_frame_labels): Remove.
8071
d642b692
HD
80722020-04-29 Hannes Domani <ssbssa@yahoo.de>
8073
8074 PR gdb/17320
8075 * ada-valprint.c (val_print_packed_array_elements): Move array
8076 end bracket to new line.
8077 (ada_val_print_string): Remove extra spaces before first array
8078 element.
8079 * c-valprint.c (c_value_print_array): Likewise.
8080 * m2-valprint.c (m2_print_array_contents): Likewise.
8081 (m2_value_print_inner): Likewise.
8082 * p-valprint.c (pascal_value_print_inner): Likewise.
8083 * valprint.c (generic_val_print_array): Likewise.
8084 (value_print_array_elements): Move first array element and array
8085 end bracket to new line.
8086
ea90f227
TV
80872020-04-29 Tom de Vries <tdevries@suse.de>
8088
8089 PR symtab/25889
8090 * linespec.c (find_method): Fix ix calculation.
8091
4498ef4f
KR
80922020-04-28 Kamil Rytarowski <n54@gmx.com>
8093
8094 * syscalls/update-netbsd.sh: New file.
8095 * syscalls/netbsd.xml: Regenerate.
8096 * data-directory/Makefile.in: Register `netbsd.xml' in
8097 `SYSCALLS_FILES'.
8098
a55e30b5
SM
80992020-04-28 Simon Marchi <simon.marchi@efficios.com>
8100
8101 * syscalls/update-freebsd.sh: Add double quotes.
8102
2b2fbab8
TT
81032020-04-28 Tom Tromey <tom@tromey.com>
8104
8105 * NEWS: Update.
8106 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
8107 (cmdpy_init): Allow class_tui.
8108
a65189c9
TV
81092020-04-28 Mark Williams <mark@myosotissp.com>
8110
8111 PR gdb/24480
8112 * dwarf2read.c: Add missing assingments to list_in_scope when
8113 start_symtab was already called.
8114
1b95cdb7
SM
81152020-04-28 Simon Marchi <simon.marchi@efficios.com>
8116
8117 PR gdb/25881
8118 * dwarf2/read.c (offset_map_type): Use
8119 gdb:hash_enum<sect_offset> as hash function.
8120
15cd93d0
TV
81212020-04-28 Tom de Vries <tdevries@suse.de>
8122
8123 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
8124 with DW_AT_signature.
8125
1eb39914
SM
81262020-04-27 Simon Marchi <simon.marchi@efficios.com>
8127
8128 * configure.ac: Remove check for fs_base/gs_base in
8129 user_regs_struct.
8130 * configure: Re-generate.
8131 * config.in: Re-generate.
8132 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
8133 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
8134 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
8135
991a3e2e
LM
81362020-04-27 Luis Machado <luis.machado@linaro.org>
8137
8138 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
8139 problematic inline frame unwinding situation.
8140 * frame.c (frame_id_computed_p): New function.
8141 * frame.h (frame_id_computed_p): New prototype.
8142
361ba0e8
TT
81432020-04-26 Tom Tromey <tom@tromey.com>
8144
8145 * command.h (enum command_class) <class_pseudo>: Remove.
8146
bc3609fd
PW
81472020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8148
8149 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
8150 and whitespace.
8151
b9771db7
KR
81522020-04-25 Kamil Rytarowski <n54@gmx.com>
8153
ec16513e
SM
8154 * inf-ptrace.c (inf_ptrace_target::wait): Remove
8155 `PT_GET_PROCESS_STATE' block.
b9771db7 8156
7151c1af
TT
81572020-04-24 Tom Tromey <tom@tromey.com>
8158
8159 * symtab.h (symbol_get_demangled_name): Don't declare.
8160 * symtab.c (symbol_get_demangled_name): Remove.
8161 (general_symbol_info::natural_name)
8162 (general_symbol_info::demangled_name): Update.
8163
906bb4c5
TT
81642020-04-24 Tom Tromey <tom@tromey.com>
8165
8166 PR rust/25025:
8167 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
8168
bcfe6157
TT
81692020-04-24 Tom Tromey <tom@tromey.com>
8170
8171 PR symtab/12707:
8172 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
8173 exists.
8174 (new_symbol): Likewise.
8175 * compile/compile-object-load.c (get_out_value_type): Use
8176 symbol_matches_search_name.
8177
f049a313
TT
81782020-04-24 Tom Tromey <tom@tromey.com>
8179
8180 * dwarf2/read.c (add_partial_symbol): Do not call
8181 compute_and_set_names.
8182
76e288d1
TT
81832020-04-24 Tom Tromey <tom@tromey.com>
8184
8185 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
8186 overload.
8187
2467f4f6
TT
81882020-04-24 Tom Tromey <tom@tromey.com>
8189
8190 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
8191 (add_psymbol_to_list): New overload. Make old overload call new
8192 one.
8193 * psympriv.h (add_psymbol_to_list): New overload.
8194
e61108c9
TT
81952020-04-24 Tom Tromey <tom@tromey.com>
8196
8197 * dwarf2/read.c (partial_die_info::read) <case
8198 DW_AT_linkage_name>: Use value_as_string.
8199 (dwarf2_string_attr): Use value_as_string.
8200 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
8201 method.
8202 * dwarf2/attribute.c (attribute::value_as_string): New method.
8203
8c87a452
TT
82042020-04-24 Tom Tromey <tom@tromey.com>
8205
8206 * symtab.c (general_symbol_info::natural_name)
8207 (general_symbol_info::demangled_name): Check for language_rust.
8208
787de330
TT
82092020-04-24 Tom Tromey <tom@tromey.com>
8210
8211 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
8212 (dwarf2_physname): ... from here.
8213 (partial_die_info::read): Add Rust "{" hack.
8214
ff985671
TT
82152020-04-24 Tom Tromey <tom@tromey.com>
8216
8217 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
8218 method.
8219 (symbol_set_demangled_name): Don't declare.
8220 * symtab.c (general_symbol_info::set_demangled_name): Rename from
8221 symbol_set_demangled_name.
8222 (general_symbol_info::set_language)
8223 (general_symbol_info::compute_and_set_names): Update.
8224 * minsyms.c (minimal_symbol_reader::install): Update.
8225 * dwarf2/read.c (new_symbol): Update.
8226
1acda803
TT
82272020-04-24 Tom Tromey <tromey@adacore.com>
8228
8229 PR python/23662:
8230 * python/py-type.c (convert_field): Handle
8231 FIELD_LOC_KIND_DWARF_BLOCK.
8232 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
8233 (typy_get_dynamic): Nw function.
8234 (type_object_getset): Add "dynamic".
8235 * NEWS: Add entry.
8236
d656f129
TT
82372020-04-24 Tom Tromey <tromey@adacore.com>
8238
8239 * ada-typeprint.c (print_choices, print_variant_part)
8240 (print_record_field_types_dynamic): New functions.
8241 (print_record_field_types): Use print_record_field_types_dynamic.
8242
7d79de9a
TT
82432020-04-24 Tom Tromey <tromey@adacore.com>
8244
8245 * dwarf2/read.c (handle_data_member_location): New overload.
8246 (dwarf2_add_field): Use it.
8247 (decode_locdesc): Add "computed" parameter. Update comment.
8248 * gdbtypes.c (is_dynamic_type_internal): Also look for
8249 FIELD_LOC_KIND_DWARF_BLOCK.
8250 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
8251 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
8252 virtual base classes.
8253 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
8254 FIELD_LOC_KIND_DWARF_BLOCK.
8255
f8e89861
TT
82562020-04-24 Tom Tromey <tromey@adacore.com>
8257
8258 * dwarf2/read.c (read_structure_type): Handle dynamic length.
8259 * gdbtypes.c (is_dynamic_type_internal): Check
8260 TYPE_HAS_DYNAMIC_LENGTH.
8261 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
8262 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
8263 New macros.
8264 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
8265 constant.
8266
9c6a1327
TT
82672020-04-24 Tom Tromey <tromey@adacore.com>
8268
8269 * dwarf2/read.c (struct variant_field): Rewrite.
8270 (struct variant_part_builder): New.
8271 (struct nextfield): Remove "variant" field. Add "offset".
8272 (struct field_info): Add "current_variant_part" and
8273 "variant_parts".
8274 (alloc_discriminant_info): Remove.
8275 (alloc_rust_variant): New function.
8276 (quirk_rust_enum): Update.
8277 (dwarf2_add_field): Set "offset" member. Don't handle
8278 DW_TAG_variant_part.
8279 (offset_map_type): New typedef.
8280 (convert_variant_range, create_one_variant)
8281 (create_one_variant_part, create_variant_parts)
8282 (add_variant_property): New functions.
8283 (dwarf2_attach_fields_to_type): Call add_variant_property.
8284 (read_structure_type): Don't handle DW_TAG_variant_part.
8285 (handle_variant_part, handle_variant): New functions.
8286 (handle_struct_member_die): Use them.
8287 (process_structure_scope): Don't handle variant parts.
8288 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
8289 (struct discriminant_info): Remove.
8290 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
8291 (struct main_type) <flag_discriminated_union>: Remove.
8292 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
8293 (rust_enum_variant): Return int. Remove "contents". Rewrite.
8294 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
8295 Update.
8296 * valops.c (value_union_variant): Remove.
8297 * value.h (value_union_variant): Don't declare.
8298
b249d2c2
TT
82992020-04-24 Tom Tromey <tromey@adacore.com>
8300
8301 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
8302 (ada_value_primitive_packed_val): Update.
8303 * ada-valprint.c (ada_value_print_1): Update.
8304 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
8305 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
8306 just an address. Use evaluate_for_locexpr_baton.
8307 (dwarf2_evaluate_property): Update.
8308 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
8309 array_view.
8310 * findvar.c (default_read_var_value): Update.
8311 * gdbtypes.c (compute_variant_fields_inner)
8312 (resolve_dynamic_type_internal): Update.
8313 (resolve_dynamic_type): Change type of valaddr parameter.
8314 * gdbtypes.h (resolve_dynamic_type): Update.
8315 * valarith.c (value_subscripted_rvalue): Update.
8316 * value.c (value_from_contents_and_address): Update.
8317
61122aa9
TT
83182020-04-24 Tom Tromey <tromey@adacore.com>
8319
8320 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
8321 "push_initial_value" parameter.
8322 (dwarf2_evaluate_property): Likewise.
8323 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
8324
ef83a141
TT
83252020-04-24 Tom Tromey <tromey@adacore.com>
8326
8327 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
8328 (variant::matches, compute_variant_fields_recurse)
8329 (compute_variant_fields_inner, compute_variant_fields): New
8330 functions.
8331 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
8332 Use resolved_type after type is made.
8333 (operator==): Add new cases.
8334 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
8335 (struct discriminant_range, struct variant, struct variant_part):
8336 New.
8337 (union dynamic_prop_data) <variant_parts, original_type>: New
8338 members.
8339 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
8340 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
8341 constants.
8342 * value.c (unpack_bits_as_long): Now public.
8343 * value.h (unpack_bits_as_long): Declare.
8344
675127ec
TT
83452020-04-24 Tom Tromey <tromey@adacore.com>
8346
8347 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
8348 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
8349
9852ceef
HD
83502020-04-24 Hannes Domani <ssbssa@yahoo.de>
8351
8352 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
8353
7632c6ce
KR
83542020-04-24 Kamil Rytarowski <n54@gmx.com>
8355
8356 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
8357 (remove_fork_catchpoint, post_startup_inferior)
8358 (post_attach): Move...
8359 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
8360 (remove_fork_catchpoint, post_startup_inferior)
8361 (post_attach): ...here.
8362 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
8363 (remove_fork_catchpoint, post_startup_inferior)
8364 (post_attach): Move...
8365 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
8366 (remove_fork_catchpoint, post_startup_inferior)
8367 (post_attach): ...here.
8368
7be2bb4f
TT
83692020-04-24 Tom Tromey <tromey@adacore.com>
8370
8371 * nat/windows-nat.h (struct windows_thread_info)
8372 <pc_adjusted>: New member.
8373 * windows-nat.c (windows_fetch_one_register): Check
8374 pc_adjusted.
8375 (windows_nat_target::get_windows_debug_event)
8376 (windows_nat_target::wait): Set pc_adjusted.
8377
f80cb3b4
TV
83782020-04-24 Tom de Vries <tdevries@suse.de>
8379
8380 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
8381 Run gdb-add-index inside temp dir.
8382
29514b87
TT
83832020-04-23 Tom Tromey <tromey@adacore.com>
8384
8385 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
8386 in loop.
8387
5939967b
LM
83882020-04-23 Luis Machado <luis.machado@linaro.org>
8389
8390 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
8391 get_frame_register instead of gdbarch_unwind_pc.
8392
70bc38f5
TV
83932020-04-23 Tom de Vries <tdevries@suse.de>
8394
8395 * symtab.c (lookup_global_symbol): Prefer def over decl.
8396
de82891c
TV
83972020-04-23 Tom de Vries <tdevries@suse.de>
8398
8399 PR symtab/25807
8400 * block.c (best_symbol, better_symbol): Promote to external.
8401 * block.h (best_symbol, better_symbol): Declare.
8402 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
8403 decl.
8404
ecc6c606
TT
84052020-04-23 Tom Tromey <tromey@adacore.com>
8406
8407 PR ada/25837:
8408 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
8409 "const char *", not a "const std::string &".
8410 <name_and_matcher::operator==>: Update.
8411 * unittests/lookup_name_info-selftests.c: Change type of
8412 "result".
8413
740480b8
TT
84142020-04-23 Tom Tromey <tom@tromey.com>
8415
8416 * inferior.h (iterate_over_inferiors): Don't declare.
8417 * inferior.c (iterate_over_inferiors): Remove.
8418 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
8419 Remove.
8420 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
8421 use iterate_over_inferiors.
8422 (darwin_resume_inferior_it)
8423 (struct resume_inferior_threads_param)
8424 (darwin_resume_inferior_threads_it): Remove.
8425 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
8426
ae3ab1f0
TV
84272020-04-23 Tom de Vries <tdevries@suse.de>
8428
8429 * blockframe.c (find_pc_partial_function): Use
8430 find_pc_sect_compunit_symtab rather than
8431 objfile->sf->qf->find_pc_sect_compunit_symtab.
8432
317d2668
TV
84332020-04-22 Tom de Vries <tdevries@suse.de>
8434
8435 PR symtab/25764
8436 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
8437 in psymtabs.
8438
eea9e357
TV
84392020-04-22 Tom de Vries <tdevries@suse.de>
8440
8441 PR symtab/25801
8442 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
8443 symtabs.
8444
3d5afab3
TV
84452020-04-22 Tom de Vries <tdevries@suse.de>
8446
8447 PR symtab/25700
8448 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
8449 CU if already created.
8450
d43b7a2d
TBA
84512020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8452
8453 * infrun.c (displaced_step_fixup): Switch to the event_thread
8454 before calling displaced_step_restore, not after.
8455
d89edf9b
MM
84562020-04-21 Markus Metzger <markus.t.metzger@intel.com>
8457
8458 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
8459 its inferior is not recorded by us.
8460 (record_btrace_target_open): Replace call to
8461 all_non_exited_threads () with call to current_inferior
8462 ()->non_exited_threads ().
8463 (record_btrace_target::stop_recording): Likewise.
8464 (record_btrace_target::close): Likewise.
8465 (record_btrace_target::wait): Likewise.
8466 (record_btrace_target::record_stop_replaying): Likewise.
8467
5897fd49
MM
84682020-04-21 Markus Metzger <markus.t.metzger@intel.com>
8469
8470 * btrace.c (btrace_enable): Throw an error on double enables and
8471 when enabling recording fails.
8472 (btrace_disable): Throw an error if the thread is not recorded.
8473
1a476b6d
MM
84742020-04-21 Markus Metzger <markus.t.metzger@intel.com>
8475
8476 * record-btrace.c (record_btrace_target::fetch_registers): Forward
8477 request if we do not have a thread_info.
8478
4778a5f8
TV
84792020-04-21 Tom de Vries <tdevries@suse.de>
8480
8481 PR gdb/25471
8482 * thread.c
8483 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
8484 exception in get_frame_id.
8485
0fa7617d
TT
84862020-04-20 Tom Tromey <tromey@adacore.com>
8487
8488 * python/python.c (struct gdbpy_event): Mark move constructor as
8489 noexcept.
8490 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
8491 constructor as noexcept.
8492 * completer.h (struct completion_result): Mark move constructor as
8493 noexcept.
8494 * completer.c (completion_result::completion_result): Use
8495 initialization style. Don't call reset_match_list.
8496
ad23bda0
MS
84972020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
8498
8499 * MAINTAINERS (Write After Approval): Add myself.
8500
45e1f031
TT
85012020-04-18 Tom Tromey <tom@tromey.com>
8502
8503 * windows-tdep.c (init_w32_command_list)
8504 (w32_prefix_command_valid): Restore.
8505 (_initialize_windows_tdep): Call init_w32_command_list.
8506
08feed99
TT
85072020-04-18 Tom Tromey <tom@tromey.com>
8508
8509 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
8510 * value.c (value_fn_field): Update.
8511 * valops.c (find_function_in_inferior)
8512 (value_allocate_space_in_inferior): Update.
8513 * tui/tui-winsource.c (tui_update_source_windows_with_line):
8514 Update.
8515 * tui/tui-source.c (tui_source_window::set_contents): Update.
8516 * symtab.c (lookup_global_or_static_symbol)
8517 (find_function_start_sal_1, skip_prologue_sal)
8518 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
8519 * symmisc.c (dump_msymbols, dump_symtab_1)
8520 (maintenance_print_one_line_table): Update.
8521 * symfile.c (init_entry_point_info, section_is_mapped)
8522 (list_overlays_command, simple_read_overlay_table)
8523 (simple_overlay_update_1): Update.
8524 * stap-probe.c (handle_stap_probe): Update.
8525 * stabsread.c (dbx_init_float_type, define_symbol)
8526 (read_one_struct_field, read_enum_type, read_range_type): Update.
8527 * source.c (info_line_command): Update.
8528 * python/python.c (gdbpy_source_objfile_script)
8529 (gdbpy_execute_objfile_script): Update.
8530 * python/py-type.c (save_objfile_types): Update.
8531 * python/py-objfile.c (py_free_objfile): Update.
8532 * python/py-inferior.c (python_new_objfile): Update.
8533 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
8534 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
8535 (maintenance_check_psymtabs): Update.
8536 * printcmd.c (info_address_command): Update.
8537 * objfiles.h (struct objfile) <arch>: New method, from
8538 get_objfile_arch.
8539 (get_objfile_arch): Don't declare.
8540 * objfiles.c (get_objfile_arch): Remove.
8541 (filter_overlapping_sections): Update.
8542 * minsyms.c (msymbol_is_function): Update.
8543 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
8544 (output_nondebug_symbol): Update.
8545 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
8546 (mdebug_expand_psymtab): Update.
8547 * machoread.c (macho_add_oso_symfile): Update.
8548 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
8549 Update.
8550 * linux-fork.c (checkpoint_command): Update.
8551 * linespec.c (convert_linespec_to_sals): Update.
8552 * jit.c (finalize_symtab): Update.
8553 * infrun.c (insert_exception_resume_from_probe): Update.
8554 * ia64-tdep.c (ia64_find_unwind_table): Update.
8555 * hppa-tdep.c (internalize_unwinds): Update.
8556 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
8557 Update.
8558 * gcore.c (call_target_sbrk): Update.
8559 * elfread.c (record_minimal_symbol, elf_symtab_read)
8560 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
8561 (elf_gnu_ifunc_resolve_by_got): Update.
8562 * dwarf2/read.c (create_addrmap_from_index)
8563 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
8564 (read_debug_names_from_section)
8565 (process_psymtab_comp_unit_reader, add_partial_symbol)
8566 (add_partial_subprogram, process_full_comp_unit)
8567 (read_file_scope, read_func_scope, read_lexical_block_scope)
8568 (read_call_site_scope, dwarf2_ranges_read)
8569 (dwarf2_record_block_ranges, dwarf2_add_field)
8570 (mark_common_block_symbol_computed, read_tag_pointer_type)
8571 (read_tag_string_type, dwarf2_init_float_type)
8572 (dwarf2_init_complex_target_type, read_base_type)
8573 (partial_die_info::read, partial_die_info::read)
8574 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
8575 (dwarf2_fetch_die_loc_sect_off): Update.
8576 * dwarf2/loc.c (dwarf2_find_location_expression)
8577 (class dwarf_evaluate_loc_desc, rw_pieced_value)
8578 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
8579 (dwarf2_loc_desc_get_symbol_read_needs)
8580 (locexpr_describe_location_piece, locexpr_describe_location_1)
8581 (loclist_describe_location): Update.
8582 * dwarf2/index-write.c (write_debug_names): Update.
8583 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
8584 * dtrace-probe.c (dtrace_process_dof): Update.
8585 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
8586 (process_one_symbol): Update.
8587 * ctfread.c (ctf_init_float_type, read_base_type): Update.
8588 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
8589 (coff_read_enum_type): Update.
8590 * cli/cli-cmds.c (edit_command, list_command): Update.
8591 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
8592 * breakpoint.c (create_overlay_event_breakpoint)
8593 (create_longjmp_master_breakpoint)
8594 (create_std_terminate_master_breakpoint)
8595 (create_exception_master_breakpoint, get_sal_arch): Update.
8596 * block.c (block_gdbarch): Update.
8597 * annotate.c (annotate_source_line): Update.
8598
0743fc83
TT
85992020-04-17 Tom Tromey <tromey@adacore.com>
8600
8601 * auto-load.c (show_auto_load_cmd): Remove.
8602 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
8603 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
8604 (maintenance_print_arc_command): Remove.
8605 * tui/tui-win.c (tui_command): Remove.
8606 (tui_get_cmd_list): Use add_basic_prefix_cmd.
8607 * tui/tui-layout.c (tui_layout_command): Remove.
8608 (_initialize_tui_layout): Use add_basic_prefix_cmd.
8609 * python/python.c (user_set_python, user_show_python): Remove.
8610 (_initialize_python): Use add_basic_prefix_cmd,
8611 add_show_prefix_cmd.
8612 * guile/guile.c (set_guile_command, show_guile_command): Remove.
8613 (install_gdb_commands): Use add_basic_prefix_cmd,
8614 add_show_prefix_cmd.
8615 (info_guile_command): Remove.
8616 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
8617 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
8618 add_show_prefix_cmd.
8619 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
8620 Remove do_set and do_show parameters.
8621 * cli/cli-style.c (set_style, show_style): Remove.
8622 (_initialize_cli_style): Use add_basic_prefix_cmd,
8623 add_show_prefix_cmd.
8624 (cli_style_option::add_setshow_commands): Remove do_set and
8625 do_show parameters.
8626 (cli_style_option::add_setshow_commands): Use
8627 add_basic_prefix_cmd, add_show_prefix_cmd.
8628 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
8629 (set_style_name): Remove.
8630 * cli/cli-dump.c (dump_command, append_command): Remove.
8631 (srec_dump_command, ihex_dump_command, verilog_dump_command)
8632 (tekhex_dump_command, binary_dump_command)
8633 (binary_append_command): Remove.
8634 (_initialize_cli_dump): Use add_basic_prefix_cmd.
8635 * windows-tdep.c (w32_prefix_command_valid): Remove global.
8636 (init_w32_command_list): Remove; move into ...
8637 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
8638 * valprint.c (set_print, show_print, set_print_raw)
8639 (show_print_raw): Remove.
8640 (_initialize_valprint): Use add_basic_prefix_cmd,
8641 add_show_prefix_cmd.
8642 * typeprint.c (set_print_type, show_print_type): Remove.
8643 (_initialize_typeprint): Use add_basic_prefix_cmd,
8644 add_show_prefix_cmd.
8645 * record.c (set_record_command, show_record_command): Remove.
8646 (_initialize_record): Use add_basic_prefix_cmd,
8647 add_show_prefix_cmd.
8648 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
8649 add_show_prefix_cmd.
8650 (info_command, show_command, set_debug, show_debug): Remove.
8651 * top.h (set_history, show_history): Don't declare.
8652 * top.c (set_history, show_history): Remove.
8653 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
8654 (unset_tdesc_cmd): Remove.
8655 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
8656 add_show_prefix_cmd.
8657 * symtab.c (info_module_command): Remove.
8658 (_initialize_symtab): Use add_basic_prefix_cmd.
8659 * symfile.c (overlay_command): Remove.
8660 (_initialize_symfile): Use add_basic_prefix_cmd.
8661 * sparc64-tdep.c (info_adi_command): Remove.
8662 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
8663 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
8664 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
8665 add_show_prefix_cmd.
8666 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
8667 (_initialize_serial): Use add_basic_prefix_cmd,
8668 add_show_prefix_cmd.
8669 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
8670 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
8671 add_show_prefix_cmd.
8672 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
8673 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
8674 add_show_prefix_cmd.
8675 * riscv-tdep.c (show_riscv_command, set_riscv_command)
8676 (show_debug_riscv_command, set_debug_riscv_command): Remove.
8677 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
8678 add_show_prefix_cmd.
8679 * remote.c (remote_command, set_remote_cmd): Remove.
8680 (_initialize_remote): Use add_basic_prefix_cmd.
8681 * record-full.c (set_record_full_command)
8682 (show_record_full_command): Remove.
8683 (_initialize_record_full): Use add_basic_prefix_cmd,
8684 add_show_prefix_cmd.
8685 * record-btrace.c (cmd_set_record_btrace)
8686 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
8687 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
8688 (cmd_show_record_btrace_pt): Remove.
8689 (_initialize_record_btrace): Use add_basic_prefix_cmd,
8690 add_show_prefix_cmd.
8691 * ravenscar-thread.c (set_ravenscar_command)
8692 (show_ravenscar_command): Remove.
8693 (_initialize_ravenscar): Use add_basic_prefix_cmd,
8694 add_show_prefix_cmd.
8695 * mips-tdep.c (show_mips_command, set_mips_command)
8696 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
8697 add_show_prefix_cmd.
8698 * maint.c (maintenance_command, maintenance_info_command)
8699 (maintenance_check_command, maintenance_print_command)
8700 (maintenance_set_cmd, maintenance_show_cmd): Remove.
8701 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
8702 add_show_prefix_cmd.
8703 (show_per_command_cmd): Remove.
8704 * maint-test-settings.c (maintenance_set_test_settings_cmd):
8705 Remove.
8706 (maintenance_show_test_settings_cmd): Remove.
8707 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
8708 add_show_prefix_cmd.
8709 * maint-test-options.c (maintenance_test_options_command):
8710 Remove.
8711 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
8712 * macrocmd.c (macro_command): Remove
8713 (_initialize_macrocmd): Use add_basic_prefix_cmd.
8714 * language.c (set_check, show_check): Remove.
8715 (_initialize_language): Use add_basic_prefix_cmd,
8716 add_show_prefix_cmd.
8717 * infcmd.c (unset_command): Remove.
8718 (_initialize_infcmd): Use add_basic_prefix_cmd.
8719 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
8720 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
8721 add_show_prefix_cmd.
8722 * go32-nat.c (go32_info_dos_command): Remove.
8723 (_initialize_go32_nat): Use add_basic_prefix_cmd.
8724 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
8725 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
8726 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
8727 (_initialize_frame): Use add_basic_prefix_cmd,
8728 add_show_prefix_cmd.
8729 * dcache.c (set_dcache_command, show_dcache_command): Remove.
8730 (_initialize_dcache): Use add_basic_prefix_cmd,
8731 add_show_prefix_cmd.
8732 * cp-support.c (maint_cplus_command): Remove.
8733 (_initialize_cp_support): Use add_basic_prefix_cmd.
8734 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
8735 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
8736 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
8737 add_basic_prefix_cmd, add_show_prefix_cmd.
8738 * breakpoint.c (save_command): Remove.
8739 (_initialize_breakpoint): Use add_basic_prefix_cmd.
8740 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
8741 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
8742 add_show_prefix_cmd.
8743 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
8744 (set_ada_command, show_ada_command): Remove.
8745 (_initialize_ada_language): Use add_basic_prefix_cmd,
8746 add_show_prefix_cmd.
8747 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
8748
3557f442
KR
87492020-04-16 Kamil Rytarowski <n54@gmx.com>
8750
8751 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
8752 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
8753
16197208
SM
87542020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
8755
8756 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
8757 warning messages.
8758
00ac85d3
SM
87592020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
8760
8761 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
8762 import table is not at beginning of .idata section.
8763
381ce63f
PA
87642020-04-16 Pedro Alves <palves@redhat.com>
8765
8766 * inferior.c (delete_inferior): Use delete operator directly
8767 instead of delete_program_space.
8768 * progspace.c (add_program_space): New, factored out from
8769 program_space::program_space.
8770 (remove_program_space): New, factored out from
8771 delete_program_space.
8772 (program_space::program_space): Remove intro comment. Rewrite.
8773 (program_space::~program_space): Remove intro comment. Call
8774 remove_program_space.
8775 (delete_program_space): Delete.
8776 * progspace.h (program_space::program_space): Make explicit. Move
8777 intro comment here, adjusted.
8778 (program_space::~program_space): Move intro comment here,
8779 adjusted.
8780 (delete_program_space): Remove.
8781
a010605f
TT
87822020-04-16 Tom Tromey <tromey@adacore.com>
8783
8784 * windows-nat.c (windows_nat::handle_access_violation): New
8785 function.
8786 * nat/windows-nat.h (handle_access_violation): Declare.
8787 * nat/windows-nat.c (handle_exception): Move Cygwin code to
8788 windows-nat.c. Call handle_access_violation.
8789
efba5c23
TV
87902020-04-16 Tom de Vries <tdevries@suse.de>
8791
8792 PR symtab/25791
8793 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
8794 CUs without psymtab.
8795
97ed802d
KB
87962020-04-16 Kevin Buettner <kevinb@redhat.com>
8797
8798 * python/python.c (do_start_initialization): Don't call
8799 PyEval_InitThreads for Python 3.9 and beyond.
8800
c7d64809
KR
88012020-04-15 Kamil Rytarowski <n54@gmx.com>
8802
8803 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
8804 thread functions.
8805 (obsd_nat_target::wait): Likewise.
8806
ce127a96
TT
88072020-04-15 Tom Tromey <tromey@adacore.com>
8808
8809 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
8810 (DEBUG_EXCEPT): Use debug_printf.
8811
99f1bc6a
AB
88122020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
8813
8814 * completer.c (class completion_tracker::completion_hash_entry)
8815 <hash_name>: New member function.
8816 (completion_tracker::discard_completions): New callback to hash a
8817 completion_hash_entry, pass this to htab_create_alloc.
8818
a0e9b532
JT
88192016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
8820
8821 * windows-nat.c (windows_make_so): Warn rather than stopping with
8822 an error if realpath() fails.
8823
06ca5dd4
KR
88242020-04-14 Kamil Rytarowski <n54@gmx.com>
8825
8826 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
8827 (nbsd_nat_target::info_proc): Add do_status.
8828
194d088f
TV
88292020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
8830 Tom de Vries <tdevries@suse.de>
8831
8832 PR symtab/25718
8833 * psympriv.h (struct partial_symtab::read_symtab)
8834 (struct partial_symtab::expand_psymtab)
8835 (struct partial_symtab::read_dependencies): Update comments.
8836 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
8837 read_symtab for includer.
8838 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
8839 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
8840 (struct dwarf2_include_psymtab::m_readin): Remove.
8841 (struct dwarf2_include_psymtab::includer): New member function.
8842 (dwarf2_psymtab::expand_psymtab): Assert !readin.
8843
c1a66c06
TV
88442020-04-14 Tom de Vries <tdevries@suse.de>
8845
8846 PR symtab/25720
8847 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
8848 with NULL symbol_matcher and lookup_name.
8849 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
8850 and lookup_name.
8851 * dwarf2/read.c (dw2_expand_symtabs_matching)
8852 (dw2_debug_names_expand_symtabs_matching): Same.
8853 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
8854 Make lookup_name a pointer. Update comment.
8855 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
8856 lookup_name being a pointer.
8857 * symfile.c (expand_symtabs_matching): Same.
8858 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
8859 * linespec.c (iterate_over_all_matching_symtabs): Same.
8860
400b5eca
TT
88612020-04-13 Tom Tromey <tom@tromey.com>
8862
8863 * run-on-main-thread.c: Update include.
8864 * unittests/main-thread-selftests.c: Update include.
8865 * tui/tui-win.c: Update include.
8866 * tui/tui-io.c: Update include.
8867 * tui/tui-interp.c: Update include.
8868 * tui/tui-hooks.c: Update include.
8869 * top.h: Update include.
8870 * top.c: Update include.
8871 * ser-base.c: Update include.
8872 * remote.c: Update include.
8873 * remote-notif.c: Update include.
8874 * remote-fileio.c: Update include.
8875 * record-full.c: Update include.
8876 * record-btrace.c: Update include.
8877 * python/python.c: Update include.
8878 * posix-hdep.c: Update include.
8879 * mingw-hdep.c: Update include.
8880 * mi/mi-main.c: Update include.
8881 * mi/mi-interp.c: Update include.
8882 * main.c: Update include.
8883 * linux-nat.c: Update include.
8884 * interps.c: Update include.
8885 * infrun.c: Update include.
8886 * inf-loop.c: Update include.
8887 * event-top.c: Update include.
8888 * event-loop.c: Move to ../gdbsupport/.
8889 * event-loop.h: Move to ../gdbsupport/.
8890 * async-event.h: Update include.
8891 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
8892
93b54c8e
TT
88932020-04-13 Tom Tromey <tom@tromey.com>
8894
8895 * tui/tui-win.c: Include async-event.h.
8896 * remote.c: Include async-event.h.
8897 * remote-notif.c: Include async-event.h.
8898 * record-full.c: Include async-event.h.
8899 * record-btrace.c: Include async-event.h.
8900 * infrun.c: Include async-event.h.
8901 * event-top.c: Include async-event.h.
8902 * event-loop.h: Move some declarations to async-event.h.
8903 * event-loop.c: Don't include ser-event.h or top.h. Move some
8904 code to async-event.c.
8905 * async-event.h: New file.
8906 * async-event.c: New file.
8907 * Makefile.in (COMMON_SFILES): Add async-event.c.
8908 (HFILES_NO_SRCDIR): Add async-event.h.
8909
c1cd3163
TT
89102020-04-13 Tom Tromey <tom@tromey.com>
8911
8912 * utils.c (flush_streams): New function.
8913 * event-loop.c (gdb_wait_for_event): Call flush_streams.
8914
29f2bf4f
TT
89152020-04-13 Tom Tromey <tom@tromey.com>
8916
8917 * event-loop.c (handle_file_event): Use warning, not
8918 printf_unfiltered.
8919
98029d02
TT
89202020-04-13 Tom Tromey <tom@tromey.com>
8921
8922 * event-loop.c: Include <chrono>.
8923
06cc9596
TT
89242020-04-13 Tom Tromey <tom@tromey.com>
8925
8926 * gdb_select.h: Move to ../gdbsupport/.
8927 * event-loop.c: Update include path.
8928 * top.c: Update include path.
8929 * ser-base.c: Update include path.
8930 * ui-file.c: Update include path.
8931 * ser-tcp.c: Update include path.
8932 * guile/scm-ports.c: Update include path.
8933 * posix-hdep.c: Update include path.
8934 * ser-unix.c: Update include path.
8935 * gdb_usleep.c: Update include path.
8936 * mingw-hdep.c: Update include path.
8937 * inflow.c: Update include path.
8938 * infrun.c: Update include path.
8939 * event-top.c: Update include path.
8940
8ae8e197
TT
89412020-04-13 Tom Tromey <tom@tromey.com>
8942
8943 * configure: Rebuild.
8944 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
8945
58cf28e8
TT
89462020-04-13 Tom Tromey <tom@tromey.com>
8947
8948 * event-loop.h (start_event_loop): Don't declare.
8949 * event-loop.c (start_event_loop): Move...
8950 * main.c (start_event_loop): ...here. Now static.
8951
b7f999ae
SDJ
89522020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
8953
8954 * MAINTAINERS: Update my email address.
8955
1085dfd4
KR
89562020-04-12 Kamil Rytarowski <n54@gmx.com>
8957
8958 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
8959 IP_ALL.
8960
49d1d1f5
KR
89612020-04-12 Kamil Rytarowski <n54@gmx.com>
8962
8963 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 8964 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 8965
b4848d2a
KR
89662020-04-12 Kamil Rytarowski <n54@gmx.com>
8967
8968 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 8969 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 8970
51c133d5
KR
89712020-04-12 Kamil Rytarowski <n54@gmx.com>
8972
8973 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
8974
54b8cbd0
KR
89752020-04-11 Kamil Rytarowski <n54@gmx.com>
8976
8977 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
8978 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
8979 (nbsd_nat_target::info_proc): New functions.
8980 * nbsd-nat.c (kinfo_get_vmmap): New function.
8981 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
8982 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
8983 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
8984 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
8985 functions.
8986 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
8987 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
8988 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
8989 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
8990 (KINFO_VME_FLAG_GROWS_DOWN): New.
8991
cf83625d
AS
89922020-04-10 Artur Shepilko <nomadbyte@gmail.com>
8993
8994 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
8995 bit shift.
8996
0c4311ab
TT
89972020-04-10 Tom Tromey <tromey@adacore.com>
8998
8999 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
9000
3e65b3e9
TT
90012020-04-10 Tom Tromey <tromey@adacore.com>
9002
9003 * symtab.c (get_symbol_address, get_msymbol_address): Skip
9004 separate debug files.
9005
13302e95
HD
90062020-04-10 Hannes Domani <ssbssa@yahoo.de>
9007
9008 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
9009 Move to...
9010 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
9011 ... here.
9012 * windows-nat.c (windows_nat_target::get_windows_debug_event):
9013 Check for STATUS_WX86_BREAKPOINT.
9014 (windows_nat_target::wait): Same.
9015
bdfc1e8a
TV
90162020-04-10 Tom de Vries <tdevries@suse.de>
9017
9018 PR cli/25808
9019 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
9020
f4460aec
SM
90212020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9022
9023 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
9024 (Write After Approval): Remove Tom de Vries.
9025
a25198bb
BE
90262020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
9027
9028 revert partially:
9029 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
9030
aac66a4c
SM
9031 * buildsym.c (record_line): Fix undefined behavior and preserve
9032 lines at eof.
a25198bb 9033
206c98a6
KR
90342020-04-09 Kamil Rytarowski <n54@gmx.com>
9035
9036 * auxv.h (svr4_auxv_parse): New.
9037 * auxv.c (default_auxv_parse): Split into default_auxv_parse
9038 and generic_auxv_parse.
9039 (svr4_auxv_parse): Add.
9040 * obsd-tdep.c: Include "auxv.h".
9041 (obsd_auxv_parse): Remove.
9042 (obsd_init_abi): Remove comment.
9043 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
9044 from `obsd_auxv_parse' to `svr4_auxv_parse'.
9045 * nbsd-tdep.c: Include "auxv.h".
9046 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
9047
71fbdbaf
TT
90482020-04-08 Tom Tromey <tromey@adacore.com>
9049
9050 * nat/windows-nat.h (last_wait_event): Don't declare.
9051 (wait_for_debug_event): Update comment.
9052 * nat/windows-nat.c (last_wait_event): Now static.
9053
2c1d95e8
TT
90542020-04-08 Tom Tromey <tromey@adacore.com>
9055
9056 * windows-nat.c (wait_for_debug_event): Move to
9057 nat/windows-nat.c.
9058 * nat/windows-nat.h (wait_for_debug_event): Declare.
9059 * nat/windows-nat.c (wait_for_debug_event): Move from
9060 windows-nat.c. No longer static.
9061
d2977bc4
TT
90622020-04-08 Tom Tromey <tromey@adacore.com>
9063
9064 * windows-nat.c (get_windows_debug_event): Use
9065 fetch_pending_stop.
9066 * nat/windows-nat.h (fetch_pending_stop): Declare.
9067 * nat/windows-nat.c (fetch_pending_stop): New function.
9068
e758e19c
TT
90692020-04-08 Tom Tromey <tromey@adacore.com>
9070
9071 * windows-nat.c (windows_continue): Use matching_pending_stop and
9072 continue_last_debug_event.
9073 * nat/windows-nat.h (matching_pending_stop)
9074 (continue_last_debug_event): Declare.
9075 * nat/windows-nat.c (DEBUG_EVENTS): New define.
9076 (matching_pending_stop, continue_last_debug_event): New
9077 functions.
9078
8d30e395
TT
90792020-04-08 Tom Tromey <tromey@adacore.com>
9080
9081 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
9082 (handle_exception_result): Move to nat/windows-nat.h.
9083 (DEBUG_EXCEPTION_SIMPLE): Remove.
9084 (windows_nat::handle_ms_vc_exception): New function.
9085 (handle_exception): Move to nat/windows-nat.c.
9086 (get_windows_debug_event): Update.
9087 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
9088 nat/windows-nat.c.
9089 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
9090 (handle_exception_result): Move from windows-nat.c.
9091 (handle_exception): Declare.
9092 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
9093 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
9094 windows-nat.c.
9095
29de418d
TT
90962020-04-08 Tom Tromey <tromey@adacore.com>
9097
9098 * windows-nat.c (exception_count, event_count): Remove.
9099 (handle_exception, get_windows_debug_event)
9100 (do_initial_windows_stuff): Update.
9101
a816ba18
TT
91022020-04-08 Tom Tromey <tromey@adacore.com>
9103
9104 * windows-nat.c (windows_nat::handle_load_dll)
9105 (windows_nat::handle_unload_dll): Rename. No longer static.
9106 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
9107 Declare.
9108
a00caa12
TT
91092020-04-08 Tom Tromey <tromey@adacore.com>
9110
9111 * complaints.h (stop_whining): Declare at top-level.
9112 (complaint): Don't declare stop_whining.
9113
d41b524f
TT
91142020-04-08 Tom Tromey <tromey@adacore.com>
9115
9116 * windows-nat.c (windows_nat::handle_output_debug_string):
9117 Rename. No longer static.
9118 * nat/windows-nat.h (handle_output_debug_string): Declare.
9119
3c76026d
TT
91202020-04-08 Tom Tromey <tromey@adacore.com>
9121
9122 * windows-nat.c (current_process_handle, current_process_id)
9123 (main_thread_id, last_sig, current_event, last_wait_event)
9124 (current_windows_thread, desired_stop_thread_id, pending_stops)
9125 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
9126 (display_selectors, fake_create_process)
9127 (get_windows_debug_event): Update.
9128 * nat/windows-nat.h (current_process_handle, current_process_id)
9129 (main_thread_id, last_sig, current_event, last_wait_event)
9130 (current_windows_thread, desired_stop_thread_id, pending_stops)
9131 (struct pending_stop, siginfo_er): Move from windows-nat.c.
9132 * nat/windows-nat.c (current_process_handle, current_process_id)
9133 (main_thread_id, last_sig, current_event, last_wait_event)
9134 (current_windows_thread, desired_stop_thread_id, pending_stops)
9135 (siginfo_er): New globals. Move from windows-nat.c.
9136
9d8679cc
TT
91372020-04-08 Tom Tromey <tromey@adacore.com>
9138
9139 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
9140 (handle_load_dll): Update.
9141 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
9142
28688adf
TT
91432020-04-08 Tom Tromey <tromey@adacore.com>
9144
9145 * windows-nat.c (enum thread_disposition_type): Move to
9146 nat/windows-nat.h.
9147 (windows_nat::thread_rec): Rename from thread_rec. No longer
9148 static.
9149 (windows_add_thread, windows_nat_target::fetch_registers)
9150 (windows_nat_target::store_registers, handle_exception)
9151 (windows_nat_target::resume, get_windows_debug_event)
9152 (windows_nat_target::get_tib_address)
9153 (windows_nat_target::thread_name)
9154 (windows_nat_target::thread_alive): Update.
9155 * nat/windows-nat.h (enum thread_disposition_type): Move from
9156 windows-nat.c.
9157 (thread_rec): Declare.
9158
4834dad0
TT
91592020-04-08 Tom Tromey <tromey@adacore.com>
9160
9161 * windows-nat.c: Add "using namespace".
9162 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
9163 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
9164
65bafd5b
TT
91652020-04-08 Tom Tromey <tromey@adacore.com>
9166
9167 * nat/windows-nat.h (struct windows_thread_info): Declare
9168 destructor.
9169 * nat/windows-nat.c (~windows_thread_info): New.
9170
0a4afda3
TT
91712020-04-08 Tom Tromey <tromey@adacore.com>
9172
9173 PR gdb/22992
9174 * windows-nat.c (current_event): Update comment.
9175 (last_wait_event, desired_stop_thread_id): New globals.
9176 (struct pending_stop): New.
9177 (pending_stops): New global.
9178 (windows_nat_target) <stopped_by_sw_breakpoint>
9179 <supports_stopped_by_sw_breakpoint>: New methods.
9180 (windows_fetch_one_register): Add assertions. Adjust PC.
9181 (windows_continue): Handle pending stops. Suspend other threads
9182 when stepping. Use last_wait_event
9183 (wait_for_debug_event): New function.
9184 (get_windows_debug_event): Use wait_for_debug_event. Handle
9185 pending stops. Queue spurious stops.
9186 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
9187 (windows_nat_target::kill): Use wait_for_debug_event.
9188 * nat/windows-nat.h (struct windows_thread_info)
9189 <stopped_at_software_breakpoint>: New field.
9190 * nat/windows-nat.c (windows_thread_info::resume): Clear
9191 stopped_at_software_breakpoint.
9192
8e61ebec
TT
91932020-04-08 Tom Tromey <tromey@adacore.com>
9194
9195 * windows-nat.c (enum thread_disposition_type): New.
9196 (thread_rec): Replace "get_context" parameter with "disposition";
9197 change type.
9198 (windows_add_thread, windows_nat_target::fetch_registers)
9199 (windows_nat_target::store_registers, handle_exception)
9200 (windows_nat_target::resume, get_windows_debug_event)
9201 (windows_nat_target::get_tib_address)
9202 (windows_nat_target::thread_name)
9203 (windows_nat_target::thread_alive): Update.
9204
98a03287
TT
92052020-04-08 Tom Tromey <tromey@adacore.com>
9206
9207 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
9208 (windows_continue): Use windows_continue::resume.
9209 * nat/windows-nat.h (struct windows_thread_info) <suspend,
9210 resume>: Declare new methods.
9211 * nat/windows-nat.c: New file.
9212 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
9213
7c7411bc
TT
92142020-04-08 Tom Tromey <tromey@adacore.com>
9215
9216 * windows-nat.c (windows_add_thread, windows_delete_thread)
9217 (windows_nat_target::fetch_registers)
9218 (windows_nat_target::store_registers, fake_create_process)
9219 (windows_nat_target::resume, windows_nat_target::resume)
9220 (get_windows_debug_event, windows_nat_target::wait)
9221 (windows_nat_target::pid_to_str)
9222 (windows_nat_target::get_tib_address)
9223 (windows_nat_target::get_ada_task_ptid)
9224 (windows_nat_target::thread_name)
9225 (windows_nat_target::thread_alive): Use lwp, not tid.
9226
2950fdf7
TT
92272020-04-08 Tom Tromey <tromey@adacore.com>
9228
9229 * windows-nat.c (handle_exception)
9230 (windows_nat_target::thread_name): Update.
9231 * nat/windows-nat.h (windows_thread_info): Remove destructor.
9232 <name>: Now unique_xmalloc_ptr.
9233
62fe396b
TT
92342020-04-08 Tom Tromey <tromey@adacore.com>
9235
9236 * windows-nat.c (thread_rec)
9237 (windows_nat_target::fetch_registers): Update.
9238 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
9239 Update comment.
9240 <debug_registers_changed, reload_context>: Now bool.
9241
e9534bd2
TT
92422020-04-08 Tom Tromey <tromey@adacore.com>
9243
9244 * windows-nat.c (windows_add_thread): Use new.
9245 (windows_init_thread_list, windows_delete_thread): Use delete.
9246 (get_windows_debug_event): Update.
9247 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
9248 destructor, and initializers.
9249
ae1f8880
TT
92502020-04-08 Tom Tromey <tromey@adacore.com>
9251
9252 * windows-nat.c (struct windows_thread_info): Remove.
9253 * nat/windows-nat.h: New file.
9254
55a1e039
TT
92552020-04-08 Tom Tromey <tromey@adacore.com>
9256
9257 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
9258 (thread_rec, windows_add_thread, windows_delete_thread)
9259 (windows_continue): Update.
9260
93366324
TT
92612020-04-08 Tom Tromey <tromey@adacore.com>
9262
9263 * windows-nat.c (struct windows_thread_info): Remove typedef.
9264 (thread_head): Remove.
9265 (thread_list): New global.
9266 (thread_rec, windows_add_thread, windows_init_thread_list)
9267 (windows_delete_thread, windows_continue): Update.
9268
0f2265e2
SM
92692020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
9270
9271 * windows-tdep.h (windows_init_abi): Add comment.
9272 (cygwin_init_abi): New declaration.
9273 * windows-tdep.c: Split signal enumeration in two, one for
9274 Windows and one for Cygwin.
9275 (windows_gdb_signal_to_target): Only deal with signal of the
9276 Windows OS ABI.
9277 (cygwin_gdb_signal_to_target): New function.
9278 (windows_init_abi): Rename to windows_init_abi_common, don't set
9279 gdb_signal_to_target gdbarch method. Add new new function with
9280 this name.
9281 (cygwin_init_abi): New function.
9282 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
9283 comment. Don't call windows_init_abi.
9284 (amd64_windows_init_abi): Add comment, call windows_init_abi.
9285 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
9286 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
9287 i386_windows_init_abi_common, don't call windows_init_abi. Add
9288 a new function of this name.
9289 (i386_cygwin_init_abi): New function.
9290 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
9291 OS ABI Cygwin.
9292
3810f182
SM
92932020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
9294
9295 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
9296 parameter.c.
9297 (dwarf2_read_gdb_index): Update.
9298
063f8e80
KR
92992020-04-07 Kamil Rytarowski <n54@gmx.com>
9300
9301 * nbsd-tdep.c: Include "objfiles.h".
9302 (nbsd_skip_solib_resolver): New.
9303 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
9304
85a9510c 93052020-04-07 Nitika Achra <Nitika.Achra@amd.com>
9306
9307 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
9308 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
9309 with DW_LLE_base_addressx are being emitted in DWARFv5.
9310 Add the newly added kind DW_LOC_OFFSET_PAIR also.
9311 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
9312 unsigned integer.
9313
9fc3eaae 93142020-04-07 Nitika Achra <Nitika.Achra@amd.com>
9315
9316 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
9317 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
9318 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
9319 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
9320 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
9321 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
9322 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
9323
9324
41144253 93252020-04-07 Nitika Achra <Nitika.Achra@amd.com>
9326
9327 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
9328 (read_loclist_index): New function definition.
9329 (lookup_loclist_base): New function definition.
9330 (read_loclist_header): New function definition.
9331 (dwarf2_cu): Add loclist_base and loclist_header field.
9332 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
9333 (read_full_die_1): Read the value of DW_AT_loclists_base.
9334 (read_attribute_reprocess): Handle DW_FORM_loclistx.
9335 (read_attribute_value): Handle DW_FORM_loclistx.
9336 (skip_one_die): Handle DW_FORM_loclistx.
9337 (loclist_header): New structure declaration.
9338 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
9339
9f4e76a4
SM
93402020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9341
9342 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
9343 constructor. Remove `addr` parameter from other constructor and
9344 add `per_cu` parameter.
9345 * dwarf2/read.c (create_partial_symtab): Update.
9346
25c11aca
TV
93472020-04-07 Tom de Vries <tdevries@suse.de>
9348
9349 PR symtab/25796
9350 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
9351 (partial_die_info::fixup): Inherit has_const_value.
9352
5707e24b
TV
93532020-04-07 Tom de Vries <tdevries@suse.de>
9354
9355 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
9356 symbols without address.
9357
05f00e22
KR
93582020-04-06 Kamil Rytarowski <n54@gmx.com>
9359
9360 * nbsd-nat.h (struct thread_info): Add forward declaration.
9361 (nbsd_nat_target::thread_alive): Add.
9362 (nbsd_nat_target::thread_name): Likewise.
9363 (nbsd_nat_target::update_thread_list): Likewise.
9364 (update_thread_list::post_attach): Likewise.
9365 (post_attach::pid_to_str): Likewise.
9366 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
9367 (nbsd_thread_lister): Add.
9368 (nbsd_nat_target::thread_alive): Likewise.
9369 (nbsd_nat_target::thread_name): Likewise.
9370 (nbsd_add_threads): Likewise.
9371 (update_thread_list::post_attach): Likewise.
9372 (nbsd_nat_target::update_thread_list): Likewise.
9373 (post_attach::pid_to_str): Likewise.
9374
6ee448cc
TT
93752020-04-06 Tom Tromey <tromey@adacore.com>
9376
9377 * ada-valprint.c (print_variant_part): Extract the variant field.
9378 (print_field_values): Use the field as the outer value when
9379 recursing.
9380
dea34e8c
TT
93812020-04-06 Tom Tromey <tromey@adacore.com>
9382
9383 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
9384 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
9385 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
9386 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
9387 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
9388
93689ce9
TT
93892020-04-06 Tom Tromey <tromey@adacore.com>
9390
9391 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
9392 TYPE_CODE_ERROR.
9393
79743962
KR
93942020-04-06 Kamil Rytarowski <n54@gmx.com>
9395
9396 * nbsd-tdep.c: Include "gdbarch.h".
9397 Define enum with NetBSD signal numbers.
9398 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
9399 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
9400 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
9401 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
9402 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
9403 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
9404 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
9405 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
9406 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
9407 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
9408 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
9409 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
9410
9e7c9a03
HD
94112020-04-03 Hannes Domani <ssbssa@yahoo.de>
9412
9413 PR gdb/25325
9414 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
9415
d9e49b61
TT
94162020-04-03 Tom Tromey <tromey@adacore.com>
9417
9418 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
9419 Read constant block.
9420
e0fc5c3f
SM
94212020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
9422
9423 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
9424 (gdb_bfd_get_full_section_contents): New declaration.
9425 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
9426 * windows-tdep.c (is_linked_with_cygwin_dll): Use
9427 gdb_bfd_get_full_section_contents.
9428
e2ff18a0
SM
94292020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
9430
9431 * exec.c (build_section_table): Replace internal_error with
9432 gdb_assert.
9433 (section_table_xfer_memory_partial): Likewise.
9434 * mdebugread.c (parse_partial_symbols): Likewise.
9435 * psymtab.c (lookup_partial_symbol): Likewise.
9436 * utils.c (wrap_here): Likewise.
9437
0830d301
TT
94382020-04-02 Tom Tromey <tromey@adacore.com>
9439
9440 * f-lang.c (build_fortran_types): Use arch_type to initialize
9441 builtin_complex_s32 in the TYPE_CODE_ERROR case.
9442
e7da7f8f
TT
94432020-04-02 Tom Tromey <tromey@adacore.com>
9444
9445 * dwarf2/read.c (partial_die_info::read): Do not create a vector
9446 of attributes.
9447
c90d28ac
AB
94482020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
9449 Bernd Edlinger <bernd.edlinger@hotmail.de>
9450 Tom Tromey <tromey@adacore.com>
9451
9452 * buildsym.c (buildsym_compunit::record_line): Remove
9453 deduplication code.
9454
1aa98955
TV
94552020-04-02 Tom de Vries <tdevries@suse.de>
9456
9457 PR ada/24671
9458 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
9459
d3214198
TV
94602020-04-02 Tom de Vries <tdevries@suse.de>
9461
9462 * dwarf2/read.c (dwarf2_gdb_index_functions,
9463 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
9464 NULL.
9465 * psymtab.c (psym_lookup_global_symbol_language): New function.
9466 (psym_functions): Init psym_lookup_global_symbol_language with
9467 psym_lookup_global_symbol_language.
9468 * symfile-debug.c (debug_sym_quick_functions): Init
9469 lookup_global_symbol_language with NULL.
9470 * symfile.c (set_initial_language): Remove fixme comment.
9471 * symfile.h (struct quick_symbol_functions): Add
9472 lookup_global_symbol_language.
9473 * symtab.c (find_quick_global_symbol_language): New function.
9474 (find_main_name): Use find_quick_global_symbol_language.
9475
2836752f
SM
94762020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
9477
9478 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
9479
64dc2d4b
BE
94802020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
9481
9482 * buildsym.c (record_line): Fix undefined behavior and preserve
9483 lines at eof.
9484
bbe3dc41
BE
94852020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
9486
9487 * buildsym.c (record_line): Fix the resizing condition.
9488
6b4a335b
TT
94892020-04-01 Tom Tromey <tom@tromey.com>
9490
9491 * value.h (value_literal_complex): Add comment.
9492 * valops.c (value_literal_complex): Refer to value.h.
9493
3638a098
TT
94942020-04-01 Tom Tromey <tom@tromey.com>
9495
9496 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
9497 (scalar_type): New rule, from typebase.
9498 (typebase): Use scalar_type. Recognize complex types.
9499 (field_name): Handle FLOAT_KEYWORD.
9500 (ident_tokens): Add _Complex and __complex__.
9501
c34e8714
TT
95022020-04-01 Tom Tromey <tom@tromey.com>
9503
9504 PR exp/25299:
9505 * valarith.c (promotion_type, complex_binop): New functions.
9506 (scalar_binop): Handle complex numbers. Use promotion_type.
9507 (value_pos, value_neg, value_complement): Handle complex numbers.
9508
fa649bb7
TT
95092020-04-01 Tom Tromey <tom@tromey.com>
9510
9511 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
9512 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
9513 (parse_number): Handle complex numbers.
9514
981c08ce
TT
95152020-04-01 Tom Tromey <tom@tromey.com>
9516
9517 * c-valprint.c (c_decorations): Change complex suffix to "i".
9518
4c99290d
TT
95192020-04-01 Tom Tromey <tom@tromey.com>
9520
9521 * valprint.c (generic_value_print_complex): Use accessors.
9522 * value.h (value_real_part, value_imaginary_part): Declare.
9523 * valops.c (value_real_part, value_imaginary_part): New
9524 functions.
9525 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
9526
5b930b45
TT
95272020-04-01 Tom Tromey <tom@tromey.com>
9528
9529 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
9530 (read_range_type): Update.
9531 * mdebugread.c (basic_type): Update.
9532 * go-lang.c (build_go_types): Use init_complex_type.
9533 * gdbtypes.h (struct main_type) <complex_type>: New member.
9534 (init_complex_type): Update.
9535 (arch_complex_type): Don't declare.
9536 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
9537 Make name if none given. Use alloc_type_copy. Look for cached
9538 complex type.
9539 (arch_complex_type): Remove.
9540 (gdbtypes_post_init): Use init_complex_type.
9541 * f-lang.c (build_fortran_types): Use init_complex_type.
9542 * dwarf2/read.c (read_base_type): Update.
9543 * d-lang.c (build_d_types): Use init_complex_type.
9544 * ctfread.c (read_base_type): Update.
9545
53cccef1
TBA
95462020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9547
9548 * infrun.c (stop_all_threads): Update assertion, plus when
9549 stopping threads, take into account that we might be trying
9550 to stop an all-stop target.
9551 (stop_waiting): Call 'stop_all_threads' if there exists a
9552 non-stop target.
9553
a0714d30
TBA
95542020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9555
9556 * target.h (exists_non_stop_target): New function declaration.
9557 * target.c (exists_non_stop_target): New function.
9558
60e22c1e
HD
95592020-04-01 Hannes Domani <ssbssa@yahoo.de>
9560
9561 PR gdb/24789
9562 * eval.c (is_integral_or_integral_reference): New function.
9563 (evaluate_subexp_standard): Allow integer references in
9564 pointer arithmetic.
9565
e139a727
TBA
95662020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9567
9568 * remote.c (remote_target::remote_parse_stop_reply): Remove the
9569 check for no ptid in the stop reply when the target is non-stop.
9570
e0802d59
TT
95712020-04-01 Tom Tromey <tromey@adacore.com>
9572
9573 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
9574 "name" parameter to rvalue reference. Initialize m_name_holder.
9575 <lookup_name_info>: New overloads.
9576 <name>: Return gdb::string_view.
9577 <c_str>: New method.
9578 <make_ignore_params>: Update.
9579 <search_name_hash>: Update.
9580 <language_lookup_name>: Return const char *.
9581 <m_name>: Change type.
9582 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
9583 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
9584 (lookup_name_info::match_any): Update.
9585 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
9586 Update.
9587 * minsyms.c (linkage_name_str): Update.
9588 * language.c (default_symbol_name_matcher): Update.
9589 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
9590 Update.
9591 * ada-lang.c (ada_fold_name): Change parameter to string_view.
9592 (ada_lookup_name_info::ada_lookup_name_info): Update.
9593 (literal_symbol_name_matcher): Update.
9594
8c072cb6
TT
95952020-04-01 Tom Tromey <tromey@adacore.com>
9596
9597 * psymtab.c (psymtab_search_name): Remove function.
9598 (psym_lookup_symbol): Create search name and lookup name here.
9599 (lookup_partial_symbol): Remove "name" parameter; add
9600 lookup_name.
9601 (psym_expand_symtabs_for_function): Update.
9602
6f29a534
TT
96032020-03-31 Joel Jones <joelkevinjones@gmail.com>
9604
9605 PR tui/25597:
9606 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
9607
af62665e
TT
96082020-03-31 Tom Tromey <tromey@adacore.com>
9609
9610 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
9611 memcpy.
9612
d1a89da5
NC
96132020-03-30 Nelson Chu <nelson.chu@sifive.com>
9614
9615 * features/riscv/32bit-csr.xml: Regenerated.
9616 * features/riscv/64bit-csr.xml: Regenerated.
9617
d8af9068
TT
96182020-03-30 Tom Tromey <tromey@adacore.com>
9619
9620 * ada-valprint.c (print_variant_part): Update.
9621 * ada-lang.h (ada_which_variant_applies): Update.
9622 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
9623 outer_valaddr parameters; replace with "outer" value parameter.
9624 (to_fixed_variant_branch_type): Update.
9625
227c0bf4
PFC
96262020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9627
9628 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
9629 <list>. Remove inclusion of observable.h.
9630 (PPC_DEBUG_CURRENT_VERSION): Move up define.
9631 (struct arch_lwp_info): New struct.
9632 (class ppc_linux_dreg_interface): New class.
9633 (struct ppc_linux_process_info): New struct.
9634 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
9635 <low_new_clone, low_forget_process, low_prepare_to_resume>
9636 <copy_thread_dreg_state, mark_thread_stale>
9637 <mark_debug_registers_changed, register_hw_breakpoint>
9638 <clear_hw_breakpoint, register_wp, clear_wp>
9639 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
9640 <num_memory_accesses, get_trigger_type>
9641 <create_watchpoint_request, hwdebug_point_cmp>
9642 <init_arch_lwp_info, get_arch_lwp_info>
9643 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
9644 methods.
9645 <struct ptid_hash>: New inner struct.
9646 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
9647 members.
9648 (saved_dabr_value, hwdebug_info, max_slots_number)
9649 (struct hw_break_tuple, struct thread_points, ppc_threads)
9650 (have_ptrace_hwdebug_interface)
9651 (hwdebug_find_thread_points_by_tid)
9652 (hwdebug_insert_point, hwdebug_remove_point): Remove.
9653 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
9654 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
9655 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
9656 use m_dreg_interface.
9657 (hwdebug_point_cmp): Change to...
9658 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
9659 reference arguments instead of pointers.
9660 (ppc_linux_nat_target::ranged_break_num_registers): Use
9661 m_dreg_interface.
9662 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
9663 m_dreg_interface. Call register_hw_breakpoint.
9664 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
9665 m_dreg_interface. Call clear_hw_breakpoint.
9666 (get_trigger_type): Change to...
9667 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
9668 comment.
9669 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
9670 use m_dreg_interface. Call register_hw_breakpoint.
9671 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
9672 use m_dreg_interface. Call clear_hw_breakpoint.
9673 (can_use_watchpoint_cond_accel): Change to...
9674 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
9675 method. Update comment, use m_dreg_interface and
9676 m_process_info.
9677 (calculate_dvc): Change to...
9678 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
9679 m_dreg_interface.
9680 (num_memory_accesses): Change to...
9681 (ppc_linux_nat_target::num_memory_accesses): ...this method.
9682 (check_condition): Change to...
9683 (ppc_linux_nat_target::check_condition): ...this method.
9684 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
9685 comment, use m_dreg_interface.
9686 (create_watchpoint_request): Change to...
9687 (ppc_linux_nat_target::create_watchpoint_request): ...this
9688 method. Use m_dreg_interface.
9689 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
9690 m_dreg_interface. Call register_hw_breakpoint or register_wp.
9691 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
9692 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
9693 (ppc_linux_nat_target::low_forget_process)
9694 (ppc_linux_nat_target::low_new_fork)
9695 (ppc_linux_nat_target::low_new_clone)
9696 (ppc_linux_nat_target::low_delete_thread)
9697 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
9698 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
9699 only call mark_thread_stale.
9700 (ppc_linux_thread_exit): Remove.
9701 (ppc_linux_nat_target::stopped_data_address): Change to...
9702 (ppc_linux_nat_target::low_stopped_data_address): This. Add
9703 comment, use m_dreg_interface and m_thread_hw_breakpoints.
9704 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
9705 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
9706 comment. Call low_stopped_data_address.
9707 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
9708 m_dreg_interface.
9709 (ppc_linux_nat_target::masked_watch_num_registers): Use
9710 m_dreg_interface.
9711 (ppc_linux_nat_target::copy_thread_dreg_state)
9712 (ppc_linux_nat_target::mark_thread_stale)
9713 (ppc_linux_nat_target::mark_debug_registers_changed)
9714 (ppc_linux_nat_target::register_hw_breakpoint)
9715 (ppc_linux_nat_target::clear_hw_breakpoint)
9716 (ppc_linux_nat_target::register_wp)
9717 (ppc_linux_nat_target::clear_wp)
9718 (ppc_linux_nat_target::init_arch_lwp_info)
9719 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
9720 (_initialize_ppc_linux_nat): Remove observer callback.
9721
4db10d8f
PFC
97222020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9723
9724 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
9725 (ppc_linux_nat_target::auxv_parse)
9726 (ppc_linux_nat_target::read_description)
9727 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
9728 Move up.
9729
1310c1b0
PFC
97302020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9731
9732 * linux-nat.h (low_new_clone): New method.
9733 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
9734
69b037c3
SM
97352020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9736
9737 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
9738 (dbx_expand_psymtab): ... this.
9739 (start_psymtab): Update.
9740 * mdebugread.c (psymtab_to_symtab_1): Rename to...
9741 (mdebug_expand_psymtab): ... this.
9742 (parse_partial_symbols): Update.
9743 (new_psymtab): Update.
9744 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
9745 (xcoff_expand_psymtab): ... this.
9746 (xcoff_start_psymtab): Update.
9747
48993951
SM
97482020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9749
9750 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
9751 <expand_dependencies>: ... this.
9752 * psymtab.c (partial_symtab::read_dependencies): Rename to...
9753 (partial_symtab::expand_dependencies): ... this.
9754 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
9755 Update.
9756 (dwarf2_psymtab::expand_psymtab): Update.
9757 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
9758 * mdebugread.c (psymtab_to_symtab_1): Update.
9759 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
9760
3ad83046
SM
97612020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9762
9763 * psympriv.h (discard_psymtab): Remove.
9764 * dbxread.c (dbx_end_psymtab): Update.
9765 * xcoffread.c (xcoff_end_psymtab): Update.
9766
4d1b9ab6
TT
97672020-03-28 Tom Tromey <tom@tromey.com>
9768
9769 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
9770 comment.
9771
f1749218
TT
97722020-03-28 Tom Tromey <tom@tromey.com>
9773
9774 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
9775
ebea7626
HD
97762020-03-27 Hannes Domani <ssbssa@yahoo.de>
9777
9778 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
9779
a879b4d5
JB
97802020-03-26 John Baldwin <jhb@FreeBSD.org>
9781
9782 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
9783
0826b30a
TT
97842020-03-26 Tom Tromey <tom@tromey.com>
9785
9786 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
9787 (mark_common_block_symbol_computed, read_tag_string_type)
9788 (attr_to_dynamic_prop, read_subrange_type): Update.
9789 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
9790 to be methods on struct attribute.
9791 (skip_one_die, process_imported_unit_die, read_namespace_alias)
9792 (read_call_site_scope, partial_die_info::read)
9793 (partial_die_info::read, lookup_die_type, follow_die_ref):
9794 Update.
9795 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
9796 from dwarf2_get_ref_die_offset.
9797 (attribute::constant_value): New method, from
9798 dwarf2_get_attr_constant_value.
9799 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
9800 Declare method.
9801 <constant_value>: New method.
9802
2b2558bf
TT
98032020-03-26 Tom Tromey <tom@tromey.com>
9804
9805 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
9806 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
9807 (dwarf_type_encoding_name): Move to stringify.c.
9808 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
9809 * dwarf2/stringify.c: New file.
9810 * dwarf2/stringify.h: New file.
9811
eeb64781
TT
98122020-03-26 Tom Tromey <tom@tromey.com>
9813
9814 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
9815 Rewrite.
9816
a39fdb41
TT
98172020-03-26 Tom Tromey <tom@tromey.com>
9818
9819 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
9820 methods.
9821 * dwarf2/read.c (lookup_addr_base): Move to die.h.
9822 (lookup_ranges_base): Likewise.
9823 (read_cutu_die_from_dwo, read_full_die_1): Update.
9824
436c571c
TT
98252020-03-26 Tom Tromey <tom@tromey.com>
9826
9827 * dwarf2/read.c (read_import_statement, read_file_scope)
9828 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
9829 (read_lexical_block_scope, read_call_site_scope)
9830 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
9831 (handle_struct_member_die, process_structure_scope)
9832 (update_enumeration_type_from_children)
9833 (process_enumeration_scope, read_array_type, read_common_block)
9834 (read_namespace, read_module, read_subroutine_type): Update.
9835 (sibling_die): Remove.
9836
052c8bb8
TT
98372020-03-26 Tom Tromey <tom@tromey.com>
9838
9839 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
9840 (build_type_psymtabs_reader, read_structure_type)
9841 (read_enumeration_type, read_full_die_1): Update.
9842 (dwarf2_attr_no_follow): Move to die.h.
9843 * dwarf2/die.h (struct die_info) <attr>: New method.
9844
2b24b6e4
TT
98452020-03-26 Tom Tromey <tom@tromey.com>
9846
9847 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
9848 <base_address>: Now an optional.
9849 (dwarf2_find_base_address, dwarf2_rnglists_process)
9850 (dwarf2_ranges_process, fill_in_loclist_baton)
9851 (dwarf2_symbol_mark_computed): Update.
9852
c2d50fd0
TT
98532020-03-26 Tom Tromey <tom@tromey.com>
9854
9855 * dwarf2/read.c (struct die_info): Move to die.h.
9856 * dwarf2/die.h: New file.
9857
0df7ad3a
TT
98582020-03-26 Tom Tromey <tom@tromey.com>
9859
9860 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
9861 * dwarf2/read.c
9862 (dwarf2_statement_list_fits_in_line_number_section_complaint):
9863 Move to line-header.c.
9864 (read_checked_initial_length_and_offset, read_formatted_entries):
9865 Likewise.
9866 (dwarf_decode_line_header): Split into two.
9867 * dwarf2/line-header.c
9868 (dwarf2_statement_list_fits_in_line_number_section_complaint):
9869 Move from read.c.
9870 (read_checked_initial_length_and_offset, read_formatted_entries):
9871 Likewise.
9872 (dwarf_decode_line_header): New function, split from read.c.
9873
86c0bb4c
TT
98742020-03-26 Tom Tromey <tom@tromey.com>
9875
9876 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
9877 Declare method.
9878 * dwarf2/read.c (read_attribute_value): Update.
9879 (dwarf2_per_objfile::read_line_string): Rename from
9880 read_indirect_line_string.
9881 (read_formatted_entries): Update.
9882
2ef46c2f
TT
98832020-03-26 Tom Tromey <tom@tromey.com>
9884
9885 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
9886 variable.
9887
4f9c1eda
TT
98882020-03-26 Tom Tromey <tom@tromey.com>
9889
9890 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
9891 const.
9892 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
9893 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
9894 parameter const.
9895
5a0e026f
TT
98962020-03-26 Tom Tromey <tom@tromey.com>
9897
9898 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
9899 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
9900 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
9901 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
9902
8844c11b
TT
99032020-03-26 Tom Tromey <tom@tromey.com>
9904
9905 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
9906 file_names_size, file_full_name, file_file_name>: Use const.
9907 <file_name_at, file_names>: Add const overload.
9908 * dwarf2/line-header.c (line_header::file_file_name)
9909 (line_header::file_full_name): Update.
9910
c90ec28a
TT
99112020-03-26 Tom Tromey <tom@tromey.com>
9912
9913 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
9914 (macro_start_file, consume_improper_spaces)
9915 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
9916 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
9917 (dwarf_decode_macros): Move to macro.c.
9918 * dwarf2/macro.c: New file.
9919 * dwarf2/macro.h: New file.
9920 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
9921
4f44ae6c
TT
99222020-03-26 Tom Tromey <tom@tromey.com>
9923
9924 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
9925 method.
9926 * dwarf2/section.c: New method. From
9927 read_indirect_string_at_offset_from.
9928 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
9929 (read_indirect_string_at_offset_from): Move to section.c.
9930 (read_indirect_string_at_offset): Rewrite.
9931 (read_indirect_line_string_at_offset): Remove.
9932 (read_indirect_string, read_indirect_line_string)
9933 (dwarf_decode_macro_bytes): Update.
9934
a0194fa8
TT
99352020-03-26 Tom Tromey <tom@tromey.com>
9936
9937 * dwarf2/section.h (struct dwarf2_section_info)
9938 <overload_complaint>: Declare.
9939 (dwarf2_section_buffer_overflow_complaint): Don't declare.
9940 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
9941 Rename from dwarf2_section_buffer_overflow_complaint.
9942 * dwarf2/read.c (skip_one_die, partial_die_info::read)
9943 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
9944
3d27bbdb
TT
99452020-03-26 Tom Tromey <tom@tromey.com>
9946
9947 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
9948 Declare.
9949 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
9950 Move from read.c.
9951 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
9952 to section.c.
9953
9eac9650
TT
99542020-03-26 Tom Tromey <tom@tromey.com>
9955
9956 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
9957
bf80d710
TT
99582020-03-26 Tom Tromey <tom@tromey.com>
9959
9960 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
9961 "builder".
9962 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
9963 parameter.
9964 (dwarf_decode_macros): Update.
9965
0314b390
TT
99662020-03-26 Tom Tromey <tom@tromey.com>
9967
9968 * dwarf2/read.c (read_attribute_value): Update.
9969 (read_indirect_string_from_dwz): Move to dwz.c; change into
9970 method.
9971 (dwarf_decode_macro_bytes): Update.
9972 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
9973 * dwarf2/dwz.c: New file.
9974 * Makefile.in (COMMON_SFILES): Add dwz.c.
9975
9fda78b6
TT
99762020-03-26 Tom Tromey <tom@tromey.com>
9977
9978 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
9979 * dwarf2/read.c: Add include.
9980 * dwarf2/index-write.c: Add include.
9981 * dwarf2/index-cache.c: Add include.
9982 * dwarf2/dwz.h: New file.
9983
33aa3c10
TT
99842020-03-25 Tom Tromey <tom@tromey.com>
9985
9986 * compile/compile-object-load.c (get_out_value_type): Mention
9987 correct symbol name in error message.
9988
d503b685
HD
99892020-03-25 Hannes Domani <ssbssa@yahoo.de>
9990
9991 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
9992
7b1eff95
TV
99932020-03-25 Tom de Vries <tdevries@suse.de>
9994
9995 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
9996 * symmisc.c (dump_symtab_1): Print user and includes fields.
9997 (maintenance_info_symtabs): Same.
9998
dd895392
AB
99992020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
10000
10001 PR gdb/25534
10002 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
10003 (riscv_regcache_cooked_write): New function.
10004 (riscv_push_dummy_call): Use new function.
10005 (riscv_return_value): Likewise.
10006
5ab2fbf1
SM
100072020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
10008
10009 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
10010 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
10011 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
10012 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
10013 * infrun.c (follow_fork): Likewise.
10014 (follow_fork_inferior): Likewise.
10015 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
10016 * linux-nat.h (class linux_nat_target): Likewise.
10017 * remote.c (class remote_target) <follow_fork>: Likewise.
10018 (remote_target::follow_fork): Likewise.
10019 * target-delegates.c: Re-generate.
10020 * target.c (default_follow_fork): Likewise.
10021 (target_follow_fork): Likewise.
10022 * target.h (struct target_ops) <follow_fork>: Likewise.
10023 (target_follow_fork): Likewise.
10024
a64fafb5
TV
100252020-03-24 Tom de Vries <tdevries@suse.de>
10026
10027 * psymtab.c (maintenance_info_psymtabs): Print user field.
10028
fe26d3a3
TT
100292020-03-20 Tom Tromey <tromey@adacore.com>
10030
10031 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
10032 const.
10033 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
10034 const.
10035
c884cc46
SM
100362020-03-20 Simon Marchi <simon.marchi@efficios.com>
10037
10038 * ptrace.m4: Don't check for ptrace declaration.
10039 * config.in: Re-generate.
10040 * configure: Re-generate.
10041 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
10042 not defined.
10043
1ff700c2
KR
100442020-03-20 Kamil Rytarowski <n54@gmx.com>
10045
10046 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
10047 `PTRACE_TYPE_RET'.
10048 * i386-bsd-nat.c (gdb_ptrace): Likewise.
10049 * sparc-nat.c (gdb_ptrace): Likewise.
10050 * x86-bsd-nat.c (gdb_ptrace): Likewise.
10051
f7d4f0b1
TT
100522020-03-20 Tom Tromey <tromey@adacore.com>
10053
10054 * c-exp.y (lex_one_token): Fix assert.
10055
f67210ff
TT
100562020-03-20 Tom Tromey <tromey@adacore.com>
10057
10058 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
10059 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
10060 strncpy call.
10061
1773be9e
TT
100622020-03-20 Tom Tromey <tromey@adacore.com>
10063
10064 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
10065
70304be9
TT
100662020-03-20 Tom Tromey <tromey@adacore.com>
10067
10068 * ada-valprint.c (print_variant_part): Remove parameters; switch
10069 to value-based API.
10070 (print_field_values): Likewise.
10071 (ada_val_print_struct_union): Likewise.
10072 (ada_value_print_1): Update.
10073
9faa006d
KR
100742020-03-20 Kamil Rytarowski <n54@gmx.com>
10075
10076 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
10077 nbsd_nat_target instead of inf_ptrace_target.
10078 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
10079 nbsd_nat_target.
10080
4a90f062
KR
100812020-03-20 Kamil Rytarowski <n54@gmx.com>
10082
10083 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
10084 it to the ptrace call.
10085 * (store_registers): Likewise.
10086
100872020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
10088
10089 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
10090 it to the ptrace call.
10091 * (store_registers): Likewise.
10092
2d07da27
LM
100932020-03-19 Luis Machado <luis.machado@linaro.org>
10094
10095 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
10096 valid, fetch vg value from ptrace.
10097
f09db380
KR
100982020-03-19 Kamil Rytarowski <n54@gmx.com>
10099 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
10100 * inf-ptrace.c: Likewise.
10101 * (gdb_ptrace): Add.
10102 * (inf_ptrace_target::resume): Update.
10103 * (inf_ptrace_target::xfer_partial): Likewise.
10104 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
10105 * (inf_ptrace_peek_poke): Update.
10106
fcc7376e
KR
101072020-03-19 Kamil Rytarowski <n54@gmx.com>
10108
10109 * x86-bsd-nat.c (gdb_ptrace): New.
10110 * (x86bsd_dr_set): Add new argument `ptid'.
10111 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
10112 x86bsd_dr_set_addr): Update.
10113
cada5fc9
AB
101142020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
10115
10116 * remote.c (remote_target::process_stop_reply): Handle events for
10117 all threads differently.
10118
19a2740f
AB
101192020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
10120
10121 * completer.c (completion_tracker::remove_completion): Define new
10122 function.
10123 * completer.h (completion_tracker::remove_completion): Declare new
10124 function.
10125 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
10126 when adding a C++ function symbol.
10127
724fd9ba
AB
101282020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
10129
10130 * completer.c (completion_tracker::completion_hash_entry): Define
10131 new class.
10132 (advance_to_filename_complete_word_point): Call
10133 recompute_lowest_common_denominator.
10134 (completion_tracker::completion_tracker): Call discard_completions
10135 to setup the hash table.
10136 (completion_tracker::discard_completions): Allow for being called
10137 from the constructor, pass new equal function, and element deleter
10138 when constructing the hash table. Initialise new class member
10139 variables.
10140 (completion_tracker::maybe_add_completion): Remove use of
10141 m_entries_vec, and store more information into m_entries_hash.
10142 (completion_tracker::recompute_lcd_visitor): New function, most
10143 content taken from...
10144 (completion_tracker::recompute_lowest_common_denominator):
10145 ...here, this now just visits each item in the hash calling the
10146 above visitor.
10147 (completion_tracker::build_completion_result): Remove use of
10148 m_entries_vec, call recompute_lowest_common_denominator.
10149 * completer.h (completion_tracker::have_completions): Remove use
10150 of m_entries_vec.
10151 (completion_tracker::completion_hash_entry): Declare new class.
10152 (completion_tracker::recompute_lowest_common_denominator): Change
10153 function signature.
10154 (completion_tracker::recompute_lcd_visitor): Declare new function.
10155 (completion_tracker::m_entries_vec): Delete.
10156 (completion_tracker::m_entries_hash): Initialize to NULL.
10157 (completion_tracker::m_lowest_common_denominator_valid): New
10158 member variable.
10159 (completion_tracker::m_lowest_common_denominator_max_length): New
10160 member variable.
10161
5a82b8a1
KR
101622020-03-17 Kamil Rytarowski <n54@gmx.com>
10163
10164 * regformats/regdef.h: Put reg in gdb namespace.
10165
fb516a69
KR
101662020-03-17 Kamil Rytarowski <n54@gmx.com>
10167
10168 * i386-bsd-nat.c (gdb_ptrace): New.
10169 * (i386bsd_fetch_inferior_registers,
10170 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
10171 * (i386bsd_fetch_inferior_registers,
10172 i386bsd_store_inferior_registers) Use gdb_ptrace.
10173
1c0aa1fb
KR
101742020-03-17 Kamil Rytarowski <n54@gmx.com>
10175
10176 * amd64-bsd-nat.c (gdb_ptrace): New.
10177 * (amd64bsd_fetch_inferior_registers,
10178 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
10179 * (amd64bsd_fetch_inferior_registers,
10180 amd64bsd_store_inferior_registers) Use gdb_ptrace.
10181
5ccd2fb7
KR
101822020-03-17 Kamil Rytarowski <n54@gmx.com>
10183
10184 * user-regs.c (user_reg::read): Rename to...
10185 (user_reg::xread): ...this.
10186 * (append_user_reg): Rename argument `read' to `xread'.
10187 * (user_reg_add_builtin): Likewise.
10188 * (user_reg_add): Likewise.
10189 * (value_of_user_reg): Likewise.
10190
2108a63a
KR
101912020-03-17 Kamil Rytarowski <n54@gmx.com>
10192
10193 * sparc-nat.c (gdb_ptrace): New.
10194 * sparc-nat.c (sparc_fetch_inferior_registers)
10195 (sparc_store_inferior_registers) Remove obsolete comment.
10196 * sparc-nat.c (sparc_fetch_inferior_registers)
10197 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
10198 * sparc-nat.c (sparc_fetch_inferior_registers)
10199 (sparc_store_inferior_registers) Use gdb_ptrace.
10200
a225c9a8
KR
102012020-03-17 Kamil Rytarowski <n54@gmx.com>
10202
10203 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
10204 it to the ptrace call.
10205 * sh-nbsd-nat.c (store_registers): Likewise.
10206
98097623
KR
102072020-03-17 Kamil Rytarowski <n54@gmx.com>
10208
10209 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
10210 nbsd_nat_target instead of inf_ptrace_target.
10211 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
10212 nbsd_nat_target.
10213
9e38d619
KR
102142020-03-17 Kamil Rytarowski <n54@gmx.com>
10215
10216 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
10217
a2ecbe9f
KR
102182020-03-17 Kamil Rytarowski <n54@gmx.com>
10219
10220 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
10221 <sys/sysctl.h>.
10222 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
10223
58990295
TV
102242020-03-17 Tom de Vries <tdevries@suse.de>
10225
10226 PR gdb/23710
10227 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
10228 fields.
10229 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
10230 fields.
10231 (process_imported_unit_die): Skip import of c++ CUs.
10232
771dd3a8
TT
102332020-03-16 Tom Tromey <tom@tromey.com>
10234
10235 * p-valprint.c (pascal_object_print_value): Initialize
10236 base_value.
10237
817a7585
AK
102382020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
10239 Shahab Vahedi <shahab@synopsys.com>
10240
10241 * Makefile.in: Add arch/arc.o
10242 * configure.tgt: Likewise.
10243 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
10244 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 10245 (arc_read_description): New function to cache target descriptions.
817a7585
AK
10246 * arc-tdep.h (arc_read_description): Add proto type.
10247 * arch/arc.c: New file.
10248 * arch/arc.h: Likewise.
10249 * features/Makefile: Replace old target descriptions with new.
10250 * features/arc-arcompact.c: Remove.
10251 * features/arc-arcompact.xml: Likewise.
10252 * features/arc-v2.c: Likewise
10253 * features/arc-v2.xml: Likewise
10254 * features/arc/aux-arcompact.xml: New file.
10255 * features/arc/aux-v2.xml: Likewise.
10256 * features/arc/core-arcompact.xml: Likewise.
10257 * features/arc/core-v2.xml: Likewise.
10258 * features/arc/aux-arcompact.c: Generate.
10259 * features/arc/aux-v2.c: Likewise.
10260 * features/arc/core-arcompact.c: Likewise.
10261 * features/arc/core-v2.c: Likewise.
10262 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
10263
67430cd0
TT
102642020-03-16 Tom Tromey <tromey@adacore.com>
10265
10266 PR gdb/25663:
10267 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
10268 putting value into bcache.
10269
30efb6c7
SM
102702020-03-16 Simon Marchi <simon.marchi@efficios.com>
10271
10272 PR gdb/21500
10273 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
10274 to...
10275 (amd64_windows_init_abi_common): ... this. Don't set size of
10276 long type.
10277 (amd64_windows_init_abi): New function.
10278 (amd64_cygwin_init_abi): New function.
10279 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
10280 the Cygwin OS ABI.
10281 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
10282 comment.
10283
8db52437
SM
102842020-03-16 Simon Marchi <simon.marchi@efficios.com>
10285
10286 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
10287 * windows-tdep.c (CYGWIN_DLL_NAME): New.
10288 (pe_import_directory_entry): New struct type.
10289 (is_linked_with_cygwin_dll): New function.
10290 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
10291 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
10292 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
10293
5982a56a
SM
102942020-03-16 Simon Marchi <simon.marchi@efficios.com>
10295
10296 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
10297 i386_cygwin_core_osabi_sniffer.
10298
7a1998df
SM
102992020-03-16 Simon Marchi <simon.marchi@efficios.com>
10300
10301 * i386-cygwin-tdep.c: Rename to...
10302 * i386-windows-tdep.c: ... this.
10303 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
10304 i386-windows-tdep.c.
10305 * configure.tgt: Likewise.
10306
053205cc
SM
103072020-03-16 Simon Marchi <simon.marchi@efficios.com>
10308
10309 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
10310 * osabi.c (gdb_osabi_names): Add "Windows".
10311 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
10312 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
10313 (i386_cygwin_core_osabi_sniffer): New function, extracted from
10314 i386_cygwin_osabi_sniffer.
10315 (_initialize_i386_cygwin_tdep): Register OS ABI
10316 GDB_OSABI_WINDOWS for i386.
10317 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
10318 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
10319 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
10320 for x86-64.
10321 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
10322 when the target matches '*-*-mingw*'.
10323
fe4b2ee6
SM
103242020-03-16 Simon Marchi <simon.marchi@efficios.com>
10325
10326 * defs.h (enum gdb_osabi): Move to...
10327 * osabi.h (enum gdb_osabi): ... here.
10328 * gdbarch.sh: Include osabi.h in gdbarch.h.
10329 * gdbarch.h: Re-generate.
10330
cb9b645d
SM
103312020-03-16 Simon Marchi <simon.marchi@efficios.com>
10332
10333 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
10334 function.
10335 (_initialize_amd64_windows_tdep): Register osabi sniffer.
10336
3293bbaf
TT
103372020-03-14 Tom Tromey <tom@tromey.com>
10338
10339 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
10340 for C++.
10341 (c_type_print_modifier): Likewise. Add "language" parameter.
10342 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
10343 (c_type_print_base_1): Update.
10344 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
10345 constants.
10346 * type-stack.c (type_stack::insert): Handle tp_atomic and
10347 tp_restrict.
10348 (type_stack::follow_type_instance_flags): Likewise.
10349 (type_stack::follow_types): Likewise. Merge type-following code.
10350 * c-exp.y (RESTRICT, ATOMIC): New tokens.
10351 (space_identifier, cv_with_space_id)
10352 (const_or_volatile_or_space_identifier_noopt)
10353 (const_or_volatile_or_space_identifier): Remove.
10354 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
10355 rules.
10356 (ptr_operator, typebase): Update.
10357 (enum token_flag) <FLAG_C>: New constant.
10358 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
10359 "_Atomic".
10360 (lex_one_token): Handle FLAG_C.
10361
154151a6
KR
103622020-03-14 Kamil Rytarowski <n54@gmx.com>
10363
10364 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
10365 it to the ptrace call.
10366 * m68k-bsd-nat.c (store_registers): Likewise.
10367
bc107784
KR
103682020-03-14 Kamil Rytarowski <n54@gmx.com>
10369
10370 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
10371 gdb_byte *.
10372 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
10373 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
10374 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
10375
01a80117
KR
103762020-03-14 Kamil Rytarowski <n54@gmx.com>
10377
10378 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
10379 nbsd_nat_target instead of inf_ptrace_target.
10380 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
10381 nbsd_nat_target.
10382
f90280ca
KR
103832020-03-14 Kamil Rytarowski <n54@gmx.com>
10384
10385 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
10386 register_t.
10387
6def66f1
KR
103882020-03-14 Kamil Rytarowski <n54@gmx.com>
10389
10390 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
10391 it to the ptrace call.
10392 * alpha-bsd-nat.c (store_registers): Likewise.
10393
66eaca97
KR
103942020-03-14 Kamil Rytarowski <n54@gmx.com>
10395
10396 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
10397 includes.
10398 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
10399 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
10400 fill_fpregset): Likewise.
10401
4fed520b
KR
104022020-03-14 Kamil Rytarowski <n54@gmx.com>
10403
10404 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
10405 nbsd_nat_target instead of inf_ptrace_target.
10406 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
10407 nbsd_nat_target.
10408
2190cf06
KR
104092020-03-14 Kamil Rytarowski <n54@gmx.com>
10410
10411 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
10412 register_t.
10413
75c56d3d
KR
104142020-03-14 Kamil Rytarowski <n54@gmx.com>
10415
10416 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
10417 it to the ptrace call.
10418 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
10419 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
10420 * arm-nbsd-nat.c (store_register): Likewise.
10421 * arm-nbsd-nat.c (store_regs): Likewise.
10422 * arm-nbsd-nat.c (store_fp_register): Likewise.
10423 * arm-nbsd-nat.c (store_fp_regs): Likewise.
10424
6018d381
KR
104252020-03-14 Kamil Rytarowski <n54@gmx.com>
10426
10427 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
10428 nbsd_nat_target instead of inf_ptrace_target.
10429 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
10430 nbsd_nat_target.
10431
013f99f0
KR
104322020-03-14 Kamil Rytarowski <n54@gmx.com>
10433
10434 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
10435 it to the ptrace call.
10436 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
10437
12753073
KR
104382020-03-14 Kamil Rytarowski <n54@gmx.com>
10439
6227b330
KR
10440 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
10441 it to the ptrace call.
10442 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
10443
104442020-03-14 Kamil Rytarowski <n54@gmx.com>
10445
10446 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
10447 gdb_byte *.
12753073
KR
10448 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
10449
d5be5fa4
KR
104502020-03-14 Kamil Rytarowski <n54@gmx.com>
10451
10452 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
10453 instead of inf_ptrace_target.
10454 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
10455 nbsd_nat_target.
10456
8110f842
KR
104572020-03-14 Kamil Rytarowski <n54@gmx.com>
10458
10459 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10460 register_t.
10461
52feded7
KR
104622020-03-14 Kamil Rytarowski <n54@gmx.com>
10463
10464 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10465 register_t.
10466
25567eee
KR
104672020-03-14 Kamil Rytarowski <n54@gmx.com>
10468
10469 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
10470 register_t.
10471
426a9c18
TT
104722020-03-13 Tom Tromey <tom@tromey.com>
10473
10474 * value.h (val_print): Don't declare.
10475 * valprint.h (val_print_array_elements)
10476 (val_print_scalar_formatted, generic_val_print): Don't declare.
10477 * valprint.c (generic_val_print_array): Take a struct value.
10478 (generic_val_print_ptr, generic_val_print_memberptr)
10479 (generic_val_print_bool, generic_val_print_int)
10480 (generic_val_print_char, generic_val_print_complex)
10481 (generic_val_print): Remove.
10482 (generic_value_print): Update.
10483 (do_val_print): Remove unused parameters. Don't call
10484 la_val_print.
10485 (val_print): Remove.
10486 (common_val_print): Update. Don't call value_check_printable.
10487 (val_print_scalar_formatted, val_print_array_elements): Remove.
10488 * rust-lang.c (rust_val_print): Remove.
10489 (rust_language_defn): Update.
10490 * p-valprint.c (pascal_val_print): Remove.
10491 (pascal_value_print_inner): Update.
10492 (pascal_object_print_val_fields, pascal_object_print_val):
10493 Remove.
10494 (pascal_object_print_static_field): Update.
10495 * p-lang.h (pascal_val_print): Don't declare.
10496 * p-lang.c (pascal_language_defn): Update.
10497 * opencl-lang.c (opencl_language_defn): Update.
10498 * objc-lang.c (objc_language_defn): Update.
10499 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
10500 * m2-lang.h (m2_val_print): Don't declare.
10501 * m2-lang.c (m2_language_defn): Update.
10502 * language.h (struct language_defn) <la_val_print>: Remove.
10503 * language.c (unk_lang_value_print_inner): Rename. Change
10504 argument types.
10505 (unknown_language_defn, auto_language_defn): Update.
10506 * go-valprint.c (go_val_print): Remove.
10507 * go-lang.h (go_val_print): Don't declare.
10508 * go-lang.c (go_language_defn): Update.
10509 * f-valprint.c (f_val_print): Remove.
10510 * f-lang.h (f_value_print): Don't declare.
10511 * f-lang.c (f_language_defn): Update.
10512 * d-valprint.c (d_val_print): Remove.
10513 * d-lang.h (d_value_print): Don't declare.
10514 * d-lang.c (d_language_defn): Update.
10515 * cp-valprint.c (cp_print_value_fields)
10516 (cp_print_value_fields_rtti, cp_print_value): Remove.
10517 (cp_print_static_field): Update.
10518 * c-valprint.c (c_val_print_array, c_val_print_ptr)
10519 (c_val_print_struct, c_val_print_union, c_val_print_int)
10520 (c_val_print_memberptr, c_val_print): Remove.
10521 * c-lang.h (c_val_print_array, cp_print_value_fields)
10522 (cp_print_value_fields_rtti): Don't declare.
10523 * c-lang.c (c_language_defn, cplus_language_defn)
10524 (asm_language_defn, minimal_language_defn): Update.
10525 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
10526 (ada_val_print_enum): Take a struct value.
10527 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
10528 (ada_val_print): Remove.
10529 (ada_value_print_1): Update.
10530 (printable_val_type): Remove.
10531 * ada-lang.h (ada_val_print): Don't declare.
10532 * ada-lang.c (ada_language_defn): Update.
10533
42331a1e
TT
105342020-03-13 Tom Tromey <tom@tromey.com>
10535
10536 * valprint.c (do_val_print): Update.
10537 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
10538 a struct value.
10539 (value_to_value_object_no_release): Declare.
10540 * python/py-value.c (value_to_value_object_no_release): New
10541 function.
10542 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
10543 struct value.
10544 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
10545 function.
10546 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
10547 a struct value.
10548 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
10549 Declare.
10550 (gdbscm_apply_val_pretty_printer): Take a struct value.
10551 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
10552 value.
10553 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
10554 value.
10555 * extension-priv.h (struct extension_language_ops)
10556 <apply_val_pretty_printer>: Take a struct value.
10557 * cp-valprint.c (cp_print_value): Create a struct value.
10558 (cp_print_value): Update.
10559
3a916a97
TT
105602020-03-13 Tom Tromey <tom@tromey.com>
10561
10562 * ada-valprint.c (print_field_values): Call common_val_print.
10563
b59eac37
TT
105642020-03-13 Tom Tromey <tom@tromey.com>
10565
10566 * ada-valprint.c (val_print_packed_array_elements): Remove
10567 bitoffset and val parameters. Call common_val_print.
10568 (ada_val_print_string): Remove offset, address, and original_value
10569 parameters.
10570 (ada_val_print_array): Update.
10571 (ada_value_print_array): New function.
10572 (ada_value_print_1): Call it.
10573
03371129
TT
105742020-03-13 Tom Tromey <tom@tromey.com>
10575
10576 * ada-valprint.c (ada_value_print): Use common_val_print.
10577
2e088f8b
TT
105782020-03-13 Tom Tromey <tom@tromey.com>
10579
10580 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
10581
39ef85a8
TT
105822020-03-13 Tom Tromey <tom@tromey.com>
10583
10584 * ada-valprint.c (ada_value_print_num): New function.
10585 (ada_value_print_1): Use it.
10586
b9fa6e07
TT
105872020-03-13 Tom Tromey <tom@tromey.com>
10588
10589 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
10590
416595d6
TT
105912020-03-13 Tom Tromey <tom@tromey.com>
10592
10593 * ada-valprint.c (ada_value_print_ptr): New function.
10594 (ada_value_print_1): Use it.
10595
5b5e15ec
TT
105962020-03-13 Tom Tromey <tom@tromey.com>
10597
10598 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
10599 call common_val_print.
10600 (ada_val_print_1): Update.
10601 (ada_value_print_1): New function.
10602 (ada_value_print_inner): Rewrite.
10603
fbf54e75
TT
106042020-03-13 Tom Tromey <tom@tromey.com>
10605
10606 * cp-valprint.c (cp_print_value_fields): Update.
10607 (cp_print_value): New function.
10608
64b653ca
TT
106092020-03-13 Tom Tromey <tom@tromey.com>
10610
10611 * m2-valprint.c (m2_value_print_inner): Use
10612 cp_print_value_fields.
10613 * cp-valprint.c (cp_print_value_fields): New function.
10614 * c-valprint.c (c_value_print_struct): New function.
10615 (c_value_print_inner): Use c_value_print_struct.
10616 * c-lang.h (cp_print_value_fields): Declare.
10617
6999f067
TT
106182020-03-13 Tom Tromey <tom@tromey.com>
10619
10620 * c-valprint.c (c_value_print_array): New function.
10621 (c_value_print_inner): Use it.
10622
ce80b8bd
TT
106232020-03-13 Tom Tromey <tom@tromey.com>
10624
10625 * c-valprint.c (c_value_print_memberptr): New function.
10626 (c_value_print_inner): Use it.
10627
2faac269
TT
106282020-03-13 Tom Tromey <tom@tromey.com>
10629
10630 * c-valprint.c (c_value_print_int): New function.
10631 (c_value_print_inner): Use it.
10632
da3e2c29
TT
106332020-03-13 Tom Tromey <tom@tromey.com>
10634
10635 * c-valprint.c (c_value_print_ptr): New function.
10636 (c_value_print_inner): Use it.
10637
50836231
TT
106382020-03-13 Tom Tromey <tom@tromey.com>
10639
10640 * c-valprint.c (c_value_print_inner): Rewrite.
10641
4f412b6e
TT
106422020-03-13 Tom Tromey <tom@tromey.com>
10643
10644 * valprint.c (generic_value_print_complex): New function.
10645 (generic_value_print): Use it.
10646
f5354008
TT
106472020-03-13 Tom Tromey <tom@tromey.com>
10648
10649 * valprint.c (generic_val_print_float): Don't call
10650 val_print_scalar_formatted.
10651 (generic_val_print, generic_value_print): Update.
10652
3eec3b05
TT
106532020-03-13 Tom Tromey <tom@tromey.com>
10654
10655 * valprint.c (generic_value_print_char): New function
10656 (generic_value_print): Use it.
10657
fdddfccb
TT
106582020-03-13 Tom Tromey <tom@tromey.com>
10659
10660 * valprint.c (generic_value_print_int): New function.
10661 (generic_value_print): Use it.
10662
6dde7521
TT
106632020-03-13 Tom Tromey <tom@tromey.com>
10664
10665 * valprint.c (generic_value_print_bool): New function.
10666 (generic_value_print): Use it.
10667
4112d2e6
TT
106682020-03-13 Tom Tromey <tom@tromey.com>
10669
10670 * valprint.c (generic_val_print_func): Simplify.
10671 (generic_val_print, generic_value_print): Update.
10672
65786af6
TT
106732020-03-13 Tom Tromey <tom@tromey.com>
10674
10675 * valprint.c (generic_val_print_flags): Remove.
10676 (generic_val_print, generic_value_print): Update.
10677 (val_print_type_code_flags): Add original_value parameter.
10678
40f3ce18
TT
106792020-03-13 Tom Tromey <tom@tromey.com>
10680
10681 * valprint.c (generic_val_print): Update.
10682 (generic_value_print): Update.
10683 * valprint.c (generic_val_print_enum): Don't call
10684 val_print_scalar_formatted.
10685
2a5b130b
TT
106862020-03-13 Tom Tromey <tom@tromey.com>
10687
10688 * valprint.c (generic_value_print): Call generic_value_print_ptr.
10689 * valprint.c (generic_value_print_ptr): New function.
10690
abc66ce9
TT
106912020-03-13 Tom Tromey <tom@tromey.com>
10692
10693 * valprint.c (generic_value_print): Rewrite.
10694
07a32858
TT
106952020-03-13 Tom Tromey <tom@tromey.com>
10696
10697 * p-valprint.c (pascal_object_print_value_fields)
10698 (pascal_object_print_value): New functions.
10699
64d64d3a
TT
107002020-03-13 Tom Tromey <tom@tromey.com>
10701
10702 * p-valprint.c (pascal_value_print_inner): Rewrite.
10703
6a95a1f5
TT
107042020-03-13 Tom Tromey <tom@tromey.com>
10705
10706 * f-valprint.c (f_value_print_innner): Rewrite.
10707
59fcdac6
TT
107082020-03-13 Tom Tromey <tom@tromey.com>
10709
10710 * m2-valprint.c (m2_print_unbounded_array): New overload.
10711 (m2_print_unbounded_array): Update.
10712 (m2_print_array_contents): Take a struct value.
10713 (m2_value_print_inner): Rewrite.
10714
d133c3e1
TT
107152020-03-13 Tom Tromey <tom@tromey.com>
10716
10717 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
10718 (d_value_print_inner): New function.
10719 * d-lang.h (d_value_print_inner): Declare.
10720 * d-lang.c (d_language_defn): Use d_value_print_inner.
10721
23b0f06b
TT
107222020-03-13 Tom Tromey <tom@tromey.com>
10723
10724 * go-valprint.c (go_value_print_inner): New function.
10725 * go-lang.h (go_value_print_inner): Declare.
10726 * go-lang.c (go_language_defn): Use go_value_print_inner.
10727
5f56f7cb
TT
107282020-03-13 Tom Tromey <tom@tromey.com>
10729
10730 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
10731 API.
10732 (rust_val_print): Rewrite.
10733 (rust_value_print_inner): New function, from rust_val_print.
10734 (rust_language_defn): Use rust_value_print_inner.
10735
26792ee0
TT
107362020-03-13 Tom Tromey <tom@tromey.com>
10737
10738 * ada-valprint.c (ada_value_print_inner): New function.
10739 * ada-lang.h (ada_value_print_inner): Declare.
10740 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
10741
24051bbe
TT
107422020-03-13 Tom Tromey <tom@tromey.com>
10743
10744 * f-valprint.c (f_value_print_innner): New function.
10745 * f-lang.h (f_value_print_innner): Declare.
10746 * f-lang.c (f_language_defn): Use f_value_print_innner.
10747
c0941be6
TT
107482020-03-13 Tom Tromey <tom@tromey.com>
10749
10750 * p-valprint.c (pascal_value_print_inner): New function.
10751 * p-lang.h (pascal_value_print_inner): Declare.
10752 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
10753
62c4663d
TT
107542020-03-13 Tom Tromey <tom@tromey.com>
10755
10756 * m2-valprint.c (m2_value_print_inner): New function.
10757 * m2-lang.h (m2_value_print_inner): Declare.
10758 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
10759
62182190
TT
107602020-03-13 Tom Tromey <tom@tromey.com>
10761
10762 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
10763 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
10764 * c-valprint.c (c_value_print_inner): New function.
10765 * c-lang.h (c_value_print_inner): Declare.
10766 * c-lang.c (c_language_defn, cplus_language_defn)
10767 (asm_language_defn, minimal_language_defn): Use
10768 c_value_print_inner.
10769
1e592a8a
TT
107702020-03-13 Tom Tromey <tom@tromey.com>
10771
10772 * p-valprint.c (pascal_object_print_value_fields): Now static.
10773 * p-lang.h (pascal_object_print_value_fields): Don't declare.
10774
7fe471e9
TT
107752020-03-13 Tom Tromey <tom@tromey.com>
10776
10777 * c-valprint.c (c_val_print_array): Simplify.
10778
d121c6ce
TT
107792020-03-13 Tom Tromey <tom@tromey.com>
10780
10781 * valprint.c (value_print_array_elements): New function.
10782 * valprint.h (value_print_array_elements): Declare.
10783
4dba70ee
TT
107842020-03-13 Tom Tromey <tom@tromey.com>
10785
10786 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
10787 * mips-tdep.c (mips_print_register): Use
10788 value_print_scalar_formatted.
10789
4f9ae810
TT
107902020-03-13 Tom Tromey <tom@tromey.com>
10791
10792 * valprint.h (value_print_scalar_formatted): Declare.
10793 * valprint.c (value_print_scalar_formatted): New function.
10794
156bfec9
TT
107952020-03-13 Tom Tromey <tom@tromey.com>
10796
10797 * valprint.h (generic_value_print): Declare.
10798 * valprint.c (generic_value_print): New function.
10799
2b4e573d
TT
108002020-03-13 Tom Tromey <tom@tromey.com>
10801
10802 * valprint.c (do_val_print): Call la_value_print_inner, if
10803 available.
10804 * rust-lang.c (rust_language_defn): Update.
10805 * p-lang.c (pascal_language_defn): Update.
10806 * opencl-lang.c (opencl_language_defn): Update.
10807 * objc-lang.c (objc_language_defn): Update.
10808 * m2-lang.c (m2_language_defn): Update.
10809 * language.h (struct language_defn) <la_value_print_inner>: New
10810 member.
10811 * language.c (unknown_language_defn, auto_language_defn): Update.
10812 * go-lang.c (go_language_defn): Update.
10813 * f-lang.c (f_language_defn): Update.
10814 * d-lang.c (d_language_defn): Update.
10815 * c-lang.c (c_language_defn, cplus_language_defn)
10816 (asm_language_defn, minimal_language_defn): Update.
10817 * ada-lang.c (ada_language_defn): Update.
10818
a1f6a07c
TT
108192020-03-13 Tom Tromey <tom@tromey.com>
10820
10821 * c-valprint.c (c_value_print): Use common_val_print.
10822
410cf315
TT
108232020-03-13 Tom Tromey <tom@tromey.com>
10824
10825 * cp-valprint.c (cp_print_static_field): Use common_val_print.
10826
72a45c93
TT
108272020-03-13 Tom Tromey <tom@tromey.com>
10828
10829 * f-valprint.c (f77_print_array_1, f_val_print): Use
10830 common_val_print.
10831
040f66bd
TT
108322020-03-13 Tom Tromey <tom@tromey.com>
10833
10834 * riscv-tdep.c (riscv_print_one_register_info): Use
10835 common_val_print.
10836
a6e05a6c
TT
108372020-03-13 Tom Tromey <tom@tromey.com>
10838
10839 * mi/mi-main.c (output_register): Use common_val_print.
10840
3444c526
TT
108412020-03-13 Tom Tromey <tom@tromey.com>
10842
10843 * infcmd.c (default_print_one_register_info): Use
10844 common_val_print.
10845
c2a44efe
TT
108462020-03-13 Tom Tromey <tom@tromey.com>
10847
10848 * valprint.h (common_val_print_checked): Declare.
10849 * valprint.c (common_val_print_checked): New function.
10850 * stack.c (print_frame_arg): Use common_val_print_checked.
10851
b0c26e99
TT
108522020-03-13 Tom Tromey <tom@tromey.com>
10853
10854 * valprint.c (do_val_print): New function, from val_print.
10855 (val_print): Use do_val_print.
10856 (common_val_print): Use do_val_print.
10857
ce3acbe9
TT
108582020-03-13 Tom Tromey <tom@tromey.com>
10859
10860 * valprint.c (value_print): Use scoped_value_mark.
10861
96c7f873
TV
108622020-03-13 Tom de Vries <tdevries@suse.de>
10863
10864 PR symtab/25646
10865 * psymtab.c (partial_symtab::partial_symtab): Don't set
10866 globals_offset and statics_offset. Push element onto
10867 current_global_psymbols and current_static_psymbols stacks.
10868 (concat): New function.
10869 (end_psymtab_common): Set globals_offset and statics_offset. Pop
10870 element from current_global_psymbols and current_static_psymbols
10871 stacks. Concat popped elements to global_psymbols and
10872 static_symbols.
10873 (add_psymbol_to_list): Use current_global_psymbols and
10874 current_static_psymbols stacks.
10875 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
10876 current_static_psymbols fields.
10877
6ba0a321
CB
108782020-03-12 Christian Biesinger <cbiesinger@google.com>
10879
10880 * corelow.c (sniff_core_bfd): Remove.
10881 (class core_target) <m_core_vec>: Remove.
10882 (core_target::core_target): Update.
10883 (core_file_fns): Remove.
10884 (deprecated_add_core_fns): Remove.
10885 (default_core_sniffer): Remove.
10886 (sniff_core_bfd): Remove.
10887 (default_check_format): Remove.
10888 (gdb_check_format): Remove.
10889 (core_target_open): Update.
10890 (core_target::get_core_register_section): Update.
10891 (get_core_registers_cb): Update.
10892 (core_target::fetch_registers): Update.
10893 * gdbcore.h (struct core_fns): Remove.
10894 (deprecated_add_core_fns): Remove.
10895 (default_core_sniffer): Remove.
10896 (default_check_format): Remove.
10897
227031b2
TT
108982020-03-12 Tom Tromey <tom@tromey.com>
10899
10900 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
10901 CORE_ADDR.
10902 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
10903
53807e9f
TT
109042020-03-12 Tom Tromey <tom@tromey.com>
10905
10906 * remote.c (remote_target::download_tracepoint)
10907 (remote_target::enable_tracepoint)
10908 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
10909 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
10910 sprintf_vma.
10911
64f25102
TT
109122020-03-12 Tom Tromey <tom@tromey.com>
10913
10914 * symfile-mem.c: Update CORE_ADDR size assert.
10915
272cd5a3
SM
109162020-03-12 Simon Marchi <simon.marchi@efficios.com>
10917
10918 * selftest.m4: Move to gdbsupport/.
10919 * acinclude.m4: Update path to selftest.m4.
10920
74cd3f9d
SM
109212020-03-12 Simon Marchi <simon.marchi@efficios.com>
10922
10923 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
10924 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
10925 gdbarch-selfselftests.c and selftest-arch.c.
10926 (SUBDIR_UNITTESTS_OBS): Rename to...
10927 (SELFTESTS_OBS): ... this.
10928 (COMMON_SFILES): Remove disasm-selftests.c and
10929 gdbarch-selftests.c.
10930 * configure.ac: Don't add selftest-arch.{c,o} to
10931 CONFIG_{SRCS,OBS}.
10932 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
10933 preprocessor conditions.
10934
db6878ac
SM
109352020-03-12 Simon Marchi <simon.marchi@efficios.com>
10936
10937 * configure.ac: Don't source bfd/development.sh.
10938 * selftest.m4: Modify comment.
10939 * configure: Re-generate.
10940
4d696a5c
SM
109412020-03-12 Simon Marchi <simon.marchi@efficios.com>
10942
10943 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
10944 not "true" or "false".
10945 * configure: Re-generate.
10946
8dd8e1c7
CB
109472020-03-12 Christian Biesinger <cbiesinger@google.com>
10948
10949 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
10950 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
10951 renamed to arm_nbsd_supply_gregset.
10952 (fetch_register): Update to call arm_nbsd_supply_gregset.
10953 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
10954 (arm_netbsd_nat_target::fetch_registers): Update.
10955 (fetch_elfcore_registers): Removed.
10956 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
10957 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
10958 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
10959 not require NetBSD system headers.
10960 (arm_nbsd_regset): New struct.
10961 (arm_nbsd_iterate_over_regset_sections): New function.
10962 (arm_netbsd_init_abi_common): Updated to call
10963 set_gdbarch_iterate_over_regset_sections.
10964 * arm-nbsd-tdep.h: New file.
10965
dd69bf7a
KB
109662020-03-11 Kevin Buettner <kevinb@redhat.com>
10967
10968 * symtab.c (find_pc_sect_line): Add check which prevents infinite
10969 recursion.
10970
a0761e34
SM
109712020-03-11 Simon Marchi <simon.marchi@efficios.com>
10972
10973 * configure: Re-generate.
10974
e7a82140
TT
109752020-03-11 Tom Tromey <tromey@adacore.com>
10976
10977 * ada-typeprint.c (print_choices): Fix comment.
10978
dcc050c8
AB
109792020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
10980
10981 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
10982 previous item in the list, when the list has no items.
10983
1c33af77
TV
109842020-03-11 Tom de Vries <tdevries@suse.de>
10985
10986 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
10987 PROP_LOCLIST handling code.
10988
8c95582d
AB
109892020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
10990
10991 * buildsym-legacy.c (record_line): Pass extra parameter to
10992 record_line.
10993 * buildsym.c (buildsym_compunit::record_line): Take an extra
10994 parameter, reduce duplication in the line table, and record the
10995 is_stmt flag in the line table.
10996 * buildsym.h (buildsym_compunit::record_line): Add extra
10997 parameter.
10998 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
10999 non-statement lines.
11000 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
11001 this to the symtab builder.
11002 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
11003 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
11004 through to dwarf_record_line_1.
11005 * infrun.c (process_event_stop_test): When stepping, don't stop at
11006 a non-statement instruction, and only refresh the step info when
11007 we land in the middle of a line's range. Also add an extra
11008 comment.
11009 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
11010 field.
11011 * record-btrace.c (btrace_find_line_range): Only record lines
11012 marked as is-statement.
11013 * stack.c (frame_show_address): Show the frame address if we are
11014 in a non-statement sal.
11015 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
11016 (maintenance_print_one_line_table): Print a header for the is_stmt
11017 column, and include is_stmt information in the output.
11018 * symtab.c (find_pc_sect_line): Find lines marked as statements in
11019 preference to non-statements.
11020 (find_pcs_for_symtab_line): Prefer is-statement entries.
11021 (find_line_common): Likewise.
11022 * symtab.h (struct linetable_entry): Add is_stmt field.
11023 (struct symtab_and_line): Likewise.
11024 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
11025 arranging the line table.
11026
e4003a34
TV
110272020-03-07 Tom de Vries <tdevries@suse.de>
11028
11029 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
11030 DIE.
11031
e8932576
TT
110322020-03-07 Tom Tromey <tom@tromey.com>
11033
11034 * valops.c (value_literal_complex): Remove obsolete comment.
11035 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
11036 comment.
11037
29734269
SM
110382020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11039
11040 * infrun.h: Forward-declare thread_info.
11041 (set_step_info): Add thread_info parameter, add doc.
11042 * infrun.c (set_step_info): Add thread_info parameter, move doc
11043 to header.
11044 * infrun.c (process_event_stop_test): Pass thread to
11045 set_step_info call.
11046 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
11047 set_step_info.
11048 (prepare_one_step): Add thread_info parameter, pass it to
11049 set_step_frame and prepare_one_step (recursive) call.
11050 (step_1): Pass thread to prepare_one_step call.
11051 (step_command_fsm::should_stop): Pass thread to
11052 prepare_one_step.
11053 (until_next_fsm): Pass thread to set_step_frame call.
11054 (finish_command): Pass thread to set_step_info call.
11055
b7d64b29
HD
110562020-03-06 Hannes Domani <ssbssa@yahoo.de>
11057
11058 * windows-tdep.c (windows_solib_create_inferior_hook):
11059 Check if inferior is running.
11060
09f2921c
TV
110612020-03-06 Tom de Vries <tdevries@suse.de>
11062
11063 * NEWS: Fix "the the".
11064 * ctfread.c: Same.
11065
fd760e79
TV
110662020-03-06 Tom de Vries <tdevries@suse.de>
11067
11068 * psymtab.c (psymtab_to_symtab): Don't print "done.".
11069
20ea4a60
AB
110702020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11071
11072 * .dir-locals.el: Add a comment referencing the other copies of
11073 this file.
11074
0afbabf0
JB
110752020-03-05 John Baldwin <jhb@FreeBSD.org>
11076
11077 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
11078 psargs.
11079
842806cb
TBA
110802020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11081
11082 * .gitattributes: New file.
11083
be1e3d3e
TT
110842020-03-04 Tom Tromey <tom@tromey.com>
11085
11086 * symmisc.c (print_symbol_bcache_statistics)
11087 (print_objfile_statistics): Update.
11088 * symfile.c (allocate_symtab): Use intern.
11089 * psymtab.c (partial_symtab::partial_symtab): Use intern.
11090 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
11091 macro_cache>: Remove.
11092 <string_cache>: New member.
11093 (struct objfile) <intern>: New methods.
11094 * elfread.c (elf_symtab_read): Use intern.
11095 * dwarf2/read.c (fixup_go_packaging): Intern package name.
11096 (dwarf2_compute_name, dwarf2_physname)
11097 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
11098 names.
11099 (guess_partial_die_structure_name): Update.
11100 (partial_die_info::fixup): Intern name.
11101 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
11102 name.
11103 (dwarf2_name): Intern name. Update.
11104 * buildsym.c (buildsym_compunit::get_macro_table): Use
11105 string_cache.
11106
4e7625fd
TT
111072020-03-04 Tom Tromey <tom@tromey.com>
11108
11109 * jit.c (bfd_open_from_target_memory): Make "target" const.
11110 * corefile.c (gnutarget): Now const.
11111 * gdbcore.h (gnutarget): Now const.
11112
46f9f931
HD
111132020-03-04 Hannes Domani <ssbssa@yahoo.de>
11114
11115 * NEWS: Mention support for WOW64 processes.
11116 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
11117 (amd64_windows_segment_register_p): Remove static.
11118 (_initialize_amd64_windows_nat): Update.
11119 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
11120 * i386-windows-nat.c (context_offset): Update.
11121 (i386_mappings): Rename and remove static.
11122 (i386_windows_segment_register_p): Remove static.
11123 (_initialize_i386_windows_nat): Update.
11124 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
11125 (STATUS_WX86_SINGLE_STEP): New macro.
11126 (EnumProcessModulesEx): New macro.
11127 (Wow64SuspendThread): New macro.
11128 (Wow64GetThreadContext): New macro.
11129 (Wow64SetThreadContext): New macro.
11130 (Wow64GetThreadSelectorEntry): New macro.
11131 (windows_set_context_register_offsets): Add static.
11132 (windows_set_segment_register_p): Likewise.
11133 (windows_add_thread): Adapt for WOW64 processes.
11134 (windows_fetch_one_register): Likewise.
11135 (windows_nat_target::fetch_registers): Likewise.
11136 (windows_store_one_register): Likewise.
11137 (display_selector): Likewise.
11138 (display_selectors): Likewise.
11139 (handle_exception): Likewise.
11140 (windows_continue): Likewise.
11141 (windows_nat_target::resume): Likewise.
11142 (windows_add_all_dlls): Likewise.
11143 (do_initial_windows_stuff): Likewise.
11144 (windows_nat_target::attach): Likewise.
11145 (windows_get_exec_module_filename): Likewise.
11146 (windows_nat_target::create_inferior): Likewise.
11147 (windows_xfer_siginfo): Likewise.
11148 (_initialize_loadable): Initialize Wow64SuspendThread,
11149 Wow64GetThreadContext, Wow64SetThreadContext,
11150 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
11151 * windows-nat.h (windows_set_context_register_offsets):
11152 Remove declaration.
11153 (windows_set_segment_register_p): Likewise.
11154 (i386_windows_segment_register_p): Add declaration.
11155 (amd64_windows_segment_register_p): Likewise.
11156
440cf44e
LM
111572020-03-04 Luis Machado <luis.machado@linaro.org>
11158
11159 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
11160 in "info registers" for AArch64/ARM.
11161
11162 The change caused "info registers" to not print GPR's.
11163
11164 gdb/ChangeLog:
11165
11166 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
11167
11168 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
11169 when reg->group is empty and reggroup is not.
11170
1009d92f
TT
111712020-03-03 Tom Tromey <tromey@adacore.com>
11172
11173 * dwarf2/frame.c (struct dwarf2_frame_cache)
11174 <checked_tailcall_bottom, entry_cfa_sp_offset,
11175 entry_cfa_sp_offset_p>: Remove members.
11176 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
11177 (dwarf2_frame_prev_register): Don't call
11178 dwarf2_tailcall_sniffer_first.
11179 (dwarf2_append_unwinders): Don't append tailcall unwinder.
11180 * frame-unwind.c (add_unwinder): New fuction.
11181 (frame_unwind_init): Use it. Add tailcall unwinder.
11182
5e5d66b6
AB
111832020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
11184 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11185
11186 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
11187 value should be printed as true.
11188
584cf46d
HD
111892020-03-03 Hannes Domani <ssbssa@yahoo.de>
11190
11191 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
11192 (windows_init_abi): Set and use windows_so_ops.
11193
7b973adc
SDJ
111942020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
11195
11196 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
11197 when verifying if dealing with a convenience variable.
11198
bb7b70ab
LM
111992020-03-03 Luis Machado <luis.machado@linaro.org>
11200
11201 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
11202
9822cb57
SM
112032020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11204
11205 * infrun.c (gdbarch_supports_displaced_stepping): New.
11206 (use_displaced_stepping): Break up conditions in smaller pieces.
11207 Use gdbarch_supports_displaced_stepping.
11208 (displaced_step_prepare_throw): Use
11209 gdbarch_supports_displaced_stepping.
11210
63e163f2
AB
112112020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
11212
11213 * NEWS: Mention new behaviour of the history filename.
11214 * top.c (write_history_p): Add comment.
11215 (show_write_history_p): Add header comment, give a different
11216 message when history writing is on, but the history filename is
11217 empty.
11218 (history_filename): Add comment.
11219 (history_filename_empty): New function.
11220 (show_history_filename): Add header comment, give a different
11221 message when the filename is empty.
11222 (init_history): Compare history_filename against nullptr, and only
11223 read history if the filename is not empty.
11224 (set_history_filename): Add header comment, and only make
11225 non-empty filenames absolute.
11226 (init_main): Make the filename argument to 'set history filename'
11227 optional.
11228
81b86b97
CB
112292020-03-02 Christian Biesinger <cbiesinger@google.com>
11230
11231 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
11232 (arm_supply_vfpregset): ...this, and update to use VFP registers.
11233 (fetch_fp_register): Update.
11234 (fetch_fp_regs): Update.
11235 (store_fp_register): Update.
11236 (store_fp_regs): Update.
11237 (arm_netbsd_nat_target::read_description): New function.
11238 (fetch_elfcore_registers): Update.
11239
24ed6739
AB
112402020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
11241
11242 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
11243 general_thread if the stop reply is missing a thread-id.
11244 (remote_target::process_stop_reply): Use the first non-exited
11245 thread if the target didn't pass a thread-id.
11246 * infrun.c (do_target_wait): Move call to
11247 switch_to_inferior_no_thread to ....
11248 (do_target_wait_1): ... here.
11249
a84bb2a0
JT
112502020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
11251
11252 * debuginfod-support.c: Include defs.h first.
11253
658dadf0
TV
112542020-02-28 Tom de Vries <tdevries@suse.de>
11255
11256 * symfile.c (set_initial_language): Use default language for lookup.
11257
4ebe4877
SM
112582020-02-28 Simon Marchi <simon.marchi@efficios.com>
11259
11260 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
11261 reader variable, pass `this` to read_cutu_die_from_dwo.
11262
e5da1139
AM
112632020-02-27 Aaron Merey <amerey@redhat.com>
11264
11265 * source.c (open_source_file): Check for nullptr when computing
11266 srcpath.
11267
317f7127
TT
112682020-02-27 Tom Tromey <tromey@adacore.com>
11269
11270 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
11271 member.
11272 (dwarf2_add_field): Don't update nfields.
11273 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
11274
3104d9ee
AB
112752020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11276
11277 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
11278 abs.
11279
b83470bf
TT
112802020-02-26 Tom Tromey <tom@tromey.com>
11281
11282 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
11283 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
11284 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
11285 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
11286 per_cu_data.
11287
edfe0a0c
TT
112882020-02-26 Tom Tromey <tom@tromey.com>
11289
11290 * dwarf2/index-write.c (psym_index_map): Change type.
11291 (add_address_entry_worker, write_one_signatured_type)
11292 (recursively_count_psymbols, recursively_write_psymbols)
11293 (class debug_names, psyms_seen_size, write_gdbindex)
11294 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
11295
0d79cdc4
AM
112962020-02-26 Aaron Merey <amerey@redhat.com>
11297
11298 * Makefile.in: Handle optional debuginfod support.
11299 * NEWS: Update.
11300 * README: Add --with-debuginfod summary.
11301 * config.in: Regenerate.
11302 * configure: Regenerate.
11303 * configure.ac: Handle optional debuginfod support.
11304 * debuginfod-support.c: debuginfod helper functions.
11305 * debuginfod-support.h: Ditto.
11306 * doc/gdb.texinfo: Add --with-debuginfod to configure options
11307 summary.
11308 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
11309 when a dwz file cannot be found.
11310 * elfread.c (elf_symfile_read): Query debuginfod servers when a
11311 debuginfo file cannot be found.
11312 * source.c (open_source_file): Query debuginfod servers when a
11313 source file cannot be found.
11314 * top.c (print_gdb_configuration): Include
11315 --{with,without}-debuginfod in the output.
11316
b65ce565
JG
113172020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
11318
11319 * thread.c (thr_try_catch_cmd): Print thread name.
11320
d4c9a4f8
SM
113212020-02-26 Simon Marchi <simon.marchi@efficios.com>
11322
11323 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
11324 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
11325 dwarf2_fetch_die_type_sect_off): Move to...
11326 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
11327 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
11328 dwarf2_fetch_die_type_sect_off): ... here.
11329 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
11330 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
11331 dwarf2_fetch_die_type_sect_off): Move doc to header file.
11332
0dce4280
TV
113332020-02-26 Tom de Vries <tdevries@suse.de>
11334
11335 PR gdb/25603
11336 * symfile.c (set_initial_language): Exit-early if
11337 language_mode == language_mode_manual.
11338
450a1bfc
SM
113392020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
11340
11341 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
11342 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
11343 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
11344
9e80cfa1
AB
113452020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
11346
11347 * gdbtypes.c (create_array_type_with_stride): Handle negative
11348 array strides.
11349 * valarith.c (value_subscripted_rvalue): Likewise.
11350
09624f1f
LM
113512020-02-25 Luis Machado <luis.machado@linaro.org>
11352
11353 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
11354
8cb5117c
SM
113552020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
11356
11357 * loc.h (dwarf2_get_die_type): Move to...
11358 * read.h (dwarf2_get_die_type): ... here.
11359 * read.c (dwarf2_get_die_type): Move doc to header.
11360
c325c44e
JB
113612020-02-25 Joel Brobecker <brobecker@adacore.com>
11362
11363 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
11364 'gnulib/Makefile.in' to the list.
11365
4ac93832
TT
113662020-02-24 Tom Tromey <tom@tromey.com>
11367
11368 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
11369 Remove.
11370 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
11371 XOBNEWVEC.
11372
197400e8
TT
113732020-02-24 Tom Tromey <tom@tromey.com>
11374
11375 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
11376 New method.
11377 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
11378 (dw2_do_instantiate_symtab, dw2_get_file_names)
11379 (build_type_psymtab_dependencies, load_full_type_unit): Update.
11380
76935768
TT
113812020-02-24 Tom Tromey <tom@tromey.com>
11382
11383 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
11384 make_scoped_restore.
11385 (dwarf2_psymtab::read_symtab): Don't clear
11386 reading_partial_symbols.
11387
a88ef40d
TV
113882020-02-24 Tom de Vries <tdevries@suse.de>
11389
11390 PR gdb/25592
11391 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
11392
c9af6521
TV
113932020-02-24 Tom de Vries <tdevries@suse.de>
11394
11395 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
11396 commands layout next/prev/regs.
11397
5707a07a
TT
113982020-02-22 Tom Tromey <tom@tromey.com>
11399
11400 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
11401 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
11402
3b0fb49e
TT
114032020-02-22 Tom Tromey <tom@tromey.com>
11404
11405 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
11406
283be8bf
TT
114072020-02-22 Tom Tromey <tom@tromey.com>
11408
11409 * tui/tui-win.c (_initialize_tui_win): Add usage text.
11410 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
11411 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
11412 * tui/tui.c (_initialize_tui): Add usage text.
11413
ca793b96
TT
114142020-02-22 Tom Tromey <tom@tromey.com>
11415
11416 * tui/tui-win.c (tui_set_focus_command)
11417 (tui_set_win_height_command): Use error_no_arg.
11418 (_initialize_tui_win): Update help text.
11419 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
11420
432b5c40
TT
114212020-02-22 Tom Tromey <tom@tromey.com>
11422
11423 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
11424 * tui/tui-disasm.h (struct tui_disasm_window)
11425 <display_start_addr>: Declare.
11426 * tui/tui-source.h (struct tui_source_window)
11427 <display_start_addr>: Declare.
11428 * tui/tui-winsource.h (struct tui_source_window_base)
11429 <show_source_line, display_start_addr>: New methods.
11430 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
11431 Rename and move to protected section.
11432 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
11433 (tui_source_window_base::do_erase_source_content): Update.
11434 (tui_source_window_base::show_source_line): Now a method.
11435 (tui_source_window_base::show_source_content)
11436 (tui_source_window_base::tui_source_window_base)
11437 (tui_source_window_base::rerender)
11438 (tui_source_window_base::refill)
11439 (tui_source_window_base::do_scroll_horizontal)
11440 (tui_source_window_base::set_is_exec_point_at)
11441 (tui_source_window_base::update_breakpoint_info)
11442 (tui_source_window_base::update_exec_info): Update.
11443 * tui/tui-source.c (tui_source_window::set_contents)
11444 (tui_source_window::showing_source_p)
11445 (tui_source_window::do_scroll_vertical)
11446 (tui_source_window::location_matches_p)
11447 (tui_source_window::line_is_displayed): Update.
11448 (tui_source_window::display_start_addr): New method.
11449 * tui/tui-disasm.c (tui_disasm_window::set_contents)
11450 (tui_disasm_window::do_scroll_vertical)
11451 (tui_disasm_window::location_matches_p): Update.
11452 (tui_disasm_window::display_start_addr): New method.
11453
01b1af32
TT
114542020-02-22 Tom Tromey <tom@tromey.com>
11455
11456 * NEWS: Add entry for gdb.register_window_type.
11457 * tui/tui-layout.h (window_factory): New typedef.
11458 (tui_register_window): Declare.
11459 * tui/tui-layout.c (saved_tui_windows): New global.
11460 (tui_apply_current_layout): Use it.
11461 (tui_register_window): New function.
11462 * python/python.c (do_start_initialization): Call
11463 gdbpy_initialize_tui.
11464 (python_GdbMethods): Add "register_window_type" function.
11465 * python/python-internal.h (gdbpy_register_tui_window)
11466 (gdbpy_initialize_tui): Declare.
11467 * python/py-tui.c: New file.
11468 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
11469
fc96d20b
TT
114702020-02-22 Tom Tromey <tom@tromey.com>
11471
11472 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
11473
935c78c0
TT
114742020-02-22 Tom Tromey <tom@tromey.com>
11475
11476 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
11477 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
11478 * tui/tui-data.c (tui_set_win_with_focus): Remove.
11479 (tui_set_win_focus_to): Move from tui-win.c.
11480
0240c8f1
TT
114812020-02-22 Tom Tromey <tom@tromey.com>
11482
11483 * tui/tui-layout.c (make_standard_window, get_locator_window): New
11484 functions.
11485 (known_window_types): New global.
11486 (tui_get_window_by_name): Reimplement.
11487 (initialize_known_windows): New function.
11488 (validate_window_name): Rewrite.
11489 (_initialize_tui_layout): Call initialize_known_windows.
11490
fdb01f0c
TT
114912020-02-22 Tom Tromey <tom@tromey.com>
11492
11493 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
11494 Remove constants.
11495 * tui/tui-winsource.h (struct tui_source_window_base)
11496 <tui_source_window_base>: Remove parameter.
11497 * tui/tui-winsource.c
11498 (tui_source_window_base::tui_source_window_base): Remove
11499 parameter.
11500 (tui_source_window_base::refill): Update.
11501 * tui/tui-stack.h (struct tui_locator_window)
11502 <tui_locator_window>: Update.
11503 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
11504 Default the constructor.
11505 * tui/tui-regs.h (struct tui_data_item_window)
11506 <tui_data_item_window>: Default the constructor.
11507 (struct tui_data_window) <tui_data_window>: Likewise.
11508 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
11509 Default the constructor.
11510 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
11511 Default the constructor.
11512 <type>: Remove.
11513 (struct tui_win_info) <tui_win_info>: Default the constructor.
11514 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
11515 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
11516 Default the constructor.
11517
865a5aec
TT
115182020-02-22 Tom Tromey <tom@tromey.com>
11519
11520 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
11521 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
11522 * tui/tui-win.c (tui_resize_all): Don't call
11523 tui_delete_invisible_windows.
11524 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
11525 done.
11526 (tui_set_layout): Update.
11527 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
11528 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
11529 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
11530
e098d18c
TT
115312020-02-22 Tom Tromey <tom@tromey.com>
11532
11533 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
11534 correctly.
11535
eb9c8874
TT
115362020-02-22 Tom Tromey <tom@tromey.com>
11537
11538 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
11539
7eed1a8e
TT
115402020-02-22 Tom Tromey <tom@tromey.com>
11541
11542 * tui/tui-winsource.h (struct tui_source_window_iterator)
11543 <inner_iterator>: New etytypedef.
11544 <tui_source_window_iterator>: Take "end" parameter.
11545 <tui_source_window_iterator>: Take iterator.
11546 <operator*, advance>: Update.
11547 <m_iter>: Change type.
11548 <m_end>: New field.
11549 (struct tui_source_windows) <begin, end>: Update.
11550 * tui/tui-layout.c (tui_windows): New global.
11551 (tui_apply_current_layout): Clear tui_windows.
11552 (tui_layout_window::apply): Update tui_windows.
11553 * tui/tui-data.h (tui_windows): Declare.
11554 (all_tui_windows): Now inline function.
11555 (class tui_window_iterator, struct all_tui_windows): Remove.
11556
7c043ba6
TT
115572020-02-22 Tom Tromey <tom@tromey.com>
11558
11559 PR tui/17850:
11560 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
11561 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
11562 "height" argument.
11563 (class tui_layout_window) <get_sizes>: Likewise.
11564 (class tui_layout_split) <tui_layout_split>: Add "vertical"
11565 argument.
11566 <get_sizes>: Add "height" argument.
11567 <m_vertical>: New field.
11568 * tui/tui-layout.c (tui_layout_split::clone): Update.
11569 (tui_layout_split::get_sizes): Add "height" argument.
11570 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
11571 (tui_new_layout_command): Parse "-horizontal".
11572 (_initialize_tui_layout): Update help string.
11573 (tui_layout_split::specification): Add "-horizontal" when needed.
11574 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
11575 argument.
11576 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
11577 New methods.
11578
6bc56648
TT
115792020-02-22 Tom Tromey <tom@tromey.com>
11580
11581 * tui/tui-layout.h (enum tui_adjust_result): New.
11582 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
11583 (class tui_layout_window) <adjust_size>: Return
11584 tui_adjust_result. Rewrite.
11585 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
11586 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
11587
c22fef7e
TT
115882020-02-22 Tom Tromey <tom@tromey.com>
11589
11590 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
11591 parameter and return types.
11592 (class tui_layout_base) <specification>: Add "depth".
11593 (class tui_layout_window) <specification>: Add "depth".
11594 (class tui_layout_split) <specification>: Add "depth".
11595 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
11596 and return types.
11597 (tui_new_layout_command): Parse sub-layouts.
11598 (_initialize_tui_layout): Update help string.
11599 (tui_layout_window::specification): Add "depth".
11600 (add_layout_command): Update.
11601
ee325b61
TT
116022020-02-22 Tom Tromey <tom@tromey.com>
11603
11604 * NEWS: Add "tui new-layout" item.
11605 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
11606 Add new-layout command to help text.
11607 (validate_window_name): New function.
11608 (tui_new_layout_command): New function.
11609 (_initialize_tui_layout): Register "new-layout".
11610 (tui_layout_window::specification): New method.
11611 (tui_layout_window::specification): New method.
11612 * tui/tui-layout.h (class tui_layout_base) <specification>: New
11613 method.
11614 (class tui_layout_window) <specification>: New method.
11615 (class tui_layout_split) <specification>: New method.
11616
416eb92d
TT
116172020-02-22 Tom Tromey <tom@tromey.com>
11618
11619 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
11620 * tui/tui-win.c (window_name_completer): Update comment.
11621 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
11622 Declare method.
11623 (class tui_layout_window) <replace_window>: Likewise.
11624 (class tui_layout_split) <replace_window>: Likewise.
11625 (tui_set_layout): Don't declare.
11626 (tui_set_initial_layout): Declare function.
11627 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
11628 (asm_regs_layout): New globals.
11629 (tui_current_layout, show_layout): Remove.
11630 (tui_set_layout, tui_add_win_to_layout): Rewrite.
11631 (find_layout, tui_apply_layout): New function.
11632 (layout_completer): Remove.
11633 (tui_next_layout): Reimplement.
11634 (tui_next_layout_command): New function.
11635 (tui_set_initial_layout, tui_prev_layout_command): New functions.
11636 (tui_regs_layout): Reimplement.
11637 (tui_regs_layout_command): New function.
11638 (extract_display_start_addr): Rewrite.
11639 (next_layout, prev_layout): Remove.
11640 (tui_layout_window::replace_window): New method.
11641 (tui_layout_split::replace_window): New method.
11642 (destroy_layout): New function.
11643 (layout_list): New global.
11644 (add_layout_command): New function.
11645 (initialize_layouts): Update.
11646 (tui_layout_command): New function.
11647 (_initialize_tui_layout): Install "layout" commands.
11648 * tui/tui-data.h (enum tui_layout_type): Remove.
11649 (tui_current_layout): Don't declare.
11650
0dbc2fc7
TT
116512020-02-22 Tom Tromey <tom@tromey.com>
11652
11653 * tui/tui-regs.c (tui_reg_layout): Remove.
11654 (tui_reg_command): Use tui_regs_layout.
11655 * tui/tui-layout.h (tui_reg_command): Declare.
11656 * tui/tui-layout.c (tui_reg_command): New function.
11657
5afe342e
TT
116582020-02-22 Tom Tromey <tom@tromey.com>
11659
11660 * tui/tui.c (tui_rl_delete_other_windows): Call
11661 tui_remove_some_windows.
11662 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
11663 Declare method.
11664 (class tui_layout_window) <remove_windows>: New method.
11665 (class tui_layout_split) <remove_windows>: Declare.
11666 (tui_remove_some_windows): Declare.
11667 * tui/tui-layout.c (tui_remove_some_windows): New function.
11668 (tui_layout_split::remove_windows): New method.
11669
427326a8
TT
116702020-02-22 Tom Tromey <tom@tromey.com>
11671
11672 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
11673 * tui/tui-layout.h (tui_next_layout): Declare.
11674 * tui/tui-layout.c (tui_next_layout): New function.
11675
3fe12b6d
TT
116762020-02-22 Tom Tromey <tom@tromey.com>
11677
11678 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
11679 correct coordinates.
11680
59b8b5d2
TT
116812020-02-22 Tom Tromey <tom@tromey.com>
11682
11683 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
11684 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
11685 DATA_WIN case.
11686
2a3d458b
TT
116872020-02-22 Tom Tromey <tom@tromey.com>
11688
11689 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
11690 TUI_DISASM_WIN, not tui_win_list.
11691
3f0cbb04
TT
116922020-02-22 Tom Tromey <tom@tromey.com>
11693
11694 * valprint.c (generic_val_print_enum_1)
11695 (val_print_type_code_flags): Style member names.
11696 * rust-lang.c (val_print_struct, rust_print_enum)
11697 (rust_print_struct_def, rust_internal_print_type): Style member
11698 names.
11699 * p-valprint.c (pascal_object_print_value_fields): Style member
11700 names. Only call fprintf_symbol_filtered for static members.
11701 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
11702 * f-valprint.c (f_val_print): Style member names.
11703 * f-typeprint.c (f_type_print_base): Style member names.
11704 * cp-valprint.c (cp_print_value_fields): Style member names. Only
11705 call fprintf_symbol_filtered for static members.
11706 (cp_print_class_member): Style member names.
11707 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
11708 member names.
11709 * ada-valprint.c (ada_print_scalar): Style enum names.
11710 (ada_val_print_enum): Likewise.
11711 * ada-typeprint.c (print_enum_type): Style enum names.
11712
d4d947ae
TT
117132020-02-21 Tom Tromey <tom@tromey.com>
11714
11715 * psympriv.h (struct partial_symtab): Update comment.
11716
e94e944b
TT
117172020-02-21 Tom Tromey <tromey@adacore.com>
11718
11719 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
11720 type is CORE_ADDR.
11721
1eb73179
TV
117222020-02-21 Tom de Vries <tdevries@suse.de>
11723
11724 PR gdb/25534
11725 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
11726 if dependencies[i]->user != NULL.
11727
4f180d53
AT
117282020-02-21 Ali Tamur <tamur@google.com>
11729
11730 * dwarf2/read.c (dwarf2_name): Add null check.
11731
22b6cd70
TT
117322020-02-20 Tom Tromey <tom@tromey.com>
11733
11734 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
11735 ">=", in binary search.
11736 (dwarf2_find_containing_comp_unit): New overload.
11737 (run_test): New self-test.
11738 (_initialize_dwarf2_read): Register new test.
11739
bd0cf5a6
NC
117402020-02-20 Nelson Chu <nelson.chu@sifive.com>
11741
11742 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
11743 * riscv-tdep.h: Likewise.
11744 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
11745 rv32-only CSR.
11746 * features/riscv/64bit-csr.xml: Regenerated.
11747
3f702acd
SDJ
117482020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
11749 Tom Tromey <tom@tromey.com>
11750
11751 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
11752 of 'fputc_unfiltered'.
11753 (putchar_unfiltered): Call 'fputc_unfiltered'.
11754 (fputc_unfiltered): Call 'fputs_unfiltered'.
11755
d13c7322
AB
117562020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
11757
11758 * config.in: Regenerate.
11759 * configure: Regenerate.
11760 * configure.ac: Add --with-python-libdir option.
11761 * main.c: Use WITH_PYTHON_LIBDIR.
11762
869d8950
TT
117632020-02-19 Tom Tromey <tom@tromey.com>
11764
11765 * symtab.c (general_symbol_info::compute_and_set_names): Use
11766 obstack_strndup. Simplify call to symbol_set_demangled_name.
11767
298e9637
SM
117682020-02-19 Simon Marchi <simon.marchi@efficios.com>
11769
11770 * dwarf2/read.c (allocate_signatured_type_table,
11771 allocate_dwo_unit_table, allocate_type_unit_groups_table,
11772 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
11773 Remove objfile parameter, update all callers.
11774
08410482
DE
117752020-02-19 Doug Evans <dje@google.com>
11776
11777 PR rust/25535
11778 * rust-lang.c (rust_print_enum): Apply embedded_offset to
11779 rust_enum_variant calculation.
11780
dfdeeca1
TT
117812020-02-19 Tom Tromey <tromey@adacore.com>
11782
11783 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
11784
2ef5453b
TT
117852020-02-19 Tom Tromey <tromey@adacore.com>
11786
11787 * ada-lang.c (cache_symbol): Use obstack_strdup.
11788
9f1528a1
AB
117892020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
11790
11791 * configure: Regenerate.
11792
d3c22fa8
TT
117932020-02-19 Tom Tromey <tromey@adacore.com>
11794
11795 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
11796 NULL check.
11797
bf84f706
MR
117982020-02-19 Maciej W. Rozycki <macro@wdc.com>
11799
11800 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
11801
d1c9b20f
AB
118022020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
11803
11804 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
11805 if GDBSERVER is not defined.
11806 (riscv_tdesc_cache): Likewise, also store const target_desc.
11807 (STATIC_IN_GDB): Define.
11808 (riscv_create_target_description): Update declaration with
11809 STATIC_IN_GDB.
11810 (riscv_lookup_target_description): New function, only define if
11811 GDBSERVER is not defined.
11812 * arch/riscv.h (riscv_create_target_description): Declare only
11813 when GDBSERVER is defined.
11814 (riscv_lookup_target_description): New declaration when GDBSERVER
11815 is not defined.
11816 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
11817 (riscv_linux_read_features): ...this, and return
11818 riscv_gdbarch_features instead of target_desc.
11819 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
11820 (riscv_linux_read_description): Rename to...
11821 (riscv_linux_read_features): ...this.
11822 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
11823 Update to use riscv_gdbarch_features and
11824 riscv_lookup_target_description.
11825 * riscv-tdep.c (riscv_find_default_target_description): Use
11826 riscv_lookup_target_description instead of
11827 riscv_create_target_description.
11828
373d7ac0
SM
118292020-02-18 Simon Marchi <simon.marchi@efficios.com>
11830
11831 * valprint.c (generic_val_print_enum_1): When printing a flag
11832 enum with value 0 and there is no enumerator with value 0, print
11833 just "0" instead of "(unknown: 0x0)".
11834
b29a2df0
SM
118352020-02-18 Simon Marchi <simon.marchi@efficios.com>
11836
11837 * valprint.c (generic_val_print_enum_1): Print unknown part of
11838 flag enum in hex.
11839
6740f0cc
SM
118402020-02-18 Simon Marchi <simon.marchi@efficios.com>
11841
11842 * dwarf2/read.c (update_enumeration_type_from_children): Allow
11843 flag enums to contain duplicate enumerators.
11844 * valprint.c (generic_val_print_enum_1): Update comment.
11845
edd45eb0
SM
118462020-02-18 Simon Marchi <simon.marchi@efficios.com>
11847
11848 * dwarf2/read.c: Include "count-one-bits.h".
11849 (update_enumeration_type_from_children): If an enumerator has
11850 multiple bits set, don't treat the enumeration as a "flag enum".
11851 * valprint.c (generic_val_print_enum_1): Assert that enumerators
11852 of flag enums have 0 or 1 bit set.
11853
6d0cf446
BE
118542020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
11855
11856 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
11857 conversion.
11858 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11859 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
11860 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11861 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
11862 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11863
7001c1b7
SM
118642020-02-18 Simon Marchi <simon.marchi@efficios.com>
11865
11866 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
11867
fdb61c6c
SM
118682020-02-14 Simon Marchi <simon.marchi@efficios.com>
11869
11870 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
11871 displaced_step_closure_up.
11872 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
11873 (struct displaced_step_closure_up):
11874 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11875 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
11876 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
11877 Likewise.
11878 * gdbarch.sh (displaced_step_copy_insn): Likewise.
11879 * gdbarch.c, gdbarch.h: Re-generate.
11880 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
11881 displaced_step_closure_up.
11882 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11883 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
11884 * infrun.h (displaced_step_closure_up): New type alias.
11885 (struct displaced_step_inferior_state) <step_closure>: Change
11886 type to displaced_step_closure_up.
11887 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
11888 displaced_step_closure_up.
11889 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11890
a4a38eb4
TT
118912020-02-14 Tom Tromey <tom@tromey.com>
11892
11893 * minidebug.c (gnu_debug_key): New global.
11894 (find_separate_debug_file_in_section): Use it.
11895
e8217e61
SM
118962020-02-14 Simon Marchi <simon.marchi@efficios.com>
11897
11898 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
11899 std::unique_ptr.
11900 * gdbarch.c: Re-generate.
11901 * gdbarch.h: Re-generate.
11902 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
11903 change.
11904 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
11905 type to std::unique_ptr.
11906 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
11907 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11908 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
11909 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
11910 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
11911 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11912 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
11913 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
11914 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11915
d8d83535
SM
119162020-02-14 Simon Marchi <simon.marchi@efficios.com>
11917
11918 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
11919 std::unique_ptr.
11920 (displaced_step_clear): Rename to...
11921 (displaced_step_reset): ... this. Just call displaced->reset ().
11922 (displaced_step_clear_cleanup): Rename to...
11923 (displaced_step_reset_cleanup): ... this.
11924 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
11925 (displaced_step_fixup): Likewise.
11926 (resume_1): Likewise.
11927 (handle_inferior_event): Restore child's memory before calling
11928 displaced_step_fixup on the parent.
11929 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
11930 to std::unique_ptr.
11931 <step_closure>: Change type to std::unique_ptr.
11932
5f661e03
SM
119332020-02-14 Simon Marchi <simon.marchi@efficios.com>
11934
11935 * arm-tdep.c: Include count-one-bits.h.
11936 (cleanup_block_store_pc): Use count_one_bits.
11937 (cleanup_block_load_pc): Use count_one_bits.
11938 (arm_copy_block_xfer): Use count_one_bits.
11939 (thumb2_copy_block_xfer): Use count_one_bits.
11940 (thumb_copy_pop_pc_16bit): Use count_one_bits.
11941 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
11942 (thumb_get_next_pcs_raw): Use count_one_bits.
11943 (arm_get_next_pcs_raw): Use count_one_bits_l.
11944 * arch/arm.c (bitcount): Remove.
11945 * arch/arm.h (bitcount): Remove.
11946
8084e579
TT
119472020-02-14 Tom Tromey <tromey@adacore.com>
11948
11949 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
11950 Update.
11951 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
11952 * dwarf2/loc.c (call_site_find_chain_1): Return
11953 unique_xmalloc_ptr.
11954 (call_site_find_chain): Likewise.
11955
258bf0ee
RB
119562020-02-14 Richard Biener <rguenther@suse.de>
11957
11958 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
11959 on expression with division operators.
11960
f98a8458
AKS
119612020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11962
11963 * MAINTAINERS (Write After Approval): Adding myself.
11964
d1437c0e
TT
119652020-02-12 Tom Tromey <tom@tromey.com>
11966
11967 * event-loop.c (event_data, gdb_event, event_handler_func):
11968 Remove.
11969
3d4560f7
TT
119702020-02-12 Tom Tromey <tom@tromey.com>
11971
11972 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
11973 (dwarf2_frame_objfile_data): Add comment.
11974 (find_comp_unit, set_comp_unit): New functions.
11975 (dwarf2_frame_find_fde): Use find_comp_unit.
11976 (dwarf2_build_frame_info): Use set_comp_unit.
11977
21982304
TT
119782020-02-12 Tom Tromey <tom@tromey.com>
11979
11980 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
11981 (comp_unit): Don't initialize objfile.
11982 (execute_cfa_program): Add text_offset parameter.
11983 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
11984 (dwarf2_frame_cache): Update.
11985 (dwarf2_build_frame_info): Don't set "objfile" member.
11986
4debb237
TT
119872020-02-12 Tom Tromey <tom@tromey.com>
11988
11989 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
11990 (decode_frame_entry): Likewise.
11991 (dwarf2_build_frame_info): Update.
11992
0d404d44
TT
119932020-02-12 Tom Tromey <tom@tromey.com>
11994
11995 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
11996 (decode_frame_entry_1): Use the comp_unit obstack.
11997
a7a3ae5c
TT
119982020-02-12 Tom Tromey <tom@tromey.com>
11999
12000 * dwarf2/frame.c (struct comp_unit): Add initializers and
12001 constructor.
12002 (dwarf2_frame_objfile_data): Store a comp_unit.
12003 (dwarf2_frame_find_fde): Update.
12004 (dwarf2_build_frame_info): Use "new".
12005
a9d65418
TT
120062020-02-12 Tom Tromey <tom@tromey.com>
12007
12008 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
12009 (dwarf2_fde_table): Typedef for std::vector.
12010 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
12011 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
12012 (decode_frame_entry): Update.
12013 (dwarf2_build_frame_info): Use "new".
12014
7559c217
CB
120152020-02-12 Christian Biesinger <cbiesinger@google.com>
12016
12017 * arm-tdep.c (arm_gdbarch_init): Update.
12018 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
12019 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
12020 have_neon, is_m>: Change to bool.
12021
aeefc73c
CB
120222020-02-12 Christian Biesinger <cbiesinger@google.com>
12023
12024 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
12025
d27b8e5f
TT
120262020-02-12 Tom Tromey <tom@tromey.com>
12027
12028 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
12029
cd5900f3
HD
120302020-02-12 Hannes Domani <ssbssa@yahoo.de>
12031
12032 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
12033 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
12034
f056b22b
TT
120352020-02-11 Tom Tromey <tom@tromey.com>
12036
12037 * psymtab.h: Update comment.
12038
f92ff6b5
TT
120392020-02-11 Tom Tromey <tom@tromey.com>
12040
12041 * gdb_obstack.h (struct auto_obstack): Use
12042 DISABLE_COPY_AND_ASSIGN.
12043
3fd6912b
TT
120442020-02-11 Tom Tromey <tom@tromey.com>
12045
12046 * dwarf2/frame.h (struct objfile): Don't forward declare.
12047
69ed9b74
CB
120482020-02-11 Christian Biesinger <cbiesinger@google.com>
12049
12050 * cris-tdep.c (cris_supply_gregset): Change signature to match
12051 what struct regset expects.
12052 (cris_regset): New struct.
12053 (fetch_core_registers): Remove.
12054 (cris_iterate_over_regset_sections): New function.
12055 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
12056 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
12057
bda874f6
CB
120582020-02-11 Christian Biesinger <cbiesinger@google.com>
12059
12060 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
12061 registers.
12062
754e1564
CB
120632020-02-11 Christian Biesinger <cbiesinger@google.com>
12064
12065 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
12066
8ddd8e0e
SM
120672020-02-11 Simon Marchi <simon.marchi@efficios.com>
12068
12069 * configure: Re-generate.
12070
898e7f60
SM
120712020-02-11 Simon Marchi <simon.marchi@efficios.com>
12072
12073 * configure: Re-generate.
12074
58df732b
SM
120752020-02-11 Simon Marchi <simon.marchi@efficios.com>
12076
12077 * acinclude: Update warning.m4 path.
12078 * warning.m4: Move to gdbsupport.
12079
da5bd37e
TT
120802020-02-11 Tom Tromey <tromey@adacore.com>
12081
12082 * remote.c (remote_console_output): Update.
12083 * printcmd.c (printf_command): Update.
12084 * event-loop.c (gdb_wait_for_event): Update.
12085 * linux-nat.c (sigchld_handler): Update.
12086 * remote-sim.c (gdb_os_write_stdout): Update.
12087 (gdb_os_flush_stdout): Update.
12088 (gdb_os_flush_stderr): Update.
12089 (gdb_os_write_stderr): Update.
12090 * exceptions.c (print_exception): Update.
12091 * remote-fileio.c (remote_fileio_func_read): Update.
12092 (remote_fileio_func_write): Update.
12093 * tui/tui.c (tui_enable): Update.
12094 * tui/tui-interp.c (tui_interp::init): Update.
12095 * utils.c (init_page_info): Update.
12096 (putchar_unfiltered, fputc_unfiltered): Update.
12097 (gdb_flush): Update.
12098 (emit_style_escape): Update.
12099 (flush_wrap_buffer, fputs_maybe_filtered): Update.
12100 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
12101 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
12102 (stderr_file::write): Update.
12103 (stderr_file::puts): Update.
12104 * ui-file.h (ui_file_isatty, ui_file_write)
12105 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
12106 (ui_file_puts): Don't declare.
12107
85f0dd3c
TV
121082020-02-10 Tom de Vries <tdevries@suse.de>
12109
12110 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
12111 sentinel to char *.
12112
2e927613
TV
121132020-02-09 Tom de Vries <tdevries@suse.de>
12114
12115 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
12116 filename if it matches "<artificial>".
12117
6bafc845
HD
121182020-02-09 Hannes Domani <ssbssa@yahoo.de>
12119
12120 * windows-tdep.c (struct enum_value_name): New struct.
12121 (create_enum): New function.
12122 (windows_get_siginfo_type): Create and use enum types.
12123
7928d571
HD
121242020-02-09 Hannes Domani <ssbssa@yahoo.de>
12125
12126 * NEWS: Mention $_siginfo support for Windows.
12127 * windows-nat.c (handle_exception): Set siginfo_er.
12128 (windows_nat_target::mourn_inferior): Reset siginfo_er.
12129 (windows_xfer_siginfo): New function.
12130 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
12131 * windows-tdep.c (struct windows_gdbarch_data): New struct.
12132 (init_windows_gdbarch_data): New function.
12133 (get_windows_gdbarch_data): New function.
12134 (windows_get_siginfo_type): New function.
12135 (windows_init_abi): Register windows_get_siginfo_type.
12136 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
12137
6751ebae
TT
121382020-02-08 Tom Tromey <tom@tromey.com>
12139
12140 * dwarf2/read.c (class cutu_reader) <cutu_reader,
12141 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
12142 <keep>: Declare method.
12143 <m_keep>: Remove member.
12144 <~cutu_reader>: Remove.
12145 (cutu_reader::init_tu_and_read_dwo_dies): Update.
12146 (cutu_reader::cutu_reader): Update.
12147 (cutu_reader::keep): Rename from ~cutu_reader.
12148 (process_psymtab_comp_unit, build_type_psymtabs_1)
12149 (process_skeletonless_type_unit, load_partial_comp_unit)
12150 (load_full_comp_unit, dwarf2_read_addr_index)
12151 (read_signatured_type): Update.
12152
135f5437
TT
121532020-02-08 Tom Tromey <tom@tromey.com>
12154
12155 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
12156 "want_partial_unit" parameter.
12157 (process_psymtab_comp_unit): Change want_partial_unit to bool.
12158 Inline check for DW_TAG_partial_unit.
12159 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
12160
9f66ff1c
TT
121612020-02-08 Tom Tromey <tom@tromey.com>
12162
12163 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
12164 read.c.
12165 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
12166 read.c.
12167
c8a7a66f
TT
121682020-02-08 Tom Tromey <tom@tromey.com>
12169
12170 * dwarf2/read.c (read_address): Move to comp-unit.c.
12171 (dwarf2_rnglists_process, dwarf2_ranges_process)
12172 (read_attribute_value, dwarf_decode_lines_1)
12173 (var_decode_location, decode_locdesc): Update.
12174 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
12175 read.c. Remove "cu" parameter.
12176 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
12177 method.
12178
8266302d
TT
121792020-02-08 Tom Tromey <tom@tromey.com>
12180
12181 * dwarf2/read.c (read_attribute_value, read_indirect_string)
12182 (read_indirect_line_string): Update.
12183 * dwarf2/comp-unit.c (read_offset): Remove.
12184 (read_comp_unit_head): Update.
12185 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
12186 method.
12187 (read_offset): Don't declare.
12188
4057dfde
TT
121892020-02-08 Tom Tromey <tom@tromey.com>
12190
12191 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
12192 * dwarf2/read.c (struct comp_unit_head): Move to
12193 dwarf2/comp-unit.h.
12194 (enum class rcuh_kind): Move to comp-unit.h.
12195 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
12196 (read_comp_unit_head, error_check_comp_unit_head)
12197 (read_and_check_comp_unit_head): Move to comp-unit.c.
12198 (read_offset, dwarf_unit_type_name): Likewise.
12199 (create_debug_type_hash_table, read_cutu_die_from_dwo)
12200 (cutu_reader::cutu_reader, read_call_site_scope)
12201 (find_partial_die, follow_die_offset): Update.
12202 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
12203
24aa364d
TT
122042020-02-08 Tom Tromey <tom@tromey.com>
12205
12206 * dwarf2/read.c (read_offset_1): Move to leb.c.
12207 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
12208 (dwarf_decode_macro_bytes): Update.
12209 * dwarf2/leb.c (read_offset): Rename; move from read.c.
12210 * dwarf2/leb.h (read_offset): Declare.
12211
2c7d5afc
TT
122122020-02-08 Tom Tromey <tom@tromey.com>
12213
12214 * dwarf2/read.c (dwarf2_section_size): Remove.
12215 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
12216 Update.
12217 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
12218
4075cb26
TT
122192020-02-08 Tom Tromey <tom@tromey.com>
12220
12221 * dwarf2/read.c (read_initial_length): Move to leb.c.
12222 * dwarf2/leb.h (read_initial_length): Declare.
12223 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
12224 handle_nonstd parameter.
12225 * dwarf2/frame.c (read_initial_length): Remove.
12226 (decode_frame_entry_1): Update.
12227
09ba997f
TT
122282020-02-08 Tom Tromey <tom@tromey.com>
12229
12230 * dwarf2/loc.c (dwarf2_find_location_expression)
12231 (dwarf_evaluate_loc_desc::get_tls_address)
12232 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
12233 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
12234 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
12235 (dwarf2_compile_property_to_c)
12236 (dwarf2_loc_desc_get_symbol_read_needs)
12237 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
12238 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
12239 (loclist_describe_location, loclist_tracepoint_var_ref)
12240 (loclist_generate_c_location): Update.
12241 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
12242 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
12243 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
12244 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
12245 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
12246 (dwarf2_per_cu_data::addr_size)
12247 (dwarf2_per_cu_data::ref_addr_size)
12248 (dwarf2_per_cu_data::text_offset)
12249 (dwarf2_per_cu_data::addr_type): Now methods.
12250 (per_cu_header_read_in): Make per_cu "const".
12251 (dwarf2_version): Remove.
12252 (dwarf2_per_cu_data::int_type): Now a method.
12253 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
12254 (set_die_type, read_array_type, read_subrange_index_type)
12255 (read_tag_string_type, read_subrange_type): Update.
12256 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
12257 offset_size, ref_addr_size, text_offset, addr_type, version,
12258 objfile, int_type, addr_sized_int_type>: Declare methods.
12259
96c738c0
TT
122602020-02-08 Tom Tromey <tom@tromey.com>
12261
12262 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
12263 Move earlier.
12264
8fdd972c
TT
122652020-02-08 Tom Tromey <tom@tromey.com>
12266
12267 * dwarf2/read.h (dwarf_line_debug): Declare.
12268 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
12269 * dwarf2/read.c: Move line_header code to new files.
12270 (dwarf_line_debug): No longer static.
12271 * dwarf2/line-header.c: New file.
12272 * dwarf2/line-header.h: New file.
12273
03075812
TT
122742020-02-08 Tom Tromey <tom@tromey.com>
12275
12276 * dwarf2/read.c (struct line_header) <file_full_name,
12277 file_file_name>: Return unique_xmalloc_ptr.
12278 (line_header::file_file_name): Update.
12279 (line_header::file_full_name): Update.
12280 (dw2_get_file_names_reader): Update.
12281 (macro_start_file): Update.
12282
bb822404
TT
122832020-02-08 Tom Tromey <tom@tromey.com>
12284
12285 * dwarf2/read.c (struct line_header) <file_full_name,
12286 file_file_name>: Declare methods.
12287 (dw2_get_file_names_reader): Update.
12288 (file_file_name): Now a method.
12289 (file_full_name): Likewise.
12290 (macro_start_file): Update.
12291
009b64fc
TT
122922020-02-08 Tom Tromey <tom@tromey.com>
12293
12294 * dwarf2/read.c (dwarf_always_disassemble)
12295 (show_dwarf_always_disassemble): Move to loc.c.
12296 (_initialize_dwarf2_read): Move "always-disassemble" registration
12297 to loc.c.
12298 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
12299 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
12300 static.
12301 (show_dwarf_always_disassemble): Move from read.c.
12302 (_initialize_dwarf2loc): Move always-disassemble from read.c.
12303
5895093f
TT
123042020-02-08 Tom Tromey <tom@tromey.com>
12305
12306 * dwarf2/read.c (~dwarf2_per_objfile): Update.
12307 (create_quick_file_names_table): Return htab_up.
12308 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
12309 Update.
12310 * dwarf2/read.h (struct dwarf2_per_objfile)
12311 <quick_file_names_table>: Now htab_up.
12312
b3b32279
TT
123132020-02-08 Tom Tromey <tom@tromey.com>
12314
12315 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
12316
1d33d811
TT
123172020-02-08 Tom Tromey <tom@tromey.com>
12318
12319 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
12320 Rewrite.
12321 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
12322 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
12323 (abbrev_table::abbrev_table): No longer inline.
12324 (ABBREV_HASH_SIZE): Remove.
12325 (abbrev_table::m_abbrevs): Now an htab_up.
12326
86de1d91
TT
123272020-02-08 Tom Tromey <tom@tromey.com>
12328
12329 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
12330 (cutu_reader): Update.
12331 (build_type_psymtabs_1): Update.
12332 * dwarf2/abbrev.c (abbrev_table::read): Rename.
12333 (abbrev_table::alloc_abbrev): Update.
12334 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
12335 (abbrev_table::read): New static method, renamed from
12336 abbrev_table_read_table.
12337 (abbrev_table::alloc_abbrev)
12338 (abbrev_table::add_abbrev): Now private.
12339 (abbrev_table::abbrev_table): Now private.
12340 (abbrev_table::m_abbrev_obstack): Now private. Rename.
12341
0335378b
TT
123422020-02-08 Tom Tromey <tom@tromey.com>
12343
12344 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
12345 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
12346 htab_up.
12347
48b490f2
TT
123482020-02-08 Tom Tromey <tom@tromey.com>
12349
12350 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
12351 htab_up.
12352 (lookup_dwo_unit_in_dwp): Update.
12353 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
12354 on obstack.
12355
bc68fb19
TT
123562020-02-08 Tom Tromey <tom@tromey.com>
12357
12358 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
12359 obstack.
12360
d15acc42
TT
123612020-02-08 Tom Tromey <tom@tromey.com>
12362
12363 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
12364 line_header_hash.
12365 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
12366 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
12367 Change type to htab_up.
12368
eaa5fa8b
TT
123692020-02-08 Tom Tromey <tom@tromey.com>
12370
12371 * dwarf2/read.c (allocate_type_unit_groups_table): Return
12372 htab_up. Don't allocate on obstack.
12373 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
12374 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
12375 Change type to htab_up.
12376
b0b6a987
TT
123772020-02-08 Tom Tromey <tom@tromey.com>
12378
12379 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
12380 Change type to htab_up.
12381 * dwarf2/read.c (create_signatured_type_table_from_index)
12382 (create_signatured_type_table_from_debug_names)
12383 (create_all_type_units, add_type_unit)
12384 (lookup_dwo_signatured_type, lookup_signatured_type)
12385 (process_skeletonless_type_unit): Update.
12386 (create_debug_type_hash_table, create_debug_types_hash_table):
12387 Change type of types_htab.
12388 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
12389 htab_up. Don't allocate on obstack.
12390 (create_cus_hash_table): Change type of cus_htab parameter.
12391 (struct dwo_file) <cus, tus>: Now htab_up.
12392 (lookup_dwo_signatured_type, lookup_dwo_cutu)
12393 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
12394 (queue_and_load_all_dwo_tus): Update.
12395 * dwarf2/index-write.c (write_gdbindex): Update.
12396 (write_debug_names): Update.
12397
39856def
TT
123982020-02-08 Tom Tromey <tom@tromey.com>
12399
12400 * dwarf2/read.h (struct dwarf2_queue_item): Move from
12401 dwarf2/read.c. Remove "next" member. Add constructor ntad
12402 destructor.
12403 (struct dwarf2_per_objfile) <queue>: New member.
12404 * dwarf2/read.c (struct dwarf2_queue_item): Move to
12405 dwarf2/read.h.
12406 (dwarf2_queue, dwarf2_queue_tail): Remove.
12407 (class dwarf2_queue_guard): Add parameter to constructor. Use
12408 DISABLE_COPY_AND_ASSIGN.
12409 <m_per_objfile>: New member.
12410 <~dwarf2_queue_guard>: Rewrite.
12411 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
12412 Update.
12413 (~dwarf2_queue_item): New.
12414
3e225074
TT
124152020-02-08 Tom Tromey <tom@tromey.com>
12416
12417 * dwarf2/read.c (struct die_info) <has_children>: New member.
12418 (dw2_get_file_names_reader): Remove has_children.
12419 (dw2_get_file_names): Update.
12420 (read_cutu_die_from_dwo): Remove has_children.
12421 (cutu_reader::init_tu_and_read_dwo_dies)
12422 (cutu_reader::cutu_reader): Update.
12423 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
12424 Remove has_children.
12425 (build_type_psymtabs_1, process_skeletonless_type_unit)
12426 (load_partial_comp_unit, load_full_comp_unit): Update.
12427 (create_dwo_cu_reader): Remove has_children.
12428 (create_cus_hash_table, read_die_and_children): Update.
12429 (read_full_die_1,read_full_die): Remove has_children.
12430 (read_signatured_type): Update.
12431 (class cutu_reader) <has_children>: Remove.
12432
82ca8957
TT
124332020-02-08 Tom Tromey <tom@tromey.com>
12434
12435 * dwarf2/expr.c: Rename from dwarf2expr.c.
12436 * dwarf2/expr.h: Rename from dwarf2expr.h.
12437 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
12438 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
12439 * dwarf2/frame.c: Rename from dwarf2-frame.c.
12440 * dwarf2/frame.h: Rename from dwarf2-frame.h.
12441 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
12442 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
12443 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
12444 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
12445 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
12446 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
12447 * dwarf2/loc.c: Rename from dwarf2loc.c.
12448 * dwarf2/loc.h: Rename from dwarf2loc.h.
12449 * dwarf2/read.c: Rename from dwarf2read.c.
12450 * dwarf2/read.h: Rename from dwarf2read.h.
12451 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
12452 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
12453 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
12454 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
12455 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
12456 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
12457 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
12458 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
12459 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
12460 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
12461 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
12462 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
12463 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
12464 Update.
12465 * Makefile.in (COMMON_SFILES): Update.
12466 (HFILES_NO_SRCDIR): Update.
12467
9e35d499
TT
124682020-02-08 Tom Tromey <tom@tromey.com>
12469
12470 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
12471 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
12472
1eba2311
TT
124732020-02-08 Tom Tromey <tom@tromey.com>
12474
12475 * dwarf2read.h (struct die_info): Don't declare.
12476
e41c2da2
TT
124772020-02-08 Tom Tromey <tom@tromey.com>
12478
12479 * dwarf2read.h (die_info_ptr): Remove typedef.
12480
4fc6c0d5
TT
124812020-02-08 Tom Tromey <tom@tromey.com>
12482
12483 * dwarf2read.c (read_call_site_scope)
12484 (handle_data_member_location, dwarf2_add_member_fn)
12485 (mark_common_block_symbol_computed, read_common_block)
12486 (attr_to_dynamic_prop, partial_die_info::read)
12487 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
12488 (dwarf2_symbol_mark_computed, set_die_type): Update.
12489 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
12490 method.
12491 (attr_form_is_block): Don't declare.
12492 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
12493
cd6c91b4
TT
124942020-02-08 Tom Tromey <tom@tromey.com>
12495
12496 * dwarf2read.c (dwarf2_find_base_address, )
12497 (read_call_site_scope, rust_containing_type)
12498 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
12499 (handle_data_member_location, dwarf2_add_member_fn)
12500 (get_alignment, read_structure_type, process_structure_scope)
12501 (mark_common_block_symbol_computed, read_common_block)
12502 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
12503 (partial_die_info::read, read_attribute_value, new_symbol)
12504 (lookup_die_type, dwarf2_get_ref_die_offset)
12505 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
12506 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
12507 (dwarf2_symbol_mark_computed): Update.
12508 * dwarf2/attribute.h (struct attribute) <value_as_address,
12509 form_is_section_offset, form_is_constant, form_is_ref>: Declare
12510 methods.
12511 (value_as_address, attr_form_is_section_offset)
12512 (attr_form_is_constant, attr_form_is_ref): Don't declare.
12513 * dwarf2/attribute.c (attribute::value_as_address)
12514 (attribute::form_is_section_offset, attribute::form_is_constant)
12515 (attribute::form_is_ref): Now methods.
12516
162dce55
TT
125172020-02-08 Tom Tromey <tom@tromey.com>
12518
12519 * dwarf2read.c (struct attribute, DW_STRING)
12520 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
12521 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
12522 (attr_form_is_block, attr_form_is_section_offset)
12523 (attr_form_is_constant, attr_form_is_ref): Move.
12524 * dwarf2/attribute.h: New file.
12525 * dwarf2/attribute.c: New file, from dwarf2read.c.
12526 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
12527
3054dd54
TT
125282020-02-08 Tom Tromey <tom@tromey.com>
12529
12530 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
12531 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
12532 Move.
12533 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
12534 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
12535 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
12536 abbrev.c.
12537 * dwarf2/abbrev.h: New file.
12538 * dwarf2/abbrev.c: New file, from dwarf2read.c.
12539 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
12540
96b79293
TT
125412020-02-08 Tom Tromey <tom@tromey.com>
12542
12543 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
12544 (dwarf2_section_size, dwarf2_get_section_info)
12545 (create_signatured_type_table_from_debug_names)
12546 (create_addrmap_from_aranges, read_debug_names_from_section)
12547 (get_gdb_index_contents_from_section, read_comp_unit_head)
12548 (error_check_comp_unit_head, read_abbrev_offset)
12549 (create_debug_type_hash_table, init_cu_die_reader)
12550 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
12551 (read_comp_units_from_section, create_cus_hash_table)
12552 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
12553 (create_dwp_v2_section, dwarf2_rnglists_process)
12554 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
12555 (abbrev_table_read_table, read_indirect_string_at_offset_from)
12556 (read_indirect_string_from_dwz, read_addr_index_1)
12557 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
12558 (dwarf_decode_macro_bytes, dwarf_decode_macros)
12559 (fill_in_loclist_baton): Update.
12560 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
12561 get_containing_section, get_bfd_owner, get_bfd_section,
12562 get_file_name, get_id, get_flags, empty, read>: Declare methods.
12563 (dwarf2_read_section, get_section_name, get_section_file_name)
12564 (get_containing_section, get_section_bfd_owner)
12565 (get_section_bfd_section, get_section_name, get_section_file_name)
12566 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
12567 declare.
12568 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
12569 (dwarf2_section_info::get_bfd_owner)
12570 (dwarf2_section_info::get_bfd_section)
12571 (dwarf2_section_info::get_name)
12572 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
12573 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
12574 (dwarf2_section_info::read): Now methods.
12575 * dwarf-index-write.c (class debug_names): Update.
12576
2c86cff9
TT
125772020-02-08 Tom Tromey <tom@tromey.com>
12578
12579 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
12580 Move to dwarf2/section.h.
12581 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
12582 (get_section_bfd_section, get_section_name)
12583 (get_section_file_name, get_section_id, get_section_flags)
12584 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
12585 dwarf2/section.c.
12586 * dwarf2/section.h: New file.
12587 * dwarf2/section.c: New file, from dwarf2read.c.
12588 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
12589
f4382c45
TT
125902020-02-08 Tom Tromey <tom@tromey.com>
12591
12592 * dwarf2read.h (read_unsigned_leb128): Don't declare.
12593 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
12594 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
12595 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
12596 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
12597 * dwarf2/leb.h: New file, from dwarf2read.c.
12598 * dwarf2/leb.c: New file, from dwarf2read.c.
12599 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
12600 Remove.
12601 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
12602 (COMMON_SFILES): Add dwarf2/leb.c.
12603
01840b7a
JB
126042020-02-08 Joel Brobecker <brobecker@adacore.com>
12605
12606 GDB 9.1 released.
12607
dfcb27e4
IB
126082020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
12609
12610 PR gdb/25190:
aac66a4c
SM
12611 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
12612 * gdb/remote.c (remote_console_output): Update.
12613 * gdb/ui-file.c (fputs_unfiltered): Rename to...
12614 (ui_file_puts): ...this.
12615 * gdb/ui-file.h (ui_file_puts): Add declaration.
12616 * gdb/utils.c (emit_style_escape): Update.
12617 (flush_wrap_buffer): Update.
12618 (fputs_maybe_filtered): Update.
12619 (fputs_unfiltered): Add function.
dfcb27e4 12620
faa17681
IB
126212020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
12622
aac66a4c
SM
12623 * gdb/event-loop.c (gdb_wait_for_event): Update.
12624 * gdb/printcmd.c (printf_command): Update.
12625 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
12626 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
12627 (gdb_os_flush_stderr): Update.
12628 * gdb/remote.c (remote_console_output): Update.
12629 * gdb/ui-file.c (gdb_flush): Rename to...
12630 (ui_file_flush): ...this.
12631 (stderr_file::write): Update.
12632 (stderr_file::puts): Update.
12633 * gdb/ui-file.h (gdb_flush): Rename to...
12634 (ui_file_flush): ...this.
12635 * gdb/utils.c (gdb_flush): Add function.
12636 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 12637
5abbbe1d
TT
126382020-02-07 Tom Tromey <tromey@adacore.com>
12639
12640 PR breakpoints/24915:
12641 * source.c (find_and_open_source): Do not check basenames_may_differ.
12642
919adfe8
TT
126432020-02-07 Tom Tromey <tom@tromey.com>
12644
12645 * README: Update gdbserver documentation.
12646 * gdbserver: Move to top level.
12647 * configure.tgt (build_gdbserver): Remove.
12648 * configure.ac: Remove --enable-gdbserver.
12649 * configure: Rebuild.
12650 * Makefile.in (distclean): Don't mention gdbserver.
12651
1d5d29e7
SV
126522020-02-06 Shahab Vahedi <shahab@synopsys.com>
12653
12654 * source-cache.c (source_cache::ensure): Surround
12655 get_plain_source_lines with a try/catch.
12656 (source_cache::get_line_charpos): Get rid of try/catch
12657 and only check for the return value of "ensure".
12658 * tui/tui-source.c (tui_source_window::set_contents):
12659 Simplify "nlines" calculation.
12660
6eb1129c
SV
126612020-02-06 Shahab Vahedi <shahab@synopsys.com>
12662
12663 * MAINTAINERS (Write After Approval): Add myself.
12664
c6a42d11
CB
126652020-02-05 Christian Biesinger <cbiesinger@google.com>
12666
12667 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
12668 function call.
12669
c8ecdda6
CB
126702020-02-05 Christian Biesinger <cbiesinger@google.com>
12671
12672 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
12673
f6480e70
MR
126742020-02-05 Maciej W. Rozycki <macro@wdc.com>
12675
12676 * nat/riscv-linux-tdesc.h: New file.
12677 * nat/riscv-linux-tdesc.c: New file, taking code from...
12678 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
12679 ... here.
12680 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
12681 NATDEPFILES.
12682
dcc9fbc6
AB
126832020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
12684
12685 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
12686 we don't set the fake simulator ptid to the null_ptid.
12687
719546c4
SM
126882020-02-03 Simon Marchi <simon.marchi@efficios.com>
12689
12690 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
12691 * gdbthread.h (class thread_info) <resumed>: Likewise.
12692 * infrun.c (resume_1): Likewise.
12693 (proceed): Likewise.
12694 (infrun_thread_stop_requested): Likewise.
12695 (stop_all_threads): Likewise.
12696 (handle_inferior_event): Likewise.
12697 (restart_threads): Likewise.
12698 (finish_step_over): Likewise.
12699 (keep_going_stepped_thread): Likewise.
12700 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
12701 (linux_handle_extended_wait): Likewise.
12702 * record-btrace.c (get_thread_current_frame_id): Likewise.
12703 * record-full.c (record_full_wait_1): Likewise.
12704 * remote.c (remote_target::process_initial_stop_replies): Likewise.
12705 * target.c (target_resume): Likewise.
12706 * thread.c (set_running_thread): Likewise.
12707
e409c542
AKS
127082020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
12709
12710 * f-valprint.c (f77_print_array_1): Changed datatype of index
12711 variable to LONGEST from int to enable it to contain bound
12712 values correctly.
12713
ee98c0da
MR
127142020-02-03 Maciej W. Rozycki <macro@wdc.com>
12715
12716 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
12717 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
12718 offsets according to FLEN determined.
12719 (riscv_linux_nat_target::read_description): Determine FLEN
12720 dynamically.
12721 (riscv_linux_nat_target::fetch_registers): Size regset buffer
12722 according to FLEN determined.
12723 (riscv_linux_nat_target::store_registers): Likewise.
12724
aa66aac4
SV
127252020-02-01 Shahab Vahedi <shahab@synopsys.com>
12726
12727 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
12728 when reg->group is empty and reggroup is not.
12729
fd9faca8
TT
127302020-01-31 Tom Tromey <tromey@adacore.com>
12731
12732 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
12733 Call beneath target's mourn_inferior after unpushing.
12734
42330a68
AB
127352020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
12736
12737 PR tui/9765
12738 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
12739 have enough lines to fill the screen, still return the lowest
12740 address we found.
12741
7a27a45b
AB
127422020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
12743
12744 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
12745 '-', '<', and '>' commands.
12746
c47f70e2
PA
127472020-01-29 Pedro Alves <palves@redhat.com>
12748 Sergio Durigan Junior <sergiodj@redhat.com>
12749
12750 * infcmd.c (construct_inferior_arguments): Assert that
12751 'argc' is greater than 0.
12752
5133a315
LM
127532020-01-29 Luis Machado <luis.machado@linaro.org>
12754
12755 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
12756 (BRK_INSN_MASK): Define to 0xd4200000.
12757 (aarch64_program_breakpoint_here_p): New function.
12758 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
12759 * arch-utils.c (default_program_breakpoint_here_p): Moved from
12760 breakpoint.c.
12761 * arch-utils.h (default_program_breakpoint_here_p): Moved from
12762 breakpoint.h
12763 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
12764 call gdbarch_program_breakpoint_here_p.
12765 (program_breakpoint_here): Moved to arch-utils.c, renamed to
12766 default_program_breakpoint_here_p, changed return type to bool and
12767 simplified.
12768 * breakpoint.h (program_breakpoint_here): Moved prototype to
12769 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
12770 return type to bool.
12771 * gdbarch.c: Regenerate.
12772 * gdbarch.h: Regenerate.
12773 * gdbarch.sh (program_breakpoint_here_p): New method.
12774 * infrun.c (handle_signal_stop): Call
12775 gdbarch_program_breakpoint_here_p.
12776
168f8c6b
TT
127772020-01-26 Tom Tromey <tom@tromey.com>
12778
12779 * ctfread.c (struct ctf_fp_info): Reindent.
12780 (_initialize_ctfread): Remove.
12781
128a391f
TT
127822020-01-26 Tom Tromey <tom@tromey.com>
12783
12784 * psymtab.c (partial_map_expand_apply)
12785 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
12786 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
12787 (psym_print_stats, psym_expand_symtabs_for_function)
12788 (psym_map_symbol_filenames, psym_map_matching_symbols)
12789 (psym_expand_symtabs_matching)
12790 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
12791 (maintenance_check_psymtabs): Use new methods.
12792 * psympriv.h (struct partial_symtab) <readin_p,
12793 get_compunit_symtab>: New methods.
12794 <readin, compunit_symtab>: Remove members.
12795 (struct standard_psymtab): New.
12796 (struct legacy_psymtab): Derive from standard_psymtab.
12797 * dwarf2read.h (struct dwarf2_psymtab): Derive from
12798 standard_psymtab.
12799 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
12800
0494dbec
TT
128012020-01-26 Tom Tromey <tom@tromey.com>
12802
12803 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
12804 read_dependencies. Add assert.
12805 * psymtab.c (partial_symtab::read_dependencies): New method.
12806 * psympriv.h (struct partial_symtab) <read_dependencies>: New
12807 method.
12808 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
12809 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
12810 read_dependencies.
12811 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
12812 Add assert.
12813
8566b89b
TT
128142020-01-26 Tom Tromey <tom@tromey.com>
12815
12816 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
12817 Call expand_psymtab.
12818 (xcoff_read_symtab): Call expand_psymtab.
12819 (xcoff_start_psymtab, xcoff_end_psymtab): Set
12820 legacy_expand_psymtab.
12821 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
12822 method.
12823 (struct legacy_psymtab) <expand_psymtab>: Implement.
12824 <legacy_expand_psymtab>: New member.
12825 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
12826 (parse_partial_symbols): Set legacy_expand_psymtab.
12827 (psymtab_to_symtab_1): Change argument order. Call
12828 expand_psymtab.
12829 (new_psymtab): Set legacy_expand_psymtab.
12830 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
12831 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
12832 expand_psymtab.
12833 (dwarf2_psymtab::expand_psymtab): Rename from
12834 psymtab_to_symtab_1. Call expand_psymtab.
12835 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
12836 (dbx_end_psymtab): Likewise.
12837 (dbx_psymtab_to_symtab_1): Change argument order. Call
12838 expand_psymtab.
12839 (dbx_read_symtab): Call expand_psymtab.
12840 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
12841 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
12842 (ctf_psymtab::read_symtab): Call expand_psymtab.
12843
077cbab2
TT
128442020-01-26 Tom Tromey <tom@tromey.com>
12845
12846 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
12847 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
12848 messages.
12849 * mdebugread.c (mdebug_read_symtab): Remove prints.
12850 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
12851 assert.
12852 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
12853
891813be
TT
128542020-01-26 Tom Tromey <tom@tromey.com>
12855
12856 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
12857 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
12858 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
12859 legacy_symtab.
12860 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
12861 * psymtab.c (psymtab_to_symtab): Call method.
12862 (dump_psymtab): Update.
12863 * psympriv.h (struct partial_symtab): Add virtual destructor.
12864 <read_symtab>: New method.
12865 (struct legacy_symtab): New.
12866 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
12867 (struct pst_map) <pst>: Now a legacy_psymtab.
12868 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
12869 (new_psymtab): Use legacy_psymtab.
12870 * dwarf2read.h (struct dwarf2_psymtab): New.
12871 (struct dwarf2_per_cu_data) <psymtab>: Use it.
12872 * dwarf2read.c (dwarf2_create_include_psymtab)
12873 (dwarf2_build_include_psymtabs, create_type_unit_group)
12874 (create_partial_symtab, process_psymtab_comp_unit_reader)
12875 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
12876 (set_partial_user): Use dwarf2_psymtab.
12877 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
12878 (psymtab_to_symtab_1, process_full_comp_unit)
12879 (process_full_type_unit, dwarf2_ranges_read)
12880 (dwarf2_get_pc_bounds, psymtab_include_file_name)
12881 (dwarf_decode_lines): Use dwarf2_psymtab.
12882 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
12883 (add_address_entry_worker, write_one_signatured_type)
12884 (recursively_count_psymbols, recursively_write_psymbols)
12885 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
12886 (write_debug_names): Likewise.
12887 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
12888 <pst>: Now a legacy_psymtab.
12889 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
12890 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
12891 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
12892 * ctfread.c (struct ctf_psymtab): New.
12893 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
12894 ctf_psymtab.
12895 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
12896 (create_partial_symtab): Return a ctf_psymtab.
12897 (scan_partial_symbols): Update.
12898
c3693a1d
TT
128992020-01-26 Tom Tromey <tom@tromey.com>
12900
12901 * xcoffread.c (xcoff_start_psymtab): Use new.
12902 * psymtab.c (partial_symtab::partial_symtab): New constructor,
12903 renamed from start_psymtab_common.
12904 * psympriv.h (struct partial_symtab): Add new constructor.
12905 (start_psymtab_common): Don't declare.
12906 * mdebugread.c (parse_partial_symbols): Use new.
12907 * dwarf2read.c (create_partial_symtab): Use new.
12908 * dbxread.c (start_psymtab): Use new.
12909 * ctfread.c (create_partial_symtab): Use new.
12910
32caafd0
TT
129112020-01-26 Tom Tromey <tom@tromey.com>
12912
12913 * xcoffread.c (xcoff_end_psymtab): Use new.
12914 * psymtab.c (start_psymtab_common): Use new.
12915 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
12916 Update.
12917 * psympriv.h (struct partial_symtab): Add parameters to
12918 constructor. Don't inline.
12919 (allocate_psymtab): Don't declare.
12920 * mdebugread.c (new_psymtab): Use new.
12921 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
12922 * dbxread.c (dbx_end_psymtab): Use new.
12923
abaa2f23
TT
129242020-01-26 Tom Tromey <tom@tromey.com>
12925
12926 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
12927 allocate_psymtab. Update documentation.
12928 * psymtab.c (psymtab_storage::install_psymtab): Rename from
12929 allocate_psymtab. Do not use new.
12930 (allocate_psymtab): Use new. Update.
12931
6d94535f
TT
129322020-01-26 Tom Tromey <tom@tromey.com>
12933
12934 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
12935 * psymtab.c (psym_print_stats): Update.
12936 * psympriv.h (struct partial_symtab) <readin,
12937 psymtabs_addrmap_supported, anonymous>: Now bool.
12938 * mdebugread.c (psymtab_to_symtab_1): Update.
12939 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
12940 (build_type_psymtabs_reader, psymtab_to_symtab_1)
12941 (process_full_comp_unit, process_full_type_unit): Update.
12942 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
12943 * ctfread.c (psymtab_to_symtab): Update.
12944
6f17252b
TT
129452020-01-26 Tom Tromey <tom@tromey.com>
12946
12947 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
12948 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
12949 * psymtab.c (psymtab_storage): Delete psymtabs.
12950 (psymtab_storage::allocate_psymtab): Use new.
12951 (psymtab_storage::discard_psymtab): Use delete.
12952 * psympriv.h (struct partial_symtab): Add constructor and
12953 initializers.
12954
f6f1cebc
TT
129552020-01-26 Tom Tromey <tom@tromey.com>
12956
12957 * machoread.c: Do not include psympriv.h.
12958
e47e48f6
PW
129592020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12960
12961 * NEWS: Mention the new option and the set/show commands.
12962
a2fedca9
PW
129632020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12964
12965 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
12966 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
12967 (validate_exec_file): New variables, enums, functions.
12968 (exec_file_locate_attach, print_section_info): Style the filenames.
12969 (_initialize_exec): Install show_exec_file_mismatch_command and
12970 set_exec_file_mismatch_command.
12971 * gdbcore.h (validate_exec_file): Declare.
12972 * infcmd.c (attach_command): Call validate_exec_file.
12973 * remote.c ( remote_target::remote_add_inferior): Likewise.
12974
7ffa82e1
AB
129752020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12976
12977 * frame.c (find_frame_sal): Move call to get_next_frame into more
12978 inner scope.
12979 * inline-frame.c (inilne_state) <inline_state>: Update argument
12980 types.
12981 (inilne_state) <skipped_symbol>: Rename to...
12982 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
12983 (skip_inline_frames): Build vector of skipped symbols and use this
12984 to reate the inline_state.
12985 (inline_skipped_symbol): Add a comment and some assertions, fetch
12986 skipped symbol from the list.
12987
3d92a3e3
AB
129882020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12989
12990 * buildsym.c (lte_is_less_than): Delete.
12991 (buildsym_compunit::end_symtab_with_blockvector): Create local
12992 lambda function to sort line table entries, and use
12993 std::stable_sort instead of std::sort.
12994 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
12995 markers when looking for a previous line.
12996
94a72be7
AB
129972020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12998
12999 * dwarf2read.c (lnp_state_machine::record_line): Include
13000 end_sequence parameter in debug print out. Record the line if we
13001 are at an end_sequence marker even if it's not the start of a
13002 statement.
13003 * symmisc.c (maintenance_print_one_line_table): Print end of
13004 sequence markers with 'END' not '0'.
13005
53af73bf
PA
130062020-01-24 Pedro Alves <palves@redhat.com>
13007
13008 PR gdb/25410
13009 * thread.c (scoped_restore_current_thread::restore): Use
13010 switch_to_inferior_no_thread.
13011 * exec.c: Include "progspace-and-thread.h".
13012 (add_target_sections, remove_target_sections):
13013 scoped_restore_current_pspace_and_thread instead of
13014 scoped_restore_current_thread.
13015 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
13016 and aspace to the inferior before calling clone_program_space.
13017 Remove stale comment.
13018
3050c6f4
CB
130192020-01-24 Christian Biesinger <cbiesinger@google.com>
13020
13021 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
13022 (arm_netbsd_nat_target::fetch_registers): ...this.
13023 (arm_nbsd_nat_target::store_registers): Rename to...
13024 (arm_netbsd_nat_target::store_registers): ...this.
13025
73685c7e
CB
130262020-01-24 Christian Biesinger <cbiesinger@google.com>
13027
13028 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13029 register_t.
13030
89203d40
CB
130312020-01-24 Christian Biesinger <cbiesinger@google.com>
13032
13033 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
13034 Update comment.
13035 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
13036 Likewise.
13037 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
13038 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
13039 the correct replacement (iterate_over_regset_sections).
13040 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
13041 Update comment.
13042
1ba1ac88
AB
130432020-01-24 Graham Markall <graham.markall@embecosm.com>
13044
13045 PR gdb/23718
13046 * gdb/python/python.c (execute_gdb_command): Call
13047 async_enable_stdin in catch block.
13048
f3364a6d
AB
130492020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13050
13051 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
13052 SWITCH_THRU_ALL_UIS.
13053
733d0a67
AB
130542020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13055
13056 PR tui/9765
13057 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
13058 comment, add extra parameter, and update to store previous symbol
13059 when appropriate.
13060 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
13061 add extra parameter.
13062 * tui/tui-disasm.c (tui_disassemble): Update header comment,
13063 remove unneeded parameter, add try/catch around gdb_print_insn,
13064 rewrite to add items to asm_lines vector.
13065 (tui_find_backward_disassembly_start_address): New function.
13066 (tui_find_disassembly_address): Updated throughout.
13067 (tui_disasm_window::set_contents): Update for changes to
13068 tui_disassemble.
13069 (tui_disasm_window::do_scroll_vertical): No need to adjust the
13070 number of lines to scroll.
13071
b3b3bada
SM
130722020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
13073
13074 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
13075 (SECT_OFF_DATA): Likewise.
13076 (SECT_OFF_RODATA): Likewise.
13077 (SECT_OFF_TEXT): Likewise.
13078 (SECT_OFF_BSS): Likewise.
13079 (struct objfile) <text_section_offset, data_section_offset>: New
13080 methods.
13081 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
13082 objfile::text_section_offset.
13083 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
13084 * coffread.c (coff_symtab_read): Likewise.
13085 (enter_linenos): Likewise.
13086 (process_coff_symbol): Likewise.
13087 * ctfread.c (get_objfile_text_range): Likewise.
13088 * dtrace-probe.c (dtrace_probe::get_relocated_address):
13089 Use objfile::data_section_offset.
13090 * dwarf2-frame.c (execute_cfa_program): Use
13091 objfile::text_section_offset.
13092 (dwarf2_frame_find_fde): Likewise.
13093 * dwarf2read.c (create_addrmap_from_index): Likewise.
13094 (create_addrmap_from_aranges): Likewise.
13095 (dw2_find_pc_sect_compunit_symtab): Likewise.
13096 (process_psymtab_comp_unit_reader): Likewise.
13097 (add_partial_symbol): Likewise.
13098 (add_partial_subprogram): Likewise.
13099 (process_full_comp_unit): Likewise.
13100 (read_file_scope): Likewise.
13101 (read_func_scope): Likewise.
13102 (read_lexical_block_scope): Likewise.
13103 (read_call_site_scope): Likewise.
13104 (dwarf2_rnglists_process): Likewise.
13105 (dwarf2_ranges_process): Likewise.
13106 (dwarf2_ranges_read): Likewise.
13107 (dwarf_decode_lines_1): Likewise.
13108 (new_symbol): Likewise.
13109 (dwarf2_fetch_die_loc_sect_off): Likewise.
13110 (dwarf2_per_cu_text_offset): Likewise.
13111 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
13112 * hppa-tdep.c (read_unwind_info): Likewise.
13113 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
13114 * psympriv.h (struct partial_symtab): Likewise.
13115 * psymtab.c (find_pc_sect_psymtab): Likewise.
13116 * solib-svr4.c (enable_break): Likewise.
13117 * stap-probe.c (relocate_address): Use
13118 objfile::data_section_offset.
13119 * xcoffread.c (enter_line_range): Use
13120 objfile::text_section_offset.
13121 (read_xcoff_symtab): Likewise.
13122
ab53f382
SM
131232020-01-23 Simon Marchi <simon.marchi@efficios.com>
13124
13125 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
13126 declaration to narrower scopes.
13127
e7eee665
SM
131282020-01-23 Simon Marchi <simon.marchi@efficios.com>
13129
13130 * darwin-nat.h (struct darwin_exception_msg, enum
13131 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
13132 Move up.
13133 (class darwin_nat_target) <wait_1, check_new_threads,
13134 decode_exception_message, decode_message, stop_inferior,
13135 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
13136 * darwin-nat.c (darwin_check_new_threads): Rename to...
13137 (darwin_nat_target::check_new_threads): ... this.
13138 (darwin_suspend_inferior_it): Remove.
13139 (darwin_decode_exception_message): Rename to...
13140 (darwin_nat_target::decode_exception_message): ... this.
13141 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
13142 (darwin_decode_message): Rename to...
13143 (darwin_nat_target::decode_message): ... this.
13144 (cancel_breakpoint): Rename to...
13145 (darwin_nat_target::cancel_breakpoint): ... this.
13146 (darwin_wait): Rename to...
13147 (darwin_nat_target::wait_1): ... this. Use range-based for loop
13148 instead of iterate_over_inferiors.
13149 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
13150 (darwin_stop_inferior): Rename to...
13151 (darwin_nat_target::stop_inferior): ... this.
13152 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
13153 (darwin_init_thread_list): Rename to...
13154 (darwin_nat_target::init_thread_list): ... this.
13155 (darwin_ptrace_him): Rename to...
13156 (darwin_nat_target::ptrace_him): ... this.
13157 (darwin_nat_target::create_inferior): Pass lambda function to
13158 fork_inferior.
13159 (darwin_nat_target::detach): Call stop_inferior instead of
13160 darwin_stop_inferior.
13161 * fork-inferior.h (fork_inferior): Change init_trace_fun
13162 parameter to gdb::function_view.
13163 * fork-inferior.c (fork_inferior): Likewise.
13164
c162ed3e
HD
131652020-01-23 Hannes Domani <ssbssa@yahoo.de>
13166
13167 * i386-cygwin-tdep.c (core_process_module_section): Update.
13168 * windows-nat.c (struct lm_info_windows): Add text_offset.
13169 (windows_xfer_shared_libraries): Update.
13170 * windows-tdep.c (windows_xfer_shared_library):
13171 Add text_offset_cached argument.
13172 * windows-tdep.h (windows_xfer_shared_library): Update.
13173
a1237872
SM
131742020-01-21 Simon Marchi <simon.marchi@efficios.com>
13175
13176 * gdbarch.sh: Add declaration for _initialize_gdbarch.
13177
b3ee6dd9
SM
131782020-01-21 Simon Marchi <simon.marchi@efficios.com>
13179
13180 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
13181 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
13182 replace with range-based for.
13183 (gdbsim_interrupt_inferior): Remove.
13184 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
13185 with a range-based for. Inline code from
13186 gdbsim_interrupt_inferior.
13187
f9fac3c8
SM
131882020-01-21 Simon Marchi <simon.marchi@efficios.com>
13189
13190 * infrun.c (proceed): Fix indentation.
13191
f6474de9
TT
131922020-01-21 Tom Tromey <tromey@adacore.com>
13193
13194 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
13195 * python/python.c (python_extension_ops): Update.
13196 (gdbpy_colorize): New function.
13197 * python/lib/gdb/__init__.py (colorize): New function.
13198 * extension.h (ext_lang_colorize): Declare.
13199 * extension.c (ext_lang_colorize): New function.
13200 * extension-priv.h (struct extension_language_ops) <colorize>: New
13201 member.
13202 * cli/cli-style.c (_initialize_cli_style): Update help text.
13203
f0c702d4
LM
132042020-01-21 Luis Machado <luis.machado@linaro.org>
13205
13206 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
13207 <cond>: Change type to bool.
13208 (aarch64_displaced_step_b_cond): Update cond to use bool type.
13209 (aarch64_displaced_step_cb): Likewise.
13210 (aarch64_displaced_step_tb): Likewise.
13211
1ab139e5
LM
132122020-01-21 Luis Machado <luis.machado@linaro.org>
13213
13214 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
13215 output.
13216
0c271889
LM
132172020-01-21 Luis Machado <luis.machado@linaro.org>
13218
13219 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
13220 <pc_adjust>: Adjust the documentation.
13221 (aarch64_displaced_step_fixup): Check if PC really moved before
13222 adjusting it.
13223
4d89c1c7
TT
132242020-01-19 Tom Tromey <tom@tromey.com>
13225
13226 * disasm.c (~gdb_disassembler): New destructor.
13227 (gdb_buffered_insn_length): Call disassemble_free_target.
13228 * disasm.h (class gdb_disassembler): Declare destructor. Use
13229 DISABLE_COPY_AND_ASSIGN.
13230
c0ab21c2
TT
132312020-01-19 Tom Tromey <tom@tromey.com>
13232
13233 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
13234 (die_reader_func_ftype): Remove.
13235 (cutu_reader): New class.
13236 (dw2_get_file_names_reader): Remove "data" parameter.
13237 (dw2_get_file_names): Use cutu_reader.
13238 (create_debug_type_hash_table): Update.
13239 (read_cutu_die_from_dwo): Update comment.
13240 (lookup_dwo_unit): Add dwo_name parameter.
13241 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
13242 die_reader_func_ftype and data parameters.
13243 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
13244 Remove die_reader_func_ftype and data parameters.
13245 (~cutu_reader): New; from init_cutu_and_read_dies.
13246 (cutu_reader::cutu_reader): Rename from
13247 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
13248 and data parameters.
13249 (init_cutu_and_read_dies_simple): Remove.
13250 (struct process_psymtab_comp_unit_data): Remove.
13251 (process_psymtab_comp_unit_reader): Remove data parameter; add
13252 want_partial_unit and pretend_language parameters.
13253 (process_psymtab_comp_unit): Use cutu_reader.
13254 (build_type_psymtabs_reader): Remove data parameter.
13255 (build_type_psymtabs_1): Use cutu_reader.
13256 (process_skeletonless_type_unit): Likewise.
13257 (load_partial_comp_unit_reader): Remove.
13258 (load_partial_comp_unit): Use cutu_reader.
13259 (load_full_comp_unit_reader): Remove.
13260 (load_full_comp_unit): Use cutu_reader.
13261 (struct create_dwo_cu_data): Remove.
13262 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
13263 dwo_unit parameters.
13264 (create_cus_hash_table): Use cutu_reader.
13265 (struct dwarf2_read_addr_index_data): Remove.
13266 (dwarf2_read_addr_index_reader): Remove.
13267 (dwarf2_read_addr_index): Use cutu_reader.
13268 (read_signatured_type_reader): Remove.
13269 (read_signatured_type): Use cutu_reader.
13270
45bbae5c
TT
132712020-01-19 Tom Tromey <tom@tromey.com>
13272
13273 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
13274 * tui/tui-wingeneral.h (class tui_suppress_output): New.
13275 (tui_wrefresh): Declare.
13276 * tui/tui-wingeneral.c (suppress_output): New global.
13277 (tui_suppress_output, ~tui_suppress_output): New constructor and
13278 destructor.
13279 (tui_wrefresh): New function.
13280 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
13281 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
13282 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
13283 method.
13284 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
13285 tui_wrefresh.
13286 (tui_data_window::no_refresh): New method.
13287 (tui_data_item_window::refresh_window): Call tui_wrefresh.
13288 (tui_reg_command): Use tui_suppress_output
13289 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
13290 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
13291 method.
13292 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
13293
4f13c1c0
TT
132942020-01-19 Tom Tromey <tom@tromey.com>
13295
13296 * tui/tui-winsource.c (tui_update_source_windows_with_line):
13297 Handle case where symtab is null.
13298
fa47e446
SM
132992020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
13300
13301 * linux-fork.c (one_fork_p): Simplify.
13302
26f42329
SM
133032020-01-17 Simon Marchi <simon.marchi@efficios.com>
13304
13305 * top.c (struct qt_args): Remove.
13306 (kill_or_detach): Change return type to void, replace `void *`
13307 parameter with a proper one.
13308 (print_inferior_quit_action): Likewise.
13309 (quit_confirm): Use range-based for loop to iterate over inferiors.
13310 (quit_force): Likewise.
13311
a9ac81b1
SM
133122020-01-17 Simon Marchi <simon.marchi@efficios.com>
13313
13314 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
13315 `void *` parameter with proper parameters.
13316 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
13317 (print_one_inferior): Change return type to void, replace `void *`
13318 parameter with proper parameters.
13319 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
13320 inferiors.
13321 (get_other_inferior): Remove.
13322 (mi_cmd_remove_inferior): Use range-based loop to iterate over
13323 inferiors.
13324
788eca49
SM
133252020-01-17 Simon Marchi <simon.marchi@efficios.com>
13326
13327 * mi/mi-interp.c (report_initial_inferior): Remove.
13328 (mi_interp::init): Use range-based for to iterate over inferiors.
13329
d9bc85b6
SM
133302020-01-17 Simon Marchi <simon.marchi@efficios.com>
13331
13332 * python/py-inferior.c (build_inferior_list): Remove.
13333 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
13334
40c94099
CB
133352020-01-16 Christian Biesinger <cbiesinger@google.com>
13336
13337 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
13338 (btrace_stitch_trace): Likewise.
13339 * charset.c (intermediate_encoding): Likewise (vaild).
13340 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
13341 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
13342 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
13343
e0cdfe3c
HD
133442020-01-16 Hannes Domani <ssbssa@yahoo.de>
13345
13346 * windows-tdep.c (windows_get_tlb_type):
13347 Add rtl_user_process_parameters type.
13348
790f1718 133492020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 13350 Norbert Lange <nolange79@gmail.com>
790f1718
PA
13351
13352 PR build/24805
13353 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
13354 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
13355 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
13356 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
13357 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
13358 (ps_plog): Redeclare exported functions with default visibility.
13359
3112ed97
NA
133602020-01-16 Nitika Achra <Nitika.Achra@amd.com>
13361
13362 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
13363 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
13364
8dc3273e
SM
133652020-01-15 Simon Marchi <simon.marchi@efficios.com>
13366
13367 * infcmd.c (post_create_inferior): Use get_thread_regcache
13368 instead of get_current_regcache.
13369
ff47f4f0
TT
133702020-01-14 Tom Tromey <tom@tromey.com>
13371
13372 PR symtab/12535:
13373 * python/python.c (gdbpy_decode_line): Treat empty string the same
13374 as no argument.
13375
975f45b7
TT
133762020-01-14 Tom Tromey <tom@tromey.com>
13377
13378 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
13379
25e57356
TT
133802020-01-14 Tom Tromey <tom@tromey.com>
13381
13382 * nat/linux-btrace.c: Don't include <config.h>.
13383 * nat/linux-ptrace.c: Don't include <config.h>.
13384 * nat/x86-linux-dregs.c: Don't include <config.h>.
13385
05ea2a05
TT
133862020-01-14 Tom Tromey <tom@tromey.com>
13387
13388 * configure: Rebuild.
13389 * configure.ac: Move many checks to ../gdbsupport/common.m4.
13390
01027315
TT
133912020-01-14 Tom Tromey <tom@tromey.com>
13392
13393 * nat/x86-linux-dregs.c: Include configh.h.
13394 * nat/linux-ptrace.c: Include configh.h.
13395 * nat/linux-btrace.c: Include configh.h.
13396 * defs.h: Include config.h, bfd.h.
13397 * configure.ac: Don't source common.host.
13398 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
13399 * configure: Rebuild.
13400 * acinclude.m4: Update path.
13401 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
13402 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
13403 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
13404 (CLIBS): Add LIBSUPPORT.
13405 (CDEPS): Likewise.
13406 (COMMON_SFILES): Remove gdbsupport files.
13407 (HFILES_NO_SRCDIR): Likewise.
13408 (stamp-version): Update path to create-version.sh.
13409 (ALLDEPFILES): Remove gdbsupport files.
13410
b2ceabe8
TT
134112020-01-14 Tom Tromey <tom@tromey.com>
13412
13413 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
13414 USE_WIN32API when needed.
13415 * configure.ac (USE_WIN32API): Don't define.
13416 (WIN32LIBS): Use WIN32APILIBS.
13417 * configure: Rebuild.
13418
25c51f71
TT
134192020-01-14 Tom Tromey <tom@tromey.com>
13420
13421 * configure: Rebuild.
13422 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
13423
717c684d
BE
134242020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
13425
13426 * skip.c (skip_function_command): Make skip w/o arguments use the
13427 name of the inlined function if pc is inside any inlined function.
13428
7da6a5b9
LM
134292020-01-14 Luis Machado <luis.machado@linaro.org>
13430
13431 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
13432 * infrun.c (resume_1): Likewise.
13433 (handle_inferior_event): Remove stale comment.
13434 * linux-nat.c (linux_nat_target::resume): Update comments.
13435 (save_stop_reason): Likewise.
13436 (linux_nat_filter_event): Likewise.
13437 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
13438
44e4c775
AB
134392020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
13440
13441 * elfread.c (record_minimal_symbol): Set section index to 0 for
13442 non-allocatable sections.
13443
18a8505e
AT
13444
134452020-01-13 Ali Tamur <tamur@google.com>
13446
13447 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
13448 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
13449 to gdb::optional. Update comments.
13450 (dwo_file): Update comments.
13451 (read_attribute): Update API to take an additional out parameter,
13452 need_reprocess. This is used to mark attributes that need other
13453 attributes (e.g. str_offsets_base) for correct computation which may not
13454 have been read yet.
13455 (read_attribute_reprocess): New function declaration.
13456 (read_addr_index): Likewise.
13457 (read_dwo_str_index): Likewise.
13458 (read_stub_str_index): Likewise.
13459 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
13460 (lookup_addr_base): New function definition.
13461 (lookup_ranges_base): Likewise.
13462 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
13463 lookup_ranges_base.
13464 (init_cutu_and_read_dies): Update comments.
13465 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
13466 unit. This is used to inherit parent's str_offsets_base and addr_base.
13467 Update comments.
13468 (init_cutu_and_read_dies_simple): Reflect API changes.
13469 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
13470 (create_cus_hash_table): Change API to take parent compile unit.
13471 Reflect API changes.
13472 (open_and_init_dwo_file): Reflect API changes.
13473 (dwarf2_get_pc_bounds): Update comments.
13474 (dwarf2_record_block_ranges): Likewise.
13475 (read_full_die_1): Change implementation to reprocess attributes that
13476 need str_offsets_base and addr_base.
13477 (partial_die_info::read): Likewise.
13478 (read_attribute_reprocess): New function definition.
13479 (read_attribute_value): Change API to take an additional out parameter,
13480 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
13481 when a non-dwo compile unit has index based attributes.
13482 (read_attribute): Reflect API changes.
13483 (read_addr_index_1): Reflect API changes. Update comments.
13484 (dwarf2_read_addr_index_data): Reflect API changes.
13485 (dwarf2_read_addr_index): Likewise.
13486 (read_str_index): Change API and implementation. This becomes a helper
13487 to be used by the new string index related methods. Update error
13488 message and comments.
13489 (read_dwo_str_index): New function definition.
13490 (read_stub_str_index): Likewise.
13491 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
13492 * symfile.h (dwarf2_debug_sections): Likewise.
13493 * xcoffread.c (dwarf2_debug_sections): Likewise.
13494
0cac9354
SM
134952020-01-13 Simon Marchi <simon.marchi@efficios.com>
13496
13497 * gdbcore.h (struct core_fns) <core_read_registers>: Change
13498 core_reg_sect type to gdb_byte *.
13499 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
13500 * cris-tdep.c (fetch_core_registers): Likewise.
13501 * corelow.c (core_target::get_core_register_section): Change
13502 type of `contents` to gdb::byte_vector.
13503
9a6d629c
AB
135042020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
13505
13506 * tui/tui-wingeneral.c (box_win): Position the title in the center
13507 of the border.
13508
d8b2f9e3
SM
135092020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13510
13511 * corelow.c (core_target::get_core_register_section): Use
13512 std::vector instead of alloca.
13513
bb564c58
SM
135142020-01-13 Simon Marchi <simon.marchi@efficios.com>
13515
13516 * warning.m4: Add -Wmissing-declarations to build_warnings.
13517 * configure: Re-generate.
13518
6b366111
SM
135192020-01-13 Simon Marchi <simon.marchi@efficios.com>
13520
13521 * python/python.c (init__gdb_module): Add declaration.
13522
6c265988
SM
135232020-01-13 Simon Marchi <simon.marchi@efficios.com>
13524
13525 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
13526 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
13527 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
13528 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
13529 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
13530 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
13531 * ada-exp.y (_initialize_ada_exp): Add declaration.
13532 * ada-lang.c (_initialize_ada_language): Add declaration.
13533 * ada-tasks.c (_initialize_tasks): Add declaration.
13534 * agent.c (_initialize_agent): Add declaration.
13535 * aix-thread.c (_initialize_aix_thread): Add declaration.
13536 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
13537 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
13538 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
13539 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
13540 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
13541 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
13542 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
13543 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
13544 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
13545 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
13546 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
13547 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
13548 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
13549 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
13550 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
13551 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
13552 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
13553 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
13554 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
13555 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
13556 * annotate.c (_initialize_annotate): Add declaration.
13557 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
13558 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
13559 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
13560 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
13561 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
13562 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
13563 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
13564 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
13565 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
13566 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
13567 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
13568 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
13569 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
13570 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
13571 * auto-load.c (_initialize_auto_load): Add declaration.
13572 * auxv.c (_initialize_auxv): Add declaration.
13573 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
13574 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
13575 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
13576 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
13577 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
13578 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
13579 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
13580 * breakpoint.c (_initialize_breakpoint): Add declaration.
13581 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
13582 * btrace.c (_initialize_btrace): Add declaration.
13583 * charset.c (_initialize_charset): Add declaration.
13584 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
13585 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
13586 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
13587 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
13588 * cli/cli-script.c (_initialize_cli_script): Add declaration.
13589 * cli/cli-style.c (_initialize_cli_style): Add declaration.
13590 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
13591 * coffread.c (_initialize_coffread): Add declaration.
13592 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
13593 * compile/compile.c (_initialize_compile): Add declaration.
13594 * complaints.c (_initialize_complaints): Add declaration.
13595 * completer.c (_initialize_completer): Add declaration.
13596 * copying.c (_initialize_copying): Add declaration.
13597 * corefile.c (_initialize_core): Add declaration.
13598 * corelow.c (_initialize_corelow): Add declaration.
13599 * cp-abi.c (_initialize_cp_abi): Add declaration.
13600 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
13601 * cp-support.c (_initialize_cp_support): Add declaration.
13602 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
13603 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
13604 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
13605 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
13606 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
13607 * ctfread.c (_initialize_ctfread): Add declaration.
13608 * d-lang.c (_initialize_d_language): Add declaration.
13609 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
13610 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
13611 * dbxread.c (_initialize_dbxread): Add declaration.
13612 * dcache.c (_initialize_dcache): Add declaration.
13613 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
13614 * disasm.c (_initialize_disasm): Add declaration.
13615 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
13616 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
13617 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
13618 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
13619 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
13620 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
13621 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
13622 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
13623 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
13624 * elfread.c (_initialize_elfread): Add declaration.
13625 * exec.c (_initialize_exec): Add declaration.
13626 * extension.c (_initialize_extension): Add declaration.
13627 * f-lang.c (_initialize_f_language): Add declaration.
13628 * f-valprint.c (_initialize_f_valprint): Add declaration.
13629 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
13630 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
13631 * filesystem.c (_initialize_filesystem): Add declaration.
13632 * findcmd.c (_initialize_mem_search): Add declaration.
13633 * findvar.c (_initialize_findvar): Add declaration.
13634 * fork-child.c (_initialize_fork_child): Add declaration.
13635 * frame-base.c (_initialize_frame_base): Add declaration.
13636 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
13637 * frame.c (_initialize_frame): Add declaration.
13638 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
13639 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
13640 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
13641 * gcore.c (_initialize_gcore): Add declaration.
13642 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
13643 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
13644 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
13645 * gdbarch.c (_initialize_gdbarch): Add declaration.
13646 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
13647 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
13648 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
13649 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
13650 * go-lang.c (_initialize_go_language): Add declaration.
13651 * go32-nat.c (_initialize_go32_nat): Add declaration.
13652 * guile/guile.c (_initialize_guile): Add declaration.
13653 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
13654 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
13655 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
13656 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
13657 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
13658 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
13659 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
13660 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
13661 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
13662 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
13663 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
13664 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
13665 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
13666 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
13667 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
13668 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
13669 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
13670 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
13671 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
13672 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
13673 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
13674 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
13675 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
13676 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
13677 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
13678 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
13679 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
13680 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
13681 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
13682 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
13683 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
13684 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
13685 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
13686 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
13687 * infcall.c (_initialize_infcall): Add declaration.
13688 * infcmd.c (_initialize_infcmd): Add declaration.
13689 * inflow.c (_initialize_inflow): Add declaration.
13690 * infrun.c (_initialize_infrun): Add declaration.
13691 * interps.c (_initialize_interpreter): Add declaration.
13692 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
13693 * jit.c (_initialize_jit): Add declaration.
13694 * language.c (_initialize_language): Add declaration.
13695 * linux-fork.c (_initialize_linux_fork): Add declaration.
13696 * linux-nat.c (_initialize_linux_nat): Add declaration.
13697 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
13698 * linux-thread-db.c (_initialize_thread_db): Add declaration.
13699 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
13700 * m2-lang.c (_initialize_m2_language): Add declaration.
13701 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
13702 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
13703 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
13704 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
13705 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
13706 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
13707 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
13708 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
13709 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
13710 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
13711 * machoread.c (_initialize_machoread): Add declaration.
13712 * macrocmd.c (_initialize_macrocmd): Add declaration.
13713 * macroscope.c (_initialize_macroscope): Add declaration.
13714 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
13715 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
13716 * maint.c (_initialize_maint_cmds): Add declaration.
13717 * mdebugread.c (_initialize_mdebugread): Add declaration.
13718 * memattr.c (_initialize_mem): Add declaration.
13719 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
13720 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
13721 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
13722 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
13723 * mi/mi-main.c (_initialize_mi_main): Add declaration.
13724 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
13725 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
13726 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
13727 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
13728 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
13729 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
13730 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
13731 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
13732 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
13733 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
13734 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
13735 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
13736 * mipsread.c (_initialize_mipsread): Add declaration.
13737 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
13738 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
13739 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
13740 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
13741 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
13742 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
13743 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
13744 * nto-procfs.c (_initialize_procfs): Add declaration.
13745 * objc-lang.c (_initialize_objc_language): Add declaration.
13746 * observable.c (_initialize_observer): Add declaration.
13747 * opencl-lang.c (_initialize_opencl_language): Add declaration.
13748 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
13749 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
13750 * osabi.c (_initialize_gdb_osabi): Add declaration.
13751 * osdata.c (_initialize_osdata): Add declaration.
13752 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
13753 * parse.c (_initialize_parse): Add declaration.
13754 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
13755 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
13756 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
13757 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
13758 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
13759 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
13760 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
13761 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
13762 * printcmd.c (_initialize_printcmd): Add declaration.
13763 * probe.c (_initialize_probe): Add declaration.
13764 * proc-api.c (_initialize_proc_api): Add declaration.
13765 * proc-events.c (_initialize_proc_events): Add declaration.
13766 * proc-service.c (_initialize_proc_service): Add declaration.
13767 * procfs.c (_initialize_procfs): Add declaration.
13768 * producer.c (_initialize_producer): Add declaration.
13769 * psymtab.c (_initialize_psymtab): Add declaration.
13770 * python/python.c (_initialize_python): Add declaration.
13771 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
13772 * record-btrace.c (_initialize_record_btrace): Add declaration.
13773 * record-full.c (_initialize_record_full): Add declaration.
13774 * record.c (_initialize_record): Add declaration.
13775 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
13776 * regcache.c (_initialize_regcache): Add declaration.
13777 * reggroups.c (_initialize_reggroup): Add declaration.
13778 * remote-notif.c (_initialize_notif): Add declaration.
13779 * remote-sim.c (_initialize_remote_sim): Add declaration.
13780 * remote.c (_initialize_remote): Add declaration.
13781 * reverse.c (_initialize_reverse): Add declaration.
13782 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
13783 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
13784 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
13785 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
13786 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
13787 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
13788 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
13789 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
13790 Add declaration.
13791 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
13792 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
13793 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
13794 * rust-exp.y (_initialize_rust_exp): Add declaration.
13795 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
13796 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
13797 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
13798 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
13799 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
13800 * score-tdep.c (_initialize_score_tdep): Add declaration.
13801 * ser-go32.c (_initialize_ser_dos): Add declaration.
13802 * ser-mingw.c (_initialize_ser_windows): Add declaration.
13803 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
13804 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
13805 * ser-uds.c (_initialize_ser_socket): Add declaration.
13806 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
13807 * serial.c (_initialize_serial): Add declaration.
13808 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
13809 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
13810 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
13811 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
13812 * skip.c (_initialize_step_skip): Add declaration.
13813 * sol-thread.c (_initialize_sol_thread): Add declaration.
13814 * solib-aix.c (_initialize_solib_aix): Add declaration.
13815 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
13816 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
13817 * solib-frv.c (_initialize_frv_solib): Add declaration.
13818 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
13819 * solib-target.c (_initialize_solib_target): Add declaration.
13820 * solib.c (_initialize_solib): Add declaration.
13821 * source-cache.c (_initialize_source_cache): Add declaration.
13822 * source.c (_initialize_source): Add declaration.
13823 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
13824 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
13825 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
13826 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
13827 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
13828 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
13829 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
13830 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
13831 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
13832 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
13833 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
13834 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
13835 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
13836 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
13837 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
13838 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
13839 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
13840 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
13841 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
13842 * stabsread.c (_initialize_stabsread): Add declaration.
13843 * stack.c (_initialize_stack): Add declaration.
13844 * stap-probe.c (_initialize_stap_probe): Add declaration.
13845 * std-regs.c (_initialize_frame_reg): Add declaration.
13846 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
13847 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
13848 * symfile.c (_initialize_symfile): Add declaration.
13849 * symmisc.c (_initialize_symmisc): Add declaration.
13850 * symtab.c (_initialize_symtab): Add declaration.
13851 * target.c (_initialize_target): Add declaration.
13852 * target-connection.c (_initialize_target_connection): Add
13853 declaration.
13854 * target-dcache.c (_initialize_target_dcache): Add declaration.
13855 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
13856 * thread.c (_initialize_thread): Add declaration.
13857 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
13858 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
13859 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
13860 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
13861 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
13862 * tracectf.c (_initialize_ctf): Add declaration.
13863 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
13864 * tracefile.c (_initialize_tracefile): Add declaration.
13865 * tracepoint.c (_initialize_tracepoint): Add declaration.
13866 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
13867 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
13868 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
13869 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
13870 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
13871 * tui/tui-win.c (_initialize_tui_win): Add declaration.
13872 * tui/tui.c (_initialize_tui): Add declaration.
13873 * typeprint.c (_initialize_typeprint): Add declaration.
13874 * ui-style.c (_initialize_ui_style): Add declaration.
13875 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
13876 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
13877 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
13878 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
13879 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
13880 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
13881 * unittests/filtered_iterator-selftests.c
13882 (_initialize_filtered_iterator_selftests): Add declaration.
13883 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
13884 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
13885 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
13886 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
13887 * unittests/main-thread-selftests.c
13888 (_initialize_main_thread_selftests): Add declaration.
13889 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
13890 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
13891 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
13892 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
13893 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
13894 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
13895 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
13896 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
13897 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
13898 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
13899 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
13900 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
13901 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
13902 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
13903 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
13904 declaration.
13905 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
13906 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
13907 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
13908 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
13909 * user-regs.c (_initialize_user_regs): Add declaration.
13910 * utils.c (_initialize_utils): Add declaration.
13911 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
13912 * valops.c (_initialize_valops): Add declaration.
13913 * valprint.c (_initialize_valprint): Add declaration.
13914 * value.c (_initialize_values): Add declaration.
13915 * varobj.c (_initialize_varobj): Add declaration.
13916 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
13917 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
13918 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
13919 * windows-nat.c (_initialize_windows_nat): Add declaration.
13920 (_initialize_check_for_gdb_ini): Add declaration.
13921 (_initialize_loadable): Add declaration.
13922 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
13923 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
13924 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
13925 * xcoffread.c (_initialize_xcoffread): Add declaration.
13926 * xml-support.c (_initialize_xml_support): Add declaration.
13927 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
13928 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
13929 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
13930 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
13931
e2de1eec
SM
139322020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13933
13934 * regformats/regdat.sh: Generate declaration for init function.
13935
e0037b4c
SM
139362020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13937
13938 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
13939 up.
13940 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
13941 close_one_inferior>: New methods.
13942 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
13943 pass down target to find_inferior_pid.
13944 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
13945 Pass down target to find_inferior_ptid.
13946 (gdbsim_target::create_inferior): Pass down target to
13947 add_thread_silent.
13948 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
13949 target down to find_inferior_ptid and switch_to_thread.
13950 (gdbsim_target::close): Update to call close_one_inferior.
13951 (struct resume_data): Remove.
13952 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
13953 directly, rather than through a void pointer.
13954 (gdbsim_target::resume): Update to call resume_one_inferior.
13955
58920b5b
SM
139562020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
13957
13958 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
13959
4ec89149
PA
139602020-01-12 Pedro Alves <palves@redhat.com>
13961
13962 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
13963 directly for the current inferior instead of
13964 discard_all_inferiors.
13965 (discard_all_inferiors): Delete.
13966
7c392d1d
TT
139672020-01-11 Tom Tromey <tom@tromey.com>
13968
13969 * tui/tui-wingeneral.c (box_win): Check cli_styling.
13970 * tui/tui-winsource.c (tui_source_window_base::refill): Use
13971 deprecated_safe_get_selected_frame.
13972
d9ebdab7
TBA
139732020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13974
13975 * inferior.c (print_inferior): Switch inferior before printing it.
13976
f3c469b9
PA
139772020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
13978 Pedro Alves <palves@redhat.com>
13979
13980 * progspace-and-thread.c (switch_to_program_space_and_thread):
13981 Assert there's an inferior for PSPACE. Use
13982 switch_to_inferior_no_thread to switch the inferior too.
13983 * progspace.c (program_space::~program_space): Call
13984 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
13985 (program_space::free_all_objfiles): Don't call clear_symtab_users
13986 here.
13987 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
13988
65c574f6
PA
139892020-01-10 Pedro Alves <palves@redhat.com>
13990
13991 * NEWS: Mention multi-target debugging, "info connections", and
13992 "add-inferior -no-connection".
13993
2f4fcf00
PA
139942020-01-10 Pedro Alves <palves@redhat.com>
13995
13996 * infrun.c: Include "target-connection.h".
13997 (check_multi_target_resumption): New.
13998 (proceed): Call it.
13999 * target-connection.c (make_target_connection_string): Make
14000 extern.
14001 * target-connection.h (make_target_connection_string): Declare.
14002
121b3efd
PA
140032020-01-10 Pedro Alves <palves@redhat.com>
14004
14005 * Makefile.in (COMMON_SFILES): Add target-connection.c.
14006 * inferior.c (uiout_field_connection): New function.
14007 (print_inferior): Add new "connection-id" column.
14008 (add_inferior_command): Show connection number/string of added
14009 inferior.
14010 * process-stratum-target.h
14011 (process_stratum_target::connection_string): New virtual method.
14012 (process_stratum_target::connection_number): New field.
14013 * remote.c (remote_target::connection_string): New override.
14014 * target-connection.c: New file.
14015 * target-connection.h: New file.
14016 * target.c (decref_target): Remove process_stratum targets from
14017 the connection list.
14018 (target_stack::push): Add process_stratum targets to the
14019 connection list.
14020
4f837581
PA
140212020-01-10 Pedro Alves <palves@redhat.com>
14022
14023 Revert:
14024 2016-04-12 Pedro Alves <palves@redhat.com>
14025 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
14026 Remove references to name.
14027 * serial.h (struct serial) <name>: Delete.
14028
f4ec508e
PA
140292020-01-10 Pedro Alves <palves@redhat.com>
14030
14031 * gdbarch-selftests.c (register_to_value_test): Remove "target
14032 already pushed" check.
14033
5b6d1e4f
PA
140342020-01-10 Pedro Alves <palves@redhat.com>
14035 John Baldwin <jhb@FreeBSD.org>
14036
14037 * aarch64-linux-nat.c
14038 (aarch64_linux_nat_target::thread_architecture): Adjust.
14039 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
14040 (task_command_1): Likewise.
14041 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
14042 (aix_thread_target::wait, aix_thread_target::fetch_registers)
14043 (aix_thread_target::store_registers)
14044 (aix_thread_target::thread_alive): Adjust.
14045 * amd64-fbsd-tdep.c: Include "inferior.h".
14046 (amd64fbsd_get_thread_local_address): Pass down target.
14047 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
14048 thread's gdbarch instead of target_gdbarch.
14049 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
14050 get_last_target_status.
14051 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
14052 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
14053 inferiors.
14054 (update_inserted_breakpoint_locations): Skip if inferiors with no
14055 execution.
14056 (update_global_location_list): When handling moribund locations,
14057 find representative inferior for location's pspace, and use thread
14058 count of its process_stratum target.
14059 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
14060 * bsd-uthread.c (bsd_uthread_target::wait): Use
14061 as_process_stratum_target and adjust thread_change_ptid and
14062 add_thread calls.
14063 (bsd_uthread_target::update_thread_list): Use
14064 as_process_stratum_target and adjust find_thread_ptid,
14065 thread_change_ptid and add_thread calls.
14066 * btrace.c (maint_btrace_packet_history_cmd): Adjust
14067 find_thread_ptid call.
14068 * corelow.c (add_to_thread_list): Adjust add_thread call.
14069 (core_target_open): Adjust add_thread_silent and thread_count
14070 calls.
14071 (core_target::pid_to_str): Adjust find_inferior_ptid call.
14072 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
14073 * event-top.c (async_disconnect): Pop targets from all inferiors.
14074 * exec.c (add_target_sections): Push exec target on all inferiors
14075 sharing the program space.
14076 (remove_target_sections): Remove the exec target from all
14077 inferiors sharing the program space.
14078 (exec_on_vfork): New.
14079 * exec.h (exec_on_vfork): Declare.
14080 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
14081 Pass it down.
14082 (fbsd_nat_target::update_thread_list): Adjust.
14083 (fbsd_nat_target::resume): Adjust.
14084 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
14085 down.
14086 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
14087 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
14088 get_thread_arch_regcache call.
14089 * fork-child.c (gdb_startup_inferior): Pass target down to
14090 startup_inferior and set_executing.
14091 * gdbthread.h (struct process_stratum_target): Forward declare.
14092 (add_thread, add_thread_silent, add_thread_with_info)
14093 (in_thread_list): Add process_stratum_target parameter.
14094 (find_thread_ptid(inferior*, ptid_t)): New overload.
14095 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
14096 parameter.
14097 (all_threads()): Delete overload.
14098 (all_threads, all_non_exited_threads): Add process_stratum_target
14099 parameter.
14100 (all_threads_safe): Use brace initialization.
14101 (thread_count): Add process_stratum_target parameter.
14102 (set_resumed, set_running, set_stop_requested, set_executing)
14103 (threads_are_executing, finish_thread_state): Add
14104 process_stratum_target parameter.
14105 (switch_to_thread): Use is_current_thread.
14106 * i386-fbsd-tdep.c: Include "inferior.h".
14107 (i386fbsd_get_thread_local_address): Pass down target.
14108 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
14109 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
14110 have_inferiors check.
14111 * inf-ptrace.c (inf_ptrace_target::create_inferior)
14112 (inf_ptrace_target::attach): Adjust.
14113 * infcall.c (run_inferior_call): Adjust.
14114 * infcmd.c (run_command_1): Pass target to
14115 scoped_finish_thread_state.
14116 (proceed_thread_callback): Skip inferiors with no execution.
14117 (continue_command): Rename 'all_threads' local to avoid hiding
14118 'all_threads' function. Adjust get_last_target_status call.
14119 (prepare_one_step): Adjust set_running call.
14120 (signal_command): Use user_visible_resume_target. Compare thread
14121 pointers instead of inferior_ptid.
14122 (info_program_command): Adjust to pass down target.
14123 (attach_command): Mark target's 'thread_executing' flag.
14124 (stop_current_target_threads_ns): New, factored out from ...
14125 (interrupt_target_1): ... this. Switch inferior before making
14126 target calls.
14127 * inferior-iter.h
14128 (struct all_inferiors_iterator, struct all_inferiors_range)
14129 (struct all_inferiors_safe_range)
14130 (struct all_non_exited_inferiors_range): Filter on
14131 process_stratum_target too. Remove explicit.
14132 * inferior.c (inferior::inferior): Push dummy target on target
14133 stack.
14134 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
14135 Add process_stratum_target parameter, and pass it down.
14136 (have_live_inferiors): Adjust.
14137 (switch_to_inferior_and_push_target): New.
14138 (add_inferior_command, clone_inferior_command): Handle
14139 "-no-connection" parameter. Use
14140 switch_to_inferior_and_push_target.
14141 (_initialize_inferior): Mention "-no-connection" option in
14142 the help of "add-inferior" and "clone-inferior" commands.
14143 * inferior.h: Include "process-stratum-target.h".
14144 (interrupt_target_1): Use bool.
14145 (struct inferior) <push_target, unpush_target, target_is_pushed,
14146 find_target_beneath, top_target, process_target, target_at,
14147 m_stack>: New.
14148 (discard_all_inferiors): Delete.
14149 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
14150 (all_inferiors, all_non_exited_inferiors): Add
14151 process_stratum_target parameter.
14152 * infrun.c: Include "gdb_select.h" and <unordered_map>.
14153 (target_last_proc_target): New global.
14154 (follow_fork_inferior): Push target on new inferior. Pass target
14155 to add_thread_silent. Call exec_on_vfork. Handle target's
14156 reference count.
14157 (follow_fork): Adjust get_last_target_status call. Also consider
14158 target.
14159 (follow_exec): Push target on new inferior.
14160 (struct execution_control_state) <target>: New field.
14161 (user_visible_resume_target): New.
14162 (do_target_resume): Call target_async.
14163 (resume_1): Set target's threads_executing flag. Consider resume
14164 target.
14165 (commit_resume_all_targets): New.
14166 (proceed): Also consider resume target. Skip threads of inferiors
14167 with no execution. Commit resumtion in all targets.
14168 (start_remote): Pass current inferior to wait_for_inferior.
14169 (infrun_thread_stop_requested): Consider target as well. Pass
14170 thread_info pointer to clear_inline_frame_state instead of ptid.
14171 (infrun_thread_thread_exit): Consider target as well.
14172 (random_pending_event_thread): New inferior parameter. Use it.
14173 (do_target_wait): Rename to ...
14174 (do_target_wait_1): ... this. Add inferior parameter, and pass it
14175 down.
14176 (threads_are_resumed_pending_p, do_target_wait): New.
14177 (prepare_for_detach): Adjust calls.
14178 (wait_for_inferior): New inferior parameter. Handle it. Use
14179 do_target_wait_1 instead of do_target_wait.
14180 (fetch_inferior_event): Adjust. Switch to representative
14181 inferior. Pass target down.
14182 (set_last_target_status): Add process_stratum_target parameter.
14183 Save target in global.
14184 (get_last_target_status): Add process_stratum_target parameter and
14185 handle it.
14186 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
14187 (context_switch): Check inferior_ptid == null_ptid before calling
14188 inferior_thread().
14189 (get_inferior_stop_soon): Pass down target.
14190 (wait_one): Rename to ...
14191 (poll_one_curr_target): ... this.
14192 (struct wait_one_event): New.
14193 (wait_one): New.
14194 (stop_all_threads): Adjust.
14195 (handle_no_resumed, handle_inferior_event): Adjust to consider the
14196 event's target.
14197 (switch_back_to_stepped_thread): Also consider target.
14198 (print_stop_event): Update.
14199 (normal_stop): Update. Also consider the resume target.
14200 * infrun.h (wait_for_inferior): Remove declaration.
14201 (user_visible_resume_target): New declaration.
14202 (get_last_target_status, set_last_target_status): New
14203 process_stratum_target parameter.
14204 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
14205 process_stratum_target parameter, and use it.
14206 (clear_inline_frame_state (thread_info*)): New.
14207 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
14208 process_stratum_target parameter.
14209 (clear_inline_frame_state (thread_info*)): Declare.
14210 * linux-fork.c (delete_checkpoint_command): Pass target down to
14211 find_thread_ptid.
14212 (checkpoint_command): Adjust.
14213 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
14214 instead of just tweaking inferior_ptid.
14215 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
14216 (exit_lwp): Pass target down to find_thread_ptid.
14217 (attach_proc_task_lwp_callback): Pass target down to
14218 add_thread/set_running/set_executing.
14219 (linux_nat_target::attach): Pass target down to
14220 thread_change_ptid.
14221 (get_detach_signal): Pass target down to find_thread_ptid.
14222 Consider last target status's target.
14223 (linux_resume_one_lwp_throw, resume_lwp)
14224 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
14225 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
14226 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
14227 (linux_nat_target::async_wait_fd): New.
14228 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
14229 target down.
14230 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
14231 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
14232 * linux-thread-db.c (struct thread_db_info::process_target): New
14233 field.
14234 (add_thread_db_info): Save target.
14235 (get_thread_db_info): New process_stratum_target parameter. Also
14236 match target.
14237 (delete_thread_db_info): New process_stratum_target parameter.
14238 Also match target.
14239 (thread_from_lwp): Adjust to pass down target.
14240 (thread_db_notice_clone): Pass down target.
14241 (check_thread_db_callback): Pass down target.
14242 (try_thread_db_load_1): Always push the thread_db target.
14243 (try_thread_db_load, record_thread): Pass target down.
14244 (thread_db_target::detach): Pass target down. Always unpush the
14245 thread_db target.
14246 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
14247 target down. Always unpush the thread_db target.
14248 (find_new_threads_callback, thread_db_find_new_threads_2)
14249 (thread_db_target::update_thread_list): Pass target down.
14250 (thread_db_target::pid_to_str): Pass current inferior down.
14251 (thread_db_target::get_thread_local_address): Pass target down.
14252 (thread_db_target::resume, maintenance_check_libthread_db): Pass
14253 target down.
14254 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
14255 * procfs.c (procfs_target::procfs_init_inferior): Declare.
14256 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
14257 (procfs_init_inferior): Rename to ...
14258 (procfs_target::procfs_init_inferior): ... this and adjust.
14259 (procfs_target::create_inferior, procfs_notice_thread)
14260 (procfs_do_thread_registers): Adjust.
14261 * ppc-fbsd-tdep.c: Include "inferior.h".
14262 (ppcfbsd_get_thread_local_address): Pass down target.
14263 * proc-service.c (ps_xfer_memory): Switch current inferior and
14264 program space as well.
14265 (get_ps_regcache): Pass target down.
14266 * process-stratum-target.c
14267 (process_stratum_target::thread_address_space)
14268 (process_stratum_target::thread_architecture): Pass target down.
14269 * process-stratum-target.h
14270 (process_stratum_target::threads_executing): New field.
14271 (as_process_stratum_target): New.
14272 * ravenscar-thread.c
14273 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
14274 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
14275 down.
14276 * record-btrace.c (record_btrace_target::info_record): Adjust.
14277 (record_btrace_target::record_method)
14278 (record_btrace_target::record_is_replaying)
14279 (record_btrace_target::fetch_registers)
14280 (get_thread_current_frame_id, record_btrace_target::resume)
14281 (record_btrace_target::wait, record_btrace_target::stop): Pass
14282 target down.
14283 * record-full.c (record_full_wait_1): Switch to event thread.
14284 Pass target down.
14285 * regcache.c (regcache::regcache)
14286 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
14287 process_stratum_target parameter and handle it.
14288 (current_thread_target): New global.
14289 (get_thread_regcache): Add process_stratum_target parameter and
14290 handle it. Switch inferior before calling target method.
14291 (get_thread_regcache): Pass target down.
14292 (get_thread_regcache_for_ptid): Pass target down.
14293 (registers_changed_ptid): Add process_stratum_target parameter and
14294 handle it.
14295 (registers_changed_thread, registers_changed): Pass target down.
14296 (test_get_thread_arch_aspace_regcache): New.
14297 (current_regcache_test): Define a couple local test_target_ops
14298 instances and use them for testing.
14299 (readwrite_regcache): Pass process_stratum_target parameter.
14300 (cooked_read_test, cooked_write_test): Pass mock_target down.
14301 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
14302 (get_thread_arch_aspace_regcache): Add process_stratum_target
14303 parameter.
14304 (regcache::target): New method.
14305 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
14306 (regcache::registers_changed_ptid): Add process_stratum_target
14307 parameter.
14308 (regcache::m_target): New field.
14309 (registers_changed_ptid): Add process_stratum_target parameter.
14310 * remote.c (remote_state::supports_vCont_probed): New field.
14311 (remote_target::async_wait_fd): New method.
14312 (remote_unpush_and_throw): Add remote_target parameter.
14313 (get_current_remote_target): Adjust.
14314 (remote_target::remote_add_inferior): Push target.
14315 (remote_target::remote_add_thread)
14316 (remote_target::remote_notice_new_inferior)
14317 (get_remote_thread_info): Pass target down.
14318 (remote_target::update_thread_list): Skip threads of inferiors
14319 bound to other targets. (remote_target::close): Don't discard
14320 inferiors. (remote_target::add_current_inferior_and_thread)
14321 (remote_target::process_initial_stop_replies)
14322 (remote_target::start_remote)
14323 (remote_target::remote_serial_quit_handler): Pass down target.
14324 (remote_target::remote_unpush_target): New remote_target
14325 parameter. Unpush the target from all inferiors.
14326 (remote_target::remote_unpush_and_throw): New remote_target
14327 parameter. Pass it down.
14328 (remote_target::open_1): Check whether the current inferior has
14329 execution instead of checking whether any inferior is live. Pass
14330 target down.
14331 (remote_target::remote_detach_1): Pass down target. Use
14332 remote_unpush_target.
14333 (extended_remote_target::attach): Pass down target.
14334 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
14335 (remote_target::append_resumption): Pass down target.
14336 (remote_target::append_pending_thread_resumptions)
14337 (remote_target::remote_resume_with_hc, remote_target::resume)
14338 (remote_target::commit_resume): Pass down target.
14339 (remote_target::remote_stop_ns): Check supports_vCont_probed.
14340 (remote_target::interrupt_query)
14341 (remote_target::remove_new_fork_children)
14342 (remote_target::check_pending_events_prevent_wildcard_vcont)
14343 (remote_target::remote_parse_stop_reply)
14344 (remote_target::process_stop_reply): Pass down target.
14345 (first_remote_resumed_thread): New remote_target parameter. Pass
14346 it down.
14347 (remote_target::wait_as): Pass down target.
14348 (unpush_and_perror): New remote_target parameter. Pass it down.
14349 (remote_target::readchar, remote_target::remote_serial_write)
14350 (remote_target::getpkt_or_notif_sane_1)
14351 (remote_target::kill_new_fork_children, remote_target::kill): Pass
14352 down target.
14353 (remote_target::mourn_inferior): Pass down target. Use
14354 remote_unpush_target.
14355 (remote_target::core_of_thread)
14356 (remote_target::remote_btrace_maybe_reopen): Pass down target.
14357 (remote_target::pid_to_exec_file)
14358 (remote_target::thread_handle_to_thread_info): Pass down target.
14359 (remote_target::async_wait_fd): New.
14360 * riscv-fbsd-tdep.c: Include "inferior.h".
14361 (riscv_fbsd_get_thread_local_address): Pass down target.
14362 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
14363 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
14364 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
14365 Adjust.
14366 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
14367 * solib-svr4.c (enable_break): Pass down target.
14368 * spu-multiarch.c (parse_spufs_run): Pass down target.
14369 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
14370 * target-delegates.c: Regenerate.
14371 * target.c (g_target_stack): Delete.
14372 (current_top_target): Return the current inferior's top target.
14373 (target_has_execution_1): Refer to the passed-in inferior's top
14374 target.
14375 (target_supports_terminal_ours): Check whether the initial
14376 inferior was already created.
14377 (decref_target): New.
14378 (target_stack::push): Incref/decref the target.
14379 (push_target, push_target, unpush_target): Adjust.
14380 (target_stack::unpush): Defref target.
14381 (target_is_pushed): Return bool. Adjust to refer to the current
14382 inferior's target stack.
14383 (dispose_inferior): Delete, and inline parts ...
14384 (target_preopen): ... here. Only dispose of the current inferior.
14385 (target_detach): Hold strong target reference while detaching.
14386 Pass target down.
14387 (target_thread_name): Add assertion.
14388 (target_resume): Pass down target.
14389 (target_ops::beneath, find_target_at): Adjust to refer to the
14390 current inferior's target stack.
14391 (get_dummy_target): New.
14392 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
14393 has a thread running.
14394 (initialize_targets): Rename to ...
14395 (_initialize_target): ... this.
14396 * target.h: Include "gdbsupport/refcounted-object.h".
14397 (struct target_ops): Inherit refcounted_object.
14398 (target_ops::shortname, target_ops::longname): Make const.
14399 (target_ops::async_wait_fd): New method.
14400 (decref_target): Declare.
14401 (struct target_ops_ref_policy): New.
14402 (target_ops_ref): New typedef.
14403 (get_dummy_target): Declare function.
14404 (target_is_pushed): Return bool.
14405 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
14406 (all_matching_threads_iterator::all_matching_threads_iterator):
14407 Handle filter target.
14408 * thread-iter.h (struct all_matching_threads_iterator, struct
14409 all_matching_threads_range, class all_non_exited_threads_range):
14410 Filter by target too. Remove explicit.
14411 * thread.c (threads_executing): Delete.
14412 (inferior_thread): Pass down current inferior.
14413 (clear_thread_inferior_resources): Pass down thread pointer
14414 instead of ptid_t.
14415 (add_thread_silent, add_thread_with_info, add_thread): Add
14416 process_stratum_target parameter. Use it for thread and inferior
14417 searches.
14418 (is_current_thread): New.
14419 (thread_info::deletable): Use it.
14420 (find_thread_ptid, thread_count, in_thread_list)
14421 (thread_change_ptid, set_resumed, set_running): New
14422 process_stratum_target parameter. Pass it down.
14423 (set_executing): New process_stratum_target parameter. Pass it
14424 down. Adjust reference to 'threads_executing'.
14425 (threads_are_executing): New process_stratum_target parameter.
14426 Adjust reference to 'threads_executing'.
14427 (set_stop_requested, finish_thread_state): New
14428 process_stratum_target parameter. Pass it down.
14429 (switch_to_thread): Also match inferior.
14430 (switch_to_thread): New process_stratum_target parameter. Pass it
14431 down.
14432 (update_threads_executing): Reimplement.
14433 * top.c (quit_force): Pop targets from all inferior.
14434 (gdb_init): Don't call initialize_targets.
14435 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
14436 Declare.
14437 (windows_add_thread, windows_delete_thread): Adjust.
14438 (get_windows_debug_event): Rename to ...
14439 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
14440 * tracefile-tfile.c (tfile_target_open): Pass down target.
14441 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
14442 Forward declare.
14443 (switch_to_thread): Add process_stratum_target parameter.
14444 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
14445 parameter. Use it.
14446 (mi_on_resume): Pass target down.
14447 * nat/fork-inferior.c (startup_inferior): Add
14448 process_stratum_target parameter. Pass it down.
14449 * nat/fork-inferior.h (startup_inferior): Add
14450 process_stratum_target parameter.
14451 * python/py-threadevent.c (py_get_event_thread): Pass target down.
14452
75c6c844
PA
144532020-01-10 Pedro Alves <palves@redhat.com>
14454
14455 * remote.c (remote_target::start_remote): Don't set inferior_ptid
14456 directly. Instead find the first thread in the thread list and
14457 use switch_to_thread.
14458
78f2c40a
PA
144592020-01-10 Pedro Alves <palves@redhat.com>
14460
14461 * remote.c (remote_target::remote_add_inferior): Don't bind a
14462 process to the current inferior if the current inferior is already
14463 bound to a process.
14464
e7af6c70
TBA
144652020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14466 Pedro Alves <palves@redhat.com>
14467
14468 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
14469 If no process is specified, return null_ptid instead of
14470 inferior_ptid.
14471 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
14472 TARGET_WAITKIND_SIGNALLED with no pid.
14473
31ba933e
PA
144742020-01-10 Pedro Alves <palves@redhat.com>
14475
14476 * remote.c (first_remote_resumed_thread): New.
14477 (remote_target::wait_as): Use it as default event_ptid instead of
14478 inferior_ptid.
14479
735fc2ca
PA
144802020-01-10 Pedro Alves <palves@redhat.com>
14481
14482 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
14483
c17e02e1
PA
144842020-01-10 Pedro Alves <palves@redhat.com>
14485
14486 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
14487 not -1.
14488
ab1ddbcf
PA
144892020-01-10 Pedro Alves <palves@redhat.com>
14490
14491 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
14492 ptid to get_last_target_status.
14493 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
14494 ptid to get_last_target_status.
14495 * infcmd.c (continue_command): Don't pass a target_waitstatus to
14496 get_last_target_status.
14497 (info_program_command): Don't pass a target_waitstatus to
14498 get_last_target_status.
14499 * infrun.c (init_wait_for_inferior): Use
14500 nullify_last_target_wait_ptid.
14501 (get_last_target_status): Handle nullptr arguments.
14502 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
14503 (print_stop_event): Don't pass a ptid to get_last_target_status.
14504 (normal_stop): Don't pass a ptid to get_last_target_status.
14505 * infrun.h (get_last_target_status, set_last_target_status): Move
14506 comments here and update.
14507 (nullify_last_target_wait_ptid): Declare.
14508 * linux-fork.c (fork_load_infrun_state): Remove local extern
14509 declaration of nullify_last_target_wait_ptid.
14510 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
14511 to get_last_target_status.
14512
f3f8ece4
PA
145132020-01-10 Pedro Alves <palves@redhat.com>
14514
14515 * gdbthread.h (scoped_restore_current_thread)
14516 <dont_restore, restore, m_dont_restore>: Declare.
14517 * thread.c (thread_alive): Add assertion. Return bool.
14518 (switch_to_thread_if_alive): New.
14519 (prune_threads): Switch inferior/thread.
14520 (print_thread_info_1): Switch thread before calling target methods.
14521 (scoped_restore_current_thread::restore): New, factored out from
14522 ...
14523 (scoped_restore_current_thread::~scoped_restore_current_thread):
14524 ... this.
14525 (scoped_restore_current_thread::scoped_restore_current_thread):
14526 Add assertion.
14527 (thread_apply_all_command, thread_select): Use
14528 switch_to_thread_if_alive.
14529 * infrun.c (proceed, restart_threads, handle_signal_stop)
14530 (switch_back_to_stepped_thread): Switch current thread before
14531 calling target methods.
14532
db2d40f7
PA
145332020-01-10 Pedro Alves <palves@redhat.com>
14534
14535 * inferior.c (switch_to_inferior_no_thread): New function,
14536 factored out from ...
14537 (inferior_command): ... here.
14538 * inferior.h (switch_to_inferior_no_thread): Declare.
14539 * mi/mi-main.c (run_one_inferior): Use
14540 switch_to_inferior_no_thread.
14541
bd420a2d
PA
145422020-01-10 Pedro Alves <palves@redhat.com>
14543
14544 * infcmd.c (kill_command): Remove dead code.
14545
ddf5db90
PA
145462020-01-10 Pedro Alves <palves@redhat.com>
14547
14548 * remote.c (remote_target::mourn_inferior): No longer check
14549 whether the target is running.
14550
5018ce90
PA
145512020-01-10 Pedro Alves <palves@redhat.com>
14552
14553 * corelow.c (core_target::has_execution): Change parameter type to
14554 inferior pointer.
14555 * inferior.c (number_of_live_inferiors): Use
14556 inferior::has_execution instead of target_has_execution_1.
14557 * inferior.h (inferior::has_execution): New.
14558 * linux-thread-db.c (thread_db_target::update_thread_list): Use
14559 inferior::has_execution instead of target_has_execution_1.
14560 * process-stratum-target.c
14561 (process_stratum_target::has_execution): Change parameter type to
14562 inferior pointer. Check the inferior's PID instead of
14563 inferior_ptid.
14564 * process-stratum-target.h
14565 (process_stratum_target::has_execution): Change parameter type to
14566 inferior pointer.
14567 * record-full.c (record_full_core_target::has_execution): Change
14568 parameter type to inferior pointer.
14569 * target.c (target_has_execution_1): Change parameter type to
14570 inferior pointer.
14571 (target_has_execution_current): Adjust.
14572 * target.h (target_ops::has_execution): Change parameter type to
14573 inferior pointer.
14574 (target_has_execution_1): Change parameter type to inferior
14575 pointer. Change return type to bool.
14576 * tracefile.h (tracefile_target::has_execution): Change parameter
14577 type to inferior pointer.
14578
74375d18
PA
145792020-01-10 Pedro Alves <palves@redhat.com>
14580
14581 * exceptions.c (print_flush): Remove current_top_target() check.
14582
acdf84a6
PA
145832020-01-10 Pedro Alves <palves@redhat.com>
14584
14585 * remote.c (show_remote_exec_file): Show the current inferior's
14586 exec-file instead of the command variable's value.
14587
ec506636
PA
145882020-01-10 Pedro Alves <palves@redhat.com>
14589
14590 * record-full.c (record_full_resume_ptid): New global.
14591 (record_full_target::resume): Set it.
14592 (record_full_wait_1): Use record_full_resume_ptid instead of
14593 inferior_ptid.
14594
873657b9
PA
145952020-01-10 Pedro Alves <palves@redhat.com>
14596
14597 * gdbthread.h (scoped_restore_current_thread)
14598 <dont_restore, restore, m_dont_restore>: Declare.
14599 * thread.c (thread_alive): Add assertion. Return bool.
14600 (switch_to_thread_if_alive): New.
14601 (prune_threads): Switch inferior/thread.
14602 (print_thread_info_1): Switch thread before calling target methods.
14603 (scoped_restore_current_thread::restore): New, factored out from
14604 ...
14605 (scoped_restore_current_thread::~scoped_restore_current_thread):
14606 ... this.
14607 (scoped_restore_current_thread::scoped_restore_current_thread):
14608 Add assertion.
14609 (thread_apply_all_command, thread_select): Use
14610 switch_to_thread_if_alive.
14611
7f0ae84c
GB
146122020-01-10 George Barrett <bob@bob131.so>
14613
14614 * stap-probe.c (stap_modify_semaphore): Don't check for null
14615 semaphores.
14616 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
14617 for null semaphores.
14618
f5a7c406
AB
146192020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
14620
14621 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
14622 all source windows, and maintain horizontal scroll status while
14623 doing so.
14624
9ae6bf64
TT
146252020-01-09 Tom Tromey <tom@tromey.com>
14626
14627 PR tui/18932:
14628 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
14629 update_source_window, not print_source_lines.
14630
b2efe70c
AB
146312020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
14632
14633 * tui/tui.c (tui_enable): Register tui hooks after calling
14634 tui_display_main.
14635
5f23a082
CB
146362020-01-09 Christian Biesinger <cbiesinger@google.com>
14637
14638 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
14639
3061113b
SM
146402020-01-08 Simon Marchi <simon.marchi@efficios.com>
14641
14642 * thread.c (print_thread_info_1): Fix indentation.
14643
57d75002
CB
146442020-01-09 Christian Biesinger <cbiesinger@google.com>
14645
14646 * symtab.c (general_symbol_info::compute_and_set_names): Move the
14647 unique_xmalloc_ptr outside the if to always free the demangled name.
14648
6a053cb1
TT
146492020-01-08 Tom Tromey <tromey@adacore.com>
14650
14651 * xcoffread.c (enter_line_range, read_xcoff_symtab)
14652 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
14653 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
14654 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
14655 Remove.
14656 (section_offsets): New typedef.
14657 * symtab.c (fixup_section, get_msymbol_address): Update.
14658 * symmisc.c (dump_msymbols): Update.
14659 * symfile.h (relative_addr_info_to_section_offsets)
14660 (symfile_map_offsets_to_segments): Update.
14661 * symfile.c (build_section_addr_info_from_objfile)
14662 (init_objfile_sect_indices): Update.
14663 (struct place_section_arg): Change type of "offsets".
14664 (place_section): Update.
14665 (relative_addr_info_to_section_offsets): Change type of
14666 "section_offsets". Remove "num_sections" parameter.
14667 (default_symfile_offsets, syms_from_objfile_1)
14668 (set_objfile_default_section_offset): Update.
14669 (reread_symbols): No need to preserve section offsets by hand.
14670 (symfile_map_offsets_to_segments): Change type of "offsets".
14671 * stap-probe.c (relocate_address): Update.
14672 * stabsread.h (process_one_symbol): Update.
14673 * solib-target.c (struct lm_info_target) <offsets>: Change type.
14674 (solib_target_relocate_section_addresses): Update.
14675 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
14676 Update.
14677 * solib-frv.c (frv_relocate_main_executable): Update.
14678 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
14679 * solib-aix.c (solib_aix_get_section_offsets): Change return
14680 type.
14681 (solib_aix_solib_create_inferior_hook): Update.
14682 * remote.c (remote_target::get_offsets): Update.
14683 * psymtab.c (find_pc_sect_psymtab): Update.
14684 * psympriv.h (struct partial_symbol) <address, text_low,
14685 text_high>: Update.
14686 * objfiles.h (obj_section_offset): Update.
14687 (struct objfile) <section_offsets>: Change type.
14688 <num_sections>: Remove.
14689 (objfile_relocate): Update.
14690 * objfiles.c (entry_point_address_query): Update
14691 (relocate_one_symbol): Change type of "section_offsets".
14692 (objfile_relocate1, objfile_relocate1): Change type of
14693 "new_offsets".
14694 (objfile_rebase1): Update.
14695 * mipsread.c (mipscoff_symfile_read): Update.
14696 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
14697 parameter.
14698 * mdebugread.c (parse_symbol): Change type of "section_offsets".
14699 (parse_external, psymtab_to_symtab_1): Update.
14700 * machoread.c (macho_symfile_offsets): Update.
14701 * ia64-tdep.c (ia64_find_unwind_table): Update.
14702 * hppa-tdep.c (read_unwind_info): Update.
14703 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
14704 * dwarf2read.c (create_addrmap_from_index)
14705 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
14706 (process_psymtab_comp_unit_reader, add_partial_symbol)
14707 (add_partial_subprogram, process_full_comp_unit)
14708 (read_file_scope, read_func_scope, read_lexical_block_scope)
14709 (read_call_site_scope, dwarf2_rnglists_process)
14710 (dwarf2_ranges_process, dwarf2_ranges_read)
14711 (dwarf_decode_lines_1, var_decode_location, new_symbol)
14712 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
14713 Update.
14714 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
14715 Update.
14716 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
14717 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
14718 (process_one_symbol): Change type of "section_offsets".
14719 * ctfread.c (get_objfile_text_range): Update.
14720 * coffread.c (coff_symtab_read, enter_linenos)
14721 (process_coff_symbol): Update.
14722 * coff-pe-read.c (add_pe_forwarded_sym): Update.
14723 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
14724
456e800a
TT
147252020-01-08 Tom Tromey <tromey@adacore.com>
14726
14727 * dwarf2read.c (parse_macro_definition): Use std::string.
14728 (parse_macro_definition): Likewise.
14729
6dfa2fc2
TT
147302020-01-08 Tom Tromey <tromey@adacore.com>
14731
14732 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
14733 (ATTR_ALLOC_CHUNK): Remove.
14734
421d1616
TT
147352020-01-08 Tom Tromey <tromey@adacore.com>
14736
14737 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
14738
43816ebc
TT
147392020-01-08 Tom Tromey <tromey@adacore.com>
14740
14741 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
14742 (dwarf2_compute_name, open_dwo_file): Likewise.
14743 (process_enumeration_scope): Use std::vector.
14744 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
14745 (partial_die_info::fixup, dwarf2_start_subfile)
14746 (guess_full_die_structure_name, dwarf2_name): Likewise.
14747 (determine_prefix): Update.
14748 (guess_full_die_structure_name): Make return type const.
14749 (partial_die_full_name): Return unique_xmalloc_ptr.
14750 (DW_FIELD_ALLOC_CHUNK): Remove.
14751
4212d509
TT
147522020-01-07 Tom Tromey <tromey@adacore.com>
14753
14754 PR build/24937:
14755 * stap-probe.c (class stap_static_probe_ops): Add constructor.
14756
06a6207a
JT
147572020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
14758
14759 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
14760
153d79c4
AB
147612020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
14762
14763 * stack.c (print_frame_info): Move disassemble_next_line code
14764 inside source_print block.
14765
66182876
EZ
147662020-01-06 Eli Zaretskii <eliz@gnu.org>
14767
14768 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
14769 gdb/signals.h, as we are now using native signal symbols.
14770
cbfa8581
SV
147712020-01-06 Shahab Vahedi <shahab@synopsys.com>
14772
14773 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
14774 overflow by an early check of content vs threshold.
aac66a4c 14775 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
14776 Likewise.
14777
3f602821
EZ
147782020-01-06 Eli Zaretskii <eliz@gnu.org>
14779
14780 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
14781
a08c904d
JT
147822020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
14783
14784 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
14785 export table if no section contains it's RVA.
14786
89a65580
EZ
147872020-01-06 Eli Zaretskii <eliz@gnu.org>
14788
14789 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
14790
8b7fcda2
HD
147912020-01-06 Hannes Domani <ssbssa@yahoo.de>
14792
14793 * source.c (print_source_lines_base): Set last_line_listed.
14794
a61b4f69
SV
147952020-01-06 Shahab Vahedi <shahab@synopsys.com>
14796
14797 * tui/tui-disasm.c: Remove trailing spaces.
14798
559e7e50
EZ
147992020-01-06 Eli Zaretskii <eliz@gnu.org>
14800 Pedro Alves <palves@redhat.com>
14801
14802 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
14803 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
14804 (windows_gdb_signal_to_target): New function, uses the above
14805 enumeration to convert GDB internal signal codes to equivalent
14806 Windows codes.
14807 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
14808 * windows-nat.c: Include "gdb_wait.h".
14809 (get_windows_debug_event): Extract the fatal exception from the
14810 exit status and convert to the equivalent Posix signal number.
14811 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
14812 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
14813 * gdbsupport/gdb_wait.c: New file, implements
14814 windows_status_to_termsig.
14815 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
14816 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
14817
f2302a34
AB
148182020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
14819
14820 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
14821 show_layout.
14822
6a5206eb
LM
148232020-01-05 Luis Machado <luis.machado@linaro.org>
14824
14825 * aarch64-linux-nat.c
14826 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
14827 and bfd_mach_aarch64.
14828
6ec1d75e
PW
148292020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14830
14831 * ui-file.c (stdio_file::can_emit_style_escape)
14832 (tee_file::can_emit_style_escape): Ensure style is used also on
14833 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
14834 to gdb_stdout.
14835 * main.c (set_gdb_data_directory): Use file style to output the
14836 warning that the given pathname is not a directory.
14837 * top.c (show_history_filename, gdb_safe_append_history)
14838 (show_gdb_datadir): Use file style.
14839
44f81a76
HD
148402020-01-03 Hannes Domani <ssbssa@yahoo.de>
14841
14842 * solib-target.c (struct lm_info_target):
14843 Change offsets to be a unique_xmalloc_ptr.
14844 (solib_target_relocate_section_addresses): Update.
14845
25057eb0
HD
148462020-01-03 Hannes Domani <ssbssa@yahoo.de>
14847
14848 * windows-nat.c (windows_clear_solib): Free so_list linked list.
14849
6e2118f5
BE
148502020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
14851
14852 * MAINTAINERS (Write After Approval): Add myself.
14853
8133c7dc
LM
148542020-01-02 Luis Machado <luis.machado@linaro.org>
14855
14856 * proc-service.c (get_ps_regcache): Remove reference to obsolete
14857 Cell BE architecture.
14858 * target.h (struct target_ops) <thread_architecture>: Likewise.
14859
48189bec
HD
148602020-01-01 Hannes Domani <ssbssa@yahoo.de>
14861
14862 * Makefile.in: Use INSTALL_PROGRAM_ENV.
14863
ead1063b
HD
148642020-01-01 Hannes Domani <ssbssa@yahoo.de>
14865
14866 * MAINTAINERS (Write After Approval): Add myself.
14867
e5d78223
JB
148682020-01-01 Joel Brobecker <brobecker@adacore.com>
14869
14870 * gdbarch.sh: Update copyright year range of generated files.
14871
b811d2c2
JB
148722020-01-01 Joel Brobecker <brobecker@adacore.com>
14873
14874 Update copyright year range in all GDB files.
14875
5f4def5c
JB
148762020-01-01 Joel Brobecker <brobecker@adacore.com>
14877
14878 * copyright.py: Convert to Python 3.
14879
51fd4002
JB
148802020-01-01 Joel Brobecker <brobecker@adacore.com>
14881
14882 * copyright.py: Adapt after move of gnulib directory from gdb
14883 directory to toplevel directory.
14884
5fb651f2
JB
148852020-01-01 Joel Brobecker <brobecker@adacore.com>
14886
14887 * copyright.py (main): Exit if run from the wrong directory.
14888
5dd8bf88
JB
148892020-01-01 Joel Brobecker <brobecker@adacore.com>
14890
14891 * top.c (print_gdb_version): Change copyright year to 2020.
14892
9f71dacb 148932020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 14894
9f71dacb 14895 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 14896
9f71dacb 14897For older changes see ChangeLog-2019.
c906108c
SS
14898\f
14899Local Variables:
14900mode: change-log
14901left-margin: 8
14902fill-column: 74
14903version-control: never
57da7796 14904coding: utf-8
c906108c 14905End:
This page took 3.392116 seconds and 4 git commands to generate.