]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Add attribute::as_virtuality method
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
23dca5c3
TT
12020-09-29 Tom Tromey <tom@tromey.com>
2
3 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
4 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
5 method.
6 * dwarf2/attribute.c (attribute::as_virtuality): New method.
7
52c14d11
TT
82020-09-29 Tom Tromey <tom@tromey.com>
9
10 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
11 the attribute's form.
12
e8e5c158
TT
132020-09-29 Tom Tromey <tom@tromey.com>
14
15 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
16 (dwarf2_add_member_fn): Update.
17 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
18 * dwarf2/attribute.c (attribute::defaulted): New method, from
19 is_valid_DW_AT_defaulted.
20
d4df075e
TT
212020-09-29 Tom Tromey <tom@tromey.com>
22
23 * dwarf2/read.c (dw2_get_file_names_reader)
24 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
25 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
26 (dwarf2_symbol_mark_computed): Use as_unsigned.
27 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
28 method.
29 <form_is_section_offset>: Update comment.
30
bf23a268
TT
312020-09-29 Tom Tromey <tom@tromey.com>
32
33 * dwarf2/read.c (dwarf2_access_attribute): Rename from
34 dwarf2_default_access_attribute. Look up attribute.
35 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
36 Update.
37
7a5f294d
TT
382020-09-29 Tom Tromey <tom@tromey.com>
39
40 * dwarf2/read.c (skip_one_die): Update.
41 (read_full_die_1): Change how reprocessing is done.
42 (partial_die_info::read): Update.
43 (read_attribute_value): Remove need_reprocess parameter.
44 (read_attribute): Likewise.
45 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
46 New method.
47
36d378cf
TT
482020-09-29 Tom Tromey <tom@tromey.com>
49
50 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
51 (dwarf2_const_value_attr, dump_die_shallow)
52 (dwarf2_fetch_constant_bytes): Update.
53 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
54 comment.
55 <set_address>: New method.
56 (DW_ADDR): Remove.
57 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
58 (attribute::as_string, attribute::as_address): Add assert.
59
fe56917a
TT
602020-09-29 Tom Tromey <tom@tromey.com>
61
62 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
63 (read_attribute_reprocess, read_attribute_value): Update.
64 (read_attribute): Clear requires_reprocessing.
65 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
66 form_requires_reprocessing>: New methods.
67 <string_init>: Clear requires_reprocessing.
68 <set_unsigned_reprocess>: New method.
69 <name>: Shrink by one bit.
70 <requires_reprocessing>: New member.
71 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
72 method.
73
414ad644
TT
742020-09-29 Tom Tromey <tom@tromey.com>
75
76 * dwarf2/read.c (read_attribute_value): Update.
77 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
78 set_unsigned>: New methods.
79 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
80
1bc397c5
TT
812020-09-29 Tom Tromey <tom@tromey.com>
82
83 * dwarf2/read.c (get_alignment, read_array_order)
84 (read_attribute_value, dwarf2_const_value_attr)
85 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
86 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
87 New methods.
88 (DW_SND): Remove.
89
630ed6b9
TT
902020-09-29 Tom Tromey <tom@tromey.com>
91
92 * dwarf2/read.c (read_attribute_value, lookup_die_type)
93 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
94 Update.
95 * dwarf2/attribute.h (struct attribute) <as_signature,
96 set_signature>: New methods.
97 (DW_SIGNATURE): Remove.
98
9d2246fc
TT
992020-09-29 Tom Tromey <tom@tromey.com>
100
101 * dwarf2/read.c (read_call_site_scope)
102 (handle_data_member_location, dwarf2_add_member_fn)
103 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
104 (partial_die_info::read, read_attribute_value)
105 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
106 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
107 (dwarf2_symbol_mark_computed): Update.
108 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
109 methods.
110 (DW_BLOCK): Remove.
111 * dwarf2/attribute.c (attribute::form_is_block): Add
112 DW_FORM_data16.
113
c6481205
TT
1142020-09-29 Tom Tromey <tom@tromey.com>
115
116 * dwarf2/read.c (read_cutu_die_from_dwo)
117 (read_attribute_reprocess, read_attribute_value, read_attribute)
118 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
119 (dwarf2_fetch_constant_bytes): Update.
120 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
121 <set_string_noncanonical, set_string_canonical>: New methods.
122 <string_is_canonical>: Update comment.
123 <canonical_string_p>: Add assert.
124 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
125 * dwarf2/attribute.c (attribute::form_is_string): New method.
126 (attribute::string): Use it.
127
3b64bf15
TT
1282020-09-29 Tom Tromey <tom@tromey.com>
129
130 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
131 (dump_die_shallow): Use canonical_string_p.
132 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
133 method.
134
2c830f54
TT
1352020-09-29 Tom Tromey <tom@tromey.com>
136
137 * dwarf2/read.c (partial_die_info::read)
138 (dwarf2_const_value_attr, anonymous_struct_prefix, )
139 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
140 attribute::as_string.
141
6c412691
TT
1422020-09-29 Tom Tromey <tom@tromey.com>
143
144 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
145 DW_ADDR.
146 (attribute::string): Don't use DW_STRING.
147 (attribute::get_ref_die_offset): Don't use DW_UNSND.
148 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
149
95f982e5
TT
1502020-09-29 Tom Tromey <tom@tromey.com>
151
152 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
153 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
154 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
155 * dwarf2/attribute.h (struct attribute): Rename methods.
156 * dwarf2/attribute.c (attribute::as_address): Rename from
157 value_as_address.
158 (attribute::as_string): Rename from value_as_string.
159
f800b00e
TT
1602020-09-29 Tom Tromey <tom@tromey.com>
161
162 * dwarf2/read.c (partial_die_info::read) <case
163 DW_AT_linkage_name>: Use value_as_string.
164 (dwarf2_string_attr): Use value_as_string.
165 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
166 method.
167 * dwarf2/attribute.c (attribute::value_as_string): New method.
168
de38d64a
PA
1692020-09-29 Pedro Alves <pedro@palves.net>
170
171 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
172 defined before using '#pragma GCC diagnostic' instead of checking
173 __clang__.
174
9aed480c
TT
1752020-09-28 Tom Tromey <tom@tromey.com>
176
177 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
178 (handle_signal_stop): Update.
179 * procfs.c (procfs_target::insert_watchpoint): Update.
180 * target.h (target_have_steppable_watchpoint): Now a function.
181
8a3ecb79
TT
1822020-09-28 Tom Tromey <tom@tromey.com>
183
184 * infrun.c (set_schedlock_func): Update.
185 * target.h (target_can_lock_scheduler): Now a function.
186
55f6301a
TT
1872020-09-28 Tom Tromey <tom@tromey.com>
188
189 * inferior.h (class inferior) <has_execution>: Update.
190 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
191 * valops.c (find_function_in_inferior)
192 (value_allocate_space_in_inferior): Update.
193 * top.c (kill_or_detach): Update.
194 * target.c (target_preopen, set_target_permissions): Update.
195 (target_has_execution_current): Remove.
196 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
197 Update.
198 * solib.c (update_solib_list, reload_shared_libraries): Update.
199 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
200 * solib-dsbt.c (enable_break): Update.
201 * score-tdep.c (score7_fetch_inst): Update.
202 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
203 Update.
204 * remote.c (remote_target::start_remote)
205 (remote_target::remote_check_symbols, remote_target::open_1)
206 (remote_target::remote_detach_1, remote_target::verify_memory)
207 (remote_target::xfer_partial, remote_target::read_description)
208 (remote_target::get_min_fast_tracepoint_insn_len): Update.
209 * record-full.c (record_full_open_1): Update.
210 * record-btrace.c (record_btrace_target_open): Update.
211 * objc-lang.c (lookup_objc_class, lookup_child_selector)
212 (value_nsstring): Update.
213 * linux-thread-db.c (add_thread_db_info)
214 (thread_db_find_new_threads_silently, check_thread_db_callback)
215 (try_thread_db_load_1, record_thread): Update.
216 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
217 Update.
218 * linux-fork.c (checkpoint_command): Update.
219 * infrun.c (set_non_stop, set_observer_mode)
220 (check_multi_target_resumption, for_each_just_stopped_thread)
221 (maybe_remove_breakpoints, normal_stop)
222 (class infcall_suspend_state): Update.
223 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
224 (info_program_command, attach_command): Update.
225 * infcall.c (call_function_by_hand_dummy): Update.
226 * inf-loop.c (inferior_event_handler): Update.
227 * gcore.c (gcore_command, derive_heap_segment): Update.
228 * exec.c (exec_file_command): Update.
229 * eval.c (evaluate_subexp): Update.
230 * compile/compile.c (compile_to_object): Update.
231 * cli/cli-dump.c (restore_command): Update.
232 * breakpoint.c (update_watchpoint)
233 (update_inserted_breakpoint_locations)
234 (insert_breakpoint_locations, get_bpstat_thread): Update.
235 * target.h (target_has_execution): Remove macro.
236 (target_has_execution_current): Don't declare.
237 (target_has_execution): Rename from target_has_execution_1. Add
238 argument default.
239
05374cfd
TT
2402020-09-28 Tom Tromey <tom@tromey.com>
241
242 * mi/mi-main.c (exec_reverse_continue)
243 (mi_cmd_list_target_features): Update.
244 * infrun.c (set_exec_direction_func): Update.
245 * target.c (default_execution_direction): Update.
246 * reverse.c (exec_reverse_once): Update.
247 * target.h (target_can_execute_reverse): Now a function.
248
9dccd06e
TT
2492020-09-28 Tom Tromey <tom@tromey.com>
250
251 * tui/tui-regs.c (tui_get_register)
252 (tui_data_window::show_registers): Update.
253 * thread.c (scoped_restore_current_thread::restore)
254 (scoped_restore_current_thread::scoped_restore_current_thread):
255 Update.
256 * regcache-dump.c (regcache_print): Update.
257 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
258 Update.
259 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
260 * mep-tdep.c (current_me_module, current_options): Update.
261 * linux-thread-db.c (thread_db_load): Update.
262 * infcmd.c (registers_info, info_vector_command)
263 (info_float_command): Update.
264 * ia64-tdep.c (ia64_frame_prev_register)
265 (ia64_sigtramp_frame_prev_register): Update.
266 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
267 * gcore.c (derive_stack_segment): Update.
268 * frame.c (get_current_frame, has_stack_frames): Update.
269 * findvar.c (language_defn::read_var_value): Update.
270 * arm-tdep.c (arm_pc_is_thumb): Update.
271 * target.c (target_has_registers): Rename from
272 target_has_registers_1.
273 * target.h (target_has_registers): Remove macro.
274 (target_has_registers): Rename from target_has_registers_1.
275
841de120
TT
2762020-09-28 Tom Tromey <tom@tromey.com>
277
278 * windows-tdep.c (tlb_make_value): Update.
279 * tui/tui-regs.c (tui_data_window::show_registers): Update.
280 * thread.c (scoped_restore_current_thread::restore)
281 (scoped_restore_current_thread::scoped_restore_current_thread)
282 (thread_command): Update.
283 * stack.c (backtrace_command_1, frame_apply_level_command)
284 (frame_apply_all_command, frame_apply_command): Update.
285 * infrun.c (siginfo_make_value, restore_infcall_control_state):
286 Update.
287 * gcore.c (derive_stack_segment): Update.
288 * frame.c (get_current_frame, has_stack_frames): Update.
289 * auxv.c (info_auxv_command): Update.
290 * ada-tasks.c (ada_build_task_list): Update.
291 * target.c (target_has_stack): Rename from target_has_stack_1.
292 * target.h (target_has_stack): Remove macro.
293 (target_has_stack): Rename from target_has_stack_1.
294
a739972c
TT
2952020-09-28 Tom Tromey <tom@tromey.com>
296
297 * target.c (target_has_memory): Rename from target_has_memory_1.
298 * tui/tui-regs.c (tui_data_window::show_registers): Update.
299 * thread.c (scoped_restore_current_thread::restore)
300 (scoped_restore_current_thread::scoped_restore_current_thread):
301 Update.
302 * frame.c (get_current_frame, has_stack_frames): Update.
303 * target.h (target_has_memory): Remove macro.
304 (target_has_memory): Rename from target_has_memory_1.
305
5b8a4776
TT
3062020-09-28 Tom Tromey <tom@tromey.com>
307
308 * target.c (target_has_all_memory_1): Remove.
309 * target.h (target_has_all_memory): Remove define.
310 (target_has_all_memory_1): Don't declare.
311
bd356ec6
SM
3122020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
313
314 * ser-base.c: Adjust comments formatting.
315
2c72d5e5
TT
3162020-09-27 Tom Tromey <tom@tromey.com>
317
318 PR tui/25342:
319 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
320
35a98237
TT
3212020-09-27 Tom Tromey <tom@tromey.com>
322
323 PR tui/25342:
324 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
325
9e820dec
TT
3262020-09-27 Tom Tromey <tom@tromey.com>
327
328 * unittests/tui-selftests.c: Update.
329 * tui/tui-winsource.h (struct tui_source_window_base)
330 <extra_margin, show_line_number, refresh_pad>: New methods.
331 <m_max_length, m_pad>: New members.
332 (tui_copy_source_line): Update.
333 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
334 first_col, line_width, ndigits parameters. Add length.
335 (tui_source_window_base::show_source_line): Write to pad. Line
336 number now 0-based.
337 (tui_source_window_base::refresh_pad): New method.
338 (tui_source_window_base::show_source_content): Write to pad. Call
339 refresh_pad.
340 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
341 not refill.
342 (tui_source_window_base::update_exec_info): Call
343 show_line_number.
344 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
345 method.
346 <m_digits>: New member.
347 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
348 and m_max_length.
349 (tui_source_window::show_line_number): New method.
350 * tui/tui-io.h (tui_puts): Fix comment.
351 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
352 m_max_length.
353
c15c15c8
TT
3542020-09-27 Tom Tromey <tom@tromey.com>
355
356 * tui/tui-winsource.c
357 (tui_source_window_base::set_is_exec_point_at): Don't call
358 show_source_line.
359
149830c1
TT
3602020-09-27 Tom Tromey <tom@tromey.com>
361
362 * python/py-tui.c (class tui_py_window) <refresh_window>: New
363 method.
364 <erase>: Update.
365 <cursor_x, cursor_y>: Remove.
366 <m_inner_window>: New member.
367 (tui_py_window::rerender): Create inner window.
368 (tui_py_window::output): Write to inner window.
369
8f9929bb
GR
3702020-09-26 Gareth Rees <grees@undo.io> (tiny change)
371
372 PR python/26586
373 * cli/cli-script.c (execute_control_commands): don't set
374 instream to nullptr here as this breaks the from_tty argument
375 to gdb.execute in Python.
376 (execute_user_command): set instream to nullptr here instead.
377
956bdb59
SM
3782020-09-25 Simon Marchi <simon.marchi@efficios.com>
379
380 * infrun.h (infrun_debug_printf): Fix formatting.
381 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
382
3b93626b
SJ
3832020-09-25 Saagar Jha <saagar@saagarjha.com>
384
385 * compile/compile-object-load.h (struct munmap_list): Add
386 explicitly-defined move constructor.
387
b551a89f
TT
3882020-09-24 Tom Tromey <tromey@adacore.com>
389
390 PR tui/26638:
391 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
392 method.
393 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
394 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
395 (tui_prev_win): Rewrite.
396
99bb393f
HD
3972020-09-23 Hannes Domani <ssbssa@yahoo.de>
398
399 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
400 in WOW64 processes as SIGINT.
401 * nat/windows-nat.h: Make wow64_process a shared variable.
402 * windows-nat.c: Remove static wow64_process variable.
403
20a5fcbd
TT
4042020-09-23 Tom Tromey <tom@tromey.com>
405
406 PR symtab/25470:
407 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
408 offset and bit size.
409 * printcmd.c (print_scalar_formatted): Handle zero-length
410 integer.
411 (print_scalar_formatted): Use bit_size_differs_p.
412 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
413 constant.
414 (union type_specific): <int_stuff>: New member.
415 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
416 methods.
417 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
418 TYPE_SPECIFIC_FIELD.
419 (recursive_dump_type, copy_type_recursive): Update.
420 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
421 DW_AT_data_bit_offset.
422
bac51ab7
TT
4232020-09-23 Tom Tromey <tom@tromey.com>
424
425 * utils.h (class gdb_argv): Add move operators.
426 <append>: New methods.
427 * compile/compile.c (build_argc_argv): Remove.
428 (compile_args_argc): Remove.
429 (compile_args_argv): Change type.
430 (set_compile_args): Simplify.
431 (append_args): Remove.
432 (filter_args): Remove argcp parameter.
433 (get_args): Return gdb_argv. Simplify.
434 (compile_to_object): Update.
435
92677124
TT
4362020-09-23 Tom Tromey <tom@tromey.com>
437
438 * compile/compile-object-run.c (do_module_cleanup)
439 <~do_module_cleanup> :Remove.
440 (do_module_cleanup): Update.
441 * compile/compile-object-load.h (struct munmap_list): Add move
442 assignment operator.
443 <source_file>: Now a std::string.
444 <munmap_list>: Rename. No longer a pointer.
445 * compile/compile-object-load.c (struct setup_sections_data): Add
446 constructor.
447 <setup_one_section>: Declare.
448 <munmap_list>: Move earlier.
449 <m_bfd>: New member.
450 <m_last_size, m_last_section_first, m_last_prot,
451 m_last_max_alignment>: Rename, add initializers where needed.
452 (setup_sections_data::setup_one_section): Rename from
453 setup_sections. Update.
454 (compile_object_load): Update. Don't use bfd_map_over_sections.
455
e616f60a
TT
4562020-09-23 Tom Tromey <tom@tromey.com>
457
458 * compile/compile-object-run.c (struct do_module_cleanup): Add
459 parameters to constructor. Update destructor.
460 <source_file, scope, scope_data, out_value_type, out_value_addr,
461 munmap_list_head, objfile_name_string>: Remove.
462 <module>: New member.
463 (do_module_cleanup): Update.
464 (compile_object_run): Update.
465
e947a848
TT
4662020-09-23 Tom Tromey <tom@tromey.com>
467
468 * compile/compile.c (eval_compile_command): Update.
469 * compile/compile-object-run.h (compile_object_run): Take a
470 compile_module_up.
471 * compile/compile-object-run.c (compile_object_run): Take a
472 compile_module_up.
473 * compile/compile-object-load.h (struct compile_module): Add
474 constructor, destructor.
475 (compile_module_up): New typedef.
476 (compile_object_load): Return compile_object_up.
477 * compile/compile-object-load.c (compile_object_load): Return
478 compile_module_up.
479
0dbf6ee6
TT
4802020-09-23 Tom Tromey <tom@tromey.com>
481
482 * compile/compile-object-run.c (struct do_module_cleanup): Add
483 constructor, destructor.
484 <objfile_name_string>: Don't use struct hack.
485 (do_module_cleanup): Use delete.
486 (compile_object_run): Use new.
487
ebe824f5
TT
4882020-09-23 Tom Tromey <tom@tromey.com>
489
490 * compile/compile-cplus-types.c
491 (compile_cplus_convert_struct_or_union): Use std::vector.
492 (compile_cplus_convert_func): Likewise.
493 * compile/compile-c-types.c (convert_func): Use std::vector.
494
5dd918d9
TT
4952020-09-21 Tom Tromey <tromey@adacore.com>
496
497 * sparc-tdep.c (sparc32_skip_prologue): Use
498 skip_prologue_using_sal.
499
5486c517
TT
5002020-09-19 Tom Tromey <tom@tromey.com>
501
502 * symfile.c (add_section_size_callback): Remove.
503 (load_one_section): Rename from load_section_callback. Change
504 parameters.
505 (generic_load): Use foreach.
506
8a6bb1d1
TT
5072020-09-19 Tom Tromey <tom@tromey.com>
508
509 * exec.c (add_to_section_table): Remove.
510 (build_section_table): Use foreach.
511
08f93a1a
TT
5122020-09-19 Tom Tromey <tom@tromey.com>
513
514 * elfread.c (elf_locate_sections): Change parameters.
515 (elf_symfile_read): Use foreach.
516
03cd72b8
TT
5172020-09-19 Tom Tromey <tom@tromey.com>
518
519 * cli/cli-dump.c (struct callback_data): Remove.
520 (restore_one_section): Rename from restore_section_callback.
521 Change parameters.
522 (restore_binary_file): Change parameters.
523 (restore_command): Use foreach.
524
f4f2b85f
TT
5252020-09-19 Tom Tromey <tom@tromey.com>
526
527 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
528 (gcore_copy_callback): Likewise.
529 (gcore_memory_sections): Use foreach.
530
b35c1d1c
TT
5312020-09-19 Tom Tromey <tom@tromey.com>
532
533 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
534 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
535 parameters.
536 (generic_elf_osabi_sniffer): Use foreach.
537 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
538 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
539
5bb6e9dd
TT
5402020-09-19 Tom Tromey <tom@tromey.com>
541
542 * dwarf2/read.c (locate_dwz_sections): Change parameters.
543 (dwarf2_get_dwz_file): Use foreach.
544 (dwarf2_locate_dwo_sections): Change parameters.
545 (open_and_init_dwo_file): Use foreach.
546 (dwarf2_locate_common_dwp_sections): Change parameters.
547 (open_and_init_dwp_file): Use foreach.
548
ad7277da
TT
5492020-09-19 Tom Tromey <tom@tromey.com>
550
551 * symfile.h: (find_lowest_section): Don't declare.
552 * symfile.c (find_lowest_section): Now static. Change
553 parameters.
554 (struct place_section_arg): Remove.
555 (place_section): Change parameters.
556 (addr_info_make_relative): Use foreach.
557 (symfile_dummy_outputs): Remove.
558 (default_symfile_relocate): Use foreach.
559
cb814f2e
TT
5602020-09-19 Tom Tromey <tom@tromey.com>
561
562 * objfiles.c (add_to_objfile_sections): Rename from
563 add_to_objfile_sections_full.
564 (add_to_objfile_sections): Remove.
565 (build_objfile_section_table): Use foreach.
566
3cabfd26
TT
5672020-09-19 Tom Tromey <tom@tromey.com>
568
569 * stap-probe.c (get_stap_base_address_1): Remove.
570 (get_stap_base_address): Use foreach.
571
1ce51eb5
TT
5722020-09-19 Tom Tromey <tom@tromey.com>
573
574 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
575 parameters.
576 (gdb_bfd_close_or_warn): Use foreach.
577
a190fabb
TT
5782020-09-19 Tom Tromey <tom@tromey.com>
579
580 * corelow.c (add_to_thread_list): Change parameters.
581 (core_target_open): Use foreach.
582
cafb0d81
TT
5832020-09-19 Tom Tromey <tom@tromey.com>
584
585 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
586 existing function.
587
c8d5abea
AB
5882020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
589
590 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
591 for arrays.
592
6d816919
AB
5932020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
594
595 * eval.c: Remove 'f-lang.h' include.
596 (value_f90_subarray): Moved to f-lang.c.
597 (eval_call): Renamed to...
598 (evaluate_subexp_do_call): ...this, is no longer static, header
599 comment moved into header file.
600 (evaluate_funcall): Update call to eval_call.
601 (skip_undetermined_arglist): Moved to f-lang.c.
602 (fortran_value_subarray): Likewise.
603 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
604 moved to evaluate_subexp_f.
605 (calc_f77_array_dims): Moved to f-lang.c
606 * expprint.c (print_subexp_funcall): New function.
607 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
608 moved to print_subexp_f, OP_FUNCALL uses new function.
609 (dump_subexp_body_funcall): New function.
610 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
611 moved to dump_subexp_f, OP_FUNCALL uses new function.
612 * expression.h (evaluate_subexp_do_call): Declare.
613 * f-lang.c (value_f90_subarray): Moved from eval.c.
614 (skip_undetermined_arglist): Likewise.
615 (calc_f77_array_dims): Likewise.
616 (fortran_value_subarray): Likewise.
617 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
618 (operator_length_f): Likewise.
619 (print_subexp_f): Likewise.
620 (dump_subexp_body_f): Likewise.
621 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
622 declaration of this operation to here.
623 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
624 support moved to operator_length_f.
625 * parser-defs.h (dump_subexp_body_funcall): Declare.
626 (print_subexp_funcall): Declare.
627 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
628 fortran-operator.def.
629
8c37706a
AB
6302020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
631
632 * eval.c (fortran_value_subarray): New function, content is taken
633 from...
634 (evaluate_subexp_standard): ...here, in two places. Now arrays
635 and strings both call the new function.
636 (calc_f77_array_dims): Add header comment, handle strings.
637
14f9473c
VC
6382020-09-18 Victor Collod <vcollod@nvidia.com>
639
640 PR gdb/26635
641 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
642 (i386_analyze_prologue): Call i386_skip_endbr.
643
b60cea74
TT
6442020-09-18 Tom Tromey <tromey@adacore.com>
645
646 * windows-nat.c (struct windows_nat_target) <wait>: Update.
647 (windows_nat_target::wait): Update.
648 * target/wait.h (enum target_wait_flag): New. Use
649 DEF_ENUM_FLAGS_TYPE.
650 * target/target.h (target_wait): Change type of options.
651 * target.h (target_options_to_string, default_target_wait):
652 Update.
653 (struct target_ops) <wait>: Change type of options.
654 * target.c (target_wait, default_target_wait, do_option): Change
655 type of "options".
656 (target_options_to_string): Likewise.
657 * target-delegates.c: Rebuild.
658 * target-debug.h (target_debug_print_target_wait_flags): Rename
659 from target_debug_print_options.
660 * sol-thread.c (class sol_thread_target) <wait>: Update.
661 (sol_thread_target::wait): Update.
662 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
663 (rs6000_nat_target::wait): Update.
664 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
665 Update.
666 (remote_target::wait_ns, remote_target::wait_as): Change type of
667 "options".
668 (remote_target::wait): Update.
669 * remote-sim.c (struct gdbsim_target) <wait>: Update.
670 (gdbsim_target::wait): Update.
671 * record-full.c (class record_full_base_target) <wait>: Update.
672 (record_full_wait_1): Change type of "options".
673 (record_full_base_target::wait): Update.
674 * record-btrace.c (class record_btrace_target) <wait>: Update.
675 (record_btrace_target::wait): Update.
676 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
677 Update.
678 (ravenscar_thread_target::wait): Update.
679 * procfs.c (class procfs_target) <wait>: Update.
680 (procfs_target::wait): Update.
681 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
682 * obsd-nat.c (obsd_nat_target::wait): Update.
683 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
684 (nto_procfs_target::wait): Update.
685 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
686 * nbsd-nat.c (nbsd_wait): Change type of "options".
687 (nbsd_nat_target::wait): Update.
688 * linux-thread-db.c (class thread_db_target) <wait>: Update.
689 (thread_db_target::wait): Update.
690 * linux-nat.h (class linux_nat_target) <wait>: Update.
691 * linux-nat.c (linux_nat_target::wait): Update.
692 (linux_nat_wait_1): Update.
693 * infrun.c (do_target_wait_1, do_target_wait): Change type of
694 "options".
695 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
696 * inf-ptrace.c (inf_ptrace_target::wait): Update.
697 * go32-nat.c (struct go32_nat_target) <wait>: Update.
698 (go32_nat_target::wait): Update.
699 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
700 * gnu-nat.c (gnu_nat_target::wait): Update.
701 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
702 * fbsd-nat.c (fbsd_nat_target::wait): Update.
703 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
704 * darwin-nat.c (darwin_nat_target::wait): Update.
705 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
706 (bsd_uthread_target::wait): Update.
707 * aix-thread.c (class aix_thread_target) <wait>: Update.
708 (aix_thread_target::wait): Update.
709
0295dde6
AB
7102020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
711
712 * compile/compile-object-run.c (create_copied_type_recursive): New
713 function.
714 (compile_object_run): Use new function.
715
d3483b43
JT
7162020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
717
718 * NEWS: Mention x86_64 Cygwin core file support.
719
e7d612ad
JT
7202020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
721
722 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
723 (core_process_module_section): Handle NOTE_INFO_MODULE64.
724
aff9d387
JT
7252020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
726
62a5151b
JT
727 * windows-tdep.h: Add prototypes.
728 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
729 (i386_windows_core_pid_to_str): Move and rename ...
730 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
731 (windows_core_pid_to_str): ... and here.
732 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
733
7342020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
735 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
736 (amd64_windows_init_abi_common): ... and register.
737
7d155da3
JT
7382020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
739
740 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
741 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
742
e8ef12b9
PA
7432020-09-18 Pedro Alves <pedro@palves.net>
744
745 PR gdb/26631
746 * thread.c (thread_find_command): Switch inferior before calling
747 target methods.
748
c1e1314d
TT
7492020-09-17 Tom Tromey <tromey@adacore.com>
750
751 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
752 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
753 (tdesc_arch_data_up): New typedef.
754 (tdesc_use_registers, tdesc_data_alloc): Update.
755 (tdesc_data_cleanup): Don't declare.
756 * target-descriptions.c (tdesc_data_alloc): Return a
757 tdesc_arch_data_up.
758 (tdesc_arch_data_deleter::operator()): Rename from
759 tdesc_data_cleanup. Change argument type.
760 (tdesc_use_registers): Change early_data to an rvalue reference.
761 (tdesc_use_registers): Don't use delete.
762 * sparc-tdep.c (sparc32_gdbarch_init): Update.
763 * s390-tdep.c (s390_gdbarch_init): Update.
764 * rx-tdep.c (rx_gdbarch_init): Update.
765 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
766 * riscv-tdep.c (riscv_gdbarch_init): Update.
767 * or1k-tdep.c (or1k_gdbarch_init): Update.
768 * nios2-tdep.c (nios2_gdbarch_init): Update.
769 * nds32-tdep.c (nds32_gdbarch_init): Update.
770 * mips-tdep.c (mips_gdbarch_init): Update.
771 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
772 * m68k-tdep.c (m68k_gdbarch_init): Update.
773 * i386-tdep.c (i386_gdbarch_init): Update.
774 * arm-tdep.c (arm_gdbarch_init): Update.
775 * arc-tdep.c (arc_tdesc_init): Update.
776 (arc_gdbarch_init): Update.
777 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
778
0363df3d
HD
7792020-09-17 Hannes Domani <ssbssa@yahoo.de>
780
781 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
782 for WOW64 processes.
783
280a9412
TT
7842020-09-17 Tom Tromey <tom@tromey.com>
785
786 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
787
6108fd18
TT
7882020-09-17 Tom Tromey <tom@tromey.com>
789
790 * value.c (preserve_values): Update.
791 * python/py-type.c (save_objfile_types): Update.
792 * guile/scm-type.c (save_objfile_types): Update.
793 * gdbtypes.h (create_copied_types_hash): Return htab_up.
794 * gdbtypes.c (create_copied_types_hash): Return htab_up.
795 * compile/compile-object-run.c (compile_object_run): Update.
796
fa9b1164
TT
7972020-09-17 Tom Tromey <tom@tromey.com>
798
799 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
800 Remove.
801 <m_table>: Now htab_up.
802 * typeprint.c (typedef_hash_table::recursively_update)
803 (typedef_hash_table::add_template_parameters)
804 (typedef_hash_table::typedef_hash_table): Update.
805 (typedef_hash_table::~typedef_hash_table): Remove.
806 (typedef_hash_table::typedef_hash_table)
807 (typedef_hash_table::find_global_typedef)
808 (typedef_hash_table::find_typedef): Update.
809
eb53f105
TT
8102020-09-17 Tom Tromey <tom@tromey.com>
811
812 * target-descriptions.c (tdesc_use_registers): Use htab_up.
813
7a8a5d47
TT
8142020-09-17 Tom Tromey <tom@tromey.com>
815
816 * linespec.c (class decode_compound_collector)
817 <~decode_compound_collector>: Remove.
818 <m_unique_syms>: Now htab_up.
819 (decode_compound_collector::operator ()): Update.
820 (class symtab_collector) <~symtab_collector>: Remove.
821 <m_symtab_table>: Now htab_up.
822 (symtab_collector::operator ()): Update.
823
99032cfc
TT
8242020-09-17 Tom Tromey <tom@tromey.com>
825
826 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
827 (filename_seen_cache::clear): Update.
828 (~filename_seen_cache): Remove.
829 (filename_seen_cache::seen): Update.
830 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
831 htab_up.
832 <~filename_seen_cache>: Remove.
833 <traverse>: Update.
834
32580f6d
TT
8352020-09-17 Tom Tromey <tom@tromey.com>
836
837 * completer.c (completion_tracker::discard_completions)
838 (completion_tracker::~completion_tracker)
839 (completion_tracker::maybe_add_completion)
840 (completion_tracker::remove_completion)
841 (completion_tracker::recompute_lowest_common_denominator)
842 (completion_tracker::build_completion_result): Update.
843 * completer.h (class completion_tracker) <have_completions>:
844 Update.
845 <m_entries_hash>: Now htab_up.
846
c1fb9836
TT
8472020-09-17 Tom Tromey <tom@tromey.com>
848
849 * breakpoint.c (ambiguous_names_p): Use htab_up.
850
88f07206
TT
8512020-09-17 Tom Tromey <tom@tromey.com>
852
853 * auto-load.c (struct auto_load_pspace_info)
854 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
855 <loaded_script_files, loaded_script_texts>: Change type to
856 htab_up.
857 (~auto_load_pspace_info) Remove.
858 (init_loaded_scripts_info, maybe_add_script_file)
859 (maybe_add_script_text, auto_load_info_scripts): Update.
860
9519b2ee
TT
8612020-09-17 Tom Tromey <tromey@adacore.com>
862
863 * c-exp.y (name_obstack): Now static.
864
d2cd4113
CC
8652020-09-17 Chungyi Chi <demonic@csie.io>
866
867 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
868
b650a282
SM
8692020-09-16 Simon Marchi <simon.marchi@efficios.com>
870
871 * breakpoint.h (init_catchpoint): Change int parameter to bool.
872 (add_solib_catchpoint): Likewise.
873 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
874 to bool.
875 (add_solib_catchpoint): Change int parameter/variable to bool.
876 (catch_load_or_unload): Likewise.
877 (init_catchpoint): Likewise.
878 (create_fork_vfork_event_catchpoint): Likewise.
879 (catch_fork_command_1): Likewise.
880 (catch_exec_command_1): Likewise.
881
4d0bcfcf
SM
8822020-09-16 Simon Marchi <simon.marchi@efficios.com>
883
884 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
885 Change instance_flags to m_instance_flags.
886
fe830662
TT
8872020-09-16 Tom Tromey <tromey@adacore.com>
888
889 PR gdb/26598:
890 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
891
fe5ddfc3
JB
8922020-09-16 John Baldwin <jhb@FreeBSD.org>
893
894 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
895 PL_FLAG_EXEC.
896 (fbsd_nat_target::insert_exec_catchpoint)
897 (fbsd_nat_target::remove_exec_catchpoint): Always define.
898 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
899 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
900
e911c666
JB
9012020-09-16 John Baldwin <jhb@FreeBSD.org>
902
903 * configure.ac: Remove check for kinfo_getvmmap().
904 * configure, config.in: Regenerate.
905 * fbsd-nat.c (fbsd_read_mapping): Remove
906 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
907 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
908 kinfo_get_vmmap() are always present.
909
1f17d372
JB
9102020-09-16 John Baldwin <jhb@FreeBSD.org>
911
912 * fbsd-nat.c: Always include support for
913 TARGET_OBJECT_SIGNAL_INFO.
914
bcb1da7f
JB
9152020-09-16 John Baldwin <jhb@FreeBSD.org>
916
917 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
918 sysctl and remove procfs fallback.
919
5515f729
JB
9202020-09-16 John Baldwin <jhb@FreeBSD.org>
921
922 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
923 * fbsd-nat.h: Likewise.
924
da1df1db
TBA
9252020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
926
927 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
928 argument.
929
0e25e767
AB
9302020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
931
932 * ada-lang.c (ada_language_data): Delete.
933 (ada_language): Remove references to ada_language_data.
934 * c-lang.c (c_language_data): Delete.
935 (c_language): Remove references to c_language_data.
936 (cplus_language_data): Delete.
937 (cplus_language): Remove references to cplus_language_data.
938 (asm_language_data): Delete.
939 (asm_language): Remove references to asm_language_data.
940 (minimal_language_data): Delete.
941 (minimal_language): Remove references to minimal_language_data.
942 * d-lang.c (d_language_data): Delete.
943 (d_language): Remove references to d_language_data.
944 * f-lang.c (f_language_data): Delete.
945 (f_language): Remove references to f_language_data.
946 * go-lang.c (go_language_data): Delete.
947 (go_language): Remove references to go_language_data.
948 * language.c (unknown_language_data): Delete.
949 (unknown_language): Remove references to unknown_language_data.
950 (auto_language_data): Delete.
951 (auto_language): Remove references to auto_language_data.
952 * language.h (language_data): Delete struct.
953 (language_defn): No longer inherit from language_data.
954 * m2-lang.c (m2_language_data): Delete.
955 (m2_language): Remove references to m2_language_data.
956 * objc-lang.c (objc_language_data): Delete.
957 (objc_language): Remove references to objc_language_data.
958 * opencl-lang.c (opencl_language_data): Delete.
959 (opencl_language): Remove references to opencl_language_data.
960 * p-lang.c (pascal_language_data): Delete.
961 (pascal_language): Remove references to pascal_language_data.
962 * rust-lang.c (rust_language_data): Delete.
963 (rust_language): Remove references to rust_language_data.
964
b7c6e27d
AB
9652020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
966
967 * ada-lang.c (ada_language_data): Remove la_op_print_tab
968 initializer.
969 (ada_language::opcode_print_table): New member function.
970 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
971 (c_language::opcode_print_table): New member function.
972 (cplus_language_data): Remove la_op_print_tab initializer.
973 (cplus_language::opcode_print_table): New member function.
974 (asm_language_data): Remove la_op_print_tab initializer.
975 (asm_language::opcode_print_table): New member function.
976 (minimal_language_data): Remove la_op_print_tab initializer.
977 (minimal_language::opcode_print_table): New member function.
978 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
979 (d_language::opcode_print_table): New member function.
980 * expprint.c (print_subexp_standard): Update call to
981 opcode_print_table.
982 (op_string): Likewise.
983 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
984 (f_language::opcode_print_table): New member function.
985 * go-lang.c (go_language_data): Remove la_op_print_tab
986 initializer.
987 (go_language::opcode_print_table): New member function.
988 * language.c (unknown_language_data): Remove la_op_print_tab
989 initializer.
990 (unknown_language::opcode_print_table): New member function.
991 (auto_language_data): Remove la_op_print_tab initializer.
992 (auto_language::opcode_print_table): New member function.
993 * language.h (language_data): Remove la_op_print_tab field.
994 (language_defn::opcode_print_table): Declare new member function.
995 * m2-lang.c (m2_language_data): Remove la_op_print_tab
996 initializer.
997 (m2_language::opcode_print_table): New member function.
998 * objc-lang.c (objc_language_data): Remove la_op_print_tab
999 initializer.
1000 (objc_language::opcode_print_table): New member function.
1001 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
1002 initializer.
1003 (opencl_language::opcode_print_table): New member function.
1004 * p-lang.c (pascal_language_data): Remove la_op_print_tab
1005 initializer.
1006 (pascal_language::opcode_print_table): New member function.
1007 * rust-lang.c (rust_language_data): Remove la_op_print_tab
1008 initializer.
1009 (rust_language::opcode_print_table): New member function.
1010
5aba6ebe
AB
10112020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1012
1013 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
1014 (ada_language::expression_ops): New member function.
1015 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
1016 (c_language::expression_ops): New member function.
1017 (cplus_language_data): Remove la_exp_desc initializer.
1018 (cplus_language::expression_ops): New member function.
1019 (asm_language_data): Remove la_exp_desc initializer.
1020 (asm_language::expression_ops): New member function.
1021 (minimal_language_data): Remove la_exp_desc initializer.
1022 (minimal_language::expression_ops): New member function.
1023 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
1024 (d_language::expression_ops): New member function.
1025 * eval.c (evaluate_subexp): Update call to expression_ops.
1026 * expprint.c (print_subexp): Likewise.
1027 (op_name): Likewise.
1028 (dump_subexp_body): Likewise.
1029 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
1030 (f_language::expression_ops): New member function.
1031 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
1032 (go_language::expression_ops): New member function.
1033 * language.c (language_defn::expression_ops): New function.
1034 (unknown_language_data): Remove la_exp_desc initializer.
1035 (auto_language_data): Likewise.
1036 * language.h (language_data): Remove la_exp_desc field.
1037 (language_defn::expression_ops): Declare new member function.
1038 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
1039 (m2_language::expression_ops): New member function.
1040 * objc-lang.c (objc_language_data): Remove la_exp_desc
1041 initializer.
1042 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
1043 initializer.
1044 (opencl_language::expression_ops): New member function.
1045 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
1046 * parse.c (operator_length): Update call to expression_ops.
1047 (exp_iterate): Likewise.
1048 * rust-lang.c (rust_language_data): Remove la_exp_desc
1049 initializer.
1050 (ruse_language::expression_ops): New member function.
1051
b63a3f3f
AB
10522020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1053
1054 * ada-lang.c (ada_language_data): Remove la_varobj_ops
1055 initializer.
1056 (ada_language::varobj_ops): New member function.
1057 * c-lang.c (c_language_data): Remove la_varobj_ops
1058 initializer.
1059 (cplus_language_data): Likewise.
1060 (cplus_language::varobj_ops): New member function.
1061 (asm_language_data): Remove la_varobj_ops initializer.
1062 (minimal_language_data): Likewise.
1063 * d-lang.c (d_language_data): Likewise.
1064 * f-lang.c (f_language_data): Likewise.
1065 * go-lang.c (go_language_data): Likewise.
1066 * language.c (language_defn::varobj_ops): New function.
1067 (unknown_language_data): Remove la_varobj_ops
1068 initializer.
1069 (auto_language_data): Likewise.
1070 * language.h (language_data): Remove la_varobj_ops field.
1071 (language_defn::varobj_ops): Declare new member function.
1072 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
1073 * objc-lang.c (objc_language_data): Likewise.
1074 * opencl-lang.c (opencl_language_data): Likewise.
1075 * p-lang.c (pascal_language_data): Likewise.
1076 * rust-lang.c (rust_language_data): Likewise.
1077 * varobj.c (varobj_create): Update call to varobj_ops.
1078 * varobj.h (default_varobj_ops): Delete define.
1079
1ac14a04
AB
10802020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1081
1082 * ada-lang.c (ada_language_data): Remove la_macro_expansion
1083 initializer.
1084 * c-lang.c (c_language_data): Likewise.
1085 (c_language::macro_expansion): New member function.
1086 (cplus_language_data): Likewise.
1087 (cplus_language::macro_expansion): New member function.
1088 (asm_language_data): Likewise.
1089 (asm_language::macro_expansion): New member function.
1090 (minimal_language_data): Likewise.
1091 (minimal_language::macro_expansion): New member function.
1092 * d-lang.c (d_language_data): Remove la_macro_expansion
1093 initializer.
1094 * f-lang.c (f_language_data): Likewise.
1095 * go-lang.c (go_language_data): Likewise.
1096 * language.c (unknown_language_data): Likewise.
1097 (auto_language_data): Likewise.
1098 * language.h (language_data): Remove la_macro_expansion field.
1099 (language_defn::macro_expansion): New member function.
1100 * m2-lang.c (m2_language_data): Remove la_macro_expansion
1101 initializer.
1102 * objc-lang.c (objc_language_data): Likewise.
1103 (objc_language::macro_expansion): New member function.
1104 * opencl-lang.c (opencl_language_data): Likewise.
1105 (opencl_language::macro_expansion): New member function.
1106 * p-lang.c (pascal_language_data): Remove la_macro_expansion
1107 initializer.
1108 * rust-lang.c (rust_language_data): Likewise.
1109 * symtab.c (default_collect_symbol_completion_matches_break_on):
1110 Update call to macro_expansion.
1111
3a3440fb
AB
11122020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1113
1114 * ada-lang.c (ada_language_data): Remove la_array_ordering
1115 initializer.
1116 * c-lang.c (c_language_data): Likewise.
1117 (cplus_language_data): Likewise.
1118 (asm_language_data): Likewise.
1119 (minimal_language_data): Likewise.
1120 * d-lang.c (d_language_data): Likewise.
1121 * dwarf2/read.c (read_array_order): Update for call to
1122 array_ordering.
1123 * f-lang.c (f_language_data): Remove la_array_ordering
1124 initializer.
1125 (f_language::array_ordering): New member function.
1126 * go-lang.c (go_language_data): Remove la_array_ordering
1127 initializer.
1128 * language.c (unknown_language_data): Likewise.
1129 (auto_language_data): Likewise.
1130 * language.h (language_data): Delete la_array_ordering field.
1131 (language_defn::array_ordering): New member function.
1132 * m2-lang.c (m2_language_data): Remove la_array_ordering
1133 initializer.
1134 * objc-lang.c (objc_language_data): Likewise.
1135 * opencl-lang.c (opencl_language_data): Likewise.
1136 * p-lang.c (pascal_language_data): Likewise.
1137 * rust-lang.c (rust_language_data): Likewise.
1138
0d201fa4
AB
11392020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1140
1141 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
1142 initializer.
1143 * c-lang.c (c_language_data): Likewise.
1144 (cplus_language_data): Likewise.
1145 (asm_language_data): Likewise.
1146 (minimal_language_data): Likewise.
1147 * d-lang.c (d_language_data): Likewise.
1148 * f-lang.c (f_language_data): Likewise.
1149 (f_language::case_sensitivity): New member function.
1150 * go-lang.c (go_language_data): Remove la_case_sensitivity
1151 initializer.
1152 * language.c (enum case_mode): Moved here from language.h.
1153 (case_mode): Make static.
1154 (show_case_command): Update for case_sensitivity being a method.
1155 (set_case_command): Likewise.
1156 (set_range_case): Likewise.
1157 (unknown_language_data): Remove la_case_sensitivity initializer.
1158 (auto_language_data): Likewise.
1159 * language.h (case_mode): Delete, move enum declaration to
1160 language.c.
1161 (language_data): Delete la_case_sensitivity field.
1162 (language_defn::case_sensitivity): New member function.
1163 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
1164 initializer.
1165 * objc-lang.c (objc_language_data): Likewise.
1166 * opencl-lang.c (opencl_language_data): Likewise.
1167 * p-lang.c (pascal_language_data): Likewise.
1168 * rust-lang.c (rust_language_data): Likewise.
1169
efdf6a73
AB
11702020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1171
1172 * ada-lang.c (ada_language_data): Remove la_range_check
1173 initializer.
1174 * c-lang.c (c_language_data): Likewise.
1175 (cplus_language_data): Likewise.
1176 (asm_language_data): Likewise.
1177 (minimal_language_data): Likewise.
1178 * d-lang.c (d_language_data): Likewise.
1179 * f-lang.c (f_language_data): Likewise.
1180 (f_language::range_checking_on_by_default): New member function.
1181 * go-lang.c (go_language_data): Remove la_range_check initializer.
1182 * language.c (enum range_mode): Moved here from language.h.
1183 (range_mode): Made static.
1184 (show_range_command): Update to use
1185 range_checking_on_by_default.
1186 (set_range_command): Likewise.
1187 (set_range_case): Likewise.
1188 (unknown_language_data): Remove la_range_check initializer.
1189 (auto_language_data): Likewise.
1190 * language.h (range_mode): Delete. Enum definition moved to
1191 language.c.
1192 (language_data): Remove la_range_check field.
1193 (language_defn::range_checking_on_by_default): New member
1194 function.
1195 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
1196 (m2_language::range_checking_on_by_default): New member function.
1197 * objc-lang.c (objc_language_data): Remove la_range_check
1198 initializer.
1199 * opencl-lang.c (opencl_language_data): Likewise.
1200 * p-lang.c (pascal_language_data): Likewise.
1201 (pascal_language::range_checking_on_by_default): New member
1202 function.
1203 * rust-lang.c (rust_language_data): Remove la_range_check
1204 initializer.
1205 (rust_language::range_checking_on_by_default): New member
1206 function.
1207
bf92aec5
AB
12082020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1209
1210 * dwarf2/read.c (dwarf2_physname): Remove special case for
1211 language_go.
1212 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
1213 member function.
1214
d3355e4d
AB
12152020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1216
1217 * ada-lang.c (ada_language_data): Remove
1218 la_store_sym_names_in_linkage_form_p initializer.
1219 (ada_language::store_sym_names_in_linkage_form_p): New member
1220 function.
1221 * c-lang.c (c_language_data): Remove
1222 la_store_sym_names_in_linkage_form_p initializer.
1223 (c_language::store_sym_names_in_linkage_form_p): New member
1224 function.
1225 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
1226 initializer.
1227 (asm_language_data): Likewise.
1228 (asm_language::store_sym_names_in_linkage_form_p): New member
1229 function.
1230 (minimal_language_data): Remove
1231 la_store_sym_names_in_linkage_form_p initializer.
1232 (minimal_language::store_sym_names_in_linkage_form_p): New member
1233 function.
1234 * d-lang.c (d_language_data): Remove
1235 la_store_sym_names_in_linkage_form_p initializer.
1236 * dwarf2/read.c (dwarf2_physname): Update call to
1237 store_sym_names_in_linkage_form_p.
1238 * f-lang.c (f_language_data): Remove
1239 la_store_sym_names_in_linkage_form_p initializer.
1240 * go-lang.c (go_language_data): Remove
1241 la_store_sym_names_in_linkage_form_p initializer.
1242 * language.c (unknown_language_data): Remove
1243 la_store_sym_names_in_linkage_form_p initializer.
1244 (unknown_language::store_sym_names_in_linkage_form_p): New member
1245 function.
1246 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
1247 initializer.
1248 (auto_language::store_sym_names_in_linkage_form_p): New member
1249 function.
1250 * language.h (language_data): Remove
1251 la_store_sym_names_in_linkage_form_p member variable.
1252 (language_defn::store_sym_names_in_linkage_form_p): New member
1253 function.
1254 * m2-lang.c (m2_language_data): Remove
1255 la_store_sym_names_in_linkage_form_p initializer.
1256 * objc-lang.c (objc_language_data): Likewise.
1257 * opencl-lang.c (opencl_language_data): Likewise.
1258 * p-lang.c (pascal_language_data): Likewise.
1259 * rust-lang.c (rust_language_data): Likewise.
1260
22c12a6c
AB
12612020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1262
1263 * ada-lang.c (ada_language_data): Remove string_lower_bound
1264 initializer.
1265 * c-lang.c (c_language_data): Likewise.
1266 (cplus_language_data): Likewise.
1267 (asm_language_data): Likewise.
1268 (minimal_language_data): Likewise.
1269 * d-lang.c (d_language_data): Likewise.
1270 * f-lang.c (f_language_data): Likewise.
1271 * go-lang.c (go_language_data): Likewise.
1272 * language.c (unknown_language_data): Likewise.
1273 (auto_language_data): Likewise.
1274 * language.h (language_data): Remove string_lower_bound field.
1275 (language_defn::string_lower_bound): New member function.
1276 * m2-lang.c (m2_language_data): Remove string_lower_bound
1277 initializer.
1278 (m2_language::string_lower_bound): New member function.
1279 * objc-lang.c (objc_language_data): Remove string_lower_bound
1280 initializer.
1281 * opencl-lang.c (opencl_language_data): Likewise.
1282 * p-lang.c (pascal_language_data): Likewise.
1283 * rust-lang.c (rust_language_data): Likewise.
1284 * valops.c (value_cstring): Update call to string_lower_bound.
1285 (value_string): Likewise.
1286 * value.c (allocate_repeated_value): Likewise.
1287
1c236ddd
AB
12882020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1289
1290 * valops.c (value_repeat): Fix incorrect argument name in comment.
1291
67bd3fd5
AB
12922020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1293
1294 * ada-lang.c (ada_language_data): Remove c_style_arrays
1295 initializer.
1296 (ada_language::c_style_arrays_p): New member fuction.
1297 * c-lang.c (c_language_data): Remove c_style_arrays
1298 initializer.
1299 (cplus_language_data): Likewise.
1300 (asm_language_data): Likewise.
1301 (minimal_language_data): Likewise.
1302 * d-lang.c (d_language_data): Likewise.
1303 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
1304 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
1305 (f_language::c_style_arrays_p): New member function.
1306 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
1307 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
1308 * language.c (unknown_language_data): Remove c_style_arrays
1309 initializer.
1310 (auto_language_data): Likewise.
1311 * language.h (language_data): Remove c_style_arrays field.
1312 (language_defn::c_style_arrays_p): New member function.
1313 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
1314 (m2_language::c_style_arrays_p): New member function.
1315 * objc-lang.c (objc_language_data): Remove c_style_arrays
1316 initializer.
1317 * opencl-lang.c (opencl_language_data): Likewise.
1318 * p-lang.c (pascal_language_data): Likewise.
1319 * rust-lang.c (rust_language_data): Likewise.
1320 * valarith.c (value_subscript): Update call to c_style_arrays_p,
1321 and update local variable to a bool.
1322 * valops.c (value_cast): Update call to c_style_arrays_p.
1323 (value_array): Likewise.
1324 * value.c (coerce_array): Likewise.
1325
85967615
AB
13262020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1327
1328 * ada-lang.c (ada_language_data): Remove la_language initializer.
1329 * c-lang.c (c_language_data): Likewise.
1330 (cplus_language_data): Likewise.
1331 (asm_language_data): Likewise.
1332 (minimal_language_data): Likewise.
1333 * d-lang.c (d_language_data): Likewise.
1334 * f-lang.c (f_language_data): Likewise.
1335 * go-lang.c (go_language_data): Likewise.
1336 * language.c (unknown_language_data): Likewise.
1337 (auto_language_data): Likewise.
1338 * language.h (language_data): Remove la_language field.
1339 (language_defn::language_defn): Initialise la_language field.
1340 (language_defn::la_language): New member variable.
1341 * m2-lang.c (m2_language_data): Remove la_language field.
1342 * objc-lang.c (objc_language_data): Likewise.
1343 * opencl-lang.c (opencl_language_data): Likewise.
1344 * p-lang.c (pascal_language_data): Likewise.
1345 * rust-lang.c (rust_language_data): Likewise.
1346
e171d6f1
AB
13472020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1348
1349 * ada-lang.c (ada_extensions): Delete, moved into
1350 ada_language::filename_extensions.
1351 (ada_language_data): Remove la_filename_extensions initializer.
1352 (ada_language::filename_extensions): New member function.
1353 * c-lang.c (c_extensions): Delete, moved into
1354 c_language::filename_extensions.
1355 (c_language_data): Remove la_filename_extensions initializer.
1356 (c_language::filename_extensions): New member function.
1357 (cplus_extensions): Delete, moved into
1358 cplus_language::filename_extensions.
1359 (cplus_language_data): Remove la_filename_extensions initializer.
1360 (cplus_language::filename_extensions): New member function.
1361 (asm_extensions): Delete, moved into
1362 asm_language::filename_extensions.
1363 (asm_language_data): Remove la_filename_extensions initializer.
1364 (asm_language::filename_extensions): New member function.
1365 (minimal_language_data): Remove la_filename_extensions
1366 initializer.
1367 * d-lang.c (d_extensions): Delete, moved into
1368 d_language::filename_extensions.
1369 (d_language_data): Remove la_filename_extensions initializer.
1370 (d_language::filename_extensions): New member function.
1371 * f-lang.c (f_extensions): Delete, moved into
1372 f_language::filename_extensions.
1373 (f_language_data): Remove la_filename_extensions initializer.
1374 (f_language::filename_extensions): New member function.
1375 * go-lang.c (go_language_data): Remove la_filename_extensions
1376 initializer.
1377 * language.c (add_set_language_command): Update now that
1378 filename_extensions returns a vector.
1379 (unknown_language_data): Remove la_filename_extensions
1380 initializer.
1381 (auto_language_data): Likewise.
1382 * language.h (language_data): Remove la_filename_extensions field.
1383 (language_defn::filename_extensions): New member function.
1384 * m2-lang.c (m2_language_data): Remove la_filename_extensions
1385 initializer.
1386 * objc-lang.c (objc_extensions): Delete, moved into
1387 objc_language::filename_extensions.
1388 (objc_language_data): Remove la_filename_extensions initializer.
1389 (objc_language::filename_extensions): New member function.
1390 * opencl-lang.c (opencl_language_data): Remove
1391 la_filename_extensions initializer.
1392 * p-lang.c (pascal_extensions): Delete, moved into
1393 pascal_language::filename_extensions.
1394 (pascal_language_data): Remove la_filename_extensions initializer.
1395 (pascal_language::filename_extensions): New member function.
1396 * rust-lang.c (rust_extensions): Delete, moved into
1397 rust_language::filename_extensions.
1398 (rust_language_data): Remove la_filename_extensions initializer.
1399 (rust_language::filename_extensions): New member function.
1400 * symfile.c (add_filename_language): Add new assert.
1401
6f7664a9
AB
14022020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1403
1404 * ada-lang.c (ada_language_data): Remove la_name and
1405 la_natural_name initializers.
1406 (ada_language::name): New member function.
1407 (ada_language::natural_name): New member function.
1408 * c-lang.c (c_language_data): Remove la_name and
1409 la_natural_name initializers.
1410 (c_language::name): New member function.
1411 (c_language::natural_name): New member function.
1412 (cplus_language_data): Remove la_name and
1413 la_natural_name initializers.
1414 (cplus_language::name): New member function.
1415 (cplus_language::natural_name): New member function.
1416 (asm_language_data): Remove la_name and
1417 la_natural_name initializers.
1418 (asm_language::name): New member function.
1419 (asm_language::natural_name): New member function.
1420 (minimal_language_data): Remove la_name and
1421 la_natural_name initializers.
1422 (minimal_language::name): New member function.
1423 (minimal_language::natural_name): New member function.
1424 * compile/compile.c (compile_to_object): Update call to
1425 lanugage_defn::name.
1426 * d-lang.c (d_language_data): Remove la_name and
1427 la_natural_name initializers.
1428 (d_language::name): New member function.
1429 (d_language::natural_name): New member function.
1430 * expprint.c (print_subexp_standard): Update call to
1431 language_defn::name.
1432 (dump_raw_expression): Likewise
1433 (dump_prefix_expression): Likewise.
1434 * f-lang.c (f_language_data): Remove la_name and
1435 la_natural_name initializers.
1436 (f_language::name): New member function.
1437 (f_language::natural_name): New member function.
1438 * go-lang.c (go_language_data): Remove la_name and
1439 la_natural_name initializers.
1440 (go_language::name): New member function.
1441 (go_language::natural_name): New member function.
1442 * language.c (show_language_command): Update call to
1443 language_defn::name.
1444 (set_language_command): Likewise.
1445 (language_enum): Likewise.
1446 (language_str): Likewise.
1447 (add_set_language_command): Likewise, use
1448 language_defn::natural_name in the doc string.
1449 (unknown_language_data): Remove la_name and
1450 la_natural_name initializers.
1451 (unknown_language::name): New member function.
1452 (unknown_language::natural_name): New member function.
1453 (auto_language_data): Remove la_name and
1454 la_natural_name initializers.
1455 (auto_language::name): New member function.
1456 (auto_language::natural_name): New member function.
1457 (language_lookup_primitive_type_as_symbol): Update call to
1458 language_defn::name.
1459 * language.h (language_data): Remove la_name and la_natural_name
1460 member variables.
1461 (language_defn::name): New member function.
1462 (language_defn::natural_name): New member function.
1463 * m2-lang.c (m2_language_data): Remove la_name and
1464 la_natural_name initializers.
1465 (m2_language::name): New member function.
1466 (m2_language::natural_name): New member function.
1467 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
1468 language_defn::natural_name.
1469 * objc-lang.c (objc_language_data): Remove la_name and
1470 la_natural_name initializers.
1471 (objc_language::name): New member function.
1472 (objc_language::natural_name): New member function.
1473 * opencl-lang.c (opencl_language_data): Remove la_name and
1474 la_natural_name initializers.
1475 (opencl_language::name): New member function.
1476 (opencl_language::natural_name): New member function.
1477 * p-lang.c (pascal_language_data): Remove la_name and
1478 la_natural_name initializers.
1479 (pascal_language::name): New member function.
1480 (pascal_language::natural_name): New member function.
1481 * rust-lang.c (rust_language_data): Remove la_name and
1482 la_natural_name initializers.
1483 (rust_language::name): New member function.
1484 (rust_language::natural_name): New member function.
1485 * symtab.c (lookup_language_this): Update call to
1486 language_defn::name.
1487
5bae7c4e
AB
14882020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1489
1490 * ada-lang.c (ada_language_data): Remove la_name_of_this
1491 initializer.
1492 * ax-gdb.c (gen_expr): Update call to name_of_this.
1493 * c-exp.y (classify_name): Likewise.
1494 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
1495 (cplus_language_data): Likewise.
1496 (cplus_language::name_of_this): New member function.
1497 (asm_language_data): Remove la_name_of_this initializer.
1498 (minimal_language_data): Likewise.
1499 * d-lang.c (d_language_data): Likewise.
1500 (d_language::name_of_this): New member function.
1501 * expprint.c (print_subexp_standard): Update call to name_of_this.
1502 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
1503 * go-lang.c (go_language_data): Likewise.
1504 * language.c (unknown_language_data): Likewise.
1505 (unknown_language::name_of_this): New member function.
1506 (auto_language_data): Remove la_name_of_this initializer.
1507 (auto_language::name_of_this): New member function.
1508 * language.h (language_data): Delete la_name_of_this member
1509 variable.
1510 (language_defn::name_of_this): New member function.
1511 * m2-lang.c (m2_language_data): Remove la_name_of_this
1512 initializer.
1513 * objc-lang.c (objc_language_data): Likewise.
1514 (objc_language::name_of_this): New member function.
1515 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
1516 initializer.
1517 * p-lang.c (pascal_language_data): Likewise.
1518 (pascal_language::name_of_this): New member function.
1519 * rust-lang.c (rust_language_data): Remove la_name_of_this
1520 initializer.
1521 * symtab.c (lookup_language_this): Update call to name_of_this.
1522 (lookup_symbol_aux): Likewise.
1523 * valops.c (value_of_this): Likewise.
1524
22e3f3ed
AB
15252020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1526
1527 * ada-lang.c (ada_language_data): Remove
1528 la_struct_too_deep_ellipsis initializer.
1529 (ada_language::struct_too_deep_ellipsis): New member function.
1530 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
1531 initializer.
1532 (cplus_language_data): Likewise.
1533 (asm_language_data): Likewise.
1534 (minimal_language_data): Likewise.
1535 * cp-valprint.c (cp_print_value): Update call to
1536 struct_too_deep_ellipsis.
1537 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
1538 initializer.
1539 * f-lang.c (f_language_data): Likewise.
1540 (f_language::struct_too_deep_ellipsis): New member function.
1541 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
1542 initializer.
1543 * language.c (unknown_language_data): Likewise.
1544 (auto_language_data): Likewise.
1545 * language.h (language_data): Delete la_struct_too_deep_ellipsis
1546 member variable.
1547 (language_defn::struct_too_deep_ellipsis): New member function.
1548 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
1549 initializer.Q
1550 * objc-lang.c (objc_language_data): Likewise.
1551 * opencl-lang.c (opencl_language_data): Likewise.
1552 * p-lang.c (pascal_language_data): Likewise.
1553 * rust-lang.c (rust_language_data): Likewise.
1554 * valprint.c (val_print_check_max_depth): Update call to
1555 struct_too_deep_ellipsis.
1556
ed29e1c7
FW
15572020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
1558
1559 * MAINTAINERS (Write After Approval): Add myself.
1560
12d8f940
TT
15612020-09-15 Tom Tromey <tom@tromey.com>
1562
1563 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
1564 Remove.
1565
6b5a7bc7
TT
15662020-09-15 Tom Tromey <tom@tromey.com>
1567
1568 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
1569 and TYPE_CODE_METHODPTR cases.
1570 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
1571 (c_value_print_inner): Update.
1572 * valprint.c (generic_value_print_memberptr): New function, from
1573 c_value_print_memberptr.
1574 (generic_value_print): Use it. Call cplus_print_method_ptr.
1575
47f0e2ff
TT
15762020-09-15 Tom Tromey <tromey@adacore.com>
1577
1578 * python/python-internal.h (PyInt_FromLong): Remove define.
1579 * python/py-value.c (convert_value_from_python): Use
1580 gdb_py_object_from_longest.
1581 * python/py-type.c (typy_get_code): Use
1582 gdb_py_object_from_longest.
1583 * python/py-symtab.c (salpy_get_line): Use
1584 gdb_py_object_from_longest.
1585 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
1586 gdb_py_object_from_longest.
1587 * python/py-record.c (recpy_gap_reason_code): Use
1588 gdb_py_object_from_longest.
1589 * python/py-record-btrace.c (recpy_bt_insn_size)
1590 (recpy_bt_func_level, btpy_list_count): Use
1591 gdb_py_object_from_longest.
1592 * python/py-infthread.c (gdbpy_create_ptid_object): Use
1593 gdb_py_object_from_longest. Fix error handling.
1594 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
1595 gdb_py_object_from_longest.
1596 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
1597 gdb_py_object_from_longest.
1598 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
1599 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
1600 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
1601
512116ce
TT
16022020-09-15 Tom Tromey <tromey@adacore.com>
1603
1604 * python/python.c (gdbpy_parameter_value): Use
1605 gdb_py_object_from_ulongest.
1606
4ab1029c
TT
16072020-09-15 Tom Tromey <tromey@adacore.com>
1608
1609 * python/py-infevents.c (create_register_changed_event_object):
1610 Use gdb_py_object_from_longest.
1611 * python/py-exitedevent.c (create_exited_event_object): Use
1612 gdb_py_object_from_longest.
1613
062534d4
TT
16142020-09-15 Tom Tromey <tromey@adacore.com>
1615
1616 * python/python.c (gdbpy_parameter_value): Use
1617 gdb_py_object_from_longest.
1618 * python/py-type.c (convert_field, typy_range): Use
1619 gdb_py_object_from_longest.
1620 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
1621 gdb_py_object_from_longest.
1622 * python/py-lazy-string.c (stpy_get_length): Use
1623 gdb_py_object_from_longest.
1624 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
1625 gdb_py_object_from_longest.
1626 * python/py-infevents.c (create_memory_changed_event_object): Use
1627 gdb_py_object_from_longest.
1628 * python/py-inferior.c (infpy_get_num): Use
1629 gdb_py_object_from_longest.
1630 (infpy_get_pid): Likewise.
1631
d1cab987
TT
16322020-09-15 Tom Tromey <tromey@adacore.com>
1633
1634 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
1635 defines.
1636 * python/py-value.c (valpy_long): Use
1637 gdb_py_object_from_ulongest.
1638 * python/py-symtab.c (salpy_get_pc): Use
1639 gdb_py_object_from_ulongest.
1640 (salpy_get_last): Likewise.
1641 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
1642 gdb_py_object_from_ulongest.
1643 * python/py-lazy-string.c (stpy_get_address): Use
1644 gdb_py_object_from_ulongest.
1645 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
1646 * python/py-arch.c (archpy_disassemble): Use
1647 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
1648 error handling.
1649
4bde49dc
TT
16502020-09-15 Tom Tromey <tromey@adacore.com>
1651
1652 * python/python-internal.h (gdb_py_long_from_longest): Remove
1653 defines.
1654 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
1655 * python/py-type.c (convert_field, typy_get_sizeof): Use
1656 gdb_py_object_from_longest.
1657 * python/py-record-btrace.c (btpy_list_index): Use
1658 gdb_py_object_from_longest.
1659
37431074
TT
16602020-09-15 Tom Tromey <tromey@adacore.com>
1661
1662 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
1663 * python/py-record.c (recpy_element_number): Use
1664 gdb_py_object_from_longest.
1665 (recpy_gap_number): Likewise.
1666
cbe25684
TT
16672020-09-15 Tom Tromey <tromey@adacore.com>
1668
1669 * top.c (ui::ui): Update.
1670 (highest_ui_num): Remove.
1671 * top.h (struct ui) <num>: Remove.
1672
db92ac45
TT
16732020-09-15 Tom Tromey <tromey@adacore.com>
1674
1675 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
1676 * ui-style.c (ansi_regex_text): Now array.
1677 * rust-exp.y (number_regex_text): Now array.
1678 * linespec.c (linespec_quote_characters): Now array.
1679 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
1680 Now arrays.
1681
d2b31b67
SM
16822020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1683
1684 * debuginfod-support.c (debuginfod_client_deleter): New.
1685 (debuginfod_client_up): New.
1686 (debuginfod_init): Return debuginfod_client_up.
1687 (debuginfod_source_query): Adjust.
1688 (debuginfod_debuginfo_query): Adjust.
1689
3246bd8e
SM
16902020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1691
1692 * debuginfod-support.c (debuginfod_source_query): Use
1693 make_unique_xstrdup.
1694
10242f36
SM
16952020-09-14 Simon Marchi <simon.marchi@efficios.com>
1696
1697 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
1698 with `type::instance_flags`.
1699
e1044e6a
MM
17002020-09-14 Michael Mullin <masmullin@gmail.com>
1701
1702 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
1703 Remove baton parameter.
1704
04902b09
PA
17052020-09-14 Pedro Alves <pedro@palves.net>
1706
1707 * Makefile.in (SELFTESTS_SRCS): Add
1708 unittests/enum-flags-selftests.c.
1709 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
1710 btrace_function_flags instead of enum btrace_function_flag.
1711 * compile/compile-c-types.c (convert_qualified): Use
1712 enum_flags::raw.
1713 * compile/compile-cplus-symbols.c (convert_one_symbol)
1714 (convert_symbol_bmsym):
1715 * compile/compile-cplus-types.c (compile_cplus_convert_method)
1716 (compile_cplus_convert_struct_or_union_methods)
1717 (compile_cplus_instance::convert_qualified_base):
1718 * go-exp.y (parse_string_or_char): Add cast to int.
1719 * unittests/enum-flags-selftests.c: New file.
1720 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
1721 type to btrace_thread_flags from btrace_thread_flag.
1722 (record_btrace_cancel_resume, record_btrace_step_thread): Change
1723 local's type to btrace_thread_flags from btrace_thread_flag. Add
1724 cast in DEBUG call.
1725
69896a2c
PA
17262020-09-14 Pedro Alves <pedro@palves.net>
1727
1728 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
1729 * gdbtypes.c (address_space_name_to_int): Rename to ...
1730 (address_space_name_to_type_instance_flags): ... this.
1731 (address_space_int_to_name): Rename to ...
1732 (address_space_type_instance_flags_to_name): ... this.
1733 * gdbtypes.h (address_space_name_to_int): Rename to ...
1734 (address_space_name_to_type_instance_flags): ... this.
1735 (address_space_int_to_name): Rename to ...
1736 (address_space_type_instance_flags_to_name): ... this.
1737 * type-stack.c (type_stack::insert): Adjust to rename.
1738 * type-stack.h (type_stack::insert): Likewise.
1739
314ad88d
PA
17402020-09-14 Pedro Alves <pedro@palves.net>
1741 Andrew Burgess <andrew.burgess@embecosm.com>
1742
1743 * avr-tdep.c (avr_address_class_type_flags): Return
1744 type_instance_flags.
1745 (avr_address_class_type_flags_to_name): Take a
1746 type_instance_flags.
1747 (avr_address_class_name_to_type_flags): Return bool and take a
1748 type_instance_flags.
1749 * d-lang.c (build_d_types): Use type::set_instance_flags.
1750 * ft32-tdep.c (ft32_address_class_type_flags): Return
1751 type_instance_flags.
1752 (ft32_address_class_type_flags_to_name): Take a
1753 type_instance_flags.
1754 (ft32_address_class_name_to_type_flags): Return bool and take a
1755 type_instance_flags.
1756 (ft32_gdbarch_init): Use type::set_instance_flags.
1757 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
1758 * gdbarch.h, gdbarch.c: Regenerate.
1759 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
1760 (address_class_name_to_type_flags): Use type_instance_flags and
1761 bool.
1762 * gdbtypes.c (address_space_name_to_int)
1763 (address_space_int_to_name, make_qualified_type): Use
1764 type_instance_flags.
1765 (make_qualified_type): Use type_instance_flags and
1766 type::set_instance_flags.
1767 (make_type_with_address_space, make_cv_type, make_vector_type)
1768 (check_typedef): Use type_instance_flags.
1769 (recursive_dump_type): Cast type_instance_flags to unsigned for
1770 printing.
1771 (copy_type_recursive): Use type::set_instance_flags.
1772 (gdbtypes_post_init): Use type::set_instance_flags.
1773 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
1774 <m_instance_flags>: ... this.
1775 <instance_flags, set_instance_flags>: New methods.
1776 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
1777 (SET_TYPE_INSTANCE_FLAGS): New.
1778 (address_space_name_to_int, address_space_int_to_name)
1779 (make_type_with_address_space): Pass flags using
1780 type_instance_flags instead of int.
1781 * stabsread.c (cleanup_undefined_types_noname): Use
1782 type::set_instance_flags.
1783 * s390-tdep.c (s390_address_class_type_flags): Return
1784 type_instance_flags.
1785 (s390_address_class_type_flags_to_name): Take a
1786 type_instance_flags.
1787 (s390_address_class_name_to_type_flags): Return bool and take a
1788 type_instance_flags.
1789 * type-stack.c (type_stack::follow_types): Use
1790 type_instance_flags.
1791 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
1792
27087b7f
TT
17932020-09-14 Tom Tromey <tromey@adacore.com>
1794
1795 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
1796 * x86-tdep.c (x86_is_thunk_register_name)
1797 (x86_in_indirect_branch_thunk): Update.
1798 * sparc64-tdep.c (sparc64_fpu_register_names)
1799 (sparc64_cp0_register_names, sparc64_register_names)
1800 (sparc64_pseudo_register_names): Now const.
1801 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
1802 cp0_registers_num>: Now const.
1803 * sparc-tdep.c (sparc_core_register_names)
1804 (sparc32_fpu_register_names, sparc32_cp0_register_names)
1805 (sparc32_pseudo_register_names): Now const.
1806 (validate_tdesc_registers): Update.
1807 * rust-lang.c (rust_extensions): Now const.
1808 * p-lang.c (p_extensions): Now const.
1809 * objc-lang.c (objc_extensions): Now const.
1810 * nto-tdep.c (nto_thread_state_str): Now const.
1811 * moxie-tdep.c (moxie_register_names): Now const.
1812 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
1813 Now const.
1814 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
1815 (mips_linux_reg_names): Now const.
1816 (mips_gdbarch_init): Update.
1817 * microblaze-tdep.c (microblaze_register_names): Now const.
1818 * m68k-tdep.c (m68k_register_names): Now const.
1819 * m32r-tdep.c (m32r_register_names): Now const.
1820 * ia64-tdep.c (ia64_register_names): Now const.
1821 * i386-tdep.h (struct gdbarch_tdep) <register_names,
1822 ymmh_register_names, ymm16h_regnum, mpx_register_names,
1823 k_register_names, zmmh_register_names, xmm_avx512_register_names,
1824 ymm_avx512_register_names, pkeys_register_names>: Now const.
1825 * i386-tdep.c (i386_register_names, i386_zmm_names)
1826 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
1827 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
1828 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
1829 * f-lang.c (f_extensions): Now const.
1830 * d-lang.c (d_extensions): Now const.
1831 * csky-tdep.c (csky_register_names): Now const.
1832 * charset.c (default_charset_names, charset_enum): Now const.
1833 (_initialize_charset): Update.
1834 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
1835 const.
1836 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
1837 (bsd_uthread_solib_loaded): Update.
1838 (bsd_uthread_state): Now const.
1839 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
1840 (amd64_ymm_avx512_names, amd64_ymmh_names)
1841 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
1842 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
1843 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
1844 (amd64_dword_names): Now const.
1845 * agent.c (can_use_agent_enum): Now const.
1846 * ada-tasks.c (task_states, long_task_states): Now const.
1847 * ada-lang.c (known_runtime_file_name_patterns)
1848 (known_auxiliary_function_name_patterns, attribute_names)
1849 (standard_exc, ada_extensions): Now const.
1850
89806626
SM
18512020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1852
1853 * bcache.h (struct bcache) <bcache>: Remove constructor.
1854 <m_hash_function, m_compare_function>: Remove.
1855 <~bcache>: Make virtual.
1856 <compare>: Remove static method, introduce virtual method.
1857 <default_hash>: Remove.
1858 <hash>: New virtual method.
1859 * bcache.c (bcache::expand_hash_table): Update.
1860 (bcache::insert): Update.
1861 (bcache::hash): New.
1862 (bcache::compare): Update comment and parameter names.
1863 * gdbtypes.c (types_deeply_equal): Update.
1864 * psymtab.h (struct psymbol_bcache): New struct.
1865 (class psymtab_storage) <psymtab_storage>: Make default.
1866 <psymbol_cache>: Change type to psymbol_bcache.
1867 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
1868 (psymbol_hash): Change to...
1869 (psymbol_bcache::hash): ... this.
1870 (psymbol_compare): Change to...
1871 (psymbol_bcache::compare): ... this.
1872
677c92fe
SM
18732020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1874
1875 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
1876 checking for initial lwp.
1877
3eba3a01
TT
18782020-09-14 Tom Tromey <tromey@adacore.com>
1879
1880 * m68k-tdep.c (m68k_extract_return_value): Use
1881 pointer_result_regnum.
1882 (m68k_store_return_value): Likewise.
1883 (m68k_reg_struct_return_p): Handle vectors and arrays.
1884 (m68k_return_value): Handle arrays.
1885 (m68k_svr4_return_value): Fix single-element aggregate handling.
1886 Handle long double. Adjust for embedded ABI.
1887 (m68k_svr4_init_abi): Set pointer_result_regnum.
1888 (m68k_embedded_init_abi): New function.
1889 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
1890 (m68k_osabi_sniffer): New function.
1891 (_initialize_m68k_tdep): Register osabi sniffer.
1892 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
1893 member.
1894
33f4dd48
SM
18952020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1896
1897 * xml-support.c (xml_fetch_content_from_file): Replace xfree
1898 with gdb::unique_xmalloc_ptr<char>.
1899
8400a90d
SM
19002020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1901
1902 * xml-support.h (xml_fetch_another): Change type to be a
1903 function_view.
1904 (xml_process_xincludes): Remove baton parameter.
1905 (xml_fetch_content_from_file): Change baton parameter to
1906 dirname.
1907 * xml-support.c (struct xinclude_parsing_data)
1908 <xinclude_parsing_data>: Remove baton parameter.
1909 <fetcher_baton>: Remove.
1910 (xinclude_start_include): Adjust.
1911 (xml_process_xincludes): Adjust.
1912 (xml_fetch_content_from_file): Replace baton parameter with
1913 dirname.
1914 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
1915 (xml_init_syscalls_info): Use a lambda.
1916 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
1917 (file_read_description_xml): Use a lambda.
1918 (fetch_available_features_from_target): Change baton parameter
1919 to target_ops.
1920 (target_read_description_xml): Use a lambda.
1921 (target_fetch_description_xml): Use a lambda.
1922 (string_read_description_xml): Update.
1923
04f5bab2
SM
19242020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1925
1926 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
1927 uses with type::endianity_is_not_default.
1928
db558e34
SM
19292020-09-14 Simon Marchi <simon.marchi@efficios.com>
1930
1931 * gdbtypes.h (struct type) <endianity_is_not_default,
1932 set_endianity_is_not_default>: New methods.
1933 (TYPE_ENDIANITY_NOT_DEFAULT): Use
1934 type::endianity_is_not_default, change all write call sites to
1935 use type::set_endianity_is_not_default.
1936
22c4c60c
SM
19372020-09-14 Simon Marchi <simon.marchi@efficios.com>
1938
1939 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
1940 uses with type::is_fixed_instance.
1941
9cdd0d12
SM
19422020-09-14 Simon Marchi <simon.marchi@efficios.com>
1943
1944 * gdbtypes.h (struct type) <is_fixed_instance,
1945 set_is_fixed_instance>: New methods.
1946 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
1947 write call sites to use type::set_is_fixed_instance.
1948
0becda7a
SM
19492020-09-14 Simon Marchi <simon.marchi@efficios.com>
1950
1951 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
1952 uses with type::is_gnu_ifunc.
1953
03cc7249
SM
19542020-09-14 Simon Marchi <simon.marchi@efficios.com>
1955
1956 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
1957 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
1958 use type::set_is_gnu_ifunc.
1959
3f46044c
SM
19602020-09-14 Simon Marchi <simon.marchi@efficios.com>
1961
1962 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
1963 uses with type::stub_is_supported.
1964
9baccff6
SM
19652020-09-14 Simon Marchi <simon.marchi@efficios.com>
1966
1967 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
1968 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
1969 use type::set_stub_is_supported.
1970
bd63c870
SM
19712020-09-14 Simon Marchi <simon.marchi@efficios.com>
1972
1973 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
1974 uses with type::is_vector.
1975
2062087b
SM
19762020-09-14 Simon Marchi <simon.marchi@efficios.com>
1977
1978 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
1979 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
1980 use type::set_is_vector.
1981
a409645d
SM
19822020-09-14 Simon Marchi <simon.marchi@efficios.com>
1983
1984 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
1985 uses with type::has_varargs.
1986
1d6286ed
SM
19872020-09-14 Simon Marchi <simon.marchi@efficios.com>
1988
1989 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
1990 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
1991 use type::set_has_varargs.
1992
7f9f399b
SM
19932020-09-14 Simon Marchi <simon.marchi@efficios.com>
1994
1995 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
1996 uses with type::is_prototyped.
1997
27e69b7a
SM
19982020-09-14 Simon Marchi <simon.marchi@efficios.com>
1999
2000 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
2001 New methods.
2002 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
2003 call sites to use type::set_is_prototyped.
2004
d2183968
SM
20052020-09-14 Simon Marchi <simon.marchi@efficios.com>
2006
2007 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
2008 uses with type::target_is_stub.
2009
8f53807e
SM
20102020-09-14 Simon Marchi <simon.marchi@efficios.com>
2011
2012 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
2013 New methods.
2014 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
2015 sites to use type::set_target_is_stub.
2016
e46d3488
SM
20172020-09-14 Simon Marchi <simon.marchi@efficios.com>
2018
2019 * gdbtypes.h (TYPE_STUB): Remove, replace all
2020 uses with type::is_stub.
2021
b4b73759
SM
20222020-09-14 Simon Marchi <simon.marchi@efficios.com>
2023
2024 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
2025 (TYPE_STUB): Use type::is_stub, change all write call sites to
2026 use type::set_is_stub.
2027
20ce4123
SM
20282020-09-14 Simon Marchi <simon.marchi@efficios.com>
2029
2030 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
2031 type::has_no_signedness.
2032
15152a54
SM
20332020-09-14 Simon Marchi <simon.marchi@efficios.com>
2034
2035 * gdbtypes.h (struct type) <has_no_signedness,
2036 set_has_no_signedness>: New methods.
2037 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
2038 call sites to use type::set_has_no_signedness.
2039
c6d940a9
SM
20402020-09-14 Simon Marchi <simon.marchi@efficios.com>
2041
2042 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
2043 type::is_unsigned.
2044
653223d3
SM
20452020-09-14 Simon Marchi <simon.marchi@efficios.com>
2046
2047 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
2048 methods.
2049 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
2050 sites to use type::set_is_unsigned.
2051
55ea94da 20522020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
e851246a 2053 Adam Renquinha <arenquinha@cimeq.qc.ca>
55ea94da 2054
e851246a
SM
2055 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
2056 pointer and stack frame offset when unwinding.
55ea94da 2057
6791b117
PA
20582020-09-13 Pedro Alves <pedro@palves.net>
2059
2060 * NEWS: Document "-break-insert --qualified".
2061 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
2062
77f2120b
PA
20632020-09-13 Pedro Alves <pedro@palves.net>
2064
2065 * linespec.c (classify_mtype, compare_msyms): Delete.
2066 (search_minsyms_for_name): Remove classification logic. Instead
2067 filter out trampoline symbols if we also found an external
2068 function of the same name.
2069
ed6a896c
JB
20702020-09-13 Joel Brobecker <brobecker@adacore.com>
2071
2072 * NEWS: Create a new section for the next release branch.
2073 Rename the section of the current branch, now that it has
2074 been cut.
2075
32aea73e
JB
20762020-09-13 Joel Brobecker <brobecker@adacore.com>
2077
2078 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
2079 * version.in: Bump version to 11.0.50.DATE-git.
2080
8087c3fa
JB
20812020-09-12 Joel Brobecker <brobecker@adacore.com>
2082
2083 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
2084
2a67f09d
FW
20852020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
2086 Felix Willgerodt <Felix.Willgerodt@intel.com>
2087
2088 * gdbarch.sh: Added bfloat16 type.
2089 * gdbarch.c: Regenerated.
2090 * gdbarch.h: Regenerated.
2091 * gdbtypes.c (floatformats_bfloat16): New struct.
2092 (gdbtypes_post_init): Add builtin_bfloat16.
2093 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
2094 (floatformats_bfloat16): New struct.
2095 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
2096 (i386_ymm_type): Add field "v16_bfloat16"
2097 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
2098 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
2099 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
2100 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
2101 * features/i386/64bit-avx512.xml: Add bfloat16 type.
2102 * features/i386/64bit-avx512.c: Regenerated.
2103 * features/i386/64bit-sse.xml: Add bfloat16 type.
2104 * features/i386/64bit-sse.c: Regenerated.
2105
1347d111
FW
21062020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
2107
2108 * i386-tdep.c (i386_zmm_type): Fix field names.
2109 (i386_ymm_type): Fix field names.
2110
7a4e8e7d
TBA
21112020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2112
2113 * breakpoint.c: Fix typo in the help message of the
2114 "set breakpoint condition-evaluation" command.
2115
cf4ac4be
KR
21162020-09-10 Kamil Rytarowski <n54@gmx.com>
2117
2118 * nbsd-nat.c: Include "nat/netbsd-nat.h".
2119 * (nbsd_nat_target::pid_to_exec_file)
2120 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
2121 (nbsd_nat_target::post_startup_inferior)
2122 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
2123 (nbsd_add_threads): Switch local code to common gdb/nat functions.
2124 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
2125 * (nbsd_thread_lister): Remove.
2126
f404573e
KR
21272020-09-10 Kamil Rytarowski <n54@gmx.com>
2128
2129 * fork-inferior.c (startup_inferior): Avoid double free.
2130
1ccb2c17
KR
21312020-09-10 Kamil Rytarowski <n54@gmx.com>
2132
2133 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
2134 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
2135
feedfcc7
KR
21362020-09-10 Kamil Rytarowski <n54@gmx.com>
2137
2138 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
2139 * netbsd-nat.c: Include <sys/ptrace.h>.
2140 * (netbsd_nat::enable_proc_events): Add.
2141
c489f8c6
KR
21422020-09-10 Kamil Rytarowski <n54@gmx.com>
2143
2144 * netbsd-nat.h: Include "gdbsupport/function-view.h".
2145 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
2146 (netbsd_nat::for_each_thread): Add.
2147 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
2148 "gdbsupport/common-debug.h".
2149 * (netbsd_nat::netbsd_thread_lister)
2150 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
2151 (netbsd_nat::for_each_thread): Add.
2152
330662f6
KR
21532020-09-10 Kamil Rytarowski <n54@gmx.com>
2154
2155 * netbsd-nat.h: Include <unistd.h>.
2156 * (netbsd_nat::pid_to_exec_file): Add.
2157 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
2158 * (netbsd_nat::pid_to_exec_file) Add.
2159
70b67307
KR
21602020-09-10 Kamil Rytarowski <n54@gmx.com>
2161
2162 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
2163
99cf6da6
KR
21642020-09-10 Kamil Rytarowski <n54@gmx.com>
2165
2166 * netbsd-nat.h: New file.
2167 * netbsd-nat.c: Likewise.
2168
1b788fb6
TT
21692020-09-09 Tom Tromey <tromey@adacore.com>
2170
2171 * ada-lang.c (remove_extra_symbols): Do not increment when
2172 removing an element
2173
03b0a45f
TT
21742020-09-08 Tom Tromey <tromey@adacore.com>
2175
2176 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
2177
3cae4447
TT
21782020-09-08 Tom Tromey <tromey@adacore.com>
2179
2180 PR win32/25302:
2181 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
2182 (gdb_bfd_init_data): New function.
2183 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
2184
7f08fd51
TBA
21852020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2186
2187 * infrun.c (fetch_inferior_event): Use
2188 `switch_to_target_no_thread` to switch the target.
2189
3e6ff933
TT
21902020-09-06 Tom Tromey <tom@tromey.com>
2191
2192 * symfile.h (dwarf2_free_objfile): Don't declare.
2193
e56798df
AKS
21942020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2195
2196 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
2197 to match 16 byte real/complex type generated by Flang compiler.
2198
8f5c6526
TV
21992020-09-03 Tom de Vries <tdevries@suse.de>
2200
2201 PR breakpoint/26546
2202 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
2203 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
2204
c5065df0
SM
22052020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
2206
2207 * maint.c (index_digits): New function.
2208 (struct maint_print_section_data): Remove.
2209 (print_bfd_section_info): Remove print_data parameter, add arg
2210 and index_digits.
2211 (print_objfile_section_info): Likewise.
2212 (print_bfd_section_info_maybe_relocated): Likewise (plus
2213 objfile).
2214 (maintenance_info_sections): Adjust calls.
2215
02c6f3f1
TT
22162020-09-02 Tom Tromey <tromey@adacore.com>
2217
2218 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
2219 for null pointers.
2220 (ada_varobj_adjust_for_child_access): Special-case null pointers.
2221
ef5e5b0b
SM
22222020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
2223
2224 * bcache.h (struct bcache) <insert>: Change type of `added` to
2225 pointer to bool.
2226 * bcache.c (bcache::insert): Likewise.
2227 * gdbtypes.c (check_types_worklist): Adjust.
2228 * psymtab.c (add_psymbol_to_bcache): Adjust.
2229
973695d6
KB
22302020-08-31 Kevin Buettner <kevinb@redhat.com>
2231
2232 * corelow.c (unordered_set): Include.
2233 (class core_target): Add field 'm_core_unavailable_mappings'.
2234 (core_target::build_file_mappings): Print only one warning
2235 per inaccessible file. Add unavailable/broken mappings
2236 to m_core_unavailable_mappings.
2237 (core_target::xfer_partial): Call...
2238 (core_target::xfer_memory_via_mappings): New method.
2239
264fc0e2
SM
22402020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
2241
2242 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
2243 type to bool.
2244
2de01bdb
SM
22452020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
2246
2247 * dwarf2/read.c (struct field_info): Fix indentation.
2248
f3bd50f1
SM
22492020-08-31 Simon Marchi <simon.marchi@efficios.com>
2250
2251 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
2252 ordering in comment.
2253 * frame.c (frame_id_eq): Fix indentation.
2254
22b9b4b0
SL
22552020-08-31 Scott Linder <scott@scottlinder.com>
2256 Simon Marchi <simon.marchi@efficios.com>
2257
2258 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
2259 inline frame ids in outer frame.
2260
84154d16
SM
22612020-08-31 Simon Marchi <simon.marchi@efficios.com>
2262
2263 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
2264 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
2265 (outer_frame_id): Use FID_STACK_OUTER instead of
2266 FID_STACK_INVALID.
2267 (frame_id_p): Don't check for outer_frame_id.
2268
8efaf6b3
SM
22692020-08-31 Simon Marchi <simon.marchi@efficios.com>
2270
2271 * frame-unwind.c (frame_unwind_got_optimized): Don't set
2272 regnum/frame in value. Call allocate_value_lazy.
2273 * frame.c (frame_unwind_register_value): Use
2274 val_print_not_saved.
2275
fe1fe7ea
SM
22762020-08-31 Simon Marchi <simon.marchi@efficios.com>
2277
2278 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
2279
f7c7700d
PA
22802020-08-29 Pedro Alves <pedro@palves.net>
2281
2282 * progspace.c (print_program_space): Use all_inferiors. Switch to
2283 the inferior before calling target_pid_to_str.
2284
e0814aae
TT
22852020-08-28 Tom Tromey <tom@tromey.com>
2286
2287 * xcoffread.c (xcoff_end_psymtab): Update comment.
2288 * dbxread.c (dbx_end_psymtab): Update comment.
2289
626d2320
TV
22902020-08-28 Tom de Vries <tdevries@suse.de>
2291
2292 PR breakpoint/26544
2293 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
2294 event_location.
2295 (create_breakpoint): Same.
2296 (base_breakpoint_decode_location): Same.
2297 (bkpt_create_sals_from_location): Same.
2298 (bkpt_decode_location): Same.
2299 (bkpt_probe_create_sals_from_location): Same.
2300 (bkpt_probe_decode_location): Same.
2301 (tracepoint_create_sals_from_location): Same.
2302 (tracepoint_decode_location): Same.
2303 (tracepoint_probe_decode_location): Same.
2304 (strace_marker_create_sals_from_location): Same.
2305 (strace_marker_decode_location): Same.
2306 (create_sals_from_location_default): Same.
2307 (decode_location_default): Same.
2308 * breakpoint.h (struct breakpoint_ops): Same.
2309 (create_breakpoint): Same.
2310 * linespec.h (decode_line_full): Same.
2311 * linespec.c (decode_line_full): Same. Throw error if
2312 result.size () == 0.
2313
df631783
PA
23142020-08-27 Pedro Alves <pedro@palves.net>
2315
2316 PR gdb/26524
2317 * breakpoint.c (until_break_fsm) <location_breakpoint,
2318 caller_breakpoint>: Delete fields.
2319 <breakpoints>: New field.
2320 <until_break_fsm>: Adjust to save a breakpoint vector instead of
2321 two individual breakpoints.
2322 (until_break_fsm::should_stop): Loop over breakpoints in the
2323 breakpoint vector.
2324 (until_break_fsm::clean_up): Adjust to clear the breakpoints
2325 vector.
2326 (until_break_command): Handle location expanding into multiple
2327 sals.
2328
b2b38aa4
PA
23292020-08-27 Pedro Alves <pedro@palves.net>
2330
2331 PR gdb/26523
2332 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
2333 bp_until breakpoints user-specified locations. Update intro
2334 comment.
2335
b886559f
SM
23362020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
2337
2338 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
2339 gdb_bfd_sections): New.
2340 * maint.c (print_bfd_section_info): Change param type to
2341 maint_print_section_data.
2342 (print_objfile_section_info): Likewise.
2343 (print_bfd_section_info_maybe_relocated): Likewise.
2344 (maintenance_info_sections): Use gdb_bfd_sections.
2345
4c6e63bf
SV
23462020-08-25 Shahab Vahedi <shahab@synopsys.com>
2347
2348 * MAINTAINERS: Add ARC target and maintainer.
2349
8d7f0635
AK
23502020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
2351
2352 * configure.tgt: ARC support for GNU/Linux.
2353 * Makefile.in (ALL_TARGET_OBJS): Likewise.
2354 * arc-linux-tdep.c: New file.
2355 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
2356 * arc-tdep.c (arc_write_pc): Use it.
2357
fdd8731b
SV
23582020-08-25 Shahab Vahedi <shahab@synopsys.com>
2359
2360 * arc-tdep.c (arc_check_for_hardware_loop): New.
2361 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
2362
22459524
SV
23632020-08-25 Shahab Vahedi <shahab@synopsys.com>
2364
2365 * arc-tdep.h: Include "gdbarch.h".
2366
995d3a19
SV
23672020-08-25 Shahab Vahedi <shahab@synopsys.com>
2368
2369 * arch/arc.h
2370 (arc_gdbarch_features): New class to stir the selection of target XML.
2371 (arc_create_target_description): Use FEATURES to choose XML target.
2372 (arc_lookup_target_description): Use arc_create_target_description
2373 to create _new_ target descriptions or return the already created
2374 ones if the FEATURES is the same.
2375 * arch/arc.c: Implementation of prototypes described above.
2376 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
2377 (arc_gdbarch_features_init): Initialize the FEATURES struct.
2378 * arc-tdep.c (*_feature_name): Make feature names consistent.
2379 (arc_register_feature): A new struct to hold information about
2380 registers of a particular target/feature.
2381 (arc_check_tdesc_feature): Check if XML provides registers in
2382 compliance with ARC_REGISTER_FEATURE structs.
2383 (arc_update_acc_reg_names): Add aliases for r58 and r59.
2384 (determine_*_reg_feature_set): Which feature name to look for.
2385 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
2386 (mach_type_to_arc_isa): Convert from a set of binutils machine types
2387 to expected ISA enums to be used in arc_gdbarch_features structs.
2388 * features/Makefile (FEATURE_XMLFILES): Add new files.
2389 * gdb/features/arc/v1-aux.c: New file.
2390 * gdb/features/arc/v1-aux.xml: Likewise.
2391 * gdb/features/arc/v1-core.c: Likewise.
2392 * gdb/features/arc/v1-core.xml: Likewise.
2393 * gdb/features/arc/v2-aux.c: Likewise.
2394 * gdb/features/arc/v2-aux.xml: Likewise.
2395 * gdb/features/arc/v2-core.c: Likewise.
2396 * gdb/features/arc/v2-core.xml: Likewise.
2397 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
2398
3945d2d7
GM
23992020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
2400 Andrew Burgess <andrew.burgess@embecosm.com>
2401
2402 PR m2/26372
fc5d6901 2403 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
2404 an assert. Remove single element array indexing pattern as the
2405 MULTI_SUBSCRIPT support will handle this case too.
2406
2677f2d3
SM
24072020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
2408
2409 * value.h (valprint_check_validity): Move declaration from
2410 here...
2411 * valprint.h (valprint_check_validity): ... to here.
2412
c426fddb
SM
24132020-08-24 Simon Marchi <simon.marchi@efficios.com>
2414
2415 * debug.h: New file.
2416 * debug.c (debug_prefixed_vprintf): New function.
2417 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
2418 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
2419
1eb8556f
SM
24202020-08-24 Simon Marchi <simon.marchi@efficios.com>
2421
2422 * infrun.h (infrun_debug_printf_1): New function declaration.
2423 (infrun_debug_printf): New macro.
2424 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
2425 throughout.
2426 (infrun_debug_printf): New function.
2427 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
2428 (handle_jit_event): Likewise.
2429
b8fff44e
MW
24302020-08-21 Mark Wielaard <mark@klomp.org>
2431
2432 * ada-lex.l: Extend register warnings diagnostics comment for g++.
2433
d19c3068
SM
24342020-08-22 Simon Marchi <simon.marchi@efficios.com>
2435
2436 * frame.c (enum class frame_id_status): New.
2437 (struct frame_info) <this_id::p>: Change type to frame_id_status.
2438 (fprintf_frame): Update.
2439 (compute_frame_id): Set frame id status to "computing" on entry.
2440 Set it back to "not_computed" on failure and to "computed" on
2441 success.
2442 (get_frame_id): Assert the frame id is not being computed.
2443 (create_sentinel_frame): Use frame_id_status::COMPUTED.
2444 (create_new_frame): Likewise.
2445 (frame_cleanup_after_sniffer): Update assert.
2446
b70e516e
SM
24472020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2448
2449 * regcache.c (pid_ptid_regcache_map): New type.
2450 (target_ptid_regcache_map): Remove.
2451 (target_pid_ptid_regcache_map): New type.
2452 (regcaches): Change type to target_pid_ptid_regcache_map.
2453 (get_thread_arch_aspace_regcache): Update.
2454 (regcache_thread_ptid_changed): Update, handle pid-like ptid
2455 case.
2456 (regcaches_size): Update.
2457 (regcache_count): Update.
2458 (registers_changed_ptid_target_pid_test): New.
2459 (_initialize_regcache): Register new test.
2460
cdd9148a
SM
24612020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2462
2463 * regcache.c (regcache_count): New.
2464 (struct regcache_test_data): New.
2465 (regcache_test_data_up): New.
2466 (populate_regcaches_for_test): New.
2467 (regcaches_test): Remove.
2468 (get_thread_arch_aspace_regcache_test): New.
2469 (registers_changed_ptid_all_test): New.
2470 (registers_changed_ptid_target_test): New.
2471 (registers_changed_ptid_target_ptid_test): New.
2472 (regcache_thread_ptid_changed): Remove regcache_count lambda.
2473 (_initialize_regcache): Register new tests.
2474
dd125343
SM
24752020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2476
2477 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
2478 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
2479 gdbarch and aspace parameter. Use current inferior's aspace.
2480 Validate regcache's arch value.
2481 (regcaches_test): Update.
2482
3ee93972
SM
24832020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2484
2485 * regcache.c (regcaches_test): Call registers_changed.
2486
33bf4c5c
TBA
24872020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2488
2489 * infrun.c (process_event_stop_test): Fix typo "breapoint".
2490
c2fd7fae
AKS
24912020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2492
2493 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
2494 to find the end of prologue for flang compiled binaries.
2495 * arm-tdep.c (arm_skip_prologue): Likewise.
2496 * i386-tdep.c (i386_skip_prologue): Likewise.
2497 * producer.c (producer_is_llvm): New function.
2498 (producer_parsing_tests): Added new tests for clang/flang.
2499 * producer.h (producer_is_llvm): New declaration.
2500
9327494e
SM
25012020-08-18 Simon Marchi <simon.marchi@efficios.com>
2502
2503 * linux-nat.c (linux_nat_debug_printf): New function.
2504 (linux_nat_debug_printf_1): New macro. Use throughout the file.
2505
d138725a
AM
25062020-08-18 Aaron Merey <amerey@redhat.com>
2507
2508 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
2509 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
2510 (CLIBS): Add DEBUGINFOD_LIBS.
2511
f9b11e6b
ST
25122020-08-17 Sergei Trofimovich <siarheit@google.com>
2513
2514 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
2515 'gdbarch_num_regs'.
2516
3ae7ab99
TT
25172020-08-17 Tom Tromey <tromey@adacore.com>
2518
2519 * ada-varobj.c (ada_varobj_decode_var): Handle case where
2520 ada_get_decoded_value returns NULL.
2521
b017825f
TT
25222020-08-17 Tom Tromey <tromey@adacore.com>
2523
2524 * python/py-inferior.c (infpy_search_memory): Use
2525 gdb_py_object_from_ulongest.
2526 * python/py-infevents.c (create_inferior_call_event_object)
2527 (create_memory_changed_event_object): Use
2528 gdb_py_object_from_ulongest.
2529 * python/py-linetable.c (ltpy_entry_get_pc): Use
2530 gdb_py_object_from_ulongest.
2531
7635cf79
SM
25322020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
2533
2534 * loc.c (class symbol_needs_eval_context): Fix indentation.
2535
f54be24b
SM
25362020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
2537
2538 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
2539 bool.
2540
53d5a2a5
TV
25412020-08-17 Tom de Vries <tdevries@suse.de>
2542
2543 PR gdb/26393
2544 * gdbtypes.c (dump_dynamic_prop): New function.
2545 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
2546
547ce8f0
TV
25472020-08-15 Tom de Vries <tdevries@suse.de>
2548
2549 PR backtrace/26390
2550 * stack.c (print_frame_args): Temporarily set the selected
2551 frame to FRAME while printing the frame's arguments.
2552
6ea815e7
PFC
25532020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2554
2555 PR breakpoints/26385
2556 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
2557 Always clear watchpoint with PTRACE_SET_DEBUGREG.
2558
6e562fa3
PFC
25592020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2560
2561 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
2562 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
2563 and >= to check return value instead of == -1 and != -1.
2564
d369b608
SM
25652020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
2566
2567 * utils.h (class gdb_argv) <as_array_view>: New method.
2568 * utils.c (gdb_argv_as_array_view_test): New.
2569 (_initialize_utils): Register selftest.
2570 * maint.c (maintenance_selftest): Use the new method.
2571
b31488a3
KR
25722020-08-13 Kamil Rytarowski <n54@gmx.com>
2573
2574 * target.h (supports_dumpcore, dumpcore): New
2575 function declarations.
2576 * target.c (supports_dumpcore, dumpcore): New
2577 functions.
2578 * target-delegates.c: Rebuild.
2579 * gcore.c (gcore_command): Use target_supports_dumpcore ()
2580 and target_dumpcore ().
2581
002a3166
AM
25822020-08-13 Aaron Merey <amerey@redhat.com>
2583
2584 * debuginfod-support.c: Replace global variables with user_data.
2585
ece5bc8a
SM
25862020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
2587
2588 * maint.c (maintenance_selftest): Split args and pass array_view
2589 to run_tests.
2590
6d8a0a5e
LM
25912020-08-12 Luis Machado <luis.machado@linaro.org>
2592
2593 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
2594 type's length.
2595 Use %s and pulongest to print the length.
2596
7cf663a9
PA
25972020-08-12 Pedro Alves <palves@redhat.com>
2598
2599 * NEWS: Move "Multi-target debugging support" item to the
2600 "Changes since GDB 9" section.
2601
27c7b875
PA
26022020-08-12 Pedro Alves <palves@redhat.com>
2603
2604 PR gdb/26336
2605 * progspace.c (program_space::remove_objfile): Invalidate the
2606 frame cache.
2607
1796a2a1
TV
26082020-08-11 Tom de Vries <tdevries@suse.de>
2609
2610 * MAINTAINERS: Mark ms1 as deleted.
2611
f8e3fe0d
LM
26122020-08-10 Luis Machado <luis.machado@linaro.org>
2613
2614 PR gdb/26310
2615
2616 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
2617 act accordingly.
2618 (aarch64_analyze_prologue_test): Add more unit tests to exercise
2619 movz/str/stur/stp skipping behavior.
2620
cc308722
LM
26212020-08-10 Luis Machado <luis.machado@linaro.org>
2622
2623 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
2624 struct user_sve_header instead of struct sve_context.
2625
041d9819
SM
26262020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
2627
2628 * read.h (dwarf2_fetch_die_loc_sect_off,
2629 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
2630 `void *` parameter with function_view.
2631 * read.c (dwarf2_fetch_die_loc_sect_off,
2632 dwarf2_fetch_die_loc_cu_off): Likewise.
2633 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
2634 (per_cu_dwarf_call): Adjust.
2635 (get_frame_address_in_block_wrapper): Remove.
2636 (indirect_synthetic_pointer): Adjust.
2637 (get_ax_pc): Remove.
2638 (dwarf2_compile_expr_to_ax): Adjust.
2639
38f8aa06
TV
26402020-08-08 Tom de Vries <tdevries@suse.de>
2641
2642 PR build/26344
2643 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
2644 constructor.
2645 * regcache.c (get_thread_arch_aspace_regcache): Same.
2646
a52b3ae2
TT
26472020-08-07 Tom Tromey <tromey@adacore.com>
2648
2649 * ravenscar-thread.c
2650 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
2651 New method.
2652 (ravenscar_thread_target::wait): Check
2653 runtime_initialized.
2654 (ravenscar_thread_target::prepare_to_store)
2655 (ravenscar_thread_target::stopped_by_sw_breakpoint)
2656 (ravenscar_thread_target::stopped_by_hw_breakpoint)
2657 (ravenscar_thread_target::stopped_by_watchpoint)
2658 (ravenscar_thread_target::stopped_data_address)
2659 (ravenscar_thread_target::core_of_thread): Use
2660 scoped_restore_current_thread and
2661 set_base_thread_from_ravenscar_task.
2662
0e29517d
TT
26632020-08-07 Tom Tromey <tromey@adacore.com>
2664
2665 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
2666
592f9bd7
TT
26672020-08-07 Tom Tromey <tromey@adacore.com>
2668
2669 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
2670 update_inferior_ptid before update_thread_list.
2671 (temporarily_change_regcache_ptid): New class.
2672 (ravenscar_thread_target::fetch_registers)
2673 (ravenscar_thread_target::store_registers)
2674 (ravenscar_thread_target::prepare_to_store): Use base thread when
2675 forwarding operation.
2676
39e2018a
TT
26772020-08-07 Tom Tromey <tromey@adacore.com>
2678
2679 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
2680 "is_pid" case.
2681
2080266b
TT
26822020-08-07 Tom Tromey <tromey@adacore.com>
2683
2684 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
2685 New methods.
2686 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
2687 first.
2688 (ravenscar_thread_target::add_thread): Rename from
2689 ravenscar_add_thread.
2690 (ravenscar_thread_target::update_thread_list): Use a lambda.
2691 (ravenscar_thread_target::xfer_partial): New method.
2692
78c02f21
TT
26932020-08-07 Tom Tromey <tromey@adacore.com>
2694
2695 * ada-lang.h (ada_task_list_iterator_ftype): Now a
2696 gdb::function_view.
2697 (iterate_over_live_ada_tasks): Change type of argument.
2698 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
2699 of argument.
2700
d5d833af
TT
27012020-08-07 Tom Tromey <tromey@adacore.com>
2702
2703 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
2704 Remove.
2705 (ravenscar_thread_target::extra_thread_info): Remove.
2706 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
2707 defer to target beneath for non-Ravenscar threads.
2708
a8ac85bb
TT
27092020-08-07 Tom Tromey <tromey@adacore.com>
2710
2711 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
2712 get_base_thread_from_ravenscar_task>: Now methods.
2713 <m_cpu_map>: New member.
2714 (ravenscar_thread_target::get_thread_base_cpu): Rename from
2715 ravenscar_get_thread_base_cpu. Check m_cpu_map.
2716 (ravenscar_thread_target::task_is_currently_active): Update.
2717 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
2718 Now a method.
2719 (ravenscar_thread_target::add_active_thread): Put initial thread
2720 into the m_cpu_map.
2721
550ab58d
TT
27222020-08-07 Tom Tromey <tromey@adacore.com>
2723
2724 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
2725 event_ptid.
2726
e9546579
TT
27272020-08-07 Tom Tromey <tromey@adacore.com>
2728
2729 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
2730 runtime_initialized.
2731
3d4470e5
TT
27322020-08-07 Tom Tromey <tromey@adacore.com>
2733
2734 * ravenscar-thread.c (ravenscar_thread_target): Don't call
2735 add_active_thread.
2736 (ravenscar_thread_target::add_active_thread): Now public.
2737 (ravenscar_inferior_created): Call add_active_thread after pushing
2738 the target.
2739
888bdb2b
SM
27402020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
2741
2742 * regcache.c (ptid_regcache_map): New type.
2743 (target_ptid_regcache_map): New type.
2744 (regcaches): Change type to target_ptid_regcache_map.
2745 (get_thread_arch_aspace_regcache): Update to regcaches' new
2746 type.
2747 (regcache_thread_ptid_changed): Likewise.
2748 (registers_changed_ptid): Likewise.
2749 (regcaches_size): Likewise.
2750 (regcaches_test): Update.
2751 (regcache_thread_ptid_changed): Update.
2752 * regcache.h (regcache_up): New type.
2753 * gdbsupport/ptid.h (hash_ptid): New struct.
2754
b161a60d
SM
27552020-08-07 Simon Marchi <simon.marchi@efficios.com>
2756
2757 * observable.h (thread_ptid_changed): Add parameter
2758 `process_stratum_target *`.
2759 * infrun.c (infrun_thread_ptid_changed): Add parameter
2760 `process_stratum_target *` and use it.
2761 (selftests): New namespace.
2762 (infrun_thread_ptid_changed): New function.
2763 (_initialize_infrun): Register selftest.
2764 * regcache.c (regcache_thread_ptid_changed): Add parameter
2765 `process_stratum_target *` and use it.
2766 (regcache_thread_ptid_changed): New function.
2767 (_initialize_regcache): Register selftest.
2768 * thread.c (thread_change_ptid): Pass target to
2769 thread_ptid_changed observable.
2770
d2854d8d
CT
27712020-08-06 Caroline Tice <cmtice@google.com>
2772
fe4c3d43
SM
2773 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
2774 (struct dwp_sections): Update field comments. Add loclists and
2775 rnglists fields.
2776 (struct virtual_v2_dwo_sections): Rename struct to
2777 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
2778 size & offset fields for loclists and rnglists.
2779 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
2780 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
2781 skipping dummy type units.
2782 (create_dwp_hash_table): Update the large comment above the function to
2783 discuss Version 5 DWP files as well, with references. Update all the
2784 version checks in the function to check for version 5 as well. Add new
2785 section at the end to create dwp hash table for version 5.
2786 (create_dwp_v2_section): Rename function to
2787 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
2788 Add V5 to error message text.
2789 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
2790 into calls to create_dwp_v2_or_v5_section.
2791 (create_dwo_unit_in_dwp_v5): New function.
2792 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
2793 check for version2; add else clause to handle version 5.
2794 (open_and_init_dwo_file): Add code to check dwarf version & only call
2795 create_debug_types_hash_table (with sections.types) if version is not 5;
2796 else call create_debug_type_hash_table, with sections.info.
2797 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
2798 version 5.
2799 (dwarf2_locate_v5_dwp_sections): New function.
2800 (open_and_init_dwp_file): Add else-if clause for version 5 to call
2801 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 2802
159ed7d9
SM
28032020-08-06 Simon Marchi <simon.marchi@efficios.com>
2804
2805 * regcache.h (class regcache): Remove friend
2806 registers_changed_ptid.
2807 <regcache_thread_ptid_changed>: Remove.
2808 <regcaches>: Remove.
2809 * regcache.c (regcache::regcaches): Rename to...
2810 (regcaches): ... this. Make static.
2811 (get_thread_arch_aspace_regcache): Update.
2812 (regcache::regcache_thread_ptid_changed): Rename to...
2813 (regcache_thread_ptid_changed): ... this. Update.
2814 (class regcache_access): Remove.
2815 (regcaches_test): Update.
2816 (_initialize_regcache): Update.
2817 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
2818 <forward_list>.
2819
174981ae
SM
28202020-08-06 Simon Marchi <simon.marchi@efficios.com>
2821
2822 * regcache.h (class regcache) <current_regcache>: Rename to...
2823 <regcaches>: ... this. Move doc here.
2824 * regcache.c (regcache::current_regcache) Rename to...
2825 (regcache::regcaches): ... this. Move doc to header.
2826 (get_thread_arch_aspace_regcache): Update.
2827 (regcache::regcache_thread_ptid_changed): Update.
2828 (registers_changed_ptid): Update.
2829 (class regcache_access) <current_regcache_size>: Rename to...
2830 <regcaches_size>: ... this.
2831 (current_regcache_test): Rename to...
2832 (regcaches_test): ... this.
2833 (_initialize_regcache): Update.
2834
ed908db6
VC
28352020-08-06 Victor Collod <vcollod@nvidia.com>
2836
2837 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
2838
b5582ab7
KB
28392020-08-05 Kevin Buettner <kevinb@redhat.com>
2840
2841 * corelow.c (core_target::build_file_mappings): Don't output
2842 null pathname in warning.
2843
ea946b86
SM
28442020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
2845
2846 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
2847 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
2848 gdb.dwarf2/dw2-single-line-discriminators.exp,
2849 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
2850
57d02173
TT
28512020-08-05 Tom Tromey <tromey@adacore.com>
2852
2853 PR rust/26197:
2854 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
2855 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
2856 Fix off-by-one and type size errors in ordinary case.
2857
5555c86d
TV
28582020-08-05 Tom de Vries <tdevries@suse.de>
2859
2860 * gdbtypes.c (type_not_allocated, type_not_associated): Use
2861 "prop->const_val () == 0" instead of "prop->const_val () != 0".
2862
97916bfe
SM
28632020-08-04 Simon Marchi <simon.marchi@efficios.com>
2864
2865 * frame.h (frame_id_p): Return bool.
2866 (frame_id_artificial_p): Return bool.
2867 (frame_id_eq): Return bool.
2868 (has_stack_frames): Return bool.
2869 (get_selected_frame): Fix typo in comment.
2870 (get_frame_pc_if_available): Return bool.
2871 (get_frame_address_in_block_if_available): Return bool.
2872 (get_frame_func_if_available): Return bool.
2873 (read_frame_register_unsigned): Return bool.
2874 (get_frame_register_bytes): Return bool.
2875 (safe_frame_unwind_memory): Return bool.
2876 (deprecated_frame_register_read): Return bool.
2877 (frame_unwinder_is): Return bool.
2878 * frame.c (struct frame_info) <prev_arch::p>: Change type to
2879 bool.
2880 <this_id::p>: Likewise.
2881 <prev_p>: Likewise.
2882 (frame_stash_add): Return bool.
2883 (get_frame_id): Use bool.
2884 (frame_id_build_special) Use bool.
2885 (frame_id_build_unavailable_stack): Use bool.
2886 (frame_id_build): Use bool.
2887 (frame_id_p): Return bool, use true/false instead of 1/0.
2888 (frame_id_artificial_p): Likewise.
2889 (frame_id_eq): Likewise.
2890 (frame_id_inner): Likewise.
2891 (get_frame_func_if_available): Likewise.
2892 (read_frame_register_unsigned): Likewise.
2893 (deprecated_frame_register_read): Likewise.
2894 (get_frame_register_bytes): Likewise.
2895 (has_stack_frames): Likewise.
2896 (inside_main_func): Likewise.
2897 (inside_entry_func): Likewise.
2898 (get_frame_pc_if_available): Likewise.
2899 (get_frame_address_in_block_if_available): Likewise.
2900 (frame_unwinder_is): Likewise.
2901 (safe_frame_unwind_memory): Likewise.
2902 (frame_unwind_arch): Likewise.
2903
fedfee88
SM
29042020-08-04 Simon Marchi <simon.marchi@efficios.com>
2905
2906 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
2907 type to cached_copy_status.
2908 (fprintf_frame): Adjust.
2909 (get_frame_func_if_available): Adjust.
2910 (frame_cleanup_after_sniffer): Adjust.
2911
6cfa9b59
MW
29122020-08-04 Mark Wielaard <mark@klomp.org>
2913
2914 * MAINTAINERS (Write After Approval): Update email address.
2915
66d6346b
SM
29162020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2917
2918 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
2919 dynamic_prop::const_val.
2920
8a6d5e35
SM
29212020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2922
2923 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
2924 dynamic_prop::kind.
2925
51d6067d
SM
29262020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2927
2928 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
2929
b26e2ae7
JM
29302020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
2931
2932 * configure.tgt: Set gdb_sim for bpf-*-* targets.
2933
39791af2
JM
29342020-08-04 Weimin Pan <weimin.pan@oracle.com>
2935 Jose E. Marchesi <jose.marchesi@oracle.com>
2936
2937 * configure.tgt: Add entry for bpf-*-*.
2938 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
2939 (ALLDEPFILES): Add bpf-tdep.c.
2940 * bpf-tdep.c: New file.
2941 * MAINTAINERS: Add bpf target and maintainer.
2942 * NEWS: Mention the support for the new target.
2943
521894aa
TV
29442020-08-04 Tom de Vries <tdevries@suse.de>
2945
2946 PR symtab/23270
2947 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
2948 Error.
2949
5d6356e9
JB
29502020-08-03 John Baldwin <jhb@FreeBSD.org>
2951
2952 * syscalls/freebsd.xml: Regenerate.
2953
0cf82b81
JB
29542020-08-03 John Baldwin <jhb@FreeBSD.org>
2955
2956 * syscalls/update-freebsd.sh: Fix usage and year range.
2957
8f34b746
TV
29582020-08-03 Tom de Vries <tdevries@suse.de>
2959
2960 PR symtab/26333
2961 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
2962 DW_LNE_lo_user/DW_LNE_hi_user range.
2963
5e500d33
SM
29642020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
2965
2966 PR ada/26318
2967 * ada-lang.c (ada_modulus): Return 0 if property is not of const
2968 kind.
2969
78319c15
TBA
29702020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2971
2972 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
2973
4c55e970
TBA
29742020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2975
2976 * breakpoint.c (set_breakpoint_condition): Update the condition
2977 expressions after checking that the input condition string parses
2978 successfully and does not contain junk at the end.
2979
1e620590
TBA
29802020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2981
2982 * breakpoint.c (set_breakpoint_condition): Update the
2983 condition string after parsing the new condition successfully.
2984
c8693053
RO
29852020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2986
2987 * proc-api.c (_STRUCTURED_PROC): Don't define.
2988 * proc-events.c: Likewise.
2989 * proc-flags.c: Likewise.
2990 * proc-why.c: Likewise.
2991 * procfs.c: Likewise.
2992
2993 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
2994 * configure, config.in: Regenerate.
2995
5a99adb8
TV
29962020-07-30 Tom de Vries <tdevries@suse.de>
2997
2998 PR build/26320
2999 * ui-style.h (struct ui_file_style::color): Wrap m_value and
3000 m_red/m_green/m_blue in a union.
3001
8ba83e91
TV
30022020-07-29 Tom de Vries <tdevries@suse.de>
3003
3004 PR tdep/26280
3005 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
3006
f75a0693
AB
30072020-07-28 Tom Tromey <tromey@adacore.com>
3008
3009 PR symtab/26270:
3010 * symtab.h (find_pc_partial_function_sym): Declare.
3011 * cli/cli-cmds.c (disassemble_command): Use
3012 find_pc_partial_function_sym. Check asm_demangle.
3013 * blockframe.c (cache_pc_function_sym): New global.
3014 (cache_pc_function_name): Remove.
3015 (clear_pc_function_cache): Update.
3016 (find_pc_partial_function_sym): New function, from
3017 find_pc_partial_function.
3018 (find_pc_partial_function): Rewrite using
3019 find_pc_partial_function_sym.
3020
16f3242c
TT
30212020-07-28 Tom Tromey <tromey@adacore.com>
3022
3023 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
3024 help. Add usage.
3025
4888741a
TT
30262020-07-28 Tom Tromey <tromey@adacore.com>
3027
3028 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
3029 <DW_OP_GNU_variable_value>: Cast to address type.
3030
4d46f402
KR
30312020-07-28 Kamil Rytarowski <n54@gmx.com>
3032
3033 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
3034 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
3035 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
3036 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
3037 (nbsd_get_siginfo_type): New.
3038 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
3039 (_initialize_nbsd_tdep): New.
3040
d70f978b
L
30412020-07-28 H.J. Lu <hongjiu.lu@intel.com>
3042
3043 PR binutils/26301
3044 * configure: Regenerated.
3045
377170fa
L
30462020-07-28 H.J. Lu <hongjiu.lu@intel.com>
3047
3048 PR binutils/26301
3049 * configure: Regenerated.
3050
43d5901d
AB
30512020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
3052
3053 * python/py-frame.c: Remove 'user-regs.h' include.
3054 (frapy_read_register): Rewrite to make use of
3055 gdbpy_parse_register_id.
3056 * python/py-registers.c (gdbpy_parse_register_id): New function,
3057 moved here from python/py-unwind.c. Updated the return type, and
3058 also accepts register descriptor objects.
3059 * python/py-unwind.c: Remove 'user-regs.h' include.
3060 (pyuw_parse_register_id): Moved to python/py-registers.c.
3061 (unwind_infopy_add_saved_register): Update to use
3062 gdbpy_parse_register_id.
3063 (pending_framepy_read_register): Likewise.
3064 * python/python-internal.h (gdbpy_parse_register_id): Declare.
3065
14fa8fb3
AB
30662020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
3067
3068 * python/py-registers.c: Add 'user-regs.h' include.
3069 (register_descriptor_iter_find): New function.
3070 (register_descriptor_iterator_object_methods): New static global
3071 methods array.
3072 (register_descriptor_iterator_object_type): Add pointer to methods
3073 array.
3074
ddce1758
JB
30752020-07-27 John Baldwin <jhb@FreeBSD.org>
3076
3077 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
3078 for all architectures on FreeBSD 11.3 and later.
3079
a4089f52
TT
30802020-07-27 Tom Tromey <tromey@adacore.com>
3081
3082 * gcore.h (load_corefile): Don't declare.
3083
95420d30
TV
30842020-07-27 Tom de Vries <tdevries@suse.de>
3085
3086 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
3087 * config.in: Regenerate.
3088 * configure: Regenerate.
3089
05a6b8c2
EZ
30902020-07-26 Eli Zaretskii <eliz@gnu.org>
3091
3092 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
3093 ws2tcpip.h. When checking whether socklen_t type is defined, use
3094 ws2tcpip.h if it is available and sys/socket.h isn't.
3095 * configure: Regenerate.
3096 * config.in: Regenerate.
3097
e79eb02f
AB
30982020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
3099
3100 PR fortran/23051
3101 PR fortran/26139
3102 * valops.c (value_ind): Pass address to
3103 readjust_indirect_value_type.
3104 * value.c (readjust_indirect_value_type): Make parameter
3105 non-const, and add extra address parameter. Resolve original type
3106 before using it.
3107 * value.h (readjust_indirect_value_type): Update function
3108 signature and comment.
3109
876518dd
TV
31102020-07-25 Tom de Vries <tdevries@suse.de>
3111
3112 PR symtab/26243
3113 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
3114 entries.
3115
f6720b1c
AM
31162020-07-24 Aaron Merey <amerey@redhat.com>
3117
3118 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
3119 * configure: Rebuild.
3120
513487e1
KB
31212020-07-23 Kevin Buettner <kevinb@redhat.com>
3122
3123 PR corefiles/26294
3124 * corelow.c (_initialize_corelow): Add period to help text
3125 for "maintenance print core-file-backed-mappings".
3126
e7bc9db8
PA
31272020-07-23 Pedro Alves <pedro@palves.net>
3128
3129 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
3130 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
3131 meanwhile.
3132 * frame.c (frame_cache_generation, get_frame_cache_generation):
3133 New.
3134 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
3135 (get_prev_frame_if_no_cycle): On exception, don't touch
3136 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
3137 * frame.h (get_frame_cache_generation): Declare.
3138
90fcc466
TV
31392020-07-23 Tom de Vries <tdevries@suse.de>
3140
3141 PR tui/26282
3142 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
3143 New default constructor.
3144
78344df7
AB
31452020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
3146
3147 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
3148 exclude non-statement entries.
3149
b089853a
KB
31502020-07-22 Kevin Buettner <kevinb@redhat.com>
3151
3152 * NEWS (New commands): Mention new command
3153 "maintenance print core-file-backed-mappings".
3154
09c2f5d4
KB
31552020-07-22 Kevin Buettner <kevinb@redhat.com>
3156
3157 * corelow.c (gdbcmd.h): Include.
3158 (core_target::info_proc_mappings): New method.
3159 (get_current_core_target): New function.
3160 (maintenance_print_core_file_backed_mappings): New function.
3161 (_initialize_corelow): Add core-file-backed-mappings to
3162 "maint print" commands.
3163
9c5ec5c2 31642020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 3165
9c5ec5c2
KB
3166 * linux-tdep.c (dump_note_entry_p): New function.
3167 (linux_dump_mapping_p_ftype): New typedef.
3168 (linux_find_memory_regions_full): Add new parameter,
3169 should_dump_mapping_p.
3170 (linux_find_memory_regions): Adjust call to
3171 linux_find_memory_regions_full.
3172 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
3173 call to linux_find_memory_regions_full.
3174
db082f59
KB
31752020-07-22 Kevin Buettner <kevinb@redhat.com>
3176
3177 * corelow.c (solist.h, unordered_map): Include.
3178 (class core_target): Add field m_core_file_mappings and
3179 method build_file_mappings.
3180 (core_target::core_target): Call build_file_mappings.
3181 (core_target::~core_target): Free memory associated with
3182 m_core_file_mappings.
3183 (core_target::build_file_mappings): New method.
3184 (core_target::xfer_partial): Use m_core_file_mappings
3185 for memory transfers.
3186 * linux-tdep.c (linux_read_core_file_mappings): New
3187 function.
3188 (linux_core_info_proc_mappings): Rewrite to use
3189 linux_read_core_file_mappings.
3190 (linux_init_abi): Register linux_read_core_file_mappings.
3191
7e183d27
KB
31922020-07-22 Kevin Buettner <kevinb@redhat.com>
3193
3194 * arch-utils.c (default_read_core_file_mappings): New function.
3195 * arch-utils.c (default_read_core_file_mappings): Declare.
3196 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
3197 * gdbarch.h, gdbarch.c: Regenerate.
3198
2735d421
KB
31992020-07-22 Kevin Buettner <kevinb@redhat.com>
3200
3201 PR corefiles/25631
3202 * corelow.c (core_target:xfer_partial): Revise
3203 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
3204 case after first checking the stratum beneath the core
3205 target.
3206 (has_all_memory): Return true.
3207 * target.c (raw_memory_xfer_partial): Revise comment
3208 regarding use of has_all_memory.
3209
e56cb451
KB
32102020-07-22 Kevin Buettner <kevinb@redhat.com>
3211
3212 * exec.h (section_table_xfer_memory): Revise declaration,
3213 replacing section name parameter with an optional callback
3214 predicate.
3215 * exec.c (section_table_xfer_memory): Likewise.
3216 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
3217 of section_table_xfer_memory.
3218
32fa152e
TT
32192020-07-22 Tom Tromey <tromey@adacore.com>
3220
3221 * mi/mi-cmd-stack.c (list_args_or_locals): Use
3222 lookup_symbol_search_name.
3223
a67a1c41
AB
32242020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
3225
3226 * python/py-registers.c (gdbpy_register_object_data_init): Remove
3227 redundant local variable.
3228 (gdbpy_get_register_descriptor): Extract descriptor vector as a
3229 reference, not pointer, update code accordingly.
3230
a7b4ff4f
SM
32312020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3232 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3233
3234 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
3235 * jit.c (jit_breakpoint_re_set_internal): Use the
3236 `skip_jit_symbol_lookup` field.
3237
2340e834
SM
32382020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3239 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3240
3241 * jit.c (jit_read_descriptor): Define the descriptor address once,
3242 use twice.
3243 (jit_breakpoint_deleted): Move the declaration of the loop variable
3244 `iter` into the loop header.
3245 (jit_breakpoint_re_set_internal): Move the declaration of the local
3246 variable `objf_data` to the first point of definition.
3247 (jit_event_handler): Move the declaration of local variables
3248 `code_entry`, `entry_addr`, and `objf` to their first point of use.
3249 Rename `objf` to `jited`.
3250
c1072906
SM
32512020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3252
3253 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
3254 Remove.
3255 * jit.c (get_jiter_objfile_data): Update.
3256
c8474dc3
TBA
32572020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3258 Simon Marchi <simon.marchi@polymtl.ca>
3259
3260 * jit.c (struct jit_program_space_data): Remove.
3261 (jit_program_space_key): Remove.
3262 (jiter_objfile_data::~jiter_objfile_data): Remove program space
3263 stuff.
3264 (get_jit_program_space_data): Remove.
3265 (jit_breakpoint_deleted): Iterate on all of the program space's
3266 objfiles.
3267 (jit_inferior_init): Likewise.
3268 (jit_breakpoint_re_set_internal): Likewise. Also change return
3269 type to void.
3270 (jit_breakpoint_re_set): Pass current_program_space to
3271 jit_breakpoint_re_set_internal.
3272
77208eb7
SM
32732020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3274
3275 * jit.h (struct jiter_objfile_data) <cached_code_address,
3276 jit_breakpoint>: Move to here from ...
3277 * jit.c (jit_program_space_data): ... here.
3278 (jiter_objfile_data::~jiter_objfile_data): Update.
3279 (jit_breakpoint_deleted): Update.
3280 (jit_breakpoint_re_set_internal): Update.
3281
8c1c720f
SM
32822020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3283
3284 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
3285 checks.
3286 (jit_read_descriptor): Remove NULL check.
3287 (jit_event_handler): Add an assertion.
3288
0e74a041
SM
32892020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3290
3291 * jit.h (struct jit_objfile_data): Split into...
3292 (struct jiter_objfile_data): ... this ...
3293 (struct jited_objfile_data): ... and this.
3294 * objfiles.h (struct objfile) <jit_data>: Remove.
3295 <jiter_data, jited_data>: New fields.
3296 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
3297 (jiter_objfile_data::~jiter_objfile_data): ... this.
3298 (get_jit_objfile_data): Rename to ...
3299 (get_jiter_objfile_data): ... this.
3300 (add_objfile_entry): Update.
3301 (jit_read_descriptor): Use get_jiter_objfile_data.
3302 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
3303 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
3304 (jit_inferior_exit_hook): Use objfile's jited_data field.
3305
238b5c9f
SM
33062020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3307
3308 * jit.h: Forward-declare `struct minimal_symbol`.
3309 (struct jit_objfile_data): Migrate to here from jit.c; also add a
3310 constructor, destructor, and an objfile* field.
3311 * jit.c (jit_objfile_data): Remove.
3312 (struct jit_objfile_data): Migrate from here to jit.h.
3313 (jit_objfile_data::~jit_objfile_data): New destructor
3314 implementation with code moved from free_objfile_data.
3315 (free_objfile_data): Delete.
3316 (get_jit_objfile_data): Update to use the jit_data field of objfile.
3317 (jit_find_objf_with_entry_addr): Ditto.
3318 (jit_inferior_exit_hook): Ditto.
3319 (_initialize_jit): Remove the call to
3320 register_objfile_data_with_cleanup.
3321 * objfiles.h (struct objfile) <jit_data>: New field.
3322
fe053b9e
TBA
33232020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3324
3325 * jit.h: Forward-declare `struct objfile`.
3326 (jit_event_handler): Add a second parameter, the JITer objfile.
3327 * jit.c (jit_read_descriptor): Change the signature to take the
3328 JITer objfile as an argument instead of the jit_program_space_data.
3329 (jit_inferior_init): Update the call to jit_read_descriptor.
3330 (jit_event_handler): Use the new JITer objfile argument when calling
3331 jit_read_descriptor.
3332 * breakpoint.c (handle_jit_event): Update the call to
3333 jit_event_handler to pass the JITer objfile.
3334
4cec0c66
JB
33352020-07-21 John Baldwin <jhb@FreeBSD.org>
3336
3337 * gdbarch.c: Regenerate.
3338 * gdbarch.h: Regenerate.
3339 * gdbarch.sh (handle_segmentation_fault): Remove method.
3340 * infrun.c (handle_segmentation_fault): Remove.
3341 (print_signal_received_reason): Remove call to
3342 handle_segmentation_fault.
3343
0e42f66a
JB
33442020-07-21 John Baldwin <jhb@FreeBSD.org>
3345
3346 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
3347 Rename to sparc64_linux_report_signal_info and add siggnal
3348 argument.
3349 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
3350 instead of sparc64_linux_handle_segmentation_fault.
3351
77bdfeb2
JB
33522020-07-21 John Baldwin <jhb@FreeBSD.org>
3353
3354 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
3355 i386_linux_report_signal_info instead of
3356 i386_linux_handle_segmentation_fault.
3357 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
3358 to i386_linux_report_signal_info and add siggnal argument.
3359 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
3360 of i386_linux_handle_segmentation_fault.
3361 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
3362 to i386_linux_report_signal_info and add siggnal argument.
3363
ad97bfc5
JB
33642020-07-21 John Baldwin <jhb@FreeBSD.org>
3365
3366 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
3367 hook if present.
3368
272bb05c
JB
33692020-07-21 John Baldwin <jhb@FreeBSD.org>
3370
3371 * gdbarch.c: Regenerate.
3372 * gdbarch.h: Regenerate.
3373 * gdbarch.sh (report_signal_info): New method.
3374 * infrun.c (print_signal_received_reason): Invoke gdbarch
3375 report_signal_info hook if present.
3376
baf8791e
AB
33772020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
3378
3379 * python/py-registers.c : Add 'unordered_map' include.
3380 (gdbpy_new_reggroup): Renamed to...
3381 (gdbpy_get_reggroup): ...this. Update to only create register
3382 group descriptors when needed.
3383 (gdbpy_reggroup_iter_next): Update.
3384
f7306dac
AB
33852020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
3386
3387 * python/py-registers.c (gdbpy_register_object_data): New static
3388 global.
3389 (gdbpy_register_object_data_init): New function.
3390 (gdbpy_new_register_descriptor): Renamed to...
3391 (gdbpy_get_register_descriptor): ...this, and update to reuse
3392 existing register descriptors where possible.
3393 (gdbpy_register_descriptor_iter_next): Update.
3394 (gdbpy_initialize_registers): Register new gdbarch data.
3395
05c309a8
SM
33962020-07-21 Simon Marchi <simon.marchi@efficios.com>
3397
3398 * linux-nat.c (stopped_pids): Make static.
3399
d1fd641e
SM
34002020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
3401
3402 PR ada/26235
3403 * gdbtypes.c (ada_discrete_type_low_bound,
3404 ada_discrete_type_high_bound): Handle undefined bounds.
3405
1de14d77
KR
34062020-07-21 Kamil Rytarowski <n54@gmx.com>
3407
3408 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
3409 declaration.
3410 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
3411 function.
3412
ed810cc7
JB
34132020-07-20 John Baldwin <jhb@FreeBSD.org>
3414
3415 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
3416 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
3417 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
3418 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
3419 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
3420 method.
3421
ae5369e7
LC
34222020-07-20 Ludovic Courtès <ludo@gnu.org>
3423
3424 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
3425 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
3426 which are deprecated in Guile 3.0.
3427 * configure.ac (try_guile_versions): Add "guile-3.0".
3428 * configure (try_guile_versions): Regenerate.
3429 * NEWS: Update entry.
3430
68cf161c
LC
34312020-07-20 Ludovic Courtès <ludo@gnu.org>
3432 Doug Evans <dje@google.com>
3433
3434 PR gdb/21104
3435 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
3436 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
3437 USING_GUILE_BEFORE_2_2.
3438 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
3439 Change type to 'scm_t_port_type *'.
3440 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
3441 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
3442 parameter and honor it. Update callers.
3443 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
3444 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
3445 functions.
3446 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
3447 USING_GUILE_BEFORE_2_2.
3448 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
3449 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
3450 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
3451 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
3452 and 'SCM_PORT_TYPE'.
3453 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
3454 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
3455 (gdbscm_memory_port_read, gdbscm_memory_port_write)
3456 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
3457 [!USING_GUILE_BEFORE_2_2]: New functions.
3458 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
3459 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
3460 'gdbscm_memory_port_read'.
3461 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
3462 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
3463 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
3464 function.
3465 (ioscm_init_memory_port): Remove.
3466 (ioscm_init_memory_port_stream): New function
3467 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
3468 function.
3469 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
3470 Return scm_from_uint (0).
3471 (gdbscm_set_memory_port_read_buffer_size_x)
3472 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
3473 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
3474 Return scm_from_uint (0).
3475 (gdbscm_set_memory_port_write_buffer_size_x)
3476 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
3477 * configure.ac (try_guile_versions): Add "guile-2.2".
3478 * configure: Regenerate.
3479 * NEWS: Add entry.
3480
aee91db3
TT
34812020-07-18 Tom Tromey <tom@tromey.com>
3482
3483 * linux-nat.c (linux_multi_process): Remove.
3484 (linux_nat_target::supports_multi_process): Return true.
3485
0e267416
AB
34862020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
3487
3488 * arch/riscv.c (riscv_tdesc_cache): Change map type.
3489 (riscv_lookup_target_description): Return pointer out of
3490 unique_ptr.
3491 * target-descriptions.c (allocate_target_description): Add
3492 comment.
3493 (target_desc_deleter::operator()): Likewise.
3494 * target-descriptions.h (struct target_desc_deleter): Moved to
3495 gdbsupport/tdesc.h.
3496 (target_desc_up): Likewise.
3497
f80c8ec4
TT
34982020-07-17 Tom Tromey <tromey@adacore.com>
3499
3500 * linux-nat.c (linux_nat_target::supports_non_stop)
3501 (linux_nat_target::always_non_stop_p): Use "true".
3502 (linux_nat_target::supports_disable_randomization): Use "true" and
3503 "false".
3504
d0ce17d8
CT
35052020-07-16 Caroline Tice <cmtice@google.com>
3506
3507 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
3508 (RNGLIST_HEADER_SIZE64): New constant definition.
3509 (struct dwop_section_names): Add rnglists_dwo.
3510 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
3511 (struct loclist_header): Rename to 'loclists_rnglists_header'.
3512 (struct dwo_sections): Add rnglists field.
3513 (read_attribut_reprocess): Add tag parameter.
3514 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
3515 (cu_debug_rnglists_section): New function (decl & definition).
3516 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
3517 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
3518 die whose range is being checked; get rnglist section from
3519 cu_debug_rnglists_section, to get from either objfile or dwo file as
3520 appropriate. Add cases for DW_RLE_base_addressx,
3521 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
3522 the base address to DW_RLE_offset_pairs (not to all ranges), moving
3523 test inside if-condition and updating complaint message.
3524 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
3525 dwarf2_rnglists_process.
3526 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
3527 dwarf2_ranges_process.
3528 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
3529 need_ranges_base and update comment appropriately. Also pass die tag
3530 to dwarf2_ranges_read.
3531 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
3532 need_ranges_base and update comment appropriately. Also pass die tag
3533 to dwarf2_ranges_process.
3534 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
3535 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
3536 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
3537 need_ranges_base and update comment appropriately. Also pass die tag
3538 to read_attribute_reprocess and dwarf2_ranges_read.
3539 (read_loclist_header): Rename function to read_loclists_rnglists_header,
3540 and update function comment appropriately.
3541 (read_loclist_index): Call read_loclists_rnglists_header instead of
3542 read_loclist_header.
3543 (read_rnglist_index): New function.
3544 (read_attribute_reprocess): Add tag parameter. Add code for
3545 DW_FORM_rnglistx, passing tag to read_rnglist_index.
3546 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
3547
3dcc261c
AB
35482020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
3549
3550 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
3551 being resolved.
3552
ccb9eba6
AB
35532020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
3554
3555 * arch-utils.c (show_architecture): Update formatting of messages.
3556
cf88be68
SM
35572020-07-12 Simon Marchi <simon.marchi@efficios.com>
3558
3559 * gdbtypes.h (struct type) <bounds>: Handle array and string
3560 types.
3561 * ada-lang.c (assign_aggregate): Use type::bounds on
3562 array/string type.
3563 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
3564 * c-varobj.c (c_number_of_children): Likewise.
3565 (c_describe_child): Likewise.
3566 * eval.c (evaluate_subexp_for_sizeof): Likewise.
3567 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
3568 (f_type_print_base): Likewise.
3569 * f-valprint.c (f77_array_offset_tbl): Likewise.
3570 (f77_get_upperbound): Likewise.
3571 (f77_print_array_1): Likewise.
3572 * guile/scm-type.c (gdbscm_type_range): Likewise.
3573 * m2-typeprint.c (m2_array): Likewise.
3574 (m2_is_long_set_of_type): Likewise.
3575 * m2-valprint.c (get_long_set_bounds): Likewise.
3576 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
3577 * python/py-type.c (typy_range): Likewise.
3578 * rust-lang.c (rust_internal_print_type): Likewise.
3579 * type-stack.c (type_stack::follow_types): Likewise.
3580 * valarith.c (value_subscripted_rvalue): Likewise.
3581 * valops.c (value_cast): Likewise.
3582
509971ae
SM
35832020-07-12 Simon Marchi <simon.marchi@efficios.com>
3584
3585 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
3586 callers to use the equivalent accessor methods.
3587
107406b7
SM
35882020-07-12 Simon Marchi <simon.marchi@efficios.com>
3589
3590 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
3591 (struct type) <bit_stride>: New method.
3592 (TYPE_BIT_STRIDE): Remove.
3593 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
3594
bb789949
SM
35952020-07-12 Simon Marchi <simon.marchi@efficios.com>
3596
3597 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
3598 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
3599 callers to use the equivalent accessor methods instead.
3600
39498edb
SM
36012020-07-12 Simon Marchi <simon.marchi@efficios.com>
3602
3603 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
3604 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
3605 callers to use the equivalent accessor methods instead.
3606
3b606f38
SM
36072020-07-12 Simon Marchi <simon.marchi@efficios.com>
3608
3609 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
3610 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
3611 to use dynamic_prop::kind.
3612
064d9cb9
SM
36132020-07-12 Simon Marchi <simon.marchi@efficios.com>
3614
3615 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
3616 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
3617 to get the bound property's kind and check against
3618 PROP_UNDEFINED.
3619
5537ddd0
SM
36202020-07-12 Simon Marchi <simon.marchi@efficios.com>
3621
3622 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
3623 all callers to use type::range_bounds followed by
3624 dynamic_prop::{low,high}.
3625
8c2e4e06
SM
36262020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
3627
3628 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
3629 const_val, set_const_val, baton, set_locexpr, set_loclist,
3630 set_addr_offset, variant_parts, set_variant_parts,
3631 original_type, set_original_type>: New methods.
3632 <kind>: Rename to...
3633 <m_kind>: ... this. Update all users to use the new methods
3634 instead.
3635 <data>: Rename to...
3636 <m_data>: ... this. Update all users to use the new methods
3637 instead.
3638
7c6f2712
SM
36392020-07-12 Simon Marchi <simon.marchi@efficios.com>
3640
3641 * gdbtypes.c (get_discrete_bounds): Return failure if
3642 the range type's bounds are not both defined and constant
3643 values.
3644 (get_array_bounds): Update comment. Remove undefined bound check.
3645
599088e3
SM
36462020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
3647
3648 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
3649 the type::bounds method directly.
3650
c4dfcb36
SM
36512020-07-12 Simon Marchi <simon.marchi@efficios.com>
3652
3653 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
3654 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
3655 are used to set the range type's bounds to use set_bounds.
3656
0a278aa7
PW
36572020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3658
3659 * exec.c (_initialize_exec): Update exec-file-mismatch help.
3660
cce20f10
PA
36612020-07-10 Pedro Alves <pedro@palves.net>
3662
3663 * gdbthread.h (inferior_ref): Define.
3664 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
3665 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
3666 * thread.c
3667 (scoped_restore_current_thread::restore):
3668 Adjust to gdb::ref_ptr.
3669 (scoped_restore_current_thread::~scoped_restore_current_thread):
3670 Remove manual decref handling.
3671 (scoped_restore_current_thread::scoped_restore_current_thread):
3672 Adjust to use
3673 inferior_ref::new_reference/thread_info_ref::new_reference.
3674 Incref the thread before calling get_frame_id instead of after.
3675 Let TARGET_CLOSE_ERROR propagate.
3676
6d7aa592
PA
36772020-07-10 Pedro Alves <pedro@palves.net>
3678
3679 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
3680 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
3681 NOT_AVAILABLE_ERROR.
3682 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
3683 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
3684
b3e3a4c1
SM
36852020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3686 Pedro Alves <pedro@palves.net>
3687
3688 PR gdb/26199
3689 * infrun.c (threads_are_resumed_pending_p): Delete.
3690 (do_target_wait): Remove threads_are_executing and
3691 threads_are_resumed_pending_p checks from the inferior_matches
3692 lambda. Update comments.
3693
d6cc5d98
PA
36942020-07-10 Pedro Alves <pedro@palves.net>
3695
3696 PR gdb/26199
3697 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
3698 executing threads.
3699
7d3badc6
PA
37002020-07-10 Pedro Alves <pedro@palves.net>
3701
3702 PR gdb/26199
3703 * infrun.c (handle_no_resumed): Handle multiple targets.
3704
42bd97a6
PA
37052020-07-10 Pedro Alves <pedro@palves.net>
3706
3707 PR gdb/26199
3708 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
3709 target_is_async_p.
3710
43667cc6
PA
37112020-07-10 Pedro Alves <pedro@palves.net>
3712
3713 PR gdb/26199
3714 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
3715 threads, not all threads.
3716
96118d11
PA
37172020-07-10 Pedro Alves <pedro@palves.net>
3718
3719 PR gdb/26199
3720 * remote.c (remote_target::open_1): Pass remote target pointer as
3721 data to create_async_event_handler.
3722 (remote_async_inferior_event_handler): Mark async event handler
3723 before returning if the remote target still has either pending
3724 events or unacknowledged notifications.
3725
54904d81
JB
37262020-07-10 John Baldwin <jhb@FreeBSD.org>
3727
3728 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
3729 declaration.
3730 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
3731 function.
3732
f37e5866
JB
37332020-07-09 John Baldwin <jhb@FreeBSD.org>
3734
3735 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
3736 inferior_ptid.
3737
fc238d4a
JB
37382020-07-09 John Baldwin <jhb@FreeBSD.org>
3739
3740 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
3741 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
3742 AT_FREEBSD_PS_STRINGS.
3743
6e2469ff
HD
37442020-07-08 Hannes Domani <ssbssa@yahoo.de>
3745
3746 * auto-load.c (auto_load_objfile_script_1): Convert drive part
3747 of debugfile path on Windows.
3748
d1076c41
JB
37492020-07-08 John Baldwin <jhb@FreeBSD.org>
3750
3751 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
3752 argument to 'data'.
3753
15f3b077
TT
37542020-07-08 Tom Tromey <tromey@adacore.com>
3755
3756 * ada-lang.c (ada_exception_message_1): Use read_memory.
3757
9fc501fd
AB
37582020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3759
3760 PR python/22748
3761 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
3762 special handling for inline frames.
3763 * findvar.c (value_of_register_lazy): Skip inline frames when
3764 creating lazy register values.
3765 * frame.c (frame_id_computed_p): Delete definition.
3766 * frame.h (frame_id_computed_p): Delete declaration.
3767
64cb3757
AB
37682020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3769
3770 * NEWS: Mention additions to Python API.
3771 * python/py-arch.c (archpy_register_groups): New function.
3772 (arch_object_methods): Add 'register_groups' method.
3773 * python/py-registers.c (reggroup_iterator_object): New struct.
3774 (reggroup_object): New struct.
3775 (gdbpy_new_reggroup): New function.
3776 (gdbpy_reggroup_to_string): New function.
3777 (gdbpy_reggroup_name): New function.
3778 (gdbpy_reggroup_iter): New function.
3779 (gdbpy_reggroup_iter_next): New function.
3780 (gdbpy_new_reggroup_iterator): New function
3781 (gdbpy_initialize_registers): Register new types.
3782 (reggroup_iterator_object_type): Define new Python type.
3783 (gdbpy_reggroup_getset): New static global.
3784 (reggroup_object_type): Define new Python type.
3785 * python/python-internal.h
3786
0f767f94
AB
37872020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3788
3789 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
3790 * python/py-arch.c (archpy_registers): New function.
3791 (arch_object_methods): Add 'registers' method.
3792 * python/py-registers.c: New file.
3793 * python/python-internal.h
3794 (gdbpy_new_register_descriptor_iterator): Declare.
3795 (gdbpy_initialize_registers): Declare.
3796 * python/python.c (do_start_initialization): Call
3797 gdbpy_initialize_registers.
3798 * NEWS: Mention additions to the Python API.
3799
87dbc774
AB
38002020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3801
3802 * NEWS: Mention new Python API method.
3803 * python/py-unwind.c (pending_framepy_architecture): New function.
3804 (pending_frame_object_methods): Add architecture method.
3805
3bc98c0c
AB
38062020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3807
3808 * gdbarch.c: Regenerate.
3809 * gdbarch.h: Regenerate.
3810 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
3811 (gdbarch_data): Use internal_error for the case where
3812 deprecated_set_gdbarch_data was originally needed.
3813 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
3814 and use passed in obstack.
3815 (libunwind_frame_set_descr): Should no longer get back NULL from
3816 gdbarch_data.
3817 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
3818 type.
3819 * user-regs.c (user_regs_init): Update parameters, and use passed
3820 in obstack.
3821 (user_reg_add): Should no longer get back NULL from gdbarch_data.
3822 (_initialize_user_regs): Register as a pre-init gdbarch data type.
3823
d8cc8af6
TV
38242020-07-06 Tom de Vries <tdevries@suse.de>
3825
3826 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
3827 End-Of-Sequence in lte_is_less_than.
3828 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
3829 "gdb: Don't reorder line table entries too much when sorting".
3830
947f7597
TV
38312020-07-06 Tom de Vries <tdevries@suse.de>
3832
3833 PR tui/26205
3834 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
3835
1e7c1b22
TV
38362020-07-05 Tom de Vries <tdevries@suse.de>
3837
3838 PR build/26187
3839 * inferior.h (struct infcall_suspend_state_deleter): If available, use
3840 std::uncaught_exceptions instead of deprecated
3841 std::uncaught_exception.
3842
a36158ec
SM
38432020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3844
3845 * macroexp.h (macro_stringify): Return
3846 gdb::unique_xmalloc_ptr<char>.
3847 * macroexp.c (macro_stringify): Likewise.
3848 * macrotab.c (fixup_definition): Update.
3849
14d960c8
SM
38502020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3851
3852 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
3853 (lex_one_token): Update.
3854 * macroexp.c (struct macro_buffer) <release>: Return
3855 gdb::unique_xmalloc_ptr<char>.
3856 (macro_stringify): Update.
3857 (macro_expand): Update.
3858 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
3859 * macroexp.h (macro_expand_next): Likewise.
3860
211d5b1c
SM
38612020-07-02 Simon Marchi <simon.marchi@efficios.com>
3862
3863 * macroexp.h (macro_lookup_ftype): Remove.
3864 (macro_expand, macro_expand_once, macro_expand_next): Remove
3865 lookup function parameters, add scope parameter.
3866 * macroexp.c (scan, substitute_args, expand, maybe_expand,
3867 macro_expand, macro_expand_once, macro_expand_next): Likewise.
3868 * macroscope.h (standard_macro_lookup): Change parameter type
3869 to macro_scope.
3870 * macroscope.c (standard_macro_lookup): Likewise.
3871 * c-exp.y (lex_one_token): Update.
3872 * macrocmd.c (macro_expand_command): Likewise.
3873 (macro_expand_once_command): Likewise.
3874
b1a35af2
SM
38752020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3876
3877 * inf-loop.c (inferior_event_handler): Remove client_data param.
3878 * inf-loop.h (inferior_event_handler): Likewise.
3879 * infcmd.c (step_1): Adjust.
3880 * infrun.c (proceed): Adjust.
3881 (fetch_inferior_event): Remove client_data param.
3882 (infrun_async_inferior_event_handler): Adjust.
3883 * infrun.h (fetch_inferior_event): Remove `void *` param.
3884 * linux-nat.c (handle_target_event): Adjust.
3885 * record-btrace.c (record_btrace_handle_async_inferior_event):
3886 Adjust.
3887 * record-full.c (record_full_async_inferior_event_handler):
3888 Adjust.
3889 * remote.c (remote_async_inferior_event_handler): Adjust.
3890
1cdf9e33
TT
38912020-07-01 Tom Tromey <tom@tromey.com>
3892
3893 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
3894 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
3895
32c1e210
TT
38962020-07-01 Tom Tromey <tom@tromey.com>
3897
3898 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
3899 tui_gen_win_info.
3900 (tui_win_info::make_window): Merge with
3901 tui_gen_win_info::make_window.
3902 (tui_win_info::make_visible): Move from tui_gen_win_info.
3903 * tui/tui-win.c (tui_win_info::max_width): Move from
3904 tui_gen_win_info.
3905 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
3906 type.
3907 <window_factory>: Likewise.
3908 * tui/tui-layout.c (tui_win_info::resize): Move from
3909 tui_gen_win_info.
3910 (make_standard_window): Change return type.
3911 (get_locator_window, tui_get_window_by_name): Likewise.
3912 (tui_layout_window::apply): Remove a cast.
3913 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
3914 (struct tui_win_info): Merge with tui_gen_win_info.
3915 (struct tui_gen_win_info): Remove.
3916
a30cb6da
TT
39172020-07-01 Tom Tromey <tom@tromey.com>
3918
3919 * tui/tui-stack.h (struct tui_locator_window): Derive from
3920 tui_win_info.
3921 <do_scroll_horizontal, do_scroll_vertical>: New methods.
3922 <can_box>: New method.
3923
1eb2161f
TT
39242020-07-01 Tom Tromey <tom@tromey.com>
3925
3926 * tui/tui-stack.h (struct tui_locator_window): Remove body.
3927
7134f2eb
TT
39282020-07-01 Tom Tromey <tom@tromey.com>
3929
3930 * tui/tui-regs.c (tui_data_window::display_registers_from)
3931 (tui_data_window::display_registers_from)
3932 (tui_data_window::first_data_item_displayed)
3933 (tui_data_window::delete_data_content_windows): Update.
3934 (tui_data_window::refresh_window, tui_data_window::no_refresh):
3935 Remove.
3936 (tui_data_window::check_register_values): Update.
3937 (tui_data_item_window::rerender): Add parameters. Update.
3938 (tui_data_item_window::refresh_window): Remove.
3939 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
3940 virtual.
3941 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
3942 tui_gen_win_info.
3943 <refresh_window, max_height, min_height>: Remove.
3944 <rerender>: Add parameters.
3945 <x, y, visible>: New members.
3946 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
3947 <m_item_width>: New member.
3948
22b7b041
TT
39492020-07-01 Tom Tromey <tom@tromey.com>
3950
3951 * tui/tui-regs.c (tui_data_window::show_register_group)
3952 (tui_data_window::check_register_values): Update.
3953 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
3954 from item_no.
3955
c9753adb
TT
39562020-07-01 Tom Tromey <tom@tromey.com>
3957
3958 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
3959 useless "if".
3960
9ab26b4a
TT
39612020-07-01 Tom Tromey <tom@tromey.com>
3962
3963 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
3964 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
3965
e555083f
TT
39662020-07-01 Tom Tromey <tom@tromey.com>
3967
3968 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
3969 * tui/tui-winsource.h (enum tui_line_or_address_kind)
3970 (struct tui_line_or_address): Move from tui-data.h.
3971 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
3972 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
3973 (tui_cmd_window, tui_source_window_base, tui_source_window)
3974 (tui_disasm_window): Don't declare.
3975 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
3976 to tui-winsource.h.
3977 (SINGLE_KEY): Move to tui-stack.c.
3978
7a02bab7
TT
39792020-07-01 Tom Tromey <tom@tromey.com>
3980
3981 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
3982 std::string.
3983 * tui/tui-regs.c (class tab_expansion_file): New.
3984 (tab_expansion_file::write): New method.
3985 (tui_register_format): Change return type. Use
3986 tab_expansion_file.
3987 (tui_get_register, tui_data_window::display_registers_from)
3988 (tui_data_item_window::rerender): Update.
3989 * tui/tui-io.h (tui_expand_tabs): Don't declare.
3990 * tui/tui-io.c (tui_expand_tabs): Remove.
3991
ea68593b
TT
39922020-07-01 Tom Tromey <tom@tromey.com>
3993
3994 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
3995
a8caed5d
FS
39962020-07-01 Fangrui Song <maskray@google.com>
3997
3998 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
3999
9cdf9820
AKS
40002020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4001
4002 * dwarf2/read.c (set_die_type): Removed conditions to restrict
4003 forms for DW_AT_associated and DW_AT_allocated attributes,
4004 which is already checked in function attr_to_dynamic_prop.
4005
a1520ad8
TT
40062020-06-30 Tom Tromey <tromey@adacore.com>
4007
4008 * dwarf2/read.c (quirk_rust_enum): Correctly call
4009 alloc_rust_variant for default-less enum.
4010
5ac58899
TT
40112020-06-30 Tom Tromey <tromey@adacore.com>
4012
4013 PR build/26183:
4014 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
4015 gdb::to_string.
4016
19b187a9
SM
40172020-06-29 Simon Marchi <simon.marchi@efficios.com>
4018
4019 * gdbarch.sh (displaced_step_copy_insn): Update doc.
4020 * gdbarch.h: Re-generate.
4021
cd4c4c07
TT
40222020-06-28 Tom Tromey <tom@tromey.com>
4023
4024 * command.h (cmd_types): Remove.
4025 (cmd_type): Don't declare.
4026 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
4027 typedef.
4028 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
4029 * cli/cli-decode.c (cmd_type): Remove.
4030
05779d57
PA
40312020-06-27 Pedro Alves <palves@redhat.com>
4032
4033 * fork-child.c (prefork_hook): Adjust.
4034 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
4035 Delete.
4036 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
4037 * inferior.c (inferior::set_tty, inferior::tty): New methods.
4038 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
4039 Remove declarations.
4040 (struct inferior) <set_tty, tty>: New methods.
4041 (struct inferior) <terminal>: Rename to ...
4042 (struct inferior) <m_terminal>: ... this and make private.
4043 * main.c (captured_main_1): Adjust.
4044 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
4045 (mi_cmd_inferior_tty_show): Adjust.
4046 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
4047 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
4048
1776e3e5
NA
40492020-06-26 Nick Alcock <nick.alcock@oracle.com>
4050
4051 * configure.ac: Add --enable-libctf: handle --disable-static
4052 properly.
4053 * acinclude.m4: sinclude ../config/enable.m4.
4054 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
4055 (LIBCTF): Substitute in.
4056 (CTF_DEPS): New, likewise.
4057 (CLIBS): libctf needs symbols from libbfd: move earlier.
4058 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
4059 flags.
4060 * ctfread.c: Surround in ENABLE_LIBCTF.
4061 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
4062 * configure: Regenerate.
4063 * config.in: Likewise.
4064
58373b80
SM
40652020-06-25 Simon Marchi <simon.marchi@efficios.com>
4066
4067 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
4068
277474ee
SM
40692020-06-25 Simon Marchi <simon.marchi@efficios.com>
4070
4071 * inferior.h (struct inferior) <terminal>: Change type to
4072 gdb::unique_xmalloc_ptr<char>.
4073 * inferior.c (inferior::~inferior): Don't free inf->terminal.
4074 * infcmd.c (set_inferior_io_terminal): Don't free terminal
4075 field, adjust to unique pointer.
4076 (get_inferior_io_terminal): Adjust to unique pointer.
4077
6d74da72
AB
40782020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4079
4080 * riscv-tdep.c (riscv_print_registers_info): Loop over all
4081 registers, not just the known core set of registers.
4082
2e52d038
AB
40832020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4084
4085 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
4086 fflags, frm, and fcsr registers.
4087 (riscv_register_reggroup_p): Remove unknown CSRs from save and
4088 restore groups.
4089 (riscv_tdesc_unknown_reg): New function.
4090 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
4091 tdesc_use_registers.
4092 * riscv-tdep.h (struct gdbarch_tdep): Add
4093 unknown_csrs_first_regnum, unknown_csrs_count,
4094 duplicate_fflags_regnum, duplicate_frm_regnum, and
4095 duplicate_fcsr_regnum fields.
4096
be64fd07
AB
40972020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4098
4099 * target-descriptions.c (tdesc_use_registers): Add new parameter a
4100 callback, use the callback (when not null) to help number unknown
4101 registers.
4102 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
4103 (tdesc_use_registers): Add extra parameter to declaration.
4104
3b9fce96
AB
41052020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4106
4107 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
4108 in the file.
4109 (class riscv_pending_register_alias): Likewise.
4110 (riscv_register_feature::register_info): Change 'required_p' field
4111 to 'required', and change its type. Add 'check' member function.
4112 (riscv_register_feature::register_info::check): Define new member
4113 function.
4114 (riscv_xreg_feature): Change initialisation of 'required' field.
4115 (riscv_freg_feature): Likewise.
4116 (riscv_virtual_feature): Likewise.
4117 (riscv_csr_feature): Likewise.
4118 (riscv_check_tdesc_feature): Take extra parameter, the csr
4119 tdesc_feature, rewrite the function to use the new
4120 riscv_register_feature::register_info::check function.
4121 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
4122
865bad26
AB
41232020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4124
4125 * features/Makefile: Remove all references to the deleted files
4126 below.
4127 * features/riscv/32bit-csr.c: Deleted.
4128 * features/riscv/32bit-csr.xml: Deleted.
4129 * features/riscv/64bit-csr.c: Deleted.
4130 * features/riscv/64bit-csr.xml: Deleted.
4131 * features/riscv/rebuild-csr-xml.sh: Deleted.
4132
ed69cbc8
AB
41332020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4134
4135 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
4136 whitespace error for declaration of names member variable.
4137 (struct riscv_register_feature): Add new prefer_first_name member
4138 variable, and fix whitespace error in declaration of registers.
4139 (riscv_xreg_feature): Initialize prefer_first_name field.
4140 (riscv_freg_feature): Likewise.
4141 (riscv_virtual_feature): Likewise.
4142 (riscv_csr_feature): Likewise.
4143 (riscv_register_name): Expand on comments. Remove register name
4144 modifications for CSR and virtual registers.
4145
4445e8f5
AB
41462020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4147
4148 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
4149 errors.
4150
767a879e
AB
41512020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4152
4153 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
4154 riscv-opc.h.
4155 (class riscv_pending_register_alias): New class.
4156 (riscv_check_tdesc_feature): Take vector of pending aliases and
4157 populate it as appropriate.
4158 (riscv_setup_register_aliases): Delete.
4159 (riscv_gdbarch_init): Create vector of pending aliases and pass it
4160 to riscv_check_tdesc_feature in all cases. Use the vector to
4161 create the register aliases.
4162
bb6e55f3
RO
41632020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4164
4165 * sol2-tdep.c (sol2_static_transform_name): Remove.
4166 (sol2_init_abi): Don't register it.
4167 * gdbarch.sh (static_transform_name): Remove.
4168 * gdbarch.c, gdbarch.h: Regenerate.
4169
4170 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
4171 gdbarch_static_transform_name.
4172 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
4173 * stabsread.c (define_symbol) <'X'>: Remove.
4174 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
4175 handling.
4176 <'V'>: Likewise.
4177 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
4178 <'S'>: Remove call to gdbarch_static_transform_name.
4179
c6d36836
RO
41802020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4181
4182 * procfs.c (procfs_pre_trace): New function.
4183 (procfs_target::create_inferior): Pass it to fork_inferior.
4184
a7e6196b
RO
41852020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4186
4187 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
4188 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
4189 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
4190 sol2-tdep.o, sparc-sol2-tdep.o.
4191 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
4192 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
4193 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
4194 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
4195
d412e696
RO
41962020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4197
4198 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
4199 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
4200 Call sol2_init_abi.
4201 Remove calls to set_gdbarch_skip_solib_resolver,
4202 set_gdbarch_core_pid_to_str.
4203 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
4204 (i386_sol2_static_transform_name): Remove.
4205 (i386_sol2_init_abi): Call sol2_init_abi.
4206 Remove calls to set_gdbarch_sofun_address_maybe_missing,
4207 set_gdbarch_static_transform_name,
4208 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
4209 Use sol2_sigtramp_p.
4210 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
4211 (sol2_sigtramp_p): New function.
4212 (sol2_static_transform_name): New function.
4213 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
4214 (sol2_init_abi): New function.
4215 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
4216 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
4217 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
4218 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
4219 (sparc_sol2_static_transform_name): Remove.
4220 (sparc32_sol2_init_abi): Call sol2_init_abi.
4221 Remove calls to set_gdbarch_sofun_address_maybe_missing,
4222 set_gdbarch_static_transform_name,
4223 set_gdbarch_skip_solib_resolver,
4224 set_gdbarch_core_pid_to_str.
4225 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
4226 (sparc_sol2_static_transform_name): Remove
4227 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
4228 call sol2_sigtramp_p.
4229 (sparc64_sol2_init_abi): Call sol2_init_abi.
4230 Remove calls to set_gdbarch_sofun_address_maybe_missing,
4231 set_gdbarch_static_transform_name,
4232 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
4233
a8654e7d
PW
42342020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4235
4236 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
4237 * exec.c (validate_exec_file): If from_tty, set both
4238 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
4239 * symfile.c (symbol_file_add_with_addrs): if always_confirm
4240 and from_tty, unconditionally ask a confirmation.
4241
caa7fd04
AB
42422020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4243
4244 * target-descriptions.c (tdesc_architecture_name): Protect against
4245 NULL pointer dereference.
4246 (maint_print_xml_tdesc_cmd): New function.
4247 (_initialize_target_descriptions): Register new 'maint print
4248 xml-tdesc' command and give it the filename completer.
4249 * NEWS: Mention new 'maint print xml-tdesc' command.
4250
fbf42f4e
AB
42512020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4252
4253 * target-descriptions.c (class tdesc_compatible_info): New class.
4254 (struct target_desc): Change type of compatible vector.
4255 (tdesc_compatible_p): Update for change in type of
4256 target_desc::compatible.
4257 (tdesc_compatible_info_list): New function.
4258 (tdesc_compatible_info_arch_name): New function.
4259 (tdesc_add_compatible): Update for change in type of
4260 target_desc::compatible.
4261 (print_c_tdesc::visit_pre): Likewise.
4262
20821f4e
AB
42632020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4264
4265 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
4266 whitespace to underscore.
4267 (maint_print_c_tdesc_cmd): Use fake filename for target
4268 descriptions that came from the target.
4269 (_initialize_target_descriptions): Add filename command completion
4270 for 'maint print c-tdesc'.
4271
1fb5ee62
SM
42722020-06-23 Simon Marchi <simon.marchi@efficios.com>
4273
4274 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
4275 lines.
4276
fc3ecb3e
SM
42772020-06-23 Simon Marchi <simon.marchi@efficios.com>
4278
4279 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
4280 lines.
4281 (dwarf2_find_location_expression): Likewise.
4282 (call_site_parameter_matches): Likewise.
4283 (dwarf2_compile_expr_to_ax): Likewise.
4284 (disassemble_dwarf_expression): Likewise.
4285 (loclist_describe_location): Likewise.
4286
236ef034
PA
42872020-06-23 Pedro Alves <palves@redhat.com>
4288
4289 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
4290 progspace-and-thread.h. Include scoped-mock-context.h instead.
4291 (register_to_value_test): Use scoped_mock_context.
4292 * regcache.c: Include "scoped-mock-context.h".
4293 (cooked_read_test): Don't error out if a target is already pushed.
4294 Use scoped_mock_context. Adjust.
4295 * scoped-mock-context.h: New file.
4296
39e7ecca
AB
42972020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4298
4299 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
4300 initializer.
4301 (ada_language::is_string_type_p): New member function.
4302 * c-lang.c (c_language_data): Delete la_is_string_type_p
4303 initializer.
4304 (cplus_language_data): Likewise.
4305 (asm_language_data): Likewise.
4306 (minimal_language_data): Likewise.
4307 * d-lang.c (d_language_data): Likewise.
4308 * f-lang.c (f_is_string_type_p): Delete function, implementation
4309 moved to f_language::is_string_type_p.
4310 (f_language_data): Delete la_is_string_type_p initializer.
4311 (f_language::is_string_type_p): New member function,
4312 implementation from f_is_string_type_p.
4313 * go-lang.c (go_is_string_type_p): Delete function, implementation
4314 moved to go_language::is_string_type_p.
4315 (go_language_data): Delete la_is_string_type_p initializer.
4316 (go_language::is_string_type_p): New member function,
4317 implementation from go_is_string_type_p.
4318 * language.c (language_defn::is_string_type_p): Define new member
4319 function.
4320 (default_is_string_type_p): Make static, add comment copied from
4321 header file.
4322 (unknown_language_data): Delete la_is_string_type_p initializer.
4323 (unknown_language::is_string_type_p): New member function.
4324 (auto_language_data): Delete la_is_string_type_p initializer.
4325 (auto_language::is_string_type_p): New member function.
4326 * language.h (language_data): Delete la_is_string_type_p field.
4327 (language_defn::is_string_type_p): Declare new function.
4328 (default_is_string_type_p): Delete desclaration, move comment to
4329 definition.
4330 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
4331 moved to m2_language::is_string_type_p.
4332 (m2_language_data): Delete la_is_string_type_p initializer.
4333 (m2_language::is_string_type_p): New member function,
4334 implementation from m2_is_string_type_p.
4335 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
4336 initializer.
4337 * opencl-lang.c (opencl_language_data): Likewise.
4338 * p-lang.c (pascal_is_string_type_p): Delete function,
4339 implementation moved to pascal_language::is_string_type_p.
4340 (pascal_language_data): Delete la_is_string_type_p initializer.
4341 (pascal_language::is_string_type_p): New member function,
4342 implementation from pascal_is_string_type_p.
4343 * rust-lang.c (rust_is_string_type_p): Delete function,
4344 implementation moved to rust_language::is_string_type_p.
4345 (rust_language_data): Delete la_is_string_type_p initializer.
4346 (rust_language::is_string_type_p): New member function,
4347 implementation from rust_is_string_type_p.
4348 * valprint.c (val_print_scalar_or_string_type_p): Update call to
4349 is_string_type_p.
4350
4ffc13fb
AB
43512020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4352
4353 * ada-lang.c (ada_language_data): Delete la_print_typedef
4354 initializer.
4355 (ada_language::print_typedef): New member function.
4356 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
4357 (cplus_language_data): Likewise.
4358 (asm_language_data): Likewise.
4359 (minimal_language_data): Likewise.
4360 * d-lang.c (d_language_data): Likewise.
4361 * f-lang.c (f_language_data): Likewise.
4362 (f_language::print_typedef): New member function.
4363 * go-lang.c (go_language_data): Delete la_print_typedef
4364 initializer.
4365 * language.c (language_defn::print_typedef): Define member
4366 function.
4367 (unknown_language_data): Delete la_print_typedef initializer.
4368 (unknown_language::print_typedef): New member function.
4369 (auto_language_data): Delete la_print_typedef initializer.
4370 (auto_language::print_typedef): New member function.
4371 * language.h (language_data): Delete la_print_typedef field.
4372 (language_defn::print_typedef): Declare new member function.
4373 (LA_PRINT_TYPEDEF): Update call to print_typedef.
4374 (default_print_typedef): Delete declaration.
4375 * m2-lang.c (m2_language_data): Delete la_print_typedef
4376 initializer.
4377 (m2_language::print_typedef): New member function.
4378 * objc-lang.c (objc_language_data): Delete la_print_typedef
4379 initializer.
4380 * opencl-lang.c (opencl_language_data): Likewise.
4381 * p-lang.c (pascal_language_data): Likewise.
4382 (pascal_language::print_typedef): New member function.
4383 * rust-lang.c (rust_print_typedef): Delete function,
4384 implementation moved to rust_language::print_typedef.
4385 (rust_language): Delete la_print_typedef initializer.
4386 (rust_language::print_typedef): New member function,
4387 implementation from rust_print_typedef.
4388 * typeprint.c (default_print_typedef): Delete.
4389
d711ee67
AB
43902020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4391
4392 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
4393 (ada_language::printstr): New member function.
4394 * c-lang.c (c_language_data): Delete la_printstr initializer.
4395 (cplus_language_data): Likewise.
4396 (asm_language_data): Likewise.
4397 (minimal_language_data): Likewise.
4398 * d-lang.c (d_language_data): Likewise.
4399 * f-lang.c (f_printstr): Rename to f_language::printstr.
4400 (f_language_data): Delete la_printstr initializer.
4401 (f_language::printstr): New member function, implementation from
4402 f_printstr.
4403 * go-lang.c (go_language_data): Delete la_printstr initializer.
4404 * language.c (language_defn::printstr): Define new member
4405 function.
4406 (unk_lang_printstr): Delete.
4407 (unknown_language_data): Delete la_printstr initializer.
4408 (unknown_language::printstr): New member function.
4409 (auto_language_data): Delete la_printstr initializer.
4410 (auto_language::printstr): New member function.
4411 * language.h (language_data): Delete la_printstr field.
4412 (language_defn::printstr): Declare new member function.
4413 (LA_PRINT_STRING): Update call to printstr.
4414 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
4415 (m2_language_data): Delete la_printstr initializer.
4416 (m2_language::printstr): New member function, implementation from
4417 m2_printstr.
4418 * objc-lang.c (objc_language_data): Delete la_printstr
4419 initializer.
4420 * opencl-lang.c (opencl_language_data): Likewise.
4421 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
4422 (pascal_language_data): Delete la_printstr initializer.
4423 (pascal_language::printstr): New member function, implementation
4424 from pascal_printstr.
4425 * p-lang.h (pascal_printstr): Delete declaration.
4426 * rust-lang.c (rust_printstr): Update header comment.
4427 (rust_language_data): Delete la_printstr initializer.
4428 (rust_language::printstr): New member function.
4429
52b50f2c
AB
44302020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4431
4432 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
4433 (ada_language::printchar): New member function.
4434 * c-lang.c (c_language_data): Delete la_printchar initializer.
4435 (cplus_language_data): Likewise.
4436 (asm_language_data): Likewise.
4437 (minimal_language_data): Likewise.
4438 * d-lang.c (d_language_data): Likewise.
4439 * f-lang.c (f_printchar): Rename to f_language::printchar.
4440 (f_language_data): Delete la_printchar initializer.
4441 (f_language::printchar): New member function, implementation from
4442 f_printchar.
4443 * go-lang.c (go_language_data): Delete la_printchar initializer.
4444 * language.c (unk_lang_printchar): Delete.
4445 (language_defn::printchar): Define new member function.
4446 (unknown_language_data): Delete la_printchar initializer.
4447 (unknown_language::printchar): New member function.
4448 (auto_language_data): Delete la_printchar initializer.
4449 (auto_language::printchar): New member function.
4450 * language.h (language_data): Delete la_printchar field.
4451 (language_defn::printchar): Declare new member function.
4452 (LA_PRINT_CHAR): Update call to printchar.
4453 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
4454 (m2_language::printchar): New member function.
4455 * objc-lang.c (objc_language_data): Delete la_printchar
4456 initializer.
4457 * opencl-lang.c (opencl_language_data): Likewise.
4458 * p-lang.c (pascal_language_data): Delete la_printchar
4459 initializer.
4460 (pascal_language::printchar): New member function.
4461 * rust-lang.c (rust_printchar): Rename to
4462 rust_language::printchar.
4463 (rust_language_data): Delete la_printchar initializer.
4464 (rust_language::printchar): New member function, implementation
4465 from rust_printchar.
4466
ec8cec5b
AB
44672020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4468
4469 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
4470 (ada_language_data): Delete la_emitchar initializer.
4471 (ada_language::emitchar): New member function, implementation from
4472 emit_char.
4473 * c-lang.c (c_language_data): Delete la_emitchar initializer.
4474 (cplus_language_data): Likewise.
4475 (asm_language_data): Likewise.
4476 (minimal_language_data): Likewise.
4477 * d-lang.c (d_language_data): Likewise.
4478 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
4479 (f_language_data): Delete la_emitchar initializer.
4480 (f_language::emitchar): New member function, implementation from
4481 f_emit_char.
4482 * go-lang.c (go_language_data): Delete la_emitchar initializer.
4483 * language.c (unk_lang_emit_char): Delete.
4484 (language_defn::emitchar): New member function definition.
4485 (unknown_language_data): Delete la_emitchar initializer.
4486 (unknown_language::emitchar): New member function.
4487 (auto_language_data): Delete la_emitchar initializer.
4488 (auto_language::emitchar): New member function.
4489 * language.h (language_data): Delete la_emitchar field.
4490 (language_defn::emitchar): New member field declaration.
4491 (LA_EMIT_CHAR): Update call to emitchar.
4492 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
4493 (m2_language_data): Delete la_emitchar initializer.
4494 (m2_language::emitchar): New member function, implementation from
4495 m2_emit_char.
4496 * objc-lang.c (objc_language_data): Delete la_emitchar
4497 initializer.
4498 * opencl-lang.c (opencl_language_data): Likewise.
4499 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
4500 (pascal_language_data): Delete la_emitchar initializer.
4501 (pascal_language::emitchar): New member function, implementation
4502 from pascal_emit_char.
4503 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
4504 (rust_language_data): Delete la_emitchar initializer.
4505 (rust_language::emitchar): New member function, implementation
4506 from rust_emitchar.
4507
1bf9c363
AB
45082020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4509
4510 * ada-lang.c (resolve): Rename to ada_language::post_parser.
4511 (ada_language_data): Delete la_post_parser initializer.
4512 (ada_language::post_parser): New member function.
4513 * c-lang.c (c_language_data): Delete la_post_parser 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_language_data): Likewise.
4519 * go-lang.c (go_language_data): Likewise.
4520 * language.c (unknown_language_data): Likewise.
4521 (auto_language_data): Likewise.
4522 * language.h (language_data): Delete la_post_parser field.
4523 (language_defn::post_parser): New member function.
4524 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
4525 * objc-lang.c (objc_language_data): Likewise.
4526 * opencl-lang.c (opencl_language_data): Likewise.
4527 * p-lang.c (pascal_language_data): Likewise.
4528 * parse.c (parse_exp_in_context): Update call to post_parser.
4529 (null_post_parser): Delete definition.
4530 * parser-defs.h (null_post_parser): Delete declaration.
4531 * rust-lang.c (rust_language_data): Delete la_post_parser
4532 initializer.
4533
87afa652
AB
45342020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4535
4536 * ada-lang.c (parse): Rename to ada_language::parser.
4537 (ada_language_data): Delete la_parser initializer.
4538 (ada_language::parser): New member function, implementation from
4539 parse.
4540 * c-lang.c (c_language_data): Delete la_parser initializer.
4541 (cplus_language_data): Likewise.
4542 (asm_language_data): Likewise.
4543 (minimal_language_data): Likewise.
4544 * d-lang.c (d_language_data): Likewise.
4545 (d_language::parser): New member function.
4546 * f-lang.c (f_language_data): Delete la_parser initializer.
4547 (f_language::parser): New member function.
4548 * go-lang.c (go_language_data): Delete la_parser initializer.
4549 (go_language::parser): New member function.
4550 * language.c (unk_lang_parser): Delete.
4551 (language_defn::parser): Define new member function.
4552 (unknown_language_data): Delete la_parser initializer.
4553 (unknown_language::parser): New member function.
4554 (auto_language_data): Delete la_parser initializer.
4555 (auto_language::parser): New member function.
4556 * language.h (language_data): Delete la_parser field.
4557 (language_defn::parser): Declare new member function.
4558 * m2-lang.c (m2_language_data): Delete la_parser initializer.
4559 (m2_language::parser): New member function.
4560 * objc-lang.c (objc_language_data): Delete la_parser initializer.
4561 * opencl-lang.c (opencl_language_data): Likewise.
4562 * p-lang.c (pascal_language_data): Likewise.
4563 (pascal_language::parser): New member function.
4564 * parse.c (parse_exp_in_context): Update call to parser.
4565 * rust-lang.c (rust_language_data): Delete la_parser initializer.
4566 (rust_language::parser): New member function.
4567
37825800
AB
45682020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4569
4570 * top.c (print_gdb_configuration): Print --with-python-libdir
4571 configuration value.
4572
5b860c93
PW
45732020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4574
4575 * NEWS: Mention change to the alias command.
4576
cf00cd6f
PW
45772020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4578
4579 * cli/cli-cmds.c (lookup_cmd_for_default_args)
4580 (alias_command_completer)
4581 (make_alias_options_def_group): New functions.
4582 (alias_opts, alias_option_defs): New struct and array.
4583 (alias_usage_error): Update usage.
4584 (alias_command): Handles optional DEFAULT-ARGS... arguments.
4585 Use option framework.
4586 (_initialize_cli_cmds): Update alias command help.
4587 Update aliases command help.
4588 (show_user):
4589 Add NULL for new default_args lookup_cmd argument.
4590 (valid_command_p): Rename to validate_aliased_command.
4591 Add NULL for new default_args lookup_cmd argument. Verify that the
4592 aliased_command has no default args.
4593 * cli/cli-decode.c (help_cmd): Show aliases definitions.
4594 (lookup_cmd_1, lookup_cmd): New argument default_args.
4595 (add_alias_cmd):
4596 Add NULL for new default_args lookup_cmd argument.
4597 (print_help_for_command): Show default args under the layout
4598 alias some_alias = some_aliased_cmd some_alias_default_arg.
4599 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
4600 xfree default_args in destructor.
4601 * cli/cli-script.c (process_next_line, do_define_command):
4602 Add NULL for new default_args lookup_cmd argument.
4603 * command.h: Declare new default_args argument in lookup_cmd
4604 and lookup_cmd_1.
4605 * completer.c (complete_line_internal_1):
4606 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4607 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
4608 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
4609 Likewise.
4610 * infcmd.c (_initialize_infcmd): Likewise.
4611 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
4612 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
4613 * python/py-param.c (add_setshow_generic): Likewise.
4614 * remote.c (_initialize_remote): Likewise.
4615 * top.c (execute_command): Prepend default_args if command has some.
4616 (set_verbose):
4617 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4618 * tracepoint.c (validate_actionline, encode_actions_1):
4619 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4620
bd920864
TBA
46212020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4622
4623 * jit.c (jit_read_descriptor): Use bool as the return type.
4624 (jit_breakpoint_re_set_internal): Use bool as the return type.
4625 Invert the return value logic; return true if the jit breakpoint
4626 has been successfully initialized.
4627 (jit_inferior_init): Update the call to
4628 jit_breakpoint_re_set_internal.
4629
f8098322
PA
46302020-06-22 Pedro Alves <palves@redhat.com>
4631
4632 PR gdb/25939
4633 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
4634 Use the current inferior instead. Don't return
4635 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
4636 wait again.
4637 * sol-thread.c (sol_thread_target::wait): Don't reference
4638 inferior_ptid.
4639 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
4640 (sol_update_thread_list_callback): Use the current inferior's pid
4641 instead of inferior_ptid.
4642
196535a6
RO
46432020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4644
4645 * procfs.c: Cleanup many comments.
4646
4647 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
4648 (AFTER_WATCHFLAG): Replace by value.
4649
4650 (MAIN_PROC_NAME_FORMAT): Inline ...
4651 (create_procinfo): ... here.
4652
4653 (procfs_debug_inferior): Remove SYS_exec handling.
4654 (syscall_is_exec): Likewise.
4655 (procfs_set_exec_trap): Likewise.
4656
4657 (syscall_is_lwp_exit): Inline in callers.
4658 (syscall_is_exit): Likewise.
4659 (syscall_is_exec): Likewise.
4660 (syscall_is_lwp_create): Likewise.
4661
4662 (invalidate_cache): Remove #if 0 code.
4663
4664 (make_signal_thread_runnable): Remove.
4665 (procfs_target::resume): Remove #if 0 code.
4666
cf6f3e86
RO
46672020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4668
4669 PR gdb/25939
4670 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
4671 call ...
4672 (procfs_target::create_inferior): ... here.
4673
48e9cc84
PW
46742020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4675
4676 * exec.c (validate_exec_file): Ensure the build-id is up to
4677 date by calling reopen_exec_file (that checks file timestamp
4678 to decide to re-read the file).
4679
3922b302
PA
46802020-06-18 Pedro Alves <palves@redhat.com>
4681
4682 PR gdb/25412
4683 * gdbthread.h (delete_thread, delete_thread_silent)
4684 (find_thread_ptid): Update comments.
4685 * thread.c (current_thread_): New global.
4686 (is_current_thread): Move higher, and reimplement.
4687 (inferior_thread): Reimplement.
4688 (set_thread_exited): Use bool. Add assertions.
4689 (add_thread_silent): Simplify thread-reuse handling by always
4690 calling delete_thread.
4691 (delete_thread): Remove intro comment.
4692 (find_thread_ptid): Skip exited threads.
4693 (switch_to_thread_no_regs): Write to current_thread_.
4694 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
4695 INFERIOR_PTID. Clear current_thread_.
4696
6dbdab44
PA
46972020-06-18 Pedro Alves <palves@redhat.com>
4698
4699 * aix-thread.c (pd_update): Use switch_to_thread.
4700
2da4b788
PA
47012020-06-18 Pedro Alves <palves@redhat.com>
4702
4703 * ravenscar-thread.c (ravenscar_thread_target): Update.
4704 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
4705 (ravenscar_thread_target::add_active_thread): ... this. Don't
4706 set m_base_ptid here. Update to avoid referencing inferior_ptid.
4707 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
4708
50838d1b
PA
47092020-06-18 Pedro Alves <palves@redhat.com>
4710
4711 * nat/windows-nat.c (current_windows_thread): Remove.
4712 * nat/windows-nat.h (current_windows_thread): Remove.
4713 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
4714 Adjust.
4715 (display_selectors): Adjust to fetch the current
4716 windows_thread_info based on inferior_ptid.
4717 (fake_create_process): No longer write to current_windows_thread.
4718 (windows_nat_target::get_windows_debug_event):
4719 Don't set inferior_ptid or current_windows_thread.
4720 (windows_nat_target::wait): Adjust to not rely on
4721 current_windows_thread.
4722 (do_initial_windows_stuff): Now a method of windows_nat_target.
4723 Switch to the last_ptid thread.
4724 (windows_nat_target::attach): Adjust.
4725 (windows_nat_target::detach): Use switch_to_no_thread instead of
4726 writing to inferior_ptid directly.
4727 (windows_nat_target::create_inferior): Adjust.
4728
31ce04e9
PA
47292020-06-18 Pedro Alves <palves@redhat.com>
4730
4731 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
4732
1ee1a363
PA
47332020-06-18 Pedro Alves <palves@redhat.com>
4734
4735 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
4736 after creating it, instead of writing to inferior_ptid. Don't
4737 write to inferior_ptid.
4738
6d350754
PA
47392020-06-18 Pedro Alves <palves@redhat.com>
4740
4741 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
4742
5d971d48
PA
47432020-06-18 Pedro Alves <palves@redhat.com>
4744
4745 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
4746 it, instead of writing to inferior_ptid.
4747
86e57d1b
PA
47482020-06-18 Pedro Alves <palves@redhat.com>
4749
4750 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
4751 to inferior_ptid.
4752
f2e1c129
PA
47532020-06-18 Pedro Alves <palves@redhat.com>
4754
4755 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
4756 instead of writing to inferior_ptid directly.
4757
60db1b85
PA
47582020-06-18 Pedro Alves <palves@redhat.com>
4759
4760 * corelow.c (core_target::close): Use switch_to_no_thread instead
4761 of writing to inferior_ptid directly.
4762 (add_to_thread_list, core_target_open): Use switch_to_thread
4763 instead of writing to inferior_ptid directly.
4764
fe7d6a8d
PA
47652020-06-18 Pedro Alves <palves@redhat.com>
4766
4767 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
4768 inferior_ptid.
4769 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
4770 inferior_ptid.
4771 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
4772 inferior_ptid directly.
4773 (darwin_nat_target::init_thread_list): Switch to thread, instead
4774 of writing to inferior_ptid.
4775 (darwin_nat_target::attach): Don't write to inferior_ptid.
4776 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
4777
975f8708
PA
47782020-06-18 Pedro Alves <palves@redhat.com>
4779
4780 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
4781 thread.
4782 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
4783 Instead use switch_to_thread.
4784 (gnu_nat_target::detach): Use switch_to_no_thread
4785 instead of writing to inferior_ptid directly. Used passed-in
4786 inferior instead of looking up the inferior by pid.
4787
1a204730
PA
47882020-06-18 Pedro Alves <palves@redhat.com>
4789
4790 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
4791 inferior_ptid.
4792
ebe84f23
PA
47932020-06-18 Pedro Alves <palves@redhat.com>
4794
4795 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
4796 inferior_ptid.
4797 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
4798 thread.
4799 (nto_procfs_target::detach): Avoid referencing
4800 inferior_ptid. Use switch_to_no_thread instead of writing to
4801 inferior_ptid directly.
4802 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
4803 instead of writing to inferior_ptid directly.
4804 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
4805 to thread.
4806
191f02e5
PA
48072020-06-18 Pedro Alves <palves@redhat.com>
4808
4809 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
4810 after creating it, instead of writing to inferior_ptid.
4811 (gdbsim_target_open): Use switch_to_no_thread instead of writing
4812 to inferior_ptid directly.
4813 (gdbsim_target::wait): Don't write to inferior_ptid.
4814
0ac55310
PA
48152020-06-18 Pedro Alves <palves@redhat.com>
4816
4817 * remote.c (remote_target::remote_notice_new_inferior): Use
4818 switch_to_thread instead of writing to inferior_ptid directly.
4819 (remote_target::add_current_inferior_and_thread): Use
4820 switch_to_no_thread instead of writing to inferior_ptid directly.
4821 (extended_remote_target::attach): Use switch_to_inferior_no_thread
4822 and switch_to_thread instead of using set_current_inferior or
4823 writing to inferior_ptid directly.
4824
5233f39b
PA
48252020-06-18 Pedro Alves <palves@redhat.com>
4826
4827 * tracectf.c (ctf_target_open): Switch to added thread instead of
4828 writing to inferior_ptid directly.
4829 (ctf_target::close): Use switch_to_no_thread instead of writing to
4830 inferior_ptid directly.
4831
087e161b
PA
48322020-06-18 Pedro Alves <palves@redhat.com>
4833
4834 * tracefile-tfile.c (tfile_target_open): Don't write to
4835 inferior_ptid directly, instead switch to added thread.
4836 (tfile_target::close): Use switch_to_no_thread instead of writing
4837 to inferior_ptid directly.
4838
7fb43e53
PA
48392020-06-18 Pedro Alves <palves@redhat.com>
4840
4841 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
4842 (procfs_target::detach): Use switch_to_no_thread
4843 instead of writing to inferior_ptid directly.
4844 (do_attach): Change return type to void. Switch to the added
4845 thread.
4846 (procfs_target::create_inferior): Switch to the added thread.
4847 (procfs_do_thread_registers): Don't write to inferior_ptid.
4848
18493a00
PA
48492020-06-18 Pedro Alves <palves@redhat.com>
4850
4851 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
4852 of writing to inferior_ptid.
4853 (scoped_restore_exited_inferior): Delete.
4854 (handle_vfork_child_exec_or_exit): Simplify using
4855 scoped_restore_current_pspace_and_thread. Use switch_to_thread
4856 instead of writing to inferior_ptid.
4857 (THREAD_STOPPED_BY): Delete.
4858 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
4859 (thread_stopped_by_hw_breakpoint): Delete.
4860 (save_waitstatus): Use
4861 scoped_restore_current_thread+switch_to_thread, and call
4862 target_stopped_by_watchpoint instead of
4863 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
4864 instead of thread_stopped_by_sw_breakpoint, and
4865 target_stopped_by_hw_breakpoint instead of
4866 thread_stopped_by_hw_breakpoint.
4867 (handle_inferior_event)
4868 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
4869 inferior_ptid directly, nor
4870 set_current_inferior/set_current_program_space. Use
4871 switch_to_thread / switch_to_inferior_no_thread instead.
4872
a0776b13
PA
48732020-06-18 Pedro Alves <palves@redhat.com>
4874
4875 * target.c (generic_mourn_inferior): Use switch_to_no_thread
4876 instead of writing to inferior_ptid.
4877
6155c136
PA
48782020-06-18 Pedro Alves <palves@redhat.com>
4879
4880 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
4881 added thread.
4882 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
4883 to the added thread.
4884 (inf_ptrace_target::detach_success): Use switch_to_no_thread
4885 instead of writing to inferior_ptid.
4886
c5316fc6
PA
48872020-06-18 Pedro Alves <palves@redhat.com>
4888
4889 * gdbarch-selftests.c: Include "progspace-and-thread.h".
4890 (register_to_value_test): Mock a program_space too. Heap-allocate
4891 the address space. Don't write to inferior_ptid. Use
4892 switch_to_thread instead.
4893
8df01799
PA
48942020-06-18 Pedro Alves <palves@redhat.com>
4895
4896 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
4897 Delete.
4898 (find_signalled_thread()): New, factored out from
4899 linux_make_corefile_notes and adjusted to handle exited threads.
4900 (linux_make_corefile_notes): Adjust to use the new
4901 find_signalled_thread.
4902
41792d68
PA
49032020-06-18 Pedro Alves <palves@redhat.com>
4904
4905 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
4906 of saving/restoring inferior_ptid.
4907
612f258a
TT
49082020-06-17 Tom Tromey <tom@tromey.com>
4909
4910 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
4911 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
4912 declare.
4913 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
4914
efb763a5
SM
49152020-06-15 Simon Marchi <simon.marchi@efficios.com>
4916
4917 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
4918 of partial symtabs.
4919
2951f6c0
SM
49202020-06-17 Simon Marchi <simon.marchi@efficios.com>
4921
4922 * regformats/reg-arm.dat: Remove.
4923 * regformats/reg-bfin.dat: Remove.
4924 * regformats/reg-cris.dat: Remove.
4925 * regformats/reg-crisv32.dat: Remove.
4926 * regformats/reg-m32r.dat: Remove.
4927 * regformats/reg-tilegx.dat: Remove.
4928 * regformats/reg-tilegx32.dat: Remove.
4929
7d458ea5
SM
49302020-06-17 Simon Marchi <simon.marchi@efficios.com>
4931
4932 * features/Makefile (WHICH): Remove arm files.
4933 * regformats/arm/arm-with-iwmmxt.dat: Remove.
4934 * regformats/arm/arm-with-neon.dat: Remove.
4935 * regformats/arm/arm-with-vfpv2.dat: Remove.
4936 * regformats/arm/arm-with-vfpv3.dat: Remove.
4937
3af96c0d
SM
49382020-06-17 Simon Marchi <simon.marchi@efficios.com>
4939
4940 * features/Makefile (XMLTOC): Remove rx.xml.
4941
b25e22fd
PA
49422020-06-17 Pedro Alves <palves@redhat.com>
4943
4944 * gdbthread.h (thread_control_state) <trap_expected> Update
4945 comments.
4946
a78a19b1
AB
49472020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4948
4949 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
4950 ada_language::lookup_symbol_nonlocal.
4951 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
4952 (ada_language::lookup_symbol_nonlocal): New member function,
4953 implementation from ada_lookup_symbol_nonlocal.
4954 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
4955 initializer.
4956 (cplus_language_data): Delete la_lookup_symbol_nonlocal
4957 initializer.
4958 (cplus_language::lookup_symbol_nonlocal): New member function.
4959 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
4960 (minimal_language_data) Likewise.
4961 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
4962 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
4963 initializer.
4964 (d_language::lookup_symbol_nonlocal): New member function.
4965 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
4966 initializer.
4967 (f_language::lookup_symbol_nonlocal): New member function.
4968 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
4969 initializer.
4970 * language.c (unknown_language_data): Likewise.
4971 (auto_language_data): Likewise.
4972 * language.h (language_data): Delete la_lookup_symbol_nonlocal
4973 field.
4974 (language_defn::lookup_symbol_nonlocal): New member function.
4975 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
4976 initializer.
4977 * objc-lang.c (objc_language_data): Likewise.
4978 * opencl-lang.c (opencl_language_data): Likewise.
4979 * p-lang.c (pascal_language_data): Likewise.
4980 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
4981 rust_language::lookup_symbol_nonlocal.
4982 (rust_language_data): Delete la_lookup_symbol_nonlocal
4983 initializer.
4984 (rust_language::lookup_symbol_nonlocal): New member function,
4985 implementation from rust_lookup_symbol_nonlocal.
4986 * symtab.c (lookup_symbol_aux): Update call to
4987 lookup_symbol_nonlocal.
4988 (basic_lookup_symbol_nonlocal): Rename to...
4989 (language_defn::lookup_symbol_nonlocal): ...this, and update
4990 header comment. Remove language_defn parameter, and replace with
4991 uses of `this'.
4992 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
4993
ebe2334e
AB
49942020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4995
4996 * ada-lang.c (ada_language_data): Delete la_value_print_inner
4997 initializer.
4998 (ada_language::value_print_inner): New member function.
4999 * c-lang.c (c_language_data): Delete la_value_print_inner
5000 initializer.
5001 (cplus_language_data): Likewise.
5002 (asm_language_data): Likewise.
5003 (minimal_language_data): Likewise.
5004 * d-lang.c (d_language_data): Likewise.
5005 (d_language::value_print_inner): New member function.
5006 * f-lang.c (f_language_data): Delete la_value_print_inner
5007 initializer.
5008 (f_language::value_print_inner): New member function.
5009 * f-lang.h (f_value_print_innner): Rename to...
5010 (f_value_print_inner): ...this (note spelling of 'inner').
5011 * f-valprint.c (f_value_print_innner): Rename to...
5012 (f_value_print_inner): ...this (note spelling of 'inner').
5013 * go-lang.c (go_language_data): Delete la_value_print_inner
5014 initializer.
5015 (go_language::value_print_inner): New member function.
5016 * language.c (language_defn::value_print_inner): Define new member
5017 function.
5018 (unk_lang_value_print_inner): Delete.
5019 (unknown_language_data): Delete la_value_print_inner initializer.
5020 (unknown_language::value_print_inner): New member function.
5021 (auto_language_data): Delete la_value_print_inner initializer.
5022 (auto_language::value_print_inner): New member function.
5023 * language.h (language_data): Delete la_value_print_inner field.
5024 (language_defn::value_print_inner): Delcare new member function.
5025 * m2-lang.c (m2_language_data): Delete la_value_print_inner
5026 initializer.
5027 (m2_language::value_print_inner): New member function.
5028 * objc-lang.c (objc_language_data): Delete la_value_print_inner
5029 initializer.
5030 * opencl-lang.c (opencl_language_data): Likewise.
5031 * p-lang.c (pascal_language_data): Likewise.
5032 (pascal_language::value_print_inner): New member function.
5033 * rust-lang.c (rust_language_data): Delete la_value_print_inner
5034 initializer.
5035 (rust_language::value_print_inner): New member function.
5036 * valprint.c (do_val_print): Update call to value_print_inner.
5037
a1d1fa3e
AB
50382020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5039
5040 * ada-lang.c (ada_language_data): Delete la_value_print
5041 initializer.
5042 (ada_language::value_print): New member function.
5043 * c-lang.c (c_language_data): Delete la_value_print initializer.
5044 (cplus_language_data): Likewise.
5045 (asm_language_data): Likewise.
5046 (minimal_language_data): Likewise.
5047 * d-lang.c (d_language_data): Likewise.
5048 * f-lang.c (f_language_data): Likewise.
5049 * go-lang.c (go_language_data): Likewise.
5050 * language.c (unk_lang_value_print): Delete.
5051 (language_defn::value_print): Define new member function.
5052 (unknown_language_data): Delete la_value_print initializer.
5053 (unknown_language::value_print): New member function.
5054 (auto_language_data): Delete la_value_print initializer.
5055 (auto_language::value_print): New member function.
5056 * language.h (language_data): Delete la_value_print field.
5057 (language_defn::value_print): Declare new member function.
5058 (LA_VALUE_PRINT): Update call to value_print.
5059 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
5060 * objc-lang.c (objc_language_data): Likewise.
5061 * opencl-lang.c (opencl_language_data): Likewise.
5062 * p-lang.c (pascal_language_data): Likewise.
5063 (pascal_language::value_print): New member function.
5064 * rust-lang.c (rust_language_data): Delete la_value_print
5065 initializer.
5066
f16a9f57
AB
50672020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5068
5069 * ada-lang.c (ada_watch_location_expression): Rename to
5070 ada_language::watch_location_expression.
5071 (ada_language_data): Delete la_watch_location_expression
5072 initializer.
5073 (ada_language::watch_location_expression): New member function,
5074 implementation from ada_watch_location_expression.
5075 * breakpoint.c (watch_command_1): Update call to
5076 watch_location_expression.
5077 * c-lang.c (c_watch_location_expression): Rename to
5078 language_defn::watch_location_expression.
5079 (c_language_data): Delete la_watch_location_expression
5080 initializer.
5081 (cplus_language_data): Likewise.
5082 (asm_language_data): Likewise.
5083 (minimal_language_data): Likewise.
5084 * c-lang.h (c_watch_location_expression): Delete declaration.
5085 * d-lang.c (d_language_data): Delete la_watch_location_expression
5086 initializer.
5087 * f-lang.c (f_language_data): Likewise.
5088 * go-lang.c (go_language_data): Likewise.
5089 * language.c (language_defn::watch_location_expression): Member
5090 function implementation from c_watch_location_expression.
5091 (unknown_language_data): Delete la_watch_location_expression
5092 initializer.
5093 (auto_language_data): Likewise.
5094 * language.h (language_data): Delete la_watch_location_expression
5095 field.
5096 (language_defn::watch_location_expression): Declare new member
5097 function.
5098 * m2-lang.c (m2_language_data): Delete
5099 la_watch_location_expression initializer.
5100 * objc-lang.c (objc_language_data): Likewise.
5101 * opencl-lang.c (opencl_language_data): Likewise.
5102 * p-lang.c (pascal_language_data): Likewise.
5103 * rust-lang.c (rust_watch_location_expression): Rename to
5104 rust_language::watch_location_expression.
5105 (rust_language_data): Delete la_watch_location_expression
5106 initializer.
5107 (rust_language::watch_location_expression): New member function,
5108 implementation from rust_watch_location_expression.
5109
7e56227d
AB
51102020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5111
5112 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
5113 ada_language::collect_symbol_completion_matches.
5114 (ada_language_data): Delete la_collect_symbol_completion_matches
5115 initializer.
5116 (ada_language::collect_symbol_completion_matches): New member
5117 function, implementation from
5118 ada_collect_symbol_completion_matches.
5119 * c-lang.c (c_language_data): Delete
5120 la_collect_symbol_completion_matches initializer.
5121 (cplus_language_data): Likewise.
5122 (asm_language_data): Likewise.
5123 (minimal_language_data): Likewise.
5124 * d-lang.c (d_language_data): Likewise.
5125 * f-lang.c (f_collect_symbol_completion_matches): Rename to
5126 f_language::collect_symbol_completion_matches.
5127 (f_language_data): Delete la_collect_symbol_completion_matches
5128 initializer.
5129 (f_language::collect_symbol_completion_matches) New member
5130 function, implementation from f_collect_symbol_completion_matches.
5131 * go-lang.c (go_language_data): Delete
5132 la_collect_symbol_completion_matches initializer.
5133 * language.c (unknown_language_data): Likewise.
5134 (auto_language_data): Likewise.
5135 * language.h (language_data): Delete
5136 la_collect_symbol_completion_matches field.
5137 (language_defn::collect_symbol_completion_matches): New member
5138 function.
5139 * m2-lang.c (m2_language_data): Delete
5140 la_collect_symbol_completion_matches initializer.
5141 * objc-lang.c (objc_language_data): Likewise.
5142 * opencl-lang.c (opencl_language_data): Likewise.
5143 * p-lang.c (pascal_language_data): Likewise.
5144 * rust-lang.c (rust_language_data): Likewise.
5145 * symtab.c (default_collect_symbol_completion_matches): Delete.
5146 (collect_symbol_completion_matches): Update call to
5147 collect_symbol_completion_matches.
5148 (collect_symbol_completion_matches_type): Likewise.
5149 * symtab.h (default_collect_symbol_completion_matches): Delete
5150 declaration.
5151
53fc67f8
AB
51522020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5153
5154 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
5155 (ada_language_data): Delete la_word_break_characters initializer.
5156 (ada_language::word_break_characters): New member function.
5157 * c-lang.c (c_language_data): Delete la_word_break_characters
5158 initializer.
5159 (cplus_language_data): Likewise.
5160 (asm_language_data): Likewise.
5161 (minimal_language_data): Likewise.
5162 * completer.c: Update global comment.
5163 (advance_to_expression_complete_word_point): Update call to
5164 word_break_characters.
5165 (complete_files_symbols): Likewise.
5166 (complete_line_internal_1): Likewise.
5167 (default_completer_handle_brkchars): Likewise.
5168 (skip_quoted_chars): Likewise.
5169 * d-lang.c (d_language_data): Delete la_word_break_characters
5170 initializer.
5171 * f-lang.c (f_word_break_characters): Delete.
5172 (f_language_data): Delete la_word_break_characters initializer.
5173 (f_language::word_break_characters): New member function.
5174 * go-lang.c (go_language_data): Delete la_word_break_characters
5175 initializer.
5176 * language.c (unknown_language_data): Likewise.
5177 (auto_language_data): Likewise.
5178 * language.h (default_word_break_characters): Move declaration to
5179 earlier in the file.
5180 (language_data): Delete la_word_break_characters field.
5181 (language_defn::word_break_characters): New member function.
5182 * m2-lang.c (m2_language_data): Delete la_word_break_characters
5183 initializer.
5184 * objc-lang.c (objc_language_data): Likewise.
5185 * opencl-lang.c (opencl_language_data): Likewise.
5186 * p-lang.c (pascal_language_data): Likewise.
5187 * rust-lang.c (rust_language_data): Likewise.
5188
c9debfb9
AB
51892020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5190
5191 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
5192 (ada_language_data): Delete la_get_symbol_name_matcher
5193 initializer.
5194 (language_defn::get_symbol_name_matcher_inner): New member
5195 function.
5196 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
5197 initializer.
5198 (cplus_language_data): Likewise.
5199 (cplus_language::get_symbol_name_matcher_inner): New member
5200 function.
5201 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
5202 (minimal_language_data): Likewise.
5203 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
5204 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
5205 initializer.
5206 * dictionary.c (iter_match_first_hashed): Update call to
5207 get_symbol_name_matcher.
5208 (iter_match_next_hashed): Likewise.
5209 (iter_match_next_linear): Likewise.
5210 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
5211 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
5212 initializer.
5213 (f_language::get_symbol_name_matcher_inner): New member function.
5214 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
5215 initializer.
5216 * language.c (default_symbol_name_matcher): Update header comment,
5217 make static.
5218 (language_defn::get_symbol_name_matcher): New definition.
5219 (language_defn::get_symbol_name_matcher_inner): Likewise.
5220 (get_symbol_name_matcher): Delete.
5221 (unknown_language_data): Delete la_get_symbol_name_matcher
5222 initializer.
5223 (auto_language_data): Likewise.
5224 * language.h (language_data): Delete la_get_symbol_name_matcher
5225 field.
5226 (language_defn::get_symbol_name_matcher): New member function.
5227 (language_defn::get_symbol_name_matcher_inner): Likewise.
5228 (default_symbol_name_matcher): Delete declaration.
5229 * linespec.c (find_methods): Update call to
5230 get_symbol_name_matcher.
5231 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
5232 initializer.
5233 * minsyms.c (lookup_minimal_symbol): Update call to
5234 get_symbol_name_matcher.
5235 (iterate_over_minimal_symbols): Likewise.
5236 * objc-lang.c (objc_language_data): Delete
5237 la_get_symbol_name_matcher initializer.
5238 * opencl-lang.c (opencl_language_data): Likewise.
5239 * p-lang.c (pascal_language_data): Likewise.
5240 * psymtab.c (psymbol_name_matches): Update call to
5241 get_symbol_name_matcher.
5242 * rust-lang.c (rust_language_data): Delete
5243 la_get_symbol_name_matcher initializer.
5244 * symtab.c (symbol_matches_search_name): Update call to
5245 get_symbol_name_matcher.
5246 (compare_symbol_name): Likewise.
5247
9a49ad8c
AB
52482020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5249
5250 * ada-lang.c (ada_language_data): Delete la_compute_program
5251 initializer.
5252 * c-lang.c (c_language_data): Likewise.
5253 (c_language::compute_program): New member function.
5254 (cplus_language_data): Delete la_compute_program initializer.
5255 (cplus_language::compute_program): New member function.
5256 (asm_language_data): Delete la_compute_program initializer.
5257 (minimal_language_data): Likewise.
5258 * c-lang.h (c_compute_program): Update comment.
5259 (cplus_compute_program): Likewise.
5260 * compile/compile-c-support.c (c_compute_program): Likewise.
5261 (cplus_compute_program): Likewise.
5262 * compile/compile.c (compile_to_object): Update call to
5263 la_compute_program.
5264 * d-lang.c (d_language_data): Delete la_compute_program
5265 initializer.
5266 * f-lang.c (f_language_data): Likewise.
5267 * go-lang.c (go_language_data): Likewise.
5268 * language.c (unknown_language_data): Likewise.
5269 (auto_language_data): Likewise.
5270 * language.h (language_data): Delete la_compute_program field.
5271 (language_defn::compute_program): New member function.
5272 * m2-lang.c (m2_language_data): Delete la_compute_program
5273 initializer.
5274 * objc-lang.c (objc_language_data): Likewise.
5275 * opencl-lang.c (opencl_language_data): Likewise.
5276 * p-lang.c (pascal_language_data): Likewise.
5277 * rust-lang.c (rust_language_data): Likewise.
5278
eff93b4d
AB
52792020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5280
5281 * ada-lang.c (ada_language_data) Delete
5282 la_class_name_from_physname initializer.
5283 * c-lang.c (c_language_data): Likewise.
5284 (cplus_language_data): Likewise.
5285 (cplus_language::class_name_from_physname): New member function.
5286 (asm_language_data): Delete la_class_name_from_physname
5287 initializer.
5288 (minimal_language_data): Likewise.
5289 * d-lang.c (d_language_data): Likewise.
5290 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
5291 method on language_defn class.
5292 (guess_full_die_structure_name): Likewise.
5293 * f-lang.c (f_language_data): Delete la_class_name_from_physname
5294 initializer.
5295 * go-lang.c (go_language_data): Likewise.
5296 * language.c (language_class_name_from_physname): Delete.
5297 (unk_lang_class_name): Delete.
5298 (unknown_language_data): Delete la_class_name_from_physname
5299 initializer.
5300 (auto_language_data): Likewise.
5301 * language.h (language_data): Delete la_class_name_from_physname
5302 field.
5303 (language_defn::class_name_from_physname): New function.
5304 (language_class_name_from_physname): Delete declaration.
5305 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
5306 initializer.
5307 * objc-lang.c (objc_language_data): Likewise.
5308 * opencl-lang.c (opencl_language_data): Likewise.
5309 * p-lang.c (pascal_language_data): Likewise.
5310 * rust-lang.c (rust_language_data): Likewise.
5311
de543742
TT
53122020-06-16 Tom Tromey <tom@tromey.com>
5313
5314 * tui/tui-data.h (STATUS_NAME): New macro.
5315 * tui/tui-layout.c (tui_remove_some_windows)
5316 (initialize_known_windows, tui_register_window)
5317 (tui_layout_split::remove_windows, initialize_layouts)
5318 (tui_new_layout_command): Don't use hard-coded window names.
5319
a350efd4
TT
53202020-06-16 Tom Tromey <tom@tromey.com>
5321
5322 PR tui/25348:
5323 * tui/tui.c (tui_ensure_readline_initialized): Rename from
5324 tui_initialize_readline. Only run once. Call rl_initialize.
5325 * tui/tui.h (tui_ensure_readline_initialized): Rename from
5326 tui_initialize_readline.
5327 * tui/tui-io.c (tui_setup_io): Call
5328 tui_ensure_readline_initialized.
5329 * tui/tui-interp.c (tui_interp::init): Update.
5330
39ec0490
TT
53312020-06-16 Tom Tromey <tom@tromey.com>
5332
5333 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
5334 Also preserve the status window.
5335
d2d1ea20
TT
53362020-06-16 Tom Tromey <tom@tromey.com>
5337
5338 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
5339 where m_window==nullptr.
5340
66920317
TT
53412020-06-15 Tom Tromey <tromey@adacore.com>
5342
5343 * windows-nat.c (windows_nat::handle_output_debug_string):
5344 Update.
5345 (windows_nat::handle_ms_vc_exception): Update.
5346 * target.h (target_read_string): Change API.
5347 * target.c (target_read_string): Change API.
5348 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
5349 Update.
5350 * solib-frv.c (frv_current_sos): Update.
5351 * solib-dsbt.c (dsbt_current_sos): Update.
5352 * solib-darwin.c (darwin_current_sos): Update.
5353 * linux-thread-db.c (inferior_has_bug): Update.
5354 * expprint.c (print_subexp_standard): Update.
5355 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
5356 (ada_exception_message_1): Update.
5357
a5d871dd
TT
53582020-06-15 Tom Tromey <tromey@adacore.com>
5359
5360 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
5361
670e35fa
TT
53622020-06-15 Tom Tromey <tromey@adacore.com>
5363
5364 * valprint.c (read_string): Update comment.
5365 * target.c (MIN): Remove.
5366 (target_read_string): Rewrite.
5367
f5272a3b
TT
53682020-06-15 Tom Tromey <tromey@adacore.com>
5369
5370 * corefile.c (read_memory_string): Remove.
5371 * ada-valprint.c (ada_value_print_ptr): Update.
5372 * ada-lang.h (ada_tag_name): Change return type.
5373 * ada-lang.c (type_from_tag): Update.
5374 (ada_tag_name_from_tsd): Change return type. Use
5375 target_read_string.
5376 (ada_tag_name): Likewise.
5377 * gdbcore.h (read_memory_string): Don't declare.
5378
2c074f49
HD
53792020-06-14 Hannes Domani <ssbssa@yahoo.de>
5380
5381 * symtab.c (rbreak_command): Ignore Windows drive colon.
5382
6a17d503
SM
53832020-06-12 Simon Marchi <simon.marchi@efficios.com>
5384
5385 * NEWS: Mention removed GDBserver host support.
5386
453c733f
NC
53872020-06-12 Nelson Chu <nelson.chu@sifive.com>
5388
5389 * features/riscv/rebuild-csr-xml.sh: Updated.
5390
2b4e6a3f
TT
53912020-06-11 Tom Tromey <tom@tromey.com>
5392
5393 PR gdb/18318:
5394 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
5395
4412332f
JG
53962020-06-09 Jonny Grant <jg@jguk.org>
53972020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
5398
5399 * main.c (captured_main_1): Don't print new line after help.
5400 (print_gdb_help): add mailing list and IRC channel information
5401 to --help. Add new lines between items in the footer. Remove
5402 quotes around bug url.
5403
2f33032a
KS
54042020-06-11 Keith Seitz <keiths@redhat.com>
5405
5406 PR gdb/21356
5407 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
5408 Resolve typedefs for type length calculations.
5409
7ab96794
TV
54102020-06-10 Tom de Vries <tdevries@suse.de>
5411
5412 PR ada/24713
5413 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
5414 (write_psymbols): Enable .gdb_index for ada.
5415 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
5416 ada.
5417
e5f3ece2
TV
54182020-06-10 Tom de Vries <tdevries@suse.de>
5419
5420 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
5421 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
5422 namei" instead of "const char *name" argument.
5423 (dw2_map_matching_symbols): Use "offset_type namei" variant of
5424 dw2_symtab_iter_init.
5425
940da03e
SM
54262020-06-08 Simon Marchi <simon.marchi@efficios.com>
5427
5428 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
5429 to use type::field and field::type instead.
5430
b6cdac4b
SM
54312020-06-08 Simon Marchi <simon.marchi@efficios.com>
5432
5433 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
5434 to use field::type instead.
5435
5d14b6e5
SM
54362020-06-08 Simon Marchi <simon.marchi@efficios.com>
5437
5438 * gdbtypes.h (struct field) <type, set_type>: New methods.
5439 Rename `type` field to...
5440 <m_type>: ... this. Change references throughout to use type or
5441 set_type methods.
5442 (FIELD_TYPE): Use field::type. Change call sites that modify
5443 the field's type to use field::set_type instead.
5444
3d967001
SM
54452020-06-08 Simon Marchi <simon.marchi@efficios.com>
5446
5447 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
5448 to use type::index_type instead.
5449
262abc0d
SM
54502020-06-08 Simon Marchi <simon.marchi@efficios.com>
5451
5452 * gdbtypes.h (struct type) <index_type, set_index_type>: New
5453 methods.
5454 (TYPE_INDEX_TYPE): Use type::index_type.
5455 * gdbtypes.c (create_array_type_with_stride): Likewise.
5456
82836c92
TT
54572020-06-07 Tom Tromey <tom@tromey.com>
5458
5459 * valprint.c (generic_val_print_float): Remove "embedded_offset"
5460 parameter.
5461 (generic_value_print): Update.
5462
940dace9
AB
54632020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
5464
5465 Revert commit 982a38f60b0.
5466 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
5467
982a38f6
AB
54682020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
5469
5470 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
5471 avoid use after free.
5472
82f06518
TV
54732020-06-05 Tom de Vries <tdevries@suse.de>
5474
5475 * NEWS: Fix typos.
5476
f8c41851
SM
54772020-06-04 Simon Marchi <simon.marchi@efficios.com>
5478
5479 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
5480 the per_bfd object.
5481 (dwarf2_read_debug_names): Likewise.
5482 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
5483 object when re-using a per_bfd object with an index.
5484
f9b5d5ea
TV
54852020-06-03 Tom de Vries <tdevries@suse.de>
5486
5487 PR symtab/26046
5488 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
5489 children for C++.
5490 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
5491 DW_TAG_subprogram.
5492
f6eee2d0
AB
54932020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5494
5495 * ada-lang.c (ada_language_data): Delete skip_trampoline
5496 initializer.
5497 * c-lang.c (c_language_data): Likewise.
5498 (cplus_language_data): Likewise.
5499 (cplus_language::skip_trampoline): New member function.
5500 (asm_language_data): Delete skip_trampoline initializer.
5501 (minimal_language_data): Likewise.
5502 * d-lang.c (d_language_data): Likewise.
5503 * f-lang.c (f_language_data): Likewise.
5504 * go-lang.c (go_language_data): Likewise.
5505 * language.c (unk_lang_trampoline): Delete function.
5506 (skip_language_trampoline): Update.
5507 (unknown_language_data): Delete skip_trampoline initializer.
5508 (auto_language_data): Likewise.
5509 * language.h (language_data): Delete skip_trampoline field.
5510 (language_defn::skip_trampoline): New function.
5511 * m2-lang.c (m2_language_data): Delete skip_trampoline
5512 initializer.
5513 * objc-lang.c (objc_skip_trampoline): Delete function, move
5514 implementation to objc_language::skip_trampoline.
5515 (objc_language_data): Delete skip_trampoline initializer.
5516 (objc_language::skip_trampoline): New member function with
5517 implementation from objc_skip_trampoline.
5518 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
5519 initializer.
5520 * p-lang.c (pascal_language_data): Likewise.
5521 * rust-lang.c (rust_language_data): Likewise.
5522
0a50df5d
AB
55232020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5524
5525 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
5526 (ada_language::demangle): New member function.
5527 * c-lang.c (c_language_data): Delete la_demangle initializer.
5528 (cplus_language_data): Delete la_demangle initializer.
5529 (cplus_language::demangle): New member function.
5530 (asm_language_data): Delete la_demangle initializer.
5531 (minimal_language_data): Delete la_demangle initializer.
5532 * d-lang.c (d_language_data): Delete la_demangle initializer.
5533 (d_language::demangle): New member function.
5534 * f-lang.c (f_language_data): Delete la_demangle initializer.
5535 (f_language::demangle): New member function.
5536 * go-lang.c (go_language_data): Delete la_demangle initializer.
5537 (go_language::demangle): New member function.
5538 * language.c (language_demangle): Update.
5539 (unk_lang_demangle): Delete.
5540 (unknown_language_data): Delete la_demangle initializer.
5541 (unknown_language::demangle): New member function.
5542 (auto_language_data): Delete la_demangle initializer.
5543 (auto_language::demangle): New member function.
5544 * language.h (language_data): Delete la_demangle field.
5545 (language_defn::demangle): New function.
5546 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
5547 * objc-lang.c (objc_language_data): Delete la_demangle
5548 initializer.
5549 (objc_language::demangle): New member function.
5550 * opencl-lang.c (opencl_language_data): Delete la_demangle
5551 initializer.
5552 * p-lang.c (pascal_language_data): Likewise.
5553 * rust-lang.c (rust_language_data): Likewise.
5554 (rust_language::demangle): New member function.
5555
fbfb0a46
AB
55562020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5557
5558 * ada-lang.c (ada_language_data): Delete la_print_type
5559 initializer.
5560 (ada_language::print_type): New member function.
5561 * c-lang.c (c_language_data): Delete la_print_type initializer.
5562 (c_language::print_type): New member function.
5563 (cplus_language_data): Delete la_print_type initializer.
5564 (cplus_language::print_type): New member function.
5565 (asm_language_data): Delete la_print_type initializer.
5566 (asm_language::print_type): New member function.
5567 (minimal_language_data): Delete la_print_type initializer.
5568 (minimal_language::print_type): New member function.
5569 * d-lang.c (d_language_data): Delete la_print_type initializer.
5570 (d_language::print_type): New member function.
5571 * f-lang.c (f_language_data): Delete la_print_type initializer.
5572 (f_language::print_type): New member function.
5573 * go-lang.c (go_language_data): Delete la_print_type initializer.
5574 (go_language::print_type): New member function.
5575 * language.c (unk_lang_print_type): Delete.
5576 (unknown_language_data): Delete la_print_type initializer.
5577 (unknown_language::print_type): New member function.
5578 (auto_language_data): Delete la_print_type initializer.
5579 (auto_language::print_type): New member function.
5580 * language.h (language_data): Delete la_print_type field.
5581 (language_defn::print_type): New function.
5582 (LA_PRINT_TYPE): Update.
5583 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
5584 (m2_language::print_type): New member function.
5585 * objc-lang.c (objc_language_data): Delete la_print_type
5586 initializer.
5587 (objc_language::print_type): New member function.
5588 * opencl-lang.c (opencl_print_type): Delete, implementation moved
5589 to opencl_language::print_type.
5590 (opencl_language_data): Delete la_print_type initializer.
5591 (opencl_language::print_type): New member function, implementation
5592 from opencl_print_type.
5593 * p-lang.c (pascal_language_data): Delete la_print_type
5594 initializer.
5595 (pascal_language::print_type): New member function.
5596 * rust-lang.c (rust_print_type): Delete, implementation moved to
5597 rust_language::print_type.
5598 (rust_language_data): Delete la_print_type initializer.
5599 (rust_language::print_type): New member function, implementation
5600 from rust_print_type.
5601
6f827019
AB
56022020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5603
5604 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
5605 implementation moves to...
5606 (ada_language::sniff_from_mangled_name): ...here. Update return
5607 type.
5608 (ada_language_data): Delete la_sniff_from_mangled_name
5609 initializer.
5610 * c-lang.c (c_language_data): Likewise.
5611 (cplus_language_data): Likewise.
5612 (cplus_language::sniff_from_mangled_name): New member function,
5613 implementation taken from gdb_sniff_from_mangled_name.
5614 (asm_language_data): Delete la_sniff_from_mangled_name
5615 initializer.
5616 (minimal_language_data): Likewise.
5617 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
5618 implementation moves to cplus_language::sniff_from_mangled_name.
5619 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
5620 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
5621 moves to...
5622 (d_language::sniff_from_mangled_name): ...here.
5623 (d_language_data): Delete la_sniff_from_mangled_name initializer.
5624 * f-lang.c (f_language_data): Likewise.
5625 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
5626 moves to...
5627 (go_language::sniff_from_mangled_name): ...here.
5628 (go_language_data): Delete la_sniff_from_mangled_name initializer.
5629 * language.c (language_sniff_from_mangled_name): Delete.
5630 (unknown_language_data): Delete la_sniff_from_mangled_name
5631 initializer.
5632 (auto_language_data): Likewise.
5633 * language.h (language_data): Delete la_sniff_from_mangled_name
5634 field.
5635 (language_defn::sniff_from_mangled_name): New function.
5636 (language_sniff_from_mangled_name): Delete declaration.
5637 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
5638 field.
5639 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
5640 implementation moves to...
5641 (objc_language::sniff_from_mangled_name): ...here.
5642 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
5643 * opencl-lang.c (opencl_language_data): Likewise.
5644 * p-lang.c (pascal_language_data): Likewise.
5645 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
5646 implementation moves to...
5647 (rust_language::sniff_from_mangled_name): ...here.
5648 (rust_language_data): Delete la_sniff_from_mangled_name
5649 initializer.
5650 * symtab.c (symbol_find_demangled_name): Call
5651 sniff_from_mangled_name member function.
5652
fb8006fd
AB
56532020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5654
5655 * ada-lang.c (ada_language_data): Delete la_search_name_hash
5656 initializer.
5657 * c-lang.c (c_language_data): Likewise.
5658 (cplus_language_data): Likewise.
5659 (cplus_language::search_name_hash): New member function.
5660 (asm_language_data): Delete la_search_name_hash initializer.
5661 (minimal_language_data): Likewise.
5662 * d-lang.c (d_language_data): Likewise.
5663 * dictionary.c (default_search_name_hash): Rename to...
5664 (language_defn::search_name_hash): ...this.
5665 * f-lang.c (f_language_data): Likewise.
5666 (f_language::search_name_hash): New member function.
5667 * go-lang.c (go_language_data): Delete la_search_name_hash
5668 initializer.
5669 * language.c (unknown_language_data): Likewise.
5670 (auto_language_data): Likewise.
5671 * language.h (struct language_data): Delete la_search_name_hash
5672 field.
5673 (language_defn::search_name_hash): Declare new member function.
5674 (default_search_name_hash): Delete declaration.
5675 * m2-lang.c (m2_language_data): Delete la_search_name_hash
5676 initializer.
5677 * objc-lang.c (objc_language_data): Likewise.
5678 * opencl-lang.c (opencl_language_data): Likewise.
5679 * p-lang.c (pascal_language_data): Likewise.
5680 * rust-lang.c (rust_language_data): Likewise.
5681 * symtab.c (search_name_hash): Update call.
5682
8e25bafe
AB
56832020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5684
5685 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
5686 initializer.
5687 * c-lang.c (class compile_instance): Declare.
5688 (c_language_data): Delete la_get_compile_instance initializer.
5689 (c_language::get_compile_instance): New member function.
5690 (cplus_language_data): Delete la_get_compile_instance initializer.
5691 (cplus_language::get_compile_instance): New member function.
5692 (asm_language_data): Delete la_get_compile_instance initializer.
5693 (minimal_language_data): Likewise.
5694 * c-lang.h (c_get_compile_context): Update comment.
5695 (cplus_get_compile_context): Update comment.
5696 * compile/compile.c (compile_to_object): Update calls, don't rely
5697 on function pointer being NULL.
5698 * d-lang.c (d_language_data): Delete la_get_compile_instance
5699 initializer.
5700 * f-lang.c (f_language_data): Likewise.
5701 * go-lang.c (go_language_data): Likewise.
5702 * language.c (unknown_language_data): Likewise.
5703 (auto_language_data): Likewise.
5704 * language.h (language_data): Delete la_get_compile_instance field.
5705 (language_defn::get_compile_instance): New member function.
5706 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
5707 initializer.
5708 * objc-lang.c (objc_language_data): Likewise.
5709 * opencl-lang.c (opencl_language_data): Likewise.
5710 * p-lang.c (pascal_language_data): Likewise.
5711 * rust-lang.c (rust_language_data): Likewise.
5712
4009ee92
AB
57132020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5714
5715 * ada-lang.c (ada_add_all_symbols): Update comment.
5716 (ada_iterate_over_symbols): Delete, move implementation to...
5717 (ada_language::iterate_over_symbols): ...here, a new member
5718 function, rewrite to use range based for loop.
5719 (ada_language_data): Delete la_iterate_over_symbols initializer.
5720 * c-lang.c (c_language_data): Likewise.
5721 (cplus_language_data): Likewise.
5722 (asm_language_data): Likewise.
5723 (minimal_language_data): Likewise.
5724 * d-lang.c (d_language_data): Likewise.
5725 * f-lang.c (f_language_data): Likewise.
5726 * go-lang.c (go_language_data): Likewise.
5727 * language.c (unknown_language_data): Likewise.
5728 (auto_language_data): Likewise.
5729 * language.h (language_data): Delete la_iterate_over_symbols field.
5730 (language_defn::iterate_over_symbols): New member function.
5731 (LA_ITERATE_OVER_SYMBOLS): Update.
5732 * linespec.c (iterate_over_all_matching_symtabs): Update.
5733 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
5734 initializer.
5735 * objc-lang.c (objc_language_data): Likewise.
5736 * opencl-lang.c (opencl_language_data): Likewise.
5737 * p-lang.c (pascal_language_data): Likewise.
5738 * rust-lang.c (rust_language_data): Likewise.
5739
54f4ca46
AB
57402020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5741
5742 * ada-lang.c (ada_language_data): Delete
5743 la_lookup_transparent_type initializer.
5744 * c-lang.c (c_language_data): Likewise.
5745 (cplus_language_data): Likewise.
5746 (cplus_language::lookup_transparent_type): New member function.
5747 (asm_language_data): Delete la_lookup_transparent_type
5748 initializer.
5749 (minimal_language_data): Likewise.
5750 * d-lang.c (d_language_data): Likewise.
5751 * f-lang.c (f_language_data): Likewise.
5752 * go-lang.c (go_language_data): Likewise.
5753 * language.c (unknown_language_data): Likewise.
5754 (auto_language_data): Likewise.
5755 * language.h (struct language_data): Delete
5756 la_lookup_transparent_type field.
5757 (language_defn::lookup_transparent_type): New member function.
5758 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
5759 initializer.
5760 * objc-lang.c (objc_language_data): Likewise.
5761 * opencl-lang.c (opencl_language_data): Likewise.
5762 * p-lang.c (pascal_language_data): Likewise.
5763 * rust-lang.c (rust_language_data): Likewise.
5764 * symtab.c (symbol_matches_domain): Update call.
5765
1fb314aa
AB
57662020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5767
5768 * ada-lang.c (ada_language_arch_info): Delete function, move
5769 implementation to...
5770 (ada_language::language_arch_info): ...here, a new member
5771 function.
5772 (ada_language_data): Delete la_language_arch_info.
5773 * c-lang.c (c_language_data): Likewise.
5774 (c_language::language_arch_info): New member function.
5775 (cplus_language_arch_info): Delete function, move
5776 implementation to...
5777 (cplus_language::language_arch_info): ...here, a new member
5778 function.
5779 (cplus_language_data): Delete la_language_arch_info.
5780 (asm_language_data): Likewise.
5781 (asm_language::language_arch_info): New member function.
5782 (minimal_language_data): Delete la_language_arch_info.
5783 (minimal_language::language_arch_info): New member function.
5784 * d-lang.c (d_language_arch_info): Delete function, move
5785 implementation to...
5786 (d_language::language_arch_info): ...here, a new member
5787 function.
5788 (d_language_data): Delete la_language_arch_info.
5789 * f-lang.c (f_language_arch_info): Delete function, move
5790 implementation to...
5791 (f_language::language_arch_info): ...here, a new member
5792 function.
5793 (f_language_data): Delete la_language_arch_info.
5794 * go-lang.c (go_language_arch_info): Delete function, move
5795 implementation to...
5796 (go_language::language_arch_info): ...here, a new member
5797 function.
5798 (go_language_data): Delete la_language_arch_info.
5799 * language.c (unknown_language_data): Likewise.
5800 (unknown_language::language_arch_info): New member function.
5801 (auto_language_data): Delete la_language_arch_info.
5802 (auto_language::language_arch_info): New member function.
5803 (language_gdbarch_post_init): Update call to
5804 la_language_arch_info.
5805 * language.h (language_data): Delete la_language_arch_info
5806 function pointer.
5807 (language_defn::language_arch_info): New function.
5808 * m2-lang.c (m2_language_arch_info): Delete function, move
5809 implementation to...
5810 (m2_language::language_arch_info): ...here, a new member
5811 function.
5812 (m2_language_data): Delete la_language_arch_info.
5813 * objc-lang.c (objc_language_arch_info): Delete function, move
5814 implementation to...
5815 (objc_language::language_arch_info): ...here, a new member
5816 function.
5817 (objc_language_data): Delete la_language_arch_info.
5818 * opencl-lang.c (opencl_language_arch_info): Delete function, move
5819 implementation to...
5820 (opencl_language::language_arch_info): ...here, a new member
5821 function.
5822 (opencl_language_data): Delete la_language_arch_info.
5823 * p-lang.c (pascal_language_arch_info): Delete function, move
5824 implementation to...
5825 (pascal_language::language_arch_info): ...here, a new member
5826 function.
5827 (pascal_language_data): Delete la_language_arch_info.
5828 * rust-lang.c (rust_language_arch_info): Delete function, move
5829 implementation to...
5830 (rust_language::language_arch_info): ...here, a new member
5831 function.
5832 (rust_language_data): Delete la_language_arch_info.
5833
48448202
AB
58342020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5835
5836 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
5837 initializer.
5838 * c-lang.c (c_language_data): Likewise.
5839 (cplus_language_data): Likewise.
5840 (cplus_language::pass_by_reference_info): New method.
5841 (asm_language_data): Delete la_pass_by_reference initializer.
5842 (minimal_language_data): Likewise.
5843 * cp-abi.c (cp_pass_by_reference): Remove use of
5844 default_pass_by_reference.
5845 * d-lang.c (d_language_data): Likewise.
5846 * f-lang.c (f_language_data): Likewise.
5847 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
5848 default_pass_by_reference.
5849 * go-lang.c (go_language_data): Likewise.
5850 * language.c (language_pass_by_reference): Update.
5851 (default_pass_by_reference): Delete.
5852 (unknown_language_data): Delete la_pass_by_reference
5853 initializer.
5854 (auto_language_data): Likewise.
5855 * language.h (struct language_data): Delete la_pass_by_reference
5856 field.
5857 (language_defn::pass_by_reference_info): New member function.
5858 (default_pass_by_reference): Delete declaration.
5859 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
5860 initializer.
5861 * objc-lang.c (objc_language_data): Likewise.
5862 * opencl-lang.c (opencl_language_data): Likewise.
5863 * p-lang.c (pascal_language_data): Likewise.
5864 * rust-lang.c (rust_language_data): Likewise.
5865
15e5fd35
AB
58662020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5867
5868 * ada-lang.c (ada_read_var_value): Delete function, move
5869 implementation to...
5870 (ada_language::read_var_value): ...here.
5871 (ada_language_data): Delete la_read_var_value initializer.
5872 * c-lang.c (c_language_data): Likewise.
5873 (cplus_language_data): Likewise.
5874 (minimal_language_data): Likewise.
5875 * d-lang.c (d_language_data): Likewise.
5876 * f-lang.c (f_language_data): Likewise.
5877 * findvar.c (default_read_var_value): Rename to...
5878 (language_defn::read_var_value): ...this.
5879 * findvar.c (read_var_value): Update header comment, and change to
5880 call member function instead of function pointer.
5881 * go-lang.c (go_language_data): Likewise.
5882 * language.c (unknown_language_data): Delete la_read_var_value
5883 initializer.
5884 (auto_language_data): Likewise.
5885 * language.h (struct language_data): Delete la_read_var_value
5886 field.
5887 (language_defn::read_var_value): New member function.
5888 (default_read_var_value): Delete declaration.
5889 * m2-lang.c (m2_language_data): Delete la_read_var_value
5890 initializer.
5891 * objc-lang.c (objc_language_data): Likewise.
5892 * opencl-lang.c (opencl_language_data): Likewise.
5893 * p-lang.c (pascal_language_data): Likewise.
5894 * rust-lang.c (rust_language_data): Likewise.
5895 * value.h (default_read_var_value): Delete declaration.
5896
5bd40f2a
AB
58972020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5898
5899 * ada-lang.c (ada_print_array_index): Delete function, move
5900 implementation to...
5901 (ada_language::print_array_index): ...here.
5902 (ada_language_data): Delete la_print_array_index initializer.
5903 * c-lang.c (c_language_data): Likewise.
5904 (cplus_language_data): Likewise.
5905 (minimal_language_data): Likewise.
5906 * d-lang.c (d_language_data): Likewise.
5907 * f-lang.c (f_language_data): Likewise.
5908 * go-lang.c (go_language_data): Likewise.
5909 * language.c (default_print_array_index): Delete function, move
5910 implementation to...
5911 (language_defn::print_array_index): ...here.
5912 (unknown_language_data): Delete la_print_array_index initializer.
5913 (auto_language_data): Likewise.
5914 * language.h (struct language_data): Delete la_print_array_index
5915 field.
5916 (language_defn::print_array_index): New member function.
5917 (LA_PRINT_ARRAY_INDEX): Update.
5918 (default_print_array_index): Delete declaration.
5919 * m2-lang.c (m2_language_data): Delete la_print_array_index
5920 initializer.
5921 * objc-lang.c (objc_language_data): Likewise.
5922 * opencl-lang.c (opencl_language_data): Likewise.
5923 * p-lang.c (pascal_language_data): Likewise.
5924 * rust-lang.c (rust_language_data): Likewise.
5925
0874fd07
AB
59262020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5927
5928 * gdb/ada-lang.c (ada_language_defn): Convert to...
5929 (ada_language_data): ...this.
5930 (class ada_language): New class.
5931 (ada_language_defn): New static global.
5932 * gdb/c-lang.c (c_language_defn): Convert to...
5933 (c_language_data): ...this.
5934 (class c_language): New class.
5935 (c_language_defn): New static global.
5936 (cplus_language_defn): Convert to...
5937 (cplus_language_data): ...this.
5938 (class cplus_language): New class.
5939 (cplus_language_defn): New static global.
5940 (asm_language_defn): Convert to...
5941 (asm_language_data): ...this.
5942 (class asm_language): New class.
5943 (asm_language_defn): New static global.
5944 (minimal_language_defn): Convert to...
5945 (minimal_language_data): ...this.
5946 (class minimal_language): New class.
5947 (minimal_language_defn): New static global.
5948 * gdb/d-lang.c (d_language_defn): Convert to...
5949 (d_language_data): ...this.
5950 (class d_language): New class.
5951 (d_language_defn): New static global.
5952 * gdb/f-lang.c (f_language_defn): Convert to...
5953 (f_language_data): ...this.
5954 (class f_language): New class.
5955 (f_language_defn): New static global.
5956 * gdb/go-lang.c (go_language_defn): Convert to...
5957 (go_language_data): ...this.
5958 (class go_language): New class.
5959 (go_language_defn): New static global.
5960 * gdb/language.c (unknown_language_defn): Remove declaration.
5961 (current_language): Initialize to nullptr, real initialization is
5962 moved to _initialize_language.
5963 (languages): Delete global.
5964 (language_defn::languages): Define.
5965 (set_language_command): Use language_defn::languages.
5966 (set_language): Likewise.
5967 (range_error): Likewise.
5968 (language_enum): Likewise.
5969 (language_def): Likewise.
5970 (add_set_language_command): Use language_def::languages for the
5971 language list, and language_def to lookup language pointers.
5972 (skip_language_trampoline): Use language_defn::languages.
5973 (unknown_language_defn): Convert to...
5974 (unknown_language_data): ...this.
5975 (class unknown_language): New class.
5976 (unknown_language_defn): New static global.
5977 (auto_language_defn): Convert to...
5978 (auto_language_data): ...this.
5979 (class auto_language): New class.
5980 (auto_language_defn): New static global.
5981 (language_gdbarch_post_init): Use language_defn::languages.
5982 (_initialize_language): Initialize current_language.
5983 * gdb/language.h (struct language_defn): Rename to...
5984 (struct language_data): ...this.
5985 (struct language_defn): New.
5986 (auto_language_defn): Delete.
5987 (unknown_language_defn): Delete.
5988 (minimal_language_defn): Delete.
5989 (ada_language_defn): Delete.
5990 (asm_language_defn): Delete.
5991 (c_language_defn): Delete.
5992 (cplus_language_defn): Delete.
5993 (d_language_defn): Delete.
5994 (f_language_defn): Delete.
5995 (go_language_defn): Delete.
5996 (m2_language_defn): Delete.
5997 (objc_language_defn): Delete.
5998 (opencl_language_defn): Delete.
5999 (pascal_language_defn): Delete.
6000 (rust_language_defn): Delete.
6001 * gdb/m2-lang.c (m2_language_defn): Convert to...
6002 (m2_language_data): ...this.
6003 (class m2_language): New class.
6004 (m2_language_defn): New static global.
6005 * gdb/objc-lang.c (objc_language_defn): Convert to...
6006 (objc_language_data): ...this.
6007 (class objc_language): New class.
6008 (objc_language_defn): New static global.
6009 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
6010 (opencl_language_data): ...this.
6011 (class opencl_language): New class.
6012 (opencl_language_defn): New static global.
6013 * gdb/p-lang.c (pascal_language_defn): Convert to...
6014 (pascal_language_data): ...this.
6015 (class pascal_language): New class.
6016 (pascal_language_defn): New static global.
6017 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
6018 language pointer, update comment format.
6019 * gdb/rust-lang.c (rust_language_defn): Convert to...
6020 (rust_language_data): ...this.
6021 (class rust_language): New class.
6022 (rust_language_defn): New static global.
6023
1313c56e
AB
60242020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
6025
6026 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
6027 member variable.
6028 <m_stmt_at_address>: New member variable.
6029 (lnp_state_machine::record_line): Don't record some lines, update
6030 tracking of is_stmt at the same address.
6031 (lnp_state_machine::lnp_state_machine): Initialise new member
6032 variables.
6033
b7ed9f3d
ST
60342020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
6035
6036 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
6037 "-include gnu-nat-mig.h".
6038 * gnu-nat-mig.h: New file.
6039 * gnu-nat.c: Include "gnu-nat-mig.h".
6040 (exc_server, msg_reply_server, notify_server,
6041 process_reply_server): Remove declarations.
6042
14a8ad62
ST
60432020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6044
6045 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
6046 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
6047 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
6048 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
6049 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
6050 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
6051 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
6052 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
6053 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
6054 to gnu_nat_target class.
6055 * gnu-nat.c: Likewise.
6056 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
6057 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
6058 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
6059 object.
6060 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
6061 instead of `gnu_target'.
6062
0af5e106
ST
60632020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6064
6065 * i386-gnu-tdep.c: Include "gdbcore.h"
6066 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
6067 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
6068 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
6069 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
6070 i386_gnu_sigcontext_addr): New functions
6071 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
6072 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
6073 tdep.
6074
078f2fc9
ST
60752020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6076
6077 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
6078 before fork_inferior call. Avoid calling it if target_is_pushed returns
6079 true.
6080
53dff92c
ST
60812020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6082
6083 * gnu-nat.h (gnu_target): New variable declaration.
6084 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
6085 gnu_target.
6086 * gnu-nat.c (gnu_target): New variable.
6087 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
6088 add_thread_silent, and add_thread calls.
6089 (gnu_nat_target::create_inferior): Pass gnu_target to
6090 add_thread_silent, thread_change_ptid call.
6091 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
6092 call.
6093
5a8b8627
ST
60942020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6095
6096 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
6097 (gnu_nat_target::find_memory_regions): Remove unused
6098 `old_address' variable.
6099
366f550a
ST
61002020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6101
6102 * gnu-nat.c: Include "gdbarch.h".
6103
f14871bf
ST
61042020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6105
6106 * reply_mig_hack.awk (Error return): Cast function through
6107 void *, to bypass compiler function call check.
6108
c6887cfb
ST
61092020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6110
6111 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
6112 $(srcdir)/reply_mig_hack.awk.
6113
6930bffe
ST
61142020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6115
6116 * gnu-nat.h (gnu_debug_flag): Set type to bool.
6117
112c22ed
JG
61182020-05-30 Jonny Grant <jg@jguk.org>
6119
6120 * configure.ac (ACX_BUGURL): change bug URL to https.
6121
f68f85b5
PA
61222020-05-30 Pedro Alves <palves@redhat.com>
6123
6124 * cp-support.c (replace_typedefs_template): New.
6125 (replace_typedefs_qualified_name): Handle
6126 DEMANGLE_COMPONENT_TEMPLATE.
6127
976ca316
SM
61282020-05-29 Simon Marchi <simon.marchi@efficios.com>
6129
6130 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
6131 dwarf2/index-cache.h, dwarf2/index-write.c,
6132 dwarf2/index-write.h, dwarf2/line-header.c,
6133 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
6134 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
6135 variables and fields from `dwarf2_per_objfile` to just
6136 `per_objfile` throughout.
6137
989ade05
SM
61382020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
6139
6140 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6141 <push_dwarf_reg_entry_value>: Add comment.
6142
c47bae85
KB
61432020-05-28 Kevin Buettner <kevinb@redhat.com>
6144 Keith Seitz <keiths@redhat.com>
6145
6146 * python/python.c (do_start_initialization): Call PyEval_SaveThread
6147 instead of PyEval_ReleaseLock.
6148 (class gdbpy_gil): Move to earlier in file.
6149 (finalize_python): Set gdb_python_initialized.
6150 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
6151 when not initialized.
6152
44486dcf
SM
61532020-05-28 Simon Marchi <simon.marchi@efficios.com>
6154
6155 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6156 <push_dwarf_reg_entry_value>: Remove assert. Override
6157 per_objfile with caller_per_objfile.
6158
f030440d
TV
61592020-05-28 Tom de Vries <tdevries@suse.de>
6160
6161 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
6162 PR gold/15646 workaround to symbol kind "type".
6163
f0fbb768
TT
61642020-05-27 Tom Tromey <tromey@adacore.com>
6165
6166 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
6167
af0b2a3e
TT
61682020-05-27 Tom Tromey <tromey@adacore.com>
6169
6170 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
6171 Use htab_find_with_hash.
6172 <add_abbrev>: Remove "abbrev_number" parameter.
6173 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
6174 "abbrev_number" parameter. Use htab_find_slot_with_hash.
6175 (hash_abbrev): Add comment.
6176 (abbrev_table::lookup_abbrev): Move to header file.
6177 (abbrev_table::read): Update.
6178
7d00ffec
TT
61792020-05-27 Tom Tromey <tromey@adacore.com>
6180
6181 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
6182 method.
6183 <canonical_name>: New member.
6184 <raw_name>: Rename from "name".
6185 (partial_die_info): Initialize canonical_name.
6186 (scan_partial_symbols): Check raw_name.
6187 (partial_die_parent_scope, partial_die_full_name)
6188 (add_partial_symbol, add_partial_subprogram)
6189 (add_partial_enumeration, load_partial_dies): Use "name" method.
6190 (partial_die_info::name): New method.
6191 (partial_die_info::read, guess_partial_die_structure_name)
6192 (partial_die_info::fixup): Update.
6193
697bba18
TT
61942020-05-27 Tom Tromey <tromey@adacore.com>
6195
6196 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
6197 <get_ref_die_offset>: Inline.
6198 <get_ref_die_offset_complaint>: New method.
6199 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
6200 (attribute::get_ref_die_offset_complaint): Rename from
6201 get_ref_die_offset. Just issue complaint.
6202
c17ace43
HD
62032020-05-27 Hannes Domani <ssbssa@yahoo.de>
6204
6205 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
6206
96445f0b
HD
62072020-05-27 Hannes Domani <ssbssa@yahoo.de>
6208
6209 * exec.c (exec_file_attach): Use errno value of first openp failure.
6210
ac637ec3
HD
62112020-05-27 Hannes Domani <ssbssa@yahoo.de>
6212
6213 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
6214 Don't close thread handle.
6215
17ee85fc
TT
62162020-05-27 Tom Tromey <tom@tromey.com>
6217 Simon Marchi <simon.marchi@efficios.com>
6218
6219 * objfiles.h (struct objfile) <partial_symtabs>: Now a
6220 shared_ptr.
6221 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
6222 member.
6223 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
6224 dwarf2_per_bfd_objfile_data_key>: New globals.
6225 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
6226 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
6227 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
6228 shared.
6229 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
6230 short-circuit when sharing.
6231 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
6232 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
6233
39b16f87
SM
62342020-05-27 Simon Marchi <simon.marchi@efficios.com>
6235
6236 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
6237 to...
6238 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
6239 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
6240
fcf23d5b
SM
62412020-05-27 Simon Marchi <simon.marchi@efficios.com>
6242
6243 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
6244 build_name_components, find_name_components_bounds>:
6245 Add per_objfile parameter.
6246 (struct mapped_index) <symbol_name_at>: Likewise.
6247 (struct mapped_debug_names): Remove constructor.
6248 <dwarf2_per_objfile>: Remove field.
6249 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
6250 (mapped_index_base::find_name_components_bounds,
6251 mapped_index_base::build_name_components,
6252 dw2_expand_symtabs_matching_symbol): Likewise.
6253 (class mock_mapped_index) <symbol_name_at>: Likewise.
6254 (check_match): Likewise.
6255 (check_find_bounds_finds): Likewise.
6256 (test_mapped_index_find_name_component_bounds): Update.
6257 (CHECK_MATCH): Update.
6258 (dw2_expand_symtabs_matching): Update.
6259 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
6260 per_objfile parameter.
6261 <find_vec_in_debug_names>: Likewise.
6262 <m_per_objfile>: New field.
6263 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
6264 parameter.
6265 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
6266 (dw2_debug_names_iterator::next): Update.
6267 (dw2_debug_names_lookup_symbol): Update.
6268 (dw2_debug_names_expand_symtabs_for_function): Update.
6269 (dw2_debug_names_map_matching_symbols): Update.
6270 (dw2_debug_names_expand_symtabs_matching): Update.
6271 (dwarf2_read_debug_names): Update.
6272
7188ed02
SM
62732020-05-27 Simon Marchi <simon.marchi@efficios.com>
6274
6275 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
6276 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
6277 move to dwarf2_per_objfile.
6278 <read_in_chain>: Remove.
6279 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
6280 remove_all_cus, age_comp_units>: New methods.
6281 <m_dwarf2_cus>: New member.
6282 (struct dwarf2_per_cu_data) <cu>: Remove.
6283 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
6284 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
6285 moved to methods of dwarf2_per_objfile.
6286 (dwarf2_clear_marks): Remove.
6287 (dwarf2_queue_item::~dwarf2_queue_item): Update.
6288 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
6289 (dwarf2_per_bfd::free_cached_comp_units): Remove.
6290 (dwarf2_per_objfile::remove_all_cus): New.
6291 (class free_cached_comp_units) <~free_cached_comp_units>:
6292 Update.
6293 (load_cu): Update.
6294 (dw2_do_instantiate_symtab): Adjust.
6295 (fill_in_sig_entry_from_dwo_entry): Adjust.
6296 (cutu_reader::init_tu_and_read_dwo_dies): Update.
6297 (cutu_reader::cutu_reader): Likewise.
6298 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
6299 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
6300 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
6301 and dwarf2_per_objfile::age_comp_units.
6302 (load_partial_comp_unit): Update.
6303 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
6304 (process_queue): Likewise.
6305 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
6306 backlink.
6307 (dwarf2_read_addr_index): Likewise.
6308 (follow_die_offset): Likewise.
6309 (dwarf2_fetch_die_loc_sect_off): Likewise.
6310 (dwarf2_fetch_constant_bytes): Likewise.
6311 (dwarf2_fetch_die_type_sect_off): Likewise.
6312 (follow_die_sig_1): Likewise.
6313 (load_full_type_unit): Likewise.
6314 (read_signatured_type): Likewise.
6315 (dwarf2_cu::dwarf2_cu): Don't set cu field.
6316 (dwarf2_cu::~dwarf2_cu): Remove.
6317 (dwarf2_per_objfile::get_cu): New.
6318 (dwarf2_per_objfile::set_cu): New.
6319 (age_cached_comp_units): Rename to...
6320 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
6321 to std::unordered_map.
6322 (free_one_cached_comp_unit): Rename to...
6323 (dwarf2_per_objfile::remove_cu): ... this. Adjust
6324 to std::unordered_map.
6325 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
6326 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
6327 a dwarf2_per_objfile in data.
6328 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
6329 (dwarf2_clear_marks): Remove.
6330
2e671100
SM
63312020-05-27 Simon Marchi <simon.marchi@efficios.com>
6332
6333 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
6334 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
6335 (init_tu_and_read_dwo_dies): Likewise.
6336 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
6337 (cutu_reader::cutu_reader): Likewise.
6338 (load_partial_comp_unit): Likewise.
6339 (process_psymtab_comp_unit): Update.
6340 (build_type_psymtabs_1): Update.
6341 (process_skeletonless_type_unit): Update.
6342 (load_full_comp_unit): Update.
6343 (find_partial_die): Update.
6344 (dwarf2_read_addr_index): Update.
6345 (read_signatured_type): Update.
6346
2e6a9f79
SM
63472020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6348
6349 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
6350 m_header_read_in>: New fields.
6351 <get_header>: New method.
6352 * dwarf2/read.c (per_cu_header_read_in): Remove.
6353 (dwarf2_per_cu_data::get_header): New.
6354 (dwarf2_per_cu_data::addr_size): Update.
6355 (dwarf2_per_cu_data::offset_size): Update.
6356 (dwarf2_per_cu_data::ref_addr_size): Update.
6357
1b555f17
SM
63582020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6359
6360 * dwarf2/read.c (load_cu): Return dwarf2_cu.
6361 (dw2_do_instantiate_symtab): Update.
6362 (queue_and_load_all_dwo_tus): Change parameter from
6363 dwarf2_per_cu_data to dwarf2_cu.
6364 (dwarf2_fetch_die_loc_sect_off): Update.
6365 (dwarf2_fetch_constant_bytes): Update.
6366 (dwarf2_fetch_die_type_sect_off): Update.
6367
8fc0b21d
SM
63682020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6369
6370 * dwarf2/read.c (process_full_comp_unit,
6371 process_full_type_unit): Remove per_cu, per_objfile paramters.
6372 Add dwarf2_cu parameter.
6373 (process_queue): Update.
6374
168c9250
SM
63752020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6376
6377 * dwarf2/read.c (create_cu_from_index_list): Replace
6378 dwarf2_per_objfile parameter with dwarf2_per_bfd.
6379 (create_cus_from_index_list): Likewise.
6380 (create_cus_from_index): Likewise.
6381 (create_signatured_type_table_from_index): Likewise.
6382 (create_cus_from_debug_names_list): Likewise.
6383 (create_cus_from_debug_names): Likewise.
6384 (dwarf2_read_gdb_index): Update.
6385 (dwarf2_read_debug_names): Update.
6386
e286671b
TT
63872020-05-27 Tom Tromey <tom@tromey.com>
6388 Simon Marchi <simon.marchi@efficios.com>
6389
6390 * dwarf2/read.h (struct dwarf2_per_objfile)
6391 <get_type_for_signatured_type, set_type_for_signatured_type>:
6392 New methods.
6393 <m_type_map>: New member.
6394 (struct signatured_type) <type>: Remove.
6395 * dwarf2/read.c
6396 (dwarf2_per_objfile::get_type_for_signatured_type,
6397 dwarf2_per_objfile::set_type_for_signatured_type): New.
6398 (get_signatured_type): Use new methods.
6399
8adb8487
TT
64002020-05-27 Tom Tromey <tom@tromey.com>
6401 Simon Marchi <simon.marchi@efficios.com>
6402
6403 * dwarf2/read.h (struct type_unit_group_unshareable): New.
6404 (struct dwarf2_per_objfile) <type_units>: New member.
6405 <get_type_unit_group_unshareable>: New method.
6406 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
6407 num_symtabs, symtabs>: Remove; move to
6408 type_unit_group_unshareable.
6409 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
6410 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
6411 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
6412
127bbf4b
SM
64132020-05-27 Simon Marchi <simon.marchi@efficios.com>
6414
6415 * dwarf2/read.h (struct dwarf2_per_cu_data):
6416 <dwarf2_per_objfile>: Remove.
6417 * dwarf2/read.c (create_cu_from_index_list): Don't assign
6418 dwarf2_per_objfile.
6419 (create_signatured_type_table_from_index): Likewise.
6420 (create_signatured_type_table_from_debug_names): Likewise.
6421 (create_debug_type_hash_table): Likewise.
6422 (fill_in_sig_entry_from_dwo_entry): Likewise.
6423 (create_type_unit_group): Likewise.
6424 (read_comp_units_from_section): Likewise.
6425 (create_cus_hash_table): Likewise.
6426
f6e649dd
SM
64272020-05-27 Simon Marchi <simon.marchi@efficios.com>
6428
6429 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
6430 dwarf2_per_cu_data::dwarf2_per_objfile.
6431 (compute_compunit_symtab_includes): Likewise.
6432 (dwarf2_cu::start_symtab): Likewise.
6433
aa66c379
SM
64342020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6435
6436 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
6437 parameter.
6438 * dwarf2/read.c (get_die_type_at_offset): Likewise.
6439 (read_namespace_alias): Update.
6440 (lookup_die_type): Update.
6441 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
6442 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
6443 Update.
6444 (disassemble_dwarf_expression): Update.
6445
120ce1b5
SM
64462020-05-27 Simon Marchi <simon.marchi@efficios.com>
6447
6448 * dwarf2/read.h (struct dwarf2_queue_item): Add
6449 dwarf2_per_objfile parameter, assign new parameter.
6450 <per_objfile>: New field.
6451 * dwarf2/read.c (free_one_cached_comp_unit): Add
6452 dwarf2_per_objfile parameter.
6453 (queue_comp_unit): Likewise.
6454 (dw2_do_instantiate_symtab): Update.
6455 (process_psymtab_comp_unit): Update.
6456 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
6457 (process_imported_unit_die): Update.
6458 (queue_and_load_dwo_tu): Update.
6459 (follow_die_offset): Update.
6460 (follow_die_sig_1): Update.
6461
9f47c707
SM
64622020-05-27 Simon Marchi <simon.marchi@efficios.com>
6463
6464 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
6465 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
6466 (read_call_site_scope): Assign per_objfile.
6467 (dwarf2_per_cu_data::objfile): Remove.
6468 * gdbtypes.h (struct call_site) <per_objfile>: New member.
6469 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
6470 dwarf2_per_objfile parameter.
6471 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
6472 dwarf2_per_objfile parameter.
6473 (dwarf_expr_reg_to_entry_parameter): Add output
6474 dwarf2_per_objfile parameter.
6475 (locexpr_get_frame_base): Update.
6476 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
6477 <push_dwarf_reg_entry_value>: Update.
6478 <call_site_to_target_addr>: Update.
6479 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
6480 parameter.
6481 (value_of_dwarf_reg_entry): Update.
6482 (rw_pieced_value): Update.
6483 (indirect_synthetic_pointer): Update.
6484 (dwarf2_evaluate_property): Update.
6485 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
6486 parameter.
6487 (locexpr_read_variable): Update.
6488 (locexpr_get_symbol_read_needs): Update.
6489 (loclist_read_variable): Update.
6490
14095eb3
SM
64912020-05-27 Simon Marchi <simon.marchi@efficios.com>
6492
6493 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
6494 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
6495 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
6496 parameter.
6497 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
6498 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
6499 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
6500 parameter.
6501 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
6502 sect_variable_value): Add dwarf2_per_objfile parameter.
6503 (class dwarf_evaluate_loc_desc) <dwarf_call,
6504 dwarf_variable_value>: Update.
6505 (fetch_const_value_from_synthetic_pointer): Add
6506 dwarf2_per_objfile parameter.
6507 (fetch_const_value_from_synthetic_pointer): Update.
6508 (coerced_pieced_ref): Update.
6509 (class symbol_needs_eval_context) <dwarf_call,
6510 dwarf_variable_value>: Update.
6511 (dwarf2_compile_expr_to_ax): Update.
6512
3c3cd3d4
SM
65132020-05-27 Simon Marchi <simon.marchi@efficios.com>
6514
6515 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
6516 parameter.
6517 (dwarf2_evaluate_loc_desc_full): Update.
6518
82ca3f51
SM
65192020-05-27 Simon Marchi <simon.marchi@efficios.com>
6520
6521 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
6522 parameter.
6523 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
6524 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
6525 dwarf2_per_objfile parameter.
6526 (decode_debug_loc_dwo_addresses): Likewise.
6527 (dwarf2_find_location_expression): Update.
6528 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
6529 (locexpr_describe_location_piece): Add dwarf2_per_objfile
6530 parameter.
6531 (disassemble_dwarf_expression): Add dwarf2_per_objfile
6532 parameter.
6533 (locexpr_describe_location_1): Likewise.
6534 (locexpr_describe_location): Update.
6535
4b167ea1
SM
65362020-05-27 Simon Marchi <simon.marchi@efficios.com>
6537
6538 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
6539 Remove.
6540 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
6541 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
6542 (dwarf2_compile_property_to_c): Update.
6543 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
6544 use text offset from objfile.
6545 (locexpr_tracepoint_var_ref): Update.
6546 (locexpr_generate_c_location): Update.
6547 (loclist_describe_location): Update.
6548 (loclist_tracepoint_var_ref): Update.
6549 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
6550 dwarf2_per_objfile parameter.
6551 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
6552 use text offset from objfile.
6553 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
6554
89b07335
SM
65552020-05-27 Simon Marchi <simon.marchi@efficios.com>
6556
6557 * dwarf2/expr.h (struct dwarf_expr_context)
6558 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
6559 <offset>: Remove.
6560 <per_objfile>: New member.
6561 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
6562 dwarf2_per_objfile parameter. Don't set offset, set
6563 per_objfile.
6564 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
6565 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
6566 a dwarf2_per_objfile object instead of an offset.
6567 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
6568 constructor.
6569 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
6570 to dwarf2_expr_executor constructor. Don't set offset.
6571 (dwarf2_fetch_cfa_info): Update.
6572 (struct dwarf2_frame_cache) <text_offset>: Remove.
6573 <per_objfile>: New field.
6574 (dwarf2_frame_cache): Update.
6575 (dwarf2_frame_prev_register): Update.
6576 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6577 <dwarf_evaluate_loc_desc>: Add constructor.
6578 (dwarf2_evaluate_loc_desc_full): Update.
6579 (dwarf2_locexpr_baton_eval): Update.
6580 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
6581 Add constructor.
6582 (dwarf2_loc_desc_get_symbol_read_needs): Update.
6583
293e7e51
SM
65842020-05-27 Simon Marchi <simon.marchi@efficios.com>
6585
6586 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
6587 addr_sized_int_type>: Move to dwarf2_cu.
6588 <int_type>: Move to dwarf2_per_objfile.
6589 (struct dwarf2_per_objfile) <int_type>: Move here.
6590 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
6591 addr_sized_int_type>: Move here.
6592 (read_func_scope): Update.
6593 (read_array_type): Update.
6594 (read_tag_string_type): Update.
6595 (attr_to_dynamic_prop): Update.
6596 (dwarf2_per_cu_data::int_type): Rename to...
6597 (dwarf2_per_objfile::int_type): ... this.
6598 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
6599 (dwarf2_cu::addr_sized_int_type): ... this.
6600 (read_subrange_type): Update.
6601 (dwarf2_per_cu_data::addr_type): Rename to...
6602 (dwarf2_cu::addr_type): ... this.
6603 (set_die_type): Update.
6604
64874a40
SM
66052020-05-27 Simon Marchi <simon.marchi@efficios.com>
6606
6607 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
6608 data through per_cu->cu.
6609
4ab09049
SM
66102020-05-27 Simon Marchi <simon.marchi@efficios.com>
6611
6612 * dwarf2/read.c (lookup_dwo_comp_unit): Change
6613 dwarf2_per_cu_data parameter fo dwarf2_cu.
6614 (lookup_dwo_type_unit): Likewise.
6615 (read_cutu_die_from_dwo): Likewise.
6616 (lookup_dwo_unit): Likewise.
6617 (open_and_init_dwo_file): Likewise.
6618 (lookup_dwo_cutu): Likewise.
6619 (lookup_dwo_comp_unit): Likewise.
6620 (lookup_dwo_type_unit): Likewise.
6621 (cutu_reader::init_tu_and_read_dwo_dies): Update.
6622 (cutu_reader::cutu_reader): Update.
6623
47b14e86
SM
66242020-05-27 Simon Marchi <simon.marchi@efficios.com>
6625
6626 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
6627 parameter.
6628 (process_full_type_unit): Likewise.
6629 (process_queue): Update.
6630
43182c09
SM
66312020-05-27 Simon Marchi <simon.marchi@efficios.com>
6632
6633 * dwarf2/read.c (recursively_compute_inclusions): Add
6634 dwarf2_per_objfile parameter.
6635 (compute_compunit_symtab_includes): Likewise.
6636 (process_cu_includes): Update.
6637
7aa104c4
SM
66382020-05-27 Simon Marchi <simon.marchi@efficios.com>
6639
6640 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
6641 parameter.
6642 (create_type_unit_group): Update.
6643 (process_psymtab_comp_unit_reader): Update.
6644 (build_type_psymtabs_reader): Update.
6645
e3beb21d
SM
66462020-05-27 Simon Marchi <simon.marchi@efficios.com>
6647
6648 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
6649 object through m_this_cu->cu.
6650
d460f660
SM
66512020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6652
6653 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
6654 the info parameter.
6655 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
6656
ab432490
SM
66572020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6658
6659 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
6660 per_objfile parameter.
6661 (load_full_type_unit): Add per_objfile parameter.
6662 (read_signatured_type): Likewise.
6663 (load_full_comp_unit): Likewise.
6664 (load_cu): Likewise.
6665 (dw2_do_instantiate_symtab): Likewise.
6666 (dw2_get_file_names): Likewise.
6667 (dw2_map_symtabs_matching_filename): Update.
6668 (dw_expand_symtabs_matching_file_matcher): Update.
6669 (dw2_map_symbol_filenames): Update.
6670 (process_psymtab_comp_unit): Add per_objfile parameter.
6671 (build_type_psymtabs_1): Update.
6672 (process_skeletonless_type_unit): Update.
6673 (dwarf2_build_psymtabs_hard): Update.
6674 (load_partial_comp_unit): Add per_objfile parameter.
6675 (scan_partial_symbols): Update.
6676 (load_full_comp_unit): Add per_objfile parameter.
6677 (process_imported_unit_die): Update.
6678 (create_cus_hash_table): Update.
6679 (find_partial_die): Update.
6680 (dwarf2_read_addr_index): Update.
6681 (follow_die_offset): Update.
6682 (dwarf2_fetch_die_loc_sect_off): Update.
6683 (dwarf2_fetch_constant_bytes): Update.
6684 (dwarf2_fetch_die_type_sect_off): Update.
6685 (follow_die_sig_1): Update.
6686 (load_full_type_unit): Add per_objfile parameter.
6687 (read_signatured_type): Likewise.
6688
313bad1b
SM
66892020-05-27 Simon Marchi <simon.marchi@efficios.com>
6690
6691 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
6692 of objfile_name.
6693
c3699833
SM
66942020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6695
6696 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
6697 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
6698 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
6699 field.
6700 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
6701 (create_cus_from_index): Update.
6702 (dwarf2_read_gdb_index): Update.
6703 (create_cus_from_debug_names): Update.
6704 (dwarf2_read_debug_names): Update.
6705 (get_abbrev_section_for_cu): Update.
6706 (create_all_comp_units): Update.
6707 (read_attribute_value): Update.
6708 (get_debug_line_section): Update.
6709 * dwarf2/index-cache.c (index_cache::store): Update.
6710 * dwarf2/index-write.c (save_gdb_index_command): Update.
6711 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
6712
1859c670
SM
67132020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6714
6715 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
6716 member.
6717 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
6718 dwarf2_per_cu_data::per_bfd.
6719 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
6720 (create_type_unit_group): Likewise.
6721 (queue_comp_unit): Remove reference to
6722 per_cu->dwarf2_per_objfile.
6723 (maybe_queue_comp_unit): Likewise.
6724 (fill_in_sig_entry_from_dwo_entry): Assign new field.
6725 (create_cus_hash_table): Assign new field.
6726
5e22e966
SM
67272020-05-27 Simon Marchi <simon.marchi@efficios.com>
6728
6729 * dwarf2/read.c: Replace
6730 dwarf2_cu->per_cu->dwarf2_per_objfile references with
6731 dwarf2_cu->per_objfile throughout.
6732
97a1449a
SM
67332020-05-27 Simon Marchi <simon.marchi@efficios.com>
6734
6735 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
6736 parameter, don't use per_cu->dwarf2_per_objfile.
6737 (dw2_instantiate_symtab): Likewise.
6738 (dw2_find_last_source_symtab): Update.
6739 (dw2_map_expand_apply): Update.
6740 (dw2_lookup_symbol): Update.
6741 (dw2_expand_symtabs_for_function): Update.
6742 (dw2_expand_all_symtabs): Update.
6743 (dw2_expand_symtabs_with_fullname): Update.
6744 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
6745 don't use per_cu->dwarf2_per_objfile.
6746 (dw2_expand_marked_cus): Update.
6747 (dw2_find_pc_sect_compunit_symtab): Update.
6748 (dw2_debug_names_lookup_symbol): Update.
6749 (dw2_debug_names_expand_symtabs_for_function): Update.
6750 (dw2_debug_names_map_matching_symbols): Update.
6751 (dwarf2_psymtab::expand_psymtab): Update.
6752
9e021579
SM
67532020-05-27 Simon Marchi <simon.marchi@efficios.com>
6754
6755 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
6756 <per_objfile>: New member.
6757 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
6758 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
6759 call to dwarf2_cu.
6760 (cutu_reader::cutu_reader): Update.
6761 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
6762
ae090bdb
SM
67632020-05-27 Simon Marchi <simon.marchi@efficios.com>
6764
6765 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
6766 struct dwarf2_per_objfile.
6767 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
6768 dwarf2_per_bfd.
6769 * dwarf2/read.c (set_die_type): Update.
6770 (get_die_type_at_offset): Update.
6771
af758d11
SM
67722020-05-27 Tom Tromey <tom@tromey.com>
6773 Simon Marchi <simon.marchi@efficios.com>
6774
6775 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
6776 method.
6777 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
6778 get_symtab, set_symtab>: New methods.
6779 <m_symtabs>: New field.
6780 (struct dwarf2_psymtab): Derive from partial_symtab.
6781 <readin_p, get_compunit_symtab>: Declare methods.
6782 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
6783 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
6784 New methods.
6785 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
6786 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
6787 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
6788 (dw2_symtab_iter_next, dw2_print_stats)
6789 (dw2_expand_symtabs_with_fullname)
6790 (dw2_expand_symtabs_matching_one)
6791 (dw_expand_symtabs_matching_file_matcher)
6792 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
6793 (dw2_debug_names_iterator::next)
6794 (dw2_debug_names_map_matching_symbols)
6795 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
6796 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
6797 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
6798 New methods.
6799 (get_compunit_symtab, process_full_comp_unit)
6800 (process_full_type_unit): Update.
6801 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
6802
5989a64e
SM
68032020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6804
6805 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
6806 then introduce a new dwarf2_per_objfile type.
6807 <read_line_string>: Move to the new dwarf2_per_objfile type.
6808 <objfile>: Likewise.
6809 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
6810 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
6811 dwarf2_per_objfile->per_bfd.
6812 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
6813 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
6814 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
6815 (dwarf2_per_bfd::free_cached_comp_units): ... this.
6816 (dwarf2_has_info): Allocate dwarf2_per_bfd.
6817 (dwarf2_per_objfile::locate_sections): Rename to...
6818 (dwarf2_per_bfd::locate_sections): ... this.
6819 (dwarf2_per_objfile::get_cutu): Rename to...
6820 (dwarf2_per_bfd::get_cutu): ... this.
6821 (dwarf2_per_objfile::get_cu): Rename to...
6822 (dwarf2_per_bfd::get_cu): ... this.
6823 (dwarf2_per_objfile::get_tu): Rename to...
6824 (dwarf2_per_bfd::get_tu): ... this.
6825 (dwarf2_per_objfile::allocate_per_cu): Rename to...
6826 (dwarf2_per_bfd::allocate_per_cu): ... this.
6827 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
6828 (dwarf2_per_bfd::allocate_signatured_type): ... this.
6829 (get_gdb_index_contents_ftype): Change parameter from
6830 dwarf2_per_objfile to dwarf2_per_bfd.
6831 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
6832 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
6833
a50264ba
TT
68342020-05-27 Tom Tromey <tom@tromey.com>
6835 Simon Marchi <simon.marchi@efficios.com>
6836
6837 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
6838 (allocate_piece_closure): Set "per_objfile" member.
6839 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
6840 (locexpr_describe_location, loclist_describe_location): Use new
6841 member.
6842 * dwarf2/read.c (read_call_site_scope)
6843 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
6844 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
6845 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
6846 handle_data_member_location): Set per_objfile member.
6847 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
6848 member.
6849 (struct dwarf2_loclist_baton) <per_objfile>: New member.
6850
d3473f0c
TT
68512020-05-27 Tom Tromey <tom@tromey.com>
6852
6853 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
6854 allocate_signatured_type>: Declare new methods.
6855 <m_num_psymtabs>: New member.
6856 (struct dwarf2_per_cu_data) <index>: New member.
6857 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
6858 (dwarf2_per_objfile::allocate_signatured_type): New methods.
6859 (create_cu_from_index_list): Use allocate_per_cu.
6860 (create_signatured_type_table_from_index)
6861 (create_signatured_type_table_from_debug_names)
6862 (create_debug_type_hash_table, add_type_unit)
6863 (read_comp_units_from_section): Use allocate_signatured_type.
6864
5717c425
TT
68652020-05-27 Tom Tromey <tom@tromey.com>
6866
6867 * psymtab.c (partial_map_expand_apply)
6868 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
6869 (psym_lookup_global_symbol_language)
6870 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
6871 (psym_print_stats, psym_expand_symtabs_for_function)
6872 (psym_map_symbol_filenames, psym_map_matching_symbols)
6873 (psym_expand_symtabs_matching)
6874 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
6875 (maintenance_check_psymtabs): Update.
6876 * psympriv.h (struct partial_symtab) <readin_p,
6877 get_compunit_symtab>: Add objfile parameter.
6878 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
6879 Likewise.
6880 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
6881 get_compunit_symtab>: Likewise.
6882 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
6883
45940949
TT
68842020-05-27 Tom Tromey <tom@tromey.com>
6885
6886 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
6887 member.
6888 * dwarf2/read.c (delete_file_name_entry): Fix comment.
6889 (create_cu_from_index_list)
6890 (create_signatured_type_table_from_index)
6891 (create_signatured_type_table_from_debug_names)
6892 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
6893 (dwarf2_create_include_psymtab)
6894 (create_debug_type_hash_table, add_type_unit)
6895 (create_type_unit_group, read_comp_units_from_section)
6896 (dwarf2_compute_name, create_cus_hash_table)
6897 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
6898 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
6899 obstack.
6900 (dw2_get_real_path): Likewise. Change argument to
6901 dwarf2_per_objfile.
6902
f8c6d152
LM
69032020-05-27 Luis Machado <luis.machado@linaro.org>
6904
6905 PR tdep/26000
6906 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
6907 for ldrd (immediate).
6908
e98d2e6d
PW
69092020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6910
6911 * command.h: Add comment giving the name of class_tui.
6912 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
6913 create the fake command for the help for class_tui.
6914
53a47a3e
TT
69152020-05-26 Tom Tromey <tromey@adacore.com>
6916
6917 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
6918 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
6919 (val_atr): New function.
6920 (value_val_atr): Use it.
6921 * ada-valprint.c (print_optional_low_bound): Change low bound
6922 handling for enums.
6923 (val_print_packed_array_elements): Don't call discrete_position.
6924 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
6925 discrete_position for enum types.
6926 * language.c (default_print_array_index): Change type.
6927 * language.h (struct language_defn) <la_print_array_index>: Add
6928 index_type parameter, change type of index_value.
6929 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
6930 (default_print_array_index): Update.
6931 * valprint.c (maybe_print_array_index): Don't call
6932 value_from_longest. Update.
6933 (value_print_array_elements): Don't call discrete_position.
6934
0bc2354b
TT
69352020-05-26 Tom Tromey <tromey@adacore.com>
6936
6937 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
6938 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
6939
1218a4bf
CDA
69402020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
6941
6942 PR gdb/13519
6943 * avr-tdep.c (avr_integer_to_address): Return data or code
6944 address accordingly to the second 'type' argument of the
6945 function.
6946
92651b1d
MW
69472020-05-25 Michael Weghorn <m.weghorn@posteo.de>
6948
6949 * infcmd.c, inferior.h: (construct_inferior_arguments):
6950 Moved function from here to gdbsupport/common-inferior.{h,cc}
6951
0a4f5f8c
TT
69522020-05-23 Tom Tromey <tom@tromey.com>
6953
6954 Revert commit eca1f90c:
6955 * NEWS: Remove entry for completion styling.
6956 * completer.c (_rl_completion_prefix_display_length): Move
6957 declaration later.
6958 (gdb_fnprint): Revert.
6959 (gdb_display_match_list_1): Likewise.
6960 * cli/cli-style.c (completion_prefix_style)
6961 (completion_difference_style, completion_suffix_style): Remove.
6962 (_initialize_cli_style): Revert.
6963 * cli/cli-style.h (completion_prefix_style)
6964 (completion_difference_style, completion_suffix_style): Don't
6965 declare.
6966
e08bd6c5
PA
69672020-05-24 Pedro Alves <palves@redhat.com>
6968
6969 * symtab.c (completion_list_add_name): Return boolean indication
6970 of whether the symbol matched.
6971 (completion_list_add_symbol): Don't try to remove C++ aliases if
6972 the symbol didn't match in the first place.
6973 * symtab.h (completion_list_add_name): Return bool.
6974
ceacbf6e
SM
69752020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
6976
6977 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
6978 type::field.
6979
26f16254
JB
69802020-05-23 Joel Brobecker <brobecker@adacore.com>
6981
6982 GDB 9.2 released.
6983
eca1f90c
TT
69842020-05-23 Tom Tromey <tom@tromey.com>
6985
6986 * NEWS: Add entry for completion styling.
6987 * completer.c (_rl_completion_prefix_display_length): Move
6988 declaration earlier.
6989 (gdb_fnprint): Use completion_style.
6990 (gdb_display_match_list_1): Likewise.
6991 * cli/cli-style.c (completion_prefix_style)
6992 (completion_difference_style, completion_suffix_style): New
6993 globals.
6994 (_initialize_cli_style): Register new globals.
6995 * cli/cli-style.h (completion_prefix_style)
6996 (completion_difference_style, completion_suffix_style): Declare.
6997
51e2cfa2
PA
69982020-05-23 Pedro Alves <palves@redhat.com>
6999
7000 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
7001 (parse_escape): Use ISDIGIT instead of isdigit.
7002 (puts_debug): Use gdb_isprint instead of isprint.
7003 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
7004 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
7005 ISSPACE instead of isspace.
7006 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
7007 instead of isspace.
7008 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
7009 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
7010 instead of isxdigit and ISDIGIT instead of isdigit.
7011
80fc5e77
SM
70122020-05-22 Simon Marchi <simon.marchi@efficios.com>
7013
7014 * gdbtypes.h (struct type) <field>: New method.
7015 (TYPE_FIELDS): Remove, replace all uses with either type::fields
7016 or type::field.
7017
3cabb6b0
SM
70182020-05-22 Simon Marchi <simon.marchi@efficios.com>
7019
7020 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
7021 (TYPE_FIELDS): Use type::fields. Change all call sites that
7022 modify the propery to use type::set_fields instead.
7023
1f704f76
SM
70242020-05-22 Simon Marchi <simon.marchi@efficios.com>
7025
7026 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
7027 type::num_fields instead.
7028
5e33d5f4
SM
70292020-05-22 Simon Marchi <simon.marchi@efficios.com>
7030
7031 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
7032 methods.
7033 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
7034 that modify the number of fields to use type::set_num_fields
7035 instead.
7036
9392ebb3
TT
70372020-05-22 Tom Tromey <tromey@adacore.com>
7038
7039 * compile/compile-object-load.h (munmap_list_free): Don't
7040 declare.
7041
7c13f4e8
AB
70422020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
7043
7044 * annotate.c (annotate_source_line): Update return type, add call
7045 to update current symtab and line.
7046 * annotate.h (annotate_source_line): Update return type, and
7047 extend header comment.
7048 * source.c (info_line_command): Check annotation_level before
7049 calling annotate_source_line.
7050 * stack.c (print_frame_info): If calling annotate_source_line
7051 returns true, then don't print any other source line information.
7052
aa370940
SM
70532020-05-21 Simon Marchi <simon.marchi@efficios.com>
7054
7055 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
7056
84d53fa9
SM
70572020-05-21 Simon Marchi <simon.marchi@efficios.com>
7058
7059 * coffread.c (patch_type): Remove NULL check before xfree.
7060 * corefile.c (set_gnutarget): Likewise.
7061 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
7062 * exec.c (build_section_table): Likewise.
7063 * remote.c (remote_target::pass_signals): Likewise.
7064 * utils.c (n_spaces): Likewise.
7065 * cli/cli-script.c (document_command): Likewise.
7066 * i386-windows-tdep.c (core_process_module_section): Likewise.
7067 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
7068
9d428aae
SM
70692020-05-20 Simon Marchi <simon.marchi@efficios.com>
7070
7071 * symfile.c (reread_symbols): Clear objfile's section_offsets
7072 vector and section indices, re-compute them by calling
7073 sym_offsets.
7074
250106a7
TT
70752020-05-20 Tom Tromey <tromey@adacore.com>
7076
7077 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 7078 (desc_one_bound, desc_index_type): Compute field name.
250106a7 7079
9a0bacfb
TV
70802020-05-20 Tom de Vries <tdevries@suse.de>
7081
7082 PR symtab/25833
7083 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
7084
7b958a48
AM
70852020-05-20 Alan Modra <amodra@gmail.com>
7086
7087 PR 25993
7088 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
7089 bfd_set_filename.
7090 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
7091 passed to bfd_set_filename.
7092 * symfile-mem.c (add_vsyscall_page): Likewise for string
7093 passed to symbol_file_add_from_memory.
7094 (symbol_file_add_from_memory): Make name param a const char* and
7095 don't strdup.
7096
c7e97679
AM
70972020-05-20 Alan Modra <amodra@gmail.com>
7098
7099 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
7100 rather than accessing bfd->filename directly.
7101 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
7102 and use bfd_section_name.
7103 * dwarf2/frame.c (decode_frame_entry): Likewise.
7104 * exec.c (exec_set_section_address): Likewise.
7105 * solib-aix.c (solib_aix_bfd_open): Likewise.
7106 * stap-probe.c (get_stap_base_address): Likewise.
7107 * symfile.c (reread_symbols): Likewise.
7108
563c591b
TT
71092020-05-19 Tom Tromey <tromey@adacore.com>
7110
7111 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
7112
f408d82c
SM
71132020-05-19 Simon Marchi <simon.marchi@efficios.com>
7114
7115 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
7116
98c59b52
PA
71172020-05-19 Pedro Alves <palves@redhat.com>
7118
7119 * NEWS (set exec-file-mismatch): Adjust entry.
7120 * exec.c: Include "build-id.h".
7121 (validate_exec_file): Try to match build IDs instead of filenames.
7122 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
7123 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
7124 and pass down 'warn_if_slow'.
7125 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
7126 gdb_bfd_open_closure to pass it down.
7127 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
7128
4111f652
PA
71292020-05-19 Pedro Alves <palves@redhat.com>
7130
7131 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
7132 * target.c (target_fileio_open_1): Rename to target_fileio_open
7133 and make extern. Use bool.
7134 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
7135 (target_fileio_read_alloc_1): Adjust.
7136 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
7137 (target_fileio_open_warn_if_slow): Delete declaration.
7138
ad80db5b
PA
71392020-05-19 Pedro Alves <palves@redhat.com>
7140
7141 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
7142 Adjust all callers.
7143
1d6ce4d3
YS
71442020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
7145
7146 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
7147 whether disp is negative.
7148
9005fbbb
SM
71492020-05-19 Simon Marchi <simon.marchi@efficios.com>
7150
7151 * symfile.h (struct symfile_segment_data)
7152 <~symfile_segment_data>: Remove.
7153 <segment_info>: Change to std::vector.
7154 * symfile.c (default_symfile_segments): Update.
7155 * elfread.c (elf_symfile_segments): Update.
7156
68b888ff
SM
71572020-05-19 Simon Marchi <simon.marchi@efficios.com>
7158
7159 * symfile.h (struct symfile_segment_data) <struct segment>: New.
7160 <segments>: New.
7161 <segment_bases, segment_sizes>: Remove.
7162 * symfile.c (default_symfile_segments): Update.
7163 * elfread.c (elf_symfile_segments): Update.
7164 * remote.c (remote_target::get_offsets): Update.
7165 * solib-target.c (solib_target_relocate_section_addresses):
7166 Update.
7167
62982abd
SM
71682020-05-19 Simon Marchi <simon.marchi@efficios.com>
7169
7170 * symfile.h (struct symfile_segment_data): Initialize fields.
7171 <~symfile_segment_data>: Add.
7172 (symfile_segment_data_up): New.
7173 (struct sym_fns) <sym_segments>: Return a
7174 symfile_segment_data_up.
7175 (default_symfile_segments): Return a symfile_segment_data_up.
7176 (free_symfile_segment_data): Remove.
7177 (get_symfile_segment_data): Return a symfile_segment_data_up.
7178 * symfile.c (default_symfile_segments): Likewise.
7179 (get_symfile_segment_data): Likewise.
7180 (free_symfile_segment_data): Remove.
7181 (symfile_find_segment_sections): Update.
7182 * elfread.c (elf_symfile_segments): Return a
7183 symfile_segment_data_up.
7184 * remote.c (remote_target::get_offsets): Update.
7185 * solib-target.c (solib_target_relocate_section_addresses):
7186 Update.
7187 * symfile-debug.c (debug_sym_segments): Return a
7188 symfile_segment_data_up.
7189
7f204339
RO
71902020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7191
e52a0f1b
RO
7192 PR build/25981
7193 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
7194 Hardcode register numbers.
7195
7f204339
RO
7196 PR build/25981
7197 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
7198 procfs_find_LDT_entry): Remove.
7199 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
7200 procfs_find_LDT_entry): Remove.
7201 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
7202 Remove.
7203
7f32a4d5
PA
72042020-05-17 Pedro Alves <palves@redhat.com>
7205 Andrew Burgess <andrew.burgess@embecosm.com>
7206 Keno Fischer <keno@juliacomputing.com>
7207
7208 PR gdb/25741
7209 * breakpoint.c (build_target_condition_list): Update comments.
7210 (build_target_command_list): Update comments and skip matching
7211 locations.
7212 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
7213 a separate function. Simplify "set breakpoint auto-hw off"
7214 handling.
7215 (insert_breakpoints): Update comment.
7216 (tracepoint_locations_match): New parameter. For breakpoints,
7217 compare location types too, if the caller wants to.
7218 (handle_automatic_hardware_breakpoints): New functions.
7219 (bp_location_is_less_than): Also sort by location type and
7220 hardware breakpoint length.
7221 (update_global_location_list): Handle "set breakpoint auto-hw on"
7222 here.
7223 (update_breakpoint_locations): Ask breakpoint_locations_match to
7224 ignore location types.
7225
7d93a1e0
SM
72262020-05-16 Simon Marchi <simon.marchi@efficios.com>
7227
7228 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
7229 type::name instead.
7230
d0e39ea2
SM
72312020-05-16 Simon Marchi <simon.marchi@efficios.com>
7232
7233 * gdbtypes.h (struct type) <name, set_name>: New methods.
7234 (TYPE_CODE): Use type::name. Change all call sites used to set
7235 the name to use type::set_name instead.
7236
2dab0c7b
TT
72372020-05-16 Tom Tromey <tom@tromey.com>
7238
7239 * top.c (quit_force): Update.
7240 * infrun.c (handle_no_resumed): Update.
7241 * top.h (all_uis): New function.
7242 (ALL_UIS): Remove.
7243
59f7bd8d
SM
72442020-05-16 Simon Marchi <simon.marchi@efficios.com>
7245
7246 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
7247
9bf058f0
PA
72482020-05-16 Pedro Alves <palves@redhat.com>
7249
7250 * ia64-linux-nat.c
7251 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
7252 Declare method.
7253 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
7254
8f86ae1a
SM
72552020-05-15 Simon Marchi <simon.marchi@efficios.com>
7256
7257 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
7258 (sparc64_adi_info): Likewise.
7259
d6bc0792
TT
72602020-05-15 Tom Tromey <tom@tromey.com>
7261
7262 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
7263 block_objfile.
7264 (lookup_objfile_from_block): Remove.
7265 (lookup_symbol_in_block, lookup_symbol_in_static_block)
7266 (lookup_global_symbol): Use block_objfile.
7267 * symtab.h (lookup_objfile_from_block): Don't declare.
7268 * printcmd.c (clear_dangling_display_expressions): Use
7269 block_objfile.
7270 * parse.c (operator_check_standard): Use block_objfile.
7271
8c14c3a3
TT
72722020-05-15 Tom Tromey <tom@tromey.com>
7273
7274 * language.c (language_alloc_type_symbol): Set
7275 SYMBOL_SECTION.
7276 * symtab.c (initialize_objfile_symbol): Remove.
7277 (allocate_symbol): Remove.
7278 (allocate_template_symbol): Remove.
7279 * dwarf2/read.c (fixup_go_packaging): Use "new".
7280 (new_symbol): Use "new".
7281 (read_variable): Don't call initialize_objfile_symbol. Use
7282 "new".
7283 (read_func_scope): Use "new".
7284 * xcoffread.c (process_xcoff_symbol): Don't call
7285 initialize_objfile_symbol.
7286 (SYMBOL_DUP): Remove.
7287 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
7288 "new".
7289 * symtab.h (allocate_symbol, initialize_objfile_symbol)
7290 (allocate_template_symbol): Don't declare.
7291 (struct symbol): Add copy constructor. Change defaults.
7292 * jit.c (finalize_symtab): Use "new".
7293 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
7294 Use "new".
7295 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
7296 (common_block_end): Use "new".
7297 * mdebugread.c (parse_symbol): Use "new".
7298 (new_symbol): Likewise.
7299
5b4a1a8d
PW
73002020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7301
7302 * NEWS: Mention changes to help and apropos.
7303
57b4f16e
PW
73042020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7305
7306 * command.h (enum command_class): Improve comments, document
7307 that class_alias is for user-defined aliases, give the class
7308 name for each class, remove unused class_xdb.
7309 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
7310 * breakpoint.c (_initialize_breakpoint): Replace class_alias
7311 by a precise class.
7312 * infcmd.c (_initialize_infcmd): Likewise.
7313 * reverse.c (_initialize_reverse): Likewise.
7314 * stack.c (_initialize_stack): Likewise.
7315 * symfile.c (_initialize_symfile): Likewise.
7316 * tracepoint.c (_initialize_tracepoint): Likewise.
7317
7c05caf7
PW
73182020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7319
7320 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
7321 when their aliased command is traversed.
7322 (help_cmd): Add fput_command_names_styled call to
7323 output command name and aliases when command has an alias.
7324
3b3aaacb
PW
73252020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7326
7327 * cli/cli-decode.h (help_cmd_list): Remove declaration.
7328 * cli/cli-decode.c (help_cmd_list): Declare as static,
7329 remove prefix argument, use bool for recurse arg, rework to show the aliases of
7330 a command together with the command.
7331 (fput_command_name_styled, fput_command_names_styled): New functions.
7332 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
7333 fput_command_name_styled.
7334 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
7335 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
7336
7aa1b46f
PW
73372020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7338
7339 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
7340 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
7341 * command.h (cmd_show_list): Likewise.
7342 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
7343 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
7344
89bcba74
PW
73452020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7346
7347 * unittests/command-def-selftests.c (traverse_command_structure):
7348 Verify all commands of a list have the same prefix command and
7349 that only the top cmdlist commands have a null prefix.
7350
3f4d92eb
PW
73512020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7352
7353 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
7354 as prefix, not one of its aliases.
7355 (set_cmd_prefix): Remove.
7356 (do_add_cmd): Centralize the setting of the prefix of a command, when
7357 command is defined after its full chain of prefix commands.
7358 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
7359 (add_setshow_cmd_full): Likewise.
7360 (update_prefix_field_of_prefixed_commands): New function.
7361 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
7362 update_prefix_field_of_prefixed_commands.
7363 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
7364 addresses of remote_set_cmdlist and remote_show_cmdlist given
7365 as argument, not the address of an argument.
7366 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
7367 * gdb/remote.c (_initialize_remote): Likewise.
7368
0605465f
PW
73692020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7370
7371 * cli/cli-cmds.c (alias_command): Check for an existing alias
7372 using lookup_cmd_composition, as valid_command_p is too strict
7373 and forbids aliases that are the prefix of an existing alias
7374 or command.
7375 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
7376 command is properly recognised as a valid command.
7377
58e6ac70
PW
73782020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7379
7380 * unittests/help-doc-selftests.c: Rename to
7381 unittests/command-def-selftests.c
7382 * unittests/command-def-selftests.c (help_doc_tests): Update some
7383 comments.
7384 (command_structure_tests, traverse_command_structure): New namespace
7385 and function.
7386 (command_structure_invariants_tests): New function.
7387 (_initialize_command_def_selftests) Renamed from
7388 _initialize_help_doc_selftests, register command_structure_invariants
7389 selftest.
7390
a7b9ceb8
PW
73912020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7392
7393 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
7394 an alias of 'show'.
7395
b2188a06
JB
73962020-05-15 Joel Brobecker <brobecker@adacore.com>
7397
7398 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
7399 ada_is_fixed_point_type. Update all callers.
7400 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
7401 all callers.
7402 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
7403 Update all callers.
7404 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
7405 print_fixed_point_type. Update all callers.
7406 * ada-valprint.c (ada_value_print_num): Replace call to
7407 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
7408
a51951c2
KB
74092020-05-14 Kevin Buettner <kevinb@redhat.com>
7410
7411 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
7412 processors.
7413 (cpu_supports_bts): Add CV_AMD case.
7414
29d6859f
LM
74152020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
7416 Simon Marchi <simon.marchi@efficios.com>
7417
7418 * infrun.c (stop_all_threads): Collect multiple wait events at
7419 each pass.
7420
78134374
SM
74212020-05-14 Simon Marchi <simon.marchi@efficios.com>
7422
7423 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
7424 type::code instead.
7425
67607e24
SM
74262020-05-14 Simon Marchi <simon.marchi@efficios.com>
7427
7428 * gdbtypes.h (struct type) <code, set_code>: New methods.
7429 (TYPE_CODE): Use type::code. Change all call sites used to set
7430 the code to use type::set_code instead.
7431
a05575d3
TBA
74322020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7433 Tom de Vries <tdevries@suse.de>
7434 Pedro Alves <palves@redhat.com>
7435
7436 PR threads/25478
7437 * infrun.c (stop_all_threads): Do NOT ignore
7438 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
7439 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
7440 received.
7441 (handle_no_resumed): Remove code handling a live inferior with no
7442 threads.
7443 * remote.c (has_single_non_exited_thread): New.
7444 (remote_target::update_thread_list): Do not delete a thread if is
7445 the last thread of the process.
7446 * thread.c (thread_select): Call delete_exited_threads instead of
7447 prune_threads.
7448
6ad82919
TBA
74492020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7450
7451 * infrun.c (stop_all_threads): Enable/disable thread events of all
7452 targets. Move a debug message denoting the end of the function
7453 into the SCOPED_EXIT block.
7454
d890404b
TBA
74552020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7456
7457 * process-stratum-target.h: Include <set>.
7458 (all_non_exited_process_targets, switch_to_target_no_thread): New
7459 function declarations.
7460 * process-stratum-target.c (all_non_exited_process_targets)
7461 (switch_to_target_no_thread): New function implementations.
7462
293b3ebc
TBA
74632020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7464
7465 * infrun.c (handle_inferior_event): Extract out a piece of code
7466 into...
7467 (mark_non_executing_threads): ...this new function.
7468
7ca9b62a
TBA
74692020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7470
7471 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
7472 use.
7473
fc75c28b
TBA
74742020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7475
7476 * regcache.c (regcache_read_pc_protected): New function
7477 implementation that returns 0 if the PC cannot read via
7478 'regcache_read_pc'.
7479 * infrun.c (proceed): Call 'regcache_read_pc_protected'
7480 instead of 'regcache_read_pc'.
7481 (keep_going_pass_signal): Ditto.
7482
a89febbd
TT
74832020-05-13 Tom Tromey <tromey@adacore.com>
7484
7485 * ada-lang.c (align_value): Remove.
7486 (ada_template_to_fixed_record_type_1): Use align_up.
7487
f7e23710
TBA
74882020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7489
7490 * async-event.c: Update the copyright year.
7491 * async-event.h: Update the copyright year.
7492
02ff80c2
SM
74932020-05-12 Simon Marchi <simon.marchi@efficios.com>
7494
7495 * objfiles.h (is_addr_in_objfile,
7496 shared_objfile_contains_address_p): Return bool.
7497 * objfile.c (is_addr_in_objfile,
7498 shared_objfile_contains_address_p): Return bool.
7499
4fd6c7e8
TT
75002020-05-11 Tom Tromey <tromey@adacore.com>
7501
7502 * cli/cli-cmds.c (info_command): Restore.
7503 (_initialize_cli_cmds): Use add_prefix_command for "info".
7504 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
7505
5eb68a39
TT
75062020-05-11 Tom Tromey <tromey@adacore.com>
7507
7508 * ada-lang.c (ada_value_primitive_field): Now public.
7509 * ada-lang.h (ada_value_primitive_field): Declare.
7510 * ada-valprint.c (print_field_values): Use
7511 ada_value_primitive_field for wrapper fields.
7512
7666722f
TV
75132020-05-11 Tom de Vries <tdevries@suse.de>
7514
7515 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
7516 MODULE_DOMAIN.
7517
3ee6bb11
TV
75182020-05-11 Tom de Vries <tdevries@suse.de>
7519
7520 PR symtab/25941
7521 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
7522 with length 0, if not gdb-produced.
7523 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
7524
43434996
TV
75252020-05-09 Tom de Vries <tdevries@suse.de>
7526
7527 PR gdb/25955
7528 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
7529 calculation.
7530
2f78cffc
TT
75312020-05-09 Tom Tromey <tom@tromey.com>
7532
7533 * top.c (server_command): Now bool.
7534 * top.h (server_command): Now bool.
7535
4f7bc5ed
TT
75362020-05-08 Tom Tromey <tromey@adacore.com>
7537
7538 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
7539 already being processed.
7540
8be4b118
TT
75412020-05-08 Tom Tromey <tom@tromey.com>
7542
7543 * printcmd.c (struct display) <next>: Remove.
7544 <display>: New constructor.
7545 <exp_string>: Now a std::string.
7546 <enabled_p>: Now a bool.
7547 (display_number): Move definition earlier.
7548 (displays): Rename from display_chain. Now a std::vector.
7549 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
7550 (display_command): Update.
7551 (do_one_display, disable_display)
7552 (enable_disable_display_command, do_enable_disable_display):
7553 Update.
7554 (free_display): Remove.
7555 (clear_displays): Rewrite.
7556 (delete_display): Update.
7557 (map_display_numbers): Use function_view. Remove "data"
7558 parameter. Update.
7559 (do_delete_display): Remove.
7560 (undisplay_command): Update.
7561 (do_one_display, do_displays, disable_display)
7562 (info_display_command): Update.
7563 (do_enable_disable_display): Remove.
7564 (enable_disable_display_command)
7565 (clear_dangling_display_expressions): Update.
7566
94c93c35
TT
75672020-05-08 Tom Tromey <tom@tromey.com>
7568
7569 * symtab.c (set_symbol_cache_size)
7570 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
7571 (maintenance_print_symbol_cache_statistics): Update.
7572 * symmisc.c (print_symbol_bcache_statistics)
7573 (print_objfile_statistics, maintenance_print_objfiles)
7574 (maintenance_info_symtabs, maintenance_check_symtabs)
7575 (maintenance_expand_symtabs, maintenance_info_line_tables):
7576 Update.
7577 * symfile-debug.c (set_debug_symfile): Update.
7578 * source.c (forget_cached_source_info): Update.
7579 * python/python.c (gdbpy_progspaces): Update.
7580 * psymtab.c (maintenance_info_psymtabs): Update.
7581 * probe.c (parse_probes): Update.
7582 * linespec.c (iterate_over_all_matching_symtabs)
7583 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
7584 * guile/scm-progspace.c (gdbscm_progspaces): Update.
7585 * exec.c (exec_target::close): Update.
7586 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
7587 * breakpoint.c (print_one_breakpoint_location)
7588 (create_longjmp_master_breakpoint)
7589 (create_std_terminate_master_breakpoint): Update.
7590 * progspace.c (program_spaces): Now a std::vector.
7591 (maybe_new_address_space): Update.
7592 (add_program_space): Remove.
7593 (program_space::program_space): Update.
7594 (remove_program_space): Update.
7595 (number_of_program_spaces): Remove.
7596 (print_program_space, update_address_spaces): Update.
7597 * progspace.h (program_spaces): Change type.
7598 (ALL_PSPACES): Remove.
7599 (number_of_program_spaces): Don't declare.
7600 (struct program_space) <next>: Remove.
7601
a1fd1ac9
TT
76022020-05-08 Tom Tromey <tom@tromey.com>
7603
7604 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
7605 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
7606 (enable_break): Update.
7607 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
7608 (frv_fdpic_find_canonical_descriptor): Update.
7609 (frv_fetch_objfile_link_map): Update.
7610 * progspace.c (program_space::free_all_objfiles): Update.
7611 (program_space::solibs): New method.
7612 * progspace.h (struct program_space) <solibs>: New method.
7613 * solist.h (master_so_list): Don't declare.
7614 (ALL_SO_LIBS): Remove.
7615 * solib.h (so_list_head): Remove.
7616 (update_solib_list): Update comment.
7617 * solib.c (master_so_list): Remove.
7618 (solib_used, update_solib_list, solib_add)
7619 (info_sharedlibrary_command, clear_solib)
7620 (reload_shared_libraries_1, remove_user_added_objfile): Update.
7621
38eae084
TT
76222020-05-08 Tom Tromey <tom@tromey.com>
7623
7624 * extension.c (extension_languages): Now a std::array.
7625 (ALL_EXTENSION_LANGUAGES): Remove.
7626 (get_ext_lang_defn, get_ext_lang_of_file)
7627 (eval_ext_lang_from_control_command): Update.
7628 (finish_ext_lang_initialization)
7629 (auto_load_ext_lang_scripts_for_objfile)
7630 (ext_lang_type_printers::ext_lang_type_printers)
7631 (apply_ext_lang_type_printers)
7632 (ext_lang_type_printers::~ext_lang_type_printers)
7633 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
7634 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
7635 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
7636 (get_matching_xmethod_workers, ext_lang_colorize)
7637 (ext_lang_before_prompt): Update.
7638 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
7639
596dc4ad
TT
76402020-05-08 Tom Tromey <tom@tromey.com>
7641
7642 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
7643 overload.
7644 <swap_string, m_string>: Remove.
7645 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
7646 Update.
7647 * stabsread.c (define_symbol, read_type): Update.
7648 * linespec.c (find_linespec_symbols): Update.
7649 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
7650 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
7651 * dbxread.c (read_dbx_symtab): Update.
7652 * cp-support.h (cp_canonicalize_string_full)
7653 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
7654 Return unique_xmalloc_ptr.
7655 * cp-support.c (inspect_type): Update.
7656 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
7657 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
7658 Likewise.
7659 * c-typeprint.c (print_name_maybe_canonical): Update.
7660 * break-catch-throw.c (check_status_exception_catchpoint):
7661 Update.
7662
bf4cb9be
TV
76632020-05-08 Tom de Vries <tdevries@suse.de>
7664
7665 * infrun.c (follow_fork): Copy current_line and current_symtab to
7666 child thread.
7667
a1b68f28
SM
76682020-05-07 Simon Marchi <simon.marchi@efficios.com>
7669
7670 * async-event.c (struct async_signal_handler, struct
7671 async_event_handler): Reformat, remove typedef.
7672
98d48915
SM
76732020-05-07 Simon Marchi <simon.marchi@efficios.com>
7674
7675 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
7676 access thistype->main_type->dyn_prop_list directly.
7677
7aa91313
SM
76782020-05-07 Simon Marchi <simon.marchi@efficios.com>
7679
7680 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
7681 (remove_dyn_prop): Remove. Update all users to use
7682 type::remove_dyn_prop.
7683 * gdbtypes.c (remove_dyn_prop): Rename to...
7684 (type::remove_dyn_prop): ... this.
7685
5c54719c
SM
76862020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
7687
7688 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
7689 (add_dyn_prop): Remove. Update all users to use
7690 type::add_dyn_prop.
7691 * gdbtypes.c (add_dyn_prop): Rename to...
7692 (type::add_dyn_prop): ... this.
7693
24e99c6c
SM
76942020-05-07 Simon Marchi <simon.marchi@efficios.com>
7695
7696 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
7697 (get_dyn_prop): Remove. Update all users to use
7698 type::dyn_prop.
7699 * gdbtypes.c (get_dyn_prop): Rename to...
7700 (type::dyn_prop): ... this.
7701
0d4bf016
SM
77022020-05-06 Simon Marchi <simon.marchi@efficios.com>
7703
7704 * gdbtypes.h (struct main_type) <flag_static>: Remove.
7705
ac4a4f1c
SM
77062020-05-06 Simon Marchi <simon.marchi@efficios.com>
7707
7708 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
7709 instruction, skip it if it's there.
7710
a3bbacc1
SM
77112020-05-05 Simon Marchi <simon.marchi@efficios.com>
7712
7713 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
7714
c3236f84
SM
77152020-05-04 Simon Marchi <simon.marchi@efficios.com>
7716
7717 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
7718 * gdbtypes.c (recursive_dump_type): Remove use of
7719 TYPE_INCOMPLETE.
7720
3b6acaee
TT
77212020-05-03 Tom Tromey <tom@tromey.com>
7722
7723 * breakpoint.c (catch_command, tcatch_command): Remove.
7724 (_initialize_breakpoint): Use add_basic_prefix_cmd,
7725 add_show_prefix_cmd.
7726 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
7727 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
7728 Remove.
7729 (add_internal_problem_command): Use add_basic_prefix_cmd,
7730 add_show_prefix_cmd.
7731 * mips-tdep.c (set_mipsfpu_command): Remove.
7732 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
7733 * dwarf2/index-cache.c (set_index_cache_command): Remove.
7734 (_initialize_index_cache): Use add_basic_prefix_cmd.
7735 * memattr.c (dummy_cmd): Remove.
7736 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
7737 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
7738 (_initialize_tui_win): Use add_basic_prefix_cmd,
7739 add_show_prefix_cmd.
7740 * cli/cli-logging.c (set_logging_command): Remove.
7741 (_initialize_cli_logging): Use add_basic_prefix_cmd,
7742 add_show_prefix_cmd.
7743 (show_logging_command): Remove.
7744 * target.c (target_command): Remove.
7745 (add_target): Use add_basic_prefix_cmd.
7746
a51119cd
HD
77472020-05-02 Hannes Domani <ssbssa@yahoo.de>
7748
7749 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
7750
652fc23a 77512020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 7752
652fc23a
PW
7753 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
7754 info_command.
7755
117539e6
KR
77562020-04-30 Kamil Rytarowski <n54@gmx.com>
7757
7758 * nbsd-nat.c (nbsd_enable_proc_events)
7759 (nbsd_nat_target::post_startup_inferior): Add.
7760 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
7761 (nbsd_nat_target::update_thread_list): Rewrite.
7762 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
7763 "PTRACE_LWP_CREATE".
7764 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
7765
102e38eb 77662020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 7767
102e38eb
PW
7768 * stack.c (_initialize_stack): Remove duplicated creation
7769 of "frame" command and "f" alias.
7770
ee9d1e5f
HD
77712020-04-30 Hannes Domani <ssbssa@yahoo.de>
7772
7773 PR gdb/18706
7774 * gdbtypes.c (check_typedef): Calculate size of array of
7775 stubbed type.
7776
627c7fb8
HD
77772020-04-30 Hannes Domani <ssbssa@yahoo.de>
7778
7779 PR gdb/15559
7780 * i386-tdep.c (i386_push_dummy_call): Call
7781 i386_thiscall_push_dummy_call.
7782 (i386_thiscall_push_dummy_call): New function.
7783 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
7784 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
7785 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
7786
ffc2844e
SM
77872020-04-29 Simon Marchi <simon.marchi@efficios.com>
7788
7789 * gdbarch.sh (do_read): Add shellcheck disable directive for
7790 warning SC2162.
7791
1207375d
SM
77922020-04-29 Simon Marchi <simon.marchi@efficios.com>
7793
7794 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
7795 "referenced but not assigned" warning.
7796
9fdb2916
SM
77972020-04-29 Simon Marchi <simon.marchi@efficios.com>
7798
7799 * gdbarch.sh: Remove code that sets fallbackdefault.
7800
759cea5e
SM
78012020-04-29 Simon Marchi <simon.marchi@efficios.com>
7802
7803 * gdbarch.sh: Use shell operators && and || instead of
7804 -a and -o.
7805
cb02ab24
SM
78062020-04-29 Simon Marchi <simon.marchi@efficios.com>
7807
7808 * gdbarch.sh: Use $(...) instead of `...`.
7809
a6fc5ffc
SM
78102020-04-29 Simon Marchi <simon.marchi@efficios.com>
7811
7812 * gdbarch.sh: Use double quotes around variables.
7813
8d113d13
SM
78142020-04-29 Simon Marchi <simon.marchi@efficios.com>
7815
7816 * gdbarch.sh: Use %s with printf, instead of variables in the
7817 format string.
7818
ed6acedd
TT
78192020-04-29 Tom Tromey <tromey@adacore.com>
7820
7821 PR ada/25875:
7822 * dwarf2/read.c (update_enumeration_type_from_children): Compute
7823 type fields here.
7824 (read_enumeration_type): Call
7825 update_enumeration_type_from_children later. Update comments.
7826 (process_enumeration_scope): Don't create type fields.
7827
b68b1b58
KR
78282020-04-29 Kamil Rytarowski <n54@gmx.com>
7829
7830 * nbsd-tdep.c: Include "xml-syscall.h".
7831 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
7832
f94b2e03
KR
78332020-04-29 Kamil Rytarowski <n54@gmx.com>
7834
7835 * nbsd-nat.c: Include "sys/wait.h".
7836 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
7837 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
7838 (nbsd_nat_target::remove_exec_catchpoint)
7839 (nbsd_nat_target::set_syscall_catchpoint): Add.
7840 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
7841 (nbsd_nat_target::insert_exec_catchpoint)
7842 (nbsd_nat_target::remove_exec_catchpoint)
7843 (nbsd_nat_target::set_syscall_catchpoint): Add.
7844 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
7845 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
7846 `nbsd_get_syscall_number'.
7847
fc49bc72
TT
78482020-04-29 Tom Tromey <tom@tromey.com>
7849
7850 * stack.c (print_block_frame_labels): Remove.
7851
d642b692
HD
78522020-04-29 Hannes Domani <ssbssa@yahoo.de>
7853
7854 PR gdb/17320
7855 * ada-valprint.c (val_print_packed_array_elements): Move array
7856 end bracket to new line.
7857 (ada_val_print_string): Remove extra spaces before first array
7858 element.
7859 * c-valprint.c (c_value_print_array): Likewise.
7860 * m2-valprint.c (m2_print_array_contents): Likewise.
7861 (m2_value_print_inner): Likewise.
7862 * p-valprint.c (pascal_value_print_inner): Likewise.
7863 * valprint.c (generic_val_print_array): Likewise.
7864 (value_print_array_elements): Move first array element and array
7865 end bracket to new line.
7866
ea90f227
TV
78672020-04-29 Tom de Vries <tdevries@suse.de>
7868
7869 PR symtab/25889
7870 * linespec.c (find_method): Fix ix calculation.
7871
4498ef4f
KR
78722020-04-28 Kamil Rytarowski <n54@gmx.com>
7873
7874 * syscalls/update-netbsd.sh: New file.
7875 * syscalls/netbsd.xml: Regenerate.
7876 * data-directory/Makefile.in: Register `netbsd.xml' in
7877 `SYSCALLS_FILES'.
7878
a55e30b5
SM
78792020-04-28 Simon Marchi <simon.marchi@efficios.com>
7880
7881 * syscalls/update-freebsd.sh: Add double quotes.
7882
2b2fbab8
TT
78832020-04-28 Tom Tromey <tom@tromey.com>
7884
7885 * NEWS: Update.
7886 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
7887 (cmdpy_init): Allow class_tui.
7888
a65189c9
TV
78892020-04-28 Mark Williams <mark@myosotissp.com>
7890
7891 PR gdb/24480
7892 * dwarf2read.c: Add missing assingments to list_in_scope when
7893 start_symtab was already called.
7894
1b95cdb7
SM
78952020-04-28 Simon Marchi <simon.marchi@efficios.com>
7896
7897 PR gdb/25881
7898 * dwarf2/read.c (offset_map_type): Use
7899 gdb:hash_enum<sect_offset> as hash function.
7900
15cd93d0
TV
79012020-04-28 Tom de Vries <tdevries@suse.de>
7902
7903 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
7904 with DW_AT_signature.
7905
1eb39914
SM
79062020-04-27 Simon Marchi <simon.marchi@efficios.com>
7907
7908 * configure.ac: Remove check for fs_base/gs_base in
7909 user_regs_struct.
7910 * configure: Re-generate.
7911 * config.in: Re-generate.
7912 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
7913 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
7914 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
7915
991a3e2e
LM
79162020-04-27 Luis Machado <luis.machado@linaro.org>
7917
7918 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
7919 problematic inline frame unwinding situation.
7920 * frame.c (frame_id_computed_p): New function.
7921 * frame.h (frame_id_computed_p): New prototype.
7922
361ba0e8
TT
79232020-04-26 Tom Tromey <tom@tromey.com>
7924
7925 * command.h (enum command_class) <class_pseudo>: Remove.
7926
bc3609fd
PW
79272020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7928
7929 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
7930 and whitespace.
7931
b9771db7
KR
79322020-04-25 Kamil Rytarowski <n54@gmx.com>
7933
ec16513e
SM
7934 * inf-ptrace.c (inf_ptrace_target::wait): Remove
7935 `PT_GET_PROCESS_STATE' block.
b9771db7 7936
7151c1af
TT
79372020-04-24 Tom Tromey <tom@tromey.com>
7938
7939 * symtab.h (symbol_get_demangled_name): Don't declare.
7940 * symtab.c (symbol_get_demangled_name): Remove.
7941 (general_symbol_info::natural_name)
7942 (general_symbol_info::demangled_name): Update.
7943
906bb4c5
TT
79442020-04-24 Tom Tromey <tom@tromey.com>
7945
7946 PR rust/25025:
7947 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
7948
bcfe6157
TT
79492020-04-24 Tom Tromey <tom@tromey.com>
7950
7951 PR symtab/12707:
7952 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
7953 exists.
7954 (new_symbol): Likewise.
7955 * compile/compile-object-load.c (get_out_value_type): Use
7956 symbol_matches_search_name.
7957
f049a313
TT
79582020-04-24 Tom Tromey <tom@tromey.com>
7959
7960 * dwarf2/read.c (add_partial_symbol): Do not call
7961 compute_and_set_names.
7962
76e288d1
TT
79632020-04-24 Tom Tromey <tom@tromey.com>
7964
7965 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
7966 overload.
7967
2467f4f6
TT
79682020-04-24 Tom Tromey <tom@tromey.com>
7969
7970 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
7971 (add_psymbol_to_list): New overload. Make old overload call new
7972 one.
7973 * psympriv.h (add_psymbol_to_list): New overload.
7974
e61108c9
TT
79752020-04-24 Tom Tromey <tom@tromey.com>
7976
7977 * dwarf2/read.c (partial_die_info::read) <case
7978 DW_AT_linkage_name>: Use value_as_string.
7979 (dwarf2_string_attr): Use value_as_string.
7980 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
7981 method.
7982 * dwarf2/attribute.c (attribute::value_as_string): New method.
7983
8c87a452
TT
79842020-04-24 Tom Tromey <tom@tromey.com>
7985
7986 * symtab.c (general_symbol_info::natural_name)
7987 (general_symbol_info::demangled_name): Check for language_rust.
7988
787de330
TT
79892020-04-24 Tom Tromey <tom@tromey.com>
7990
7991 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
7992 (dwarf2_physname): ... from here.
7993 (partial_die_info::read): Add Rust "{" hack.
7994
ff985671
TT
79952020-04-24 Tom Tromey <tom@tromey.com>
7996
7997 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
7998 method.
7999 (symbol_set_demangled_name): Don't declare.
8000 * symtab.c (general_symbol_info::set_demangled_name): Rename from
8001 symbol_set_demangled_name.
8002 (general_symbol_info::set_language)
8003 (general_symbol_info::compute_and_set_names): Update.
8004 * minsyms.c (minimal_symbol_reader::install): Update.
8005 * dwarf2/read.c (new_symbol): Update.
8006
1acda803
TT
80072020-04-24 Tom Tromey <tromey@adacore.com>
8008
8009 PR python/23662:
8010 * python/py-type.c (convert_field): Handle
8011 FIELD_LOC_KIND_DWARF_BLOCK.
8012 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
8013 (typy_get_dynamic): Nw function.
8014 (type_object_getset): Add "dynamic".
8015 * NEWS: Add entry.
8016
d656f129
TT
80172020-04-24 Tom Tromey <tromey@adacore.com>
8018
8019 * ada-typeprint.c (print_choices, print_variant_part)
8020 (print_record_field_types_dynamic): New functions.
8021 (print_record_field_types): Use print_record_field_types_dynamic.
8022
7d79de9a
TT
80232020-04-24 Tom Tromey <tromey@adacore.com>
8024
8025 * dwarf2/read.c (handle_data_member_location): New overload.
8026 (dwarf2_add_field): Use it.
8027 (decode_locdesc): Add "computed" parameter. Update comment.
8028 * gdbtypes.c (is_dynamic_type_internal): Also look for
8029 FIELD_LOC_KIND_DWARF_BLOCK.
8030 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
8031 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
8032 virtual base classes.
8033 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
8034 FIELD_LOC_KIND_DWARF_BLOCK.
8035
f8e89861
TT
80362020-04-24 Tom Tromey <tromey@adacore.com>
8037
8038 * dwarf2/read.c (read_structure_type): Handle dynamic length.
8039 * gdbtypes.c (is_dynamic_type_internal): Check
8040 TYPE_HAS_DYNAMIC_LENGTH.
8041 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
8042 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
8043 New macros.
8044 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
8045 constant.
8046
9c6a1327
TT
80472020-04-24 Tom Tromey <tromey@adacore.com>
8048
8049 * dwarf2/read.c (struct variant_field): Rewrite.
8050 (struct variant_part_builder): New.
8051 (struct nextfield): Remove "variant" field. Add "offset".
8052 (struct field_info): Add "current_variant_part" and
8053 "variant_parts".
8054 (alloc_discriminant_info): Remove.
8055 (alloc_rust_variant): New function.
8056 (quirk_rust_enum): Update.
8057 (dwarf2_add_field): Set "offset" member. Don't handle
8058 DW_TAG_variant_part.
8059 (offset_map_type): New typedef.
8060 (convert_variant_range, create_one_variant)
8061 (create_one_variant_part, create_variant_parts)
8062 (add_variant_property): New functions.
8063 (dwarf2_attach_fields_to_type): Call add_variant_property.
8064 (read_structure_type): Don't handle DW_TAG_variant_part.
8065 (handle_variant_part, handle_variant): New functions.
8066 (handle_struct_member_die): Use them.
8067 (process_structure_scope): Don't handle variant parts.
8068 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
8069 (struct discriminant_info): Remove.
8070 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
8071 (struct main_type) <flag_discriminated_union>: Remove.
8072 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
8073 (rust_enum_variant): Return int. Remove "contents". Rewrite.
8074 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
8075 Update.
8076 * valops.c (value_union_variant): Remove.
8077 * value.h (value_union_variant): Don't declare.
8078
b249d2c2
TT
80792020-04-24 Tom Tromey <tromey@adacore.com>
8080
8081 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
8082 (ada_value_primitive_packed_val): Update.
8083 * ada-valprint.c (ada_value_print_1): Update.
8084 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
8085 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
8086 just an address. Use evaluate_for_locexpr_baton.
8087 (dwarf2_evaluate_property): Update.
8088 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
8089 array_view.
8090 * findvar.c (default_read_var_value): Update.
8091 * gdbtypes.c (compute_variant_fields_inner)
8092 (resolve_dynamic_type_internal): Update.
8093 (resolve_dynamic_type): Change type of valaddr parameter.
8094 * gdbtypes.h (resolve_dynamic_type): Update.
8095 * valarith.c (value_subscripted_rvalue): Update.
8096 * value.c (value_from_contents_and_address): Update.
8097
61122aa9
TT
80982020-04-24 Tom Tromey <tromey@adacore.com>
8099
8100 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
8101 "push_initial_value" parameter.
8102 (dwarf2_evaluate_property): Likewise.
8103 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
8104
ef83a141
TT
81052020-04-24 Tom Tromey <tromey@adacore.com>
8106
8107 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
8108 (variant::matches, compute_variant_fields_recurse)
8109 (compute_variant_fields_inner, compute_variant_fields): New
8110 functions.
8111 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
8112 Use resolved_type after type is made.
8113 (operator==): Add new cases.
8114 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
8115 (struct discriminant_range, struct variant, struct variant_part):
8116 New.
8117 (union dynamic_prop_data) <variant_parts, original_type>: New
8118 members.
8119 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
8120 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
8121 constants.
8122 * value.c (unpack_bits_as_long): Now public.
8123 * value.h (unpack_bits_as_long): Declare.
8124
675127ec
TT
81252020-04-24 Tom Tromey <tromey@adacore.com>
8126
8127 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
8128 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
8129
9852ceef
HD
81302020-04-24 Hannes Domani <ssbssa@yahoo.de>
8131
8132 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
8133
7632c6ce
KR
81342020-04-24 Kamil Rytarowski <n54@gmx.com>
8135
8136 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
8137 (remove_fork_catchpoint, post_startup_inferior)
8138 (post_attach): Move...
8139 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
8140 (remove_fork_catchpoint, post_startup_inferior)
8141 (post_attach): ...here.
8142 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
8143 (remove_fork_catchpoint, post_startup_inferior)
8144 (post_attach): Move...
8145 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
8146 (remove_fork_catchpoint, post_startup_inferior)
8147 (post_attach): ...here.
8148
7be2bb4f
TT
81492020-04-24 Tom Tromey <tromey@adacore.com>
8150
8151 * nat/windows-nat.h (struct windows_thread_info)
8152 <pc_adjusted>: New member.
8153 * windows-nat.c (windows_fetch_one_register): Check
8154 pc_adjusted.
8155 (windows_nat_target::get_windows_debug_event)
8156 (windows_nat_target::wait): Set pc_adjusted.
8157
f80cb3b4
TV
81582020-04-24 Tom de Vries <tdevries@suse.de>
8159
8160 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
8161 Run gdb-add-index inside temp dir.
8162
29514b87
TT
81632020-04-23 Tom Tromey <tromey@adacore.com>
8164
8165 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
8166 in loop.
8167
5939967b
LM
81682020-04-23 Luis Machado <luis.machado@linaro.org>
8169
8170 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
8171 get_frame_register instead of gdbarch_unwind_pc.
8172
70bc38f5
TV
81732020-04-23 Tom de Vries <tdevries@suse.de>
8174
8175 * symtab.c (lookup_global_symbol): Prefer def over decl.
8176
de82891c
TV
81772020-04-23 Tom de Vries <tdevries@suse.de>
8178
8179 PR symtab/25807
8180 * block.c (best_symbol, better_symbol): Promote to external.
8181 * block.h (best_symbol, better_symbol): Declare.
8182 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
8183 decl.
8184
ecc6c606
TT
81852020-04-23 Tom Tromey <tromey@adacore.com>
8186
8187 PR ada/25837:
8188 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
8189 "const char *", not a "const std::string &".
8190 <name_and_matcher::operator==>: Update.
8191 * unittests/lookup_name_info-selftests.c: Change type of
8192 "result".
8193
740480b8
TT
81942020-04-23 Tom Tromey <tom@tromey.com>
8195
8196 * inferior.h (iterate_over_inferiors): Don't declare.
8197 * inferior.c (iterate_over_inferiors): Remove.
8198 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
8199 Remove.
8200 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
8201 use iterate_over_inferiors.
8202 (darwin_resume_inferior_it)
8203 (struct resume_inferior_threads_param)
8204 (darwin_resume_inferior_threads_it): Remove.
8205 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
8206
ae3ab1f0
TV
82072020-04-23 Tom de Vries <tdevries@suse.de>
8208
8209 * blockframe.c (find_pc_partial_function): Use
8210 find_pc_sect_compunit_symtab rather than
8211 objfile->sf->qf->find_pc_sect_compunit_symtab.
8212
317d2668
TV
82132020-04-22 Tom de Vries <tdevries@suse.de>
8214
8215 PR symtab/25764
8216 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
8217 in psymtabs.
8218
eea9e357
TV
82192020-04-22 Tom de Vries <tdevries@suse.de>
8220
8221 PR symtab/25801
8222 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
8223 symtabs.
8224
3d5afab3
TV
82252020-04-22 Tom de Vries <tdevries@suse.de>
8226
8227 PR symtab/25700
8228 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
8229 CU if already created.
8230
d43b7a2d
TBA
82312020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8232
8233 * infrun.c (displaced_step_fixup): Switch to the event_thread
8234 before calling displaced_step_restore, not after.
8235
d89edf9b
MM
82362020-04-21 Markus Metzger <markus.t.metzger@intel.com>
8237
8238 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
8239 its inferior is not recorded by us.
8240 (record_btrace_target_open): Replace call to
8241 all_non_exited_threads () with call to current_inferior
8242 ()->non_exited_threads ().
8243 (record_btrace_target::stop_recording): Likewise.
8244 (record_btrace_target::close): Likewise.
8245 (record_btrace_target::wait): Likewise.
8246 (record_btrace_target::record_stop_replaying): Likewise.
8247
5897fd49
MM
82482020-04-21 Markus Metzger <markus.t.metzger@intel.com>
8249
8250 * btrace.c (btrace_enable): Throw an error on double enables and
8251 when enabling recording fails.
8252 (btrace_disable): Throw an error if the thread is not recorded.
8253
1a476b6d
MM
82542020-04-21 Markus Metzger <markus.t.metzger@intel.com>
8255
8256 * record-btrace.c (record_btrace_target::fetch_registers): Forward
8257 request if we do not have a thread_info.
8258
4778a5f8
TV
82592020-04-21 Tom de Vries <tdevries@suse.de>
8260
8261 PR gdb/25471
8262 * thread.c
8263 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
8264 exception in get_frame_id.
8265
0fa7617d
TT
82662020-04-20 Tom Tromey <tromey@adacore.com>
8267
8268 * python/python.c (struct gdbpy_event): Mark move constructor as
8269 noexcept.
8270 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
8271 constructor as noexcept.
8272 * completer.h (struct completion_result): Mark move constructor as
8273 noexcept.
8274 * completer.c (completion_result::completion_result): Use
8275 initialization style. Don't call reset_match_list.
8276
ad23bda0
MS
82772020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
8278
8279 * MAINTAINERS (Write After Approval): Add myself.
8280
45e1f031
TT
82812020-04-18 Tom Tromey <tom@tromey.com>
8282
8283 * windows-tdep.c (init_w32_command_list)
8284 (w32_prefix_command_valid): Restore.
8285 (_initialize_windows_tdep): Call init_w32_command_list.
8286
08feed99
TT
82872020-04-18 Tom Tromey <tom@tromey.com>
8288
8289 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
8290 * value.c (value_fn_field): Update.
8291 * valops.c (find_function_in_inferior)
8292 (value_allocate_space_in_inferior): Update.
8293 * tui/tui-winsource.c (tui_update_source_windows_with_line):
8294 Update.
8295 * tui/tui-source.c (tui_source_window::set_contents): Update.
8296 * symtab.c (lookup_global_or_static_symbol)
8297 (find_function_start_sal_1, skip_prologue_sal)
8298 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
8299 * symmisc.c (dump_msymbols, dump_symtab_1)
8300 (maintenance_print_one_line_table): Update.
8301 * symfile.c (init_entry_point_info, section_is_mapped)
8302 (list_overlays_command, simple_read_overlay_table)
8303 (simple_overlay_update_1): Update.
8304 * stap-probe.c (handle_stap_probe): Update.
8305 * stabsread.c (dbx_init_float_type, define_symbol)
8306 (read_one_struct_field, read_enum_type, read_range_type): Update.
8307 * source.c (info_line_command): Update.
8308 * python/python.c (gdbpy_source_objfile_script)
8309 (gdbpy_execute_objfile_script): Update.
8310 * python/py-type.c (save_objfile_types): Update.
8311 * python/py-objfile.c (py_free_objfile): Update.
8312 * python/py-inferior.c (python_new_objfile): Update.
8313 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
8314 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
8315 (maintenance_check_psymtabs): Update.
8316 * printcmd.c (info_address_command): Update.
8317 * objfiles.h (struct objfile) <arch>: New method, from
8318 get_objfile_arch.
8319 (get_objfile_arch): Don't declare.
8320 * objfiles.c (get_objfile_arch): Remove.
8321 (filter_overlapping_sections): Update.
8322 * minsyms.c (msymbol_is_function): Update.
8323 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
8324 (output_nondebug_symbol): Update.
8325 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
8326 (mdebug_expand_psymtab): Update.
8327 * machoread.c (macho_add_oso_symfile): Update.
8328 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
8329 Update.
8330 * linux-fork.c (checkpoint_command): Update.
8331 * linespec.c (convert_linespec_to_sals): Update.
8332 * jit.c (finalize_symtab): Update.
8333 * infrun.c (insert_exception_resume_from_probe): Update.
8334 * ia64-tdep.c (ia64_find_unwind_table): Update.
8335 * hppa-tdep.c (internalize_unwinds): Update.
8336 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
8337 Update.
8338 * gcore.c (call_target_sbrk): Update.
8339 * elfread.c (record_minimal_symbol, elf_symtab_read)
8340 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
8341 (elf_gnu_ifunc_resolve_by_got): Update.
8342 * dwarf2/read.c (create_addrmap_from_index)
8343 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
8344 (read_debug_names_from_section)
8345 (process_psymtab_comp_unit_reader, add_partial_symbol)
8346 (add_partial_subprogram, process_full_comp_unit)
8347 (read_file_scope, read_func_scope, read_lexical_block_scope)
8348 (read_call_site_scope, dwarf2_ranges_read)
8349 (dwarf2_record_block_ranges, dwarf2_add_field)
8350 (mark_common_block_symbol_computed, read_tag_pointer_type)
8351 (read_tag_string_type, dwarf2_init_float_type)
8352 (dwarf2_init_complex_target_type, read_base_type)
8353 (partial_die_info::read, partial_die_info::read)
8354 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
8355 (dwarf2_fetch_die_loc_sect_off): Update.
8356 * dwarf2/loc.c (dwarf2_find_location_expression)
8357 (class dwarf_evaluate_loc_desc, rw_pieced_value)
8358 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
8359 (dwarf2_loc_desc_get_symbol_read_needs)
8360 (locexpr_describe_location_piece, locexpr_describe_location_1)
8361 (loclist_describe_location): Update.
8362 * dwarf2/index-write.c (write_debug_names): Update.
8363 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
8364 * dtrace-probe.c (dtrace_process_dof): Update.
8365 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
8366 (process_one_symbol): Update.
8367 * ctfread.c (ctf_init_float_type, read_base_type): Update.
8368 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
8369 (coff_read_enum_type): Update.
8370 * cli/cli-cmds.c (edit_command, list_command): Update.
8371 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
8372 * breakpoint.c (create_overlay_event_breakpoint)
8373 (create_longjmp_master_breakpoint)
8374 (create_std_terminate_master_breakpoint)
8375 (create_exception_master_breakpoint, get_sal_arch): Update.
8376 * block.c (block_gdbarch): Update.
8377 * annotate.c (annotate_source_line): Update.
8378
0743fc83
TT
83792020-04-17 Tom Tromey <tromey@adacore.com>
8380
8381 * auto-load.c (show_auto_load_cmd): Remove.
8382 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
8383 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
8384 (maintenance_print_arc_command): Remove.
8385 * tui/tui-win.c (tui_command): Remove.
8386 (tui_get_cmd_list): Use add_basic_prefix_cmd.
8387 * tui/tui-layout.c (tui_layout_command): Remove.
8388 (_initialize_tui_layout): Use add_basic_prefix_cmd.
8389 * python/python.c (user_set_python, user_show_python): Remove.
8390 (_initialize_python): Use add_basic_prefix_cmd,
8391 add_show_prefix_cmd.
8392 * guile/guile.c (set_guile_command, show_guile_command): Remove.
8393 (install_gdb_commands): Use add_basic_prefix_cmd,
8394 add_show_prefix_cmd.
8395 (info_guile_command): Remove.
8396 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
8397 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
8398 add_show_prefix_cmd.
8399 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
8400 Remove do_set and do_show parameters.
8401 * cli/cli-style.c (set_style, show_style): Remove.
8402 (_initialize_cli_style): Use add_basic_prefix_cmd,
8403 add_show_prefix_cmd.
8404 (cli_style_option::add_setshow_commands): Remove do_set and
8405 do_show parameters.
8406 (cli_style_option::add_setshow_commands): Use
8407 add_basic_prefix_cmd, add_show_prefix_cmd.
8408 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
8409 (set_style_name): Remove.
8410 * cli/cli-dump.c (dump_command, append_command): Remove.
8411 (srec_dump_command, ihex_dump_command, verilog_dump_command)
8412 (tekhex_dump_command, binary_dump_command)
8413 (binary_append_command): Remove.
8414 (_initialize_cli_dump): Use add_basic_prefix_cmd.
8415 * windows-tdep.c (w32_prefix_command_valid): Remove global.
8416 (init_w32_command_list): Remove; move into ...
8417 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
8418 * valprint.c (set_print, show_print, set_print_raw)
8419 (show_print_raw): Remove.
8420 (_initialize_valprint): Use add_basic_prefix_cmd,
8421 add_show_prefix_cmd.
8422 * typeprint.c (set_print_type, show_print_type): Remove.
8423 (_initialize_typeprint): Use add_basic_prefix_cmd,
8424 add_show_prefix_cmd.
8425 * record.c (set_record_command, show_record_command): Remove.
8426 (_initialize_record): Use add_basic_prefix_cmd,
8427 add_show_prefix_cmd.
8428 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
8429 add_show_prefix_cmd.
8430 (info_command, show_command, set_debug, show_debug): Remove.
8431 * top.h (set_history, show_history): Don't declare.
8432 * top.c (set_history, show_history): Remove.
8433 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
8434 (unset_tdesc_cmd): Remove.
8435 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
8436 add_show_prefix_cmd.
8437 * symtab.c (info_module_command): Remove.
8438 (_initialize_symtab): Use add_basic_prefix_cmd.
8439 * symfile.c (overlay_command): Remove.
8440 (_initialize_symfile): Use add_basic_prefix_cmd.
8441 * sparc64-tdep.c (info_adi_command): Remove.
8442 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
8443 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
8444 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
8445 add_show_prefix_cmd.
8446 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
8447 (_initialize_serial): Use add_basic_prefix_cmd,
8448 add_show_prefix_cmd.
8449 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
8450 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
8451 add_show_prefix_cmd.
8452 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
8453 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
8454 add_show_prefix_cmd.
8455 * riscv-tdep.c (show_riscv_command, set_riscv_command)
8456 (show_debug_riscv_command, set_debug_riscv_command): Remove.
8457 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
8458 add_show_prefix_cmd.
8459 * remote.c (remote_command, set_remote_cmd): Remove.
8460 (_initialize_remote): Use add_basic_prefix_cmd.
8461 * record-full.c (set_record_full_command)
8462 (show_record_full_command): Remove.
8463 (_initialize_record_full): Use add_basic_prefix_cmd,
8464 add_show_prefix_cmd.
8465 * record-btrace.c (cmd_set_record_btrace)
8466 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
8467 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
8468 (cmd_show_record_btrace_pt): Remove.
8469 (_initialize_record_btrace): Use add_basic_prefix_cmd,
8470 add_show_prefix_cmd.
8471 * ravenscar-thread.c (set_ravenscar_command)
8472 (show_ravenscar_command): Remove.
8473 (_initialize_ravenscar): Use add_basic_prefix_cmd,
8474 add_show_prefix_cmd.
8475 * mips-tdep.c (show_mips_command, set_mips_command)
8476 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
8477 add_show_prefix_cmd.
8478 * maint.c (maintenance_command, maintenance_info_command)
8479 (maintenance_check_command, maintenance_print_command)
8480 (maintenance_set_cmd, maintenance_show_cmd): Remove.
8481 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
8482 add_show_prefix_cmd.
8483 (show_per_command_cmd): Remove.
8484 * maint-test-settings.c (maintenance_set_test_settings_cmd):
8485 Remove.
8486 (maintenance_show_test_settings_cmd): Remove.
8487 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
8488 add_show_prefix_cmd.
8489 * maint-test-options.c (maintenance_test_options_command):
8490 Remove.
8491 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
8492 * macrocmd.c (macro_command): Remove
8493 (_initialize_macrocmd): Use add_basic_prefix_cmd.
8494 * language.c (set_check, show_check): Remove.
8495 (_initialize_language): Use add_basic_prefix_cmd,
8496 add_show_prefix_cmd.
8497 * infcmd.c (unset_command): Remove.
8498 (_initialize_infcmd): Use add_basic_prefix_cmd.
8499 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
8500 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
8501 add_show_prefix_cmd.
8502 * go32-nat.c (go32_info_dos_command): Remove.
8503 (_initialize_go32_nat): Use add_basic_prefix_cmd.
8504 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
8505 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
8506 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
8507 (_initialize_frame): Use add_basic_prefix_cmd,
8508 add_show_prefix_cmd.
8509 * dcache.c (set_dcache_command, show_dcache_command): Remove.
8510 (_initialize_dcache): Use add_basic_prefix_cmd,
8511 add_show_prefix_cmd.
8512 * cp-support.c (maint_cplus_command): Remove.
8513 (_initialize_cp_support): Use add_basic_prefix_cmd.
8514 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
8515 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
8516 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
8517 add_basic_prefix_cmd, add_show_prefix_cmd.
8518 * breakpoint.c (save_command): Remove.
8519 (_initialize_breakpoint): Use add_basic_prefix_cmd.
8520 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
8521 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
8522 add_show_prefix_cmd.
8523 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
8524 (set_ada_command, show_ada_command): Remove.
8525 (_initialize_ada_language): Use add_basic_prefix_cmd,
8526 add_show_prefix_cmd.
8527 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
8528
3557f442
KR
85292020-04-16 Kamil Rytarowski <n54@gmx.com>
8530
8531 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
8532 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
8533
16197208
SM
85342020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
8535
8536 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
8537 warning messages.
8538
00ac85d3
SM
85392020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
8540
8541 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
8542 import table is not at beginning of .idata section.
8543
381ce63f
PA
85442020-04-16 Pedro Alves <palves@redhat.com>
8545
8546 * inferior.c (delete_inferior): Use delete operator directly
8547 instead of delete_program_space.
8548 * progspace.c (add_program_space): New, factored out from
8549 program_space::program_space.
8550 (remove_program_space): New, factored out from
8551 delete_program_space.
8552 (program_space::program_space): Remove intro comment. Rewrite.
8553 (program_space::~program_space): Remove intro comment. Call
8554 remove_program_space.
8555 (delete_program_space): Delete.
8556 * progspace.h (program_space::program_space): Make explicit. Move
8557 intro comment here, adjusted.
8558 (program_space::~program_space): Move intro comment here,
8559 adjusted.
8560 (delete_program_space): Remove.
8561
a010605f
TT
85622020-04-16 Tom Tromey <tromey@adacore.com>
8563
8564 * windows-nat.c (windows_nat::handle_access_violation): New
8565 function.
8566 * nat/windows-nat.h (handle_access_violation): Declare.
8567 * nat/windows-nat.c (handle_exception): Move Cygwin code to
8568 windows-nat.c. Call handle_access_violation.
8569
efba5c23
TV
85702020-04-16 Tom de Vries <tdevries@suse.de>
8571
8572 PR symtab/25791
8573 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
8574 CUs without psymtab.
8575
97ed802d
KB
85762020-04-16 Kevin Buettner <kevinb@redhat.com>
8577
8578 * python/python.c (do_start_initialization): Don't call
8579 PyEval_InitThreads for Python 3.9 and beyond.
8580
c7d64809
KR
85812020-04-15 Kamil Rytarowski <n54@gmx.com>
8582
8583 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
8584 thread functions.
8585 (obsd_nat_target::wait): Likewise.
8586
ce127a96
TT
85872020-04-15 Tom Tromey <tromey@adacore.com>
8588
8589 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
8590 (DEBUG_EXCEPT): Use debug_printf.
8591
99f1bc6a
AB
85922020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
8593
8594 * completer.c (class completion_tracker::completion_hash_entry)
8595 <hash_name>: New member function.
8596 (completion_tracker::discard_completions): New callback to hash a
8597 completion_hash_entry, pass this to htab_create_alloc.
8598
a0e9b532
JT
85992016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
8600
8601 * windows-nat.c (windows_make_so): Warn rather than stopping with
8602 an error if realpath() fails.
8603
06ca5dd4
KR
86042020-04-14 Kamil Rytarowski <n54@gmx.com>
8605
8606 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
8607 (nbsd_nat_target::info_proc): Add do_status.
8608
194d088f
TV
86092020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
8610 Tom de Vries <tdevries@suse.de>
8611
8612 PR symtab/25718
8613 * psympriv.h (struct partial_symtab::read_symtab)
8614 (struct partial_symtab::expand_psymtab)
8615 (struct partial_symtab::read_dependencies): Update comments.
8616 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
8617 read_symtab for includer.
8618 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
8619 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
8620 (struct dwarf2_include_psymtab::m_readin): Remove.
8621 (struct dwarf2_include_psymtab::includer): New member function.
8622 (dwarf2_psymtab::expand_psymtab): Assert !readin.
8623
c1a66c06
TV
86242020-04-14 Tom de Vries <tdevries@suse.de>
8625
8626 PR symtab/25720
8627 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
8628 with NULL symbol_matcher and lookup_name.
8629 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
8630 and lookup_name.
8631 * dwarf2/read.c (dw2_expand_symtabs_matching)
8632 (dw2_debug_names_expand_symtabs_matching): Same.
8633 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
8634 Make lookup_name a pointer. Update comment.
8635 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
8636 lookup_name being a pointer.
8637 * symfile.c (expand_symtabs_matching): Same.
8638 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
8639 * linespec.c (iterate_over_all_matching_symtabs): Same.
8640
400b5eca
TT
86412020-04-13 Tom Tromey <tom@tromey.com>
8642
8643 * run-on-main-thread.c: Update include.
8644 * unittests/main-thread-selftests.c: Update include.
8645 * tui/tui-win.c: Update include.
8646 * tui/tui-io.c: Update include.
8647 * tui/tui-interp.c: Update include.
8648 * tui/tui-hooks.c: Update include.
8649 * top.h: Update include.
8650 * top.c: Update include.
8651 * ser-base.c: Update include.
8652 * remote.c: Update include.
8653 * remote-notif.c: Update include.
8654 * remote-fileio.c: Update include.
8655 * record-full.c: Update include.
8656 * record-btrace.c: Update include.
8657 * python/python.c: Update include.
8658 * posix-hdep.c: Update include.
8659 * mingw-hdep.c: Update include.
8660 * mi/mi-main.c: Update include.
8661 * mi/mi-interp.c: Update include.
8662 * main.c: Update include.
8663 * linux-nat.c: Update include.
8664 * interps.c: Update include.
8665 * infrun.c: Update include.
8666 * inf-loop.c: Update include.
8667 * event-top.c: Update include.
8668 * event-loop.c: Move to ../gdbsupport/.
8669 * event-loop.h: Move to ../gdbsupport/.
8670 * async-event.h: Update include.
8671 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
8672
93b54c8e
TT
86732020-04-13 Tom Tromey <tom@tromey.com>
8674
8675 * tui/tui-win.c: Include async-event.h.
8676 * remote.c: Include async-event.h.
8677 * remote-notif.c: Include async-event.h.
8678 * record-full.c: Include async-event.h.
8679 * record-btrace.c: Include async-event.h.
8680 * infrun.c: Include async-event.h.
8681 * event-top.c: Include async-event.h.
8682 * event-loop.h: Move some declarations to async-event.h.
8683 * event-loop.c: Don't include ser-event.h or top.h. Move some
8684 code to async-event.c.
8685 * async-event.h: New file.
8686 * async-event.c: New file.
8687 * Makefile.in (COMMON_SFILES): Add async-event.c.
8688 (HFILES_NO_SRCDIR): Add async-event.h.
8689
c1cd3163
TT
86902020-04-13 Tom Tromey <tom@tromey.com>
8691
8692 * utils.c (flush_streams): New function.
8693 * event-loop.c (gdb_wait_for_event): Call flush_streams.
8694
29f2bf4f
TT
86952020-04-13 Tom Tromey <tom@tromey.com>
8696
8697 * event-loop.c (handle_file_event): Use warning, not
8698 printf_unfiltered.
8699
98029d02
TT
87002020-04-13 Tom Tromey <tom@tromey.com>
8701
8702 * event-loop.c: Include <chrono>.
8703
06cc9596
TT
87042020-04-13 Tom Tromey <tom@tromey.com>
8705
8706 * gdb_select.h: Move to ../gdbsupport/.
8707 * event-loop.c: Update include path.
8708 * top.c: Update include path.
8709 * ser-base.c: Update include path.
8710 * ui-file.c: Update include path.
8711 * ser-tcp.c: Update include path.
8712 * guile/scm-ports.c: Update include path.
8713 * posix-hdep.c: Update include path.
8714 * ser-unix.c: Update include path.
8715 * gdb_usleep.c: Update include path.
8716 * mingw-hdep.c: Update include path.
8717 * inflow.c: Update include path.
8718 * infrun.c: Update include path.
8719 * event-top.c: Update include path.
8720
8ae8e197
TT
87212020-04-13 Tom Tromey <tom@tromey.com>
8722
8723 * configure: Rebuild.
8724 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
8725
58cf28e8
TT
87262020-04-13 Tom Tromey <tom@tromey.com>
8727
8728 * event-loop.h (start_event_loop): Don't declare.
8729 * event-loop.c (start_event_loop): Move...
8730 * main.c (start_event_loop): ...here. Now static.
8731
b7f999ae
SDJ
87322020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
8733
8734 * MAINTAINERS: Update my email address.
8735
1085dfd4
KR
87362020-04-12 Kamil Rytarowski <n54@gmx.com>
8737
8738 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
8739 IP_ALL.
8740
49d1d1f5
KR
87412020-04-12 Kamil Rytarowski <n54@gmx.com>
8742
8743 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 8744 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 8745
b4848d2a
KR
87462020-04-12 Kamil Rytarowski <n54@gmx.com>
8747
8748 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 8749 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 8750
51c133d5
KR
87512020-04-12 Kamil Rytarowski <n54@gmx.com>
8752
8753 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
8754
54b8cbd0
KR
87552020-04-11 Kamil Rytarowski <n54@gmx.com>
8756
8757 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
8758 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
8759 (nbsd_nat_target::info_proc): New functions.
8760 * nbsd-nat.c (kinfo_get_vmmap): New function.
8761 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
8762 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
8763 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
8764 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
8765 functions.
8766 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
8767 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
8768 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
8769 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
8770 (KINFO_VME_FLAG_GROWS_DOWN): New.
8771
cf83625d
AS
87722020-04-10 Artur Shepilko <nomadbyte@gmail.com>
8773
8774 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
8775 bit shift.
8776
0c4311ab
TT
87772020-04-10 Tom Tromey <tromey@adacore.com>
8778
8779 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
8780
3e65b3e9
TT
87812020-04-10 Tom Tromey <tromey@adacore.com>
8782
8783 * symtab.c (get_symbol_address, get_msymbol_address): Skip
8784 separate debug files.
8785
13302e95
HD
87862020-04-10 Hannes Domani <ssbssa@yahoo.de>
8787
8788 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
8789 Move to...
8790 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
8791 ... here.
8792 * windows-nat.c (windows_nat_target::get_windows_debug_event):
8793 Check for STATUS_WX86_BREAKPOINT.
8794 (windows_nat_target::wait): Same.
8795
bdfc1e8a
TV
87962020-04-10 Tom de Vries <tdevries@suse.de>
8797
8798 PR cli/25808
8799 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
8800
f4460aec
SM
88012020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
8802
8803 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
8804 (Write After Approval): Remove Tom de Vries.
8805
a25198bb
BE
88062020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
8807
8808 revert partially:
8809 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8810
aac66a4c
SM
8811 * buildsym.c (record_line): Fix undefined behavior and preserve
8812 lines at eof.
a25198bb 8813
206c98a6
KR
88142020-04-09 Kamil Rytarowski <n54@gmx.com>
8815
8816 * auxv.h (svr4_auxv_parse): New.
8817 * auxv.c (default_auxv_parse): Split into default_auxv_parse
8818 and generic_auxv_parse.
8819 (svr4_auxv_parse): Add.
8820 * obsd-tdep.c: Include "auxv.h".
8821 (obsd_auxv_parse): Remove.
8822 (obsd_init_abi): Remove comment.
8823 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
8824 from `obsd_auxv_parse' to `svr4_auxv_parse'.
8825 * nbsd-tdep.c: Include "auxv.h".
8826 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
8827
71fbdbaf
TT
88282020-04-08 Tom Tromey <tromey@adacore.com>
8829
8830 * nat/windows-nat.h (last_wait_event): Don't declare.
8831 (wait_for_debug_event): Update comment.
8832 * nat/windows-nat.c (last_wait_event): Now static.
8833
2c1d95e8
TT
88342020-04-08 Tom Tromey <tromey@adacore.com>
8835
8836 * windows-nat.c (wait_for_debug_event): Move to
8837 nat/windows-nat.c.
8838 * nat/windows-nat.h (wait_for_debug_event): Declare.
8839 * nat/windows-nat.c (wait_for_debug_event): Move from
8840 windows-nat.c. No longer static.
8841
d2977bc4
TT
88422020-04-08 Tom Tromey <tromey@adacore.com>
8843
8844 * windows-nat.c (get_windows_debug_event): Use
8845 fetch_pending_stop.
8846 * nat/windows-nat.h (fetch_pending_stop): Declare.
8847 * nat/windows-nat.c (fetch_pending_stop): New function.
8848
e758e19c
TT
88492020-04-08 Tom Tromey <tromey@adacore.com>
8850
8851 * windows-nat.c (windows_continue): Use matching_pending_stop and
8852 continue_last_debug_event.
8853 * nat/windows-nat.h (matching_pending_stop)
8854 (continue_last_debug_event): Declare.
8855 * nat/windows-nat.c (DEBUG_EVENTS): New define.
8856 (matching_pending_stop, continue_last_debug_event): New
8857 functions.
8858
8d30e395
TT
88592020-04-08 Tom Tromey <tromey@adacore.com>
8860
8861 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
8862 (handle_exception_result): Move to nat/windows-nat.h.
8863 (DEBUG_EXCEPTION_SIMPLE): Remove.
8864 (windows_nat::handle_ms_vc_exception): New function.
8865 (handle_exception): Move to nat/windows-nat.c.
8866 (get_windows_debug_event): Update.
8867 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
8868 nat/windows-nat.c.
8869 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
8870 (handle_exception_result): Move from windows-nat.c.
8871 (handle_exception): Declare.
8872 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
8873 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
8874 windows-nat.c.
8875
29de418d
TT
88762020-04-08 Tom Tromey <tromey@adacore.com>
8877
8878 * windows-nat.c (exception_count, event_count): Remove.
8879 (handle_exception, get_windows_debug_event)
8880 (do_initial_windows_stuff): Update.
8881
a816ba18
TT
88822020-04-08 Tom Tromey <tromey@adacore.com>
8883
8884 * windows-nat.c (windows_nat::handle_load_dll)
8885 (windows_nat::handle_unload_dll): Rename. No longer static.
8886 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
8887 Declare.
8888
a00caa12
TT
88892020-04-08 Tom Tromey <tromey@adacore.com>
8890
8891 * complaints.h (stop_whining): Declare at top-level.
8892 (complaint): Don't declare stop_whining.
8893
d41b524f
TT
88942020-04-08 Tom Tromey <tromey@adacore.com>
8895
8896 * windows-nat.c (windows_nat::handle_output_debug_string):
8897 Rename. No longer static.
8898 * nat/windows-nat.h (handle_output_debug_string): Declare.
8899
3c76026d
TT
89002020-04-08 Tom Tromey <tromey@adacore.com>
8901
8902 * windows-nat.c (current_process_handle, current_process_id)
8903 (main_thread_id, last_sig, current_event, last_wait_event)
8904 (current_windows_thread, desired_stop_thread_id, pending_stops)
8905 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
8906 (display_selectors, fake_create_process)
8907 (get_windows_debug_event): Update.
8908 * nat/windows-nat.h (current_process_handle, current_process_id)
8909 (main_thread_id, last_sig, current_event, last_wait_event)
8910 (current_windows_thread, desired_stop_thread_id, pending_stops)
8911 (struct pending_stop, siginfo_er): Move from windows-nat.c.
8912 * nat/windows-nat.c (current_process_handle, current_process_id)
8913 (main_thread_id, last_sig, current_event, last_wait_event)
8914 (current_windows_thread, desired_stop_thread_id, pending_stops)
8915 (siginfo_er): New globals. Move from windows-nat.c.
8916
9d8679cc
TT
89172020-04-08 Tom Tromey <tromey@adacore.com>
8918
8919 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
8920 (handle_load_dll): Update.
8921 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
8922
28688adf
TT
89232020-04-08 Tom Tromey <tromey@adacore.com>
8924
8925 * windows-nat.c (enum thread_disposition_type): Move to
8926 nat/windows-nat.h.
8927 (windows_nat::thread_rec): Rename from thread_rec. No longer
8928 static.
8929 (windows_add_thread, windows_nat_target::fetch_registers)
8930 (windows_nat_target::store_registers, handle_exception)
8931 (windows_nat_target::resume, get_windows_debug_event)
8932 (windows_nat_target::get_tib_address)
8933 (windows_nat_target::thread_name)
8934 (windows_nat_target::thread_alive): Update.
8935 * nat/windows-nat.h (enum thread_disposition_type): Move from
8936 windows-nat.c.
8937 (thread_rec): Declare.
8938
4834dad0
TT
89392020-04-08 Tom Tromey <tromey@adacore.com>
8940
8941 * windows-nat.c: Add "using namespace".
8942 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
8943 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
8944
65bafd5b
TT
89452020-04-08 Tom Tromey <tromey@adacore.com>
8946
8947 * nat/windows-nat.h (struct windows_thread_info): Declare
8948 destructor.
8949 * nat/windows-nat.c (~windows_thread_info): New.
8950
0a4afda3
TT
89512020-04-08 Tom Tromey <tromey@adacore.com>
8952
8953 PR gdb/22992
8954 * windows-nat.c (current_event): Update comment.
8955 (last_wait_event, desired_stop_thread_id): New globals.
8956 (struct pending_stop): New.
8957 (pending_stops): New global.
8958 (windows_nat_target) <stopped_by_sw_breakpoint>
8959 <supports_stopped_by_sw_breakpoint>: New methods.
8960 (windows_fetch_one_register): Add assertions. Adjust PC.
8961 (windows_continue): Handle pending stops. Suspend other threads
8962 when stepping. Use last_wait_event
8963 (wait_for_debug_event): New function.
8964 (get_windows_debug_event): Use wait_for_debug_event. Handle
8965 pending stops. Queue spurious stops.
8966 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
8967 (windows_nat_target::kill): Use wait_for_debug_event.
8968 * nat/windows-nat.h (struct windows_thread_info)
8969 <stopped_at_software_breakpoint>: New field.
8970 * nat/windows-nat.c (windows_thread_info::resume): Clear
8971 stopped_at_software_breakpoint.
8972
8e61ebec
TT
89732020-04-08 Tom Tromey <tromey@adacore.com>
8974
8975 * windows-nat.c (enum thread_disposition_type): New.
8976 (thread_rec): Replace "get_context" parameter with "disposition";
8977 change type.
8978 (windows_add_thread, windows_nat_target::fetch_registers)
8979 (windows_nat_target::store_registers, handle_exception)
8980 (windows_nat_target::resume, get_windows_debug_event)
8981 (windows_nat_target::get_tib_address)
8982 (windows_nat_target::thread_name)
8983 (windows_nat_target::thread_alive): Update.
8984
98a03287
TT
89852020-04-08 Tom Tromey <tromey@adacore.com>
8986
8987 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
8988 (windows_continue): Use windows_continue::resume.
8989 * nat/windows-nat.h (struct windows_thread_info) <suspend,
8990 resume>: Declare new methods.
8991 * nat/windows-nat.c: New file.
8992 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
8993
7c7411bc
TT
89942020-04-08 Tom Tromey <tromey@adacore.com>
8995
8996 * windows-nat.c (windows_add_thread, windows_delete_thread)
8997 (windows_nat_target::fetch_registers)
8998 (windows_nat_target::store_registers, fake_create_process)
8999 (windows_nat_target::resume, windows_nat_target::resume)
9000 (get_windows_debug_event, windows_nat_target::wait)
9001 (windows_nat_target::pid_to_str)
9002 (windows_nat_target::get_tib_address)
9003 (windows_nat_target::get_ada_task_ptid)
9004 (windows_nat_target::thread_name)
9005 (windows_nat_target::thread_alive): Use lwp, not tid.
9006
2950fdf7
TT
90072020-04-08 Tom Tromey <tromey@adacore.com>
9008
9009 * windows-nat.c (handle_exception)
9010 (windows_nat_target::thread_name): Update.
9011 * nat/windows-nat.h (windows_thread_info): Remove destructor.
9012 <name>: Now unique_xmalloc_ptr.
9013
62fe396b
TT
90142020-04-08 Tom Tromey <tromey@adacore.com>
9015
9016 * windows-nat.c (thread_rec)
9017 (windows_nat_target::fetch_registers): Update.
9018 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
9019 Update comment.
9020 <debug_registers_changed, reload_context>: Now bool.
9021
e9534bd2
TT
90222020-04-08 Tom Tromey <tromey@adacore.com>
9023
9024 * windows-nat.c (windows_add_thread): Use new.
9025 (windows_init_thread_list, windows_delete_thread): Use delete.
9026 (get_windows_debug_event): Update.
9027 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
9028 destructor, and initializers.
9029
ae1f8880
TT
90302020-04-08 Tom Tromey <tromey@adacore.com>
9031
9032 * windows-nat.c (struct windows_thread_info): Remove.
9033 * nat/windows-nat.h: New file.
9034
55a1e039
TT
90352020-04-08 Tom Tromey <tromey@adacore.com>
9036
9037 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
9038 (thread_rec, windows_add_thread, windows_delete_thread)
9039 (windows_continue): Update.
9040
93366324
TT
90412020-04-08 Tom Tromey <tromey@adacore.com>
9042
9043 * windows-nat.c (struct windows_thread_info): Remove typedef.
9044 (thread_head): Remove.
9045 (thread_list): New global.
9046 (thread_rec, windows_add_thread, windows_init_thread_list)
9047 (windows_delete_thread, windows_continue): Update.
9048
0f2265e2
SM
90492020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
9050
9051 * windows-tdep.h (windows_init_abi): Add comment.
9052 (cygwin_init_abi): New declaration.
9053 * windows-tdep.c: Split signal enumeration in two, one for
9054 Windows and one for Cygwin.
9055 (windows_gdb_signal_to_target): Only deal with signal of the
9056 Windows OS ABI.
9057 (cygwin_gdb_signal_to_target): New function.
9058 (windows_init_abi): Rename to windows_init_abi_common, don't set
9059 gdb_signal_to_target gdbarch method. Add new new function with
9060 this name.
9061 (cygwin_init_abi): New function.
9062 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
9063 comment. Don't call windows_init_abi.
9064 (amd64_windows_init_abi): Add comment, call windows_init_abi.
9065 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
9066 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
9067 i386_windows_init_abi_common, don't call windows_init_abi. Add
9068 a new function of this name.
9069 (i386_cygwin_init_abi): New function.
9070 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
9071 OS ABI Cygwin.
9072
3810f182
SM
90732020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
9074
9075 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
9076 parameter.c.
9077 (dwarf2_read_gdb_index): Update.
9078
063f8e80
KR
90792020-04-07 Kamil Rytarowski <n54@gmx.com>
9080
9081 * nbsd-tdep.c: Include "objfiles.h".
9082 (nbsd_skip_solib_resolver): New.
9083 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
9084
85a9510c 90852020-04-07 Nitika Achra <Nitika.Achra@amd.com>
9086
9087 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
9088 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
9089 with DW_LLE_base_addressx are being emitted in DWARFv5.
9090 Add the newly added kind DW_LOC_OFFSET_PAIR also.
9091 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
9092 unsigned integer.
9093
9fc3eaae 90942020-04-07 Nitika Achra <Nitika.Achra@amd.com>
9095
9096 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
9097 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
9098 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
9099 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
9100 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
9101 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
9102 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
9103
9104
41144253 91052020-04-07 Nitika Achra <Nitika.Achra@amd.com>
9106
9107 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
9108 (read_loclist_index): New function definition.
9109 (lookup_loclist_base): New function definition.
9110 (read_loclist_header): New function definition.
9111 (dwarf2_cu): Add loclist_base and loclist_header field.
9112 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
9113 (read_full_die_1): Read the value of DW_AT_loclists_base.
9114 (read_attribute_reprocess): Handle DW_FORM_loclistx.
9115 (read_attribute_value): Handle DW_FORM_loclistx.
9116 (skip_one_die): Handle DW_FORM_loclistx.
9117 (loclist_header): New structure declaration.
9118 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
9119
9f4e76a4
SM
91202020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9121
9122 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
9123 constructor. Remove `addr` parameter from other constructor and
9124 add `per_cu` parameter.
9125 * dwarf2/read.c (create_partial_symtab): Update.
9126
25c11aca
TV
91272020-04-07 Tom de Vries <tdevries@suse.de>
9128
9129 PR symtab/25796
9130 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
9131 (partial_die_info::fixup): Inherit has_const_value.
9132
5707e24b
TV
91332020-04-07 Tom de Vries <tdevries@suse.de>
9134
9135 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
9136 symbols without address.
9137
05f00e22
KR
91382020-04-06 Kamil Rytarowski <n54@gmx.com>
9139
9140 * nbsd-nat.h (struct thread_info): Add forward declaration.
9141 (nbsd_nat_target::thread_alive): Add.
9142 (nbsd_nat_target::thread_name): Likewise.
9143 (nbsd_nat_target::update_thread_list): Likewise.
9144 (update_thread_list::post_attach): Likewise.
9145 (post_attach::pid_to_str): Likewise.
9146 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
9147 (nbsd_thread_lister): Add.
9148 (nbsd_nat_target::thread_alive): Likewise.
9149 (nbsd_nat_target::thread_name): Likewise.
9150 (nbsd_add_threads): Likewise.
9151 (update_thread_list::post_attach): Likewise.
9152 (nbsd_nat_target::update_thread_list): Likewise.
9153 (post_attach::pid_to_str): Likewise.
9154
6ee448cc
TT
91552020-04-06 Tom Tromey <tromey@adacore.com>
9156
9157 * ada-valprint.c (print_variant_part): Extract the variant field.
9158 (print_field_values): Use the field as the outer value when
9159 recursing.
9160
dea34e8c
TT
91612020-04-06 Tom Tromey <tromey@adacore.com>
9162
9163 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
9164 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
9165 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
9166 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
9167 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
9168
93689ce9
TT
91692020-04-06 Tom Tromey <tromey@adacore.com>
9170
9171 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
9172 TYPE_CODE_ERROR.
9173
79743962
KR
91742020-04-06 Kamil Rytarowski <n54@gmx.com>
9175
9176 * nbsd-tdep.c: Include "gdbarch.h".
9177 Define enum with NetBSD signal numbers.
9178 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
9179 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
9180 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
9181 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
9182 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
9183 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
9184 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
9185 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
9186 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
9187 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
9188 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
9189 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
9190
9e7c9a03
HD
91912020-04-03 Hannes Domani <ssbssa@yahoo.de>
9192
9193 PR gdb/25325
9194 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
9195
d9e49b61
TT
91962020-04-03 Tom Tromey <tromey@adacore.com>
9197
9198 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
9199 Read constant block.
9200
e0fc5c3f
SM
92012020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
9202
9203 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
9204 (gdb_bfd_get_full_section_contents): New declaration.
9205 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
9206 * windows-tdep.c (is_linked_with_cygwin_dll): Use
9207 gdb_bfd_get_full_section_contents.
9208
e2ff18a0
SM
92092020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
9210
9211 * exec.c (build_section_table): Replace internal_error with
9212 gdb_assert.
9213 (section_table_xfer_memory_partial): Likewise.
9214 * mdebugread.c (parse_partial_symbols): Likewise.
9215 * psymtab.c (lookup_partial_symbol): Likewise.
9216 * utils.c (wrap_here): Likewise.
9217
0830d301
TT
92182020-04-02 Tom Tromey <tromey@adacore.com>
9219
9220 * f-lang.c (build_fortran_types): Use arch_type to initialize
9221 builtin_complex_s32 in the TYPE_CODE_ERROR case.
9222
e7da7f8f
TT
92232020-04-02 Tom Tromey <tromey@adacore.com>
9224
9225 * dwarf2/read.c (partial_die_info::read): Do not create a vector
9226 of attributes.
9227
c90d28ac
AB
92282020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
9229 Bernd Edlinger <bernd.edlinger@hotmail.de>
9230 Tom Tromey <tromey@adacore.com>
9231
9232 * buildsym.c (buildsym_compunit::record_line): Remove
9233 deduplication code.
9234
1aa98955
TV
92352020-04-02 Tom de Vries <tdevries@suse.de>
9236
9237 PR ada/24671
9238 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
9239
d3214198
TV
92402020-04-02 Tom de Vries <tdevries@suse.de>
9241
9242 * dwarf2/read.c (dwarf2_gdb_index_functions,
9243 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
9244 NULL.
9245 * psymtab.c (psym_lookup_global_symbol_language): New function.
9246 (psym_functions): Init psym_lookup_global_symbol_language with
9247 psym_lookup_global_symbol_language.
9248 * symfile-debug.c (debug_sym_quick_functions): Init
9249 lookup_global_symbol_language with NULL.
9250 * symfile.c (set_initial_language): Remove fixme comment.
9251 * symfile.h (struct quick_symbol_functions): Add
9252 lookup_global_symbol_language.
9253 * symtab.c (find_quick_global_symbol_language): New function.
9254 (find_main_name): Use find_quick_global_symbol_language.
9255
2836752f
SM
92562020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
9257
9258 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
9259
64dc2d4b
BE
92602020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
9261
9262 * buildsym.c (record_line): Fix undefined behavior and preserve
9263 lines at eof.
9264
bbe3dc41
BE
92652020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
9266
9267 * buildsym.c (record_line): Fix the resizing condition.
9268
6b4a335b
TT
92692020-04-01 Tom Tromey <tom@tromey.com>
9270
9271 * value.h (value_literal_complex): Add comment.
9272 * valops.c (value_literal_complex): Refer to value.h.
9273
3638a098
TT
92742020-04-01 Tom Tromey <tom@tromey.com>
9275
9276 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
9277 (scalar_type): New rule, from typebase.
9278 (typebase): Use scalar_type. Recognize complex types.
9279 (field_name): Handle FLOAT_KEYWORD.
9280 (ident_tokens): Add _Complex and __complex__.
9281
c34e8714
TT
92822020-04-01 Tom Tromey <tom@tromey.com>
9283
9284 PR exp/25299:
9285 * valarith.c (promotion_type, complex_binop): New functions.
9286 (scalar_binop): Handle complex numbers. Use promotion_type.
9287 (value_pos, value_neg, value_complement): Handle complex numbers.
9288
fa649bb7
TT
92892020-04-01 Tom Tromey <tom@tromey.com>
9290
9291 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
9292 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
9293 (parse_number): Handle complex numbers.
9294
981c08ce
TT
92952020-04-01 Tom Tromey <tom@tromey.com>
9296
9297 * c-valprint.c (c_decorations): Change complex suffix to "i".
9298
4c99290d
TT
92992020-04-01 Tom Tromey <tom@tromey.com>
9300
9301 * valprint.c (generic_value_print_complex): Use accessors.
9302 * value.h (value_real_part, value_imaginary_part): Declare.
9303 * valops.c (value_real_part, value_imaginary_part): New
9304 functions.
9305 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
9306
5b930b45
TT
93072020-04-01 Tom Tromey <tom@tromey.com>
9308
9309 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
9310 (read_range_type): Update.
9311 * mdebugread.c (basic_type): Update.
9312 * go-lang.c (build_go_types): Use init_complex_type.
9313 * gdbtypes.h (struct main_type) <complex_type>: New member.
9314 (init_complex_type): Update.
9315 (arch_complex_type): Don't declare.
9316 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
9317 Make name if none given. Use alloc_type_copy. Look for cached
9318 complex type.
9319 (arch_complex_type): Remove.
9320 (gdbtypes_post_init): Use init_complex_type.
9321 * f-lang.c (build_fortran_types): Use init_complex_type.
9322 * dwarf2/read.c (read_base_type): Update.
9323 * d-lang.c (build_d_types): Use init_complex_type.
9324 * ctfread.c (read_base_type): Update.
9325
53cccef1
TBA
93262020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9327
9328 * infrun.c (stop_all_threads): Update assertion, plus when
9329 stopping threads, take into account that we might be trying
9330 to stop an all-stop target.
9331 (stop_waiting): Call 'stop_all_threads' if there exists a
9332 non-stop target.
9333
a0714d30
TBA
93342020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9335
9336 * target.h (exists_non_stop_target): New function declaration.
9337 * target.c (exists_non_stop_target): New function.
9338
60e22c1e
HD
93392020-04-01 Hannes Domani <ssbssa@yahoo.de>
9340
9341 PR gdb/24789
9342 * eval.c (is_integral_or_integral_reference): New function.
9343 (evaluate_subexp_standard): Allow integer references in
9344 pointer arithmetic.
9345
e139a727
TBA
93462020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9347
9348 * remote.c (remote_target::remote_parse_stop_reply): Remove the
9349 check for no ptid in the stop reply when the target is non-stop.
9350
e0802d59
TT
93512020-04-01 Tom Tromey <tromey@adacore.com>
9352
9353 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
9354 "name" parameter to rvalue reference. Initialize m_name_holder.
9355 <lookup_name_info>: New overloads.
9356 <name>: Return gdb::string_view.
9357 <c_str>: New method.
9358 <make_ignore_params>: Update.
9359 <search_name_hash>: Update.
9360 <language_lookup_name>: Return const char *.
9361 <m_name>: Change type.
9362 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
9363 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
9364 (lookup_name_info::match_any): Update.
9365 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
9366 Update.
9367 * minsyms.c (linkage_name_str): Update.
9368 * language.c (default_symbol_name_matcher): Update.
9369 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
9370 Update.
9371 * ada-lang.c (ada_fold_name): Change parameter to string_view.
9372 (ada_lookup_name_info::ada_lookup_name_info): Update.
9373 (literal_symbol_name_matcher): Update.
9374
8c072cb6
TT
93752020-04-01 Tom Tromey <tromey@adacore.com>
9376
9377 * psymtab.c (psymtab_search_name): Remove function.
9378 (psym_lookup_symbol): Create search name and lookup name here.
9379 (lookup_partial_symbol): Remove "name" parameter; add
9380 lookup_name.
9381 (psym_expand_symtabs_for_function): Update.
9382
6f29a534
TT
93832020-03-31 Joel Jones <joelkevinjones@gmail.com>
9384
9385 PR tui/25597:
9386 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
9387
af62665e
TT
93882020-03-31 Tom Tromey <tromey@adacore.com>
9389
9390 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
9391 memcpy.
9392
d1a89da5
NC
93932020-03-30 Nelson Chu <nelson.chu@sifive.com>
9394
9395 * features/riscv/32bit-csr.xml: Regenerated.
9396 * features/riscv/64bit-csr.xml: Regenerated.
9397
d8af9068
TT
93982020-03-30 Tom Tromey <tromey@adacore.com>
9399
9400 * ada-valprint.c (print_variant_part): Update.
9401 * ada-lang.h (ada_which_variant_applies): Update.
9402 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
9403 outer_valaddr parameters; replace with "outer" value parameter.
9404 (to_fixed_variant_branch_type): Update.
9405
227c0bf4
PFC
94062020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9407
9408 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
9409 <list>. Remove inclusion of observable.h.
9410 (PPC_DEBUG_CURRENT_VERSION): Move up define.
9411 (struct arch_lwp_info): New struct.
9412 (class ppc_linux_dreg_interface): New class.
9413 (struct ppc_linux_process_info): New struct.
9414 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
9415 <low_new_clone, low_forget_process, low_prepare_to_resume>
9416 <copy_thread_dreg_state, mark_thread_stale>
9417 <mark_debug_registers_changed, register_hw_breakpoint>
9418 <clear_hw_breakpoint, register_wp, clear_wp>
9419 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
9420 <num_memory_accesses, get_trigger_type>
9421 <create_watchpoint_request, hwdebug_point_cmp>
9422 <init_arch_lwp_info, get_arch_lwp_info>
9423 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
9424 methods.
9425 <struct ptid_hash>: New inner struct.
9426 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
9427 members.
9428 (saved_dabr_value, hwdebug_info, max_slots_number)
9429 (struct hw_break_tuple, struct thread_points, ppc_threads)
9430 (have_ptrace_hwdebug_interface)
9431 (hwdebug_find_thread_points_by_tid)
9432 (hwdebug_insert_point, hwdebug_remove_point): Remove.
9433 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
9434 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
9435 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
9436 use m_dreg_interface.
9437 (hwdebug_point_cmp): Change to...
9438 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
9439 reference arguments instead of pointers.
9440 (ppc_linux_nat_target::ranged_break_num_registers): Use
9441 m_dreg_interface.
9442 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
9443 m_dreg_interface. Call register_hw_breakpoint.
9444 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
9445 m_dreg_interface. Call clear_hw_breakpoint.
9446 (get_trigger_type): Change to...
9447 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
9448 comment.
9449 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
9450 use m_dreg_interface. Call register_hw_breakpoint.
9451 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
9452 use m_dreg_interface. Call clear_hw_breakpoint.
9453 (can_use_watchpoint_cond_accel): Change to...
9454 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
9455 method. Update comment, use m_dreg_interface and
9456 m_process_info.
9457 (calculate_dvc): Change to...
9458 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
9459 m_dreg_interface.
9460 (num_memory_accesses): Change to...
9461 (ppc_linux_nat_target::num_memory_accesses): ...this method.
9462 (check_condition): Change to...
9463 (ppc_linux_nat_target::check_condition): ...this method.
9464 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
9465 comment, use m_dreg_interface.
9466 (create_watchpoint_request): Change to...
9467 (ppc_linux_nat_target::create_watchpoint_request): ...this
9468 method. Use m_dreg_interface.
9469 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
9470 m_dreg_interface. Call register_hw_breakpoint or register_wp.
9471 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
9472 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
9473 (ppc_linux_nat_target::low_forget_process)
9474 (ppc_linux_nat_target::low_new_fork)
9475 (ppc_linux_nat_target::low_new_clone)
9476 (ppc_linux_nat_target::low_delete_thread)
9477 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
9478 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
9479 only call mark_thread_stale.
9480 (ppc_linux_thread_exit): Remove.
9481 (ppc_linux_nat_target::stopped_data_address): Change to...
9482 (ppc_linux_nat_target::low_stopped_data_address): This. Add
9483 comment, use m_dreg_interface and m_thread_hw_breakpoints.
9484 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
9485 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
9486 comment. Call low_stopped_data_address.
9487 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
9488 m_dreg_interface.
9489 (ppc_linux_nat_target::masked_watch_num_registers): Use
9490 m_dreg_interface.
9491 (ppc_linux_nat_target::copy_thread_dreg_state)
9492 (ppc_linux_nat_target::mark_thread_stale)
9493 (ppc_linux_nat_target::mark_debug_registers_changed)
9494 (ppc_linux_nat_target::register_hw_breakpoint)
9495 (ppc_linux_nat_target::clear_hw_breakpoint)
9496 (ppc_linux_nat_target::register_wp)
9497 (ppc_linux_nat_target::clear_wp)
9498 (ppc_linux_nat_target::init_arch_lwp_info)
9499 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
9500 (_initialize_ppc_linux_nat): Remove observer callback.
9501
4db10d8f
PFC
95022020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9503
9504 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
9505 (ppc_linux_nat_target::auxv_parse)
9506 (ppc_linux_nat_target::read_description)
9507 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
9508 Move up.
9509
1310c1b0
PFC
95102020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9511
9512 * linux-nat.h (low_new_clone): New method.
9513 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
9514
69b037c3
SM
95152020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9516
9517 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
9518 (dbx_expand_psymtab): ... this.
9519 (start_psymtab): Update.
9520 * mdebugread.c (psymtab_to_symtab_1): Rename to...
9521 (mdebug_expand_psymtab): ... this.
9522 (parse_partial_symbols): Update.
9523 (new_psymtab): Update.
9524 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
9525 (xcoff_expand_psymtab): ... this.
9526 (xcoff_start_psymtab): Update.
9527
48993951
SM
95282020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9529
9530 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
9531 <expand_dependencies>: ... this.
9532 * psymtab.c (partial_symtab::read_dependencies): Rename to...
9533 (partial_symtab::expand_dependencies): ... this.
9534 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
9535 Update.
9536 (dwarf2_psymtab::expand_psymtab): Update.
9537 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
9538 * mdebugread.c (psymtab_to_symtab_1): Update.
9539 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
9540
3ad83046
SM
95412020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9542
9543 * psympriv.h (discard_psymtab): Remove.
9544 * dbxread.c (dbx_end_psymtab): Update.
9545 * xcoffread.c (xcoff_end_psymtab): Update.
9546
4d1b9ab6
TT
95472020-03-28 Tom Tromey <tom@tromey.com>
9548
9549 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
9550 comment.
9551
f1749218
TT
95522020-03-28 Tom Tromey <tom@tromey.com>
9553
9554 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
9555
ebea7626
HD
95562020-03-27 Hannes Domani <ssbssa@yahoo.de>
9557
9558 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
9559
a879b4d5
JB
95602020-03-26 John Baldwin <jhb@FreeBSD.org>
9561
9562 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
9563
0826b30a
TT
95642020-03-26 Tom Tromey <tom@tromey.com>
9565
9566 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
9567 (mark_common_block_symbol_computed, read_tag_string_type)
9568 (attr_to_dynamic_prop, read_subrange_type): Update.
9569 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
9570 to be methods on struct attribute.
9571 (skip_one_die, process_imported_unit_die, read_namespace_alias)
9572 (read_call_site_scope, partial_die_info::read)
9573 (partial_die_info::read, lookup_die_type, follow_die_ref):
9574 Update.
9575 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
9576 from dwarf2_get_ref_die_offset.
9577 (attribute::constant_value): New method, from
9578 dwarf2_get_attr_constant_value.
9579 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
9580 Declare method.
9581 <constant_value>: New method.
9582
2b2558bf
TT
95832020-03-26 Tom Tromey <tom@tromey.com>
9584
9585 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
9586 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
9587 (dwarf_type_encoding_name): Move to stringify.c.
9588 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
9589 * dwarf2/stringify.c: New file.
9590 * dwarf2/stringify.h: New file.
9591
eeb64781
TT
95922020-03-26 Tom Tromey <tom@tromey.com>
9593
9594 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
9595 Rewrite.
9596
a39fdb41
TT
95972020-03-26 Tom Tromey <tom@tromey.com>
9598
9599 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
9600 methods.
9601 * dwarf2/read.c (lookup_addr_base): Move to die.h.
9602 (lookup_ranges_base): Likewise.
9603 (read_cutu_die_from_dwo, read_full_die_1): Update.
9604
436c571c
TT
96052020-03-26 Tom Tromey <tom@tromey.com>
9606
9607 * dwarf2/read.c (read_import_statement, read_file_scope)
9608 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
9609 (read_lexical_block_scope, read_call_site_scope)
9610 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
9611 (handle_struct_member_die, process_structure_scope)
9612 (update_enumeration_type_from_children)
9613 (process_enumeration_scope, read_array_type, read_common_block)
9614 (read_namespace, read_module, read_subroutine_type): Update.
9615 (sibling_die): Remove.
9616
052c8bb8
TT
96172020-03-26 Tom Tromey <tom@tromey.com>
9618
9619 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
9620 (build_type_psymtabs_reader, read_structure_type)
9621 (read_enumeration_type, read_full_die_1): Update.
9622 (dwarf2_attr_no_follow): Move to die.h.
9623 * dwarf2/die.h (struct die_info) <attr>: New method.
9624
2b24b6e4
TT
96252020-03-26 Tom Tromey <tom@tromey.com>
9626
9627 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
9628 <base_address>: Now an optional.
9629 (dwarf2_find_base_address, dwarf2_rnglists_process)
9630 (dwarf2_ranges_process, fill_in_loclist_baton)
9631 (dwarf2_symbol_mark_computed): Update.
9632
c2d50fd0
TT
96332020-03-26 Tom Tromey <tom@tromey.com>
9634
9635 * dwarf2/read.c (struct die_info): Move to die.h.
9636 * dwarf2/die.h: New file.
9637
0df7ad3a
TT
96382020-03-26 Tom Tromey <tom@tromey.com>
9639
9640 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
9641 * dwarf2/read.c
9642 (dwarf2_statement_list_fits_in_line_number_section_complaint):
9643 Move to line-header.c.
9644 (read_checked_initial_length_and_offset, read_formatted_entries):
9645 Likewise.
9646 (dwarf_decode_line_header): Split into two.
9647 * dwarf2/line-header.c
9648 (dwarf2_statement_list_fits_in_line_number_section_complaint):
9649 Move from read.c.
9650 (read_checked_initial_length_and_offset, read_formatted_entries):
9651 Likewise.
9652 (dwarf_decode_line_header): New function, split from read.c.
9653
86c0bb4c
TT
96542020-03-26 Tom Tromey <tom@tromey.com>
9655
9656 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
9657 Declare method.
9658 * dwarf2/read.c (read_attribute_value): Update.
9659 (dwarf2_per_objfile::read_line_string): Rename from
9660 read_indirect_line_string.
9661 (read_formatted_entries): Update.
9662
2ef46c2f
TT
96632020-03-26 Tom Tromey <tom@tromey.com>
9664
9665 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
9666 variable.
9667
4f9c1eda
TT
96682020-03-26 Tom Tromey <tom@tromey.com>
9669
9670 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
9671 const.
9672 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
9673 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
9674 parameter const.
9675
5a0e026f
TT
96762020-03-26 Tom Tromey <tom@tromey.com>
9677
9678 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
9679 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
9680 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
9681 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
9682
8844c11b
TT
96832020-03-26 Tom Tromey <tom@tromey.com>
9684
9685 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
9686 file_names_size, file_full_name, file_file_name>: Use const.
9687 <file_name_at, file_names>: Add const overload.
9688 * dwarf2/line-header.c (line_header::file_file_name)
9689 (line_header::file_full_name): Update.
9690
c90ec28a
TT
96912020-03-26 Tom Tromey <tom@tromey.com>
9692
9693 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
9694 (macro_start_file, consume_improper_spaces)
9695 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
9696 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
9697 (dwarf_decode_macros): Move to macro.c.
9698 * dwarf2/macro.c: New file.
9699 * dwarf2/macro.h: New file.
9700 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
9701
4f44ae6c
TT
97022020-03-26 Tom Tromey <tom@tromey.com>
9703
9704 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
9705 method.
9706 * dwarf2/section.c: New method. From
9707 read_indirect_string_at_offset_from.
9708 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
9709 (read_indirect_string_at_offset_from): Move to section.c.
9710 (read_indirect_string_at_offset): Rewrite.
9711 (read_indirect_line_string_at_offset): Remove.
9712 (read_indirect_string, read_indirect_line_string)
9713 (dwarf_decode_macro_bytes): Update.
9714
a0194fa8
TT
97152020-03-26 Tom Tromey <tom@tromey.com>
9716
9717 * dwarf2/section.h (struct dwarf2_section_info)
9718 <overload_complaint>: Declare.
9719 (dwarf2_section_buffer_overflow_complaint): Don't declare.
9720 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
9721 Rename from dwarf2_section_buffer_overflow_complaint.
9722 * dwarf2/read.c (skip_one_die, partial_die_info::read)
9723 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
9724
3d27bbdb
TT
97252020-03-26 Tom Tromey <tom@tromey.com>
9726
9727 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
9728 Declare.
9729 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
9730 Move from read.c.
9731 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
9732 to section.c.
9733
9eac9650
TT
97342020-03-26 Tom Tromey <tom@tromey.com>
9735
9736 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
9737
bf80d710
TT
97382020-03-26 Tom Tromey <tom@tromey.com>
9739
9740 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
9741 "builder".
9742 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
9743 parameter.
9744 (dwarf_decode_macros): Update.
9745
0314b390
TT
97462020-03-26 Tom Tromey <tom@tromey.com>
9747
9748 * dwarf2/read.c (read_attribute_value): Update.
9749 (read_indirect_string_from_dwz): Move to dwz.c; change into
9750 method.
9751 (dwarf_decode_macro_bytes): Update.
9752 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
9753 * dwarf2/dwz.c: New file.
9754 * Makefile.in (COMMON_SFILES): Add dwz.c.
9755
9fda78b6
TT
97562020-03-26 Tom Tromey <tom@tromey.com>
9757
9758 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
9759 * dwarf2/read.c: Add include.
9760 * dwarf2/index-write.c: Add include.
9761 * dwarf2/index-cache.c: Add include.
9762 * dwarf2/dwz.h: New file.
9763
33aa3c10
TT
97642020-03-25 Tom Tromey <tom@tromey.com>
9765
9766 * compile/compile-object-load.c (get_out_value_type): Mention
9767 correct symbol name in error message.
9768
d503b685
HD
97692020-03-25 Hannes Domani <ssbssa@yahoo.de>
9770
9771 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
9772
7b1eff95
TV
97732020-03-25 Tom de Vries <tdevries@suse.de>
9774
9775 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
9776 * symmisc.c (dump_symtab_1): Print user and includes fields.
9777 (maintenance_info_symtabs): Same.
9778
dd895392
AB
97792020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
9780
9781 PR gdb/25534
9782 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
9783 (riscv_regcache_cooked_write): New function.
9784 (riscv_push_dummy_call): Use new function.
9785 (riscv_return_value): Likewise.
9786
5ab2fbf1
SM
97872020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
9788
9789 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
9790 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
9791 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
9792 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
9793 * infrun.c (follow_fork): Likewise.
9794 (follow_fork_inferior): Likewise.
9795 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
9796 * linux-nat.h (class linux_nat_target): Likewise.
9797 * remote.c (class remote_target) <follow_fork>: Likewise.
9798 (remote_target::follow_fork): Likewise.
9799 * target-delegates.c: Re-generate.
9800 * target.c (default_follow_fork): Likewise.
9801 (target_follow_fork): Likewise.
9802 * target.h (struct target_ops) <follow_fork>: Likewise.
9803 (target_follow_fork): Likewise.
9804
a64fafb5
TV
98052020-03-24 Tom de Vries <tdevries@suse.de>
9806
9807 * psymtab.c (maintenance_info_psymtabs): Print user field.
9808
fe26d3a3
TT
98092020-03-20 Tom Tromey <tromey@adacore.com>
9810
9811 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
9812 const.
9813 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
9814 const.
9815
c884cc46
SM
98162020-03-20 Simon Marchi <simon.marchi@efficios.com>
9817
9818 * ptrace.m4: Don't check for ptrace declaration.
9819 * config.in: Re-generate.
9820 * configure: Re-generate.
9821 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
9822 not defined.
9823
1ff700c2
KR
98242020-03-20 Kamil Rytarowski <n54@gmx.com>
9825
9826 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
9827 `PTRACE_TYPE_RET'.
9828 * i386-bsd-nat.c (gdb_ptrace): Likewise.
9829 * sparc-nat.c (gdb_ptrace): Likewise.
9830 * x86-bsd-nat.c (gdb_ptrace): Likewise.
9831
f7d4f0b1
TT
98322020-03-20 Tom Tromey <tromey@adacore.com>
9833
9834 * c-exp.y (lex_one_token): Fix assert.
9835
f67210ff
TT
98362020-03-20 Tom Tromey <tromey@adacore.com>
9837
9838 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
9839 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
9840 strncpy call.
9841
1773be9e
TT
98422020-03-20 Tom Tromey <tromey@adacore.com>
9843
9844 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
9845
70304be9
TT
98462020-03-20 Tom Tromey <tromey@adacore.com>
9847
9848 * ada-valprint.c (print_variant_part): Remove parameters; switch
9849 to value-based API.
9850 (print_field_values): Likewise.
9851 (ada_val_print_struct_union): Likewise.
9852 (ada_value_print_1): Update.
9853
9faa006d
KR
98542020-03-20 Kamil Rytarowski <n54@gmx.com>
9855
9856 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
9857 nbsd_nat_target instead of inf_ptrace_target.
9858 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9859 nbsd_nat_target.
9860
4a90f062
KR
98612020-03-20 Kamil Rytarowski <n54@gmx.com>
9862
9863 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
9864 it to the ptrace call.
9865 * (store_registers): Likewise.
9866
98672020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
9868
9869 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
9870 it to the ptrace call.
9871 * (store_registers): Likewise.
9872
2d07da27
LM
98732020-03-19 Luis Machado <luis.machado@linaro.org>
9874
9875 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
9876 valid, fetch vg value from ptrace.
9877
f09db380
KR
98782020-03-19 Kamil Rytarowski <n54@gmx.com>
9879 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
9880 * inf-ptrace.c: Likewise.
9881 * (gdb_ptrace): Add.
9882 * (inf_ptrace_target::resume): Update.
9883 * (inf_ptrace_target::xfer_partial): Likewise.
9884 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
9885 * (inf_ptrace_peek_poke): Update.
9886
fcc7376e
KR
98872020-03-19 Kamil Rytarowski <n54@gmx.com>
9888
9889 * x86-bsd-nat.c (gdb_ptrace): New.
9890 * (x86bsd_dr_set): Add new argument `ptid'.
9891 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
9892 x86bsd_dr_set_addr): Update.
9893
cada5fc9
AB
98942020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9895
9896 * remote.c (remote_target::process_stop_reply): Handle events for
9897 all threads differently.
9898
19a2740f
AB
98992020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9900
9901 * completer.c (completion_tracker::remove_completion): Define new
9902 function.
9903 * completer.h (completion_tracker::remove_completion): Declare new
9904 function.
9905 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
9906 when adding a C++ function symbol.
9907
724fd9ba
AB
99082020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9909
9910 * completer.c (completion_tracker::completion_hash_entry): Define
9911 new class.
9912 (advance_to_filename_complete_word_point): Call
9913 recompute_lowest_common_denominator.
9914 (completion_tracker::completion_tracker): Call discard_completions
9915 to setup the hash table.
9916 (completion_tracker::discard_completions): Allow for being called
9917 from the constructor, pass new equal function, and element deleter
9918 when constructing the hash table. Initialise new class member
9919 variables.
9920 (completion_tracker::maybe_add_completion): Remove use of
9921 m_entries_vec, and store more information into m_entries_hash.
9922 (completion_tracker::recompute_lcd_visitor): New function, most
9923 content taken from...
9924 (completion_tracker::recompute_lowest_common_denominator):
9925 ...here, this now just visits each item in the hash calling the
9926 above visitor.
9927 (completion_tracker::build_completion_result): Remove use of
9928 m_entries_vec, call recompute_lowest_common_denominator.
9929 * completer.h (completion_tracker::have_completions): Remove use
9930 of m_entries_vec.
9931 (completion_tracker::completion_hash_entry): Declare new class.
9932 (completion_tracker::recompute_lowest_common_denominator): Change
9933 function signature.
9934 (completion_tracker::recompute_lcd_visitor): Declare new function.
9935 (completion_tracker::m_entries_vec): Delete.
9936 (completion_tracker::m_entries_hash): Initialize to NULL.
9937 (completion_tracker::m_lowest_common_denominator_valid): New
9938 member variable.
9939 (completion_tracker::m_lowest_common_denominator_max_length): New
9940 member variable.
9941
5a82b8a1
KR
99422020-03-17 Kamil Rytarowski <n54@gmx.com>
9943
9944 * regformats/regdef.h: Put reg in gdb namespace.
9945
fb516a69
KR
99462020-03-17 Kamil Rytarowski <n54@gmx.com>
9947
9948 * i386-bsd-nat.c (gdb_ptrace): New.
9949 * (i386bsd_fetch_inferior_registers,
9950 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
9951 * (i386bsd_fetch_inferior_registers,
9952 i386bsd_store_inferior_registers) Use gdb_ptrace.
9953
1c0aa1fb
KR
99542020-03-17 Kamil Rytarowski <n54@gmx.com>
9955
9956 * amd64-bsd-nat.c (gdb_ptrace): New.
9957 * (amd64bsd_fetch_inferior_registers,
9958 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
9959 * (amd64bsd_fetch_inferior_registers,
9960 amd64bsd_store_inferior_registers) Use gdb_ptrace.
9961
5ccd2fb7
KR
99622020-03-17 Kamil Rytarowski <n54@gmx.com>
9963
9964 * user-regs.c (user_reg::read): Rename to...
9965 (user_reg::xread): ...this.
9966 * (append_user_reg): Rename argument `read' to `xread'.
9967 * (user_reg_add_builtin): Likewise.
9968 * (user_reg_add): Likewise.
9969 * (value_of_user_reg): Likewise.
9970
2108a63a
KR
99712020-03-17 Kamil Rytarowski <n54@gmx.com>
9972
9973 * sparc-nat.c (gdb_ptrace): New.
9974 * sparc-nat.c (sparc_fetch_inferior_registers)
9975 (sparc_store_inferior_registers) Remove obsolete comment.
9976 * sparc-nat.c (sparc_fetch_inferior_registers)
9977 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
9978 * sparc-nat.c (sparc_fetch_inferior_registers)
9979 (sparc_store_inferior_registers) Use gdb_ptrace.
9980
a225c9a8
KR
99812020-03-17 Kamil Rytarowski <n54@gmx.com>
9982
9983 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
9984 it to the ptrace call.
9985 * sh-nbsd-nat.c (store_registers): Likewise.
9986
98097623
KR
99872020-03-17 Kamil Rytarowski <n54@gmx.com>
9988
9989 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
9990 nbsd_nat_target instead of inf_ptrace_target.
9991 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9992 nbsd_nat_target.
9993
9e38d619
KR
99942020-03-17 Kamil Rytarowski <n54@gmx.com>
9995
9996 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
9997
a2ecbe9f
KR
99982020-03-17 Kamil Rytarowski <n54@gmx.com>
9999
10000 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
10001 <sys/sysctl.h>.
10002 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
10003
58990295
TV
100042020-03-17 Tom de Vries <tdevries@suse.de>
10005
10006 PR gdb/23710
10007 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
10008 fields.
10009 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
10010 fields.
10011 (process_imported_unit_die): Skip import of c++ CUs.
10012
771dd3a8
TT
100132020-03-16 Tom Tromey <tom@tromey.com>
10014
10015 * p-valprint.c (pascal_object_print_value): Initialize
10016 base_value.
10017
817a7585
AK
100182020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
10019 Shahab Vahedi <shahab@synopsys.com>
10020
10021 * Makefile.in: Add arch/arc.o
10022 * configure.tgt: Likewise.
10023 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
10024 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 10025 (arc_read_description): New function to cache target descriptions.
817a7585
AK
10026 * arc-tdep.h (arc_read_description): Add proto type.
10027 * arch/arc.c: New file.
10028 * arch/arc.h: Likewise.
10029 * features/Makefile: Replace old target descriptions with new.
10030 * features/arc-arcompact.c: Remove.
10031 * features/arc-arcompact.xml: Likewise.
10032 * features/arc-v2.c: Likewise
10033 * features/arc-v2.xml: Likewise
10034 * features/arc/aux-arcompact.xml: New file.
10035 * features/arc/aux-v2.xml: Likewise.
10036 * features/arc/core-arcompact.xml: Likewise.
10037 * features/arc/core-v2.xml: Likewise.
10038 * features/arc/aux-arcompact.c: Generate.
10039 * features/arc/aux-v2.c: Likewise.
10040 * features/arc/core-arcompact.c: Likewise.
10041 * features/arc/core-v2.c: Likewise.
10042 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
10043
67430cd0
TT
100442020-03-16 Tom Tromey <tromey@adacore.com>
10045
10046 PR gdb/25663:
10047 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
10048 putting value into bcache.
10049
30efb6c7
SM
100502020-03-16 Simon Marchi <simon.marchi@efficios.com>
10051
10052 PR gdb/21500
10053 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
10054 to...
10055 (amd64_windows_init_abi_common): ... this. Don't set size of
10056 long type.
10057 (amd64_windows_init_abi): New function.
10058 (amd64_cygwin_init_abi): New function.
10059 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
10060 the Cygwin OS ABI.
10061 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
10062 comment.
10063
8db52437
SM
100642020-03-16 Simon Marchi <simon.marchi@efficios.com>
10065
10066 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
10067 * windows-tdep.c (CYGWIN_DLL_NAME): New.
10068 (pe_import_directory_entry): New struct type.
10069 (is_linked_with_cygwin_dll): New function.
10070 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
10071 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
10072 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
10073
5982a56a
SM
100742020-03-16 Simon Marchi <simon.marchi@efficios.com>
10075
10076 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
10077 i386_cygwin_core_osabi_sniffer.
10078
7a1998df
SM
100792020-03-16 Simon Marchi <simon.marchi@efficios.com>
10080
10081 * i386-cygwin-tdep.c: Rename to...
10082 * i386-windows-tdep.c: ... this.
10083 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
10084 i386-windows-tdep.c.
10085 * configure.tgt: Likewise.
10086
053205cc
SM
100872020-03-16 Simon Marchi <simon.marchi@efficios.com>
10088
10089 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
10090 * osabi.c (gdb_osabi_names): Add "Windows".
10091 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
10092 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
10093 (i386_cygwin_core_osabi_sniffer): New function, extracted from
10094 i386_cygwin_osabi_sniffer.
10095 (_initialize_i386_cygwin_tdep): Register OS ABI
10096 GDB_OSABI_WINDOWS for i386.
10097 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
10098 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
10099 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
10100 for x86-64.
10101 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
10102 when the target matches '*-*-mingw*'.
10103
fe4b2ee6
SM
101042020-03-16 Simon Marchi <simon.marchi@efficios.com>
10105
10106 * defs.h (enum gdb_osabi): Move to...
10107 * osabi.h (enum gdb_osabi): ... here.
10108 * gdbarch.sh: Include osabi.h in gdbarch.h.
10109 * gdbarch.h: Re-generate.
10110
cb9b645d
SM
101112020-03-16 Simon Marchi <simon.marchi@efficios.com>
10112
10113 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
10114 function.
10115 (_initialize_amd64_windows_tdep): Register osabi sniffer.
10116
3293bbaf
TT
101172020-03-14 Tom Tromey <tom@tromey.com>
10118
10119 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
10120 for C++.
10121 (c_type_print_modifier): Likewise. Add "language" parameter.
10122 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
10123 (c_type_print_base_1): Update.
10124 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
10125 constants.
10126 * type-stack.c (type_stack::insert): Handle tp_atomic and
10127 tp_restrict.
10128 (type_stack::follow_type_instance_flags): Likewise.
10129 (type_stack::follow_types): Likewise. Merge type-following code.
10130 * c-exp.y (RESTRICT, ATOMIC): New tokens.
10131 (space_identifier, cv_with_space_id)
10132 (const_or_volatile_or_space_identifier_noopt)
10133 (const_or_volatile_or_space_identifier): Remove.
10134 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
10135 rules.
10136 (ptr_operator, typebase): Update.
10137 (enum token_flag) <FLAG_C>: New constant.
10138 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
10139 "_Atomic".
10140 (lex_one_token): Handle FLAG_C.
10141
154151a6
KR
101422020-03-14 Kamil Rytarowski <n54@gmx.com>
10143
10144 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
10145 it to the ptrace call.
10146 * m68k-bsd-nat.c (store_registers): Likewise.
10147
bc107784
KR
101482020-03-14 Kamil Rytarowski <n54@gmx.com>
10149
10150 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
10151 gdb_byte *.
10152 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
10153 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
10154 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
10155
01a80117
KR
101562020-03-14 Kamil Rytarowski <n54@gmx.com>
10157
10158 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
10159 nbsd_nat_target instead of inf_ptrace_target.
10160 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
10161 nbsd_nat_target.
10162
f90280ca
KR
101632020-03-14 Kamil Rytarowski <n54@gmx.com>
10164
10165 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
10166 register_t.
10167
6def66f1
KR
101682020-03-14 Kamil Rytarowski <n54@gmx.com>
10169
10170 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
10171 it to the ptrace call.
10172 * alpha-bsd-nat.c (store_registers): Likewise.
10173
66eaca97
KR
101742020-03-14 Kamil Rytarowski <n54@gmx.com>
10175
10176 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
10177 includes.
10178 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
10179 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
10180 fill_fpregset): Likewise.
10181
4fed520b
KR
101822020-03-14 Kamil Rytarowski <n54@gmx.com>
10183
10184 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
10185 nbsd_nat_target instead of inf_ptrace_target.
10186 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
10187 nbsd_nat_target.
10188
2190cf06
KR
101892020-03-14 Kamil Rytarowski <n54@gmx.com>
10190
10191 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
10192 register_t.
10193
75c56d3d
KR
101942020-03-14 Kamil Rytarowski <n54@gmx.com>
10195
10196 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
10197 it to the ptrace call.
10198 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
10199 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
10200 * arm-nbsd-nat.c (store_register): Likewise.
10201 * arm-nbsd-nat.c (store_regs): Likewise.
10202 * arm-nbsd-nat.c (store_fp_register): Likewise.
10203 * arm-nbsd-nat.c (store_fp_regs): Likewise.
10204
6018d381
KR
102052020-03-14 Kamil Rytarowski <n54@gmx.com>
10206
10207 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
10208 nbsd_nat_target instead of inf_ptrace_target.
10209 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
10210 nbsd_nat_target.
10211
013f99f0
KR
102122020-03-14 Kamil Rytarowski <n54@gmx.com>
10213
10214 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
10215 it to the ptrace call.
10216 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
10217
12753073
KR
102182020-03-14 Kamil Rytarowski <n54@gmx.com>
10219
6227b330
KR
10220 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
10221 it to the ptrace call.
10222 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
10223
102242020-03-14 Kamil Rytarowski <n54@gmx.com>
10225
10226 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
10227 gdb_byte *.
12753073
KR
10228 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
10229
d5be5fa4
KR
102302020-03-14 Kamil Rytarowski <n54@gmx.com>
10231
10232 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
10233 instead of inf_ptrace_target.
10234 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
10235 nbsd_nat_target.
10236
8110f842
KR
102372020-03-14 Kamil Rytarowski <n54@gmx.com>
10238
10239 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10240 register_t.
10241
52feded7
KR
102422020-03-14 Kamil Rytarowski <n54@gmx.com>
10243
10244 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10245 register_t.
10246
25567eee
KR
102472020-03-14 Kamil Rytarowski <n54@gmx.com>
10248
10249 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
10250 register_t.
10251
426a9c18
TT
102522020-03-13 Tom Tromey <tom@tromey.com>
10253
10254 * value.h (val_print): Don't declare.
10255 * valprint.h (val_print_array_elements)
10256 (val_print_scalar_formatted, generic_val_print): Don't declare.
10257 * valprint.c (generic_val_print_array): Take a struct value.
10258 (generic_val_print_ptr, generic_val_print_memberptr)
10259 (generic_val_print_bool, generic_val_print_int)
10260 (generic_val_print_char, generic_val_print_complex)
10261 (generic_val_print): Remove.
10262 (generic_value_print): Update.
10263 (do_val_print): Remove unused parameters. Don't call
10264 la_val_print.
10265 (val_print): Remove.
10266 (common_val_print): Update. Don't call value_check_printable.
10267 (val_print_scalar_formatted, val_print_array_elements): Remove.
10268 * rust-lang.c (rust_val_print): Remove.
10269 (rust_language_defn): Update.
10270 * p-valprint.c (pascal_val_print): Remove.
10271 (pascal_value_print_inner): Update.
10272 (pascal_object_print_val_fields, pascal_object_print_val):
10273 Remove.
10274 (pascal_object_print_static_field): Update.
10275 * p-lang.h (pascal_val_print): Don't declare.
10276 * p-lang.c (pascal_language_defn): Update.
10277 * opencl-lang.c (opencl_language_defn): Update.
10278 * objc-lang.c (objc_language_defn): Update.
10279 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
10280 * m2-lang.h (m2_val_print): Don't declare.
10281 * m2-lang.c (m2_language_defn): Update.
10282 * language.h (struct language_defn) <la_val_print>: Remove.
10283 * language.c (unk_lang_value_print_inner): Rename. Change
10284 argument types.
10285 (unknown_language_defn, auto_language_defn): Update.
10286 * go-valprint.c (go_val_print): Remove.
10287 * go-lang.h (go_val_print): Don't declare.
10288 * go-lang.c (go_language_defn): Update.
10289 * f-valprint.c (f_val_print): Remove.
10290 * f-lang.h (f_value_print): Don't declare.
10291 * f-lang.c (f_language_defn): Update.
10292 * d-valprint.c (d_val_print): Remove.
10293 * d-lang.h (d_value_print): Don't declare.
10294 * d-lang.c (d_language_defn): Update.
10295 * cp-valprint.c (cp_print_value_fields)
10296 (cp_print_value_fields_rtti, cp_print_value): Remove.
10297 (cp_print_static_field): Update.
10298 * c-valprint.c (c_val_print_array, c_val_print_ptr)
10299 (c_val_print_struct, c_val_print_union, c_val_print_int)
10300 (c_val_print_memberptr, c_val_print): Remove.
10301 * c-lang.h (c_val_print_array, cp_print_value_fields)
10302 (cp_print_value_fields_rtti): Don't declare.
10303 * c-lang.c (c_language_defn, cplus_language_defn)
10304 (asm_language_defn, minimal_language_defn): Update.
10305 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
10306 (ada_val_print_enum): Take a struct value.
10307 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
10308 (ada_val_print): Remove.
10309 (ada_value_print_1): Update.
10310 (printable_val_type): Remove.
10311 * ada-lang.h (ada_val_print): Don't declare.
10312 * ada-lang.c (ada_language_defn): Update.
10313
42331a1e
TT
103142020-03-13 Tom Tromey <tom@tromey.com>
10315
10316 * valprint.c (do_val_print): Update.
10317 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
10318 a struct value.
10319 (value_to_value_object_no_release): Declare.
10320 * python/py-value.c (value_to_value_object_no_release): New
10321 function.
10322 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
10323 struct value.
10324 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
10325 function.
10326 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
10327 a struct value.
10328 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
10329 Declare.
10330 (gdbscm_apply_val_pretty_printer): Take a struct value.
10331 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
10332 value.
10333 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
10334 value.
10335 * extension-priv.h (struct extension_language_ops)
10336 <apply_val_pretty_printer>: Take a struct value.
10337 * cp-valprint.c (cp_print_value): Create a struct value.
10338 (cp_print_value): Update.
10339
3a916a97
TT
103402020-03-13 Tom Tromey <tom@tromey.com>
10341
10342 * ada-valprint.c (print_field_values): Call common_val_print.
10343
b59eac37
TT
103442020-03-13 Tom Tromey <tom@tromey.com>
10345
10346 * ada-valprint.c (val_print_packed_array_elements): Remove
10347 bitoffset and val parameters. Call common_val_print.
10348 (ada_val_print_string): Remove offset, address, and original_value
10349 parameters.
10350 (ada_val_print_array): Update.
10351 (ada_value_print_array): New function.
10352 (ada_value_print_1): Call it.
10353
03371129
TT
103542020-03-13 Tom Tromey <tom@tromey.com>
10355
10356 * ada-valprint.c (ada_value_print): Use common_val_print.
10357
2e088f8b
TT
103582020-03-13 Tom Tromey <tom@tromey.com>
10359
10360 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
10361
39ef85a8
TT
103622020-03-13 Tom Tromey <tom@tromey.com>
10363
10364 * ada-valprint.c (ada_value_print_num): New function.
10365 (ada_value_print_1): Use it.
10366
b9fa6e07
TT
103672020-03-13 Tom Tromey <tom@tromey.com>
10368
10369 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
10370
416595d6
TT
103712020-03-13 Tom Tromey <tom@tromey.com>
10372
10373 * ada-valprint.c (ada_value_print_ptr): New function.
10374 (ada_value_print_1): Use it.
10375
5b5e15ec
TT
103762020-03-13 Tom Tromey <tom@tromey.com>
10377
10378 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
10379 call common_val_print.
10380 (ada_val_print_1): Update.
10381 (ada_value_print_1): New function.
10382 (ada_value_print_inner): Rewrite.
10383
fbf54e75
TT
103842020-03-13 Tom Tromey <tom@tromey.com>
10385
10386 * cp-valprint.c (cp_print_value_fields): Update.
10387 (cp_print_value): New function.
10388
64b653ca
TT
103892020-03-13 Tom Tromey <tom@tromey.com>
10390
10391 * m2-valprint.c (m2_value_print_inner): Use
10392 cp_print_value_fields.
10393 * cp-valprint.c (cp_print_value_fields): New function.
10394 * c-valprint.c (c_value_print_struct): New function.
10395 (c_value_print_inner): Use c_value_print_struct.
10396 * c-lang.h (cp_print_value_fields): Declare.
10397
6999f067
TT
103982020-03-13 Tom Tromey <tom@tromey.com>
10399
10400 * c-valprint.c (c_value_print_array): New function.
10401 (c_value_print_inner): Use it.
10402
ce80b8bd
TT
104032020-03-13 Tom Tromey <tom@tromey.com>
10404
10405 * c-valprint.c (c_value_print_memberptr): New function.
10406 (c_value_print_inner): Use it.
10407
2faac269
TT
104082020-03-13 Tom Tromey <tom@tromey.com>
10409
10410 * c-valprint.c (c_value_print_int): New function.
10411 (c_value_print_inner): Use it.
10412
da3e2c29
TT
104132020-03-13 Tom Tromey <tom@tromey.com>
10414
10415 * c-valprint.c (c_value_print_ptr): New function.
10416 (c_value_print_inner): Use it.
10417
50836231
TT
104182020-03-13 Tom Tromey <tom@tromey.com>
10419
10420 * c-valprint.c (c_value_print_inner): Rewrite.
10421
4f412b6e
TT
104222020-03-13 Tom Tromey <tom@tromey.com>
10423
10424 * valprint.c (generic_value_print_complex): New function.
10425 (generic_value_print): Use it.
10426
f5354008
TT
104272020-03-13 Tom Tromey <tom@tromey.com>
10428
10429 * valprint.c (generic_val_print_float): Don't call
10430 val_print_scalar_formatted.
10431 (generic_val_print, generic_value_print): Update.
10432
3eec3b05
TT
104332020-03-13 Tom Tromey <tom@tromey.com>
10434
10435 * valprint.c (generic_value_print_char): New function
10436 (generic_value_print): Use it.
10437
fdddfccb
TT
104382020-03-13 Tom Tromey <tom@tromey.com>
10439
10440 * valprint.c (generic_value_print_int): New function.
10441 (generic_value_print): Use it.
10442
6dde7521
TT
104432020-03-13 Tom Tromey <tom@tromey.com>
10444
10445 * valprint.c (generic_value_print_bool): New function.
10446 (generic_value_print): Use it.
10447
4112d2e6
TT
104482020-03-13 Tom Tromey <tom@tromey.com>
10449
10450 * valprint.c (generic_val_print_func): Simplify.
10451 (generic_val_print, generic_value_print): Update.
10452
65786af6
TT
104532020-03-13 Tom Tromey <tom@tromey.com>
10454
10455 * valprint.c (generic_val_print_flags): Remove.
10456 (generic_val_print, generic_value_print): Update.
10457 (val_print_type_code_flags): Add original_value parameter.
10458
40f3ce18
TT
104592020-03-13 Tom Tromey <tom@tromey.com>
10460
10461 * valprint.c (generic_val_print): Update.
10462 (generic_value_print): Update.
10463 * valprint.c (generic_val_print_enum): Don't call
10464 val_print_scalar_formatted.
10465
2a5b130b
TT
104662020-03-13 Tom Tromey <tom@tromey.com>
10467
10468 * valprint.c (generic_value_print): Call generic_value_print_ptr.
10469 * valprint.c (generic_value_print_ptr): New function.
10470
abc66ce9
TT
104712020-03-13 Tom Tromey <tom@tromey.com>
10472
10473 * valprint.c (generic_value_print): Rewrite.
10474
07a32858
TT
104752020-03-13 Tom Tromey <tom@tromey.com>
10476
10477 * p-valprint.c (pascal_object_print_value_fields)
10478 (pascal_object_print_value): New functions.
10479
64d64d3a
TT
104802020-03-13 Tom Tromey <tom@tromey.com>
10481
10482 * p-valprint.c (pascal_value_print_inner): Rewrite.
10483
6a95a1f5
TT
104842020-03-13 Tom Tromey <tom@tromey.com>
10485
10486 * f-valprint.c (f_value_print_innner): Rewrite.
10487
59fcdac6
TT
104882020-03-13 Tom Tromey <tom@tromey.com>
10489
10490 * m2-valprint.c (m2_print_unbounded_array): New overload.
10491 (m2_print_unbounded_array): Update.
10492 (m2_print_array_contents): Take a struct value.
10493 (m2_value_print_inner): Rewrite.
10494
d133c3e1
TT
104952020-03-13 Tom Tromey <tom@tromey.com>
10496
10497 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
10498 (d_value_print_inner): New function.
10499 * d-lang.h (d_value_print_inner): Declare.
10500 * d-lang.c (d_language_defn): Use d_value_print_inner.
10501
23b0f06b
TT
105022020-03-13 Tom Tromey <tom@tromey.com>
10503
10504 * go-valprint.c (go_value_print_inner): New function.
10505 * go-lang.h (go_value_print_inner): Declare.
10506 * go-lang.c (go_language_defn): Use go_value_print_inner.
10507
5f56f7cb
TT
105082020-03-13 Tom Tromey <tom@tromey.com>
10509
10510 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
10511 API.
10512 (rust_val_print): Rewrite.
10513 (rust_value_print_inner): New function, from rust_val_print.
10514 (rust_language_defn): Use rust_value_print_inner.
10515
26792ee0
TT
105162020-03-13 Tom Tromey <tom@tromey.com>
10517
10518 * ada-valprint.c (ada_value_print_inner): New function.
10519 * ada-lang.h (ada_value_print_inner): Declare.
10520 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
10521
24051bbe
TT
105222020-03-13 Tom Tromey <tom@tromey.com>
10523
10524 * f-valprint.c (f_value_print_innner): New function.
10525 * f-lang.h (f_value_print_innner): Declare.
10526 * f-lang.c (f_language_defn): Use f_value_print_innner.
10527
c0941be6
TT
105282020-03-13 Tom Tromey <tom@tromey.com>
10529
10530 * p-valprint.c (pascal_value_print_inner): New function.
10531 * p-lang.h (pascal_value_print_inner): Declare.
10532 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
10533
62c4663d
TT
105342020-03-13 Tom Tromey <tom@tromey.com>
10535
10536 * m2-valprint.c (m2_value_print_inner): New function.
10537 * m2-lang.h (m2_value_print_inner): Declare.
10538 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
10539
62182190
TT
105402020-03-13 Tom Tromey <tom@tromey.com>
10541
10542 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
10543 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
10544 * c-valprint.c (c_value_print_inner): New function.
10545 * c-lang.h (c_value_print_inner): Declare.
10546 * c-lang.c (c_language_defn, cplus_language_defn)
10547 (asm_language_defn, minimal_language_defn): Use
10548 c_value_print_inner.
10549
1e592a8a
TT
105502020-03-13 Tom Tromey <tom@tromey.com>
10551
10552 * p-valprint.c (pascal_object_print_value_fields): Now static.
10553 * p-lang.h (pascal_object_print_value_fields): Don't declare.
10554
7fe471e9
TT
105552020-03-13 Tom Tromey <tom@tromey.com>
10556
10557 * c-valprint.c (c_val_print_array): Simplify.
10558
d121c6ce
TT
105592020-03-13 Tom Tromey <tom@tromey.com>
10560
10561 * valprint.c (value_print_array_elements): New function.
10562 * valprint.h (value_print_array_elements): Declare.
10563
4dba70ee
TT
105642020-03-13 Tom Tromey <tom@tromey.com>
10565
10566 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
10567 * mips-tdep.c (mips_print_register): Use
10568 value_print_scalar_formatted.
10569
4f9ae810
TT
105702020-03-13 Tom Tromey <tom@tromey.com>
10571
10572 * valprint.h (value_print_scalar_formatted): Declare.
10573 * valprint.c (value_print_scalar_formatted): New function.
10574
156bfec9
TT
105752020-03-13 Tom Tromey <tom@tromey.com>
10576
10577 * valprint.h (generic_value_print): Declare.
10578 * valprint.c (generic_value_print): New function.
10579
2b4e573d
TT
105802020-03-13 Tom Tromey <tom@tromey.com>
10581
10582 * valprint.c (do_val_print): Call la_value_print_inner, if
10583 available.
10584 * rust-lang.c (rust_language_defn): Update.
10585 * p-lang.c (pascal_language_defn): Update.
10586 * opencl-lang.c (opencl_language_defn): Update.
10587 * objc-lang.c (objc_language_defn): Update.
10588 * m2-lang.c (m2_language_defn): Update.
10589 * language.h (struct language_defn) <la_value_print_inner>: New
10590 member.
10591 * language.c (unknown_language_defn, auto_language_defn): Update.
10592 * go-lang.c (go_language_defn): Update.
10593 * f-lang.c (f_language_defn): Update.
10594 * d-lang.c (d_language_defn): Update.
10595 * c-lang.c (c_language_defn, cplus_language_defn)
10596 (asm_language_defn, minimal_language_defn): Update.
10597 * ada-lang.c (ada_language_defn): Update.
10598
a1f6a07c
TT
105992020-03-13 Tom Tromey <tom@tromey.com>
10600
10601 * c-valprint.c (c_value_print): Use common_val_print.
10602
410cf315
TT
106032020-03-13 Tom Tromey <tom@tromey.com>
10604
10605 * cp-valprint.c (cp_print_static_field): Use common_val_print.
10606
72a45c93
TT
106072020-03-13 Tom Tromey <tom@tromey.com>
10608
10609 * f-valprint.c (f77_print_array_1, f_val_print): Use
10610 common_val_print.
10611
040f66bd
TT
106122020-03-13 Tom Tromey <tom@tromey.com>
10613
10614 * riscv-tdep.c (riscv_print_one_register_info): Use
10615 common_val_print.
10616
a6e05a6c
TT
106172020-03-13 Tom Tromey <tom@tromey.com>
10618
10619 * mi/mi-main.c (output_register): Use common_val_print.
10620
3444c526
TT
106212020-03-13 Tom Tromey <tom@tromey.com>
10622
10623 * infcmd.c (default_print_one_register_info): Use
10624 common_val_print.
10625
c2a44efe
TT
106262020-03-13 Tom Tromey <tom@tromey.com>
10627
10628 * valprint.h (common_val_print_checked): Declare.
10629 * valprint.c (common_val_print_checked): New function.
10630 * stack.c (print_frame_arg): Use common_val_print_checked.
10631
b0c26e99
TT
106322020-03-13 Tom Tromey <tom@tromey.com>
10633
10634 * valprint.c (do_val_print): New function, from val_print.
10635 (val_print): Use do_val_print.
10636 (common_val_print): Use do_val_print.
10637
ce3acbe9
TT
106382020-03-13 Tom Tromey <tom@tromey.com>
10639
10640 * valprint.c (value_print): Use scoped_value_mark.
10641
96c7f873
TV
106422020-03-13 Tom de Vries <tdevries@suse.de>
10643
10644 PR symtab/25646
10645 * psymtab.c (partial_symtab::partial_symtab): Don't set
10646 globals_offset and statics_offset. Push element onto
10647 current_global_psymbols and current_static_psymbols stacks.
10648 (concat): New function.
10649 (end_psymtab_common): Set globals_offset and statics_offset. Pop
10650 element from current_global_psymbols and current_static_psymbols
10651 stacks. Concat popped elements to global_psymbols and
10652 static_symbols.
10653 (add_psymbol_to_list): Use current_global_psymbols and
10654 current_static_psymbols stacks.
10655 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
10656 current_static_psymbols fields.
10657
6ba0a321
CB
106582020-03-12 Christian Biesinger <cbiesinger@google.com>
10659
10660 * corelow.c (sniff_core_bfd): Remove.
10661 (class core_target) <m_core_vec>: Remove.
10662 (core_target::core_target): Update.
10663 (core_file_fns): Remove.
10664 (deprecated_add_core_fns): Remove.
10665 (default_core_sniffer): Remove.
10666 (sniff_core_bfd): Remove.
10667 (default_check_format): Remove.
10668 (gdb_check_format): Remove.
10669 (core_target_open): Update.
10670 (core_target::get_core_register_section): Update.
10671 (get_core_registers_cb): Update.
10672 (core_target::fetch_registers): Update.
10673 * gdbcore.h (struct core_fns): Remove.
10674 (deprecated_add_core_fns): Remove.
10675 (default_core_sniffer): Remove.
10676 (default_check_format): Remove.
10677
227031b2
TT
106782020-03-12 Tom Tromey <tom@tromey.com>
10679
10680 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
10681 CORE_ADDR.
10682 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
10683
53807e9f
TT
106842020-03-12 Tom Tromey <tom@tromey.com>
10685
10686 * remote.c (remote_target::download_tracepoint)
10687 (remote_target::enable_tracepoint)
10688 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
10689 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
10690 sprintf_vma.
10691
64f25102
TT
106922020-03-12 Tom Tromey <tom@tromey.com>
10693
10694 * symfile-mem.c: Update CORE_ADDR size assert.
10695
272cd5a3
SM
106962020-03-12 Simon Marchi <simon.marchi@efficios.com>
10697
10698 * selftest.m4: Move to gdbsupport/.
10699 * acinclude.m4: Update path to selftest.m4.
10700
74cd3f9d
SM
107012020-03-12 Simon Marchi <simon.marchi@efficios.com>
10702
10703 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
10704 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
10705 gdbarch-selfselftests.c and selftest-arch.c.
10706 (SUBDIR_UNITTESTS_OBS): Rename to...
10707 (SELFTESTS_OBS): ... this.
10708 (COMMON_SFILES): Remove disasm-selftests.c and
10709 gdbarch-selftests.c.
10710 * configure.ac: Don't add selftest-arch.{c,o} to
10711 CONFIG_{SRCS,OBS}.
10712 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
10713 preprocessor conditions.
10714
db6878ac
SM
107152020-03-12 Simon Marchi <simon.marchi@efficios.com>
10716
10717 * configure.ac: Don't source bfd/development.sh.
10718 * selftest.m4: Modify comment.
10719 * configure: Re-generate.
10720
4d696a5c
SM
107212020-03-12 Simon Marchi <simon.marchi@efficios.com>
10722
10723 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
10724 not "true" or "false".
10725 * configure: Re-generate.
10726
8dd8e1c7
CB
107272020-03-12 Christian Biesinger <cbiesinger@google.com>
10728
10729 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
10730 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
10731 renamed to arm_nbsd_supply_gregset.
10732 (fetch_register): Update to call arm_nbsd_supply_gregset.
10733 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
10734 (arm_netbsd_nat_target::fetch_registers): Update.
10735 (fetch_elfcore_registers): Removed.
10736 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
10737 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
10738 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
10739 not require NetBSD system headers.
10740 (arm_nbsd_regset): New struct.
10741 (arm_nbsd_iterate_over_regset_sections): New function.
10742 (arm_netbsd_init_abi_common): Updated to call
10743 set_gdbarch_iterate_over_regset_sections.
10744 * arm-nbsd-tdep.h: New file.
10745
dd69bf7a
KB
107462020-03-11 Kevin Buettner <kevinb@redhat.com>
10747
10748 * symtab.c (find_pc_sect_line): Add check which prevents infinite
10749 recursion.
10750
a0761e34
SM
107512020-03-11 Simon Marchi <simon.marchi@efficios.com>
10752
10753 * configure: Re-generate.
10754
e7a82140
TT
107552020-03-11 Tom Tromey <tromey@adacore.com>
10756
10757 * ada-typeprint.c (print_choices): Fix comment.
10758
dcc050c8
AB
107592020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
10760
10761 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
10762 previous item in the list, when the list has no items.
10763
1c33af77
TV
107642020-03-11 Tom de Vries <tdevries@suse.de>
10765
10766 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
10767 PROP_LOCLIST handling code.
10768
8c95582d
AB
107692020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
10770
10771 * buildsym-legacy.c (record_line): Pass extra parameter to
10772 record_line.
10773 * buildsym.c (buildsym_compunit::record_line): Take an extra
10774 parameter, reduce duplication in the line table, and record the
10775 is_stmt flag in the line table.
10776 * buildsym.h (buildsym_compunit::record_line): Add extra
10777 parameter.
10778 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
10779 non-statement lines.
10780 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
10781 this to the symtab builder.
10782 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
10783 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
10784 through to dwarf_record_line_1.
10785 * infrun.c (process_event_stop_test): When stepping, don't stop at
10786 a non-statement instruction, and only refresh the step info when
10787 we land in the middle of a line's range. Also add an extra
10788 comment.
10789 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
10790 field.
10791 * record-btrace.c (btrace_find_line_range): Only record lines
10792 marked as is-statement.
10793 * stack.c (frame_show_address): Show the frame address if we are
10794 in a non-statement sal.
10795 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
10796 (maintenance_print_one_line_table): Print a header for the is_stmt
10797 column, and include is_stmt information in the output.
10798 * symtab.c (find_pc_sect_line): Find lines marked as statements in
10799 preference to non-statements.
10800 (find_pcs_for_symtab_line): Prefer is-statement entries.
10801 (find_line_common): Likewise.
10802 * symtab.h (struct linetable_entry): Add is_stmt field.
10803 (struct symtab_and_line): Likewise.
10804 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
10805 arranging the line table.
10806
e4003a34
TV
108072020-03-07 Tom de Vries <tdevries@suse.de>
10808
10809 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
10810 DIE.
10811
e8932576
TT
108122020-03-07 Tom Tromey <tom@tromey.com>
10813
10814 * valops.c (value_literal_complex): Remove obsolete comment.
10815 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
10816 comment.
10817
29734269
SM
108182020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
10819
10820 * infrun.h: Forward-declare thread_info.
10821 (set_step_info): Add thread_info parameter, add doc.
10822 * infrun.c (set_step_info): Add thread_info parameter, move doc
10823 to header.
10824 * infrun.c (process_event_stop_test): Pass thread to
10825 set_step_info call.
10826 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
10827 set_step_info.
10828 (prepare_one_step): Add thread_info parameter, pass it to
10829 set_step_frame and prepare_one_step (recursive) call.
10830 (step_1): Pass thread to prepare_one_step call.
10831 (step_command_fsm::should_stop): Pass thread to
10832 prepare_one_step.
10833 (until_next_fsm): Pass thread to set_step_frame call.
10834 (finish_command): Pass thread to set_step_info call.
10835
b7d64b29
HD
108362020-03-06 Hannes Domani <ssbssa@yahoo.de>
10837
10838 * windows-tdep.c (windows_solib_create_inferior_hook):
10839 Check if inferior is running.
10840
09f2921c
TV
108412020-03-06 Tom de Vries <tdevries@suse.de>
10842
10843 * NEWS: Fix "the the".
10844 * ctfread.c: Same.
10845
fd760e79
TV
108462020-03-06 Tom de Vries <tdevries@suse.de>
10847
10848 * psymtab.c (psymtab_to_symtab): Don't print "done.".
10849
20ea4a60
AB
108502020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10851
10852 * .dir-locals.el: Add a comment referencing the other copies of
10853 this file.
10854
0afbabf0
JB
108552020-03-05 John Baldwin <jhb@FreeBSD.org>
10856
10857 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
10858 psargs.
10859
842806cb
TBA
108602020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10861
10862 * .gitattributes: New file.
10863
be1e3d3e
TT
108642020-03-04 Tom Tromey <tom@tromey.com>
10865
10866 * symmisc.c (print_symbol_bcache_statistics)
10867 (print_objfile_statistics): Update.
10868 * symfile.c (allocate_symtab): Use intern.
10869 * psymtab.c (partial_symtab::partial_symtab): Use intern.
10870 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
10871 macro_cache>: Remove.
10872 <string_cache>: New member.
10873 (struct objfile) <intern>: New methods.
10874 * elfread.c (elf_symtab_read): Use intern.
10875 * dwarf2/read.c (fixup_go_packaging): Intern package name.
10876 (dwarf2_compute_name, dwarf2_physname)
10877 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
10878 names.
10879 (guess_partial_die_structure_name): Update.
10880 (partial_die_info::fixup): Intern name.
10881 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
10882 name.
10883 (dwarf2_name): Intern name. Update.
10884 * buildsym.c (buildsym_compunit::get_macro_table): Use
10885 string_cache.
10886
4e7625fd
TT
108872020-03-04 Tom Tromey <tom@tromey.com>
10888
10889 * jit.c (bfd_open_from_target_memory): Make "target" const.
10890 * corefile.c (gnutarget): Now const.
10891 * gdbcore.h (gnutarget): Now const.
10892
46f9f931
HD
108932020-03-04 Hannes Domani <ssbssa@yahoo.de>
10894
10895 * NEWS: Mention support for WOW64 processes.
10896 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
10897 (amd64_windows_segment_register_p): Remove static.
10898 (_initialize_amd64_windows_nat): Update.
10899 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
10900 * i386-windows-nat.c (context_offset): Update.
10901 (i386_mappings): Rename and remove static.
10902 (i386_windows_segment_register_p): Remove static.
10903 (_initialize_i386_windows_nat): Update.
10904 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
10905 (STATUS_WX86_SINGLE_STEP): New macro.
10906 (EnumProcessModulesEx): New macro.
10907 (Wow64SuspendThread): New macro.
10908 (Wow64GetThreadContext): New macro.
10909 (Wow64SetThreadContext): New macro.
10910 (Wow64GetThreadSelectorEntry): New macro.
10911 (windows_set_context_register_offsets): Add static.
10912 (windows_set_segment_register_p): Likewise.
10913 (windows_add_thread): Adapt for WOW64 processes.
10914 (windows_fetch_one_register): Likewise.
10915 (windows_nat_target::fetch_registers): Likewise.
10916 (windows_store_one_register): Likewise.
10917 (display_selector): Likewise.
10918 (display_selectors): Likewise.
10919 (handle_exception): Likewise.
10920 (windows_continue): Likewise.
10921 (windows_nat_target::resume): Likewise.
10922 (windows_add_all_dlls): Likewise.
10923 (do_initial_windows_stuff): Likewise.
10924 (windows_nat_target::attach): Likewise.
10925 (windows_get_exec_module_filename): Likewise.
10926 (windows_nat_target::create_inferior): Likewise.
10927 (windows_xfer_siginfo): Likewise.
10928 (_initialize_loadable): Initialize Wow64SuspendThread,
10929 Wow64GetThreadContext, Wow64SetThreadContext,
10930 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
10931 * windows-nat.h (windows_set_context_register_offsets):
10932 Remove declaration.
10933 (windows_set_segment_register_p): Likewise.
10934 (i386_windows_segment_register_p): Add declaration.
10935 (amd64_windows_segment_register_p): Likewise.
10936
440cf44e
LM
109372020-03-04 Luis Machado <luis.machado@linaro.org>
10938
10939 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
10940 in "info registers" for AArch64/ARM.
10941
10942 The change caused "info registers" to not print GPR's.
10943
10944 gdb/ChangeLog:
10945
10946 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
10947
10948 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10949 when reg->group is empty and reggroup is not.
10950
1009d92f
TT
109512020-03-03 Tom Tromey <tromey@adacore.com>
10952
10953 * dwarf2/frame.c (struct dwarf2_frame_cache)
10954 <checked_tailcall_bottom, entry_cfa_sp_offset,
10955 entry_cfa_sp_offset_p>: Remove members.
10956 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
10957 (dwarf2_frame_prev_register): Don't call
10958 dwarf2_tailcall_sniffer_first.
10959 (dwarf2_append_unwinders): Don't append tailcall unwinder.
10960 * frame-unwind.c (add_unwinder): New fuction.
10961 (frame_unwind_init): Use it. Add tailcall unwinder.
10962
5e5d66b6
AB
109632020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
10964 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10965
10966 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
10967 value should be printed as true.
10968
584cf46d
HD
109692020-03-03 Hannes Domani <ssbssa@yahoo.de>
10970
10971 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
10972 (windows_init_abi): Set and use windows_so_ops.
10973
7b973adc
SDJ
109742020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
10975
10976 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
10977 when verifying if dealing with a convenience variable.
10978
bb7b70ab
LM
109792020-03-03 Luis Machado <luis.machado@linaro.org>
10980
10981 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
10982
9822cb57
SM
109832020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10984
10985 * infrun.c (gdbarch_supports_displaced_stepping): New.
10986 (use_displaced_stepping): Break up conditions in smaller pieces.
10987 Use gdbarch_supports_displaced_stepping.
10988 (displaced_step_prepare_throw): Use
10989 gdbarch_supports_displaced_stepping.
10990
63e163f2
AB
109912020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
10992
10993 * NEWS: Mention new behaviour of the history filename.
10994 * top.c (write_history_p): Add comment.
10995 (show_write_history_p): Add header comment, give a different
10996 message when history writing is on, but the history filename is
10997 empty.
10998 (history_filename): Add comment.
10999 (history_filename_empty): New function.
11000 (show_history_filename): Add header comment, give a different
11001 message when the filename is empty.
11002 (init_history): Compare history_filename against nullptr, and only
11003 read history if the filename is not empty.
11004 (set_history_filename): Add header comment, and only make
11005 non-empty filenames absolute.
11006 (init_main): Make the filename argument to 'set history filename'
11007 optional.
11008
81b86b97
CB
110092020-03-02 Christian Biesinger <cbiesinger@google.com>
11010
11011 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
11012 (arm_supply_vfpregset): ...this, and update to use VFP registers.
11013 (fetch_fp_register): Update.
11014 (fetch_fp_regs): Update.
11015 (store_fp_register): Update.
11016 (store_fp_regs): Update.
11017 (arm_netbsd_nat_target::read_description): New function.
11018 (fetch_elfcore_registers): Update.
11019
24ed6739
AB
110202020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
11021
11022 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
11023 general_thread if the stop reply is missing a thread-id.
11024 (remote_target::process_stop_reply): Use the first non-exited
11025 thread if the target didn't pass a thread-id.
11026 * infrun.c (do_target_wait): Move call to
11027 switch_to_inferior_no_thread to ....
11028 (do_target_wait_1): ... here.
11029
a84bb2a0
JT
110302020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
11031
11032 * debuginfod-support.c: Include defs.h first.
11033
658dadf0
TV
110342020-02-28 Tom de Vries <tdevries@suse.de>
11035
11036 * symfile.c (set_initial_language): Use default language for lookup.
11037
4ebe4877
SM
110382020-02-28 Simon Marchi <simon.marchi@efficios.com>
11039
11040 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
11041 reader variable, pass `this` to read_cutu_die_from_dwo.
11042
e5da1139
AM
110432020-02-27 Aaron Merey <amerey@redhat.com>
11044
11045 * source.c (open_source_file): Check for nullptr when computing
11046 srcpath.
11047
317f7127
TT
110482020-02-27 Tom Tromey <tromey@adacore.com>
11049
11050 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
11051 member.
11052 (dwarf2_add_field): Don't update nfields.
11053 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
11054
3104d9ee
AB
110552020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11056
11057 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
11058 abs.
11059
b83470bf
TT
110602020-02-26 Tom Tromey <tom@tromey.com>
11061
11062 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
11063 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
11064 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
11065 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
11066 per_cu_data.
11067
edfe0a0c
TT
110682020-02-26 Tom Tromey <tom@tromey.com>
11069
11070 * dwarf2/index-write.c (psym_index_map): Change type.
11071 (add_address_entry_worker, write_one_signatured_type)
11072 (recursively_count_psymbols, recursively_write_psymbols)
11073 (class debug_names, psyms_seen_size, write_gdbindex)
11074 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
11075
0d79cdc4
AM
110762020-02-26 Aaron Merey <amerey@redhat.com>
11077
11078 * Makefile.in: Handle optional debuginfod support.
11079 * NEWS: Update.
11080 * README: Add --with-debuginfod summary.
11081 * config.in: Regenerate.
11082 * configure: Regenerate.
11083 * configure.ac: Handle optional debuginfod support.
11084 * debuginfod-support.c: debuginfod helper functions.
11085 * debuginfod-support.h: Ditto.
11086 * doc/gdb.texinfo: Add --with-debuginfod to configure options
11087 summary.
11088 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
11089 when a dwz file cannot be found.
11090 * elfread.c (elf_symfile_read): Query debuginfod servers when a
11091 debuginfo file cannot be found.
11092 * source.c (open_source_file): Query debuginfod servers when a
11093 source file cannot be found.
11094 * top.c (print_gdb_configuration): Include
11095 --{with,without}-debuginfod in the output.
11096
b65ce565
JG
110972020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
11098
11099 * thread.c (thr_try_catch_cmd): Print thread name.
11100
d4c9a4f8
SM
111012020-02-26 Simon Marchi <simon.marchi@efficios.com>
11102
11103 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
11104 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
11105 dwarf2_fetch_die_type_sect_off): Move to...
11106 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
11107 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
11108 dwarf2_fetch_die_type_sect_off): ... here.
11109 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
11110 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
11111 dwarf2_fetch_die_type_sect_off): Move doc to header file.
11112
0dce4280
TV
111132020-02-26 Tom de Vries <tdevries@suse.de>
11114
11115 PR gdb/25603
11116 * symfile.c (set_initial_language): Exit-early if
11117 language_mode == language_mode_manual.
11118
450a1bfc
SM
111192020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
11120
11121 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
11122 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
11123 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
11124
9e80cfa1
AB
111252020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
11126
11127 * gdbtypes.c (create_array_type_with_stride): Handle negative
11128 array strides.
11129 * valarith.c (value_subscripted_rvalue): Likewise.
11130
09624f1f
LM
111312020-02-25 Luis Machado <luis.machado@linaro.org>
11132
11133 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
11134
8cb5117c
SM
111352020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
11136
11137 * loc.h (dwarf2_get_die_type): Move to...
11138 * read.h (dwarf2_get_die_type): ... here.
11139 * read.c (dwarf2_get_die_type): Move doc to header.
11140
c325c44e
JB
111412020-02-25 Joel Brobecker <brobecker@adacore.com>
11142
11143 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
11144 'gnulib/Makefile.in' to the list.
11145
4ac93832
TT
111462020-02-24 Tom Tromey <tom@tromey.com>
11147
11148 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
11149 Remove.
11150 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
11151 XOBNEWVEC.
11152
197400e8
TT
111532020-02-24 Tom Tromey <tom@tromey.com>
11154
11155 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
11156 New method.
11157 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
11158 (dw2_do_instantiate_symtab, dw2_get_file_names)
11159 (build_type_psymtab_dependencies, load_full_type_unit): Update.
11160
76935768
TT
111612020-02-24 Tom Tromey <tom@tromey.com>
11162
11163 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
11164 make_scoped_restore.
11165 (dwarf2_psymtab::read_symtab): Don't clear
11166 reading_partial_symbols.
11167
a88ef40d
TV
111682020-02-24 Tom de Vries <tdevries@suse.de>
11169
11170 PR gdb/25592
11171 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
11172
c9af6521
TV
111732020-02-24 Tom de Vries <tdevries@suse.de>
11174
11175 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
11176 commands layout next/prev/regs.
11177
5707a07a
TT
111782020-02-22 Tom Tromey <tom@tromey.com>
11179
11180 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
11181 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
11182
3b0fb49e
TT
111832020-02-22 Tom Tromey <tom@tromey.com>
11184
11185 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
11186
283be8bf
TT
111872020-02-22 Tom Tromey <tom@tromey.com>
11188
11189 * tui/tui-win.c (_initialize_tui_win): Add usage text.
11190 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
11191 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
11192 * tui/tui.c (_initialize_tui): Add usage text.
11193
ca793b96
TT
111942020-02-22 Tom Tromey <tom@tromey.com>
11195
11196 * tui/tui-win.c (tui_set_focus_command)
11197 (tui_set_win_height_command): Use error_no_arg.
11198 (_initialize_tui_win): Update help text.
11199 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
11200
432b5c40
TT
112012020-02-22 Tom Tromey <tom@tromey.com>
11202
11203 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
11204 * tui/tui-disasm.h (struct tui_disasm_window)
11205 <display_start_addr>: Declare.
11206 * tui/tui-source.h (struct tui_source_window)
11207 <display_start_addr>: Declare.
11208 * tui/tui-winsource.h (struct tui_source_window_base)
11209 <show_source_line, display_start_addr>: New methods.
11210 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
11211 Rename and move to protected section.
11212 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
11213 (tui_source_window_base::do_erase_source_content): Update.
11214 (tui_source_window_base::show_source_line): Now a method.
11215 (tui_source_window_base::show_source_content)
11216 (tui_source_window_base::tui_source_window_base)
11217 (tui_source_window_base::rerender)
11218 (tui_source_window_base::refill)
11219 (tui_source_window_base::do_scroll_horizontal)
11220 (tui_source_window_base::set_is_exec_point_at)
11221 (tui_source_window_base::update_breakpoint_info)
11222 (tui_source_window_base::update_exec_info): Update.
11223 * tui/tui-source.c (tui_source_window::set_contents)
11224 (tui_source_window::showing_source_p)
11225 (tui_source_window::do_scroll_vertical)
11226 (tui_source_window::location_matches_p)
11227 (tui_source_window::line_is_displayed): Update.
11228 (tui_source_window::display_start_addr): New method.
11229 * tui/tui-disasm.c (tui_disasm_window::set_contents)
11230 (tui_disasm_window::do_scroll_vertical)
11231 (tui_disasm_window::location_matches_p): Update.
11232 (tui_disasm_window::display_start_addr): New method.
11233
01b1af32
TT
112342020-02-22 Tom Tromey <tom@tromey.com>
11235
11236 * NEWS: Add entry for gdb.register_window_type.
11237 * tui/tui-layout.h (window_factory): New typedef.
11238 (tui_register_window): Declare.
11239 * tui/tui-layout.c (saved_tui_windows): New global.
11240 (tui_apply_current_layout): Use it.
11241 (tui_register_window): New function.
11242 * python/python.c (do_start_initialization): Call
11243 gdbpy_initialize_tui.
11244 (python_GdbMethods): Add "register_window_type" function.
11245 * python/python-internal.h (gdbpy_register_tui_window)
11246 (gdbpy_initialize_tui): Declare.
11247 * python/py-tui.c: New file.
11248 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
11249
fc96d20b
TT
112502020-02-22 Tom Tromey <tom@tromey.com>
11251
11252 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
11253
935c78c0
TT
112542020-02-22 Tom Tromey <tom@tromey.com>
11255
11256 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
11257 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
11258 * tui/tui-data.c (tui_set_win_with_focus): Remove.
11259 (tui_set_win_focus_to): Move from tui-win.c.
11260
0240c8f1
TT
112612020-02-22 Tom Tromey <tom@tromey.com>
11262
11263 * tui/tui-layout.c (make_standard_window, get_locator_window): New
11264 functions.
11265 (known_window_types): New global.
11266 (tui_get_window_by_name): Reimplement.
11267 (initialize_known_windows): New function.
11268 (validate_window_name): Rewrite.
11269 (_initialize_tui_layout): Call initialize_known_windows.
11270
fdb01f0c
TT
112712020-02-22 Tom Tromey <tom@tromey.com>
11272
11273 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
11274 Remove constants.
11275 * tui/tui-winsource.h (struct tui_source_window_base)
11276 <tui_source_window_base>: Remove parameter.
11277 * tui/tui-winsource.c
11278 (tui_source_window_base::tui_source_window_base): Remove
11279 parameter.
11280 (tui_source_window_base::refill): Update.
11281 * tui/tui-stack.h (struct tui_locator_window)
11282 <tui_locator_window>: Update.
11283 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
11284 Default the constructor.
11285 * tui/tui-regs.h (struct tui_data_item_window)
11286 <tui_data_item_window>: Default the constructor.
11287 (struct tui_data_window) <tui_data_window>: Likewise.
11288 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
11289 Default the constructor.
11290 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
11291 Default the constructor.
11292 <type>: Remove.
11293 (struct tui_win_info) <tui_win_info>: Default the constructor.
11294 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
11295 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
11296 Default the constructor.
11297
865a5aec
TT
112982020-02-22 Tom Tromey <tom@tromey.com>
11299
11300 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
11301 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
11302 * tui/tui-win.c (tui_resize_all): Don't call
11303 tui_delete_invisible_windows.
11304 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
11305 done.
11306 (tui_set_layout): Update.
11307 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
11308 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
11309 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
11310
e098d18c
TT
113112020-02-22 Tom Tromey <tom@tromey.com>
11312
11313 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
11314 correctly.
11315
eb9c8874
TT
113162020-02-22 Tom Tromey <tom@tromey.com>
11317
11318 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
11319
7eed1a8e
TT
113202020-02-22 Tom Tromey <tom@tromey.com>
11321
11322 * tui/tui-winsource.h (struct tui_source_window_iterator)
11323 <inner_iterator>: New etytypedef.
11324 <tui_source_window_iterator>: Take "end" parameter.
11325 <tui_source_window_iterator>: Take iterator.
11326 <operator*, advance>: Update.
11327 <m_iter>: Change type.
11328 <m_end>: New field.
11329 (struct tui_source_windows) <begin, end>: Update.
11330 * tui/tui-layout.c (tui_windows): New global.
11331 (tui_apply_current_layout): Clear tui_windows.
11332 (tui_layout_window::apply): Update tui_windows.
11333 * tui/tui-data.h (tui_windows): Declare.
11334 (all_tui_windows): Now inline function.
11335 (class tui_window_iterator, struct all_tui_windows): Remove.
11336
7c043ba6
TT
113372020-02-22 Tom Tromey <tom@tromey.com>
11338
11339 PR tui/17850:
11340 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
11341 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
11342 "height" argument.
11343 (class tui_layout_window) <get_sizes>: Likewise.
11344 (class tui_layout_split) <tui_layout_split>: Add "vertical"
11345 argument.
11346 <get_sizes>: Add "height" argument.
11347 <m_vertical>: New field.
11348 * tui/tui-layout.c (tui_layout_split::clone): Update.
11349 (tui_layout_split::get_sizes): Add "height" argument.
11350 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
11351 (tui_new_layout_command): Parse "-horizontal".
11352 (_initialize_tui_layout): Update help string.
11353 (tui_layout_split::specification): Add "-horizontal" when needed.
11354 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
11355 argument.
11356 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
11357 New methods.
11358
6bc56648
TT
113592020-02-22 Tom Tromey <tom@tromey.com>
11360
11361 * tui/tui-layout.h (enum tui_adjust_result): New.
11362 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
11363 (class tui_layout_window) <adjust_size>: Return
11364 tui_adjust_result. Rewrite.
11365 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
11366 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
11367
c22fef7e
TT
113682020-02-22 Tom Tromey <tom@tromey.com>
11369
11370 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
11371 parameter and return types.
11372 (class tui_layout_base) <specification>: Add "depth".
11373 (class tui_layout_window) <specification>: Add "depth".
11374 (class tui_layout_split) <specification>: Add "depth".
11375 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
11376 and return types.
11377 (tui_new_layout_command): Parse sub-layouts.
11378 (_initialize_tui_layout): Update help string.
11379 (tui_layout_window::specification): Add "depth".
11380 (add_layout_command): Update.
11381
ee325b61
TT
113822020-02-22 Tom Tromey <tom@tromey.com>
11383
11384 * NEWS: Add "tui new-layout" item.
11385 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
11386 Add new-layout command to help text.
11387 (validate_window_name): New function.
11388 (tui_new_layout_command): New function.
11389 (_initialize_tui_layout): Register "new-layout".
11390 (tui_layout_window::specification): New method.
11391 (tui_layout_window::specification): New method.
11392 * tui/tui-layout.h (class tui_layout_base) <specification>: New
11393 method.
11394 (class tui_layout_window) <specification>: New method.
11395 (class tui_layout_split) <specification>: New method.
11396
416eb92d
TT
113972020-02-22 Tom Tromey <tom@tromey.com>
11398
11399 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
11400 * tui/tui-win.c (window_name_completer): Update comment.
11401 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
11402 Declare method.
11403 (class tui_layout_window) <replace_window>: Likewise.
11404 (class tui_layout_split) <replace_window>: Likewise.
11405 (tui_set_layout): Don't declare.
11406 (tui_set_initial_layout): Declare function.
11407 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
11408 (asm_regs_layout): New globals.
11409 (tui_current_layout, show_layout): Remove.
11410 (tui_set_layout, tui_add_win_to_layout): Rewrite.
11411 (find_layout, tui_apply_layout): New function.
11412 (layout_completer): Remove.
11413 (tui_next_layout): Reimplement.
11414 (tui_next_layout_command): New function.
11415 (tui_set_initial_layout, tui_prev_layout_command): New functions.
11416 (tui_regs_layout): Reimplement.
11417 (tui_regs_layout_command): New function.
11418 (extract_display_start_addr): Rewrite.
11419 (next_layout, prev_layout): Remove.
11420 (tui_layout_window::replace_window): New method.
11421 (tui_layout_split::replace_window): New method.
11422 (destroy_layout): New function.
11423 (layout_list): New global.
11424 (add_layout_command): New function.
11425 (initialize_layouts): Update.
11426 (tui_layout_command): New function.
11427 (_initialize_tui_layout): Install "layout" commands.
11428 * tui/tui-data.h (enum tui_layout_type): Remove.
11429 (tui_current_layout): Don't declare.
11430
0dbc2fc7
TT
114312020-02-22 Tom Tromey <tom@tromey.com>
11432
11433 * tui/tui-regs.c (tui_reg_layout): Remove.
11434 (tui_reg_command): Use tui_regs_layout.
11435 * tui/tui-layout.h (tui_reg_command): Declare.
11436 * tui/tui-layout.c (tui_reg_command): New function.
11437
5afe342e
TT
114382020-02-22 Tom Tromey <tom@tromey.com>
11439
11440 * tui/tui.c (tui_rl_delete_other_windows): Call
11441 tui_remove_some_windows.
11442 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
11443 Declare method.
11444 (class tui_layout_window) <remove_windows>: New method.
11445 (class tui_layout_split) <remove_windows>: Declare.
11446 (tui_remove_some_windows): Declare.
11447 * tui/tui-layout.c (tui_remove_some_windows): New function.
11448 (tui_layout_split::remove_windows): New method.
11449
427326a8
TT
114502020-02-22 Tom Tromey <tom@tromey.com>
11451
11452 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
11453 * tui/tui-layout.h (tui_next_layout): Declare.
11454 * tui/tui-layout.c (tui_next_layout): New function.
11455
3fe12b6d
TT
114562020-02-22 Tom Tromey <tom@tromey.com>
11457
11458 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
11459 correct coordinates.
11460
59b8b5d2
TT
114612020-02-22 Tom Tromey <tom@tromey.com>
11462
11463 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
11464 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
11465 DATA_WIN case.
11466
2a3d458b
TT
114672020-02-22 Tom Tromey <tom@tromey.com>
11468
11469 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
11470 TUI_DISASM_WIN, not tui_win_list.
11471
3f0cbb04
TT
114722020-02-22 Tom Tromey <tom@tromey.com>
11473
11474 * valprint.c (generic_val_print_enum_1)
11475 (val_print_type_code_flags): Style member names.
11476 * rust-lang.c (val_print_struct, rust_print_enum)
11477 (rust_print_struct_def, rust_internal_print_type): Style member
11478 names.
11479 * p-valprint.c (pascal_object_print_value_fields): Style member
11480 names. Only call fprintf_symbol_filtered for static members.
11481 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
11482 * f-valprint.c (f_val_print): Style member names.
11483 * f-typeprint.c (f_type_print_base): Style member names.
11484 * cp-valprint.c (cp_print_value_fields): Style member names. Only
11485 call fprintf_symbol_filtered for static members.
11486 (cp_print_class_member): Style member names.
11487 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
11488 member names.
11489 * ada-valprint.c (ada_print_scalar): Style enum names.
11490 (ada_val_print_enum): Likewise.
11491 * ada-typeprint.c (print_enum_type): Style enum names.
11492
d4d947ae
TT
114932020-02-21 Tom Tromey <tom@tromey.com>
11494
11495 * psympriv.h (struct partial_symtab): Update comment.
11496
e94e944b
TT
114972020-02-21 Tom Tromey <tromey@adacore.com>
11498
11499 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
11500 type is CORE_ADDR.
11501
1eb73179
TV
115022020-02-21 Tom de Vries <tdevries@suse.de>
11503
11504 PR gdb/25534
11505 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
11506 if dependencies[i]->user != NULL.
11507
4f180d53
AT
115082020-02-21 Ali Tamur <tamur@google.com>
11509
11510 * dwarf2/read.c (dwarf2_name): Add null check.
11511
22b6cd70
TT
115122020-02-20 Tom Tromey <tom@tromey.com>
11513
11514 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
11515 ">=", in binary search.
11516 (dwarf2_find_containing_comp_unit): New overload.
11517 (run_test): New self-test.
11518 (_initialize_dwarf2_read): Register new test.
11519
bd0cf5a6
NC
115202020-02-20 Nelson Chu <nelson.chu@sifive.com>
11521
11522 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
11523 * riscv-tdep.h: Likewise.
11524 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
11525 rv32-only CSR.
11526 * features/riscv/64bit-csr.xml: Regenerated.
11527
3f702acd
SDJ
115282020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
11529 Tom Tromey <tom@tromey.com>
11530
11531 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
11532 of 'fputc_unfiltered'.
11533 (putchar_unfiltered): Call 'fputc_unfiltered'.
11534 (fputc_unfiltered): Call 'fputs_unfiltered'.
11535
d13c7322
AB
115362020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
11537
11538 * config.in: Regenerate.
11539 * configure: Regenerate.
11540 * configure.ac: Add --with-python-libdir option.
11541 * main.c: Use WITH_PYTHON_LIBDIR.
11542
869d8950
TT
115432020-02-19 Tom Tromey <tom@tromey.com>
11544
11545 * symtab.c (general_symbol_info::compute_and_set_names): Use
11546 obstack_strndup. Simplify call to symbol_set_demangled_name.
11547
298e9637
SM
115482020-02-19 Simon Marchi <simon.marchi@efficios.com>
11549
11550 * dwarf2/read.c (allocate_signatured_type_table,
11551 allocate_dwo_unit_table, allocate_type_unit_groups_table,
11552 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
11553 Remove objfile parameter, update all callers.
11554
08410482
DE
115552020-02-19 Doug Evans <dje@google.com>
11556
11557 PR rust/25535
11558 * rust-lang.c (rust_print_enum): Apply embedded_offset to
11559 rust_enum_variant calculation.
11560
dfdeeca1
TT
115612020-02-19 Tom Tromey <tromey@adacore.com>
11562
11563 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
11564
2ef5453b
TT
115652020-02-19 Tom Tromey <tromey@adacore.com>
11566
11567 * ada-lang.c (cache_symbol): Use obstack_strdup.
11568
9f1528a1
AB
115692020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
11570
11571 * configure: Regenerate.
11572
d3c22fa8
TT
115732020-02-19 Tom Tromey <tromey@adacore.com>
11574
11575 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
11576 NULL check.
11577
bf84f706
MR
115782020-02-19 Maciej W. Rozycki <macro@wdc.com>
11579
11580 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
11581
d1c9b20f
AB
115822020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
11583
11584 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
11585 if GDBSERVER is not defined.
11586 (riscv_tdesc_cache): Likewise, also store const target_desc.
11587 (STATIC_IN_GDB): Define.
11588 (riscv_create_target_description): Update declaration with
11589 STATIC_IN_GDB.
11590 (riscv_lookup_target_description): New function, only define if
11591 GDBSERVER is not defined.
11592 * arch/riscv.h (riscv_create_target_description): Declare only
11593 when GDBSERVER is defined.
11594 (riscv_lookup_target_description): New declaration when GDBSERVER
11595 is not defined.
11596 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
11597 (riscv_linux_read_features): ...this, and return
11598 riscv_gdbarch_features instead of target_desc.
11599 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
11600 (riscv_linux_read_description): Rename to...
11601 (riscv_linux_read_features): ...this.
11602 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
11603 Update to use riscv_gdbarch_features and
11604 riscv_lookup_target_description.
11605 * riscv-tdep.c (riscv_find_default_target_description): Use
11606 riscv_lookup_target_description instead of
11607 riscv_create_target_description.
11608
373d7ac0
SM
116092020-02-18 Simon Marchi <simon.marchi@efficios.com>
11610
11611 * valprint.c (generic_val_print_enum_1): When printing a flag
11612 enum with value 0 and there is no enumerator with value 0, print
11613 just "0" instead of "(unknown: 0x0)".
11614
b29a2df0
SM
116152020-02-18 Simon Marchi <simon.marchi@efficios.com>
11616
11617 * valprint.c (generic_val_print_enum_1): Print unknown part of
11618 flag enum in hex.
11619
6740f0cc
SM
116202020-02-18 Simon Marchi <simon.marchi@efficios.com>
11621
11622 * dwarf2/read.c (update_enumeration_type_from_children): Allow
11623 flag enums to contain duplicate enumerators.
11624 * valprint.c (generic_val_print_enum_1): Update comment.
11625
edd45eb0
SM
116262020-02-18 Simon Marchi <simon.marchi@efficios.com>
11627
11628 * dwarf2/read.c: Include "count-one-bits.h".
11629 (update_enumeration_type_from_children): If an enumerator has
11630 multiple bits set, don't treat the enumeration as a "flag enum".
11631 * valprint.c (generic_val_print_enum_1): Assert that enumerators
11632 of flag enums have 0 or 1 bit set.
11633
6d0cf446
BE
116342020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
11635
11636 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
11637 conversion.
11638 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11639 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
11640 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11641 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
11642 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11643
7001c1b7
SM
116442020-02-18 Simon Marchi <simon.marchi@efficios.com>
11645
11646 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
11647
fdb61c6c
SM
116482020-02-14 Simon Marchi <simon.marchi@efficios.com>
11649
11650 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
11651 displaced_step_closure_up.
11652 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
11653 (struct displaced_step_closure_up):
11654 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11655 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
11656 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
11657 Likewise.
11658 * gdbarch.sh (displaced_step_copy_insn): Likewise.
11659 * gdbarch.c, gdbarch.h: Re-generate.
11660 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
11661 displaced_step_closure_up.
11662 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11663 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
11664 * infrun.h (displaced_step_closure_up): New type alias.
11665 (struct displaced_step_inferior_state) <step_closure>: Change
11666 type to displaced_step_closure_up.
11667 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
11668 displaced_step_closure_up.
11669 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11670
a4a38eb4
TT
116712020-02-14 Tom Tromey <tom@tromey.com>
11672
11673 * minidebug.c (gnu_debug_key): New global.
11674 (find_separate_debug_file_in_section): Use it.
11675
e8217e61
SM
116762020-02-14 Simon Marchi <simon.marchi@efficios.com>
11677
11678 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
11679 std::unique_ptr.
11680 * gdbarch.c: Re-generate.
11681 * gdbarch.h: Re-generate.
11682 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
11683 change.
11684 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
11685 type to std::unique_ptr.
11686 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
11687 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11688 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
11689 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
11690 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
11691 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11692 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
11693 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
11694 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11695
d8d83535
SM
116962020-02-14 Simon Marchi <simon.marchi@efficios.com>
11697
11698 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
11699 std::unique_ptr.
11700 (displaced_step_clear): Rename to...
11701 (displaced_step_reset): ... this. Just call displaced->reset ().
11702 (displaced_step_clear_cleanup): Rename to...
11703 (displaced_step_reset_cleanup): ... this.
11704 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
11705 (displaced_step_fixup): Likewise.
11706 (resume_1): Likewise.
11707 (handle_inferior_event): Restore child's memory before calling
11708 displaced_step_fixup on the parent.
11709 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
11710 to std::unique_ptr.
11711 <step_closure>: Change type to std::unique_ptr.
11712
5f661e03
SM
117132020-02-14 Simon Marchi <simon.marchi@efficios.com>
11714
11715 * arm-tdep.c: Include count-one-bits.h.
11716 (cleanup_block_store_pc): Use count_one_bits.
11717 (cleanup_block_load_pc): Use count_one_bits.
11718 (arm_copy_block_xfer): Use count_one_bits.
11719 (thumb2_copy_block_xfer): Use count_one_bits.
11720 (thumb_copy_pop_pc_16bit): Use count_one_bits.
11721 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
11722 (thumb_get_next_pcs_raw): Use count_one_bits.
11723 (arm_get_next_pcs_raw): Use count_one_bits_l.
11724 * arch/arm.c (bitcount): Remove.
11725 * arch/arm.h (bitcount): Remove.
11726
8084e579
TT
117272020-02-14 Tom Tromey <tromey@adacore.com>
11728
11729 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
11730 Update.
11731 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
11732 * dwarf2/loc.c (call_site_find_chain_1): Return
11733 unique_xmalloc_ptr.
11734 (call_site_find_chain): Likewise.
11735
258bf0ee
RB
117362020-02-14 Richard Biener <rguenther@suse.de>
11737
11738 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
11739 on expression with division operators.
11740
f98a8458
AKS
117412020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11742
11743 * MAINTAINERS (Write After Approval): Adding myself.
11744
d1437c0e
TT
117452020-02-12 Tom Tromey <tom@tromey.com>
11746
11747 * event-loop.c (event_data, gdb_event, event_handler_func):
11748 Remove.
11749
3d4560f7
TT
117502020-02-12 Tom Tromey <tom@tromey.com>
11751
11752 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
11753 (dwarf2_frame_objfile_data): Add comment.
11754 (find_comp_unit, set_comp_unit): New functions.
11755 (dwarf2_frame_find_fde): Use find_comp_unit.
11756 (dwarf2_build_frame_info): Use set_comp_unit.
11757
21982304
TT
117582020-02-12 Tom Tromey <tom@tromey.com>
11759
11760 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
11761 (comp_unit): Don't initialize objfile.
11762 (execute_cfa_program): Add text_offset parameter.
11763 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
11764 (dwarf2_frame_cache): Update.
11765 (dwarf2_build_frame_info): Don't set "objfile" member.
11766
4debb237
TT
117672020-02-12 Tom Tromey <tom@tromey.com>
11768
11769 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
11770 (decode_frame_entry): Likewise.
11771 (dwarf2_build_frame_info): Update.
11772
0d404d44
TT
117732020-02-12 Tom Tromey <tom@tromey.com>
11774
11775 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
11776 (decode_frame_entry_1): Use the comp_unit obstack.
11777
a7a3ae5c
TT
117782020-02-12 Tom Tromey <tom@tromey.com>
11779
11780 * dwarf2/frame.c (struct comp_unit): Add initializers and
11781 constructor.
11782 (dwarf2_frame_objfile_data): Store a comp_unit.
11783 (dwarf2_frame_find_fde): Update.
11784 (dwarf2_build_frame_info): Use "new".
11785
a9d65418
TT
117862020-02-12 Tom Tromey <tom@tromey.com>
11787
11788 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
11789 (dwarf2_fde_table): Typedef for std::vector.
11790 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
11791 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
11792 (decode_frame_entry): Update.
11793 (dwarf2_build_frame_info): Use "new".
11794
7559c217
CB
117952020-02-12 Christian Biesinger <cbiesinger@google.com>
11796
11797 * arm-tdep.c (arm_gdbarch_init): Update.
11798 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
11799 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
11800 have_neon, is_m>: Change to bool.
11801
aeefc73c
CB
118022020-02-12 Christian Biesinger <cbiesinger@google.com>
11803
11804 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
11805
d27b8e5f
TT
118062020-02-12 Tom Tromey <tom@tromey.com>
11807
11808 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
11809
cd5900f3
HD
118102020-02-12 Hannes Domani <ssbssa@yahoo.de>
11811
11812 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
11813 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
11814
f056b22b
TT
118152020-02-11 Tom Tromey <tom@tromey.com>
11816
11817 * psymtab.h: Update comment.
11818
f92ff6b5
TT
118192020-02-11 Tom Tromey <tom@tromey.com>
11820
11821 * gdb_obstack.h (struct auto_obstack): Use
11822 DISABLE_COPY_AND_ASSIGN.
11823
3fd6912b
TT
118242020-02-11 Tom Tromey <tom@tromey.com>
11825
11826 * dwarf2/frame.h (struct objfile): Don't forward declare.
11827
69ed9b74
CB
118282020-02-11 Christian Biesinger <cbiesinger@google.com>
11829
11830 * cris-tdep.c (cris_supply_gregset): Change signature to match
11831 what struct regset expects.
11832 (cris_regset): New struct.
11833 (fetch_core_registers): Remove.
11834 (cris_iterate_over_regset_sections): New function.
11835 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
11836 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
11837
bda874f6
CB
118382020-02-11 Christian Biesinger <cbiesinger@google.com>
11839
11840 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
11841 registers.
11842
754e1564
CB
118432020-02-11 Christian Biesinger <cbiesinger@google.com>
11844
11845 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
11846
8ddd8e0e
SM
118472020-02-11 Simon Marchi <simon.marchi@efficios.com>
11848
11849 * configure: Re-generate.
11850
898e7f60
SM
118512020-02-11 Simon Marchi <simon.marchi@efficios.com>
11852
11853 * configure: Re-generate.
11854
58df732b
SM
118552020-02-11 Simon Marchi <simon.marchi@efficios.com>
11856
11857 * acinclude: Update warning.m4 path.
11858 * warning.m4: Move to gdbsupport.
11859
da5bd37e
TT
118602020-02-11 Tom Tromey <tromey@adacore.com>
11861
11862 * remote.c (remote_console_output): Update.
11863 * printcmd.c (printf_command): Update.
11864 * event-loop.c (gdb_wait_for_event): Update.
11865 * linux-nat.c (sigchld_handler): Update.
11866 * remote-sim.c (gdb_os_write_stdout): Update.
11867 (gdb_os_flush_stdout): Update.
11868 (gdb_os_flush_stderr): Update.
11869 (gdb_os_write_stderr): Update.
11870 * exceptions.c (print_exception): Update.
11871 * remote-fileio.c (remote_fileio_func_read): Update.
11872 (remote_fileio_func_write): Update.
11873 * tui/tui.c (tui_enable): Update.
11874 * tui/tui-interp.c (tui_interp::init): Update.
11875 * utils.c (init_page_info): Update.
11876 (putchar_unfiltered, fputc_unfiltered): Update.
11877 (gdb_flush): Update.
11878 (emit_style_escape): Update.
11879 (flush_wrap_buffer, fputs_maybe_filtered): Update.
11880 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
11881 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
11882 (stderr_file::write): Update.
11883 (stderr_file::puts): Update.
11884 * ui-file.h (ui_file_isatty, ui_file_write)
11885 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
11886 (ui_file_puts): Don't declare.
11887
85f0dd3c
TV
118882020-02-10 Tom de Vries <tdevries@suse.de>
11889
11890 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
11891 sentinel to char *.
11892
2e927613
TV
118932020-02-09 Tom de Vries <tdevries@suse.de>
11894
11895 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
11896 filename if it matches "<artificial>".
11897
6bafc845
HD
118982020-02-09 Hannes Domani <ssbssa@yahoo.de>
11899
11900 * windows-tdep.c (struct enum_value_name): New struct.
11901 (create_enum): New function.
11902 (windows_get_siginfo_type): Create and use enum types.
11903
7928d571
HD
119042020-02-09 Hannes Domani <ssbssa@yahoo.de>
11905
11906 * NEWS: Mention $_siginfo support for Windows.
11907 * windows-nat.c (handle_exception): Set siginfo_er.
11908 (windows_nat_target::mourn_inferior): Reset siginfo_er.
11909 (windows_xfer_siginfo): New function.
11910 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
11911 * windows-tdep.c (struct windows_gdbarch_data): New struct.
11912 (init_windows_gdbarch_data): New function.
11913 (get_windows_gdbarch_data): New function.
11914 (windows_get_siginfo_type): New function.
11915 (windows_init_abi): Register windows_get_siginfo_type.
11916 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
11917
6751ebae
TT
119182020-02-08 Tom Tromey <tom@tromey.com>
11919
11920 * dwarf2/read.c (class cutu_reader) <cutu_reader,
11921 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
11922 <keep>: Declare method.
11923 <m_keep>: Remove member.
11924 <~cutu_reader>: Remove.
11925 (cutu_reader::init_tu_and_read_dwo_dies): Update.
11926 (cutu_reader::cutu_reader): Update.
11927 (cutu_reader::keep): Rename from ~cutu_reader.
11928 (process_psymtab_comp_unit, build_type_psymtabs_1)
11929 (process_skeletonless_type_unit, load_partial_comp_unit)
11930 (load_full_comp_unit, dwarf2_read_addr_index)
11931 (read_signatured_type): Update.
11932
135f5437
TT
119332020-02-08 Tom Tromey <tom@tromey.com>
11934
11935 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
11936 "want_partial_unit" parameter.
11937 (process_psymtab_comp_unit): Change want_partial_unit to bool.
11938 Inline check for DW_TAG_partial_unit.
11939 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
11940
9f66ff1c
TT
119412020-02-08 Tom Tromey <tom@tromey.com>
11942
11943 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
11944 read.c.
11945 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
11946 read.c.
11947
c8a7a66f
TT
119482020-02-08 Tom Tromey <tom@tromey.com>
11949
11950 * dwarf2/read.c (read_address): Move to comp-unit.c.
11951 (dwarf2_rnglists_process, dwarf2_ranges_process)
11952 (read_attribute_value, dwarf_decode_lines_1)
11953 (var_decode_location, decode_locdesc): Update.
11954 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
11955 read.c. Remove "cu" parameter.
11956 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
11957 method.
11958
8266302d
TT
119592020-02-08 Tom Tromey <tom@tromey.com>
11960
11961 * dwarf2/read.c (read_attribute_value, read_indirect_string)
11962 (read_indirect_line_string): Update.
11963 * dwarf2/comp-unit.c (read_offset): Remove.
11964 (read_comp_unit_head): Update.
11965 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
11966 method.
11967 (read_offset): Don't declare.
11968
4057dfde
TT
119692020-02-08 Tom Tromey <tom@tromey.com>
11970
11971 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
11972 * dwarf2/read.c (struct comp_unit_head): Move to
11973 dwarf2/comp-unit.h.
11974 (enum class rcuh_kind): Move to comp-unit.h.
11975 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
11976 (read_comp_unit_head, error_check_comp_unit_head)
11977 (read_and_check_comp_unit_head): Move to comp-unit.c.
11978 (read_offset, dwarf_unit_type_name): Likewise.
11979 (create_debug_type_hash_table, read_cutu_die_from_dwo)
11980 (cutu_reader::cutu_reader, read_call_site_scope)
11981 (find_partial_die, follow_die_offset): Update.
11982 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
11983
24aa364d
TT
119842020-02-08 Tom Tromey <tom@tromey.com>
11985
11986 * dwarf2/read.c (read_offset_1): Move to leb.c.
11987 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
11988 (dwarf_decode_macro_bytes): Update.
11989 * dwarf2/leb.c (read_offset): Rename; move from read.c.
11990 * dwarf2/leb.h (read_offset): Declare.
11991
2c7d5afc
TT
119922020-02-08 Tom Tromey <tom@tromey.com>
11993
11994 * dwarf2/read.c (dwarf2_section_size): Remove.
11995 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
11996 Update.
11997 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
11998
4075cb26
TT
119992020-02-08 Tom Tromey <tom@tromey.com>
12000
12001 * dwarf2/read.c (read_initial_length): Move to leb.c.
12002 * dwarf2/leb.h (read_initial_length): Declare.
12003 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
12004 handle_nonstd parameter.
12005 * dwarf2/frame.c (read_initial_length): Remove.
12006 (decode_frame_entry_1): Update.
12007
09ba997f
TT
120082020-02-08 Tom Tromey <tom@tromey.com>
12009
12010 * dwarf2/loc.c (dwarf2_find_location_expression)
12011 (dwarf_evaluate_loc_desc::get_tls_address)
12012 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
12013 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
12014 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
12015 (dwarf2_compile_property_to_c)
12016 (dwarf2_loc_desc_get_symbol_read_needs)
12017 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
12018 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
12019 (loclist_describe_location, loclist_tracepoint_var_ref)
12020 (loclist_generate_c_location): Update.
12021 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
12022 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
12023 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
12024 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
12025 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
12026 (dwarf2_per_cu_data::addr_size)
12027 (dwarf2_per_cu_data::ref_addr_size)
12028 (dwarf2_per_cu_data::text_offset)
12029 (dwarf2_per_cu_data::addr_type): Now methods.
12030 (per_cu_header_read_in): Make per_cu "const".
12031 (dwarf2_version): Remove.
12032 (dwarf2_per_cu_data::int_type): Now a method.
12033 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
12034 (set_die_type, read_array_type, read_subrange_index_type)
12035 (read_tag_string_type, read_subrange_type): Update.
12036 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
12037 offset_size, ref_addr_size, text_offset, addr_type, version,
12038 objfile, int_type, addr_sized_int_type>: Declare methods.
12039
96c738c0
TT
120402020-02-08 Tom Tromey <tom@tromey.com>
12041
12042 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
12043 Move earlier.
12044
8fdd972c
TT
120452020-02-08 Tom Tromey <tom@tromey.com>
12046
12047 * dwarf2/read.h (dwarf_line_debug): Declare.
12048 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
12049 * dwarf2/read.c: Move line_header code to new files.
12050 (dwarf_line_debug): No longer static.
12051 * dwarf2/line-header.c: New file.
12052 * dwarf2/line-header.h: New file.
12053
03075812
TT
120542020-02-08 Tom Tromey <tom@tromey.com>
12055
12056 * dwarf2/read.c (struct line_header) <file_full_name,
12057 file_file_name>: Return unique_xmalloc_ptr.
12058 (line_header::file_file_name): Update.
12059 (line_header::file_full_name): Update.
12060 (dw2_get_file_names_reader): Update.
12061 (macro_start_file): Update.
12062
bb822404
TT
120632020-02-08 Tom Tromey <tom@tromey.com>
12064
12065 * dwarf2/read.c (struct line_header) <file_full_name,
12066 file_file_name>: Declare methods.
12067 (dw2_get_file_names_reader): Update.
12068 (file_file_name): Now a method.
12069 (file_full_name): Likewise.
12070 (macro_start_file): Update.
12071
009b64fc
TT
120722020-02-08 Tom Tromey <tom@tromey.com>
12073
12074 * dwarf2/read.c (dwarf_always_disassemble)
12075 (show_dwarf_always_disassemble): Move to loc.c.
12076 (_initialize_dwarf2_read): Move "always-disassemble" registration
12077 to loc.c.
12078 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
12079 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
12080 static.
12081 (show_dwarf_always_disassemble): Move from read.c.
12082 (_initialize_dwarf2loc): Move always-disassemble from read.c.
12083
5895093f
TT
120842020-02-08 Tom Tromey <tom@tromey.com>
12085
12086 * dwarf2/read.c (~dwarf2_per_objfile): Update.
12087 (create_quick_file_names_table): Return htab_up.
12088 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
12089 Update.
12090 * dwarf2/read.h (struct dwarf2_per_objfile)
12091 <quick_file_names_table>: Now htab_up.
12092
b3b32279
TT
120932020-02-08 Tom Tromey <tom@tromey.com>
12094
12095 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
12096
1d33d811
TT
120972020-02-08 Tom Tromey <tom@tromey.com>
12098
12099 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
12100 Rewrite.
12101 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
12102 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
12103 (abbrev_table::abbrev_table): No longer inline.
12104 (ABBREV_HASH_SIZE): Remove.
12105 (abbrev_table::m_abbrevs): Now an htab_up.
12106
86de1d91
TT
121072020-02-08 Tom Tromey <tom@tromey.com>
12108
12109 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
12110 (cutu_reader): Update.
12111 (build_type_psymtabs_1): Update.
12112 * dwarf2/abbrev.c (abbrev_table::read): Rename.
12113 (abbrev_table::alloc_abbrev): Update.
12114 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
12115 (abbrev_table::read): New static method, renamed from
12116 abbrev_table_read_table.
12117 (abbrev_table::alloc_abbrev)
12118 (abbrev_table::add_abbrev): Now private.
12119 (abbrev_table::abbrev_table): Now private.
12120 (abbrev_table::m_abbrev_obstack): Now private. Rename.
12121
0335378b
TT
121222020-02-08 Tom Tromey <tom@tromey.com>
12123
12124 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
12125 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
12126 htab_up.
12127
48b490f2
TT
121282020-02-08 Tom Tromey <tom@tromey.com>
12129
12130 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
12131 htab_up.
12132 (lookup_dwo_unit_in_dwp): Update.
12133 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
12134 on obstack.
12135
bc68fb19
TT
121362020-02-08 Tom Tromey <tom@tromey.com>
12137
12138 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
12139 obstack.
12140
d15acc42
TT
121412020-02-08 Tom Tromey <tom@tromey.com>
12142
12143 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
12144 line_header_hash.
12145 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
12146 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
12147 Change type to htab_up.
12148
eaa5fa8b
TT
121492020-02-08 Tom Tromey <tom@tromey.com>
12150
12151 * dwarf2/read.c (allocate_type_unit_groups_table): Return
12152 htab_up. Don't allocate on obstack.
12153 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
12154 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
12155 Change type to htab_up.
12156
b0b6a987
TT
121572020-02-08 Tom Tromey <tom@tromey.com>
12158
12159 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
12160 Change type to htab_up.
12161 * dwarf2/read.c (create_signatured_type_table_from_index)
12162 (create_signatured_type_table_from_debug_names)
12163 (create_all_type_units, add_type_unit)
12164 (lookup_dwo_signatured_type, lookup_signatured_type)
12165 (process_skeletonless_type_unit): Update.
12166 (create_debug_type_hash_table, create_debug_types_hash_table):
12167 Change type of types_htab.
12168 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
12169 htab_up. Don't allocate on obstack.
12170 (create_cus_hash_table): Change type of cus_htab parameter.
12171 (struct dwo_file) <cus, tus>: Now htab_up.
12172 (lookup_dwo_signatured_type, lookup_dwo_cutu)
12173 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
12174 (queue_and_load_all_dwo_tus): Update.
12175 * dwarf2/index-write.c (write_gdbindex): Update.
12176 (write_debug_names): Update.
12177
39856def
TT
121782020-02-08 Tom Tromey <tom@tromey.com>
12179
12180 * dwarf2/read.h (struct dwarf2_queue_item): Move from
12181 dwarf2/read.c. Remove "next" member. Add constructor ntad
12182 destructor.
12183 (struct dwarf2_per_objfile) <queue>: New member.
12184 * dwarf2/read.c (struct dwarf2_queue_item): Move to
12185 dwarf2/read.h.
12186 (dwarf2_queue, dwarf2_queue_tail): Remove.
12187 (class dwarf2_queue_guard): Add parameter to constructor. Use
12188 DISABLE_COPY_AND_ASSIGN.
12189 <m_per_objfile>: New member.
12190 <~dwarf2_queue_guard>: Rewrite.
12191 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
12192 Update.
12193 (~dwarf2_queue_item): New.
12194
3e225074
TT
121952020-02-08 Tom Tromey <tom@tromey.com>
12196
12197 * dwarf2/read.c (struct die_info) <has_children>: New member.
12198 (dw2_get_file_names_reader): Remove has_children.
12199 (dw2_get_file_names): Update.
12200 (read_cutu_die_from_dwo): Remove has_children.
12201 (cutu_reader::init_tu_and_read_dwo_dies)
12202 (cutu_reader::cutu_reader): Update.
12203 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
12204 Remove has_children.
12205 (build_type_psymtabs_1, process_skeletonless_type_unit)
12206 (load_partial_comp_unit, load_full_comp_unit): Update.
12207 (create_dwo_cu_reader): Remove has_children.
12208 (create_cus_hash_table, read_die_and_children): Update.
12209 (read_full_die_1,read_full_die): Remove has_children.
12210 (read_signatured_type): Update.
12211 (class cutu_reader) <has_children>: Remove.
12212
82ca8957
TT
122132020-02-08 Tom Tromey <tom@tromey.com>
12214
12215 * dwarf2/expr.c: Rename from dwarf2expr.c.
12216 * dwarf2/expr.h: Rename from dwarf2expr.h.
12217 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
12218 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
12219 * dwarf2/frame.c: Rename from dwarf2-frame.c.
12220 * dwarf2/frame.h: Rename from dwarf2-frame.h.
12221 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
12222 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
12223 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
12224 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
12225 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
12226 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
12227 * dwarf2/loc.c: Rename from dwarf2loc.c.
12228 * dwarf2/loc.h: Rename from dwarf2loc.h.
12229 * dwarf2/read.c: Rename from dwarf2read.c.
12230 * dwarf2/read.h: Rename from dwarf2read.h.
12231 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
12232 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
12233 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
12234 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
12235 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
12236 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
12237 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
12238 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
12239 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
12240 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
12241 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
12242 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
12243 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
12244 Update.
12245 * Makefile.in (COMMON_SFILES): Update.
12246 (HFILES_NO_SRCDIR): Update.
12247
9e35d499
TT
122482020-02-08 Tom Tromey <tom@tromey.com>
12249
12250 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
12251 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
12252
1eba2311
TT
122532020-02-08 Tom Tromey <tom@tromey.com>
12254
12255 * dwarf2read.h (struct die_info): Don't declare.
12256
e41c2da2
TT
122572020-02-08 Tom Tromey <tom@tromey.com>
12258
12259 * dwarf2read.h (die_info_ptr): Remove typedef.
12260
4fc6c0d5
TT
122612020-02-08 Tom Tromey <tom@tromey.com>
12262
12263 * dwarf2read.c (read_call_site_scope)
12264 (handle_data_member_location, dwarf2_add_member_fn)
12265 (mark_common_block_symbol_computed, read_common_block)
12266 (attr_to_dynamic_prop, partial_die_info::read)
12267 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
12268 (dwarf2_symbol_mark_computed, set_die_type): Update.
12269 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
12270 method.
12271 (attr_form_is_block): Don't declare.
12272 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
12273
cd6c91b4
TT
122742020-02-08 Tom Tromey <tom@tromey.com>
12275
12276 * dwarf2read.c (dwarf2_find_base_address, )
12277 (read_call_site_scope, rust_containing_type)
12278 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
12279 (handle_data_member_location, dwarf2_add_member_fn)
12280 (get_alignment, read_structure_type, process_structure_scope)
12281 (mark_common_block_symbol_computed, read_common_block)
12282 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
12283 (partial_die_info::read, read_attribute_value, new_symbol)
12284 (lookup_die_type, dwarf2_get_ref_die_offset)
12285 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
12286 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
12287 (dwarf2_symbol_mark_computed): Update.
12288 * dwarf2/attribute.h (struct attribute) <value_as_address,
12289 form_is_section_offset, form_is_constant, form_is_ref>: Declare
12290 methods.
12291 (value_as_address, attr_form_is_section_offset)
12292 (attr_form_is_constant, attr_form_is_ref): Don't declare.
12293 * dwarf2/attribute.c (attribute::value_as_address)
12294 (attribute::form_is_section_offset, attribute::form_is_constant)
12295 (attribute::form_is_ref): Now methods.
12296
162dce55
TT
122972020-02-08 Tom Tromey <tom@tromey.com>
12298
12299 * dwarf2read.c (struct attribute, DW_STRING)
12300 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
12301 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
12302 (attr_form_is_block, attr_form_is_section_offset)
12303 (attr_form_is_constant, attr_form_is_ref): Move.
12304 * dwarf2/attribute.h: New file.
12305 * dwarf2/attribute.c: New file, from dwarf2read.c.
12306 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
12307
3054dd54
TT
123082020-02-08 Tom Tromey <tom@tromey.com>
12309
12310 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
12311 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
12312 Move.
12313 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
12314 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
12315 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
12316 abbrev.c.
12317 * dwarf2/abbrev.h: New file.
12318 * dwarf2/abbrev.c: New file, from dwarf2read.c.
12319 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
12320
96b79293
TT
123212020-02-08 Tom Tromey <tom@tromey.com>
12322
12323 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
12324 (dwarf2_section_size, dwarf2_get_section_info)
12325 (create_signatured_type_table_from_debug_names)
12326 (create_addrmap_from_aranges, read_debug_names_from_section)
12327 (get_gdb_index_contents_from_section, read_comp_unit_head)
12328 (error_check_comp_unit_head, read_abbrev_offset)
12329 (create_debug_type_hash_table, init_cu_die_reader)
12330 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
12331 (read_comp_units_from_section, create_cus_hash_table)
12332 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
12333 (create_dwp_v2_section, dwarf2_rnglists_process)
12334 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
12335 (abbrev_table_read_table, read_indirect_string_at_offset_from)
12336 (read_indirect_string_from_dwz, read_addr_index_1)
12337 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
12338 (dwarf_decode_macro_bytes, dwarf_decode_macros)
12339 (fill_in_loclist_baton): Update.
12340 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
12341 get_containing_section, get_bfd_owner, get_bfd_section,
12342 get_file_name, get_id, get_flags, empty, read>: Declare methods.
12343 (dwarf2_read_section, get_section_name, get_section_file_name)
12344 (get_containing_section, get_section_bfd_owner)
12345 (get_section_bfd_section, get_section_name, get_section_file_name)
12346 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
12347 declare.
12348 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
12349 (dwarf2_section_info::get_bfd_owner)
12350 (dwarf2_section_info::get_bfd_section)
12351 (dwarf2_section_info::get_name)
12352 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
12353 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
12354 (dwarf2_section_info::read): Now methods.
12355 * dwarf-index-write.c (class debug_names): Update.
12356
2c86cff9
TT
123572020-02-08 Tom Tromey <tom@tromey.com>
12358
12359 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
12360 Move to dwarf2/section.h.
12361 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
12362 (get_section_bfd_section, get_section_name)
12363 (get_section_file_name, get_section_id, get_section_flags)
12364 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
12365 dwarf2/section.c.
12366 * dwarf2/section.h: New file.
12367 * dwarf2/section.c: New file, from dwarf2read.c.
12368 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
12369
f4382c45
TT
123702020-02-08 Tom Tromey <tom@tromey.com>
12371
12372 * dwarf2read.h (read_unsigned_leb128): Don't declare.
12373 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
12374 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
12375 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
12376 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
12377 * dwarf2/leb.h: New file, from dwarf2read.c.
12378 * dwarf2/leb.c: New file, from dwarf2read.c.
12379 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
12380 Remove.
12381 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
12382 (COMMON_SFILES): Add dwarf2/leb.c.
12383
01840b7a
JB
123842020-02-08 Joel Brobecker <brobecker@adacore.com>
12385
12386 GDB 9.1 released.
12387
dfcb27e4
IB
123882020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
12389
12390 PR gdb/25190:
aac66a4c
SM
12391 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
12392 * gdb/remote.c (remote_console_output): Update.
12393 * gdb/ui-file.c (fputs_unfiltered): Rename to...
12394 (ui_file_puts): ...this.
12395 * gdb/ui-file.h (ui_file_puts): Add declaration.
12396 * gdb/utils.c (emit_style_escape): Update.
12397 (flush_wrap_buffer): Update.
12398 (fputs_maybe_filtered): Update.
12399 (fputs_unfiltered): Add function.
dfcb27e4 12400
faa17681
IB
124012020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
12402
aac66a4c
SM
12403 * gdb/event-loop.c (gdb_wait_for_event): Update.
12404 * gdb/printcmd.c (printf_command): Update.
12405 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
12406 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
12407 (gdb_os_flush_stderr): Update.
12408 * gdb/remote.c (remote_console_output): Update.
12409 * gdb/ui-file.c (gdb_flush): Rename to...
12410 (ui_file_flush): ...this.
12411 (stderr_file::write): Update.
12412 (stderr_file::puts): Update.
12413 * gdb/ui-file.h (gdb_flush): Rename to...
12414 (ui_file_flush): ...this.
12415 * gdb/utils.c (gdb_flush): Add function.
12416 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 12417
5abbbe1d
TT
124182020-02-07 Tom Tromey <tromey@adacore.com>
12419
12420 PR breakpoints/24915:
12421 * source.c (find_and_open_source): Do not check basenames_may_differ.
12422
919adfe8
TT
124232020-02-07 Tom Tromey <tom@tromey.com>
12424
12425 * README: Update gdbserver documentation.
12426 * gdbserver: Move to top level.
12427 * configure.tgt (build_gdbserver): Remove.
12428 * configure.ac: Remove --enable-gdbserver.
12429 * configure: Rebuild.
12430 * Makefile.in (distclean): Don't mention gdbserver.
12431
1d5d29e7
SV
124322020-02-06 Shahab Vahedi <shahab@synopsys.com>
12433
12434 * source-cache.c (source_cache::ensure): Surround
12435 get_plain_source_lines with a try/catch.
12436 (source_cache::get_line_charpos): Get rid of try/catch
12437 and only check for the return value of "ensure".
12438 * tui/tui-source.c (tui_source_window::set_contents):
12439 Simplify "nlines" calculation.
12440
6eb1129c
SV
124412020-02-06 Shahab Vahedi <shahab@synopsys.com>
12442
12443 * MAINTAINERS (Write After Approval): Add myself.
12444
c6a42d11
CB
124452020-02-05 Christian Biesinger <cbiesinger@google.com>
12446
12447 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
12448 function call.
12449
c8ecdda6
CB
124502020-02-05 Christian Biesinger <cbiesinger@google.com>
12451
12452 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
12453
f6480e70
MR
124542020-02-05 Maciej W. Rozycki <macro@wdc.com>
12455
12456 * nat/riscv-linux-tdesc.h: New file.
12457 * nat/riscv-linux-tdesc.c: New file, taking code from...
12458 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
12459 ... here.
12460 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
12461 NATDEPFILES.
12462
dcc9fbc6
AB
124632020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
12464
12465 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
12466 we don't set the fake simulator ptid to the null_ptid.
12467
719546c4
SM
124682020-02-03 Simon Marchi <simon.marchi@efficios.com>
12469
12470 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
12471 * gdbthread.h (class thread_info) <resumed>: Likewise.
12472 * infrun.c (resume_1): Likewise.
12473 (proceed): Likewise.
12474 (infrun_thread_stop_requested): Likewise.
12475 (stop_all_threads): Likewise.
12476 (handle_inferior_event): Likewise.
12477 (restart_threads): Likewise.
12478 (finish_step_over): Likewise.
12479 (keep_going_stepped_thread): Likewise.
12480 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
12481 (linux_handle_extended_wait): Likewise.
12482 * record-btrace.c (get_thread_current_frame_id): Likewise.
12483 * record-full.c (record_full_wait_1): Likewise.
12484 * remote.c (remote_target::process_initial_stop_replies): Likewise.
12485 * target.c (target_resume): Likewise.
12486 * thread.c (set_running_thread): Likewise.
12487
e409c542
AKS
124882020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
12489
12490 * f-valprint.c (f77_print_array_1): Changed datatype of index
12491 variable to LONGEST from int to enable it to contain bound
12492 values correctly.
12493
ee98c0da
MR
124942020-02-03 Maciej W. Rozycki <macro@wdc.com>
12495
12496 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
12497 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
12498 offsets according to FLEN determined.
12499 (riscv_linux_nat_target::read_description): Determine FLEN
12500 dynamically.
12501 (riscv_linux_nat_target::fetch_registers): Size regset buffer
12502 according to FLEN determined.
12503 (riscv_linux_nat_target::store_registers): Likewise.
12504
aa66aac4
SV
125052020-02-01 Shahab Vahedi <shahab@synopsys.com>
12506
12507 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
12508 when reg->group is empty and reggroup is not.
12509
fd9faca8
TT
125102020-01-31 Tom Tromey <tromey@adacore.com>
12511
12512 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
12513 Call beneath target's mourn_inferior after unpushing.
12514
42330a68
AB
125152020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
12516
12517 PR tui/9765
12518 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
12519 have enough lines to fill the screen, still return the lowest
12520 address we found.
12521
7a27a45b
AB
125222020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
12523
12524 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
12525 '-', '<', and '>' commands.
12526
c47f70e2
PA
125272020-01-29 Pedro Alves <palves@redhat.com>
12528 Sergio Durigan Junior <sergiodj@redhat.com>
12529
12530 * infcmd.c (construct_inferior_arguments): Assert that
12531 'argc' is greater than 0.
12532
5133a315
LM
125332020-01-29 Luis Machado <luis.machado@linaro.org>
12534
12535 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
12536 (BRK_INSN_MASK): Define to 0xd4200000.
12537 (aarch64_program_breakpoint_here_p): New function.
12538 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
12539 * arch-utils.c (default_program_breakpoint_here_p): Moved from
12540 breakpoint.c.
12541 * arch-utils.h (default_program_breakpoint_here_p): Moved from
12542 breakpoint.h
12543 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
12544 call gdbarch_program_breakpoint_here_p.
12545 (program_breakpoint_here): Moved to arch-utils.c, renamed to
12546 default_program_breakpoint_here_p, changed return type to bool and
12547 simplified.
12548 * breakpoint.h (program_breakpoint_here): Moved prototype to
12549 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
12550 return type to bool.
12551 * gdbarch.c: Regenerate.
12552 * gdbarch.h: Regenerate.
12553 * gdbarch.sh (program_breakpoint_here_p): New method.
12554 * infrun.c (handle_signal_stop): Call
12555 gdbarch_program_breakpoint_here_p.
12556
168f8c6b
TT
125572020-01-26 Tom Tromey <tom@tromey.com>
12558
12559 * ctfread.c (struct ctf_fp_info): Reindent.
12560 (_initialize_ctfread): Remove.
12561
128a391f
TT
125622020-01-26 Tom Tromey <tom@tromey.com>
12563
12564 * psymtab.c (partial_map_expand_apply)
12565 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
12566 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
12567 (psym_print_stats, psym_expand_symtabs_for_function)
12568 (psym_map_symbol_filenames, psym_map_matching_symbols)
12569 (psym_expand_symtabs_matching)
12570 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
12571 (maintenance_check_psymtabs): Use new methods.
12572 * psympriv.h (struct partial_symtab) <readin_p,
12573 get_compunit_symtab>: New methods.
12574 <readin, compunit_symtab>: Remove members.
12575 (struct standard_psymtab): New.
12576 (struct legacy_psymtab): Derive from standard_psymtab.
12577 * dwarf2read.h (struct dwarf2_psymtab): Derive from
12578 standard_psymtab.
12579 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
12580
0494dbec
TT
125812020-01-26 Tom Tromey <tom@tromey.com>
12582
12583 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
12584 read_dependencies. Add assert.
12585 * psymtab.c (partial_symtab::read_dependencies): New method.
12586 * psympriv.h (struct partial_symtab) <read_dependencies>: New
12587 method.
12588 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
12589 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
12590 read_dependencies.
12591 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
12592 Add assert.
12593
8566b89b
TT
125942020-01-26 Tom Tromey <tom@tromey.com>
12595
12596 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
12597 Call expand_psymtab.
12598 (xcoff_read_symtab): Call expand_psymtab.
12599 (xcoff_start_psymtab, xcoff_end_psymtab): Set
12600 legacy_expand_psymtab.
12601 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
12602 method.
12603 (struct legacy_psymtab) <expand_psymtab>: Implement.
12604 <legacy_expand_psymtab>: New member.
12605 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
12606 (parse_partial_symbols): Set legacy_expand_psymtab.
12607 (psymtab_to_symtab_1): Change argument order. Call
12608 expand_psymtab.
12609 (new_psymtab): Set legacy_expand_psymtab.
12610 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
12611 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
12612 expand_psymtab.
12613 (dwarf2_psymtab::expand_psymtab): Rename from
12614 psymtab_to_symtab_1. Call expand_psymtab.
12615 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
12616 (dbx_end_psymtab): Likewise.
12617 (dbx_psymtab_to_symtab_1): Change argument order. Call
12618 expand_psymtab.
12619 (dbx_read_symtab): Call expand_psymtab.
12620 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
12621 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
12622 (ctf_psymtab::read_symtab): Call expand_psymtab.
12623
077cbab2
TT
126242020-01-26 Tom Tromey <tom@tromey.com>
12625
12626 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
12627 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
12628 messages.
12629 * mdebugread.c (mdebug_read_symtab): Remove prints.
12630 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
12631 assert.
12632 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
12633
891813be
TT
126342020-01-26 Tom Tromey <tom@tromey.com>
12635
12636 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
12637 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
12638 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
12639 legacy_symtab.
12640 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
12641 * psymtab.c (psymtab_to_symtab): Call method.
12642 (dump_psymtab): Update.
12643 * psympriv.h (struct partial_symtab): Add virtual destructor.
12644 <read_symtab>: New method.
12645 (struct legacy_symtab): New.
12646 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
12647 (struct pst_map) <pst>: Now a legacy_psymtab.
12648 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
12649 (new_psymtab): Use legacy_psymtab.
12650 * dwarf2read.h (struct dwarf2_psymtab): New.
12651 (struct dwarf2_per_cu_data) <psymtab>: Use it.
12652 * dwarf2read.c (dwarf2_create_include_psymtab)
12653 (dwarf2_build_include_psymtabs, create_type_unit_group)
12654 (create_partial_symtab, process_psymtab_comp_unit_reader)
12655 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
12656 (set_partial_user): Use dwarf2_psymtab.
12657 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
12658 (psymtab_to_symtab_1, process_full_comp_unit)
12659 (process_full_type_unit, dwarf2_ranges_read)
12660 (dwarf2_get_pc_bounds, psymtab_include_file_name)
12661 (dwarf_decode_lines): Use dwarf2_psymtab.
12662 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
12663 (add_address_entry_worker, write_one_signatured_type)
12664 (recursively_count_psymbols, recursively_write_psymbols)
12665 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
12666 (write_debug_names): Likewise.
12667 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
12668 <pst>: Now a legacy_psymtab.
12669 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
12670 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
12671 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
12672 * ctfread.c (struct ctf_psymtab): New.
12673 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
12674 ctf_psymtab.
12675 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
12676 (create_partial_symtab): Return a ctf_psymtab.
12677 (scan_partial_symbols): Update.
12678
c3693a1d
TT
126792020-01-26 Tom Tromey <tom@tromey.com>
12680
12681 * xcoffread.c (xcoff_start_psymtab): Use new.
12682 * psymtab.c (partial_symtab::partial_symtab): New constructor,
12683 renamed from start_psymtab_common.
12684 * psympriv.h (struct partial_symtab): Add new constructor.
12685 (start_psymtab_common): Don't declare.
12686 * mdebugread.c (parse_partial_symbols): Use new.
12687 * dwarf2read.c (create_partial_symtab): Use new.
12688 * dbxread.c (start_psymtab): Use new.
12689 * ctfread.c (create_partial_symtab): Use new.
12690
32caafd0
TT
126912020-01-26 Tom Tromey <tom@tromey.com>
12692
12693 * xcoffread.c (xcoff_end_psymtab): Use new.
12694 * psymtab.c (start_psymtab_common): Use new.
12695 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
12696 Update.
12697 * psympriv.h (struct partial_symtab): Add parameters to
12698 constructor. Don't inline.
12699 (allocate_psymtab): Don't declare.
12700 * mdebugread.c (new_psymtab): Use new.
12701 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
12702 * dbxread.c (dbx_end_psymtab): Use new.
12703
abaa2f23
TT
127042020-01-26 Tom Tromey <tom@tromey.com>
12705
12706 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
12707 allocate_psymtab. Update documentation.
12708 * psymtab.c (psymtab_storage::install_psymtab): Rename from
12709 allocate_psymtab. Do not use new.
12710 (allocate_psymtab): Use new. Update.
12711
6d94535f
TT
127122020-01-26 Tom Tromey <tom@tromey.com>
12713
12714 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
12715 * psymtab.c (psym_print_stats): Update.
12716 * psympriv.h (struct partial_symtab) <readin,
12717 psymtabs_addrmap_supported, anonymous>: Now bool.
12718 * mdebugread.c (psymtab_to_symtab_1): Update.
12719 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
12720 (build_type_psymtabs_reader, psymtab_to_symtab_1)
12721 (process_full_comp_unit, process_full_type_unit): Update.
12722 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
12723 * ctfread.c (psymtab_to_symtab): Update.
12724
6f17252b
TT
127252020-01-26 Tom Tromey <tom@tromey.com>
12726
12727 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
12728 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
12729 * psymtab.c (psymtab_storage): Delete psymtabs.
12730 (psymtab_storage::allocate_psymtab): Use new.
12731 (psymtab_storage::discard_psymtab): Use delete.
12732 * psympriv.h (struct partial_symtab): Add constructor and
12733 initializers.
12734
f6f1cebc
TT
127352020-01-26 Tom Tromey <tom@tromey.com>
12736
12737 * machoread.c: Do not include psympriv.h.
12738
e47e48f6
PW
127392020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12740
12741 * NEWS: Mention the new option and the set/show commands.
12742
a2fedca9
PW
127432020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12744
12745 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
12746 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
12747 (validate_exec_file): New variables, enums, functions.
12748 (exec_file_locate_attach, print_section_info): Style the filenames.
12749 (_initialize_exec): Install show_exec_file_mismatch_command and
12750 set_exec_file_mismatch_command.
12751 * gdbcore.h (validate_exec_file): Declare.
12752 * infcmd.c (attach_command): Call validate_exec_file.
12753 * remote.c ( remote_target::remote_add_inferior): Likewise.
12754
7ffa82e1
AB
127552020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12756
12757 * frame.c (find_frame_sal): Move call to get_next_frame into more
12758 inner scope.
12759 * inline-frame.c (inilne_state) <inline_state>: Update argument
12760 types.
12761 (inilne_state) <skipped_symbol>: Rename to...
12762 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
12763 (skip_inline_frames): Build vector of skipped symbols and use this
12764 to reate the inline_state.
12765 (inline_skipped_symbol): Add a comment and some assertions, fetch
12766 skipped symbol from the list.
12767
3d92a3e3
AB
127682020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12769
12770 * buildsym.c (lte_is_less_than): Delete.
12771 (buildsym_compunit::end_symtab_with_blockvector): Create local
12772 lambda function to sort line table entries, and use
12773 std::stable_sort instead of std::sort.
12774 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
12775 markers when looking for a previous line.
12776
94a72be7
AB
127772020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12778
12779 * dwarf2read.c (lnp_state_machine::record_line): Include
12780 end_sequence parameter in debug print out. Record the line if we
12781 are at an end_sequence marker even if it's not the start of a
12782 statement.
12783 * symmisc.c (maintenance_print_one_line_table): Print end of
12784 sequence markers with 'END' not '0'.
12785
53af73bf
PA
127862020-01-24 Pedro Alves <palves@redhat.com>
12787
12788 PR gdb/25410
12789 * thread.c (scoped_restore_current_thread::restore): Use
12790 switch_to_inferior_no_thread.
12791 * exec.c: Include "progspace-and-thread.h".
12792 (add_target_sections, remove_target_sections):
12793 scoped_restore_current_pspace_and_thread instead of
12794 scoped_restore_current_thread.
12795 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
12796 and aspace to the inferior before calling clone_program_space.
12797 Remove stale comment.
12798
3050c6f4
CB
127992020-01-24 Christian Biesinger <cbiesinger@google.com>
12800
12801 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
12802 (arm_netbsd_nat_target::fetch_registers): ...this.
12803 (arm_nbsd_nat_target::store_registers): Rename to...
12804 (arm_netbsd_nat_target::store_registers): ...this.
12805
73685c7e
CB
128062020-01-24 Christian Biesinger <cbiesinger@google.com>
12807
12808 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12809 register_t.
12810
89203d40
CB
128112020-01-24 Christian Biesinger <cbiesinger@google.com>
12812
12813 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
12814 Update comment.
12815 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
12816 Likewise.
12817 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
12818 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
12819 the correct replacement (iterate_over_regset_sections).
12820 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
12821 Update comment.
12822
1ba1ac88
AB
128232020-01-24 Graham Markall <graham.markall@embecosm.com>
12824
12825 PR gdb/23718
12826 * gdb/python/python.c (execute_gdb_command): Call
12827 async_enable_stdin in catch block.
12828
f3364a6d
AB
128292020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12830
12831 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
12832 SWITCH_THRU_ALL_UIS.
12833
733d0a67
AB
128342020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12835
12836 PR tui/9765
12837 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
12838 comment, add extra parameter, and update to store previous symbol
12839 when appropriate.
12840 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
12841 add extra parameter.
12842 * tui/tui-disasm.c (tui_disassemble): Update header comment,
12843 remove unneeded parameter, add try/catch around gdb_print_insn,
12844 rewrite to add items to asm_lines vector.
12845 (tui_find_backward_disassembly_start_address): New function.
12846 (tui_find_disassembly_address): Updated throughout.
12847 (tui_disasm_window::set_contents): Update for changes to
12848 tui_disassemble.
12849 (tui_disasm_window::do_scroll_vertical): No need to adjust the
12850 number of lines to scroll.
12851
b3b3bada
SM
128522020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
12853
12854 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
12855 (SECT_OFF_DATA): Likewise.
12856 (SECT_OFF_RODATA): Likewise.
12857 (SECT_OFF_TEXT): Likewise.
12858 (SECT_OFF_BSS): Likewise.
12859 (struct objfile) <text_section_offset, data_section_offset>: New
12860 methods.
12861 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
12862 objfile::text_section_offset.
12863 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
12864 * coffread.c (coff_symtab_read): Likewise.
12865 (enter_linenos): Likewise.
12866 (process_coff_symbol): Likewise.
12867 * ctfread.c (get_objfile_text_range): Likewise.
12868 * dtrace-probe.c (dtrace_probe::get_relocated_address):
12869 Use objfile::data_section_offset.
12870 * dwarf2-frame.c (execute_cfa_program): Use
12871 objfile::text_section_offset.
12872 (dwarf2_frame_find_fde): Likewise.
12873 * dwarf2read.c (create_addrmap_from_index): Likewise.
12874 (create_addrmap_from_aranges): Likewise.
12875 (dw2_find_pc_sect_compunit_symtab): Likewise.
12876 (process_psymtab_comp_unit_reader): Likewise.
12877 (add_partial_symbol): Likewise.
12878 (add_partial_subprogram): Likewise.
12879 (process_full_comp_unit): Likewise.
12880 (read_file_scope): Likewise.
12881 (read_func_scope): Likewise.
12882 (read_lexical_block_scope): Likewise.
12883 (read_call_site_scope): Likewise.
12884 (dwarf2_rnglists_process): Likewise.
12885 (dwarf2_ranges_process): Likewise.
12886 (dwarf2_ranges_read): Likewise.
12887 (dwarf_decode_lines_1): Likewise.
12888 (new_symbol): Likewise.
12889 (dwarf2_fetch_die_loc_sect_off): Likewise.
12890 (dwarf2_per_cu_text_offset): Likewise.
12891 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
12892 * hppa-tdep.c (read_unwind_info): Likewise.
12893 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
12894 * psympriv.h (struct partial_symtab): Likewise.
12895 * psymtab.c (find_pc_sect_psymtab): Likewise.
12896 * solib-svr4.c (enable_break): Likewise.
12897 * stap-probe.c (relocate_address): Use
12898 objfile::data_section_offset.
12899 * xcoffread.c (enter_line_range): Use
12900 objfile::text_section_offset.
12901 (read_xcoff_symtab): Likewise.
12902
ab53f382
SM
129032020-01-23 Simon Marchi <simon.marchi@efficios.com>
12904
12905 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
12906 declaration to narrower scopes.
12907
e7eee665
SM
129082020-01-23 Simon Marchi <simon.marchi@efficios.com>
12909
12910 * darwin-nat.h (struct darwin_exception_msg, enum
12911 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
12912 Move up.
12913 (class darwin_nat_target) <wait_1, check_new_threads,
12914 decode_exception_message, decode_message, stop_inferior,
12915 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
12916 * darwin-nat.c (darwin_check_new_threads): Rename to...
12917 (darwin_nat_target::check_new_threads): ... this.
12918 (darwin_suspend_inferior_it): Remove.
12919 (darwin_decode_exception_message): Rename to...
12920 (darwin_nat_target::decode_exception_message): ... this.
12921 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
12922 (darwin_decode_message): Rename to...
12923 (darwin_nat_target::decode_message): ... this.
12924 (cancel_breakpoint): Rename to...
12925 (darwin_nat_target::cancel_breakpoint): ... this.
12926 (darwin_wait): Rename to...
12927 (darwin_nat_target::wait_1): ... this. Use range-based for loop
12928 instead of iterate_over_inferiors.
12929 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
12930 (darwin_stop_inferior): Rename to...
12931 (darwin_nat_target::stop_inferior): ... this.
12932 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
12933 (darwin_init_thread_list): Rename to...
12934 (darwin_nat_target::init_thread_list): ... this.
12935 (darwin_ptrace_him): Rename to...
12936 (darwin_nat_target::ptrace_him): ... this.
12937 (darwin_nat_target::create_inferior): Pass lambda function to
12938 fork_inferior.
12939 (darwin_nat_target::detach): Call stop_inferior instead of
12940 darwin_stop_inferior.
12941 * fork-inferior.h (fork_inferior): Change init_trace_fun
12942 parameter to gdb::function_view.
12943 * fork-inferior.c (fork_inferior): Likewise.
12944
c162ed3e
HD
129452020-01-23 Hannes Domani <ssbssa@yahoo.de>
12946
12947 * i386-cygwin-tdep.c (core_process_module_section): Update.
12948 * windows-nat.c (struct lm_info_windows): Add text_offset.
12949 (windows_xfer_shared_libraries): Update.
12950 * windows-tdep.c (windows_xfer_shared_library):
12951 Add text_offset_cached argument.
12952 * windows-tdep.h (windows_xfer_shared_library): Update.
12953
a1237872
SM
129542020-01-21 Simon Marchi <simon.marchi@efficios.com>
12955
12956 * gdbarch.sh: Add declaration for _initialize_gdbarch.
12957
b3ee6dd9
SM
129582020-01-21 Simon Marchi <simon.marchi@efficios.com>
12959
12960 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
12961 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
12962 replace with range-based for.
12963 (gdbsim_interrupt_inferior): Remove.
12964 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
12965 with a range-based for. Inline code from
12966 gdbsim_interrupt_inferior.
12967
f9fac3c8
SM
129682020-01-21 Simon Marchi <simon.marchi@efficios.com>
12969
12970 * infrun.c (proceed): Fix indentation.
12971
f6474de9
TT
129722020-01-21 Tom Tromey <tromey@adacore.com>
12973
12974 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
12975 * python/python.c (python_extension_ops): Update.
12976 (gdbpy_colorize): New function.
12977 * python/lib/gdb/__init__.py (colorize): New function.
12978 * extension.h (ext_lang_colorize): Declare.
12979 * extension.c (ext_lang_colorize): New function.
12980 * extension-priv.h (struct extension_language_ops) <colorize>: New
12981 member.
12982 * cli/cli-style.c (_initialize_cli_style): Update help text.
12983
f0c702d4
LM
129842020-01-21 Luis Machado <luis.machado@linaro.org>
12985
12986 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
12987 <cond>: Change type to bool.
12988 (aarch64_displaced_step_b_cond): Update cond to use bool type.
12989 (aarch64_displaced_step_cb): Likewise.
12990 (aarch64_displaced_step_tb): Likewise.
12991
1ab139e5
LM
129922020-01-21 Luis Machado <luis.machado@linaro.org>
12993
12994 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
12995 output.
12996
0c271889
LM
129972020-01-21 Luis Machado <luis.machado@linaro.org>
12998
12999 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
13000 <pc_adjust>: Adjust the documentation.
13001 (aarch64_displaced_step_fixup): Check if PC really moved before
13002 adjusting it.
13003
4d89c1c7
TT
130042020-01-19 Tom Tromey <tom@tromey.com>
13005
13006 * disasm.c (~gdb_disassembler): New destructor.
13007 (gdb_buffered_insn_length): Call disassemble_free_target.
13008 * disasm.h (class gdb_disassembler): Declare destructor. Use
13009 DISABLE_COPY_AND_ASSIGN.
13010
c0ab21c2
TT
130112020-01-19 Tom Tromey <tom@tromey.com>
13012
13013 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
13014 (die_reader_func_ftype): Remove.
13015 (cutu_reader): New class.
13016 (dw2_get_file_names_reader): Remove "data" parameter.
13017 (dw2_get_file_names): Use cutu_reader.
13018 (create_debug_type_hash_table): Update.
13019 (read_cutu_die_from_dwo): Update comment.
13020 (lookup_dwo_unit): Add dwo_name parameter.
13021 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
13022 die_reader_func_ftype and data parameters.
13023 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
13024 Remove die_reader_func_ftype and data parameters.
13025 (~cutu_reader): New; from init_cutu_and_read_dies.
13026 (cutu_reader::cutu_reader): Rename from
13027 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
13028 and data parameters.
13029 (init_cutu_and_read_dies_simple): Remove.
13030 (struct process_psymtab_comp_unit_data): Remove.
13031 (process_psymtab_comp_unit_reader): Remove data parameter; add
13032 want_partial_unit and pretend_language parameters.
13033 (process_psymtab_comp_unit): Use cutu_reader.
13034 (build_type_psymtabs_reader): Remove data parameter.
13035 (build_type_psymtabs_1): Use cutu_reader.
13036 (process_skeletonless_type_unit): Likewise.
13037 (load_partial_comp_unit_reader): Remove.
13038 (load_partial_comp_unit): Use cutu_reader.
13039 (load_full_comp_unit_reader): Remove.
13040 (load_full_comp_unit): Use cutu_reader.
13041 (struct create_dwo_cu_data): Remove.
13042 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
13043 dwo_unit parameters.
13044 (create_cus_hash_table): Use cutu_reader.
13045 (struct dwarf2_read_addr_index_data): Remove.
13046 (dwarf2_read_addr_index_reader): Remove.
13047 (dwarf2_read_addr_index): Use cutu_reader.
13048 (read_signatured_type_reader): Remove.
13049 (read_signatured_type): Use cutu_reader.
13050
45bbae5c
TT
130512020-01-19 Tom Tromey <tom@tromey.com>
13052
13053 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
13054 * tui/tui-wingeneral.h (class tui_suppress_output): New.
13055 (tui_wrefresh): Declare.
13056 * tui/tui-wingeneral.c (suppress_output): New global.
13057 (tui_suppress_output, ~tui_suppress_output): New constructor and
13058 destructor.
13059 (tui_wrefresh): New function.
13060 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
13061 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
13062 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
13063 method.
13064 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
13065 tui_wrefresh.
13066 (tui_data_window::no_refresh): New method.
13067 (tui_data_item_window::refresh_window): Call tui_wrefresh.
13068 (tui_reg_command): Use tui_suppress_output
13069 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
13070 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
13071 method.
13072 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
13073
4f13c1c0
TT
130742020-01-19 Tom Tromey <tom@tromey.com>
13075
13076 * tui/tui-winsource.c (tui_update_source_windows_with_line):
13077 Handle case where symtab is null.
13078
fa47e446
SM
130792020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
13080
13081 * linux-fork.c (one_fork_p): Simplify.
13082
26f42329
SM
130832020-01-17 Simon Marchi <simon.marchi@efficios.com>
13084
13085 * top.c (struct qt_args): Remove.
13086 (kill_or_detach): Change return type to void, replace `void *`
13087 parameter with a proper one.
13088 (print_inferior_quit_action): Likewise.
13089 (quit_confirm): Use range-based for loop to iterate over inferiors.
13090 (quit_force): Likewise.
13091
a9ac81b1
SM
130922020-01-17 Simon Marchi <simon.marchi@efficios.com>
13093
13094 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
13095 `void *` parameter with proper parameters.
13096 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
13097 (print_one_inferior): Change return type to void, replace `void *`
13098 parameter with proper parameters.
13099 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
13100 inferiors.
13101 (get_other_inferior): Remove.
13102 (mi_cmd_remove_inferior): Use range-based loop to iterate over
13103 inferiors.
13104
788eca49
SM
131052020-01-17 Simon Marchi <simon.marchi@efficios.com>
13106
13107 * mi/mi-interp.c (report_initial_inferior): Remove.
13108 (mi_interp::init): Use range-based for to iterate over inferiors.
13109
d9bc85b6
SM
131102020-01-17 Simon Marchi <simon.marchi@efficios.com>
13111
13112 * python/py-inferior.c (build_inferior_list): Remove.
13113 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
13114
40c94099
CB
131152020-01-16 Christian Biesinger <cbiesinger@google.com>
13116
13117 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
13118 (btrace_stitch_trace): Likewise.
13119 * charset.c (intermediate_encoding): Likewise (vaild).
13120 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
13121 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
13122 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
13123
e0cdfe3c
HD
131242020-01-16 Hannes Domani <ssbssa@yahoo.de>
13125
13126 * windows-tdep.c (windows_get_tlb_type):
13127 Add rtl_user_process_parameters type.
13128
790f1718 131292020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 13130 Norbert Lange <nolange79@gmail.com>
790f1718
PA
13131
13132 PR build/24805
13133 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
13134 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
13135 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
13136 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
13137 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
13138 (ps_plog): Redeclare exported functions with default visibility.
13139
3112ed97
NA
131402020-01-16 Nitika Achra <Nitika.Achra@amd.com>
13141
13142 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
13143 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
13144
8dc3273e
SM
131452020-01-15 Simon Marchi <simon.marchi@efficios.com>
13146
13147 * infcmd.c (post_create_inferior): Use get_thread_regcache
13148 instead of get_current_regcache.
13149
ff47f4f0
TT
131502020-01-14 Tom Tromey <tom@tromey.com>
13151
13152 PR symtab/12535:
13153 * python/python.c (gdbpy_decode_line): Treat empty string the same
13154 as no argument.
13155
975f45b7
TT
131562020-01-14 Tom Tromey <tom@tromey.com>
13157
13158 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
13159
25e57356
TT
131602020-01-14 Tom Tromey <tom@tromey.com>
13161
13162 * nat/linux-btrace.c: Don't include <config.h>.
13163 * nat/linux-ptrace.c: Don't include <config.h>.
13164 * nat/x86-linux-dregs.c: Don't include <config.h>.
13165
05ea2a05
TT
131662020-01-14 Tom Tromey <tom@tromey.com>
13167
13168 * configure: Rebuild.
13169 * configure.ac: Move many checks to ../gdbsupport/common.m4.
13170
01027315
TT
131712020-01-14 Tom Tromey <tom@tromey.com>
13172
13173 * nat/x86-linux-dregs.c: Include configh.h.
13174 * nat/linux-ptrace.c: Include configh.h.
13175 * nat/linux-btrace.c: Include configh.h.
13176 * defs.h: Include config.h, bfd.h.
13177 * configure.ac: Don't source common.host.
13178 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
13179 * configure: Rebuild.
13180 * acinclude.m4: Update path.
13181 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
13182 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
13183 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
13184 (CLIBS): Add LIBSUPPORT.
13185 (CDEPS): Likewise.
13186 (COMMON_SFILES): Remove gdbsupport files.
13187 (HFILES_NO_SRCDIR): Likewise.
13188 (stamp-version): Update path to create-version.sh.
13189 (ALLDEPFILES): Remove gdbsupport files.
13190
b2ceabe8
TT
131912020-01-14 Tom Tromey <tom@tromey.com>
13192
13193 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
13194 USE_WIN32API when needed.
13195 * configure.ac (USE_WIN32API): Don't define.
13196 (WIN32LIBS): Use WIN32APILIBS.
13197 * configure: Rebuild.
13198
25c51f71
TT
131992020-01-14 Tom Tromey <tom@tromey.com>
13200
13201 * configure: Rebuild.
13202 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
13203
717c684d
BE
132042020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
13205
13206 * skip.c (skip_function_command): Make skip w/o arguments use the
13207 name of the inlined function if pc is inside any inlined function.
13208
7da6a5b9
LM
132092020-01-14 Luis Machado <luis.machado@linaro.org>
13210
13211 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
13212 * infrun.c (resume_1): Likewise.
13213 (handle_inferior_event): Remove stale comment.
13214 * linux-nat.c (linux_nat_target::resume): Update comments.
13215 (save_stop_reason): Likewise.
13216 (linux_nat_filter_event): Likewise.
13217 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
13218
44e4c775
AB
132192020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
13220
13221 * elfread.c (record_minimal_symbol): Set section index to 0 for
13222 non-allocatable sections.
13223
18a8505e
AT
13224
132252020-01-13 Ali Tamur <tamur@google.com>
13226
13227 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
13228 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
13229 to gdb::optional. Update comments.
13230 (dwo_file): Update comments.
13231 (read_attribute): Update API to take an additional out parameter,
13232 need_reprocess. This is used to mark attributes that need other
13233 attributes (e.g. str_offsets_base) for correct computation which may not
13234 have been read yet.
13235 (read_attribute_reprocess): New function declaration.
13236 (read_addr_index): Likewise.
13237 (read_dwo_str_index): Likewise.
13238 (read_stub_str_index): Likewise.
13239 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
13240 (lookup_addr_base): New function definition.
13241 (lookup_ranges_base): Likewise.
13242 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
13243 lookup_ranges_base.
13244 (init_cutu_and_read_dies): Update comments.
13245 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
13246 unit. This is used to inherit parent's str_offsets_base and addr_base.
13247 Update comments.
13248 (init_cutu_and_read_dies_simple): Reflect API changes.
13249 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
13250 (create_cus_hash_table): Change API to take parent compile unit.
13251 Reflect API changes.
13252 (open_and_init_dwo_file): Reflect API changes.
13253 (dwarf2_get_pc_bounds): Update comments.
13254 (dwarf2_record_block_ranges): Likewise.
13255 (read_full_die_1): Change implementation to reprocess attributes that
13256 need str_offsets_base and addr_base.
13257 (partial_die_info::read): Likewise.
13258 (read_attribute_reprocess): New function definition.
13259 (read_attribute_value): Change API to take an additional out parameter,
13260 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
13261 when a non-dwo compile unit has index based attributes.
13262 (read_attribute): Reflect API changes.
13263 (read_addr_index_1): Reflect API changes. Update comments.
13264 (dwarf2_read_addr_index_data): Reflect API changes.
13265 (dwarf2_read_addr_index): Likewise.
13266 (read_str_index): Change API and implementation. This becomes a helper
13267 to be used by the new string index related methods. Update error
13268 message and comments.
13269 (read_dwo_str_index): New function definition.
13270 (read_stub_str_index): Likewise.
13271 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
13272 * symfile.h (dwarf2_debug_sections): Likewise.
13273 * xcoffread.c (dwarf2_debug_sections): Likewise.
13274
0cac9354
SM
132752020-01-13 Simon Marchi <simon.marchi@efficios.com>
13276
13277 * gdbcore.h (struct core_fns) <core_read_registers>: Change
13278 core_reg_sect type to gdb_byte *.
13279 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
13280 * cris-tdep.c (fetch_core_registers): Likewise.
13281 * corelow.c (core_target::get_core_register_section): Change
13282 type of `contents` to gdb::byte_vector.
13283
9a6d629c
AB
132842020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
13285
13286 * tui/tui-wingeneral.c (box_win): Position the title in the center
13287 of the border.
13288
d8b2f9e3
SM
132892020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13290
13291 * corelow.c (core_target::get_core_register_section): Use
13292 std::vector instead of alloca.
13293
bb564c58
SM
132942020-01-13 Simon Marchi <simon.marchi@efficios.com>
13295
13296 * warning.m4: Add -Wmissing-declarations to build_warnings.
13297 * configure: Re-generate.
13298
6b366111
SM
132992020-01-13 Simon Marchi <simon.marchi@efficios.com>
13300
13301 * python/python.c (init__gdb_module): Add declaration.
13302
6c265988
SM
133032020-01-13 Simon Marchi <simon.marchi@efficios.com>
13304
13305 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
13306 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
13307 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
13308 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
13309 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
13310 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
13311 * ada-exp.y (_initialize_ada_exp): Add declaration.
13312 * ada-lang.c (_initialize_ada_language): Add declaration.
13313 * ada-tasks.c (_initialize_tasks): Add declaration.
13314 * agent.c (_initialize_agent): Add declaration.
13315 * aix-thread.c (_initialize_aix_thread): Add declaration.
13316 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
13317 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
13318 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
13319 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
13320 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
13321 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
13322 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
13323 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
13324 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
13325 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
13326 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
13327 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
13328 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
13329 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
13330 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
13331 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
13332 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
13333 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
13334 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
13335 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
13336 * annotate.c (_initialize_annotate): Add declaration.
13337 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
13338 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
13339 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
13340 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
13341 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
13342 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
13343 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
13344 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
13345 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
13346 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
13347 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
13348 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
13349 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
13350 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
13351 * auto-load.c (_initialize_auto_load): Add declaration.
13352 * auxv.c (_initialize_auxv): Add declaration.
13353 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
13354 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
13355 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
13356 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
13357 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
13358 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
13359 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
13360 * breakpoint.c (_initialize_breakpoint): Add declaration.
13361 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
13362 * btrace.c (_initialize_btrace): Add declaration.
13363 * charset.c (_initialize_charset): Add declaration.
13364 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
13365 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
13366 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
13367 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
13368 * cli/cli-script.c (_initialize_cli_script): Add declaration.
13369 * cli/cli-style.c (_initialize_cli_style): Add declaration.
13370 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
13371 * coffread.c (_initialize_coffread): Add declaration.
13372 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
13373 * compile/compile.c (_initialize_compile): Add declaration.
13374 * complaints.c (_initialize_complaints): Add declaration.
13375 * completer.c (_initialize_completer): Add declaration.
13376 * copying.c (_initialize_copying): Add declaration.
13377 * corefile.c (_initialize_core): Add declaration.
13378 * corelow.c (_initialize_corelow): Add declaration.
13379 * cp-abi.c (_initialize_cp_abi): Add declaration.
13380 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
13381 * cp-support.c (_initialize_cp_support): Add declaration.
13382 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
13383 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
13384 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
13385 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
13386 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
13387 * ctfread.c (_initialize_ctfread): Add declaration.
13388 * d-lang.c (_initialize_d_language): Add declaration.
13389 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
13390 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
13391 * dbxread.c (_initialize_dbxread): Add declaration.
13392 * dcache.c (_initialize_dcache): Add declaration.
13393 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
13394 * disasm.c (_initialize_disasm): Add declaration.
13395 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
13396 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
13397 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
13398 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
13399 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
13400 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
13401 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
13402 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
13403 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
13404 * elfread.c (_initialize_elfread): Add declaration.
13405 * exec.c (_initialize_exec): Add declaration.
13406 * extension.c (_initialize_extension): Add declaration.
13407 * f-lang.c (_initialize_f_language): Add declaration.
13408 * f-valprint.c (_initialize_f_valprint): Add declaration.
13409 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
13410 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
13411 * filesystem.c (_initialize_filesystem): Add declaration.
13412 * findcmd.c (_initialize_mem_search): Add declaration.
13413 * findvar.c (_initialize_findvar): Add declaration.
13414 * fork-child.c (_initialize_fork_child): Add declaration.
13415 * frame-base.c (_initialize_frame_base): Add declaration.
13416 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
13417 * frame.c (_initialize_frame): Add declaration.
13418 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
13419 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
13420 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
13421 * gcore.c (_initialize_gcore): Add declaration.
13422 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
13423 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
13424 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
13425 * gdbarch.c (_initialize_gdbarch): Add declaration.
13426 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
13427 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
13428 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
13429 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
13430 * go-lang.c (_initialize_go_language): Add declaration.
13431 * go32-nat.c (_initialize_go32_nat): Add declaration.
13432 * guile/guile.c (_initialize_guile): Add declaration.
13433 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
13434 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
13435 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
13436 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
13437 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
13438 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
13439 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
13440 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
13441 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
13442 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
13443 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
13444 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
13445 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
13446 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
13447 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
13448 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
13449 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
13450 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
13451 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
13452 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
13453 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
13454 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
13455 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
13456 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
13457 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
13458 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
13459 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
13460 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
13461 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
13462 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
13463 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
13464 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
13465 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
13466 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
13467 * infcall.c (_initialize_infcall): Add declaration.
13468 * infcmd.c (_initialize_infcmd): Add declaration.
13469 * inflow.c (_initialize_inflow): Add declaration.
13470 * infrun.c (_initialize_infrun): Add declaration.
13471 * interps.c (_initialize_interpreter): Add declaration.
13472 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
13473 * jit.c (_initialize_jit): Add declaration.
13474 * language.c (_initialize_language): Add declaration.
13475 * linux-fork.c (_initialize_linux_fork): Add declaration.
13476 * linux-nat.c (_initialize_linux_nat): Add declaration.
13477 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
13478 * linux-thread-db.c (_initialize_thread_db): Add declaration.
13479 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
13480 * m2-lang.c (_initialize_m2_language): Add declaration.
13481 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
13482 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
13483 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
13484 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
13485 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
13486 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
13487 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
13488 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
13489 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
13490 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
13491 * machoread.c (_initialize_machoread): Add declaration.
13492 * macrocmd.c (_initialize_macrocmd): Add declaration.
13493 * macroscope.c (_initialize_macroscope): Add declaration.
13494 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
13495 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
13496 * maint.c (_initialize_maint_cmds): Add declaration.
13497 * mdebugread.c (_initialize_mdebugread): Add declaration.
13498 * memattr.c (_initialize_mem): Add declaration.
13499 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
13500 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
13501 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
13502 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
13503 * mi/mi-main.c (_initialize_mi_main): Add declaration.
13504 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
13505 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
13506 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
13507 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
13508 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
13509 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
13510 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
13511 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
13512 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
13513 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
13514 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
13515 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
13516 * mipsread.c (_initialize_mipsread): Add declaration.
13517 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
13518 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
13519 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
13520 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
13521 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
13522 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
13523 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
13524 * nto-procfs.c (_initialize_procfs): Add declaration.
13525 * objc-lang.c (_initialize_objc_language): Add declaration.
13526 * observable.c (_initialize_observer): Add declaration.
13527 * opencl-lang.c (_initialize_opencl_language): Add declaration.
13528 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
13529 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
13530 * osabi.c (_initialize_gdb_osabi): Add declaration.
13531 * osdata.c (_initialize_osdata): Add declaration.
13532 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
13533 * parse.c (_initialize_parse): Add declaration.
13534 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
13535 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
13536 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
13537 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
13538 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
13539 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
13540 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
13541 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
13542 * printcmd.c (_initialize_printcmd): Add declaration.
13543 * probe.c (_initialize_probe): Add declaration.
13544 * proc-api.c (_initialize_proc_api): Add declaration.
13545 * proc-events.c (_initialize_proc_events): Add declaration.
13546 * proc-service.c (_initialize_proc_service): Add declaration.
13547 * procfs.c (_initialize_procfs): Add declaration.
13548 * producer.c (_initialize_producer): Add declaration.
13549 * psymtab.c (_initialize_psymtab): Add declaration.
13550 * python/python.c (_initialize_python): Add declaration.
13551 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
13552 * record-btrace.c (_initialize_record_btrace): Add declaration.
13553 * record-full.c (_initialize_record_full): Add declaration.
13554 * record.c (_initialize_record): Add declaration.
13555 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
13556 * regcache.c (_initialize_regcache): Add declaration.
13557 * reggroups.c (_initialize_reggroup): Add declaration.
13558 * remote-notif.c (_initialize_notif): Add declaration.
13559 * remote-sim.c (_initialize_remote_sim): Add declaration.
13560 * remote.c (_initialize_remote): Add declaration.
13561 * reverse.c (_initialize_reverse): Add declaration.
13562 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
13563 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
13564 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
13565 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
13566 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
13567 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
13568 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
13569 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
13570 Add declaration.
13571 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
13572 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
13573 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
13574 * rust-exp.y (_initialize_rust_exp): Add declaration.
13575 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
13576 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
13577 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
13578 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
13579 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
13580 * score-tdep.c (_initialize_score_tdep): Add declaration.
13581 * ser-go32.c (_initialize_ser_dos): Add declaration.
13582 * ser-mingw.c (_initialize_ser_windows): Add declaration.
13583 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
13584 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
13585 * ser-uds.c (_initialize_ser_socket): Add declaration.
13586 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
13587 * serial.c (_initialize_serial): Add declaration.
13588 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
13589 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
13590 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
13591 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
13592 * skip.c (_initialize_step_skip): Add declaration.
13593 * sol-thread.c (_initialize_sol_thread): Add declaration.
13594 * solib-aix.c (_initialize_solib_aix): Add declaration.
13595 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
13596 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
13597 * solib-frv.c (_initialize_frv_solib): Add declaration.
13598 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
13599 * solib-target.c (_initialize_solib_target): Add declaration.
13600 * solib.c (_initialize_solib): Add declaration.
13601 * source-cache.c (_initialize_source_cache): Add declaration.
13602 * source.c (_initialize_source): Add declaration.
13603 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
13604 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
13605 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
13606 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
13607 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
13608 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
13609 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
13610 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
13611 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
13612 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
13613 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
13614 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
13615 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
13616 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
13617 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
13618 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
13619 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
13620 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
13621 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
13622 * stabsread.c (_initialize_stabsread): Add declaration.
13623 * stack.c (_initialize_stack): Add declaration.
13624 * stap-probe.c (_initialize_stap_probe): Add declaration.
13625 * std-regs.c (_initialize_frame_reg): Add declaration.
13626 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
13627 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
13628 * symfile.c (_initialize_symfile): Add declaration.
13629 * symmisc.c (_initialize_symmisc): Add declaration.
13630 * symtab.c (_initialize_symtab): Add declaration.
13631 * target.c (_initialize_target): Add declaration.
13632 * target-connection.c (_initialize_target_connection): Add
13633 declaration.
13634 * target-dcache.c (_initialize_target_dcache): Add declaration.
13635 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
13636 * thread.c (_initialize_thread): Add declaration.
13637 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
13638 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
13639 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
13640 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
13641 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
13642 * tracectf.c (_initialize_ctf): Add declaration.
13643 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
13644 * tracefile.c (_initialize_tracefile): Add declaration.
13645 * tracepoint.c (_initialize_tracepoint): Add declaration.
13646 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
13647 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
13648 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
13649 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
13650 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
13651 * tui/tui-win.c (_initialize_tui_win): Add declaration.
13652 * tui/tui.c (_initialize_tui): Add declaration.
13653 * typeprint.c (_initialize_typeprint): Add declaration.
13654 * ui-style.c (_initialize_ui_style): Add declaration.
13655 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
13656 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
13657 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
13658 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
13659 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
13660 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
13661 * unittests/filtered_iterator-selftests.c
13662 (_initialize_filtered_iterator_selftests): Add declaration.
13663 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
13664 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
13665 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
13666 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
13667 * unittests/main-thread-selftests.c
13668 (_initialize_main_thread_selftests): Add declaration.
13669 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
13670 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
13671 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
13672 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
13673 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
13674 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
13675 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
13676 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
13677 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
13678 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
13679 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
13680 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
13681 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
13682 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
13683 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
13684 declaration.
13685 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
13686 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
13687 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
13688 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
13689 * user-regs.c (_initialize_user_regs): Add declaration.
13690 * utils.c (_initialize_utils): Add declaration.
13691 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
13692 * valops.c (_initialize_valops): Add declaration.
13693 * valprint.c (_initialize_valprint): Add declaration.
13694 * value.c (_initialize_values): Add declaration.
13695 * varobj.c (_initialize_varobj): Add declaration.
13696 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
13697 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
13698 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
13699 * windows-nat.c (_initialize_windows_nat): Add declaration.
13700 (_initialize_check_for_gdb_ini): Add declaration.
13701 (_initialize_loadable): Add declaration.
13702 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
13703 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
13704 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
13705 * xcoffread.c (_initialize_xcoffread): Add declaration.
13706 * xml-support.c (_initialize_xml_support): Add declaration.
13707 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
13708 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
13709 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
13710 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
13711
e2de1eec
SM
137122020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13713
13714 * regformats/regdat.sh: Generate declaration for init function.
13715
e0037b4c
SM
137162020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13717
13718 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
13719 up.
13720 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
13721 close_one_inferior>: New methods.
13722 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
13723 pass down target to find_inferior_pid.
13724 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
13725 Pass down target to find_inferior_ptid.
13726 (gdbsim_target::create_inferior): Pass down target to
13727 add_thread_silent.
13728 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
13729 target down to find_inferior_ptid and switch_to_thread.
13730 (gdbsim_target::close): Update to call close_one_inferior.
13731 (struct resume_data): Remove.
13732 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
13733 directly, rather than through a void pointer.
13734 (gdbsim_target::resume): Update to call resume_one_inferior.
13735
58920b5b
SM
137362020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
13737
13738 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
13739
4ec89149
PA
137402020-01-12 Pedro Alves <palves@redhat.com>
13741
13742 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
13743 directly for the current inferior instead of
13744 discard_all_inferiors.
13745 (discard_all_inferiors): Delete.
13746
7c392d1d
TT
137472020-01-11 Tom Tromey <tom@tromey.com>
13748
13749 * tui/tui-wingeneral.c (box_win): Check cli_styling.
13750 * tui/tui-winsource.c (tui_source_window_base::refill): Use
13751 deprecated_safe_get_selected_frame.
13752
d9ebdab7
TBA
137532020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13754
13755 * inferior.c (print_inferior): Switch inferior before printing it.
13756
f3c469b9
PA
137572020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
13758 Pedro Alves <palves@redhat.com>
13759
13760 * progspace-and-thread.c (switch_to_program_space_and_thread):
13761 Assert there's an inferior for PSPACE. Use
13762 switch_to_inferior_no_thread to switch the inferior too.
13763 * progspace.c (program_space::~program_space): Call
13764 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
13765 (program_space::free_all_objfiles): Don't call clear_symtab_users
13766 here.
13767 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
13768
65c574f6
PA
137692020-01-10 Pedro Alves <palves@redhat.com>
13770
13771 * NEWS: Mention multi-target debugging, "info connections", and
13772 "add-inferior -no-connection".
13773
2f4fcf00
PA
137742020-01-10 Pedro Alves <palves@redhat.com>
13775
13776 * infrun.c: Include "target-connection.h".
13777 (check_multi_target_resumption): New.
13778 (proceed): Call it.
13779 * target-connection.c (make_target_connection_string): Make
13780 extern.
13781 * target-connection.h (make_target_connection_string): Declare.
13782
121b3efd
PA
137832020-01-10 Pedro Alves <palves@redhat.com>
13784
13785 * Makefile.in (COMMON_SFILES): Add target-connection.c.
13786 * inferior.c (uiout_field_connection): New function.
13787 (print_inferior): Add new "connection-id" column.
13788 (add_inferior_command): Show connection number/string of added
13789 inferior.
13790 * process-stratum-target.h
13791 (process_stratum_target::connection_string): New virtual method.
13792 (process_stratum_target::connection_number): New field.
13793 * remote.c (remote_target::connection_string): New override.
13794 * target-connection.c: New file.
13795 * target-connection.h: New file.
13796 * target.c (decref_target): Remove process_stratum targets from
13797 the connection list.
13798 (target_stack::push): Add process_stratum targets to the
13799 connection list.
13800
4f837581
PA
138012020-01-10 Pedro Alves <palves@redhat.com>
13802
13803 Revert:
13804 2016-04-12 Pedro Alves <palves@redhat.com>
13805 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
13806 Remove references to name.
13807 * serial.h (struct serial) <name>: Delete.
13808
f4ec508e
PA
138092020-01-10 Pedro Alves <palves@redhat.com>
13810
13811 * gdbarch-selftests.c (register_to_value_test): Remove "target
13812 already pushed" check.
13813
5b6d1e4f
PA
138142020-01-10 Pedro Alves <palves@redhat.com>
13815 John Baldwin <jhb@FreeBSD.org>
13816
13817 * aarch64-linux-nat.c
13818 (aarch64_linux_nat_target::thread_architecture): Adjust.
13819 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
13820 (task_command_1): Likewise.
13821 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
13822 (aix_thread_target::wait, aix_thread_target::fetch_registers)
13823 (aix_thread_target::store_registers)
13824 (aix_thread_target::thread_alive): Adjust.
13825 * amd64-fbsd-tdep.c: Include "inferior.h".
13826 (amd64fbsd_get_thread_local_address): Pass down target.
13827 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
13828 thread's gdbarch instead of target_gdbarch.
13829 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
13830 get_last_target_status.
13831 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
13832 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
13833 inferiors.
13834 (update_inserted_breakpoint_locations): Skip if inferiors with no
13835 execution.
13836 (update_global_location_list): When handling moribund locations,
13837 find representative inferior for location's pspace, and use thread
13838 count of its process_stratum target.
13839 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
13840 * bsd-uthread.c (bsd_uthread_target::wait): Use
13841 as_process_stratum_target and adjust thread_change_ptid and
13842 add_thread calls.
13843 (bsd_uthread_target::update_thread_list): Use
13844 as_process_stratum_target and adjust find_thread_ptid,
13845 thread_change_ptid and add_thread calls.
13846 * btrace.c (maint_btrace_packet_history_cmd): Adjust
13847 find_thread_ptid call.
13848 * corelow.c (add_to_thread_list): Adjust add_thread call.
13849 (core_target_open): Adjust add_thread_silent and thread_count
13850 calls.
13851 (core_target::pid_to_str): Adjust find_inferior_ptid call.
13852 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
13853 * event-top.c (async_disconnect): Pop targets from all inferiors.
13854 * exec.c (add_target_sections): Push exec target on all inferiors
13855 sharing the program space.
13856 (remove_target_sections): Remove the exec target from all
13857 inferiors sharing the program space.
13858 (exec_on_vfork): New.
13859 * exec.h (exec_on_vfork): Declare.
13860 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
13861 Pass it down.
13862 (fbsd_nat_target::update_thread_list): Adjust.
13863 (fbsd_nat_target::resume): Adjust.
13864 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
13865 down.
13866 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
13867 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
13868 get_thread_arch_regcache call.
13869 * fork-child.c (gdb_startup_inferior): Pass target down to
13870 startup_inferior and set_executing.
13871 * gdbthread.h (struct process_stratum_target): Forward declare.
13872 (add_thread, add_thread_silent, add_thread_with_info)
13873 (in_thread_list): Add process_stratum_target parameter.
13874 (find_thread_ptid(inferior*, ptid_t)): New overload.
13875 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
13876 parameter.
13877 (all_threads()): Delete overload.
13878 (all_threads, all_non_exited_threads): Add process_stratum_target
13879 parameter.
13880 (all_threads_safe): Use brace initialization.
13881 (thread_count): Add process_stratum_target parameter.
13882 (set_resumed, set_running, set_stop_requested, set_executing)
13883 (threads_are_executing, finish_thread_state): Add
13884 process_stratum_target parameter.
13885 (switch_to_thread): Use is_current_thread.
13886 * i386-fbsd-tdep.c: Include "inferior.h".
13887 (i386fbsd_get_thread_local_address): Pass down target.
13888 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
13889 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
13890 have_inferiors check.
13891 * inf-ptrace.c (inf_ptrace_target::create_inferior)
13892 (inf_ptrace_target::attach): Adjust.
13893 * infcall.c (run_inferior_call): Adjust.
13894 * infcmd.c (run_command_1): Pass target to
13895 scoped_finish_thread_state.
13896 (proceed_thread_callback): Skip inferiors with no execution.
13897 (continue_command): Rename 'all_threads' local to avoid hiding
13898 'all_threads' function. Adjust get_last_target_status call.
13899 (prepare_one_step): Adjust set_running call.
13900 (signal_command): Use user_visible_resume_target. Compare thread
13901 pointers instead of inferior_ptid.
13902 (info_program_command): Adjust to pass down target.
13903 (attach_command): Mark target's 'thread_executing' flag.
13904 (stop_current_target_threads_ns): New, factored out from ...
13905 (interrupt_target_1): ... this. Switch inferior before making
13906 target calls.
13907 * inferior-iter.h
13908 (struct all_inferiors_iterator, struct all_inferiors_range)
13909 (struct all_inferiors_safe_range)
13910 (struct all_non_exited_inferiors_range): Filter on
13911 process_stratum_target too. Remove explicit.
13912 * inferior.c (inferior::inferior): Push dummy target on target
13913 stack.
13914 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
13915 Add process_stratum_target parameter, and pass it down.
13916 (have_live_inferiors): Adjust.
13917 (switch_to_inferior_and_push_target): New.
13918 (add_inferior_command, clone_inferior_command): Handle
13919 "-no-connection" parameter. Use
13920 switch_to_inferior_and_push_target.
13921 (_initialize_inferior): Mention "-no-connection" option in
13922 the help of "add-inferior" and "clone-inferior" commands.
13923 * inferior.h: Include "process-stratum-target.h".
13924 (interrupt_target_1): Use bool.
13925 (struct inferior) <push_target, unpush_target, target_is_pushed,
13926 find_target_beneath, top_target, process_target, target_at,
13927 m_stack>: New.
13928 (discard_all_inferiors): Delete.
13929 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
13930 (all_inferiors, all_non_exited_inferiors): Add
13931 process_stratum_target parameter.
13932 * infrun.c: Include "gdb_select.h" and <unordered_map>.
13933 (target_last_proc_target): New global.
13934 (follow_fork_inferior): Push target on new inferior. Pass target
13935 to add_thread_silent. Call exec_on_vfork. Handle target's
13936 reference count.
13937 (follow_fork): Adjust get_last_target_status call. Also consider
13938 target.
13939 (follow_exec): Push target on new inferior.
13940 (struct execution_control_state) <target>: New field.
13941 (user_visible_resume_target): New.
13942 (do_target_resume): Call target_async.
13943 (resume_1): Set target's threads_executing flag. Consider resume
13944 target.
13945 (commit_resume_all_targets): New.
13946 (proceed): Also consider resume target. Skip threads of inferiors
13947 with no execution. Commit resumtion in all targets.
13948 (start_remote): Pass current inferior to wait_for_inferior.
13949 (infrun_thread_stop_requested): Consider target as well. Pass
13950 thread_info pointer to clear_inline_frame_state instead of ptid.
13951 (infrun_thread_thread_exit): Consider target as well.
13952 (random_pending_event_thread): New inferior parameter. Use it.
13953 (do_target_wait): Rename to ...
13954 (do_target_wait_1): ... this. Add inferior parameter, and pass it
13955 down.
13956 (threads_are_resumed_pending_p, do_target_wait): New.
13957 (prepare_for_detach): Adjust calls.
13958 (wait_for_inferior): New inferior parameter. Handle it. Use
13959 do_target_wait_1 instead of do_target_wait.
13960 (fetch_inferior_event): Adjust. Switch to representative
13961 inferior. Pass target down.
13962 (set_last_target_status): Add process_stratum_target parameter.
13963 Save target in global.
13964 (get_last_target_status): Add process_stratum_target parameter and
13965 handle it.
13966 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
13967 (context_switch): Check inferior_ptid == null_ptid before calling
13968 inferior_thread().
13969 (get_inferior_stop_soon): Pass down target.
13970 (wait_one): Rename to ...
13971 (poll_one_curr_target): ... this.
13972 (struct wait_one_event): New.
13973 (wait_one): New.
13974 (stop_all_threads): Adjust.
13975 (handle_no_resumed, handle_inferior_event): Adjust to consider the
13976 event's target.
13977 (switch_back_to_stepped_thread): Also consider target.
13978 (print_stop_event): Update.
13979 (normal_stop): Update. Also consider the resume target.
13980 * infrun.h (wait_for_inferior): Remove declaration.
13981 (user_visible_resume_target): New declaration.
13982 (get_last_target_status, set_last_target_status): New
13983 process_stratum_target parameter.
13984 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
13985 process_stratum_target parameter, and use it.
13986 (clear_inline_frame_state (thread_info*)): New.
13987 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
13988 process_stratum_target parameter.
13989 (clear_inline_frame_state (thread_info*)): Declare.
13990 * linux-fork.c (delete_checkpoint_command): Pass target down to
13991 find_thread_ptid.
13992 (checkpoint_command): Adjust.
13993 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
13994 instead of just tweaking inferior_ptid.
13995 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
13996 (exit_lwp): Pass target down to find_thread_ptid.
13997 (attach_proc_task_lwp_callback): Pass target down to
13998 add_thread/set_running/set_executing.
13999 (linux_nat_target::attach): Pass target down to
14000 thread_change_ptid.
14001 (get_detach_signal): Pass target down to find_thread_ptid.
14002 Consider last target status's target.
14003 (linux_resume_one_lwp_throw, resume_lwp)
14004 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
14005 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
14006 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
14007 (linux_nat_target::async_wait_fd): New.
14008 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
14009 target down.
14010 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
14011 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
14012 * linux-thread-db.c (struct thread_db_info::process_target): New
14013 field.
14014 (add_thread_db_info): Save target.
14015 (get_thread_db_info): New process_stratum_target parameter. Also
14016 match target.
14017 (delete_thread_db_info): New process_stratum_target parameter.
14018 Also match target.
14019 (thread_from_lwp): Adjust to pass down target.
14020 (thread_db_notice_clone): Pass down target.
14021 (check_thread_db_callback): Pass down target.
14022 (try_thread_db_load_1): Always push the thread_db target.
14023 (try_thread_db_load, record_thread): Pass target down.
14024 (thread_db_target::detach): Pass target down. Always unpush the
14025 thread_db target.
14026 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
14027 target down. Always unpush the thread_db target.
14028 (find_new_threads_callback, thread_db_find_new_threads_2)
14029 (thread_db_target::update_thread_list): Pass target down.
14030 (thread_db_target::pid_to_str): Pass current inferior down.
14031 (thread_db_target::get_thread_local_address): Pass target down.
14032 (thread_db_target::resume, maintenance_check_libthread_db): Pass
14033 target down.
14034 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
14035 * procfs.c (procfs_target::procfs_init_inferior): Declare.
14036 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
14037 (procfs_init_inferior): Rename to ...
14038 (procfs_target::procfs_init_inferior): ... this and adjust.
14039 (procfs_target::create_inferior, procfs_notice_thread)
14040 (procfs_do_thread_registers): Adjust.
14041 * ppc-fbsd-tdep.c: Include "inferior.h".
14042 (ppcfbsd_get_thread_local_address): Pass down target.
14043 * proc-service.c (ps_xfer_memory): Switch current inferior and
14044 program space as well.
14045 (get_ps_regcache): Pass target down.
14046 * process-stratum-target.c
14047 (process_stratum_target::thread_address_space)
14048 (process_stratum_target::thread_architecture): Pass target down.
14049 * process-stratum-target.h
14050 (process_stratum_target::threads_executing): New field.
14051 (as_process_stratum_target): New.
14052 * ravenscar-thread.c
14053 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
14054 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
14055 down.
14056 * record-btrace.c (record_btrace_target::info_record): Adjust.
14057 (record_btrace_target::record_method)
14058 (record_btrace_target::record_is_replaying)
14059 (record_btrace_target::fetch_registers)
14060 (get_thread_current_frame_id, record_btrace_target::resume)
14061 (record_btrace_target::wait, record_btrace_target::stop): Pass
14062 target down.
14063 * record-full.c (record_full_wait_1): Switch to event thread.
14064 Pass target down.
14065 * regcache.c (regcache::regcache)
14066 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
14067 process_stratum_target parameter and handle it.
14068 (current_thread_target): New global.
14069 (get_thread_regcache): Add process_stratum_target parameter and
14070 handle it. Switch inferior before calling target method.
14071 (get_thread_regcache): Pass target down.
14072 (get_thread_regcache_for_ptid): Pass target down.
14073 (registers_changed_ptid): Add process_stratum_target parameter and
14074 handle it.
14075 (registers_changed_thread, registers_changed): Pass target down.
14076 (test_get_thread_arch_aspace_regcache): New.
14077 (current_regcache_test): Define a couple local test_target_ops
14078 instances and use them for testing.
14079 (readwrite_regcache): Pass process_stratum_target parameter.
14080 (cooked_read_test, cooked_write_test): Pass mock_target down.
14081 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
14082 (get_thread_arch_aspace_regcache): Add process_stratum_target
14083 parameter.
14084 (regcache::target): New method.
14085 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
14086 (regcache::registers_changed_ptid): Add process_stratum_target
14087 parameter.
14088 (regcache::m_target): New field.
14089 (registers_changed_ptid): Add process_stratum_target parameter.
14090 * remote.c (remote_state::supports_vCont_probed): New field.
14091 (remote_target::async_wait_fd): New method.
14092 (remote_unpush_and_throw): Add remote_target parameter.
14093 (get_current_remote_target): Adjust.
14094 (remote_target::remote_add_inferior): Push target.
14095 (remote_target::remote_add_thread)
14096 (remote_target::remote_notice_new_inferior)
14097 (get_remote_thread_info): Pass target down.
14098 (remote_target::update_thread_list): Skip threads of inferiors
14099 bound to other targets. (remote_target::close): Don't discard
14100 inferiors. (remote_target::add_current_inferior_and_thread)
14101 (remote_target::process_initial_stop_replies)
14102 (remote_target::start_remote)
14103 (remote_target::remote_serial_quit_handler): Pass down target.
14104 (remote_target::remote_unpush_target): New remote_target
14105 parameter. Unpush the target from all inferiors.
14106 (remote_target::remote_unpush_and_throw): New remote_target
14107 parameter. Pass it down.
14108 (remote_target::open_1): Check whether the current inferior has
14109 execution instead of checking whether any inferior is live. Pass
14110 target down.
14111 (remote_target::remote_detach_1): Pass down target. Use
14112 remote_unpush_target.
14113 (extended_remote_target::attach): Pass down target.
14114 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
14115 (remote_target::append_resumption): Pass down target.
14116 (remote_target::append_pending_thread_resumptions)
14117 (remote_target::remote_resume_with_hc, remote_target::resume)
14118 (remote_target::commit_resume): Pass down target.
14119 (remote_target::remote_stop_ns): Check supports_vCont_probed.
14120 (remote_target::interrupt_query)
14121 (remote_target::remove_new_fork_children)
14122 (remote_target::check_pending_events_prevent_wildcard_vcont)
14123 (remote_target::remote_parse_stop_reply)
14124 (remote_target::process_stop_reply): Pass down target.
14125 (first_remote_resumed_thread): New remote_target parameter. Pass
14126 it down.
14127 (remote_target::wait_as): Pass down target.
14128 (unpush_and_perror): New remote_target parameter. Pass it down.
14129 (remote_target::readchar, remote_target::remote_serial_write)
14130 (remote_target::getpkt_or_notif_sane_1)
14131 (remote_target::kill_new_fork_children, remote_target::kill): Pass
14132 down target.
14133 (remote_target::mourn_inferior): Pass down target. Use
14134 remote_unpush_target.
14135 (remote_target::core_of_thread)
14136 (remote_target::remote_btrace_maybe_reopen): Pass down target.
14137 (remote_target::pid_to_exec_file)
14138 (remote_target::thread_handle_to_thread_info): Pass down target.
14139 (remote_target::async_wait_fd): New.
14140 * riscv-fbsd-tdep.c: Include "inferior.h".
14141 (riscv_fbsd_get_thread_local_address): Pass down target.
14142 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
14143 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
14144 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
14145 Adjust.
14146 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
14147 * solib-svr4.c (enable_break): Pass down target.
14148 * spu-multiarch.c (parse_spufs_run): Pass down target.
14149 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
14150 * target-delegates.c: Regenerate.
14151 * target.c (g_target_stack): Delete.
14152 (current_top_target): Return the current inferior's top target.
14153 (target_has_execution_1): Refer to the passed-in inferior's top
14154 target.
14155 (target_supports_terminal_ours): Check whether the initial
14156 inferior was already created.
14157 (decref_target): New.
14158 (target_stack::push): Incref/decref the target.
14159 (push_target, push_target, unpush_target): Adjust.
14160 (target_stack::unpush): Defref target.
14161 (target_is_pushed): Return bool. Adjust to refer to the current
14162 inferior's target stack.
14163 (dispose_inferior): Delete, and inline parts ...
14164 (target_preopen): ... here. Only dispose of the current inferior.
14165 (target_detach): Hold strong target reference while detaching.
14166 Pass target down.
14167 (target_thread_name): Add assertion.
14168 (target_resume): Pass down target.
14169 (target_ops::beneath, find_target_at): Adjust to refer to the
14170 current inferior's target stack.
14171 (get_dummy_target): New.
14172 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
14173 has a thread running.
14174 (initialize_targets): Rename to ...
14175 (_initialize_target): ... this.
14176 * target.h: Include "gdbsupport/refcounted-object.h".
14177 (struct target_ops): Inherit refcounted_object.
14178 (target_ops::shortname, target_ops::longname): Make const.
14179 (target_ops::async_wait_fd): New method.
14180 (decref_target): Declare.
14181 (struct target_ops_ref_policy): New.
14182 (target_ops_ref): New typedef.
14183 (get_dummy_target): Declare function.
14184 (target_is_pushed): Return bool.
14185 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
14186 (all_matching_threads_iterator::all_matching_threads_iterator):
14187 Handle filter target.
14188 * thread-iter.h (struct all_matching_threads_iterator, struct
14189 all_matching_threads_range, class all_non_exited_threads_range):
14190 Filter by target too. Remove explicit.
14191 * thread.c (threads_executing): Delete.
14192 (inferior_thread): Pass down current inferior.
14193 (clear_thread_inferior_resources): Pass down thread pointer
14194 instead of ptid_t.
14195 (add_thread_silent, add_thread_with_info, add_thread): Add
14196 process_stratum_target parameter. Use it for thread and inferior
14197 searches.
14198 (is_current_thread): New.
14199 (thread_info::deletable): Use it.
14200 (find_thread_ptid, thread_count, in_thread_list)
14201 (thread_change_ptid, set_resumed, set_running): New
14202 process_stratum_target parameter. Pass it down.
14203 (set_executing): New process_stratum_target parameter. Pass it
14204 down. Adjust reference to 'threads_executing'.
14205 (threads_are_executing): New process_stratum_target parameter.
14206 Adjust reference to 'threads_executing'.
14207 (set_stop_requested, finish_thread_state): New
14208 process_stratum_target parameter. Pass it down.
14209 (switch_to_thread): Also match inferior.
14210 (switch_to_thread): New process_stratum_target parameter. Pass it
14211 down.
14212 (update_threads_executing): Reimplement.
14213 * top.c (quit_force): Pop targets from all inferior.
14214 (gdb_init): Don't call initialize_targets.
14215 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
14216 Declare.
14217 (windows_add_thread, windows_delete_thread): Adjust.
14218 (get_windows_debug_event): Rename to ...
14219 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
14220 * tracefile-tfile.c (tfile_target_open): Pass down target.
14221 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
14222 Forward declare.
14223 (switch_to_thread): Add process_stratum_target parameter.
14224 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
14225 parameter. Use it.
14226 (mi_on_resume): Pass target down.
14227 * nat/fork-inferior.c (startup_inferior): Add
14228 process_stratum_target parameter. Pass it down.
14229 * nat/fork-inferior.h (startup_inferior): Add
14230 process_stratum_target parameter.
14231 * python/py-threadevent.c (py_get_event_thread): Pass target down.
14232
75c6c844
PA
142332020-01-10 Pedro Alves <palves@redhat.com>
14234
14235 * remote.c (remote_target::start_remote): Don't set inferior_ptid
14236 directly. Instead find the first thread in the thread list and
14237 use switch_to_thread.
14238
78f2c40a
PA
142392020-01-10 Pedro Alves <palves@redhat.com>
14240
14241 * remote.c (remote_target::remote_add_inferior): Don't bind a
14242 process to the current inferior if the current inferior is already
14243 bound to a process.
14244
e7af6c70
TBA
142452020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14246 Pedro Alves <palves@redhat.com>
14247
14248 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
14249 If no process is specified, return null_ptid instead of
14250 inferior_ptid.
14251 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
14252 TARGET_WAITKIND_SIGNALLED with no pid.
14253
31ba933e
PA
142542020-01-10 Pedro Alves <palves@redhat.com>
14255
14256 * remote.c (first_remote_resumed_thread): New.
14257 (remote_target::wait_as): Use it as default event_ptid instead of
14258 inferior_ptid.
14259
735fc2ca
PA
142602020-01-10 Pedro Alves <palves@redhat.com>
14261
14262 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
14263
c17e02e1
PA
142642020-01-10 Pedro Alves <palves@redhat.com>
14265
14266 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
14267 not -1.
14268
ab1ddbcf
PA
142692020-01-10 Pedro Alves <palves@redhat.com>
14270
14271 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
14272 ptid to get_last_target_status.
14273 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
14274 ptid to get_last_target_status.
14275 * infcmd.c (continue_command): Don't pass a target_waitstatus to
14276 get_last_target_status.
14277 (info_program_command): Don't pass a target_waitstatus to
14278 get_last_target_status.
14279 * infrun.c (init_wait_for_inferior): Use
14280 nullify_last_target_wait_ptid.
14281 (get_last_target_status): Handle nullptr arguments.
14282 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
14283 (print_stop_event): Don't pass a ptid to get_last_target_status.
14284 (normal_stop): Don't pass a ptid to get_last_target_status.
14285 * infrun.h (get_last_target_status, set_last_target_status): Move
14286 comments here and update.
14287 (nullify_last_target_wait_ptid): Declare.
14288 * linux-fork.c (fork_load_infrun_state): Remove local extern
14289 declaration of nullify_last_target_wait_ptid.
14290 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
14291 to get_last_target_status.
14292
f3f8ece4
PA
142932020-01-10 Pedro Alves <palves@redhat.com>
14294
14295 * gdbthread.h (scoped_restore_current_thread)
14296 <dont_restore, restore, m_dont_restore>: Declare.
14297 * thread.c (thread_alive): Add assertion. Return bool.
14298 (switch_to_thread_if_alive): New.
14299 (prune_threads): Switch inferior/thread.
14300 (print_thread_info_1): Switch thread before calling target methods.
14301 (scoped_restore_current_thread::restore): New, factored out from
14302 ...
14303 (scoped_restore_current_thread::~scoped_restore_current_thread):
14304 ... this.
14305 (scoped_restore_current_thread::scoped_restore_current_thread):
14306 Add assertion.
14307 (thread_apply_all_command, thread_select): Use
14308 switch_to_thread_if_alive.
14309 * infrun.c (proceed, restart_threads, handle_signal_stop)
14310 (switch_back_to_stepped_thread): Switch current thread before
14311 calling target methods.
14312
db2d40f7
PA
143132020-01-10 Pedro Alves <palves@redhat.com>
14314
14315 * inferior.c (switch_to_inferior_no_thread): New function,
14316 factored out from ...
14317 (inferior_command): ... here.
14318 * inferior.h (switch_to_inferior_no_thread): Declare.
14319 * mi/mi-main.c (run_one_inferior): Use
14320 switch_to_inferior_no_thread.
14321
bd420a2d
PA
143222020-01-10 Pedro Alves <palves@redhat.com>
14323
14324 * infcmd.c (kill_command): Remove dead code.
14325
ddf5db90
PA
143262020-01-10 Pedro Alves <palves@redhat.com>
14327
14328 * remote.c (remote_target::mourn_inferior): No longer check
14329 whether the target is running.
14330
5018ce90
PA
143312020-01-10 Pedro Alves <palves@redhat.com>
14332
14333 * corelow.c (core_target::has_execution): Change parameter type to
14334 inferior pointer.
14335 * inferior.c (number_of_live_inferiors): Use
14336 inferior::has_execution instead of target_has_execution_1.
14337 * inferior.h (inferior::has_execution): New.
14338 * linux-thread-db.c (thread_db_target::update_thread_list): Use
14339 inferior::has_execution instead of target_has_execution_1.
14340 * process-stratum-target.c
14341 (process_stratum_target::has_execution): Change parameter type to
14342 inferior pointer. Check the inferior's PID instead of
14343 inferior_ptid.
14344 * process-stratum-target.h
14345 (process_stratum_target::has_execution): Change parameter type to
14346 inferior pointer.
14347 * record-full.c (record_full_core_target::has_execution): Change
14348 parameter type to inferior pointer.
14349 * target.c (target_has_execution_1): Change parameter type to
14350 inferior pointer.
14351 (target_has_execution_current): Adjust.
14352 * target.h (target_ops::has_execution): Change parameter type to
14353 inferior pointer.
14354 (target_has_execution_1): Change parameter type to inferior
14355 pointer. Change return type to bool.
14356 * tracefile.h (tracefile_target::has_execution): Change parameter
14357 type to inferior pointer.
14358
74375d18
PA
143592020-01-10 Pedro Alves <palves@redhat.com>
14360
14361 * exceptions.c (print_flush): Remove current_top_target() check.
14362
acdf84a6
PA
143632020-01-10 Pedro Alves <palves@redhat.com>
14364
14365 * remote.c (show_remote_exec_file): Show the current inferior's
14366 exec-file instead of the command variable's value.
14367
ec506636
PA
143682020-01-10 Pedro Alves <palves@redhat.com>
14369
14370 * record-full.c (record_full_resume_ptid): New global.
14371 (record_full_target::resume): Set it.
14372 (record_full_wait_1): Use record_full_resume_ptid instead of
14373 inferior_ptid.
14374
873657b9
PA
143752020-01-10 Pedro Alves <palves@redhat.com>
14376
14377 * gdbthread.h (scoped_restore_current_thread)
14378 <dont_restore, restore, m_dont_restore>: Declare.
14379 * thread.c (thread_alive): Add assertion. Return bool.
14380 (switch_to_thread_if_alive): New.
14381 (prune_threads): Switch inferior/thread.
14382 (print_thread_info_1): Switch thread before calling target methods.
14383 (scoped_restore_current_thread::restore): New, factored out from
14384 ...
14385 (scoped_restore_current_thread::~scoped_restore_current_thread):
14386 ... this.
14387 (scoped_restore_current_thread::scoped_restore_current_thread):
14388 Add assertion.
14389 (thread_apply_all_command, thread_select): Use
14390 switch_to_thread_if_alive.
14391
7f0ae84c
GB
143922020-01-10 George Barrett <bob@bob131.so>
14393
14394 * stap-probe.c (stap_modify_semaphore): Don't check for null
14395 semaphores.
14396 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
14397 for null semaphores.
14398
f5a7c406
AB
143992020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
14400
14401 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
14402 all source windows, and maintain horizontal scroll status while
14403 doing so.
14404
9ae6bf64
TT
144052020-01-09 Tom Tromey <tom@tromey.com>
14406
14407 PR tui/18932:
14408 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
14409 update_source_window, not print_source_lines.
14410
b2efe70c
AB
144112020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
14412
14413 * tui/tui.c (tui_enable): Register tui hooks after calling
14414 tui_display_main.
14415
5f23a082
CB
144162020-01-09 Christian Biesinger <cbiesinger@google.com>
14417
14418 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
14419
3061113b
SM
144202020-01-08 Simon Marchi <simon.marchi@efficios.com>
14421
14422 * thread.c (print_thread_info_1): Fix indentation.
14423
57d75002
CB
144242020-01-09 Christian Biesinger <cbiesinger@google.com>
14425
14426 * symtab.c (general_symbol_info::compute_and_set_names): Move the
14427 unique_xmalloc_ptr outside the if to always free the demangled name.
14428
6a053cb1
TT
144292020-01-08 Tom Tromey <tromey@adacore.com>
14430
14431 * xcoffread.c (enter_line_range, read_xcoff_symtab)
14432 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
14433 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
14434 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
14435 Remove.
14436 (section_offsets): New typedef.
14437 * symtab.c (fixup_section, get_msymbol_address): Update.
14438 * symmisc.c (dump_msymbols): Update.
14439 * symfile.h (relative_addr_info_to_section_offsets)
14440 (symfile_map_offsets_to_segments): Update.
14441 * symfile.c (build_section_addr_info_from_objfile)
14442 (init_objfile_sect_indices): Update.
14443 (struct place_section_arg): Change type of "offsets".
14444 (place_section): Update.
14445 (relative_addr_info_to_section_offsets): Change type of
14446 "section_offsets". Remove "num_sections" parameter.
14447 (default_symfile_offsets, syms_from_objfile_1)
14448 (set_objfile_default_section_offset): Update.
14449 (reread_symbols): No need to preserve section offsets by hand.
14450 (symfile_map_offsets_to_segments): Change type of "offsets".
14451 * stap-probe.c (relocate_address): Update.
14452 * stabsread.h (process_one_symbol): Update.
14453 * solib-target.c (struct lm_info_target) <offsets>: Change type.
14454 (solib_target_relocate_section_addresses): Update.
14455 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
14456 Update.
14457 * solib-frv.c (frv_relocate_main_executable): Update.
14458 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
14459 * solib-aix.c (solib_aix_get_section_offsets): Change return
14460 type.
14461 (solib_aix_solib_create_inferior_hook): Update.
14462 * remote.c (remote_target::get_offsets): Update.
14463 * psymtab.c (find_pc_sect_psymtab): Update.
14464 * psympriv.h (struct partial_symbol) <address, text_low,
14465 text_high>: Update.
14466 * objfiles.h (obj_section_offset): Update.
14467 (struct objfile) <section_offsets>: Change type.
14468 <num_sections>: Remove.
14469 (objfile_relocate): Update.
14470 * objfiles.c (entry_point_address_query): Update
14471 (relocate_one_symbol): Change type of "section_offsets".
14472 (objfile_relocate1, objfile_relocate1): Change type of
14473 "new_offsets".
14474 (objfile_rebase1): Update.
14475 * mipsread.c (mipscoff_symfile_read): Update.
14476 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
14477 parameter.
14478 * mdebugread.c (parse_symbol): Change type of "section_offsets".
14479 (parse_external, psymtab_to_symtab_1): Update.
14480 * machoread.c (macho_symfile_offsets): Update.
14481 * ia64-tdep.c (ia64_find_unwind_table): Update.
14482 * hppa-tdep.c (read_unwind_info): Update.
14483 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
14484 * dwarf2read.c (create_addrmap_from_index)
14485 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
14486 (process_psymtab_comp_unit_reader, add_partial_symbol)
14487 (add_partial_subprogram, process_full_comp_unit)
14488 (read_file_scope, read_func_scope, read_lexical_block_scope)
14489 (read_call_site_scope, dwarf2_rnglists_process)
14490 (dwarf2_ranges_process, dwarf2_ranges_read)
14491 (dwarf_decode_lines_1, var_decode_location, new_symbol)
14492 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
14493 Update.
14494 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
14495 Update.
14496 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
14497 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
14498 (process_one_symbol): Change type of "section_offsets".
14499 * ctfread.c (get_objfile_text_range): Update.
14500 * coffread.c (coff_symtab_read, enter_linenos)
14501 (process_coff_symbol): Update.
14502 * coff-pe-read.c (add_pe_forwarded_sym): Update.
14503 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
14504
456e800a
TT
145052020-01-08 Tom Tromey <tromey@adacore.com>
14506
14507 * dwarf2read.c (parse_macro_definition): Use std::string.
14508 (parse_macro_definition): Likewise.
14509
6dfa2fc2
TT
145102020-01-08 Tom Tromey <tromey@adacore.com>
14511
14512 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
14513 (ATTR_ALLOC_CHUNK): Remove.
14514
421d1616
TT
145152020-01-08 Tom Tromey <tromey@adacore.com>
14516
14517 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
14518
43816ebc
TT
145192020-01-08 Tom Tromey <tromey@adacore.com>
14520
14521 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
14522 (dwarf2_compute_name, open_dwo_file): Likewise.
14523 (process_enumeration_scope): Use std::vector.
14524 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
14525 (partial_die_info::fixup, dwarf2_start_subfile)
14526 (guess_full_die_structure_name, dwarf2_name): Likewise.
14527 (determine_prefix): Update.
14528 (guess_full_die_structure_name): Make return type const.
14529 (partial_die_full_name): Return unique_xmalloc_ptr.
14530 (DW_FIELD_ALLOC_CHUNK): Remove.
14531
4212d509
TT
145322020-01-07 Tom Tromey <tromey@adacore.com>
14533
14534 PR build/24937:
14535 * stap-probe.c (class stap_static_probe_ops): Add constructor.
14536
06a6207a
JT
145372020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
14538
14539 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
14540
153d79c4
AB
145412020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
14542
14543 * stack.c (print_frame_info): Move disassemble_next_line code
14544 inside source_print block.
14545
66182876
EZ
145462020-01-06 Eli Zaretskii <eliz@gnu.org>
14547
14548 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
14549 gdb/signals.h, as we are now using native signal symbols.
14550
cbfa8581
SV
145512020-01-06 Shahab Vahedi <shahab@synopsys.com>
14552
14553 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
14554 overflow by an early check of content vs threshold.
aac66a4c 14555 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
14556 Likewise.
14557
3f602821
EZ
145582020-01-06 Eli Zaretskii <eliz@gnu.org>
14559
14560 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
14561
a08c904d
JT
145622020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
14563
14564 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
14565 export table if no section contains it's RVA.
14566
89a65580
EZ
145672020-01-06 Eli Zaretskii <eliz@gnu.org>
14568
14569 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
14570
8b7fcda2
HD
145712020-01-06 Hannes Domani <ssbssa@yahoo.de>
14572
14573 * source.c (print_source_lines_base): Set last_line_listed.
14574
a61b4f69
SV
145752020-01-06 Shahab Vahedi <shahab@synopsys.com>
14576
14577 * tui/tui-disasm.c: Remove trailing spaces.
14578
559e7e50
EZ
145792020-01-06 Eli Zaretskii <eliz@gnu.org>
14580 Pedro Alves <palves@redhat.com>
14581
14582 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
14583 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
14584 (windows_gdb_signal_to_target): New function, uses the above
14585 enumeration to convert GDB internal signal codes to equivalent
14586 Windows codes.
14587 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
14588 * windows-nat.c: Include "gdb_wait.h".
14589 (get_windows_debug_event): Extract the fatal exception from the
14590 exit status and convert to the equivalent Posix signal number.
14591 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
14592 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
14593 * gdbsupport/gdb_wait.c: New file, implements
14594 windows_status_to_termsig.
14595 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
14596 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
14597
f2302a34
AB
145982020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
14599
14600 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
14601 show_layout.
14602
6a5206eb
LM
146032020-01-05 Luis Machado <luis.machado@linaro.org>
14604
14605 * aarch64-linux-nat.c
14606 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
14607 and bfd_mach_aarch64.
14608
6ec1d75e
PW
146092020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14610
14611 * ui-file.c (stdio_file::can_emit_style_escape)
14612 (tee_file::can_emit_style_escape): Ensure style is used also on
14613 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
14614 to gdb_stdout.
14615 * main.c (set_gdb_data_directory): Use file style to output the
14616 warning that the given pathname is not a directory.
14617 * top.c (show_history_filename, gdb_safe_append_history)
14618 (show_gdb_datadir): Use file style.
14619
44f81a76
HD
146202020-01-03 Hannes Domani <ssbssa@yahoo.de>
14621
14622 * solib-target.c (struct lm_info_target):
14623 Change offsets to be a unique_xmalloc_ptr.
14624 (solib_target_relocate_section_addresses): Update.
14625
25057eb0
HD
146262020-01-03 Hannes Domani <ssbssa@yahoo.de>
14627
14628 * windows-nat.c (windows_clear_solib): Free so_list linked list.
14629
6e2118f5
BE
146302020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
14631
14632 * MAINTAINERS (Write After Approval): Add myself.
14633
8133c7dc
LM
146342020-01-02 Luis Machado <luis.machado@linaro.org>
14635
14636 * proc-service.c (get_ps_regcache): Remove reference to obsolete
14637 Cell BE architecture.
14638 * target.h (struct target_ops) <thread_architecture>: Likewise.
14639
48189bec
HD
146402020-01-01 Hannes Domani <ssbssa@yahoo.de>
14641
14642 * Makefile.in: Use INSTALL_PROGRAM_ENV.
14643
ead1063b
HD
146442020-01-01 Hannes Domani <ssbssa@yahoo.de>
14645
14646 * MAINTAINERS (Write After Approval): Add myself.
14647
e5d78223
JB
146482020-01-01 Joel Brobecker <brobecker@adacore.com>
14649
14650 * gdbarch.sh: Update copyright year range of generated files.
14651
b811d2c2
JB
146522020-01-01 Joel Brobecker <brobecker@adacore.com>
14653
14654 Update copyright year range in all GDB files.
14655
5f4def5c
JB
146562020-01-01 Joel Brobecker <brobecker@adacore.com>
14657
14658 * copyright.py: Convert to Python 3.
14659
51fd4002
JB
146602020-01-01 Joel Brobecker <brobecker@adacore.com>
14661
14662 * copyright.py: Adapt after move of gnulib directory from gdb
14663 directory to toplevel directory.
14664
5fb651f2
JB
146652020-01-01 Joel Brobecker <brobecker@adacore.com>
14666
14667 * copyright.py (main): Exit if run from the wrong directory.
14668
5dd8bf88
JB
146692020-01-01 Joel Brobecker <brobecker@adacore.com>
14670
14671 * top.c (print_gdb_version): Change copyright year to 2020.
14672
9f71dacb 146732020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 14674
9f71dacb 14675 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 14676
9f71dacb 14677For older changes see ChangeLog-2019.
c906108c
SS
14678\f
14679Local Variables:
14680mode: change-log
14681left-margin: 8
14682fill-column: 74
14683version-control: never
57da7796 14684coding: utf-8
c906108c 14685End: