]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Add ChangeLog for "Add NetBSD/aarch64 gdbserver support"
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
64c03bdb
SM
12020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
2
3 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
4 (_initialize_break_catch_sig): Don't allocate array.
5
31a8f60f
AB
62020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
7
8 * symtab.c (find_pc_line): Return unmapped addresses when the
9 requested address is also unmapped.
10
9e6dbd8b
SM
112020-10-05 Simon Marchi <simon.marchi@efficios.com>
12
13 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
14 tui/tui-out.h.
15
a1d217e8
SM
162020-10-05 Simon Marchi <simon.marchi@efficios.com>
17
18 * amd64-windows-tdep.c (amd64_windows_return_value): Use
19 type::is_vector instead of TYPE_VECTOR.
20
7d144117
SM
212020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
22
23 * auto-load.c (auto_load_objfile_script_1): Don't use
24 debugfile_holder as temporary variable when stripping drive
25 letter.
26
cd096ec8
HD
272020-10-05 Hannes Domani <ssbssa@yahoo.de>
28
29 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
30 Add TYPE_CODE_COMPLEX.
31 (amd64_windows_return_value): Fix types returned via XMM0.
32
b58e7f72
AH
332020-10-05 Alan Hayward <alan.hayward@arm.com>
34
35 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
36 AArch64/ARM maintainers.
37
8d378f27
SM
382020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
39
40 * NEWS: Mention set/show debug event-loop.
41
d5519913
TT
422020-10-02 Tom Tromey <tromey@adacore.com>
43
44 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
45 REG_EXTENDED.
46
18b67edc
SM
472020-10-02 Simon Marchi <simon.marchi@efficios.com>
48
49 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
50 * procfs.c (procfs_inferior_created): Remove.
51 (_initialize_procfs): Don't register procfs_inferior_created.
52
6b01403b
SM
532020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
54
55 * async-event.c (invoke_async_signal_handlers): Add debug
56 print.
57 (check_async_event_handlers): Likewise.
58 * event-top.c (show_debug_event_loop): New function.
59 (_initialize_event_top): Register "set debug event-loop"
60 setting.
61
ba988419
SM
622020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
63
64 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
65 * debug.h: Remove.
66 * infrun.c: Include gdbsupport/common-debug.h.
67 * linux-nat.c: Likewise.
68
db20ebdf
SM
692020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
70
71 * async-event.h (create_async_signal_handler): Add name
72 parameter.
73 (create_async_event_handler): Likewise.
74 * async-event.c (struct async_signal_handler) <name>: New field.
75 (struct async_event_handler) <name>: New field.
76 (create_async_signal_handler): Assign name.
77 (create_async_event_handler): Assign name.
78 * event-top.c (async_init_signals): Pass name when creating
79 handler.
80 * infrun.c (_initialize_infrun): Likewise.
81 * record-btrace.c (record_btrace_push_target): Likewise.
82 * record-full.c (record_full_open): Likewise.
83 * remote-notif.c (remote_notif_state_allocate): Likewise.
84 * remote.c (remote_target::open_1): Likewise.
85 * tui/tui-win.c (tui_initialize_win): Likewise.
86
2554f6f5
SM
872020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
88
89 * async-event.c (initialize_async_signal_handlers): Pass name to
90 add_file_handler
91 * event-top.c (ui_register_input_event_handler): Likewise.
92 * linux-nat.c (linux_nat_target::async): Likewise.
93 * run-on-main-thread.c (_initialize_run_on_main_thread):
94 Likewise
95 * ser-base.c (reschedule): Likewise.
96 (ser_base_async): Likewise.
97 * tui/tui-io.c: Likewise.
98 * top.h (struct ui) <num>: New field.
99 * top.c (highest_ui_num): New variable.
100 (ui::ui): Initialize num.
101
a7aba266
SM
1022020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
103
104 * observable.h <inferior_created>: Remove parameters. Update all
105 listeners.
106 * inferior.h (post_create_inferior): Remove target parameter.
107 Update all callers.
108
048fde1e 1092020-10-02 Nitika Achra <Nitika.Achra@amd.com>
110
111 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
112 and DW_MACRO_undef_strx.
113 (dwarf_decode_macros): Likewise
114 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
115 which is the value of DW_AT_str_offsets_base.
116 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
117 str_offsets_base.
118
064280be
KR
1192020-10-01 Kamil Rytarowski <n54@gmx.com>
120
121 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
122
6ff33035
KR
1232020-10-01 Kamil Rytarowski <n54@gmx.com>
124
125 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
126 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
127
1eb6eb79
KR
1282020-10-01 Kamil Rytarowski <n54@gmx.com>
129
130 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
131
95eb9e54
TV
1322020-09-30 Tom de Vries <tdevries@suse.de>
133
134 PR symtab/26683
135 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
136
cae21f8e
TT
1372020-09-30 Tom Tromey <tromey@adacore.com>
138
139 * dwarf2/read.c (handle_variant): Use constant_value.
140
529908cb
TT
1412020-09-29 Tom Tromey <tom@tromey.com>
142
143 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
144 (read_file_scope, dwarf2_get_pc_bounds)
145 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
146 (read_structure_type, handle_struct_member_die)
147 (read_enumeration_type, read_array_type, read_set_type)
148 (read_tag_pointer_type, read_tag_reference_type)
149 (read_subroutine_type, read_base_type, read_subrange_type)
150 (read_full_die_1, partial_die_info::read)
151 (partial_die_info::read, by, new_symbol)
152 (dwarf2_const_value_data, dwarf2_const_value_attr)
153 (dump_die_shallow, dwarf2_fetch_constant_bytes)
154 (prepare_one_comp_unit): Update.
155 * dwarf2/attribute.h (DW_UNSND): Remove.
156
c45bc3f8
TT
1572020-09-29 Tom Tromey <tom@tromey.com>
158
159 * dwarf2/read.c (read_func_scope, prototyped_function_p)
160 (read_subroutine_type, partial_die_info::read)
161 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
162 (dwarf2_add_member_fn): Update.
163 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
164 * dwarf2/attribute.c (attribute::as_boolean): New method.
165
23dca5c3
TT
1662020-09-29 Tom Tromey <tom@tromey.com>
167
168 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
169 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
170 method.
171 * dwarf2/attribute.c (attribute::as_virtuality): New method.
172
52c14d11
TT
1732020-09-29 Tom Tromey <tom@tromey.com>
174
175 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
176 the attribute's form.
177
e8e5c158
TT
1782020-09-29 Tom Tromey <tom@tromey.com>
179
180 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
181 (dwarf2_add_member_fn): Update.
182 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
183 * dwarf2/attribute.c (attribute::defaulted): New method, from
184 is_valid_DW_AT_defaulted.
185
d4df075e
TT
1862020-09-29 Tom Tromey <tom@tromey.com>
187
188 * dwarf2/read.c (dw2_get_file_names_reader)
189 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
190 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
191 (dwarf2_symbol_mark_computed): Use as_unsigned.
192 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
193 method.
194 <form_is_section_offset>: Update comment.
195
bf23a268
TT
1962020-09-29 Tom Tromey <tom@tromey.com>
197
198 * dwarf2/read.c (dwarf2_access_attribute): Rename from
199 dwarf2_default_access_attribute. Look up attribute.
200 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
201 Update.
202
7a5f294d
TT
2032020-09-29 Tom Tromey <tom@tromey.com>
204
205 * dwarf2/read.c (skip_one_die): Update.
206 (read_full_die_1): Change how reprocessing is done.
207 (partial_die_info::read): Update.
208 (read_attribute_value): Remove need_reprocess parameter.
209 (read_attribute): Likewise.
210 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
211 New method.
212
36d378cf
TT
2132020-09-29 Tom Tromey <tom@tromey.com>
214
215 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
216 (dwarf2_const_value_attr, dump_die_shallow)
217 (dwarf2_fetch_constant_bytes): Update.
218 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
219 comment.
220 <set_address>: New method.
221 (DW_ADDR): Remove.
222 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
223 (attribute::as_string, attribute::as_address): Add assert.
224
fe56917a
TT
2252020-09-29 Tom Tromey <tom@tromey.com>
226
227 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
228 (read_attribute_reprocess, read_attribute_value): Update.
229 (read_attribute): Clear requires_reprocessing.
230 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
231 form_requires_reprocessing>: New methods.
232 <string_init>: Clear requires_reprocessing.
233 <set_unsigned_reprocess>: New method.
234 <name>: Shrink by one bit.
235 <requires_reprocessing>: New member.
236 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
237 method.
238
414ad644
TT
2392020-09-29 Tom Tromey <tom@tromey.com>
240
241 * dwarf2/read.c (read_attribute_value): Update.
242 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
243 set_unsigned>: New methods.
244 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
245
1bc397c5
TT
2462020-09-29 Tom Tromey <tom@tromey.com>
247
248 * dwarf2/read.c (get_alignment, read_array_order)
249 (read_attribute_value, dwarf2_const_value_attr)
250 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
251 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
252 New methods.
253 (DW_SND): Remove.
254
630ed6b9
TT
2552020-09-29 Tom Tromey <tom@tromey.com>
256
257 * dwarf2/read.c (read_attribute_value, lookup_die_type)
258 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
259 Update.
260 * dwarf2/attribute.h (struct attribute) <as_signature,
261 set_signature>: New methods.
262 (DW_SIGNATURE): Remove.
263
9d2246fc
TT
2642020-09-29 Tom Tromey <tom@tromey.com>
265
266 * dwarf2/read.c (read_call_site_scope)
267 (handle_data_member_location, dwarf2_add_member_fn)
268 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
269 (partial_die_info::read, read_attribute_value)
270 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
271 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
272 (dwarf2_symbol_mark_computed): Update.
273 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
274 methods.
275 (DW_BLOCK): Remove.
276 * dwarf2/attribute.c (attribute::form_is_block): Add
277 DW_FORM_data16.
278
c6481205
TT
2792020-09-29 Tom Tromey <tom@tromey.com>
280
281 * dwarf2/read.c (read_cutu_die_from_dwo)
282 (read_attribute_reprocess, read_attribute_value, read_attribute)
283 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
284 (dwarf2_fetch_constant_bytes): Update.
285 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
286 <set_string_noncanonical, set_string_canonical>: New methods.
287 <string_is_canonical>: Update comment.
288 <canonical_string_p>: Add assert.
289 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
290 * dwarf2/attribute.c (attribute::form_is_string): New method.
291 (attribute::string): Use it.
292
3b64bf15
TT
2932020-09-29 Tom Tromey <tom@tromey.com>
294
295 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
296 (dump_die_shallow): Use canonical_string_p.
297 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
298 method.
299
2c830f54
TT
3002020-09-29 Tom Tromey <tom@tromey.com>
301
302 * dwarf2/read.c (partial_die_info::read)
303 (dwarf2_const_value_attr, anonymous_struct_prefix, )
304 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
305 attribute::as_string.
306
6c412691
TT
3072020-09-29 Tom Tromey <tom@tromey.com>
308
309 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
310 DW_ADDR.
311 (attribute::string): Don't use DW_STRING.
312 (attribute::get_ref_die_offset): Don't use DW_UNSND.
313 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
314
95f982e5
TT
3152020-09-29 Tom Tromey <tom@tromey.com>
316
317 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
318 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
319 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
320 * dwarf2/attribute.h (struct attribute): Rename methods.
321 * dwarf2/attribute.c (attribute::as_address): Rename from
322 value_as_address.
323 (attribute::as_string): Rename from value_as_string.
324
f800b00e
TT
3252020-09-29 Tom Tromey <tom@tromey.com>
326
327 * dwarf2/read.c (partial_die_info::read) <case
328 DW_AT_linkage_name>: Use value_as_string.
329 (dwarf2_string_attr): Use value_as_string.
330 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
331 method.
332 * dwarf2/attribute.c (attribute::value_as_string): New method.
333
de38d64a
PA
3342020-09-29 Pedro Alves <pedro@palves.net>
335
336 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
337 defined before using '#pragma GCC diagnostic' instead of checking
338 __clang__.
339
9aed480c
TT
3402020-09-28 Tom Tromey <tom@tromey.com>
341
342 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
343 (handle_signal_stop): Update.
344 * procfs.c (procfs_target::insert_watchpoint): Update.
345 * target.h (target_have_steppable_watchpoint): Now a function.
346
8a3ecb79
TT
3472020-09-28 Tom Tromey <tom@tromey.com>
348
349 * infrun.c (set_schedlock_func): Update.
350 * target.h (target_can_lock_scheduler): Now a function.
351
55f6301a
TT
3522020-09-28 Tom Tromey <tom@tromey.com>
353
354 * inferior.h (class inferior) <has_execution>: Update.
355 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
356 * valops.c (find_function_in_inferior)
357 (value_allocate_space_in_inferior): Update.
358 * top.c (kill_or_detach): Update.
359 * target.c (target_preopen, set_target_permissions): Update.
360 (target_has_execution_current): Remove.
361 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
362 Update.
363 * solib.c (update_solib_list, reload_shared_libraries): Update.
364 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
365 * solib-dsbt.c (enable_break): Update.
366 * score-tdep.c (score7_fetch_inst): Update.
367 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
368 Update.
369 * remote.c (remote_target::start_remote)
370 (remote_target::remote_check_symbols, remote_target::open_1)
371 (remote_target::remote_detach_1, remote_target::verify_memory)
372 (remote_target::xfer_partial, remote_target::read_description)
373 (remote_target::get_min_fast_tracepoint_insn_len): Update.
374 * record-full.c (record_full_open_1): Update.
375 * record-btrace.c (record_btrace_target_open): Update.
376 * objc-lang.c (lookup_objc_class, lookup_child_selector)
377 (value_nsstring): Update.
378 * linux-thread-db.c (add_thread_db_info)
379 (thread_db_find_new_threads_silently, check_thread_db_callback)
380 (try_thread_db_load_1, record_thread): Update.
381 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
382 Update.
383 * linux-fork.c (checkpoint_command): Update.
384 * infrun.c (set_non_stop, set_observer_mode)
385 (check_multi_target_resumption, for_each_just_stopped_thread)
386 (maybe_remove_breakpoints, normal_stop)
387 (class infcall_suspend_state): Update.
388 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
389 (info_program_command, attach_command): Update.
390 * infcall.c (call_function_by_hand_dummy): Update.
391 * inf-loop.c (inferior_event_handler): Update.
392 * gcore.c (gcore_command, derive_heap_segment): Update.
393 * exec.c (exec_file_command): Update.
394 * eval.c (evaluate_subexp): Update.
395 * compile/compile.c (compile_to_object): Update.
396 * cli/cli-dump.c (restore_command): Update.
397 * breakpoint.c (update_watchpoint)
398 (update_inserted_breakpoint_locations)
399 (insert_breakpoint_locations, get_bpstat_thread): Update.
400 * target.h (target_has_execution): Remove macro.
401 (target_has_execution_current): Don't declare.
402 (target_has_execution): Rename from target_has_execution_1. Add
403 argument default.
404
05374cfd
TT
4052020-09-28 Tom Tromey <tom@tromey.com>
406
407 * mi/mi-main.c (exec_reverse_continue)
408 (mi_cmd_list_target_features): Update.
409 * infrun.c (set_exec_direction_func): Update.
410 * target.c (default_execution_direction): Update.
411 * reverse.c (exec_reverse_once): Update.
412 * target.h (target_can_execute_reverse): Now a function.
413
9dccd06e
TT
4142020-09-28 Tom Tromey <tom@tromey.com>
415
416 * tui/tui-regs.c (tui_get_register)
417 (tui_data_window::show_registers): Update.
418 * thread.c (scoped_restore_current_thread::restore)
419 (scoped_restore_current_thread::scoped_restore_current_thread):
420 Update.
421 * regcache-dump.c (regcache_print): Update.
422 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
423 Update.
424 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
425 * mep-tdep.c (current_me_module, current_options): Update.
426 * linux-thread-db.c (thread_db_load): Update.
427 * infcmd.c (registers_info, info_vector_command)
428 (info_float_command): Update.
429 * ia64-tdep.c (ia64_frame_prev_register)
430 (ia64_sigtramp_frame_prev_register): Update.
431 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
432 * gcore.c (derive_stack_segment): Update.
433 * frame.c (get_current_frame, has_stack_frames): Update.
434 * findvar.c (language_defn::read_var_value): Update.
435 * arm-tdep.c (arm_pc_is_thumb): Update.
436 * target.c (target_has_registers): Rename from
437 target_has_registers_1.
438 * target.h (target_has_registers): Remove macro.
439 (target_has_registers): Rename from target_has_registers_1.
440
841de120
TT
4412020-09-28 Tom Tromey <tom@tromey.com>
442
443 * windows-tdep.c (tlb_make_value): Update.
444 * tui/tui-regs.c (tui_data_window::show_registers): Update.
445 * thread.c (scoped_restore_current_thread::restore)
446 (scoped_restore_current_thread::scoped_restore_current_thread)
447 (thread_command): Update.
448 * stack.c (backtrace_command_1, frame_apply_level_command)
449 (frame_apply_all_command, frame_apply_command): Update.
450 * infrun.c (siginfo_make_value, restore_infcall_control_state):
451 Update.
452 * gcore.c (derive_stack_segment): Update.
453 * frame.c (get_current_frame, has_stack_frames): Update.
454 * auxv.c (info_auxv_command): Update.
455 * ada-tasks.c (ada_build_task_list): Update.
456 * target.c (target_has_stack): Rename from target_has_stack_1.
457 * target.h (target_has_stack): Remove macro.
458 (target_has_stack): Rename from target_has_stack_1.
459
a739972c
TT
4602020-09-28 Tom Tromey <tom@tromey.com>
461
462 * target.c (target_has_memory): Rename from target_has_memory_1.
463 * tui/tui-regs.c (tui_data_window::show_registers): Update.
464 * thread.c (scoped_restore_current_thread::restore)
465 (scoped_restore_current_thread::scoped_restore_current_thread):
466 Update.
467 * frame.c (get_current_frame, has_stack_frames): Update.
468 * target.h (target_has_memory): Remove macro.
469 (target_has_memory): Rename from target_has_memory_1.
470
5b8a4776
TT
4712020-09-28 Tom Tromey <tom@tromey.com>
472
473 * target.c (target_has_all_memory_1): Remove.
474 * target.h (target_has_all_memory): Remove define.
475 (target_has_all_memory_1): Don't declare.
476
bd356ec6
SM
4772020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
478
479 * ser-base.c: Adjust comments formatting.
480
2c72d5e5
TT
4812020-09-27 Tom Tromey <tom@tromey.com>
482
483 PR tui/25342:
484 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
485
35a98237
TT
4862020-09-27 Tom Tromey <tom@tromey.com>
487
488 PR tui/25342:
489 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
490
9e820dec
TT
4912020-09-27 Tom Tromey <tom@tromey.com>
492
493 * unittests/tui-selftests.c: Update.
494 * tui/tui-winsource.h (struct tui_source_window_base)
495 <extra_margin, show_line_number, refresh_pad>: New methods.
496 <m_max_length, m_pad>: New members.
497 (tui_copy_source_line): Update.
498 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
499 first_col, line_width, ndigits parameters. Add length.
500 (tui_source_window_base::show_source_line): Write to pad. Line
501 number now 0-based.
502 (tui_source_window_base::refresh_pad): New method.
503 (tui_source_window_base::show_source_content): Write to pad. Call
504 refresh_pad.
505 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
506 not refill.
507 (tui_source_window_base::update_exec_info): Call
508 show_line_number.
509 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
510 method.
511 <m_digits>: New member.
512 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
513 and m_max_length.
514 (tui_source_window::show_line_number): New method.
515 * tui/tui-io.h (tui_puts): Fix comment.
516 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
517 m_max_length.
518
c15c15c8
TT
5192020-09-27 Tom Tromey <tom@tromey.com>
520
521 * tui/tui-winsource.c
522 (tui_source_window_base::set_is_exec_point_at): Don't call
523 show_source_line.
524
149830c1
TT
5252020-09-27 Tom Tromey <tom@tromey.com>
526
527 * python/py-tui.c (class tui_py_window) <refresh_window>: New
528 method.
529 <erase>: Update.
530 <cursor_x, cursor_y>: Remove.
531 <m_inner_window>: New member.
532 (tui_py_window::rerender): Create inner window.
533 (tui_py_window::output): Write to inner window.
534
8f9929bb
GR
5352020-09-26 Gareth Rees <grees@undo.io> (tiny change)
536
537 PR python/26586
538 * cli/cli-script.c (execute_control_commands): don't set
539 instream to nullptr here as this breaks the from_tty argument
540 to gdb.execute in Python.
541 (execute_user_command): set instream to nullptr here instead.
542
956bdb59
SM
5432020-09-25 Simon Marchi <simon.marchi@efficios.com>
544
545 * infrun.h (infrun_debug_printf): Fix formatting.
546 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
547
3b93626b
SJ
5482020-09-25 Saagar Jha <saagar@saagarjha.com>
549
550 * compile/compile-object-load.h (struct munmap_list): Add
551 explicitly-defined move constructor.
552
b551a89f
TT
5532020-09-24 Tom Tromey <tromey@adacore.com>
554
555 PR tui/26638:
556 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
557 method.
558 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
559 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
560 (tui_prev_win): Rewrite.
561
99bb393f
HD
5622020-09-23 Hannes Domani <ssbssa@yahoo.de>
563
564 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
565 in WOW64 processes as SIGINT.
566 * nat/windows-nat.h: Make wow64_process a shared variable.
567 * windows-nat.c: Remove static wow64_process variable.
568
20a5fcbd
TT
5692020-09-23 Tom Tromey <tom@tromey.com>
570
571 PR symtab/25470:
572 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
573 offset and bit size.
574 * printcmd.c (print_scalar_formatted): Handle zero-length
575 integer.
576 (print_scalar_formatted): Use bit_size_differs_p.
577 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
578 constant.
579 (union type_specific): <int_stuff>: New member.
580 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
581 methods.
582 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
583 TYPE_SPECIFIC_FIELD.
584 (recursive_dump_type, copy_type_recursive): Update.
585 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
586 DW_AT_data_bit_offset.
587
bac51ab7
TT
5882020-09-23 Tom Tromey <tom@tromey.com>
589
590 * utils.h (class gdb_argv): Add move operators.
591 <append>: New methods.
592 * compile/compile.c (build_argc_argv): Remove.
593 (compile_args_argc): Remove.
594 (compile_args_argv): Change type.
595 (set_compile_args): Simplify.
596 (append_args): Remove.
597 (filter_args): Remove argcp parameter.
598 (get_args): Return gdb_argv. Simplify.
599 (compile_to_object): Update.
600
92677124
TT
6012020-09-23 Tom Tromey <tom@tromey.com>
602
603 * compile/compile-object-run.c (do_module_cleanup)
604 <~do_module_cleanup> :Remove.
605 (do_module_cleanup): Update.
606 * compile/compile-object-load.h (struct munmap_list): Add move
607 assignment operator.
608 <source_file>: Now a std::string.
609 <munmap_list>: Rename. No longer a pointer.
610 * compile/compile-object-load.c (struct setup_sections_data): Add
611 constructor.
612 <setup_one_section>: Declare.
613 <munmap_list>: Move earlier.
614 <m_bfd>: New member.
615 <m_last_size, m_last_section_first, m_last_prot,
616 m_last_max_alignment>: Rename, add initializers where needed.
617 (setup_sections_data::setup_one_section): Rename from
618 setup_sections. Update.
619 (compile_object_load): Update. Don't use bfd_map_over_sections.
620
e616f60a
TT
6212020-09-23 Tom Tromey <tom@tromey.com>
622
623 * compile/compile-object-run.c (struct do_module_cleanup): Add
624 parameters to constructor. Update destructor.
625 <source_file, scope, scope_data, out_value_type, out_value_addr,
626 munmap_list_head, objfile_name_string>: Remove.
627 <module>: New member.
628 (do_module_cleanup): Update.
629 (compile_object_run): Update.
630
e947a848
TT
6312020-09-23 Tom Tromey <tom@tromey.com>
632
633 * compile/compile.c (eval_compile_command): Update.
634 * compile/compile-object-run.h (compile_object_run): Take a
635 compile_module_up.
636 * compile/compile-object-run.c (compile_object_run): Take a
637 compile_module_up.
638 * compile/compile-object-load.h (struct compile_module): Add
639 constructor, destructor.
640 (compile_module_up): New typedef.
641 (compile_object_load): Return compile_object_up.
642 * compile/compile-object-load.c (compile_object_load): Return
643 compile_module_up.
644
0dbf6ee6
TT
6452020-09-23 Tom Tromey <tom@tromey.com>
646
647 * compile/compile-object-run.c (struct do_module_cleanup): Add
648 constructor, destructor.
649 <objfile_name_string>: Don't use struct hack.
650 (do_module_cleanup): Use delete.
651 (compile_object_run): Use new.
652
ebe824f5
TT
6532020-09-23 Tom Tromey <tom@tromey.com>
654
655 * compile/compile-cplus-types.c
656 (compile_cplus_convert_struct_or_union): Use std::vector.
657 (compile_cplus_convert_func): Likewise.
658 * compile/compile-c-types.c (convert_func): Use std::vector.
659
5dd918d9
TT
6602020-09-21 Tom Tromey <tromey@adacore.com>
661
662 * sparc-tdep.c (sparc32_skip_prologue): Use
663 skip_prologue_using_sal.
664
5486c517
TT
6652020-09-19 Tom Tromey <tom@tromey.com>
666
667 * symfile.c (add_section_size_callback): Remove.
668 (load_one_section): Rename from load_section_callback. Change
669 parameters.
670 (generic_load): Use foreach.
671
8a6bb1d1
TT
6722020-09-19 Tom Tromey <tom@tromey.com>
673
674 * exec.c (add_to_section_table): Remove.
675 (build_section_table): Use foreach.
676
08f93a1a
TT
6772020-09-19 Tom Tromey <tom@tromey.com>
678
679 * elfread.c (elf_locate_sections): Change parameters.
680 (elf_symfile_read): Use foreach.
681
03cd72b8
TT
6822020-09-19 Tom Tromey <tom@tromey.com>
683
684 * cli/cli-dump.c (struct callback_data): Remove.
685 (restore_one_section): Rename from restore_section_callback.
686 Change parameters.
687 (restore_binary_file): Change parameters.
688 (restore_command): Use foreach.
689
f4f2b85f
TT
6902020-09-19 Tom Tromey <tom@tromey.com>
691
692 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
693 (gcore_copy_callback): Likewise.
694 (gcore_memory_sections): Use foreach.
695
b35c1d1c
TT
6962020-09-19 Tom Tromey <tom@tromey.com>
697
698 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
699 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
700 parameters.
701 (generic_elf_osabi_sniffer): Use foreach.
702 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
703 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
704
5bb6e9dd
TT
7052020-09-19 Tom Tromey <tom@tromey.com>
706
707 * dwarf2/read.c (locate_dwz_sections): Change parameters.
708 (dwarf2_get_dwz_file): Use foreach.
709 (dwarf2_locate_dwo_sections): Change parameters.
710 (open_and_init_dwo_file): Use foreach.
711 (dwarf2_locate_common_dwp_sections): Change parameters.
712 (open_and_init_dwp_file): Use foreach.
713
ad7277da
TT
7142020-09-19 Tom Tromey <tom@tromey.com>
715
716 * symfile.h: (find_lowest_section): Don't declare.
717 * symfile.c (find_lowest_section): Now static. Change
718 parameters.
719 (struct place_section_arg): Remove.
720 (place_section): Change parameters.
721 (addr_info_make_relative): Use foreach.
722 (symfile_dummy_outputs): Remove.
723 (default_symfile_relocate): Use foreach.
724
cb814f2e
TT
7252020-09-19 Tom Tromey <tom@tromey.com>
726
727 * objfiles.c (add_to_objfile_sections): Rename from
728 add_to_objfile_sections_full.
729 (add_to_objfile_sections): Remove.
730 (build_objfile_section_table): Use foreach.
731
3cabfd26
TT
7322020-09-19 Tom Tromey <tom@tromey.com>
733
734 * stap-probe.c (get_stap_base_address_1): Remove.
735 (get_stap_base_address): Use foreach.
736
1ce51eb5
TT
7372020-09-19 Tom Tromey <tom@tromey.com>
738
739 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
740 parameters.
741 (gdb_bfd_close_or_warn): Use foreach.
742
a190fabb
TT
7432020-09-19 Tom Tromey <tom@tromey.com>
744
745 * corelow.c (add_to_thread_list): Change parameters.
746 (core_target_open): Use foreach.
747
cafb0d81
TT
7482020-09-19 Tom Tromey <tom@tromey.com>
749
750 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
751 existing function.
752
c8d5abea
AB
7532020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
754
755 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
756 for arrays.
757
6d816919
AB
7582020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
759
760 * eval.c: Remove 'f-lang.h' include.
761 (value_f90_subarray): Moved to f-lang.c.
762 (eval_call): Renamed to...
763 (evaluate_subexp_do_call): ...this, is no longer static, header
764 comment moved into header file.
765 (evaluate_funcall): Update call to eval_call.
766 (skip_undetermined_arglist): Moved to f-lang.c.
767 (fortran_value_subarray): Likewise.
768 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
769 moved to evaluate_subexp_f.
770 (calc_f77_array_dims): Moved to f-lang.c
771 * expprint.c (print_subexp_funcall): New function.
772 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
773 moved to print_subexp_f, OP_FUNCALL uses new function.
774 (dump_subexp_body_funcall): New function.
775 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
776 moved to dump_subexp_f, OP_FUNCALL uses new function.
777 * expression.h (evaluate_subexp_do_call): Declare.
778 * f-lang.c (value_f90_subarray): Moved from eval.c.
779 (skip_undetermined_arglist): Likewise.
780 (calc_f77_array_dims): Likewise.
781 (fortran_value_subarray): Likewise.
782 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
783 (operator_length_f): Likewise.
784 (print_subexp_f): Likewise.
785 (dump_subexp_body_f): Likewise.
786 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
787 declaration of this operation to here.
788 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
789 support moved to operator_length_f.
790 * parser-defs.h (dump_subexp_body_funcall): Declare.
791 (print_subexp_funcall): Declare.
792 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
793 fortran-operator.def.
794
8c37706a
AB
7952020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
796
797 * eval.c (fortran_value_subarray): New function, content is taken
798 from...
799 (evaluate_subexp_standard): ...here, in two places. Now arrays
800 and strings both call the new function.
801 (calc_f77_array_dims): Add header comment, handle strings.
802
14f9473c
VC
8032020-09-18 Victor Collod <vcollod@nvidia.com>
804
805 PR gdb/26635
806 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
807 (i386_analyze_prologue): Call i386_skip_endbr.
808
b60cea74
TT
8092020-09-18 Tom Tromey <tromey@adacore.com>
810
811 * windows-nat.c (struct windows_nat_target) <wait>: Update.
812 (windows_nat_target::wait): Update.
813 * target/wait.h (enum target_wait_flag): New. Use
814 DEF_ENUM_FLAGS_TYPE.
815 * target/target.h (target_wait): Change type of options.
816 * target.h (target_options_to_string, default_target_wait):
817 Update.
818 (struct target_ops) <wait>: Change type of options.
819 * target.c (target_wait, default_target_wait, do_option): Change
820 type of "options".
821 (target_options_to_string): Likewise.
822 * target-delegates.c: Rebuild.
823 * target-debug.h (target_debug_print_target_wait_flags): Rename
824 from target_debug_print_options.
825 * sol-thread.c (class sol_thread_target) <wait>: Update.
826 (sol_thread_target::wait): Update.
827 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
828 (rs6000_nat_target::wait): Update.
829 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
830 Update.
831 (remote_target::wait_ns, remote_target::wait_as): Change type of
832 "options".
833 (remote_target::wait): Update.
834 * remote-sim.c (struct gdbsim_target) <wait>: Update.
835 (gdbsim_target::wait): Update.
836 * record-full.c (class record_full_base_target) <wait>: Update.
837 (record_full_wait_1): Change type of "options".
838 (record_full_base_target::wait): Update.
839 * record-btrace.c (class record_btrace_target) <wait>: Update.
840 (record_btrace_target::wait): Update.
841 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
842 Update.
843 (ravenscar_thread_target::wait): Update.
844 * procfs.c (class procfs_target) <wait>: Update.
845 (procfs_target::wait): Update.
846 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
847 * obsd-nat.c (obsd_nat_target::wait): Update.
848 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
849 (nto_procfs_target::wait): Update.
850 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
851 * nbsd-nat.c (nbsd_wait): Change type of "options".
852 (nbsd_nat_target::wait): Update.
853 * linux-thread-db.c (class thread_db_target) <wait>: Update.
854 (thread_db_target::wait): Update.
855 * linux-nat.h (class linux_nat_target) <wait>: Update.
856 * linux-nat.c (linux_nat_target::wait): Update.
857 (linux_nat_wait_1): Update.
858 * infrun.c (do_target_wait_1, do_target_wait): Change type of
859 "options".
860 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
861 * inf-ptrace.c (inf_ptrace_target::wait): Update.
862 * go32-nat.c (struct go32_nat_target) <wait>: Update.
863 (go32_nat_target::wait): Update.
864 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
865 * gnu-nat.c (gnu_nat_target::wait): Update.
866 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
867 * fbsd-nat.c (fbsd_nat_target::wait): Update.
868 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
869 * darwin-nat.c (darwin_nat_target::wait): Update.
870 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
871 (bsd_uthread_target::wait): Update.
872 * aix-thread.c (class aix_thread_target) <wait>: Update.
873 (aix_thread_target::wait): Update.
874
0295dde6
AB
8752020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
876
877 * compile/compile-object-run.c (create_copied_type_recursive): New
878 function.
879 (compile_object_run): Use new function.
880
d3483b43
JT
8812020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
882
883 * NEWS: Mention x86_64 Cygwin core file support.
884
e7d612ad
JT
8852020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
886
887 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
888 (core_process_module_section): Handle NOTE_INFO_MODULE64.
889
aff9d387
JT
8902020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
891
62a5151b
JT
892 * windows-tdep.h: Add prototypes.
893 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
894 (i386_windows_core_pid_to_str): Move and rename ...
895 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
896 (windows_core_pid_to_str): ... and here.
897 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
898
8992020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
900 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
901 (amd64_windows_init_abi_common): ... and register.
902
7d155da3
JT
9032020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
904
905 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
906 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
907
e8ef12b9
PA
9082020-09-18 Pedro Alves <pedro@palves.net>
909
910 PR gdb/26631
911 * thread.c (thread_find_command): Switch inferior before calling
912 target methods.
913
c1e1314d
TT
9142020-09-17 Tom Tromey <tromey@adacore.com>
915
916 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
917 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
918 (tdesc_arch_data_up): New typedef.
919 (tdesc_use_registers, tdesc_data_alloc): Update.
920 (tdesc_data_cleanup): Don't declare.
921 * target-descriptions.c (tdesc_data_alloc): Return a
922 tdesc_arch_data_up.
923 (tdesc_arch_data_deleter::operator()): Rename from
924 tdesc_data_cleanup. Change argument type.
925 (tdesc_use_registers): Change early_data to an rvalue reference.
926 (tdesc_use_registers): Don't use delete.
927 * sparc-tdep.c (sparc32_gdbarch_init): Update.
928 * s390-tdep.c (s390_gdbarch_init): Update.
929 * rx-tdep.c (rx_gdbarch_init): Update.
930 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
931 * riscv-tdep.c (riscv_gdbarch_init): Update.
932 * or1k-tdep.c (or1k_gdbarch_init): Update.
933 * nios2-tdep.c (nios2_gdbarch_init): Update.
934 * nds32-tdep.c (nds32_gdbarch_init): Update.
935 * mips-tdep.c (mips_gdbarch_init): Update.
936 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
937 * m68k-tdep.c (m68k_gdbarch_init): Update.
938 * i386-tdep.c (i386_gdbarch_init): Update.
939 * arm-tdep.c (arm_gdbarch_init): Update.
940 * arc-tdep.c (arc_tdesc_init): Update.
941 (arc_gdbarch_init): Update.
942 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
943
0363df3d
HD
9442020-09-17 Hannes Domani <ssbssa@yahoo.de>
945
946 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
947 for WOW64 processes.
948
280a9412
TT
9492020-09-17 Tom Tromey <tom@tromey.com>
950
951 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
952
6108fd18
TT
9532020-09-17 Tom Tromey <tom@tromey.com>
954
955 * value.c (preserve_values): Update.
956 * python/py-type.c (save_objfile_types): Update.
957 * guile/scm-type.c (save_objfile_types): Update.
958 * gdbtypes.h (create_copied_types_hash): Return htab_up.
959 * gdbtypes.c (create_copied_types_hash): Return htab_up.
960 * compile/compile-object-run.c (compile_object_run): Update.
961
fa9b1164
TT
9622020-09-17 Tom Tromey <tom@tromey.com>
963
964 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
965 Remove.
966 <m_table>: Now htab_up.
967 * typeprint.c (typedef_hash_table::recursively_update)
968 (typedef_hash_table::add_template_parameters)
969 (typedef_hash_table::typedef_hash_table): Update.
970 (typedef_hash_table::~typedef_hash_table): Remove.
971 (typedef_hash_table::typedef_hash_table)
972 (typedef_hash_table::find_global_typedef)
973 (typedef_hash_table::find_typedef): Update.
974
eb53f105
TT
9752020-09-17 Tom Tromey <tom@tromey.com>
976
977 * target-descriptions.c (tdesc_use_registers): Use htab_up.
978
7a8a5d47
TT
9792020-09-17 Tom Tromey <tom@tromey.com>
980
981 * linespec.c (class decode_compound_collector)
982 <~decode_compound_collector>: Remove.
983 <m_unique_syms>: Now htab_up.
984 (decode_compound_collector::operator ()): Update.
985 (class symtab_collector) <~symtab_collector>: Remove.
986 <m_symtab_table>: Now htab_up.
987 (symtab_collector::operator ()): Update.
988
99032cfc
TT
9892020-09-17 Tom Tromey <tom@tromey.com>
990
991 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
992 (filename_seen_cache::clear): Update.
993 (~filename_seen_cache): Remove.
994 (filename_seen_cache::seen): Update.
995 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
996 htab_up.
997 <~filename_seen_cache>: Remove.
998 <traverse>: Update.
999
32580f6d
TT
10002020-09-17 Tom Tromey <tom@tromey.com>
1001
1002 * completer.c (completion_tracker::discard_completions)
1003 (completion_tracker::~completion_tracker)
1004 (completion_tracker::maybe_add_completion)
1005 (completion_tracker::remove_completion)
1006 (completion_tracker::recompute_lowest_common_denominator)
1007 (completion_tracker::build_completion_result): Update.
1008 * completer.h (class completion_tracker) <have_completions>:
1009 Update.
1010 <m_entries_hash>: Now htab_up.
1011
c1fb9836
TT
10122020-09-17 Tom Tromey <tom@tromey.com>
1013
1014 * breakpoint.c (ambiguous_names_p): Use htab_up.
1015
88f07206
TT
10162020-09-17 Tom Tromey <tom@tromey.com>
1017
1018 * auto-load.c (struct auto_load_pspace_info)
1019 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
1020 <loaded_script_files, loaded_script_texts>: Change type to
1021 htab_up.
1022 (~auto_load_pspace_info) Remove.
1023 (init_loaded_scripts_info, maybe_add_script_file)
1024 (maybe_add_script_text, auto_load_info_scripts): Update.
1025
9519b2ee
TT
10262020-09-17 Tom Tromey <tromey@adacore.com>
1027
1028 * c-exp.y (name_obstack): Now static.
1029
d2cd4113
CC
10302020-09-17 Chungyi Chi <demonic@csie.io>
1031
1032 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
1033
b650a282
SM
10342020-09-16 Simon Marchi <simon.marchi@efficios.com>
1035
1036 * breakpoint.h (init_catchpoint): Change int parameter to bool.
1037 (add_solib_catchpoint): Likewise.
1038 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
1039 to bool.
1040 (add_solib_catchpoint): Change int parameter/variable to bool.
1041 (catch_load_or_unload): Likewise.
1042 (init_catchpoint): Likewise.
1043 (create_fork_vfork_event_catchpoint): Likewise.
1044 (catch_fork_command_1): Likewise.
1045 (catch_exec_command_1): Likewise.
1046
4d0bcfcf
SM
10472020-09-16 Simon Marchi <simon.marchi@efficios.com>
1048
1049 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
1050 Change instance_flags to m_instance_flags.
1051
fe830662
TT
10522020-09-16 Tom Tromey <tromey@adacore.com>
1053
1054 PR gdb/26598:
1055 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
1056
fe5ddfc3
JB
10572020-09-16 John Baldwin <jhb@FreeBSD.org>
1058
1059 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
1060 PL_FLAG_EXEC.
1061 (fbsd_nat_target::insert_exec_catchpoint)
1062 (fbsd_nat_target::remove_exec_catchpoint): Always define.
1063 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
1064 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
1065
e911c666
JB
10662020-09-16 John Baldwin <jhb@FreeBSD.org>
1067
1068 * configure.ac: Remove check for kinfo_getvmmap().
1069 * configure, config.in: Regenerate.
1070 * fbsd-nat.c (fbsd_read_mapping): Remove
1071 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
1072 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
1073 kinfo_get_vmmap() are always present.
1074
1f17d372
JB
10752020-09-16 John Baldwin <jhb@FreeBSD.org>
1076
1077 * fbsd-nat.c: Always include support for
1078 TARGET_OBJECT_SIGNAL_INFO.
1079
bcb1da7f
JB
10802020-09-16 John Baldwin <jhb@FreeBSD.org>
1081
1082 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
1083 sysctl and remove procfs fallback.
1084
5515f729
JB
10852020-09-16 John Baldwin <jhb@FreeBSD.org>
1086
1087 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
1088 * fbsd-nat.h: Likewise.
1089
da1df1db
TBA
10902020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1091
1092 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
1093 argument.
1094
0e25e767
AB
10952020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1096
1097 * ada-lang.c (ada_language_data): Delete.
1098 (ada_language): Remove references to ada_language_data.
1099 * c-lang.c (c_language_data): Delete.
1100 (c_language): Remove references to c_language_data.
1101 (cplus_language_data): Delete.
1102 (cplus_language): Remove references to cplus_language_data.
1103 (asm_language_data): Delete.
1104 (asm_language): Remove references to asm_language_data.
1105 (minimal_language_data): Delete.
1106 (minimal_language): Remove references to minimal_language_data.
1107 * d-lang.c (d_language_data): Delete.
1108 (d_language): Remove references to d_language_data.
1109 * f-lang.c (f_language_data): Delete.
1110 (f_language): Remove references to f_language_data.
1111 * go-lang.c (go_language_data): Delete.
1112 (go_language): Remove references to go_language_data.
1113 * language.c (unknown_language_data): Delete.
1114 (unknown_language): Remove references to unknown_language_data.
1115 (auto_language_data): Delete.
1116 (auto_language): Remove references to auto_language_data.
1117 * language.h (language_data): Delete struct.
1118 (language_defn): No longer inherit from language_data.
1119 * m2-lang.c (m2_language_data): Delete.
1120 (m2_language): Remove references to m2_language_data.
1121 * objc-lang.c (objc_language_data): Delete.
1122 (objc_language): Remove references to objc_language_data.
1123 * opencl-lang.c (opencl_language_data): Delete.
1124 (opencl_language): Remove references to opencl_language_data.
1125 * p-lang.c (pascal_language_data): Delete.
1126 (pascal_language): Remove references to pascal_language_data.
1127 * rust-lang.c (rust_language_data): Delete.
1128 (rust_language): Remove references to rust_language_data.
1129
b7c6e27d
AB
11302020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1131
1132 * ada-lang.c (ada_language_data): Remove la_op_print_tab
1133 initializer.
1134 (ada_language::opcode_print_table): New member function.
1135 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
1136 (c_language::opcode_print_table): New member function.
1137 (cplus_language_data): Remove la_op_print_tab initializer.
1138 (cplus_language::opcode_print_table): New member function.
1139 (asm_language_data): Remove la_op_print_tab initializer.
1140 (asm_language::opcode_print_table): New member function.
1141 (minimal_language_data): Remove la_op_print_tab initializer.
1142 (minimal_language::opcode_print_table): New member function.
1143 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
1144 (d_language::opcode_print_table): New member function.
1145 * expprint.c (print_subexp_standard): Update call to
1146 opcode_print_table.
1147 (op_string): Likewise.
1148 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
1149 (f_language::opcode_print_table): New member function.
1150 * go-lang.c (go_language_data): Remove la_op_print_tab
1151 initializer.
1152 (go_language::opcode_print_table): New member function.
1153 * language.c (unknown_language_data): Remove la_op_print_tab
1154 initializer.
1155 (unknown_language::opcode_print_table): New member function.
1156 (auto_language_data): Remove la_op_print_tab initializer.
1157 (auto_language::opcode_print_table): New member function.
1158 * language.h (language_data): Remove la_op_print_tab field.
1159 (language_defn::opcode_print_table): Declare new member function.
1160 * m2-lang.c (m2_language_data): Remove la_op_print_tab
1161 initializer.
1162 (m2_language::opcode_print_table): New member function.
1163 * objc-lang.c (objc_language_data): Remove la_op_print_tab
1164 initializer.
1165 (objc_language::opcode_print_table): New member function.
1166 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
1167 initializer.
1168 (opencl_language::opcode_print_table): New member function.
1169 * p-lang.c (pascal_language_data): Remove la_op_print_tab
1170 initializer.
1171 (pascal_language::opcode_print_table): New member function.
1172 * rust-lang.c (rust_language_data): Remove la_op_print_tab
1173 initializer.
1174 (rust_language::opcode_print_table): New member function.
1175
5aba6ebe
AB
11762020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1177
1178 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
1179 (ada_language::expression_ops): New member function.
1180 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
1181 (c_language::expression_ops): New member function.
1182 (cplus_language_data): Remove la_exp_desc initializer.
1183 (cplus_language::expression_ops): New member function.
1184 (asm_language_data): Remove la_exp_desc initializer.
1185 (asm_language::expression_ops): New member function.
1186 (minimal_language_data): Remove la_exp_desc initializer.
1187 (minimal_language::expression_ops): New member function.
1188 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
1189 (d_language::expression_ops): New member function.
1190 * eval.c (evaluate_subexp): Update call to expression_ops.
1191 * expprint.c (print_subexp): Likewise.
1192 (op_name): Likewise.
1193 (dump_subexp_body): Likewise.
1194 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
1195 (f_language::expression_ops): New member function.
1196 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
1197 (go_language::expression_ops): New member function.
1198 * language.c (language_defn::expression_ops): New function.
1199 (unknown_language_data): Remove la_exp_desc initializer.
1200 (auto_language_data): Likewise.
1201 * language.h (language_data): Remove la_exp_desc field.
1202 (language_defn::expression_ops): Declare new member function.
1203 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
1204 (m2_language::expression_ops): New member function.
1205 * objc-lang.c (objc_language_data): Remove la_exp_desc
1206 initializer.
1207 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
1208 initializer.
1209 (opencl_language::expression_ops): New member function.
1210 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
1211 * parse.c (operator_length): Update call to expression_ops.
1212 (exp_iterate): Likewise.
1213 * rust-lang.c (rust_language_data): Remove la_exp_desc
1214 initializer.
1215 (ruse_language::expression_ops): New member function.
1216
b63a3f3f
AB
12172020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1218
1219 * ada-lang.c (ada_language_data): Remove la_varobj_ops
1220 initializer.
1221 (ada_language::varobj_ops): New member function.
1222 * c-lang.c (c_language_data): Remove la_varobj_ops
1223 initializer.
1224 (cplus_language_data): Likewise.
1225 (cplus_language::varobj_ops): New member function.
1226 (asm_language_data): Remove la_varobj_ops initializer.
1227 (minimal_language_data): Likewise.
1228 * d-lang.c (d_language_data): Likewise.
1229 * f-lang.c (f_language_data): Likewise.
1230 * go-lang.c (go_language_data): Likewise.
1231 * language.c (language_defn::varobj_ops): New function.
1232 (unknown_language_data): Remove la_varobj_ops
1233 initializer.
1234 (auto_language_data): Likewise.
1235 * language.h (language_data): Remove la_varobj_ops field.
1236 (language_defn::varobj_ops): Declare new member function.
1237 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
1238 * objc-lang.c (objc_language_data): Likewise.
1239 * opencl-lang.c (opencl_language_data): Likewise.
1240 * p-lang.c (pascal_language_data): Likewise.
1241 * rust-lang.c (rust_language_data): Likewise.
1242 * varobj.c (varobj_create): Update call to varobj_ops.
1243 * varobj.h (default_varobj_ops): Delete define.
1244
1ac14a04
AB
12452020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1246
1247 * ada-lang.c (ada_language_data): Remove la_macro_expansion
1248 initializer.
1249 * c-lang.c (c_language_data): Likewise.
1250 (c_language::macro_expansion): New member function.
1251 (cplus_language_data): Likewise.
1252 (cplus_language::macro_expansion): New member function.
1253 (asm_language_data): Likewise.
1254 (asm_language::macro_expansion): New member function.
1255 (minimal_language_data): Likewise.
1256 (minimal_language::macro_expansion): New member function.
1257 * d-lang.c (d_language_data): Remove la_macro_expansion
1258 initializer.
1259 * f-lang.c (f_language_data): Likewise.
1260 * go-lang.c (go_language_data): Likewise.
1261 * language.c (unknown_language_data): Likewise.
1262 (auto_language_data): Likewise.
1263 * language.h (language_data): Remove la_macro_expansion field.
1264 (language_defn::macro_expansion): New member function.
1265 * m2-lang.c (m2_language_data): Remove la_macro_expansion
1266 initializer.
1267 * objc-lang.c (objc_language_data): Likewise.
1268 (objc_language::macro_expansion): New member function.
1269 * opencl-lang.c (opencl_language_data): Likewise.
1270 (opencl_language::macro_expansion): New member function.
1271 * p-lang.c (pascal_language_data): Remove la_macro_expansion
1272 initializer.
1273 * rust-lang.c (rust_language_data): Likewise.
1274 * symtab.c (default_collect_symbol_completion_matches_break_on):
1275 Update call to macro_expansion.
1276
3a3440fb
AB
12772020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1278
1279 * ada-lang.c (ada_language_data): Remove la_array_ordering
1280 initializer.
1281 * c-lang.c (c_language_data): Likewise.
1282 (cplus_language_data): Likewise.
1283 (asm_language_data): Likewise.
1284 (minimal_language_data): Likewise.
1285 * d-lang.c (d_language_data): Likewise.
1286 * dwarf2/read.c (read_array_order): Update for call to
1287 array_ordering.
1288 * f-lang.c (f_language_data): Remove la_array_ordering
1289 initializer.
1290 (f_language::array_ordering): New member function.
1291 * go-lang.c (go_language_data): Remove la_array_ordering
1292 initializer.
1293 * language.c (unknown_language_data): Likewise.
1294 (auto_language_data): Likewise.
1295 * language.h (language_data): Delete la_array_ordering field.
1296 (language_defn::array_ordering): New member function.
1297 * m2-lang.c (m2_language_data): Remove la_array_ordering
1298 initializer.
1299 * objc-lang.c (objc_language_data): Likewise.
1300 * opencl-lang.c (opencl_language_data): Likewise.
1301 * p-lang.c (pascal_language_data): Likewise.
1302 * rust-lang.c (rust_language_data): Likewise.
1303
0d201fa4
AB
13042020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1305
1306 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
1307 initializer.
1308 * c-lang.c (c_language_data): Likewise.
1309 (cplus_language_data): Likewise.
1310 (asm_language_data): Likewise.
1311 (minimal_language_data): Likewise.
1312 * d-lang.c (d_language_data): Likewise.
1313 * f-lang.c (f_language_data): Likewise.
1314 (f_language::case_sensitivity): New member function.
1315 * go-lang.c (go_language_data): Remove la_case_sensitivity
1316 initializer.
1317 * language.c (enum case_mode): Moved here from language.h.
1318 (case_mode): Make static.
1319 (show_case_command): Update for case_sensitivity being a method.
1320 (set_case_command): Likewise.
1321 (set_range_case): Likewise.
1322 (unknown_language_data): Remove la_case_sensitivity initializer.
1323 (auto_language_data): Likewise.
1324 * language.h (case_mode): Delete, move enum declaration to
1325 language.c.
1326 (language_data): Delete la_case_sensitivity field.
1327 (language_defn::case_sensitivity): New member function.
1328 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
1329 initializer.
1330 * objc-lang.c (objc_language_data): Likewise.
1331 * opencl-lang.c (opencl_language_data): Likewise.
1332 * p-lang.c (pascal_language_data): Likewise.
1333 * rust-lang.c (rust_language_data): Likewise.
1334
efdf6a73
AB
13352020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1336
1337 * ada-lang.c (ada_language_data): Remove la_range_check
1338 initializer.
1339 * c-lang.c (c_language_data): Likewise.
1340 (cplus_language_data): Likewise.
1341 (asm_language_data): Likewise.
1342 (minimal_language_data): Likewise.
1343 * d-lang.c (d_language_data): Likewise.
1344 * f-lang.c (f_language_data): Likewise.
1345 (f_language::range_checking_on_by_default): New member function.
1346 * go-lang.c (go_language_data): Remove la_range_check initializer.
1347 * language.c (enum range_mode): Moved here from language.h.
1348 (range_mode): Made static.
1349 (show_range_command): Update to use
1350 range_checking_on_by_default.
1351 (set_range_command): Likewise.
1352 (set_range_case): Likewise.
1353 (unknown_language_data): Remove la_range_check initializer.
1354 (auto_language_data): Likewise.
1355 * language.h (range_mode): Delete. Enum definition moved to
1356 language.c.
1357 (language_data): Remove la_range_check field.
1358 (language_defn::range_checking_on_by_default): New member
1359 function.
1360 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
1361 (m2_language::range_checking_on_by_default): New member function.
1362 * objc-lang.c (objc_language_data): Remove la_range_check
1363 initializer.
1364 * opencl-lang.c (opencl_language_data): Likewise.
1365 * p-lang.c (pascal_language_data): Likewise.
1366 (pascal_language::range_checking_on_by_default): New member
1367 function.
1368 * rust-lang.c (rust_language_data): Remove la_range_check
1369 initializer.
1370 (rust_language::range_checking_on_by_default): New member
1371 function.
1372
bf92aec5
AB
13732020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1374
1375 * dwarf2/read.c (dwarf2_physname): Remove special case for
1376 language_go.
1377 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
1378 member function.
1379
d3355e4d
AB
13802020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1381
1382 * ada-lang.c (ada_language_data): Remove
1383 la_store_sym_names_in_linkage_form_p initializer.
1384 (ada_language::store_sym_names_in_linkage_form_p): New member
1385 function.
1386 * c-lang.c (c_language_data): Remove
1387 la_store_sym_names_in_linkage_form_p initializer.
1388 (c_language::store_sym_names_in_linkage_form_p): New member
1389 function.
1390 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
1391 initializer.
1392 (asm_language_data): Likewise.
1393 (asm_language::store_sym_names_in_linkage_form_p): New member
1394 function.
1395 (minimal_language_data): Remove
1396 la_store_sym_names_in_linkage_form_p initializer.
1397 (minimal_language::store_sym_names_in_linkage_form_p): New member
1398 function.
1399 * d-lang.c (d_language_data): Remove
1400 la_store_sym_names_in_linkage_form_p initializer.
1401 * dwarf2/read.c (dwarf2_physname): Update call to
1402 store_sym_names_in_linkage_form_p.
1403 * f-lang.c (f_language_data): Remove
1404 la_store_sym_names_in_linkage_form_p initializer.
1405 * go-lang.c (go_language_data): Remove
1406 la_store_sym_names_in_linkage_form_p initializer.
1407 * language.c (unknown_language_data): Remove
1408 la_store_sym_names_in_linkage_form_p initializer.
1409 (unknown_language::store_sym_names_in_linkage_form_p): New member
1410 function.
1411 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
1412 initializer.
1413 (auto_language::store_sym_names_in_linkage_form_p): New member
1414 function.
1415 * language.h (language_data): Remove
1416 la_store_sym_names_in_linkage_form_p member variable.
1417 (language_defn::store_sym_names_in_linkage_form_p): New member
1418 function.
1419 * m2-lang.c (m2_language_data): Remove
1420 la_store_sym_names_in_linkage_form_p initializer.
1421 * objc-lang.c (objc_language_data): Likewise.
1422 * opencl-lang.c (opencl_language_data): Likewise.
1423 * p-lang.c (pascal_language_data): Likewise.
1424 * rust-lang.c (rust_language_data): Likewise.
1425
22c12a6c
AB
14262020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1427
1428 * ada-lang.c (ada_language_data): Remove string_lower_bound
1429 initializer.
1430 * c-lang.c (c_language_data): Likewise.
1431 (cplus_language_data): Likewise.
1432 (asm_language_data): Likewise.
1433 (minimal_language_data): Likewise.
1434 * d-lang.c (d_language_data): Likewise.
1435 * f-lang.c (f_language_data): Likewise.
1436 * go-lang.c (go_language_data): Likewise.
1437 * language.c (unknown_language_data): Likewise.
1438 (auto_language_data): Likewise.
1439 * language.h (language_data): Remove string_lower_bound field.
1440 (language_defn::string_lower_bound): New member function.
1441 * m2-lang.c (m2_language_data): Remove string_lower_bound
1442 initializer.
1443 (m2_language::string_lower_bound): New member function.
1444 * objc-lang.c (objc_language_data): Remove string_lower_bound
1445 initializer.
1446 * opencl-lang.c (opencl_language_data): Likewise.
1447 * p-lang.c (pascal_language_data): Likewise.
1448 * rust-lang.c (rust_language_data): Likewise.
1449 * valops.c (value_cstring): Update call to string_lower_bound.
1450 (value_string): Likewise.
1451 * value.c (allocate_repeated_value): Likewise.
1452
1c236ddd
AB
14532020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1454
1455 * valops.c (value_repeat): Fix incorrect argument name in comment.
1456
67bd3fd5
AB
14572020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1458
1459 * ada-lang.c (ada_language_data): Remove c_style_arrays
1460 initializer.
1461 (ada_language::c_style_arrays_p): New member fuction.
1462 * c-lang.c (c_language_data): Remove c_style_arrays
1463 initializer.
1464 (cplus_language_data): Likewise.
1465 (asm_language_data): Likewise.
1466 (minimal_language_data): Likewise.
1467 * d-lang.c (d_language_data): Likewise.
1468 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
1469 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
1470 (f_language::c_style_arrays_p): New member function.
1471 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
1472 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
1473 * language.c (unknown_language_data): Remove c_style_arrays
1474 initializer.
1475 (auto_language_data): Likewise.
1476 * language.h (language_data): Remove c_style_arrays field.
1477 (language_defn::c_style_arrays_p): New member function.
1478 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
1479 (m2_language::c_style_arrays_p): New member function.
1480 * objc-lang.c (objc_language_data): Remove c_style_arrays
1481 initializer.
1482 * opencl-lang.c (opencl_language_data): Likewise.
1483 * p-lang.c (pascal_language_data): Likewise.
1484 * rust-lang.c (rust_language_data): Likewise.
1485 * valarith.c (value_subscript): Update call to c_style_arrays_p,
1486 and update local variable to a bool.
1487 * valops.c (value_cast): Update call to c_style_arrays_p.
1488 (value_array): Likewise.
1489 * value.c (coerce_array): Likewise.
1490
85967615
AB
14912020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1492
1493 * ada-lang.c (ada_language_data): Remove la_language initializer.
1494 * c-lang.c (c_language_data): Likewise.
1495 (cplus_language_data): Likewise.
1496 (asm_language_data): Likewise.
1497 (minimal_language_data): Likewise.
1498 * d-lang.c (d_language_data): Likewise.
1499 * f-lang.c (f_language_data): Likewise.
1500 * go-lang.c (go_language_data): Likewise.
1501 * language.c (unknown_language_data): Likewise.
1502 (auto_language_data): Likewise.
1503 * language.h (language_data): Remove la_language field.
1504 (language_defn::language_defn): Initialise la_language field.
1505 (language_defn::la_language): New member variable.
1506 * m2-lang.c (m2_language_data): Remove la_language field.
1507 * objc-lang.c (objc_language_data): Likewise.
1508 * opencl-lang.c (opencl_language_data): Likewise.
1509 * p-lang.c (pascal_language_data): Likewise.
1510 * rust-lang.c (rust_language_data): Likewise.
1511
e171d6f1
AB
15122020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1513
1514 * ada-lang.c (ada_extensions): Delete, moved into
1515 ada_language::filename_extensions.
1516 (ada_language_data): Remove la_filename_extensions initializer.
1517 (ada_language::filename_extensions): New member function.
1518 * c-lang.c (c_extensions): Delete, moved into
1519 c_language::filename_extensions.
1520 (c_language_data): Remove la_filename_extensions initializer.
1521 (c_language::filename_extensions): New member function.
1522 (cplus_extensions): Delete, moved into
1523 cplus_language::filename_extensions.
1524 (cplus_language_data): Remove la_filename_extensions initializer.
1525 (cplus_language::filename_extensions): New member function.
1526 (asm_extensions): Delete, moved into
1527 asm_language::filename_extensions.
1528 (asm_language_data): Remove la_filename_extensions initializer.
1529 (asm_language::filename_extensions): New member function.
1530 (minimal_language_data): Remove la_filename_extensions
1531 initializer.
1532 * d-lang.c (d_extensions): Delete, moved into
1533 d_language::filename_extensions.
1534 (d_language_data): Remove la_filename_extensions initializer.
1535 (d_language::filename_extensions): New member function.
1536 * f-lang.c (f_extensions): Delete, moved into
1537 f_language::filename_extensions.
1538 (f_language_data): Remove la_filename_extensions initializer.
1539 (f_language::filename_extensions): New member function.
1540 * go-lang.c (go_language_data): Remove la_filename_extensions
1541 initializer.
1542 * language.c (add_set_language_command): Update now that
1543 filename_extensions returns a vector.
1544 (unknown_language_data): Remove la_filename_extensions
1545 initializer.
1546 (auto_language_data): Likewise.
1547 * language.h (language_data): Remove la_filename_extensions field.
1548 (language_defn::filename_extensions): New member function.
1549 * m2-lang.c (m2_language_data): Remove la_filename_extensions
1550 initializer.
1551 * objc-lang.c (objc_extensions): Delete, moved into
1552 objc_language::filename_extensions.
1553 (objc_language_data): Remove la_filename_extensions initializer.
1554 (objc_language::filename_extensions): New member function.
1555 * opencl-lang.c (opencl_language_data): Remove
1556 la_filename_extensions initializer.
1557 * p-lang.c (pascal_extensions): Delete, moved into
1558 pascal_language::filename_extensions.
1559 (pascal_language_data): Remove la_filename_extensions initializer.
1560 (pascal_language::filename_extensions): New member function.
1561 * rust-lang.c (rust_extensions): Delete, moved into
1562 rust_language::filename_extensions.
1563 (rust_language_data): Remove la_filename_extensions initializer.
1564 (rust_language::filename_extensions): New member function.
1565 * symfile.c (add_filename_language): Add new assert.
1566
6f7664a9
AB
15672020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1568
1569 * ada-lang.c (ada_language_data): Remove la_name and
1570 la_natural_name initializers.
1571 (ada_language::name): New member function.
1572 (ada_language::natural_name): New member function.
1573 * c-lang.c (c_language_data): Remove la_name and
1574 la_natural_name initializers.
1575 (c_language::name): New member function.
1576 (c_language::natural_name): New member function.
1577 (cplus_language_data): Remove la_name and
1578 la_natural_name initializers.
1579 (cplus_language::name): New member function.
1580 (cplus_language::natural_name): New member function.
1581 (asm_language_data): Remove la_name and
1582 la_natural_name initializers.
1583 (asm_language::name): New member function.
1584 (asm_language::natural_name): New member function.
1585 (minimal_language_data): Remove la_name and
1586 la_natural_name initializers.
1587 (minimal_language::name): New member function.
1588 (minimal_language::natural_name): New member function.
1589 * compile/compile.c (compile_to_object): Update call to
1590 lanugage_defn::name.
1591 * d-lang.c (d_language_data): Remove la_name and
1592 la_natural_name initializers.
1593 (d_language::name): New member function.
1594 (d_language::natural_name): New member function.
1595 * expprint.c (print_subexp_standard): Update call to
1596 language_defn::name.
1597 (dump_raw_expression): Likewise
1598 (dump_prefix_expression): Likewise.
1599 * f-lang.c (f_language_data): Remove la_name and
1600 la_natural_name initializers.
1601 (f_language::name): New member function.
1602 (f_language::natural_name): New member function.
1603 * go-lang.c (go_language_data): Remove la_name and
1604 la_natural_name initializers.
1605 (go_language::name): New member function.
1606 (go_language::natural_name): New member function.
1607 * language.c (show_language_command): Update call to
1608 language_defn::name.
1609 (set_language_command): Likewise.
1610 (language_enum): Likewise.
1611 (language_str): Likewise.
1612 (add_set_language_command): Likewise, use
1613 language_defn::natural_name in the doc string.
1614 (unknown_language_data): Remove la_name and
1615 la_natural_name initializers.
1616 (unknown_language::name): New member function.
1617 (unknown_language::natural_name): New member function.
1618 (auto_language_data): Remove la_name and
1619 la_natural_name initializers.
1620 (auto_language::name): New member function.
1621 (auto_language::natural_name): New member function.
1622 (language_lookup_primitive_type_as_symbol): Update call to
1623 language_defn::name.
1624 * language.h (language_data): Remove la_name and la_natural_name
1625 member variables.
1626 (language_defn::name): New member function.
1627 (language_defn::natural_name): New member function.
1628 * m2-lang.c (m2_language_data): Remove la_name and
1629 la_natural_name initializers.
1630 (m2_language::name): New member function.
1631 (m2_language::natural_name): New member function.
1632 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
1633 language_defn::natural_name.
1634 * objc-lang.c (objc_language_data): Remove la_name and
1635 la_natural_name initializers.
1636 (objc_language::name): New member function.
1637 (objc_language::natural_name): New member function.
1638 * opencl-lang.c (opencl_language_data): Remove la_name and
1639 la_natural_name initializers.
1640 (opencl_language::name): New member function.
1641 (opencl_language::natural_name): New member function.
1642 * p-lang.c (pascal_language_data): Remove la_name and
1643 la_natural_name initializers.
1644 (pascal_language::name): New member function.
1645 (pascal_language::natural_name): New member function.
1646 * rust-lang.c (rust_language_data): Remove la_name and
1647 la_natural_name initializers.
1648 (rust_language::name): New member function.
1649 (rust_language::natural_name): New member function.
1650 * symtab.c (lookup_language_this): Update call to
1651 language_defn::name.
1652
5bae7c4e
AB
16532020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1654
1655 * ada-lang.c (ada_language_data): Remove la_name_of_this
1656 initializer.
1657 * ax-gdb.c (gen_expr): Update call to name_of_this.
1658 * c-exp.y (classify_name): Likewise.
1659 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
1660 (cplus_language_data): Likewise.
1661 (cplus_language::name_of_this): New member function.
1662 (asm_language_data): Remove la_name_of_this initializer.
1663 (minimal_language_data): Likewise.
1664 * d-lang.c (d_language_data): Likewise.
1665 (d_language::name_of_this): New member function.
1666 * expprint.c (print_subexp_standard): Update call to name_of_this.
1667 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
1668 * go-lang.c (go_language_data): Likewise.
1669 * language.c (unknown_language_data): Likewise.
1670 (unknown_language::name_of_this): New member function.
1671 (auto_language_data): Remove la_name_of_this initializer.
1672 (auto_language::name_of_this): New member function.
1673 * language.h (language_data): Delete la_name_of_this member
1674 variable.
1675 (language_defn::name_of_this): New member function.
1676 * m2-lang.c (m2_language_data): Remove la_name_of_this
1677 initializer.
1678 * objc-lang.c (objc_language_data): Likewise.
1679 (objc_language::name_of_this): New member function.
1680 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
1681 initializer.
1682 * p-lang.c (pascal_language_data): Likewise.
1683 (pascal_language::name_of_this): New member function.
1684 * rust-lang.c (rust_language_data): Remove la_name_of_this
1685 initializer.
1686 * symtab.c (lookup_language_this): Update call to name_of_this.
1687 (lookup_symbol_aux): Likewise.
1688 * valops.c (value_of_this): Likewise.
1689
22e3f3ed
AB
16902020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1691
1692 * ada-lang.c (ada_language_data): Remove
1693 la_struct_too_deep_ellipsis initializer.
1694 (ada_language::struct_too_deep_ellipsis): New member function.
1695 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
1696 initializer.
1697 (cplus_language_data): Likewise.
1698 (asm_language_data): Likewise.
1699 (minimal_language_data): Likewise.
1700 * cp-valprint.c (cp_print_value): Update call to
1701 struct_too_deep_ellipsis.
1702 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
1703 initializer.
1704 * f-lang.c (f_language_data): Likewise.
1705 (f_language::struct_too_deep_ellipsis): New member function.
1706 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
1707 initializer.
1708 * language.c (unknown_language_data): Likewise.
1709 (auto_language_data): Likewise.
1710 * language.h (language_data): Delete la_struct_too_deep_ellipsis
1711 member variable.
1712 (language_defn::struct_too_deep_ellipsis): New member function.
1713 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
1714 initializer.Q
1715 * objc-lang.c (objc_language_data): Likewise.
1716 * opencl-lang.c (opencl_language_data): Likewise.
1717 * p-lang.c (pascal_language_data): Likewise.
1718 * rust-lang.c (rust_language_data): Likewise.
1719 * valprint.c (val_print_check_max_depth): Update call to
1720 struct_too_deep_ellipsis.
1721
ed29e1c7
FW
17222020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
1723
1724 * MAINTAINERS (Write After Approval): Add myself.
1725
12d8f940
TT
17262020-09-15 Tom Tromey <tom@tromey.com>
1727
1728 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
1729 Remove.
1730
6b5a7bc7
TT
17312020-09-15 Tom Tromey <tom@tromey.com>
1732
1733 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
1734 and TYPE_CODE_METHODPTR cases.
1735 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
1736 (c_value_print_inner): Update.
1737 * valprint.c (generic_value_print_memberptr): New function, from
1738 c_value_print_memberptr.
1739 (generic_value_print): Use it. Call cplus_print_method_ptr.
1740
47f0e2ff
TT
17412020-09-15 Tom Tromey <tromey@adacore.com>
1742
1743 * python/python-internal.h (PyInt_FromLong): Remove define.
1744 * python/py-value.c (convert_value_from_python): Use
1745 gdb_py_object_from_longest.
1746 * python/py-type.c (typy_get_code): Use
1747 gdb_py_object_from_longest.
1748 * python/py-symtab.c (salpy_get_line): Use
1749 gdb_py_object_from_longest.
1750 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
1751 gdb_py_object_from_longest.
1752 * python/py-record.c (recpy_gap_reason_code): Use
1753 gdb_py_object_from_longest.
1754 * python/py-record-btrace.c (recpy_bt_insn_size)
1755 (recpy_bt_func_level, btpy_list_count): Use
1756 gdb_py_object_from_longest.
1757 * python/py-infthread.c (gdbpy_create_ptid_object): Use
1758 gdb_py_object_from_longest. Fix error handling.
1759 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
1760 gdb_py_object_from_longest.
1761 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
1762 gdb_py_object_from_longest.
1763 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
1764 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
1765 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
1766
512116ce
TT
17672020-09-15 Tom Tromey <tromey@adacore.com>
1768
1769 * python/python.c (gdbpy_parameter_value): Use
1770 gdb_py_object_from_ulongest.
1771
4ab1029c
TT
17722020-09-15 Tom Tromey <tromey@adacore.com>
1773
1774 * python/py-infevents.c (create_register_changed_event_object):
1775 Use gdb_py_object_from_longest.
1776 * python/py-exitedevent.c (create_exited_event_object): Use
1777 gdb_py_object_from_longest.
1778
062534d4
TT
17792020-09-15 Tom Tromey <tromey@adacore.com>
1780
1781 * python/python.c (gdbpy_parameter_value): Use
1782 gdb_py_object_from_longest.
1783 * python/py-type.c (convert_field, typy_range): Use
1784 gdb_py_object_from_longest.
1785 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
1786 gdb_py_object_from_longest.
1787 * python/py-lazy-string.c (stpy_get_length): Use
1788 gdb_py_object_from_longest.
1789 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
1790 gdb_py_object_from_longest.
1791 * python/py-infevents.c (create_memory_changed_event_object): Use
1792 gdb_py_object_from_longest.
1793 * python/py-inferior.c (infpy_get_num): Use
1794 gdb_py_object_from_longest.
1795 (infpy_get_pid): Likewise.
1796
d1cab987
TT
17972020-09-15 Tom Tromey <tromey@adacore.com>
1798
1799 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
1800 defines.
1801 * python/py-value.c (valpy_long): Use
1802 gdb_py_object_from_ulongest.
1803 * python/py-symtab.c (salpy_get_pc): Use
1804 gdb_py_object_from_ulongest.
1805 (salpy_get_last): Likewise.
1806 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
1807 gdb_py_object_from_ulongest.
1808 * python/py-lazy-string.c (stpy_get_address): Use
1809 gdb_py_object_from_ulongest.
1810 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
1811 * python/py-arch.c (archpy_disassemble): Use
1812 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
1813 error handling.
1814
4bde49dc
TT
18152020-09-15 Tom Tromey <tromey@adacore.com>
1816
1817 * python/python-internal.h (gdb_py_long_from_longest): Remove
1818 defines.
1819 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
1820 * python/py-type.c (convert_field, typy_get_sizeof): Use
1821 gdb_py_object_from_longest.
1822 * python/py-record-btrace.c (btpy_list_index): Use
1823 gdb_py_object_from_longest.
1824
37431074
TT
18252020-09-15 Tom Tromey <tromey@adacore.com>
1826
1827 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
1828 * python/py-record.c (recpy_element_number): Use
1829 gdb_py_object_from_longest.
1830 (recpy_gap_number): Likewise.
1831
cbe25684
TT
18322020-09-15 Tom Tromey <tromey@adacore.com>
1833
1834 * top.c (ui::ui): Update.
1835 (highest_ui_num): Remove.
1836 * top.h (struct ui) <num>: Remove.
1837
db92ac45
TT
18382020-09-15 Tom Tromey <tromey@adacore.com>
1839
1840 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
1841 * ui-style.c (ansi_regex_text): Now array.
1842 * rust-exp.y (number_regex_text): Now array.
1843 * linespec.c (linespec_quote_characters): Now array.
1844 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
1845 Now arrays.
1846
d2b31b67
SM
18472020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1848
1849 * debuginfod-support.c (debuginfod_client_deleter): New.
1850 (debuginfod_client_up): New.
1851 (debuginfod_init): Return debuginfod_client_up.
1852 (debuginfod_source_query): Adjust.
1853 (debuginfod_debuginfo_query): Adjust.
1854
3246bd8e
SM
18552020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1856
1857 * debuginfod-support.c (debuginfod_source_query): Use
1858 make_unique_xstrdup.
1859
10242f36
SM
18602020-09-14 Simon Marchi <simon.marchi@efficios.com>
1861
1862 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
1863 with `type::instance_flags`.
1864
e1044e6a
MM
18652020-09-14 Michael Mullin <masmullin@gmail.com>
1866
1867 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
1868 Remove baton parameter.
1869
04902b09
PA
18702020-09-14 Pedro Alves <pedro@palves.net>
1871
1872 * Makefile.in (SELFTESTS_SRCS): Add
1873 unittests/enum-flags-selftests.c.
1874 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
1875 btrace_function_flags instead of enum btrace_function_flag.
1876 * compile/compile-c-types.c (convert_qualified): Use
1877 enum_flags::raw.
1878 * compile/compile-cplus-symbols.c (convert_one_symbol)
1879 (convert_symbol_bmsym):
1880 * compile/compile-cplus-types.c (compile_cplus_convert_method)
1881 (compile_cplus_convert_struct_or_union_methods)
1882 (compile_cplus_instance::convert_qualified_base):
1883 * go-exp.y (parse_string_or_char): Add cast to int.
1884 * unittests/enum-flags-selftests.c: New file.
1885 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
1886 type to btrace_thread_flags from btrace_thread_flag.
1887 (record_btrace_cancel_resume, record_btrace_step_thread): Change
1888 local's type to btrace_thread_flags from btrace_thread_flag. Add
1889 cast in DEBUG call.
1890
69896a2c
PA
18912020-09-14 Pedro Alves <pedro@palves.net>
1892
1893 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
1894 * gdbtypes.c (address_space_name_to_int): Rename to ...
1895 (address_space_name_to_type_instance_flags): ... this.
1896 (address_space_int_to_name): Rename to ...
1897 (address_space_type_instance_flags_to_name): ... this.
1898 * gdbtypes.h (address_space_name_to_int): Rename to ...
1899 (address_space_name_to_type_instance_flags): ... this.
1900 (address_space_int_to_name): Rename to ...
1901 (address_space_type_instance_flags_to_name): ... this.
1902 * type-stack.c (type_stack::insert): Adjust to rename.
1903 * type-stack.h (type_stack::insert): Likewise.
1904
314ad88d
PA
19052020-09-14 Pedro Alves <pedro@palves.net>
1906 Andrew Burgess <andrew.burgess@embecosm.com>
1907
1908 * avr-tdep.c (avr_address_class_type_flags): Return
1909 type_instance_flags.
1910 (avr_address_class_type_flags_to_name): Take a
1911 type_instance_flags.
1912 (avr_address_class_name_to_type_flags): Return bool and take a
1913 type_instance_flags.
1914 * d-lang.c (build_d_types): Use type::set_instance_flags.
1915 * ft32-tdep.c (ft32_address_class_type_flags): Return
1916 type_instance_flags.
1917 (ft32_address_class_type_flags_to_name): Take a
1918 type_instance_flags.
1919 (ft32_address_class_name_to_type_flags): Return bool and take a
1920 type_instance_flags.
1921 (ft32_gdbarch_init): Use type::set_instance_flags.
1922 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
1923 * gdbarch.h, gdbarch.c: Regenerate.
1924 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
1925 (address_class_name_to_type_flags): Use type_instance_flags and
1926 bool.
1927 * gdbtypes.c (address_space_name_to_int)
1928 (address_space_int_to_name, make_qualified_type): Use
1929 type_instance_flags.
1930 (make_qualified_type): Use type_instance_flags and
1931 type::set_instance_flags.
1932 (make_type_with_address_space, make_cv_type, make_vector_type)
1933 (check_typedef): Use type_instance_flags.
1934 (recursive_dump_type): Cast type_instance_flags to unsigned for
1935 printing.
1936 (copy_type_recursive): Use type::set_instance_flags.
1937 (gdbtypes_post_init): Use type::set_instance_flags.
1938 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
1939 <m_instance_flags>: ... this.
1940 <instance_flags, set_instance_flags>: New methods.
1941 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
1942 (SET_TYPE_INSTANCE_FLAGS): New.
1943 (address_space_name_to_int, address_space_int_to_name)
1944 (make_type_with_address_space): Pass flags using
1945 type_instance_flags instead of int.
1946 * stabsread.c (cleanup_undefined_types_noname): Use
1947 type::set_instance_flags.
1948 * s390-tdep.c (s390_address_class_type_flags): Return
1949 type_instance_flags.
1950 (s390_address_class_type_flags_to_name): Take a
1951 type_instance_flags.
1952 (s390_address_class_name_to_type_flags): Return bool and take a
1953 type_instance_flags.
1954 * type-stack.c (type_stack::follow_types): Use
1955 type_instance_flags.
1956 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
1957
27087b7f
TT
19582020-09-14 Tom Tromey <tromey@adacore.com>
1959
1960 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
1961 * x86-tdep.c (x86_is_thunk_register_name)
1962 (x86_in_indirect_branch_thunk): Update.
1963 * sparc64-tdep.c (sparc64_fpu_register_names)
1964 (sparc64_cp0_register_names, sparc64_register_names)
1965 (sparc64_pseudo_register_names): Now const.
1966 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
1967 cp0_registers_num>: Now const.
1968 * sparc-tdep.c (sparc_core_register_names)
1969 (sparc32_fpu_register_names, sparc32_cp0_register_names)
1970 (sparc32_pseudo_register_names): Now const.
1971 (validate_tdesc_registers): Update.
1972 * rust-lang.c (rust_extensions): Now const.
1973 * p-lang.c (p_extensions): Now const.
1974 * objc-lang.c (objc_extensions): Now const.
1975 * nto-tdep.c (nto_thread_state_str): Now const.
1976 * moxie-tdep.c (moxie_register_names): Now const.
1977 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
1978 Now const.
1979 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
1980 (mips_linux_reg_names): Now const.
1981 (mips_gdbarch_init): Update.
1982 * microblaze-tdep.c (microblaze_register_names): Now const.
1983 * m68k-tdep.c (m68k_register_names): Now const.
1984 * m32r-tdep.c (m32r_register_names): Now const.
1985 * ia64-tdep.c (ia64_register_names): Now const.
1986 * i386-tdep.h (struct gdbarch_tdep) <register_names,
1987 ymmh_register_names, ymm16h_regnum, mpx_register_names,
1988 k_register_names, zmmh_register_names, xmm_avx512_register_names,
1989 ymm_avx512_register_names, pkeys_register_names>: Now const.
1990 * i386-tdep.c (i386_register_names, i386_zmm_names)
1991 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
1992 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
1993 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
1994 * f-lang.c (f_extensions): Now const.
1995 * d-lang.c (d_extensions): Now const.
1996 * csky-tdep.c (csky_register_names): Now const.
1997 * charset.c (default_charset_names, charset_enum): Now const.
1998 (_initialize_charset): Update.
1999 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
2000 const.
2001 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
2002 (bsd_uthread_solib_loaded): Update.
2003 (bsd_uthread_state): Now const.
2004 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
2005 (amd64_ymm_avx512_names, amd64_ymmh_names)
2006 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
2007 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
2008 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
2009 (amd64_dword_names): Now const.
2010 * agent.c (can_use_agent_enum): Now const.
2011 * ada-tasks.c (task_states, long_task_states): Now const.
2012 * ada-lang.c (known_runtime_file_name_patterns)
2013 (known_auxiliary_function_name_patterns, attribute_names)
2014 (standard_exc, ada_extensions): Now const.
2015
89806626
SM
20162020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2017
2018 * bcache.h (struct bcache) <bcache>: Remove constructor.
2019 <m_hash_function, m_compare_function>: Remove.
2020 <~bcache>: Make virtual.
2021 <compare>: Remove static method, introduce virtual method.
2022 <default_hash>: Remove.
2023 <hash>: New virtual method.
2024 * bcache.c (bcache::expand_hash_table): Update.
2025 (bcache::insert): Update.
2026 (bcache::hash): New.
2027 (bcache::compare): Update comment and parameter names.
2028 * gdbtypes.c (types_deeply_equal): Update.
2029 * psymtab.h (struct psymbol_bcache): New struct.
2030 (class psymtab_storage) <psymtab_storage>: Make default.
2031 <psymbol_cache>: Change type to psymbol_bcache.
2032 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
2033 (psymbol_hash): Change to...
2034 (psymbol_bcache::hash): ... this.
2035 (psymbol_compare): Change to...
2036 (psymbol_bcache::compare): ... this.
2037
677c92fe
SM
20382020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2039
2040 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
2041 checking for initial lwp.
2042
3eba3a01
TT
20432020-09-14 Tom Tromey <tromey@adacore.com>
2044
2045 * m68k-tdep.c (m68k_extract_return_value): Use
2046 pointer_result_regnum.
2047 (m68k_store_return_value): Likewise.
2048 (m68k_reg_struct_return_p): Handle vectors and arrays.
2049 (m68k_return_value): Handle arrays.
2050 (m68k_svr4_return_value): Fix single-element aggregate handling.
2051 Handle long double. Adjust for embedded ABI.
2052 (m68k_svr4_init_abi): Set pointer_result_regnum.
2053 (m68k_embedded_init_abi): New function.
2054 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
2055 (m68k_osabi_sniffer): New function.
2056 (_initialize_m68k_tdep): Register osabi sniffer.
2057 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
2058 member.
2059
33f4dd48
SM
20602020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2061
2062 * xml-support.c (xml_fetch_content_from_file): Replace xfree
2063 with gdb::unique_xmalloc_ptr<char>.
2064
8400a90d
SM
20652020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2066
2067 * xml-support.h (xml_fetch_another): Change type to be a
2068 function_view.
2069 (xml_process_xincludes): Remove baton parameter.
2070 (xml_fetch_content_from_file): Change baton parameter to
2071 dirname.
2072 * xml-support.c (struct xinclude_parsing_data)
2073 <xinclude_parsing_data>: Remove baton parameter.
2074 <fetcher_baton>: Remove.
2075 (xinclude_start_include): Adjust.
2076 (xml_process_xincludes): Adjust.
2077 (xml_fetch_content_from_file): Replace baton parameter with
2078 dirname.
2079 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
2080 (xml_init_syscalls_info): Use a lambda.
2081 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
2082 (file_read_description_xml): Use a lambda.
2083 (fetch_available_features_from_target): Change baton parameter
2084 to target_ops.
2085 (target_read_description_xml): Use a lambda.
2086 (target_fetch_description_xml): Use a lambda.
2087 (string_read_description_xml): Update.
2088
04f5bab2
SM
20892020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2090
2091 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
2092 uses with type::endianity_is_not_default.
2093
db558e34
SM
20942020-09-14 Simon Marchi <simon.marchi@efficios.com>
2095
2096 * gdbtypes.h (struct type) <endianity_is_not_default,
2097 set_endianity_is_not_default>: New methods.
2098 (TYPE_ENDIANITY_NOT_DEFAULT): Use
2099 type::endianity_is_not_default, change all write call sites to
2100 use type::set_endianity_is_not_default.
2101
22c4c60c
SM
21022020-09-14 Simon Marchi <simon.marchi@efficios.com>
2103
2104 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
2105 uses with type::is_fixed_instance.
2106
9cdd0d12
SM
21072020-09-14 Simon Marchi <simon.marchi@efficios.com>
2108
2109 * gdbtypes.h (struct type) <is_fixed_instance,
2110 set_is_fixed_instance>: New methods.
2111 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
2112 write call sites to use type::set_is_fixed_instance.
2113
0becda7a
SM
21142020-09-14 Simon Marchi <simon.marchi@efficios.com>
2115
2116 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
2117 uses with type::is_gnu_ifunc.
2118
03cc7249
SM
21192020-09-14 Simon Marchi <simon.marchi@efficios.com>
2120
2121 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
2122 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
2123 use type::set_is_gnu_ifunc.
2124
3f46044c
SM
21252020-09-14 Simon Marchi <simon.marchi@efficios.com>
2126
2127 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
2128 uses with type::stub_is_supported.
2129
9baccff6
SM
21302020-09-14 Simon Marchi <simon.marchi@efficios.com>
2131
2132 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
2133 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
2134 use type::set_stub_is_supported.
2135
bd63c870
SM
21362020-09-14 Simon Marchi <simon.marchi@efficios.com>
2137
2138 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
2139 uses with type::is_vector.
2140
2062087b
SM
21412020-09-14 Simon Marchi <simon.marchi@efficios.com>
2142
2143 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
2144 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
2145 use type::set_is_vector.
2146
a409645d
SM
21472020-09-14 Simon Marchi <simon.marchi@efficios.com>
2148
2149 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
2150 uses with type::has_varargs.
2151
1d6286ed
SM
21522020-09-14 Simon Marchi <simon.marchi@efficios.com>
2153
2154 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
2155 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
2156 use type::set_has_varargs.
2157
7f9f399b
SM
21582020-09-14 Simon Marchi <simon.marchi@efficios.com>
2159
2160 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
2161 uses with type::is_prototyped.
2162
27e69b7a
SM
21632020-09-14 Simon Marchi <simon.marchi@efficios.com>
2164
2165 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
2166 New methods.
2167 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
2168 call sites to use type::set_is_prototyped.
2169
d2183968
SM
21702020-09-14 Simon Marchi <simon.marchi@efficios.com>
2171
2172 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
2173 uses with type::target_is_stub.
2174
8f53807e
SM
21752020-09-14 Simon Marchi <simon.marchi@efficios.com>
2176
2177 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
2178 New methods.
2179 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
2180 sites to use type::set_target_is_stub.
2181
e46d3488
SM
21822020-09-14 Simon Marchi <simon.marchi@efficios.com>
2183
2184 * gdbtypes.h (TYPE_STUB): Remove, replace all
2185 uses with type::is_stub.
2186
b4b73759
SM
21872020-09-14 Simon Marchi <simon.marchi@efficios.com>
2188
2189 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
2190 (TYPE_STUB): Use type::is_stub, change all write call sites to
2191 use type::set_is_stub.
2192
20ce4123
SM
21932020-09-14 Simon Marchi <simon.marchi@efficios.com>
2194
2195 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
2196 type::has_no_signedness.
2197
15152a54
SM
21982020-09-14 Simon Marchi <simon.marchi@efficios.com>
2199
2200 * gdbtypes.h (struct type) <has_no_signedness,
2201 set_has_no_signedness>: New methods.
2202 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
2203 call sites to use type::set_has_no_signedness.
2204
c6d940a9
SM
22052020-09-14 Simon Marchi <simon.marchi@efficios.com>
2206
2207 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
2208 type::is_unsigned.
2209
653223d3
SM
22102020-09-14 Simon Marchi <simon.marchi@efficios.com>
2211
2212 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
2213 methods.
2214 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
2215 sites to use type::set_is_unsigned.
2216
55ea94da 22172020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
e851246a 2218 Adam Renquinha <arenquinha@cimeq.qc.ca>
55ea94da 2219
e851246a
SM
2220 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
2221 pointer and stack frame offset when unwinding.
55ea94da 2222
6791b117
PA
22232020-09-13 Pedro Alves <pedro@palves.net>
2224
2225 * NEWS: Document "-break-insert --qualified".
2226 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
2227
77f2120b
PA
22282020-09-13 Pedro Alves <pedro@palves.net>
2229
2230 * linespec.c (classify_mtype, compare_msyms): Delete.
2231 (search_minsyms_for_name): Remove classification logic. Instead
2232 filter out trampoline symbols if we also found an external
2233 function of the same name.
2234
ed6a896c
JB
22352020-09-13 Joel Brobecker <brobecker@adacore.com>
2236
2237 * NEWS: Create a new section for the next release branch.
2238 Rename the section of the current branch, now that it has
2239 been cut.
2240
32aea73e
JB
22412020-09-13 Joel Brobecker <brobecker@adacore.com>
2242
2243 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
2244 * version.in: Bump version to 11.0.50.DATE-git.
2245
8087c3fa
JB
22462020-09-12 Joel Brobecker <brobecker@adacore.com>
2247
2248 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
2249
2a67f09d
FW
22502020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
2251 Felix Willgerodt <Felix.Willgerodt@intel.com>
2252
2253 * gdbarch.sh: Added bfloat16 type.
2254 * gdbarch.c: Regenerated.
2255 * gdbarch.h: Regenerated.
2256 * gdbtypes.c (floatformats_bfloat16): New struct.
2257 (gdbtypes_post_init): Add builtin_bfloat16.
2258 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
2259 (floatformats_bfloat16): New struct.
2260 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
2261 (i386_ymm_type): Add field "v16_bfloat16"
2262 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
2263 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
2264 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
2265 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
2266 * features/i386/64bit-avx512.xml: Add bfloat16 type.
2267 * features/i386/64bit-avx512.c: Regenerated.
2268 * features/i386/64bit-sse.xml: Add bfloat16 type.
2269 * features/i386/64bit-sse.c: Regenerated.
2270
1347d111
FW
22712020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
2272
2273 * i386-tdep.c (i386_zmm_type): Fix field names.
2274 (i386_ymm_type): Fix field names.
2275
7a4e8e7d
TBA
22762020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2277
2278 * breakpoint.c: Fix typo in the help message of the
2279 "set breakpoint condition-evaluation" command.
2280
cf4ac4be
KR
22812020-09-10 Kamil Rytarowski <n54@gmx.com>
2282
2283 * nbsd-nat.c: Include "nat/netbsd-nat.h".
2284 * (nbsd_nat_target::pid_to_exec_file)
2285 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
2286 (nbsd_nat_target::post_startup_inferior)
2287 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
2288 (nbsd_add_threads): Switch local code to common gdb/nat functions.
2289 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
2290 * (nbsd_thread_lister): Remove.
2291
f404573e
KR
22922020-09-10 Kamil Rytarowski <n54@gmx.com>
2293
2294 * fork-inferior.c (startup_inferior): Avoid double free.
2295
1ccb2c17
KR
22962020-09-10 Kamil Rytarowski <n54@gmx.com>
2297
2298 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
2299 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
2300
feedfcc7
KR
23012020-09-10 Kamil Rytarowski <n54@gmx.com>
2302
2303 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
2304 * netbsd-nat.c: Include <sys/ptrace.h>.
2305 * (netbsd_nat::enable_proc_events): Add.
2306
c489f8c6
KR
23072020-09-10 Kamil Rytarowski <n54@gmx.com>
2308
2309 * netbsd-nat.h: Include "gdbsupport/function-view.h".
2310 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
2311 (netbsd_nat::for_each_thread): Add.
2312 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
2313 "gdbsupport/common-debug.h".
2314 * (netbsd_nat::netbsd_thread_lister)
2315 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
2316 (netbsd_nat::for_each_thread): Add.
2317
330662f6
KR
23182020-09-10 Kamil Rytarowski <n54@gmx.com>
2319
2320 * netbsd-nat.h: Include <unistd.h>.
2321 * (netbsd_nat::pid_to_exec_file): Add.
2322 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
2323 * (netbsd_nat::pid_to_exec_file) Add.
2324
70b67307
KR
23252020-09-10 Kamil Rytarowski <n54@gmx.com>
2326
2327 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
2328
99cf6da6
KR
23292020-09-10 Kamil Rytarowski <n54@gmx.com>
2330
2331 * netbsd-nat.h: New file.
2332 * netbsd-nat.c: Likewise.
2333
1b788fb6
TT
23342020-09-09 Tom Tromey <tromey@adacore.com>
2335
2336 * ada-lang.c (remove_extra_symbols): Do not increment when
2337 removing an element
2338
03b0a45f
TT
23392020-09-08 Tom Tromey <tromey@adacore.com>
2340
2341 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
2342
3cae4447
TT
23432020-09-08 Tom Tromey <tromey@adacore.com>
2344
2345 PR win32/25302:
2346 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
2347 (gdb_bfd_init_data): New function.
2348 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
2349
7f08fd51
TBA
23502020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2351
2352 * infrun.c (fetch_inferior_event): Use
2353 `switch_to_target_no_thread` to switch the target.
2354
3e6ff933
TT
23552020-09-06 Tom Tromey <tom@tromey.com>
2356
2357 * symfile.h (dwarf2_free_objfile): Don't declare.
2358
e56798df
AKS
23592020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2360
2361 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
2362 to match 16 byte real/complex type generated by Flang compiler.
2363
8f5c6526
TV
23642020-09-03 Tom de Vries <tdevries@suse.de>
2365
2366 PR breakpoint/26546
2367 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
2368 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
2369
c5065df0
SM
23702020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
2371
2372 * maint.c (index_digits): New function.
2373 (struct maint_print_section_data): Remove.
2374 (print_bfd_section_info): Remove print_data parameter, add arg
2375 and index_digits.
2376 (print_objfile_section_info): Likewise.
2377 (print_bfd_section_info_maybe_relocated): Likewise (plus
2378 objfile).
2379 (maintenance_info_sections): Adjust calls.
2380
02c6f3f1
TT
23812020-09-02 Tom Tromey <tromey@adacore.com>
2382
2383 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
2384 for null pointers.
2385 (ada_varobj_adjust_for_child_access): Special-case null pointers.
2386
ef5e5b0b
SM
23872020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
2388
2389 * bcache.h (struct bcache) <insert>: Change type of `added` to
2390 pointer to bool.
2391 * bcache.c (bcache::insert): Likewise.
2392 * gdbtypes.c (check_types_worklist): Adjust.
2393 * psymtab.c (add_psymbol_to_bcache): Adjust.
2394
973695d6
KB
23952020-08-31 Kevin Buettner <kevinb@redhat.com>
2396
2397 * corelow.c (unordered_set): Include.
2398 (class core_target): Add field 'm_core_unavailable_mappings'.
2399 (core_target::build_file_mappings): Print only one warning
2400 per inaccessible file. Add unavailable/broken mappings
2401 to m_core_unavailable_mappings.
2402 (core_target::xfer_partial): Call...
2403 (core_target::xfer_memory_via_mappings): New method.
2404
264fc0e2
SM
24052020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
2406
2407 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
2408 type to bool.
2409
2de01bdb
SM
24102020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
2411
2412 * dwarf2/read.c (struct field_info): Fix indentation.
2413
f3bd50f1
SM
24142020-08-31 Simon Marchi <simon.marchi@efficios.com>
2415
2416 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
2417 ordering in comment.
2418 * frame.c (frame_id_eq): Fix indentation.
2419
22b9b4b0
SL
24202020-08-31 Scott Linder <scott@scottlinder.com>
2421 Simon Marchi <simon.marchi@efficios.com>
2422
2423 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
2424 inline frame ids in outer frame.
2425
84154d16
SM
24262020-08-31 Simon Marchi <simon.marchi@efficios.com>
2427
2428 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
2429 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
2430 (outer_frame_id): Use FID_STACK_OUTER instead of
2431 FID_STACK_INVALID.
2432 (frame_id_p): Don't check for outer_frame_id.
2433
8efaf6b3
SM
24342020-08-31 Simon Marchi <simon.marchi@efficios.com>
2435
2436 * frame-unwind.c (frame_unwind_got_optimized): Don't set
2437 regnum/frame in value. Call allocate_value_lazy.
2438 * frame.c (frame_unwind_register_value): Use
2439 val_print_not_saved.
2440
fe1fe7ea
SM
24412020-08-31 Simon Marchi <simon.marchi@efficios.com>
2442
2443 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
2444
f7c7700d
PA
24452020-08-29 Pedro Alves <pedro@palves.net>
2446
2447 * progspace.c (print_program_space): Use all_inferiors. Switch to
2448 the inferior before calling target_pid_to_str.
2449
e0814aae
TT
24502020-08-28 Tom Tromey <tom@tromey.com>
2451
2452 * xcoffread.c (xcoff_end_psymtab): Update comment.
2453 * dbxread.c (dbx_end_psymtab): Update comment.
2454
626d2320
TV
24552020-08-28 Tom de Vries <tdevries@suse.de>
2456
2457 PR breakpoint/26544
2458 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
2459 event_location.
2460 (create_breakpoint): Same.
2461 (base_breakpoint_decode_location): Same.
2462 (bkpt_create_sals_from_location): Same.
2463 (bkpt_decode_location): Same.
2464 (bkpt_probe_create_sals_from_location): Same.
2465 (bkpt_probe_decode_location): Same.
2466 (tracepoint_create_sals_from_location): Same.
2467 (tracepoint_decode_location): Same.
2468 (tracepoint_probe_decode_location): Same.
2469 (strace_marker_create_sals_from_location): Same.
2470 (strace_marker_decode_location): Same.
2471 (create_sals_from_location_default): Same.
2472 (decode_location_default): Same.
2473 * breakpoint.h (struct breakpoint_ops): Same.
2474 (create_breakpoint): Same.
2475 * linespec.h (decode_line_full): Same.
2476 * linespec.c (decode_line_full): Same. Throw error if
2477 result.size () == 0.
2478
df631783
PA
24792020-08-27 Pedro Alves <pedro@palves.net>
2480
2481 PR gdb/26524
2482 * breakpoint.c (until_break_fsm) <location_breakpoint,
2483 caller_breakpoint>: Delete fields.
2484 <breakpoints>: New field.
2485 <until_break_fsm>: Adjust to save a breakpoint vector instead of
2486 two individual breakpoints.
2487 (until_break_fsm::should_stop): Loop over breakpoints in the
2488 breakpoint vector.
2489 (until_break_fsm::clean_up): Adjust to clear the breakpoints
2490 vector.
2491 (until_break_command): Handle location expanding into multiple
2492 sals.
2493
b2b38aa4
PA
24942020-08-27 Pedro Alves <pedro@palves.net>
2495
2496 PR gdb/26523
2497 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
2498 bp_until breakpoints user-specified locations. Update intro
2499 comment.
2500
b886559f
SM
25012020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
2502
2503 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
2504 gdb_bfd_sections): New.
2505 * maint.c (print_bfd_section_info): Change param type to
2506 maint_print_section_data.
2507 (print_objfile_section_info): Likewise.
2508 (print_bfd_section_info_maybe_relocated): Likewise.
2509 (maintenance_info_sections): Use gdb_bfd_sections.
2510
4c6e63bf
SV
25112020-08-25 Shahab Vahedi <shahab@synopsys.com>
2512
2513 * MAINTAINERS: Add ARC target and maintainer.
2514
8d7f0635
AK
25152020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
2516
2517 * configure.tgt: ARC support for GNU/Linux.
2518 * Makefile.in (ALL_TARGET_OBJS): Likewise.
2519 * arc-linux-tdep.c: New file.
2520 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
2521 * arc-tdep.c (arc_write_pc): Use it.
2522
fdd8731b
SV
25232020-08-25 Shahab Vahedi <shahab@synopsys.com>
2524
2525 * arc-tdep.c (arc_check_for_hardware_loop): New.
2526 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
2527
22459524
SV
25282020-08-25 Shahab Vahedi <shahab@synopsys.com>
2529
2530 * arc-tdep.h: Include "gdbarch.h".
2531
995d3a19
SV
25322020-08-25 Shahab Vahedi <shahab@synopsys.com>
2533
2534 * arch/arc.h
2535 (arc_gdbarch_features): New class to stir the selection of target XML.
2536 (arc_create_target_description): Use FEATURES to choose XML target.
2537 (arc_lookup_target_description): Use arc_create_target_description
2538 to create _new_ target descriptions or return the already created
2539 ones if the FEATURES is the same.
2540 * arch/arc.c: Implementation of prototypes described above.
2541 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
2542 (arc_gdbarch_features_init): Initialize the FEATURES struct.
2543 * arc-tdep.c (*_feature_name): Make feature names consistent.
2544 (arc_register_feature): A new struct to hold information about
2545 registers of a particular target/feature.
2546 (arc_check_tdesc_feature): Check if XML provides registers in
2547 compliance with ARC_REGISTER_FEATURE structs.
2548 (arc_update_acc_reg_names): Add aliases for r58 and r59.
2549 (determine_*_reg_feature_set): Which feature name to look for.
2550 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
2551 (mach_type_to_arc_isa): Convert from a set of binutils machine types
2552 to expected ISA enums to be used in arc_gdbarch_features structs.
2553 * features/Makefile (FEATURE_XMLFILES): Add new files.
2554 * gdb/features/arc/v1-aux.c: New file.
2555 * gdb/features/arc/v1-aux.xml: Likewise.
2556 * gdb/features/arc/v1-core.c: Likewise.
2557 * gdb/features/arc/v1-core.xml: Likewise.
2558 * gdb/features/arc/v2-aux.c: Likewise.
2559 * gdb/features/arc/v2-aux.xml: Likewise.
2560 * gdb/features/arc/v2-core.c: Likewise.
2561 * gdb/features/arc/v2-core.xml: Likewise.
2562 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
2563
3945d2d7
GM
25642020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
2565 Andrew Burgess <andrew.burgess@embecosm.com>
2566
2567 PR m2/26372
fc5d6901 2568 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
2569 an assert. Remove single element array indexing pattern as the
2570 MULTI_SUBSCRIPT support will handle this case too.
2571
2677f2d3
SM
25722020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
2573
2574 * value.h (valprint_check_validity): Move declaration from
2575 here...
2576 * valprint.h (valprint_check_validity): ... to here.
2577
c426fddb
SM
25782020-08-24 Simon Marchi <simon.marchi@efficios.com>
2579
2580 * debug.h: New file.
2581 * debug.c (debug_prefixed_vprintf): New function.
2582 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
2583 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
2584
1eb8556f
SM
25852020-08-24 Simon Marchi <simon.marchi@efficios.com>
2586
2587 * infrun.h (infrun_debug_printf_1): New function declaration.
2588 (infrun_debug_printf): New macro.
2589 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
2590 throughout.
2591 (infrun_debug_printf): New function.
2592 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
2593 (handle_jit_event): Likewise.
2594
b8fff44e
MW
25952020-08-21 Mark Wielaard <mark@klomp.org>
2596
2597 * ada-lex.l: Extend register warnings diagnostics comment for g++.
2598
d19c3068
SM
25992020-08-22 Simon Marchi <simon.marchi@efficios.com>
2600
2601 * frame.c (enum class frame_id_status): New.
2602 (struct frame_info) <this_id::p>: Change type to frame_id_status.
2603 (fprintf_frame): Update.
2604 (compute_frame_id): Set frame id status to "computing" on entry.
2605 Set it back to "not_computed" on failure and to "computed" on
2606 success.
2607 (get_frame_id): Assert the frame id is not being computed.
2608 (create_sentinel_frame): Use frame_id_status::COMPUTED.
2609 (create_new_frame): Likewise.
2610 (frame_cleanup_after_sniffer): Update assert.
2611
b70e516e
SM
26122020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2613
2614 * regcache.c (pid_ptid_regcache_map): New type.
2615 (target_ptid_regcache_map): Remove.
2616 (target_pid_ptid_regcache_map): New type.
2617 (regcaches): Change type to target_pid_ptid_regcache_map.
2618 (get_thread_arch_aspace_regcache): Update.
2619 (regcache_thread_ptid_changed): Update, handle pid-like ptid
2620 case.
2621 (regcaches_size): Update.
2622 (regcache_count): Update.
2623 (registers_changed_ptid_target_pid_test): New.
2624 (_initialize_regcache): Register new test.
2625
cdd9148a
SM
26262020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2627
2628 * regcache.c (regcache_count): New.
2629 (struct regcache_test_data): New.
2630 (regcache_test_data_up): New.
2631 (populate_regcaches_for_test): New.
2632 (regcaches_test): Remove.
2633 (get_thread_arch_aspace_regcache_test): New.
2634 (registers_changed_ptid_all_test): New.
2635 (registers_changed_ptid_target_test): New.
2636 (registers_changed_ptid_target_ptid_test): New.
2637 (regcache_thread_ptid_changed): Remove regcache_count lambda.
2638 (_initialize_regcache): Register new tests.
2639
dd125343
SM
26402020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2641
2642 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
2643 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
2644 gdbarch and aspace parameter. Use current inferior's aspace.
2645 Validate regcache's arch value.
2646 (regcaches_test): Update.
2647
3ee93972
SM
26482020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2649
2650 * regcache.c (regcaches_test): Call registers_changed.
2651
33bf4c5c
TBA
26522020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2653
2654 * infrun.c (process_event_stop_test): Fix typo "breapoint".
2655
c2fd7fae
AKS
26562020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2657
2658 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
2659 to find the end of prologue for flang compiled binaries.
2660 * arm-tdep.c (arm_skip_prologue): Likewise.
2661 * i386-tdep.c (i386_skip_prologue): Likewise.
2662 * producer.c (producer_is_llvm): New function.
2663 (producer_parsing_tests): Added new tests for clang/flang.
2664 * producer.h (producer_is_llvm): New declaration.
2665
9327494e
SM
26662020-08-18 Simon Marchi <simon.marchi@efficios.com>
2667
2668 * linux-nat.c (linux_nat_debug_printf): New function.
2669 (linux_nat_debug_printf_1): New macro. Use throughout the file.
2670
d138725a
AM
26712020-08-18 Aaron Merey <amerey@redhat.com>
2672
2673 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
2674 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
2675 (CLIBS): Add DEBUGINFOD_LIBS.
2676
f9b11e6b
ST
26772020-08-17 Sergei Trofimovich <siarheit@google.com>
2678
2679 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
2680 'gdbarch_num_regs'.
2681
3ae7ab99
TT
26822020-08-17 Tom Tromey <tromey@adacore.com>
2683
2684 * ada-varobj.c (ada_varobj_decode_var): Handle case where
2685 ada_get_decoded_value returns NULL.
2686
b017825f
TT
26872020-08-17 Tom Tromey <tromey@adacore.com>
2688
2689 * python/py-inferior.c (infpy_search_memory): Use
2690 gdb_py_object_from_ulongest.
2691 * python/py-infevents.c (create_inferior_call_event_object)
2692 (create_memory_changed_event_object): Use
2693 gdb_py_object_from_ulongest.
2694 * python/py-linetable.c (ltpy_entry_get_pc): Use
2695 gdb_py_object_from_ulongest.
2696
7635cf79
SM
26972020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
2698
2699 * loc.c (class symbol_needs_eval_context): Fix indentation.
2700
f54be24b
SM
27012020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
2702
2703 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
2704 bool.
2705
53d5a2a5
TV
27062020-08-17 Tom de Vries <tdevries@suse.de>
2707
2708 PR gdb/26393
2709 * gdbtypes.c (dump_dynamic_prop): New function.
2710 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
2711
547ce8f0
TV
27122020-08-15 Tom de Vries <tdevries@suse.de>
2713
2714 PR backtrace/26390
2715 * stack.c (print_frame_args): Temporarily set the selected
2716 frame to FRAME while printing the frame's arguments.
2717
6ea815e7
PFC
27182020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2719
2720 PR breakpoints/26385
2721 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
2722 Always clear watchpoint with PTRACE_SET_DEBUGREG.
2723
6e562fa3
PFC
27242020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2725
2726 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
2727 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
2728 and >= to check return value instead of == -1 and != -1.
2729
d369b608
SM
27302020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
2731
2732 * utils.h (class gdb_argv) <as_array_view>: New method.
2733 * utils.c (gdb_argv_as_array_view_test): New.
2734 (_initialize_utils): Register selftest.
2735 * maint.c (maintenance_selftest): Use the new method.
2736
b31488a3
KR
27372020-08-13 Kamil Rytarowski <n54@gmx.com>
2738
2739 * target.h (supports_dumpcore, dumpcore): New
2740 function declarations.
2741 * target.c (supports_dumpcore, dumpcore): New
2742 functions.
2743 * target-delegates.c: Rebuild.
2744 * gcore.c (gcore_command): Use target_supports_dumpcore ()
2745 and target_dumpcore ().
2746
002a3166
AM
27472020-08-13 Aaron Merey <amerey@redhat.com>
2748
2749 * debuginfod-support.c: Replace global variables with user_data.
2750
ece5bc8a
SM
27512020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
2752
2753 * maint.c (maintenance_selftest): Split args and pass array_view
2754 to run_tests.
2755
6d8a0a5e
LM
27562020-08-12 Luis Machado <luis.machado@linaro.org>
2757
2758 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
2759 type's length.
2760 Use %s and pulongest to print the length.
2761
7cf663a9
PA
27622020-08-12 Pedro Alves <palves@redhat.com>
2763
2764 * NEWS: Move "Multi-target debugging support" item to the
2765 "Changes since GDB 9" section.
2766
27c7b875
PA
27672020-08-12 Pedro Alves <palves@redhat.com>
2768
2769 PR gdb/26336
2770 * progspace.c (program_space::remove_objfile): Invalidate the
2771 frame cache.
2772
1796a2a1
TV
27732020-08-11 Tom de Vries <tdevries@suse.de>
2774
2775 * MAINTAINERS: Mark ms1 as deleted.
2776
f8e3fe0d
LM
27772020-08-10 Luis Machado <luis.machado@linaro.org>
2778
2779 PR gdb/26310
2780
2781 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
2782 act accordingly.
2783 (aarch64_analyze_prologue_test): Add more unit tests to exercise
2784 movz/str/stur/stp skipping behavior.
2785
cc308722
LM
27862020-08-10 Luis Machado <luis.machado@linaro.org>
2787
2788 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
2789 struct user_sve_header instead of struct sve_context.
2790
041d9819
SM
27912020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
2792
2793 * read.h (dwarf2_fetch_die_loc_sect_off,
2794 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
2795 `void *` parameter with function_view.
2796 * read.c (dwarf2_fetch_die_loc_sect_off,
2797 dwarf2_fetch_die_loc_cu_off): Likewise.
2798 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
2799 (per_cu_dwarf_call): Adjust.
2800 (get_frame_address_in_block_wrapper): Remove.
2801 (indirect_synthetic_pointer): Adjust.
2802 (get_ax_pc): Remove.
2803 (dwarf2_compile_expr_to_ax): Adjust.
2804
38f8aa06
TV
28052020-08-08 Tom de Vries <tdevries@suse.de>
2806
2807 PR build/26344
2808 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
2809 constructor.
2810 * regcache.c (get_thread_arch_aspace_regcache): Same.
2811
a52b3ae2
TT
28122020-08-07 Tom Tromey <tromey@adacore.com>
2813
2814 * ravenscar-thread.c
2815 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
2816 New method.
2817 (ravenscar_thread_target::wait): Check
2818 runtime_initialized.
2819 (ravenscar_thread_target::prepare_to_store)
2820 (ravenscar_thread_target::stopped_by_sw_breakpoint)
2821 (ravenscar_thread_target::stopped_by_hw_breakpoint)
2822 (ravenscar_thread_target::stopped_by_watchpoint)
2823 (ravenscar_thread_target::stopped_data_address)
2824 (ravenscar_thread_target::core_of_thread): Use
2825 scoped_restore_current_thread and
2826 set_base_thread_from_ravenscar_task.
2827
0e29517d
TT
28282020-08-07 Tom Tromey <tromey@adacore.com>
2829
2830 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
2831
592f9bd7
TT
28322020-08-07 Tom Tromey <tromey@adacore.com>
2833
2834 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
2835 update_inferior_ptid before update_thread_list.
2836 (temporarily_change_regcache_ptid): New class.
2837 (ravenscar_thread_target::fetch_registers)
2838 (ravenscar_thread_target::store_registers)
2839 (ravenscar_thread_target::prepare_to_store): Use base thread when
2840 forwarding operation.
2841
39e2018a
TT
28422020-08-07 Tom Tromey <tromey@adacore.com>
2843
2844 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
2845 "is_pid" case.
2846
2080266b
TT
28472020-08-07 Tom Tromey <tromey@adacore.com>
2848
2849 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
2850 New methods.
2851 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
2852 first.
2853 (ravenscar_thread_target::add_thread): Rename from
2854 ravenscar_add_thread.
2855 (ravenscar_thread_target::update_thread_list): Use a lambda.
2856 (ravenscar_thread_target::xfer_partial): New method.
2857
78c02f21
TT
28582020-08-07 Tom Tromey <tromey@adacore.com>
2859
2860 * ada-lang.h (ada_task_list_iterator_ftype): Now a
2861 gdb::function_view.
2862 (iterate_over_live_ada_tasks): Change type of argument.
2863 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
2864 of argument.
2865
d5d833af
TT
28662020-08-07 Tom Tromey <tromey@adacore.com>
2867
2868 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
2869 Remove.
2870 (ravenscar_thread_target::extra_thread_info): Remove.
2871 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
2872 defer to target beneath for non-Ravenscar threads.
2873
a8ac85bb
TT
28742020-08-07 Tom Tromey <tromey@adacore.com>
2875
2876 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
2877 get_base_thread_from_ravenscar_task>: Now methods.
2878 <m_cpu_map>: New member.
2879 (ravenscar_thread_target::get_thread_base_cpu): Rename from
2880 ravenscar_get_thread_base_cpu. Check m_cpu_map.
2881 (ravenscar_thread_target::task_is_currently_active): Update.
2882 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
2883 Now a method.
2884 (ravenscar_thread_target::add_active_thread): Put initial thread
2885 into the m_cpu_map.
2886
550ab58d
TT
28872020-08-07 Tom Tromey <tromey@adacore.com>
2888
2889 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
2890 event_ptid.
2891
e9546579
TT
28922020-08-07 Tom Tromey <tromey@adacore.com>
2893
2894 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
2895 runtime_initialized.
2896
3d4470e5
TT
28972020-08-07 Tom Tromey <tromey@adacore.com>
2898
2899 * ravenscar-thread.c (ravenscar_thread_target): Don't call
2900 add_active_thread.
2901 (ravenscar_thread_target::add_active_thread): Now public.
2902 (ravenscar_inferior_created): Call add_active_thread after pushing
2903 the target.
2904
888bdb2b
SM
29052020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
2906
2907 * regcache.c (ptid_regcache_map): New type.
2908 (target_ptid_regcache_map): New type.
2909 (regcaches): Change type to target_ptid_regcache_map.
2910 (get_thread_arch_aspace_regcache): Update to regcaches' new
2911 type.
2912 (regcache_thread_ptid_changed): Likewise.
2913 (registers_changed_ptid): Likewise.
2914 (regcaches_size): Likewise.
2915 (regcaches_test): Update.
2916 (regcache_thread_ptid_changed): Update.
2917 * regcache.h (regcache_up): New type.
2918 * gdbsupport/ptid.h (hash_ptid): New struct.
2919
b161a60d
SM
29202020-08-07 Simon Marchi <simon.marchi@efficios.com>
2921
2922 * observable.h (thread_ptid_changed): Add parameter
2923 `process_stratum_target *`.
2924 * infrun.c (infrun_thread_ptid_changed): Add parameter
2925 `process_stratum_target *` and use it.
2926 (selftests): New namespace.
2927 (infrun_thread_ptid_changed): New function.
2928 (_initialize_infrun): Register selftest.
2929 * regcache.c (regcache_thread_ptid_changed): Add parameter
2930 `process_stratum_target *` and use it.
2931 (regcache_thread_ptid_changed): New function.
2932 (_initialize_regcache): Register selftest.
2933 * thread.c (thread_change_ptid): Pass target to
2934 thread_ptid_changed observable.
2935
d2854d8d
CT
29362020-08-06 Caroline Tice <cmtice@google.com>
2937
fe4c3d43
SM
2938 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
2939 (struct dwp_sections): Update field comments. Add loclists and
2940 rnglists fields.
2941 (struct virtual_v2_dwo_sections): Rename struct to
2942 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
2943 size & offset fields for loclists and rnglists.
2944 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
2945 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
2946 skipping dummy type units.
2947 (create_dwp_hash_table): Update the large comment above the function to
2948 discuss Version 5 DWP files as well, with references. Update all the
2949 version checks in the function to check for version 5 as well. Add new
2950 section at the end to create dwp hash table for version 5.
2951 (create_dwp_v2_section): Rename function to
2952 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
2953 Add V5 to error message text.
2954 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
2955 into calls to create_dwp_v2_or_v5_section.
2956 (create_dwo_unit_in_dwp_v5): New function.
2957 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
2958 check for version2; add else clause to handle version 5.
2959 (open_and_init_dwo_file): Add code to check dwarf version & only call
2960 create_debug_types_hash_table (with sections.types) if version is not 5;
2961 else call create_debug_type_hash_table, with sections.info.
2962 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
2963 version 5.
2964 (dwarf2_locate_v5_dwp_sections): New function.
2965 (open_and_init_dwp_file): Add else-if clause for version 5 to call
2966 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 2967
159ed7d9
SM
29682020-08-06 Simon Marchi <simon.marchi@efficios.com>
2969
2970 * regcache.h (class regcache): Remove friend
2971 registers_changed_ptid.
2972 <regcache_thread_ptid_changed>: Remove.
2973 <regcaches>: Remove.
2974 * regcache.c (regcache::regcaches): Rename to...
2975 (regcaches): ... this. Make static.
2976 (get_thread_arch_aspace_regcache): Update.
2977 (regcache::regcache_thread_ptid_changed): Rename to...
2978 (regcache_thread_ptid_changed): ... this. Update.
2979 (class regcache_access): Remove.
2980 (regcaches_test): Update.
2981 (_initialize_regcache): Update.
2982 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
2983 <forward_list>.
2984
174981ae
SM
29852020-08-06 Simon Marchi <simon.marchi@efficios.com>
2986
2987 * regcache.h (class regcache) <current_regcache>: Rename to...
2988 <regcaches>: ... this. Move doc here.
2989 * regcache.c (regcache::current_regcache) Rename to...
2990 (regcache::regcaches): ... this. Move doc to header.
2991 (get_thread_arch_aspace_regcache): Update.
2992 (regcache::regcache_thread_ptid_changed): Update.
2993 (registers_changed_ptid): Update.
2994 (class regcache_access) <current_regcache_size>: Rename to...
2995 <regcaches_size>: ... this.
2996 (current_regcache_test): Rename to...
2997 (regcaches_test): ... this.
2998 (_initialize_regcache): Update.
2999
ed908db6
VC
30002020-08-06 Victor Collod <vcollod@nvidia.com>
3001
3002 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
3003
b5582ab7
KB
30042020-08-05 Kevin Buettner <kevinb@redhat.com>
3005
3006 * corelow.c (core_target::build_file_mappings): Don't output
3007 null pathname in warning.
3008
ea946b86
SM
30092020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
3010
3011 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
3012 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
3013 gdb.dwarf2/dw2-single-line-discriminators.exp,
3014 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
3015
57d02173
TT
30162020-08-05 Tom Tromey <tromey@adacore.com>
3017
3018 PR rust/26197:
3019 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
3020 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
3021 Fix off-by-one and type size errors in ordinary case.
3022
5555c86d
TV
30232020-08-05 Tom de Vries <tdevries@suse.de>
3024
3025 * gdbtypes.c (type_not_allocated, type_not_associated): Use
3026 "prop->const_val () == 0" instead of "prop->const_val () != 0".
3027
97916bfe
SM
30282020-08-04 Simon Marchi <simon.marchi@efficios.com>
3029
3030 * frame.h (frame_id_p): Return bool.
3031 (frame_id_artificial_p): Return bool.
3032 (frame_id_eq): Return bool.
3033 (has_stack_frames): Return bool.
3034 (get_selected_frame): Fix typo in comment.
3035 (get_frame_pc_if_available): Return bool.
3036 (get_frame_address_in_block_if_available): Return bool.
3037 (get_frame_func_if_available): Return bool.
3038 (read_frame_register_unsigned): Return bool.
3039 (get_frame_register_bytes): Return bool.
3040 (safe_frame_unwind_memory): Return bool.
3041 (deprecated_frame_register_read): Return bool.
3042 (frame_unwinder_is): Return bool.
3043 * frame.c (struct frame_info) <prev_arch::p>: Change type to
3044 bool.
3045 <this_id::p>: Likewise.
3046 <prev_p>: Likewise.
3047 (frame_stash_add): Return bool.
3048 (get_frame_id): Use bool.
3049 (frame_id_build_special) Use bool.
3050 (frame_id_build_unavailable_stack): Use bool.
3051 (frame_id_build): Use bool.
3052 (frame_id_p): Return bool, use true/false instead of 1/0.
3053 (frame_id_artificial_p): Likewise.
3054 (frame_id_eq): Likewise.
3055 (frame_id_inner): Likewise.
3056 (get_frame_func_if_available): Likewise.
3057 (read_frame_register_unsigned): Likewise.
3058 (deprecated_frame_register_read): Likewise.
3059 (get_frame_register_bytes): Likewise.
3060 (has_stack_frames): Likewise.
3061 (inside_main_func): Likewise.
3062 (inside_entry_func): Likewise.
3063 (get_frame_pc_if_available): Likewise.
3064 (get_frame_address_in_block_if_available): Likewise.
3065 (frame_unwinder_is): Likewise.
3066 (safe_frame_unwind_memory): Likewise.
3067 (frame_unwind_arch): Likewise.
3068
fedfee88
SM
30692020-08-04 Simon Marchi <simon.marchi@efficios.com>
3070
3071 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
3072 type to cached_copy_status.
3073 (fprintf_frame): Adjust.
3074 (get_frame_func_if_available): Adjust.
3075 (frame_cleanup_after_sniffer): Adjust.
3076
6cfa9b59
MW
30772020-08-04 Mark Wielaard <mark@klomp.org>
3078
3079 * MAINTAINERS (Write After Approval): Update email address.
3080
66d6346b
SM
30812020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3082
3083 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
3084 dynamic_prop::const_val.
3085
8a6d5e35
SM
30862020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3087
3088 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
3089 dynamic_prop::kind.
3090
51d6067d
SM
30912020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3092
3093 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
3094
b26e2ae7
JM
30952020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
3096
3097 * configure.tgt: Set gdb_sim for bpf-*-* targets.
3098
39791af2
JM
30992020-08-04 Weimin Pan <weimin.pan@oracle.com>
3100 Jose E. Marchesi <jose.marchesi@oracle.com>
3101
3102 * configure.tgt: Add entry for bpf-*-*.
3103 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
3104 (ALLDEPFILES): Add bpf-tdep.c.
3105 * bpf-tdep.c: New file.
3106 * MAINTAINERS: Add bpf target and maintainer.
3107 * NEWS: Mention the support for the new target.
3108
521894aa
TV
31092020-08-04 Tom de Vries <tdevries@suse.de>
3110
3111 PR symtab/23270
3112 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
3113 Error.
3114
5d6356e9
JB
31152020-08-03 John Baldwin <jhb@FreeBSD.org>
3116
3117 * syscalls/freebsd.xml: Regenerate.
3118
0cf82b81
JB
31192020-08-03 John Baldwin <jhb@FreeBSD.org>
3120
3121 * syscalls/update-freebsd.sh: Fix usage and year range.
3122
8f34b746
TV
31232020-08-03 Tom de Vries <tdevries@suse.de>
3124
3125 PR symtab/26333
3126 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
3127 DW_LNE_lo_user/DW_LNE_hi_user range.
3128
5e500d33
SM
31292020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
3130
3131 PR ada/26318
3132 * ada-lang.c (ada_modulus): Return 0 if property is not of const
3133 kind.
3134
78319c15
TBA
31352020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3136
3137 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
3138
4c55e970
TBA
31392020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3140
3141 * breakpoint.c (set_breakpoint_condition): Update the condition
3142 expressions after checking that the input condition string parses
3143 successfully and does not contain junk at the end.
3144
1e620590
TBA
31452020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3146
3147 * breakpoint.c (set_breakpoint_condition): Update the
3148 condition string after parsing the new condition successfully.
3149
c8693053
RO
31502020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3151
3152 * proc-api.c (_STRUCTURED_PROC): Don't define.
3153 * proc-events.c: Likewise.
3154 * proc-flags.c: Likewise.
3155 * proc-why.c: Likewise.
3156 * procfs.c: Likewise.
3157
3158 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
3159 * configure, config.in: Regenerate.
3160
5a99adb8
TV
31612020-07-30 Tom de Vries <tdevries@suse.de>
3162
3163 PR build/26320
3164 * ui-style.h (struct ui_file_style::color): Wrap m_value and
3165 m_red/m_green/m_blue in a union.
3166
8ba83e91
TV
31672020-07-29 Tom de Vries <tdevries@suse.de>
3168
3169 PR tdep/26280
3170 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
3171
f75a0693
AB
31722020-07-28 Tom Tromey <tromey@adacore.com>
3173
3174 PR symtab/26270:
3175 * symtab.h (find_pc_partial_function_sym): Declare.
3176 * cli/cli-cmds.c (disassemble_command): Use
3177 find_pc_partial_function_sym. Check asm_demangle.
3178 * blockframe.c (cache_pc_function_sym): New global.
3179 (cache_pc_function_name): Remove.
3180 (clear_pc_function_cache): Update.
3181 (find_pc_partial_function_sym): New function, from
3182 find_pc_partial_function.
3183 (find_pc_partial_function): Rewrite using
3184 find_pc_partial_function_sym.
3185
16f3242c
TT
31862020-07-28 Tom Tromey <tromey@adacore.com>
3187
3188 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
3189 help. Add usage.
3190
4888741a
TT
31912020-07-28 Tom Tromey <tromey@adacore.com>
3192
3193 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
3194 <DW_OP_GNU_variable_value>: Cast to address type.
3195
4d46f402
KR
31962020-07-28 Kamil Rytarowski <n54@gmx.com>
3197
3198 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
3199 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
3200 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
3201 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
3202 (nbsd_get_siginfo_type): New.
3203 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
3204 (_initialize_nbsd_tdep): New.
3205
d70f978b
L
32062020-07-28 H.J. Lu <hongjiu.lu@intel.com>
3207
3208 PR binutils/26301
3209 * configure: Regenerated.
3210
377170fa
L
32112020-07-28 H.J. Lu <hongjiu.lu@intel.com>
3212
3213 PR binutils/26301
3214 * configure: Regenerated.
3215
43d5901d
AB
32162020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
3217
3218 * python/py-frame.c: Remove 'user-regs.h' include.
3219 (frapy_read_register): Rewrite to make use of
3220 gdbpy_parse_register_id.
3221 * python/py-registers.c (gdbpy_parse_register_id): New function,
3222 moved here from python/py-unwind.c. Updated the return type, and
3223 also accepts register descriptor objects.
3224 * python/py-unwind.c: Remove 'user-regs.h' include.
3225 (pyuw_parse_register_id): Moved to python/py-registers.c.
3226 (unwind_infopy_add_saved_register): Update to use
3227 gdbpy_parse_register_id.
3228 (pending_framepy_read_register): Likewise.
3229 * python/python-internal.h (gdbpy_parse_register_id): Declare.
3230
14fa8fb3
AB
32312020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
3232
3233 * python/py-registers.c: Add 'user-regs.h' include.
3234 (register_descriptor_iter_find): New function.
3235 (register_descriptor_iterator_object_methods): New static global
3236 methods array.
3237 (register_descriptor_iterator_object_type): Add pointer to methods
3238 array.
3239
ddce1758
JB
32402020-07-27 John Baldwin <jhb@FreeBSD.org>
3241
3242 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
3243 for all architectures on FreeBSD 11.3 and later.
3244
a4089f52
TT
32452020-07-27 Tom Tromey <tromey@adacore.com>
3246
3247 * gcore.h (load_corefile): Don't declare.
3248
95420d30
TV
32492020-07-27 Tom de Vries <tdevries@suse.de>
3250
3251 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
3252 * config.in: Regenerate.
3253 * configure: Regenerate.
3254
05a6b8c2
EZ
32552020-07-26 Eli Zaretskii <eliz@gnu.org>
3256
3257 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
3258 ws2tcpip.h. When checking whether socklen_t type is defined, use
3259 ws2tcpip.h if it is available and sys/socket.h isn't.
3260 * configure: Regenerate.
3261 * config.in: Regenerate.
3262
e79eb02f
AB
32632020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
3264
3265 PR fortran/23051
3266 PR fortran/26139
3267 * valops.c (value_ind): Pass address to
3268 readjust_indirect_value_type.
3269 * value.c (readjust_indirect_value_type): Make parameter
3270 non-const, and add extra address parameter. Resolve original type
3271 before using it.
3272 * value.h (readjust_indirect_value_type): Update function
3273 signature and comment.
3274
876518dd
TV
32752020-07-25 Tom de Vries <tdevries@suse.de>
3276
3277 PR symtab/26243
3278 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
3279 entries.
3280
f6720b1c
AM
32812020-07-24 Aaron Merey <amerey@redhat.com>
3282
3283 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
3284 * configure: Rebuild.
3285
513487e1
KB
32862020-07-23 Kevin Buettner <kevinb@redhat.com>
3287
3288 PR corefiles/26294
3289 * corelow.c (_initialize_corelow): Add period to help text
3290 for "maintenance print core-file-backed-mappings".
3291
e7bc9db8
PA
32922020-07-23 Pedro Alves <pedro@palves.net>
3293
3294 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
3295 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
3296 meanwhile.
3297 * frame.c (frame_cache_generation, get_frame_cache_generation):
3298 New.
3299 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
3300 (get_prev_frame_if_no_cycle): On exception, don't touch
3301 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
3302 * frame.h (get_frame_cache_generation): Declare.
3303
90fcc466
TV
33042020-07-23 Tom de Vries <tdevries@suse.de>
3305
3306 PR tui/26282
3307 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
3308 New default constructor.
3309
78344df7
AB
33102020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
3311
3312 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
3313 exclude non-statement entries.
3314
b089853a
KB
33152020-07-22 Kevin Buettner <kevinb@redhat.com>
3316
3317 * NEWS (New commands): Mention new command
3318 "maintenance print core-file-backed-mappings".
3319
09c2f5d4
KB
33202020-07-22 Kevin Buettner <kevinb@redhat.com>
3321
3322 * corelow.c (gdbcmd.h): Include.
3323 (core_target::info_proc_mappings): New method.
3324 (get_current_core_target): New function.
3325 (maintenance_print_core_file_backed_mappings): New function.
3326 (_initialize_corelow): Add core-file-backed-mappings to
3327 "maint print" commands.
3328
9c5ec5c2 33292020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 3330
9c5ec5c2
KB
3331 * linux-tdep.c (dump_note_entry_p): New function.
3332 (linux_dump_mapping_p_ftype): New typedef.
3333 (linux_find_memory_regions_full): Add new parameter,
3334 should_dump_mapping_p.
3335 (linux_find_memory_regions): Adjust call to
3336 linux_find_memory_regions_full.
3337 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
3338 call to linux_find_memory_regions_full.
3339
db082f59
KB
33402020-07-22 Kevin Buettner <kevinb@redhat.com>
3341
3342 * corelow.c (solist.h, unordered_map): Include.
3343 (class core_target): Add field m_core_file_mappings and
3344 method build_file_mappings.
3345 (core_target::core_target): Call build_file_mappings.
3346 (core_target::~core_target): Free memory associated with
3347 m_core_file_mappings.
3348 (core_target::build_file_mappings): New method.
3349 (core_target::xfer_partial): Use m_core_file_mappings
3350 for memory transfers.
3351 * linux-tdep.c (linux_read_core_file_mappings): New
3352 function.
3353 (linux_core_info_proc_mappings): Rewrite to use
3354 linux_read_core_file_mappings.
3355 (linux_init_abi): Register linux_read_core_file_mappings.
3356
7e183d27
KB
33572020-07-22 Kevin Buettner <kevinb@redhat.com>
3358
3359 * arch-utils.c (default_read_core_file_mappings): New function.
3360 * arch-utils.c (default_read_core_file_mappings): Declare.
3361 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
3362 * gdbarch.h, gdbarch.c: Regenerate.
3363
2735d421
KB
33642020-07-22 Kevin Buettner <kevinb@redhat.com>
3365
3366 PR corefiles/25631
3367 * corelow.c (core_target:xfer_partial): Revise
3368 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
3369 case after first checking the stratum beneath the core
3370 target.
3371 (has_all_memory): Return true.
3372 * target.c (raw_memory_xfer_partial): Revise comment
3373 regarding use of has_all_memory.
3374
e56cb451
KB
33752020-07-22 Kevin Buettner <kevinb@redhat.com>
3376
3377 * exec.h (section_table_xfer_memory): Revise declaration,
3378 replacing section name parameter with an optional callback
3379 predicate.
3380 * exec.c (section_table_xfer_memory): Likewise.
3381 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
3382 of section_table_xfer_memory.
3383
32fa152e
TT
33842020-07-22 Tom Tromey <tromey@adacore.com>
3385
3386 * mi/mi-cmd-stack.c (list_args_or_locals): Use
3387 lookup_symbol_search_name.
3388
a67a1c41
AB
33892020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
3390
3391 * python/py-registers.c (gdbpy_register_object_data_init): Remove
3392 redundant local variable.
3393 (gdbpy_get_register_descriptor): Extract descriptor vector as a
3394 reference, not pointer, update code accordingly.
3395
a7b4ff4f
SM
33962020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3397 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3398
3399 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
3400 * jit.c (jit_breakpoint_re_set_internal): Use the
3401 `skip_jit_symbol_lookup` field.
3402
2340e834
SM
34032020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3404 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3405
3406 * jit.c (jit_read_descriptor): Define the descriptor address once,
3407 use twice.
3408 (jit_breakpoint_deleted): Move the declaration of the loop variable
3409 `iter` into the loop header.
3410 (jit_breakpoint_re_set_internal): Move the declaration of the local
3411 variable `objf_data` to the first point of definition.
3412 (jit_event_handler): Move the declaration of local variables
3413 `code_entry`, `entry_addr`, and `objf` to their first point of use.
3414 Rename `objf` to `jited`.
3415
c1072906
SM
34162020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3417
3418 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
3419 Remove.
3420 * jit.c (get_jiter_objfile_data): Update.
3421
c8474dc3
TBA
34222020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3423 Simon Marchi <simon.marchi@polymtl.ca>
3424
3425 * jit.c (struct jit_program_space_data): Remove.
3426 (jit_program_space_key): Remove.
3427 (jiter_objfile_data::~jiter_objfile_data): Remove program space
3428 stuff.
3429 (get_jit_program_space_data): Remove.
3430 (jit_breakpoint_deleted): Iterate on all of the program space's
3431 objfiles.
3432 (jit_inferior_init): Likewise.
3433 (jit_breakpoint_re_set_internal): Likewise. Also change return
3434 type to void.
3435 (jit_breakpoint_re_set): Pass current_program_space to
3436 jit_breakpoint_re_set_internal.
3437
77208eb7
SM
34382020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3439
3440 * jit.h (struct jiter_objfile_data) <cached_code_address,
3441 jit_breakpoint>: Move to here from ...
3442 * jit.c (jit_program_space_data): ... here.
3443 (jiter_objfile_data::~jiter_objfile_data): Update.
3444 (jit_breakpoint_deleted): Update.
3445 (jit_breakpoint_re_set_internal): Update.
3446
8c1c720f
SM
34472020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3448
3449 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
3450 checks.
3451 (jit_read_descriptor): Remove NULL check.
3452 (jit_event_handler): Add an assertion.
3453
0e74a041
SM
34542020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3455
3456 * jit.h (struct jit_objfile_data): Split into...
3457 (struct jiter_objfile_data): ... this ...
3458 (struct jited_objfile_data): ... and this.
3459 * objfiles.h (struct objfile) <jit_data>: Remove.
3460 <jiter_data, jited_data>: New fields.
3461 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
3462 (jiter_objfile_data::~jiter_objfile_data): ... this.
3463 (get_jit_objfile_data): Rename to ...
3464 (get_jiter_objfile_data): ... this.
3465 (add_objfile_entry): Update.
3466 (jit_read_descriptor): Use get_jiter_objfile_data.
3467 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
3468 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
3469 (jit_inferior_exit_hook): Use objfile's jited_data field.
3470
238b5c9f
SM
34712020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3472
3473 * jit.h: Forward-declare `struct minimal_symbol`.
3474 (struct jit_objfile_data): Migrate to here from jit.c; also add a
3475 constructor, destructor, and an objfile* field.
3476 * jit.c (jit_objfile_data): Remove.
3477 (struct jit_objfile_data): Migrate from here to jit.h.
3478 (jit_objfile_data::~jit_objfile_data): New destructor
3479 implementation with code moved from free_objfile_data.
3480 (free_objfile_data): Delete.
3481 (get_jit_objfile_data): Update to use the jit_data field of objfile.
3482 (jit_find_objf_with_entry_addr): Ditto.
3483 (jit_inferior_exit_hook): Ditto.
3484 (_initialize_jit): Remove the call to
3485 register_objfile_data_with_cleanup.
3486 * objfiles.h (struct objfile) <jit_data>: New field.
3487
fe053b9e
TBA
34882020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3489
3490 * jit.h: Forward-declare `struct objfile`.
3491 (jit_event_handler): Add a second parameter, the JITer objfile.
3492 * jit.c (jit_read_descriptor): Change the signature to take the
3493 JITer objfile as an argument instead of the jit_program_space_data.
3494 (jit_inferior_init): Update the call to jit_read_descriptor.
3495 (jit_event_handler): Use the new JITer objfile argument when calling
3496 jit_read_descriptor.
3497 * breakpoint.c (handle_jit_event): Update the call to
3498 jit_event_handler to pass the JITer objfile.
3499
4cec0c66
JB
35002020-07-21 John Baldwin <jhb@FreeBSD.org>
3501
3502 * gdbarch.c: Regenerate.
3503 * gdbarch.h: Regenerate.
3504 * gdbarch.sh (handle_segmentation_fault): Remove method.
3505 * infrun.c (handle_segmentation_fault): Remove.
3506 (print_signal_received_reason): Remove call to
3507 handle_segmentation_fault.
3508
0e42f66a
JB
35092020-07-21 John Baldwin <jhb@FreeBSD.org>
3510
3511 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
3512 Rename to sparc64_linux_report_signal_info and add siggnal
3513 argument.
3514 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
3515 instead of sparc64_linux_handle_segmentation_fault.
3516
77bdfeb2
JB
35172020-07-21 John Baldwin <jhb@FreeBSD.org>
3518
3519 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
3520 i386_linux_report_signal_info instead of
3521 i386_linux_handle_segmentation_fault.
3522 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
3523 to i386_linux_report_signal_info and add siggnal argument.
3524 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
3525 of i386_linux_handle_segmentation_fault.
3526 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
3527 to i386_linux_report_signal_info and add siggnal argument.
3528
ad97bfc5
JB
35292020-07-21 John Baldwin <jhb@FreeBSD.org>
3530
3531 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
3532 hook if present.
3533
272bb05c
JB
35342020-07-21 John Baldwin <jhb@FreeBSD.org>
3535
3536 * gdbarch.c: Regenerate.
3537 * gdbarch.h: Regenerate.
3538 * gdbarch.sh (report_signal_info): New method.
3539 * infrun.c (print_signal_received_reason): Invoke gdbarch
3540 report_signal_info hook if present.
3541
baf8791e
AB
35422020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
3543
3544 * python/py-registers.c : Add 'unordered_map' include.
3545 (gdbpy_new_reggroup): Renamed to...
3546 (gdbpy_get_reggroup): ...this. Update to only create register
3547 group descriptors when needed.
3548 (gdbpy_reggroup_iter_next): Update.
3549
f7306dac
AB
35502020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
3551
3552 * python/py-registers.c (gdbpy_register_object_data): New static
3553 global.
3554 (gdbpy_register_object_data_init): New function.
3555 (gdbpy_new_register_descriptor): Renamed to...
3556 (gdbpy_get_register_descriptor): ...this, and update to reuse
3557 existing register descriptors where possible.
3558 (gdbpy_register_descriptor_iter_next): Update.
3559 (gdbpy_initialize_registers): Register new gdbarch data.
3560
05c309a8
SM
35612020-07-21 Simon Marchi <simon.marchi@efficios.com>
3562
3563 * linux-nat.c (stopped_pids): Make static.
3564
d1fd641e
SM
35652020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
3566
3567 PR ada/26235
3568 * gdbtypes.c (ada_discrete_type_low_bound,
3569 ada_discrete_type_high_bound): Handle undefined bounds.
3570
1de14d77
KR
35712020-07-21 Kamil Rytarowski <n54@gmx.com>
3572
3573 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
3574 declaration.
3575 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
3576 function.
3577
ed810cc7
JB
35782020-07-20 John Baldwin <jhb@FreeBSD.org>
3579
3580 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
3581 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
3582 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
3583 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
3584 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
3585 method.
3586
ae5369e7
LC
35872020-07-20 Ludovic Courtès <ludo@gnu.org>
3588
3589 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
3590 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
3591 which are deprecated in Guile 3.0.
3592 * configure.ac (try_guile_versions): Add "guile-3.0".
3593 * configure (try_guile_versions): Regenerate.
3594 * NEWS: Update entry.
3595
68cf161c
LC
35962020-07-20 Ludovic Courtès <ludo@gnu.org>
3597 Doug Evans <dje@google.com>
3598
3599 PR gdb/21104
3600 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
3601 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
3602 USING_GUILE_BEFORE_2_2.
3603 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
3604 Change type to 'scm_t_port_type *'.
3605 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
3606 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
3607 parameter and honor it. Update callers.
3608 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
3609 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
3610 functions.
3611 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
3612 USING_GUILE_BEFORE_2_2.
3613 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
3614 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
3615 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
3616 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
3617 and 'SCM_PORT_TYPE'.
3618 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
3619 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
3620 (gdbscm_memory_port_read, gdbscm_memory_port_write)
3621 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
3622 [!USING_GUILE_BEFORE_2_2]: New functions.
3623 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
3624 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
3625 'gdbscm_memory_port_read'.
3626 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
3627 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
3628 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
3629 function.
3630 (ioscm_init_memory_port): Remove.
3631 (ioscm_init_memory_port_stream): New function
3632 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
3633 function.
3634 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
3635 Return scm_from_uint (0).
3636 (gdbscm_set_memory_port_read_buffer_size_x)
3637 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
3638 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
3639 Return scm_from_uint (0).
3640 (gdbscm_set_memory_port_write_buffer_size_x)
3641 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
3642 * configure.ac (try_guile_versions): Add "guile-2.2".
3643 * configure: Regenerate.
3644 * NEWS: Add entry.
3645
aee91db3
TT
36462020-07-18 Tom Tromey <tom@tromey.com>
3647
3648 * linux-nat.c (linux_multi_process): Remove.
3649 (linux_nat_target::supports_multi_process): Return true.
3650
0e267416
AB
36512020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
3652
3653 * arch/riscv.c (riscv_tdesc_cache): Change map type.
3654 (riscv_lookup_target_description): Return pointer out of
3655 unique_ptr.
3656 * target-descriptions.c (allocate_target_description): Add
3657 comment.
3658 (target_desc_deleter::operator()): Likewise.
3659 * target-descriptions.h (struct target_desc_deleter): Moved to
3660 gdbsupport/tdesc.h.
3661 (target_desc_up): Likewise.
3662
f80c8ec4
TT
36632020-07-17 Tom Tromey <tromey@adacore.com>
3664
3665 * linux-nat.c (linux_nat_target::supports_non_stop)
3666 (linux_nat_target::always_non_stop_p): Use "true".
3667 (linux_nat_target::supports_disable_randomization): Use "true" and
3668 "false".
3669
d0ce17d8
CT
36702020-07-16 Caroline Tice <cmtice@google.com>
3671
3672 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
3673 (RNGLIST_HEADER_SIZE64): New constant definition.
3674 (struct dwop_section_names): Add rnglists_dwo.
3675 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
3676 (struct loclist_header): Rename to 'loclists_rnglists_header'.
3677 (struct dwo_sections): Add rnglists field.
3678 (read_attribut_reprocess): Add tag parameter.
3679 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
3680 (cu_debug_rnglists_section): New function (decl & definition).
3681 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
3682 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
3683 die whose range is being checked; get rnglist section from
3684 cu_debug_rnglists_section, to get from either objfile or dwo file as
3685 appropriate. Add cases for DW_RLE_base_addressx,
3686 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
3687 the base address to DW_RLE_offset_pairs (not to all ranges), moving
3688 test inside if-condition and updating complaint message.
3689 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
3690 dwarf2_rnglists_process.
3691 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
3692 dwarf2_ranges_process.
3693 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
3694 need_ranges_base and update comment appropriately. Also pass die tag
3695 to dwarf2_ranges_read.
3696 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
3697 need_ranges_base and update comment appropriately. Also pass die tag
3698 to dwarf2_ranges_process.
3699 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
3700 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
3701 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
3702 need_ranges_base and update comment appropriately. Also pass die tag
3703 to read_attribute_reprocess and dwarf2_ranges_read.
3704 (read_loclist_header): Rename function to read_loclists_rnglists_header,
3705 and update function comment appropriately.
3706 (read_loclist_index): Call read_loclists_rnglists_header instead of
3707 read_loclist_header.
3708 (read_rnglist_index): New function.
3709 (read_attribute_reprocess): Add tag parameter. Add code for
3710 DW_FORM_rnglistx, passing tag to read_rnglist_index.
3711 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
3712
3dcc261c
AB
37132020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
3714
3715 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
3716 being resolved.
3717
ccb9eba6
AB
37182020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
3719
3720 * arch-utils.c (show_architecture): Update formatting of messages.
3721
cf88be68
SM
37222020-07-12 Simon Marchi <simon.marchi@efficios.com>
3723
3724 * gdbtypes.h (struct type) <bounds>: Handle array and string
3725 types.
3726 * ada-lang.c (assign_aggregate): Use type::bounds on
3727 array/string type.
3728 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
3729 * c-varobj.c (c_number_of_children): Likewise.
3730 (c_describe_child): Likewise.
3731 * eval.c (evaluate_subexp_for_sizeof): Likewise.
3732 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
3733 (f_type_print_base): Likewise.
3734 * f-valprint.c (f77_array_offset_tbl): Likewise.
3735 (f77_get_upperbound): Likewise.
3736 (f77_print_array_1): Likewise.
3737 * guile/scm-type.c (gdbscm_type_range): Likewise.
3738 * m2-typeprint.c (m2_array): Likewise.
3739 (m2_is_long_set_of_type): Likewise.
3740 * m2-valprint.c (get_long_set_bounds): Likewise.
3741 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
3742 * python/py-type.c (typy_range): Likewise.
3743 * rust-lang.c (rust_internal_print_type): Likewise.
3744 * type-stack.c (type_stack::follow_types): Likewise.
3745 * valarith.c (value_subscripted_rvalue): Likewise.
3746 * valops.c (value_cast): Likewise.
3747
509971ae
SM
37482020-07-12 Simon Marchi <simon.marchi@efficios.com>
3749
3750 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
3751 callers to use the equivalent accessor methods.
3752
107406b7
SM
37532020-07-12 Simon Marchi <simon.marchi@efficios.com>
3754
3755 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
3756 (struct type) <bit_stride>: New method.
3757 (TYPE_BIT_STRIDE): Remove.
3758 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
3759
bb789949
SM
37602020-07-12 Simon Marchi <simon.marchi@efficios.com>
3761
3762 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
3763 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
3764 callers to use the equivalent accessor methods instead.
3765
39498edb
SM
37662020-07-12 Simon Marchi <simon.marchi@efficios.com>
3767
3768 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
3769 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
3770 callers to use the equivalent accessor methods instead.
3771
3b606f38
SM
37722020-07-12 Simon Marchi <simon.marchi@efficios.com>
3773
3774 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
3775 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
3776 to use dynamic_prop::kind.
3777
064d9cb9
SM
37782020-07-12 Simon Marchi <simon.marchi@efficios.com>
3779
3780 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
3781 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
3782 to get the bound property's kind and check against
3783 PROP_UNDEFINED.
3784
5537ddd0
SM
37852020-07-12 Simon Marchi <simon.marchi@efficios.com>
3786
3787 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
3788 all callers to use type::range_bounds followed by
3789 dynamic_prop::{low,high}.
3790
8c2e4e06
SM
37912020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
3792
3793 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
3794 const_val, set_const_val, baton, set_locexpr, set_loclist,
3795 set_addr_offset, variant_parts, set_variant_parts,
3796 original_type, set_original_type>: New methods.
3797 <kind>: Rename to...
3798 <m_kind>: ... this. Update all users to use the new methods
3799 instead.
3800 <data>: Rename to...
3801 <m_data>: ... this. Update all users to use the new methods
3802 instead.
3803
7c6f2712
SM
38042020-07-12 Simon Marchi <simon.marchi@efficios.com>
3805
3806 * gdbtypes.c (get_discrete_bounds): Return failure if
3807 the range type's bounds are not both defined and constant
3808 values.
3809 (get_array_bounds): Update comment. Remove undefined bound check.
3810
599088e3
SM
38112020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
3812
3813 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
3814 the type::bounds method directly.
3815
c4dfcb36
SM
38162020-07-12 Simon Marchi <simon.marchi@efficios.com>
3817
3818 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
3819 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
3820 are used to set the range type's bounds to use set_bounds.
3821
0a278aa7
PW
38222020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3823
3824 * exec.c (_initialize_exec): Update exec-file-mismatch help.
3825
cce20f10
PA
38262020-07-10 Pedro Alves <pedro@palves.net>
3827
3828 * gdbthread.h (inferior_ref): Define.
3829 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
3830 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
3831 * thread.c
3832 (scoped_restore_current_thread::restore):
3833 Adjust to gdb::ref_ptr.
3834 (scoped_restore_current_thread::~scoped_restore_current_thread):
3835 Remove manual decref handling.
3836 (scoped_restore_current_thread::scoped_restore_current_thread):
3837 Adjust to use
3838 inferior_ref::new_reference/thread_info_ref::new_reference.
3839 Incref the thread before calling get_frame_id instead of after.
3840 Let TARGET_CLOSE_ERROR propagate.
3841
6d7aa592
PA
38422020-07-10 Pedro Alves <pedro@palves.net>
3843
3844 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
3845 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
3846 NOT_AVAILABLE_ERROR.
3847 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
3848 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
3849
b3e3a4c1
SM
38502020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3851 Pedro Alves <pedro@palves.net>
3852
3853 PR gdb/26199
3854 * infrun.c (threads_are_resumed_pending_p): Delete.
3855 (do_target_wait): Remove threads_are_executing and
3856 threads_are_resumed_pending_p checks from the inferior_matches
3857 lambda. Update comments.
3858
d6cc5d98
PA
38592020-07-10 Pedro Alves <pedro@palves.net>
3860
3861 PR gdb/26199
3862 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
3863 executing threads.
3864
7d3badc6
PA
38652020-07-10 Pedro Alves <pedro@palves.net>
3866
3867 PR gdb/26199
3868 * infrun.c (handle_no_resumed): Handle multiple targets.
3869
42bd97a6
PA
38702020-07-10 Pedro Alves <pedro@palves.net>
3871
3872 PR gdb/26199
3873 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
3874 target_is_async_p.
3875
43667cc6
PA
38762020-07-10 Pedro Alves <pedro@palves.net>
3877
3878 PR gdb/26199
3879 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
3880 threads, not all threads.
3881
96118d11
PA
38822020-07-10 Pedro Alves <pedro@palves.net>
3883
3884 PR gdb/26199
3885 * remote.c (remote_target::open_1): Pass remote target pointer as
3886 data to create_async_event_handler.
3887 (remote_async_inferior_event_handler): Mark async event handler
3888 before returning if the remote target still has either pending
3889 events or unacknowledged notifications.
3890
54904d81
JB
38912020-07-10 John Baldwin <jhb@FreeBSD.org>
3892
3893 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
3894 declaration.
3895 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
3896 function.
3897
f37e5866
JB
38982020-07-09 John Baldwin <jhb@FreeBSD.org>
3899
3900 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
3901 inferior_ptid.
3902
fc238d4a
JB
39032020-07-09 John Baldwin <jhb@FreeBSD.org>
3904
3905 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
3906 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
3907 AT_FREEBSD_PS_STRINGS.
3908
6e2469ff
HD
39092020-07-08 Hannes Domani <ssbssa@yahoo.de>
3910
3911 * auto-load.c (auto_load_objfile_script_1): Convert drive part
3912 of debugfile path on Windows.
3913
d1076c41
JB
39142020-07-08 John Baldwin <jhb@FreeBSD.org>
3915
3916 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
3917 argument to 'data'.
3918
15f3b077
TT
39192020-07-08 Tom Tromey <tromey@adacore.com>
3920
3921 * ada-lang.c (ada_exception_message_1): Use read_memory.
3922
9fc501fd
AB
39232020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3924
3925 PR python/22748
3926 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
3927 special handling for inline frames.
3928 * findvar.c (value_of_register_lazy): Skip inline frames when
3929 creating lazy register values.
3930 * frame.c (frame_id_computed_p): Delete definition.
3931 * frame.h (frame_id_computed_p): Delete declaration.
3932
64cb3757
AB
39332020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3934
3935 * NEWS: Mention additions to Python API.
3936 * python/py-arch.c (archpy_register_groups): New function.
3937 (arch_object_methods): Add 'register_groups' method.
3938 * python/py-registers.c (reggroup_iterator_object): New struct.
3939 (reggroup_object): New struct.
3940 (gdbpy_new_reggroup): New function.
3941 (gdbpy_reggroup_to_string): New function.
3942 (gdbpy_reggroup_name): New function.
3943 (gdbpy_reggroup_iter): New function.
3944 (gdbpy_reggroup_iter_next): New function.
3945 (gdbpy_new_reggroup_iterator): New function
3946 (gdbpy_initialize_registers): Register new types.
3947 (reggroup_iterator_object_type): Define new Python type.
3948 (gdbpy_reggroup_getset): New static global.
3949 (reggroup_object_type): Define new Python type.
3950 * python/python-internal.h
3951
0f767f94
AB
39522020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3953
3954 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
3955 * python/py-arch.c (archpy_registers): New function.
3956 (arch_object_methods): Add 'registers' method.
3957 * python/py-registers.c: New file.
3958 * python/python-internal.h
3959 (gdbpy_new_register_descriptor_iterator): Declare.
3960 (gdbpy_initialize_registers): Declare.
3961 * python/python.c (do_start_initialization): Call
3962 gdbpy_initialize_registers.
3963 * NEWS: Mention additions to the Python API.
3964
87dbc774
AB
39652020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3966
3967 * NEWS: Mention new Python API method.
3968 * python/py-unwind.c (pending_framepy_architecture): New function.
3969 (pending_frame_object_methods): Add architecture method.
3970
3bc98c0c
AB
39712020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3972
3973 * gdbarch.c: Regenerate.
3974 * gdbarch.h: Regenerate.
3975 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
3976 (gdbarch_data): Use internal_error for the case where
3977 deprecated_set_gdbarch_data was originally needed.
3978 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
3979 and use passed in obstack.
3980 (libunwind_frame_set_descr): Should no longer get back NULL from
3981 gdbarch_data.
3982 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
3983 type.
3984 * user-regs.c (user_regs_init): Update parameters, and use passed
3985 in obstack.
3986 (user_reg_add): Should no longer get back NULL from gdbarch_data.
3987 (_initialize_user_regs): Register as a pre-init gdbarch data type.
3988
d8cc8af6
TV
39892020-07-06 Tom de Vries <tdevries@suse.de>
3990
3991 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
3992 End-Of-Sequence in lte_is_less_than.
3993 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
3994 "gdb: Don't reorder line table entries too much when sorting".
3995
947f7597
TV
39962020-07-06 Tom de Vries <tdevries@suse.de>
3997
3998 PR tui/26205
3999 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
4000
1e7c1b22
TV
40012020-07-05 Tom de Vries <tdevries@suse.de>
4002
4003 PR build/26187
4004 * inferior.h (struct infcall_suspend_state_deleter): If available, use
4005 std::uncaught_exceptions instead of deprecated
4006 std::uncaught_exception.
4007
a36158ec
SM
40082020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4009
4010 * macroexp.h (macro_stringify): Return
4011 gdb::unique_xmalloc_ptr<char>.
4012 * macroexp.c (macro_stringify): Likewise.
4013 * macrotab.c (fixup_definition): Update.
4014
14d960c8
SM
40152020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4016
4017 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
4018 (lex_one_token): Update.
4019 * macroexp.c (struct macro_buffer) <release>: Return
4020 gdb::unique_xmalloc_ptr<char>.
4021 (macro_stringify): Update.
4022 (macro_expand): Update.
4023 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
4024 * macroexp.h (macro_expand_next): Likewise.
4025
211d5b1c
SM
40262020-07-02 Simon Marchi <simon.marchi@efficios.com>
4027
4028 * macroexp.h (macro_lookup_ftype): Remove.
4029 (macro_expand, macro_expand_once, macro_expand_next): Remove
4030 lookup function parameters, add scope parameter.
4031 * macroexp.c (scan, substitute_args, expand, maybe_expand,
4032 macro_expand, macro_expand_once, macro_expand_next): Likewise.
4033 * macroscope.h (standard_macro_lookup): Change parameter type
4034 to macro_scope.
4035 * macroscope.c (standard_macro_lookup): Likewise.
4036 * c-exp.y (lex_one_token): Update.
4037 * macrocmd.c (macro_expand_command): Likewise.
4038 (macro_expand_once_command): Likewise.
4039
b1a35af2
SM
40402020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4041
4042 * inf-loop.c (inferior_event_handler): Remove client_data param.
4043 * inf-loop.h (inferior_event_handler): Likewise.
4044 * infcmd.c (step_1): Adjust.
4045 * infrun.c (proceed): Adjust.
4046 (fetch_inferior_event): Remove client_data param.
4047 (infrun_async_inferior_event_handler): Adjust.
4048 * infrun.h (fetch_inferior_event): Remove `void *` param.
4049 * linux-nat.c (handle_target_event): Adjust.
4050 * record-btrace.c (record_btrace_handle_async_inferior_event):
4051 Adjust.
4052 * record-full.c (record_full_async_inferior_event_handler):
4053 Adjust.
4054 * remote.c (remote_async_inferior_event_handler): Adjust.
4055
1cdf9e33
TT
40562020-07-01 Tom Tromey <tom@tromey.com>
4057
4058 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
4059 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
4060
32c1e210
TT
40612020-07-01 Tom Tromey <tom@tromey.com>
4062
4063 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
4064 tui_gen_win_info.
4065 (tui_win_info::make_window): Merge with
4066 tui_gen_win_info::make_window.
4067 (tui_win_info::make_visible): Move from tui_gen_win_info.
4068 * tui/tui-win.c (tui_win_info::max_width): Move from
4069 tui_gen_win_info.
4070 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
4071 type.
4072 <window_factory>: Likewise.
4073 * tui/tui-layout.c (tui_win_info::resize): Move from
4074 tui_gen_win_info.
4075 (make_standard_window): Change return type.
4076 (get_locator_window, tui_get_window_by_name): Likewise.
4077 (tui_layout_window::apply): Remove a cast.
4078 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
4079 (struct tui_win_info): Merge with tui_gen_win_info.
4080 (struct tui_gen_win_info): Remove.
4081
a30cb6da
TT
40822020-07-01 Tom Tromey <tom@tromey.com>
4083
4084 * tui/tui-stack.h (struct tui_locator_window): Derive from
4085 tui_win_info.
4086 <do_scroll_horizontal, do_scroll_vertical>: New methods.
4087 <can_box>: New method.
4088
1eb2161f
TT
40892020-07-01 Tom Tromey <tom@tromey.com>
4090
4091 * tui/tui-stack.h (struct tui_locator_window): Remove body.
4092
7134f2eb
TT
40932020-07-01 Tom Tromey <tom@tromey.com>
4094
4095 * tui/tui-regs.c (tui_data_window::display_registers_from)
4096 (tui_data_window::display_registers_from)
4097 (tui_data_window::first_data_item_displayed)
4098 (tui_data_window::delete_data_content_windows): Update.
4099 (tui_data_window::refresh_window, tui_data_window::no_refresh):
4100 Remove.
4101 (tui_data_window::check_register_values): Update.
4102 (tui_data_item_window::rerender): Add parameters. Update.
4103 (tui_data_item_window::refresh_window): Remove.
4104 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
4105 virtual.
4106 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
4107 tui_gen_win_info.
4108 <refresh_window, max_height, min_height>: Remove.
4109 <rerender>: Add parameters.
4110 <x, y, visible>: New members.
4111 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
4112 <m_item_width>: New member.
4113
22b7b041
TT
41142020-07-01 Tom Tromey <tom@tromey.com>
4115
4116 * tui/tui-regs.c (tui_data_window::show_register_group)
4117 (tui_data_window::check_register_values): Update.
4118 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
4119 from item_no.
4120
c9753adb
TT
41212020-07-01 Tom Tromey <tom@tromey.com>
4122
4123 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
4124 useless "if".
4125
9ab26b4a
TT
41262020-07-01 Tom Tromey <tom@tromey.com>
4127
4128 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
4129 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
4130
e555083f
TT
41312020-07-01 Tom Tromey <tom@tromey.com>
4132
4133 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
4134 * tui/tui-winsource.h (enum tui_line_or_address_kind)
4135 (struct tui_line_or_address): Move from tui-data.h.
4136 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
4137 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
4138 (tui_cmd_window, tui_source_window_base, tui_source_window)
4139 (tui_disasm_window): Don't declare.
4140 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
4141 to tui-winsource.h.
4142 (SINGLE_KEY): Move to tui-stack.c.
4143
7a02bab7
TT
41442020-07-01 Tom Tromey <tom@tromey.com>
4145
4146 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
4147 std::string.
4148 * tui/tui-regs.c (class tab_expansion_file): New.
4149 (tab_expansion_file::write): New method.
4150 (tui_register_format): Change return type. Use
4151 tab_expansion_file.
4152 (tui_get_register, tui_data_window::display_registers_from)
4153 (tui_data_item_window::rerender): Update.
4154 * tui/tui-io.h (tui_expand_tabs): Don't declare.
4155 * tui/tui-io.c (tui_expand_tabs): Remove.
4156
ea68593b
TT
41572020-07-01 Tom Tromey <tom@tromey.com>
4158
4159 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
4160
a8caed5d
FS
41612020-07-01 Fangrui Song <maskray@google.com>
4162
4163 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
4164
9cdf9820
AKS
41652020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4166
4167 * dwarf2/read.c (set_die_type): Removed conditions to restrict
4168 forms for DW_AT_associated and DW_AT_allocated attributes,
4169 which is already checked in function attr_to_dynamic_prop.
4170
a1520ad8
TT
41712020-06-30 Tom Tromey <tromey@adacore.com>
4172
4173 * dwarf2/read.c (quirk_rust_enum): Correctly call
4174 alloc_rust_variant for default-less enum.
4175
5ac58899
TT
41762020-06-30 Tom Tromey <tromey@adacore.com>
4177
4178 PR build/26183:
4179 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
4180 gdb::to_string.
4181
19b187a9
SM
41822020-06-29 Simon Marchi <simon.marchi@efficios.com>
4183
4184 * gdbarch.sh (displaced_step_copy_insn): Update doc.
4185 * gdbarch.h: Re-generate.
4186
cd4c4c07
TT
41872020-06-28 Tom Tromey <tom@tromey.com>
4188
4189 * command.h (cmd_types): Remove.
4190 (cmd_type): Don't declare.
4191 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
4192 typedef.
4193 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
4194 * cli/cli-decode.c (cmd_type): Remove.
4195
05779d57
PA
41962020-06-27 Pedro Alves <palves@redhat.com>
4197
4198 * fork-child.c (prefork_hook): Adjust.
4199 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
4200 Delete.
4201 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
4202 * inferior.c (inferior::set_tty, inferior::tty): New methods.
4203 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
4204 Remove declarations.
4205 (struct inferior) <set_tty, tty>: New methods.
4206 (struct inferior) <terminal>: Rename to ...
4207 (struct inferior) <m_terminal>: ... this and make private.
4208 * main.c (captured_main_1): Adjust.
4209 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
4210 (mi_cmd_inferior_tty_show): Adjust.
4211 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
4212 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
4213
1776e3e5
NA
42142020-06-26 Nick Alcock <nick.alcock@oracle.com>
4215
4216 * configure.ac: Add --enable-libctf: handle --disable-static
4217 properly.
4218 * acinclude.m4: sinclude ../config/enable.m4.
4219 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
4220 (LIBCTF): Substitute in.
4221 (CTF_DEPS): New, likewise.
4222 (CLIBS): libctf needs symbols from libbfd: move earlier.
4223 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
4224 flags.
4225 * ctfread.c: Surround in ENABLE_LIBCTF.
4226 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
4227 * configure: Regenerate.
4228 * config.in: Likewise.
4229
58373b80
SM
42302020-06-25 Simon Marchi <simon.marchi@efficios.com>
4231
4232 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
4233
277474ee
SM
42342020-06-25 Simon Marchi <simon.marchi@efficios.com>
4235
4236 * inferior.h (struct inferior) <terminal>: Change type to
4237 gdb::unique_xmalloc_ptr<char>.
4238 * inferior.c (inferior::~inferior): Don't free inf->terminal.
4239 * infcmd.c (set_inferior_io_terminal): Don't free terminal
4240 field, adjust to unique pointer.
4241 (get_inferior_io_terminal): Adjust to unique pointer.
4242
6d74da72
AB
42432020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4244
4245 * riscv-tdep.c (riscv_print_registers_info): Loop over all
4246 registers, not just the known core set of registers.
4247
2e52d038
AB
42482020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4249
4250 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
4251 fflags, frm, and fcsr registers.
4252 (riscv_register_reggroup_p): Remove unknown CSRs from save and
4253 restore groups.
4254 (riscv_tdesc_unknown_reg): New function.
4255 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
4256 tdesc_use_registers.
4257 * riscv-tdep.h (struct gdbarch_tdep): Add
4258 unknown_csrs_first_regnum, unknown_csrs_count,
4259 duplicate_fflags_regnum, duplicate_frm_regnum, and
4260 duplicate_fcsr_regnum fields.
4261
be64fd07
AB
42622020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4263
4264 * target-descriptions.c (tdesc_use_registers): Add new parameter a
4265 callback, use the callback (when not null) to help number unknown
4266 registers.
4267 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
4268 (tdesc_use_registers): Add extra parameter to declaration.
4269
3b9fce96
AB
42702020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4271
4272 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
4273 in the file.
4274 (class riscv_pending_register_alias): Likewise.
4275 (riscv_register_feature::register_info): Change 'required_p' field
4276 to 'required', and change its type. Add 'check' member function.
4277 (riscv_register_feature::register_info::check): Define new member
4278 function.
4279 (riscv_xreg_feature): Change initialisation of 'required' field.
4280 (riscv_freg_feature): Likewise.
4281 (riscv_virtual_feature): Likewise.
4282 (riscv_csr_feature): Likewise.
4283 (riscv_check_tdesc_feature): Take extra parameter, the csr
4284 tdesc_feature, rewrite the function to use the new
4285 riscv_register_feature::register_info::check function.
4286 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
4287
865bad26
AB
42882020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4289
4290 * features/Makefile: Remove all references to the deleted files
4291 below.
4292 * features/riscv/32bit-csr.c: Deleted.
4293 * features/riscv/32bit-csr.xml: Deleted.
4294 * features/riscv/64bit-csr.c: Deleted.
4295 * features/riscv/64bit-csr.xml: Deleted.
4296 * features/riscv/rebuild-csr-xml.sh: Deleted.
4297
ed69cbc8
AB
42982020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4299
4300 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
4301 whitespace error for declaration of names member variable.
4302 (struct riscv_register_feature): Add new prefer_first_name member
4303 variable, and fix whitespace error in declaration of registers.
4304 (riscv_xreg_feature): Initialize prefer_first_name field.
4305 (riscv_freg_feature): Likewise.
4306 (riscv_virtual_feature): Likewise.
4307 (riscv_csr_feature): Likewise.
4308 (riscv_register_name): Expand on comments. Remove register name
4309 modifications for CSR and virtual registers.
4310
4445e8f5
AB
43112020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4312
4313 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
4314 errors.
4315
767a879e
AB
43162020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4317
4318 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
4319 riscv-opc.h.
4320 (class riscv_pending_register_alias): New class.
4321 (riscv_check_tdesc_feature): Take vector of pending aliases and
4322 populate it as appropriate.
4323 (riscv_setup_register_aliases): Delete.
4324 (riscv_gdbarch_init): Create vector of pending aliases and pass it
4325 to riscv_check_tdesc_feature in all cases. Use the vector to
4326 create the register aliases.
4327
bb6e55f3
RO
43282020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4329
4330 * sol2-tdep.c (sol2_static_transform_name): Remove.
4331 (sol2_init_abi): Don't register it.
4332 * gdbarch.sh (static_transform_name): Remove.
4333 * gdbarch.c, gdbarch.h: Regenerate.
4334
4335 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
4336 gdbarch_static_transform_name.
4337 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
4338 * stabsread.c (define_symbol) <'X'>: Remove.
4339 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
4340 handling.
4341 <'V'>: Likewise.
4342 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
4343 <'S'>: Remove call to gdbarch_static_transform_name.
4344
c6d36836
RO
43452020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4346
4347 * procfs.c (procfs_pre_trace): New function.
4348 (procfs_target::create_inferior): Pass it to fork_inferior.
4349
a7e6196b
RO
43502020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4351
4352 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
4353 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
4354 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
4355 sol2-tdep.o, sparc-sol2-tdep.o.
4356 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
4357 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
4358 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
4359 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
4360
d412e696
RO
43612020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4362
4363 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
4364 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
4365 Call sol2_init_abi.
4366 Remove calls to set_gdbarch_skip_solib_resolver,
4367 set_gdbarch_core_pid_to_str.
4368 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
4369 (i386_sol2_static_transform_name): Remove.
4370 (i386_sol2_init_abi): Call sol2_init_abi.
4371 Remove calls to set_gdbarch_sofun_address_maybe_missing,
4372 set_gdbarch_static_transform_name,
4373 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
4374 Use sol2_sigtramp_p.
4375 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
4376 (sol2_sigtramp_p): New function.
4377 (sol2_static_transform_name): New function.
4378 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
4379 (sol2_init_abi): New function.
4380 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
4381 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
4382 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
4383 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
4384 (sparc_sol2_static_transform_name): Remove.
4385 (sparc32_sol2_init_abi): Call sol2_init_abi.
4386 Remove calls to set_gdbarch_sofun_address_maybe_missing,
4387 set_gdbarch_static_transform_name,
4388 set_gdbarch_skip_solib_resolver,
4389 set_gdbarch_core_pid_to_str.
4390 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
4391 (sparc_sol2_static_transform_name): Remove
4392 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
4393 call sol2_sigtramp_p.
4394 (sparc64_sol2_init_abi): Call sol2_init_abi.
4395 Remove calls to set_gdbarch_sofun_address_maybe_missing,
4396 set_gdbarch_static_transform_name,
4397 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
4398
a8654e7d
PW
43992020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4400
4401 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
4402 * exec.c (validate_exec_file): If from_tty, set both
4403 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
4404 * symfile.c (symbol_file_add_with_addrs): if always_confirm
4405 and from_tty, unconditionally ask a confirmation.
4406
caa7fd04
AB
44072020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4408
4409 * target-descriptions.c (tdesc_architecture_name): Protect against
4410 NULL pointer dereference.
4411 (maint_print_xml_tdesc_cmd): New function.
4412 (_initialize_target_descriptions): Register new 'maint print
4413 xml-tdesc' command and give it the filename completer.
4414 * NEWS: Mention new 'maint print xml-tdesc' command.
4415
fbf42f4e
AB
44162020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4417
4418 * target-descriptions.c (class tdesc_compatible_info): New class.
4419 (struct target_desc): Change type of compatible vector.
4420 (tdesc_compatible_p): Update for change in type of
4421 target_desc::compatible.
4422 (tdesc_compatible_info_list): New function.
4423 (tdesc_compatible_info_arch_name): New function.
4424 (tdesc_add_compatible): Update for change in type of
4425 target_desc::compatible.
4426 (print_c_tdesc::visit_pre): Likewise.
4427
20821f4e
AB
44282020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4429
4430 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
4431 whitespace to underscore.
4432 (maint_print_c_tdesc_cmd): Use fake filename for target
4433 descriptions that came from the target.
4434 (_initialize_target_descriptions): Add filename command completion
4435 for 'maint print c-tdesc'.
4436
1fb5ee62
SM
44372020-06-23 Simon Marchi <simon.marchi@efficios.com>
4438
4439 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
4440 lines.
4441
fc3ecb3e
SM
44422020-06-23 Simon Marchi <simon.marchi@efficios.com>
4443
4444 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
4445 lines.
4446 (dwarf2_find_location_expression): Likewise.
4447 (call_site_parameter_matches): Likewise.
4448 (dwarf2_compile_expr_to_ax): Likewise.
4449 (disassemble_dwarf_expression): Likewise.
4450 (loclist_describe_location): Likewise.
4451
236ef034
PA
44522020-06-23 Pedro Alves <palves@redhat.com>
4453
4454 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
4455 progspace-and-thread.h. Include scoped-mock-context.h instead.
4456 (register_to_value_test): Use scoped_mock_context.
4457 * regcache.c: Include "scoped-mock-context.h".
4458 (cooked_read_test): Don't error out if a target is already pushed.
4459 Use scoped_mock_context. Adjust.
4460 * scoped-mock-context.h: New file.
4461
39e7ecca
AB
44622020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4463
4464 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
4465 initializer.
4466 (ada_language::is_string_type_p): New member function.
4467 * c-lang.c (c_language_data): Delete la_is_string_type_p
4468 initializer.
4469 (cplus_language_data): Likewise.
4470 (asm_language_data): Likewise.
4471 (minimal_language_data): Likewise.
4472 * d-lang.c (d_language_data): Likewise.
4473 * f-lang.c (f_is_string_type_p): Delete function, implementation
4474 moved to f_language::is_string_type_p.
4475 (f_language_data): Delete la_is_string_type_p initializer.
4476 (f_language::is_string_type_p): New member function,
4477 implementation from f_is_string_type_p.
4478 * go-lang.c (go_is_string_type_p): Delete function, implementation
4479 moved to go_language::is_string_type_p.
4480 (go_language_data): Delete la_is_string_type_p initializer.
4481 (go_language::is_string_type_p): New member function,
4482 implementation from go_is_string_type_p.
4483 * language.c (language_defn::is_string_type_p): Define new member
4484 function.
4485 (default_is_string_type_p): Make static, add comment copied from
4486 header file.
4487 (unknown_language_data): Delete la_is_string_type_p initializer.
4488 (unknown_language::is_string_type_p): New member function.
4489 (auto_language_data): Delete la_is_string_type_p initializer.
4490 (auto_language::is_string_type_p): New member function.
4491 * language.h (language_data): Delete la_is_string_type_p field.
4492 (language_defn::is_string_type_p): Declare new function.
4493 (default_is_string_type_p): Delete desclaration, move comment to
4494 definition.
4495 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
4496 moved to m2_language::is_string_type_p.
4497 (m2_language_data): Delete la_is_string_type_p initializer.
4498 (m2_language::is_string_type_p): New member function,
4499 implementation from m2_is_string_type_p.
4500 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
4501 initializer.
4502 * opencl-lang.c (opencl_language_data): Likewise.
4503 * p-lang.c (pascal_is_string_type_p): Delete function,
4504 implementation moved to pascal_language::is_string_type_p.
4505 (pascal_language_data): Delete la_is_string_type_p initializer.
4506 (pascal_language::is_string_type_p): New member function,
4507 implementation from pascal_is_string_type_p.
4508 * rust-lang.c (rust_is_string_type_p): Delete function,
4509 implementation moved to rust_language::is_string_type_p.
4510 (rust_language_data): Delete la_is_string_type_p initializer.
4511 (rust_language::is_string_type_p): New member function,
4512 implementation from rust_is_string_type_p.
4513 * valprint.c (val_print_scalar_or_string_type_p): Update call to
4514 is_string_type_p.
4515
4ffc13fb
AB
45162020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4517
4518 * ada-lang.c (ada_language_data): Delete la_print_typedef
4519 initializer.
4520 (ada_language::print_typedef): New member function.
4521 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
4522 (cplus_language_data): Likewise.
4523 (asm_language_data): Likewise.
4524 (minimal_language_data): Likewise.
4525 * d-lang.c (d_language_data): Likewise.
4526 * f-lang.c (f_language_data): Likewise.
4527 (f_language::print_typedef): New member function.
4528 * go-lang.c (go_language_data): Delete la_print_typedef
4529 initializer.
4530 * language.c (language_defn::print_typedef): Define member
4531 function.
4532 (unknown_language_data): Delete la_print_typedef initializer.
4533 (unknown_language::print_typedef): New member function.
4534 (auto_language_data): Delete la_print_typedef initializer.
4535 (auto_language::print_typedef): New member function.
4536 * language.h (language_data): Delete la_print_typedef field.
4537 (language_defn::print_typedef): Declare new member function.
4538 (LA_PRINT_TYPEDEF): Update call to print_typedef.
4539 (default_print_typedef): Delete declaration.
4540 * m2-lang.c (m2_language_data): Delete la_print_typedef
4541 initializer.
4542 (m2_language::print_typedef): New member function.
4543 * objc-lang.c (objc_language_data): Delete la_print_typedef
4544 initializer.
4545 * opencl-lang.c (opencl_language_data): Likewise.
4546 * p-lang.c (pascal_language_data): Likewise.
4547 (pascal_language::print_typedef): New member function.
4548 * rust-lang.c (rust_print_typedef): Delete function,
4549 implementation moved to rust_language::print_typedef.
4550 (rust_language): Delete la_print_typedef initializer.
4551 (rust_language::print_typedef): New member function,
4552 implementation from rust_print_typedef.
4553 * typeprint.c (default_print_typedef): Delete.
4554
d711ee67
AB
45552020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4556
4557 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
4558 (ada_language::printstr): New member function.
4559 * c-lang.c (c_language_data): Delete la_printstr initializer.
4560 (cplus_language_data): Likewise.
4561 (asm_language_data): Likewise.
4562 (minimal_language_data): Likewise.
4563 * d-lang.c (d_language_data): Likewise.
4564 * f-lang.c (f_printstr): Rename to f_language::printstr.
4565 (f_language_data): Delete la_printstr initializer.
4566 (f_language::printstr): New member function, implementation from
4567 f_printstr.
4568 * go-lang.c (go_language_data): Delete la_printstr initializer.
4569 * language.c (language_defn::printstr): Define new member
4570 function.
4571 (unk_lang_printstr): Delete.
4572 (unknown_language_data): Delete la_printstr initializer.
4573 (unknown_language::printstr): New member function.
4574 (auto_language_data): Delete la_printstr initializer.
4575 (auto_language::printstr): New member function.
4576 * language.h (language_data): Delete la_printstr field.
4577 (language_defn::printstr): Declare new member function.
4578 (LA_PRINT_STRING): Update call to printstr.
4579 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
4580 (m2_language_data): Delete la_printstr initializer.
4581 (m2_language::printstr): New member function, implementation from
4582 m2_printstr.
4583 * objc-lang.c (objc_language_data): Delete la_printstr
4584 initializer.
4585 * opencl-lang.c (opencl_language_data): Likewise.
4586 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
4587 (pascal_language_data): Delete la_printstr initializer.
4588 (pascal_language::printstr): New member function, implementation
4589 from pascal_printstr.
4590 * p-lang.h (pascal_printstr): Delete declaration.
4591 * rust-lang.c (rust_printstr): Update header comment.
4592 (rust_language_data): Delete la_printstr initializer.
4593 (rust_language::printstr): New member function.
4594
52b50f2c
AB
45952020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4596
4597 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
4598 (ada_language::printchar): New member function.
4599 * c-lang.c (c_language_data): Delete la_printchar initializer.
4600 (cplus_language_data): Likewise.
4601 (asm_language_data): Likewise.
4602 (minimal_language_data): Likewise.
4603 * d-lang.c (d_language_data): Likewise.
4604 * f-lang.c (f_printchar): Rename to f_language::printchar.
4605 (f_language_data): Delete la_printchar initializer.
4606 (f_language::printchar): New member function, implementation from
4607 f_printchar.
4608 * go-lang.c (go_language_data): Delete la_printchar initializer.
4609 * language.c (unk_lang_printchar): Delete.
4610 (language_defn::printchar): Define new member function.
4611 (unknown_language_data): Delete la_printchar initializer.
4612 (unknown_language::printchar): New member function.
4613 (auto_language_data): Delete la_printchar initializer.
4614 (auto_language::printchar): New member function.
4615 * language.h (language_data): Delete la_printchar field.
4616 (language_defn::printchar): Declare new member function.
4617 (LA_PRINT_CHAR): Update call to printchar.
4618 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
4619 (m2_language::printchar): New member function.
4620 * objc-lang.c (objc_language_data): Delete la_printchar
4621 initializer.
4622 * opencl-lang.c (opencl_language_data): Likewise.
4623 * p-lang.c (pascal_language_data): Delete la_printchar
4624 initializer.
4625 (pascal_language::printchar): New member function.
4626 * rust-lang.c (rust_printchar): Rename to
4627 rust_language::printchar.
4628 (rust_language_data): Delete la_printchar initializer.
4629 (rust_language::printchar): New member function, implementation
4630 from rust_printchar.
4631
ec8cec5b
AB
46322020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4633
4634 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
4635 (ada_language_data): Delete la_emitchar initializer.
4636 (ada_language::emitchar): New member function, implementation from
4637 emit_char.
4638 * c-lang.c (c_language_data): Delete la_emitchar initializer.
4639 (cplus_language_data): Likewise.
4640 (asm_language_data): Likewise.
4641 (minimal_language_data): Likewise.
4642 * d-lang.c (d_language_data): Likewise.
4643 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
4644 (f_language_data): Delete la_emitchar initializer.
4645 (f_language::emitchar): New member function, implementation from
4646 f_emit_char.
4647 * go-lang.c (go_language_data): Delete la_emitchar initializer.
4648 * language.c (unk_lang_emit_char): Delete.
4649 (language_defn::emitchar): New member function definition.
4650 (unknown_language_data): Delete la_emitchar initializer.
4651 (unknown_language::emitchar): New member function.
4652 (auto_language_data): Delete la_emitchar initializer.
4653 (auto_language::emitchar): New member function.
4654 * language.h (language_data): Delete la_emitchar field.
4655 (language_defn::emitchar): New member field declaration.
4656 (LA_EMIT_CHAR): Update call to emitchar.
4657 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
4658 (m2_language_data): Delete la_emitchar initializer.
4659 (m2_language::emitchar): New member function, implementation from
4660 m2_emit_char.
4661 * objc-lang.c (objc_language_data): Delete la_emitchar
4662 initializer.
4663 * opencl-lang.c (opencl_language_data): Likewise.
4664 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
4665 (pascal_language_data): Delete la_emitchar initializer.
4666 (pascal_language::emitchar): New member function, implementation
4667 from pascal_emit_char.
4668 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
4669 (rust_language_data): Delete la_emitchar initializer.
4670 (rust_language::emitchar): New member function, implementation
4671 from rust_emitchar.
4672
1bf9c363
AB
46732020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4674
4675 * ada-lang.c (resolve): Rename to ada_language::post_parser.
4676 (ada_language_data): Delete la_post_parser initializer.
4677 (ada_language::post_parser): New member function.
4678 * c-lang.c (c_language_data): Delete la_post_parser initializer.
4679 (cplus_language_data): Likewise.
4680 (asm_language_data): Likewise.
4681 (minimal_language_data): Likewise.
4682 * d-lang.c (d_language_data): Likewise.
4683 * f-lang.c (f_language_data): Likewise.
4684 * go-lang.c (go_language_data): Likewise.
4685 * language.c (unknown_language_data): Likewise.
4686 (auto_language_data): Likewise.
4687 * language.h (language_data): Delete la_post_parser field.
4688 (language_defn::post_parser): New member function.
4689 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
4690 * objc-lang.c (objc_language_data): Likewise.
4691 * opencl-lang.c (opencl_language_data): Likewise.
4692 * p-lang.c (pascal_language_data): Likewise.
4693 * parse.c (parse_exp_in_context): Update call to post_parser.
4694 (null_post_parser): Delete definition.
4695 * parser-defs.h (null_post_parser): Delete declaration.
4696 * rust-lang.c (rust_language_data): Delete la_post_parser
4697 initializer.
4698
87afa652
AB
46992020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4700
4701 * ada-lang.c (parse): Rename to ada_language::parser.
4702 (ada_language_data): Delete la_parser initializer.
4703 (ada_language::parser): New member function, implementation from
4704 parse.
4705 * c-lang.c (c_language_data): Delete la_parser initializer.
4706 (cplus_language_data): Likewise.
4707 (asm_language_data): Likewise.
4708 (minimal_language_data): Likewise.
4709 * d-lang.c (d_language_data): Likewise.
4710 (d_language::parser): New member function.
4711 * f-lang.c (f_language_data): Delete la_parser initializer.
4712 (f_language::parser): New member function.
4713 * go-lang.c (go_language_data): Delete la_parser initializer.
4714 (go_language::parser): New member function.
4715 * language.c (unk_lang_parser): Delete.
4716 (language_defn::parser): Define new member function.
4717 (unknown_language_data): Delete la_parser initializer.
4718 (unknown_language::parser): New member function.
4719 (auto_language_data): Delete la_parser initializer.
4720 (auto_language::parser): New member function.
4721 * language.h (language_data): Delete la_parser field.
4722 (language_defn::parser): Declare new member function.
4723 * m2-lang.c (m2_language_data): Delete la_parser initializer.
4724 (m2_language::parser): New member function.
4725 * objc-lang.c (objc_language_data): Delete la_parser initializer.
4726 * opencl-lang.c (opencl_language_data): Likewise.
4727 * p-lang.c (pascal_language_data): Likewise.
4728 (pascal_language::parser): New member function.
4729 * parse.c (parse_exp_in_context): Update call to parser.
4730 * rust-lang.c (rust_language_data): Delete la_parser initializer.
4731 (rust_language::parser): New member function.
4732
37825800
AB
47332020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4734
4735 * top.c (print_gdb_configuration): Print --with-python-libdir
4736 configuration value.
4737
5b860c93
PW
47382020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4739
4740 * NEWS: Mention change to the alias command.
4741
cf00cd6f
PW
47422020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4743
4744 * cli/cli-cmds.c (lookup_cmd_for_default_args)
4745 (alias_command_completer)
4746 (make_alias_options_def_group): New functions.
4747 (alias_opts, alias_option_defs): New struct and array.
4748 (alias_usage_error): Update usage.
4749 (alias_command): Handles optional DEFAULT-ARGS... arguments.
4750 Use option framework.
4751 (_initialize_cli_cmds): Update alias command help.
4752 Update aliases command help.
4753 (show_user):
4754 Add NULL for new default_args lookup_cmd argument.
4755 (valid_command_p): Rename to validate_aliased_command.
4756 Add NULL for new default_args lookup_cmd argument. Verify that the
4757 aliased_command has no default args.
4758 * cli/cli-decode.c (help_cmd): Show aliases definitions.
4759 (lookup_cmd_1, lookup_cmd): New argument default_args.
4760 (add_alias_cmd):
4761 Add NULL for new default_args lookup_cmd argument.
4762 (print_help_for_command): Show default args under the layout
4763 alias some_alias = some_aliased_cmd some_alias_default_arg.
4764 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
4765 xfree default_args in destructor.
4766 * cli/cli-script.c (process_next_line, do_define_command):
4767 Add NULL for new default_args lookup_cmd argument.
4768 * command.h: Declare new default_args argument in lookup_cmd
4769 and lookup_cmd_1.
4770 * completer.c (complete_line_internal_1):
4771 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4772 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
4773 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
4774 Likewise.
4775 * infcmd.c (_initialize_infcmd): Likewise.
4776 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
4777 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
4778 * python/py-param.c (add_setshow_generic): Likewise.
4779 * remote.c (_initialize_remote): Likewise.
4780 * top.c (execute_command): Prepend default_args if command has some.
4781 (set_verbose):
4782 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4783 * tracepoint.c (validate_actionline, encode_actions_1):
4784 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4785
bd920864
TBA
47862020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4787
4788 * jit.c (jit_read_descriptor): Use bool as the return type.
4789 (jit_breakpoint_re_set_internal): Use bool as the return type.
4790 Invert the return value logic; return true if the jit breakpoint
4791 has been successfully initialized.
4792 (jit_inferior_init): Update the call to
4793 jit_breakpoint_re_set_internal.
4794
f8098322
PA
47952020-06-22 Pedro Alves <palves@redhat.com>
4796
4797 PR gdb/25939
4798 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
4799 Use the current inferior instead. Don't return
4800 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
4801 wait again.
4802 * sol-thread.c (sol_thread_target::wait): Don't reference
4803 inferior_ptid.
4804 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
4805 (sol_update_thread_list_callback): Use the current inferior's pid
4806 instead of inferior_ptid.
4807
196535a6
RO
48082020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4809
4810 * procfs.c: Cleanup many comments.
4811
4812 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
4813 (AFTER_WATCHFLAG): Replace by value.
4814
4815 (MAIN_PROC_NAME_FORMAT): Inline ...
4816 (create_procinfo): ... here.
4817
4818 (procfs_debug_inferior): Remove SYS_exec handling.
4819 (syscall_is_exec): Likewise.
4820 (procfs_set_exec_trap): Likewise.
4821
4822 (syscall_is_lwp_exit): Inline in callers.
4823 (syscall_is_exit): Likewise.
4824 (syscall_is_exec): Likewise.
4825 (syscall_is_lwp_create): Likewise.
4826
4827 (invalidate_cache): Remove #if 0 code.
4828
4829 (make_signal_thread_runnable): Remove.
4830 (procfs_target::resume): Remove #if 0 code.
4831
cf6f3e86
RO
48322020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4833
4834 PR gdb/25939
4835 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
4836 call ...
4837 (procfs_target::create_inferior): ... here.
4838
48e9cc84
PW
48392020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4840
4841 * exec.c (validate_exec_file): Ensure the build-id is up to
4842 date by calling reopen_exec_file (that checks file timestamp
4843 to decide to re-read the file).
4844
3922b302
PA
48452020-06-18 Pedro Alves <palves@redhat.com>
4846
4847 PR gdb/25412
4848 * gdbthread.h (delete_thread, delete_thread_silent)
4849 (find_thread_ptid): Update comments.
4850 * thread.c (current_thread_): New global.
4851 (is_current_thread): Move higher, and reimplement.
4852 (inferior_thread): Reimplement.
4853 (set_thread_exited): Use bool. Add assertions.
4854 (add_thread_silent): Simplify thread-reuse handling by always
4855 calling delete_thread.
4856 (delete_thread): Remove intro comment.
4857 (find_thread_ptid): Skip exited threads.
4858 (switch_to_thread_no_regs): Write to current_thread_.
4859 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
4860 INFERIOR_PTID. Clear current_thread_.
4861
6dbdab44
PA
48622020-06-18 Pedro Alves <palves@redhat.com>
4863
4864 * aix-thread.c (pd_update): Use switch_to_thread.
4865
2da4b788
PA
48662020-06-18 Pedro Alves <palves@redhat.com>
4867
4868 * ravenscar-thread.c (ravenscar_thread_target): Update.
4869 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
4870 (ravenscar_thread_target::add_active_thread): ... this. Don't
4871 set m_base_ptid here. Update to avoid referencing inferior_ptid.
4872 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
4873
50838d1b
PA
48742020-06-18 Pedro Alves <palves@redhat.com>
4875
4876 * nat/windows-nat.c (current_windows_thread): Remove.
4877 * nat/windows-nat.h (current_windows_thread): Remove.
4878 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
4879 Adjust.
4880 (display_selectors): Adjust to fetch the current
4881 windows_thread_info based on inferior_ptid.
4882 (fake_create_process): No longer write to current_windows_thread.
4883 (windows_nat_target::get_windows_debug_event):
4884 Don't set inferior_ptid or current_windows_thread.
4885 (windows_nat_target::wait): Adjust to not rely on
4886 current_windows_thread.
4887 (do_initial_windows_stuff): Now a method of windows_nat_target.
4888 Switch to the last_ptid thread.
4889 (windows_nat_target::attach): Adjust.
4890 (windows_nat_target::detach): Use switch_to_no_thread instead of
4891 writing to inferior_ptid directly.
4892 (windows_nat_target::create_inferior): Adjust.
4893
31ce04e9
PA
48942020-06-18 Pedro Alves <palves@redhat.com>
4895
4896 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
4897
1ee1a363
PA
48982020-06-18 Pedro Alves <palves@redhat.com>
4899
4900 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
4901 after creating it, instead of writing to inferior_ptid. Don't
4902 write to inferior_ptid.
4903
6d350754
PA
49042020-06-18 Pedro Alves <palves@redhat.com>
4905
4906 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
4907
5d971d48
PA
49082020-06-18 Pedro Alves <palves@redhat.com>
4909
4910 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
4911 it, instead of writing to inferior_ptid.
4912
86e57d1b
PA
49132020-06-18 Pedro Alves <palves@redhat.com>
4914
4915 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
4916 to inferior_ptid.
4917
f2e1c129
PA
49182020-06-18 Pedro Alves <palves@redhat.com>
4919
4920 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
4921 instead of writing to inferior_ptid directly.
4922
60db1b85
PA
49232020-06-18 Pedro Alves <palves@redhat.com>
4924
4925 * corelow.c (core_target::close): Use switch_to_no_thread instead
4926 of writing to inferior_ptid directly.
4927 (add_to_thread_list, core_target_open): Use switch_to_thread
4928 instead of writing to inferior_ptid directly.
4929
fe7d6a8d
PA
49302020-06-18 Pedro Alves <palves@redhat.com>
4931
4932 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
4933 inferior_ptid.
4934 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
4935 inferior_ptid.
4936 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
4937 inferior_ptid directly.
4938 (darwin_nat_target::init_thread_list): Switch to thread, instead
4939 of writing to inferior_ptid.
4940 (darwin_nat_target::attach): Don't write to inferior_ptid.
4941 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
4942
975f8708
PA
49432020-06-18 Pedro Alves <palves@redhat.com>
4944
4945 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
4946 thread.
4947 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
4948 Instead use switch_to_thread.
4949 (gnu_nat_target::detach): Use switch_to_no_thread
4950 instead of writing to inferior_ptid directly. Used passed-in
4951 inferior instead of looking up the inferior by pid.
4952
1a204730
PA
49532020-06-18 Pedro Alves <palves@redhat.com>
4954
4955 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
4956 inferior_ptid.
4957
ebe84f23
PA
49582020-06-18 Pedro Alves <palves@redhat.com>
4959
4960 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
4961 inferior_ptid.
4962 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
4963 thread.
4964 (nto_procfs_target::detach): Avoid referencing
4965 inferior_ptid. Use switch_to_no_thread instead of writing to
4966 inferior_ptid directly.
4967 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
4968 instead of writing to inferior_ptid directly.
4969 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
4970 to thread.
4971
191f02e5
PA
49722020-06-18 Pedro Alves <palves@redhat.com>
4973
4974 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
4975 after creating it, instead of writing to inferior_ptid.
4976 (gdbsim_target_open): Use switch_to_no_thread instead of writing
4977 to inferior_ptid directly.
4978 (gdbsim_target::wait): Don't write to inferior_ptid.
4979
0ac55310
PA
49802020-06-18 Pedro Alves <palves@redhat.com>
4981
4982 * remote.c (remote_target::remote_notice_new_inferior): Use
4983 switch_to_thread instead of writing to inferior_ptid directly.
4984 (remote_target::add_current_inferior_and_thread): Use
4985 switch_to_no_thread instead of writing to inferior_ptid directly.
4986 (extended_remote_target::attach): Use switch_to_inferior_no_thread
4987 and switch_to_thread instead of using set_current_inferior or
4988 writing to inferior_ptid directly.
4989
5233f39b
PA
49902020-06-18 Pedro Alves <palves@redhat.com>
4991
4992 * tracectf.c (ctf_target_open): Switch to added thread instead of
4993 writing to inferior_ptid directly.
4994 (ctf_target::close): Use switch_to_no_thread instead of writing to
4995 inferior_ptid directly.
4996
087e161b
PA
49972020-06-18 Pedro Alves <palves@redhat.com>
4998
4999 * tracefile-tfile.c (tfile_target_open): Don't write to
5000 inferior_ptid directly, instead switch to added thread.
5001 (tfile_target::close): Use switch_to_no_thread instead of writing
5002 to inferior_ptid directly.
5003
7fb43e53
PA
50042020-06-18 Pedro Alves <palves@redhat.com>
5005
5006 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
5007 (procfs_target::detach): Use switch_to_no_thread
5008 instead of writing to inferior_ptid directly.
5009 (do_attach): Change return type to void. Switch to the added
5010 thread.
5011 (procfs_target::create_inferior): Switch to the added thread.
5012 (procfs_do_thread_registers): Don't write to inferior_ptid.
5013
18493a00
PA
50142020-06-18 Pedro Alves <palves@redhat.com>
5015
5016 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
5017 of writing to inferior_ptid.
5018 (scoped_restore_exited_inferior): Delete.
5019 (handle_vfork_child_exec_or_exit): Simplify using
5020 scoped_restore_current_pspace_and_thread. Use switch_to_thread
5021 instead of writing to inferior_ptid.
5022 (THREAD_STOPPED_BY): Delete.
5023 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
5024 (thread_stopped_by_hw_breakpoint): Delete.
5025 (save_waitstatus): Use
5026 scoped_restore_current_thread+switch_to_thread, and call
5027 target_stopped_by_watchpoint instead of
5028 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
5029 instead of thread_stopped_by_sw_breakpoint, and
5030 target_stopped_by_hw_breakpoint instead of
5031 thread_stopped_by_hw_breakpoint.
5032 (handle_inferior_event)
5033 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
5034 inferior_ptid directly, nor
5035 set_current_inferior/set_current_program_space. Use
5036 switch_to_thread / switch_to_inferior_no_thread instead.
5037
a0776b13
PA
50382020-06-18 Pedro Alves <palves@redhat.com>
5039
5040 * target.c (generic_mourn_inferior): Use switch_to_no_thread
5041 instead of writing to inferior_ptid.
5042
6155c136
PA
50432020-06-18 Pedro Alves <palves@redhat.com>
5044
5045 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
5046 added thread.
5047 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
5048 to the added thread.
5049 (inf_ptrace_target::detach_success): Use switch_to_no_thread
5050 instead of writing to inferior_ptid.
5051
c5316fc6
PA
50522020-06-18 Pedro Alves <palves@redhat.com>
5053
5054 * gdbarch-selftests.c: Include "progspace-and-thread.h".
5055 (register_to_value_test): Mock a program_space too. Heap-allocate
5056 the address space. Don't write to inferior_ptid. Use
5057 switch_to_thread instead.
5058
8df01799
PA
50592020-06-18 Pedro Alves <palves@redhat.com>
5060
5061 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
5062 Delete.
5063 (find_signalled_thread()): New, factored out from
5064 linux_make_corefile_notes and adjusted to handle exited threads.
5065 (linux_make_corefile_notes): Adjust to use the new
5066 find_signalled_thread.
5067
41792d68
PA
50682020-06-18 Pedro Alves <palves@redhat.com>
5069
5070 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
5071 of saving/restoring inferior_ptid.
5072
612f258a
TT
50732020-06-17 Tom Tromey <tom@tromey.com>
5074
5075 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
5076 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
5077 declare.
5078 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
5079
efb763a5
SM
50802020-06-15 Simon Marchi <simon.marchi@efficios.com>
5081
5082 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
5083 of partial symtabs.
5084
2951f6c0
SM
50852020-06-17 Simon Marchi <simon.marchi@efficios.com>
5086
5087 * regformats/reg-arm.dat: Remove.
5088 * regformats/reg-bfin.dat: Remove.
5089 * regformats/reg-cris.dat: Remove.
5090 * regformats/reg-crisv32.dat: Remove.
5091 * regformats/reg-m32r.dat: Remove.
5092 * regformats/reg-tilegx.dat: Remove.
5093 * regformats/reg-tilegx32.dat: Remove.
5094
7d458ea5
SM
50952020-06-17 Simon Marchi <simon.marchi@efficios.com>
5096
5097 * features/Makefile (WHICH): Remove arm files.
5098 * regformats/arm/arm-with-iwmmxt.dat: Remove.
5099 * regformats/arm/arm-with-neon.dat: Remove.
5100 * regformats/arm/arm-with-vfpv2.dat: Remove.
5101 * regformats/arm/arm-with-vfpv3.dat: Remove.
5102
3af96c0d
SM
51032020-06-17 Simon Marchi <simon.marchi@efficios.com>
5104
5105 * features/Makefile (XMLTOC): Remove rx.xml.
5106
b25e22fd
PA
51072020-06-17 Pedro Alves <palves@redhat.com>
5108
5109 * gdbthread.h (thread_control_state) <trap_expected> Update
5110 comments.
5111
a78a19b1
AB
51122020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5113
5114 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
5115 ada_language::lookup_symbol_nonlocal.
5116 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
5117 (ada_language::lookup_symbol_nonlocal): New member function,
5118 implementation from ada_lookup_symbol_nonlocal.
5119 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
5120 initializer.
5121 (cplus_language_data): Delete la_lookup_symbol_nonlocal
5122 initializer.
5123 (cplus_language::lookup_symbol_nonlocal): New member function.
5124 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
5125 (minimal_language_data) Likewise.
5126 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
5127 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
5128 initializer.
5129 (d_language::lookup_symbol_nonlocal): New member function.
5130 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
5131 initializer.
5132 (f_language::lookup_symbol_nonlocal): New member function.
5133 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
5134 initializer.
5135 * language.c (unknown_language_data): Likewise.
5136 (auto_language_data): Likewise.
5137 * language.h (language_data): Delete la_lookup_symbol_nonlocal
5138 field.
5139 (language_defn::lookup_symbol_nonlocal): New member function.
5140 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
5141 initializer.
5142 * objc-lang.c (objc_language_data): Likewise.
5143 * opencl-lang.c (opencl_language_data): Likewise.
5144 * p-lang.c (pascal_language_data): Likewise.
5145 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
5146 rust_language::lookup_symbol_nonlocal.
5147 (rust_language_data): Delete la_lookup_symbol_nonlocal
5148 initializer.
5149 (rust_language::lookup_symbol_nonlocal): New member function,
5150 implementation from rust_lookup_symbol_nonlocal.
5151 * symtab.c (lookup_symbol_aux): Update call to
5152 lookup_symbol_nonlocal.
5153 (basic_lookup_symbol_nonlocal): Rename to...
5154 (language_defn::lookup_symbol_nonlocal): ...this, and update
5155 header comment. Remove language_defn parameter, and replace with
5156 uses of `this'.
5157 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
5158
ebe2334e
AB
51592020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5160
5161 * ada-lang.c (ada_language_data): Delete la_value_print_inner
5162 initializer.
5163 (ada_language::value_print_inner): New member function.
5164 * c-lang.c (c_language_data): Delete la_value_print_inner
5165 initializer.
5166 (cplus_language_data): Likewise.
5167 (asm_language_data): Likewise.
5168 (minimal_language_data): Likewise.
5169 * d-lang.c (d_language_data): Likewise.
5170 (d_language::value_print_inner): New member function.
5171 * f-lang.c (f_language_data): Delete la_value_print_inner
5172 initializer.
5173 (f_language::value_print_inner): New member function.
5174 * f-lang.h (f_value_print_innner): Rename to...
5175 (f_value_print_inner): ...this (note spelling of 'inner').
5176 * f-valprint.c (f_value_print_innner): Rename to...
5177 (f_value_print_inner): ...this (note spelling of 'inner').
5178 * go-lang.c (go_language_data): Delete la_value_print_inner
5179 initializer.
5180 (go_language::value_print_inner): New member function.
5181 * language.c (language_defn::value_print_inner): Define new member
5182 function.
5183 (unk_lang_value_print_inner): Delete.
5184 (unknown_language_data): Delete la_value_print_inner initializer.
5185 (unknown_language::value_print_inner): New member function.
5186 (auto_language_data): Delete la_value_print_inner initializer.
5187 (auto_language::value_print_inner): New member function.
5188 * language.h (language_data): Delete la_value_print_inner field.
5189 (language_defn::value_print_inner): Delcare new member function.
5190 * m2-lang.c (m2_language_data): Delete la_value_print_inner
5191 initializer.
5192 (m2_language::value_print_inner): New member function.
5193 * objc-lang.c (objc_language_data): Delete la_value_print_inner
5194 initializer.
5195 * opencl-lang.c (opencl_language_data): Likewise.
5196 * p-lang.c (pascal_language_data): Likewise.
5197 (pascal_language::value_print_inner): New member function.
5198 * rust-lang.c (rust_language_data): Delete la_value_print_inner
5199 initializer.
5200 (rust_language::value_print_inner): New member function.
5201 * valprint.c (do_val_print): Update call to value_print_inner.
5202
a1d1fa3e
AB
52032020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5204
5205 * ada-lang.c (ada_language_data): Delete la_value_print
5206 initializer.
5207 (ada_language::value_print): New member function.
5208 * c-lang.c (c_language_data): Delete la_value_print initializer.
5209 (cplus_language_data): Likewise.
5210 (asm_language_data): Likewise.
5211 (minimal_language_data): Likewise.
5212 * d-lang.c (d_language_data): Likewise.
5213 * f-lang.c (f_language_data): Likewise.
5214 * go-lang.c (go_language_data): Likewise.
5215 * language.c (unk_lang_value_print): Delete.
5216 (language_defn::value_print): Define new member function.
5217 (unknown_language_data): Delete la_value_print initializer.
5218 (unknown_language::value_print): New member function.
5219 (auto_language_data): Delete la_value_print initializer.
5220 (auto_language::value_print): New member function.
5221 * language.h (language_data): Delete la_value_print field.
5222 (language_defn::value_print): Declare new member function.
5223 (LA_VALUE_PRINT): Update call to value_print.
5224 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
5225 * objc-lang.c (objc_language_data): Likewise.
5226 * opencl-lang.c (opencl_language_data): Likewise.
5227 * p-lang.c (pascal_language_data): Likewise.
5228 (pascal_language::value_print): New member function.
5229 * rust-lang.c (rust_language_data): Delete la_value_print
5230 initializer.
5231
f16a9f57
AB
52322020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5233
5234 * ada-lang.c (ada_watch_location_expression): Rename to
5235 ada_language::watch_location_expression.
5236 (ada_language_data): Delete la_watch_location_expression
5237 initializer.
5238 (ada_language::watch_location_expression): New member function,
5239 implementation from ada_watch_location_expression.
5240 * breakpoint.c (watch_command_1): Update call to
5241 watch_location_expression.
5242 * c-lang.c (c_watch_location_expression): Rename to
5243 language_defn::watch_location_expression.
5244 (c_language_data): Delete la_watch_location_expression
5245 initializer.
5246 (cplus_language_data): Likewise.
5247 (asm_language_data): Likewise.
5248 (minimal_language_data): Likewise.
5249 * c-lang.h (c_watch_location_expression): Delete declaration.
5250 * d-lang.c (d_language_data): Delete la_watch_location_expression
5251 initializer.
5252 * f-lang.c (f_language_data): Likewise.
5253 * go-lang.c (go_language_data): Likewise.
5254 * language.c (language_defn::watch_location_expression): Member
5255 function implementation from c_watch_location_expression.
5256 (unknown_language_data): Delete la_watch_location_expression
5257 initializer.
5258 (auto_language_data): Likewise.
5259 * language.h (language_data): Delete la_watch_location_expression
5260 field.
5261 (language_defn::watch_location_expression): Declare new member
5262 function.
5263 * m2-lang.c (m2_language_data): Delete
5264 la_watch_location_expression initializer.
5265 * objc-lang.c (objc_language_data): Likewise.
5266 * opencl-lang.c (opencl_language_data): Likewise.
5267 * p-lang.c (pascal_language_data): Likewise.
5268 * rust-lang.c (rust_watch_location_expression): Rename to
5269 rust_language::watch_location_expression.
5270 (rust_language_data): Delete la_watch_location_expression
5271 initializer.
5272 (rust_language::watch_location_expression): New member function,
5273 implementation from rust_watch_location_expression.
5274
7e56227d
AB
52752020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5276
5277 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
5278 ada_language::collect_symbol_completion_matches.
5279 (ada_language_data): Delete la_collect_symbol_completion_matches
5280 initializer.
5281 (ada_language::collect_symbol_completion_matches): New member
5282 function, implementation from
5283 ada_collect_symbol_completion_matches.
5284 * c-lang.c (c_language_data): Delete
5285 la_collect_symbol_completion_matches initializer.
5286 (cplus_language_data): Likewise.
5287 (asm_language_data): Likewise.
5288 (minimal_language_data): Likewise.
5289 * d-lang.c (d_language_data): Likewise.
5290 * f-lang.c (f_collect_symbol_completion_matches): Rename to
5291 f_language::collect_symbol_completion_matches.
5292 (f_language_data): Delete la_collect_symbol_completion_matches
5293 initializer.
5294 (f_language::collect_symbol_completion_matches) New member
5295 function, implementation from f_collect_symbol_completion_matches.
5296 * go-lang.c (go_language_data): Delete
5297 la_collect_symbol_completion_matches initializer.
5298 * language.c (unknown_language_data): Likewise.
5299 (auto_language_data): Likewise.
5300 * language.h (language_data): Delete
5301 la_collect_symbol_completion_matches field.
5302 (language_defn::collect_symbol_completion_matches): New member
5303 function.
5304 * m2-lang.c (m2_language_data): Delete
5305 la_collect_symbol_completion_matches initializer.
5306 * objc-lang.c (objc_language_data): Likewise.
5307 * opencl-lang.c (opencl_language_data): Likewise.
5308 * p-lang.c (pascal_language_data): Likewise.
5309 * rust-lang.c (rust_language_data): Likewise.
5310 * symtab.c (default_collect_symbol_completion_matches): Delete.
5311 (collect_symbol_completion_matches): Update call to
5312 collect_symbol_completion_matches.
5313 (collect_symbol_completion_matches_type): Likewise.
5314 * symtab.h (default_collect_symbol_completion_matches): Delete
5315 declaration.
5316
53fc67f8
AB
53172020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5318
5319 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
5320 (ada_language_data): Delete la_word_break_characters initializer.
5321 (ada_language::word_break_characters): New member function.
5322 * c-lang.c (c_language_data): Delete la_word_break_characters
5323 initializer.
5324 (cplus_language_data): Likewise.
5325 (asm_language_data): Likewise.
5326 (minimal_language_data): Likewise.
5327 * completer.c: Update global comment.
5328 (advance_to_expression_complete_word_point): Update call to
5329 word_break_characters.
5330 (complete_files_symbols): Likewise.
5331 (complete_line_internal_1): Likewise.
5332 (default_completer_handle_brkchars): Likewise.
5333 (skip_quoted_chars): Likewise.
5334 * d-lang.c (d_language_data): Delete la_word_break_characters
5335 initializer.
5336 * f-lang.c (f_word_break_characters): Delete.
5337 (f_language_data): Delete la_word_break_characters initializer.
5338 (f_language::word_break_characters): New member function.
5339 * go-lang.c (go_language_data): Delete la_word_break_characters
5340 initializer.
5341 * language.c (unknown_language_data): Likewise.
5342 (auto_language_data): Likewise.
5343 * language.h (default_word_break_characters): Move declaration to
5344 earlier in the file.
5345 (language_data): Delete la_word_break_characters field.
5346 (language_defn::word_break_characters): New member function.
5347 * m2-lang.c (m2_language_data): Delete la_word_break_characters
5348 initializer.
5349 * objc-lang.c (objc_language_data): Likewise.
5350 * opencl-lang.c (opencl_language_data): Likewise.
5351 * p-lang.c (pascal_language_data): Likewise.
5352 * rust-lang.c (rust_language_data): Likewise.
5353
c9debfb9
AB
53542020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5355
5356 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
5357 (ada_language_data): Delete la_get_symbol_name_matcher
5358 initializer.
5359 (language_defn::get_symbol_name_matcher_inner): New member
5360 function.
5361 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
5362 initializer.
5363 (cplus_language_data): Likewise.
5364 (cplus_language::get_symbol_name_matcher_inner): New member
5365 function.
5366 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
5367 (minimal_language_data): Likewise.
5368 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
5369 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
5370 initializer.
5371 * dictionary.c (iter_match_first_hashed): Update call to
5372 get_symbol_name_matcher.
5373 (iter_match_next_hashed): Likewise.
5374 (iter_match_next_linear): Likewise.
5375 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
5376 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
5377 initializer.
5378 (f_language::get_symbol_name_matcher_inner): New member function.
5379 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
5380 initializer.
5381 * language.c (default_symbol_name_matcher): Update header comment,
5382 make static.
5383 (language_defn::get_symbol_name_matcher): New definition.
5384 (language_defn::get_symbol_name_matcher_inner): Likewise.
5385 (get_symbol_name_matcher): Delete.
5386 (unknown_language_data): Delete la_get_symbol_name_matcher
5387 initializer.
5388 (auto_language_data): Likewise.
5389 * language.h (language_data): Delete la_get_symbol_name_matcher
5390 field.
5391 (language_defn::get_symbol_name_matcher): New member function.
5392 (language_defn::get_symbol_name_matcher_inner): Likewise.
5393 (default_symbol_name_matcher): Delete declaration.
5394 * linespec.c (find_methods): Update call to
5395 get_symbol_name_matcher.
5396 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
5397 initializer.
5398 * minsyms.c (lookup_minimal_symbol): Update call to
5399 get_symbol_name_matcher.
5400 (iterate_over_minimal_symbols): Likewise.
5401 * objc-lang.c (objc_language_data): Delete
5402 la_get_symbol_name_matcher initializer.
5403 * opencl-lang.c (opencl_language_data): Likewise.
5404 * p-lang.c (pascal_language_data): Likewise.
5405 * psymtab.c (psymbol_name_matches): Update call to
5406 get_symbol_name_matcher.
5407 * rust-lang.c (rust_language_data): Delete
5408 la_get_symbol_name_matcher initializer.
5409 * symtab.c (symbol_matches_search_name): Update call to
5410 get_symbol_name_matcher.
5411 (compare_symbol_name): Likewise.
5412
9a49ad8c
AB
54132020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5414
5415 * ada-lang.c (ada_language_data): Delete la_compute_program
5416 initializer.
5417 * c-lang.c (c_language_data): Likewise.
5418 (c_language::compute_program): New member function.
5419 (cplus_language_data): Delete la_compute_program initializer.
5420 (cplus_language::compute_program): New member function.
5421 (asm_language_data): Delete la_compute_program initializer.
5422 (minimal_language_data): Likewise.
5423 * c-lang.h (c_compute_program): Update comment.
5424 (cplus_compute_program): Likewise.
5425 * compile/compile-c-support.c (c_compute_program): Likewise.
5426 (cplus_compute_program): Likewise.
5427 * compile/compile.c (compile_to_object): Update call to
5428 la_compute_program.
5429 * d-lang.c (d_language_data): Delete la_compute_program
5430 initializer.
5431 * f-lang.c (f_language_data): Likewise.
5432 * go-lang.c (go_language_data): Likewise.
5433 * language.c (unknown_language_data): Likewise.
5434 (auto_language_data): Likewise.
5435 * language.h (language_data): Delete la_compute_program field.
5436 (language_defn::compute_program): New member function.
5437 * m2-lang.c (m2_language_data): Delete la_compute_program
5438 initializer.
5439 * objc-lang.c (objc_language_data): Likewise.
5440 * opencl-lang.c (opencl_language_data): Likewise.
5441 * p-lang.c (pascal_language_data): Likewise.
5442 * rust-lang.c (rust_language_data): Likewise.
5443
eff93b4d
AB
54442020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5445
5446 * ada-lang.c (ada_language_data) Delete
5447 la_class_name_from_physname initializer.
5448 * c-lang.c (c_language_data): Likewise.
5449 (cplus_language_data): Likewise.
5450 (cplus_language::class_name_from_physname): New member function.
5451 (asm_language_data): Delete la_class_name_from_physname
5452 initializer.
5453 (minimal_language_data): Likewise.
5454 * d-lang.c (d_language_data): Likewise.
5455 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
5456 method on language_defn class.
5457 (guess_full_die_structure_name): Likewise.
5458 * f-lang.c (f_language_data): Delete la_class_name_from_physname
5459 initializer.
5460 * go-lang.c (go_language_data): Likewise.
5461 * language.c (language_class_name_from_physname): Delete.
5462 (unk_lang_class_name): Delete.
5463 (unknown_language_data): Delete la_class_name_from_physname
5464 initializer.
5465 (auto_language_data): Likewise.
5466 * language.h (language_data): Delete la_class_name_from_physname
5467 field.
5468 (language_defn::class_name_from_physname): New function.
5469 (language_class_name_from_physname): Delete declaration.
5470 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
5471 initializer.
5472 * objc-lang.c (objc_language_data): Likewise.
5473 * opencl-lang.c (opencl_language_data): Likewise.
5474 * p-lang.c (pascal_language_data): Likewise.
5475 * rust-lang.c (rust_language_data): Likewise.
5476
de543742
TT
54772020-06-16 Tom Tromey <tom@tromey.com>
5478
5479 * tui/tui-data.h (STATUS_NAME): New macro.
5480 * tui/tui-layout.c (tui_remove_some_windows)
5481 (initialize_known_windows, tui_register_window)
5482 (tui_layout_split::remove_windows, initialize_layouts)
5483 (tui_new_layout_command): Don't use hard-coded window names.
5484
a350efd4
TT
54852020-06-16 Tom Tromey <tom@tromey.com>
5486
5487 PR tui/25348:
5488 * tui/tui.c (tui_ensure_readline_initialized): Rename from
5489 tui_initialize_readline. Only run once. Call rl_initialize.
5490 * tui/tui.h (tui_ensure_readline_initialized): Rename from
5491 tui_initialize_readline.
5492 * tui/tui-io.c (tui_setup_io): Call
5493 tui_ensure_readline_initialized.
5494 * tui/tui-interp.c (tui_interp::init): Update.
5495
39ec0490
TT
54962020-06-16 Tom Tromey <tom@tromey.com>
5497
5498 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
5499 Also preserve the status window.
5500
d2d1ea20
TT
55012020-06-16 Tom Tromey <tom@tromey.com>
5502
5503 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
5504 where m_window==nullptr.
5505
66920317
TT
55062020-06-15 Tom Tromey <tromey@adacore.com>
5507
5508 * windows-nat.c (windows_nat::handle_output_debug_string):
5509 Update.
5510 (windows_nat::handle_ms_vc_exception): Update.
5511 * target.h (target_read_string): Change API.
5512 * target.c (target_read_string): Change API.
5513 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
5514 Update.
5515 * solib-frv.c (frv_current_sos): Update.
5516 * solib-dsbt.c (dsbt_current_sos): Update.
5517 * solib-darwin.c (darwin_current_sos): Update.
5518 * linux-thread-db.c (inferior_has_bug): Update.
5519 * expprint.c (print_subexp_standard): Update.
5520 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
5521 (ada_exception_message_1): Update.
5522
a5d871dd
TT
55232020-06-15 Tom Tromey <tromey@adacore.com>
5524
5525 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
5526
670e35fa
TT
55272020-06-15 Tom Tromey <tromey@adacore.com>
5528
5529 * valprint.c (read_string): Update comment.
5530 * target.c (MIN): Remove.
5531 (target_read_string): Rewrite.
5532
f5272a3b
TT
55332020-06-15 Tom Tromey <tromey@adacore.com>
5534
5535 * corefile.c (read_memory_string): Remove.
5536 * ada-valprint.c (ada_value_print_ptr): Update.
5537 * ada-lang.h (ada_tag_name): Change return type.
5538 * ada-lang.c (type_from_tag): Update.
5539 (ada_tag_name_from_tsd): Change return type. Use
5540 target_read_string.
5541 (ada_tag_name): Likewise.
5542 * gdbcore.h (read_memory_string): Don't declare.
5543
2c074f49
HD
55442020-06-14 Hannes Domani <ssbssa@yahoo.de>
5545
5546 * symtab.c (rbreak_command): Ignore Windows drive colon.
5547
6a17d503
SM
55482020-06-12 Simon Marchi <simon.marchi@efficios.com>
5549
5550 * NEWS: Mention removed GDBserver host support.
5551
453c733f
NC
55522020-06-12 Nelson Chu <nelson.chu@sifive.com>
5553
5554 * features/riscv/rebuild-csr-xml.sh: Updated.
5555
2b4e6a3f
TT
55562020-06-11 Tom Tromey <tom@tromey.com>
5557
5558 PR gdb/18318:
5559 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
5560
4412332f
JG
55612020-06-09 Jonny Grant <jg@jguk.org>
55622020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
5563
5564 * main.c (captured_main_1): Don't print new line after help.
5565 (print_gdb_help): add mailing list and IRC channel information
5566 to --help. Add new lines between items in the footer. Remove
5567 quotes around bug url.
5568
2f33032a
KS
55692020-06-11 Keith Seitz <keiths@redhat.com>
5570
5571 PR gdb/21356
5572 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
5573 Resolve typedefs for type length calculations.
5574
7ab96794
TV
55752020-06-10 Tom de Vries <tdevries@suse.de>
5576
5577 PR ada/24713
5578 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
5579 (write_psymbols): Enable .gdb_index for ada.
5580 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
5581 ada.
5582
e5f3ece2
TV
55832020-06-10 Tom de Vries <tdevries@suse.de>
5584
5585 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
5586 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
5587 namei" instead of "const char *name" argument.
5588 (dw2_map_matching_symbols): Use "offset_type namei" variant of
5589 dw2_symtab_iter_init.
5590
940da03e
SM
55912020-06-08 Simon Marchi <simon.marchi@efficios.com>
5592
5593 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
5594 to use type::field and field::type instead.
5595
b6cdac4b
SM
55962020-06-08 Simon Marchi <simon.marchi@efficios.com>
5597
5598 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
5599 to use field::type instead.
5600
5d14b6e5
SM
56012020-06-08 Simon Marchi <simon.marchi@efficios.com>
5602
5603 * gdbtypes.h (struct field) <type, set_type>: New methods.
5604 Rename `type` field to...
5605 <m_type>: ... this. Change references throughout to use type or
5606 set_type methods.
5607 (FIELD_TYPE): Use field::type. Change call sites that modify
5608 the field's type to use field::set_type instead.
5609
3d967001
SM
56102020-06-08 Simon Marchi <simon.marchi@efficios.com>
5611
5612 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
5613 to use type::index_type instead.
5614
262abc0d
SM
56152020-06-08 Simon Marchi <simon.marchi@efficios.com>
5616
5617 * gdbtypes.h (struct type) <index_type, set_index_type>: New
5618 methods.
5619 (TYPE_INDEX_TYPE): Use type::index_type.
5620 * gdbtypes.c (create_array_type_with_stride): Likewise.
5621
82836c92
TT
56222020-06-07 Tom Tromey <tom@tromey.com>
5623
5624 * valprint.c (generic_val_print_float): Remove "embedded_offset"
5625 parameter.
5626 (generic_value_print): Update.
5627
940dace9
AB
56282020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
5629
5630 Revert commit 982a38f60b0.
5631 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
5632
982a38f6
AB
56332020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
5634
5635 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
5636 avoid use after free.
5637
82f06518
TV
56382020-06-05 Tom de Vries <tdevries@suse.de>
5639
5640 * NEWS: Fix typos.
5641
f8c41851
SM
56422020-06-04 Simon Marchi <simon.marchi@efficios.com>
5643
5644 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
5645 the per_bfd object.
5646 (dwarf2_read_debug_names): Likewise.
5647 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
5648 object when re-using a per_bfd object with an index.
5649
f9b5d5ea
TV
56502020-06-03 Tom de Vries <tdevries@suse.de>
5651
5652 PR symtab/26046
5653 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
5654 children for C++.
5655 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
5656 DW_TAG_subprogram.
5657
f6eee2d0
AB
56582020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5659
5660 * ada-lang.c (ada_language_data): Delete skip_trampoline
5661 initializer.
5662 * c-lang.c (c_language_data): Likewise.
5663 (cplus_language_data): Likewise.
5664 (cplus_language::skip_trampoline): New member function.
5665 (asm_language_data): Delete skip_trampoline initializer.
5666 (minimal_language_data): Likewise.
5667 * d-lang.c (d_language_data): Likewise.
5668 * f-lang.c (f_language_data): Likewise.
5669 * go-lang.c (go_language_data): Likewise.
5670 * language.c (unk_lang_trampoline): Delete function.
5671 (skip_language_trampoline): Update.
5672 (unknown_language_data): Delete skip_trampoline initializer.
5673 (auto_language_data): Likewise.
5674 * language.h (language_data): Delete skip_trampoline field.
5675 (language_defn::skip_trampoline): New function.
5676 * m2-lang.c (m2_language_data): Delete skip_trampoline
5677 initializer.
5678 * objc-lang.c (objc_skip_trampoline): Delete function, move
5679 implementation to objc_language::skip_trampoline.
5680 (objc_language_data): Delete skip_trampoline initializer.
5681 (objc_language::skip_trampoline): New member function with
5682 implementation from objc_skip_trampoline.
5683 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
5684 initializer.
5685 * p-lang.c (pascal_language_data): Likewise.
5686 * rust-lang.c (rust_language_data): Likewise.
5687
0a50df5d
AB
56882020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5689
5690 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
5691 (ada_language::demangle): New member function.
5692 * c-lang.c (c_language_data): Delete la_demangle initializer.
5693 (cplus_language_data): Delete la_demangle initializer.
5694 (cplus_language::demangle): New member function.
5695 (asm_language_data): Delete la_demangle initializer.
5696 (minimal_language_data): Delete la_demangle initializer.
5697 * d-lang.c (d_language_data): Delete la_demangle initializer.
5698 (d_language::demangle): New member function.
5699 * f-lang.c (f_language_data): Delete la_demangle initializer.
5700 (f_language::demangle): New member function.
5701 * go-lang.c (go_language_data): Delete la_demangle initializer.
5702 (go_language::demangle): New member function.
5703 * language.c (language_demangle): Update.
5704 (unk_lang_demangle): Delete.
5705 (unknown_language_data): Delete la_demangle initializer.
5706 (unknown_language::demangle): New member function.
5707 (auto_language_data): Delete la_demangle initializer.
5708 (auto_language::demangle): New member function.
5709 * language.h (language_data): Delete la_demangle field.
5710 (language_defn::demangle): New function.
5711 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
5712 * objc-lang.c (objc_language_data): Delete la_demangle
5713 initializer.
5714 (objc_language::demangle): New member function.
5715 * opencl-lang.c (opencl_language_data): Delete la_demangle
5716 initializer.
5717 * p-lang.c (pascal_language_data): Likewise.
5718 * rust-lang.c (rust_language_data): Likewise.
5719 (rust_language::demangle): New member function.
5720
fbfb0a46
AB
57212020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5722
5723 * ada-lang.c (ada_language_data): Delete la_print_type
5724 initializer.
5725 (ada_language::print_type): New member function.
5726 * c-lang.c (c_language_data): Delete la_print_type initializer.
5727 (c_language::print_type): New member function.
5728 (cplus_language_data): Delete la_print_type initializer.
5729 (cplus_language::print_type): New member function.
5730 (asm_language_data): Delete la_print_type initializer.
5731 (asm_language::print_type): New member function.
5732 (minimal_language_data): Delete la_print_type initializer.
5733 (minimal_language::print_type): New member function.
5734 * d-lang.c (d_language_data): Delete la_print_type initializer.
5735 (d_language::print_type): New member function.
5736 * f-lang.c (f_language_data): Delete la_print_type initializer.
5737 (f_language::print_type): New member function.
5738 * go-lang.c (go_language_data): Delete la_print_type initializer.
5739 (go_language::print_type): New member function.
5740 * language.c (unk_lang_print_type): Delete.
5741 (unknown_language_data): Delete la_print_type initializer.
5742 (unknown_language::print_type): New member function.
5743 (auto_language_data): Delete la_print_type initializer.
5744 (auto_language::print_type): New member function.
5745 * language.h (language_data): Delete la_print_type field.
5746 (language_defn::print_type): New function.
5747 (LA_PRINT_TYPE): Update.
5748 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
5749 (m2_language::print_type): New member function.
5750 * objc-lang.c (objc_language_data): Delete la_print_type
5751 initializer.
5752 (objc_language::print_type): New member function.
5753 * opencl-lang.c (opencl_print_type): Delete, implementation moved
5754 to opencl_language::print_type.
5755 (opencl_language_data): Delete la_print_type initializer.
5756 (opencl_language::print_type): New member function, implementation
5757 from opencl_print_type.
5758 * p-lang.c (pascal_language_data): Delete la_print_type
5759 initializer.
5760 (pascal_language::print_type): New member function.
5761 * rust-lang.c (rust_print_type): Delete, implementation moved to
5762 rust_language::print_type.
5763 (rust_language_data): Delete la_print_type initializer.
5764 (rust_language::print_type): New member function, implementation
5765 from rust_print_type.
5766
6f827019
AB
57672020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5768
5769 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
5770 implementation moves to...
5771 (ada_language::sniff_from_mangled_name): ...here. Update return
5772 type.
5773 (ada_language_data): Delete la_sniff_from_mangled_name
5774 initializer.
5775 * c-lang.c (c_language_data): Likewise.
5776 (cplus_language_data): Likewise.
5777 (cplus_language::sniff_from_mangled_name): New member function,
5778 implementation taken from gdb_sniff_from_mangled_name.
5779 (asm_language_data): Delete la_sniff_from_mangled_name
5780 initializer.
5781 (minimal_language_data): Likewise.
5782 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
5783 implementation moves to cplus_language::sniff_from_mangled_name.
5784 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
5785 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
5786 moves to...
5787 (d_language::sniff_from_mangled_name): ...here.
5788 (d_language_data): Delete la_sniff_from_mangled_name initializer.
5789 * f-lang.c (f_language_data): Likewise.
5790 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
5791 moves to...
5792 (go_language::sniff_from_mangled_name): ...here.
5793 (go_language_data): Delete la_sniff_from_mangled_name initializer.
5794 * language.c (language_sniff_from_mangled_name): Delete.
5795 (unknown_language_data): Delete la_sniff_from_mangled_name
5796 initializer.
5797 (auto_language_data): Likewise.
5798 * language.h (language_data): Delete la_sniff_from_mangled_name
5799 field.
5800 (language_defn::sniff_from_mangled_name): New function.
5801 (language_sniff_from_mangled_name): Delete declaration.
5802 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
5803 field.
5804 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
5805 implementation moves to...
5806 (objc_language::sniff_from_mangled_name): ...here.
5807 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
5808 * opencl-lang.c (opencl_language_data): Likewise.
5809 * p-lang.c (pascal_language_data): Likewise.
5810 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
5811 implementation moves to...
5812 (rust_language::sniff_from_mangled_name): ...here.
5813 (rust_language_data): Delete la_sniff_from_mangled_name
5814 initializer.
5815 * symtab.c (symbol_find_demangled_name): Call
5816 sniff_from_mangled_name member function.
5817
fb8006fd
AB
58182020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5819
5820 * ada-lang.c (ada_language_data): Delete la_search_name_hash
5821 initializer.
5822 * c-lang.c (c_language_data): Likewise.
5823 (cplus_language_data): Likewise.
5824 (cplus_language::search_name_hash): New member function.
5825 (asm_language_data): Delete la_search_name_hash initializer.
5826 (minimal_language_data): Likewise.
5827 * d-lang.c (d_language_data): Likewise.
5828 * dictionary.c (default_search_name_hash): Rename to...
5829 (language_defn::search_name_hash): ...this.
5830 * f-lang.c (f_language_data): Likewise.
5831 (f_language::search_name_hash): New member function.
5832 * go-lang.c (go_language_data): Delete la_search_name_hash
5833 initializer.
5834 * language.c (unknown_language_data): Likewise.
5835 (auto_language_data): Likewise.
5836 * language.h (struct language_data): Delete la_search_name_hash
5837 field.
5838 (language_defn::search_name_hash): Declare new member function.
5839 (default_search_name_hash): Delete declaration.
5840 * m2-lang.c (m2_language_data): Delete la_search_name_hash
5841 initializer.
5842 * objc-lang.c (objc_language_data): Likewise.
5843 * opencl-lang.c (opencl_language_data): Likewise.
5844 * p-lang.c (pascal_language_data): Likewise.
5845 * rust-lang.c (rust_language_data): Likewise.
5846 * symtab.c (search_name_hash): Update call.
5847
8e25bafe
AB
58482020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5849
5850 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
5851 initializer.
5852 * c-lang.c (class compile_instance): Declare.
5853 (c_language_data): Delete la_get_compile_instance initializer.
5854 (c_language::get_compile_instance): New member function.
5855 (cplus_language_data): Delete la_get_compile_instance initializer.
5856 (cplus_language::get_compile_instance): New member function.
5857 (asm_language_data): Delete la_get_compile_instance initializer.
5858 (minimal_language_data): Likewise.
5859 * c-lang.h (c_get_compile_context): Update comment.
5860 (cplus_get_compile_context): Update comment.
5861 * compile/compile.c (compile_to_object): Update calls, don't rely
5862 on function pointer being NULL.
5863 * d-lang.c (d_language_data): Delete la_get_compile_instance
5864 initializer.
5865 * f-lang.c (f_language_data): Likewise.
5866 * go-lang.c (go_language_data): Likewise.
5867 * language.c (unknown_language_data): Likewise.
5868 (auto_language_data): Likewise.
5869 * language.h (language_data): Delete la_get_compile_instance field.
5870 (language_defn::get_compile_instance): New member function.
5871 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
5872 initializer.
5873 * objc-lang.c (objc_language_data): Likewise.
5874 * opencl-lang.c (opencl_language_data): Likewise.
5875 * p-lang.c (pascal_language_data): Likewise.
5876 * rust-lang.c (rust_language_data): Likewise.
5877
4009ee92
AB
58782020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5879
5880 * ada-lang.c (ada_add_all_symbols): Update comment.
5881 (ada_iterate_over_symbols): Delete, move implementation to...
5882 (ada_language::iterate_over_symbols): ...here, a new member
5883 function, rewrite to use range based for loop.
5884 (ada_language_data): Delete la_iterate_over_symbols initializer.
5885 * c-lang.c (c_language_data): Likewise.
5886 (cplus_language_data): Likewise.
5887 (asm_language_data): Likewise.
5888 (minimal_language_data): Likewise.
5889 * d-lang.c (d_language_data): Likewise.
5890 * f-lang.c (f_language_data): Likewise.
5891 * go-lang.c (go_language_data): Likewise.
5892 * language.c (unknown_language_data): Likewise.
5893 (auto_language_data): Likewise.
5894 * language.h (language_data): Delete la_iterate_over_symbols field.
5895 (language_defn::iterate_over_symbols): New member function.
5896 (LA_ITERATE_OVER_SYMBOLS): Update.
5897 * linespec.c (iterate_over_all_matching_symtabs): Update.
5898 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
5899 initializer.
5900 * objc-lang.c (objc_language_data): Likewise.
5901 * opencl-lang.c (opencl_language_data): Likewise.
5902 * p-lang.c (pascal_language_data): Likewise.
5903 * rust-lang.c (rust_language_data): Likewise.
5904
54f4ca46
AB
59052020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5906
5907 * ada-lang.c (ada_language_data): Delete
5908 la_lookup_transparent_type initializer.
5909 * c-lang.c (c_language_data): Likewise.
5910 (cplus_language_data): Likewise.
5911 (cplus_language::lookup_transparent_type): New member function.
5912 (asm_language_data): Delete la_lookup_transparent_type
5913 initializer.
5914 (minimal_language_data): Likewise.
5915 * d-lang.c (d_language_data): Likewise.
5916 * f-lang.c (f_language_data): Likewise.
5917 * go-lang.c (go_language_data): Likewise.
5918 * language.c (unknown_language_data): Likewise.
5919 (auto_language_data): Likewise.
5920 * language.h (struct language_data): Delete
5921 la_lookup_transparent_type field.
5922 (language_defn::lookup_transparent_type): New member function.
5923 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
5924 initializer.
5925 * objc-lang.c (objc_language_data): Likewise.
5926 * opencl-lang.c (opencl_language_data): Likewise.
5927 * p-lang.c (pascal_language_data): Likewise.
5928 * rust-lang.c (rust_language_data): Likewise.
5929 * symtab.c (symbol_matches_domain): Update call.
5930
1fb314aa
AB
59312020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5932
5933 * ada-lang.c (ada_language_arch_info): Delete function, move
5934 implementation to...
5935 (ada_language::language_arch_info): ...here, a new member
5936 function.
5937 (ada_language_data): Delete la_language_arch_info.
5938 * c-lang.c (c_language_data): Likewise.
5939 (c_language::language_arch_info): New member function.
5940 (cplus_language_arch_info): Delete function, move
5941 implementation to...
5942 (cplus_language::language_arch_info): ...here, a new member
5943 function.
5944 (cplus_language_data): Delete la_language_arch_info.
5945 (asm_language_data): Likewise.
5946 (asm_language::language_arch_info): New member function.
5947 (minimal_language_data): Delete la_language_arch_info.
5948 (minimal_language::language_arch_info): New member function.
5949 * d-lang.c (d_language_arch_info): Delete function, move
5950 implementation to...
5951 (d_language::language_arch_info): ...here, a new member
5952 function.
5953 (d_language_data): Delete la_language_arch_info.
5954 * f-lang.c (f_language_arch_info): Delete function, move
5955 implementation to...
5956 (f_language::language_arch_info): ...here, a new member
5957 function.
5958 (f_language_data): Delete la_language_arch_info.
5959 * go-lang.c (go_language_arch_info): Delete function, move
5960 implementation to...
5961 (go_language::language_arch_info): ...here, a new member
5962 function.
5963 (go_language_data): Delete la_language_arch_info.
5964 * language.c (unknown_language_data): Likewise.
5965 (unknown_language::language_arch_info): New member function.
5966 (auto_language_data): Delete la_language_arch_info.
5967 (auto_language::language_arch_info): New member function.
5968 (language_gdbarch_post_init): Update call to
5969 la_language_arch_info.
5970 * language.h (language_data): Delete la_language_arch_info
5971 function pointer.
5972 (language_defn::language_arch_info): New function.
5973 * m2-lang.c (m2_language_arch_info): Delete function, move
5974 implementation to...
5975 (m2_language::language_arch_info): ...here, a new member
5976 function.
5977 (m2_language_data): Delete la_language_arch_info.
5978 * objc-lang.c (objc_language_arch_info): Delete function, move
5979 implementation to...
5980 (objc_language::language_arch_info): ...here, a new member
5981 function.
5982 (objc_language_data): Delete la_language_arch_info.
5983 * opencl-lang.c (opencl_language_arch_info): Delete function, move
5984 implementation to...
5985 (opencl_language::language_arch_info): ...here, a new member
5986 function.
5987 (opencl_language_data): Delete la_language_arch_info.
5988 * p-lang.c (pascal_language_arch_info): Delete function, move
5989 implementation to...
5990 (pascal_language::language_arch_info): ...here, a new member
5991 function.
5992 (pascal_language_data): Delete la_language_arch_info.
5993 * rust-lang.c (rust_language_arch_info): Delete function, move
5994 implementation to...
5995 (rust_language::language_arch_info): ...here, a new member
5996 function.
5997 (rust_language_data): Delete la_language_arch_info.
5998
48448202
AB
59992020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6000
6001 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
6002 initializer.
6003 * c-lang.c (c_language_data): Likewise.
6004 (cplus_language_data): Likewise.
6005 (cplus_language::pass_by_reference_info): New method.
6006 (asm_language_data): Delete la_pass_by_reference initializer.
6007 (minimal_language_data): Likewise.
6008 * cp-abi.c (cp_pass_by_reference): Remove use of
6009 default_pass_by_reference.
6010 * d-lang.c (d_language_data): Likewise.
6011 * f-lang.c (f_language_data): Likewise.
6012 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
6013 default_pass_by_reference.
6014 * go-lang.c (go_language_data): Likewise.
6015 * language.c (language_pass_by_reference): Update.
6016 (default_pass_by_reference): Delete.
6017 (unknown_language_data): Delete la_pass_by_reference
6018 initializer.
6019 (auto_language_data): Likewise.
6020 * language.h (struct language_data): Delete la_pass_by_reference
6021 field.
6022 (language_defn::pass_by_reference_info): New member function.
6023 (default_pass_by_reference): Delete declaration.
6024 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
6025 initializer.
6026 * objc-lang.c (objc_language_data): Likewise.
6027 * opencl-lang.c (opencl_language_data): Likewise.
6028 * p-lang.c (pascal_language_data): Likewise.
6029 * rust-lang.c (rust_language_data): Likewise.
6030
15e5fd35
AB
60312020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6032
6033 * ada-lang.c (ada_read_var_value): Delete function, move
6034 implementation to...
6035 (ada_language::read_var_value): ...here.
6036 (ada_language_data): Delete la_read_var_value initializer.
6037 * c-lang.c (c_language_data): Likewise.
6038 (cplus_language_data): Likewise.
6039 (minimal_language_data): Likewise.
6040 * d-lang.c (d_language_data): Likewise.
6041 * f-lang.c (f_language_data): Likewise.
6042 * findvar.c (default_read_var_value): Rename to...
6043 (language_defn::read_var_value): ...this.
6044 * findvar.c (read_var_value): Update header comment, and change to
6045 call member function instead of function pointer.
6046 * go-lang.c (go_language_data): Likewise.
6047 * language.c (unknown_language_data): Delete la_read_var_value
6048 initializer.
6049 (auto_language_data): Likewise.
6050 * language.h (struct language_data): Delete la_read_var_value
6051 field.
6052 (language_defn::read_var_value): New member function.
6053 (default_read_var_value): Delete declaration.
6054 * m2-lang.c (m2_language_data): Delete la_read_var_value
6055 initializer.
6056 * objc-lang.c (objc_language_data): Likewise.
6057 * opencl-lang.c (opencl_language_data): Likewise.
6058 * p-lang.c (pascal_language_data): Likewise.
6059 * rust-lang.c (rust_language_data): Likewise.
6060 * value.h (default_read_var_value): Delete declaration.
6061
5bd40f2a
AB
60622020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6063
6064 * ada-lang.c (ada_print_array_index): Delete function, move
6065 implementation to...
6066 (ada_language::print_array_index): ...here.
6067 (ada_language_data): Delete la_print_array_index initializer.
6068 * c-lang.c (c_language_data): Likewise.
6069 (cplus_language_data): Likewise.
6070 (minimal_language_data): Likewise.
6071 * d-lang.c (d_language_data): Likewise.
6072 * f-lang.c (f_language_data): Likewise.
6073 * go-lang.c (go_language_data): Likewise.
6074 * language.c (default_print_array_index): Delete function, move
6075 implementation to...
6076 (language_defn::print_array_index): ...here.
6077 (unknown_language_data): Delete la_print_array_index initializer.
6078 (auto_language_data): Likewise.
6079 * language.h (struct language_data): Delete la_print_array_index
6080 field.
6081 (language_defn::print_array_index): New member function.
6082 (LA_PRINT_ARRAY_INDEX): Update.
6083 (default_print_array_index): Delete declaration.
6084 * m2-lang.c (m2_language_data): Delete la_print_array_index
6085 initializer.
6086 * objc-lang.c (objc_language_data): Likewise.
6087 * opencl-lang.c (opencl_language_data): Likewise.
6088 * p-lang.c (pascal_language_data): Likewise.
6089 * rust-lang.c (rust_language_data): Likewise.
6090
0874fd07
AB
60912020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6092
6093 * gdb/ada-lang.c (ada_language_defn): Convert to...
6094 (ada_language_data): ...this.
6095 (class ada_language): New class.
6096 (ada_language_defn): New static global.
6097 * gdb/c-lang.c (c_language_defn): Convert to...
6098 (c_language_data): ...this.
6099 (class c_language): New class.
6100 (c_language_defn): New static global.
6101 (cplus_language_defn): Convert to...
6102 (cplus_language_data): ...this.
6103 (class cplus_language): New class.
6104 (cplus_language_defn): New static global.
6105 (asm_language_defn): Convert to...
6106 (asm_language_data): ...this.
6107 (class asm_language): New class.
6108 (asm_language_defn): New static global.
6109 (minimal_language_defn): Convert to...
6110 (minimal_language_data): ...this.
6111 (class minimal_language): New class.
6112 (minimal_language_defn): New static global.
6113 * gdb/d-lang.c (d_language_defn): Convert to...
6114 (d_language_data): ...this.
6115 (class d_language): New class.
6116 (d_language_defn): New static global.
6117 * gdb/f-lang.c (f_language_defn): Convert to...
6118 (f_language_data): ...this.
6119 (class f_language): New class.
6120 (f_language_defn): New static global.
6121 * gdb/go-lang.c (go_language_defn): Convert to...
6122 (go_language_data): ...this.
6123 (class go_language): New class.
6124 (go_language_defn): New static global.
6125 * gdb/language.c (unknown_language_defn): Remove declaration.
6126 (current_language): Initialize to nullptr, real initialization is
6127 moved to _initialize_language.
6128 (languages): Delete global.
6129 (language_defn::languages): Define.
6130 (set_language_command): Use language_defn::languages.
6131 (set_language): Likewise.
6132 (range_error): Likewise.
6133 (language_enum): Likewise.
6134 (language_def): Likewise.
6135 (add_set_language_command): Use language_def::languages for the
6136 language list, and language_def to lookup language pointers.
6137 (skip_language_trampoline): Use language_defn::languages.
6138 (unknown_language_defn): Convert to...
6139 (unknown_language_data): ...this.
6140 (class unknown_language): New class.
6141 (unknown_language_defn): New static global.
6142 (auto_language_defn): Convert to...
6143 (auto_language_data): ...this.
6144 (class auto_language): New class.
6145 (auto_language_defn): New static global.
6146 (language_gdbarch_post_init): Use language_defn::languages.
6147 (_initialize_language): Initialize current_language.
6148 * gdb/language.h (struct language_defn): Rename to...
6149 (struct language_data): ...this.
6150 (struct language_defn): New.
6151 (auto_language_defn): Delete.
6152 (unknown_language_defn): Delete.
6153 (minimal_language_defn): Delete.
6154 (ada_language_defn): Delete.
6155 (asm_language_defn): Delete.
6156 (c_language_defn): Delete.
6157 (cplus_language_defn): Delete.
6158 (d_language_defn): Delete.
6159 (f_language_defn): Delete.
6160 (go_language_defn): Delete.
6161 (m2_language_defn): Delete.
6162 (objc_language_defn): Delete.
6163 (opencl_language_defn): Delete.
6164 (pascal_language_defn): Delete.
6165 (rust_language_defn): Delete.
6166 * gdb/m2-lang.c (m2_language_defn): Convert to...
6167 (m2_language_data): ...this.
6168 (class m2_language): New class.
6169 (m2_language_defn): New static global.
6170 * gdb/objc-lang.c (objc_language_defn): Convert to...
6171 (objc_language_data): ...this.
6172 (class objc_language): New class.
6173 (objc_language_defn): New static global.
6174 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
6175 (opencl_language_data): ...this.
6176 (class opencl_language): New class.
6177 (opencl_language_defn): New static global.
6178 * gdb/p-lang.c (pascal_language_defn): Convert to...
6179 (pascal_language_data): ...this.
6180 (class pascal_language): New class.
6181 (pascal_language_defn): New static global.
6182 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
6183 language pointer, update comment format.
6184 * gdb/rust-lang.c (rust_language_defn): Convert to...
6185 (rust_language_data): ...this.
6186 (class rust_language): New class.
6187 (rust_language_defn): New static global.
6188
1313c56e
AB
61892020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
6190
6191 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
6192 member variable.
6193 <m_stmt_at_address>: New member variable.
6194 (lnp_state_machine::record_line): Don't record some lines, update
6195 tracking of is_stmt at the same address.
6196 (lnp_state_machine::lnp_state_machine): Initialise new member
6197 variables.
6198
b7ed9f3d
ST
61992020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
6200
6201 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
6202 "-include gnu-nat-mig.h".
6203 * gnu-nat-mig.h: New file.
6204 * gnu-nat.c: Include "gnu-nat-mig.h".
6205 (exc_server, msg_reply_server, notify_server,
6206 process_reply_server): Remove declarations.
6207
14a8ad62
ST
62082020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6209
6210 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
6211 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
6212 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
6213 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
6214 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
6215 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
6216 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
6217 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
6218 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
6219 to gnu_nat_target class.
6220 * gnu-nat.c: Likewise.
6221 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
6222 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
6223 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
6224 object.
6225 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
6226 instead of `gnu_target'.
6227
0af5e106
ST
62282020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6229
6230 * i386-gnu-tdep.c: Include "gdbcore.h"
6231 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
6232 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
6233 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
6234 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
6235 i386_gnu_sigcontext_addr): New functions
6236 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
6237 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
6238 tdep.
6239
078f2fc9
ST
62402020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6241
6242 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
6243 before fork_inferior call. Avoid calling it if target_is_pushed returns
6244 true.
6245
53dff92c
ST
62462020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6247
6248 * gnu-nat.h (gnu_target): New variable declaration.
6249 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
6250 gnu_target.
6251 * gnu-nat.c (gnu_target): New variable.
6252 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
6253 add_thread_silent, and add_thread calls.
6254 (gnu_nat_target::create_inferior): Pass gnu_target to
6255 add_thread_silent, thread_change_ptid call.
6256 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
6257 call.
6258
5a8b8627
ST
62592020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6260
6261 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
6262 (gnu_nat_target::find_memory_regions): Remove unused
6263 `old_address' variable.
6264
366f550a
ST
62652020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6266
6267 * gnu-nat.c: Include "gdbarch.h".
6268
f14871bf
ST
62692020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6270
6271 * reply_mig_hack.awk (Error return): Cast function through
6272 void *, to bypass compiler function call check.
6273
c6887cfb
ST
62742020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6275
6276 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
6277 $(srcdir)/reply_mig_hack.awk.
6278
6930bffe
ST
62792020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6280
6281 * gnu-nat.h (gnu_debug_flag): Set type to bool.
6282
112c22ed
JG
62832020-05-30 Jonny Grant <jg@jguk.org>
6284
6285 * configure.ac (ACX_BUGURL): change bug URL to https.
6286
f68f85b5
PA
62872020-05-30 Pedro Alves <palves@redhat.com>
6288
6289 * cp-support.c (replace_typedefs_template): New.
6290 (replace_typedefs_qualified_name): Handle
6291 DEMANGLE_COMPONENT_TEMPLATE.
6292
976ca316
SM
62932020-05-29 Simon Marchi <simon.marchi@efficios.com>
6294
6295 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
6296 dwarf2/index-cache.h, dwarf2/index-write.c,
6297 dwarf2/index-write.h, dwarf2/line-header.c,
6298 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
6299 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
6300 variables and fields from `dwarf2_per_objfile` to just
6301 `per_objfile` throughout.
6302
989ade05
SM
63032020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
6304
6305 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6306 <push_dwarf_reg_entry_value>: Add comment.
6307
c47bae85
KB
63082020-05-28 Kevin Buettner <kevinb@redhat.com>
6309 Keith Seitz <keiths@redhat.com>
6310
6311 * python/python.c (do_start_initialization): Call PyEval_SaveThread
6312 instead of PyEval_ReleaseLock.
6313 (class gdbpy_gil): Move to earlier in file.
6314 (finalize_python): Set gdb_python_initialized.
6315 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
6316 when not initialized.
6317
44486dcf
SM
63182020-05-28 Simon Marchi <simon.marchi@efficios.com>
6319
6320 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6321 <push_dwarf_reg_entry_value>: Remove assert. Override
6322 per_objfile with caller_per_objfile.
6323
f030440d
TV
63242020-05-28 Tom de Vries <tdevries@suse.de>
6325
6326 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
6327 PR gold/15646 workaround to symbol kind "type".
6328
f0fbb768
TT
63292020-05-27 Tom Tromey <tromey@adacore.com>
6330
6331 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
6332
af0b2a3e
TT
63332020-05-27 Tom Tromey <tromey@adacore.com>
6334
6335 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
6336 Use htab_find_with_hash.
6337 <add_abbrev>: Remove "abbrev_number" parameter.
6338 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
6339 "abbrev_number" parameter. Use htab_find_slot_with_hash.
6340 (hash_abbrev): Add comment.
6341 (abbrev_table::lookup_abbrev): Move to header file.
6342 (abbrev_table::read): Update.
6343
7d00ffec
TT
63442020-05-27 Tom Tromey <tromey@adacore.com>
6345
6346 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
6347 method.
6348 <canonical_name>: New member.
6349 <raw_name>: Rename from "name".
6350 (partial_die_info): Initialize canonical_name.
6351 (scan_partial_symbols): Check raw_name.
6352 (partial_die_parent_scope, partial_die_full_name)
6353 (add_partial_symbol, add_partial_subprogram)
6354 (add_partial_enumeration, load_partial_dies): Use "name" method.
6355 (partial_die_info::name): New method.
6356 (partial_die_info::read, guess_partial_die_structure_name)
6357 (partial_die_info::fixup): Update.
6358
697bba18
TT
63592020-05-27 Tom Tromey <tromey@adacore.com>
6360
6361 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
6362 <get_ref_die_offset>: Inline.
6363 <get_ref_die_offset_complaint>: New method.
6364 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
6365 (attribute::get_ref_die_offset_complaint): Rename from
6366 get_ref_die_offset. Just issue complaint.
6367
c17ace43
HD
63682020-05-27 Hannes Domani <ssbssa@yahoo.de>
6369
6370 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
6371
96445f0b
HD
63722020-05-27 Hannes Domani <ssbssa@yahoo.de>
6373
6374 * exec.c (exec_file_attach): Use errno value of first openp failure.
6375
ac637ec3
HD
63762020-05-27 Hannes Domani <ssbssa@yahoo.de>
6377
6378 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
6379 Don't close thread handle.
6380
17ee85fc
TT
63812020-05-27 Tom Tromey <tom@tromey.com>
6382 Simon Marchi <simon.marchi@efficios.com>
6383
6384 * objfiles.h (struct objfile) <partial_symtabs>: Now a
6385 shared_ptr.
6386 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
6387 member.
6388 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
6389 dwarf2_per_bfd_objfile_data_key>: New globals.
6390 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
6391 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
6392 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
6393 shared.
6394 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
6395 short-circuit when sharing.
6396 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
6397 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
6398
39b16f87
SM
63992020-05-27 Simon Marchi <simon.marchi@efficios.com>
6400
6401 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
6402 to...
6403 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
6404 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
6405
fcf23d5b
SM
64062020-05-27 Simon Marchi <simon.marchi@efficios.com>
6407
6408 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
6409 build_name_components, find_name_components_bounds>:
6410 Add per_objfile parameter.
6411 (struct mapped_index) <symbol_name_at>: Likewise.
6412 (struct mapped_debug_names): Remove constructor.
6413 <dwarf2_per_objfile>: Remove field.
6414 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
6415 (mapped_index_base::find_name_components_bounds,
6416 mapped_index_base::build_name_components,
6417 dw2_expand_symtabs_matching_symbol): Likewise.
6418 (class mock_mapped_index) <symbol_name_at>: Likewise.
6419 (check_match): Likewise.
6420 (check_find_bounds_finds): Likewise.
6421 (test_mapped_index_find_name_component_bounds): Update.
6422 (CHECK_MATCH): Update.
6423 (dw2_expand_symtabs_matching): Update.
6424 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
6425 per_objfile parameter.
6426 <find_vec_in_debug_names>: Likewise.
6427 <m_per_objfile>: New field.
6428 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
6429 parameter.
6430 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
6431 (dw2_debug_names_iterator::next): Update.
6432 (dw2_debug_names_lookup_symbol): Update.
6433 (dw2_debug_names_expand_symtabs_for_function): Update.
6434 (dw2_debug_names_map_matching_symbols): Update.
6435 (dw2_debug_names_expand_symtabs_matching): Update.
6436 (dwarf2_read_debug_names): Update.
6437
7188ed02
SM
64382020-05-27 Simon Marchi <simon.marchi@efficios.com>
6439
6440 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
6441 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
6442 move to dwarf2_per_objfile.
6443 <read_in_chain>: Remove.
6444 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
6445 remove_all_cus, age_comp_units>: New methods.
6446 <m_dwarf2_cus>: New member.
6447 (struct dwarf2_per_cu_data) <cu>: Remove.
6448 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
6449 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
6450 moved to methods of dwarf2_per_objfile.
6451 (dwarf2_clear_marks): Remove.
6452 (dwarf2_queue_item::~dwarf2_queue_item): Update.
6453 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
6454 (dwarf2_per_bfd::free_cached_comp_units): Remove.
6455 (dwarf2_per_objfile::remove_all_cus): New.
6456 (class free_cached_comp_units) <~free_cached_comp_units>:
6457 Update.
6458 (load_cu): Update.
6459 (dw2_do_instantiate_symtab): Adjust.
6460 (fill_in_sig_entry_from_dwo_entry): Adjust.
6461 (cutu_reader::init_tu_and_read_dwo_dies): Update.
6462 (cutu_reader::cutu_reader): Likewise.
6463 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
6464 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
6465 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
6466 and dwarf2_per_objfile::age_comp_units.
6467 (load_partial_comp_unit): Update.
6468 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
6469 (process_queue): Likewise.
6470 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
6471 backlink.
6472 (dwarf2_read_addr_index): Likewise.
6473 (follow_die_offset): Likewise.
6474 (dwarf2_fetch_die_loc_sect_off): Likewise.
6475 (dwarf2_fetch_constant_bytes): Likewise.
6476 (dwarf2_fetch_die_type_sect_off): Likewise.
6477 (follow_die_sig_1): Likewise.
6478 (load_full_type_unit): Likewise.
6479 (read_signatured_type): Likewise.
6480 (dwarf2_cu::dwarf2_cu): Don't set cu field.
6481 (dwarf2_cu::~dwarf2_cu): Remove.
6482 (dwarf2_per_objfile::get_cu): New.
6483 (dwarf2_per_objfile::set_cu): New.
6484 (age_cached_comp_units): Rename to...
6485 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
6486 to std::unordered_map.
6487 (free_one_cached_comp_unit): Rename to...
6488 (dwarf2_per_objfile::remove_cu): ... this. Adjust
6489 to std::unordered_map.
6490 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
6491 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
6492 a dwarf2_per_objfile in data.
6493 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
6494 (dwarf2_clear_marks): Remove.
6495
2e671100
SM
64962020-05-27 Simon Marchi <simon.marchi@efficios.com>
6497
6498 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
6499 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
6500 (init_tu_and_read_dwo_dies): Likewise.
6501 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
6502 (cutu_reader::cutu_reader): Likewise.
6503 (load_partial_comp_unit): Likewise.
6504 (process_psymtab_comp_unit): Update.
6505 (build_type_psymtabs_1): Update.
6506 (process_skeletonless_type_unit): Update.
6507 (load_full_comp_unit): Update.
6508 (find_partial_die): Update.
6509 (dwarf2_read_addr_index): Update.
6510 (read_signatured_type): Update.
6511
2e6a9f79
SM
65122020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6513
6514 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
6515 m_header_read_in>: New fields.
6516 <get_header>: New method.
6517 * dwarf2/read.c (per_cu_header_read_in): Remove.
6518 (dwarf2_per_cu_data::get_header): New.
6519 (dwarf2_per_cu_data::addr_size): Update.
6520 (dwarf2_per_cu_data::offset_size): Update.
6521 (dwarf2_per_cu_data::ref_addr_size): Update.
6522
1b555f17
SM
65232020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6524
6525 * dwarf2/read.c (load_cu): Return dwarf2_cu.
6526 (dw2_do_instantiate_symtab): Update.
6527 (queue_and_load_all_dwo_tus): Change parameter from
6528 dwarf2_per_cu_data to dwarf2_cu.
6529 (dwarf2_fetch_die_loc_sect_off): Update.
6530 (dwarf2_fetch_constant_bytes): Update.
6531 (dwarf2_fetch_die_type_sect_off): Update.
6532
8fc0b21d
SM
65332020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6534
6535 * dwarf2/read.c (process_full_comp_unit,
6536 process_full_type_unit): Remove per_cu, per_objfile paramters.
6537 Add dwarf2_cu parameter.
6538 (process_queue): Update.
6539
168c9250
SM
65402020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6541
6542 * dwarf2/read.c (create_cu_from_index_list): Replace
6543 dwarf2_per_objfile parameter with dwarf2_per_bfd.
6544 (create_cus_from_index_list): Likewise.
6545 (create_cus_from_index): Likewise.
6546 (create_signatured_type_table_from_index): Likewise.
6547 (create_cus_from_debug_names_list): Likewise.
6548 (create_cus_from_debug_names): Likewise.
6549 (dwarf2_read_gdb_index): Update.
6550 (dwarf2_read_debug_names): Update.
6551
e286671b
TT
65522020-05-27 Tom Tromey <tom@tromey.com>
6553 Simon Marchi <simon.marchi@efficios.com>
6554
6555 * dwarf2/read.h (struct dwarf2_per_objfile)
6556 <get_type_for_signatured_type, set_type_for_signatured_type>:
6557 New methods.
6558 <m_type_map>: New member.
6559 (struct signatured_type) <type>: Remove.
6560 * dwarf2/read.c
6561 (dwarf2_per_objfile::get_type_for_signatured_type,
6562 dwarf2_per_objfile::set_type_for_signatured_type): New.
6563 (get_signatured_type): Use new methods.
6564
8adb8487
TT
65652020-05-27 Tom Tromey <tom@tromey.com>
6566 Simon Marchi <simon.marchi@efficios.com>
6567
6568 * dwarf2/read.h (struct type_unit_group_unshareable): New.
6569 (struct dwarf2_per_objfile) <type_units>: New member.
6570 <get_type_unit_group_unshareable>: New method.
6571 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
6572 num_symtabs, symtabs>: Remove; move to
6573 type_unit_group_unshareable.
6574 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
6575 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
6576 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
6577
127bbf4b
SM
65782020-05-27 Simon Marchi <simon.marchi@efficios.com>
6579
6580 * dwarf2/read.h (struct dwarf2_per_cu_data):
6581 <dwarf2_per_objfile>: Remove.
6582 * dwarf2/read.c (create_cu_from_index_list): Don't assign
6583 dwarf2_per_objfile.
6584 (create_signatured_type_table_from_index): Likewise.
6585 (create_signatured_type_table_from_debug_names): Likewise.
6586 (create_debug_type_hash_table): Likewise.
6587 (fill_in_sig_entry_from_dwo_entry): Likewise.
6588 (create_type_unit_group): Likewise.
6589 (read_comp_units_from_section): Likewise.
6590 (create_cus_hash_table): Likewise.
6591
f6e649dd
SM
65922020-05-27 Simon Marchi <simon.marchi@efficios.com>
6593
6594 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
6595 dwarf2_per_cu_data::dwarf2_per_objfile.
6596 (compute_compunit_symtab_includes): Likewise.
6597 (dwarf2_cu::start_symtab): Likewise.
6598
aa66c379
SM
65992020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6600
6601 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
6602 parameter.
6603 * dwarf2/read.c (get_die_type_at_offset): Likewise.
6604 (read_namespace_alias): Update.
6605 (lookup_die_type): Update.
6606 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
6607 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
6608 Update.
6609 (disassemble_dwarf_expression): Update.
6610
120ce1b5
SM
66112020-05-27 Simon Marchi <simon.marchi@efficios.com>
6612
6613 * dwarf2/read.h (struct dwarf2_queue_item): Add
6614 dwarf2_per_objfile parameter, assign new parameter.
6615 <per_objfile>: New field.
6616 * dwarf2/read.c (free_one_cached_comp_unit): Add
6617 dwarf2_per_objfile parameter.
6618 (queue_comp_unit): Likewise.
6619 (dw2_do_instantiate_symtab): Update.
6620 (process_psymtab_comp_unit): Update.
6621 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
6622 (process_imported_unit_die): Update.
6623 (queue_and_load_dwo_tu): Update.
6624 (follow_die_offset): Update.
6625 (follow_die_sig_1): Update.
6626
9f47c707
SM
66272020-05-27 Simon Marchi <simon.marchi@efficios.com>
6628
6629 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
6630 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
6631 (read_call_site_scope): Assign per_objfile.
6632 (dwarf2_per_cu_data::objfile): Remove.
6633 * gdbtypes.h (struct call_site) <per_objfile>: New member.
6634 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
6635 dwarf2_per_objfile parameter.
6636 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
6637 dwarf2_per_objfile parameter.
6638 (dwarf_expr_reg_to_entry_parameter): Add output
6639 dwarf2_per_objfile parameter.
6640 (locexpr_get_frame_base): Update.
6641 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
6642 <push_dwarf_reg_entry_value>: Update.
6643 <call_site_to_target_addr>: Update.
6644 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
6645 parameter.
6646 (value_of_dwarf_reg_entry): Update.
6647 (rw_pieced_value): Update.
6648 (indirect_synthetic_pointer): Update.
6649 (dwarf2_evaluate_property): Update.
6650 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
6651 parameter.
6652 (locexpr_read_variable): Update.
6653 (locexpr_get_symbol_read_needs): Update.
6654 (loclist_read_variable): Update.
6655
14095eb3
SM
66562020-05-27 Simon Marchi <simon.marchi@efficios.com>
6657
6658 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
6659 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
6660 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
6661 parameter.
6662 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
6663 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
6664 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
6665 parameter.
6666 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
6667 sect_variable_value): Add dwarf2_per_objfile parameter.
6668 (class dwarf_evaluate_loc_desc) <dwarf_call,
6669 dwarf_variable_value>: Update.
6670 (fetch_const_value_from_synthetic_pointer): Add
6671 dwarf2_per_objfile parameter.
6672 (fetch_const_value_from_synthetic_pointer): Update.
6673 (coerced_pieced_ref): Update.
6674 (class symbol_needs_eval_context) <dwarf_call,
6675 dwarf_variable_value>: Update.
6676 (dwarf2_compile_expr_to_ax): Update.
6677
3c3cd3d4
SM
66782020-05-27 Simon Marchi <simon.marchi@efficios.com>
6679
6680 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
6681 parameter.
6682 (dwarf2_evaluate_loc_desc_full): Update.
6683
82ca3f51
SM
66842020-05-27 Simon Marchi <simon.marchi@efficios.com>
6685
6686 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
6687 parameter.
6688 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
6689 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
6690 dwarf2_per_objfile parameter.
6691 (decode_debug_loc_dwo_addresses): Likewise.
6692 (dwarf2_find_location_expression): Update.
6693 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
6694 (locexpr_describe_location_piece): Add dwarf2_per_objfile
6695 parameter.
6696 (disassemble_dwarf_expression): Add dwarf2_per_objfile
6697 parameter.
6698 (locexpr_describe_location_1): Likewise.
6699 (locexpr_describe_location): Update.
6700
4b167ea1
SM
67012020-05-27 Simon Marchi <simon.marchi@efficios.com>
6702
6703 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
6704 Remove.
6705 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
6706 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
6707 (dwarf2_compile_property_to_c): Update.
6708 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
6709 use text offset from objfile.
6710 (locexpr_tracepoint_var_ref): Update.
6711 (locexpr_generate_c_location): Update.
6712 (loclist_describe_location): Update.
6713 (loclist_tracepoint_var_ref): Update.
6714 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
6715 dwarf2_per_objfile parameter.
6716 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
6717 use text offset from objfile.
6718 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
6719
89b07335
SM
67202020-05-27 Simon Marchi <simon.marchi@efficios.com>
6721
6722 * dwarf2/expr.h (struct dwarf_expr_context)
6723 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
6724 <offset>: Remove.
6725 <per_objfile>: New member.
6726 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
6727 dwarf2_per_objfile parameter. Don't set offset, set
6728 per_objfile.
6729 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
6730 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
6731 a dwarf2_per_objfile object instead of an offset.
6732 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
6733 constructor.
6734 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
6735 to dwarf2_expr_executor constructor. Don't set offset.
6736 (dwarf2_fetch_cfa_info): Update.
6737 (struct dwarf2_frame_cache) <text_offset>: Remove.
6738 <per_objfile>: New field.
6739 (dwarf2_frame_cache): Update.
6740 (dwarf2_frame_prev_register): Update.
6741 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6742 <dwarf_evaluate_loc_desc>: Add constructor.
6743 (dwarf2_evaluate_loc_desc_full): Update.
6744 (dwarf2_locexpr_baton_eval): Update.
6745 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
6746 Add constructor.
6747 (dwarf2_loc_desc_get_symbol_read_needs): Update.
6748
293e7e51
SM
67492020-05-27 Simon Marchi <simon.marchi@efficios.com>
6750
6751 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
6752 addr_sized_int_type>: Move to dwarf2_cu.
6753 <int_type>: Move to dwarf2_per_objfile.
6754 (struct dwarf2_per_objfile) <int_type>: Move here.
6755 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
6756 addr_sized_int_type>: Move here.
6757 (read_func_scope): Update.
6758 (read_array_type): Update.
6759 (read_tag_string_type): Update.
6760 (attr_to_dynamic_prop): Update.
6761 (dwarf2_per_cu_data::int_type): Rename to...
6762 (dwarf2_per_objfile::int_type): ... this.
6763 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
6764 (dwarf2_cu::addr_sized_int_type): ... this.
6765 (read_subrange_type): Update.
6766 (dwarf2_per_cu_data::addr_type): Rename to...
6767 (dwarf2_cu::addr_type): ... this.
6768 (set_die_type): Update.
6769
64874a40
SM
67702020-05-27 Simon Marchi <simon.marchi@efficios.com>
6771
6772 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
6773 data through per_cu->cu.
6774
4ab09049
SM
67752020-05-27 Simon Marchi <simon.marchi@efficios.com>
6776
6777 * dwarf2/read.c (lookup_dwo_comp_unit): Change
6778 dwarf2_per_cu_data parameter fo dwarf2_cu.
6779 (lookup_dwo_type_unit): Likewise.
6780 (read_cutu_die_from_dwo): Likewise.
6781 (lookup_dwo_unit): Likewise.
6782 (open_and_init_dwo_file): Likewise.
6783 (lookup_dwo_cutu): Likewise.
6784 (lookup_dwo_comp_unit): Likewise.
6785 (lookup_dwo_type_unit): Likewise.
6786 (cutu_reader::init_tu_and_read_dwo_dies): Update.
6787 (cutu_reader::cutu_reader): Update.
6788
47b14e86
SM
67892020-05-27 Simon Marchi <simon.marchi@efficios.com>
6790
6791 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
6792 parameter.
6793 (process_full_type_unit): Likewise.
6794 (process_queue): Update.
6795
43182c09
SM
67962020-05-27 Simon Marchi <simon.marchi@efficios.com>
6797
6798 * dwarf2/read.c (recursively_compute_inclusions): Add
6799 dwarf2_per_objfile parameter.
6800 (compute_compunit_symtab_includes): Likewise.
6801 (process_cu_includes): Update.
6802
7aa104c4
SM
68032020-05-27 Simon Marchi <simon.marchi@efficios.com>
6804
6805 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
6806 parameter.
6807 (create_type_unit_group): Update.
6808 (process_psymtab_comp_unit_reader): Update.
6809 (build_type_psymtabs_reader): Update.
6810
e3beb21d
SM
68112020-05-27 Simon Marchi <simon.marchi@efficios.com>
6812
6813 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
6814 object through m_this_cu->cu.
6815
d460f660
SM
68162020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6817
6818 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
6819 the info parameter.
6820 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
6821
ab432490
SM
68222020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6823
6824 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
6825 per_objfile parameter.
6826 (load_full_type_unit): Add per_objfile parameter.
6827 (read_signatured_type): Likewise.
6828 (load_full_comp_unit): Likewise.
6829 (load_cu): Likewise.
6830 (dw2_do_instantiate_symtab): Likewise.
6831 (dw2_get_file_names): Likewise.
6832 (dw2_map_symtabs_matching_filename): Update.
6833 (dw_expand_symtabs_matching_file_matcher): Update.
6834 (dw2_map_symbol_filenames): Update.
6835 (process_psymtab_comp_unit): Add per_objfile parameter.
6836 (build_type_psymtabs_1): Update.
6837 (process_skeletonless_type_unit): Update.
6838 (dwarf2_build_psymtabs_hard): Update.
6839 (load_partial_comp_unit): Add per_objfile parameter.
6840 (scan_partial_symbols): Update.
6841 (load_full_comp_unit): Add per_objfile parameter.
6842 (process_imported_unit_die): Update.
6843 (create_cus_hash_table): Update.
6844 (find_partial_die): Update.
6845 (dwarf2_read_addr_index): Update.
6846 (follow_die_offset): Update.
6847 (dwarf2_fetch_die_loc_sect_off): Update.
6848 (dwarf2_fetch_constant_bytes): Update.
6849 (dwarf2_fetch_die_type_sect_off): Update.
6850 (follow_die_sig_1): Update.
6851 (load_full_type_unit): Add per_objfile parameter.
6852 (read_signatured_type): Likewise.
6853
313bad1b
SM
68542020-05-27 Simon Marchi <simon.marchi@efficios.com>
6855
6856 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
6857 of objfile_name.
6858
c3699833
SM
68592020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6860
6861 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
6862 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
6863 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
6864 field.
6865 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
6866 (create_cus_from_index): Update.
6867 (dwarf2_read_gdb_index): Update.
6868 (create_cus_from_debug_names): Update.
6869 (dwarf2_read_debug_names): Update.
6870 (get_abbrev_section_for_cu): Update.
6871 (create_all_comp_units): Update.
6872 (read_attribute_value): Update.
6873 (get_debug_line_section): Update.
6874 * dwarf2/index-cache.c (index_cache::store): Update.
6875 * dwarf2/index-write.c (save_gdb_index_command): Update.
6876 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
6877
1859c670
SM
68782020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6879
6880 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
6881 member.
6882 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
6883 dwarf2_per_cu_data::per_bfd.
6884 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
6885 (create_type_unit_group): Likewise.
6886 (queue_comp_unit): Remove reference to
6887 per_cu->dwarf2_per_objfile.
6888 (maybe_queue_comp_unit): Likewise.
6889 (fill_in_sig_entry_from_dwo_entry): Assign new field.
6890 (create_cus_hash_table): Assign new field.
6891
5e22e966
SM
68922020-05-27 Simon Marchi <simon.marchi@efficios.com>
6893
6894 * dwarf2/read.c: Replace
6895 dwarf2_cu->per_cu->dwarf2_per_objfile references with
6896 dwarf2_cu->per_objfile throughout.
6897
97a1449a
SM
68982020-05-27 Simon Marchi <simon.marchi@efficios.com>
6899
6900 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
6901 parameter, don't use per_cu->dwarf2_per_objfile.
6902 (dw2_instantiate_symtab): Likewise.
6903 (dw2_find_last_source_symtab): Update.
6904 (dw2_map_expand_apply): Update.
6905 (dw2_lookup_symbol): Update.
6906 (dw2_expand_symtabs_for_function): Update.
6907 (dw2_expand_all_symtabs): Update.
6908 (dw2_expand_symtabs_with_fullname): Update.
6909 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
6910 don't use per_cu->dwarf2_per_objfile.
6911 (dw2_expand_marked_cus): Update.
6912 (dw2_find_pc_sect_compunit_symtab): Update.
6913 (dw2_debug_names_lookup_symbol): Update.
6914 (dw2_debug_names_expand_symtabs_for_function): Update.
6915 (dw2_debug_names_map_matching_symbols): Update.
6916 (dwarf2_psymtab::expand_psymtab): Update.
6917
9e021579
SM
69182020-05-27 Simon Marchi <simon.marchi@efficios.com>
6919
6920 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
6921 <per_objfile>: New member.
6922 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
6923 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
6924 call to dwarf2_cu.
6925 (cutu_reader::cutu_reader): Update.
6926 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
6927
ae090bdb
SM
69282020-05-27 Simon Marchi <simon.marchi@efficios.com>
6929
6930 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
6931 struct dwarf2_per_objfile.
6932 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
6933 dwarf2_per_bfd.
6934 * dwarf2/read.c (set_die_type): Update.
6935 (get_die_type_at_offset): Update.
6936
af758d11
SM
69372020-05-27 Tom Tromey <tom@tromey.com>
6938 Simon Marchi <simon.marchi@efficios.com>
6939
6940 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
6941 method.
6942 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
6943 get_symtab, set_symtab>: New methods.
6944 <m_symtabs>: New field.
6945 (struct dwarf2_psymtab): Derive from partial_symtab.
6946 <readin_p, get_compunit_symtab>: Declare methods.
6947 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
6948 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
6949 New methods.
6950 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
6951 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
6952 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
6953 (dw2_symtab_iter_next, dw2_print_stats)
6954 (dw2_expand_symtabs_with_fullname)
6955 (dw2_expand_symtabs_matching_one)
6956 (dw_expand_symtabs_matching_file_matcher)
6957 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
6958 (dw2_debug_names_iterator::next)
6959 (dw2_debug_names_map_matching_symbols)
6960 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
6961 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
6962 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
6963 New methods.
6964 (get_compunit_symtab, process_full_comp_unit)
6965 (process_full_type_unit): Update.
6966 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
6967
5989a64e
SM
69682020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6969
6970 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
6971 then introduce a new dwarf2_per_objfile type.
6972 <read_line_string>: Move to the new dwarf2_per_objfile type.
6973 <objfile>: Likewise.
6974 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
6975 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
6976 dwarf2_per_objfile->per_bfd.
6977 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
6978 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
6979 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
6980 (dwarf2_per_bfd::free_cached_comp_units): ... this.
6981 (dwarf2_has_info): Allocate dwarf2_per_bfd.
6982 (dwarf2_per_objfile::locate_sections): Rename to...
6983 (dwarf2_per_bfd::locate_sections): ... this.
6984 (dwarf2_per_objfile::get_cutu): Rename to...
6985 (dwarf2_per_bfd::get_cutu): ... this.
6986 (dwarf2_per_objfile::get_cu): Rename to...
6987 (dwarf2_per_bfd::get_cu): ... this.
6988 (dwarf2_per_objfile::get_tu): Rename to...
6989 (dwarf2_per_bfd::get_tu): ... this.
6990 (dwarf2_per_objfile::allocate_per_cu): Rename to...
6991 (dwarf2_per_bfd::allocate_per_cu): ... this.
6992 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
6993 (dwarf2_per_bfd::allocate_signatured_type): ... this.
6994 (get_gdb_index_contents_ftype): Change parameter from
6995 dwarf2_per_objfile to dwarf2_per_bfd.
6996 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
6997 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
6998
a50264ba
TT
69992020-05-27 Tom Tromey <tom@tromey.com>
7000 Simon Marchi <simon.marchi@efficios.com>
7001
7002 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
7003 (allocate_piece_closure): Set "per_objfile" member.
7004 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
7005 (locexpr_describe_location, loclist_describe_location): Use new
7006 member.
7007 * dwarf2/read.c (read_call_site_scope)
7008 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
7009 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
7010 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
7011 handle_data_member_location): Set per_objfile member.
7012 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
7013 member.
7014 (struct dwarf2_loclist_baton) <per_objfile>: New member.
7015
d3473f0c
TT
70162020-05-27 Tom Tromey <tom@tromey.com>
7017
7018 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
7019 allocate_signatured_type>: Declare new methods.
7020 <m_num_psymtabs>: New member.
7021 (struct dwarf2_per_cu_data) <index>: New member.
7022 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
7023 (dwarf2_per_objfile::allocate_signatured_type): New methods.
7024 (create_cu_from_index_list): Use allocate_per_cu.
7025 (create_signatured_type_table_from_index)
7026 (create_signatured_type_table_from_debug_names)
7027 (create_debug_type_hash_table, add_type_unit)
7028 (read_comp_units_from_section): Use allocate_signatured_type.
7029
5717c425
TT
70302020-05-27 Tom Tromey <tom@tromey.com>
7031
7032 * psymtab.c (partial_map_expand_apply)
7033 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
7034 (psym_lookup_global_symbol_language)
7035 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
7036 (psym_print_stats, psym_expand_symtabs_for_function)
7037 (psym_map_symbol_filenames, psym_map_matching_symbols)
7038 (psym_expand_symtabs_matching)
7039 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
7040 (maintenance_check_psymtabs): Update.
7041 * psympriv.h (struct partial_symtab) <readin_p,
7042 get_compunit_symtab>: Add objfile parameter.
7043 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
7044 Likewise.
7045 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
7046 get_compunit_symtab>: Likewise.
7047 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
7048
45940949
TT
70492020-05-27 Tom Tromey <tom@tromey.com>
7050
7051 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
7052 member.
7053 * dwarf2/read.c (delete_file_name_entry): Fix comment.
7054 (create_cu_from_index_list)
7055 (create_signatured_type_table_from_index)
7056 (create_signatured_type_table_from_debug_names)
7057 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
7058 (dwarf2_create_include_psymtab)
7059 (create_debug_type_hash_table, add_type_unit)
7060 (create_type_unit_group, read_comp_units_from_section)
7061 (dwarf2_compute_name, create_cus_hash_table)
7062 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
7063 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
7064 obstack.
7065 (dw2_get_real_path): Likewise. Change argument to
7066 dwarf2_per_objfile.
7067
f8c6d152
LM
70682020-05-27 Luis Machado <luis.machado@linaro.org>
7069
7070 PR tdep/26000
7071 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
7072 for ldrd (immediate).
7073
e98d2e6d
PW
70742020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7075
7076 * command.h: Add comment giving the name of class_tui.
7077 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
7078 create the fake command for the help for class_tui.
7079
53a47a3e
TT
70802020-05-26 Tom Tromey <tromey@adacore.com>
7081
7082 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
7083 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
7084 (val_atr): New function.
7085 (value_val_atr): Use it.
7086 * ada-valprint.c (print_optional_low_bound): Change low bound
7087 handling for enums.
7088 (val_print_packed_array_elements): Don't call discrete_position.
7089 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
7090 discrete_position for enum types.
7091 * language.c (default_print_array_index): Change type.
7092 * language.h (struct language_defn) <la_print_array_index>: Add
7093 index_type parameter, change type of index_value.
7094 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
7095 (default_print_array_index): Update.
7096 * valprint.c (maybe_print_array_index): Don't call
7097 value_from_longest. Update.
7098 (value_print_array_elements): Don't call discrete_position.
7099
0bc2354b
TT
71002020-05-26 Tom Tromey <tromey@adacore.com>
7101
7102 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
7103 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
7104
1218a4bf
CDA
71052020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
7106
7107 PR gdb/13519
7108 * avr-tdep.c (avr_integer_to_address): Return data or code
7109 address accordingly to the second 'type' argument of the
7110 function.
7111
92651b1d
MW
71122020-05-25 Michael Weghorn <m.weghorn@posteo.de>
7113
7114 * infcmd.c, inferior.h: (construct_inferior_arguments):
7115 Moved function from here to gdbsupport/common-inferior.{h,cc}
7116
0a4f5f8c
TT
71172020-05-23 Tom Tromey <tom@tromey.com>
7118
7119 Revert commit eca1f90c:
7120 * NEWS: Remove entry for completion styling.
7121 * completer.c (_rl_completion_prefix_display_length): Move
7122 declaration later.
7123 (gdb_fnprint): Revert.
7124 (gdb_display_match_list_1): Likewise.
7125 * cli/cli-style.c (completion_prefix_style)
7126 (completion_difference_style, completion_suffix_style): Remove.
7127 (_initialize_cli_style): Revert.
7128 * cli/cli-style.h (completion_prefix_style)
7129 (completion_difference_style, completion_suffix_style): Don't
7130 declare.
7131
e08bd6c5
PA
71322020-05-24 Pedro Alves <palves@redhat.com>
7133
7134 * symtab.c (completion_list_add_name): Return boolean indication
7135 of whether the symbol matched.
7136 (completion_list_add_symbol): Don't try to remove C++ aliases if
7137 the symbol didn't match in the first place.
7138 * symtab.h (completion_list_add_name): Return bool.
7139
ceacbf6e
SM
71402020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
7141
7142 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
7143 type::field.
7144
26f16254
JB
71452020-05-23 Joel Brobecker <brobecker@adacore.com>
7146
7147 GDB 9.2 released.
7148
eca1f90c
TT
71492020-05-23 Tom Tromey <tom@tromey.com>
7150
7151 * NEWS: Add entry for completion styling.
7152 * completer.c (_rl_completion_prefix_display_length): Move
7153 declaration earlier.
7154 (gdb_fnprint): Use completion_style.
7155 (gdb_display_match_list_1): Likewise.
7156 * cli/cli-style.c (completion_prefix_style)
7157 (completion_difference_style, completion_suffix_style): New
7158 globals.
7159 (_initialize_cli_style): Register new globals.
7160 * cli/cli-style.h (completion_prefix_style)
7161 (completion_difference_style, completion_suffix_style): Declare.
7162
51e2cfa2
PA
71632020-05-23 Pedro Alves <palves@redhat.com>
7164
7165 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
7166 (parse_escape): Use ISDIGIT instead of isdigit.
7167 (puts_debug): Use gdb_isprint instead of isprint.
7168 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
7169 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
7170 ISSPACE instead of isspace.
7171 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
7172 instead of isspace.
7173 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
7174 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
7175 instead of isxdigit and ISDIGIT instead of isdigit.
7176
80fc5e77
SM
71772020-05-22 Simon Marchi <simon.marchi@efficios.com>
7178
7179 * gdbtypes.h (struct type) <field>: New method.
7180 (TYPE_FIELDS): Remove, replace all uses with either type::fields
7181 or type::field.
7182
3cabb6b0
SM
71832020-05-22 Simon Marchi <simon.marchi@efficios.com>
7184
7185 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
7186 (TYPE_FIELDS): Use type::fields. Change all call sites that
7187 modify the propery to use type::set_fields instead.
7188
1f704f76
SM
71892020-05-22 Simon Marchi <simon.marchi@efficios.com>
7190
7191 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
7192 type::num_fields instead.
7193
5e33d5f4
SM
71942020-05-22 Simon Marchi <simon.marchi@efficios.com>
7195
7196 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
7197 methods.
7198 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
7199 that modify the number of fields to use type::set_num_fields
7200 instead.
7201
9392ebb3
TT
72022020-05-22 Tom Tromey <tromey@adacore.com>
7203
7204 * compile/compile-object-load.h (munmap_list_free): Don't
7205 declare.
7206
7c13f4e8
AB
72072020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
7208
7209 * annotate.c (annotate_source_line): Update return type, add call
7210 to update current symtab and line.
7211 * annotate.h (annotate_source_line): Update return type, and
7212 extend header comment.
7213 * source.c (info_line_command): Check annotation_level before
7214 calling annotate_source_line.
7215 * stack.c (print_frame_info): If calling annotate_source_line
7216 returns true, then don't print any other source line information.
7217
aa370940
SM
72182020-05-21 Simon Marchi <simon.marchi@efficios.com>
7219
7220 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
7221
84d53fa9
SM
72222020-05-21 Simon Marchi <simon.marchi@efficios.com>
7223
7224 * coffread.c (patch_type): Remove NULL check before xfree.
7225 * corefile.c (set_gnutarget): Likewise.
7226 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
7227 * exec.c (build_section_table): Likewise.
7228 * remote.c (remote_target::pass_signals): Likewise.
7229 * utils.c (n_spaces): Likewise.
7230 * cli/cli-script.c (document_command): Likewise.
7231 * i386-windows-tdep.c (core_process_module_section): Likewise.
7232 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
7233
9d428aae
SM
72342020-05-20 Simon Marchi <simon.marchi@efficios.com>
7235
7236 * symfile.c (reread_symbols): Clear objfile's section_offsets
7237 vector and section indices, re-compute them by calling
7238 sym_offsets.
7239
250106a7
TT
72402020-05-20 Tom Tromey <tromey@adacore.com>
7241
7242 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 7243 (desc_one_bound, desc_index_type): Compute field name.
250106a7 7244
9a0bacfb
TV
72452020-05-20 Tom de Vries <tdevries@suse.de>
7246
7247 PR symtab/25833
7248 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
7249
7b958a48
AM
72502020-05-20 Alan Modra <amodra@gmail.com>
7251
7252 PR 25993
7253 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
7254 bfd_set_filename.
7255 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
7256 passed to bfd_set_filename.
7257 * symfile-mem.c (add_vsyscall_page): Likewise for string
7258 passed to symbol_file_add_from_memory.
7259 (symbol_file_add_from_memory): Make name param a const char* and
7260 don't strdup.
7261
c7e97679
AM
72622020-05-20 Alan Modra <amodra@gmail.com>
7263
7264 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
7265 rather than accessing bfd->filename directly.
7266 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
7267 and use bfd_section_name.
7268 * dwarf2/frame.c (decode_frame_entry): Likewise.
7269 * exec.c (exec_set_section_address): Likewise.
7270 * solib-aix.c (solib_aix_bfd_open): Likewise.
7271 * stap-probe.c (get_stap_base_address): Likewise.
7272 * symfile.c (reread_symbols): Likewise.
7273
563c591b
TT
72742020-05-19 Tom Tromey <tromey@adacore.com>
7275
7276 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
7277
f408d82c
SM
72782020-05-19 Simon Marchi <simon.marchi@efficios.com>
7279
7280 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
7281
98c59b52
PA
72822020-05-19 Pedro Alves <palves@redhat.com>
7283
7284 * NEWS (set exec-file-mismatch): Adjust entry.
7285 * exec.c: Include "build-id.h".
7286 (validate_exec_file): Try to match build IDs instead of filenames.
7287 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
7288 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
7289 and pass down 'warn_if_slow'.
7290 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
7291 gdb_bfd_open_closure to pass it down.
7292 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
7293
4111f652
PA
72942020-05-19 Pedro Alves <palves@redhat.com>
7295
7296 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
7297 * target.c (target_fileio_open_1): Rename to target_fileio_open
7298 and make extern. Use bool.
7299 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
7300 (target_fileio_read_alloc_1): Adjust.
7301 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
7302 (target_fileio_open_warn_if_slow): Delete declaration.
7303
ad80db5b
PA
73042020-05-19 Pedro Alves <palves@redhat.com>
7305
7306 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
7307 Adjust all callers.
7308
1d6ce4d3
YS
73092020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
7310
7311 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
7312 whether disp is negative.
7313
9005fbbb
SM
73142020-05-19 Simon Marchi <simon.marchi@efficios.com>
7315
7316 * symfile.h (struct symfile_segment_data)
7317 <~symfile_segment_data>: Remove.
7318 <segment_info>: Change to std::vector.
7319 * symfile.c (default_symfile_segments): Update.
7320 * elfread.c (elf_symfile_segments): Update.
7321
68b888ff
SM
73222020-05-19 Simon Marchi <simon.marchi@efficios.com>
7323
7324 * symfile.h (struct symfile_segment_data) <struct segment>: New.
7325 <segments>: New.
7326 <segment_bases, segment_sizes>: Remove.
7327 * symfile.c (default_symfile_segments): Update.
7328 * elfread.c (elf_symfile_segments): Update.
7329 * remote.c (remote_target::get_offsets): Update.
7330 * solib-target.c (solib_target_relocate_section_addresses):
7331 Update.
7332
62982abd
SM
73332020-05-19 Simon Marchi <simon.marchi@efficios.com>
7334
7335 * symfile.h (struct symfile_segment_data): Initialize fields.
7336 <~symfile_segment_data>: Add.
7337 (symfile_segment_data_up): New.
7338 (struct sym_fns) <sym_segments>: Return a
7339 symfile_segment_data_up.
7340 (default_symfile_segments): Return a symfile_segment_data_up.
7341 (free_symfile_segment_data): Remove.
7342 (get_symfile_segment_data): Return a symfile_segment_data_up.
7343 * symfile.c (default_symfile_segments): Likewise.
7344 (get_symfile_segment_data): Likewise.
7345 (free_symfile_segment_data): Remove.
7346 (symfile_find_segment_sections): Update.
7347 * elfread.c (elf_symfile_segments): Return a
7348 symfile_segment_data_up.
7349 * remote.c (remote_target::get_offsets): Update.
7350 * solib-target.c (solib_target_relocate_section_addresses):
7351 Update.
7352 * symfile-debug.c (debug_sym_segments): Return a
7353 symfile_segment_data_up.
7354
7f204339
RO
73552020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7356
e52a0f1b
RO
7357 PR build/25981
7358 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
7359 Hardcode register numbers.
7360
7f204339
RO
7361 PR build/25981
7362 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
7363 procfs_find_LDT_entry): Remove.
7364 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
7365 procfs_find_LDT_entry): Remove.
7366 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
7367 Remove.
7368
7f32a4d5
PA
73692020-05-17 Pedro Alves <palves@redhat.com>
7370 Andrew Burgess <andrew.burgess@embecosm.com>
7371 Keno Fischer <keno@juliacomputing.com>
7372
7373 PR gdb/25741
7374 * breakpoint.c (build_target_condition_list): Update comments.
7375 (build_target_command_list): Update comments and skip matching
7376 locations.
7377 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
7378 a separate function. Simplify "set breakpoint auto-hw off"
7379 handling.
7380 (insert_breakpoints): Update comment.
7381 (tracepoint_locations_match): New parameter. For breakpoints,
7382 compare location types too, if the caller wants to.
7383 (handle_automatic_hardware_breakpoints): New functions.
7384 (bp_location_is_less_than): Also sort by location type and
7385 hardware breakpoint length.
7386 (update_global_location_list): Handle "set breakpoint auto-hw on"
7387 here.
7388 (update_breakpoint_locations): Ask breakpoint_locations_match to
7389 ignore location types.
7390
7d93a1e0
SM
73912020-05-16 Simon Marchi <simon.marchi@efficios.com>
7392
7393 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
7394 type::name instead.
7395
d0e39ea2
SM
73962020-05-16 Simon Marchi <simon.marchi@efficios.com>
7397
7398 * gdbtypes.h (struct type) <name, set_name>: New methods.
7399 (TYPE_CODE): Use type::name. Change all call sites used to set
7400 the name to use type::set_name instead.
7401
2dab0c7b
TT
74022020-05-16 Tom Tromey <tom@tromey.com>
7403
7404 * top.c (quit_force): Update.
7405 * infrun.c (handle_no_resumed): Update.
7406 * top.h (all_uis): New function.
7407 (ALL_UIS): Remove.
7408
59f7bd8d
SM
74092020-05-16 Simon Marchi <simon.marchi@efficios.com>
7410
7411 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
7412
9bf058f0
PA
74132020-05-16 Pedro Alves <palves@redhat.com>
7414
7415 * ia64-linux-nat.c
7416 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
7417 Declare method.
7418 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
7419
8f86ae1a
SM
74202020-05-15 Simon Marchi <simon.marchi@efficios.com>
7421
7422 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
7423 (sparc64_adi_info): Likewise.
7424
d6bc0792
TT
74252020-05-15 Tom Tromey <tom@tromey.com>
7426
7427 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
7428 block_objfile.
7429 (lookup_objfile_from_block): Remove.
7430 (lookup_symbol_in_block, lookup_symbol_in_static_block)
7431 (lookup_global_symbol): Use block_objfile.
7432 * symtab.h (lookup_objfile_from_block): Don't declare.
7433 * printcmd.c (clear_dangling_display_expressions): Use
7434 block_objfile.
7435 * parse.c (operator_check_standard): Use block_objfile.
7436
8c14c3a3
TT
74372020-05-15 Tom Tromey <tom@tromey.com>
7438
7439 * language.c (language_alloc_type_symbol): Set
7440 SYMBOL_SECTION.
7441 * symtab.c (initialize_objfile_symbol): Remove.
7442 (allocate_symbol): Remove.
7443 (allocate_template_symbol): Remove.
7444 * dwarf2/read.c (fixup_go_packaging): Use "new".
7445 (new_symbol): Use "new".
7446 (read_variable): Don't call initialize_objfile_symbol. Use
7447 "new".
7448 (read_func_scope): Use "new".
7449 * xcoffread.c (process_xcoff_symbol): Don't call
7450 initialize_objfile_symbol.
7451 (SYMBOL_DUP): Remove.
7452 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
7453 "new".
7454 * symtab.h (allocate_symbol, initialize_objfile_symbol)
7455 (allocate_template_symbol): Don't declare.
7456 (struct symbol): Add copy constructor. Change defaults.
7457 * jit.c (finalize_symtab): Use "new".
7458 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
7459 Use "new".
7460 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
7461 (common_block_end): Use "new".
7462 * mdebugread.c (parse_symbol): Use "new".
7463 (new_symbol): Likewise.
7464
5b4a1a8d
PW
74652020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7466
7467 * NEWS: Mention changes to help and apropos.
7468
57b4f16e
PW
74692020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7470
7471 * command.h (enum command_class): Improve comments, document
7472 that class_alias is for user-defined aliases, give the class
7473 name for each class, remove unused class_xdb.
7474 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
7475 * breakpoint.c (_initialize_breakpoint): Replace class_alias
7476 by a precise class.
7477 * infcmd.c (_initialize_infcmd): Likewise.
7478 * reverse.c (_initialize_reverse): Likewise.
7479 * stack.c (_initialize_stack): Likewise.
7480 * symfile.c (_initialize_symfile): Likewise.
7481 * tracepoint.c (_initialize_tracepoint): Likewise.
7482
7c05caf7
PW
74832020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7484
7485 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
7486 when their aliased command is traversed.
7487 (help_cmd): Add fput_command_names_styled call to
7488 output command name and aliases when command has an alias.
7489
3b3aaacb
PW
74902020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7491
7492 * cli/cli-decode.h (help_cmd_list): Remove declaration.
7493 * cli/cli-decode.c (help_cmd_list): Declare as static,
7494 remove prefix argument, use bool for recurse arg, rework to show the aliases of
7495 a command together with the command.
7496 (fput_command_name_styled, fput_command_names_styled): New functions.
7497 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
7498 fput_command_name_styled.
7499 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
7500 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
7501
7aa1b46f
PW
75022020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7503
7504 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
7505 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
7506 * command.h (cmd_show_list): Likewise.
7507 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
7508 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
7509
89bcba74
PW
75102020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7511
7512 * unittests/command-def-selftests.c (traverse_command_structure):
7513 Verify all commands of a list have the same prefix command and
7514 that only the top cmdlist commands have a null prefix.
7515
3f4d92eb
PW
75162020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7517
7518 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
7519 as prefix, not one of its aliases.
7520 (set_cmd_prefix): Remove.
7521 (do_add_cmd): Centralize the setting of the prefix of a command, when
7522 command is defined after its full chain of prefix commands.
7523 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
7524 (add_setshow_cmd_full): Likewise.
7525 (update_prefix_field_of_prefixed_commands): New function.
7526 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
7527 update_prefix_field_of_prefixed_commands.
7528 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
7529 addresses of remote_set_cmdlist and remote_show_cmdlist given
7530 as argument, not the address of an argument.
7531 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
7532 * gdb/remote.c (_initialize_remote): Likewise.
7533
0605465f
PW
75342020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7535
7536 * cli/cli-cmds.c (alias_command): Check for an existing alias
7537 using lookup_cmd_composition, as valid_command_p is too strict
7538 and forbids aliases that are the prefix of an existing alias
7539 or command.
7540 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
7541 command is properly recognised as a valid command.
7542
58e6ac70
PW
75432020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7544
7545 * unittests/help-doc-selftests.c: Rename to
7546 unittests/command-def-selftests.c
7547 * unittests/command-def-selftests.c (help_doc_tests): Update some
7548 comments.
7549 (command_structure_tests, traverse_command_structure): New namespace
7550 and function.
7551 (command_structure_invariants_tests): New function.
7552 (_initialize_command_def_selftests) Renamed from
7553 _initialize_help_doc_selftests, register command_structure_invariants
7554 selftest.
7555
a7b9ceb8
PW
75562020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7557
7558 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
7559 an alias of 'show'.
7560
b2188a06
JB
75612020-05-15 Joel Brobecker <brobecker@adacore.com>
7562
7563 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
7564 ada_is_fixed_point_type. Update all callers.
7565 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
7566 all callers.
7567 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
7568 Update all callers.
7569 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
7570 print_fixed_point_type. Update all callers.
7571 * ada-valprint.c (ada_value_print_num): Replace call to
7572 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
7573
a51951c2
KB
75742020-05-14 Kevin Buettner <kevinb@redhat.com>
7575
7576 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
7577 processors.
7578 (cpu_supports_bts): Add CV_AMD case.
7579
29d6859f
LM
75802020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
7581 Simon Marchi <simon.marchi@efficios.com>
7582
7583 * infrun.c (stop_all_threads): Collect multiple wait events at
7584 each pass.
7585
78134374
SM
75862020-05-14 Simon Marchi <simon.marchi@efficios.com>
7587
7588 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
7589 type::code instead.
7590
67607e24
SM
75912020-05-14 Simon Marchi <simon.marchi@efficios.com>
7592
7593 * gdbtypes.h (struct type) <code, set_code>: New methods.
7594 (TYPE_CODE): Use type::code. Change all call sites used to set
7595 the code to use type::set_code instead.
7596
a05575d3
TBA
75972020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7598 Tom de Vries <tdevries@suse.de>
7599 Pedro Alves <palves@redhat.com>
7600
7601 PR threads/25478
7602 * infrun.c (stop_all_threads): Do NOT ignore
7603 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
7604 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
7605 received.
7606 (handle_no_resumed): Remove code handling a live inferior with no
7607 threads.
7608 * remote.c (has_single_non_exited_thread): New.
7609 (remote_target::update_thread_list): Do not delete a thread if is
7610 the last thread of the process.
7611 * thread.c (thread_select): Call delete_exited_threads instead of
7612 prune_threads.
7613
6ad82919
TBA
76142020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7615
7616 * infrun.c (stop_all_threads): Enable/disable thread events of all
7617 targets. Move a debug message denoting the end of the function
7618 into the SCOPED_EXIT block.
7619
d890404b
TBA
76202020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7621
7622 * process-stratum-target.h: Include <set>.
7623 (all_non_exited_process_targets, switch_to_target_no_thread): New
7624 function declarations.
7625 * process-stratum-target.c (all_non_exited_process_targets)
7626 (switch_to_target_no_thread): New function implementations.
7627
293b3ebc
TBA
76282020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7629
7630 * infrun.c (handle_inferior_event): Extract out a piece of code
7631 into...
7632 (mark_non_executing_threads): ...this new function.
7633
7ca9b62a
TBA
76342020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7635
7636 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
7637 use.
7638
fc75c28b
TBA
76392020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7640
7641 * regcache.c (regcache_read_pc_protected): New function
7642 implementation that returns 0 if the PC cannot read via
7643 'regcache_read_pc'.
7644 * infrun.c (proceed): Call 'regcache_read_pc_protected'
7645 instead of 'regcache_read_pc'.
7646 (keep_going_pass_signal): Ditto.
7647
a89febbd
TT
76482020-05-13 Tom Tromey <tromey@adacore.com>
7649
7650 * ada-lang.c (align_value): Remove.
7651 (ada_template_to_fixed_record_type_1): Use align_up.
7652
f7e23710
TBA
76532020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7654
7655 * async-event.c: Update the copyright year.
7656 * async-event.h: Update the copyright year.
7657
02ff80c2
SM
76582020-05-12 Simon Marchi <simon.marchi@efficios.com>
7659
7660 * objfiles.h (is_addr_in_objfile,
7661 shared_objfile_contains_address_p): Return bool.
7662 * objfile.c (is_addr_in_objfile,
7663 shared_objfile_contains_address_p): Return bool.
7664
4fd6c7e8
TT
76652020-05-11 Tom Tromey <tromey@adacore.com>
7666
7667 * cli/cli-cmds.c (info_command): Restore.
7668 (_initialize_cli_cmds): Use add_prefix_command for "info".
7669 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
7670
5eb68a39
TT
76712020-05-11 Tom Tromey <tromey@adacore.com>
7672
7673 * ada-lang.c (ada_value_primitive_field): Now public.
7674 * ada-lang.h (ada_value_primitive_field): Declare.
7675 * ada-valprint.c (print_field_values): Use
7676 ada_value_primitive_field for wrapper fields.
7677
7666722f
TV
76782020-05-11 Tom de Vries <tdevries@suse.de>
7679
7680 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
7681 MODULE_DOMAIN.
7682
3ee6bb11
TV
76832020-05-11 Tom de Vries <tdevries@suse.de>
7684
7685 PR symtab/25941
7686 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
7687 with length 0, if not gdb-produced.
7688 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
7689
43434996
TV
76902020-05-09 Tom de Vries <tdevries@suse.de>
7691
7692 PR gdb/25955
7693 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
7694 calculation.
7695
2f78cffc
TT
76962020-05-09 Tom Tromey <tom@tromey.com>
7697
7698 * top.c (server_command): Now bool.
7699 * top.h (server_command): Now bool.
7700
4f7bc5ed
TT
77012020-05-08 Tom Tromey <tromey@adacore.com>
7702
7703 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
7704 already being processed.
7705
8be4b118
TT
77062020-05-08 Tom Tromey <tom@tromey.com>
7707
7708 * printcmd.c (struct display) <next>: Remove.
7709 <display>: New constructor.
7710 <exp_string>: Now a std::string.
7711 <enabled_p>: Now a bool.
7712 (display_number): Move definition earlier.
7713 (displays): Rename from display_chain. Now a std::vector.
7714 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
7715 (display_command): Update.
7716 (do_one_display, disable_display)
7717 (enable_disable_display_command, do_enable_disable_display):
7718 Update.
7719 (free_display): Remove.
7720 (clear_displays): Rewrite.
7721 (delete_display): Update.
7722 (map_display_numbers): Use function_view. Remove "data"
7723 parameter. Update.
7724 (do_delete_display): Remove.
7725 (undisplay_command): Update.
7726 (do_one_display, do_displays, disable_display)
7727 (info_display_command): Update.
7728 (do_enable_disable_display): Remove.
7729 (enable_disable_display_command)
7730 (clear_dangling_display_expressions): Update.
7731
94c93c35
TT
77322020-05-08 Tom Tromey <tom@tromey.com>
7733
7734 * symtab.c (set_symbol_cache_size)
7735 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
7736 (maintenance_print_symbol_cache_statistics): Update.
7737 * symmisc.c (print_symbol_bcache_statistics)
7738 (print_objfile_statistics, maintenance_print_objfiles)
7739 (maintenance_info_symtabs, maintenance_check_symtabs)
7740 (maintenance_expand_symtabs, maintenance_info_line_tables):
7741 Update.
7742 * symfile-debug.c (set_debug_symfile): Update.
7743 * source.c (forget_cached_source_info): Update.
7744 * python/python.c (gdbpy_progspaces): Update.
7745 * psymtab.c (maintenance_info_psymtabs): Update.
7746 * probe.c (parse_probes): Update.
7747 * linespec.c (iterate_over_all_matching_symtabs)
7748 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
7749 * guile/scm-progspace.c (gdbscm_progspaces): Update.
7750 * exec.c (exec_target::close): Update.
7751 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
7752 * breakpoint.c (print_one_breakpoint_location)
7753 (create_longjmp_master_breakpoint)
7754 (create_std_terminate_master_breakpoint): Update.
7755 * progspace.c (program_spaces): Now a std::vector.
7756 (maybe_new_address_space): Update.
7757 (add_program_space): Remove.
7758 (program_space::program_space): Update.
7759 (remove_program_space): Update.
7760 (number_of_program_spaces): Remove.
7761 (print_program_space, update_address_spaces): Update.
7762 * progspace.h (program_spaces): Change type.
7763 (ALL_PSPACES): Remove.
7764 (number_of_program_spaces): Don't declare.
7765 (struct program_space) <next>: Remove.
7766
a1fd1ac9
TT
77672020-05-08 Tom Tromey <tom@tromey.com>
7768
7769 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
7770 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
7771 (enable_break): Update.
7772 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
7773 (frv_fdpic_find_canonical_descriptor): Update.
7774 (frv_fetch_objfile_link_map): Update.
7775 * progspace.c (program_space::free_all_objfiles): Update.
7776 (program_space::solibs): New method.
7777 * progspace.h (struct program_space) <solibs>: New method.
7778 * solist.h (master_so_list): Don't declare.
7779 (ALL_SO_LIBS): Remove.
7780 * solib.h (so_list_head): Remove.
7781 (update_solib_list): Update comment.
7782 * solib.c (master_so_list): Remove.
7783 (solib_used, update_solib_list, solib_add)
7784 (info_sharedlibrary_command, clear_solib)
7785 (reload_shared_libraries_1, remove_user_added_objfile): Update.
7786
38eae084
TT
77872020-05-08 Tom Tromey <tom@tromey.com>
7788
7789 * extension.c (extension_languages): Now a std::array.
7790 (ALL_EXTENSION_LANGUAGES): Remove.
7791 (get_ext_lang_defn, get_ext_lang_of_file)
7792 (eval_ext_lang_from_control_command): Update.
7793 (finish_ext_lang_initialization)
7794 (auto_load_ext_lang_scripts_for_objfile)
7795 (ext_lang_type_printers::ext_lang_type_printers)
7796 (apply_ext_lang_type_printers)
7797 (ext_lang_type_printers::~ext_lang_type_printers)
7798 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
7799 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
7800 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
7801 (get_matching_xmethod_workers, ext_lang_colorize)
7802 (ext_lang_before_prompt): Update.
7803 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
7804
596dc4ad
TT
78052020-05-08 Tom Tromey <tom@tromey.com>
7806
7807 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
7808 overload.
7809 <swap_string, m_string>: Remove.
7810 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
7811 Update.
7812 * stabsread.c (define_symbol, read_type): Update.
7813 * linespec.c (find_linespec_symbols): Update.
7814 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
7815 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
7816 * dbxread.c (read_dbx_symtab): Update.
7817 * cp-support.h (cp_canonicalize_string_full)
7818 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
7819 Return unique_xmalloc_ptr.
7820 * cp-support.c (inspect_type): Update.
7821 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
7822 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
7823 Likewise.
7824 * c-typeprint.c (print_name_maybe_canonical): Update.
7825 * break-catch-throw.c (check_status_exception_catchpoint):
7826 Update.
7827
bf4cb9be
TV
78282020-05-08 Tom de Vries <tdevries@suse.de>
7829
7830 * infrun.c (follow_fork): Copy current_line and current_symtab to
7831 child thread.
7832
a1b68f28
SM
78332020-05-07 Simon Marchi <simon.marchi@efficios.com>
7834
7835 * async-event.c (struct async_signal_handler, struct
7836 async_event_handler): Reformat, remove typedef.
7837
98d48915
SM
78382020-05-07 Simon Marchi <simon.marchi@efficios.com>
7839
7840 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
7841 access thistype->main_type->dyn_prop_list directly.
7842
7aa91313
SM
78432020-05-07 Simon Marchi <simon.marchi@efficios.com>
7844
7845 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
7846 (remove_dyn_prop): Remove. Update all users to use
7847 type::remove_dyn_prop.
7848 * gdbtypes.c (remove_dyn_prop): Rename to...
7849 (type::remove_dyn_prop): ... this.
7850
5c54719c
SM
78512020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
7852
7853 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
7854 (add_dyn_prop): Remove. Update all users to use
7855 type::add_dyn_prop.
7856 * gdbtypes.c (add_dyn_prop): Rename to...
7857 (type::add_dyn_prop): ... this.
7858
24e99c6c
SM
78592020-05-07 Simon Marchi <simon.marchi@efficios.com>
7860
7861 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
7862 (get_dyn_prop): Remove. Update all users to use
7863 type::dyn_prop.
7864 * gdbtypes.c (get_dyn_prop): Rename to...
7865 (type::dyn_prop): ... this.
7866
0d4bf016
SM
78672020-05-06 Simon Marchi <simon.marchi@efficios.com>
7868
7869 * gdbtypes.h (struct main_type) <flag_static>: Remove.
7870
ac4a4f1c
SM
78712020-05-06 Simon Marchi <simon.marchi@efficios.com>
7872
7873 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
7874 instruction, skip it if it's there.
7875
a3bbacc1
SM
78762020-05-05 Simon Marchi <simon.marchi@efficios.com>
7877
7878 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
7879
c3236f84
SM
78802020-05-04 Simon Marchi <simon.marchi@efficios.com>
7881
7882 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
7883 * gdbtypes.c (recursive_dump_type): Remove use of
7884 TYPE_INCOMPLETE.
7885
3b6acaee
TT
78862020-05-03 Tom Tromey <tom@tromey.com>
7887
7888 * breakpoint.c (catch_command, tcatch_command): Remove.
7889 (_initialize_breakpoint): Use add_basic_prefix_cmd,
7890 add_show_prefix_cmd.
7891 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
7892 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
7893 Remove.
7894 (add_internal_problem_command): Use add_basic_prefix_cmd,
7895 add_show_prefix_cmd.
7896 * mips-tdep.c (set_mipsfpu_command): Remove.
7897 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
7898 * dwarf2/index-cache.c (set_index_cache_command): Remove.
7899 (_initialize_index_cache): Use add_basic_prefix_cmd.
7900 * memattr.c (dummy_cmd): Remove.
7901 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
7902 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
7903 (_initialize_tui_win): Use add_basic_prefix_cmd,
7904 add_show_prefix_cmd.
7905 * cli/cli-logging.c (set_logging_command): Remove.
7906 (_initialize_cli_logging): Use add_basic_prefix_cmd,
7907 add_show_prefix_cmd.
7908 (show_logging_command): Remove.
7909 * target.c (target_command): Remove.
7910 (add_target): Use add_basic_prefix_cmd.
7911
a51119cd
HD
79122020-05-02 Hannes Domani <ssbssa@yahoo.de>
7913
7914 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
7915
652fc23a 79162020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 7917
652fc23a
PW
7918 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
7919 info_command.
7920
117539e6
KR
79212020-04-30 Kamil Rytarowski <n54@gmx.com>
7922
7923 * nbsd-nat.c (nbsd_enable_proc_events)
7924 (nbsd_nat_target::post_startup_inferior): Add.
7925 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
7926 (nbsd_nat_target::update_thread_list): Rewrite.
7927 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
7928 "PTRACE_LWP_CREATE".
7929 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
7930
102e38eb 79312020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 7932
102e38eb
PW
7933 * stack.c (_initialize_stack): Remove duplicated creation
7934 of "frame" command and "f" alias.
7935
ee9d1e5f
HD
79362020-04-30 Hannes Domani <ssbssa@yahoo.de>
7937
7938 PR gdb/18706
7939 * gdbtypes.c (check_typedef): Calculate size of array of
7940 stubbed type.
7941
627c7fb8
HD
79422020-04-30 Hannes Domani <ssbssa@yahoo.de>
7943
7944 PR gdb/15559
7945 * i386-tdep.c (i386_push_dummy_call): Call
7946 i386_thiscall_push_dummy_call.
7947 (i386_thiscall_push_dummy_call): New function.
7948 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
7949 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
7950 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
7951
ffc2844e
SM
79522020-04-29 Simon Marchi <simon.marchi@efficios.com>
7953
7954 * gdbarch.sh (do_read): Add shellcheck disable directive for
7955 warning SC2162.
7956
1207375d
SM
79572020-04-29 Simon Marchi <simon.marchi@efficios.com>
7958
7959 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
7960 "referenced but not assigned" warning.
7961
9fdb2916
SM
79622020-04-29 Simon Marchi <simon.marchi@efficios.com>
7963
7964 * gdbarch.sh: Remove code that sets fallbackdefault.
7965
759cea5e
SM
79662020-04-29 Simon Marchi <simon.marchi@efficios.com>
7967
7968 * gdbarch.sh: Use shell operators && and || instead of
7969 -a and -o.
7970
cb02ab24
SM
79712020-04-29 Simon Marchi <simon.marchi@efficios.com>
7972
7973 * gdbarch.sh: Use $(...) instead of `...`.
7974
a6fc5ffc
SM
79752020-04-29 Simon Marchi <simon.marchi@efficios.com>
7976
7977 * gdbarch.sh: Use double quotes around variables.
7978
8d113d13
SM
79792020-04-29 Simon Marchi <simon.marchi@efficios.com>
7980
7981 * gdbarch.sh: Use %s with printf, instead of variables in the
7982 format string.
7983
ed6acedd
TT
79842020-04-29 Tom Tromey <tromey@adacore.com>
7985
7986 PR ada/25875:
7987 * dwarf2/read.c (update_enumeration_type_from_children): Compute
7988 type fields here.
7989 (read_enumeration_type): Call
7990 update_enumeration_type_from_children later. Update comments.
7991 (process_enumeration_scope): Don't create type fields.
7992
b68b1b58
KR
79932020-04-29 Kamil Rytarowski <n54@gmx.com>
7994
7995 * nbsd-tdep.c: Include "xml-syscall.h".
7996 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
7997
f94b2e03
KR
79982020-04-29 Kamil Rytarowski <n54@gmx.com>
7999
8000 * nbsd-nat.c: Include "sys/wait.h".
8001 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
8002 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
8003 (nbsd_nat_target::remove_exec_catchpoint)
8004 (nbsd_nat_target::set_syscall_catchpoint): Add.
8005 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
8006 (nbsd_nat_target::insert_exec_catchpoint)
8007 (nbsd_nat_target::remove_exec_catchpoint)
8008 (nbsd_nat_target::set_syscall_catchpoint): Add.
8009 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
8010 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
8011 `nbsd_get_syscall_number'.
8012
fc49bc72
TT
80132020-04-29 Tom Tromey <tom@tromey.com>
8014
8015 * stack.c (print_block_frame_labels): Remove.
8016
d642b692
HD
80172020-04-29 Hannes Domani <ssbssa@yahoo.de>
8018
8019 PR gdb/17320
8020 * ada-valprint.c (val_print_packed_array_elements): Move array
8021 end bracket to new line.
8022 (ada_val_print_string): Remove extra spaces before first array
8023 element.
8024 * c-valprint.c (c_value_print_array): Likewise.
8025 * m2-valprint.c (m2_print_array_contents): Likewise.
8026 (m2_value_print_inner): Likewise.
8027 * p-valprint.c (pascal_value_print_inner): Likewise.
8028 * valprint.c (generic_val_print_array): Likewise.
8029 (value_print_array_elements): Move first array element and array
8030 end bracket to new line.
8031
ea90f227
TV
80322020-04-29 Tom de Vries <tdevries@suse.de>
8033
8034 PR symtab/25889
8035 * linespec.c (find_method): Fix ix calculation.
8036
4498ef4f
KR
80372020-04-28 Kamil Rytarowski <n54@gmx.com>
8038
8039 * syscalls/update-netbsd.sh: New file.
8040 * syscalls/netbsd.xml: Regenerate.
8041 * data-directory/Makefile.in: Register `netbsd.xml' in
8042 `SYSCALLS_FILES'.
8043
a55e30b5
SM
80442020-04-28 Simon Marchi <simon.marchi@efficios.com>
8045
8046 * syscalls/update-freebsd.sh: Add double quotes.
8047
2b2fbab8
TT
80482020-04-28 Tom Tromey <tom@tromey.com>
8049
8050 * NEWS: Update.
8051 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
8052 (cmdpy_init): Allow class_tui.
8053
a65189c9
TV
80542020-04-28 Mark Williams <mark@myosotissp.com>
8055
8056 PR gdb/24480
8057 * dwarf2read.c: Add missing assingments to list_in_scope when
8058 start_symtab was already called.
8059
1b95cdb7
SM
80602020-04-28 Simon Marchi <simon.marchi@efficios.com>
8061
8062 PR gdb/25881
8063 * dwarf2/read.c (offset_map_type): Use
8064 gdb:hash_enum<sect_offset> as hash function.
8065
15cd93d0
TV
80662020-04-28 Tom de Vries <tdevries@suse.de>
8067
8068 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
8069 with DW_AT_signature.
8070
1eb39914
SM
80712020-04-27 Simon Marchi <simon.marchi@efficios.com>
8072
8073 * configure.ac: Remove check for fs_base/gs_base in
8074 user_regs_struct.
8075 * configure: Re-generate.
8076 * config.in: Re-generate.
8077 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
8078 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
8079 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
8080
991a3e2e
LM
80812020-04-27 Luis Machado <luis.machado@linaro.org>
8082
8083 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
8084 problematic inline frame unwinding situation.
8085 * frame.c (frame_id_computed_p): New function.
8086 * frame.h (frame_id_computed_p): New prototype.
8087
361ba0e8
TT
80882020-04-26 Tom Tromey <tom@tromey.com>
8089
8090 * command.h (enum command_class) <class_pseudo>: Remove.
8091
bc3609fd
PW
80922020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8093
8094 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
8095 and whitespace.
8096
b9771db7
KR
80972020-04-25 Kamil Rytarowski <n54@gmx.com>
8098
ec16513e
SM
8099 * inf-ptrace.c (inf_ptrace_target::wait): Remove
8100 `PT_GET_PROCESS_STATE' block.
b9771db7 8101
7151c1af
TT
81022020-04-24 Tom Tromey <tom@tromey.com>
8103
8104 * symtab.h (symbol_get_demangled_name): Don't declare.
8105 * symtab.c (symbol_get_demangled_name): Remove.
8106 (general_symbol_info::natural_name)
8107 (general_symbol_info::demangled_name): Update.
8108
906bb4c5
TT
81092020-04-24 Tom Tromey <tom@tromey.com>
8110
8111 PR rust/25025:
8112 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
8113
bcfe6157
TT
81142020-04-24 Tom Tromey <tom@tromey.com>
8115
8116 PR symtab/12707:
8117 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
8118 exists.
8119 (new_symbol): Likewise.
8120 * compile/compile-object-load.c (get_out_value_type): Use
8121 symbol_matches_search_name.
8122
f049a313
TT
81232020-04-24 Tom Tromey <tom@tromey.com>
8124
8125 * dwarf2/read.c (add_partial_symbol): Do not call
8126 compute_and_set_names.
8127
76e288d1
TT
81282020-04-24 Tom Tromey <tom@tromey.com>
8129
8130 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
8131 overload.
8132
2467f4f6
TT
81332020-04-24 Tom Tromey <tom@tromey.com>
8134
8135 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
8136 (add_psymbol_to_list): New overload. Make old overload call new
8137 one.
8138 * psympriv.h (add_psymbol_to_list): New overload.
8139
e61108c9
TT
81402020-04-24 Tom Tromey <tom@tromey.com>
8141
8142 * dwarf2/read.c (partial_die_info::read) <case
8143 DW_AT_linkage_name>: Use value_as_string.
8144 (dwarf2_string_attr): Use value_as_string.
8145 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
8146 method.
8147 * dwarf2/attribute.c (attribute::value_as_string): New method.
8148
8c87a452
TT
81492020-04-24 Tom Tromey <tom@tromey.com>
8150
8151 * symtab.c (general_symbol_info::natural_name)
8152 (general_symbol_info::demangled_name): Check for language_rust.
8153
787de330
TT
81542020-04-24 Tom Tromey <tom@tromey.com>
8155
8156 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
8157 (dwarf2_physname): ... from here.
8158 (partial_die_info::read): Add Rust "{" hack.
8159
ff985671
TT
81602020-04-24 Tom Tromey <tom@tromey.com>
8161
8162 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
8163 method.
8164 (symbol_set_demangled_name): Don't declare.
8165 * symtab.c (general_symbol_info::set_demangled_name): Rename from
8166 symbol_set_demangled_name.
8167 (general_symbol_info::set_language)
8168 (general_symbol_info::compute_and_set_names): Update.
8169 * minsyms.c (minimal_symbol_reader::install): Update.
8170 * dwarf2/read.c (new_symbol): Update.
8171
1acda803
TT
81722020-04-24 Tom Tromey <tromey@adacore.com>
8173
8174 PR python/23662:
8175 * python/py-type.c (convert_field): Handle
8176 FIELD_LOC_KIND_DWARF_BLOCK.
8177 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
8178 (typy_get_dynamic): Nw function.
8179 (type_object_getset): Add "dynamic".
8180 * NEWS: Add entry.
8181
d656f129
TT
81822020-04-24 Tom Tromey <tromey@adacore.com>
8183
8184 * ada-typeprint.c (print_choices, print_variant_part)
8185 (print_record_field_types_dynamic): New functions.
8186 (print_record_field_types): Use print_record_field_types_dynamic.
8187
7d79de9a
TT
81882020-04-24 Tom Tromey <tromey@adacore.com>
8189
8190 * dwarf2/read.c (handle_data_member_location): New overload.
8191 (dwarf2_add_field): Use it.
8192 (decode_locdesc): Add "computed" parameter. Update comment.
8193 * gdbtypes.c (is_dynamic_type_internal): Also look for
8194 FIELD_LOC_KIND_DWARF_BLOCK.
8195 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
8196 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
8197 virtual base classes.
8198 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
8199 FIELD_LOC_KIND_DWARF_BLOCK.
8200
f8e89861
TT
82012020-04-24 Tom Tromey <tromey@adacore.com>
8202
8203 * dwarf2/read.c (read_structure_type): Handle dynamic length.
8204 * gdbtypes.c (is_dynamic_type_internal): Check
8205 TYPE_HAS_DYNAMIC_LENGTH.
8206 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
8207 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
8208 New macros.
8209 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
8210 constant.
8211
9c6a1327
TT
82122020-04-24 Tom Tromey <tromey@adacore.com>
8213
8214 * dwarf2/read.c (struct variant_field): Rewrite.
8215 (struct variant_part_builder): New.
8216 (struct nextfield): Remove "variant" field. Add "offset".
8217 (struct field_info): Add "current_variant_part" and
8218 "variant_parts".
8219 (alloc_discriminant_info): Remove.
8220 (alloc_rust_variant): New function.
8221 (quirk_rust_enum): Update.
8222 (dwarf2_add_field): Set "offset" member. Don't handle
8223 DW_TAG_variant_part.
8224 (offset_map_type): New typedef.
8225 (convert_variant_range, create_one_variant)
8226 (create_one_variant_part, create_variant_parts)
8227 (add_variant_property): New functions.
8228 (dwarf2_attach_fields_to_type): Call add_variant_property.
8229 (read_structure_type): Don't handle DW_TAG_variant_part.
8230 (handle_variant_part, handle_variant): New functions.
8231 (handle_struct_member_die): Use them.
8232 (process_structure_scope): Don't handle variant parts.
8233 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
8234 (struct discriminant_info): Remove.
8235 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
8236 (struct main_type) <flag_discriminated_union>: Remove.
8237 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
8238 (rust_enum_variant): Return int. Remove "contents". Rewrite.
8239 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
8240 Update.
8241 * valops.c (value_union_variant): Remove.
8242 * value.h (value_union_variant): Don't declare.
8243
b249d2c2
TT
82442020-04-24 Tom Tromey <tromey@adacore.com>
8245
8246 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
8247 (ada_value_primitive_packed_val): Update.
8248 * ada-valprint.c (ada_value_print_1): Update.
8249 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
8250 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
8251 just an address. Use evaluate_for_locexpr_baton.
8252 (dwarf2_evaluate_property): Update.
8253 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
8254 array_view.
8255 * findvar.c (default_read_var_value): Update.
8256 * gdbtypes.c (compute_variant_fields_inner)
8257 (resolve_dynamic_type_internal): Update.
8258 (resolve_dynamic_type): Change type of valaddr parameter.
8259 * gdbtypes.h (resolve_dynamic_type): Update.
8260 * valarith.c (value_subscripted_rvalue): Update.
8261 * value.c (value_from_contents_and_address): Update.
8262
61122aa9
TT
82632020-04-24 Tom Tromey <tromey@adacore.com>
8264
8265 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
8266 "push_initial_value" parameter.
8267 (dwarf2_evaluate_property): Likewise.
8268 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
8269
ef83a141
TT
82702020-04-24 Tom Tromey <tromey@adacore.com>
8271
8272 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
8273 (variant::matches, compute_variant_fields_recurse)
8274 (compute_variant_fields_inner, compute_variant_fields): New
8275 functions.
8276 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
8277 Use resolved_type after type is made.
8278 (operator==): Add new cases.
8279 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
8280 (struct discriminant_range, struct variant, struct variant_part):
8281 New.
8282 (union dynamic_prop_data) <variant_parts, original_type>: New
8283 members.
8284 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
8285 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
8286 constants.
8287 * value.c (unpack_bits_as_long): Now public.
8288 * value.h (unpack_bits_as_long): Declare.
8289
675127ec
TT
82902020-04-24 Tom Tromey <tromey@adacore.com>
8291
8292 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
8293 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
8294
9852ceef
HD
82952020-04-24 Hannes Domani <ssbssa@yahoo.de>
8296
8297 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
8298
7632c6ce
KR
82992020-04-24 Kamil Rytarowski <n54@gmx.com>
8300
8301 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
8302 (remove_fork_catchpoint, post_startup_inferior)
8303 (post_attach): Move...
8304 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
8305 (remove_fork_catchpoint, post_startup_inferior)
8306 (post_attach): ...here.
8307 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
8308 (remove_fork_catchpoint, post_startup_inferior)
8309 (post_attach): Move...
8310 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
8311 (remove_fork_catchpoint, post_startup_inferior)
8312 (post_attach): ...here.
8313
7be2bb4f
TT
83142020-04-24 Tom Tromey <tromey@adacore.com>
8315
8316 * nat/windows-nat.h (struct windows_thread_info)
8317 <pc_adjusted>: New member.
8318 * windows-nat.c (windows_fetch_one_register): Check
8319 pc_adjusted.
8320 (windows_nat_target::get_windows_debug_event)
8321 (windows_nat_target::wait): Set pc_adjusted.
8322
f80cb3b4
TV
83232020-04-24 Tom de Vries <tdevries@suse.de>
8324
8325 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
8326 Run gdb-add-index inside temp dir.
8327
29514b87
TT
83282020-04-23 Tom Tromey <tromey@adacore.com>
8329
8330 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
8331 in loop.
8332
5939967b
LM
83332020-04-23 Luis Machado <luis.machado@linaro.org>
8334
8335 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
8336 get_frame_register instead of gdbarch_unwind_pc.
8337
70bc38f5
TV
83382020-04-23 Tom de Vries <tdevries@suse.de>
8339
8340 * symtab.c (lookup_global_symbol): Prefer def over decl.
8341
de82891c
TV
83422020-04-23 Tom de Vries <tdevries@suse.de>
8343
8344 PR symtab/25807
8345 * block.c (best_symbol, better_symbol): Promote to external.
8346 * block.h (best_symbol, better_symbol): Declare.
8347 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
8348 decl.
8349
ecc6c606
TT
83502020-04-23 Tom Tromey <tromey@adacore.com>
8351
8352 PR ada/25837:
8353 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
8354 "const char *", not a "const std::string &".
8355 <name_and_matcher::operator==>: Update.
8356 * unittests/lookup_name_info-selftests.c: Change type of
8357 "result".
8358
740480b8
TT
83592020-04-23 Tom Tromey <tom@tromey.com>
8360
8361 * inferior.h (iterate_over_inferiors): Don't declare.
8362 * inferior.c (iterate_over_inferiors): Remove.
8363 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
8364 Remove.
8365 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
8366 use iterate_over_inferiors.
8367 (darwin_resume_inferior_it)
8368 (struct resume_inferior_threads_param)
8369 (darwin_resume_inferior_threads_it): Remove.
8370 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
8371
ae3ab1f0
TV
83722020-04-23 Tom de Vries <tdevries@suse.de>
8373
8374 * blockframe.c (find_pc_partial_function): Use
8375 find_pc_sect_compunit_symtab rather than
8376 objfile->sf->qf->find_pc_sect_compunit_symtab.
8377
317d2668
TV
83782020-04-22 Tom de Vries <tdevries@suse.de>
8379
8380 PR symtab/25764
8381 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
8382 in psymtabs.
8383
eea9e357
TV
83842020-04-22 Tom de Vries <tdevries@suse.de>
8385
8386 PR symtab/25801
8387 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
8388 symtabs.
8389
3d5afab3
TV
83902020-04-22 Tom de Vries <tdevries@suse.de>
8391
8392 PR symtab/25700
8393 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
8394 CU if already created.
8395
d43b7a2d
TBA
83962020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8397
8398 * infrun.c (displaced_step_fixup): Switch to the event_thread
8399 before calling displaced_step_restore, not after.
8400
d89edf9b
MM
84012020-04-21 Markus Metzger <markus.t.metzger@intel.com>
8402
8403 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
8404 its inferior is not recorded by us.
8405 (record_btrace_target_open): Replace call to
8406 all_non_exited_threads () with call to current_inferior
8407 ()->non_exited_threads ().
8408 (record_btrace_target::stop_recording): Likewise.
8409 (record_btrace_target::close): Likewise.
8410 (record_btrace_target::wait): Likewise.
8411 (record_btrace_target::record_stop_replaying): Likewise.
8412
5897fd49
MM
84132020-04-21 Markus Metzger <markus.t.metzger@intel.com>
8414
8415 * btrace.c (btrace_enable): Throw an error on double enables and
8416 when enabling recording fails.
8417 (btrace_disable): Throw an error if the thread is not recorded.
8418
1a476b6d
MM
84192020-04-21 Markus Metzger <markus.t.metzger@intel.com>
8420
8421 * record-btrace.c (record_btrace_target::fetch_registers): Forward
8422 request if we do not have a thread_info.
8423
4778a5f8
TV
84242020-04-21 Tom de Vries <tdevries@suse.de>
8425
8426 PR gdb/25471
8427 * thread.c
8428 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
8429 exception in get_frame_id.
8430
0fa7617d
TT
84312020-04-20 Tom Tromey <tromey@adacore.com>
8432
8433 * python/python.c (struct gdbpy_event): Mark move constructor as
8434 noexcept.
8435 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
8436 constructor as noexcept.
8437 * completer.h (struct completion_result): Mark move constructor as
8438 noexcept.
8439 * completer.c (completion_result::completion_result): Use
8440 initialization style. Don't call reset_match_list.
8441
ad23bda0
MS
84422020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
8443
8444 * MAINTAINERS (Write After Approval): Add myself.
8445
45e1f031
TT
84462020-04-18 Tom Tromey <tom@tromey.com>
8447
8448 * windows-tdep.c (init_w32_command_list)
8449 (w32_prefix_command_valid): Restore.
8450 (_initialize_windows_tdep): Call init_w32_command_list.
8451
08feed99
TT
84522020-04-18 Tom Tromey <tom@tromey.com>
8453
8454 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
8455 * value.c (value_fn_field): Update.
8456 * valops.c (find_function_in_inferior)
8457 (value_allocate_space_in_inferior): Update.
8458 * tui/tui-winsource.c (tui_update_source_windows_with_line):
8459 Update.
8460 * tui/tui-source.c (tui_source_window::set_contents): Update.
8461 * symtab.c (lookup_global_or_static_symbol)
8462 (find_function_start_sal_1, skip_prologue_sal)
8463 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
8464 * symmisc.c (dump_msymbols, dump_symtab_1)
8465 (maintenance_print_one_line_table): Update.
8466 * symfile.c (init_entry_point_info, section_is_mapped)
8467 (list_overlays_command, simple_read_overlay_table)
8468 (simple_overlay_update_1): Update.
8469 * stap-probe.c (handle_stap_probe): Update.
8470 * stabsread.c (dbx_init_float_type, define_symbol)
8471 (read_one_struct_field, read_enum_type, read_range_type): Update.
8472 * source.c (info_line_command): Update.
8473 * python/python.c (gdbpy_source_objfile_script)
8474 (gdbpy_execute_objfile_script): Update.
8475 * python/py-type.c (save_objfile_types): Update.
8476 * python/py-objfile.c (py_free_objfile): Update.
8477 * python/py-inferior.c (python_new_objfile): Update.
8478 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
8479 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
8480 (maintenance_check_psymtabs): Update.
8481 * printcmd.c (info_address_command): Update.
8482 * objfiles.h (struct objfile) <arch>: New method, from
8483 get_objfile_arch.
8484 (get_objfile_arch): Don't declare.
8485 * objfiles.c (get_objfile_arch): Remove.
8486 (filter_overlapping_sections): Update.
8487 * minsyms.c (msymbol_is_function): Update.
8488 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
8489 (output_nondebug_symbol): Update.
8490 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
8491 (mdebug_expand_psymtab): Update.
8492 * machoread.c (macho_add_oso_symfile): Update.
8493 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
8494 Update.
8495 * linux-fork.c (checkpoint_command): Update.
8496 * linespec.c (convert_linespec_to_sals): Update.
8497 * jit.c (finalize_symtab): Update.
8498 * infrun.c (insert_exception_resume_from_probe): Update.
8499 * ia64-tdep.c (ia64_find_unwind_table): Update.
8500 * hppa-tdep.c (internalize_unwinds): Update.
8501 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
8502 Update.
8503 * gcore.c (call_target_sbrk): Update.
8504 * elfread.c (record_minimal_symbol, elf_symtab_read)
8505 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
8506 (elf_gnu_ifunc_resolve_by_got): Update.
8507 * dwarf2/read.c (create_addrmap_from_index)
8508 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
8509 (read_debug_names_from_section)
8510 (process_psymtab_comp_unit_reader, add_partial_symbol)
8511 (add_partial_subprogram, process_full_comp_unit)
8512 (read_file_scope, read_func_scope, read_lexical_block_scope)
8513 (read_call_site_scope, dwarf2_ranges_read)
8514 (dwarf2_record_block_ranges, dwarf2_add_field)
8515 (mark_common_block_symbol_computed, read_tag_pointer_type)
8516 (read_tag_string_type, dwarf2_init_float_type)
8517 (dwarf2_init_complex_target_type, read_base_type)
8518 (partial_die_info::read, partial_die_info::read)
8519 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
8520 (dwarf2_fetch_die_loc_sect_off): Update.
8521 * dwarf2/loc.c (dwarf2_find_location_expression)
8522 (class dwarf_evaluate_loc_desc, rw_pieced_value)
8523 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
8524 (dwarf2_loc_desc_get_symbol_read_needs)
8525 (locexpr_describe_location_piece, locexpr_describe_location_1)
8526 (loclist_describe_location): Update.
8527 * dwarf2/index-write.c (write_debug_names): Update.
8528 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
8529 * dtrace-probe.c (dtrace_process_dof): Update.
8530 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
8531 (process_one_symbol): Update.
8532 * ctfread.c (ctf_init_float_type, read_base_type): Update.
8533 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
8534 (coff_read_enum_type): Update.
8535 * cli/cli-cmds.c (edit_command, list_command): Update.
8536 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
8537 * breakpoint.c (create_overlay_event_breakpoint)
8538 (create_longjmp_master_breakpoint)
8539 (create_std_terminate_master_breakpoint)
8540 (create_exception_master_breakpoint, get_sal_arch): Update.
8541 * block.c (block_gdbarch): Update.
8542 * annotate.c (annotate_source_line): Update.
8543
0743fc83
TT
85442020-04-17 Tom Tromey <tromey@adacore.com>
8545
8546 * auto-load.c (show_auto_load_cmd): Remove.
8547 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
8548 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
8549 (maintenance_print_arc_command): Remove.
8550 * tui/tui-win.c (tui_command): Remove.
8551 (tui_get_cmd_list): Use add_basic_prefix_cmd.
8552 * tui/tui-layout.c (tui_layout_command): Remove.
8553 (_initialize_tui_layout): Use add_basic_prefix_cmd.
8554 * python/python.c (user_set_python, user_show_python): Remove.
8555 (_initialize_python): Use add_basic_prefix_cmd,
8556 add_show_prefix_cmd.
8557 * guile/guile.c (set_guile_command, show_guile_command): Remove.
8558 (install_gdb_commands): Use add_basic_prefix_cmd,
8559 add_show_prefix_cmd.
8560 (info_guile_command): Remove.
8561 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
8562 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
8563 add_show_prefix_cmd.
8564 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
8565 Remove do_set and do_show parameters.
8566 * cli/cli-style.c (set_style, show_style): Remove.
8567 (_initialize_cli_style): Use add_basic_prefix_cmd,
8568 add_show_prefix_cmd.
8569 (cli_style_option::add_setshow_commands): Remove do_set and
8570 do_show parameters.
8571 (cli_style_option::add_setshow_commands): Use
8572 add_basic_prefix_cmd, add_show_prefix_cmd.
8573 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
8574 (set_style_name): Remove.
8575 * cli/cli-dump.c (dump_command, append_command): Remove.
8576 (srec_dump_command, ihex_dump_command, verilog_dump_command)
8577 (tekhex_dump_command, binary_dump_command)
8578 (binary_append_command): Remove.
8579 (_initialize_cli_dump): Use add_basic_prefix_cmd.
8580 * windows-tdep.c (w32_prefix_command_valid): Remove global.
8581 (init_w32_command_list): Remove; move into ...
8582 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
8583 * valprint.c (set_print, show_print, set_print_raw)
8584 (show_print_raw): Remove.
8585 (_initialize_valprint): Use add_basic_prefix_cmd,
8586 add_show_prefix_cmd.
8587 * typeprint.c (set_print_type, show_print_type): Remove.
8588 (_initialize_typeprint): Use add_basic_prefix_cmd,
8589 add_show_prefix_cmd.
8590 * record.c (set_record_command, show_record_command): Remove.
8591 (_initialize_record): Use add_basic_prefix_cmd,
8592 add_show_prefix_cmd.
8593 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
8594 add_show_prefix_cmd.
8595 (info_command, show_command, set_debug, show_debug): Remove.
8596 * top.h (set_history, show_history): Don't declare.
8597 * top.c (set_history, show_history): Remove.
8598 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
8599 (unset_tdesc_cmd): Remove.
8600 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
8601 add_show_prefix_cmd.
8602 * symtab.c (info_module_command): Remove.
8603 (_initialize_symtab): Use add_basic_prefix_cmd.
8604 * symfile.c (overlay_command): Remove.
8605 (_initialize_symfile): Use add_basic_prefix_cmd.
8606 * sparc64-tdep.c (info_adi_command): Remove.
8607 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
8608 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
8609 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
8610 add_show_prefix_cmd.
8611 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
8612 (_initialize_serial): Use add_basic_prefix_cmd,
8613 add_show_prefix_cmd.
8614 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
8615 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
8616 add_show_prefix_cmd.
8617 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
8618 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
8619 add_show_prefix_cmd.
8620 * riscv-tdep.c (show_riscv_command, set_riscv_command)
8621 (show_debug_riscv_command, set_debug_riscv_command): Remove.
8622 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
8623 add_show_prefix_cmd.
8624 * remote.c (remote_command, set_remote_cmd): Remove.
8625 (_initialize_remote): Use add_basic_prefix_cmd.
8626 * record-full.c (set_record_full_command)
8627 (show_record_full_command): Remove.
8628 (_initialize_record_full): Use add_basic_prefix_cmd,
8629 add_show_prefix_cmd.
8630 * record-btrace.c (cmd_set_record_btrace)
8631 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
8632 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
8633 (cmd_show_record_btrace_pt): Remove.
8634 (_initialize_record_btrace): Use add_basic_prefix_cmd,
8635 add_show_prefix_cmd.
8636 * ravenscar-thread.c (set_ravenscar_command)
8637 (show_ravenscar_command): Remove.
8638 (_initialize_ravenscar): Use add_basic_prefix_cmd,
8639 add_show_prefix_cmd.
8640 * mips-tdep.c (show_mips_command, set_mips_command)
8641 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
8642 add_show_prefix_cmd.
8643 * maint.c (maintenance_command, maintenance_info_command)
8644 (maintenance_check_command, maintenance_print_command)
8645 (maintenance_set_cmd, maintenance_show_cmd): Remove.
8646 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
8647 add_show_prefix_cmd.
8648 (show_per_command_cmd): Remove.
8649 * maint-test-settings.c (maintenance_set_test_settings_cmd):
8650 Remove.
8651 (maintenance_show_test_settings_cmd): Remove.
8652 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
8653 add_show_prefix_cmd.
8654 * maint-test-options.c (maintenance_test_options_command):
8655 Remove.
8656 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
8657 * macrocmd.c (macro_command): Remove
8658 (_initialize_macrocmd): Use add_basic_prefix_cmd.
8659 * language.c (set_check, show_check): Remove.
8660 (_initialize_language): Use add_basic_prefix_cmd,
8661 add_show_prefix_cmd.
8662 * infcmd.c (unset_command): Remove.
8663 (_initialize_infcmd): Use add_basic_prefix_cmd.
8664 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
8665 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
8666 add_show_prefix_cmd.
8667 * go32-nat.c (go32_info_dos_command): Remove.
8668 (_initialize_go32_nat): Use add_basic_prefix_cmd.
8669 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
8670 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
8671 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
8672 (_initialize_frame): Use add_basic_prefix_cmd,
8673 add_show_prefix_cmd.
8674 * dcache.c (set_dcache_command, show_dcache_command): Remove.
8675 (_initialize_dcache): Use add_basic_prefix_cmd,
8676 add_show_prefix_cmd.
8677 * cp-support.c (maint_cplus_command): Remove.
8678 (_initialize_cp_support): Use add_basic_prefix_cmd.
8679 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
8680 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
8681 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
8682 add_basic_prefix_cmd, add_show_prefix_cmd.
8683 * breakpoint.c (save_command): Remove.
8684 (_initialize_breakpoint): Use add_basic_prefix_cmd.
8685 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
8686 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
8687 add_show_prefix_cmd.
8688 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
8689 (set_ada_command, show_ada_command): Remove.
8690 (_initialize_ada_language): Use add_basic_prefix_cmd,
8691 add_show_prefix_cmd.
8692 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
8693
3557f442
KR
86942020-04-16 Kamil Rytarowski <n54@gmx.com>
8695
8696 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
8697 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
8698
16197208
SM
86992020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
8700
8701 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
8702 warning messages.
8703
00ac85d3
SM
87042020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
8705
8706 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
8707 import table is not at beginning of .idata section.
8708
381ce63f
PA
87092020-04-16 Pedro Alves <palves@redhat.com>
8710
8711 * inferior.c (delete_inferior): Use delete operator directly
8712 instead of delete_program_space.
8713 * progspace.c (add_program_space): New, factored out from
8714 program_space::program_space.
8715 (remove_program_space): New, factored out from
8716 delete_program_space.
8717 (program_space::program_space): Remove intro comment. Rewrite.
8718 (program_space::~program_space): Remove intro comment. Call
8719 remove_program_space.
8720 (delete_program_space): Delete.
8721 * progspace.h (program_space::program_space): Make explicit. Move
8722 intro comment here, adjusted.
8723 (program_space::~program_space): Move intro comment here,
8724 adjusted.
8725 (delete_program_space): Remove.
8726
a010605f
TT
87272020-04-16 Tom Tromey <tromey@adacore.com>
8728
8729 * windows-nat.c (windows_nat::handle_access_violation): New
8730 function.
8731 * nat/windows-nat.h (handle_access_violation): Declare.
8732 * nat/windows-nat.c (handle_exception): Move Cygwin code to
8733 windows-nat.c. Call handle_access_violation.
8734
efba5c23
TV
87352020-04-16 Tom de Vries <tdevries@suse.de>
8736
8737 PR symtab/25791
8738 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
8739 CUs without psymtab.
8740
97ed802d
KB
87412020-04-16 Kevin Buettner <kevinb@redhat.com>
8742
8743 * python/python.c (do_start_initialization): Don't call
8744 PyEval_InitThreads for Python 3.9 and beyond.
8745
c7d64809
KR
87462020-04-15 Kamil Rytarowski <n54@gmx.com>
8747
8748 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
8749 thread functions.
8750 (obsd_nat_target::wait): Likewise.
8751
ce127a96
TT
87522020-04-15 Tom Tromey <tromey@adacore.com>
8753
8754 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
8755 (DEBUG_EXCEPT): Use debug_printf.
8756
99f1bc6a
AB
87572020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
8758
8759 * completer.c (class completion_tracker::completion_hash_entry)
8760 <hash_name>: New member function.
8761 (completion_tracker::discard_completions): New callback to hash a
8762 completion_hash_entry, pass this to htab_create_alloc.
8763
a0e9b532
JT
87642016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
8765
8766 * windows-nat.c (windows_make_so): Warn rather than stopping with
8767 an error if realpath() fails.
8768
06ca5dd4
KR
87692020-04-14 Kamil Rytarowski <n54@gmx.com>
8770
8771 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
8772 (nbsd_nat_target::info_proc): Add do_status.
8773
194d088f
TV
87742020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
8775 Tom de Vries <tdevries@suse.de>
8776
8777 PR symtab/25718
8778 * psympriv.h (struct partial_symtab::read_symtab)
8779 (struct partial_symtab::expand_psymtab)
8780 (struct partial_symtab::read_dependencies): Update comments.
8781 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
8782 read_symtab for includer.
8783 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
8784 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
8785 (struct dwarf2_include_psymtab::m_readin): Remove.
8786 (struct dwarf2_include_psymtab::includer): New member function.
8787 (dwarf2_psymtab::expand_psymtab): Assert !readin.
8788
c1a66c06
TV
87892020-04-14 Tom de Vries <tdevries@suse.de>
8790
8791 PR symtab/25720
8792 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
8793 with NULL symbol_matcher and lookup_name.
8794 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
8795 and lookup_name.
8796 * dwarf2/read.c (dw2_expand_symtabs_matching)
8797 (dw2_debug_names_expand_symtabs_matching): Same.
8798 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
8799 Make lookup_name a pointer. Update comment.
8800 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
8801 lookup_name being a pointer.
8802 * symfile.c (expand_symtabs_matching): Same.
8803 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
8804 * linespec.c (iterate_over_all_matching_symtabs): Same.
8805
400b5eca
TT
88062020-04-13 Tom Tromey <tom@tromey.com>
8807
8808 * run-on-main-thread.c: Update include.
8809 * unittests/main-thread-selftests.c: Update include.
8810 * tui/tui-win.c: Update include.
8811 * tui/tui-io.c: Update include.
8812 * tui/tui-interp.c: Update include.
8813 * tui/tui-hooks.c: Update include.
8814 * top.h: Update include.
8815 * top.c: Update include.
8816 * ser-base.c: Update include.
8817 * remote.c: Update include.
8818 * remote-notif.c: Update include.
8819 * remote-fileio.c: Update include.
8820 * record-full.c: Update include.
8821 * record-btrace.c: Update include.
8822 * python/python.c: Update include.
8823 * posix-hdep.c: Update include.
8824 * mingw-hdep.c: Update include.
8825 * mi/mi-main.c: Update include.
8826 * mi/mi-interp.c: Update include.
8827 * main.c: Update include.
8828 * linux-nat.c: Update include.
8829 * interps.c: Update include.
8830 * infrun.c: Update include.
8831 * inf-loop.c: Update include.
8832 * event-top.c: Update include.
8833 * event-loop.c: Move to ../gdbsupport/.
8834 * event-loop.h: Move to ../gdbsupport/.
8835 * async-event.h: Update include.
8836 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
8837
93b54c8e
TT
88382020-04-13 Tom Tromey <tom@tromey.com>
8839
8840 * tui/tui-win.c: Include async-event.h.
8841 * remote.c: Include async-event.h.
8842 * remote-notif.c: Include async-event.h.
8843 * record-full.c: Include async-event.h.
8844 * record-btrace.c: Include async-event.h.
8845 * infrun.c: Include async-event.h.
8846 * event-top.c: Include async-event.h.
8847 * event-loop.h: Move some declarations to async-event.h.
8848 * event-loop.c: Don't include ser-event.h or top.h. Move some
8849 code to async-event.c.
8850 * async-event.h: New file.
8851 * async-event.c: New file.
8852 * Makefile.in (COMMON_SFILES): Add async-event.c.
8853 (HFILES_NO_SRCDIR): Add async-event.h.
8854
c1cd3163
TT
88552020-04-13 Tom Tromey <tom@tromey.com>
8856
8857 * utils.c (flush_streams): New function.
8858 * event-loop.c (gdb_wait_for_event): Call flush_streams.
8859
29f2bf4f
TT
88602020-04-13 Tom Tromey <tom@tromey.com>
8861
8862 * event-loop.c (handle_file_event): Use warning, not
8863 printf_unfiltered.
8864
98029d02
TT
88652020-04-13 Tom Tromey <tom@tromey.com>
8866
8867 * event-loop.c: Include <chrono>.
8868
06cc9596
TT
88692020-04-13 Tom Tromey <tom@tromey.com>
8870
8871 * gdb_select.h: Move to ../gdbsupport/.
8872 * event-loop.c: Update include path.
8873 * top.c: Update include path.
8874 * ser-base.c: Update include path.
8875 * ui-file.c: Update include path.
8876 * ser-tcp.c: Update include path.
8877 * guile/scm-ports.c: Update include path.
8878 * posix-hdep.c: Update include path.
8879 * ser-unix.c: Update include path.
8880 * gdb_usleep.c: Update include path.
8881 * mingw-hdep.c: Update include path.
8882 * inflow.c: Update include path.
8883 * infrun.c: Update include path.
8884 * event-top.c: Update include path.
8885
8ae8e197
TT
88862020-04-13 Tom Tromey <tom@tromey.com>
8887
8888 * configure: Rebuild.
8889 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
8890
58cf28e8
TT
88912020-04-13 Tom Tromey <tom@tromey.com>
8892
8893 * event-loop.h (start_event_loop): Don't declare.
8894 * event-loop.c (start_event_loop): Move...
8895 * main.c (start_event_loop): ...here. Now static.
8896
b7f999ae
SDJ
88972020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
8898
8899 * MAINTAINERS: Update my email address.
8900
1085dfd4
KR
89012020-04-12 Kamil Rytarowski <n54@gmx.com>
8902
8903 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
8904 IP_ALL.
8905
49d1d1f5
KR
89062020-04-12 Kamil Rytarowski <n54@gmx.com>
8907
8908 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 8909 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 8910
b4848d2a
KR
89112020-04-12 Kamil Rytarowski <n54@gmx.com>
8912
8913 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 8914 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 8915
51c133d5
KR
89162020-04-12 Kamil Rytarowski <n54@gmx.com>
8917
8918 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
8919
54b8cbd0
KR
89202020-04-11 Kamil Rytarowski <n54@gmx.com>
8921
8922 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
8923 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
8924 (nbsd_nat_target::info_proc): New functions.
8925 * nbsd-nat.c (kinfo_get_vmmap): New function.
8926 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
8927 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
8928 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
8929 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
8930 functions.
8931 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
8932 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
8933 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
8934 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
8935 (KINFO_VME_FLAG_GROWS_DOWN): New.
8936
cf83625d
AS
89372020-04-10 Artur Shepilko <nomadbyte@gmail.com>
8938
8939 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
8940 bit shift.
8941
0c4311ab
TT
89422020-04-10 Tom Tromey <tromey@adacore.com>
8943
8944 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
8945
3e65b3e9
TT
89462020-04-10 Tom Tromey <tromey@adacore.com>
8947
8948 * symtab.c (get_symbol_address, get_msymbol_address): Skip
8949 separate debug files.
8950
13302e95
HD
89512020-04-10 Hannes Domani <ssbssa@yahoo.de>
8952
8953 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
8954 Move to...
8955 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
8956 ... here.
8957 * windows-nat.c (windows_nat_target::get_windows_debug_event):
8958 Check for STATUS_WX86_BREAKPOINT.
8959 (windows_nat_target::wait): Same.
8960
bdfc1e8a
TV
89612020-04-10 Tom de Vries <tdevries@suse.de>
8962
8963 PR cli/25808
8964 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
8965
f4460aec
SM
89662020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
8967
8968 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
8969 (Write After Approval): Remove Tom de Vries.
8970
a25198bb
BE
89712020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
8972
8973 revert partially:
8974 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8975
aac66a4c
SM
8976 * buildsym.c (record_line): Fix undefined behavior and preserve
8977 lines at eof.
a25198bb 8978
206c98a6
KR
89792020-04-09 Kamil Rytarowski <n54@gmx.com>
8980
8981 * auxv.h (svr4_auxv_parse): New.
8982 * auxv.c (default_auxv_parse): Split into default_auxv_parse
8983 and generic_auxv_parse.
8984 (svr4_auxv_parse): Add.
8985 * obsd-tdep.c: Include "auxv.h".
8986 (obsd_auxv_parse): Remove.
8987 (obsd_init_abi): Remove comment.
8988 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
8989 from `obsd_auxv_parse' to `svr4_auxv_parse'.
8990 * nbsd-tdep.c: Include "auxv.h".
8991 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
8992
71fbdbaf
TT
89932020-04-08 Tom Tromey <tromey@adacore.com>
8994
8995 * nat/windows-nat.h (last_wait_event): Don't declare.
8996 (wait_for_debug_event): Update comment.
8997 * nat/windows-nat.c (last_wait_event): Now static.
8998
2c1d95e8
TT
89992020-04-08 Tom Tromey <tromey@adacore.com>
9000
9001 * windows-nat.c (wait_for_debug_event): Move to
9002 nat/windows-nat.c.
9003 * nat/windows-nat.h (wait_for_debug_event): Declare.
9004 * nat/windows-nat.c (wait_for_debug_event): Move from
9005 windows-nat.c. No longer static.
9006
d2977bc4
TT
90072020-04-08 Tom Tromey <tromey@adacore.com>
9008
9009 * windows-nat.c (get_windows_debug_event): Use
9010 fetch_pending_stop.
9011 * nat/windows-nat.h (fetch_pending_stop): Declare.
9012 * nat/windows-nat.c (fetch_pending_stop): New function.
9013
e758e19c
TT
90142020-04-08 Tom Tromey <tromey@adacore.com>
9015
9016 * windows-nat.c (windows_continue): Use matching_pending_stop and
9017 continue_last_debug_event.
9018 * nat/windows-nat.h (matching_pending_stop)
9019 (continue_last_debug_event): Declare.
9020 * nat/windows-nat.c (DEBUG_EVENTS): New define.
9021 (matching_pending_stop, continue_last_debug_event): New
9022 functions.
9023
8d30e395
TT
90242020-04-08 Tom Tromey <tromey@adacore.com>
9025
9026 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
9027 (handle_exception_result): Move to nat/windows-nat.h.
9028 (DEBUG_EXCEPTION_SIMPLE): Remove.
9029 (windows_nat::handle_ms_vc_exception): New function.
9030 (handle_exception): Move to nat/windows-nat.c.
9031 (get_windows_debug_event): Update.
9032 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
9033 nat/windows-nat.c.
9034 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
9035 (handle_exception_result): Move from windows-nat.c.
9036 (handle_exception): Declare.
9037 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
9038 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
9039 windows-nat.c.
9040
29de418d
TT
90412020-04-08 Tom Tromey <tromey@adacore.com>
9042
9043 * windows-nat.c (exception_count, event_count): Remove.
9044 (handle_exception, get_windows_debug_event)
9045 (do_initial_windows_stuff): Update.
9046
a816ba18
TT
90472020-04-08 Tom Tromey <tromey@adacore.com>
9048
9049 * windows-nat.c (windows_nat::handle_load_dll)
9050 (windows_nat::handle_unload_dll): Rename. No longer static.
9051 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
9052 Declare.
9053
a00caa12
TT
90542020-04-08 Tom Tromey <tromey@adacore.com>
9055
9056 * complaints.h (stop_whining): Declare at top-level.
9057 (complaint): Don't declare stop_whining.
9058
d41b524f
TT
90592020-04-08 Tom Tromey <tromey@adacore.com>
9060
9061 * windows-nat.c (windows_nat::handle_output_debug_string):
9062 Rename. No longer static.
9063 * nat/windows-nat.h (handle_output_debug_string): Declare.
9064
3c76026d
TT
90652020-04-08 Tom Tromey <tromey@adacore.com>
9066
9067 * windows-nat.c (current_process_handle, current_process_id)
9068 (main_thread_id, last_sig, current_event, last_wait_event)
9069 (current_windows_thread, desired_stop_thread_id, pending_stops)
9070 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
9071 (display_selectors, fake_create_process)
9072 (get_windows_debug_event): Update.
9073 * nat/windows-nat.h (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 from windows-nat.c.
9077 * nat/windows-nat.c (current_process_handle, current_process_id)
9078 (main_thread_id, last_sig, current_event, last_wait_event)
9079 (current_windows_thread, desired_stop_thread_id, pending_stops)
9080 (siginfo_er): New globals. Move from windows-nat.c.
9081
9d8679cc
TT
90822020-04-08 Tom Tromey <tromey@adacore.com>
9083
9084 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
9085 (handle_load_dll): Update.
9086 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
9087
28688adf
TT
90882020-04-08 Tom Tromey <tromey@adacore.com>
9089
9090 * windows-nat.c (enum thread_disposition_type): Move to
9091 nat/windows-nat.h.
9092 (windows_nat::thread_rec): Rename from thread_rec. No longer
9093 static.
9094 (windows_add_thread, windows_nat_target::fetch_registers)
9095 (windows_nat_target::store_registers, handle_exception)
9096 (windows_nat_target::resume, get_windows_debug_event)
9097 (windows_nat_target::get_tib_address)
9098 (windows_nat_target::thread_name)
9099 (windows_nat_target::thread_alive): Update.
9100 * nat/windows-nat.h (enum thread_disposition_type): Move from
9101 windows-nat.c.
9102 (thread_rec): Declare.
9103
4834dad0
TT
91042020-04-08 Tom Tromey <tromey@adacore.com>
9105
9106 * windows-nat.c: Add "using namespace".
9107 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
9108 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
9109
65bafd5b
TT
91102020-04-08 Tom Tromey <tromey@adacore.com>
9111
9112 * nat/windows-nat.h (struct windows_thread_info): Declare
9113 destructor.
9114 * nat/windows-nat.c (~windows_thread_info): New.
9115
0a4afda3
TT
91162020-04-08 Tom Tromey <tromey@adacore.com>
9117
9118 PR gdb/22992
9119 * windows-nat.c (current_event): Update comment.
9120 (last_wait_event, desired_stop_thread_id): New globals.
9121 (struct pending_stop): New.
9122 (pending_stops): New global.
9123 (windows_nat_target) <stopped_by_sw_breakpoint>
9124 <supports_stopped_by_sw_breakpoint>: New methods.
9125 (windows_fetch_one_register): Add assertions. Adjust PC.
9126 (windows_continue): Handle pending stops. Suspend other threads
9127 when stepping. Use last_wait_event
9128 (wait_for_debug_event): New function.
9129 (get_windows_debug_event): Use wait_for_debug_event. Handle
9130 pending stops. Queue spurious stops.
9131 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
9132 (windows_nat_target::kill): Use wait_for_debug_event.
9133 * nat/windows-nat.h (struct windows_thread_info)
9134 <stopped_at_software_breakpoint>: New field.
9135 * nat/windows-nat.c (windows_thread_info::resume): Clear
9136 stopped_at_software_breakpoint.
9137
8e61ebec
TT
91382020-04-08 Tom Tromey <tromey@adacore.com>
9139
9140 * windows-nat.c (enum thread_disposition_type): New.
9141 (thread_rec): Replace "get_context" parameter with "disposition";
9142 change type.
9143 (windows_add_thread, windows_nat_target::fetch_registers)
9144 (windows_nat_target::store_registers, handle_exception)
9145 (windows_nat_target::resume, get_windows_debug_event)
9146 (windows_nat_target::get_tib_address)
9147 (windows_nat_target::thread_name)
9148 (windows_nat_target::thread_alive): Update.
9149
98a03287
TT
91502020-04-08 Tom Tromey <tromey@adacore.com>
9151
9152 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
9153 (windows_continue): Use windows_continue::resume.
9154 * nat/windows-nat.h (struct windows_thread_info) <suspend,
9155 resume>: Declare new methods.
9156 * nat/windows-nat.c: New file.
9157 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
9158
7c7411bc
TT
91592020-04-08 Tom Tromey <tromey@adacore.com>
9160
9161 * windows-nat.c (windows_add_thread, windows_delete_thread)
9162 (windows_nat_target::fetch_registers)
9163 (windows_nat_target::store_registers, fake_create_process)
9164 (windows_nat_target::resume, windows_nat_target::resume)
9165 (get_windows_debug_event, windows_nat_target::wait)
9166 (windows_nat_target::pid_to_str)
9167 (windows_nat_target::get_tib_address)
9168 (windows_nat_target::get_ada_task_ptid)
9169 (windows_nat_target::thread_name)
9170 (windows_nat_target::thread_alive): Use lwp, not tid.
9171
2950fdf7
TT
91722020-04-08 Tom Tromey <tromey@adacore.com>
9173
9174 * windows-nat.c (handle_exception)
9175 (windows_nat_target::thread_name): Update.
9176 * nat/windows-nat.h (windows_thread_info): Remove destructor.
9177 <name>: Now unique_xmalloc_ptr.
9178
62fe396b
TT
91792020-04-08 Tom Tromey <tromey@adacore.com>
9180
9181 * windows-nat.c (thread_rec)
9182 (windows_nat_target::fetch_registers): Update.
9183 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
9184 Update comment.
9185 <debug_registers_changed, reload_context>: Now bool.
9186
e9534bd2
TT
91872020-04-08 Tom Tromey <tromey@adacore.com>
9188
9189 * windows-nat.c (windows_add_thread): Use new.
9190 (windows_init_thread_list, windows_delete_thread): Use delete.
9191 (get_windows_debug_event): Update.
9192 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
9193 destructor, and initializers.
9194
ae1f8880
TT
91952020-04-08 Tom Tromey <tromey@adacore.com>
9196
9197 * windows-nat.c (struct windows_thread_info): Remove.
9198 * nat/windows-nat.h: New file.
9199
55a1e039
TT
92002020-04-08 Tom Tromey <tromey@adacore.com>
9201
9202 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
9203 (thread_rec, windows_add_thread, windows_delete_thread)
9204 (windows_continue): Update.
9205
93366324
TT
92062020-04-08 Tom Tromey <tromey@adacore.com>
9207
9208 * windows-nat.c (struct windows_thread_info): Remove typedef.
9209 (thread_head): Remove.
9210 (thread_list): New global.
9211 (thread_rec, windows_add_thread, windows_init_thread_list)
9212 (windows_delete_thread, windows_continue): Update.
9213
0f2265e2
SM
92142020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
9215
9216 * windows-tdep.h (windows_init_abi): Add comment.
9217 (cygwin_init_abi): New declaration.
9218 * windows-tdep.c: Split signal enumeration in two, one for
9219 Windows and one for Cygwin.
9220 (windows_gdb_signal_to_target): Only deal with signal of the
9221 Windows OS ABI.
9222 (cygwin_gdb_signal_to_target): New function.
9223 (windows_init_abi): Rename to windows_init_abi_common, don't set
9224 gdb_signal_to_target gdbarch method. Add new new function with
9225 this name.
9226 (cygwin_init_abi): New function.
9227 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
9228 comment. Don't call windows_init_abi.
9229 (amd64_windows_init_abi): Add comment, call windows_init_abi.
9230 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
9231 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
9232 i386_windows_init_abi_common, don't call windows_init_abi. Add
9233 a new function of this name.
9234 (i386_cygwin_init_abi): New function.
9235 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
9236 OS ABI Cygwin.
9237
3810f182
SM
92382020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
9239
9240 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
9241 parameter.c.
9242 (dwarf2_read_gdb_index): Update.
9243
063f8e80
KR
92442020-04-07 Kamil Rytarowski <n54@gmx.com>
9245
9246 * nbsd-tdep.c: Include "objfiles.h".
9247 (nbsd_skip_solib_resolver): New.
9248 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
9249
85a9510c 92502020-04-07 Nitika Achra <Nitika.Achra@amd.com>
9251
9252 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
9253 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
9254 with DW_LLE_base_addressx are being emitted in DWARFv5.
9255 Add the newly added kind DW_LOC_OFFSET_PAIR also.
9256 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
9257 unsigned integer.
9258
9fc3eaae 92592020-04-07 Nitika Achra <Nitika.Achra@amd.com>
9260
9261 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
9262 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
9263 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
9264 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
9265 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
9266 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
9267 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
9268
9269
41144253 92702020-04-07 Nitika Achra <Nitika.Achra@amd.com>
9271
9272 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
9273 (read_loclist_index): New function definition.
9274 (lookup_loclist_base): New function definition.
9275 (read_loclist_header): New function definition.
9276 (dwarf2_cu): Add loclist_base and loclist_header field.
9277 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
9278 (read_full_die_1): Read the value of DW_AT_loclists_base.
9279 (read_attribute_reprocess): Handle DW_FORM_loclistx.
9280 (read_attribute_value): Handle DW_FORM_loclistx.
9281 (skip_one_die): Handle DW_FORM_loclistx.
9282 (loclist_header): New structure declaration.
9283 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
9284
9f4e76a4
SM
92852020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9286
9287 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
9288 constructor. Remove `addr` parameter from other constructor and
9289 add `per_cu` parameter.
9290 * dwarf2/read.c (create_partial_symtab): Update.
9291
25c11aca
TV
92922020-04-07 Tom de Vries <tdevries@suse.de>
9293
9294 PR symtab/25796
9295 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
9296 (partial_die_info::fixup): Inherit has_const_value.
9297
5707e24b
TV
92982020-04-07 Tom de Vries <tdevries@suse.de>
9299
9300 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
9301 symbols without address.
9302
05f00e22
KR
93032020-04-06 Kamil Rytarowski <n54@gmx.com>
9304
9305 * nbsd-nat.h (struct thread_info): Add forward declaration.
9306 (nbsd_nat_target::thread_alive): Add.
9307 (nbsd_nat_target::thread_name): Likewise.
9308 (nbsd_nat_target::update_thread_list): Likewise.
9309 (update_thread_list::post_attach): Likewise.
9310 (post_attach::pid_to_str): Likewise.
9311 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
9312 (nbsd_thread_lister): Add.
9313 (nbsd_nat_target::thread_alive): Likewise.
9314 (nbsd_nat_target::thread_name): Likewise.
9315 (nbsd_add_threads): Likewise.
9316 (update_thread_list::post_attach): Likewise.
9317 (nbsd_nat_target::update_thread_list): Likewise.
9318 (post_attach::pid_to_str): Likewise.
9319
6ee448cc
TT
93202020-04-06 Tom Tromey <tromey@adacore.com>
9321
9322 * ada-valprint.c (print_variant_part): Extract the variant field.
9323 (print_field_values): Use the field as the outer value when
9324 recursing.
9325
dea34e8c
TT
93262020-04-06 Tom Tromey <tromey@adacore.com>
9327
9328 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
9329 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
9330 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
9331 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
9332 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
9333
93689ce9
TT
93342020-04-06 Tom Tromey <tromey@adacore.com>
9335
9336 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
9337 TYPE_CODE_ERROR.
9338
79743962
KR
93392020-04-06 Kamil Rytarowski <n54@gmx.com>
9340
9341 * nbsd-tdep.c: Include "gdbarch.h".
9342 Define enum with NetBSD signal numbers.
9343 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
9344 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
9345 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
9346 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
9347 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
9348 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
9349 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
9350 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
9351 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
9352 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
9353 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
9354 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
9355
9e7c9a03
HD
93562020-04-03 Hannes Domani <ssbssa@yahoo.de>
9357
9358 PR gdb/25325
9359 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
9360
d9e49b61
TT
93612020-04-03 Tom Tromey <tromey@adacore.com>
9362
9363 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
9364 Read constant block.
9365
e0fc5c3f
SM
93662020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
9367
9368 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
9369 (gdb_bfd_get_full_section_contents): New declaration.
9370 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
9371 * windows-tdep.c (is_linked_with_cygwin_dll): Use
9372 gdb_bfd_get_full_section_contents.
9373
e2ff18a0
SM
93742020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
9375
9376 * exec.c (build_section_table): Replace internal_error with
9377 gdb_assert.
9378 (section_table_xfer_memory_partial): Likewise.
9379 * mdebugread.c (parse_partial_symbols): Likewise.
9380 * psymtab.c (lookup_partial_symbol): Likewise.
9381 * utils.c (wrap_here): Likewise.
9382
0830d301
TT
93832020-04-02 Tom Tromey <tromey@adacore.com>
9384
9385 * f-lang.c (build_fortran_types): Use arch_type to initialize
9386 builtin_complex_s32 in the TYPE_CODE_ERROR case.
9387
e7da7f8f
TT
93882020-04-02 Tom Tromey <tromey@adacore.com>
9389
9390 * dwarf2/read.c (partial_die_info::read): Do not create a vector
9391 of attributes.
9392
c90d28ac
AB
93932020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
9394 Bernd Edlinger <bernd.edlinger@hotmail.de>
9395 Tom Tromey <tromey@adacore.com>
9396
9397 * buildsym.c (buildsym_compunit::record_line): Remove
9398 deduplication code.
9399
1aa98955
TV
94002020-04-02 Tom de Vries <tdevries@suse.de>
9401
9402 PR ada/24671
9403 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
9404
d3214198
TV
94052020-04-02 Tom de Vries <tdevries@suse.de>
9406
9407 * dwarf2/read.c (dwarf2_gdb_index_functions,
9408 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
9409 NULL.
9410 * psymtab.c (psym_lookup_global_symbol_language): New function.
9411 (psym_functions): Init psym_lookup_global_symbol_language with
9412 psym_lookup_global_symbol_language.
9413 * symfile-debug.c (debug_sym_quick_functions): Init
9414 lookup_global_symbol_language with NULL.
9415 * symfile.c (set_initial_language): Remove fixme comment.
9416 * symfile.h (struct quick_symbol_functions): Add
9417 lookup_global_symbol_language.
9418 * symtab.c (find_quick_global_symbol_language): New function.
9419 (find_main_name): Use find_quick_global_symbol_language.
9420
2836752f
SM
94212020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
9422
9423 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
9424
64dc2d4b
BE
94252020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
9426
9427 * buildsym.c (record_line): Fix undefined behavior and preserve
9428 lines at eof.
9429
bbe3dc41
BE
94302020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
9431
9432 * buildsym.c (record_line): Fix the resizing condition.
9433
6b4a335b
TT
94342020-04-01 Tom Tromey <tom@tromey.com>
9435
9436 * value.h (value_literal_complex): Add comment.
9437 * valops.c (value_literal_complex): Refer to value.h.
9438
3638a098
TT
94392020-04-01 Tom Tromey <tom@tromey.com>
9440
9441 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
9442 (scalar_type): New rule, from typebase.
9443 (typebase): Use scalar_type. Recognize complex types.
9444 (field_name): Handle FLOAT_KEYWORD.
9445 (ident_tokens): Add _Complex and __complex__.
9446
c34e8714
TT
94472020-04-01 Tom Tromey <tom@tromey.com>
9448
9449 PR exp/25299:
9450 * valarith.c (promotion_type, complex_binop): New functions.
9451 (scalar_binop): Handle complex numbers. Use promotion_type.
9452 (value_pos, value_neg, value_complement): Handle complex numbers.
9453
fa649bb7
TT
94542020-04-01 Tom Tromey <tom@tromey.com>
9455
9456 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
9457 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
9458 (parse_number): Handle complex numbers.
9459
981c08ce
TT
94602020-04-01 Tom Tromey <tom@tromey.com>
9461
9462 * c-valprint.c (c_decorations): Change complex suffix to "i".
9463
4c99290d
TT
94642020-04-01 Tom Tromey <tom@tromey.com>
9465
9466 * valprint.c (generic_value_print_complex): Use accessors.
9467 * value.h (value_real_part, value_imaginary_part): Declare.
9468 * valops.c (value_real_part, value_imaginary_part): New
9469 functions.
9470 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
9471
5b930b45
TT
94722020-04-01 Tom Tromey <tom@tromey.com>
9473
9474 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
9475 (read_range_type): Update.
9476 * mdebugread.c (basic_type): Update.
9477 * go-lang.c (build_go_types): Use init_complex_type.
9478 * gdbtypes.h (struct main_type) <complex_type>: New member.
9479 (init_complex_type): Update.
9480 (arch_complex_type): Don't declare.
9481 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
9482 Make name if none given. Use alloc_type_copy. Look for cached
9483 complex type.
9484 (arch_complex_type): Remove.
9485 (gdbtypes_post_init): Use init_complex_type.
9486 * f-lang.c (build_fortran_types): Use init_complex_type.
9487 * dwarf2/read.c (read_base_type): Update.
9488 * d-lang.c (build_d_types): Use init_complex_type.
9489 * ctfread.c (read_base_type): Update.
9490
53cccef1
TBA
94912020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9492
9493 * infrun.c (stop_all_threads): Update assertion, plus when
9494 stopping threads, take into account that we might be trying
9495 to stop an all-stop target.
9496 (stop_waiting): Call 'stop_all_threads' if there exists a
9497 non-stop target.
9498
a0714d30
TBA
94992020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9500
9501 * target.h (exists_non_stop_target): New function declaration.
9502 * target.c (exists_non_stop_target): New function.
9503
60e22c1e
HD
95042020-04-01 Hannes Domani <ssbssa@yahoo.de>
9505
9506 PR gdb/24789
9507 * eval.c (is_integral_or_integral_reference): New function.
9508 (evaluate_subexp_standard): Allow integer references in
9509 pointer arithmetic.
9510
e139a727
TBA
95112020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9512
9513 * remote.c (remote_target::remote_parse_stop_reply): Remove the
9514 check for no ptid in the stop reply when the target is non-stop.
9515
e0802d59
TT
95162020-04-01 Tom Tromey <tromey@adacore.com>
9517
9518 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
9519 "name" parameter to rvalue reference. Initialize m_name_holder.
9520 <lookup_name_info>: New overloads.
9521 <name>: Return gdb::string_view.
9522 <c_str>: New method.
9523 <make_ignore_params>: Update.
9524 <search_name_hash>: Update.
9525 <language_lookup_name>: Return const char *.
9526 <m_name>: Change type.
9527 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
9528 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
9529 (lookup_name_info::match_any): Update.
9530 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
9531 Update.
9532 * minsyms.c (linkage_name_str): Update.
9533 * language.c (default_symbol_name_matcher): Update.
9534 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
9535 Update.
9536 * ada-lang.c (ada_fold_name): Change parameter to string_view.
9537 (ada_lookup_name_info::ada_lookup_name_info): Update.
9538 (literal_symbol_name_matcher): Update.
9539
8c072cb6
TT
95402020-04-01 Tom Tromey <tromey@adacore.com>
9541
9542 * psymtab.c (psymtab_search_name): Remove function.
9543 (psym_lookup_symbol): Create search name and lookup name here.
9544 (lookup_partial_symbol): Remove "name" parameter; add
9545 lookup_name.
9546 (psym_expand_symtabs_for_function): Update.
9547
6f29a534
TT
95482020-03-31 Joel Jones <joelkevinjones@gmail.com>
9549
9550 PR tui/25597:
9551 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
9552
af62665e
TT
95532020-03-31 Tom Tromey <tromey@adacore.com>
9554
9555 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
9556 memcpy.
9557
d1a89da5
NC
95582020-03-30 Nelson Chu <nelson.chu@sifive.com>
9559
9560 * features/riscv/32bit-csr.xml: Regenerated.
9561 * features/riscv/64bit-csr.xml: Regenerated.
9562
d8af9068
TT
95632020-03-30 Tom Tromey <tromey@adacore.com>
9564
9565 * ada-valprint.c (print_variant_part): Update.
9566 * ada-lang.h (ada_which_variant_applies): Update.
9567 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
9568 outer_valaddr parameters; replace with "outer" value parameter.
9569 (to_fixed_variant_branch_type): Update.
9570
227c0bf4
PFC
95712020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9572
9573 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
9574 <list>. Remove inclusion of observable.h.
9575 (PPC_DEBUG_CURRENT_VERSION): Move up define.
9576 (struct arch_lwp_info): New struct.
9577 (class ppc_linux_dreg_interface): New class.
9578 (struct ppc_linux_process_info): New struct.
9579 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
9580 <low_new_clone, low_forget_process, low_prepare_to_resume>
9581 <copy_thread_dreg_state, mark_thread_stale>
9582 <mark_debug_registers_changed, register_hw_breakpoint>
9583 <clear_hw_breakpoint, register_wp, clear_wp>
9584 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
9585 <num_memory_accesses, get_trigger_type>
9586 <create_watchpoint_request, hwdebug_point_cmp>
9587 <init_arch_lwp_info, get_arch_lwp_info>
9588 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
9589 methods.
9590 <struct ptid_hash>: New inner struct.
9591 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
9592 members.
9593 (saved_dabr_value, hwdebug_info, max_slots_number)
9594 (struct hw_break_tuple, struct thread_points, ppc_threads)
9595 (have_ptrace_hwdebug_interface)
9596 (hwdebug_find_thread_points_by_tid)
9597 (hwdebug_insert_point, hwdebug_remove_point): Remove.
9598 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
9599 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
9600 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
9601 use m_dreg_interface.
9602 (hwdebug_point_cmp): Change to...
9603 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
9604 reference arguments instead of pointers.
9605 (ppc_linux_nat_target::ranged_break_num_registers): Use
9606 m_dreg_interface.
9607 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
9608 m_dreg_interface. Call register_hw_breakpoint.
9609 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
9610 m_dreg_interface. Call clear_hw_breakpoint.
9611 (get_trigger_type): Change to...
9612 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
9613 comment.
9614 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
9615 use m_dreg_interface. Call register_hw_breakpoint.
9616 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
9617 use m_dreg_interface. Call clear_hw_breakpoint.
9618 (can_use_watchpoint_cond_accel): Change to...
9619 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
9620 method. Update comment, use m_dreg_interface and
9621 m_process_info.
9622 (calculate_dvc): Change to...
9623 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
9624 m_dreg_interface.
9625 (num_memory_accesses): Change to...
9626 (ppc_linux_nat_target::num_memory_accesses): ...this method.
9627 (check_condition): Change to...
9628 (ppc_linux_nat_target::check_condition): ...this method.
9629 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
9630 comment, use m_dreg_interface.
9631 (create_watchpoint_request): Change to...
9632 (ppc_linux_nat_target::create_watchpoint_request): ...this
9633 method. Use m_dreg_interface.
9634 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
9635 m_dreg_interface. Call register_hw_breakpoint or register_wp.
9636 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
9637 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
9638 (ppc_linux_nat_target::low_forget_process)
9639 (ppc_linux_nat_target::low_new_fork)
9640 (ppc_linux_nat_target::low_new_clone)
9641 (ppc_linux_nat_target::low_delete_thread)
9642 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
9643 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
9644 only call mark_thread_stale.
9645 (ppc_linux_thread_exit): Remove.
9646 (ppc_linux_nat_target::stopped_data_address): Change to...
9647 (ppc_linux_nat_target::low_stopped_data_address): This. Add
9648 comment, use m_dreg_interface and m_thread_hw_breakpoints.
9649 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
9650 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
9651 comment. Call low_stopped_data_address.
9652 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
9653 m_dreg_interface.
9654 (ppc_linux_nat_target::masked_watch_num_registers): Use
9655 m_dreg_interface.
9656 (ppc_linux_nat_target::copy_thread_dreg_state)
9657 (ppc_linux_nat_target::mark_thread_stale)
9658 (ppc_linux_nat_target::mark_debug_registers_changed)
9659 (ppc_linux_nat_target::register_hw_breakpoint)
9660 (ppc_linux_nat_target::clear_hw_breakpoint)
9661 (ppc_linux_nat_target::register_wp)
9662 (ppc_linux_nat_target::clear_wp)
9663 (ppc_linux_nat_target::init_arch_lwp_info)
9664 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
9665 (_initialize_ppc_linux_nat): Remove observer callback.
9666
4db10d8f
PFC
96672020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9668
9669 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
9670 (ppc_linux_nat_target::auxv_parse)
9671 (ppc_linux_nat_target::read_description)
9672 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
9673 Move up.
9674
1310c1b0
PFC
96752020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9676
9677 * linux-nat.h (low_new_clone): New method.
9678 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
9679
69b037c3
SM
96802020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9681
9682 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
9683 (dbx_expand_psymtab): ... this.
9684 (start_psymtab): Update.
9685 * mdebugread.c (psymtab_to_symtab_1): Rename to...
9686 (mdebug_expand_psymtab): ... this.
9687 (parse_partial_symbols): Update.
9688 (new_psymtab): Update.
9689 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
9690 (xcoff_expand_psymtab): ... this.
9691 (xcoff_start_psymtab): Update.
9692
48993951
SM
96932020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9694
9695 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
9696 <expand_dependencies>: ... this.
9697 * psymtab.c (partial_symtab::read_dependencies): Rename to...
9698 (partial_symtab::expand_dependencies): ... this.
9699 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
9700 Update.
9701 (dwarf2_psymtab::expand_psymtab): Update.
9702 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
9703 * mdebugread.c (psymtab_to_symtab_1): Update.
9704 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
9705
3ad83046
SM
97062020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9707
9708 * psympriv.h (discard_psymtab): Remove.
9709 * dbxread.c (dbx_end_psymtab): Update.
9710 * xcoffread.c (xcoff_end_psymtab): Update.
9711
4d1b9ab6
TT
97122020-03-28 Tom Tromey <tom@tromey.com>
9713
9714 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
9715 comment.
9716
f1749218
TT
97172020-03-28 Tom Tromey <tom@tromey.com>
9718
9719 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
9720
ebea7626
HD
97212020-03-27 Hannes Domani <ssbssa@yahoo.de>
9722
9723 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
9724
a879b4d5
JB
97252020-03-26 John Baldwin <jhb@FreeBSD.org>
9726
9727 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
9728
0826b30a
TT
97292020-03-26 Tom Tromey <tom@tromey.com>
9730
9731 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
9732 (mark_common_block_symbol_computed, read_tag_string_type)
9733 (attr_to_dynamic_prop, read_subrange_type): Update.
9734 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
9735 to be methods on struct attribute.
9736 (skip_one_die, process_imported_unit_die, read_namespace_alias)
9737 (read_call_site_scope, partial_die_info::read)
9738 (partial_die_info::read, lookup_die_type, follow_die_ref):
9739 Update.
9740 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
9741 from dwarf2_get_ref_die_offset.
9742 (attribute::constant_value): New method, from
9743 dwarf2_get_attr_constant_value.
9744 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
9745 Declare method.
9746 <constant_value>: New method.
9747
2b2558bf
TT
97482020-03-26 Tom Tromey <tom@tromey.com>
9749
9750 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
9751 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
9752 (dwarf_type_encoding_name): Move to stringify.c.
9753 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
9754 * dwarf2/stringify.c: New file.
9755 * dwarf2/stringify.h: New file.
9756
eeb64781
TT
97572020-03-26 Tom Tromey <tom@tromey.com>
9758
9759 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
9760 Rewrite.
9761
a39fdb41
TT
97622020-03-26 Tom Tromey <tom@tromey.com>
9763
9764 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
9765 methods.
9766 * dwarf2/read.c (lookup_addr_base): Move to die.h.
9767 (lookup_ranges_base): Likewise.
9768 (read_cutu_die_from_dwo, read_full_die_1): Update.
9769
436c571c
TT
97702020-03-26 Tom Tromey <tom@tromey.com>
9771
9772 * dwarf2/read.c (read_import_statement, read_file_scope)
9773 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
9774 (read_lexical_block_scope, read_call_site_scope)
9775 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
9776 (handle_struct_member_die, process_structure_scope)
9777 (update_enumeration_type_from_children)
9778 (process_enumeration_scope, read_array_type, read_common_block)
9779 (read_namespace, read_module, read_subroutine_type): Update.
9780 (sibling_die): Remove.
9781
052c8bb8
TT
97822020-03-26 Tom Tromey <tom@tromey.com>
9783
9784 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
9785 (build_type_psymtabs_reader, read_structure_type)
9786 (read_enumeration_type, read_full_die_1): Update.
9787 (dwarf2_attr_no_follow): Move to die.h.
9788 * dwarf2/die.h (struct die_info) <attr>: New method.
9789
2b24b6e4
TT
97902020-03-26 Tom Tromey <tom@tromey.com>
9791
9792 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
9793 <base_address>: Now an optional.
9794 (dwarf2_find_base_address, dwarf2_rnglists_process)
9795 (dwarf2_ranges_process, fill_in_loclist_baton)
9796 (dwarf2_symbol_mark_computed): Update.
9797
c2d50fd0
TT
97982020-03-26 Tom Tromey <tom@tromey.com>
9799
9800 * dwarf2/read.c (struct die_info): Move to die.h.
9801 * dwarf2/die.h: New file.
9802
0df7ad3a
TT
98032020-03-26 Tom Tromey <tom@tromey.com>
9804
9805 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
9806 * dwarf2/read.c
9807 (dwarf2_statement_list_fits_in_line_number_section_complaint):
9808 Move to line-header.c.
9809 (read_checked_initial_length_and_offset, read_formatted_entries):
9810 Likewise.
9811 (dwarf_decode_line_header): Split into two.
9812 * dwarf2/line-header.c
9813 (dwarf2_statement_list_fits_in_line_number_section_complaint):
9814 Move from read.c.
9815 (read_checked_initial_length_and_offset, read_formatted_entries):
9816 Likewise.
9817 (dwarf_decode_line_header): New function, split from read.c.
9818
86c0bb4c
TT
98192020-03-26 Tom Tromey <tom@tromey.com>
9820
9821 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
9822 Declare method.
9823 * dwarf2/read.c (read_attribute_value): Update.
9824 (dwarf2_per_objfile::read_line_string): Rename from
9825 read_indirect_line_string.
9826 (read_formatted_entries): Update.
9827
2ef46c2f
TT
98282020-03-26 Tom Tromey <tom@tromey.com>
9829
9830 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
9831 variable.
9832
4f9c1eda
TT
98332020-03-26 Tom Tromey <tom@tromey.com>
9834
9835 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
9836 const.
9837 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
9838 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
9839 parameter const.
9840
5a0e026f
TT
98412020-03-26 Tom Tromey <tom@tromey.com>
9842
9843 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
9844 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
9845 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
9846 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
9847
8844c11b
TT
98482020-03-26 Tom Tromey <tom@tromey.com>
9849
9850 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
9851 file_names_size, file_full_name, file_file_name>: Use const.
9852 <file_name_at, file_names>: Add const overload.
9853 * dwarf2/line-header.c (line_header::file_file_name)
9854 (line_header::file_full_name): Update.
9855
c90ec28a
TT
98562020-03-26 Tom Tromey <tom@tromey.com>
9857
9858 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
9859 (macro_start_file, consume_improper_spaces)
9860 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
9861 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
9862 (dwarf_decode_macros): Move to macro.c.
9863 * dwarf2/macro.c: New file.
9864 * dwarf2/macro.h: New file.
9865 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
9866
4f44ae6c
TT
98672020-03-26 Tom Tromey <tom@tromey.com>
9868
9869 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
9870 method.
9871 * dwarf2/section.c: New method. From
9872 read_indirect_string_at_offset_from.
9873 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
9874 (read_indirect_string_at_offset_from): Move to section.c.
9875 (read_indirect_string_at_offset): Rewrite.
9876 (read_indirect_line_string_at_offset): Remove.
9877 (read_indirect_string, read_indirect_line_string)
9878 (dwarf_decode_macro_bytes): Update.
9879
a0194fa8
TT
98802020-03-26 Tom Tromey <tom@tromey.com>
9881
9882 * dwarf2/section.h (struct dwarf2_section_info)
9883 <overload_complaint>: Declare.
9884 (dwarf2_section_buffer_overflow_complaint): Don't declare.
9885 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
9886 Rename from dwarf2_section_buffer_overflow_complaint.
9887 * dwarf2/read.c (skip_one_die, partial_die_info::read)
9888 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
9889
3d27bbdb
TT
98902020-03-26 Tom Tromey <tom@tromey.com>
9891
9892 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
9893 Declare.
9894 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
9895 Move from read.c.
9896 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
9897 to section.c.
9898
9eac9650
TT
98992020-03-26 Tom Tromey <tom@tromey.com>
9900
9901 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
9902
bf80d710
TT
99032020-03-26 Tom Tromey <tom@tromey.com>
9904
9905 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
9906 "builder".
9907 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
9908 parameter.
9909 (dwarf_decode_macros): Update.
9910
0314b390
TT
99112020-03-26 Tom Tromey <tom@tromey.com>
9912
9913 * dwarf2/read.c (read_attribute_value): Update.
9914 (read_indirect_string_from_dwz): Move to dwz.c; change into
9915 method.
9916 (dwarf_decode_macro_bytes): Update.
9917 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
9918 * dwarf2/dwz.c: New file.
9919 * Makefile.in (COMMON_SFILES): Add dwz.c.
9920
9fda78b6
TT
99212020-03-26 Tom Tromey <tom@tromey.com>
9922
9923 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
9924 * dwarf2/read.c: Add include.
9925 * dwarf2/index-write.c: Add include.
9926 * dwarf2/index-cache.c: Add include.
9927 * dwarf2/dwz.h: New file.
9928
33aa3c10
TT
99292020-03-25 Tom Tromey <tom@tromey.com>
9930
9931 * compile/compile-object-load.c (get_out_value_type): Mention
9932 correct symbol name in error message.
9933
d503b685
HD
99342020-03-25 Hannes Domani <ssbssa@yahoo.de>
9935
9936 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
9937
7b1eff95
TV
99382020-03-25 Tom de Vries <tdevries@suse.de>
9939
9940 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
9941 * symmisc.c (dump_symtab_1): Print user and includes fields.
9942 (maintenance_info_symtabs): Same.
9943
dd895392
AB
99442020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
9945
9946 PR gdb/25534
9947 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
9948 (riscv_regcache_cooked_write): New function.
9949 (riscv_push_dummy_call): Use new function.
9950 (riscv_return_value): Likewise.
9951
5ab2fbf1
SM
99522020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
9953
9954 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
9955 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
9956 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
9957 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
9958 * infrun.c (follow_fork): Likewise.
9959 (follow_fork_inferior): Likewise.
9960 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
9961 * linux-nat.h (class linux_nat_target): Likewise.
9962 * remote.c (class remote_target) <follow_fork>: Likewise.
9963 (remote_target::follow_fork): Likewise.
9964 * target-delegates.c: Re-generate.
9965 * target.c (default_follow_fork): Likewise.
9966 (target_follow_fork): Likewise.
9967 * target.h (struct target_ops) <follow_fork>: Likewise.
9968 (target_follow_fork): Likewise.
9969
a64fafb5
TV
99702020-03-24 Tom de Vries <tdevries@suse.de>
9971
9972 * psymtab.c (maintenance_info_psymtabs): Print user field.
9973
fe26d3a3
TT
99742020-03-20 Tom Tromey <tromey@adacore.com>
9975
9976 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
9977 const.
9978 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
9979 const.
9980
c884cc46
SM
99812020-03-20 Simon Marchi <simon.marchi@efficios.com>
9982
9983 * ptrace.m4: Don't check for ptrace declaration.
9984 * config.in: Re-generate.
9985 * configure: Re-generate.
9986 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
9987 not defined.
9988
1ff700c2
KR
99892020-03-20 Kamil Rytarowski <n54@gmx.com>
9990
9991 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
9992 `PTRACE_TYPE_RET'.
9993 * i386-bsd-nat.c (gdb_ptrace): Likewise.
9994 * sparc-nat.c (gdb_ptrace): Likewise.
9995 * x86-bsd-nat.c (gdb_ptrace): Likewise.
9996
f7d4f0b1
TT
99972020-03-20 Tom Tromey <tromey@adacore.com>
9998
9999 * c-exp.y (lex_one_token): Fix assert.
10000
f67210ff
TT
100012020-03-20 Tom Tromey <tromey@adacore.com>
10002
10003 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
10004 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
10005 strncpy call.
10006
1773be9e
TT
100072020-03-20 Tom Tromey <tromey@adacore.com>
10008
10009 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
10010
70304be9
TT
100112020-03-20 Tom Tromey <tromey@adacore.com>
10012
10013 * ada-valprint.c (print_variant_part): Remove parameters; switch
10014 to value-based API.
10015 (print_field_values): Likewise.
10016 (ada_val_print_struct_union): Likewise.
10017 (ada_value_print_1): Update.
10018
9faa006d
KR
100192020-03-20 Kamil Rytarowski <n54@gmx.com>
10020
10021 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
10022 nbsd_nat_target instead of inf_ptrace_target.
10023 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
10024 nbsd_nat_target.
10025
4a90f062
KR
100262020-03-20 Kamil Rytarowski <n54@gmx.com>
10027
10028 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
10029 it to the ptrace call.
10030 * (store_registers): Likewise.
10031
100322020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
10033
10034 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
10035 it to the ptrace call.
10036 * (store_registers): Likewise.
10037
2d07da27
LM
100382020-03-19 Luis Machado <luis.machado@linaro.org>
10039
10040 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
10041 valid, fetch vg value from ptrace.
10042
f09db380
KR
100432020-03-19 Kamil Rytarowski <n54@gmx.com>
10044 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
10045 * inf-ptrace.c: Likewise.
10046 * (gdb_ptrace): Add.
10047 * (inf_ptrace_target::resume): Update.
10048 * (inf_ptrace_target::xfer_partial): Likewise.
10049 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
10050 * (inf_ptrace_peek_poke): Update.
10051
fcc7376e
KR
100522020-03-19 Kamil Rytarowski <n54@gmx.com>
10053
10054 * x86-bsd-nat.c (gdb_ptrace): New.
10055 * (x86bsd_dr_set): Add new argument `ptid'.
10056 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
10057 x86bsd_dr_set_addr): Update.
10058
cada5fc9
AB
100592020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
10060
10061 * remote.c (remote_target::process_stop_reply): Handle events for
10062 all threads differently.
10063
19a2740f
AB
100642020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
10065
10066 * completer.c (completion_tracker::remove_completion): Define new
10067 function.
10068 * completer.h (completion_tracker::remove_completion): Declare new
10069 function.
10070 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
10071 when adding a C++ function symbol.
10072
724fd9ba
AB
100732020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
10074
10075 * completer.c (completion_tracker::completion_hash_entry): Define
10076 new class.
10077 (advance_to_filename_complete_word_point): Call
10078 recompute_lowest_common_denominator.
10079 (completion_tracker::completion_tracker): Call discard_completions
10080 to setup the hash table.
10081 (completion_tracker::discard_completions): Allow for being called
10082 from the constructor, pass new equal function, and element deleter
10083 when constructing the hash table. Initialise new class member
10084 variables.
10085 (completion_tracker::maybe_add_completion): Remove use of
10086 m_entries_vec, and store more information into m_entries_hash.
10087 (completion_tracker::recompute_lcd_visitor): New function, most
10088 content taken from...
10089 (completion_tracker::recompute_lowest_common_denominator):
10090 ...here, this now just visits each item in the hash calling the
10091 above visitor.
10092 (completion_tracker::build_completion_result): Remove use of
10093 m_entries_vec, call recompute_lowest_common_denominator.
10094 * completer.h (completion_tracker::have_completions): Remove use
10095 of m_entries_vec.
10096 (completion_tracker::completion_hash_entry): Declare new class.
10097 (completion_tracker::recompute_lowest_common_denominator): Change
10098 function signature.
10099 (completion_tracker::recompute_lcd_visitor): Declare new function.
10100 (completion_tracker::m_entries_vec): Delete.
10101 (completion_tracker::m_entries_hash): Initialize to NULL.
10102 (completion_tracker::m_lowest_common_denominator_valid): New
10103 member variable.
10104 (completion_tracker::m_lowest_common_denominator_max_length): New
10105 member variable.
10106
5a82b8a1
KR
101072020-03-17 Kamil Rytarowski <n54@gmx.com>
10108
10109 * regformats/regdef.h: Put reg in gdb namespace.
10110
fb516a69
KR
101112020-03-17 Kamil Rytarowski <n54@gmx.com>
10112
10113 * i386-bsd-nat.c (gdb_ptrace): New.
10114 * (i386bsd_fetch_inferior_registers,
10115 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
10116 * (i386bsd_fetch_inferior_registers,
10117 i386bsd_store_inferior_registers) Use gdb_ptrace.
10118
1c0aa1fb
KR
101192020-03-17 Kamil Rytarowski <n54@gmx.com>
10120
10121 * amd64-bsd-nat.c (gdb_ptrace): New.
10122 * (amd64bsd_fetch_inferior_registers,
10123 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
10124 * (amd64bsd_fetch_inferior_registers,
10125 amd64bsd_store_inferior_registers) Use gdb_ptrace.
10126
5ccd2fb7
KR
101272020-03-17 Kamil Rytarowski <n54@gmx.com>
10128
10129 * user-regs.c (user_reg::read): Rename to...
10130 (user_reg::xread): ...this.
10131 * (append_user_reg): Rename argument `read' to `xread'.
10132 * (user_reg_add_builtin): Likewise.
10133 * (user_reg_add): Likewise.
10134 * (value_of_user_reg): Likewise.
10135
2108a63a
KR
101362020-03-17 Kamil Rytarowski <n54@gmx.com>
10137
10138 * sparc-nat.c (gdb_ptrace): New.
10139 * sparc-nat.c (sparc_fetch_inferior_registers)
10140 (sparc_store_inferior_registers) Remove obsolete comment.
10141 * sparc-nat.c (sparc_fetch_inferior_registers)
10142 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
10143 * sparc-nat.c (sparc_fetch_inferior_registers)
10144 (sparc_store_inferior_registers) Use gdb_ptrace.
10145
a225c9a8
KR
101462020-03-17 Kamil Rytarowski <n54@gmx.com>
10147
10148 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
10149 it to the ptrace call.
10150 * sh-nbsd-nat.c (store_registers): Likewise.
10151
98097623
KR
101522020-03-17 Kamil Rytarowski <n54@gmx.com>
10153
10154 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
10155 nbsd_nat_target instead of inf_ptrace_target.
10156 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
10157 nbsd_nat_target.
10158
9e38d619
KR
101592020-03-17 Kamil Rytarowski <n54@gmx.com>
10160
10161 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
10162
a2ecbe9f
KR
101632020-03-17 Kamil Rytarowski <n54@gmx.com>
10164
10165 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
10166 <sys/sysctl.h>.
10167 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
10168
58990295
TV
101692020-03-17 Tom de Vries <tdevries@suse.de>
10170
10171 PR gdb/23710
10172 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
10173 fields.
10174 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
10175 fields.
10176 (process_imported_unit_die): Skip import of c++ CUs.
10177
771dd3a8
TT
101782020-03-16 Tom Tromey <tom@tromey.com>
10179
10180 * p-valprint.c (pascal_object_print_value): Initialize
10181 base_value.
10182
817a7585
AK
101832020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
10184 Shahab Vahedi <shahab@synopsys.com>
10185
10186 * Makefile.in: Add arch/arc.o
10187 * configure.tgt: Likewise.
10188 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
10189 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 10190 (arc_read_description): New function to cache target descriptions.
817a7585
AK
10191 * arc-tdep.h (arc_read_description): Add proto type.
10192 * arch/arc.c: New file.
10193 * arch/arc.h: Likewise.
10194 * features/Makefile: Replace old target descriptions with new.
10195 * features/arc-arcompact.c: Remove.
10196 * features/arc-arcompact.xml: Likewise.
10197 * features/arc-v2.c: Likewise
10198 * features/arc-v2.xml: Likewise
10199 * features/arc/aux-arcompact.xml: New file.
10200 * features/arc/aux-v2.xml: Likewise.
10201 * features/arc/core-arcompact.xml: Likewise.
10202 * features/arc/core-v2.xml: Likewise.
10203 * features/arc/aux-arcompact.c: Generate.
10204 * features/arc/aux-v2.c: Likewise.
10205 * features/arc/core-arcompact.c: Likewise.
10206 * features/arc/core-v2.c: Likewise.
10207 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
10208
67430cd0
TT
102092020-03-16 Tom Tromey <tromey@adacore.com>
10210
10211 PR gdb/25663:
10212 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
10213 putting value into bcache.
10214
30efb6c7
SM
102152020-03-16 Simon Marchi <simon.marchi@efficios.com>
10216
10217 PR gdb/21500
10218 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
10219 to...
10220 (amd64_windows_init_abi_common): ... this. Don't set size of
10221 long type.
10222 (amd64_windows_init_abi): New function.
10223 (amd64_cygwin_init_abi): New function.
10224 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
10225 the Cygwin OS ABI.
10226 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
10227 comment.
10228
8db52437
SM
102292020-03-16 Simon Marchi <simon.marchi@efficios.com>
10230
10231 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
10232 * windows-tdep.c (CYGWIN_DLL_NAME): New.
10233 (pe_import_directory_entry): New struct type.
10234 (is_linked_with_cygwin_dll): New function.
10235 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
10236 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
10237 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
10238
5982a56a
SM
102392020-03-16 Simon Marchi <simon.marchi@efficios.com>
10240
10241 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
10242 i386_cygwin_core_osabi_sniffer.
10243
7a1998df
SM
102442020-03-16 Simon Marchi <simon.marchi@efficios.com>
10245
10246 * i386-cygwin-tdep.c: Rename to...
10247 * i386-windows-tdep.c: ... this.
10248 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
10249 i386-windows-tdep.c.
10250 * configure.tgt: Likewise.
10251
053205cc
SM
102522020-03-16 Simon Marchi <simon.marchi@efficios.com>
10253
10254 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
10255 * osabi.c (gdb_osabi_names): Add "Windows".
10256 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
10257 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
10258 (i386_cygwin_core_osabi_sniffer): New function, extracted from
10259 i386_cygwin_osabi_sniffer.
10260 (_initialize_i386_cygwin_tdep): Register OS ABI
10261 GDB_OSABI_WINDOWS for i386.
10262 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
10263 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
10264 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
10265 for x86-64.
10266 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
10267 when the target matches '*-*-mingw*'.
10268
fe4b2ee6
SM
102692020-03-16 Simon Marchi <simon.marchi@efficios.com>
10270
10271 * defs.h (enum gdb_osabi): Move to...
10272 * osabi.h (enum gdb_osabi): ... here.
10273 * gdbarch.sh: Include osabi.h in gdbarch.h.
10274 * gdbarch.h: Re-generate.
10275
cb9b645d
SM
102762020-03-16 Simon Marchi <simon.marchi@efficios.com>
10277
10278 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
10279 function.
10280 (_initialize_amd64_windows_tdep): Register osabi sniffer.
10281
3293bbaf
TT
102822020-03-14 Tom Tromey <tom@tromey.com>
10283
10284 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
10285 for C++.
10286 (c_type_print_modifier): Likewise. Add "language" parameter.
10287 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
10288 (c_type_print_base_1): Update.
10289 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
10290 constants.
10291 * type-stack.c (type_stack::insert): Handle tp_atomic and
10292 tp_restrict.
10293 (type_stack::follow_type_instance_flags): Likewise.
10294 (type_stack::follow_types): Likewise. Merge type-following code.
10295 * c-exp.y (RESTRICT, ATOMIC): New tokens.
10296 (space_identifier, cv_with_space_id)
10297 (const_or_volatile_or_space_identifier_noopt)
10298 (const_or_volatile_or_space_identifier): Remove.
10299 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
10300 rules.
10301 (ptr_operator, typebase): Update.
10302 (enum token_flag) <FLAG_C>: New constant.
10303 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
10304 "_Atomic".
10305 (lex_one_token): Handle FLAG_C.
10306
154151a6
KR
103072020-03-14 Kamil Rytarowski <n54@gmx.com>
10308
10309 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
10310 it to the ptrace call.
10311 * m68k-bsd-nat.c (store_registers): Likewise.
10312
bc107784
KR
103132020-03-14 Kamil Rytarowski <n54@gmx.com>
10314
10315 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
10316 gdb_byte *.
10317 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
10318 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
10319 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
10320
01a80117
KR
103212020-03-14 Kamil Rytarowski <n54@gmx.com>
10322
10323 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
10324 nbsd_nat_target instead of inf_ptrace_target.
10325 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
10326 nbsd_nat_target.
10327
f90280ca
KR
103282020-03-14 Kamil Rytarowski <n54@gmx.com>
10329
10330 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
10331 register_t.
10332
6def66f1
KR
103332020-03-14 Kamil Rytarowski <n54@gmx.com>
10334
10335 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
10336 it to the ptrace call.
10337 * alpha-bsd-nat.c (store_registers): Likewise.
10338
66eaca97
KR
103392020-03-14 Kamil Rytarowski <n54@gmx.com>
10340
10341 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
10342 includes.
10343 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
10344 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
10345 fill_fpregset): Likewise.
10346
4fed520b
KR
103472020-03-14 Kamil Rytarowski <n54@gmx.com>
10348
10349 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
10350 nbsd_nat_target instead of inf_ptrace_target.
10351 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
10352 nbsd_nat_target.
10353
2190cf06
KR
103542020-03-14 Kamil Rytarowski <n54@gmx.com>
10355
10356 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
10357 register_t.
10358
75c56d3d
KR
103592020-03-14 Kamil Rytarowski <n54@gmx.com>
10360
10361 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
10362 it to the ptrace call.
10363 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
10364 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
10365 * arm-nbsd-nat.c (store_register): Likewise.
10366 * arm-nbsd-nat.c (store_regs): Likewise.
10367 * arm-nbsd-nat.c (store_fp_register): Likewise.
10368 * arm-nbsd-nat.c (store_fp_regs): Likewise.
10369
6018d381
KR
103702020-03-14 Kamil Rytarowski <n54@gmx.com>
10371
10372 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
10373 nbsd_nat_target instead of inf_ptrace_target.
10374 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
10375 nbsd_nat_target.
10376
013f99f0
KR
103772020-03-14 Kamil Rytarowski <n54@gmx.com>
10378
10379 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
10380 it to the ptrace call.
10381 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
10382
12753073
KR
103832020-03-14 Kamil Rytarowski <n54@gmx.com>
10384
6227b330
KR
10385 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
10386 it to the ptrace call.
10387 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
10388
103892020-03-14 Kamil Rytarowski <n54@gmx.com>
10390
10391 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
10392 gdb_byte *.
12753073
KR
10393 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
10394
d5be5fa4
KR
103952020-03-14 Kamil Rytarowski <n54@gmx.com>
10396
10397 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
10398 instead of inf_ptrace_target.
10399 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
10400 nbsd_nat_target.
10401
8110f842
KR
104022020-03-14 Kamil Rytarowski <n54@gmx.com>
10403
10404 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10405 register_t.
10406
52feded7
KR
104072020-03-14 Kamil Rytarowski <n54@gmx.com>
10408
10409 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10410 register_t.
10411
25567eee
KR
104122020-03-14 Kamil Rytarowski <n54@gmx.com>
10413
10414 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
10415 register_t.
10416
426a9c18
TT
104172020-03-13 Tom Tromey <tom@tromey.com>
10418
10419 * value.h (val_print): Don't declare.
10420 * valprint.h (val_print_array_elements)
10421 (val_print_scalar_formatted, generic_val_print): Don't declare.
10422 * valprint.c (generic_val_print_array): Take a struct value.
10423 (generic_val_print_ptr, generic_val_print_memberptr)
10424 (generic_val_print_bool, generic_val_print_int)
10425 (generic_val_print_char, generic_val_print_complex)
10426 (generic_val_print): Remove.
10427 (generic_value_print): Update.
10428 (do_val_print): Remove unused parameters. Don't call
10429 la_val_print.
10430 (val_print): Remove.
10431 (common_val_print): Update. Don't call value_check_printable.
10432 (val_print_scalar_formatted, val_print_array_elements): Remove.
10433 * rust-lang.c (rust_val_print): Remove.
10434 (rust_language_defn): Update.
10435 * p-valprint.c (pascal_val_print): Remove.
10436 (pascal_value_print_inner): Update.
10437 (pascal_object_print_val_fields, pascal_object_print_val):
10438 Remove.
10439 (pascal_object_print_static_field): Update.
10440 * p-lang.h (pascal_val_print): Don't declare.
10441 * p-lang.c (pascal_language_defn): Update.
10442 * opencl-lang.c (opencl_language_defn): Update.
10443 * objc-lang.c (objc_language_defn): Update.
10444 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
10445 * m2-lang.h (m2_val_print): Don't declare.
10446 * m2-lang.c (m2_language_defn): Update.
10447 * language.h (struct language_defn) <la_val_print>: Remove.
10448 * language.c (unk_lang_value_print_inner): Rename. Change
10449 argument types.
10450 (unknown_language_defn, auto_language_defn): Update.
10451 * go-valprint.c (go_val_print): Remove.
10452 * go-lang.h (go_val_print): Don't declare.
10453 * go-lang.c (go_language_defn): Update.
10454 * f-valprint.c (f_val_print): Remove.
10455 * f-lang.h (f_value_print): Don't declare.
10456 * f-lang.c (f_language_defn): Update.
10457 * d-valprint.c (d_val_print): Remove.
10458 * d-lang.h (d_value_print): Don't declare.
10459 * d-lang.c (d_language_defn): Update.
10460 * cp-valprint.c (cp_print_value_fields)
10461 (cp_print_value_fields_rtti, cp_print_value): Remove.
10462 (cp_print_static_field): Update.
10463 * c-valprint.c (c_val_print_array, c_val_print_ptr)
10464 (c_val_print_struct, c_val_print_union, c_val_print_int)
10465 (c_val_print_memberptr, c_val_print): Remove.
10466 * c-lang.h (c_val_print_array, cp_print_value_fields)
10467 (cp_print_value_fields_rtti): Don't declare.
10468 * c-lang.c (c_language_defn, cplus_language_defn)
10469 (asm_language_defn, minimal_language_defn): Update.
10470 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
10471 (ada_val_print_enum): Take a struct value.
10472 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
10473 (ada_val_print): Remove.
10474 (ada_value_print_1): Update.
10475 (printable_val_type): Remove.
10476 * ada-lang.h (ada_val_print): Don't declare.
10477 * ada-lang.c (ada_language_defn): Update.
10478
42331a1e
TT
104792020-03-13 Tom Tromey <tom@tromey.com>
10480
10481 * valprint.c (do_val_print): Update.
10482 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
10483 a struct value.
10484 (value_to_value_object_no_release): Declare.
10485 * python/py-value.c (value_to_value_object_no_release): New
10486 function.
10487 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
10488 struct value.
10489 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
10490 function.
10491 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
10492 a struct value.
10493 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
10494 Declare.
10495 (gdbscm_apply_val_pretty_printer): Take a struct value.
10496 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
10497 value.
10498 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
10499 value.
10500 * extension-priv.h (struct extension_language_ops)
10501 <apply_val_pretty_printer>: Take a struct value.
10502 * cp-valprint.c (cp_print_value): Create a struct value.
10503 (cp_print_value): Update.
10504
3a916a97
TT
105052020-03-13 Tom Tromey <tom@tromey.com>
10506
10507 * ada-valprint.c (print_field_values): Call common_val_print.
10508
b59eac37
TT
105092020-03-13 Tom Tromey <tom@tromey.com>
10510
10511 * ada-valprint.c (val_print_packed_array_elements): Remove
10512 bitoffset and val parameters. Call common_val_print.
10513 (ada_val_print_string): Remove offset, address, and original_value
10514 parameters.
10515 (ada_val_print_array): Update.
10516 (ada_value_print_array): New function.
10517 (ada_value_print_1): Call it.
10518
03371129
TT
105192020-03-13 Tom Tromey <tom@tromey.com>
10520
10521 * ada-valprint.c (ada_value_print): Use common_val_print.
10522
2e088f8b
TT
105232020-03-13 Tom Tromey <tom@tromey.com>
10524
10525 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
10526
39ef85a8
TT
105272020-03-13 Tom Tromey <tom@tromey.com>
10528
10529 * ada-valprint.c (ada_value_print_num): New function.
10530 (ada_value_print_1): Use it.
10531
b9fa6e07
TT
105322020-03-13 Tom Tromey <tom@tromey.com>
10533
10534 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
10535
416595d6
TT
105362020-03-13 Tom Tromey <tom@tromey.com>
10537
10538 * ada-valprint.c (ada_value_print_ptr): New function.
10539 (ada_value_print_1): Use it.
10540
5b5e15ec
TT
105412020-03-13 Tom Tromey <tom@tromey.com>
10542
10543 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
10544 call common_val_print.
10545 (ada_val_print_1): Update.
10546 (ada_value_print_1): New function.
10547 (ada_value_print_inner): Rewrite.
10548
fbf54e75
TT
105492020-03-13 Tom Tromey <tom@tromey.com>
10550
10551 * cp-valprint.c (cp_print_value_fields): Update.
10552 (cp_print_value): New function.
10553
64b653ca
TT
105542020-03-13 Tom Tromey <tom@tromey.com>
10555
10556 * m2-valprint.c (m2_value_print_inner): Use
10557 cp_print_value_fields.
10558 * cp-valprint.c (cp_print_value_fields): New function.
10559 * c-valprint.c (c_value_print_struct): New function.
10560 (c_value_print_inner): Use c_value_print_struct.
10561 * c-lang.h (cp_print_value_fields): Declare.
10562
6999f067
TT
105632020-03-13 Tom Tromey <tom@tromey.com>
10564
10565 * c-valprint.c (c_value_print_array): New function.
10566 (c_value_print_inner): Use it.
10567
ce80b8bd
TT
105682020-03-13 Tom Tromey <tom@tromey.com>
10569
10570 * c-valprint.c (c_value_print_memberptr): New function.
10571 (c_value_print_inner): Use it.
10572
2faac269
TT
105732020-03-13 Tom Tromey <tom@tromey.com>
10574
10575 * c-valprint.c (c_value_print_int): New function.
10576 (c_value_print_inner): Use it.
10577
da3e2c29
TT
105782020-03-13 Tom Tromey <tom@tromey.com>
10579
10580 * c-valprint.c (c_value_print_ptr): New function.
10581 (c_value_print_inner): Use it.
10582
50836231
TT
105832020-03-13 Tom Tromey <tom@tromey.com>
10584
10585 * c-valprint.c (c_value_print_inner): Rewrite.
10586
4f412b6e
TT
105872020-03-13 Tom Tromey <tom@tromey.com>
10588
10589 * valprint.c (generic_value_print_complex): New function.
10590 (generic_value_print): Use it.
10591
f5354008
TT
105922020-03-13 Tom Tromey <tom@tromey.com>
10593
10594 * valprint.c (generic_val_print_float): Don't call
10595 val_print_scalar_formatted.
10596 (generic_val_print, generic_value_print): Update.
10597
3eec3b05
TT
105982020-03-13 Tom Tromey <tom@tromey.com>
10599
10600 * valprint.c (generic_value_print_char): New function
10601 (generic_value_print): Use it.
10602
fdddfccb
TT
106032020-03-13 Tom Tromey <tom@tromey.com>
10604
10605 * valprint.c (generic_value_print_int): New function.
10606 (generic_value_print): Use it.
10607
6dde7521
TT
106082020-03-13 Tom Tromey <tom@tromey.com>
10609
10610 * valprint.c (generic_value_print_bool): New function.
10611 (generic_value_print): Use it.
10612
4112d2e6
TT
106132020-03-13 Tom Tromey <tom@tromey.com>
10614
10615 * valprint.c (generic_val_print_func): Simplify.
10616 (generic_val_print, generic_value_print): Update.
10617
65786af6
TT
106182020-03-13 Tom Tromey <tom@tromey.com>
10619
10620 * valprint.c (generic_val_print_flags): Remove.
10621 (generic_val_print, generic_value_print): Update.
10622 (val_print_type_code_flags): Add original_value parameter.
10623
40f3ce18
TT
106242020-03-13 Tom Tromey <tom@tromey.com>
10625
10626 * valprint.c (generic_val_print): Update.
10627 (generic_value_print): Update.
10628 * valprint.c (generic_val_print_enum): Don't call
10629 val_print_scalar_formatted.
10630
2a5b130b
TT
106312020-03-13 Tom Tromey <tom@tromey.com>
10632
10633 * valprint.c (generic_value_print): Call generic_value_print_ptr.
10634 * valprint.c (generic_value_print_ptr): New function.
10635
abc66ce9
TT
106362020-03-13 Tom Tromey <tom@tromey.com>
10637
10638 * valprint.c (generic_value_print): Rewrite.
10639
07a32858
TT
106402020-03-13 Tom Tromey <tom@tromey.com>
10641
10642 * p-valprint.c (pascal_object_print_value_fields)
10643 (pascal_object_print_value): New functions.
10644
64d64d3a
TT
106452020-03-13 Tom Tromey <tom@tromey.com>
10646
10647 * p-valprint.c (pascal_value_print_inner): Rewrite.
10648
6a95a1f5
TT
106492020-03-13 Tom Tromey <tom@tromey.com>
10650
10651 * f-valprint.c (f_value_print_innner): Rewrite.
10652
59fcdac6
TT
106532020-03-13 Tom Tromey <tom@tromey.com>
10654
10655 * m2-valprint.c (m2_print_unbounded_array): New overload.
10656 (m2_print_unbounded_array): Update.
10657 (m2_print_array_contents): Take a struct value.
10658 (m2_value_print_inner): Rewrite.
10659
d133c3e1
TT
106602020-03-13 Tom Tromey <tom@tromey.com>
10661
10662 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
10663 (d_value_print_inner): New function.
10664 * d-lang.h (d_value_print_inner): Declare.
10665 * d-lang.c (d_language_defn): Use d_value_print_inner.
10666
23b0f06b
TT
106672020-03-13 Tom Tromey <tom@tromey.com>
10668
10669 * go-valprint.c (go_value_print_inner): New function.
10670 * go-lang.h (go_value_print_inner): Declare.
10671 * go-lang.c (go_language_defn): Use go_value_print_inner.
10672
5f56f7cb
TT
106732020-03-13 Tom Tromey <tom@tromey.com>
10674
10675 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
10676 API.
10677 (rust_val_print): Rewrite.
10678 (rust_value_print_inner): New function, from rust_val_print.
10679 (rust_language_defn): Use rust_value_print_inner.
10680
26792ee0
TT
106812020-03-13 Tom Tromey <tom@tromey.com>
10682
10683 * ada-valprint.c (ada_value_print_inner): New function.
10684 * ada-lang.h (ada_value_print_inner): Declare.
10685 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
10686
24051bbe
TT
106872020-03-13 Tom Tromey <tom@tromey.com>
10688
10689 * f-valprint.c (f_value_print_innner): New function.
10690 * f-lang.h (f_value_print_innner): Declare.
10691 * f-lang.c (f_language_defn): Use f_value_print_innner.
10692
c0941be6
TT
106932020-03-13 Tom Tromey <tom@tromey.com>
10694
10695 * p-valprint.c (pascal_value_print_inner): New function.
10696 * p-lang.h (pascal_value_print_inner): Declare.
10697 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
10698
62c4663d
TT
106992020-03-13 Tom Tromey <tom@tromey.com>
10700
10701 * m2-valprint.c (m2_value_print_inner): New function.
10702 * m2-lang.h (m2_value_print_inner): Declare.
10703 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
10704
62182190
TT
107052020-03-13 Tom Tromey <tom@tromey.com>
10706
10707 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
10708 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
10709 * c-valprint.c (c_value_print_inner): New function.
10710 * c-lang.h (c_value_print_inner): Declare.
10711 * c-lang.c (c_language_defn, cplus_language_defn)
10712 (asm_language_defn, minimal_language_defn): Use
10713 c_value_print_inner.
10714
1e592a8a
TT
107152020-03-13 Tom Tromey <tom@tromey.com>
10716
10717 * p-valprint.c (pascal_object_print_value_fields): Now static.
10718 * p-lang.h (pascal_object_print_value_fields): Don't declare.
10719
7fe471e9
TT
107202020-03-13 Tom Tromey <tom@tromey.com>
10721
10722 * c-valprint.c (c_val_print_array): Simplify.
10723
d121c6ce
TT
107242020-03-13 Tom Tromey <tom@tromey.com>
10725
10726 * valprint.c (value_print_array_elements): New function.
10727 * valprint.h (value_print_array_elements): Declare.
10728
4dba70ee
TT
107292020-03-13 Tom Tromey <tom@tromey.com>
10730
10731 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
10732 * mips-tdep.c (mips_print_register): Use
10733 value_print_scalar_formatted.
10734
4f9ae810
TT
107352020-03-13 Tom Tromey <tom@tromey.com>
10736
10737 * valprint.h (value_print_scalar_formatted): Declare.
10738 * valprint.c (value_print_scalar_formatted): New function.
10739
156bfec9
TT
107402020-03-13 Tom Tromey <tom@tromey.com>
10741
10742 * valprint.h (generic_value_print): Declare.
10743 * valprint.c (generic_value_print): New function.
10744
2b4e573d
TT
107452020-03-13 Tom Tromey <tom@tromey.com>
10746
10747 * valprint.c (do_val_print): Call la_value_print_inner, if
10748 available.
10749 * rust-lang.c (rust_language_defn): Update.
10750 * p-lang.c (pascal_language_defn): Update.
10751 * opencl-lang.c (opencl_language_defn): Update.
10752 * objc-lang.c (objc_language_defn): Update.
10753 * m2-lang.c (m2_language_defn): Update.
10754 * language.h (struct language_defn) <la_value_print_inner>: New
10755 member.
10756 * language.c (unknown_language_defn, auto_language_defn): Update.
10757 * go-lang.c (go_language_defn): Update.
10758 * f-lang.c (f_language_defn): Update.
10759 * d-lang.c (d_language_defn): Update.
10760 * c-lang.c (c_language_defn, cplus_language_defn)
10761 (asm_language_defn, minimal_language_defn): Update.
10762 * ada-lang.c (ada_language_defn): Update.
10763
a1f6a07c
TT
107642020-03-13 Tom Tromey <tom@tromey.com>
10765
10766 * c-valprint.c (c_value_print): Use common_val_print.
10767
410cf315
TT
107682020-03-13 Tom Tromey <tom@tromey.com>
10769
10770 * cp-valprint.c (cp_print_static_field): Use common_val_print.
10771
72a45c93
TT
107722020-03-13 Tom Tromey <tom@tromey.com>
10773
10774 * f-valprint.c (f77_print_array_1, f_val_print): Use
10775 common_val_print.
10776
040f66bd
TT
107772020-03-13 Tom Tromey <tom@tromey.com>
10778
10779 * riscv-tdep.c (riscv_print_one_register_info): Use
10780 common_val_print.
10781
a6e05a6c
TT
107822020-03-13 Tom Tromey <tom@tromey.com>
10783
10784 * mi/mi-main.c (output_register): Use common_val_print.
10785
3444c526
TT
107862020-03-13 Tom Tromey <tom@tromey.com>
10787
10788 * infcmd.c (default_print_one_register_info): Use
10789 common_val_print.
10790
c2a44efe
TT
107912020-03-13 Tom Tromey <tom@tromey.com>
10792
10793 * valprint.h (common_val_print_checked): Declare.
10794 * valprint.c (common_val_print_checked): New function.
10795 * stack.c (print_frame_arg): Use common_val_print_checked.
10796
b0c26e99
TT
107972020-03-13 Tom Tromey <tom@tromey.com>
10798
10799 * valprint.c (do_val_print): New function, from val_print.
10800 (val_print): Use do_val_print.
10801 (common_val_print): Use do_val_print.
10802
ce3acbe9
TT
108032020-03-13 Tom Tromey <tom@tromey.com>
10804
10805 * valprint.c (value_print): Use scoped_value_mark.
10806
96c7f873
TV
108072020-03-13 Tom de Vries <tdevries@suse.de>
10808
10809 PR symtab/25646
10810 * psymtab.c (partial_symtab::partial_symtab): Don't set
10811 globals_offset and statics_offset. Push element onto
10812 current_global_psymbols and current_static_psymbols stacks.
10813 (concat): New function.
10814 (end_psymtab_common): Set globals_offset and statics_offset. Pop
10815 element from current_global_psymbols and current_static_psymbols
10816 stacks. Concat popped elements to global_psymbols and
10817 static_symbols.
10818 (add_psymbol_to_list): Use current_global_psymbols and
10819 current_static_psymbols stacks.
10820 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
10821 current_static_psymbols fields.
10822
6ba0a321
CB
108232020-03-12 Christian Biesinger <cbiesinger@google.com>
10824
10825 * corelow.c (sniff_core_bfd): Remove.
10826 (class core_target) <m_core_vec>: Remove.
10827 (core_target::core_target): Update.
10828 (core_file_fns): Remove.
10829 (deprecated_add_core_fns): Remove.
10830 (default_core_sniffer): Remove.
10831 (sniff_core_bfd): Remove.
10832 (default_check_format): Remove.
10833 (gdb_check_format): Remove.
10834 (core_target_open): Update.
10835 (core_target::get_core_register_section): Update.
10836 (get_core_registers_cb): Update.
10837 (core_target::fetch_registers): Update.
10838 * gdbcore.h (struct core_fns): Remove.
10839 (deprecated_add_core_fns): Remove.
10840 (default_core_sniffer): Remove.
10841 (default_check_format): Remove.
10842
227031b2
TT
108432020-03-12 Tom Tromey <tom@tromey.com>
10844
10845 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
10846 CORE_ADDR.
10847 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
10848
53807e9f
TT
108492020-03-12 Tom Tromey <tom@tromey.com>
10850
10851 * remote.c (remote_target::download_tracepoint)
10852 (remote_target::enable_tracepoint)
10853 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
10854 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
10855 sprintf_vma.
10856
64f25102
TT
108572020-03-12 Tom Tromey <tom@tromey.com>
10858
10859 * symfile-mem.c: Update CORE_ADDR size assert.
10860
272cd5a3
SM
108612020-03-12 Simon Marchi <simon.marchi@efficios.com>
10862
10863 * selftest.m4: Move to gdbsupport/.
10864 * acinclude.m4: Update path to selftest.m4.
10865
74cd3f9d
SM
108662020-03-12 Simon Marchi <simon.marchi@efficios.com>
10867
10868 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
10869 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
10870 gdbarch-selfselftests.c and selftest-arch.c.
10871 (SUBDIR_UNITTESTS_OBS): Rename to...
10872 (SELFTESTS_OBS): ... this.
10873 (COMMON_SFILES): Remove disasm-selftests.c and
10874 gdbarch-selftests.c.
10875 * configure.ac: Don't add selftest-arch.{c,o} to
10876 CONFIG_{SRCS,OBS}.
10877 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
10878 preprocessor conditions.
10879
db6878ac
SM
108802020-03-12 Simon Marchi <simon.marchi@efficios.com>
10881
10882 * configure.ac: Don't source bfd/development.sh.
10883 * selftest.m4: Modify comment.
10884 * configure: Re-generate.
10885
4d696a5c
SM
108862020-03-12 Simon Marchi <simon.marchi@efficios.com>
10887
10888 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
10889 not "true" or "false".
10890 * configure: Re-generate.
10891
8dd8e1c7
CB
108922020-03-12 Christian Biesinger <cbiesinger@google.com>
10893
10894 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
10895 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
10896 renamed to arm_nbsd_supply_gregset.
10897 (fetch_register): Update to call arm_nbsd_supply_gregset.
10898 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
10899 (arm_netbsd_nat_target::fetch_registers): Update.
10900 (fetch_elfcore_registers): Removed.
10901 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
10902 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
10903 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
10904 not require NetBSD system headers.
10905 (arm_nbsd_regset): New struct.
10906 (arm_nbsd_iterate_over_regset_sections): New function.
10907 (arm_netbsd_init_abi_common): Updated to call
10908 set_gdbarch_iterate_over_regset_sections.
10909 * arm-nbsd-tdep.h: New file.
10910
dd69bf7a
KB
109112020-03-11 Kevin Buettner <kevinb@redhat.com>
10912
10913 * symtab.c (find_pc_sect_line): Add check which prevents infinite
10914 recursion.
10915
a0761e34
SM
109162020-03-11 Simon Marchi <simon.marchi@efficios.com>
10917
10918 * configure: Re-generate.
10919
e7a82140
TT
109202020-03-11 Tom Tromey <tromey@adacore.com>
10921
10922 * ada-typeprint.c (print_choices): Fix comment.
10923
dcc050c8
AB
109242020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
10925
10926 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
10927 previous item in the list, when the list has no items.
10928
1c33af77
TV
109292020-03-11 Tom de Vries <tdevries@suse.de>
10930
10931 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
10932 PROP_LOCLIST handling code.
10933
8c95582d
AB
109342020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
10935
10936 * buildsym-legacy.c (record_line): Pass extra parameter to
10937 record_line.
10938 * buildsym.c (buildsym_compunit::record_line): Take an extra
10939 parameter, reduce duplication in the line table, and record the
10940 is_stmt flag in the line table.
10941 * buildsym.h (buildsym_compunit::record_line): Add extra
10942 parameter.
10943 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
10944 non-statement lines.
10945 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
10946 this to the symtab builder.
10947 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
10948 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
10949 through to dwarf_record_line_1.
10950 * infrun.c (process_event_stop_test): When stepping, don't stop at
10951 a non-statement instruction, and only refresh the step info when
10952 we land in the middle of a line's range. Also add an extra
10953 comment.
10954 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
10955 field.
10956 * record-btrace.c (btrace_find_line_range): Only record lines
10957 marked as is-statement.
10958 * stack.c (frame_show_address): Show the frame address if we are
10959 in a non-statement sal.
10960 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
10961 (maintenance_print_one_line_table): Print a header for the is_stmt
10962 column, and include is_stmt information in the output.
10963 * symtab.c (find_pc_sect_line): Find lines marked as statements in
10964 preference to non-statements.
10965 (find_pcs_for_symtab_line): Prefer is-statement entries.
10966 (find_line_common): Likewise.
10967 * symtab.h (struct linetable_entry): Add is_stmt field.
10968 (struct symtab_and_line): Likewise.
10969 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
10970 arranging the line table.
10971
e4003a34
TV
109722020-03-07 Tom de Vries <tdevries@suse.de>
10973
10974 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
10975 DIE.
10976
e8932576
TT
109772020-03-07 Tom Tromey <tom@tromey.com>
10978
10979 * valops.c (value_literal_complex): Remove obsolete comment.
10980 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
10981 comment.
10982
29734269
SM
109832020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
10984
10985 * infrun.h: Forward-declare thread_info.
10986 (set_step_info): Add thread_info parameter, add doc.
10987 * infrun.c (set_step_info): Add thread_info parameter, move doc
10988 to header.
10989 * infrun.c (process_event_stop_test): Pass thread to
10990 set_step_info call.
10991 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
10992 set_step_info.
10993 (prepare_one_step): Add thread_info parameter, pass it to
10994 set_step_frame and prepare_one_step (recursive) call.
10995 (step_1): Pass thread to prepare_one_step call.
10996 (step_command_fsm::should_stop): Pass thread to
10997 prepare_one_step.
10998 (until_next_fsm): Pass thread to set_step_frame call.
10999 (finish_command): Pass thread to set_step_info call.
11000
b7d64b29
HD
110012020-03-06 Hannes Domani <ssbssa@yahoo.de>
11002
11003 * windows-tdep.c (windows_solib_create_inferior_hook):
11004 Check if inferior is running.
11005
09f2921c
TV
110062020-03-06 Tom de Vries <tdevries@suse.de>
11007
11008 * NEWS: Fix "the the".
11009 * ctfread.c: Same.
11010
fd760e79
TV
110112020-03-06 Tom de Vries <tdevries@suse.de>
11012
11013 * psymtab.c (psymtab_to_symtab): Don't print "done.".
11014
20ea4a60
AB
110152020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11016
11017 * .dir-locals.el: Add a comment referencing the other copies of
11018 this file.
11019
0afbabf0
JB
110202020-03-05 John Baldwin <jhb@FreeBSD.org>
11021
11022 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
11023 psargs.
11024
842806cb
TBA
110252020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11026
11027 * .gitattributes: New file.
11028
be1e3d3e
TT
110292020-03-04 Tom Tromey <tom@tromey.com>
11030
11031 * symmisc.c (print_symbol_bcache_statistics)
11032 (print_objfile_statistics): Update.
11033 * symfile.c (allocate_symtab): Use intern.
11034 * psymtab.c (partial_symtab::partial_symtab): Use intern.
11035 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
11036 macro_cache>: Remove.
11037 <string_cache>: New member.
11038 (struct objfile) <intern>: New methods.
11039 * elfread.c (elf_symtab_read): Use intern.
11040 * dwarf2/read.c (fixup_go_packaging): Intern package name.
11041 (dwarf2_compute_name, dwarf2_physname)
11042 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
11043 names.
11044 (guess_partial_die_structure_name): Update.
11045 (partial_die_info::fixup): Intern name.
11046 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
11047 name.
11048 (dwarf2_name): Intern name. Update.
11049 * buildsym.c (buildsym_compunit::get_macro_table): Use
11050 string_cache.
11051
4e7625fd
TT
110522020-03-04 Tom Tromey <tom@tromey.com>
11053
11054 * jit.c (bfd_open_from_target_memory): Make "target" const.
11055 * corefile.c (gnutarget): Now const.
11056 * gdbcore.h (gnutarget): Now const.
11057
46f9f931
HD
110582020-03-04 Hannes Domani <ssbssa@yahoo.de>
11059
11060 * NEWS: Mention support for WOW64 processes.
11061 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
11062 (amd64_windows_segment_register_p): Remove static.
11063 (_initialize_amd64_windows_nat): Update.
11064 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
11065 * i386-windows-nat.c (context_offset): Update.
11066 (i386_mappings): Rename and remove static.
11067 (i386_windows_segment_register_p): Remove static.
11068 (_initialize_i386_windows_nat): Update.
11069 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
11070 (STATUS_WX86_SINGLE_STEP): New macro.
11071 (EnumProcessModulesEx): New macro.
11072 (Wow64SuspendThread): New macro.
11073 (Wow64GetThreadContext): New macro.
11074 (Wow64SetThreadContext): New macro.
11075 (Wow64GetThreadSelectorEntry): New macro.
11076 (windows_set_context_register_offsets): Add static.
11077 (windows_set_segment_register_p): Likewise.
11078 (windows_add_thread): Adapt for WOW64 processes.
11079 (windows_fetch_one_register): Likewise.
11080 (windows_nat_target::fetch_registers): Likewise.
11081 (windows_store_one_register): Likewise.
11082 (display_selector): Likewise.
11083 (display_selectors): Likewise.
11084 (handle_exception): Likewise.
11085 (windows_continue): Likewise.
11086 (windows_nat_target::resume): Likewise.
11087 (windows_add_all_dlls): Likewise.
11088 (do_initial_windows_stuff): Likewise.
11089 (windows_nat_target::attach): Likewise.
11090 (windows_get_exec_module_filename): Likewise.
11091 (windows_nat_target::create_inferior): Likewise.
11092 (windows_xfer_siginfo): Likewise.
11093 (_initialize_loadable): Initialize Wow64SuspendThread,
11094 Wow64GetThreadContext, Wow64SetThreadContext,
11095 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
11096 * windows-nat.h (windows_set_context_register_offsets):
11097 Remove declaration.
11098 (windows_set_segment_register_p): Likewise.
11099 (i386_windows_segment_register_p): Add declaration.
11100 (amd64_windows_segment_register_p): Likewise.
11101
440cf44e
LM
111022020-03-04 Luis Machado <luis.machado@linaro.org>
11103
11104 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
11105 in "info registers" for AArch64/ARM.
11106
11107 The change caused "info registers" to not print GPR's.
11108
11109 gdb/ChangeLog:
11110
11111 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
11112
11113 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
11114 when reg->group is empty and reggroup is not.
11115
1009d92f
TT
111162020-03-03 Tom Tromey <tromey@adacore.com>
11117
11118 * dwarf2/frame.c (struct dwarf2_frame_cache)
11119 <checked_tailcall_bottom, entry_cfa_sp_offset,
11120 entry_cfa_sp_offset_p>: Remove members.
11121 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
11122 (dwarf2_frame_prev_register): Don't call
11123 dwarf2_tailcall_sniffer_first.
11124 (dwarf2_append_unwinders): Don't append tailcall unwinder.
11125 * frame-unwind.c (add_unwinder): New fuction.
11126 (frame_unwind_init): Use it. Add tailcall unwinder.
11127
5e5d66b6
AB
111282020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
11129 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11130
11131 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
11132 value should be printed as true.
11133
584cf46d
HD
111342020-03-03 Hannes Domani <ssbssa@yahoo.de>
11135
11136 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
11137 (windows_init_abi): Set and use windows_so_ops.
11138
7b973adc
SDJ
111392020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
11140
11141 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
11142 when verifying if dealing with a convenience variable.
11143
bb7b70ab
LM
111442020-03-03 Luis Machado <luis.machado@linaro.org>
11145
11146 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
11147
9822cb57
SM
111482020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11149
11150 * infrun.c (gdbarch_supports_displaced_stepping): New.
11151 (use_displaced_stepping): Break up conditions in smaller pieces.
11152 Use gdbarch_supports_displaced_stepping.
11153 (displaced_step_prepare_throw): Use
11154 gdbarch_supports_displaced_stepping.
11155
63e163f2
AB
111562020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
11157
11158 * NEWS: Mention new behaviour of the history filename.
11159 * top.c (write_history_p): Add comment.
11160 (show_write_history_p): Add header comment, give a different
11161 message when history writing is on, but the history filename is
11162 empty.
11163 (history_filename): Add comment.
11164 (history_filename_empty): New function.
11165 (show_history_filename): Add header comment, give a different
11166 message when the filename is empty.
11167 (init_history): Compare history_filename against nullptr, and only
11168 read history if the filename is not empty.
11169 (set_history_filename): Add header comment, and only make
11170 non-empty filenames absolute.
11171 (init_main): Make the filename argument to 'set history filename'
11172 optional.
11173
81b86b97
CB
111742020-03-02 Christian Biesinger <cbiesinger@google.com>
11175
11176 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
11177 (arm_supply_vfpregset): ...this, and update to use VFP registers.
11178 (fetch_fp_register): Update.
11179 (fetch_fp_regs): Update.
11180 (store_fp_register): Update.
11181 (store_fp_regs): Update.
11182 (arm_netbsd_nat_target::read_description): New function.
11183 (fetch_elfcore_registers): Update.
11184
24ed6739
AB
111852020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
11186
11187 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
11188 general_thread if the stop reply is missing a thread-id.
11189 (remote_target::process_stop_reply): Use the first non-exited
11190 thread if the target didn't pass a thread-id.
11191 * infrun.c (do_target_wait): Move call to
11192 switch_to_inferior_no_thread to ....
11193 (do_target_wait_1): ... here.
11194
a84bb2a0
JT
111952020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
11196
11197 * debuginfod-support.c: Include defs.h first.
11198
658dadf0
TV
111992020-02-28 Tom de Vries <tdevries@suse.de>
11200
11201 * symfile.c (set_initial_language): Use default language for lookup.
11202
4ebe4877
SM
112032020-02-28 Simon Marchi <simon.marchi@efficios.com>
11204
11205 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
11206 reader variable, pass `this` to read_cutu_die_from_dwo.
11207
e5da1139
AM
112082020-02-27 Aaron Merey <amerey@redhat.com>
11209
11210 * source.c (open_source_file): Check for nullptr when computing
11211 srcpath.
11212
317f7127
TT
112132020-02-27 Tom Tromey <tromey@adacore.com>
11214
11215 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
11216 member.
11217 (dwarf2_add_field): Don't update nfields.
11218 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
11219
3104d9ee
AB
112202020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11221
11222 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
11223 abs.
11224
b83470bf
TT
112252020-02-26 Tom Tromey <tom@tromey.com>
11226
11227 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
11228 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
11229 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
11230 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
11231 per_cu_data.
11232
edfe0a0c
TT
112332020-02-26 Tom Tromey <tom@tromey.com>
11234
11235 * dwarf2/index-write.c (psym_index_map): Change type.
11236 (add_address_entry_worker, write_one_signatured_type)
11237 (recursively_count_psymbols, recursively_write_psymbols)
11238 (class debug_names, psyms_seen_size, write_gdbindex)
11239 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
11240
0d79cdc4
AM
112412020-02-26 Aaron Merey <amerey@redhat.com>
11242
11243 * Makefile.in: Handle optional debuginfod support.
11244 * NEWS: Update.
11245 * README: Add --with-debuginfod summary.
11246 * config.in: Regenerate.
11247 * configure: Regenerate.
11248 * configure.ac: Handle optional debuginfod support.
11249 * debuginfod-support.c: debuginfod helper functions.
11250 * debuginfod-support.h: Ditto.
11251 * doc/gdb.texinfo: Add --with-debuginfod to configure options
11252 summary.
11253 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
11254 when a dwz file cannot be found.
11255 * elfread.c (elf_symfile_read): Query debuginfod servers when a
11256 debuginfo file cannot be found.
11257 * source.c (open_source_file): Query debuginfod servers when a
11258 source file cannot be found.
11259 * top.c (print_gdb_configuration): Include
11260 --{with,without}-debuginfod in the output.
11261
b65ce565
JG
112622020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
11263
11264 * thread.c (thr_try_catch_cmd): Print thread name.
11265
d4c9a4f8
SM
112662020-02-26 Simon Marchi <simon.marchi@efficios.com>
11267
11268 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
11269 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
11270 dwarf2_fetch_die_type_sect_off): Move to...
11271 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
11272 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
11273 dwarf2_fetch_die_type_sect_off): ... here.
11274 * dwarf2/read.c (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 doc to header file.
11277
0dce4280
TV
112782020-02-26 Tom de Vries <tdevries@suse.de>
11279
11280 PR gdb/25603
11281 * symfile.c (set_initial_language): Exit-early if
11282 language_mode == language_mode_manual.
11283
450a1bfc
SM
112842020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
11285
11286 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
11287 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
11288 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
11289
9e80cfa1
AB
112902020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
11291
11292 * gdbtypes.c (create_array_type_with_stride): Handle negative
11293 array strides.
11294 * valarith.c (value_subscripted_rvalue): Likewise.
11295
09624f1f
LM
112962020-02-25 Luis Machado <luis.machado@linaro.org>
11297
11298 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
11299
8cb5117c
SM
113002020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
11301
11302 * loc.h (dwarf2_get_die_type): Move to...
11303 * read.h (dwarf2_get_die_type): ... here.
11304 * read.c (dwarf2_get_die_type): Move doc to header.
11305
c325c44e
JB
113062020-02-25 Joel Brobecker <brobecker@adacore.com>
11307
11308 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
11309 'gnulib/Makefile.in' to the list.
11310
4ac93832
TT
113112020-02-24 Tom Tromey <tom@tromey.com>
11312
11313 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
11314 Remove.
11315 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
11316 XOBNEWVEC.
11317
197400e8
TT
113182020-02-24 Tom Tromey <tom@tromey.com>
11319
11320 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
11321 New method.
11322 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
11323 (dw2_do_instantiate_symtab, dw2_get_file_names)
11324 (build_type_psymtab_dependencies, load_full_type_unit): Update.
11325
76935768
TT
113262020-02-24 Tom Tromey <tom@tromey.com>
11327
11328 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
11329 make_scoped_restore.
11330 (dwarf2_psymtab::read_symtab): Don't clear
11331 reading_partial_symbols.
11332
a88ef40d
TV
113332020-02-24 Tom de Vries <tdevries@suse.de>
11334
11335 PR gdb/25592
11336 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
11337
c9af6521
TV
113382020-02-24 Tom de Vries <tdevries@suse.de>
11339
11340 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
11341 commands layout next/prev/regs.
11342
5707a07a
TT
113432020-02-22 Tom Tromey <tom@tromey.com>
11344
11345 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
11346 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
11347
3b0fb49e
TT
113482020-02-22 Tom Tromey <tom@tromey.com>
11349
11350 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
11351
283be8bf
TT
113522020-02-22 Tom Tromey <tom@tromey.com>
11353
11354 * tui/tui-win.c (_initialize_tui_win): Add usage text.
11355 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
11356 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
11357 * tui/tui.c (_initialize_tui): Add usage text.
11358
ca793b96
TT
113592020-02-22 Tom Tromey <tom@tromey.com>
11360
11361 * tui/tui-win.c (tui_set_focus_command)
11362 (tui_set_win_height_command): Use error_no_arg.
11363 (_initialize_tui_win): Update help text.
11364 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
11365
432b5c40
TT
113662020-02-22 Tom Tromey <tom@tromey.com>
11367
11368 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
11369 * tui/tui-disasm.h (struct tui_disasm_window)
11370 <display_start_addr>: Declare.
11371 * tui/tui-source.h (struct tui_source_window)
11372 <display_start_addr>: Declare.
11373 * tui/tui-winsource.h (struct tui_source_window_base)
11374 <show_source_line, display_start_addr>: New methods.
11375 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
11376 Rename and move to protected section.
11377 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
11378 (tui_source_window_base::do_erase_source_content): Update.
11379 (tui_source_window_base::show_source_line): Now a method.
11380 (tui_source_window_base::show_source_content)
11381 (tui_source_window_base::tui_source_window_base)
11382 (tui_source_window_base::rerender)
11383 (tui_source_window_base::refill)
11384 (tui_source_window_base::do_scroll_horizontal)
11385 (tui_source_window_base::set_is_exec_point_at)
11386 (tui_source_window_base::update_breakpoint_info)
11387 (tui_source_window_base::update_exec_info): Update.
11388 * tui/tui-source.c (tui_source_window::set_contents)
11389 (tui_source_window::showing_source_p)
11390 (tui_source_window::do_scroll_vertical)
11391 (tui_source_window::location_matches_p)
11392 (tui_source_window::line_is_displayed): Update.
11393 (tui_source_window::display_start_addr): New method.
11394 * tui/tui-disasm.c (tui_disasm_window::set_contents)
11395 (tui_disasm_window::do_scroll_vertical)
11396 (tui_disasm_window::location_matches_p): Update.
11397 (tui_disasm_window::display_start_addr): New method.
11398
01b1af32
TT
113992020-02-22 Tom Tromey <tom@tromey.com>
11400
11401 * NEWS: Add entry for gdb.register_window_type.
11402 * tui/tui-layout.h (window_factory): New typedef.
11403 (tui_register_window): Declare.
11404 * tui/tui-layout.c (saved_tui_windows): New global.
11405 (tui_apply_current_layout): Use it.
11406 (tui_register_window): New function.
11407 * python/python.c (do_start_initialization): Call
11408 gdbpy_initialize_tui.
11409 (python_GdbMethods): Add "register_window_type" function.
11410 * python/python-internal.h (gdbpy_register_tui_window)
11411 (gdbpy_initialize_tui): Declare.
11412 * python/py-tui.c: New file.
11413 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
11414
fc96d20b
TT
114152020-02-22 Tom Tromey <tom@tromey.com>
11416
11417 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
11418
935c78c0
TT
114192020-02-22 Tom Tromey <tom@tromey.com>
11420
11421 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
11422 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
11423 * tui/tui-data.c (tui_set_win_with_focus): Remove.
11424 (tui_set_win_focus_to): Move from tui-win.c.
11425
0240c8f1
TT
114262020-02-22 Tom Tromey <tom@tromey.com>
11427
11428 * tui/tui-layout.c (make_standard_window, get_locator_window): New
11429 functions.
11430 (known_window_types): New global.
11431 (tui_get_window_by_name): Reimplement.
11432 (initialize_known_windows): New function.
11433 (validate_window_name): Rewrite.
11434 (_initialize_tui_layout): Call initialize_known_windows.
11435
fdb01f0c
TT
114362020-02-22 Tom Tromey <tom@tromey.com>
11437
11438 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
11439 Remove constants.
11440 * tui/tui-winsource.h (struct tui_source_window_base)
11441 <tui_source_window_base>: Remove parameter.
11442 * tui/tui-winsource.c
11443 (tui_source_window_base::tui_source_window_base): Remove
11444 parameter.
11445 (tui_source_window_base::refill): Update.
11446 * tui/tui-stack.h (struct tui_locator_window)
11447 <tui_locator_window>: Update.
11448 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
11449 Default the constructor.
11450 * tui/tui-regs.h (struct tui_data_item_window)
11451 <tui_data_item_window>: Default the constructor.
11452 (struct tui_data_window) <tui_data_window>: Likewise.
11453 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
11454 Default the constructor.
11455 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
11456 Default the constructor.
11457 <type>: Remove.
11458 (struct tui_win_info) <tui_win_info>: Default the constructor.
11459 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
11460 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
11461 Default the constructor.
11462
865a5aec
TT
114632020-02-22 Tom Tromey <tom@tromey.com>
11464
11465 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
11466 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
11467 * tui/tui-win.c (tui_resize_all): Don't call
11468 tui_delete_invisible_windows.
11469 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
11470 done.
11471 (tui_set_layout): Update.
11472 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
11473 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
11474 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
11475
e098d18c
TT
114762020-02-22 Tom Tromey <tom@tromey.com>
11477
11478 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
11479 correctly.
11480
eb9c8874
TT
114812020-02-22 Tom Tromey <tom@tromey.com>
11482
11483 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
11484
7eed1a8e
TT
114852020-02-22 Tom Tromey <tom@tromey.com>
11486
11487 * tui/tui-winsource.h (struct tui_source_window_iterator)
11488 <inner_iterator>: New etytypedef.
11489 <tui_source_window_iterator>: Take "end" parameter.
11490 <tui_source_window_iterator>: Take iterator.
11491 <operator*, advance>: Update.
11492 <m_iter>: Change type.
11493 <m_end>: New field.
11494 (struct tui_source_windows) <begin, end>: Update.
11495 * tui/tui-layout.c (tui_windows): New global.
11496 (tui_apply_current_layout): Clear tui_windows.
11497 (tui_layout_window::apply): Update tui_windows.
11498 * tui/tui-data.h (tui_windows): Declare.
11499 (all_tui_windows): Now inline function.
11500 (class tui_window_iterator, struct all_tui_windows): Remove.
11501
7c043ba6
TT
115022020-02-22 Tom Tromey <tom@tromey.com>
11503
11504 PR tui/17850:
11505 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
11506 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
11507 "height" argument.
11508 (class tui_layout_window) <get_sizes>: Likewise.
11509 (class tui_layout_split) <tui_layout_split>: Add "vertical"
11510 argument.
11511 <get_sizes>: Add "height" argument.
11512 <m_vertical>: New field.
11513 * tui/tui-layout.c (tui_layout_split::clone): Update.
11514 (tui_layout_split::get_sizes): Add "height" argument.
11515 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
11516 (tui_new_layout_command): Parse "-horizontal".
11517 (_initialize_tui_layout): Update help string.
11518 (tui_layout_split::specification): Add "-horizontal" when needed.
11519 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
11520 argument.
11521 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
11522 New methods.
11523
6bc56648
TT
115242020-02-22 Tom Tromey <tom@tromey.com>
11525
11526 * tui/tui-layout.h (enum tui_adjust_result): New.
11527 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
11528 (class tui_layout_window) <adjust_size>: Return
11529 tui_adjust_result. Rewrite.
11530 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
11531 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
11532
c22fef7e
TT
115332020-02-22 Tom Tromey <tom@tromey.com>
11534
11535 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
11536 parameter and return types.
11537 (class tui_layout_base) <specification>: Add "depth".
11538 (class tui_layout_window) <specification>: Add "depth".
11539 (class tui_layout_split) <specification>: Add "depth".
11540 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
11541 and return types.
11542 (tui_new_layout_command): Parse sub-layouts.
11543 (_initialize_tui_layout): Update help string.
11544 (tui_layout_window::specification): Add "depth".
11545 (add_layout_command): Update.
11546
ee325b61
TT
115472020-02-22 Tom Tromey <tom@tromey.com>
11548
11549 * NEWS: Add "tui new-layout" item.
11550 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
11551 Add new-layout command to help text.
11552 (validate_window_name): New function.
11553 (tui_new_layout_command): New function.
11554 (_initialize_tui_layout): Register "new-layout".
11555 (tui_layout_window::specification): New method.
11556 (tui_layout_window::specification): New method.
11557 * tui/tui-layout.h (class tui_layout_base) <specification>: New
11558 method.
11559 (class tui_layout_window) <specification>: New method.
11560 (class tui_layout_split) <specification>: New method.
11561
416eb92d
TT
115622020-02-22 Tom Tromey <tom@tromey.com>
11563
11564 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
11565 * tui/tui-win.c (window_name_completer): Update comment.
11566 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
11567 Declare method.
11568 (class tui_layout_window) <replace_window>: Likewise.
11569 (class tui_layout_split) <replace_window>: Likewise.
11570 (tui_set_layout): Don't declare.
11571 (tui_set_initial_layout): Declare function.
11572 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
11573 (asm_regs_layout): New globals.
11574 (tui_current_layout, show_layout): Remove.
11575 (tui_set_layout, tui_add_win_to_layout): Rewrite.
11576 (find_layout, tui_apply_layout): New function.
11577 (layout_completer): Remove.
11578 (tui_next_layout): Reimplement.
11579 (tui_next_layout_command): New function.
11580 (tui_set_initial_layout, tui_prev_layout_command): New functions.
11581 (tui_regs_layout): Reimplement.
11582 (tui_regs_layout_command): New function.
11583 (extract_display_start_addr): Rewrite.
11584 (next_layout, prev_layout): Remove.
11585 (tui_layout_window::replace_window): New method.
11586 (tui_layout_split::replace_window): New method.
11587 (destroy_layout): New function.
11588 (layout_list): New global.
11589 (add_layout_command): New function.
11590 (initialize_layouts): Update.
11591 (tui_layout_command): New function.
11592 (_initialize_tui_layout): Install "layout" commands.
11593 * tui/tui-data.h (enum tui_layout_type): Remove.
11594 (tui_current_layout): Don't declare.
11595
0dbc2fc7
TT
115962020-02-22 Tom Tromey <tom@tromey.com>
11597
11598 * tui/tui-regs.c (tui_reg_layout): Remove.
11599 (tui_reg_command): Use tui_regs_layout.
11600 * tui/tui-layout.h (tui_reg_command): Declare.
11601 * tui/tui-layout.c (tui_reg_command): New function.
11602
5afe342e
TT
116032020-02-22 Tom Tromey <tom@tromey.com>
11604
11605 * tui/tui.c (tui_rl_delete_other_windows): Call
11606 tui_remove_some_windows.
11607 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
11608 Declare method.
11609 (class tui_layout_window) <remove_windows>: New method.
11610 (class tui_layout_split) <remove_windows>: Declare.
11611 (tui_remove_some_windows): Declare.
11612 * tui/tui-layout.c (tui_remove_some_windows): New function.
11613 (tui_layout_split::remove_windows): New method.
11614
427326a8
TT
116152020-02-22 Tom Tromey <tom@tromey.com>
11616
11617 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
11618 * tui/tui-layout.h (tui_next_layout): Declare.
11619 * tui/tui-layout.c (tui_next_layout): New function.
11620
3fe12b6d
TT
116212020-02-22 Tom Tromey <tom@tromey.com>
11622
11623 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
11624 correct coordinates.
11625
59b8b5d2
TT
116262020-02-22 Tom Tromey <tom@tromey.com>
11627
11628 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
11629 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
11630 DATA_WIN case.
11631
2a3d458b
TT
116322020-02-22 Tom Tromey <tom@tromey.com>
11633
11634 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
11635 TUI_DISASM_WIN, not tui_win_list.
11636
3f0cbb04
TT
116372020-02-22 Tom Tromey <tom@tromey.com>
11638
11639 * valprint.c (generic_val_print_enum_1)
11640 (val_print_type_code_flags): Style member names.
11641 * rust-lang.c (val_print_struct, rust_print_enum)
11642 (rust_print_struct_def, rust_internal_print_type): Style member
11643 names.
11644 * p-valprint.c (pascal_object_print_value_fields): Style member
11645 names. Only call fprintf_symbol_filtered for static members.
11646 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
11647 * f-valprint.c (f_val_print): Style member names.
11648 * f-typeprint.c (f_type_print_base): Style member names.
11649 * cp-valprint.c (cp_print_value_fields): Style member names. Only
11650 call fprintf_symbol_filtered for static members.
11651 (cp_print_class_member): Style member names.
11652 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
11653 member names.
11654 * ada-valprint.c (ada_print_scalar): Style enum names.
11655 (ada_val_print_enum): Likewise.
11656 * ada-typeprint.c (print_enum_type): Style enum names.
11657
d4d947ae
TT
116582020-02-21 Tom Tromey <tom@tromey.com>
11659
11660 * psympriv.h (struct partial_symtab): Update comment.
11661
e94e944b
TT
116622020-02-21 Tom Tromey <tromey@adacore.com>
11663
11664 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
11665 type is CORE_ADDR.
11666
1eb73179
TV
116672020-02-21 Tom de Vries <tdevries@suse.de>
11668
11669 PR gdb/25534
11670 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
11671 if dependencies[i]->user != NULL.
11672
4f180d53
AT
116732020-02-21 Ali Tamur <tamur@google.com>
11674
11675 * dwarf2/read.c (dwarf2_name): Add null check.
11676
22b6cd70
TT
116772020-02-20 Tom Tromey <tom@tromey.com>
11678
11679 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
11680 ">=", in binary search.
11681 (dwarf2_find_containing_comp_unit): New overload.
11682 (run_test): New self-test.
11683 (_initialize_dwarf2_read): Register new test.
11684
bd0cf5a6
NC
116852020-02-20 Nelson Chu <nelson.chu@sifive.com>
11686
11687 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
11688 * riscv-tdep.h: Likewise.
11689 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
11690 rv32-only CSR.
11691 * features/riscv/64bit-csr.xml: Regenerated.
11692
3f702acd
SDJ
116932020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
11694 Tom Tromey <tom@tromey.com>
11695
11696 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
11697 of 'fputc_unfiltered'.
11698 (putchar_unfiltered): Call 'fputc_unfiltered'.
11699 (fputc_unfiltered): Call 'fputs_unfiltered'.
11700
d13c7322
AB
117012020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
11702
11703 * config.in: Regenerate.
11704 * configure: Regenerate.
11705 * configure.ac: Add --with-python-libdir option.
11706 * main.c: Use WITH_PYTHON_LIBDIR.
11707
869d8950
TT
117082020-02-19 Tom Tromey <tom@tromey.com>
11709
11710 * symtab.c (general_symbol_info::compute_and_set_names): Use
11711 obstack_strndup. Simplify call to symbol_set_demangled_name.
11712
298e9637
SM
117132020-02-19 Simon Marchi <simon.marchi@efficios.com>
11714
11715 * dwarf2/read.c (allocate_signatured_type_table,
11716 allocate_dwo_unit_table, allocate_type_unit_groups_table,
11717 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
11718 Remove objfile parameter, update all callers.
11719
08410482
DE
117202020-02-19 Doug Evans <dje@google.com>
11721
11722 PR rust/25535
11723 * rust-lang.c (rust_print_enum): Apply embedded_offset to
11724 rust_enum_variant calculation.
11725
dfdeeca1
TT
117262020-02-19 Tom Tromey <tromey@adacore.com>
11727
11728 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
11729
2ef5453b
TT
117302020-02-19 Tom Tromey <tromey@adacore.com>
11731
11732 * ada-lang.c (cache_symbol): Use obstack_strdup.
11733
9f1528a1
AB
117342020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
11735
11736 * configure: Regenerate.
11737
d3c22fa8
TT
117382020-02-19 Tom Tromey <tromey@adacore.com>
11739
11740 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
11741 NULL check.
11742
bf84f706
MR
117432020-02-19 Maciej W. Rozycki <macro@wdc.com>
11744
11745 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
11746
d1c9b20f
AB
117472020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
11748
11749 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
11750 if GDBSERVER is not defined.
11751 (riscv_tdesc_cache): Likewise, also store const target_desc.
11752 (STATIC_IN_GDB): Define.
11753 (riscv_create_target_description): Update declaration with
11754 STATIC_IN_GDB.
11755 (riscv_lookup_target_description): New function, only define if
11756 GDBSERVER is not defined.
11757 * arch/riscv.h (riscv_create_target_description): Declare only
11758 when GDBSERVER is defined.
11759 (riscv_lookup_target_description): New declaration when GDBSERVER
11760 is not defined.
11761 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
11762 (riscv_linux_read_features): ...this, and return
11763 riscv_gdbarch_features instead of target_desc.
11764 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
11765 (riscv_linux_read_description): Rename to...
11766 (riscv_linux_read_features): ...this.
11767 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
11768 Update to use riscv_gdbarch_features and
11769 riscv_lookup_target_description.
11770 * riscv-tdep.c (riscv_find_default_target_description): Use
11771 riscv_lookup_target_description instead of
11772 riscv_create_target_description.
11773
373d7ac0
SM
117742020-02-18 Simon Marchi <simon.marchi@efficios.com>
11775
11776 * valprint.c (generic_val_print_enum_1): When printing a flag
11777 enum with value 0 and there is no enumerator with value 0, print
11778 just "0" instead of "(unknown: 0x0)".
11779
b29a2df0
SM
117802020-02-18 Simon Marchi <simon.marchi@efficios.com>
11781
11782 * valprint.c (generic_val_print_enum_1): Print unknown part of
11783 flag enum in hex.
11784
6740f0cc
SM
117852020-02-18 Simon Marchi <simon.marchi@efficios.com>
11786
11787 * dwarf2/read.c (update_enumeration_type_from_children): Allow
11788 flag enums to contain duplicate enumerators.
11789 * valprint.c (generic_val_print_enum_1): Update comment.
11790
edd45eb0
SM
117912020-02-18 Simon Marchi <simon.marchi@efficios.com>
11792
11793 * dwarf2/read.c: Include "count-one-bits.h".
11794 (update_enumeration_type_from_children): If an enumerator has
11795 multiple bits set, don't treat the enumeration as a "flag enum".
11796 * valprint.c (generic_val_print_enum_1): Assert that enumerators
11797 of flag enums have 0 or 1 bit set.
11798
6d0cf446
BE
117992020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
11800
11801 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
11802 conversion.
11803 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11804 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
11805 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11806 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
11807 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11808
7001c1b7
SM
118092020-02-18 Simon Marchi <simon.marchi@efficios.com>
11810
11811 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
11812
fdb61c6c
SM
118132020-02-14 Simon Marchi <simon.marchi@efficios.com>
11814
11815 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
11816 displaced_step_closure_up.
11817 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
11818 (struct displaced_step_closure_up):
11819 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11820 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
11821 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
11822 Likewise.
11823 * gdbarch.sh (displaced_step_copy_insn): Likewise.
11824 * gdbarch.c, gdbarch.h: Re-generate.
11825 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
11826 displaced_step_closure_up.
11827 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11828 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
11829 * infrun.h (displaced_step_closure_up): New type alias.
11830 (struct displaced_step_inferior_state) <step_closure>: Change
11831 type to displaced_step_closure_up.
11832 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
11833 displaced_step_closure_up.
11834 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11835
a4a38eb4
TT
118362020-02-14 Tom Tromey <tom@tromey.com>
11837
11838 * minidebug.c (gnu_debug_key): New global.
11839 (find_separate_debug_file_in_section): Use it.
11840
e8217e61
SM
118412020-02-14 Simon Marchi <simon.marchi@efficios.com>
11842
11843 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
11844 std::unique_ptr.
11845 * gdbarch.c: Re-generate.
11846 * gdbarch.h: Re-generate.
11847 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
11848 change.
11849 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
11850 type to std::unique_ptr.
11851 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
11852 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11853 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
11854 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
11855 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
11856 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11857 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
11858 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
11859 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11860
d8d83535
SM
118612020-02-14 Simon Marchi <simon.marchi@efficios.com>
11862
11863 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
11864 std::unique_ptr.
11865 (displaced_step_clear): Rename to...
11866 (displaced_step_reset): ... this. Just call displaced->reset ().
11867 (displaced_step_clear_cleanup): Rename to...
11868 (displaced_step_reset_cleanup): ... this.
11869 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
11870 (displaced_step_fixup): Likewise.
11871 (resume_1): Likewise.
11872 (handle_inferior_event): Restore child's memory before calling
11873 displaced_step_fixup on the parent.
11874 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
11875 to std::unique_ptr.
11876 <step_closure>: Change type to std::unique_ptr.
11877
5f661e03
SM
118782020-02-14 Simon Marchi <simon.marchi@efficios.com>
11879
11880 * arm-tdep.c: Include count-one-bits.h.
11881 (cleanup_block_store_pc): Use count_one_bits.
11882 (cleanup_block_load_pc): Use count_one_bits.
11883 (arm_copy_block_xfer): Use count_one_bits.
11884 (thumb2_copy_block_xfer): Use count_one_bits.
11885 (thumb_copy_pop_pc_16bit): Use count_one_bits.
11886 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
11887 (thumb_get_next_pcs_raw): Use count_one_bits.
11888 (arm_get_next_pcs_raw): Use count_one_bits_l.
11889 * arch/arm.c (bitcount): Remove.
11890 * arch/arm.h (bitcount): Remove.
11891
8084e579
TT
118922020-02-14 Tom Tromey <tromey@adacore.com>
11893
11894 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
11895 Update.
11896 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
11897 * dwarf2/loc.c (call_site_find_chain_1): Return
11898 unique_xmalloc_ptr.
11899 (call_site_find_chain): Likewise.
11900
258bf0ee
RB
119012020-02-14 Richard Biener <rguenther@suse.de>
11902
11903 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
11904 on expression with division operators.
11905
f98a8458
AKS
119062020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11907
11908 * MAINTAINERS (Write After Approval): Adding myself.
11909
d1437c0e
TT
119102020-02-12 Tom Tromey <tom@tromey.com>
11911
11912 * event-loop.c (event_data, gdb_event, event_handler_func):
11913 Remove.
11914
3d4560f7
TT
119152020-02-12 Tom Tromey <tom@tromey.com>
11916
11917 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
11918 (dwarf2_frame_objfile_data): Add comment.
11919 (find_comp_unit, set_comp_unit): New functions.
11920 (dwarf2_frame_find_fde): Use find_comp_unit.
11921 (dwarf2_build_frame_info): Use set_comp_unit.
11922
21982304
TT
119232020-02-12 Tom Tromey <tom@tromey.com>
11924
11925 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
11926 (comp_unit): Don't initialize objfile.
11927 (execute_cfa_program): Add text_offset parameter.
11928 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
11929 (dwarf2_frame_cache): Update.
11930 (dwarf2_build_frame_info): Don't set "objfile" member.
11931
4debb237
TT
119322020-02-12 Tom Tromey <tom@tromey.com>
11933
11934 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
11935 (decode_frame_entry): Likewise.
11936 (dwarf2_build_frame_info): Update.
11937
0d404d44
TT
119382020-02-12 Tom Tromey <tom@tromey.com>
11939
11940 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
11941 (decode_frame_entry_1): Use the comp_unit obstack.
11942
a7a3ae5c
TT
119432020-02-12 Tom Tromey <tom@tromey.com>
11944
11945 * dwarf2/frame.c (struct comp_unit): Add initializers and
11946 constructor.
11947 (dwarf2_frame_objfile_data): Store a comp_unit.
11948 (dwarf2_frame_find_fde): Update.
11949 (dwarf2_build_frame_info): Use "new".
11950
a9d65418
TT
119512020-02-12 Tom Tromey <tom@tromey.com>
11952
11953 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
11954 (dwarf2_fde_table): Typedef for std::vector.
11955 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
11956 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
11957 (decode_frame_entry): Update.
11958 (dwarf2_build_frame_info): Use "new".
11959
7559c217
CB
119602020-02-12 Christian Biesinger <cbiesinger@google.com>
11961
11962 * arm-tdep.c (arm_gdbarch_init): Update.
11963 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
11964 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
11965 have_neon, is_m>: Change to bool.
11966
aeefc73c
CB
119672020-02-12 Christian Biesinger <cbiesinger@google.com>
11968
11969 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
11970
d27b8e5f
TT
119712020-02-12 Tom Tromey <tom@tromey.com>
11972
11973 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
11974
cd5900f3
HD
119752020-02-12 Hannes Domani <ssbssa@yahoo.de>
11976
11977 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
11978 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
11979
f056b22b
TT
119802020-02-11 Tom Tromey <tom@tromey.com>
11981
11982 * psymtab.h: Update comment.
11983
f92ff6b5
TT
119842020-02-11 Tom Tromey <tom@tromey.com>
11985
11986 * gdb_obstack.h (struct auto_obstack): Use
11987 DISABLE_COPY_AND_ASSIGN.
11988
3fd6912b
TT
119892020-02-11 Tom Tromey <tom@tromey.com>
11990
11991 * dwarf2/frame.h (struct objfile): Don't forward declare.
11992
69ed9b74
CB
119932020-02-11 Christian Biesinger <cbiesinger@google.com>
11994
11995 * cris-tdep.c (cris_supply_gregset): Change signature to match
11996 what struct regset expects.
11997 (cris_regset): New struct.
11998 (fetch_core_registers): Remove.
11999 (cris_iterate_over_regset_sections): New function.
12000 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
12001 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
12002
bda874f6
CB
120032020-02-11 Christian Biesinger <cbiesinger@google.com>
12004
12005 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
12006 registers.
12007
754e1564
CB
120082020-02-11 Christian Biesinger <cbiesinger@google.com>
12009
12010 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
12011
8ddd8e0e
SM
120122020-02-11 Simon Marchi <simon.marchi@efficios.com>
12013
12014 * configure: Re-generate.
12015
898e7f60
SM
120162020-02-11 Simon Marchi <simon.marchi@efficios.com>
12017
12018 * configure: Re-generate.
12019
58df732b
SM
120202020-02-11 Simon Marchi <simon.marchi@efficios.com>
12021
12022 * acinclude: Update warning.m4 path.
12023 * warning.m4: Move to gdbsupport.
12024
da5bd37e
TT
120252020-02-11 Tom Tromey <tromey@adacore.com>
12026
12027 * remote.c (remote_console_output): Update.
12028 * printcmd.c (printf_command): Update.
12029 * event-loop.c (gdb_wait_for_event): Update.
12030 * linux-nat.c (sigchld_handler): Update.
12031 * remote-sim.c (gdb_os_write_stdout): Update.
12032 (gdb_os_flush_stdout): Update.
12033 (gdb_os_flush_stderr): Update.
12034 (gdb_os_write_stderr): Update.
12035 * exceptions.c (print_exception): Update.
12036 * remote-fileio.c (remote_fileio_func_read): Update.
12037 (remote_fileio_func_write): Update.
12038 * tui/tui.c (tui_enable): Update.
12039 * tui/tui-interp.c (tui_interp::init): Update.
12040 * utils.c (init_page_info): Update.
12041 (putchar_unfiltered, fputc_unfiltered): Update.
12042 (gdb_flush): Update.
12043 (emit_style_escape): Update.
12044 (flush_wrap_buffer, fputs_maybe_filtered): Update.
12045 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
12046 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
12047 (stderr_file::write): Update.
12048 (stderr_file::puts): Update.
12049 * ui-file.h (ui_file_isatty, ui_file_write)
12050 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
12051 (ui_file_puts): Don't declare.
12052
85f0dd3c
TV
120532020-02-10 Tom de Vries <tdevries@suse.de>
12054
12055 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
12056 sentinel to char *.
12057
2e927613
TV
120582020-02-09 Tom de Vries <tdevries@suse.de>
12059
12060 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
12061 filename if it matches "<artificial>".
12062
6bafc845
HD
120632020-02-09 Hannes Domani <ssbssa@yahoo.de>
12064
12065 * windows-tdep.c (struct enum_value_name): New struct.
12066 (create_enum): New function.
12067 (windows_get_siginfo_type): Create and use enum types.
12068
7928d571
HD
120692020-02-09 Hannes Domani <ssbssa@yahoo.de>
12070
12071 * NEWS: Mention $_siginfo support for Windows.
12072 * windows-nat.c (handle_exception): Set siginfo_er.
12073 (windows_nat_target::mourn_inferior): Reset siginfo_er.
12074 (windows_xfer_siginfo): New function.
12075 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
12076 * windows-tdep.c (struct windows_gdbarch_data): New struct.
12077 (init_windows_gdbarch_data): New function.
12078 (get_windows_gdbarch_data): New function.
12079 (windows_get_siginfo_type): New function.
12080 (windows_init_abi): Register windows_get_siginfo_type.
12081 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
12082
6751ebae
TT
120832020-02-08 Tom Tromey <tom@tromey.com>
12084
12085 * dwarf2/read.c (class cutu_reader) <cutu_reader,
12086 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
12087 <keep>: Declare method.
12088 <m_keep>: Remove member.
12089 <~cutu_reader>: Remove.
12090 (cutu_reader::init_tu_and_read_dwo_dies): Update.
12091 (cutu_reader::cutu_reader): Update.
12092 (cutu_reader::keep): Rename from ~cutu_reader.
12093 (process_psymtab_comp_unit, build_type_psymtabs_1)
12094 (process_skeletonless_type_unit, load_partial_comp_unit)
12095 (load_full_comp_unit, dwarf2_read_addr_index)
12096 (read_signatured_type): Update.
12097
135f5437
TT
120982020-02-08 Tom Tromey <tom@tromey.com>
12099
12100 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
12101 "want_partial_unit" parameter.
12102 (process_psymtab_comp_unit): Change want_partial_unit to bool.
12103 Inline check for DW_TAG_partial_unit.
12104 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
12105
9f66ff1c
TT
121062020-02-08 Tom Tromey <tom@tromey.com>
12107
12108 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
12109 read.c.
12110 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
12111 read.c.
12112
c8a7a66f
TT
121132020-02-08 Tom Tromey <tom@tromey.com>
12114
12115 * dwarf2/read.c (read_address): Move to comp-unit.c.
12116 (dwarf2_rnglists_process, dwarf2_ranges_process)
12117 (read_attribute_value, dwarf_decode_lines_1)
12118 (var_decode_location, decode_locdesc): Update.
12119 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
12120 read.c. Remove "cu" parameter.
12121 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
12122 method.
12123
8266302d
TT
121242020-02-08 Tom Tromey <tom@tromey.com>
12125
12126 * dwarf2/read.c (read_attribute_value, read_indirect_string)
12127 (read_indirect_line_string): Update.
12128 * dwarf2/comp-unit.c (read_offset): Remove.
12129 (read_comp_unit_head): Update.
12130 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
12131 method.
12132 (read_offset): Don't declare.
12133
4057dfde
TT
121342020-02-08 Tom Tromey <tom@tromey.com>
12135
12136 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
12137 * dwarf2/read.c (struct comp_unit_head): Move to
12138 dwarf2/comp-unit.h.
12139 (enum class rcuh_kind): Move to comp-unit.h.
12140 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
12141 (read_comp_unit_head, error_check_comp_unit_head)
12142 (read_and_check_comp_unit_head): Move to comp-unit.c.
12143 (read_offset, dwarf_unit_type_name): Likewise.
12144 (create_debug_type_hash_table, read_cutu_die_from_dwo)
12145 (cutu_reader::cutu_reader, read_call_site_scope)
12146 (find_partial_die, follow_die_offset): Update.
12147 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
12148
24aa364d
TT
121492020-02-08 Tom Tromey <tom@tromey.com>
12150
12151 * dwarf2/read.c (read_offset_1): Move to leb.c.
12152 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
12153 (dwarf_decode_macro_bytes): Update.
12154 * dwarf2/leb.c (read_offset): Rename; move from read.c.
12155 * dwarf2/leb.h (read_offset): Declare.
12156
2c7d5afc
TT
121572020-02-08 Tom Tromey <tom@tromey.com>
12158
12159 * dwarf2/read.c (dwarf2_section_size): Remove.
12160 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
12161 Update.
12162 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
12163
4075cb26
TT
121642020-02-08 Tom Tromey <tom@tromey.com>
12165
12166 * dwarf2/read.c (read_initial_length): Move to leb.c.
12167 * dwarf2/leb.h (read_initial_length): Declare.
12168 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
12169 handle_nonstd parameter.
12170 * dwarf2/frame.c (read_initial_length): Remove.
12171 (decode_frame_entry_1): Update.
12172
09ba997f
TT
121732020-02-08 Tom Tromey <tom@tromey.com>
12174
12175 * dwarf2/loc.c (dwarf2_find_location_expression)
12176 (dwarf_evaluate_loc_desc::get_tls_address)
12177 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
12178 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
12179 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
12180 (dwarf2_compile_property_to_c)
12181 (dwarf2_loc_desc_get_symbol_read_needs)
12182 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
12183 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
12184 (loclist_describe_location, loclist_tracepoint_var_ref)
12185 (loclist_generate_c_location): Update.
12186 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
12187 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
12188 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
12189 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
12190 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
12191 (dwarf2_per_cu_data::addr_size)
12192 (dwarf2_per_cu_data::ref_addr_size)
12193 (dwarf2_per_cu_data::text_offset)
12194 (dwarf2_per_cu_data::addr_type): Now methods.
12195 (per_cu_header_read_in): Make per_cu "const".
12196 (dwarf2_version): Remove.
12197 (dwarf2_per_cu_data::int_type): Now a method.
12198 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
12199 (set_die_type, read_array_type, read_subrange_index_type)
12200 (read_tag_string_type, read_subrange_type): Update.
12201 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
12202 offset_size, ref_addr_size, text_offset, addr_type, version,
12203 objfile, int_type, addr_sized_int_type>: Declare methods.
12204
96c738c0
TT
122052020-02-08 Tom Tromey <tom@tromey.com>
12206
12207 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
12208 Move earlier.
12209
8fdd972c
TT
122102020-02-08 Tom Tromey <tom@tromey.com>
12211
12212 * dwarf2/read.h (dwarf_line_debug): Declare.
12213 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
12214 * dwarf2/read.c: Move line_header code to new files.
12215 (dwarf_line_debug): No longer static.
12216 * dwarf2/line-header.c: New file.
12217 * dwarf2/line-header.h: New file.
12218
03075812
TT
122192020-02-08 Tom Tromey <tom@tromey.com>
12220
12221 * dwarf2/read.c (struct line_header) <file_full_name,
12222 file_file_name>: Return unique_xmalloc_ptr.
12223 (line_header::file_file_name): Update.
12224 (line_header::file_full_name): Update.
12225 (dw2_get_file_names_reader): Update.
12226 (macro_start_file): Update.
12227
bb822404
TT
122282020-02-08 Tom Tromey <tom@tromey.com>
12229
12230 * dwarf2/read.c (struct line_header) <file_full_name,
12231 file_file_name>: Declare methods.
12232 (dw2_get_file_names_reader): Update.
12233 (file_file_name): Now a method.
12234 (file_full_name): Likewise.
12235 (macro_start_file): Update.
12236
009b64fc
TT
122372020-02-08 Tom Tromey <tom@tromey.com>
12238
12239 * dwarf2/read.c (dwarf_always_disassemble)
12240 (show_dwarf_always_disassemble): Move to loc.c.
12241 (_initialize_dwarf2_read): Move "always-disassemble" registration
12242 to loc.c.
12243 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
12244 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
12245 static.
12246 (show_dwarf_always_disassemble): Move from read.c.
12247 (_initialize_dwarf2loc): Move always-disassemble from read.c.
12248
5895093f
TT
122492020-02-08 Tom Tromey <tom@tromey.com>
12250
12251 * dwarf2/read.c (~dwarf2_per_objfile): Update.
12252 (create_quick_file_names_table): Return htab_up.
12253 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
12254 Update.
12255 * dwarf2/read.h (struct dwarf2_per_objfile)
12256 <quick_file_names_table>: Now htab_up.
12257
b3b32279
TT
122582020-02-08 Tom Tromey <tom@tromey.com>
12259
12260 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
12261
1d33d811
TT
122622020-02-08 Tom Tromey <tom@tromey.com>
12263
12264 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
12265 Rewrite.
12266 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
12267 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
12268 (abbrev_table::abbrev_table): No longer inline.
12269 (ABBREV_HASH_SIZE): Remove.
12270 (abbrev_table::m_abbrevs): Now an htab_up.
12271
86de1d91
TT
122722020-02-08 Tom Tromey <tom@tromey.com>
12273
12274 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
12275 (cutu_reader): Update.
12276 (build_type_psymtabs_1): Update.
12277 * dwarf2/abbrev.c (abbrev_table::read): Rename.
12278 (abbrev_table::alloc_abbrev): Update.
12279 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
12280 (abbrev_table::read): New static method, renamed from
12281 abbrev_table_read_table.
12282 (abbrev_table::alloc_abbrev)
12283 (abbrev_table::add_abbrev): Now private.
12284 (abbrev_table::abbrev_table): Now private.
12285 (abbrev_table::m_abbrev_obstack): Now private. Rename.
12286
0335378b
TT
122872020-02-08 Tom Tromey <tom@tromey.com>
12288
12289 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
12290 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
12291 htab_up.
12292
48b490f2
TT
122932020-02-08 Tom Tromey <tom@tromey.com>
12294
12295 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
12296 htab_up.
12297 (lookup_dwo_unit_in_dwp): Update.
12298 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
12299 on obstack.
12300
bc68fb19
TT
123012020-02-08 Tom Tromey <tom@tromey.com>
12302
12303 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
12304 obstack.
12305
d15acc42
TT
123062020-02-08 Tom Tromey <tom@tromey.com>
12307
12308 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
12309 line_header_hash.
12310 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
12311 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
12312 Change type to htab_up.
12313
eaa5fa8b
TT
123142020-02-08 Tom Tromey <tom@tromey.com>
12315
12316 * dwarf2/read.c (allocate_type_unit_groups_table): Return
12317 htab_up. Don't allocate on obstack.
12318 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
12319 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
12320 Change type to htab_up.
12321
b0b6a987
TT
123222020-02-08 Tom Tromey <tom@tromey.com>
12323
12324 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
12325 Change type to htab_up.
12326 * dwarf2/read.c (create_signatured_type_table_from_index)
12327 (create_signatured_type_table_from_debug_names)
12328 (create_all_type_units, add_type_unit)
12329 (lookup_dwo_signatured_type, lookup_signatured_type)
12330 (process_skeletonless_type_unit): Update.
12331 (create_debug_type_hash_table, create_debug_types_hash_table):
12332 Change type of types_htab.
12333 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
12334 htab_up. Don't allocate on obstack.
12335 (create_cus_hash_table): Change type of cus_htab parameter.
12336 (struct dwo_file) <cus, tus>: Now htab_up.
12337 (lookup_dwo_signatured_type, lookup_dwo_cutu)
12338 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
12339 (queue_and_load_all_dwo_tus): Update.
12340 * dwarf2/index-write.c (write_gdbindex): Update.
12341 (write_debug_names): Update.
12342
39856def
TT
123432020-02-08 Tom Tromey <tom@tromey.com>
12344
12345 * dwarf2/read.h (struct dwarf2_queue_item): Move from
12346 dwarf2/read.c. Remove "next" member. Add constructor ntad
12347 destructor.
12348 (struct dwarf2_per_objfile) <queue>: New member.
12349 * dwarf2/read.c (struct dwarf2_queue_item): Move to
12350 dwarf2/read.h.
12351 (dwarf2_queue, dwarf2_queue_tail): Remove.
12352 (class dwarf2_queue_guard): Add parameter to constructor. Use
12353 DISABLE_COPY_AND_ASSIGN.
12354 <m_per_objfile>: New member.
12355 <~dwarf2_queue_guard>: Rewrite.
12356 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
12357 Update.
12358 (~dwarf2_queue_item): New.
12359
3e225074
TT
123602020-02-08 Tom Tromey <tom@tromey.com>
12361
12362 * dwarf2/read.c (struct die_info) <has_children>: New member.
12363 (dw2_get_file_names_reader): Remove has_children.
12364 (dw2_get_file_names): Update.
12365 (read_cutu_die_from_dwo): Remove has_children.
12366 (cutu_reader::init_tu_and_read_dwo_dies)
12367 (cutu_reader::cutu_reader): Update.
12368 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
12369 Remove has_children.
12370 (build_type_psymtabs_1, process_skeletonless_type_unit)
12371 (load_partial_comp_unit, load_full_comp_unit): Update.
12372 (create_dwo_cu_reader): Remove has_children.
12373 (create_cus_hash_table, read_die_and_children): Update.
12374 (read_full_die_1,read_full_die): Remove has_children.
12375 (read_signatured_type): Update.
12376 (class cutu_reader) <has_children>: Remove.
12377
82ca8957
TT
123782020-02-08 Tom Tromey <tom@tromey.com>
12379
12380 * dwarf2/expr.c: Rename from dwarf2expr.c.
12381 * dwarf2/expr.h: Rename from dwarf2expr.h.
12382 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
12383 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
12384 * dwarf2/frame.c: Rename from dwarf2-frame.c.
12385 * dwarf2/frame.h: Rename from dwarf2-frame.h.
12386 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
12387 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
12388 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
12389 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
12390 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
12391 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
12392 * dwarf2/loc.c: Rename from dwarf2loc.c.
12393 * dwarf2/loc.h: Rename from dwarf2loc.h.
12394 * dwarf2/read.c: Rename from dwarf2read.c.
12395 * dwarf2/read.h: Rename from dwarf2read.h.
12396 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
12397 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
12398 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
12399 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
12400 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
12401 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
12402 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
12403 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
12404 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
12405 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
12406 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
12407 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
12408 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
12409 Update.
12410 * Makefile.in (COMMON_SFILES): Update.
12411 (HFILES_NO_SRCDIR): Update.
12412
9e35d499
TT
124132020-02-08 Tom Tromey <tom@tromey.com>
12414
12415 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
12416 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
12417
1eba2311
TT
124182020-02-08 Tom Tromey <tom@tromey.com>
12419
12420 * dwarf2read.h (struct die_info): Don't declare.
12421
e41c2da2
TT
124222020-02-08 Tom Tromey <tom@tromey.com>
12423
12424 * dwarf2read.h (die_info_ptr): Remove typedef.
12425
4fc6c0d5
TT
124262020-02-08 Tom Tromey <tom@tromey.com>
12427
12428 * dwarf2read.c (read_call_site_scope)
12429 (handle_data_member_location, dwarf2_add_member_fn)
12430 (mark_common_block_symbol_computed, read_common_block)
12431 (attr_to_dynamic_prop, partial_die_info::read)
12432 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
12433 (dwarf2_symbol_mark_computed, set_die_type): Update.
12434 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
12435 method.
12436 (attr_form_is_block): Don't declare.
12437 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
12438
cd6c91b4
TT
124392020-02-08 Tom Tromey <tom@tromey.com>
12440
12441 * dwarf2read.c (dwarf2_find_base_address, )
12442 (read_call_site_scope, rust_containing_type)
12443 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
12444 (handle_data_member_location, dwarf2_add_member_fn)
12445 (get_alignment, read_structure_type, process_structure_scope)
12446 (mark_common_block_symbol_computed, read_common_block)
12447 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
12448 (partial_die_info::read, read_attribute_value, new_symbol)
12449 (lookup_die_type, dwarf2_get_ref_die_offset)
12450 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
12451 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
12452 (dwarf2_symbol_mark_computed): Update.
12453 * dwarf2/attribute.h (struct attribute) <value_as_address,
12454 form_is_section_offset, form_is_constant, form_is_ref>: Declare
12455 methods.
12456 (value_as_address, attr_form_is_section_offset)
12457 (attr_form_is_constant, attr_form_is_ref): Don't declare.
12458 * dwarf2/attribute.c (attribute::value_as_address)
12459 (attribute::form_is_section_offset, attribute::form_is_constant)
12460 (attribute::form_is_ref): Now methods.
12461
162dce55
TT
124622020-02-08 Tom Tromey <tom@tromey.com>
12463
12464 * dwarf2read.c (struct attribute, DW_STRING)
12465 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
12466 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
12467 (attr_form_is_block, attr_form_is_section_offset)
12468 (attr_form_is_constant, attr_form_is_ref): Move.
12469 * dwarf2/attribute.h: New file.
12470 * dwarf2/attribute.c: New file, from dwarf2read.c.
12471 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
12472
3054dd54
TT
124732020-02-08 Tom Tromey <tom@tromey.com>
12474
12475 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
12476 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
12477 Move.
12478 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
12479 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
12480 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
12481 abbrev.c.
12482 * dwarf2/abbrev.h: New file.
12483 * dwarf2/abbrev.c: New file, from dwarf2read.c.
12484 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
12485
96b79293
TT
124862020-02-08 Tom Tromey <tom@tromey.com>
12487
12488 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
12489 (dwarf2_section_size, dwarf2_get_section_info)
12490 (create_signatured_type_table_from_debug_names)
12491 (create_addrmap_from_aranges, read_debug_names_from_section)
12492 (get_gdb_index_contents_from_section, read_comp_unit_head)
12493 (error_check_comp_unit_head, read_abbrev_offset)
12494 (create_debug_type_hash_table, init_cu_die_reader)
12495 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
12496 (read_comp_units_from_section, create_cus_hash_table)
12497 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
12498 (create_dwp_v2_section, dwarf2_rnglists_process)
12499 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
12500 (abbrev_table_read_table, read_indirect_string_at_offset_from)
12501 (read_indirect_string_from_dwz, read_addr_index_1)
12502 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
12503 (dwarf_decode_macro_bytes, dwarf_decode_macros)
12504 (fill_in_loclist_baton): Update.
12505 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
12506 get_containing_section, get_bfd_owner, get_bfd_section,
12507 get_file_name, get_id, get_flags, empty, read>: Declare methods.
12508 (dwarf2_read_section, get_section_name, get_section_file_name)
12509 (get_containing_section, get_section_bfd_owner)
12510 (get_section_bfd_section, get_section_name, get_section_file_name)
12511 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
12512 declare.
12513 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
12514 (dwarf2_section_info::get_bfd_owner)
12515 (dwarf2_section_info::get_bfd_section)
12516 (dwarf2_section_info::get_name)
12517 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
12518 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
12519 (dwarf2_section_info::read): Now methods.
12520 * dwarf-index-write.c (class debug_names): Update.
12521
2c86cff9
TT
125222020-02-08 Tom Tromey <tom@tromey.com>
12523
12524 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
12525 Move to dwarf2/section.h.
12526 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
12527 (get_section_bfd_section, get_section_name)
12528 (get_section_file_name, get_section_id, get_section_flags)
12529 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
12530 dwarf2/section.c.
12531 * dwarf2/section.h: New file.
12532 * dwarf2/section.c: New file, from dwarf2read.c.
12533 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
12534
f4382c45
TT
125352020-02-08 Tom Tromey <tom@tromey.com>
12536
12537 * dwarf2read.h (read_unsigned_leb128): Don't declare.
12538 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
12539 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
12540 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
12541 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
12542 * dwarf2/leb.h: New file, from dwarf2read.c.
12543 * dwarf2/leb.c: New file, from dwarf2read.c.
12544 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
12545 Remove.
12546 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
12547 (COMMON_SFILES): Add dwarf2/leb.c.
12548
01840b7a
JB
125492020-02-08 Joel Brobecker <brobecker@adacore.com>
12550
12551 GDB 9.1 released.
12552
dfcb27e4
IB
125532020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
12554
12555 PR gdb/25190:
aac66a4c
SM
12556 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
12557 * gdb/remote.c (remote_console_output): Update.
12558 * gdb/ui-file.c (fputs_unfiltered): Rename to...
12559 (ui_file_puts): ...this.
12560 * gdb/ui-file.h (ui_file_puts): Add declaration.
12561 * gdb/utils.c (emit_style_escape): Update.
12562 (flush_wrap_buffer): Update.
12563 (fputs_maybe_filtered): Update.
12564 (fputs_unfiltered): Add function.
dfcb27e4 12565
faa17681
IB
125662020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
12567
aac66a4c
SM
12568 * gdb/event-loop.c (gdb_wait_for_event): Update.
12569 * gdb/printcmd.c (printf_command): Update.
12570 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
12571 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
12572 (gdb_os_flush_stderr): Update.
12573 * gdb/remote.c (remote_console_output): Update.
12574 * gdb/ui-file.c (gdb_flush): Rename to...
12575 (ui_file_flush): ...this.
12576 (stderr_file::write): Update.
12577 (stderr_file::puts): Update.
12578 * gdb/ui-file.h (gdb_flush): Rename to...
12579 (ui_file_flush): ...this.
12580 * gdb/utils.c (gdb_flush): Add function.
12581 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 12582
5abbbe1d
TT
125832020-02-07 Tom Tromey <tromey@adacore.com>
12584
12585 PR breakpoints/24915:
12586 * source.c (find_and_open_source): Do not check basenames_may_differ.
12587
919adfe8
TT
125882020-02-07 Tom Tromey <tom@tromey.com>
12589
12590 * README: Update gdbserver documentation.
12591 * gdbserver: Move to top level.
12592 * configure.tgt (build_gdbserver): Remove.
12593 * configure.ac: Remove --enable-gdbserver.
12594 * configure: Rebuild.
12595 * Makefile.in (distclean): Don't mention gdbserver.
12596
1d5d29e7
SV
125972020-02-06 Shahab Vahedi <shahab@synopsys.com>
12598
12599 * source-cache.c (source_cache::ensure): Surround
12600 get_plain_source_lines with a try/catch.
12601 (source_cache::get_line_charpos): Get rid of try/catch
12602 and only check for the return value of "ensure".
12603 * tui/tui-source.c (tui_source_window::set_contents):
12604 Simplify "nlines" calculation.
12605
6eb1129c
SV
126062020-02-06 Shahab Vahedi <shahab@synopsys.com>
12607
12608 * MAINTAINERS (Write After Approval): Add myself.
12609
c6a42d11
CB
126102020-02-05 Christian Biesinger <cbiesinger@google.com>
12611
12612 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
12613 function call.
12614
c8ecdda6
CB
126152020-02-05 Christian Biesinger <cbiesinger@google.com>
12616
12617 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
12618
f6480e70
MR
126192020-02-05 Maciej W. Rozycki <macro@wdc.com>
12620
12621 * nat/riscv-linux-tdesc.h: New file.
12622 * nat/riscv-linux-tdesc.c: New file, taking code from...
12623 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
12624 ... here.
12625 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
12626 NATDEPFILES.
12627
dcc9fbc6
AB
126282020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
12629
12630 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
12631 we don't set the fake simulator ptid to the null_ptid.
12632
719546c4
SM
126332020-02-03 Simon Marchi <simon.marchi@efficios.com>
12634
12635 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
12636 * gdbthread.h (class thread_info) <resumed>: Likewise.
12637 * infrun.c (resume_1): Likewise.
12638 (proceed): Likewise.
12639 (infrun_thread_stop_requested): Likewise.
12640 (stop_all_threads): Likewise.
12641 (handle_inferior_event): Likewise.
12642 (restart_threads): Likewise.
12643 (finish_step_over): Likewise.
12644 (keep_going_stepped_thread): Likewise.
12645 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
12646 (linux_handle_extended_wait): Likewise.
12647 * record-btrace.c (get_thread_current_frame_id): Likewise.
12648 * record-full.c (record_full_wait_1): Likewise.
12649 * remote.c (remote_target::process_initial_stop_replies): Likewise.
12650 * target.c (target_resume): Likewise.
12651 * thread.c (set_running_thread): Likewise.
12652
e409c542
AKS
126532020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
12654
12655 * f-valprint.c (f77_print_array_1): Changed datatype of index
12656 variable to LONGEST from int to enable it to contain bound
12657 values correctly.
12658
ee98c0da
MR
126592020-02-03 Maciej W. Rozycki <macro@wdc.com>
12660
12661 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
12662 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
12663 offsets according to FLEN determined.
12664 (riscv_linux_nat_target::read_description): Determine FLEN
12665 dynamically.
12666 (riscv_linux_nat_target::fetch_registers): Size regset buffer
12667 according to FLEN determined.
12668 (riscv_linux_nat_target::store_registers): Likewise.
12669
aa66aac4
SV
126702020-02-01 Shahab Vahedi <shahab@synopsys.com>
12671
12672 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
12673 when reg->group is empty and reggroup is not.
12674
fd9faca8
TT
126752020-01-31 Tom Tromey <tromey@adacore.com>
12676
12677 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
12678 Call beneath target's mourn_inferior after unpushing.
12679
42330a68
AB
126802020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
12681
12682 PR tui/9765
12683 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
12684 have enough lines to fill the screen, still return the lowest
12685 address we found.
12686
7a27a45b
AB
126872020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
12688
12689 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
12690 '-', '<', and '>' commands.
12691
c47f70e2
PA
126922020-01-29 Pedro Alves <palves@redhat.com>
12693 Sergio Durigan Junior <sergiodj@redhat.com>
12694
12695 * infcmd.c (construct_inferior_arguments): Assert that
12696 'argc' is greater than 0.
12697
5133a315
LM
126982020-01-29 Luis Machado <luis.machado@linaro.org>
12699
12700 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
12701 (BRK_INSN_MASK): Define to 0xd4200000.
12702 (aarch64_program_breakpoint_here_p): New function.
12703 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
12704 * arch-utils.c (default_program_breakpoint_here_p): Moved from
12705 breakpoint.c.
12706 * arch-utils.h (default_program_breakpoint_here_p): Moved from
12707 breakpoint.h
12708 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
12709 call gdbarch_program_breakpoint_here_p.
12710 (program_breakpoint_here): Moved to arch-utils.c, renamed to
12711 default_program_breakpoint_here_p, changed return type to bool and
12712 simplified.
12713 * breakpoint.h (program_breakpoint_here): Moved prototype to
12714 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
12715 return type to bool.
12716 * gdbarch.c: Regenerate.
12717 * gdbarch.h: Regenerate.
12718 * gdbarch.sh (program_breakpoint_here_p): New method.
12719 * infrun.c (handle_signal_stop): Call
12720 gdbarch_program_breakpoint_here_p.
12721
168f8c6b
TT
127222020-01-26 Tom Tromey <tom@tromey.com>
12723
12724 * ctfread.c (struct ctf_fp_info): Reindent.
12725 (_initialize_ctfread): Remove.
12726
128a391f
TT
127272020-01-26 Tom Tromey <tom@tromey.com>
12728
12729 * psymtab.c (partial_map_expand_apply)
12730 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
12731 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
12732 (psym_print_stats, psym_expand_symtabs_for_function)
12733 (psym_map_symbol_filenames, psym_map_matching_symbols)
12734 (psym_expand_symtabs_matching)
12735 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
12736 (maintenance_check_psymtabs): Use new methods.
12737 * psympriv.h (struct partial_symtab) <readin_p,
12738 get_compunit_symtab>: New methods.
12739 <readin, compunit_symtab>: Remove members.
12740 (struct standard_psymtab): New.
12741 (struct legacy_psymtab): Derive from standard_psymtab.
12742 * dwarf2read.h (struct dwarf2_psymtab): Derive from
12743 standard_psymtab.
12744 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
12745
0494dbec
TT
127462020-01-26 Tom Tromey <tom@tromey.com>
12747
12748 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
12749 read_dependencies. Add assert.
12750 * psymtab.c (partial_symtab::read_dependencies): New method.
12751 * psympriv.h (struct partial_symtab) <read_dependencies>: New
12752 method.
12753 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
12754 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
12755 read_dependencies.
12756 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
12757 Add assert.
12758
8566b89b
TT
127592020-01-26 Tom Tromey <tom@tromey.com>
12760
12761 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
12762 Call expand_psymtab.
12763 (xcoff_read_symtab): Call expand_psymtab.
12764 (xcoff_start_psymtab, xcoff_end_psymtab): Set
12765 legacy_expand_psymtab.
12766 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
12767 method.
12768 (struct legacy_psymtab) <expand_psymtab>: Implement.
12769 <legacy_expand_psymtab>: New member.
12770 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
12771 (parse_partial_symbols): Set legacy_expand_psymtab.
12772 (psymtab_to_symtab_1): Change argument order. Call
12773 expand_psymtab.
12774 (new_psymtab): Set legacy_expand_psymtab.
12775 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
12776 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
12777 expand_psymtab.
12778 (dwarf2_psymtab::expand_psymtab): Rename from
12779 psymtab_to_symtab_1. Call expand_psymtab.
12780 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
12781 (dbx_end_psymtab): Likewise.
12782 (dbx_psymtab_to_symtab_1): Change argument order. Call
12783 expand_psymtab.
12784 (dbx_read_symtab): Call expand_psymtab.
12785 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
12786 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
12787 (ctf_psymtab::read_symtab): Call expand_psymtab.
12788
077cbab2
TT
127892020-01-26 Tom Tromey <tom@tromey.com>
12790
12791 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
12792 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
12793 messages.
12794 * mdebugread.c (mdebug_read_symtab): Remove prints.
12795 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
12796 assert.
12797 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
12798
891813be
TT
127992020-01-26 Tom Tromey <tom@tromey.com>
12800
12801 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
12802 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
12803 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
12804 legacy_symtab.
12805 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
12806 * psymtab.c (psymtab_to_symtab): Call method.
12807 (dump_psymtab): Update.
12808 * psympriv.h (struct partial_symtab): Add virtual destructor.
12809 <read_symtab>: New method.
12810 (struct legacy_symtab): New.
12811 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
12812 (struct pst_map) <pst>: Now a legacy_psymtab.
12813 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
12814 (new_psymtab): Use legacy_psymtab.
12815 * dwarf2read.h (struct dwarf2_psymtab): New.
12816 (struct dwarf2_per_cu_data) <psymtab>: Use it.
12817 * dwarf2read.c (dwarf2_create_include_psymtab)
12818 (dwarf2_build_include_psymtabs, create_type_unit_group)
12819 (create_partial_symtab, process_psymtab_comp_unit_reader)
12820 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
12821 (set_partial_user): Use dwarf2_psymtab.
12822 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
12823 (psymtab_to_symtab_1, process_full_comp_unit)
12824 (process_full_type_unit, dwarf2_ranges_read)
12825 (dwarf2_get_pc_bounds, psymtab_include_file_name)
12826 (dwarf_decode_lines): Use dwarf2_psymtab.
12827 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
12828 (add_address_entry_worker, write_one_signatured_type)
12829 (recursively_count_psymbols, recursively_write_psymbols)
12830 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
12831 (write_debug_names): Likewise.
12832 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
12833 <pst>: Now a legacy_psymtab.
12834 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
12835 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
12836 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
12837 * ctfread.c (struct ctf_psymtab): New.
12838 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
12839 ctf_psymtab.
12840 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
12841 (create_partial_symtab): Return a ctf_psymtab.
12842 (scan_partial_symbols): Update.
12843
c3693a1d
TT
128442020-01-26 Tom Tromey <tom@tromey.com>
12845
12846 * xcoffread.c (xcoff_start_psymtab): Use new.
12847 * psymtab.c (partial_symtab::partial_symtab): New constructor,
12848 renamed from start_psymtab_common.
12849 * psympriv.h (struct partial_symtab): Add new constructor.
12850 (start_psymtab_common): Don't declare.
12851 * mdebugread.c (parse_partial_symbols): Use new.
12852 * dwarf2read.c (create_partial_symtab): Use new.
12853 * dbxread.c (start_psymtab): Use new.
12854 * ctfread.c (create_partial_symtab): Use new.
12855
32caafd0
TT
128562020-01-26 Tom Tromey <tom@tromey.com>
12857
12858 * xcoffread.c (xcoff_end_psymtab): Use new.
12859 * psymtab.c (start_psymtab_common): Use new.
12860 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
12861 Update.
12862 * psympriv.h (struct partial_symtab): Add parameters to
12863 constructor. Don't inline.
12864 (allocate_psymtab): Don't declare.
12865 * mdebugread.c (new_psymtab): Use new.
12866 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
12867 * dbxread.c (dbx_end_psymtab): Use new.
12868
abaa2f23
TT
128692020-01-26 Tom Tromey <tom@tromey.com>
12870
12871 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
12872 allocate_psymtab. Update documentation.
12873 * psymtab.c (psymtab_storage::install_psymtab): Rename from
12874 allocate_psymtab. Do not use new.
12875 (allocate_psymtab): Use new. Update.
12876
6d94535f
TT
128772020-01-26 Tom Tromey <tom@tromey.com>
12878
12879 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
12880 * psymtab.c (psym_print_stats): Update.
12881 * psympriv.h (struct partial_symtab) <readin,
12882 psymtabs_addrmap_supported, anonymous>: Now bool.
12883 * mdebugread.c (psymtab_to_symtab_1): Update.
12884 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
12885 (build_type_psymtabs_reader, psymtab_to_symtab_1)
12886 (process_full_comp_unit, process_full_type_unit): Update.
12887 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
12888 * ctfread.c (psymtab_to_symtab): Update.
12889
6f17252b
TT
128902020-01-26 Tom Tromey <tom@tromey.com>
12891
12892 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
12893 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
12894 * psymtab.c (psymtab_storage): Delete psymtabs.
12895 (psymtab_storage::allocate_psymtab): Use new.
12896 (psymtab_storage::discard_psymtab): Use delete.
12897 * psympriv.h (struct partial_symtab): Add constructor and
12898 initializers.
12899
f6f1cebc
TT
129002020-01-26 Tom Tromey <tom@tromey.com>
12901
12902 * machoread.c: Do not include psympriv.h.
12903
e47e48f6
PW
129042020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12905
12906 * NEWS: Mention the new option and the set/show commands.
12907
a2fedca9
PW
129082020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12909
12910 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
12911 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
12912 (validate_exec_file): New variables, enums, functions.
12913 (exec_file_locate_attach, print_section_info): Style the filenames.
12914 (_initialize_exec): Install show_exec_file_mismatch_command and
12915 set_exec_file_mismatch_command.
12916 * gdbcore.h (validate_exec_file): Declare.
12917 * infcmd.c (attach_command): Call validate_exec_file.
12918 * remote.c ( remote_target::remote_add_inferior): Likewise.
12919
7ffa82e1
AB
129202020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12921
12922 * frame.c (find_frame_sal): Move call to get_next_frame into more
12923 inner scope.
12924 * inline-frame.c (inilne_state) <inline_state>: Update argument
12925 types.
12926 (inilne_state) <skipped_symbol>: Rename to...
12927 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
12928 (skip_inline_frames): Build vector of skipped symbols and use this
12929 to reate the inline_state.
12930 (inline_skipped_symbol): Add a comment and some assertions, fetch
12931 skipped symbol from the list.
12932
3d92a3e3
AB
129332020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12934
12935 * buildsym.c (lte_is_less_than): Delete.
12936 (buildsym_compunit::end_symtab_with_blockvector): Create local
12937 lambda function to sort line table entries, and use
12938 std::stable_sort instead of std::sort.
12939 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
12940 markers when looking for a previous line.
12941
94a72be7
AB
129422020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12943
12944 * dwarf2read.c (lnp_state_machine::record_line): Include
12945 end_sequence parameter in debug print out. Record the line if we
12946 are at an end_sequence marker even if it's not the start of a
12947 statement.
12948 * symmisc.c (maintenance_print_one_line_table): Print end of
12949 sequence markers with 'END' not '0'.
12950
53af73bf
PA
129512020-01-24 Pedro Alves <palves@redhat.com>
12952
12953 PR gdb/25410
12954 * thread.c (scoped_restore_current_thread::restore): Use
12955 switch_to_inferior_no_thread.
12956 * exec.c: Include "progspace-and-thread.h".
12957 (add_target_sections, remove_target_sections):
12958 scoped_restore_current_pspace_and_thread instead of
12959 scoped_restore_current_thread.
12960 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
12961 and aspace to the inferior before calling clone_program_space.
12962 Remove stale comment.
12963
3050c6f4
CB
129642020-01-24 Christian Biesinger <cbiesinger@google.com>
12965
12966 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
12967 (arm_netbsd_nat_target::fetch_registers): ...this.
12968 (arm_nbsd_nat_target::store_registers): Rename to...
12969 (arm_netbsd_nat_target::store_registers): ...this.
12970
73685c7e
CB
129712020-01-24 Christian Biesinger <cbiesinger@google.com>
12972
12973 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12974 register_t.
12975
89203d40
CB
129762020-01-24 Christian Biesinger <cbiesinger@google.com>
12977
12978 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
12979 Update comment.
12980 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
12981 Likewise.
12982 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
12983 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
12984 the correct replacement (iterate_over_regset_sections).
12985 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
12986 Update comment.
12987
1ba1ac88
AB
129882020-01-24 Graham Markall <graham.markall@embecosm.com>
12989
12990 PR gdb/23718
12991 * gdb/python/python.c (execute_gdb_command): Call
12992 async_enable_stdin in catch block.
12993
f3364a6d
AB
129942020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12995
12996 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
12997 SWITCH_THRU_ALL_UIS.
12998
733d0a67
AB
129992020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13000
13001 PR tui/9765
13002 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
13003 comment, add extra parameter, and update to store previous symbol
13004 when appropriate.
13005 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
13006 add extra parameter.
13007 * tui/tui-disasm.c (tui_disassemble): Update header comment,
13008 remove unneeded parameter, add try/catch around gdb_print_insn,
13009 rewrite to add items to asm_lines vector.
13010 (tui_find_backward_disassembly_start_address): New function.
13011 (tui_find_disassembly_address): Updated throughout.
13012 (tui_disasm_window::set_contents): Update for changes to
13013 tui_disassemble.
13014 (tui_disasm_window::do_scroll_vertical): No need to adjust the
13015 number of lines to scroll.
13016
b3b3bada
SM
130172020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
13018
13019 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
13020 (SECT_OFF_DATA): Likewise.
13021 (SECT_OFF_RODATA): Likewise.
13022 (SECT_OFF_TEXT): Likewise.
13023 (SECT_OFF_BSS): Likewise.
13024 (struct objfile) <text_section_offset, data_section_offset>: New
13025 methods.
13026 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
13027 objfile::text_section_offset.
13028 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
13029 * coffread.c (coff_symtab_read): Likewise.
13030 (enter_linenos): Likewise.
13031 (process_coff_symbol): Likewise.
13032 * ctfread.c (get_objfile_text_range): Likewise.
13033 * dtrace-probe.c (dtrace_probe::get_relocated_address):
13034 Use objfile::data_section_offset.
13035 * dwarf2-frame.c (execute_cfa_program): Use
13036 objfile::text_section_offset.
13037 (dwarf2_frame_find_fde): Likewise.
13038 * dwarf2read.c (create_addrmap_from_index): Likewise.
13039 (create_addrmap_from_aranges): Likewise.
13040 (dw2_find_pc_sect_compunit_symtab): Likewise.
13041 (process_psymtab_comp_unit_reader): Likewise.
13042 (add_partial_symbol): Likewise.
13043 (add_partial_subprogram): Likewise.
13044 (process_full_comp_unit): Likewise.
13045 (read_file_scope): Likewise.
13046 (read_func_scope): Likewise.
13047 (read_lexical_block_scope): Likewise.
13048 (read_call_site_scope): Likewise.
13049 (dwarf2_rnglists_process): Likewise.
13050 (dwarf2_ranges_process): Likewise.
13051 (dwarf2_ranges_read): Likewise.
13052 (dwarf_decode_lines_1): Likewise.
13053 (new_symbol): Likewise.
13054 (dwarf2_fetch_die_loc_sect_off): Likewise.
13055 (dwarf2_per_cu_text_offset): Likewise.
13056 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
13057 * hppa-tdep.c (read_unwind_info): Likewise.
13058 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
13059 * psympriv.h (struct partial_symtab): Likewise.
13060 * psymtab.c (find_pc_sect_psymtab): Likewise.
13061 * solib-svr4.c (enable_break): Likewise.
13062 * stap-probe.c (relocate_address): Use
13063 objfile::data_section_offset.
13064 * xcoffread.c (enter_line_range): Use
13065 objfile::text_section_offset.
13066 (read_xcoff_symtab): Likewise.
13067
ab53f382
SM
130682020-01-23 Simon Marchi <simon.marchi@efficios.com>
13069
13070 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
13071 declaration to narrower scopes.
13072
e7eee665
SM
130732020-01-23 Simon Marchi <simon.marchi@efficios.com>
13074
13075 * darwin-nat.h (struct darwin_exception_msg, enum
13076 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
13077 Move up.
13078 (class darwin_nat_target) <wait_1, check_new_threads,
13079 decode_exception_message, decode_message, stop_inferior,
13080 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
13081 * darwin-nat.c (darwin_check_new_threads): Rename to...
13082 (darwin_nat_target::check_new_threads): ... this.
13083 (darwin_suspend_inferior_it): Remove.
13084 (darwin_decode_exception_message): Rename to...
13085 (darwin_nat_target::decode_exception_message): ... this.
13086 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
13087 (darwin_decode_message): Rename to...
13088 (darwin_nat_target::decode_message): ... this.
13089 (cancel_breakpoint): Rename to...
13090 (darwin_nat_target::cancel_breakpoint): ... this.
13091 (darwin_wait): Rename to...
13092 (darwin_nat_target::wait_1): ... this. Use range-based for loop
13093 instead of iterate_over_inferiors.
13094 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
13095 (darwin_stop_inferior): Rename to...
13096 (darwin_nat_target::stop_inferior): ... this.
13097 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
13098 (darwin_init_thread_list): Rename to...
13099 (darwin_nat_target::init_thread_list): ... this.
13100 (darwin_ptrace_him): Rename to...
13101 (darwin_nat_target::ptrace_him): ... this.
13102 (darwin_nat_target::create_inferior): Pass lambda function to
13103 fork_inferior.
13104 (darwin_nat_target::detach): Call stop_inferior instead of
13105 darwin_stop_inferior.
13106 * fork-inferior.h (fork_inferior): Change init_trace_fun
13107 parameter to gdb::function_view.
13108 * fork-inferior.c (fork_inferior): Likewise.
13109
c162ed3e
HD
131102020-01-23 Hannes Domani <ssbssa@yahoo.de>
13111
13112 * i386-cygwin-tdep.c (core_process_module_section): Update.
13113 * windows-nat.c (struct lm_info_windows): Add text_offset.
13114 (windows_xfer_shared_libraries): Update.
13115 * windows-tdep.c (windows_xfer_shared_library):
13116 Add text_offset_cached argument.
13117 * windows-tdep.h (windows_xfer_shared_library): Update.
13118
a1237872
SM
131192020-01-21 Simon Marchi <simon.marchi@efficios.com>
13120
13121 * gdbarch.sh: Add declaration for _initialize_gdbarch.
13122
b3ee6dd9
SM
131232020-01-21 Simon Marchi <simon.marchi@efficios.com>
13124
13125 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
13126 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
13127 replace with range-based for.
13128 (gdbsim_interrupt_inferior): Remove.
13129 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
13130 with a range-based for. Inline code from
13131 gdbsim_interrupt_inferior.
13132
f9fac3c8
SM
131332020-01-21 Simon Marchi <simon.marchi@efficios.com>
13134
13135 * infrun.c (proceed): Fix indentation.
13136
f6474de9
TT
131372020-01-21 Tom Tromey <tromey@adacore.com>
13138
13139 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
13140 * python/python.c (python_extension_ops): Update.
13141 (gdbpy_colorize): New function.
13142 * python/lib/gdb/__init__.py (colorize): New function.
13143 * extension.h (ext_lang_colorize): Declare.
13144 * extension.c (ext_lang_colorize): New function.
13145 * extension-priv.h (struct extension_language_ops) <colorize>: New
13146 member.
13147 * cli/cli-style.c (_initialize_cli_style): Update help text.
13148
f0c702d4
LM
131492020-01-21 Luis Machado <luis.machado@linaro.org>
13150
13151 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
13152 <cond>: Change type to bool.
13153 (aarch64_displaced_step_b_cond): Update cond to use bool type.
13154 (aarch64_displaced_step_cb): Likewise.
13155 (aarch64_displaced_step_tb): Likewise.
13156
1ab139e5
LM
131572020-01-21 Luis Machado <luis.machado@linaro.org>
13158
13159 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
13160 output.
13161
0c271889
LM
131622020-01-21 Luis Machado <luis.machado@linaro.org>
13163
13164 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
13165 <pc_adjust>: Adjust the documentation.
13166 (aarch64_displaced_step_fixup): Check if PC really moved before
13167 adjusting it.
13168
4d89c1c7
TT
131692020-01-19 Tom Tromey <tom@tromey.com>
13170
13171 * disasm.c (~gdb_disassembler): New destructor.
13172 (gdb_buffered_insn_length): Call disassemble_free_target.
13173 * disasm.h (class gdb_disassembler): Declare destructor. Use
13174 DISABLE_COPY_AND_ASSIGN.
13175
c0ab21c2
TT
131762020-01-19 Tom Tromey <tom@tromey.com>
13177
13178 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
13179 (die_reader_func_ftype): Remove.
13180 (cutu_reader): New class.
13181 (dw2_get_file_names_reader): Remove "data" parameter.
13182 (dw2_get_file_names): Use cutu_reader.
13183 (create_debug_type_hash_table): Update.
13184 (read_cutu_die_from_dwo): Update comment.
13185 (lookup_dwo_unit): Add dwo_name parameter.
13186 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
13187 die_reader_func_ftype and data parameters.
13188 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
13189 Remove die_reader_func_ftype and data parameters.
13190 (~cutu_reader): New; from init_cutu_and_read_dies.
13191 (cutu_reader::cutu_reader): Rename from
13192 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
13193 and data parameters.
13194 (init_cutu_and_read_dies_simple): Remove.
13195 (struct process_psymtab_comp_unit_data): Remove.
13196 (process_psymtab_comp_unit_reader): Remove data parameter; add
13197 want_partial_unit and pretend_language parameters.
13198 (process_psymtab_comp_unit): Use cutu_reader.
13199 (build_type_psymtabs_reader): Remove data parameter.
13200 (build_type_psymtabs_1): Use cutu_reader.
13201 (process_skeletonless_type_unit): Likewise.
13202 (load_partial_comp_unit_reader): Remove.
13203 (load_partial_comp_unit): Use cutu_reader.
13204 (load_full_comp_unit_reader): Remove.
13205 (load_full_comp_unit): Use cutu_reader.
13206 (struct create_dwo_cu_data): Remove.
13207 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
13208 dwo_unit parameters.
13209 (create_cus_hash_table): Use cutu_reader.
13210 (struct dwarf2_read_addr_index_data): Remove.
13211 (dwarf2_read_addr_index_reader): Remove.
13212 (dwarf2_read_addr_index): Use cutu_reader.
13213 (read_signatured_type_reader): Remove.
13214 (read_signatured_type): Use cutu_reader.
13215
45bbae5c
TT
132162020-01-19 Tom Tromey <tom@tromey.com>
13217
13218 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
13219 * tui/tui-wingeneral.h (class tui_suppress_output): New.
13220 (tui_wrefresh): Declare.
13221 * tui/tui-wingeneral.c (suppress_output): New global.
13222 (tui_suppress_output, ~tui_suppress_output): New constructor and
13223 destructor.
13224 (tui_wrefresh): New function.
13225 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
13226 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
13227 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
13228 method.
13229 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
13230 tui_wrefresh.
13231 (tui_data_window::no_refresh): New method.
13232 (tui_data_item_window::refresh_window): Call tui_wrefresh.
13233 (tui_reg_command): Use tui_suppress_output
13234 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
13235 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
13236 method.
13237 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
13238
4f13c1c0
TT
132392020-01-19 Tom Tromey <tom@tromey.com>
13240
13241 * tui/tui-winsource.c (tui_update_source_windows_with_line):
13242 Handle case where symtab is null.
13243
fa47e446
SM
132442020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
13245
13246 * linux-fork.c (one_fork_p): Simplify.
13247
26f42329
SM
132482020-01-17 Simon Marchi <simon.marchi@efficios.com>
13249
13250 * top.c (struct qt_args): Remove.
13251 (kill_or_detach): Change return type to void, replace `void *`
13252 parameter with a proper one.
13253 (print_inferior_quit_action): Likewise.
13254 (quit_confirm): Use range-based for loop to iterate over inferiors.
13255 (quit_force): Likewise.
13256
a9ac81b1
SM
132572020-01-17 Simon Marchi <simon.marchi@efficios.com>
13258
13259 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
13260 `void *` parameter with proper parameters.
13261 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
13262 (print_one_inferior): Change return type to void, replace `void *`
13263 parameter with proper parameters.
13264 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
13265 inferiors.
13266 (get_other_inferior): Remove.
13267 (mi_cmd_remove_inferior): Use range-based loop to iterate over
13268 inferiors.
13269
788eca49
SM
132702020-01-17 Simon Marchi <simon.marchi@efficios.com>
13271
13272 * mi/mi-interp.c (report_initial_inferior): Remove.
13273 (mi_interp::init): Use range-based for to iterate over inferiors.
13274
d9bc85b6
SM
132752020-01-17 Simon Marchi <simon.marchi@efficios.com>
13276
13277 * python/py-inferior.c (build_inferior_list): Remove.
13278 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
13279
40c94099
CB
132802020-01-16 Christian Biesinger <cbiesinger@google.com>
13281
13282 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
13283 (btrace_stitch_trace): Likewise.
13284 * charset.c (intermediate_encoding): Likewise (vaild).
13285 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
13286 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
13287 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
13288
e0cdfe3c
HD
132892020-01-16 Hannes Domani <ssbssa@yahoo.de>
13290
13291 * windows-tdep.c (windows_get_tlb_type):
13292 Add rtl_user_process_parameters type.
13293
790f1718 132942020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 13295 Norbert Lange <nolange79@gmail.com>
790f1718
PA
13296
13297 PR build/24805
13298 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
13299 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
13300 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
13301 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
13302 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
13303 (ps_plog): Redeclare exported functions with default visibility.
13304
3112ed97
NA
133052020-01-16 Nitika Achra <Nitika.Achra@amd.com>
13306
13307 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
13308 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
13309
8dc3273e
SM
133102020-01-15 Simon Marchi <simon.marchi@efficios.com>
13311
13312 * infcmd.c (post_create_inferior): Use get_thread_regcache
13313 instead of get_current_regcache.
13314
ff47f4f0
TT
133152020-01-14 Tom Tromey <tom@tromey.com>
13316
13317 PR symtab/12535:
13318 * python/python.c (gdbpy_decode_line): Treat empty string the same
13319 as no argument.
13320
975f45b7
TT
133212020-01-14 Tom Tromey <tom@tromey.com>
13322
13323 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
13324
25e57356
TT
133252020-01-14 Tom Tromey <tom@tromey.com>
13326
13327 * nat/linux-btrace.c: Don't include <config.h>.
13328 * nat/linux-ptrace.c: Don't include <config.h>.
13329 * nat/x86-linux-dregs.c: Don't include <config.h>.
13330
05ea2a05
TT
133312020-01-14 Tom Tromey <tom@tromey.com>
13332
13333 * configure: Rebuild.
13334 * configure.ac: Move many checks to ../gdbsupport/common.m4.
13335
01027315
TT
133362020-01-14 Tom Tromey <tom@tromey.com>
13337
13338 * nat/x86-linux-dregs.c: Include configh.h.
13339 * nat/linux-ptrace.c: Include configh.h.
13340 * nat/linux-btrace.c: Include configh.h.
13341 * defs.h: Include config.h, bfd.h.
13342 * configure.ac: Don't source common.host.
13343 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
13344 * configure: Rebuild.
13345 * acinclude.m4: Update path.
13346 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
13347 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
13348 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
13349 (CLIBS): Add LIBSUPPORT.
13350 (CDEPS): Likewise.
13351 (COMMON_SFILES): Remove gdbsupport files.
13352 (HFILES_NO_SRCDIR): Likewise.
13353 (stamp-version): Update path to create-version.sh.
13354 (ALLDEPFILES): Remove gdbsupport files.
13355
b2ceabe8
TT
133562020-01-14 Tom Tromey <tom@tromey.com>
13357
13358 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
13359 USE_WIN32API when needed.
13360 * configure.ac (USE_WIN32API): Don't define.
13361 (WIN32LIBS): Use WIN32APILIBS.
13362 * configure: Rebuild.
13363
25c51f71
TT
133642020-01-14 Tom Tromey <tom@tromey.com>
13365
13366 * configure: Rebuild.
13367 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
13368
717c684d
BE
133692020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
13370
13371 * skip.c (skip_function_command): Make skip w/o arguments use the
13372 name of the inlined function if pc is inside any inlined function.
13373
7da6a5b9
LM
133742020-01-14 Luis Machado <luis.machado@linaro.org>
13375
13376 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
13377 * infrun.c (resume_1): Likewise.
13378 (handle_inferior_event): Remove stale comment.
13379 * linux-nat.c (linux_nat_target::resume): Update comments.
13380 (save_stop_reason): Likewise.
13381 (linux_nat_filter_event): Likewise.
13382 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
13383
44e4c775
AB
133842020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
13385
13386 * elfread.c (record_minimal_symbol): Set section index to 0 for
13387 non-allocatable sections.
13388
18a8505e
AT
13389
133902020-01-13 Ali Tamur <tamur@google.com>
13391
13392 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
13393 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
13394 to gdb::optional. Update comments.
13395 (dwo_file): Update comments.
13396 (read_attribute): Update API to take an additional out parameter,
13397 need_reprocess. This is used to mark attributes that need other
13398 attributes (e.g. str_offsets_base) for correct computation which may not
13399 have been read yet.
13400 (read_attribute_reprocess): New function declaration.
13401 (read_addr_index): Likewise.
13402 (read_dwo_str_index): Likewise.
13403 (read_stub_str_index): Likewise.
13404 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
13405 (lookup_addr_base): New function definition.
13406 (lookup_ranges_base): Likewise.
13407 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
13408 lookup_ranges_base.
13409 (init_cutu_and_read_dies): Update comments.
13410 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
13411 unit. This is used to inherit parent's str_offsets_base and addr_base.
13412 Update comments.
13413 (init_cutu_and_read_dies_simple): Reflect API changes.
13414 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
13415 (create_cus_hash_table): Change API to take parent compile unit.
13416 Reflect API changes.
13417 (open_and_init_dwo_file): Reflect API changes.
13418 (dwarf2_get_pc_bounds): Update comments.
13419 (dwarf2_record_block_ranges): Likewise.
13420 (read_full_die_1): Change implementation to reprocess attributes that
13421 need str_offsets_base and addr_base.
13422 (partial_die_info::read): Likewise.
13423 (read_attribute_reprocess): New function definition.
13424 (read_attribute_value): Change API to take an additional out parameter,
13425 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
13426 when a non-dwo compile unit has index based attributes.
13427 (read_attribute): Reflect API changes.
13428 (read_addr_index_1): Reflect API changes. Update comments.
13429 (dwarf2_read_addr_index_data): Reflect API changes.
13430 (dwarf2_read_addr_index): Likewise.
13431 (read_str_index): Change API and implementation. This becomes a helper
13432 to be used by the new string index related methods. Update error
13433 message and comments.
13434 (read_dwo_str_index): New function definition.
13435 (read_stub_str_index): Likewise.
13436 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
13437 * symfile.h (dwarf2_debug_sections): Likewise.
13438 * xcoffread.c (dwarf2_debug_sections): Likewise.
13439
0cac9354
SM
134402020-01-13 Simon Marchi <simon.marchi@efficios.com>
13441
13442 * gdbcore.h (struct core_fns) <core_read_registers>: Change
13443 core_reg_sect type to gdb_byte *.
13444 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
13445 * cris-tdep.c (fetch_core_registers): Likewise.
13446 * corelow.c (core_target::get_core_register_section): Change
13447 type of `contents` to gdb::byte_vector.
13448
9a6d629c
AB
134492020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
13450
13451 * tui/tui-wingeneral.c (box_win): Position the title in the center
13452 of the border.
13453
d8b2f9e3
SM
134542020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13455
13456 * corelow.c (core_target::get_core_register_section): Use
13457 std::vector instead of alloca.
13458
bb564c58
SM
134592020-01-13 Simon Marchi <simon.marchi@efficios.com>
13460
13461 * warning.m4: Add -Wmissing-declarations to build_warnings.
13462 * configure: Re-generate.
13463
6b366111
SM
134642020-01-13 Simon Marchi <simon.marchi@efficios.com>
13465
13466 * python/python.c (init__gdb_module): Add declaration.
13467
6c265988
SM
134682020-01-13 Simon Marchi <simon.marchi@efficios.com>
13469
13470 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
13471 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
13472 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
13473 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
13474 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
13475 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
13476 * ada-exp.y (_initialize_ada_exp): Add declaration.
13477 * ada-lang.c (_initialize_ada_language): Add declaration.
13478 * ada-tasks.c (_initialize_tasks): Add declaration.
13479 * agent.c (_initialize_agent): Add declaration.
13480 * aix-thread.c (_initialize_aix_thread): Add declaration.
13481 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
13482 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
13483 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
13484 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
13485 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
13486 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
13487 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
13488 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
13489 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
13490 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
13491 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
13492 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
13493 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
13494 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
13495 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
13496 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
13497 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
13498 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
13499 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
13500 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
13501 * annotate.c (_initialize_annotate): Add declaration.
13502 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
13503 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
13504 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
13505 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
13506 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
13507 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
13508 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
13509 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
13510 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
13511 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
13512 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
13513 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
13514 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
13515 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
13516 * auto-load.c (_initialize_auto_load): Add declaration.
13517 * auxv.c (_initialize_auxv): Add declaration.
13518 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
13519 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
13520 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
13521 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
13522 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
13523 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
13524 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
13525 * breakpoint.c (_initialize_breakpoint): Add declaration.
13526 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
13527 * btrace.c (_initialize_btrace): Add declaration.
13528 * charset.c (_initialize_charset): Add declaration.
13529 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
13530 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
13531 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
13532 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
13533 * cli/cli-script.c (_initialize_cli_script): Add declaration.
13534 * cli/cli-style.c (_initialize_cli_style): Add declaration.
13535 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
13536 * coffread.c (_initialize_coffread): Add declaration.
13537 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
13538 * compile/compile.c (_initialize_compile): Add declaration.
13539 * complaints.c (_initialize_complaints): Add declaration.
13540 * completer.c (_initialize_completer): Add declaration.
13541 * copying.c (_initialize_copying): Add declaration.
13542 * corefile.c (_initialize_core): Add declaration.
13543 * corelow.c (_initialize_corelow): Add declaration.
13544 * cp-abi.c (_initialize_cp_abi): Add declaration.
13545 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
13546 * cp-support.c (_initialize_cp_support): Add declaration.
13547 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
13548 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
13549 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
13550 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
13551 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
13552 * ctfread.c (_initialize_ctfread): Add declaration.
13553 * d-lang.c (_initialize_d_language): Add declaration.
13554 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
13555 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
13556 * dbxread.c (_initialize_dbxread): Add declaration.
13557 * dcache.c (_initialize_dcache): Add declaration.
13558 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
13559 * disasm.c (_initialize_disasm): Add declaration.
13560 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
13561 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
13562 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
13563 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
13564 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
13565 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
13566 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
13567 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
13568 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
13569 * elfread.c (_initialize_elfread): Add declaration.
13570 * exec.c (_initialize_exec): Add declaration.
13571 * extension.c (_initialize_extension): Add declaration.
13572 * f-lang.c (_initialize_f_language): Add declaration.
13573 * f-valprint.c (_initialize_f_valprint): Add declaration.
13574 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
13575 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
13576 * filesystem.c (_initialize_filesystem): Add declaration.
13577 * findcmd.c (_initialize_mem_search): Add declaration.
13578 * findvar.c (_initialize_findvar): Add declaration.
13579 * fork-child.c (_initialize_fork_child): Add declaration.
13580 * frame-base.c (_initialize_frame_base): Add declaration.
13581 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
13582 * frame.c (_initialize_frame): Add declaration.
13583 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
13584 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
13585 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
13586 * gcore.c (_initialize_gcore): Add declaration.
13587 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
13588 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
13589 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
13590 * gdbarch.c (_initialize_gdbarch): Add declaration.
13591 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
13592 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
13593 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
13594 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
13595 * go-lang.c (_initialize_go_language): Add declaration.
13596 * go32-nat.c (_initialize_go32_nat): Add declaration.
13597 * guile/guile.c (_initialize_guile): Add declaration.
13598 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
13599 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
13600 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
13601 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
13602 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
13603 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
13604 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
13605 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
13606 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
13607 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
13608 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
13609 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
13610 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
13611 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
13612 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
13613 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
13614 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
13615 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
13616 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
13617 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
13618 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
13619 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
13620 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
13621 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
13622 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
13623 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
13624 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
13625 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
13626 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
13627 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
13628 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
13629 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
13630 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
13631 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
13632 * infcall.c (_initialize_infcall): Add declaration.
13633 * infcmd.c (_initialize_infcmd): Add declaration.
13634 * inflow.c (_initialize_inflow): Add declaration.
13635 * infrun.c (_initialize_infrun): Add declaration.
13636 * interps.c (_initialize_interpreter): Add declaration.
13637 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
13638 * jit.c (_initialize_jit): Add declaration.
13639 * language.c (_initialize_language): Add declaration.
13640 * linux-fork.c (_initialize_linux_fork): Add declaration.
13641 * linux-nat.c (_initialize_linux_nat): Add declaration.
13642 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
13643 * linux-thread-db.c (_initialize_thread_db): Add declaration.
13644 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
13645 * m2-lang.c (_initialize_m2_language): Add declaration.
13646 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
13647 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
13648 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
13649 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
13650 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
13651 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
13652 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
13653 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
13654 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
13655 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
13656 * machoread.c (_initialize_machoread): Add declaration.
13657 * macrocmd.c (_initialize_macrocmd): Add declaration.
13658 * macroscope.c (_initialize_macroscope): Add declaration.
13659 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
13660 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
13661 * maint.c (_initialize_maint_cmds): Add declaration.
13662 * mdebugread.c (_initialize_mdebugread): Add declaration.
13663 * memattr.c (_initialize_mem): Add declaration.
13664 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
13665 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
13666 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
13667 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
13668 * mi/mi-main.c (_initialize_mi_main): Add declaration.
13669 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
13670 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
13671 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
13672 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
13673 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
13674 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
13675 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
13676 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
13677 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
13678 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
13679 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
13680 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
13681 * mipsread.c (_initialize_mipsread): Add declaration.
13682 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
13683 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
13684 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
13685 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
13686 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
13687 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
13688 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
13689 * nto-procfs.c (_initialize_procfs): Add declaration.
13690 * objc-lang.c (_initialize_objc_language): Add declaration.
13691 * observable.c (_initialize_observer): Add declaration.
13692 * opencl-lang.c (_initialize_opencl_language): Add declaration.
13693 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
13694 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
13695 * osabi.c (_initialize_gdb_osabi): Add declaration.
13696 * osdata.c (_initialize_osdata): Add declaration.
13697 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
13698 * parse.c (_initialize_parse): Add declaration.
13699 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
13700 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
13701 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
13702 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
13703 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
13704 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
13705 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
13706 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
13707 * printcmd.c (_initialize_printcmd): Add declaration.
13708 * probe.c (_initialize_probe): Add declaration.
13709 * proc-api.c (_initialize_proc_api): Add declaration.
13710 * proc-events.c (_initialize_proc_events): Add declaration.
13711 * proc-service.c (_initialize_proc_service): Add declaration.
13712 * procfs.c (_initialize_procfs): Add declaration.
13713 * producer.c (_initialize_producer): Add declaration.
13714 * psymtab.c (_initialize_psymtab): Add declaration.
13715 * python/python.c (_initialize_python): Add declaration.
13716 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
13717 * record-btrace.c (_initialize_record_btrace): Add declaration.
13718 * record-full.c (_initialize_record_full): Add declaration.
13719 * record.c (_initialize_record): Add declaration.
13720 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
13721 * regcache.c (_initialize_regcache): Add declaration.
13722 * reggroups.c (_initialize_reggroup): Add declaration.
13723 * remote-notif.c (_initialize_notif): Add declaration.
13724 * remote-sim.c (_initialize_remote_sim): Add declaration.
13725 * remote.c (_initialize_remote): Add declaration.
13726 * reverse.c (_initialize_reverse): Add declaration.
13727 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
13728 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
13729 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
13730 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
13731 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
13732 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
13733 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
13734 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
13735 Add declaration.
13736 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
13737 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
13738 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
13739 * rust-exp.y (_initialize_rust_exp): Add declaration.
13740 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
13741 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
13742 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
13743 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
13744 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
13745 * score-tdep.c (_initialize_score_tdep): Add declaration.
13746 * ser-go32.c (_initialize_ser_dos): Add declaration.
13747 * ser-mingw.c (_initialize_ser_windows): Add declaration.
13748 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
13749 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
13750 * ser-uds.c (_initialize_ser_socket): Add declaration.
13751 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
13752 * serial.c (_initialize_serial): Add declaration.
13753 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
13754 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
13755 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
13756 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
13757 * skip.c (_initialize_step_skip): Add declaration.
13758 * sol-thread.c (_initialize_sol_thread): Add declaration.
13759 * solib-aix.c (_initialize_solib_aix): Add declaration.
13760 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
13761 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
13762 * solib-frv.c (_initialize_frv_solib): Add declaration.
13763 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
13764 * solib-target.c (_initialize_solib_target): Add declaration.
13765 * solib.c (_initialize_solib): Add declaration.
13766 * source-cache.c (_initialize_source_cache): Add declaration.
13767 * source.c (_initialize_source): Add declaration.
13768 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
13769 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
13770 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
13771 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
13772 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
13773 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
13774 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
13775 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
13776 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
13777 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
13778 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
13779 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
13780 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
13781 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
13782 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
13783 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
13784 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
13785 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
13786 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
13787 * stabsread.c (_initialize_stabsread): Add declaration.
13788 * stack.c (_initialize_stack): Add declaration.
13789 * stap-probe.c (_initialize_stap_probe): Add declaration.
13790 * std-regs.c (_initialize_frame_reg): Add declaration.
13791 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
13792 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
13793 * symfile.c (_initialize_symfile): Add declaration.
13794 * symmisc.c (_initialize_symmisc): Add declaration.
13795 * symtab.c (_initialize_symtab): Add declaration.
13796 * target.c (_initialize_target): Add declaration.
13797 * target-connection.c (_initialize_target_connection): Add
13798 declaration.
13799 * target-dcache.c (_initialize_target_dcache): Add declaration.
13800 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
13801 * thread.c (_initialize_thread): Add declaration.
13802 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
13803 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
13804 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
13805 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
13806 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
13807 * tracectf.c (_initialize_ctf): Add declaration.
13808 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
13809 * tracefile.c (_initialize_tracefile): Add declaration.
13810 * tracepoint.c (_initialize_tracepoint): Add declaration.
13811 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
13812 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
13813 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
13814 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
13815 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
13816 * tui/tui-win.c (_initialize_tui_win): Add declaration.
13817 * tui/tui.c (_initialize_tui): Add declaration.
13818 * typeprint.c (_initialize_typeprint): Add declaration.
13819 * ui-style.c (_initialize_ui_style): Add declaration.
13820 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
13821 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
13822 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
13823 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
13824 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
13825 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
13826 * unittests/filtered_iterator-selftests.c
13827 (_initialize_filtered_iterator_selftests): Add declaration.
13828 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
13829 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
13830 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
13831 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
13832 * unittests/main-thread-selftests.c
13833 (_initialize_main_thread_selftests): Add declaration.
13834 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
13835 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
13836 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
13837 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
13838 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
13839 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
13840 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
13841 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
13842 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
13843 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
13844 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
13845 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
13846 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
13847 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
13848 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
13849 declaration.
13850 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
13851 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
13852 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
13853 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
13854 * user-regs.c (_initialize_user_regs): Add declaration.
13855 * utils.c (_initialize_utils): Add declaration.
13856 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
13857 * valops.c (_initialize_valops): Add declaration.
13858 * valprint.c (_initialize_valprint): Add declaration.
13859 * value.c (_initialize_values): Add declaration.
13860 * varobj.c (_initialize_varobj): Add declaration.
13861 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
13862 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
13863 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
13864 * windows-nat.c (_initialize_windows_nat): Add declaration.
13865 (_initialize_check_for_gdb_ini): Add declaration.
13866 (_initialize_loadable): Add declaration.
13867 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
13868 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
13869 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
13870 * xcoffread.c (_initialize_xcoffread): Add declaration.
13871 * xml-support.c (_initialize_xml_support): Add declaration.
13872 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
13873 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
13874 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
13875 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
13876
e2de1eec
SM
138772020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13878
13879 * regformats/regdat.sh: Generate declaration for init function.
13880
e0037b4c
SM
138812020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13882
13883 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
13884 up.
13885 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
13886 close_one_inferior>: New methods.
13887 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
13888 pass down target to find_inferior_pid.
13889 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
13890 Pass down target to find_inferior_ptid.
13891 (gdbsim_target::create_inferior): Pass down target to
13892 add_thread_silent.
13893 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
13894 target down to find_inferior_ptid and switch_to_thread.
13895 (gdbsim_target::close): Update to call close_one_inferior.
13896 (struct resume_data): Remove.
13897 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
13898 directly, rather than through a void pointer.
13899 (gdbsim_target::resume): Update to call resume_one_inferior.
13900
58920b5b
SM
139012020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
13902
13903 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
13904
4ec89149
PA
139052020-01-12 Pedro Alves <palves@redhat.com>
13906
13907 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
13908 directly for the current inferior instead of
13909 discard_all_inferiors.
13910 (discard_all_inferiors): Delete.
13911
7c392d1d
TT
139122020-01-11 Tom Tromey <tom@tromey.com>
13913
13914 * tui/tui-wingeneral.c (box_win): Check cli_styling.
13915 * tui/tui-winsource.c (tui_source_window_base::refill): Use
13916 deprecated_safe_get_selected_frame.
13917
d9ebdab7
TBA
139182020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13919
13920 * inferior.c (print_inferior): Switch inferior before printing it.
13921
f3c469b9
PA
139222020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
13923 Pedro Alves <palves@redhat.com>
13924
13925 * progspace-and-thread.c (switch_to_program_space_and_thread):
13926 Assert there's an inferior for PSPACE. Use
13927 switch_to_inferior_no_thread to switch the inferior too.
13928 * progspace.c (program_space::~program_space): Call
13929 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
13930 (program_space::free_all_objfiles): Don't call clear_symtab_users
13931 here.
13932 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
13933
65c574f6
PA
139342020-01-10 Pedro Alves <palves@redhat.com>
13935
13936 * NEWS: Mention multi-target debugging, "info connections", and
13937 "add-inferior -no-connection".
13938
2f4fcf00
PA
139392020-01-10 Pedro Alves <palves@redhat.com>
13940
13941 * infrun.c: Include "target-connection.h".
13942 (check_multi_target_resumption): New.
13943 (proceed): Call it.
13944 * target-connection.c (make_target_connection_string): Make
13945 extern.
13946 * target-connection.h (make_target_connection_string): Declare.
13947
121b3efd
PA
139482020-01-10 Pedro Alves <palves@redhat.com>
13949
13950 * Makefile.in (COMMON_SFILES): Add target-connection.c.
13951 * inferior.c (uiout_field_connection): New function.
13952 (print_inferior): Add new "connection-id" column.
13953 (add_inferior_command): Show connection number/string of added
13954 inferior.
13955 * process-stratum-target.h
13956 (process_stratum_target::connection_string): New virtual method.
13957 (process_stratum_target::connection_number): New field.
13958 * remote.c (remote_target::connection_string): New override.
13959 * target-connection.c: New file.
13960 * target-connection.h: New file.
13961 * target.c (decref_target): Remove process_stratum targets from
13962 the connection list.
13963 (target_stack::push): Add process_stratum targets to the
13964 connection list.
13965
4f837581
PA
139662020-01-10 Pedro Alves <palves@redhat.com>
13967
13968 Revert:
13969 2016-04-12 Pedro Alves <palves@redhat.com>
13970 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
13971 Remove references to name.
13972 * serial.h (struct serial) <name>: Delete.
13973
f4ec508e
PA
139742020-01-10 Pedro Alves <palves@redhat.com>
13975
13976 * gdbarch-selftests.c (register_to_value_test): Remove "target
13977 already pushed" check.
13978
5b6d1e4f
PA
139792020-01-10 Pedro Alves <palves@redhat.com>
13980 John Baldwin <jhb@FreeBSD.org>
13981
13982 * aarch64-linux-nat.c
13983 (aarch64_linux_nat_target::thread_architecture): Adjust.
13984 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
13985 (task_command_1): Likewise.
13986 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
13987 (aix_thread_target::wait, aix_thread_target::fetch_registers)
13988 (aix_thread_target::store_registers)
13989 (aix_thread_target::thread_alive): Adjust.
13990 * amd64-fbsd-tdep.c: Include "inferior.h".
13991 (amd64fbsd_get_thread_local_address): Pass down target.
13992 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
13993 thread's gdbarch instead of target_gdbarch.
13994 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
13995 get_last_target_status.
13996 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
13997 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
13998 inferiors.
13999 (update_inserted_breakpoint_locations): Skip if inferiors with no
14000 execution.
14001 (update_global_location_list): When handling moribund locations,
14002 find representative inferior for location's pspace, and use thread
14003 count of its process_stratum target.
14004 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
14005 * bsd-uthread.c (bsd_uthread_target::wait): Use
14006 as_process_stratum_target and adjust thread_change_ptid and
14007 add_thread calls.
14008 (bsd_uthread_target::update_thread_list): Use
14009 as_process_stratum_target and adjust find_thread_ptid,
14010 thread_change_ptid and add_thread calls.
14011 * btrace.c (maint_btrace_packet_history_cmd): Adjust
14012 find_thread_ptid call.
14013 * corelow.c (add_to_thread_list): Adjust add_thread call.
14014 (core_target_open): Adjust add_thread_silent and thread_count
14015 calls.
14016 (core_target::pid_to_str): Adjust find_inferior_ptid call.
14017 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
14018 * event-top.c (async_disconnect): Pop targets from all inferiors.
14019 * exec.c (add_target_sections): Push exec target on all inferiors
14020 sharing the program space.
14021 (remove_target_sections): Remove the exec target from all
14022 inferiors sharing the program space.
14023 (exec_on_vfork): New.
14024 * exec.h (exec_on_vfork): Declare.
14025 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
14026 Pass it down.
14027 (fbsd_nat_target::update_thread_list): Adjust.
14028 (fbsd_nat_target::resume): Adjust.
14029 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
14030 down.
14031 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
14032 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
14033 get_thread_arch_regcache call.
14034 * fork-child.c (gdb_startup_inferior): Pass target down to
14035 startup_inferior and set_executing.
14036 * gdbthread.h (struct process_stratum_target): Forward declare.
14037 (add_thread, add_thread_silent, add_thread_with_info)
14038 (in_thread_list): Add process_stratum_target parameter.
14039 (find_thread_ptid(inferior*, ptid_t)): New overload.
14040 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
14041 parameter.
14042 (all_threads()): Delete overload.
14043 (all_threads, all_non_exited_threads): Add process_stratum_target
14044 parameter.
14045 (all_threads_safe): Use brace initialization.
14046 (thread_count): Add process_stratum_target parameter.
14047 (set_resumed, set_running, set_stop_requested, set_executing)
14048 (threads_are_executing, finish_thread_state): Add
14049 process_stratum_target parameter.
14050 (switch_to_thread): Use is_current_thread.
14051 * i386-fbsd-tdep.c: Include "inferior.h".
14052 (i386fbsd_get_thread_local_address): Pass down target.
14053 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
14054 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
14055 have_inferiors check.
14056 * inf-ptrace.c (inf_ptrace_target::create_inferior)
14057 (inf_ptrace_target::attach): Adjust.
14058 * infcall.c (run_inferior_call): Adjust.
14059 * infcmd.c (run_command_1): Pass target to
14060 scoped_finish_thread_state.
14061 (proceed_thread_callback): Skip inferiors with no execution.
14062 (continue_command): Rename 'all_threads' local to avoid hiding
14063 'all_threads' function. Adjust get_last_target_status call.
14064 (prepare_one_step): Adjust set_running call.
14065 (signal_command): Use user_visible_resume_target. Compare thread
14066 pointers instead of inferior_ptid.
14067 (info_program_command): Adjust to pass down target.
14068 (attach_command): Mark target's 'thread_executing' flag.
14069 (stop_current_target_threads_ns): New, factored out from ...
14070 (interrupt_target_1): ... this. Switch inferior before making
14071 target calls.
14072 * inferior-iter.h
14073 (struct all_inferiors_iterator, struct all_inferiors_range)
14074 (struct all_inferiors_safe_range)
14075 (struct all_non_exited_inferiors_range): Filter on
14076 process_stratum_target too. Remove explicit.
14077 * inferior.c (inferior::inferior): Push dummy target on target
14078 stack.
14079 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
14080 Add process_stratum_target parameter, and pass it down.
14081 (have_live_inferiors): Adjust.
14082 (switch_to_inferior_and_push_target): New.
14083 (add_inferior_command, clone_inferior_command): Handle
14084 "-no-connection" parameter. Use
14085 switch_to_inferior_and_push_target.
14086 (_initialize_inferior): Mention "-no-connection" option in
14087 the help of "add-inferior" and "clone-inferior" commands.
14088 * inferior.h: Include "process-stratum-target.h".
14089 (interrupt_target_1): Use bool.
14090 (struct inferior) <push_target, unpush_target, target_is_pushed,
14091 find_target_beneath, top_target, process_target, target_at,
14092 m_stack>: New.
14093 (discard_all_inferiors): Delete.
14094 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
14095 (all_inferiors, all_non_exited_inferiors): Add
14096 process_stratum_target parameter.
14097 * infrun.c: Include "gdb_select.h" and <unordered_map>.
14098 (target_last_proc_target): New global.
14099 (follow_fork_inferior): Push target on new inferior. Pass target
14100 to add_thread_silent. Call exec_on_vfork. Handle target's
14101 reference count.
14102 (follow_fork): Adjust get_last_target_status call. Also consider
14103 target.
14104 (follow_exec): Push target on new inferior.
14105 (struct execution_control_state) <target>: New field.
14106 (user_visible_resume_target): New.
14107 (do_target_resume): Call target_async.
14108 (resume_1): Set target's threads_executing flag. Consider resume
14109 target.
14110 (commit_resume_all_targets): New.
14111 (proceed): Also consider resume target. Skip threads of inferiors
14112 with no execution. Commit resumtion in all targets.
14113 (start_remote): Pass current inferior to wait_for_inferior.
14114 (infrun_thread_stop_requested): Consider target as well. Pass
14115 thread_info pointer to clear_inline_frame_state instead of ptid.
14116 (infrun_thread_thread_exit): Consider target as well.
14117 (random_pending_event_thread): New inferior parameter. Use it.
14118 (do_target_wait): Rename to ...
14119 (do_target_wait_1): ... this. Add inferior parameter, and pass it
14120 down.
14121 (threads_are_resumed_pending_p, do_target_wait): New.
14122 (prepare_for_detach): Adjust calls.
14123 (wait_for_inferior): New inferior parameter. Handle it. Use
14124 do_target_wait_1 instead of do_target_wait.
14125 (fetch_inferior_event): Adjust. Switch to representative
14126 inferior. Pass target down.
14127 (set_last_target_status): Add process_stratum_target parameter.
14128 Save target in global.
14129 (get_last_target_status): Add process_stratum_target parameter and
14130 handle it.
14131 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
14132 (context_switch): Check inferior_ptid == null_ptid before calling
14133 inferior_thread().
14134 (get_inferior_stop_soon): Pass down target.
14135 (wait_one): Rename to ...
14136 (poll_one_curr_target): ... this.
14137 (struct wait_one_event): New.
14138 (wait_one): New.
14139 (stop_all_threads): Adjust.
14140 (handle_no_resumed, handle_inferior_event): Adjust to consider the
14141 event's target.
14142 (switch_back_to_stepped_thread): Also consider target.
14143 (print_stop_event): Update.
14144 (normal_stop): Update. Also consider the resume target.
14145 * infrun.h (wait_for_inferior): Remove declaration.
14146 (user_visible_resume_target): New declaration.
14147 (get_last_target_status, set_last_target_status): New
14148 process_stratum_target parameter.
14149 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
14150 process_stratum_target parameter, and use it.
14151 (clear_inline_frame_state (thread_info*)): New.
14152 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
14153 process_stratum_target parameter.
14154 (clear_inline_frame_state (thread_info*)): Declare.
14155 * linux-fork.c (delete_checkpoint_command): Pass target down to
14156 find_thread_ptid.
14157 (checkpoint_command): Adjust.
14158 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
14159 instead of just tweaking inferior_ptid.
14160 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
14161 (exit_lwp): Pass target down to find_thread_ptid.
14162 (attach_proc_task_lwp_callback): Pass target down to
14163 add_thread/set_running/set_executing.
14164 (linux_nat_target::attach): Pass target down to
14165 thread_change_ptid.
14166 (get_detach_signal): Pass target down to find_thread_ptid.
14167 Consider last target status's target.
14168 (linux_resume_one_lwp_throw, resume_lwp)
14169 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
14170 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
14171 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
14172 (linux_nat_target::async_wait_fd): New.
14173 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
14174 target down.
14175 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
14176 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
14177 * linux-thread-db.c (struct thread_db_info::process_target): New
14178 field.
14179 (add_thread_db_info): Save target.
14180 (get_thread_db_info): New process_stratum_target parameter. Also
14181 match target.
14182 (delete_thread_db_info): New process_stratum_target parameter.
14183 Also match target.
14184 (thread_from_lwp): Adjust to pass down target.
14185 (thread_db_notice_clone): Pass down target.
14186 (check_thread_db_callback): Pass down target.
14187 (try_thread_db_load_1): Always push the thread_db target.
14188 (try_thread_db_load, record_thread): Pass target down.
14189 (thread_db_target::detach): Pass target down. Always unpush the
14190 thread_db target.
14191 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
14192 target down. Always unpush the thread_db target.
14193 (find_new_threads_callback, thread_db_find_new_threads_2)
14194 (thread_db_target::update_thread_list): Pass target down.
14195 (thread_db_target::pid_to_str): Pass current inferior down.
14196 (thread_db_target::get_thread_local_address): Pass target down.
14197 (thread_db_target::resume, maintenance_check_libthread_db): Pass
14198 target down.
14199 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
14200 * procfs.c (procfs_target::procfs_init_inferior): Declare.
14201 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
14202 (procfs_init_inferior): Rename to ...
14203 (procfs_target::procfs_init_inferior): ... this and adjust.
14204 (procfs_target::create_inferior, procfs_notice_thread)
14205 (procfs_do_thread_registers): Adjust.
14206 * ppc-fbsd-tdep.c: Include "inferior.h".
14207 (ppcfbsd_get_thread_local_address): Pass down target.
14208 * proc-service.c (ps_xfer_memory): Switch current inferior and
14209 program space as well.
14210 (get_ps_regcache): Pass target down.
14211 * process-stratum-target.c
14212 (process_stratum_target::thread_address_space)
14213 (process_stratum_target::thread_architecture): Pass target down.
14214 * process-stratum-target.h
14215 (process_stratum_target::threads_executing): New field.
14216 (as_process_stratum_target): New.
14217 * ravenscar-thread.c
14218 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
14219 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
14220 down.
14221 * record-btrace.c (record_btrace_target::info_record): Adjust.
14222 (record_btrace_target::record_method)
14223 (record_btrace_target::record_is_replaying)
14224 (record_btrace_target::fetch_registers)
14225 (get_thread_current_frame_id, record_btrace_target::resume)
14226 (record_btrace_target::wait, record_btrace_target::stop): Pass
14227 target down.
14228 * record-full.c (record_full_wait_1): Switch to event thread.
14229 Pass target down.
14230 * regcache.c (regcache::regcache)
14231 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
14232 process_stratum_target parameter and handle it.
14233 (current_thread_target): New global.
14234 (get_thread_regcache): Add process_stratum_target parameter and
14235 handle it. Switch inferior before calling target method.
14236 (get_thread_regcache): Pass target down.
14237 (get_thread_regcache_for_ptid): Pass target down.
14238 (registers_changed_ptid): Add process_stratum_target parameter and
14239 handle it.
14240 (registers_changed_thread, registers_changed): Pass target down.
14241 (test_get_thread_arch_aspace_regcache): New.
14242 (current_regcache_test): Define a couple local test_target_ops
14243 instances and use them for testing.
14244 (readwrite_regcache): Pass process_stratum_target parameter.
14245 (cooked_read_test, cooked_write_test): Pass mock_target down.
14246 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
14247 (get_thread_arch_aspace_regcache): Add process_stratum_target
14248 parameter.
14249 (regcache::target): New method.
14250 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
14251 (regcache::registers_changed_ptid): Add process_stratum_target
14252 parameter.
14253 (regcache::m_target): New field.
14254 (registers_changed_ptid): Add process_stratum_target parameter.
14255 * remote.c (remote_state::supports_vCont_probed): New field.
14256 (remote_target::async_wait_fd): New method.
14257 (remote_unpush_and_throw): Add remote_target parameter.
14258 (get_current_remote_target): Adjust.
14259 (remote_target::remote_add_inferior): Push target.
14260 (remote_target::remote_add_thread)
14261 (remote_target::remote_notice_new_inferior)
14262 (get_remote_thread_info): Pass target down.
14263 (remote_target::update_thread_list): Skip threads of inferiors
14264 bound to other targets. (remote_target::close): Don't discard
14265 inferiors. (remote_target::add_current_inferior_and_thread)
14266 (remote_target::process_initial_stop_replies)
14267 (remote_target::start_remote)
14268 (remote_target::remote_serial_quit_handler): Pass down target.
14269 (remote_target::remote_unpush_target): New remote_target
14270 parameter. Unpush the target from all inferiors.
14271 (remote_target::remote_unpush_and_throw): New remote_target
14272 parameter. Pass it down.
14273 (remote_target::open_1): Check whether the current inferior has
14274 execution instead of checking whether any inferior is live. Pass
14275 target down.
14276 (remote_target::remote_detach_1): Pass down target. Use
14277 remote_unpush_target.
14278 (extended_remote_target::attach): Pass down target.
14279 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
14280 (remote_target::append_resumption): Pass down target.
14281 (remote_target::append_pending_thread_resumptions)
14282 (remote_target::remote_resume_with_hc, remote_target::resume)
14283 (remote_target::commit_resume): Pass down target.
14284 (remote_target::remote_stop_ns): Check supports_vCont_probed.
14285 (remote_target::interrupt_query)
14286 (remote_target::remove_new_fork_children)
14287 (remote_target::check_pending_events_prevent_wildcard_vcont)
14288 (remote_target::remote_parse_stop_reply)
14289 (remote_target::process_stop_reply): Pass down target.
14290 (first_remote_resumed_thread): New remote_target parameter. Pass
14291 it down.
14292 (remote_target::wait_as): Pass down target.
14293 (unpush_and_perror): New remote_target parameter. Pass it down.
14294 (remote_target::readchar, remote_target::remote_serial_write)
14295 (remote_target::getpkt_or_notif_sane_1)
14296 (remote_target::kill_new_fork_children, remote_target::kill): Pass
14297 down target.
14298 (remote_target::mourn_inferior): Pass down target. Use
14299 remote_unpush_target.
14300 (remote_target::core_of_thread)
14301 (remote_target::remote_btrace_maybe_reopen): Pass down target.
14302 (remote_target::pid_to_exec_file)
14303 (remote_target::thread_handle_to_thread_info): Pass down target.
14304 (remote_target::async_wait_fd): New.
14305 * riscv-fbsd-tdep.c: Include "inferior.h".
14306 (riscv_fbsd_get_thread_local_address): Pass down target.
14307 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
14308 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
14309 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
14310 Adjust.
14311 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
14312 * solib-svr4.c (enable_break): Pass down target.
14313 * spu-multiarch.c (parse_spufs_run): Pass down target.
14314 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
14315 * target-delegates.c: Regenerate.
14316 * target.c (g_target_stack): Delete.
14317 (current_top_target): Return the current inferior's top target.
14318 (target_has_execution_1): Refer to the passed-in inferior's top
14319 target.
14320 (target_supports_terminal_ours): Check whether the initial
14321 inferior was already created.
14322 (decref_target): New.
14323 (target_stack::push): Incref/decref the target.
14324 (push_target, push_target, unpush_target): Adjust.
14325 (target_stack::unpush): Defref target.
14326 (target_is_pushed): Return bool. Adjust to refer to the current
14327 inferior's target stack.
14328 (dispose_inferior): Delete, and inline parts ...
14329 (target_preopen): ... here. Only dispose of the current inferior.
14330 (target_detach): Hold strong target reference while detaching.
14331 Pass target down.
14332 (target_thread_name): Add assertion.
14333 (target_resume): Pass down target.
14334 (target_ops::beneath, find_target_at): Adjust to refer to the
14335 current inferior's target stack.
14336 (get_dummy_target): New.
14337 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
14338 has a thread running.
14339 (initialize_targets): Rename to ...
14340 (_initialize_target): ... this.
14341 * target.h: Include "gdbsupport/refcounted-object.h".
14342 (struct target_ops): Inherit refcounted_object.
14343 (target_ops::shortname, target_ops::longname): Make const.
14344 (target_ops::async_wait_fd): New method.
14345 (decref_target): Declare.
14346 (struct target_ops_ref_policy): New.
14347 (target_ops_ref): New typedef.
14348 (get_dummy_target): Declare function.
14349 (target_is_pushed): Return bool.
14350 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
14351 (all_matching_threads_iterator::all_matching_threads_iterator):
14352 Handle filter target.
14353 * thread-iter.h (struct all_matching_threads_iterator, struct
14354 all_matching_threads_range, class all_non_exited_threads_range):
14355 Filter by target too. Remove explicit.
14356 * thread.c (threads_executing): Delete.
14357 (inferior_thread): Pass down current inferior.
14358 (clear_thread_inferior_resources): Pass down thread pointer
14359 instead of ptid_t.
14360 (add_thread_silent, add_thread_with_info, add_thread): Add
14361 process_stratum_target parameter. Use it for thread and inferior
14362 searches.
14363 (is_current_thread): New.
14364 (thread_info::deletable): Use it.
14365 (find_thread_ptid, thread_count, in_thread_list)
14366 (thread_change_ptid, set_resumed, set_running): New
14367 process_stratum_target parameter. Pass it down.
14368 (set_executing): New process_stratum_target parameter. Pass it
14369 down. Adjust reference to 'threads_executing'.
14370 (threads_are_executing): New process_stratum_target parameter.
14371 Adjust reference to 'threads_executing'.
14372 (set_stop_requested, finish_thread_state): New
14373 process_stratum_target parameter. Pass it down.
14374 (switch_to_thread): Also match inferior.
14375 (switch_to_thread): New process_stratum_target parameter. Pass it
14376 down.
14377 (update_threads_executing): Reimplement.
14378 * top.c (quit_force): Pop targets from all inferior.
14379 (gdb_init): Don't call initialize_targets.
14380 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
14381 Declare.
14382 (windows_add_thread, windows_delete_thread): Adjust.
14383 (get_windows_debug_event): Rename to ...
14384 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
14385 * tracefile-tfile.c (tfile_target_open): Pass down target.
14386 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
14387 Forward declare.
14388 (switch_to_thread): Add process_stratum_target parameter.
14389 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
14390 parameter. Use it.
14391 (mi_on_resume): Pass target down.
14392 * nat/fork-inferior.c (startup_inferior): Add
14393 process_stratum_target parameter. Pass it down.
14394 * nat/fork-inferior.h (startup_inferior): Add
14395 process_stratum_target parameter.
14396 * python/py-threadevent.c (py_get_event_thread): Pass target down.
14397
75c6c844
PA
143982020-01-10 Pedro Alves <palves@redhat.com>
14399
14400 * remote.c (remote_target::start_remote): Don't set inferior_ptid
14401 directly. Instead find the first thread in the thread list and
14402 use switch_to_thread.
14403
78f2c40a
PA
144042020-01-10 Pedro Alves <palves@redhat.com>
14405
14406 * remote.c (remote_target::remote_add_inferior): Don't bind a
14407 process to the current inferior if the current inferior is already
14408 bound to a process.
14409
e7af6c70
TBA
144102020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14411 Pedro Alves <palves@redhat.com>
14412
14413 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
14414 If no process is specified, return null_ptid instead of
14415 inferior_ptid.
14416 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
14417 TARGET_WAITKIND_SIGNALLED with no pid.
14418
31ba933e
PA
144192020-01-10 Pedro Alves <palves@redhat.com>
14420
14421 * remote.c (first_remote_resumed_thread): New.
14422 (remote_target::wait_as): Use it as default event_ptid instead of
14423 inferior_ptid.
14424
735fc2ca
PA
144252020-01-10 Pedro Alves <palves@redhat.com>
14426
14427 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
14428
c17e02e1
PA
144292020-01-10 Pedro Alves <palves@redhat.com>
14430
14431 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
14432 not -1.
14433
ab1ddbcf
PA
144342020-01-10 Pedro Alves <palves@redhat.com>
14435
14436 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
14437 ptid to get_last_target_status.
14438 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
14439 ptid to get_last_target_status.
14440 * infcmd.c (continue_command): Don't pass a target_waitstatus to
14441 get_last_target_status.
14442 (info_program_command): Don't pass a target_waitstatus to
14443 get_last_target_status.
14444 * infrun.c (init_wait_for_inferior): Use
14445 nullify_last_target_wait_ptid.
14446 (get_last_target_status): Handle nullptr arguments.
14447 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
14448 (print_stop_event): Don't pass a ptid to get_last_target_status.
14449 (normal_stop): Don't pass a ptid to get_last_target_status.
14450 * infrun.h (get_last_target_status, set_last_target_status): Move
14451 comments here and update.
14452 (nullify_last_target_wait_ptid): Declare.
14453 * linux-fork.c (fork_load_infrun_state): Remove local extern
14454 declaration of nullify_last_target_wait_ptid.
14455 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
14456 to get_last_target_status.
14457
f3f8ece4
PA
144582020-01-10 Pedro Alves <palves@redhat.com>
14459
14460 * gdbthread.h (scoped_restore_current_thread)
14461 <dont_restore, restore, m_dont_restore>: Declare.
14462 * thread.c (thread_alive): Add assertion. Return bool.
14463 (switch_to_thread_if_alive): New.
14464 (prune_threads): Switch inferior/thread.
14465 (print_thread_info_1): Switch thread before calling target methods.
14466 (scoped_restore_current_thread::restore): New, factored out from
14467 ...
14468 (scoped_restore_current_thread::~scoped_restore_current_thread):
14469 ... this.
14470 (scoped_restore_current_thread::scoped_restore_current_thread):
14471 Add assertion.
14472 (thread_apply_all_command, thread_select): Use
14473 switch_to_thread_if_alive.
14474 * infrun.c (proceed, restart_threads, handle_signal_stop)
14475 (switch_back_to_stepped_thread): Switch current thread before
14476 calling target methods.
14477
db2d40f7
PA
144782020-01-10 Pedro Alves <palves@redhat.com>
14479
14480 * inferior.c (switch_to_inferior_no_thread): New function,
14481 factored out from ...
14482 (inferior_command): ... here.
14483 * inferior.h (switch_to_inferior_no_thread): Declare.
14484 * mi/mi-main.c (run_one_inferior): Use
14485 switch_to_inferior_no_thread.
14486
bd420a2d
PA
144872020-01-10 Pedro Alves <palves@redhat.com>
14488
14489 * infcmd.c (kill_command): Remove dead code.
14490
ddf5db90
PA
144912020-01-10 Pedro Alves <palves@redhat.com>
14492
14493 * remote.c (remote_target::mourn_inferior): No longer check
14494 whether the target is running.
14495
5018ce90
PA
144962020-01-10 Pedro Alves <palves@redhat.com>
14497
14498 * corelow.c (core_target::has_execution): Change parameter type to
14499 inferior pointer.
14500 * inferior.c (number_of_live_inferiors): Use
14501 inferior::has_execution instead of target_has_execution_1.
14502 * inferior.h (inferior::has_execution): New.
14503 * linux-thread-db.c (thread_db_target::update_thread_list): Use
14504 inferior::has_execution instead of target_has_execution_1.
14505 * process-stratum-target.c
14506 (process_stratum_target::has_execution): Change parameter type to
14507 inferior pointer. Check the inferior's PID instead of
14508 inferior_ptid.
14509 * process-stratum-target.h
14510 (process_stratum_target::has_execution): Change parameter type to
14511 inferior pointer.
14512 * record-full.c (record_full_core_target::has_execution): Change
14513 parameter type to inferior pointer.
14514 * target.c (target_has_execution_1): Change parameter type to
14515 inferior pointer.
14516 (target_has_execution_current): Adjust.
14517 * target.h (target_ops::has_execution): Change parameter type to
14518 inferior pointer.
14519 (target_has_execution_1): Change parameter type to inferior
14520 pointer. Change return type to bool.
14521 * tracefile.h (tracefile_target::has_execution): Change parameter
14522 type to inferior pointer.
14523
74375d18
PA
145242020-01-10 Pedro Alves <palves@redhat.com>
14525
14526 * exceptions.c (print_flush): Remove current_top_target() check.
14527
acdf84a6
PA
145282020-01-10 Pedro Alves <palves@redhat.com>
14529
14530 * remote.c (show_remote_exec_file): Show the current inferior's
14531 exec-file instead of the command variable's value.
14532
ec506636
PA
145332020-01-10 Pedro Alves <palves@redhat.com>
14534
14535 * record-full.c (record_full_resume_ptid): New global.
14536 (record_full_target::resume): Set it.
14537 (record_full_wait_1): Use record_full_resume_ptid instead of
14538 inferior_ptid.
14539
873657b9
PA
145402020-01-10 Pedro Alves <palves@redhat.com>
14541
14542 * gdbthread.h (scoped_restore_current_thread)
14543 <dont_restore, restore, m_dont_restore>: Declare.
14544 * thread.c (thread_alive): Add assertion. Return bool.
14545 (switch_to_thread_if_alive): New.
14546 (prune_threads): Switch inferior/thread.
14547 (print_thread_info_1): Switch thread before calling target methods.
14548 (scoped_restore_current_thread::restore): New, factored out from
14549 ...
14550 (scoped_restore_current_thread::~scoped_restore_current_thread):
14551 ... this.
14552 (scoped_restore_current_thread::scoped_restore_current_thread):
14553 Add assertion.
14554 (thread_apply_all_command, thread_select): Use
14555 switch_to_thread_if_alive.
14556
7f0ae84c
GB
145572020-01-10 George Barrett <bob@bob131.so>
14558
14559 * stap-probe.c (stap_modify_semaphore): Don't check for null
14560 semaphores.
14561 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
14562 for null semaphores.
14563
f5a7c406
AB
145642020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
14565
14566 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
14567 all source windows, and maintain horizontal scroll status while
14568 doing so.
14569
9ae6bf64
TT
145702020-01-09 Tom Tromey <tom@tromey.com>
14571
14572 PR tui/18932:
14573 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
14574 update_source_window, not print_source_lines.
14575
b2efe70c
AB
145762020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
14577
14578 * tui/tui.c (tui_enable): Register tui hooks after calling
14579 tui_display_main.
14580
5f23a082
CB
145812020-01-09 Christian Biesinger <cbiesinger@google.com>
14582
14583 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
14584
3061113b
SM
145852020-01-08 Simon Marchi <simon.marchi@efficios.com>
14586
14587 * thread.c (print_thread_info_1): Fix indentation.
14588
57d75002
CB
145892020-01-09 Christian Biesinger <cbiesinger@google.com>
14590
14591 * symtab.c (general_symbol_info::compute_and_set_names): Move the
14592 unique_xmalloc_ptr outside the if to always free the demangled name.
14593
6a053cb1
TT
145942020-01-08 Tom Tromey <tromey@adacore.com>
14595
14596 * xcoffread.c (enter_line_range, read_xcoff_symtab)
14597 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
14598 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
14599 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
14600 Remove.
14601 (section_offsets): New typedef.
14602 * symtab.c (fixup_section, get_msymbol_address): Update.
14603 * symmisc.c (dump_msymbols): Update.
14604 * symfile.h (relative_addr_info_to_section_offsets)
14605 (symfile_map_offsets_to_segments): Update.
14606 * symfile.c (build_section_addr_info_from_objfile)
14607 (init_objfile_sect_indices): Update.
14608 (struct place_section_arg): Change type of "offsets".
14609 (place_section): Update.
14610 (relative_addr_info_to_section_offsets): Change type of
14611 "section_offsets". Remove "num_sections" parameter.
14612 (default_symfile_offsets, syms_from_objfile_1)
14613 (set_objfile_default_section_offset): Update.
14614 (reread_symbols): No need to preserve section offsets by hand.
14615 (symfile_map_offsets_to_segments): Change type of "offsets".
14616 * stap-probe.c (relocate_address): Update.
14617 * stabsread.h (process_one_symbol): Update.
14618 * solib-target.c (struct lm_info_target) <offsets>: Change type.
14619 (solib_target_relocate_section_addresses): Update.
14620 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
14621 Update.
14622 * solib-frv.c (frv_relocate_main_executable): Update.
14623 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
14624 * solib-aix.c (solib_aix_get_section_offsets): Change return
14625 type.
14626 (solib_aix_solib_create_inferior_hook): Update.
14627 * remote.c (remote_target::get_offsets): Update.
14628 * psymtab.c (find_pc_sect_psymtab): Update.
14629 * psympriv.h (struct partial_symbol) <address, text_low,
14630 text_high>: Update.
14631 * objfiles.h (obj_section_offset): Update.
14632 (struct objfile) <section_offsets>: Change type.
14633 <num_sections>: Remove.
14634 (objfile_relocate): Update.
14635 * objfiles.c (entry_point_address_query): Update
14636 (relocate_one_symbol): Change type of "section_offsets".
14637 (objfile_relocate1, objfile_relocate1): Change type of
14638 "new_offsets".
14639 (objfile_rebase1): Update.
14640 * mipsread.c (mipscoff_symfile_read): Update.
14641 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
14642 parameter.
14643 * mdebugread.c (parse_symbol): Change type of "section_offsets".
14644 (parse_external, psymtab_to_symtab_1): Update.
14645 * machoread.c (macho_symfile_offsets): Update.
14646 * ia64-tdep.c (ia64_find_unwind_table): Update.
14647 * hppa-tdep.c (read_unwind_info): Update.
14648 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
14649 * dwarf2read.c (create_addrmap_from_index)
14650 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
14651 (process_psymtab_comp_unit_reader, add_partial_symbol)
14652 (add_partial_subprogram, process_full_comp_unit)
14653 (read_file_scope, read_func_scope, read_lexical_block_scope)
14654 (read_call_site_scope, dwarf2_rnglists_process)
14655 (dwarf2_ranges_process, dwarf2_ranges_read)
14656 (dwarf_decode_lines_1, var_decode_location, new_symbol)
14657 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
14658 Update.
14659 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
14660 Update.
14661 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
14662 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
14663 (process_one_symbol): Change type of "section_offsets".
14664 * ctfread.c (get_objfile_text_range): Update.
14665 * coffread.c (coff_symtab_read, enter_linenos)
14666 (process_coff_symbol): Update.
14667 * coff-pe-read.c (add_pe_forwarded_sym): Update.
14668 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
14669
456e800a
TT
146702020-01-08 Tom Tromey <tromey@adacore.com>
14671
14672 * dwarf2read.c (parse_macro_definition): Use std::string.
14673 (parse_macro_definition): Likewise.
14674
6dfa2fc2
TT
146752020-01-08 Tom Tromey <tromey@adacore.com>
14676
14677 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
14678 (ATTR_ALLOC_CHUNK): Remove.
14679
421d1616
TT
146802020-01-08 Tom Tromey <tromey@adacore.com>
14681
14682 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
14683
43816ebc
TT
146842020-01-08 Tom Tromey <tromey@adacore.com>
14685
14686 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
14687 (dwarf2_compute_name, open_dwo_file): Likewise.
14688 (process_enumeration_scope): Use std::vector.
14689 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
14690 (partial_die_info::fixup, dwarf2_start_subfile)
14691 (guess_full_die_structure_name, dwarf2_name): Likewise.
14692 (determine_prefix): Update.
14693 (guess_full_die_structure_name): Make return type const.
14694 (partial_die_full_name): Return unique_xmalloc_ptr.
14695 (DW_FIELD_ALLOC_CHUNK): Remove.
14696
4212d509
TT
146972020-01-07 Tom Tromey <tromey@adacore.com>
14698
14699 PR build/24937:
14700 * stap-probe.c (class stap_static_probe_ops): Add constructor.
14701
06a6207a
JT
147022020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
14703
14704 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
14705
153d79c4
AB
147062020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
14707
14708 * stack.c (print_frame_info): Move disassemble_next_line code
14709 inside source_print block.
14710
66182876
EZ
147112020-01-06 Eli Zaretskii <eliz@gnu.org>
14712
14713 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
14714 gdb/signals.h, as we are now using native signal symbols.
14715
cbfa8581
SV
147162020-01-06 Shahab Vahedi <shahab@synopsys.com>
14717
14718 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
14719 overflow by an early check of content vs threshold.
aac66a4c 14720 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
14721 Likewise.
14722
3f602821
EZ
147232020-01-06 Eli Zaretskii <eliz@gnu.org>
14724
14725 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
14726
a08c904d
JT
147272020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
14728
14729 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
14730 export table if no section contains it's RVA.
14731
89a65580
EZ
147322020-01-06 Eli Zaretskii <eliz@gnu.org>
14733
14734 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
14735
8b7fcda2
HD
147362020-01-06 Hannes Domani <ssbssa@yahoo.de>
14737
14738 * source.c (print_source_lines_base): Set last_line_listed.
14739
a61b4f69
SV
147402020-01-06 Shahab Vahedi <shahab@synopsys.com>
14741
14742 * tui/tui-disasm.c: Remove trailing spaces.
14743
559e7e50
EZ
147442020-01-06 Eli Zaretskii <eliz@gnu.org>
14745 Pedro Alves <palves@redhat.com>
14746
14747 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
14748 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
14749 (windows_gdb_signal_to_target): New function, uses the above
14750 enumeration to convert GDB internal signal codes to equivalent
14751 Windows codes.
14752 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
14753 * windows-nat.c: Include "gdb_wait.h".
14754 (get_windows_debug_event): Extract the fatal exception from the
14755 exit status and convert to the equivalent Posix signal number.
14756 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
14757 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
14758 * gdbsupport/gdb_wait.c: New file, implements
14759 windows_status_to_termsig.
14760 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
14761 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
14762
f2302a34
AB
147632020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
14764
14765 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
14766 show_layout.
14767
6a5206eb
LM
147682020-01-05 Luis Machado <luis.machado@linaro.org>
14769
14770 * aarch64-linux-nat.c
14771 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
14772 and bfd_mach_aarch64.
14773
6ec1d75e
PW
147742020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14775
14776 * ui-file.c (stdio_file::can_emit_style_escape)
14777 (tee_file::can_emit_style_escape): Ensure style is used also on
14778 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
14779 to gdb_stdout.
14780 * main.c (set_gdb_data_directory): Use file style to output the
14781 warning that the given pathname is not a directory.
14782 * top.c (show_history_filename, gdb_safe_append_history)
14783 (show_gdb_datadir): Use file style.
14784
44f81a76
HD
147852020-01-03 Hannes Domani <ssbssa@yahoo.de>
14786
14787 * solib-target.c (struct lm_info_target):
14788 Change offsets to be a unique_xmalloc_ptr.
14789 (solib_target_relocate_section_addresses): Update.
14790
25057eb0
HD
147912020-01-03 Hannes Domani <ssbssa@yahoo.de>
14792
14793 * windows-nat.c (windows_clear_solib): Free so_list linked list.
14794
6e2118f5
BE
147952020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
14796
14797 * MAINTAINERS (Write After Approval): Add myself.
14798
8133c7dc
LM
147992020-01-02 Luis Machado <luis.machado@linaro.org>
14800
14801 * proc-service.c (get_ps_regcache): Remove reference to obsolete
14802 Cell BE architecture.
14803 * target.h (struct target_ops) <thread_architecture>: Likewise.
14804
48189bec
HD
148052020-01-01 Hannes Domani <ssbssa@yahoo.de>
14806
14807 * Makefile.in: Use INSTALL_PROGRAM_ENV.
14808
ead1063b
HD
148092020-01-01 Hannes Domani <ssbssa@yahoo.de>
14810
14811 * MAINTAINERS (Write After Approval): Add myself.
14812
e5d78223
JB
148132020-01-01 Joel Brobecker <brobecker@adacore.com>
14814
14815 * gdbarch.sh: Update copyright year range of generated files.
14816
b811d2c2
JB
148172020-01-01 Joel Brobecker <brobecker@adacore.com>
14818
14819 Update copyright year range in all GDB files.
14820
5f4def5c
JB
148212020-01-01 Joel Brobecker <brobecker@adacore.com>
14822
14823 * copyright.py: Convert to Python 3.
14824
51fd4002
JB
148252020-01-01 Joel Brobecker <brobecker@adacore.com>
14826
14827 * copyright.py: Adapt after move of gnulib directory from gdb
14828 directory to toplevel directory.
14829
5fb651f2
JB
148302020-01-01 Joel Brobecker <brobecker@adacore.com>
14831
14832 * copyright.py (main): Exit if run from the wrong directory.
14833
5dd8bf88
JB
148342020-01-01 Joel Brobecker <brobecker@adacore.com>
14835
14836 * top.c (print_gdb_version): Change copyright year to 2020.
14837
9f71dacb 148382020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 14839
9f71dacb 14840 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 14841
9f71dacb 14842For older changes see ChangeLog-2019.
c906108c
SS
14843\f
14844Local Variables:
14845mode: change-log
14846left-margin: 8
14847fill-column: 74
14848version-control: never
57da7796 14849coding: utf-8
c906108c 14850End: