Fix whitespace formatting
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
91e5e8db
KR
12020-10-07 Kamil Rytarowski <n54@gmx.com>
2
3 * nat/netbsd-nat.c (write_memory, read_memory): Add.
4 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
5 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
6
64c03bdb
SM
72020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
8
9 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
10 (_initialize_break_catch_sig): Don't allocate array.
11
31a8f60f
AB
122020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
13
14 * symtab.c (find_pc_line): Return unmapped addresses when the
15 requested address is also unmapped.
16
9e6dbd8b
SM
172020-10-05 Simon Marchi <simon.marchi@efficios.com>
18
19 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
20 tui/tui-out.h.
21
a1d217e8
SM
222020-10-05 Simon Marchi <simon.marchi@efficios.com>
23
24 * amd64-windows-tdep.c (amd64_windows_return_value): Use
25 type::is_vector instead of TYPE_VECTOR.
26
7d144117
SM
272020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
28
29 * auto-load.c (auto_load_objfile_script_1): Don't use
30 debugfile_holder as temporary variable when stripping drive
31 letter.
32
cd096ec8
HD
332020-10-05 Hannes Domani <ssbssa@yahoo.de>
34
35 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
36 Add TYPE_CODE_COMPLEX.
37 (amd64_windows_return_value): Fix types returned via XMM0.
38
b58e7f72
AH
392020-10-05 Alan Hayward <alan.hayward@arm.com>
40
41 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
42 AArch64/ARM maintainers.
43
8d378f27
SM
442020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
45
46 * NEWS: Mention set/show debug event-loop.
47
d5519913
TT
482020-10-02 Tom Tromey <tromey@adacore.com>
49
50 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
51 REG_EXTENDED.
52
18b67edc
SM
532020-10-02 Simon Marchi <simon.marchi@efficios.com>
54
55 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
56 * procfs.c (procfs_inferior_created): Remove.
57 (_initialize_procfs): Don't register procfs_inferior_created.
58
6b01403b
SM
592020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
60
61 * async-event.c (invoke_async_signal_handlers): Add debug
62 print.
63 (check_async_event_handlers): Likewise.
64 * event-top.c (show_debug_event_loop): New function.
65 (_initialize_event_top): Register "set debug event-loop"
66 setting.
67
ba988419
SM
682020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
69
70 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
71 * debug.h: Remove.
72 * infrun.c: Include gdbsupport/common-debug.h.
73 * linux-nat.c: Likewise.
74
db20ebdf
SM
752020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
76
77 * async-event.h (create_async_signal_handler): Add name
78 parameter.
79 (create_async_event_handler): Likewise.
80 * async-event.c (struct async_signal_handler) <name>: New field.
81 (struct async_event_handler) <name>: New field.
82 (create_async_signal_handler): Assign name.
83 (create_async_event_handler): Assign name.
84 * event-top.c (async_init_signals): Pass name when creating
85 handler.
86 * infrun.c (_initialize_infrun): Likewise.
87 * record-btrace.c (record_btrace_push_target): Likewise.
88 * record-full.c (record_full_open): Likewise.
89 * remote-notif.c (remote_notif_state_allocate): Likewise.
90 * remote.c (remote_target::open_1): Likewise.
91 * tui/tui-win.c (tui_initialize_win): Likewise.
92
2554f6f5
SM
932020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
94
95 * async-event.c (initialize_async_signal_handlers): Pass name to
96 add_file_handler
97 * event-top.c (ui_register_input_event_handler): Likewise.
98 * linux-nat.c (linux_nat_target::async): Likewise.
99 * run-on-main-thread.c (_initialize_run_on_main_thread):
100 Likewise
101 * ser-base.c (reschedule): Likewise.
102 (ser_base_async): Likewise.
103 * tui/tui-io.c: Likewise.
104 * top.h (struct ui) <num>: New field.
105 * top.c (highest_ui_num): New variable.
106 (ui::ui): Initialize num.
107
a7aba266
SM
1082020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
109
110 * observable.h <inferior_created>: Remove parameters. Update all
111 listeners.
112 * inferior.h (post_create_inferior): Remove target parameter.
113 Update all callers.
114
048fde1e 1152020-10-02 Nitika Achra <Nitika.Achra@amd.com>
116
117 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
118 and DW_MACRO_undef_strx.
119 (dwarf_decode_macros): Likewise
120 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
121 which is the value of DW_AT_str_offsets_base.
122 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
123 str_offsets_base.
124
064280be
KR
1252020-10-01 Kamil Rytarowski <n54@gmx.com>
126
127 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
128
6ff33035
KR
1292020-10-01 Kamil Rytarowski <n54@gmx.com>
130
131 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
132 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
133
1eb6eb79
KR
1342020-10-01 Kamil Rytarowski <n54@gmx.com>
135
136 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
137
95eb9e54
TV
1382020-09-30 Tom de Vries <tdevries@suse.de>
139
140 PR symtab/26683
141 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
142
cae21f8e
TT
1432020-09-30 Tom Tromey <tromey@adacore.com>
144
145 * dwarf2/read.c (handle_variant): Use constant_value.
146
529908cb
TT
1472020-09-29 Tom Tromey <tom@tromey.com>
148
149 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
150 (read_file_scope, dwarf2_get_pc_bounds)
151 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
152 (read_structure_type, handle_struct_member_die)
153 (read_enumeration_type, read_array_type, read_set_type)
154 (read_tag_pointer_type, read_tag_reference_type)
155 (read_subroutine_type, read_base_type, read_subrange_type)
156 (read_full_die_1, partial_die_info::read)
157 (partial_die_info::read, by, new_symbol)
158 (dwarf2_const_value_data, dwarf2_const_value_attr)
159 (dump_die_shallow, dwarf2_fetch_constant_bytes)
160 (prepare_one_comp_unit): Update.
161 * dwarf2/attribute.h (DW_UNSND): Remove.
162
c45bc3f8
TT
1632020-09-29 Tom Tromey <tom@tromey.com>
164
165 * dwarf2/read.c (read_func_scope, prototyped_function_p)
166 (read_subroutine_type, partial_die_info::read)
167 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
168 (dwarf2_add_member_fn): Update.
169 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
170 * dwarf2/attribute.c (attribute::as_boolean): New method.
171
23dca5c3
TT
1722020-09-29 Tom Tromey <tom@tromey.com>
173
174 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
175 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
176 method.
177 * dwarf2/attribute.c (attribute::as_virtuality): New method.
178
52c14d11
TT
1792020-09-29 Tom Tromey <tom@tromey.com>
180
181 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
182 the attribute's form.
183
e8e5c158
TT
1842020-09-29 Tom Tromey <tom@tromey.com>
185
186 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
187 (dwarf2_add_member_fn): Update.
188 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
189 * dwarf2/attribute.c (attribute::defaulted): New method, from
190 is_valid_DW_AT_defaulted.
191
d4df075e
TT
1922020-09-29 Tom Tromey <tom@tromey.com>
193
194 * dwarf2/read.c (dw2_get_file_names_reader)
195 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
196 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
197 (dwarf2_symbol_mark_computed): Use as_unsigned.
198 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
199 method.
200 <form_is_section_offset>: Update comment.
201
bf23a268
TT
2022020-09-29 Tom Tromey <tom@tromey.com>
203
204 * dwarf2/read.c (dwarf2_access_attribute): Rename from
205 dwarf2_default_access_attribute. Look up attribute.
206 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
207 Update.
208
7a5f294d
TT
2092020-09-29 Tom Tromey <tom@tromey.com>
210
211 * dwarf2/read.c (skip_one_die): Update.
212 (read_full_die_1): Change how reprocessing is done.
213 (partial_die_info::read): Update.
214 (read_attribute_value): Remove need_reprocess parameter.
215 (read_attribute): Likewise.
216 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
217 New method.
218
36d378cf
TT
2192020-09-29 Tom Tromey <tom@tromey.com>
220
221 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
222 (dwarf2_const_value_attr, dump_die_shallow)
223 (dwarf2_fetch_constant_bytes): Update.
224 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
225 comment.
226 <set_address>: New method.
227 (DW_ADDR): Remove.
228 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
229 (attribute::as_string, attribute::as_address): Add assert.
230
fe56917a
TT
2312020-09-29 Tom Tromey <tom@tromey.com>
232
233 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
234 (read_attribute_reprocess, read_attribute_value): Update.
235 (read_attribute): Clear requires_reprocessing.
236 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
237 form_requires_reprocessing>: New methods.
238 <string_init>: Clear requires_reprocessing.
239 <set_unsigned_reprocess>: New method.
240 <name>: Shrink by one bit.
241 <requires_reprocessing>: New member.
242 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
243 method.
244
414ad644
TT
2452020-09-29 Tom Tromey <tom@tromey.com>
246
247 * dwarf2/read.c (read_attribute_value): Update.
248 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
249 set_unsigned>: New methods.
250 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
251
1bc397c5
TT
2522020-09-29 Tom Tromey <tom@tromey.com>
253
254 * dwarf2/read.c (get_alignment, read_array_order)
255 (read_attribute_value, dwarf2_const_value_attr)
256 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
257 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
258 New methods.
259 (DW_SND): Remove.
260
630ed6b9
TT
2612020-09-29 Tom Tromey <tom@tromey.com>
262
263 * dwarf2/read.c (read_attribute_value, lookup_die_type)
264 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
265 Update.
266 * dwarf2/attribute.h (struct attribute) <as_signature,
267 set_signature>: New methods.
268 (DW_SIGNATURE): Remove.
269
9d2246fc
TT
2702020-09-29 Tom Tromey <tom@tromey.com>
271
272 * dwarf2/read.c (read_call_site_scope)
273 (handle_data_member_location, dwarf2_add_member_fn)
274 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
275 (partial_die_info::read, read_attribute_value)
276 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
277 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
278 (dwarf2_symbol_mark_computed): Update.
279 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
280 methods.
281 (DW_BLOCK): Remove.
282 * dwarf2/attribute.c (attribute::form_is_block): Add
283 DW_FORM_data16.
284
c6481205
TT
2852020-09-29 Tom Tromey <tom@tromey.com>
286
287 * dwarf2/read.c (read_cutu_die_from_dwo)
288 (read_attribute_reprocess, read_attribute_value, read_attribute)
289 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
290 (dwarf2_fetch_constant_bytes): Update.
291 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
292 <set_string_noncanonical, set_string_canonical>: New methods.
293 <string_is_canonical>: Update comment.
294 <canonical_string_p>: Add assert.
295 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
296 * dwarf2/attribute.c (attribute::form_is_string): New method.
297 (attribute::string): Use it.
298
3b64bf15
TT
2992020-09-29 Tom Tromey <tom@tromey.com>
300
301 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
302 (dump_die_shallow): Use canonical_string_p.
303 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
304 method.
305
2c830f54
TT
3062020-09-29 Tom Tromey <tom@tromey.com>
307
308 * dwarf2/read.c (partial_die_info::read)
309 (dwarf2_const_value_attr, anonymous_struct_prefix, )
310 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
311 attribute::as_string.
312
6c412691
TT
3132020-09-29 Tom Tromey <tom@tromey.com>
314
315 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
316 DW_ADDR.
317 (attribute::string): Don't use DW_STRING.
318 (attribute::get_ref_die_offset): Don't use DW_UNSND.
319 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
320
95f982e5
TT
3212020-09-29 Tom Tromey <tom@tromey.com>
322
323 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
324 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
325 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
326 * dwarf2/attribute.h (struct attribute): Rename methods.
327 * dwarf2/attribute.c (attribute::as_address): Rename from
328 value_as_address.
329 (attribute::as_string): Rename from value_as_string.
330
f800b00e
TT
3312020-09-29 Tom Tromey <tom@tromey.com>
332
333 * dwarf2/read.c (partial_die_info::read) <case
334 DW_AT_linkage_name>: Use value_as_string.
335 (dwarf2_string_attr): Use value_as_string.
336 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
337 method.
338 * dwarf2/attribute.c (attribute::value_as_string): New method.
339
de38d64a
PA
3402020-09-29 Pedro Alves <pedro@palves.net>
341
342 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
343 defined before using '#pragma GCC diagnostic' instead of checking
344 __clang__.
345
9aed480c
TT
3462020-09-28 Tom Tromey <tom@tromey.com>
347
348 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
349 (handle_signal_stop): Update.
350 * procfs.c (procfs_target::insert_watchpoint): Update.
351 * target.h (target_have_steppable_watchpoint): Now a function.
352
8a3ecb79
TT
3532020-09-28 Tom Tromey <tom@tromey.com>
354
355 * infrun.c (set_schedlock_func): Update.
356 * target.h (target_can_lock_scheduler): Now a function.
357
55f6301a
TT
3582020-09-28 Tom Tromey <tom@tromey.com>
359
360 * inferior.h (class inferior) <has_execution>: Update.
361 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
362 * valops.c (find_function_in_inferior)
363 (value_allocate_space_in_inferior): Update.
364 * top.c (kill_or_detach): Update.
365 * target.c (target_preopen, set_target_permissions): Update.
366 (target_has_execution_current): Remove.
367 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
368 Update.
369 * solib.c (update_solib_list, reload_shared_libraries): Update.
370 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
371 * solib-dsbt.c (enable_break): Update.
372 * score-tdep.c (score7_fetch_inst): Update.
373 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
374 Update.
375 * remote.c (remote_target::start_remote)
376 (remote_target::remote_check_symbols, remote_target::open_1)
377 (remote_target::remote_detach_1, remote_target::verify_memory)
378 (remote_target::xfer_partial, remote_target::read_description)
379 (remote_target::get_min_fast_tracepoint_insn_len): Update.
380 * record-full.c (record_full_open_1): Update.
381 * record-btrace.c (record_btrace_target_open): Update.
382 * objc-lang.c (lookup_objc_class, lookup_child_selector)
383 (value_nsstring): Update.
384 * linux-thread-db.c (add_thread_db_info)
385 (thread_db_find_new_threads_silently, check_thread_db_callback)
386 (try_thread_db_load_1, record_thread): Update.
387 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
388 Update.
389 * linux-fork.c (checkpoint_command): Update.
390 * infrun.c (set_non_stop, set_observer_mode)
391 (check_multi_target_resumption, for_each_just_stopped_thread)
392 (maybe_remove_breakpoints, normal_stop)
393 (class infcall_suspend_state): Update.
394 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
395 (info_program_command, attach_command): Update.
396 * infcall.c (call_function_by_hand_dummy): Update.
397 * inf-loop.c (inferior_event_handler): Update.
398 * gcore.c (gcore_command, derive_heap_segment): Update.
399 * exec.c (exec_file_command): Update.
400 * eval.c (evaluate_subexp): Update.
401 * compile/compile.c (compile_to_object): Update.
402 * cli/cli-dump.c (restore_command): Update.
403 * breakpoint.c (update_watchpoint)
404 (update_inserted_breakpoint_locations)
405 (insert_breakpoint_locations, get_bpstat_thread): Update.
406 * target.h (target_has_execution): Remove macro.
407 (target_has_execution_current): Don't declare.
408 (target_has_execution): Rename from target_has_execution_1. Add
409 argument default.
410
05374cfd
TT
4112020-09-28 Tom Tromey <tom@tromey.com>
412
413 * mi/mi-main.c (exec_reverse_continue)
414 (mi_cmd_list_target_features): Update.
415 * infrun.c (set_exec_direction_func): Update.
416 * target.c (default_execution_direction): Update.
417 * reverse.c (exec_reverse_once): Update.
418 * target.h (target_can_execute_reverse): Now a function.
419
9dccd06e
TT
4202020-09-28 Tom Tromey <tom@tromey.com>
421
422 * tui/tui-regs.c (tui_get_register)
423 (tui_data_window::show_registers): Update.
424 * thread.c (scoped_restore_current_thread::restore)
425 (scoped_restore_current_thread::scoped_restore_current_thread):
426 Update.
427 * regcache-dump.c (regcache_print): Update.
428 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
429 Update.
430 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
431 * mep-tdep.c (current_me_module, current_options): Update.
432 * linux-thread-db.c (thread_db_load): Update.
433 * infcmd.c (registers_info, info_vector_command)
434 (info_float_command): Update.
435 * ia64-tdep.c (ia64_frame_prev_register)
436 (ia64_sigtramp_frame_prev_register): Update.
437 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
438 * gcore.c (derive_stack_segment): Update.
439 * frame.c (get_current_frame, has_stack_frames): Update.
440 * findvar.c (language_defn::read_var_value): Update.
441 * arm-tdep.c (arm_pc_is_thumb): Update.
442 * target.c (target_has_registers): Rename from
443 target_has_registers_1.
444 * target.h (target_has_registers): Remove macro.
445 (target_has_registers): Rename from target_has_registers_1.
446
841de120
TT
4472020-09-28 Tom Tromey <tom@tromey.com>
448
449 * windows-tdep.c (tlb_make_value): Update.
450 * tui/tui-regs.c (tui_data_window::show_registers): Update.
451 * thread.c (scoped_restore_current_thread::restore)
452 (scoped_restore_current_thread::scoped_restore_current_thread)
453 (thread_command): Update.
454 * stack.c (backtrace_command_1, frame_apply_level_command)
455 (frame_apply_all_command, frame_apply_command): Update.
456 * infrun.c (siginfo_make_value, restore_infcall_control_state):
457 Update.
458 * gcore.c (derive_stack_segment): Update.
459 * frame.c (get_current_frame, has_stack_frames): Update.
460 * auxv.c (info_auxv_command): Update.
461 * ada-tasks.c (ada_build_task_list): Update.
462 * target.c (target_has_stack): Rename from target_has_stack_1.
463 * target.h (target_has_stack): Remove macro.
464 (target_has_stack): Rename from target_has_stack_1.
465
a739972c
TT
4662020-09-28 Tom Tromey <tom@tromey.com>
467
468 * target.c (target_has_memory): Rename from target_has_memory_1.
469 * tui/tui-regs.c (tui_data_window::show_registers): Update.
470 * thread.c (scoped_restore_current_thread::restore)
471 (scoped_restore_current_thread::scoped_restore_current_thread):
472 Update.
473 * frame.c (get_current_frame, has_stack_frames): Update.
474 * target.h (target_has_memory): Remove macro.
475 (target_has_memory): Rename from target_has_memory_1.
476
5b8a4776
TT
4772020-09-28 Tom Tromey <tom@tromey.com>
478
479 * target.c (target_has_all_memory_1): Remove.
480 * target.h (target_has_all_memory): Remove define.
481 (target_has_all_memory_1): Don't declare.
482
bd356ec6
SM
4832020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
484
485 * ser-base.c: Adjust comments formatting.
486
2c72d5e5
TT
4872020-09-27 Tom Tromey <tom@tromey.com>
488
489 PR tui/25342:
490 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
491
35a98237
TT
4922020-09-27 Tom Tromey <tom@tromey.com>
493
494 PR tui/25342:
495 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
496
9e820dec
TT
4972020-09-27 Tom Tromey <tom@tromey.com>
498
499 * unittests/tui-selftests.c: Update.
500 * tui/tui-winsource.h (struct tui_source_window_base)
501 <extra_margin, show_line_number, refresh_pad>: New methods.
502 <m_max_length, m_pad>: New members.
503 (tui_copy_source_line): Update.
504 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
505 first_col, line_width, ndigits parameters. Add length.
506 (tui_source_window_base::show_source_line): Write to pad. Line
507 number now 0-based.
508 (tui_source_window_base::refresh_pad): New method.
509 (tui_source_window_base::show_source_content): Write to pad. Call
510 refresh_pad.
511 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
512 not refill.
513 (tui_source_window_base::update_exec_info): Call
514 show_line_number.
515 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
516 method.
517 <m_digits>: New member.
518 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
519 and m_max_length.
520 (tui_source_window::show_line_number): New method.
521 * tui/tui-io.h (tui_puts): Fix comment.
522 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
523 m_max_length.
524
c15c15c8
TT
5252020-09-27 Tom Tromey <tom@tromey.com>
526
527 * tui/tui-winsource.c
528 (tui_source_window_base::set_is_exec_point_at): Don't call
529 show_source_line.
530
149830c1
TT
5312020-09-27 Tom Tromey <tom@tromey.com>
532
533 * python/py-tui.c (class tui_py_window) <refresh_window>: New
534 method.
535 <erase>: Update.
536 <cursor_x, cursor_y>: Remove.
537 <m_inner_window>: New member.
538 (tui_py_window::rerender): Create inner window.
539 (tui_py_window::output): Write to inner window.
540
8f9929bb
GR
5412020-09-26 Gareth Rees <grees@undo.io> (tiny change)
542
543 PR python/26586
544 * cli/cli-script.c (execute_control_commands): don't set
545 instream to nullptr here as this breaks the from_tty argument
546 to gdb.execute in Python.
547 (execute_user_command): set instream to nullptr here instead.
548
956bdb59
SM
5492020-09-25 Simon Marchi <simon.marchi@efficios.com>
550
551 * infrun.h (infrun_debug_printf): Fix formatting.
552 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
553
3b93626b
SJ
5542020-09-25 Saagar Jha <saagar@saagarjha.com>
555
556 * compile/compile-object-load.h (struct munmap_list): Add
557 explicitly-defined move constructor.
558
b551a89f
TT
5592020-09-24 Tom Tromey <tromey@adacore.com>
560
561 PR tui/26638:
562 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
563 method.
564 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
565 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
566 (tui_prev_win): Rewrite.
567
99bb393f
HD
5682020-09-23 Hannes Domani <ssbssa@yahoo.de>
569
570 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
571 in WOW64 processes as SIGINT.
572 * nat/windows-nat.h: Make wow64_process a shared variable.
573 * windows-nat.c: Remove static wow64_process variable.
574
20a5fcbd
TT
5752020-09-23 Tom Tromey <tom@tromey.com>
576
577 PR symtab/25470:
578 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
579 offset and bit size.
580 * printcmd.c (print_scalar_formatted): Handle zero-length
581 integer.
582 (print_scalar_formatted): Use bit_size_differs_p.
583 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
584 constant.
585 (union type_specific): <int_stuff>: New member.
586 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
587 methods.
588 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
589 TYPE_SPECIFIC_FIELD.
590 (recursive_dump_type, copy_type_recursive): Update.
591 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
592 DW_AT_data_bit_offset.
593
bac51ab7
TT
5942020-09-23 Tom Tromey <tom@tromey.com>
595
596 * utils.h (class gdb_argv): Add move operators.
597 <append>: New methods.
598 * compile/compile.c (build_argc_argv): Remove.
599 (compile_args_argc): Remove.
600 (compile_args_argv): Change type.
601 (set_compile_args): Simplify.
602 (append_args): Remove.
603 (filter_args): Remove argcp parameter.
604 (get_args): Return gdb_argv. Simplify.
605 (compile_to_object): Update.
606
92677124
TT
6072020-09-23 Tom Tromey <tom@tromey.com>
608
609 * compile/compile-object-run.c (do_module_cleanup)
610 <~do_module_cleanup> :Remove.
611 (do_module_cleanup): Update.
612 * compile/compile-object-load.h (struct munmap_list): Add move
613 assignment operator.
614 <source_file>: Now a std::string.
615 <munmap_list>: Rename. No longer a pointer.
616 * compile/compile-object-load.c (struct setup_sections_data): Add
617 constructor.
618 <setup_one_section>: Declare.
619 <munmap_list>: Move earlier.
620 <m_bfd>: New member.
621 <m_last_size, m_last_section_first, m_last_prot,
622 m_last_max_alignment>: Rename, add initializers where needed.
623 (setup_sections_data::setup_one_section): Rename from
624 setup_sections. Update.
625 (compile_object_load): Update. Don't use bfd_map_over_sections.
626
e616f60a
TT
6272020-09-23 Tom Tromey <tom@tromey.com>
628
629 * compile/compile-object-run.c (struct do_module_cleanup): Add
630 parameters to constructor. Update destructor.
631 <source_file, scope, scope_data, out_value_type, out_value_addr,
632 munmap_list_head, objfile_name_string>: Remove.
633 <module>: New member.
634 (do_module_cleanup): Update.
635 (compile_object_run): Update.
636
e947a848
TT
6372020-09-23 Tom Tromey <tom@tromey.com>
638
639 * compile/compile.c (eval_compile_command): Update.
640 * compile/compile-object-run.h (compile_object_run): Take a
641 compile_module_up.
642 * compile/compile-object-run.c (compile_object_run): Take a
643 compile_module_up.
644 * compile/compile-object-load.h (struct compile_module): Add
645 constructor, destructor.
646 (compile_module_up): New typedef.
647 (compile_object_load): Return compile_object_up.
648 * compile/compile-object-load.c (compile_object_load): Return
649 compile_module_up.
650
0dbf6ee6
TT
6512020-09-23 Tom Tromey <tom@tromey.com>
652
653 * compile/compile-object-run.c (struct do_module_cleanup): Add
654 constructor, destructor.
655 <objfile_name_string>: Don't use struct hack.
656 (do_module_cleanup): Use delete.
657 (compile_object_run): Use new.
658
ebe824f5
TT
6592020-09-23 Tom Tromey <tom@tromey.com>
660
661 * compile/compile-cplus-types.c
662 (compile_cplus_convert_struct_or_union): Use std::vector.
663 (compile_cplus_convert_func): Likewise.
664 * compile/compile-c-types.c (convert_func): Use std::vector.
665
5dd918d9
TT
6662020-09-21 Tom Tromey <tromey@adacore.com>
667
668 * sparc-tdep.c (sparc32_skip_prologue): Use
669 skip_prologue_using_sal.
670
5486c517
TT
6712020-09-19 Tom Tromey <tom@tromey.com>
672
673 * symfile.c (add_section_size_callback): Remove.
674 (load_one_section): Rename from load_section_callback. Change
675 parameters.
676 (generic_load): Use foreach.
677
8a6bb1d1
TT
6782020-09-19 Tom Tromey <tom@tromey.com>
679
680 * exec.c (add_to_section_table): Remove.
681 (build_section_table): Use foreach.
682
08f93a1a
TT
6832020-09-19 Tom Tromey <tom@tromey.com>
684
685 * elfread.c (elf_locate_sections): Change parameters.
686 (elf_symfile_read): Use foreach.
687
03cd72b8
TT
6882020-09-19 Tom Tromey <tom@tromey.com>
689
690 * cli/cli-dump.c (struct callback_data): Remove.
691 (restore_one_section): Rename from restore_section_callback.
692 Change parameters.
693 (restore_binary_file): Change parameters.
694 (restore_command): Use foreach.
695
f4f2b85f
TT
6962020-09-19 Tom Tromey <tom@tromey.com>
697
698 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
699 (gcore_copy_callback): Likewise.
700 (gcore_memory_sections): Use foreach.
701
b35c1d1c
TT
7022020-09-19 Tom Tromey <tom@tromey.com>
703
704 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
705 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
706 parameters.
707 (generic_elf_osabi_sniffer): Use foreach.
708 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
709 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
710
5bb6e9dd
TT
7112020-09-19 Tom Tromey <tom@tromey.com>
712
713 * dwarf2/read.c (locate_dwz_sections): Change parameters.
714 (dwarf2_get_dwz_file): Use foreach.
715 (dwarf2_locate_dwo_sections): Change parameters.
716 (open_and_init_dwo_file): Use foreach.
717 (dwarf2_locate_common_dwp_sections): Change parameters.
718 (open_and_init_dwp_file): Use foreach.
719
ad7277da
TT
7202020-09-19 Tom Tromey <tom@tromey.com>
721
722 * symfile.h: (find_lowest_section): Don't declare.
723 * symfile.c (find_lowest_section): Now static. Change
724 parameters.
725 (struct place_section_arg): Remove.
726 (place_section): Change parameters.
727 (addr_info_make_relative): Use foreach.
728 (symfile_dummy_outputs): Remove.
729 (default_symfile_relocate): Use foreach.
730
cb814f2e
TT
7312020-09-19 Tom Tromey <tom@tromey.com>
732
733 * objfiles.c (add_to_objfile_sections): Rename from
734 add_to_objfile_sections_full.
735 (add_to_objfile_sections): Remove.
736 (build_objfile_section_table): Use foreach.
737
3cabfd26
TT
7382020-09-19 Tom Tromey <tom@tromey.com>
739
740 * stap-probe.c (get_stap_base_address_1): Remove.
741 (get_stap_base_address): Use foreach.
742
1ce51eb5
TT
7432020-09-19 Tom Tromey <tom@tromey.com>
744
745 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
746 parameters.
747 (gdb_bfd_close_or_warn): Use foreach.
748
a190fabb
TT
7492020-09-19 Tom Tromey <tom@tromey.com>
750
751 * corelow.c (add_to_thread_list): Change parameters.
752 (core_target_open): Use foreach.
753
cafb0d81
TT
7542020-09-19 Tom Tromey <tom@tromey.com>
755
756 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
757 existing function.
758
c8d5abea
AB
7592020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
760
761 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
762 for arrays.
763
6d816919
AB
7642020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
765
766 * eval.c: Remove 'f-lang.h' include.
767 (value_f90_subarray): Moved to f-lang.c.
768 (eval_call): Renamed to...
769 (evaluate_subexp_do_call): ...this, is no longer static, header
770 comment moved into header file.
771 (evaluate_funcall): Update call to eval_call.
772 (skip_undetermined_arglist): Moved to f-lang.c.
773 (fortran_value_subarray): Likewise.
774 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
775 moved to evaluate_subexp_f.
776 (calc_f77_array_dims): Moved to f-lang.c
777 * expprint.c (print_subexp_funcall): New function.
778 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
779 moved to print_subexp_f, OP_FUNCALL uses new function.
780 (dump_subexp_body_funcall): New function.
781 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
782 moved to dump_subexp_f, OP_FUNCALL uses new function.
783 * expression.h (evaluate_subexp_do_call): Declare.
784 * f-lang.c (value_f90_subarray): Moved from eval.c.
785 (skip_undetermined_arglist): Likewise.
786 (calc_f77_array_dims): Likewise.
787 (fortran_value_subarray): Likewise.
788 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
789 (operator_length_f): Likewise.
790 (print_subexp_f): Likewise.
791 (dump_subexp_body_f): Likewise.
792 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
793 declaration of this operation to here.
794 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
795 support moved to operator_length_f.
796 * parser-defs.h (dump_subexp_body_funcall): Declare.
797 (print_subexp_funcall): Declare.
798 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
799 fortran-operator.def.
800
8c37706a
AB
8012020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
802
803 * eval.c (fortran_value_subarray): New function, content is taken
804 from...
805 (evaluate_subexp_standard): ...here, in two places. Now arrays
806 and strings both call the new function.
807 (calc_f77_array_dims): Add header comment, handle strings.
808
14f9473c
VC
8092020-09-18 Victor Collod <vcollod@nvidia.com>
810
811 PR gdb/26635
812 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
813 (i386_analyze_prologue): Call i386_skip_endbr.
814
b60cea74
TT
8152020-09-18 Tom Tromey <tromey@adacore.com>
816
817 * windows-nat.c (struct windows_nat_target) <wait>: Update.
818 (windows_nat_target::wait): Update.
819 * target/wait.h (enum target_wait_flag): New. Use
820 DEF_ENUM_FLAGS_TYPE.
821 * target/target.h (target_wait): Change type of options.
822 * target.h (target_options_to_string, default_target_wait):
823 Update.
824 (struct target_ops) <wait>: Change type of options.
825 * target.c (target_wait, default_target_wait, do_option): Change
826 type of "options".
827 (target_options_to_string): Likewise.
828 * target-delegates.c: Rebuild.
829 * target-debug.h (target_debug_print_target_wait_flags): Rename
830 from target_debug_print_options.
831 * sol-thread.c (class sol_thread_target) <wait>: Update.
832 (sol_thread_target::wait): Update.
833 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
834 (rs6000_nat_target::wait): Update.
835 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
836 Update.
837 (remote_target::wait_ns, remote_target::wait_as): Change type of
838 "options".
839 (remote_target::wait): Update.
840 * remote-sim.c (struct gdbsim_target) <wait>: Update.
841 (gdbsim_target::wait): Update.
842 * record-full.c (class record_full_base_target) <wait>: Update.
843 (record_full_wait_1): Change type of "options".
844 (record_full_base_target::wait): Update.
845 * record-btrace.c (class record_btrace_target) <wait>: Update.
846 (record_btrace_target::wait): Update.
847 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
848 Update.
849 (ravenscar_thread_target::wait): Update.
850 * procfs.c (class procfs_target) <wait>: Update.
851 (procfs_target::wait): Update.
852 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
853 * obsd-nat.c (obsd_nat_target::wait): Update.
854 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
855 (nto_procfs_target::wait): Update.
856 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
857 * nbsd-nat.c (nbsd_wait): Change type of "options".
858 (nbsd_nat_target::wait): Update.
859 * linux-thread-db.c (class thread_db_target) <wait>: Update.
860 (thread_db_target::wait): Update.
861 * linux-nat.h (class linux_nat_target) <wait>: Update.
862 * linux-nat.c (linux_nat_target::wait): Update.
863 (linux_nat_wait_1): Update.
864 * infrun.c (do_target_wait_1, do_target_wait): Change type of
865 "options".
866 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
867 * inf-ptrace.c (inf_ptrace_target::wait): Update.
868 * go32-nat.c (struct go32_nat_target) <wait>: Update.
869 (go32_nat_target::wait): Update.
870 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
871 * gnu-nat.c (gnu_nat_target::wait): Update.
872 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
873 * fbsd-nat.c (fbsd_nat_target::wait): Update.
874 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
875 * darwin-nat.c (darwin_nat_target::wait): Update.
876 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
877 (bsd_uthread_target::wait): Update.
878 * aix-thread.c (class aix_thread_target) <wait>: Update.
879 (aix_thread_target::wait): Update.
880
0295dde6
AB
8812020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
882
883 * compile/compile-object-run.c (create_copied_type_recursive): New
884 function.
885 (compile_object_run): Use new function.
886
d3483b43
JT
8872020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
888
889 * NEWS: Mention x86_64 Cygwin core file support.
890
e7d612ad
JT
8912020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
892
893 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
894 (core_process_module_section): Handle NOTE_INFO_MODULE64.
895
aff9d387
JT
8962020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
897
62a5151b
JT
898 * windows-tdep.h: Add prototypes.
899 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
900 (i386_windows_core_pid_to_str): Move and rename ...
901 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
902 (windows_core_pid_to_str): ... and here.
903 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
904
9052020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
906 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
907 (amd64_windows_init_abi_common): ... and register.
908
7d155da3
JT
9092020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
910
911 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
912 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
913
e8ef12b9
PA
9142020-09-18 Pedro Alves <pedro@palves.net>
915
916 PR gdb/26631
917 * thread.c (thread_find_command): Switch inferior before calling
918 target methods.
919
c1e1314d
TT
9202020-09-17 Tom Tromey <tromey@adacore.com>
921
922 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
923 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
924 (tdesc_arch_data_up): New typedef.
925 (tdesc_use_registers, tdesc_data_alloc): Update.
926 (tdesc_data_cleanup): Don't declare.
927 * target-descriptions.c (tdesc_data_alloc): Return a
928 tdesc_arch_data_up.
929 (tdesc_arch_data_deleter::operator()): Rename from
930 tdesc_data_cleanup. Change argument type.
931 (tdesc_use_registers): Change early_data to an rvalue reference.
932 (tdesc_use_registers): Don't use delete.
933 * sparc-tdep.c (sparc32_gdbarch_init): Update.
934 * s390-tdep.c (s390_gdbarch_init): Update.
935 * rx-tdep.c (rx_gdbarch_init): Update.
936 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
937 * riscv-tdep.c (riscv_gdbarch_init): Update.
938 * or1k-tdep.c (or1k_gdbarch_init): Update.
939 * nios2-tdep.c (nios2_gdbarch_init): Update.
940 * nds32-tdep.c (nds32_gdbarch_init): Update.
941 * mips-tdep.c (mips_gdbarch_init): Update.
942 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
943 * m68k-tdep.c (m68k_gdbarch_init): Update.
944 * i386-tdep.c (i386_gdbarch_init): Update.
945 * arm-tdep.c (arm_gdbarch_init): Update.
946 * arc-tdep.c (arc_tdesc_init): Update.
947 (arc_gdbarch_init): Update.
948 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
949
0363df3d
HD
9502020-09-17 Hannes Domani <ssbssa@yahoo.de>
951
952 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
953 for WOW64 processes.
954
280a9412
TT
9552020-09-17 Tom Tromey <tom@tromey.com>
956
957 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
958
6108fd18
TT
9592020-09-17 Tom Tromey <tom@tromey.com>
960
961 * value.c (preserve_values): Update.
962 * python/py-type.c (save_objfile_types): Update.
963 * guile/scm-type.c (save_objfile_types): Update.
964 * gdbtypes.h (create_copied_types_hash): Return htab_up.
965 * gdbtypes.c (create_copied_types_hash): Return htab_up.
966 * compile/compile-object-run.c (compile_object_run): Update.
967
fa9b1164
TT
9682020-09-17 Tom Tromey <tom@tromey.com>
969
970 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
971 Remove.
972 <m_table>: Now htab_up.
973 * typeprint.c (typedef_hash_table::recursively_update)
974 (typedef_hash_table::add_template_parameters)
975 (typedef_hash_table::typedef_hash_table): Update.
976 (typedef_hash_table::~typedef_hash_table): Remove.
977 (typedef_hash_table::typedef_hash_table)
978 (typedef_hash_table::find_global_typedef)
979 (typedef_hash_table::find_typedef): Update.
980
eb53f105
TT
9812020-09-17 Tom Tromey <tom@tromey.com>
982
983 * target-descriptions.c (tdesc_use_registers): Use htab_up.
984
7a8a5d47
TT
9852020-09-17 Tom Tromey <tom@tromey.com>
986
987 * linespec.c (class decode_compound_collector)
988 <~decode_compound_collector>: Remove.
989 <m_unique_syms>: Now htab_up.
990 (decode_compound_collector::operator ()): Update.
991 (class symtab_collector) <~symtab_collector>: Remove.
992 <m_symtab_table>: Now htab_up.
993 (symtab_collector::operator ()): Update.
994
99032cfc
TT
9952020-09-17 Tom Tromey <tom@tromey.com>
996
997 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
998 (filename_seen_cache::clear): Update.
999 (~filename_seen_cache): Remove.
1000 (filename_seen_cache::seen): Update.
1001 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
1002 htab_up.
1003 <~filename_seen_cache>: Remove.
1004 <traverse>: Update.
1005
32580f6d
TT
10062020-09-17 Tom Tromey <tom@tromey.com>
1007
1008 * completer.c (completion_tracker::discard_completions)
1009 (completion_tracker::~completion_tracker)
1010 (completion_tracker::maybe_add_completion)
1011 (completion_tracker::remove_completion)
1012 (completion_tracker::recompute_lowest_common_denominator)
1013 (completion_tracker::build_completion_result): Update.
1014 * completer.h (class completion_tracker) <have_completions>:
1015 Update.
1016 <m_entries_hash>: Now htab_up.
1017
c1fb9836
TT
10182020-09-17 Tom Tromey <tom@tromey.com>
1019
1020 * breakpoint.c (ambiguous_names_p): Use htab_up.
1021
88f07206
TT
10222020-09-17 Tom Tromey <tom@tromey.com>
1023
1024 * auto-load.c (struct auto_load_pspace_info)
1025 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
1026 <loaded_script_files, loaded_script_texts>: Change type to
1027 htab_up.
1028 (~auto_load_pspace_info) Remove.
1029 (init_loaded_scripts_info, maybe_add_script_file)
1030 (maybe_add_script_text, auto_load_info_scripts): Update.
1031
9519b2ee
TT
10322020-09-17 Tom Tromey <tromey@adacore.com>
1033
1034 * c-exp.y (name_obstack): Now static.
1035
d2cd4113
CC
10362020-09-17 Chungyi Chi <demonic@csie.io>
1037
1038 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
1039
b650a282
SM
10402020-09-16 Simon Marchi <simon.marchi@efficios.com>
1041
1042 * breakpoint.h (init_catchpoint): Change int parameter to bool.
1043 (add_solib_catchpoint): Likewise.
1044 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
1045 to bool.
1046 (add_solib_catchpoint): Change int parameter/variable to bool.
1047 (catch_load_or_unload): Likewise.
1048 (init_catchpoint): Likewise.
1049 (create_fork_vfork_event_catchpoint): Likewise.
1050 (catch_fork_command_1): Likewise.
1051 (catch_exec_command_1): Likewise.
1052
4d0bcfcf
SM
10532020-09-16 Simon Marchi <simon.marchi@efficios.com>
1054
1055 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
1056 Change instance_flags to m_instance_flags.
1057
fe830662
TT
10582020-09-16 Tom Tromey <tromey@adacore.com>
1059
1060 PR gdb/26598:
1061 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
1062
fe5ddfc3
JB
10632020-09-16 John Baldwin <jhb@FreeBSD.org>
1064
1065 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
1066 PL_FLAG_EXEC.
1067 (fbsd_nat_target::insert_exec_catchpoint)
1068 (fbsd_nat_target::remove_exec_catchpoint): Always define.
1069 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
1070 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
1071
e911c666
JB
10722020-09-16 John Baldwin <jhb@FreeBSD.org>
1073
1074 * configure.ac: Remove check for kinfo_getvmmap().
1075 * configure, config.in: Regenerate.
1076 * fbsd-nat.c (fbsd_read_mapping): Remove
1077 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
1078 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
1079 kinfo_get_vmmap() are always present.
1080
1f17d372
JB
10812020-09-16 John Baldwin <jhb@FreeBSD.org>
1082
1083 * fbsd-nat.c: Always include support for
1084 TARGET_OBJECT_SIGNAL_INFO.
1085
bcb1da7f
JB
10862020-09-16 John Baldwin <jhb@FreeBSD.org>
1087
1088 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
1089 sysctl and remove procfs fallback.
1090
5515f729
JB
10912020-09-16 John Baldwin <jhb@FreeBSD.org>
1092
1093 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
1094 * fbsd-nat.h: Likewise.
1095
da1df1db
TBA
10962020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1097
1098 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
1099 argument.
1100
0e25e767
AB
11012020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1102
1103 * ada-lang.c (ada_language_data): Delete.
1104 (ada_language): Remove references to ada_language_data.
1105 * c-lang.c (c_language_data): Delete.
1106 (c_language): Remove references to c_language_data.
1107 (cplus_language_data): Delete.
1108 (cplus_language): Remove references to cplus_language_data.
1109 (asm_language_data): Delete.
1110 (asm_language): Remove references to asm_language_data.
1111 (minimal_language_data): Delete.
1112 (minimal_language): Remove references to minimal_language_data.
1113 * d-lang.c (d_language_data): Delete.
1114 (d_language): Remove references to d_language_data.
1115 * f-lang.c (f_language_data): Delete.
1116 (f_language): Remove references to f_language_data.
1117 * go-lang.c (go_language_data): Delete.
1118 (go_language): Remove references to go_language_data.
1119 * language.c (unknown_language_data): Delete.
1120 (unknown_language): Remove references to unknown_language_data.
1121 (auto_language_data): Delete.
1122 (auto_language): Remove references to auto_language_data.
1123 * language.h (language_data): Delete struct.
1124 (language_defn): No longer inherit from language_data.
1125 * m2-lang.c (m2_language_data): Delete.
1126 (m2_language): Remove references to m2_language_data.
1127 * objc-lang.c (objc_language_data): Delete.
1128 (objc_language): Remove references to objc_language_data.
1129 * opencl-lang.c (opencl_language_data): Delete.
1130 (opencl_language): Remove references to opencl_language_data.
1131 * p-lang.c (pascal_language_data): Delete.
1132 (pascal_language): Remove references to pascal_language_data.
1133 * rust-lang.c (rust_language_data): Delete.
1134 (rust_language): Remove references to rust_language_data.
1135
b7c6e27d
AB
11362020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1137
1138 * ada-lang.c (ada_language_data): Remove la_op_print_tab
1139 initializer.
1140 (ada_language::opcode_print_table): New member function.
1141 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
1142 (c_language::opcode_print_table): New member function.
1143 (cplus_language_data): Remove la_op_print_tab initializer.
1144 (cplus_language::opcode_print_table): New member function.
1145 (asm_language_data): Remove la_op_print_tab initializer.
1146 (asm_language::opcode_print_table): New member function.
1147 (minimal_language_data): Remove la_op_print_tab initializer.
1148 (minimal_language::opcode_print_table): New member function.
1149 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
1150 (d_language::opcode_print_table): New member function.
1151 * expprint.c (print_subexp_standard): Update call to
1152 opcode_print_table.
1153 (op_string): Likewise.
1154 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
1155 (f_language::opcode_print_table): New member function.
1156 * go-lang.c (go_language_data): Remove la_op_print_tab
1157 initializer.
1158 (go_language::opcode_print_table): New member function.
1159 * language.c (unknown_language_data): Remove la_op_print_tab
1160 initializer.
1161 (unknown_language::opcode_print_table): New member function.
1162 (auto_language_data): Remove la_op_print_tab initializer.
1163 (auto_language::opcode_print_table): New member function.
1164 * language.h (language_data): Remove la_op_print_tab field.
1165 (language_defn::opcode_print_table): Declare new member function.
1166 * m2-lang.c (m2_language_data): Remove la_op_print_tab
1167 initializer.
1168 (m2_language::opcode_print_table): New member function.
1169 * objc-lang.c (objc_language_data): Remove la_op_print_tab
1170 initializer.
1171 (objc_language::opcode_print_table): New member function.
1172 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
1173 initializer.
1174 (opencl_language::opcode_print_table): New member function.
1175 * p-lang.c (pascal_language_data): Remove la_op_print_tab
1176 initializer.
1177 (pascal_language::opcode_print_table): New member function.
1178 * rust-lang.c (rust_language_data): Remove la_op_print_tab
1179 initializer.
1180 (rust_language::opcode_print_table): New member function.
1181
5aba6ebe
AB
11822020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1183
1184 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
1185 (ada_language::expression_ops): New member function.
1186 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
1187 (c_language::expression_ops): New member function.
1188 (cplus_language_data): Remove la_exp_desc initializer.
1189 (cplus_language::expression_ops): New member function.
1190 (asm_language_data): Remove la_exp_desc initializer.
1191 (asm_language::expression_ops): New member function.
1192 (minimal_language_data): Remove la_exp_desc initializer.
1193 (minimal_language::expression_ops): New member function.
1194 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
1195 (d_language::expression_ops): New member function.
1196 * eval.c (evaluate_subexp): Update call to expression_ops.
1197 * expprint.c (print_subexp): Likewise.
1198 (op_name): Likewise.
1199 (dump_subexp_body): Likewise.
1200 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
1201 (f_language::expression_ops): New member function.
1202 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
1203 (go_language::expression_ops): New member function.
1204 * language.c (language_defn::expression_ops): New function.
1205 (unknown_language_data): Remove la_exp_desc initializer.
1206 (auto_language_data): Likewise.
1207 * language.h (language_data): Remove la_exp_desc field.
1208 (language_defn::expression_ops): Declare new member function.
1209 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
1210 (m2_language::expression_ops): New member function.
1211 * objc-lang.c (objc_language_data): Remove la_exp_desc
1212 initializer.
1213 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
1214 initializer.
1215 (opencl_language::expression_ops): New member function.
1216 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
1217 * parse.c (operator_length): Update call to expression_ops.
1218 (exp_iterate): Likewise.
1219 * rust-lang.c (rust_language_data): Remove la_exp_desc
1220 initializer.
1221 (ruse_language::expression_ops): New member function.
1222
b63a3f3f
AB
12232020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1224
1225 * ada-lang.c (ada_language_data): Remove la_varobj_ops
1226 initializer.
1227 (ada_language::varobj_ops): New member function.
1228 * c-lang.c (c_language_data): Remove la_varobj_ops
1229 initializer.
1230 (cplus_language_data): Likewise.
1231 (cplus_language::varobj_ops): New member function.
1232 (asm_language_data): Remove la_varobj_ops initializer.
1233 (minimal_language_data): Likewise.
1234 * d-lang.c (d_language_data): Likewise.
1235 * f-lang.c (f_language_data): Likewise.
1236 * go-lang.c (go_language_data): Likewise.
1237 * language.c (language_defn::varobj_ops): New function.
1238 (unknown_language_data): Remove la_varobj_ops
1239 initializer.
1240 (auto_language_data): Likewise.
1241 * language.h (language_data): Remove la_varobj_ops field.
1242 (language_defn::varobj_ops): Declare new member function.
1243 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
1244 * objc-lang.c (objc_language_data): Likewise.
1245 * opencl-lang.c (opencl_language_data): Likewise.
1246 * p-lang.c (pascal_language_data): Likewise.
1247 * rust-lang.c (rust_language_data): Likewise.
1248 * varobj.c (varobj_create): Update call to varobj_ops.
1249 * varobj.h (default_varobj_ops): Delete define.
1250
1ac14a04
AB
12512020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1252
1253 * ada-lang.c (ada_language_data): Remove la_macro_expansion
1254 initializer.
1255 * c-lang.c (c_language_data): Likewise.
1256 (c_language::macro_expansion): New member function.
1257 (cplus_language_data): Likewise.
1258 (cplus_language::macro_expansion): New member function.
1259 (asm_language_data): Likewise.
1260 (asm_language::macro_expansion): New member function.
1261 (minimal_language_data): Likewise.
1262 (minimal_language::macro_expansion): New member function.
1263 * d-lang.c (d_language_data): Remove la_macro_expansion
1264 initializer.
1265 * f-lang.c (f_language_data): Likewise.
1266 * go-lang.c (go_language_data): Likewise.
1267 * language.c (unknown_language_data): Likewise.
1268 (auto_language_data): Likewise.
1269 * language.h (language_data): Remove la_macro_expansion field.
1270 (language_defn::macro_expansion): New member function.
1271 * m2-lang.c (m2_language_data): Remove la_macro_expansion
1272 initializer.
1273 * objc-lang.c (objc_language_data): Likewise.
1274 (objc_language::macro_expansion): New member function.
1275 * opencl-lang.c (opencl_language_data): Likewise.
1276 (opencl_language::macro_expansion): New member function.
1277 * p-lang.c (pascal_language_data): Remove la_macro_expansion
1278 initializer.
1279 * rust-lang.c (rust_language_data): Likewise.
1280 * symtab.c (default_collect_symbol_completion_matches_break_on):
1281 Update call to macro_expansion.
1282
3a3440fb
AB
12832020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1284
1285 * ada-lang.c (ada_language_data): Remove la_array_ordering
1286 initializer.
1287 * c-lang.c (c_language_data): Likewise.
1288 (cplus_language_data): Likewise.
1289 (asm_language_data): Likewise.
1290 (minimal_language_data): Likewise.
1291 * d-lang.c (d_language_data): Likewise.
1292 * dwarf2/read.c (read_array_order): Update for call to
1293 array_ordering.
1294 * f-lang.c (f_language_data): Remove la_array_ordering
1295 initializer.
1296 (f_language::array_ordering): New member function.
1297 * go-lang.c (go_language_data): Remove la_array_ordering
1298 initializer.
1299 * language.c (unknown_language_data): Likewise.
1300 (auto_language_data): Likewise.
1301 * language.h (language_data): Delete la_array_ordering field.
1302 (language_defn::array_ordering): New member function.
1303 * m2-lang.c (m2_language_data): Remove la_array_ordering
1304 initializer.
1305 * objc-lang.c (objc_language_data): Likewise.
1306 * opencl-lang.c (opencl_language_data): Likewise.
1307 * p-lang.c (pascal_language_data): Likewise.
1308 * rust-lang.c (rust_language_data): Likewise.
1309
0d201fa4
AB
13102020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1311
1312 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
1313 initializer.
1314 * c-lang.c (c_language_data): Likewise.
1315 (cplus_language_data): Likewise.
1316 (asm_language_data): Likewise.
1317 (minimal_language_data): Likewise.
1318 * d-lang.c (d_language_data): Likewise.
1319 * f-lang.c (f_language_data): Likewise.
1320 (f_language::case_sensitivity): New member function.
1321 * go-lang.c (go_language_data): Remove la_case_sensitivity
1322 initializer.
1323 * language.c (enum case_mode): Moved here from language.h.
1324 (case_mode): Make static.
1325 (show_case_command): Update for case_sensitivity being a method.
1326 (set_case_command): Likewise.
1327 (set_range_case): Likewise.
1328 (unknown_language_data): Remove la_case_sensitivity initializer.
1329 (auto_language_data): Likewise.
1330 * language.h (case_mode): Delete, move enum declaration to
1331 language.c.
1332 (language_data): Delete la_case_sensitivity field.
1333 (language_defn::case_sensitivity): New member function.
1334 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
1335 initializer.
1336 * objc-lang.c (objc_language_data): Likewise.
1337 * opencl-lang.c (opencl_language_data): Likewise.
1338 * p-lang.c (pascal_language_data): Likewise.
1339 * rust-lang.c (rust_language_data): Likewise.
1340
efdf6a73
AB
13412020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1342
1343 * ada-lang.c (ada_language_data): Remove la_range_check
1344 initializer.
1345 * c-lang.c (c_language_data): Likewise.
1346 (cplus_language_data): Likewise.
1347 (asm_language_data): Likewise.
1348 (minimal_language_data): Likewise.
1349 * d-lang.c (d_language_data): Likewise.
1350 * f-lang.c (f_language_data): Likewise.
1351 (f_language::range_checking_on_by_default): New member function.
1352 * go-lang.c (go_language_data): Remove la_range_check initializer.
1353 * language.c (enum range_mode): Moved here from language.h.
1354 (range_mode): Made static.
1355 (show_range_command): Update to use
1356 range_checking_on_by_default.
1357 (set_range_command): Likewise.
1358 (set_range_case): Likewise.
1359 (unknown_language_data): Remove la_range_check initializer.
1360 (auto_language_data): Likewise.
1361 * language.h (range_mode): Delete. Enum definition moved to
1362 language.c.
1363 (language_data): Remove la_range_check field.
1364 (language_defn::range_checking_on_by_default): New member
1365 function.
1366 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
1367 (m2_language::range_checking_on_by_default): New member function.
1368 * objc-lang.c (objc_language_data): Remove la_range_check
1369 initializer.
1370 * opencl-lang.c (opencl_language_data): Likewise.
1371 * p-lang.c (pascal_language_data): Likewise.
1372 (pascal_language::range_checking_on_by_default): New member
1373 function.
1374 * rust-lang.c (rust_language_data): Remove la_range_check
1375 initializer.
1376 (rust_language::range_checking_on_by_default): New member
1377 function.
1378
bf92aec5
AB
13792020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1380
1381 * dwarf2/read.c (dwarf2_physname): Remove special case for
1382 language_go.
1383 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
1384 member function.
1385
d3355e4d
AB
13862020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1387
1388 * ada-lang.c (ada_language_data): Remove
1389 la_store_sym_names_in_linkage_form_p initializer.
1390 (ada_language::store_sym_names_in_linkage_form_p): New member
1391 function.
1392 * c-lang.c (c_language_data): Remove
1393 la_store_sym_names_in_linkage_form_p initializer.
1394 (c_language::store_sym_names_in_linkage_form_p): New member
1395 function.
1396 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
1397 initializer.
1398 (asm_language_data): Likewise.
1399 (asm_language::store_sym_names_in_linkage_form_p): New member
1400 function.
1401 (minimal_language_data): Remove
1402 la_store_sym_names_in_linkage_form_p initializer.
1403 (minimal_language::store_sym_names_in_linkage_form_p): New member
1404 function.
1405 * d-lang.c (d_language_data): Remove
1406 la_store_sym_names_in_linkage_form_p initializer.
1407 * dwarf2/read.c (dwarf2_physname): Update call to
1408 store_sym_names_in_linkage_form_p.
1409 * f-lang.c (f_language_data): Remove
1410 la_store_sym_names_in_linkage_form_p initializer.
1411 * go-lang.c (go_language_data): Remove
1412 la_store_sym_names_in_linkage_form_p initializer.
1413 * language.c (unknown_language_data): Remove
1414 la_store_sym_names_in_linkage_form_p initializer.
1415 (unknown_language::store_sym_names_in_linkage_form_p): New member
1416 function.
1417 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
1418 initializer.
1419 (auto_language::store_sym_names_in_linkage_form_p): New member
1420 function.
1421 * language.h (language_data): Remove
1422 la_store_sym_names_in_linkage_form_p member variable.
1423 (language_defn::store_sym_names_in_linkage_form_p): New member
1424 function.
1425 * m2-lang.c (m2_language_data): Remove
1426 la_store_sym_names_in_linkage_form_p initializer.
1427 * objc-lang.c (objc_language_data): Likewise.
1428 * opencl-lang.c (opencl_language_data): Likewise.
1429 * p-lang.c (pascal_language_data): Likewise.
1430 * rust-lang.c (rust_language_data): Likewise.
1431
22c12a6c
AB
14322020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1433
1434 * ada-lang.c (ada_language_data): Remove string_lower_bound
1435 initializer.
1436 * c-lang.c (c_language_data): Likewise.
1437 (cplus_language_data): Likewise.
1438 (asm_language_data): Likewise.
1439 (minimal_language_data): Likewise.
1440 * d-lang.c (d_language_data): Likewise.
1441 * f-lang.c (f_language_data): Likewise.
1442 * go-lang.c (go_language_data): Likewise.
1443 * language.c (unknown_language_data): Likewise.
1444 (auto_language_data): Likewise.
1445 * language.h (language_data): Remove string_lower_bound field.
1446 (language_defn::string_lower_bound): New member function.
1447 * m2-lang.c (m2_language_data): Remove string_lower_bound
1448 initializer.
1449 (m2_language::string_lower_bound): New member function.
1450 * objc-lang.c (objc_language_data): Remove string_lower_bound
1451 initializer.
1452 * opencl-lang.c (opencl_language_data): Likewise.
1453 * p-lang.c (pascal_language_data): Likewise.
1454 * rust-lang.c (rust_language_data): Likewise.
1455 * valops.c (value_cstring): Update call to string_lower_bound.
1456 (value_string): Likewise.
1457 * value.c (allocate_repeated_value): Likewise.
1458
1c236ddd
AB
14592020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1460
1461 * valops.c (value_repeat): Fix incorrect argument name in comment.
1462
67bd3fd5
AB
14632020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1464
1465 * ada-lang.c (ada_language_data): Remove c_style_arrays
1466 initializer.
1467 (ada_language::c_style_arrays_p): New member fuction.
1468 * c-lang.c (c_language_data): Remove c_style_arrays
1469 initializer.
1470 (cplus_language_data): Likewise.
1471 (asm_language_data): Likewise.
1472 (minimal_language_data): Likewise.
1473 * d-lang.c (d_language_data): Likewise.
1474 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
1475 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
1476 (f_language::c_style_arrays_p): New member function.
1477 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
1478 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
1479 * language.c (unknown_language_data): Remove c_style_arrays
1480 initializer.
1481 (auto_language_data): Likewise.
1482 * language.h (language_data): Remove c_style_arrays field.
1483 (language_defn::c_style_arrays_p): New member function.
1484 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
1485 (m2_language::c_style_arrays_p): New member function.
1486 * objc-lang.c (objc_language_data): Remove c_style_arrays
1487 initializer.
1488 * opencl-lang.c (opencl_language_data): Likewise.
1489 * p-lang.c (pascal_language_data): Likewise.
1490 * rust-lang.c (rust_language_data): Likewise.
1491 * valarith.c (value_subscript): Update call to c_style_arrays_p,
1492 and update local variable to a bool.
1493 * valops.c (value_cast): Update call to c_style_arrays_p.
1494 (value_array): Likewise.
1495 * value.c (coerce_array): Likewise.
1496
85967615
AB
14972020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1498
1499 * ada-lang.c (ada_language_data): Remove la_language initializer.
1500 * c-lang.c (c_language_data): Likewise.
1501 (cplus_language_data): Likewise.
1502 (asm_language_data): Likewise.
1503 (minimal_language_data): Likewise.
1504 * d-lang.c (d_language_data): Likewise.
1505 * f-lang.c (f_language_data): Likewise.
1506 * go-lang.c (go_language_data): Likewise.
1507 * language.c (unknown_language_data): Likewise.
1508 (auto_language_data): Likewise.
1509 * language.h (language_data): Remove la_language field.
1510 (language_defn::language_defn): Initialise la_language field.
1511 (language_defn::la_language): New member variable.
1512 * m2-lang.c (m2_language_data): Remove la_language field.
1513 * objc-lang.c (objc_language_data): Likewise.
1514 * opencl-lang.c (opencl_language_data): Likewise.
1515 * p-lang.c (pascal_language_data): Likewise.
1516 * rust-lang.c (rust_language_data): Likewise.
1517
e171d6f1
AB
15182020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1519
1520 * ada-lang.c (ada_extensions): Delete, moved into
1521 ada_language::filename_extensions.
1522 (ada_language_data): Remove la_filename_extensions initializer.
1523 (ada_language::filename_extensions): New member function.
1524 * c-lang.c (c_extensions): Delete, moved into
1525 c_language::filename_extensions.
1526 (c_language_data): Remove la_filename_extensions initializer.
1527 (c_language::filename_extensions): New member function.
1528 (cplus_extensions): Delete, moved into
1529 cplus_language::filename_extensions.
1530 (cplus_language_data): Remove la_filename_extensions initializer.
1531 (cplus_language::filename_extensions): New member function.
1532 (asm_extensions): Delete, moved into
1533 asm_language::filename_extensions.
1534 (asm_language_data): Remove la_filename_extensions initializer.
1535 (asm_language::filename_extensions): New member function.
1536 (minimal_language_data): Remove la_filename_extensions
1537 initializer.
1538 * d-lang.c (d_extensions): Delete, moved into
1539 d_language::filename_extensions.
1540 (d_language_data): Remove la_filename_extensions initializer.
1541 (d_language::filename_extensions): New member function.
1542 * f-lang.c (f_extensions): Delete, moved into
1543 f_language::filename_extensions.
1544 (f_language_data): Remove la_filename_extensions initializer.
1545 (f_language::filename_extensions): New member function.
1546 * go-lang.c (go_language_data): Remove la_filename_extensions
1547 initializer.
1548 * language.c (add_set_language_command): Update now that
1549 filename_extensions returns a vector.
1550 (unknown_language_data): Remove la_filename_extensions
1551 initializer.
1552 (auto_language_data): Likewise.
1553 * language.h (language_data): Remove la_filename_extensions field.
1554 (language_defn::filename_extensions): New member function.
1555 * m2-lang.c (m2_language_data): Remove la_filename_extensions
1556 initializer.
1557 * objc-lang.c (objc_extensions): Delete, moved into
1558 objc_language::filename_extensions.
1559 (objc_language_data): Remove la_filename_extensions initializer.
1560 (objc_language::filename_extensions): New member function.
1561 * opencl-lang.c (opencl_language_data): Remove
1562 la_filename_extensions initializer.
1563 * p-lang.c (pascal_extensions): Delete, moved into
1564 pascal_language::filename_extensions.
1565 (pascal_language_data): Remove la_filename_extensions initializer.
1566 (pascal_language::filename_extensions): New member function.
1567 * rust-lang.c (rust_extensions): Delete, moved into
1568 rust_language::filename_extensions.
1569 (rust_language_data): Remove la_filename_extensions initializer.
1570 (rust_language::filename_extensions): New member function.
1571 * symfile.c (add_filename_language): Add new assert.
1572
6f7664a9
AB
15732020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1574
1575 * ada-lang.c (ada_language_data): Remove la_name and
1576 la_natural_name initializers.
1577 (ada_language::name): New member function.
1578 (ada_language::natural_name): New member function.
1579 * c-lang.c (c_language_data): Remove la_name and
1580 la_natural_name initializers.
1581 (c_language::name): New member function.
1582 (c_language::natural_name): New member function.
1583 (cplus_language_data): Remove la_name and
1584 la_natural_name initializers.
1585 (cplus_language::name): New member function.
1586 (cplus_language::natural_name): New member function.
1587 (asm_language_data): Remove la_name and
1588 la_natural_name initializers.
1589 (asm_language::name): New member function.
1590 (asm_language::natural_name): New member function.
1591 (minimal_language_data): Remove la_name and
1592 la_natural_name initializers.
1593 (minimal_language::name): New member function.
1594 (minimal_language::natural_name): New member function.
1595 * compile/compile.c (compile_to_object): Update call to
1596 lanugage_defn::name.
1597 * d-lang.c (d_language_data): Remove la_name and
1598 la_natural_name initializers.
1599 (d_language::name): New member function.
1600 (d_language::natural_name): New member function.
1601 * expprint.c (print_subexp_standard): Update call to
1602 language_defn::name.
1603 (dump_raw_expression): Likewise
1604 (dump_prefix_expression): Likewise.
1605 * f-lang.c (f_language_data): Remove la_name and
1606 la_natural_name initializers.
1607 (f_language::name): New member function.
1608 (f_language::natural_name): New member function.
1609 * go-lang.c (go_language_data): Remove la_name and
1610 la_natural_name initializers.
1611 (go_language::name): New member function.
1612 (go_language::natural_name): New member function.
1613 * language.c (show_language_command): Update call to
1614 language_defn::name.
1615 (set_language_command): Likewise.
1616 (language_enum): Likewise.
1617 (language_str): Likewise.
1618 (add_set_language_command): Likewise, use
1619 language_defn::natural_name in the doc string.
1620 (unknown_language_data): Remove la_name and
1621 la_natural_name initializers.
1622 (unknown_language::name): New member function.
1623 (unknown_language::natural_name): New member function.
1624 (auto_language_data): Remove la_name and
1625 la_natural_name initializers.
1626 (auto_language::name): New member function.
1627 (auto_language::natural_name): New member function.
1628 (language_lookup_primitive_type_as_symbol): Update call to
1629 language_defn::name.
1630 * language.h (language_data): Remove la_name and la_natural_name
1631 member variables.
1632 (language_defn::name): New member function.
1633 (language_defn::natural_name): New member function.
1634 * m2-lang.c (m2_language_data): Remove la_name and
1635 la_natural_name initializers.
1636 (m2_language::name): New member function.
1637 (m2_language::natural_name): New member function.
1638 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
1639 language_defn::natural_name.
1640 * objc-lang.c (objc_language_data): Remove la_name and
1641 la_natural_name initializers.
1642 (objc_language::name): New member function.
1643 (objc_language::natural_name): New member function.
1644 * opencl-lang.c (opencl_language_data): Remove la_name and
1645 la_natural_name initializers.
1646 (opencl_language::name): New member function.
1647 (opencl_language::natural_name): New member function.
1648 * p-lang.c (pascal_language_data): Remove la_name and
1649 la_natural_name initializers.
1650 (pascal_language::name): New member function.
1651 (pascal_language::natural_name): New member function.
1652 * rust-lang.c (rust_language_data): Remove la_name and
1653 la_natural_name initializers.
1654 (rust_language::name): New member function.
1655 (rust_language::natural_name): New member function.
1656 * symtab.c (lookup_language_this): Update call to
1657 language_defn::name.
1658
5bae7c4e
AB
16592020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1660
1661 * ada-lang.c (ada_language_data): Remove la_name_of_this
1662 initializer.
1663 * ax-gdb.c (gen_expr): Update call to name_of_this.
1664 * c-exp.y (classify_name): Likewise.
1665 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
1666 (cplus_language_data): Likewise.
1667 (cplus_language::name_of_this): New member function.
1668 (asm_language_data): Remove la_name_of_this initializer.
1669 (minimal_language_data): Likewise.
1670 * d-lang.c (d_language_data): Likewise.
1671 (d_language::name_of_this): New member function.
1672 * expprint.c (print_subexp_standard): Update call to name_of_this.
1673 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
1674 * go-lang.c (go_language_data): Likewise.
1675 * language.c (unknown_language_data): Likewise.
1676 (unknown_language::name_of_this): New member function.
1677 (auto_language_data): Remove la_name_of_this initializer.
1678 (auto_language::name_of_this): New member function.
1679 * language.h (language_data): Delete la_name_of_this member
1680 variable.
1681 (language_defn::name_of_this): New member function.
1682 * m2-lang.c (m2_language_data): Remove la_name_of_this
1683 initializer.
1684 * objc-lang.c (objc_language_data): Likewise.
1685 (objc_language::name_of_this): New member function.
1686 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
1687 initializer.
1688 * p-lang.c (pascal_language_data): Likewise.
1689 (pascal_language::name_of_this): New member function.
1690 * rust-lang.c (rust_language_data): Remove la_name_of_this
1691 initializer.
1692 * symtab.c (lookup_language_this): Update call to name_of_this.
1693 (lookup_symbol_aux): Likewise.
1694 * valops.c (value_of_this): Likewise.
1695
22e3f3ed
AB
16962020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1697
1698 * ada-lang.c (ada_language_data): Remove
1699 la_struct_too_deep_ellipsis initializer.
1700 (ada_language::struct_too_deep_ellipsis): New member function.
1701 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
1702 initializer.
1703 (cplus_language_data): Likewise.
1704 (asm_language_data): Likewise.
1705 (minimal_language_data): Likewise.
1706 * cp-valprint.c (cp_print_value): Update call to
1707 struct_too_deep_ellipsis.
1708 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
1709 initializer.
1710 * f-lang.c (f_language_data): Likewise.
1711 (f_language::struct_too_deep_ellipsis): New member function.
1712 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
1713 initializer.
1714 * language.c (unknown_language_data): Likewise.
1715 (auto_language_data): Likewise.
1716 * language.h (language_data): Delete la_struct_too_deep_ellipsis
1717 member variable.
1718 (language_defn::struct_too_deep_ellipsis): New member function.
1719 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
1720 initializer.Q
1721 * objc-lang.c (objc_language_data): Likewise.
1722 * opencl-lang.c (opencl_language_data): Likewise.
1723 * p-lang.c (pascal_language_data): Likewise.
1724 * rust-lang.c (rust_language_data): Likewise.
1725 * valprint.c (val_print_check_max_depth): Update call to
1726 struct_too_deep_ellipsis.
1727
ed29e1c7
FW
17282020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
1729
1730 * MAINTAINERS (Write After Approval): Add myself.
1731
12d8f940
TT
17322020-09-15 Tom Tromey <tom@tromey.com>
1733
1734 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
1735 Remove.
1736
6b5a7bc7
TT
17372020-09-15 Tom Tromey <tom@tromey.com>
1738
1739 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
1740 and TYPE_CODE_METHODPTR cases.
1741 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
1742 (c_value_print_inner): Update.
1743 * valprint.c (generic_value_print_memberptr): New function, from
1744 c_value_print_memberptr.
1745 (generic_value_print): Use it. Call cplus_print_method_ptr.
1746
47f0e2ff
TT
17472020-09-15 Tom Tromey <tromey@adacore.com>
1748
1749 * python/python-internal.h (PyInt_FromLong): Remove define.
1750 * python/py-value.c (convert_value_from_python): Use
1751 gdb_py_object_from_longest.
1752 * python/py-type.c (typy_get_code): Use
1753 gdb_py_object_from_longest.
1754 * python/py-symtab.c (salpy_get_line): Use
1755 gdb_py_object_from_longest.
1756 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
1757 gdb_py_object_from_longest.
1758 * python/py-record.c (recpy_gap_reason_code): Use
1759 gdb_py_object_from_longest.
1760 * python/py-record-btrace.c (recpy_bt_insn_size)
1761 (recpy_bt_func_level, btpy_list_count): Use
1762 gdb_py_object_from_longest.
1763 * python/py-infthread.c (gdbpy_create_ptid_object): Use
1764 gdb_py_object_from_longest. Fix error handling.
1765 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
1766 gdb_py_object_from_longest.
1767 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
1768 gdb_py_object_from_longest.
1769 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
1770 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
1771 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
1772
512116ce
TT
17732020-09-15 Tom Tromey <tromey@adacore.com>
1774
1775 * python/python.c (gdbpy_parameter_value): Use
1776 gdb_py_object_from_ulongest.
1777
4ab1029c
TT
17782020-09-15 Tom Tromey <tromey@adacore.com>
1779
1780 * python/py-infevents.c (create_register_changed_event_object):
1781 Use gdb_py_object_from_longest.
1782 * python/py-exitedevent.c (create_exited_event_object): Use
1783 gdb_py_object_from_longest.
1784
062534d4
TT
17852020-09-15 Tom Tromey <tromey@adacore.com>
1786
1787 * python/python.c (gdbpy_parameter_value): Use
1788 gdb_py_object_from_longest.
1789 * python/py-type.c (convert_field, typy_range): Use
1790 gdb_py_object_from_longest.
1791 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
1792 gdb_py_object_from_longest.
1793 * python/py-lazy-string.c (stpy_get_length): Use
1794 gdb_py_object_from_longest.
1795 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
1796 gdb_py_object_from_longest.
1797 * python/py-infevents.c (create_memory_changed_event_object): Use
1798 gdb_py_object_from_longest.
1799 * python/py-inferior.c (infpy_get_num): Use
1800 gdb_py_object_from_longest.
1801 (infpy_get_pid): Likewise.
1802
d1cab987
TT
18032020-09-15 Tom Tromey <tromey@adacore.com>
1804
1805 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
1806 defines.
1807 * python/py-value.c (valpy_long): Use
1808 gdb_py_object_from_ulongest.
1809 * python/py-symtab.c (salpy_get_pc): Use
1810 gdb_py_object_from_ulongest.
1811 (salpy_get_last): Likewise.
1812 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
1813 gdb_py_object_from_ulongest.
1814 * python/py-lazy-string.c (stpy_get_address): Use
1815 gdb_py_object_from_ulongest.
1816 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
1817 * python/py-arch.c (archpy_disassemble): Use
1818 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
1819 error handling.
1820
4bde49dc
TT
18212020-09-15 Tom Tromey <tromey@adacore.com>
1822
1823 * python/python-internal.h (gdb_py_long_from_longest): Remove
1824 defines.
1825 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
1826 * python/py-type.c (convert_field, typy_get_sizeof): Use
1827 gdb_py_object_from_longest.
1828 * python/py-record-btrace.c (btpy_list_index): Use
1829 gdb_py_object_from_longest.
1830
37431074
TT
18312020-09-15 Tom Tromey <tromey@adacore.com>
1832
1833 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
1834 * python/py-record.c (recpy_element_number): Use
1835 gdb_py_object_from_longest.
1836 (recpy_gap_number): Likewise.
1837
cbe25684
TT
18382020-09-15 Tom Tromey <tromey@adacore.com>
1839
1840 * top.c (ui::ui): Update.
1841 (highest_ui_num): Remove.
1842 * top.h (struct ui) <num>: Remove.
1843
db92ac45
TT
18442020-09-15 Tom Tromey <tromey@adacore.com>
1845
1846 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
1847 * ui-style.c (ansi_regex_text): Now array.
1848 * rust-exp.y (number_regex_text): Now array.
1849 * linespec.c (linespec_quote_characters): Now array.
1850 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
1851 Now arrays.
1852
d2b31b67
SM
18532020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1854
1855 * debuginfod-support.c (debuginfod_client_deleter): New.
1856 (debuginfod_client_up): New.
1857 (debuginfod_init): Return debuginfod_client_up.
1858 (debuginfod_source_query): Adjust.
1859 (debuginfod_debuginfo_query): Adjust.
1860
3246bd8e
SM
18612020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1862
1863 * debuginfod-support.c (debuginfod_source_query): Use
1864 make_unique_xstrdup.
1865
10242f36
SM
18662020-09-14 Simon Marchi <simon.marchi@efficios.com>
1867
1868 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
1869 with `type::instance_flags`.
1870
e1044e6a
MM
18712020-09-14 Michael Mullin <masmullin@gmail.com>
1872
1873 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
1874 Remove baton parameter.
1875
04902b09
PA
18762020-09-14 Pedro Alves <pedro@palves.net>
1877
1878 * Makefile.in (SELFTESTS_SRCS): Add
1879 unittests/enum-flags-selftests.c.
1880 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
1881 btrace_function_flags instead of enum btrace_function_flag.
1882 * compile/compile-c-types.c (convert_qualified): Use
1883 enum_flags::raw.
1884 * compile/compile-cplus-symbols.c (convert_one_symbol)
1885 (convert_symbol_bmsym):
1886 * compile/compile-cplus-types.c (compile_cplus_convert_method)
1887 (compile_cplus_convert_struct_or_union_methods)
1888 (compile_cplus_instance::convert_qualified_base):
1889 * go-exp.y (parse_string_or_char): Add cast to int.
1890 * unittests/enum-flags-selftests.c: New file.
1891 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
1892 type to btrace_thread_flags from btrace_thread_flag.
1893 (record_btrace_cancel_resume, record_btrace_step_thread): Change
1894 local's type to btrace_thread_flags from btrace_thread_flag. Add
1895 cast in DEBUG call.
1896
69896a2c
PA
18972020-09-14 Pedro Alves <pedro@palves.net>
1898
1899 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
1900 * gdbtypes.c (address_space_name_to_int): Rename to ...
1901 (address_space_name_to_type_instance_flags): ... this.
1902 (address_space_int_to_name): Rename to ...
1903 (address_space_type_instance_flags_to_name): ... this.
1904 * gdbtypes.h (address_space_name_to_int): Rename to ...
1905 (address_space_name_to_type_instance_flags): ... this.
1906 (address_space_int_to_name): Rename to ...
1907 (address_space_type_instance_flags_to_name): ... this.
1908 * type-stack.c (type_stack::insert): Adjust to rename.
1909 * type-stack.h (type_stack::insert): Likewise.
1910
314ad88d
PA
19112020-09-14 Pedro Alves <pedro@palves.net>
1912 Andrew Burgess <andrew.burgess@embecosm.com>
1913
1914 * avr-tdep.c (avr_address_class_type_flags): Return
1915 type_instance_flags.
1916 (avr_address_class_type_flags_to_name): Take a
1917 type_instance_flags.
1918 (avr_address_class_name_to_type_flags): Return bool and take a
1919 type_instance_flags.
1920 * d-lang.c (build_d_types): Use type::set_instance_flags.
1921 * ft32-tdep.c (ft32_address_class_type_flags): Return
1922 type_instance_flags.
1923 (ft32_address_class_type_flags_to_name): Take a
1924 type_instance_flags.
1925 (ft32_address_class_name_to_type_flags): Return bool and take a
1926 type_instance_flags.
1927 (ft32_gdbarch_init): Use type::set_instance_flags.
1928 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
1929 * gdbarch.h, gdbarch.c: Regenerate.
1930 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
1931 (address_class_name_to_type_flags): Use type_instance_flags and
1932 bool.
1933 * gdbtypes.c (address_space_name_to_int)
1934 (address_space_int_to_name, make_qualified_type): Use
1935 type_instance_flags.
1936 (make_qualified_type): Use type_instance_flags and
1937 type::set_instance_flags.
1938 (make_type_with_address_space, make_cv_type, make_vector_type)
1939 (check_typedef): Use type_instance_flags.
1940 (recursive_dump_type): Cast type_instance_flags to unsigned for
1941 printing.
1942 (copy_type_recursive): Use type::set_instance_flags.
1943 (gdbtypes_post_init): Use type::set_instance_flags.
1944 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
1945 <m_instance_flags>: ... this.
1946 <instance_flags, set_instance_flags>: New methods.
1947 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
1948 (SET_TYPE_INSTANCE_FLAGS): New.
1949 (address_space_name_to_int, address_space_int_to_name)
1950 (make_type_with_address_space): Pass flags using
1951 type_instance_flags instead of int.
1952 * stabsread.c (cleanup_undefined_types_noname): Use
1953 type::set_instance_flags.
1954 * s390-tdep.c (s390_address_class_type_flags): Return
1955 type_instance_flags.
1956 (s390_address_class_type_flags_to_name): Take a
1957 type_instance_flags.
1958 (s390_address_class_name_to_type_flags): Return bool and take a
1959 type_instance_flags.
1960 * type-stack.c (type_stack::follow_types): Use
1961 type_instance_flags.
1962 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
1963
27087b7f
TT
19642020-09-14 Tom Tromey <tromey@adacore.com>
1965
1966 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
1967 * x86-tdep.c (x86_is_thunk_register_name)
1968 (x86_in_indirect_branch_thunk): Update.
1969 * sparc64-tdep.c (sparc64_fpu_register_names)
1970 (sparc64_cp0_register_names, sparc64_register_names)
1971 (sparc64_pseudo_register_names): Now const.
1972 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
1973 cp0_registers_num>: Now const.
1974 * sparc-tdep.c (sparc_core_register_names)
1975 (sparc32_fpu_register_names, sparc32_cp0_register_names)
1976 (sparc32_pseudo_register_names): Now const.
1977 (validate_tdesc_registers): Update.
1978 * rust-lang.c (rust_extensions): Now const.
1979 * p-lang.c (p_extensions): Now const.
1980 * objc-lang.c (objc_extensions): Now const.
1981 * nto-tdep.c (nto_thread_state_str): Now const.
1982 * moxie-tdep.c (moxie_register_names): Now const.
1983 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
1984 Now const.
1985 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
1986 (mips_linux_reg_names): Now const.
1987 (mips_gdbarch_init): Update.
1988 * microblaze-tdep.c (microblaze_register_names): Now const.
1989 * m68k-tdep.c (m68k_register_names): Now const.
1990 * m32r-tdep.c (m32r_register_names): Now const.
1991 * ia64-tdep.c (ia64_register_names): Now const.
1992 * i386-tdep.h (struct gdbarch_tdep) <register_names,
1993 ymmh_register_names, ymm16h_regnum, mpx_register_names,
1994 k_register_names, zmmh_register_names, xmm_avx512_register_names,
1995 ymm_avx512_register_names, pkeys_register_names>: Now const.
1996 * i386-tdep.c (i386_register_names, i386_zmm_names)
1997 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
1998 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
1999 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
2000 * f-lang.c (f_extensions): Now const.
2001 * d-lang.c (d_extensions): Now const.
2002 * csky-tdep.c (csky_register_names): Now const.
2003 * charset.c (default_charset_names, charset_enum): Now const.
2004 (_initialize_charset): Update.
2005 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
2006 const.
2007 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
2008 (bsd_uthread_solib_loaded): Update.
2009 (bsd_uthread_state): Now const.
2010 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
2011 (amd64_ymm_avx512_names, amd64_ymmh_names)
2012 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
2013 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
2014 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
2015 (amd64_dword_names): Now const.
2016 * agent.c (can_use_agent_enum): Now const.
2017 * ada-tasks.c (task_states, long_task_states): Now const.
2018 * ada-lang.c (known_runtime_file_name_patterns)
2019 (known_auxiliary_function_name_patterns, attribute_names)
2020 (standard_exc, ada_extensions): Now const.
2021
89806626
SM
20222020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2023
2024 * bcache.h (struct bcache) <bcache>: Remove constructor.
2025 <m_hash_function, m_compare_function>: Remove.
2026 <~bcache>: Make virtual.
2027 <compare>: Remove static method, introduce virtual method.
2028 <default_hash>: Remove.
2029 <hash>: New virtual method.
2030 * bcache.c (bcache::expand_hash_table): Update.
2031 (bcache::insert): Update.
2032 (bcache::hash): New.
2033 (bcache::compare): Update comment and parameter names.
2034 * gdbtypes.c (types_deeply_equal): Update.
2035 * psymtab.h (struct psymbol_bcache): New struct.
2036 (class psymtab_storage) <psymtab_storage>: Make default.
2037 <psymbol_cache>: Change type to psymbol_bcache.
2038 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
2039 (psymbol_hash): Change to...
2040 (psymbol_bcache::hash): ... this.
2041 (psymbol_compare): Change to...
2042 (psymbol_bcache::compare): ... this.
2043
677c92fe
SM
20442020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2045
2046 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
2047 checking for initial lwp.
2048
3eba3a01
TT
20492020-09-14 Tom Tromey <tromey@adacore.com>
2050
2051 * m68k-tdep.c (m68k_extract_return_value): Use
2052 pointer_result_regnum.
2053 (m68k_store_return_value): Likewise.
2054 (m68k_reg_struct_return_p): Handle vectors and arrays.
2055 (m68k_return_value): Handle arrays.
2056 (m68k_svr4_return_value): Fix single-element aggregate handling.
2057 Handle long double. Adjust for embedded ABI.
2058 (m68k_svr4_init_abi): Set pointer_result_regnum.
2059 (m68k_embedded_init_abi): New function.
2060 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
2061 (m68k_osabi_sniffer): New function.
2062 (_initialize_m68k_tdep): Register osabi sniffer.
2063 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
2064 member.
2065
33f4dd48
SM
20662020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2067
2068 * xml-support.c (xml_fetch_content_from_file): Replace xfree
2069 with gdb::unique_xmalloc_ptr<char>.
2070
8400a90d
SM
20712020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2072
2073 * xml-support.h (xml_fetch_another): Change type to be a
2074 function_view.
2075 (xml_process_xincludes): Remove baton parameter.
2076 (xml_fetch_content_from_file): Change baton parameter to
2077 dirname.
2078 * xml-support.c (struct xinclude_parsing_data)
2079 <xinclude_parsing_data>: Remove baton parameter.
2080 <fetcher_baton>: Remove.
2081 (xinclude_start_include): Adjust.
2082 (xml_process_xincludes): Adjust.
2083 (xml_fetch_content_from_file): Replace baton parameter with
2084 dirname.
2085 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
2086 (xml_init_syscalls_info): Use a lambda.
2087 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
2088 (file_read_description_xml): Use a lambda.
2089 (fetch_available_features_from_target): Change baton parameter
2090 to target_ops.
2091 (target_read_description_xml): Use a lambda.
2092 (target_fetch_description_xml): Use a lambda.
2093 (string_read_description_xml): Update.
2094
04f5bab2
SM
20952020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2096
2097 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
2098 uses with type::endianity_is_not_default.
2099
db558e34
SM
21002020-09-14 Simon Marchi <simon.marchi@efficios.com>
2101
2102 * gdbtypes.h (struct type) <endianity_is_not_default,
2103 set_endianity_is_not_default>: New methods.
2104 (TYPE_ENDIANITY_NOT_DEFAULT): Use
2105 type::endianity_is_not_default, change all write call sites to
2106 use type::set_endianity_is_not_default.
2107
22c4c60c
SM
21082020-09-14 Simon Marchi <simon.marchi@efficios.com>
2109
2110 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
2111 uses with type::is_fixed_instance.
2112
9cdd0d12
SM
21132020-09-14 Simon Marchi <simon.marchi@efficios.com>
2114
2115 * gdbtypes.h (struct type) <is_fixed_instance,
2116 set_is_fixed_instance>: New methods.
2117 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
2118 write call sites to use type::set_is_fixed_instance.
2119
0becda7a
SM
21202020-09-14 Simon Marchi <simon.marchi@efficios.com>
2121
2122 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
2123 uses with type::is_gnu_ifunc.
2124
03cc7249
SM
21252020-09-14 Simon Marchi <simon.marchi@efficios.com>
2126
2127 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
2128 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
2129 use type::set_is_gnu_ifunc.
2130
3f46044c
SM
21312020-09-14 Simon Marchi <simon.marchi@efficios.com>
2132
2133 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
2134 uses with type::stub_is_supported.
2135
9baccff6
SM
21362020-09-14 Simon Marchi <simon.marchi@efficios.com>
2137
2138 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
2139 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
2140 use type::set_stub_is_supported.
2141
bd63c870
SM
21422020-09-14 Simon Marchi <simon.marchi@efficios.com>
2143
2144 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
2145 uses with type::is_vector.
2146
2062087b
SM
21472020-09-14 Simon Marchi <simon.marchi@efficios.com>
2148
2149 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
2150 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
2151 use type::set_is_vector.
2152
a409645d
SM
21532020-09-14 Simon Marchi <simon.marchi@efficios.com>
2154
2155 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
2156 uses with type::has_varargs.
2157
1d6286ed
SM
21582020-09-14 Simon Marchi <simon.marchi@efficios.com>
2159
2160 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
2161 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
2162 use type::set_has_varargs.
2163
7f9f399b
SM
21642020-09-14 Simon Marchi <simon.marchi@efficios.com>
2165
2166 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
2167 uses with type::is_prototyped.
2168
27e69b7a
SM
21692020-09-14 Simon Marchi <simon.marchi@efficios.com>
2170
2171 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
2172 New methods.
2173 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
2174 call sites to use type::set_is_prototyped.
2175
d2183968
SM
21762020-09-14 Simon Marchi <simon.marchi@efficios.com>
2177
2178 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
2179 uses with type::target_is_stub.
2180
8f53807e
SM
21812020-09-14 Simon Marchi <simon.marchi@efficios.com>
2182
2183 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
2184 New methods.
2185 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
2186 sites to use type::set_target_is_stub.
2187
e46d3488
SM
21882020-09-14 Simon Marchi <simon.marchi@efficios.com>
2189
2190 * gdbtypes.h (TYPE_STUB): Remove, replace all
2191 uses with type::is_stub.
2192
b4b73759
SM
21932020-09-14 Simon Marchi <simon.marchi@efficios.com>
2194
2195 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
2196 (TYPE_STUB): Use type::is_stub, change all write call sites to
2197 use type::set_is_stub.
2198
20ce4123
SM
21992020-09-14 Simon Marchi <simon.marchi@efficios.com>
2200
2201 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
2202 type::has_no_signedness.
2203
15152a54
SM
22042020-09-14 Simon Marchi <simon.marchi@efficios.com>
2205
2206 * gdbtypes.h (struct type) <has_no_signedness,
2207 set_has_no_signedness>: New methods.
2208 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
2209 call sites to use type::set_has_no_signedness.
2210
c6d940a9
SM
22112020-09-14 Simon Marchi <simon.marchi@efficios.com>
2212
2213 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
2214 type::is_unsigned.
2215
653223d3
SM
22162020-09-14 Simon Marchi <simon.marchi@efficios.com>
2217
2218 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
2219 methods.
2220 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
2221 sites to use type::set_is_unsigned.
2222
55ea94da 22232020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
e851246a 2224 Adam Renquinha <arenquinha@cimeq.qc.ca>
55ea94da 2225
e851246a
SM
2226 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
2227 pointer and stack frame offset when unwinding.
55ea94da 2228
6791b117
PA
22292020-09-13 Pedro Alves <pedro@palves.net>
2230
2231 * NEWS: Document "-break-insert --qualified".
2232 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
2233
77f2120b
PA
22342020-09-13 Pedro Alves <pedro@palves.net>
2235
2236 * linespec.c (classify_mtype, compare_msyms): Delete.
2237 (search_minsyms_for_name): Remove classification logic. Instead
2238 filter out trampoline symbols if we also found an external
2239 function of the same name.
2240
ed6a896c
JB
22412020-09-13 Joel Brobecker <brobecker@adacore.com>
2242
2243 * NEWS: Create a new section for the next release branch.
2244 Rename the section of the current branch, now that it has
2245 been cut.
2246
32aea73e
JB
22472020-09-13 Joel Brobecker <brobecker@adacore.com>
2248
2249 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
2250 * version.in: Bump version to 11.0.50.DATE-git.
2251
8087c3fa
JB
22522020-09-12 Joel Brobecker <brobecker@adacore.com>
2253
2254 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
2255
2a67f09d
FW
22562020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
2257 Felix Willgerodt <Felix.Willgerodt@intel.com>
2258
2259 * gdbarch.sh: Added bfloat16 type.
2260 * gdbarch.c: Regenerated.
2261 * gdbarch.h: Regenerated.
2262 * gdbtypes.c (floatformats_bfloat16): New struct.
2263 (gdbtypes_post_init): Add builtin_bfloat16.
2264 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
2265 (floatformats_bfloat16): New struct.
2266 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
2267 (i386_ymm_type): Add field "v16_bfloat16"
2268 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
2269 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
2270 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
2271 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
2272 * features/i386/64bit-avx512.xml: Add bfloat16 type.
2273 * features/i386/64bit-avx512.c: Regenerated.
2274 * features/i386/64bit-sse.xml: Add bfloat16 type.
2275 * features/i386/64bit-sse.c: Regenerated.
2276
1347d111
FW
22772020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
2278
2279 * i386-tdep.c (i386_zmm_type): Fix field names.
2280 (i386_ymm_type): Fix field names.
2281
7a4e8e7d
TBA
22822020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2283
2284 * breakpoint.c: Fix typo in the help message of the
2285 "set breakpoint condition-evaluation" command.
2286
cf4ac4be
KR
22872020-09-10 Kamil Rytarowski <n54@gmx.com>
2288
2289 * nbsd-nat.c: Include "nat/netbsd-nat.h".
2290 * (nbsd_nat_target::pid_to_exec_file)
2291 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
2292 (nbsd_nat_target::post_startup_inferior)
2293 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
2294 (nbsd_add_threads): Switch local code to common gdb/nat functions.
2295 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
2296 * (nbsd_thread_lister): Remove.
2297
f404573e
KR
22982020-09-10 Kamil Rytarowski <n54@gmx.com>
2299
2300 * fork-inferior.c (startup_inferior): Avoid double free.
2301
1ccb2c17
KR
23022020-09-10 Kamil Rytarowski <n54@gmx.com>
2303
2304 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
2305 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
2306
feedfcc7
KR
23072020-09-10 Kamil Rytarowski <n54@gmx.com>
2308
2309 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
2310 * netbsd-nat.c: Include <sys/ptrace.h>.
2311 * (netbsd_nat::enable_proc_events): Add.
2312
c489f8c6
KR
23132020-09-10 Kamil Rytarowski <n54@gmx.com>
2314
2315 * netbsd-nat.h: Include "gdbsupport/function-view.h".
2316 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
2317 (netbsd_nat::for_each_thread): Add.
2318 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
2319 "gdbsupport/common-debug.h".
2320 * (netbsd_nat::netbsd_thread_lister)
2321 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
2322 (netbsd_nat::for_each_thread): Add.
2323
330662f6
KR
23242020-09-10 Kamil Rytarowski <n54@gmx.com>
2325
2326 * netbsd-nat.h: Include <unistd.h>.
2327 * (netbsd_nat::pid_to_exec_file): Add.
2328 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
2329 * (netbsd_nat::pid_to_exec_file) Add.
2330
70b67307
KR
23312020-09-10 Kamil Rytarowski <n54@gmx.com>
2332
2333 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
2334
99cf6da6
KR
23352020-09-10 Kamil Rytarowski <n54@gmx.com>
2336
2337 * netbsd-nat.h: New file.
2338 * netbsd-nat.c: Likewise.
2339
1b788fb6
TT
23402020-09-09 Tom Tromey <tromey@adacore.com>
2341
2342 * ada-lang.c (remove_extra_symbols): Do not increment when
2343 removing an element
2344
03b0a45f
TT
23452020-09-08 Tom Tromey <tromey@adacore.com>
2346
2347 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
2348
3cae4447
TT
23492020-09-08 Tom Tromey <tromey@adacore.com>
2350
2351 PR win32/25302:
2352 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
2353 (gdb_bfd_init_data): New function.
2354 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
2355
7f08fd51
TBA
23562020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2357
2358 * infrun.c (fetch_inferior_event): Use
2359 `switch_to_target_no_thread` to switch the target.
2360
3e6ff933
TT
23612020-09-06 Tom Tromey <tom@tromey.com>
2362
2363 * symfile.h (dwarf2_free_objfile): Don't declare.
2364
e56798df
AKS
23652020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2366
2367 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
2368 to match 16 byte real/complex type generated by Flang compiler.
2369
8f5c6526
TV
23702020-09-03 Tom de Vries <tdevries@suse.de>
2371
2372 PR breakpoint/26546
2373 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
2374 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
2375
c5065df0
SM
23762020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
2377
2378 * maint.c (index_digits): New function.
2379 (struct maint_print_section_data): Remove.
2380 (print_bfd_section_info): Remove print_data parameter, add arg
2381 and index_digits.
2382 (print_objfile_section_info): Likewise.
2383 (print_bfd_section_info_maybe_relocated): Likewise (plus
2384 objfile).
2385 (maintenance_info_sections): Adjust calls.
2386
02c6f3f1
TT
23872020-09-02 Tom Tromey <tromey@adacore.com>
2388
2389 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
2390 for null pointers.
2391 (ada_varobj_adjust_for_child_access): Special-case null pointers.
2392
ef5e5b0b
SM
23932020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
2394
2395 * bcache.h (struct bcache) <insert>: Change type of `added` to
2396 pointer to bool.
2397 * bcache.c (bcache::insert): Likewise.
2398 * gdbtypes.c (check_types_worklist): Adjust.
2399 * psymtab.c (add_psymbol_to_bcache): Adjust.
2400
973695d6
KB
24012020-08-31 Kevin Buettner <kevinb@redhat.com>
2402
2403 * corelow.c (unordered_set): Include.
2404 (class core_target): Add field 'm_core_unavailable_mappings'.
2405 (core_target::build_file_mappings): Print only one warning
2406 per inaccessible file. Add unavailable/broken mappings
2407 to m_core_unavailable_mappings.
2408 (core_target::xfer_partial): Call...
2409 (core_target::xfer_memory_via_mappings): New method.
2410
264fc0e2
SM
24112020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
2412
2413 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
2414 type to bool.
2415
2de01bdb
SM
24162020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
2417
2418 * dwarf2/read.c (struct field_info): Fix indentation.
2419
f3bd50f1
SM
24202020-08-31 Simon Marchi <simon.marchi@efficios.com>
2421
2422 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
2423 ordering in comment.
2424 * frame.c (frame_id_eq): Fix indentation.
2425
22b9b4b0
SL
24262020-08-31 Scott Linder <scott@scottlinder.com>
2427 Simon Marchi <simon.marchi@efficios.com>
2428
2429 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
2430 inline frame ids in outer frame.
2431
84154d16
SM
24322020-08-31 Simon Marchi <simon.marchi@efficios.com>
2433
2434 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
2435 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
2436 (outer_frame_id): Use FID_STACK_OUTER instead of
2437 FID_STACK_INVALID.
2438 (frame_id_p): Don't check for outer_frame_id.
2439
8efaf6b3
SM
24402020-08-31 Simon Marchi <simon.marchi@efficios.com>
2441
2442 * frame-unwind.c (frame_unwind_got_optimized): Don't set
2443 regnum/frame in value. Call allocate_value_lazy.
2444 * frame.c (frame_unwind_register_value): Use
2445 val_print_not_saved.
2446
fe1fe7ea
SM
24472020-08-31 Simon Marchi <simon.marchi@efficios.com>
2448
2449 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
2450
f7c7700d
PA
24512020-08-29 Pedro Alves <pedro@palves.net>
2452
2453 * progspace.c (print_program_space): Use all_inferiors. Switch to
2454 the inferior before calling target_pid_to_str.
2455
e0814aae
TT
24562020-08-28 Tom Tromey <tom@tromey.com>
2457
2458 * xcoffread.c (xcoff_end_psymtab): Update comment.
2459 * dbxread.c (dbx_end_psymtab): Update comment.
2460
626d2320
TV
24612020-08-28 Tom de Vries <tdevries@suse.de>
2462
2463 PR breakpoint/26544
2464 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
2465 event_location.
2466 (create_breakpoint): Same.
2467 (base_breakpoint_decode_location): Same.
2468 (bkpt_create_sals_from_location): Same.
2469 (bkpt_decode_location): Same.
2470 (bkpt_probe_create_sals_from_location): Same.
2471 (bkpt_probe_decode_location): Same.
2472 (tracepoint_create_sals_from_location): Same.
2473 (tracepoint_decode_location): Same.
2474 (tracepoint_probe_decode_location): Same.
2475 (strace_marker_create_sals_from_location): Same.
2476 (strace_marker_decode_location): Same.
2477 (create_sals_from_location_default): Same.
2478 (decode_location_default): Same.
2479 * breakpoint.h (struct breakpoint_ops): Same.
2480 (create_breakpoint): Same.
2481 * linespec.h (decode_line_full): Same.
2482 * linespec.c (decode_line_full): Same. Throw error if
2483 result.size () == 0.
2484
df631783
PA
24852020-08-27 Pedro Alves <pedro@palves.net>
2486
2487 PR gdb/26524
2488 * breakpoint.c (until_break_fsm) <location_breakpoint,
2489 caller_breakpoint>: Delete fields.
2490 <breakpoints>: New field.
2491 <until_break_fsm>: Adjust to save a breakpoint vector instead of
2492 two individual breakpoints.
2493 (until_break_fsm::should_stop): Loop over breakpoints in the
2494 breakpoint vector.
2495 (until_break_fsm::clean_up): Adjust to clear the breakpoints
2496 vector.
2497 (until_break_command): Handle location expanding into multiple
2498 sals.
2499
b2b38aa4
PA
25002020-08-27 Pedro Alves <pedro@palves.net>
2501
2502 PR gdb/26523
2503 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
2504 bp_until breakpoints user-specified locations. Update intro
2505 comment.
2506
b886559f
SM
25072020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
2508
2509 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
2510 gdb_bfd_sections): New.
2511 * maint.c (print_bfd_section_info): Change param type to
2512 maint_print_section_data.
2513 (print_objfile_section_info): Likewise.
2514 (print_bfd_section_info_maybe_relocated): Likewise.
2515 (maintenance_info_sections): Use gdb_bfd_sections.
2516
4c6e63bf
SV
25172020-08-25 Shahab Vahedi <shahab@synopsys.com>
2518
2519 * MAINTAINERS: Add ARC target and maintainer.
2520
8d7f0635
AK
25212020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
2522
2523 * configure.tgt: ARC support for GNU/Linux.
2524 * Makefile.in (ALL_TARGET_OBJS): Likewise.
2525 * arc-linux-tdep.c: New file.
2526 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
2527 * arc-tdep.c (arc_write_pc): Use it.
2528
fdd8731b
SV
25292020-08-25 Shahab Vahedi <shahab@synopsys.com>
2530
2531 * arc-tdep.c (arc_check_for_hardware_loop): New.
2532 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
2533
22459524
SV
25342020-08-25 Shahab Vahedi <shahab@synopsys.com>
2535
2536 * arc-tdep.h: Include "gdbarch.h".
2537
995d3a19
SV
25382020-08-25 Shahab Vahedi <shahab@synopsys.com>
2539
2540 * arch/arc.h
2541 (arc_gdbarch_features): New class to stir the selection of target XML.
2542 (arc_create_target_description): Use FEATURES to choose XML target.
2543 (arc_lookup_target_description): Use arc_create_target_description
2544 to create _new_ target descriptions or return the already created
2545 ones if the FEATURES is the same.
2546 * arch/arc.c: Implementation of prototypes described above.
2547 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
2548 (arc_gdbarch_features_init): Initialize the FEATURES struct.
2549 * arc-tdep.c (*_feature_name): Make feature names consistent.
2550 (arc_register_feature): A new struct to hold information about
2551 registers of a particular target/feature.
2552 (arc_check_tdesc_feature): Check if XML provides registers in
2553 compliance with ARC_REGISTER_FEATURE structs.
2554 (arc_update_acc_reg_names): Add aliases for r58 and r59.
2555 (determine_*_reg_feature_set): Which feature name to look for.
2556 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
2557 (mach_type_to_arc_isa): Convert from a set of binutils machine types
2558 to expected ISA enums to be used in arc_gdbarch_features structs.
2559 * features/Makefile (FEATURE_XMLFILES): Add new files.
2560 * gdb/features/arc/v1-aux.c: New file.
2561 * gdb/features/arc/v1-aux.xml: Likewise.
2562 * gdb/features/arc/v1-core.c: Likewise.
2563 * gdb/features/arc/v1-core.xml: Likewise.
2564 * gdb/features/arc/v2-aux.c: Likewise.
2565 * gdb/features/arc/v2-aux.xml: Likewise.
2566 * gdb/features/arc/v2-core.c: Likewise.
2567 * gdb/features/arc/v2-core.xml: Likewise.
2568 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
2569
3945d2d7
GM
25702020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
2571 Andrew Burgess <andrew.burgess@embecosm.com>
2572
2573 PR m2/26372
fc5d6901 2574 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
2575 an assert. Remove single element array indexing pattern as the
2576 MULTI_SUBSCRIPT support will handle this case too.
2577
2677f2d3
SM
25782020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
2579
2580 * value.h (valprint_check_validity): Move declaration from
2581 here...
2582 * valprint.h (valprint_check_validity): ... to here.
2583
c426fddb
SM
25842020-08-24 Simon Marchi <simon.marchi@efficios.com>
2585
2586 * debug.h: New file.
2587 * debug.c (debug_prefixed_vprintf): New function.
2588 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
2589 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
2590
1eb8556f
SM
25912020-08-24 Simon Marchi <simon.marchi@efficios.com>
2592
2593 * infrun.h (infrun_debug_printf_1): New function declaration.
2594 (infrun_debug_printf): New macro.
2595 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
2596 throughout.
2597 (infrun_debug_printf): New function.
2598 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
2599 (handle_jit_event): Likewise.
2600
b8fff44e
MW
26012020-08-21 Mark Wielaard <mark@klomp.org>
2602
2603 * ada-lex.l: Extend register warnings diagnostics comment for g++.
2604
d19c3068
SM
26052020-08-22 Simon Marchi <simon.marchi@efficios.com>
2606
2607 * frame.c (enum class frame_id_status): New.
2608 (struct frame_info) <this_id::p>: Change type to frame_id_status.
2609 (fprintf_frame): Update.
2610 (compute_frame_id): Set frame id status to "computing" on entry.
2611 Set it back to "not_computed" on failure and to "computed" on
2612 success.
2613 (get_frame_id): Assert the frame id is not being computed.
2614 (create_sentinel_frame): Use frame_id_status::COMPUTED.
2615 (create_new_frame): Likewise.
2616 (frame_cleanup_after_sniffer): Update assert.
2617
b70e516e
SM
26182020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2619
2620 * regcache.c (pid_ptid_regcache_map): New type.
2621 (target_ptid_regcache_map): Remove.
2622 (target_pid_ptid_regcache_map): New type.
2623 (regcaches): Change type to target_pid_ptid_regcache_map.
2624 (get_thread_arch_aspace_regcache): Update.
2625 (regcache_thread_ptid_changed): Update, handle pid-like ptid
2626 case.
2627 (regcaches_size): Update.
2628 (regcache_count): Update.
2629 (registers_changed_ptid_target_pid_test): New.
2630 (_initialize_regcache): Register new test.
2631
cdd9148a
SM
26322020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2633
2634 * regcache.c (regcache_count): New.
2635 (struct regcache_test_data): New.
2636 (regcache_test_data_up): New.
2637 (populate_regcaches_for_test): New.
2638 (regcaches_test): Remove.
2639 (get_thread_arch_aspace_regcache_test): New.
2640 (registers_changed_ptid_all_test): New.
2641 (registers_changed_ptid_target_test): New.
2642 (registers_changed_ptid_target_ptid_test): New.
2643 (regcache_thread_ptid_changed): Remove regcache_count lambda.
2644 (_initialize_regcache): Register new tests.
2645
dd125343
SM
26462020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2647
2648 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
2649 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
2650 gdbarch and aspace parameter. Use current inferior's aspace.
2651 Validate regcache's arch value.
2652 (regcaches_test): Update.
2653
3ee93972
SM
26542020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2655
2656 * regcache.c (regcaches_test): Call registers_changed.
2657
33bf4c5c
TBA
26582020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2659
2660 * infrun.c (process_event_stop_test): Fix typo "breapoint".
2661
c2fd7fae
AKS
26622020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2663
2664 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
2665 to find the end of prologue for flang compiled binaries.
2666 * arm-tdep.c (arm_skip_prologue): Likewise.
2667 * i386-tdep.c (i386_skip_prologue): Likewise.
2668 * producer.c (producer_is_llvm): New function.
2669 (producer_parsing_tests): Added new tests for clang/flang.
2670 * producer.h (producer_is_llvm): New declaration.
2671
9327494e
SM
26722020-08-18 Simon Marchi <simon.marchi@efficios.com>
2673
2674 * linux-nat.c (linux_nat_debug_printf): New function.
2675 (linux_nat_debug_printf_1): New macro. Use throughout the file.
2676
d138725a
AM
26772020-08-18 Aaron Merey <amerey@redhat.com>
2678
2679 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
2680 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
2681 (CLIBS): Add DEBUGINFOD_LIBS.
2682
f9b11e6b
ST
26832020-08-17 Sergei Trofimovich <siarheit@google.com>
2684
2685 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
2686 'gdbarch_num_regs'.
2687
3ae7ab99
TT
26882020-08-17 Tom Tromey <tromey@adacore.com>
2689
2690 * ada-varobj.c (ada_varobj_decode_var): Handle case where
2691 ada_get_decoded_value returns NULL.
2692
b017825f
TT
26932020-08-17 Tom Tromey <tromey@adacore.com>
2694
2695 * python/py-inferior.c (infpy_search_memory): Use
2696 gdb_py_object_from_ulongest.
2697 * python/py-infevents.c (create_inferior_call_event_object)
2698 (create_memory_changed_event_object): Use
2699 gdb_py_object_from_ulongest.
2700 * python/py-linetable.c (ltpy_entry_get_pc): Use
2701 gdb_py_object_from_ulongest.
2702
7635cf79
SM
27032020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
2704
2705 * loc.c (class symbol_needs_eval_context): Fix indentation.
2706
f54be24b
SM
27072020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
2708
2709 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
2710 bool.
2711
53d5a2a5
TV
27122020-08-17 Tom de Vries <tdevries@suse.de>
2713
2714 PR gdb/26393
2715 * gdbtypes.c (dump_dynamic_prop): New function.
2716 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
2717
547ce8f0
TV
27182020-08-15 Tom de Vries <tdevries@suse.de>
2719
2720 PR backtrace/26390
2721 * stack.c (print_frame_args): Temporarily set the selected
2722 frame to FRAME while printing the frame's arguments.
2723
6ea815e7
PFC
27242020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2725
2726 PR breakpoints/26385
2727 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
2728 Always clear watchpoint with PTRACE_SET_DEBUGREG.
2729
6e562fa3
PFC
27302020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2731
2732 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
2733 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
2734 and >= to check return value instead of == -1 and != -1.
2735
d369b608
SM
27362020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
2737
2738 * utils.h (class gdb_argv) <as_array_view>: New method.
2739 * utils.c (gdb_argv_as_array_view_test): New.
2740 (_initialize_utils): Register selftest.
2741 * maint.c (maintenance_selftest): Use the new method.
2742
b31488a3
KR
27432020-08-13 Kamil Rytarowski <n54@gmx.com>
2744
2745 * target.h (supports_dumpcore, dumpcore): New
2746 function declarations.
2747 * target.c (supports_dumpcore, dumpcore): New
2748 functions.
2749 * target-delegates.c: Rebuild.
2750 * gcore.c (gcore_command): Use target_supports_dumpcore ()
2751 and target_dumpcore ().
2752
002a3166
AM
27532020-08-13 Aaron Merey <amerey@redhat.com>
2754
2755 * debuginfod-support.c: Replace global variables with user_data.
2756
ece5bc8a
SM
27572020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
2758
2759 * maint.c (maintenance_selftest): Split args and pass array_view
2760 to run_tests.
2761
6d8a0a5e
LM
27622020-08-12 Luis Machado <luis.machado@linaro.org>
2763
2764 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
2765 type's length.
2766 Use %s and pulongest to print the length.
2767
7cf663a9
PA
27682020-08-12 Pedro Alves <palves@redhat.com>
2769
2770 * NEWS: Move "Multi-target debugging support" item to the
2771 "Changes since GDB 9" section.
2772
27c7b875
PA
27732020-08-12 Pedro Alves <palves@redhat.com>
2774
2775 PR gdb/26336
2776 * progspace.c (program_space::remove_objfile): Invalidate the
2777 frame cache.
2778
1796a2a1
TV
27792020-08-11 Tom de Vries <tdevries@suse.de>
2780
2781 * MAINTAINERS: Mark ms1 as deleted.
2782
f8e3fe0d
LM
27832020-08-10 Luis Machado <luis.machado@linaro.org>
2784
2785 PR gdb/26310
2786
2787 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
2788 act accordingly.
2789 (aarch64_analyze_prologue_test): Add more unit tests to exercise
2790 movz/str/stur/stp skipping behavior.
2791
cc308722
LM
27922020-08-10 Luis Machado <luis.machado@linaro.org>
2793
2794 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
2795 struct user_sve_header instead of struct sve_context.
2796
041d9819
SM
27972020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
2798
2799 * read.h (dwarf2_fetch_die_loc_sect_off,
2800 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
2801 `void *` parameter with function_view.
2802 * read.c (dwarf2_fetch_die_loc_sect_off,
2803 dwarf2_fetch_die_loc_cu_off): Likewise.
2804 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
2805 (per_cu_dwarf_call): Adjust.
2806 (get_frame_address_in_block_wrapper): Remove.
2807 (indirect_synthetic_pointer): Adjust.
2808 (get_ax_pc): Remove.
2809 (dwarf2_compile_expr_to_ax): Adjust.
2810
38f8aa06
TV
28112020-08-08 Tom de Vries <tdevries@suse.de>
2812
2813 PR build/26344
2814 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
2815 constructor.
2816 * regcache.c (get_thread_arch_aspace_regcache): Same.
2817
a52b3ae2
TT
28182020-08-07 Tom Tromey <tromey@adacore.com>
2819
2820 * ravenscar-thread.c
2821 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
2822 New method.
2823 (ravenscar_thread_target::wait): Check
2824 runtime_initialized.
2825 (ravenscar_thread_target::prepare_to_store)
2826 (ravenscar_thread_target::stopped_by_sw_breakpoint)
2827 (ravenscar_thread_target::stopped_by_hw_breakpoint)
2828 (ravenscar_thread_target::stopped_by_watchpoint)
2829 (ravenscar_thread_target::stopped_data_address)
2830 (ravenscar_thread_target::core_of_thread): Use
2831 scoped_restore_current_thread and
2832 set_base_thread_from_ravenscar_task.
2833
0e29517d
TT
28342020-08-07 Tom Tromey <tromey@adacore.com>
2835
2836 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
2837
592f9bd7
TT
28382020-08-07 Tom Tromey <tromey@adacore.com>
2839
2840 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
2841 update_inferior_ptid before update_thread_list.
2842 (temporarily_change_regcache_ptid): New class.
2843 (ravenscar_thread_target::fetch_registers)
2844 (ravenscar_thread_target::store_registers)
2845 (ravenscar_thread_target::prepare_to_store): Use base thread when
2846 forwarding operation.
2847
39e2018a
TT
28482020-08-07 Tom Tromey <tromey@adacore.com>
2849
2850 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
2851 "is_pid" case.
2852
2080266b
TT
28532020-08-07 Tom Tromey <tromey@adacore.com>
2854
2855 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
2856 New methods.
2857 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
2858 first.
2859 (ravenscar_thread_target::add_thread): Rename from
2860 ravenscar_add_thread.
2861 (ravenscar_thread_target::update_thread_list): Use a lambda.
2862 (ravenscar_thread_target::xfer_partial): New method.
2863
78c02f21
TT
28642020-08-07 Tom Tromey <tromey@adacore.com>
2865
2866 * ada-lang.h (ada_task_list_iterator_ftype): Now a
2867 gdb::function_view.
2868 (iterate_over_live_ada_tasks): Change type of argument.
2869 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
2870 of argument.
2871
d5d833af
TT
28722020-08-07 Tom Tromey <tromey@adacore.com>
2873
2874 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
2875 Remove.
2876 (ravenscar_thread_target::extra_thread_info): Remove.
2877 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
2878 defer to target beneath for non-Ravenscar threads.
2879
a8ac85bb
TT
28802020-08-07 Tom Tromey <tromey@adacore.com>
2881
2882 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
2883 get_base_thread_from_ravenscar_task>: Now methods.
2884 <m_cpu_map>: New member.
2885 (ravenscar_thread_target::get_thread_base_cpu): Rename from
2886 ravenscar_get_thread_base_cpu. Check m_cpu_map.
2887 (ravenscar_thread_target::task_is_currently_active): Update.
2888 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
2889 Now a method.
2890 (ravenscar_thread_target::add_active_thread): Put initial thread
2891 into the m_cpu_map.
2892
550ab58d
TT
28932020-08-07 Tom Tromey <tromey@adacore.com>
2894
2895 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
2896 event_ptid.
2897
e9546579
TT
28982020-08-07 Tom Tromey <tromey@adacore.com>
2899
2900 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
2901 runtime_initialized.
2902
3d4470e5
TT
29032020-08-07 Tom Tromey <tromey@adacore.com>
2904
2905 * ravenscar-thread.c (ravenscar_thread_target): Don't call
2906 add_active_thread.
2907 (ravenscar_thread_target::add_active_thread): Now public.
2908 (ravenscar_inferior_created): Call add_active_thread after pushing
2909 the target.
2910
888bdb2b
SM
29112020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
2912
2913 * regcache.c (ptid_regcache_map): New type.
2914 (target_ptid_regcache_map): New type.
2915 (regcaches): Change type to target_ptid_regcache_map.
2916 (get_thread_arch_aspace_regcache): Update to regcaches' new
2917 type.
2918 (regcache_thread_ptid_changed): Likewise.
2919 (registers_changed_ptid): Likewise.
2920 (regcaches_size): Likewise.
2921 (regcaches_test): Update.
2922 (regcache_thread_ptid_changed): Update.
2923 * regcache.h (regcache_up): New type.
2924 * gdbsupport/ptid.h (hash_ptid): New struct.
2925
b161a60d
SM
29262020-08-07 Simon Marchi <simon.marchi@efficios.com>
2927
2928 * observable.h (thread_ptid_changed): Add parameter
2929 `process_stratum_target *`.
2930 * infrun.c (infrun_thread_ptid_changed): Add parameter
2931 `process_stratum_target *` and use it.
2932 (selftests): New namespace.
2933 (infrun_thread_ptid_changed): New function.
2934 (_initialize_infrun): Register selftest.
2935 * regcache.c (regcache_thread_ptid_changed): Add parameter
2936 `process_stratum_target *` and use it.
2937 (regcache_thread_ptid_changed): New function.
2938 (_initialize_regcache): Register selftest.
2939 * thread.c (thread_change_ptid): Pass target to
2940 thread_ptid_changed observable.
2941
d2854d8d
CT
29422020-08-06 Caroline Tice <cmtice@google.com>
2943
fe4c3d43
SM
2944 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
2945 (struct dwp_sections): Update field comments. Add loclists and
2946 rnglists fields.
2947 (struct virtual_v2_dwo_sections): Rename struct to
2948 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
2949 size & offset fields for loclists and rnglists.
2950 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
2951 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
2952 skipping dummy type units.
2953 (create_dwp_hash_table): Update the large comment above the function to
2954 discuss Version 5 DWP files as well, with references. Update all the
2955 version checks in the function to check for version 5 as well. Add new
2956 section at the end to create dwp hash table for version 5.
2957 (create_dwp_v2_section): Rename function to
2958 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
2959 Add V5 to error message text.
2960 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
2961 into calls to create_dwp_v2_or_v5_section.
2962 (create_dwo_unit_in_dwp_v5): New function.
2963 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
2964 check for version2; add else clause to handle version 5.
2965 (open_and_init_dwo_file): Add code to check dwarf version & only call
2966 create_debug_types_hash_table (with sections.types) if version is not 5;
2967 else call create_debug_type_hash_table, with sections.info.
2968 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
2969 version 5.
2970 (dwarf2_locate_v5_dwp_sections): New function.
2971 (open_and_init_dwp_file): Add else-if clause for version 5 to call
2972 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 2973
159ed7d9
SM
29742020-08-06 Simon Marchi <simon.marchi@efficios.com>
2975
2976 * regcache.h (class regcache): Remove friend
2977 registers_changed_ptid.
2978 <regcache_thread_ptid_changed>: Remove.
2979 <regcaches>: Remove.
2980 * regcache.c (regcache::regcaches): Rename to...
2981 (regcaches): ... this. Make static.
2982 (get_thread_arch_aspace_regcache): Update.
2983 (regcache::regcache_thread_ptid_changed): Rename to...
2984 (regcache_thread_ptid_changed): ... this. Update.
2985 (class regcache_access): Remove.
2986 (regcaches_test): Update.
2987 (_initialize_regcache): Update.
2988 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
2989 <forward_list>.
2990
174981ae
SM
29912020-08-06 Simon Marchi <simon.marchi@efficios.com>
2992
2993 * regcache.h (class regcache) <current_regcache>: Rename to...
2994 <regcaches>: ... this. Move doc here.
2995 * regcache.c (regcache::current_regcache) Rename to...
2996 (regcache::regcaches): ... this. Move doc to header.
2997 (get_thread_arch_aspace_regcache): Update.
2998 (regcache::regcache_thread_ptid_changed): Update.
2999 (registers_changed_ptid): Update.
3000 (class regcache_access) <current_regcache_size>: Rename to...
3001 <regcaches_size>: ... this.
3002 (current_regcache_test): Rename to...
3003 (regcaches_test): ... this.
3004 (_initialize_regcache): Update.
3005
ed908db6
VC
30062020-08-06 Victor Collod <vcollod@nvidia.com>
3007
3008 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
3009
b5582ab7
KB
30102020-08-05 Kevin Buettner <kevinb@redhat.com>
3011
3012 * corelow.c (core_target::build_file_mappings): Don't output
3013 null pathname in warning.
3014
ea946b86
SM
30152020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
3016
3017 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
3018 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
3019 gdb.dwarf2/dw2-single-line-discriminators.exp,
3020 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
3021
57d02173
TT
30222020-08-05 Tom Tromey <tromey@adacore.com>
3023
3024 PR rust/26197:
3025 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
3026 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
3027 Fix off-by-one and type size errors in ordinary case.
3028
5555c86d
TV
30292020-08-05 Tom de Vries <tdevries@suse.de>
3030
3031 * gdbtypes.c (type_not_allocated, type_not_associated): Use
3032 "prop->const_val () == 0" instead of "prop->const_val () != 0".
3033
97916bfe
SM
30342020-08-04 Simon Marchi <simon.marchi@efficios.com>
3035
3036 * frame.h (frame_id_p): Return bool.
3037 (frame_id_artificial_p): Return bool.
3038 (frame_id_eq): Return bool.
3039 (has_stack_frames): Return bool.
3040 (get_selected_frame): Fix typo in comment.
3041 (get_frame_pc_if_available): Return bool.
3042 (get_frame_address_in_block_if_available): Return bool.
3043 (get_frame_func_if_available): Return bool.
3044 (read_frame_register_unsigned): Return bool.
3045 (get_frame_register_bytes): Return bool.
3046 (safe_frame_unwind_memory): Return bool.
3047 (deprecated_frame_register_read): Return bool.
3048 (frame_unwinder_is): Return bool.
3049 * frame.c (struct frame_info) <prev_arch::p>: Change type to
3050 bool.
3051 <this_id::p>: Likewise.
3052 <prev_p>: Likewise.
3053 (frame_stash_add): Return bool.
3054 (get_frame_id): Use bool.
3055 (frame_id_build_special) Use bool.
3056 (frame_id_build_unavailable_stack): Use bool.
3057 (frame_id_build): Use bool.
3058 (frame_id_p): Return bool, use true/false instead of 1/0.
3059 (frame_id_artificial_p): Likewise.
3060 (frame_id_eq): Likewise.
3061 (frame_id_inner): Likewise.
3062 (get_frame_func_if_available): Likewise.
3063 (read_frame_register_unsigned): Likewise.
3064 (deprecated_frame_register_read): Likewise.
3065 (get_frame_register_bytes): Likewise.
3066 (has_stack_frames): Likewise.
3067 (inside_main_func): Likewise.
3068 (inside_entry_func): Likewise.
3069 (get_frame_pc_if_available): Likewise.
3070 (get_frame_address_in_block_if_available): Likewise.
3071 (frame_unwinder_is): Likewise.
3072 (safe_frame_unwind_memory): Likewise.
3073 (frame_unwind_arch): Likewise.
3074
fedfee88
SM
30752020-08-04 Simon Marchi <simon.marchi@efficios.com>
3076
3077 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
3078 type to cached_copy_status.
3079 (fprintf_frame): Adjust.
3080 (get_frame_func_if_available): Adjust.
3081 (frame_cleanup_after_sniffer): Adjust.
3082
6cfa9b59
MW
30832020-08-04 Mark Wielaard <mark@klomp.org>
3084
3085 * MAINTAINERS (Write After Approval): Update email address.
3086
66d6346b
SM
30872020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3088
3089 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
3090 dynamic_prop::const_val.
3091
8a6d5e35
SM
30922020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3093
3094 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
3095 dynamic_prop::kind.
3096
51d6067d
SM
30972020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3098
3099 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
3100
b26e2ae7
JM
31012020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
3102
3103 * configure.tgt: Set gdb_sim for bpf-*-* targets.
3104
39791af2
JM
31052020-08-04 Weimin Pan <weimin.pan@oracle.com>
3106 Jose E. Marchesi <jose.marchesi@oracle.com>
3107
3108 * configure.tgt: Add entry for bpf-*-*.
3109 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
3110 (ALLDEPFILES): Add bpf-tdep.c.
3111 * bpf-tdep.c: New file.
3112 * MAINTAINERS: Add bpf target and maintainer.
3113 * NEWS: Mention the support for the new target.
3114
521894aa
TV
31152020-08-04 Tom de Vries <tdevries@suse.de>
3116
3117 PR symtab/23270
3118 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
3119 Error.
3120
5d6356e9
JB
31212020-08-03 John Baldwin <jhb@FreeBSD.org>
3122
3123 * syscalls/freebsd.xml: Regenerate.
3124
0cf82b81
JB
31252020-08-03 John Baldwin <jhb@FreeBSD.org>
3126
3127 * syscalls/update-freebsd.sh: Fix usage and year range.
3128
8f34b746
TV
31292020-08-03 Tom de Vries <tdevries@suse.de>
3130
3131 PR symtab/26333
3132 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
3133 DW_LNE_lo_user/DW_LNE_hi_user range.
3134
5e500d33
SM
31352020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
3136
3137 PR ada/26318
3138 * ada-lang.c (ada_modulus): Return 0 if property is not of const
3139 kind.
3140
78319c15
TBA
31412020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3142
3143 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
3144
4c55e970
TBA
31452020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3146
3147 * breakpoint.c (set_breakpoint_condition): Update the condition
3148 expressions after checking that the input condition string parses
3149 successfully and does not contain junk at the end.
3150
1e620590
TBA
31512020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3152
3153 * breakpoint.c (set_breakpoint_condition): Update the
3154 condition string after parsing the new condition successfully.
3155
c8693053
RO
31562020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3157
3158 * proc-api.c (_STRUCTURED_PROC): Don't define.
3159 * proc-events.c: Likewise.
3160 * proc-flags.c: Likewise.
3161 * proc-why.c: Likewise.
3162 * procfs.c: Likewise.
3163
3164 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
3165 * configure, config.in: Regenerate.
3166
5a99adb8
TV
31672020-07-30 Tom de Vries <tdevries@suse.de>
3168
3169 PR build/26320
3170 * ui-style.h (struct ui_file_style::color): Wrap m_value and
3171 m_red/m_green/m_blue in a union.
3172
8ba83e91
TV
31732020-07-29 Tom de Vries <tdevries@suse.de>
3174
3175 PR tdep/26280
3176 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
3177
f75a0693
AB
31782020-07-28 Tom Tromey <tromey@adacore.com>
3179
3180 PR symtab/26270:
3181 * symtab.h (find_pc_partial_function_sym): Declare.
3182 * cli/cli-cmds.c (disassemble_command): Use
3183 find_pc_partial_function_sym. Check asm_demangle.
3184 * blockframe.c (cache_pc_function_sym): New global.
3185 (cache_pc_function_name): Remove.
3186 (clear_pc_function_cache): Update.
3187 (find_pc_partial_function_sym): New function, from
3188 find_pc_partial_function.
3189 (find_pc_partial_function): Rewrite using
3190 find_pc_partial_function_sym.
3191
16f3242c
TT
31922020-07-28 Tom Tromey <tromey@adacore.com>
3193
3194 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
3195 help. Add usage.
3196
4888741a
TT
31972020-07-28 Tom Tromey <tromey@adacore.com>
3198
3199 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
3200 <DW_OP_GNU_variable_value>: Cast to address type.
3201
4d46f402
KR
32022020-07-28 Kamil Rytarowski <n54@gmx.com>
3203
3204 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
3205 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
3206 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
3207 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
3208 (nbsd_get_siginfo_type): New.
3209 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
3210 (_initialize_nbsd_tdep): New.
3211
d70f978b
L
32122020-07-28 H.J. Lu <hongjiu.lu@intel.com>
3213
3214 PR binutils/26301
3215 * configure: Regenerated.
3216
377170fa
L
32172020-07-28 H.J. Lu <hongjiu.lu@intel.com>
3218
3219 PR binutils/26301
3220 * configure: Regenerated.
3221
43d5901d
AB
32222020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
3223
3224 * python/py-frame.c: Remove 'user-regs.h' include.
3225 (frapy_read_register): Rewrite to make use of
3226 gdbpy_parse_register_id.
3227 * python/py-registers.c (gdbpy_parse_register_id): New function,
3228 moved here from python/py-unwind.c. Updated the return type, and
3229 also accepts register descriptor objects.
3230 * python/py-unwind.c: Remove 'user-regs.h' include.
3231 (pyuw_parse_register_id): Moved to python/py-registers.c.
3232 (unwind_infopy_add_saved_register): Update to use
3233 gdbpy_parse_register_id.
3234 (pending_framepy_read_register): Likewise.
3235 * python/python-internal.h (gdbpy_parse_register_id): Declare.
3236
14fa8fb3
AB
32372020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
3238
3239 * python/py-registers.c: Add 'user-regs.h' include.
3240 (register_descriptor_iter_find): New function.
3241 (register_descriptor_iterator_object_methods): New static global
3242 methods array.
3243 (register_descriptor_iterator_object_type): Add pointer to methods
3244 array.
3245
ddce1758
JB
32462020-07-27 John Baldwin <jhb@FreeBSD.org>
3247
3248 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
3249 for all architectures on FreeBSD 11.3 and later.
3250
a4089f52
TT
32512020-07-27 Tom Tromey <tromey@adacore.com>
3252
3253 * gcore.h (load_corefile): Don't declare.
3254
95420d30
TV
32552020-07-27 Tom de Vries <tdevries@suse.de>
3256
3257 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
3258 * config.in: Regenerate.
3259 * configure: Regenerate.
3260
05a6b8c2
EZ
32612020-07-26 Eli Zaretskii <eliz@gnu.org>
3262
3263 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
3264 ws2tcpip.h. When checking whether socklen_t type is defined, use
3265 ws2tcpip.h if it is available and sys/socket.h isn't.
3266 * configure: Regenerate.
3267 * config.in: Regenerate.
3268
e79eb02f
AB
32692020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
3270
3271 PR fortran/23051
3272 PR fortran/26139
3273 * valops.c (value_ind): Pass address to
3274 readjust_indirect_value_type.
3275 * value.c (readjust_indirect_value_type): Make parameter
3276 non-const, and add extra address parameter. Resolve original type
3277 before using it.
3278 * value.h (readjust_indirect_value_type): Update function
3279 signature and comment.
3280
876518dd
TV
32812020-07-25 Tom de Vries <tdevries@suse.de>
3282
3283 PR symtab/26243
3284 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
3285 entries.
3286
f6720b1c
AM
32872020-07-24 Aaron Merey <amerey@redhat.com>
3288
3289 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
3290 * configure: Rebuild.
3291
513487e1
KB
32922020-07-23 Kevin Buettner <kevinb@redhat.com>
3293
3294 PR corefiles/26294
3295 * corelow.c (_initialize_corelow): Add period to help text
3296 for "maintenance print core-file-backed-mappings".
3297
e7bc9db8
PA
32982020-07-23 Pedro Alves <pedro@palves.net>
3299
3300 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
3301 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
3302 meanwhile.
3303 * frame.c (frame_cache_generation, get_frame_cache_generation):
3304 New.
3305 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
3306 (get_prev_frame_if_no_cycle): On exception, don't touch
3307 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
3308 * frame.h (get_frame_cache_generation): Declare.
3309
90fcc466
TV
33102020-07-23 Tom de Vries <tdevries@suse.de>
3311
3312 PR tui/26282
3313 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
3314 New default constructor.
3315
78344df7
AB
33162020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
3317
3318 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
3319 exclude non-statement entries.
3320
b089853a
KB
33212020-07-22 Kevin Buettner <kevinb@redhat.com>
3322
3323 * NEWS (New commands): Mention new command
3324 "maintenance print core-file-backed-mappings".
3325
09c2f5d4
KB
33262020-07-22 Kevin Buettner <kevinb@redhat.com>
3327
3328 * corelow.c (gdbcmd.h): Include.
3329 (core_target::info_proc_mappings): New method.
3330 (get_current_core_target): New function.
3331 (maintenance_print_core_file_backed_mappings): New function.
3332 (_initialize_corelow): Add core-file-backed-mappings to
3333 "maint print" commands.
3334
9c5ec5c2 33352020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 3336
9c5ec5c2
KB
3337 * linux-tdep.c (dump_note_entry_p): New function.
3338 (linux_dump_mapping_p_ftype): New typedef.
3339 (linux_find_memory_regions_full): Add new parameter,
3340 should_dump_mapping_p.
3341 (linux_find_memory_regions): Adjust call to
3342 linux_find_memory_regions_full.
3343 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
3344 call to linux_find_memory_regions_full.
3345
db082f59
KB
33462020-07-22 Kevin Buettner <kevinb@redhat.com>
3347
3348 * corelow.c (solist.h, unordered_map): Include.
3349 (class core_target): Add field m_core_file_mappings and
3350 method build_file_mappings.
3351 (core_target::core_target): Call build_file_mappings.
3352 (core_target::~core_target): Free memory associated with
3353 m_core_file_mappings.
3354 (core_target::build_file_mappings): New method.
3355 (core_target::xfer_partial): Use m_core_file_mappings
3356 for memory transfers.
3357 * linux-tdep.c (linux_read_core_file_mappings): New
3358 function.
3359 (linux_core_info_proc_mappings): Rewrite to use
3360 linux_read_core_file_mappings.
3361 (linux_init_abi): Register linux_read_core_file_mappings.
3362
7e183d27
KB
33632020-07-22 Kevin Buettner <kevinb@redhat.com>
3364
3365 * arch-utils.c (default_read_core_file_mappings): New function.
3366 * arch-utils.c (default_read_core_file_mappings): Declare.
3367 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
3368 * gdbarch.h, gdbarch.c: Regenerate.
3369
2735d421
KB
33702020-07-22 Kevin Buettner <kevinb@redhat.com>
3371
3372 PR corefiles/25631
3373 * corelow.c (core_target:xfer_partial): Revise
3374 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
3375 case after first checking the stratum beneath the core
3376 target.
3377 (has_all_memory): Return true.
3378 * target.c (raw_memory_xfer_partial): Revise comment
3379 regarding use of has_all_memory.
3380
e56cb451
KB
33812020-07-22 Kevin Buettner <kevinb@redhat.com>
3382
3383 * exec.h (section_table_xfer_memory): Revise declaration,
3384 replacing section name parameter with an optional callback
3385 predicate.
3386 * exec.c (section_table_xfer_memory): Likewise.
3387 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
3388 of section_table_xfer_memory.
3389
32fa152e
TT
33902020-07-22 Tom Tromey <tromey@adacore.com>
3391
3392 * mi/mi-cmd-stack.c (list_args_or_locals): Use
3393 lookup_symbol_search_name.
3394
a67a1c41
AB
33952020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
3396
3397 * python/py-registers.c (gdbpy_register_object_data_init): Remove
3398 redundant local variable.
3399 (gdbpy_get_register_descriptor): Extract descriptor vector as a
3400 reference, not pointer, update code accordingly.
3401
a7b4ff4f
SM
34022020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3403 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3404
3405 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
3406 * jit.c (jit_breakpoint_re_set_internal): Use the
3407 `skip_jit_symbol_lookup` field.
3408
2340e834
SM
34092020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3410 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3411
3412 * jit.c (jit_read_descriptor): Define the descriptor address once,
3413 use twice.
3414 (jit_breakpoint_deleted): Move the declaration of the loop variable
3415 `iter` into the loop header.
3416 (jit_breakpoint_re_set_internal): Move the declaration of the local
3417 variable `objf_data` to the first point of definition.
3418 (jit_event_handler): Move the declaration of local variables
3419 `code_entry`, `entry_addr`, and `objf` to their first point of use.
3420 Rename `objf` to `jited`.
3421
c1072906
SM
34222020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3423
3424 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
3425 Remove.
3426 * jit.c (get_jiter_objfile_data): Update.
3427
c8474dc3
TBA
34282020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3429 Simon Marchi <simon.marchi@polymtl.ca>
3430
3431 * jit.c (struct jit_program_space_data): Remove.
3432 (jit_program_space_key): Remove.
3433 (jiter_objfile_data::~jiter_objfile_data): Remove program space
3434 stuff.
3435 (get_jit_program_space_data): Remove.
3436 (jit_breakpoint_deleted): Iterate on all of the program space's
3437 objfiles.
3438 (jit_inferior_init): Likewise.
3439 (jit_breakpoint_re_set_internal): Likewise. Also change return
3440 type to void.
3441 (jit_breakpoint_re_set): Pass current_program_space to
3442 jit_breakpoint_re_set_internal.
3443
77208eb7
SM
34442020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3445
3446 * jit.h (struct jiter_objfile_data) <cached_code_address,
3447 jit_breakpoint>: Move to here from ...
3448 * jit.c (jit_program_space_data): ... here.
3449 (jiter_objfile_data::~jiter_objfile_data): Update.
3450 (jit_breakpoint_deleted): Update.
3451 (jit_breakpoint_re_set_internal): Update.
3452
8c1c720f
SM
34532020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3454
3455 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
3456 checks.
3457 (jit_read_descriptor): Remove NULL check.
3458 (jit_event_handler): Add an assertion.
3459
0e74a041
SM
34602020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3461
3462 * jit.h (struct jit_objfile_data): Split into...
3463 (struct jiter_objfile_data): ... this ...
3464 (struct jited_objfile_data): ... and this.
3465 * objfiles.h (struct objfile) <jit_data>: Remove.
3466 <jiter_data, jited_data>: New fields.
3467 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
3468 (jiter_objfile_data::~jiter_objfile_data): ... this.
3469 (get_jit_objfile_data): Rename to ...
3470 (get_jiter_objfile_data): ... this.
3471 (add_objfile_entry): Update.
3472 (jit_read_descriptor): Use get_jiter_objfile_data.
3473 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
3474 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
3475 (jit_inferior_exit_hook): Use objfile's jited_data field.
3476
238b5c9f
SM
34772020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3478
3479 * jit.h: Forward-declare `struct minimal_symbol`.
3480 (struct jit_objfile_data): Migrate to here from jit.c; also add a
3481 constructor, destructor, and an objfile* field.
3482 * jit.c (jit_objfile_data): Remove.
3483 (struct jit_objfile_data): Migrate from here to jit.h.
3484 (jit_objfile_data::~jit_objfile_data): New destructor
3485 implementation with code moved from free_objfile_data.
3486 (free_objfile_data): Delete.
3487 (get_jit_objfile_data): Update to use the jit_data field of objfile.
3488 (jit_find_objf_with_entry_addr): Ditto.
3489 (jit_inferior_exit_hook): Ditto.
3490 (_initialize_jit): Remove the call to
3491 register_objfile_data_with_cleanup.
3492 * objfiles.h (struct objfile) <jit_data>: New field.
3493
fe053b9e
TBA
34942020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3495
3496 * jit.h: Forward-declare `struct objfile`.
3497 (jit_event_handler): Add a second parameter, the JITer objfile.
3498 * jit.c (jit_read_descriptor): Change the signature to take the
3499 JITer objfile as an argument instead of the jit_program_space_data.
3500 (jit_inferior_init): Update the call to jit_read_descriptor.
3501 (jit_event_handler): Use the new JITer objfile argument when calling
3502 jit_read_descriptor.
3503 * breakpoint.c (handle_jit_event): Update the call to
3504 jit_event_handler to pass the JITer objfile.
3505
4cec0c66
JB
35062020-07-21 John Baldwin <jhb@FreeBSD.org>
3507
3508 * gdbarch.c: Regenerate.
3509 * gdbarch.h: Regenerate.
3510 * gdbarch.sh (handle_segmentation_fault): Remove method.
3511 * infrun.c (handle_segmentation_fault): Remove.
3512 (print_signal_received_reason): Remove call to
3513 handle_segmentation_fault.
3514
0e42f66a
JB
35152020-07-21 John Baldwin <jhb@FreeBSD.org>
3516
3517 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
3518 Rename to sparc64_linux_report_signal_info and add siggnal
3519 argument.
3520 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
3521 instead of sparc64_linux_handle_segmentation_fault.
3522
77bdfeb2
JB
35232020-07-21 John Baldwin <jhb@FreeBSD.org>
3524
3525 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
3526 i386_linux_report_signal_info instead of
3527 i386_linux_handle_segmentation_fault.
3528 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
3529 to i386_linux_report_signal_info and add siggnal argument.
3530 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
3531 of i386_linux_handle_segmentation_fault.
3532 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
3533 to i386_linux_report_signal_info and add siggnal argument.
3534
ad97bfc5
JB
35352020-07-21 John Baldwin <jhb@FreeBSD.org>
3536
3537 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
3538 hook if present.
3539
272bb05c
JB
35402020-07-21 John Baldwin <jhb@FreeBSD.org>
3541
3542 * gdbarch.c: Regenerate.
3543 * gdbarch.h: Regenerate.
3544 * gdbarch.sh (report_signal_info): New method.
3545 * infrun.c (print_signal_received_reason): Invoke gdbarch
3546 report_signal_info hook if present.
3547
baf8791e
AB
35482020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
3549
3550 * python/py-registers.c : Add 'unordered_map' include.
3551 (gdbpy_new_reggroup): Renamed to...
3552 (gdbpy_get_reggroup): ...this. Update to only create register
3553 group descriptors when needed.
3554 (gdbpy_reggroup_iter_next): Update.
3555
f7306dac
AB
35562020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
3557
3558 * python/py-registers.c (gdbpy_register_object_data): New static
3559 global.
3560 (gdbpy_register_object_data_init): New function.
3561 (gdbpy_new_register_descriptor): Renamed to...
3562 (gdbpy_get_register_descriptor): ...this, and update to reuse
3563 existing register descriptors where possible.
3564 (gdbpy_register_descriptor_iter_next): Update.
3565 (gdbpy_initialize_registers): Register new gdbarch data.
3566
05c309a8
SM
35672020-07-21 Simon Marchi <simon.marchi@efficios.com>
3568
3569 * linux-nat.c (stopped_pids): Make static.
3570
d1fd641e
SM
35712020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
3572
3573 PR ada/26235
3574 * gdbtypes.c (ada_discrete_type_low_bound,
3575 ada_discrete_type_high_bound): Handle undefined bounds.
3576
1de14d77
KR
35772020-07-21 Kamil Rytarowski <n54@gmx.com>
3578
3579 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
3580 declaration.
3581 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
3582 function.
3583
ed810cc7
JB
35842020-07-20 John Baldwin <jhb@FreeBSD.org>
3585
3586 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
3587 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
3588 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
3589 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
3590 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
3591 method.
3592
ae5369e7
LC
35932020-07-20 Ludovic Courtès <ludo@gnu.org>
3594
3595 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
3596 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
3597 which are deprecated in Guile 3.0.
3598 * configure.ac (try_guile_versions): Add "guile-3.0".
3599 * configure (try_guile_versions): Regenerate.
3600 * NEWS: Update entry.
3601
68cf161c
LC
36022020-07-20 Ludovic Courtès <ludo@gnu.org>
3603 Doug Evans <dje@google.com>
3604
3605 PR gdb/21104
3606 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
3607 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
3608 USING_GUILE_BEFORE_2_2.
3609 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
3610 Change type to 'scm_t_port_type *'.
3611 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
3612 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
3613 parameter and honor it. Update callers.
3614 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
3615 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
3616 functions.
3617 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
3618 USING_GUILE_BEFORE_2_2.
3619 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
3620 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
3621 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
3622 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
3623 and 'SCM_PORT_TYPE'.
3624 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
3625 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
3626 (gdbscm_memory_port_read, gdbscm_memory_port_write)
3627 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
3628 [!USING_GUILE_BEFORE_2_2]: New functions.
3629 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
3630 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
3631 'gdbscm_memory_port_read'.
3632 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
3633 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
3634 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
3635 function.
3636 (ioscm_init_memory_port): Remove.
3637 (ioscm_init_memory_port_stream): New function
3638 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
3639 function.
3640 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
3641 Return scm_from_uint (0).
3642 (gdbscm_set_memory_port_read_buffer_size_x)
3643 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
3644 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
3645 Return scm_from_uint (0).
3646 (gdbscm_set_memory_port_write_buffer_size_x)
3647 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
3648 * configure.ac (try_guile_versions): Add "guile-2.2".
3649 * configure: Regenerate.
3650 * NEWS: Add entry.
3651
aee91db3
TT
36522020-07-18 Tom Tromey <tom@tromey.com>
3653
3654 * linux-nat.c (linux_multi_process): Remove.
3655 (linux_nat_target::supports_multi_process): Return true.
3656
0e267416
AB
36572020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
3658
3659 * arch/riscv.c (riscv_tdesc_cache): Change map type.
3660 (riscv_lookup_target_description): Return pointer out of
3661 unique_ptr.
3662 * target-descriptions.c (allocate_target_description): Add
3663 comment.
3664 (target_desc_deleter::operator()): Likewise.
3665 * target-descriptions.h (struct target_desc_deleter): Moved to
3666 gdbsupport/tdesc.h.
3667 (target_desc_up): Likewise.
3668
f80c8ec4
TT
36692020-07-17 Tom Tromey <tromey@adacore.com>
3670
3671 * linux-nat.c (linux_nat_target::supports_non_stop)
3672 (linux_nat_target::always_non_stop_p): Use "true".
3673 (linux_nat_target::supports_disable_randomization): Use "true" and
3674 "false".
3675
d0ce17d8
CT
36762020-07-16 Caroline Tice <cmtice@google.com>
3677
3678 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
3679 (RNGLIST_HEADER_SIZE64): New constant definition.
3680 (struct dwop_section_names): Add rnglists_dwo.
3681 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
3682 (struct loclist_header): Rename to 'loclists_rnglists_header'.
3683 (struct dwo_sections): Add rnglists field.
3684 (read_attribut_reprocess): Add tag parameter.
3685 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
3686 (cu_debug_rnglists_section): New function (decl & definition).
3687 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
3688 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
3689 die whose range is being checked; get rnglist section from
3690 cu_debug_rnglists_section, to get from either objfile or dwo file as
3691 appropriate. Add cases for DW_RLE_base_addressx,
3692 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
3693 the base address to DW_RLE_offset_pairs (not to all ranges), moving
3694 test inside if-condition and updating complaint message.
3695 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
3696 dwarf2_rnglists_process.
3697 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
3698 dwarf2_ranges_process.
3699 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
3700 need_ranges_base and update comment appropriately. Also pass die tag
3701 to dwarf2_ranges_read.
3702 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
3703 need_ranges_base and update comment appropriately. Also pass die tag
3704 to dwarf2_ranges_process.
3705 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
3706 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
3707 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
3708 need_ranges_base and update comment appropriately. Also pass die tag
3709 to read_attribute_reprocess and dwarf2_ranges_read.
3710 (read_loclist_header): Rename function to read_loclists_rnglists_header,
3711 and update function comment appropriately.
3712 (read_loclist_index): Call read_loclists_rnglists_header instead of
3713 read_loclist_header.
3714 (read_rnglist_index): New function.
3715 (read_attribute_reprocess): Add tag parameter. Add code for
3716 DW_FORM_rnglistx, passing tag to read_rnglist_index.
3717 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
3718
3dcc261c
AB
37192020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
3720
3721 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
3722 being resolved.
3723
ccb9eba6
AB
37242020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
3725
3726 * arch-utils.c (show_architecture): Update formatting of messages.
3727
cf88be68
SM
37282020-07-12 Simon Marchi <simon.marchi@efficios.com>
3729
3730 * gdbtypes.h (struct type) <bounds>: Handle array and string
3731 types.
3732 * ada-lang.c (assign_aggregate): Use type::bounds on
3733 array/string type.
3734 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
3735 * c-varobj.c (c_number_of_children): Likewise.
3736 (c_describe_child): Likewise.
3737 * eval.c (evaluate_subexp_for_sizeof): Likewise.
3738 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
3739 (f_type_print_base): Likewise.
3740 * f-valprint.c (f77_array_offset_tbl): Likewise.
3741 (f77_get_upperbound): Likewise.
3742 (f77_print_array_1): Likewise.
3743 * guile/scm-type.c (gdbscm_type_range): Likewise.
3744 * m2-typeprint.c (m2_array): Likewise.
3745 (m2_is_long_set_of_type): Likewise.
3746 * m2-valprint.c (get_long_set_bounds): Likewise.
3747 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
3748 * python/py-type.c (typy_range): Likewise.
3749 * rust-lang.c (rust_internal_print_type): Likewise.
3750 * type-stack.c (type_stack::follow_types): Likewise.
3751 * valarith.c (value_subscripted_rvalue): Likewise.
3752 * valops.c (value_cast): Likewise.
3753
509971ae
SM
37542020-07-12 Simon Marchi <simon.marchi@efficios.com>
3755
3756 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
3757 callers to use the equivalent accessor methods.
3758
107406b7
SM
37592020-07-12 Simon Marchi <simon.marchi@efficios.com>
3760
3761 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
3762 (struct type) <bit_stride>: New method.
3763 (TYPE_BIT_STRIDE): Remove.
3764 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
3765
bb789949
SM
37662020-07-12 Simon Marchi <simon.marchi@efficios.com>
3767
3768 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
3769 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
3770 callers to use the equivalent accessor methods instead.
3771
39498edb
SM
37722020-07-12 Simon Marchi <simon.marchi@efficios.com>
3773
3774 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
3775 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
3776 callers to use the equivalent accessor methods instead.
3777
3b606f38
SM
37782020-07-12 Simon Marchi <simon.marchi@efficios.com>
3779
3780 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
3781 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
3782 to use dynamic_prop::kind.
3783
064d9cb9
SM
37842020-07-12 Simon Marchi <simon.marchi@efficios.com>
3785
3786 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
3787 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
3788 to get the bound property's kind and check against
3789 PROP_UNDEFINED.
3790
5537ddd0
SM
37912020-07-12 Simon Marchi <simon.marchi@efficios.com>
3792
3793 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
3794 all callers to use type::range_bounds followed by
3795 dynamic_prop::{low,high}.
3796
8c2e4e06
SM
37972020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
3798
3799 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
3800 const_val, set_const_val, baton, set_locexpr, set_loclist,
3801 set_addr_offset, variant_parts, set_variant_parts,
3802 original_type, set_original_type>: New methods.
3803 <kind>: Rename to...
3804 <m_kind>: ... this. Update all users to use the new methods
3805 instead.
3806 <data>: Rename to...
3807 <m_data>: ... this. Update all users to use the new methods
3808 instead.
3809
7c6f2712
SM
38102020-07-12 Simon Marchi <simon.marchi@efficios.com>
3811
3812 * gdbtypes.c (get_discrete_bounds): Return failure if
3813 the range type's bounds are not both defined and constant
3814 values.
3815 (get_array_bounds): Update comment. Remove undefined bound check.
3816
599088e3
SM
38172020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
3818
3819 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
3820 the type::bounds method directly.
3821
c4dfcb36
SM
38222020-07-12 Simon Marchi <simon.marchi@efficios.com>
3823
3824 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
3825 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
3826 are used to set the range type's bounds to use set_bounds.
3827
0a278aa7
PW
38282020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3829
3830 * exec.c (_initialize_exec): Update exec-file-mismatch help.
3831
cce20f10
PA
38322020-07-10 Pedro Alves <pedro@palves.net>
3833
3834 * gdbthread.h (inferior_ref): Define.
3835 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
3836 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
3837 * thread.c
3838 (scoped_restore_current_thread::restore):
3839 Adjust to gdb::ref_ptr.
3840 (scoped_restore_current_thread::~scoped_restore_current_thread):
3841 Remove manual decref handling.
3842 (scoped_restore_current_thread::scoped_restore_current_thread):
3843 Adjust to use
3844 inferior_ref::new_reference/thread_info_ref::new_reference.
3845 Incref the thread before calling get_frame_id instead of after.
3846 Let TARGET_CLOSE_ERROR propagate.
3847
6d7aa592
PA
38482020-07-10 Pedro Alves <pedro@palves.net>
3849
3850 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
3851 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
3852 NOT_AVAILABLE_ERROR.
3853 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
3854 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
3855
b3e3a4c1
SM
38562020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3857 Pedro Alves <pedro@palves.net>
3858
3859 PR gdb/26199
3860 * infrun.c (threads_are_resumed_pending_p): Delete.
3861 (do_target_wait): Remove threads_are_executing and
3862 threads_are_resumed_pending_p checks from the inferior_matches
3863 lambda. Update comments.
3864
d6cc5d98
PA
38652020-07-10 Pedro Alves <pedro@palves.net>
3866
3867 PR gdb/26199
3868 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
3869 executing threads.
3870
7d3badc6
PA
38712020-07-10 Pedro Alves <pedro@palves.net>
3872
3873 PR gdb/26199
3874 * infrun.c (handle_no_resumed): Handle multiple targets.
3875
42bd97a6
PA
38762020-07-10 Pedro Alves <pedro@palves.net>
3877
3878 PR gdb/26199
3879 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
3880 target_is_async_p.
3881
43667cc6
PA
38822020-07-10 Pedro Alves <pedro@palves.net>
3883
3884 PR gdb/26199
3885 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
3886 threads, not all threads.
3887
96118d11
PA
38882020-07-10 Pedro Alves <pedro@palves.net>
3889
3890 PR gdb/26199
3891 * remote.c (remote_target::open_1): Pass remote target pointer as
3892 data to create_async_event_handler.
3893 (remote_async_inferior_event_handler): Mark async event handler
3894 before returning if the remote target still has either pending
3895 events or unacknowledged notifications.
3896
54904d81
JB
38972020-07-10 John Baldwin <jhb@FreeBSD.org>
3898
3899 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
3900 declaration.
3901 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
3902 function.
3903
f37e5866
JB
39042020-07-09 John Baldwin <jhb@FreeBSD.org>
3905
3906 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
3907 inferior_ptid.
3908
fc238d4a
JB
39092020-07-09 John Baldwin <jhb@FreeBSD.org>
3910
3911 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
3912 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
3913 AT_FREEBSD_PS_STRINGS.
3914
6e2469ff
HD
39152020-07-08 Hannes Domani <ssbssa@yahoo.de>
3916
3917 * auto-load.c (auto_load_objfile_script_1): Convert drive part
3918 of debugfile path on Windows.
3919
d1076c41
JB
39202020-07-08 John Baldwin <jhb@FreeBSD.org>
3921
3922 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
3923 argument to 'data'.
3924
15f3b077
TT
39252020-07-08 Tom Tromey <tromey@adacore.com>
3926
3927 * ada-lang.c (ada_exception_message_1): Use read_memory.
3928
9fc501fd
AB
39292020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3930
3931 PR python/22748
3932 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
3933 special handling for inline frames.
3934 * findvar.c (value_of_register_lazy): Skip inline frames when
3935 creating lazy register values.
3936 * frame.c (frame_id_computed_p): Delete definition.
3937 * frame.h (frame_id_computed_p): Delete declaration.
3938
64cb3757
AB
39392020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3940
3941 * NEWS: Mention additions to Python API.
3942 * python/py-arch.c (archpy_register_groups): New function.
3943 (arch_object_methods): Add 'register_groups' method.
3944 * python/py-registers.c (reggroup_iterator_object): New struct.
3945 (reggroup_object): New struct.
3946 (gdbpy_new_reggroup): New function.
3947 (gdbpy_reggroup_to_string): New function.
3948 (gdbpy_reggroup_name): New function.
3949 (gdbpy_reggroup_iter): New function.
3950 (gdbpy_reggroup_iter_next): New function.
3951 (gdbpy_new_reggroup_iterator): New function
3952 (gdbpy_initialize_registers): Register new types.
3953 (reggroup_iterator_object_type): Define new Python type.
3954 (gdbpy_reggroup_getset): New static global.
3955 (reggroup_object_type): Define new Python type.
3956 * python/python-internal.h
3957
0f767f94
AB
39582020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3959
3960 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
3961 * python/py-arch.c (archpy_registers): New function.
3962 (arch_object_methods): Add 'registers' method.
3963 * python/py-registers.c: New file.
3964 * python/python-internal.h
3965 (gdbpy_new_register_descriptor_iterator): Declare.
3966 (gdbpy_initialize_registers): Declare.
3967 * python/python.c (do_start_initialization): Call
3968 gdbpy_initialize_registers.
3969 * NEWS: Mention additions to the Python API.
3970
87dbc774
AB
39712020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3972
3973 * NEWS: Mention new Python API method.
3974 * python/py-unwind.c (pending_framepy_architecture): New function.
3975 (pending_frame_object_methods): Add architecture method.
3976
3bc98c0c
AB
39772020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3978
3979 * gdbarch.c: Regenerate.
3980 * gdbarch.h: Regenerate.
3981 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
3982 (gdbarch_data): Use internal_error for the case where
3983 deprecated_set_gdbarch_data was originally needed.
3984 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
3985 and use passed in obstack.
3986 (libunwind_frame_set_descr): Should no longer get back NULL from
3987 gdbarch_data.
3988 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
3989 type.
3990 * user-regs.c (user_regs_init): Update parameters, and use passed
3991 in obstack.
3992 (user_reg_add): Should no longer get back NULL from gdbarch_data.
3993 (_initialize_user_regs): Register as a pre-init gdbarch data type.
3994
d8cc8af6
TV
39952020-07-06 Tom de Vries <tdevries@suse.de>
3996
3997 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
3998 End-Of-Sequence in lte_is_less_than.
3999 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
4000 "gdb: Don't reorder line table entries too much when sorting".
4001
947f7597
TV
40022020-07-06 Tom de Vries <tdevries@suse.de>
4003
4004 PR tui/26205
4005 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
4006
1e7c1b22
TV
40072020-07-05 Tom de Vries <tdevries@suse.de>
4008
4009 PR build/26187
4010 * inferior.h (struct infcall_suspend_state_deleter): If available, use
4011 std::uncaught_exceptions instead of deprecated
4012 std::uncaught_exception.
4013
a36158ec
SM
40142020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4015
4016 * macroexp.h (macro_stringify): Return
4017 gdb::unique_xmalloc_ptr<char>.
4018 * macroexp.c (macro_stringify): Likewise.
4019 * macrotab.c (fixup_definition): Update.
4020
14d960c8
SM
40212020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4022
4023 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
4024 (lex_one_token): Update.
4025 * macroexp.c (struct macro_buffer) <release>: Return
4026 gdb::unique_xmalloc_ptr<char>.
4027 (macro_stringify): Update.
4028 (macro_expand): Update.
4029 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
4030 * macroexp.h (macro_expand_next): Likewise.
4031
211d5b1c
SM
40322020-07-02 Simon Marchi <simon.marchi@efficios.com>
4033
4034 * macroexp.h (macro_lookup_ftype): Remove.
4035 (macro_expand, macro_expand_once, macro_expand_next): Remove
4036 lookup function parameters, add scope parameter.
4037 * macroexp.c (scan, substitute_args, expand, maybe_expand,
4038 macro_expand, macro_expand_once, macro_expand_next): Likewise.
4039 * macroscope.h (standard_macro_lookup): Change parameter type
4040 to macro_scope.
4041 * macroscope.c (standard_macro_lookup): Likewise.
4042 * c-exp.y (lex_one_token): Update.
4043 * macrocmd.c (macro_expand_command): Likewise.
4044 (macro_expand_once_command): Likewise.
4045
b1a35af2
SM
40462020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4047
4048 * inf-loop.c (inferior_event_handler): Remove client_data param.
4049 * inf-loop.h (inferior_event_handler): Likewise.
4050 * infcmd.c (step_1): Adjust.
4051 * infrun.c (proceed): Adjust.
4052 (fetch_inferior_event): Remove client_data param.
4053 (infrun_async_inferior_event_handler): Adjust.
4054 * infrun.h (fetch_inferior_event): Remove `void *` param.
4055 * linux-nat.c (handle_target_event): Adjust.
4056 * record-btrace.c (record_btrace_handle_async_inferior_event):
4057 Adjust.
4058 * record-full.c (record_full_async_inferior_event_handler):
4059 Adjust.
4060 * remote.c (remote_async_inferior_event_handler): Adjust.
4061
1cdf9e33
TT
40622020-07-01 Tom Tromey <tom@tromey.com>
4063
4064 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
4065 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
4066
32c1e210
TT
40672020-07-01 Tom Tromey <tom@tromey.com>
4068
4069 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
4070 tui_gen_win_info.
4071 (tui_win_info::make_window): Merge with
4072 tui_gen_win_info::make_window.
4073 (tui_win_info::make_visible): Move from tui_gen_win_info.
4074 * tui/tui-win.c (tui_win_info::max_width): Move from
4075 tui_gen_win_info.
4076 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
4077 type.
4078 <window_factory>: Likewise.
4079 * tui/tui-layout.c (tui_win_info::resize): Move from
4080 tui_gen_win_info.
4081 (make_standard_window): Change return type.
4082 (get_locator_window, tui_get_window_by_name): Likewise.
4083 (tui_layout_window::apply): Remove a cast.
4084 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
4085 (struct tui_win_info): Merge with tui_gen_win_info.
4086 (struct tui_gen_win_info): Remove.
4087
a30cb6da
TT
40882020-07-01 Tom Tromey <tom@tromey.com>
4089
4090 * tui/tui-stack.h (struct tui_locator_window): Derive from
4091 tui_win_info.
4092 <do_scroll_horizontal, do_scroll_vertical>: New methods.
4093 <can_box>: New method.
4094
1eb2161f
TT
40952020-07-01 Tom Tromey <tom@tromey.com>
4096
4097 * tui/tui-stack.h (struct tui_locator_window): Remove body.
4098
7134f2eb
TT
40992020-07-01 Tom Tromey <tom@tromey.com>
4100
4101 * tui/tui-regs.c (tui_data_window::display_registers_from)
4102 (tui_data_window::display_registers_from)
4103 (tui_data_window::first_data_item_displayed)
4104 (tui_data_window::delete_data_content_windows): Update.
4105 (tui_data_window::refresh_window, tui_data_window::no_refresh):
4106 Remove.
4107 (tui_data_window::check_register_values): Update.
4108 (tui_data_item_window::rerender): Add parameters. Update.
4109 (tui_data_item_window::refresh_window): Remove.
4110 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
4111 virtual.
4112 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
4113 tui_gen_win_info.
4114 <refresh_window, max_height, min_height>: Remove.
4115 <rerender>: Add parameters.
4116 <x, y, visible>: New members.
4117 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
4118 <m_item_width>: New member.
4119
22b7b041
TT
41202020-07-01 Tom Tromey <tom@tromey.com>
4121
4122 * tui/tui-regs.c (tui_data_window::show_register_group)
4123 (tui_data_window::check_register_values): Update.
4124 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
4125 from item_no.
4126
c9753adb
TT
41272020-07-01 Tom Tromey <tom@tromey.com>
4128
4129 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
4130 useless "if".
4131
9ab26b4a
TT
41322020-07-01 Tom Tromey <tom@tromey.com>
4133
4134 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
4135 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
4136
e555083f
TT
41372020-07-01 Tom Tromey <tom@tromey.com>
4138
4139 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
4140 * tui/tui-winsource.h (enum tui_line_or_address_kind)
4141 (struct tui_line_or_address): Move from tui-data.h.
4142 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
4143 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
4144 (tui_cmd_window, tui_source_window_base, tui_source_window)
4145 (tui_disasm_window): Don't declare.
4146 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
4147 to tui-winsource.h.
4148 (SINGLE_KEY): Move to tui-stack.c.
4149
7a02bab7
TT
41502020-07-01 Tom Tromey <tom@tromey.com>
4151
4152 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
4153 std::string.
4154 * tui/tui-regs.c (class tab_expansion_file): New.
4155 (tab_expansion_file::write): New method.
4156 (tui_register_format): Change return type. Use
4157 tab_expansion_file.
4158 (tui_get_register, tui_data_window::display_registers_from)
4159 (tui_data_item_window::rerender): Update.
4160 * tui/tui-io.h (tui_expand_tabs): Don't declare.
4161 * tui/tui-io.c (tui_expand_tabs): Remove.
4162
ea68593b
TT
41632020-07-01 Tom Tromey <tom@tromey.com>
4164
4165 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
4166
a8caed5d
FS
41672020-07-01 Fangrui Song <maskray@google.com>
4168
4169 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
4170
9cdf9820
AKS
41712020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4172
4173 * dwarf2/read.c (set_die_type): Removed conditions to restrict
4174 forms for DW_AT_associated and DW_AT_allocated attributes,
4175 which is already checked in function attr_to_dynamic_prop.
4176
a1520ad8
TT
41772020-06-30 Tom Tromey <tromey@adacore.com>
4178
4179 * dwarf2/read.c (quirk_rust_enum): Correctly call
4180 alloc_rust_variant for default-less enum.
4181
5ac58899
TT
41822020-06-30 Tom Tromey <tromey@adacore.com>
4183
4184 PR build/26183:
4185 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
4186 gdb::to_string.
4187
19b187a9
SM
41882020-06-29 Simon Marchi <simon.marchi@efficios.com>
4189
4190 * gdbarch.sh (displaced_step_copy_insn): Update doc.
4191 * gdbarch.h: Re-generate.
4192
cd4c4c07
TT
41932020-06-28 Tom Tromey <tom@tromey.com>
4194
4195 * command.h (cmd_types): Remove.
4196 (cmd_type): Don't declare.
4197 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
4198 typedef.
4199 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
4200 * cli/cli-decode.c (cmd_type): Remove.
4201
05779d57
PA
42022020-06-27 Pedro Alves <palves@redhat.com>
4203
4204 * fork-child.c (prefork_hook): Adjust.
4205 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
4206 Delete.
4207 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
4208 * inferior.c (inferior::set_tty, inferior::tty): New methods.
4209 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
4210 Remove declarations.
4211 (struct inferior) <set_tty, tty>: New methods.
4212 (struct inferior) <terminal>: Rename to ...
4213 (struct inferior) <m_terminal>: ... this and make private.
4214 * main.c (captured_main_1): Adjust.
4215 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
4216 (mi_cmd_inferior_tty_show): Adjust.
4217 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
4218 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
4219
1776e3e5
NA
42202020-06-26 Nick Alcock <nick.alcock@oracle.com>
4221
4222 * configure.ac: Add --enable-libctf: handle --disable-static
4223 properly.
4224 * acinclude.m4: sinclude ../config/enable.m4.
4225 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
4226 (LIBCTF): Substitute in.
4227 (CTF_DEPS): New, likewise.
4228 (CLIBS): libctf needs symbols from libbfd: move earlier.
4229 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
4230 flags.
4231 * ctfread.c: Surround in ENABLE_LIBCTF.
4232 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
4233 * configure: Regenerate.
4234 * config.in: Likewise.
4235
58373b80
SM
42362020-06-25 Simon Marchi <simon.marchi@efficios.com>
4237
4238 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
4239
277474ee
SM
42402020-06-25 Simon Marchi <simon.marchi@efficios.com>
4241
4242 * inferior.h (struct inferior) <terminal>: Change type to
4243 gdb::unique_xmalloc_ptr<char>.
4244 * inferior.c (inferior::~inferior): Don't free inf->terminal.
4245 * infcmd.c (set_inferior_io_terminal): Don't free terminal
4246 field, adjust to unique pointer.
4247 (get_inferior_io_terminal): Adjust to unique pointer.
4248
6d74da72
AB
42492020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4250
4251 * riscv-tdep.c (riscv_print_registers_info): Loop over all
4252 registers, not just the known core set of registers.
4253
2e52d038
AB
42542020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4255
4256 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
4257 fflags, frm, and fcsr registers.
4258 (riscv_register_reggroup_p): Remove unknown CSRs from save and
4259 restore groups.
4260 (riscv_tdesc_unknown_reg): New function.
4261 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
4262 tdesc_use_registers.
4263 * riscv-tdep.h (struct gdbarch_tdep): Add
4264 unknown_csrs_first_regnum, unknown_csrs_count,
4265 duplicate_fflags_regnum, duplicate_frm_regnum, and
4266 duplicate_fcsr_regnum fields.
4267
be64fd07
AB
42682020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4269
4270 * target-descriptions.c (tdesc_use_registers): Add new parameter a
4271 callback, use the callback (when not null) to help number unknown
4272 registers.
4273 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
4274 (tdesc_use_registers): Add extra parameter to declaration.
4275
3b9fce96
AB
42762020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4277
4278 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
4279 in the file.
4280 (class riscv_pending_register_alias): Likewise.
4281 (riscv_register_feature::register_info): Change 'required_p' field
4282 to 'required', and change its type. Add 'check' member function.
4283 (riscv_register_feature::register_info::check): Define new member
4284 function.
4285 (riscv_xreg_feature): Change initialisation of 'required' field.
4286 (riscv_freg_feature): Likewise.
4287 (riscv_virtual_feature): Likewise.
4288 (riscv_csr_feature): Likewise.
4289 (riscv_check_tdesc_feature): Take extra parameter, the csr
4290 tdesc_feature, rewrite the function to use the new
4291 riscv_register_feature::register_info::check function.
4292 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
4293
865bad26
AB
42942020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4295
4296 * features/Makefile: Remove all references to the deleted files
4297 below.
4298 * features/riscv/32bit-csr.c: Deleted.
4299 * features/riscv/32bit-csr.xml: Deleted.
4300 * features/riscv/64bit-csr.c: Deleted.
4301 * features/riscv/64bit-csr.xml: Deleted.
4302 * features/riscv/rebuild-csr-xml.sh: Deleted.
4303
ed69cbc8
AB
43042020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4305
4306 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
4307 whitespace error for declaration of names member variable.
4308 (struct riscv_register_feature): Add new prefer_first_name member
4309 variable, and fix whitespace error in declaration of registers.
4310 (riscv_xreg_feature): Initialize prefer_first_name field.
4311 (riscv_freg_feature): Likewise.
4312 (riscv_virtual_feature): Likewise.
4313 (riscv_csr_feature): Likewise.
4314 (riscv_register_name): Expand on comments. Remove register name
4315 modifications for CSR and virtual registers.
4316
4445e8f5
AB
43172020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4318
4319 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
4320 errors.
4321
767a879e
AB
43222020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4323
4324 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
4325 riscv-opc.h.
4326 (class riscv_pending_register_alias): New class.
4327 (riscv_check_tdesc_feature): Take vector of pending aliases and
4328 populate it as appropriate.
4329 (riscv_setup_register_aliases): Delete.
4330 (riscv_gdbarch_init): Create vector of pending aliases and pass it
4331 to riscv_check_tdesc_feature in all cases. Use the vector to
4332 create the register aliases.
4333
bb6e55f3
RO
43342020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4335
4336 * sol2-tdep.c (sol2_static_transform_name): Remove.
4337 (sol2_init_abi): Don't register it.
4338 * gdbarch.sh (static_transform_name): Remove.
4339 * gdbarch.c, gdbarch.h: Regenerate.
4340
4341 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
4342 gdbarch_static_transform_name.
4343 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
4344 * stabsread.c (define_symbol) <'X'>: Remove.
4345 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
4346 handling.
4347 <'V'>: Likewise.
4348 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
4349 <'S'>: Remove call to gdbarch_static_transform_name.
4350
c6d36836
RO
43512020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4352
4353 * procfs.c (procfs_pre_trace): New function.
4354 (procfs_target::create_inferior): Pass it to fork_inferior.
4355
a7e6196b
RO
43562020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4357
4358 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
4359 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
4360 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
4361 sol2-tdep.o, sparc-sol2-tdep.o.
4362 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
4363 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
4364 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
4365 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
4366
d412e696
RO
43672020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4368
4369 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
4370 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
4371 Call sol2_init_abi.
4372 Remove calls to set_gdbarch_skip_solib_resolver,
4373 set_gdbarch_core_pid_to_str.
4374 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
4375 (i386_sol2_static_transform_name): Remove.
4376 (i386_sol2_init_abi): Call sol2_init_abi.
4377 Remove calls to set_gdbarch_sofun_address_maybe_missing,
4378 set_gdbarch_static_transform_name,
4379 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
4380 Use sol2_sigtramp_p.
4381 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
4382 (sol2_sigtramp_p): New function.
4383 (sol2_static_transform_name): New function.
4384 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
4385 (sol2_init_abi): New function.
4386 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
4387 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
4388 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
4389 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
4390 (sparc_sol2_static_transform_name): Remove.
4391 (sparc32_sol2_init_abi): Call sol2_init_abi.
4392 Remove calls to set_gdbarch_sofun_address_maybe_missing,
4393 set_gdbarch_static_transform_name,
4394 set_gdbarch_skip_solib_resolver,
4395 set_gdbarch_core_pid_to_str.
4396 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
4397 (sparc_sol2_static_transform_name): Remove
4398 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
4399 call sol2_sigtramp_p.
4400 (sparc64_sol2_init_abi): Call sol2_init_abi.
4401 Remove calls to set_gdbarch_sofun_address_maybe_missing,
4402 set_gdbarch_static_transform_name,
4403 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
4404
a8654e7d
PW
44052020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4406
4407 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
4408 * exec.c (validate_exec_file): If from_tty, set both
4409 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
4410 * symfile.c (symbol_file_add_with_addrs): if always_confirm
4411 and from_tty, unconditionally ask a confirmation.
4412
caa7fd04
AB
44132020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4414
4415 * target-descriptions.c (tdesc_architecture_name): Protect against
4416 NULL pointer dereference.
4417 (maint_print_xml_tdesc_cmd): New function.
4418 (_initialize_target_descriptions): Register new 'maint print
4419 xml-tdesc' command and give it the filename completer.
4420 * NEWS: Mention new 'maint print xml-tdesc' command.
4421
fbf42f4e
AB
44222020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4423
4424 * target-descriptions.c (class tdesc_compatible_info): New class.
4425 (struct target_desc): Change type of compatible vector.
4426 (tdesc_compatible_p): Update for change in type of
4427 target_desc::compatible.
4428 (tdesc_compatible_info_list): New function.
4429 (tdesc_compatible_info_arch_name): New function.
4430 (tdesc_add_compatible): Update for change in type of
4431 target_desc::compatible.
4432 (print_c_tdesc::visit_pre): Likewise.
4433
20821f4e
AB
44342020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4435
4436 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
4437 whitespace to underscore.
4438 (maint_print_c_tdesc_cmd): Use fake filename for target
4439 descriptions that came from the target.
4440 (_initialize_target_descriptions): Add filename command completion
4441 for 'maint print c-tdesc'.
4442
1fb5ee62
SM
44432020-06-23 Simon Marchi <simon.marchi@efficios.com>
4444
4445 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
4446 lines.
4447
fc3ecb3e
SM
44482020-06-23 Simon Marchi <simon.marchi@efficios.com>
4449
4450 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
4451 lines.
4452 (dwarf2_find_location_expression): Likewise.
4453 (call_site_parameter_matches): Likewise.
4454 (dwarf2_compile_expr_to_ax): Likewise.
4455 (disassemble_dwarf_expression): Likewise.
4456 (loclist_describe_location): Likewise.
4457
236ef034
PA
44582020-06-23 Pedro Alves <palves@redhat.com>
4459
4460 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
4461 progspace-and-thread.h. Include scoped-mock-context.h instead.
4462 (register_to_value_test): Use scoped_mock_context.
4463 * regcache.c: Include "scoped-mock-context.h".
4464 (cooked_read_test): Don't error out if a target is already pushed.
4465 Use scoped_mock_context. Adjust.
4466 * scoped-mock-context.h: New file.
4467
39e7ecca
AB
44682020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4469
4470 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
4471 initializer.
4472 (ada_language::is_string_type_p): New member function.
4473 * c-lang.c (c_language_data): Delete la_is_string_type_p
4474 initializer.
4475 (cplus_language_data): Likewise.
4476 (asm_language_data): Likewise.
4477 (minimal_language_data): Likewise.
4478 * d-lang.c (d_language_data): Likewise.
4479 * f-lang.c (f_is_string_type_p): Delete function, implementation
4480 moved to f_language::is_string_type_p.
4481 (f_language_data): Delete la_is_string_type_p initializer.
4482 (f_language::is_string_type_p): New member function,
4483 implementation from f_is_string_type_p.
4484 * go-lang.c (go_is_string_type_p): Delete function, implementation
4485 moved to go_language::is_string_type_p.
4486 (go_language_data): Delete la_is_string_type_p initializer.
4487 (go_language::is_string_type_p): New member function,
4488 implementation from go_is_string_type_p.
4489 * language.c (language_defn::is_string_type_p): Define new member
4490 function.
4491 (default_is_string_type_p): Make static, add comment copied from
4492 header file.
4493 (unknown_language_data): Delete la_is_string_type_p initializer.
4494 (unknown_language::is_string_type_p): New member function.
4495 (auto_language_data): Delete la_is_string_type_p initializer.
4496 (auto_language::is_string_type_p): New member function.
4497 * language.h (language_data): Delete la_is_string_type_p field.
4498 (language_defn::is_string_type_p): Declare new function.
4499 (default_is_string_type_p): Delete desclaration, move comment to
4500 definition.
4501 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
4502 moved to m2_language::is_string_type_p.
4503 (m2_language_data): Delete la_is_string_type_p initializer.
4504 (m2_language::is_string_type_p): New member function,
4505 implementation from m2_is_string_type_p.
4506 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
4507 initializer.
4508 * opencl-lang.c (opencl_language_data): Likewise.
4509 * p-lang.c (pascal_is_string_type_p): Delete function,
4510 implementation moved to pascal_language::is_string_type_p.
4511 (pascal_language_data): Delete la_is_string_type_p initializer.
4512 (pascal_language::is_string_type_p): New member function,
4513 implementation from pascal_is_string_type_p.
4514 * rust-lang.c (rust_is_string_type_p): Delete function,
4515 implementation moved to rust_language::is_string_type_p.
4516 (rust_language_data): Delete la_is_string_type_p initializer.
4517 (rust_language::is_string_type_p): New member function,
4518 implementation from rust_is_string_type_p.
4519 * valprint.c (val_print_scalar_or_string_type_p): Update call to
4520 is_string_type_p.
4521
4ffc13fb
AB
45222020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4523
4524 * ada-lang.c (ada_language_data): Delete la_print_typedef
4525 initializer.
4526 (ada_language::print_typedef): New member function.
4527 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
4528 (cplus_language_data): Likewise.
4529 (asm_language_data): Likewise.
4530 (minimal_language_data): Likewise.
4531 * d-lang.c (d_language_data): Likewise.
4532 * f-lang.c (f_language_data): Likewise.
4533 (f_language::print_typedef): New member function.
4534 * go-lang.c (go_language_data): Delete la_print_typedef
4535 initializer.
4536 * language.c (language_defn::print_typedef): Define member
4537 function.
4538 (unknown_language_data): Delete la_print_typedef initializer.
4539 (unknown_language::print_typedef): New member function.
4540 (auto_language_data): Delete la_print_typedef initializer.
4541 (auto_language::print_typedef): New member function.
4542 * language.h (language_data): Delete la_print_typedef field.
4543 (language_defn::print_typedef): Declare new member function.
4544 (LA_PRINT_TYPEDEF): Update call to print_typedef.
4545 (default_print_typedef): Delete declaration.
4546 * m2-lang.c (m2_language_data): Delete la_print_typedef
4547 initializer.
4548 (m2_language::print_typedef): New member function.
4549 * objc-lang.c (objc_language_data): Delete la_print_typedef
4550 initializer.
4551 * opencl-lang.c (opencl_language_data): Likewise.
4552 * p-lang.c (pascal_language_data): Likewise.
4553 (pascal_language::print_typedef): New member function.
4554 * rust-lang.c (rust_print_typedef): Delete function,
4555 implementation moved to rust_language::print_typedef.
4556 (rust_language): Delete la_print_typedef initializer.
4557 (rust_language::print_typedef): New member function,
4558 implementation from rust_print_typedef.
4559 * typeprint.c (default_print_typedef): Delete.
4560
d711ee67
AB
45612020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4562
4563 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
4564 (ada_language::printstr): New member function.
4565 * c-lang.c (c_language_data): Delete la_printstr initializer.
4566 (cplus_language_data): Likewise.
4567 (asm_language_data): Likewise.
4568 (minimal_language_data): Likewise.
4569 * d-lang.c (d_language_data): Likewise.
4570 * f-lang.c (f_printstr): Rename to f_language::printstr.
4571 (f_language_data): Delete la_printstr initializer.
4572 (f_language::printstr): New member function, implementation from
4573 f_printstr.
4574 * go-lang.c (go_language_data): Delete la_printstr initializer.
4575 * language.c (language_defn::printstr): Define new member
4576 function.
4577 (unk_lang_printstr): Delete.
4578 (unknown_language_data): Delete la_printstr initializer.
4579 (unknown_language::printstr): New member function.
4580 (auto_language_data): Delete la_printstr initializer.
4581 (auto_language::printstr): New member function.
4582 * language.h (language_data): Delete la_printstr field.
4583 (language_defn::printstr): Declare new member function.
4584 (LA_PRINT_STRING): Update call to printstr.
4585 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
4586 (m2_language_data): Delete la_printstr initializer.
4587 (m2_language::printstr): New member function, implementation from
4588 m2_printstr.
4589 * objc-lang.c (objc_language_data): Delete la_printstr
4590 initializer.
4591 * opencl-lang.c (opencl_language_data): Likewise.
4592 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
4593 (pascal_language_data): Delete la_printstr initializer.
4594 (pascal_language::printstr): New member function, implementation
4595 from pascal_printstr.
4596 * p-lang.h (pascal_printstr): Delete declaration.
4597 * rust-lang.c (rust_printstr): Update header comment.
4598 (rust_language_data): Delete la_printstr initializer.
4599 (rust_language::printstr): New member function.
4600
52b50f2c
AB
46012020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4602
4603 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
4604 (ada_language::printchar): New member function.
4605 * c-lang.c (c_language_data): Delete la_printchar initializer.
4606 (cplus_language_data): Likewise.
4607 (asm_language_data): Likewise.
4608 (minimal_language_data): Likewise.
4609 * d-lang.c (d_language_data): Likewise.
4610 * f-lang.c (f_printchar): Rename to f_language::printchar.
4611 (f_language_data): Delete la_printchar initializer.
4612 (f_language::printchar): New member function, implementation from
4613 f_printchar.
4614 * go-lang.c (go_language_data): Delete la_printchar initializer.
4615 * language.c (unk_lang_printchar): Delete.
4616 (language_defn::printchar): Define new member function.
4617 (unknown_language_data): Delete la_printchar initializer.
4618 (unknown_language::printchar): New member function.
4619 (auto_language_data): Delete la_printchar initializer.
4620 (auto_language::printchar): New member function.
4621 * language.h (language_data): Delete la_printchar field.
4622 (language_defn::printchar): Declare new member function.
4623 (LA_PRINT_CHAR): Update call to printchar.
4624 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
4625 (m2_language::printchar): New member function.
4626 * objc-lang.c (objc_language_data): Delete la_printchar
4627 initializer.
4628 * opencl-lang.c (opencl_language_data): Likewise.
4629 * p-lang.c (pascal_language_data): Delete la_printchar
4630 initializer.
4631 (pascal_language::printchar): New member function.
4632 * rust-lang.c (rust_printchar): Rename to
4633 rust_language::printchar.
4634 (rust_language_data): Delete la_printchar initializer.
4635 (rust_language::printchar): New member function, implementation
4636 from rust_printchar.
4637
ec8cec5b
AB
46382020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4639
4640 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
4641 (ada_language_data): Delete la_emitchar initializer.
4642 (ada_language::emitchar): New member function, implementation from
4643 emit_char.
4644 * c-lang.c (c_language_data): Delete la_emitchar initializer.
4645 (cplus_language_data): Likewise.
4646 (asm_language_data): Likewise.
4647 (minimal_language_data): Likewise.
4648 * d-lang.c (d_language_data): Likewise.
4649 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
4650 (f_language_data): Delete la_emitchar initializer.
4651 (f_language::emitchar): New member function, implementation from
4652 f_emit_char.
4653 * go-lang.c (go_language_data): Delete la_emitchar initializer.
4654 * language.c (unk_lang_emit_char): Delete.
4655 (language_defn::emitchar): New member function definition.
4656 (unknown_language_data): Delete la_emitchar initializer.
4657 (unknown_language::emitchar): New member function.
4658 (auto_language_data): Delete la_emitchar initializer.
4659 (auto_language::emitchar): New member function.
4660 * language.h (language_data): Delete la_emitchar field.
4661 (language_defn::emitchar): New member field declaration.
4662 (LA_EMIT_CHAR): Update call to emitchar.
4663 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
4664 (m2_language_data): Delete la_emitchar initializer.
4665 (m2_language::emitchar): New member function, implementation from
4666 m2_emit_char.
4667 * objc-lang.c (objc_language_data): Delete la_emitchar
4668 initializer.
4669 * opencl-lang.c (opencl_language_data): Likewise.
4670 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
4671 (pascal_language_data): Delete la_emitchar initializer.
4672 (pascal_language::emitchar): New member function, implementation
4673 from pascal_emit_char.
4674 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
4675 (rust_language_data): Delete la_emitchar initializer.
4676 (rust_language::emitchar): New member function, implementation
4677 from rust_emitchar.
4678
1bf9c363
AB
46792020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4680
4681 * ada-lang.c (resolve): Rename to ada_language::post_parser.
4682 (ada_language_data): Delete la_post_parser initializer.
4683 (ada_language::post_parser): New member function.
4684 * c-lang.c (c_language_data): Delete la_post_parser initializer.
4685 (cplus_language_data): Likewise.
4686 (asm_language_data): Likewise.
4687 (minimal_language_data): Likewise.
4688 * d-lang.c (d_language_data): Likewise.
4689 * f-lang.c (f_language_data): Likewise.
4690 * go-lang.c (go_language_data): Likewise.
4691 * language.c (unknown_language_data): Likewise.
4692 (auto_language_data): Likewise.
4693 * language.h (language_data): Delete la_post_parser field.
4694 (language_defn::post_parser): New member function.
4695 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
4696 * objc-lang.c (objc_language_data): Likewise.
4697 * opencl-lang.c (opencl_language_data): Likewise.
4698 * p-lang.c (pascal_language_data): Likewise.
4699 * parse.c (parse_exp_in_context): Update call to post_parser.
4700 (null_post_parser): Delete definition.
4701 * parser-defs.h (null_post_parser): Delete declaration.
4702 * rust-lang.c (rust_language_data): Delete la_post_parser
4703 initializer.
4704
87afa652
AB
47052020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4706
4707 * ada-lang.c (parse): Rename to ada_language::parser.
4708 (ada_language_data): Delete la_parser initializer.
4709 (ada_language::parser): New member function, implementation from
4710 parse.
4711 * c-lang.c (c_language_data): Delete la_parser initializer.
4712 (cplus_language_data): Likewise.
4713 (asm_language_data): Likewise.
4714 (minimal_language_data): Likewise.
4715 * d-lang.c (d_language_data): Likewise.
4716 (d_language::parser): New member function.
4717 * f-lang.c (f_language_data): Delete la_parser initializer.
4718 (f_language::parser): New member function.
4719 * go-lang.c (go_language_data): Delete la_parser initializer.
4720 (go_language::parser): New member function.
4721 * language.c (unk_lang_parser): Delete.
4722 (language_defn::parser): Define new member function.
4723 (unknown_language_data): Delete la_parser initializer.
4724 (unknown_language::parser): New member function.
4725 (auto_language_data): Delete la_parser initializer.
4726 (auto_language::parser): New member function.
4727 * language.h (language_data): Delete la_parser field.
4728 (language_defn::parser): Declare new member function.
4729 * m2-lang.c (m2_language_data): Delete la_parser initializer.
4730 (m2_language::parser): New member function.
4731 * objc-lang.c (objc_language_data): Delete la_parser initializer.
4732 * opencl-lang.c (opencl_language_data): Likewise.
4733 * p-lang.c (pascal_language_data): Likewise.
4734 (pascal_language::parser): New member function.
4735 * parse.c (parse_exp_in_context): Update call to parser.
4736 * rust-lang.c (rust_language_data): Delete la_parser initializer.
4737 (rust_language::parser): New member function.
4738
37825800
AB
47392020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4740
4741 * top.c (print_gdb_configuration): Print --with-python-libdir
4742 configuration value.
4743
5b860c93
PW
47442020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4745
4746 * NEWS: Mention change to the alias command.
4747
cf00cd6f
PW
47482020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4749
4750 * cli/cli-cmds.c (lookup_cmd_for_default_args)
4751 (alias_command_completer)
4752 (make_alias_options_def_group): New functions.
4753 (alias_opts, alias_option_defs): New struct and array.
4754 (alias_usage_error): Update usage.
4755 (alias_command): Handles optional DEFAULT-ARGS... arguments.
4756 Use option framework.
4757 (_initialize_cli_cmds): Update alias command help.
4758 Update aliases command help.
4759 (show_user):
4760 Add NULL for new default_args lookup_cmd argument.
4761 (valid_command_p): Rename to validate_aliased_command.
4762 Add NULL for new default_args lookup_cmd argument. Verify that the
4763 aliased_command has no default args.
4764 * cli/cli-decode.c (help_cmd): Show aliases definitions.
4765 (lookup_cmd_1, lookup_cmd): New argument default_args.
4766 (add_alias_cmd):
4767 Add NULL for new default_args lookup_cmd argument.
4768 (print_help_for_command): Show default args under the layout
4769 alias some_alias = some_aliased_cmd some_alias_default_arg.
4770 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
4771 xfree default_args in destructor.
4772 * cli/cli-script.c (process_next_line, do_define_command):
4773 Add NULL for new default_args lookup_cmd argument.
4774 * command.h: Declare new default_args argument in lookup_cmd
4775 and lookup_cmd_1.
4776 * completer.c (complete_line_internal_1):
4777 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4778 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
4779 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
4780 Likewise.
4781 * infcmd.c (_initialize_infcmd): Likewise.
4782 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
4783 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
4784 * python/py-param.c (add_setshow_generic): Likewise.
4785 * remote.c (_initialize_remote): Likewise.
4786 * top.c (execute_command): Prepend default_args if command has some.
4787 (set_verbose):
4788 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4789 * tracepoint.c (validate_actionline, encode_actions_1):
4790 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4791
bd920864
TBA
47922020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4793
4794 * jit.c (jit_read_descriptor): Use bool as the return type.
4795 (jit_breakpoint_re_set_internal): Use bool as the return type.
4796 Invert the return value logic; return true if the jit breakpoint
4797 has been successfully initialized.
4798 (jit_inferior_init): Update the call to
4799 jit_breakpoint_re_set_internal.
4800
f8098322
PA
48012020-06-22 Pedro Alves <palves@redhat.com>
4802
4803 PR gdb/25939
4804 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
4805 Use the current inferior instead. Don't return
4806 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
4807 wait again.
4808 * sol-thread.c (sol_thread_target::wait): Don't reference
4809 inferior_ptid.
4810 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
4811 (sol_update_thread_list_callback): Use the current inferior's pid
4812 instead of inferior_ptid.
4813
196535a6
RO
48142020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4815
4816 * procfs.c: Cleanup many comments.
4817
4818 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
4819 (AFTER_WATCHFLAG): Replace by value.
4820
4821 (MAIN_PROC_NAME_FORMAT): Inline ...
4822 (create_procinfo): ... here.
4823
4824 (procfs_debug_inferior): Remove SYS_exec handling.
4825 (syscall_is_exec): Likewise.
4826 (procfs_set_exec_trap): Likewise.
4827
4828 (syscall_is_lwp_exit): Inline in callers.
4829 (syscall_is_exit): Likewise.
4830 (syscall_is_exec): Likewise.
4831 (syscall_is_lwp_create): Likewise.
4832
4833 (invalidate_cache): Remove #if 0 code.
4834
4835 (make_signal_thread_runnable): Remove.
4836 (procfs_target::resume): Remove #if 0 code.
4837
cf6f3e86
RO
48382020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4839
4840 PR gdb/25939
4841 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
4842 call ...
4843 (procfs_target::create_inferior): ... here.
4844
48e9cc84
PW
48452020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4846
4847 * exec.c (validate_exec_file): Ensure the build-id is up to
4848 date by calling reopen_exec_file (that checks file timestamp
4849 to decide to re-read the file).
4850
3922b302
PA
48512020-06-18 Pedro Alves <palves@redhat.com>
4852
4853 PR gdb/25412
4854 * gdbthread.h (delete_thread, delete_thread_silent)
4855 (find_thread_ptid): Update comments.
4856 * thread.c (current_thread_): New global.
4857 (is_current_thread): Move higher, and reimplement.
4858 (inferior_thread): Reimplement.
4859 (set_thread_exited): Use bool. Add assertions.
4860 (add_thread_silent): Simplify thread-reuse handling by always
4861 calling delete_thread.
4862 (delete_thread): Remove intro comment.
4863 (find_thread_ptid): Skip exited threads.
4864 (switch_to_thread_no_regs): Write to current_thread_.
4865 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
4866 INFERIOR_PTID. Clear current_thread_.
4867
6dbdab44
PA
48682020-06-18 Pedro Alves <palves@redhat.com>
4869
4870 * aix-thread.c (pd_update): Use switch_to_thread.
4871
2da4b788
PA
48722020-06-18 Pedro Alves <palves@redhat.com>
4873
4874 * ravenscar-thread.c (ravenscar_thread_target): Update.
4875 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
4876 (ravenscar_thread_target::add_active_thread): ... this. Don't
4877 set m_base_ptid here. Update to avoid referencing inferior_ptid.
4878 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
4879
50838d1b
PA
48802020-06-18 Pedro Alves <palves@redhat.com>
4881
4882 * nat/windows-nat.c (current_windows_thread): Remove.
4883 * nat/windows-nat.h (current_windows_thread): Remove.
4884 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
4885 Adjust.
4886 (display_selectors): Adjust to fetch the current
4887 windows_thread_info based on inferior_ptid.
4888 (fake_create_process): No longer write to current_windows_thread.
4889 (windows_nat_target::get_windows_debug_event):
4890 Don't set inferior_ptid or current_windows_thread.
4891 (windows_nat_target::wait): Adjust to not rely on
4892 current_windows_thread.
4893 (do_initial_windows_stuff): Now a method of windows_nat_target.
4894 Switch to the last_ptid thread.
4895 (windows_nat_target::attach): Adjust.
4896 (windows_nat_target::detach): Use switch_to_no_thread instead of
4897 writing to inferior_ptid directly.
4898 (windows_nat_target::create_inferior): Adjust.
4899
31ce04e9
PA
49002020-06-18 Pedro Alves <palves@redhat.com>
4901
4902 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
4903
1ee1a363
PA
49042020-06-18 Pedro Alves <palves@redhat.com>
4905
4906 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
4907 after creating it, instead of writing to inferior_ptid. Don't
4908 write to inferior_ptid.
4909
6d350754
PA
49102020-06-18 Pedro Alves <palves@redhat.com>
4911
4912 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
4913
5d971d48
PA
49142020-06-18 Pedro Alves <palves@redhat.com>
4915
4916 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
4917 it, instead of writing to inferior_ptid.
4918
86e57d1b
PA
49192020-06-18 Pedro Alves <palves@redhat.com>
4920
4921 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
4922 to inferior_ptid.
4923
f2e1c129
PA
49242020-06-18 Pedro Alves <palves@redhat.com>
4925
4926 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
4927 instead of writing to inferior_ptid directly.
4928
60db1b85
PA
49292020-06-18 Pedro Alves <palves@redhat.com>
4930
4931 * corelow.c (core_target::close): Use switch_to_no_thread instead
4932 of writing to inferior_ptid directly.
4933 (add_to_thread_list, core_target_open): Use switch_to_thread
4934 instead of writing to inferior_ptid directly.
4935
fe7d6a8d
PA
49362020-06-18 Pedro Alves <palves@redhat.com>
4937
4938 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
4939 inferior_ptid.
4940 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
4941 inferior_ptid.
4942 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
4943 inferior_ptid directly.
4944 (darwin_nat_target::init_thread_list): Switch to thread, instead
4945 of writing to inferior_ptid.
4946 (darwin_nat_target::attach): Don't write to inferior_ptid.
4947 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
4948
975f8708
PA
49492020-06-18 Pedro Alves <palves@redhat.com>
4950
4951 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
4952 thread.
4953 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
4954 Instead use switch_to_thread.
4955 (gnu_nat_target::detach): Use switch_to_no_thread
4956 instead of writing to inferior_ptid directly. Used passed-in
4957 inferior instead of looking up the inferior by pid.
4958
1a204730
PA
49592020-06-18 Pedro Alves <palves@redhat.com>
4960
4961 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
4962 inferior_ptid.
4963
ebe84f23
PA
49642020-06-18 Pedro Alves <palves@redhat.com>
4965
4966 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
4967 inferior_ptid.
4968 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
4969 thread.
4970 (nto_procfs_target::detach): Avoid referencing
4971 inferior_ptid. Use switch_to_no_thread instead of writing to
4972 inferior_ptid directly.
4973 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
4974 instead of writing to inferior_ptid directly.
4975 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
4976 to thread.
4977
191f02e5
PA
49782020-06-18 Pedro Alves <palves@redhat.com>
4979
4980 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
4981 after creating it, instead of writing to inferior_ptid.
4982 (gdbsim_target_open): Use switch_to_no_thread instead of writing
4983 to inferior_ptid directly.
4984 (gdbsim_target::wait): Don't write to inferior_ptid.
4985
0ac55310
PA
49862020-06-18 Pedro Alves <palves@redhat.com>
4987
4988 * remote.c (remote_target::remote_notice_new_inferior): Use
4989 switch_to_thread instead of writing to inferior_ptid directly.
4990 (remote_target::add_current_inferior_and_thread): Use
4991 switch_to_no_thread instead of writing to inferior_ptid directly.
4992 (extended_remote_target::attach): Use switch_to_inferior_no_thread
4993 and switch_to_thread instead of using set_current_inferior or
4994 writing to inferior_ptid directly.
4995
5233f39b
PA
49962020-06-18 Pedro Alves <palves@redhat.com>
4997
4998 * tracectf.c (ctf_target_open): Switch to added thread instead of
4999 writing to inferior_ptid directly.
5000 (ctf_target::close): Use switch_to_no_thread instead of writing to
5001 inferior_ptid directly.
5002
087e161b
PA
50032020-06-18 Pedro Alves <palves@redhat.com>
5004
5005 * tracefile-tfile.c (tfile_target_open): Don't write to
5006 inferior_ptid directly, instead switch to added thread.
5007 (tfile_target::close): Use switch_to_no_thread instead of writing
5008 to inferior_ptid directly.
5009
7fb43e53
PA
50102020-06-18 Pedro Alves <palves@redhat.com>
5011
5012 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
5013 (procfs_target::detach): Use switch_to_no_thread
5014 instead of writing to inferior_ptid directly.
5015 (do_attach): Change return type to void. Switch to the added
5016 thread.
5017 (procfs_target::create_inferior): Switch to the added thread.
5018 (procfs_do_thread_registers): Don't write to inferior_ptid.
5019
18493a00
PA
50202020-06-18 Pedro Alves <palves@redhat.com>
5021
5022 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
5023 of writing to inferior_ptid.
5024 (scoped_restore_exited_inferior): Delete.
5025 (handle_vfork_child_exec_or_exit): Simplify using
5026 scoped_restore_current_pspace_and_thread. Use switch_to_thread
5027 instead of writing to inferior_ptid.
5028 (THREAD_STOPPED_BY): Delete.
5029 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
5030 (thread_stopped_by_hw_breakpoint): Delete.
5031 (save_waitstatus): Use
5032 scoped_restore_current_thread+switch_to_thread, and call
5033 target_stopped_by_watchpoint instead of
5034 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
5035 instead of thread_stopped_by_sw_breakpoint, and
5036 target_stopped_by_hw_breakpoint instead of
5037 thread_stopped_by_hw_breakpoint.
5038 (handle_inferior_event)
5039 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
5040 inferior_ptid directly, nor
5041 set_current_inferior/set_current_program_space. Use
5042 switch_to_thread / switch_to_inferior_no_thread instead.
5043
a0776b13
PA
50442020-06-18 Pedro Alves <palves@redhat.com>
5045
5046 * target.c (generic_mourn_inferior): Use switch_to_no_thread
5047 instead of writing to inferior_ptid.
5048
6155c136
PA
50492020-06-18 Pedro Alves <palves@redhat.com>
5050
5051 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
5052 added thread.
5053 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
5054 to the added thread.
5055 (inf_ptrace_target::detach_success): Use switch_to_no_thread
5056 instead of writing to inferior_ptid.
5057
c5316fc6
PA
50582020-06-18 Pedro Alves <palves@redhat.com>
5059
5060 * gdbarch-selftests.c: Include "progspace-and-thread.h".
5061 (register_to_value_test): Mock a program_space too. Heap-allocate
5062 the address space. Don't write to inferior_ptid. Use
5063 switch_to_thread instead.
5064
8df01799
PA
50652020-06-18 Pedro Alves <palves@redhat.com>
5066
5067 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
5068 Delete.
5069 (find_signalled_thread()): New, factored out from
5070 linux_make_corefile_notes and adjusted to handle exited threads.
5071 (linux_make_corefile_notes): Adjust to use the new
5072 find_signalled_thread.
5073
41792d68
PA
50742020-06-18 Pedro Alves <palves@redhat.com>
5075
5076 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
5077 of saving/restoring inferior_ptid.
5078
612f258a
TT
50792020-06-17 Tom Tromey <tom@tromey.com>
5080
5081 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
5082 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
5083 declare.
5084 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
5085
efb763a5
SM
50862020-06-15 Simon Marchi <simon.marchi@efficios.com>
5087
5088 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
5089 of partial symtabs.
5090
2951f6c0
SM
50912020-06-17 Simon Marchi <simon.marchi@efficios.com>
5092
5093 * regformats/reg-arm.dat: Remove.
5094 * regformats/reg-bfin.dat: Remove.
5095 * regformats/reg-cris.dat: Remove.
5096 * regformats/reg-crisv32.dat: Remove.
5097 * regformats/reg-m32r.dat: Remove.
5098 * regformats/reg-tilegx.dat: Remove.
5099 * regformats/reg-tilegx32.dat: Remove.
5100
7d458ea5
SM
51012020-06-17 Simon Marchi <simon.marchi@efficios.com>
5102
5103 * features/Makefile (WHICH): Remove arm files.
5104 * regformats/arm/arm-with-iwmmxt.dat: Remove.
5105 * regformats/arm/arm-with-neon.dat: Remove.
5106 * regformats/arm/arm-with-vfpv2.dat: Remove.
5107 * regformats/arm/arm-with-vfpv3.dat: Remove.
5108
3af96c0d
SM
51092020-06-17 Simon Marchi <simon.marchi@efficios.com>
5110
5111 * features/Makefile (XMLTOC): Remove rx.xml.
5112
b25e22fd
PA
51132020-06-17 Pedro Alves <palves@redhat.com>
5114
5115 * gdbthread.h (thread_control_state) <trap_expected> Update
5116 comments.
5117
a78a19b1
AB
51182020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5119
5120 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
5121 ada_language::lookup_symbol_nonlocal.
5122 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
5123 (ada_language::lookup_symbol_nonlocal): New member function,
5124 implementation from ada_lookup_symbol_nonlocal.
5125 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
5126 initializer.
5127 (cplus_language_data): Delete la_lookup_symbol_nonlocal
5128 initializer.
5129 (cplus_language::lookup_symbol_nonlocal): New member function.
5130 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
5131 (minimal_language_data) Likewise.
5132 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
5133 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
5134 initializer.
5135 (d_language::lookup_symbol_nonlocal): New member function.
5136 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
5137 initializer.
5138 (f_language::lookup_symbol_nonlocal): New member function.
5139 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
5140 initializer.
5141 * language.c (unknown_language_data): Likewise.
5142 (auto_language_data): Likewise.
5143 * language.h (language_data): Delete la_lookup_symbol_nonlocal
5144 field.
5145 (language_defn::lookup_symbol_nonlocal): New member function.
5146 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
5147 initializer.
5148 * objc-lang.c (objc_language_data): Likewise.
5149 * opencl-lang.c (opencl_language_data): Likewise.
5150 * p-lang.c (pascal_language_data): Likewise.
5151 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
5152 rust_language::lookup_symbol_nonlocal.
5153 (rust_language_data): Delete la_lookup_symbol_nonlocal
5154 initializer.
5155 (rust_language::lookup_symbol_nonlocal): New member function,
5156 implementation from rust_lookup_symbol_nonlocal.
5157 * symtab.c (lookup_symbol_aux): Update call to
5158 lookup_symbol_nonlocal.
5159 (basic_lookup_symbol_nonlocal): Rename to...
5160 (language_defn::lookup_symbol_nonlocal): ...this, and update
5161 header comment. Remove language_defn parameter, and replace with
5162 uses of `this'.
5163 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
5164
ebe2334e
AB
51652020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5166
5167 * ada-lang.c (ada_language_data): Delete la_value_print_inner
5168 initializer.
5169 (ada_language::value_print_inner): New member function.
5170 * c-lang.c (c_language_data): Delete la_value_print_inner
5171 initializer.
5172 (cplus_language_data): Likewise.
5173 (asm_language_data): Likewise.
5174 (minimal_language_data): Likewise.
5175 * d-lang.c (d_language_data): Likewise.
5176 (d_language::value_print_inner): New member function.
5177 * f-lang.c (f_language_data): Delete la_value_print_inner
5178 initializer.
5179 (f_language::value_print_inner): New member function.
5180 * f-lang.h (f_value_print_innner): Rename to...
5181 (f_value_print_inner): ...this (note spelling of 'inner').
5182 * f-valprint.c (f_value_print_innner): Rename to...
5183 (f_value_print_inner): ...this (note spelling of 'inner').
5184 * go-lang.c (go_language_data): Delete la_value_print_inner
5185 initializer.
5186 (go_language::value_print_inner): New member function.
5187 * language.c (language_defn::value_print_inner): Define new member
5188 function.
5189 (unk_lang_value_print_inner): Delete.
5190 (unknown_language_data): Delete la_value_print_inner initializer.
5191 (unknown_language::value_print_inner): New member function.
5192 (auto_language_data): Delete la_value_print_inner initializer.
5193 (auto_language::value_print_inner): New member function.
5194 * language.h (language_data): Delete la_value_print_inner field.
5195 (language_defn::value_print_inner): Delcare new member function.
5196 * m2-lang.c (m2_language_data): Delete la_value_print_inner
5197 initializer.
5198 (m2_language::value_print_inner): New member function.
5199 * objc-lang.c (objc_language_data): Delete la_value_print_inner
5200 initializer.
5201 * opencl-lang.c (opencl_language_data): Likewise.
5202 * p-lang.c (pascal_language_data): Likewise.
5203 (pascal_language::value_print_inner): New member function.
5204 * rust-lang.c (rust_language_data): Delete la_value_print_inner
5205 initializer.
5206 (rust_language::value_print_inner): New member function.
5207 * valprint.c (do_val_print): Update call to value_print_inner.
5208
a1d1fa3e
AB
52092020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5210
5211 * ada-lang.c (ada_language_data): Delete la_value_print
5212 initializer.
5213 (ada_language::value_print): New member function.
5214 * c-lang.c (c_language_data): Delete la_value_print initializer.
5215 (cplus_language_data): Likewise.
5216 (asm_language_data): Likewise.
5217 (minimal_language_data): Likewise.
5218 * d-lang.c (d_language_data): Likewise.
5219 * f-lang.c (f_language_data): Likewise.
5220 * go-lang.c (go_language_data): Likewise.
5221 * language.c (unk_lang_value_print): Delete.
5222 (language_defn::value_print): Define new member function.
5223 (unknown_language_data): Delete la_value_print initializer.
5224 (unknown_language::value_print): New member function.
5225 (auto_language_data): Delete la_value_print initializer.
5226 (auto_language::value_print): New member function.
5227 * language.h (language_data): Delete la_value_print field.
5228 (language_defn::value_print): Declare new member function.
5229 (LA_VALUE_PRINT): Update call to value_print.
5230 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
5231 * objc-lang.c (objc_language_data): Likewise.
5232 * opencl-lang.c (opencl_language_data): Likewise.
5233 * p-lang.c (pascal_language_data): Likewise.
5234 (pascal_language::value_print): New member function.
5235 * rust-lang.c (rust_language_data): Delete la_value_print
5236 initializer.
5237
f16a9f57
AB
52382020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5239
5240 * ada-lang.c (ada_watch_location_expression): Rename to
5241 ada_language::watch_location_expression.
5242 (ada_language_data): Delete la_watch_location_expression
5243 initializer.
5244 (ada_language::watch_location_expression): New member function,
5245 implementation from ada_watch_location_expression.
5246 * breakpoint.c (watch_command_1): Update call to
5247 watch_location_expression.
5248 * c-lang.c (c_watch_location_expression): Rename to
5249 language_defn::watch_location_expression.
5250 (c_language_data): Delete la_watch_location_expression
5251 initializer.
5252 (cplus_language_data): Likewise.
5253 (asm_language_data): Likewise.
5254 (minimal_language_data): Likewise.
5255 * c-lang.h (c_watch_location_expression): Delete declaration.
5256 * d-lang.c (d_language_data): Delete la_watch_location_expression
5257 initializer.
5258 * f-lang.c (f_language_data): Likewise.
5259 * go-lang.c (go_language_data): Likewise.
5260 * language.c (language_defn::watch_location_expression): Member
5261 function implementation from c_watch_location_expression.
5262 (unknown_language_data): Delete la_watch_location_expression
5263 initializer.
5264 (auto_language_data): Likewise.
5265 * language.h (language_data): Delete la_watch_location_expression
5266 field.
5267 (language_defn::watch_location_expression): Declare new member
5268 function.
5269 * m2-lang.c (m2_language_data): Delete
5270 la_watch_location_expression initializer.
5271 * objc-lang.c (objc_language_data): Likewise.
5272 * opencl-lang.c (opencl_language_data): Likewise.
5273 * p-lang.c (pascal_language_data): Likewise.
5274 * rust-lang.c (rust_watch_location_expression): Rename to
5275 rust_language::watch_location_expression.
5276 (rust_language_data): Delete la_watch_location_expression
5277 initializer.
5278 (rust_language::watch_location_expression): New member function,
5279 implementation from rust_watch_location_expression.
5280
7e56227d
AB
52812020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5282
5283 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
5284 ada_language::collect_symbol_completion_matches.
5285 (ada_language_data): Delete la_collect_symbol_completion_matches
5286 initializer.
5287 (ada_language::collect_symbol_completion_matches): New member
5288 function, implementation from
5289 ada_collect_symbol_completion_matches.
5290 * c-lang.c (c_language_data): Delete
5291 la_collect_symbol_completion_matches initializer.
5292 (cplus_language_data): Likewise.
5293 (asm_language_data): Likewise.
5294 (minimal_language_data): Likewise.
5295 * d-lang.c (d_language_data): Likewise.
5296 * f-lang.c (f_collect_symbol_completion_matches): Rename to
5297 f_language::collect_symbol_completion_matches.
5298 (f_language_data): Delete la_collect_symbol_completion_matches
5299 initializer.
5300 (f_language::collect_symbol_completion_matches) New member
5301 function, implementation from f_collect_symbol_completion_matches.
5302 * go-lang.c (go_language_data): Delete
5303 la_collect_symbol_completion_matches initializer.
5304 * language.c (unknown_language_data): Likewise.
5305 (auto_language_data): Likewise.
5306 * language.h (language_data): Delete
5307 la_collect_symbol_completion_matches field.
5308 (language_defn::collect_symbol_completion_matches): New member
5309 function.
5310 * m2-lang.c (m2_language_data): Delete
5311 la_collect_symbol_completion_matches initializer.
5312 * objc-lang.c (objc_language_data): Likewise.
5313 * opencl-lang.c (opencl_language_data): Likewise.
5314 * p-lang.c (pascal_language_data): Likewise.
5315 * rust-lang.c (rust_language_data): Likewise.
5316 * symtab.c (default_collect_symbol_completion_matches): Delete.
5317 (collect_symbol_completion_matches): Update call to
5318 collect_symbol_completion_matches.
5319 (collect_symbol_completion_matches_type): Likewise.
5320 * symtab.h (default_collect_symbol_completion_matches): Delete
5321 declaration.
5322
53fc67f8
AB
53232020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5324
5325 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
5326 (ada_language_data): Delete la_word_break_characters initializer.
5327 (ada_language::word_break_characters): New member function.
5328 * c-lang.c (c_language_data): Delete la_word_break_characters
5329 initializer.
5330 (cplus_language_data): Likewise.
5331 (asm_language_data): Likewise.
5332 (minimal_language_data): Likewise.
5333 * completer.c: Update global comment.
5334 (advance_to_expression_complete_word_point): Update call to
5335 word_break_characters.
5336 (complete_files_symbols): Likewise.
5337 (complete_line_internal_1): Likewise.
5338 (default_completer_handle_brkchars): Likewise.
5339 (skip_quoted_chars): Likewise.
5340 * d-lang.c (d_language_data): Delete la_word_break_characters
5341 initializer.
5342 * f-lang.c (f_word_break_characters): Delete.
5343 (f_language_data): Delete la_word_break_characters initializer.
5344 (f_language::word_break_characters): New member function.
5345 * go-lang.c (go_language_data): Delete la_word_break_characters
5346 initializer.
5347 * language.c (unknown_language_data): Likewise.
5348 (auto_language_data): Likewise.
5349 * language.h (default_word_break_characters): Move declaration to
5350 earlier in the file.
5351 (language_data): Delete la_word_break_characters field.
5352 (language_defn::word_break_characters): New member function.
5353 * m2-lang.c (m2_language_data): Delete la_word_break_characters
5354 initializer.
5355 * objc-lang.c (objc_language_data): Likewise.
5356 * opencl-lang.c (opencl_language_data): Likewise.
5357 * p-lang.c (pascal_language_data): Likewise.
5358 * rust-lang.c (rust_language_data): Likewise.
5359
c9debfb9
AB
53602020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5361
5362 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
5363 (ada_language_data): Delete la_get_symbol_name_matcher
5364 initializer.
5365 (language_defn::get_symbol_name_matcher_inner): New member
5366 function.
5367 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
5368 initializer.
5369 (cplus_language_data): Likewise.
5370 (cplus_language::get_symbol_name_matcher_inner): New member
5371 function.
5372 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
5373 (minimal_language_data): Likewise.
5374 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
5375 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
5376 initializer.
5377 * dictionary.c (iter_match_first_hashed): Update call to
5378 get_symbol_name_matcher.
5379 (iter_match_next_hashed): Likewise.
5380 (iter_match_next_linear): Likewise.
5381 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
5382 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
5383 initializer.
5384 (f_language::get_symbol_name_matcher_inner): New member function.
5385 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
5386 initializer.
5387 * language.c (default_symbol_name_matcher): Update header comment,
5388 make static.
5389 (language_defn::get_symbol_name_matcher): New definition.
5390 (language_defn::get_symbol_name_matcher_inner): Likewise.
5391 (get_symbol_name_matcher): Delete.
5392 (unknown_language_data): Delete la_get_symbol_name_matcher
5393 initializer.
5394 (auto_language_data): Likewise.
5395 * language.h (language_data): Delete la_get_symbol_name_matcher
5396 field.
5397 (language_defn::get_symbol_name_matcher): New member function.
5398 (language_defn::get_symbol_name_matcher_inner): Likewise.
5399 (default_symbol_name_matcher): Delete declaration.
5400 * linespec.c (find_methods): Update call to
5401 get_symbol_name_matcher.
5402 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
5403 initializer.
5404 * minsyms.c (lookup_minimal_symbol): Update call to
5405 get_symbol_name_matcher.
5406 (iterate_over_minimal_symbols): Likewise.
5407 * objc-lang.c (objc_language_data): Delete
5408 la_get_symbol_name_matcher initializer.
5409 * opencl-lang.c (opencl_language_data): Likewise.
5410 * p-lang.c (pascal_language_data): Likewise.
5411 * psymtab.c (psymbol_name_matches): Update call to
5412 get_symbol_name_matcher.
5413 * rust-lang.c (rust_language_data): Delete
5414 la_get_symbol_name_matcher initializer.
5415 * symtab.c (symbol_matches_search_name): Update call to
5416 get_symbol_name_matcher.
5417 (compare_symbol_name): Likewise.
5418
9a49ad8c
AB
54192020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5420
5421 * ada-lang.c (ada_language_data): Delete la_compute_program
5422 initializer.
5423 * c-lang.c (c_language_data): Likewise.
5424 (c_language::compute_program): New member function.
5425 (cplus_language_data): Delete la_compute_program initializer.
5426 (cplus_language::compute_program): New member function.
5427 (asm_language_data): Delete la_compute_program initializer.
5428 (minimal_language_data): Likewise.
5429 * c-lang.h (c_compute_program): Update comment.
5430 (cplus_compute_program): Likewise.
5431 * compile/compile-c-support.c (c_compute_program): Likewise.
5432 (cplus_compute_program): Likewise.
5433 * compile/compile.c (compile_to_object): Update call to
5434 la_compute_program.
5435 * d-lang.c (d_language_data): Delete la_compute_program
5436 initializer.
5437 * f-lang.c (f_language_data): Likewise.
5438 * go-lang.c (go_language_data): Likewise.
5439 * language.c (unknown_language_data): Likewise.
5440 (auto_language_data): Likewise.
5441 * language.h (language_data): Delete la_compute_program field.
5442 (language_defn::compute_program): New member function.
5443 * m2-lang.c (m2_language_data): Delete la_compute_program
5444 initializer.
5445 * objc-lang.c (objc_language_data): Likewise.
5446 * opencl-lang.c (opencl_language_data): Likewise.
5447 * p-lang.c (pascal_language_data): Likewise.
5448 * rust-lang.c (rust_language_data): Likewise.
5449
eff93b4d
AB
54502020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5451
5452 * ada-lang.c (ada_language_data) Delete
5453 la_class_name_from_physname initializer.
5454 * c-lang.c (c_language_data): Likewise.
5455 (cplus_language_data): Likewise.
5456 (cplus_language::class_name_from_physname): New member function.
5457 (asm_language_data): Delete la_class_name_from_physname
5458 initializer.
5459 (minimal_language_data): Likewise.
5460 * d-lang.c (d_language_data): Likewise.
5461 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
5462 method on language_defn class.
5463 (guess_full_die_structure_name): Likewise.
5464 * f-lang.c (f_language_data): Delete la_class_name_from_physname
5465 initializer.
5466 * go-lang.c (go_language_data): Likewise.
5467 * language.c (language_class_name_from_physname): Delete.
5468 (unk_lang_class_name): Delete.
5469 (unknown_language_data): Delete la_class_name_from_physname
5470 initializer.
5471 (auto_language_data): Likewise.
5472 * language.h (language_data): Delete la_class_name_from_physname
5473 field.
5474 (language_defn::class_name_from_physname): New function.
5475 (language_class_name_from_physname): Delete declaration.
5476 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
5477 initializer.
5478 * objc-lang.c (objc_language_data): Likewise.
5479 * opencl-lang.c (opencl_language_data): Likewise.
5480 * p-lang.c (pascal_language_data): Likewise.
5481 * rust-lang.c (rust_language_data): Likewise.
5482
de543742
TT
54832020-06-16 Tom Tromey <tom@tromey.com>
5484
5485 * tui/tui-data.h (STATUS_NAME): New macro.
5486 * tui/tui-layout.c (tui_remove_some_windows)
5487 (initialize_known_windows, tui_register_window)
5488 (tui_layout_split::remove_windows, initialize_layouts)
5489 (tui_new_layout_command): Don't use hard-coded window names.
5490
a350efd4
TT
54912020-06-16 Tom Tromey <tom@tromey.com>
5492
5493 PR tui/25348:
5494 * tui/tui.c (tui_ensure_readline_initialized): Rename from
5495 tui_initialize_readline. Only run once. Call rl_initialize.
5496 * tui/tui.h (tui_ensure_readline_initialized): Rename from
5497 tui_initialize_readline.
5498 * tui/tui-io.c (tui_setup_io): Call
5499 tui_ensure_readline_initialized.
5500 * tui/tui-interp.c (tui_interp::init): Update.
5501
39ec0490
TT
55022020-06-16 Tom Tromey <tom@tromey.com>
5503
5504 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
5505 Also preserve the status window.
5506
d2d1ea20
TT
55072020-06-16 Tom Tromey <tom@tromey.com>
5508
5509 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
5510 where m_window==nullptr.
5511
66920317
TT
55122020-06-15 Tom Tromey <tromey@adacore.com>
5513
5514 * windows-nat.c (windows_nat::handle_output_debug_string):
5515 Update.
5516 (windows_nat::handle_ms_vc_exception): Update.
5517 * target.h (target_read_string): Change API.
5518 * target.c (target_read_string): Change API.
5519 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
5520 Update.
5521 * solib-frv.c (frv_current_sos): Update.
5522 * solib-dsbt.c (dsbt_current_sos): Update.
5523 * solib-darwin.c (darwin_current_sos): Update.
5524 * linux-thread-db.c (inferior_has_bug): Update.
5525 * expprint.c (print_subexp_standard): Update.
5526 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
5527 (ada_exception_message_1): Update.
5528
a5d871dd
TT
55292020-06-15 Tom Tromey <tromey@adacore.com>
5530
5531 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
5532
670e35fa
TT
55332020-06-15 Tom Tromey <tromey@adacore.com>
5534
5535 * valprint.c (read_string): Update comment.
5536 * target.c (MIN): Remove.
5537 (target_read_string): Rewrite.
5538
f5272a3b
TT
55392020-06-15 Tom Tromey <tromey@adacore.com>
5540
5541 * corefile.c (read_memory_string): Remove.
5542 * ada-valprint.c (ada_value_print_ptr): Update.
5543 * ada-lang.h (ada_tag_name): Change return type.
5544 * ada-lang.c (type_from_tag): Update.
5545 (ada_tag_name_from_tsd): Change return type. Use
5546 target_read_string.
5547 (ada_tag_name): Likewise.
5548 * gdbcore.h (read_memory_string): Don't declare.
5549
2c074f49
HD
55502020-06-14 Hannes Domani <ssbssa@yahoo.de>
5551
5552 * symtab.c (rbreak_command): Ignore Windows drive colon.
5553
6a17d503
SM
55542020-06-12 Simon Marchi <simon.marchi@efficios.com>
5555
5556 * NEWS: Mention removed GDBserver host support.
5557
453c733f
NC
55582020-06-12 Nelson Chu <nelson.chu@sifive.com>
5559
5560 * features/riscv/rebuild-csr-xml.sh: Updated.
5561
2b4e6a3f
TT
55622020-06-11 Tom Tromey <tom@tromey.com>
5563
5564 PR gdb/18318:
5565 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
5566
4412332f
JG
55672020-06-09 Jonny Grant <jg@jguk.org>
55682020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
5569
5570 * main.c (captured_main_1): Don't print new line after help.
5571 (print_gdb_help): add mailing list and IRC channel information
5572 to --help. Add new lines between items in the footer. Remove
5573 quotes around bug url.
5574
2f33032a
KS
55752020-06-11 Keith Seitz <keiths@redhat.com>
5576
5577 PR gdb/21356
5578 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
5579 Resolve typedefs for type length calculations.
5580
7ab96794
TV
55812020-06-10 Tom de Vries <tdevries@suse.de>
5582
5583 PR ada/24713
5584 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
5585 (write_psymbols): Enable .gdb_index for ada.
5586 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
5587 ada.
5588
e5f3ece2
TV
55892020-06-10 Tom de Vries <tdevries@suse.de>
5590
5591 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
5592 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
5593 namei" instead of "const char *name" argument.
5594 (dw2_map_matching_symbols): Use "offset_type namei" variant of
5595 dw2_symtab_iter_init.
5596
940da03e
SM
55972020-06-08 Simon Marchi <simon.marchi@efficios.com>
5598
5599 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
5600 to use type::field and field::type instead.
5601
b6cdac4b
SM
56022020-06-08 Simon Marchi <simon.marchi@efficios.com>
5603
5604 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
5605 to use field::type instead.
5606
5d14b6e5
SM
56072020-06-08 Simon Marchi <simon.marchi@efficios.com>
5608
5609 * gdbtypes.h (struct field) <type, set_type>: New methods.
5610 Rename `type` field to...
5611 <m_type>: ... this. Change references throughout to use type or
5612 set_type methods.
5613 (FIELD_TYPE): Use field::type. Change call sites that modify
5614 the field's type to use field::set_type instead.
5615
3d967001
SM
56162020-06-08 Simon Marchi <simon.marchi@efficios.com>
5617
5618 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
5619 to use type::index_type instead.
5620
262abc0d
SM
56212020-06-08 Simon Marchi <simon.marchi@efficios.com>
5622
5623 * gdbtypes.h (struct type) <index_type, set_index_type>: New
5624 methods.
5625 (TYPE_INDEX_TYPE): Use type::index_type.
5626 * gdbtypes.c (create_array_type_with_stride): Likewise.
5627
82836c92
TT
56282020-06-07 Tom Tromey <tom@tromey.com>
5629
5630 * valprint.c (generic_val_print_float): Remove "embedded_offset"
5631 parameter.
5632 (generic_value_print): Update.
5633
940dace9
AB
56342020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
5635
5636 Revert commit 982a38f60b0.
5637 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
5638
982a38f6
AB
56392020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
5640
5641 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
5642 avoid use after free.
5643
82f06518
TV
56442020-06-05 Tom de Vries <tdevries@suse.de>
5645
5646 * NEWS: Fix typos.
5647
f8c41851
SM
56482020-06-04 Simon Marchi <simon.marchi@efficios.com>
5649
5650 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
5651 the per_bfd object.
5652 (dwarf2_read_debug_names): Likewise.
5653 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
5654 object when re-using a per_bfd object with an index.
5655
f9b5d5ea
TV
56562020-06-03 Tom de Vries <tdevries@suse.de>
5657
5658 PR symtab/26046
5659 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
5660 children for C++.
5661 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
5662 DW_TAG_subprogram.
5663
f6eee2d0
AB
56642020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5665
5666 * ada-lang.c (ada_language_data): Delete skip_trampoline
5667 initializer.
5668 * c-lang.c (c_language_data): Likewise.
5669 (cplus_language_data): Likewise.
5670 (cplus_language::skip_trampoline): New member function.
5671 (asm_language_data): Delete skip_trampoline initializer.
5672 (minimal_language_data): Likewise.
5673 * d-lang.c (d_language_data): Likewise.
5674 * f-lang.c (f_language_data): Likewise.
5675 * go-lang.c (go_language_data): Likewise.
5676 * language.c (unk_lang_trampoline): Delete function.
5677 (skip_language_trampoline): Update.
5678 (unknown_language_data): Delete skip_trampoline initializer.
5679 (auto_language_data): Likewise.
5680 * language.h (language_data): Delete skip_trampoline field.
5681 (language_defn::skip_trampoline): New function.
5682 * m2-lang.c (m2_language_data): Delete skip_trampoline
5683 initializer.
5684 * objc-lang.c (objc_skip_trampoline): Delete function, move
5685 implementation to objc_language::skip_trampoline.
5686 (objc_language_data): Delete skip_trampoline initializer.
5687 (objc_language::skip_trampoline): New member function with
5688 implementation from objc_skip_trampoline.
5689 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
5690 initializer.
5691 * p-lang.c (pascal_language_data): Likewise.
5692 * rust-lang.c (rust_language_data): Likewise.
5693
0a50df5d
AB
56942020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5695
5696 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
5697 (ada_language::demangle): New member function.
5698 * c-lang.c (c_language_data): Delete la_demangle initializer.
5699 (cplus_language_data): Delete la_demangle initializer.
5700 (cplus_language::demangle): New member function.
5701 (asm_language_data): Delete la_demangle initializer.
5702 (minimal_language_data): Delete la_demangle initializer.
5703 * d-lang.c (d_language_data): Delete la_demangle initializer.
5704 (d_language::demangle): New member function.
5705 * f-lang.c (f_language_data): Delete la_demangle initializer.
5706 (f_language::demangle): New member function.
5707 * go-lang.c (go_language_data): Delete la_demangle initializer.
5708 (go_language::demangle): New member function.
5709 * language.c (language_demangle): Update.
5710 (unk_lang_demangle): Delete.
5711 (unknown_language_data): Delete la_demangle initializer.
5712 (unknown_language::demangle): New member function.
5713 (auto_language_data): Delete la_demangle initializer.
5714 (auto_language::demangle): New member function.
5715 * language.h (language_data): Delete la_demangle field.
5716 (language_defn::demangle): New function.
5717 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
5718 * objc-lang.c (objc_language_data): Delete la_demangle
5719 initializer.
5720 (objc_language::demangle): New member function.
5721 * opencl-lang.c (opencl_language_data): Delete la_demangle
5722 initializer.
5723 * p-lang.c (pascal_language_data): Likewise.
5724 * rust-lang.c (rust_language_data): Likewise.
5725 (rust_language::demangle): New member function.
5726
fbfb0a46
AB
57272020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5728
5729 * ada-lang.c (ada_language_data): Delete la_print_type
5730 initializer.
5731 (ada_language::print_type): New member function.
5732 * c-lang.c (c_language_data): Delete la_print_type initializer.
5733 (c_language::print_type): New member function.
5734 (cplus_language_data): Delete la_print_type initializer.
5735 (cplus_language::print_type): New member function.
5736 (asm_language_data): Delete la_print_type initializer.
5737 (asm_language::print_type): New member function.
5738 (minimal_language_data): Delete la_print_type initializer.
5739 (minimal_language::print_type): New member function.
5740 * d-lang.c (d_language_data): Delete la_print_type initializer.
5741 (d_language::print_type): New member function.
5742 * f-lang.c (f_language_data): Delete la_print_type initializer.
5743 (f_language::print_type): New member function.
5744 * go-lang.c (go_language_data): Delete la_print_type initializer.
5745 (go_language::print_type): New member function.
5746 * language.c (unk_lang_print_type): Delete.
5747 (unknown_language_data): Delete la_print_type initializer.
5748 (unknown_language::print_type): New member function.
5749 (auto_language_data): Delete la_print_type initializer.
5750 (auto_language::print_type): New member function.
5751 * language.h (language_data): Delete la_print_type field.
5752 (language_defn::print_type): New function.
5753 (LA_PRINT_TYPE): Update.
5754 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
5755 (m2_language::print_type): New member function.
5756 * objc-lang.c (objc_language_data): Delete la_print_type
5757 initializer.
5758 (objc_language::print_type): New member function.
5759 * opencl-lang.c (opencl_print_type): Delete, implementation moved
5760 to opencl_language::print_type.
5761 (opencl_language_data): Delete la_print_type initializer.
5762 (opencl_language::print_type): New member function, implementation
5763 from opencl_print_type.
5764 * p-lang.c (pascal_language_data): Delete la_print_type
5765 initializer.
5766 (pascal_language::print_type): New member function.
5767 * rust-lang.c (rust_print_type): Delete, implementation moved to
5768 rust_language::print_type.
5769 (rust_language_data): Delete la_print_type initializer.
5770 (rust_language::print_type): New member function, implementation
5771 from rust_print_type.
5772
6f827019
AB
57732020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5774
5775 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
5776 implementation moves to...
5777 (ada_language::sniff_from_mangled_name): ...here. Update return
5778 type.
5779 (ada_language_data): Delete la_sniff_from_mangled_name
5780 initializer.
5781 * c-lang.c (c_language_data): Likewise.
5782 (cplus_language_data): Likewise.
5783 (cplus_language::sniff_from_mangled_name): New member function,
5784 implementation taken from gdb_sniff_from_mangled_name.
5785 (asm_language_data): Delete la_sniff_from_mangled_name
5786 initializer.
5787 (minimal_language_data): Likewise.
5788 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
5789 implementation moves to cplus_language::sniff_from_mangled_name.
5790 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
5791 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
5792 moves to...
5793 (d_language::sniff_from_mangled_name): ...here.
5794 (d_language_data): Delete la_sniff_from_mangled_name initializer.
5795 * f-lang.c (f_language_data): Likewise.
5796 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
5797 moves to...
5798 (go_language::sniff_from_mangled_name): ...here.
5799 (go_language_data): Delete la_sniff_from_mangled_name initializer.
5800 * language.c (language_sniff_from_mangled_name): Delete.
5801 (unknown_language_data): Delete la_sniff_from_mangled_name
5802 initializer.
5803 (auto_language_data): Likewise.
5804 * language.h (language_data): Delete la_sniff_from_mangled_name
5805 field.
5806 (language_defn::sniff_from_mangled_name): New function.
5807 (language_sniff_from_mangled_name): Delete declaration.
5808 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
5809 field.
5810 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
5811 implementation moves to...
5812 (objc_language::sniff_from_mangled_name): ...here.
5813 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
5814 * opencl-lang.c (opencl_language_data): Likewise.
5815 * p-lang.c (pascal_language_data): Likewise.
5816 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
5817 implementation moves to...
5818 (rust_language::sniff_from_mangled_name): ...here.
5819 (rust_language_data): Delete la_sniff_from_mangled_name
5820 initializer.
5821 * symtab.c (symbol_find_demangled_name): Call
5822 sniff_from_mangled_name member function.
5823
fb8006fd
AB
58242020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5825
5826 * ada-lang.c (ada_language_data): Delete la_search_name_hash
5827 initializer.
5828 * c-lang.c (c_language_data): Likewise.
5829 (cplus_language_data): Likewise.
5830 (cplus_language::search_name_hash): New member function.
5831 (asm_language_data): Delete la_search_name_hash initializer.
5832 (minimal_language_data): Likewise.
5833 * d-lang.c (d_language_data): Likewise.
5834 * dictionary.c (default_search_name_hash): Rename to...
5835 (language_defn::search_name_hash): ...this.
5836 * f-lang.c (f_language_data): Likewise.
5837 (f_language::search_name_hash): New member function.
5838 * go-lang.c (go_language_data): Delete la_search_name_hash
5839 initializer.
5840 * language.c (unknown_language_data): Likewise.
5841 (auto_language_data): Likewise.
5842 * language.h (struct language_data): Delete la_search_name_hash
5843 field.
5844 (language_defn::search_name_hash): Declare new member function.
5845 (default_search_name_hash): Delete declaration.
5846 * m2-lang.c (m2_language_data): Delete la_search_name_hash
5847 initializer.
5848 * objc-lang.c (objc_language_data): Likewise.
5849 * opencl-lang.c (opencl_language_data): Likewise.
5850 * p-lang.c (pascal_language_data): Likewise.
5851 * rust-lang.c (rust_language_data): Likewise.
5852 * symtab.c (search_name_hash): Update call.
5853
8e25bafe
AB
58542020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5855
5856 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
5857 initializer.
5858 * c-lang.c (class compile_instance): Declare.
5859 (c_language_data): Delete la_get_compile_instance initializer.
5860 (c_language::get_compile_instance): New member function.
5861 (cplus_language_data): Delete la_get_compile_instance initializer.
5862 (cplus_language::get_compile_instance): New member function.
5863 (asm_language_data): Delete la_get_compile_instance initializer.
5864 (minimal_language_data): Likewise.
5865 * c-lang.h (c_get_compile_context): Update comment.
5866 (cplus_get_compile_context): Update comment.
5867 * compile/compile.c (compile_to_object): Update calls, don't rely
5868 on function pointer being NULL.
5869 * d-lang.c (d_language_data): Delete la_get_compile_instance
5870 initializer.
5871 * f-lang.c (f_language_data): Likewise.
5872 * go-lang.c (go_language_data): Likewise.
5873 * language.c (unknown_language_data): Likewise.
5874 (auto_language_data): Likewise.
5875 * language.h (language_data): Delete la_get_compile_instance field.
5876 (language_defn::get_compile_instance): New member function.
5877 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
5878 initializer.
5879 * objc-lang.c (objc_language_data): Likewise.
5880 * opencl-lang.c (opencl_language_data): Likewise.
5881 * p-lang.c (pascal_language_data): Likewise.
5882 * rust-lang.c (rust_language_data): Likewise.
5883
4009ee92
AB
58842020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5885
5886 * ada-lang.c (ada_add_all_symbols): Update comment.
5887 (ada_iterate_over_symbols): Delete, move implementation to...
5888 (ada_language::iterate_over_symbols): ...here, a new member
5889 function, rewrite to use range based for loop.
5890 (ada_language_data): Delete la_iterate_over_symbols initializer.
5891 * c-lang.c (c_language_data): Likewise.
5892 (cplus_language_data): Likewise.
5893 (asm_language_data): Likewise.
5894 (minimal_language_data): Likewise.
5895 * d-lang.c (d_language_data): Likewise.
5896 * f-lang.c (f_language_data): Likewise.
5897 * go-lang.c (go_language_data): Likewise.
5898 * language.c (unknown_language_data): Likewise.
5899 (auto_language_data): Likewise.
5900 * language.h (language_data): Delete la_iterate_over_symbols field.
5901 (language_defn::iterate_over_symbols): New member function.
5902 (LA_ITERATE_OVER_SYMBOLS): Update.
5903 * linespec.c (iterate_over_all_matching_symtabs): Update.
5904 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
5905 initializer.
5906 * objc-lang.c (objc_language_data): Likewise.
5907 * opencl-lang.c (opencl_language_data): Likewise.
5908 * p-lang.c (pascal_language_data): Likewise.
5909 * rust-lang.c (rust_language_data): Likewise.
5910
54f4ca46
AB
59112020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5912
5913 * ada-lang.c (ada_language_data): Delete
5914 la_lookup_transparent_type initializer.
5915 * c-lang.c (c_language_data): Likewise.
5916 (cplus_language_data): Likewise.
5917 (cplus_language::lookup_transparent_type): New member function.
5918 (asm_language_data): Delete la_lookup_transparent_type
5919 initializer.
5920 (minimal_language_data): Likewise.
5921 * d-lang.c (d_language_data): Likewise.
5922 * f-lang.c (f_language_data): Likewise.
5923 * go-lang.c (go_language_data): Likewise.
5924 * language.c (unknown_language_data): Likewise.
5925 (auto_language_data): Likewise.
5926 * language.h (struct language_data): Delete
5927 la_lookup_transparent_type field.
5928 (language_defn::lookup_transparent_type): New member function.
5929 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
5930 initializer.
5931 * objc-lang.c (objc_language_data): Likewise.
5932 * opencl-lang.c (opencl_language_data): Likewise.
5933 * p-lang.c (pascal_language_data): Likewise.
5934 * rust-lang.c (rust_language_data): Likewise.
5935 * symtab.c (symbol_matches_domain): Update call.
5936
1fb314aa
AB
59372020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5938
5939 * ada-lang.c (ada_language_arch_info): Delete function, move
5940 implementation to...
5941 (ada_language::language_arch_info): ...here, a new member
5942 function.
5943 (ada_language_data): Delete la_language_arch_info.
5944 * c-lang.c (c_language_data): Likewise.
5945 (c_language::language_arch_info): New member function.
5946 (cplus_language_arch_info): Delete function, move
5947 implementation to...
5948 (cplus_language::language_arch_info): ...here, a new member
5949 function.
5950 (cplus_language_data): Delete la_language_arch_info.
5951 (asm_language_data): Likewise.
5952 (asm_language::language_arch_info): New member function.
5953 (minimal_language_data): Delete la_language_arch_info.
5954 (minimal_language::language_arch_info): New member function.
5955 * d-lang.c (d_language_arch_info): Delete function, move
5956 implementation to...
5957 (d_language::language_arch_info): ...here, a new member
5958 function.
5959 (d_language_data): Delete la_language_arch_info.
5960 * f-lang.c (f_language_arch_info): Delete function, move
5961 implementation to...
5962 (f_language::language_arch_info): ...here, a new member
5963 function.
5964 (f_language_data): Delete la_language_arch_info.
5965 * go-lang.c (go_language_arch_info): Delete function, move
5966 implementation to...
5967 (go_language::language_arch_info): ...here, a new member
5968 function.
5969 (go_language_data): Delete la_language_arch_info.
5970 * language.c (unknown_language_data): Likewise.
5971 (unknown_language::language_arch_info): New member function.
5972 (auto_language_data): Delete la_language_arch_info.
5973 (auto_language::language_arch_info): New member function.
5974 (language_gdbarch_post_init): Update call to
5975 la_language_arch_info.
5976 * language.h (language_data): Delete la_language_arch_info
5977 function pointer.
5978 (language_defn::language_arch_info): New function.
5979 * m2-lang.c (m2_language_arch_info): Delete function, move
5980 implementation to...
5981 (m2_language::language_arch_info): ...here, a new member
5982 function.
5983 (m2_language_data): Delete la_language_arch_info.
5984 * objc-lang.c (objc_language_arch_info): Delete function, move
5985 implementation to...
5986 (objc_language::language_arch_info): ...here, a new member
5987 function.
5988 (objc_language_data): Delete la_language_arch_info.
5989 * opencl-lang.c (opencl_language_arch_info): Delete function, move
5990 implementation to...
5991 (opencl_language::language_arch_info): ...here, a new member
5992 function.
5993 (opencl_language_data): Delete la_language_arch_info.
5994 * p-lang.c (pascal_language_arch_info): Delete function, move
5995 implementation to...
5996 (pascal_language::language_arch_info): ...here, a new member
5997 function.
5998 (pascal_language_data): Delete la_language_arch_info.
5999 * rust-lang.c (rust_language_arch_info): Delete function, move
6000 implementation to...
6001 (rust_language::language_arch_info): ...here, a new member
6002 function.
6003 (rust_language_data): Delete la_language_arch_info.
6004
48448202
AB
60052020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6006
6007 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
6008 initializer.
6009 * c-lang.c (c_language_data): Likewise.
6010 (cplus_language_data): Likewise.
6011 (cplus_language::pass_by_reference_info): New method.
6012 (asm_language_data): Delete la_pass_by_reference initializer.
6013 (minimal_language_data): Likewise.
6014 * cp-abi.c (cp_pass_by_reference): Remove use of
6015 default_pass_by_reference.
6016 * d-lang.c (d_language_data): Likewise.
6017 * f-lang.c (f_language_data): Likewise.
6018 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
6019 default_pass_by_reference.
6020 * go-lang.c (go_language_data): Likewise.
6021 * language.c (language_pass_by_reference): Update.
6022 (default_pass_by_reference): Delete.
6023 (unknown_language_data): Delete la_pass_by_reference
6024 initializer.
6025 (auto_language_data): Likewise.
6026 * language.h (struct language_data): Delete la_pass_by_reference
6027 field.
6028 (language_defn::pass_by_reference_info): New member function.
6029 (default_pass_by_reference): Delete declaration.
6030 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
6031 initializer.
6032 * objc-lang.c (objc_language_data): Likewise.
6033 * opencl-lang.c (opencl_language_data): Likewise.
6034 * p-lang.c (pascal_language_data): Likewise.
6035 * rust-lang.c (rust_language_data): Likewise.
6036
15e5fd35
AB
60372020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6038
6039 * ada-lang.c (ada_read_var_value): Delete function, move
6040 implementation to...
6041 (ada_language::read_var_value): ...here.
6042 (ada_language_data): Delete la_read_var_value initializer.
6043 * c-lang.c (c_language_data): Likewise.
6044 (cplus_language_data): Likewise.
6045 (minimal_language_data): Likewise.
6046 * d-lang.c (d_language_data): Likewise.
6047 * f-lang.c (f_language_data): Likewise.
6048 * findvar.c (default_read_var_value): Rename to...
6049 (language_defn::read_var_value): ...this.
6050 * findvar.c (read_var_value): Update header comment, and change to
6051 call member function instead of function pointer.
6052 * go-lang.c (go_language_data): Likewise.
6053 * language.c (unknown_language_data): Delete la_read_var_value
6054 initializer.
6055 (auto_language_data): Likewise.
6056 * language.h (struct language_data): Delete la_read_var_value
6057 field.
6058 (language_defn::read_var_value): New member function.
6059 (default_read_var_value): Delete declaration.
6060 * m2-lang.c (m2_language_data): Delete la_read_var_value
6061 initializer.
6062 * objc-lang.c (objc_language_data): Likewise.
6063 * opencl-lang.c (opencl_language_data): Likewise.
6064 * p-lang.c (pascal_language_data): Likewise.
6065 * rust-lang.c (rust_language_data): Likewise.
6066 * value.h (default_read_var_value): Delete declaration.
6067
5bd40f2a
AB
60682020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6069
6070 * ada-lang.c (ada_print_array_index): Delete function, move
6071 implementation to...
6072 (ada_language::print_array_index): ...here.
6073 (ada_language_data): Delete la_print_array_index initializer.
6074 * c-lang.c (c_language_data): Likewise.
6075 (cplus_language_data): Likewise.
6076 (minimal_language_data): Likewise.
6077 * d-lang.c (d_language_data): Likewise.
6078 * f-lang.c (f_language_data): Likewise.
6079 * go-lang.c (go_language_data): Likewise.
6080 * language.c (default_print_array_index): Delete function, move
6081 implementation to...
6082 (language_defn::print_array_index): ...here.
6083 (unknown_language_data): Delete la_print_array_index initializer.
6084 (auto_language_data): Likewise.
6085 * language.h (struct language_data): Delete la_print_array_index
6086 field.
6087 (language_defn::print_array_index): New member function.
6088 (LA_PRINT_ARRAY_INDEX): Update.
6089 (default_print_array_index): Delete declaration.
6090 * m2-lang.c (m2_language_data): Delete la_print_array_index
6091 initializer.
6092 * objc-lang.c (objc_language_data): Likewise.
6093 * opencl-lang.c (opencl_language_data): Likewise.
6094 * p-lang.c (pascal_language_data): Likewise.
6095 * rust-lang.c (rust_language_data): Likewise.
6096
0874fd07
AB
60972020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6098
6099 * gdb/ada-lang.c (ada_language_defn): Convert to...
6100 (ada_language_data): ...this.
6101 (class ada_language): New class.
6102 (ada_language_defn): New static global.
6103 * gdb/c-lang.c (c_language_defn): Convert to...
6104 (c_language_data): ...this.
6105 (class c_language): New class.
6106 (c_language_defn): New static global.
6107 (cplus_language_defn): Convert to...
6108 (cplus_language_data): ...this.
6109 (class cplus_language): New class.
6110 (cplus_language_defn): New static global.
6111 (asm_language_defn): Convert to...
6112 (asm_language_data): ...this.
6113 (class asm_language): New class.
6114 (asm_language_defn): New static global.
6115 (minimal_language_defn): Convert to...
6116 (minimal_language_data): ...this.
6117 (class minimal_language): New class.
6118 (minimal_language_defn): New static global.
6119 * gdb/d-lang.c (d_language_defn): Convert to...
6120 (d_language_data): ...this.
6121 (class d_language): New class.
6122 (d_language_defn): New static global.
6123 * gdb/f-lang.c (f_language_defn): Convert to...
6124 (f_language_data): ...this.
6125 (class f_language): New class.
6126 (f_language_defn): New static global.
6127 * gdb/go-lang.c (go_language_defn): Convert to...
6128 (go_language_data): ...this.
6129 (class go_language): New class.
6130 (go_language_defn): New static global.
6131 * gdb/language.c (unknown_language_defn): Remove declaration.
6132 (current_language): Initialize to nullptr, real initialization is
6133 moved to _initialize_language.
6134 (languages): Delete global.
6135 (language_defn::languages): Define.
6136 (set_language_command): Use language_defn::languages.
6137 (set_language): Likewise.
6138 (range_error): Likewise.
6139 (language_enum): Likewise.
6140 (language_def): Likewise.
6141 (add_set_language_command): Use language_def::languages for the
6142 language list, and language_def to lookup language pointers.
6143 (skip_language_trampoline): Use language_defn::languages.
6144 (unknown_language_defn): Convert to...
6145 (unknown_language_data): ...this.
6146 (class unknown_language): New class.
6147 (unknown_language_defn): New static global.
6148 (auto_language_defn): Convert to...
6149 (auto_language_data): ...this.
6150 (class auto_language): New class.
6151 (auto_language_defn): New static global.
6152 (language_gdbarch_post_init): Use language_defn::languages.
6153 (_initialize_language): Initialize current_language.
6154 * gdb/language.h (struct language_defn): Rename to...
6155 (struct language_data): ...this.
6156 (struct language_defn): New.
6157 (auto_language_defn): Delete.
6158 (unknown_language_defn): Delete.
6159 (minimal_language_defn): Delete.
6160 (ada_language_defn): Delete.
6161 (asm_language_defn): Delete.
6162 (c_language_defn): Delete.
6163 (cplus_language_defn): Delete.
6164 (d_language_defn): Delete.
6165 (f_language_defn): Delete.
6166 (go_language_defn): Delete.
6167 (m2_language_defn): Delete.
6168 (objc_language_defn): Delete.
6169 (opencl_language_defn): Delete.
6170 (pascal_language_defn): Delete.
6171 (rust_language_defn): Delete.
6172 * gdb/m2-lang.c (m2_language_defn): Convert to...
6173 (m2_language_data): ...this.
6174 (class m2_language): New class.
6175 (m2_language_defn): New static global.
6176 * gdb/objc-lang.c (objc_language_defn): Convert to...
6177 (objc_language_data): ...this.
6178 (class objc_language): New class.
6179 (objc_language_defn): New static global.
6180 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
6181 (opencl_language_data): ...this.
6182 (class opencl_language): New class.
6183 (opencl_language_defn): New static global.
6184 * gdb/p-lang.c (pascal_language_defn): Convert to...
6185 (pascal_language_data): ...this.
6186 (class pascal_language): New class.
6187 (pascal_language_defn): New static global.
6188 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
6189 language pointer, update comment format.
6190 * gdb/rust-lang.c (rust_language_defn): Convert to...
6191 (rust_language_data): ...this.
6192 (class rust_language): New class.
6193 (rust_language_defn): New static global.
6194
1313c56e
AB
61952020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
6196
6197 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
6198 member variable.
6199 <m_stmt_at_address>: New member variable.
6200 (lnp_state_machine::record_line): Don't record some lines, update
6201 tracking of is_stmt at the same address.
6202 (lnp_state_machine::lnp_state_machine): Initialise new member
6203 variables.
6204
b7ed9f3d
ST
62052020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
6206
6207 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
6208 "-include gnu-nat-mig.h".
6209 * gnu-nat-mig.h: New file.
6210 * gnu-nat.c: Include "gnu-nat-mig.h".
6211 (exc_server, msg_reply_server, notify_server,
6212 process_reply_server): Remove declarations.
6213
14a8ad62
ST
62142020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6215
6216 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
6217 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
6218 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
6219 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
6220 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
6221 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
6222 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
6223 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
6224 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
6225 to gnu_nat_target class.
6226 * gnu-nat.c: Likewise.
6227 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
6228 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
6229 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
6230 object.
6231 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
6232 instead of `gnu_target'.
6233
0af5e106
ST
62342020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6235
6236 * i386-gnu-tdep.c: Include "gdbcore.h"
6237 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
6238 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
6239 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
6240 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
6241 i386_gnu_sigcontext_addr): New functions
6242 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
6243 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
6244 tdep.
6245
078f2fc9
ST
62462020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6247
6248 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
6249 before fork_inferior call. Avoid calling it if target_is_pushed returns
6250 true.
6251
53dff92c
ST
62522020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6253
6254 * gnu-nat.h (gnu_target): New variable declaration.
6255 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
6256 gnu_target.
6257 * gnu-nat.c (gnu_target): New variable.
6258 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
6259 add_thread_silent, and add_thread calls.
6260 (gnu_nat_target::create_inferior): Pass gnu_target to
6261 add_thread_silent, thread_change_ptid call.
6262 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
6263 call.
6264
5a8b8627
ST
62652020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6266
6267 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
6268 (gnu_nat_target::find_memory_regions): Remove unused
6269 `old_address' variable.
6270
366f550a
ST
62712020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6272
6273 * gnu-nat.c: Include "gdbarch.h".
6274
f14871bf
ST
62752020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6276
6277 * reply_mig_hack.awk (Error return): Cast function through
6278 void *, to bypass compiler function call check.
6279
c6887cfb
ST
62802020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6281
6282 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
6283 $(srcdir)/reply_mig_hack.awk.
6284
6930bffe
ST
62852020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6286
6287 * gnu-nat.h (gnu_debug_flag): Set type to bool.
6288
112c22ed
JG
62892020-05-30 Jonny Grant <jg@jguk.org>
6290
6291 * configure.ac (ACX_BUGURL): change bug URL to https.
6292
f68f85b5
PA
62932020-05-30 Pedro Alves <palves@redhat.com>
6294
6295 * cp-support.c (replace_typedefs_template): New.
6296 (replace_typedefs_qualified_name): Handle
6297 DEMANGLE_COMPONENT_TEMPLATE.
6298
976ca316
SM
62992020-05-29 Simon Marchi <simon.marchi@efficios.com>
6300
6301 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
6302 dwarf2/index-cache.h, dwarf2/index-write.c,
6303 dwarf2/index-write.h, dwarf2/line-header.c,
6304 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
6305 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
6306 variables and fields from `dwarf2_per_objfile` to just
6307 `per_objfile` throughout.
6308
989ade05
SM
63092020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
6310
6311 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6312 <push_dwarf_reg_entry_value>: Add comment.
6313
c47bae85
KB
63142020-05-28 Kevin Buettner <kevinb@redhat.com>
6315 Keith Seitz <keiths@redhat.com>
6316
6317 * python/python.c (do_start_initialization): Call PyEval_SaveThread
6318 instead of PyEval_ReleaseLock.
6319 (class gdbpy_gil): Move to earlier in file.
6320 (finalize_python): Set gdb_python_initialized.
6321 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
6322 when not initialized.
6323
44486dcf
SM
63242020-05-28 Simon Marchi <simon.marchi@efficios.com>
6325
6326 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6327 <push_dwarf_reg_entry_value>: Remove assert. Override
6328 per_objfile with caller_per_objfile.
6329
f030440d
TV
63302020-05-28 Tom de Vries <tdevries@suse.de>
6331
6332 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
6333 PR gold/15646 workaround to symbol kind "type".
6334
f0fbb768
TT
63352020-05-27 Tom Tromey <tromey@adacore.com>
6336
6337 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
6338
af0b2a3e
TT
63392020-05-27 Tom Tromey <tromey@adacore.com>
6340
6341 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
6342 Use htab_find_with_hash.
6343 <add_abbrev>: Remove "abbrev_number" parameter.
6344 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
6345 "abbrev_number" parameter. Use htab_find_slot_with_hash.
6346 (hash_abbrev): Add comment.
6347 (abbrev_table::lookup_abbrev): Move to header file.
6348 (abbrev_table::read): Update.
6349
7d00ffec
TT
63502020-05-27 Tom Tromey <tromey@adacore.com>
6351
6352 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
6353 method.
6354 <canonical_name>: New member.
6355 <raw_name>: Rename from "name".
6356 (partial_die_info): Initialize canonical_name.
6357 (scan_partial_symbols): Check raw_name.
6358 (partial_die_parent_scope, partial_die_full_name)
6359 (add_partial_symbol, add_partial_subprogram)
6360 (add_partial_enumeration, load_partial_dies): Use "name" method.
6361 (partial_die_info::name): New method.
6362 (partial_die_info::read, guess_partial_die_structure_name)
6363 (partial_die_info::fixup): Update.
6364
697bba18
TT
63652020-05-27 Tom Tromey <tromey@adacore.com>
6366
6367 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
6368 <get_ref_die_offset>: Inline.
6369 <get_ref_die_offset_complaint>: New method.
6370 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
6371 (attribute::get_ref_die_offset_complaint): Rename from
6372 get_ref_die_offset. Just issue complaint.
6373
c17ace43
HD
63742020-05-27 Hannes Domani <ssbssa@yahoo.de>
6375
6376 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
6377
96445f0b
HD
63782020-05-27 Hannes Domani <ssbssa@yahoo.de>
6379
6380 * exec.c (exec_file_attach): Use errno value of first openp failure.
6381
ac637ec3
HD
63822020-05-27 Hannes Domani <ssbssa@yahoo.de>
6383
6384 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
6385 Don't close thread handle.
6386
17ee85fc
TT
63872020-05-27 Tom Tromey <tom@tromey.com>
6388 Simon Marchi <simon.marchi@efficios.com>
6389
6390 * objfiles.h (struct objfile) <partial_symtabs>: Now a
6391 shared_ptr.
6392 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
6393 member.
6394 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
6395 dwarf2_per_bfd_objfile_data_key>: New globals.
6396 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
6397 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
6398 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
6399 shared.
6400 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
6401 short-circuit when sharing.
6402 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
6403 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
6404
39b16f87
SM
64052020-05-27 Simon Marchi <simon.marchi@efficios.com>
6406
6407 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
6408 to...
6409 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
6410 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
6411
fcf23d5b
SM
64122020-05-27 Simon Marchi <simon.marchi@efficios.com>
6413
6414 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
6415 build_name_components, find_name_components_bounds>:
6416 Add per_objfile parameter.
6417 (struct mapped_index) <symbol_name_at>: Likewise.
6418 (struct mapped_debug_names): Remove constructor.
6419 <dwarf2_per_objfile>: Remove field.
6420 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
6421 (mapped_index_base::find_name_components_bounds,
6422 mapped_index_base::build_name_components,
6423 dw2_expand_symtabs_matching_symbol): Likewise.
6424 (class mock_mapped_index) <symbol_name_at>: Likewise.
6425 (check_match): Likewise.
6426 (check_find_bounds_finds): Likewise.
6427 (test_mapped_index_find_name_component_bounds): Update.
6428 (CHECK_MATCH): Update.
6429 (dw2_expand_symtabs_matching): Update.
6430 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
6431 per_objfile parameter.
6432 <find_vec_in_debug_names>: Likewise.
6433 <m_per_objfile>: New field.
6434 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
6435 parameter.
6436 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
6437 (dw2_debug_names_iterator::next): Update.
6438 (dw2_debug_names_lookup_symbol): Update.
6439 (dw2_debug_names_expand_symtabs_for_function): Update.
6440 (dw2_debug_names_map_matching_symbols): Update.
6441 (dw2_debug_names_expand_symtabs_matching): Update.
6442 (dwarf2_read_debug_names): Update.
6443
7188ed02
SM
64442020-05-27 Simon Marchi <simon.marchi@efficios.com>
6445
6446 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
6447 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
6448 move to dwarf2_per_objfile.
6449 <read_in_chain>: Remove.
6450 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
6451 remove_all_cus, age_comp_units>: New methods.
6452 <m_dwarf2_cus>: New member.
6453 (struct dwarf2_per_cu_data) <cu>: Remove.
6454 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
6455 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
6456 moved to methods of dwarf2_per_objfile.
6457 (dwarf2_clear_marks): Remove.
6458 (dwarf2_queue_item::~dwarf2_queue_item): Update.
6459 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
6460 (dwarf2_per_bfd::free_cached_comp_units): Remove.
6461 (dwarf2_per_objfile::remove_all_cus): New.
6462 (class free_cached_comp_units) <~free_cached_comp_units>:
6463 Update.
6464 (load_cu): Update.
6465 (dw2_do_instantiate_symtab): Adjust.
6466 (fill_in_sig_entry_from_dwo_entry): Adjust.
6467 (cutu_reader::init_tu_and_read_dwo_dies): Update.
6468 (cutu_reader::cutu_reader): Likewise.
6469 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
6470 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
6471 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
6472 and dwarf2_per_objfile::age_comp_units.
6473 (load_partial_comp_unit): Update.
6474 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
6475 (process_queue): Likewise.
6476 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
6477 backlink.
6478 (dwarf2_read_addr_index): Likewise.
6479 (follow_die_offset): Likewise.
6480 (dwarf2_fetch_die_loc_sect_off): Likewise.
6481 (dwarf2_fetch_constant_bytes): Likewise.
6482 (dwarf2_fetch_die_type_sect_off): Likewise.
6483 (follow_die_sig_1): Likewise.
6484 (load_full_type_unit): Likewise.
6485 (read_signatured_type): Likewise.
6486 (dwarf2_cu::dwarf2_cu): Don't set cu field.
6487 (dwarf2_cu::~dwarf2_cu): Remove.
6488 (dwarf2_per_objfile::get_cu): New.
6489 (dwarf2_per_objfile::set_cu): New.
6490 (age_cached_comp_units): Rename to...
6491 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
6492 to std::unordered_map.
6493 (free_one_cached_comp_unit): Rename to...
6494 (dwarf2_per_objfile::remove_cu): ... this. Adjust
6495 to std::unordered_map.
6496 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
6497 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
6498 a dwarf2_per_objfile in data.
6499 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
6500 (dwarf2_clear_marks): Remove.
6501
2e671100
SM
65022020-05-27 Simon Marchi <simon.marchi@efficios.com>
6503
6504 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
6505 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
6506 (init_tu_and_read_dwo_dies): Likewise.
6507 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
6508 (cutu_reader::cutu_reader): Likewise.
6509 (load_partial_comp_unit): Likewise.
6510 (process_psymtab_comp_unit): Update.
6511 (build_type_psymtabs_1): Update.
6512 (process_skeletonless_type_unit): Update.
6513 (load_full_comp_unit): Update.
6514 (find_partial_die): Update.
6515 (dwarf2_read_addr_index): Update.
6516 (read_signatured_type): Update.
6517
2e6a9f79
SM
65182020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6519
6520 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
6521 m_header_read_in>: New fields.
6522 <get_header>: New method.
6523 * dwarf2/read.c (per_cu_header_read_in): Remove.
6524 (dwarf2_per_cu_data::get_header): New.
6525 (dwarf2_per_cu_data::addr_size): Update.
6526 (dwarf2_per_cu_data::offset_size): Update.
6527 (dwarf2_per_cu_data::ref_addr_size): Update.
6528
1b555f17
SM
65292020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6530
6531 * dwarf2/read.c (load_cu): Return dwarf2_cu.
6532 (dw2_do_instantiate_symtab): Update.
6533 (queue_and_load_all_dwo_tus): Change parameter from
6534 dwarf2_per_cu_data to dwarf2_cu.
6535 (dwarf2_fetch_die_loc_sect_off): Update.
6536 (dwarf2_fetch_constant_bytes): Update.
6537 (dwarf2_fetch_die_type_sect_off): Update.
6538
8fc0b21d
SM
65392020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6540
6541 * dwarf2/read.c (process_full_comp_unit,
6542 process_full_type_unit): Remove per_cu, per_objfile paramters.
6543 Add dwarf2_cu parameter.
6544 (process_queue): Update.
6545
168c9250
SM
65462020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6547
6548 * dwarf2/read.c (create_cu_from_index_list): Replace
6549 dwarf2_per_objfile parameter with dwarf2_per_bfd.
6550 (create_cus_from_index_list): Likewise.
6551 (create_cus_from_index): Likewise.
6552 (create_signatured_type_table_from_index): Likewise.
6553 (create_cus_from_debug_names_list): Likewise.
6554 (create_cus_from_debug_names): Likewise.
6555 (dwarf2_read_gdb_index): Update.
6556 (dwarf2_read_debug_names): Update.
6557
e286671b
TT
65582020-05-27 Tom Tromey <tom@tromey.com>
6559 Simon Marchi <simon.marchi@efficios.com>
6560
6561 * dwarf2/read.h (struct dwarf2_per_objfile)
6562 <get_type_for_signatured_type, set_type_for_signatured_type>:
6563 New methods.
6564 <m_type_map>: New member.
6565 (struct signatured_type) <type>: Remove.
6566 * dwarf2/read.c
6567 (dwarf2_per_objfile::get_type_for_signatured_type,
6568 dwarf2_per_objfile::set_type_for_signatured_type): New.
6569 (get_signatured_type): Use new methods.
6570
8adb8487
TT
65712020-05-27 Tom Tromey <tom@tromey.com>
6572 Simon Marchi <simon.marchi@efficios.com>
6573
6574 * dwarf2/read.h (struct type_unit_group_unshareable): New.
6575 (struct dwarf2_per_objfile) <type_units>: New member.
6576 <get_type_unit_group_unshareable>: New method.
6577 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
6578 num_symtabs, symtabs>: Remove; move to
6579 type_unit_group_unshareable.
6580 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
6581 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
6582 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
6583
127bbf4b
SM
65842020-05-27 Simon Marchi <simon.marchi@efficios.com>
6585
6586 * dwarf2/read.h (struct dwarf2_per_cu_data):
6587 <dwarf2_per_objfile>: Remove.
6588 * dwarf2/read.c (create_cu_from_index_list): Don't assign
6589 dwarf2_per_objfile.
6590 (create_signatured_type_table_from_index): Likewise.
6591 (create_signatured_type_table_from_debug_names): Likewise.
6592 (create_debug_type_hash_table): Likewise.
6593 (fill_in_sig_entry_from_dwo_entry): Likewise.
6594 (create_type_unit_group): Likewise.
6595 (read_comp_units_from_section): Likewise.
6596 (create_cus_hash_table): Likewise.
6597
f6e649dd
SM
65982020-05-27 Simon Marchi <simon.marchi@efficios.com>
6599
6600 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
6601 dwarf2_per_cu_data::dwarf2_per_objfile.
6602 (compute_compunit_symtab_includes): Likewise.
6603 (dwarf2_cu::start_symtab): Likewise.
6604
aa66c379
SM
66052020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6606
6607 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
6608 parameter.
6609 * dwarf2/read.c (get_die_type_at_offset): Likewise.
6610 (read_namespace_alias): Update.
6611 (lookup_die_type): Update.
6612 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
6613 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
6614 Update.
6615 (disassemble_dwarf_expression): Update.
6616
120ce1b5
SM
66172020-05-27 Simon Marchi <simon.marchi@efficios.com>
6618
6619 * dwarf2/read.h (struct dwarf2_queue_item): Add
6620 dwarf2_per_objfile parameter, assign new parameter.
6621 <per_objfile>: New field.
6622 * dwarf2/read.c (free_one_cached_comp_unit): Add
6623 dwarf2_per_objfile parameter.
6624 (queue_comp_unit): Likewise.
6625 (dw2_do_instantiate_symtab): Update.
6626 (process_psymtab_comp_unit): Update.
6627 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
6628 (process_imported_unit_die): Update.
6629 (queue_and_load_dwo_tu): Update.
6630 (follow_die_offset): Update.
6631 (follow_die_sig_1): Update.
6632
9f47c707
SM
66332020-05-27 Simon Marchi <simon.marchi@efficios.com>
6634
6635 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
6636 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
6637 (read_call_site_scope): Assign per_objfile.
6638 (dwarf2_per_cu_data::objfile): Remove.
6639 * gdbtypes.h (struct call_site) <per_objfile>: New member.
6640 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
6641 dwarf2_per_objfile parameter.
6642 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
6643 dwarf2_per_objfile parameter.
6644 (dwarf_expr_reg_to_entry_parameter): Add output
6645 dwarf2_per_objfile parameter.
6646 (locexpr_get_frame_base): Update.
6647 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
6648 <push_dwarf_reg_entry_value>: Update.
6649 <call_site_to_target_addr>: Update.
6650 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
6651 parameter.
6652 (value_of_dwarf_reg_entry): Update.
6653 (rw_pieced_value): Update.
6654 (indirect_synthetic_pointer): Update.
6655 (dwarf2_evaluate_property): Update.
6656 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
6657 parameter.
6658 (locexpr_read_variable): Update.
6659 (locexpr_get_symbol_read_needs): Update.
6660 (loclist_read_variable): Update.
6661
14095eb3
SM
66622020-05-27 Simon Marchi <simon.marchi@efficios.com>
6663
6664 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
6665 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
6666 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
6667 parameter.
6668 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
6669 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
6670 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
6671 parameter.
6672 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
6673 sect_variable_value): Add dwarf2_per_objfile parameter.
6674 (class dwarf_evaluate_loc_desc) <dwarf_call,
6675 dwarf_variable_value>: Update.
6676 (fetch_const_value_from_synthetic_pointer): Add
6677 dwarf2_per_objfile parameter.
6678 (fetch_const_value_from_synthetic_pointer): Update.
6679 (coerced_pieced_ref): Update.
6680 (class symbol_needs_eval_context) <dwarf_call,
6681 dwarf_variable_value>: Update.
6682 (dwarf2_compile_expr_to_ax): Update.
6683
3c3cd3d4
SM
66842020-05-27 Simon Marchi <simon.marchi@efficios.com>
6685
6686 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
6687 parameter.
6688 (dwarf2_evaluate_loc_desc_full): Update.
6689
82ca3f51
SM
66902020-05-27 Simon Marchi <simon.marchi@efficios.com>
6691
6692 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
6693 parameter.
6694 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
6695 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
6696 dwarf2_per_objfile parameter.
6697 (decode_debug_loc_dwo_addresses): Likewise.
6698 (dwarf2_find_location_expression): Update.
6699 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
6700 (locexpr_describe_location_piece): Add dwarf2_per_objfile
6701 parameter.
6702 (disassemble_dwarf_expression): Add dwarf2_per_objfile
6703 parameter.
6704 (locexpr_describe_location_1): Likewise.
6705 (locexpr_describe_location): Update.
6706
4b167ea1
SM
67072020-05-27 Simon Marchi <simon.marchi@efficios.com>
6708
6709 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
6710 Remove.
6711 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
6712 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
6713 (dwarf2_compile_property_to_c): Update.
6714 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
6715 use text offset from objfile.
6716 (locexpr_tracepoint_var_ref): Update.
6717 (locexpr_generate_c_location): Update.
6718 (loclist_describe_location): Update.
6719 (loclist_tracepoint_var_ref): Update.
6720 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
6721 dwarf2_per_objfile parameter.
6722 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
6723 use text offset from objfile.
6724 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
6725
89b07335
SM
67262020-05-27 Simon Marchi <simon.marchi@efficios.com>
6727
6728 * dwarf2/expr.h (struct dwarf_expr_context)
6729 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
6730 <offset>: Remove.
6731 <per_objfile>: New member.
6732 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
6733 dwarf2_per_objfile parameter. Don't set offset, set
6734 per_objfile.
6735 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
6736 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
6737 a dwarf2_per_objfile object instead of an offset.
6738 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
6739 constructor.
6740 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
6741 to dwarf2_expr_executor constructor. Don't set offset.
6742 (dwarf2_fetch_cfa_info): Update.
6743 (struct dwarf2_frame_cache) <text_offset>: Remove.
6744 <per_objfile>: New field.
6745 (dwarf2_frame_cache): Update.
6746 (dwarf2_frame_prev_register): Update.
6747 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6748 <dwarf_evaluate_loc_desc>: Add constructor.
6749 (dwarf2_evaluate_loc_desc_full): Update.
6750 (dwarf2_locexpr_baton_eval): Update.
6751 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
6752 Add constructor.
6753 (dwarf2_loc_desc_get_symbol_read_needs): Update.
6754
293e7e51
SM
67552020-05-27 Simon Marchi <simon.marchi@efficios.com>
6756
6757 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
6758 addr_sized_int_type>: Move to dwarf2_cu.
6759 <int_type>: Move to dwarf2_per_objfile.
6760 (struct dwarf2_per_objfile) <int_type>: Move here.
6761 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
6762 addr_sized_int_type>: Move here.
6763 (read_func_scope): Update.
6764 (read_array_type): Update.
6765 (read_tag_string_type): Update.
6766 (attr_to_dynamic_prop): Update.
6767 (dwarf2_per_cu_data::int_type): Rename to...
6768 (dwarf2_per_objfile::int_type): ... this.
6769 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
6770 (dwarf2_cu::addr_sized_int_type): ... this.
6771 (read_subrange_type): Update.
6772 (dwarf2_per_cu_data::addr_type): Rename to...
6773 (dwarf2_cu::addr_type): ... this.
6774 (set_die_type): Update.
6775
64874a40
SM
67762020-05-27 Simon Marchi <simon.marchi@efficios.com>
6777
6778 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
6779 data through per_cu->cu.
6780
4ab09049
SM
67812020-05-27 Simon Marchi <simon.marchi@efficios.com>
6782
6783 * dwarf2/read.c (lookup_dwo_comp_unit): Change
6784 dwarf2_per_cu_data parameter fo dwarf2_cu.
6785 (lookup_dwo_type_unit): Likewise.
6786 (read_cutu_die_from_dwo): Likewise.
6787 (lookup_dwo_unit): Likewise.
6788 (open_and_init_dwo_file): Likewise.
6789 (lookup_dwo_cutu): Likewise.
6790 (lookup_dwo_comp_unit): Likewise.
6791 (lookup_dwo_type_unit): Likewise.
6792 (cutu_reader::init_tu_and_read_dwo_dies): Update.
6793 (cutu_reader::cutu_reader): Update.
6794
47b14e86
SM
67952020-05-27 Simon Marchi <simon.marchi@efficios.com>
6796
6797 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
6798 parameter.
6799 (process_full_type_unit): Likewise.
6800 (process_queue): Update.
6801
43182c09
SM
68022020-05-27 Simon Marchi <simon.marchi@efficios.com>
6803
6804 * dwarf2/read.c (recursively_compute_inclusions): Add
6805 dwarf2_per_objfile parameter.
6806 (compute_compunit_symtab_includes): Likewise.
6807 (process_cu_includes): Update.
6808
7aa104c4
SM
68092020-05-27 Simon Marchi <simon.marchi@efficios.com>
6810
6811 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
6812 parameter.
6813 (create_type_unit_group): Update.
6814 (process_psymtab_comp_unit_reader): Update.
6815 (build_type_psymtabs_reader): Update.
6816
e3beb21d
SM
68172020-05-27 Simon Marchi <simon.marchi@efficios.com>
6818
6819 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
6820 object through m_this_cu->cu.
6821
d460f660
SM
68222020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6823
6824 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
6825 the info parameter.
6826 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
6827
ab432490
SM
68282020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6829
6830 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
6831 per_objfile parameter.
6832 (load_full_type_unit): Add per_objfile parameter.
6833 (read_signatured_type): Likewise.
6834 (load_full_comp_unit): Likewise.
6835 (load_cu): Likewise.
6836 (dw2_do_instantiate_symtab): Likewise.
6837 (dw2_get_file_names): Likewise.
6838 (dw2_map_symtabs_matching_filename): Update.
6839 (dw_expand_symtabs_matching_file_matcher): Update.
6840 (dw2_map_symbol_filenames): Update.
6841 (process_psymtab_comp_unit): Add per_objfile parameter.
6842 (build_type_psymtabs_1): Update.
6843 (process_skeletonless_type_unit): Update.
6844 (dwarf2_build_psymtabs_hard): Update.
6845 (load_partial_comp_unit): Add per_objfile parameter.
6846 (scan_partial_symbols): Update.
6847 (load_full_comp_unit): Add per_objfile parameter.
6848 (process_imported_unit_die): Update.
6849 (create_cus_hash_table): Update.
6850 (find_partial_die): Update.
6851 (dwarf2_read_addr_index): Update.
6852 (follow_die_offset): Update.
6853 (dwarf2_fetch_die_loc_sect_off): Update.
6854 (dwarf2_fetch_constant_bytes): Update.
6855 (dwarf2_fetch_die_type_sect_off): Update.
6856 (follow_die_sig_1): Update.
6857 (load_full_type_unit): Add per_objfile parameter.
6858 (read_signatured_type): Likewise.
6859
313bad1b
SM
68602020-05-27 Simon Marchi <simon.marchi@efficios.com>
6861
6862 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
6863 of objfile_name.
6864
c3699833
SM
68652020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6866
6867 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
6868 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
6869 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
6870 field.
6871 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
6872 (create_cus_from_index): Update.
6873 (dwarf2_read_gdb_index): Update.
6874 (create_cus_from_debug_names): Update.
6875 (dwarf2_read_debug_names): Update.
6876 (get_abbrev_section_for_cu): Update.
6877 (create_all_comp_units): Update.
6878 (read_attribute_value): Update.
6879 (get_debug_line_section): Update.
6880 * dwarf2/index-cache.c (index_cache::store): Update.
6881 * dwarf2/index-write.c (save_gdb_index_command): Update.
6882 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
6883
1859c670
SM
68842020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6885
6886 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
6887 member.
6888 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
6889 dwarf2_per_cu_data::per_bfd.
6890 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
6891 (create_type_unit_group): Likewise.
6892 (queue_comp_unit): Remove reference to
6893 per_cu->dwarf2_per_objfile.
6894 (maybe_queue_comp_unit): Likewise.
6895 (fill_in_sig_entry_from_dwo_entry): Assign new field.
6896 (create_cus_hash_table): Assign new field.
6897
5e22e966
SM
68982020-05-27 Simon Marchi <simon.marchi@efficios.com>
6899
6900 * dwarf2/read.c: Replace
6901 dwarf2_cu->per_cu->dwarf2_per_objfile references with
6902 dwarf2_cu->per_objfile throughout.
6903
97a1449a
SM
69042020-05-27 Simon Marchi <simon.marchi@efficios.com>
6905
6906 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
6907 parameter, don't use per_cu->dwarf2_per_objfile.
6908 (dw2_instantiate_symtab): Likewise.
6909 (dw2_find_last_source_symtab): Update.
6910 (dw2_map_expand_apply): Update.
6911 (dw2_lookup_symbol): Update.
6912 (dw2_expand_symtabs_for_function): Update.
6913 (dw2_expand_all_symtabs): Update.
6914 (dw2_expand_symtabs_with_fullname): Update.
6915 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
6916 don't use per_cu->dwarf2_per_objfile.
6917 (dw2_expand_marked_cus): Update.
6918 (dw2_find_pc_sect_compunit_symtab): Update.
6919 (dw2_debug_names_lookup_symbol): Update.
6920 (dw2_debug_names_expand_symtabs_for_function): Update.
6921 (dw2_debug_names_map_matching_symbols): Update.
6922 (dwarf2_psymtab::expand_psymtab): Update.
6923
9e021579
SM
69242020-05-27 Simon Marchi <simon.marchi@efficios.com>
6925
6926 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
6927 <per_objfile>: New member.
6928 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
6929 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
6930 call to dwarf2_cu.
6931 (cutu_reader::cutu_reader): Update.
6932 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
6933
ae090bdb
SM
69342020-05-27 Simon Marchi <simon.marchi@efficios.com>
6935
6936 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
6937 struct dwarf2_per_objfile.
6938 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
6939 dwarf2_per_bfd.
6940 * dwarf2/read.c (set_die_type): Update.
6941 (get_die_type_at_offset): Update.
6942
af758d11
SM
69432020-05-27 Tom Tromey <tom@tromey.com>
6944 Simon Marchi <simon.marchi@efficios.com>
6945
6946 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
6947 method.
6948 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
6949 get_symtab, set_symtab>: New methods.
6950 <m_symtabs>: New field.
6951 (struct dwarf2_psymtab): Derive from partial_symtab.
6952 <readin_p, get_compunit_symtab>: Declare methods.
6953 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
6954 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
6955 New methods.
6956 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
6957 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
6958 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
6959 (dw2_symtab_iter_next, dw2_print_stats)
6960 (dw2_expand_symtabs_with_fullname)
6961 (dw2_expand_symtabs_matching_one)
6962 (dw_expand_symtabs_matching_file_matcher)
6963 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
6964 (dw2_debug_names_iterator::next)
6965 (dw2_debug_names_map_matching_symbols)
6966 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
6967 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
6968 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
6969 New methods.
6970 (get_compunit_symtab, process_full_comp_unit)
6971 (process_full_type_unit): Update.
6972 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
6973
5989a64e
SM
69742020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6975
6976 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
6977 then introduce a new dwarf2_per_objfile type.
6978 <read_line_string>: Move to the new dwarf2_per_objfile type.
6979 <objfile>: Likewise.
6980 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
6981 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
6982 dwarf2_per_objfile->per_bfd.
6983 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
6984 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
6985 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
6986 (dwarf2_per_bfd::free_cached_comp_units): ... this.
6987 (dwarf2_has_info): Allocate dwarf2_per_bfd.
6988 (dwarf2_per_objfile::locate_sections): Rename to...
6989 (dwarf2_per_bfd::locate_sections): ... this.
6990 (dwarf2_per_objfile::get_cutu): Rename to...
6991 (dwarf2_per_bfd::get_cutu): ... this.
6992 (dwarf2_per_objfile::get_cu): Rename to...
6993 (dwarf2_per_bfd::get_cu): ... this.
6994 (dwarf2_per_objfile::get_tu): Rename to...
6995 (dwarf2_per_bfd::get_tu): ... this.
6996 (dwarf2_per_objfile::allocate_per_cu): Rename to...
6997 (dwarf2_per_bfd::allocate_per_cu): ... this.
6998 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
6999 (dwarf2_per_bfd::allocate_signatured_type): ... this.
7000 (get_gdb_index_contents_ftype): Change parameter from
7001 dwarf2_per_objfile to dwarf2_per_bfd.
7002 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
7003 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
7004
a50264ba
TT
70052020-05-27 Tom Tromey <tom@tromey.com>
7006 Simon Marchi <simon.marchi@efficios.com>
7007
7008 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
7009 (allocate_piece_closure): Set "per_objfile" member.
7010 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
7011 (locexpr_describe_location, loclist_describe_location): Use new
7012 member.
7013 * dwarf2/read.c (read_call_site_scope)
7014 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
7015 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
7016 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
7017 handle_data_member_location): Set per_objfile member.
7018 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
7019 member.
7020 (struct dwarf2_loclist_baton) <per_objfile>: New member.
7021
d3473f0c
TT
70222020-05-27 Tom Tromey <tom@tromey.com>
7023
7024 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
7025 allocate_signatured_type>: Declare new methods.
7026 <m_num_psymtabs>: New member.
7027 (struct dwarf2_per_cu_data) <index>: New member.
7028 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
7029 (dwarf2_per_objfile::allocate_signatured_type): New methods.
7030 (create_cu_from_index_list): Use allocate_per_cu.
7031 (create_signatured_type_table_from_index)
7032 (create_signatured_type_table_from_debug_names)
7033 (create_debug_type_hash_table, add_type_unit)
7034 (read_comp_units_from_section): Use allocate_signatured_type.
7035
5717c425
TT
70362020-05-27 Tom Tromey <tom@tromey.com>
7037
7038 * psymtab.c (partial_map_expand_apply)
7039 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
7040 (psym_lookup_global_symbol_language)
7041 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
7042 (psym_print_stats, psym_expand_symtabs_for_function)
7043 (psym_map_symbol_filenames, psym_map_matching_symbols)
7044 (psym_expand_symtabs_matching)
7045 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
7046 (maintenance_check_psymtabs): Update.
7047 * psympriv.h (struct partial_symtab) <readin_p,
7048 get_compunit_symtab>: Add objfile parameter.
7049 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
7050 Likewise.
7051 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
7052 get_compunit_symtab>: Likewise.
7053 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
7054
45940949
TT
70552020-05-27 Tom Tromey <tom@tromey.com>
7056
7057 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
7058 member.
7059 * dwarf2/read.c (delete_file_name_entry): Fix comment.
7060 (create_cu_from_index_list)
7061 (create_signatured_type_table_from_index)
7062 (create_signatured_type_table_from_debug_names)
7063 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
7064 (dwarf2_create_include_psymtab)
7065 (create_debug_type_hash_table, add_type_unit)
7066 (create_type_unit_group, read_comp_units_from_section)
7067 (dwarf2_compute_name, create_cus_hash_table)
7068 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
7069 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
7070 obstack.
7071 (dw2_get_real_path): Likewise. Change argument to
7072 dwarf2_per_objfile.
7073
f8c6d152
LM
70742020-05-27 Luis Machado <luis.machado@linaro.org>
7075
7076 PR tdep/26000
7077 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
7078 for ldrd (immediate).
7079
e98d2e6d
PW
70802020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7081
7082 * command.h: Add comment giving the name of class_tui.
7083 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
7084 create the fake command for the help for class_tui.
7085
53a47a3e
TT
70862020-05-26 Tom Tromey <tromey@adacore.com>
7087
7088 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
7089 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
7090 (val_atr): New function.
7091 (value_val_atr): Use it.
7092 * ada-valprint.c (print_optional_low_bound): Change low bound
7093 handling for enums.
7094 (val_print_packed_array_elements): Don't call discrete_position.
7095 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
7096 discrete_position for enum types.
7097 * language.c (default_print_array_index): Change type.
7098 * language.h (struct language_defn) <la_print_array_index>: Add
7099 index_type parameter, change type of index_value.
7100 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
7101 (default_print_array_index): Update.
7102 * valprint.c (maybe_print_array_index): Don't call
7103 value_from_longest. Update.
7104 (value_print_array_elements): Don't call discrete_position.
7105
0bc2354b
TT
71062020-05-26 Tom Tromey <tromey@adacore.com>
7107
7108 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
7109 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
7110
1218a4bf
CDA
71112020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
7112
7113 PR gdb/13519
7114 * avr-tdep.c (avr_integer_to_address): Return data or code
7115 address accordingly to the second 'type' argument of the
7116 function.
7117
92651b1d
MW
71182020-05-25 Michael Weghorn <m.weghorn@posteo.de>
7119
7120 * infcmd.c, inferior.h: (construct_inferior_arguments):
7121 Moved function from here to gdbsupport/common-inferior.{h,cc}
7122
0a4f5f8c
TT
71232020-05-23 Tom Tromey <tom@tromey.com>
7124
7125 Revert commit eca1f90c:
7126 * NEWS: Remove entry for completion styling.
7127 * completer.c (_rl_completion_prefix_display_length): Move
7128 declaration later.
7129 (gdb_fnprint): Revert.
7130 (gdb_display_match_list_1): Likewise.
7131 * cli/cli-style.c (completion_prefix_style)
7132 (completion_difference_style, completion_suffix_style): Remove.
7133 (_initialize_cli_style): Revert.
7134 * cli/cli-style.h (completion_prefix_style)
7135 (completion_difference_style, completion_suffix_style): Don't
7136 declare.
7137
e08bd6c5
PA
71382020-05-24 Pedro Alves <palves@redhat.com>
7139
7140 * symtab.c (completion_list_add_name): Return boolean indication
7141 of whether the symbol matched.
7142 (completion_list_add_symbol): Don't try to remove C++ aliases if
7143 the symbol didn't match in the first place.
7144 * symtab.h (completion_list_add_name): Return bool.
7145
ceacbf6e
SM
71462020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
7147
7148 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
7149 type::field.
7150
26f16254
JB
71512020-05-23 Joel Brobecker <brobecker@adacore.com>
7152
7153 GDB 9.2 released.
7154
eca1f90c
TT
71552020-05-23 Tom Tromey <tom@tromey.com>
7156
7157 * NEWS: Add entry for completion styling.
7158 * completer.c (_rl_completion_prefix_display_length): Move
7159 declaration earlier.
7160 (gdb_fnprint): Use completion_style.
7161 (gdb_display_match_list_1): Likewise.
7162 * cli/cli-style.c (completion_prefix_style)
7163 (completion_difference_style, completion_suffix_style): New
7164 globals.
7165 (_initialize_cli_style): Register new globals.
7166 * cli/cli-style.h (completion_prefix_style)
7167 (completion_difference_style, completion_suffix_style): Declare.
7168
51e2cfa2
PA
71692020-05-23 Pedro Alves <palves@redhat.com>
7170
7171 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
7172 (parse_escape): Use ISDIGIT instead of isdigit.
7173 (puts_debug): Use gdb_isprint instead of isprint.
7174 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
7175 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
7176 ISSPACE instead of isspace.
7177 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
7178 instead of isspace.
7179 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
7180 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
7181 instead of isxdigit and ISDIGIT instead of isdigit.
7182
80fc5e77
SM
71832020-05-22 Simon Marchi <simon.marchi@efficios.com>
7184
7185 * gdbtypes.h (struct type) <field>: New method.
7186 (TYPE_FIELDS): Remove, replace all uses with either type::fields
7187 or type::field.
7188
3cabb6b0
SM
71892020-05-22 Simon Marchi <simon.marchi@efficios.com>
7190
7191 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
7192 (TYPE_FIELDS): Use type::fields. Change all call sites that
7193 modify the propery to use type::set_fields instead.
7194
1f704f76
SM
71952020-05-22 Simon Marchi <simon.marchi@efficios.com>
7196
7197 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
7198 type::num_fields instead.
7199
5e33d5f4
SM
72002020-05-22 Simon Marchi <simon.marchi@efficios.com>
7201
7202 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
7203 methods.
7204 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
7205 that modify the number of fields to use type::set_num_fields
7206 instead.
7207
9392ebb3
TT
72082020-05-22 Tom Tromey <tromey@adacore.com>
7209
7210 * compile/compile-object-load.h (munmap_list_free): Don't
7211 declare.
7212
7c13f4e8
AB
72132020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
7214
7215 * annotate.c (annotate_source_line): Update return type, add call
7216 to update current symtab and line.
7217 * annotate.h (annotate_source_line): Update return type, and
7218 extend header comment.
7219 * source.c (info_line_command): Check annotation_level before
7220 calling annotate_source_line.
7221 * stack.c (print_frame_info): If calling annotate_source_line
7222 returns true, then don't print any other source line information.
7223
aa370940
SM
72242020-05-21 Simon Marchi <simon.marchi@efficios.com>
7225
7226 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
7227
84d53fa9
SM
72282020-05-21 Simon Marchi <simon.marchi@efficios.com>
7229
7230 * coffread.c (patch_type): Remove NULL check before xfree.
7231 * corefile.c (set_gnutarget): Likewise.
7232 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
7233 * exec.c (build_section_table): Likewise.
7234 * remote.c (remote_target::pass_signals): Likewise.
7235 * utils.c (n_spaces): Likewise.
7236 * cli/cli-script.c (document_command): Likewise.
7237 * i386-windows-tdep.c (core_process_module_section): Likewise.
7238 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
7239
9d428aae
SM
72402020-05-20 Simon Marchi <simon.marchi@efficios.com>
7241
7242 * symfile.c (reread_symbols): Clear objfile's section_offsets
7243 vector and section indices, re-compute them by calling
7244 sym_offsets.
7245
250106a7
TT
72462020-05-20 Tom Tromey <tromey@adacore.com>
7247
7248 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 7249 (desc_one_bound, desc_index_type): Compute field name.
250106a7 7250
9a0bacfb
TV
72512020-05-20 Tom de Vries <tdevries@suse.de>
7252
7253 PR symtab/25833
7254 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
7255
7b958a48
AM
72562020-05-20 Alan Modra <amodra@gmail.com>
7257
7258 PR 25993
7259 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
7260 bfd_set_filename.
7261 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
7262 passed to bfd_set_filename.
7263 * symfile-mem.c (add_vsyscall_page): Likewise for string
7264 passed to symbol_file_add_from_memory.
7265 (symbol_file_add_from_memory): Make name param a const char* and
7266 don't strdup.
7267
c7e97679
AM
72682020-05-20 Alan Modra <amodra@gmail.com>
7269
7270 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
7271 rather than accessing bfd->filename directly.
7272 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
7273 and use bfd_section_name.
7274 * dwarf2/frame.c (decode_frame_entry): Likewise.
7275 * exec.c (exec_set_section_address): Likewise.
7276 * solib-aix.c (solib_aix_bfd_open): Likewise.
7277 * stap-probe.c (get_stap_base_address): Likewise.
7278 * symfile.c (reread_symbols): Likewise.
7279
563c591b
TT
72802020-05-19 Tom Tromey <tromey@adacore.com>
7281
7282 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
7283
f408d82c
SM
72842020-05-19 Simon Marchi <simon.marchi@efficios.com>
7285
7286 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
7287
98c59b52
PA
72882020-05-19 Pedro Alves <palves@redhat.com>
7289
7290 * NEWS (set exec-file-mismatch): Adjust entry.
7291 * exec.c: Include "build-id.h".
7292 (validate_exec_file): Try to match build IDs instead of filenames.
7293 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
7294 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
7295 and pass down 'warn_if_slow'.
7296 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
7297 gdb_bfd_open_closure to pass it down.
7298 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
7299
4111f652
PA
73002020-05-19 Pedro Alves <palves@redhat.com>
7301
7302 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
7303 * target.c (target_fileio_open_1): Rename to target_fileio_open
7304 and make extern. Use bool.
7305 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
7306 (target_fileio_read_alloc_1): Adjust.
7307 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
7308 (target_fileio_open_warn_if_slow): Delete declaration.
7309
ad80db5b
PA
73102020-05-19 Pedro Alves <palves@redhat.com>
7311
7312 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
7313 Adjust all callers.
7314
1d6ce4d3
YS
73152020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
7316
7317 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
7318 whether disp is negative.
7319
9005fbbb
SM
73202020-05-19 Simon Marchi <simon.marchi@efficios.com>
7321
7322 * symfile.h (struct symfile_segment_data)
7323 <~symfile_segment_data>: Remove.
7324 <segment_info>: Change to std::vector.
7325 * symfile.c (default_symfile_segments): Update.
7326 * elfread.c (elf_symfile_segments): Update.
7327
68b888ff
SM
73282020-05-19 Simon Marchi <simon.marchi@efficios.com>
7329
7330 * symfile.h (struct symfile_segment_data) <struct segment>: New.
7331 <segments>: New.
7332 <segment_bases, segment_sizes>: Remove.
7333 * symfile.c (default_symfile_segments): Update.
7334 * elfread.c (elf_symfile_segments): Update.
7335 * remote.c (remote_target::get_offsets): Update.
7336 * solib-target.c (solib_target_relocate_section_addresses):
7337 Update.
7338
62982abd
SM
73392020-05-19 Simon Marchi <simon.marchi@efficios.com>
7340
7341 * symfile.h (struct symfile_segment_data): Initialize fields.
7342 <~symfile_segment_data>: Add.
7343 (symfile_segment_data_up): New.
7344 (struct sym_fns) <sym_segments>: Return a
7345 symfile_segment_data_up.
7346 (default_symfile_segments): Return a symfile_segment_data_up.
7347 (free_symfile_segment_data): Remove.
7348 (get_symfile_segment_data): Return a symfile_segment_data_up.
7349 * symfile.c (default_symfile_segments): Likewise.
7350 (get_symfile_segment_data): Likewise.
7351 (free_symfile_segment_data): Remove.
7352 (symfile_find_segment_sections): Update.
7353 * elfread.c (elf_symfile_segments): Return a
7354 symfile_segment_data_up.
7355 * remote.c (remote_target::get_offsets): Update.
7356 * solib-target.c (solib_target_relocate_section_addresses):
7357 Update.
7358 * symfile-debug.c (debug_sym_segments): Return a
7359 symfile_segment_data_up.
7360
7f204339
RO
73612020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7362
e52a0f1b
RO
7363 PR build/25981
7364 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
7365 Hardcode register numbers.
7366
7f204339
RO
7367 PR build/25981
7368 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
7369 procfs_find_LDT_entry): Remove.
7370 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
7371 procfs_find_LDT_entry): Remove.
7372 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
7373 Remove.
7374
7f32a4d5
PA
73752020-05-17 Pedro Alves <palves@redhat.com>
7376 Andrew Burgess <andrew.burgess@embecosm.com>
7377 Keno Fischer <keno@juliacomputing.com>
7378
7379 PR gdb/25741
7380 * breakpoint.c (build_target_condition_list): Update comments.
7381 (build_target_command_list): Update comments and skip matching
7382 locations.
7383 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
7384 a separate function. Simplify "set breakpoint auto-hw off"
7385 handling.
7386 (insert_breakpoints): Update comment.
7387 (tracepoint_locations_match): New parameter. For breakpoints,
7388 compare location types too, if the caller wants to.
7389 (handle_automatic_hardware_breakpoints): New functions.
7390 (bp_location_is_less_than): Also sort by location type and
7391 hardware breakpoint length.
7392 (update_global_location_list): Handle "set breakpoint auto-hw on"
7393 here.
7394 (update_breakpoint_locations): Ask breakpoint_locations_match to
7395 ignore location types.
7396
7d93a1e0
SM
73972020-05-16 Simon Marchi <simon.marchi@efficios.com>
7398
7399 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
7400 type::name instead.
7401
d0e39ea2
SM
74022020-05-16 Simon Marchi <simon.marchi@efficios.com>
7403
7404 * gdbtypes.h (struct type) <name, set_name>: New methods.
7405 (TYPE_CODE): Use type::name. Change all call sites used to set
7406 the name to use type::set_name instead.
7407
2dab0c7b
TT
74082020-05-16 Tom Tromey <tom@tromey.com>
7409
7410 * top.c (quit_force): Update.
7411 * infrun.c (handle_no_resumed): Update.
7412 * top.h (all_uis): New function.
7413 (ALL_UIS): Remove.
7414
59f7bd8d
SM
74152020-05-16 Simon Marchi <simon.marchi@efficios.com>
7416
7417 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
7418
9bf058f0
PA
74192020-05-16 Pedro Alves <palves@redhat.com>
7420
7421 * ia64-linux-nat.c
7422 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
7423 Declare method.
7424 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
7425
8f86ae1a
SM
74262020-05-15 Simon Marchi <simon.marchi@efficios.com>
7427
7428 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
7429 (sparc64_adi_info): Likewise.
7430
d6bc0792
TT
74312020-05-15 Tom Tromey <tom@tromey.com>
7432
7433 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
7434 block_objfile.
7435 (lookup_objfile_from_block): Remove.
7436 (lookup_symbol_in_block, lookup_symbol_in_static_block)
7437 (lookup_global_symbol): Use block_objfile.
7438 * symtab.h (lookup_objfile_from_block): Don't declare.
7439 * printcmd.c (clear_dangling_display_expressions): Use
7440 block_objfile.
7441 * parse.c (operator_check_standard): Use block_objfile.
7442
8c14c3a3
TT
74432020-05-15 Tom Tromey <tom@tromey.com>
7444
7445 * language.c (language_alloc_type_symbol): Set
7446 SYMBOL_SECTION.
7447 * symtab.c (initialize_objfile_symbol): Remove.
7448 (allocate_symbol): Remove.
7449 (allocate_template_symbol): Remove.
7450 * dwarf2/read.c (fixup_go_packaging): Use "new".
7451 (new_symbol): Use "new".
7452 (read_variable): Don't call initialize_objfile_symbol. Use
7453 "new".
7454 (read_func_scope): Use "new".
7455 * xcoffread.c (process_xcoff_symbol): Don't call
7456 initialize_objfile_symbol.
7457 (SYMBOL_DUP): Remove.
7458 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
7459 "new".
7460 * symtab.h (allocate_symbol, initialize_objfile_symbol)
7461 (allocate_template_symbol): Don't declare.
7462 (struct symbol): Add copy constructor. Change defaults.
7463 * jit.c (finalize_symtab): Use "new".
7464 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
7465 Use "new".
7466 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
7467 (common_block_end): Use "new".
7468 * mdebugread.c (parse_symbol): Use "new".
7469 (new_symbol): Likewise.
7470
5b4a1a8d
PW
74712020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7472
7473 * NEWS: Mention changes to help and apropos.
7474
57b4f16e
PW
74752020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7476
7477 * command.h (enum command_class): Improve comments, document
7478 that class_alias is for user-defined aliases, give the class
7479 name for each class, remove unused class_xdb.
7480 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
7481 * breakpoint.c (_initialize_breakpoint): Replace class_alias
7482 by a precise class.
7483 * infcmd.c (_initialize_infcmd): Likewise.
7484 * reverse.c (_initialize_reverse): Likewise.
7485 * stack.c (_initialize_stack): Likewise.
7486 * symfile.c (_initialize_symfile): Likewise.
7487 * tracepoint.c (_initialize_tracepoint): Likewise.
7488
7c05caf7
PW
74892020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7490
7491 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
7492 when their aliased command is traversed.
7493 (help_cmd): Add fput_command_names_styled call to
7494 output command name and aliases when command has an alias.
7495
3b3aaacb
PW
74962020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7497
7498 * cli/cli-decode.h (help_cmd_list): Remove declaration.
7499 * cli/cli-decode.c (help_cmd_list): Declare as static,
7500 remove prefix argument, use bool for recurse arg, rework to show the aliases of
7501 a command together with the command.
7502 (fput_command_name_styled, fput_command_names_styled): New functions.
7503 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
7504 fput_command_name_styled.
7505 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
7506 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
7507
7aa1b46f
PW
75082020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7509
7510 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
7511 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
7512 * command.h (cmd_show_list): Likewise.
7513 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
7514 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
7515
89bcba74
PW
75162020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7517
7518 * unittests/command-def-selftests.c (traverse_command_structure):
7519 Verify all commands of a list have the same prefix command and
7520 that only the top cmdlist commands have a null prefix.
7521
3f4d92eb
PW
75222020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7523
7524 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
7525 as prefix, not one of its aliases.
7526 (set_cmd_prefix): Remove.
7527 (do_add_cmd): Centralize the setting of the prefix of a command, when
7528 command is defined after its full chain of prefix commands.
7529 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
7530 (add_setshow_cmd_full): Likewise.
7531 (update_prefix_field_of_prefixed_commands): New function.
7532 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
7533 update_prefix_field_of_prefixed_commands.
7534 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
7535 addresses of remote_set_cmdlist and remote_show_cmdlist given
7536 as argument, not the address of an argument.
7537 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
7538 * gdb/remote.c (_initialize_remote): Likewise.
7539
0605465f
PW
75402020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7541
7542 * cli/cli-cmds.c (alias_command): Check for an existing alias
7543 using lookup_cmd_composition, as valid_command_p is too strict
7544 and forbids aliases that are the prefix of an existing alias
7545 or command.
7546 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
7547 command is properly recognised as a valid command.
7548
58e6ac70
PW
75492020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7550
7551 * unittests/help-doc-selftests.c: Rename to
7552 unittests/command-def-selftests.c
7553 * unittests/command-def-selftests.c (help_doc_tests): Update some
7554 comments.
7555 (command_structure_tests, traverse_command_structure): New namespace
7556 and function.
7557 (command_structure_invariants_tests): New function.
7558 (_initialize_command_def_selftests) Renamed from
7559 _initialize_help_doc_selftests, register command_structure_invariants
7560 selftest.
7561
a7b9ceb8
PW
75622020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7563
7564 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
7565 an alias of 'show'.
7566
b2188a06
JB
75672020-05-15 Joel Brobecker <brobecker@adacore.com>
7568
7569 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
7570 ada_is_fixed_point_type. Update all callers.
7571 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
7572 all callers.
7573 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
7574 Update all callers.
7575 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
7576 print_fixed_point_type. Update all callers.
7577 * ada-valprint.c (ada_value_print_num): Replace call to
7578 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
7579
a51951c2
KB
75802020-05-14 Kevin Buettner <kevinb@redhat.com>
7581
7582 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
7583 processors.
7584 (cpu_supports_bts): Add CV_AMD case.
7585
29d6859f
LM
75862020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
7587 Simon Marchi <simon.marchi@efficios.com>
7588
7589 * infrun.c (stop_all_threads): Collect multiple wait events at
7590 each pass.
7591
78134374
SM
75922020-05-14 Simon Marchi <simon.marchi@efficios.com>
7593
7594 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
7595 type::code instead.
7596
67607e24
SM
75972020-05-14 Simon Marchi <simon.marchi@efficios.com>
7598
7599 * gdbtypes.h (struct type) <code, set_code>: New methods.
7600 (TYPE_CODE): Use type::code. Change all call sites used to set
7601 the code to use type::set_code instead.
7602
a05575d3
TBA
76032020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7604 Tom de Vries <tdevries@suse.de>
7605 Pedro Alves <palves@redhat.com>
7606
7607 PR threads/25478
7608 * infrun.c (stop_all_threads): Do NOT ignore
7609 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
7610 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
7611 received.
7612 (handle_no_resumed): Remove code handling a live inferior with no
7613 threads.
7614 * remote.c (has_single_non_exited_thread): New.
7615 (remote_target::update_thread_list): Do not delete a thread if is
7616 the last thread of the process.
7617 * thread.c (thread_select): Call delete_exited_threads instead of
7618 prune_threads.
7619
6ad82919
TBA
76202020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7621
7622 * infrun.c (stop_all_threads): Enable/disable thread events of all
7623 targets. Move a debug message denoting the end of the function
7624 into the SCOPED_EXIT block.
7625
d890404b
TBA
76262020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7627
7628 * process-stratum-target.h: Include <set>.
7629 (all_non_exited_process_targets, switch_to_target_no_thread): New
7630 function declarations.
7631 * process-stratum-target.c (all_non_exited_process_targets)
7632 (switch_to_target_no_thread): New function implementations.
7633
293b3ebc
TBA
76342020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7635
7636 * infrun.c (handle_inferior_event): Extract out a piece of code
7637 into...
7638 (mark_non_executing_threads): ...this new function.
7639
7ca9b62a
TBA
76402020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7641
7642 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
7643 use.
7644
fc75c28b
TBA
76452020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7646
7647 * regcache.c (regcache_read_pc_protected): New function
7648 implementation that returns 0 if the PC cannot read via
7649 'regcache_read_pc'.
7650 * infrun.c (proceed): Call 'regcache_read_pc_protected'
7651 instead of 'regcache_read_pc'.
7652 (keep_going_pass_signal): Ditto.
7653
a89febbd
TT
76542020-05-13 Tom Tromey <tromey@adacore.com>
7655
7656 * ada-lang.c (align_value): Remove.
7657 (ada_template_to_fixed_record_type_1): Use align_up.
7658
f7e23710
TBA
76592020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7660
7661 * async-event.c: Update the copyright year.
7662 * async-event.h: Update the copyright year.
7663
02ff80c2
SM
76642020-05-12 Simon Marchi <simon.marchi@efficios.com>
7665
7666 * objfiles.h (is_addr_in_objfile,
7667 shared_objfile_contains_address_p): Return bool.
7668 * objfile.c (is_addr_in_objfile,
7669 shared_objfile_contains_address_p): Return bool.
7670
4fd6c7e8
TT
76712020-05-11 Tom Tromey <tromey@adacore.com>
7672
7673 * cli/cli-cmds.c (info_command): Restore.
7674 (_initialize_cli_cmds): Use add_prefix_command for "info".
7675 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
7676
5eb68a39
TT
76772020-05-11 Tom Tromey <tromey@adacore.com>
7678
7679 * ada-lang.c (ada_value_primitive_field): Now public.
7680 * ada-lang.h (ada_value_primitive_field): Declare.
7681 * ada-valprint.c (print_field_values): Use
7682 ada_value_primitive_field for wrapper fields.
7683
7666722f
TV
76842020-05-11 Tom de Vries <tdevries@suse.de>
7685
7686 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
7687 MODULE_DOMAIN.
7688
3ee6bb11
TV
76892020-05-11 Tom de Vries <tdevries@suse.de>
7690
7691 PR symtab/25941
7692 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
7693 with length 0, if not gdb-produced.
7694 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
7695
43434996
TV
76962020-05-09 Tom de Vries <tdevries@suse.de>
7697
7698 PR gdb/25955
7699 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
7700 calculation.
7701
2f78cffc
TT
77022020-05-09 Tom Tromey <tom@tromey.com>
7703
7704 * top.c (server_command): Now bool.
7705 * top.h (server_command): Now bool.
7706
4f7bc5ed
TT
77072020-05-08 Tom Tromey <tromey@adacore.com>
7708
7709 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
7710 already being processed.
7711
8be4b118
TT
77122020-05-08 Tom Tromey <tom@tromey.com>
7713
7714 * printcmd.c (struct display) <next>: Remove.
7715 <display>: New constructor.
7716 <exp_string>: Now a std::string.
7717 <enabled_p>: Now a bool.
7718 (display_number): Move definition earlier.
7719 (displays): Rename from display_chain. Now a std::vector.
7720 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
7721 (display_command): Update.
7722 (do_one_display, disable_display)
7723 (enable_disable_display_command, do_enable_disable_display):
7724 Update.
7725 (free_display): Remove.
7726 (clear_displays): Rewrite.
7727 (delete_display): Update.
7728 (map_display_numbers): Use function_view. Remove "data"
7729 parameter. Update.
7730 (do_delete_display): Remove.
7731 (undisplay_command): Update.
7732 (do_one_display, do_displays, disable_display)
7733 (info_display_command): Update.
7734 (do_enable_disable_display): Remove.
7735 (enable_disable_display_command)
7736 (clear_dangling_display_expressions): Update.
7737
94c93c35
TT
77382020-05-08 Tom Tromey <tom@tromey.com>
7739
7740 * symtab.c (set_symbol_cache_size)
7741 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
7742 (maintenance_print_symbol_cache_statistics): Update.
7743 * symmisc.c (print_symbol_bcache_statistics)
7744 (print_objfile_statistics, maintenance_print_objfiles)
7745 (maintenance_info_symtabs, maintenance_check_symtabs)
7746 (maintenance_expand_symtabs, maintenance_info_line_tables):
7747 Update.
7748 * symfile-debug.c (set_debug_symfile): Update.
7749 * source.c (forget_cached_source_info): Update.
7750 * python/python.c (gdbpy_progspaces): Update.
7751 * psymtab.c (maintenance_info_psymtabs): Update.
7752 * probe.c (parse_probes): Update.
7753 * linespec.c (iterate_over_all_matching_symtabs)
7754 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
7755 * guile/scm-progspace.c (gdbscm_progspaces): Update.
7756 * exec.c (exec_target::close): Update.
7757 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
7758 * breakpoint.c (print_one_breakpoint_location)
7759 (create_longjmp_master_breakpoint)
7760 (create_std_terminate_master_breakpoint): Update.
7761 * progspace.c (program_spaces): Now a std::vector.
7762 (maybe_new_address_space): Update.
7763 (add_program_space): Remove.
7764 (program_space::program_space): Update.
7765 (remove_program_space): Update.
7766 (number_of_program_spaces): Remove.
7767 (print_program_space, update_address_spaces): Update.
7768 * progspace.h (program_spaces): Change type.
7769 (ALL_PSPACES): Remove.
7770 (number_of_program_spaces): Don't declare.
7771 (struct program_space) <next>: Remove.
7772
a1fd1ac9
TT
77732020-05-08 Tom Tromey <tom@tromey.com>
7774
7775 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
7776 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
7777 (enable_break): Update.
7778 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
7779 (frv_fdpic_find_canonical_descriptor): Update.
7780 (frv_fetch_objfile_link_map): Update.
7781 * progspace.c (program_space::free_all_objfiles): Update.
7782 (program_space::solibs): New method.
7783 * progspace.h (struct program_space) <solibs>: New method.
7784 * solist.h (master_so_list): Don't declare.
7785 (ALL_SO_LIBS): Remove.
7786 * solib.h (so_list_head): Remove.
7787 (update_solib_list): Update comment.
7788 * solib.c (master_so_list): Remove.
7789 (solib_used, update_solib_list, solib_add)
7790 (info_sharedlibrary_command, clear_solib)
7791 (reload_shared_libraries_1, remove_user_added_objfile): Update.
7792
38eae084
TT
77932020-05-08 Tom Tromey <tom@tromey.com>
7794
7795 * extension.c (extension_languages): Now a std::array.
7796 (ALL_EXTENSION_LANGUAGES): Remove.
7797 (get_ext_lang_defn, get_ext_lang_of_file)
7798 (eval_ext_lang_from_control_command): Update.
7799 (finish_ext_lang_initialization)
7800 (auto_load_ext_lang_scripts_for_objfile)
7801 (ext_lang_type_printers::ext_lang_type_printers)
7802 (apply_ext_lang_type_printers)
7803 (ext_lang_type_printers::~ext_lang_type_printers)
7804 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
7805 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
7806 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
7807 (get_matching_xmethod_workers, ext_lang_colorize)
7808 (ext_lang_before_prompt): Update.
7809 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
7810
596dc4ad
TT
78112020-05-08 Tom Tromey <tom@tromey.com>
7812
7813 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
7814 overload.
7815 <swap_string, m_string>: Remove.
7816 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
7817 Update.
7818 * stabsread.c (define_symbol, read_type): Update.
7819 * linespec.c (find_linespec_symbols): Update.
7820 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
7821 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
7822 * dbxread.c (read_dbx_symtab): Update.
7823 * cp-support.h (cp_canonicalize_string_full)
7824 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
7825 Return unique_xmalloc_ptr.
7826 * cp-support.c (inspect_type): Update.
7827 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
7828 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
7829 Likewise.
7830 * c-typeprint.c (print_name_maybe_canonical): Update.
7831 * break-catch-throw.c (check_status_exception_catchpoint):
7832 Update.
7833
bf4cb9be
TV
78342020-05-08 Tom de Vries <tdevries@suse.de>
7835
7836 * infrun.c (follow_fork): Copy current_line and current_symtab to
7837 child thread.
7838
a1b68f28
SM
78392020-05-07 Simon Marchi <simon.marchi@efficios.com>
7840
7841 * async-event.c (struct async_signal_handler, struct
7842 async_event_handler): Reformat, remove typedef.
7843
98d48915
SM
78442020-05-07 Simon Marchi <simon.marchi@efficios.com>
7845
7846 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
7847 access thistype->main_type->dyn_prop_list directly.
7848
7aa91313
SM
78492020-05-07 Simon Marchi <simon.marchi@efficios.com>
7850
7851 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
7852 (remove_dyn_prop): Remove. Update all users to use
7853 type::remove_dyn_prop.
7854 * gdbtypes.c (remove_dyn_prop): Rename to...
7855 (type::remove_dyn_prop): ... this.
7856
5c54719c
SM
78572020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
7858
7859 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
7860 (add_dyn_prop): Remove. Update all users to use
7861 type::add_dyn_prop.
7862 * gdbtypes.c (add_dyn_prop): Rename to...
7863 (type::add_dyn_prop): ... this.
7864
24e99c6c
SM
78652020-05-07 Simon Marchi <simon.marchi@efficios.com>
7866
7867 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
7868 (get_dyn_prop): Remove. Update all users to use
7869 type::dyn_prop.
7870 * gdbtypes.c (get_dyn_prop): Rename to...
7871 (type::dyn_prop): ... this.
7872
0d4bf016
SM
78732020-05-06 Simon Marchi <simon.marchi@efficios.com>
7874
7875 * gdbtypes.h (struct main_type) <flag_static>: Remove.
7876
ac4a4f1c
SM
78772020-05-06 Simon Marchi <simon.marchi@efficios.com>
7878
7879 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
7880 instruction, skip it if it's there.
7881
a3bbacc1
SM
78822020-05-05 Simon Marchi <simon.marchi@efficios.com>
7883
7884 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
7885
c3236f84
SM
78862020-05-04 Simon Marchi <simon.marchi@efficios.com>
7887
7888 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
7889 * gdbtypes.c (recursive_dump_type): Remove use of
7890 TYPE_INCOMPLETE.
7891
3b6acaee
TT
78922020-05-03 Tom Tromey <tom@tromey.com>
7893
7894 * breakpoint.c (catch_command, tcatch_command): Remove.
7895 (_initialize_breakpoint): Use add_basic_prefix_cmd,
7896 add_show_prefix_cmd.
7897 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
7898 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
7899 Remove.
7900 (add_internal_problem_command): Use add_basic_prefix_cmd,
7901 add_show_prefix_cmd.
7902 * mips-tdep.c (set_mipsfpu_command): Remove.
7903 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
7904 * dwarf2/index-cache.c (set_index_cache_command): Remove.
7905 (_initialize_index_cache): Use add_basic_prefix_cmd.
7906 * memattr.c (dummy_cmd): Remove.
7907 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
7908 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
7909 (_initialize_tui_win): Use add_basic_prefix_cmd,
7910 add_show_prefix_cmd.
7911 * cli/cli-logging.c (set_logging_command): Remove.
7912 (_initialize_cli_logging): Use add_basic_prefix_cmd,
7913 add_show_prefix_cmd.
7914 (show_logging_command): Remove.
7915 * target.c (target_command): Remove.
7916 (add_target): Use add_basic_prefix_cmd.
7917
a51119cd
HD
79182020-05-02 Hannes Domani <ssbssa@yahoo.de>
7919
7920 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
7921
652fc23a 79222020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 7923
652fc23a
PW
7924 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
7925 info_command.
7926
117539e6
KR
79272020-04-30 Kamil Rytarowski <n54@gmx.com>
7928
7929 * nbsd-nat.c (nbsd_enable_proc_events)
7930 (nbsd_nat_target::post_startup_inferior): Add.
7931 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
7932 (nbsd_nat_target::update_thread_list): Rewrite.
7933 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
7934 "PTRACE_LWP_CREATE".
7935 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
7936
102e38eb 79372020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 7938
102e38eb
PW
7939 * stack.c (_initialize_stack): Remove duplicated creation
7940 of "frame" command and "f" alias.
7941
ee9d1e5f
HD
79422020-04-30 Hannes Domani <ssbssa@yahoo.de>
7943
7944 PR gdb/18706
7945 * gdbtypes.c (check_typedef): Calculate size of array of
7946 stubbed type.
7947
627c7fb8
HD
79482020-04-30 Hannes Domani <ssbssa@yahoo.de>
7949
7950 PR gdb/15559
7951 * i386-tdep.c (i386_push_dummy_call): Call
7952 i386_thiscall_push_dummy_call.
7953 (i386_thiscall_push_dummy_call): New function.
7954 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
7955 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
7956 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
7957
ffc2844e
SM
79582020-04-29 Simon Marchi <simon.marchi@efficios.com>
7959
7960 * gdbarch.sh (do_read): Add shellcheck disable directive for
7961 warning SC2162.
7962
1207375d
SM
79632020-04-29 Simon Marchi <simon.marchi@efficios.com>
7964
7965 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
7966 "referenced but not assigned" warning.
7967
9fdb2916
SM
79682020-04-29 Simon Marchi <simon.marchi@efficios.com>
7969
7970 * gdbarch.sh: Remove code that sets fallbackdefault.
7971
759cea5e
SM
79722020-04-29 Simon Marchi <simon.marchi@efficios.com>
7973
7974 * gdbarch.sh: Use shell operators && and || instead of
7975 -a and -o.
7976
cb02ab24
SM
79772020-04-29 Simon Marchi <simon.marchi@efficios.com>
7978
7979 * gdbarch.sh: Use $(...) instead of `...`.
7980
a6fc5ffc
SM
79812020-04-29 Simon Marchi <simon.marchi@efficios.com>
7982
7983 * gdbarch.sh: Use double quotes around variables.
7984
8d113d13
SM
79852020-04-29 Simon Marchi <simon.marchi@efficios.com>
7986
7987 * gdbarch.sh: Use %s with printf, instead of variables in the
7988 format string.
7989
ed6acedd
TT
79902020-04-29 Tom Tromey <tromey@adacore.com>
7991
7992 PR ada/25875:
7993 * dwarf2/read.c (update_enumeration_type_from_children): Compute
7994 type fields here.
7995 (read_enumeration_type): Call
7996 update_enumeration_type_from_children later. Update comments.
7997 (process_enumeration_scope): Don't create type fields.
7998
b68b1b58
KR
79992020-04-29 Kamil Rytarowski <n54@gmx.com>
8000
8001 * nbsd-tdep.c: Include "xml-syscall.h".
8002 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
8003
f94b2e03
KR
80042020-04-29 Kamil Rytarowski <n54@gmx.com>
8005
8006 * nbsd-nat.c: Include "sys/wait.h".
8007 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
8008 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
8009 (nbsd_nat_target::remove_exec_catchpoint)
8010 (nbsd_nat_target::set_syscall_catchpoint): Add.
8011 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
8012 (nbsd_nat_target::insert_exec_catchpoint)
8013 (nbsd_nat_target::remove_exec_catchpoint)
8014 (nbsd_nat_target::set_syscall_catchpoint): Add.
8015 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
8016 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
8017 `nbsd_get_syscall_number'.
8018
fc49bc72
TT
80192020-04-29 Tom Tromey <tom@tromey.com>
8020
8021 * stack.c (print_block_frame_labels): Remove.
8022
d642b692
HD
80232020-04-29 Hannes Domani <ssbssa@yahoo.de>
8024
8025 PR gdb/17320
8026 * ada-valprint.c (val_print_packed_array_elements): Move array
8027 end bracket to new line.
8028 (ada_val_print_string): Remove extra spaces before first array
8029 element.
8030 * c-valprint.c (c_value_print_array): Likewise.
8031 * m2-valprint.c (m2_print_array_contents): Likewise.
8032 (m2_value_print_inner): Likewise.
8033 * p-valprint.c (pascal_value_print_inner): Likewise.
8034 * valprint.c (generic_val_print_array): Likewise.
8035 (value_print_array_elements): Move first array element and array
8036 end bracket to new line.
8037
ea90f227
TV
80382020-04-29 Tom de Vries <tdevries@suse.de>
8039
8040 PR symtab/25889
8041 * linespec.c (find_method): Fix ix calculation.
8042
4498ef4f
KR
80432020-04-28 Kamil Rytarowski <n54@gmx.com>
8044
8045 * syscalls/update-netbsd.sh: New file.
8046 * syscalls/netbsd.xml: Regenerate.
8047 * data-directory/Makefile.in: Register `netbsd.xml' in
8048 `SYSCALLS_FILES'.
8049
a55e30b5
SM
80502020-04-28 Simon Marchi <simon.marchi@efficios.com>
8051
8052 * syscalls/update-freebsd.sh: Add double quotes.
8053
2b2fbab8
TT
80542020-04-28 Tom Tromey <tom@tromey.com>
8055
8056 * NEWS: Update.
8057 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
8058 (cmdpy_init): Allow class_tui.
8059
a65189c9
TV
80602020-04-28 Mark Williams <mark@myosotissp.com>
8061
8062 PR gdb/24480
8063 * dwarf2read.c: Add missing assingments to list_in_scope when
8064 start_symtab was already called.
8065
1b95cdb7
SM
80662020-04-28 Simon Marchi <simon.marchi@efficios.com>
8067
8068 PR gdb/25881
8069 * dwarf2/read.c (offset_map_type): Use
8070 gdb:hash_enum<sect_offset> as hash function.
8071
15cd93d0
TV
80722020-04-28 Tom de Vries <tdevries@suse.de>
8073
8074 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
8075 with DW_AT_signature.
8076
1eb39914
SM
80772020-04-27 Simon Marchi <simon.marchi@efficios.com>
8078
8079 * configure.ac: Remove check for fs_base/gs_base in
8080 user_regs_struct.
8081 * configure: Re-generate.
8082 * config.in: Re-generate.
8083 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
8084 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
8085 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
8086
991a3e2e
LM
80872020-04-27 Luis Machado <luis.machado@linaro.org>
8088
8089 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
8090 problematic inline frame unwinding situation.
8091 * frame.c (frame_id_computed_p): New function.
8092 * frame.h (frame_id_computed_p): New prototype.
8093
361ba0e8
TT
80942020-04-26 Tom Tromey <tom@tromey.com>
8095
8096 * command.h (enum command_class) <class_pseudo>: Remove.
8097
bc3609fd
PW
80982020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8099
8100 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
8101 and whitespace.
8102
b9771db7
KR
81032020-04-25 Kamil Rytarowski <n54@gmx.com>
8104
ec16513e
SM
8105 * inf-ptrace.c (inf_ptrace_target::wait): Remove
8106 `PT_GET_PROCESS_STATE' block.
b9771db7 8107
7151c1af
TT
81082020-04-24 Tom Tromey <tom@tromey.com>
8109
8110 * symtab.h (symbol_get_demangled_name): Don't declare.
8111 * symtab.c (symbol_get_demangled_name): Remove.
8112 (general_symbol_info::natural_name)
8113 (general_symbol_info::demangled_name): Update.
8114
906bb4c5
TT
81152020-04-24 Tom Tromey <tom@tromey.com>
8116
8117 PR rust/25025:
8118 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
8119
bcfe6157
TT
81202020-04-24 Tom Tromey <tom@tromey.com>
8121
8122 PR symtab/12707:
8123 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
8124 exists.
8125 (new_symbol): Likewise.
8126 * compile/compile-object-load.c (get_out_value_type): Use
8127 symbol_matches_search_name.
8128
f049a313
TT
81292020-04-24 Tom Tromey <tom@tromey.com>
8130
8131 * dwarf2/read.c (add_partial_symbol): Do not call
8132 compute_and_set_names.
8133
76e288d1
TT
81342020-04-24 Tom Tromey <tom@tromey.com>
8135
8136 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
8137 overload.
8138
2467f4f6
TT
81392020-04-24 Tom Tromey <tom@tromey.com>
8140
8141 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
8142 (add_psymbol_to_list): New overload. Make old overload call new
8143 one.
8144 * psympriv.h (add_psymbol_to_list): New overload.
8145
e61108c9
TT
81462020-04-24 Tom Tromey <tom@tromey.com>
8147
8148 * dwarf2/read.c (partial_die_info::read) <case
8149 DW_AT_linkage_name>: Use value_as_string.
8150 (dwarf2_string_attr): Use value_as_string.
8151 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
8152 method.
8153 * dwarf2/attribute.c (attribute::value_as_string): New method.
8154
8c87a452
TT
81552020-04-24 Tom Tromey <tom@tromey.com>
8156
8157 * symtab.c (general_symbol_info::natural_name)
8158 (general_symbol_info::demangled_name): Check for language_rust.
8159
787de330
TT
81602020-04-24 Tom Tromey <tom@tromey.com>
8161
8162 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
8163 (dwarf2_physname): ... from here.
8164 (partial_die_info::read): Add Rust "{" hack.
8165
ff985671
TT
81662020-04-24 Tom Tromey <tom@tromey.com>
8167
8168 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
8169 method.
8170 (symbol_set_demangled_name): Don't declare.
8171 * symtab.c (general_symbol_info::set_demangled_name): Rename from
8172 symbol_set_demangled_name.
8173 (general_symbol_info::set_language)
8174 (general_symbol_info::compute_and_set_names): Update.
8175 * minsyms.c (minimal_symbol_reader::install): Update.
8176 * dwarf2/read.c (new_symbol): Update.
8177
1acda803
TT
81782020-04-24 Tom Tromey <tromey@adacore.com>
8179
8180 PR python/23662:
8181 * python/py-type.c (convert_field): Handle
8182 FIELD_LOC_KIND_DWARF_BLOCK.
8183 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
8184 (typy_get_dynamic): Nw function.
8185 (type_object_getset): Add "dynamic".
8186 * NEWS: Add entry.
8187
d656f129
TT
81882020-04-24 Tom Tromey <tromey@adacore.com>
8189
8190 * ada-typeprint.c (print_choices, print_variant_part)
8191 (print_record_field_types_dynamic): New functions.
8192 (print_record_field_types): Use print_record_field_types_dynamic.
8193
7d79de9a
TT
81942020-04-24 Tom Tromey <tromey@adacore.com>
8195
8196 * dwarf2/read.c (handle_data_member_location): New overload.
8197 (dwarf2_add_field): Use it.
8198 (decode_locdesc): Add "computed" parameter. Update comment.
8199 * gdbtypes.c (is_dynamic_type_internal): Also look for
8200 FIELD_LOC_KIND_DWARF_BLOCK.
8201 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
8202 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
8203 virtual base classes.
8204 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
8205 FIELD_LOC_KIND_DWARF_BLOCK.
8206
f8e89861
TT
82072020-04-24 Tom Tromey <tromey@adacore.com>
8208
8209 * dwarf2/read.c (read_structure_type): Handle dynamic length.
8210 * gdbtypes.c (is_dynamic_type_internal): Check
8211 TYPE_HAS_DYNAMIC_LENGTH.
8212 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
8213 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
8214 New macros.
8215 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
8216 constant.
8217
9c6a1327
TT
82182020-04-24 Tom Tromey <tromey@adacore.com>
8219
8220 * dwarf2/read.c (struct variant_field): Rewrite.
8221 (struct variant_part_builder): New.
8222 (struct nextfield): Remove "variant" field. Add "offset".
8223 (struct field_info): Add "current_variant_part" and
8224 "variant_parts".
8225 (alloc_discriminant_info): Remove.
8226 (alloc_rust_variant): New function.
8227 (quirk_rust_enum): Update.
8228 (dwarf2_add_field): Set "offset" member. Don't handle
8229 DW_TAG_variant_part.
8230 (offset_map_type): New typedef.
8231 (convert_variant_range, create_one_variant)
8232 (create_one_variant_part, create_variant_parts)
8233 (add_variant_property): New functions.
8234 (dwarf2_attach_fields_to_type): Call add_variant_property.
8235 (read_structure_type): Don't handle DW_TAG_variant_part.
8236 (handle_variant_part, handle_variant): New functions.
8237 (handle_struct_member_die): Use them.
8238 (process_structure_scope): Don't handle variant parts.
8239 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
8240 (struct discriminant_info): Remove.
8241 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
8242 (struct main_type) <flag_discriminated_union>: Remove.
8243 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
8244 (rust_enum_variant): Return int. Remove "contents". Rewrite.
8245 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
8246 Update.
8247 * valops.c (value_union_variant): Remove.
8248 * value.h (value_union_variant): Don't declare.
8249
b249d2c2
TT
82502020-04-24 Tom Tromey <tromey@adacore.com>
8251
8252 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
8253 (ada_value_primitive_packed_val): Update.
8254 * ada-valprint.c (ada_value_print_1): Update.
8255 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
8256 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
8257 just an address. Use evaluate_for_locexpr_baton.
8258 (dwarf2_evaluate_property): Update.
8259 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
8260 array_view.
8261 * findvar.c (default_read_var_value): Update.
8262 * gdbtypes.c (compute_variant_fields_inner)
8263 (resolve_dynamic_type_internal): Update.
8264 (resolve_dynamic_type): Change type of valaddr parameter.
8265 * gdbtypes.h (resolve_dynamic_type): Update.
8266 * valarith.c (value_subscripted_rvalue): Update.
8267 * value.c (value_from_contents_and_address): Update.
8268
61122aa9
TT
82692020-04-24 Tom Tromey <tromey@adacore.com>
8270
8271 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
8272 "push_initial_value" parameter.
8273 (dwarf2_evaluate_property): Likewise.
8274 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
8275
ef83a141
TT
82762020-04-24 Tom Tromey <tromey@adacore.com>
8277
8278 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
8279 (variant::matches, compute_variant_fields_recurse)
8280 (compute_variant_fields_inner, compute_variant_fields): New
8281 functions.
8282 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
8283 Use resolved_type after type is made.
8284 (operator==): Add new cases.
8285 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
8286 (struct discriminant_range, struct variant, struct variant_part):
8287 New.
8288 (union dynamic_prop_data) <variant_parts, original_type>: New
8289 members.
8290 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
8291 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
8292 constants.
8293 * value.c (unpack_bits_as_long): Now public.
8294 * value.h (unpack_bits_as_long): Declare.
8295
675127ec
TT
82962020-04-24 Tom Tromey <tromey@adacore.com>
8297
8298 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
8299 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
8300
9852ceef
HD
83012020-04-24 Hannes Domani <ssbssa@yahoo.de>
8302
8303 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
8304
7632c6ce
KR
83052020-04-24 Kamil Rytarowski <n54@gmx.com>
8306
8307 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
8308 (remove_fork_catchpoint, post_startup_inferior)
8309 (post_attach): Move...
8310 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
8311 (remove_fork_catchpoint, post_startup_inferior)
8312 (post_attach): ...here.
8313 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
8314 (remove_fork_catchpoint, post_startup_inferior)
8315 (post_attach): Move...
8316 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
8317 (remove_fork_catchpoint, post_startup_inferior)
8318 (post_attach): ...here.
8319
7be2bb4f
TT
83202020-04-24 Tom Tromey <tromey@adacore.com>
8321
8322 * nat/windows-nat.h (struct windows_thread_info)
8323 <pc_adjusted>: New member.
8324 * windows-nat.c (windows_fetch_one_register): Check
8325 pc_adjusted.
8326 (windows_nat_target::get_windows_debug_event)
8327 (windows_nat_target::wait): Set pc_adjusted.
8328
f80cb3b4
TV
83292020-04-24 Tom de Vries <tdevries@suse.de>
8330
8331 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
8332 Run gdb-add-index inside temp dir.
8333
29514b87
TT
83342020-04-23 Tom Tromey <tromey@adacore.com>
8335
8336 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
8337 in loop.
8338
5939967b
LM
83392020-04-23 Luis Machado <luis.machado@linaro.org>
8340
8341 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
8342 get_frame_register instead of gdbarch_unwind_pc.
8343
70bc38f5
TV
83442020-04-23 Tom de Vries <tdevries@suse.de>
8345
8346 * symtab.c (lookup_global_symbol): Prefer def over decl.
8347
de82891c
TV
83482020-04-23 Tom de Vries <tdevries@suse.de>
8349
8350 PR symtab/25807
8351 * block.c (best_symbol, better_symbol): Promote to external.
8352 * block.h (best_symbol, better_symbol): Declare.
8353 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
8354 decl.
8355
ecc6c606
TT
83562020-04-23 Tom Tromey <tromey@adacore.com>
8357
8358 PR ada/25837:
8359 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
8360 "const char *", not a "const std::string &".
8361 <name_and_matcher::operator==>: Update.
8362 * unittests/lookup_name_info-selftests.c: Change type of
8363 "result".
8364
740480b8
TT
83652020-04-23 Tom Tromey <tom@tromey.com>
8366
8367 * inferior.h (iterate_over_inferiors): Don't declare.
8368 * inferior.c (iterate_over_inferiors): Remove.
8369 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
8370 Remove.
8371 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
8372 use iterate_over_inferiors.
8373 (darwin_resume_inferior_it)
8374 (struct resume_inferior_threads_param)
8375 (darwin_resume_inferior_threads_it): Remove.
8376 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
8377
ae3ab1f0
TV
83782020-04-23 Tom de Vries <tdevries@suse.de>
8379
8380 * blockframe.c (find_pc_partial_function): Use
8381 find_pc_sect_compunit_symtab rather than
8382 objfile->sf->qf->find_pc_sect_compunit_symtab.
8383
317d2668
TV
83842020-04-22 Tom de Vries <tdevries@suse.de>
8385
8386 PR symtab/25764
8387 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
8388 in psymtabs.
8389
eea9e357
TV
83902020-04-22 Tom de Vries <tdevries@suse.de>
8391
8392 PR symtab/25801
8393 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
8394 symtabs.
8395
3d5afab3
TV
83962020-04-22 Tom de Vries <tdevries@suse.de>
8397
8398 PR symtab/25700
8399 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
8400 CU if already created.
8401
d43b7a2d
TBA
84022020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8403
8404 * infrun.c (displaced_step_fixup): Switch to the event_thread
8405 before calling displaced_step_restore, not after.
8406
d89edf9b
MM
84072020-04-21 Markus Metzger <markus.t.metzger@intel.com>
8408
8409 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
8410 its inferior is not recorded by us.
8411 (record_btrace_target_open): Replace call to
8412 all_non_exited_threads () with call to current_inferior
8413 ()->non_exited_threads ().
8414 (record_btrace_target::stop_recording): Likewise.
8415 (record_btrace_target::close): Likewise.
8416 (record_btrace_target::wait): Likewise.
8417 (record_btrace_target::record_stop_replaying): Likewise.
8418
5897fd49
MM
84192020-04-21 Markus Metzger <markus.t.metzger@intel.com>
8420
8421 * btrace.c (btrace_enable): Throw an error on double enables and
8422 when enabling recording fails.
8423 (btrace_disable): Throw an error if the thread is not recorded.
8424
1a476b6d
MM
84252020-04-21 Markus Metzger <markus.t.metzger@intel.com>
8426
8427 * record-btrace.c (record_btrace_target::fetch_registers): Forward
8428 request if we do not have a thread_info.
8429
4778a5f8
TV
84302020-04-21 Tom de Vries <tdevries@suse.de>
8431
8432 PR gdb/25471
8433 * thread.c
8434 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
8435 exception in get_frame_id.
8436
0fa7617d
TT
84372020-04-20 Tom Tromey <tromey@adacore.com>
8438
8439 * python/python.c (struct gdbpy_event): Mark move constructor as
8440 noexcept.
8441 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
8442 constructor as noexcept.
8443 * completer.h (struct completion_result): Mark move constructor as
8444 noexcept.
8445 * completer.c (completion_result::completion_result): Use
8446 initialization style. Don't call reset_match_list.
8447
ad23bda0
MS
84482020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
8449
8450 * MAINTAINERS (Write After Approval): Add myself.
8451
45e1f031
TT
84522020-04-18 Tom Tromey <tom@tromey.com>
8453
8454 * windows-tdep.c (init_w32_command_list)
8455 (w32_prefix_command_valid): Restore.
8456 (_initialize_windows_tdep): Call init_w32_command_list.
8457
08feed99
TT
84582020-04-18 Tom Tromey <tom@tromey.com>
8459
8460 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
8461 * value.c (value_fn_field): Update.
8462 * valops.c (find_function_in_inferior)
8463 (value_allocate_space_in_inferior): Update.
8464 * tui/tui-winsource.c (tui_update_source_windows_with_line):
8465 Update.
8466 * tui/tui-source.c (tui_source_window::set_contents): Update.
8467 * symtab.c (lookup_global_or_static_symbol)
8468 (find_function_start_sal_1, skip_prologue_sal)
8469 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
8470 * symmisc.c (dump_msymbols, dump_symtab_1)
8471 (maintenance_print_one_line_table): Update.
8472 * symfile.c (init_entry_point_info, section_is_mapped)
8473 (list_overlays_command, simple_read_overlay_table)
8474 (simple_overlay_update_1): Update.
8475 * stap-probe.c (handle_stap_probe): Update.
8476 * stabsread.c (dbx_init_float_type, define_symbol)
8477 (read_one_struct_field, read_enum_type, read_range_type): Update.
8478 * source.c (info_line_command): Update.
8479 * python/python.c (gdbpy_source_objfile_script)
8480 (gdbpy_execute_objfile_script): Update.
8481 * python/py-type.c (save_objfile_types): Update.
8482 * python/py-objfile.c (py_free_objfile): Update.
8483 * python/py-inferior.c (python_new_objfile): Update.
8484 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
8485 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
8486 (maintenance_check_psymtabs): Update.
8487 * printcmd.c (info_address_command): Update.
8488 * objfiles.h (struct objfile) <arch>: New method, from
8489 get_objfile_arch.
8490 (get_objfile_arch): Don't declare.
8491 * objfiles.c (get_objfile_arch): Remove.
8492 (filter_overlapping_sections): Update.
8493 * minsyms.c (msymbol_is_function): Update.
8494 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
8495 (output_nondebug_symbol): Update.
8496 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
8497 (mdebug_expand_psymtab): Update.
8498 * machoread.c (macho_add_oso_symfile): Update.
8499 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
8500 Update.
8501 * linux-fork.c (checkpoint_command): Update.
8502 * linespec.c (convert_linespec_to_sals): Update.
8503 * jit.c (finalize_symtab): Update.
8504 * infrun.c (insert_exception_resume_from_probe): Update.
8505 * ia64-tdep.c (ia64_find_unwind_table): Update.
8506 * hppa-tdep.c (internalize_unwinds): Update.
8507 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
8508 Update.
8509 * gcore.c (call_target_sbrk): Update.
8510 * elfread.c (record_minimal_symbol, elf_symtab_read)
8511 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
8512 (elf_gnu_ifunc_resolve_by_got): Update.
8513 * dwarf2/read.c (create_addrmap_from_index)
8514 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
8515 (read_debug_names_from_section)
8516 (process_psymtab_comp_unit_reader, add_partial_symbol)
8517 (add_partial_subprogram, process_full_comp_unit)
8518 (read_file_scope, read_func_scope, read_lexical_block_scope)
8519 (read_call_site_scope, dwarf2_ranges_read)
8520 (dwarf2_record_block_ranges, dwarf2_add_field)
8521 (mark_common_block_symbol_computed, read_tag_pointer_type)
8522 (read_tag_string_type, dwarf2_init_float_type)
8523 (dwarf2_init_complex_target_type, read_base_type)
8524 (partial_die_info::read, partial_die_info::read)
8525 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
8526 (dwarf2_fetch_die_loc_sect_off): Update.
8527 * dwarf2/loc.c (dwarf2_find_location_expression)
8528 (class dwarf_evaluate_loc_desc, rw_pieced_value)
8529 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
8530 (dwarf2_loc_desc_get_symbol_read_needs)
8531 (locexpr_describe_location_piece, locexpr_describe_location_1)
8532 (loclist_describe_location): Update.
8533 * dwarf2/index-write.c (write_debug_names): Update.
8534 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
8535 * dtrace-probe.c (dtrace_process_dof): Update.
8536 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
8537 (process_one_symbol): Update.
8538 * ctfread.c (ctf_init_float_type, read_base_type): Update.
8539 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
8540 (coff_read_enum_type): Update.
8541 * cli/cli-cmds.c (edit_command, list_command): Update.
8542 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
8543 * breakpoint.c (create_overlay_event_breakpoint)
8544 (create_longjmp_master_breakpoint)
8545 (create_std_terminate_master_breakpoint)
8546 (create_exception_master_breakpoint, get_sal_arch): Update.
8547 * block.c (block_gdbarch): Update.
8548 * annotate.c (annotate_source_line): Update.
8549
0743fc83
TT
85502020-04-17 Tom Tromey <tromey@adacore.com>
8551
8552 * auto-load.c (show_auto_load_cmd): Remove.
8553 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
8554 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
8555 (maintenance_print_arc_command): Remove.
8556 * tui/tui-win.c (tui_command): Remove.
8557 (tui_get_cmd_list): Use add_basic_prefix_cmd.
8558 * tui/tui-layout.c (tui_layout_command): Remove.
8559 (_initialize_tui_layout): Use add_basic_prefix_cmd.
8560 * python/python.c (user_set_python, user_show_python): Remove.
8561 (_initialize_python): Use add_basic_prefix_cmd,
8562 add_show_prefix_cmd.
8563 * guile/guile.c (set_guile_command, show_guile_command): Remove.
8564 (install_gdb_commands): Use add_basic_prefix_cmd,
8565 add_show_prefix_cmd.
8566 (info_guile_command): Remove.
8567 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
8568 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
8569 add_show_prefix_cmd.
8570 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
8571 Remove do_set and do_show parameters.
8572 * cli/cli-style.c (set_style, show_style): Remove.
8573 (_initialize_cli_style): Use add_basic_prefix_cmd,
8574 add_show_prefix_cmd.
8575 (cli_style_option::add_setshow_commands): Remove do_set and
8576 do_show parameters.
8577 (cli_style_option::add_setshow_commands): Use
8578 add_basic_prefix_cmd, add_show_prefix_cmd.
8579 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
8580 (set_style_name): Remove.
8581 * cli/cli-dump.c (dump_command, append_command): Remove.
8582 (srec_dump_command, ihex_dump_command, verilog_dump_command)
8583 (tekhex_dump_command, binary_dump_command)
8584 (binary_append_command): Remove.
8585 (_initialize_cli_dump): Use add_basic_prefix_cmd.
8586 * windows-tdep.c (w32_prefix_command_valid): Remove global.
8587 (init_w32_command_list): Remove; move into ...
8588 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
8589 * valprint.c (set_print, show_print, set_print_raw)
8590 (show_print_raw): Remove.
8591 (_initialize_valprint): Use add_basic_prefix_cmd,
8592 add_show_prefix_cmd.
8593 * typeprint.c (set_print_type, show_print_type): Remove.
8594 (_initialize_typeprint): Use add_basic_prefix_cmd,
8595 add_show_prefix_cmd.
8596 * record.c (set_record_command, show_record_command): Remove.
8597 (_initialize_record): Use add_basic_prefix_cmd,
8598 add_show_prefix_cmd.
8599 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
8600 add_show_prefix_cmd.
8601 (info_command, show_command, set_debug, show_debug): Remove.
8602 * top.h (set_history, show_history): Don't declare.
8603 * top.c (set_history, show_history): Remove.
8604 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
8605 (unset_tdesc_cmd): Remove.
8606 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
8607 add_show_prefix_cmd.
8608 * symtab.c (info_module_command): Remove.
8609 (_initialize_symtab): Use add_basic_prefix_cmd.
8610 * symfile.c (overlay_command): Remove.
8611 (_initialize_symfile): Use add_basic_prefix_cmd.
8612 * sparc64-tdep.c (info_adi_command): Remove.
8613 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
8614 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
8615 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
8616 add_show_prefix_cmd.
8617 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
8618 (_initialize_serial): Use add_basic_prefix_cmd,
8619 add_show_prefix_cmd.
8620 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
8621 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
8622 add_show_prefix_cmd.
8623 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
8624 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
8625 add_show_prefix_cmd.
8626 * riscv-tdep.c (show_riscv_command, set_riscv_command)
8627 (show_debug_riscv_command, set_debug_riscv_command): Remove.
8628 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
8629 add_show_prefix_cmd.
8630 * remote.c (remote_command, set_remote_cmd): Remove.
8631 (_initialize_remote): Use add_basic_prefix_cmd.
8632 * record-full.c (set_record_full_command)
8633 (show_record_full_command): Remove.
8634 (_initialize_record_full): Use add_basic_prefix_cmd,
8635 add_show_prefix_cmd.
8636 * record-btrace.c (cmd_set_record_btrace)
8637 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
8638 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
8639 (cmd_show_record_btrace_pt): Remove.
8640 (_initialize_record_btrace): Use add_basic_prefix_cmd,
8641 add_show_prefix_cmd.
8642 * ravenscar-thread.c (set_ravenscar_command)
8643 (show_ravenscar_command): Remove.
8644 (_initialize_ravenscar): Use add_basic_prefix_cmd,
8645 add_show_prefix_cmd.
8646 * mips-tdep.c (show_mips_command, set_mips_command)
8647 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
8648 add_show_prefix_cmd.
8649 * maint.c (maintenance_command, maintenance_info_command)
8650 (maintenance_check_command, maintenance_print_command)
8651 (maintenance_set_cmd, maintenance_show_cmd): Remove.
8652 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
8653 add_show_prefix_cmd.
8654 (show_per_command_cmd): Remove.
8655 * maint-test-settings.c (maintenance_set_test_settings_cmd):
8656 Remove.
8657 (maintenance_show_test_settings_cmd): Remove.
8658 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
8659 add_show_prefix_cmd.
8660 * maint-test-options.c (maintenance_test_options_command):
8661 Remove.
8662 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
8663 * macrocmd.c (macro_command): Remove
8664 (_initialize_macrocmd): Use add_basic_prefix_cmd.
8665 * language.c (set_check, show_check): Remove.
8666 (_initialize_language): Use add_basic_prefix_cmd,
8667 add_show_prefix_cmd.
8668 * infcmd.c (unset_command): Remove.
8669 (_initialize_infcmd): Use add_basic_prefix_cmd.
8670 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
8671 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
8672 add_show_prefix_cmd.
8673 * go32-nat.c (go32_info_dos_command): Remove.
8674 (_initialize_go32_nat): Use add_basic_prefix_cmd.
8675 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
8676 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
8677 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
8678 (_initialize_frame): Use add_basic_prefix_cmd,
8679 add_show_prefix_cmd.
8680 * dcache.c (set_dcache_command, show_dcache_command): Remove.
8681 (_initialize_dcache): Use add_basic_prefix_cmd,
8682 add_show_prefix_cmd.
8683 * cp-support.c (maint_cplus_command): Remove.
8684 (_initialize_cp_support): Use add_basic_prefix_cmd.
8685 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
8686 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
8687 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
8688 add_basic_prefix_cmd, add_show_prefix_cmd.
8689 * breakpoint.c (save_command): Remove.
8690 (_initialize_breakpoint): Use add_basic_prefix_cmd.
8691 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
8692 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
8693 add_show_prefix_cmd.
8694 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
8695 (set_ada_command, show_ada_command): Remove.
8696 (_initialize_ada_language): Use add_basic_prefix_cmd,
8697 add_show_prefix_cmd.
8698 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
8699
3557f442
KR
87002020-04-16 Kamil Rytarowski <n54@gmx.com>
8701
8702 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
8703 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
8704
16197208
SM
87052020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
8706
8707 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
8708 warning messages.
8709
00ac85d3
SM
87102020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
8711
8712 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
8713 import table is not at beginning of .idata section.
8714
381ce63f
PA
87152020-04-16 Pedro Alves <palves@redhat.com>
8716
8717 * inferior.c (delete_inferior): Use delete operator directly
8718 instead of delete_program_space.
8719 * progspace.c (add_program_space): New, factored out from
8720 program_space::program_space.
8721 (remove_program_space): New, factored out from
8722 delete_program_space.
8723 (program_space::program_space): Remove intro comment. Rewrite.
8724 (program_space::~program_space): Remove intro comment. Call
8725 remove_program_space.
8726 (delete_program_space): Delete.
8727 * progspace.h (program_space::program_space): Make explicit. Move
8728 intro comment here, adjusted.
8729 (program_space::~program_space): Move intro comment here,
8730 adjusted.
8731 (delete_program_space): Remove.
8732
a010605f
TT
87332020-04-16 Tom Tromey <tromey@adacore.com>
8734
8735 * windows-nat.c (windows_nat::handle_access_violation): New
8736 function.
8737 * nat/windows-nat.h (handle_access_violation): Declare.
8738 * nat/windows-nat.c (handle_exception): Move Cygwin code to
8739 windows-nat.c. Call handle_access_violation.
8740
efba5c23
TV
87412020-04-16 Tom de Vries <tdevries@suse.de>
8742
8743 PR symtab/25791
8744 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
8745 CUs without psymtab.
8746
97ed802d
KB
87472020-04-16 Kevin Buettner <kevinb@redhat.com>
8748
8749 * python/python.c (do_start_initialization): Don't call
8750 PyEval_InitThreads for Python 3.9 and beyond.
8751
c7d64809
KR
87522020-04-15 Kamil Rytarowski <n54@gmx.com>
8753
8754 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
8755 thread functions.
8756 (obsd_nat_target::wait): Likewise.
8757
ce127a96
TT
87582020-04-15 Tom Tromey <tromey@adacore.com>
8759
8760 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
8761 (DEBUG_EXCEPT): Use debug_printf.
8762
99f1bc6a
AB
87632020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
8764
8765 * completer.c (class completion_tracker::completion_hash_entry)
8766 <hash_name>: New member function.
8767 (completion_tracker::discard_completions): New callback to hash a
8768 completion_hash_entry, pass this to htab_create_alloc.
8769
a0e9b532
JT
87702016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
8771
8772 * windows-nat.c (windows_make_so): Warn rather than stopping with
8773 an error if realpath() fails.
8774
06ca5dd4
KR
87752020-04-14 Kamil Rytarowski <n54@gmx.com>
8776
8777 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
8778 (nbsd_nat_target::info_proc): Add do_status.
8779
194d088f
TV
87802020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
8781 Tom de Vries <tdevries@suse.de>
8782
8783 PR symtab/25718
8784 * psympriv.h (struct partial_symtab::read_symtab)
8785 (struct partial_symtab::expand_psymtab)
8786 (struct partial_symtab::read_dependencies): Update comments.
8787 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
8788 read_symtab for includer.
8789 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
8790 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
8791 (struct dwarf2_include_psymtab::m_readin): Remove.
8792 (struct dwarf2_include_psymtab::includer): New member function.
8793 (dwarf2_psymtab::expand_psymtab): Assert !readin.
8794
c1a66c06
TV
87952020-04-14 Tom de Vries <tdevries@suse.de>
8796
8797 PR symtab/25720
8798 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
8799 with NULL symbol_matcher and lookup_name.
8800 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
8801 and lookup_name.
8802 * dwarf2/read.c (dw2_expand_symtabs_matching)
8803 (dw2_debug_names_expand_symtabs_matching): Same.
8804 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
8805 Make lookup_name a pointer. Update comment.
8806 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
8807 lookup_name being a pointer.
8808 * symfile.c (expand_symtabs_matching): Same.
8809 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
8810 * linespec.c (iterate_over_all_matching_symtabs): Same.
8811
400b5eca
TT
88122020-04-13 Tom Tromey <tom@tromey.com>
8813
8814 * run-on-main-thread.c: Update include.
8815 * unittests/main-thread-selftests.c: Update include.
8816 * tui/tui-win.c: Update include.
8817 * tui/tui-io.c: Update include.
8818 * tui/tui-interp.c: Update include.
8819 * tui/tui-hooks.c: Update include.
8820 * top.h: Update include.
8821 * top.c: Update include.
8822 * ser-base.c: Update include.
8823 * remote.c: Update include.
8824 * remote-notif.c: Update include.
8825 * remote-fileio.c: Update include.
8826 * record-full.c: Update include.
8827 * record-btrace.c: Update include.
8828 * python/python.c: Update include.
8829 * posix-hdep.c: Update include.
8830 * mingw-hdep.c: Update include.
8831 * mi/mi-main.c: Update include.
8832 * mi/mi-interp.c: Update include.
8833 * main.c: Update include.
8834 * linux-nat.c: Update include.
8835 * interps.c: Update include.
8836 * infrun.c: Update include.
8837 * inf-loop.c: Update include.
8838 * event-top.c: Update include.
8839 * event-loop.c: Move to ../gdbsupport/.
8840 * event-loop.h: Move to ../gdbsupport/.
8841 * async-event.h: Update include.
8842 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
8843
93b54c8e
TT
88442020-04-13 Tom Tromey <tom@tromey.com>
8845
8846 * tui/tui-win.c: Include async-event.h.
8847 * remote.c: Include async-event.h.
8848 * remote-notif.c: Include async-event.h.
8849 * record-full.c: Include async-event.h.
8850 * record-btrace.c: Include async-event.h.
8851 * infrun.c: Include async-event.h.
8852 * event-top.c: Include async-event.h.
8853 * event-loop.h: Move some declarations to async-event.h.
8854 * event-loop.c: Don't include ser-event.h or top.h. Move some
8855 code to async-event.c.
8856 * async-event.h: New file.
8857 * async-event.c: New file.
8858 * Makefile.in (COMMON_SFILES): Add async-event.c.
8859 (HFILES_NO_SRCDIR): Add async-event.h.
8860
c1cd3163
TT
88612020-04-13 Tom Tromey <tom@tromey.com>
8862
8863 * utils.c (flush_streams): New function.
8864 * event-loop.c (gdb_wait_for_event): Call flush_streams.
8865
29f2bf4f
TT
88662020-04-13 Tom Tromey <tom@tromey.com>
8867
8868 * event-loop.c (handle_file_event): Use warning, not
8869 printf_unfiltered.
8870
98029d02
TT
88712020-04-13 Tom Tromey <tom@tromey.com>
8872
8873 * event-loop.c: Include <chrono>.
8874
06cc9596
TT
88752020-04-13 Tom Tromey <tom@tromey.com>
8876
8877 * gdb_select.h: Move to ../gdbsupport/.
8878 * event-loop.c: Update include path.
8879 * top.c: Update include path.
8880 * ser-base.c: Update include path.
8881 * ui-file.c: Update include path.
8882 * ser-tcp.c: Update include path.
8883 * guile/scm-ports.c: Update include path.
8884 * posix-hdep.c: Update include path.
8885 * ser-unix.c: Update include path.
8886 * gdb_usleep.c: Update include path.
8887 * mingw-hdep.c: Update include path.
8888 * inflow.c: Update include path.
8889 * infrun.c: Update include path.
8890 * event-top.c: Update include path.
8891
8ae8e197
TT
88922020-04-13 Tom Tromey <tom@tromey.com>
8893
8894 * configure: Rebuild.
8895 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
8896
58cf28e8
TT
88972020-04-13 Tom Tromey <tom@tromey.com>
8898
8899 * event-loop.h (start_event_loop): Don't declare.
8900 * event-loop.c (start_event_loop): Move...
8901 * main.c (start_event_loop): ...here. Now static.
8902
b7f999ae
SDJ
89032020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
8904
8905 * MAINTAINERS: Update my email address.
8906
1085dfd4
KR
89072020-04-12 Kamil Rytarowski <n54@gmx.com>
8908
8909 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
8910 IP_ALL.
8911
49d1d1f5
KR
89122020-04-12 Kamil Rytarowski <n54@gmx.com>
8913
8914 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 8915 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 8916
b4848d2a
KR
89172020-04-12 Kamil Rytarowski <n54@gmx.com>
8918
8919 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 8920 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 8921
51c133d5
KR
89222020-04-12 Kamil Rytarowski <n54@gmx.com>
8923
8924 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
8925
54b8cbd0
KR
89262020-04-11 Kamil Rytarowski <n54@gmx.com>
8927
8928 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
8929 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
8930 (nbsd_nat_target::info_proc): New functions.
8931 * nbsd-nat.c (kinfo_get_vmmap): New function.
8932 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
8933 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
8934 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
8935 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
8936 functions.
8937 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
8938 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
8939 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
8940 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
8941 (KINFO_VME_FLAG_GROWS_DOWN): New.
8942
cf83625d
AS
89432020-04-10 Artur Shepilko <nomadbyte@gmail.com>
8944
8945 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
8946 bit shift.
8947
0c4311ab
TT
89482020-04-10 Tom Tromey <tromey@adacore.com>
8949
8950 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
8951
3e65b3e9
TT
89522020-04-10 Tom Tromey <tromey@adacore.com>
8953
8954 * symtab.c (get_symbol_address, get_msymbol_address): Skip
8955 separate debug files.
8956
13302e95
HD
89572020-04-10 Hannes Domani <ssbssa@yahoo.de>
8958
8959 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
8960 Move to...
8961 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
8962 ... here.
8963 * windows-nat.c (windows_nat_target::get_windows_debug_event):
8964 Check for STATUS_WX86_BREAKPOINT.
8965 (windows_nat_target::wait): Same.
8966
bdfc1e8a
TV
89672020-04-10 Tom de Vries <tdevries@suse.de>
8968
8969 PR cli/25808
8970 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
8971
f4460aec
SM
89722020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
8973
8974 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
8975 (Write After Approval): Remove Tom de Vries.
8976
a25198bb
BE
89772020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
8978
8979 revert partially:
8980 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8981
aac66a4c
SM
8982 * buildsym.c (record_line): Fix undefined behavior and preserve
8983 lines at eof.
a25198bb 8984
206c98a6
KR
89852020-04-09 Kamil Rytarowski <n54@gmx.com>
8986
8987 * auxv.h (svr4_auxv_parse): New.
8988 * auxv.c (default_auxv_parse): Split into default_auxv_parse
8989 and generic_auxv_parse.
8990 (svr4_auxv_parse): Add.
8991 * obsd-tdep.c: Include "auxv.h".
8992 (obsd_auxv_parse): Remove.
8993 (obsd_init_abi): Remove comment.
8994 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
8995 from `obsd_auxv_parse' to `svr4_auxv_parse'.
8996 * nbsd-tdep.c: Include "auxv.h".
8997 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
8998
71fbdbaf
TT
89992020-04-08 Tom Tromey <tromey@adacore.com>
9000
9001 * nat/windows-nat.h (last_wait_event): Don't declare.
9002 (wait_for_debug_event): Update comment.
9003 * nat/windows-nat.c (last_wait_event): Now static.
9004
2c1d95e8
TT
90052020-04-08 Tom Tromey <tromey@adacore.com>
9006
9007 * windows-nat.c (wait_for_debug_event): Move to
9008 nat/windows-nat.c.
9009 * nat/windows-nat.h (wait_for_debug_event): Declare.
9010 * nat/windows-nat.c (wait_for_debug_event): Move from
9011 windows-nat.c. No longer static.
9012
d2977bc4
TT
90132020-04-08 Tom Tromey <tromey@adacore.com>
9014
9015 * windows-nat.c (get_windows_debug_event): Use
9016 fetch_pending_stop.
9017 * nat/windows-nat.h (fetch_pending_stop): Declare.
9018 * nat/windows-nat.c (fetch_pending_stop): New function.
9019
e758e19c
TT
90202020-04-08 Tom Tromey <tromey@adacore.com>
9021
9022 * windows-nat.c (windows_continue): Use matching_pending_stop and
9023 continue_last_debug_event.
9024 * nat/windows-nat.h (matching_pending_stop)
9025 (continue_last_debug_event): Declare.
9026 * nat/windows-nat.c (DEBUG_EVENTS): New define.
9027 (matching_pending_stop, continue_last_debug_event): New
9028 functions.
9029
8d30e395
TT
90302020-04-08 Tom Tromey <tromey@adacore.com>
9031
9032 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
9033 (handle_exception_result): Move to nat/windows-nat.h.
9034 (DEBUG_EXCEPTION_SIMPLE): Remove.
9035 (windows_nat::handle_ms_vc_exception): New function.
9036 (handle_exception): Move to nat/windows-nat.c.
9037 (get_windows_debug_event): Update.
9038 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
9039 nat/windows-nat.c.
9040 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
9041 (handle_exception_result): Move from windows-nat.c.
9042 (handle_exception): Declare.
9043 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
9044 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
9045 windows-nat.c.
9046
29de418d
TT
90472020-04-08 Tom Tromey <tromey@adacore.com>
9048
9049 * windows-nat.c (exception_count, event_count): Remove.
9050 (handle_exception, get_windows_debug_event)
9051 (do_initial_windows_stuff): Update.
9052
a816ba18
TT
90532020-04-08 Tom Tromey <tromey@adacore.com>
9054
9055 * windows-nat.c (windows_nat::handle_load_dll)
9056 (windows_nat::handle_unload_dll): Rename. No longer static.
9057 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
9058 Declare.
9059
a00caa12
TT
90602020-04-08 Tom Tromey <tromey@adacore.com>
9061
9062 * complaints.h (stop_whining): Declare at top-level.
9063 (complaint): Don't declare stop_whining.
9064
d41b524f
TT
90652020-04-08 Tom Tromey <tromey@adacore.com>
9066
9067 * windows-nat.c (windows_nat::handle_output_debug_string):
9068 Rename. No longer static.
9069 * nat/windows-nat.h (handle_output_debug_string): Declare.
9070
3c76026d
TT
90712020-04-08 Tom Tromey <tromey@adacore.com>
9072
9073 * windows-nat.c (current_process_handle, current_process_id)
9074 (main_thread_id, last_sig, current_event, last_wait_event)
9075 (current_windows_thread, desired_stop_thread_id, pending_stops)
9076 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
9077 (display_selectors, fake_create_process)
9078 (get_windows_debug_event): Update.
9079 * nat/windows-nat.h (current_process_handle, current_process_id)
9080 (main_thread_id, last_sig, current_event, last_wait_event)
9081 (current_windows_thread, desired_stop_thread_id, pending_stops)
9082 (struct pending_stop, siginfo_er): Move from windows-nat.c.
9083 * nat/windows-nat.c (current_process_handle, current_process_id)
9084 (main_thread_id, last_sig, current_event, last_wait_event)
9085 (current_windows_thread, desired_stop_thread_id, pending_stops)
9086 (siginfo_er): New globals. Move from windows-nat.c.
9087
9d8679cc
TT
90882020-04-08 Tom Tromey <tromey@adacore.com>
9089
9090 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
9091 (handle_load_dll): Update.
9092 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
9093
28688adf
TT
90942020-04-08 Tom Tromey <tromey@adacore.com>
9095
9096 * windows-nat.c (enum thread_disposition_type): Move to
9097 nat/windows-nat.h.
9098 (windows_nat::thread_rec): Rename from thread_rec. No longer
9099 static.
9100 (windows_add_thread, windows_nat_target::fetch_registers)
9101 (windows_nat_target::store_registers, handle_exception)
9102 (windows_nat_target::resume, get_windows_debug_event)
9103 (windows_nat_target::get_tib_address)
9104 (windows_nat_target::thread_name)
9105 (windows_nat_target::thread_alive): Update.
9106 * nat/windows-nat.h (enum thread_disposition_type): Move from
9107 windows-nat.c.
9108 (thread_rec): Declare.
9109
4834dad0
TT
91102020-04-08 Tom Tromey <tromey@adacore.com>
9111
9112 * windows-nat.c: Add "using namespace".
9113 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
9114 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
9115
65bafd5b
TT
91162020-04-08 Tom Tromey <tromey@adacore.com>
9117
9118 * nat/windows-nat.h (struct windows_thread_info): Declare
9119 destructor.
9120 * nat/windows-nat.c (~windows_thread_info): New.
9121
0a4afda3
TT
91222020-04-08 Tom Tromey <tromey@adacore.com>
9123
9124 PR gdb/22992
9125 * windows-nat.c (current_event): Update comment.
9126 (last_wait_event, desired_stop_thread_id): New globals.
9127 (struct pending_stop): New.
9128 (pending_stops): New global.
9129 (windows_nat_target) <stopped_by_sw_breakpoint>
9130 <supports_stopped_by_sw_breakpoint>: New methods.
9131 (windows_fetch_one_register): Add assertions. Adjust PC.
9132 (windows_continue): Handle pending stops. Suspend other threads
9133 when stepping. Use last_wait_event
9134 (wait_for_debug_event): New function.
9135 (get_windows_debug_event): Use wait_for_debug_event. Handle
9136 pending stops. Queue spurious stops.
9137 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
9138 (windows_nat_target::kill): Use wait_for_debug_event.
9139 * nat/windows-nat.h (struct windows_thread_info)
9140 <stopped_at_software_breakpoint>: New field.
9141 * nat/windows-nat.c (windows_thread_info::resume): Clear
9142 stopped_at_software_breakpoint.
9143
8e61ebec
TT
91442020-04-08 Tom Tromey <tromey@adacore.com>
9145
9146 * windows-nat.c (enum thread_disposition_type): New.
9147 (thread_rec): Replace "get_context" parameter with "disposition";
9148 change type.
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
98a03287
TT
91562020-04-08 Tom Tromey <tromey@adacore.com>
9157
9158 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
9159 (windows_continue): Use windows_continue::resume.
9160 * nat/windows-nat.h (struct windows_thread_info) <suspend,
9161 resume>: Declare new methods.
9162 * nat/windows-nat.c: New file.
9163 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
9164
7c7411bc
TT
91652020-04-08 Tom Tromey <tromey@adacore.com>
9166
9167 * windows-nat.c (windows_add_thread, windows_delete_thread)
9168 (windows_nat_target::fetch_registers)
9169 (windows_nat_target::store_registers, fake_create_process)
9170 (windows_nat_target::resume, windows_nat_target::resume)
9171 (get_windows_debug_event, windows_nat_target::wait)
9172 (windows_nat_target::pid_to_str)
9173 (windows_nat_target::get_tib_address)
9174 (windows_nat_target::get_ada_task_ptid)
9175 (windows_nat_target::thread_name)
9176 (windows_nat_target::thread_alive): Use lwp, not tid.
9177
2950fdf7
TT
91782020-04-08 Tom Tromey <tromey@adacore.com>
9179
9180 * windows-nat.c (handle_exception)
9181 (windows_nat_target::thread_name): Update.
9182 * nat/windows-nat.h (windows_thread_info): Remove destructor.
9183 <name>: Now unique_xmalloc_ptr.
9184
62fe396b
TT
91852020-04-08 Tom Tromey <tromey@adacore.com>
9186
9187 * windows-nat.c (thread_rec)
9188 (windows_nat_target::fetch_registers): Update.
9189 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
9190 Update comment.
9191 <debug_registers_changed, reload_context>: Now bool.
9192
e9534bd2
TT
91932020-04-08 Tom Tromey <tromey@adacore.com>
9194
9195 * windows-nat.c (windows_add_thread): Use new.
9196 (windows_init_thread_list, windows_delete_thread): Use delete.
9197 (get_windows_debug_event): Update.
9198 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
9199 destructor, and initializers.
9200
ae1f8880
TT
92012020-04-08 Tom Tromey <tromey@adacore.com>
9202
9203 * windows-nat.c (struct windows_thread_info): Remove.
9204 * nat/windows-nat.h: New file.
9205
55a1e039
TT
92062020-04-08 Tom Tromey <tromey@adacore.com>
9207
9208 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
9209 (thread_rec, windows_add_thread, windows_delete_thread)
9210 (windows_continue): Update.
9211
93366324
TT
92122020-04-08 Tom Tromey <tromey@adacore.com>
9213
9214 * windows-nat.c (struct windows_thread_info): Remove typedef.
9215 (thread_head): Remove.
9216 (thread_list): New global.
9217 (thread_rec, windows_add_thread, windows_init_thread_list)
9218 (windows_delete_thread, windows_continue): Update.
9219
0f2265e2
SM
92202020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
9221
9222 * windows-tdep.h (windows_init_abi): Add comment.
9223 (cygwin_init_abi): New declaration.
9224 * windows-tdep.c: Split signal enumeration in two, one for
9225 Windows and one for Cygwin.
9226 (windows_gdb_signal_to_target): Only deal with signal of the
9227 Windows OS ABI.
9228 (cygwin_gdb_signal_to_target): New function.
9229 (windows_init_abi): Rename to windows_init_abi_common, don't set
9230 gdb_signal_to_target gdbarch method. Add new new function with
9231 this name.
9232 (cygwin_init_abi): New function.
9233 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
9234 comment. Don't call windows_init_abi.
9235 (amd64_windows_init_abi): Add comment, call windows_init_abi.
9236 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
9237 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
9238 i386_windows_init_abi_common, don't call windows_init_abi. Add
9239 a new function of this name.
9240 (i386_cygwin_init_abi): New function.
9241 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
9242 OS ABI Cygwin.
9243
3810f182
SM
92442020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
9245
9246 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
9247 parameter.c.
9248 (dwarf2_read_gdb_index): Update.
9249
063f8e80
KR
92502020-04-07 Kamil Rytarowski <n54@gmx.com>
9251
9252 * nbsd-tdep.c: Include "objfiles.h".
9253 (nbsd_skip_solib_resolver): New.
9254 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
9255
85a9510c 92562020-04-07 Nitika Achra <Nitika.Achra@amd.com>
9257
9258 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
9259 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
9260 with DW_LLE_base_addressx are being emitted in DWARFv5.
9261 Add the newly added kind DW_LOC_OFFSET_PAIR also.
9262 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
9263 unsigned integer.
9264
9fc3eaae 92652020-04-07 Nitika Achra <Nitika.Achra@amd.com>
9266
9267 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
9268 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
9269 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
9270 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
9271 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
9272 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
9273 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
9274
9275
41144253 92762020-04-07 Nitika Achra <Nitika.Achra@amd.com>
9277
9278 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
9279 (read_loclist_index): New function definition.
9280 (lookup_loclist_base): New function definition.
9281 (read_loclist_header): New function definition.
9282 (dwarf2_cu): Add loclist_base and loclist_header field.
9283 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
9284 (read_full_die_1): Read the value of DW_AT_loclists_base.
9285 (read_attribute_reprocess): Handle DW_FORM_loclistx.
9286 (read_attribute_value): Handle DW_FORM_loclistx.
9287 (skip_one_die): Handle DW_FORM_loclistx.
9288 (loclist_header): New structure declaration.
9289 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
9290
9f4e76a4
SM
92912020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9292
9293 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
9294 constructor. Remove `addr` parameter from other constructor and
9295 add `per_cu` parameter.
9296 * dwarf2/read.c (create_partial_symtab): Update.
9297
25c11aca
TV
92982020-04-07 Tom de Vries <tdevries@suse.de>
9299
9300 PR symtab/25796
9301 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
9302 (partial_die_info::fixup): Inherit has_const_value.
9303
5707e24b
TV
93042020-04-07 Tom de Vries <tdevries@suse.de>
9305
9306 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
9307 symbols without address.
9308
05f00e22
KR
93092020-04-06 Kamil Rytarowski <n54@gmx.com>
9310
9311 * nbsd-nat.h (struct thread_info): Add forward declaration.
9312 (nbsd_nat_target::thread_alive): Add.
9313 (nbsd_nat_target::thread_name): Likewise.
9314 (nbsd_nat_target::update_thread_list): Likewise.
9315 (update_thread_list::post_attach): Likewise.
9316 (post_attach::pid_to_str): Likewise.
9317 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
9318 (nbsd_thread_lister): Add.
9319 (nbsd_nat_target::thread_alive): Likewise.
9320 (nbsd_nat_target::thread_name): Likewise.
9321 (nbsd_add_threads): Likewise.
9322 (update_thread_list::post_attach): Likewise.
9323 (nbsd_nat_target::update_thread_list): Likewise.
9324 (post_attach::pid_to_str): Likewise.
9325
6ee448cc
TT
93262020-04-06 Tom Tromey <tromey@adacore.com>
9327
9328 * ada-valprint.c (print_variant_part): Extract the variant field.
9329 (print_field_values): Use the field as the outer value when
9330 recursing.
9331
dea34e8c
TT
93322020-04-06 Tom Tromey <tromey@adacore.com>
9333
9334 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
9335 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
9336 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
9337 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
9338 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
9339
93689ce9
TT
93402020-04-06 Tom Tromey <tromey@adacore.com>
9341
9342 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
9343 TYPE_CODE_ERROR.
9344
79743962
KR
93452020-04-06 Kamil Rytarowski <n54@gmx.com>
9346
9347 * nbsd-tdep.c: Include "gdbarch.h".
9348 Define enum with NetBSD signal numbers.
9349 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
9350 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
9351 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
9352 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
9353 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
9354 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
9355 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
9356 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
9357 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
9358 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
9359 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
9360 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
9361
9e7c9a03
HD
93622020-04-03 Hannes Domani <ssbssa@yahoo.de>
9363
9364 PR gdb/25325
9365 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
9366
d9e49b61
TT
93672020-04-03 Tom Tromey <tromey@adacore.com>
9368
9369 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
9370 Read constant block.
9371
e0fc5c3f
SM
93722020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
9373
9374 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
9375 (gdb_bfd_get_full_section_contents): New declaration.
9376 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
9377 * windows-tdep.c (is_linked_with_cygwin_dll): Use
9378 gdb_bfd_get_full_section_contents.
9379
e2ff18a0
SM
93802020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
9381
9382 * exec.c (build_section_table): Replace internal_error with
9383 gdb_assert.
9384 (section_table_xfer_memory_partial): Likewise.
9385 * mdebugread.c (parse_partial_symbols): Likewise.
9386 * psymtab.c (lookup_partial_symbol): Likewise.
9387 * utils.c (wrap_here): Likewise.
9388
0830d301
TT
93892020-04-02 Tom Tromey <tromey@adacore.com>
9390
9391 * f-lang.c (build_fortran_types): Use arch_type to initialize
9392 builtin_complex_s32 in the TYPE_CODE_ERROR case.
9393
e7da7f8f
TT
93942020-04-02 Tom Tromey <tromey@adacore.com>
9395
9396 * dwarf2/read.c (partial_die_info::read): Do not create a vector
9397 of attributes.
9398
c90d28ac
AB
93992020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
9400 Bernd Edlinger <bernd.edlinger@hotmail.de>
9401 Tom Tromey <tromey@adacore.com>
9402
9403 * buildsym.c (buildsym_compunit::record_line): Remove
9404 deduplication code.
9405
1aa98955
TV
94062020-04-02 Tom de Vries <tdevries@suse.de>
9407
9408 PR ada/24671
9409 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
9410
d3214198
TV
94112020-04-02 Tom de Vries <tdevries@suse.de>
9412
9413 * dwarf2/read.c (dwarf2_gdb_index_functions,
9414 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
9415 NULL.
9416 * psymtab.c (psym_lookup_global_symbol_language): New function.
9417 (psym_functions): Init psym_lookup_global_symbol_language with
9418 psym_lookup_global_symbol_language.
9419 * symfile-debug.c (debug_sym_quick_functions): Init
9420 lookup_global_symbol_language with NULL.
9421 * symfile.c (set_initial_language): Remove fixme comment.
9422 * symfile.h (struct quick_symbol_functions): Add
9423 lookup_global_symbol_language.
9424 * symtab.c (find_quick_global_symbol_language): New function.
9425 (find_main_name): Use find_quick_global_symbol_language.
9426
2836752f
SM
94272020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
9428
9429 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
9430
64dc2d4b
BE
94312020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
9432
9433 * buildsym.c (record_line): Fix undefined behavior and preserve
9434 lines at eof.
9435
bbe3dc41
BE
94362020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
9437
9438 * buildsym.c (record_line): Fix the resizing condition.
9439
6b4a335b
TT
94402020-04-01 Tom Tromey <tom@tromey.com>
9441
9442 * value.h (value_literal_complex): Add comment.
9443 * valops.c (value_literal_complex): Refer to value.h.
9444
3638a098
TT
94452020-04-01 Tom Tromey <tom@tromey.com>
9446
9447 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
9448 (scalar_type): New rule, from typebase.
9449 (typebase): Use scalar_type. Recognize complex types.
9450 (field_name): Handle FLOAT_KEYWORD.
9451 (ident_tokens): Add _Complex and __complex__.
9452
c34e8714
TT
94532020-04-01 Tom Tromey <tom@tromey.com>
9454
9455 PR exp/25299:
9456 * valarith.c (promotion_type, complex_binop): New functions.
9457 (scalar_binop): Handle complex numbers. Use promotion_type.
9458 (value_pos, value_neg, value_complement): Handle complex numbers.
9459
fa649bb7
TT
94602020-04-01 Tom Tromey <tom@tromey.com>
9461
9462 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
9463 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
9464 (parse_number): Handle complex numbers.
9465
981c08ce
TT
94662020-04-01 Tom Tromey <tom@tromey.com>
9467
9468 * c-valprint.c (c_decorations): Change complex suffix to "i".
9469
4c99290d
TT
94702020-04-01 Tom Tromey <tom@tromey.com>
9471
9472 * valprint.c (generic_value_print_complex): Use accessors.
9473 * value.h (value_real_part, value_imaginary_part): Declare.
9474 * valops.c (value_real_part, value_imaginary_part): New
9475 functions.
9476 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
9477
5b930b45
TT
94782020-04-01 Tom Tromey <tom@tromey.com>
9479
9480 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
9481 (read_range_type): Update.
9482 * mdebugread.c (basic_type): Update.
9483 * go-lang.c (build_go_types): Use init_complex_type.
9484 * gdbtypes.h (struct main_type) <complex_type>: New member.
9485 (init_complex_type): Update.
9486 (arch_complex_type): Don't declare.
9487 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
9488 Make name if none given. Use alloc_type_copy. Look for cached
9489 complex type.
9490 (arch_complex_type): Remove.
9491 (gdbtypes_post_init): Use init_complex_type.
9492 * f-lang.c (build_fortran_types): Use init_complex_type.
9493 * dwarf2/read.c (read_base_type): Update.
9494 * d-lang.c (build_d_types): Use init_complex_type.
9495 * ctfread.c (read_base_type): Update.
9496
53cccef1
TBA
94972020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9498
9499 * infrun.c (stop_all_threads): Update assertion, plus when
9500 stopping threads, take into account that we might be trying
9501 to stop an all-stop target.
9502 (stop_waiting): Call 'stop_all_threads' if there exists a
9503 non-stop target.
9504
a0714d30
TBA
95052020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9506
9507 * target.h (exists_non_stop_target): New function declaration.
9508 * target.c (exists_non_stop_target): New function.
9509
60e22c1e
HD
95102020-04-01 Hannes Domani <ssbssa@yahoo.de>
9511
9512 PR gdb/24789
9513 * eval.c (is_integral_or_integral_reference): New function.
9514 (evaluate_subexp_standard): Allow integer references in
9515 pointer arithmetic.
9516
e139a727
TBA
95172020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9518
9519 * remote.c (remote_target::remote_parse_stop_reply): Remove the
9520 check for no ptid in the stop reply when the target is non-stop.
9521
e0802d59
TT
95222020-04-01 Tom Tromey <tromey@adacore.com>
9523
9524 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
9525 "name" parameter to rvalue reference. Initialize m_name_holder.
9526 <lookup_name_info>: New overloads.
9527 <name>: Return gdb::string_view.
9528 <c_str>: New method.
9529 <make_ignore_params>: Update.
9530 <search_name_hash>: Update.
9531 <language_lookup_name>: Return const char *.
9532 <m_name>: Change type.
9533 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
9534 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
9535 (lookup_name_info::match_any): Update.
9536 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
9537 Update.
9538 * minsyms.c (linkage_name_str): Update.
9539 * language.c (default_symbol_name_matcher): Update.
9540 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
9541 Update.
9542 * ada-lang.c (ada_fold_name): Change parameter to string_view.
9543 (ada_lookup_name_info::ada_lookup_name_info): Update.
9544 (literal_symbol_name_matcher): Update.
9545
8c072cb6
TT
95462020-04-01 Tom Tromey <tromey@adacore.com>
9547
9548 * psymtab.c (psymtab_search_name): Remove function.
9549 (psym_lookup_symbol): Create search name and lookup name here.
9550 (lookup_partial_symbol): Remove "name" parameter; add
9551 lookup_name.
9552 (psym_expand_symtabs_for_function): Update.
9553
6f29a534
TT
95542020-03-31 Joel Jones <joelkevinjones@gmail.com>
9555
9556 PR tui/25597:
9557 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
9558
af62665e
TT
95592020-03-31 Tom Tromey <tromey@adacore.com>
9560
9561 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
9562 memcpy.
9563
d1a89da5
NC
95642020-03-30 Nelson Chu <nelson.chu@sifive.com>
9565
9566 * features/riscv/32bit-csr.xml: Regenerated.
9567 * features/riscv/64bit-csr.xml: Regenerated.
9568
d8af9068
TT
95692020-03-30 Tom Tromey <tromey@adacore.com>
9570
9571 * ada-valprint.c (print_variant_part): Update.
9572 * ada-lang.h (ada_which_variant_applies): Update.
9573 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
9574 outer_valaddr parameters; replace with "outer" value parameter.
9575 (to_fixed_variant_branch_type): Update.
9576
227c0bf4
PFC
95772020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9578
9579 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
9580 <list>. Remove inclusion of observable.h.
9581 (PPC_DEBUG_CURRENT_VERSION): Move up define.
9582 (struct arch_lwp_info): New struct.
9583 (class ppc_linux_dreg_interface): New class.
9584 (struct ppc_linux_process_info): New struct.
9585 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
9586 <low_new_clone, low_forget_process, low_prepare_to_resume>
9587 <copy_thread_dreg_state, mark_thread_stale>
9588 <mark_debug_registers_changed, register_hw_breakpoint>
9589 <clear_hw_breakpoint, register_wp, clear_wp>
9590 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
9591 <num_memory_accesses, get_trigger_type>
9592 <create_watchpoint_request, hwdebug_point_cmp>
9593 <init_arch_lwp_info, get_arch_lwp_info>
9594 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
9595 methods.
9596 <struct ptid_hash>: New inner struct.
9597 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
9598 members.
9599 (saved_dabr_value, hwdebug_info, max_slots_number)
9600 (struct hw_break_tuple, struct thread_points, ppc_threads)
9601 (have_ptrace_hwdebug_interface)
9602 (hwdebug_find_thread_points_by_tid)
9603 (hwdebug_insert_point, hwdebug_remove_point): Remove.
9604 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
9605 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
9606 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
9607 use m_dreg_interface.
9608 (hwdebug_point_cmp): Change to...
9609 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
9610 reference arguments instead of pointers.
9611 (ppc_linux_nat_target::ranged_break_num_registers): Use
9612 m_dreg_interface.
9613 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
9614 m_dreg_interface. Call register_hw_breakpoint.
9615 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
9616 m_dreg_interface. Call clear_hw_breakpoint.
9617 (get_trigger_type): Change to...
9618 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
9619 comment.
9620 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
9621 use m_dreg_interface. Call register_hw_breakpoint.
9622 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
9623 use m_dreg_interface. Call clear_hw_breakpoint.
9624 (can_use_watchpoint_cond_accel): Change to...
9625 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
9626 method. Update comment, use m_dreg_interface and
9627 m_process_info.
9628 (calculate_dvc): Change to...
9629 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
9630 m_dreg_interface.
9631 (num_memory_accesses): Change to...
9632 (ppc_linux_nat_target::num_memory_accesses): ...this method.
9633 (check_condition): Change to...
9634 (ppc_linux_nat_target::check_condition): ...this method.
9635 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
9636 comment, use m_dreg_interface.
9637 (create_watchpoint_request): Change to...
9638 (ppc_linux_nat_target::create_watchpoint_request): ...this
9639 method. Use m_dreg_interface.
9640 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
9641 m_dreg_interface. Call register_hw_breakpoint or register_wp.
9642 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
9643 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
9644 (ppc_linux_nat_target::low_forget_process)
9645 (ppc_linux_nat_target::low_new_fork)
9646 (ppc_linux_nat_target::low_new_clone)
9647 (ppc_linux_nat_target::low_delete_thread)
9648 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
9649 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
9650 only call mark_thread_stale.
9651 (ppc_linux_thread_exit): Remove.
9652 (ppc_linux_nat_target::stopped_data_address): Change to...
9653 (ppc_linux_nat_target::low_stopped_data_address): This. Add
9654 comment, use m_dreg_interface and m_thread_hw_breakpoints.
9655 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
9656 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
9657 comment. Call low_stopped_data_address.
9658 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
9659 m_dreg_interface.
9660 (ppc_linux_nat_target::masked_watch_num_registers): Use
9661 m_dreg_interface.
9662 (ppc_linux_nat_target::copy_thread_dreg_state)
9663 (ppc_linux_nat_target::mark_thread_stale)
9664 (ppc_linux_nat_target::mark_debug_registers_changed)
9665 (ppc_linux_nat_target::register_hw_breakpoint)
9666 (ppc_linux_nat_target::clear_hw_breakpoint)
9667 (ppc_linux_nat_target::register_wp)
9668 (ppc_linux_nat_target::clear_wp)
9669 (ppc_linux_nat_target::init_arch_lwp_info)
9670 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
9671 (_initialize_ppc_linux_nat): Remove observer callback.
9672
4db10d8f
PFC
96732020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9674
9675 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
9676 (ppc_linux_nat_target::auxv_parse)
9677 (ppc_linux_nat_target::read_description)
9678 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
9679 Move up.
9680
1310c1b0
PFC
96812020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9682
9683 * linux-nat.h (low_new_clone): New method.
9684 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
9685
69b037c3
SM
96862020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9687
9688 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
9689 (dbx_expand_psymtab): ... this.
9690 (start_psymtab): Update.
9691 * mdebugread.c (psymtab_to_symtab_1): Rename to...
9692 (mdebug_expand_psymtab): ... this.
9693 (parse_partial_symbols): Update.
9694 (new_psymtab): Update.
9695 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
9696 (xcoff_expand_psymtab): ... this.
9697 (xcoff_start_psymtab): Update.
9698
48993951
SM
96992020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9700
9701 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
9702 <expand_dependencies>: ... this.
9703 * psymtab.c (partial_symtab::read_dependencies): Rename to...
9704 (partial_symtab::expand_dependencies): ... this.
9705 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
9706 Update.
9707 (dwarf2_psymtab::expand_psymtab): Update.
9708 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
9709 * mdebugread.c (psymtab_to_symtab_1): Update.
9710 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
9711
3ad83046
SM
97122020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9713
9714 * psympriv.h (discard_psymtab): Remove.
9715 * dbxread.c (dbx_end_psymtab): Update.
9716 * xcoffread.c (xcoff_end_psymtab): Update.
9717
4d1b9ab6
TT
97182020-03-28 Tom Tromey <tom@tromey.com>
9719
9720 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
9721 comment.
9722
f1749218
TT
97232020-03-28 Tom Tromey <tom@tromey.com>
9724
9725 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
9726
ebea7626
HD
97272020-03-27 Hannes Domani <ssbssa@yahoo.de>
9728
9729 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
9730
a879b4d5
JB
97312020-03-26 John Baldwin <jhb@FreeBSD.org>
9732
9733 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
9734
0826b30a
TT
97352020-03-26 Tom Tromey <tom@tromey.com>
9736
9737 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
9738 (mark_common_block_symbol_computed, read_tag_string_type)
9739 (attr_to_dynamic_prop, read_subrange_type): Update.
9740 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
9741 to be methods on struct attribute.
9742 (skip_one_die, process_imported_unit_die, read_namespace_alias)
9743 (read_call_site_scope, partial_die_info::read)
9744 (partial_die_info::read, lookup_die_type, follow_die_ref):
9745 Update.
9746 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
9747 from dwarf2_get_ref_die_offset.
9748 (attribute::constant_value): New method, from
9749 dwarf2_get_attr_constant_value.
9750 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
9751 Declare method.
9752 <constant_value>: New method.
9753
2b2558bf
TT
97542020-03-26 Tom Tromey <tom@tromey.com>
9755
9756 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
9757 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
9758 (dwarf_type_encoding_name): Move to stringify.c.
9759 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
9760 * dwarf2/stringify.c: New file.
9761 * dwarf2/stringify.h: New file.
9762
eeb64781
TT
97632020-03-26 Tom Tromey <tom@tromey.com>
9764
9765 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
9766 Rewrite.
9767
a39fdb41
TT
97682020-03-26 Tom Tromey <tom@tromey.com>
9769
9770 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
9771 methods.
9772 * dwarf2/read.c (lookup_addr_base): Move to die.h.
9773 (lookup_ranges_base): Likewise.
9774 (read_cutu_die_from_dwo, read_full_die_1): Update.
9775
436c571c
TT
97762020-03-26 Tom Tromey <tom@tromey.com>
9777
9778 * dwarf2/read.c (read_import_statement, read_file_scope)
9779 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
9780 (read_lexical_block_scope, read_call_site_scope)
9781 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
9782 (handle_struct_member_die, process_structure_scope)
9783 (update_enumeration_type_from_children)
9784 (process_enumeration_scope, read_array_type, read_common_block)
9785 (read_namespace, read_module, read_subroutine_type): Update.
9786 (sibling_die): Remove.
9787
052c8bb8
TT
97882020-03-26 Tom Tromey <tom@tromey.com>
9789
9790 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
9791 (build_type_psymtabs_reader, read_structure_type)
9792 (read_enumeration_type, read_full_die_1): Update.
9793 (dwarf2_attr_no_follow): Move to die.h.
9794 * dwarf2/die.h (struct die_info) <attr>: New method.
9795
2b24b6e4
TT
97962020-03-26 Tom Tromey <tom@tromey.com>
9797
9798 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
9799 <base_address>: Now an optional.
9800 (dwarf2_find_base_address, dwarf2_rnglists_process)
9801 (dwarf2_ranges_process, fill_in_loclist_baton)
9802 (dwarf2_symbol_mark_computed): Update.
9803
c2d50fd0
TT
98042020-03-26 Tom Tromey <tom@tromey.com>
9805
9806 * dwarf2/read.c (struct die_info): Move to die.h.
9807 * dwarf2/die.h: New file.
9808
0df7ad3a
TT
98092020-03-26 Tom Tromey <tom@tromey.com>
9810
9811 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
9812 * dwarf2/read.c
9813 (dwarf2_statement_list_fits_in_line_number_section_complaint):
9814 Move to line-header.c.
9815 (read_checked_initial_length_and_offset, read_formatted_entries):
9816 Likewise.
9817 (dwarf_decode_line_header): Split into two.
9818 * dwarf2/line-header.c
9819 (dwarf2_statement_list_fits_in_line_number_section_complaint):
9820 Move from read.c.
9821 (read_checked_initial_length_and_offset, read_formatted_entries):
9822 Likewise.
9823 (dwarf_decode_line_header): New function, split from read.c.
9824
86c0bb4c
TT
98252020-03-26 Tom Tromey <tom@tromey.com>
9826
9827 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
9828 Declare method.
9829 * dwarf2/read.c (read_attribute_value): Update.
9830 (dwarf2_per_objfile::read_line_string): Rename from
9831 read_indirect_line_string.
9832 (read_formatted_entries): Update.
9833
2ef46c2f
TT
98342020-03-26 Tom Tromey <tom@tromey.com>
9835
9836 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
9837 variable.
9838
4f9c1eda
TT
98392020-03-26 Tom Tromey <tom@tromey.com>
9840
9841 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
9842 const.
9843 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
9844 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
9845 parameter const.
9846
5a0e026f
TT
98472020-03-26 Tom Tromey <tom@tromey.com>
9848
9849 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
9850 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
9851 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
9852 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
9853
8844c11b
TT
98542020-03-26 Tom Tromey <tom@tromey.com>
9855
9856 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
9857 file_names_size, file_full_name, file_file_name>: Use const.
9858 <file_name_at, file_names>: Add const overload.
9859 * dwarf2/line-header.c (line_header::file_file_name)
9860 (line_header::file_full_name): Update.
9861
c90ec28a
TT
98622020-03-26 Tom Tromey <tom@tromey.com>
9863
9864 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
9865 (macro_start_file, consume_improper_spaces)
9866 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
9867 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
9868 (dwarf_decode_macros): Move to macro.c.
9869 * dwarf2/macro.c: New file.
9870 * dwarf2/macro.h: New file.
9871 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
9872
4f44ae6c
TT
98732020-03-26 Tom Tromey <tom@tromey.com>
9874
9875 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
9876 method.
9877 * dwarf2/section.c: New method. From
9878 read_indirect_string_at_offset_from.
9879 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
9880 (read_indirect_string_at_offset_from): Move to section.c.
9881 (read_indirect_string_at_offset): Rewrite.
9882 (read_indirect_line_string_at_offset): Remove.
9883 (read_indirect_string, read_indirect_line_string)
9884 (dwarf_decode_macro_bytes): Update.
9885
a0194fa8
TT
98862020-03-26 Tom Tromey <tom@tromey.com>
9887
9888 * dwarf2/section.h (struct dwarf2_section_info)
9889 <overload_complaint>: Declare.
9890 (dwarf2_section_buffer_overflow_complaint): Don't declare.
9891 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
9892 Rename from dwarf2_section_buffer_overflow_complaint.
9893 * dwarf2/read.c (skip_one_die, partial_die_info::read)
9894 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
9895
3d27bbdb
TT
98962020-03-26 Tom Tromey <tom@tromey.com>
9897
9898 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
9899 Declare.
9900 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
9901 Move from read.c.
9902 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
9903 to section.c.
9904
9eac9650
TT
99052020-03-26 Tom Tromey <tom@tromey.com>
9906
9907 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
9908
bf80d710
TT
99092020-03-26 Tom Tromey <tom@tromey.com>
9910
9911 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
9912 "builder".
9913 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
9914 parameter.
9915 (dwarf_decode_macros): Update.
9916
0314b390
TT
99172020-03-26 Tom Tromey <tom@tromey.com>
9918
9919 * dwarf2/read.c (read_attribute_value): Update.
9920 (read_indirect_string_from_dwz): Move to dwz.c; change into
9921 method.
9922 (dwarf_decode_macro_bytes): Update.
9923 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
9924 * dwarf2/dwz.c: New file.
9925 * Makefile.in (COMMON_SFILES): Add dwz.c.
9926
9fda78b6
TT
99272020-03-26 Tom Tromey <tom@tromey.com>
9928
9929 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
9930 * dwarf2/read.c: Add include.
9931 * dwarf2/index-write.c: Add include.
9932 * dwarf2/index-cache.c: Add include.
9933 * dwarf2/dwz.h: New file.
9934
33aa3c10
TT
99352020-03-25 Tom Tromey <tom@tromey.com>
9936
9937 * compile/compile-object-load.c (get_out_value_type): Mention
9938 correct symbol name in error message.
9939
d503b685
HD
99402020-03-25 Hannes Domani <ssbssa@yahoo.de>
9941
9942 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
9943
7b1eff95
TV
99442020-03-25 Tom de Vries <tdevries@suse.de>
9945
9946 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
9947 * symmisc.c (dump_symtab_1): Print user and includes fields.
9948 (maintenance_info_symtabs): Same.
9949
dd895392
AB
99502020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
9951
9952 PR gdb/25534
9953 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
9954 (riscv_regcache_cooked_write): New function.
9955 (riscv_push_dummy_call): Use new function.
9956 (riscv_return_value): Likewise.
9957
5ab2fbf1
SM
99582020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
9959
9960 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
9961 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
9962 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
9963 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
9964 * infrun.c (follow_fork): Likewise.
9965 (follow_fork_inferior): Likewise.
9966 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
9967 * linux-nat.h (class linux_nat_target): Likewise.
9968 * remote.c (class remote_target) <follow_fork>: Likewise.
9969 (remote_target::follow_fork): Likewise.
9970 * target-delegates.c: Re-generate.
9971 * target.c (default_follow_fork): Likewise.
9972 (target_follow_fork): Likewise.
9973 * target.h (struct target_ops) <follow_fork>: Likewise.
9974 (target_follow_fork): Likewise.
9975
a64fafb5
TV
99762020-03-24 Tom de Vries <tdevries@suse.de>
9977
9978 * psymtab.c (maintenance_info_psymtabs): Print user field.
9979
fe26d3a3
TT
99802020-03-20 Tom Tromey <tromey@adacore.com>
9981
9982 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
9983 const.
9984 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
9985 const.
9986
c884cc46
SM
99872020-03-20 Simon Marchi <simon.marchi@efficios.com>
9988
9989 * ptrace.m4: Don't check for ptrace declaration.
9990 * config.in: Re-generate.
9991 * configure: Re-generate.
9992 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
9993 not defined.
9994
1ff700c2
KR
99952020-03-20 Kamil Rytarowski <n54@gmx.com>
9996
9997 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
9998 `PTRACE_TYPE_RET'.
9999 * i386-bsd-nat.c (gdb_ptrace): Likewise.
10000 * sparc-nat.c (gdb_ptrace): Likewise.
10001 * x86-bsd-nat.c (gdb_ptrace): Likewise.
10002
f7d4f0b1
TT
100032020-03-20 Tom Tromey <tromey@adacore.com>
10004
10005 * c-exp.y (lex_one_token): Fix assert.
10006
f67210ff
TT
100072020-03-20 Tom Tromey <tromey@adacore.com>
10008
10009 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
10010 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
10011 strncpy call.
10012
1773be9e
TT
100132020-03-20 Tom Tromey <tromey@adacore.com>
10014
10015 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
10016
70304be9
TT
100172020-03-20 Tom Tromey <tromey@adacore.com>
10018
10019 * ada-valprint.c (print_variant_part): Remove parameters; switch
10020 to value-based API.
10021 (print_field_values): Likewise.
10022 (ada_val_print_struct_union): Likewise.
10023 (ada_value_print_1): Update.
10024
9faa006d
KR
100252020-03-20 Kamil Rytarowski <n54@gmx.com>
10026
10027 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
10028 nbsd_nat_target instead of inf_ptrace_target.
10029 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
10030 nbsd_nat_target.
10031
4a90f062
KR
100322020-03-20 Kamil Rytarowski <n54@gmx.com>
10033
10034 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
10035 it to the ptrace call.
10036 * (store_registers): Likewise.
10037
100382020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
10039
10040 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
10041 it to the ptrace call.
10042 * (store_registers): Likewise.
10043
2d07da27
LM
100442020-03-19 Luis Machado <luis.machado@linaro.org>
10045
10046 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
10047 valid, fetch vg value from ptrace.
10048
f09db380
KR
100492020-03-19 Kamil Rytarowski <n54@gmx.com>
10050 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
10051 * inf-ptrace.c: Likewise.
10052 * (gdb_ptrace): Add.
10053 * (inf_ptrace_target::resume): Update.
10054 * (inf_ptrace_target::xfer_partial): Likewise.
10055 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
10056 * (inf_ptrace_peek_poke): Update.
10057
fcc7376e
KR
100582020-03-19 Kamil Rytarowski <n54@gmx.com>
10059
10060 * x86-bsd-nat.c (gdb_ptrace): New.
10061 * (x86bsd_dr_set): Add new argument `ptid'.
10062 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
10063 x86bsd_dr_set_addr): Update.
10064
cada5fc9
AB
100652020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
10066
10067 * remote.c (remote_target::process_stop_reply): Handle events for
10068 all threads differently.
10069
19a2740f
AB
100702020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
10071
10072 * completer.c (completion_tracker::remove_completion): Define new
10073 function.
10074 * completer.h (completion_tracker::remove_completion): Declare new
10075 function.
10076 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
10077 when adding a C++ function symbol.
10078
724fd9ba
AB
100792020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
10080
10081 * completer.c (completion_tracker::completion_hash_entry): Define
10082 new class.
10083 (advance_to_filename_complete_word_point): Call
10084 recompute_lowest_common_denominator.
10085 (completion_tracker::completion_tracker): Call discard_completions
10086 to setup the hash table.
10087 (completion_tracker::discard_completions): Allow for being called
10088 from the constructor, pass new equal function, and element deleter
10089 when constructing the hash table. Initialise new class member
10090 variables.
10091 (completion_tracker::maybe_add_completion): Remove use of
10092 m_entries_vec, and store more information into m_entries_hash.
10093 (completion_tracker::recompute_lcd_visitor): New function, most
10094 content taken from...
10095 (completion_tracker::recompute_lowest_common_denominator):
10096 ...here, this now just visits each item in the hash calling the
10097 above visitor.
10098 (completion_tracker::build_completion_result): Remove use of
10099 m_entries_vec, call recompute_lowest_common_denominator.
10100 * completer.h (completion_tracker::have_completions): Remove use
10101 of m_entries_vec.
10102 (completion_tracker::completion_hash_entry): Declare new class.
10103 (completion_tracker::recompute_lowest_common_denominator): Change
10104 function signature.
10105 (completion_tracker::recompute_lcd_visitor): Declare new function.
10106 (completion_tracker::m_entries_vec): Delete.
10107 (completion_tracker::m_entries_hash): Initialize to NULL.
10108 (completion_tracker::m_lowest_common_denominator_valid): New
10109 member variable.
10110 (completion_tracker::m_lowest_common_denominator_max_length): New
10111 member variable.
10112
5a82b8a1
KR
101132020-03-17 Kamil Rytarowski <n54@gmx.com>
10114
10115 * regformats/regdef.h: Put reg in gdb namespace.
10116
fb516a69
KR
101172020-03-17 Kamil Rytarowski <n54@gmx.com>
10118
10119 * i386-bsd-nat.c (gdb_ptrace): New.
10120 * (i386bsd_fetch_inferior_registers,
10121 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
10122 * (i386bsd_fetch_inferior_registers,
10123 i386bsd_store_inferior_registers) Use gdb_ptrace.
10124
1c0aa1fb
KR
101252020-03-17 Kamil Rytarowski <n54@gmx.com>
10126
10127 * amd64-bsd-nat.c (gdb_ptrace): New.
10128 * (amd64bsd_fetch_inferior_registers,
10129 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
10130 * (amd64bsd_fetch_inferior_registers,
10131 amd64bsd_store_inferior_registers) Use gdb_ptrace.
10132
5ccd2fb7
KR
101332020-03-17 Kamil Rytarowski <n54@gmx.com>
10134
10135 * user-regs.c (user_reg::read): Rename to...
10136 (user_reg::xread): ...this.
10137 * (append_user_reg): Rename argument `read' to `xread'.
10138 * (user_reg_add_builtin): Likewise.
10139 * (user_reg_add): Likewise.
10140 * (value_of_user_reg): Likewise.
10141
2108a63a
KR
101422020-03-17 Kamil Rytarowski <n54@gmx.com>
10143
10144 * sparc-nat.c (gdb_ptrace): New.
10145 * sparc-nat.c (sparc_fetch_inferior_registers)
10146 (sparc_store_inferior_registers) Remove obsolete comment.
10147 * sparc-nat.c (sparc_fetch_inferior_registers)
10148 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
10149 * sparc-nat.c (sparc_fetch_inferior_registers)
10150 (sparc_store_inferior_registers) Use gdb_ptrace.
10151
a225c9a8
KR
101522020-03-17 Kamil Rytarowski <n54@gmx.com>
10153
10154 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
10155 it to the ptrace call.
10156 * sh-nbsd-nat.c (store_registers): Likewise.
10157
98097623
KR
101582020-03-17 Kamil Rytarowski <n54@gmx.com>
10159
10160 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
10161 nbsd_nat_target instead of inf_ptrace_target.
10162 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
10163 nbsd_nat_target.
10164
9e38d619
KR
101652020-03-17 Kamil Rytarowski <n54@gmx.com>
10166
10167 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
10168
a2ecbe9f
KR
101692020-03-17 Kamil Rytarowski <n54@gmx.com>
10170
10171 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
10172 <sys/sysctl.h>.
10173 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
10174
58990295
TV
101752020-03-17 Tom de Vries <tdevries@suse.de>
10176
10177 PR gdb/23710
10178 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
10179 fields.
10180 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
10181 fields.
10182 (process_imported_unit_die): Skip import of c++ CUs.
10183
771dd3a8
TT
101842020-03-16 Tom Tromey <tom@tromey.com>
10185
10186 * p-valprint.c (pascal_object_print_value): Initialize
10187 base_value.
10188
817a7585
AK
101892020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
10190 Shahab Vahedi <shahab@synopsys.com>
10191
10192 * Makefile.in: Add arch/arc.o
10193 * configure.tgt: Likewise.
10194 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
10195 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 10196 (arc_read_description): New function to cache target descriptions.
817a7585
AK
10197 * arc-tdep.h (arc_read_description): Add proto type.
10198 * arch/arc.c: New file.
10199 * arch/arc.h: Likewise.
10200 * features/Makefile: Replace old target descriptions with new.
10201 * features/arc-arcompact.c: Remove.
10202 * features/arc-arcompact.xml: Likewise.
10203 * features/arc-v2.c: Likewise
10204 * features/arc-v2.xml: Likewise
10205 * features/arc/aux-arcompact.xml: New file.
10206 * features/arc/aux-v2.xml: Likewise.
10207 * features/arc/core-arcompact.xml: Likewise.
10208 * features/arc/core-v2.xml: Likewise.
10209 * features/arc/aux-arcompact.c: Generate.
10210 * features/arc/aux-v2.c: Likewise.
10211 * features/arc/core-arcompact.c: Likewise.
10212 * features/arc/core-v2.c: Likewise.
10213 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
10214
67430cd0
TT
102152020-03-16 Tom Tromey <tromey@adacore.com>
10216
10217 PR gdb/25663:
10218 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
10219 putting value into bcache.
10220
30efb6c7
SM
102212020-03-16 Simon Marchi <simon.marchi@efficios.com>
10222
10223 PR gdb/21500
10224 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
10225 to...
10226 (amd64_windows_init_abi_common): ... this. Don't set size of
10227 long type.
10228 (amd64_windows_init_abi): New function.
10229 (amd64_cygwin_init_abi): New function.
10230 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
10231 the Cygwin OS ABI.
10232 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
10233 comment.
10234
8db52437
SM
102352020-03-16 Simon Marchi <simon.marchi@efficios.com>
10236
10237 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
10238 * windows-tdep.c (CYGWIN_DLL_NAME): New.
10239 (pe_import_directory_entry): New struct type.
10240 (is_linked_with_cygwin_dll): New function.
10241 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
10242 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
10243 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
10244
5982a56a
SM
102452020-03-16 Simon Marchi <simon.marchi@efficios.com>
10246
10247 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
10248 i386_cygwin_core_osabi_sniffer.
10249
7a1998df
SM
102502020-03-16 Simon Marchi <simon.marchi@efficios.com>
10251
10252 * i386-cygwin-tdep.c: Rename to...
10253 * i386-windows-tdep.c: ... this.
10254 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
10255 i386-windows-tdep.c.
10256 * configure.tgt: Likewise.
10257
053205cc
SM
102582020-03-16 Simon Marchi <simon.marchi@efficios.com>
10259
10260 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
10261 * osabi.c (gdb_osabi_names): Add "Windows".
10262 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
10263 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
10264 (i386_cygwin_core_osabi_sniffer): New function, extracted from
10265 i386_cygwin_osabi_sniffer.
10266 (_initialize_i386_cygwin_tdep): Register OS ABI
10267 GDB_OSABI_WINDOWS for i386.
10268 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
10269 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
10270 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
10271 for x86-64.
10272 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
10273 when the target matches '*-*-mingw*'.
10274
fe4b2ee6
SM
102752020-03-16 Simon Marchi <simon.marchi@efficios.com>
10276
10277 * defs.h (enum gdb_osabi): Move to...
10278 * osabi.h (enum gdb_osabi): ... here.
10279 * gdbarch.sh: Include osabi.h in gdbarch.h.
10280 * gdbarch.h: Re-generate.
10281
cb9b645d
SM
102822020-03-16 Simon Marchi <simon.marchi@efficios.com>
10283
10284 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
10285 function.
10286 (_initialize_amd64_windows_tdep): Register osabi sniffer.
10287
3293bbaf
TT
102882020-03-14 Tom Tromey <tom@tromey.com>
10289
10290 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
10291 for C++.
10292 (c_type_print_modifier): Likewise. Add "language" parameter.
10293 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
10294 (c_type_print_base_1): Update.
10295 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
10296 constants.
10297 * type-stack.c (type_stack::insert): Handle tp_atomic and
10298 tp_restrict.
10299 (type_stack::follow_type_instance_flags): Likewise.
10300 (type_stack::follow_types): Likewise. Merge type-following code.
10301 * c-exp.y (RESTRICT, ATOMIC): New tokens.
10302 (space_identifier, cv_with_space_id)
10303 (const_or_volatile_or_space_identifier_noopt)
10304 (const_or_volatile_or_space_identifier): Remove.
10305 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
10306 rules.
10307 (ptr_operator, typebase): Update.
10308 (enum token_flag) <FLAG_C>: New constant.
10309 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
10310 "_Atomic".
10311 (lex_one_token): Handle FLAG_C.
10312
154151a6
KR
103132020-03-14 Kamil Rytarowski <n54@gmx.com>
10314
10315 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
10316 it to the ptrace call.
10317 * m68k-bsd-nat.c (store_registers): Likewise.
10318
bc107784
KR
103192020-03-14 Kamil Rytarowski <n54@gmx.com>
10320
10321 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
10322 gdb_byte *.
10323 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
10324 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
10325 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
10326
01a80117
KR
103272020-03-14 Kamil Rytarowski <n54@gmx.com>
10328
10329 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
10330 nbsd_nat_target instead of inf_ptrace_target.
10331 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
10332 nbsd_nat_target.
10333
f90280ca
KR
103342020-03-14 Kamil Rytarowski <n54@gmx.com>
10335
10336 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
10337 register_t.
10338
6def66f1
KR
103392020-03-14 Kamil Rytarowski <n54@gmx.com>
10340
10341 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
10342 it to the ptrace call.
10343 * alpha-bsd-nat.c (store_registers): Likewise.
10344
66eaca97
KR
103452020-03-14 Kamil Rytarowski <n54@gmx.com>
10346
10347 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
10348 includes.
10349 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
10350 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
10351 fill_fpregset): Likewise.
10352
4fed520b
KR
103532020-03-14 Kamil Rytarowski <n54@gmx.com>
10354
10355 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
10356 nbsd_nat_target instead of inf_ptrace_target.
10357 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
10358 nbsd_nat_target.
10359
2190cf06
KR
103602020-03-14 Kamil Rytarowski <n54@gmx.com>
10361
10362 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
10363 register_t.
10364
75c56d3d
KR
103652020-03-14 Kamil Rytarowski <n54@gmx.com>
10366
10367 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
10368 it to the ptrace call.
10369 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
10370 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
10371 * arm-nbsd-nat.c (store_register): Likewise.
10372 * arm-nbsd-nat.c (store_regs): Likewise.
10373 * arm-nbsd-nat.c (store_fp_register): Likewise.
10374 * arm-nbsd-nat.c (store_fp_regs): Likewise.
10375
6018d381
KR
103762020-03-14 Kamil Rytarowski <n54@gmx.com>
10377
10378 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
10379 nbsd_nat_target instead of inf_ptrace_target.
10380 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
10381 nbsd_nat_target.
10382
013f99f0
KR
103832020-03-14 Kamil Rytarowski <n54@gmx.com>
10384
10385 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
10386 it to the ptrace call.
10387 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
10388
12753073
KR
103892020-03-14 Kamil Rytarowski <n54@gmx.com>
10390
6227b330
KR
10391 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
10392 it to the ptrace call.
10393 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
10394
103952020-03-14 Kamil Rytarowski <n54@gmx.com>
10396
10397 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
10398 gdb_byte *.
12753073
KR
10399 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
10400
d5be5fa4
KR
104012020-03-14 Kamil Rytarowski <n54@gmx.com>
10402
10403 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
10404 instead of inf_ptrace_target.
10405 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
10406 nbsd_nat_target.
10407
8110f842
KR
104082020-03-14 Kamil Rytarowski <n54@gmx.com>
10409
10410 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10411 register_t.
10412
52feded7
KR
104132020-03-14 Kamil Rytarowski <n54@gmx.com>
10414
10415 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10416 register_t.
10417
25567eee
KR
104182020-03-14 Kamil Rytarowski <n54@gmx.com>
10419
10420 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
10421 register_t.
10422
426a9c18
TT
104232020-03-13 Tom Tromey <tom@tromey.com>
10424
10425 * value.h (val_print): Don't declare.
10426 * valprint.h (val_print_array_elements)
10427 (val_print_scalar_formatted, generic_val_print): Don't declare.
10428 * valprint.c (generic_val_print_array): Take a struct value.
10429 (generic_val_print_ptr, generic_val_print_memberptr)
10430 (generic_val_print_bool, generic_val_print_int)
10431 (generic_val_print_char, generic_val_print_complex)
10432 (generic_val_print): Remove.
10433 (generic_value_print): Update.
10434 (do_val_print): Remove unused parameters. Don't call
10435 la_val_print.
10436 (val_print): Remove.
10437 (common_val_print): Update. Don't call value_check_printable.
10438 (val_print_scalar_formatted, val_print_array_elements): Remove.
10439 * rust-lang.c (rust_val_print): Remove.
10440 (rust_language_defn): Update.
10441 * p-valprint.c (pascal_val_print): Remove.
10442 (pascal_value_print_inner): Update.
10443 (pascal_object_print_val_fields, pascal_object_print_val):
10444 Remove.
10445 (pascal_object_print_static_field): Update.
10446 * p-lang.h (pascal_val_print): Don't declare.
10447 * p-lang.c (pascal_language_defn): Update.
10448 * opencl-lang.c (opencl_language_defn): Update.
10449 * objc-lang.c (objc_language_defn): Update.
10450 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
10451 * m2-lang.h (m2_val_print): Don't declare.
10452 * m2-lang.c (m2_language_defn): Update.
10453 * language.h (struct language_defn) <la_val_print>: Remove.
10454 * language.c (unk_lang_value_print_inner): Rename. Change
10455 argument types.
10456 (unknown_language_defn, auto_language_defn): Update.
10457 * go-valprint.c (go_val_print): Remove.
10458 * go-lang.h (go_val_print): Don't declare.
10459 * go-lang.c (go_language_defn): Update.
10460 * f-valprint.c (f_val_print): Remove.
10461 * f-lang.h (f_value_print): Don't declare.
10462 * f-lang.c (f_language_defn): Update.
10463 * d-valprint.c (d_val_print): Remove.
10464 * d-lang.h (d_value_print): Don't declare.
10465 * d-lang.c (d_language_defn): Update.
10466 * cp-valprint.c (cp_print_value_fields)
10467 (cp_print_value_fields_rtti, cp_print_value): Remove.
10468 (cp_print_static_field): Update.
10469 * c-valprint.c (c_val_print_array, c_val_print_ptr)
10470 (c_val_print_struct, c_val_print_union, c_val_print_int)
10471 (c_val_print_memberptr, c_val_print): Remove.
10472 * c-lang.h (c_val_print_array, cp_print_value_fields)
10473 (cp_print_value_fields_rtti): Don't declare.
10474 * c-lang.c (c_language_defn, cplus_language_defn)
10475 (asm_language_defn, minimal_language_defn): Update.
10476 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
10477 (ada_val_print_enum): Take a struct value.
10478 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
10479 (ada_val_print): Remove.
10480 (ada_value_print_1): Update.
10481 (printable_val_type): Remove.
10482 * ada-lang.h (ada_val_print): Don't declare.
10483 * ada-lang.c (ada_language_defn): Update.
10484
42331a1e
TT
104852020-03-13 Tom Tromey <tom@tromey.com>
10486
10487 * valprint.c (do_val_print): Update.
10488 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
10489 a struct value.
10490 (value_to_value_object_no_release): Declare.
10491 * python/py-value.c (value_to_value_object_no_release): New
10492 function.
10493 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
10494 struct value.
10495 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
10496 function.
10497 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
10498 a struct value.
10499 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
10500 Declare.
10501 (gdbscm_apply_val_pretty_printer): Take a struct value.
10502 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
10503 value.
10504 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
10505 value.
10506 * extension-priv.h (struct extension_language_ops)
10507 <apply_val_pretty_printer>: Take a struct value.
10508 * cp-valprint.c (cp_print_value): Create a struct value.
10509 (cp_print_value): Update.
10510
3a916a97
TT
105112020-03-13 Tom Tromey <tom@tromey.com>
10512
10513 * ada-valprint.c (print_field_values): Call common_val_print.
10514
b59eac37
TT
105152020-03-13 Tom Tromey <tom@tromey.com>
10516
10517 * ada-valprint.c (val_print_packed_array_elements): Remove
10518 bitoffset and val parameters. Call common_val_print.
10519 (ada_val_print_string): Remove offset, address, and original_value
10520 parameters.
10521 (ada_val_print_array): Update.
10522 (ada_value_print_array): New function.
10523 (ada_value_print_1): Call it.
10524
03371129
TT
105252020-03-13 Tom Tromey <tom@tromey.com>
10526
10527 * ada-valprint.c (ada_value_print): Use common_val_print.
10528
2e088f8b
TT
105292020-03-13 Tom Tromey <tom@tromey.com>
10530
10531 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
10532
39ef85a8
TT
105332020-03-13 Tom Tromey <tom@tromey.com>
10534
10535 * ada-valprint.c (ada_value_print_num): New function.
10536 (ada_value_print_1): Use it.
10537
b9fa6e07
TT
105382020-03-13 Tom Tromey <tom@tromey.com>
10539
10540 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
10541
416595d6
TT
105422020-03-13 Tom Tromey <tom@tromey.com>
10543
10544 * ada-valprint.c (ada_value_print_ptr): New function.
10545 (ada_value_print_1): Use it.
10546
5b5e15ec
TT
105472020-03-13 Tom Tromey <tom@tromey.com>
10548
10549 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
10550 call common_val_print.
10551 (ada_val_print_1): Update.
10552 (ada_value_print_1): New function.
10553 (ada_value_print_inner): Rewrite.
10554
fbf54e75
TT
105552020-03-13 Tom Tromey <tom@tromey.com>
10556
10557 * cp-valprint.c (cp_print_value_fields): Update.
10558 (cp_print_value): New function.
10559
64b653ca
TT
105602020-03-13 Tom Tromey <tom@tromey.com>
10561
10562 * m2-valprint.c (m2_value_print_inner): Use
10563 cp_print_value_fields.
10564 * cp-valprint.c (cp_print_value_fields): New function.
10565 * c-valprint.c (c_value_print_struct): New function.
10566 (c_value_print_inner): Use c_value_print_struct.
10567 * c-lang.h (cp_print_value_fields): Declare.
10568
6999f067
TT
105692020-03-13 Tom Tromey <tom@tromey.com>
10570
10571 * c-valprint.c (c_value_print_array): New function.
10572 (c_value_print_inner): Use it.
10573
ce80b8bd
TT
105742020-03-13 Tom Tromey <tom@tromey.com>
10575
10576 * c-valprint.c (c_value_print_memberptr): New function.
10577 (c_value_print_inner): Use it.
10578
2faac269
TT
105792020-03-13 Tom Tromey <tom@tromey.com>
10580
10581 * c-valprint.c (c_value_print_int): New function.
10582 (c_value_print_inner): Use it.
10583
da3e2c29
TT
105842020-03-13 Tom Tromey <tom@tromey.com>
10585
10586 * c-valprint.c (c_value_print_ptr): New function.
10587 (c_value_print_inner): Use it.
10588
50836231
TT
105892020-03-13 Tom Tromey <tom@tromey.com>
10590
10591 * c-valprint.c (c_value_print_inner): Rewrite.
10592
4f412b6e
TT
105932020-03-13 Tom Tromey <tom@tromey.com>
10594
10595 * valprint.c (generic_value_print_complex): New function.
10596 (generic_value_print): Use it.
10597
f5354008
TT
105982020-03-13 Tom Tromey <tom@tromey.com>
10599
10600 * valprint.c (generic_val_print_float): Don't call
10601 val_print_scalar_formatted.
10602 (generic_val_print, generic_value_print): Update.
10603
3eec3b05
TT
106042020-03-13 Tom Tromey <tom@tromey.com>
10605
10606 * valprint.c (generic_value_print_char): New function
10607 (generic_value_print): Use it.
10608
fdddfccb
TT
106092020-03-13 Tom Tromey <tom@tromey.com>
10610
10611 * valprint.c (generic_value_print_int): New function.
10612 (generic_value_print): Use it.
10613
6dde7521
TT
106142020-03-13 Tom Tromey <tom@tromey.com>
10615
10616 * valprint.c (generic_value_print_bool): New function.
10617 (generic_value_print): Use it.
10618
4112d2e6
TT
106192020-03-13 Tom Tromey <tom@tromey.com>
10620
10621 * valprint.c (generic_val_print_func): Simplify.
10622 (generic_val_print, generic_value_print): Update.
10623
65786af6
TT
106242020-03-13 Tom Tromey <tom@tromey.com>
10625
10626 * valprint.c (generic_val_print_flags): Remove.
10627 (generic_val_print, generic_value_print): Update.
10628 (val_print_type_code_flags): Add original_value parameter.
10629
40f3ce18
TT
106302020-03-13 Tom Tromey <tom@tromey.com>
10631
10632 * valprint.c (generic_val_print): Update.
10633 (generic_value_print): Update.
10634 * valprint.c (generic_val_print_enum): Don't call
10635 val_print_scalar_formatted.
10636
2a5b130b
TT
106372020-03-13 Tom Tromey <tom@tromey.com>
10638
10639 * valprint.c (generic_value_print): Call generic_value_print_ptr.
10640 * valprint.c (generic_value_print_ptr): New function.
10641
abc66ce9
TT
106422020-03-13 Tom Tromey <tom@tromey.com>
10643
10644 * valprint.c (generic_value_print): Rewrite.
10645
07a32858
TT
106462020-03-13 Tom Tromey <tom@tromey.com>
10647
10648 * p-valprint.c (pascal_object_print_value_fields)
10649 (pascal_object_print_value): New functions.
10650
64d64d3a
TT
106512020-03-13 Tom Tromey <tom@tromey.com>
10652
10653 * p-valprint.c (pascal_value_print_inner): Rewrite.
10654
6a95a1f5
TT
106552020-03-13 Tom Tromey <tom@tromey.com>
10656
10657 * f-valprint.c (f_value_print_innner): Rewrite.
10658
59fcdac6
TT
106592020-03-13 Tom Tromey <tom@tromey.com>
10660
10661 * m2-valprint.c (m2_print_unbounded_array): New overload.
10662 (m2_print_unbounded_array): Update.
10663 (m2_print_array_contents): Take a struct value.
10664 (m2_value_print_inner): Rewrite.
10665
d133c3e1
TT
106662020-03-13 Tom Tromey <tom@tromey.com>
10667
10668 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
10669 (d_value_print_inner): New function.
10670 * d-lang.h (d_value_print_inner): Declare.
10671 * d-lang.c (d_language_defn): Use d_value_print_inner.
10672
23b0f06b
TT
106732020-03-13 Tom Tromey <tom@tromey.com>
10674
10675 * go-valprint.c (go_value_print_inner): New function.
10676 * go-lang.h (go_value_print_inner): Declare.
10677 * go-lang.c (go_language_defn): Use go_value_print_inner.
10678
5f56f7cb
TT
106792020-03-13 Tom Tromey <tom@tromey.com>
10680
10681 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
10682 API.
10683 (rust_val_print): Rewrite.
10684 (rust_value_print_inner): New function, from rust_val_print.
10685 (rust_language_defn): Use rust_value_print_inner.
10686
26792ee0
TT
106872020-03-13 Tom Tromey <tom@tromey.com>
10688
10689 * ada-valprint.c (ada_value_print_inner): New function.
10690 * ada-lang.h (ada_value_print_inner): Declare.
10691 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
10692
24051bbe
TT
106932020-03-13 Tom Tromey <tom@tromey.com>
10694
10695 * f-valprint.c (f_value_print_innner): New function.
10696 * f-lang.h (f_value_print_innner): Declare.
10697 * f-lang.c (f_language_defn): Use f_value_print_innner.
10698
c0941be6
TT
106992020-03-13 Tom Tromey <tom@tromey.com>
10700
10701 * p-valprint.c (pascal_value_print_inner): New function.
10702 * p-lang.h (pascal_value_print_inner): Declare.
10703 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
10704
62c4663d
TT
107052020-03-13 Tom Tromey <tom@tromey.com>
10706
10707 * m2-valprint.c (m2_value_print_inner): New function.
10708 * m2-lang.h (m2_value_print_inner): Declare.
10709 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
10710
62182190
TT
107112020-03-13 Tom Tromey <tom@tromey.com>
10712
10713 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
10714 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
10715 * c-valprint.c (c_value_print_inner): New function.
10716 * c-lang.h (c_value_print_inner): Declare.
10717 * c-lang.c (c_language_defn, cplus_language_defn)
10718 (asm_language_defn, minimal_language_defn): Use
10719 c_value_print_inner.
10720
1e592a8a
TT
107212020-03-13 Tom Tromey <tom@tromey.com>
10722
10723 * p-valprint.c (pascal_object_print_value_fields): Now static.
10724 * p-lang.h (pascal_object_print_value_fields): Don't declare.
10725
7fe471e9
TT
107262020-03-13 Tom Tromey <tom@tromey.com>
10727
10728 * c-valprint.c (c_val_print_array): Simplify.
10729
d121c6ce
TT
107302020-03-13 Tom Tromey <tom@tromey.com>
10731
10732 * valprint.c (value_print_array_elements): New function.
10733 * valprint.h (value_print_array_elements): Declare.
10734
4dba70ee
TT
107352020-03-13 Tom Tromey <tom@tromey.com>
10736
10737 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
10738 * mips-tdep.c (mips_print_register): Use
10739 value_print_scalar_formatted.
10740
4f9ae810
TT
107412020-03-13 Tom Tromey <tom@tromey.com>
10742
10743 * valprint.h (value_print_scalar_formatted): Declare.
10744 * valprint.c (value_print_scalar_formatted): New function.
10745
156bfec9
TT
107462020-03-13 Tom Tromey <tom@tromey.com>
10747
10748 * valprint.h (generic_value_print): Declare.
10749 * valprint.c (generic_value_print): New function.
10750
2b4e573d
TT
107512020-03-13 Tom Tromey <tom@tromey.com>
10752
10753 * valprint.c (do_val_print): Call la_value_print_inner, if
10754 available.
10755 * rust-lang.c (rust_language_defn): Update.
10756 * p-lang.c (pascal_language_defn): Update.
10757 * opencl-lang.c (opencl_language_defn): Update.
10758 * objc-lang.c (objc_language_defn): Update.
10759 * m2-lang.c (m2_language_defn): Update.
10760 * language.h (struct language_defn) <la_value_print_inner>: New
10761 member.
10762 * language.c (unknown_language_defn, auto_language_defn): Update.
10763 * go-lang.c (go_language_defn): Update.
10764 * f-lang.c (f_language_defn): Update.
10765 * d-lang.c (d_language_defn): Update.
10766 * c-lang.c (c_language_defn, cplus_language_defn)
10767 (asm_language_defn, minimal_language_defn): Update.
10768 * ada-lang.c (ada_language_defn): Update.
10769
a1f6a07c
TT
107702020-03-13 Tom Tromey <tom@tromey.com>
10771
10772 * c-valprint.c (c_value_print): Use common_val_print.
10773
410cf315
TT
107742020-03-13 Tom Tromey <tom@tromey.com>
10775
10776 * cp-valprint.c (cp_print_static_field): Use common_val_print.
10777
72a45c93
TT
107782020-03-13 Tom Tromey <tom@tromey.com>
10779
10780 * f-valprint.c (f77_print_array_1, f_val_print): Use
10781 common_val_print.
10782
040f66bd
TT
107832020-03-13 Tom Tromey <tom@tromey.com>
10784
10785 * riscv-tdep.c (riscv_print_one_register_info): Use
10786 common_val_print.
10787
a6e05a6c
TT
107882020-03-13 Tom Tromey <tom@tromey.com>
10789
10790 * mi/mi-main.c (output_register): Use common_val_print.
10791
3444c526
TT
107922020-03-13 Tom Tromey <tom@tromey.com>
10793
10794 * infcmd.c (default_print_one_register_info): Use
10795 common_val_print.
10796
c2a44efe
TT
107972020-03-13 Tom Tromey <tom@tromey.com>
10798
10799 * valprint.h (common_val_print_checked): Declare.
10800 * valprint.c (common_val_print_checked): New function.
10801 * stack.c (print_frame_arg): Use common_val_print_checked.
10802
b0c26e99
TT
108032020-03-13 Tom Tromey <tom@tromey.com>
10804
10805 * valprint.c (do_val_print): New function, from val_print.
10806 (val_print): Use do_val_print.
10807 (common_val_print): Use do_val_print.
10808
ce3acbe9
TT
108092020-03-13 Tom Tromey <tom@tromey.com>
10810
10811 * valprint.c (value_print): Use scoped_value_mark.
10812
96c7f873
TV
108132020-03-13 Tom de Vries <tdevries@suse.de>
10814
10815 PR symtab/25646
10816 * psymtab.c (partial_symtab::partial_symtab): Don't set
10817 globals_offset and statics_offset. Push element onto
10818 current_global_psymbols and current_static_psymbols stacks.
10819 (concat): New function.
10820 (end_psymtab_common): Set globals_offset and statics_offset. Pop
10821 element from current_global_psymbols and current_static_psymbols
10822 stacks. Concat popped elements to global_psymbols and
10823 static_symbols.
10824 (add_psymbol_to_list): Use current_global_psymbols and
10825 current_static_psymbols stacks.
10826 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
10827 current_static_psymbols fields.
10828
6ba0a321
CB
108292020-03-12 Christian Biesinger <cbiesinger@google.com>
10830
10831 * corelow.c (sniff_core_bfd): Remove.
10832 (class core_target) <m_core_vec>: Remove.
10833 (core_target::core_target): Update.
10834 (core_file_fns): Remove.
10835 (deprecated_add_core_fns): Remove.
10836 (default_core_sniffer): Remove.
10837 (sniff_core_bfd): Remove.
10838 (default_check_format): Remove.
10839 (gdb_check_format): Remove.
10840 (core_target_open): Update.
10841 (core_target::get_core_register_section): Update.
10842 (get_core_registers_cb): Update.
10843 (core_target::fetch_registers): Update.
10844 * gdbcore.h (struct core_fns): Remove.
10845 (deprecated_add_core_fns): Remove.
10846 (default_core_sniffer): Remove.
10847 (default_check_format): Remove.
10848
227031b2
TT
108492020-03-12 Tom Tromey <tom@tromey.com>
10850
10851 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
10852 CORE_ADDR.
10853 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
10854
53807e9f
TT
108552020-03-12 Tom Tromey <tom@tromey.com>
10856
10857 * remote.c (remote_target::download_tracepoint)
10858 (remote_target::enable_tracepoint)
10859 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
10860 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
10861 sprintf_vma.
10862
64f25102
TT
108632020-03-12 Tom Tromey <tom@tromey.com>
10864
10865 * symfile-mem.c: Update CORE_ADDR size assert.
10866
272cd5a3
SM
108672020-03-12 Simon Marchi <simon.marchi@efficios.com>
10868
10869 * selftest.m4: Move to gdbsupport/.
10870 * acinclude.m4: Update path to selftest.m4.
10871
74cd3f9d
SM
108722020-03-12 Simon Marchi <simon.marchi@efficios.com>
10873
10874 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
10875 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
10876 gdbarch-selfselftests.c and selftest-arch.c.
10877 (SUBDIR_UNITTESTS_OBS): Rename to...
10878 (SELFTESTS_OBS): ... this.
10879 (COMMON_SFILES): Remove disasm-selftests.c and
10880 gdbarch-selftests.c.
10881 * configure.ac: Don't add selftest-arch.{c,o} to
10882 CONFIG_{SRCS,OBS}.
10883 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
10884 preprocessor conditions.
10885
db6878ac
SM
108862020-03-12 Simon Marchi <simon.marchi@efficios.com>
10887
10888 * configure.ac: Don't source bfd/development.sh.
10889 * selftest.m4: Modify comment.
10890 * configure: Re-generate.
10891
4d696a5c
SM
108922020-03-12 Simon Marchi <simon.marchi@efficios.com>
10893
10894 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
10895 not "true" or "false".
10896 * configure: Re-generate.
10897
8dd8e1c7
CB
108982020-03-12 Christian Biesinger <cbiesinger@google.com>
10899
10900 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
10901 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
10902 renamed to arm_nbsd_supply_gregset.
10903 (fetch_register): Update to call arm_nbsd_supply_gregset.
10904 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
10905 (arm_netbsd_nat_target::fetch_registers): Update.
10906 (fetch_elfcore_registers): Removed.
10907 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
10908 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
10909 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
10910 not require NetBSD system headers.
10911 (arm_nbsd_regset): New struct.
10912 (arm_nbsd_iterate_over_regset_sections): New function.
10913 (arm_netbsd_init_abi_common): Updated to call
10914 set_gdbarch_iterate_over_regset_sections.
10915 * arm-nbsd-tdep.h: New file.
10916
dd69bf7a
KB
109172020-03-11 Kevin Buettner <kevinb@redhat.com>
10918
10919 * symtab.c (find_pc_sect_line): Add check which prevents infinite
10920 recursion.
10921
a0761e34
SM
109222020-03-11 Simon Marchi <simon.marchi@efficios.com>
10923
10924 * configure: Re-generate.
10925
e7a82140
TT
109262020-03-11 Tom Tromey <tromey@adacore.com>
10927
10928 * ada-typeprint.c (print_choices): Fix comment.
10929
dcc050c8
AB
109302020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
10931
10932 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
10933 previous item in the list, when the list has no items.
10934
1c33af77
TV
109352020-03-11 Tom de Vries <tdevries@suse.de>
10936
10937 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
10938 PROP_LOCLIST handling code.
10939
8c95582d
AB
109402020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
10941
10942 * buildsym-legacy.c (record_line): Pass extra parameter to
10943 record_line.
10944 * buildsym.c (buildsym_compunit::record_line): Take an extra
10945 parameter, reduce duplication in the line table, and record the
10946 is_stmt flag in the line table.
10947 * buildsym.h (buildsym_compunit::record_line): Add extra
10948 parameter.
10949 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
10950 non-statement lines.
10951 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
10952 this to the symtab builder.
10953 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
10954 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
10955 through to dwarf_record_line_1.
10956 * infrun.c (process_event_stop_test): When stepping, don't stop at
10957 a non-statement instruction, and only refresh the step info when
10958 we land in the middle of a line's range. Also add an extra
10959 comment.
10960 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
10961 field.
10962 * record-btrace.c (btrace_find_line_range): Only record lines
10963 marked as is-statement.
10964 * stack.c (frame_show_address): Show the frame address if we are
10965 in a non-statement sal.
10966 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
10967 (maintenance_print_one_line_table): Print a header for the is_stmt
10968 column, and include is_stmt information in the output.
10969 * symtab.c (find_pc_sect_line): Find lines marked as statements in
10970 preference to non-statements.
10971 (find_pcs_for_symtab_line): Prefer is-statement entries.
10972 (find_line_common): Likewise.
10973 * symtab.h (struct linetable_entry): Add is_stmt field.
10974 (struct symtab_and_line): Likewise.
10975 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
10976 arranging the line table.
10977
e4003a34
TV
109782020-03-07 Tom de Vries <tdevries@suse.de>
10979
10980 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
10981 DIE.
10982
e8932576
TT
109832020-03-07 Tom Tromey <tom@tromey.com>
10984
10985 * valops.c (value_literal_complex): Remove obsolete comment.
10986 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
10987 comment.
10988
29734269
SM
109892020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
10990
10991 * infrun.h: Forward-declare thread_info.
10992 (set_step_info): Add thread_info parameter, add doc.
10993 * infrun.c (set_step_info): Add thread_info parameter, move doc
10994 to header.
10995 * infrun.c (process_event_stop_test): Pass thread to
10996 set_step_info call.
10997 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
10998 set_step_info.
10999 (prepare_one_step): Add thread_info parameter, pass it to
11000 set_step_frame and prepare_one_step (recursive) call.
11001 (step_1): Pass thread to prepare_one_step call.
11002 (step_command_fsm::should_stop): Pass thread to
11003 prepare_one_step.
11004 (until_next_fsm): Pass thread to set_step_frame call.
11005 (finish_command): Pass thread to set_step_info call.
11006
b7d64b29
HD
110072020-03-06 Hannes Domani <ssbssa@yahoo.de>
11008
11009 * windows-tdep.c (windows_solib_create_inferior_hook):
11010 Check if inferior is running.
11011
09f2921c
TV
110122020-03-06 Tom de Vries <tdevries@suse.de>
11013
11014 * NEWS: Fix "the the".
11015 * ctfread.c: Same.
11016
fd760e79
TV
110172020-03-06 Tom de Vries <tdevries@suse.de>
11018
11019 * psymtab.c (psymtab_to_symtab): Don't print "done.".
11020
20ea4a60
AB
110212020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11022
11023 * .dir-locals.el: Add a comment referencing the other copies of
11024 this file.
11025
0afbabf0
JB
110262020-03-05 John Baldwin <jhb@FreeBSD.org>
11027
11028 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
11029 psargs.
11030
842806cb
TBA
110312020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11032
11033 * .gitattributes: New file.
11034
be1e3d3e
TT
110352020-03-04 Tom Tromey <tom@tromey.com>
11036
11037 * symmisc.c (print_symbol_bcache_statistics)
11038 (print_objfile_statistics): Update.
11039 * symfile.c (allocate_symtab): Use intern.
11040 * psymtab.c (partial_symtab::partial_symtab): Use intern.
11041 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
11042 macro_cache>: Remove.
11043 <string_cache>: New member.
11044 (struct objfile) <intern>: New methods.
11045 * elfread.c (elf_symtab_read): Use intern.
11046 * dwarf2/read.c (fixup_go_packaging): Intern package name.
11047 (dwarf2_compute_name, dwarf2_physname)
11048 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
11049 names.
11050 (guess_partial_die_structure_name): Update.
11051 (partial_die_info::fixup): Intern name.
11052 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
11053 name.
11054 (dwarf2_name): Intern name. Update.
11055 * buildsym.c (buildsym_compunit::get_macro_table): Use
11056 string_cache.
11057
4e7625fd
TT
110582020-03-04 Tom Tromey <tom@tromey.com>
11059
11060 * jit.c (bfd_open_from_target_memory): Make "target" const.
11061 * corefile.c (gnutarget): Now const.
11062 * gdbcore.h (gnutarget): Now const.
11063
46f9f931
HD
110642020-03-04 Hannes Domani <ssbssa@yahoo.de>
11065
11066 * NEWS: Mention support for WOW64 processes.
11067 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
11068 (amd64_windows_segment_register_p): Remove static.
11069 (_initialize_amd64_windows_nat): Update.
11070 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
11071 * i386-windows-nat.c (context_offset): Update.
11072 (i386_mappings): Rename and remove static.
11073 (i386_windows_segment_register_p): Remove static.
11074 (_initialize_i386_windows_nat): Update.
11075 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
11076 (STATUS_WX86_SINGLE_STEP): New macro.
11077 (EnumProcessModulesEx): New macro.
11078 (Wow64SuspendThread): New macro.
11079 (Wow64GetThreadContext): New macro.
11080 (Wow64SetThreadContext): New macro.
11081 (Wow64GetThreadSelectorEntry): New macro.
11082 (windows_set_context_register_offsets): Add static.
11083 (windows_set_segment_register_p): Likewise.
11084 (windows_add_thread): Adapt for WOW64 processes.
11085 (windows_fetch_one_register): Likewise.
11086 (windows_nat_target::fetch_registers): Likewise.
11087 (windows_store_one_register): Likewise.
11088 (display_selector): Likewise.
11089 (display_selectors): Likewise.
11090 (handle_exception): Likewise.
11091 (windows_continue): Likewise.
11092 (windows_nat_target::resume): Likewise.
11093 (windows_add_all_dlls): Likewise.
11094 (do_initial_windows_stuff): Likewise.
11095 (windows_nat_target::attach): Likewise.
11096 (windows_get_exec_module_filename): Likewise.
11097 (windows_nat_target::create_inferior): Likewise.
11098 (windows_xfer_siginfo): Likewise.
11099 (_initialize_loadable): Initialize Wow64SuspendThread,
11100 Wow64GetThreadContext, Wow64SetThreadContext,
11101 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
11102 * windows-nat.h (windows_set_context_register_offsets):
11103 Remove declaration.
11104 (windows_set_segment_register_p): Likewise.
11105 (i386_windows_segment_register_p): Add declaration.
11106 (amd64_windows_segment_register_p): Likewise.
11107
440cf44e
LM
111082020-03-04 Luis Machado <luis.machado@linaro.org>
11109
11110 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
11111 in "info registers" for AArch64/ARM.
11112
11113 The change caused "info registers" to not print GPR's.
11114
11115 gdb/ChangeLog:
11116
11117 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
11118
11119 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
11120 when reg->group is empty and reggroup is not.
11121
1009d92f
TT
111222020-03-03 Tom Tromey <tromey@adacore.com>
11123
11124 * dwarf2/frame.c (struct dwarf2_frame_cache)
11125 <checked_tailcall_bottom, entry_cfa_sp_offset,
11126 entry_cfa_sp_offset_p>: Remove members.
11127 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
11128 (dwarf2_frame_prev_register): Don't call
11129 dwarf2_tailcall_sniffer_first.
11130 (dwarf2_append_unwinders): Don't append tailcall unwinder.
11131 * frame-unwind.c (add_unwinder): New fuction.
11132 (frame_unwind_init): Use it. Add tailcall unwinder.
11133
5e5d66b6
AB
111342020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
11135 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11136
11137 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
11138 value should be printed as true.
11139
584cf46d
HD
111402020-03-03 Hannes Domani <ssbssa@yahoo.de>
11141
11142 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
11143 (windows_init_abi): Set and use windows_so_ops.
11144
7b973adc
SDJ
111452020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
11146
11147 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
11148 when verifying if dealing with a convenience variable.
11149
bb7b70ab
LM
111502020-03-03 Luis Machado <luis.machado@linaro.org>
11151
11152 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
11153
9822cb57
SM
111542020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11155
11156 * infrun.c (gdbarch_supports_displaced_stepping): New.
11157 (use_displaced_stepping): Break up conditions in smaller pieces.
11158 Use gdbarch_supports_displaced_stepping.
11159 (displaced_step_prepare_throw): Use
11160 gdbarch_supports_displaced_stepping.
11161
63e163f2
AB
111622020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
11163
11164 * NEWS: Mention new behaviour of the history filename.
11165 * top.c (write_history_p): Add comment.
11166 (show_write_history_p): Add header comment, give a different
11167 message when history writing is on, but the history filename is
11168 empty.
11169 (history_filename): Add comment.
11170 (history_filename_empty): New function.
11171 (show_history_filename): Add header comment, give a different
11172 message when the filename is empty.
11173 (init_history): Compare history_filename against nullptr, and only
11174 read history if the filename is not empty.
11175 (set_history_filename): Add header comment, and only make
11176 non-empty filenames absolute.
11177 (init_main): Make the filename argument to 'set history filename'
11178 optional.
11179
81b86b97
CB
111802020-03-02 Christian Biesinger <cbiesinger@google.com>
11181
11182 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
11183 (arm_supply_vfpregset): ...this, and update to use VFP registers.
11184 (fetch_fp_register): Update.
11185 (fetch_fp_regs): Update.
11186 (store_fp_register): Update.
11187 (store_fp_regs): Update.
11188 (arm_netbsd_nat_target::read_description): New function.
11189 (fetch_elfcore_registers): Update.
11190
24ed6739
AB
111912020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
11192
11193 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
11194 general_thread if the stop reply is missing a thread-id.
11195 (remote_target::process_stop_reply): Use the first non-exited
11196 thread if the target didn't pass a thread-id.
11197 * infrun.c (do_target_wait): Move call to
11198 switch_to_inferior_no_thread to ....
11199 (do_target_wait_1): ... here.
11200
a84bb2a0
JT
112012020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
11202
11203 * debuginfod-support.c: Include defs.h first.
11204
658dadf0
TV
112052020-02-28 Tom de Vries <tdevries@suse.de>
11206
11207 * symfile.c (set_initial_language): Use default language for lookup.
11208
4ebe4877
SM
112092020-02-28 Simon Marchi <simon.marchi@efficios.com>
11210
11211 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
11212 reader variable, pass `this` to read_cutu_die_from_dwo.
11213
e5da1139
AM
112142020-02-27 Aaron Merey <amerey@redhat.com>
11215
11216 * source.c (open_source_file): Check for nullptr when computing
11217 srcpath.
11218
317f7127
TT
112192020-02-27 Tom Tromey <tromey@adacore.com>
11220
11221 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
11222 member.
11223 (dwarf2_add_field): Don't update nfields.
11224 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
11225
3104d9ee
AB
112262020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11227
11228 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
11229 abs.
11230
b83470bf
TT
112312020-02-26 Tom Tromey <tom@tromey.com>
11232
11233 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
11234 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
11235 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
11236 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
11237 per_cu_data.
11238
edfe0a0c
TT
112392020-02-26 Tom Tromey <tom@tromey.com>
11240
11241 * dwarf2/index-write.c (psym_index_map): Change type.
11242 (add_address_entry_worker, write_one_signatured_type)
11243 (recursively_count_psymbols, recursively_write_psymbols)
11244 (class debug_names, psyms_seen_size, write_gdbindex)
11245 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
11246
0d79cdc4
AM
112472020-02-26 Aaron Merey <amerey@redhat.com>
11248
11249 * Makefile.in: Handle optional debuginfod support.
11250 * NEWS: Update.
11251 * README: Add --with-debuginfod summary.
11252 * config.in: Regenerate.
11253 * configure: Regenerate.
11254 * configure.ac: Handle optional debuginfod support.
11255 * debuginfod-support.c: debuginfod helper functions.
11256 * debuginfod-support.h: Ditto.
11257 * doc/gdb.texinfo: Add --with-debuginfod to configure options
11258 summary.
11259 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
11260 when a dwz file cannot be found.
11261 * elfread.c (elf_symfile_read): Query debuginfod servers when a
11262 debuginfo file cannot be found.
11263 * source.c (open_source_file): Query debuginfod servers when a
11264 source file cannot be found.
11265 * top.c (print_gdb_configuration): Include
11266 --{with,without}-debuginfod in the output.
11267
b65ce565
JG
112682020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
11269
11270 * thread.c (thr_try_catch_cmd): Print thread name.
11271
d4c9a4f8
SM
112722020-02-26 Simon Marchi <simon.marchi@efficios.com>
11273
11274 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
11275 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
11276 dwarf2_fetch_die_type_sect_off): Move to...
11277 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
11278 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
11279 dwarf2_fetch_die_type_sect_off): ... here.
11280 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
11281 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
11282 dwarf2_fetch_die_type_sect_off): Move doc to header file.
11283
0dce4280
TV
112842020-02-26 Tom de Vries <tdevries@suse.de>
11285
11286 PR gdb/25603
11287 * symfile.c (set_initial_language): Exit-early if
11288 language_mode == language_mode_manual.
11289
450a1bfc
SM
112902020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
11291
11292 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
11293 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
11294 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
11295
9e80cfa1
AB
112962020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
11297
11298 * gdbtypes.c (create_array_type_with_stride): Handle negative
11299 array strides.
11300 * valarith.c (value_subscripted_rvalue): Likewise.
11301
09624f1f
LM
113022020-02-25 Luis Machado <luis.machado@linaro.org>
11303
11304 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
11305
8cb5117c
SM
113062020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
11307
11308 * loc.h (dwarf2_get_die_type): Move to...
11309 * read.h (dwarf2_get_die_type): ... here.
11310 * read.c (dwarf2_get_die_type): Move doc to header.
11311
c325c44e
JB
113122020-02-25 Joel Brobecker <brobecker@adacore.com>
11313
11314 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
11315 'gnulib/Makefile.in' to the list.
11316
4ac93832
TT
113172020-02-24 Tom Tromey <tom@tromey.com>
11318
11319 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
11320 Remove.
11321 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
11322 XOBNEWVEC.
11323
197400e8
TT
113242020-02-24 Tom Tromey <tom@tromey.com>
11325
11326 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
11327 New method.
11328 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
11329 (dw2_do_instantiate_symtab, dw2_get_file_names)
11330 (build_type_psymtab_dependencies, load_full_type_unit): Update.
11331
76935768
TT
113322020-02-24 Tom Tromey <tom@tromey.com>
11333
11334 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
11335 make_scoped_restore.
11336 (dwarf2_psymtab::read_symtab): Don't clear
11337 reading_partial_symbols.
11338
a88ef40d
TV
113392020-02-24 Tom de Vries <tdevries@suse.de>
11340
11341 PR gdb/25592
11342 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
11343
c9af6521
TV
113442020-02-24 Tom de Vries <tdevries@suse.de>
11345
11346 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
11347 commands layout next/prev/regs.
11348
5707a07a
TT
113492020-02-22 Tom Tromey <tom@tromey.com>
11350
11351 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
11352 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
11353
3b0fb49e
TT
113542020-02-22 Tom Tromey <tom@tromey.com>
11355
11356 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
11357
283be8bf
TT
113582020-02-22 Tom Tromey <tom@tromey.com>
11359
11360 * tui/tui-win.c (_initialize_tui_win): Add usage text.
11361 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
11362 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
11363 * tui/tui.c (_initialize_tui): Add usage text.
11364
ca793b96
TT
113652020-02-22 Tom Tromey <tom@tromey.com>
11366
11367 * tui/tui-win.c (tui_set_focus_command)
11368 (tui_set_win_height_command): Use error_no_arg.
11369 (_initialize_tui_win): Update help text.
11370 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
11371
432b5c40
TT
113722020-02-22 Tom Tromey <tom@tromey.com>
11373
11374 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
11375 * tui/tui-disasm.h (struct tui_disasm_window)
11376 <display_start_addr>: Declare.
11377 * tui/tui-source.h (struct tui_source_window)
11378 <display_start_addr>: Declare.
11379 * tui/tui-winsource.h (struct tui_source_window_base)
11380 <show_source_line, display_start_addr>: New methods.
11381 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
11382 Rename and move to protected section.
11383 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
11384 (tui_source_window_base::do_erase_source_content): Update.
11385 (tui_source_window_base::show_source_line): Now a method.
11386 (tui_source_window_base::show_source_content)
11387 (tui_source_window_base::tui_source_window_base)
11388 (tui_source_window_base::rerender)
11389 (tui_source_window_base::refill)
11390 (tui_source_window_base::do_scroll_horizontal)
11391 (tui_source_window_base::set_is_exec_point_at)
11392 (tui_source_window_base::update_breakpoint_info)
11393 (tui_source_window_base::update_exec_info): Update.
11394 * tui/tui-source.c (tui_source_window::set_contents)
11395 (tui_source_window::showing_source_p)
11396 (tui_source_window::do_scroll_vertical)
11397 (tui_source_window::location_matches_p)
11398 (tui_source_window::line_is_displayed): Update.
11399 (tui_source_window::display_start_addr): New method.
11400 * tui/tui-disasm.c (tui_disasm_window::set_contents)
11401 (tui_disasm_window::do_scroll_vertical)
11402 (tui_disasm_window::location_matches_p): Update.
11403 (tui_disasm_window::display_start_addr): New method.
11404
01b1af32
TT
114052020-02-22 Tom Tromey <tom@tromey.com>
11406
11407 * NEWS: Add entry for gdb.register_window_type.
11408 * tui/tui-layout.h (window_factory): New typedef.
11409 (tui_register_window): Declare.
11410 * tui/tui-layout.c (saved_tui_windows): New global.
11411 (tui_apply_current_layout): Use it.
11412 (tui_register_window): New function.
11413 * python/python.c (do_start_initialization): Call
11414 gdbpy_initialize_tui.
11415 (python_GdbMethods): Add "register_window_type" function.
11416 * python/python-internal.h (gdbpy_register_tui_window)
11417 (gdbpy_initialize_tui): Declare.
11418 * python/py-tui.c: New file.
11419 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
11420
fc96d20b
TT
114212020-02-22 Tom Tromey <tom@tromey.com>
11422
11423 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
11424
935c78c0
TT
114252020-02-22 Tom Tromey <tom@tromey.com>
11426
11427 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
11428 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
11429 * tui/tui-data.c (tui_set_win_with_focus): Remove.
11430 (tui_set_win_focus_to): Move from tui-win.c.
11431
0240c8f1
TT
114322020-02-22 Tom Tromey <tom@tromey.com>
11433
11434 * tui/tui-layout.c (make_standard_window, get_locator_window): New
11435 functions.
11436 (known_window_types): New global.
11437 (tui_get_window_by_name): Reimplement.
11438 (initialize_known_windows): New function.
11439 (validate_window_name): Rewrite.
11440 (_initialize_tui_layout): Call initialize_known_windows.
11441
fdb01f0c
TT
114422020-02-22 Tom Tromey <tom@tromey.com>
11443
11444 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
11445 Remove constants.
11446 * tui/tui-winsource.h (struct tui_source_window_base)
11447 <tui_source_window_base>: Remove parameter.
11448 * tui/tui-winsource.c
11449 (tui_source_window_base::tui_source_window_base): Remove
11450 parameter.
11451 (tui_source_window_base::refill): Update.
11452 * tui/tui-stack.h (struct tui_locator_window)
11453 <tui_locator_window>: Update.
11454 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
11455 Default the constructor.
11456 * tui/tui-regs.h (struct tui_data_item_window)
11457 <tui_data_item_window>: Default the constructor.
11458 (struct tui_data_window) <tui_data_window>: Likewise.
11459 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
11460 Default the constructor.
11461 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
11462 Default the constructor.
11463 <type>: Remove.
11464 (struct tui_win_info) <tui_win_info>: Default the constructor.
11465 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
11466 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
11467 Default the constructor.
11468
865a5aec
TT
114692020-02-22 Tom Tromey <tom@tromey.com>
11470
11471 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
11472 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
11473 * tui/tui-win.c (tui_resize_all): Don't call
11474 tui_delete_invisible_windows.
11475 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
11476 done.
11477 (tui_set_layout): Update.
11478 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
11479 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
11480 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
11481
e098d18c
TT
114822020-02-22 Tom Tromey <tom@tromey.com>
11483
11484 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
11485 correctly.
11486
eb9c8874
TT
114872020-02-22 Tom Tromey <tom@tromey.com>
11488
11489 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
11490
7eed1a8e
TT
114912020-02-22 Tom Tromey <tom@tromey.com>
11492
11493 * tui/tui-winsource.h (struct tui_source_window_iterator)
11494 <inner_iterator>: New etytypedef.
11495 <tui_source_window_iterator>: Take "end" parameter.
11496 <tui_source_window_iterator>: Take iterator.
11497 <operator*, advance>: Update.
11498 <m_iter>: Change type.
11499 <m_end>: New field.
11500 (struct tui_source_windows) <begin, end>: Update.
11501 * tui/tui-layout.c (tui_windows): New global.
11502 (tui_apply_current_layout): Clear tui_windows.
11503 (tui_layout_window::apply): Update tui_windows.
11504 * tui/tui-data.h (tui_windows): Declare.
11505 (all_tui_windows): Now inline function.
11506 (class tui_window_iterator, struct all_tui_windows): Remove.
11507
7c043ba6
TT
115082020-02-22 Tom Tromey <tom@tromey.com>
11509
11510 PR tui/17850:
11511 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
11512 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
11513 "height" argument.
11514 (class tui_layout_window) <get_sizes>: Likewise.
11515 (class tui_layout_split) <tui_layout_split>: Add "vertical"
11516 argument.
11517 <get_sizes>: Add "height" argument.
11518 <m_vertical>: New field.
11519 * tui/tui-layout.c (tui_layout_split::clone): Update.
11520 (tui_layout_split::get_sizes): Add "height" argument.
11521 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
11522 (tui_new_layout_command): Parse "-horizontal".
11523 (_initialize_tui_layout): Update help string.
11524 (tui_layout_split::specification): Add "-horizontal" when needed.
11525 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
11526 argument.
11527 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
11528 New methods.
11529
6bc56648
TT
115302020-02-22 Tom Tromey <tom@tromey.com>
11531
11532 * tui/tui-layout.h (enum tui_adjust_result): New.
11533 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
11534 (class tui_layout_window) <adjust_size>: Return
11535 tui_adjust_result. Rewrite.
11536 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
11537 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
11538
c22fef7e
TT
115392020-02-22 Tom Tromey <tom@tromey.com>
11540
11541 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
11542 parameter and return types.
11543 (class tui_layout_base) <specification>: Add "depth".
11544 (class tui_layout_window) <specification>: Add "depth".
11545 (class tui_layout_split) <specification>: Add "depth".
11546 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
11547 and return types.
11548 (tui_new_layout_command): Parse sub-layouts.
11549 (_initialize_tui_layout): Update help string.
11550 (tui_layout_window::specification): Add "depth".
11551 (add_layout_command): Update.
11552
ee325b61
TT
115532020-02-22 Tom Tromey <tom@tromey.com>
11554
11555 * NEWS: Add "tui new-layout" item.
11556 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
11557 Add new-layout command to help text.
11558 (validate_window_name): New function.
11559 (tui_new_layout_command): New function.
11560 (_initialize_tui_layout): Register "new-layout".
11561 (tui_layout_window::specification): New method.
11562 (tui_layout_window::specification): New method.
11563 * tui/tui-layout.h (class tui_layout_base) <specification>: New
11564 method.
11565 (class tui_layout_window) <specification>: New method.
11566 (class tui_layout_split) <specification>: New method.
11567
416eb92d
TT
115682020-02-22 Tom Tromey <tom@tromey.com>
11569
11570 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
11571 * tui/tui-win.c (window_name_completer): Update comment.
11572 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
11573 Declare method.
11574 (class tui_layout_window) <replace_window>: Likewise.
11575 (class tui_layout_split) <replace_window>: Likewise.
11576 (tui_set_layout): Don't declare.
11577 (tui_set_initial_layout): Declare function.
11578 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
11579 (asm_regs_layout): New globals.
11580 (tui_current_layout, show_layout): Remove.
11581 (tui_set_layout, tui_add_win_to_layout): Rewrite.
11582 (find_layout, tui_apply_layout): New function.
11583 (layout_completer): Remove.
11584 (tui_next_layout): Reimplement.
11585 (tui_next_layout_command): New function.
11586 (tui_set_initial_layout, tui_prev_layout_command): New functions.
11587 (tui_regs_layout): Reimplement.
11588 (tui_regs_layout_command): New function.
11589 (extract_display_start_addr): Rewrite.
11590 (next_layout, prev_layout): Remove.
11591 (tui_layout_window::replace_window): New method.
11592 (tui_layout_split::replace_window): New method.
11593 (destroy_layout): New function.
11594 (layout_list): New global.
11595 (add_layout_command): New function.
11596 (initialize_layouts): Update.
11597 (tui_layout_command): New function.
11598 (_initialize_tui_layout): Install "layout" commands.
11599 * tui/tui-data.h (enum tui_layout_type): Remove.
11600 (tui_current_layout): Don't declare.
11601
0dbc2fc7
TT
116022020-02-22 Tom Tromey <tom@tromey.com>
11603
11604 * tui/tui-regs.c (tui_reg_layout): Remove.
11605 (tui_reg_command): Use tui_regs_layout.
11606 * tui/tui-layout.h (tui_reg_command): Declare.
11607 * tui/tui-layout.c (tui_reg_command): New function.
11608
5afe342e
TT
116092020-02-22 Tom Tromey <tom@tromey.com>
11610
11611 * tui/tui.c (tui_rl_delete_other_windows): Call
11612 tui_remove_some_windows.
11613 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
11614 Declare method.
11615 (class tui_layout_window) <remove_windows>: New method.
11616 (class tui_layout_split) <remove_windows>: Declare.
11617 (tui_remove_some_windows): Declare.
11618 * tui/tui-layout.c (tui_remove_some_windows): New function.
11619 (tui_layout_split::remove_windows): New method.
11620
427326a8
TT
116212020-02-22 Tom Tromey <tom@tromey.com>
11622
11623 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
11624 * tui/tui-layout.h (tui_next_layout): Declare.
11625 * tui/tui-layout.c (tui_next_layout): New function.
11626
3fe12b6d
TT
116272020-02-22 Tom Tromey <tom@tromey.com>
11628
11629 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
11630 correct coordinates.
11631
59b8b5d2
TT
116322020-02-22 Tom Tromey <tom@tromey.com>
11633
11634 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
11635 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
11636 DATA_WIN case.
11637
2a3d458b
TT
116382020-02-22 Tom Tromey <tom@tromey.com>
11639
11640 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
11641 TUI_DISASM_WIN, not tui_win_list.
11642
3f0cbb04
TT
116432020-02-22 Tom Tromey <tom@tromey.com>
11644
11645 * valprint.c (generic_val_print_enum_1)
11646 (val_print_type_code_flags): Style member names.
11647 * rust-lang.c (val_print_struct, rust_print_enum)
11648 (rust_print_struct_def, rust_internal_print_type): Style member
11649 names.
11650 * p-valprint.c (pascal_object_print_value_fields): Style member
11651 names. Only call fprintf_symbol_filtered for static members.
11652 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
11653 * f-valprint.c (f_val_print): Style member names.
11654 * f-typeprint.c (f_type_print_base): Style member names.
11655 * cp-valprint.c (cp_print_value_fields): Style member names. Only
11656 call fprintf_symbol_filtered for static members.
11657 (cp_print_class_member): Style member names.
11658 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
11659 member names.
11660 * ada-valprint.c (ada_print_scalar): Style enum names.
11661 (ada_val_print_enum): Likewise.
11662 * ada-typeprint.c (print_enum_type): Style enum names.
11663
d4d947ae
TT
116642020-02-21 Tom Tromey <tom@tromey.com>
11665
11666 * psympriv.h (struct partial_symtab): Update comment.
11667
e94e944b
TT
116682020-02-21 Tom Tromey <tromey@adacore.com>
11669
11670 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
11671 type is CORE_ADDR.
11672
1eb73179
TV
116732020-02-21 Tom de Vries <tdevries@suse.de>
11674
11675 PR gdb/25534
11676 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
11677 if dependencies[i]->user != NULL.
11678
4f180d53
AT
116792020-02-21 Ali Tamur <tamur@google.com>
11680
11681 * dwarf2/read.c (dwarf2_name): Add null check.
11682
22b6cd70
TT
116832020-02-20 Tom Tromey <tom@tromey.com>
11684
11685 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
11686 ">=", in binary search.
11687 (dwarf2_find_containing_comp_unit): New overload.
11688 (run_test): New self-test.
11689 (_initialize_dwarf2_read): Register new test.
11690
bd0cf5a6
NC
116912020-02-20 Nelson Chu <nelson.chu@sifive.com>
11692
11693 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
11694 * riscv-tdep.h: Likewise.
11695 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
11696 rv32-only CSR.
11697 * features/riscv/64bit-csr.xml: Regenerated.
11698
3f702acd
SDJ
116992020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
11700 Tom Tromey <tom@tromey.com>
11701
11702 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
11703 of 'fputc_unfiltered'.
11704 (putchar_unfiltered): Call 'fputc_unfiltered'.
11705 (fputc_unfiltered): Call 'fputs_unfiltered'.
11706
d13c7322
AB
117072020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
11708
11709 * config.in: Regenerate.
11710 * configure: Regenerate.
11711 * configure.ac: Add --with-python-libdir option.
11712 * main.c: Use WITH_PYTHON_LIBDIR.
11713
869d8950
TT
117142020-02-19 Tom Tromey <tom@tromey.com>
11715
11716 * symtab.c (general_symbol_info::compute_and_set_names): Use
11717 obstack_strndup. Simplify call to symbol_set_demangled_name.
11718
298e9637
SM
117192020-02-19 Simon Marchi <simon.marchi@efficios.com>
11720
11721 * dwarf2/read.c (allocate_signatured_type_table,
11722 allocate_dwo_unit_table, allocate_type_unit_groups_table,
11723 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
11724 Remove objfile parameter, update all callers.
11725
08410482
DE
117262020-02-19 Doug Evans <dje@google.com>
11727
11728 PR rust/25535
11729 * rust-lang.c (rust_print_enum): Apply embedded_offset to
11730 rust_enum_variant calculation.
11731
dfdeeca1
TT
117322020-02-19 Tom Tromey <tromey@adacore.com>
11733
11734 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
11735
2ef5453b
TT
117362020-02-19 Tom Tromey <tromey@adacore.com>
11737
11738 * ada-lang.c (cache_symbol): Use obstack_strdup.
11739
9f1528a1
AB
117402020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
11741
11742 * configure: Regenerate.
11743
d3c22fa8
TT
117442020-02-19 Tom Tromey <tromey@adacore.com>
11745
11746 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
11747 NULL check.
11748
bf84f706
MR
117492020-02-19 Maciej W. Rozycki <macro@wdc.com>
11750
11751 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
11752
d1c9b20f
AB
117532020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
11754
11755 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
11756 if GDBSERVER is not defined.
11757 (riscv_tdesc_cache): Likewise, also store const target_desc.
11758 (STATIC_IN_GDB): Define.
11759 (riscv_create_target_description): Update declaration with
11760 STATIC_IN_GDB.
11761 (riscv_lookup_target_description): New function, only define if
11762 GDBSERVER is not defined.
11763 * arch/riscv.h (riscv_create_target_description): Declare only
11764 when GDBSERVER is defined.
11765 (riscv_lookup_target_description): New declaration when GDBSERVER
11766 is not defined.
11767 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
11768 (riscv_linux_read_features): ...this, and return
11769 riscv_gdbarch_features instead of target_desc.
11770 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
11771 (riscv_linux_read_description): Rename to...
11772 (riscv_linux_read_features): ...this.
11773 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
11774 Update to use riscv_gdbarch_features and
11775 riscv_lookup_target_description.
11776 * riscv-tdep.c (riscv_find_default_target_description): Use
11777 riscv_lookup_target_description instead of
11778 riscv_create_target_description.
11779
373d7ac0
SM
117802020-02-18 Simon Marchi <simon.marchi@efficios.com>
11781
11782 * valprint.c (generic_val_print_enum_1): When printing a flag
11783 enum with value 0 and there is no enumerator with value 0, print
11784 just "0" instead of "(unknown: 0x0)".
11785
b29a2df0
SM
117862020-02-18 Simon Marchi <simon.marchi@efficios.com>
11787
11788 * valprint.c (generic_val_print_enum_1): Print unknown part of
11789 flag enum in hex.
11790
6740f0cc
SM
117912020-02-18 Simon Marchi <simon.marchi@efficios.com>
11792
11793 * dwarf2/read.c (update_enumeration_type_from_children): Allow
11794 flag enums to contain duplicate enumerators.
11795 * valprint.c (generic_val_print_enum_1): Update comment.
11796
edd45eb0
SM
117972020-02-18 Simon Marchi <simon.marchi@efficios.com>
11798
11799 * dwarf2/read.c: Include "count-one-bits.h".
11800 (update_enumeration_type_from_children): If an enumerator has
11801 multiple bits set, don't treat the enumeration as a "flag enum".
11802 * valprint.c (generic_val_print_enum_1): Assert that enumerators
11803 of flag enums have 0 or 1 bit set.
11804
6d0cf446
BE
118052020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
11806
11807 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
11808 conversion.
11809 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11810 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
11811 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11812 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
11813 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11814
7001c1b7
SM
118152020-02-18 Simon Marchi <simon.marchi@efficios.com>
11816
11817 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
11818
fdb61c6c
SM
118192020-02-14 Simon Marchi <simon.marchi@efficios.com>
11820
11821 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
11822 displaced_step_closure_up.
11823 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
11824 (struct displaced_step_closure_up):
11825 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11826 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
11827 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
11828 Likewise.
11829 * gdbarch.sh (displaced_step_copy_insn): Likewise.
11830 * gdbarch.c, gdbarch.h: Re-generate.
11831 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
11832 displaced_step_closure_up.
11833 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11834 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
11835 * infrun.h (displaced_step_closure_up): New type alias.
11836 (struct displaced_step_inferior_state) <step_closure>: Change
11837 type to displaced_step_closure_up.
11838 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
11839 displaced_step_closure_up.
11840 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11841
a4a38eb4
TT
118422020-02-14 Tom Tromey <tom@tromey.com>
11843
11844 * minidebug.c (gnu_debug_key): New global.
11845 (find_separate_debug_file_in_section): Use it.
11846
e8217e61
SM
118472020-02-14 Simon Marchi <simon.marchi@efficios.com>
11848
11849 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
11850 std::unique_ptr.
11851 * gdbarch.c: Re-generate.
11852 * gdbarch.h: Re-generate.
11853 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
11854 change.
11855 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
11856 type to std::unique_ptr.
11857 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
11858 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11859 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
11860 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
11861 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
11862 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11863 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
11864 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
11865 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11866
d8d83535
SM
118672020-02-14 Simon Marchi <simon.marchi@efficios.com>
11868
11869 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
11870 std::unique_ptr.
11871 (displaced_step_clear): Rename to...
11872 (displaced_step_reset): ... this. Just call displaced->reset ().
11873 (displaced_step_clear_cleanup): Rename to...
11874 (displaced_step_reset_cleanup): ... this.
11875 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
11876 (displaced_step_fixup): Likewise.
11877 (resume_1): Likewise.
11878 (handle_inferior_event): Restore child's memory before calling
11879 displaced_step_fixup on the parent.
11880 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
11881 to std::unique_ptr.
11882 <step_closure>: Change type to std::unique_ptr.
11883
5f661e03
SM
118842020-02-14 Simon Marchi <simon.marchi@efficios.com>
11885
11886 * arm-tdep.c: Include count-one-bits.h.
11887 (cleanup_block_store_pc): Use count_one_bits.
11888 (cleanup_block_load_pc): Use count_one_bits.
11889 (arm_copy_block_xfer): Use count_one_bits.
11890 (thumb2_copy_block_xfer): Use count_one_bits.
11891 (thumb_copy_pop_pc_16bit): Use count_one_bits.
11892 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
11893 (thumb_get_next_pcs_raw): Use count_one_bits.
11894 (arm_get_next_pcs_raw): Use count_one_bits_l.
11895 * arch/arm.c (bitcount): Remove.
11896 * arch/arm.h (bitcount): Remove.
11897
8084e579
TT
118982020-02-14 Tom Tromey <tromey@adacore.com>
11899
11900 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
11901 Update.
11902 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
11903 * dwarf2/loc.c (call_site_find_chain_1): Return
11904 unique_xmalloc_ptr.
11905 (call_site_find_chain): Likewise.
11906
258bf0ee
RB
119072020-02-14 Richard Biener <rguenther@suse.de>
11908
11909 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
11910 on expression with division operators.
11911
f98a8458
AKS
119122020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11913
11914 * MAINTAINERS (Write After Approval): Adding myself.
11915
d1437c0e
TT
119162020-02-12 Tom Tromey <tom@tromey.com>
11917
11918 * event-loop.c (event_data, gdb_event, event_handler_func):
11919 Remove.
11920
3d4560f7
TT
119212020-02-12 Tom Tromey <tom@tromey.com>
11922
11923 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
11924 (dwarf2_frame_objfile_data): Add comment.
11925 (find_comp_unit, set_comp_unit): New functions.
11926 (dwarf2_frame_find_fde): Use find_comp_unit.
11927 (dwarf2_build_frame_info): Use set_comp_unit.
11928
21982304
TT
119292020-02-12 Tom Tromey <tom@tromey.com>
11930
11931 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
11932 (comp_unit): Don't initialize objfile.
11933 (execute_cfa_program): Add text_offset parameter.
11934 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
11935 (dwarf2_frame_cache): Update.
11936 (dwarf2_build_frame_info): Don't set "objfile" member.
11937
4debb237
TT
119382020-02-12 Tom Tromey <tom@tromey.com>
11939
11940 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
11941 (decode_frame_entry): Likewise.
11942 (dwarf2_build_frame_info): Update.
11943
0d404d44
TT
119442020-02-12 Tom Tromey <tom@tromey.com>
11945
11946 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
11947 (decode_frame_entry_1): Use the comp_unit obstack.
11948
a7a3ae5c
TT
119492020-02-12 Tom Tromey <tom@tromey.com>
11950
11951 * dwarf2/frame.c (struct comp_unit): Add initializers and
11952 constructor.
11953 (dwarf2_frame_objfile_data): Store a comp_unit.
11954 (dwarf2_frame_find_fde): Update.
11955 (dwarf2_build_frame_info): Use "new".
11956
a9d65418
TT
119572020-02-12 Tom Tromey <tom@tromey.com>
11958
11959 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
11960 (dwarf2_fde_table): Typedef for std::vector.
11961 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
11962 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
11963 (decode_frame_entry): Update.
11964 (dwarf2_build_frame_info): Use "new".
11965
7559c217
CB
119662020-02-12 Christian Biesinger <cbiesinger@google.com>
11967
11968 * arm-tdep.c (arm_gdbarch_init): Update.
11969 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
11970 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
11971 have_neon, is_m>: Change to bool.
11972
aeefc73c
CB
119732020-02-12 Christian Biesinger <cbiesinger@google.com>
11974
11975 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
11976
d27b8e5f
TT
119772020-02-12 Tom Tromey <tom@tromey.com>
11978
11979 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
11980
cd5900f3
HD
119812020-02-12 Hannes Domani <ssbssa@yahoo.de>
11982
11983 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
11984 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
11985
f056b22b
TT
119862020-02-11 Tom Tromey <tom@tromey.com>
11987
11988 * psymtab.h: Update comment.
11989
f92ff6b5
TT
119902020-02-11 Tom Tromey <tom@tromey.com>
11991
11992 * gdb_obstack.h (struct auto_obstack): Use
11993 DISABLE_COPY_AND_ASSIGN.
11994
3fd6912b
TT
119952020-02-11 Tom Tromey <tom@tromey.com>
11996
11997 * dwarf2/frame.h (struct objfile): Don't forward declare.
11998
69ed9b74
CB
119992020-02-11 Christian Biesinger <cbiesinger@google.com>
12000
12001 * cris-tdep.c (cris_supply_gregset): Change signature to match
12002 what struct regset expects.
12003 (cris_regset): New struct.
12004 (fetch_core_registers): Remove.
12005 (cris_iterate_over_regset_sections): New function.
12006 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
12007 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
12008
bda874f6
CB
120092020-02-11 Christian Biesinger <cbiesinger@google.com>
12010
12011 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
12012 registers.
12013
754e1564
CB
120142020-02-11 Christian Biesinger <cbiesinger@google.com>
12015
12016 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
12017
8ddd8e0e
SM
120182020-02-11 Simon Marchi <simon.marchi@efficios.com>
12019
12020 * configure: Re-generate.
12021
898e7f60
SM
120222020-02-11 Simon Marchi <simon.marchi@efficios.com>
12023
12024 * configure: Re-generate.
12025
58df732b
SM
120262020-02-11 Simon Marchi <simon.marchi@efficios.com>
12027
12028 * acinclude: Update warning.m4 path.
12029 * warning.m4: Move to gdbsupport.
12030
da5bd37e
TT
120312020-02-11 Tom Tromey <tromey@adacore.com>
12032
12033 * remote.c (remote_console_output): Update.
12034 * printcmd.c (printf_command): Update.
12035 * event-loop.c (gdb_wait_for_event): Update.
12036 * linux-nat.c (sigchld_handler): Update.
12037 * remote-sim.c (gdb_os_write_stdout): Update.
12038 (gdb_os_flush_stdout): Update.
12039 (gdb_os_flush_stderr): Update.
12040 (gdb_os_write_stderr): Update.
12041 * exceptions.c (print_exception): Update.
12042 * remote-fileio.c (remote_fileio_func_read): Update.
12043 (remote_fileio_func_write): Update.
12044 * tui/tui.c (tui_enable): Update.
12045 * tui/tui-interp.c (tui_interp::init): Update.
12046 * utils.c (init_page_info): Update.
12047 (putchar_unfiltered, fputc_unfiltered): Update.
12048 (gdb_flush): Update.
12049 (emit_style_escape): Update.
12050 (flush_wrap_buffer, fputs_maybe_filtered): Update.
12051 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
12052 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
12053 (stderr_file::write): Update.
12054 (stderr_file::puts): Update.
12055 * ui-file.h (ui_file_isatty, ui_file_write)
12056 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
12057 (ui_file_puts): Don't declare.
12058
85f0dd3c
TV
120592020-02-10 Tom de Vries <tdevries@suse.de>
12060
12061 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
12062 sentinel to char *.
12063
2e927613
TV
120642020-02-09 Tom de Vries <tdevries@suse.de>
12065
12066 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
12067 filename if it matches "<artificial>".
12068
6bafc845
HD
120692020-02-09 Hannes Domani <ssbssa@yahoo.de>
12070
12071 * windows-tdep.c (struct enum_value_name): New struct.
12072 (create_enum): New function.
12073 (windows_get_siginfo_type): Create and use enum types.
12074
7928d571
HD
120752020-02-09 Hannes Domani <ssbssa@yahoo.de>
12076
12077 * NEWS: Mention $_siginfo support for Windows.
12078 * windows-nat.c (handle_exception): Set siginfo_er.
12079 (windows_nat_target::mourn_inferior): Reset siginfo_er.
12080 (windows_xfer_siginfo): New function.
12081 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
12082 * windows-tdep.c (struct windows_gdbarch_data): New struct.
12083 (init_windows_gdbarch_data): New function.
12084 (get_windows_gdbarch_data): New function.
12085 (windows_get_siginfo_type): New function.
12086 (windows_init_abi): Register windows_get_siginfo_type.
12087 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
12088
6751ebae
TT
120892020-02-08 Tom Tromey <tom@tromey.com>
12090
12091 * dwarf2/read.c (class cutu_reader) <cutu_reader,
12092 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
12093 <keep>: Declare method.
12094 <m_keep>: Remove member.
12095 <~cutu_reader>: Remove.
12096 (cutu_reader::init_tu_and_read_dwo_dies): Update.
12097 (cutu_reader::cutu_reader): Update.
12098 (cutu_reader::keep): Rename from ~cutu_reader.
12099 (process_psymtab_comp_unit, build_type_psymtabs_1)
12100 (process_skeletonless_type_unit, load_partial_comp_unit)
12101 (load_full_comp_unit, dwarf2_read_addr_index)
12102 (read_signatured_type): Update.
12103
135f5437
TT
121042020-02-08 Tom Tromey <tom@tromey.com>
12105
12106 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
12107 "want_partial_unit" parameter.
12108 (process_psymtab_comp_unit): Change want_partial_unit to bool.
12109 Inline check for DW_TAG_partial_unit.
12110 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
12111
9f66ff1c
TT
121122020-02-08 Tom Tromey <tom@tromey.com>
12113
12114 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
12115 read.c.
12116 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
12117 read.c.
12118
c8a7a66f
TT
121192020-02-08 Tom Tromey <tom@tromey.com>
12120
12121 * dwarf2/read.c (read_address): Move to comp-unit.c.
12122 (dwarf2_rnglists_process, dwarf2_ranges_process)
12123 (read_attribute_value, dwarf_decode_lines_1)
12124 (var_decode_location, decode_locdesc): Update.
12125 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
12126 read.c. Remove "cu" parameter.
12127 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
12128 method.
12129
8266302d
TT
121302020-02-08 Tom Tromey <tom@tromey.com>
12131
12132 * dwarf2/read.c (read_attribute_value, read_indirect_string)
12133 (read_indirect_line_string): Update.
12134 * dwarf2/comp-unit.c (read_offset): Remove.
12135 (read_comp_unit_head): Update.
12136 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
12137 method.
12138 (read_offset): Don't declare.
12139
4057dfde
TT
121402020-02-08 Tom Tromey <tom@tromey.com>
12141
12142 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
12143 * dwarf2/read.c (struct comp_unit_head): Move to
12144 dwarf2/comp-unit.h.
12145 (enum class rcuh_kind): Move to comp-unit.h.
12146 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
12147 (read_comp_unit_head, error_check_comp_unit_head)
12148 (read_and_check_comp_unit_head): Move to comp-unit.c.
12149 (read_offset, dwarf_unit_type_name): Likewise.
12150 (create_debug_type_hash_table, read_cutu_die_from_dwo)
12151 (cutu_reader::cutu_reader, read_call_site_scope)
12152 (find_partial_die, follow_die_offset): Update.
12153 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
12154
24aa364d
TT
121552020-02-08 Tom Tromey <tom@tromey.com>
12156
12157 * dwarf2/read.c (read_offset_1): Move to leb.c.
12158 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
12159 (dwarf_decode_macro_bytes): Update.
12160 * dwarf2/leb.c (read_offset): Rename; move from read.c.
12161 * dwarf2/leb.h (read_offset): Declare.
12162
2c7d5afc
TT
121632020-02-08 Tom Tromey <tom@tromey.com>
12164
12165 * dwarf2/read.c (dwarf2_section_size): Remove.
12166 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
12167 Update.
12168 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
12169
4075cb26
TT
121702020-02-08 Tom Tromey <tom@tromey.com>
12171
12172 * dwarf2/read.c (read_initial_length): Move to leb.c.
12173 * dwarf2/leb.h (read_initial_length): Declare.
12174 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
12175 handle_nonstd parameter.
12176 * dwarf2/frame.c (read_initial_length): Remove.
12177 (decode_frame_entry_1): Update.
12178
09ba997f
TT
121792020-02-08 Tom Tromey <tom@tromey.com>
12180
12181 * dwarf2/loc.c (dwarf2_find_location_expression)
12182 (dwarf_evaluate_loc_desc::get_tls_address)
12183 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
12184 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
12185 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
12186 (dwarf2_compile_property_to_c)
12187 (dwarf2_loc_desc_get_symbol_read_needs)
12188 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
12189 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
12190 (loclist_describe_location, loclist_tracepoint_var_ref)
12191 (loclist_generate_c_location): Update.
12192 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
12193 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
12194 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
12195 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
12196 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
12197 (dwarf2_per_cu_data::addr_size)
12198 (dwarf2_per_cu_data::ref_addr_size)
12199 (dwarf2_per_cu_data::text_offset)
12200 (dwarf2_per_cu_data::addr_type): Now methods.
12201 (per_cu_header_read_in): Make per_cu "const".
12202 (dwarf2_version): Remove.
12203 (dwarf2_per_cu_data::int_type): Now a method.
12204 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
12205 (set_die_type, read_array_type, read_subrange_index_type)
12206 (read_tag_string_type, read_subrange_type): Update.
12207 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
12208 offset_size, ref_addr_size, text_offset, addr_type, version,
12209 objfile, int_type, addr_sized_int_type>: Declare methods.
12210
96c738c0
TT
122112020-02-08 Tom Tromey <tom@tromey.com>
12212
12213 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
12214 Move earlier.
12215
8fdd972c
TT
122162020-02-08 Tom Tromey <tom@tromey.com>
12217
12218 * dwarf2/read.h (dwarf_line_debug): Declare.
12219 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
12220 * dwarf2/read.c: Move line_header code to new files.
12221 (dwarf_line_debug): No longer static.
12222 * dwarf2/line-header.c: New file.
12223 * dwarf2/line-header.h: New file.
12224
03075812
TT
122252020-02-08 Tom Tromey <tom@tromey.com>
12226
12227 * dwarf2/read.c (struct line_header) <file_full_name,
12228 file_file_name>: Return unique_xmalloc_ptr.
12229 (line_header::file_file_name): Update.
12230 (line_header::file_full_name): Update.
12231 (dw2_get_file_names_reader): Update.
12232 (macro_start_file): Update.
12233
bb822404
TT
122342020-02-08 Tom Tromey <tom@tromey.com>
12235
12236 * dwarf2/read.c (struct line_header) <file_full_name,
12237 file_file_name>: Declare methods.
12238 (dw2_get_file_names_reader): Update.
12239 (file_file_name): Now a method.
12240 (file_full_name): Likewise.
12241 (macro_start_file): Update.
12242
009b64fc
TT
122432020-02-08 Tom Tromey <tom@tromey.com>
12244
12245 * dwarf2/read.c (dwarf_always_disassemble)
12246 (show_dwarf_always_disassemble): Move to loc.c.
12247 (_initialize_dwarf2_read): Move "always-disassemble" registration
12248 to loc.c.
12249 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
12250 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
12251 static.
12252 (show_dwarf_always_disassemble): Move from read.c.
12253 (_initialize_dwarf2loc): Move always-disassemble from read.c.
12254
5895093f
TT
122552020-02-08 Tom Tromey <tom@tromey.com>
12256
12257 * dwarf2/read.c (~dwarf2_per_objfile): Update.
12258 (create_quick_file_names_table): Return htab_up.
12259 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
12260 Update.
12261 * dwarf2/read.h (struct dwarf2_per_objfile)
12262 <quick_file_names_table>: Now htab_up.
12263
b3b32279
TT
122642020-02-08 Tom Tromey <tom@tromey.com>
12265
12266 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
12267
1d33d811
TT
122682020-02-08 Tom Tromey <tom@tromey.com>
12269
12270 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
12271 Rewrite.
12272 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
12273 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
12274 (abbrev_table::abbrev_table): No longer inline.
12275 (ABBREV_HASH_SIZE): Remove.
12276 (abbrev_table::m_abbrevs): Now an htab_up.
12277
86de1d91
TT
122782020-02-08 Tom Tromey <tom@tromey.com>
12279
12280 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
12281 (cutu_reader): Update.
12282 (build_type_psymtabs_1): Update.
12283 * dwarf2/abbrev.c (abbrev_table::read): Rename.
12284 (abbrev_table::alloc_abbrev): Update.
12285 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
12286 (abbrev_table::read): New static method, renamed from
12287 abbrev_table_read_table.
12288 (abbrev_table::alloc_abbrev)
12289 (abbrev_table::add_abbrev): Now private.
12290 (abbrev_table::abbrev_table): Now private.
12291 (abbrev_table::m_abbrev_obstack): Now private. Rename.
12292
0335378b
TT
122932020-02-08 Tom Tromey <tom@tromey.com>
12294
12295 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
12296 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
12297 htab_up.
12298
48b490f2
TT
122992020-02-08 Tom Tromey <tom@tromey.com>
12300
12301 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
12302 htab_up.
12303 (lookup_dwo_unit_in_dwp): Update.
12304 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
12305 on obstack.
12306
bc68fb19
TT
123072020-02-08 Tom Tromey <tom@tromey.com>
12308
12309 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
12310 obstack.
12311
d15acc42
TT
123122020-02-08 Tom Tromey <tom@tromey.com>
12313
12314 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
12315 line_header_hash.
12316 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
12317 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
12318 Change type to htab_up.
12319
eaa5fa8b
TT
123202020-02-08 Tom Tromey <tom@tromey.com>
12321
12322 * dwarf2/read.c (allocate_type_unit_groups_table): Return
12323 htab_up. Don't allocate on obstack.
12324 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
12325 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
12326 Change type to htab_up.
12327
b0b6a987
TT
123282020-02-08 Tom Tromey <tom@tromey.com>
12329
12330 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
12331 Change type to htab_up.
12332 * dwarf2/read.c (create_signatured_type_table_from_index)
12333 (create_signatured_type_table_from_debug_names)
12334 (create_all_type_units, add_type_unit)
12335 (lookup_dwo_signatured_type, lookup_signatured_type)
12336 (process_skeletonless_type_unit): Update.
12337 (create_debug_type_hash_table, create_debug_types_hash_table):
12338 Change type of types_htab.
12339 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
12340 htab_up. Don't allocate on obstack.
12341 (create_cus_hash_table): Change type of cus_htab parameter.
12342 (struct dwo_file) <cus, tus>: Now htab_up.
12343 (lookup_dwo_signatured_type, lookup_dwo_cutu)
12344 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
12345 (queue_and_load_all_dwo_tus): Update.
12346 * dwarf2/index-write.c (write_gdbindex): Update.
12347 (write_debug_names): Update.
12348
39856def
TT
123492020-02-08 Tom Tromey <tom@tromey.com>
12350
12351 * dwarf2/read.h (struct dwarf2_queue_item): Move from
12352 dwarf2/read.c. Remove "next" member. Add constructor ntad
12353 destructor.
12354 (struct dwarf2_per_objfile) <queue>: New member.
12355 * dwarf2/read.c (struct dwarf2_queue_item): Move to
12356 dwarf2/read.h.
12357 (dwarf2_queue, dwarf2_queue_tail): Remove.
12358 (class dwarf2_queue_guard): Add parameter to constructor. Use
12359 DISABLE_COPY_AND_ASSIGN.
12360 <m_per_objfile>: New member.
12361 <~dwarf2_queue_guard>: Rewrite.
12362 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
12363 Update.
12364 (~dwarf2_queue_item): New.
12365
3e225074
TT
123662020-02-08 Tom Tromey <tom@tromey.com>
12367
12368 * dwarf2/read.c (struct die_info) <has_children>: New member.
12369 (dw2_get_file_names_reader): Remove has_children.
12370 (dw2_get_file_names): Update.
12371 (read_cutu_die_from_dwo): Remove has_children.
12372 (cutu_reader::init_tu_and_read_dwo_dies)
12373 (cutu_reader::cutu_reader): Update.
12374 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
12375 Remove has_children.
12376 (build_type_psymtabs_1, process_skeletonless_type_unit)
12377 (load_partial_comp_unit, load_full_comp_unit): Update.
12378 (create_dwo_cu_reader): Remove has_children.
12379 (create_cus_hash_table, read_die_and_children): Update.
12380 (read_full_die_1,read_full_die): Remove has_children.
12381 (read_signatured_type): Update.
12382 (class cutu_reader) <has_children>: Remove.
12383
82ca8957
TT
123842020-02-08 Tom Tromey <tom@tromey.com>
12385
12386 * dwarf2/expr.c: Rename from dwarf2expr.c.
12387 * dwarf2/expr.h: Rename from dwarf2expr.h.
12388 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
12389 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
12390 * dwarf2/frame.c: Rename from dwarf2-frame.c.
12391 * dwarf2/frame.h: Rename from dwarf2-frame.h.
12392 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
12393 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
12394 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
12395 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
12396 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
12397 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
12398 * dwarf2/loc.c: Rename from dwarf2loc.c.
12399 * dwarf2/loc.h: Rename from dwarf2loc.h.
12400 * dwarf2/read.c: Rename from dwarf2read.c.
12401 * dwarf2/read.h: Rename from dwarf2read.h.
12402 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
12403 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
12404 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
12405 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
12406 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
12407 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
12408 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
12409 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
12410 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
12411 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
12412 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
12413 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
12414 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
12415 Update.
12416 * Makefile.in (COMMON_SFILES): Update.
12417 (HFILES_NO_SRCDIR): Update.
12418
9e35d499
TT
124192020-02-08 Tom Tromey <tom@tromey.com>
12420
12421 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
12422 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
12423
1eba2311
TT
124242020-02-08 Tom Tromey <tom@tromey.com>
12425
12426 * dwarf2read.h (struct die_info): Don't declare.
12427
e41c2da2
TT
124282020-02-08 Tom Tromey <tom@tromey.com>
12429
12430 * dwarf2read.h (die_info_ptr): Remove typedef.
12431
4fc6c0d5
TT
124322020-02-08 Tom Tromey <tom@tromey.com>
12433
12434 * dwarf2read.c (read_call_site_scope)
12435 (handle_data_member_location, dwarf2_add_member_fn)
12436 (mark_common_block_symbol_computed, read_common_block)
12437 (attr_to_dynamic_prop, partial_die_info::read)
12438 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
12439 (dwarf2_symbol_mark_computed, set_die_type): Update.
12440 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
12441 method.
12442 (attr_form_is_block): Don't declare.
12443 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
12444
cd6c91b4
TT
124452020-02-08 Tom Tromey <tom@tromey.com>
12446
12447 * dwarf2read.c (dwarf2_find_base_address, )
12448 (read_call_site_scope, rust_containing_type)
12449 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
12450 (handle_data_member_location, dwarf2_add_member_fn)
12451 (get_alignment, read_structure_type, process_structure_scope)
12452 (mark_common_block_symbol_computed, read_common_block)
12453 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
12454 (partial_die_info::read, read_attribute_value, new_symbol)
12455 (lookup_die_type, dwarf2_get_ref_die_offset)
12456 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
12457 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
12458 (dwarf2_symbol_mark_computed): Update.
12459 * dwarf2/attribute.h (struct attribute) <value_as_address,
12460 form_is_section_offset, form_is_constant, form_is_ref>: Declare
12461 methods.
12462 (value_as_address, attr_form_is_section_offset)
12463 (attr_form_is_constant, attr_form_is_ref): Don't declare.
12464 * dwarf2/attribute.c (attribute::value_as_address)
12465 (attribute::form_is_section_offset, attribute::form_is_constant)
12466 (attribute::form_is_ref): Now methods.
12467
162dce55
TT
124682020-02-08 Tom Tromey <tom@tromey.com>
12469
12470 * dwarf2read.c (struct attribute, DW_STRING)
12471 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
12472 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
12473 (attr_form_is_block, attr_form_is_section_offset)
12474 (attr_form_is_constant, attr_form_is_ref): Move.
12475 * dwarf2/attribute.h: New file.
12476 * dwarf2/attribute.c: New file, from dwarf2read.c.
12477 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
12478
3054dd54
TT
124792020-02-08 Tom Tromey <tom@tromey.com>
12480
12481 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
12482 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
12483 Move.
12484 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
12485 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
12486 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
12487 abbrev.c.
12488 * dwarf2/abbrev.h: New file.
12489 * dwarf2/abbrev.c: New file, from dwarf2read.c.
12490 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
12491
96b79293
TT
124922020-02-08 Tom Tromey <tom@tromey.com>
12493
12494 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
12495 (dwarf2_section_size, dwarf2_get_section_info)
12496 (create_signatured_type_table_from_debug_names)
12497 (create_addrmap_from_aranges, read_debug_names_from_section)
12498 (get_gdb_index_contents_from_section, read_comp_unit_head)
12499 (error_check_comp_unit_head, read_abbrev_offset)
12500 (create_debug_type_hash_table, init_cu_die_reader)
12501 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
12502 (read_comp_units_from_section, create_cus_hash_table)
12503 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
12504 (create_dwp_v2_section, dwarf2_rnglists_process)
12505 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
12506 (abbrev_table_read_table, read_indirect_string_at_offset_from)
12507 (read_indirect_string_from_dwz, read_addr_index_1)
12508 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
12509 (dwarf_decode_macro_bytes, dwarf_decode_macros)
12510 (fill_in_loclist_baton): Update.
12511 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
12512 get_containing_section, get_bfd_owner, get_bfd_section,
12513 get_file_name, get_id, get_flags, empty, read>: Declare methods.
12514 (dwarf2_read_section, get_section_name, get_section_file_name)
12515 (get_containing_section, get_section_bfd_owner)
12516 (get_section_bfd_section, get_section_name, get_section_file_name)
12517 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
12518 declare.
12519 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
12520 (dwarf2_section_info::get_bfd_owner)
12521 (dwarf2_section_info::get_bfd_section)
12522 (dwarf2_section_info::get_name)
12523 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
12524 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
12525 (dwarf2_section_info::read): Now methods.
12526 * dwarf-index-write.c (class debug_names): Update.
12527
2c86cff9
TT
125282020-02-08 Tom Tromey <tom@tromey.com>
12529
12530 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
12531 Move to dwarf2/section.h.
12532 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
12533 (get_section_bfd_section, get_section_name)
12534 (get_section_file_name, get_section_id, get_section_flags)
12535 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
12536 dwarf2/section.c.
12537 * dwarf2/section.h: New file.
12538 * dwarf2/section.c: New file, from dwarf2read.c.
12539 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
12540
f4382c45
TT
125412020-02-08 Tom Tromey <tom@tromey.com>
12542
12543 * dwarf2read.h (read_unsigned_leb128): Don't declare.
12544 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
12545 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
12546 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
12547 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
12548 * dwarf2/leb.h: New file, from dwarf2read.c.
12549 * dwarf2/leb.c: New file, from dwarf2read.c.
12550 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
12551 Remove.
12552 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
12553 (COMMON_SFILES): Add dwarf2/leb.c.
12554
01840b7a
JB
125552020-02-08 Joel Brobecker <brobecker@adacore.com>
12556
12557 GDB 9.1 released.
12558
dfcb27e4
IB
125592020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
12560
12561 PR gdb/25190:
aac66a4c
SM
12562 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
12563 * gdb/remote.c (remote_console_output): Update.
12564 * gdb/ui-file.c (fputs_unfiltered): Rename to...
12565 (ui_file_puts): ...this.
12566 * gdb/ui-file.h (ui_file_puts): Add declaration.
12567 * gdb/utils.c (emit_style_escape): Update.
12568 (flush_wrap_buffer): Update.
12569 (fputs_maybe_filtered): Update.
12570 (fputs_unfiltered): Add function.
dfcb27e4 12571
faa17681
IB
125722020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
12573
aac66a4c
SM
12574 * gdb/event-loop.c (gdb_wait_for_event): Update.
12575 * gdb/printcmd.c (printf_command): Update.
12576 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
12577 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
12578 (gdb_os_flush_stderr): Update.
12579 * gdb/remote.c (remote_console_output): Update.
12580 * gdb/ui-file.c (gdb_flush): Rename to...
12581 (ui_file_flush): ...this.
12582 (stderr_file::write): Update.
12583 (stderr_file::puts): Update.
12584 * gdb/ui-file.h (gdb_flush): Rename to...
12585 (ui_file_flush): ...this.
12586 * gdb/utils.c (gdb_flush): Add function.
12587 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 12588
5abbbe1d
TT
125892020-02-07 Tom Tromey <tromey@adacore.com>
12590
12591 PR breakpoints/24915:
12592 * source.c (find_and_open_source): Do not check basenames_may_differ.
12593
919adfe8
TT
125942020-02-07 Tom Tromey <tom@tromey.com>
12595
12596 * README: Update gdbserver documentation.
12597 * gdbserver: Move to top level.
12598 * configure.tgt (build_gdbserver): Remove.
12599 * configure.ac: Remove --enable-gdbserver.
12600 * configure: Rebuild.
12601 * Makefile.in (distclean): Don't mention gdbserver.
12602
1d5d29e7
SV
126032020-02-06 Shahab Vahedi <shahab@synopsys.com>
12604
12605 * source-cache.c (source_cache::ensure): Surround
12606 get_plain_source_lines with a try/catch.
12607 (source_cache::get_line_charpos): Get rid of try/catch
12608 and only check for the return value of "ensure".
12609 * tui/tui-source.c (tui_source_window::set_contents):
12610 Simplify "nlines" calculation.
12611
6eb1129c
SV
126122020-02-06 Shahab Vahedi <shahab@synopsys.com>
12613
12614 * MAINTAINERS (Write After Approval): Add myself.
12615
c6a42d11
CB
126162020-02-05 Christian Biesinger <cbiesinger@google.com>
12617
12618 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
12619 function call.
12620
c8ecdda6
CB
126212020-02-05 Christian Biesinger <cbiesinger@google.com>
12622
12623 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
12624
f6480e70
MR
126252020-02-05 Maciej W. Rozycki <macro@wdc.com>
12626
12627 * nat/riscv-linux-tdesc.h: New file.
12628 * nat/riscv-linux-tdesc.c: New file, taking code from...
12629 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
12630 ... here.
12631 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
12632 NATDEPFILES.
12633
dcc9fbc6
AB
126342020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
12635
12636 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
12637 we don't set the fake simulator ptid to the null_ptid.
12638
719546c4
SM
126392020-02-03 Simon Marchi <simon.marchi@efficios.com>
12640
12641 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
12642 * gdbthread.h (class thread_info) <resumed>: Likewise.
12643 * infrun.c (resume_1): Likewise.
12644 (proceed): Likewise.
12645 (infrun_thread_stop_requested): Likewise.
12646 (stop_all_threads): Likewise.
12647 (handle_inferior_event): Likewise.
12648 (restart_threads): Likewise.
12649 (finish_step_over): Likewise.
12650 (keep_going_stepped_thread): Likewise.
12651 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
12652 (linux_handle_extended_wait): Likewise.
12653 * record-btrace.c (get_thread_current_frame_id): Likewise.
12654 * record-full.c (record_full_wait_1): Likewise.
12655 * remote.c (remote_target::process_initial_stop_replies): Likewise.
12656 * target.c (target_resume): Likewise.
12657 * thread.c (set_running_thread): Likewise.
12658
e409c542
AKS
126592020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
12660
12661 * f-valprint.c (f77_print_array_1): Changed datatype of index
12662 variable to LONGEST from int to enable it to contain bound
12663 values correctly.
12664
ee98c0da
MR
126652020-02-03 Maciej W. Rozycki <macro@wdc.com>
12666
12667 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
12668 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
12669 offsets according to FLEN determined.
12670 (riscv_linux_nat_target::read_description): Determine FLEN
12671 dynamically.
12672 (riscv_linux_nat_target::fetch_registers): Size regset buffer
12673 according to FLEN determined.
12674 (riscv_linux_nat_target::store_registers): Likewise.
12675
aa66aac4
SV
126762020-02-01 Shahab Vahedi <shahab@synopsys.com>
12677
12678 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
12679 when reg->group is empty and reggroup is not.
12680
fd9faca8
TT
126812020-01-31 Tom Tromey <tromey@adacore.com>
12682
12683 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
12684 Call beneath target's mourn_inferior after unpushing.
12685
42330a68
AB
126862020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
12687
12688 PR tui/9765
12689 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
12690 have enough lines to fill the screen, still return the lowest
12691 address we found.
12692
7a27a45b
AB
126932020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
12694
12695 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
12696 '-', '<', and '>' commands.
12697
c47f70e2
PA
126982020-01-29 Pedro Alves <palves@redhat.com>
12699 Sergio Durigan Junior <sergiodj@redhat.com>
12700
12701 * infcmd.c (construct_inferior_arguments): Assert that
12702 'argc' is greater than 0.
12703
5133a315
LM
127042020-01-29 Luis Machado <luis.machado@linaro.org>
12705
12706 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
12707 (BRK_INSN_MASK): Define to 0xd4200000.
12708 (aarch64_program_breakpoint_here_p): New function.
12709 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
12710 * arch-utils.c (default_program_breakpoint_here_p): Moved from
12711 breakpoint.c.
12712 * arch-utils.h (default_program_breakpoint_here_p): Moved from
12713 breakpoint.h
12714 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
12715 call gdbarch_program_breakpoint_here_p.
12716 (program_breakpoint_here): Moved to arch-utils.c, renamed to
12717 default_program_breakpoint_here_p, changed return type to bool and
12718 simplified.
12719 * breakpoint.h (program_breakpoint_here): Moved prototype to
12720 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
12721 return type to bool.
12722 * gdbarch.c: Regenerate.
12723 * gdbarch.h: Regenerate.
12724 * gdbarch.sh (program_breakpoint_here_p): New method.
12725 * infrun.c (handle_signal_stop): Call
12726 gdbarch_program_breakpoint_here_p.
12727
168f8c6b
TT
127282020-01-26 Tom Tromey <tom@tromey.com>
12729
12730 * ctfread.c (struct ctf_fp_info): Reindent.
12731 (_initialize_ctfread): Remove.
12732
128a391f
TT
127332020-01-26 Tom Tromey <tom@tromey.com>
12734
12735 * psymtab.c (partial_map_expand_apply)
12736 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
12737 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
12738 (psym_print_stats, psym_expand_symtabs_for_function)
12739 (psym_map_symbol_filenames, psym_map_matching_symbols)
12740 (psym_expand_symtabs_matching)
12741 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
12742 (maintenance_check_psymtabs): Use new methods.
12743 * psympriv.h (struct partial_symtab) <readin_p,
12744 get_compunit_symtab>: New methods.
12745 <readin, compunit_symtab>: Remove members.
12746 (struct standard_psymtab): New.
12747 (struct legacy_psymtab): Derive from standard_psymtab.
12748 * dwarf2read.h (struct dwarf2_psymtab): Derive from
12749 standard_psymtab.
12750 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
12751
0494dbec
TT
127522020-01-26 Tom Tromey <tom@tromey.com>
12753
12754 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
12755 read_dependencies. Add assert.
12756 * psymtab.c (partial_symtab::read_dependencies): New method.
12757 * psympriv.h (struct partial_symtab) <read_dependencies>: New
12758 method.
12759 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
12760 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
12761 read_dependencies.
12762 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
12763 Add assert.
12764
8566b89b
TT
127652020-01-26 Tom Tromey <tom@tromey.com>
12766
12767 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
12768 Call expand_psymtab.
12769 (xcoff_read_symtab): Call expand_psymtab.
12770 (xcoff_start_psymtab, xcoff_end_psymtab): Set
12771 legacy_expand_psymtab.
12772 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
12773 method.
12774 (struct legacy_psymtab) <expand_psymtab>: Implement.
12775 <legacy_expand_psymtab>: New member.
12776 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
12777 (parse_partial_symbols): Set legacy_expand_psymtab.
12778 (psymtab_to_symtab_1): Change argument order. Call
12779 expand_psymtab.
12780 (new_psymtab): Set legacy_expand_psymtab.
12781 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
12782 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
12783 expand_psymtab.
12784 (dwarf2_psymtab::expand_psymtab): Rename from
12785 psymtab_to_symtab_1. Call expand_psymtab.
12786 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
12787 (dbx_end_psymtab): Likewise.
12788 (dbx_psymtab_to_symtab_1): Change argument order. Call
12789 expand_psymtab.
12790 (dbx_read_symtab): Call expand_psymtab.
12791 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
12792 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
12793 (ctf_psymtab::read_symtab): Call expand_psymtab.
12794
077cbab2
TT
127952020-01-26 Tom Tromey <tom@tromey.com>
12796
12797 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
12798 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
12799 messages.
12800 * mdebugread.c (mdebug_read_symtab): Remove prints.
12801 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
12802 assert.
12803 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
12804
891813be
TT
128052020-01-26 Tom Tromey <tom@tromey.com>
12806
12807 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
12808 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
12809 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
12810 legacy_symtab.
12811 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
12812 * psymtab.c (psymtab_to_symtab): Call method.
12813 (dump_psymtab): Update.
12814 * psympriv.h (struct partial_symtab): Add virtual destructor.
12815 <read_symtab>: New method.
12816 (struct legacy_symtab): New.
12817 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
12818 (struct pst_map) <pst>: Now a legacy_psymtab.
12819 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
12820 (new_psymtab): Use legacy_psymtab.
12821 * dwarf2read.h (struct dwarf2_psymtab): New.
12822 (struct dwarf2_per_cu_data) <psymtab>: Use it.
12823 * dwarf2read.c (dwarf2_create_include_psymtab)
12824 (dwarf2_build_include_psymtabs, create_type_unit_group)
12825 (create_partial_symtab, process_psymtab_comp_unit_reader)
12826 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
12827 (set_partial_user): Use dwarf2_psymtab.
12828 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
12829 (psymtab_to_symtab_1, process_full_comp_unit)
12830 (process_full_type_unit, dwarf2_ranges_read)
12831 (dwarf2_get_pc_bounds, psymtab_include_file_name)
12832 (dwarf_decode_lines): Use dwarf2_psymtab.
12833 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
12834 (add_address_entry_worker, write_one_signatured_type)
12835 (recursively_count_psymbols, recursively_write_psymbols)
12836 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
12837 (write_debug_names): Likewise.
12838 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
12839 <pst>: Now a legacy_psymtab.
12840 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
12841 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
12842 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
12843 * ctfread.c (struct ctf_psymtab): New.
12844 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
12845 ctf_psymtab.
12846 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
12847 (create_partial_symtab): Return a ctf_psymtab.
12848 (scan_partial_symbols): Update.
12849
c3693a1d
TT
128502020-01-26 Tom Tromey <tom@tromey.com>
12851
12852 * xcoffread.c (xcoff_start_psymtab): Use new.
12853 * psymtab.c (partial_symtab::partial_symtab): New constructor,
12854 renamed from start_psymtab_common.
12855 * psympriv.h (struct partial_symtab): Add new constructor.
12856 (start_psymtab_common): Don't declare.
12857 * mdebugread.c (parse_partial_symbols): Use new.
12858 * dwarf2read.c (create_partial_symtab): Use new.
12859 * dbxread.c (start_psymtab): Use new.
12860 * ctfread.c (create_partial_symtab): Use new.
12861
32caafd0
TT
128622020-01-26 Tom Tromey <tom@tromey.com>
12863
12864 * xcoffread.c (xcoff_end_psymtab): Use new.
12865 * psymtab.c (start_psymtab_common): Use new.
12866 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
12867 Update.
12868 * psympriv.h (struct partial_symtab): Add parameters to
12869 constructor. Don't inline.
12870 (allocate_psymtab): Don't declare.
12871 * mdebugread.c (new_psymtab): Use new.
12872 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
12873 * dbxread.c (dbx_end_psymtab): Use new.
12874
abaa2f23
TT
128752020-01-26 Tom Tromey <tom@tromey.com>
12876
12877 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
12878 allocate_psymtab. Update documentation.
12879 * psymtab.c (psymtab_storage::install_psymtab): Rename from
12880 allocate_psymtab. Do not use new.
12881 (allocate_psymtab): Use new. Update.
12882
6d94535f
TT
128832020-01-26 Tom Tromey <tom@tromey.com>
12884
12885 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
12886 * psymtab.c (psym_print_stats): Update.
12887 * psympriv.h (struct partial_symtab) <readin,
12888 psymtabs_addrmap_supported, anonymous>: Now bool.
12889 * mdebugread.c (psymtab_to_symtab_1): Update.
12890 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
12891 (build_type_psymtabs_reader, psymtab_to_symtab_1)
12892 (process_full_comp_unit, process_full_type_unit): Update.
12893 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
12894 * ctfread.c (psymtab_to_symtab): Update.
12895
6f17252b
TT
128962020-01-26 Tom Tromey <tom@tromey.com>
12897
12898 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
12899 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
12900 * psymtab.c (psymtab_storage): Delete psymtabs.
12901 (psymtab_storage::allocate_psymtab): Use new.
12902 (psymtab_storage::discard_psymtab): Use delete.
12903 * psympriv.h (struct partial_symtab): Add constructor and
12904 initializers.
12905
f6f1cebc
TT
129062020-01-26 Tom Tromey <tom@tromey.com>
12907
12908 * machoread.c: Do not include psympriv.h.
12909
e47e48f6
PW
129102020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12911
12912 * NEWS: Mention the new option and the set/show commands.
12913
a2fedca9
PW
129142020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12915
12916 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
12917 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
12918 (validate_exec_file): New variables, enums, functions.
12919 (exec_file_locate_attach, print_section_info): Style the filenames.
12920 (_initialize_exec): Install show_exec_file_mismatch_command and
12921 set_exec_file_mismatch_command.
12922 * gdbcore.h (validate_exec_file): Declare.
12923 * infcmd.c (attach_command): Call validate_exec_file.
12924 * remote.c ( remote_target::remote_add_inferior): Likewise.
12925
7ffa82e1
AB
129262020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12927
12928 * frame.c (find_frame_sal): Move call to get_next_frame into more
12929 inner scope.
12930 * inline-frame.c (inilne_state) <inline_state>: Update argument
12931 types.
12932 (inilne_state) <skipped_symbol>: Rename to...
12933 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
12934 (skip_inline_frames): Build vector of skipped symbols and use this
12935 to reate the inline_state.
12936 (inline_skipped_symbol): Add a comment and some assertions, fetch
12937 skipped symbol from the list.
12938
3d92a3e3
AB
129392020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12940
12941 * buildsym.c (lte_is_less_than): Delete.
12942 (buildsym_compunit::end_symtab_with_blockvector): Create local
12943 lambda function to sort line table entries, and use
12944 std::stable_sort instead of std::sort.
12945 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
12946 markers when looking for a previous line.
12947
94a72be7
AB
129482020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12949
12950 * dwarf2read.c (lnp_state_machine::record_line): Include
12951 end_sequence parameter in debug print out. Record the line if we
12952 are at an end_sequence marker even if it's not the start of a
12953 statement.
12954 * symmisc.c (maintenance_print_one_line_table): Print end of
12955 sequence markers with 'END' not '0'.
12956
53af73bf
PA
129572020-01-24 Pedro Alves <palves@redhat.com>
12958
12959 PR gdb/25410
12960 * thread.c (scoped_restore_current_thread::restore): Use
12961 switch_to_inferior_no_thread.
12962 * exec.c: Include "progspace-and-thread.h".
12963 (add_target_sections, remove_target_sections):
12964 scoped_restore_current_pspace_and_thread instead of
12965 scoped_restore_current_thread.
12966 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
12967 and aspace to the inferior before calling clone_program_space.
12968 Remove stale comment.
12969
3050c6f4
CB
129702020-01-24 Christian Biesinger <cbiesinger@google.com>
12971
12972 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
12973 (arm_netbsd_nat_target::fetch_registers): ...this.
12974 (arm_nbsd_nat_target::store_registers): Rename to...
12975 (arm_netbsd_nat_target::store_registers): ...this.
12976
73685c7e
CB
129772020-01-24 Christian Biesinger <cbiesinger@google.com>
12978
12979 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12980 register_t.
12981
89203d40
CB
129822020-01-24 Christian Biesinger <cbiesinger@google.com>
12983
12984 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
12985 Update comment.
12986 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
12987 Likewise.
12988 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
12989 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
12990 the correct replacement (iterate_over_regset_sections).
12991 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
12992 Update comment.
12993
1ba1ac88
AB
129942020-01-24 Graham Markall <graham.markall@embecosm.com>
12995
12996 PR gdb/23718
12997 * gdb/python/python.c (execute_gdb_command): Call
12998 async_enable_stdin in catch block.
12999
f3364a6d
AB
130002020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13001
13002 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
13003 SWITCH_THRU_ALL_UIS.
13004
733d0a67
AB
130052020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13006
13007 PR tui/9765
13008 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
13009 comment, add extra parameter, and update to store previous symbol
13010 when appropriate.
13011 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
13012 add extra parameter.
13013 * tui/tui-disasm.c (tui_disassemble): Update header comment,
13014 remove unneeded parameter, add try/catch around gdb_print_insn,
13015 rewrite to add items to asm_lines vector.
13016 (tui_find_backward_disassembly_start_address): New function.
13017 (tui_find_disassembly_address): Updated throughout.
13018 (tui_disasm_window::set_contents): Update for changes to
13019 tui_disassemble.
13020 (tui_disasm_window::do_scroll_vertical): No need to adjust the
13021 number of lines to scroll.
13022
b3b3bada
SM
130232020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
13024
13025 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
13026 (SECT_OFF_DATA): Likewise.
13027 (SECT_OFF_RODATA): Likewise.
13028 (SECT_OFF_TEXT): Likewise.
13029 (SECT_OFF_BSS): Likewise.
13030 (struct objfile) <text_section_offset, data_section_offset>: New
13031 methods.
13032 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
13033 objfile::text_section_offset.
13034 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
13035 * coffread.c (coff_symtab_read): Likewise.
13036 (enter_linenos): Likewise.
13037 (process_coff_symbol): Likewise.
13038 * ctfread.c (get_objfile_text_range): Likewise.
13039 * dtrace-probe.c (dtrace_probe::get_relocated_address):
13040 Use objfile::data_section_offset.
13041 * dwarf2-frame.c (execute_cfa_program): Use
13042 objfile::text_section_offset.
13043 (dwarf2_frame_find_fde): Likewise.
13044 * dwarf2read.c (create_addrmap_from_index): Likewise.
13045 (create_addrmap_from_aranges): Likewise.
13046 (dw2_find_pc_sect_compunit_symtab): Likewise.
13047 (process_psymtab_comp_unit_reader): Likewise.
13048 (add_partial_symbol): Likewise.
13049 (add_partial_subprogram): Likewise.
13050 (process_full_comp_unit): Likewise.
13051 (read_file_scope): Likewise.
13052 (read_func_scope): Likewise.
13053 (read_lexical_block_scope): Likewise.
13054 (read_call_site_scope): Likewise.
13055 (dwarf2_rnglists_process): Likewise.
13056 (dwarf2_ranges_process): Likewise.
13057 (dwarf2_ranges_read): Likewise.
13058 (dwarf_decode_lines_1): Likewise.
13059 (new_symbol): Likewise.
13060 (dwarf2_fetch_die_loc_sect_off): Likewise.
13061 (dwarf2_per_cu_text_offset): Likewise.
13062 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
13063 * hppa-tdep.c (read_unwind_info): Likewise.
13064 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
13065 * psympriv.h (struct partial_symtab): Likewise.
13066 * psymtab.c (find_pc_sect_psymtab): Likewise.
13067 * solib-svr4.c (enable_break): Likewise.
13068 * stap-probe.c (relocate_address): Use
13069 objfile::data_section_offset.
13070 * xcoffread.c (enter_line_range): Use
13071 objfile::text_section_offset.
13072 (read_xcoff_symtab): Likewise.
13073
ab53f382
SM
130742020-01-23 Simon Marchi <simon.marchi@efficios.com>
13075
13076 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
13077 declaration to narrower scopes.
13078
e7eee665
SM
130792020-01-23 Simon Marchi <simon.marchi@efficios.com>
13080
13081 * darwin-nat.h (struct darwin_exception_msg, enum
13082 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
13083 Move up.
13084 (class darwin_nat_target) <wait_1, check_new_threads,
13085 decode_exception_message, decode_message, stop_inferior,
13086 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
13087 * darwin-nat.c (darwin_check_new_threads): Rename to...
13088 (darwin_nat_target::check_new_threads): ... this.
13089 (darwin_suspend_inferior_it): Remove.
13090 (darwin_decode_exception_message): Rename to...
13091 (darwin_nat_target::decode_exception_message): ... this.
13092 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
13093 (darwin_decode_message): Rename to...
13094 (darwin_nat_target::decode_message): ... this.
13095 (cancel_breakpoint): Rename to...
13096 (darwin_nat_target::cancel_breakpoint): ... this.
13097 (darwin_wait): Rename to...
13098 (darwin_nat_target::wait_1): ... this. Use range-based for loop
13099 instead of iterate_over_inferiors.
13100 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
13101 (darwin_stop_inferior): Rename to...
13102 (darwin_nat_target::stop_inferior): ... this.
13103 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
13104 (darwin_init_thread_list): Rename to...
13105 (darwin_nat_target::init_thread_list): ... this.
13106 (darwin_ptrace_him): Rename to...
13107 (darwin_nat_target::ptrace_him): ... this.
13108 (darwin_nat_target::create_inferior): Pass lambda function to
13109 fork_inferior.
13110 (darwin_nat_target::detach): Call stop_inferior instead of
13111 darwin_stop_inferior.
13112 * fork-inferior.h (fork_inferior): Change init_trace_fun
13113 parameter to gdb::function_view.
13114 * fork-inferior.c (fork_inferior): Likewise.
13115
c162ed3e
HD
131162020-01-23 Hannes Domani <ssbssa@yahoo.de>
13117
13118 * i386-cygwin-tdep.c (core_process_module_section): Update.
13119 * windows-nat.c (struct lm_info_windows): Add text_offset.
13120 (windows_xfer_shared_libraries): Update.
13121 * windows-tdep.c (windows_xfer_shared_library):
13122 Add text_offset_cached argument.
13123 * windows-tdep.h (windows_xfer_shared_library): Update.
13124
a1237872
SM
131252020-01-21 Simon Marchi <simon.marchi@efficios.com>
13126
13127 * gdbarch.sh: Add declaration for _initialize_gdbarch.
13128
b3ee6dd9
SM
131292020-01-21 Simon Marchi <simon.marchi@efficios.com>
13130
13131 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
13132 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
13133 replace with range-based for.
13134 (gdbsim_interrupt_inferior): Remove.
13135 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
13136 with a range-based for. Inline code from
13137 gdbsim_interrupt_inferior.
13138
f9fac3c8
SM
131392020-01-21 Simon Marchi <simon.marchi@efficios.com>
13140
13141 * infrun.c (proceed): Fix indentation.
13142
f6474de9
TT
131432020-01-21 Tom Tromey <tromey@adacore.com>
13144
13145 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
13146 * python/python.c (python_extension_ops): Update.
13147 (gdbpy_colorize): New function.
13148 * python/lib/gdb/__init__.py (colorize): New function.
13149 * extension.h (ext_lang_colorize): Declare.
13150 * extension.c (ext_lang_colorize): New function.
13151 * extension-priv.h (struct extension_language_ops) <colorize>: New
13152 member.
13153 * cli/cli-style.c (_initialize_cli_style): Update help text.
13154
f0c702d4
LM
131552020-01-21 Luis Machado <luis.machado@linaro.org>
13156
13157 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
13158 <cond>: Change type to bool.
13159 (aarch64_displaced_step_b_cond): Update cond to use bool type.
13160 (aarch64_displaced_step_cb): Likewise.
13161 (aarch64_displaced_step_tb): Likewise.
13162
1ab139e5
LM
131632020-01-21 Luis Machado <luis.machado@linaro.org>
13164
13165 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
13166 output.
13167
0c271889
LM
131682020-01-21 Luis Machado <luis.machado@linaro.org>
13169
13170 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
13171 <pc_adjust>: Adjust the documentation.
13172 (aarch64_displaced_step_fixup): Check if PC really moved before
13173 adjusting it.
13174
4d89c1c7
TT
131752020-01-19 Tom Tromey <tom@tromey.com>
13176
13177 * disasm.c (~gdb_disassembler): New destructor.
13178 (gdb_buffered_insn_length): Call disassemble_free_target.
13179 * disasm.h (class gdb_disassembler): Declare destructor. Use
13180 DISABLE_COPY_AND_ASSIGN.
13181
c0ab21c2
TT
131822020-01-19 Tom Tromey <tom@tromey.com>
13183
13184 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
13185 (die_reader_func_ftype): Remove.
13186 (cutu_reader): New class.
13187 (dw2_get_file_names_reader): Remove "data" parameter.
13188 (dw2_get_file_names): Use cutu_reader.
13189 (create_debug_type_hash_table): Update.
13190 (read_cutu_die_from_dwo): Update comment.
13191 (lookup_dwo_unit): Add dwo_name parameter.
13192 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
13193 die_reader_func_ftype and data parameters.
13194 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
13195 Remove die_reader_func_ftype and data parameters.
13196 (~cutu_reader): New; from init_cutu_and_read_dies.
13197 (cutu_reader::cutu_reader): Rename from
13198 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
13199 and data parameters.
13200 (init_cutu_and_read_dies_simple): Remove.
13201 (struct process_psymtab_comp_unit_data): Remove.
13202 (process_psymtab_comp_unit_reader): Remove data parameter; add
13203 want_partial_unit and pretend_language parameters.
13204 (process_psymtab_comp_unit): Use cutu_reader.
13205 (build_type_psymtabs_reader): Remove data parameter.
13206 (build_type_psymtabs_1): Use cutu_reader.
13207 (process_skeletonless_type_unit): Likewise.
13208 (load_partial_comp_unit_reader): Remove.
13209 (load_partial_comp_unit): Use cutu_reader.
13210 (load_full_comp_unit_reader): Remove.
13211 (load_full_comp_unit): Use cutu_reader.
13212 (struct create_dwo_cu_data): Remove.
13213 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
13214 dwo_unit parameters.
13215 (create_cus_hash_table): Use cutu_reader.
13216 (struct dwarf2_read_addr_index_data): Remove.
13217 (dwarf2_read_addr_index_reader): Remove.
13218 (dwarf2_read_addr_index): Use cutu_reader.
13219 (read_signatured_type_reader): Remove.
13220 (read_signatured_type): Use cutu_reader.
13221
45bbae5c
TT
132222020-01-19 Tom Tromey <tom@tromey.com>
13223
13224 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
13225 * tui/tui-wingeneral.h (class tui_suppress_output): New.
13226 (tui_wrefresh): Declare.
13227 * tui/tui-wingeneral.c (suppress_output): New global.
13228 (tui_suppress_output, ~tui_suppress_output): New constructor and
13229 destructor.
13230 (tui_wrefresh): New function.
13231 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
13232 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
13233 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
13234 method.
13235 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
13236 tui_wrefresh.
13237 (tui_data_window::no_refresh): New method.
13238 (tui_data_item_window::refresh_window): Call tui_wrefresh.
13239 (tui_reg_command): Use tui_suppress_output
13240 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
13241 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
13242 method.
13243 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
13244
4f13c1c0
TT
132452020-01-19 Tom Tromey <tom@tromey.com>
13246
13247 * tui/tui-winsource.c (tui_update_source_windows_with_line):
13248 Handle case where symtab is null.
13249
fa47e446
SM
132502020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
13251
13252 * linux-fork.c (one_fork_p): Simplify.
13253
26f42329
SM
132542020-01-17 Simon Marchi <simon.marchi@efficios.com>
13255
13256 * top.c (struct qt_args): Remove.
13257 (kill_or_detach): Change return type to void, replace `void *`
13258 parameter with a proper one.
13259 (print_inferior_quit_action): Likewise.
13260 (quit_confirm): Use range-based for loop to iterate over inferiors.
13261 (quit_force): Likewise.
13262
a9ac81b1
SM
132632020-01-17 Simon Marchi <simon.marchi@efficios.com>
13264
13265 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
13266 `void *` parameter with proper parameters.
13267 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
13268 (print_one_inferior): Change return type to void, replace `void *`
13269 parameter with proper parameters.
13270 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
13271 inferiors.
13272 (get_other_inferior): Remove.
13273 (mi_cmd_remove_inferior): Use range-based loop to iterate over
13274 inferiors.
13275
788eca49
SM
132762020-01-17 Simon Marchi <simon.marchi@efficios.com>
13277
13278 * mi/mi-interp.c (report_initial_inferior): Remove.
13279 (mi_interp::init): Use range-based for to iterate over inferiors.
13280
d9bc85b6
SM
132812020-01-17 Simon Marchi <simon.marchi@efficios.com>
13282
13283 * python/py-inferior.c (build_inferior_list): Remove.
13284 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
13285
40c94099
CB
132862020-01-16 Christian Biesinger <cbiesinger@google.com>
13287
13288 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
13289 (btrace_stitch_trace): Likewise.
13290 * charset.c (intermediate_encoding): Likewise (vaild).
13291 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
13292 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
13293 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
13294
e0cdfe3c
HD
132952020-01-16 Hannes Domani <ssbssa@yahoo.de>
13296
13297 * windows-tdep.c (windows_get_tlb_type):
13298 Add rtl_user_process_parameters type.
13299
790f1718 133002020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 13301 Norbert Lange <nolange79@gmail.com>
790f1718
PA
13302
13303 PR build/24805
13304 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
13305 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
13306 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
13307 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
13308 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
13309 (ps_plog): Redeclare exported functions with default visibility.
13310
3112ed97
NA
133112020-01-16 Nitika Achra <Nitika.Achra@amd.com>
13312
13313 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
13314 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
13315
8dc3273e
SM
133162020-01-15 Simon Marchi <simon.marchi@efficios.com>
13317
13318 * infcmd.c (post_create_inferior): Use get_thread_regcache
13319 instead of get_current_regcache.
13320
ff47f4f0
TT
133212020-01-14 Tom Tromey <tom@tromey.com>
13322
13323 PR symtab/12535:
13324 * python/python.c (gdbpy_decode_line): Treat empty string the same
13325 as no argument.
13326
975f45b7
TT
133272020-01-14 Tom Tromey <tom@tromey.com>
13328
13329 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
13330
25e57356
TT
133312020-01-14 Tom Tromey <tom@tromey.com>
13332
13333 * nat/linux-btrace.c: Don't include <config.h>.
13334 * nat/linux-ptrace.c: Don't include <config.h>.
13335 * nat/x86-linux-dregs.c: Don't include <config.h>.
13336
05ea2a05
TT
133372020-01-14 Tom Tromey <tom@tromey.com>
13338
13339 * configure: Rebuild.
13340 * configure.ac: Move many checks to ../gdbsupport/common.m4.
13341
01027315
TT
133422020-01-14 Tom Tromey <tom@tromey.com>
13343
13344 * nat/x86-linux-dregs.c: Include configh.h.
13345 * nat/linux-ptrace.c: Include configh.h.
13346 * nat/linux-btrace.c: Include configh.h.
13347 * defs.h: Include config.h, bfd.h.
13348 * configure.ac: Don't source common.host.
13349 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
13350 * configure: Rebuild.
13351 * acinclude.m4: Update path.
13352 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
13353 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
13354 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
13355 (CLIBS): Add LIBSUPPORT.
13356 (CDEPS): Likewise.
13357 (COMMON_SFILES): Remove gdbsupport files.
13358 (HFILES_NO_SRCDIR): Likewise.
13359 (stamp-version): Update path to create-version.sh.
13360 (ALLDEPFILES): Remove gdbsupport files.
13361
b2ceabe8
TT
133622020-01-14 Tom Tromey <tom@tromey.com>
13363
13364 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
13365 USE_WIN32API when needed.
13366 * configure.ac (USE_WIN32API): Don't define.
13367 (WIN32LIBS): Use WIN32APILIBS.
13368 * configure: Rebuild.
13369
25c51f71
TT
133702020-01-14 Tom Tromey <tom@tromey.com>
13371
13372 * configure: Rebuild.
13373 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
13374
717c684d
BE
133752020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
13376
13377 * skip.c (skip_function_command): Make skip w/o arguments use the
13378 name of the inlined function if pc is inside any inlined function.
13379
7da6a5b9
LM
133802020-01-14 Luis Machado <luis.machado@linaro.org>
13381
13382 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
13383 * infrun.c (resume_1): Likewise.
13384 (handle_inferior_event): Remove stale comment.
13385 * linux-nat.c (linux_nat_target::resume): Update comments.
13386 (save_stop_reason): Likewise.
13387 (linux_nat_filter_event): Likewise.
13388 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
13389
44e4c775
AB
133902020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
13391
13392 * elfread.c (record_minimal_symbol): Set section index to 0 for
13393 non-allocatable sections.
13394
18a8505e
AT
13395
133962020-01-13 Ali Tamur <tamur@google.com>
13397
13398 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
13399 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
13400 to gdb::optional. Update comments.
13401 (dwo_file): Update comments.
13402 (read_attribute): Update API to take an additional out parameter,
13403 need_reprocess. This is used to mark attributes that need other
13404 attributes (e.g. str_offsets_base) for correct computation which may not
13405 have been read yet.
13406 (read_attribute_reprocess): New function declaration.
13407 (read_addr_index): Likewise.
13408 (read_dwo_str_index): Likewise.
13409 (read_stub_str_index): Likewise.
13410 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
13411 (lookup_addr_base): New function definition.
13412 (lookup_ranges_base): Likewise.
13413 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
13414 lookup_ranges_base.
13415 (init_cutu_and_read_dies): Update comments.
13416 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
13417 unit. This is used to inherit parent's str_offsets_base and addr_base.
13418 Update comments.
13419 (init_cutu_and_read_dies_simple): Reflect API changes.
13420 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
13421 (create_cus_hash_table): Change API to take parent compile unit.
13422 Reflect API changes.
13423 (open_and_init_dwo_file): Reflect API changes.
13424 (dwarf2_get_pc_bounds): Update comments.
13425 (dwarf2_record_block_ranges): Likewise.
13426 (read_full_die_1): Change implementation to reprocess attributes that
13427 need str_offsets_base and addr_base.
13428 (partial_die_info::read): Likewise.
13429 (read_attribute_reprocess): New function definition.
13430 (read_attribute_value): Change API to take an additional out parameter,
13431 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
13432 when a non-dwo compile unit has index based attributes.
13433 (read_attribute): Reflect API changes.
13434 (read_addr_index_1): Reflect API changes. Update comments.
13435 (dwarf2_read_addr_index_data): Reflect API changes.
13436 (dwarf2_read_addr_index): Likewise.
13437 (read_str_index): Change API and implementation. This becomes a helper
13438 to be used by the new string index related methods. Update error
13439 message and comments.
13440 (read_dwo_str_index): New function definition.
13441 (read_stub_str_index): Likewise.
13442 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
13443 * symfile.h (dwarf2_debug_sections): Likewise.
13444 * xcoffread.c (dwarf2_debug_sections): Likewise.
13445
0cac9354
SM
134462020-01-13 Simon Marchi <simon.marchi@efficios.com>
13447
13448 * gdbcore.h (struct core_fns) <core_read_registers>: Change
13449 core_reg_sect type to gdb_byte *.
13450 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
13451 * cris-tdep.c (fetch_core_registers): Likewise.
13452 * corelow.c (core_target::get_core_register_section): Change
13453 type of `contents` to gdb::byte_vector.
13454
9a6d629c
AB
134552020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
13456
13457 * tui/tui-wingeneral.c (box_win): Position the title in the center
13458 of the border.
13459
d8b2f9e3
SM
134602020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13461
13462 * corelow.c (core_target::get_core_register_section): Use
13463 std::vector instead of alloca.
13464
bb564c58
SM
134652020-01-13 Simon Marchi <simon.marchi@efficios.com>
13466
13467 * warning.m4: Add -Wmissing-declarations to build_warnings.
13468 * configure: Re-generate.
13469
6b366111
SM
134702020-01-13 Simon Marchi <simon.marchi@efficios.com>
13471
13472 * python/python.c (init__gdb_module): Add declaration.
13473
6c265988
SM
134742020-01-13 Simon Marchi <simon.marchi@efficios.com>
13475
13476 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
13477 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
13478 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
13479 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
13480 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
13481 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
13482 * ada-exp.y (_initialize_ada_exp): Add declaration.
13483 * ada-lang.c (_initialize_ada_language): Add declaration.
13484 * ada-tasks.c (_initialize_tasks): Add declaration.
13485 * agent.c (_initialize_agent): Add declaration.
13486 * aix-thread.c (_initialize_aix_thread): Add declaration.
13487 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
13488 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
13489 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
13490 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
13491 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
13492 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
13493 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
13494 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
13495 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
13496 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
13497 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
13498 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
13499 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
13500 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
13501 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
13502 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
13503 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
13504 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
13505 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
13506 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
13507 * annotate.c (_initialize_annotate): Add declaration.
13508 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
13509 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
13510 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
13511 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
13512 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
13513 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
13514 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
13515 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
13516 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
13517 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
13518 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
13519 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
13520 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
13521 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
13522 * auto-load.c (_initialize_auto_load): Add declaration.
13523 * auxv.c (_initialize_auxv): Add declaration.
13524 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
13525 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
13526 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
13527 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
13528 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
13529 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
13530 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
13531 * breakpoint.c (_initialize_breakpoint): Add declaration.
13532 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
13533 * btrace.c (_initialize_btrace): Add declaration.
13534 * charset.c (_initialize_charset): Add declaration.
13535 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
13536 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
13537 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
13538 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
13539 * cli/cli-script.c (_initialize_cli_script): Add declaration.
13540 * cli/cli-style.c (_initialize_cli_style): Add declaration.
13541 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
13542 * coffread.c (_initialize_coffread): Add declaration.
13543 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
13544 * compile/compile.c (_initialize_compile): Add declaration.
13545 * complaints.c (_initialize_complaints): Add declaration.
13546 * completer.c (_initialize_completer): Add declaration.
13547 * copying.c (_initialize_copying): Add declaration.
13548 * corefile.c (_initialize_core): Add declaration.
13549 * corelow.c (_initialize_corelow): Add declaration.
13550 * cp-abi.c (_initialize_cp_abi): Add declaration.
13551 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
13552 * cp-support.c (_initialize_cp_support): Add declaration.
13553 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
13554 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
13555 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
13556 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
13557 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
13558 * ctfread.c (_initialize_ctfread): Add declaration.
13559 * d-lang.c (_initialize_d_language): Add declaration.
13560 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
13561 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
13562 * dbxread.c (_initialize_dbxread): Add declaration.
13563 * dcache.c (_initialize_dcache): Add declaration.
13564 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
13565 * disasm.c (_initialize_disasm): Add declaration.
13566 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
13567 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
13568 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
13569 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
13570 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
13571 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
13572 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
13573 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
13574 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
13575 * elfread.c (_initialize_elfread): Add declaration.
13576 * exec.c (_initialize_exec): Add declaration.
13577 * extension.c (_initialize_extension): Add declaration.
13578 * f-lang.c (_initialize_f_language): Add declaration.
13579 * f-valprint.c (_initialize_f_valprint): Add declaration.
13580 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
13581 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
13582 * filesystem.c (_initialize_filesystem): Add declaration.
13583 * findcmd.c (_initialize_mem_search): Add declaration.
13584 * findvar.c (_initialize_findvar): Add declaration.
13585 * fork-child.c (_initialize_fork_child): Add declaration.
13586 * frame-base.c (_initialize_frame_base): Add declaration.
13587 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
13588 * frame.c (_initialize_frame): Add declaration.
13589 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
13590 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
13591 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
13592 * gcore.c (_initialize_gcore): Add declaration.
13593 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
13594 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
13595 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
13596 * gdbarch.c (_initialize_gdbarch): Add declaration.
13597 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
13598 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
13599 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
13600 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
13601 * go-lang.c (_initialize_go_language): Add declaration.
13602 * go32-nat.c (_initialize_go32_nat): Add declaration.
13603 * guile/guile.c (_initialize_guile): Add declaration.
13604 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
13605 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
13606 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
13607 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
13608 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
13609 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
13610 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
13611 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
13612 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
13613 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
13614 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
13615 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
13616 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
13617 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
13618 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
13619 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
13620 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
13621 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
13622 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
13623 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
13624 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
13625 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
13626 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
13627 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
13628 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
13629 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
13630 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
13631 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
13632 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
13633 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
13634 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
13635 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
13636 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
13637 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
13638 * infcall.c (_initialize_infcall): Add declaration.
13639 * infcmd.c (_initialize_infcmd): Add declaration.
13640 * inflow.c (_initialize_inflow): Add declaration.
13641 * infrun.c (_initialize_infrun): Add declaration.
13642 * interps.c (_initialize_interpreter): Add declaration.
13643 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
13644 * jit.c (_initialize_jit): Add declaration.
13645 * language.c (_initialize_language): Add declaration.
13646 * linux-fork.c (_initialize_linux_fork): Add declaration.
13647 * linux-nat.c (_initialize_linux_nat): Add declaration.
13648 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
13649 * linux-thread-db.c (_initialize_thread_db): Add declaration.
13650 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
13651 * m2-lang.c (_initialize_m2_language): Add declaration.
13652 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
13653 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
13654 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
13655 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
13656 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
13657 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
13658 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
13659 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
13660 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
13661 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
13662 * machoread.c (_initialize_machoread): Add declaration.
13663 * macrocmd.c (_initialize_macrocmd): Add declaration.
13664 * macroscope.c (_initialize_macroscope): Add declaration.
13665 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
13666 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
13667 * maint.c (_initialize_maint_cmds): Add declaration.
13668 * mdebugread.c (_initialize_mdebugread): Add declaration.
13669 * memattr.c (_initialize_mem): Add declaration.
13670 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
13671 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
13672 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
13673 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
13674 * mi/mi-main.c (_initialize_mi_main): Add declaration.
13675 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
13676 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
13677 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
13678 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
13679 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
13680 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
13681 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
13682 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
13683 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
13684 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
13685 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
13686 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
13687 * mipsread.c (_initialize_mipsread): Add declaration.
13688 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
13689 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
13690 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
13691 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
13692 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
13693 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
13694 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
13695 * nto-procfs.c (_initialize_procfs): Add declaration.
13696 * objc-lang.c (_initialize_objc_language): Add declaration.
13697 * observable.c (_initialize_observer): Add declaration.
13698 * opencl-lang.c (_initialize_opencl_language): Add declaration.
13699 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
13700 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
13701 * osabi.c (_initialize_gdb_osabi): Add declaration.
13702 * osdata.c (_initialize_osdata): Add declaration.
13703 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
13704 * parse.c (_initialize_parse): Add declaration.
13705 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
13706 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
13707 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
13708 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
13709 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
13710 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
13711 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
13712 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
13713 * printcmd.c (_initialize_printcmd): Add declaration.
13714 * probe.c (_initialize_probe): Add declaration.
13715 * proc-api.c (_initialize_proc_api): Add declaration.
13716 * proc-events.c (_initialize_proc_events): Add declaration.
13717 * proc-service.c (_initialize_proc_service): Add declaration.
13718 * procfs.c (_initialize_procfs): Add declaration.
13719 * producer.c (_initialize_producer): Add declaration.
13720 * psymtab.c (_initialize_psymtab): Add declaration.
13721 * python/python.c (_initialize_python): Add declaration.
13722 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
13723 * record-btrace.c (_initialize_record_btrace): Add declaration.
13724 * record-full.c (_initialize_record_full): Add declaration.
13725 * record.c (_initialize_record): Add declaration.
13726 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
13727 * regcache.c (_initialize_regcache): Add declaration.
13728 * reggroups.c (_initialize_reggroup): Add declaration.
13729 * remote-notif.c (_initialize_notif): Add declaration.
13730 * remote-sim.c (_initialize_remote_sim): Add declaration.
13731 * remote.c (_initialize_remote): Add declaration.
13732 * reverse.c (_initialize_reverse): Add declaration.
13733 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
13734 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
13735 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
13736 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
13737 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
13738 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
13739 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
13740 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
13741 Add declaration.
13742 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
13743 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
13744 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
13745 * rust-exp.y (_initialize_rust_exp): Add declaration.
13746 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
13747 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
13748 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
13749 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
13750 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
13751 * score-tdep.c (_initialize_score_tdep): Add declaration.
13752 * ser-go32.c (_initialize_ser_dos): Add declaration.
13753 * ser-mingw.c (_initialize_ser_windows): Add declaration.
13754 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
13755 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
13756 * ser-uds.c (_initialize_ser_socket): Add declaration.
13757 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
13758 * serial.c (_initialize_serial): Add declaration.
13759 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
13760 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
13761 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
13762 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
13763 * skip.c (_initialize_step_skip): Add declaration.
13764 * sol-thread.c (_initialize_sol_thread): Add declaration.
13765 * solib-aix.c (_initialize_solib_aix): Add declaration.
13766 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
13767 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
13768 * solib-frv.c (_initialize_frv_solib): Add declaration.
13769 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
13770 * solib-target.c (_initialize_solib_target): Add declaration.
13771 * solib.c (_initialize_solib): Add declaration.
13772 * source-cache.c (_initialize_source_cache): Add declaration.
13773 * source.c (_initialize_source): Add declaration.
13774 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
13775 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
13776 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
13777 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
13778 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
13779 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
13780 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
13781 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
13782 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
13783 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
13784 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
13785 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
13786 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
13787 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
13788 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
13789 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
13790 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
13791 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
13792 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
13793 * stabsread.c (_initialize_stabsread): Add declaration.
13794 * stack.c (_initialize_stack): Add declaration.
13795 * stap-probe.c (_initialize_stap_probe): Add declaration.
13796 * std-regs.c (_initialize_frame_reg): Add declaration.
13797 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
13798 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
13799 * symfile.c (_initialize_symfile): Add declaration.
13800 * symmisc.c (_initialize_symmisc): Add declaration.
13801 * symtab.c (_initialize_symtab): Add declaration.
13802 * target.c (_initialize_target): Add declaration.
13803 * target-connection.c (_initialize_target_connection): Add
13804 declaration.
13805 * target-dcache.c (_initialize_target_dcache): Add declaration.
13806 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
13807 * thread.c (_initialize_thread): Add declaration.
13808 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
13809 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
13810 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
13811 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
13812 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
13813 * tracectf.c (_initialize_ctf): Add declaration.
13814 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
13815 * tracefile.c (_initialize_tracefile): Add declaration.
13816 * tracepoint.c (_initialize_tracepoint): Add declaration.
13817 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
13818 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
13819 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
13820 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
13821 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
13822 * tui/tui-win.c (_initialize_tui_win): Add declaration.
13823 * tui/tui.c (_initialize_tui): Add declaration.
13824 * typeprint.c (_initialize_typeprint): Add declaration.
13825 * ui-style.c (_initialize_ui_style): Add declaration.
13826 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
13827 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
13828 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
13829 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
13830 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
13831 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
13832 * unittests/filtered_iterator-selftests.c
13833 (_initialize_filtered_iterator_selftests): Add declaration.
13834 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
13835 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
13836 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
13837 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
13838 * unittests/main-thread-selftests.c
13839 (_initialize_main_thread_selftests): Add declaration.
13840 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
13841 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
13842 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
13843 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
13844 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
13845 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
13846 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
13847 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
13848 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
13849 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
13850 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
13851 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
13852 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
13853 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
13854 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
13855 declaration.
13856 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
13857 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
13858 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
13859 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
13860 * user-regs.c (_initialize_user_regs): Add declaration.
13861 * utils.c (_initialize_utils): Add declaration.
13862 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
13863 * valops.c (_initialize_valops): Add declaration.
13864 * valprint.c (_initialize_valprint): Add declaration.
13865 * value.c (_initialize_values): Add declaration.
13866 * varobj.c (_initialize_varobj): Add declaration.
13867 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
13868 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
13869 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
13870 * windows-nat.c (_initialize_windows_nat): Add declaration.
13871 (_initialize_check_for_gdb_ini): Add declaration.
13872 (_initialize_loadable): Add declaration.
13873 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
13874 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
13875 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
13876 * xcoffread.c (_initialize_xcoffread): Add declaration.
13877 * xml-support.c (_initialize_xml_support): Add declaration.
13878 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
13879 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
13880 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
13881 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
13882
e2de1eec
SM
138832020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13884
13885 * regformats/regdat.sh: Generate declaration for init function.
13886
e0037b4c
SM
138872020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13888
13889 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
13890 up.
13891 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
13892 close_one_inferior>: New methods.
13893 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
13894 pass down target to find_inferior_pid.
13895 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
13896 Pass down target to find_inferior_ptid.
13897 (gdbsim_target::create_inferior): Pass down target to
13898 add_thread_silent.
13899 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
13900 target down to find_inferior_ptid and switch_to_thread.
13901 (gdbsim_target::close): Update to call close_one_inferior.
13902 (struct resume_data): Remove.
13903 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
13904 directly, rather than through a void pointer.
13905 (gdbsim_target::resume): Update to call resume_one_inferior.
13906
58920b5b
SM
139072020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
13908
13909 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
13910
4ec89149
PA
139112020-01-12 Pedro Alves <palves@redhat.com>
13912
13913 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
13914 directly for the current inferior instead of
13915 discard_all_inferiors.
13916 (discard_all_inferiors): Delete.
13917
7c392d1d
TT
139182020-01-11 Tom Tromey <tom@tromey.com>
13919
13920 * tui/tui-wingeneral.c (box_win): Check cli_styling.
13921 * tui/tui-winsource.c (tui_source_window_base::refill): Use
13922 deprecated_safe_get_selected_frame.
13923
d9ebdab7
TBA
139242020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13925
13926 * inferior.c (print_inferior): Switch inferior before printing it.
13927
f3c469b9
PA
139282020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
13929 Pedro Alves <palves@redhat.com>
13930
13931 * progspace-and-thread.c (switch_to_program_space_and_thread):
13932 Assert there's an inferior for PSPACE. Use
13933 switch_to_inferior_no_thread to switch the inferior too.
13934 * progspace.c (program_space::~program_space): Call
13935 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
13936 (program_space::free_all_objfiles): Don't call clear_symtab_users
13937 here.
13938 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
13939
65c574f6
PA
139402020-01-10 Pedro Alves <palves@redhat.com>
13941
13942 * NEWS: Mention multi-target debugging, "info connections", and
13943 "add-inferior -no-connection".
13944
2f4fcf00
PA
139452020-01-10 Pedro Alves <palves@redhat.com>
13946
13947 * infrun.c: Include "target-connection.h".
13948 (check_multi_target_resumption): New.
13949 (proceed): Call it.
13950 * target-connection.c (make_target_connection_string): Make
13951 extern.
13952 * target-connection.h (make_target_connection_string): Declare.
13953
121b3efd
PA
139542020-01-10 Pedro Alves <palves@redhat.com>
13955
13956 * Makefile.in (COMMON_SFILES): Add target-connection.c.
13957 * inferior.c (uiout_field_connection): New function.
13958 (print_inferior): Add new "connection-id" column.
13959 (add_inferior_command): Show connection number/string of added
13960 inferior.
13961 * process-stratum-target.h
13962 (process_stratum_target::connection_string): New virtual method.
13963 (process_stratum_target::connection_number): New field.
13964 * remote.c (remote_target::connection_string): New override.
13965 * target-connection.c: New file.
13966 * target-connection.h: New file.
13967 * target.c (decref_target): Remove process_stratum targets from
13968 the connection list.
13969 (target_stack::push): Add process_stratum targets to the
13970 connection list.
13971
4f837581
PA
139722020-01-10 Pedro Alves <palves@redhat.com>
13973
13974 Revert:
13975 2016-04-12 Pedro Alves <palves@redhat.com>
13976 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
13977 Remove references to name.
13978 * serial.h (struct serial) <name>: Delete.
13979
f4ec508e
PA
139802020-01-10 Pedro Alves <palves@redhat.com>
13981
13982 * gdbarch-selftests.c (register_to_value_test): Remove "target
13983 already pushed" check.
13984
5b6d1e4f
PA
139852020-01-10 Pedro Alves <palves@redhat.com>
13986 John Baldwin <jhb@FreeBSD.org>
13987
13988 * aarch64-linux-nat.c
13989 (aarch64_linux_nat_target::thread_architecture): Adjust.
13990 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
13991 (task_command_1): Likewise.
13992 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
13993 (aix_thread_target::wait, aix_thread_target::fetch_registers)
13994 (aix_thread_target::store_registers)
13995 (aix_thread_target::thread_alive): Adjust.
13996 * amd64-fbsd-tdep.c: Include "inferior.h".
13997 (amd64fbsd_get_thread_local_address): Pass down target.
13998 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
13999 thread's gdbarch instead of target_gdbarch.
14000 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
14001 get_last_target_status.
14002 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
14003 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
14004 inferiors.
14005 (update_inserted_breakpoint_locations): Skip if inferiors with no
14006 execution.
14007 (update_global_location_list): When handling moribund locations,
14008 find representative inferior for location's pspace, and use thread
14009 count of its process_stratum target.
14010 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
14011 * bsd-uthread.c (bsd_uthread_target::wait): Use
14012 as_process_stratum_target and adjust thread_change_ptid and
14013 add_thread calls.
14014 (bsd_uthread_target::update_thread_list): Use
14015 as_process_stratum_target and adjust find_thread_ptid,
14016 thread_change_ptid and add_thread calls.
14017 * btrace.c (maint_btrace_packet_history_cmd): Adjust
14018 find_thread_ptid call.
14019 * corelow.c (add_to_thread_list): Adjust add_thread call.
14020 (core_target_open): Adjust add_thread_silent and thread_count
14021 calls.
14022 (core_target::pid_to_str): Adjust find_inferior_ptid call.
14023 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
14024 * event-top.c (async_disconnect): Pop targets from all inferiors.
14025 * exec.c (add_target_sections): Push exec target on all inferiors
14026 sharing the program space.
14027 (remove_target_sections): Remove the exec target from all
14028 inferiors sharing the program space.
14029 (exec_on_vfork): New.
14030 * exec.h (exec_on_vfork): Declare.
14031 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
14032 Pass it down.
14033 (fbsd_nat_target::update_thread_list): Adjust.
14034 (fbsd_nat_target::resume): Adjust.
14035 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
14036 down.
14037 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
14038 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
14039 get_thread_arch_regcache call.
14040 * fork-child.c (gdb_startup_inferior): Pass target down to
14041 startup_inferior and set_executing.
14042 * gdbthread.h (struct process_stratum_target): Forward declare.
14043 (add_thread, add_thread_silent, add_thread_with_info)
14044 (in_thread_list): Add process_stratum_target parameter.
14045 (find_thread_ptid(inferior*, ptid_t)): New overload.
14046 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
14047 parameter.
14048 (all_threads()): Delete overload.
14049 (all_threads, all_non_exited_threads): Add process_stratum_target
14050 parameter.
14051 (all_threads_safe): Use brace initialization.
14052 (thread_count): Add process_stratum_target parameter.
14053 (set_resumed, set_running, set_stop_requested, set_executing)
14054 (threads_are_executing, finish_thread_state): Add
14055 process_stratum_target parameter.
14056 (switch_to_thread): Use is_current_thread.
14057 * i386-fbsd-tdep.c: Include "inferior.h".
14058 (i386fbsd_get_thread_local_address): Pass down target.
14059 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
14060 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
14061 have_inferiors check.
14062 * inf-ptrace.c (inf_ptrace_target::create_inferior)
14063 (inf_ptrace_target::attach): Adjust.
14064 * infcall.c (run_inferior_call): Adjust.
14065 * infcmd.c (run_command_1): Pass target to
14066 scoped_finish_thread_state.
14067 (proceed_thread_callback): Skip inferiors with no execution.
14068 (continue_command): Rename 'all_threads' local to avoid hiding
14069 'all_threads' function. Adjust get_last_target_status call.
14070 (prepare_one_step): Adjust set_running call.
14071 (signal_command): Use user_visible_resume_target. Compare thread
14072 pointers instead of inferior_ptid.
14073 (info_program_command): Adjust to pass down target.
14074 (attach_command): Mark target's 'thread_executing' flag.
14075 (stop_current_target_threads_ns): New, factored out from ...
14076 (interrupt_target_1): ... this. Switch inferior before making
14077 target calls.
14078 * inferior-iter.h
14079 (struct all_inferiors_iterator, struct all_inferiors_range)
14080 (struct all_inferiors_safe_range)
14081 (struct all_non_exited_inferiors_range): Filter on
14082 process_stratum_target too. Remove explicit.
14083 * inferior.c (inferior::inferior): Push dummy target on target
14084 stack.
14085 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
14086 Add process_stratum_target parameter, and pass it down.
14087 (have_live_inferiors): Adjust.
14088 (switch_to_inferior_and_push_target): New.
14089 (add_inferior_command, clone_inferior_command): Handle
14090 "-no-connection" parameter. Use
14091 switch_to_inferior_and_push_target.
14092 (_initialize_inferior): Mention "-no-connection" option in
14093 the help of "add-inferior" and "clone-inferior" commands.
14094 * inferior.h: Include "process-stratum-target.h".
14095 (interrupt_target_1): Use bool.
14096 (struct inferior) <push_target, unpush_target, target_is_pushed,
14097 find_target_beneath, top_target, process_target, target_at,
14098 m_stack>: New.
14099 (discard_all_inferiors): Delete.
14100 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
14101 (all_inferiors, all_non_exited_inferiors): Add
14102 process_stratum_target parameter.
14103 * infrun.c: Include "gdb_select.h" and <unordered_map>.
14104 (target_last_proc_target): New global.
14105 (follow_fork_inferior): Push target on new inferior. Pass target
14106 to add_thread_silent. Call exec_on_vfork. Handle target's
14107 reference count.
14108 (follow_fork): Adjust get_last_target_status call. Also consider
14109 target.
14110 (follow_exec): Push target on new inferior.
14111 (struct execution_control_state) <target>: New field.
14112 (user_visible_resume_target): New.
14113 (do_target_resume): Call target_async.
14114 (resume_1): Set target's threads_executing flag. Consider resume
14115 target.
14116 (commit_resume_all_targets): New.
14117 (proceed): Also consider resume target. Skip threads of inferiors
14118 with no execution. Commit resumtion in all targets.
14119 (start_remote): Pass current inferior to wait_for_inferior.
14120 (infrun_thread_stop_requested): Consider target as well. Pass
14121 thread_info pointer to clear_inline_frame_state instead of ptid.
14122 (infrun_thread_thread_exit): Consider target as well.
14123 (random_pending_event_thread): New inferior parameter. Use it.
14124 (do_target_wait): Rename to ...
14125 (do_target_wait_1): ... this. Add inferior parameter, and pass it
14126 down.
14127 (threads_are_resumed_pending_p, do_target_wait): New.
14128 (prepare_for_detach): Adjust calls.
14129 (wait_for_inferior): New inferior parameter. Handle it. Use
14130 do_target_wait_1 instead of do_target_wait.
14131 (fetch_inferior_event): Adjust. Switch to representative
14132 inferior. Pass target down.
14133 (set_last_target_status): Add process_stratum_target parameter.
14134 Save target in global.
14135 (get_last_target_status): Add process_stratum_target parameter and
14136 handle it.
14137 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
14138 (context_switch): Check inferior_ptid == null_ptid before calling
14139 inferior_thread().
14140 (get_inferior_stop_soon): Pass down target.
14141 (wait_one): Rename to ...
14142 (poll_one_curr_target): ... this.
14143 (struct wait_one_event): New.
14144 (wait_one): New.
14145 (stop_all_threads): Adjust.
14146 (handle_no_resumed, handle_inferior_event): Adjust to consider the
14147 event's target.
14148 (switch_back_to_stepped_thread): Also consider target.
14149 (print_stop_event): Update.
14150 (normal_stop): Update. Also consider the resume target.
14151 * infrun.h (wait_for_inferior): Remove declaration.
14152 (user_visible_resume_target): New declaration.
14153 (get_last_target_status, set_last_target_status): New
14154 process_stratum_target parameter.
14155 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
14156 process_stratum_target parameter, and use it.
14157 (clear_inline_frame_state (thread_info*)): New.
14158 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
14159 process_stratum_target parameter.
14160 (clear_inline_frame_state (thread_info*)): Declare.
14161 * linux-fork.c (delete_checkpoint_command): Pass target down to
14162 find_thread_ptid.
14163 (checkpoint_command): Adjust.
14164 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
14165 instead of just tweaking inferior_ptid.
14166 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
14167 (exit_lwp): Pass target down to find_thread_ptid.
14168 (attach_proc_task_lwp_callback): Pass target down to
14169 add_thread/set_running/set_executing.
14170 (linux_nat_target::attach): Pass target down to
14171 thread_change_ptid.
14172 (get_detach_signal): Pass target down to find_thread_ptid.
14173 Consider last target status's target.
14174 (linux_resume_one_lwp_throw, resume_lwp)
14175 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
14176 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
14177 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
14178 (linux_nat_target::async_wait_fd): New.
14179 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
14180 target down.
14181 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
14182 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
14183 * linux-thread-db.c (struct thread_db_info::process_target): New
14184 field.
14185 (add_thread_db_info): Save target.
14186 (get_thread_db_info): New process_stratum_target parameter. Also
14187 match target.
14188 (delete_thread_db_info): New process_stratum_target parameter.
14189 Also match target.
14190 (thread_from_lwp): Adjust to pass down target.
14191 (thread_db_notice_clone): Pass down target.
14192 (check_thread_db_callback): Pass down target.
14193 (try_thread_db_load_1): Always push the thread_db target.
14194 (try_thread_db_load, record_thread): Pass target down.
14195 (thread_db_target::detach): Pass target down. Always unpush the
14196 thread_db target.
14197 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
14198 target down. Always unpush the thread_db target.
14199 (find_new_threads_callback, thread_db_find_new_threads_2)
14200 (thread_db_target::update_thread_list): Pass target down.
14201 (thread_db_target::pid_to_str): Pass current inferior down.
14202 (thread_db_target::get_thread_local_address): Pass target down.
14203 (thread_db_target::resume, maintenance_check_libthread_db): Pass
14204 target down.
14205 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
14206 * procfs.c (procfs_target::procfs_init_inferior): Declare.
14207 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
14208 (procfs_init_inferior): Rename to ...
14209 (procfs_target::procfs_init_inferior): ... this and adjust.
14210 (procfs_target::create_inferior, procfs_notice_thread)
14211 (procfs_do_thread_registers): Adjust.
14212 * ppc-fbsd-tdep.c: Include "inferior.h".
14213 (ppcfbsd_get_thread_local_address): Pass down target.
14214 * proc-service.c (ps_xfer_memory): Switch current inferior and
14215 program space as well.
14216 (get_ps_regcache): Pass target down.
14217 * process-stratum-target.c
14218 (process_stratum_target::thread_address_space)
14219 (process_stratum_target::thread_architecture): Pass target down.
14220 * process-stratum-target.h
14221 (process_stratum_target::threads_executing): New field.
14222 (as_process_stratum_target): New.
14223 * ravenscar-thread.c
14224 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
14225 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
14226 down.
14227 * record-btrace.c (record_btrace_target::info_record): Adjust.
14228 (record_btrace_target::record_method)
14229 (record_btrace_target::record_is_replaying)
14230 (record_btrace_target::fetch_registers)
14231 (get_thread_current_frame_id, record_btrace_target::resume)
14232 (record_btrace_target::wait, record_btrace_target::stop): Pass
14233 target down.
14234 * record-full.c (record_full_wait_1): Switch to event thread.
14235 Pass target down.
14236 * regcache.c (regcache::regcache)
14237 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
14238 process_stratum_target parameter and handle it.
14239 (current_thread_target): New global.
14240 (get_thread_regcache): Add process_stratum_target parameter and
14241 handle it. Switch inferior before calling target method.
14242 (get_thread_regcache): Pass target down.
14243 (get_thread_regcache_for_ptid): Pass target down.
14244 (registers_changed_ptid): Add process_stratum_target parameter and
14245 handle it.
14246 (registers_changed_thread, registers_changed): Pass target down.
14247 (test_get_thread_arch_aspace_regcache): New.
14248 (current_regcache_test): Define a couple local test_target_ops
14249 instances and use them for testing.
14250 (readwrite_regcache): Pass process_stratum_target parameter.
14251 (cooked_read_test, cooked_write_test): Pass mock_target down.
14252 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
14253 (get_thread_arch_aspace_regcache): Add process_stratum_target
14254 parameter.
14255 (regcache::target): New method.
14256 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
14257 (regcache::registers_changed_ptid): Add process_stratum_target
14258 parameter.
14259 (regcache::m_target): New field.
14260 (registers_changed_ptid): Add process_stratum_target parameter.
14261 * remote.c (remote_state::supports_vCont_probed): New field.
14262 (remote_target::async_wait_fd): New method.
14263 (remote_unpush_and_throw): Add remote_target parameter.
14264 (get_current_remote_target): Adjust.
14265 (remote_target::remote_add_inferior): Push target.
14266 (remote_target::remote_add_thread)
14267 (remote_target::remote_notice_new_inferior)
14268 (get_remote_thread_info): Pass target down.
14269 (remote_target::update_thread_list): Skip threads of inferiors
14270 bound to other targets. (remote_target::close): Don't discard
14271 inferiors. (remote_target::add_current_inferior_and_thread)
14272 (remote_target::process_initial_stop_replies)
14273 (remote_target::start_remote)
14274 (remote_target::remote_serial_quit_handler): Pass down target.
14275 (remote_target::remote_unpush_target): New remote_target
14276 parameter. Unpush the target from all inferiors.
14277 (remote_target::remote_unpush_and_throw): New remote_target
14278 parameter. Pass it down.
14279 (remote_target::open_1): Check whether the current inferior has
14280 execution instead of checking whether any inferior is live. Pass
14281 target down.
14282 (remote_target::remote_detach_1): Pass down target. Use
14283 remote_unpush_target.
14284 (extended_remote_target::attach): Pass down target.
14285 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
14286 (remote_target::append_resumption): Pass down target.
14287 (remote_target::append_pending_thread_resumptions)
14288 (remote_target::remote_resume_with_hc, remote_target::resume)
14289 (remote_target::commit_resume): Pass down target.
14290 (remote_target::remote_stop_ns): Check supports_vCont_probed.
14291 (remote_target::interrupt_query)
14292 (remote_target::remove_new_fork_children)
14293 (remote_target::check_pending_events_prevent_wildcard_vcont)
14294 (remote_target::remote_parse_stop_reply)
14295 (remote_target::process_stop_reply): Pass down target.
14296 (first_remote_resumed_thread): New remote_target parameter. Pass
14297 it down.
14298 (remote_target::wait_as): Pass down target.
14299 (unpush_and_perror): New remote_target parameter. Pass it down.
14300 (remote_target::readchar, remote_target::remote_serial_write)
14301 (remote_target::getpkt_or_notif_sane_1)
14302 (remote_target::kill_new_fork_children, remote_target::kill): Pass
14303 down target.
14304 (remote_target::mourn_inferior): Pass down target. Use
14305 remote_unpush_target.
14306 (remote_target::core_of_thread)
14307 (remote_target::remote_btrace_maybe_reopen): Pass down target.
14308 (remote_target::pid_to_exec_file)
14309 (remote_target::thread_handle_to_thread_info): Pass down target.
14310 (remote_target::async_wait_fd): New.
14311 * riscv-fbsd-tdep.c: Include "inferior.h".
14312 (riscv_fbsd_get_thread_local_address): Pass down target.
14313 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
14314 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
14315 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
14316 Adjust.
14317 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
14318 * solib-svr4.c (enable_break): Pass down target.
14319 * spu-multiarch.c (parse_spufs_run): Pass down target.
14320 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
14321 * target-delegates.c: Regenerate.
14322 * target.c (g_target_stack): Delete.
14323 (current_top_target): Return the current inferior's top target.
14324 (target_has_execution_1): Refer to the passed-in inferior's top
14325 target.
14326 (target_supports_terminal_ours): Check whether the initial
14327 inferior was already created.
14328 (decref_target): New.
14329 (target_stack::push): Incref/decref the target.
14330 (push_target, push_target, unpush_target): Adjust.
14331 (target_stack::unpush): Defref target.
14332 (target_is_pushed): Return bool. Adjust to refer to the current
14333 inferior's target stack.
14334 (dispose_inferior): Delete, and inline parts ...
14335 (target_preopen): ... here. Only dispose of the current inferior.
14336 (target_detach): Hold strong target reference while detaching.
14337 Pass target down.
14338 (target_thread_name): Add assertion.
14339 (target_resume): Pass down target.
14340 (target_ops::beneath, find_target_at): Adjust to refer to the
14341 current inferior's target stack.
14342 (get_dummy_target): New.
14343 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
14344 has a thread running.
14345 (initialize_targets): Rename to ...
14346 (_initialize_target): ... this.
14347 * target.h: Include "gdbsupport/refcounted-object.h".
14348 (struct target_ops): Inherit refcounted_object.
14349 (target_ops::shortname, target_ops::longname): Make const.
14350 (target_ops::async_wait_fd): New method.
14351 (decref_target): Declare.
14352 (struct target_ops_ref_policy): New.
14353 (target_ops_ref): New typedef.
14354 (get_dummy_target): Declare function.
14355 (target_is_pushed): Return bool.
14356 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
14357 (all_matching_threads_iterator::all_matching_threads_iterator):
14358 Handle filter target.
14359 * thread-iter.h (struct all_matching_threads_iterator, struct
14360 all_matching_threads_range, class all_non_exited_threads_range):
14361 Filter by target too. Remove explicit.
14362 * thread.c (threads_executing): Delete.
14363 (inferior_thread): Pass down current inferior.
14364 (clear_thread_inferior_resources): Pass down thread pointer
14365 instead of ptid_t.
14366 (add_thread_silent, add_thread_with_info, add_thread): Add
14367 process_stratum_target parameter. Use it for thread and inferior
14368 searches.
14369 (is_current_thread): New.
14370 (thread_info::deletable): Use it.
14371 (find_thread_ptid, thread_count, in_thread_list)
14372 (thread_change_ptid, set_resumed, set_running): New
14373 process_stratum_target parameter. Pass it down.
14374 (set_executing): New process_stratum_target parameter. Pass it
14375 down. Adjust reference to 'threads_executing'.
14376 (threads_are_executing): New process_stratum_target parameter.
14377 Adjust reference to 'threads_executing'.
14378 (set_stop_requested, finish_thread_state): New
14379 process_stratum_target parameter. Pass it down.
14380 (switch_to_thread): Also match inferior.
14381 (switch_to_thread): New process_stratum_target parameter. Pass it
14382 down.
14383 (update_threads_executing): Reimplement.
14384 * top.c (quit_force): Pop targets from all inferior.
14385 (gdb_init): Don't call initialize_targets.
14386 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
14387 Declare.
14388 (windows_add_thread, windows_delete_thread): Adjust.
14389 (get_windows_debug_event): Rename to ...
14390 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
14391 * tracefile-tfile.c (tfile_target_open): Pass down target.
14392 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
14393 Forward declare.
14394 (switch_to_thread): Add process_stratum_target parameter.
14395 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
14396 parameter. Use it.
14397 (mi_on_resume): Pass target down.
14398 * nat/fork-inferior.c (startup_inferior): Add
14399 process_stratum_target parameter. Pass it down.
14400 * nat/fork-inferior.h (startup_inferior): Add
14401 process_stratum_target parameter.
14402 * python/py-threadevent.c (py_get_event_thread): Pass target down.
14403
75c6c844
PA
144042020-01-10 Pedro Alves <palves@redhat.com>
14405
14406 * remote.c (remote_target::start_remote): Don't set inferior_ptid
14407 directly. Instead find the first thread in the thread list and
14408 use switch_to_thread.
14409
78f2c40a
PA
144102020-01-10 Pedro Alves <palves@redhat.com>
14411
14412 * remote.c (remote_target::remote_add_inferior): Don't bind a
14413 process to the current inferior if the current inferior is already
14414 bound to a process.
14415
e7af6c70
TBA
144162020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14417 Pedro Alves <palves@redhat.com>
14418
14419 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
14420 If no process is specified, return null_ptid instead of
14421 inferior_ptid.
14422 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
14423 TARGET_WAITKIND_SIGNALLED with no pid.
14424
31ba933e
PA
144252020-01-10 Pedro Alves <palves@redhat.com>
14426
14427 * remote.c (first_remote_resumed_thread): New.
14428 (remote_target::wait_as): Use it as default event_ptid instead of
14429 inferior_ptid.
14430
735fc2ca
PA
144312020-01-10 Pedro Alves <palves@redhat.com>
14432
14433 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
14434
c17e02e1
PA
144352020-01-10 Pedro Alves <palves@redhat.com>
14436
14437 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
14438 not -1.
14439
ab1ddbcf
PA
144402020-01-10 Pedro Alves <palves@redhat.com>
14441
14442 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
14443 ptid to get_last_target_status.
14444 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
14445 ptid to get_last_target_status.
14446 * infcmd.c (continue_command): Don't pass a target_waitstatus to
14447 get_last_target_status.
14448 (info_program_command): Don't pass a target_waitstatus to
14449 get_last_target_status.
14450 * infrun.c (init_wait_for_inferior): Use
14451 nullify_last_target_wait_ptid.
14452 (get_last_target_status): Handle nullptr arguments.
14453 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
14454 (print_stop_event): Don't pass a ptid to get_last_target_status.
14455 (normal_stop): Don't pass a ptid to get_last_target_status.
14456 * infrun.h (get_last_target_status, set_last_target_status): Move
14457 comments here and update.
14458 (nullify_last_target_wait_ptid): Declare.
14459 * linux-fork.c (fork_load_infrun_state): Remove local extern
14460 declaration of nullify_last_target_wait_ptid.
14461 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
14462 to get_last_target_status.
14463
f3f8ece4
PA
144642020-01-10 Pedro Alves <palves@redhat.com>
14465
14466 * gdbthread.h (scoped_restore_current_thread)
14467 <dont_restore, restore, m_dont_restore>: Declare.
14468 * thread.c (thread_alive): Add assertion. Return bool.
14469 (switch_to_thread_if_alive): New.
14470 (prune_threads): Switch inferior/thread.
14471 (print_thread_info_1): Switch thread before calling target methods.
14472 (scoped_restore_current_thread::restore): New, factored out from
14473 ...
14474 (scoped_restore_current_thread::~scoped_restore_current_thread):
14475 ... this.
14476 (scoped_restore_current_thread::scoped_restore_current_thread):
14477 Add assertion.
14478 (thread_apply_all_command, thread_select): Use
14479 switch_to_thread_if_alive.
14480 * infrun.c (proceed, restart_threads, handle_signal_stop)
14481 (switch_back_to_stepped_thread): Switch current thread before
14482 calling target methods.
14483
db2d40f7
PA
144842020-01-10 Pedro Alves <palves@redhat.com>
14485
14486 * inferior.c (switch_to_inferior_no_thread): New function,
14487 factored out from ...
14488 (inferior_command): ... here.
14489 * inferior.h (switch_to_inferior_no_thread): Declare.
14490 * mi/mi-main.c (run_one_inferior): Use
14491 switch_to_inferior_no_thread.
14492
bd420a2d
PA
144932020-01-10 Pedro Alves <palves@redhat.com>
14494
14495 * infcmd.c (kill_command): Remove dead code.
14496
ddf5db90
PA
144972020-01-10 Pedro Alves <palves@redhat.com>
14498
14499 * remote.c (remote_target::mourn_inferior): No longer check
14500 whether the target is running.
14501
5018ce90
PA
145022020-01-10 Pedro Alves <palves@redhat.com>
14503
14504 * corelow.c (core_target::has_execution): Change parameter type to
14505 inferior pointer.
14506 * inferior.c (number_of_live_inferiors): Use
14507 inferior::has_execution instead of target_has_execution_1.
14508 * inferior.h (inferior::has_execution): New.
14509 * linux-thread-db.c (thread_db_target::update_thread_list): Use
14510 inferior::has_execution instead of target_has_execution_1.
14511 * process-stratum-target.c
14512 (process_stratum_target::has_execution): Change parameter type to
14513 inferior pointer. Check the inferior's PID instead of
14514 inferior_ptid.
14515 * process-stratum-target.h
14516 (process_stratum_target::has_execution): Change parameter type to
14517 inferior pointer.
14518 * record-full.c (record_full_core_target::has_execution): Change
14519 parameter type to inferior pointer.
14520 * target.c (target_has_execution_1): Change parameter type to
14521 inferior pointer.
14522 (target_has_execution_current): Adjust.
14523 * target.h (target_ops::has_execution): Change parameter type to
14524 inferior pointer.
14525 (target_has_execution_1): Change parameter type to inferior
14526 pointer. Change return type to bool.
14527 * tracefile.h (tracefile_target::has_execution): Change parameter
14528 type to inferior pointer.
14529
74375d18
PA
145302020-01-10 Pedro Alves <palves@redhat.com>
14531
14532 * exceptions.c (print_flush): Remove current_top_target() check.
14533
acdf84a6
PA
145342020-01-10 Pedro Alves <palves@redhat.com>
14535
14536 * remote.c (show_remote_exec_file): Show the current inferior's
14537 exec-file instead of the command variable's value.
14538
ec506636
PA
145392020-01-10 Pedro Alves <palves@redhat.com>
14540
14541 * record-full.c (record_full_resume_ptid): New global.
14542 (record_full_target::resume): Set it.
14543 (record_full_wait_1): Use record_full_resume_ptid instead of
14544 inferior_ptid.
14545
873657b9
PA
145462020-01-10 Pedro Alves <palves@redhat.com>
14547
14548 * gdbthread.h (scoped_restore_current_thread)
14549 <dont_restore, restore, m_dont_restore>: Declare.
14550 * thread.c (thread_alive): Add assertion. Return bool.
14551 (switch_to_thread_if_alive): New.
14552 (prune_threads): Switch inferior/thread.
14553 (print_thread_info_1): Switch thread before calling target methods.
14554 (scoped_restore_current_thread::restore): New, factored out from
14555 ...
14556 (scoped_restore_current_thread::~scoped_restore_current_thread):
14557 ... this.
14558 (scoped_restore_current_thread::scoped_restore_current_thread):
14559 Add assertion.
14560 (thread_apply_all_command, thread_select): Use
14561 switch_to_thread_if_alive.
14562
7f0ae84c
GB
145632020-01-10 George Barrett <bob@bob131.so>
14564
14565 * stap-probe.c (stap_modify_semaphore): Don't check for null
14566 semaphores.
14567 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
14568 for null semaphores.
14569
f5a7c406
AB
145702020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
14571
14572 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
14573 all source windows, and maintain horizontal scroll status while
14574 doing so.
14575
9ae6bf64
TT
145762020-01-09 Tom Tromey <tom@tromey.com>
14577
14578 PR tui/18932:
14579 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
14580 update_source_window, not print_source_lines.
14581
b2efe70c
AB
145822020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
14583
14584 * tui/tui.c (tui_enable): Register tui hooks after calling
14585 tui_display_main.
14586
5f23a082
CB
145872020-01-09 Christian Biesinger <cbiesinger@google.com>
14588
14589 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
14590
3061113b
SM
145912020-01-08 Simon Marchi <simon.marchi@efficios.com>
14592
14593 * thread.c (print_thread_info_1): Fix indentation.
14594
57d75002
CB
145952020-01-09 Christian Biesinger <cbiesinger@google.com>
14596
14597 * symtab.c (general_symbol_info::compute_and_set_names): Move the
14598 unique_xmalloc_ptr outside the if to always free the demangled name.
14599
6a053cb1
TT
146002020-01-08 Tom Tromey <tromey@adacore.com>
14601
14602 * xcoffread.c (enter_line_range, read_xcoff_symtab)
14603 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
14604 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
14605 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
14606 Remove.
14607 (section_offsets): New typedef.
14608 * symtab.c (fixup_section, get_msymbol_address): Update.
14609 * symmisc.c (dump_msymbols): Update.
14610 * symfile.h (relative_addr_info_to_section_offsets)
14611 (symfile_map_offsets_to_segments): Update.
14612 * symfile.c (build_section_addr_info_from_objfile)
14613 (init_objfile_sect_indices): Update.
14614 (struct place_section_arg): Change type of "offsets".
14615 (place_section): Update.
14616 (relative_addr_info_to_section_offsets): Change type of
14617 "section_offsets". Remove "num_sections" parameter.
14618 (default_symfile_offsets, syms_from_objfile_1)
14619 (set_objfile_default_section_offset): Update.
14620 (reread_symbols): No need to preserve section offsets by hand.
14621 (symfile_map_offsets_to_segments): Change type of "offsets".
14622 * stap-probe.c (relocate_address): Update.
14623 * stabsread.h (process_one_symbol): Update.
14624 * solib-target.c (struct lm_info_target) <offsets>: Change type.
14625 (solib_target_relocate_section_addresses): Update.
14626 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
14627 Update.
14628 * solib-frv.c (frv_relocate_main_executable): Update.
14629 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
14630 * solib-aix.c (solib_aix_get_section_offsets): Change return
14631 type.
14632 (solib_aix_solib_create_inferior_hook): Update.
14633 * remote.c (remote_target::get_offsets): Update.
14634 * psymtab.c (find_pc_sect_psymtab): Update.
14635 * psympriv.h (struct partial_symbol) <address, text_low,
14636 text_high>: Update.
14637 * objfiles.h (obj_section_offset): Update.
14638 (struct objfile) <section_offsets>: Change type.
14639 <num_sections>: Remove.
14640 (objfile_relocate): Update.
14641 * objfiles.c (entry_point_address_query): Update
14642 (relocate_one_symbol): Change type of "section_offsets".
14643 (objfile_relocate1, objfile_relocate1): Change type of
14644 "new_offsets".
14645 (objfile_rebase1): Update.
14646 * mipsread.c (mipscoff_symfile_read): Update.
14647 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
14648 parameter.
14649 * mdebugread.c (parse_symbol): Change type of "section_offsets".
14650 (parse_external, psymtab_to_symtab_1): Update.
14651 * machoread.c (macho_symfile_offsets): Update.
14652 * ia64-tdep.c (ia64_find_unwind_table): Update.
14653 * hppa-tdep.c (read_unwind_info): Update.
14654 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
14655 * dwarf2read.c (create_addrmap_from_index)
14656 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
14657 (process_psymtab_comp_unit_reader, add_partial_symbol)
14658 (add_partial_subprogram, process_full_comp_unit)
14659 (read_file_scope, read_func_scope, read_lexical_block_scope)
14660 (read_call_site_scope, dwarf2_rnglists_process)
14661 (dwarf2_ranges_process, dwarf2_ranges_read)
14662 (dwarf_decode_lines_1, var_decode_location, new_symbol)
14663 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
14664 Update.
14665 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
14666 Update.
14667 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
14668 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
14669 (process_one_symbol): Change type of "section_offsets".
14670 * ctfread.c (get_objfile_text_range): Update.
14671 * coffread.c (coff_symtab_read, enter_linenos)
14672 (process_coff_symbol): Update.
14673 * coff-pe-read.c (add_pe_forwarded_sym): Update.
14674 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
14675
456e800a
TT
146762020-01-08 Tom Tromey <tromey@adacore.com>
14677
14678 * dwarf2read.c (parse_macro_definition): Use std::string.
14679 (parse_macro_definition): Likewise.
14680
6dfa2fc2
TT
146812020-01-08 Tom Tromey <tromey@adacore.com>
14682
14683 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
14684 (ATTR_ALLOC_CHUNK): Remove.
14685
421d1616
TT
146862020-01-08 Tom Tromey <tromey@adacore.com>
14687
14688 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
14689
43816ebc
TT
146902020-01-08 Tom Tromey <tromey@adacore.com>
14691
14692 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
14693 (dwarf2_compute_name, open_dwo_file): Likewise.
14694 (process_enumeration_scope): Use std::vector.
14695 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
14696 (partial_die_info::fixup, dwarf2_start_subfile)
14697 (guess_full_die_structure_name, dwarf2_name): Likewise.
14698 (determine_prefix): Update.
14699 (guess_full_die_structure_name): Make return type const.
14700 (partial_die_full_name): Return unique_xmalloc_ptr.
14701 (DW_FIELD_ALLOC_CHUNK): Remove.
14702
4212d509
TT
147032020-01-07 Tom Tromey <tromey@adacore.com>
14704
14705 PR build/24937:
14706 * stap-probe.c (class stap_static_probe_ops): Add constructor.
14707
06a6207a
JT
147082020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
14709
14710 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
14711
153d79c4
AB
147122020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
14713
14714 * stack.c (print_frame_info): Move disassemble_next_line code
14715 inside source_print block.
14716
66182876
EZ
147172020-01-06 Eli Zaretskii <eliz@gnu.org>
14718
14719 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
14720 gdb/signals.h, as we are now using native signal symbols.
14721
cbfa8581
SV
147222020-01-06 Shahab Vahedi <shahab@synopsys.com>
14723
14724 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
14725 overflow by an early check of content vs threshold.
aac66a4c 14726 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
14727 Likewise.
14728
3f602821
EZ
147292020-01-06 Eli Zaretskii <eliz@gnu.org>
14730
14731 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
14732
a08c904d
JT
147332020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
14734
14735 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
14736 export table if no section contains it's RVA.
14737
89a65580
EZ
147382020-01-06 Eli Zaretskii <eliz@gnu.org>
14739
14740 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
14741
8b7fcda2
HD
147422020-01-06 Hannes Domani <ssbssa@yahoo.de>
14743
14744 * source.c (print_source_lines_base): Set last_line_listed.
14745
a61b4f69
SV
147462020-01-06 Shahab Vahedi <shahab@synopsys.com>
14747
14748 * tui/tui-disasm.c: Remove trailing spaces.
14749
559e7e50
EZ
147502020-01-06 Eli Zaretskii <eliz@gnu.org>
14751 Pedro Alves <palves@redhat.com>
14752
14753 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
14754 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
14755 (windows_gdb_signal_to_target): New function, uses the above
14756 enumeration to convert GDB internal signal codes to equivalent
14757 Windows codes.
14758 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
14759 * windows-nat.c: Include "gdb_wait.h".
14760 (get_windows_debug_event): Extract the fatal exception from the
14761 exit status and convert to the equivalent Posix signal number.
14762 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
14763 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
14764 * gdbsupport/gdb_wait.c: New file, implements
14765 windows_status_to_termsig.
14766 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
14767 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
14768
f2302a34
AB
147692020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
14770
14771 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
14772 show_layout.
14773
6a5206eb
LM
147742020-01-05 Luis Machado <luis.machado@linaro.org>
14775
14776 * aarch64-linux-nat.c
14777 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
14778 and bfd_mach_aarch64.
14779
6ec1d75e
PW
147802020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14781
14782 * ui-file.c (stdio_file::can_emit_style_escape)
14783 (tee_file::can_emit_style_escape): Ensure style is used also on
14784 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
14785 to gdb_stdout.
14786 * main.c (set_gdb_data_directory): Use file style to output the
14787 warning that the given pathname is not a directory.
14788 * top.c (show_history_filename, gdb_safe_append_history)
14789 (show_gdb_datadir): Use file style.
14790
44f81a76
HD
147912020-01-03 Hannes Domani <ssbssa@yahoo.de>
14792
14793 * solib-target.c (struct lm_info_target):
14794 Change offsets to be a unique_xmalloc_ptr.
14795 (solib_target_relocate_section_addresses): Update.
14796
25057eb0
HD
147972020-01-03 Hannes Domani <ssbssa@yahoo.de>
14798
14799 * windows-nat.c (windows_clear_solib): Free so_list linked list.
14800
6e2118f5
BE
148012020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
14802
14803 * MAINTAINERS (Write After Approval): Add myself.
14804
8133c7dc
LM
148052020-01-02 Luis Machado <luis.machado@linaro.org>
14806
14807 * proc-service.c (get_ps_regcache): Remove reference to obsolete
14808 Cell BE architecture.
14809 * target.h (struct target_ops) <thread_architecture>: Likewise.
14810
48189bec
HD
148112020-01-01 Hannes Domani <ssbssa@yahoo.de>
14812
14813 * Makefile.in: Use INSTALL_PROGRAM_ENV.
14814
ead1063b
HD
148152020-01-01 Hannes Domani <ssbssa@yahoo.de>
14816
14817 * MAINTAINERS (Write After Approval): Add myself.
14818
e5d78223
JB
148192020-01-01 Joel Brobecker <brobecker@adacore.com>
14820
14821 * gdbarch.sh: Update copyright year range of generated files.
14822
b811d2c2
JB
148232020-01-01 Joel Brobecker <brobecker@adacore.com>
14824
14825 Update copyright year range in all GDB files.
14826
5f4def5c
JB
148272020-01-01 Joel Brobecker <brobecker@adacore.com>
14828
14829 * copyright.py: Convert to Python 3.
14830
51fd4002
JB
148312020-01-01 Joel Brobecker <brobecker@adacore.com>
14832
14833 * copyright.py: Adapt after move of gnulib directory from gdb
14834 directory to toplevel directory.
14835
5fb651f2
JB
148362020-01-01 Joel Brobecker <brobecker@adacore.com>
14837
14838 * copyright.py (main): Exit if run from the wrong directory.
14839
5dd8bf88
JB
148402020-01-01 Joel Brobecker <brobecker@adacore.com>
14841
14842 * top.c (print_gdb_version): Change copyright year to 2020.
14843
9f71dacb 148442020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 14845
9f71dacb 14846 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 14847
9f71dacb 14848For older changes see ChangeLog-2019.
c906108c
SS
14849\f
14850Local Variables:
14851mode: change-log
14852left-margin: 8
14853fill-column: 74
14854version-control: never
57da7796 14855coding: utf-8
c906108c 14856End:
This page took 3.109639 seconds and 4 git commands to generate.