]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
arm: add support for Cortex-A78 and Cortex-A78AE
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
18b67edc
SM
12020-10-02 Simon Marchi <simon.marchi@efficios.com>
2
3 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
4 * procfs.c (procfs_inferior_created): Remove.
5 (_initialize_procfs): Don't register procfs_inferior_created.
6
6b01403b
SM
72020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
8
9 * async-event.c (invoke_async_signal_handlers): Add debug
10 print.
11 (check_async_event_handlers): Likewise.
12 * event-top.c (show_debug_event_loop): New function.
13 (_initialize_event_top): Register "set debug event-loop"
14 setting.
15
ba988419
SM
162020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
17
18 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
19 * debug.h: Remove.
20 * infrun.c: Include gdbsupport/common-debug.h.
21 * linux-nat.c: Likewise.
22
db20ebdf
SM
232020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
24
25 * async-event.h (create_async_signal_handler): Add name
26 parameter.
27 (create_async_event_handler): Likewise.
28 * async-event.c (struct async_signal_handler) <name>: New field.
29 (struct async_event_handler) <name>: New field.
30 (create_async_signal_handler): Assign name.
31 (create_async_event_handler): Assign name.
32 * event-top.c (async_init_signals): Pass name when creating
33 handler.
34 * infrun.c (_initialize_infrun): Likewise.
35 * record-btrace.c (record_btrace_push_target): Likewise.
36 * record-full.c (record_full_open): Likewise.
37 * remote-notif.c (remote_notif_state_allocate): Likewise.
38 * remote.c (remote_target::open_1): Likewise.
39 * tui/tui-win.c (tui_initialize_win): Likewise.
40
2554f6f5
SM
412020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
42
43 * async-event.c (initialize_async_signal_handlers): Pass name to
44 add_file_handler
45 * event-top.c (ui_register_input_event_handler): Likewise.
46 * linux-nat.c (linux_nat_target::async): Likewise.
47 * run-on-main-thread.c (_initialize_run_on_main_thread):
48 Likewise
49 * ser-base.c (reschedule): Likewise.
50 (ser_base_async): Likewise.
51 * tui/tui-io.c: Likewise.
52 * top.h (struct ui) <num>: New field.
53 * top.c (highest_ui_num): New variable.
54 (ui::ui): Initialize num.
55
a7aba266
SM
562020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
57
58 * observable.h <inferior_created>: Remove parameters. Update all
59 listeners.
60 * inferior.h (post_create_inferior): Remove target parameter.
61 Update all callers.
62
048fde1e 632020-10-02 Nitika Achra <Nitika.Achra@amd.com>
64
65 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
66 and DW_MACRO_undef_strx.
67 (dwarf_decode_macros): Likewise
68 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
69 which is the value of DW_AT_str_offsets_base.
70 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
71 str_offsets_base.
72
064280be
KR
732020-10-01 Kamil Rytarowski <n54@gmx.com>
74
75 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
76
6ff33035
KR
772020-10-01 Kamil Rytarowski <n54@gmx.com>
78
79 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
80 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
81
1eb6eb79
KR
822020-10-01 Kamil Rytarowski <n54@gmx.com>
83
84 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
85
95eb9e54
TV
862020-09-30 Tom de Vries <tdevries@suse.de>
87
88 PR symtab/26683
89 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
90
cae21f8e
TT
912020-09-30 Tom Tromey <tromey@adacore.com>
92
93 * dwarf2/read.c (handle_variant): Use constant_value.
94
529908cb
TT
952020-09-29 Tom Tromey <tom@tromey.com>
96
97 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
98 (read_file_scope, dwarf2_get_pc_bounds)
99 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
100 (read_structure_type, handle_struct_member_die)
101 (read_enumeration_type, read_array_type, read_set_type)
102 (read_tag_pointer_type, read_tag_reference_type)
103 (read_subroutine_type, read_base_type, read_subrange_type)
104 (read_full_die_1, partial_die_info::read)
105 (partial_die_info::read, by, new_symbol)
106 (dwarf2_const_value_data, dwarf2_const_value_attr)
107 (dump_die_shallow, dwarf2_fetch_constant_bytes)
108 (prepare_one_comp_unit): Update.
109 * dwarf2/attribute.h (DW_UNSND): Remove.
110
c45bc3f8
TT
1112020-09-29 Tom Tromey <tom@tromey.com>
112
113 * dwarf2/read.c (read_func_scope, prototyped_function_p)
114 (read_subroutine_type, partial_die_info::read)
115 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
116 (dwarf2_add_member_fn): Update.
117 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
118 * dwarf2/attribute.c (attribute::as_boolean): New method.
119
23dca5c3
TT
1202020-09-29 Tom Tromey <tom@tromey.com>
121
122 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
123 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
124 method.
125 * dwarf2/attribute.c (attribute::as_virtuality): New method.
126
52c14d11
TT
1272020-09-29 Tom Tromey <tom@tromey.com>
128
129 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
130 the attribute's form.
131
e8e5c158
TT
1322020-09-29 Tom Tromey <tom@tromey.com>
133
134 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
135 (dwarf2_add_member_fn): Update.
136 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
137 * dwarf2/attribute.c (attribute::defaulted): New method, from
138 is_valid_DW_AT_defaulted.
139
d4df075e
TT
1402020-09-29 Tom Tromey <tom@tromey.com>
141
142 * dwarf2/read.c (dw2_get_file_names_reader)
143 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
144 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
145 (dwarf2_symbol_mark_computed): Use as_unsigned.
146 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
147 method.
148 <form_is_section_offset>: Update comment.
149
bf23a268
TT
1502020-09-29 Tom Tromey <tom@tromey.com>
151
152 * dwarf2/read.c (dwarf2_access_attribute): Rename from
153 dwarf2_default_access_attribute. Look up attribute.
154 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
155 Update.
156
7a5f294d
TT
1572020-09-29 Tom Tromey <tom@tromey.com>
158
159 * dwarf2/read.c (skip_one_die): Update.
160 (read_full_die_1): Change how reprocessing is done.
161 (partial_die_info::read): Update.
162 (read_attribute_value): Remove need_reprocess parameter.
163 (read_attribute): Likewise.
164 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
165 New method.
166
36d378cf
TT
1672020-09-29 Tom Tromey <tom@tromey.com>
168
169 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
170 (dwarf2_const_value_attr, dump_die_shallow)
171 (dwarf2_fetch_constant_bytes): Update.
172 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
173 comment.
174 <set_address>: New method.
175 (DW_ADDR): Remove.
176 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
177 (attribute::as_string, attribute::as_address): Add assert.
178
fe56917a
TT
1792020-09-29 Tom Tromey <tom@tromey.com>
180
181 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
182 (read_attribute_reprocess, read_attribute_value): Update.
183 (read_attribute): Clear requires_reprocessing.
184 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
185 form_requires_reprocessing>: New methods.
186 <string_init>: Clear requires_reprocessing.
187 <set_unsigned_reprocess>: New method.
188 <name>: Shrink by one bit.
189 <requires_reprocessing>: New member.
190 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
191 method.
192
414ad644
TT
1932020-09-29 Tom Tromey <tom@tromey.com>
194
195 * dwarf2/read.c (read_attribute_value): Update.
196 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
197 set_unsigned>: New methods.
198 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
199
1bc397c5
TT
2002020-09-29 Tom Tromey <tom@tromey.com>
201
202 * dwarf2/read.c (get_alignment, read_array_order)
203 (read_attribute_value, dwarf2_const_value_attr)
204 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
205 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
206 New methods.
207 (DW_SND): Remove.
208
630ed6b9
TT
2092020-09-29 Tom Tromey <tom@tromey.com>
210
211 * dwarf2/read.c (read_attribute_value, lookup_die_type)
212 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
213 Update.
214 * dwarf2/attribute.h (struct attribute) <as_signature,
215 set_signature>: New methods.
216 (DW_SIGNATURE): Remove.
217
9d2246fc
TT
2182020-09-29 Tom Tromey <tom@tromey.com>
219
220 * dwarf2/read.c (read_call_site_scope)
221 (handle_data_member_location, dwarf2_add_member_fn)
222 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
223 (partial_die_info::read, read_attribute_value)
224 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
225 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
226 (dwarf2_symbol_mark_computed): Update.
227 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
228 methods.
229 (DW_BLOCK): Remove.
230 * dwarf2/attribute.c (attribute::form_is_block): Add
231 DW_FORM_data16.
232
c6481205
TT
2332020-09-29 Tom Tromey <tom@tromey.com>
234
235 * dwarf2/read.c (read_cutu_die_from_dwo)
236 (read_attribute_reprocess, read_attribute_value, read_attribute)
237 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
238 (dwarf2_fetch_constant_bytes): Update.
239 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
240 <set_string_noncanonical, set_string_canonical>: New methods.
241 <string_is_canonical>: Update comment.
242 <canonical_string_p>: Add assert.
243 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
244 * dwarf2/attribute.c (attribute::form_is_string): New method.
245 (attribute::string): Use it.
246
3b64bf15
TT
2472020-09-29 Tom Tromey <tom@tromey.com>
248
249 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
250 (dump_die_shallow): Use canonical_string_p.
251 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
252 method.
253
2c830f54
TT
2542020-09-29 Tom Tromey <tom@tromey.com>
255
256 * dwarf2/read.c (partial_die_info::read)
257 (dwarf2_const_value_attr, anonymous_struct_prefix, )
258 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
259 attribute::as_string.
260
6c412691
TT
2612020-09-29 Tom Tromey <tom@tromey.com>
262
263 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
264 DW_ADDR.
265 (attribute::string): Don't use DW_STRING.
266 (attribute::get_ref_die_offset): Don't use DW_UNSND.
267 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
268
95f982e5
TT
2692020-09-29 Tom Tromey <tom@tromey.com>
270
271 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
272 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
273 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
274 * dwarf2/attribute.h (struct attribute): Rename methods.
275 * dwarf2/attribute.c (attribute::as_address): Rename from
276 value_as_address.
277 (attribute::as_string): Rename from value_as_string.
278
f800b00e
TT
2792020-09-29 Tom Tromey <tom@tromey.com>
280
281 * dwarf2/read.c (partial_die_info::read) <case
282 DW_AT_linkage_name>: Use value_as_string.
283 (dwarf2_string_attr): Use value_as_string.
284 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
285 method.
286 * dwarf2/attribute.c (attribute::value_as_string): New method.
287
de38d64a
PA
2882020-09-29 Pedro Alves <pedro@palves.net>
289
290 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
291 defined before using '#pragma GCC diagnostic' instead of checking
292 __clang__.
293
9aed480c
TT
2942020-09-28 Tom Tromey <tom@tromey.com>
295
296 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
297 (handle_signal_stop): Update.
298 * procfs.c (procfs_target::insert_watchpoint): Update.
299 * target.h (target_have_steppable_watchpoint): Now a function.
300
8a3ecb79
TT
3012020-09-28 Tom Tromey <tom@tromey.com>
302
303 * infrun.c (set_schedlock_func): Update.
304 * target.h (target_can_lock_scheduler): Now a function.
305
55f6301a
TT
3062020-09-28 Tom Tromey <tom@tromey.com>
307
308 * inferior.h (class inferior) <has_execution>: Update.
309 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
310 * valops.c (find_function_in_inferior)
311 (value_allocate_space_in_inferior): Update.
312 * top.c (kill_or_detach): Update.
313 * target.c (target_preopen, set_target_permissions): Update.
314 (target_has_execution_current): Remove.
315 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
316 Update.
317 * solib.c (update_solib_list, reload_shared_libraries): Update.
318 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
319 * solib-dsbt.c (enable_break): Update.
320 * score-tdep.c (score7_fetch_inst): Update.
321 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
322 Update.
323 * remote.c (remote_target::start_remote)
324 (remote_target::remote_check_symbols, remote_target::open_1)
325 (remote_target::remote_detach_1, remote_target::verify_memory)
326 (remote_target::xfer_partial, remote_target::read_description)
327 (remote_target::get_min_fast_tracepoint_insn_len): Update.
328 * record-full.c (record_full_open_1): Update.
329 * record-btrace.c (record_btrace_target_open): Update.
330 * objc-lang.c (lookup_objc_class, lookup_child_selector)
331 (value_nsstring): Update.
332 * linux-thread-db.c (add_thread_db_info)
333 (thread_db_find_new_threads_silently, check_thread_db_callback)
334 (try_thread_db_load_1, record_thread): Update.
335 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
336 Update.
337 * linux-fork.c (checkpoint_command): Update.
338 * infrun.c (set_non_stop, set_observer_mode)
339 (check_multi_target_resumption, for_each_just_stopped_thread)
340 (maybe_remove_breakpoints, normal_stop)
341 (class infcall_suspend_state): Update.
342 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
343 (info_program_command, attach_command): Update.
344 * infcall.c (call_function_by_hand_dummy): Update.
345 * inf-loop.c (inferior_event_handler): Update.
346 * gcore.c (gcore_command, derive_heap_segment): Update.
347 * exec.c (exec_file_command): Update.
348 * eval.c (evaluate_subexp): Update.
349 * compile/compile.c (compile_to_object): Update.
350 * cli/cli-dump.c (restore_command): Update.
351 * breakpoint.c (update_watchpoint)
352 (update_inserted_breakpoint_locations)
353 (insert_breakpoint_locations, get_bpstat_thread): Update.
354 * target.h (target_has_execution): Remove macro.
355 (target_has_execution_current): Don't declare.
356 (target_has_execution): Rename from target_has_execution_1. Add
357 argument default.
358
05374cfd
TT
3592020-09-28 Tom Tromey <tom@tromey.com>
360
361 * mi/mi-main.c (exec_reverse_continue)
362 (mi_cmd_list_target_features): Update.
363 * infrun.c (set_exec_direction_func): Update.
364 * target.c (default_execution_direction): Update.
365 * reverse.c (exec_reverse_once): Update.
366 * target.h (target_can_execute_reverse): Now a function.
367
9dccd06e
TT
3682020-09-28 Tom Tromey <tom@tromey.com>
369
370 * tui/tui-regs.c (tui_get_register)
371 (tui_data_window::show_registers): Update.
372 * thread.c (scoped_restore_current_thread::restore)
373 (scoped_restore_current_thread::scoped_restore_current_thread):
374 Update.
375 * regcache-dump.c (regcache_print): Update.
376 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
377 Update.
378 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
379 * mep-tdep.c (current_me_module, current_options): Update.
380 * linux-thread-db.c (thread_db_load): Update.
381 * infcmd.c (registers_info, info_vector_command)
382 (info_float_command): Update.
383 * ia64-tdep.c (ia64_frame_prev_register)
384 (ia64_sigtramp_frame_prev_register): Update.
385 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
386 * gcore.c (derive_stack_segment): Update.
387 * frame.c (get_current_frame, has_stack_frames): Update.
388 * findvar.c (language_defn::read_var_value): Update.
389 * arm-tdep.c (arm_pc_is_thumb): Update.
390 * target.c (target_has_registers): Rename from
391 target_has_registers_1.
392 * target.h (target_has_registers): Remove macro.
393 (target_has_registers): Rename from target_has_registers_1.
394
841de120
TT
3952020-09-28 Tom Tromey <tom@tromey.com>
396
397 * windows-tdep.c (tlb_make_value): Update.
398 * tui/tui-regs.c (tui_data_window::show_registers): Update.
399 * thread.c (scoped_restore_current_thread::restore)
400 (scoped_restore_current_thread::scoped_restore_current_thread)
401 (thread_command): Update.
402 * stack.c (backtrace_command_1, frame_apply_level_command)
403 (frame_apply_all_command, frame_apply_command): Update.
404 * infrun.c (siginfo_make_value, restore_infcall_control_state):
405 Update.
406 * gcore.c (derive_stack_segment): Update.
407 * frame.c (get_current_frame, has_stack_frames): Update.
408 * auxv.c (info_auxv_command): Update.
409 * ada-tasks.c (ada_build_task_list): Update.
410 * target.c (target_has_stack): Rename from target_has_stack_1.
411 * target.h (target_has_stack): Remove macro.
412 (target_has_stack): Rename from target_has_stack_1.
413
a739972c
TT
4142020-09-28 Tom Tromey <tom@tromey.com>
415
416 * target.c (target_has_memory): Rename from target_has_memory_1.
417 * tui/tui-regs.c (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 * frame.c (get_current_frame, has_stack_frames): Update.
422 * target.h (target_has_memory): Remove macro.
423 (target_has_memory): Rename from target_has_memory_1.
424
5b8a4776
TT
4252020-09-28 Tom Tromey <tom@tromey.com>
426
427 * target.c (target_has_all_memory_1): Remove.
428 * target.h (target_has_all_memory): Remove define.
429 (target_has_all_memory_1): Don't declare.
430
bd356ec6
SM
4312020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
432
433 * ser-base.c: Adjust comments formatting.
434
2c72d5e5
TT
4352020-09-27 Tom Tromey <tom@tromey.com>
436
437 PR tui/25342:
438 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
439
35a98237
TT
4402020-09-27 Tom Tromey <tom@tromey.com>
441
442 PR tui/25342:
443 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
444
9e820dec
TT
4452020-09-27 Tom Tromey <tom@tromey.com>
446
447 * unittests/tui-selftests.c: Update.
448 * tui/tui-winsource.h (struct tui_source_window_base)
449 <extra_margin, show_line_number, refresh_pad>: New methods.
450 <m_max_length, m_pad>: New members.
451 (tui_copy_source_line): Update.
452 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
453 first_col, line_width, ndigits parameters. Add length.
454 (tui_source_window_base::show_source_line): Write to pad. Line
455 number now 0-based.
456 (tui_source_window_base::refresh_pad): New method.
457 (tui_source_window_base::show_source_content): Write to pad. Call
458 refresh_pad.
459 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
460 not refill.
461 (tui_source_window_base::update_exec_info): Call
462 show_line_number.
463 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
464 method.
465 <m_digits>: New member.
466 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
467 and m_max_length.
468 (tui_source_window::show_line_number): New method.
469 * tui/tui-io.h (tui_puts): Fix comment.
470 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
471 m_max_length.
472
c15c15c8
TT
4732020-09-27 Tom Tromey <tom@tromey.com>
474
475 * tui/tui-winsource.c
476 (tui_source_window_base::set_is_exec_point_at): Don't call
477 show_source_line.
478
149830c1
TT
4792020-09-27 Tom Tromey <tom@tromey.com>
480
481 * python/py-tui.c (class tui_py_window) <refresh_window>: New
482 method.
483 <erase>: Update.
484 <cursor_x, cursor_y>: Remove.
485 <m_inner_window>: New member.
486 (tui_py_window::rerender): Create inner window.
487 (tui_py_window::output): Write to inner window.
488
8f9929bb
GR
4892020-09-26 Gareth Rees <grees@undo.io> (tiny change)
490
491 PR python/26586
492 * cli/cli-script.c (execute_control_commands): don't set
493 instream to nullptr here as this breaks the from_tty argument
494 to gdb.execute in Python.
495 (execute_user_command): set instream to nullptr here instead.
496
956bdb59
SM
4972020-09-25 Simon Marchi <simon.marchi@efficios.com>
498
499 * infrun.h (infrun_debug_printf): Fix formatting.
500 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
501
3b93626b
SJ
5022020-09-25 Saagar Jha <saagar@saagarjha.com>
503
504 * compile/compile-object-load.h (struct munmap_list): Add
505 explicitly-defined move constructor.
506
b551a89f
TT
5072020-09-24 Tom Tromey <tromey@adacore.com>
508
509 PR tui/26638:
510 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
511 method.
512 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
513 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
514 (tui_prev_win): Rewrite.
515
99bb393f
HD
5162020-09-23 Hannes Domani <ssbssa@yahoo.de>
517
518 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
519 in WOW64 processes as SIGINT.
520 * nat/windows-nat.h: Make wow64_process a shared variable.
521 * windows-nat.c: Remove static wow64_process variable.
522
20a5fcbd
TT
5232020-09-23 Tom Tromey <tom@tromey.com>
524
525 PR symtab/25470:
526 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
527 offset and bit size.
528 * printcmd.c (print_scalar_formatted): Handle zero-length
529 integer.
530 (print_scalar_formatted): Use bit_size_differs_p.
531 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
532 constant.
533 (union type_specific): <int_stuff>: New member.
534 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
535 methods.
536 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
537 TYPE_SPECIFIC_FIELD.
538 (recursive_dump_type, copy_type_recursive): Update.
539 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
540 DW_AT_data_bit_offset.
541
bac51ab7
TT
5422020-09-23 Tom Tromey <tom@tromey.com>
543
544 * utils.h (class gdb_argv): Add move operators.
545 <append>: New methods.
546 * compile/compile.c (build_argc_argv): Remove.
547 (compile_args_argc): Remove.
548 (compile_args_argv): Change type.
549 (set_compile_args): Simplify.
550 (append_args): Remove.
551 (filter_args): Remove argcp parameter.
552 (get_args): Return gdb_argv. Simplify.
553 (compile_to_object): Update.
554
92677124
TT
5552020-09-23 Tom Tromey <tom@tromey.com>
556
557 * compile/compile-object-run.c (do_module_cleanup)
558 <~do_module_cleanup> :Remove.
559 (do_module_cleanup): Update.
560 * compile/compile-object-load.h (struct munmap_list): Add move
561 assignment operator.
562 <source_file>: Now a std::string.
563 <munmap_list>: Rename. No longer a pointer.
564 * compile/compile-object-load.c (struct setup_sections_data): Add
565 constructor.
566 <setup_one_section>: Declare.
567 <munmap_list>: Move earlier.
568 <m_bfd>: New member.
569 <m_last_size, m_last_section_first, m_last_prot,
570 m_last_max_alignment>: Rename, add initializers where needed.
571 (setup_sections_data::setup_one_section): Rename from
572 setup_sections. Update.
573 (compile_object_load): Update. Don't use bfd_map_over_sections.
574
e616f60a
TT
5752020-09-23 Tom Tromey <tom@tromey.com>
576
577 * compile/compile-object-run.c (struct do_module_cleanup): Add
578 parameters to constructor. Update destructor.
579 <source_file, scope, scope_data, out_value_type, out_value_addr,
580 munmap_list_head, objfile_name_string>: Remove.
581 <module>: New member.
582 (do_module_cleanup): Update.
583 (compile_object_run): Update.
584
e947a848
TT
5852020-09-23 Tom Tromey <tom@tromey.com>
586
587 * compile/compile.c (eval_compile_command): Update.
588 * compile/compile-object-run.h (compile_object_run): Take a
589 compile_module_up.
590 * compile/compile-object-run.c (compile_object_run): Take a
591 compile_module_up.
592 * compile/compile-object-load.h (struct compile_module): Add
593 constructor, destructor.
594 (compile_module_up): New typedef.
595 (compile_object_load): Return compile_object_up.
596 * compile/compile-object-load.c (compile_object_load): Return
597 compile_module_up.
598
0dbf6ee6
TT
5992020-09-23 Tom Tromey <tom@tromey.com>
600
601 * compile/compile-object-run.c (struct do_module_cleanup): Add
602 constructor, destructor.
603 <objfile_name_string>: Don't use struct hack.
604 (do_module_cleanup): Use delete.
605 (compile_object_run): Use new.
606
ebe824f5
TT
6072020-09-23 Tom Tromey <tom@tromey.com>
608
609 * compile/compile-cplus-types.c
610 (compile_cplus_convert_struct_or_union): Use std::vector.
611 (compile_cplus_convert_func): Likewise.
612 * compile/compile-c-types.c (convert_func): Use std::vector.
613
5dd918d9
TT
6142020-09-21 Tom Tromey <tromey@adacore.com>
615
616 * sparc-tdep.c (sparc32_skip_prologue): Use
617 skip_prologue_using_sal.
618
5486c517
TT
6192020-09-19 Tom Tromey <tom@tromey.com>
620
621 * symfile.c (add_section_size_callback): Remove.
622 (load_one_section): Rename from load_section_callback. Change
623 parameters.
624 (generic_load): Use foreach.
625
8a6bb1d1
TT
6262020-09-19 Tom Tromey <tom@tromey.com>
627
628 * exec.c (add_to_section_table): Remove.
629 (build_section_table): Use foreach.
630
08f93a1a
TT
6312020-09-19 Tom Tromey <tom@tromey.com>
632
633 * elfread.c (elf_locate_sections): Change parameters.
634 (elf_symfile_read): Use foreach.
635
03cd72b8
TT
6362020-09-19 Tom Tromey <tom@tromey.com>
637
638 * cli/cli-dump.c (struct callback_data): Remove.
639 (restore_one_section): Rename from restore_section_callback.
640 Change parameters.
641 (restore_binary_file): Change parameters.
642 (restore_command): Use foreach.
643
f4f2b85f
TT
6442020-09-19 Tom Tromey <tom@tromey.com>
645
646 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
647 (gcore_copy_callback): Likewise.
648 (gcore_memory_sections): Use foreach.
649
b35c1d1c
TT
6502020-09-19 Tom Tromey <tom@tromey.com>
651
652 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
653 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
654 parameters.
655 (generic_elf_osabi_sniffer): Use foreach.
656 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
657 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
658
5bb6e9dd
TT
6592020-09-19 Tom Tromey <tom@tromey.com>
660
661 * dwarf2/read.c (locate_dwz_sections): Change parameters.
662 (dwarf2_get_dwz_file): Use foreach.
663 (dwarf2_locate_dwo_sections): Change parameters.
664 (open_and_init_dwo_file): Use foreach.
665 (dwarf2_locate_common_dwp_sections): Change parameters.
666 (open_and_init_dwp_file): Use foreach.
667
ad7277da
TT
6682020-09-19 Tom Tromey <tom@tromey.com>
669
670 * symfile.h: (find_lowest_section): Don't declare.
671 * symfile.c (find_lowest_section): Now static. Change
672 parameters.
673 (struct place_section_arg): Remove.
674 (place_section): Change parameters.
675 (addr_info_make_relative): Use foreach.
676 (symfile_dummy_outputs): Remove.
677 (default_symfile_relocate): Use foreach.
678
cb814f2e
TT
6792020-09-19 Tom Tromey <tom@tromey.com>
680
681 * objfiles.c (add_to_objfile_sections): Rename from
682 add_to_objfile_sections_full.
683 (add_to_objfile_sections): Remove.
684 (build_objfile_section_table): Use foreach.
685
3cabfd26
TT
6862020-09-19 Tom Tromey <tom@tromey.com>
687
688 * stap-probe.c (get_stap_base_address_1): Remove.
689 (get_stap_base_address): Use foreach.
690
1ce51eb5
TT
6912020-09-19 Tom Tromey <tom@tromey.com>
692
693 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
694 parameters.
695 (gdb_bfd_close_or_warn): Use foreach.
696
a190fabb
TT
6972020-09-19 Tom Tromey <tom@tromey.com>
698
699 * corelow.c (add_to_thread_list): Change parameters.
700 (core_target_open): Use foreach.
701
cafb0d81
TT
7022020-09-19 Tom Tromey <tom@tromey.com>
703
704 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
705 existing function.
706
c8d5abea
AB
7072020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
708
709 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
710 for arrays.
711
6d816919
AB
7122020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
713
714 * eval.c: Remove 'f-lang.h' include.
715 (value_f90_subarray): Moved to f-lang.c.
716 (eval_call): Renamed to...
717 (evaluate_subexp_do_call): ...this, is no longer static, header
718 comment moved into header file.
719 (evaluate_funcall): Update call to eval_call.
720 (skip_undetermined_arglist): Moved to f-lang.c.
721 (fortran_value_subarray): Likewise.
722 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
723 moved to evaluate_subexp_f.
724 (calc_f77_array_dims): Moved to f-lang.c
725 * expprint.c (print_subexp_funcall): New function.
726 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
727 moved to print_subexp_f, OP_FUNCALL uses new function.
728 (dump_subexp_body_funcall): New function.
729 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
730 moved to dump_subexp_f, OP_FUNCALL uses new function.
731 * expression.h (evaluate_subexp_do_call): Declare.
732 * f-lang.c (value_f90_subarray): Moved from eval.c.
733 (skip_undetermined_arglist): Likewise.
734 (calc_f77_array_dims): Likewise.
735 (fortran_value_subarray): Likewise.
736 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
737 (operator_length_f): Likewise.
738 (print_subexp_f): Likewise.
739 (dump_subexp_body_f): Likewise.
740 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
741 declaration of this operation to here.
742 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
743 support moved to operator_length_f.
744 * parser-defs.h (dump_subexp_body_funcall): Declare.
745 (print_subexp_funcall): Declare.
746 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
747 fortran-operator.def.
748
8c37706a
AB
7492020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
750
751 * eval.c (fortran_value_subarray): New function, content is taken
752 from...
753 (evaluate_subexp_standard): ...here, in two places. Now arrays
754 and strings both call the new function.
755 (calc_f77_array_dims): Add header comment, handle strings.
756
14f9473c
VC
7572020-09-18 Victor Collod <vcollod@nvidia.com>
758
759 PR gdb/26635
760 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
761 (i386_analyze_prologue): Call i386_skip_endbr.
762
b60cea74
TT
7632020-09-18 Tom Tromey <tromey@adacore.com>
764
765 * windows-nat.c (struct windows_nat_target) <wait>: Update.
766 (windows_nat_target::wait): Update.
767 * target/wait.h (enum target_wait_flag): New. Use
768 DEF_ENUM_FLAGS_TYPE.
769 * target/target.h (target_wait): Change type of options.
770 * target.h (target_options_to_string, default_target_wait):
771 Update.
772 (struct target_ops) <wait>: Change type of options.
773 * target.c (target_wait, default_target_wait, do_option): Change
774 type of "options".
775 (target_options_to_string): Likewise.
776 * target-delegates.c: Rebuild.
777 * target-debug.h (target_debug_print_target_wait_flags): Rename
778 from target_debug_print_options.
779 * sol-thread.c (class sol_thread_target) <wait>: Update.
780 (sol_thread_target::wait): Update.
781 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
782 (rs6000_nat_target::wait): Update.
783 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
784 Update.
785 (remote_target::wait_ns, remote_target::wait_as): Change type of
786 "options".
787 (remote_target::wait): Update.
788 * remote-sim.c (struct gdbsim_target) <wait>: Update.
789 (gdbsim_target::wait): Update.
790 * record-full.c (class record_full_base_target) <wait>: Update.
791 (record_full_wait_1): Change type of "options".
792 (record_full_base_target::wait): Update.
793 * record-btrace.c (class record_btrace_target) <wait>: Update.
794 (record_btrace_target::wait): Update.
795 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
796 Update.
797 (ravenscar_thread_target::wait): Update.
798 * procfs.c (class procfs_target) <wait>: Update.
799 (procfs_target::wait): Update.
800 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
801 * obsd-nat.c (obsd_nat_target::wait): Update.
802 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
803 (nto_procfs_target::wait): Update.
804 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
805 * nbsd-nat.c (nbsd_wait): Change type of "options".
806 (nbsd_nat_target::wait): Update.
807 * linux-thread-db.c (class thread_db_target) <wait>: Update.
808 (thread_db_target::wait): Update.
809 * linux-nat.h (class linux_nat_target) <wait>: Update.
810 * linux-nat.c (linux_nat_target::wait): Update.
811 (linux_nat_wait_1): Update.
812 * infrun.c (do_target_wait_1, do_target_wait): Change type of
813 "options".
814 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
815 * inf-ptrace.c (inf_ptrace_target::wait): Update.
816 * go32-nat.c (struct go32_nat_target) <wait>: Update.
817 (go32_nat_target::wait): Update.
818 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
819 * gnu-nat.c (gnu_nat_target::wait): Update.
820 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
821 * fbsd-nat.c (fbsd_nat_target::wait): Update.
822 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
823 * darwin-nat.c (darwin_nat_target::wait): Update.
824 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
825 (bsd_uthread_target::wait): Update.
826 * aix-thread.c (class aix_thread_target) <wait>: Update.
827 (aix_thread_target::wait): Update.
828
0295dde6
AB
8292020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
830
831 * compile/compile-object-run.c (create_copied_type_recursive): New
832 function.
833 (compile_object_run): Use new function.
834
d3483b43
JT
8352020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
836
837 * NEWS: Mention x86_64 Cygwin core file support.
838
e7d612ad
JT
8392020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
840
841 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
842 (core_process_module_section): Handle NOTE_INFO_MODULE64.
843
aff9d387
JT
8442020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
845
62a5151b
JT
846 * windows-tdep.h: Add prototypes.
847 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
848 (i386_windows_core_pid_to_str): Move and rename ...
849 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
850 (windows_core_pid_to_str): ... and here.
851 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
852
8532020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
854 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
855 (amd64_windows_init_abi_common): ... and register.
856
7d155da3
JT
8572020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
858
859 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
860 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
861
e8ef12b9
PA
8622020-09-18 Pedro Alves <pedro@palves.net>
863
864 PR gdb/26631
865 * thread.c (thread_find_command): Switch inferior before calling
866 target methods.
867
c1e1314d
TT
8682020-09-17 Tom Tromey <tromey@adacore.com>
869
870 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
871 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
872 (tdesc_arch_data_up): New typedef.
873 (tdesc_use_registers, tdesc_data_alloc): Update.
874 (tdesc_data_cleanup): Don't declare.
875 * target-descriptions.c (tdesc_data_alloc): Return a
876 tdesc_arch_data_up.
877 (tdesc_arch_data_deleter::operator()): Rename from
878 tdesc_data_cleanup. Change argument type.
879 (tdesc_use_registers): Change early_data to an rvalue reference.
880 (tdesc_use_registers): Don't use delete.
881 * sparc-tdep.c (sparc32_gdbarch_init): Update.
882 * s390-tdep.c (s390_gdbarch_init): Update.
883 * rx-tdep.c (rx_gdbarch_init): Update.
884 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
885 * riscv-tdep.c (riscv_gdbarch_init): Update.
886 * or1k-tdep.c (or1k_gdbarch_init): Update.
887 * nios2-tdep.c (nios2_gdbarch_init): Update.
888 * nds32-tdep.c (nds32_gdbarch_init): Update.
889 * mips-tdep.c (mips_gdbarch_init): Update.
890 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
891 * m68k-tdep.c (m68k_gdbarch_init): Update.
892 * i386-tdep.c (i386_gdbarch_init): Update.
893 * arm-tdep.c (arm_gdbarch_init): Update.
894 * arc-tdep.c (arc_tdesc_init): Update.
895 (arc_gdbarch_init): Update.
896 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
897
0363df3d
HD
8982020-09-17 Hannes Domani <ssbssa@yahoo.de>
899
900 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
901 for WOW64 processes.
902
280a9412
TT
9032020-09-17 Tom Tromey <tom@tromey.com>
904
905 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
906
6108fd18
TT
9072020-09-17 Tom Tromey <tom@tromey.com>
908
909 * value.c (preserve_values): Update.
910 * python/py-type.c (save_objfile_types): Update.
911 * guile/scm-type.c (save_objfile_types): Update.
912 * gdbtypes.h (create_copied_types_hash): Return htab_up.
913 * gdbtypes.c (create_copied_types_hash): Return htab_up.
914 * compile/compile-object-run.c (compile_object_run): Update.
915
fa9b1164
TT
9162020-09-17 Tom Tromey <tom@tromey.com>
917
918 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
919 Remove.
920 <m_table>: Now htab_up.
921 * typeprint.c (typedef_hash_table::recursively_update)
922 (typedef_hash_table::add_template_parameters)
923 (typedef_hash_table::typedef_hash_table): Update.
924 (typedef_hash_table::~typedef_hash_table): Remove.
925 (typedef_hash_table::typedef_hash_table)
926 (typedef_hash_table::find_global_typedef)
927 (typedef_hash_table::find_typedef): Update.
928
eb53f105
TT
9292020-09-17 Tom Tromey <tom@tromey.com>
930
931 * target-descriptions.c (tdesc_use_registers): Use htab_up.
932
7a8a5d47
TT
9332020-09-17 Tom Tromey <tom@tromey.com>
934
935 * linespec.c (class decode_compound_collector)
936 <~decode_compound_collector>: Remove.
937 <m_unique_syms>: Now htab_up.
938 (decode_compound_collector::operator ()): Update.
939 (class symtab_collector) <~symtab_collector>: Remove.
940 <m_symtab_table>: Now htab_up.
941 (symtab_collector::operator ()): Update.
942
99032cfc
TT
9432020-09-17 Tom Tromey <tom@tromey.com>
944
945 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
946 (filename_seen_cache::clear): Update.
947 (~filename_seen_cache): Remove.
948 (filename_seen_cache::seen): Update.
949 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
950 htab_up.
951 <~filename_seen_cache>: Remove.
952 <traverse>: Update.
953
32580f6d
TT
9542020-09-17 Tom Tromey <tom@tromey.com>
955
956 * completer.c (completion_tracker::discard_completions)
957 (completion_tracker::~completion_tracker)
958 (completion_tracker::maybe_add_completion)
959 (completion_tracker::remove_completion)
960 (completion_tracker::recompute_lowest_common_denominator)
961 (completion_tracker::build_completion_result): Update.
962 * completer.h (class completion_tracker) <have_completions>:
963 Update.
964 <m_entries_hash>: Now htab_up.
965
c1fb9836
TT
9662020-09-17 Tom Tromey <tom@tromey.com>
967
968 * breakpoint.c (ambiguous_names_p): Use htab_up.
969
88f07206
TT
9702020-09-17 Tom Tromey <tom@tromey.com>
971
972 * auto-load.c (struct auto_load_pspace_info)
973 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
974 <loaded_script_files, loaded_script_texts>: Change type to
975 htab_up.
976 (~auto_load_pspace_info) Remove.
977 (init_loaded_scripts_info, maybe_add_script_file)
978 (maybe_add_script_text, auto_load_info_scripts): Update.
979
9519b2ee
TT
9802020-09-17 Tom Tromey <tromey@adacore.com>
981
982 * c-exp.y (name_obstack): Now static.
983
d2cd4113
CC
9842020-09-17 Chungyi Chi <demonic@csie.io>
985
986 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
987
b650a282
SM
9882020-09-16 Simon Marchi <simon.marchi@efficios.com>
989
990 * breakpoint.h (init_catchpoint): Change int parameter to bool.
991 (add_solib_catchpoint): Likewise.
992 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
993 to bool.
994 (add_solib_catchpoint): Change int parameter/variable to bool.
995 (catch_load_or_unload): Likewise.
996 (init_catchpoint): Likewise.
997 (create_fork_vfork_event_catchpoint): Likewise.
998 (catch_fork_command_1): Likewise.
999 (catch_exec_command_1): Likewise.
1000
4d0bcfcf
SM
10012020-09-16 Simon Marchi <simon.marchi@efficios.com>
1002
1003 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
1004 Change instance_flags to m_instance_flags.
1005
fe830662
TT
10062020-09-16 Tom Tromey <tromey@adacore.com>
1007
1008 PR gdb/26598:
1009 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
1010
fe5ddfc3
JB
10112020-09-16 John Baldwin <jhb@FreeBSD.org>
1012
1013 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
1014 PL_FLAG_EXEC.
1015 (fbsd_nat_target::insert_exec_catchpoint)
1016 (fbsd_nat_target::remove_exec_catchpoint): Always define.
1017 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
1018 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
1019
e911c666
JB
10202020-09-16 John Baldwin <jhb@FreeBSD.org>
1021
1022 * configure.ac: Remove check for kinfo_getvmmap().
1023 * configure, config.in: Regenerate.
1024 * fbsd-nat.c (fbsd_read_mapping): Remove
1025 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
1026 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
1027 kinfo_get_vmmap() are always present.
1028
1f17d372
JB
10292020-09-16 John Baldwin <jhb@FreeBSD.org>
1030
1031 * fbsd-nat.c: Always include support for
1032 TARGET_OBJECT_SIGNAL_INFO.
1033
bcb1da7f
JB
10342020-09-16 John Baldwin <jhb@FreeBSD.org>
1035
1036 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
1037 sysctl and remove procfs fallback.
1038
5515f729
JB
10392020-09-16 John Baldwin <jhb@FreeBSD.org>
1040
1041 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
1042 * fbsd-nat.h: Likewise.
1043
da1df1db
TBA
10442020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1045
1046 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
1047 argument.
1048
0e25e767
AB
10492020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1050
1051 * ada-lang.c (ada_language_data): Delete.
1052 (ada_language): Remove references to ada_language_data.
1053 * c-lang.c (c_language_data): Delete.
1054 (c_language): Remove references to c_language_data.
1055 (cplus_language_data): Delete.
1056 (cplus_language): Remove references to cplus_language_data.
1057 (asm_language_data): Delete.
1058 (asm_language): Remove references to asm_language_data.
1059 (minimal_language_data): Delete.
1060 (minimal_language): Remove references to minimal_language_data.
1061 * d-lang.c (d_language_data): Delete.
1062 (d_language): Remove references to d_language_data.
1063 * f-lang.c (f_language_data): Delete.
1064 (f_language): Remove references to f_language_data.
1065 * go-lang.c (go_language_data): Delete.
1066 (go_language): Remove references to go_language_data.
1067 * language.c (unknown_language_data): Delete.
1068 (unknown_language): Remove references to unknown_language_data.
1069 (auto_language_data): Delete.
1070 (auto_language): Remove references to auto_language_data.
1071 * language.h (language_data): Delete struct.
1072 (language_defn): No longer inherit from language_data.
1073 * m2-lang.c (m2_language_data): Delete.
1074 (m2_language): Remove references to m2_language_data.
1075 * objc-lang.c (objc_language_data): Delete.
1076 (objc_language): Remove references to objc_language_data.
1077 * opencl-lang.c (opencl_language_data): Delete.
1078 (opencl_language): Remove references to opencl_language_data.
1079 * p-lang.c (pascal_language_data): Delete.
1080 (pascal_language): Remove references to pascal_language_data.
1081 * rust-lang.c (rust_language_data): Delete.
1082 (rust_language): Remove references to rust_language_data.
1083
b7c6e27d
AB
10842020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1085
1086 * ada-lang.c (ada_language_data): Remove la_op_print_tab
1087 initializer.
1088 (ada_language::opcode_print_table): New member function.
1089 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
1090 (c_language::opcode_print_table): New member function.
1091 (cplus_language_data): Remove la_op_print_tab initializer.
1092 (cplus_language::opcode_print_table): New member function.
1093 (asm_language_data): Remove la_op_print_tab initializer.
1094 (asm_language::opcode_print_table): New member function.
1095 (minimal_language_data): Remove la_op_print_tab initializer.
1096 (minimal_language::opcode_print_table): New member function.
1097 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
1098 (d_language::opcode_print_table): New member function.
1099 * expprint.c (print_subexp_standard): Update call to
1100 opcode_print_table.
1101 (op_string): Likewise.
1102 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
1103 (f_language::opcode_print_table): New member function.
1104 * go-lang.c (go_language_data): Remove la_op_print_tab
1105 initializer.
1106 (go_language::opcode_print_table): New member function.
1107 * language.c (unknown_language_data): Remove la_op_print_tab
1108 initializer.
1109 (unknown_language::opcode_print_table): New member function.
1110 (auto_language_data): Remove la_op_print_tab initializer.
1111 (auto_language::opcode_print_table): New member function.
1112 * language.h (language_data): Remove la_op_print_tab field.
1113 (language_defn::opcode_print_table): Declare new member function.
1114 * m2-lang.c (m2_language_data): Remove la_op_print_tab
1115 initializer.
1116 (m2_language::opcode_print_table): New member function.
1117 * objc-lang.c (objc_language_data): Remove la_op_print_tab
1118 initializer.
1119 (objc_language::opcode_print_table): New member function.
1120 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
1121 initializer.
1122 (opencl_language::opcode_print_table): New member function.
1123 * p-lang.c (pascal_language_data): Remove la_op_print_tab
1124 initializer.
1125 (pascal_language::opcode_print_table): New member function.
1126 * rust-lang.c (rust_language_data): Remove la_op_print_tab
1127 initializer.
1128 (rust_language::opcode_print_table): New member function.
1129
5aba6ebe
AB
11302020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1131
1132 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
1133 (ada_language::expression_ops): New member function.
1134 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
1135 (c_language::expression_ops): New member function.
1136 (cplus_language_data): Remove la_exp_desc initializer.
1137 (cplus_language::expression_ops): New member function.
1138 (asm_language_data): Remove la_exp_desc initializer.
1139 (asm_language::expression_ops): New member function.
1140 (minimal_language_data): Remove la_exp_desc initializer.
1141 (minimal_language::expression_ops): New member function.
1142 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
1143 (d_language::expression_ops): New member function.
1144 * eval.c (evaluate_subexp): Update call to expression_ops.
1145 * expprint.c (print_subexp): Likewise.
1146 (op_name): Likewise.
1147 (dump_subexp_body): Likewise.
1148 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
1149 (f_language::expression_ops): New member function.
1150 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
1151 (go_language::expression_ops): New member function.
1152 * language.c (language_defn::expression_ops): New function.
1153 (unknown_language_data): Remove la_exp_desc initializer.
1154 (auto_language_data): Likewise.
1155 * language.h (language_data): Remove la_exp_desc field.
1156 (language_defn::expression_ops): Declare new member function.
1157 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
1158 (m2_language::expression_ops): New member function.
1159 * objc-lang.c (objc_language_data): Remove la_exp_desc
1160 initializer.
1161 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
1162 initializer.
1163 (opencl_language::expression_ops): New member function.
1164 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
1165 * parse.c (operator_length): Update call to expression_ops.
1166 (exp_iterate): Likewise.
1167 * rust-lang.c (rust_language_data): Remove la_exp_desc
1168 initializer.
1169 (ruse_language::expression_ops): New member function.
1170
b63a3f3f
AB
11712020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1172
1173 * ada-lang.c (ada_language_data): Remove la_varobj_ops
1174 initializer.
1175 (ada_language::varobj_ops): New member function.
1176 * c-lang.c (c_language_data): Remove la_varobj_ops
1177 initializer.
1178 (cplus_language_data): Likewise.
1179 (cplus_language::varobj_ops): New member function.
1180 (asm_language_data): Remove la_varobj_ops initializer.
1181 (minimal_language_data): Likewise.
1182 * d-lang.c (d_language_data): Likewise.
1183 * f-lang.c (f_language_data): Likewise.
1184 * go-lang.c (go_language_data): Likewise.
1185 * language.c (language_defn::varobj_ops): New function.
1186 (unknown_language_data): Remove la_varobj_ops
1187 initializer.
1188 (auto_language_data): Likewise.
1189 * language.h (language_data): Remove la_varobj_ops field.
1190 (language_defn::varobj_ops): Declare new member function.
1191 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
1192 * objc-lang.c (objc_language_data): Likewise.
1193 * opencl-lang.c (opencl_language_data): Likewise.
1194 * p-lang.c (pascal_language_data): Likewise.
1195 * rust-lang.c (rust_language_data): Likewise.
1196 * varobj.c (varobj_create): Update call to varobj_ops.
1197 * varobj.h (default_varobj_ops): Delete define.
1198
1ac14a04
AB
11992020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1200
1201 * ada-lang.c (ada_language_data): Remove la_macro_expansion
1202 initializer.
1203 * c-lang.c (c_language_data): Likewise.
1204 (c_language::macro_expansion): New member function.
1205 (cplus_language_data): Likewise.
1206 (cplus_language::macro_expansion): New member function.
1207 (asm_language_data): Likewise.
1208 (asm_language::macro_expansion): New member function.
1209 (minimal_language_data): Likewise.
1210 (minimal_language::macro_expansion): New member function.
1211 * d-lang.c (d_language_data): Remove la_macro_expansion
1212 initializer.
1213 * f-lang.c (f_language_data): Likewise.
1214 * go-lang.c (go_language_data): Likewise.
1215 * language.c (unknown_language_data): Likewise.
1216 (auto_language_data): Likewise.
1217 * language.h (language_data): Remove la_macro_expansion field.
1218 (language_defn::macro_expansion): New member function.
1219 * m2-lang.c (m2_language_data): Remove la_macro_expansion
1220 initializer.
1221 * objc-lang.c (objc_language_data): Likewise.
1222 (objc_language::macro_expansion): New member function.
1223 * opencl-lang.c (opencl_language_data): Likewise.
1224 (opencl_language::macro_expansion): New member function.
1225 * p-lang.c (pascal_language_data): Remove la_macro_expansion
1226 initializer.
1227 * rust-lang.c (rust_language_data): Likewise.
1228 * symtab.c (default_collect_symbol_completion_matches_break_on):
1229 Update call to macro_expansion.
1230
3a3440fb
AB
12312020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1232
1233 * ada-lang.c (ada_language_data): Remove la_array_ordering
1234 initializer.
1235 * c-lang.c (c_language_data): Likewise.
1236 (cplus_language_data): Likewise.
1237 (asm_language_data): Likewise.
1238 (minimal_language_data): Likewise.
1239 * d-lang.c (d_language_data): Likewise.
1240 * dwarf2/read.c (read_array_order): Update for call to
1241 array_ordering.
1242 * f-lang.c (f_language_data): Remove la_array_ordering
1243 initializer.
1244 (f_language::array_ordering): New member function.
1245 * go-lang.c (go_language_data): Remove la_array_ordering
1246 initializer.
1247 * language.c (unknown_language_data): Likewise.
1248 (auto_language_data): Likewise.
1249 * language.h (language_data): Delete la_array_ordering field.
1250 (language_defn::array_ordering): New member function.
1251 * m2-lang.c (m2_language_data): Remove la_array_ordering
1252 initializer.
1253 * objc-lang.c (objc_language_data): Likewise.
1254 * opencl-lang.c (opencl_language_data): Likewise.
1255 * p-lang.c (pascal_language_data): Likewise.
1256 * rust-lang.c (rust_language_data): Likewise.
1257
0d201fa4
AB
12582020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1259
1260 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
1261 initializer.
1262 * c-lang.c (c_language_data): Likewise.
1263 (cplus_language_data): Likewise.
1264 (asm_language_data): Likewise.
1265 (minimal_language_data): Likewise.
1266 * d-lang.c (d_language_data): Likewise.
1267 * f-lang.c (f_language_data): Likewise.
1268 (f_language::case_sensitivity): New member function.
1269 * go-lang.c (go_language_data): Remove la_case_sensitivity
1270 initializer.
1271 * language.c (enum case_mode): Moved here from language.h.
1272 (case_mode): Make static.
1273 (show_case_command): Update for case_sensitivity being a method.
1274 (set_case_command): Likewise.
1275 (set_range_case): Likewise.
1276 (unknown_language_data): Remove la_case_sensitivity initializer.
1277 (auto_language_data): Likewise.
1278 * language.h (case_mode): Delete, move enum declaration to
1279 language.c.
1280 (language_data): Delete la_case_sensitivity field.
1281 (language_defn::case_sensitivity): New member function.
1282 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
1283 initializer.
1284 * objc-lang.c (objc_language_data): Likewise.
1285 * opencl-lang.c (opencl_language_data): Likewise.
1286 * p-lang.c (pascal_language_data): Likewise.
1287 * rust-lang.c (rust_language_data): Likewise.
1288
efdf6a73
AB
12892020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1290
1291 * ada-lang.c (ada_language_data): Remove la_range_check
1292 initializer.
1293 * c-lang.c (c_language_data): Likewise.
1294 (cplus_language_data): Likewise.
1295 (asm_language_data): Likewise.
1296 (minimal_language_data): Likewise.
1297 * d-lang.c (d_language_data): Likewise.
1298 * f-lang.c (f_language_data): Likewise.
1299 (f_language::range_checking_on_by_default): New member function.
1300 * go-lang.c (go_language_data): Remove la_range_check initializer.
1301 * language.c (enum range_mode): Moved here from language.h.
1302 (range_mode): Made static.
1303 (show_range_command): Update to use
1304 range_checking_on_by_default.
1305 (set_range_command): Likewise.
1306 (set_range_case): Likewise.
1307 (unknown_language_data): Remove la_range_check initializer.
1308 (auto_language_data): Likewise.
1309 * language.h (range_mode): Delete. Enum definition moved to
1310 language.c.
1311 (language_data): Remove la_range_check field.
1312 (language_defn::range_checking_on_by_default): New member
1313 function.
1314 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
1315 (m2_language::range_checking_on_by_default): New member function.
1316 * objc-lang.c (objc_language_data): Remove la_range_check
1317 initializer.
1318 * opencl-lang.c (opencl_language_data): Likewise.
1319 * p-lang.c (pascal_language_data): Likewise.
1320 (pascal_language::range_checking_on_by_default): New member
1321 function.
1322 * rust-lang.c (rust_language_data): Remove la_range_check
1323 initializer.
1324 (rust_language::range_checking_on_by_default): New member
1325 function.
1326
bf92aec5
AB
13272020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1328
1329 * dwarf2/read.c (dwarf2_physname): Remove special case for
1330 language_go.
1331 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
1332 member function.
1333
d3355e4d
AB
13342020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1335
1336 * ada-lang.c (ada_language_data): Remove
1337 la_store_sym_names_in_linkage_form_p initializer.
1338 (ada_language::store_sym_names_in_linkage_form_p): New member
1339 function.
1340 * c-lang.c (c_language_data): Remove
1341 la_store_sym_names_in_linkage_form_p initializer.
1342 (c_language::store_sym_names_in_linkage_form_p): New member
1343 function.
1344 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
1345 initializer.
1346 (asm_language_data): Likewise.
1347 (asm_language::store_sym_names_in_linkage_form_p): New member
1348 function.
1349 (minimal_language_data): Remove
1350 la_store_sym_names_in_linkage_form_p initializer.
1351 (minimal_language::store_sym_names_in_linkage_form_p): New member
1352 function.
1353 * d-lang.c (d_language_data): Remove
1354 la_store_sym_names_in_linkage_form_p initializer.
1355 * dwarf2/read.c (dwarf2_physname): Update call to
1356 store_sym_names_in_linkage_form_p.
1357 * f-lang.c (f_language_data): Remove
1358 la_store_sym_names_in_linkage_form_p initializer.
1359 * go-lang.c (go_language_data): Remove
1360 la_store_sym_names_in_linkage_form_p initializer.
1361 * language.c (unknown_language_data): Remove
1362 la_store_sym_names_in_linkage_form_p initializer.
1363 (unknown_language::store_sym_names_in_linkage_form_p): New member
1364 function.
1365 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
1366 initializer.
1367 (auto_language::store_sym_names_in_linkage_form_p): New member
1368 function.
1369 * language.h (language_data): Remove
1370 la_store_sym_names_in_linkage_form_p member variable.
1371 (language_defn::store_sym_names_in_linkage_form_p): New member
1372 function.
1373 * m2-lang.c (m2_language_data): Remove
1374 la_store_sym_names_in_linkage_form_p initializer.
1375 * objc-lang.c (objc_language_data): Likewise.
1376 * opencl-lang.c (opencl_language_data): Likewise.
1377 * p-lang.c (pascal_language_data): Likewise.
1378 * rust-lang.c (rust_language_data): Likewise.
1379
22c12a6c
AB
13802020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1381
1382 * ada-lang.c (ada_language_data): Remove string_lower_bound
1383 initializer.
1384 * c-lang.c (c_language_data): Likewise.
1385 (cplus_language_data): Likewise.
1386 (asm_language_data): Likewise.
1387 (minimal_language_data): Likewise.
1388 * d-lang.c (d_language_data): Likewise.
1389 * f-lang.c (f_language_data): Likewise.
1390 * go-lang.c (go_language_data): Likewise.
1391 * language.c (unknown_language_data): Likewise.
1392 (auto_language_data): Likewise.
1393 * language.h (language_data): Remove string_lower_bound field.
1394 (language_defn::string_lower_bound): New member function.
1395 * m2-lang.c (m2_language_data): Remove string_lower_bound
1396 initializer.
1397 (m2_language::string_lower_bound): New member function.
1398 * objc-lang.c (objc_language_data): Remove string_lower_bound
1399 initializer.
1400 * opencl-lang.c (opencl_language_data): Likewise.
1401 * p-lang.c (pascal_language_data): Likewise.
1402 * rust-lang.c (rust_language_data): Likewise.
1403 * valops.c (value_cstring): Update call to string_lower_bound.
1404 (value_string): Likewise.
1405 * value.c (allocate_repeated_value): Likewise.
1406
1c236ddd
AB
14072020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1408
1409 * valops.c (value_repeat): Fix incorrect argument name in comment.
1410
67bd3fd5
AB
14112020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1412
1413 * ada-lang.c (ada_language_data): Remove c_style_arrays
1414 initializer.
1415 (ada_language::c_style_arrays_p): New member fuction.
1416 * c-lang.c (c_language_data): Remove c_style_arrays
1417 initializer.
1418 (cplus_language_data): Likewise.
1419 (asm_language_data): Likewise.
1420 (minimal_language_data): Likewise.
1421 * d-lang.c (d_language_data): Likewise.
1422 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
1423 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
1424 (f_language::c_style_arrays_p): New member function.
1425 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
1426 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
1427 * language.c (unknown_language_data): Remove c_style_arrays
1428 initializer.
1429 (auto_language_data): Likewise.
1430 * language.h (language_data): Remove c_style_arrays field.
1431 (language_defn::c_style_arrays_p): New member function.
1432 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
1433 (m2_language::c_style_arrays_p): New member function.
1434 * objc-lang.c (objc_language_data): Remove c_style_arrays
1435 initializer.
1436 * opencl-lang.c (opencl_language_data): Likewise.
1437 * p-lang.c (pascal_language_data): Likewise.
1438 * rust-lang.c (rust_language_data): Likewise.
1439 * valarith.c (value_subscript): Update call to c_style_arrays_p,
1440 and update local variable to a bool.
1441 * valops.c (value_cast): Update call to c_style_arrays_p.
1442 (value_array): Likewise.
1443 * value.c (coerce_array): Likewise.
1444
85967615
AB
14452020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1446
1447 * ada-lang.c (ada_language_data): Remove la_language initializer.
1448 * c-lang.c (c_language_data): Likewise.
1449 (cplus_language_data): Likewise.
1450 (asm_language_data): Likewise.
1451 (minimal_language_data): Likewise.
1452 * d-lang.c (d_language_data): Likewise.
1453 * f-lang.c (f_language_data): Likewise.
1454 * go-lang.c (go_language_data): Likewise.
1455 * language.c (unknown_language_data): Likewise.
1456 (auto_language_data): Likewise.
1457 * language.h (language_data): Remove la_language field.
1458 (language_defn::language_defn): Initialise la_language field.
1459 (language_defn::la_language): New member variable.
1460 * m2-lang.c (m2_language_data): Remove la_language field.
1461 * objc-lang.c (objc_language_data): Likewise.
1462 * opencl-lang.c (opencl_language_data): Likewise.
1463 * p-lang.c (pascal_language_data): Likewise.
1464 * rust-lang.c (rust_language_data): Likewise.
1465
e171d6f1
AB
14662020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1467
1468 * ada-lang.c (ada_extensions): Delete, moved into
1469 ada_language::filename_extensions.
1470 (ada_language_data): Remove la_filename_extensions initializer.
1471 (ada_language::filename_extensions): New member function.
1472 * c-lang.c (c_extensions): Delete, moved into
1473 c_language::filename_extensions.
1474 (c_language_data): Remove la_filename_extensions initializer.
1475 (c_language::filename_extensions): New member function.
1476 (cplus_extensions): Delete, moved into
1477 cplus_language::filename_extensions.
1478 (cplus_language_data): Remove la_filename_extensions initializer.
1479 (cplus_language::filename_extensions): New member function.
1480 (asm_extensions): Delete, moved into
1481 asm_language::filename_extensions.
1482 (asm_language_data): Remove la_filename_extensions initializer.
1483 (asm_language::filename_extensions): New member function.
1484 (minimal_language_data): Remove la_filename_extensions
1485 initializer.
1486 * d-lang.c (d_extensions): Delete, moved into
1487 d_language::filename_extensions.
1488 (d_language_data): Remove la_filename_extensions initializer.
1489 (d_language::filename_extensions): New member function.
1490 * f-lang.c (f_extensions): Delete, moved into
1491 f_language::filename_extensions.
1492 (f_language_data): Remove la_filename_extensions initializer.
1493 (f_language::filename_extensions): New member function.
1494 * go-lang.c (go_language_data): Remove la_filename_extensions
1495 initializer.
1496 * language.c (add_set_language_command): Update now that
1497 filename_extensions returns a vector.
1498 (unknown_language_data): Remove la_filename_extensions
1499 initializer.
1500 (auto_language_data): Likewise.
1501 * language.h (language_data): Remove la_filename_extensions field.
1502 (language_defn::filename_extensions): New member function.
1503 * m2-lang.c (m2_language_data): Remove la_filename_extensions
1504 initializer.
1505 * objc-lang.c (objc_extensions): Delete, moved into
1506 objc_language::filename_extensions.
1507 (objc_language_data): Remove la_filename_extensions initializer.
1508 (objc_language::filename_extensions): New member function.
1509 * opencl-lang.c (opencl_language_data): Remove
1510 la_filename_extensions initializer.
1511 * p-lang.c (pascal_extensions): Delete, moved into
1512 pascal_language::filename_extensions.
1513 (pascal_language_data): Remove la_filename_extensions initializer.
1514 (pascal_language::filename_extensions): New member function.
1515 * rust-lang.c (rust_extensions): Delete, moved into
1516 rust_language::filename_extensions.
1517 (rust_language_data): Remove la_filename_extensions initializer.
1518 (rust_language::filename_extensions): New member function.
1519 * symfile.c (add_filename_language): Add new assert.
1520
6f7664a9
AB
15212020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1522
1523 * ada-lang.c (ada_language_data): Remove la_name and
1524 la_natural_name initializers.
1525 (ada_language::name): New member function.
1526 (ada_language::natural_name): New member function.
1527 * c-lang.c (c_language_data): Remove la_name and
1528 la_natural_name initializers.
1529 (c_language::name): New member function.
1530 (c_language::natural_name): New member function.
1531 (cplus_language_data): Remove la_name and
1532 la_natural_name initializers.
1533 (cplus_language::name): New member function.
1534 (cplus_language::natural_name): New member function.
1535 (asm_language_data): Remove la_name and
1536 la_natural_name initializers.
1537 (asm_language::name): New member function.
1538 (asm_language::natural_name): New member function.
1539 (minimal_language_data): Remove la_name and
1540 la_natural_name initializers.
1541 (minimal_language::name): New member function.
1542 (minimal_language::natural_name): New member function.
1543 * compile/compile.c (compile_to_object): Update call to
1544 lanugage_defn::name.
1545 * d-lang.c (d_language_data): Remove la_name and
1546 la_natural_name initializers.
1547 (d_language::name): New member function.
1548 (d_language::natural_name): New member function.
1549 * expprint.c (print_subexp_standard): Update call to
1550 language_defn::name.
1551 (dump_raw_expression): Likewise
1552 (dump_prefix_expression): Likewise.
1553 * f-lang.c (f_language_data): Remove la_name and
1554 la_natural_name initializers.
1555 (f_language::name): New member function.
1556 (f_language::natural_name): New member function.
1557 * go-lang.c (go_language_data): Remove la_name and
1558 la_natural_name initializers.
1559 (go_language::name): New member function.
1560 (go_language::natural_name): New member function.
1561 * language.c (show_language_command): Update call to
1562 language_defn::name.
1563 (set_language_command): Likewise.
1564 (language_enum): Likewise.
1565 (language_str): Likewise.
1566 (add_set_language_command): Likewise, use
1567 language_defn::natural_name in the doc string.
1568 (unknown_language_data): Remove la_name and
1569 la_natural_name initializers.
1570 (unknown_language::name): New member function.
1571 (unknown_language::natural_name): New member function.
1572 (auto_language_data): Remove la_name and
1573 la_natural_name initializers.
1574 (auto_language::name): New member function.
1575 (auto_language::natural_name): New member function.
1576 (language_lookup_primitive_type_as_symbol): Update call to
1577 language_defn::name.
1578 * language.h (language_data): Remove la_name and la_natural_name
1579 member variables.
1580 (language_defn::name): New member function.
1581 (language_defn::natural_name): New member function.
1582 * m2-lang.c (m2_language_data): Remove la_name and
1583 la_natural_name initializers.
1584 (m2_language::name): New member function.
1585 (m2_language::natural_name): New member function.
1586 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
1587 language_defn::natural_name.
1588 * objc-lang.c (objc_language_data): Remove la_name and
1589 la_natural_name initializers.
1590 (objc_language::name): New member function.
1591 (objc_language::natural_name): New member function.
1592 * opencl-lang.c (opencl_language_data): Remove la_name and
1593 la_natural_name initializers.
1594 (opencl_language::name): New member function.
1595 (opencl_language::natural_name): New member function.
1596 * p-lang.c (pascal_language_data): Remove la_name and
1597 la_natural_name initializers.
1598 (pascal_language::name): New member function.
1599 (pascal_language::natural_name): New member function.
1600 * rust-lang.c (rust_language_data): Remove la_name and
1601 la_natural_name initializers.
1602 (rust_language::name): New member function.
1603 (rust_language::natural_name): New member function.
1604 * symtab.c (lookup_language_this): Update call to
1605 language_defn::name.
1606
5bae7c4e
AB
16072020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1608
1609 * ada-lang.c (ada_language_data): Remove la_name_of_this
1610 initializer.
1611 * ax-gdb.c (gen_expr): Update call to name_of_this.
1612 * c-exp.y (classify_name): Likewise.
1613 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
1614 (cplus_language_data): Likewise.
1615 (cplus_language::name_of_this): New member function.
1616 (asm_language_data): Remove la_name_of_this initializer.
1617 (minimal_language_data): Likewise.
1618 * d-lang.c (d_language_data): Likewise.
1619 (d_language::name_of_this): New member function.
1620 * expprint.c (print_subexp_standard): Update call to name_of_this.
1621 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
1622 * go-lang.c (go_language_data): Likewise.
1623 * language.c (unknown_language_data): Likewise.
1624 (unknown_language::name_of_this): New member function.
1625 (auto_language_data): Remove la_name_of_this initializer.
1626 (auto_language::name_of_this): New member function.
1627 * language.h (language_data): Delete la_name_of_this member
1628 variable.
1629 (language_defn::name_of_this): New member function.
1630 * m2-lang.c (m2_language_data): Remove la_name_of_this
1631 initializer.
1632 * objc-lang.c (objc_language_data): Likewise.
1633 (objc_language::name_of_this): New member function.
1634 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
1635 initializer.
1636 * p-lang.c (pascal_language_data): Likewise.
1637 (pascal_language::name_of_this): New member function.
1638 * rust-lang.c (rust_language_data): Remove la_name_of_this
1639 initializer.
1640 * symtab.c (lookup_language_this): Update call to name_of_this.
1641 (lookup_symbol_aux): Likewise.
1642 * valops.c (value_of_this): Likewise.
1643
22e3f3ed
AB
16442020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1645
1646 * ada-lang.c (ada_language_data): Remove
1647 la_struct_too_deep_ellipsis initializer.
1648 (ada_language::struct_too_deep_ellipsis): New member function.
1649 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
1650 initializer.
1651 (cplus_language_data): Likewise.
1652 (asm_language_data): Likewise.
1653 (minimal_language_data): Likewise.
1654 * cp-valprint.c (cp_print_value): Update call to
1655 struct_too_deep_ellipsis.
1656 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
1657 initializer.
1658 * f-lang.c (f_language_data): Likewise.
1659 (f_language::struct_too_deep_ellipsis): New member function.
1660 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
1661 initializer.
1662 * language.c (unknown_language_data): Likewise.
1663 (auto_language_data): Likewise.
1664 * language.h (language_data): Delete la_struct_too_deep_ellipsis
1665 member variable.
1666 (language_defn::struct_too_deep_ellipsis): New member function.
1667 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
1668 initializer.Q
1669 * objc-lang.c (objc_language_data): Likewise.
1670 * opencl-lang.c (opencl_language_data): Likewise.
1671 * p-lang.c (pascal_language_data): Likewise.
1672 * rust-lang.c (rust_language_data): Likewise.
1673 * valprint.c (val_print_check_max_depth): Update call to
1674 struct_too_deep_ellipsis.
1675
ed29e1c7
FW
16762020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
1677
1678 * MAINTAINERS (Write After Approval): Add myself.
1679
12d8f940
TT
16802020-09-15 Tom Tromey <tom@tromey.com>
1681
1682 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
1683 Remove.
1684
6b5a7bc7
TT
16852020-09-15 Tom Tromey <tom@tromey.com>
1686
1687 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
1688 and TYPE_CODE_METHODPTR cases.
1689 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
1690 (c_value_print_inner): Update.
1691 * valprint.c (generic_value_print_memberptr): New function, from
1692 c_value_print_memberptr.
1693 (generic_value_print): Use it. Call cplus_print_method_ptr.
1694
47f0e2ff
TT
16952020-09-15 Tom Tromey <tromey@adacore.com>
1696
1697 * python/python-internal.h (PyInt_FromLong): Remove define.
1698 * python/py-value.c (convert_value_from_python): Use
1699 gdb_py_object_from_longest.
1700 * python/py-type.c (typy_get_code): Use
1701 gdb_py_object_from_longest.
1702 * python/py-symtab.c (salpy_get_line): Use
1703 gdb_py_object_from_longest.
1704 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
1705 gdb_py_object_from_longest.
1706 * python/py-record.c (recpy_gap_reason_code): Use
1707 gdb_py_object_from_longest.
1708 * python/py-record-btrace.c (recpy_bt_insn_size)
1709 (recpy_bt_func_level, btpy_list_count): Use
1710 gdb_py_object_from_longest.
1711 * python/py-infthread.c (gdbpy_create_ptid_object): Use
1712 gdb_py_object_from_longest. Fix error handling.
1713 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
1714 gdb_py_object_from_longest.
1715 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
1716 gdb_py_object_from_longest.
1717 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
1718 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
1719 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
1720
512116ce
TT
17212020-09-15 Tom Tromey <tromey@adacore.com>
1722
1723 * python/python.c (gdbpy_parameter_value): Use
1724 gdb_py_object_from_ulongest.
1725
4ab1029c
TT
17262020-09-15 Tom Tromey <tromey@adacore.com>
1727
1728 * python/py-infevents.c (create_register_changed_event_object):
1729 Use gdb_py_object_from_longest.
1730 * python/py-exitedevent.c (create_exited_event_object): Use
1731 gdb_py_object_from_longest.
1732
062534d4
TT
17332020-09-15 Tom Tromey <tromey@adacore.com>
1734
1735 * python/python.c (gdbpy_parameter_value): Use
1736 gdb_py_object_from_longest.
1737 * python/py-type.c (convert_field, typy_range): Use
1738 gdb_py_object_from_longest.
1739 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
1740 gdb_py_object_from_longest.
1741 * python/py-lazy-string.c (stpy_get_length): Use
1742 gdb_py_object_from_longest.
1743 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
1744 gdb_py_object_from_longest.
1745 * python/py-infevents.c (create_memory_changed_event_object): Use
1746 gdb_py_object_from_longest.
1747 * python/py-inferior.c (infpy_get_num): Use
1748 gdb_py_object_from_longest.
1749 (infpy_get_pid): Likewise.
1750
d1cab987
TT
17512020-09-15 Tom Tromey <tromey@adacore.com>
1752
1753 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
1754 defines.
1755 * python/py-value.c (valpy_long): Use
1756 gdb_py_object_from_ulongest.
1757 * python/py-symtab.c (salpy_get_pc): Use
1758 gdb_py_object_from_ulongest.
1759 (salpy_get_last): Likewise.
1760 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
1761 gdb_py_object_from_ulongest.
1762 * python/py-lazy-string.c (stpy_get_address): Use
1763 gdb_py_object_from_ulongest.
1764 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
1765 * python/py-arch.c (archpy_disassemble): Use
1766 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
1767 error handling.
1768
4bde49dc
TT
17692020-09-15 Tom Tromey <tromey@adacore.com>
1770
1771 * python/python-internal.h (gdb_py_long_from_longest): Remove
1772 defines.
1773 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
1774 * python/py-type.c (convert_field, typy_get_sizeof): Use
1775 gdb_py_object_from_longest.
1776 * python/py-record-btrace.c (btpy_list_index): Use
1777 gdb_py_object_from_longest.
1778
37431074
TT
17792020-09-15 Tom Tromey <tromey@adacore.com>
1780
1781 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
1782 * python/py-record.c (recpy_element_number): Use
1783 gdb_py_object_from_longest.
1784 (recpy_gap_number): Likewise.
1785
cbe25684
TT
17862020-09-15 Tom Tromey <tromey@adacore.com>
1787
1788 * top.c (ui::ui): Update.
1789 (highest_ui_num): Remove.
1790 * top.h (struct ui) <num>: Remove.
1791
db92ac45
TT
17922020-09-15 Tom Tromey <tromey@adacore.com>
1793
1794 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
1795 * ui-style.c (ansi_regex_text): Now array.
1796 * rust-exp.y (number_regex_text): Now array.
1797 * linespec.c (linespec_quote_characters): Now array.
1798 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
1799 Now arrays.
1800
d2b31b67
SM
18012020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1802
1803 * debuginfod-support.c (debuginfod_client_deleter): New.
1804 (debuginfod_client_up): New.
1805 (debuginfod_init): Return debuginfod_client_up.
1806 (debuginfod_source_query): Adjust.
1807 (debuginfod_debuginfo_query): Adjust.
1808
3246bd8e
SM
18092020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1810
1811 * debuginfod-support.c (debuginfod_source_query): Use
1812 make_unique_xstrdup.
1813
10242f36
SM
18142020-09-14 Simon Marchi <simon.marchi@efficios.com>
1815
1816 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
1817 with `type::instance_flags`.
1818
e1044e6a
MM
18192020-09-14 Michael Mullin <masmullin@gmail.com>
1820
1821 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
1822 Remove baton parameter.
1823
04902b09
PA
18242020-09-14 Pedro Alves <pedro@palves.net>
1825
1826 * Makefile.in (SELFTESTS_SRCS): Add
1827 unittests/enum-flags-selftests.c.
1828 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
1829 btrace_function_flags instead of enum btrace_function_flag.
1830 * compile/compile-c-types.c (convert_qualified): Use
1831 enum_flags::raw.
1832 * compile/compile-cplus-symbols.c (convert_one_symbol)
1833 (convert_symbol_bmsym):
1834 * compile/compile-cplus-types.c (compile_cplus_convert_method)
1835 (compile_cplus_convert_struct_or_union_methods)
1836 (compile_cplus_instance::convert_qualified_base):
1837 * go-exp.y (parse_string_or_char): Add cast to int.
1838 * unittests/enum-flags-selftests.c: New file.
1839 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
1840 type to btrace_thread_flags from btrace_thread_flag.
1841 (record_btrace_cancel_resume, record_btrace_step_thread): Change
1842 local's type to btrace_thread_flags from btrace_thread_flag. Add
1843 cast in DEBUG call.
1844
69896a2c
PA
18452020-09-14 Pedro Alves <pedro@palves.net>
1846
1847 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
1848 * gdbtypes.c (address_space_name_to_int): Rename to ...
1849 (address_space_name_to_type_instance_flags): ... this.
1850 (address_space_int_to_name): Rename to ...
1851 (address_space_type_instance_flags_to_name): ... this.
1852 * gdbtypes.h (address_space_name_to_int): Rename to ...
1853 (address_space_name_to_type_instance_flags): ... this.
1854 (address_space_int_to_name): Rename to ...
1855 (address_space_type_instance_flags_to_name): ... this.
1856 * type-stack.c (type_stack::insert): Adjust to rename.
1857 * type-stack.h (type_stack::insert): Likewise.
1858
314ad88d
PA
18592020-09-14 Pedro Alves <pedro@palves.net>
1860 Andrew Burgess <andrew.burgess@embecosm.com>
1861
1862 * avr-tdep.c (avr_address_class_type_flags): Return
1863 type_instance_flags.
1864 (avr_address_class_type_flags_to_name): Take a
1865 type_instance_flags.
1866 (avr_address_class_name_to_type_flags): Return bool and take a
1867 type_instance_flags.
1868 * d-lang.c (build_d_types): Use type::set_instance_flags.
1869 * ft32-tdep.c (ft32_address_class_type_flags): Return
1870 type_instance_flags.
1871 (ft32_address_class_type_flags_to_name): Take a
1872 type_instance_flags.
1873 (ft32_address_class_name_to_type_flags): Return bool and take a
1874 type_instance_flags.
1875 (ft32_gdbarch_init): Use type::set_instance_flags.
1876 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
1877 * gdbarch.h, gdbarch.c: Regenerate.
1878 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
1879 (address_class_name_to_type_flags): Use type_instance_flags and
1880 bool.
1881 * gdbtypes.c (address_space_name_to_int)
1882 (address_space_int_to_name, make_qualified_type): Use
1883 type_instance_flags.
1884 (make_qualified_type): Use type_instance_flags and
1885 type::set_instance_flags.
1886 (make_type_with_address_space, make_cv_type, make_vector_type)
1887 (check_typedef): Use type_instance_flags.
1888 (recursive_dump_type): Cast type_instance_flags to unsigned for
1889 printing.
1890 (copy_type_recursive): Use type::set_instance_flags.
1891 (gdbtypes_post_init): Use type::set_instance_flags.
1892 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
1893 <m_instance_flags>: ... this.
1894 <instance_flags, set_instance_flags>: New methods.
1895 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
1896 (SET_TYPE_INSTANCE_FLAGS): New.
1897 (address_space_name_to_int, address_space_int_to_name)
1898 (make_type_with_address_space): Pass flags using
1899 type_instance_flags instead of int.
1900 * stabsread.c (cleanup_undefined_types_noname): Use
1901 type::set_instance_flags.
1902 * s390-tdep.c (s390_address_class_type_flags): Return
1903 type_instance_flags.
1904 (s390_address_class_type_flags_to_name): Take a
1905 type_instance_flags.
1906 (s390_address_class_name_to_type_flags): Return bool and take a
1907 type_instance_flags.
1908 * type-stack.c (type_stack::follow_types): Use
1909 type_instance_flags.
1910 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
1911
27087b7f
TT
19122020-09-14 Tom Tromey <tromey@adacore.com>
1913
1914 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
1915 * x86-tdep.c (x86_is_thunk_register_name)
1916 (x86_in_indirect_branch_thunk): Update.
1917 * sparc64-tdep.c (sparc64_fpu_register_names)
1918 (sparc64_cp0_register_names, sparc64_register_names)
1919 (sparc64_pseudo_register_names): Now const.
1920 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
1921 cp0_registers_num>: Now const.
1922 * sparc-tdep.c (sparc_core_register_names)
1923 (sparc32_fpu_register_names, sparc32_cp0_register_names)
1924 (sparc32_pseudo_register_names): Now const.
1925 (validate_tdesc_registers): Update.
1926 * rust-lang.c (rust_extensions): Now const.
1927 * p-lang.c (p_extensions): Now const.
1928 * objc-lang.c (objc_extensions): Now const.
1929 * nto-tdep.c (nto_thread_state_str): Now const.
1930 * moxie-tdep.c (moxie_register_names): Now const.
1931 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
1932 Now const.
1933 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
1934 (mips_linux_reg_names): Now const.
1935 (mips_gdbarch_init): Update.
1936 * microblaze-tdep.c (microblaze_register_names): Now const.
1937 * m68k-tdep.c (m68k_register_names): Now const.
1938 * m32r-tdep.c (m32r_register_names): Now const.
1939 * ia64-tdep.c (ia64_register_names): Now const.
1940 * i386-tdep.h (struct gdbarch_tdep) <register_names,
1941 ymmh_register_names, ymm16h_regnum, mpx_register_names,
1942 k_register_names, zmmh_register_names, xmm_avx512_register_names,
1943 ymm_avx512_register_names, pkeys_register_names>: Now const.
1944 * i386-tdep.c (i386_register_names, i386_zmm_names)
1945 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
1946 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
1947 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
1948 * f-lang.c (f_extensions): Now const.
1949 * d-lang.c (d_extensions): Now const.
1950 * csky-tdep.c (csky_register_names): Now const.
1951 * charset.c (default_charset_names, charset_enum): Now const.
1952 (_initialize_charset): Update.
1953 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
1954 const.
1955 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
1956 (bsd_uthread_solib_loaded): Update.
1957 (bsd_uthread_state): Now const.
1958 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
1959 (amd64_ymm_avx512_names, amd64_ymmh_names)
1960 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
1961 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
1962 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
1963 (amd64_dword_names): Now const.
1964 * agent.c (can_use_agent_enum): Now const.
1965 * ada-tasks.c (task_states, long_task_states): Now const.
1966 * ada-lang.c (known_runtime_file_name_patterns)
1967 (known_auxiliary_function_name_patterns, attribute_names)
1968 (standard_exc, ada_extensions): Now const.
1969
89806626
SM
19702020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1971
1972 * bcache.h (struct bcache) <bcache>: Remove constructor.
1973 <m_hash_function, m_compare_function>: Remove.
1974 <~bcache>: Make virtual.
1975 <compare>: Remove static method, introduce virtual method.
1976 <default_hash>: Remove.
1977 <hash>: New virtual method.
1978 * bcache.c (bcache::expand_hash_table): Update.
1979 (bcache::insert): Update.
1980 (bcache::hash): New.
1981 (bcache::compare): Update comment and parameter names.
1982 * gdbtypes.c (types_deeply_equal): Update.
1983 * psymtab.h (struct psymbol_bcache): New struct.
1984 (class psymtab_storage) <psymtab_storage>: Make default.
1985 <psymbol_cache>: Change type to psymbol_bcache.
1986 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
1987 (psymbol_hash): Change to...
1988 (psymbol_bcache::hash): ... this.
1989 (psymbol_compare): Change to...
1990 (psymbol_bcache::compare): ... this.
1991
677c92fe
SM
19922020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1993
1994 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
1995 checking for initial lwp.
1996
3eba3a01
TT
19972020-09-14 Tom Tromey <tromey@adacore.com>
1998
1999 * m68k-tdep.c (m68k_extract_return_value): Use
2000 pointer_result_regnum.
2001 (m68k_store_return_value): Likewise.
2002 (m68k_reg_struct_return_p): Handle vectors and arrays.
2003 (m68k_return_value): Handle arrays.
2004 (m68k_svr4_return_value): Fix single-element aggregate handling.
2005 Handle long double. Adjust for embedded ABI.
2006 (m68k_svr4_init_abi): Set pointer_result_regnum.
2007 (m68k_embedded_init_abi): New function.
2008 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
2009 (m68k_osabi_sniffer): New function.
2010 (_initialize_m68k_tdep): Register osabi sniffer.
2011 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
2012 member.
2013
33f4dd48
SM
20142020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2015
2016 * xml-support.c (xml_fetch_content_from_file): Replace xfree
2017 with gdb::unique_xmalloc_ptr<char>.
2018
8400a90d
SM
20192020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2020
2021 * xml-support.h (xml_fetch_another): Change type to be a
2022 function_view.
2023 (xml_process_xincludes): Remove baton parameter.
2024 (xml_fetch_content_from_file): Change baton parameter to
2025 dirname.
2026 * xml-support.c (struct xinclude_parsing_data)
2027 <xinclude_parsing_data>: Remove baton parameter.
2028 <fetcher_baton>: Remove.
2029 (xinclude_start_include): Adjust.
2030 (xml_process_xincludes): Adjust.
2031 (xml_fetch_content_from_file): Replace baton parameter with
2032 dirname.
2033 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
2034 (xml_init_syscalls_info): Use a lambda.
2035 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
2036 (file_read_description_xml): Use a lambda.
2037 (fetch_available_features_from_target): Change baton parameter
2038 to target_ops.
2039 (target_read_description_xml): Use a lambda.
2040 (target_fetch_description_xml): Use a lambda.
2041 (string_read_description_xml): Update.
2042
04f5bab2
SM
20432020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2044
2045 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
2046 uses with type::endianity_is_not_default.
2047
db558e34
SM
20482020-09-14 Simon Marchi <simon.marchi@efficios.com>
2049
2050 * gdbtypes.h (struct type) <endianity_is_not_default,
2051 set_endianity_is_not_default>: New methods.
2052 (TYPE_ENDIANITY_NOT_DEFAULT): Use
2053 type::endianity_is_not_default, change all write call sites to
2054 use type::set_endianity_is_not_default.
2055
22c4c60c
SM
20562020-09-14 Simon Marchi <simon.marchi@efficios.com>
2057
2058 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
2059 uses with type::is_fixed_instance.
2060
9cdd0d12
SM
20612020-09-14 Simon Marchi <simon.marchi@efficios.com>
2062
2063 * gdbtypes.h (struct type) <is_fixed_instance,
2064 set_is_fixed_instance>: New methods.
2065 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
2066 write call sites to use type::set_is_fixed_instance.
2067
0becda7a
SM
20682020-09-14 Simon Marchi <simon.marchi@efficios.com>
2069
2070 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
2071 uses with type::is_gnu_ifunc.
2072
03cc7249
SM
20732020-09-14 Simon Marchi <simon.marchi@efficios.com>
2074
2075 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
2076 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
2077 use type::set_is_gnu_ifunc.
2078
3f46044c
SM
20792020-09-14 Simon Marchi <simon.marchi@efficios.com>
2080
2081 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
2082 uses with type::stub_is_supported.
2083
9baccff6
SM
20842020-09-14 Simon Marchi <simon.marchi@efficios.com>
2085
2086 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
2087 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
2088 use type::set_stub_is_supported.
2089
bd63c870
SM
20902020-09-14 Simon Marchi <simon.marchi@efficios.com>
2091
2092 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
2093 uses with type::is_vector.
2094
2062087b
SM
20952020-09-14 Simon Marchi <simon.marchi@efficios.com>
2096
2097 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
2098 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
2099 use type::set_is_vector.
2100
a409645d
SM
21012020-09-14 Simon Marchi <simon.marchi@efficios.com>
2102
2103 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
2104 uses with type::has_varargs.
2105
1d6286ed
SM
21062020-09-14 Simon Marchi <simon.marchi@efficios.com>
2107
2108 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
2109 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
2110 use type::set_has_varargs.
2111
7f9f399b
SM
21122020-09-14 Simon Marchi <simon.marchi@efficios.com>
2113
2114 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
2115 uses with type::is_prototyped.
2116
27e69b7a
SM
21172020-09-14 Simon Marchi <simon.marchi@efficios.com>
2118
2119 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
2120 New methods.
2121 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
2122 call sites to use type::set_is_prototyped.
2123
d2183968
SM
21242020-09-14 Simon Marchi <simon.marchi@efficios.com>
2125
2126 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
2127 uses with type::target_is_stub.
2128
8f53807e
SM
21292020-09-14 Simon Marchi <simon.marchi@efficios.com>
2130
2131 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
2132 New methods.
2133 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
2134 sites to use type::set_target_is_stub.
2135
e46d3488
SM
21362020-09-14 Simon Marchi <simon.marchi@efficios.com>
2137
2138 * gdbtypes.h (TYPE_STUB): Remove, replace all
2139 uses with type::is_stub.
2140
b4b73759
SM
21412020-09-14 Simon Marchi <simon.marchi@efficios.com>
2142
2143 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
2144 (TYPE_STUB): Use type::is_stub, change all write call sites to
2145 use type::set_is_stub.
2146
20ce4123
SM
21472020-09-14 Simon Marchi <simon.marchi@efficios.com>
2148
2149 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
2150 type::has_no_signedness.
2151
15152a54
SM
21522020-09-14 Simon Marchi <simon.marchi@efficios.com>
2153
2154 * gdbtypes.h (struct type) <has_no_signedness,
2155 set_has_no_signedness>: New methods.
2156 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
2157 call sites to use type::set_has_no_signedness.
2158
c6d940a9
SM
21592020-09-14 Simon Marchi <simon.marchi@efficios.com>
2160
2161 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
2162 type::is_unsigned.
2163
653223d3
SM
21642020-09-14 Simon Marchi <simon.marchi@efficios.com>
2165
2166 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
2167 methods.
2168 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
2169 sites to use type::set_is_unsigned.
2170
55ea94da 21712020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
e851246a 2172 Adam Renquinha <arenquinha@cimeq.qc.ca>
55ea94da 2173
e851246a
SM
2174 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
2175 pointer and stack frame offset when unwinding.
55ea94da 2176
6791b117
PA
21772020-09-13 Pedro Alves <pedro@palves.net>
2178
2179 * NEWS: Document "-break-insert --qualified".
2180 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
2181
77f2120b
PA
21822020-09-13 Pedro Alves <pedro@palves.net>
2183
2184 * linespec.c (classify_mtype, compare_msyms): Delete.
2185 (search_minsyms_for_name): Remove classification logic. Instead
2186 filter out trampoline symbols if we also found an external
2187 function of the same name.
2188
ed6a896c
JB
21892020-09-13 Joel Brobecker <brobecker@adacore.com>
2190
2191 * NEWS: Create a new section for the next release branch.
2192 Rename the section of the current branch, now that it has
2193 been cut.
2194
32aea73e
JB
21952020-09-13 Joel Brobecker <brobecker@adacore.com>
2196
2197 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
2198 * version.in: Bump version to 11.0.50.DATE-git.
2199
8087c3fa
JB
22002020-09-12 Joel Brobecker <brobecker@adacore.com>
2201
2202 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
2203
2a67f09d
FW
22042020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
2205 Felix Willgerodt <Felix.Willgerodt@intel.com>
2206
2207 * gdbarch.sh: Added bfloat16 type.
2208 * gdbarch.c: Regenerated.
2209 * gdbarch.h: Regenerated.
2210 * gdbtypes.c (floatformats_bfloat16): New struct.
2211 (gdbtypes_post_init): Add builtin_bfloat16.
2212 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
2213 (floatformats_bfloat16): New struct.
2214 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
2215 (i386_ymm_type): Add field "v16_bfloat16"
2216 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
2217 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
2218 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
2219 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
2220 * features/i386/64bit-avx512.xml: Add bfloat16 type.
2221 * features/i386/64bit-avx512.c: Regenerated.
2222 * features/i386/64bit-sse.xml: Add bfloat16 type.
2223 * features/i386/64bit-sse.c: Regenerated.
2224
1347d111
FW
22252020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
2226
2227 * i386-tdep.c (i386_zmm_type): Fix field names.
2228 (i386_ymm_type): Fix field names.
2229
7a4e8e7d
TBA
22302020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2231
2232 * breakpoint.c: Fix typo in the help message of the
2233 "set breakpoint condition-evaluation" command.
2234
cf4ac4be
KR
22352020-09-10 Kamil Rytarowski <n54@gmx.com>
2236
2237 * nbsd-nat.c: Include "nat/netbsd-nat.h".
2238 * (nbsd_nat_target::pid_to_exec_file)
2239 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
2240 (nbsd_nat_target::post_startup_inferior)
2241 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
2242 (nbsd_add_threads): Switch local code to common gdb/nat functions.
2243 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
2244 * (nbsd_thread_lister): Remove.
2245
f404573e
KR
22462020-09-10 Kamil Rytarowski <n54@gmx.com>
2247
2248 * fork-inferior.c (startup_inferior): Avoid double free.
2249
1ccb2c17
KR
22502020-09-10 Kamil Rytarowski <n54@gmx.com>
2251
2252 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
2253 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
2254
feedfcc7
KR
22552020-09-10 Kamil Rytarowski <n54@gmx.com>
2256
2257 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
2258 * netbsd-nat.c: Include <sys/ptrace.h>.
2259 * (netbsd_nat::enable_proc_events): Add.
2260
c489f8c6
KR
22612020-09-10 Kamil Rytarowski <n54@gmx.com>
2262
2263 * netbsd-nat.h: Include "gdbsupport/function-view.h".
2264 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
2265 (netbsd_nat::for_each_thread): Add.
2266 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
2267 "gdbsupport/common-debug.h".
2268 * (netbsd_nat::netbsd_thread_lister)
2269 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
2270 (netbsd_nat::for_each_thread): Add.
2271
330662f6
KR
22722020-09-10 Kamil Rytarowski <n54@gmx.com>
2273
2274 * netbsd-nat.h: Include <unistd.h>.
2275 * (netbsd_nat::pid_to_exec_file): Add.
2276 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
2277 * (netbsd_nat::pid_to_exec_file) Add.
2278
70b67307
KR
22792020-09-10 Kamil Rytarowski <n54@gmx.com>
2280
2281 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
2282
99cf6da6
KR
22832020-09-10 Kamil Rytarowski <n54@gmx.com>
2284
2285 * netbsd-nat.h: New file.
2286 * netbsd-nat.c: Likewise.
2287
1b788fb6
TT
22882020-09-09 Tom Tromey <tromey@adacore.com>
2289
2290 * ada-lang.c (remove_extra_symbols): Do not increment when
2291 removing an element
2292
03b0a45f
TT
22932020-09-08 Tom Tromey <tromey@adacore.com>
2294
2295 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
2296
3cae4447
TT
22972020-09-08 Tom Tromey <tromey@adacore.com>
2298
2299 PR win32/25302:
2300 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
2301 (gdb_bfd_init_data): New function.
2302 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
2303
7f08fd51
TBA
23042020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2305
2306 * infrun.c (fetch_inferior_event): Use
2307 `switch_to_target_no_thread` to switch the target.
2308
3e6ff933
TT
23092020-09-06 Tom Tromey <tom@tromey.com>
2310
2311 * symfile.h (dwarf2_free_objfile): Don't declare.
2312
e56798df
AKS
23132020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2314
2315 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
2316 to match 16 byte real/complex type generated by Flang compiler.
2317
8f5c6526
TV
23182020-09-03 Tom de Vries <tdevries@suse.de>
2319
2320 PR breakpoint/26546
2321 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
2322 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
2323
c5065df0
SM
23242020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
2325
2326 * maint.c (index_digits): New function.
2327 (struct maint_print_section_data): Remove.
2328 (print_bfd_section_info): Remove print_data parameter, add arg
2329 and index_digits.
2330 (print_objfile_section_info): Likewise.
2331 (print_bfd_section_info_maybe_relocated): Likewise (plus
2332 objfile).
2333 (maintenance_info_sections): Adjust calls.
2334
02c6f3f1
TT
23352020-09-02 Tom Tromey <tromey@adacore.com>
2336
2337 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
2338 for null pointers.
2339 (ada_varobj_adjust_for_child_access): Special-case null pointers.
2340
ef5e5b0b
SM
23412020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
2342
2343 * bcache.h (struct bcache) <insert>: Change type of `added` to
2344 pointer to bool.
2345 * bcache.c (bcache::insert): Likewise.
2346 * gdbtypes.c (check_types_worklist): Adjust.
2347 * psymtab.c (add_psymbol_to_bcache): Adjust.
2348
973695d6
KB
23492020-08-31 Kevin Buettner <kevinb@redhat.com>
2350
2351 * corelow.c (unordered_set): Include.
2352 (class core_target): Add field 'm_core_unavailable_mappings'.
2353 (core_target::build_file_mappings): Print only one warning
2354 per inaccessible file. Add unavailable/broken mappings
2355 to m_core_unavailable_mappings.
2356 (core_target::xfer_partial): Call...
2357 (core_target::xfer_memory_via_mappings): New method.
2358
264fc0e2
SM
23592020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
2360
2361 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
2362 type to bool.
2363
2de01bdb
SM
23642020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
2365
2366 * dwarf2/read.c (struct field_info): Fix indentation.
2367
f3bd50f1
SM
23682020-08-31 Simon Marchi <simon.marchi@efficios.com>
2369
2370 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
2371 ordering in comment.
2372 * frame.c (frame_id_eq): Fix indentation.
2373
22b9b4b0
SL
23742020-08-31 Scott Linder <scott@scottlinder.com>
2375 Simon Marchi <simon.marchi@efficios.com>
2376
2377 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
2378 inline frame ids in outer frame.
2379
84154d16
SM
23802020-08-31 Simon Marchi <simon.marchi@efficios.com>
2381
2382 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
2383 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
2384 (outer_frame_id): Use FID_STACK_OUTER instead of
2385 FID_STACK_INVALID.
2386 (frame_id_p): Don't check for outer_frame_id.
2387
8efaf6b3
SM
23882020-08-31 Simon Marchi <simon.marchi@efficios.com>
2389
2390 * frame-unwind.c (frame_unwind_got_optimized): Don't set
2391 regnum/frame in value. Call allocate_value_lazy.
2392 * frame.c (frame_unwind_register_value): Use
2393 val_print_not_saved.
2394
fe1fe7ea
SM
23952020-08-31 Simon Marchi <simon.marchi@efficios.com>
2396
2397 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
2398
f7c7700d
PA
23992020-08-29 Pedro Alves <pedro@palves.net>
2400
2401 * progspace.c (print_program_space): Use all_inferiors. Switch to
2402 the inferior before calling target_pid_to_str.
2403
e0814aae
TT
24042020-08-28 Tom Tromey <tom@tromey.com>
2405
2406 * xcoffread.c (xcoff_end_psymtab): Update comment.
2407 * dbxread.c (dbx_end_psymtab): Update comment.
2408
626d2320
TV
24092020-08-28 Tom de Vries <tdevries@suse.de>
2410
2411 PR breakpoint/26544
2412 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
2413 event_location.
2414 (create_breakpoint): Same.
2415 (base_breakpoint_decode_location): Same.
2416 (bkpt_create_sals_from_location): Same.
2417 (bkpt_decode_location): Same.
2418 (bkpt_probe_create_sals_from_location): Same.
2419 (bkpt_probe_decode_location): Same.
2420 (tracepoint_create_sals_from_location): Same.
2421 (tracepoint_decode_location): Same.
2422 (tracepoint_probe_decode_location): Same.
2423 (strace_marker_create_sals_from_location): Same.
2424 (strace_marker_decode_location): Same.
2425 (create_sals_from_location_default): Same.
2426 (decode_location_default): Same.
2427 * breakpoint.h (struct breakpoint_ops): Same.
2428 (create_breakpoint): Same.
2429 * linespec.h (decode_line_full): Same.
2430 * linespec.c (decode_line_full): Same. Throw error if
2431 result.size () == 0.
2432
df631783
PA
24332020-08-27 Pedro Alves <pedro@palves.net>
2434
2435 PR gdb/26524
2436 * breakpoint.c (until_break_fsm) <location_breakpoint,
2437 caller_breakpoint>: Delete fields.
2438 <breakpoints>: New field.
2439 <until_break_fsm>: Adjust to save a breakpoint vector instead of
2440 two individual breakpoints.
2441 (until_break_fsm::should_stop): Loop over breakpoints in the
2442 breakpoint vector.
2443 (until_break_fsm::clean_up): Adjust to clear the breakpoints
2444 vector.
2445 (until_break_command): Handle location expanding into multiple
2446 sals.
2447
b2b38aa4
PA
24482020-08-27 Pedro Alves <pedro@palves.net>
2449
2450 PR gdb/26523
2451 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
2452 bp_until breakpoints user-specified locations. Update intro
2453 comment.
2454
b886559f
SM
24552020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
2456
2457 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
2458 gdb_bfd_sections): New.
2459 * maint.c (print_bfd_section_info): Change param type to
2460 maint_print_section_data.
2461 (print_objfile_section_info): Likewise.
2462 (print_bfd_section_info_maybe_relocated): Likewise.
2463 (maintenance_info_sections): Use gdb_bfd_sections.
2464
4c6e63bf
SV
24652020-08-25 Shahab Vahedi <shahab@synopsys.com>
2466
2467 * MAINTAINERS: Add ARC target and maintainer.
2468
8d7f0635
AK
24692020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
2470
2471 * configure.tgt: ARC support for GNU/Linux.
2472 * Makefile.in (ALL_TARGET_OBJS): Likewise.
2473 * arc-linux-tdep.c: New file.
2474 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
2475 * arc-tdep.c (arc_write_pc): Use it.
2476
fdd8731b
SV
24772020-08-25 Shahab Vahedi <shahab@synopsys.com>
2478
2479 * arc-tdep.c (arc_check_for_hardware_loop): New.
2480 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
2481
22459524
SV
24822020-08-25 Shahab Vahedi <shahab@synopsys.com>
2483
2484 * arc-tdep.h: Include "gdbarch.h".
2485
995d3a19
SV
24862020-08-25 Shahab Vahedi <shahab@synopsys.com>
2487
2488 * arch/arc.h
2489 (arc_gdbarch_features): New class to stir the selection of target XML.
2490 (arc_create_target_description): Use FEATURES to choose XML target.
2491 (arc_lookup_target_description): Use arc_create_target_description
2492 to create _new_ target descriptions or return the already created
2493 ones if the FEATURES is the same.
2494 * arch/arc.c: Implementation of prototypes described above.
2495 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
2496 (arc_gdbarch_features_init): Initialize the FEATURES struct.
2497 * arc-tdep.c (*_feature_name): Make feature names consistent.
2498 (arc_register_feature): A new struct to hold information about
2499 registers of a particular target/feature.
2500 (arc_check_tdesc_feature): Check if XML provides registers in
2501 compliance with ARC_REGISTER_FEATURE structs.
2502 (arc_update_acc_reg_names): Add aliases for r58 and r59.
2503 (determine_*_reg_feature_set): Which feature name to look for.
2504 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
2505 (mach_type_to_arc_isa): Convert from a set of binutils machine types
2506 to expected ISA enums to be used in arc_gdbarch_features structs.
2507 * features/Makefile (FEATURE_XMLFILES): Add new files.
2508 * gdb/features/arc/v1-aux.c: New file.
2509 * gdb/features/arc/v1-aux.xml: Likewise.
2510 * gdb/features/arc/v1-core.c: Likewise.
2511 * gdb/features/arc/v1-core.xml: Likewise.
2512 * gdb/features/arc/v2-aux.c: Likewise.
2513 * gdb/features/arc/v2-aux.xml: Likewise.
2514 * gdb/features/arc/v2-core.c: Likewise.
2515 * gdb/features/arc/v2-core.xml: Likewise.
2516 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
2517
3945d2d7
GM
25182020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
2519 Andrew Burgess <andrew.burgess@embecosm.com>
2520
2521 PR m2/26372
fc5d6901 2522 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
2523 an assert. Remove single element array indexing pattern as the
2524 MULTI_SUBSCRIPT support will handle this case too.
2525
2677f2d3
SM
25262020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
2527
2528 * value.h (valprint_check_validity): Move declaration from
2529 here...
2530 * valprint.h (valprint_check_validity): ... to here.
2531
c426fddb
SM
25322020-08-24 Simon Marchi <simon.marchi@efficios.com>
2533
2534 * debug.h: New file.
2535 * debug.c (debug_prefixed_vprintf): New function.
2536 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
2537 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
2538
1eb8556f
SM
25392020-08-24 Simon Marchi <simon.marchi@efficios.com>
2540
2541 * infrun.h (infrun_debug_printf_1): New function declaration.
2542 (infrun_debug_printf): New macro.
2543 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
2544 throughout.
2545 (infrun_debug_printf): New function.
2546 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
2547 (handle_jit_event): Likewise.
2548
b8fff44e
MW
25492020-08-21 Mark Wielaard <mark@klomp.org>
2550
2551 * ada-lex.l: Extend register warnings diagnostics comment for g++.
2552
d19c3068
SM
25532020-08-22 Simon Marchi <simon.marchi@efficios.com>
2554
2555 * frame.c (enum class frame_id_status): New.
2556 (struct frame_info) <this_id::p>: Change type to frame_id_status.
2557 (fprintf_frame): Update.
2558 (compute_frame_id): Set frame id status to "computing" on entry.
2559 Set it back to "not_computed" on failure and to "computed" on
2560 success.
2561 (get_frame_id): Assert the frame id is not being computed.
2562 (create_sentinel_frame): Use frame_id_status::COMPUTED.
2563 (create_new_frame): Likewise.
2564 (frame_cleanup_after_sniffer): Update assert.
2565
b70e516e
SM
25662020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2567
2568 * regcache.c (pid_ptid_regcache_map): New type.
2569 (target_ptid_regcache_map): Remove.
2570 (target_pid_ptid_regcache_map): New type.
2571 (regcaches): Change type to target_pid_ptid_regcache_map.
2572 (get_thread_arch_aspace_regcache): Update.
2573 (regcache_thread_ptid_changed): Update, handle pid-like ptid
2574 case.
2575 (regcaches_size): Update.
2576 (regcache_count): Update.
2577 (registers_changed_ptid_target_pid_test): New.
2578 (_initialize_regcache): Register new test.
2579
cdd9148a
SM
25802020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2581
2582 * regcache.c (regcache_count): New.
2583 (struct regcache_test_data): New.
2584 (regcache_test_data_up): New.
2585 (populate_regcaches_for_test): New.
2586 (regcaches_test): Remove.
2587 (get_thread_arch_aspace_regcache_test): New.
2588 (registers_changed_ptid_all_test): New.
2589 (registers_changed_ptid_target_test): New.
2590 (registers_changed_ptid_target_ptid_test): New.
2591 (regcache_thread_ptid_changed): Remove regcache_count lambda.
2592 (_initialize_regcache): Register new tests.
2593
dd125343
SM
25942020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2595
2596 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
2597 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
2598 gdbarch and aspace parameter. Use current inferior's aspace.
2599 Validate regcache's arch value.
2600 (regcaches_test): Update.
2601
3ee93972
SM
26022020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2603
2604 * regcache.c (regcaches_test): Call registers_changed.
2605
33bf4c5c
TBA
26062020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2607
2608 * infrun.c (process_event_stop_test): Fix typo "breapoint".
2609
c2fd7fae
AKS
26102020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2611
2612 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
2613 to find the end of prologue for flang compiled binaries.
2614 * arm-tdep.c (arm_skip_prologue): Likewise.
2615 * i386-tdep.c (i386_skip_prologue): Likewise.
2616 * producer.c (producer_is_llvm): New function.
2617 (producer_parsing_tests): Added new tests for clang/flang.
2618 * producer.h (producer_is_llvm): New declaration.
2619
9327494e
SM
26202020-08-18 Simon Marchi <simon.marchi@efficios.com>
2621
2622 * linux-nat.c (linux_nat_debug_printf): New function.
2623 (linux_nat_debug_printf_1): New macro. Use throughout the file.
2624
d138725a
AM
26252020-08-18 Aaron Merey <amerey@redhat.com>
2626
2627 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
2628 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
2629 (CLIBS): Add DEBUGINFOD_LIBS.
2630
f9b11e6b
ST
26312020-08-17 Sergei Trofimovich <siarheit@google.com>
2632
2633 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
2634 'gdbarch_num_regs'.
2635
3ae7ab99
TT
26362020-08-17 Tom Tromey <tromey@adacore.com>
2637
2638 * ada-varobj.c (ada_varobj_decode_var): Handle case where
2639 ada_get_decoded_value returns NULL.
2640
b017825f
TT
26412020-08-17 Tom Tromey <tromey@adacore.com>
2642
2643 * python/py-inferior.c (infpy_search_memory): Use
2644 gdb_py_object_from_ulongest.
2645 * python/py-infevents.c (create_inferior_call_event_object)
2646 (create_memory_changed_event_object): Use
2647 gdb_py_object_from_ulongest.
2648 * python/py-linetable.c (ltpy_entry_get_pc): Use
2649 gdb_py_object_from_ulongest.
2650
7635cf79
SM
26512020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
2652
2653 * loc.c (class symbol_needs_eval_context): Fix indentation.
2654
f54be24b
SM
26552020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
2656
2657 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
2658 bool.
2659
53d5a2a5
TV
26602020-08-17 Tom de Vries <tdevries@suse.de>
2661
2662 PR gdb/26393
2663 * gdbtypes.c (dump_dynamic_prop): New function.
2664 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
2665
547ce8f0
TV
26662020-08-15 Tom de Vries <tdevries@suse.de>
2667
2668 PR backtrace/26390
2669 * stack.c (print_frame_args): Temporarily set the selected
2670 frame to FRAME while printing the frame's arguments.
2671
6ea815e7
PFC
26722020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2673
2674 PR breakpoints/26385
2675 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
2676 Always clear watchpoint with PTRACE_SET_DEBUGREG.
2677
6e562fa3
PFC
26782020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2679
2680 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
2681 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
2682 and >= to check return value instead of == -1 and != -1.
2683
d369b608
SM
26842020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
2685
2686 * utils.h (class gdb_argv) <as_array_view>: New method.
2687 * utils.c (gdb_argv_as_array_view_test): New.
2688 (_initialize_utils): Register selftest.
2689 * maint.c (maintenance_selftest): Use the new method.
2690
b31488a3
KR
26912020-08-13 Kamil Rytarowski <n54@gmx.com>
2692
2693 * target.h (supports_dumpcore, dumpcore): New
2694 function declarations.
2695 * target.c (supports_dumpcore, dumpcore): New
2696 functions.
2697 * target-delegates.c: Rebuild.
2698 * gcore.c (gcore_command): Use target_supports_dumpcore ()
2699 and target_dumpcore ().
2700
002a3166
AM
27012020-08-13 Aaron Merey <amerey@redhat.com>
2702
2703 * debuginfod-support.c: Replace global variables with user_data.
2704
ece5bc8a
SM
27052020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
2706
2707 * maint.c (maintenance_selftest): Split args and pass array_view
2708 to run_tests.
2709
6d8a0a5e
LM
27102020-08-12 Luis Machado <luis.machado@linaro.org>
2711
2712 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
2713 type's length.
2714 Use %s and pulongest to print the length.
2715
7cf663a9
PA
27162020-08-12 Pedro Alves <palves@redhat.com>
2717
2718 * NEWS: Move "Multi-target debugging support" item to the
2719 "Changes since GDB 9" section.
2720
27c7b875
PA
27212020-08-12 Pedro Alves <palves@redhat.com>
2722
2723 PR gdb/26336
2724 * progspace.c (program_space::remove_objfile): Invalidate the
2725 frame cache.
2726
1796a2a1
TV
27272020-08-11 Tom de Vries <tdevries@suse.de>
2728
2729 * MAINTAINERS: Mark ms1 as deleted.
2730
f8e3fe0d
LM
27312020-08-10 Luis Machado <luis.machado@linaro.org>
2732
2733 PR gdb/26310
2734
2735 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
2736 act accordingly.
2737 (aarch64_analyze_prologue_test): Add more unit tests to exercise
2738 movz/str/stur/stp skipping behavior.
2739
cc308722
LM
27402020-08-10 Luis Machado <luis.machado@linaro.org>
2741
2742 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
2743 struct user_sve_header instead of struct sve_context.
2744
041d9819
SM
27452020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
2746
2747 * read.h (dwarf2_fetch_die_loc_sect_off,
2748 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
2749 `void *` parameter with function_view.
2750 * read.c (dwarf2_fetch_die_loc_sect_off,
2751 dwarf2_fetch_die_loc_cu_off): Likewise.
2752 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
2753 (per_cu_dwarf_call): Adjust.
2754 (get_frame_address_in_block_wrapper): Remove.
2755 (indirect_synthetic_pointer): Adjust.
2756 (get_ax_pc): Remove.
2757 (dwarf2_compile_expr_to_ax): Adjust.
2758
38f8aa06
TV
27592020-08-08 Tom de Vries <tdevries@suse.de>
2760
2761 PR build/26344
2762 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
2763 constructor.
2764 * regcache.c (get_thread_arch_aspace_regcache): Same.
2765
a52b3ae2
TT
27662020-08-07 Tom Tromey <tromey@adacore.com>
2767
2768 * ravenscar-thread.c
2769 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
2770 New method.
2771 (ravenscar_thread_target::wait): Check
2772 runtime_initialized.
2773 (ravenscar_thread_target::prepare_to_store)
2774 (ravenscar_thread_target::stopped_by_sw_breakpoint)
2775 (ravenscar_thread_target::stopped_by_hw_breakpoint)
2776 (ravenscar_thread_target::stopped_by_watchpoint)
2777 (ravenscar_thread_target::stopped_data_address)
2778 (ravenscar_thread_target::core_of_thread): Use
2779 scoped_restore_current_thread and
2780 set_base_thread_from_ravenscar_task.
2781
0e29517d
TT
27822020-08-07 Tom Tromey <tromey@adacore.com>
2783
2784 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
2785
592f9bd7
TT
27862020-08-07 Tom Tromey <tromey@adacore.com>
2787
2788 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
2789 update_inferior_ptid before update_thread_list.
2790 (temporarily_change_regcache_ptid): New class.
2791 (ravenscar_thread_target::fetch_registers)
2792 (ravenscar_thread_target::store_registers)
2793 (ravenscar_thread_target::prepare_to_store): Use base thread when
2794 forwarding operation.
2795
39e2018a
TT
27962020-08-07 Tom Tromey <tromey@adacore.com>
2797
2798 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
2799 "is_pid" case.
2800
2080266b
TT
28012020-08-07 Tom Tromey <tromey@adacore.com>
2802
2803 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
2804 New methods.
2805 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
2806 first.
2807 (ravenscar_thread_target::add_thread): Rename from
2808 ravenscar_add_thread.
2809 (ravenscar_thread_target::update_thread_list): Use a lambda.
2810 (ravenscar_thread_target::xfer_partial): New method.
2811
78c02f21
TT
28122020-08-07 Tom Tromey <tromey@adacore.com>
2813
2814 * ada-lang.h (ada_task_list_iterator_ftype): Now a
2815 gdb::function_view.
2816 (iterate_over_live_ada_tasks): Change type of argument.
2817 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
2818 of argument.
2819
d5d833af
TT
28202020-08-07 Tom Tromey <tromey@adacore.com>
2821
2822 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
2823 Remove.
2824 (ravenscar_thread_target::extra_thread_info): Remove.
2825 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
2826 defer to target beneath for non-Ravenscar threads.
2827
a8ac85bb
TT
28282020-08-07 Tom Tromey <tromey@adacore.com>
2829
2830 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
2831 get_base_thread_from_ravenscar_task>: Now methods.
2832 <m_cpu_map>: New member.
2833 (ravenscar_thread_target::get_thread_base_cpu): Rename from
2834 ravenscar_get_thread_base_cpu. Check m_cpu_map.
2835 (ravenscar_thread_target::task_is_currently_active): Update.
2836 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
2837 Now a method.
2838 (ravenscar_thread_target::add_active_thread): Put initial thread
2839 into the m_cpu_map.
2840
550ab58d
TT
28412020-08-07 Tom Tromey <tromey@adacore.com>
2842
2843 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
2844 event_ptid.
2845
e9546579
TT
28462020-08-07 Tom Tromey <tromey@adacore.com>
2847
2848 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
2849 runtime_initialized.
2850
3d4470e5
TT
28512020-08-07 Tom Tromey <tromey@adacore.com>
2852
2853 * ravenscar-thread.c (ravenscar_thread_target): Don't call
2854 add_active_thread.
2855 (ravenscar_thread_target::add_active_thread): Now public.
2856 (ravenscar_inferior_created): Call add_active_thread after pushing
2857 the target.
2858
888bdb2b
SM
28592020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
2860
2861 * regcache.c (ptid_regcache_map): New type.
2862 (target_ptid_regcache_map): New type.
2863 (regcaches): Change type to target_ptid_regcache_map.
2864 (get_thread_arch_aspace_regcache): Update to regcaches' new
2865 type.
2866 (regcache_thread_ptid_changed): Likewise.
2867 (registers_changed_ptid): Likewise.
2868 (regcaches_size): Likewise.
2869 (regcaches_test): Update.
2870 (regcache_thread_ptid_changed): Update.
2871 * regcache.h (regcache_up): New type.
2872 * gdbsupport/ptid.h (hash_ptid): New struct.
2873
b161a60d
SM
28742020-08-07 Simon Marchi <simon.marchi@efficios.com>
2875
2876 * observable.h (thread_ptid_changed): Add parameter
2877 `process_stratum_target *`.
2878 * infrun.c (infrun_thread_ptid_changed): Add parameter
2879 `process_stratum_target *` and use it.
2880 (selftests): New namespace.
2881 (infrun_thread_ptid_changed): New function.
2882 (_initialize_infrun): Register selftest.
2883 * regcache.c (regcache_thread_ptid_changed): Add parameter
2884 `process_stratum_target *` and use it.
2885 (regcache_thread_ptid_changed): New function.
2886 (_initialize_regcache): Register selftest.
2887 * thread.c (thread_change_ptid): Pass target to
2888 thread_ptid_changed observable.
2889
d2854d8d
CT
28902020-08-06 Caroline Tice <cmtice@google.com>
2891
fe4c3d43
SM
2892 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
2893 (struct dwp_sections): Update field comments. Add loclists and
2894 rnglists fields.
2895 (struct virtual_v2_dwo_sections): Rename struct to
2896 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
2897 size & offset fields for loclists and rnglists.
2898 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
2899 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
2900 skipping dummy type units.
2901 (create_dwp_hash_table): Update the large comment above the function to
2902 discuss Version 5 DWP files as well, with references. Update all the
2903 version checks in the function to check for version 5 as well. Add new
2904 section at the end to create dwp hash table for version 5.
2905 (create_dwp_v2_section): Rename function to
2906 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
2907 Add V5 to error message text.
2908 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
2909 into calls to create_dwp_v2_or_v5_section.
2910 (create_dwo_unit_in_dwp_v5): New function.
2911 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
2912 check for version2; add else clause to handle version 5.
2913 (open_and_init_dwo_file): Add code to check dwarf version & only call
2914 create_debug_types_hash_table (with sections.types) if version is not 5;
2915 else call create_debug_type_hash_table, with sections.info.
2916 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
2917 version 5.
2918 (dwarf2_locate_v5_dwp_sections): New function.
2919 (open_and_init_dwp_file): Add else-if clause for version 5 to call
2920 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 2921
159ed7d9
SM
29222020-08-06 Simon Marchi <simon.marchi@efficios.com>
2923
2924 * regcache.h (class regcache): Remove friend
2925 registers_changed_ptid.
2926 <regcache_thread_ptid_changed>: Remove.
2927 <regcaches>: Remove.
2928 * regcache.c (regcache::regcaches): Rename to...
2929 (regcaches): ... this. Make static.
2930 (get_thread_arch_aspace_regcache): Update.
2931 (regcache::regcache_thread_ptid_changed): Rename to...
2932 (regcache_thread_ptid_changed): ... this. Update.
2933 (class regcache_access): Remove.
2934 (regcaches_test): Update.
2935 (_initialize_regcache): Update.
2936 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
2937 <forward_list>.
2938
174981ae
SM
29392020-08-06 Simon Marchi <simon.marchi@efficios.com>
2940
2941 * regcache.h (class regcache) <current_regcache>: Rename to...
2942 <regcaches>: ... this. Move doc here.
2943 * regcache.c (regcache::current_regcache) Rename to...
2944 (regcache::regcaches): ... this. Move doc to header.
2945 (get_thread_arch_aspace_regcache): Update.
2946 (regcache::regcache_thread_ptid_changed): Update.
2947 (registers_changed_ptid): Update.
2948 (class regcache_access) <current_regcache_size>: Rename to...
2949 <regcaches_size>: ... this.
2950 (current_regcache_test): Rename to...
2951 (regcaches_test): ... this.
2952 (_initialize_regcache): Update.
2953
ed908db6
VC
29542020-08-06 Victor Collod <vcollod@nvidia.com>
2955
2956 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
2957
b5582ab7
KB
29582020-08-05 Kevin Buettner <kevinb@redhat.com>
2959
2960 * corelow.c (core_target::build_file_mappings): Don't output
2961 null pathname in warning.
2962
ea946b86
SM
29632020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
2964
2965 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
2966 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
2967 gdb.dwarf2/dw2-single-line-discriminators.exp,
2968 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
2969
57d02173
TT
29702020-08-05 Tom Tromey <tromey@adacore.com>
2971
2972 PR rust/26197:
2973 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
2974 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
2975 Fix off-by-one and type size errors in ordinary case.
2976
5555c86d
TV
29772020-08-05 Tom de Vries <tdevries@suse.de>
2978
2979 * gdbtypes.c (type_not_allocated, type_not_associated): Use
2980 "prop->const_val () == 0" instead of "prop->const_val () != 0".
2981
97916bfe
SM
29822020-08-04 Simon Marchi <simon.marchi@efficios.com>
2983
2984 * frame.h (frame_id_p): Return bool.
2985 (frame_id_artificial_p): Return bool.
2986 (frame_id_eq): Return bool.
2987 (has_stack_frames): Return bool.
2988 (get_selected_frame): Fix typo in comment.
2989 (get_frame_pc_if_available): Return bool.
2990 (get_frame_address_in_block_if_available): Return bool.
2991 (get_frame_func_if_available): Return bool.
2992 (read_frame_register_unsigned): Return bool.
2993 (get_frame_register_bytes): Return bool.
2994 (safe_frame_unwind_memory): Return bool.
2995 (deprecated_frame_register_read): Return bool.
2996 (frame_unwinder_is): Return bool.
2997 * frame.c (struct frame_info) <prev_arch::p>: Change type to
2998 bool.
2999 <this_id::p>: Likewise.
3000 <prev_p>: Likewise.
3001 (frame_stash_add): Return bool.
3002 (get_frame_id): Use bool.
3003 (frame_id_build_special) Use bool.
3004 (frame_id_build_unavailable_stack): Use bool.
3005 (frame_id_build): Use bool.
3006 (frame_id_p): Return bool, use true/false instead of 1/0.
3007 (frame_id_artificial_p): Likewise.
3008 (frame_id_eq): Likewise.
3009 (frame_id_inner): Likewise.
3010 (get_frame_func_if_available): Likewise.
3011 (read_frame_register_unsigned): Likewise.
3012 (deprecated_frame_register_read): Likewise.
3013 (get_frame_register_bytes): Likewise.
3014 (has_stack_frames): Likewise.
3015 (inside_main_func): Likewise.
3016 (inside_entry_func): Likewise.
3017 (get_frame_pc_if_available): Likewise.
3018 (get_frame_address_in_block_if_available): Likewise.
3019 (frame_unwinder_is): Likewise.
3020 (safe_frame_unwind_memory): Likewise.
3021 (frame_unwind_arch): Likewise.
3022
fedfee88
SM
30232020-08-04 Simon Marchi <simon.marchi@efficios.com>
3024
3025 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
3026 type to cached_copy_status.
3027 (fprintf_frame): Adjust.
3028 (get_frame_func_if_available): Adjust.
3029 (frame_cleanup_after_sniffer): Adjust.
3030
6cfa9b59
MW
30312020-08-04 Mark Wielaard <mark@klomp.org>
3032
3033 * MAINTAINERS (Write After Approval): Update email address.
3034
66d6346b
SM
30352020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3036
3037 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
3038 dynamic_prop::const_val.
3039
8a6d5e35
SM
30402020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3041
3042 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
3043 dynamic_prop::kind.
3044
51d6067d
SM
30452020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3046
3047 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
3048
b26e2ae7
JM
30492020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
3050
3051 * configure.tgt: Set gdb_sim for bpf-*-* targets.
3052
39791af2
JM
30532020-08-04 Weimin Pan <weimin.pan@oracle.com>
3054 Jose E. Marchesi <jose.marchesi@oracle.com>
3055
3056 * configure.tgt: Add entry for bpf-*-*.
3057 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
3058 (ALLDEPFILES): Add bpf-tdep.c.
3059 * bpf-tdep.c: New file.
3060 * MAINTAINERS: Add bpf target and maintainer.
3061 * NEWS: Mention the support for the new target.
3062
521894aa
TV
30632020-08-04 Tom de Vries <tdevries@suse.de>
3064
3065 PR symtab/23270
3066 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
3067 Error.
3068
5d6356e9
JB
30692020-08-03 John Baldwin <jhb@FreeBSD.org>
3070
3071 * syscalls/freebsd.xml: Regenerate.
3072
0cf82b81
JB
30732020-08-03 John Baldwin <jhb@FreeBSD.org>
3074
3075 * syscalls/update-freebsd.sh: Fix usage and year range.
3076
8f34b746
TV
30772020-08-03 Tom de Vries <tdevries@suse.de>
3078
3079 PR symtab/26333
3080 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
3081 DW_LNE_lo_user/DW_LNE_hi_user range.
3082
5e500d33
SM
30832020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
3084
3085 PR ada/26318
3086 * ada-lang.c (ada_modulus): Return 0 if property is not of const
3087 kind.
3088
78319c15
TBA
30892020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3090
3091 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
3092
4c55e970
TBA
30932020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3094
3095 * breakpoint.c (set_breakpoint_condition): Update the condition
3096 expressions after checking that the input condition string parses
3097 successfully and does not contain junk at the end.
3098
1e620590
TBA
30992020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3100
3101 * breakpoint.c (set_breakpoint_condition): Update the
3102 condition string after parsing the new condition successfully.
3103
c8693053
RO
31042020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3105
3106 * proc-api.c (_STRUCTURED_PROC): Don't define.
3107 * proc-events.c: Likewise.
3108 * proc-flags.c: Likewise.
3109 * proc-why.c: Likewise.
3110 * procfs.c: Likewise.
3111
3112 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
3113 * configure, config.in: Regenerate.
3114
5a99adb8
TV
31152020-07-30 Tom de Vries <tdevries@suse.de>
3116
3117 PR build/26320
3118 * ui-style.h (struct ui_file_style::color): Wrap m_value and
3119 m_red/m_green/m_blue in a union.
3120
8ba83e91
TV
31212020-07-29 Tom de Vries <tdevries@suse.de>
3122
3123 PR tdep/26280
3124 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
3125
f75a0693
AB
31262020-07-28 Tom Tromey <tromey@adacore.com>
3127
3128 PR symtab/26270:
3129 * symtab.h (find_pc_partial_function_sym): Declare.
3130 * cli/cli-cmds.c (disassemble_command): Use
3131 find_pc_partial_function_sym. Check asm_demangle.
3132 * blockframe.c (cache_pc_function_sym): New global.
3133 (cache_pc_function_name): Remove.
3134 (clear_pc_function_cache): Update.
3135 (find_pc_partial_function_sym): New function, from
3136 find_pc_partial_function.
3137 (find_pc_partial_function): Rewrite using
3138 find_pc_partial_function_sym.
3139
16f3242c
TT
31402020-07-28 Tom Tromey <tromey@adacore.com>
3141
3142 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
3143 help. Add usage.
3144
4888741a
TT
31452020-07-28 Tom Tromey <tromey@adacore.com>
3146
3147 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
3148 <DW_OP_GNU_variable_value>: Cast to address type.
3149
4d46f402
KR
31502020-07-28 Kamil Rytarowski <n54@gmx.com>
3151
3152 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
3153 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
3154 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
3155 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
3156 (nbsd_get_siginfo_type): New.
3157 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
3158 (_initialize_nbsd_tdep): New.
3159
d70f978b
L
31602020-07-28 H.J. Lu <hongjiu.lu@intel.com>
3161
3162 PR binutils/26301
3163 * configure: Regenerated.
3164
377170fa
L
31652020-07-28 H.J. Lu <hongjiu.lu@intel.com>
3166
3167 PR binutils/26301
3168 * configure: Regenerated.
3169
43d5901d
AB
31702020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
3171
3172 * python/py-frame.c: Remove 'user-regs.h' include.
3173 (frapy_read_register): Rewrite to make use of
3174 gdbpy_parse_register_id.
3175 * python/py-registers.c (gdbpy_parse_register_id): New function,
3176 moved here from python/py-unwind.c. Updated the return type, and
3177 also accepts register descriptor objects.
3178 * python/py-unwind.c: Remove 'user-regs.h' include.
3179 (pyuw_parse_register_id): Moved to python/py-registers.c.
3180 (unwind_infopy_add_saved_register): Update to use
3181 gdbpy_parse_register_id.
3182 (pending_framepy_read_register): Likewise.
3183 * python/python-internal.h (gdbpy_parse_register_id): Declare.
3184
14fa8fb3
AB
31852020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
3186
3187 * python/py-registers.c: Add 'user-regs.h' include.
3188 (register_descriptor_iter_find): New function.
3189 (register_descriptor_iterator_object_methods): New static global
3190 methods array.
3191 (register_descriptor_iterator_object_type): Add pointer to methods
3192 array.
3193
ddce1758
JB
31942020-07-27 John Baldwin <jhb@FreeBSD.org>
3195
3196 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
3197 for all architectures on FreeBSD 11.3 and later.
3198
a4089f52
TT
31992020-07-27 Tom Tromey <tromey@adacore.com>
3200
3201 * gcore.h (load_corefile): Don't declare.
3202
95420d30
TV
32032020-07-27 Tom de Vries <tdevries@suse.de>
3204
3205 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
3206 * config.in: Regenerate.
3207 * configure: Regenerate.
3208
05a6b8c2
EZ
32092020-07-26 Eli Zaretskii <eliz@gnu.org>
3210
3211 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
3212 ws2tcpip.h. When checking whether socklen_t type is defined, use
3213 ws2tcpip.h if it is available and sys/socket.h isn't.
3214 * configure: Regenerate.
3215 * config.in: Regenerate.
3216
e79eb02f
AB
32172020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
3218
3219 PR fortran/23051
3220 PR fortran/26139
3221 * valops.c (value_ind): Pass address to
3222 readjust_indirect_value_type.
3223 * value.c (readjust_indirect_value_type): Make parameter
3224 non-const, and add extra address parameter. Resolve original type
3225 before using it.
3226 * value.h (readjust_indirect_value_type): Update function
3227 signature and comment.
3228
876518dd
TV
32292020-07-25 Tom de Vries <tdevries@suse.de>
3230
3231 PR symtab/26243
3232 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
3233 entries.
3234
f6720b1c
AM
32352020-07-24 Aaron Merey <amerey@redhat.com>
3236
3237 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
3238 * configure: Rebuild.
3239
513487e1
KB
32402020-07-23 Kevin Buettner <kevinb@redhat.com>
3241
3242 PR corefiles/26294
3243 * corelow.c (_initialize_corelow): Add period to help text
3244 for "maintenance print core-file-backed-mappings".
3245
e7bc9db8
PA
32462020-07-23 Pedro Alves <pedro@palves.net>
3247
3248 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
3249 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
3250 meanwhile.
3251 * frame.c (frame_cache_generation, get_frame_cache_generation):
3252 New.
3253 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
3254 (get_prev_frame_if_no_cycle): On exception, don't touch
3255 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
3256 * frame.h (get_frame_cache_generation): Declare.
3257
90fcc466
TV
32582020-07-23 Tom de Vries <tdevries@suse.de>
3259
3260 PR tui/26282
3261 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
3262 New default constructor.
3263
78344df7
AB
32642020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
3265
3266 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
3267 exclude non-statement entries.
3268
b089853a
KB
32692020-07-22 Kevin Buettner <kevinb@redhat.com>
3270
3271 * NEWS (New commands): Mention new command
3272 "maintenance print core-file-backed-mappings".
3273
09c2f5d4
KB
32742020-07-22 Kevin Buettner <kevinb@redhat.com>
3275
3276 * corelow.c (gdbcmd.h): Include.
3277 (core_target::info_proc_mappings): New method.
3278 (get_current_core_target): New function.
3279 (maintenance_print_core_file_backed_mappings): New function.
3280 (_initialize_corelow): Add core-file-backed-mappings to
3281 "maint print" commands.
3282
9c5ec5c2 32832020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 3284
9c5ec5c2
KB
3285 * linux-tdep.c (dump_note_entry_p): New function.
3286 (linux_dump_mapping_p_ftype): New typedef.
3287 (linux_find_memory_regions_full): Add new parameter,
3288 should_dump_mapping_p.
3289 (linux_find_memory_regions): Adjust call to
3290 linux_find_memory_regions_full.
3291 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
3292 call to linux_find_memory_regions_full.
3293
db082f59
KB
32942020-07-22 Kevin Buettner <kevinb@redhat.com>
3295
3296 * corelow.c (solist.h, unordered_map): Include.
3297 (class core_target): Add field m_core_file_mappings and
3298 method build_file_mappings.
3299 (core_target::core_target): Call build_file_mappings.
3300 (core_target::~core_target): Free memory associated with
3301 m_core_file_mappings.
3302 (core_target::build_file_mappings): New method.
3303 (core_target::xfer_partial): Use m_core_file_mappings
3304 for memory transfers.
3305 * linux-tdep.c (linux_read_core_file_mappings): New
3306 function.
3307 (linux_core_info_proc_mappings): Rewrite to use
3308 linux_read_core_file_mappings.
3309 (linux_init_abi): Register linux_read_core_file_mappings.
3310
7e183d27
KB
33112020-07-22 Kevin Buettner <kevinb@redhat.com>
3312
3313 * arch-utils.c (default_read_core_file_mappings): New function.
3314 * arch-utils.c (default_read_core_file_mappings): Declare.
3315 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
3316 * gdbarch.h, gdbarch.c: Regenerate.
3317
2735d421
KB
33182020-07-22 Kevin Buettner <kevinb@redhat.com>
3319
3320 PR corefiles/25631
3321 * corelow.c (core_target:xfer_partial): Revise
3322 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
3323 case after first checking the stratum beneath the core
3324 target.
3325 (has_all_memory): Return true.
3326 * target.c (raw_memory_xfer_partial): Revise comment
3327 regarding use of has_all_memory.
3328
e56cb451
KB
33292020-07-22 Kevin Buettner <kevinb@redhat.com>
3330
3331 * exec.h (section_table_xfer_memory): Revise declaration,
3332 replacing section name parameter with an optional callback
3333 predicate.
3334 * exec.c (section_table_xfer_memory): Likewise.
3335 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
3336 of section_table_xfer_memory.
3337
32fa152e
TT
33382020-07-22 Tom Tromey <tromey@adacore.com>
3339
3340 * mi/mi-cmd-stack.c (list_args_or_locals): Use
3341 lookup_symbol_search_name.
3342
a67a1c41
AB
33432020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
3344
3345 * python/py-registers.c (gdbpy_register_object_data_init): Remove
3346 redundant local variable.
3347 (gdbpy_get_register_descriptor): Extract descriptor vector as a
3348 reference, not pointer, update code accordingly.
3349
a7b4ff4f
SM
33502020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3351 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3352
3353 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
3354 * jit.c (jit_breakpoint_re_set_internal): Use the
3355 `skip_jit_symbol_lookup` field.
3356
2340e834
SM
33572020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3358 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3359
3360 * jit.c (jit_read_descriptor): Define the descriptor address once,
3361 use twice.
3362 (jit_breakpoint_deleted): Move the declaration of the loop variable
3363 `iter` into the loop header.
3364 (jit_breakpoint_re_set_internal): Move the declaration of the local
3365 variable `objf_data` to the first point of definition.
3366 (jit_event_handler): Move the declaration of local variables
3367 `code_entry`, `entry_addr`, and `objf` to their first point of use.
3368 Rename `objf` to `jited`.
3369
c1072906
SM
33702020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3371
3372 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
3373 Remove.
3374 * jit.c (get_jiter_objfile_data): Update.
3375
c8474dc3
TBA
33762020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3377 Simon Marchi <simon.marchi@polymtl.ca>
3378
3379 * jit.c (struct jit_program_space_data): Remove.
3380 (jit_program_space_key): Remove.
3381 (jiter_objfile_data::~jiter_objfile_data): Remove program space
3382 stuff.
3383 (get_jit_program_space_data): Remove.
3384 (jit_breakpoint_deleted): Iterate on all of the program space's
3385 objfiles.
3386 (jit_inferior_init): Likewise.
3387 (jit_breakpoint_re_set_internal): Likewise. Also change return
3388 type to void.
3389 (jit_breakpoint_re_set): Pass current_program_space to
3390 jit_breakpoint_re_set_internal.
3391
77208eb7
SM
33922020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3393
3394 * jit.h (struct jiter_objfile_data) <cached_code_address,
3395 jit_breakpoint>: Move to here from ...
3396 * jit.c (jit_program_space_data): ... here.
3397 (jiter_objfile_data::~jiter_objfile_data): Update.
3398 (jit_breakpoint_deleted): Update.
3399 (jit_breakpoint_re_set_internal): Update.
3400
8c1c720f
SM
34012020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3402
3403 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
3404 checks.
3405 (jit_read_descriptor): Remove NULL check.
3406 (jit_event_handler): Add an assertion.
3407
0e74a041
SM
34082020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3409
3410 * jit.h (struct jit_objfile_data): Split into...
3411 (struct jiter_objfile_data): ... this ...
3412 (struct jited_objfile_data): ... and this.
3413 * objfiles.h (struct objfile) <jit_data>: Remove.
3414 <jiter_data, jited_data>: New fields.
3415 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
3416 (jiter_objfile_data::~jiter_objfile_data): ... this.
3417 (get_jit_objfile_data): Rename to ...
3418 (get_jiter_objfile_data): ... this.
3419 (add_objfile_entry): Update.
3420 (jit_read_descriptor): Use get_jiter_objfile_data.
3421 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
3422 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
3423 (jit_inferior_exit_hook): Use objfile's jited_data field.
3424
238b5c9f
SM
34252020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3426
3427 * jit.h: Forward-declare `struct minimal_symbol`.
3428 (struct jit_objfile_data): Migrate to here from jit.c; also add a
3429 constructor, destructor, and an objfile* field.
3430 * jit.c (jit_objfile_data): Remove.
3431 (struct jit_objfile_data): Migrate from here to jit.h.
3432 (jit_objfile_data::~jit_objfile_data): New destructor
3433 implementation with code moved from free_objfile_data.
3434 (free_objfile_data): Delete.
3435 (get_jit_objfile_data): Update to use the jit_data field of objfile.
3436 (jit_find_objf_with_entry_addr): Ditto.
3437 (jit_inferior_exit_hook): Ditto.
3438 (_initialize_jit): Remove the call to
3439 register_objfile_data_with_cleanup.
3440 * objfiles.h (struct objfile) <jit_data>: New field.
3441
fe053b9e
TBA
34422020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3443
3444 * jit.h: Forward-declare `struct objfile`.
3445 (jit_event_handler): Add a second parameter, the JITer objfile.
3446 * jit.c (jit_read_descriptor): Change the signature to take the
3447 JITer objfile as an argument instead of the jit_program_space_data.
3448 (jit_inferior_init): Update the call to jit_read_descriptor.
3449 (jit_event_handler): Use the new JITer objfile argument when calling
3450 jit_read_descriptor.
3451 * breakpoint.c (handle_jit_event): Update the call to
3452 jit_event_handler to pass the JITer objfile.
3453
4cec0c66
JB
34542020-07-21 John Baldwin <jhb@FreeBSD.org>
3455
3456 * gdbarch.c: Regenerate.
3457 * gdbarch.h: Regenerate.
3458 * gdbarch.sh (handle_segmentation_fault): Remove method.
3459 * infrun.c (handle_segmentation_fault): Remove.
3460 (print_signal_received_reason): Remove call to
3461 handle_segmentation_fault.
3462
0e42f66a
JB
34632020-07-21 John Baldwin <jhb@FreeBSD.org>
3464
3465 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
3466 Rename to sparc64_linux_report_signal_info and add siggnal
3467 argument.
3468 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
3469 instead of sparc64_linux_handle_segmentation_fault.
3470
77bdfeb2
JB
34712020-07-21 John Baldwin <jhb@FreeBSD.org>
3472
3473 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
3474 i386_linux_report_signal_info instead of
3475 i386_linux_handle_segmentation_fault.
3476 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
3477 to i386_linux_report_signal_info and add siggnal argument.
3478 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
3479 of i386_linux_handle_segmentation_fault.
3480 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
3481 to i386_linux_report_signal_info and add siggnal argument.
3482
ad97bfc5
JB
34832020-07-21 John Baldwin <jhb@FreeBSD.org>
3484
3485 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
3486 hook if present.
3487
272bb05c
JB
34882020-07-21 John Baldwin <jhb@FreeBSD.org>
3489
3490 * gdbarch.c: Regenerate.
3491 * gdbarch.h: Regenerate.
3492 * gdbarch.sh (report_signal_info): New method.
3493 * infrun.c (print_signal_received_reason): Invoke gdbarch
3494 report_signal_info hook if present.
3495
baf8791e
AB
34962020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
3497
3498 * python/py-registers.c : Add 'unordered_map' include.
3499 (gdbpy_new_reggroup): Renamed to...
3500 (gdbpy_get_reggroup): ...this. Update to only create register
3501 group descriptors when needed.
3502 (gdbpy_reggroup_iter_next): Update.
3503
f7306dac
AB
35042020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
3505
3506 * python/py-registers.c (gdbpy_register_object_data): New static
3507 global.
3508 (gdbpy_register_object_data_init): New function.
3509 (gdbpy_new_register_descriptor): Renamed to...
3510 (gdbpy_get_register_descriptor): ...this, and update to reuse
3511 existing register descriptors where possible.
3512 (gdbpy_register_descriptor_iter_next): Update.
3513 (gdbpy_initialize_registers): Register new gdbarch data.
3514
05c309a8
SM
35152020-07-21 Simon Marchi <simon.marchi@efficios.com>
3516
3517 * linux-nat.c (stopped_pids): Make static.
3518
d1fd641e
SM
35192020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
3520
3521 PR ada/26235
3522 * gdbtypes.c (ada_discrete_type_low_bound,
3523 ada_discrete_type_high_bound): Handle undefined bounds.
3524
1de14d77
KR
35252020-07-21 Kamil Rytarowski <n54@gmx.com>
3526
3527 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
3528 declaration.
3529 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
3530 function.
3531
ed810cc7
JB
35322020-07-20 John Baldwin <jhb@FreeBSD.org>
3533
3534 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
3535 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
3536 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
3537 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
3538 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
3539 method.
3540
ae5369e7
LC
35412020-07-20 Ludovic Courtès <ludo@gnu.org>
3542
3543 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
3544 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
3545 which are deprecated in Guile 3.0.
3546 * configure.ac (try_guile_versions): Add "guile-3.0".
3547 * configure (try_guile_versions): Regenerate.
3548 * NEWS: Update entry.
3549
68cf161c
LC
35502020-07-20 Ludovic Courtès <ludo@gnu.org>
3551 Doug Evans <dje@google.com>
3552
3553 PR gdb/21104
3554 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
3555 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
3556 USING_GUILE_BEFORE_2_2.
3557 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
3558 Change type to 'scm_t_port_type *'.
3559 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
3560 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
3561 parameter and honor it. Update callers.
3562 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
3563 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
3564 functions.
3565 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
3566 USING_GUILE_BEFORE_2_2.
3567 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
3568 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
3569 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
3570 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
3571 and 'SCM_PORT_TYPE'.
3572 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
3573 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
3574 (gdbscm_memory_port_read, gdbscm_memory_port_write)
3575 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
3576 [!USING_GUILE_BEFORE_2_2]: New functions.
3577 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
3578 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
3579 'gdbscm_memory_port_read'.
3580 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
3581 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
3582 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
3583 function.
3584 (ioscm_init_memory_port): Remove.
3585 (ioscm_init_memory_port_stream): New function
3586 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
3587 function.
3588 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
3589 Return scm_from_uint (0).
3590 (gdbscm_set_memory_port_read_buffer_size_x)
3591 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
3592 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
3593 Return scm_from_uint (0).
3594 (gdbscm_set_memory_port_write_buffer_size_x)
3595 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
3596 * configure.ac (try_guile_versions): Add "guile-2.2".
3597 * configure: Regenerate.
3598 * NEWS: Add entry.
3599
aee91db3
TT
36002020-07-18 Tom Tromey <tom@tromey.com>
3601
3602 * linux-nat.c (linux_multi_process): Remove.
3603 (linux_nat_target::supports_multi_process): Return true.
3604
0e267416
AB
36052020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
3606
3607 * arch/riscv.c (riscv_tdesc_cache): Change map type.
3608 (riscv_lookup_target_description): Return pointer out of
3609 unique_ptr.
3610 * target-descriptions.c (allocate_target_description): Add
3611 comment.
3612 (target_desc_deleter::operator()): Likewise.
3613 * target-descriptions.h (struct target_desc_deleter): Moved to
3614 gdbsupport/tdesc.h.
3615 (target_desc_up): Likewise.
3616
f80c8ec4
TT
36172020-07-17 Tom Tromey <tromey@adacore.com>
3618
3619 * linux-nat.c (linux_nat_target::supports_non_stop)
3620 (linux_nat_target::always_non_stop_p): Use "true".
3621 (linux_nat_target::supports_disable_randomization): Use "true" and
3622 "false".
3623
d0ce17d8
CT
36242020-07-16 Caroline Tice <cmtice@google.com>
3625
3626 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
3627 (RNGLIST_HEADER_SIZE64): New constant definition.
3628 (struct dwop_section_names): Add rnglists_dwo.
3629 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
3630 (struct loclist_header): Rename to 'loclists_rnglists_header'.
3631 (struct dwo_sections): Add rnglists field.
3632 (read_attribut_reprocess): Add tag parameter.
3633 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
3634 (cu_debug_rnglists_section): New function (decl & definition).
3635 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
3636 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
3637 die whose range is being checked; get rnglist section from
3638 cu_debug_rnglists_section, to get from either objfile or dwo file as
3639 appropriate. Add cases for DW_RLE_base_addressx,
3640 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
3641 the base address to DW_RLE_offset_pairs (not to all ranges), moving
3642 test inside if-condition and updating complaint message.
3643 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
3644 dwarf2_rnglists_process.
3645 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
3646 dwarf2_ranges_process.
3647 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
3648 need_ranges_base and update comment appropriately. Also pass die tag
3649 to dwarf2_ranges_read.
3650 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
3651 need_ranges_base and update comment appropriately. Also pass die tag
3652 to dwarf2_ranges_process.
3653 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
3654 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
3655 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
3656 need_ranges_base and update comment appropriately. Also pass die tag
3657 to read_attribute_reprocess and dwarf2_ranges_read.
3658 (read_loclist_header): Rename function to read_loclists_rnglists_header,
3659 and update function comment appropriately.
3660 (read_loclist_index): Call read_loclists_rnglists_header instead of
3661 read_loclist_header.
3662 (read_rnglist_index): New function.
3663 (read_attribute_reprocess): Add tag parameter. Add code for
3664 DW_FORM_rnglistx, passing tag to read_rnglist_index.
3665 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
3666
3dcc261c
AB
36672020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
3668
3669 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
3670 being resolved.
3671
ccb9eba6
AB
36722020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
3673
3674 * arch-utils.c (show_architecture): Update formatting of messages.
3675
cf88be68
SM
36762020-07-12 Simon Marchi <simon.marchi@efficios.com>
3677
3678 * gdbtypes.h (struct type) <bounds>: Handle array and string
3679 types.
3680 * ada-lang.c (assign_aggregate): Use type::bounds on
3681 array/string type.
3682 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
3683 * c-varobj.c (c_number_of_children): Likewise.
3684 (c_describe_child): Likewise.
3685 * eval.c (evaluate_subexp_for_sizeof): Likewise.
3686 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
3687 (f_type_print_base): Likewise.
3688 * f-valprint.c (f77_array_offset_tbl): Likewise.
3689 (f77_get_upperbound): Likewise.
3690 (f77_print_array_1): Likewise.
3691 * guile/scm-type.c (gdbscm_type_range): Likewise.
3692 * m2-typeprint.c (m2_array): Likewise.
3693 (m2_is_long_set_of_type): Likewise.
3694 * m2-valprint.c (get_long_set_bounds): Likewise.
3695 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
3696 * python/py-type.c (typy_range): Likewise.
3697 * rust-lang.c (rust_internal_print_type): Likewise.
3698 * type-stack.c (type_stack::follow_types): Likewise.
3699 * valarith.c (value_subscripted_rvalue): Likewise.
3700 * valops.c (value_cast): Likewise.
3701
509971ae
SM
37022020-07-12 Simon Marchi <simon.marchi@efficios.com>
3703
3704 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
3705 callers to use the equivalent accessor methods.
3706
107406b7
SM
37072020-07-12 Simon Marchi <simon.marchi@efficios.com>
3708
3709 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
3710 (struct type) <bit_stride>: New method.
3711 (TYPE_BIT_STRIDE): Remove.
3712 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
3713
bb789949
SM
37142020-07-12 Simon Marchi <simon.marchi@efficios.com>
3715
3716 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
3717 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
3718 callers to use the equivalent accessor methods instead.
3719
39498edb
SM
37202020-07-12 Simon Marchi <simon.marchi@efficios.com>
3721
3722 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
3723 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
3724 callers to use the equivalent accessor methods instead.
3725
3b606f38
SM
37262020-07-12 Simon Marchi <simon.marchi@efficios.com>
3727
3728 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
3729 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
3730 to use dynamic_prop::kind.
3731
064d9cb9
SM
37322020-07-12 Simon Marchi <simon.marchi@efficios.com>
3733
3734 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
3735 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
3736 to get the bound property's kind and check against
3737 PROP_UNDEFINED.
3738
5537ddd0
SM
37392020-07-12 Simon Marchi <simon.marchi@efficios.com>
3740
3741 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
3742 all callers to use type::range_bounds followed by
3743 dynamic_prop::{low,high}.
3744
8c2e4e06
SM
37452020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
3746
3747 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
3748 const_val, set_const_val, baton, set_locexpr, set_loclist,
3749 set_addr_offset, variant_parts, set_variant_parts,
3750 original_type, set_original_type>: New methods.
3751 <kind>: Rename to...
3752 <m_kind>: ... this. Update all users to use the new methods
3753 instead.
3754 <data>: Rename to...
3755 <m_data>: ... this. Update all users to use the new methods
3756 instead.
3757
7c6f2712
SM
37582020-07-12 Simon Marchi <simon.marchi@efficios.com>
3759
3760 * gdbtypes.c (get_discrete_bounds): Return failure if
3761 the range type's bounds are not both defined and constant
3762 values.
3763 (get_array_bounds): Update comment. Remove undefined bound check.
3764
599088e3
SM
37652020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
3766
3767 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
3768 the type::bounds method directly.
3769
c4dfcb36
SM
37702020-07-12 Simon Marchi <simon.marchi@efficios.com>
3771
3772 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
3773 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
3774 are used to set the range type's bounds to use set_bounds.
3775
0a278aa7
PW
37762020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3777
3778 * exec.c (_initialize_exec): Update exec-file-mismatch help.
3779
cce20f10
PA
37802020-07-10 Pedro Alves <pedro@palves.net>
3781
3782 * gdbthread.h (inferior_ref): Define.
3783 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
3784 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
3785 * thread.c
3786 (scoped_restore_current_thread::restore):
3787 Adjust to gdb::ref_ptr.
3788 (scoped_restore_current_thread::~scoped_restore_current_thread):
3789 Remove manual decref handling.
3790 (scoped_restore_current_thread::scoped_restore_current_thread):
3791 Adjust to use
3792 inferior_ref::new_reference/thread_info_ref::new_reference.
3793 Incref the thread before calling get_frame_id instead of after.
3794 Let TARGET_CLOSE_ERROR propagate.
3795
6d7aa592
PA
37962020-07-10 Pedro Alves <pedro@palves.net>
3797
3798 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
3799 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
3800 NOT_AVAILABLE_ERROR.
3801 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
3802 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
3803
b3e3a4c1
SM
38042020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3805 Pedro Alves <pedro@palves.net>
3806
3807 PR gdb/26199
3808 * infrun.c (threads_are_resumed_pending_p): Delete.
3809 (do_target_wait): Remove threads_are_executing and
3810 threads_are_resumed_pending_p checks from the inferior_matches
3811 lambda. Update comments.
3812
d6cc5d98
PA
38132020-07-10 Pedro Alves <pedro@palves.net>
3814
3815 PR gdb/26199
3816 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
3817 executing threads.
3818
7d3badc6
PA
38192020-07-10 Pedro Alves <pedro@palves.net>
3820
3821 PR gdb/26199
3822 * infrun.c (handle_no_resumed): Handle multiple targets.
3823
42bd97a6
PA
38242020-07-10 Pedro Alves <pedro@palves.net>
3825
3826 PR gdb/26199
3827 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
3828 target_is_async_p.
3829
43667cc6
PA
38302020-07-10 Pedro Alves <pedro@palves.net>
3831
3832 PR gdb/26199
3833 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
3834 threads, not all threads.
3835
96118d11
PA
38362020-07-10 Pedro Alves <pedro@palves.net>
3837
3838 PR gdb/26199
3839 * remote.c (remote_target::open_1): Pass remote target pointer as
3840 data to create_async_event_handler.
3841 (remote_async_inferior_event_handler): Mark async event handler
3842 before returning if the remote target still has either pending
3843 events or unacknowledged notifications.
3844
54904d81
JB
38452020-07-10 John Baldwin <jhb@FreeBSD.org>
3846
3847 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
3848 declaration.
3849 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
3850 function.
3851
f37e5866
JB
38522020-07-09 John Baldwin <jhb@FreeBSD.org>
3853
3854 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
3855 inferior_ptid.
3856
fc238d4a
JB
38572020-07-09 John Baldwin <jhb@FreeBSD.org>
3858
3859 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
3860 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
3861 AT_FREEBSD_PS_STRINGS.
3862
6e2469ff
HD
38632020-07-08 Hannes Domani <ssbssa@yahoo.de>
3864
3865 * auto-load.c (auto_load_objfile_script_1): Convert drive part
3866 of debugfile path on Windows.
3867
d1076c41
JB
38682020-07-08 John Baldwin <jhb@FreeBSD.org>
3869
3870 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
3871 argument to 'data'.
3872
15f3b077
TT
38732020-07-08 Tom Tromey <tromey@adacore.com>
3874
3875 * ada-lang.c (ada_exception_message_1): Use read_memory.
3876
9fc501fd
AB
38772020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3878
3879 PR python/22748
3880 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
3881 special handling for inline frames.
3882 * findvar.c (value_of_register_lazy): Skip inline frames when
3883 creating lazy register values.
3884 * frame.c (frame_id_computed_p): Delete definition.
3885 * frame.h (frame_id_computed_p): Delete declaration.
3886
64cb3757
AB
38872020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3888
3889 * NEWS: Mention additions to Python API.
3890 * python/py-arch.c (archpy_register_groups): New function.
3891 (arch_object_methods): Add 'register_groups' method.
3892 * python/py-registers.c (reggroup_iterator_object): New struct.
3893 (reggroup_object): New struct.
3894 (gdbpy_new_reggroup): New function.
3895 (gdbpy_reggroup_to_string): New function.
3896 (gdbpy_reggroup_name): New function.
3897 (gdbpy_reggroup_iter): New function.
3898 (gdbpy_reggroup_iter_next): New function.
3899 (gdbpy_new_reggroup_iterator): New function
3900 (gdbpy_initialize_registers): Register new types.
3901 (reggroup_iterator_object_type): Define new Python type.
3902 (gdbpy_reggroup_getset): New static global.
3903 (reggroup_object_type): Define new Python type.
3904 * python/python-internal.h
3905
0f767f94
AB
39062020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3907
3908 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
3909 * python/py-arch.c (archpy_registers): New function.
3910 (arch_object_methods): Add 'registers' method.
3911 * python/py-registers.c: New file.
3912 * python/python-internal.h
3913 (gdbpy_new_register_descriptor_iterator): Declare.
3914 (gdbpy_initialize_registers): Declare.
3915 * python/python.c (do_start_initialization): Call
3916 gdbpy_initialize_registers.
3917 * NEWS: Mention additions to the Python API.
3918
87dbc774
AB
39192020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3920
3921 * NEWS: Mention new Python API method.
3922 * python/py-unwind.c (pending_framepy_architecture): New function.
3923 (pending_frame_object_methods): Add architecture method.
3924
3bc98c0c
AB
39252020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3926
3927 * gdbarch.c: Regenerate.
3928 * gdbarch.h: Regenerate.
3929 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
3930 (gdbarch_data): Use internal_error for the case where
3931 deprecated_set_gdbarch_data was originally needed.
3932 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
3933 and use passed in obstack.
3934 (libunwind_frame_set_descr): Should no longer get back NULL from
3935 gdbarch_data.
3936 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
3937 type.
3938 * user-regs.c (user_regs_init): Update parameters, and use passed
3939 in obstack.
3940 (user_reg_add): Should no longer get back NULL from gdbarch_data.
3941 (_initialize_user_regs): Register as a pre-init gdbarch data type.
3942
d8cc8af6
TV
39432020-07-06 Tom de Vries <tdevries@suse.de>
3944
3945 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
3946 End-Of-Sequence in lte_is_less_than.
3947 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
3948 "gdb: Don't reorder line table entries too much when sorting".
3949
947f7597
TV
39502020-07-06 Tom de Vries <tdevries@suse.de>
3951
3952 PR tui/26205
3953 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
3954
1e7c1b22
TV
39552020-07-05 Tom de Vries <tdevries@suse.de>
3956
3957 PR build/26187
3958 * inferior.h (struct infcall_suspend_state_deleter): If available, use
3959 std::uncaught_exceptions instead of deprecated
3960 std::uncaught_exception.
3961
a36158ec
SM
39622020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3963
3964 * macroexp.h (macro_stringify): Return
3965 gdb::unique_xmalloc_ptr<char>.
3966 * macroexp.c (macro_stringify): Likewise.
3967 * macrotab.c (fixup_definition): Update.
3968
14d960c8
SM
39692020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3970
3971 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
3972 (lex_one_token): Update.
3973 * macroexp.c (struct macro_buffer) <release>: Return
3974 gdb::unique_xmalloc_ptr<char>.
3975 (macro_stringify): Update.
3976 (macro_expand): Update.
3977 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
3978 * macroexp.h (macro_expand_next): Likewise.
3979
211d5b1c
SM
39802020-07-02 Simon Marchi <simon.marchi@efficios.com>
3981
3982 * macroexp.h (macro_lookup_ftype): Remove.
3983 (macro_expand, macro_expand_once, macro_expand_next): Remove
3984 lookup function parameters, add scope parameter.
3985 * macroexp.c (scan, substitute_args, expand, maybe_expand,
3986 macro_expand, macro_expand_once, macro_expand_next): Likewise.
3987 * macroscope.h (standard_macro_lookup): Change parameter type
3988 to macro_scope.
3989 * macroscope.c (standard_macro_lookup): Likewise.
3990 * c-exp.y (lex_one_token): Update.
3991 * macrocmd.c (macro_expand_command): Likewise.
3992 (macro_expand_once_command): Likewise.
3993
b1a35af2
SM
39942020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3995
3996 * inf-loop.c (inferior_event_handler): Remove client_data param.
3997 * inf-loop.h (inferior_event_handler): Likewise.
3998 * infcmd.c (step_1): Adjust.
3999 * infrun.c (proceed): Adjust.
4000 (fetch_inferior_event): Remove client_data param.
4001 (infrun_async_inferior_event_handler): Adjust.
4002 * infrun.h (fetch_inferior_event): Remove `void *` param.
4003 * linux-nat.c (handle_target_event): Adjust.
4004 * record-btrace.c (record_btrace_handle_async_inferior_event):
4005 Adjust.
4006 * record-full.c (record_full_async_inferior_event_handler):
4007 Adjust.
4008 * remote.c (remote_async_inferior_event_handler): Adjust.
4009
1cdf9e33
TT
40102020-07-01 Tom Tromey <tom@tromey.com>
4011
4012 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
4013 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
4014
32c1e210
TT
40152020-07-01 Tom Tromey <tom@tromey.com>
4016
4017 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
4018 tui_gen_win_info.
4019 (tui_win_info::make_window): Merge with
4020 tui_gen_win_info::make_window.
4021 (tui_win_info::make_visible): Move from tui_gen_win_info.
4022 * tui/tui-win.c (tui_win_info::max_width): Move from
4023 tui_gen_win_info.
4024 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
4025 type.
4026 <window_factory>: Likewise.
4027 * tui/tui-layout.c (tui_win_info::resize): Move from
4028 tui_gen_win_info.
4029 (make_standard_window): Change return type.
4030 (get_locator_window, tui_get_window_by_name): Likewise.
4031 (tui_layout_window::apply): Remove a cast.
4032 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
4033 (struct tui_win_info): Merge with tui_gen_win_info.
4034 (struct tui_gen_win_info): Remove.
4035
a30cb6da
TT
40362020-07-01 Tom Tromey <tom@tromey.com>
4037
4038 * tui/tui-stack.h (struct tui_locator_window): Derive from
4039 tui_win_info.
4040 <do_scroll_horizontal, do_scroll_vertical>: New methods.
4041 <can_box>: New method.
4042
1eb2161f
TT
40432020-07-01 Tom Tromey <tom@tromey.com>
4044
4045 * tui/tui-stack.h (struct tui_locator_window): Remove body.
4046
7134f2eb
TT
40472020-07-01 Tom Tromey <tom@tromey.com>
4048
4049 * tui/tui-regs.c (tui_data_window::display_registers_from)
4050 (tui_data_window::display_registers_from)
4051 (tui_data_window::first_data_item_displayed)
4052 (tui_data_window::delete_data_content_windows): Update.
4053 (tui_data_window::refresh_window, tui_data_window::no_refresh):
4054 Remove.
4055 (tui_data_window::check_register_values): Update.
4056 (tui_data_item_window::rerender): Add parameters. Update.
4057 (tui_data_item_window::refresh_window): Remove.
4058 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
4059 virtual.
4060 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
4061 tui_gen_win_info.
4062 <refresh_window, max_height, min_height>: Remove.
4063 <rerender>: Add parameters.
4064 <x, y, visible>: New members.
4065 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
4066 <m_item_width>: New member.
4067
22b7b041
TT
40682020-07-01 Tom Tromey <tom@tromey.com>
4069
4070 * tui/tui-regs.c (tui_data_window::show_register_group)
4071 (tui_data_window::check_register_values): Update.
4072 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
4073 from item_no.
4074
c9753adb
TT
40752020-07-01 Tom Tromey <tom@tromey.com>
4076
4077 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
4078 useless "if".
4079
9ab26b4a
TT
40802020-07-01 Tom Tromey <tom@tromey.com>
4081
4082 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
4083 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
4084
e555083f
TT
40852020-07-01 Tom Tromey <tom@tromey.com>
4086
4087 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
4088 * tui/tui-winsource.h (enum tui_line_or_address_kind)
4089 (struct tui_line_or_address): Move from tui-data.h.
4090 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
4091 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
4092 (tui_cmd_window, tui_source_window_base, tui_source_window)
4093 (tui_disasm_window): Don't declare.
4094 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
4095 to tui-winsource.h.
4096 (SINGLE_KEY): Move to tui-stack.c.
4097
7a02bab7
TT
40982020-07-01 Tom Tromey <tom@tromey.com>
4099
4100 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
4101 std::string.
4102 * tui/tui-regs.c (class tab_expansion_file): New.
4103 (tab_expansion_file::write): New method.
4104 (tui_register_format): Change return type. Use
4105 tab_expansion_file.
4106 (tui_get_register, tui_data_window::display_registers_from)
4107 (tui_data_item_window::rerender): Update.
4108 * tui/tui-io.h (tui_expand_tabs): Don't declare.
4109 * tui/tui-io.c (tui_expand_tabs): Remove.
4110
ea68593b
TT
41112020-07-01 Tom Tromey <tom@tromey.com>
4112
4113 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
4114
a8caed5d
FS
41152020-07-01 Fangrui Song <maskray@google.com>
4116
4117 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
4118
9cdf9820
AKS
41192020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4120
4121 * dwarf2/read.c (set_die_type): Removed conditions to restrict
4122 forms for DW_AT_associated and DW_AT_allocated attributes,
4123 which is already checked in function attr_to_dynamic_prop.
4124
a1520ad8
TT
41252020-06-30 Tom Tromey <tromey@adacore.com>
4126
4127 * dwarf2/read.c (quirk_rust_enum): Correctly call
4128 alloc_rust_variant for default-less enum.
4129
5ac58899
TT
41302020-06-30 Tom Tromey <tromey@adacore.com>
4131
4132 PR build/26183:
4133 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
4134 gdb::to_string.
4135
19b187a9
SM
41362020-06-29 Simon Marchi <simon.marchi@efficios.com>
4137
4138 * gdbarch.sh (displaced_step_copy_insn): Update doc.
4139 * gdbarch.h: Re-generate.
4140
cd4c4c07
TT
41412020-06-28 Tom Tromey <tom@tromey.com>
4142
4143 * command.h (cmd_types): Remove.
4144 (cmd_type): Don't declare.
4145 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
4146 typedef.
4147 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
4148 * cli/cli-decode.c (cmd_type): Remove.
4149
05779d57
PA
41502020-06-27 Pedro Alves <palves@redhat.com>
4151
4152 * fork-child.c (prefork_hook): Adjust.
4153 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
4154 Delete.
4155 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
4156 * inferior.c (inferior::set_tty, inferior::tty): New methods.
4157 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
4158 Remove declarations.
4159 (struct inferior) <set_tty, tty>: New methods.
4160 (struct inferior) <terminal>: Rename to ...
4161 (struct inferior) <m_terminal>: ... this and make private.
4162 * main.c (captured_main_1): Adjust.
4163 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
4164 (mi_cmd_inferior_tty_show): Adjust.
4165 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
4166 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
4167
1776e3e5
NA
41682020-06-26 Nick Alcock <nick.alcock@oracle.com>
4169
4170 * configure.ac: Add --enable-libctf: handle --disable-static
4171 properly.
4172 * acinclude.m4: sinclude ../config/enable.m4.
4173 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
4174 (LIBCTF): Substitute in.
4175 (CTF_DEPS): New, likewise.
4176 (CLIBS): libctf needs symbols from libbfd: move earlier.
4177 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
4178 flags.
4179 * ctfread.c: Surround in ENABLE_LIBCTF.
4180 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
4181 * configure: Regenerate.
4182 * config.in: Likewise.
4183
58373b80
SM
41842020-06-25 Simon Marchi <simon.marchi@efficios.com>
4185
4186 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
4187
277474ee
SM
41882020-06-25 Simon Marchi <simon.marchi@efficios.com>
4189
4190 * inferior.h (struct inferior) <terminal>: Change type to
4191 gdb::unique_xmalloc_ptr<char>.
4192 * inferior.c (inferior::~inferior): Don't free inf->terminal.
4193 * infcmd.c (set_inferior_io_terminal): Don't free terminal
4194 field, adjust to unique pointer.
4195 (get_inferior_io_terminal): Adjust to unique pointer.
4196
6d74da72
AB
41972020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4198
4199 * riscv-tdep.c (riscv_print_registers_info): Loop over all
4200 registers, not just the known core set of registers.
4201
2e52d038
AB
42022020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4203
4204 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
4205 fflags, frm, and fcsr registers.
4206 (riscv_register_reggroup_p): Remove unknown CSRs from save and
4207 restore groups.
4208 (riscv_tdesc_unknown_reg): New function.
4209 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
4210 tdesc_use_registers.
4211 * riscv-tdep.h (struct gdbarch_tdep): Add
4212 unknown_csrs_first_regnum, unknown_csrs_count,
4213 duplicate_fflags_regnum, duplicate_frm_regnum, and
4214 duplicate_fcsr_regnum fields.
4215
be64fd07
AB
42162020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4217
4218 * target-descriptions.c (tdesc_use_registers): Add new parameter a
4219 callback, use the callback (when not null) to help number unknown
4220 registers.
4221 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
4222 (tdesc_use_registers): Add extra parameter to declaration.
4223
3b9fce96
AB
42242020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4225
4226 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
4227 in the file.
4228 (class riscv_pending_register_alias): Likewise.
4229 (riscv_register_feature::register_info): Change 'required_p' field
4230 to 'required', and change its type. Add 'check' member function.
4231 (riscv_register_feature::register_info::check): Define new member
4232 function.
4233 (riscv_xreg_feature): Change initialisation of 'required' field.
4234 (riscv_freg_feature): Likewise.
4235 (riscv_virtual_feature): Likewise.
4236 (riscv_csr_feature): Likewise.
4237 (riscv_check_tdesc_feature): Take extra parameter, the csr
4238 tdesc_feature, rewrite the function to use the new
4239 riscv_register_feature::register_info::check function.
4240 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
4241
865bad26
AB
42422020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4243
4244 * features/Makefile: Remove all references to the deleted files
4245 below.
4246 * features/riscv/32bit-csr.c: Deleted.
4247 * features/riscv/32bit-csr.xml: Deleted.
4248 * features/riscv/64bit-csr.c: Deleted.
4249 * features/riscv/64bit-csr.xml: Deleted.
4250 * features/riscv/rebuild-csr-xml.sh: Deleted.
4251
ed69cbc8
AB
42522020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4253
4254 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
4255 whitespace error for declaration of names member variable.
4256 (struct riscv_register_feature): Add new prefer_first_name member
4257 variable, and fix whitespace error in declaration of registers.
4258 (riscv_xreg_feature): Initialize prefer_first_name field.
4259 (riscv_freg_feature): Likewise.
4260 (riscv_virtual_feature): Likewise.
4261 (riscv_csr_feature): Likewise.
4262 (riscv_register_name): Expand on comments. Remove register name
4263 modifications for CSR and virtual registers.
4264
4445e8f5
AB
42652020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4266
4267 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
4268 errors.
4269
767a879e
AB
42702020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4271
4272 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
4273 riscv-opc.h.
4274 (class riscv_pending_register_alias): New class.
4275 (riscv_check_tdesc_feature): Take vector of pending aliases and
4276 populate it as appropriate.
4277 (riscv_setup_register_aliases): Delete.
4278 (riscv_gdbarch_init): Create vector of pending aliases and pass it
4279 to riscv_check_tdesc_feature in all cases. Use the vector to
4280 create the register aliases.
4281
bb6e55f3
RO
42822020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4283
4284 * sol2-tdep.c (sol2_static_transform_name): Remove.
4285 (sol2_init_abi): Don't register it.
4286 * gdbarch.sh (static_transform_name): Remove.
4287 * gdbarch.c, gdbarch.h: Regenerate.
4288
4289 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
4290 gdbarch_static_transform_name.
4291 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
4292 * stabsread.c (define_symbol) <'X'>: Remove.
4293 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
4294 handling.
4295 <'V'>: Likewise.
4296 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
4297 <'S'>: Remove call to gdbarch_static_transform_name.
4298
c6d36836
RO
42992020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4300
4301 * procfs.c (procfs_pre_trace): New function.
4302 (procfs_target::create_inferior): Pass it to fork_inferior.
4303
a7e6196b
RO
43042020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4305
4306 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
4307 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
4308 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
4309 sol2-tdep.o, sparc-sol2-tdep.o.
4310 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
4311 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
4312 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
4313 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
4314
d412e696
RO
43152020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4316
4317 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
4318 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
4319 Call sol2_init_abi.
4320 Remove calls to set_gdbarch_skip_solib_resolver,
4321 set_gdbarch_core_pid_to_str.
4322 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
4323 (i386_sol2_static_transform_name): Remove.
4324 (i386_sol2_init_abi): Call sol2_init_abi.
4325 Remove calls to set_gdbarch_sofun_address_maybe_missing,
4326 set_gdbarch_static_transform_name,
4327 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
4328 Use sol2_sigtramp_p.
4329 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
4330 (sol2_sigtramp_p): New function.
4331 (sol2_static_transform_name): New function.
4332 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
4333 (sol2_init_abi): New function.
4334 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
4335 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
4336 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
4337 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
4338 (sparc_sol2_static_transform_name): Remove.
4339 (sparc32_sol2_init_abi): Call sol2_init_abi.
4340 Remove calls to set_gdbarch_sofun_address_maybe_missing,
4341 set_gdbarch_static_transform_name,
4342 set_gdbarch_skip_solib_resolver,
4343 set_gdbarch_core_pid_to_str.
4344 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
4345 (sparc_sol2_static_transform_name): Remove
4346 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
4347 call sol2_sigtramp_p.
4348 (sparc64_sol2_init_abi): Call sol2_init_abi.
4349 Remove calls to set_gdbarch_sofun_address_maybe_missing,
4350 set_gdbarch_static_transform_name,
4351 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
4352
a8654e7d
PW
43532020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4354
4355 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
4356 * exec.c (validate_exec_file): If from_tty, set both
4357 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
4358 * symfile.c (symbol_file_add_with_addrs): if always_confirm
4359 and from_tty, unconditionally ask a confirmation.
4360
caa7fd04
AB
43612020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4362
4363 * target-descriptions.c (tdesc_architecture_name): Protect against
4364 NULL pointer dereference.
4365 (maint_print_xml_tdesc_cmd): New function.
4366 (_initialize_target_descriptions): Register new 'maint print
4367 xml-tdesc' command and give it the filename completer.
4368 * NEWS: Mention new 'maint print xml-tdesc' command.
4369
fbf42f4e
AB
43702020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4371
4372 * target-descriptions.c (class tdesc_compatible_info): New class.
4373 (struct target_desc): Change type of compatible vector.
4374 (tdesc_compatible_p): Update for change in type of
4375 target_desc::compatible.
4376 (tdesc_compatible_info_list): New function.
4377 (tdesc_compatible_info_arch_name): New function.
4378 (tdesc_add_compatible): Update for change in type of
4379 target_desc::compatible.
4380 (print_c_tdesc::visit_pre): Likewise.
4381
20821f4e
AB
43822020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4383
4384 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
4385 whitespace to underscore.
4386 (maint_print_c_tdesc_cmd): Use fake filename for target
4387 descriptions that came from the target.
4388 (_initialize_target_descriptions): Add filename command completion
4389 for 'maint print c-tdesc'.
4390
1fb5ee62
SM
43912020-06-23 Simon Marchi <simon.marchi@efficios.com>
4392
4393 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
4394 lines.
4395
fc3ecb3e
SM
43962020-06-23 Simon Marchi <simon.marchi@efficios.com>
4397
4398 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
4399 lines.
4400 (dwarf2_find_location_expression): Likewise.
4401 (call_site_parameter_matches): Likewise.
4402 (dwarf2_compile_expr_to_ax): Likewise.
4403 (disassemble_dwarf_expression): Likewise.
4404 (loclist_describe_location): Likewise.
4405
236ef034
PA
44062020-06-23 Pedro Alves <palves@redhat.com>
4407
4408 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
4409 progspace-and-thread.h. Include scoped-mock-context.h instead.
4410 (register_to_value_test): Use scoped_mock_context.
4411 * regcache.c: Include "scoped-mock-context.h".
4412 (cooked_read_test): Don't error out if a target is already pushed.
4413 Use scoped_mock_context. Adjust.
4414 * scoped-mock-context.h: New file.
4415
39e7ecca
AB
44162020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4417
4418 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
4419 initializer.
4420 (ada_language::is_string_type_p): New member function.
4421 * c-lang.c (c_language_data): Delete la_is_string_type_p
4422 initializer.
4423 (cplus_language_data): Likewise.
4424 (asm_language_data): Likewise.
4425 (minimal_language_data): Likewise.
4426 * d-lang.c (d_language_data): Likewise.
4427 * f-lang.c (f_is_string_type_p): Delete function, implementation
4428 moved to f_language::is_string_type_p.
4429 (f_language_data): Delete la_is_string_type_p initializer.
4430 (f_language::is_string_type_p): New member function,
4431 implementation from f_is_string_type_p.
4432 * go-lang.c (go_is_string_type_p): Delete function, implementation
4433 moved to go_language::is_string_type_p.
4434 (go_language_data): Delete la_is_string_type_p initializer.
4435 (go_language::is_string_type_p): New member function,
4436 implementation from go_is_string_type_p.
4437 * language.c (language_defn::is_string_type_p): Define new member
4438 function.
4439 (default_is_string_type_p): Make static, add comment copied from
4440 header file.
4441 (unknown_language_data): Delete la_is_string_type_p initializer.
4442 (unknown_language::is_string_type_p): New member function.
4443 (auto_language_data): Delete la_is_string_type_p initializer.
4444 (auto_language::is_string_type_p): New member function.
4445 * language.h (language_data): Delete la_is_string_type_p field.
4446 (language_defn::is_string_type_p): Declare new function.
4447 (default_is_string_type_p): Delete desclaration, move comment to
4448 definition.
4449 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
4450 moved to m2_language::is_string_type_p.
4451 (m2_language_data): Delete la_is_string_type_p initializer.
4452 (m2_language::is_string_type_p): New member function,
4453 implementation from m2_is_string_type_p.
4454 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
4455 initializer.
4456 * opencl-lang.c (opencl_language_data): Likewise.
4457 * p-lang.c (pascal_is_string_type_p): Delete function,
4458 implementation moved to pascal_language::is_string_type_p.
4459 (pascal_language_data): Delete la_is_string_type_p initializer.
4460 (pascal_language::is_string_type_p): New member function,
4461 implementation from pascal_is_string_type_p.
4462 * rust-lang.c (rust_is_string_type_p): Delete function,
4463 implementation moved to rust_language::is_string_type_p.
4464 (rust_language_data): Delete la_is_string_type_p initializer.
4465 (rust_language::is_string_type_p): New member function,
4466 implementation from rust_is_string_type_p.
4467 * valprint.c (val_print_scalar_or_string_type_p): Update call to
4468 is_string_type_p.
4469
4ffc13fb
AB
44702020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4471
4472 * ada-lang.c (ada_language_data): Delete la_print_typedef
4473 initializer.
4474 (ada_language::print_typedef): New member function.
4475 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
4476 (cplus_language_data): Likewise.
4477 (asm_language_data): Likewise.
4478 (minimal_language_data): Likewise.
4479 * d-lang.c (d_language_data): Likewise.
4480 * f-lang.c (f_language_data): Likewise.
4481 (f_language::print_typedef): New member function.
4482 * go-lang.c (go_language_data): Delete la_print_typedef
4483 initializer.
4484 * language.c (language_defn::print_typedef): Define member
4485 function.
4486 (unknown_language_data): Delete la_print_typedef initializer.
4487 (unknown_language::print_typedef): New member function.
4488 (auto_language_data): Delete la_print_typedef initializer.
4489 (auto_language::print_typedef): New member function.
4490 * language.h (language_data): Delete la_print_typedef field.
4491 (language_defn::print_typedef): Declare new member function.
4492 (LA_PRINT_TYPEDEF): Update call to print_typedef.
4493 (default_print_typedef): Delete declaration.
4494 * m2-lang.c (m2_language_data): Delete la_print_typedef
4495 initializer.
4496 (m2_language::print_typedef): New member function.
4497 * objc-lang.c (objc_language_data): Delete la_print_typedef
4498 initializer.
4499 * opencl-lang.c (opencl_language_data): Likewise.
4500 * p-lang.c (pascal_language_data): Likewise.
4501 (pascal_language::print_typedef): New member function.
4502 * rust-lang.c (rust_print_typedef): Delete function,
4503 implementation moved to rust_language::print_typedef.
4504 (rust_language): Delete la_print_typedef initializer.
4505 (rust_language::print_typedef): New member function,
4506 implementation from rust_print_typedef.
4507 * typeprint.c (default_print_typedef): Delete.
4508
d711ee67
AB
45092020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4510
4511 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
4512 (ada_language::printstr): New member function.
4513 * c-lang.c (c_language_data): Delete la_printstr initializer.
4514 (cplus_language_data): Likewise.
4515 (asm_language_data): Likewise.
4516 (minimal_language_data): Likewise.
4517 * d-lang.c (d_language_data): Likewise.
4518 * f-lang.c (f_printstr): Rename to f_language::printstr.
4519 (f_language_data): Delete la_printstr initializer.
4520 (f_language::printstr): New member function, implementation from
4521 f_printstr.
4522 * go-lang.c (go_language_data): Delete la_printstr initializer.
4523 * language.c (language_defn::printstr): Define new member
4524 function.
4525 (unk_lang_printstr): Delete.
4526 (unknown_language_data): Delete la_printstr initializer.
4527 (unknown_language::printstr): New member function.
4528 (auto_language_data): Delete la_printstr initializer.
4529 (auto_language::printstr): New member function.
4530 * language.h (language_data): Delete la_printstr field.
4531 (language_defn::printstr): Declare new member function.
4532 (LA_PRINT_STRING): Update call to printstr.
4533 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
4534 (m2_language_data): Delete la_printstr initializer.
4535 (m2_language::printstr): New member function, implementation from
4536 m2_printstr.
4537 * objc-lang.c (objc_language_data): Delete la_printstr
4538 initializer.
4539 * opencl-lang.c (opencl_language_data): Likewise.
4540 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
4541 (pascal_language_data): Delete la_printstr initializer.
4542 (pascal_language::printstr): New member function, implementation
4543 from pascal_printstr.
4544 * p-lang.h (pascal_printstr): Delete declaration.
4545 * rust-lang.c (rust_printstr): Update header comment.
4546 (rust_language_data): Delete la_printstr initializer.
4547 (rust_language::printstr): New member function.
4548
52b50f2c
AB
45492020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4550
4551 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
4552 (ada_language::printchar): New member function.
4553 * c-lang.c (c_language_data): Delete la_printchar initializer.
4554 (cplus_language_data): Likewise.
4555 (asm_language_data): Likewise.
4556 (minimal_language_data): Likewise.
4557 * d-lang.c (d_language_data): Likewise.
4558 * f-lang.c (f_printchar): Rename to f_language::printchar.
4559 (f_language_data): Delete la_printchar initializer.
4560 (f_language::printchar): New member function, implementation from
4561 f_printchar.
4562 * go-lang.c (go_language_data): Delete la_printchar initializer.
4563 * language.c (unk_lang_printchar): Delete.
4564 (language_defn::printchar): Define new member function.
4565 (unknown_language_data): Delete la_printchar initializer.
4566 (unknown_language::printchar): New member function.
4567 (auto_language_data): Delete la_printchar initializer.
4568 (auto_language::printchar): New member function.
4569 * language.h (language_data): Delete la_printchar field.
4570 (language_defn::printchar): Declare new member function.
4571 (LA_PRINT_CHAR): Update call to printchar.
4572 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
4573 (m2_language::printchar): New member function.
4574 * objc-lang.c (objc_language_data): Delete la_printchar
4575 initializer.
4576 * opencl-lang.c (opencl_language_data): Likewise.
4577 * p-lang.c (pascal_language_data): Delete la_printchar
4578 initializer.
4579 (pascal_language::printchar): New member function.
4580 * rust-lang.c (rust_printchar): Rename to
4581 rust_language::printchar.
4582 (rust_language_data): Delete la_printchar initializer.
4583 (rust_language::printchar): New member function, implementation
4584 from rust_printchar.
4585
ec8cec5b
AB
45862020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4587
4588 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
4589 (ada_language_data): Delete la_emitchar initializer.
4590 (ada_language::emitchar): New member function, implementation from
4591 emit_char.
4592 * c-lang.c (c_language_data): Delete la_emitchar initializer.
4593 (cplus_language_data): Likewise.
4594 (asm_language_data): Likewise.
4595 (minimal_language_data): Likewise.
4596 * d-lang.c (d_language_data): Likewise.
4597 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
4598 (f_language_data): Delete la_emitchar initializer.
4599 (f_language::emitchar): New member function, implementation from
4600 f_emit_char.
4601 * go-lang.c (go_language_data): Delete la_emitchar initializer.
4602 * language.c (unk_lang_emit_char): Delete.
4603 (language_defn::emitchar): New member function definition.
4604 (unknown_language_data): Delete la_emitchar initializer.
4605 (unknown_language::emitchar): New member function.
4606 (auto_language_data): Delete la_emitchar initializer.
4607 (auto_language::emitchar): New member function.
4608 * language.h (language_data): Delete la_emitchar field.
4609 (language_defn::emitchar): New member field declaration.
4610 (LA_EMIT_CHAR): Update call to emitchar.
4611 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
4612 (m2_language_data): Delete la_emitchar initializer.
4613 (m2_language::emitchar): New member function, implementation from
4614 m2_emit_char.
4615 * objc-lang.c (objc_language_data): Delete la_emitchar
4616 initializer.
4617 * opencl-lang.c (opencl_language_data): Likewise.
4618 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
4619 (pascal_language_data): Delete la_emitchar initializer.
4620 (pascal_language::emitchar): New member function, implementation
4621 from pascal_emit_char.
4622 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
4623 (rust_language_data): Delete la_emitchar initializer.
4624 (rust_language::emitchar): New member function, implementation
4625 from rust_emitchar.
4626
1bf9c363
AB
46272020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4628
4629 * ada-lang.c (resolve): Rename to ada_language::post_parser.
4630 (ada_language_data): Delete la_post_parser initializer.
4631 (ada_language::post_parser): New member function.
4632 * c-lang.c (c_language_data): Delete la_post_parser initializer.
4633 (cplus_language_data): Likewise.
4634 (asm_language_data): Likewise.
4635 (minimal_language_data): Likewise.
4636 * d-lang.c (d_language_data): Likewise.
4637 * f-lang.c (f_language_data): Likewise.
4638 * go-lang.c (go_language_data): Likewise.
4639 * language.c (unknown_language_data): Likewise.
4640 (auto_language_data): Likewise.
4641 * language.h (language_data): Delete la_post_parser field.
4642 (language_defn::post_parser): New member function.
4643 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
4644 * objc-lang.c (objc_language_data): Likewise.
4645 * opencl-lang.c (opencl_language_data): Likewise.
4646 * p-lang.c (pascal_language_data): Likewise.
4647 * parse.c (parse_exp_in_context): Update call to post_parser.
4648 (null_post_parser): Delete definition.
4649 * parser-defs.h (null_post_parser): Delete declaration.
4650 * rust-lang.c (rust_language_data): Delete la_post_parser
4651 initializer.
4652
87afa652
AB
46532020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4654
4655 * ada-lang.c (parse): Rename to ada_language::parser.
4656 (ada_language_data): Delete la_parser initializer.
4657 (ada_language::parser): New member function, implementation from
4658 parse.
4659 * c-lang.c (c_language_data): Delete la_parser initializer.
4660 (cplus_language_data): Likewise.
4661 (asm_language_data): Likewise.
4662 (minimal_language_data): Likewise.
4663 * d-lang.c (d_language_data): Likewise.
4664 (d_language::parser): New member function.
4665 * f-lang.c (f_language_data): Delete la_parser initializer.
4666 (f_language::parser): New member function.
4667 * go-lang.c (go_language_data): Delete la_parser initializer.
4668 (go_language::parser): New member function.
4669 * language.c (unk_lang_parser): Delete.
4670 (language_defn::parser): Define new member function.
4671 (unknown_language_data): Delete la_parser initializer.
4672 (unknown_language::parser): New member function.
4673 (auto_language_data): Delete la_parser initializer.
4674 (auto_language::parser): New member function.
4675 * language.h (language_data): Delete la_parser field.
4676 (language_defn::parser): Declare new member function.
4677 * m2-lang.c (m2_language_data): Delete la_parser initializer.
4678 (m2_language::parser): New member function.
4679 * objc-lang.c (objc_language_data): Delete la_parser initializer.
4680 * opencl-lang.c (opencl_language_data): Likewise.
4681 * p-lang.c (pascal_language_data): Likewise.
4682 (pascal_language::parser): New member function.
4683 * parse.c (parse_exp_in_context): Update call to parser.
4684 * rust-lang.c (rust_language_data): Delete la_parser initializer.
4685 (rust_language::parser): New member function.
4686
37825800
AB
46872020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4688
4689 * top.c (print_gdb_configuration): Print --with-python-libdir
4690 configuration value.
4691
5b860c93
PW
46922020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4693
4694 * NEWS: Mention change to the alias command.
4695
cf00cd6f
PW
46962020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4697
4698 * cli/cli-cmds.c (lookup_cmd_for_default_args)
4699 (alias_command_completer)
4700 (make_alias_options_def_group): New functions.
4701 (alias_opts, alias_option_defs): New struct and array.
4702 (alias_usage_error): Update usage.
4703 (alias_command): Handles optional DEFAULT-ARGS... arguments.
4704 Use option framework.
4705 (_initialize_cli_cmds): Update alias command help.
4706 Update aliases command help.
4707 (show_user):
4708 Add NULL for new default_args lookup_cmd argument.
4709 (valid_command_p): Rename to validate_aliased_command.
4710 Add NULL for new default_args lookup_cmd argument. Verify that the
4711 aliased_command has no default args.
4712 * cli/cli-decode.c (help_cmd): Show aliases definitions.
4713 (lookup_cmd_1, lookup_cmd): New argument default_args.
4714 (add_alias_cmd):
4715 Add NULL for new default_args lookup_cmd argument.
4716 (print_help_for_command): Show default args under the layout
4717 alias some_alias = some_aliased_cmd some_alias_default_arg.
4718 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
4719 xfree default_args in destructor.
4720 * cli/cli-script.c (process_next_line, do_define_command):
4721 Add NULL for new default_args lookup_cmd argument.
4722 * command.h: Declare new default_args argument in lookup_cmd
4723 and lookup_cmd_1.
4724 * completer.c (complete_line_internal_1):
4725 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4726 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
4727 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
4728 Likewise.
4729 * infcmd.c (_initialize_infcmd): Likewise.
4730 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
4731 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
4732 * python/py-param.c (add_setshow_generic): Likewise.
4733 * remote.c (_initialize_remote): Likewise.
4734 * top.c (execute_command): Prepend default_args if command has some.
4735 (set_verbose):
4736 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4737 * tracepoint.c (validate_actionline, encode_actions_1):
4738 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4739
bd920864
TBA
47402020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4741
4742 * jit.c (jit_read_descriptor): Use bool as the return type.
4743 (jit_breakpoint_re_set_internal): Use bool as the return type.
4744 Invert the return value logic; return true if the jit breakpoint
4745 has been successfully initialized.
4746 (jit_inferior_init): Update the call to
4747 jit_breakpoint_re_set_internal.
4748
f8098322
PA
47492020-06-22 Pedro Alves <palves@redhat.com>
4750
4751 PR gdb/25939
4752 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
4753 Use the current inferior instead. Don't return
4754 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
4755 wait again.
4756 * sol-thread.c (sol_thread_target::wait): Don't reference
4757 inferior_ptid.
4758 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
4759 (sol_update_thread_list_callback): Use the current inferior's pid
4760 instead of inferior_ptid.
4761
196535a6
RO
47622020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4763
4764 * procfs.c: Cleanup many comments.
4765
4766 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
4767 (AFTER_WATCHFLAG): Replace by value.
4768
4769 (MAIN_PROC_NAME_FORMAT): Inline ...
4770 (create_procinfo): ... here.
4771
4772 (procfs_debug_inferior): Remove SYS_exec handling.
4773 (syscall_is_exec): Likewise.
4774 (procfs_set_exec_trap): Likewise.
4775
4776 (syscall_is_lwp_exit): Inline in callers.
4777 (syscall_is_exit): Likewise.
4778 (syscall_is_exec): Likewise.
4779 (syscall_is_lwp_create): Likewise.
4780
4781 (invalidate_cache): Remove #if 0 code.
4782
4783 (make_signal_thread_runnable): Remove.
4784 (procfs_target::resume): Remove #if 0 code.
4785
cf6f3e86
RO
47862020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4787
4788 PR gdb/25939
4789 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
4790 call ...
4791 (procfs_target::create_inferior): ... here.
4792
48e9cc84
PW
47932020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4794
4795 * exec.c (validate_exec_file): Ensure the build-id is up to
4796 date by calling reopen_exec_file (that checks file timestamp
4797 to decide to re-read the file).
4798
3922b302
PA
47992020-06-18 Pedro Alves <palves@redhat.com>
4800
4801 PR gdb/25412
4802 * gdbthread.h (delete_thread, delete_thread_silent)
4803 (find_thread_ptid): Update comments.
4804 * thread.c (current_thread_): New global.
4805 (is_current_thread): Move higher, and reimplement.
4806 (inferior_thread): Reimplement.
4807 (set_thread_exited): Use bool. Add assertions.
4808 (add_thread_silent): Simplify thread-reuse handling by always
4809 calling delete_thread.
4810 (delete_thread): Remove intro comment.
4811 (find_thread_ptid): Skip exited threads.
4812 (switch_to_thread_no_regs): Write to current_thread_.
4813 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
4814 INFERIOR_PTID. Clear current_thread_.
4815
6dbdab44
PA
48162020-06-18 Pedro Alves <palves@redhat.com>
4817
4818 * aix-thread.c (pd_update): Use switch_to_thread.
4819
2da4b788
PA
48202020-06-18 Pedro Alves <palves@redhat.com>
4821
4822 * ravenscar-thread.c (ravenscar_thread_target): Update.
4823 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
4824 (ravenscar_thread_target::add_active_thread): ... this. Don't
4825 set m_base_ptid here. Update to avoid referencing inferior_ptid.
4826 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
4827
50838d1b
PA
48282020-06-18 Pedro Alves <palves@redhat.com>
4829
4830 * nat/windows-nat.c (current_windows_thread): Remove.
4831 * nat/windows-nat.h (current_windows_thread): Remove.
4832 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
4833 Adjust.
4834 (display_selectors): Adjust to fetch the current
4835 windows_thread_info based on inferior_ptid.
4836 (fake_create_process): No longer write to current_windows_thread.
4837 (windows_nat_target::get_windows_debug_event):
4838 Don't set inferior_ptid or current_windows_thread.
4839 (windows_nat_target::wait): Adjust to not rely on
4840 current_windows_thread.
4841 (do_initial_windows_stuff): Now a method of windows_nat_target.
4842 Switch to the last_ptid thread.
4843 (windows_nat_target::attach): Adjust.
4844 (windows_nat_target::detach): Use switch_to_no_thread instead of
4845 writing to inferior_ptid directly.
4846 (windows_nat_target::create_inferior): Adjust.
4847
31ce04e9
PA
48482020-06-18 Pedro Alves <palves@redhat.com>
4849
4850 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
4851
1ee1a363
PA
48522020-06-18 Pedro Alves <palves@redhat.com>
4853
4854 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
4855 after creating it, instead of writing to inferior_ptid. Don't
4856 write to inferior_ptid.
4857
6d350754
PA
48582020-06-18 Pedro Alves <palves@redhat.com>
4859
4860 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
4861
5d971d48
PA
48622020-06-18 Pedro Alves <palves@redhat.com>
4863
4864 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
4865 it, instead of writing to inferior_ptid.
4866
86e57d1b
PA
48672020-06-18 Pedro Alves <palves@redhat.com>
4868
4869 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
4870 to inferior_ptid.
4871
f2e1c129
PA
48722020-06-18 Pedro Alves <palves@redhat.com>
4873
4874 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
4875 instead of writing to inferior_ptid directly.
4876
60db1b85
PA
48772020-06-18 Pedro Alves <palves@redhat.com>
4878
4879 * corelow.c (core_target::close): Use switch_to_no_thread instead
4880 of writing to inferior_ptid directly.
4881 (add_to_thread_list, core_target_open): Use switch_to_thread
4882 instead of writing to inferior_ptid directly.
4883
fe7d6a8d
PA
48842020-06-18 Pedro Alves <palves@redhat.com>
4885
4886 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
4887 inferior_ptid.
4888 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
4889 inferior_ptid.
4890 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
4891 inferior_ptid directly.
4892 (darwin_nat_target::init_thread_list): Switch to thread, instead
4893 of writing to inferior_ptid.
4894 (darwin_nat_target::attach): Don't write to inferior_ptid.
4895 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
4896
975f8708
PA
48972020-06-18 Pedro Alves <palves@redhat.com>
4898
4899 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
4900 thread.
4901 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
4902 Instead use switch_to_thread.
4903 (gnu_nat_target::detach): Use switch_to_no_thread
4904 instead of writing to inferior_ptid directly. Used passed-in
4905 inferior instead of looking up the inferior by pid.
4906
1a204730
PA
49072020-06-18 Pedro Alves <palves@redhat.com>
4908
4909 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
4910 inferior_ptid.
4911
ebe84f23
PA
49122020-06-18 Pedro Alves <palves@redhat.com>
4913
4914 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
4915 inferior_ptid.
4916 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
4917 thread.
4918 (nto_procfs_target::detach): Avoid referencing
4919 inferior_ptid. Use switch_to_no_thread instead of writing to
4920 inferior_ptid directly.
4921 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
4922 instead of writing to inferior_ptid directly.
4923 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
4924 to thread.
4925
191f02e5
PA
49262020-06-18 Pedro Alves <palves@redhat.com>
4927
4928 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
4929 after creating it, instead of writing to inferior_ptid.
4930 (gdbsim_target_open): Use switch_to_no_thread instead of writing
4931 to inferior_ptid directly.
4932 (gdbsim_target::wait): Don't write to inferior_ptid.
4933
0ac55310
PA
49342020-06-18 Pedro Alves <palves@redhat.com>
4935
4936 * remote.c (remote_target::remote_notice_new_inferior): Use
4937 switch_to_thread instead of writing to inferior_ptid directly.
4938 (remote_target::add_current_inferior_and_thread): Use
4939 switch_to_no_thread instead of writing to inferior_ptid directly.
4940 (extended_remote_target::attach): Use switch_to_inferior_no_thread
4941 and switch_to_thread instead of using set_current_inferior or
4942 writing to inferior_ptid directly.
4943
5233f39b
PA
49442020-06-18 Pedro Alves <palves@redhat.com>
4945
4946 * tracectf.c (ctf_target_open): Switch to added thread instead of
4947 writing to inferior_ptid directly.
4948 (ctf_target::close): Use switch_to_no_thread instead of writing to
4949 inferior_ptid directly.
4950
087e161b
PA
49512020-06-18 Pedro Alves <palves@redhat.com>
4952
4953 * tracefile-tfile.c (tfile_target_open): Don't write to
4954 inferior_ptid directly, instead switch to added thread.
4955 (tfile_target::close): Use switch_to_no_thread instead of writing
4956 to inferior_ptid directly.
4957
7fb43e53
PA
49582020-06-18 Pedro Alves <palves@redhat.com>
4959
4960 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
4961 (procfs_target::detach): Use switch_to_no_thread
4962 instead of writing to inferior_ptid directly.
4963 (do_attach): Change return type to void. Switch to the added
4964 thread.
4965 (procfs_target::create_inferior): Switch to the added thread.
4966 (procfs_do_thread_registers): Don't write to inferior_ptid.
4967
18493a00
PA
49682020-06-18 Pedro Alves <palves@redhat.com>
4969
4970 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
4971 of writing to inferior_ptid.
4972 (scoped_restore_exited_inferior): Delete.
4973 (handle_vfork_child_exec_or_exit): Simplify using
4974 scoped_restore_current_pspace_and_thread. Use switch_to_thread
4975 instead of writing to inferior_ptid.
4976 (THREAD_STOPPED_BY): Delete.
4977 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
4978 (thread_stopped_by_hw_breakpoint): Delete.
4979 (save_waitstatus): Use
4980 scoped_restore_current_thread+switch_to_thread, and call
4981 target_stopped_by_watchpoint instead of
4982 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
4983 instead of thread_stopped_by_sw_breakpoint, and
4984 target_stopped_by_hw_breakpoint instead of
4985 thread_stopped_by_hw_breakpoint.
4986 (handle_inferior_event)
4987 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
4988 inferior_ptid directly, nor
4989 set_current_inferior/set_current_program_space. Use
4990 switch_to_thread / switch_to_inferior_no_thread instead.
4991
a0776b13
PA
49922020-06-18 Pedro Alves <palves@redhat.com>
4993
4994 * target.c (generic_mourn_inferior): Use switch_to_no_thread
4995 instead of writing to inferior_ptid.
4996
6155c136
PA
49972020-06-18 Pedro Alves <palves@redhat.com>
4998
4999 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
5000 added thread.
5001 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
5002 to the added thread.
5003 (inf_ptrace_target::detach_success): Use switch_to_no_thread
5004 instead of writing to inferior_ptid.
5005
c5316fc6
PA
50062020-06-18 Pedro Alves <palves@redhat.com>
5007
5008 * gdbarch-selftests.c: Include "progspace-and-thread.h".
5009 (register_to_value_test): Mock a program_space too. Heap-allocate
5010 the address space. Don't write to inferior_ptid. Use
5011 switch_to_thread instead.
5012
8df01799
PA
50132020-06-18 Pedro Alves <palves@redhat.com>
5014
5015 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
5016 Delete.
5017 (find_signalled_thread()): New, factored out from
5018 linux_make_corefile_notes and adjusted to handle exited threads.
5019 (linux_make_corefile_notes): Adjust to use the new
5020 find_signalled_thread.
5021
41792d68
PA
50222020-06-18 Pedro Alves <palves@redhat.com>
5023
5024 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
5025 of saving/restoring inferior_ptid.
5026
612f258a
TT
50272020-06-17 Tom Tromey <tom@tromey.com>
5028
5029 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
5030 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
5031 declare.
5032 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
5033
efb763a5
SM
50342020-06-15 Simon Marchi <simon.marchi@efficios.com>
5035
5036 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
5037 of partial symtabs.
5038
2951f6c0
SM
50392020-06-17 Simon Marchi <simon.marchi@efficios.com>
5040
5041 * regformats/reg-arm.dat: Remove.
5042 * regformats/reg-bfin.dat: Remove.
5043 * regformats/reg-cris.dat: Remove.
5044 * regformats/reg-crisv32.dat: Remove.
5045 * regformats/reg-m32r.dat: Remove.
5046 * regformats/reg-tilegx.dat: Remove.
5047 * regformats/reg-tilegx32.dat: Remove.
5048
7d458ea5
SM
50492020-06-17 Simon Marchi <simon.marchi@efficios.com>
5050
5051 * features/Makefile (WHICH): Remove arm files.
5052 * regformats/arm/arm-with-iwmmxt.dat: Remove.
5053 * regformats/arm/arm-with-neon.dat: Remove.
5054 * regformats/arm/arm-with-vfpv2.dat: Remove.
5055 * regformats/arm/arm-with-vfpv3.dat: Remove.
5056
3af96c0d
SM
50572020-06-17 Simon Marchi <simon.marchi@efficios.com>
5058
5059 * features/Makefile (XMLTOC): Remove rx.xml.
5060
b25e22fd
PA
50612020-06-17 Pedro Alves <palves@redhat.com>
5062
5063 * gdbthread.h (thread_control_state) <trap_expected> Update
5064 comments.
5065
a78a19b1
AB
50662020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5067
5068 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
5069 ada_language::lookup_symbol_nonlocal.
5070 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
5071 (ada_language::lookup_symbol_nonlocal): New member function,
5072 implementation from ada_lookup_symbol_nonlocal.
5073 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
5074 initializer.
5075 (cplus_language_data): Delete la_lookup_symbol_nonlocal
5076 initializer.
5077 (cplus_language::lookup_symbol_nonlocal): New member function.
5078 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
5079 (minimal_language_data) Likewise.
5080 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
5081 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
5082 initializer.
5083 (d_language::lookup_symbol_nonlocal): New member function.
5084 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
5085 initializer.
5086 (f_language::lookup_symbol_nonlocal): New member function.
5087 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
5088 initializer.
5089 * language.c (unknown_language_data): Likewise.
5090 (auto_language_data): Likewise.
5091 * language.h (language_data): Delete la_lookup_symbol_nonlocal
5092 field.
5093 (language_defn::lookup_symbol_nonlocal): New member function.
5094 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
5095 initializer.
5096 * objc-lang.c (objc_language_data): Likewise.
5097 * opencl-lang.c (opencl_language_data): Likewise.
5098 * p-lang.c (pascal_language_data): Likewise.
5099 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
5100 rust_language::lookup_symbol_nonlocal.
5101 (rust_language_data): Delete la_lookup_symbol_nonlocal
5102 initializer.
5103 (rust_language::lookup_symbol_nonlocal): New member function,
5104 implementation from rust_lookup_symbol_nonlocal.
5105 * symtab.c (lookup_symbol_aux): Update call to
5106 lookup_symbol_nonlocal.
5107 (basic_lookup_symbol_nonlocal): Rename to...
5108 (language_defn::lookup_symbol_nonlocal): ...this, and update
5109 header comment. Remove language_defn parameter, and replace with
5110 uses of `this'.
5111 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
5112
ebe2334e
AB
51132020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5114
5115 * ada-lang.c (ada_language_data): Delete la_value_print_inner
5116 initializer.
5117 (ada_language::value_print_inner): New member function.
5118 * c-lang.c (c_language_data): Delete la_value_print_inner
5119 initializer.
5120 (cplus_language_data): Likewise.
5121 (asm_language_data): Likewise.
5122 (minimal_language_data): Likewise.
5123 * d-lang.c (d_language_data): Likewise.
5124 (d_language::value_print_inner): New member function.
5125 * f-lang.c (f_language_data): Delete la_value_print_inner
5126 initializer.
5127 (f_language::value_print_inner): New member function.
5128 * f-lang.h (f_value_print_innner): Rename to...
5129 (f_value_print_inner): ...this (note spelling of 'inner').
5130 * f-valprint.c (f_value_print_innner): Rename to...
5131 (f_value_print_inner): ...this (note spelling of 'inner').
5132 * go-lang.c (go_language_data): Delete la_value_print_inner
5133 initializer.
5134 (go_language::value_print_inner): New member function.
5135 * language.c (language_defn::value_print_inner): Define new member
5136 function.
5137 (unk_lang_value_print_inner): Delete.
5138 (unknown_language_data): Delete la_value_print_inner initializer.
5139 (unknown_language::value_print_inner): New member function.
5140 (auto_language_data): Delete la_value_print_inner initializer.
5141 (auto_language::value_print_inner): New member function.
5142 * language.h (language_data): Delete la_value_print_inner field.
5143 (language_defn::value_print_inner): Delcare new member function.
5144 * m2-lang.c (m2_language_data): Delete la_value_print_inner
5145 initializer.
5146 (m2_language::value_print_inner): New member function.
5147 * objc-lang.c (objc_language_data): Delete la_value_print_inner
5148 initializer.
5149 * opencl-lang.c (opencl_language_data): Likewise.
5150 * p-lang.c (pascal_language_data): Likewise.
5151 (pascal_language::value_print_inner): New member function.
5152 * rust-lang.c (rust_language_data): Delete la_value_print_inner
5153 initializer.
5154 (rust_language::value_print_inner): New member function.
5155 * valprint.c (do_val_print): Update call to value_print_inner.
5156
a1d1fa3e
AB
51572020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5158
5159 * ada-lang.c (ada_language_data): Delete la_value_print
5160 initializer.
5161 (ada_language::value_print): New member function.
5162 * c-lang.c (c_language_data): Delete la_value_print initializer.
5163 (cplus_language_data): Likewise.
5164 (asm_language_data): Likewise.
5165 (minimal_language_data): Likewise.
5166 * d-lang.c (d_language_data): Likewise.
5167 * f-lang.c (f_language_data): Likewise.
5168 * go-lang.c (go_language_data): Likewise.
5169 * language.c (unk_lang_value_print): Delete.
5170 (language_defn::value_print): Define new member function.
5171 (unknown_language_data): Delete la_value_print initializer.
5172 (unknown_language::value_print): New member function.
5173 (auto_language_data): Delete la_value_print initializer.
5174 (auto_language::value_print): New member function.
5175 * language.h (language_data): Delete la_value_print field.
5176 (language_defn::value_print): Declare new member function.
5177 (LA_VALUE_PRINT): Update call to value_print.
5178 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
5179 * objc-lang.c (objc_language_data): Likewise.
5180 * opencl-lang.c (opencl_language_data): Likewise.
5181 * p-lang.c (pascal_language_data): Likewise.
5182 (pascal_language::value_print): New member function.
5183 * rust-lang.c (rust_language_data): Delete la_value_print
5184 initializer.
5185
f16a9f57
AB
51862020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5187
5188 * ada-lang.c (ada_watch_location_expression): Rename to
5189 ada_language::watch_location_expression.
5190 (ada_language_data): Delete la_watch_location_expression
5191 initializer.
5192 (ada_language::watch_location_expression): New member function,
5193 implementation from ada_watch_location_expression.
5194 * breakpoint.c (watch_command_1): Update call to
5195 watch_location_expression.
5196 * c-lang.c (c_watch_location_expression): Rename to
5197 language_defn::watch_location_expression.
5198 (c_language_data): Delete la_watch_location_expression
5199 initializer.
5200 (cplus_language_data): Likewise.
5201 (asm_language_data): Likewise.
5202 (minimal_language_data): Likewise.
5203 * c-lang.h (c_watch_location_expression): Delete declaration.
5204 * d-lang.c (d_language_data): Delete la_watch_location_expression
5205 initializer.
5206 * f-lang.c (f_language_data): Likewise.
5207 * go-lang.c (go_language_data): Likewise.
5208 * language.c (language_defn::watch_location_expression): Member
5209 function implementation from c_watch_location_expression.
5210 (unknown_language_data): Delete la_watch_location_expression
5211 initializer.
5212 (auto_language_data): Likewise.
5213 * language.h (language_data): Delete la_watch_location_expression
5214 field.
5215 (language_defn::watch_location_expression): Declare new member
5216 function.
5217 * m2-lang.c (m2_language_data): Delete
5218 la_watch_location_expression initializer.
5219 * objc-lang.c (objc_language_data): Likewise.
5220 * opencl-lang.c (opencl_language_data): Likewise.
5221 * p-lang.c (pascal_language_data): Likewise.
5222 * rust-lang.c (rust_watch_location_expression): Rename to
5223 rust_language::watch_location_expression.
5224 (rust_language_data): Delete la_watch_location_expression
5225 initializer.
5226 (rust_language::watch_location_expression): New member function,
5227 implementation from rust_watch_location_expression.
5228
7e56227d
AB
52292020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5230
5231 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
5232 ada_language::collect_symbol_completion_matches.
5233 (ada_language_data): Delete la_collect_symbol_completion_matches
5234 initializer.
5235 (ada_language::collect_symbol_completion_matches): New member
5236 function, implementation from
5237 ada_collect_symbol_completion_matches.
5238 * c-lang.c (c_language_data): Delete
5239 la_collect_symbol_completion_matches initializer.
5240 (cplus_language_data): Likewise.
5241 (asm_language_data): Likewise.
5242 (minimal_language_data): Likewise.
5243 * d-lang.c (d_language_data): Likewise.
5244 * f-lang.c (f_collect_symbol_completion_matches): Rename to
5245 f_language::collect_symbol_completion_matches.
5246 (f_language_data): Delete la_collect_symbol_completion_matches
5247 initializer.
5248 (f_language::collect_symbol_completion_matches) New member
5249 function, implementation from f_collect_symbol_completion_matches.
5250 * go-lang.c (go_language_data): Delete
5251 la_collect_symbol_completion_matches initializer.
5252 * language.c (unknown_language_data): Likewise.
5253 (auto_language_data): Likewise.
5254 * language.h (language_data): Delete
5255 la_collect_symbol_completion_matches field.
5256 (language_defn::collect_symbol_completion_matches): New member
5257 function.
5258 * m2-lang.c (m2_language_data): Delete
5259 la_collect_symbol_completion_matches initializer.
5260 * objc-lang.c (objc_language_data): Likewise.
5261 * opencl-lang.c (opencl_language_data): Likewise.
5262 * p-lang.c (pascal_language_data): Likewise.
5263 * rust-lang.c (rust_language_data): Likewise.
5264 * symtab.c (default_collect_symbol_completion_matches): Delete.
5265 (collect_symbol_completion_matches): Update call to
5266 collect_symbol_completion_matches.
5267 (collect_symbol_completion_matches_type): Likewise.
5268 * symtab.h (default_collect_symbol_completion_matches): Delete
5269 declaration.
5270
53fc67f8
AB
52712020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5272
5273 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
5274 (ada_language_data): Delete la_word_break_characters initializer.
5275 (ada_language::word_break_characters): New member function.
5276 * c-lang.c (c_language_data): Delete la_word_break_characters
5277 initializer.
5278 (cplus_language_data): Likewise.
5279 (asm_language_data): Likewise.
5280 (minimal_language_data): Likewise.
5281 * completer.c: Update global comment.
5282 (advance_to_expression_complete_word_point): Update call to
5283 word_break_characters.
5284 (complete_files_symbols): Likewise.
5285 (complete_line_internal_1): Likewise.
5286 (default_completer_handle_brkchars): Likewise.
5287 (skip_quoted_chars): Likewise.
5288 * d-lang.c (d_language_data): Delete la_word_break_characters
5289 initializer.
5290 * f-lang.c (f_word_break_characters): Delete.
5291 (f_language_data): Delete la_word_break_characters initializer.
5292 (f_language::word_break_characters): New member function.
5293 * go-lang.c (go_language_data): Delete la_word_break_characters
5294 initializer.
5295 * language.c (unknown_language_data): Likewise.
5296 (auto_language_data): Likewise.
5297 * language.h (default_word_break_characters): Move declaration to
5298 earlier in the file.
5299 (language_data): Delete la_word_break_characters field.
5300 (language_defn::word_break_characters): New member function.
5301 * m2-lang.c (m2_language_data): Delete la_word_break_characters
5302 initializer.
5303 * objc-lang.c (objc_language_data): Likewise.
5304 * opencl-lang.c (opencl_language_data): Likewise.
5305 * p-lang.c (pascal_language_data): Likewise.
5306 * rust-lang.c (rust_language_data): Likewise.
5307
c9debfb9
AB
53082020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5309
5310 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
5311 (ada_language_data): Delete la_get_symbol_name_matcher
5312 initializer.
5313 (language_defn::get_symbol_name_matcher_inner): New member
5314 function.
5315 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
5316 initializer.
5317 (cplus_language_data): Likewise.
5318 (cplus_language::get_symbol_name_matcher_inner): New member
5319 function.
5320 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
5321 (minimal_language_data): Likewise.
5322 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
5323 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
5324 initializer.
5325 * dictionary.c (iter_match_first_hashed): Update call to
5326 get_symbol_name_matcher.
5327 (iter_match_next_hashed): Likewise.
5328 (iter_match_next_linear): Likewise.
5329 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
5330 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
5331 initializer.
5332 (f_language::get_symbol_name_matcher_inner): New member function.
5333 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
5334 initializer.
5335 * language.c (default_symbol_name_matcher): Update header comment,
5336 make static.
5337 (language_defn::get_symbol_name_matcher): New definition.
5338 (language_defn::get_symbol_name_matcher_inner): Likewise.
5339 (get_symbol_name_matcher): Delete.
5340 (unknown_language_data): Delete la_get_symbol_name_matcher
5341 initializer.
5342 (auto_language_data): Likewise.
5343 * language.h (language_data): Delete la_get_symbol_name_matcher
5344 field.
5345 (language_defn::get_symbol_name_matcher): New member function.
5346 (language_defn::get_symbol_name_matcher_inner): Likewise.
5347 (default_symbol_name_matcher): Delete declaration.
5348 * linespec.c (find_methods): Update call to
5349 get_symbol_name_matcher.
5350 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
5351 initializer.
5352 * minsyms.c (lookup_minimal_symbol): Update call to
5353 get_symbol_name_matcher.
5354 (iterate_over_minimal_symbols): Likewise.
5355 * objc-lang.c (objc_language_data): Delete
5356 la_get_symbol_name_matcher initializer.
5357 * opencl-lang.c (opencl_language_data): Likewise.
5358 * p-lang.c (pascal_language_data): Likewise.
5359 * psymtab.c (psymbol_name_matches): Update call to
5360 get_symbol_name_matcher.
5361 * rust-lang.c (rust_language_data): Delete
5362 la_get_symbol_name_matcher initializer.
5363 * symtab.c (symbol_matches_search_name): Update call to
5364 get_symbol_name_matcher.
5365 (compare_symbol_name): Likewise.
5366
9a49ad8c
AB
53672020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5368
5369 * ada-lang.c (ada_language_data): Delete la_compute_program
5370 initializer.
5371 * c-lang.c (c_language_data): Likewise.
5372 (c_language::compute_program): New member function.
5373 (cplus_language_data): Delete la_compute_program initializer.
5374 (cplus_language::compute_program): New member function.
5375 (asm_language_data): Delete la_compute_program initializer.
5376 (minimal_language_data): Likewise.
5377 * c-lang.h (c_compute_program): Update comment.
5378 (cplus_compute_program): Likewise.
5379 * compile/compile-c-support.c (c_compute_program): Likewise.
5380 (cplus_compute_program): Likewise.
5381 * compile/compile.c (compile_to_object): Update call to
5382 la_compute_program.
5383 * d-lang.c (d_language_data): Delete la_compute_program
5384 initializer.
5385 * f-lang.c (f_language_data): Likewise.
5386 * go-lang.c (go_language_data): Likewise.
5387 * language.c (unknown_language_data): Likewise.
5388 (auto_language_data): Likewise.
5389 * language.h (language_data): Delete la_compute_program field.
5390 (language_defn::compute_program): New member function.
5391 * m2-lang.c (m2_language_data): Delete la_compute_program
5392 initializer.
5393 * objc-lang.c (objc_language_data): Likewise.
5394 * opencl-lang.c (opencl_language_data): Likewise.
5395 * p-lang.c (pascal_language_data): Likewise.
5396 * rust-lang.c (rust_language_data): Likewise.
5397
eff93b4d
AB
53982020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5399
5400 * ada-lang.c (ada_language_data) Delete
5401 la_class_name_from_physname initializer.
5402 * c-lang.c (c_language_data): Likewise.
5403 (cplus_language_data): Likewise.
5404 (cplus_language::class_name_from_physname): New member function.
5405 (asm_language_data): Delete la_class_name_from_physname
5406 initializer.
5407 (minimal_language_data): Likewise.
5408 * d-lang.c (d_language_data): Likewise.
5409 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
5410 method on language_defn class.
5411 (guess_full_die_structure_name): Likewise.
5412 * f-lang.c (f_language_data): Delete la_class_name_from_physname
5413 initializer.
5414 * go-lang.c (go_language_data): Likewise.
5415 * language.c (language_class_name_from_physname): Delete.
5416 (unk_lang_class_name): Delete.
5417 (unknown_language_data): Delete la_class_name_from_physname
5418 initializer.
5419 (auto_language_data): Likewise.
5420 * language.h (language_data): Delete la_class_name_from_physname
5421 field.
5422 (language_defn::class_name_from_physname): New function.
5423 (language_class_name_from_physname): Delete declaration.
5424 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
5425 initializer.
5426 * objc-lang.c (objc_language_data): Likewise.
5427 * opencl-lang.c (opencl_language_data): Likewise.
5428 * p-lang.c (pascal_language_data): Likewise.
5429 * rust-lang.c (rust_language_data): Likewise.
5430
de543742
TT
54312020-06-16 Tom Tromey <tom@tromey.com>
5432
5433 * tui/tui-data.h (STATUS_NAME): New macro.
5434 * tui/tui-layout.c (tui_remove_some_windows)
5435 (initialize_known_windows, tui_register_window)
5436 (tui_layout_split::remove_windows, initialize_layouts)
5437 (tui_new_layout_command): Don't use hard-coded window names.
5438
a350efd4
TT
54392020-06-16 Tom Tromey <tom@tromey.com>
5440
5441 PR tui/25348:
5442 * tui/tui.c (tui_ensure_readline_initialized): Rename from
5443 tui_initialize_readline. Only run once. Call rl_initialize.
5444 * tui/tui.h (tui_ensure_readline_initialized): Rename from
5445 tui_initialize_readline.
5446 * tui/tui-io.c (tui_setup_io): Call
5447 tui_ensure_readline_initialized.
5448 * tui/tui-interp.c (tui_interp::init): Update.
5449
39ec0490
TT
54502020-06-16 Tom Tromey <tom@tromey.com>
5451
5452 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
5453 Also preserve the status window.
5454
d2d1ea20
TT
54552020-06-16 Tom Tromey <tom@tromey.com>
5456
5457 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
5458 where m_window==nullptr.
5459
66920317
TT
54602020-06-15 Tom Tromey <tromey@adacore.com>
5461
5462 * windows-nat.c (windows_nat::handle_output_debug_string):
5463 Update.
5464 (windows_nat::handle_ms_vc_exception): Update.
5465 * target.h (target_read_string): Change API.
5466 * target.c (target_read_string): Change API.
5467 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
5468 Update.
5469 * solib-frv.c (frv_current_sos): Update.
5470 * solib-dsbt.c (dsbt_current_sos): Update.
5471 * solib-darwin.c (darwin_current_sos): Update.
5472 * linux-thread-db.c (inferior_has_bug): Update.
5473 * expprint.c (print_subexp_standard): Update.
5474 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
5475 (ada_exception_message_1): Update.
5476
a5d871dd
TT
54772020-06-15 Tom Tromey <tromey@adacore.com>
5478
5479 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
5480
670e35fa
TT
54812020-06-15 Tom Tromey <tromey@adacore.com>
5482
5483 * valprint.c (read_string): Update comment.
5484 * target.c (MIN): Remove.
5485 (target_read_string): Rewrite.
5486
f5272a3b
TT
54872020-06-15 Tom Tromey <tromey@adacore.com>
5488
5489 * corefile.c (read_memory_string): Remove.
5490 * ada-valprint.c (ada_value_print_ptr): Update.
5491 * ada-lang.h (ada_tag_name): Change return type.
5492 * ada-lang.c (type_from_tag): Update.
5493 (ada_tag_name_from_tsd): Change return type. Use
5494 target_read_string.
5495 (ada_tag_name): Likewise.
5496 * gdbcore.h (read_memory_string): Don't declare.
5497
2c074f49
HD
54982020-06-14 Hannes Domani <ssbssa@yahoo.de>
5499
5500 * symtab.c (rbreak_command): Ignore Windows drive colon.
5501
6a17d503
SM
55022020-06-12 Simon Marchi <simon.marchi@efficios.com>
5503
5504 * NEWS: Mention removed GDBserver host support.
5505
453c733f
NC
55062020-06-12 Nelson Chu <nelson.chu@sifive.com>
5507
5508 * features/riscv/rebuild-csr-xml.sh: Updated.
5509
2b4e6a3f
TT
55102020-06-11 Tom Tromey <tom@tromey.com>
5511
5512 PR gdb/18318:
5513 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
5514
4412332f
JG
55152020-06-09 Jonny Grant <jg@jguk.org>
55162020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
5517
5518 * main.c (captured_main_1): Don't print new line after help.
5519 (print_gdb_help): add mailing list and IRC channel information
5520 to --help. Add new lines between items in the footer. Remove
5521 quotes around bug url.
5522
2f33032a
KS
55232020-06-11 Keith Seitz <keiths@redhat.com>
5524
5525 PR gdb/21356
5526 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
5527 Resolve typedefs for type length calculations.
5528
7ab96794
TV
55292020-06-10 Tom de Vries <tdevries@suse.de>
5530
5531 PR ada/24713
5532 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
5533 (write_psymbols): Enable .gdb_index for ada.
5534 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
5535 ada.
5536
e5f3ece2
TV
55372020-06-10 Tom de Vries <tdevries@suse.de>
5538
5539 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
5540 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
5541 namei" instead of "const char *name" argument.
5542 (dw2_map_matching_symbols): Use "offset_type namei" variant of
5543 dw2_symtab_iter_init.
5544
940da03e
SM
55452020-06-08 Simon Marchi <simon.marchi@efficios.com>
5546
5547 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
5548 to use type::field and field::type instead.
5549
b6cdac4b
SM
55502020-06-08 Simon Marchi <simon.marchi@efficios.com>
5551
5552 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
5553 to use field::type instead.
5554
5d14b6e5
SM
55552020-06-08 Simon Marchi <simon.marchi@efficios.com>
5556
5557 * gdbtypes.h (struct field) <type, set_type>: New methods.
5558 Rename `type` field to...
5559 <m_type>: ... this. Change references throughout to use type or
5560 set_type methods.
5561 (FIELD_TYPE): Use field::type. Change call sites that modify
5562 the field's type to use field::set_type instead.
5563
3d967001
SM
55642020-06-08 Simon Marchi <simon.marchi@efficios.com>
5565
5566 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
5567 to use type::index_type instead.
5568
262abc0d
SM
55692020-06-08 Simon Marchi <simon.marchi@efficios.com>
5570
5571 * gdbtypes.h (struct type) <index_type, set_index_type>: New
5572 methods.
5573 (TYPE_INDEX_TYPE): Use type::index_type.
5574 * gdbtypes.c (create_array_type_with_stride): Likewise.
5575
82836c92
TT
55762020-06-07 Tom Tromey <tom@tromey.com>
5577
5578 * valprint.c (generic_val_print_float): Remove "embedded_offset"
5579 parameter.
5580 (generic_value_print): Update.
5581
940dace9
AB
55822020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
5583
5584 Revert commit 982a38f60b0.
5585 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
5586
982a38f6
AB
55872020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
5588
5589 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
5590 avoid use after free.
5591
82f06518
TV
55922020-06-05 Tom de Vries <tdevries@suse.de>
5593
5594 * NEWS: Fix typos.
5595
f8c41851
SM
55962020-06-04 Simon Marchi <simon.marchi@efficios.com>
5597
5598 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
5599 the per_bfd object.
5600 (dwarf2_read_debug_names): Likewise.
5601 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
5602 object when re-using a per_bfd object with an index.
5603
f9b5d5ea
TV
56042020-06-03 Tom de Vries <tdevries@suse.de>
5605
5606 PR symtab/26046
5607 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
5608 children for C++.
5609 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
5610 DW_TAG_subprogram.
5611
f6eee2d0
AB
56122020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5613
5614 * ada-lang.c (ada_language_data): Delete skip_trampoline
5615 initializer.
5616 * c-lang.c (c_language_data): Likewise.
5617 (cplus_language_data): Likewise.
5618 (cplus_language::skip_trampoline): New member function.
5619 (asm_language_data): Delete skip_trampoline initializer.
5620 (minimal_language_data): Likewise.
5621 * d-lang.c (d_language_data): Likewise.
5622 * f-lang.c (f_language_data): Likewise.
5623 * go-lang.c (go_language_data): Likewise.
5624 * language.c (unk_lang_trampoline): Delete function.
5625 (skip_language_trampoline): Update.
5626 (unknown_language_data): Delete skip_trampoline initializer.
5627 (auto_language_data): Likewise.
5628 * language.h (language_data): Delete skip_trampoline field.
5629 (language_defn::skip_trampoline): New function.
5630 * m2-lang.c (m2_language_data): Delete skip_trampoline
5631 initializer.
5632 * objc-lang.c (objc_skip_trampoline): Delete function, move
5633 implementation to objc_language::skip_trampoline.
5634 (objc_language_data): Delete skip_trampoline initializer.
5635 (objc_language::skip_trampoline): New member function with
5636 implementation from objc_skip_trampoline.
5637 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
5638 initializer.
5639 * p-lang.c (pascal_language_data): Likewise.
5640 * rust-lang.c (rust_language_data): Likewise.
5641
0a50df5d
AB
56422020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5643
5644 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
5645 (ada_language::demangle): New member function.
5646 * c-lang.c (c_language_data): Delete la_demangle initializer.
5647 (cplus_language_data): Delete la_demangle initializer.
5648 (cplus_language::demangle): New member function.
5649 (asm_language_data): Delete la_demangle initializer.
5650 (minimal_language_data): Delete la_demangle initializer.
5651 * d-lang.c (d_language_data): Delete la_demangle initializer.
5652 (d_language::demangle): New member function.
5653 * f-lang.c (f_language_data): Delete la_demangle initializer.
5654 (f_language::demangle): New member function.
5655 * go-lang.c (go_language_data): Delete la_demangle initializer.
5656 (go_language::demangle): New member function.
5657 * language.c (language_demangle): Update.
5658 (unk_lang_demangle): Delete.
5659 (unknown_language_data): Delete la_demangle initializer.
5660 (unknown_language::demangle): New member function.
5661 (auto_language_data): Delete la_demangle initializer.
5662 (auto_language::demangle): New member function.
5663 * language.h (language_data): Delete la_demangle field.
5664 (language_defn::demangle): New function.
5665 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
5666 * objc-lang.c (objc_language_data): Delete la_demangle
5667 initializer.
5668 (objc_language::demangle): New member function.
5669 * opencl-lang.c (opencl_language_data): Delete la_demangle
5670 initializer.
5671 * p-lang.c (pascal_language_data): Likewise.
5672 * rust-lang.c (rust_language_data): Likewise.
5673 (rust_language::demangle): New member function.
5674
fbfb0a46
AB
56752020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5676
5677 * ada-lang.c (ada_language_data): Delete la_print_type
5678 initializer.
5679 (ada_language::print_type): New member function.
5680 * c-lang.c (c_language_data): Delete la_print_type initializer.
5681 (c_language::print_type): New member function.
5682 (cplus_language_data): Delete la_print_type initializer.
5683 (cplus_language::print_type): New member function.
5684 (asm_language_data): Delete la_print_type initializer.
5685 (asm_language::print_type): New member function.
5686 (minimal_language_data): Delete la_print_type initializer.
5687 (minimal_language::print_type): New member function.
5688 * d-lang.c (d_language_data): Delete la_print_type initializer.
5689 (d_language::print_type): New member function.
5690 * f-lang.c (f_language_data): Delete la_print_type initializer.
5691 (f_language::print_type): New member function.
5692 * go-lang.c (go_language_data): Delete la_print_type initializer.
5693 (go_language::print_type): New member function.
5694 * language.c (unk_lang_print_type): Delete.
5695 (unknown_language_data): Delete la_print_type initializer.
5696 (unknown_language::print_type): New member function.
5697 (auto_language_data): Delete la_print_type initializer.
5698 (auto_language::print_type): New member function.
5699 * language.h (language_data): Delete la_print_type field.
5700 (language_defn::print_type): New function.
5701 (LA_PRINT_TYPE): Update.
5702 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
5703 (m2_language::print_type): New member function.
5704 * objc-lang.c (objc_language_data): Delete la_print_type
5705 initializer.
5706 (objc_language::print_type): New member function.
5707 * opencl-lang.c (opencl_print_type): Delete, implementation moved
5708 to opencl_language::print_type.
5709 (opencl_language_data): Delete la_print_type initializer.
5710 (opencl_language::print_type): New member function, implementation
5711 from opencl_print_type.
5712 * p-lang.c (pascal_language_data): Delete la_print_type
5713 initializer.
5714 (pascal_language::print_type): New member function.
5715 * rust-lang.c (rust_print_type): Delete, implementation moved to
5716 rust_language::print_type.
5717 (rust_language_data): Delete la_print_type initializer.
5718 (rust_language::print_type): New member function, implementation
5719 from rust_print_type.
5720
6f827019
AB
57212020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5722
5723 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
5724 implementation moves to...
5725 (ada_language::sniff_from_mangled_name): ...here. Update return
5726 type.
5727 (ada_language_data): Delete la_sniff_from_mangled_name
5728 initializer.
5729 * c-lang.c (c_language_data): Likewise.
5730 (cplus_language_data): Likewise.
5731 (cplus_language::sniff_from_mangled_name): New member function,
5732 implementation taken from gdb_sniff_from_mangled_name.
5733 (asm_language_data): Delete la_sniff_from_mangled_name
5734 initializer.
5735 (minimal_language_data): Likewise.
5736 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
5737 implementation moves to cplus_language::sniff_from_mangled_name.
5738 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
5739 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
5740 moves to...
5741 (d_language::sniff_from_mangled_name): ...here.
5742 (d_language_data): Delete la_sniff_from_mangled_name initializer.
5743 * f-lang.c (f_language_data): Likewise.
5744 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
5745 moves to...
5746 (go_language::sniff_from_mangled_name): ...here.
5747 (go_language_data): Delete la_sniff_from_mangled_name initializer.
5748 * language.c (language_sniff_from_mangled_name): Delete.
5749 (unknown_language_data): Delete la_sniff_from_mangled_name
5750 initializer.
5751 (auto_language_data): Likewise.
5752 * language.h (language_data): Delete la_sniff_from_mangled_name
5753 field.
5754 (language_defn::sniff_from_mangled_name): New function.
5755 (language_sniff_from_mangled_name): Delete declaration.
5756 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
5757 field.
5758 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
5759 implementation moves to...
5760 (objc_language::sniff_from_mangled_name): ...here.
5761 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
5762 * opencl-lang.c (opencl_language_data): Likewise.
5763 * p-lang.c (pascal_language_data): Likewise.
5764 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
5765 implementation moves to...
5766 (rust_language::sniff_from_mangled_name): ...here.
5767 (rust_language_data): Delete la_sniff_from_mangled_name
5768 initializer.
5769 * symtab.c (symbol_find_demangled_name): Call
5770 sniff_from_mangled_name member function.
5771
fb8006fd
AB
57722020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5773
5774 * ada-lang.c (ada_language_data): Delete la_search_name_hash
5775 initializer.
5776 * c-lang.c (c_language_data): Likewise.
5777 (cplus_language_data): Likewise.
5778 (cplus_language::search_name_hash): New member function.
5779 (asm_language_data): Delete la_search_name_hash initializer.
5780 (minimal_language_data): Likewise.
5781 * d-lang.c (d_language_data): Likewise.
5782 * dictionary.c (default_search_name_hash): Rename to...
5783 (language_defn::search_name_hash): ...this.
5784 * f-lang.c (f_language_data): Likewise.
5785 (f_language::search_name_hash): New member function.
5786 * go-lang.c (go_language_data): Delete la_search_name_hash
5787 initializer.
5788 * language.c (unknown_language_data): Likewise.
5789 (auto_language_data): Likewise.
5790 * language.h (struct language_data): Delete la_search_name_hash
5791 field.
5792 (language_defn::search_name_hash): Declare new member function.
5793 (default_search_name_hash): Delete declaration.
5794 * m2-lang.c (m2_language_data): Delete la_search_name_hash
5795 initializer.
5796 * objc-lang.c (objc_language_data): Likewise.
5797 * opencl-lang.c (opencl_language_data): Likewise.
5798 * p-lang.c (pascal_language_data): Likewise.
5799 * rust-lang.c (rust_language_data): Likewise.
5800 * symtab.c (search_name_hash): Update call.
5801
8e25bafe
AB
58022020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5803
5804 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
5805 initializer.
5806 * c-lang.c (class compile_instance): Declare.
5807 (c_language_data): Delete la_get_compile_instance initializer.
5808 (c_language::get_compile_instance): New member function.
5809 (cplus_language_data): Delete la_get_compile_instance initializer.
5810 (cplus_language::get_compile_instance): New member function.
5811 (asm_language_data): Delete la_get_compile_instance initializer.
5812 (minimal_language_data): Likewise.
5813 * c-lang.h (c_get_compile_context): Update comment.
5814 (cplus_get_compile_context): Update comment.
5815 * compile/compile.c (compile_to_object): Update calls, don't rely
5816 on function pointer being NULL.
5817 * d-lang.c (d_language_data): Delete la_get_compile_instance
5818 initializer.
5819 * f-lang.c (f_language_data): Likewise.
5820 * go-lang.c (go_language_data): Likewise.
5821 * language.c (unknown_language_data): Likewise.
5822 (auto_language_data): Likewise.
5823 * language.h (language_data): Delete la_get_compile_instance field.
5824 (language_defn::get_compile_instance): New member function.
5825 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
5826 initializer.
5827 * objc-lang.c (objc_language_data): Likewise.
5828 * opencl-lang.c (opencl_language_data): Likewise.
5829 * p-lang.c (pascal_language_data): Likewise.
5830 * rust-lang.c (rust_language_data): Likewise.
5831
4009ee92
AB
58322020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5833
5834 * ada-lang.c (ada_add_all_symbols): Update comment.
5835 (ada_iterate_over_symbols): Delete, move implementation to...
5836 (ada_language::iterate_over_symbols): ...here, a new member
5837 function, rewrite to use range based for loop.
5838 (ada_language_data): Delete la_iterate_over_symbols initializer.
5839 * c-lang.c (c_language_data): Likewise.
5840 (cplus_language_data): Likewise.
5841 (asm_language_data): Likewise.
5842 (minimal_language_data): Likewise.
5843 * d-lang.c (d_language_data): Likewise.
5844 * f-lang.c (f_language_data): Likewise.
5845 * go-lang.c (go_language_data): Likewise.
5846 * language.c (unknown_language_data): Likewise.
5847 (auto_language_data): Likewise.
5848 * language.h (language_data): Delete la_iterate_over_symbols field.
5849 (language_defn::iterate_over_symbols): New member function.
5850 (LA_ITERATE_OVER_SYMBOLS): Update.
5851 * linespec.c (iterate_over_all_matching_symtabs): Update.
5852 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
5853 initializer.
5854 * objc-lang.c (objc_language_data): Likewise.
5855 * opencl-lang.c (opencl_language_data): Likewise.
5856 * p-lang.c (pascal_language_data): Likewise.
5857 * rust-lang.c (rust_language_data): Likewise.
5858
54f4ca46
AB
58592020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5860
5861 * ada-lang.c (ada_language_data): Delete
5862 la_lookup_transparent_type initializer.
5863 * c-lang.c (c_language_data): Likewise.
5864 (cplus_language_data): Likewise.
5865 (cplus_language::lookup_transparent_type): New member function.
5866 (asm_language_data): Delete la_lookup_transparent_type
5867 initializer.
5868 (minimal_language_data): Likewise.
5869 * d-lang.c (d_language_data): Likewise.
5870 * f-lang.c (f_language_data): Likewise.
5871 * go-lang.c (go_language_data): Likewise.
5872 * language.c (unknown_language_data): Likewise.
5873 (auto_language_data): Likewise.
5874 * language.h (struct language_data): Delete
5875 la_lookup_transparent_type field.
5876 (language_defn::lookup_transparent_type): New member function.
5877 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
5878 initializer.
5879 * objc-lang.c (objc_language_data): Likewise.
5880 * opencl-lang.c (opencl_language_data): Likewise.
5881 * p-lang.c (pascal_language_data): Likewise.
5882 * rust-lang.c (rust_language_data): Likewise.
5883 * symtab.c (symbol_matches_domain): Update call.
5884
1fb314aa
AB
58852020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5886
5887 * ada-lang.c (ada_language_arch_info): Delete function, move
5888 implementation to...
5889 (ada_language::language_arch_info): ...here, a new member
5890 function.
5891 (ada_language_data): Delete la_language_arch_info.
5892 * c-lang.c (c_language_data): Likewise.
5893 (c_language::language_arch_info): New member function.
5894 (cplus_language_arch_info): Delete function, move
5895 implementation to...
5896 (cplus_language::language_arch_info): ...here, a new member
5897 function.
5898 (cplus_language_data): Delete la_language_arch_info.
5899 (asm_language_data): Likewise.
5900 (asm_language::language_arch_info): New member function.
5901 (minimal_language_data): Delete la_language_arch_info.
5902 (minimal_language::language_arch_info): New member function.
5903 * d-lang.c (d_language_arch_info): Delete function, move
5904 implementation to...
5905 (d_language::language_arch_info): ...here, a new member
5906 function.
5907 (d_language_data): Delete la_language_arch_info.
5908 * f-lang.c (f_language_arch_info): Delete function, move
5909 implementation to...
5910 (f_language::language_arch_info): ...here, a new member
5911 function.
5912 (f_language_data): Delete la_language_arch_info.
5913 * go-lang.c (go_language_arch_info): Delete function, move
5914 implementation to...
5915 (go_language::language_arch_info): ...here, a new member
5916 function.
5917 (go_language_data): Delete la_language_arch_info.
5918 * language.c (unknown_language_data): Likewise.
5919 (unknown_language::language_arch_info): New member function.
5920 (auto_language_data): Delete la_language_arch_info.
5921 (auto_language::language_arch_info): New member function.
5922 (language_gdbarch_post_init): Update call to
5923 la_language_arch_info.
5924 * language.h (language_data): Delete la_language_arch_info
5925 function pointer.
5926 (language_defn::language_arch_info): New function.
5927 * m2-lang.c (m2_language_arch_info): Delete function, move
5928 implementation to...
5929 (m2_language::language_arch_info): ...here, a new member
5930 function.
5931 (m2_language_data): Delete la_language_arch_info.
5932 * objc-lang.c (objc_language_arch_info): Delete function, move
5933 implementation to...
5934 (objc_language::language_arch_info): ...here, a new member
5935 function.
5936 (objc_language_data): Delete la_language_arch_info.
5937 * opencl-lang.c (opencl_language_arch_info): Delete function, move
5938 implementation to...
5939 (opencl_language::language_arch_info): ...here, a new member
5940 function.
5941 (opencl_language_data): Delete la_language_arch_info.
5942 * p-lang.c (pascal_language_arch_info): Delete function, move
5943 implementation to...
5944 (pascal_language::language_arch_info): ...here, a new member
5945 function.
5946 (pascal_language_data): Delete la_language_arch_info.
5947 * rust-lang.c (rust_language_arch_info): Delete function, move
5948 implementation to...
5949 (rust_language::language_arch_info): ...here, a new member
5950 function.
5951 (rust_language_data): Delete la_language_arch_info.
5952
48448202
AB
59532020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5954
5955 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
5956 initializer.
5957 * c-lang.c (c_language_data): Likewise.
5958 (cplus_language_data): Likewise.
5959 (cplus_language::pass_by_reference_info): New method.
5960 (asm_language_data): Delete la_pass_by_reference initializer.
5961 (minimal_language_data): Likewise.
5962 * cp-abi.c (cp_pass_by_reference): Remove use of
5963 default_pass_by_reference.
5964 * d-lang.c (d_language_data): Likewise.
5965 * f-lang.c (f_language_data): Likewise.
5966 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
5967 default_pass_by_reference.
5968 * go-lang.c (go_language_data): Likewise.
5969 * language.c (language_pass_by_reference): Update.
5970 (default_pass_by_reference): Delete.
5971 (unknown_language_data): Delete la_pass_by_reference
5972 initializer.
5973 (auto_language_data): Likewise.
5974 * language.h (struct language_data): Delete la_pass_by_reference
5975 field.
5976 (language_defn::pass_by_reference_info): New member function.
5977 (default_pass_by_reference): Delete declaration.
5978 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
5979 initializer.
5980 * objc-lang.c (objc_language_data): Likewise.
5981 * opencl-lang.c (opencl_language_data): Likewise.
5982 * p-lang.c (pascal_language_data): Likewise.
5983 * rust-lang.c (rust_language_data): Likewise.
5984
15e5fd35
AB
59852020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5986
5987 * ada-lang.c (ada_read_var_value): Delete function, move
5988 implementation to...
5989 (ada_language::read_var_value): ...here.
5990 (ada_language_data): Delete la_read_var_value initializer.
5991 * c-lang.c (c_language_data): Likewise.
5992 (cplus_language_data): Likewise.
5993 (minimal_language_data): Likewise.
5994 * d-lang.c (d_language_data): Likewise.
5995 * f-lang.c (f_language_data): Likewise.
5996 * findvar.c (default_read_var_value): Rename to...
5997 (language_defn::read_var_value): ...this.
5998 * findvar.c (read_var_value): Update header comment, and change to
5999 call member function instead of function pointer.
6000 * go-lang.c (go_language_data): Likewise.
6001 * language.c (unknown_language_data): Delete la_read_var_value
6002 initializer.
6003 (auto_language_data): Likewise.
6004 * language.h (struct language_data): Delete la_read_var_value
6005 field.
6006 (language_defn::read_var_value): New member function.
6007 (default_read_var_value): Delete declaration.
6008 * m2-lang.c (m2_language_data): Delete la_read_var_value
6009 initializer.
6010 * objc-lang.c (objc_language_data): Likewise.
6011 * opencl-lang.c (opencl_language_data): Likewise.
6012 * p-lang.c (pascal_language_data): Likewise.
6013 * rust-lang.c (rust_language_data): Likewise.
6014 * value.h (default_read_var_value): Delete declaration.
6015
5bd40f2a
AB
60162020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6017
6018 * ada-lang.c (ada_print_array_index): Delete function, move
6019 implementation to...
6020 (ada_language::print_array_index): ...here.
6021 (ada_language_data): Delete la_print_array_index initializer.
6022 * c-lang.c (c_language_data): Likewise.
6023 (cplus_language_data): Likewise.
6024 (minimal_language_data): Likewise.
6025 * d-lang.c (d_language_data): Likewise.
6026 * f-lang.c (f_language_data): Likewise.
6027 * go-lang.c (go_language_data): Likewise.
6028 * language.c (default_print_array_index): Delete function, move
6029 implementation to...
6030 (language_defn::print_array_index): ...here.
6031 (unknown_language_data): Delete la_print_array_index initializer.
6032 (auto_language_data): Likewise.
6033 * language.h (struct language_data): Delete la_print_array_index
6034 field.
6035 (language_defn::print_array_index): New member function.
6036 (LA_PRINT_ARRAY_INDEX): Update.
6037 (default_print_array_index): Delete declaration.
6038 * m2-lang.c (m2_language_data): Delete la_print_array_index
6039 initializer.
6040 * objc-lang.c (objc_language_data): Likewise.
6041 * opencl-lang.c (opencl_language_data): Likewise.
6042 * p-lang.c (pascal_language_data): Likewise.
6043 * rust-lang.c (rust_language_data): Likewise.
6044
0874fd07
AB
60452020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6046
6047 * gdb/ada-lang.c (ada_language_defn): Convert to...
6048 (ada_language_data): ...this.
6049 (class ada_language): New class.
6050 (ada_language_defn): New static global.
6051 * gdb/c-lang.c (c_language_defn): Convert to...
6052 (c_language_data): ...this.
6053 (class c_language): New class.
6054 (c_language_defn): New static global.
6055 (cplus_language_defn): Convert to...
6056 (cplus_language_data): ...this.
6057 (class cplus_language): New class.
6058 (cplus_language_defn): New static global.
6059 (asm_language_defn): Convert to...
6060 (asm_language_data): ...this.
6061 (class asm_language): New class.
6062 (asm_language_defn): New static global.
6063 (minimal_language_defn): Convert to...
6064 (minimal_language_data): ...this.
6065 (class minimal_language): New class.
6066 (minimal_language_defn): New static global.
6067 * gdb/d-lang.c (d_language_defn): Convert to...
6068 (d_language_data): ...this.
6069 (class d_language): New class.
6070 (d_language_defn): New static global.
6071 * gdb/f-lang.c (f_language_defn): Convert to...
6072 (f_language_data): ...this.
6073 (class f_language): New class.
6074 (f_language_defn): New static global.
6075 * gdb/go-lang.c (go_language_defn): Convert to...
6076 (go_language_data): ...this.
6077 (class go_language): New class.
6078 (go_language_defn): New static global.
6079 * gdb/language.c (unknown_language_defn): Remove declaration.
6080 (current_language): Initialize to nullptr, real initialization is
6081 moved to _initialize_language.
6082 (languages): Delete global.
6083 (language_defn::languages): Define.
6084 (set_language_command): Use language_defn::languages.
6085 (set_language): Likewise.
6086 (range_error): Likewise.
6087 (language_enum): Likewise.
6088 (language_def): Likewise.
6089 (add_set_language_command): Use language_def::languages for the
6090 language list, and language_def to lookup language pointers.
6091 (skip_language_trampoline): Use language_defn::languages.
6092 (unknown_language_defn): Convert to...
6093 (unknown_language_data): ...this.
6094 (class unknown_language): New class.
6095 (unknown_language_defn): New static global.
6096 (auto_language_defn): Convert to...
6097 (auto_language_data): ...this.
6098 (class auto_language): New class.
6099 (auto_language_defn): New static global.
6100 (language_gdbarch_post_init): Use language_defn::languages.
6101 (_initialize_language): Initialize current_language.
6102 * gdb/language.h (struct language_defn): Rename to...
6103 (struct language_data): ...this.
6104 (struct language_defn): New.
6105 (auto_language_defn): Delete.
6106 (unknown_language_defn): Delete.
6107 (minimal_language_defn): Delete.
6108 (ada_language_defn): Delete.
6109 (asm_language_defn): Delete.
6110 (c_language_defn): Delete.
6111 (cplus_language_defn): Delete.
6112 (d_language_defn): Delete.
6113 (f_language_defn): Delete.
6114 (go_language_defn): Delete.
6115 (m2_language_defn): Delete.
6116 (objc_language_defn): Delete.
6117 (opencl_language_defn): Delete.
6118 (pascal_language_defn): Delete.
6119 (rust_language_defn): Delete.
6120 * gdb/m2-lang.c (m2_language_defn): Convert to...
6121 (m2_language_data): ...this.
6122 (class m2_language): New class.
6123 (m2_language_defn): New static global.
6124 * gdb/objc-lang.c (objc_language_defn): Convert to...
6125 (objc_language_data): ...this.
6126 (class objc_language): New class.
6127 (objc_language_defn): New static global.
6128 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
6129 (opencl_language_data): ...this.
6130 (class opencl_language): New class.
6131 (opencl_language_defn): New static global.
6132 * gdb/p-lang.c (pascal_language_defn): Convert to...
6133 (pascal_language_data): ...this.
6134 (class pascal_language): New class.
6135 (pascal_language_defn): New static global.
6136 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
6137 language pointer, update comment format.
6138 * gdb/rust-lang.c (rust_language_defn): Convert to...
6139 (rust_language_data): ...this.
6140 (class rust_language): New class.
6141 (rust_language_defn): New static global.
6142
1313c56e
AB
61432020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
6144
6145 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
6146 member variable.
6147 <m_stmt_at_address>: New member variable.
6148 (lnp_state_machine::record_line): Don't record some lines, update
6149 tracking of is_stmt at the same address.
6150 (lnp_state_machine::lnp_state_machine): Initialise new member
6151 variables.
6152
b7ed9f3d
ST
61532020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
6154
6155 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
6156 "-include gnu-nat-mig.h".
6157 * gnu-nat-mig.h: New file.
6158 * gnu-nat.c: Include "gnu-nat-mig.h".
6159 (exc_server, msg_reply_server, notify_server,
6160 process_reply_server): Remove declarations.
6161
14a8ad62
ST
61622020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6163
6164 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
6165 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
6166 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
6167 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
6168 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
6169 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
6170 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
6171 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
6172 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
6173 to gnu_nat_target class.
6174 * gnu-nat.c: Likewise.
6175 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
6176 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
6177 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
6178 object.
6179 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
6180 instead of `gnu_target'.
6181
0af5e106
ST
61822020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6183
6184 * i386-gnu-tdep.c: Include "gdbcore.h"
6185 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
6186 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
6187 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
6188 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
6189 i386_gnu_sigcontext_addr): New functions
6190 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
6191 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
6192 tdep.
6193
078f2fc9
ST
61942020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6195
6196 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
6197 before fork_inferior call. Avoid calling it if target_is_pushed returns
6198 true.
6199
53dff92c
ST
62002020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6201
6202 * gnu-nat.h (gnu_target): New variable declaration.
6203 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
6204 gnu_target.
6205 * gnu-nat.c (gnu_target): New variable.
6206 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
6207 add_thread_silent, and add_thread calls.
6208 (gnu_nat_target::create_inferior): Pass gnu_target to
6209 add_thread_silent, thread_change_ptid call.
6210 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
6211 call.
6212
5a8b8627
ST
62132020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6214
6215 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
6216 (gnu_nat_target::find_memory_regions): Remove unused
6217 `old_address' variable.
6218
366f550a
ST
62192020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6220
6221 * gnu-nat.c: Include "gdbarch.h".
6222
f14871bf
ST
62232020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6224
6225 * reply_mig_hack.awk (Error return): Cast function through
6226 void *, to bypass compiler function call check.
6227
c6887cfb
ST
62282020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6229
6230 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
6231 $(srcdir)/reply_mig_hack.awk.
6232
6930bffe
ST
62332020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6234
6235 * gnu-nat.h (gnu_debug_flag): Set type to bool.
6236
112c22ed
JG
62372020-05-30 Jonny Grant <jg@jguk.org>
6238
6239 * configure.ac (ACX_BUGURL): change bug URL to https.
6240
f68f85b5
PA
62412020-05-30 Pedro Alves <palves@redhat.com>
6242
6243 * cp-support.c (replace_typedefs_template): New.
6244 (replace_typedefs_qualified_name): Handle
6245 DEMANGLE_COMPONENT_TEMPLATE.
6246
976ca316
SM
62472020-05-29 Simon Marchi <simon.marchi@efficios.com>
6248
6249 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
6250 dwarf2/index-cache.h, dwarf2/index-write.c,
6251 dwarf2/index-write.h, dwarf2/line-header.c,
6252 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
6253 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
6254 variables and fields from `dwarf2_per_objfile` to just
6255 `per_objfile` throughout.
6256
989ade05
SM
62572020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
6258
6259 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6260 <push_dwarf_reg_entry_value>: Add comment.
6261
c47bae85
KB
62622020-05-28 Kevin Buettner <kevinb@redhat.com>
6263 Keith Seitz <keiths@redhat.com>
6264
6265 * python/python.c (do_start_initialization): Call PyEval_SaveThread
6266 instead of PyEval_ReleaseLock.
6267 (class gdbpy_gil): Move to earlier in file.
6268 (finalize_python): Set gdb_python_initialized.
6269 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
6270 when not initialized.
6271
44486dcf
SM
62722020-05-28 Simon Marchi <simon.marchi@efficios.com>
6273
6274 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6275 <push_dwarf_reg_entry_value>: Remove assert. Override
6276 per_objfile with caller_per_objfile.
6277
f030440d
TV
62782020-05-28 Tom de Vries <tdevries@suse.de>
6279
6280 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
6281 PR gold/15646 workaround to symbol kind "type".
6282
f0fbb768
TT
62832020-05-27 Tom Tromey <tromey@adacore.com>
6284
6285 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
6286
af0b2a3e
TT
62872020-05-27 Tom Tromey <tromey@adacore.com>
6288
6289 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
6290 Use htab_find_with_hash.
6291 <add_abbrev>: Remove "abbrev_number" parameter.
6292 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
6293 "abbrev_number" parameter. Use htab_find_slot_with_hash.
6294 (hash_abbrev): Add comment.
6295 (abbrev_table::lookup_abbrev): Move to header file.
6296 (abbrev_table::read): Update.
6297
7d00ffec
TT
62982020-05-27 Tom Tromey <tromey@adacore.com>
6299
6300 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
6301 method.
6302 <canonical_name>: New member.
6303 <raw_name>: Rename from "name".
6304 (partial_die_info): Initialize canonical_name.
6305 (scan_partial_symbols): Check raw_name.
6306 (partial_die_parent_scope, partial_die_full_name)
6307 (add_partial_symbol, add_partial_subprogram)
6308 (add_partial_enumeration, load_partial_dies): Use "name" method.
6309 (partial_die_info::name): New method.
6310 (partial_die_info::read, guess_partial_die_structure_name)
6311 (partial_die_info::fixup): Update.
6312
697bba18
TT
63132020-05-27 Tom Tromey <tromey@adacore.com>
6314
6315 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
6316 <get_ref_die_offset>: Inline.
6317 <get_ref_die_offset_complaint>: New method.
6318 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
6319 (attribute::get_ref_die_offset_complaint): Rename from
6320 get_ref_die_offset. Just issue complaint.
6321
c17ace43
HD
63222020-05-27 Hannes Domani <ssbssa@yahoo.de>
6323
6324 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
6325
96445f0b
HD
63262020-05-27 Hannes Domani <ssbssa@yahoo.de>
6327
6328 * exec.c (exec_file_attach): Use errno value of first openp failure.
6329
ac637ec3
HD
63302020-05-27 Hannes Domani <ssbssa@yahoo.de>
6331
6332 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
6333 Don't close thread handle.
6334
17ee85fc
TT
63352020-05-27 Tom Tromey <tom@tromey.com>
6336 Simon Marchi <simon.marchi@efficios.com>
6337
6338 * objfiles.h (struct objfile) <partial_symtabs>: Now a
6339 shared_ptr.
6340 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
6341 member.
6342 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
6343 dwarf2_per_bfd_objfile_data_key>: New globals.
6344 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
6345 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
6346 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
6347 shared.
6348 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
6349 short-circuit when sharing.
6350 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
6351 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
6352
39b16f87
SM
63532020-05-27 Simon Marchi <simon.marchi@efficios.com>
6354
6355 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
6356 to...
6357 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
6358 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
6359
fcf23d5b
SM
63602020-05-27 Simon Marchi <simon.marchi@efficios.com>
6361
6362 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
6363 build_name_components, find_name_components_bounds>:
6364 Add per_objfile parameter.
6365 (struct mapped_index) <symbol_name_at>: Likewise.
6366 (struct mapped_debug_names): Remove constructor.
6367 <dwarf2_per_objfile>: Remove field.
6368 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
6369 (mapped_index_base::find_name_components_bounds,
6370 mapped_index_base::build_name_components,
6371 dw2_expand_symtabs_matching_symbol): Likewise.
6372 (class mock_mapped_index) <symbol_name_at>: Likewise.
6373 (check_match): Likewise.
6374 (check_find_bounds_finds): Likewise.
6375 (test_mapped_index_find_name_component_bounds): Update.
6376 (CHECK_MATCH): Update.
6377 (dw2_expand_symtabs_matching): Update.
6378 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
6379 per_objfile parameter.
6380 <find_vec_in_debug_names>: Likewise.
6381 <m_per_objfile>: New field.
6382 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
6383 parameter.
6384 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
6385 (dw2_debug_names_iterator::next): Update.
6386 (dw2_debug_names_lookup_symbol): Update.
6387 (dw2_debug_names_expand_symtabs_for_function): Update.
6388 (dw2_debug_names_map_matching_symbols): Update.
6389 (dw2_debug_names_expand_symtabs_matching): Update.
6390 (dwarf2_read_debug_names): Update.
6391
7188ed02
SM
63922020-05-27 Simon Marchi <simon.marchi@efficios.com>
6393
6394 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
6395 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
6396 move to dwarf2_per_objfile.
6397 <read_in_chain>: Remove.
6398 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
6399 remove_all_cus, age_comp_units>: New methods.
6400 <m_dwarf2_cus>: New member.
6401 (struct dwarf2_per_cu_data) <cu>: Remove.
6402 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
6403 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
6404 moved to methods of dwarf2_per_objfile.
6405 (dwarf2_clear_marks): Remove.
6406 (dwarf2_queue_item::~dwarf2_queue_item): Update.
6407 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
6408 (dwarf2_per_bfd::free_cached_comp_units): Remove.
6409 (dwarf2_per_objfile::remove_all_cus): New.
6410 (class free_cached_comp_units) <~free_cached_comp_units>:
6411 Update.
6412 (load_cu): Update.
6413 (dw2_do_instantiate_symtab): Adjust.
6414 (fill_in_sig_entry_from_dwo_entry): Adjust.
6415 (cutu_reader::init_tu_and_read_dwo_dies): Update.
6416 (cutu_reader::cutu_reader): Likewise.
6417 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
6418 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
6419 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
6420 and dwarf2_per_objfile::age_comp_units.
6421 (load_partial_comp_unit): Update.
6422 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
6423 (process_queue): Likewise.
6424 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
6425 backlink.
6426 (dwarf2_read_addr_index): Likewise.
6427 (follow_die_offset): Likewise.
6428 (dwarf2_fetch_die_loc_sect_off): Likewise.
6429 (dwarf2_fetch_constant_bytes): Likewise.
6430 (dwarf2_fetch_die_type_sect_off): Likewise.
6431 (follow_die_sig_1): Likewise.
6432 (load_full_type_unit): Likewise.
6433 (read_signatured_type): Likewise.
6434 (dwarf2_cu::dwarf2_cu): Don't set cu field.
6435 (dwarf2_cu::~dwarf2_cu): Remove.
6436 (dwarf2_per_objfile::get_cu): New.
6437 (dwarf2_per_objfile::set_cu): New.
6438 (age_cached_comp_units): Rename to...
6439 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
6440 to std::unordered_map.
6441 (free_one_cached_comp_unit): Rename to...
6442 (dwarf2_per_objfile::remove_cu): ... this. Adjust
6443 to std::unordered_map.
6444 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
6445 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
6446 a dwarf2_per_objfile in data.
6447 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
6448 (dwarf2_clear_marks): Remove.
6449
2e671100
SM
64502020-05-27 Simon Marchi <simon.marchi@efficios.com>
6451
6452 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
6453 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
6454 (init_tu_and_read_dwo_dies): Likewise.
6455 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
6456 (cutu_reader::cutu_reader): Likewise.
6457 (load_partial_comp_unit): Likewise.
6458 (process_psymtab_comp_unit): Update.
6459 (build_type_psymtabs_1): Update.
6460 (process_skeletonless_type_unit): Update.
6461 (load_full_comp_unit): Update.
6462 (find_partial_die): Update.
6463 (dwarf2_read_addr_index): Update.
6464 (read_signatured_type): Update.
6465
2e6a9f79
SM
64662020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6467
6468 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
6469 m_header_read_in>: New fields.
6470 <get_header>: New method.
6471 * dwarf2/read.c (per_cu_header_read_in): Remove.
6472 (dwarf2_per_cu_data::get_header): New.
6473 (dwarf2_per_cu_data::addr_size): Update.
6474 (dwarf2_per_cu_data::offset_size): Update.
6475 (dwarf2_per_cu_data::ref_addr_size): Update.
6476
1b555f17
SM
64772020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6478
6479 * dwarf2/read.c (load_cu): Return dwarf2_cu.
6480 (dw2_do_instantiate_symtab): Update.
6481 (queue_and_load_all_dwo_tus): Change parameter from
6482 dwarf2_per_cu_data to dwarf2_cu.
6483 (dwarf2_fetch_die_loc_sect_off): Update.
6484 (dwarf2_fetch_constant_bytes): Update.
6485 (dwarf2_fetch_die_type_sect_off): Update.
6486
8fc0b21d
SM
64872020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6488
6489 * dwarf2/read.c (process_full_comp_unit,
6490 process_full_type_unit): Remove per_cu, per_objfile paramters.
6491 Add dwarf2_cu parameter.
6492 (process_queue): Update.
6493
168c9250
SM
64942020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6495
6496 * dwarf2/read.c (create_cu_from_index_list): Replace
6497 dwarf2_per_objfile parameter with dwarf2_per_bfd.
6498 (create_cus_from_index_list): Likewise.
6499 (create_cus_from_index): Likewise.
6500 (create_signatured_type_table_from_index): Likewise.
6501 (create_cus_from_debug_names_list): Likewise.
6502 (create_cus_from_debug_names): Likewise.
6503 (dwarf2_read_gdb_index): Update.
6504 (dwarf2_read_debug_names): Update.
6505
e286671b
TT
65062020-05-27 Tom Tromey <tom@tromey.com>
6507 Simon Marchi <simon.marchi@efficios.com>
6508
6509 * dwarf2/read.h (struct dwarf2_per_objfile)
6510 <get_type_for_signatured_type, set_type_for_signatured_type>:
6511 New methods.
6512 <m_type_map>: New member.
6513 (struct signatured_type) <type>: Remove.
6514 * dwarf2/read.c
6515 (dwarf2_per_objfile::get_type_for_signatured_type,
6516 dwarf2_per_objfile::set_type_for_signatured_type): New.
6517 (get_signatured_type): Use new methods.
6518
8adb8487
TT
65192020-05-27 Tom Tromey <tom@tromey.com>
6520 Simon Marchi <simon.marchi@efficios.com>
6521
6522 * dwarf2/read.h (struct type_unit_group_unshareable): New.
6523 (struct dwarf2_per_objfile) <type_units>: New member.
6524 <get_type_unit_group_unshareable>: New method.
6525 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
6526 num_symtabs, symtabs>: Remove; move to
6527 type_unit_group_unshareable.
6528 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
6529 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
6530 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
6531
127bbf4b
SM
65322020-05-27 Simon Marchi <simon.marchi@efficios.com>
6533
6534 * dwarf2/read.h (struct dwarf2_per_cu_data):
6535 <dwarf2_per_objfile>: Remove.
6536 * dwarf2/read.c (create_cu_from_index_list): Don't assign
6537 dwarf2_per_objfile.
6538 (create_signatured_type_table_from_index): Likewise.
6539 (create_signatured_type_table_from_debug_names): Likewise.
6540 (create_debug_type_hash_table): Likewise.
6541 (fill_in_sig_entry_from_dwo_entry): Likewise.
6542 (create_type_unit_group): Likewise.
6543 (read_comp_units_from_section): Likewise.
6544 (create_cus_hash_table): Likewise.
6545
f6e649dd
SM
65462020-05-27 Simon Marchi <simon.marchi@efficios.com>
6547
6548 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
6549 dwarf2_per_cu_data::dwarf2_per_objfile.
6550 (compute_compunit_symtab_includes): Likewise.
6551 (dwarf2_cu::start_symtab): Likewise.
6552
aa66c379
SM
65532020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6554
6555 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
6556 parameter.
6557 * dwarf2/read.c (get_die_type_at_offset): Likewise.
6558 (read_namespace_alias): Update.
6559 (lookup_die_type): Update.
6560 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
6561 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
6562 Update.
6563 (disassemble_dwarf_expression): Update.
6564
120ce1b5
SM
65652020-05-27 Simon Marchi <simon.marchi@efficios.com>
6566
6567 * dwarf2/read.h (struct dwarf2_queue_item): Add
6568 dwarf2_per_objfile parameter, assign new parameter.
6569 <per_objfile>: New field.
6570 * dwarf2/read.c (free_one_cached_comp_unit): Add
6571 dwarf2_per_objfile parameter.
6572 (queue_comp_unit): Likewise.
6573 (dw2_do_instantiate_symtab): Update.
6574 (process_psymtab_comp_unit): Update.
6575 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
6576 (process_imported_unit_die): Update.
6577 (queue_and_load_dwo_tu): Update.
6578 (follow_die_offset): Update.
6579 (follow_die_sig_1): Update.
6580
9f47c707
SM
65812020-05-27 Simon Marchi <simon.marchi@efficios.com>
6582
6583 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
6584 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
6585 (read_call_site_scope): Assign per_objfile.
6586 (dwarf2_per_cu_data::objfile): Remove.
6587 * gdbtypes.h (struct call_site) <per_objfile>: New member.
6588 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
6589 dwarf2_per_objfile parameter.
6590 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
6591 dwarf2_per_objfile parameter.
6592 (dwarf_expr_reg_to_entry_parameter): Add output
6593 dwarf2_per_objfile parameter.
6594 (locexpr_get_frame_base): Update.
6595 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
6596 <push_dwarf_reg_entry_value>: Update.
6597 <call_site_to_target_addr>: Update.
6598 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
6599 parameter.
6600 (value_of_dwarf_reg_entry): Update.
6601 (rw_pieced_value): Update.
6602 (indirect_synthetic_pointer): Update.
6603 (dwarf2_evaluate_property): Update.
6604 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
6605 parameter.
6606 (locexpr_read_variable): Update.
6607 (locexpr_get_symbol_read_needs): Update.
6608 (loclist_read_variable): Update.
6609
14095eb3
SM
66102020-05-27 Simon Marchi <simon.marchi@efficios.com>
6611
6612 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
6613 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
6614 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
6615 parameter.
6616 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
6617 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
6618 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
6619 parameter.
6620 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
6621 sect_variable_value): Add dwarf2_per_objfile parameter.
6622 (class dwarf_evaluate_loc_desc) <dwarf_call,
6623 dwarf_variable_value>: Update.
6624 (fetch_const_value_from_synthetic_pointer): Add
6625 dwarf2_per_objfile parameter.
6626 (fetch_const_value_from_synthetic_pointer): Update.
6627 (coerced_pieced_ref): Update.
6628 (class symbol_needs_eval_context) <dwarf_call,
6629 dwarf_variable_value>: Update.
6630 (dwarf2_compile_expr_to_ax): Update.
6631
3c3cd3d4
SM
66322020-05-27 Simon Marchi <simon.marchi@efficios.com>
6633
6634 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
6635 parameter.
6636 (dwarf2_evaluate_loc_desc_full): Update.
6637
82ca3f51
SM
66382020-05-27 Simon Marchi <simon.marchi@efficios.com>
6639
6640 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
6641 parameter.
6642 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
6643 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
6644 dwarf2_per_objfile parameter.
6645 (decode_debug_loc_dwo_addresses): Likewise.
6646 (dwarf2_find_location_expression): Update.
6647 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
6648 (locexpr_describe_location_piece): Add dwarf2_per_objfile
6649 parameter.
6650 (disassemble_dwarf_expression): Add dwarf2_per_objfile
6651 parameter.
6652 (locexpr_describe_location_1): Likewise.
6653 (locexpr_describe_location): Update.
6654
4b167ea1
SM
66552020-05-27 Simon Marchi <simon.marchi@efficios.com>
6656
6657 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
6658 Remove.
6659 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
6660 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
6661 (dwarf2_compile_property_to_c): Update.
6662 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
6663 use text offset from objfile.
6664 (locexpr_tracepoint_var_ref): Update.
6665 (locexpr_generate_c_location): Update.
6666 (loclist_describe_location): Update.
6667 (loclist_tracepoint_var_ref): Update.
6668 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
6669 dwarf2_per_objfile parameter.
6670 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
6671 use text offset from objfile.
6672 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
6673
89b07335
SM
66742020-05-27 Simon Marchi <simon.marchi@efficios.com>
6675
6676 * dwarf2/expr.h (struct dwarf_expr_context)
6677 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
6678 <offset>: Remove.
6679 <per_objfile>: New member.
6680 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
6681 dwarf2_per_objfile parameter. Don't set offset, set
6682 per_objfile.
6683 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
6684 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
6685 a dwarf2_per_objfile object instead of an offset.
6686 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
6687 constructor.
6688 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
6689 to dwarf2_expr_executor constructor. Don't set offset.
6690 (dwarf2_fetch_cfa_info): Update.
6691 (struct dwarf2_frame_cache) <text_offset>: Remove.
6692 <per_objfile>: New field.
6693 (dwarf2_frame_cache): Update.
6694 (dwarf2_frame_prev_register): Update.
6695 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6696 <dwarf_evaluate_loc_desc>: Add constructor.
6697 (dwarf2_evaluate_loc_desc_full): Update.
6698 (dwarf2_locexpr_baton_eval): Update.
6699 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
6700 Add constructor.
6701 (dwarf2_loc_desc_get_symbol_read_needs): Update.
6702
293e7e51
SM
67032020-05-27 Simon Marchi <simon.marchi@efficios.com>
6704
6705 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
6706 addr_sized_int_type>: Move to dwarf2_cu.
6707 <int_type>: Move to dwarf2_per_objfile.
6708 (struct dwarf2_per_objfile) <int_type>: Move here.
6709 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
6710 addr_sized_int_type>: Move here.
6711 (read_func_scope): Update.
6712 (read_array_type): Update.
6713 (read_tag_string_type): Update.
6714 (attr_to_dynamic_prop): Update.
6715 (dwarf2_per_cu_data::int_type): Rename to...
6716 (dwarf2_per_objfile::int_type): ... this.
6717 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
6718 (dwarf2_cu::addr_sized_int_type): ... this.
6719 (read_subrange_type): Update.
6720 (dwarf2_per_cu_data::addr_type): Rename to...
6721 (dwarf2_cu::addr_type): ... this.
6722 (set_die_type): Update.
6723
64874a40
SM
67242020-05-27 Simon Marchi <simon.marchi@efficios.com>
6725
6726 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
6727 data through per_cu->cu.
6728
4ab09049
SM
67292020-05-27 Simon Marchi <simon.marchi@efficios.com>
6730
6731 * dwarf2/read.c (lookup_dwo_comp_unit): Change
6732 dwarf2_per_cu_data parameter fo dwarf2_cu.
6733 (lookup_dwo_type_unit): Likewise.
6734 (read_cutu_die_from_dwo): Likewise.
6735 (lookup_dwo_unit): Likewise.
6736 (open_and_init_dwo_file): Likewise.
6737 (lookup_dwo_cutu): Likewise.
6738 (lookup_dwo_comp_unit): Likewise.
6739 (lookup_dwo_type_unit): Likewise.
6740 (cutu_reader::init_tu_and_read_dwo_dies): Update.
6741 (cutu_reader::cutu_reader): Update.
6742
47b14e86
SM
67432020-05-27 Simon Marchi <simon.marchi@efficios.com>
6744
6745 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
6746 parameter.
6747 (process_full_type_unit): Likewise.
6748 (process_queue): Update.
6749
43182c09
SM
67502020-05-27 Simon Marchi <simon.marchi@efficios.com>
6751
6752 * dwarf2/read.c (recursively_compute_inclusions): Add
6753 dwarf2_per_objfile parameter.
6754 (compute_compunit_symtab_includes): Likewise.
6755 (process_cu_includes): Update.
6756
7aa104c4
SM
67572020-05-27 Simon Marchi <simon.marchi@efficios.com>
6758
6759 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
6760 parameter.
6761 (create_type_unit_group): Update.
6762 (process_psymtab_comp_unit_reader): Update.
6763 (build_type_psymtabs_reader): Update.
6764
e3beb21d
SM
67652020-05-27 Simon Marchi <simon.marchi@efficios.com>
6766
6767 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
6768 object through m_this_cu->cu.
6769
d460f660
SM
67702020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6771
6772 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
6773 the info parameter.
6774 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
6775
ab432490
SM
67762020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6777
6778 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
6779 per_objfile parameter.
6780 (load_full_type_unit): Add per_objfile parameter.
6781 (read_signatured_type): Likewise.
6782 (load_full_comp_unit): Likewise.
6783 (load_cu): Likewise.
6784 (dw2_do_instantiate_symtab): Likewise.
6785 (dw2_get_file_names): Likewise.
6786 (dw2_map_symtabs_matching_filename): Update.
6787 (dw_expand_symtabs_matching_file_matcher): Update.
6788 (dw2_map_symbol_filenames): Update.
6789 (process_psymtab_comp_unit): Add per_objfile parameter.
6790 (build_type_psymtabs_1): Update.
6791 (process_skeletonless_type_unit): Update.
6792 (dwarf2_build_psymtabs_hard): Update.
6793 (load_partial_comp_unit): Add per_objfile parameter.
6794 (scan_partial_symbols): Update.
6795 (load_full_comp_unit): Add per_objfile parameter.
6796 (process_imported_unit_die): Update.
6797 (create_cus_hash_table): Update.
6798 (find_partial_die): Update.
6799 (dwarf2_read_addr_index): Update.
6800 (follow_die_offset): Update.
6801 (dwarf2_fetch_die_loc_sect_off): Update.
6802 (dwarf2_fetch_constant_bytes): Update.
6803 (dwarf2_fetch_die_type_sect_off): Update.
6804 (follow_die_sig_1): Update.
6805 (load_full_type_unit): Add per_objfile parameter.
6806 (read_signatured_type): Likewise.
6807
313bad1b
SM
68082020-05-27 Simon Marchi <simon.marchi@efficios.com>
6809
6810 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
6811 of objfile_name.
6812
c3699833
SM
68132020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6814
6815 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
6816 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
6817 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
6818 field.
6819 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
6820 (create_cus_from_index): Update.
6821 (dwarf2_read_gdb_index): Update.
6822 (create_cus_from_debug_names): Update.
6823 (dwarf2_read_debug_names): Update.
6824 (get_abbrev_section_for_cu): Update.
6825 (create_all_comp_units): Update.
6826 (read_attribute_value): Update.
6827 (get_debug_line_section): Update.
6828 * dwarf2/index-cache.c (index_cache::store): Update.
6829 * dwarf2/index-write.c (save_gdb_index_command): Update.
6830 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
6831
1859c670
SM
68322020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6833
6834 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
6835 member.
6836 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
6837 dwarf2_per_cu_data::per_bfd.
6838 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
6839 (create_type_unit_group): Likewise.
6840 (queue_comp_unit): Remove reference to
6841 per_cu->dwarf2_per_objfile.
6842 (maybe_queue_comp_unit): Likewise.
6843 (fill_in_sig_entry_from_dwo_entry): Assign new field.
6844 (create_cus_hash_table): Assign new field.
6845
5e22e966
SM
68462020-05-27 Simon Marchi <simon.marchi@efficios.com>
6847
6848 * dwarf2/read.c: Replace
6849 dwarf2_cu->per_cu->dwarf2_per_objfile references with
6850 dwarf2_cu->per_objfile throughout.
6851
97a1449a
SM
68522020-05-27 Simon Marchi <simon.marchi@efficios.com>
6853
6854 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
6855 parameter, don't use per_cu->dwarf2_per_objfile.
6856 (dw2_instantiate_symtab): Likewise.
6857 (dw2_find_last_source_symtab): Update.
6858 (dw2_map_expand_apply): Update.
6859 (dw2_lookup_symbol): Update.
6860 (dw2_expand_symtabs_for_function): Update.
6861 (dw2_expand_all_symtabs): Update.
6862 (dw2_expand_symtabs_with_fullname): Update.
6863 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
6864 don't use per_cu->dwarf2_per_objfile.
6865 (dw2_expand_marked_cus): Update.
6866 (dw2_find_pc_sect_compunit_symtab): Update.
6867 (dw2_debug_names_lookup_symbol): Update.
6868 (dw2_debug_names_expand_symtabs_for_function): Update.
6869 (dw2_debug_names_map_matching_symbols): Update.
6870 (dwarf2_psymtab::expand_psymtab): Update.
6871
9e021579
SM
68722020-05-27 Simon Marchi <simon.marchi@efficios.com>
6873
6874 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
6875 <per_objfile>: New member.
6876 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
6877 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
6878 call to dwarf2_cu.
6879 (cutu_reader::cutu_reader): Update.
6880 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
6881
ae090bdb
SM
68822020-05-27 Simon Marchi <simon.marchi@efficios.com>
6883
6884 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
6885 struct dwarf2_per_objfile.
6886 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
6887 dwarf2_per_bfd.
6888 * dwarf2/read.c (set_die_type): Update.
6889 (get_die_type_at_offset): Update.
6890
af758d11
SM
68912020-05-27 Tom Tromey <tom@tromey.com>
6892 Simon Marchi <simon.marchi@efficios.com>
6893
6894 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
6895 method.
6896 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
6897 get_symtab, set_symtab>: New methods.
6898 <m_symtabs>: New field.
6899 (struct dwarf2_psymtab): Derive from partial_symtab.
6900 <readin_p, get_compunit_symtab>: Declare methods.
6901 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
6902 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
6903 New methods.
6904 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
6905 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
6906 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
6907 (dw2_symtab_iter_next, dw2_print_stats)
6908 (dw2_expand_symtabs_with_fullname)
6909 (dw2_expand_symtabs_matching_one)
6910 (dw_expand_symtabs_matching_file_matcher)
6911 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
6912 (dw2_debug_names_iterator::next)
6913 (dw2_debug_names_map_matching_symbols)
6914 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
6915 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
6916 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
6917 New methods.
6918 (get_compunit_symtab, process_full_comp_unit)
6919 (process_full_type_unit): Update.
6920 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
6921
5989a64e
SM
69222020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6923
6924 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
6925 then introduce a new dwarf2_per_objfile type.
6926 <read_line_string>: Move to the new dwarf2_per_objfile type.
6927 <objfile>: Likewise.
6928 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
6929 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
6930 dwarf2_per_objfile->per_bfd.
6931 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
6932 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
6933 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
6934 (dwarf2_per_bfd::free_cached_comp_units): ... this.
6935 (dwarf2_has_info): Allocate dwarf2_per_bfd.
6936 (dwarf2_per_objfile::locate_sections): Rename to...
6937 (dwarf2_per_bfd::locate_sections): ... this.
6938 (dwarf2_per_objfile::get_cutu): Rename to...
6939 (dwarf2_per_bfd::get_cutu): ... this.
6940 (dwarf2_per_objfile::get_cu): Rename to...
6941 (dwarf2_per_bfd::get_cu): ... this.
6942 (dwarf2_per_objfile::get_tu): Rename to...
6943 (dwarf2_per_bfd::get_tu): ... this.
6944 (dwarf2_per_objfile::allocate_per_cu): Rename to...
6945 (dwarf2_per_bfd::allocate_per_cu): ... this.
6946 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
6947 (dwarf2_per_bfd::allocate_signatured_type): ... this.
6948 (get_gdb_index_contents_ftype): Change parameter from
6949 dwarf2_per_objfile to dwarf2_per_bfd.
6950 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
6951 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
6952
a50264ba
TT
69532020-05-27 Tom Tromey <tom@tromey.com>
6954 Simon Marchi <simon.marchi@efficios.com>
6955
6956 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
6957 (allocate_piece_closure): Set "per_objfile" member.
6958 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
6959 (locexpr_describe_location, loclist_describe_location): Use new
6960 member.
6961 * dwarf2/read.c (read_call_site_scope)
6962 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
6963 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
6964 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
6965 handle_data_member_location): Set per_objfile member.
6966 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
6967 member.
6968 (struct dwarf2_loclist_baton) <per_objfile>: New member.
6969
d3473f0c
TT
69702020-05-27 Tom Tromey <tom@tromey.com>
6971
6972 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
6973 allocate_signatured_type>: Declare new methods.
6974 <m_num_psymtabs>: New member.
6975 (struct dwarf2_per_cu_data) <index>: New member.
6976 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
6977 (dwarf2_per_objfile::allocate_signatured_type): New methods.
6978 (create_cu_from_index_list): Use allocate_per_cu.
6979 (create_signatured_type_table_from_index)
6980 (create_signatured_type_table_from_debug_names)
6981 (create_debug_type_hash_table, add_type_unit)
6982 (read_comp_units_from_section): Use allocate_signatured_type.
6983
5717c425
TT
69842020-05-27 Tom Tromey <tom@tromey.com>
6985
6986 * psymtab.c (partial_map_expand_apply)
6987 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
6988 (psym_lookup_global_symbol_language)
6989 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
6990 (psym_print_stats, psym_expand_symtabs_for_function)
6991 (psym_map_symbol_filenames, psym_map_matching_symbols)
6992 (psym_expand_symtabs_matching)
6993 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
6994 (maintenance_check_psymtabs): Update.
6995 * psympriv.h (struct partial_symtab) <readin_p,
6996 get_compunit_symtab>: Add objfile parameter.
6997 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
6998 Likewise.
6999 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
7000 get_compunit_symtab>: Likewise.
7001 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
7002
45940949
TT
70032020-05-27 Tom Tromey <tom@tromey.com>
7004
7005 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
7006 member.
7007 * dwarf2/read.c (delete_file_name_entry): Fix comment.
7008 (create_cu_from_index_list)
7009 (create_signatured_type_table_from_index)
7010 (create_signatured_type_table_from_debug_names)
7011 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
7012 (dwarf2_create_include_psymtab)
7013 (create_debug_type_hash_table, add_type_unit)
7014 (create_type_unit_group, read_comp_units_from_section)
7015 (dwarf2_compute_name, create_cus_hash_table)
7016 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
7017 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
7018 obstack.
7019 (dw2_get_real_path): Likewise. Change argument to
7020 dwarf2_per_objfile.
7021
f8c6d152
LM
70222020-05-27 Luis Machado <luis.machado@linaro.org>
7023
7024 PR tdep/26000
7025 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
7026 for ldrd (immediate).
7027
e98d2e6d
PW
70282020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7029
7030 * command.h: Add comment giving the name of class_tui.
7031 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
7032 create the fake command for the help for class_tui.
7033
53a47a3e
TT
70342020-05-26 Tom Tromey <tromey@adacore.com>
7035
7036 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
7037 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
7038 (val_atr): New function.
7039 (value_val_atr): Use it.
7040 * ada-valprint.c (print_optional_low_bound): Change low bound
7041 handling for enums.
7042 (val_print_packed_array_elements): Don't call discrete_position.
7043 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
7044 discrete_position for enum types.
7045 * language.c (default_print_array_index): Change type.
7046 * language.h (struct language_defn) <la_print_array_index>: Add
7047 index_type parameter, change type of index_value.
7048 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
7049 (default_print_array_index): Update.
7050 * valprint.c (maybe_print_array_index): Don't call
7051 value_from_longest. Update.
7052 (value_print_array_elements): Don't call discrete_position.
7053
0bc2354b
TT
70542020-05-26 Tom Tromey <tromey@adacore.com>
7055
7056 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
7057 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
7058
1218a4bf
CDA
70592020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
7060
7061 PR gdb/13519
7062 * avr-tdep.c (avr_integer_to_address): Return data or code
7063 address accordingly to the second 'type' argument of the
7064 function.
7065
92651b1d
MW
70662020-05-25 Michael Weghorn <m.weghorn@posteo.de>
7067
7068 * infcmd.c, inferior.h: (construct_inferior_arguments):
7069 Moved function from here to gdbsupport/common-inferior.{h,cc}
7070
0a4f5f8c
TT
70712020-05-23 Tom Tromey <tom@tromey.com>
7072
7073 Revert commit eca1f90c:
7074 * NEWS: Remove entry for completion styling.
7075 * completer.c (_rl_completion_prefix_display_length): Move
7076 declaration later.
7077 (gdb_fnprint): Revert.
7078 (gdb_display_match_list_1): Likewise.
7079 * cli/cli-style.c (completion_prefix_style)
7080 (completion_difference_style, completion_suffix_style): Remove.
7081 (_initialize_cli_style): Revert.
7082 * cli/cli-style.h (completion_prefix_style)
7083 (completion_difference_style, completion_suffix_style): Don't
7084 declare.
7085
e08bd6c5
PA
70862020-05-24 Pedro Alves <palves@redhat.com>
7087
7088 * symtab.c (completion_list_add_name): Return boolean indication
7089 of whether the symbol matched.
7090 (completion_list_add_symbol): Don't try to remove C++ aliases if
7091 the symbol didn't match in the first place.
7092 * symtab.h (completion_list_add_name): Return bool.
7093
ceacbf6e
SM
70942020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
7095
7096 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
7097 type::field.
7098
26f16254
JB
70992020-05-23 Joel Brobecker <brobecker@adacore.com>
7100
7101 GDB 9.2 released.
7102
eca1f90c
TT
71032020-05-23 Tom Tromey <tom@tromey.com>
7104
7105 * NEWS: Add entry for completion styling.
7106 * completer.c (_rl_completion_prefix_display_length): Move
7107 declaration earlier.
7108 (gdb_fnprint): Use completion_style.
7109 (gdb_display_match_list_1): Likewise.
7110 * cli/cli-style.c (completion_prefix_style)
7111 (completion_difference_style, completion_suffix_style): New
7112 globals.
7113 (_initialize_cli_style): Register new globals.
7114 * cli/cli-style.h (completion_prefix_style)
7115 (completion_difference_style, completion_suffix_style): Declare.
7116
51e2cfa2
PA
71172020-05-23 Pedro Alves <palves@redhat.com>
7118
7119 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
7120 (parse_escape): Use ISDIGIT instead of isdigit.
7121 (puts_debug): Use gdb_isprint instead of isprint.
7122 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
7123 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
7124 ISSPACE instead of isspace.
7125 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
7126 instead of isspace.
7127 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
7128 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
7129 instead of isxdigit and ISDIGIT instead of isdigit.
7130
80fc5e77
SM
71312020-05-22 Simon Marchi <simon.marchi@efficios.com>
7132
7133 * gdbtypes.h (struct type) <field>: New method.
7134 (TYPE_FIELDS): Remove, replace all uses with either type::fields
7135 or type::field.
7136
3cabb6b0
SM
71372020-05-22 Simon Marchi <simon.marchi@efficios.com>
7138
7139 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
7140 (TYPE_FIELDS): Use type::fields. Change all call sites that
7141 modify the propery to use type::set_fields instead.
7142
1f704f76
SM
71432020-05-22 Simon Marchi <simon.marchi@efficios.com>
7144
7145 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
7146 type::num_fields instead.
7147
5e33d5f4
SM
71482020-05-22 Simon Marchi <simon.marchi@efficios.com>
7149
7150 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
7151 methods.
7152 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
7153 that modify the number of fields to use type::set_num_fields
7154 instead.
7155
9392ebb3
TT
71562020-05-22 Tom Tromey <tromey@adacore.com>
7157
7158 * compile/compile-object-load.h (munmap_list_free): Don't
7159 declare.
7160
7c13f4e8
AB
71612020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
7162
7163 * annotate.c (annotate_source_line): Update return type, add call
7164 to update current symtab and line.
7165 * annotate.h (annotate_source_line): Update return type, and
7166 extend header comment.
7167 * source.c (info_line_command): Check annotation_level before
7168 calling annotate_source_line.
7169 * stack.c (print_frame_info): If calling annotate_source_line
7170 returns true, then don't print any other source line information.
7171
aa370940
SM
71722020-05-21 Simon Marchi <simon.marchi@efficios.com>
7173
7174 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
7175
84d53fa9
SM
71762020-05-21 Simon Marchi <simon.marchi@efficios.com>
7177
7178 * coffread.c (patch_type): Remove NULL check before xfree.
7179 * corefile.c (set_gnutarget): Likewise.
7180 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
7181 * exec.c (build_section_table): Likewise.
7182 * remote.c (remote_target::pass_signals): Likewise.
7183 * utils.c (n_spaces): Likewise.
7184 * cli/cli-script.c (document_command): Likewise.
7185 * i386-windows-tdep.c (core_process_module_section): Likewise.
7186 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
7187
9d428aae
SM
71882020-05-20 Simon Marchi <simon.marchi@efficios.com>
7189
7190 * symfile.c (reread_symbols): Clear objfile's section_offsets
7191 vector and section indices, re-compute them by calling
7192 sym_offsets.
7193
250106a7
TT
71942020-05-20 Tom Tromey <tromey@adacore.com>
7195
7196 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 7197 (desc_one_bound, desc_index_type): Compute field name.
250106a7 7198
9a0bacfb
TV
71992020-05-20 Tom de Vries <tdevries@suse.de>
7200
7201 PR symtab/25833
7202 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
7203
7b958a48
AM
72042020-05-20 Alan Modra <amodra@gmail.com>
7205
7206 PR 25993
7207 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
7208 bfd_set_filename.
7209 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
7210 passed to bfd_set_filename.
7211 * symfile-mem.c (add_vsyscall_page): Likewise for string
7212 passed to symbol_file_add_from_memory.
7213 (symbol_file_add_from_memory): Make name param a const char* and
7214 don't strdup.
7215
c7e97679
AM
72162020-05-20 Alan Modra <amodra@gmail.com>
7217
7218 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
7219 rather than accessing bfd->filename directly.
7220 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
7221 and use bfd_section_name.
7222 * dwarf2/frame.c (decode_frame_entry): Likewise.
7223 * exec.c (exec_set_section_address): Likewise.
7224 * solib-aix.c (solib_aix_bfd_open): Likewise.
7225 * stap-probe.c (get_stap_base_address): Likewise.
7226 * symfile.c (reread_symbols): Likewise.
7227
563c591b
TT
72282020-05-19 Tom Tromey <tromey@adacore.com>
7229
7230 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
7231
f408d82c
SM
72322020-05-19 Simon Marchi <simon.marchi@efficios.com>
7233
7234 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
7235
98c59b52
PA
72362020-05-19 Pedro Alves <palves@redhat.com>
7237
7238 * NEWS (set exec-file-mismatch): Adjust entry.
7239 * exec.c: Include "build-id.h".
7240 (validate_exec_file): Try to match build IDs instead of filenames.
7241 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
7242 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
7243 and pass down 'warn_if_slow'.
7244 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
7245 gdb_bfd_open_closure to pass it down.
7246 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
7247
4111f652
PA
72482020-05-19 Pedro Alves <palves@redhat.com>
7249
7250 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
7251 * target.c (target_fileio_open_1): Rename to target_fileio_open
7252 and make extern. Use bool.
7253 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
7254 (target_fileio_read_alloc_1): Adjust.
7255 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
7256 (target_fileio_open_warn_if_slow): Delete declaration.
7257
ad80db5b
PA
72582020-05-19 Pedro Alves <palves@redhat.com>
7259
7260 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
7261 Adjust all callers.
7262
1d6ce4d3
YS
72632020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
7264
7265 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
7266 whether disp is negative.
7267
9005fbbb
SM
72682020-05-19 Simon Marchi <simon.marchi@efficios.com>
7269
7270 * symfile.h (struct symfile_segment_data)
7271 <~symfile_segment_data>: Remove.
7272 <segment_info>: Change to std::vector.
7273 * symfile.c (default_symfile_segments): Update.
7274 * elfread.c (elf_symfile_segments): Update.
7275
68b888ff
SM
72762020-05-19 Simon Marchi <simon.marchi@efficios.com>
7277
7278 * symfile.h (struct symfile_segment_data) <struct segment>: New.
7279 <segments>: New.
7280 <segment_bases, segment_sizes>: Remove.
7281 * symfile.c (default_symfile_segments): Update.
7282 * elfread.c (elf_symfile_segments): Update.
7283 * remote.c (remote_target::get_offsets): Update.
7284 * solib-target.c (solib_target_relocate_section_addresses):
7285 Update.
7286
62982abd
SM
72872020-05-19 Simon Marchi <simon.marchi@efficios.com>
7288
7289 * symfile.h (struct symfile_segment_data): Initialize fields.
7290 <~symfile_segment_data>: Add.
7291 (symfile_segment_data_up): New.
7292 (struct sym_fns) <sym_segments>: Return a
7293 symfile_segment_data_up.
7294 (default_symfile_segments): Return a symfile_segment_data_up.
7295 (free_symfile_segment_data): Remove.
7296 (get_symfile_segment_data): Return a symfile_segment_data_up.
7297 * symfile.c (default_symfile_segments): Likewise.
7298 (get_symfile_segment_data): Likewise.
7299 (free_symfile_segment_data): Remove.
7300 (symfile_find_segment_sections): Update.
7301 * elfread.c (elf_symfile_segments): Return a
7302 symfile_segment_data_up.
7303 * remote.c (remote_target::get_offsets): Update.
7304 * solib-target.c (solib_target_relocate_section_addresses):
7305 Update.
7306 * symfile-debug.c (debug_sym_segments): Return a
7307 symfile_segment_data_up.
7308
7f204339
RO
73092020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7310
e52a0f1b
RO
7311 PR build/25981
7312 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
7313 Hardcode register numbers.
7314
7f204339
RO
7315 PR build/25981
7316 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
7317 procfs_find_LDT_entry): Remove.
7318 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
7319 procfs_find_LDT_entry): Remove.
7320 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
7321 Remove.
7322
7f32a4d5
PA
73232020-05-17 Pedro Alves <palves@redhat.com>
7324 Andrew Burgess <andrew.burgess@embecosm.com>
7325 Keno Fischer <keno@juliacomputing.com>
7326
7327 PR gdb/25741
7328 * breakpoint.c (build_target_condition_list): Update comments.
7329 (build_target_command_list): Update comments and skip matching
7330 locations.
7331 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
7332 a separate function. Simplify "set breakpoint auto-hw off"
7333 handling.
7334 (insert_breakpoints): Update comment.
7335 (tracepoint_locations_match): New parameter. For breakpoints,
7336 compare location types too, if the caller wants to.
7337 (handle_automatic_hardware_breakpoints): New functions.
7338 (bp_location_is_less_than): Also sort by location type and
7339 hardware breakpoint length.
7340 (update_global_location_list): Handle "set breakpoint auto-hw on"
7341 here.
7342 (update_breakpoint_locations): Ask breakpoint_locations_match to
7343 ignore location types.
7344
7d93a1e0
SM
73452020-05-16 Simon Marchi <simon.marchi@efficios.com>
7346
7347 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
7348 type::name instead.
7349
d0e39ea2
SM
73502020-05-16 Simon Marchi <simon.marchi@efficios.com>
7351
7352 * gdbtypes.h (struct type) <name, set_name>: New methods.
7353 (TYPE_CODE): Use type::name. Change all call sites used to set
7354 the name to use type::set_name instead.
7355
2dab0c7b
TT
73562020-05-16 Tom Tromey <tom@tromey.com>
7357
7358 * top.c (quit_force): Update.
7359 * infrun.c (handle_no_resumed): Update.
7360 * top.h (all_uis): New function.
7361 (ALL_UIS): Remove.
7362
59f7bd8d
SM
73632020-05-16 Simon Marchi <simon.marchi@efficios.com>
7364
7365 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
7366
9bf058f0
PA
73672020-05-16 Pedro Alves <palves@redhat.com>
7368
7369 * ia64-linux-nat.c
7370 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
7371 Declare method.
7372 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
7373
8f86ae1a
SM
73742020-05-15 Simon Marchi <simon.marchi@efficios.com>
7375
7376 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
7377 (sparc64_adi_info): Likewise.
7378
d6bc0792
TT
73792020-05-15 Tom Tromey <tom@tromey.com>
7380
7381 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
7382 block_objfile.
7383 (lookup_objfile_from_block): Remove.
7384 (lookup_symbol_in_block, lookup_symbol_in_static_block)
7385 (lookup_global_symbol): Use block_objfile.
7386 * symtab.h (lookup_objfile_from_block): Don't declare.
7387 * printcmd.c (clear_dangling_display_expressions): Use
7388 block_objfile.
7389 * parse.c (operator_check_standard): Use block_objfile.
7390
8c14c3a3
TT
73912020-05-15 Tom Tromey <tom@tromey.com>
7392
7393 * language.c (language_alloc_type_symbol): Set
7394 SYMBOL_SECTION.
7395 * symtab.c (initialize_objfile_symbol): Remove.
7396 (allocate_symbol): Remove.
7397 (allocate_template_symbol): Remove.
7398 * dwarf2/read.c (fixup_go_packaging): Use "new".
7399 (new_symbol): Use "new".
7400 (read_variable): Don't call initialize_objfile_symbol. Use
7401 "new".
7402 (read_func_scope): Use "new".
7403 * xcoffread.c (process_xcoff_symbol): Don't call
7404 initialize_objfile_symbol.
7405 (SYMBOL_DUP): Remove.
7406 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
7407 "new".
7408 * symtab.h (allocate_symbol, initialize_objfile_symbol)
7409 (allocate_template_symbol): Don't declare.
7410 (struct symbol): Add copy constructor. Change defaults.
7411 * jit.c (finalize_symtab): Use "new".
7412 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
7413 Use "new".
7414 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
7415 (common_block_end): Use "new".
7416 * mdebugread.c (parse_symbol): Use "new".
7417 (new_symbol): Likewise.
7418
5b4a1a8d
PW
74192020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7420
7421 * NEWS: Mention changes to help and apropos.
7422
57b4f16e
PW
74232020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7424
7425 * command.h (enum command_class): Improve comments, document
7426 that class_alias is for user-defined aliases, give the class
7427 name for each class, remove unused class_xdb.
7428 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
7429 * breakpoint.c (_initialize_breakpoint): Replace class_alias
7430 by a precise class.
7431 * infcmd.c (_initialize_infcmd): Likewise.
7432 * reverse.c (_initialize_reverse): Likewise.
7433 * stack.c (_initialize_stack): Likewise.
7434 * symfile.c (_initialize_symfile): Likewise.
7435 * tracepoint.c (_initialize_tracepoint): Likewise.
7436
7c05caf7
PW
74372020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7438
7439 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
7440 when their aliased command is traversed.
7441 (help_cmd): Add fput_command_names_styled call to
7442 output command name and aliases when command has an alias.
7443
3b3aaacb
PW
74442020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7445
7446 * cli/cli-decode.h (help_cmd_list): Remove declaration.
7447 * cli/cli-decode.c (help_cmd_list): Declare as static,
7448 remove prefix argument, use bool for recurse arg, rework to show the aliases of
7449 a command together with the command.
7450 (fput_command_name_styled, fput_command_names_styled): New functions.
7451 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
7452 fput_command_name_styled.
7453 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
7454 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
7455
7aa1b46f
PW
74562020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7457
7458 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
7459 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
7460 * command.h (cmd_show_list): Likewise.
7461 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
7462 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
7463
89bcba74
PW
74642020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7465
7466 * unittests/command-def-selftests.c (traverse_command_structure):
7467 Verify all commands of a list have the same prefix command and
7468 that only the top cmdlist commands have a null prefix.
7469
3f4d92eb
PW
74702020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7471
7472 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
7473 as prefix, not one of its aliases.
7474 (set_cmd_prefix): Remove.
7475 (do_add_cmd): Centralize the setting of the prefix of a command, when
7476 command is defined after its full chain of prefix commands.
7477 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
7478 (add_setshow_cmd_full): Likewise.
7479 (update_prefix_field_of_prefixed_commands): New function.
7480 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
7481 update_prefix_field_of_prefixed_commands.
7482 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
7483 addresses of remote_set_cmdlist and remote_show_cmdlist given
7484 as argument, not the address of an argument.
7485 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
7486 * gdb/remote.c (_initialize_remote): Likewise.
7487
0605465f
PW
74882020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7489
7490 * cli/cli-cmds.c (alias_command): Check for an existing alias
7491 using lookup_cmd_composition, as valid_command_p is too strict
7492 and forbids aliases that are the prefix of an existing alias
7493 or command.
7494 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
7495 command is properly recognised as a valid command.
7496
58e6ac70
PW
74972020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7498
7499 * unittests/help-doc-selftests.c: Rename to
7500 unittests/command-def-selftests.c
7501 * unittests/command-def-selftests.c (help_doc_tests): Update some
7502 comments.
7503 (command_structure_tests, traverse_command_structure): New namespace
7504 and function.
7505 (command_structure_invariants_tests): New function.
7506 (_initialize_command_def_selftests) Renamed from
7507 _initialize_help_doc_selftests, register command_structure_invariants
7508 selftest.
7509
a7b9ceb8
PW
75102020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7511
7512 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
7513 an alias of 'show'.
7514
b2188a06
JB
75152020-05-15 Joel Brobecker <brobecker@adacore.com>
7516
7517 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
7518 ada_is_fixed_point_type. Update all callers.
7519 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
7520 all callers.
7521 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
7522 Update all callers.
7523 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
7524 print_fixed_point_type. Update all callers.
7525 * ada-valprint.c (ada_value_print_num): Replace call to
7526 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
7527
a51951c2
KB
75282020-05-14 Kevin Buettner <kevinb@redhat.com>
7529
7530 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
7531 processors.
7532 (cpu_supports_bts): Add CV_AMD case.
7533
29d6859f
LM
75342020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
7535 Simon Marchi <simon.marchi@efficios.com>
7536
7537 * infrun.c (stop_all_threads): Collect multiple wait events at
7538 each pass.
7539
78134374
SM
75402020-05-14 Simon Marchi <simon.marchi@efficios.com>
7541
7542 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
7543 type::code instead.
7544
67607e24
SM
75452020-05-14 Simon Marchi <simon.marchi@efficios.com>
7546
7547 * gdbtypes.h (struct type) <code, set_code>: New methods.
7548 (TYPE_CODE): Use type::code. Change all call sites used to set
7549 the code to use type::set_code instead.
7550
a05575d3
TBA
75512020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7552 Tom de Vries <tdevries@suse.de>
7553 Pedro Alves <palves@redhat.com>
7554
7555 PR threads/25478
7556 * infrun.c (stop_all_threads): Do NOT ignore
7557 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
7558 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
7559 received.
7560 (handle_no_resumed): Remove code handling a live inferior with no
7561 threads.
7562 * remote.c (has_single_non_exited_thread): New.
7563 (remote_target::update_thread_list): Do not delete a thread if is
7564 the last thread of the process.
7565 * thread.c (thread_select): Call delete_exited_threads instead of
7566 prune_threads.
7567
6ad82919
TBA
75682020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7569
7570 * infrun.c (stop_all_threads): Enable/disable thread events of all
7571 targets. Move a debug message denoting the end of the function
7572 into the SCOPED_EXIT block.
7573
d890404b
TBA
75742020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7575
7576 * process-stratum-target.h: Include <set>.
7577 (all_non_exited_process_targets, switch_to_target_no_thread): New
7578 function declarations.
7579 * process-stratum-target.c (all_non_exited_process_targets)
7580 (switch_to_target_no_thread): New function implementations.
7581
293b3ebc
TBA
75822020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7583
7584 * infrun.c (handle_inferior_event): Extract out a piece of code
7585 into...
7586 (mark_non_executing_threads): ...this new function.
7587
7ca9b62a
TBA
75882020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7589
7590 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
7591 use.
7592
fc75c28b
TBA
75932020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7594
7595 * regcache.c (regcache_read_pc_protected): New function
7596 implementation that returns 0 if the PC cannot read via
7597 'regcache_read_pc'.
7598 * infrun.c (proceed): Call 'regcache_read_pc_protected'
7599 instead of 'regcache_read_pc'.
7600 (keep_going_pass_signal): Ditto.
7601
a89febbd
TT
76022020-05-13 Tom Tromey <tromey@adacore.com>
7603
7604 * ada-lang.c (align_value): Remove.
7605 (ada_template_to_fixed_record_type_1): Use align_up.
7606
f7e23710
TBA
76072020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7608
7609 * async-event.c: Update the copyright year.
7610 * async-event.h: Update the copyright year.
7611
02ff80c2
SM
76122020-05-12 Simon Marchi <simon.marchi@efficios.com>
7613
7614 * objfiles.h (is_addr_in_objfile,
7615 shared_objfile_contains_address_p): Return bool.
7616 * objfile.c (is_addr_in_objfile,
7617 shared_objfile_contains_address_p): Return bool.
7618
4fd6c7e8
TT
76192020-05-11 Tom Tromey <tromey@adacore.com>
7620
7621 * cli/cli-cmds.c (info_command): Restore.
7622 (_initialize_cli_cmds): Use add_prefix_command for "info".
7623 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
7624
5eb68a39
TT
76252020-05-11 Tom Tromey <tromey@adacore.com>
7626
7627 * ada-lang.c (ada_value_primitive_field): Now public.
7628 * ada-lang.h (ada_value_primitive_field): Declare.
7629 * ada-valprint.c (print_field_values): Use
7630 ada_value_primitive_field for wrapper fields.
7631
7666722f
TV
76322020-05-11 Tom de Vries <tdevries@suse.de>
7633
7634 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
7635 MODULE_DOMAIN.
7636
3ee6bb11
TV
76372020-05-11 Tom de Vries <tdevries@suse.de>
7638
7639 PR symtab/25941
7640 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
7641 with length 0, if not gdb-produced.
7642 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
7643
43434996
TV
76442020-05-09 Tom de Vries <tdevries@suse.de>
7645
7646 PR gdb/25955
7647 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
7648 calculation.
7649
2f78cffc
TT
76502020-05-09 Tom Tromey <tom@tromey.com>
7651
7652 * top.c (server_command): Now bool.
7653 * top.h (server_command): Now bool.
7654
4f7bc5ed
TT
76552020-05-08 Tom Tromey <tromey@adacore.com>
7656
7657 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
7658 already being processed.
7659
8be4b118
TT
76602020-05-08 Tom Tromey <tom@tromey.com>
7661
7662 * printcmd.c (struct display) <next>: Remove.
7663 <display>: New constructor.
7664 <exp_string>: Now a std::string.
7665 <enabled_p>: Now a bool.
7666 (display_number): Move definition earlier.
7667 (displays): Rename from display_chain. Now a std::vector.
7668 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
7669 (display_command): Update.
7670 (do_one_display, disable_display)
7671 (enable_disable_display_command, do_enable_disable_display):
7672 Update.
7673 (free_display): Remove.
7674 (clear_displays): Rewrite.
7675 (delete_display): Update.
7676 (map_display_numbers): Use function_view. Remove "data"
7677 parameter. Update.
7678 (do_delete_display): Remove.
7679 (undisplay_command): Update.
7680 (do_one_display, do_displays, disable_display)
7681 (info_display_command): Update.
7682 (do_enable_disable_display): Remove.
7683 (enable_disable_display_command)
7684 (clear_dangling_display_expressions): Update.
7685
94c93c35
TT
76862020-05-08 Tom Tromey <tom@tromey.com>
7687
7688 * symtab.c (set_symbol_cache_size)
7689 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
7690 (maintenance_print_symbol_cache_statistics): Update.
7691 * symmisc.c (print_symbol_bcache_statistics)
7692 (print_objfile_statistics, maintenance_print_objfiles)
7693 (maintenance_info_symtabs, maintenance_check_symtabs)
7694 (maintenance_expand_symtabs, maintenance_info_line_tables):
7695 Update.
7696 * symfile-debug.c (set_debug_symfile): Update.
7697 * source.c (forget_cached_source_info): Update.
7698 * python/python.c (gdbpy_progspaces): Update.
7699 * psymtab.c (maintenance_info_psymtabs): Update.
7700 * probe.c (parse_probes): Update.
7701 * linespec.c (iterate_over_all_matching_symtabs)
7702 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
7703 * guile/scm-progspace.c (gdbscm_progspaces): Update.
7704 * exec.c (exec_target::close): Update.
7705 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
7706 * breakpoint.c (print_one_breakpoint_location)
7707 (create_longjmp_master_breakpoint)
7708 (create_std_terminate_master_breakpoint): Update.
7709 * progspace.c (program_spaces): Now a std::vector.
7710 (maybe_new_address_space): Update.
7711 (add_program_space): Remove.
7712 (program_space::program_space): Update.
7713 (remove_program_space): Update.
7714 (number_of_program_spaces): Remove.
7715 (print_program_space, update_address_spaces): Update.
7716 * progspace.h (program_spaces): Change type.
7717 (ALL_PSPACES): Remove.
7718 (number_of_program_spaces): Don't declare.
7719 (struct program_space) <next>: Remove.
7720
a1fd1ac9
TT
77212020-05-08 Tom Tromey <tom@tromey.com>
7722
7723 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
7724 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
7725 (enable_break): Update.
7726 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
7727 (frv_fdpic_find_canonical_descriptor): Update.
7728 (frv_fetch_objfile_link_map): Update.
7729 * progspace.c (program_space::free_all_objfiles): Update.
7730 (program_space::solibs): New method.
7731 * progspace.h (struct program_space) <solibs>: New method.
7732 * solist.h (master_so_list): Don't declare.
7733 (ALL_SO_LIBS): Remove.
7734 * solib.h (so_list_head): Remove.
7735 (update_solib_list): Update comment.
7736 * solib.c (master_so_list): Remove.
7737 (solib_used, update_solib_list, solib_add)
7738 (info_sharedlibrary_command, clear_solib)
7739 (reload_shared_libraries_1, remove_user_added_objfile): Update.
7740
38eae084
TT
77412020-05-08 Tom Tromey <tom@tromey.com>
7742
7743 * extension.c (extension_languages): Now a std::array.
7744 (ALL_EXTENSION_LANGUAGES): Remove.
7745 (get_ext_lang_defn, get_ext_lang_of_file)
7746 (eval_ext_lang_from_control_command): Update.
7747 (finish_ext_lang_initialization)
7748 (auto_load_ext_lang_scripts_for_objfile)
7749 (ext_lang_type_printers::ext_lang_type_printers)
7750 (apply_ext_lang_type_printers)
7751 (ext_lang_type_printers::~ext_lang_type_printers)
7752 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
7753 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
7754 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
7755 (get_matching_xmethod_workers, ext_lang_colorize)
7756 (ext_lang_before_prompt): Update.
7757 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
7758
596dc4ad
TT
77592020-05-08 Tom Tromey <tom@tromey.com>
7760
7761 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
7762 overload.
7763 <swap_string, m_string>: Remove.
7764 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
7765 Update.
7766 * stabsread.c (define_symbol, read_type): Update.
7767 * linespec.c (find_linespec_symbols): Update.
7768 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
7769 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
7770 * dbxread.c (read_dbx_symtab): Update.
7771 * cp-support.h (cp_canonicalize_string_full)
7772 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
7773 Return unique_xmalloc_ptr.
7774 * cp-support.c (inspect_type): Update.
7775 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
7776 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
7777 Likewise.
7778 * c-typeprint.c (print_name_maybe_canonical): Update.
7779 * break-catch-throw.c (check_status_exception_catchpoint):
7780 Update.
7781
bf4cb9be
TV
77822020-05-08 Tom de Vries <tdevries@suse.de>
7783
7784 * infrun.c (follow_fork): Copy current_line and current_symtab to
7785 child thread.
7786
a1b68f28
SM
77872020-05-07 Simon Marchi <simon.marchi@efficios.com>
7788
7789 * async-event.c (struct async_signal_handler, struct
7790 async_event_handler): Reformat, remove typedef.
7791
98d48915
SM
77922020-05-07 Simon Marchi <simon.marchi@efficios.com>
7793
7794 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
7795 access thistype->main_type->dyn_prop_list directly.
7796
7aa91313
SM
77972020-05-07 Simon Marchi <simon.marchi@efficios.com>
7798
7799 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
7800 (remove_dyn_prop): Remove. Update all users to use
7801 type::remove_dyn_prop.
7802 * gdbtypes.c (remove_dyn_prop): Rename to...
7803 (type::remove_dyn_prop): ... this.
7804
5c54719c
SM
78052020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
7806
7807 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
7808 (add_dyn_prop): Remove. Update all users to use
7809 type::add_dyn_prop.
7810 * gdbtypes.c (add_dyn_prop): Rename to...
7811 (type::add_dyn_prop): ... this.
7812
24e99c6c
SM
78132020-05-07 Simon Marchi <simon.marchi@efficios.com>
7814
7815 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
7816 (get_dyn_prop): Remove. Update all users to use
7817 type::dyn_prop.
7818 * gdbtypes.c (get_dyn_prop): Rename to...
7819 (type::dyn_prop): ... this.
7820
0d4bf016
SM
78212020-05-06 Simon Marchi <simon.marchi@efficios.com>
7822
7823 * gdbtypes.h (struct main_type) <flag_static>: Remove.
7824
ac4a4f1c
SM
78252020-05-06 Simon Marchi <simon.marchi@efficios.com>
7826
7827 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
7828 instruction, skip it if it's there.
7829
a3bbacc1
SM
78302020-05-05 Simon Marchi <simon.marchi@efficios.com>
7831
7832 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
7833
c3236f84
SM
78342020-05-04 Simon Marchi <simon.marchi@efficios.com>
7835
7836 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
7837 * gdbtypes.c (recursive_dump_type): Remove use of
7838 TYPE_INCOMPLETE.
7839
3b6acaee
TT
78402020-05-03 Tom Tromey <tom@tromey.com>
7841
7842 * breakpoint.c (catch_command, tcatch_command): Remove.
7843 (_initialize_breakpoint): Use add_basic_prefix_cmd,
7844 add_show_prefix_cmd.
7845 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
7846 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
7847 Remove.
7848 (add_internal_problem_command): Use add_basic_prefix_cmd,
7849 add_show_prefix_cmd.
7850 * mips-tdep.c (set_mipsfpu_command): Remove.
7851 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
7852 * dwarf2/index-cache.c (set_index_cache_command): Remove.
7853 (_initialize_index_cache): Use add_basic_prefix_cmd.
7854 * memattr.c (dummy_cmd): Remove.
7855 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
7856 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
7857 (_initialize_tui_win): Use add_basic_prefix_cmd,
7858 add_show_prefix_cmd.
7859 * cli/cli-logging.c (set_logging_command): Remove.
7860 (_initialize_cli_logging): Use add_basic_prefix_cmd,
7861 add_show_prefix_cmd.
7862 (show_logging_command): Remove.
7863 * target.c (target_command): Remove.
7864 (add_target): Use add_basic_prefix_cmd.
7865
a51119cd
HD
78662020-05-02 Hannes Domani <ssbssa@yahoo.de>
7867
7868 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
7869
652fc23a 78702020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 7871
652fc23a
PW
7872 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
7873 info_command.
7874
117539e6
KR
78752020-04-30 Kamil Rytarowski <n54@gmx.com>
7876
7877 * nbsd-nat.c (nbsd_enable_proc_events)
7878 (nbsd_nat_target::post_startup_inferior): Add.
7879 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
7880 (nbsd_nat_target::update_thread_list): Rewrite.
7881 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
7882 "PTRACE_LWP_CREATE".
7883 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
7884
102e38eb 78852020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 7886
102e38eb
PW
7887 * stack.c (_initialize_stack): Remove duplicated creation
7888 of "frame" command and "f" alias.
7889
ee9d1e5f
HD
78902020-04-30 Hannes Domani <ssbssa@yahoo.de>
7891
7892 PR gdb/18706
7893 * gdbtypes.c (check_typedef): Calculate size of array of
7894 stubbed type.
7895
627c7fb8
HD
78962020-04-30 Hannes Domani <ssbssa@yahoo.de>
7897
7898 PR gdb/15559
7899 * i386-tdep.c (i386_push_dummy_call): Call
7900 i386_thiscall_push_dummy_call.
7901 (i386_thiscall_push_dummy_call): New function.
7902 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
7903 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
7904 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
7905
ffc2844e
SM
79062020-04-29 Simon Marchi <simon.marchi@efficios.com>
7907
7908 * gdbarch.sh (do_read): Add shellcheck disable directive for
7909 warning SC2162.
7910
1207375d
SM
79112020-04-29 Simon Marchi <simon.marchi@efficios.com>
7912
7913 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
7914 "referenced but not assigned" warning.
7915
9fdb2916
SM
79162020-04-29 Simon Marchi <simon.marchi@efficios.com>
7917
7918 * gdbarch.sh: Remove code that sets fallbackdefault.
7919
759cea5e
SM
79202020-04-29 Simon Marchi <simon.marchi@efficios.com>
7921
7922 * gdbarch.sh: Use shell operators && and || instead of
7923 -a and -o.
7924
cb02ab24
SM
79252020-04-29 Simon Marchi <simon.marchi@efficios.com>
7926
7927 * gdbarch.sh: Use $(...) instead of `...`.
7928
a6fc5ffc
SM
79292020-04-29 Simon Marchi <simon.marchi@efficios.com>
7930
7931 * gdbarch.sh: Use double quotes around variables.
7932
8d113d13
SM
79332020-04-29 Simon Marchi <simon.marchi@efficios.com>
7934
7935 * gdbarch.sh: Use %s with printf, instead of variables in the
7936 format string.
7937
ed6acedd
TT
79382020-04-29 Tom Tromey <tromey@adacore.com>
7939
7940 PR ada/25875:
7941 * dwarf2/read.c (update_enumeration_type_from_children): Compute
7942 type fields here.
7943 (read_enumeration_type): Call
7944 update_enumeration_type_from_children later. Update comments.
7945 (process_enumeration_scope): Don't create type fields.
7946
b68b1b58
KR
79472020-04-29 Kamil Rytarowski <n54@gmx.com>
7948
7949 * nbsd-tdep.c: Include "xml-syscall.h".
7950 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
7951
f94b2e03
KR
79522020-04-29 Kamil Rytarowski <n54@gmx.com>
7953
7954 * nbsd-nat.c: Include "sys/wait.h".
7955 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
7956 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
7957 (nbsd_nat_target::remove_exec_catchpoint)
7958 (nbsd_nat_target::set_syscall_catchpoint): Add.
7959 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
7960 (nbsd_nat_target::insert_exec_catchpoint)
7961 (nbsd_nat_target::remove_exec_catchpoint)
7962 (nbsd_nat_target::set_syscall_catchpoint): Add.
7963 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
7964 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
7965 `nbsd_get_syscall_number'.
7966
fc49bc72
TT
79672020-04-29 Tom Tromey <tom@tromey.com>
7968
7969 * stack.c (print_block_frame_labels): Remove.
7970
d642b692
HD
79712020-04-29 Hannes Domani <ssbssa@yahoo.de>
7972
7973 PR gdb/17320
7974 * ada-valprint.c (val_print_packed_array_elements): Move array
7975 end bracket to new line.
7976 (ada_val_print_string): Remove extra spaces before first array
7977 element.
7978 * c-valprint.c (c_value_print_array): Likewise.
7979 * m2-valprint.c (m2_print_array_contents): Likewise.
7980 (m2_value_print_inner): Likewise.
7981 * p-valprint.c (pascal_value_print_inner): Likewise.
7982 * valprint.c (generic_val_print_array): Likewise.
7983 (value_print_array_elements): Move first array element and array
7984 end bracket to new line.
7985
ea90f227
TV
79862020-04-29 Tom de Vries <tdevries@suse.de>
7987
7988 PR symtab/25889
7989 * linespec.c (find_method): Fix ix calculation.
7990
4498ef4f
KR
79912020-04-28 Kamil Rytarowski <n54@gmx.com>
7992
7993 * syscalls/update-netbsd.sh: New file.
7994 * syscalls/netbsd.xml: Regenerate.
7995 * data-directory/Makefile.in: Register `netbsd.xml' in
7996 `SYSCALLS_FILES'.
7997
a55e30b5
SM
79982020-04-28 Simon Marchi <simon.marchi@efficios.com>
7999
8000 * syscalls/update-freebsd.sh: Add double quotes.
8001
2b2fbab8
TT
80022020-04-28 Tom Tromey <tom@tromey.com>
8003
8004 * NEWS: Update.
8005 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
8006 (cmdpy_init): Allow class_tui.
8007
a65189c9
TV
80082020-04-28 Mark Williams <mark@myosotissp.com>
8009
8010 PR gdb/24480
8011 * dwarf2read.c: Add missing assingments to list_in_scope when
8012 start_symtab was already called.
8013
1b95cdb7
SM
80142020-04-28 Simon Marchi <simon.marchi@efficios.com>
8015
8016 PR gdb/25881
8017 * dwarf2/read.c (offset_map_type): Use
8018 gdb:hash_enum<sect_offset> as hash function.
8019
15cd93d0
TV
80202020-04-28 Tom de Vries <tdevries@suse.de>
8021
8022 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
8023 with DW_AT_signature.
8024
1eb39914
SM
80252020-04-27 Simon Marchi <simon.marchi@efficios.com>
8026
8027 * configure.ac: Remove check for fs_base/gs_base in
8028 user_regs_struct.
8029 * configure: Re-generate.
8030 * config.in: Re-generate.
8031 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
8032 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
8033 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
8034
991a3e2e
LM
80352020-04-27 Luis Machado <luis.machado@linaro.org>
8036
8037 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
8038 problematic inline frame unwinding situation.
8039 * frame.c (frame_id_computed_p): New function.
8040 * frame.h (frame_id_computed_p): New prototype.
8041
361ba0e8
TT
80422020-04-26 Tom Tromey <tom@tromey.com>
8043
8044 * command.h (enum command_class) <class_pseudo>: Remove.
8045
bc3609fd
PW
80462020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8047
8048 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
8049 and whitespace.
8050
b9771db7
KR
80512020-04-25 Kamil Rytarowski <n54@gmx.com>
8052
ec16513e
SM
8053 * inf-ptrace.c (inf_ptrace_target::wait): Remove
8054 `PT_GET_PROCESS_STATE' block.
b9771db7 8055
7151c1af
TT
80562020-04-24 Tom Tromey <tom@tromey.com>
8057
8058 * symtab.h (symbol_get_demangled_name): Don't declare.
8059 * symtab.c (symbol_get_demangled_name): Remove.
8060 (general_symbol_info::natural_name)
8061 (general_symbol_info::demangled_name): Update.
8062
906bb4c5
TT
80632020-04-24 Tom Tromey <tom@tromey.com>
8064
8065 PR rust/25025:
8066 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
8067
bcfe6157
TT
80682020-04-24 Tom Tromey <tom@tromey.com>
8069
8070 PR symtab/12707:
8071 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
8072 exists.
8073 (new_symbol): Likewise.
8074 * compile/compile-object-load.c (get_out_value_type): Use
8075 symbol_matches_search_name.
8076
f049a313
TT
80772020-04-24 Tom Tromey <tom@tromey.com>
8078
8079 * dwarf2/read.c (add_partial_symbol): Do not call
8080 compute_and_set_names.
8081
76e288d1
TT
80822020-04-24 Tom Tromey <tom@tromey.com>
8083
8084 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
8085 overload.
8086
2467f4f6
TT
80872020-04-24 Tom Tromey <tom@tromey.com>
8088
8089 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
8090 (add_psymbol_to_list): New overload. Make old overload call new
8091 one.
8092 * psympriv.h (add_psymbol_to_list): New overload.
8093
e61108c9
TT
80942020-04-24 Tom Tromey <tom@tromey.com>
8095
8096 * dwarf2/read.c (partial_die_info::read) <case
8097 DW_AT_linkage_name>: Use value_as_string.
8098 (dwarf2_string_attr): Use value_as_string.
8099 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
8100 method.
8101 * dwarf2/attribute.c (attribute::value_as_string): New method.
8102
8c87a452
TT
81032020-04-24 Tom Tromey <tom@tromey.com>
8104
8105 * symtab.c (general_symbol_info::natural_name)
8106 (general_symbol_info::demangled_name): Check for language_rust.
8107
787de330
TT
81082020-04-24 Tom Tromey <tom@tromey.com>
8109
8110 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
8111 (dwarf2_physname): ... from here.
8112 (partial_die_info::read): Add Rust "{" hack.
8113
ff985671
TT
81142020-04-24 Tom Tromey <tom@tromey.com>
8115
8116 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
8117 method.
8118 (symbol_set_demangled_name): Don't declare.
8119 * symtab.c (general_symbol_info::set_demangled_name): Rename from
8120 symbol_set_demangled_name.
8121 (general_symbol_info::set_language)
8122 (general_symbol_info::compute_and_set_names): Update.
8123 * minsyms.c (minimal_symbol_reader::install): Update.
8124 * dwarf2/read.c (new_symbol): Update.
8125
1acda803
TT
81262020-04-24 Tom Tromey <tromey@adacore.com>
8127
8128 PR python/23662:
8129 * python/py-type.c (convert_field): Handle
8130 FIELD_LOC_KIND_DWARF_BLOCK.
8131 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
8132 (typy_get_dynamic): Nw function.
8133 (type_object_getset): Add "dynamic".
8134 * NEWS: Add entry.
8135
d656f129
TT
81362020-04-24 Tom Tromey <tromey@adacore.com>
8137
8138 * ada-typeprint.c (print_choices, print_variant_part)
8139 (print_record_field_types_dynamic): New functions.
8140 (print_record_field_types): Use print_record_field_types_dynamic.
8141
7d79de9a
TT
81422020-04-24 Tom Tromey <tromey@adacore.com>
8143
8144 * dwarf2/read.c (handle_data_member_location): New overload.
8145 (dwarf2_add_field): Use it.
8146 (decode_locdesc): Add "computed" parameter. Update comment.
8147 * gdbtypes.c (is_dynamic_type_internal): Also look for
8148 FIELD_LOC_KIND_DWARF_BLOCK.
8149 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
8150 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
8151 virtual base classes.
8152 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
8153 FIELD_LOC_KIND_DWARF_BLOCK.
8154
f8e89861
TT
81552020-04-24 Tom Tromey <tromey@adacore.com>
8156
8157 * dwarf2/read.c (read_structure_type): Handle dynamic length.
8158 * gdbtypes.c (is_dynamic_type_internal): Check
8159 TYPE_HAS_DYNAMIC_LENGTH.
8160 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
8161 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
8162 New macros.
8163 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
8164 constant.
8165
9c6a1327
TT
81662020-04-24 Tom Tromey <tromey@adacore.com>
8167
8168 * dwarf2/read.c (struct variant_field): Rewrite.
8169 (struct variant_part_builder): New.
8170 (struct nextfield): Remove "variant" field. Add "offset".
8171 (struct field_info): Add "current_variant_part" and
8172 "variant_parts".
8173 (alloc_discriminant_info): Remove.
8174 (alloc_rust_variant): New function.
8175 (quirk_rust_enum): Update.
8176 (dwarf2_add_field): Set "offset" member. Don't handle
8177 DW_TAG_variant_part.
8178 (offset_map_type): New typedef.
8179 (convert_variant_range, create_one_variant)
8180 (create_one_variant_part, create_variant_parts)
8181 (add_variant_property): New functions.
8182 (dwarf2_attach_fields_to_type): Call add_variant_property.
8183 (read_structure_type): Don't handle DW_TAG_variant_part.
8184 (handle_variant_part, handle_variant): New functions.
8185 (handle_struct_member_die): Use them.
8186 (process_structure_scope): Don't handle variant parts.
8187 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
8188 (struct discriminant_info): Remove.
8189 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
8190 (struct main_type) <flag_discriminated_union>: Remove.
8191 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
8192 (rust_enum_variant): Return int. Remove "contents". Rewrite.
8193 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
8194 Update.
8195 * valops.c (value_union_variant): Remove.
8196 * value.h (value_union_variant): Don't declare.
8197
b249d2c2
TT
81982020-04-24 Tom Tromey <tromey@adacore.com>
8199
8200 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
8201 (ada_value_primitive_packed_val): Update.
8202 * ada-valprint.c (ada_value_print_1): Update.
8203 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
8204 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
8205 just an address. Use evaluate_for_locexpr_baton.
8206 (dwarf2_evaluate_property): Update.
8207 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
8208 array_view.
8209 * findvar.c (default_read_var_value): Update.
8210 * gdbtypes.c (compute_variant_fields_inner)
8211 (resolve_dynamic_type_internal): Update.
8212 (resolve_dynamic_type): Change type of valaddr parameter.
8213 * gdbtypes.h (resolve_dynamic_type): Update.
8214 * valarith.c (value_subscripted_rvalue): Update.
8215 * value.c (value_from_contents_and_address): Update.
8216
61122aa9
TT
82172020-04-24 Tom Tromey <tromey@adacore.com>
8218
8219 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
8220 "push_initial_value" parameter.
8221 (dwarf2_evaluate_property): Likewise.
8222 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
8223
ef83a141
TT
82242020-04-24 Tom Tromey <tromey@adacore.com>
8225
8226 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
8227 (variant::matches, compute_variant_fields_recurse)
8228 (compute_variant_fields_inner, compute_variant_fields): New
8229 functions.
8230 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
8231 Use resolved_type after type is made.
8232 (operator==): Add new cases.
8233 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
8234 (struct discriminant_range, struct variant, struct variant_part):
8235 New.
8236 (union dynamic_prop_data) <variant_parts, original_type>: New
8237 members.
8238 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
8239 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
8240 constants.
8241 * value.c (unpack_bits_as_long): Now public.
8242 * value.h (unpack_bits_as_long): Declare.
8243
675127ec
TT
82442020-04-24 Tom Tromey <tromey@adacore.com>
8245
8246 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
8247 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
8248
9852ceef
HD
82492020-04-24 Hannes Domani <ssbssa@yahoo.de>
8250
8251 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
8252
7632c6ce
KR
82532020-04-24 Kamil Rytarowski <n54@gmx.com>
8254
8255 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
8256 (remove_fork_catchpoint, post_startup_inferior)
8257 (post_attach): Move...
8258 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
8259 (remove_fork_catchpoint, post_startup_inferior)
8260 (post_attach): ...here.
8261 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
8262 (remove_fork_catchpoint, post_startup_inferior)
8263 (post_attach): Move...
8264 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
8265 (remove_fork_catchpoint, post_startup_inferior)
8266 (post_attach): ...here.
8267
7be2bb4f
TT
82682020-04-24 Tom Tromey <tromey@adacore.com>
8269
8270 * nat/windows-nat.h (struct windows_thread_info)
8271 <pc_adjusted>: New member.
8272 * windows-nat.c (windows_fetch_one_register): Check
8273 pc_adjusted.
8274 (windows_nat_target::get_windows_debug_event)
8275 (windows_nat_target::wait): Set pc_adjusted.
8276
f80cb3b4
TV
82772020-04-24 Tom de Vries <tdevries@suse.de>
8278
8279 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
8280 Run gdb-add-index inside temp dir.
8281
29514b87
TT
82822020-04-23 Tom Tromey <tromey@adacore.com>
8283
8284 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
8285 in loop.
8286
5939967b
LM
82872020-04-23 Luis Machado <luis.machado@linaro.org>
8288
8289 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
8290 get_frame_register instead of gdbarch_unwind_pc.
8291
70bc38f5
TV
82922020-04-23 Tom de Vries <tdevries@suse.de>
8293
8294 * symtab.c (lookup_global_symbol): Prefer def over decl.
8295
de82891c
TV
82962020-04-23 Tom de Vries <tdevries@suse.de>
8297
8298 PR symtab/25807
8299 * block.c (best_symbol, better_symbol): Promote to external.
8300 * block.h (best_symbol, better_symbol): Declare.
8301 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
8302 decl.
8303
ecc6c606
TT
83042020-04-23 Tom Tromey <tromey@adacore.com>
8305
8306 PR ada/25837:
8307 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
8308 "const char *", not a "const std::string &".
8309 <name_and_matcher::operator==>: Update.
8310 * unittests/lookup_name_info-selftests.c: Change type of
8311 "result".
8312
740480b8
TT
83132020-04-23 Tom Tromey <tom@tromey.com>
8314
8315 * inferior.h (iterate_over_inferiors): Don't declare.
8316 * inferior.c (iterate_over_inferiors): Remove.
8317 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
8318 Remove.
8319 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
8320 use iterate_over_inferiors.
8321 (darwin_resume_inferior_it)
8322 (struct resume_inferior_threads_param)
8323 (darwin_resume_inferior_threads_it): Remove.
8324 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
8325
ae3ab1f0
TV
83262020-04-23 Tom de Vries <tdevries@suse.de>
8327
8328 * blockframe.c (find_pc_partial_function): Use
8329 find_pc_sect_compunit_symtab rather than
8330 objfile->sf->qf->find_pc_sect_compunit_symtab.
8331
317d2668
TV
83322020-04-22 Tom de Vries <tdevries@suse.de>
8333
8334 PR symtab/25764
8335 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
8336 in psymtabs.
8337
eea9e357
TV
83382020-04-22 Tom de Vries <tdevries@suse.de>
8339
8340 PR symtab/25801
8341 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
8342 symtabs.
8343
3d5afab3
TV
83442020-04-22 Tom de Vries <tdevries@suse.de>
8345
8346 PR symtab/25700
8347 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
8348 CU if already created.
8349
d43b7a2d
TBA
83502020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8351
8352 * infrun.c (displaced_step_fixup): Switch to the event_thread
8353 before calling displaced_step_restore, not after.
8354
d89edf9b
MM
83552020-04-21 Markus Metzger <markus.t.metzger@intel.com>
8356
8357 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
8358 its inferior is not recorded by us.
8359 (record_btrace_target_open): Replace call to
8360 all_non_exited_threads () with call to current_inferior
8361 ()->non_exited_threads ().
8362 (record_btrace_target::stop_recording): Likewise.
8363 (record_btrace_target::close): Likewise.
8364 (record_btrace_target::wait): Likewise.
8365 (record_btrace_target::record_stop_replaying): Likewise.
8366
5897fd49
MM
83672020-04-21 Markus Metzger <markus.t.metzger@intel.com>
8368
8369 * btrace.c (btrace_enable): Throw an error on double enables and
8370 when enabling recording fails.
8371 (btrace_disable): Throw an error if the thread is not recorded.
8372
1a476b6d
MM
83732020-04-21 Markus Metzger <markus.t.metzger@intel.com>
8374
8375 * record-btrace.c (record_btrace_target::fetch_registers): Forward
8376 request if we do not have a thread_info.
8377
4778a5f8
TV
83782020-04-21 Tom de Vries <tdevries@suse.de>
8379
8380 PR gdb/25471
8381 * thread.c
8382 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
8383 exception in get_frame_id.
8384
0fa7617d
TT
83852020-04-20 Tom Tromey <tromey@adacore.com>
8386
8387 * python/python.c (struct gdbpy_event): Mark move constructor as
8388 noexcept.
8389 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
8390 constructor as noexcept.
8391 * completer.h (struct completion_result): Mark move constructor as
8392 noexcept.
8393 * completer.c (completion_result::completion_result): Use
8394 initialization style. Don't call reset_match_list.
8395
ad23bda0
MS
83962020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
8397
8398 * MAINTAINERS (Write After Approval): Add myself.
8399
45e1f031
TT
84002020-04-18 Tom Tromey <tom@tromey.com>
8401
8402 * windows-tdep.c (init_w32_command_list)
8403 (w32_prefix_command_valid): Restore.
8404 (_initialize_windows_tdep): Call init_w32_command_list.
8405
08feed99
TT
84062020-04-18 Tom Tromey <tom@tromey.com>
8407
8408 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
8409 * value.c (value_fn_field): Update.
8410 * valops.c (find_function_in_inferior)
8411 (value_allocate_space_in_inferior): Update.
8412 * tui/tui-winsource.c (tui_update_source_windows_with_line):
8413 Update.
8414 * tui/tui-source.c (tui_source_window::set_contents): Update.
8415 * symtab.c (lookup_global_or_static_symbol)
8416 (find_function_start_sal_1, skip_prologue_sal)
8417 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
8418 * symmisc.c (dump_msymbols, dump_symtab_1)
8419 (maintenance_print_one_line_table): Update.
8420 * symfile.c (init_entry_point_info, section_is_mapped)
8421 (list_overlays_command, simple_read_overlay_table)
8422 (simple_overlay_update_1): Update.
8423 * stap-probe.c (handle_stap_probe): Update.
8424 * stabsread.c (dbx_init_float_type, define_symbol)
8425 (read_one_struct_field, read_enum_type, read_range_type): Update.
8426 * source.c (info_line_command): Update.
8427 * python/python.c (gdbpy_source_objfile_script)
8428 (gdbpy_execute_objfile_script): Update.
8429 * python/py-type.c (save_objfile_types): Update.
8430 * python/py-objfile.c (py_free_objfile): Update.
8431 * python/py-inferior.c (python_new_objfile): Update.
8432 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
8433 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
8434 (maintenance_check_psymtabs): Update.
8435 * printcmd.c (info_address_command): Update.
8436 * objfiles.h (struct objfile) <arch>: New method, from
8437 get_objfile_arch.
8438 (get_objfile_arch): Don't declare.
8439 * objfiles.c (get_objfile_arch): Remove.
8440 (filter_overlapping_sections): Update.
8441 * minsyms.c (msymbol_is_function): Update.
8442 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
8443 (output_nondebug_symbol): Update.
8444 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
8445 (mdebug_expand_psymtab): Update.
8446 * machoread.c (macho_add_oso_symfile): Update.
8447 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
8448 Update.
8449 * linux-fork.c (checkpoint_command): Update.
8450 * linespec.c (convert_linespec_to_sals): Update.
8451 * jit.c (finalize_symtab): Update.
8452 * infrun.c (insert_exception_resume_from_probe): Update.
8453 * ia64-tdep.c (ia64_find_unwind_table): Update.
8454 * hppa-tdep.c (internalize_unwinds): Update.
8455 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
8456 Update.
8457 * gcore.c (call_target_sbrk): Update.
8458 * elfread.c (record_minimal_symbol, elf_symtab_read)
8459 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
8460 (elf_gnu_ifunc_resolve_by_got): Update.
8461 * dwarf2/read.c (create_addrmap_from_index)
8462 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
8463 (read_debug_names_from_section)
8464 (process_psymtab_comp_unit_reader, add_partial_symbol)
8465 (add_partial_subprogram, process_full_comp_unit)
8466 (read_file_scope, read_func_scope, read_lexical_block_scope)
8467 (read_call_site_scope, dwarf2_ranges_read)
8468 (dwarf2_record_block_ranges, dwarf2_add_field)
8469 (mark_common_block_symbol_computed, read_tag_pointer_type)
8470 (read_tag_string_type, dwarf2_init_float_type)
8471 (dwarf2_init_complex_target_type, read_base_type)
8472 (partial_die_info::read, partial_die_info::read)
8473 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
8474 (dwarf2_fetch_die_loc_sect_off): Update.
8475 * dwarf2/loc.c (dwarf2_find_location_expression)
8476 (class dwarf_evaluate_loc_desc, rw_pieced_value)
8477 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
8478 (dwarf2_loc_desc_get_symbol_read_needs)
8479 (locexpr_describe_location_piece, locexpr_describe_location_1)
8480 (loclist_describe_location): Update.
8481 * dwarf2/index-write.c (write_debug_names): Update.
8482 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
8483 * dtrace-probe.c (dtrace_process_dof): Update.
8484 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
8485 (process_one_symbol): Update.
8486 * ctfread.c (ctf_init_float_type, read_base_type): Update.
8487 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
8488 (coff_read_enum_type): Update.
8489 * cli/cli-cmds.c (edit_command, list_command): Update.
8490 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
8491 * breakpoint.c (create_overlay_event_breakpoint)
8492 (create_longjmp_master_breakpoint)
8493 (create_std_terminate_master_breakpoint)
8494 (create_exception_master_breakpoint, get_sal_arch): Update.
8495 * block.c (block_gdbarch): Update.
8496 * annotate.c (annotate_source_line): Update.
8497
0743fc83
TT
84982020-04-17 Tom Tromey <tromey@adacore.com>
8499
8500 * auto-load.c (show_auto_load_cmd): Remove.
8501 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
8502 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
8503 (maintenance_print_arc_command): Remove.
8504 * tui/tui-win.c (tui_command): Remove.
8505 (tui_get_cmd_list): Use add_basic_prefix_cmd.
8506 * tui/tui-layout.c (tui_layout_command): Remove.
8507 (_initialize_tui_layout): Use add_basic_prefix_cmd.
8508 * python/python.c (user_set_python, user_show_python): Remove.
8509 (_initialize_python): Use add_basic_prefix_cmd,
8510 add_show_prefix_cmd.
8511 * guile/guile.c (set_guile_command, show_guile_command): Remove.
8512 (install_gdb_commands): Use add_basic_prefix_cmd,
8513 add_show_prefix_cmd.
8514 (info_guile_command): Remove.
8515 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
8516 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
8517 add_show_prefix_cmd.
8518 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
8519 Remove do_set and do_show parameters.
8520 * cli/cli-style.c (set_style, show_style): Remove.
8521 (_initialize_cli_style): Use add_basic_prefix_cmd,
8522 add_show_prefix_cmd.
8523 (cli_style_option::add_setshow_commands): Remove do_set and
8524 do_show parameters.
8525 (cli_style_option::add_setshow_commands): Use
8526 add_basic_prefix_cmd, add_show_prefix_cmd.
8527 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
8528 (set_style_name): Remove.
8529 * cli/cli-dump.c (dump_command, append_command): Remove.
8530 (srec_dump_command, ihex_dump_command, verilog_dump_command)
8531 (tekhex_dump_command, binary_dump_command)
8532 (binary_append_command): Remove.
8533 (_initialize_cli_dump): Use add_basic_prefix_cmd.
8534 * windows-tdep.c (w32_prefix_command_valid): Remove global.
8535 (init_w32_command_list): Remove; move into ...
8536 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
8537 * valprint.c (set_print, show_print, set_print_raw)
8538 (show_print_raw): Remove.
8539 (_initialize_valprint): Use add_basic_prefix_cmd,
8540 add_show_prefix_cmd.
8541 * typeprint.c (set_print_type, show_print_type): Remove.
8542 (_initialize_typeprint): Use add_basic_prefix_cmd,
8543 add_show_prefix_cmd.
8544 * record.c (set_record_command, show_record_command): Remove.
8545 (_initialize_record): Use add_basic_prefix_cmd,
8546 add_show_prefix_cmd.
8547 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
8548 add_show_prefix_cmd.
8549 (info_command, show_command, set_debug, show_debug): Remove.
8550 * top.h (set_history, show_history): Don't declare.
8551 * top.c (set_history, show_history): Remove.
8552 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
8553 (unset_tdesc_cmd): Remove.
8554 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
8555 add_show_prefix_cmd.
8556 * symtab.c (info_module_command): Remove.
8557 (_initialize_symtab): Use add_basic_prefix_cmd.
8558 * symfile.c (overlay_command): Remove.
8559 (_initialize_symfile): Use add_basic_prefix_cmd.
8560 * sparc64-tdep.c (info_adi_command): Remove.
8561 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
8562 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
8563 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
8564 add_show_prefix_cmd.
8565 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
8566 (_initialize_serial): Use add_basic_prefix_cmd,
8567 add_show_prefix_cmd.
8568 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
8569 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
8570 add_show_prefix_cmd.
8571 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
8572 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
8573 add_show_prefix_cmd.
8574 * riscv-tdep.c (show_riscv_command, set_riscv_command)
8575 (show_debug_riscv_command, set_debug_riscv_command): Remove.
8576 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
8577 add_show_prefix_cmd.
8578 * remote.c (remote_command, set_remote_cmd): Remove.
8579 (_initialize_remote): Use add_basic_prefix_cmd.
8580 * record-full.c (set_record_full_command)
8581 (show_record_full_command): Remove.
8582 (_initialize_record_full): Use add_basic_prefix_cmd,
8583 add_show_prefix_cmd.
8584 * record-btrace.c (cmd_set_record_btrace)
8585 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
8586 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
8587 (cmd_show_record_btrace_pt): Remove.
8588 (_initialize_record_btrace): Use add_basic_prefix_cmd,
8589 add_show_prefix_cmd.
8590 * ravenscar-thread.c (set_ravenscar_command)
8591 (show_ravenscar_command): Remove.
8592 (_initialize_ravenscar): Use add_basic_prefix_cmd,
8593 add_show_prefix_cmd.
8594 * mips-tdep.c (show_mips_command, set_mips_command)
8595 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
8596 add_show_prefix_cmd.
8597 * maint.c (maintenance_command, maintenance_info_command)
8598 (maintenance_check_command, maintenance_print_command)
8599 (maintenance_set_cmd, maintenance_show_cmd): Remove.
8600 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
8601 add_show_prefix_cmd.
8602 (show_per_command_cmd): Remove.
8603 * maint-test-settings.c (maintenance_set_test_settings_cmd):
8604 Remove.
8605 (maintenance_show_test_settings_cmd): Remove.
8606 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
8607 add_show_prefix_cmd.
8608 * maint-test-options.c (maintenance_test_options_command):
8609 Remove.
8610 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
8611 * macrocmd.c (macro_command): Remove
8612 (_initialize_macrocmd): Use add_basic_prefix_cmd.
8613 * language.c (set_check, show_check): Remove.
8614 (_initialize_language): Use add_basic_prefix_cmd,
8615 add_show_prefix_cmd.
8616 * infcmd.c (unset_command): Remove.
8617 (_initialize_infcmd): Use add_basic_prefix_cmd.
8618 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
8619 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
8620 add_show_prefix_cmd.
8621 * go32-nat.c (go32_info_dos_command): Remove.
8622 (_initialize_go32_nat): Use add_basic_prefix_cmd.
8623 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
8624 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
8625 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
8626 (_initialize_frame): Use add_basic_prefix_cmd,
8627 add_show_prefix_cmd.
8628 * dcache.c (set_dcache_command, show_dcache_command): Remove.
8629 (_initialize_dcache): Use add_basic_prefix_cmd,
8630 add_show_prefix_cmd.
8631 * cp-support.c (maint_cplus_command): Remove.
8632 (_initialize_cp_support): Use add_basic_prefix_cmd.
8633 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
8634 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
8635 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
8636 add_basic_prefix_cmd, add_show_prefix_cmd.
8637 * breakpoint.c (save_command): Remove.
8638 (_initialize_breakpoint): Use add_basic_prefix_cmd.
8639 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
8640 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
8641 add_show_prefix_cmd.
8642 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
8643 (set_ada_command, show_ada_command): Remove.
8644 (_initialize_ada_language): Use add_basic_prefix_cmd,
8645 add_show_prefix_cmd.
8646 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
8647
3557f442
KR
86482020-04-16 Kamil Rytarowski <n54@gmx.com>
8649
8650 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
8651 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
8652
16197208
SM
86532020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
8654
8655 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
8656 warning messages.
8657
00ac85d3
SM
86582020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
8659
8660 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
8661 import table is not at beginning of .idata section.
8662
381ce63f
PA
86632020-04-16 Pedro Alves <palves@redhat.com>
8664
8665 * inferior.c (delete_inferior): Use delete operator directly
8666 instead of delete_program_space.
8667 * progspace.c (add_program_space): New, factored out from
8668 program_space::program_space.
8669 (remove_program_space): New, factored out from
8670 delete_program_space.
8671 (program_space::program_space): Remove intro comment. Rewrite.
8672 (program_space::~program_space): Remove intro comment. Call
8673 remove_program_space.
8674 (delete_program_space): Delete.
8675 * progspace.h (program_space::program_space): Make explicit. Move
8676 intro comment here, adjusted.
8677 (program_space::~program_space): Move intro comment here,
8678 adjusted.
8679 (delete_program_space): Remove.
8680
a010605f
TT
86812020-04-16 Tom Tromey <tromey@adacore.com>
8682
8683 * windows-nat.c (windows_nat::handle_access_violation): New
8684 function.
8685 * nat/windows-nat.h (handle_access_violation): Declare.
8686 * nat/windows-nat.c (handle_exception): Move Cygwin code to
8687 windows-nat.c. Call handle_access_violation.
8688
efba5c23
TV
86892020-04-16 Tom de Vries <tdevries@suse.de>
8690
8691 PR symtab/25791
8692 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
8693 CUs without psymtab.
8694
97ed802d
KB
86952020-04-16 Kevin Buettner <kevinb@redhat.com>
8696
8697 * python/python.c (do_start_initialization): Don't call
8698 PyEval_InitThreads for Python 3.9 and beyond.
8699
c7d64809
KR
87002020-04-15 Kamil Rytarowski <n54@gmx.com>
8701
8702 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
8703 thread functions.
8704 (obsd_nat_target::wait): Likewise.
8705
ce127a96
TT
87062020-04-15 Tom Tromey <tromey@adacore.com>
8707
8708 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
8709 (DEBUG_EXCEPT): Use debug_printf.
8710
99f1bc6a
AB
87112020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
8712
8713 * completer.c (class completion_tracker::completion_hash_entry)
8714 <hash_name>: New member function.
8715 (completion_tracker::discard_completions): New callback to hash a
8716 completion_hash_entry, pass this to htab_create_alloc.
8717
a0e9b532
JT
87182016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
8719
8720 * windows-nat.c (windows_make_so): Warn rather than stopping with
8721 an error if realpath() fails.
8722
06ca5dd4
KR
87232020-04-14 Kamil Rytarowski <n54@gmx.com>
8724
8725 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
8726 (nbsd_nat_target::info_proc): Add do_status.
8727
194d088f
TV
87282020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
8729 Tom de Vries <tdevries@suse.de>
8730
8731 PR symtab/25718
8732 * psympriv.h (struct partial_symtab::read_symtab)
8733 (struct partial_symtab::expand_psymtab)
8734 (struct partial_symtab::read_dependencies): Update comments.
8735 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
8736 read_symtab for includer.
8737 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
8738 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
8739 (struct dwarf2_include_psymtab::m_readin): Remove.
8740 (struct dwarf2_include_psymtab::includer): New member function.
8741 (dwarf2_psymtab::expand_psymtab): Assert !readin.
8742
c1a66c06
TV
87432020-04-14 Tom de Vries <tdevries@suse.de>
8744
8745 PR symtab/25720
8746 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
8747 with NULL symbol_matcher and lookup_name.
8748 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
8749 and lookup_name.
8750 * dwarf2/read.c (dw2_expand_symtabs_matching)
8751 (dw2_debug_names_expand_symtabs_matching): Same.
8752 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
8753 Make lookup_name a pointer. Update comment.
8754 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
8755 lookup_name being a pointer.
8756 * symfile.c (expand_symtabs_matching): Same.
8757 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
8758 * linespec.c (iterate_over_all_matching_symtabs): Same.
8759
400b5eca
TT
87602020-04-13 Tom Tromey <tom@tromey.com>
8761
8762 * run-on-main-thread.c: Update include.
8763 * unittests/main-thread-selftests.c: Update include.
8764 * tui/tui-win.c: Update include.
8765 * tui/tui-io.c: Update include.
8766 * tui/tui-interp.c: Update include.
8767 * tui/tui-hooks.c: Update include.
8768 * top.h: Update include.
8769 * top.c: Update include.
8770 * ser-base.c: Update include.
8771 * remote.c: Update include.
8772 * remote-notif.c: Update include.
8773 * remote-fileio.c: Update include.
8774 * record-full.c: Update include.
8775 * record-btrace.c: Update include.
8776 * python/python.c: Update include.
8777 * posix-hdep.c: Update include.
8778 * mingw-hdep.c: Update include.
8779 * mi/mi-main.c: Update include.
8780 * mi/mi-interp.c: Update include.
8781 * main.c: Update include.
8782 * linux-nat.c: Update include.
8783 * interps.c: Update include.
8784 * infrun.c: Update include.
8785 * inf-loop.c: Update include.
8786 * event-top.c: Update include.
8787 * event-loop.c: Move to ../gdbsupport/.
8788 * event-loop.h: Move to ../gdbsupport/.
8789 * async-event.h: Update include.
8790 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
8791
93b54c8e
TT
87922020-04-13 Tom Tromey <tom@tromey.com>
8793
8794 * tui/tui-win.c: Include async-event.h.
8795 * remote.c: Include async-event.h.
8796 * remote-notif.c: Include async-event.h.
8797 * record-full.c: Include async-event.h.
8798 * record-btrace.c: Include async-event.h.
8799 * infrun.c: Include async-event.h.
8800 * event-top.c: Include async-event.h.
8801 * event-loop.h: Move some declarations to async-event.h.
8802 * event-loop.c: Don't include ser-event.h or top.h. Move some
8803 code to async-event.c.
8804 * async-event.h: New file.
8805 * async-event.c: New file.
8806 * Makefile.in (COMMON_SFILES): Add async-event.c.
8807 (HFILES_NO_SRCDIR): Add async-event.h.
8808
c1cd3163
TT
88092020-04-13 Tom Tromey <tom@tromey.com>
8810
8811 * utils.c (flush_streams): New function.
8812 * event-loop.c (gdb_wait_for_event): Call flush_streams.
8813
29f2bf4f
TT
88142020-04-13 Tom Tromey <tom@tromey.com>
8815
8816 * event-loop.c (handle_file_event): Use warning, not
8817 printf_unfiltered.
8818
98029d02
TT
88192020-04-13 Tom Tromey <tom@tromey.com>
8820
8821 * event-loop.c: Include <chrono>.
8822
06cc9596
TT
88232020-04-13 Tom Tromey <tom@tromey.com>
8824
8825 * gdb_select.h: Move to ../gdbsupport/.
8826 * event-loop.c: Update include path.
8827 * top.c: Update include path.
8828 * ser-base.c: Update include path.
8829 * ui-file.c: Update include path.
8830 * ser-tcp.c: Update include path.
8831 * guile/scm-ports.c: Update include path.
8832 * posix-hdep.c: Update include path.
8833 * ser-unix.c: Update include path.
8834 * gdb_usleep.c: Update include path.
8835 * mingw-hdep.c: Update include path.
8836 * inflow.c: Update include path.
8837 * infrun.c: Update include path.
8838 * event-top.c: Update include path.
8839
8ae8e197
TT
88402020-04-13 Tom Tromey <tom@tromey.com>
8841
8842 * configure: Rebuild.
8843 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
8844
58cf28e8
TT
88452020-04-13 Tom Tromey <tom@tromey.com>
8846
8847 * event-loop.h (start_event_loop): Don't declare.
8848 * event-loop.c (start_event_loop): Move...
8849 * main.c (start_event_loop): ...here. Now static.
8850
b7f999ae
SDJ
88512020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
8852
8853 * MAINTAINERS: Update my email address.
8854
1085dfd4
KR
88552020-04-12 Kamil Rytarowski <n54@gmx.com>
8856
8857 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
8858 IP_ALL.
8859
49d1d1f5
KR
88602020-04-12 Kamil Rytarowski <n54@gmx.com>
8861
8862 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 8863 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 8864
b4848d2a
KR
88652020-04-12 Kamil Rytarowski <n54@gmx.com>
8866
8867 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 8868 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 8869
51c133d5
KR
88702020-04-12 Kamil Rytarowski <n54@gmx.com>
8871
8872 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
8873
54b8cbd0
KR
88742020-04-11 Kamil Rytarowski <n54@gmx.com>
8875
8876 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
8877 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
8878 (nbsd_nat_target::info_proc): New functions.
8879 * nbsd-nat.c (kinfo_get_vmmap): New function.
8880 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
8881 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
8882 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
8883 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
8884 functions.
8885 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
8886 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
8887 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
8888 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
8889 (KINFO_VME_FLAG_GROWS_DOWN): New.
8890
cf83625d
AS
88912020-04-10 Artur Shepilko <nomadbyte@gmail.com>
8892
8893 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
8894 bit shift.
8895
0c4311ab
TT
88962020-04-10 Tom Tromey <tromey@adacore.com>
8897
8898 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
8899
3e65b3e9
TT
89002020-04-10 Tom Tromey <tromey@adacore.com>
8901
8902 * symtab.c (get_symbol_address, get_msymbol_address): Skip
8903 separate debug files.
8904
13302e95
HD
89052020-04-10 Hannes Domani <ssbssa@yahoo.de>
8906
8907 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
8908 Move to...
8909 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
8910 ... here.
8911 * windows-nat.c (windows_nat_target::get_windows_debug_event):
8912 Check for STATUS_WX86_BREAKPOINT.
8913 (windows_nat_target::wait): Same.
8914
bdfc1e8a
TV
89152020-04-10 Tom de Vries <tdevries@suse.de>
8916
8917 PR cli/25808
8918 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
8919
f4460aec
SM
89202020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
8921
8922 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
8923 (Write After Approval): Remove Tom de Vries.
8924
a25198bb
BE
89252020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
8926
8927 revert partially:
8928 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8929
aac66a4c
SM
8930 * buildsym.c (record_line): Fix undefined behavior and preserve
8931 lines at eof.
a25198bb 8932
206c98a6
KR
89332020-04-09 Kamil Rytarowski <n54@gmx.com>
8934
8935 * auxv.h (svr4_auxv_parse): New.
8936 * auxv.c (default_auxv_parse): Split into default_auxv_parse
8937 and generic_auxv_parse.
8938 (svr4_auxv_parse): Add.
8939 * obsd-tdep.c: Include "auxv.h".
8940 (obsd_auxv_parse): Remove.
8941 (obsd_init_abi): Remove comment.
8942 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
8943 from `obsd_auxv_parse' to `svr4_auxv_parse'.
8944 * nbsd-tdep.c: Include "auxv.h".
8945 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
8946
71fbdbaf
TT
89472020-04-08 Tom Tromey <tromey@adacore.com>
8948
8949 * nat/windows-nat.h (last_wait_event): Don't declare.
8950 (wait_for_debug_event): Update comment.
8951 * nat/windows-nat.c (last_wait_event): Now static.
8952
2c1d95e8
TT
89532020-04-08 Tom Tromey <tromey@adacore.com>
8954
8955 * windows-nat.c (wait_for_debug_event): Move to
8956 nat/windows-nat.c.
8957 * nat/windows-nat.h (wait_for_debug_event): Declare.
8958 * nat/windows-nat.c (wait_for_debug_event): Move from
8959 windows-nat.c. No longer static.
8960
d2977bc4
TT
89612020-04-08 Tom Tromey <tromey@adacore.com>
8962
8963 * windows-nat.c (get_windows_debug_event): Use
8964 fetch_pending_stop.
8965 * nat/windows-nat.h (fetch_pending_stop): Declare.
8966 * nat/windows-nat.c (fetch_pending_stop): New function.
8967
e758e19c
TT
89682020-04-08 Tom Tromey <tromey@adacore.com>
8969
8970 * windows-nat.c (windows_continue): Use matching_pending_stop and
8971 continue_last_debug_event.
8972 * nat/windows-nat.h (matching_pending_stop)
8973 (continue_last_debug_event): Declare.
8974 * nat/windows-nat.c (DEBUG_EVENTS): New define.
8975 (matching_pending_stop, continue_last_debug_event): New
8976 functions.
8977
8d30e395
TT
89782020-04-08 Tom Tromey <tromey@adacore.com>
8979
8980 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
8981 (handle_exception_result): Move to nat/windows-nat.h.
8982 (DEBUG_EXCEPTION_SIMPLE): Remove.
8983 (windows_nat::handle_ms_vc_exception): New function.
8984 (handle_exception): Move to nat/windows-nat.c.
8985 (get_windows_debug_event): Update.
8986 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
8987 nat/windows-nat.c.
8988 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
8989 (handle_exception_result): Move from windows-nat.c.
8990 (handle_exception): Declare.
8991 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
8992 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
8993 windows-nat.c.
8994
29de418d
TT
89952020-04-08 Tom Tromey <tromey@adacore.com>
8996
8997 * windows-nat.c (exception_count, event_count): Remove.
8998 (handle_exception, get_windows_debug_event)
8999 (do_initial_windows_stuff): Update.
9000
a816ba18
TT
90012020-04-08 Tom Tromey <tromey@adacore.com>
9002
9003 * windows-nat.c (windows_nat::handle_load_dll)
9004 (windows_nat::handle_unload_dll): Rename. No longer static.
9005 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
9006 Declare.
9007
a00caa12
TT
90082020-04-08 Tom Tromey <tromey@adacore.com>
9009
9010 * complaints.h (stop_whining): Declare at top-level.
9011 (complaint): Don't declare stop_whining.
9012
d41b524f
TT
90132020-04-08 Tom Tromey <tromey@adacore.com>
9014
9015 * windows-nat.c (windows_nat::handle_output_debug_string):
9016 Rename. No longer static.
9017 * nat/windows-nat.h (handle_output_debug_string): Declare.
9018
3c76026d
TT
90192020-04-08 Tom Tromey <tromey@adacore.com>
9020
9021 * windows-nat.c (current_process_handle, current_process_id)
9022 (main_thread_id, last_sig, current_event, last_wait_event)
9023 (current_windows_thread, desired_stop_thread_id, pending_stops)
9024 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
9025 (display_selectors, fake_create_process)
9026 (get_windows_debug_event): Update.
9027 * nat/windows-nat.h (current_process_handle, current_process_id)
9028 (main_thread_id, last_sig, current_event, last_wait_event)
9029 (current_windows_thread, desired_stop_thread_id, pending_stops)
9030 (struct pending_stop, siginfo_er): Move from windows-nat.c.
9031 * nat/windows-nat.c (current_process_handle, current_process_id)
9032 (main_thread_id, last_sig, current_event, last_wait_event)
9033 (current_windows_thread, desired_stop_thread_id, pending_stops)
9034 (siginfo_er): New globals. Move from windows-nat.c.
9035
9d8679cc
TT
90362020-04-08 Tom Tromey <tromey@adacore.com>
9037
9038 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
9039 (handle_load_dll): Update.
9040 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
9041
28688adf
TT
90422020-04-08 Tom Tromey <tromey@adacore.com>
9043
9044 * windows-nat.c (enum thread_disposition_type): Move to
9045 nat/windows-nat.h.
9046 (windows_nat::thread_rec): Rename from thread_rec. No longer
9047 static.
9048 (windows_add_thread, windows_nat_target::fetch_registers)
9049 (windows_nat_target::store_registers, handle_exception)
9050 (windows_nat_target::resume, get_windows_debug_event)
9051 (windows_nat_target::get_tib_address)
9052 (windows_nat_target::thread_name)
9053 (windows_nat_target::thread_alive): Update.
9054 * nat/windows-nat.h (enum thread_disposition_type): Move from
9055 windows-nat.c.
9056 (thread_rec): Declare.
9057
4834dad0
TT
90582020-04-08 Tom Tromey <tromey@adacore.com>
9059
9060 * windows-nat.c: Add "using namespace".
9061 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
9062 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
9063
65bafd5b
TT
90642020-04-08 Tom Tromey <tromey@adacore.com>
9065
9066 * nat/windows-nat.h (struct windows_thread_info): Declare
9067 destructor.
9068 * nat/windows-nat.c (~windows_thread_info): New.
9069
0a4afda3
TT
90702020-04-08 Tom Tromey <tromey@adacore.com>
9071
9072 PR gdb/22992
9073 * windows-nat.c (current_event): Update comment.
9074 (last_wait_event, desired_stop_thread_id): New globals.
9075 (struct pending_stop): New.
9076 (pending_stops): New global.
9077 (windows_nat_target) <stopped_by_sw_breakpoint>
9078 <supports_stopped_by_sw_breakpoint>: New methods.
9079 (windows_fetch_one_register): Add assertions. Adjust PC.
9080 (windows_continue): Handle pending stops. Suspend other threads
9081 when stepping. Use last_wait_event
9082 (wait_for_debug_event): New function.
9083 (get_windows_debug_event): Use wait_for_debug_event. Handle
9084 pending stops. Queue spurious stops.
9085 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
9086 (windows_nat_target::kill): Use wait_for_debug_event.
9087 * nat/windows-nat.h (struct windows_thread_info)
9088 <stopped_at_software_breakpoint>: New field.
9089 * nat/windows-nat.c (windows_thread_info::resume): Clear
9090 stopped_at_software_breakpoint.
9091
8e61ebec
TT
90922020-04-08 Tom Tromey <tromey@adacore.com>
9093
9094 * windows-nat.c (enum thread_disposition_type): New.
9095 (thread_rec): Replace "get_context" parameter with "disposition";
9096 change type.
9097 (windows_add_thread, windows_nat_target::fetch_registers)
9098 (windows_nat_target::store_registers, handle_exception)
9099 (windows_nat_target::resume, get_windows_debug_event)
9100 (windows_nat_target::get_tib_address)
9101 (windows_nat_target::thread_name)
9102 (windows_nat_target::thread_alive): Update.
9103
98a03287
TT
91042020-04-08 Tom Tromey <tromey@adacore.com>
9105
9106 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
9107 (windows_continue): Use windows_continue::resume.
9108 * nat/windows-nat.h (struct windows_thread_info) <suspend,
9109 resume>: Declare new methods.
9110 * nat/windows-nat.c: New file.
9111 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
9112
7c7411bc
TT
91132020-04-08 Tom Tromey <tromey@adacore.com>
9114
9115 * windows-nat.c (windows_add_thread, windows_delete_thread)
9116 (windows_nat_target::fetch_registers)
9117 (windows_nat_target::store_registers, fake_create_process)
9118 (windows_nat_target::resume, windows_nat_target::resume)
9119 (get_windows_debug_event, windows_nat_target::wait)
9120 (windows_nat_target::pid_to_str)
9121 (windows_nat_target::get_tib_address)
9122 (windows_nat_target::get_ada_task_ptid)
9123 (windows_nat_target::thread_name)
9124 (windows_nat_target::thread_alive): Use lwp, not tid.
9125
2950fdf7
TT
91262020-04-08 Tom Tromey <tromey@adacore.com>
9127
9128 * windows-nat.c (handle_exception)
9129 (windows_nat_target::thread_name): Update.
9130 * nat/windows-nat.h (windows_thread_info): Remove destructor.
9131 <name>: Now unique_xmalloc_ptr.
9132
62fe396b
TT
91332020-04-08 Tom Tromey <tromey@adacore.com>
9134
9135 * windows-nat.c (thread_rec)
9136 (windows_nat_target::fetch_registers): Update.
9137 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
9138 Update comment.
9139 <debug_registers_changed, reload_context>: Now bool.
9140
e9534bd2
TT
91412020-04-08 Tom Tromey <tromey@adacore.com>
9142
9143 * windows-nat.c (windows_add_thread): Use new.
9144 (windows_init_thread_list, windows_delete_thread): Use delete.
9145 (get_windows_debug_event): Update.
9146 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
9147 destructor, and initializers.
9148
ae1f8880
TT
91492020-04-08 Tom Tromey <tromey@adacore.com>
9150
9151 * windows-nat.c (struct windows_thread_info): Remove.
9152 * nat/windows-nat.h: New file.
9153
55a1e039
TT
91542020-04-08 Tom Tromey <tromey@adacore.com>
9155
9156 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
9157 (thread_rec, windows_add_thread, windows_delete_thread)
9158 (windows_continue): Update.
9159
93366324
TT
91602020-04-08 Tom Tromey <tromey@adacore.com>
9161
9162 * windows-nat.c (struct windows_thread_info): Remove typedef.
9163 (thread_head): Remove.
9164 (thread_list): New global.
9165 (thread_rec, windows_add_thread, windows_init_thread_list)
9166 (windows_delete_thread, windows_continue): Update.
9167
0f2265e2
SM
91682020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
9169
9170 * windows-tdep.h (windows_init_abi): Add comment.
9171 (cygwin_init_abi): New declaration.
9172 * windows-tdep.c: Split signal enumeration in two, one for
9173 Windows and one for Cygwin.
9174 (windows_gdb_signal_to_target): Only deal with signal of the
9175 Windows OS ABI.
9176 (cygwin_gdb_signal_to_target): New function.
9177 (windows_init_abi): Rename to windows_init_abi_common, don't set
9178 gdb_signal_to_target gdbarch method. Add new new function with
9179 this name.
9180 (cygwin_init_abi): New function.
9181 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
9182 comment. Don't call windows_init_abi.
9183 (amd64_windows_init_abi): Add comment, call windows_init_abi.
9184 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
9185 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
9186 i386_windows_init_abi_common, don't call windows_init_abi. Add
9187 a new function of this name.
9188 (i386_cygwin_init_abi): New function.
9189 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
9190 OS ABI Cygwin.
9191
3810f182
SM
91922020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
9193
9194 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
9195 parameter.c.
9196 (dwarf2_read_gdb_index): Update.
9197
063f8e80
KR
91982020-04-07 Kamil Rytarowski <n54@gmx.com>
9199
9200 * nbsd-tdep.c: Include "objfiles.h".
9201 (nbsd_skip_solib_resolver): New.
9202 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
9203
85a9510c 92042020-04-07 Nitika Achra <Nitika.Achra@amd.com>
9205
9206 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
9207 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
9208 with DW_LLE_base_addressx are being emitted in DWARFv5.
9209 Add the newly added kind DW_LOC_OFFSET_PAIR also.
9210 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
9211 unsigned integer.
9212
9fc3eaae 92132020-04-07 Nitika Achra <Nitika.Achra@amd.com>
9214
9215 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
9216 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
9217 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
9218 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
9219 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
9220 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
9221 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
9222
9223
41144253 92242020-04-07 Nitika Achra <Nitika.Achra@amd.com>
9225
9226 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
9227 (read_loclist_index): New function definition.
9228 (lookup_loclist_base): New function definition.
9229 (read_loclist_header): New function definition.
9230 (dwarf2_cu): Add loclist_base and loclist_header field.
9231 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
9232 (read_full_die_1): Read the value of DW_AT_loclists_base.
9233 (read_attribute_reprocess): Handle DW_FORM_loclistx.
9234 (read_attribute_value): Handle DW_FORM_loclistx.
9235 (skip_one_die): Handle DW_FORM_loclistx.
9236 (loclist_header): New structure declaration.
9237 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
9238
9f4e76a4
SM
92392020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9240
9241 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
9242 constructor. Remove `addr` parameter from other constructor and
9243 add `per_cu` parameter.
9244 * dwarf2/read.c (create_partial_symtab): Update.
9245
25c11aca
TV
92462020-04-07 Tom de Vries <tdevries@suse.de>
9247
9248 PR symtab/25796
9249 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
9250 (partial_die_info::fixup): Inherit has_const_value.
9251
5707e24b
TV
92522020-04-07 Tom de Vries <tdevries@suse.de>
9253
9254 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
9255 symbols without address.
9256
05f00e22
KR
92572020-04-06 Kamil Rytarowski <n54@gmx.com>
9258
9259 * nbsd-nat.h (struct thread_info): Add forward declaration.
9260 (nbsd_nat_target::thread_alive): Add.
9261 (nbsd_nat_target::thread_name): Likewise.
9262 (nbsd_nat_target::update_thread_list): Likewise.
9263 (update_thread_list::post_attach): Likewise.
9264 (post_attach::pid_to_str): Likewise.
9265 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
9266 (nbsd_thread_lister): Add.
9267 (nbsd_nat_target::thread_alive): Likewise.
9268 (nbsd_nat_target::thread_name): Likewise.
9269 (nbsd_add_threads): Likewise.
9270 (update_thread_list::post_attach): Likewise.
9271 (nbsd_nat_target::update_thread_list): Likewise.
9272 (post_attach::pid_to_str): Likewise.
9273
6ee448cc
TT
92742020-04-06 Tom Tromey <tromey@adacore.com>
9275
9276 * ada-valprint.c (print_variant_part): Extract the variant field.
9277 (print_field_values): Use the field as the outer value when
9278 recursing.
9279
dea34e8c
TT
92802020-04-06 Tom Tromey <tromey@adacore.com>
9281
9282 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
9283 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
9284 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
9285 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
9286 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
9287
93689ce9
TT
92882020-04-06 Tom Tromey <tromey@adacore.com>
9289
9290 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
9291 TYPE_CODE_ERROR.
9292
79743962
KR
92932020-04-06 Kamil Rytarowski <n54@gmx.com>
9294
9295 * nbsd-tdep.c: Include "gdbarch.h".
9296 Define enum with NetBSD signal numbers.
9297 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
9298 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
9299 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
9300 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
9301 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
9302 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
9303 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
9304 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
9305 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
9306 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
9307 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
9308 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
9309
9e7c9a03
HD
93102020-04-03 Hannes Domani <ssbssa@yahoo.de>
9311
9312 PR gdb/25325
9313 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
9314
d9e49b61
TT
93152020-04-03 Tom Tromey <tromey@adacore.com>
9316
9317 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
9318 Read constant block.
9319
e0fc5c3f
SM
93202020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
9321
9322 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
9323 (gdb_bfd_get_full_section_contents): New declaration.
9324 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
9325 * windows-tdep.c (is_linked_with_cygwin_dll): Use
9326 gdb_bfd_get_full_section_contents.
9327
e2ff18a0
SM
93282020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
9329
9330 * exec.c (build_section_table): Replace internal_error with
9331 gdb_assert.
9332 (section_table_xfer_memory_partial): Likewise.
9333 * mdebugread.c (parse_partial_symbols): Likewise.
9334 * psymtab.c (lookup_partial_symbol): Likewise.
9335 * utils.c (wrap_here): Likewise.
9336
0830d301
TT
93372020-04-02 Tom Tromey <tromey@adacore.com>
9338
9339 * f-lang.c (build_fortran_types): Use arch_type to initialize
9340 builtin_complex_s32 in the TYPE_CODE_ERROR case.
9341
e7da7f8f
TT
93422020-04-02 Tom Tromey <tromey@adacore.com>
9343
9344 * dwarf2/read.c (partial_die_info::read): Do not create a vector
9345 of attributes.
9346
c90d28ac
AB
93472020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
9348 Bernd Edlinger <bernd.edlinger@hotmail.de>
9349 Tom Tromey <tromey@adacore.com>
9350
9351 * buildsym.c (buildsym_compunit::record_line): Remove
9352 deduplication code.
9353
1aa98955
TV
93542020-04-02 Tom de Vries <tdevries@suse.de>
9355
9356 PR ada/24671
9357 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
9358
d3214198
TV
93592020-04-02 Tom de Vries <tdevries@suse.de>
9360
9361 * dwarf2/read.c (dwarf2_gdb_index_functions,
9362 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
9363 NULL.
9364 * psymtab.c (psym_lookup_global_symbol_language): New function.
9365 (psym_functions): Init psym_lookup_global_symbol_language with
9366 psym_lookup_global_symbol_language.
9367 * symfile-debug.c (debug_sym_quick_functions): Init
9368 lookup_global_symbol_language with NULL.
9369 * symfile.c (set_initial_language): Remove fixme comment.
9370 * symfile.h (struct quick_symbol_functions): Add
9371 lookup_global_symbol_language.
9372 * symtab.c (find_quick_global_symbol_language): New function.
9373 (find_main_name): Use find_quick_global_symbol_language.
9374
2836752f
SM
93752020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
9376
9377 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
9378
64dc2d4b
BE
93792020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
9380
9381 * buildsym.c (record_line): Fix undefined behavior and preserve
9382 lines at eof.
9383
bbe3dc41
BE
93842020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
9385
9386 * buildsym.c (record_line): Fix the resizing condition.
9387
6b4a335b
TT
93882020-04-01 Tom Tromey <tom@tromey.com>
9389
9390 * value.h (value_literal_complex): Add comment.
9391 * valops.c (value_literal_complex): Refer to value.h.
9392
3638a098
TT
93932020-04-01 Tom Tromey <tom@tromey.com>
9394
9395 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
9396 (scalar_type): New rule, from typebase.
9397 (typebase): Use scalar_type. Recognize complex types.
9398 (field_name): Handle FLOAT_KEYWORD.
9399 (ident_tokens): Add _Complex and __complex__.
9400
c34e8714
TT
94012020-04-01 Tom Tromey <tom@tromey.com>
9402
9403 PR exp/25299:
9404 * valarith.c (promotion_type, complex_binop): New functions.
9405 (scalar_binop): Handle complex numbers. Use promotion_type.
9406 (value_pos, value_neg, value_complement): Handle complex numbers.
9407
fa649bb7
TT
94082020-04-01 Tom Tromey <tom@tromey.com>
9409
9410 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
9411 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
9412 (parse_number): Handle complex numbers.
9413
981c08ce
TT
94142020-04-01 Tom Tromey <tom@tromey.com>
9415
9416 * c-valprint.c (c_decorations): Change complex suffix to "i".
9417
4c99290d
TT
94182020-04-01 Tom Tromey <tom@tromey.com>
9419
9420 * valprint.c (generic_value_print_complex): Use accessors.
9421 * value.h (value_real_part, value_imaginary_part): Declare.
9422 * valops.c (value_real_part, value_imaginary_part): New
9423 functions.
9424 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
9425
5b930b45
TT
94262020-04-01 Tom Tromey <tom@tromey.com>
9427
9428 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
9429 (read_range_type): Update.
9430 * mdebugread.c (basic_type): Update.
9431 * go-lang.c (build_go_types): Use init_complex_type.
9432 * gdbtypes.h (struct main_type) <complex_type>: New member.
9433 (init_complex_type): Update.
9434 (arch_complex_type): Don't declare.
9435 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
9436 Make name if none given. Use alloc_type_copy. Look for cached
9437 complex type.
9438 (arch_complex_type): Remove.
9439 (gdbtypes_post_init): Use init_complex_type.
9440 * f-lang.c (build_fortran_types): Use init_complex_type.
9441 * dwarf2/read.c (read_base_type): Update.
9442 * d-lang.c (build_d_types): Use init_complex_type.
9443 * ctfread.c (read_base_type): Update.
9444
53cccef1
TBA
94452020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9446
9447 * infrun.c (stop_all_threads): Update assertion, plus when
9448 stopping threads, take into account that we might be trying
9449 to stop an all-stop target.
9450 (stop_waiting): Call 'stop_all_threads' if there exists a
9451 non-stop target.
9452
a0714d30
TBA
94532020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9454
9455 * target.h (exists_non_stop_target): New function declaration.
9456 * target.c (exists_non_stop_target): New function.
9457
60e22c1e
HD
94582020-04-01 Hannes Domani <ssbssa@yahoo.de>
9459
9460 PR gdb/24789
9461 * eval.c (is_integral_or_integral_reference): New function.
9462 (evaluate_subexp_standard): Allow integer references in
9463 pointer arithmetic.
9464
e139a727
TBA
94652020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9466
9467 * remote.c (remote_target::remote_parse_stop_reply): Remove the
9468 check for no ptid in the stop reply when the target is non-stop.
9469
e0802d59
TT
94702020-04-01 Tom Tromey <tromey@adacore.com>
9471
9472 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
9473 "name" parameter to rvalue reference. Initialize m_name_holder.
9474 <lookup_name_info>: New overloads.
9475 <name>: Return gdb::string_view.
9476 <c_str>: New method.
9477 <make_ignore_params>: Update.
9478 <search_name_hash>: Update.
9479 <language_lookup_name>: Return const char *.
9480 <m_name>: Change type.
9481 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
9482 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
9483 (lookup_name_info::match_any): Update.
9484 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
9485 Update.
9486 * minsyms.c (linkage_name_str): Update.
9487 * language.c (default_symbol_name_matcher): Update.
9488 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
9489 Update.
9490 * ada-lang.c (ada_fold_name): Change parameter to string_view.
9491 (ada_lookup_name_info::ada_lookup_name_info): Update.
9492 (literal_symbol_name_matcher): Update.
9493
8c072cb6
TT
94942020-04-01 Tom Tromey <tromey@adacore.com>
9495
9496 * psymtab.c (psymtab_search_name): Remove function.
9497 (psym_lookup_symbol): Create search name and lookup name here.
9498 (lookup_partial_symbol): Remove "name" parameter; add
9499 lookup_name.
9500 (psym_expand_symtabs_for_function): Update.
9501
6f29a534
TT
95022020-03-31 Joel Jones <joelkevinjones@gmail.com>
9503
9504 PR tui/25597:
9505 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
9506
af62665e
TT
95072020-03-31 Tom Tromey <tromey@adacore.com>
9508
9509 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
9510 memcpy.
9511
d1a89da5
NC
95122020-03-30 Nelson Chu <nelson.chu@sifive.com>
9513
9514 * features/riscv/32bit-csr.xml: Regenerated.
9515 * features/riscv/64bit-csr.xml: Regenerated.
9516
d8af9068
TT
95172020-03-30 Tom Tromey <tromey@adacore.com>
9518
9519 * ada-valprint.c (print_variant_part): Update.
9520 * ada-lang.h (ada_which_variant_applies): Update.
9521 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
9522 outer_valaddr parameters; replace with "outer" value parameter.
9523 (to_fixed_variant_branch_type): Update.
9524
227c0bf4
PFC
95252020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9526
9527 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
9528 <list>. Remove inclusion of observable.h.
9529 (PPC_DEBUG_CURRENT_VERSION): Move up define.
9530 (struct arch_lwp_info): New struct.
9531 (class ppc_linux_dreg_interface): New class.
9532 (struct ppc_linux_process_info): New struct.
9533 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
9534 <low_new_clone, low_forget_process, low_prepare_to_resume>
9535 <copy_thread_dreg_state, mark_thread_stale>
9536 <mark_debug_registers_changed, register_hw_breakpoint>
9537 <clear_hw_breakpoint, register_wp, clear_wp>
9538 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
9539 <num_memory_accesses, get_trigger_type>
9540 <create_watchpoint_request, hwdebug_point_cmp>
9541 <init_arch_lwp_info, get_arch_lwp_info>
9542 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
9543 methods.
9544 <struct ptid_hash>: New inner struct.
9545 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
9546 members.
9547 (saved_dabr_value, hwdebug_info, max_slots_number)
9548 (struct hw_break_tuple, struct thread_points, ppc_threads)
9549 (have_ptrace_hwdebug_interface)
9550 (hwdebug_find_thread_points_by_tid)
9551 (hwdebug_insert_point, hwdebug_remove_point): Remove.
9552 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
9553 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
9554 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
9555 use m_dreg_interface.
9556 (hwdebug_point_cmp): Change to...
9557 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
9558 reference arguments instead of pointers.
9559 (ppc_linux_nat_target::ranged_break_num_registers): Use
9560 m_dreg_interface.
9561 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
9562 m_dreg_interface. Call register_hw_breakpoint.
9563 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
9564 m_dreg_interface. Call clear_hw_breakpoint.
9565 (get_trigger_type): Change to...
9566 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
9567 comment.
9568 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
9569 use m_dreg_interface. Call register_hw_breakpoint.
9570 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
9571 use m_dreg_interface. Call clear_hw_breakpoint.
9572 (can_use_watchpoint_cond_accel): Change to...
9573 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
9574 method. Update comment, use m_dreg_interface and
9575 m_process_info.
9576 (calculate_dvc): Change to...
9577 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
9578 m_dreg_interface.
9579 (num_memory_accesses): Change to...
9580 (ppc_linux_nat_target::num_memory_accesses): ...this method.
9581 (check_condition): Change to...
9582 (ppc_linux_nat_target::check_condition): ...this method.
9583 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
9584 comment, use m_dreg_interface.
9585 (create_watchpoint_request): Change to...
9586 (ppc_linux_nat_target::create_watchpoint_request): ...this
9587 method. Use m_dreg_interface.
9588 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
9589 m_dreg_interface. Call register_hw_breakpoint or register_wp.
9590 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
9591 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
9592 (ppc_linux_nat_target::low_forget_process)
9593 (ppc_linux_nat_target::low_new_fork)
9594 (ppc_linux_nat_target::low_new_clone)
9595 (ppc_linux_nat_target::low_delete_thread)
9596 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
9597 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
9598 only call mark_thread_stale.
9599 (ppc_linux_thread_exit): Remove.
9600 (ppc_linux_nat_target::stopped_data_address): Change to...
9601 (ppc_linux_nat_target::low_stopped_data_address): This. Add
9602 comment, use m_dreg_interface and m_thread_hw_breakpoints.
9603 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
9604 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
9605 comment. Call low_stopped_data_address.
9606 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
9607 m_dreg_interface.
9608 (ppc_linux_nat_target::masked_watch_num_registers): Use
9609 m_dreg_interface.
9610 (ppc_linux_nat_target::copy_thread_dreg_state)
9611 (ppc_linux_nat_target::mark_thread_stale)
9612 (ppc_linux_nat_target::mark_debug_registers_changed)
9613 (ppc_linux_nat_target::register_hw_breakpoint)
9614 (ppc_linux_nat_target::clear_hw_breakpoint)
9615 (ppc_linux_nat_target::register_wp)
9616 (ppc_linux_nat_target::clear_wp)
9617 (ppc_linux_nat_target::init_arch_lwp_info)
9618 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
9619 (_initialize_ppc_linux_nat): Remove observer callback.
9620
4db10d8f
PFC
96212020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9622
9623 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
9624 (ppc_linux_nat_target::auxv_parse)
9625 (ppc_linux_nat_target::read_description)
9626 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
9627 Move up.
9628
1310c1b0
PFC
96292020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9630
9631 * linux-nat.h (low_new_clone): New method.
9632 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
9633
69b037c3
SM
96342020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9635
9636 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
9637 (dbx_expand_psymtab): ... this.
9638 (start_psymtab): Update.
9639 * mdebugread.c (psymtab_to_symtab_1): Rename to...
9640 (mdebug_expand_psymtab): ... this.
9641 (parse_partial_symbols): Update.
9642 (new_psymtab): Update.
9643 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
9644 (xcoff_expand_psymtab): ... this.
9645 (xcoff_start_psymtab): Update.
9646
48993951
SM
96472020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9648
9649 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
9650 <expand_dependencies>: ... this.
9651 * psymtab.c (partial_symtab::read_dependencies): Rename to...
9652 (partial_symtab::expand_dependencies): ... this.
9653 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
9654 Update.
9655 (dwarf2_psymtab::expand_psymtab): Update.
9656 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
9657 * mdebugread.c (psymtab_to_symtab_1): Update.
9658 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
9659
3ad83046
SM
96602020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9661
9662 * psympriv.h (discard_psymtab): Remove.
9663 * dbxread.c (dbx_end_psymtab): Update.
9664 * xcoffread.c (xcoff_end_psymtab): Update.
9665
4d1b9ab6
TT
96662020-03-28 Tom Tromey <tom@tromey.com>
9667
9668 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
9669 comment.
9670
f1749218
TT
96712020-03-28 Tom Tromey <tom@tromey.com>
9672
9673 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
9674
ebea7626
HD
96752020-03-27 Hannes Domani <ssbssa@yahoo.de>
9676
9677 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
9678
a879b4d5
JB
96792020-03-26 John Baldwin <jhb@FreeBSD.org>
9680
9681 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
9682
0826b30a
TT
96832020-03-26 Tom Tromey <tom@tromey.com>
9684
9685 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
9686 (mark_common_block_symbol_computed, read_tag_string_type)
9687 (attr_to_dynamic_prop, read_subrange_type): Update.
9688 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
9689 to be methods on struct attribute.
9690 (skip_one_die, process_imported_unit_die, read_namespace_alias)
9691 (read_call_site_scope, partial_die_info::read)
9692 (partial_die_info::read, lookup_die_type, follow_die_ref):
9693 Update.
9694 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
9695 from dwarf2_get_ref_die_offset.
9696 (attribute::constant_value): New method, from
9697 dwarf2_get_attr_constant_value.
9698 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
9699 Declare method.
9700 <constant_value>: New method.
9701
2b2558bf
TT
97022020-03-26 Tom Tromey <tom@tromey.com>
9703
9704 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
9705 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
9706 (dwarf_type_encoding_name): Move to stringify.c.
9707 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
9708 * dwarf2/stringify.c: New file.
9709 * dwarf2/stringify.h: New file.
9710
eeb64781
TT
97112020-03-26 Tom Tromey <tom@tromey.com>
9712
9713 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
9714 Rewrite.
9715
a39fdb41
TT
97162020-03-26 Tom Tromey <tom@tromey.com>
9717
9718 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
9719 methods.
9720 * dwarf2/read.c (lookup_addr_base): Move to die.h.
9721 (lookup_ranges_base): Likewise.
9722 (read_cutu_die_from_dwo, read_full_die_1): Update.
9723
436c571c
TT
97242020-03-26 Tom Tromey <tom@tromey.com>
9725
9726 * dwarf2/read.c (read_import_statement, read_file_scope)
9727 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
9728 (read_lexical_block_scope, read_call_site_scope)
9729 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
9730 (handle_struct_member_die, process_structure_scope)
9731 (update_enumeration_type_from_children)
9732 (process_enumeration_scope, read_array_type, read_common_block)
9733 (read_namespace, read_module, read_subroutine_type): Update.
9734 (sibling_die): Remove.
9735
052c8bb8
TT
97362020-03-26 Tom Tromey <tom@tromey.com>
9737
9738 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
9739 (build_type_psymtabs_reader, read_structure_type)
9740 (read_enumeration_type, read_full_die_1): Update.
9741 (dwarf2_attr_no_follow): Move to die.h.
9742 * dwarf2/die.h (struct die_info) <attr>: New method.
9743
2b24b6e4
TT
97442020-03-26 Tom Tromey <tom@tromey.com>
9745
9746 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
9747 <base_address>: Now an optional.
9748 (dwarf2_find_base_address, dwarf2_rnglists_process)
9749 (dwarf2_ranges_process, fill_in_loclist_baton)
9750 (dwarf2_symbol_mark_computed): Update.
9751
c2d50fd0
TT
97522020-03-26 Tom Tromey <tom@tromey.com>
9753
9754 * dwarf2/read.c (struct die_info): Move to die.h.
9755 * dwarf2/die.h: New file.
9756
0df7ad3a
TT
97572020-03-26 Tom Tromey <tom@tromey.com>
9758
9759 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
9760 * dwarf2/read.c
9761 (dwarf2_statement_list_fits_in_line_number_section_complaint):
9762 Move to line-header.c.
9763 (read_checked_initial_length_and_offset, read_formatted_entries):
9764 Likewise.
9765 (dwarf_decode_line_header): Split into two.
9766 * dwarf2/line-header.c
9767 (dwarf2_statement_list_fits_in_line_number_section_complaint):
9768 Move from read.c.
9769 (read_checked_initial_length_and_offset, read_formatted_entries):
9770 Likewise.
9771 (dwarf_decode_line_header): New function, split from read.c.
9772
86c0bb4c
TT
97732020-03-26 Tom Tromey <tom@tromey.com>
9774
9775 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
9776 Declare method.
9777 * dwarf2/read.c (read_attribute_value): Update.
9778 (dwarf2_per_objfile::read_line_string): Rename from
9779 read_indirect_line_string.
9780 (read_formatted_entries): Update.
9781
2ef46c2f
TT
97822020-03-26 Tom Tromey <tom@tromey.com>
9783
9784 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
9785 variable.
9786
4f9c1eda
TT
97872020-03-26 Tom Tromey <tom@tromey.com>
9788
9789 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
9790 const.
9791 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
9792 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
9793 parameter const.
9794
5a0e026f
TT
97952020-03-26 Tom Tromey <tom@tromey.com>
9796
9797 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
9798 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
9799 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
9800 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
9801
8844c11b
TT
98022020-03-26 Tom Tromey <tom@tromey.com>
9803
9804 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
9805 file_names_size, file_full_name, file_file_name>: Use const.
9806 <file_name_at, file_names>: Add const overload.
9807 * dwarf2/line-header.c (line_header::file_file_name)
9808 (line_header::file_full_name): Update.
9809
c90ec28a
TT
98102020-03-26 Tom Tromey <tom@tromey.com>
9811
9812 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
9813 (macro_start_file, consume_improper_spaces)
9814 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
9815 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
9816 (dwarf_decode_macros): Move to macro.c.
9817 * dwarf2/macro.c: New file.
9818 * dwarf2/macro.h: New file.
9819 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
9820
4f44ae6c
TT
98212020-03-26 Tom Tromey <tom@tromey.com>
9822
9823 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
9824 method.
9825 * dwarf2/section.c: New method. From
9826 read_indirect_string_at_offset_from.
9827 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
9828 (read_indirect_string_at_offset_from): Move to section.c.
9829 (read_indirect_string_at_offset): Rewrite.
9830 (read_indirect_line_string_at_offset): Remove.
9831 (read_indirect_string, read_indirect_line_string)
9832 (dwarf_decode_macro_bytes): Update.
9833
a0194fa8
TT
98342020-03-26 Tom Tromey <tom@tromey.com>
9835
9836 * dwarf2/section.h (struct dwarf2_section_info)
9837 <overload_complaint>: Declare.
9838 (dwarf2_section_buffer_overflow_complaint): Don't declare.
9839 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
9840 Rename from dwarf2_section_buffer_overflow_complaint.
9841 * dwarf2/read.c (skip_one_die, partial_die_info::read)
9842 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
9843
3d27bbdb
TT
98442020-03-26 Tom Tromey <tom@tromey.com>
9845
9846 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
9847 Declare.
9848 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
9849 Move from read.c.
9850 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
9851 to section.c.
9852
9eac9650
TT
98532020-03-26 Tom Tromey <tom@tromey.com>
9854
9855 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
9856
bf80d710
TT
98572020-03-26 Tom Tromey <tom@tromey.com>
9858
9859 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
9860 "builder".
9861 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
9862 parameter.
9863 (dwarf_decode_macros): Update.
9864
0314b390
TT
98652020-03-26 Tom Tromey <tom@tromey.com>
9866
9867 * dwarf2/read.c (read_attribute_value): Update.
9868 (read_indirect_string_from_dwz): Move to dwz.c; change into
9869 method.
9870 (dwarf_decode_macro_bytes): Update.
9871 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
9872 * dwarf2/dwz.c: New file.
9873 * Makefile.in (COMMON_SFILES): Add dwz.c.
9874
9fda78b6
TT
98752020-03-26 Tom Tromey <tom@tromey.com>
9876
9877 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
9878 * dwarf2/read.c: Add include.
9879 * dwarf2/index-write.c: Add include.
9880 * dwarf2/index-cache.c: Add include.
9881 * dwarf2/dwz.h: New file.
9882
33aa3c10
TT
98832020-03-25 Tom Tromey <tom@tromey.com>
9884
9885 * compile/compile-object-load.c (get_out_value_type): Mention
9886 correct symbol name in error message.
9887
d503b685
HD
98882020-03-25 Hannes Domani <ssbssa@yahoo.de>
9889
9890 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
9891
7b1eff95
TV
98922020-03-25 Tom de Vries <tdevries@suse.de>
9893
9894 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
9895 * symmisc.c (dump_symtab_1): Print user and includes fields.
9896 (maintenance_info_symtabs): Same.
9897
dd895392
AB
98982020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
9899
9900 PR gdb/25534
9901 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
9902 (riscv_regcache_cooked_write): New function.
9903 (riscv_push_dummy_call): Use new function.
9904 (riscv_return_value): Likewise.
9905
5ab2fbf1
SM
99062020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
9907
9908 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
9909 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
9910 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
9911 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
9912 * infrun.c (follow_fork): Likewise.
9913 (follow_fork_inferior): Likewise.
9914 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
9915 * linux-nat.h (class linux_nat_target): Likewise.
9916 * remote.c (class remote_target) <follow_fork>: Likewise.
9917 (remote_target::follow_fork): Likewise.
9918 * target-delegates.c: Re-generate.
9919 * target.c (default_follow_fork): Likewise.
9920 (target_follow_fork): Likewise.
9921 * target.h (struct target_ops) <follow_fork>: Likewise.
9922 (target_follow_fork): Likewise.
9923
a64fafb5
TV
99242020-03-24 Tom de Vries <tdevries@suse.de>
9925
9926 * psymtab.c (maintenance_info_psymtabs): Print user field.
9927
fe26d3a3
TT
99282020-03-20 Tom Tromey <tromey@adacore.com>
9929
9930 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
9931 const.
9932 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
9933 const.
9934
c884cc46
SM
99352020-03-20 Simon Marchi <simon.marchi@efficios.com>
9936
9937 * ptrace.m4: Don't check for ptrace declaration.
9938 * config.in: Re-generate.
9939 * configure: Re-generate.
9940 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
9941 not defined.
9942
1ff700c2
KR
99432020-03-20 Kamil Rytarowski <n54@gmx.com>
9944
9945 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
9946 `PTRACE_TYPE_RET'.
9947 * i386-bsd-nat.c (gdb_ptrace): Likewise.
9948 * sparc-nat.c (gdb_ptrace): Likewise.
9949 * x86-bsd-nat.c (gdb_ptrace): Likewise.
9950
f7d4f0b1
TT
99512020-03-20 Tom Tromey <tromey@adacore.com>
9952
9953 * c-exp.y (lex_one_token): Fix assert.
9954
f67210ff
TT
99552020-03-20 Tom Tromey <tromey@adacore.com>
9956
9957 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
9958 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
9959 strncpy call.
9960
1773be9e
TT
99612020-03-20 Tom Tromey <tromey@adacore.com>
9962
9963 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
9964
70304be9
TT
99652020-03-20 Tom Tromey <tromey@adacore.com>
9966
9967 * ada-valprint.c (print_variant_part): Remove parameters; switch
9968 to value-based API.
9969 (print_field_values): Likewise.
9970 (ada_val_print_struct_union): Likewise.
9971 (ada_value_print_1): Update.
9972
9faa006d
KR
99732020-03-20 Kamil Rytarowski <n54@gmx.com>
9974
9975 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
9976 nbsd_nat_target instead of inf_ptrace_target.
9977 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9978 nbsd_nat_target.
9979
4a90f062
KR
99802020-03-20 Kamil Rytarowski <n54@gmx.com>
9981
9982 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
9983 it to the ptrace call.
9984 * (store_registers): Likewise.
9985
99862020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
9987
9988 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
9989 it to the ptrace call.
9990 * (store_registers): Likewise.
9991
2d07da27
LM
99922020-03-19 Luis Machado <luis.machado@linaro.org>
9993
9994 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
9995 valid, fetch vg value from ptrace.
9996
f09db380
KR
99972020-03-19 Kamil Rytarowski <n54@gmx.com>
9998 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
9999 * inf-ptrace.c: Likewise.
10000 * (gdb_ptrace): Add.
10001 * (inf_ptrace_target::resume): Update.
10002 * (inf_ptrace_target::xfer_partial): Likewise.
10003 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
10004 * (inf_ptrace_peek_poke): Update.
10005
fcc7376e
KR
100062020-03-19 Kamil Rytarowski <n54@gmx.com>
10007
10008 * x86-bsd-nat.c (gdb_ptrace): New.
10009 * (x86bsd_dr_set): Add new argument `ptid'.
10010 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
10011 x86bsd_dr_set_addr): Update.
10012
cada5fc9
AB
100132020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
10014
10015 * remote.c (remote_target::process_stop_reply): Handle events for
10016 all threads differently.
10017
19a2740f
AB
100182020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
10019
10020 * completer.c (completion_tracker::remove_completion): Define new
10021 function.
10022 * completer.h (completion_tracker::remove_completion): Declare new
10023 function.
10024 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
10025 when adding a C++ function symbol.
10026
724fd9ba
AB
100272020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
10028
10029 * completer.c (completion_tracker::completion_hash_entry): Define
10030 new class.
10031 (advance_to_filename_complete_word_point): Call
10032 recompute_lowest_common_denominator.
10033 (completion_tracker::completion_tracker): Call discard_completions
10034 to setup the hash table.
10035 (completion_tracker::discard_completions): Allow for being called
10036 from the constructor, pass new equal function, and element deleter
10037 when constructing the hash table. Initialise new class member
10038 variables.
10039 (completion_tracker::maybe_add_completion): Remove use of
10040 m_entries_vec, and store more information into m_entries_hash.
10041 (completion_tracker::recompute_lcd_visitor): New function, most
10042 content taken from...
10043 (completion_tracker::recompute_lowest_common_denominator):
10044 ...here, this now just visits each item in the hash calling the
10045 above visitor.
10046 (completion_tracker::build_completion_result): Remove use of
10047 m_entries_vec, call recompute_lowest_common_denominator.
10048 * completer.h (completion_tracker::have_completions): Remove use
10049 of m_entries_vec.
10050 (completion_tracker::completion_hash_entry): Declare new class.
10051 (completion_tracker::recompute_lowest_common_denominator): Change
10052 function signature.
10053 (completion_tracker::recompute_lcd_visitor): Declare new function.
10054 (completion_tracker::m_entries_vec): Delete.
10055 (completion_tracker::m_entries_hash): Initialize to NULL.
10056 (completion_tracker::m_lowest_common_denominator_valid): New
10057 member variable.
10058 (completion_tracker::m_lowest_common_denominator_max_length): New
10059 member variable.
10060
5a82b8a1
KR
100612020-03-17 Kamil Rytarowski <n54@gmx.com>
10062
10063 * regformats/regdef.h: Put reg in gdb namespace.
10064
fb516a69
KR
100652020-03-17 Kamil Rytarowski <n54@gmx.com>
10066
10067 * i386-bsd-nat.c (gdb_ptrace): New.
10068 * (i386bsd_fetch_inferior_registers,
10069 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
10070 * (i386bsd_fetch_inferior_registers,
10071 i386bsd_store_inferior_registers) Use gdb_ptrace.
10072
1c0aa1fb
KR
100732020-03-17 Kamil Rytarowski <n54@gmx.com>
10074
10075 * amd64-bsd-nat.c (gdb_ptrace): New.
10076 * (amd64bsd_fetch_inferior_registers,
10077 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
10078 * (amd64bsd_fetch_inferior_registers,
10079 amd64bsd_store_inferior_registers) Use gdb_ptrace.
10080
5ccd2fb7
KR
100812020-03-17 Kamil Rytarowski <n54@gmx.com>
10082
10083 * user-regs.c (user_reg::read): Rename to...
10084 (user_reg::xread): ...this.
10085 * (append_user_reg): Rename argument `read' to `xread'.
10086 * (user_reg_add_builtin): Likewise.
10087 * (user_reg_add): Likewise.
10088 * (value_of_user_reg): Likewise.
10089
2108a63a
KR
100902020-03-17 Kamil Rytarowski <n54@gmx.com>
10091
10092 * sparc-nat.c (gdb_ptrace): New.
10093 * sparc-nat.c (sparc_fetch_inferior_registers)
10094 (sparc_store_inferior_registers) Remove obsolete comment.
10095 * sparc-nat.c (sparc_fetch_inferior_registers)
10096 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
10097 * sparc-nat.c (sparc_fetch_inferior_registers)
10098 (sparc_store_inferior_registers) Use gdb_ptrace.
10099
a225c9a8
KR
101002020-03-17 Kamil Rytarowski <n54@gmx.com>
10101
10102 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
10103 it to the ptrace call.
10104 * sh-nbsd-nat.c (store_registers): Likewise.
10105
98097623
KR
101062020-03-17 Kamil Rytarowski <n54@gmx.com>
10107
10108 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
10109 nbsd_nat_target instead of inf_ptrace_target.
10110 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
10111 nbsd_nat_target.
10112
9e38d619
KR
101132020-03-17 Kamil Rytarowski <n54@gmx.com>
10114
10115 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
10116
a2ecbe9f
KR
101172020-03-17 Kamil Rytarowski <n54@gmx.com>
10118
10119 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
10120 <sys/sysctl.h>.
10121 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
10122
58990295
TV
101232020-03-17 Tom de Vries <tdevries@suse.de>
10124
10125 PR gdb/23710
10126 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
10127 fields.
10128 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
10129 fields.
10130 (process_imported_unit_die): Skip import of c++ CUs.
10131
771dd3a8
TT
101322020-03-16 Tom Tromey <tom@tromey.com>
10133
10134 * p-valprint.c (pascal_object_print_value): Initialize
10135 base_value.
10136
817a7585
AK
101372020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
10138 Shahab Vahedi <shahab@synopsys.com>
10139
10140 * Makefile.in: Add arch/arc.o
10141 * configure.tgt: Likewise.
10142 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
10143 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 10144 (arc_read_description): New function to cache target descriptions.
817a7585
AK
10145 * arc-tdep.h (arc_read_description): Add proto type.
10146 * arch/arc.c: New file.
10147 * arch/arc.h: Likewise.
10148 * features/Makefile: Replace old target descriptions with new.
10149 * features/arc-arcompact.c: Remove.
10150 * features/arc-arcompact.xml: Likewise.
10151 * features/arc-v2.c: Likewise
10152 * features/arc-v2.xml: Likewise
10153 * features/arc/aux-arcompact.xml: New file.
10154 * features/arc/aux-v2.xml: Likewise.
10155 * features/arc/core-arcompact.xml: Likewise.
10156 * features/arc/core-v2.xml: Likewise.
10157 * features/arc/aux-arcompact.c: Generate.
10158 * features/arc/aux-v2.c: Likewise.
10159 * features/arc/core-arcompact.c: Likewise.
10160 * features/arc/core-v2.c: Likewise.
10161 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
10162
67430cd0
TT
101632020-03-16 Tom Tromey <tromey@adacore.com>
10164
10165 PR gdb/25663:
10166 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
10167 putting value into bcache.
10168
30efb6c7
SM
101692020-03-16 Simon Marchi <simon.marchi@efficios.com>
10170
10171 PR gdb/21500
10172 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
10173 to...
10174 (amd64_windows_init_abi_common): ... this. Don't set size of
10175 long type.
10176 (amd64_windows_init_abi): New function.
10177 (amd64_cygwin_init_abi): New function.
10178 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
10179 the Cygwin OS ABI.
10180 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
10181 comment.
10182
8db52437
SM
101832020-03-16 Simon Marchi <simon.marchi@efficios.com>
10184
10185 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
10186 * windows-tdep.c (CYGWIN_DLL_NAME): New.
10187 (pe_import_directory_entry): New struct type.
10188 (is_linked_with_cygwin_dll): New function.
10189 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
10190 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
10191 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
10192
5982a56a
SM
101932020-03-16 Simon Marchi <simon.marchi@efficios.com>
10194
10195 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
10196 i386_cygwin_core_osabi_sniffer.
10197
7a1998df
SM
101982020-03-16 Simon Marchi <simon.marchi@efficios.com>
10199
10200 * i386-cygwin-tdep.c: Rename to...
10201 * i386-windows-tdep.c: ... this.
10202 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
10203 i386-windows-tdep.c.
10204 * configure.tgt: Likewise.
10205
053205cc
SM
102062020-03-16 Simon Marchi <simon.marchi@efficios.com>
10207
10208 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
10209 * osabi.c (gdb_osabi_names): Add "Windows".
10210 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
10211 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
10212 (i386_cygwin_core_osabi_sniffer): New function, extracted from
10213 i386_cygwin_osabi_sniffer.
10214 (_initialize_i386_cygwin_tdep): Register OS ABI
10215 GDB_OSABI_WINDOWS for i386.
10216 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
10217 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
10218 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
10219 for x86-64.
10220 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
10221 when the target matches '*-*-mingw*'.
10222
fe4b2ee6
SM
102232020-03-16 Simon Marchi <simon.marchi@efficios.com>
10224
10225 * defs.h (enum gdb_osabi): Move to...
10226 * osabi.h (enum gdb_osabi): ... here.
10227 * gdbarch.sh: Include osabi.h in gdbarch.h.
10228 * gdbarch.h: Re-generate.
10229
cb9b645d
SM
102302020-03-16 Simon Marchi <simon.marchi@efficios.com>
10231
10232 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
10233 function.
10234 (_initialize_amd64_windows_tdep): Register osabi sniffer.
10235
3293bbaf
TT
102362020-03-14 Tom Tromey <tom@tromey.com>
10237
10238 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
10239 for C++.
10240 (c_type_print_modifier): Likewise. Add "language" parameter.
10241 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
10242 (c_type_print_base_1): Update.
10243 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
10244 constants.
10245 * type-stack.c (type_stack::insert): Handle tp_atomic and
10246 tp_restrict.
10247 (type_stack::follow_type_instance_flags): Likewise.
10248 (type_stack::follow_types): Likewise. Merge type-following code.
10249 * c-exp.y (RESTRICT, ATOMIC): New tokens.
10250 (space_identifier, cv_with_space_id)
10251 (const_or_volatile_or_space_identifier_noopt)
10252 (const_or_volatile_or_space_identifier): Remove.
10253 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
10254 rules.
10255 (ptr_operator, typebase): Update.
10256 (enum token_flag) <FLAG_C>: New constant.
10257 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
10258 "_Atomic".
10259 (lex_one_token): Handle FLAG_C.
10260
154151a6
KR
102612020-03-14 Kamil Rytarowski <n54@gmx.com>
10262
10263 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
10264 it to the ptrace call.
10265 * m68k-bsd-nat.c (store_registers): Likewise.
10266
bc107784
KR
102672020-03-14 Kamil Rytarowski <n54@gmx.com>
10268
10269 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
10270 gdb_byte *.
10271 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
10272 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
10273 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
10274
01a80117
KR
102752020-03-14 Kamil Rytarowski <n54@gmx.com>
10276
10277 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
10278 nbsd_nat_target instead of inf_ptrace_target.
10279 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
10280 nbsd_nat_target.
10281
f90280ca
KR
102822020-03-14 Kamil Rytarowski <n54@gmx.com>
10283
10284 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
10285 register_t.
10286
6def66f1
KR
102872020-03-14 Kamil Rytarowski <n54@gmx.com>
10288
10289 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
10290 it to the ptrace call.
10291 * alpha-bsd-nat.c (store_registers): Likewise.
10292
66eaca97
KR
102932020-03-14 Kamil Rytarowski <n54@gmx.com>
10294
10295 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
10296 includes.
10297 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
10298 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
10299 fill_fpregset): Likewise.
10300
4fed520b
KR
103012020-03-14 Kamil Rytarowski <n54@gmx.com>
10302
10303 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
10304 nbsd_nat_target instead of inf_ptrace_target.
10305 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
10306 nbsd_nat_target.
10307
2190cf06
KR
103082020-03-14 Kamil Rytarowski <n54@gmx.com>
10309
10310 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
10311 register_t.
10312
75c56d3d
KR
103132020-03-14 Kamil Rytarowski <n54@gmx.com>
10314
10315 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
10316 it to the ptrace call.
10317 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
10318 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
10319 * arm-nbsd-nat.c (store_register): Likewise.
10320 * arm-nbsd-nat.c (store_regs): Likewise.
10321 * arm-nbsd-nat.c (store_fp_register): Likewise.
10322 * arm-nbsd-nat.c (store_fp_regs): Likewise.
10323
6018d381
KR
103242020-03-14 Kamil Rytarowski <n54@gmx.com>
10325
10326 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
10327 nbsd_nat_target instead of inf_ptrace_target.
10328 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
10329 nbsd_nat_target.
10330
013f99f0
KR
103312020-03-14 Kamil Rytarowski <n54@gmx.com>
10332
10333 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
10334 it to the ptrace call.
10335 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
10336
12753073
KR
103372020-03-14 Kamil Rytarowski <n54@gmx.com>
10338
6227b330
KR
10339 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
10340 it to the ptrace call.
10341 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
10342
103432020-03-14 Kamil Rytarowski <n54@gmx.com>
10344
10345 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
10346 gdb_byte *.
12753073
KR
10347 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
10348
d5be5fa4
KR
103492020-03-14 Kamil Rytarowski <n54@gmx.com>
10350
10351 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
10352 instead of inf_ptrace_target.
10353 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
10354 nbsd_nat_target.
10355
8110f842
KR
103562020-03-14 Kamil Rytarowski <n54@gmx.com>
10357
10358 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10359 register_t.
10360
52feded7
KR
103612020-03-14 Kamil Rytarowski <n54@gmx.com>
10362
10363 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10364 register_t.
10365
25567eee
KR
103662020-03-14 Kamil Rytarowski <n54@gmx.com>
10367
10368 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
10369 register_t.
10370
426a9c18
TT
103712020-03-13 Tom Tromey <tom@tromey.com>
10372
10373 * value.h (val_print): Don't declare.
10374 * valprint.h (val_print_array_elements)
10375 (val_print_scalar_formatted, generic_val_print): Don't declare.
10376 * valprint.c (generic_val_print_array): Take a struct value.
10377 (generic_val_print_ptr, generic_val_print_memberptr)
10378 (generic_val_print_bool, generic_val_print_int)
10379 (generic_val_print_char, generic_val_print_complex)
10380 (generic_val_print): Remove.
10381 (generic_value_print): Update.
10382 (do_val_print): Remove unused parameters. Don't call
10383 la_val_print.
10384 (val_print): Remove.
10385 (common_val_print): Update. Don't call value_check_printable.
10386 (val_print_scalar_formatted, val_print_array_elements): Remove.
10387 * rust-lang.c (rust_val_print): Remove.
10388 (rust_language_defn): Update.
10389 * p-valprint.c (pascal_val_print): Remove.
10390 (pascal_value_print_inner): Update.
10391 (pascal_object_print_val_fields, pascal_object_print_val):
10392 Remove.
10393 (pascal_object_print_static_field): Update.
10394 * p-lang.h (pascal_val_print): Don't declare.
10395 * p-lang.c (pascal_language_defn): Update.
10396 * opencl-lang.c (opencl_language_defn): Update.
10397 * objc-lang.c (objc_language_defn): Update.
10398 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
10399 * m2-lang.h (m2_val_print): Don't declare.
10400 * m2-lang.c (m2_language_defn): Update.
10401 * language.h (struct language_defn) <la_val_print>: Remove.
10402 * language.c (unk_lang_value_print_inner): Rename. Change
10403 argument types.
10404 (unknown_language_defn, auto_language_defn): Update.
10405 * go-valprint.c (go_val_print): Remove.
10406 * go-lang.h (go_val_print): Don't declare.
10407 * go-lang.c (go_language_defn): Update.
10408 * f-valprint.c (f_val_print): Remove.
10409 * f-lang.h (f_value_print): Don't declare.
10410 * f-lang.c (f_language_defn): Update.
10411 * d-valprint.c (d_val_print): Remove.
10412 * d-lang.h (d_value_print): Don't declare.
10413 * d-lang.c (d_language_defn): Update.
10414 * cp-valprint.c (cp_print_value_fields)
10415 (cp_print_value_fields_rtti, cp_print_value): Remove.
10416 (cp_print_static_field): Update.
10417 * c-valprint.c (c_val_print_array, c_val_print_ptr)
10418 (c_val_print_struct, c_val_print_union, c_val_print_int)
10419 (c_val_print_memberptr, c_val_print): Remove.
10420 * c-lang.h (c_val_print_array, cp_print_value_fields)
10421 (cp_print_value_fields_rtti): Don't declare.
10422 * c-lang.c (c_language_defn, cplus_language_defn)
10423 (asm_language_defn, minimal_language_defn): Update.
10424 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
10425 (ada_val_print_enum): Take a struct value.
10426 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
10427 (ada_val_print): Remove.
10428 (ada_value_print_1): Update.
10429 (printable_val_type): Remove.
10430 * ada-lang.h (ada_val_print): Don't declare.
10431 * ada-lang.c (ada_language_defn): Update.
10432
42331a1e
TT
104332020-03-13 Tom Tromey <tom@tromey.com>
10434
10435 * valprint.c (do_val_print): Update.
10436 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
10437 a struct value.
10438 (value_to_value_object_no_release): Declare.
10439 * python/py-value.c (value_to_value_object_no_release): New
10440 function.
10441 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
10442 struct value.
10443 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
10444 function.
10445 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
10446 a struct value.
10447 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
10448 Declare.
10449 (gdbscm_apply_val_pretty_printer): Take a struct value.
10450 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
10451 value.
10452 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
10453 value.
10454 * extension-priv.h (struct extension_language_ops)
10455 <apply_val_pretty_printer>: Take a struct value.
10456 * cp-valprint.c (cp_print_value): Create a struct value.
10457 (cp_print_value): Update.
10458
3a916a97
TT
104592020-03-13 Tom Tromey <tom@tromey.com>
10460
10461 * ada-valprint.c (print_field_values): Call common_val_print.
10462
b59eac37
TT
104632020-03-13 Tom Tromey <tom@tromey.com>
10464
10465 * ada-valprint.c (val_print_packed_array_elements): Remove
10466 bitoffset and val parameters. Call common_val_print.
10467 (ada_val_print_string): Remove offset, address, and original_value
10468 parameters.
10469 (ada_val_print_array): Update.
10470 (ada_value_print_array): New function.
10471 (ada_value_print_1): Call it.
10472
03371129
TT
104732020-03-13 Tom Tromey <tom@tromey.com>
10474
10475 * ada-valprint.c (ada_value_print): Use common_val_print.
10476
2e088f8b
TT
104772020-03-13 Tom Tromey <tom@tromey.com>
10478
10479 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
10480
39ef85a8
TT
104812020-03-13 Tom Tromey <tom@tromey.com>
10482
10483 * ada-valprint.c (ada_value_print_num): New function.
10484 (ada_value_print_1): Use it.
10485
b9fa6e07
TT
104862020-03-13 Tom Tromey <tom@tromey.com>
10487
10488 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
10489
416595d6
TT
104902020-03-13 Tom Tromey <tom@tromey.com>
10491
10492 * ada-valprint.c (ada_value_print_ptr): New function.
10493 (ada_value_print_1): Use it.
10494
5b5e15ec
TT
104952020-03-13 Tom Tromey <tom@tromey.com>
10496
10497 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
10498 call common_val_print.
10499 (ada_val_print_1): Update.
10500 (ada_value_print_1): New function.
10501 (ada_value_print_inner): Rewrite.
10502
fbf54e75
TT
105032020-03-13 Tom Tromey <tom@tromey.com>
10504
10505 * cp-valprint.c (cp_print_value_fields): Update.
10506 (cp_print_value): New function.
10507
64b653ca
TT
105082020-03-13 Tom Tromey <tom@tromey.com>
10509
10510 * m2-valprint.c (m2_value_print_inner): Use
10511 cp_print_value_fields.
10512 * cp-valprint.c (cp_print_value_fields): New function.
10513 * c-valprint.c (c_value_print_struct): New function.
10514 (c_value_print_inner): Use c_value_print_struct.
10515 * c-lang.h (cp_print_value_fields): Declare.
10516
6999f067
TT
105172020-03-13 Tom Tromey <tom@tromey.com>
10518
10519 * c-valprint.c (c_value_print_array): New function.
10520 (c_value_print_inner): Use it.
10521
ce80b8bd
TT
105222020-03-13 Tom Tromey <tom@tromey.com>
10523
10524 * c-valprint.c (c_value_print_memberptr): New function.
10525 (c_value_print_inner): Use it.
10526
2faac269
TT
105272020-03-13 Tom Tromey <tom@tromey.com>
10528
10529 * c-valprint.c (c_value_print_int): New function.
10530 (c_value_print_inner): Use it.
10531
da3e2c29
TT
105322020-03-13 Tom Tromey <tom@tromey.com>
10533
10534 * c-valprint.c (c_value_print_ptr): New function.
10535 (c_value_print_inner): Use it.
10536
50836231
TT
105372020-03-13 Tom Tromey <tom@tromey.com>
10538
10539 * c-valprint.c (c_value_print_inner): Rewrite.
10540
4f412b6e
TT
105412020-03-13 Tom Tromey <tom@tromey.com>
10542
10543 * valprint.c (generic_value_print_complex): New function.
10544 (generic_value_print): Use it.
10545
f5354008
TT
105462020-03-13 Tom Tromey <tom@tromey.com>
10547
10548 * valprint.c (generic_val_print_float): Don't call
10549 val_print_scalar_formatted.
10550 (generic_val_print, generic_value_print): Update.
10551
3eec3b05
TT
105522020-03-13 Tom Tromey <tom@tromey.com>
10553
10554 * valprint.c (generic_value_print_char): New function
10555 (generic_value_print): Use it.
10556
fdddfccb
TT
105572020-03-13 Tom Tromey <tom@tromey.com>
10558
10559 * valprint.c (generic_value_print_int): New function.
10560 (generic_value_print): Use it.
10561
6dde7521
TT
105622020-03-13 Tom Tromey <tom@tromey.com>
10563
10564 * valprint.c (generic_value_print_bool): New function.
10565 (generic_value_print): Use it.
10566
4112d2e6
TT
105672020-03-13 Tom Tromey <tom@tromey.com>
10568
10569 * valprint.c (generic_val_print_func): Simplify.
10570 (generic_val_print, generic_value_print): Update.
10571
65786af6
TT
105722020-03-13 Tom Tromey <tom@tromey.com>
10573
10574 * valprint.c (generic_val_print_flags): Remove.
10575 (generic_val_print, generic_value_print): Update.
10576 (val_print_type_code_flags): Add original_value parameter.
10577
40f3ce18
TT
105782020-03-13 Tom Tromey <tom@tromey.com>
10579
10580 * valprint.c (generic_val_print): Update.
10581 (generic_value_print): Update.
10582 * valprint.c (generic_val_print_enum): Don't call
10583 val_print_scalar_formatted.
10584
2a5b130b
TT
105852020-03-13 Tom Tromey <tom@tromey.com>
10586
10587 * valprint.c (generic_value_print): Call generic_value_print_ptr.
10588 * valprint.c (generic_value_print_ptr): New function.
10589
abc66ce9
TT
105902020-03-13 Tom Tromey <tom@tromey.com>
10591
10592 * valprint.c (generic_value_print): Rewrite.
10593
07a32858
TT
105942020-03-13 Tom Tromey <tom@tromey.com>
10595
10596 * p-valprint.c (pascal_object_print_value_fields)
10597 (pascal_object_print_value): New functions.
10598
64d64d3a
TT
105992020-03-13 Tom Tromey <tom@tromey.com>
10600
10601 * p-valprint.c (pascal_value_print_inner): Rewrite.
10602
6a95a1f5
TT
106032020-03-13 Tom Tromey <tom@tromey.com>
10604
10605 * f-valprint.c (f_value_print_innner): Rewrite.
10606
59fcdac6
TT
106072020-03-13 Tom Tromey <tom@tromey.com>
10608
10609 * m2-valprint.c (m2_print_unbounded_array): New overload.
10610 (m2_print_unbounded_array): Update.
10611 (m2_print_array_contents): Take a struct value.
10612 (m2_value_print_inner): Rewrite.
10613
d133c3e1
TT
106142020-03-13 Tom Tromey <tom@tromey.com>
10615
10616 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
10617 (d_value_print_inner): New function.
10618 * d-lang.h (d_value_print_inner): Declare.
10619 * d-lang.c (d_language_defn): Use d_value_print_inner.
10620
23b0f06b
TT
106212020-03-13 Tom Tromey <tom@tromey.com>
10622
10623 * go-valprint.c (go_value_print_inner): New function.
10624 * go-lang.h (go_value_print_inner): Declare.
10625 * go-lang.c (go_language_defn): Use go_value_print_inner.
10626
5f56f7cb
TT
106272020-03-13 Tom Tromey <tom@tromey.com>
10628
10629 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
10630 API.
10631 (rust_val_print): Rewrite.
10632 (rust_value_print_inner): New function, from rust_val_print.
10633 (rust_language_defn): Use rust_value_print_inner.
10634
26792ee0
TT
106352020-03-13 Tom Tromey <tom@tromey.com>
10636
10637 * ada-valprint.c (ada_value_print_inner): New function.
10638 * ada-lang.h (ada_value_print_inner): Declare.
10639 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
10640
24051bbe
TT
106412020-03-13 Tom Tromey <tom@tromey.com>
10642
10643 * f-valprint.c (f_value_print_innner): New function.
10644 * f-lang.h (f_value_print_innner): Declare.
10645 * f-lang.c (f_language_defn): Use f_value_print_innner.
10646
c0941be6
TT
106472020-03-13 Tom Tromey <tom@tromey.com>
10648
10649 * p-valprint.c (pascal_value_print_inner): New function.
10650 * p-lang.h (pascal_value_print_inner): Declare.
10651 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
10652
62c4663d
TT
106532020-03-13 Tom Tromey <tom@tromey.com>
10654
10655 * m2-valprint.c (m2_value_print_inner): New function.
10656 * m2-lang.h (m2_value_print_inner): Declare.
10657 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
10658
62182190
TT
106592020-03-13 Tom Tromey <tom@tromey.com>
10660
10661 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
10662 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
10663 * c-valprint.c (c_value_print_inner): New function.
10664 * c-lang.h (c_value_print_inner): Declare.
10665 * c-lang.c (c_language_defn, cplus_language_defn)
10666 (asm_language_defn, minimal_language_defn): Use
10667 c_value_print_inner.
10668
1e592a8a
TT
106692020-03-13 Tom Tromey <tom@tromey.com>
10670
10671 * p-valprint.c (pascal_object_print_value_fields): Now static.
10672 * p-lang.h (pascal_object_print_value_fields): Don't declare.
10673
7fe471e9
TT
106742020-03-13 Tom Tromey <tom@tromey.com>
10675
10676 * c-valprint.c (c_val_print_array): Simplify.
10677
d121c6ce
TT
106782020-03-13 Tom Tromey <tom@tromey.com>
10679
10680 * valprint.c (value_print_array_elements): New function.
10681 * valprint.h (value_print_array_elements): Declare.
10682
4dba70ee
TT
106832020-03-13 Tom Tromey <tom@tromey.com>
10684
10685 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
10686 * mips-tdep.c (mips_print_register): Use
10687 value_print_scalar_formatted.
10688
4f9ae810
TT
106892020-03-13 Tom Tromey <tom@tromey.com>
10690
10691 * valprint.h (value_print_scalar_formatted): Declare.
10692 * valprint.c (value_print_scalar_formatted): New function.
10693
156bfec9
TT
106942020-03-13 Tom Tromey <tom@tromey.com>
10695
10696 * valprint.h (generic_value_print): Declare.
10697 * valprint.c (generic_value_print): New function.
10698
2b4e573d
TT
106992020-03-13 Tom Tromey <tom@tromey.com>
10700
10701 * valprint.c (do_val_print): Call la_value_print_inner, if
10702 available.
10703 * rust-lang.c (rust_language_defn): Update.
10704 * p-lang.c (pascal_language_defn): Update.
10705 * opencl-lang.c (opencl_language_defn): Update.
10706 * objc-lang.c (objc_language_defn): Update.
10707 * m2-lang.c (m2_language_defn): Update.
10708 * language.h (struct language_defn) <la_value_print_inner>: New
10709 member.
10710 * language.c (unknown_language_defn, auto_language_defn): Update.
10711 * go-lang.c (go_language_defn): Update.
10712 * f-lang.c (f_language_defn): Update.
10713 * d-lang.c (d_language_defn): Update.
10714 * c-lang.c (c_language_defn, cplus_language_defn)
10715 (asm_language_defn, minimal_language_defn): Update.
10716 * ada-lang.c (ada_language_defn): Update.
10717
a1f6a07c
TT
107182020-03-13 Tom Tromey <tom@tromey.com>
10719
10720 * c-valprint.c (c_value_print): Use common_val_print.
10721
410cf315
TT
107222020-03-13 Tom Tromey <tom@tromey.com>
10723
10724 * cp-valprint.c (cp_print_static_field): Use common_val_print.
10725
72a45c93
TT
107262020-03-13 Tom Tromey <tom@tromey.com>
10727
10728 * f-valprint.c (f77_print_array_1, f_val_print): Use
10729 common_val_print.
10730
040f66bd
TT
107312020-03-13 Tom Tromey <tom@tromey.com>
10732
10733 * riscv-tdep.c (riscv_print_one_register_info): Use
10734 common_val_print.
10735
a6e05a6c
TT
107362020-03-13 Tom Tromey <tom@tromey.com>
10737
10738 * mi/mi-main.c (output_register): Use common_val_print.
10739
3444c526
TT
107402020-03-13 Tom Tromey <tom@tromey.com>
10741
10742 * infcmd.c (default_print_one_register_info): Use
10743 common_val_print.
10744
c2a44efe
TT
107452020-03-13 Tom Tromey <tom@tromey.com>
10746
10747 * valprint.h (common_val_print_checked): Declare.
10748 * valprint.c (common_val_print_checked): New function.
10749 * stack.c (print_frame_arg): Use common_val_print_checked.
10750
b0c26e99
TT
107512020-03-13 Tom Tromey <tom@tromey.com>
10752
10753 * valprint.c (do_val_print): New function, from val_print.
10754 (val_print): Use do_val_print.
10755 (common_val_print): Use do_val_print.
10756
ce3acbe9
TT
107572020-03-13 Tom Tromey <tom@tromey.com>
10758
10759 * valprint.c (value_print): Use scoped_value_mark.
10760
96c7f873
TV
107612020-03-13 Tom de Vries <tdevries@suse.de>
10762
10763 PR symtab/25646
10764 * psymtab.c (partial_symtab::partial_symtab): Don't set
10765 globals_offset and statics_offset. Push element onto
10766 current_global_psymbols and current_static_psymbols stacks.
10767 (concat): New function.
10768 (end_psymtab_common): Set globals_offset and statics_offset. Pop
10769 element from current_global_psymbols and current_static_psymbols
10770 stacks. Concat popped elements to global_psymbols and
10771 static_symbols.
10772 (add_psymbol_to_list): Use current_global_psymbols and
10773 current_static_psymbols stacks.
10774 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
10775 current_static_psymbols fields.
10776
6ba0a321
CB
107772020-03-12 Christian Biesinger <cbiesinger@google.com>
10778
10779 * corelow.c (sniff_core_bfd): Remove.
10780 (class core_target) <m_core_vec>: Remove.
10781 (core_target::core_target): Update.
10782 (core_file_fns): Remove.
10783 (deprecated_add_core_fns): Remove.
10784 (default_core_sniffer): Remove.
10785 (sniff_core_bfd): Remove.
10786 (default_check_format): Remove.
10787 (gdb_check_format): Remove.
10788 (core_target_open): Update.
10789 (core_target::get_core_register_section): Update.
10790 (get_core_registers_cb): Update.
10791 (core_target::fetch_registers): Update.
10792 * gdbcore.h (struct core_fns): Remove.
10793 (deprecated_add_core_fns): Remove.
10794 (default_core_sniffer): Remove.
10795 (default_check_format): Remove.
10796
227031b2
TT
107972020-03-12 Tom Tromey <tom@tromey.com>
10798
10799 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
10800 CORE_ADDR.
10801 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
10802
53807e9f
TT
108032020-03-12 Tom Tromey <tom@tromey.com>
10804
10805 * remote.c (remote_target::download_tracepoint)
10806 (remote_target::enable_tracepoint)
10807 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
10808 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
10809 sprintf_vma.
10810
64f25102
TT
108112020-03-12 Tom Tromey <tom@tromey.com>
10812
10813 * symfile-mem.c: Update CORE_ADDR size assert.
10814
272cd5a3
SM
108152020-03-12 Simon Marchi <simon.marchi@efficios.com>
10816
10817 * selftest.m4: Move to gdbsupport/.
10818 * acinclude.m4: Update path to selftest.m4.
10819
74cd3f9d
SM
108202020-03-12 Simon Marchi <simon.marchi@efficios.com>
10821
10822 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
10823 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
10824 gdbarch-selfselftests.c and selftest-arch.c.
10825 (SUBDIR_UNITTESTS_OBS): Rename to...
10826 (SELFTESTS_OBS): ... this.
10827 (COMMON_SFILES): Remove disasm-selftests.c and
10828 gdbarch-selftests.c.
10829 * configure.ac: Don't add selftest-arch.{c,o} to
10830 CONFIG_{SRCS,OBS}.
10831 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
10832 preprocessor conditions.
10833
db6878ac
SM
108342020-03-12 Simon Marchi <simon.marchi@efficios.com>
10835
10836 * configure.ac: Don't source bfd/development.sh.
10837 * selftest.m4: Modify comment.
10838 * configure: Re-generate.
10839
4d696a5c
SM
108402020-03-12 Simon Marchi <simon.marchi@efficios.com>
10841
10842 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
10843 not "true" or "false".
10844 * configure: Re-generate.
10845
8dd8e1c7
CB
108462020-03-12 Christian Biesinger <cbiesinger@google.com>
10847
10848 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
10849 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
10850 renamed to arm_nbsd_supply_gregset.
10851 (fetch_register): Update to call arm_nbsd_supply_gregset.
10852 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
10853 (arm_netbsd_nat_target::fetch_registers): Update.
10854 (fetch_elfcore_registers): Removed.
10855 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
10856 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
10857 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
10858 not require NetBSD system headers.
10859 (arm_nbsd_regset): New struct.
10860 (arm_nbsd_iterate_over_regset_sections): New function.
10861 (arm_netbsd_init_abi_common): Updated to call
10862 set_gdbarch_iterate_over_regset_sections.
10863 * arm-nbsd-tdep.h: New file.
10864
dd69bf7a
KB
108652020-03-11 Kevin Buettner <kevinb@redhat.com>
10866
10867 * symtab.c (find_pc_sect_line): Add check which prevents infinite
10868 recursion.
10869
a0761e34
SM
108702020-03-11 Simon Marchi <simon.marchi@efficios.com>
10871
10872 * configure: Re-generate.
10873
e7a82140
TT
108742020-03-11 Tom Tromey <tromey@adacore.com>
10875
10876 * ada-typeprint.c (print_choices): Fix comment.
10877
dcc050c8
AB
108782020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
10879
10880 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
10881 previous item in the list, when the list has no items.
10882
1c33af77
TV
108832020-03-11 Tom de Vries <tdevries@suse.de>
10884
10885 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
10886 PROP_LOCLIST handling code.
10887
8c95582d
AB
108882020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
10889
10890 * buildsym-legacy.c (record_line): Pass extra parameter to
10891 record_line.
10892 * buildsym.c (buildsym_compunit::record_line): Take an extra
10893 parameter, reduce duplication in the line table, and record the
10894 is_stmt flag in the line table.
10895 * buildsym.h (buildsym_compunit::record_line): Add extra
10896 parameter.
10897 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
10898 non-statement lines.
10899 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
10900 this to the symtab builder.
10901 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
10902 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
10903 through to dwarf_record_line_1.
10904 * infrun.c (process_event_stop_test): When stepping, don't stop at
10905 a non-statement instruction, and only refresh the step info when
10906 we land in the middle of a line's range. Also add an extra
10907 comment.
10908 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
10909 field.
10910 * record-btrace.c (btrace_find_line_range): Only record lines
10911 marked as is-statement.
10912 * stack.c (frame_show_address): Show the frame address if we are
10913 in a non-statement sal.
10914 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
10915 (maintenance_print_one_line_table): Print a header for the is_stmt
10916 column, and include is_stmt information in the output.
10917 * symtab.c (find_pc_sect_line): Find lines marked as statements in
10918 preference to non-statements.
10919 (find_pcs_for_symtab_line): Prefer is-statement entries.
10920 (find_line_common): Likewise.
10921 * symtab.h (struct linetable_entry): Add is_stmt field.
10922 (struct symtab_and_line): Likewise.
10923 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
10924 arranging the line table.
10925
e4003a34
TV
109262020-03-07 Tom de Vries <tdevries@suse.de>
10927
10928 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
10929 DIE.
10930
e8932576
TT
109312020-03-07 Tom Tromey <tom@tromey.com>
10932
10933 * valops.c (value_literal_complex): Remove obsolete comment.
10934 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
10935 comment.
10936
29734269
SM
109372020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
10938
10939 * infrun.h: Forward-declare thread_info.
10940 (set_step_info): Add thread_info parameter, add doc.
10941 * infrun.c (set_step_info): Add thread_info parameter, move doc
10942 to header.
10943 * infrun.c (process_event_stop_test): Pass thread to
10944 set_step_info call.
10945 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
10946 set_step_info.
10947 (prepare_one_step): Add thread_info parameter, pass it to
10948 set_step_frame and prepare_one_step (recursive) call.
10949 (step_1): Pass thread to prepare_one_step call.
10950 (step_command_fsm::should_stop): Pass thread to
10951 prepare_one_step.
10952 (until_next_fsm): Pass thread to set_step_frame call.
10953 (finish_command): Pass thread to set_step_info call.
10954
b7d64b29
HD
109552020-03-06 Hannes Domani <ssbssa@yahoo.de>
10956
10957 * windows-tdep.c (windows_solib_create_inferior_hook):
10958 Check if inferior is running.
10959
09f2921c
TV
109602020-03-06 Tom de Vries <tdevries@suse.de>
10961
10962 * NEWS: Fix "the the".
10963 * ctfread.c: Same.
10964
fd760e79
TV
109652020-03-06 Tom de Vries <tdevries@suse.de>
10966
10967 * psymtab.c (psymtab_to_symtab): Don't print "done.".
10968
20ea4a60
AB
109692020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10970
10971 * .dir-locals.el: Add a comment referencing the other copies of
10972 this file.
10973
0afbabf0
JB
109742020-03-05 John Baldwin <jhb@FreeBSD.org>
10975
10976 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
10977 psargs.
10978
842806cb
TBA
109792020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10980
10981 * .gitattributes: New file.
10982
be1e3d3e
TT
109832020-03-04 Tom Tromey <tom@tromey.com>
10984
10985 * symmisc.c (print_symbol_bcache_statistics)
10986 (print_objfile_statistics): Update.
10987 * symfile.c (allocate_symtab): Use intern.
10988 * psymtab.c (partial_symtab::partial_symtab): Use intern.
10989 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
10990 macro_cache>: Remove.
10991 <string_cache>: New member.
10992 (struct objfile) <intern>: New methods.
10993 * elfread.c (elf_symtab_read): Use intern.
10994 * dwarf2/read.c (fixup_go_packaging): Intern package name.
10995 (dwarf2_compute_name, dwarf2_physname)
10996 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
10997 names.
10998 (guess_partial_die_structure_name): Update.
10999 (partial_die_info::fixup): Intern name.
11000 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
11001 name.
11002 (dwarf2_name): Intern name. Update.
11003 * buildsym.c (buildsym_compunit::get_macro_table): Use
11004 string_cache.
11005
4e7625fd
TT
110062020-03-04 Tom Tromey <tom@tromey.com>
11007
11008 * jit.c (bfd_open_from_target_memory): Make "target" const.
11009 * corefile.c (gnutarget): Now const.
11010 * gdbcore.h (gnutarget): Now const.
11011
46f9f931
HD
110122020-03-04 Hannes Domani <ssbssa@yahoo.de>
11013
11014 * NEWS: Mention support for WOW64 processes.
11015 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
11016 (amd64_windows_segment_register_p): Remove static.
11017 (_initialize_amd64_windows_nat): Update.
11018 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
11019 * i386-windows-nat.c (context_offset): Update.
11020 (i386_mappings): Rename and remove static.
11021 (i386_windows_segment_register_p): Remove static.
11022 (_initialize_i386_windows_nat): Update.
11023 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
11024 (STATUS_WX86_SINGLE_STEP): New macro.
11025 (EnumProcessModulesEx): New macro.
11026 (Wow64SuspendThread): New macro.
11027 (Wow64GetThreadContext): New macro.
11028 (Wow64SetThreadContext): New macro.
11029 (Wow64GetThreadSelectorEntry): New macro.
11030 (windows_set_context_register_offsets): Add static.
11031 (windows_set_segment_register_p): Likewise.
11032 (windows_add_thread): Adapt for WOW64 processes.
11033 (windows_fetch_one_register): Likewise.
11034 (windows_nat_target::fetch_registers): Likewise.
11035 (windows_store_one_register): Likewise.
11036 (display_selector): Likewise.
11037 (display_selectors): Likewise.
11038 (handle_exception): Likewise.
11039 (windows_continue): Likewise.
11040 (windows_nat_target::resume): Likewise.
11041 (windows_add_all_dlls): Likewise.
11042 (do_initial_windows_stuff): Likewise.
11043 (windows_nat_target::attach): Likewise.
11044 (windows_get_exec_module_filename): Likewise.
11045 (windows_nat_target::create_inferior): Likewise.
11046 (windows_xfer_siginfo): Likewise.
11047 (_initialize_loadable): Initialize Wow64SuspendThread,
11048 Wow64GetThreadContext, Wow64SetThreadContext,
11049 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
11050 * windows-nat.h (windows_set_context_register_offsets):
11051 Remove declaration.
11052 (windows_set_segment_register_p): Likewise.
11053 (i386_windows_segment_register_p): Add declaration.
11054 (amd64_windows_segment_register_p): Likewise.
11055
440cf44e
LM
110562020-03-04 Luis Machado <luis.machado@linaro.org>
11057
11058 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
11059 in "info registers" for AArch64/ARM.
11060
11061 The change caused "info registers" to not print GPR's.
11062
11063 gdb/ChangeLog:
11064
11065 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
11066
11067 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
11068 when reg->group is empty and reggroup is not.
11069
1009d92f
TT
110702020-03-03 Tom Tromey <tromey@adacore.com>
11071
11072 * dwarf2/frame.c (struct dwarf2_frame_cache)
11073 <checked_tailcall_bottom, entry_cfa_sp_offset,
11074 entry_cfa_sp_offset_p>: Remove members.
11075 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
11076 (dwarf2_frame_prev_register): Don't call
11077 dwarf2_tailcall_sniffer_first.
11078 (dwarf2_append_unwinders): Don't append tailcall unwinder.
11079 * frame-unwind.c (add_unwinder): New fuction.
11080 (frame_unwind_init): Use it. Add tailcall unwinder.
11081
5e5d66b6
AB
110822020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
11083 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11084
11085 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
11086 value should be printed as true.
11087
584cf46d
HD
110882020-03-03 Hannes Domani <ssbssa@yahoo.de>
11089
11090 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
11091 (windows_init_abi): Set and use windows_so_ops.
11092
7b973adc
SDJ
110932020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
11094
11095 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
11096 when verifying if dealing with a convenience variable.
11097
bb7b70ab
LM
110982020-03-03 Luis Machado <luis.machado@linaro.org>
11099
11100 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
11101
9822cb57
SM
111022020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11103
11104 * infrun.c (gdbarch_supports_displaced_stepping): New.
11105 (use_displaced_stepping): Break up conditions in smaller pieces.
11106 Use gdbarch_supports_displaced_stepping.
11107 (displaced_step_prepare_throw): Use
11108 gdbarch_supports_displaced_stepping.
11109
63e163f2
AB
111102020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
11111
11112 * NEWS: Mention new behaviour of the history filename.
11113 * top.c (write_history_p): Add comment.
11114 (show_write_history_p): Add header comment, give a different
11115 message when history writing is on, but the history filename is
11116 empty.
11117 (history_filename): Add comment.
11118 (history_filename_empty): New function.
11119 (show_history_filename): Add header comment, give a different
11120 message when the filename is empty.
11121 (init_history): Compare history_filename against nullptr, and only
11122 read history if the filename is not empty.
11123 (set_history_filename): Add header comment, and only make
11124 non-empty filenames absolute.
11125 (init_main): Make the filename argument to 'set history filename'
11126 optional.
11127
81b86b97
CB
111282020-03-02 Christian Biesinger <cbiesinger@google.com>
11129
11130 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
11131 (arm_supply_vfpregset): ...this, and update to use VFP registers.
11132 (fetch_fp_register): Update.
11133 (fetch_fp_regs): Update.
11134 (store_fp_register): Update.
11135 (store_fp_regs): Update.
11136 (arm_netbsd_nat_target::read_description): New function.
11137 (fetch_elfcore_registers): Update.
11138
24ed6739
AB
111392020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
11140
11141 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
11142 general_thread if the stop reply is missing a thread-id.
11143 (remote_target::process_stop_reply): Use the first non-exited
11144 thread if the target didn't pass a thread-id.
11145 * infrun.c (do_target_wait): Move call to
11146 switch_to_inferior_no_thread to ....
11147 (do_target_wait_1): ... here.
11148
a84bb2a0
JT
111492020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
11150
11151 * debuginfod-support.c: Include defs.h first.
11152
658dadf0
TV
111532020-02-28 Tom de Vries <tdevries@suse.de>
11154
11155 * symfile.c (set_initial_language): Use default language for lookup.
11156
4ebe4877
SM
111572020-02-28 Simon Marchi <simon.marchi@efficios.com>
11158
11159 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
11160 reader variable, pass `this` to read_cutu_die_from_dwo.
11161
e5da1139
AM
111622020-02-27 Aaron Merey <amerey@redhat.com>
11163
11164 * source.c (open_source_file): Check for nullptr when computing
11165 srcpath.
11166
317f7127
TT
111672020-02-27 Tom Tromey <tromey@adacore.com>
11168
11169 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
11170 member.
11171 (dwarf2_add_field): Don't update nfields.
11172 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
11173
3104d9ee
AB
111742020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11175
11176 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
11177 abs.
11178
b83470bf
TT
111792020-02-26 Tom Tromey <tom@tromey.com>
11180
11181 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
11182 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
11183 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
11184 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
11185 per_cu_data.
11186
edfe0a0c
TT
111872020-02-26 Tom Tromey <tom@tromey.com>
11188
11189 * dwarf2/index-write.c (psym_index_map): Change type.
11190 (add_address_entry_worker, write_one_signatured_type)
11191 (recursively_count_psymbols, recursively_write_psymbols)
11192 (class debug_names, psyms_seen_size, write_gdbindex)
11193 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
11194
0d79cdc4
AM
111952020-02-26 Aaron Merey <amerey@redhat.com>
11196
11197 * Makefile.in: Handle optional debuginfod support.
11198 * NEWS: Update.
11199 * README: Add --with-debuginfod summary.
11200 * config.in: Regenerate.
11201 * configure: Regenerate.
11202 * configure.ac: Handle optional debuginfod support.
11203 * debuginfod-support.c: debuginfod helper functions.
11204 * debuginfod-support.h: Ditto.
11205 * doc/gdb.texinfo: Add --with-debuginfod to configure options
11206 summary.
11207 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
11208 when a dwz file cannot be found.
11209 * elfread.c (elf_symfile_read): Query debuginfod servers when a
11210 debuginfo file cannot be found.
11211 * source.c (open_source_file): Query debuginfod servers when a
11212 source file cannot be found.
11213 * top.c (print_gdb_configuration): Include
11214 --{with,without}-debuginfod in the output.
11215
b65ce565
JG
112162020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
11217
11218 * thread.c (thr_try_catch_cmd): Print thread name.
11219
d4c9a4f8
SM
112202020-02-26 Simon Marchi <simon.marchi@efficios.com>
11221
11222 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
11223 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
11224 dwarf2_fetch_die_type_sect_off): Move to...
11225 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
11226 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
11227 dwarf2_fetch_die_type_sect_off): ... here.
11228 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
11229 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
11230 dwarf2_fetch_die_type_sect_off): Move doc to header file.
11231
0dce4280
TV
112322020-02-26 Tom de Vries <tdevries@suse.de>
11233
11234 PR gdb/25603
11235 * symfile.c (set_initial_language): Exit-early if
11236 language_mode == language_mode_manual.
11237
450a1bfc
SM
112382020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
11239
11240 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
11241 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
11242 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
11243
9e80cfa1
AB
112442020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
11245
11246 * gdbtypes.c (create_array_type_with_stride): Handle negative
11247 array strides.
11248 * valarith.c (value_subscripted_rvalue): Likewise.
11249
09624f1f
LM
112502020-02-25 Luis Machado <luis.machado@linaro.org>
11251
11252 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
11253
8cb5117c
SM
112542020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
11255
11256 * loc.h (dwarf2_get_die_type): Move to...
11257 * read.h (dwarf2_get_die_type): ... here.
11258 * read.c (dwarf2_get_die_type): Move doc to header.
11259
c325c44e
JB
112602020-02-25 Joel Brobecker <brobecker@adacore.com>
11261
11262 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
11263 'gnulib/Makefile.in' to the list.
11264
4ac93832
TT
112652020-02-24 Tom Tromey <tom@tromey.com>
11266
11267 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
11268 Remove.
11269 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
11270 XOBNEWVEC.
11271
197400e8
TT
112722020-02-24 Tom Tromey <tom@tromey.com>
11273
11274 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
11275 New method.
11276 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
11277 (dw2_do_instantiate_symtab, dw2_get_file_names)
11278 (build_type_psymtab_dependencies, load_full_type_unit): Update.
11279
76935768
TT
112802020-02-24 Tom Tromey <tom@tromey.com>
11281
11282 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
11283 make_scoped_restore.
11284 (dwarf2_psymtab::read_symtab): Don't clear
11285 reading_partial_symbols.
11286
a88ef40d
TV
112872020-02-24 Tom de Vries <tdevries@suse.de>
11288
11289 PR gdb/25592
11290 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
11291
c9af6521
TV
112922020-02-24 Tom de Vries <tdevries@suse.de>
11293
11294 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
11295 commands layout next/prev/regs.
11296
5707a07a
TT
112972020-02-22 Tom Tromey <tom@tromey.com>
11298
11299 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
11300 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
11301
3b0fb49e
TT
113022020-02-22 Tom Tromey <tom@tromey.com>
11303
11304 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
11305
283be8bf
TT
113062020-02-22 Tom Tromey <tom@tromey.com>
11307
11308 * tui/tui-win.c (_initialize_tui_win): Add usage text.
11309 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
11310 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
11311 * tui/tui.c (_initialize_tui): Add usage text.
11312
ca793b96
TT
113132020-02-22 Tom Tromey <tom@tromey.com>
11314
11315 * tui/tui-win.c (tui_set_focus_command)
11316 (tui_set_win_height_command): Use error_no_arg.
11317 (_initialize_tui_win): Update help text.
11318 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
11319
432b5c40
TT
113202020-02-22 Tom Tromey <tom@tromey.com>
11321
11322 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
11323 * tui/tui-disasm.h (struct tui_disasm_window)
11324 <display_start_addr>: Declare.
11325 * tui/tui-source.h (struct tui_source_window)
11326 <display_start_addr>: Declare.
11327 * tui/tui-winsource.h (struct tui_source_window_base)
11328 <show_source_line, display_start_addr>: New methods.
11329 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
11330 Rename and move to protected section.
11331 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
11332 (tui_source_window_base::do_erase_source_content): Update.
11333 (tui_source_window_base::show_source_line): Now a method.
11334 (tui_source_window_base::show_source_content)
11335 (tui_source_window_base::tui_source_window_base)
11336 (tui_source_window_base::rerender)
11337 (tui_source_window_base::refill)
11338 (tui_source_window_base::do_scroll_horizontal)
11339 (tui_source_window_base::set_is_exec_point_at)
11340 (tui_source_window_base::update_breakpoint_info)
11341 (tui_source_window_base::update_exec_info): Update.
11342 * tui/tui-source.c (tui_source_window::set_contents)
11343 (tui_source_window::showing_source_p)
11344 (tui_source_window::do_scroll_vertical)
11345 (tui_source_window::location_matches_p)
11346 (tui_source_window::line_is_displayed): Update.
11347 (tui_source_window::display_start_addr): New method.
11348 * tui/tui-disasm.c (tui_disasm_window::set_contents)
11349 (tui_disasm_window::do_scroll_vertical)
11350 (tui_disasm_window::location_matches_p): Update.
11351 (tui_disasm_window::display_start_addr): New method.
11352
01b1af32
TT
113532020-02-22 Tom Tromey <tom@tromey.com>
11354
11355 * NEWS: Add entry for gdb.register_window_type.
11356 * tui/tui-layout.h (window_factory): New typedef.
11357 (tui_register_window): Declare.
11358 * tui/tui-layout.c (saved_tui_windows): New global.
11359 (tui_apply_current_layout): Use it.
11360 (tui_register_window): New function.
11361 * python/python.c (do_start_initialization): Call
11362 gdbpy_initialize_tui.
11363 (python_GdbMethods): Add "register_window_type" function.
11364 * python/python-internal.h (gdbpy_register_tui_window)
11365 (gdbpy_initialize_tui): Declare.
11366 * python/py-tui.c: New file.
11367 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
11368
fc96d20b
TT
113692020-02-22 Tom Tromey <tom@tromey.com>
11370
11371 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
11372
935c78c0
TT
113732020-02-22 Tom Tromey <tom@tromey.com>
11374
11375 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
11376 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
11377 * tui/tui-data.c (tui_set_win_with_focus): Remove.
11378 (tui_set_win_focus_to): Move from tui-win.c.
11379
0240c8f1
TT
113802020-02-22 Tom Tromey <tom@tromey.com>
11381
11382 * tui/tui-layout.c (make_standard_window, get_locator_window): New
11383 functions.
11384 (known_window_types): New global.
11385 (tui_get_window_by_name): Reimplement.
11386 (initialize_known_windows): New function.
11387 (validate_window_name): Rewrite.
11388 (_initialize_tui_layout): Call initialize_known_windows.
11389
fdb01f0c
TT
113902020-02-22 Tom Tromey <tom@tromey.com>
11391
11392 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
11393 Remove constants.
11394 * tui/tui-winsource.h (struct tui_source_window_base)
11395 <tui_source_window_base>: Remove parameter.
11396 * tui/tui-winsource.c
11397 (tui_source_window_base::tui_source_window_base): Remove
11398 parameter.
11399 (tui_source_window_base::refill): Update.
11400 * tui/tui-stack.h (struct tui_locator_window)
11401 <tui_locator_window>: Update.
11402 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
11403 Default the constructor.
11404 * tui/tui-regs.h (struct tui_data_item_window)
11405 <tui_data_item_window>: Default the constructor.
11406 (struct tui_data_window) <tui_data_window>: Likewise.
11407 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
11408 Default the constructor.
11409 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
11410 Default the constructor.
11411 <type>: Remove.
11412 (struct tui_win_info) <tui_win_info>: Default the constructor.
11413 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
11414 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
11415 Default the constructor.
11416
865a5aec
TT
114172020-02-22 Tom Tromey <tom@tromey.com>
11418
11419 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
11420 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
11421 * tui/tui-win.c (tui_resize_all): Don't call
11422 tui_delete_invisible_windows.
11423 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
11424 done.
11425 (tui_set_layout): Update.
11426 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
11427 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
11428 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
11429
e098d18c
TT
114302020-02-22 Tom Tromey <tom@tromey.com>
11431
11432 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
11433 correctly.
11434
eb9c8874
TT
114352020-02-22 Tom Tromey <tom@tromey.com>
11436
11437 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
11438
7eed1a8e
TT
114392020-02-22 Tom Tromey <tom@tromey.com>
11440
11441 * tui/tui-winsource.h (struct tui_source_window_iterator)
11442 <inner_iterator>: New etytypedef.
11443 <tui_source_window_iterator>: Take "end" parameter.
11444 <tui_source_window_iterator>: Take iterator.
11445 <operator*, advance>: Update.
11446 <m_iter>: Change type.
11447 <m_end>: New field.
11448 (struct tui_source_windows) <begin, end>: Update.
11449 * tui/tui-layout.c (tui_windows): New global.
11450 (tui_apply_current_layout): Clear tui_windows.
11451 (tui_layout_window::apply): Update tui_windows.
11452 * tui/tui-data.h (tui_windows): Declare.
11453 (all_tui_windows): Now inline function.
11454 (class tui_window_iterator, struct all_tui_windows): Remove.
11455
7c043ba6
TT
114562020-02-22 Tom Tromey <tom@tromey.com>
11457
11458 PR tui/17850:
11459 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
11460 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
11461 "height" argument.
11462 (class tui_layout_window) <get_sizes>: Likewise.
11463 (class tui_layout_split) <tui_layout_split>: Add "vertical"
11464 argument.
11465 <get_sizes>: Add "height" argument.
11466 <m_vertical>: New field.
11467 * tui/tui-layout.c (tui_layout_split::clone): Update.
11468 (tui_layout_split::get_sizes): Add "height" argument.
11469 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
11470 (tui_new_layout_command): Parse "-horizontal".
11471 (_initialize_tui_layout): Update help string.
11472 (tui_layout_split::specification): Add "-horizontal" when needed.
11473 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
11474 argument.
11475 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
11476 New methods.
11477
6bc56648
TT
114782020-02-22 Tom Tromey <tom@tromey.com>
11479
11480 * tui/tui-layout.h (enum tui_adjust_result): New.
11481 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
11482 (class tui_layout_window) <adjust_size>: Return
11483 tui_adjust_result. Rewrite.
11484 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
11485 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
11486
c22fef7e
TT
114872020-02-22 Tom Tromey <tom@tromey.com>
11488
11489 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
11490 parameter and return types.
11491 (class tui_layout_base) <specification>: Add "depth".
11492 (class tui_layout_window) <specification>: Add "depth".
11493 (class tui_layout_split) <specification>: Add "depth".
11494 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
11495 and return types.
11496 (tui_new_layout_command): Parse sub-layouts.
11497 (_initialize_tui_layout): Update help string.
11498 (tui_layout_window::specification): Add "depth".
11499 (add_layout_command): Update.
11500
ee325b61
TT
115012020-02-22 Tom Tromey <tom@tromey.com>
11502
11503 * NEWS: Add "tui new-layout" item.
11504 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
11505 Add new-layout command to help text.
11506 (validate_window_name): New function.
11507 (tui_new_layout_command): New function.
11508 (_initialize_tui_layout): Register "new-layout".
11509 (tui_layout_window::specification): New method.
11510 (tui_layout_window::specification): New method.
11511 * tui/tui-layout.h (class tui_layout_base) <specification>: New
11512 method.
11513 (class tui_layout_window) <specification>: New method.
11514 (class tui_layout_split) <specification>: New method.
11515
416eb92d
TT
115162020-02-22 Tom Tromey <tom@tromey.com>
11517
11518 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
11519 * tui/tui-win.c (window_name_completer): Update comment.
11520 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
11521 Declare method.
11522 (class tui_layout_window) <replace_window>: Likewise.
11523 (class tui_layout_split) <replace_window>: Likewise.
11524 (tui_set_layout): Don't declare.
11525 (tui_set_initial_layout): Declare function.
11526 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
11527 (asm_regs_layout): New globals.
11528 (tui_current_layout, show_layout): Remove.
11529 (tui_set_layout, tui_add_win_to_layout): Rewrite.
11530 (find_layout, tui_apply_layout): New function.
11531 (layout_completer): Remove.
11532 (tui_next_layout): Reimplement.
11533 (tui_next_layout_command): New function.
11534 (tui_set_initial_layout, tui_prev_layout_command): New functions.
11535 (tui_regs_layout): Reimplement.
11536 (tui_regs_layout_command): New function.
11537 (extract_display_start_addr): Rewrite.
11538 (next_layout, prev_layout): Remove.
11539 (tui_layout_window::replace_window): New method.
11540 (tui_layout_split::replace_window): New method.
11541 (destroy_layout): New function.
11542 (layout_list): New global.
11543 (add_layout_command): New function.
11544 (initialize_layouts): Update.
11545 (tui_layout_command): New function.
11546 (_initialize_tui_layout): Install "layout" commands.
11547 * tui/tui-data.h (enum tui_layout_type): Remove.
11548 (tui_current_layout): Don't declare.
11549
0dbc2fc7
TT
115502020-02-22 Tom Tromey <tom@tromey.com>
11551
11552 * tui/tui-regs.c (tui_reg_layout): Remove.
11553 (tui_reg_command): Use tui_regs_layout.
11554 * tui/tui-layout.h (tui_reg_command): Declare.
11555 * tui/tui-layout.c (tui_reg_command): New function.
11556
5afe342e
TT
115572020-02-22 Tom Tromey <tom@tromey.com>
11558
11559 * tui/tui.c (tui_rl_delete_other_windows): Call
11560 tui_remove_some_windows.
11561 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
11562 Declare method.
11563 (class tui_layout_window) <remove_windows>: New method.
11564 (class tui_layout_split) <remove_windows>: Declare.
11565 (tui_remove_some_windows): Declare.
11566 * tui/tui-layout.c (tui_remove_some_windows): New function.
11567 (tui_layout_split::remove_windows): New method.
11568
427326a8
TT
115692020-02-22 Tom Tromey <tom@tromey.com>
11570
11571 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
11572 * tui/tui-layout.h (tui_next_layout): Declare.
11573 * tui/tui-layout.c (tui_next_layout): New function.
11574
3fe12b6d
TT
115752020-02-22 Tom Tromey <tom@tromey.com>
11576
11577 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
11578 correct coordinates.
11579
59b8b5d2
TT
115802020-02-22 Tom Tromey <tom@tromey.com>
11581
11582 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
11583 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
11584 DATA_WIN case.
11585
2a3d458b
TT
115862020-02-22 Tom Tromey <tom@tromey.com>
11587
11588 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
11589 TUI_DISASM_WIN, not tui_win_list.
11590
3f0cbb04
TT
115912020-02-22 Tom Tromey <tom@tromey.com>
11592
11593 * valprint.c (generic_val_print_enum_1)
11594 (val_print_type_code_flags): Style member names.
11595 * rust-lang.c (val_print_struct, rust_print_enum)
11596 (rust_print_struct_def, rust_internal_print_type): Style member
11597 names.
11598 * p-valprint.c (pascal_object_print_value_fields): Style member
11599 names. Only call fprintf_symbol_filtered for static members.
11600 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
11601 * f-valprint.c (f_val_print): Style member names.
11602 * f-typeprint.c (f_type_print_base): Style member names.
11603 * cp-valprint.c (cp_print_value_fields): Style member names. Only
11604 call fprintf_symbol_filtered for static members.
11605 (cp_print_class_member): Style member names.
11606 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
11607 member names.
11608 * ada-valprint.c (ada_print_scalar): Style enum names.
11609 (ada_val_print_enum): Likewise.
11610 * ada-typeprint.c (print_enum_type): Style enum names.
11611
d4d947ae
TT
116122020-02-21 Tom Tromey <tom@tromey.com>
11613
11614 * psympriv.h (struct partial_symtab): Update comment.
11615
e94e944b
TT
116162020-02-21 Tom Tromey <tromey@adacore.com>
11617
11618 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
11619 type is CORE_ADDR.
11620
1eb73179
TV
116212020-02-21 Tom de Vries <tdevries@suse.de>
11622
11623 PR gdb/25534
11624 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
11625 if dependencies[i]->user != NULL.
11626
4f180d53
AT
116272020-02-21 Ali Tamur <tamur@google.com>
11628
11629 * dwarf2/read.c (dwarf2_name): Add null check.
11630
22b6cd70
TT
116312020-02-20 Tom Tromey <tom@tromey.com>
11632
11633 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
11634 ">=", in binary search.
11635 (dwarf2_find_containing_comp_unit): New overload.
11636 (run_test): New self-test.
11637 (_initialize_dwarf2_read): Register new test.
11638
bd0cf5a6
NC
116392020-02-20 Nelson Chu <nelson.chu@sifive.com>
11640
11641 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
11642 * riscv-tdep.h: Likewise.
11643 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
11644 rv32-only CSR.
11645 * features/riscv/64bit-csr.xml: Regenerated.
11646
3f702acd
SDJ
116472020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
11648 Tom Tromey <tom@tromey.com>
11649
11650 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
11651 of 'fputc_unfiltered'.
11652 (putchar_unfiltered): Call 'fputc_unfiltered'.
11653 (fputc_unfiltered): Call 'fputs_unfiltered'.
11654
d13c7322
AB
116552020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
11656
11657 * config.in: Regenerate.
11658 * configure: Regenerate.
11659 * configure.ac: Add --with-python-libdir option.
11660 * main.c: Use WITH_PYTHON_LIBDIR.
11661
869d8950
TT
116622020-02-19 Tom Tromey <tom@tromey.com>
11663
11664 * symtab.c (general_symbol_info::compute_and_set_names): Use
11665 obstack_strndup. Simplify call to symbol_set_demangled_name.
11666
298e9637
SM
116672020-02-19 Simon Marchi <simon.marchi@efficios.com>
11668
11669 * dwarf2/read.c (allocate_signatured_type_table,
11670 allocate_dwo_unit_table, allocate_type_unit_groups_table,
11671 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
11672 Remove objfile parameter, update all callers.
11673
08410482
DE
116742020-02-19 Doug Evans <dje@google.com>
11675
11676 PR rust/25535
11677 * rust-lang.c (rust_print_enum): Apply embedded_offset to
11678 rust_enum_variant calculation.
11679
dfdeeca1
TT
116802020-02-19 Tom Tromey <tromey@adacore.com>
11681
11682 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
11683
2ef5453b
TT
116842020-02-19 Tom Tromey <tromey@adacore.com>
11685
11686 * ada-lang.c (cache_symbol): Use obstack_strdup.
11687
9f1528a1
AB
116882020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
11689
11690 * configure: Regenerate.
11691
d3c22fa8
TT
116922020-02-19 Tom Tromey <tromey@adacore.com>
11693
11694 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
11695 NULL check.
11696
bf84f706
MR
116972020-02-19 Maciej W. Rozycki <macro@wdc.com>
11698
11699 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
11700
d1c9b20f
AB
117012020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
11702
11703 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
11704 if GDBSERVER is not defined.
11705 (riscv_tdesc_cache): Likewise, also store const target_desc.
11706 (STATIC_IN_GDB): Define.
11707 (riscv_create_target_description): Update declaration with
11708 STATIC_IN_GDB.
11709 (riscv_lookup_target_description): New function, only define if
11710 GDBSERVER is not defined.
11711 * arch/riscv.h (riscv_create_target_description): Declare only
11712 when GDBSERVER is defined.
11713 (riscv_lookup_target_description): New declaration when GDBSERVER
11714 is not defined.
11715 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
11716 (riscv_linux_read_features): ...this, and return
11717 riscv_gdbarch_features instead of target_desc.
11718 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
11719 (riscv_linux_read_description): Rename to...
11720 (riscv_linux_read_features): ...this.
11721 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
11722 Update to use riscv_gdbarch_features and
11723 riscv_lookup_target_description.
11724 * riscv-tdep.c (riscv_find_default_target_description): Use
11725 riscv_lookup_target_description instead of
11726 riscv_create_target_description.
11727
373d7ac0
SM
117282020-02-18 Simon Marchi <simon.marchi@efficios.com>
11729
11730 * valprint.c (generic_val_print_enum_1): When printing a flag
11731 enum with value 0 and there is no enumerator with value 0, print
11732 just "0" instead of "(unknown: 0x0)".
11733
b29a2df0
SM
117342020-02-18 Simon Marchi <simon.marchi@efficios.com>
11735
11736 * valprint.c (generic_val_print_enum_1): Print unknown part of
11737 flag enum in hex.
11738
6740f0cc
SM
117392020-02-18 Simon Marchi <simon.marchi@efficios.com>
11740
11741 * dwarf2/read.c (update_enumeration_type_from_children): Allow
11742 flag enums to contain duplicate enumerators.
11743 * valprint.c (generic_val_print_enum_1): Update comment.
11744
edd45eb0
SM
117452020-02-18 Simon Marchi <simon.marchi@efficios.com>
11746
11747 * dwarf2/read.c: Include "count-one-bits.h".
11748 (update_enumeration_type_from_children): If an enumerator has
11749 multiple bits set, don't treat the enumeration as a "flag enum".
11750 * valprint.c (generic_val_print_enum_1): Assert that enumerators
11751 of flag enums have 0 or 1 bit set.
11752
6d0cf446
BE
117532020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
11754
11755 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
11756 conversion.
11757 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11758 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
11759 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11760 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
11761 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11762
7001c1b7
SM
117632020-02-18 Simon Marchi <simon.marchi@efficios.com>
11764
11765 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
11766
fdb61c6c
SM
117672020-02-14 Simon Marchi <simon.marchi@efficios.com>
11768
11769 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
11770 displaced_step_closure_up.
11771 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
11772 (struct displaced_step_closure_up):
11773 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11774 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
11775 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
11776 Likewise.
11777 * gdbarch.sh (displaced_step_copy_insn): Likewise.
11778 * gdbarch.c, gdbarch.h: Re-generate.
11779 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
11780 displaced_step_closure_up.
11781 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11782 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
11783 * infrun.h (displaced_step_closure_up): New type alias.
11784 (struct displaced_step_inferior_state) <step_closure>: Change
11785 type to displaced_step_closure_up.
11786 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
11787 displaced_step_closure_up.
11788 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11789
a4a38eb4
TT
117902020-02-14 Tom Tromey <tom@tromey.com>
11791
11792 * minidebug.c (gnu_debug_key): New global.
11793 (find_separate_debug_file_in_section): Use it.
11794
e8217e61
SM
117952020-02-14 Simon Marchi <simon.marchi@efficios.com>
11796
11797 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
11798 std::unique_ptr.
11799 * gdbarch.c: Re-generate.
11800 * gdbarch.h: Re-generate.
11801 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
11802 change.
11803 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
11804 type to std::unique_ptr.
11805 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
11806 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11807 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
11808 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
11809 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
11810 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11811 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
11812 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
11813 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11814
d8d83535
SM
118152020-02-14 Simon Marchi <simon.marchi@efficios.com>
11816
11817 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
11818 std::unique_ptr.
11819 (displaced_step_clear): Rename to...
11820 (displaced_step_reset): ... this. Just call displaced->reset ().
11821 (displaced_step_clear_cleanup): Rename to...
11822 (displaced_step_reset_cleanup): ... this.
11823 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
11824 (displaced_step_fixup): Likewise.
11825 (resume_1): Likewise.
11826 (handle_inferior_event): Restore child's memory before calling
11827 displaced_step_fixup on the parent.
11828 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
11829 to std::unique_ptr.
11830 <step_closure>: Change type to std::unique_ptr.
11831
5f661e03
SM
118322020-02-14 Simon Marchi <simon.marchi@efficios.com>
11833
11834 * arm-tdep.c: Include count-one-bits.h.
11835 (cleanup_block_store_pc): Use count_one_bits.
11836 (cleanup_block_load_pc): Use count_one_bits.
11837 (arm_copy_block_xfer): Use count_one_bits.
11838 (thumb2_copy_block_xfer): Use count_one_bits.
11839 (thumb_copy_pop_pc_16bit): Use count_one_bits.
11840 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
11841 (thumb_get_next_pcs_raw): Use count_one_bits.
11842 (arm_get_next_pcs_raw): Use count_one_bits_l.
11843 * arch/arm.c (bitcount): Remove.
11844 * arch/arm.h (bitcount): Remove.
11845
8084e579
TT
118462020-02-14 Tom Tromey <tromey@adacore.com>
11847
11848 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
11849 Update.
11850 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
11851 * dwarf2/loc.c (call_site_find_chain_1): Return
11852 unique_xmalloc_ptr.
11853 (call_site_find_chain): Likewise.
11854
258bf0ee
RB
118552020-02-14 Richard Biener <rguenther@suse.de>
11856
11857 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
11858 on expression with division operators.
11859
f98a8458
AKS
118602020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11861
11862 * MAINTAINERS (Write After Approval): Adding myself.
11863
d1437c0e
TT
118642020-02-12 Tom Tromey <tom@tromey.com>
11865
11866 * event-loop.c (event_data, gdb_event, event_handler_func):
11867 Remove.
11868
3d4560f7
TT
118692020-02-12 Tom Tromey <tom@tromey.com>
11870
11871 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
11872 (dwarf2_frame_objfile_data): Add comment.
11873 (find_comp_unit, set_comp_unit): New functions.
11874 (dwarf2_frame_find_fde): Use find_comp_unit.
11875 (dwarf2_build_frame_info): Use set_comp_unit.
11876
21982304
TT
118772020-02-12 Tom Tromey <tom@tromey.com>
11878
11879 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
11880 (comp_unit): Don't initialize objfile.
11881 (execute_cfa_program): Add text_offset parameter.
11882 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
11883 (dwarf2_frame_cache): Update.
11884 (dwarf2_build_frame_info): Don't set "objfile" member.
11885
4debb237
TT
118862020-02-12 Tom Tromey <tom@tromey.com>
11887
11888 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
11889 (decode_frame_entry): Likewise.
11890 (dwarf2_build_frame_info): Update.
11891
0d404d44
TT
118922020-02-12 Tom Tromey <tom@tromey.com>
11893
11894 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
11895 (decode_frame_entry_1): Use the comp_unit obstack.
11896
a7a3ae5c
TT
118972020-02-12 Tom Tromey <tom@tromey.com>
11898
11899 * dwarf2/frame.c (struct comp_unit): Add initializers and
11900 constructor.
11901 (dwarf2_frame_objfile_data): Store a comp_unit.
11902 (dwarf2_frame_find_fde): Update.
11903 (dwarf2_build_frame_info): Use "new".
11904
a9d65418
TT
119052020-02-12 Tom Tromey <tom@tromey.com>
11906
11907 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
11908 (dwarf2_fde_table): Typedef for std::vector.
11909 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
11910 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
11911 (decode_frame_entry): Update.
11912 (dwarf2_build_frame_info): Use "new".
11913
7559c217
CB
119142020-02-12 Christian Biesinger <cbiesinger@google.com>
11915
11916 * arm-tdep.c (arm_gdbarch_init): Update.
11917 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
11918 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
11919 have_neon, is_m>: Change to bool.
11920
aeefc73c
CB
119212020-02-12 Christian Biesinger <cbiesinger@google.com>
11922
11923 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
11924
d27b8e5f
TT
119252020-02-12 Tom Tromey <tom@tromey.com>
11926
11927 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
11928
cd5900f3
HD
119292020-02-12 Hannes Domani <ssbssa@yahoo.de>
11930
11931 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
11932 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
11933
f056b22b
TT
119342020-02-11 Tom Tromey <tom@tromey.com>
11935
11936 * psymtab.h: Update comment.
11937
f92ff6b5
TT
119382020-02-11 Tom Tromey <tom@tromey.com>
11939
11940 * gdb_obstack.h (struct auto_obstack): Use
11941 DISABLE_COPY_AND_ASSIGN.
11942
3fd6912b
TT
119432020-02-11 Tom Tromey <tom@tromey.com>
11944
11945 * dwarf2/frame.h (struct objfile): Don't forward declare.
11946
69ed9b74
CB
119472020-02-11 Christian Biesinger <cbiesinger@google.com>
11948
11949 * cris-tdep.c (cris_supply_gregset): Change signature to match
11950 what struct regset expects.
11951 (cris_regset): New struct.
11952 (fetch_core_registers): Remove.
11953 (cris_iterate_over_regset_sections): New function.
11954 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
11955 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
11956
bda874f6
CB
119572020-02-11 Christian Biesinger <cbiesinger@google.com>
11958
11959 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
11960 registers.
11961
754e1564
CB
119622020-02-11 Christian Biesinger <cbiesinger@google.com>
11963
11964 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
11965
8ddd8e0e
SM
119662020-02-11 Simon Marchi <simon.marchi@efficios.com>
11967
11968 * configure: Re-generate.
11969
898e7f60
SM
119702020-02-11 Simon Marchi <simon.marchi@efficios.com>
11971
11972 * configure: Re-generate.
11973
58df732b
SM
119742020-02-11 Simon Marchi <simon.marchi@efficios.com>
11975
11976 * acinclude: Update warning.m4 path.
11977 * warning.m4: Move to gdbsupport.
11978
da5bd37e
TT
119792020-02-11 Tom Tromey <tromey@adacore.com>
11980
11981 * remote.c (remote_console_output): Update.
11982 * printcmd.c (printf_command): Update.
11983 * event-loop.c (gdb_wait_for_event): Update.
11984 * linux-nat.c (sigchld_handler): Update.
11985 * remote-sim.c (gdb_os_write_stdout): Update.
11986 (gdb_os_flush_stdout): Update.
11987 (gdb_os_flush_stderr): Update.
11988 (gdb_os_write_stderr): Update.
11989 * exceptions.c (print_exception): Update.
11990 * remote-fileio.c (remote_fileio_func_read): Update.
11991 (remote_fileio_func_write): Update.
11992 * tui/tui.c (tui_enable): Update.
11993 * tui/tui-interp.c (tui_interp::init): Update.
11994 * utils.c (init_page_info): Update.
11995 (putchar_unfiltered, fputc_unfiltered): Update.
11996 (gdb_flush): Update.
11997 (emit_style_escape): Update.
11998 (flush_wrap_buffer, fputs_maybe_filtered): Update.
11999 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
12000 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
12001 (stderr_file::write): Update.
12002 (stderr_file::puts): Update.
12003 * ui-file.h (ui_file_isatty, ui_file_write)
12004 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
12005 (ui_file_puts): Don't declare.
12006
85f0dd3c
TV
120072020-02-10 Tom de Vries <tdevries@suse.de>
12008
12009 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
12010 sentinel to char *.
12011
2e927613
TV
120122020-02-09 Tom de Vries <tdevries@suse.de>
12013
12014 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
12015 filename if it matches "<artificial>".
12016
6bafc845
HD
120172020-02-09 Hannes Domani <ssbssa@yahoo.de>
12018
12019 * windows-tdep.c (struct enum_value_name): New struct.
12020 (create_enum): New function.
12021 (windows_get_siginfo_type): Create and use enum types.
12022
7928d571
HD
120232020-02-09 Hannes Domani <ssbssa@yahoo.de>
12024
12025 * NEWS: Mention $_siginfo support for Windows.
12026 * windows-nat.c (handle_exception): Set siginfo_er.
12027 (windows_nat_target::mourn_inferior): Reset siginfo_er.
12028 (windows_xfer_siginfo): New function.
12029 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
12030 * windows-tdep.c (struct windows_gdbarch_data): New struct.
12031 (init_windows_gdbarch_data): New function.
12032 (get_windows_gdbarch_data): New function.
12033 (windows_get_siginfo_type): New function.
12034 (windows_init_abi): Register windows_get_siginfo_type.
12035 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
12036
6751ebae
TT
120372020-02-08 Tom Tromey <tom@tromey.com>
12038
12039 * dwarf2/read.c (class cutu_reader) <cutu_reader,
12040 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
12041 <keep>: Declare method.
12042 <m_keep>: Remove member.
12043 <~cutu_reader>: Remove.
12044 (cutu_reader::init_tu_and_read_dwo_dies): Update.
12045 (cutu_reader::cutu_reader): Update.
12046 (cutu_reader::keep): Rename from ~cutu_reader.
12047 (process_psymtab_comp_unit, build_type_psymtabs_1)
12048 (process_skeletonless_type_unit, load_partial_comp_unit)
12049 (load_full_comp_unit, dwarf2_read_addr_index)
12050 (read_signatured_type): Update.
12051
135f5437
TT
120522020-02-08 Tom Tromey <tom@tromey.com>
12053
12054 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
12055 "want_partial_unit" parameter.
12056 (process_psymtab_comp_unit): Change want_partial_unit to bool.
12057 Inline check for DW_TAG_partial_unit.
12058 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
12059
9f66ff1c
TT
120602020-02-08 Tom Tromey <tom@tromey.com>
12061
12062 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
12063 read.c.
12064 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
12065 read.c.
12066
c8a7a66f
TT
120672020-02-08 Tom Tromey <tom@tromey.com>
12068
12069 * dwarf2/read.c (read_address): Move to comp-unit.c.
12070 (dwarf2_rnglists_process, dwarf2_ranges_process)
12071 (read_attribute_value, dwarf_decode_lines_1)
12072 (var_decode_location, decode_locdesc): Update.
12073 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
12074 read.c. Remove "cu" parameter.
12075 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
12076 method.
12077
8266302d
TT
120782020-02-08 Tom Tromey <tom@tromey.com>
12079
12080 * dwarf2/read.c (read_attribute_value, read_indirect_string)
12081 (read_indirect_line_string): Update.
12082 * dwarf2/comp-unit.c (read_offset): Remove.
12083 (read_comp_unit_head): Update.
12084 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
12085 method.
12086 (read_offset): Don't declare.
12087
4057dfde
TT
120882020-02-08 Tom Tromey <tom@tromey.com>
12089
12090 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
12091 * dwarf2/read.c (struct comp_unit_head): Move to
12092 dwarf2/comp-unit.h.
12093 (enum class rcuh_kind): Move to comp-unit.h.
12094 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
12095 (read_comp_unit_head, error_check_comp_unit_head)
12096 (read_and_check_comp_unit_head): Move to comp-unit.c.
12097 (read_offset, dwarf_unit_type_name): Likewise.
12098 (create_debug_type_hash_table, read_cutu_die_from_dwo)
12099 (cutu_reader::cutu_reader, read_call_site_scope)
12100 (find_partial_die, follow_die_offset): Update.
12101 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
12102
24aa364d
TT
121032020-02-08 Tom Tromey <tom@tromey.com>
12104
12105 * dwarf2/read.c (read_offset_1): Move to leb.c.
12106 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
12107 (dwarf_decode_macro_bytes): Update.
12108 * dwarf2/leb.c (read_offset): Rename; move from read.c.
12109 * dwarf2/leb.h (read_offset): Declare.
12110
2c7d5afc
TT
121112020-02-08 Tom Tromey <tom@tromey.com>
12112
12113 * dwarf2/read.c (dwarf2_section_size): Remove.
12114 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
12115 Update.
12116 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
12117
4075cb26
TT
121182020-02-08 Tom Tromey <tom@tromey.com>
12119
12120 * dwarf2/read.c (read_initial_length): Move to leb.c.
12121 * dwarf2/leb.h (read_initial_length): Declare.
12122 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
12123 handle_nonstd parameter.
12124 * dwarf2/frame.c (read_initial_length): Remove.
12125 (decode_frame_entry_1): Update.
12126
09ba997f
TT
121272020-02-08 Tom Tromey <tom@tromey.com>
12128
12129 * dwarf2/loc.c (dwarf2_find_location_expression)
12130 (dwarf_evaluate_loc_desc::get_tls_address)
12131 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
12132 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
12133 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
12134 (dwarf2_compile_property_to_c)
12135 (dwarf2_loc_desc_get_symbol_read_needs)
12136 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
12137 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
12138 (loclist_describe_location, loclist_tracepoint_var_ref)
12139 (loclist_generate_c_location): Update.
12140 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
12141 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
12142 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
12143 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
12144 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
12145 (dwarf2_per_cu_data::addr_size)
12146 (dwarf2_per_cu_data::ref_addr_size)
12147 (dwarf2_per_cu_data::text_offset)
12148 (dwarf2_per_cu_data::addr_type): Now methods.
12149 (per_cu_header_read_in): Make per_cu "const".
12150 (dwarf2_version): Remove.
12151 (dwarf2_per_cu_data::int_type): Now a method.
12152 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
12153 (set_die_type, read_array_type, read_subrange_index_type)
12154 (read_tag_string_type, read_subrange_type): Update.
12155 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
12156 offset_size, ref_addr_size, text_offset, addr_type, version,
12157 objfile, int_type, addr_sized_int_type>: Declare methods.
12158
96c738c0
TT
121592020-02-08 Tom Tromey <tom@tromey.com>
12160
12161 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
12162 Move earlier.
12163
8fdd972c
TT
121642020-02-08 Tom Tromey <tom@tromey.com>
12165
12166 * dwarf2/read.h (dwarf_line_debug): Declare.
12167 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
12168 * dwarf2/read.c: Move line_header code to new files.
12169 (dwarf_line_debug): No longer static.
12170 * dwarf2/line-header.c: New file.
12171 * dwarf2/line-header.h: New file.
12172
03075812
TT
121732020-02-08 Tom Tromey <tom@tromey.com>
12174
12175 * dwarf2/read.c (struct line_header) <file_full_name,
12176 file_file_name>: Return unique_xmalloc_ptr.
12177 (line_header::file_file_name): Update.
12178 (line_header::file_full_name): Update.
12179 (dw2_get_file_names_reader): Update.
12180 (macro_start_file): Update.
12181
bb822404
TT
121822020-02-08 Tom Tromey <tom@tromey.com>
12183
12184 * dwarf2/read.c (struct line_header) <file_full_name,
12185 file_file_name>: Declare methods.
12186 (dw2_get_file_names_reader): Update.
12187 (file_file_name): Now a method.
12188 (file_full_name): Likewise.
12189 (macro_start_file): Update.
12190
009b64fc
TT
121912020-02-08 Tom Tromey <tom@tromey.com>
12192
12193 * dwarf2/read.c (dwarf_always_disassemble)
12194 (show_dwarf_always_disassemble): Move to loc.c.
12195 (_initialize_dwarf2_read): Move "always-disassemble" registration
12196 to loc.c.
12197 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
12198 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
12199 static.
12200 (show_dwarf_always_disassemble): Move from read.c.
12201 (_initialize_dwarf2loc): Move always-disassemble from read.c.
12202
5895093f
TT
122032020-02-08 Tom Tromey <tom@tromey.com>
12204
12205 * dwarf2/read.c (~dwarf2_per_objfile): Update.
12206 (create_quick_file_names_table): Return htab_up.
12207 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
12208 Update.
12209 * dwarf2/read.h (struct dwarf2_per_objfile)
12210 <quick_file_names_table>: Now htab_up.
12211
b3b32279
TT
122122020-02-08 Tom Tromey <tom@tromey.com>
12213
12214 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
12215
1d33d811
TT
122162020-02-08 Tom Tromey <tom@tromey.com>
12217
12218 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
12219 Rewrite.
12220 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
12221 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
12222 (abbrev_table::abbrev_table): No longer inline.
12223 (ABBREV_HASH_SIZE): Remove.
12224 (abbrev_table::m_abbrevs): Now an htab_up.
12225
86de1d91
TT
122262020-02-08 Tom Tromey <tom@tromey.com>
12227
12228 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
12229 (cutu_reader): Update.
12230 (build_type_psymtabs_1): Update.
12231 * dwarf2/abbrev.c (abbrev_table::read): Rename.
12232 (abbrev_table::alloc_abbrev): Update.
12233 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
12234 (abbrev_table::read): New static method, renamed from
12235 abbrev_table_read_table.
12236 (abbrev_table::alloc_abbrev)
12237 (abbrev_table::add_abbrev): Now private.
12238 (abbrev_table::abbrev_table): Now private.
12239 (abbrev_table::m_abbrev_obstack): Now private. Rename.
12240
0335378b
TT
122412020-02-08 Tom Tromey <tom@tromey.com>
12242
12243 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
12244 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
12245 htab_up.
12246
48b490f2
TT
122472020-02-08 Tom Tromey <tom@tromey.com>
12248
12249 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
12250 htab_up.
12251 (lookup_dwo_unit_in_dwp): Update.
12252 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
12253 on obstack.
12254
bc68fb19
TT
122552020-02-08 Tom Tromey <tom@tromey.com>
12256
12257 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
12258 obstack.
12259
d15acc42
TT
122602020-02-08 Tom Tromey <tom@tromey.com>
12261
12262 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
12263 line_header_hash.
12264 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
12265 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
12266 Change type to htab_up.
12267
eaa5fa8b
TT
122682020-02-08 Tom Tromey <tom@tromey.com>
12269
12270 * dwarf2/read.c (allocate_type_unit_groups_table): Return
12271 htab_up. Don't allocate on obstack.
12272 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
12273 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
12274 Change type to htab_up.
12275
b0b6a987
TT
122762020-02-08 Tom Tromey <tom@tromey.com>
12277
12278 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
12279 Change type to htab_up.
12280 * dwarf2/read.c (create_signatured_type_table_from_index)
12281 (create_signatured_type_table_from_debug_names)
12282 (create_all_type_units, add_type_unit)
12283 (lookup_dwo_signatured_type, lookup_signatured_type)
12284 (process_skeletonless_type_unit): Update.
12285 (create_debug_type_hash_table, create_debug_types_hash_table):
12286 Change type of types_htab.
12287 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
12288 htab_up. Don't allocate on obstack.
12289 (create_cus_hash_table): Change type of cus_htab parameter.
12290 (struct dwo_file) <cus, tus>: Now htab_up.
12291 (lookup_dwo_signatured_type, lookup_dwo_cutu)
12292 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
12293 (queue_and_load_all_dwo_tus): Update.
12294 * dwarf2/index-write.c (write_gdbindex): Update.
12295 (write_debug_names): Update.
12296
39856def
TT
122972020-02-08 Tom Tromey <tom@tromey.com>
12298
12299 * dwarf2/read.h (struct dwarf2_queue_item): Move from
12300 dwarf2/read.c. Remove "next" member. Add constructor ntad
12301 destructor.
12302 (struct dwarf2_per_objfile) <queue>: New member.
12303 * dwarf2/read.c (struct dwarf2_queue_item): Move to
12304 dwarf2/read.h.
12305 (dwarf2_queue, dwarf2_queue_tail): Remove.
12306 (class dwarf2_queue_guard): Add parameter to constructor. Use
12307 DISABLE_COPY_AND_ASSIGN.
12308 <m_per_objfile>: New member.
12309 <~dwarf2_queue_guard>: Rewrite.
12310 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
12311 Update.
12312 (~dwarf2_queue_item): New.
12313
3e225074
TT
123142020-02-08 Tom Tromey <tom@tromey.com>
12315
12316 * dwarf2/read.c (struct die_info) <has_children>: New member.
12317 (dw2_get_file_names_reader): Remove has_children.
12318 (dw2_get_file_names): Update.
12319 (read_cutu_die_from_dwo): Remove has_children.
12320 (cutu_reader::init_tu_and_read_dwo_dies)
12321 (cutu_reader::cutu_reader): Update.
12322 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
12323 Remove has_children.
12324 (build_type_psymtabs_1, process_skeletonless_type_unit)
12325 (load_partial_comp_unit, load_full_comp_unit): Update.
12326 (create_dwo_cu_reader): Remove has_children.
12327 (create_cus_hash_table, read_die_and_children): Update.
12328 (read_full_die_1,read_full_die): Remove has_children.
12329 (read_signatured_type): Update.
12330 (class cutu_reader) <has_children>: Remove.
12331
82ca8957
TT
123322020-02-08 Tom Tromey <tom@tromey.com>
12333
12334 * dwarf2/expr.c: Rename from dwarf2expr.c.
12335 * dwarf2/expr.h: Rename from dwarf2expr.h.
12336 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
12337 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
12338 * dwarf2/frame.c: Rename from dwarf2-frame.c.
12339 * dwarf2/frame.h: Rename from dwarf2-frame.h.
12340 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
12341 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
12342 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
12343 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
12344 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
12345 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
12346 * dwarf2/loc.c: Rename from dwarf2loc.c.
12347 * dwarf2/loc.h: Rename from dwarf2loc.h.
12348 * dwarf2/read.c: Rename from dwarf2read.c.
12349 * dwarf2/read.h: Rename from dwarf2read.h.
12350 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
12351 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
12352 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
12353 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
12354 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
12355 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
12356 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
12357 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
12358 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
12359 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
12360 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
12361 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
12362 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
12363 Update.
12364 * Makefile.in (COMMON_SFILES): Update.
12365 (HFILES_NO_SRCDIR): Update.
12366
9e35d499
TT
123672020-02-08 Tom Tromey <tom@tromey.com>
12368
12369 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
12370 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
12371
1eba2311
TT
123722020-02-08 Tom Tromey <tom@tromey.com>
12373
12374 * dwarf2read.h (struct die_info): Don't declare.
12375
e41c2da2
TT
123762020-02-08 Tom Tromey <tom@tromey.com>
12377
12378 * dwarf2read.h (die_info_ptr): Remove typedef.
12379
4fc6c0d5
TT
123802020-02-08 Tom Tromey <tom@tromey.com>
12381
12382 * dwarf2read.c (read_call_site_scope)
12383 (handle_data_member_location, dwarf2_add_member_fn)
12384 (mark_common_block_symbol_computed, read_common_block)
12385 (attr_to_dynamic_prop, partial_die_info::read)
12386 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
12387 (dwarf2_symbol_mark_computed, set_die_type): Update.
12388 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
12389 method.
12390 (attr_form_is_block): Don't declare.
12391 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
12392
cd6c91b4
TT
123932020-02-08 Tom Tromey <tom@tromey.com>
12394
12395 * dwarf2read.c (dwarf2_find_base_address, )
12396 (read_call_site_scope, rust_containing_type)
12397 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
12398 (handle_data_member_location, dwarf2_add_member_fn)
12399 (get_alignment, read_structure_type, process_structure_scope)
12400 (mark_common_block_symbol_computed, read_common_block)
12401 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
12402 (partial_die_info::read, read_attribute_value, new_symbol)
12403 (lookup_die_type, dwarf2_get_ref_die_offset)
12404 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
12405 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
12406 (dwarf2_symbol_mark_computed): Update.
12407 * dwarf2/attribute.h (struct attribute) <value_as_address,
12408 form_is_section_offset, form_is_constant, form_is_ref>: Declare
12409 methods.
12410 (value_as_address, attr_form_is_section_offset)
12411 (attr_form_is_constant, attr_form_is_ref): Don't declare.
12412 * dwarf2/attribute.c (attribute::value_as_address)
12413 (attribute::form_is_section_offset, attribute::form_is_constant)
12414 (attribute::form_is_ref): Now methods.
12415
162dce55
TT
124162020-02-08 Tom Tromey <tom@tromey.com>
12417
12418 * dwarf2read.c (struct attribute, DW_STRING)
12419 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
12420 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
12421 (attr_form_is_block, attr_form_is_section_offset)
12422 (attr_form_is_constant, attr_form_is_ref): Move.
12423 * dwarf2/attribute.h: New file.
12424 * dwarf2/attribute.c: New file, from dwarf2read.c.
12425 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
12426
3054dd54
TT
124272020-02-08 Tom Tromey <tom@tromey.com>
12428
12429 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
12430 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
12431 Move.
12432 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
12433 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
12434 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
12435 abbrev.c.
12436 * dwarf2/abbrev.h: New file.
12437 * dwarf2/abbrev.c: New file, from dwarf2read.c.
12438 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
12439
96b79293
TT
124402020-02-08 Tom Tromey <tom@tromey.com>
12441
12442 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
12443 (dwarf2_section_size, dwarf2_get_section_info)
12444 (create_signatured_type_table_from_debug_names)
12445 (create_addrmap_from_aranges, read_debug_names_from_section)
12446 (get_gdb_index_contents_from_section, read_comp_unit_head)
12447 (error_check_comp_unit_head, read_abbrev_offset)
12448 (create_debug_type_hash_table, init_cu_die_reader)
12449 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
12450 (read_comp_units_from_section, create_cus_hash_table)
12451 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
12452 (create_dwp_v2_section, dwarf2_rnglists_process)
12453 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
12454 (abbrev_table_read_table, read_indirect_string_at_offset_from)
12455 (read_indirect_string_from_dwz, read_addr_index_1)
12456 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
12457 (dwarf_decode_macro_bytes, dwarf_decode_macros)
12458 (fill_in_loclist_baton): Update.
12459 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
12460 get_containing_section, get_bfd_owner, get_bfd_section,
12461 get_file_name, get_id, get_flags, empty, read>: Declare methods.
12462 (dwarf2_read_section, get_section_name, get_section_file_name)
12463 (get_containing_section, get_section_bfd_owner)
12464 (get_section_bfd_section, get_section_name, get_section_file_name)
12465 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
12466 declare.
12467 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
12468 (dwarf2_section_info::get_bfd_owner)
12469 (dwarf2_section_info::get_bfd_section)
12470 (dwarf2_section_info::get_name)
12471 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
12472 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
12473 (dwarf2_section_info::read): Now methods.
12474 * dwarf-index-write.c (class debug_names): Update.
12475
2c86cff9
TT
124762020-02-08 Tom Tromey <tom@tromey.com>
12477
12478 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
12479 Move to dwarf2/section.h.
12480 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
12481 (get_section_bfd_section, get_section_name)
12482 (get_section_file_name, get_section_id, get_section_flags)
12483 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
12484 dwarf2/section.c.
12485 * dwarf2/section.h: New file.
12486 * dwarf2/section.c: New file, from dwarf2read.c.
12487 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
12488
f4382c45
TT
124892020-02-08 Tom Tromey <tom@tromey.com>
12490
12491 * dwarf2read.h (read_unsigned_leb128): Don't declare.
12492 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
12493 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
12494 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
12495 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
12496 * dwarf2/leb.h: New file, from dwarf2read.c.
12497 * dwarf2/leb.c: New file, from dwarf2read.c.
12498 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
12499 Remove.
12500 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
12501 (COMMON_SFILES): Add dwarf2/leb.c.
12502
01840b7a
JB
125032020-02-08 Joel Brobecker <brobecker@adacore.com>
12504
12505 GDB 9.1 released.
12506
dfcb27e4
IB
125072020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
12508
12509 PR gdb/25190:
aac66a4c
SM
12510 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
12511 * gdb/remote.c (remote_console_output): Update.
12512 * gdb/ui-file.c (fputs_unfiltered): Rename to...
12513 (ui_file_puts): ...this.
12514 * gdb/ui-file.h (ui_file_puts): Add declaration.
12515 * gdb/utils.c (emit_style_escape): Update.
12516 (flush_wrap_buffer): Update.
12517 (fputs_maybe_filtered): Update.
12518 (fputs_unfiltered): Add function.
dfcb27e4 12519
faa17681
IB
125202020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
12521
aac66a4c
SM
12522 * gdb/event-loop.c (gdb_wait_for_event): Update.
12523 * gdb/printcmd.c (printf_command): Update.
12524 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
12525 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
12526 (gdb_os_flush_stderr): Update.
12527 * gdb/remote.c (remote_console_output): Update.
12528 * gdb/ui-file.c (gdb_flush): Rename to...
12529 (ui_file_flush): ...this.
12530 (stderr_file::write): Update.
12531 (stderr_file::puts): Update.
12532 * gdb/ui-file.h (gdb_flush): Rename to...
12533 (ui_file_flush): ...this.
12534 * gdb/utils.c (gdb_flush): Add function.
12535 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 12536
5abbbe1d
TT
125372020-02-07 Tom Tromey <tromey@adacore.com>
12538
12539 PR breakpoints/24915:
12540 * source.c (find_and_open_source): Do not check basenames_may_differ.
12541
919adfe8
TT
125422020-02-07 Tom Tromey <tom@tromey.com>
12543
12544 * README: Update gdbserver documentation.
12545 * gdbserver: Move to top level.
12546 * configure.tgt (build_gdbserver): Remove.
12547 * configure.ac: Remove --enable-gdbserver.
12548 * configure: Rebuild.
12549 * Makefile.in (distclean): Don't mention gdbserver.
12550
1d5d29e7
SV
125512020-02-06 Shahab Vahedi <shahab@synopsys.com>
12552
12553 * source-cache.c (source_cache::ensure): Surround
12554 get_plain_source_lines with a try/catch.
12555 (source_cache::get_line_charpos): Get rid of try/catch
12556 and only check for the return value of "ensure".
12557 * tui/tui-source.c (tui_source_window::set_contents):
12558 Simplify "nlines" calculation.
12559
6eb1129c
SV
125602020-02-06 Shahab Vahedi <shahab@synopsys.com>
12561
12562 * MAINTAINERS (Write After Approval): Add myself.
12563
c6a42d11
CB
125642020-02-05 Christian Biesinger <cbiesinger@google.com>
12565
12566 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
12567 function call.
12568
c8ecdda6
CB
125692020-02-05 Christian Biesinger <cbiesinger@google.com>
12570
12571 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
12572
f6480e70
MR
125732020-02-05 Maciej W. Rozycki <macro@wdc.com>
12574
12575 * nat/riscv-linux-tdesc.h: New file.
12576 * nat/riscv-linux-tdesc.c: New file, taking code from...
12577 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
12578 ... here.
12579 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
12580 NATDEPFILES.
12581
dcc9fbc6
AB
125822020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
12583
12584 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
12585 we don't set the fake simulator ptid to the null_ptid.
12586
719546c4
SM
125872020-02-03 Simon Marchi <simon.marchi@efficios.com>
12588
12589 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
12590 * gdbthread.h (class thread_info) <resumed>: Likewise.
12591 * infrun.c (resume_1): Likewise.
12592 (proceed): Likewise.
12593 (infrun_thread_stop_requested): Likewise.
12594 (stop_all_threads): Likewise.
12595 (handle_inferior_event): Likewise.
12596 (restart_threads): Likewise.
12597 (finish_step_over): Likewise.
12598 (keep_going_stepped_thread): Likewise.
12599 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
12600 (linux_handle_extended_wait): Likewise.
12601 * record-btrace.c (get_thread_current_frame_id): Likewise.
12602 * record-full.c (record_full_wait_1): Likewise.
12603 * remote.c (remote_target::process_initial_stop_replies): Likewise.
12604 * target.c (target_resume): Likewise.
12605 * thread.c (set_running_thread): Likewise.
12606
e409c542
AKS
126072020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
12608
12609 * f-valprint.c (f77_print_array_1): Changed datatype of index
12610 variable to LONGEST from int to enable it to contain bound
12611 values correctly.
12612
ee98c0da
MR
126132020-02-03 Maciej W. Rozycki <macro@wdc.com>
12614
12615 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
12616 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
12617 offsets according to FLEN determined.
12618 (riscv_linux_nat_target::read_description): Determine FLEN
12619 dynamically.
12620 (riscv_linux_nat_target::fetch_registers): Size regset buffer
12621 according to FLEN determined.
12622 (riscv_linux_nat_target::store_registers): Likewise.
12623
aa66aac4
SV
126242020-02-01 Shahab Vahedi <shahab@synopsys.com>
12625
12626 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
12627 when reg->group is empty and reggroup is not.
12628
fd9faca8
TT
126292020-01-31 Tom Tromey <tromey@adacore.com>
12630
12631 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
12632 Call beneath target's mourn_inferior after unpushing.
12633
42330a68
AB
126342020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
12635
12636 PR tui/9765
12637 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
12638 have enough lines to fill the screen, still return the lowest
12639 address we found.
12640
7a27a45b
AB
126412020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
12642
12643 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
12644 '-', '<', and '>' commands.
12645
c47f70e2
PA
126462020-01-29 Pedro Alves <palves@redhat.com>
12647 Sergio Durigan Junior <sergiodj@redhat.com>
12648
12649 * infcmd.c (construct_inferior_arguments): Assert that
12650 'argc' is greater than 0.
12651
5133a315
LM
126522020-01-29 Luis Machado <luis.machado@linaro.org>
12653
12654 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
12655 (BRK_INSN_MASK): Define to 0xd4200000.
12656 (aarch64_program_breakpoint_here_p): New function.
12657 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
12658 * arch-utils.c (default_program_breakpoint_here_p): Moved from
12659 breakpoint.c.
12660 * arch-utils.h (default_program_breakpoint_here_p): Moved from
12661 breakpoint.h
12662 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
12663 call gdbarch_program_breakpoint_here_p.
12664 (program_breakpoint_here): Moved to arch-utils.c, renamed to
12665 default_program_breakpoint_here_p, changed return type to bool and
12666 simplified.
12667 * breakpoint.h (program_breakpoint_here): Moved prototype to
12668 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
12669 return type to bool.
12670 * gdbarch.c: Regenerate.
12671 * gdbarch.h: Regenerate.
12672 * gdbarch.sh (program_breakpoint_here_p): New method.
12673 * infrun.c (handle_signal_stop): Call
12674 gdbarch_program_breakpoint_here_p.
12675
168f8c6b
TT
126762020-01-26 Tom Tromey <tom@tromey.com>
12677
12678 * ctfread.c (struct ctf_fp_info): Reindent.
12679 (_initialize_ctfread): Remove.
12680
128a391f
TT
126812020-01-26 Tom Tromey <tom@tromey.com>
12682
12683 * psymtab.c (partial_map_expand_apply)
12684 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
12685 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
12686 (psym_print_stats, psym_expand_symtabs_for_function)
12687 (psym_map_symbol_filenames, psym_map_matching_symbols)
12688 (psym_expand_symtabs_matching)
12689 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
12690 (maintenance_check_psymtabs): Use new methods.
12691 * psympriv.h (struct partial_symtab) <readin_p,
12692 get_compunit_symtab>: New methods.
12693 <readin, compunit_symtab>: Remove members.
12694 (struct standard_psymtab): New.
12695 (struct legacy_psymtab): Derive from standard_psymtab.
12696 * dwarf2read.h (struct dwarf2_psymtab): Derive from
12697 standard_psymtab.
12698 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
12699
0494dbec
TT
127002020-01-26 Tom Tromey <tom@tromey.com>
12701
12702 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
12703 read_dependencies. Add assert.
12704 * psymtab.c (partial_symtab::read_dependencies): New method.
12705 * psympriv.h (struct partial_symtab) <read_dependencies>: New
12706 method.
12707 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
12708 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
12709 read_dependencies.
12710 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
12711 Add assert.
12712
8566b89b
TT
127132020-01-26 Tom Tromey <tom@tromey.com>
12714
12715 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
12716 Call expand_psymtab.
12717 (xcoff_read_symtab): Call expand_psymtab.
12718 (xcoff_start_psymtab, xcoff_end_psymtab): Set
12719 legacy_expand_psymtab.
12720 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
12721 method.
12722 (struct legacy_psymtab) <expand_psymtab>: Implement.
12723 <legacy_expand_psymtab>: New member.
12724 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
12725 (parse_partial_symbols): Set legacy_expand_psymtab.
12726 (psymtab_to_symtab_1): Change argument order. Call
12727 expand_psymtab.
12728 (new_psymtab): Set legacy_expand_psymtab.
12729 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
12730 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
12731 expand_psymtab.
12732 (dwarf2_psymtab::expand_psymtab): Rename from
12733 psymtab_to_symtab_1. Call expand_psymtab.
12734 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
12735 (dbx_end_psymtab): Likewise.
12736 (dbx_psymtab_to_symtab_1): Change argument order. Call
12737 expand_psymtab.
12738 (dbx_read_symtab): Call expand_psymtab.
12739 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
12740 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
12741 (ctf_psymtab::read_symtab): Call expand_psymtab.
12742
077cbab2
TT
127432020-01-26 Tom Tromey <tom@tromey.com>
12744
12745 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
12746 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
12747 messages.
12748 * mdebugread.c (mdebug_read_symtab): Remove prints.
12749 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
12750 assert.
12751 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
12752
891813be
TT
127532020-01-26 Tom Tromey <tom@tromey.com>
12754
12755 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
12756 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
12757 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
12758 legacy_symtab.
12759 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
12760 * psymtab.c (psymtab_to_symtab): Call method.
12761 (dump_psymtab): Update.
12762 * psympriv.h (struct partial_symtab): Add virtual destructor.
12763 <read_symtab>: New method.
12764 (struct legacy_symtab): New.
12765 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
12766 (struct pst_map) <pst>: Now a legacy_psymtab.
12767 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
12768 (new_psymtab): Use legacy_psymtab.
12769 * dwarf2read.h (struct dwarf2_psymtab): New.
12770 (struct dwarf2_per_cu_data) <psymtab>: Use it.
12771 * dwarf2read.c (dwarf2_create_include_psymtab)
12772 (dwarf2_build_include_psymtabs, create_type_unit_group)
12773 (create_partial_symtab, process_psymtab_comp_unit_reader)
12774 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
12775 (set_partial_user): Use dwarf2_psymtab.
12776 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
12777 (psymtab_to_symtab_1, process_full_comp_unit)
12778 (process_full_type_unit, dwarf2_ranges_read)
12779 (dwarf2_get_pc_bounds, psymtab_include_file_name)
12780 (dwarf_decode_lines): Use dwarf2_psymtab.
12781 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
12782 (add_address_entry_worker, write_one_signatured_type)
12783 (recursively_count_psymbols, recursively_write_psymbols)
12784 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
12785 (write_debug_names): Likewise.
12786 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
12787 <pst>: Now a legacy_psymtab.
12788 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
12789 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
12790 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
12791 * ctfread.c (struct ctf_psymtab): New.
12792 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
12793 ctf_psymtab.
12794 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
12795 (create_partial_symtab): Return a ctf_psymtab.
12796 (scan_partial_symbols): Update.
12797
c3693a1d
TT
127982020-01-26 Tom Tromey <tom@tromey.com>
12799
12800 * xcoffread.c (xcoff_start_psymtab): Use new.
12801 * psymtab.c (partial_symtab::partial_symtab): New constructor,
12802 renamed from start_psymtab_common.
12803 * psympriv.h (struct partial_symtab): Add new constructor.
12804 (start_psymtab_common): Don't declare.
12805 * mdebugread.c (parse_partial_symbols): Use new.
12806 * dwarf2read.c (create_partial_symtab): Use new.
12807 * dbxread.c (start_psymtab): Use new.
12808 * ctfread.c (create_partial_symtab): Use new.
12809
32caafd0
TT
128102020-01-26 Tom Tromey <tom@tromey.com>
12811
12812 * xcoffread.c (xcoff_end_psymtab): Use new.
12813 * psymtab.c (start_psymtab_common): Use new.
12814 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
12815 Update.
12816 * psympriv.h (struct partial_symtab): Add parameters to
12817 constructor. Don't inline.
12818 (allocate_psymtab): Don't declare.
12819 * mdebugread.c (new_psymtab): Use new.
12820 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
12821 * dbxread.c (dbx_end_psymtab): Use new.
12822
abaa2f23
TT
128232020-01-26 Tom Tromey <tom@tromey.com>
12824
12825 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
12826 allocate_psymtab. Update documentation.
12827 * psymtab.c (psymtab_storage::install_psymtab): Rename from
12828 allocate_psymtab. Do not use new.
12829 (allocate_psymtab): Use new. Update.
12830
6d94535f
TT
128312020-01-26 Tom Tromey <tom@tromey.com>
12832
12833 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
12834 * psymtab.c (psym_print_stats): Update.
12835 * psympriv.h (struct partial_symtab) <readin,
12836 psymtabs_addrmap_supported, anonymous>: Now bool.
12837 * mdebugread.c (psymtab_to_symtab_1): Update.
12838 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
12839 (build_type_psymtabs_reader, psymtab_to_symtab_1)
12840 (process_full_comp_unit, process_full_type_unit): Update.
12841 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
12842 * ctfread.c (psymtab_to_symtab): Update.
12843
6f17252b
TT
128442020-01-26 Tom Tromey <tom@tromey.com>
12845
12846 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
12847 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
12848 * psymtab.c (psymtab_storage): Delete psymtabs.
12849 (psymtab_storage::allocate_psymtab): Use new.
12850 (psymtab_storage::discard_psymtab): Use delete.
12851 * psympriv.h (struct partial_symtab): Add constructor and
12852 initializers.
12853
f6f1cebc
TT
128542020-01-26 Tom Tromey <tom@tromey.com>
12855
12856 * machoread.c: Do not include psympriv.h.
12857
e47e48f6
PW
128582020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12859
12860 * NEWS: Mention the new option and the set/show commands.
12861
a2fedca9
PW
128622020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12863
12864 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
12865 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
12866 (validate_exec_file): New variables, enums, functions.
12867 (exec_file_locate_attach, print_section_info): Style the filenames.
12868 (_initialize_exec): Install show_exec_file_mismatch_command and
12869 set_exec_file_mismatch_command.
12870 * gdbcore.h (validate_exec_file): Declare.
12871 * infcmd.c (attach_command): Call validate_exec_file.
12872 * remote.c ( remote_target::remote_add_inferior): Likewise.
12873
7ffa82e1
AB
128742020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12875
12876 * frame.c (find_frame_sal): Move call to get_next_frame into more
12877 inner scope.
12878 * inline-frame.c (inilne_state) <inline_state>: Update argument
12879 types.
12880 (inilne_state) <skipped_symbol>: Rename to...
12881 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
12882 (skip_inline_frames): Build vector of skipped symbols and use this
12883 to reate the inline_state.
12884 (inline_skipped_symbol): Add a comment and some assertions, fetch
12885 skipped symbol from the list.
12886
3d92a3e3
AB
128872020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12888
12889 * buildsym.c (lte_is_less_than): Delete.
12890 (buildsym_compunit::end_symtab_with_blockvector): Create local
12891 lambda function to sort line table entries, and use
12892 std::stable_sort instead of std::sort.
12893 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
12894 markers when looking for a previous line.
12895
94a72be7
AB
128962020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12897
12898 * dwarf2read.c (lnp_state_machine::record_line): Include
12899 end_sequence parameter in debug print out. Record the line if we
12900 are at an end_sequence marker even if it's not the start of a
12901 statement.
12902 * symmisc.c (maintenance_print_one_line_table): Print end of
12903 sequence markers with 'END' not '0'.
12904
53af73bf
PA
129052020-01-24 Pedro Alves <palves@redhat.com>
12906
12907 PR gdb/25410
12908 * thread.c (scoped_restore_current_thread::restore): Use
12909 switch_to_inferior_no_thread.
12910 * exec.c: Include "progspace-and-thread.h".
12911 (add_target_sections, remove_target_sections):
12912 scoped_restore_current_pspace_and_thread instead of
12913 scoped_restore_current_thread.
12914 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
12915 and aspace to the inferior before calling clone_program_space.
12916 Remove stale comment.
12917
3050c6f4
CB
129182020-01-24 Christian Biesinger <cbiesinger@google.com>
12919
12920 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
12921 (arm_netbsd_nat_target::fetch_registers): ...this.
12922 (arm_nbsd_nat_target::store_registers): Rename to...
12923 (arm_netbsd_nat_target::store_registers): ...this.
12924
73685c7e
CB
129252020-01-24 Christian Biesinger <cbiesinger@google.com>
12926
12927 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12928 register_t.
12929
89203d40
CB
129302020-01-24 Christian Biesinger <cbiesinger@google.com>
12931
12932 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
12933 Update comment.
12934 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
12935 Likewise.
12936 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
12937 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
12938 the correct replacement (iterate_over_regset_sections).
12939 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
12940 Update comment.
12941
1ba1ac88
AB
129422020-01-24 Graham Markall <graham.markall@embecosm.com>
12943
12944 PR gdb/23718
12945 * gdb/python/python.c (execute_gdb_command): Call
12946 async_enable_stdin in catch block.
12947
f3364a6d
AB
129482020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12949
12950 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
12951 SWITCH_THRU_ALL_UIS.
12952
733d0a67
AB
129532020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12954
12955 PR tui/9765
12956 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
12957 comment, add extra parameter, and update to store previous symbol
12958 when appropriate.
12959 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
12960 add extra parameter.
12961 * tui/tui-disasm.c (tui_disassemble): Update header comment,
12962 remove unneeded parameter, add try/catch around gdb_print_insn,
12963 rewrite to add items to asm_lines vector.
12964 (tui_find_backward_disassembly_start_address): New function.
12965 (tui_find_disassembly_address): Updated throughout.
12966 (tui_disasm_window::set_contents): Update for changes to
12967 tui_disassemble.
12968 (tui_disasm_window::do_scroll_vertical): No need to adjust the
12969 number of lines to scroll.
12970
b3b3bada
SM
129712020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
12972
12973 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
12974 (SECT_OFF_DATA): Likewise.
12975 (SECT_OFF_RODATA): Likewise.
12976 (SECT_OFF_TEXT): Likewise.
12977 (SECT_OFF_BSS): Likewise.
12978 (struct objfile) <text_section_offset, data_section_offset>: New
12979 methods.
12980 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
12981 objfile::text_section_offset.
12982 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
12983 * coffread.c (coff_symtab_read): Likewise.
12984 (enter_linenos): Likewise.
12985 (process_coff_symbol): Likewise.
12986 * ctfread.c (get_objfile_text_range): Likewise.
12987 * dtrace-probe.c (dtrace_probe::get_relocated_address):
12988 Use objfile::data_section_offset.
12989 * dwarf2-frame.c (execute_cfa_program): Use
12990 objfile::text_section_offset.
12991 (dwarf2_frame_find_fde): Likewise.
12992 * dwarf2read.c (create_addrmap_from_index): Likewise.
12993 (create_addrmap_from_aranges): Likewise.
12994 (dw2_find_pc_sect_compunit_symtab): Likewise.
12995 (process_psymtab_comp_unit_reader): Likewise.
12996 (add_partial_symbol): Likewise.
12997 (add_partial_subprogram): Likewise.
12998 (process_full_comp_unit): Likewise.
12999 (read_file_scope): Likewise.
13000 (read_func_scope): Likewise.
13001 (read_lexical_block_scope): Likewise.
13002 (read_call_site_scope): Likewise.
13003 (dwarf2_rnglists_process): Likewise.
13004 (dwarf2_ranges_process): Likewise.
13005 (dwarf2_ranges_read): Likewise.
13006 (dwarf_decode_lines_1): Likewise.
13007 (new_symbol): Likewise.
13008 (dwarf2_fetch_die_loc_sect_off): Likewise.
13009 (dwarf2_per_cu_text_offset): Likewise.
13010 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
13011 * hppa-tdep.c (read_unwind_info): Likewise.
13012 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
13013 * psympriv.h (struct partial_symtab): Likewise.
13014 * psymtab.c (find_pc_sect_psymtab): Likewise.
13015 * solib-svr4.c (enable_break): Likewise.
13016 * stap-probe.c (relocate_address): Use
13017 objfile::data_section_offset.
13018 * xcoffread.c (enter_line_range): Use
13019 objfile::text_section_offset.
13020 (read_xcoff_symtab): Likewise.
13021
ab53f382
SM
130222020-01-23 Simon Marchi <simon.marchi@efficios.com>
13023
13024 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
13025 declaration to narrower scopes.
13026
e7eee665
SM
130272020-01-23 Simon Marchi <simon.marchi@efficios.com>
13028
13029 * darwin-nat.h (struct darwin_exception_msg, enum
13030 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
13031 Move up.
13032 (class darwin_nat_target) <wait_1, check_new_threads,
13033 decode_exception_message, decode_message, stop_inferior,
13034 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
13035 * darwin-nat.c (darwin_check_new_threads): Rename to...
13036 (darwin_nat_target::check_new_threads): ... this.
13037 (darwin_suspend_inferior_it): Remove.
13038 (darwin_decode_exception_message): Rename to...
13039 (darwin_nat_target::decode_exception_message): ... this.
13040 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
13041 (darwin_decode_message): Rename to...
13042 (darwin_nat_target::decode_message): ... this.
13043 (cancel_breakpoint): Rename to...
13044 (darwin_nat_target::cancel_breakpoint): ... this.
13045 (darwin_wait): Rename to...
13046 (darwin_nat_target::wait_1): ... this. Use range-based for loop
13047 instead of iterate_over_inferiors.
13048 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
13049 (darwin_stop_inferior): Rename to...
13050 (darwin_nat_target::stop_inferior): ... this.
13051 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
13052 (darwin_init_thread_list): Rename to...
13053 (darwin_nat_target::init_thread_list): ... this.
13054 (darwin_ptrace_him): Rename to...
13055 (darwin_nat_target::ptrace_him): ... this.
13056 (darwin_nat_target::create_inferior): Pass lambda function to
13057 fork_inferior.
13058 (darwin_nat_target::detach): Call stop_inferior instead of
13059 darwin_stop_inferior.
13060 * fork-inferior.h (fork_inferior): Change init_trace_fun
13061 parameter to gdb::function_view.
13062 * fork-inferior.c (fork_inferior): Likewise.
13063
c162ed3e
HD
130642020-01-23 Hannes Domani <ssbssa@yahoo.de>
13065
13066 * i386-cygwin-tdep.c (core_process_module_section): Update.
13067 * windows-nat.c (struct lm_info_windows): Add text_offset.
13068 (windows_xfer_shared_libraries): Update.
13069 * windows-tdep.c (windows_xfer_shared_library):
13070 Add text_offset_cached argument.
13071 * windows-tdep.h (windows_xfer_shared_library): Update.
13072
a1237872
SM
130732020-01-21 Simon Marchi <simon.marchi@efficios.com>
13074
13075 * gdbarch.sh: Add declaration for _initialize_gdbarch.
13076
b3ee6dd9
SM
130772020-01-21 Simon Marchi <simon.marchi@efficios.com>
13078
13079 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
13080 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
13081 replace with range-based for.
13082 (gdbsim_interrupt_inferior): Remove.
13083 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
13084 with a range-based for. Inline code from
13085 gdbsim_interrupt_inferior.
13086
f9fac3c8
SM
130872020-01-21 Simon Marchi <simon.marchi@efficios.com>
13088
13089 * infrun.c (proceed): Fix indentation.
13090
f6474de9
TT
130912020-01-21 Tom Tromey <tromey@adacore.com>
13092
13093 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
13094 * python/python.c (python_extension_ops): Update.
13095 (gdbpy_colorize): New function.
13096 * python/lib/gdb/__init__.py (colorize): New function.
13097 * extension.h (ext_lang_colorize): Declare.
13098 * extension.c (ext_lang_colorize): New function.
13099 * extension-priv.h (struct extension_language_ops) <colorize>: New
13100 member.
13101 * cli/cli-style.c (_initialize_cli_style): Update help text.
13102
f0c702d4
LM
131032020-01-21 Luis Machado <luis.machado@linaro.org>
13104
13105 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
13106 <cond>: Change type to bool.
13107 (aarch64_displaced_step_b_cond): Update cond to use bool type.
13108 (aarch64_displaced_step_cb): Likewise.
13109 (aarch64_displaced_step_tb): Likewise.
13110
1ab139e5
LM
131112020-01-21 Luis Machado <luis.machado@linaro.org>
13112
13113 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
13114 output.
13115
0c271889
LM
131162020-01-21 Luis Machado <luis.machado@linaro.org>
13117
13118 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
13119 <pc_adjust>: Adjust the documentation.
13120 (aarch64_displaced_step_fixup): Check if PC really moved before
13121 adjusting it.
13122
4d89c1c7
TT
131232020-01-19 Tom Tromey <tom@tromey.com>
13124
13125 * disasm.c (~gdb_disassembler): New destructor.
13126 (gdb_buffered_insn_length): Call disassemble_free_target.
13127 * disasm.h (class gdb_disassembler): Declare destructor. Use
13128 DISABLE_COPY_AND_ASSIGN.
13129
c0ab21c2
TT
131302020-01-19 Tom Tromey <tom@tromey.com>
13131
13132 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
13133 (die_reader_func_ftype): Remove.
13134 (cutu_reader): New class.
13135 (dw2_get_file_names_reader): Remove "data" parameter.
13136 (dw2_get_file_names): Use cutu_reader.
13137 (create_debug_type_hash_table): Update.
13138 (read_cutu_die_from_dwo): Update comment.
13139 (lookup_dwo_unit): Add dwo_name parameter.
13140 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
13141 die_reader_func_ftype and data parameters.
13142 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
13143 Remove die_reader_func_ftype and data parameters.
13144 (~cutu_reader): New; from init_cutu_and_read_dies.
13145 (cutu_reader::cutu_reader): Rename from
13146 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
13147 and data parameters.
13148 (init_cutu_and_read_dies_simple): Remove.
13149 (struct process_psymtab_comp_unit_data): Remove.
13150 (process_psymtab_comp_unit_reader): Remove data parameter; add
13151 want_partial_unit and pretend_language parameters.
13152 (process_psymtab_comp_unit): Use cutu_reader.
13153 (build_type_psymtabs_reader): Remove data parameter.
13154 (build_type_psymtabs_1): Use cutu_reader.
13155 (process_skeletonless_type_unit): Likewise.
13156 (load_partial_comp_unit_reader): Remove.
13157 (load_partial_comp_unit): Use cutu_reader.
13158 (load_full_comp_unit_reader): Remove.
13159 (load_full_comp_unit): Use cutu_reader.
13160 (struct create_dwo_cu_data): Remove.
13161 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
13162 dwo_unit parameters.
13163 (create_cus_hash_table): Use cutu_reader.
13164 (struct dwarf2_read_addr_index_data): Remove.
13165 (dwarf2_read_addr_index_reader): Remove.
13166 (dwarf2_read_addr_index): Use cutu_reader.
13167 (read_signatured_type_reader): Remove.
13168 (read_signatured_type): Use cutu_reader.
13169
45bbae5c
TT
131702020-01-19 Tom Tromey <tom@tromey.com>
13171
13172 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
13173 * tui/tui-wingeneral.h (class tui_suppress_output): New.
13174 (tui_wrefresh): Declare.
13175 * tui/tui-wingeneral.c (suppress_output): New global.
13176 (tui_suppress_output, ~tui_suppress_output): New constructor and
13177 destructor.
13178 (tui_wrefresh): New function.
13179 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
13180 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
13181 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
13182 method.
13183 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
13184 tui_wrefresh.
13185 (tui_data_window::no_refresh): New method.
13186 (tui_data_item_window::refresh_window): Call tui_wrefresh.
13187 (tui_reg_command): Use tui_suppress_output
13188 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
13189 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
13190 method.
13191 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
13192
4f13c1c0
TT
131932020-01-19 Tom Tromey <tom@tromey.com>
13194
13195 * tui/tui-winsource.c (tui_update_source_windows_with_line):
13196 Handle case where symtab is null.
13197
fa47e446
SM
131982020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
13199
13200 * linux-fork.c (one_fork_p): Simplify.
13201
26f42329
SM
132022020-01-17 Simon Marchi <simon.marchi@efficios.com>
13203
13204 * top.c (struct qt_args): Remove.
13205 (kill_or_detach): Change return type to void, replace `void *`
13206 parameter with a proper one.
13207 (print_inferior_quit_action): Likewise.
13208 (quit_confirm): Use range-based for loop to iterate over inferiors.
13209 (quit_force): Likewise.
13210
a9ac81b1
SM
132112020-01-17 Simon Marchi <simon.marchi@efficios.com>
13212
13213 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
13214 `void *` parameter with proper parameters.
13215 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
13216 (print_one_inferior): Change return type to void, replace `void *`
13217 parameter with proper parameters.
13218 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
13219 inferiors.
13220 (get_other_inferior): Remove.
13221 (mi_cmd_remove_inferior): Use range-based loop to iterate over
13222 inferiors.
13223
788eca49
SM
132242020-01-17 Simon Marchi <simon.marchi@efficios.com>
13225
13226 * mi/mi-interp.c (report_initial_inferior): Remove.
13227 (mi_interp::init): Use range-based for to iterate over inferiors.
13228
d9bc85b6
SM
132292020-01-17 Simon Marchi <simon.marchi@efficios.com>
13230
13231 * python/py-inferior.c (build_inferior_list): Remove.
13232 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
13233
40c94099
CB
132342020-01-16 Christian Biesinger <cbiesinger@google.com>
13235
13236 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
13237 (btrace_stitch_trace): Likewise.
13238 * charset.c (intermediate_encoding): Likewise (vaild).
13239 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
13240 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
13241 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
13242
e0cdfe3c
HD
132432020-01-16 Hannes Domani <ssbssa@yahoo.de>
13244
13245 * windows-tdep.c (windows_get_tlb_type):
13246 Add rtl_user_process_parameters type.
13247
790f1718 132482020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 13249 Norbert Lange <nolange79@gmail.com>
790f1718
PA
13250
13251 PR build/24805
13252 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
13253 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
13254 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
13255 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
13256 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
13257 (ps_plog): Redeclare exported functions with default visibility.
13258
3112ed97
NA
132592020-01-16 Nitika Achra <Nitika.Achra@amd.com>
13260
13261 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
13262 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
13263
8dc3273e
SM
132642020-01-15 Simon Marchi <simon.marchi@efficios.com>
13265
13266 * infcmd.c (post_create_inferior): Use get_thread_regcache
13267 instead of get_current_regcache.
13268
ff47f4f0
TT
132692020-01-14 Tom Tromey <tom@tromey.com>
13270
13271 PR symtab/12535:
13272 * python/python.c (gdbpy_decode_line): Treat empty string the same
13273 as no argument.
13274
975f45b7
TT
132752020-01-14 Tom Tromey <tom@tromey.com>
13276
13277 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
13278
25e57356
TT
132792020-01-14 Tom Tromey <tom@tromey.com>
13280
13281 * nat/linux-btrace.c: Don't include <config.h>.
13282 * nat/linux-ptrace.c: Don't include <config.h>.
13283 * nat/x86-linux-dregs.c: Don't include <config.h>.
13284
05ea2a05
TT
132852020-01-14 Tom Tromey <tom@tromey.com>
13286
13287 * configure: Rebuild.
13288 * configure.ac: Move many checks to ../gdbsupport/common.m4.
13289
01027315
TT
132902020-01-14 Tom Tromey <tom@tromey.com>
13291
13292 * nat/x86-linux-dregs.c: Include configh.h.
13293 * nat/linux-ptrace.c: Include configh.h.
13294 * nat/linux-btrace.c: Include configh.h.
13295 * defs.h: Include config.h, bfd.h.
13296 * configure.ac: Don't source common.host.
13297 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
13298 * configure: Rebuild.
13299 * acinclude.m4: Update path.
13300 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
13301 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
13302 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
13303 (CLIBS): Add LIBSUPPORT.
13304 (CDEPS): Likewise.
13305 (COMMON_SFILES): Remove gdbsupport files.
13306 (HFILES_NO_SRCDIR): Likewise.
13307 (stamp-version): Update path to create-version.sh.
13308 (ALLDEPFILES): Remove gdbsupport files.
13309
b2ceabe8
TT
133102020-01-14 Tom Tromey <tom@tromey.com>
13311
13312 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
13313 USE_WIN32API when needed.
13314 * configure.ac (USE_WIN32API): Don't define.
13315 (WIN32LIBS): Use WIN32APILIBS.
13316 * configure: Rebuild.
13317
25c51f71
TT
133182020-01-14 Tom Tromey <tom@tromey.com>
13319
13320 * configure: Rebuild.
13321 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
13322
717c684d
BE
133232020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
13324
13325 * skip.c (skip_function_command): Make skip w/o arguments use the
13326 name of the inlined function if pc is inside any inlined function.
13327
7da6a5b9
LM
133282020-01-14 Luis Machado <luis.machado@linaro.org>
13329
13330 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
13331 * infrun.c (resume_1): Likewise.
13332 (handle_inferior_event): Remove stale comment.
13333 * linux-nat.c (linux_nat_target::resume): Update comments.
13334 (save_stop_reason): Likewise.
13335 (linux_nat_filter_event): Likewise.
13336 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
13337
44e4c775
AB
133382020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
13339
13340 * elfread.c (record_minimal_symbol): Set section index to 0 for
13341 non-allocatable sections.
13342
18a8505e
AT
13343
133442020-01-13 Ali Tamur <tamur@google.com>
13345
13346 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
13347 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
13348 to gdb::optional. Update comments.
13349 (dwo_file): Update comments.
13350 (read_attribute): Update API to take an additional out parameter,
13351 need_reprocess. This is used to mark attributes that need other
13352 attributes (e.g. str_offsets_base) for correct computation which may not
13353 have been read yet.
13354 (read_attribute_reprocess): New function declaration.
13355 (read_addr_index): Likewise.
13356 (read_dwo_str_index): Likewise.
13357 (read_stub_str_index): Likewise.
13358 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
13359 (lookup_addr_base): New function definition.
13360 (lookup_ranges_base): Likewise.
13361 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
13362 lookup_ranges_base.
13363 (init_cutu_and_read_dies): Update comments.
13364 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
13365 unit. This is used to inherit parent's str_offsets_base and addr_base.
13366 Update comments.
13367 (init_cutu_and_read_dies_simple): Reflect API changes.
13368 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
13369 (create_cus_hash_table): Change API to take parent compile unit.
13370 Reflect API changes.
13371 (open_and_init_dwo_file): Reflect API changes.
13372 (dwarf2_get_pc_bounds): Update comments.
13373 (dwarf2_record_block_ranges): Likewise.
13374 (read_full_die_1): Change implementation to reprocess attributes that
13375 need str_offsets_base and addr_base.
13376 (partial_die_info::read): Likewise.
13377 (read_attribute_reprocess): New function definition.
13378 (read_attribute_value): Change API to take an additional out parameter,
13379 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
13380 when a non-dwo compile unit has index based attributes.
13381 (read_attribute): Reflect API changes.
13382 (read_addr_index_1): Reflect API changes. Update comments.
13383 (dwarf2_read_addr_index_data): Reflect API changes.
13384 (dwarf2_read_addr_index): Likewise.
13385 (read_str_index): Change API and implementation. This becomes a helper
13386 to be used by the new string index related methods. Update error
13387 message and comments.
13388 (read_dwo_str_index): New function definition.
13389 (read_stub_str_index): Likewise.
13390 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
13391 * symfile.h (dwarf2_debug_sections): Likewise.
13392 * xcoffread.c (dwarf2_debug_sections): Likewise.
13393
0cac9354
SM
133942020-01-13 Simon Marchi <simon.marchi@efficios.com>
13395
13396 * gdbcore.h (struct core_fns) <core_read_registers>: Change
13397 core_reg_sect type to gdb_byte *.
13398 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
13399 * cris-tdep.c (fetch_core_registers): Likewise.
13400 * corelow.c (core_target::get_core_register_section): Change
13401 type of `contents` to gdb::byte_vector.
13402
9a6d629c
AB
134032020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
13404
13405 * tui/tui-wingeneral.c (box_win): Position the title in the center
13406 of the border.
13407
d8b2f9e3
SM
134082020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13409
13410 * corelow.c (core_target::get_core_register_section): Use
13411 std::vector instead of alloca.
13412
bb564c58
SM
134132020-01-13 Simon Marchi <simon.marchi@efficios.com>
13414
13415 * warning.m4: Add -Wmissing-declarations to build_warnings.
13416 * configure: Re-generate.
13417
6b366111
SM
134182020-01-13 Simon Marchi <simon.marchi@efficios.com>
13419
13420 * python/python.c (init__gdb_module): Add declaration.
13421
6c265988
SM
134222020-01-13 Simon Marchi <simon.marchi@efficios.com>
13423
13424 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
13425 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
13426 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
13427 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
13428 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
13429 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
13430 * ada-exp.y (_initialize_ada_exp): Add declaration.
13431 * ada-lang.c (_initialize_ada_language): Add declaration.
13432 * ada-tasks.c (_initialize_tasks): Add declaration.
13433 * agent.c (_initialize_agent): Add declaration.
13434 * aix-thread.c (_initialize_aix_thread): Add declaration.
13435 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
13436 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
13437 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
13438 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
13439 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
13440 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
13441 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
13442 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
13443 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
13444 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
13445 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
13446 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
13447 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
13448 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
13449 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
13450 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
13451 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
13452 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
13453 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
13454 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
13455 * annotate.c (_initialize_annotate): Add declaration.
13456 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
13457 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
13458 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
13459 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
13460 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
13461 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
13462 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
13463 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
13464 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
13465 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
13466 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
13467 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
13468 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
13469 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
13470 * auto-load.c (_initialize_auto_load): Add declaration.
13471 * auxv.c (_initialize_auxv): Add declaration.
13472 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
13473 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
13474 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
13475 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
13476 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
13477 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
13478 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
13479 * breakpoint.c (_initialize_breakpoint): Add declaration.
13480 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
13481 * btrace.c (_initialize_btrace): Add declaration.
13482 * charset.c (_initialize_charset): Add declaration.
13483 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
13484 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
13485 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
13486 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
13487 * cli/cli-script.c (_initialize_cli_script): Add declaration.
13488 * cli/cli-style.c (_initialize_cli_style): Add declaration.
13489 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
13490 * coffread.c (_initialize_coffread): Add declaration.
13491 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
13492 * compile/compile.c (_initialize_compile): Add declaration.
13493 * complaints.c (_initialize_complaints): Add declaration.
13494 * completer.c (_initialize_completer): Add declaration.
13495 * copying.c (_initialize_copying): Add declaration.
13496 * corefile.c (_initialize_core): Add declaration.
13497 * corelow.c (_initialize_corelow): Add declaration.
13498 * cp-abi.c (_initialize_cp_abi): Add declaration.
13499 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
13500 * cp-support.c (_initialize_cp_support): Add declaration.
13501 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
13502 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
13503 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
13504 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
13505 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
13506 * ctfread.c (_initialize_ctfread): Add declaration.
13507 * d-lang.c (_initialize_d_language): Add declaration.
13508 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
13509 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
13510 * dbxread.c (_initialize_dbxread): Add declaration.
13511 * dcache.c (_initialize_dcache): Add declaration.
13512 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
13513 * disasm.c (_initialize_disasm): Add declaration.
13514 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
13515 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
13516 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
13517 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
13518 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
13519 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
13520 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
13521 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
13522 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
13523 * elfread.c (_initialize_elfread): Add declaration.
13524 * exec.c (_initialize_exec): Add declaration.
13525 * extension.c (_initialize_extension): Add declaration.
13526 * f-lang.c (_initialize_f_language): Add declaration.
13527 * f-valprint.c (_initialize_f_valprint): Add declaration.
13528 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
13529 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
13530 * filesystem.c (_initialize_filesystem): Add declaration.
13531 * findcmd.c (_initialize_mem_search): Add declaration.
13532 * findvar.c (_initialize_findvar): Add declaration.
13533 * fork-child.c (_initialize_fork_child): Add declaration.
13534 * frame-base.c (_initialize_frame_base): Add declaration.
13535 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
13536 * frame.c (_initialize_frame): Add declaration.
13537 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
13538 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
13539 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
13540 * gcore.c (_initialize_gcore): Add declaration.
13541 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
13542 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
13543 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
13544 * gdbarch.c (_initialize_gdbarch): Add declaration.
13545 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
13546 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
13547 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
13548 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
13549 * go-lang.c (_initialize_go_language): Add declaration.
13550 * go32-nat.c (_initialize_go32_nat): Add declaration.
13551 * guile/guile.c (_initialize_guile): Add declaration.
13552 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
13553 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
13554 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
13555 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
13556 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
13557 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
13558 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
13559 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
13560 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
13561 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
13562 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
13563 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
13564 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
13565 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
13566 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
13567 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
13568 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
13569 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
13570 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
13571 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
13572 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
13573 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
13574 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
13575 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
13576 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
13577 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
13578 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
13579 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
13580 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
13581 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
13582 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
13583 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
13584 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
13585 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
13586 * infcall.c (_initialize_infcall): Add declaration.
13587 * infcmd.c (_initialize_infcmd): Add declaration.
13588 * inflow.c (_initialize_inflow): Add declaration.
13589 * infrun.c (_initialize_infrun): Add declaration.
13590 * interps.c (_initialize_interpreter): Add declaration.
13591 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
13592 * jit.c (_initialize_jit): Add declaration.
13593 * language.c (_initialize_language): Add declaration.
13594 * linux-fork.c (_initialize_linux_fork): Add declaration.
13595 * linux-nat.c (_initialize_linux_nat): Add declaration.
13596 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
13597 * linux-thread-db.c (_initialize_thread_db): Add declaration.
13598 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
13599 * m2-lang.c (_initialize_m2_language): Add declaration.
13600 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
13601 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
13602 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
13603 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
13604 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
13605 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
13606 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
13607 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
13608 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
13609 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
13610 * machoread.c (_initialize_machoread): Add declaration.
13611 * macrocmd.c (_initialize_macrocmd): Add declaration.
13612 * macroscope.c (_initialize_macroscope): Add declaration.
13613 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
13614 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
13615 * maint.c (_initialize_maint_cmds): Add declaration.
13616 * mdebugread.c (_initialize_mdebugread): Add declaration.
13617 * memattr.c (_initialize_mem): Add declaration.
13618 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
13619 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
13620 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
13621 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
13622 * mi/mi-main.c (_initialize_mi_main): Add declaration.
13623 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
13624 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
13625 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
13626 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
13627 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
13628 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
13629 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
13630 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
13631 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
13632 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
13633 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
13634 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
13635 * mipsread.c (_initialize_mipsread): Add declaration.
13636 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
13637 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
13638 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
13639 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
13640 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
13641 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
13642 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
13643 * nto-procfs.c (_initialize_procfs): Add declaration.
13644 * objc-lang.c (_initialize_objc_language): Add declaration.
13645 * observable.c (_initialize_observer): Add declaration.
13646 * opencl-lang.c (_initialize_opencl_language): Add declaration.
13647 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
13648 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
13649 * osabi.c (_initialize_gdb_osabi): Add declaration.
13650 * osdata.c (_initialize_osdata): Add declaration.
13651 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
13652 * parse.c (_initialize_parse): Add declaration.
13653 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
13654 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
13655 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
13656 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
13657 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
13658 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
13659 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
13660 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
13661 * printcmd.c (_initialize_printcmd): Add declaration.
13662 * probe.c (_initialize_probe): Add declaration.
13663 * proc-api.c (_initialize_proc_api): Add declaration.
13664 * proc-events.c (_initialize_proc_events): Add declaration.
13665 * proc-service.c (_initialize_proc_service): Add declaration.
13666 * procfs.c (_initialize_procfs): Add declaration.
13667 * producer.c (_initialize_producer): Add declaration.
13668 * psymtab.c (_initialize_psymtab): Add declaration.
13669 * python/python.c (_initialize_python): Add declaration.
13670 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
13671 * record-btrace.c (_initialize_record_btrace): Add declaration.
13672 * record-full.c (_initialize_record_full): Add declaration.
13673 * record.c (_initialize_record): Add declaration.
13674 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
13675 * regcache.c (_initialize_regcache): Add declaration.
13676 * reggroups.c (_initialize_reggroup): Add declaration.
13677 * remote-notif.c (_initialize_notif): Add declaration.
13678 * remote-sim.c (_initialize_remote_sim): Add declaration.
13679 * remote.c (_initialize_remote): Add declaration.
13680 * reverse.c (_initialize_reverse): Add declaration.
13681 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
13682 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
13683 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
13684 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
13685 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
13686 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
13687 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
13688 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
13689 Add declaration.
13690 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
13691 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
13692 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
13693 * rust-exp.y (_initialize_rust_exp): Add declaration.
13694 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
13695 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
13696 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
13697 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
13698 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
13699 * score-tdep.c (_initialize_score_tdep): Add declaration.
13700 * ser-go32.c (_initialize_ser_dos): Add declaration.
13701 * ser-mingw.c (_initialize_ser_windows): Add declaration.
13702 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
13703 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
13704 * ser-uds.c (_initialize_ser_socket): Add declaration.
13705 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
13706 * serial.c (_initialize_serial): Add declaration.
13707 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
13708 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
13709 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
13710 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
13711 * skip.c (_initialize_step_skip): Add declaration.
13712 * sol-thread.c (_initialize_sol_thread): Add declaration.
13713 * solib-aix.c (_initialize_solib_aix): Add declaration.
13714 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
13715 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
13716 * solib-frv.c (_initialize_frv_solib): Add declaration.
13717 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
13718 * solib-target.c (_initialize_solib_target): Add declaration.
13719 * solib.c (_initialize_solib): Add declaration.
13720 * source-cache.c (_initialize_source_cache): Add declaration.
13721 * source.c (_initialize_source): Add declaration.
13722 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
13723 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
13724 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
13725 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
13726 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
13727 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
13728 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
13729 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
13730 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
13731 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
13732 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
13733 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
13734 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
13735 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
13736 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
13737 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
13738 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
13739 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
13740 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
13741 * stabsread.c (_initialize_stabsread): Add declaration.
13742 * stack.c (_initialize_stack): Add declaration.
13743 * stap-probe.c (_initialize_stap_probe): Add declaration.
13744 * std-regs.c (_initialize_frame_reg): Add declaration.
13745 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
13746 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
13747 * symfile.c (_initialize_symfile): Add declaration.
13748 * symmisc.c (_initialize_symmisc): Add declaration.
13749 * symtab.c (_initialize_symtab): Add declaration.
13750 * target.c (_initialize_target): Add declaration.
13751 * target-connection.c (_initialize_target_connection): Add
13752 declaration.
13753 * target-dcache.c (_initialize_target_dcache): Add declaration.
13754 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
13755 * thread.c (_initialize_thread): Add declaration.
13756 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
13757 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
13758 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
13759 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
13760 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
13761 * tracectf.c (_initialize_ctf): Add declaration.
13762 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
13763 * tracefile.c (_initialize_tracefile): Add declaration.
13764 * tracepoint.c (_initialize_tracepoint): Add declaration.
13765 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
13766 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
13767 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
13768 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
13769 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
13770 * tui/tui-win.c (_initialize_tui_win): Add declaration.
13771 * tui/tui.c (_initialize_tui): Add declaration.
13772 * typeprint.c (_initialize_typeprint): Add declaration.
13773 * ui-style.c (_initialize_ui_style): Add declaration.
13774 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
13775 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
13776 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
13777 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
13778 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
13779 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
13780 * unittests/filtered_iterator-selftests.c
13781 (_initialize_filtered_iterator_selftests): Add declaration.
13782 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
13783 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
13784 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
13785 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
13786 * unittests/main-thread-selftests.c
13787 (_initialize_main_thread_selftests): Add declaration.
13788 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
13789 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
13790 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
13791 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
13792 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
13793 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
13794 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
13795 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
13796 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
13797 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
13798 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
13799 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
13800 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
13801 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
13802 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
13803 declaration.
13804 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
13805 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
13806 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
13807 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
13808 * user-regs.c (_initialize_user_regs): Add declaration.
13809 * utils.c (_initialize_utils): Add declaration.
13810 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
13811 * valops.c (_initialize_valops): Add declaration.
13812 * valprint.c (_initialize_valprint): Add declaration.
13813 * value.c (_initialize_values): Add declaration.
13814 * varobj.c (_initialize_varobj): Add declaration.
13815 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
13816 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
13817 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
13818 * windows-nat.c (_initialize_windows_nat): Add declaration.
13819 (_initialize_check_for_gdb_ini): Add declaration.
13820 (_initialize_loadable): Add declaration.
13821 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
13822 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
13823 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
13824 * xcoffread.c (_initialize_xcoffread): Add declaration.
13825 * xml-support.c (_initialize_xml_support): Add declaration.
13826 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
13827 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
13828 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
13829 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
13830
e2de1eec
SM
138312020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13832
13833 * regformats/regdat.sh: Generate declaration for init function.
13834
e0037b4c
SM
138352020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13836
13837 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
13838 up.
13839 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
13840 close_one_inferior>: New methods.
13841 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
13842 pass down target to find_inferior_pid.
13843 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
13844 Pass down target to find_inferior_ptid.
13845 (gdbsim_target::create_inferior): Pass down target to
13846 add_thread_silent.
13847 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
13848 target down to find_inferior_ptid and switch_to_thread.
13849 (gdbsim_target::close): Update to call close_one_inferior.
13850 (struct resume_data): Remove.
13851 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
13852 directly, rather than through a void pointer.
13853 (gdbsim_target::resume): Update to call resume_one_inferior.
13854
58920b5b
SM
138552020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
13856
13857 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
13858
4ec89149
PA
138592020-01-12 Pedro Alves <palves@redhat.com>
13860
13861 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
13862 directly for the current inferior instead of
13863 discard_all_inferiors.
13864 (discard_all_inferiors): Delete.
13865
7c392d1d
TT
138662020-01-11 Tom Tromey <tom@tromey.com>
13867
13868 * tui/tui-wingeneral.c (box_win): Check cli_styling.
13869 * tui/tui-winsource.c (tui_source_window_base::refill): Use
13870 deprecated_safe_get_selected_frame.
13871
d9ebdab7
TBA
138722020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13873
13874 * inferior.c (print_inferior): Switch inferior before printing it.
13875
f3c469b9
PA
138762020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
13877 Pedro Alves <palves@redhat.com>
13878
13879 * progspace-and-thread.c (switch_to_program_space_and_thread):
13880 Assert there's an inferior for PSPACE. Use
13881 switch_to_inferior_no_thread to switch the inferior too.
13882 * progspace.c (program_space::~program_space): Call
13883 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
13884 (program_space::free_all_objfiles): Don't call clear_symtab_users
13885 here.
13886 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
13887
65c574f6
PA
138882020-01-10 Pedro Alves <palves@redhat.com>
13889
13890 * NEWS: Mention multi-target debugging, "info connections", and
13891 "add-inferior -no-connection".
13892
2f4fcf00
PA
138932020-01-10 Pedro Alves <palves@redhat.com>
13894
13895 * infrun.c: Include "target-connection.h".
13896 (check_multi_target_resumption): New.
13897 (proceed): Call it.
13898 * target-connection.c (make_target_connection_string): Make
13899 extern.
13900 * target-connection.h (make_target_connection_string): Declare.
13901
121b3efd
PA
139022020-01-10 Pedro Alves <palves@redhat.com>
13903
13904 * Makefile.in (COMMON_SFILES): Add target-connection.c.
13905 * inferior.c (uiout_field_connection): New function.
13906 (print_inferior): Add new "connection-id" column.
13907 (add_inferior_command): Show connection number/string of added
13908 inferior.
13909 * process-stratum-target.h
13910 (process_stratum_target::connection_string): New virtual method.
13911 (process_stratum_target::connection_number): New field.
13912 * remote.c (remote_target::connection_string): New override.
13913 * target-connection.c: New file.
13914 * target-connection.h: New file.
13915 * target.c (decref_target): Remove process_stratum targets from
13916 the connection list.
13917 (target_stack::push): Add process_stratum targets to the
13918 connection list.
13919
4f837581
PA
139202020-01-10 Pedro Alves <palves@redhat.com>
13921
13922 Revert:
13923 2016-04-12 Pedro Alves <palves@redhat.com>
13924 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
13925 Remove references to name.
13926 * serial.h (struct serial) <name>: Delete.
13927
f4ec508e
PA
139282020-01-10 Pedro Alves <palves@redhat.com>
13929
13930 * gdbarch-selftests.c (register_to_value_test): Remove "target
13931 already pushed" check.
13932
5b6d1e4f
PA
139332020-01-10 Pedro Alves <palves@redhat.com>
13934 John Baldwin <jhb@FreeBSD.org>
13935
13936 * aarch64-linux-nat.c
13937 (aarch64_linux_nat_target::thread_architecture): Adjust.
13938 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
13939 (task_command_1): Likewise.
13940 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
13941 (aix_thread_target::wait, aix_thread_target::fetch_registers)
13942 (aix_thread_target::store_registers)
13943 (aix_thread_target::thread_alive): Adjust.
13944 * amd64-fbsd-tdep.c: Include "inferior.h".
13945 (amd64fbsd_get_thread_local_address): Pass down target.
13946 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
13947 thread's gdbarch instead of target_gdbarch.
13948 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
13949 get_last_target_status.
13950 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
13951 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
13952 inferiors.
13953 (update_inserted_breakpoint_locations): Skip if inferiors with no
13954 execution.
13955 (update_global_location_list): When handling moribund locations,
13956 find representative inferior for location's pspace, and use thread
13957 count of its process_stratum target.
13958 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
13959 * bsd-uthread.c (bsd_uthread_target::wait): Use
13960 as_process_stratum_target and adjust thread_change_ptid and
13961 add_thread calls.
13962 (bsd_uthread_target::update_thread_list): Use
13963 as_process_stratum_target and adjust find_thread_ptid,
13964 thread_change_ptid and add_thread calls.
13965 * btrace.c (maint_btrace_packet_history_cmd): Adjust
13966 find_thread_ptid call.
13967 * corelow.c (add_to_thread_list): Adjust add_thread call.
13968 (core_target_open): Adjust add_thread_silent and thread_count
13969 calls.
13970 (core_target::pid_to_str): Adjust find_inferior_ptid call.
13971 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
13972 * event-top.c (async_disconnect): Pop targets from all inferiors.
13973 * exec.c (add_target_sections): Push exec target on all inferiors
13974 sharing the program space.
13975 (remove_target_sections): Remove the exec target from all
13976 inferiors sharing the program space.
13977 (exec_on_vfork): New.
13978 * exec.h (exec_on_vfork): Declare.
13979 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
13980 Pass it down.
13981 (fbsd_nat_target::update_thread_list): Adjust.
13982 (fbsd_nat_target::resume): Adjust.
13983 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
13984 down.
13985 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
13986 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
13987 get_thread_arch_regcache call.
13988 * fork-child.c (gdb_startup_inferior): Pass target down to
13989 startup_inferior and set_executing.
13990 * gdbthread.h (struct process_stratum_target): Forward declare.
13991 (add_thread, add_thread_silent, add_thread_with_info)
13992 (in_thread_list): Add process_stratum_target parameter.
13993 (find_thread_ptid(inferior*, ptid_t)): New overload.
13994 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
13995 parameter.
13996 (all_threads()): Delete overload.
13997 (all_threads, all_non_exited_threads): Add process_stratum_target
13998 parameter.
13999 (all_threads_safe): Use brace initialization.
14000 (thread_count): Add process_stratum_target parameter.
14001 (set_resumed, set_running, set_stop_requested, set_executing)
14002 (threads_are_executing, finish_thread_state): Add
14003 process_stratum_target parameter.
14004 (switch_to_thread): Use is_current_thread.
14005 * i386-fbsd-tdep.c: Include "inferior.h".
14006 (i386fbsd_get_thread_local_address): Pass down target.
14007 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
14008 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
14009 have_inferiors check.
14010 * inf-ptrace.c (inf_ptrace_target::create_inferior)
14011 (inf_ptrace_target::attach): Adjust.
14012 * infcall.c (run_inferior_call): Adjust.
14013 * infcmd.c (run_command_1): Pass target to
14014 scoped_finish_thread_state.
14015 (proceed_thread_callback): Skip inferiors with no execution.
14016 (continue_command): Rename 'all_threads' local to avoid hiding
14017 'all_threads' function. Adjust get_last_target_status call.
14018 (prepare_one_step): Adjust set_running call.
14019 (signal_command): Use user_visible_resume_target. Compare thread
14020 pointers instead of inferior_ptid.
14021 (info_program_command): Adjust to pass down target.
14022 (attach_command): Mark target's 'thread_executing' flag.
14023 (stop_current_target_threads_ns): New, factored out from ...
14024 (interrupt_target_1): ... this. Switch inferior before making
14025 target calls.
14026 * inferior-iter.h
14027 (struct all_inferiors_iterator, struct all_inferiors_range)
14028 (struct all_inferiors_safe_range)
14029 (struct all_non_exited_inferiors_range): Filter on
14030 process_stratum_target too. Remove explicit.
14031 * inferior.c (inferior::inferior): Push dummy target on target
14032 stack.
14033 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
14034 Add process_stratum_target parameter, and pass it down.
14035 (have_live_inferiors): Adjust.
14036 (switch_to_inferior_and_push_target): New.
14037 (add_inferior_command, clone_inferior_command): Handle
14038 "-no-connection" parameter. Use
14039 switch_to_inferior_and_push_target.
14040 (_initialize_inferior): Mention "-no-connection" option in
14041 the help of "add-inferior" and "clone-inferior" commands.
14042 * inferior.h: Include "process-stratum-target.h".
14043 (interrupt_target_1): Use bool.
14044 (struct inferior) <push_target, unpush_target, target_is_pushed,
14045 find_target_beneath, top_target, process_target, target_at,
14046 m_stack>: New.
14047 (discard_all_inferiors): Delete.
14048 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
14049 (all_inferiors, all_non_exited_inferiors): Add
14050 process_stratum_target parameter.
14051 * infrun.c: Include "gdb_select.h" and <unordered_map>.
14052 (target_last_proc_target): New global.
14053 (follow_fork_inferior): Push target on new inferior. Pass target
14054 to add_thread_silent. Call exec_on_vfork. Handle target's
14055 reference count.
14056 (follow_fork): Adjust get_last_target_status call. Also consider
14057 target.
14058 (follow_exec): Push target on new inferior.
14059 (struct execution_control_state) <target>: New field.
14060 (user_visible_resume_target): New.
14061 (do_target_resume): Call target_async.
14062 (resume_1): Set target's threads_executing flag. Consider resume
14063 target.
14064 (commit_resume_all_targets): New.
14065 (proceed): Also consider resume target. Skip threads of inferiors
14066 with no execution. Commit resumtion in all targets.
14067 (start_remote): Pass current inferior to wait_for_inferior.
14068 (infrun_thread_stop_requested): Consider target as well. Pass
14069 thread_info pointer to clear_inline_frame_state instead of ptid.
14070 (infrun_thread_thread_exit): Consider target as well.
14071 (random_pending_event_thread): New inferior parameter. Use it.
14072 (do_target_wait): Rename to ...
14073 (do_target_wait_1): ... this. Add inferior parameter, and pass it
14074 down.
14075 (threads_are_resumed_pending_p, do_target_wait): New.
14076 (prepare_for_detach): Adjust calls.
14077 (wait_for_inferior): New inferior parameter. Handle it. Use
14078 do_target_wait_1 instead of do_target_wait.
14079 (fetch_inferior_event): Adjust. Switch to representative
14080 inferior. Pass target down.
14081 (set_last_target_status): Add process_stratum_target parameter.
14082 Save target in global.
14083 (get_last_target_status): Add process_stratum_target parameter and
14084 handle it.
14085 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
14086 (context_switch): Check inferior_ptid == null_ptid before calling
14087 inferior_thread().
14088 (get_inferior_stop_soon): Pass down target.
14089 (wait_one): Rename to ...
14090 (poll_one_curr_target): ... this.
14091 (struct wait_one_event): New.
14092 (wait_one): New.
14093 (stop_all_threads): Adjust.
14094 (handle_no_resumed, handle_inferior_event): Adjust to consider the
14095 event's target.
14096 (switch_back_to_stepped_thread): Also consider target.
14097 (print_stop_event): Update.
14098 (normal_stop): Update. Also consider the resume target.
14099 * infrun.h (wait_for_inferior): Remove declaration.
14100 (user_visible_resume_target): New declaration.
14101 (get_last_target_status, set_last_target_status): New
14102 process_stratum_target parameter.
14103 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
14104 process_stratum_target parameter, and use it.
14105 (clear_inline_frame_state (thread_info*)): New.
14106 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
14107 process_stratum_target parameter.
14108 (clear_inline_frame_state (thread_info*)): Declare.
14109 * linux-fork.c (delete_checkpoint_command): Pass target down to
14110 find_thread_ptid.
14111 (checkpoint_command): Adjust.
14112 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
14113 instead of just tweaking inferior_ptid.
14114 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
14115 (exit_lwp): Pass target down to find_thread_ptid.
14116 (attach_proc_task_lwp_callback): Pass target down to
14117 add_thread/set_running/set_executing.
14118 (linux_nat_target::attach): Pass target down to
14119 thread_change_ptid.
14120 (get_detach_signal): Pass target down to find_thread_ptid.
14121 Consider last target status's target.
14122 (linux_resume_one_lwp_throw, resume_lwp)
14123 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
14124 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
14125 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
14126 (linux_nat_target::async_wait_fd): New.
14127 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
14128 target down.
14129 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
14130 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
14131 * linux-thread-db.c (struct thread_db_info::process_target): New
14132 field.
14133 (add_thread_db_info): Save target.
14134 (get_thread_db_info): New process_stratum_target parameter. Also
14135 match target.
14136 (delete_thread_db_info): New process_stratum_target parameter.
14137 Also match target.
14138 (thread_from_lwp): Adjust to pass down target.
14139 (thread_db_notice_clone): Pass down target.
14140 (check_thread_db_callback): Pass down target.
14141 (try_thread_db_load_1): Always push the thread_db target.
14142 (try_thread_db_load, record_thread): Pass target down.
14143 (thread_db_target::detach): Pass target down. Always unpush the
14144 thread_db target.
14145 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
14146 target down. Always unpush the thread_db target.
14147 (find_new_threads_callback, thread_db_find_new_threads_2)
14148 (thread_db_target::update_thread_list): Pass target down.
14149 (thread_db_target::pid_to_str): Pass current inferior down.
14150 (thread_db_target::get_thread_local_address): Pass target down.
14151 (thread_db_target::resume, maintenance_check_libthread_db): Pass
14152 target down.
14153 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
14154 * procfs.c (procfs_target::procfs_init_inferior): Declare.
14155 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
14156 (procfs_init_inferior): Rename to ...
14157 (procfs_target::procfs_init_inferior): ... this and adjust.
14158 (procfs_target::create_inferior, procfs_notice_thread)
14159 (procfs_do_thread_registers): Adjust.
14160 * ppc-fbsd-tdep.c: Include "inferior.h".
14161 (ppcfbsd_get_thread_local_address): Pass down target.
14162 * proc-service.c (ps_xfer_memory): Switch current inferior and
14163 program space as well.
14164 (get_ps_regcache): Pass target down.
14165 * process-stratum-target.c
14166 (process_stratum_target::thread_address_space)
14167 (process_stratum_target::thread_architecture): Pass target down.
14168 * process-stratum-target.h
14169 (process_stratum_target::threads_executing): New field.
14170 (as_process_stratum_target): New.
14171 * ravenscar-thread.c
14172 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
14173 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
14174 down.
14175 * record-btrace.c (record_btrace_target::info_record): Adjust.
14176 (record_btrace_target::record_method)
14177 (record_btrace_target::record_is_replaying)
14178 (record_btrace_target::fetch_registers)
14179 (get_thread_current_frame_id, record_btrace_target::resume)
14180 (record_btrace_target::wait, record_btrace_target::stop): Pass
14181 target down.
14182 * record-full.c (record_full_wait_1): Switch to event thread.
14183 Pass target down.
14184 * regcache.c (regcache::regcache)
14185 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
14186 process_stratum_target parameter and handle it.
14187 (current_thread_target): New global.
14188 (get_thread_regcache): Add process_stratum_target parameter and
14189 handle it. Switch inferior before calling target method.
14190 (get_thread_regcache): Pass target down.
14191 (get_thread_regcache_for_ptid): Pass target down.
14192 (registers_changed_ptid): Add process_stratum_target parameter and
14193 handle it.
14194 (registers_changed_thread, registers_changed): Pass target down.
14195 (test_get_thread_arch_aspace_regcache): New.
14196 (current_regcache_test): Define a couple local test_target_ops
14197 instances and use them for testing.
14198 (readwrite_regcache): Pass process_stratum_target parameter.
14199 (cooked_read_test, cooked_write_test): Pass mock_target down.
14200 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
14201 (get_thread_arch_aspace_regcache): Add process_stratum_target
14202 parameter.
14203 (regcache::target): New method.
14204 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
14205 (regcache::registers_changed_ptid): Add process_stratum_target
14206 parameter.
14207 (regcache::m_target): New field.
14208 (registers_changed_ptid): Add process_stratum_target parameter.
14209 * remote.c (remote_state::supports_vCont_probed): New field.
14210 (remote_target::async_wait_fd): New method.
14211 (remote_unpush_and_throw): Add remote_target parameter.
14212 (get_current_remote_target): Adjust.
14213 (remote_target::remote_add_inferior): Push target.
14214 (remote_target::remote_add_thread)
14215 (remote_target::remote_notice_new_inferior)
14216 (get_remote_thread_info): Pass target down.
14217 (remote_target::update_thread_list): Skip threads of inferiors
14218 bound to other targets. (remote_target::close): Don't discard
14219 inferiors. (remote_target::add_current_inferior_and_thread)
14220 (remote_target::process_initial_stop_replies)
14221 (remote_target::start_remote)
14222 (remote_target::remote_serial_quit_handler): Pass down target.
14223 (remote_target::remote_unpush_target): New remote_target
14224 parameter. Unpush the target from all inferiors.
14225 (remote_target::remote_unpush_and_throw): New remote_target
14226 parameter. Pass it down.
14227 (remote_target::open_1): Check whether the current inferior has
14228 execution instead of checking whether any inferior is live. Pass
14229 target down.
14230 (remote_target::remote_detach_1): Pass down target. Use
14231 remote_unpush_target.
14232 (extended_remote_target::attach): Pass down target.
14233 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
14234 (remote_target::append_resumption): Pass down target.
14235 (remote_target::append_pending_thread_resumptions)
14236 (remote_target::remote_resume_with_hc, remote_target::resume)
14237 (remote_target::commit_resume): Pass down target.
14238 (remote_target::remote_stop_ns): Check supports_vCont_probed.
14239 (remote_target::interrupt_query)
14240 (remote_target::remove_new_fork_children)
14241 (remote_target::check_pending_events_prevent_wildcard_vcont)
14242 (remote_target::remote_parse_stop_reply)
14243 (remote_target::process_stop_reply): Pass down target.
14244 (first_remote_resumed_thread): New remote_target parameter. Pass
14245 it down.
14246 (remote_target::wait_as): Pass down target.
14247 (unpush_and_perror): New remote_target parameter. Pass it down.
14248 (remote_target::readchar, remote_target::remote_serial_write)
14249 (remote_target::getpkt_or_notif_sane_1)
14250 (remote_target::kill_new_fork_children, remote_target::kill): Pass
14251 down target.
14252 (remote_target::mourn_inferior): Pass down target. Use
14253 remote_unpush_target.
14254 (remote_target::core_of_thread)
14255 (remote_target::remote_btrace_maybe_reopen): Pass down target.
14256 (remote_target::pid_to_exec_file)
14257 (remote_target::thread_handle_to_thread_info): Pass down target.
14258 (remote_target::async_wait_fd): New.
14259 * riscv-fbsd-tdep.c: Include "inferior.h".
14260 (riscv_fbsd_get_thread_local_address): Pass down target.
14261 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
14262 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
14263 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
14264 Adjust.
14265 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
14266 * solib-svr4.c (enable_break): Pass down target.
14267 * spu-multiarch.c (parse_spufs_run): Pass down target.
14268 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
14269 * target-delegates.c: Regenerate.
14270 * target.c (g_target_stack): Delete.
14271 (current_top_target): Return the current inferior's top target.
14272 (target_has_execution_1): Refer to the passed-in inferior's top
14273 target.
14274 (target_supports_terminal_ours): Check whether the initial
14275 inferior was already created.
14276 (decref_target): New.
14277 (target_stack::push): Incref/decref the target.
14278 (push_target, push_target, unpush_target): Adjust.
14279 (target_stack::unpush): Defref target.
14280 (target_is_pushed): Return bool. Adjust to refer to the current
14281 inferior's target stack.
14282 (dispose_inferior): Delete, and inline parts ...
14283 (target_preopen): ... here. Only dispose of the current inferior.
14284 (target_detach): Hold strong target reference while detaching.
14285 Pass target down.
14286 (target_thread_name): Add assertion.
14287 (target_resume): Pass down target.
14288 (target_ops::beneath, find_target_at): Adjust to refer to the
14289 current inferior's target stack.
14290 (get_dummy_target): New.
14291 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
14292 has a thread running.
14293 (initialize_targets): Rename to ...
14294 (_initialize_target): ... this.
14295 * target.h: Include "gdbsupport/refcounted-object.h".
14296 (struct target_ops): Inherit refcounted_object.
14297 (target_ops::shortname, target_ops::longname): Make const.
14298 (target_ops::async_wait_fd): New method.
14299 (decref_target): Declare.
14300 (struct target_ops_ref_policy): New.
14301 (target_ops_ref): New typedef.
14302 (get_dummy_target): Declare function.
14303 (target_is_pushed): Return bool.
14304 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
14305 (all_matching_threads_iterator::all_matching_threads_iterator):
14306 Handle filter target.
14307 * thread-iter.h (struct all_matching_threads_iterator, struct
14308 all_matching_threads_range, class all_non_exited_threads_range):
14309 Filter by target too. Remove explicit.
14310 * thread.c (threads_executing): Delete.
14311 (inferior_thread): Pass down current inferior.
14312 (clear_thread_inferior_resources): Pass down thread pointer
14313 instead of ptid_t.
14314 (add_thread_silent, add_thread_with_info, add_thread): Add
14315 process_stratum_target parameter. Use it for thread and inferior
14316 searches.
14317 (is_current_thread): New.
14318 (thread_info::deletable): Use it.
14319 (find_thread_ptid, thread_count, in_thread_list)
14320 (thread_change_ptid, set_resumed, set_running): New
14321 process_stratum_target parameter. Pass it down.
14322 (set_executing): New process_stratum_target parameter. Pass it
14323 down. Adjust reference to 'threads_executing'.
14324 (threads_are_executing): New process_stratum_target parameter.
14325 Adjust reference to 'threads_executing'.
14326 (set_stop_requested, finish_thread_state): New
14327 process_stratum_target parameter. Pass it down.
14328 (switch_to_thread): Also match inferior.
14329 (switch_to_thread): New process_stratum_target parameter. Pass it
14330 down.
14331 (update_threads_executing): Reimplement.
14332 * top.c (quit_force): Pop targets from all inferior.
14333 (gdb_init): Don't call initialize_targets.
14334 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
14335 Declare.
14336 (windows_add_thread, windows_delete_thread): Adjust.
14337 (get_windows_debug_event): Rename to ...
14338 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
14339 * tracefile-tfile.c (tfile_target_open): Pass down target.
14340 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
14341 Forward declare.
14342 (switch_to_thread): Add process_stratum_target parameter.
14343 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
14344 parameter. Use it.
14345 (mi_on_resume): Pass target down.
14346 * nat/fork-inferior.c (startup_inferior): Add
14347 process_stratum_target parameter. Pass it down.
14348 * nat/fork-inferior.h (startup_inferior): Add
14349 process_stratum_target parameter.
14350 * python/py-threadevent.c (py_get_event_thread): Pass target down.
14351
75c6c844
PA
143522020-01-10 Pedro Alves <palves@redhat.com>
14353
14354 * remote.c (remote_target::start_remote): Don't set inferior_ptid
14355 directly. Instead find the first thread in the thread list and
14356 use switch_to_thread.
14357
78f2c40a
PA
143582020-01-10 Pedro Alves <palves@redhat.com>
14359
14360 * remote.c (remote_target::remote_add_inferior): Don't bind a
14361 process to the current inferior if the current inferior is already
14362 bound to a process.
14363
e7af6c70
TBA
143642020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14365 Pedro Alves <palves@redhat.com>
14366
14367 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
14368 If no process is specified, return null_ptid instead of
14369 inferior_ptid.
14370 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
14371 TARGET_WAITKIND_SIGNALLED with no pid.
14372
31ba933e
PA
143732020-01-10 Pedro Alves <palves@redhat.com>
14374
14375 * remote.c (first_remote_resumed_thread): New.
14376 (remote_target::wait_as): Use it as default event_ptid instead of
14377 inferior_ptid.
14378
735fc2ca
PA
143792020-01-10 Pedro Alves <palves@redhat.com>
14380
14381 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
14382
c17e02e1
PA
143832020-01-10 Pedro Alves <palves@redhat.com>
14384
14385 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
14386 not -1.
14387
ab1ddbcf
PA
143882020-01-10 Pedro Alves <palves@redhat.com>
14389
14390 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
14391 ptid to get_last_target_status.
14392 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
14393 ptid to get_last_target_status.
14394 * infcmd.c (continue_command): Don't pass a target_waitstatus to
14395 get_last_target_status.
14396 (info_program_command): Don't pass a target_waitstatus to
14397 get_last_target_status.
14398 * infrun.c (init_wait_for_inferior): Use
14399 nullify_last_target_wait_ptid.
14400 (get_last_target_status): Handle nullptr arguments.
14401 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
14402 (print_stop_event): Don't pass a ptid to get_last_target_status.
14403 (normal_stop): Don't pass a ptid to get_last_target_status.
14404 * infrun.h (get_last_target_status, set_last_target_status): Move
14405 comments here and update.
14406 (nullify_last_target_wait_ptid): Declare.
14407 * linux-fork.c (fork_load_infrun_state): Remove local extern
14408 declaration of nullify_last_target_wait_ptid.
14409 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
14410 to get_last_target_status.
14411
f3f8ece4
PA
144122020-01-10 Pedro Alves <palves@redhat.com>
14413
14414 * gdbthread.h (scoped_restore_current_thread)
14415 <dont_restore, restore, m_dont_restore>: Declare.
14416 * thread.c (thread_alive): Add assertion. Return bool.
14417 (switch_to_thread_if_alive): New.
14418 (prune_threads): Switch inferior/thread.
14419 (print_thread_info_1): Switch thread before calling target methods.
14420 (scoped_restore_current_thread::restore): New, factored out from
14421 ...
14422 (scoped_restore_current_thread::~scoped_restore_current_thread):
14423 ... this.
14424 (scoped_restore_current_thread::scoped_restore_current_thread):
14425 Add assertion.
14426 (thread_apply_all_command, thread_select): Use
14427 switch_to_thread_if_alive.
14428 * infrun.c (proceed, restart_threads, handle_signal_stop)
14429 (switch_back_to_stepped_thread): Switch current thread before
14430 calling target methods.
14431
db2d40f7
PA
144322020-01-10 Pedro Alves <palves@redhat.com>
14433
14434 * inferior.c (switch_to_inferior_no_thread): New function,
14435 factored out from ...
14436 (inferior_command): ... here.
14437 * inferior.h (switch_to_inferior_no_thread): Declare.
14438 * mi/mi-main.c (run_one_inferior): Use
14439 switch_to_inferior_no_thread.
14440
bd420a2d
PA
144412020-01-10 Pedro Alves <palves@redhat.com>
14442
14443 * infcmd.c (kill_command): Remove dead code.
14444
ddf5db90
PA
144452020-01-10 Pedro Alves <palves@redhat.com>
14446
14447 * remote.c (remote_target::mourn_inferior): No longer check
14448 whether the target is running.
14449
5018ce90
PA
144502020-01-10 Pedro Alves <palves@redhat.com>
14451
14452 * corelow.c (core_target::has_execution): Change parameter type to
14453 inferior pointer.
14454 * inferior.c (number_of_live_inferiors): Use
14455 inferior::has_execution instead of target_has_execution_1.
14456 * inferior.h (inferior::has_execution): New.
14457 * linux-thread-db.c (thread_db_target::update_thread_list): Use
14458 inferior::has_execution instead of target_has_execution_1.
14459 * process-stratum-target.c
14460 (process_stratum_target::has_execution): Change parameter type to
14461 inferior pointer. Check the inferior's PID instead of
14462 inferior_ptid.
14463 * process-stratum-target.h
14464 (process_stratum_target::has_execution): Change parameter type to
14465 inferior pointer.
14466 * record-full.c (record_full_core_target::has_execution): Change
14467 parameter type to inferior pointer.
14468 * target.c (target_has_execution_1): Change parameter type to
14469 inferior pointer.
14470 (target_has_execution_current): Adjust.
14471 * target.h (target_ops::has_execution): Change parameter type to
14472 inferior pointer.
14473 (target_has_execution_1): Change parameter type to inferior
14474 pointer. Change return type to bool.
14475 * tracefile.h (tracefile_target::has_execution): Change parameter
14476 type to inferior pointer.
14477
74375d18
PA
144782020-01-10 Pedro Alves <palves@redhat.com>
14479
14480 * exceptions.c (print_flush): Remove current_top_target() check.
14481
acdf84a6
PA
144822020-01-10 Pedro Alves <palves@redhat.com>
14483
14484 * remote.c (show_remote_exec_file): Show the current inferior's
14485 exec-file instead of the command variable's value.
14486
ec506636
PA
144872020-01-10 Pedro Alves <palves@redhat.com>
14488
14489 * record-full.c (record_full_resume_ptid): New global.
14490 (record_full_target::resume): Set it.
14491 (record_full_wait_1): Use record_full_resume_ptid instead of
14492 inferior_ptid.
14493
873657b9
PA
144942020-01-10 Pedro Alves <palves@redhat.com>
14495
14496 * gdbthread.h (scoped_restore_current_thread)
14497 <dont_restore, restore, m_dont_restore>: Declare.
14498 * thread.c (thread_alive): Add assertion. Return bool.
14499 (switch_to_thread_if_alive): New.
14500 (prune_threads): Switch inferior/thread.
14501 (print_thread_info_1): Switch thread before calling target methods.
14502 (scoped_restore_current_thread::restore): New, factored out from
14503 ...
14504 (scoped_restore_current_thread::~scoped_restore_current_thread):
14505 ... this.
14506 (scoped_restore_current_thread::scoped_restore_current_thread):
14507 Add assertion.
14508 (thread_apply_all_command, thread_select): Use
14509 switch_to_thread_if_alive.
14510
7f0ae84c
GB
145112020-01-10 George Barrett <bob@bob131.so>
14512
14513 * stap-probe.c (stap_modify_semaphore): Don't check for null
14514 semaphores.
14515 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
14516 for null semaphores.
14517
f5a7c406
AB
145182020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
14519
14520 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
14521 all source windows, and maintain horizontal scroll status while
14522 doing so.
14523
9ae6bf64
TT
145242020-01-09 Tom Tromey <tom@tromey.com>
14525
14526 PR tui/18932:
14527 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
14528 update_source_window, not print_source_lines.
14529
b2efe70c
AB
145302020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
14531
14532 * tui/tui.c (tui_enable): Register tui hooks after calling
14533 tui_display_main.
14534
5f23a082
CB
145352020-01-09 Christian Biesinger <cbiesinger@google.com>
14536
14537 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
14538
3061113b
SM
145392020-01-08 Simon Marchi <simon.marchi@efficios.com>
14540
14541 * thread.c (print_thread_info_1): Fix indentation.
14542
57d75002
CB
145432020-01-09 Christian Biesinger <cbiesinger@google.com>
14544
14545 * symtab.c (general_symbol_info::compute_and_set_names): Move the
14546 unique_xmalloc_ptr outside the if to always free the demangled name.
14547
6a053cb1
TT
145482020-01-08 Tom Tromey <tromey@adacore.com>
14549
14550 * xcoffread.c (enter_line_range, read_xcoff_symtab)
14551 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
14552 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
14553 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
14554 Remove.
14555 (section_offsets): New typedef.
14556 * symtab.c (fixup_section, get_msymbol_address): Update.
14557 * symmisc.c (dump_msymbols): Update.
14558 * symfile.h (relative_addr_info_to_section_offsets)
14559 (symfile_map_offsets_to_segments): Update.
14560 * symfile.c (build_section_addr_info_from_objfile)
14561 (init_objfile_sect_indices): Update.
14562 (struct place_section_arg): Change type of "offsets".
14563 (place_section): Update.
14564 (relative_addr_info_to_section_offsets): Change type of
14565 "section_offsets". Remove "num_sections" parameter.
14566 (default_symfile_offsets, syms_from_objfile_1)
14567 (set_objfile_default_section_offset): Update.
14568 (reread_symbols): No need to preserve section offsets by hand.
14569 (symfile_map_offsets_to_segments): Change type of "offsets".
14570 * stap-probe.c (relocate_address): Update.
14571 * stabsread.h (process_one_symbol): Update.
14572 * solib-target.c (struct lm_info_target) <offsets>: Change type.
14573 (solib_target_relocate_section_addresses): Update.
14574 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
14575 Update.
14576 * solib-frv.c (frv_relocate_main_executable): Update.
14577 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
14578 * solib-aix.c (solib_aix_get_section_offsets): Change return
14579 type.
14580 (solib_aix_solib_create_inferior_hook): Update.
14581 * remote.c (remote_target::get_offsets): Update.
14582 * psymtab.c (find_pc_sect_psymtab): Update.
14583 * psympriv.h (struct partial_symbol) <address, text_low,
14584 text_high>: Update.
14585 * objfiles.h (obj_section_offset): Update.
14586 (struct objfile) <section_offsets>: Change type.
14587 <num_sections>: Remove.
14588 (objfile_relocate): Update.
14589 * objfiles.c (entry_point_address_query): Update
14590 (relocate_one_symbol): Change type of "section_offsets".
14591 (objfile_relocate1, objfile_relocate1): Change type of
14592 "new_offsets".
14593 (objfile_rebase1): Update.
14594 * mipsread.c (mipscoff_symfile_read): Update.
14595 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
14596 parameter.
14597 * mdebugread.c (parse_symbol): Change type of "section_offsets".
14598 (parse_external, psymtab_to_symtab_1): Update.
14599 * machoread.c (macho_symfile_offsets): Update.
14600 * ia64-tdep.c (ia64_find_unwind_table): Update.
14601 * hppa-tdep.c (read_unwind_info): Update.
14602 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
14603 * dwarf2read.c (create_addrmap_from_index)
14604 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
14605 (process_psymtab_comp_unit_reader, add_partial_symbol)
14606 (add_partial_subprogram, process_full_comp_unit)
14607 (read_file_scope, read_func_scope, read_lexical_block_scope)
14608 (read_call_site_scope, dwarf2_rnglists_process)
14609 (dwarf2_ranges_process, dwarf2_ranges_read)
14610 (dwarf_decode_lines_1, var_decode_location, new_symbol)
14611 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
14612 Update.
14613 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
14614 Update.
14615 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
14616 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
14617 (process_one_symbol): Change type of "section_offsets".
14618 * ctfread.c (get_objfile_text_range): Update.
14619 * coffread.c (coff_symtab_read, enter_linenos)
14620 (process_coff_symbol): Update.
14621 * coff-pe-read.c (add_pe_forwarded_sym): Update.
14622 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
14623
456e800a
TT
146242020-01-08 Tom Tromey <tromey@adacore.com>
14625
14626 * dwarf2read.c (parse_macro_definition): Use std::string.
14627 (parse_macro_definition): Likewise.
14628
6dfa2fc2
TT
146292020-01-08 Tom Tromey <tromey@adacore.com>
14630
14631 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
14632 (ATTR_ALLOC_CHUNK): Remove.
14633
421d1616
TT
146342020-01-08 Tom Tromey <tromey@adacore.com>
14635
14636 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
14637
43816ebc
TT
146382020-01-08 Tom Tromey <tromey@adacore.com>
14639
14640 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
14641 (dwarf2_compute_name, open_dwo_file): Likewise.
14642 (process_enumeration_scope): Use std::vector.
14643 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
14644 (partial_die_info::fixup, dwarf2_start_subfile)
14645 (guess_full_die_structure_name, dwarf2_name): Likewise.
14646 (determine_prefix): Update.
14647 (guess_full_die_structure_name): Make return type const.
14648 (partial_die_full_name): Return unique_xmalloc_ptr.
14649 (DW_FIELD_ALLOC_CHUNK): Remove.
14650
4212d509
TT
146512020-01-07 Tom Tromey <tromey@adacore.com>
14652
14653 PR build/24937:
14654 * stap-probe.c (class stap_static_probe_ops): Add constructor.
14655
06a6207a
JT
146562020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
14657
14658 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
14659
153d79c4
AB
146602020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
14661
14662 * stack.c (print_frame_info): Move disassemble_next_line code
14663 inside source_print block.
14664
66182876
EZ
146652020-01-06 Eli Zaretskii <eliz@gnu.org>
14666
14667 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
14668 gdb/signals.h, as we are now using native signal symbols.
14669
cbfa8581
SV
146702020-01-06 Shahab Vahedi <shahab@synopsys.com>
14671
14672 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
14673 overflow by an early check of content vs threshold.
aac66a4c 14674 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
14675 Likewise.
14676
3f602821
EZ
146772020-01-06 Eli Zaretskii <eliz@gnu.org>
14678
14679 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
14680
a08c904d
JT
146812020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
14682
14683 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
14684 export table if no section contains it's RVA.
14685
89a65580
EZ
146862020-01-06 Eli Zaretskii <eliz@gnu.org>
14687
14688 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
14689
8b7fcda2
HD
146902020-01-06 Hannes Domani <ssbssa@yahoo.de>
14691
14692 * source.c (print_source_lines_base): Set last_line_listed.
14693
a61b4f69
SV
146942020-01-06 Shahab Vahedi <shahab@synopsys.com>
14695
14696 * tui/tui-disasm.c: Remove trailing spaces.
14697
559e7e50
EZ
146982020-01-06 Eli Zaretskii <eliz@gnu.org>
14699 Pedro Alves <palves@redhat.com>
14700
14701 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
14702 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
14703 (windows_gdb_signal_to_target): New function, uses the above
14704 enumeration to convert GDB internal signal codes to equivalent
14705 Windows codes.
14706 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
14707 * windows-nat.c: Include "gdb_wait.h".
14708 (get_windows_debug_event): Extract the fatal exception from the
14709 exit status and convert to the equivalent Posix signal number.
14710 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
14711 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
14712 * gdbsupport/gdb_wait.c: New file, implements
14713 windows_status_to_termsig.
14714 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
14715 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
14716
f2302a34
AB
147172020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
14718
14719 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
14720 show_layout.
14721
6a5206eb
LM
147222020-01-05 Luis Machado <luis.machado@linaro.org>
14723
14724 * aarch64-linux-nat.c
14725 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
14726 and bfd_mach_aarch64.
14727
6ec1d75e
PW
147282020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14729
14730 * ui-file.c (stdio_file::can_emit_style_escape)
14731 (tee_file::can_emit_style_escape): Ensure style is used also on
14732 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
14733 to gdb_stdout.
14734 * main.c (set_gdb_data_directory): Use file style to output the
14735 warning that the given pathname is not a directory.
14736 * top.c (show_history_filename, gdb_safe_append_history)
14737 (show_gdb_datadir): Use file style.
14738
44f81a76
HD
147392020-01-03 Hannes Domani <ssbssa@yahoo.de>
14740
14741 * solib-target.c (struct lm_info_target):
14742 Change offsets to be a unique_xmalloc_ptr.
14743 (solib_target_relocate_section_addresses): Update.
14744
25057eb0
HD
147452020-01-03 Hannes Domani <ssbssa@yahoo.de>
14746
14747 * windows-nat.c (windows_clear_solib): Free so_list linked list.
14748
6e2118f5
BE
147492020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
14750
14751 * MAINTAINERS (Write After Approval): Add myself.
14752
8133c7dc
LM
147532020-01-02 Luis Machado <luis.machado@linaro.org>
14754
14755 * proc-service.c (get_ps_regcache): Remove reference to obsolete
14756 Cell BE architecture.
14757 * target.h (struct target_ops) <thread_architecture>: Likewise.
14758
48189bec
HD
147592020-01-01 Hannes Domani <ssbssa@yahoo.de>
14760
14761 * Makefile.in: Use INSTALL_PROGRAM_ENV.
14762
ead1063b
HD
147632020-01-01 Hannes Domani <ssbssa@yahoo.de>
14764
14765 * MAINTAINERS (Write After Approval): Add myself.
14766
e5d78223
JB
147672020-01-01 Joel Brobecker <brobecker@adacore.com>
14768
14769 * gdbarch.sh: Update copyright year range of generated files.
14770
b811d2c2
JB
147712020-01-01 Joel Brobecker <brobecker@adacore.com>
14772
14773 Update copyright year range in all GDB files.
14774
5f4def5c
JB
147752020-01-01 Joel Brobecker <brobecker@adacore.com>
14776
14777 * copyright.py: Convert to Python 3.
14778
51fd4002
JB
147792020-01-01 Joel Brobecker <brobecker@adacore.com>
14780
14781 * copyright.py: Adapt after move of gnulib directory from gdb
14782 directory to toplevel directory.
14783
5fb651f2
JB
147842020-01-01 Joel Brobecker <brobecker@adacore.com>
14785
14786 * copyright.py (main): Exit if run from the wrong directory.
14787
5dd8bf88
JB
147882020-01-01 Joel Brobecker <brobecker@adacore.com>
14789
14790 * top.c (print_gdb_version): Change copyright year to 2020.
14791
9f71dacb 147922020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 14793
9f71dacb 14794 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 14795
9f71dacb 14796For older changes see ChangeLog-2019.
c906108c
SS
14797\f
14798Local Variables:
14799mode: change-log
14800left-margin: 8
14801fill-column: 74
14802version-control: never
57da7796 14803coding: utf-8
c906108c 14804End: