]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Add reprocessing flag to struct attribute
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
fe56917a
TT
12020-09-29 Tom Tromey <tom@tromey.com>
2
3 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
4 (read_attribute_reprocess, read_attribute_value): Update.
5 (read_attribute): Clear requires_reprocessing.
6 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
7 form_requires_reprocessing>: New methods.
8 <string_init>: Clear requires_reprocessing.
9 <set_unsigned_reprocess>: New method.
10 <name>: Shrink by one bit.
11 <requires_reprocessing>: New member.
12 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
13 method.
14
414ad644
TT
152020-09-29 Tom Tromey <tom@tromey.com>
16
17 * dwarf2/read.c (read_attribute_value): Update.
18 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
19 set_unsigned>: New methods.
20 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
21
1bc397c5
TT
222020-09-29 Tom Tromey <tom@tromey.com>
23
24 * dwarf2/read.c (get_alignment, read_array_order)
25 (read_attribute_value, dwarf2_const_value_attr)
26 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
27 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
28 New methods.
29 (DW_SND): Remove.
30
630ed6b9
TT
312020-09-29 Tom Tromey <tom@tromey.com>
32
33 * dwarf2/read.c (read_attribute_value, lookup_die_type)
34 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
35 Update.
36 * dwarf2/attribute.h (struct attribute) <as_signature,
37 set_signature>: New methods.
38 (DW_SIGNATURE): Remove.
39
9d2246fc
TT
402020-09-29 Tom Tromey <tom@tromey.com>
41
42 * dwarf2/read.c (read_call_site_scope)
43 (handle_data_member_location, dwarf2_add_member_fn)
44 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
45 (partial_die_info::read, read_attribute_value)
46 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
47 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
48 (dwarf2_symbol_mark_computed): Update.
49 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
50 methods.
51 (DW_BLOCK): Remove.
52 * dwarf2/attribute.c (attribute::form_is_block): Add
53 DW_FORM_data16.
54
c6481205
TT
552020-09-29 Tom Tromey <tom@tromey.com>
56
57 * dwarf2/read.c (read_cutu_die_from_dwo)
58 (read_attribute_reprocess, read_attribute_value, read_attribute)
59 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
60 (dwarf2_fetch_constant_bytes): Update.
61 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
62 <set_string_noncanonical, set_string_canonical>: New methods.
63 <string_is_canonical>: Update comment.
64 <canonical_string_p>: Add assert.
65 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
66 * dwarf2/attribute.c (attribute::form_is_string): New method.
67 (attribute::string): Use it.
68
3b64bf15
TT
692020-09-29 Tom Tromey <tom@tromey.com>
70
71 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
72 (dump_die_shallow): Use canonical_string_p.
73 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
74 method.
75
2c830f54
TT
762020-09-29 Tom Tromey <tom@tromey.com>
77
78 * dwarf2/read.c (partial_die_info::read)
79 (dwarf2_const_value_attr, anonymous_struct_prefix, )
80 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
81 attribute::as_string.
82
6c412691
TT
832020-09-29 Tom Tromey <tom@tromey.com>
84
85 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
86 DW_ADDR.
87 (attribute::string): Don't use DW_STRING.
88 (attribute::get_ref_die_offset): Don't use DW_UNSND.
89 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
90
95f982e5
TT
912020-09-29 Tom Tromey <tom@tromey.com>
92
93 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
94 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
95 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
96 * dwarf2/attribute.h (struct attribute): Rename methods.
97 * dwarf2/attribute.c (attribute::as_address): Rename from
98 value_as_address.
99 (attribute::as_string): Rename from value_as_string.
100
f800b00e
TT
1012020-09-29 Tom Tromey <tom@tromey.com>
102
103 * dwarf2/read.c (partial_die_info::read) <case
104 DW_AT_linkage_name>: Use value_as_string.
105 (dwarf2_string_attr): Use value_as_string.
106 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
107 method.
108 * dwarf2/attribute.c (attribute::value_as_string): New method.
109
de38d64a
PA
1102020-09-29 Pedro Alves <pedro@palves.net>
111
112 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
113 defined before using '#pragma GCC diagnostic' instead of checking
114 __clang__.
115
9aed480c
TT
1162020-09-28 Tom Tromey <tom@tromey.com>
117
118 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
119 (handle_signal_stop): Update.
120 * procfs.c (procfs_target::insert_watchpoint): Update.
121 * target.h (target_have_steppable_watchpoint): Now a function.
122
8a3ecb79
TT
1232020-09-28 Tom Tromey <tom@tromey.com>
124
125 * infrun.c (set_schedlock_func): Update.
126 * target.h (target_can_lock_scheduler): Now a function.
127
55f6301a
TT
1282020-09-28 Tom Tromey <tom@tromey.com>
129
130 * inferior.h (class inferior) <has_execution>: Update.
131 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
132 * valops.c (find_function_in_inferior)
133 (value_allocate_space_in_inferior): Update.
134 * top.c (kill_or_detach): Update.
135 * target.c (target_preopen, set_target_permissions): Update.
136 (target_has_execution_current): Remove.
137 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
138 Update.
139 * solib.c (update_solib_list, reload_shared_libraries): Update.
140 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
141 * solib-dsbt.c (enable_break): Update.
142 * score-tdep.c (score7_fetch_inst): Update.
143 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
144 Update.
145 * remote.c (remote_target::start_remote)
146 (remote_target::remote_check_symbols, remote_target::open_1)
147 (remote_target::remote_detach_1, remote_target::verify_memory)
148 (remote_target::xfer_partial, remote_target::read_description)
149 (remote_target::get_min_fast_tracepoint_insn_len): Update.
150 * record-full.c (record_full_open_1): Update.
151 * record-btrace.c (record_btrace_target_open): Update.
152 * objc-lang.c (lookup_objc_class, lookup_child_selector)
153 (value_nsstring): Update.
154 * linux-thread-db.c (add_thread_db_info)
155 (thread_db_find_new_threads_silently, check_thread_db_callback)
156 (try_thread_db_load_1, record_thread): Update.
157 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
158 Update.
159 * linux-fork.c (checkpoint_command): Update.
160 * infrun.c (set_non_stop, set_observer_mode)
161 (check_multi_target_resumption, for_each_just_stopped_thread)
162 (maybe_remove_breakpoints, normal_stop)
163 (class infcall_suspend_state): Update.
164 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
165 (info_program_command, attach_command): Update.
166 * infcall.c (call_function_by_hand_dummy): Update.
167 * inf-loop.c (inferior_event_handler): Update.
168 * gcore.c (gcore_command, derive_heap_segment): Update.
169 * exec.c (exec_file_command): Update.
170 * eval.c (evaluate_subexp): Update.
171 * compile/compile.c (compile_to_object): Update.
172 * cli/cli-dump.c (restore_command): Update.
173 * breakpoint.c (update_watchpoint)
174 (update_inserted_breakpoint_locations)
175 (insert_breakpoint_locations, get_bpstat_thread): Update.
176 * target.h (target_has_execution): Remove macro.
177 (target_has_execution_current): Don't declare.
178 (target_has_execution): Rename from target_has_execution_1. Add
179 argument default.
180
05374cfd
TT
1812020-09-28 Tom Tromey <tom@tromey.com>
182
183 * mi/mi-main.c (exec_reverse_continue)
184 (mi_cmd_list_target_features): Update.
185 * infrun.c (set_exec_direction_func): Update.
186 * target.c (default_execution_direction): Update.
187 * reverse.c (exec_reverse_once): Update.
188 * target.h (target_can_execute_reverse): Now a function.
189
9dccd06e
TT
1902020-09-28 Tom Tromey <tom@tromey.com>
191
192 * tui/tui-regs.c (tui_get_register)
193 (tui_data_window::show_registers): Update.
194 * thread.c (scoped_restore_current_thread::restore)
195 (scoped_restore_current_thread::scoped_restore_current_thread):
196 Update.
197 * regcache-dump.c (regcache_print): Update.
198 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
199 Update.
200 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
201 * mep-tdep.c (current_me_module, current_options): Update.
202 * linux-thread-db.c (thread_db_load): Update.
203 * infcmd.c (registers_info, info_vector_command)
204 (info_float_command): Update.
205 * ia64-tdep.c (ia64_frame_prev_register)
206 (ia64_sigtramp_frame_prev_register): Update.
207 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
208 * gcore.c (derive_stack_segment): Update.
209 * frame.c (get_current_frame, has_stack_frames): Update.
210 * findvar.c (language_defn::read_var_value): Update.
211 * arm-tdep.c (arm_pc_is_thumb): Update.
212 * target.c (target_has_registers): Rename from
213 target_has_registers_1.
214 * target.h (target_has_registers): Remove macro.
215 (target_has_registers): Rename from target_has_registers_1.
216
841de120
TT
2172020-09-28 Tom Tromey <tom@tromey.com>
218
219 * windows-tdep.c (tlb_make_value): Update.
220 * tui/tui-regs.c (tui_data_window::show_registers): Update.
221 * thread.c (scoped_restore_current_thread::restore)
222 (scoped_restore_current_thread::scoped_restore_current_thread)
223 (thread_command): Update.
224 * stack.c (backtrace_command_1, frame_apply_level_command)
225 (frame_apply_all_command, frame_apply_command): Update.
226 * infrun.c (siginfo_make_value, restore_infcall_control_state):
227 Update.
228 * gcore.c (derive_stack_segment): Update.
229 * frame.c (get_current_frame, has_stack_frames): Update.
230 * auxv.c (info_auxv_command): Update.
231 * ada-tasks.c (ada_build_task_list): Update.
232 * target.c (target_has_stack): Rename from target_has_stack_1.
233 * target.h (target_has_stack): Remove macro.
234 (target_has_stack): Rename from target_has_stack_1.
235
a739972c
TT
2362020-09-28 Tom Tromey <tom@tromey.com>
237
238 * target.c (target_has_memory): Rename from target_has_memory_1.
239 * tui/tui-regs.c (tui_data_window::show_registers): Update.
240 * thread.c (scoped_restore_current_thread::restore)
241 (scoped_restore_current_thread::scoped_restore_current_thread):
242 Update.
243 * frame.c (get_current_frame, has_stack_frames): Update.
244 * target.h (target_has_memory): Remove macro.
245 (target_has_memory): Rename from target_has_memory_1.
246
5b8a4776
TT
2472020-09-28 Tom Tromey <tom@tromey.com>
248
249 * target.c (target_has_all_memory_1): Remove.
250 * target.h (target_has_all_memory): Remove define.
251 (target_has_all_memory_1): Don't declare.
252
bd356ec6
SM
2532020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
254
255 * ser-base.c: Adjust comments formatting.
256
2c72d5e5
TT
2572020-09-27 Tom Tromey <tom@tromey.com>
258
259 PR tui/25342:
260 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
261
35a98237
TT
2622020-09-27 Tom Tromey <tom@tromey.com>
263
264 PR tui/25342:
265 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
266
9e820dec
TT
2672020-09-27 Tom Tromey <tom@tromey.com>
268
269 * unittests/tui-selftests.c: Update.
270 * tui/tui-winsource.h (struct tui_source_window_base)
271 <extra_margin, show_line_number, refresh_pad>: New methods.
272 <m_max_length, m_pad>: New members.
273 (tui_copy_source_line): Update.
274 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
275 first_col, line_width, ndigits parameters. Add length.
276 (tui_source_window_base::show_source_line): Write to pad. Line
277 number now 0-based.
278 (tui_source_window_base::refresh_pad): New method.
279 (tui_source_window_base::show_source_content): Write to pad. Call
280 refresh_pad.
281 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
282 not refill.
283 (tui_source_window_base::update_exec_info): Call
284 show_line_number.
285 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
286 method.
287 <m_digits>: New member.
288 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
289 and m_max_length.
290 (tui_source_window::show_line_number): New method.
291 * tui/tui-io.h (tui_puts): Fix comment.
292 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
293 m_max_length.
294
c15c15c8
TT
2952020-09-27 Tom Tromey <tom@tromey.com>
296
297 * tui/tui-winsource.c
298 (tui_source_window_base::set_is_exec_point_at): Don't call
299 show_source_line.
300
149830c1
TT
3012020-09-27 Tom Tromey <tom@tromey.com>
302
303 * python/py-tui.c (class tui_py_window) <refresh_window>: New
304 method.
305 <erase>: Update.
306 <cursor_x, cursor_y>: Remove.
307 <m_inner_window>: New member.
308 (tui_py_window::rerender): Create inner window.
309 (tui_py_window::output): Write to inner window.
310
8f9929bb
GR
3112020-09-26 Gareth Rees <grees@undo.io> (tiny change)
312
313 PR python/26586
314 * cli/cli-script.c (execute_control_commands): don't set
315 instream to nullptr here as this breaks the from_tty argument
316 to gdb.execute in Python.
317 (execute_user_command): set instream to nullptr here instead.
318
956bdb59
SM
3192020-09-25 Simon Marchi <simon.marchi@efficios.com>
320
321 * infrun.h (infrun_debug_printf): Fix formatting.
322 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
323
3b93626b
SJ
3242020-09-25 Saagar Jha <saagar@saagarjha.com>
325
326 * compile/compile-object-load.h (struct munmap_list): Add
327 explicitly-defined move constructor.
328
b551a89f
TT
3292020-09-24 Tom Tromey <tromey@adacore.com>
330
331 PR tui/26638:
332 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
333 method.
334 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
335 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
336 (tui_prev_win): Rewrite.
337
99bb393f
HD
3382020-09-23 Hannes Domani <ssbssa@yahoo.de>
339
340 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
341 in WOW64 processes as SIGINT.
342 * nat/windows-nat.h: Make wow64_process a shared variable.
343 * windows-nat.c: Remove static wow64_process variable.
344
20a5fcbd
TT
3452020-09-23 Tom Tromey <tom@tromey.com>
346
347 PR symtab/25470:
348 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
349 offset and bit size.
350 * printcmd.c (print_scalar_formatted): Handle zero-length
351 integer.
352 (print_scalar_formatted): Use bit_size_differs_p.
353 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
354 constant.
355 (union type_specific): <int_stuff>: New member.
356 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
357 methods.
358 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
359 TYPE_SPECIFIC_FIELD.
360 (recursive_dump_type, copy_type_recursive): Update.
361 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
362 DW_AT_data_bit_offset.
363
bac51ab7
TT
3642020-09-23 Tom Tromey <tom@tromey.com>
365
366 * utils.h (class gdb_argv): Add move operators.
367 <append>: New methods.
368 * compile/compile.c (build_argc_argv): Remove.
369 (compile_args_argc): Remove.
370 (compile_args_argv): Change type.
371 (set_compile_args): Simplify.
372 (append_args): Remove.
373 (filter_args): Remove argcp parameter.
374 (get_args): Return gdb_argv. Simplify.
375 (compile_to_object): Update.
376
92677124
TT
3772020-09-23 Tom Tromey <tom@tromey.com>
378
379 * compile/compile-object-run.c (do_module_cleanup)
380 <~do_module_cleanup> :Remove.
381 (do_module_cleanup): Update.
382 * compile/compile-object-load.h (struct munmap_list): Add move
383 assignment operator.
384 <source_file>: Now a std::string.
385 <munmap_list>: Rename. No longer a pointer.
386 * compile/compile-object-load.c (struct setup_sections_data): Add
387 constructor.
388 <setup_one_section>: Declare.
389 <munmap_list>: Move earlier.
390 <m_bfd>: New member.
391 <m_last_size, m_last_section_first, m_last_prot,
392 m_last_max_alignment>: Rename, add initializers where needed.
393 (setup_sections_data::setup_one_section): Rename from
394 setup_sections. Update.
395 (compile_object_load): Update. Don't use bfd_map_over_sections.
396
e616f60a
TT
3972020-09-23 Tom Tromey <tom@tromey.com>
398
399 * compile/compile-object-run.c (struct do_module_cleanup): Add
400 parameters to constructor. Update destructor.
401 <source_file, scope, scope_data, out_value_type, out_value_addr,
402 munmap_list_head, objfile_name_string>: Remove.
403 <module>: New member.
404 (do_module_cleanup): Update.
405 (compile_object_run): Update.
406
e947a848
TT
4072020-09-23 Tom Tromey <tom@tromey.com>
408
409 * compile/compile.c (eval_compile_command): Update.
410 * compile/compile-object-run.h (compile_object_run): Take a
411 compile_module_up.
412 * compile/compile-object-run.c (compile_object_run): Take a
413 compile_module_up.
414 * compile/compile-object-load.h (struct compile_module): Add
415 constructor, destructor.
416 (compile_module_up): New typedef.
417 (compile_object_load): Return compile_object_up.
418 * compile/compile-object-load.c (compile_object_load): Return
419 compile_module_up.
420
0dbf6ee6
TT
4212020-09-23 Tom Tromey <tom@tromey.com>
422
423 * compile/compile-object-run.c (struct do_module_cleanup): Add
424 constructor, destructor.
425 <objfile_name_string>: Don't use struct hack.
426 (do_module_cleanup): Use delete.
427 (compile_object_run): Use new.
428
ebe824f5
TT
4292020-09-23 Tom Tromey <tom@tromey.com>
430
431 * compile/compile-cplus-types.c
432 (compile_cplus_convert_struct_or_union): Use std::vector.
433 (compile_cplus_convert_func): Likewise.
434 * compile/compile-c-types.c (convert_func): Use std::vector.
435
5dd918d9
TT
4362020-09-21 Tom Tromey <tromey@adacore.com>
437
438 * sparc-tdep.c (sparc32_skip_prologue): Use
439 skip_prologue_using_sal.
440
5486c517
TT
4412020-09-19 Tom Tromey <tom@tromey.com>
442
443 * symfile.c (add_section_size_callback): Remove.
444 (load_one_section): Rename from load_section_callback. Change
445 parameters.
446 (generic_load): Use foreach.
447
8a6bb1d1
TT
4482020-09-19 Tom Tromey <tom@tromey.com>
449
450 * exec.c (add_to_section_table): Remove.
451 (build_section_table): Use foreach.
452
08f93a1a
TT
4532020-09-19 Tom Tromey <tom@tromey.com>
454
455 * elfread.c (elf_locate_sections): Change parameters.
456 (elf_symfile_read): Use foreach.
457
03cd72b8
TT
4582020-09-19 Tom Tromey <tom@tromey.com>
459
460 * cli/cli-dump.c (struct callback_data): Remove.
461 (restore_one_section): Rename from restore_section_callback.
462 Change parameters.
463 (restore_binary_file): Change parameters.
464 (restore_command): Use foreach.
465
f4f2b85f
TT
4662020-09-19 Tom Tromey <tom@tromey.com>
467
468 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
469 (gcore_copy_callback): Likewise.
470 (gcore_memory_sections): Use foreach.
471
b35c1d1c
TT
4722020-09-19 Tom Tromey <tom@tromey.com>
473
474 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
475 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
476 parameters.
477 (generic_elf_osabi_sniffer): Use foreach.
478 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
479 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
480
5bb6e9dd
TT
4812020-09-19 Tom Tromey <tom@tromey.com>
482
483 * dwarf2/read.c (locate_dwz_sections): Change parameters.
484 (dwarf2_get_dwz_file): Use foreach.
485 (dwarf2_locate_dwo_sections): Change parameters.
486 (open_and_init_dwo_file): Use foreach.
487 (dwarf2_locate_common_dwp_sections): Change parameters.
488 (open_and_init_dwp_file): Use foreach.
489
ad7277da
TT
4902020-09-19 Tom Tromey <tom@tromey.com>
491
492 * symfile.h: (find_lowest_section): Don't declare.
493 * symfile.c (find_lowest_section): Now static. Change
494 parameters.
495 (struct place_section_arg): Remove.
496 (place_section): Change parameters.
497 (addr_info_make_relative): Use foreach.
498 (symfile_dummy_outputs): Remove.
499 (default_symfile_relocate): Use foreach.
500
cb814f2e
TT
5012020-09-19 Tom Tromey <tom@tromey.com>
502
503 * objfiles.c (add_to_objfile_sections): Rename from
504 add_to_objfile_sections_full.
505 (add_to_objfile_sections): Remove.
506 (build_objfile_section_table): Use foreach.
507
3cabfd26
TT
5082020-09-19 Tom Tromey <tom@tromey.com>
509
510 * stap-probe.c (get_stap_base_address_1): Remove.
511 (get_stap_base_address): Use foreach.
512
1ce51eb5
TT
5132020-09-19 Tom Tromey <tom@tromey.com>
514
515 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
516 parameters.
517 (gdb_bfd_close_or_warn): Use foreach.
518
a190fabb
TT
5192020-09-19 Tom Tromey <tom@tromey.com>
520
521 * corelow.c (add_to_thread_list): Change parameters.
522 (core_target_open): Use foreach.
523
cafb0d81
TT
5242020-09-19 Tom Tromey <tom@tromey.com>
525
526 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
527 existing function.
528
c8d5abea
AB
5292020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
530
531 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
532 for arrays.
533
6d816919
AB
5342020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
535
536 * eval.c: Remove 'f-lang.h' include.
537 (value_f90_subarray): Moved to f-lang.c.
538 (eval_call): Renamed to...
539 (evaluate_subexp_do_call): ...this, is no longer static, header
540 comment moved into header file.
541 (evaluate_funcall): Update call to eval_call.
542 (skip_undetermined_arglist): Moved to f-lang.c.
543 (fortran_value_subarray): Likewise.
544 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
545 moved to evaluate_subexp_f.
546 (calc_f77_array_dims): Moved to f-lang.c
547 * expprint.c (print_subexp_funcall): New function.
548 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
549 moved to print_subexp_f, OP_FUNCALL uses new function.
550 (dump_subexp_body_funcall): New function.
551 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
552 moved to dump_subexp_f, OP_FUNCALL uses new function.
553 * expression.h (evaluate_subexp_do_call): Declare.
554 * f-lang.c (value_f90_subarray): Moved from eval.c.
555 (skip_undetermined_arglist): Likewise.
556 (calc_f77_array_dims): Likewise.
557 (fortran_value_subarray): Likewise.
558 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
559 (operator_length_f): Likewise.
560 (print_subexp_f): Likewise.
561 (dump_subexp_body_f): Likewise.
562 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
563 declaration of this operation to here.
564 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
565 support moved to operator_length_f.
566 * parser-defs.h (dump_subexp_body_funcall): Declare.
567 (print_subexp_funcall): Declare.
568 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
569 fortran-operator.def.
570
8c37706a
AB
5712020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
572
573 * eval.c (fortran_value_subarray): New function, content is taken
574 from...
575 (evaluate_subexp_standard): ...here, in two places. Now arrays
576 and strings both call the new function.
577 (calc_f77_array_dims): Add header comment, handle strings.
578
14f9473c
VC
5792020-09-18 Victor Collod <vcollod@nvidia.com>
580
581 PR gdb/26635
582 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
583 (i386_analyze_prologue): Call i386_skip_endbr.
584
b60cea74
TT
5852020-09-18 Tom Tromey <tromey@adacore.com>
586
587 * windows-nat.c (struct windows_nat_target) <wait>: Update.
588 (windows_nat_target::wait): Update.
589 * target/wait.h (enum target_wait_flag): New. Use
590 DEF_ENUM_FLAGS_TYPE.
591 * target/target.h (target_wait): Change type of options.
592 * target.h (target_options_to_string, default_target_wait):
593 Update.
594 (struct target_ops) <wait>: Change type of options.
595 * target.c (target_wait, default_target_wait, do_option): Change
596 type of "options".
597 (target_options_to_string): Likewise.
598 * target-delegates.c: Rebuild.
599 * target-debug.h (target_debug_print_target_wait_flags): Rename
600 from target_debug_print_options.
601 * sol-thread.c (class sol_thread_target) <wait>: Update.
602 (sol_thread_target::wait): Update.
603 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
604 (rs6000_nat_target::wait): Update.
605 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
606 Update.
607 (remote_target::wait_ns, remote_target::wait_as): Change type of
608 "options".
609 (remote_target::wait): Update.
610 * remote-sim.c (struct gdbsim_target) <wait>: Update.
611 (gdbsim_target::wait): Update.
612 * record-full.c (class record_full_base_target) <wait>: Update.
613 (record_full_wait_1): Change type of "options".
614 (record_full_base_target::wait): Update.
615 * record-btrace.c (class record_btrace_target) <wait>: Update.
616 (record_btrace_target::wait): Update.
617 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
618 Update.
619 (ravenscar_thread_target::wait): Update.
620 * procfs.c (class procfs_target) <wait>: Update.
621 (procfs_target::wait): Update.
622 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
623 * obsd-nat.c (obsd_nat_target::wait): Update.
624 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
625 (nto_procfs_target::wait): Update.
626 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
627 * nbsd-nat.c (nbsd_wait): Change type of "options".
628 (nbsd_nat_target::wait): Update.
629 * linux-thread-db.c (class thread_db_target) <wait>: Update.
630 (thread_db_target::wait): Update.
631 * linux-nat.h (class linux_nat_target) <wait>: Update.
632 * linux-nat.c (linux_nat_target::wait): Update.
633 (linux_nat_wait_1): Update.
634 * infrun.c (do_target_wait_1, do_target_wait): Change type of
635 "options".
636 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
637 * inf-ptrace.c (inf_ptrace_target::wait): Update.
638 * go32-nat.c (struct go32_nat_target) <wait>: Update.
639 (go32_nat_target::wait): Update.
640 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
641 * gnu-nat.c (gnu_nat_target::wait): Update.
642 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
643 * fbsd-nat.c (fbsd_nat_target::wait): Update.
644 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
645 * darwin-nat.c (darwin_nat_target::wait): Update.
646 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
647 (bsd_uthread_target::wait): Update.
648 * aix-thread.c (class aix_thread_target) <wait>: Update.
649 (aix_thread_target::wait): Update.
650
0295dde6
AB
6512020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
652
653 * compile/compile-object-run.c (create_copied_type_recursive): New
654 function.
655 (compile_object_run): Use new function.
656
d3483b43
JT
6572020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
658
659 * NEWS: Mention x86_64 Cygwin core file support.
660
e7d612ad
JT
6612020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
662
663 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
664 (core_process_module_section): Handle NOTE_INFO_MODULE64.
665
aff9d387
JT
6662020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
667
62a5151b
JT
668 * windows-tdep.h: Add prototypes.
669 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
670 (i386_windows_core_pid_to_str): Move and rename ...
671 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
672 (windows_core_pid_to_str): ... and here.
673 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
674
6752020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
676 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
677 (amd64_windows_init_abi_common): ... and register.
678
7d155da3
JT
6792020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
680
681 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
682 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
683
e8ef12b9
PA
6842020-09-18 Pedro Alves <pedro@palves.net>
685
686 PR gdb/26631
687 * thread.c (thread_find_command): Switch inferior before calling
688 target methods.
689
c1e1314d
TT
6902020-09-17 Tom Tromey <tromey@adacore.com>
691
692 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
693 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
694 (tdesc_arch_data_up): New typedef.
695 (tdesc_use_registers, tdesc_data_alloc): Update.
696 (tdesc_data_cleanup): Don't declare.
697 * target-descriptions.c (tdesc_data_alloc): Return a
698 tdesc_arch_data_up.
699 (tdesc_arch_data_deleter::operator()): Rename from
700 tdesc_data_cleanup. Change argument type.
701 (tdesc_use_registers): Change early_data to an rvalue reference.
702 (tdesc_use_registers): Don't use delete.
703 * sparc-tdep.c (sparc32_gdbarch_init): Update.
704 * s390-tdep.c (s390_gdbarch_init): Update.
705 * rx-tdep.c (rx_gdbarch_init): Update.
706 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
707 * riscv-tdep.c (riscv_gdbarch_init): Update.
708 * or1k-tdep.c (or1k_gdbarch_init): Update.
709 * nios2-tdep.c (nios2_gdbarch_init): Update.
710 * nds32-tdep.c (nds32_gdbarch_init): Update.
711 * mips-tdep.c (mips_gdbarch_init): Update.
712 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
713 * m68k-tdep.c (m68k_gdbarch_init): Update.
714 * i386-tdep.c (i386_gdbarch_init): Update.
715 * arm-tdep.c (arm_gdbarch_init): Update.
716 * arc-tdep.c (arc_tdesc_init): Update.
717 (arc_gdbarch_init): Update.
718 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
719
0363df3d
HD
7202020-09-17 Hannes Domani <ssbssa@yahoo.de>
721
722 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
723 for WOW64 processes.
724
280a9412
TT
7252020-09-17 Tom Tromey <tom@tromey.com>
726
727 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
728
6108fd18
TT
7292020-09-17 Tom Tromey <tom@tromey.com>
730
731 * value.c (preserve_values): Update.
732 * python/py-type.c (save_objfile_types): Update.
733 * guile/scm-type.c (save_objfile_types): Update.
734 * gdbtypes.h (create_copied_types_hash): Return htab_up.
735 * gdbtypes.c (create_copied_types_hash): Return htab_up.
736 * compile/compile-object-run.c (compile_object_run): Update.
737
fa9b1164
TT
7382020-09-17 Tom Tromey <tom@tromey.com>
739
740 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
741 Remove.
742 <m_table>: Now htab_up.
743 * typeprint.c (typedef_hash_table::recursively_update)
744 (typedef_hash_table::add_template_parameters)
745 (typedef_hash_table::typedef_hash_table): Update.
746 (typedef_hash_table::~typedef_hash_table): Remove.
747 (typedef_hash_table::typedef_hash_table)
748 (typedef_hash_table::find_global_typedef)
749 (typedef_hash_table::find_typedef): Update.
750
eb53f105
TT
7512020-09-17 Tom Tromey <tom@tromey.com>
752
753 * target-descriptions.c (tdesc_use_registers): Use htab_up.
754
7a8a5d47
TT
7552020-09-17 Tom Tromey <tom@tromey.com>
756
757 * linespec.c (class decode_compound_collector)
758 <~decode_compound_collector>: Remove.
759 <m_unique_syms>: Now htab_up.
760 (decode_compound_collector::operator ()): Update.
761 (class symtab_collector) <~symtab_collector>: Remove.
762 <m_symtab_table>: Now htab_up.
763 (symtab_collector::operator ()): Update.
764
99032cfc
TT
7652020-09-17 Tom Tromey <tom@tromey.com>
766
767 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
768 (filename_seen_cache::clear): Update.
769 (~filename_seen_cache): Remove.
770 (filename_seen_cache::seen): Update.
771 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
772 htab_up.
773 <~filename_seen_cache>: Remove.
774 <traverse>: Update.
775
32580f6d
TT
7762020-09-17 Tom Tromey <tom@tromey.com>
777
778 * completer.c (completion_tracker::discard_completions)
779 (completion_tracker::~completion_tracker)
780 (completion_tracker::maybe_add_completion)
781 (completion_tracker::remove_completion)
782 (completion_tracker::recompute_lowest_common_denominator)
783 (completion_tracker::build_completion_result): Update.
784 * completer.h (class completion_tracker) <have_completions>:
785 Update.
786 <m_entries_hash>: Now htab_up.
787
c1fb9836
TT
7882020-09-17 Tom Tromey <tom@tromey.com>
789
790 * breakpoint.c (ambiguous_names_p): Use htab_up.
791
88f07206
TT
7922020-09-17 Tom Tromey <tom@tromey.com>
793
794 * auto-load.c (struct auto_load_pspace_info)
795 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
796 <loaded_script_files, loaded_script_texts>: Change type to
797 htab_up.
798 (~auto_load_pspace_info) Remove.
799 (init_loaded_scripts_info, maybe_add_script_file)
800 (maybe_add_script_text, auto_load_info_scripts): Update.
801
9519b2ee
TT
8022020-09-17 Tom Tromey <tromey@adacore.com>
803
804 * c-exp.y (name_obstack): Now static.
805
d2cd4113
CC
8062020-09-17 Chungyi Chi <demonic@csie.io>
807
808 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
809
b650a282
SM
8102020-09-16 Simon Marchi <simon.marchi@efficios.com>
811
812 * breakpoint.h (init_catchpoint): Change int parameter to bool.
813 (add_solib_catchpoint): Likewise.
814 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
815 to bool.
816 (add_solib_catchpoint): Change int parameter/variable to bool.
817 (catch_load_or_unload): Likewise.
818 (init_catchpoint): Likewise.
819 (create_fork_vfork_event_catchpoint): Likewise.
820 (catch_fork_command_1): Likewise.
821 (catch_exec_command_1): Likewise.
822
4d0bcfcf
SM
8232020-09-16 Simon Marchi <simon.marchi@efficios.com>
824
825 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
826 Change instance_flags to m_instance_flags.
827
fe830662
TT
8282020-09-16 Tom Tromey <tromey@adacore.com>
829
830 PR gdb/26598:
831 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
832
fe5ddfc3
JB
8332020-09-16 John Baldwin <jhb@FreeBSD.org>
834
835 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
836 PL_FLAG_EXEC.
837 (fbsd_nat_target::insert_exec_catchpoint)
838 (fbsd_nat_target::remove_exec_catchpoint): Always define.
839 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
840 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
841
e911c666
JB
8422020-09-16 John Baldwin <jhb@FreeBSD.org>
843
844 * configure.ac: Remove check for kinfo_getvmmap().
845 * configure, config.in: Regenerate.
846 * fbsd-nat.c (fbsd_read_mapping): Remove
847 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
848 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
849 kinfo_get_vmmap() are always present.
850
1f17d372
JB
8512020-09-16 John Baldwin <jhb@FreeBSD.org>
852
853 * fbsd-nat.c: Always include support for
854 TARGET_OBJECT_SIGNAL_INFO.
855
bcb1da7f
JB
8562020-09-16 John Baldwin <jhb@FreeBSD.org>
857
858 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
859 sysctl and remove procfs fallback.
860
5515f729
JB
8612020-09-16 John Baldwin <jhb@FreeBSD.org>
862
863 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
864 * fbsd-nat.h: Likewise.
865
da1df1db
TBA
8662020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
867
868 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
869 argument.
870
0e25e767
AB
8712020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
872
873 * ada-lang.c (ada_language_data): Delete.
874 (ada_language): Remove references to ada_language_data.
875 * c-lang.c (c_language_data): Delete.
876 (c_language): Remove references to c_language_data.
877 (cplus_language_data): Delete.
878 (cplus_language): Remove references to cplus_language_data.
879 (asm_language_data): Delete.
880 (asm_language): Remove references to asm_language_data.
881 (minimal_language_data): Delete.
882 (minimal_language): Remove references to minimal_language_data.
883 * d-lang.c (d_language_data): Delete.
884 (d_language): Remove references to d_language_data.
885 * f-lang.c (f_language_data): Delete.
886 (f_language): Remove references to f_language_data.
887 * go-lang.c (go_language_data): Delete.
888 (go_language): Remove references to go_language_data.
889 * language.c (unknown_language_data): Delete.
890 (unknown_language): Remove references to unknown_language_data.
891 (auto_language_data): Delete.
892 (auto_language): Remove references to auto_language_data.
893 * language.h (language_data): Delete struct.
894 (language_defn): No longer inherit from language_data.
895 * m2-lang.c (m2_language_data): Delete.
896 (m2_language): Remove references to m2_language_data.
897 * objc-lang.c (objc_language_data): Delete.
898 (objc_language): Remove references to objc_language_data.
899 * opencl-lang.c (opencl_language_data): Delete.
900 (opencl_language): Remove references to opencl_language_data.
901 * p-lang.c (pascal_language_data): Delete.
902 (pascal_language): Remove references to pascal_language_data.
903 * rust-lang.c (rust_language_data): Delete.
904 (rust_language): Remove references to rust_language_data.
905
b7c6e27d
AB
9062020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
907
908 * ada-lang.c (ada_language_data): Remove la_op_print_tab
909 initializer.
910 (ada_language::opcode_print_table): New member function.
911 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
912 (c_language::opcode_print_table): New member function.
913 (cplus_language_data): Remove la_op_print_tab initializer.
914 (cplus_language::opcode_print_table): New member function.
915 (asm_language_data): Remove la_op_print_tab initializer.
916 (asm_language::opcode_print_table): New member function.
917 (minimal_language_data): Remove la_op_print_tab initializer.
918 (minimal_language::opcode_print_table): New member function.
919 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
920 (d_language::opcode_print_table): New member function.
921 * expprint.c (print_subexp_standard): Update call to
922 opcode_print_table.
923 (op_string): Likewise.
924 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
925 (f_language::opcode_print_table): New member function.
926 * go-lang.c (go_language_data): Remove la_op_print_tab
927 initializer.
928 (go_language::opcode_print_table): New member function.
929 * language.c (unknown_language_data): Remove la_op_print_tab
930 initializer.
931 (unknown_language::opcode_print_table): New member function.
932 (auto_language_data): Remove la_op_print_tab initializer.
933 (auto_language::opcode_print_table): New member function.
934 * language.h (language_data): Remove la_op_print_tab field.
935 (language_defn::opcode_print_table): Declare new member function.
936 * m2-lang.c (m2_language_data): Remove la_op_print_tab
937 initializer.
938 (m2_language::opcode_print_table): New member function.
939 * objc-lang.c (objc_language_data): Remove la_op_print_tab
940 initializer.
941 (objc_language::opcode_print_table): New member function.
942 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
943 initializer.
944 (opencl_language::opcode_print_table): New member function.
945 * p-lang.c (pascal_language_data): Remove la_op_print_tab
946 initializer.
947 (pascal_language::opcode_print_table): New member function.
948 * rust-lang.c (rust_language_data): Remove la_op_print_tab
949 initializer.
950 (rust_language::opcode_print_table): New member function.
951
5aba6ebe
AB
9522020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
953
954 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
955 (ada_language::expression_ops): New member function.
956 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
957 (c_language::expression_ops): New member function.
958 (cplus_language_data): Remove la_exp_desc initializer.
959 (cplus_language::expression_ops): New member function.
960 (asm_language_data): Remove la_exp_desc initializer.
961 (asm_language::expression_ops): New member function.
962 (minimal_language_data): Remove la_exp_desc initializer.
963 (minimal_language::expression_ops): New member function.
964 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
965 (d_language::expression_ops): New member function.
966 * eval.c (evaluate_subexp): Update call to expression_ops.
967 * expprint.c (print_subexp): Likewise.
968 (op_name): Likewise.
969 (dump_subexp_body): Likewise.
970 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
971 (f_language::expression_ops): New member function.
972 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
973 (go_language::expression_ops): New member function.
974 * language.c (language_defn::expression_ops): New function.
975 (unknown_language_data): Remove la_exp_desc initializer.
976 (auto_language_data): Likewise.
977 * language.h (language_data): Remove la_exp_desc field.
978 (language_defn::expression_ops): Declare new member function.
979 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
980 (m2_language::expression_ops): New member function.
981 * objc-lang.c (objc_language_data): Remove la_exp_desc
982 initializer.
983 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
984 initializer.
985 (opencl_language::expression_ops): New member function.
986 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
987 * parse.c (operator_length): Update call to expression_ops.
988 (exp_iterate): Likewise.
989 * rust-lang.c (rust_language_data): Remove la_exp_desc
990 initializer.
991 (ruse_language::expression_ops): New member function.
992
b63a3f3f
AB
9932020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
994
995 * ada-lang.c (ada_language_data): Remove la_varobj_ops
996 initializer.
997 (ada_language::varobj_ops): New member function.
998 * c-lang.c (c_language_data): Remove la_varobj_ops
999 initializer.
1000 (cplus_language_data): Likewise.
1001 (cplus_language::varobj_ops): New member function.
1002 (asm_language_data): Remove la_varobj_ops initializer.
1003 (minimal_language_data): Likewise.
1004 * d-lang.c (d_language_data): Likewise.
1005 * f-lang.c (f_language_data): Likewise.
1006 * go-lang.c (go_language_data): Likewise.
1007 * language.c (language_defn::varobj_ops): New function.
1008 (unknown_language_data): Remove la_varobj_ops
1009 initializer.
1010 (auto_language_data): Likewise.
1011 * language.h (language_data): Remove la_varobj_ops field.
1012 (language_defn::varobj_ops): Declare new member function.
1013 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
1014 * objc-lang.c (objc_language_data): Likewise.
1015 * opencl-lang.c (opencl_language_data): Likewise.
1016 * p-lang.c (pascal_language_data): Likewise.
1017 * rust-lang.c (rust_language_data): Likewise.
1018 * varobj.c (varobj_create): Update call to varobj_ops.
1019 * varobj.h (default_varobj_ops): Delete define.
1020
1ac14a04
AB
10212020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1022
1023 * ada-lang.c (ada_language_data): Remove la_macro_expansion
1024 initializer.
1025 * c-lang.c (c_language_data): Likewise.
1026 (c_language::macro_expansion): New member function.
1027 (cplus_language_data): Likewise.
1028 (cplus_language::macro_expansion): New member function.
1029 (asm_language_data): Likewise.
1030 (asm_language::macro_expansion): New member function.
1031 (minimal_language_data): Likewise.
1032 (minimal_language::macro_expansion): New member function.
1033 * d-lang.c (d_language_data): Remove la_macro_expansion
1034 initializer.
1035 * f-lang.c (f_language_data): Likewise.
1036 * go-lang.c (go_language_data): Likewise.
1037 * language.c (unknown_language_data): Likewise.
1038 (auto_language_data): Likewise.
1039 * language.h (language_data): Remove la_macro_expansion field.
1040 (language_defn::macro_expansion): New member function.
1041 * m2-lang.c (m2_language_data): Remove la_macro_expansion
1042 initializer.
1043 * objc-lang.c (objc_language_data): Likewise.
1044 (objc_language::macro_expansion): New member function.
1045 * opencl-lang.c (opencl_language_data): Likewise.
1046 (opencl_language::macro_expansion): New member function.
1047 * p-lang.c (pascal_language_data): Remove la_macro_expansion
1048 initializer.
1049 * rust-lang.c (rust_language_data): Likewise.
1050 * symtab.c (default_collect_symbol_completion_matches_break_on):
1051 Update call to macro_expansion.
1052
3a3440fb
AB
10532020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1054
1055 * ada-lang.c (ada_language_data): Remove la_array_ordering
1056 initializer.
1057 * c-lang.c (c_language_data): Likewise.
1058 (cplus_language_data): Likewise.
1059 (asm_language_data): Likewise.
1060 (minimal_language_data): Likewise.
1061 * d-lang.c (d_language_data): Likewise.
1062 * dwarf2/read.c (read_array_order): Update for call to
1063 array_ordering.
1064 * f-lang.c (f_language_data): Remove la_array_ordering
1065 initializer.
1066 (f_language::array_ordering): New member function.
1067 * go-lang.c (go_language_data): Remove la_array_ordering
1068 initializer.
1069 * language.c (unknown_language_data): Likewise.
1070 (auto_language_data): Likewise.
1071 * language.h (language_data): Delete la_array_ordering field.
1072 (language_defn::array_ordering): New member function.
1073 * m2-lang.c (m2_language_data): Remove la_array_ordering
1074 initializer.
1075 * objc-lang.c (objc_language_data): Likewise.
1076 * opencl-lang.c (opencl_language_data): Likewise.
1077 * p-lang.c (pascal_language_data): Likewise.
1078 * rust-lang.c (rust_language_data): Likewise.
1079
0d201fa4
AB
10802020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1081
1082 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
1083 initializer.
1084 * c-lang.c (c_language_data): Likewise.
1085 (cplus_language_data): Likewise.
1086 (asm_language_data): Likewise.
1087 (minimal_language_data): Likewise.
1088 * d-lang.c (d_language_data): Likewise.
1089 * f-lang.c (f_language_data): Likewise.
1090 (f_language::case_sensitivity): New member function.
1091 * go-lang.c (go_language_data): Remove la_case_sensitivity
1092 initializer.
1093 * language.c (enum case_mode): Moved here from language.h.
1094 (case_mode): Make static.
1095 (show_case_command): Update for case_sensitivity being a method.
1096 (set_case_command): Likewise.
1097 (set_range_case): Likewise.
1098 (unknown_language_data): Remove la_case_sensitivity initializer.
1099 (auto_language_data): Likewise.
1100 * language.h (case_mode): Delete, move enum declaration to
1101 language.c.
1102 (language_data): Delete la_case_sensitivity field.
1103 (language_defn::case_sensitivity): New member function.
1104 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
1105 initializer.
1106 * objc-lang.c (objc_language_data): Likewise.
1107 * opencl-lang.c (opencl_language_data): Likewise.
1108 * p-lang.c (pascal_language_data): Likewise.
1109 * rust-lang.c (rust_language_data): Likewise.
1110
efdf6a73
AB
11112020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1112
1113 * ada-lang.c (ada_language_data): Remove la_range_check
1114 initializer.
1115 * c-lang.c (c_language_data): Likewise.
1116 (cplus_language_data): Likewise.
1117 (asm_language_data): Likewise.
1118 (minimal_language_data): Likewise.
1119 * d-lang.c (d_language_data): Likewise.
1120 * f-lang.c (f_language_data): Likewise.
1121 (f_language::range_checking_on_by_default): New member function.
1122 * go-lang.c (go_language_data): Remove la_range_check initializer.
1123 * language.c (enum range_mode): Moved here from language.h.
1124 (range_mode): Made static.
1125 (show_range_command): Update to use
1126 range_checking_on_by_default.
1127 (set_range_command): Likewise.
1128 (set_range_case): Likewise.
1129 (unknown_language_data): Remove la_range_check initializer.
1130 (auto_language_data): Likewise.
1131 * language.h (range_mode): Delete. Enum definition moved to
1132 language.c.
1133 (language_data): Remove la_range_check field.
1134 (language_defn::range_checking_on_by_default): New member
1135 function.
1136 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
1137 (m2_language::range_checking_on_by_default): New member function.
1138 * objc-lang.c (objc_language_data): Remove la_range_check
1139 initializer.
1140 * opencl-lang.c (opencl_language_data): Likewise.
1141 * p-lang.c (pascal_language_data): Likewise.
1142 (pascal_language::range_checking_on_by_default): New member
1143 function.
1144 * rust-lang.c (rust_language_data): Remove la_range_check
1145 initializer.
1146 (rust_language::range_checking_on_by_default): New member
1147 function.
1148
bf92aec5
AB
11492020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1150
1151 * dwarf2/read.c (dwarf2_physname): Remove special case for
1152 language_go.
1153 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
1154 member function.
1155
d3355e4d
AB
11562020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1157
1158 * ada-lang.c (ada_language_data): Remove
1159 la_store_sym_names_in_linkage_form_p initializer.
1160 (ada_language::store_sym_names_in_linkage_form_p): New member
1161 function.
1162 * c-lang.c (c_language_data): Remove
1163 la_store_sym_names_in_linkage_form_p initializer.
1164 (c_language::store_sym_names_in_linkage_form_p): New member
1165 function.
1166 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
1167 initializer.
1168 (asm_language_data): Likewise.
1169 (asm_language::store_sym_names_in_linkage_form_p): New member
1170 function.
1171 (minimal_language_data): Remove
1172 la_store_sym_names_in_linkage_form_p initializer.
1173 (minimal_language::store_sym_names_in_linkage_form_p): New member
1174 function.
1175 * d-lang.c (d_language_data): Remove
1176 la_store_sym_names_in_linkage_form_p initializer.
1177 * dwarf2/read.c (dwarf2_physname): Update call to
1178 store_sym_names_in_linkage_form_p.
1179 * f-lang.c (f_language_data): Remove
1180 la_store_sym_names_in_linkage_form_p initializer.
1181 * go-lang.c (go_language_data): Remove
1182 la_store_sym_names_in_linkage_form_p initializer.
1183 * language.c (unknown_language_data): Remove
1184 la_store_sym_names_in_linkage_form_p initializer.
1185 (unknown_language::store_sym_names_in_linkage_form_p): New member
1186 function.
1187 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
1188 initializer.
1189 (auto_language::store_sym_names_in_linkage_form_p): New member
1190 function.
1191 * language.h (language_data): Remove
1192 la_store_sym_names_in_linkage_form_p member variable.
1193 (language_defn::store_sym_names_in_linkage_form_p): New member
1194 function.
1195 * m2-lang.c (m2_language_data): Remove
1196 la_store_sym_names_in_linkage_form_p initializer.
1197 * objc-lang.c (objc_language_data): Likewise.
1198 * opencl-lang.c (opencl_language_data): Likewise.
1199 * p-lang.c (pascal_language_data): Likewise.
1200 * rust-lang.c (rust_language_data): Likewise.
1201
22c12a6c
AB
12022020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1203
1204 * ada-lang.c (ada_language_data): Remove string_lower_bound
1205 initializer.
1206 * c-lang.c (c_language_data): Likewise.
1207 (cplus_language_data): Likewise.
1208 (asm_language_data): Likewise.
1209 (minimal_language_data): Likewise.
1210 * d-lang.c (d_language_data): Likewise.
1211 * f-lang.c (f_language_data): Likewise.
1212 * go-lang.c (go_language_data): Likewise.
1213 * language.c (unknown_language_data): Likewise.
1214 (auto_language_data): Likewise.
1215 * language.h (language_data): Remove string_lower_bound field.
1216 (language_defn::string_lower_bound): New member function.
1217 * m2-lang.c (m2_language_data): Remove string_lower_bound
1218 initializer.
1219 (m2_language::string_lower_bound): New member function.
1220 * objc-lang.c (objc_language_data): Remove string_lower_bound
1221 initializer.
1222 * opencl-lang.c (opencl_language_data): Likewise.
1223 * p-lang.c (pascal_language_data): Likewise.
1224 * rust-lang.c (rust_language_data): Likewise.
1225 * valops.c (value_cstring): Update call to string_lower_bound.
1226 (value_string): Likewise.
1227 * value.c (allocate_repeated_value): Likewise.
1228
1c236ddd
AB
12292020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1230
1231 * valops.c (value_repeat): Fix incorrect argument name in comment.
1232
67bd3fd5
AB
12332020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1234
1235 * ada-lang.c (ada_language_data): Remove c_style_arrays
1236 initializer.
1237 (ada_language::c_style_arrays_p): New member fuction.
1238 * c-lang.c (c_language_data): Remove c_style_arrays
1239 initializer.
1240 (cplus_language_data): Likewise.
1241 (asm_language_data): Likewise.
1242 (minimal_language_data): Likewise.
1243 * d-lang.c (d_language_data): Likewise.
1244 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
1245 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
1246 (f_language::c_style_arrays_p): New member function.
1247 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
1248 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
1249 * language.c (unknown_language_data): Remove c_style_arrays
1250 initializer.
1251 (auto_language_data): Likewise.
1252 * language.h (language_data): Remove c_style_arrays field.
1253 (language_defn::c_style_arrays_p): New member function.
1254 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
1255 (m2_language::c_style_arrays_p): New member function.
1256 * objc-lang.c (objc_language_data): Remove c_style_arrays
1257 initializer.
1258 * opencl-lang.c (opencl_language_data): Likewise.
1259 * p-lang.c (pascal_language_data): Likewise.
1260 * rust-lang.c (rust_language_data): Likewise.
1261 * valarith.c (value_subscript): Update call to c_style_arrays_p,
1262 and update local variable to a bool.
1263 * valops.c (value_cast): Update call to c_style_arrays_p.
1264 (value_array): Likewise.
1265 * value.c (coerce_array): Likewise.
1266
85967615
AB
12672020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1268
1269 * ada-lang.c (ada_language_data): Remove la_language initializer.
1270 * c-lang.c (c_language_data): Likewise.
1271 (cplus_language_data): Likewise.
1272 (asm_language_data): Likewise.
1273 (minimal_language_data): Likewise.
1274 * d-lang.c (d_language_data): Likewise.
1275 * f-lang.c (f_language_data): Likewise.
1276 * go-lang.c (go_language_data): Likewise.
1277 * language.c (unknown_language_data): Likewise.
1278 (auto_language_data): Likewise.
1279 * language.h (language_data): Remove la_language field.
1280 (language_defn::language_defn): Initialise la_language field.
1281 (language_defn::la_language): New member variable.
1282 * m2-lang.c (m2_language_data): Remove la_language field.
1283 * objc-lang.c (objc_language_data): Likewise.
1284 * opencl-lang.c (opencl_language_data): Likewise.
1285 * p-lang.c (pascal_language_data): Likewise.
1286 * rust-lang.c (rust_language_data): Likewise.
1287
e171d6f1
AB
12882020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1289
1290 * ada-lang.c (ada_extensions): Delete, moved into
1291 ada_language::filename_extensions.
1292 (ada_language_data): Remove la_filename_extensions initializer.
1293 (ada_language::filename_extensions): New member function.
1294 * c-lang.c (c_extensions): Delete, moved into
1295 c_language::filename_extensions.
1296 (c_language_data): Remove la_filename_extensions initializer.
1297 (c_language::filename_extensions): New member function.
1298 (cplus_extensions): Delete, moved into
1299 cplus_language::filename_extensions.
1300 (cplus_language_data): Remove la_filename_extensions initializer.
1301 (cplus_language::filename_extensions): New member function.
1302 (asm_extensions): Delete, moved into
1303 asm_language::filename_extensions.
1304 (asm_language_data): Remove la_filename_extensions initializer.
1305 (asm_language::filename_extensions): New member function.
1306 (minimal_language_data): Remove la_filename_extensions
1307 initializer.
1308 * d-lang.c (d_extensions): Delete, moved into
1309 d_language::filename_extensions.
1310 (d_language_data): Remove la_filename_extensions initializer.
1311 (d_language::filename_extensions): New member function.
1312 * f-lang.c (f_extensions): Delete, moved into
1313 f_language::filename_extensions.
1314 (f_language_data): Remove la_filename_extensions initializer.
1315 (f_language::filename_extensions): New member function.
1316 * go-lang.c (go_language_data): Remove la_filename_extensions
1317 initializer.
1318 * language.c (add_set_language_command): Update now that
1319 filename_extensions returns a vector.
1320 (unknown_language_data): Remove la_filename_extensions
1321 initializer.
1322 (auto_language_data): Likewise.
1323 * language.h (language_data): Remove la_filename_extensions field.
1324 (language_defn::filename_extensions): New member function.
1325 * m2-lang.c (m2_language_data): Remove la_filename_extensions
1326 initializer.
1327 * objc-lang.c (objc_extensions): Delete, moved into
1328 objc_language::filename_extensions.
1329 (objc_language_data): Remove la_filename_extensions initializer.
1330 (objc_language::filename_extensions): New member function.
1331 * opencl-lang.c (opencl_language_data): Remove
1332 la_filename_extensions initializer.
1333 * p-lang.c (pascal_extensions): Delete, moved into
1334 pascal_language::filename_extensions.
1335 (pascal_language_data): Remove la_filename_extensions initializer.
1336 (pascal_language::filename_extensions): New member function.
1337 * rust-lang.c (rust_extensions): Delete, moved into
1338 rust_language::filename_extensions.
1339 (rust_language_data): Remove la_filename_extensions initializer.
1340 (rust_language::filename_extensions): New member function.
1341 * symfile.c (add_filename_language): Add new assert.
1342
6f7664a9
AB
13432020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1344
1345 * ada-lang.c (ada_language_data): Remove la_name and
1346 la_natural_name initializers.
1347 (ada_language::name): New member function.
1348 (ada_language::natural_name): New member function.
1349 * c-lang.c (c_language_data): Remove la_name and
1350 la_natural_name initializers.
1351 (c_language::name): New member function.
1352 (c_language::natural_name): New member function.
1353 (cplus_language_data): Remove la_name and
1354 la_natural_name initializers.
1355 (cplus_language::name): New member function.
1356 (cplus_language::natural_name): New member function.
1357 (asm_language_data): Remove la_name and
1358 la_natural_name initializers.
1359 (asm_language::name): New member function.
1360 (asm_language::natural_name): New member function.
1361 (minimal_language_data): Remove la_name and
1362 la_natural_name initializers.
1363 (minimal_language::name): New member function.
1364 (minimal_language::natural_name): New member function.
1365 * compile/compile.c (compile_to_object): Update call to
1366 lanugage_defn::name.
1367 * d-lang.c (d_language_data): Remove la_name and
1368 la_natural_name initializers.
1369 (d_language::name): New member function.
1370 (d_language::natural_name): New member function.
1371 * expprint.c (print_subexp_standard): Update call to
1372 language_defn::name.
1373 (dump_raw_expression): Likewise
1374 (dump_prefix_expression): Likewise.
1375 * f-lang.c (f_language_data): Remove la_name and
1376 la_natural_name initializers.
1377 (f_language::name): New member function.
1378 (f_language::natural_name): New member function.
1379 * go-lang.c (go_language_data): Remove la_name and
1380 la_natural_name initializers.
1381 (go_language::name): New member function.
1382 (go_language::natural_name): New member function.
1383 * language.c (show_language_command): Update call to
1384 language_defn::name.
1385 (set_language_command): Likewise.
1386 (language_enum): Likewise.
1387 (language_str): Likewise.
1388 (add_set_language_command): Likewise, use
1389 language_defn::natural_name in the doc string.
1390 (unknown_language_data): Remove la_name and
1391 la_natural_name initializers.
1392 (unknown_language::name): New member function.
1393 (unknown_language::natural_name): New member function.
1394 (auto_language_data): Remove la_name and
1395 la_natural_name initializers.
1396 (auto_language::name): New member function.
1397 (auto_language::natural_name): New member function.
1398 (language_lookup_primitive_type_as_symbol): Update call to
1399 language_defn::name.
1400 * language.h (language_data): Remove la_name and la_natural_name
1401 member variables.
1402 (language_defn::name): New member function.
1403 (language_defn::natural_name): New member function.
1404 * m2-lang.c (m2_language_data): Remove la_name and
1405 la_natural_name initializers.
1406 (m2_language::name): New member function.
1407 (m2_language::natural_name): New member function.
1408 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
1409 language_defn::natural_name.
1410 * objc-lang.c (objc_language_data): Remove la_name and
1411 la_natural_name initializers.
1412 (objc_language::name): New member function.
1413 (objc_language::natural_name): New member function.
1414 * opencl-lang.c (opencl_language_data): Remove la_name and
1415 la_natural_name initializers.
1416 (opencl_language::name): New member function.
1417 (opencl_language::natural_name): New member function.
1418 * p-lang.c (pascal_language_data): Remove la_name and
1419 la_natural_name initializers.
1420 (pascal_language::name): New member function.
1421 (pascal_language::natural_name): New member function.
1422 * rust-lang.c (rust_language_data): Remove la_name and
1423 la_natural_name initializers.
1424 (rust_language::name): New member function.
1425 (rust_language::natural_name): New member function.
1426 * symtab.c (lookup_language_this): Update call to
1427 language_defn::name.
1428
5bae7c4e
AB
14292020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1430
1431 * ada-lang.c (ada_language_data): Remove la_name_of_this
1432 initializer.
1433 * ax-gdb.c (gen_expr): Update call to name_of_this.
1434 * c-exp.y (classify_name): Likewise.
1435 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
1436 (cplus_language_data): Likewise.
1437 (cplus_language::name_of_this): New member function.
1438 (asm_language_data): Remove la_name_of_this initializer.
1439 (minimal_language_data): Likewise.
1440 * d-lang.c (d_language_data): Likewise.
1441 (d_language::name_of_this): New member function.
1442 * expprint.c (print_subexp_standard): Update call to name_of_this.
1443 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
1444 * go-lang.c (go_language_data): Likewise.
1445 * language.c (unknown_language_data): Likewise.
1446 (unknown_language::name_of_this): New member function.
1447 (auto_language_data): Remove la_name_of_this initializer.
1448 (auto_language::name_of_this): New member function.
1449 * language.h (language_data): Delete la_name_of_this member
1450 variable.
1451 (language_defn::name_of_this): New member function.
1452 * m2-lang.c (m2_language_data): Remove la_name_of_this
1453 initializer.
1454 * objc-lang.c (objc_language_data): Likewise.
1455 (objc_language::name_of_this): New member function.
1456 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
1457 initializer.
1458 * p-lang.c (pascal_language_data): Likewise.
1459 (pascal_language::name_of_this): New member function.
1460 * rust-lang.c (rust_language_data): Remove la_name_of_this
1461 initializer.
1462 * symtab.c (lookup_language_this): Update call to name_of_this.
1463 (lookup_symbol_aux): Likewise.
1464 * valops.c (value_of_this): Likewise.
1465
22e3f3ed
AB
14662020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1467
1468 * ada-lang.c (ada_language_data): Remove
1469 la_struct_too_deep_ellipsis initializer.
1470 (ada_language::struct_too_deep_ellipsis): New member function.
1471 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
1472 initializer.
1473 (cplus_language_data): Likewise.
1474 (asm_language_data): Likewise.
1475 (minimal_language_data): Likewise.
1476 * cp-valprint.c (cp_print_value): Update call to
1477 struct_too_deep_ellipsis.
1478 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
1479 initializer.
1480 * f-lang.c (f_language_data): Likewise.
1481 (f_language::struct_too_deep_ellipsis): New member function.
1482 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
1483 initializer.
1484 * language.c (unknown_language_data): Likewise.
1485 (auto_language_data): Likewise.
1486 * language.h (language_data): Delete la_struct_too_deep_ellipsis
1487 member variable.
1488 (language_defn::struct_too_deep_ellipsis): New member function.
1489 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
1490 initializer.Q
1491 * objc-lang.c (objc_language_data): Likewise.
1492 * opencl-lang.c (opencl_language_data): Likewise.
1493 * p-lang.c (pascal_language_data): Likewise.
1494 * rust-lang.c (rust_language_data): Likewise.
1495 * valprint.c (val_print_check_max_depth): Update call to
1496 struct_too_deep_ellipsis.
1497
ed29e1c7
FW
14982020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
1499
1500 * MAINTAINERS (Write After Approval): Add myself.
1501
12d8f940
TT
15022020-09-15 Tom Tromey <tom@tromey.com>
1503
1504 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
1505 Remove.
1506
6b5a7bc7
TT
15072020-09-15 Tom Tromey <tom@tromey.com>
1508
1509 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
1510 and TYPE_CODE_METHODPTR cases.
1511 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
1512 (c_value_print_inner): Update.
1513 * valprint.c (generic_value_print_memberptr): New function, from
1514 c_value_print_memberptr.
1515 (generic_value_print): Use it. Call cplus_print_method_ptr.
1516
47f0e2ff
TT
15172020-09-15 Tom Tromey <tromey@adacore.com>
1518
1519 * python/python-internal.h (PyInt_FromLong): Remove define.
1520 * python/py-value.c (convert_value_from_python): Use
1521 gdb_py_object_from_longest.
1522 * python/py-type.c (typy_get_code): Use
1523 gdb_py_object_from_longest.
1524 * python/py-symtab.c (salpy_get_line): Use
1525 gdb_py_object_from_longest.
1526 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
1527 gdb_py_object_from_longest.
1528 * python/py-record.c (recpy_gap_reason_code): Use
1529 gdb_py_object_from_longest.
1530 * python/py-record-btrace.c (recpy_bt_insn_size)
1531 (recpy_bt_func_level, btpy_list_count): Use
1532 gdb_py_object_from_longest.
1533 * python/py-infthread.c (gdbpy_create_ptid_object): Use
1534 gdb_py_object_from_longest. Fix error handling.
1535 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
1536 gdb_py_object_from_longest.
1537 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
1538 gdb_py_object_from_longest.
1539 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
1540 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
1541 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
1542
512116ce
TT
15432020-09-15 Tom Tromey <tromey@adacore.com>
1544
1545 * python/python.c (gdbpy_parameter_value): Use
1546 gdb_py_object_from_ulongest.
1547
4ab1029c
TT
15482020-09-15 Tom Tromey <tromey@adacore.com>
1549
1550 * python/py-infevents.c (create_register_changed_event_object):
1551 Use gdb_py_object_from_longest.
1552 * python/py-exitedevent.c (create_exited_event_object): Use
1553 gdb_py_object_from_longest.
1554
062534d4
TT
15552020-09-15 Tom Tromey <tromey@adacore.com>
1556
1557 * python/python.c (gdbpy_parameter_value): Use
1558 gdb_py_object_from_longest.
1559 * python/py-type.c (convert_field, typy_range): Use
1560 gdb_py_object_from_longest.
1561 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
1562 gdb_py_object_from_longest.
1563 * python/py-lazy-string.c (stpy_get_length): Use
1564 gdb_py_object_from_longest.
1565 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
1566 gdb_py_object_from_longest.
1567 * python/py-infevents.c (create_memory_changed_event_object): Use
1568 gdb_py_object_from_longest.
1569 * python/py-inferior.c (infpy_get_num): Use
1570 gdb_py_object_from_longest.
1571 (infpy_get_pid): Likewise.
1572
d1cab987
TT
15732020-09-15 Tom Tromey <tromey@adacore.com>
1574
1575 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
1576 defines.
1577 * python/py-value.c (valpy_long): Use
1578 gdb_py_object_from_ulongest.
1579 * python/py-symtab.c (salpy_get_pc): Use
1580 gdb_py_object_from_ulongest.
1581 (salpy_get_last): Likewise.
1582 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
1583 gdb_py_object_from_ulongest.
1584 * python/py-lazy-string.c (stpy_get_address): Use
1585 gdb_py_object_from_ulongest.
1586 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
1587 * python/py-arch.c (archpy_disassemble): Use
1588 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
1589 error handling.
1590
4bde49dc
TT
15912020-09-15 Tom Tromey <tromey@adacore.com>
1592
1593 * python/python-internal.h (gdb_py_long_from_longest): Remove
1594 defines.
1595 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
1596 * python/py-type.c (convert_field, typy_get_sizeof): Use
1597 gdb_py_object_from_longest.
1598 * python/py-record-btrace.c (btpy_list_index): Use
1599 gdb_py_object_from_longest.
1600
37431074
TT
16012020-09-15 Tom Tromey <tromey@adacore.com>
1602
1603 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
1604 * python/py-record.c (recpy_element_number): Use
1605 gdb_py_object_from_longest.
1606 (recpy_gap_number): Likewise.
1607
cbe25684
TT
16082020-09-15 Tom Tromey <tromey@adacore.com>
1609
1610 * top.c (ui::ui): Update.
1611 (highest_ui_num): Remove.
1612 * top.h (struct ui) <num>: Remove.
1613
db92ac45
TT
16142020-09-15 Tom Tromey <tromey@adacore.com>
1615
1616 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
1617 * ui-style.c (ansi_regex_text): Now array.
1618 * rust-exp.y (number_regex_text): Now array.
1619 * linespec.c (linespec_quote_characters): Now array.
1620 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
1621 Now arrays.
1622
d2b31b67
SM
16232020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1624
1625 * debuginfod-support.c (debuginfod_client_deleter): New.
1626 (debuginfod_client_up): New.
1627 (debuginfod_init): Return debuginfod_client_up.
1628 (debuginfod_source_query): Adjust.
1629 (debuginfod_debuginfo_query): Adjust.
1630
3246bd8e
SM
16312020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1632
1633 * debuginfod-support.c (debuginfod_source_query): Use
1634 make_unique_xstrdup.
1635
10242f36
SM
16362020-09-14 Simon Marchi <simon.marchi@efficios.com>
1637
1638 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
1639 with `type::instance_flags`.
1640
e1044e6a
MM
16412020-09-14 Michael Mullin <masmullin@gmail.com>
1642
1643 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
1644 Remove baton parameter.
1645
04902b09
PA
16462020-09-14 Pedro Alves <pedro@palves.net>
1647
1648 * Makefile.in (SELFTESTS_SRCS): Add
1649 unittests/enum-flags-selftests.c.
1650 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
1651 btrace_function_flags instead of enum btrace_function_flag.
1652 * compile/compile-c-types.c (convert_qualified): Use
1653 enum_flags::raw.
1654 * compile/compile-cplus-symbols.c (convert_one_symbol)
1655 (convert_symbol_bmsym):
1656 * compile/compile-cplus-types.c (compile_cplus_convert_method)
1657 (compile_cplus_convert_struct_or_union_methods)
1658 (compile_cplus_instance::convert_qualified_base):
1659 * go-exp.y (parse_string_or_char): Add cast to int.
1660 * unittests/enum-flags-selftests.c: New file.
1661 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
1662 type to btrace_thread_flags from btrace_thread_flag.
1663 (record_btrace_cancel_resume, record_btrace_step_thread): Change
1664 local's type to btrace_thread_flags from btrace_thread_flag. Add
1665 cast in DEBUG call.
1666
69896a2c
PA
16672020-09-14 Pedro Alves <pedro@palves.net>
1668
1669 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
1670 * gdbtypes.c (address_space_name_to_int): Rename to ...
1671 (address_space_name_to_type_instance_flags): ... this.
1672 (address_space_int_to_name): Rename to ...
1673 (address_space_type_instance_flags_to_name): ... this.
1674 * gdbtypes.h (address_space_name_to_int): Rename to ...
1675 (address_space_name_to_type_instance_flags): ... this.
1676 (address_space_int_to_name): Rename to ...
1677 (address_space_type_instance_flags_to_name): ... this.
1678 * type-stack.c (type_stack::insert): Adjust to rename.
1679 * type-stack.h (type_stack::insert): Likewise.
1680
314ad88d
PA
16812020-09-14 Pedro Alves <pedro@palves.net>
1682 Andrew Burgess <andrew.burgess@embecosm.com>
1683
1684 * avr-tdep.c (avr_address_class_type_flags): Return
1685 type_instance_flags.
1686 (avr_address_class_type_flags_to_name): Take a
1687 type_instance_flags.
1688 (avr_address_class_name_to_type_flags): Return bool and take a
1689 type_instance_flags.
1690 * d-lang.c (build_d_types): Use type::set_instance_flags.
1691 * ft32-tdep.c (ft32_address_class_type_flags): Return
1692 type_instance_flags.
1693 (ft32_address_class_type_flags_to_name): Take a
1694 type_instance_flags.
1695 (ft32_address_class_name_to_type_flags): Return bool and take a
1696 type_instance_flags.
1697 (ft32_gdbarch_init): Use type::set_instance_flags.
1698 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
1699 * gdbarch.h, gdbarch.c: Regenerate.
1700 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
1701 (address_class_name_to_type_flags): Use type_instance_flags and
1702 bool.
1703 * gdbtypes.c (address_space_name_to_int)
1704 (address_space_int_to_name, make_qualified_type): Use
1705 type_instance_flags.
1706 (make_qualified_type): Use type_instance_flags and
1707 type::set_instance_flags.
1708 (make_type_with_address_space, make_cv_type, make_vector_type)
1709 (check_typedef): Use type_instance_flags.
1710 (recursive_dump_type): Cast type_instance_flags to unsigned for
1711 printing.
1712 (copy_type_recursive): Use type::set_instance_flags.
1713 (gdbtypes_post_init): Use type::set_instance_flags.
1714 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
1715 <m_instance_flags>: ... this.
1716 <instance_flags, set_instance_flags>: New methods.
1717 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
1718 (SET_TYPE_INSTANCE_FLAGS): New.
1719 (address_space_name_to_int, address_space_int_to_name)
1720 (make_type_with_address_space): Pass flags using
1721 type_instance_flags instead of int.
1722 * stabsread.c (cleanup_undefined_types_noname): Use
1723 type::set_instance_flags.
1724 * s390-tdep.c (s390_address_class_type_flags): Return
1725 type_instance_flags.
1726 (s390_address_class_type_flags_to_name): Take a
1727 type_instance_flags.
1728 (s390_address_class_name_to_type_flags): Return bool and take a
1729 type_instance_flags.
1730 * type-stack.c (type_stack::follow_types): Use
1731 type_instance_flags.
1732 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
1733
27087b7f
TT
17342020-09-14 Tom Tromey <tromey@adacore.com>
1735
1736 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
1737 * x86-tdep.c (x86_is_thunk_register_name)
1738 (x86_in_indirect_branch_thunk): Update.
1739 * sparc64-tdep.c (sparc64_fpu_register_names)
1740 (sparc64_cp0_register_names, sparc64_register_names)
1741 (sparc64_pseudo_register_names): Now const.
1742 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
1743 cp0_registers_num>: Now const.
1744 * sparc-tdep.c (sparc_core_register_names)
1745 (sparc32_fpu_register_names, sparc32_cp0_register_names)
1746 (sparc32_pseudo_register_names): Now const.
1747 (validate_tdesc_registers): Update.
1748 * rust-lang.c (rust_extensions): Now const.
1749 * p-lang.c (p_extensions): Now const.
1750 * objc-lang.c (objc_extensions): Now const.
1751 * nto-tdep.c (nto_thread_state_str): Now const.
1752 * moxie-tdep.c (moxie_register_names): Now const.
1753 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
1754 Now const.
1755 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
1756 (mips_linux_reg_names): Now const.
1757 (mips_gdbarch_init): Update.
1758 * microblaze-tdep.c (microblaze_register_names): Now const.
1759 * m68k-tdep.c (m68k_register_names): Now const.
1760 * m32r-tdep.c (m32r_register_names): Now const.
1761 * ia64-tdep.c (ia64_register_names): Now const.
1762 * i386-tdep.h (struct gdbarch_tdep) <register_names,
1763 ymmh_register_names, ymm16h_regnum, mpx_register_names,
1764 k_register_names, zmmh_register_names, xmm_avx512_register_names,
1765 ymm_avx512_register_names, pkeys_register_names>: Now const.
1766 * i386-tdep.c (i386_register_names, i386_zmm_names)
1767 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
1768 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
1769 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
1770 * f-lang.c (f_extensions): Now const.
1771 * d-lang.c (d_extensions): Now const.
1772 * csky-tdep.c (csky_register_names): Now const.
1773 * charset.c (default_charset_names, charset_enum): Now const.
1774 (_initialize_charset): Update.
1775 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
1776 const.
1777 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
1778 (bsd_uthread_solib_loaded): Update.
1779 (bsd_uthread_state): Now const.
1780 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
1781 (amd64_ymm_avx512_names, amd64_ymmh_names)
1782 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
1783 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
1784 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
1785 (amd64_dword_names): Now const.
1786 * agent.c (can_use_agent_enum): Now const.
1787 * ada-tasks.c (task_states, long_task_states): Now const.
1788 * ada-lang.c (known_runtime_file_name_patterns)
1789 (known_auxiliary_function_name_patterns, attribute_names)
1790 (standard_exc, ada_extensions): Now const.
1791
89806626
SM
17922020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1793
1794 * bcache.h (struct bcache) <bcache>: Remove constructor.
1795 <m_hash_function, m_compare_function>: Remove.
1796 <~bcache>: Make virtual.
1797 <compare>: Remove static method, introduce virtual method.
1798 <default_hash>: Remove.
1799 <hash>: New virtual method.
1800 * bcache.c (bcache::expand_hash_table): Update.
1801 (bcache::insert): Update.
1802 (bcache::hash): New.
1803 (bcache::compare): Update comment and parameter names.
1804 * gdbtypes.c (types_deeply_equal): Update.
1805 * psymtab.h (struct psymbol_bcache): New struct.
1806 (class psymtab_storage) <psymtab_storage>: Make default.
1807 <psymbol_cache>: Change type to psymbol_bcache.
1808 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
1809 (psymbol_hash): Change to...
1810 (psymbol_bcache::hash): ... this.
1811 (psymbol_compare): Change to...
1812 (psymbol_bcache::compare): ... this.
1813
677c92fe
SM
18142020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1815
1816 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
1817 checking for initial lwp.
1818
3eba3a01
TT
18192020-09-14 Tom Tromey <tromey@adacore.com>
1820
1821 * m68k-tdep.c (m68k_extract_return_value): Use
1822 pointer_result_regnum.
1823 (m68k_store_return_value): Likewise.
1824 (m68k_reg_struct_return_p): Handle vectors and arrays.
1825 (m68k_return_value): Handle arrays.
1826 (m68k_svr4_return_value): Fix single-element aggregate handling.
1827 Handle long double. Adjust for embedded ABI.
1828 (m68k_svr4_init_abi): Set pointer_result_regnum.
1829 (m68k_embedded_init_abi): New function.
1830 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
1831 (m68k_osabi_sniffer): New function.
1832 (_initialize_m68k_tdep): Register osabi sniffer.
1833 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
1834 member.
1835
33f4dd48
SM
18362020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1837
1838 * xml-support.c (xml_fetch_content_from_file): Replace xfree
1839 with gdb::unique_xmalloc_ptr<char>.
1840
8400a90d
SM
18412020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1842
1843 * xml-support.h (xml_fetch_another): Change type to be a
1844 function_view.
1845 (xml_process_xincludes): Remove baton parameter.
1846 (xml_fetch_content_from_file): Change baton parameter to
1847 dirname.
1848 * xml-support.c (struct xinclude_parsing_data)
1849 <xinclude_parsing_data>: Remove baton parameter.
1850 <fetcher_baton>: Remove.
1851 (xinclude_start_include): Adjust.
1852 (xml_process_xincludes): Adjust.
1853 (xml_fetch_content_from_file): Replace baton parameter with
1854 dirname.
1855 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
1856 (xml_init_syscalls_info): Use a lambda.
1857 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
1858 (file_read_description_xml): Use a lambda.
1859 (fetch_available_features_from_target): Change baton parameter
1860 to target_ops.
1861 (target_read_description_xml): Use a lambda.
1862 (target_fetch_description_xml): Use a lambda.
1863 (string_read_description_xml): Update.
1864
04f5bab2
SM
18652020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1866
1867 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
1868 uses with type::endianity_is_not_default.
1869
db558e34
SM
18702020-09-14 Simon Marchi <simon.marchi@efficios.com>
1871
1872 * gdbtypes.h (struct type) <endianity_is_not_default,
1873 set_endianity_is_not_default>: New methods.
1874 (TYPE_ENDIANITY_NOT_DEFAULT): Use
1875 type::endianity_is_not_default, change all write call sites to
1876 use type::set_endianity_is_not_default.
1877
22c4c60c
SM
18782020-09-14 Simon Marchi <simon.marchi@efficios.com>
1879
1880 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
1881 uses with type::is_fixed_instance.
1882
9cdd0d12
SM
18832020-09-14 Simon Marchi <simon.marchi@efficios.com>
1884
1885 * gdbtypes.h (struct type) <is_fixed_instance,
1886 set_is_fixed_instance>: New methods.
1887 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
1888 write call sites to use type::set_is_fixed_instance.
1889
0becda7a
SM
18902020-09-14 Simon Marchi <simon.marchi@efficios.com>
1891
1892 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
1893 uses with type::is_gnu_ifunc.
1894
03cc7249
SM
18952020-09-14 Simon Marchi <simon.marchi@efficios.com>
1896
1897 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
1898 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
1899 use type::set_is_gnu_ifunc.
1900
3f46044c
SM
19012020-09-14 Simon Marchi <simon.marchi@efficios.com>
1902
1903 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
1904 uses with type::stub_is_supported.
1905
9baccff6
SM
19062020-09-14 Simon Marchi <simon.marchi@efficios.com>
1907
1908 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
1909 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
1910 use type::set_stub_is_supported.
1911
bd63c870
SM
19122020-09-14 Simon Marchi <simon.marchi@efficios.com>
1913
1914 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
1915 uses with type::is_vector.
1916
2062087b
SM
19172020-09-14 Simon Marchi <simon.marchi@efficios.com>
1918
1919 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
1920 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
1921 use type::set_is_vector.
1922
a409645d
SM
19232020-09-14 Simon Marchi <simon.marchi@efficios.com>
1924
1925 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
1926 uses with type::has_varargs.
1927
1d6286ed
SM
19282020-09-14 Simon Marchi <simon.marchi@efficios.com>
1929
1930 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
1931 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
1932 use type::set_has_varargs.
1933
7f9f399b
SM
19342020-09-14 Simon Marchi <simon.marchi@efficios.com>
1935
1936 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
1937 uses with type::is_prototyped.
1938
27e69b7a
SM
19392020-09-14 Simon Marchi <simon.marchi@efficios.com>
1940
1941 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
1942 New methods.
1943 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
1944 call sites to use type::set_is_prototyped.
1945
d2183968
SM
19462020-09-14 Simon Marchi <simon.marchi@efficios.com>
1947
1948 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
1949 uses with type::target_is_stub.
1950
8f53807e
SM
19512020-09-14 Simon Marchi <simon.marchi@efficios.com>
1952
1953 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
1954 New methods.
1955 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
1956 sites to use type::set_target_is_stub.
1957
e46d3488
SM
19582020-09-14 Simon Marchi <simon.marchi@efficios.com>
1959
1960 * gdbtypes.h (TYPE_STUB): Remove, replace all
1961 uses with type::is_stub.
1962
b4b73759
SM
19632020-09-14 Simon Marchi <simon.marchi@efficios.com>
1964
1965 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
1966 (TYPE_STUB): Use type::is_stub, change all write call sites to
1967 use type::set_is_stub.
1968
20ce4123
SM
19692020-09-14 Simon Marchi <simon.marchi@efficios.com>
1970
1971 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
1972 type::has_no_signedness.
1973
15152a54
SM
19742020-09-14 Simon Marchi <simon.marchi@efficios.com>
1975
1976 * gdbtypes.h (struct type) <has_no_signedness,
1977 set_has_no_signedness>: New methods.
1978 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
1979 call sites to use type::set_has_no_signedness.
1980
c6d940a9
SM
19812020-09-14 Simon Marchi <simon.marchi@efficios.com>
1982
1983 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
1984 type::is_unsigned.
1985
653223d3
SM
19862020-09-14 Simon Marchi <simon.marchi@efficios.com>
1987
1988 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
1989 methods.
1990 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
1991 sites to use type::set_is_unsigned.
1992
55ea94da 19932020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
e851246a 1994 Adam Renquinha <arenquinha@cimeq.qc.ca>
55ea94da 1995
e851246a
SM
1996 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
1997 pointer and stack frame offset when unwinding.
55ea94da 1998
6791b117
PA
19992020-09-13 Pedro Alves <pedro@palves.net>
2000
2001 * NEWS: Document "-break-insert --qualified".
2002 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
2003
77f2120b
PA
20042020-09-13 Pedro Alves <pedro@palves.net>
2005
2006 * linespec.c (classify_mtype, compare_msyms): Delete.
2007 (search_minsyms_for_name): Remove classification logic. Instead
2008 filter out trampoline symbols if we also found an external
2009 function of the same name.
2010
ed6a896c
JB
20112020-09-13 Joel Brobecker <brobecker@adacore.com>
2012
2013 * NEWS: Create a new section for the next release branch.
2014 Rename the section of the current branch, now that it has
2015 been cut.
2016
32aea73e
JB
20172020-09-13 Joel Brobecker <brobecker@adacore.com>
2018
2019 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
2020 * version.in: Bump version to 11.0.50.DATE-git.
2021
8087c3fa
JB
20222020-09-12 Joel Brobecker <brobecker@adacore.com>
2023
2024 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
2025
2a67f09d
FW
20262020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
2027 Felix Willgerodt <Felix.Willgerodt@intel.com>
2028
2029 * gdbarch.sh: Added bfloat16 type.
2030 * gdbarch.c: Regenerated.
2031 * gdbarch.h: Regenerated.
2032 * gdbtypes.c (floatformats_bfloat16): New struct.
2033 (gdbtypes_post_init): Add builtin_bfloat16.
2034 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
2035 (floatformats_bfloat16): New struct.
2036 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
2037 (i386_ymm_type): Add field "v16_bfloat16"
2038 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
2039 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
2040 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
2041 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
2042 * features/i386/64bit-avx512.xml: Add bfloat16 type.
2043 * features/i386/64bit-avx512.c: Regenerated.
2044 * features/i386/64bit-sse.xml: Add bfloat16 type.
2045 * features/i386/64bit-sse.c: Regenerated.
2046
1347d111
FW
20472020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
2048
2049 * i386-tdep.c (i386_zmm_type): Fix field names.
2050 (i386_ymm_type): Fix field names.
2051
7a4e8e7d
TBA
20522020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2053
2054 * breakpoint.c: Fix typo in the help message of the
2055 "set breakpoint condition-evaluation" command.
2056
cf4ac4be
KR
20572020-09-10 Kamil Rytarowski <n54@gmx.com>
2058
2059 * nbsd-nat.c: Include "nat/netbsd-nat.h".
2060 * (nbsd_nat_target::pid_to_exec_file)
2061 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
2062 (nbsd_nat_target::post_startup_inferior)
2063 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
2064 (nbsd_add_threads): Switch local code to common gdb/nat functions.
2065 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
2066 * (nbsd_thread_lister): Remove.
2067
f404573e
KR
20682020-09-10 Kamil Rytarowski <n54@gmx.com>
2069
2070 * fork-inferior.c (startup_inferior): Avoid double free.
2071
1ccb2c17
KR
20722020-09-10 Kamil Rytarowski <n54@gmx.com>
2073
2074 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
2075 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
2076
feedfcc7
KR
20772020-09-10 Kamil Rytarowski <n54@gmx.com>
2078
2079 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
2080 * netbsd-nat.c: Include <sys/ptrace.h>.
2081 * (netbsd_nat::enable_proc_events): Add.
2082
c489f8c6
KR
20832020-09-10 Kamil Rytarowski <n54@gmx.com>
2084
2085 * netbsd-nat.h: Include "gdbsupport/function-view.h".
2086 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
2087 (netbsd_nat::for_each_thread): Add.
2088 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
2089 "gdbsupport/common-debug.h".
2090 * (netbsd_nat::netbsd_thread_lister)
2091 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
2092 (netbsd_nat::for_each_thread): Add.
2093
330662f6
KR
20942020-09-10 Kamil Rytarowski <n54@gmx.com>
2095
2096 * netbsd-nat.h: Include <unistd.h>.
2097 * (netbsd_nat::pid_to_exec_file): Add.
2098 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
2099 * (netbsd_nat::pid_to_exec_file) Add.
2100
70b67307
KR
21012020-09-10 Kamil Rytarowski <n54@gmx.com>
2102
2103 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
2104
99cf6da6
KR
21052020-09-10 Kamil Rytarowski <n54@gmx.com>
2106
2107 * netbsd-nat.h: New file.
2108 * netbsd-nat.c: Likewise.
2109
1b788fb6
TT
21102020-09-09 Tom Tromey <tromey@adacore.com>
2111
2112 * ada-lang.c (remove_extra_symbols): Do not increment when
2113 removing an element
2114
03b0a45f
TT
21152020-09-08 Tom Tromey <tromey@adacore.com>
2116
2117 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
2118
3cae4447
TT
21192020-09-08 Tom Tromey <tromey@adacore.com>
2120
2121 PR win32/25302:
2122 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
2123 (gdb_bfd_init_data): New function.
2124 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
2125
7f08fd51
TBA
21262020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2127
2128 * infrun.c (fetch_inferior_event): Use
2129 `switch_to_target_no_thread` to switch the target.
2130
3e6ff933
TT
21312020-09-06 Tom Tromey <tom@tromey.com>
2132
2133 * symfile.h (dwarf2_free_objfile): Don't declare.
2134
e56798df
AKS
21352020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2136
2137 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
2138 to match 16 byte real/complex type generated by Flang compiler.
2139
8f5c6526
TV
21402020-09-03 Tom de Vries <tdevries@suse.de>
2141
2142 PR breakpoint/26546
2143 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
2144 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
2145
c5065df0
SM
21462020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
2147
2148 * maint.c (index_digits): New function.
2149 (struct maint_print_section_data): Remove.
2150 (print_bfd_section_info): Remove print_data parameter, add arg
2151 and index_digits.
2152 (print_objfile_section_info): Likewise.
2153 (print_bfd_section_info_maybe_relocated): Likewise (plus
2154 objfile).
2155 (maintenance_info_sections): Adjust calls.
2156
02c6f3f1
TT
21572020-09-02 Tom Tromey <tromey@adacore.com>
2158
2159 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
2160 for null pointers.
2161 (ada_varobj_adjust_for_child_access): Special-case null pointers.
2162
ef5e5b0b
SM
21632020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
2164
2165 * bcache.h (struct bcache) <insert>: Change type of `added` to
2166 pointer to bool.
2167 * bcache.c (bcache::insert): Likewise.
2168 * gdbtypes.c (check_types_worklist): Adjust.
2169 * psymtab.c (add_psymbol_to_bcache): Adjust.
2170
973695d6
KB
21712020-08-31 Kevin Buettner <kevinb@redhat.com>
2172
2173 * corelow.c (unordered_set): Include.
2174 (class core_target): Add field 'm_core_unavailable_mappings'.
2175 (core_target::build_file_mappings): Print only one warning
2176 per inaccessible file. Add unavailable/broken mappings
2177 to m_core_unavailable_mappings.
2178 (core_target::xfer_partial): Call...
2179 (core_target::xfer_memory_via_mappings): New method.
2180
264fc0e2
SM
21812020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
2182
2183 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
2184 type to bool.
2185
2de01bdb
SM
21862020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
2187
2188 * dwarf2/read.c (struct field_info): Fix indentation.
2189
f3bd50f1
SM
21902020-08-31 Simon Marchi <simon.marchi@efficios.com>
2191
2192 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
2193 ordering in comment.
2194 * frame.c (frame_id_eq): Fix indentation.
2195
22b9b4b0
SL
21962020-08-31 Scott Linder <scott@scottlinder.com>
2197 Simon Marchi <simon.marchi@efficios.com>
2198
2199 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
2200 inline frame ids in outer frame.
2201
84154d16
SM
22022020-08-31 Simon Marchi <simon.marchi@efficios.com>
2203
2204 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
2205 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
2206 (outer_frame_id): Use FID_STACK_OUTER instead of
2207 FID_STACK_INVALID.
2208 (frame_id_p): Don't check for outer_frame_id.
2209
8efaf6b3
SM
22102020-08-31 Simon Marchi <simon.marchi@efficios.com>
2211
2212 * frame-unwind.c (frame_unwind_got_optimized): Don't set
2213 regnum/frame in value. Call allocate_value_lazy.
2214 * frame.c (frame_unwind_register_value): Use
2215 val_print_not_saved.
2216
fe1fe7ea
SM
22172020-08-31 Simon Marchi <simon.marchi@efficios.com>
2218
2219 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
2220
f7c7700d
PA
22212020-08-29 Pedro Alves <pedro@palves.net>
2222
2223 * progspace.c (print_program_space): Use all_inferiors. Switch to
2224 the inferior before calling target_pid_to_str.
2225
e0814aae
TT
22262020-08-28 Tom Tromey <tom@tromey.com>
2227
2228 * xcoffread.c (xcoff_end_psymtab): Update comment.
2229 * dbxread.c (dbx_end_psymtab): Update comment.
2230
626d2320
TV
22312020-08-28 Tom de Vries <tdevries@suse.de>
2232
2233 PR breakpoint/26544
2234 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
2235 event_location.
2236 (create_breakpoint): Same.
2237 (base_breakpoint_decode_location): Same.
2238 (bkpt_create_sals_from_location): Same.
2239 (bkpt_decode_location): Same.
2240 (bkpt_probe_create_sals_from_location): Same.
2241 (bkpt_probe_decode_location): Same.
2242 (tracepoint_create_sals_from_location): Same.
2243 (tracepoint_decode_location): Same.
2244 (tracepoint_probe_decode_location): Same.
2245 (strace_marker_create_sals_from_location): Same.
2246 (strace_marker_decode_location): Same.
2247 (create_sals_from_location_default): Same.
2248 (decode_location_default): Same.
2249 * breakpoint.h (struct breakpoint_ops): Same.
2250 (create_breakpoint): Same.
2251 * linespec.h (decode_line_full): Same.
2252 * linespec.c (decode_line_full): Same. Throw error if
2253 result.size () == 0.
2254
df631783
PA
22552020-08-27 Pedro Alves <pedro@palves.net>
2256
2257 PR gdb/26524
2258 * breakpoint.c (until_break_fsm) <location_breakpoint,
2259 caller_breakpoint>: Delete fields.
2260 <breakpoints>: New field.
2261 <until_break_fsm>: Adjust to save a breakpoint vector instead of
2262 two individual breakpoints.
2263 (until_break_fsm::should_stop): Loop over breakpoints in the
2264 breakpoint vector.
2265 (until_break_fsm::clean_up): Adjust to clear the breakpoints
2266 vector.
2267 (until_break_command): Handle location expanding into multiple
2268 sals.
2269
b2b38aa4
PA
22702020-08-27 Pedro Alves <pedro@palves.net>
2271
2272 PR gdb/26523
2273 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
2274 bp_until breakpoints user-specified locations. Update intro
2275 comment.
2276
b886559f
SM
22772020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
2278
2279 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
2280 gdb_bfd_sections): New.
2281 * maint.c (print_bfd_section_info): Change param type to
2282 maint_print_section_data.
2283 (print_objfile_section_info): Likewise.
2284 (print_bfd_section_info_maybe_relocated): Likewise.
2285 (maintenance_info_sections): Use gdb_bfd_sections.
2286
4c6e63bf
SV
22872020-08-25 Shahab Vahedi <shahab@synopsys.com>
2288
2289 * MAINTAINERS: Add ARC target and maintainer.
2290
8d7f0635
AK
22912020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
2292
2293 * configure.tgt: ARC support for GNU/Linux.
2294 * Makefile.in (ALL_TARGET_OBJS): Likewise.
2295 * arc-linux-tdep.c: New file.
2296 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
2297 * arc-tdep.c (arc_write_pc): Use it.
2298
fdd8731b
SV
22992020-08-25 Shahab Vahedi <shahab@synopsys.com>
2300
2301 * arc-tdep.c (arc_check_for_hardware_loop): New.
2302 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
2303
22459524
SV
23042020-08-25 Shahab Vahedi <shahab@synopsys.com>
2305
2306 * arc-tdep.h: Include "gdbarch.h".
2307
995d3a19
SV
23082020-08-25 Shahab Vahedi <shahab@synopsys.com>
2309
2310 * arch/arc.h
2311 (arc_gdbarch_features): New class to stir the selection of target XML.
2312 (arc_create_target_description): Use FEATURES to choose XML target.
2313 (arc_lookup_target_description): Use arc_create_target_description
2314 to create _new_ target descriptions or return the already created
2315 ones if the FEATURES is the same.
2316 * arch/arc.c: Implementation of prototypes described above.
2317 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
2318 (arc_gdbarch_features_init): Initialize the FEATURES struct.
2319 * arc-tdep.c (*_feature_name): Make feature names consistent.
2320 (arc_register_feature): A new struct to hold information about
2321 registers of a particular target/feature.
2322 (arc_check_tdesc_feature): Check if XML provides registers in
2323 compliance with ARC_REGISTER_FEATURE structs.
2324 (arc_update_acc_reg_names): Add aliases for r58 and r59.
2325 (determine_*_reg_feature_set): Which feature name to look for.
2326 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
2327 (mach_type_to_arc_isa): Convert from a set of binutils machine types
2328 to expected ISA enums to be used in arc_gdbarch_features structs.
2329 * features/Makefile (FEATURE_XMLFILES): Add new files.
2330 * gdb/features/arc/v1-aux.c: New file.
2331 * gdb/features/arc/v1-aux.xml: Likewise.
2332 * gdb/features/arc/v1-core.c: Likewise.
2333 * gdb/features/arc/v1-core.xml: Likewise.
2334 * gdb/features/arc/v2-aux.c: Likewise.
2335 * gdb/features/arc/v2-aux.xml: Likewise.
2336 * gdb/features/arc/v2-core.c: Likewise.
2337 * gdb/features/arc/v2-core.xml: Likewise.
2338 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
2339
3945d2d7
GM
23402020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
2341 Andrew Burgess <andrew.burgess@embecosm.com>
2342
2343 PR m2/26372
fc5d6901 2344 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
2345 an assert. Remove single element array indexing pattern as the
2346 MULTI_SUBSCRIPT support will handle this case too.
2347
2677f2d3
SM
23482020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
2349
2350 * value.h (valprint_check_validity): Move declaration from
2351 here...
2352 * valprint.h (valprint_check_validity): ... to here.
2353
c426fddb
SM
23542020-08-24 Simon Marchi <simon.marchi@efficios.com>
2355
2356 * debug.h: New file.
2357 * debug.c (debug_prefixed_vprintf): New function.
2358 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
2359 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
2360
1eb8556f
SM
23612020-08-24 Simon Marchi <simon.marchi@efficios.com>
2362
2363 * infrun.h (infrun_debug_printf_1): New function declaration.
2364 (infrun_debug_printf): New macro.
2365 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
2366 throughout.
2367 (infrun_debug_printf): New function.
2368 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
2369 (handle_jit_event): Likewise.
2370
b8fff44e
MW
23712020-08-21 Mark Wielaard <mark@klomp.org>
2372
2373 * ada-lex.l: Extend register warnings diagnostics comment for g++.
2374
d19c3068
SM
23752020-08-22 Simon Marchi <simon.marchi@efficios.com>
2376
2377 * frame.c (enum class frame_id_status): New.
2378 (struct frame_info) <this_id::p>: Change type to frame_id_status.
2379 (fprintf_frame): Update.
2380 (compute_frame_id): Set frame id status to "computing" on entry.
2381 Set it back to "not_computed" on failure and to "computed" on
2382 success.
2383 (get_frame_id): Assert the frame id is not being computed.
2384 (create_sentinel_frame): Use frame_id_status::COMPUTED.
2385 (create_new_frame): Likewise.
2386 (frame_cleanup_after_sniffer): Update assert.
2387
b70e516e
SM
23882020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2389
2390 * regcache.c (pid_ptid_regcache_map): New type.
2391 (target_ptid_regcache_map): Remove.
2392 (target_pid_ptid_regcache_map): New type.
2393 (regcaches): Change type to target_pid_ptid_regcache_map.
2394 (get_thread_arch_aspace_regcache): Update.
2395 (regcache_thread_ptid_changed): Update, handle pid-like ptid
2396 case.
2397 (regcaches_size): Update.
2398 (regcache_count): Update.
2399 (registers_changed_ptid_target_pid_test): New.
2400 (_initialize_regcache): Register new test.
2401
cdd9148a
SM
24022020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2403
2404 * regcache.c (regcache_count): New.
2405 (struct regcache_test_data): New.
2406 (regcache_test_data_up): New.
2407 (populate_regcaches_for_test): New.
2408 (regcaches_test): Remove.
2409 (get_thread_arch_aspace_regcache_test): New.
2410 (registers_changed_ptid_all_test): New.
2411 (registers_changed_ptid_target_test): New.
2412 (registers_changed_ptid_target_ptid_test): New.
2413 (regcache_thread_ptid_changed): Remove regcache_count lambda.
2414 (_initialize_regcache): Register new tests.
2415
dd125343
SM
24162020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2417
2418 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
2419 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
2420 gdbarch and aspace parameter. Use current inferior's aspace.
2421 Validate regcache's arch value.
2422 (regcaches_test): Update.
2423
3ee93972
SM
24242020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2425
2426 * regcache.c (regcaches_test): Call registers_changed.
2427
33bf4c5c
TBA
24282020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2429
2430 * infrun.c (process_event_stop_test): Fix typo "breapoint".
2431
c2fd7fae
AKS
24322020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2433
2434 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
2435 to find the end of prologue for flang compiled binaries.
2436 * arm-tdep.c (arm_skip_prologue): Likewise.
2437 * i386-tdep.c (i386_skip_prologue): Likewise.
2438 * producer.c (producer_is_llvm): New function.
2439 (producer_parsing_tests): Added new tests for clang/flang.
2440 * producer.h (producer_is_llvm): New declaration.
2441
9327494e
SM
24422020-08-18 Simon Marchi <simon.marchi@efficios.com>
2443
2444 * linux-nat.c (linux_nat_debug_printf): New function.
2445 (linux_nat_debug_printf_1): New macro. Use throughout the file.
2446
d138725a
AM
24472020-08-18 Aaron Merey <amerey@redhat.com>
2448
2449 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
2450 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
2451 (CLIBS): Add DEBUGINFOD_LIBS.
2452
f9b11e6b
ST
24532020-08-17 Sergei Trofimovich <siarheit@google.com>
2454
2455 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
2456 'gdbarch_num_regs'.
2457
3ae7ab99
TT
24582020-08-17 Tom Tromey <tromey@adacore.com>
2459
2460 * ada-varobj.c (ada_varobj_decode_var): Handle case where
2461 ada_get_decoded_value returns NULL.
2462
b017825f
TT
24632020-08-17 Tom Tromey <tromey@adacore.com>
2464
2465 * python/py-inferior.c (infpy_search_memory): Use
2466 gdb_py_object_from_ulongest.
2467 * python/py-infevents.c (create_inferior_call_event_object)
2468 (create_memory_changed_event_object): Use
2469 gdb_py_object_from_ulongest.
2470 * python/py-linetable.c (ltpy_entry_get_pc): Use
2471 gdb_py_object_from_ulongest.
2472
7635cf79
SM
24732020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
2474
2475 * loc.c (class symbol_needs_eval_context): Fix indentation.
2476
f54be24b
SM
24772020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
2478
2479 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
2480 bool.
2481
53d5a2a5
TV
24822020-08-17 Tom de Vries <tdevries@suse.de>
2483
2484 PR gdb/26393
2485 * gdbtypes.c (dump_dynamic_prop): New function.
2486 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
2487
547ce8f0
TV
24882020-08-15 Tom de Vries <tdevries@suse.de>
2489
2490 PR backtrace/26390
2491 * stack.c (print_frame_args): Temporarily set the selected
2492 frame to FRAME while printing the frame's arguments.
2493
6ea815e7
PFC
24942020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2495
2496 PR breakpoints/26385
2497 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
2498 Always clear watchpoint with PTRACE_SET_DEBUGREG.
2499
6e562fa3
PFC
25002020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2501
2502 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
2503 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
2504 and >= to check return value instead of == -1 and != -1.
2505
d369b608
SM
25062020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
2507
2508 * utils.h (class gdb_argv) <as_array_view>: New method.
2509 * utils.c (gdb_argv_as_array_view_test): New.
2510 (_initialize_utils): Register selftest.
2511 * maint.c (maintenance_selftest): Use the new method.
2512
b31488a3
KR
25132020-08-13 Kamil Rytarowski <n54@gmx.com>
2514
2515 * target.h (supports_dumpcore, dumpcore): New
2516 function declarations.
2517 * target.c (supports_dumpcore, dumpcore): New
2518 functions.
2519 * target-delegates.c: Rebuild.
2520 * gcore.c (gcore_command): Use target_supports_dumpcore ()
2521 and target_dumpcore ().
2522
002a3166
AM
25232020-08-13 Aaron Merey <amerey@redhat.com>
2524
2525 * debuginfod-support.c: Replace global variables with user_data.
2526
ece5bc8a
SM
25272020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
2528
2529 * maint.c (maintenance_selftest): Split args and pass array_view
2530 to run_tests.
2531
6d8a0a5e
LM
25322020-08-12 Luis Machado <luis.machado@linaro.org>
2533
2534 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
2535 type's length.
2536 Use %s and pulongest to print the length.
2537
7cf663a9
PA
25382020-08-12 Pedro Alves <palves@redhat.com>
2539
2540 * NEWS: Move "Multi-target debugging support" item to the
2541 "Changes since GDB 9" section.
2542
27c7b875
PA
25432020-08-12 Pedro Alves <palves@redhat.com>
2544
2545 PR gdb/26336
2546 * progspace.c (program_space::remove_objfile): Invalidate the
2547 frame cache.
2548
1796a2a1
TV
25492020-08-11 Tom de Vries <tdevries@suse.de>
2550
2551 * MAINTAINERS: Mark ms1 as deleted.
2552
f8e3fe0d
LM
25532020-08-10 Luis Machado <luis.machado@linaro.org>
2554
2555 PR gdb/26310
2556
2557 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
2558 act accordingly.
2559 (aarch64_analyze_prologue_test): Add more unit tests to exercise
2560 movz/str/stur/stp skipping behavior.
2561
cc308722
LM
25622020-08-10 Luis Machado <luis.machado@linaro.org>
2563
2564 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
2565 struct user_sve_header instead of struct sve_context.
2566
041d9819
SM
25672020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
2568
2569 * read.h (dwarf2_fetch_die_loc_sect_off,
2570 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
2571 `void *` parameter with function_view.
2572 * read.c (dwarf2_fetch_die_loc_sect_off,
2573 dwarf2_fetch_die_loc_cu_off): Likewise.
2574 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
2575 (per_cu_dwarf_call): Adjust.
2576 (get_frame_address_in_block_wrapper): Remove.
2577 (indirect_synthetic_pointer): Adjust.
2578 (get_ax_pc): Remove.
2579 (dwarf2_compile_expr_to_ax): Adjust.
2580
38f8aa06
TV
25812020-08-08 Tom de Vries <tdevries@suse.de>
2582
2583 PR build/26344
2584 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
2585 constructor.
2586 * regcache.c (get_thread_arch_aspace_regcache): Same.
2587
a52b3ae2
TT
25882020-08-07 Tom Tromey <tromey@adacore.com>
2589
2590 * ravenscar-thread.c
2591 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
2592 New method.
2593 (ravenscar_thread_target::wait): Check
2594 runtime_initialized.
2595 (ravenscar_thread_target::prepare_to_store)
2596 (ravenscar_thread_target::stopped_by_sw_breakpoint)
2597 (ravenscar_thread_target::stopped_by_hw_breakpoint)
2598 (ravenscar_thread_target::stopped_by_watchpoint)
2599 (ravenscar_thread_target::stopped_data_address)
2600 (ravenscar_thread_target::core_of_thread): Use
2601 scoped_restore_current_thread and
2602 set_base_thread_from_ravenscar_task.
2603
0e29517d
TT
26042020-08-07 Tom Tromey <tromey@adacore.com>
2605
2606 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
2607
592f9bd7
TT
26082020-08-07 Tom Tromey <tromey@adacore.com>
2609
2610 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
2611 update_inferior_ptid before update_thread_list.
2612 (temporarily_change_regcache_ptid): New class.
2613 (ravenscar_thread_target::fetch_registers)
2614 (ravenscar_thread_target::store_registers)
2615 (ravenscar_thread_target::prepare_to_store): Use base thread when
2616 forwarding operation.
2617
39e2018a
TT
26182020-08-07 Tom Tromey <tromey@adacore.com>
2619
2620 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
2621 "is_pid" case.
2622
2080266b
TT
26232020-08-07 Tom Tromey <tromey@adacore.com>
2624
2625 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
2626 New methods.
2627 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
2628 first.
2629 (ravenscar_thread_target::add_thread): Rename from
2630 ravenscar_add_thread.
2631 (ravenscar_thread_target::update_thread_list): Use a lambda.
2632 (ravenscar_thread_target::xfer_partial): New method.
2633
78c02f21
TT
26342020-08-07 Tom Tromey <tromey@adacore.com>
2635
2636 * ada-lang.h (ada_task_list_iterator_ftype): Now a
2637 gdb::function_view.
2638 (iterate_over_live_ada_tasks): Change type of argument.
2639 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
2640 of argument.
2641
d5d833af
TT
26422020-08-07 Tom Tromey <tromey@adacore.com>
2643
2644 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
2645 Remove.
2646 (ravenscar_thread_target::extra_thread_info): Remove.
2647 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
2648 defer to target beneath for non-Ravenscar threads.
2649
a8ac85bb
TT
26502020-08-07 Tom Tromey <tromey@adacore.com>
2651
2652 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
2653 get_base_thread_from_ravenscar_task>: Now methods.
2654 <m_cpu_map>: New member.
2655 (ravenscar_thread_target::get_thread_base_cpu): Rename from
2656 ravenscar_get_thread_base_cpu. Check m_cpu_map.
2657 (ravenscar_thread_target::task_is_currently_active): Update.
2658 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
2659 Now a method.
2660 (ravenscar_thread_target::add_active_thread): Put initial thread
2661 into the m_cpu_map.
2662
550ab58d
TT
26632020-08-07 Tom Tromey <tromey@adacore.com>
2664
2665 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
2666 event_ptid.
2667
e9546579
TT
26682020-08-07 Tom Tromey <tromey@adacore.com>
2669
2670 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
2671 runtime_initialized.
2672
3d4470e5
TT
26732020-08-07 Tom Tromey <tromey@adacore.com>
2674
2675 * ravenscar-thread.c (ravenscar_thread_target): Don't call
2676 add_active_thread.
2677 (ravenscar_thread_target::add_active_thread): Now public.
2678 (ravenscar_inferior_created): Call add_active_thread after pushing
2679 the target.
2680
888bdb2b
SM
26812020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
2682
2683 * regcache.c (ptid_regcache_map): New type.
2684 (target_ptid_regcache_map): New type.
2685 (regcaches): Change type to target_ptid_regcache_map.
2686 (get_thread_arch_aspace_regcache): Update to regcaches' new
2687 type.
2688 (regcache_thread_ptid_changed): Likewise.
2689 (registers_changed_ptid): Likewise.
2690 (regcaches_size): Likewise.
2691 (regcaches_test): Update.
2692 (regcache_thread_ptid_changed): Update.
2693 * regcache.h (regcache_up): New type.
2694 * gdbsupport/ptid.h (hash_ptid): New struct.
2695
b161a60d
SM
26962020-08-07 Simon Marchi <simon.marchi@efficios.com>
2697
2698 * observable.h (thread_ptid_changed): Add parameter
2699 `process_stratum_target *`.
2700 * infrun.c (infrun_thread_ptid_changed): Add parameter
2701 `process_stratum_target *` and use it.
2702 (selftests): New namespace.
2703 (infrun_thread_ptid_changed): New function.
2704 (_initialize_infrun): Register selftest.
2705 * regcache.c (regcache_thread_ptid_changed): Add parameter
2706 `process_stratum_target *` and use it.
2707 (regcache_thread_ptid_changed): New function.
2708 (_initialize_regcache): Register selftest.
2709 * thread.c (thread_change_ptid): Pass target to
2710 thread_ptid_changed observable.
2711
d2854d8d
CT
27122020-08-06 Caroline Tice <cmtice@google.com>
2713
fe4c3d43
SM
2714 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
2715 (struct dwp_sections): Update field comments. Add loclists and
2716 rnglists fields.
2717 (struct virtual_v2_dwo_sections): Rename struct to
2718 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
2719 size & offset fields for loclists and rnglists.
2720 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
2721 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
2722 skipping dummy type units.
2723 (create_dwp_hash_table): Update the large comment above the function to
2724 discuss Version 5 DWP files as well, with references. Update all the
2725 version checks in the function to check for version 5 as well. Add new
2726 section at the end to create dwp hash table for version 5.
2727 (create_dwp_v2_section): Rename function to
2728 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
2729 Add V5 to error message text.
2730 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
2731 into calls to create_dwp_v2_or_v5_section.
2732 (create_dwo_unit_in_dwp_v5): New function.
2733 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
2734 check for version2; add else clause to handle version 5.
2735 (open_and_init_dwo_file): Add code to check dwarf version & only call
2736 create_debug_types_hash_table (with sections.types) if version is not 5;
2737 else call create_debug_type_hash_table, with sections.info.
2738 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
2739 version 5.
2740 (dwarf2_locate_v5_dwp_sections): New function.
2741 (open_and_init_dwp_file): Add else-if clause for version 5 to call
2742 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 2743
159ed7d9
SM
27442020-08-06 Simon Marchi <simon.marchi@efficios.com>
2745
2746 * regcache.h (class regcache): Remove friend
2747 registers_changed_ptid.
2748 <regcache_thread_ptid_changed>: Remove.
2749 <regcaches>: Remove.
2750 * regcache.c (regcache::regcaches): Rename to...
2751 (regcaches): ... this. Make static.
2752 (get_thread_arch_aspace_regcache): Update.
2753 (regcache::regcache_thread_ptid_changed): Rename to...
2754 (regcache_thread_ptid_changed): ... this. Update.
2755 (class regcache_access): Remove.
2756 (regcaches_test): Update.
2757 (_initialize_regcache): Update.
2758 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
2759 <forward_list>.
2760
174981ae
SM
27612020-08-06 Simon Marchi <simon.marchi@efficios.com>
2762
2763 * regcache.h (class regcache) <current_regcache>: Rename to...
2764 <regcaches>: ... this. Move doc here.
2765 * regcache.c (regcache::current_regcache) Rename to...
2766 (regcache::regcaches): ... this. Move doc to header.
2767 (get_thread_arch_aspace_regcache): Update.
2768 (regcache::regcache_thread_ptid_changed): Update.
2769 (registers_changed_ptid): Update.
2770 (class regcache_access) <current_regcache_size>: Rename to...
2771 <regcaches_size>: ... this.
2772 (current_regcache_test): Rename to...
2773 (regcaches_test): ... this.
2774 (_initialize_regcache): Update.
2775
ed908db6
VC
27762020-08-06 Victor Collod <vcollod@nvidia.com>
2777
2778 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
2779
b5582ab7
KB
27802020-08-05 Kevin Buettner <kevinb@redhat.com>
2781
2782 * corelow.c (core_target::build_file_mappings): Don't output
2783 null pathname in warning.
2784
ea946b86
SM
27852020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
2786
2787 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
2788 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
2789 gdb.dwarf2/dw2-single-line-discriminators.exp,
2790 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
2791
57d02173
TT
27922020-08-05 Tom Tromey <tromey@adacore.com>
2793
2794 PR rust/26197:
2795 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
2796 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
2797 Fix off-by-one and type size errors in ordinary case.
2798
5555c86d
TV
27992020-08-05 Tom de Vries <tdevries@suse.de>
2800
2801 * gdbtypes.c (type_not_allocated, type_not_associated): Use
2802 "prop->const_val () == 0" instead of "prop->const_val () != 0".
2803
97916bfe
SM
28042020-08-04 Simon Marchi <simon.marchi@efficios.com>
2805
2806 * frame.h (frame_id_p): Return bool.
2807 (frame_id_artificial_p): Return bool.
2808 (frame_id_eq): Return bool.
2809 (has_stack_frames): Return bool.
2810 (get_selected_frame): Fix typo in comment.
2811 (get_frame_pc_if_available): Return bool.
2812 (get_frame_address_in_block_if_available): Return bool.
2813 (get_frame_func_if_available): Return bool.
2814 (read_frame_register_unsigned): Return bool.
2815 (get_frame_register_bytes): Return bool.
2816 (safe_frame_unwind_memory): Return bool.
2817 (deprecated_frame_register_read): Return bool.
2818 (frame_unwinder_is): Return bool.
2819 * frame.c (struct frame_info) <prev_arch::p>: Change type to
2820 bool.
2821 <this_id::p>: Likewise.
2822 <prev_p>: Likewise.
2823 (frame_stash_add): Return bool.
2824 (get_frame_id): Use bool.
2825 (frame_id_build_special) Use bool.
2826 (frame_id_build_unavailable_stack): Use bool.
2827 (frame_id_build): Use bool.
2828 (frame_id_p): Return bool, use true/false instead of 1/0.
2829 (frame_id_artificial_p): Likewise.
2830 (frame_id_eq): Likewise.
2831 (frame_id_inner): Likewise.
2832 (get_frame_func_if_available): Likewise.
2833 (read_frame_register_unsigned): Likewise.
2834 (deprecated_frame_register_read): Likewise.
2835 (get_frame_register_bytes): Likewise.
2836 (has_stack_frames): Likewise.
2837 (inside_main_func): Likewise.
2838 (inside_entry_func): Likewise.
2839 (get_frame_pc_if_available): Likewise.
2840 (get_frame_address_in_block_if_available): Likewise.
2841 (frame_unwinder_is): Likewise.
2842 (safe_frame_unwind_memory): Likewise.
2843 (frame_unwind_arch): Likewise.
2844
fedfee88
SM
28452020-08-04 Simon Marchi <simon.marchi@efficios.com>
2846
2847 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
2848 type to cached_copy_status.
2849 (fprintf_frame): Adjust.
2850 (get_frame_func_if_available): Adjust.
2851 (frame_cleanup_after_sniffer): Adjust.
2852
6cfa9b59
MW
28532020-08-04 Mark Wielaard <mark@klomp.org>
2854
2855 * MAINTAINERS (Write After Approval): Update email address.
2856
66d6346b
SM
28572020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2858
2859 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
2860 dynamic_prop::const_val.
2861
8a6d5e35
SM
28622020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2863
2864 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
2865 dynamic_prop::kind.
2866
51d6067d
SM
28672020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2868
2869 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
2870
b26e2ae7
JM
28712020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
2872
2873 * configure.tgt: Set gdb_sim for bpf-*-* targets.
2874
39791af2
JM
28752020-08-04 Weimin Pan <weimin.pan@oracle.com>
2876 Jose E. Marchesi <jose.marchesi@oracle.com>
2877
2878 * configure.tgt: Add entry for bpf-*-*.
2879 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
2880 (ALLDEPFILES): Add bpf-tdep.c.
2881 * bpf-tdep.c: New file.
2882 * MAINTAINERS: Add bpf target and maintainer.
2883 * NEWS: Mention the support for the new target.
2884
521894aa
TV
28852020-08-04 Tom de Vries <tdevries@suse.de>
2886
2887 PR symtab/23270
2888 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
2889 Error.
2890
5d6356e9
JB
28912020-08-03 John Baldwin <jhb@FreeBSD.org>
2892
2893 * syscalls/freebsd.xml: Regenerate.
2894
0cf82b81
JB
28952020-08-03 John Baldwin <jhb@FreeBSD.org>
2896
2897 * syscalls/update-freebsd.sh: Fix usage and year range.
2898
8f34b746
TV
28992020-08-03 Tom de Vries <tdevries@suse.de>
2900
2901 PR symtab/26333
2902 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
2903 DW_LNE_lo_user/DW_LNE_hi_user range.
2904
5e500d33
SM
29052020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
2906
2907 PR ada/26318
2908 * ada-lang.c (ada_modulus): Return 0 if property is not of const
2909 kind.
2910
78319c15
TBA
29112020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2912
2913 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
2914
4c55e970
TBA
29152020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2916
2917 * breakpoint.c (set_breakpoint_condition): Update the condition
2918 expressions after checking that the input condition string parses
2919 successfully and does not contain junk at the end.
2920
1e620590
TBA
29212020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2922
2923 * breakpoint.c (set_breakpoint_condition): Update the
2924 condition string after parsing the new condition successfully.
2925
c8693053
RO
29262020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2927
2928 * proc-api.c (_STRUCTURED_PROC): Don't define.
2929 * proc-events.c: Likewise.
2930 * proc-flags.c: Likewise.
2931 * proc-why.c: Likewise.
2932 * procfs.c: Likewise.
2933
2934 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
2935 * configure, config.in: Regenerate.
2936
5a99adb8
TV
29372020-07-30 Tom de Vries <tdevries@suse.de>
2938
2939 PR build/26320
2940 * ui-style.h (struct ui_file_style::color): Wrap m_value and
2941 m_red/m_green/m_blue in a union.
2942
8ba83e91
TV
29432020-07-29 Tom de Vries <tdevries@suse.de>
2944
2945 PR tdep/26280
2946 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
2947
f75a0693
AB
29482020-07-28 Tom Tromey <tromey@adacore.com>
2949
2950 PR symtab/26270:
2951 * symtab.h (find_pc_partial_function_sym): Declare.
2952 * cli/cli-cmds.c (disassemble_command): Use
2953 find_pc_partial_function_sym. Check asm_demangle.
2954 * blockframe.c (cache_pc_function_sym): New global.
2955 (cache_pc_function_name): Remove.
2956 (clear_pc_function_cache): Update.
2957 (find_pc_partial_function_sym): New function, from
2958 find_pc_partial_function.
2959 (find_pc_partial_function): Rewrite using
2960 find_pc_partial_function_sym.
2961
16f3242c
TT
29622020-07-28 Tom Tromey <tromey@adacore.com>
2963
2964 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
2965 help. Add usage.
2966
4888741a
TT
29672020-07-28 Tom Tromey <tromey@adacore.com>
2968
2969 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
2970 <DW_OP_GNU_variable_value>: Cast to address type.
2971
4d46f402
KR
29722020-07-28 Kamil Rytarowski <n54@gmx.com>
2973
2974 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
2975 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
2976 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
2977 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
2978 (nbsd_get_siginfo_type): New.
2979 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
2980 (_initialize_nbsd_tdep): New.
2981
d70f978b
L
29822020-07-28 H.J. Lu <hongjiu.lu@intel.com>
2983
2984 PR binutils/26301
2985 * configure: Regenerated.
2986
377170fa
L
29872020-07-28 H.J. Lu <hongjiu.lu@intel.com>
2988
2989 PR binutils/26301
2990 * configure: Regenerated.
2991
43d5901d
AB
29922020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
2993
2994 * python/py-frame.c: Remove 'user-regs.h' include.
2995 (frapy_read_register): Rewrite to make use of
2996 gdbpy_parse_register_id.
2997 * python/py-registers.c (gdbpy_parse_register_id): New function,
2998 moved here from python/py-unwind.c. Updated the return type, and
2999 also accepts register descriptor objects.
3000 * python/py-unwind.c: Remove 'user-regs.h' include.
3001 (pyuw_parse_register_id): Moved to python/py-registers.c.
3002 (unwind_infopy_add_saved_register): Update to use
3003 gdbpy_parse_register_id.
3004 (pending_framepy_read_register): Likewise.
3005 * python/python-internal.h (gdbpy_parse_register_id): Declare.
3006
14fa8fb3
AB
30072020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
3008
3009 * python/py-registers.c: Add 'user-regs.h' include.
3010 (register_descriptor_iter_find): New function.
3011 (register_descriptor_iterator_object_methods): New static global
3012 methods array.
3013 (register_descriptor_iterator_object_type): Add pointer to methods
3014 array.
3015
ddce1758
JB
30162020-07-27 John Baldwin <jhb@FreeBSD.org>
3017
3018 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
3019 for all architectures on FreeBSD 11.3 and later.
3020
a4089f52
TT
30212020-07-27 Tom Tromey <tromey@adacore.com>
3022
3023 * gcore.h (load_corefile): Don't declare.
3024
95420d30
TV
30252020-07-27 Tom de Vries <tdevries@suse.de>
3026
3027 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
3028 * config.in: Regenerate.
3029 * configure: Regenerate.
3030
05a6b8c2
EZ
30312020-07-26 Eli Zaretskii <eliz@gnu.org>
3032
3033 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
3034 ws2tcpip.h. When checking whether socklen_t type is defined, use
3035 ws2tcpip.h if it is available and sys/socket.h isn't.
3036 * configure: Regenerate.
3037 * config.in: Regenerate.
3038
e79eb02f
AB
30392020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
3040
3041 PR fortran/23051
3042 PR fortran/26139
3043 * valops.c (value_ind): Pass address to
3044 readjust_indirect_value_type.
3045 * value.c (readjust_indirect_value_type): Make parameter
3046 non-const, and add extra address parameter. Resolve original type
3047 before using it.
3048 * value.h (readjust_indirect_value_type): Update function
3049 signature and comment.
3050
876518dd
TV
30512020-07-25 Tom de Vries <tdevries@suse.de>
3052
3053 PR symtab/26243
3054 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
3055 entries.
3056
f6720b1c
AM
30572020-07-24 Aaron Merey <amerey@redhat.com>
3058
3059 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
3060 * configure: Rebuild.
3061
513487e1
KB
30622020-07-23 Kevin Buettner <kevinb@redhat.com>
3063
3064 PR corefiles/26294
3065 * corelow.c (_initialize_corelow): Add period to help text
3066 for "maintenance print core-file-backed-mappings".
3067
e7bc9db8
PA
30682020-07-23 Pedro Alves <pedro@palves.net>
3069
3070 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
3071 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
3072 meanwhile.
3073 * frame.c (frame_cache_generation, get_frame_cache_generation):
3074 New.
3075 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
3076 (get_prev_frame_if_no_cycle): On exception, don't touch
3077 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
3078 * frame.h (get_frame_cache_generation): Declare.
3079
90fcc466
TV
30802020-07-23 Tom de Vries <tdevries@suse.de>
3081
3082 PR tui/26282
3083 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
3084 New default constructor.
3085
78344df7
AB
30862020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
3087
3088 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
3089 exclude non-statement entries.
3090
b089853a
KB
30912020-07-22 Kevin Buettner <kevinb@redhat.com>
3092
3093 * NEWS (New commands): Mention new command
3094 "maintenance print core-file-backed-mappings".
3095
09c2f5d4
KB
30962020-07-22 Kevin Buettner <kevinb@redhat.com>
3097
3098 * corelow.c (gdbcmd.h): Include.
3099 (core_target::info_proc_mappings): New method.
3100 (get_current_core_target): New function.
3101 (maintenance_print_core_file_backed_mappings): New function.
3102 (_initialize_corelow): Add core-file-backed-mappings to
3103 "maint print" commands.
3104
9c5ec5c2 31052020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 3106
9c5ec5c2
KB
3107 * linux-tdep.c (dump_note_entry_p): New function.
3108 (linux_dump_mapping_p_ftype): New typedef.
3109 (linux_find_memory_regions_full): Add new parameter,
3110 should_dump_mapping_p.
3111 (linux_find_memory_regions): Adjust call to
3112 linux_find_memory_regions_full.
3113 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
3114 call to linux_find_memory_regions_full.
3115
db082f59
KB
31162020-07-22 Kevin Buettner <kevinb@redhat.com>
3117
3118 * corelow.c (solist.h, unordered_map): Include.
3119 (class core_target): Add field m_core_file_mappings and
3120 method build_file_mappings.
3121 (core_target::core_target): Call build_file_mappings.
3122 (core_target::~core_target): Free memory associated with
3123 m_core_file_mappings.
3124 (core_target::build_file_mappings): New method.
3125 (core_target::xfer_partial): Use m_core_file_mappings
3126 for memory transfers.
3127 * linux-tdep.c (linux_read_core_file_mappings): New
3128 function.
3129 (linux_core_info_proc_mappings): Rewrite to use
3130 linux_read_core_file_mappings.
3131 (linux_init_abi): Register linux_read_core_file_mappings.
3132
7e183d27
KB
31332020-07-22 Kevin Buettner <kevinb@redhat.com>
3134
3135 * arch-utils.c (default_read_core_file_mappings): New function.
3136 * arch-utils.c (default_read_core_file_mappings): Declare.
3137 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
3138 * gdbarch.h, gdbarch.c: Regenerate.
3139
2735d421
KB
31402020-07-22 Kevin Buettner <kevinb@redhat.com>
3141
3142 PR corefiles/25631
3143 * corelow.c (core_target:xfer_partial): Revise
3144 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
3145 case after first checking the stratum beneath the core
3146 target.
3147 (has_all_memory): Return true.
3148 * target.c (raw_memory_xfer_partial): Revise comment
3149 regarding use of has_all_memory.
3150
e56cb451
KB
31512020-07-22 Kevin Buettner <kevinb@redhat.com>
3152
3153 * exec.h (section_table_xfer_memory): Revise declaration,
3154 replacing section name parameter with an optional callback
3155 predicate.
3156 * exec.c (section_table_xfer_memory): Likewise.
3157 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
3158 of section_table_xfer_memory.
3159
32fa152e
TT
31602020-07-22 Tom Tromey <tromey@adacore.com>
3161
3162 * mi/mi-cmd-stack.c (list_args_or_locals): Use
3163 lookup_symbol_search_name.
3164
a67a1c41
AB
31652020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
3166
3167 * python/py-registers.c (gdbpy_register_object_data_init): Remove
3168 redundant local variable.
3169 (gdbpy_get_register_descriptor): Extract descriptor vector as a
3170 reference, not pointer, update code accordingly.
3171
a7b4ff4f
SM
31722020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3173 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3174
3175 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
3176 * jit.c (jit_breakpoint_re_set_internal): Use the
3177 `skip_jit_symbol_lookup` field.
3178
2340e834
SM
31792020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3180 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3181
3182 * jit.c (jit_read_descriptor): Define the descriptor address once,
3183 use twice.
3184 (jit_breakpoint_deleted): Move the declaration of the loop variable
3185 `iter` into the loop header.
3186 (jit_breakpoint_re_set_internal): Move the declaration of the local
3187 variable `objf_data` to the first point of definition.
3188 (jit_event_handler): Move the declaration of local variables
3189 `code_entry`, `entry_addr`, and `objf` to their first point of use.
3190 Rename `objf` to `jited`.
3191
c1072906
SM
31922020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3193
3194 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
3195 Remove.
3196 * jit.c (get_jiter_objfile_data): Update.
3197
c8474dc3
TBA
31982020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3199 Simon Marchi <simon.marchi@polymtl.ca>
3200
3201 * jit.c (struct jit_program_space_data): Remove.
3202 (jit_program_space_key): Remove.
3203 (jiter_objfile_data::~jiter_objfile_data): Remove program space
3204 stuff.
3205 (get_jit_program_space_data): Remove.
3206 (jit_breakpoint_deleted): Iterate on all of the program space's
3207 objfiles.
3208 (jit_inferior_init): Likewise.
3209 (jit_breakpoint_re_set_internal): Likewise. Also change return
3210 type to void.
3211 (jit_breakpoint_re_set): Pass current_program_space to
3212 jit_breakpoint_re_set_internal.
3213
77208eb7
SM
32142020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3215
3216 * jit.h (struct jiter_objfile_data) <cached_code_address,
3217 jit_breakpoint>: Move to here from ...
3218 * jit.c (jit_program_space_data): ... here.
3219 (jiter_objfile_data::~jiter_objfile_data): Update.
3220 (jit_breakpoint_deleted): Update.
3221 (jit_breakpoint_re_set_internal): Update.
3222
8c1c720f
SM
32232020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3224
3225 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
3226 checks.
3227 (jit_read_descriptor): Remove NULL check.
3228 (jit_event_handler): Add an assertion.
3229
0e74a041
SM
32302020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3231
3232 * jit.h (struct jit_objfile_data): Split into...
3233 (struct jiter_objfile_data): ... this ...
3234 (struct jited_objfile_data): ... and this.
3235 * objfiles.h (struct objfile) <jit_data>: Remove.
3236 <jiter_data, jited_data>: New fields.
3237 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
3238 (jiter_objfile_data::~jiter_objfile_data): ... this.
3239 (get_jit_objfile_data): Rename to ...
3240 (get_jiter_objfile_data): ... this.
3241 (add_objfile_entry): Update.
3242 (jit_read_descriptor): Use get_jiter_objfile_data.
3243 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
3244 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
3245 (jit_inferior_exit_hook): Use objfile's jited_data field.
3246
238b5c9f
SM
32472020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3248
3249 * jit.h: Forward-declare `struct minimal_symbol`.
3250 (struct jit_objfile_data): Migrate to here from jit.c; also add a
3251 constructor, destructor, and an objfile* field.
3252 * jit.c (jit_objfile_data): Remove.
3253 (struct jit_objfile_data): Migrate from here to jit.h.
3254 (jit_objfile_data::~jit_objfile_data): New destructor
3255 implementation with code moved from free_objfile_data.
3256 (free_objfile_data): Delete.
3257 (get_jit_objfile_data): Update to use the jit_data field of objfile.
3258 (jit_find_objf_with_entry_addr): Ditto.
3259 (jit_inferior_exit_hook): Ditto.
3260 (_initialize_jit): Remove the call to
3261 register_objfile_data_with_cleanup.
3262 * objfiles.h (struct objfile) <jit_data>: New field.
3263
fe053b9e
TBA
32642020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3265
3266 * jit.h: Forward-declare `struct objfile`.
3267 (jit_event_handler): Add a second parameter, the JITer objfile.
3268 * jit.c (jit_read_descriptor): Change the signature to take the
3269 JITer objfile as an argument instead of the jit_program_space_data.
3270 (jit_inferior_init): Update the call to jit_read_descriptor.
3271 (jit_event_handler): Use the new JITer objfile argument when calling
3272 jit_read_descriptor.
3273 * breakpoint.c (handle_jit_event): Update the call to
3274 jit_event_handler to pass the JITer objfile.
3275
4cec0c66
JB
32762020-07-21 John Baldwin <jhb@FreeBSD.org>
3277
3278 * gdbarch.c: Regenerate.
3279 * gdbarch.h: Regenerate.
3280 * gdbarch.sh (handle_segmentation_fault): Remove method.
3281 * infrun.c (handle_segmentation_fault): Remove.
3282 (print_signal_received_reason): Remove call to
3283 handle_segmentation_fault.
3284
0e42f66a
JB
32852020-07-21 John Baldwin <jhb@FreeBSD.org>
3286
3287 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
3288 Rename to sparc64_linux_report_signal_info and add siggnal
3289 argument.
3290 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
3291 instead of sparc64_linux_handle_segmentation_fault.
3292
77bdfeb2
JB
32932020-07-21 John Baldwin <jhb@FreeBSD.org>
3294
3295 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
3296 i386_linux_report_signal_info instead of
3297 i386_linux_handle_segmentation_fault.
3298 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
3299 to i386_linux_report_signal_info and add siggnal argument.
3300 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
3301 of i386_linux_handle_segmentation_fault.
3302 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
3303 to i386_linux_report_signal_info and add siggnal argument.
3304
ad97bfc5
JB
33052020-07-21 John Baldwin <jhb@FreeBSD.org>
3306
3307 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
3308 hook if present.
3309
272bb05c
JB
33102020-07-21 John Baldwin <jhb@FreeBSD.org>
3311
3312 * gdbarch.c: Regenerate.
3313 * gdbarch.h: Regenerate.
3314 * gdbarch.sh (report_signal_info): New method.
3315 * infrun.c (print_signal_received_reason): Invoke gdbarch
3316 report_signal_info hook if present.
3317
baf8791e
AB
33182020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
3319
3320 * python/py-registers.c : Add 'unordered_map' include.
3321 (gdbpy_new_reggroup): Renamed to...
3322 (gdbpy_get_reggroup): ...this. Update to only create register
3323 group descriptors when needed.
3324 (gdbpy_reggroup_iter_next): Update.
3325
f7306dac
AB
33262020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
3327
3328 * python/py-registers.c (gdbpy_register_object_data): New static
3329 global.
3330 (gdbpy_register_object_data_init): New function.
3331 (gdbpy_new_register_descriptor): Renamed to...
3332 (gdbpy_get_register_descriptor): ...this, and update to reuse
3333 existing register descriptors where possible.
3334 (gdbpy_register_descriptor_iter_next): Update.
3335 (gdbpy_initialize_registers): Register new gdbarch data.
3336
05c309a8
SM
33372020-07-21 Simon Marchi <simon.marchi@efficios.com>
3338
3339 * linux-nat.c (stopped_pids): Make static.
3340
d1fd641e
SM
33412020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
3342
3343 PR ada/26235
3344 * gdbtypes.c (ada_discrete_type_low_bound,
3345 ada_discrete_type_high_bound): Handle undefined bounds.
3346
1de14d77
KR
33472020-07-21 Kamil Rytarowski <n54@gmx.com>
3348
3349 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
3350 declaration.
3351 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
3352 function.
3353
ed810cc7
JB
33542020-07-20 John Baldwin <jhb@FreeBSD.org>
3355
3356 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
3357 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
3358 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
3359 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
3360 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
3361 method.
3362
ae5369e7
LC
33632020-07-20 Ludovic Courtès <ludo@gnu.org>
3364
3365 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
3366 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
3367 which are deprecated in Guile 3.0.
3368 * configure.ac (try_guile_versions): Add "guile-3.0".
3369 * configure (try_guile_versions): Regenerate.
3370 * NEWS: Update entry.
3371
68cf161c
LC
33722020-07-20 Ludovic Courtès <ludo@gnu.org>
3373 Doug Evans <dje@google.com>
3374
3375 PR gdb/21104
3376 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
3377 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
3378 USING_GUILE_BEFORE_2_2.
3379 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
3380 Change type to 'scm_t_port_type *'.
3381 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
3382 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
3383 parameter and honor it. Update callers.
3384 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
3385 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
3386 functions.
3387 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
3388 USING_GUILE_BEFORE_2_2.
3389 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
3390 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
3391 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
3392 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
3393 and 'SCM_PORT_TYPE'.
3394 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
3395 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
3396 (gdbscm_memory_port_read, gdbscm_memory_port_write)
3397 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
3398 [!USING_GUILE_BEFORE_2_2]: New functions.
3399 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
3400 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
3401 'gdbscm_memory_port_read'.
3402 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
3403 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
3404 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
3405 function.
3406 (ioscm_init_memory_port): Remove.
3407 (ioscm_init_memory_port_stream): New function
3408 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
3409 function.
3410 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
3411 Return scm_from_uint (0).
3412 (gdbscm_set_memory_port_read_buffer_size_x)
3413 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
3414 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
3415 Return scm_from_uint (0).
3416 (gdbscm_set_memory_port_write_buffer_size_x)
3417 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
3418 * configure.ac (try_guile_versions): Add "guile-2.2".
3419 * configure: Regenerate.
3420 * NEWS: Add entry.
3421
aee91db3
TT
34222020-07-18 Tom Tromey <tom@tromey.com>
3423
3424 * linux-nat.c (linux_multi_process): Remove.
3425 (linux_nat_target::supports_multi_process): Return true.
3426
0e267416
AB
34272020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
3428
3429 * arch/riscv.c (riscv_tdesc_cache): Change map type.
3430 (riscv_lookup_target_description): Return pointer out of
3431 unique_ptr.
3432 * target-descriptions.c (allocate_target_description): Add
3433 comment.
3434 (target_desc_deleter::operator()): Likewise.
3435 * target-descriptions.h (struct target_desc_deleter): Moved to
3436 gdbsupport/tdesc.h.
3437 (target_desc_up): Likewise.
3438
f80c8ec4
TT
34392020-07-17 Tom Tromey <tromey@adacore.com>
3440
3441 * linux-nat.c (linux_nat_target::supports_non_stop)
3442 (linux_nat_target::always_non_stop_p): Use "true".
3443 (linux_nat_target::supports_disable_randomization): Use "true" and
3444 "false".
3445
d0ce17d8
CT
34462020-07-16 Caroline Tice <cmtice@google.com>
3447
3448 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
3449 (RNGLIST_HEADER_SIZE64): New constant definition.
3450 (struct dwop_section_names): Add rnglists_dwo.
3451 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
3452 (struct loclist_header): Rename to 'loclists_rnglists_header'.
3453 (struct dwo_sections): Add rnglists field.
3454 (read_attribut_reprocess): Add tag parameter.
3455 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
3456 (cu_debug_rnglists_section): New function (decl & definition).
3457 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
3458 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
3459 die whose range is being checked; get rnglist section from
3460 cu_debug_rnglists_section, to get from either objfile or dwo file as
3461 appropriate. Add cases for DW_RLE_base_addressx,
3462 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
3463 the base address to DW_RLE_offset_pairs (not to all ranges), moving
3464 test inside if-condition and updating complaint message.
3465 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
3466 dwarf2_rnglists_process.
3467 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
3468 dwarf2_ranges_process.
3469 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
3470 need_ranges_base and update comment appropriately. Also pass die tag
3471 to dwarf2_ranges_read.
3472 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
3473 need_ranges_base and update comment appropriately. Also pass die tag
3474 to dwarf2_ranges_process.
3475 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
3476 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
3477 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
3478 need_ranges_base and update comment appropriately. Also pass die tag
3479 to read_attribute_reprocess and dwarf2_ranges_read.
3480 (read_loclist_header): Rename function to read_loclists_rnglists_header,
3481 and update function comment appropriately.
3482 (read_loclist_index): Call read_loclists_rnglists_header instead of
3483 read_loclist_header.
3484 (read_rnglist_index): New function.
3485 (read_attribute_reprocess): Add tag parameter. Add code for
3486 DW_FORM_rnglistx, passing tag to read_rnglist_index.
3487 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
3488
3dcc261c
AB
34892020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
3490
3491 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
3492 being resolved.
3493
ccb9eba6
AB
34942020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
3495
3496 * arch-utils.c (show_architecture): Update formatting of messages.
3497
cf88be68
SM
34982020-07-12 Simon Marchi <simon.marchi@efficios.com>
3499
3500 * gdbtypes.h (struct type) <bounds>: Handle array and string
3501 types.
3502 * ada-lang.c (assign_aggregate): Use type::bounds on
3503 array/string type.
3504 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
3505 * c-varobj.c (c_number_of_children): Likewise.
3506 (c_describe_child): Likewise.
3507 * eval.c (evaluate_subexp_for_sizeof): Likewise.
3508 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
3509 (f_type_print_base): Likewise.
3510 * f-valprint.c (f77_array_offset_tbl): Likewise.
3511 (f77_get_upperbound): Likewise.
3512 (f77_print_array_1): Likewise.
3513 * guile/scm-type.c (gdbscm_type_range): Likewise.
3514 * m2-typeprint.c (m2_array): Likewise.
3515 (m2_is_long_set_of_type): Likewise.
3516 * m2-valprint.c (get_long_set_bounds): Likewise.
3517 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
3518 * python/py-type.c (typy_range): Likewise.
3519 * rust-lang.c (rust_internal_print_type): Likewise.
3520 * type-stack.c (type_stack::follow_types): Likewise.
3521 * valarith.c (value_subscripted_rvalue): Likewise.
3522 * valops.c (value_cast): Likewise.
3523
509971ae
SM
35242020-07-12 Simon Marchi <simon.marchi@efficios.com>
3525
3526 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
3527 callers to use the equivalent accessor methods.
3528
107406b7
SM
35292020-07-12 Simon Marchi <simon.marchi@efficios.com>
3530
3531 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
3532 (struct type) <bit_stride>: New method.
3533 (TYPE_BIT_STRIDE): Remove.
3534 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
3535
bb789949
SM
35362020-07-12 Simon Marchi <simon.marchi@efficios.com>
3537
3538 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
3539 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
3540 callers to use the equivalent accessor methods instead.
3541
39498edb
SM
35422020-07-12 Simon Marchi <simon.marchi@efficios.com>
3543
3544 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
3545 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
3546 callers to use the equivalent accessor methods instead.
3547
3b606f38
SM
35482020-07-12 Simon Marchi <simon.marchi@efficios.com>
3549
3550 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
3551 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
3552 to use dynamic_prop::kind.
3553
064d9cb9
SM
35542020-07-12 Simon Marchi <simon.marchi@efficios.com>
3555
3556 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
3557 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
3558 to get the bound property's kind and check against
3559 PROP_UNDEFINED.
3560
5537ddd0
SM
35612020-07-12 Simon Marchi <simon.marchi@efficios.com>
3562
3563 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
3564 all callers to use type::range_bounds followed by
3565 dynamic_prop::{low,high}.
3566
8c2e4e06
SM
35672020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
3568
3569 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
3570 const_val, set_const_val, baton, set_locexpr, set_loclist,
3571 set_addr_offset, variant_parts, set_variant_parts,
3572 original_type, set_original_type>: New methods.
3573 <kind>: Rename to...
3574 <m_kind>: ... this. Update all users to use the new methods
3575 instead.
3576 <data>: Rename to...
3577 <m_data>: ... this. Update all users to use the new methods
3578 instead.
3579
7c6f2712
SM
35802020-07-12 Simon Marchi <simon.marchi@efficios.com>
3581
3582 * gdbtypes.c (get_discrete_bounds): Return failure if
3583 the range type's bounds are not both defined and constant
3584 values.
3585 (get_array_bounds): Update comment. Remove undefined bound check.
3586
599088e3
SM
35872020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
3588
3589 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
3590 the type::bounds method directly.
3591
c4dfcb36
SM
35922020-07-12 Simon Marchi <simon.marchi@efficios.com>
3593
3594 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
3595 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
3596 are used to set the range type's bounds to use set_bounds.
3597
0a278aa7
PW
35982020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3599
3600 * exec.c (_initialize_exec): Update exec-file-mismatch help.
3601
cce20f10
PA
36022020-07-10 Pedro Alves <pedro@palves.net>
3603
3604 * gdbthread.h (inferior_ref): Define.
3605 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
3606 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
3607 * thread.c
3608 (scoped_restore_current_thread::restore):
3609 Adjust to gdb::ref_ptr.
3610 (scoped_restore_current_thread::~scoped_restore_current_thread):
3611 Remove manual decref handling.
3612 (scoped_restore_current_thread::scoped_restore_current_thread):
3613 Adjust to use
3614 inferior_ref::new_reference/thread_info_ref::new_reference.
3615 Incref the thread before calling get_frame_id instead of after.
3616 Let TARGET_CLOSE_ERROR propagate.
3617
6d7aa592
PA
36182020-07-10 Pedro Alves <pedro@palves.net>
3619
3620 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
3621 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
3622 NOT_AVAILABLE_ERROR.
3623 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
3624 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
3625
b3e3a4c1
SM
36262020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3627 Pedro Alves <pedro@palves.net>
3628
3629 PR gdb/26199
3630 * infrun.c (threads_are_resumed_pending_p): Delete.
3631 (do_target_wait): Remove threads_are_executing and
3632 threads_are_resumed_pending_p checks from the inferior_matches
3633 lambda. Update comments.
3634
d6cc5d98
PA
36352020-07-10 Pedro Alves <pedro@palves.net>
3636
3637 PR gdb/26199
3638 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
3639 executing threads.
3640
7d3badc6
PA
36412020-07-10 Pedro Alves <pedro@palves.net>
3642
3643 PR gdb/26199
3644 * infrun.c (handle_no_resumed): Handle multiple targets.
3645
42bd97a6
PA
36462020-07-10 Pedro Alves <pedro@palves.net>
3647
3648 PR gdb/26199
3649 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
3650 target_is_async_p.
3651
43667cc6
PA
36522020-07-10 Pedro Alves <pedro@palves.net>
3653
3654 PR gdb/26199
3655 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
3656 threads, not all threads.
3657
96118d11
PA
36582020-07-10 Pedro Alves <pedro@palves.net>
3659
3660 PR gdb/26199
3661 * remote.c (remote_target::open_1): Pass remote target pointer as
3662 data to create_async_event_handler.
3663 (remote_async_inferior_event_handler): Mark async event handler
3664 before returning if the remote target still has either pending
3665 events or unacknowledged notifications.
3666
54904d81
JB
36672020-07-10 John Baldwin <jhb@FreeBSD.org>
3668
3669 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
3670 declaration.
3671 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
3672 function.
3673
f37e5866
JB
36742020-07-09 John Baldwin <jhb@FreeBSD.org>
3675
3676 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
3677 inferior_ptid.
3678
fc238d4a
JB
36792020-07-09 John Baldwin <jhb@FreeBSD.org>
3680
3681 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
3682 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
3683 AT_FREEBSD_PS_STRINGS.
3684
6e2469ff
HD
36852020-07-08 Hannes Domani <ssbssa@yahoo.de>
3686
3687 * auto-load.c (auto_load_objfile_script_1): Convert drive part
3688 of debugfile path on Windows.
3689
d1076c41
JB
36902020-07-08 John Baldwin <jhb@FreeBSD.org>
3691
3692 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
3693 argument to 'data'.
3694
15f3b077
TT
36952020-07-08 Tom Tromey <tromey@adacore.com>
3696
3697 * ada-lang.c (ada_exception_message_1): Use read_memory.
3698
9fc501fd
AB
36992020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3700
3701 PR python/22748
3702 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
3703 special handling for inline frames.
3704 * findvar.c (value_of_register_lazy): Skip inline frames when
3705 creating lazy register values.
3706 * frame.c (frame_id_computed_p): Delete definition.
3707 * frame.h (frame_id_computed_p): Delete declaration.
3708
64cb3757
AB
37092020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3710
3711 * NEWS: Mention additions to Python API.
3712 * python/py-arch.c (archpy_register_groups): New function.
3713 (arch_object_methods): Add 'register_groups' method.
3714 * python/py-registers.c (reggroup_iterator_object): New struct.
3715 (reggroup_object): New struct.
3716 (gdbpy_new_reggroup): New function.
3717 (gdbpy_reggroup_to_string): New function.
3718 (gdbpy_reggroup_name): New function.
3719 (gdbpy_reggroup_iter): New function.
3720 (gdbpy_reggroup_iter_next): New function.
3721 (gdbpy_new_reggroup_iterator): New function
3722 (gdbpy_initialize_registers): Register new types.
3723 (reggroup_iterator_object_type): Define new Python type.
3724 (gdbpy_reggroup_getset): New static global.
3725 (reggroup_object_type): Define new Python type.
3726 * python/python-internal.h
3727
0f767f94
AB
37282020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3729
3730 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
3731 * python/py-arch.c (archpy_registers): New function.
3732 (arch_object_methods): Add 'registers' method.
3733 * python/py-registers.c: New file.
3734 * python/python-internal.h
3735 (gdbpy_new_register_descriptor_iterator): Declare.
3736 (gdbpy_initialize_registers): Declare.
3737 * python/python.c (do_start_initialization): Call
3738 gdbpy_initialize_registers.
3739 * NEWS: Mention additions to the Python API.
3740
87dbc774
AB
37412020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3742
3743 * NEWS: Mention new Python API method.
3744 * python/py-unwind.c (pending_framepy_architecture): New function.
3745 (pending_frame_object_methods): Add architecture method.
3746
3bc98c0c
AB
37472020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3748
3749 * gdbarch.c: Regenerate.
3750 * gdbarch.h: Regenerate.
3751 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
3752 (gdbarch_data): Use internal_error for the case where
3753 deprecated_set_gdbarch_data was originally needed.
3754 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
3755 and use passed in obstack.
3756 (libunwind_frame_set_descr): Should no longer get back NULL from
3757 gdbarch_data.
3758 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
3759 type.
3760 * user-regs.c (user_regs_init): Update parameters, and use passed
3761 in obstack.
3762 (user_reg_add): Should no longer get back NULL from gdbarch_data.
3763 (_initialize_user_regs): Register as a pre-init gdbarch data type.
3764
d8cc8af6
TV
37652020-07-06 Tom de Vries <tdevries@suse.de>
3766
3767 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
3768 End-Of-Sequence in lte_is_less_than.
3769 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
3770 "gdb: Don't reorder line table entries too much when sorting".
3771
947f7597
TV
37722020-07-06 Tom de Vries <tdevries@suse.de>
3773
3774 PR tui/26205
3775 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
3776
1e7c1b22
TV
37772020-07-05 Tom de Vries <tdevries@suse.de>
3778
3779 PR build/26187
3780 * inferior.h (struct infcall_suspend_state_deleter): If available, use
3781 std::uncaught_exceptions instead of deprecated
3782 std::uncaught_exception.
3783
a36158ec
SM
37842020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3785
3786 * macroexp.h (macro_stringify): Return
3787 gdb::unique_xmalloc_ptr<char>.
3788 * macroexp.c (macro_stringify): Likewise.
3789 * macrotab.c (fixup_definition): Update.
3790
14d960c8
SM
37912020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3792
3793 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
3794 (lex_one_token): Update.
3795 * macroexp.c (struct macro_buffer) <release>: Return
3796 gdb::unique_xmalloc_ptr<char>.
3797 (macro_stringify): Update.
3798 (macro_expand): Update.
3799 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
3800 * macroexp.h (macro_expand_next): Likewise.
3801
211d5b1c
SM
38022020-07-02 Simon Marchi <simon.marchi@efficios.com>
3803
3804 * macroexp.h (macro_lookup_ftype): Remove.
3805 (macro_expand, macro_expand_once, macro_expand_next): Remove
3806 lookup function parameters, add scope parameter.
3807 * macroexp.c (scan, substitute_args, expand, maybe_expand,
3808 macro_expand, macro_expand_once, macro_expand_next): Likewise.
3809 * macroscope.h (standard_macro_lookup): Change parameter type
3810 to macro_scope.
3811 * macroscope.c (standard_macro_lookup): Likewise.
3812 * c-exp.y (lex_one_token): Update.
3813 * macrocmd.c (macro_expand_command): Likewise.
3814 (macro_expand_once_command): Likewise.
3815
b1a35af2
SM
38162020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3817
3818 * inf-loop.c (inferior_event_handler): Remove client_data param.
3819 * inf-loop.h (inferior_event_handler): Likewise.
3820 * infcmd.c (step_1): Adjust.
3821 * infrun.c (proceed): Adjust.
3822 (fetch_inferior_event): Remove client_data param.
3823 (infrun_async_inferior_event_handler): Adjust.
3824 * infrun.h (fetch_inferior_event): Remove `void *` param.
3825 * linux-nat.c (handle_target_event): Adjust.
3826 * record-btrace.c (record_btrace_handle_async_inferior_event):
3827 Adjust.
3828 * record-full.c (record_full_async_inferior_event_handler):
3829 Adjust.
3830 * remote.c (remote_async_inferior_event_handler): Adjust.
3831
1cdf9e33
TT
38322020-07-01 Tom Tromey <tom@tromey.com>
3833
3834 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
3835 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
3836
32c1e210
TT
38372020-07-01 Tom Tromey <tom@tromey.com>
3838
3839 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
3840 tui_gen_win_info.
3841 (tui_win_info::make_window): Merge with
3842 tui_gen_win_info::make_window.
3843 (tui_win_info::make_visible): Move from tui_gen_win_info.
3844 * tui/tui-win.c (tui_win_info::max_width): Move from
3845 tui_gen_win_info.
3846 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
3847 type.
3848 <window_factory>: Likewise.
3849 * tui/tui-layout.c (tui_win_info::resize): Move from
3850 tui_gen_win_info.
3851 (make_standard_window): Change return type.
3852 (get_locator_window, tui_get_window_by_name): Likewise.
3853 (tui_layout_window::apply): Remove a cast.
3854 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
3855 (struct tui_win_info): Merge with tui_gen_win_info.
3856 (struct tui_gen_win_info): Remove.
3857
a30cb6da
TT
38582020-07-01 Tom Tromey <tom@tromey.com>
3859
3860 * tui/tui-stack.h (struct tui_locator_window): Derive from
3861 tui_win_info.
3862 <do_scroll_horizontal, do_scroll_vertical>: New methods.
3863 <can_box>: New method.
3864
1eb2161f
TT
38652020-07-01 Tom Tromey <tom@tromey.com>
3866
3867 * tui/tui-stack.h (struct tui_locator_window): Remove body.
3868
7134f2eb
TT
38692020-07-01 Tom Tromey <tom@tromey.com>
3870
3871 * tui/tui-regs.c (tui_data_window::display_registers_from)
3872 (tui_data_window::display_registers_from)
3873 (tui_data_window::first_data_item_displayed)
3874 (tui_data_window::delete_data_content_windows): Update.
3875 (tui_data_window::refresh_window, tui_data_window::no_refresh):
3876 Remove.
3877 (tui_data_window::check_register_values): Update.
3878 (tui_data_item_window::rerender): Add parameters. Update.
3879 (tui_data_item_window::refresh_window): Remove.
3880 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
3881 virtual.
3882 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
3883 tui_gen_win_info.
3884 <refresh_window, max_height, min_height>: Remove.
3885 <rerender>: Add parameters.
3886 <x, y, visible>: New members.
3887 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
3888 <m_item_width>: New member.
3889
22b7b041
TT
38902020-07-01 Tom Tromey <tom@tromey.com>
3891
3892 * tui/tui-regs.c (tui_data_window::show_register_group)
3893 (tui_data_window::check_register_values): Update.
3894 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
3895 from item_no.
3896
c9753adb
TT
38972020-07-01 Tom Tromey <tom@tromey.com>
3898
3899 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
3900 useless "if".
3901
9ab26b4a
TT
39022020-07-01 Tom Tromey <tom@tromey.com>
3903
3904 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
3905 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
3906
e555083f
TT
39072020-07-01 Tom Tromey <tom@tromey.com>
3908
3909 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
3910 * tui/tui-winsource.h (enum tui_line_or_address_kind)
3911 (struct tui_line_or_address): Move from tui-data.h.
3912 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
3913 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
3914 (tui_cmd_window, tui_source_window_base, tui_source_window)
3915 (tui_disasm_window): Don't declare.
3916 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
3917 to tui-winsource.h.
3918 (SINGLE_KEY): Move to tui-stack.c.
3919
7a02bab7
TT
39202020-07-01 Tom Tromey <tom@tromey.com>
3921
3922 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
3923 std::string.
3924 * tui/tui-regs.c (class tab_expansion_file): New.
3925 (tab_expansion_file::write): New method.
3926 (tui_register_format): Change return type. Use
3927 tab_expansion_file.
3928 (tui_get_register, tui_data_window::display_registers_from)
3929 (tui_data_item_window::rerender): Update.
3930 * tui/tui-io.h (tui_expand_tabs): Don't declare.
3931 * tui/tui-io.c (tui_expand_tabs): Remove.
3932
ea68593b
TT
39332020-07-01 Tom Tromey <tom@tromey.com>
3934
3935 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
3936
a8caed5d
FS
39372020-07-01 Fangrui Song <maskray@google.com>
3938
3939 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
3940
9cdf9820
AKS
39412020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3942
3943 * dwarf2/read.c (set_die_type): Removed conditions to restrict
3944 forms for DW_AT_associated and DW_AT_allocated attributes,
3945 which is already checked in function attr_to_dynamic_prop.
3946
a1520ad8
TT
39472020-06-30 Tom Tromey <tromey@adacore.com>
3948
3949 * dwarf2/read.c (quirk_rust_enum): Correctly call
3950 alloc_rust_variant for default-less enum.
3951
5ac58899
TT
39522020-06-30 Tom Tromey <tromey@adacore.com>
3953
3954 PR build/26183:
3955 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
3956 gdb::to_string.
3957
19b187a9
SM
39582020-06-29 Simon Marchi <simon.marchi@efficios.com>
3959
3960 * gdbarch.sh (displaced_step_copy_insn): Update doc.
3961 * gdbarch.h: Re-generate.
3962
cd4c4c07
TT
39632020-06-28 Tom Tromey <tom@tromey.com>
3964
3965 * command.h (cmd_types): Remove.
3966 (cmd_type): Don't declare.
3967 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
3968 typedef.
3969 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
3970 * cli/cli-decode.c (cmd_type): Remove.
3971
05779d57
PA
39722020-06-27 Pedro Alves <palves@redhat.com>
3973
3974 * fork-child.c (prefork_hook): Adjust.
3975 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
3976 Delete.
3977 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
3978 * inferior.c (inferior::set_tty, inferior::tty): New methods.
3979 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
3980 Remove declarations.
3981 (struct inferior) <set_tty, tty>: New methods.
3982 (struct inferior) <terminal>: Rename to ...
3983 (struct inferior) <m_terminal>: ... this and make private.
3984 * main.c (captured_main_1): Adjust.
3985 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
3986 (mi_cmd_inferior_tty_show): Adjust.
3987 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
3988 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
3989
1776e3e5
NA
39902020-06-26 Nick Alcock <nick.alcock@oracle.com>
3991
3992 * configure.ac: Add --enable-libctf: handle --disable-static
3993 properly.
3994 * acinclude.m4: sinclude ../config/enable.m4.
3995 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
3996 (LIBCTF): Substitute in.
3997 (CTF_DEPS): New, likewise.
3998 (CLIBS): libctf needs symbols from libbfd: move earlier.
3999 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
4000 flags.
4001 * ctfread.c: Surround in ENABLE_LIBCTF.
4002 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
4003 * configure: Regenerate.
4004 * config.in: Likewise.
4005
58373b80
SM
40062020-06-25 Simon Marchi <simon.marchi@efficios.com>
4007
4008 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
4009
277474ee
SM
40102020-06-25 Simon Marchi <simon.marchi@efficios.com>
4011
4012 * inferior.h (struct inferior) <terminal>: Change type to
4013 gdb::unique_xmalloc_ptr<char>.
4014 * inferior.c (inferior::~inferior): Don't free inf->terminal.
4015 * infcmd.c (set_inferior_io_terminal): Don't free terminal
4016 field, adjust to unique pointer.
4017 (get_inferior_io_terminal): Adjust to unique pointer.
4018
6d74da72
AB
40192020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4020
4021 * riscv-tdep.c (riscv_print_registers_info): Loop over all
4022 registers, not just the known core set of registers.
4023
2e52d038
AB
40242020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4025
4026 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
4027 fflags, frm, and fcsr registers.
4028 (riscv_register_reggroup_p): Remove unknown CSRs from save and
4029 restore groups.
4030 (riscv_tdesc_unknown_reg): New function.
4031 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
4032 tdesc_use_registers.
4033 * riscv-tdep.h (struct gdbarch_tdep): Add
4034 unknown_csrs_first_regnum, unknown_csrs_count,
4035 duplicate_fflags_regnum, duplicate_frm_regnum, and
4036 duplicate_fcsr_regnum fields.
4037
be64fd07
AB
40382020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4039
4040 * target-descriptions.c (tdesc_use_registers): Add new parameter a
4041 callback, use the callback (when not null) to help number unknown
4042 registers.
4043 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
4044 (tdesc_use_registers): Add extra parameter to declaration.
4045
3b9fce96
AB
40462020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4047
4048 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
4049 in the file.
4050 (class riscv_pending_register_alias): Likewise.
4051 (riscv_register_feature::register_info): Change 'required_p' field
4052 to 'required', and change its type. Add 'check' member function.
4053 (riscv_register_feature::register_info::check): Define new member
4054 function.
4055 (riscv_xreg_feature): Change initialisation of 'required' field.
4056 (riscv_freg_feature): Likewise.
4057 (riscv_virtual_feature): Likewise.
4058 (riscv_csr_feature): Likewise.
4059 (riscv_check_tdesc_feature): Take extra parameter, the csr
4060 tdesc_feature, rewrite the function to use the new
4061 riscv_register_feature::register_info::check function.
4062 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
4063
865bad26
AB
40642020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4065
4066 * features/Makefile: Remove all references to the deleted files
4067 below.
4068 * features/riscv/32bit-csr.c: Deleted.
4069 * features/riscv/32bit-csr.xml: Deleted.
4070 * features/riscv/64bit-csr.c: Deleted.
4071 * features/riscv/64bit-csr.xml: Deleted.
4072 * features/riscv/rebuild-csr-xml.sh: Deleted.
4073
ed69cbc8
AB
40742020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4075
4076 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
4077 whitespace error for declaration of names member variable.
4078 (struct riscv_register_feature): Add new prefer_first_name member
4079 variable, and fix whitespace error in declaration of registers.
4080 (riscv_xreg_feature): Initialize prefer_first_name field.
4081 (riscv_freg_feature): Likewise.
4082 (riscv_virtual_feature): Likewise.
4083 (riscv_csr_feature): Likewise.
4084 (riscv_register_name): Expand on comments. Remove register name
4085 modifications for CSR and virtual registers.
4086
4445e8f5
AB
40872020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4088
4089 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
4090 errors.
4091
767a879e
AB
40922020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4093
4094 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
4095 riscv-opc.h.
4096 (class riscv_pending_register_alias): New class.
4097 (riscv_check_tdesc_feature): Take vector of pending aliases and
4098 populate it as appropriate.
4099 (riscv_setup_register_aliases): Delete.
4100 (riscv_gdbarch_init): Create vector of pending aliases and pass it
4101 to riscv_check_tdesc_feature in all cases. Use the vector to
4102 create the register aliases.
4103
bb6e55f3
RO
41042020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4105
4106 * sol2-tdep.c (sol2_static_transform_name): Remove.
4107 (sol2_init_abi): Don't register it.
4108 * gdbarch.sh (static_transform_name): Remove.
4109 * gdbarch.c, gdbarch.h: Regenerate.
4110
4111 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
4112 gdbarch_static_transform_name.
4113 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
4114 * stabsread.c (define_symbol) <'X'>: Remove.
4115 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
4116 handling.
4117 <'V'>: Likewise.
4118 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
4119 <'S'>: Remove call to gdbarch_static_transform_name.
4120
c6d36836
RO
41212020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4122
4123 * procfs.c (procfs_pre_trace): New function.
4124 (procfs_target::create_inferior): Pass it to fork_inferior.
4125
a7e6196b
RO
41262020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4127
4128 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
4129 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
4130 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
4131 sol2-tdep.o, sparc-sol2-tdep.o.
4132 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
4133 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
4134 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
4135 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
4136
d412e696
RO
41372020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4138
4139 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
4140 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
4141 Call sol2_init_abi.
4142 Remove calls to set_gdbarch_skip_solib_resolver,
4143 set_gdbarch_core_pid_to_str.
4144 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
4145 (i386_sol2_static_transform_name): Remove.
4146 (i386_sol2_init_abi): Call sol2_init_abi.
4147 Remove calls to set_gdbarch_sofun_address_maybe_missing,
4148 set_gdbarch_static_transform_name,
4149 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
4150 Use sol2_sigtramp_p.
4151 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
4152 (sol2_sigtramp_p): New function.
4153 (sol2_static_transform_name): New function.
4154 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
4155 (sol2_init_abi): New function.
4156 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
4157 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
4158 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
4159 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
4160 (sparc_sol2_static_transform_name): Remove.
4161 (sparc32_sol2_init_abi): Call sol2_init_abi.
4162 Remove calls to set_gdbarch_sofun_address_maybe_missing,
4163 set_gdbarch_static_transform_name,
4164 set_gdbarch_skip_solib_resolver,
4165 set_gdbarch_core_pid_to_str.
4166 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
4167 (sparc_sol2_static_transform_name): Remove
4168 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
4169 call sol2_sigtramp_p.
4170 (sparc64_sol2_init_abi): Call sol2_init_abi.
4171 Remove calls to set_gdbarch_sofun_address_maybe_missing,
4172 set_gdbarch_static_transform_name,
4173 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
4174
a8654e7d
PW
41752020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4176
4177 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
4178 * exec.c (validate_exec_file): If from_tty, set both
4179 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
4180 * symfile.c (symbol_file_add_with_addrs): if always_confirm
4181 and from_tty, unconditionally ask a confirmation.
4182
caa7fd04
AB
41832020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4184
4185 * target-descriptions.c (tdesc_architecture_name): Protect against
4186 NULL pointer dereference.
4187 (maint_print_xml_tdesc_cmd): New function.
4188 (_initialize_target_descriptions): Register new 'maint print
4189 xml-tdesc' command and give it the filename completer.
4190 * NEWS: Mention new 'maint print xml-tdesc' command.
4191
fbf42f4e
AB
41922020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4193
4194 * target-descriptions.c (class tdesc_compatible_info): New class.
4195 (struct target_desc): Change type of compatible vector.
4196 (tdesc_compatible_p): Update for change in type of
4197 target_desc::compatible.
4198 (tdesc_compatible_info_list): New function.
4199 (tdesc_compatible_info_arch_name): New function.
4200 (tdesc_add_compatible): Update for change in type of
4201 target_desc::compatible.
4202 (print_c_tdesc::visit_pre): Likewise.
4203
20821f4e
AB
42042020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4205
4206 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
4207 whitespace to underscore.
4208 (maint_print_c_tdesc_cmd): Use fake filename for target
4209 descriptions that came from the target.
4210 (_initialize_target_descriptions): Add filename command completion
4211 for 'maint print c-tdesc'.
4212
1fb5ee62
SM
42132020-06-23 Simon Marchi <simon.marchi@efficios.com>
4214
4215 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
4216 lines.
4217
fc3ecb3e
SM
42182020-06-23 Simon Marchi <simon.marchi@efficios.com>
4219
4220 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
4221 lines.
4222 (dwarf2_find_location_expression): Likewise.
4223 (call_site_parameter_matches): Likewise.
4224 (dwarf2_compile_expr_to_ax): Likewise.
4225 (disassemble_dwarf_expression): Likewise.
4226 (loclist_describe_location): Likewise.
4227
236ef034
PA
42282020-06-23 Pedro Alves <palves@redhat.com>
4229
4230 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
4231 progspace-and-thread.h. Include scoped-mock-context.h instead.
4232 (register_to_value_test): Use scoped_mock_context.
4233 * regcache.c: Include "scoped-mock-context.h".
4234 (cooked_read_test): Don't error out if a target is already pushed.
4235 Use scoped_mock_context. Adjust.
4236 * scoped-mock-context.h: New file.
4237
39e7ecca
AB
42382020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4239
4240 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
4241 initializer.
4242 (ada_language::is_string_type_p): New member function.
4243 * c-lang.c (c_language_data): Delete la_is_string_type_p
4244 initializer.
4245 (cplus_language_data): Likewise.
4246 (asm_language_data): Likewise.
4247 (minimal_language_data): Likewise.
4248 * d-lang.c (d_language_data): Likewise.
4249 * f-lang.c (f_is_string_type_p): Delete function, implementation
4250 moved to f_language::is_string_type_p.
4251 (f_language_data): Delete la_is_string_type_p initializer.
4252 (f_language::is_string_type_p): New member function,
4253 implementation from f_is_string_type_p.
4254 * go-lang.c (go_is_string_type_p): Delete function, implementation
4255 moved to go_language::is_string_type_p.
4256 (go_language_data): Delete la_is_string_type_p initializer.
4257 (go_language::is_string_type_p): New member function,
4258 implementation from go_is_string_type_p.
4259 * language.c (language_defn::is_string_type_p): Define new member
4260 function.
4261 (default_is_string_type_p): Make static, add comment copied from
4262 header file.
4263 (unknown_language_data): Delete la_is_string_type_p initializer.
4264 (unknown_language::is_string_type_p): New member function.
4265 (auto_language_data): Delete la_is_string_type_p initializer.
4266 (auto_language::is_string_type_p): New member function.
4267 * language.h (language_data): Delete la_is_string_type_p field.
4268 (language_defn::is_string_type_p): Declare new function.
4269 (default_is_string_type_p): Delete desclaration, move comment to
4270 definition.
4271 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
4272 moved to m2_language::is_string_type_p.
4273 (m2_language_data): Delete la_is_string_type_p initializer.
4274 (m2_language::is_string_type_p): New member function,
4275 implementation from m2_is_string_type_p.
4276 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
4277 initializer.
4278 * opencl-lang.c (opencl_language_data): Likewise.
4279 * p-lang.c (pascal_is_string_type_p): Delete function,
4280 implementation moved to pascal_language::is_string_type_p.
4281 (pascal_language_data): Delete la_is_string_type_p initializer.
4282 (pascal_language::is_string_type_p): New member function,
4283 implementation from pascal_is_string_type_p.
4284 * rust-lang.c (rust_is_string_type_p): Delete function,
4285 implementation moved to rust_language::is_string_type_p.
4286 (rust_language_data): Delete la_is_string_type_p initializer.
4287 (rust_language::is_string_type_p): New member function,
4288 implementation from rust_is_string_type_p.
4289 * valprint.c (val_print_scalar_or_string_type_p): Update call to
4290 is_string_type_p.
4291
4ffc13fb
AB
42922020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4293
4294 * ada-lang.c (ada_language_data): Delete la_print_typedef
4295 initializer.
4296 (ada_language::print_typedef): New member function.
4297 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
4298 (cplus_language_data): Likewise.
4299 (asm_language_data): Likewise.
4300 (minimal_language_data): Likewise.
4301 * d-lang.c (d_language_data): Likewise.
4302 * f-lang.c (f_language_data): Likewise.
4303 (f_language::print_typedef): New member function.
4304 * go-lang.c (go_language_data): Delete la_print_typedef
4305 initializer.
4306 * language.c (language_defn::print_typedef): Define member
4307 function.
4308 (unknown_language_data): Delete la_print_typedef initializer.
4309 (unknown_language::print_typedef): New member function.
4310 (auto_language_data): Delete la_print_typedef initializer.
4311 (auto_language::print_typedef): New member function.
4312 * language.h (language_data): Delete la_print_typedef field.
4313 (language_defn::print_typedef): Declare new member function.
4314 (LA_PRINT_TYPEDEF): Update call to print_typedef.
4315 (default_print_typedef): Delete declaration.
4316 * m2-lang.c (m2_language_data): Delete la_print_typedef
4317 initializer.
4318 (m2_language::print_typedef): New member function.
4319 * objc-lang.c (objc_language_data): Delete la_print_typedef
4320 initializer.
4321 * opencl-lang.c (opencl_language_data): Likewise.
4322 * p-lang.c (pascal_language_data): Likewise.
4323 (pascal_language::print_typedef): New member function.
4324 * rust-lang.c (rust_print_typedef): Delete function,
4325 implementation moved to rust_language::print_typedef.
4326 (rust_language): Delete la_print_typedef initializer.
4327 (rust_language::print_typedef): New member function,
4328 implementation from rust_print_typedef.
4329 * typeprint.c (default_print_typedef): Delete.
4330
d711ee67
AB
43312020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4332
4333 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
4334 (ada_language::printstr): New member function.
4335 * c-lang.c (c_language_data): Delete la_printstr initializer.
4336 (cplus_language_data): Likewise.
4337 (asm_language_data): Likewise.
4338 (minimal_language_data): Likewise.
4339 * d-lang.c (d_language_data): Likewise.
4340 * f-lang.c (f_printstr): Rename to f_language::printstr.
4341 (f_language_data): Delete la_printstr initializer.
4342 (f_language::printstr): New member function, implementation from
4343 f_printstr.
4344 * go-lang.c (go_language_data): Delete la_printstr initializer.
4345 * language.c (language_defn::printstr): Define new member
4346 function.
4347 (unk_lang_printstr): Delete.
4348 (unknown_language_data): Delete la_printstr initializer.
4349 (unknown_language::printstr): New member function.
4350 (auto_language_data): Delete la_printstr initializer.
4351 (auto_language::printstr): New member function.
4352 * language.h (language_data): Delete la_printstr field.
4353 (language_defn::printstr): Declare new member function.
4354 (LA_PRINT_STRING): Update call to printstr.
4355 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
4356 (m2_language_data): Delete la_printstr initializer.
4357 (m2_language::printstr): New member function, implementation from
4358 m2_printstr.
4359 * objc-lang.c (objc_language_data): Delete la_printstr
4360 initializer.
4361 * opencl-lang.c (opencl_language_data): Likewise.
4362 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
4363 (pascal_language_data): Delete la_printstr initializer.
4364 (pascal_language::printstr): New member function, implementation
4365 from pascal_printstr.
4366 * p-lang.h (pascal_printstr): Delete declaration.
4367 * rust-lang.c (rust_printstr): Update header comment.
4368 (rust_language_data): Delete la_printstr initializer.
4369 (rust_language::printstr): New member function.
4370
52b50f2c
AB
43712020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4372
4373 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
4374 (ada_language::printchar): New member function.
4375 * c-lang.c (c_language_data): Delete la_printchar initializer.
4376 (cplus_language_data): Likewise.
4377 (asm_language_data): Likewise.
4378 (minimal_language_data): Likewise.
4379 * d-lang.c (d_language_data): Likewise.
4380 * f-lang.c (f_printchar): Rename to f_language::printchar.
4381 (f_language_data): Delete la_printchar initializer.
4382 (f_language::printchar): New member function, implementation from
4383 f_printchar.
4384 * go-lang.c (go_language_data): Delete la_printchar initializer.
4385 * language.c (unk_lang_printchar): Delete.
4386 (language_defn::printchar): Define new member function.
4387 (unknown_language_data): Delete la_printchar initializer.
4388 (unknown_language::printchar): New member function.
4389 (auto_language_data): Delete la_printchar initializer.
4390 (auto_language::printchar): New member function.
4391 * language.h (language_data): Delete la_printchar field.
4392 (language_defn::printchar): Declare new member function.
4393 (LA_PRINT_CHAR): Update call to printchar.
4394 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
4395 (m2_language::printchar): New member function.
4396 * objc-lang.c (objc_language_data): Delete la_printchar
4397 initializer.
4398 * opencl-lang.c (opencl_language_data): Likewise.
4399 * p-lang.c (pascal_language_data): Delete la_printchar
4400 initializer.
4401 (pascal_language::printchar): New member function.
4402 * rust-lang.c (rust_printchar): Rename to
4403 rust_language::printchar.
4404 (rust_language_data): Delete la_printchar initializer.
4405 (rust_language::printchar): New member function, implementation
4406 from rust_printchar.
4407
ec8cec5b
AB
44082020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4409
4410 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
4411 (ada_language_data): Delete la_emitchar initializer.
4412 (ada_language::emitchar): New member function, implementation from
4413 emit_char.
4414 * c-lang.c (c_language_data): Delete la_emitchar initializer.
4415 (cplus_language_data): Likewise.
4416 (asm_language_data): Likewise.
4417 (minimal_language_data): Likewise.
4418 * d-lang.c (d_language_data): Likewise.
4419 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
4420 (f_language_data): Delete la_emitchar initializer.
4421 (f_language::emitchar): New member function, implementation from
4422 f_emit_char.
4423 * go-lang.c (go_language_data): Delete la_emitchar initializer.
4424 * language.c (unk_lang_emit_char): Delete.
4425 (language_defn::emitchar): New member function definition.
4426 (unknown_language_data): Delete la_emitchar initializer.
4427 (unknown_language::emitchar): New member function.
4428 (auto_language_data): Delete la_emitchar initializer.
4429 (auto_language::emitchar): New member function.
4430 * language.h (language_data): Delete la_emitchar field.
4431 (language_defn::emitchar): New member field declaration.
4432 (LA_EMIT_CHAR): Update call to emitchar.
4433 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
4434 (m2_language_data): Delete la_emitchar initializer.
4435 (m2_language::emitchar): New member function, implementation from
4436 m2_emit_char.
4437 * objc-lang.c (objc_language_data): Delete la_emitchar
4438 initializer.
4439 * opencl-lang.c (opencl_language_data): Likewise.
4440 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
4441 (pascal_language_data): Delete la_emitchar initializer.
4442 (pascal_language::emitchar): New member function, implementation
4443 from pascal_emit_char.
4444 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
4445 (rust_language_data): Delete la_emitchar initializer.
4446 (rust_language::emitchar): New member function, implementation
4447 from rust_emitchar.
4448
1bf9c363
AB
44492020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4450
4451 * ada-lang.c (resolve): Rename to ada_language::post_parser.
4452 (ada_language_data): Delete la_post_parser initializer.
4453 (ada_language::post_parser): New member function.
4454 * c-lang.c (c_language_data): Delete la_post_parser initializer.
4455 (cplus_language_data): Likewise.
4456 (asm_language_data): Likewise.
4457 (minimal_language_data): Likewise.
4458 * d-lang.c (d_language_data): Likewise.
4459 * f-lang.c (f_language_data): Likewise.
4460 * go-lang.c (go_language_data): Likewise.
4461 * language.c (unknown_language_data): Likewise.
4462 (auto_language_data): Likewise.
4463 * language.h (language_data): Delete la_post_parser field.
4464 (language_defn::post_parser): New member function.
4465 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
4466 * objc-lang.c (objc_language_data): Likewise.
4467 * opencl-lang.c (opencl_language_data): Likewise.
4468 * p-lang.c (pascal_language_data): Likewise.
4469 * parse.c (parse_exp_in_context): Update call to post_parser.
4470 (null_post_parser): Delete definition.
4471 * parser-defs.h (null_post_parser): Delete declaration.
4472 * rust-lang.c (rust_language_data): Delete la_post_parser
4473 initializer.
4474
87afa652
AB
44752020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4476
4477 * ada-lang.c (parse): Rename to ada_language::parser.
4478 (ada_language_data): Delete la_parser initializer.
4479 (ada_language::parser): New member function, implementation from
4480 parse.
4481 * c-lang.c (c_language_data): Delete la_parser initializer.
4482 (cplus_language_data): Likewise.
4483 (asm_language_data): Likewise.
4484 (minimal_language_data): Likewise.
4485 * d-lang.c (d_language_data): Likewise.
4486 (d_language::parser): New member function.
4487 * f-lang.c (f_language_data): Delete la_parser initializer.
4488 (f_language::parser): New member function.
4489 * go-lang.c (go_language_data): Delete la_parser initializer.
4490 (go_language::parser): New member function.
4491 * language.c (unk_lang_parser): Delete.
4492 (language_defn::parser): Define new member function.
4493 (unknown_language_data): Delete la_parser initializer.
4494 (unknown_language::parser): New member function.
4495 (auto_language_data): Delete la_parser initializer.
4496 (auto_language::parser): New member function.
4497 * language.h (language_data): Delete la_parser field.
4498 (language_defn::parser): Declare new member function.
4499 * m2-lang.c (m2_language_data): Delete la_parser initializer.
4500 (m2_language::parser): New member function.
4501 * objc-lang.c (objc_language_data): Delete la_parser initializer.
4502 * opencl-lang.c (opencl_language_data): Likewise.
4503 * p-lang.c (pascal_language_data): Likewise.
4504 (pascal_language::parser): New member function.
4505 * parse.c (parse_exp_in_context): Update call to parser.
4506 * rust-lang.c (rust_language_data): Delete la_parser initializer.
4507 (rust_language::parser): New member function.
4508
37825800
AB
45092020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4510
4511 * top.c (print_gdb_configuration): Print --with-python-libdir
4512 configuration value.
4513
5b860c93
PW
45142020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4515
4516 * NEWS: Mention change to the alias command.
4517
cf00cd6f
PW
45182020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4519
4520 * cli/cli-cmds.c (lookup_cmd_for_default_args)
4521 (alias_command_completer)
4522 (make_alias_options_def_group): New functions.
4523 (alias_opts, alias_option_defs): New struct and array.
4524 (alias_usage_error): Update usage.
4525 (alias_command): Handles optional DEFAULT-ARGS... arguments.
4526 Use option framework.
4527 (_initialize_cli_cmds): Update alias command help.
4528 Update aliases command help.
4529 (show_user):
4530 Add NULL for new default_args lookup_cmd argument.
4531 (valid_command_p): Rename to validate_aliased_command.
4532 Add NULL for new default_args lookup_cmd argument. Verify that the
4533 aliased_command has no default args.
4534 * cli/cli-decode.c (help_cmd): Show aliases definitions.
4535 (lookup_cmd_1, lookup_cmd): New argument default_args.
4536 (add_alias_cmd):
4537 Add NULL for new default_args lookup_cmd argument.
4538 (print_help_for_command): Show default args under the layout
4539 alias some_alias = some_aliased_cmd some_alias_default_arg.
4540 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
4541 xfree default_args in destructor.
4542 * cli/cli-script.c (process_next_line, do_define_command):
4543 Add NULL for new default_args lookup_cmd argument.
4544 * command.h: Declare new default_args argument in lookup_cmd
4545 and lookup_cmd_1.
4546 * completer.c (complete_line_internal_1):
4547 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4548 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
4549 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
4550 Likewise.
4551 * infcmd.c (_initialize_infcmd): Likewise.
4552 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
4553 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
4554 * python/py-param.c (add_setshow_generic): Likewise.
4555 * remote.c (_initialize_remote): Likewise.
4556 * top.c (execute_command): Prepend default_args if command has some.
4557 (set_verbose):
4558 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4559 * tracepoint.c (validate_actionline, encode_actions_1):
4560 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4561
bd920864
TBA
45622020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4563
4564 * jit.c (jit_read_descriptor): Use bool as the return type.
4565 (jit_breakpoint_re_set_internal): Use bool as the return type.
4566 Invert the return value logic; return true if the jit breakpoint
4567 has been successfully initialized.
4568 (jit_inferior_init): Update the call to
4569 jit_breakpoint_re_set_internal.
4570
f8098322
PA
45712020-06-22 Pedro Alves <palves@redhat.com>
4572
4573 PR gdb/25939
4574 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
4575 Use the current inferior instead. Don't return
4576 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
4577 wait again.
4578 * sol-thread.c (sol_thread_target::wait): Don't reference
4579 inferior_ptid.
4580 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
4581 (sol_update_thread_list_callback): Use the current inferior's pid
4582 instead of inferior_ptid.
4583
196535a6
RO
45842020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4585
4586 * procfs.c: Cleanup many comments.
4587
4588 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
4589 (AFTER_WATCHFLAG): Replace by value.
4590
4591 (MAIN_PROC_NAME_FORMAT): Inline ...
4592 (create_procinfo): ... here.
4593
4594 (procfs_debug_inferior): Remove SYS_exec handling.
4595 (syscall_is_exec): Likewise.
4596 (procfs_set_exec_trap): Likewise.
4597
4598 (syscall_is_lwp_exit): Inline in callers.
4599 (syscall_is_exit): Likewise.
4600 (syscall_is_exec): Likewise.
4601 (syscall_is_lwp_create): Likewise.
4602
4603 (invalidate_cache): Remove #if 0 code.
4604
4605 (make_signal_thread_runnable): Remove.
4606 (procfs_target::resume): Remove #if 0 code.
4607
cf6f3e86
RO
46082020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4609
4610 PR gdb/25939
4611 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
4612 call ...
4613 (procfs_target::create_inferior): ... here.
4614
48e9cc84
PW
46152020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4616
4617 * exec.c (validate_exec_file): Ensure the build-id is up to
4618 date by calling reopen_exec_file (that checks file timestamp
4619 to decide to re-read the file).
4620
3922b302
PA
46212020-06-18 Pedro Alves <palves@redhat.com>
4622
4623 PR gdb/25412
4624 * gdbthread.h (delete_thread, delete_thread_silent)
4625 (find_thread_ptid): Update comments.
4626 * thread.c (current_thread_): New global.
4627 (is_current_thread): Move higher, and reimplement.
4628 (inferior_thread): Reimplement.
4629 (set_thread_exited): Use bool. Add assertions.
4630 (add_thread_silent): Simplify thread-reuse handling by always
4631 calling delete_thread.
4632 (delete_thread): Remove intro comment.
4633 (find_thread_ptid): Skip exited threads.
4634 (switch_to_thread_no_regs): Write to current_thread_.
4635 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
4636 INFERIOR_PTID. Clear current_thread_.
4637
6dbdab44
PA
46382020-06-18 Pedro Alves <palves@redhat.com>
4639
4640 * aix-thread.c (pd_update): Use switch_to_thread.
4641
2da4b788
PA
46422020-06-18 Pedro Alves <palves@redhat.com>
4643
4644 * ravenscar-thread.c (ravenscar_thread_target): Update.
4645 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
4646 (ravenscar_thread_target::add_active_thread): ... this. Don't
4647 set m_base_ptid here. Update to avoid referencing inferior_ptid.
4648 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
4649
50838d1b
PA
46502020-06-18 Pedro Alves <palves@redhat.com>
4651
4652 * nat/windows-nat.c (current_windows_thread): Remove.
4653 * nat/windows-nat.h (current_windows_thread): Remove.
4654 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
4655 Adjust.
4656 (display_selectors): Adjust to fetch the current
4657 windows_thread_info based on inferior_ptid.
4658 (fake_create_process): No longer write to current_windows_thread.
4659 (windows_nat_target::get_windows_debug_event):
4660 Don't set inferior_ptid or current_windows_thread.
4661 (windows_nat_target::wait): Adjust to not rely on
4662 current_windows_thread.
4663 (do_initial_windows_stuff): Now a method of windows_nat_target.
4664 Switch to the last_ptid thread.
4665 (windows_nat_target::attach): Adjust.
4666 (windows_nat_target::detach): Use switch_to_no_thread instead of
4667 writing to inferior_ptid directly.
4668 (windows_nat_target::create_inferior): Adjust.
4669
31ce04e9
PA
46702020-06-18 Pedro Alves <palves@redhat.com>
4671
4672 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
4673
1ee1a363
PA
46742020-06-18 Pedro Alves <palves@redhat.com>
4675
4676 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
4677 after creating it, instead of writing to inferior_ptid. Don't
4678 write to inferior_ptid.
4679
6d350754
PA
46802020-06-18 Pedro Alves <palves@redhat.com>
4681
4682 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
4683
5d971d48
PA
46842020-06-18 Pedro Alves <palves@redhat.com>
4685
4686 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
4687 it, instead of writing to inferior_ptid.
4688
86e57d1b
PA
46892020-06-18 Pedro Alves <palves@redhat.com>
4690
4691 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
4692 to inferior_ptid.
4693
f2e1c129
PA
46942020-06-18 Pedro Alves <palves@redhat.com>
4695
4696 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
4697 instead of writing to inferior_ptid directly.
4698
60db1b85
PA
46992020-06-18 Pedro Alves <palves@redhat.com>
4700
4701 * corelow.c (core_target::close): Use switch_to_no_thread instead
4702 of writing to inferior_ptid directly.
4703 (add_to_thread_list, core_target_open): Use switch_to_thread
4704 instead of writing to inferior_ptid directly.
4705
fe7d6a8d
PA
47062020-06-18 Pedro Alves <palves@redhat.com>
4707
4708 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
4709 inferior_ptid.
4710 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
4711 inferior_ptid.
4712 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
4713 inferior_ptid directly.
4714 (darwin_nat_target::init_thread_list): Switch to thread, instead
4715 of writing to inferior_ptid.
4716 (darwin_nat_target::attach): Don't write to inferior_ptid.
4717 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
4718
975f8708
PA
47192020-06-18 Pedro Alves <palves@redhat.com>
4720
4721 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
4722 thread.
4723 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
4724 Instead use switch_to_thread.
4725 (gnu_nat_target::detach): Use switch_to_no_thread
4726 instead of writing to inferior_ptid directly. Used passed-in
4727 inferior instead of looking up the inferior by pid.
4728
1a204730
PA
47292020-06-18 Pedro Alves <palves@redhat.com>
4730
4731 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
4732 inferior_ptid.
4733
ebe84f23
PA
47342020-06-18 Pedro Alves <palves@redhat.com>
4735
4736 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
4737 inferior_ptid.
4738 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
4739 thread.
4740 (nto_procfs_target::detach): Avoid referencing
4741 inferior_ptid. Use switch_to_no_thread instead of writing to
4742 inferior_ptid directly.
4743 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
4744 instead of writing to inferior_ptid directly.
4745 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
4746 to thread.
4747
191f02e5
PA
47482020-06-18 Pedro Alves <palves@redhat.com>
4749
4750 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
4751 after creating it, instead of writing to inferior_ptid.
4752 (gdbsim_target_open): Use switch_to_no_thread instead of writing
4753 to inferior_ptid directly.
4754 (gdbsim_target::wait): Don't write to inferior_ptid.
4755
0ac55310
PA
47562020-06-18 Pedro Alves <palves@redhat.com>
4757
4758 * remote.c (remote_target::remote_notice_new_inferior): Use
4759 switch_to_thread instead of writing to inferior_ptid directly.
4760 (remote_target::add_current_inferior_and_thread): Use
4761 switch_to_no_thread instead of writing to inferior_ptid directly.
4762 (extended_remote_target::attach): Use switch_to_inferior_no_thread
4763 and switch_to_thread instead of using set_current_inferior or
4764 writing to inferior_ptid directly.
4765
5233f39b
PA
47662020-06-18 Pedro Alves <palves@redhat.com>
4767
4768 * tracectf.c (ctf_target_open): Switch to added thread instead of
4769 writing to inferior_ptid directly.
4770 (ctf_target::close): Use switch_to_no_thread instead of writing to
4771 inferior_ptid directly.
4772
087e161b
PA
47732020-06-18 Pedro Alves <palves@redhat.com>
4774
4775 * tracefile-tfile.c (tfile_target_open): Don't write to
4776 inferior_ptid directly, instead switch to added thread.
4777 (tfile_target::close): Use switch_to_no_thread instead of writing
4778 to inferior_ptid directly.
4779
7fb43e53
PA
47802020-06-18 Pedro Alves <palves@redhat.com>
4781
4782 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
4783 (procfs_target::detach): Use switch_to_no_thread
4784 instead of writing to inferior_ptid directly.
4785 (do_attach): Change return type to void. Switch to the added
4786 thread.
4787 (procfs_target::create_inferior): Switch to the added thread.
4788 (procfs_do_thread_registers): Don't write to inferior_ptid.
4789
18493a00
PA
47902020-06-18 Pedro Alves <palves@redhat.com>
4791
4792 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
4793 of writing to inferior_ptid.
4794 (scoped_restore_exited_inferior): Delete.
4795 (handle_vfork_child_exec_or_exit): Simplify using
4796 scoped_restore_current_pspace_and_thread. Use switch_to_thread
4797 instead of writing to inferior_ptid.
4798 (THREAD_STOPPED_BY): Delete.
4799 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
4800 (thread_stopped_by_hw_breakpoint): Delete.
4801 (save_waitstatus): Use
4802 scoped_restore_current_thread+switch_to_thread, and call
4803 target_stopped_by_watchpoint instead of
4804 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
4805 instead of thread_stopped_by_sw_breakpoint, and
4806 target_stopped_by_hw_breakpoint instead of
4807 thread_stopped_by_hw_breakpoint.
4808 (handle_inferior_event)
4809 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
4810 inferior_ptid directly, nor
4811 set_current_inferior/set_current_program_space. Use
4812 switch_to_thread / switch_to_inferior_no_thread instead.
4813
a0776b13
PA
48142020-06-18 Pedro Alves <palves@redhat.com>
4815
4816 * target.c (generic_mourn_inferior): Use switch_to_no_thread
4817 instead of writing to inferior_ptid.
4818
6155c136
PA
48192020-06-18 Pedro Alves <palves@redhat.com>
4820
4821 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
4822 added thread.
4823 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
4824 to the added thread.
4825 (inf_ptrace_target::detach_success): Use switch_to_no_thread
4826 instead of writing to inferior_ptid.
4827
c5316fc6
PA
48282020-06-18 Pedro Alves <palves@redhat.com>
4829
4830 * gdbarch-selftests.c: Include "progspace-and-thread.h".
4831 (register_to_value_test): Mock a program_space too. Heap-allocate
4832 the address space. Don't write to inferior_ptid. Use
4833 switch_to_thread instead.
4834
8df01799
PA
48352020-06-18 Pedro Alves <palves@redhat.com>
4836
4837 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
4838 Delete.
4839 (find_signalled_thread()): New, factored out from
4840 linux_make_corefile_notes and adjusted to handle exited threads.
4841 (linux_make_corefile_notes): Adjust to use the new
4842 find_signalled_thread.
4843
41792d68
PA
48442020-06-18 Pedro Alves <palves@redhat.com>
4845
4846 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
4847 of saving/restoring inferior_ptid.
4848
612f258a
TT
48492020-06-17 Tom Tromey <tom@tromey.com>
4850
4851 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
4852 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
4853 declare.
4854 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
4855
efb763a5
SM
48562020-06-15 Simon Marchi <simon.marchi@efficios.com>
4857
4858 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
4859 of partial symtabs.
4860
2951f6c0
SM
48612020-06-17 Simon Marchi <simon.marchi@efficios.com>
4862
4863 * regformats/reg-arm.dat: Remove.
4864 * regformats/reg-bfin.dat: Remove.
4865 * regformats/reg-cris.dat: Remove.
4866 * regformats/reg-crisv32.dat: Remove.
4867 * regformats/reg-m32r.dat: Remove.
4868 * regformats/reg-tilegx.dat: Remove.
4869 * regformats/reg-tilegx32.dat: Remove.
4870
7d458ea5
SM
48712020-06-17 Simon Marchi <simon.marchi@efficios.com>
4872
4873 * features/Makefile (WHICH): Remove arm files.
4874 * regformats/arm/arm-with-iwmmxt.dat: Remove.
4875 * regformats/arm/arm-with-neon.dat: Remove.
4876 * regformats/arm/arm-with-vfpv2.dat: Remove.
4877 * regformats/arm/arm-with-vfpv3.dat: Remove.
4878
3af96c0d
SM
48792020-06-17 Simon Marchi <simon.marchi@efficios.com>
4880
4881 * features/Makefile (XMLTOC): Remove rx.xml.
4882
b25e22fd
PA
48832020-06-17 Pedro Alves <palves@redhat.com>
4884
4885 * gdbthread.h (thread_control_state) <trap_expected> Update
4886 comments.
4887
a78a19b1
AB
48882020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4889
4890 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
4891 ada_language::lookup_symbol_nonlocal.
4892 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
4893 (ada_language::lookup_symbol_nonlocal): New member function,
4894 implementation from ada_lookup_symbol_nonlocal.
4895 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
4896 initializer.
4897 (cplus_language_data): Delete la_lookup_symbol_nonlocal
4898 initializer.
4899 (cplus_language::lookup_symbol_nonlocal): New member function.
4900 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
4901 (minimal_language_data) Likewise.
4902 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
4903 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
4904 initializer.
4905 (d_language::lookup_symbol_nonlocal): New member function.
4906 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
4907 initializer.
4908 (f_language::lookup_symbol_nonlocal): New member function.
4909 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
4910 initializer.
4911 * language.c (unknown_language_data): Likewise.
4912 (auto_language_data): Likewise.
4913 * language.h (language_data): Delete la_lookup_symbol_nonlocal
4914 field.
4915 (language_defn::lookup_symbol_nonlocal): New member function.
4916 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
4917 initializer.
4918 * objc-lang.c (objc_language_data): Likewise.
4919 * opencl-lang.c (opencl_language_data): Likewise.
4920 * p-lang.c (pascal_language_data): Likewise.
4921 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
4922 rust_language::lookup_symbol_nonlocal.
4923 (rust_language_data): Delete la_lookup_symbol_nonlocal
4924 initializer.
4925 (rust_language::lookup_symbol_nonlocal): New member function,
4926 implementation from rust_lookup_symbol_nonlocal.
4927 * symtab.c (lookup_symbol_aux): Update call to
4928 lookup_symbol_nonlocal.
4929 (basic_lookup_symbol_nonlocal): Rename to...
4930 (language_defn::lookup_symbol_nonlocal): ...this, and update
4931 header comment. Remove language_defn parameter, and replace with
4932 uses of `this'.
4933 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
4934
ebe2334e
AB
49352020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4936
4937 * ada-lang.c (ada_language_data): Delete la_value_print_inner
4938 initializer.
4939 (ada_language::value_print_inner): New member function.
4940 * c-lang.c (c_language_data): Delete la_value_print_inner
4941 initializer.
4942 (cplus_language_data): Likewise.
4943 (asm_language_data): Likewise.
4944 (minimal_language_data): Likewise.
4945 * d-lang.c (d_language_data): Likewise.
4946 (d_language::value_print_inner): New member function.
4947 * f-lang.c (f_language_data): Delete la_value_print_inner
4948 initializer.
4949 (f_language::value_print_inner): New member function.
4950 * f-lang.h (f_value_print_innner): Rename to...
4951 (f_value_print_inner): ...this (note spelling of 'inner').
4952 * f-valprint.c (f_value_print_innner): Rename to...
4953 (f_value_print_inner): ...this (note spelling of 'inner').
4954 * go-lang.c (go_language_data): Delete la_value_print_inner
4955 initializer.
4956 (go_language::value_print_inner): New member function.
4957 * language.c (language_defn::value_print_inner): Define new member
4958 function.
4959 (unk_lang_value_print_inner): Delete.
4960 (unknown_language_data): Delete la_value_print_inner initializer.
4961 (unknown_language::value_print_inner): New member function.
4962 (auto_language_data): Delete la_value_print_inner initializer.
4963 (auto_language::value_print_inner): New member function.
4964 * language.h (language_data): Delete la_value_print_inner field.
4965 (language_defn::value_print_inner): Delcare new member function.
4966 * m2-lang.c (m2_language_data): Delete la_value_print_inner
4967 initializer.
4968 (m2_language::value_print_inner): New member function.
4969 * objc-lang.c (objc_language_data): Delete la_value_print_inner
4970 initializer.
4971 * opencl-lang.c (opencl_language_data): Likewise.
4972 * p-lang.c (pascal_language_data): Likewise.
4973 (pascal_language::value_print_inner): New member function.
4974 * rust-lang.c (rust_language_data): Delete la_value_print_inner
4975 initializer.
4976 (rust_language::value_print_inner): New member function.
4977 * valprint.c (do_val_print): Update call to value_print_inner.
4978
a1d1fa3e
AB
49792020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4980
4981 * ada-lang.c (ada_language_data): Delete la_value_print
4982 initializer.
4983 (ada_language::value_print): New member function.
4984 * c-lang.c (c_language_data): Delete la_value_print initializer.
4985 (cplus_language_data): Likewise.
4986 (asm_language_data): Likewise.
4987 (minimal_language_data): Likewise.
4988 * d-lang.c (d_language_data): Likewise.
4989 * f-lang.c (f_language_data): Likewise.
4990 * go-lang.c (go_language_data): Likewise.
4991 * language.c (unk_lang_value_print): Delete.
4992 (language_defn::value_print): Define new member function.
4993 (unknown_language_data): Delete la_value_print initializer.
4994 (unknown_language::value_print): New member function.
4995 (auto_language_data): Delete la_value_print initializer.
4996 (auto_language::value_print): New member function.
4997 * language.h (language_data): Delete la_value_print field.
4998 (language_defn::value_print): Declare new member function.
4999 (LA_VALUE_PRINT): Update call to value_print.
5000 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
5001 * objc-lang.c (objc_language_data): Likewise.
5002 * opencl-lang.c (opencl_language_data): Likewise.
5003 * p-lang.c (pascal_language_data): Likewise.
5004 (pascal_language::value_print): New member function.
5005 * rust-lang.c (rust_language_data): Delete la_value_print
5006 initializer.
5007
f16a9f57
AB
50082020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5009
5010 * ada-lang.c (ada_watch_location_expression): Rename to
5011 ada_language::watch_location_expression.
5012 (ada_language_data): Delete la_watch_location_expression
5013 initializer.
5014 (ada_language::watch_location_expression): New member function,
5015 implementation from ada_watch_location_expression.
5016 * breakpoint.c (watch_command_1): Update call to
5017 watch_location_expression.
5018 * c-lang.c (c_watch_location_expression): Rename to
5019 language_defn::watch_location_expression.
5020 (c_language_data): Delete la_watch_location_expression
5021 initializer.
5022 (cplus_language_data): Likewise.
5023 (asm_language_data): Likewise.
5024 (minimal_language_data): Likewise.
5025 * c-lang.h (c_watch_location_expression): Delete declaration.
5026 * d-lang.c (d_language_data): Delete la_watch_location_expression
5027 initializer.
5028 * f-lang.c (f_language_data): Likewise.
5029 * go-lang.c (go_language_data): Likewise.
5030 * language.c (language_defn::watch_location_expression): Member
5031 function implementation from c_watch_location_expression.
5032 (unknown_language_data): Delete la_watch_location_expression
5033 initializer.
5034 (auto_language_data): Likewise.
5035 * language.h (language_data): Delete la_watch_location_expression
5036 field.
5037 (language_defn::watch_location_expression): Declare new member
5038 function.
5039 * m2-lang.c (m2_language_data): Delete
5040 la_watch_location_expression initializer.
5041 * objc-lang.c (objc_language_data): Likewise.
5042 * opencl-lang.c (opencl_language_data): Likewise.
5043 * p-lang.c (pascal_language_data): Likewise.
5044 * rust-lang.c (rust_watch_location_expression): Rename to
5045 rust_language::watch_location_expression.
5046 (rust_language_data): Delete la_watch_location_expression
5047 initializer.
5048 (rust_language::watch_location_expression): New member function,
5049 implementation from rust_watch_location_expression.
5050
7e56227d
AB
50512020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5052
5053 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
5054 ada_language::collect_symbol_completion_matches.
5055 (ada_language_data): Delete la_collect_symbol_completion_matches
5056 initializer.
5057 (ada_language::collect_symbol_completion_matches): New member
5058 function, implementation from
5059 ada_collect_symbol_completion_matches.
5060 * c-lang.c (c_language_data): Delete
5061 la_collect_symbol_completion_matches initializer.
5062 (cplus_language_data): Likewise.
5063 (asm_language_data): Likewise.
5064 (minimal_language_data): Likewise.
5065 * d-lang.c (d_language_data): Likewise.
5066 * f-lang.c (f_collect_symbol_completion_matches): Rename to
5067 f_language::collect_symbol_completion_matches.
5068 (f_language_data): Delete la_collect_symbol_completion_matches
5069 initializer.
5070 (f_language::collect_symbol_completion_matches) New member
5071 function, implementation from f_collect_symbol_completion_matches.
5072 * go-lang.c (go_language_data): Delete
5073 la_collect_symbol_completion_matches initializer.
5074 * language.c (unknown_language_data): Likewise.
5075 (auto_language_data): Likewise.
5076 * language.h (language_data): Delete
5077 la_collect_symbol_completion_matches field.
5078 (language_defn::collect_symbol_completion_matches): New member
5079 function.
5080 * m2-lang.c (m2_language_data): Delete
5081 la_collect_symbol_completion_matches initializer.
5082 * objc-lang.c (objc_language_data): Likewise.
5083 * opencl-lang.c (opencl_language_data): Likewise.
5084 * p-lang.c (pascal_language_data): Likewise.
5085 * rust-lang.c (rust_language_data): Likewise.
5086 * symtab.c (default_collect_symbol_completion_matches): Delete.
5087 (collect_symbol_completion_matches): Update call to
5088 collect_symbol_completion_matches.
5089 (collect_symbol_completion_matches_type): Likewise.
5090 * symtab.h (default_collect_symbol_completion_matches): Delete
5091 declaration.
5092
53fc67f8
AB
50932020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5094
5095 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
5096 (ada_language_data): Delete la_word_break_characters initializer.
5097 (ada_language::word_break_characters): New member function.
5098 * c-lang.c (c_language_data): Delete la_word_break_characters
5099 initializer.
5100 (cplus_language_data): Likewise.
5101 (asm_language_data): Likewise.
5102 (minimal_language_data): Likewise.
5103 * completer.c: Update global comment.
5104 (advance_to_expression_complete_word_point): Update call to
5105 word_break_characters.
5106 (complete_files_symbols): Likewise.
5107 (complete_line_internal_1): Likewise.
5108 (default_completer_handle_brkchars): Likewise.
5109 (skip_quoted_chars): Likewise.
5110 * d-lang.c (d_language_data): Delete la_word_break_characters
5111 initializer.
5112 * f-lang.c (f_word_break_characters): Delete.
5113 (f_language_data): Delete la_word_break_characters initializer.
5114 (f_language::word_break_characters): New member function.
5115 * go-lang.c (go_language_data): Delete la_word_break_characters
5116 initializer.
5117 * language.c (unknown_language_data): Likewise.
5118 (auto_language_data): Likewise.
5119 * language.h (default_word_break_characters): Move declaration to
5120 earlier in the file.
5121 (language_data): Delete la_word_break_characters field.
5122 (language_defn::word_break_characters): New member function.
5123 * m2-lang.c (m2_language_data): Delete la_word_break_characters
5124 initializer.
5125 * objc-lang.c (objc_language_data): Likewise.
5126 * opencl-lang.c (opencl_language_data): Likewise.
5127 * p-lang.c (pascal_language_data): Likewise.
5128 * rust-lang.c (rust_language_data): Likewise.
5129
c9debfb9
AB
51302020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5131
5132 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
5133 (ada_language_data): Delete la_get_symbol_name_matcher
5134 initializer.
5135 (language_defn::get_symbol_name_matcher_inner): New member
5136 function.
5137 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
5138 initializer.
5139 (cplus_language_data): Likewise.
5140 (cplus_language::get_symbol_name_matcher_inner): New member
5141 function.
5142 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
5143 (minimal_language_data): Likewise.
5144 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
5145 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
5146 initializer.
5147 * dictionary.c (iter_match_first_hashed): Update call to
5148 get_symbol_name_matcher.
5149 (iter_match_next_hashed): Likewise.
5150 (iter_match_next_linear): Likewise.
5151 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
5152 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
5153 initializer.
5154 (f_language::get_symbol_name_matcher_inner): New member function.
5155 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
5156 initializer.
5157 * language.c (default_symbol_name_matcher): Update header comment,
5158 make static.
5159 (language_defn::get_symbol_name_matcher): New definition.
5160 (language_defn::get_symbol_name_matcher_inner): Likewise.
5161 (get_symbol_name_matcher): Delete.
5162 (unknown_language_data): Delete la_get_symbol_name_matcher
5163 initializer.
5164 (auto_language_data): Likewise.
5165 * language.h (language_data): Delete la_get_symbol_name_matcher
5166 field.
5167 (language_defn::get_symbol_name_matcher): New member function.
5168 (language_defn::get_symbol_name_matcher_inner): Likewise.
5169 (default_symbol_name_matcher): Delete declaration.
5170 * linespec.c (find_methods): Update call to
5171 get_symbol_name_matcher.
5172 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
5173 initializer.
5174 * minsyms.c (lookup_minimal_symbol): Update call to
5175 get_symbol_name_matcher.
5176 (iterate_over_minimal_symbols): Likewise.
5177 * objc-lang.c (objc_language_data): Delete
5178 la_get_symbol_name_matcher initializer.
5179 * opencl-lang.c (opencl_language_data): Likewise.
5180 * p-lang.c (pascal_language_data): Likewise.
5181 * psymtab.c (psymbol_name_matches): Update call to
5182 get_symbol_name_matcher.
5183 * rust-lang.c (rust_language_data): Delete
5184 la_get_symbol_name_matcher initializer.
5185 * symtab.c (symbol_matches_search_name): Update call to
5186 get_symbol_name_matcher.
5187 (compare_symbol_name): Likewise.
5188
9a49ad8c
AB
51892020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5190
5191 * ada-lang.c (ada_language_data): Delete la_compute_program
5192 initializer.
5193 * c-lang.c (c_language_data): Likewise.
5194 (c_language::compute_program): New member function.
5195 (cplus_language_data): Delete la_compute_program initializer.
5196 (cplus_language::compute_program): New member function.
5197 (asm_language_data): Delete la_compute_program initializer.
5198 (minimal_language_data): Likewise.
5199 * c-lang.h (c_compute_program): Update comment.
5200 (cplus_compute_program): Likewise.
5201 * compile/compile-c-support.c (c_compute_program): Likewise.
5202 (cplus_compute_program): Likewise.
5203 * compile/compile.c (compile_to_object): Update call to
5204 la_compute_program.
5205 * d-lang.c (d_language_data): Delete la_compute_program
5206 initializer.
5207 * f-lang.c (f_language_data): Likewise.
5208 * go-lang.c (go_language_data): Likewise.
5209 * language.c (unknown_language_data): Likewise.
5210 (auto_language_data): Likewise.
5211 * language.h (language_data): Delete la_compute_program field.
5212 (language_defn::compute_program): New member function.
5213 * m2-lang.c (m2_language_data): Delete la_compute_program
5214 initializer.
5215 * objc-lang.c (objc_language_data): Likewise.
5216 * opencl-lang.c (opencl_language_data): Likewise.
5217 * p-lang.c (pascal_language_data): Likewise.
5218 * rust-lang.c (rust_language_data): Likewise.
5219
eff93b4d
AB
52202020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5221
5222 * ada-lang.c (ada_language_data) Delete
5223 la_class_name_from_physname initializer.
5224 * c-lang.c (c_language_data): Likewise.
5225 (cplus_language_data): Likewise.
5226 (cplus_language::class_name_from_physname): New member function.
5227 (asm_language_data): Delete la_class_name_from_physname
5228 initializer.
5229 (minimal_language_data): Likewise.
5230 * d-lang.c (d_language_data): Likewise.
5231 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
5232 method on language_defn class.
5233 (guess_full_die_structure_name): Likewise.
5234 * f-lang.c (f_language_data): Delete la_class_name_from_physname
5235 initializer.
5236 * go-lang.c (go_language_data): Likewise.
5237 * language.c (language_class_name_from_physname): Delete.
5238 (unk_lang_class_name): Delete.
5239 (unknown_language_data): Delete la_class_name_from_physname
5240 initializer.
5241 (auto_language_data): Likewise.
5242 * language.h (language_data): Delete la_class_name_from_physname
5243 field.
5244 (language_defn::class_name_from_physname): New function.
5245 (language_class_name_from_physname): Delete declaration.
5246 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
5247 initializer.
5248 * objc-lang.c (objc_language_data): Likewise.
5249 * opencl-lang.c (opencl_language_data): Likewise.
5250 * p-lang.c (pascal_language_data): Likewise.
5251 * rust-lang.c (rust_language_data): Likewise.
5252
de543742
TT
52532020-06-16 Tom Tromey <tom@tromey.com>
5254
5255 * tui/tui-data.h (STATUS_NAME): New macro.
5256 * tui/tui-layout.c (tui_remove_some_windows)
5257 (initialize_known_windows, tui_register_window)
5258 (tui_layout_split::remove_windows, initialize_layouts)
5259 (tui_new_layout_command): Don't use hard-coded window names.
5260
a350efd4
TT
52612020-06-16 Tom Tromey <tom@tromey.com>
5262
5263 PR tui/25348:
5264 * tui/tui.c (tui_ensure_readline_initialized): Rename from
5265 tui_initialize_readline. Only run once. Call rl_initialize.
5266 * tui/tui.h (tui_ensure_readline_initialized): Rename from
5267 tui_initialize_readline.
5268 * tui/tui-io.c (tui_setup_io): Call
5269 tui_ensure_readline_initialized.
5270 * tui/tui-interp.c (tui_interp::init): Update.
5271
39ec0490
TT
52722020-06-16 Tom Tromey <tom@tromey.com>
5273
5274 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
5275 Also preserve the status window.
5276
d2d1ea20
TT
52772020-06-16 Tom Tromey <tom@tromey.com>
5278
5279 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
5280 where m_window==nullptr.
5281
66920317
TT
52822020-06-15 Tom Tromey <tromey@adacore.com>
5283
5284 * windows-nat.c (windows_nat::handle_output_debug_string):
5285 Update.
5286 (windows_nat::handle_ms_vc_exception): Update.
5287 * target.h (target_read_string): Change API.
5288 * target.c (target_read_string): Change API.
5289 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
5290 Update.
5291 * solib-frv.c (frv_current_sos): Update.
5292 * solib-dsbt.c (dsbt_current_sos): Update.
5293 * solib-darwin.c (darwin_current_sos): Update.
5294 * linux-thread-db.c (inferior_has_bug): Update.
5295 * expprint.c (print_subexp_standard): Update.
5296 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
5297 (ada_exception_message_1): Update.
5298
a5d871dd
TT
52992020-06-15 Tom Tromey <tromey@adacore.com>
5300
5301 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
5302
670e35fa
TT
53032020-06-15 Tom Tromey <tromey@adacore.com>
5304
5305 * valprint.c (read_string): Update comment.
5306 * target.c (MIN): Remove.
5307 (target_read_string): Rewrite.
5308
f5272a3b
TT
53092020-06-15 Tom Tromey <tromey@adacore.com>
5310
5311 * corefile.c (read_memory_string): Remove.
5312 * ada-valprint.c (ada_value_print_ptr): Update.
5313 * ada-lang.h (ada_tag_name): Change return type.
5314 * ada-lang.c (type_from_tag): Update.
5315 (ada_tag_name_from_tsd): Change return type. Use
5316 target_read_string.
5317 (ada_tag_name): Likewise.
5318 * gdbcore.h (read_memory_string): Don't declare.
5319
2c074f49
HD
53202020-06-14 Hannes Domani <ssbssa@yahoo.de>
5321
5322 * symtab.c (rbreak_command): Ignore Windows drive colon.
5323
6a17d503
SM
53242020-06-12 Simon Marchi <simon.marchi@efficios.com>
5325
5326 * NEWS: Mention removed GDBserver host support.
5327
453c733f
NC
53282020-06-12 Nelson Chu <nelson.chu@sifive.com>
5329
5330 * features/riscv/rebuild-csr-xml.sh: Updated.
5331
2b4e6a3f
TT
53322020-06-11 Tom Tromey <tom@tromey.com>
5333
5334 PR gdb/18318:
5335 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
5336
4412332f
JG
53372020-06-09 Jonny Grant <jg@jguk.org>
53382020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
5339
5340 * main.c (captured_main_1): Don't print new line after help.
5341 (print_gdb_help): add mailing list and IRC channel information
5342 to --help. Add new lines between items in the footer. Remove
5343 quotes around bug url.
5344
2f33032a
KS
53452020-06-11 Keith Seitz <keiths@redhat.com>
5346
5347 PR gdb/21356
5348 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
5349 Resolve typedefs for type length calculations.
5350
7ab96794
TV
53512020-06-10 Tom de Vries <tdevries@suse.de>
5352
5353 PR ada/24713
5354 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
5355 (write_psymbols): Enable .gdb_index for ada.
5356 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
5357 ada.
5358
e5f3ece2
TV
53592020-06-10 Tom de Vries <tdevries@suse.de>
5360
5361 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
5362 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
5363 namei" instead of "const char *name" argument.
5364 (dw2_map_matching_symbols): Use "offset_type namei" variant of
5365 dw2_symtab_iter_init.
5366
940da03e
SM
53672020-06-08 Simon Marchi <simon.marchi@efficios.com>
5368
5369 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
5370 to use type::field and field::type instead.
5371
b6cdac4b
SM
53722020-06-08 Simon Marchi <simon.marchi@efficios.com>
5373
5374 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
5375 to use field::type instead.
5376
5d14b6e5
SM
53772020-06-08 Simon Marchi <simon.marchi@efficios.com>
5378
5379 * gdbtypes.h (struct field) <type, set_type>: New methods.
5380 Rename `type` field to...
5381 <m_type>: ... this. Change references throughout to use type or
5382 set_type methods.
5383 (FIELD_TYPE): Use field::type. Change call sites that modify
5384 the field's type to use field::set_type instead.
5385
3d967001
SM
53862020-06-08 Simon Marchi <simon.marchi@efficios.com>
5387
5388 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
5389 to use type::index_type instead.
5390
262abc0d
SM
53912020-06-08 Simon Marchi <simon.marchi@efficios.com>
5392
5393 * gdbtypes.h (struct type) <index_type, set_index_type>: New
5394 methods.
5395 (TYPE_INDEX_TYPE): Use type::index_type.
5396 * gdbtypes.c (create_array_type_with_stride): Likewise.
5397
82836c92
TT
53982020-06-07 Tom Tromey <tom@tromey.com>
5399
5400 * valprint.c (generic_val_print_float): Remove "embedded_offset"
5401 parameter.
5402 (generic_value_print): Update.
5403
940dace9
AB
54042020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
5405
5406 Revert commit 982a38f60b0.
5407 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
5408
982a38f6
AB
54092020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
5410
5411 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
5412 avoid use after free.
5413
82f06518
TV
54142020-06-05 Tom de Vries <tdevries@suse.de>
5415
5416 * NEWS: Fix typos.
5417
f8c41851
SM
54182020-06-04 Simon Marchi <simon.marchi@efficios.com>
5419
5420 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
5421 the per_bfd object.
5422 (dwarf2_read_debug_names): Likewise.
5423 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
5424 object when re-using a per_bfd object with an index.
5425
f9b5d5ea
TV
54262020-06-03 Tom de Vries <tdevries@suse.de>
5427
5428 PR symtab/26046
5429 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
5430 children for C++.
5431 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
5432 DW_TAG_subprogram.
5433
f6eee2d0
AB
54342020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5435
5436 * ada-lang.c (ada_language_data): Delete skip_trampoline
5437 initializer.
5438 * c-lang.c (c_language_data): Likewise.
5439 (cplus_language_data): Likewise.
5440 (cplus_language::skip_trampoline): New member function.
5441 (asm_language_data): Delete skip_trampoline initializer.
5442 (minimal_language_data): Likewise.
5443 * d-lang.c (d_language_data): Likewise.
5444 * f-lang.c (f_language_data): Likewise.
5445 * go-lang.c (go_language_data): Likewise.
5446 * language.c (unk_lang_trampoline): Delete function.
5447 (skip_language_trampoline): Update.
5448 (unknown_language_data): Delete skip_trampoline initializer.
5449 (auto_language_data): Likewise.
5450 * language.h (language_data): Delete skip_trampoline field.
5451 (language_defn::skip_trampoline): New function.
5452 * m2-lang.c (m2_language_data): Delete skip_trampoline
5453 initializer.
5454 * objc-lang.c (objc_skip_trampoline): Delete function, move
5455 implementation to objc_language::skip_trampoline.
5456 (objc_language_data): Delete skip_trampoline initializer.
5457 (objc_language::skip_trampoline): New member function with
5458 implementation from objc_skip_trampoline.
5459 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
5460 initializer.
5461 * p-lang.c (pascal_language_data): Likewise.
5462 * rust-lang.c (rust_language_data): Likewise.
5463
0a50df5d
AB
54642020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5465
5466 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
5467 (ada_language::demangle): New member function.
5468 * c-lang.c (c_language_data): Delete la_demangle initializer.
5469 (cplus_language_data): Delete la_demangle initializer.
5470 (cplus_language::demangle): New member function.
5471 (asm_language_data): Delete la_demangle initializer.
5472 (minimal_language_data): Delete la_demangle initializer.
5473 * d-lang.c (d_language_data): Delete la_demangle initializer.
5474 (d_language::demangle): New member function.
5475 * f-lang.c (f_language_data): Delete la_demangle initializer.
5476 (f_language::demangle): New member function.
5477 * go-lang.c (go_language_data): Delete la_demangle initializer.
5478 (go_language::demangle): New member function.
5479 * language.c (language_demangle): Update.
5480 (unk_lang_demangle): Delete.
5481 (unknown_language_data): Delete la_demangle initializer.
5482 (unknown_language::demangle): New member function.
5483 (auto_language_data): Delete la_demangle initializer.
5484 (auto_language::demangle): New member function.
5485 * language.h (language_data): Delete la_demangle field.
5486 (language_defn::demangle): New function.
5487 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
5488 * objc-lang.c (objc_language_data): Delete la_demangle
5489 initializer.
5490 (objc_language::demangle): New member function.
5491 * opencl-lang.c (opencl_language_data): Delete la_demangle
5492 initializer.
5493 * p-lang.c (pascal_language_data): Likewise.
5494 * rust-lang.c (rust_language_data): Likewise.
5495 (rust_language::demangle): New member function.
5496
fbfb0a46
AB
54972020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5498
5499 * ada-lang.c (ada_language_data): Delete la_print_type
5500 initializer.
5501 (ada_language::print_type): New member function.
5502 * c-lang.c (c_language_data): Delete la_print_type initializer.
5503 (c_language::print_type): New member function.
5504 (cplus_language_data): Delete la_print_type initializer.
5505 (cplus_language::print_type): New member function.
5506 (asm_language_data): Delete la_print_type initializer.
5507 (asm_language::print_type): New member function.
5508 (minimal_language_data): Delete la_print_type initializer.
5509 (minimal_language::print_type): New member function.
5510 * d-lang.c (d_language_data): Delete la_print_type initializer.
5511 (d_language::print_type): New member function.
5512 * f-lang.c (f_language_data): Delete la_print_type initializer.
5513 (f_language::print_type): New member function.
5514 * go-lang.c (go_language_data): Delete la_print_type initializer.
5515 (go_language::print_type): New member function.
5516 * language.c (unk_lang_print_type): Delete.
5517 (unknown_language_data): Delete la_print_type initializer.
5518 (unknown_language::print_type): New member function.
5519 (auto_language_data): Delete la_print_type initializer.
5520 (auto_language::print_type): New member function.
5521 * language.h (language_data): Delete la_print_type field.
5522 (language_defn::print_type): New function.
5523 (LA_PRINT_TYPE): Update.
5524 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
5525 (m2_language::print_type): New member function.
5526 * objc-lang.c (objc_language_data): Delete la_print_type
5527 initializer.
5528 (objc_language::print_type): New member function.
5529 * opencl-lang.c (opencl_print_type): Delete, implementation moved
5530 to opencl_language::print_type.
5531 (opencl_language_data): Delete la_print_type initializer.
5532 (opencl_language::print_type): New member function, implementation
5533 from opencl_print_type.
5534 * p-lang.c (pascal_language_data): Delete la_print_type
5535 initializer.
5536 (pascal_language::print_type): New member function.
5537 * rust-lang.c (rust_print_type): Delete, implementation moved to
5538 rust_language::print_type.
5539 (rust_language_data): Delete la_print_type initializer.
5540 (rust_language::print_type): New member function, implementation
5541 from rust_print_type.
5542
6f827019
AB
55432020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5544
5545 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
5546 implementation moves to...
5547 (ada_language::sniff_from_mangled_name): ...here. Update return
5548 type.
5549 (ada_language_data): Delete la_sniff_from_mangled_name
5550 initializer.
5551 * c-lang.c (c_language_data): Likewise.
5552 (cplus_language_data): Likewise.
5553 (cplus_language::sniff_from_mangled_name): New member function,
5554 implementation taken from gdb_sniff_from_mangled_name.
5555 (asm_language_data): Delete la_sniff_from_mangled_name
5556 initializer.
5557 (minimal_language_data): Likewise.
5558 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
5559 implementation moves to cplus_language::sniff_from_mangled_name.
5560 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
5561 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
5562 moves to...
5563 (d_language::sniff_from_mangled_name): ...here.
5564 (d_language_data): Delete la_sniff_from_mangled_name initializer.
5565 * f-lang.c (f_language_data): Likewise.
5566 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
5567 moves to...
5568 (go_language::sniff_from_mangled_name): ...here.
5569 (go_language_data): Delete la_sniff_from_mangled_name initializer.
5570 * language.c (language_sniff_from_mangled_name): Delete.
5571 (unknown_language_data): Delete la_sniff_from_mangled_name
5572 initializer.
5573 (auto_language_data): Likewise.
5574 * language.h (language_data): Delete la_sniff_from_mangled_name
5575 field.
5576 (language_defn::sniff_from_mangled_name): New function.
5577 (language_sniff_from_mangled_name): Delete declaration.
5578 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
5579 field.
5580 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
5581 implementation moves to...
5582 (objc_language::sniff_from_mangled_name): ...here.
5583 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
5584 * opencl-lang.c (opencl_language_data): Likewise.
5585 * p-lang.c (pascal_language_data): Likewise.
5586 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
5587 implementation moves to...
5588 (rust_language::sniff_from_mangled_name): ...here.
5589 (rust_language_data): Delete la_sniff_from_mangled_name
5590 initializer.
5591 * symtab.c (symbol_find_demangled_name): Call
5592 sniff_from_mangled_name member function.
5593
fb8006fd
AB
55942020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5595
5596 * ada-lang.c (ada_language_data): Delete la_search_name_hash
5597 initializer.
5598 * c-lang.c (c_language_data): Likewise.
5599 (cplus_language_data): Likewise.
5600 (cplus_language::search_name_hash): New member function.
5601 (asm_language_data): Delete la_search_name_hash initializer.
5602 (minimal_language_data): Likewise.
5603 * d-lang.c (d_language_data): Likewise.
5604 * dictionary.c (default_search_name_hash): Rename to...
5605 (language_defn::search_name_hash): ...this.
5606 * f-lang.c (f_language_data): Likewise.
5607 (f_language::search_name_hash): New member function.
5608 * go-lang.c (go_language_data): Delete la_search_name_hash
5609 initializer.
5610 * language.c (unknown_language_data): Likewise.
5611 (auto_language_data): Likewise.
5612 * language.h (struct language_data): Delete la_search_name_hash
5613 field.
5614 (language_defn::search_name_hash): Declare new member function.
5615 (default_search_name_hash): Delete declaration.
5616 * m2-lang.c (m2_language_data): Delete la_search_name_hash
5617 initializer.
5618 * objc-lang.c (objc_language_data): Likewise.
5619 * opencl-lang.c (opencl_language_data): Likewise.
5620 * p-lang.c (pascal_language_data): Likewise.
5621 * rust-lang.c (rust_language_data): Likewise.
5622 * symtab.c (search_name_hash): Update call.
5623
8e25bafe
AB
56242020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5625
5626 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
5627 initializer.
5628 * c-lang.c (class compile_instance): Declare.
5629 (c_language_data): Delete la_get_compile_instance initializer.
5630 (c_language::get_compile_instance): New member function.
5631 (cplus_language_data): Delete la_get_compile_instance initializer.
5632 (cplus_language::get_compile_instance): New member function.
5633 (asm_language_data): Delete la_get_compile_instance initializer.
5634 (minimal_language_data): Likewise.
5635 * c-lang.h (c_get_compile_context): Update comment.
5636 (cplus_get_compile_context): Update comment.
5637 * compile/compile.c (compile_to_object): Update calls, don't rely
5638 on function pointer being NULL.
5639 * d-lang.c (d_language_data): Delete la_get_compile_instance
5640 initializer.
5641 * f-lang.c (f_language_data): Likewise.
5642 * go-lang.c (go_language_data): Likewise.
5643 * language.c (unknown_language_data): Likewise.
5644 (auto_language_data): Likewise.
5645 * language.h (language_data): Delete la_get_compile_instance field.
5646 (language_defn::get_compile_instance): New member function.
5647 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
5648 initializer.
5649 * objc-lang.c (objc_language_data): Likewise.
5650 * opencl-lang.c (opencl_language_data): Likewise.
5651 * p-lang.c (pascal_language_data): Likewise.
5652 * rust-lang.c (rust_language_data): Likewise.
5653
4009ee92
AB
56542020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5655
5656 * ada-lang.c (ada_add_all_symbols): Update comment.
5657 (ada_iterate_over_symbols): Delete, move implementation to...
5658 (ada_language::iterate_over_symbols): ...here, a new member
5659 function, rewrite to use range based for loop.
5660 (ada_language_data): Delete la_iterate_over_symbols initializer.
5661 * c-lang.c (c_language_data): Likewise.
5662 (cplus_language_data): Likewise.
5663 (asm_language_data): Likewise.
5664 (minimal_language_data): Likewise.
5665 * d-lang.c (d_language_data): Likewise.
5666 * f-lang.c (f_language_data): Likewise.
5667 * go-lang.c (go_language_data): Likewise.
5668 * language.c (unknown_language_data): Likewise.
5669 (auto_language_data): Likewise.
5670 * language.h (language_data): Delete la_iterate_over_symbols field.
5671 (language_defn::iterate_over_symbols): New member function.
5672 (LA_ITERATE_OVER_SYMBOLS): Update.
5673 * linespec.c (iterate_over_all_matching_symtabs): Update.
5674 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
5675 initializer.
5676 * objc-lang.c (objc_language_data): Likewise.
5677 * opencl-lang.c (opencl_language_data): Likewise.
5678 * p-lang.c (pascal_language_data): Likewise.
5679 * rust-lang.c (rust_language_data): Likewise.
5680
54f4ca46
AB
56812020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5682
5683 * ada-lang.c (ada_language_data): Delete
5684 la_lookup_transparent_type initializer.
5685 * c-lang.c (c_language_data): Likewise.
5686 (cplus_language_data): Likewise.
5687 (cplus_language::lookup_transparent_type): New member function.
5688 (asm_language_data): Delete la_lookup_transparent_type
5689 initializer.
5690 (minimal_language_data): Likewise.
5691 * d-lang.c (d_language_data): Likewise.
5692 * f-lang.c (f_language_data): Likewise.
5693 * go-lang.c (go_language_data): Likewise.
5694 * language.c (unknown_language_data): Likewise.
5695 (auto_language_data): Likewise.
5696 * language.h (struct language_data): Delete
5697 la_lookup_transparent_type field.
5698 (language_defn::lookup_transparent_type): New member function.
5699 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
5700 initializer.
5701 * objc-lang.c (objc_language_data): Likewise.
5702 * opencl-lang.c (opencl_language_data): Likewise.
5703 * p-lang.c (pascal_language_data): Likewise.
5704 * rust-lang.c (rust_language_data): Likewise.
5705 * symtab.c (symbol_matches_domain): Update call.
5706
1fb314aa
AB
57072020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5708
5709 * ada-lang.c (ada_language_arch_info): Delete function, move
5710 implementation to...
5711 (ada_language::language_arch_info): ...here, a new member
5712 function.
5713 (ada_language_data): Delete la_language_arch_info.
5714 * c-lang.c (c_language_data): Likewise.
5715 (c_language::language_arch_info): New member function.
5716 (cplus_language_arch_info): Delete function, move
5717 implementation to...
5718 (cplus_language::language_arch_info): ...here, a new member
5719 function.
5720 (cplus_language_data): Delete la_language_arch_info.
5721 (asm_language_data): Likewise.
5722 (asm_language::language_arch_info): New member function.
5723 (minimal_language_data): Delete la_language_arch_info.
5724 (minimal_language::language_arch_info): New member function.
5725 * d-lang.c (d_language_arch_info): Delete function, move
5726 implementation to...
5727 (d_language::language_arch_info): ...here, a new member
5728 function.
5729 (d_language_data): Delete la_language_arch_info.
5730 * f-lang.c (f_language_arch_info): Delete function, move
5731 implementation to...
5732 (f_language::language_arch_info): ...here, a new member
5733 function.
5734 (f_language_data): Delete la_language_arch_info.
5735 * go-lang.c (go_language_arch_info): Delete function, move
5736 implementation to...
5737 (go_language::language_arch_info): ...here, a new member
5738 function.
5739 (go_language_data): Delete la_language_arch_info.
5740 * language.c (unknown_language_data): Likewise.
5741 (unknown_language::language_arch_info): New member function.
5742 (auto_language_data): Delete la_language_arch_info.
5743 (auto_language::language_arch_info): New member function.
5744 (language_gdbarch_post_init): Update call to
5745 la_language_arch_info.
5746 * language.h (language_data): Delete la_language_arch_info
5747 function pointer.
5748 (language_defn::language_arch_info): New function.
5749 * m2-lang.c (m2_language_arch_info): Delete function, move
5750 implementation to...
5751 (m2_language::language_arch_info): ...here, a new member
5752 function.
5753 (m2_language_data): Delete la_language_arch_info.
5754 * objc-lang.c (objc_language_arch_info): Delete function, move
5755 implementation to...
5756 (objc_language::language_arch_info): ...here, a new member
5757 function.
5758 (objc_language_data): Delete la_language_arch_info.
5759 * opencl-lang.c (opencl_language_arch_info): Delete function, move
5760 implementation to...
5761 (opencl_language::language_arch_info): ...here, a new member
5762 function.
5763 (opencl_language_data): Delete la_language_arch_info.
5764 * p-lang.c (pascal_language_arch_info): Delete function, move
5765 implementation to...
5766 (pascal_language::language_arch_info): ...here, a new member
5767 function.
5768 (pascal_language_data): Delete la_language_arch_info.
5769 * rust-lang.c (rust_language_arch_info): Delete function, move
5770 implementation to...
5771 (rust_language::language_arch_info): ...here, a new member
5772 function.
5773 (rust_language_data): Delete la_language_arch_info.
5774
48448202
AB
57752020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5776
5777 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
5778 initializer.
5779 * c-lang.c (c_language_data): Likewise.
5780 (cplus_language_data): Likewise.
5781 (cplus_language::pass_by_reference_info): New method.
5782 (asm_language_data): Delete la_pass_by_reference initializer.
5783 (minimal_language_data): Likewise.
5784 * cp-abi.c (cp_pass_by_reference): Remove use of
5785 default_pass_by_reference.
5786 * d-lang.c (d_language_data): Likewise.
5787 * f-lang.c (f_language_data): Likewise.
5788 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
5789 default_pass_by_reference.
5790 * go-lang.c (go_language_data): Likewise.
5791 * language.c (language_pass_by_reference): Update.
5792 (default_pass_by_reference): Delete.
5793 (unknown_language_data): Delete la_pass_by_reference
5794 initializer.
5795 (auto_language_data): Likewise.
5796 * language.h (struct language_data): Delete la_pass_by_reference
5797 field.
5798 (language_defn::pass_by_reference_info): New member function.
5799 (default_pass_by_reference): Delete declaration.
5800 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
5801 initializer.
5802 * objc-lang.c (objc_language_data): Likewise.
5803 * opencl-lang.c (opencl_language_data): Likewise.
5804 * p-lang.c (pascal_language_data): Likewise.
5805 * rust-lang.c (rust_language_data): Likewise.
5806
15e5fd35
AB
58072020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5808
5809 * ada-lang.c (ada_read_var_value): Delete function, move
5810 implementation to...
5811 (ada_language::read_var_value): ...here.
5812 (ada_language_data): Delete la_read_var_value initializer.
5813 * c-lang.c (c_language_data): Likewise.
5814 (cplus_language_data): Likewise.
5815 (minimal_language_data): Likewise.
5816 * d-lang.c (d_language_data): Likewise.
5817 * f-lang.c (f_language_data): Likewise.
5818 * findvar.c (default_read_var_value): Rename to...
5819 (language_defn::read_var_value): ...this.
5820 * findvar.c (read_var_value): Update header comment, and change to
5821 call member function instead of function pointer.
5822 * go-lang.c (go_language_data): Likewise.
5823 * language.c (unknown_language_data): Delete la_read_var_value
5824 initializer.
5825 (auto_language_data): Likewise.
5826 * language.h (struct language_data): Delete la_read_var_value
5827 field.
5828 (language_defn::read_var_value): New member function.
5829 (default_read_var_value): Delete declaration.
5830 * m2-lang.c (m2_language_data): Delete la_read_var_value
5831 initializer.
5832 * objc-lang.c (objc_language_data): Likewise.
5833 * opencl-lang.c (opencl_language_data): Likewise.
5834 * p-lang.c (pascal_language_data): Likewise.
5835 * rust-lang.c (rust_language_data): Likewise.
5836 * value.h (default_read_var_value): Delete declaration.
5837
5bd40f2a
AB
58382020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5839
5840 * ada-lang.c (ada_print_array_index): Delete function, move
5841 implementation to...
5842 (ada_language::print_array_index): ...here.
5843 (ada_language_data): Delete la_print_array_index initializer.
5844 * c-lang.c (c_language_data): Likewise.
5845 (cplus_language_data): Likewise.
5846 (minimal_language_data): Likewise.
5847 * d-lang.c (d_language_data): Likewise.
5848 * f-lang.c (f_language_data): Likewise.
5849 * go-lang.c (go_language_data): Likewise.
5850 * language.c (default_print_array_index): Delete function, move
5851 implementation to...
5852 (language_defn::print_array_index): ...here.
5853 (unknown_language_data): Delete la_print_array_index initializer.
5854 (auto_language_data): Likewise.
5855 * language.h (struct language_data): Delete la_print_array_index
5856 field.
5857 (language_defn::print_array_index): New member function.
5858 (LA_PRINT_ARRAY_INDEX): Update.
5859 (default_print_array_index): Delete declaration.
5860 * m2-lang.c (m2_language_data): Delete la_print_array_index
5861 initializer.
5862 * objc-lang.c (objc_language_data): Likewise.
5863 * opencl-lang.c (opencl_language_data): Likewise.
5864 * p-lang.c (pascal_language_data): Likewise.
5865 * rust-lang.c (rust_language_data): Likewise.
5866
0874fd07
AB
58672020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5868
5869 * gdb/ada-lang.c (ada_language_defn): Convert to...
5870 (ada_language_data): ...this.
5871 (class ada_language): New class.
5872 (ada_language_defn): New static global.
5873 * gdb/c-lang.c (c_language_defn): Convert to...
5874 (c_language_data): ...this.
5875 (class c_language): New class.
5876 (c_language_defn): New static global.
5877 (cplus_language_defn): Convert to...
5878 (cplus_language_data): ...this.
5879 (class cplus_language): New class.
5880 (cplus_language_defn): New static global.
5881 (asm_language_defn): Convert to...
5882 (asm_language_data): ...this.
5883 (class asm_language): New class.
5884 (asm_language_defn): New static global.
5885 (minimal_language_defn): Convert to...
5886 (minimal_language_data): ...this.
5887 (class minimal_language): New class.
5888 (minimal_language_defn): New static global.
5889 * gdb/d-lang.c (d_language_defn): Convert to...
5890 (d_language_data): ...this.
5891 (class d_language): New class.
5892 (d_language_defn): New static global.
5893 * gdb/f-lang.c (f_language_defn): Convert to...
5894 (f_language_data): ...this.
5895 (class f_language): New class.
5896 (f_language_defn): New static global.
5897 * gdb/go-lang.c (go_language_defn): Convert to...
5898 (go_language_data): ...this.
5899 (class go_language): New class.
5900 (go_language_defn): New static global.
5901 * gdb/language.c (unknown_language_defn): Remove declaration.
5902 (current_language): Initialize to nullptr, real initialization is
5903 moved to _initialize_language.
5904 (languages): Delete global.
5905 (language_defn::languages): Define.
5906 (set_language_command): Use language_defn::languages.
5907 (set_language): Likewise.
5908 (range_error): Likewise.
5909 (language_enum): Likewise.
5910 (language_def): Likewise.
5911 (add_set_language_command): Use language_def::languages for the
5912 language list, and language_def to lookup language pointers.
5913 (skip_language_trampoline): Use language_defn::languages.
5914 (unknown_language_defn): Convert to...
5915 (unknown_language_data): ...this.
5916 (class unknown_language): New class.
5917 (unknown_language_defn): New static global.
5918 (auto_language_defn): Convert to...
5919 (auto_language_data): ...this.
5920 (class auto_language): New class.
5921 (auto_language_defn): New static global.
5922 (language_gdbarch_post_init): Use language_defn::languages.
5923 (_initialize_language): Initialize current_language.
5924 * gdb/language.h (struct language_defn): Rename to...
5925 (struct language_data): ...this.
5926 (struct language_defn): New.
5927 (auto_language_defn): Delete.
5928 (unknown_language_defn): Delete.
5929 (minimal_language_defn): Delete.
5930 (ada_language_defn): Delete.
5931 (asm_language_defn): Delete.
5932 (c_language_defn): Delete.
5933 (cplus_language_defn): Delete.
5934 (d_language_defn): Delete.
5935 (f_language_defn): Delete.
5936 (go_language_defn): Delete.
5937 (m2_language_defn): Delete.
5938 (objc_language_defn): Delete.
5939 (opencl_language_defn): Delete.
5940 (pascal_language_defn): Delete.
5941 (rust_language_defn): Delete.
5942 * gdb/m2-lang.c (m2_language_defn): Convert to...
5943 (m2_language_data): ...this.
5944 (class m2_language): New class.
5945 (m2_language_defn): New static global.
5946 * gdb/objc-lang.c (objc_language_defn): Convert to...
5947 (objc_language_data): ...this.
5948 (class objc_language): New class.
5949 (objc_language_defn): New static global.
5950 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
5951 (opencl_language_data): ...this.
5952 (class opencl_language): New class.
5953 (opencl_language_defn): New static global.
5954 * gdb/p-lang.c (pascal_language_defn): Convert to...
5955 (pascal_language_data): ...this.
5956 (class pascal_language): New class.
5957 (pascal_language_defn): New static global.
5958 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
5959 language pointer, update comment format.
5960 * gdb/rust-lang.c (rust_language_defn): Convert to...
5961 (rust_language_data): ...this.
5962 (class rust_language): New class.
5963 (rust_language_defn): New static global.
5964
1313c56e
AB
59652020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
5966
5967 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
5968 member variable.
5969 <m_stmt_at_address>: New member variable.
5970 (lnp_state_machine::record_line): Don't record some lines, update
5971 tracking of is_stmt at the same address.
5972 (lnp_state_machine::lnp_state_machine): Initialise new member
5973 variables.
5974
b7ed9f3d
ST
59752020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
5976
5977 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
5978 "-include gnu-nat-mig.h".
5979 * gnu-nat-mig.h: New file.
5980 * gnu-nat.c: Include "gnu-nat-mig.h".
5981 (exc_server, msg_reply_server, notify_server,
5982 process_reply_server): Remove declarations.
5983
14a8ad62
ST
59842020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5985
5986 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
5987 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
5988 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
5989 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
5990 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
5991 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
5992 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
5993 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
5994 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
5995 to gnu_nat_target class.
5996 * gnu-nat.c: Likewise.
5997 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
5998 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
5999 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
6000 object.
6001 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
6002 instead of `gnu_target'.
6003
0af5e106
ST
60042020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6005
6006 * i386-gnu-tdep.c: Include "gdbcore.h"
6007 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
6008 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
6009 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
6010 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
6011 i386_gnu_sigcontext_addr): New functions
6012 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
6013 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
6014 tdep.
6015
078f2fc9
ST
60162020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6017
6018 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
6019 before fork_inferior call. Avoid calling it if target_is_pushed returns
6020 true.
6021
53dff92c
ST
60222020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6023
6024 * gnu-nat.h (gnu_target): New variable declaration.
6025 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
6026 gnu_target.
6027 * gnu-nat.c (gnu_target): New variable.
6028 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
6029 add_thread_silent, and add_thread calls.
6030 (gnu_nat_target::create_inferior): Pass gnu_target to
6031 add_thread_silent, thread_change_ptid call.
6032 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
6033 call.
6034
5a8b8627
ST
60352020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6036
6037 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
6038 (gnu_nat_target::find_memory_regions): Remove unused
6039 `old_address' variable.
6040
366f550a
ST
60412020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6042
6043 * gnu-nat.c: Include "gdbarch.h".
6044
f14871bf
ST
60452020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6046
6047 * reply_mig_hack.awk (Error return): Cast function through
6048 void *, to bypass compiler function call check.
6049
c6887cfb
ST
60502020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6051
6052 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
6053 $(srcdir)/reply_mig_hack.awk.
6054
6930bffe
ST
60552020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6056
6057 * gnu-nat.h (gnu_debug_flag): Set type to bool.
6058
112c22ed
JG
60592020-05-30 Jonny Grant <jg@jguk.org>
6060
6061 * configure.ac (ACX_BUGURL): change bug URL to https.
6062
f68f85b5
PA
60632020-05-30 Pedro Alves <palves@redhat.com>
6064
6065 * cp-support.c (replace_typedefs_template): New.
6066 (replace_typedefs_qualified_name): Handle
6067 DEMANGLE_COMPONENT_TEMPLATE.
6068
976ca316
SM
60692020-05-29 Simon Marchi <simon.marchi@efficios.com>
6070
6071 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
6072 dwarf2/index-cache.h, dwarf2/index-write.c,
6073 dwarf2/index-write.h, dwarf2/line-header.c,
6074 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
6075 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
6076 variables and fields from `dwarf2_per_objfile` to just
6077 `per_objfile` throughout.
6078
989ade05
SM
60792020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
6080
6081 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6082 <push_dwarf_reg_entry_value>: Add comment.
6083
c47bae85
KB
60842020-05-28 Kevin Buettner <kevinb@redhat.com>
6085 Keith Seitz <keiths@redhat.com>
6086
6087 * python/python.c (do_start_initialization): Call PyEval_SaveThread
6088 instead of PyEval_ReleaseLock.
6089 (class gdbpy_gil): Move to earlier in file.
6090 (finalize_python): Set gdb_python_initialized.
6091 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
6092 when not initialized.
6093
44486dcf
SM
60942020-05-28 Simon Marchi <simon.marchi@efficios.com>
6095
6096 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6097 <push_dwarf_reg_entry_value>: Remove assert. Override
6098 per_objfile with caller_per_objfile.
6099
f030440d
TV
61002020-05-28 Tom de Vries <tdevries@suse.de>
6101
6102 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
6103 PR gold/15646 workaround to symbol kind "type".
6104
f0fbb768
TT
61052020-05-27 Tom Tromey <tromey@adacore.com>
6106
6107 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
6108
af0b2a3e
TT
61092020-05-27 Tom Tromey <tromey@adacore.com>
6110
6111 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
6112 Use htab_find_with_hash.
6113 <add_abbrev>: Remove "abbrev_number" parameter.
6114 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
6115 "abbrev_number" parameter. Use htab_find_slot_with_hash.
6116 (hash_abbrev): Add comment.
6117 (abbrev_table::lookup_abbrev): Move to header file.
6118 (abbrev_table::read): Update.
6119
7d00ffec
TT
61202020-05-27 Tom Tromey <tromey@adacore.com>
6121
6122 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
6123 method.
6124 <canonical_name>: New member.
6125 <raw_name>: Rename from "name".
6126 (partial_die_info): Initialize canonical_name.
6127 (scan_partial_symbols): Check raw_name.
6128 (partial_die_parent_scope, partial_die_full_name)
6129 (add_partial_symbol, add_partial_subprogram)
6130 (add_partial_enumeration, load_partial_dies): Use "name" method.
6131 (partial_die_info::name): New method.
6132 (partial_die_info::read, guess_partial_die_structure_name)
6133 (partial_die_info::fixup): Update.
6134
697bba18
TT
61352020-05-27 Tom Tromey <tromey@adacore.com>
6136
6137 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
6138 <get_ref_die_offset>: Inline.
6139 <get_ref_die_offset_complaint>: New method.
6140 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
6141 (attribute::get_ref_die_offset_complaint): Rename from
6142 get_ref_die_offset. Just issue complaint.
6143
c17ace43
HD
61442020-05-27 Hannes Domani <ssbssa@yahoo.de>
6145
6146 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
6147
96445f0b
HD
61482020-05-27 Hannes Domani <ssbssa@yahoo.de>
6149
6150 * exec.c (exec_file_attach): Use errno value of first openp failure.
6151
ac637ec3
HD
61522020-05-27 Hannes Domani <ssbssa@yahoo.de>
6153
6154 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
6155 Don't close thread handle.
6156
17ee85fc
TT
61572020-05-27 Tom Tromey <tom@tromey.com>
6158 Simon Marchi <simon.marchi@efficios.com>
6159
6160 * objfiles.h (struct objfile) <partial_symtabs>: Now a
6161 shared_ptr.
6162 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
6163 member.
6164 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
6165 dwarf2_per_bfd_objfile_data_key>: New globals.
6166 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
6167 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
6168 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
6169 shared.
6170 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
6171 short-circuit when sharing.
6172 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
6173 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
6174
39b16f87
SM
61752020-05-27 Simon Marchi <simon.marchi@efficios.com>
6176
6177 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
6178 to...
6179 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
6180 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
6181
fcf23d5b
SM
61822020-05-27 Simon Marchi <simon.marchi@efficios.com>
6183
6184 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
6185 build_name_components, find_name_components_bounds>:
6186 Add per_objfile parameter.
6187 (struct mapped_index) <symbol_name_at>: Likewise.
6188 (struct mapped_debug_names): Remove constructor.
6189 <dwarf2_per_objfile>: Remove field.
6190 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
6191 (mapped_index_base::find_name_components_bounds,
6192 mapped_index_base::build_name_components,
6193 dw2_expand_symtabs_matching_symbol): Likewise.
6194 (class mock_mapped_index) <symbol_name_at>: Likewise.
6195 (check_match): Likewise.
6196 (check_find_bounds_finds): Likewise.
6197 (test_mapped_index_find_name_component_bounds): Update.
6198 (CHECK_MATCH): Update.
6199 (dw2_expand_symtabs_matching): Update.
6200 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
6201 per_objfile parameter.
6202 <find_vec_in_debug_names>: Likewise.
6203 <m_per_objfile>: New field.
6204 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
6205 parameter.
6206 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
6207 (dw2_debug_names_iterator::next): Update.
6208 (dw2_debug_names_lookup_symbol): Update.
6209 (dw2_debug_names_expand_symtabs_for_function): Update.
6210 (dw2_debug_names_map_matching_symbols): Update.
6211 (dw2_debug_names_expand_symtabs_matching): Update.
6212 (dwarf2_read_debug_names): Update.
6213
7188ed02
SM
62142020-05-27 Simon Marchi <simon.marchi@efficios.com>
6215
6216 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
6217 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
6218 move to dwarf2_per_objfile.
6219 <read_in_chain>: Remove.
6220 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
6221 remove_all_cus, age_comp_units>: New methods.
6222 <m_dwarf2_cus>: New member.
6223 (struct dwarf2_per_cu_data) <cu>: Remove.
6224 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
6225 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
6226 moved to methods of dwarf2_per_objfile.
6227 (dwarf2_clear_marks): Remove.
6228 (dwarf2_queue_item::~dwarf2_queue_item): Update.
6229 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
6230 (dwarf2_per_bfd::free_cached_comp_units): Remove.
6231 (dwarf2_per_objfile::remove_all_cus): New.
6232 (class free_cached_comp_units) <~free_cached_comp_units>:
6233 Update.
6234 (load_cu): Update.
6235 (dw2_do_instantiate_symtab): Adjust.
6236 (fill_in_sig_entry_from_dwo_entry): Adjust.
6237 (cutu_reader::init_tu_and_read_dwo_dies): Update.
6238 (cutu_reader::cutu_reader): Likewise.
6239 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
6240 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
6241 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
6242 and dwarf2_per_objfile::age_comp_units.
6243 (load_partial_comp_unit): Update.
6244 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
6245 (process_queue): Likewise.
6246 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
6247 backlink.
6248 (dwarf2_read_addr_index): Likewise.
6249 (follow_die_offset): Likewise.
6250 (dwarf2_fetch_die_loc_sect_off): Likewise.
6251 (dwarf2_fetch_constant_bytes): Likewise.
6252 (dwarf2_fetch_die_type_sect_off): Likewise.
6253 (follow_die_sig_1): Likewise.
6254 (load_full_type_unit): Likewise.
6255 (read_signatured_type): Likewise.
6256 (dwarf2_cu::dwarf2_cu): Don't set cu field.
6257 (dwarf2_cu::~dwarf2_cu): Remove.
6258 (dwarf2_per_objfile::get_cu): New.
6259 (dwarf2_per_objfile::set_cu): New.
6260 (age_cached_comp_units): Rename to...
6261 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
6262 to std::unordered_map.
6263 (free_one_cached_comp_unit): Rename to...
6264 (dwarf2_per_objfile::remove_cu): ... this. Adjust
6265 to std::unordered_map.
6266 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
6267 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
6268 a dwarf2_per_objfile in data.
6269 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
6270 (dwarf2_clear_marks): Remove.
6271
2e671100
SM
62722020-05-27 Simon Marchi <simon.marchi@efficios.com>
6273
6274 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
6275 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
6276 (init_tu_and_read_dwo_dies): Likewise.
6277 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
6278 (cutu_reader::cutu_reader): Likewise.
6279 (load_partial_comp_unit): Likewise.
6280 (process_psymtab_comp_unit): Update.
6281 (build_type_psymtabs_1): Update.
6282 (process_skeletonless_type_unit): Update.
6283 (load_full_comp_unit): Update.
6284 (find_partial_die): Update.
6285 (dwarf2_read_addr_index): Update.
6286 (read_signatured_type): Update.
6287
2e6a9f79
SM
62882020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6289
6290 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
6291 m_header_read_in>: New fields.
6292 <get_header>: New method.
6293 * dwarf2/read.c (per_cu_header_read_in): Remove.
6294 (dwarf2_per_cu_data::get_header): New.
6295 (dwarf2_per_cu_data::addr_size): Update.
6296 (dwarf2_per_cu_data::offset_size): Update.
6297 (dwarf2_per_cu_data::ref_addr_size): Update.
6298
1b555f17
SM
62992020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6300
6301 * dwarf2/read.c (load_cu): Return dwarf2_cu.
6302 (dw2_do_instantiate_symtab): Update.
6303 (queue_and_load_all_dwo_tus): Change parameter from
6304 dwarf2_per_cu_data to dwarf2_cu.
6305 (dwarf2_fetch_die_loc_sect_off): Update.
6306 (dwarf2_fetch_constant_bytes): Update.
6307 (dwarf2_fetch_die_type_sect_off): Update.
6308
8fc0b21d
SM
63092020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6310
6311 * dwarf2/read.c (process_full_comp_unit,
6312 process_full_type_unit): Remove per_cu, per_objfile paramters.
6313 Add dwarf2_cu parameter.
6314 (process_queue): Update.
6315
168c9250
SM
63162020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6317
6318 * dwarf2/read.c (create_cu_from_index_list): Replace
6319 dwarf2_per_objfile parameter with dwarf2_per_bfd.
6320 (create_cus_from_index_list): Likewise.
6321 (create_cus_from_index): Likewise.
6322 (create_signatured_type_table_from_index): Likewise.
6323 (create_cus_from_debug_names_list): Likewise.
6324 (create_cus_from_debug_names): Likewise.
6325 (dwarf2_read_gdb_index): Update.
6326 (dwarf2_read_debug_names): Update.
6327
e286671b
TT
63282020-05-27 Tom Tromey <tom@tromey.com>
6329 Simon Marchi <simon.marchi@efficios.com>
6330
6331 * dwarf2/read.h (struct dwarf2_per_objfile)
6332 <get_type_for_signatured_type, set_type_for_signatured_type>:
6333 New methods.
6334 <m_type_map>: New member.
6335 (struct signatured_type) <type>: Remove.
6336 * dwarf2/read.c
6337 (dwarf2_per_objfile::get_type_for_signatured_type,
6338 dwarf2_per_objfile::set_type_for_signatured_type): New.
6339 (get_signatured_type): Use new methods.
6340
8adb8487
TT
63412020-05-27 Tom Tromey <tom@tromey.com>
6342 Simon Marchi <simon.marchi@efficios.com>
6343
6344 * dwarf2/read.h (struct type_unit_group_unshareable): New.
6345 (struct dwarf2_per_objfile) <type_units>: New member.
6346 <get_type_unit_group_unshareable>: New method.
6347 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
6348 num_symtabs, symtabs>: Remove; move to
6349 type_unit_group_unshareable.
6350 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
6351 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
6352 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
6353
127bbf4b
SM
63542020-05-27 Simon Marchi <simon.marchi@efficios.com>
6355
6356 * dwarf2/read.h (struct dwarf2_per_cu_data):
6357 <dwarf2_per_objfile>: Remove.
6358 * dwarf2/read.c (create_cu_from_index_list): Don't assign
6359 dwarf2_per_objfile.
6360 (create_signatured_type_table_from_index): Likewise.
6361 (create_signatured_type_table_from_debug_names): Likewise.
6362 (create_debug_type_hash_table): Likewise.
6363 (fill_in_sig_entry_from_dwo_entry): Likewise.
6364 (create_type_unit_group): Likewise.
6365 (read_comp_units_from_section): Likewise.
6366 (create_cus_hash_table): Likewise.
6367
f6e649dd
SM
63682020-05-27 Simon Marchi <simon.marchi@efficios.com>
6369
6370 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
6371 dwarf2_per_cu_data::dwarf2_per_objfile.
6372 (compute_compunit_symtab_includes): Likewise.
6373 (dwarf2_cu::start_symtab): Likewise.
6374
aa66c379
SM
63752020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6376
6377 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
6378 parameter.
6379 * dwarf2/read.c (get_die_type_at_offset): Likewise.
6380 (read_namespace_alias): Update.
6381 (lookup_die_type): Update.
6382 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
6383 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
6384 Update.
6385 (disassemble_dwarf_expression): Update.
6386
120ce1b5
SM
63872020-05-27 Simon Marchi <simon.marchi@efficios.com>
6388
6389 * dwarf2/read.h (struct dwarf2_queue_item): Add
6390 dwarf2_per_objfile parameter, assign new parameter.
6391 <per_objfile>: New field.
6392 * dwarf2/read.c (free_one_cached_comp_unit): Add
6393 dwarf2_per_objfile parameter.
6394 (queue_comp_unit): Likewise.
6395 (dw2_do_instantiate_symtab): Update.
6396 (process_psymtab_comp_unit): Update.
6397 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
6398 (process_imported_unit_die): Update.
6399 (queue_and_load_dwo_tu): Update.
6400 (follow_die_offset): Update.
6401 (follow_die_sig_1): Update.
6402
9f47c707
SM
64032020-05-27 Simon Marchi <simon.marchi@efficios.com>
6404
6405 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
6406 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
6407 (read_call_site_scope): Assign per_objfile.
6408 (dwarf2_per_cu_data::objfile): Remove.
6409 * gdbtypes.h (struct call_site) <per_objfile>: New member.
6410 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
6411 dwarf2_per_objfile parameter.
6412 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
6413 dwarf2_per_objfile parameter.
6414 (dwarf_expr_reg_to_entry_parameter): Add output
6415 dwarf2_per_objfile parameter.
6416 (locexpr_get_frame_base): Update.
6417 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
6418 <push_dwarf_reg_entry_value>: Update.
6419 <call_site_to_target_addr>: Update.
6420 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
6421 parameter.
6422 (value_of_dwarf_reg_entry): Update.
6423 (rw_pieced_value): Update.
6424 (indirect_synthetic_pointer): Update.
6425 (dwarf2_evaluate_property): Update.
6426 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
6427 parameter.
6428 (locexpr_read_variable): Update.
6429 (locexpr_get_symbol_read_needs): Update.
6430 (loclist_read_variable): Update.
6431
14095eb3
SM
64322020-05-27 Simon Marchi <simon.marchi@efficios.com>
6433
6434 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
6435 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
6436 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
6437 parameter.
6438 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
6439 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
6440 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
6441 parameter.
6442 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
6443 sect_variable_value): Add dwarf2_per_objfile parameter.
6444 (class dwarf_evaluate_loc_desc) <dwarf_call,
6445 dwarf_variable_value>: Update.
6446 (fetch_const_value_from_synthetic_pointer): Add
6447 dwarf2_per_objfile parameter.
6448 (fetch_const_value_from_synthetic_pointer): Update.
6449 (coerced_pieced_ref): Update.
6450 (class symbol_needs_eval_context) <dwarf_call,
6451 dwarf_variable_value>: Update.
6452 (dwarf2_compile_expr_to_ax): Update.
6453
3c3cd3d4
SM
64542020-05-27 Simon Marchi <simon.marchi@efficios.com>
6455
6456 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
6457 parameter.
6458 (dwarf2_evaluate_loc_desc_full): Update.
6459
82ca3f51
SM
64602020-05-27 Simon Marchi <simon.marchi@efficios.com>
6461
6462 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
6463 parameter.
6464 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
6465 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
6466 dwarf2_per_objfile parameter.
6467 (decode_debug_loc_dwo_addresses): Likewise.
6468 (dwarf2_find_location_expression): Update.
6469 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
6470 (locexpr_describe_location_piece): Add dwarf2_per_objfile
6471 parameter.
6472 (disassemble_dwarf_expression): Add dwarf2_per_objfile
6473 parameter.
6474 (locexpr_describe_location_1): Likewise.
6475 (locexpr_describe_location): Update.
6476
4b167ea1
SM
64772020-05-27 Simon Marchi <simon.marchi@efficios.com>
6478
6479 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
6480 Remove.
6481 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
6482 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
6483 (dwarf2_compile_property_to_c): Update.
6484 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
6485 use text offset from objfile.
6486 (locexpr_tracepoint_var_ref): Update.
6487 (locexpr_generate_c_location): Update.
6488 (loclist_describe_location): Update.
6489 (loclist_tracepoint_var_ref): Update.
6490 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
6491 dwarf2_per_objfile parameter.
6492 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
6493 use text offset from objfile.
6494 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
6495
89b07335
SM
64962020-05-27 Simon Marchi <simon.marchi@efficios.com>
6497
6498 * dwarf2/expr.h (struct dwarf_expr_context)
6499 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
6500 <offset>: Remove.
6501 <per_objfile>: New member.
6502 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
6503 dwarf2_per_objfile parameter. Don't set offset, set
6504 per_objfile.
6505 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
6506 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
6507 a dwarf2_per_objfile object instead of an offset.
6508 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
6509 constructor.
6510 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
6511 to dwarf2_expr_executor constructor. Don't set offset.
6512 (dwarf2_fetch_cfa_info): Update.
6513 (struct dwarf2_frame_cache) <text_offset>: Remove.
6514 <per_objfile>: New field.
6515 (dwarf2_frame_cache): Update.
6516 (dwarf2_frame_prev_register): Update.
6517 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6518 <dwarf_evaluate_loc_desc>: Add constructor.
6519 (dwarf2_evaluate_loc_desc_full): Update.
6520 (dwarf2_locexpr_baton_eval): Update.
6521 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
6522 Add constructor.
6523 (dwarf2_loc_desc_get_symbol_read_needs): Update.
6524
293e7e51
SM
65252020-05-27 Simon Marchi <simon.marchi@efficios.com>
6526
6527 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
6528 addr_sized_int_type>: Move to dwarf2_cu.
6529 <int_type>: Move to dwarf2_per_objfile.
6530 (struct dwarf2_per_objfile) <int_type>: Move here.
6531 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
6532 addr_sized_int_type>: Move here.
6533 (read_func_scope): Update.
6534 (read_array_type): Update.
6535 (read_tag_string_type): Update.
6536 (attr_to_dynamic_prop): Update.
6537 (dwarf2_per_cu_data::int_type): Rename to...
6538 (dwarf2_per_objfile::int_type): ... this.
6539 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
6540 (dwarf2_cu::addr_sized_int_type): ... this.
6541 (read_subrange_type): Update.
6542 (dwarf2_per_cu_data::addr_type): Rename to...
6543 (dwarf2_cu::addr_type): ... this.
6544 (set_die_type): Update.
6545
64874a40
SM
65462020-05-27 Simon Marchi <simon.marchi@efficios.com>
6547
6548 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
6549 data through per_cu->cu.
6550
4ab09049
SM
65512020-05-27 Simon Marchi <simon.marchi@efficios.com>
6552
6553 * dwarf2/read.c (lookup_dwo_comp_unit): Change
6554 dwarf2_per_cu_data parameter fo dwarf2_cu.
6555 (lookup_dwo_type_unit): Likewise.
6556 (read_cutu_die_from_dwo): Likewise.
6557 (lookup_dwo_unit): Likewise.
6558 (open_and_init_dwo_file): Likewise.
6559 (lookup_dwo_cutu): Likewise.
6560 (lookup_dwo_comp_unit): Likewise.
6561 (lookup_dwo_type_unit): Likewise.
6562 (cutu_reader::init_tu_and_read_dwo_dies): Update.
6563 (cutu_reader::cutu_reader): Update.
6564
47b14e86
SM
65652020-05-27 Simon Marchi <simon.marchi@efficios.com>
6566
6567 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
6568 parameter.
6569 (process_full_type_unit): Likewise.
6570 (process_queue): Update.
6571
43182c09
SM
65722020-05-27 Simon Marchi <simon.marchi@efficios.com>
6573
6574 * dwarf2/read.c (recursively_compute_inclusions): Add
6575 dwarf2_per_objfile parameter.
6576 (compute_compunit_symtab_includes): Likewise.
6577 (process_cu_includes): Update.
6578
7aa104c4
SM
65792020-05-27 Simon Marchi <simon.marchi@efficios.com>
6580
6581 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
6582 parameter.
6583 (create_type_unit_group): Update.
6584 (process_psymtab_comp_unit_reader): Update.
6585 (build_type_psymtabs_reader): Update.
6586
e3beb21d
SM
65872020-05-27 Simon Marchi <simon.marchi@efficios.com>
6588
6589 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
6590 object through m_this_cu->cu.
6591
d460f660
SM
65922020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6593
6594 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
6595 the info parameter.
6596 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
6597
ab432490
SM
65982020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6599
6600 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
6601 per_objfile parameter.
6602 (load_full_type_unit): Add per_objfile parameter.
6603 (read_signatured_type): Likewise.
6604 (load_full_comp_unit): Likewise.
6605 (load_cu): Likewise.
6606 (dw2_do_instantiate_symtab): Likewise.
6607 (dw2_get_file_names): Likewise.
6608 (dw2_map_symtabs_matching_filename): Update.
6609 (dw_expand_symtabs_matching_file_matcher): Update.
6610 (dw2_map_symbol_filenames): Update.
6611 (process_psymtab_comp_unit): Add per_objfile parameter.
6612 (build_type_psymtabs_1): Update.
6613 (process_skeletonless_type_unit): Update.
6614 (dwarf2_build_psymtabs_hard): Update.
6615 (load_partial_comp_unit): Add per_objfile parameter.
6616 (scan_partial_symbols): Update.
6617 (load_full_comp_unit): Add per_objfile parameter.
6618 (process_imported_unit_die): Update.
6619 (create_cus_hash_table): Update.
6620 (find_partial_die): Update.
6621 (dwarf2_read_addr_index): Update.
6622 (follow_die_offset): Update.
6623 (dwarf2_fetch_die_loc_sect_off): Update.
6624 (dwarf2_fetch_constant_bytes): Update.
6625 (dwarf2_fetch_die_type_sect_off): Update.
6626 (follow_die_sig_1): Update.
6627 (load_full_type_unit): Add per_objfile parameter.
6628 (read_signatured_type): Likewise.
6629
313bad1b
SM
66302020-05-27 Simon Marchi <simon.marchi@efficios.com>
6631
6632 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
6633 of objfile_name.
6634
c3699833
SM
66352020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6636
6637 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
6638 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
6639 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
6640 field.
6641 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
6642 (create_cus_from_index): Update.
6643 (dwarf2_read_gdb_index): Update.
6644 (create_cus_from_debug_names): Update.
6645 (dwarf2_read_debug_names): Update.
6646 (get_abbrev_section_for_cu): Update.
6647 (create_all_comp_units): Update.
6648 (read_attribute_value): Update.
6649 (get_debug_line_section): Update.
6650 * dwarf2/index-cache.c (index_cache::store): Update.
6651 * dwarf2/index-write.c (save_gdb_index_command): Update.
6652 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
6653
1859c670
SM
66542020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6655
6656 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
6657 member.
6658 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
6659 dwarf2_per_cu_data::per_bfd.
6660 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
6661 (create_type_unit_group): Likewise.
6662 (queue_comp_unit): Remove reference to
6663 per_cu->dwarf2_per_objfile.
6664 (maybe_queue_comp_unit): Likewise.
6665 (fill_in_sig_entry_from_dwo_entry): Assign new field.
6666 (create_cus_hash_table): Assign new field.
6667
5e22e966
SM
66682020-05-27 Simon Marchi <simon.marchi@efficios.com>
6669
6670 * dwarf2/read.c: Replace
6671 dwarf2_cu->per_cu->dwarf2_per_objfile references with
6672 dwarf2_cu->per_objfile throughout.
6673
97a1449a
SM
66742020-05-27 Simon Marchi <simon.marchi@efficios.com>
6675
6676 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
6677 parameter, don't use per_cu->dwarf2_per_objfile.
6678 (dw2_instantiate_symtab): Likewise.
6679 (dw2_find_last_source_symtab): Update.
6680 (dw2_map_expand_apply): Update.
6681 (dw2_lookup_symbol): Update.
6682 (dw2_expand_symtabs_for_function): Update.
6683 (dw2_expand_all_symtabs): Update.
6684 (dw2_expand_symtabs_with_fullname): Update.
6685 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
6686 don't use per_cu->dwarf2_per_objfile.
6687 (dw2_expand_marked_cus): Update.
6688 (dw2_find_pc_sect_compunit_symtab): Update.
6689 (dw2_debug_names_lookup_symbol): Update.
6690 (dw2_debug_names_expand_symtabs_for_function): Update.
6691 (dw2_debug_names_map_matching_symbols): Update.
6692 (dwarf2_psymtab::expand_psymtab): Update.
6693
9e021579
SM
66942020-05-27 Simon Marchi <simon.marchi@efficios.com>
6695
6696 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
6697 <per_objfile>: New member.
6698 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
6699 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
6700 call to dwarf2_cu.
6701 (cutu_reader::cutu_reader): Update.
6702 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
6703
ae090bdb
SM
67042020-05-27 Simon Marchi <simon.marchi@efficios.com>
6705
6706 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
6707 struct dwarf2_per_objfile.
6708 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
6709 dwarf2_per_bfd.
6710 * dwarf2/read.c (set_die_type): Update.
6711 (get_die_type_at_offset): Update.
6712
af758d11
SM
67132020-05-27 Tom Tromey <tom@tromey.com>
6714 Simon Marchi <simon.marchi@efficios.com>
6715
6716 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
6717 method.
6718 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
6719 get_symtab, set_symtab>: New methods.
6720 <m_symtabs>: New field.
6721 (struct dwarf2_psymtab): Derive from partial_symtab.
6722 <readin_p, get_compunit_symtab>: Declare methods.
6723 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
6724 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
6725 New methods.
6726 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
6727 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
6728 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
6729 (dw2_symtab_iter_next, dw2_print_stats)
6730 (dw2_expand_symtabs_with_fullname)
6731 (dw2_expand_symtabs_matching_one)
6732 (dw_expand_symtabs_matching_file_matcher)
6733 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
6734 (dw2_debug_names_iterator::next)
6735 (dw2_debug_names_map_matching_symbols)
6736 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
6737 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
6738 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
6739 New methods.
6740 (get_compunit_symtab, process_full_comp_unit)
6741 (process_full_type_unit): Update.
6742 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
6743
5989a64e
SM
67442020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6745
6746 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
6747 then introduce a new dwarf2_per_objfile type.
6748 <read_line_string>: Move to the new dwarf2_per_objfile type.
6749 <objfile>: Likewise.
6750 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
6751 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
6752 dwarf2_per_objfile->per_bfd.
6753 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
6754 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
6755 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
6756 (dwarf2_per_bfd::free_cached_comp_units): ... this.
6757 (dwarf2_has_info): Allocate dwarf2_per_bfd.
6758 (dwarf2_per_objfile::locate_sections): Rename to...
6759 (dwarf2_per_bfd::locate_sections): ... this.
6760 (dwarf2_per_objfile::get_cutu): Rename to...
6761 (dwarf2_per_bfd::get_cutu): ... this.
6762 (dwarf2_per_objfile::get_cu): Rename to...
6763 (dwarf2_per_bfd::get_cu): ... this.
6764 (dwarf2_per_objfile::get_tu): Rename to...
6765 (dwarf2_per_bfd::get_tu): ... this.
6766 (dwarf2_per_objfile::allocate_per_cu): Rename to...
6767 (dwarf2_per_bfd::allocate_per_cu): ... this.
6768 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
6769 (dwarf2_per_bfd::allocate_signatured_type): ... this.
6770 (get_gdb_index_contents_ftype): Change parameter from
6771 dwarf2_per_objfile to dwarf2_per_bfd.
6772 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
6773 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
6774
a50264ba
TT
67752020-05-27 Tom Tromey <tom@tromey.com>
6776 Simon Marchi <simon.marchi@efficios.com>
6777
6778 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
6779 (allocate_piece_closure): Set "per_objfile" member.
6780 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
6781 (locexpr_describe_location, loclist_describe_location): Use new
6782 member.
6783 * dwarf2/read.c (read_call_site_scope)
6784 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
6785 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
6786 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
6787 handle_data_member_location): Set per_objfile member.
6788 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
6789 member.
6790 (struct dwarf2_loclist_baton) <per_objfile>: New member.
6791
d3473f0c
TT
67922020-05-27 Tom Tromey <tom@tromey.com>
6793
6794 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
6795 allocate_signatured_type>: Declare new methods.
6796 <m_num_psymtabs>: New member.
6797 (struct dwarf2_per_cu_data) <index>: New member.
6798 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
6799 (dwarf2_per_objfile::allocate_signatured_type): New methods.
6800 (create_cu_from_index_list): Use allocate_per_cu.
6801 (create_signatured_type_table_from_index)
6802 (create_signatured_type_table_from_debug_names)
6803 (create_debug_type_hash_table, add_type_unit)
6804 (read_comp_units_from_section): Use allocate_signatured_type.
6805
5717c425
TT
68062020-05-27 Tom Tromey <tom@tromey.com>
6807
6808 * psymtab.c (partial_map_expand_apply)
6809 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
6810 (psym_lookup_global_symbol_language)
6811 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
6812 (psym_print_stats, psym_expand_symtabs_for_function)
6813 (psym_map_symbol_filenames, psym_map_matching_symbols)
6814 (psym_expand_symtabs_matching)
6815 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
6816 (maintenance_check_psymtabs): Update.
6817 * psympriv.h (struct partial_symtab) <readin_p,
6818 get_compunit_symtab>: Add objfile parameter.
6819 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
6820 Likewise.
6821 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
6822 get_compunit_symtab>: Likewise.
6823 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
6824
45940949
TT
68252020-05-27 Tom Tromey <tom@tromey.com>
6826
6827 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
6828 member.
6829 * dwarf2/read.c (delete_file_name_entry): Fix comment.
6830 (create_cu_from_index_list)
6831 (create_signatured_type_table_from_index)
6832 (create_signatured_type_table_from_debug_names)
6833 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
6834 (dwarf2_create_include_psymtab)
6835 (create_debug_type_hash_table, add_type_unit)
6836 (create_type_unit_group, read_comp_units_from_section)
6837 (dwarf2_compute_name, create_cus_hash_table)
6838 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
6839 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
6840 obstack.
6841 (dw2_get_real_path): Likewise. Change argument to
6842 dwarf2_per_objfile.
6843
f8c6d152
LM
68442020-05-27 Luis Machado <luis.machado@linaro.org>
6845
6846 PR tdep/26000
6847 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
6848 for ldrd (immediate).
6849
e98d2e6d
PW
68502020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6851
6852 * command.h: Add comment giving the name of class_tui.
6853 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
6854 create the fake command for the help for class_tui.
6855
53a47a3e
TT
68562020-05-26 Tom Tromey <tromey@adacore.com>
6857
6858 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
6859 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
6860 (val_atr): New function.
6861 (value_val_atr): Use it.
6862 * ada-valprint.c (print_optional_low_bound): Change low bound
6863 handling for enums.
6864 (val_print_packed_array_elements): Don't call discrete_position.
6865 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
6866 discrete_position for enum types.
6867 * language.c (default_print_array_index): Change type.
6868 * language.h (struct language_defn) <la_print_array_index>: Add
6869 index_type parameter, change type of index_value.
6870 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
6871 (default_print_array_index): Update.
6872 * valprint.c (maybe_print_array_index): Don't call
6873 value_from_longest. Update.
6874 (value_print_array_elements): Don't call discrete_position.
6875
0bc2354b
TT
68762020-05-26 Tom Tromey <tromey@adacore.com>
6877
6878 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
6879 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
6880
1218a4bf
CDA
68812020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
6882
6883 PR gdb/13519
6884 * avr-tdep.c (avr_integer_to_address): Return data or code
6885 address accordingly to the second 'type' argument of the
6886 function.
6887
92651b1d
MW
68882020-05-25 Michael Weghorn <m.weghorn@posteo.de>
6889
6890 * infcmd.c, inferior.h: (construct_inferior_arguments):
6891 Moved function from here to gdbsupport/common-inferior.{h,cc}
6892
0a4f5f8c
TT
68932020-05-23 Tom Tromey <tom@tromey.com>
6894
6895 Revert commit eca1f90c:
6896 * NEWS: Remove entry for completion styling.
6897 * completer.c (_rl_completion_prefix_display_length): Move
6898 declaration later.
6899 (gdb_fnprint): Revert.
6900 (gdb_display_match_list_1): Likewise.
6901 * cli/cli-style.c (completion_prefix_style)
6902 (completion_difference_style, completion_suffix_style): Remove.
6903 (_initialize_cli_style): Revert.
6904 * cli/cli-style.h (completion_prefix_style)
6905 (completion_difference_style, completion_suffix_style): Don't
6906 declare.
6907
e08bd6c5
PA
69082020-05-24 Pedro Alves <palves@redhat.com>
6909
6910 * symtab.c (completion_list_add_name): Return boolean indication
6911 of whether the symbol matched.
6912 (completion_list_add_symbol): Don't try to remove C++ aliases if
6913 the symbol didn't match in the first place.
6914 * symtab.h (completion_list_add_name): Return bool.
6915
ceacbf6e
SM
69162020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
6917
6918 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
6919 type::field.
6920
26f16254
JB
69212020-05-23 Joel Brobecker <brobecker@adacore.com>
6922
6923 GDB 9.2 released.
6924
eca1f90c
TT
69252020-05-23 Tom Tromey <tom@tromey.com>
6926
6927 * NEWS: Add entry for completion styling.
6928 * completer.c (_rl_completion_prefix_display_length): Move
6929 declaration earlier.
6930 (gdb_fnprint): Use completion_style.
6931 (gdb_display_match_list_1): Likewise.
6932 * cli/cli-style.c (completion_prefix_style)
6933 (completion_difference_style, completion_suffix_style): New
6934 globals.
6935 (_initialize_cli_style): Register new globals.
6936 * cli/cli-style.h (completion_prefix_style)
6937 (completion_difference_style, completion_suffix_style): Declare.
6938
51e2cfa2
PA
69392020-05-23 Pedro Alves <palves@redhat.com>
6940
6941 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
6942 (parse_escape): Use ISDIGIT instead of isdigit.
6943 (puts_debug): Use gdb_isprint instead of isprint.
6944 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
6945 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
6946 ISSPACE instead of isspace.
6947 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
6948 instead of isspace.
6949 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
6950 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
6951 instead of isxdigit and ISDIGIT instead of isdigit.
6952
80fc5e77
SM
69532020-05-22 Simon Marchi <simon.marchi@efficios.com>
6954
6955 * gdbtypes.h (struct type) <field>: New method.
6956 (TYPE_FIELDS): Remove, replace all uses with either type::fields
6957 or type::field.
6958
3cabb6b0
SM
69592020-05-22 Simon Marchi <simon.marchi@efficios.com>
6960
6961 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
6962 (TYPE_FIELDS): Use type::fields. Change all call sites that
6963 modify the propery to use type::set_fields instead.
6964
1f704f76
SM
69652020-05-22 Simon Marchi <simon.marchi@efficios.com>
6966
6967 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
6968 type::num_fields instead.
6969
5e33d5f4
SM
69702020-05-22 Simon Marchi <simon.marchi@efficios.com>
6971
6972 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
6973 methods.
6974 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
6975 that modify the number of fields to use type::set_num_fields
6976 instead.
6977
9392ebb3
TT
69782020-05-22 Tom Tromey <tromey@adacore.com>
6979
6980 * compile/compile-object-load.h (munmap_list_free): Don't
6981 declare.
6982
7c13f4e8
AB
69832020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
6984
6985 * annotate.c (annotate_source_line): Update return type, add call
6986 to update current symtab and line.
6987 * annotate.h (annotate_source_line): Update return type, and
6988 extend header comment.
6989 * source.c (info_line_command): Check annotation_level before
6990 calling annotate_source_line.
6991 * stack.c (print_frame_info): If calling annotate_source_line
6992 returns true, then don't print any other source line information.
6993
aa370940
SM
69942020-05-21 Simon Marchi <simon.marchi@efficios.com>
6995
6996 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
6997
84d53fa9
SM
69982020-05-21 Simon Marchi <simon.marchi@efficios.com>
6999
7000 * coffread.c (patch_type): Remove NULL check before xfree.
7001 * corefile.c (set_gnutarget): Likewise.
7002 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
7003 * exec.c (build_section_table): Likewise.
7004 * remote.c (remote_target::pass_signals): Likewise.
7005 * utils.c (n_spaces): Likewise.
7006 * cli/cli-script.c (document_command): Likewise.
7007 * i386-windows-tdep.c (core_process_module_section): Likewise.
7008 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
7009
9d428aae
SM
70102020-05-20 Simon Marchi <simon.marchi@efficios.com>
7011
7012 * symfile.c (reread_symbols): Clear objfile's section_offsets
7013 vector and section indices, re-compute them by calling
7014 sym_offsets.
7015
250106a7
TT
70162020-05-20 Tom Tromey <tromey@adacore.com>
7017
7018 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 7019 (desc_one_bound, desc_index_type): Compute field name.
250106a7 7020
9a0bacfb
TV
70212020-05-20 Tom de Vries <tdevries@suse.de>
7022
7023 PR symtab/25833
7024 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
7025
7b958a48
AM
70262020-05-20 Alan Modra <amodra@gmail.com>
7027
7028 PR 25993
7029 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
7030 bfd_set_filename.
7031 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
7032 passed to bfd_set_filename.
7033 * symfile-mem.c (add_vsyscall_page): Likewise for string
7034 passed to symbol_file_add_from_memory.
7035 (symbol_file_add_from_memory): Make name param a const char* and
7036 don't strdup.
7037
c7e97679
AM
70382020-05-20 Alan Modra <amodra@gmail.com>
7039
7040 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
7041 rather than accessing bfd->filename directly.
7042 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
7043 and use bfd_section_name.
7044 * dwarf2/frame.c (decode_frame_entry): Likewise.
7045 * exec.c (exec_set_section_address): Likewise.
7046 * solib-aix.c (solib_aix_bfd_open): Likewise.
7047 * stap-probe.c (get_stap_base_address): Likewise.
7048 * symfile.c (reread_symbols): Likewise.
7049
563c591b
TT
70502020-05-19 Tom Tromey <tromey@adacore.com>
7051
7052 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
7053
f408d82c
SM
70542020-05-19 Simon Marchi <simon.marchi@efficios.com>
7055
7056 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
7057
98c59b52
PA
70582020-05-19 Pedro Alves <palves@redhat.com>
7059
7060 * NEWS (set exec-file-mismatch): Adjust entry.
7061 * exec.c: Include "build-id.h".
7062 (validate_exec_file): Try to match build IDs instead of filenames.
7063 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
7064 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
7065 and pass down 'warn_if_slow'.
7066 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
7067 gdb_bfd_open_closure to pass it down.
7068 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
7069
4111f652
PA
70702020-05-19 Pedro Alves <palves@redhat.com>
7071
7072 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
7073 * target.c (target_fileio_open_1): Rename to target_fileio_open
7074 and make extern. Use bool.
7075 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
7076 (target_fileio_read_alloc_1): Adjust.
7077 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
7078 (target_fileio_open_warn_if_slow): Delete declaration.
7079
ad80db5b
PA
70802020-05-19 Pedro Alves <palves@redhat.com>
7081
7082 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
7083 Adjust all callers.
7084
1d6ce4d3
YS
70852020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
7086
7087 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
7088 whether disp is negative.
7089
9005fbbb
SM
70902020-05-19 Simon Marchi <simon.marchi@efficios.com>
7091
7092 * symfile.h (struct symfile_segment_data)
7093 <~symfile_segment_data>: Remove.
7094 <segment_info>: Change to std::vector.
7095 * symfile.c (default_symfile_segments): Update.
7096 * elfread.c (elf_symfile_segments): Update.
7097
68b888ff
SM
70982020-05-19 Simon Marchi <simon.marchi@efficios.com>
7099
7100 * symfile.h (struct symfile_segment_data) <struct segment>: New.
7101 <segments>: New.
7102 <segment_bases, segment_sizes>: Remove.
7103 * symfile.c (default_symfile_segments): Update.
7104 * elfread.c (elf_symfile_segments): Update.
7105 * remote.c (remote_target::get_offsets): Update.
7106 * solib-target.c (solib_target_relocate_section_addresses):
7107 Update.
7108
62982abd
SM
71092020-05-19 Simon Marchi <simon.marchi@efficios.com>
7110
7111 * symfile.h (struct symfile_segment_data): Initialize fields.
7112 <~symfile_segment_data>: Add.
7113 (symfile_segment_data_up): New.
7114 (struct sym_fns) <sym_segments>: Return a
7115 symfile_segment_data_up.
7116 (default_symfile_segments): Return a symfile_segment_data_up.
7117 (free_symfile_segment_data): Remove.
7118 (get_symfile_segment_data): Return a symfile_segment_data_up.
7119 * symfile.c (default_symfile_segments): Likewise.
7120 (get_symfile_segment_data): Likewise.
7121 (free_symfile_segment_data): Remove.
7122 (symfile_find_segment_sections): Update.
7123 * elfread.c (elf_symfile_segments): Return a
7124 symfile_segment_data_up.
7125 * remote.c (remote_target::get_offsets): Update.
7126 * solib-target.c (solib_target_relocate_section_addresses):
7127 Update.
7128 * symfile-debug.c (debug_sym_segments): Return a
7129 symfile_segment_data_up.
7130
7f204339
RO
71312020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7132
e52a0f1b
RO
7133 PR build/25981
7134 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
7135 Hardcode register numbers.
7136
7f204339
RO
7137 PR build/25981
7138 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
7139 procfs_find_LDT_entry): Remove.
7140 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
7141 procfs_find_LDT_entry): Remove.
7142 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
7143 Remove.
7144
7f32a4d5
PA
71452020-05-17 Pedro Alves <palves@redhat.com>
7146 Andrew Burgess <andrew.burgess@embecosm.com>
7147 Keno Fischer <keno@juliacomputing.com>
7148
7149 PR gdb/25741
7150 * breakpoint.c (build_target_condition_list): Update comments.
7151 (build_target_command_list): Update comments and skip matching
7152 locations.
7153 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
7154 a separate function. Simplify "set breakpoint auto-hw off"
7155 handling.
7156 (insert_breakpoints): Update comment.
7157 (tracepoint_locations_match): New parameter. For breakpoints,
7158 compare location types too, if the caller wants to.
7159 (handle_automatic_hardware_breakpoints): New functions.
7160 (bp_location_is_less_than): Also sort by location type and
7161 hardware breakpoint length.
7162 (update_global_location_list): Handle "set breakpoint auto-hw on"
7163 here.
7164 (update_breakpoint_locations): Ask breakpoint_locations_match to
7165 ignore location types.
7166
7d93a1e0
SM
71672020-05-16 Simon Marchi <simon.marchi@efficios.com>
7168
7169 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
7170 type::name instead.
7171
d0e39ea2
SM
71722020-05-16 Simon Marchi <simon.marchi@efficios.com>
7173
7174 * gdbtypes.h (struct type) <name, set_name>: New methods.
7175 (TYPE_CODE): Use type::name. Change all call sites used to set
7176 the name to use type::set_name instead.
7177
2dab0c7b
TT
71782020-05-16 Tom Tromey <tom@tromey.com>
7179
7180 * top.c (quit_force): Update.
7181 * infrun.c (handle_no_resumed): Update.
7182 * top.h (all_uis): New function.
7183 (ALL_UIS): Remove.
7184
59f7bd8d
SM
71852020-05-16 Simon Marchi <simon.marchi@efficios.com>
7186
7187 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
7188
9bf058f0
PA
71892020-05-16 Pedro Alves <palves@redhat.com>
7190
7191 * ia64-linux-nat.c
7192 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
7193 Declare method.
7194 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
7195
8f86ae1a
SM
71962020-05-15 Simon Marchi <simon.marchi@efficios.com>
7197
7198 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
7199 (sparc64_adi_info): Likewise.
7200
d6bc0792
TT
72012020-05-15 Tom Tromey <tom@tromey.com>
7202
7203 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
7204 block_objfile.
7205 (lookup_objfile_from_block): Remove.
7206 (lookup_symbol_in_block, lookup_symbol_in_static_block)
7207 (lookup_global_symbol): Use block_objfile.
7208 * symtab.h (lookup_objfile_from_block): Don't declare.
7209 * printcmd.c (clear_dangling_display_expressions): Use
7210 block_objfile.
7211 * parse.c (operator_check_standard): Use block_objfile.
7212
8c14c3a3
TT
72132020-05-15 Tom Tromey <tom@tromey.com>
7214
7215 * language.c (language_alloc_type_symbol): Set
7216 SYMBOL_SECTION.
7217 * symtab.c (initialize_objfile_symbol): Remove.
7218 (allocate_symbol): Remove.
7219 (allocate_template_symbol): Remove.
7220 * dwarf2/read.c (fixup_go_packaging): Use "new".
7221 (new_symbol): Use "new".
7222 (read_variable): Don't call initialize_objfile_symbol. Use
7223 "new".
7224 (read_func_scope): Use "new".
7225 * xcoffread.c (process_xcoff_symbol): Don't call
7226 initialize_objfile_symbol.
7227 (SYMBOL_DUP): Remove.
7228 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
7229 "new".
7230 * symtab.h (allocate_symbol, initialize_objfile_symbol)
7231 (allocate_template_symbol): Don't declare.
7232 (struct symbol): Add copy constructor. Change defaults.
7233 * jit.c (finalize_symtab): Use "new".
7234 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
7235 Use "new".
7236 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
7237 (common_block_end): Use "new".
7238 * mdebugread.c (parse_symbol): Use "new".
7239 (new_symbol): Likewise.
7240
5b4a1a8d
PW
72412020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7242
7243 * NEWS: Mention changes to help and apropos.
7244
57b4f16e
PW
72452020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7246
7247 * command.h (enum command_class): Improve comments, document
7248 that class_alias is for user-defined aliases, give the class
7249 name for each class, remove unused class_xdb.
7250 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
7251 * breakpoint.c (_initialize_breakpoint): Replace class_alias
7252 by a precise class.
7253 * infcmd.c (_initialize_infcmd): Likewise.
7254 * reverse.c (_initialize_reverse): Likewise.
7255 * stack.c (_initialize_stack): Likewise.
7256 * symfile.c (_initialize_symfile): Likewise.
7257 * tracepoint.c (_initialize_tracepoint): Likewise.
7258
7c05caf7
PW
72592020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7260
7261 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
7262 when their aliased command is traversed.
7263 (help_cmd): Add fput_command_names_styled call to
7264 output command name and aliases when command has an alias.
7265
3b3aaacb
PW
72662020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7267
7268 * cli/cli-decode.h (help_cmd_list): Remove declaration.
7269 * cli/cli-decode.c (help_cmd_list): Declare as static,
7270 remove prefix argument, use bool for recurse arg, rework to show the aliases of
7271 a command together with the command.
7272 (fput_command_name_styled, fput_command_names_styled): New functions.
7273 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
7274 fput_command_name_styled.
7275 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
7276 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
7277
7aa1b46f
PW
72782020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7279
7280 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
7281 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
7282 * command.h (cmd_show_list): Likewise.
7283 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
7284 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
7285
89bcba74
PW
72862020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7287
7288 * unittests/command-def-selftests.c (traverse_command_structure):
7289 Verify all commands of a list have the same prefix command and
7290 that only the top cmdlist commands have a null prefix.
7291
3f4d92eb
PW
72922020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7293
7294 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
7295 as prefix, not one of its aliases.
7296 (set_cmd_prefix): Remove.
7297 (do_add_cmd): Centralize the setting of the prefix of a command, when
7298 command is defined after its full chain of prefix commands.
7299 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
7300 (add_setshow_cmd_full): Likewise.
7301 (update_prefix_field_of_prefixed_commands): New function.
7302 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
7303 update_prefix_field_of_prefixed_commands.
7304 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
7305 addresses of remote_set_cmdlist and remote_show_cmdlist given
7306 as argument, not the address of an argument.
7307 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
7308 * gdb/remote.c (_initialize_remote): Likewise.
7309
0605465f
PW
73102020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7311
7312 * cli/cli-cmds.c (alias_command): Check for an existing alias
7313 using lookup_cmd_composition, as valid_command_p is too strict
7314 and forbids aliases that are the prefix of an existing alias
7315 or command.
7316 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
7317 command is properly recognised as a valid command.
7318
58e6ac70
PW
73192020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7320
7321 * unittests/help-doc-selftests.c: Rename to
7322 unittests/command-def-selftests.c
7323 * unittests/command-def-selftests.c (help_doc_tests): Update some
7324 comments.
7325 (command_structure_tests, traverse_command_structure): New namespace
7326 and function.
7327 (command_structure_invariants_tests): New function.
7328 (_initialize_command_def_selftests) Renamed from
7329 _initialize_help_doc_selftests, register command_structure_invariants
7330 selftest.
7331
a7b9ceb8
PW
73322020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7333
7334 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
7335 an alias of 'show'.
7336
b2188a06
JB
73372020-05-15 Joel Brobecker <brobecker@adacore.com>
7338
7339 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
7340 ada_is_fixed_point_type. Update all callers.
7341 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
7342 all callers.
7343 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
7344 Update all callers.
7345 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
7346 print_fixed_point_type. Update all callers.
7347 * ada-valprint.c (ada_value_print_num): Replace call to
7348 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
7349
a51951c2
KB
73502020-05-14 Kevin Buettner <kevinb@redhat.com>
7351
7352 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
7353 processors.
7354 (cpu_supports_bts): Add CV_AMD case.
7355
29d6859f
LM
73562020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
7357 Simon Marchi <simon.marchi@efficios.com>
7358
7359 * infrun.c (stop_all_threads): Collect multiple wait events at
7360 each pass.
7361
78134374
SM
73622020-05-14 Simon Marchi <simon.marchi@efficios.com>
7363
7364 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
7365 type::code instead.
7366
67607e24
SM
73672020-05-14 Simon Marchi <simon.marchi@efficios.com>
7368
7369 * gdbtypes.h (struct type) <code, set_code>: New methods.
7370 (TYPE_CODE): Use type::code. Change all call sites used to set
7371 the code to use type::set_code instead.
7372
a05575d3
TBA
73732020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7374 Tom de Vries <tdevries@suse.de>
7375 Pedro Alves <palves@redhat.com>
7376
7377 PR threads/25478
7378 * infrun.c (stop_all_threads): Do NOT ignore
7379 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
7380 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
7381 received.
7382 (handle_no_resumed): Remove code handling a live inferior with no
7383 threads.
7384 * remote.c (has_single_non_exited_thread): New.
7385 (remote_target::update_thread_list): Do not delete a thread if is
7386 the last thread of the process.
7387 * thread.c (thread_select): Call delete_exited_threads instead of
7388 prune_threads.
7389
6ad82919
TBA
73902020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7391
7392 * infrun.c (stop_all_threads): Enable/disable thread events of all
7393 targets. Move a debug message denoting the end of the function
7394 into the SCOPED_EXIT block.
7395
d890404b
TBA
73962020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7397
7398 * process-stratum-target.h: Include <set>.
7399 (all_non_exited_process_targets, switch_to_target_no_thread): New
7400 function declarations.
7401 * process-stratum-target.c (all_non_exited_process_targets)
7402 (switch_to_target_no_thread): New function implementations.
7403
293b3ebc
TBA
74042020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7405
7406 * infrun.c (handle_inferior_event): Extract out a piece of code
7407 into...
7408 (mark_non_executing_threads): ...this new function.
7409
7ca9b62a
TBA
74102020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7411
7412 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
7413 use.
7414
fc75c28b
TBA
74152020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7416
7417 * regcache.c (regcache_read_pc_protected): New function
7418 implementation that returns 0 if the PC cannot read via
7419 'regcache_read_pc'.
7420 * infrun.c (proceed): Call 'regcache_read_pc_protected'
7421 instead of 'regcache_read_pc'.
7422 (keep_going_pass_signal): Ditto.
7423
a89febbd
TT
74242020-05-13 Tom Tromey <tromey@adacore.com>
7425
7426 * ada-lang.c (align_value): Remove.
7427 (ada_template_to_fixed_record_type_1): Use align_up.
7428
f7e23710
TBA
74292020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7430
7431 * async-event.c: Update the copyright year.
7432 * async-event.h: Update the copyright year.
7433
02ff80c2
SM
74342020-05-12 Simon Marchi <simon.marchi@efficios.com>
7435
7436 * objfiles.h (is_addr_in_objfile,
7437 shared_objfile_contains_address_p): Return bool.
7438 * objfile.c (is_addr_in_objfile,
7439 shared_objfile_contains_address_p): Return bool.
7440
4fd6c7e8
TT
74412020-05-11 Tom Tromey <tromey@adacore.com>
7442
7443 * cli/cli-cmds.c (info_command): Restore.
7444 (_initialize_cli_cmds): Use add_prefix_command for "info".
7445 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
7446
5eb68a39
TT
74472020-05-11 Tom Tromey <tromey@adacore.com>
7448
7449 * ada-lang.c (ada_value_primitive_field): Now public.
7450 * ada-lang.h (ada_value_primitive_field): Declare.
7451 * ada-valprint.c (print_field_values): Use
7452 ada_value_primitive_field for wrapper fields.
7453
7666722f
TV
74542020-05-11 Tom de Vries <tdevries@suse.de>
7455
7456 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
7457 MODULE_DOMAIN.
7458
3ee6bb11
TV
74592020-05-11 Tom de Vries <tdevries@suse.de>
7460
7461 PR symtab/25941
7462 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
7463 with length 0, if not gdb-produced.
7464 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
7465
43434996
TV
74662020-05-09 Tom de Vries <tdevries@suse.de>
7467
7468 PR gdb/25955
7469 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
7470 calculation.
7471
2f78cffc
TT
74722020-05-09 Tom Tromey <tom@tromey.com>
7473
7474 * top.c (server_command): Now bool.
7475 * top.h (server_command): Now bool.
7476
4f7bc5ed
TT
74772020-05-08 Tom Tromey <tromey@adacore.com>
7478
7479 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
7480 already being processed.
7481
8be4b118
TT
74822020-05-08 Tom Tromey <tom@tromey.com>
7483
7484 * printcmd.c (struct display) <next>: Remove.
7485 <display>: New constructor.
7486 <exp_string>: Now a std::string.
7487 <enabled_p>: Now a bool.
7488 (display_number): Move definition earlier.
7489 (displays): Rename from display_chain. Now a std::vector.
7490 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
7491 (display_command): Update.
7492 (do_one_display, disable_display)
7493 (enable_disable_display_command, do_enable_disable_display):
7494 Update.
7495 (free_display): Remove.
7496 (clear_displays): Rewrite.
7497 (delete_display): Update.
7498 (map_display_numbers): Use function_view. Remove "data"
7499 parameter. Update.
7500 (do_delete_display): Remove.
7501 (undisplay_command): Update.
7502 (do_one_display, do_displays, disable_display)
7503 (info_display_command): Update.
7504 (do_enable_disable_display): Remove.
7505 (enable_disable_display_command)
7506 (clear_dangling_display_expressions): Update.
7507
94c93c35
TT
75082020-05-08 Tom Tromey <tom@tromey.com>
7509
7510 * symtab.c (set_symbol_cache_size)
7511 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
7512 (maintenance_print_symbol_cache_statistics): Update.
7513 * symmisc.c (print_symbol_bcache_statistics)
7514 (print_objfile_statistics, maintenance_print_objfiles)
7515 (maintenance_info_symtabs, maintenance_check_symtabs)
7516 (maintenance_expand_symtabs, maintenance_info_line_tables):
7517 Update.
7518 * symfile-debug.c (set_debug_symfile): Update.
7519 * source.c (forget_cached_source_info): Update.
7520 * python/python.c (gdbpy_progspaces): Update.
7521 * psymtab.c (maintenance_info_psymtabs): Update.
7522 * probe.c (parse_probes): Update.
7523 * linespec.c (iterate_over_all_matching_symtabs)
7524 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
7525 * guile/scm-progspace.c (gdbscm_progspaces): Update.
7526 * exec.c (exec_target::close): Update.
7527 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
7528 * breakpoint.c (print_one_breakpoint_location)
7529 (create_longjmp_master_breakpoint)
7530 (create_std_terminate_master_breakpoint): Update.
7531 * progspace.c (program_spaces): Now a std::vector.
7532 (maybe_new_address_space): Update.
7533 (add_program_space): Remove.
7534 (program_space::program_space): Update.
7535 (remove_program_space): Update.
7536 (number_of_program_spaces): Remove.
7537 (print_program_space, update_address_spaces): Update.
7538 * progspace.h (program_spaces): Change type.
7539 (ALL_PSPACES): Remove.
7540 (number_of_program_spaces): Don't declare.
7541 (struct program_space) <next>: Remove.
7542
a1fd1ac9
TT
75432020-05-08 Tom Tromey <tom@tromey.com>
7544
7545 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
7546 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
7547 (enable_break): Update.
7548 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
7549 (frv_fdpic_find_canonical_descriptor): Update.
7550 (frv_fetch_objfile_link_map): Update.
7551 * progspace.c (program_space::free_all_objfiles): Update.
7552 (program_space::solibs): New method.
7553 * progspace.h (struct program_space) <solibs>: New method.
7554 * solist.h (master_so_list): Don't declare.
7555 (ALL_SO_LIBS): Remove.
7556 * solib.h (so_list_head): Remove.
7557 (update_solib_list): Update comment.
7558 * solib.c (master_so_list): Remove.
7559 (solib_used, update_solib_list, solib_add)
7560 (info_sharedlibrary_command, clear_solib)
7561 (reload_shared_libraries_1, remove_user_added_objfile): Update.
7562
38eae084
TT
75632020-05-08 Tom Tromey <tom@tromey.com>
7564
7565 * extension.c (extension_languages): Now a std::array.
7566 (ALL_EXTENSION_LANGUAGES): Remove.
7567 (get_ext_lang_defn, get_ext_lang_of_file)
7568 (eval_ext_lang_from_control_command): Update.
7569 (finish_ext_lang_initialization)
7570 (auto_load_ext_lang_scripts_for_objfile)
7571 (ext_lang_type_printers::ext_lang_type_printers)
7572 (apply_ext_lang_type_printers)
7573 (ext_lang_type_printers::~ext_lang_type_printers)
7574 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
7575 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
7576 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
7577 (get_matching_xmethod_workers, ext_lang_colorize)
7578 (ext_lang_before_prompt): Update.
7579 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
7580
596dc4ad
TT
75812020-05-08 Tom Tromey <tom@tromey.com>
7582
7583 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
7584 overload.
7585 <swap_string, m_string>: Remove.
7586 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
7587 Update.
7588 * stabsread.c (define_symbol, read_type): Update.
7589 * linespec.c (find_linespec_symbols): Update.
7590 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
7591 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
7592 * dbxread.c (read_dbx_symtab): Update.
7593 * cp-support.h (cp_canonicalize_string_full)
7594 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
7595 Return unique_xmalloc_ptr.
7596 * cp-support.c (inspect_type): Update.
7597 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
7598 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
7599 Likewise.
7600 * c-typeprint.c (print_name_maybe_canonical): Update.
7601 * break-catch-throw.c (check_status_exception_catchpoint):
7602 Update.
7603
bf4cb9be
TV
76042020-05-08 Tom de Vries <tdevries@suse.de>
7605
7606 * infrun.c (follow_fork): Copy current_line and current_symtab to
7607 child thread.
7608
a1b68f28
SM
76092020-05-07 Simon Marchi <simon.marchi@efficios.com>
7610
7611 * async-event.c (struct async_signal_handler, struct
7612 async_event_handler): Reformat, remove typedef.
7613
98d48915
SM
76142020-05-07 Simon Marchi <simon.marchi@efficios.com>
7615
7616 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
7617 access thistype->main_type->dyn_prop_list directly.
7618
7aa91313
SM
76192020-05-07 Simon Marchi <simon.marchi@efficios.com>
7620
7621 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
7622 (remove_dyn_prop): Remove. Update all users to use
7623 type::remove_dyn_prop.
7624 * gdbtypes.c (remove_dyn_prop): Rename to...
7625 (type::remove_dyn_prop): ... this.
7626
5c54719c
SM
76272020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
7628
7629 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
7630 (add_dyn_prop): Remove. Update all users to use
7631 type::add_dyn_prop.
7632 * gdbtypes.c (add_dyn_prop): Rename to...
7633 (type::add_dyn_prop): ... this.
7634
24e99c6c
SM
76352020-05-07 Simon Marchi <simon.marchi@efficios.com>
7636
7637 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
7638 (get_dyn_prop): Remove. Update all users to use
7639 type::dyn_prop.
7640 * gdbtypes.c (get_dyn_prop): Rename to...
7641 (type::dyn_prop): ... this.
7642
0d4bf016
SM
76432020-05-06 Simon Marchi <simon.marchi@efficios.com>
7644
7645 * gdbtypes.h (struct main_type) <flag_static>: Remove.
7646
ac4a4f1c
SM
76472020-05-06 Simon Marchi <simon.marchi@efficios.com>
7648
7649 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
7650 instruction, skip it if it's there.
7651
a3bbacc1
SM
76522020-05-05 Simon Marchi <simon.marchi@efficios.com>
7653
7654 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
7655
c3236f84
SM
76562020-05-04 Simon Marchi <simon.marchi@efficios.com>
7657
7658 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
7659 * gdbtypes.c (recursive_dump_type): Remove use of
7660 TYPE_INCOMPLETE.
7661
3b6acaee
TT
76622020-05-03 Tom Tromey <tom@tromey.com>
7663
7664 * breakpoint.c (catch_command, tcatch_command): Remove.
7665 (_initialize_breakpoint): Use add_basic_prefix_cmd,
7666 add_show_prefix_cmd.
7667 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
7668 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
7669 Remove.
7670 (add_internal_problem_command): Use add_basic_prefix_cmd,
7671 add_show_prefix_cmd.
7672 * mips-tdep.c (set_mipsfpu_command): Remove.
7673 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
7674 * dwarf2/index-cache.c (set_index_cache_command): Remove.
7675 (_initialize_index_cache): Use add_basic_prefix_cmd.
7676 * memattr.c (dummy_cmd): Remove.
7677 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
7678 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
7679 (_initialize_tui_win): Use add_basic_prefix_cmd,
7680 add_show_prefix_cmd.
7681 * cli/cli-logging.c (set_logging_command): Remove.
7682 (_initialize_cli_logging): Use add_basic_prefix_cmd,
7683 add_show_prefix_cmd.
7684 (show_logging_command): Remove.
7685 * target.c (target_command): Remove.
7686 (add_target): Use add_basic_prefix_cmd.
7687
a51119cd
HD
76882020-05-02 Hannes Domani <ssbssa@yahoo.de>
7689
7690 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
7691
652fc23a 76922020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 7693
652fc23a
PW
7694 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
7695 info_command.
7696
117539e6
KR
76972020-04-30 Kamil Rytarowski <n54@gmx.com>
7698
7699 * nbsd-nat.c (nbsd_enable_proc_events)
7700 (nbsd_nat_target::post_startup_inferior): Add.
7701 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
7702 (nbsd_nat_target::update_thread_list): Rewrite.
7703 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
7704 "PTRACE_LWP_CREATE".
7705 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
7706
102e38eb 77072020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 7708
102e38eb
PW
7709 * stack.c (_initialize_stack): Remove duplicated creation
7710 of "frame" command and "f" alias.
7711
ee9d1e5f
HD
77122020-04-30 Hannes Domani <ssbssa@yahoo.de>
7713
7714 PR gdb/18706
7715 * gdbtypes.c (check_typedef): Calculate size of array of
7716 stubbed type.
7717
627c7fb8
HD
77182020-04-30 Hannes Domani <ssbssa@yahoo.de>
7719
7720 PR gdb/15559
7721 * i386-tdep.c (i386_push_dummy_call): Call
7722 i386_thiscall_push_dummy_call.
7723 (i386_thiscall_push_dummy_call): New function.
7724 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
7725 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
7726 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
7727
ffc2844e
SM
77282020-04-29 Simon Marchi <simon.marchi@efficios.com>
7729
7730 * gdbarch.sh (do_read): Add shellcheck disable directive for
7731 warning SC2162.
7732
1207375d
SM
77332020-04-29 Simon Marchi <simon.marchi@efficios.com>
7734
7735 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
7736 "referenced but not assigned" warning.
7737
9fdb2916
SM
77382020-04-29 Simon Marchi <simon.marchi@efficios.com>
7739
7740 * gdbarch.sh: Remove code that sets fallbackdefault.
7741
759cea5e
SM
77422020-04-29 Simon Marchi <simon.marchi@efficios.com>
7743
7744 * gdbarch.sh: Use shell operators && and || instead of
7745 -a and -o.
7746
cb02ab24
SM
77472020-04-29 Simon Marchi <simon.marchi@efficios.com>
7748
7749 * gdbarch.sh: Use $(...) instead of `...`.
7750
a6fc5ffc
SM
77512020-04-29 Simon Marchi <simon.marchi@efficios.com>
7752
7753 * gdbarch.sh: Use double quotes around variables.
7754
8d113d13
SM
77552020-04-29 Simon Marchi <simon.marchi@efficios.com>
7756
7757 * gdbarch.sh: Use %s with printf, instead of variables in the
7758 format string.
7759
ed6acedd
TT
77602020-04-29 Tom Tromey <tromey@adacore.com>
7761
7762 PR ada/25875:
7763 * dwarf2/read.c (update_enumeration_type_from_children): Compute
7764 type fields here.
7765 (read_enumeration_type): Call
7766 update_enumeration_type_from_children later. Update comments.
7767 (process_enumeration_scope): Don't create type fields.
7768
b68b1b58
KR
77692020-04-29 Kamil Rytarowski <n54@gmx.com>
7770
7771 * nbsd-tdep.c: Include "xml-syscall.h".
7772 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
7773
f94b2e03
KR
77742020-04-29 Kamil Rytarowski <n54@gmx.com>
7775
7776 * nbsd-nat.c: Include "sys/wait.h".
7777 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
7778 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
7779 (nbsd_nat_target::remove_exec_catchpoint)
7780 (nbsd_nat_target::set_syscall_catchpoint): Add.
7781 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
7782 (nbsd_nat_target::insert_exec_catchpoint)
7783 (nbsd_nat_target::remove_exec_catchpoint)
7784 (nbsd_nat_target::set_syscall_catchpoint): Add.
7785 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
7786 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
7787 `nbsd_get_syscall_number'.
7788
fc49bc72
TT
77892020-04-29 Tom Tromey <tom@tromey.com>
7790
7791 * stack.c (print_block_frame_labels): Remove.
7792
d642b692
HD
77932020-04-29 Hannes Domani <ssbssa@yahoo.de>
7794
7795 PR gdb/17320
7796 * ada-valprint.c (val_print_packed_array_elements): Move array
7797 end bracket to new line.
7798 (ada_val_print_string): Remove extra spaces before first array
7799 element.
7800 * c-valprint.c (c_value_print_array): Likewise.
7801 * m2-valprint.c (m2_print_array_contents): Likewise.
7802 (m2_value_print_inner): Likewise.
7803 * p-valprint.c (pascal_value_print_inner): Likewise.
7804 * valprint.c (generic_val_print_array): Likewise.
7805 (value_print_array_elements): Move first array element and array
7806 end bracket to new line.
7807
ea90f227
TV
78082020-04-29 Tom de Vries <tdevries@suse.de>
7809
7810 PR symtab/25889
7811 * linespec.c (find_method): Fix ix calculation.
7812
4498ef4f
KR
78132020-04-28 Kamil Rytarowski <n54@gmx.com>
7814
7815 * syscalls/update-netbsd.sh: New file.
7816 * syscalls/netbsd.xml: Regenerate.
7817 * data-directory/Makefile.in: Register `netbsd.xml' in
7818 `SYSCALLS_FILES'.
7819
a55e30b5
SM
78202020-04-28 Simon Marchi <simon.marchi@efficios.com>
7821
7822 * syscalls/update-freebsd.sh: Add double quotes.
7823
2b2fbab8
TT
78242020-04-28 Tom Tromey <tom@tromey.com>
7825
7826 * NEWS: Update.
7827 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
7828 (cmdpy_init): Allow class_tui.
7829
a65189c9
TV
78302020-04-28 Mark Williams <mark@myosotissp.com>
7831
7832 PR gdb/24480
7833 * dwarf2read.c: Add missing assingments to list_in_scope when
7834 start_symtab was already called.
7835
1b95cdb7
SM
78362020-04-28 Simon Marchi <simon.marchi@efficios.com>
7837
7838 PR gdb/25881
7839 * dwarf2/read.c (offset_map_type): Use
7840 gdb:hash_enum<sect_offset> as hash function.
7841
15cd93d0
TV
78422020-04-28 Tom de Vries <tdevries@suse.de>
7843
7844 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
7845 with DW_AT_signature.
7846
1eb39914
SM
78472020-04-27 Simon Marchi <simon.marchi@efficios.com>
7848
7849 * configure.ac: Remove check for fs_base/gs_base in
7850 user_regs_struct.
7851 * configure: Re-generate.
7852 * config.in: Re-generate.
7853 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
7854 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
7855 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
7856
991a3e2e
LM
78572020-04-27 Luis Machado <luis.machado@linaro.org>
7858
7859 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
7860 problematic inline frame unwinding situation.
7861 * frame.c (frame_id_computed_p): New function.
7862 * frame.h (frame_id_computed_p): New prototype.
7863
361ba0e8
TT
78642020-04-26 Tom Tromey <tom@tromey.com>
7865
7866 * command.h (enum command_class) <class_pseudo>: Remove.
7867
bc3609fd
PW
78682020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7869
7870 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
7871 and whitespace.
7872
b9771db7
KR
78732020-04-25 Kamil Rytarowski <n54@gmx.com>
7874
ec16513e
SM
7875 * inf-ptrace.c (inf_ptrace_target::wait): Remove
7876 `PT_GET_PROCESS_STATE' block.
b9771db7 7877
7151c1af
TT
78782020-04-24 Tom Tromey <tom@tromey.com>
7879
7880 * symtab.h (symbol_get_demangled_name): Don't declare.
7881 * symtab.c (symbol_get_demangled_name): Remove.
7882 (general_symbol_info::natural_name)
7883 (general_symbol_info::demangled_name): Update.
7884
906bb4c5
TT
78852020-04-24 Tom Tromey <tom@tromey.com>
7886
7887 PR rust/25025:
7888 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
7889
bcfe6157
TT
78902020-04-24 Tom Tromey <tom@tromey.com>
7891
7892 PR symtab/12707:
7893 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
7894 exists.
7895 (new_symbol): Likewise.
7896 * compile/compile-object-load.c (get_out_value_type): Use
7897 symbol_matches_search_name.
7898
f049a313
TT
78992020-04-24 Tom Tromey <tom@tromey.com>
7900
7901 * dwarf2/read.c (add_partial_symbol): Do not call
7902 compute_and_set_names.
7903
76e288d1
TT
79042020-04-24 Tom Tromey <tom@tromey.com>
7905
7906 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
7907 overload.
7908
2467f4f6
TT
79092020-04-24 Tom Tromey <tom@tromey.com>
7910
7911 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
7912 (add_psymbol_to_list): New overload. Make old overload call new
7913 one.
7914 * psympriv.h (add_psymbol_to_list): New overload.
7915
e61108c9
TT
79162020-04-24 Tom Tromey <tom@tromey.com>
7917
7918 * dwarf2/read.c (partial_die_info::read) <case
7919 DW_AT_linkage_name>: Use value_as_string.
7920 (dwarf2_string_attr): Use value_as_string.
7921 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
7922 method.
7923 * dwarf2/attribute.c (attribute::value_as_string): New method.
7924
8c87a452
TT
79252020-04-24 Tom Tromey <tom@tromey.com>
7926
7927 * symtab.c (general_symbol_info::natural_name)
7928 (general_symbol_info::demangled_name): Check for language_rust.
7929
787de330
TT
79302020-04-24 Tom Tromey <tom@tromey.com>
7931
7932 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
7933 (dwarf2_physname): ... from here.
7934 (partial_die_info::read): Add Rust "{" hack.
7935
ff985671
TT
79362020-04-24 Tom Tromey <tom@tromey.com>
7937
7938 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
7939 method.
7940 (symbol_set_demangled_name): Don't declare.
7941 * symtab.c (general_symbol_info::set_demangled_name): Rename from
7942 symbol_set_demangled_name.
7943 (general_symbol_info::set_language)
7944 (general_symbol_info::compute_and_set_names): Update.
7945 * minsyms.c (minimal_symbol_reader::install): Update.
7946 * dwarf2/read.c (new_symbol): Update.
7947
1acda803
TT
79482020-04-24 Tom Tromey <tromey@adacore.com>
7949
7950 PR python/23662:
7951 * python/py-type.c (convert_field): Handle
7952 FIELD_LOC_KIND_DWARF_BLOCK.
7953 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
7954 (typy_get_dynamic): Nw function.
7955 (type_object_getset): Add "dynamic".
7956 * NEWS: Add entry.
7957
d656f129
TT
79582020-04-24 Tom Tromey <tromey@adacore.com>
7959
7960 * ada-typeprint.c (print_choices, print_variant_part)
7961 (print_record_field_types_dynamic): New functions.
7962 (print_record_field_types): Use print_record_field_types_dynamic.
7963
7d79de9a
TT
79642020-04-24 Tom Tromey <tromey@adacore.com>
7965
7966 * dwarf2/read.c (handle_data_member_location): New overload.
7967 (dwarf2_add_field): Use it.
7968 (decode_locdesc): Add "computed" parameter. Update comment.
7969 * gdbtypes.c (is_dynamic_type_internal): Also look for
7970 FIELD_LOC_KIND_DWARF_BLOCK.
7971 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
7972 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
7973 virtual base classes.
7974 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
7975 FIELD_LOC_KIND_DWARF_BLOCK.
7976
f8e89861
TT
79772020-04-24 Tom Tromey <tromey@adacore.com>
7978
7979 * dwarf2/read.c (read_structure_type): Handle dynamic length.
7980 * gdbtypes.c (is_dynamic_type_internal): Check
7981 TYPE_HAS_DYNAMIC_LENGTH.
7982 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
7983 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
7984 New macros.
7985 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
7986 constant.
7987
9c6a1327
TT
79882020-04-24 Tom Tromey <tromey@adacore.com>
7989
7990 * dwarf2/read.c (struct variant_field): Rewrite.
7991 (struct variant_part_builder): New.
7992 (struct nextfield): Remove "variant" field. Add "offset".
7993 (struct field_info): Add "current_variant_part" and
7994 "variant_parts".
7995 (alloc_discriminant_info): Remove.
7996 (alloc_rust_variant): New function.
7997 (quirk_rust_enum): Update.
7998 (dwarf2_add_field): Set "offset" member. Don't handle
7999 DW_TAG_variant_part.
8000 (offset_map_type): New typedef.
8001 (convert_variant_range, create_one_variant)
8002 (create_one_variant_part, create_variant_parts)
8003 (add_variant_property): New functions.
8004 (dwarf2_attach_fields_to_type): Call add_variant_property.
8005 (read_structure_type): Don't handle DW_TAG_variant_part.
8006 (handle_variant_part, handle_variant): New functions.
8007 (handle_struct_member_die): Use them.
8008 (process_structure_scope): Don't handle variant parts.
8009 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
8010 (struct discriminant_info): Remove.
8011 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
8012 (struct main_type) <flag_discriminated_union>: Remove.
8013 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
8014 (rust_enum_variant): Return int. Remove "contents". Rewrite.
8015 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
8016 Update.
8017 * valops.c (value_union_variant): Remove.
8018 * value.h (value_union_variant): Don't declare.
8019
b249d2c2
TT
80202020-04-24 Tom Tromey <tromey@adacore.com>
8021
8022 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
8023 (ada_value_primitive_packed_val): Update.
8024 * ada-valprint.c (ada_value_print_1): Update.
8025 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
8026 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
8027 just an address. Use evaluate_for_locexpr_baton.
8028 (dwarf2_evaluate_property): Update.
8029 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
8030 array_view.
8031 * findvar.c (default_read_var_value): Update.
8032 * gdbtypes.c (compute_variant_fields_inner)
8033 (resolve_dynamic_type_internal): Update.
8034 (resolve_dynamic_type): Change type of valaddr parameter.
8035 * gdbtypes.h (resolve_dynamic_type): Update.
8036 * valarith.c (value_subscripted_rvalue): Update.
8037 * value.c (value_from_contents_and_address): Update.
8038
61122aa9
TT
80392020-04-24 Tom Tromey <tromey@adacore.com>
8040
8041 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
8042 "push_initial_value" parameter.
8043 (dwarf2_evaluate_property): Likewise.
8044 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
8045
ef83a141
TT
80462020-04-24 Tom Tromey <tromey@adacore.com>
8047
8048 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
8049 (variant::matches, compute_variant_fields_recurse)
8050 (compute_variant_fields_inner, compute_variant_fields): New
8051 functions.
8052 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
8053 Use resolved_type after type is made.
8054 (operator==): Add new cases.
8055 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
8056 (struct discriminant_range, struct variant, struct variant_part):
8057 New.
8058 (union dynamic_prop_data) <variant_parts, original_type>: New
8059 members.
8060 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
8061 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
8062 constants.
8063 * value.c (unpack_bits_as_long): Now public.
8064 * value.h (unpack_bits_as_long): Declare.
8065
675127ec
TT
80662020-04-24 Tom Tromey <tromey@adacore.com>
8067
8068 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
8069 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
8070
9852ceef
HD
80712020-04-24 Hannes Domani <ssbssa@yahoo.de>
8072
8073 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
8074
7632c6ce
KR
80752020-04-24 Kamil Rytarowski <n54@gmx.com>
8076
8077 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
8078 (remove_fork_catchpoint, post_startup_inferior)
8079 (post_attach): Move...
8080 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
8081 (remove_fork_catchpoint, post_startup_inferior)
8082 (post_attach): ...here.
8083 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
8084 (remove_fork_catchpoint, post_startup_inferior)
8085 (post_attach): Move...
8086 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
8087 (remove_fork_catchpoint, post_startup_inferior)
8088 (post_attach): ...here.
8089
7be2bb4f
TT
80902020-04-24 Tom Tromey <tromey@adacore.com>
8091
8092 * nat/windows-nat.h (struct windows_thread_info)
8093 <pc_adjusted>: New member.
8094 * windows-nat.c (windows_fetch_one_register): Check
8095 pc_adjusted.
8096 (windows_nat_target::get_windows_debug_event)
8097 (windows_nat_target::wait): Set pc_adjusted.
8098
f80cb3b4
TV
80992020-04-24 Tom de Vries <tdevries@suse.de>
8100
8101 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
8102 Run gdb-add-index inside temp dir.
8103
29514b87
TT
81042020-04-23 Tom Tromey <tromey@adacore.com>
8105
8106 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
8107 in loop.
8108
5939967b
LM
81092020-04-23 Luis Machado <luis.machado@linaro.org>
8110
8111 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
8112 get_frame_register instead of gdbarch_unwind_pc.
8113
70bc38f5
TV
81142020-04-23 Tom de Vries <tdevries@suse.de>
8115
8116 * symtab.c (lookup_global_symbol): Prefer def over decl.
8117
de82891c
TV
81182020-04-23 Tom de Vries <tdevries@suse.de>
8119
8120 PR symtab/25807
8121 * block.c (best_symbol, better_symbol): Promote to external.
8122 * block.h (best_symbol, better_symbol): Declare.
8123 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
8124 decl.
8125
ecc6c606
TT
81262020-04-23 Tom Tromey <tromey@adacore.com>
8127
8128 PR ada/25837:
8129 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
8130 "const char *", not a "const std::string &".
8131 <name_and_matcher::operator==>: Update.
8132 * unittests/lookup_name_info-selftests.c: Change type of
8133 "result".
8134
740480b8
TT
81352020-04-23 Tom Tromey <tom@tromey.com>
8136
8137 * inferior.h (iterate_over_inferiors): Don't declare.
8138 * inferior.c (iterate_over_inferiors): Remove.
8139 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
8140 Remove.
8141 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
8142 use iterate_over_inferiors.
8143 (darwin_resume_inferior_it)
8144 (struct resume_inferior_threads_param)
8145 (darwin_resume_inferior_threads_it): Remove.
8146 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
8147
ae3ab1f0
TV
81482020-04-23 Tom de Vries <tdevries@suse.de>
8149
8150 * blockframe.c (find_pc_partial_function): Use
8151 find_pc_sect_compunit_symtab rather than
8152 objfile->sf->qf->find_pc_sect_compunit_symtab.
8153
317d2668
TV
81542020-04-22 Tom de Vries <tdevries@suse.de>
8155
8156 PR symtab/25764
8157 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
8158 in psymtabs.
8159
eea9e357
TV
81602020-04-22 Tom de Vries <tdevries@suse.de>
8161
8162 PR symtab/25801
8163 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
8164 symtabs.
8165
3d5afab3
TV
81662020-04-22 Tom de Vries <tdevries@suse.de>
8167
8168 PR symtab/25700
8169 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
8170 CU if already created.
8171
d43b7a2d
TBA
81722020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8173
8174 * infrun.c (displaced_step_fixup): Switch to the event_thread
8175 before calling displaced_step_restore, not after.
8176
d89edf9b
MM
81772020-04-21 Markus Metzger <markus.t.metzger@intel.com>
8178
8179 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
8180 its inferior is not recorded by us.
8181 (record_btrace_target_open): Replace call to
8182 all_non_exited_threads () with call to current_inferior
8183 ()->non_exited_threads ().
8184 (record_btrace_target::stop_recording): Likewise.
8185 (record_btrace_target::close): Likewise.
8186 (record_btrace_target::wait): Likewise.
8187 (record_btrace_target::record_stop_replaying): Likewise.
8188
5897fd49
MM
81892020-04-21 Markus Metzger <markus.t.metzger@intel.com>
8190
8191 * btrace.c (btrace_enable): Throw an error on double enables and
8192 when enabling recording fails.
8193 (btrace_disable): Throw an error if the thread is not recorded.
8194
1a476b6d
MM
81952020-04-21 Markus Metzger <markus.t.metzger@intel.com>
8196
8197 * record-btrace.c (record_btrace_target::fetch_registers): Forward
8198 request if we do not have a thread_info.
8199
4778a5f8
TV
82002020-04-21 Tom de Vries <tdevries@suse.de>
8201
8202 PR gdb/25471
8203 * thread.c
8204 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
8205 exception in get_frame_id.
8206
0fa7617d
TT
82072020-04-20 Tom Tromey <tromey@adacore.com>
8208
8209 * python/python.c (struct gdbpy_event): Mark move constructor as
8210 noexcept.
8211 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
8212 constructor as noexcept.
8213 * completer.h (struct completion_result): Mark move constructor as
8214 noexcept.
8215 * completer.c (completion_result::completion_result): Use
8216 initialization style. Don't call reset_match_list.
8217
ad23bda0
MS
82182020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
8219
8220 * MAINTAINERS (Write After Approval): Add myself.
8221
45e1f031
TT
82222020-04-18 Tom Tromey <tom@tromey.com>
8223
8224 * windows-tdep.c (init_w32_command_list)
8225 (w32_prefix_command_valid): Restore.
8226 (_initialize_windows_tdep): Call init_w32_command_list.
8227
08feed99
TT
82282020-04-18 Tom Tromey <tom@tromey.com>
8229
8230 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
8231 * value.c (value_fn_field): Update.
8232 * valops.c (find_function_in_inferior)
8233 (value_allocate_space_in_inferior): Update.
8234 * tui/tui-winsource.c (tui_update_source_windows_with_line):
8235 Update.
8236 * tui/tui-source.c (tui_source_window::set_contents): Update.
8237 * symtab.c (lookup_global_or_static_symbol)
8238 (find_function_start_sal_1, skip_prologue_sal)
8239 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
8240 * symmisc.c (dump_msymbols, dump_symtab_1)
8241 (maintenance_print_one_line_table): Update.
8242 * symfile.c (init_entry_point_info, section_is_mapped)
8243 (list_overlays_command, simple_read_overlay_table)
8244 (simple_overlay_update_1): Update.
8245 * stap-probe.c (handle_stap_probe): Update.
8246 * stabsread.c (dbx_init_float_type, define_symbol)
8247 (read_one_struct_field, read_enum_type, read_range_type): Update.
8248 * source.c (info_line_command): Update.
8249 * python/python.c (gdbpy_source_objfile_script)
8250 (gdbpy_execute_objfile_script): Update.
8251 * python/py-type.c (save_objfile_types): Update.
8252 * python/py-objfile.c (py_free_objfile): Update.
8253 * python/py-inferior.c (python_new_objfile): Update.
8254 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
8255 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
8256 (maintenance_check_psymtabs): Update.
8257 * printcmd.c (info_address_command): Update.
8258 * objfiles.h (struct objfile) <arch>: New method, from
8259 get_objfile_arch.
8260 (get_objfile_arch): Don't declare.
8261 * objfiles.c (get_objfile_arch): Remove.
8262 (filter_overlapping_sections): Update.
8263 * minsyms.c (msymbol_is_function): Update.
8264 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
8265 (output_nondebug_symbol): Update.
8266 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
8267 (mdebug_expand_psymtab): Update.
8268 * machoread.c (macho_add_oso_symfile): Update.
8269 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
8270 Update.
8271 * linux-fork.c (checkpoint_command): Update.
8272 * linespec.c (convert_linespec_to_sals): Update.
8273 * jit.c (finalize_symtab): Update.
8274 * infrun.c (insert_exception_resume_from_probe): Update.
8275 * ia64-tdep.c (ia64_find_unwind_table): Update.
8276 * hppa-tdep.c (internalize_unwinds): Update.
8277 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
8278 Update.
8279 * gcore.c (call_target_sbrk): Update.
8280 * elfread.c (record_minimal_symbol, elf_symtab_read)
8281 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
8282 (elf_gnu_ifunc_resolve_by_got): Update.
8283 * dwarf2/read.c (create_addrmap_from_index)
8284 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
8285 (read_debug_names_from_section)
8286 (process_psymtab_comp_unit_reader, add_partial_symbol)
8287 (add_partial_subprogram, process_full_comp_unit)
8288 (read_file_scope, read_func_scope, read_lexical_block_scope)
8289 (read_call_site_scope, dwarf2_ranges_read)
8290 (dwarf2_record_block_ranges, dwarf2_add_field)
8291 (mark_common_block_symbol_computed, read_tag_pointer_type)
8292 (read_tag_string_type, dwarf2_init_float_type)
8293 (dwarf2_init_complex_target_type, read_base_type)
8294 (partial_die_info::read, partial_die_info::read)
8295 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
8296 (dwarf2_fetch_die_loc_sect_off): Update.
8297 * dwarf2/loc.c (dwarf2_find_location_expression)
8298 (class dwarf_evaluate_loc_desc, rw_pieced_value)
8299 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
8300 (dwarf2_loc_desc_get_symbol_read_needs)
8301 (locexpr_describe_location_piece, locexpr_describe_location_1)
8302 (loclist_describe_location): Update.
8303 * dwarf2/index-write.c (write_debug_names): Update.
8304 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
8305 * dtrace-probe.c (dtrace_process_dof): Update.
8306 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
8307 (process_one_symbol): Update.
8308 * ctfread.c (ctf_init_float_type, read_base_type): Update.
8309 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
8310 (coff_read_enum_type): Update.
8311 * cli/cli-cmds.c (edit_command, list_command): Update.
8312 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
8313 * breakpoint.c (create_overlay_event_breakpoint)
8314 (create_longjmp_master_breakpoint)
8315 (create_std_terminate_master_breakpoint)
8316 (create_exception_master_breakpoint, get_sal_arch): Update.
8317 * block.c (block_gdbarch): Update.
8318 * annotate.c (annotate_source_line): Update.
8319
0743fc83
TT
83202020-04-17 Tom Tromey <tromey@adacore.com>
8321
8322 * auto-load.c (show_auto_load_cmd): Remove.
8323 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
8324 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
8325 (maintenance_print_arc_command): Remove.
8326 * tui/tui-win.c (tui_command): Remove.
8327 (tui_get_cmd_list): Use add_basic_prefix_cmd.
8328 * tui/tui-layout.c (tui_layout_command): Remove.
8329 (_initialize_tui_layout): Use add_basic_prefix_cmd.
8330 * python/python.c (user_set_python, user_show_python): Remove.
8331 (_initialize_python): Use add_basic_prefix_cmd,
8332 add_show_prefix_cmd.
8333 * guile/guile.c (set_guile_command, show_guile_command): Remove.
8334 (install_gdb_commands): Use add_basic_prefix_cmd,
8335 add_show_prefix_cmd.
8336 (info_guile_command): Remove.
8337 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
8338 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
8339 add_show_prefix_cmd.
8340 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
8341 Remove do_set and do_show parameters.
8342 * cli/cli-style.c (set_style, show_style): Remove.
8343 (_initialize_cli_style): Use add_basic_prefix_cmd,
8344 add_show_prefix_cmd.
8345 (cli_style_option::add_setshow_commands): Remove do_set and
8346 do_show parameters.
8347 (cli_style_option::add_setshow_commands): Use
8348 add_basic_prefix_cmd, add_show_prefix_cmd.
8349 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
8350 (set_style_name): Remove.
8351 * cli/cli-dump.c (dump_command, append_command): Remove.
8352 (srec_dump_command, ihex_dump_command, verilog_dump_command)
8353 (tekhex_dump_command, binary_dump_command)
8354 (binary_append_command): Remove.
8355 (_initialize_cli_dump): Use add_basic_prefix_cmd.
8356 * windows-tdep.c (w32_prefix_command_valid): Remove global.
8357 (init_w32_command_list): Remove; move into ...
8358 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
8359 * valprint.c (set_print, show_print, set_print_raw)
8360 (show_print_raw): Remove.
8361 (_initialize_valprint): Use add_basic_prefix_cmd,
8362 add_show_prefix_cmd.
8363 * typeprint.c (set_print_type, show_print_type): Remove.
8364 (_initialize_typeprint): Use add_basic_prefix_cmd,
8365 add_show_prefix_cmd.
8366 * record.c (set_record_command, show_record_command): Remove.
8367 (_initialize_record): Use add_basic_prefix_cmd,
8368 add_show_prefix_cmd.
8369 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
8370 add_show_prefix_cmd.
8371 (info_command, show_command, set_debug, show_debug): Remove.
8372 * top.h (set_history, show_history): Don't declare.
8373 * top.c (set_history, show_history): Remove.
8374 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
8375 (unset_tdesc_cmd): Remove.
8376 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
8377 add_show_prefix_cmd.
8378 * symtab.c (info_module_command): Remove.
8379 (_initialize_symtab): Use add_basic_prefix_cmd.
8380 * symfile.c (overlay_command): Remove.
8381 (_initialize_symfile): Use add_basic_prefix_cmd.
8382 * sparc64-tdep.c (info_adi_command): Remove.
8383 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
8384 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
8385 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
8386 add_show_prefix_cmd.
8387 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
8388 (_initialize_serial): Use add_basic_prefix_cmd,
8389 add_show_prefix_cmd.
8390 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
8391 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
8392 add_show_prefix_cmd.
8393 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
8394 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
8395 add_show_prefix_cmd.
8396 * riscv-tdep.c (show_riscv_command, set_riscv_command)
8397 (show_debug_riscv_command, set_debug_riscv_command): Remove.
8398 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
8399 add_show_prefix_cmd.
8400 * remote.c (remote_command, set_remote_cmd): Remove.
8401 (_initialize_remote): Use add_basic_prefix_cmd.
8402 * record-full.c (set_record_full_command)
8403 (show_record_full_command): Remove.
8404 (_initialize_record_full): Use add_basic_prefix_cmd,
8405 add_show_prefix_cmd.
8406 * record-btrace.c (cmd_set_record_btrace)
8407 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
8408 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
8409 (cmd_show_record_btrace_pt): Remove.
8410 (_initialize_record_btrace): Use add_basic_prefix_cmd,
8411 add_show_prefix_cmd.
8412 * ravenscar-thread.c (set_ravenscar_command)
8413 (show_ravenscar_command): Remove.
8414 (_initialize_ravenscar): Use add_basic_prefix_cmd,
8415 add_show_prefix_cmd.
8416 * mips-tdep.c (show_mips_command, set_mips_command)
8417 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
8418 add_show_prefix_cmd.
8419 * maint.c (maintenance_command, maintenance_info_command)
8420 (maintenance_check_command, maintenance_print_command)
8421 (maintenance_set_cmd, maintenance_show_cmd): Remove.
8422 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
8423 add_show_prefix_cmd.
8424 (show_per_command_cmd): Remove.
8425 * maint-test-settings.c (maintenance_set_test_settings_cmd):
8426 Remove.
8427 (maintenance_show_test_settings_cmd): Remove.
8428 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
8429 add_show_prefix_cmd.
8430 * maint-test-options.c (maintenance_test_options_command):
8431 Remove.
8432 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
8433 * macrocmd.c (macro_command): Remove
8434 (_initialize_macrocmd): Use add_basic_prefix_cmd.
8435 * language.c (set_check, show_check): Remove.
8436 (_initialize_language): Use add_basic_prefix_cmd,
8437 add_show_prefix_cmd.
8438 * infcmd.c (unset_command): Remove.
8439 (_initialize_infcmd): Use add_basic_prefix_cmd.
8440 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
8441 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
8442 add_show_prefix_cmd.
8443 * go32-nat.c (go32_info_dos_command): Remove.
8444 (_initialize_go32_nat): Use add_basic_prefix_cmd.
8445 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
8446 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
8447 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
8448 (_initialize_frame): Use add_basic_prefix_cmd,
8449 add_show_prefix_cmd.
8450 * dcache.c (set_dcache_command, show_dcache_command): Remove.
8451 (_initialize_dcache): Use add_basic_prefix_cmd,
8452 add_show_prefix_cmd.
8453 * cp-support.c (maint_cplus_command): Remove.
8454 (_initialize_cp_support): Use add_basic_prefix_cmd.
8455 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
8456 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
8457 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
8458 add_basic_prefix_cmd, add_show_prefix_cmd.
8459 * breakpoint.c (save_command): Remove.
8460 (_initialize_breakpoint): Use add_basic_prefix_cmd.
8461 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
8462 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
8463 add_show_prefix_cmd.
8464 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
8465 (set_ada_command, show_ada_command): Remove.
8466 (_initialize_ada_language): Use add_basic_prefix_cmd,
8467 add_show_prefix_cmd.
8468 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
8469
3557f442
KR
84702020-04-16 Kamil Rytarowski <n54@gmx.com>
8471
8472 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
8473 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
8474
16197208
SM
84752020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
8476
8477 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
8478 warning messages.
8479
00ac85d3
SM
84802020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
8481
8482 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
8483 import table is not at beginning of .idata section.
8484
381ce63f
PA
84852020-04-16 Pedro Alves <palves@redhat.com>
8486
8487 * inferior.c (delete_inferior): Use delete operator directly
8488 instead of delete_program_space.
8489 * progspace.c (add_program_space): New, factored out from
8490 program_space::program_space.
8491 (remove_program_space): New, factored out from
8492 delete_program_space.
8493 (program_space::program_space): Remove intro comment. Rewrite.
8494 (program_space::~program_space): Remove intro comment. Call
8495 remove_program_space.
8496 (delete_program_space): Delete.
8497 * progspace.h (program_space::program_space): Make explicit. Move
8498 intro comment here, adjusted.
8499 (program_space::~program_space): Move intro comment here,
8500 adjusted.
8501 (delete_program_space): Remove.
8502
a010605f
TT
85032020-04-16 Tom Tromey <tromey@adacore.com>
8504
8505 * windows-nat.c (windows_nat::handle_access_violation): New
8506 function.
8507 * nat/windows-nat.h (handle_access_violation): Declare.
8508 * nat/windows-nat.c (handle_exception): Move Cygwin code to
8509 windows-nat.c. Call handle_access_violation.
8510
efba5c23
TV
85112020-04-16 Tom de Vries <tdevries@suse.de>
8512
8513 PR symtab/25791
8514 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
8515 CUs without psymtab.
8516
97ed802d
KB
85172020-04-16 Kevin Buettner <kevinb@redhat.com>
8518
8519 * python/python.c (do_start_initialization): Don't call
8520 PyEval_InitThreads for Python 3.9 and beyond.
8521
c7d64809
KR
85222020-04-15 Kamil Rytarowski <n54@gmx.com>
8523
8524 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
8525 thread functions.
8526 (obsd_nat_target::wait): Likewise.
8527
ce127a96
TT
85282020-04-15 Tom Tromey <tromey@adacore.com>
8529
8530 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
8531 (DEBUG_EXCEPT): Use debug_printf.
8532
99f1bc6a
AB
85332020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
8534
8535 * completer.c (class completion_tracker::completion_hash_entry)
8536 <hash_name>: New member function.
8537 (completion_tracker::discard_completions): New callback to hash a
8538 completion_hash_entry, pass this to htab_create_alloc.
8539
a0e9b532
JT
85402016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
8541
8542 * windows-nat.c (windows_make_so): Warn rather than stopping with
8543 an error if realpath() fails.
8544
06ca5dd4
KR
85452020-04-14 Kamil Rytarowski <n54@gmx.com>
8546
8547 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
8548 (nbsd_nat_target::info_proc): Add do_status.
8549
194d088f
TV
85502020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
8551 Tom de Vries <tdevries@suse.de>
8552
8553 PR symtab/25718
8554 * psympriv.h (struct partial_symtab::read_symtab)
8555 (struct partial_symtab::expand_psymtab)
8556 (struct partial_symtab::read_dependencies): Update comments.
8557 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
8558 read_symtab for includer.
8559 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
8560 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
8561 (struct dwarf2_include_psymtab::m_readin): Remove.
8562 (struct dwarf2_include_psymtab::includer): New member function.
8563 (dwarf2_psymtab::expand_psymtab): Assert !readin.
8564
c1a66c06
TV
85652020-04-14 Tom de Vries <tdevries@suse.de>
8566
8567 PR symtab/25720
8568 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
8569 with NULL symbol_matcher and lookup_name.
8570 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
8571 and lookup_name.
8572 * dwarf2/read.c (dw2_expand_symtabs_matching)
8573 (dw2_debug_names_expand_symtabs_matching): Same.
8574 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
8575 Make lookup_name a pointer. Update comment.
8576 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
8577 lookup_name being a pointer.
8578 * symfile.c (expand_symtabs_matching): Same.
8579 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
8580 * linespec.c (iterate_over_all_matching_symtabs): Same.
8581
400b5eca
TT
85822020-04-13 Tom Tromey <tom@tromey.com>
8583
8584 * run-on-main-thread.c: Update include.
8585 * unittests/main-thread-selftests.c: Update include.
8586 * tui/tui-win.c: Update include.
8587 * tui/tui-io.c: Update include.
8588 * tui/tui-interp.c: Update include.
8589 * tui/tui-hooks.c: Update include.
8590 * top.h: Update include.
8591 * top.c: Update include.
8592 * ser-base.c: Update include.
8593 * remote.c: Update include.
8594 * remote-notif.c: Update include.
8595 * remote-fileio.c: Update include.
8596 * record-full.c: Update include.
8597 * record-btrace.c: Update include.
8598 * python/python.c: Update include.
8599 * posix-hdep.c: Update include.
8600 * mingw-hdep.c: Update include.
8601 * mi/mi-main.c: Update include.
8602 * mi/mi-interp.c: Update include.
8603 * main.c: Update include.
8604 * linux-nat.c: Update include.
8605 * interps.c: Update include.
8606 * infrun.c: Update include.
8607 * inf-loop.c: Update include.
8608 * event-top.c: Update include.
8609 * event-loop.c: Move to ../gdbsupport/.
8610 * event-loop.h: Move to ../gdbsupport/.
8611 * async-event.h: Update include.
8612 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
8613
93b54c8e
TT
86142020-04-13 Tom Tromey <tom@tromey.com>
8615
8616 * tui/tui-win.c: Include async-event.h.
8617 * remote.c: Include async-event.h.
8618 * remote-notif.c: Include async-event.h.
8619 * record-full.c: Include async-event.h.
8620 * record-btrace.c: Include async-event.h.
8621 * infrun.c: Include async-event.h.
8622 * event-top.c: Include async-event.h.
8623 * event-loop.h: Move some declarations to async-event.h.
8624 * event-loop.c: Don't include ser-event.h or top.h. Move some
8625 code to async-event.c.
8626 * async-event.h: New file.
8627 * async-event.c: New file.
8628 * Makefile.in (COMMON_SFILES): Add async-event.c.
8629 (HFILES_NO_SRCDIR): Add async-event.h.
8630
c1cd3163
TT
86312020-04-13 Tom Tromey <tom@tromey.com>
8632
8633 * utils.c (flush_streams): New function.
8634 * event-loop.c (gdb_wait_for_event): Call flush_streams.
8635
29f2bf4f
TT
86362020-04-13 Tom Tromey <tom@tromey.com>
8637
8638 * event-loop.c (handle_file_event): Use warning, not
8639 printf_unfiltered.
8640
98029d02
TT
86412020-04-13 Tom Tromey <tom@tromey.com>
8642
8643 * event-loop.c: Include <chrono>.
8644
06cc9596
TT
86452020-04-13 Tom Tromey <tom@tromey.com>
8646
8647 * gdb_select.h: Move to ../gdbsupport/.
8648 * event-loop.c: Update include path.
8649 * top.c: Update include path.
8650 * ser-base.c: Update include path.
8651 * ui-file.c: Update include path.
8652 * ser-tcp.c: Update include path.
8653 * guile/scm-ports.c: Update include path.
8654 * posix-hdep.c: Update include path.
8655 * ser-unix.c: Update include path.
8656 * gdb_usleep.c: Update include path.
8657 * mingw-hdep.c: Update include path.
8658 * inflow.c: Update include path.
8659 * infrun.c: Update include path.
8660 * event-top.c: Update include path.
8661
8ae8e197
TT
86622020-04-13 Tom Tromey <tom@tromey.com>
8663
8664 * configure: Rebuild.
8665 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
8666
58cf28e8
TT
86672020-04-13 Tom Tromey <tom@tromey.com>
8668
8669 * event-loop.h (start_event_loop): Don't declare.
8670 * event-loop.c (start_event_loop): Move...
8671 * main.c (start_event_loop): ...here. Now static.
8672
b7f999ae
SDJ
86732020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
8674
8675 * MAINTAINERS: Update my email address.
8676
1085dfd4
KR
86772020-04-12 Kamil Rytarowski <n54@gmx.com>
8678
8679 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
8680 IP_ALL.
8681
49d1d1f5
KR
86822020-04-12 Kamil Rytarowski <n54@gmx.com>
8683
8684 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 8685 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 8686
b4848d2a
KR
86872020-04-12 Kamil Rytarowski <n54@gmx.com>
8688
8689 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 8690 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 8691
51c133d5
KR
86922020-04-12 Kamil Rytarowski <n54@gmx.com>
8693
8694 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
8695
54b8cbd0
KR
86962020-04-11 Kamil Rytarowski <n54@gmx.com>
8697
8698 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
8699 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
8700 (nbsd_nat_target::info_proc): New functions.
8701 * nbsd-nat.c (kinfo_get_vmmap): New function.
8702 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
8703 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
8704 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
8705 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
8706 functions.
8707 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
8708 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
8709 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
8710 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
8711 (KINFO_VME_FLAG_GROWS_DOWN): New.
8712
cf83625d
AS
87132020-04-10 Artur Shepilko <nomadbyte@gmail.com>
8714
8715 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
8716 bit shift.
8717
0c4311ab
TT
87182020-04-10 Tom Tromey <tromey@adacore.com>
8719
8720 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
8721
3e65b3e9
TT
87222020-04-10 Tom Tromey <tromey@adacore.com>
8723
8724 * symtab.c (get_symbol_address, get_msymbol_address): Skip
8725 separate debug files.
8726
13302e95
HD
87272020-04-10 Hannes Domani <ssbssa@yahoo.de>
8728
8729 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
8730 Move to...
8731 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
8732 ... here.
8733 * windows-nat.c (windows_nat_target::get_windows_debug_event):
8734 Check for STATUS_WX86_BREAKPOINT.
8735 (windows_nat_target::wait): Same.
8736
bdfc1e8a
TV
87372020-04-10 Tom de Vries <tdevries@suse.de>
8738
8739 PR cli/25808
8740 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
8741
f4460aec
SM
87422020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
8743
8744 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
8745 (Write After Approval): Remove Tom de Vries.
8746
a25198bb
BE
87472020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
8748
8749 revert partially:
8750 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8751
aac66a4c
SM
8752 * buildsym.c (record_line): Fix undefined behavior and preserve
8753 lines at eof.
a25198bb 8754
206c98a6
KR
87552020-04-09 Kamil Rytarowski <n54@gmx.com>
8756
8757 * auxv.h (svr4_auxv_parse): New.
8758 * auxv.c (default_auxv_parse): Split into default_auxv_parse
8759 and generic_auxv_parse.
8760 (svr4_auxv_parse): Add.
8761 * obsd-tdep.c: Include "auxv.h".
8762 (obsd_auxv_parse): Remove.
8763 (obsd_init_abi): Remove comment.
8764 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
8765 from `obsd_auxv_parse' to `svr4_auxv_parse'.
8766 * nbsd-tdep.c: Include "auxv.h".
8767 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
8768
71fbdbaf
TT
87692020-04-08 Tom Tromey <tromey@adacore.com>
8770
8771 * nat/windows-nat.h (last_wait_event): Don't declare.
8772 (wait_for_debug_event): Update comment.
8773 * nat/windows-nat.c (last_wait_event): Now static.
8774
2c1d95e8
TT
87752020-04-08 Tom Tromey <tromey@adacore.com>
8776
8777 * windows-nat.c (wait_for_debug_event): Move to
8778 nat/windows-nat.c.
8779 * nat/windows-nat.h (wait_for_debug_event): Declare.
8780 * nat/windows-nat.c (wait_for_debug_event): Move from
8781 windows-nat.c. No longer static.
8782
d2977bc4
TT
87832020-04-08 Tom Tromey <tromey@adacore.com>
8784
8785 * windows-nat.c (get_windows_debug_event): Use
8786 fetch_pending_stop.
8787 * nat/windows-nat.h (fetch_pending_stop): Declare.
8788 * nat/windows-nat.c (fetch_pending_stop): New function.
8789
e758e19c
TT
87902020-04-08 Tom Tromey <tromey@adacore.com>
8791
8792 * windows-nat.c (windows_continue): Use matching_pending_stop and
8793 continue_last_debug_event.
8794 * nat/windows-nat.h (matching_pending_stop)
8795 (continue_last_debug_event): Declare.
8796 * nat/windows-nat.c (DEBUG_EVENTS): New define.
8797 (matching_pending_stop, continue_last_debug_event): New
8798 functions.
8799
8d30e395
TT
88002020-04-08 Tom Tromey <tromey@adacore.com>
8801
8802 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
8803 (handle_exception_result): Move to nat/windows-nat.h.
8804 (DEBUG_EXCEPTION_SIMPLE): Remove.
8805 (windows_nat::handle_ms_vc_exception): New function.
8806 (handle_exception): Move to nat/windows-nat.c.
8807 (get_windows_debug_event): Update.
8808 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
8809 nat/windows-nat.c.
8810 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
8811 (handle_exception_result): Move from windows-nat.c.
8812 (handle_exception): Declare.
8813 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
8814 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
8815 windows-nat.c.
8816
29de418d
TT
88172020-04-08 Tom Tromey <tromey@adacore.com>
8818
8819 * windows-nat.c (exception_count, event_count): Remove.
8820 (handle_exception, get_windows_debug_event)
8821 (do_initial_windows_stuff): Update.
8822
a816ba18
TT
88232020-04-08 Tom Tromey <tromey@adacore.com>
8824
8825 * windows-nat.c (windows_nat::handle_load_dll)
8826 (windows_nat::handle_unload_dll): Rename. No longer static.
8827 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
8828 Declare.
8829
a00caa12
TT
88302020-04-08 Tom Tromey <tromey@adacore.com>
8831
8832 * complaints.h (stop_whining): Declare at top-level.
8833 (complaint): Don't declare stop_whining.
8834
d41b524f
TT
88352020-04-08 Tom Tromey <tromey@adacore.com>
8836
8837 * windows-nat.c (windows_nat::handle_output_debug_string):
8838 Rename. No longer static.
8839 * nat/windows-nat.h (handle_output_debug_string): Declare.
8840
3c76026d
TT
88412020-04-08 Tom Tromey <tromey@adacore.com>
8842
8843 * windows-nat.c (current_process_handle, current_process_id)
8844 (main_thread_id, last_sig, current_event, last_wait_event)
8845 (current_windows_thread, desired_stop_thread_id, pending_stops)
8846 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
8847 (display_selectors, fake_create_process)
8848 (get_windows_debug_event): Update.
8849 * nat/windows-nat.h (current_process_handle, current_process_id)
8850 (main_thread_id, last_sig, current_event, last_wait_event)
8851 (current_windows_thread, desired_stop_thread_id, pending_stops)
8852 (struct pending_stop, siginfo_er): Move from windows-nat.c.
8853 * nat/windows-nat.c (current_process_handle, current_process_id)
8854 (main_thread_id, last_sig, current_event, last_wait_event)
8855 (current_windows_thread, desired_stop_thread_id, pending_stops)
8856 (siginfo_er): New globals. Move from windows-nat.c.
8857
9d8679cc
TT
88582020-04-08 Tom Tromey <tromey@adacore.com>
8859
8860 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
8861 (handle_load_dll): Update.
8862 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
8863
28688adf
TT
88642020-04-08 Tom Tromey <tromey@adacore.com>
8865
8866 * windows-nat.c (enum thread_disposition_type): Move to
8867 nat/windows-nat.h.
8868 (windows_nat::thread_rec): Rename from thread_rec. No longer
8869 static.
8870 (windows_add_thread, windows_nat_target::fetch_registers)
8871 (windows_nat_target::store_registers, handle_exception)
8872 (windows_nat_target::resume, get_windows_debug_event)
8873 (windows_nat_target::get_tib_address)
8874 (windows_nat_target::thread_name)
8875 (windows_nat_target::thread_alive): Update.
8876 * nat/windows-nat.h (enum thread_disposition_type): Move from
8877 windows-nat.c.
8878 (thread_rec): Declare.
8879
4834dad0
TT
88802020-04-08 Tom Tromey <tromey@adacore.com>
8881
8882 * windows-nat.c: Add "using namespace".
8883 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
8884 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
8885
65bafd5b
TT
88862020-04-08 Tom Tromey <tromey@adacore.com>
8887
8888 * nat/windows-nat.h (struct windows_thread_info): Declare
8889 destructor.
8890 * nat/windows-nat.c (~windows_thread_info): New.
8891
0a4afda3
TT
88922020-04-08 Tom Tromey <tromey@adacore.com>
8893
8894 PR gdb/22992
8895 * windows-nat.c (current_event): Update comment.
8896 (last_wait_event, desired_stop_thread_id): New globals.
8897 (struct pending_stop): New.
8898 (pending_stops): New global.
8899 (windows_nat_target) <stopped_by_sw_breakpoint>
8900 <supports_stopped_by_sw_breakpoint>: New methods.
8901 (windows_fetch_one_register): Add assertions. Adjust PC.
8902 (windows_continue): Handle pending stops. Suspend other threads
8903 when stepping. Use last_wait_event
8904 (wait_for_debug_event): New function.
8905 (get_windows_debug_event): Use wait_for_debug_event. Handle
8906 pending stops. Queue spurious stops.
8907 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
8908 (windows_nat_target::kill): Use wait_for_debug_event.
8909 * nat/windows-nat.h (struct windows_thread_info)
8910 <stopped_at_software_breakpoint>: New field.
8911 * nat/windows-nat.c (windows_thread_info::resume): Clear
8912 stopped_at_software_breakpoint.
8913
8e61ebec
TT
89142020-04-08 Tom Tromey <tromey@adacore.com>
8915
8916 * windows-nat.c (enum thread_disposition_type): New.
8917 (thread_rec): Replace "get_context" parameter with "disposition";
8918 change type.
8919 (windows_add_thread, windows_nat_target::fetch_registers)
8920 (windows_nat_target::store_registers, handle_exception)
8921 (windows_nat_target::resume, get_windows_debug_event)
8922 (windows_nat_target::get_tib_address)
8923 (windows_nat_target::thread_name)
8924 (windows_nat_target::thread_alive): Update.
8925
98a03287
TT
89262020-04-08 Tom Tromey <tromey@adacore.com>
8927
8928 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
8929 (windows_continue): Use windows_continue::resume.
8930 * nat/windows-nat.h (struct windows_thread_info) <suspend,
8931 resume>: Declare new methods.
8932 * nat/windows-nat.c: New file.
8933 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
8934
7c7411bc
TT
89352020-04-08 Tom Tromey <tromey@adacore.com>
8936
8937 * windows-nat.c (windows_add_thread, windows_delete_thread)
8938 (windows_nat_target::fetch_registers)
8939 (windows_nat_target::store_registers, fake_create_process)
8940 (windows_nat_target::resume, windows_nat_target::resume)
8941 (get_windows_debug_event, windows_nat_target::wait)
8942 (windows_nat_target::pid_to_str)
8943 (windows_nat_target::get_tib_address)
8944 (windows_nat_target::get_ada_task_ptid)
8945 (windows_nat_target::thread_name)
8946 (windows_nat_target::thread_alive): Use lwp, not tid.
8947
2950fdf7
TT
89482020-04-08 Tom Tromey <tromey@adacore.com>
8949
8950 * windows-nat.c (handle_exception)
8951 (windows_nat_target::thread_name): Update.
8952 * nat/windows-nat.h (windows_thread_info): Remove destructor.
8953 <name>: Now unique_xmalloc_ptr.
8954
62fe396b
TT
89552020-04-08 Tom Tromey <tromey@adacore.com>
8956
8957 * windows-nat.c (thread_rec)
8958 (windows_nat_target::fetch_registers): Update.
8959 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
8960 Update comment.
8961 <debug_registers_changed, reload_context>: Now bool.
8962
e9534bd2
TT
89632020-04-08 Tom Tromey <tromey@adacore.com>
8964
8965 * windows-nat.c (windows_add_thread): Use new.
8966 (windows_init_thread_list, windows_delete_thread): Use delete.
8967 (get_windows_debug_event): Update.
8968 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
8969 destructor, and initializers.
8970
ae1f8880
TT
89712020-04-08 Tom Tromey <tromey@adacore.com>
8972
8973 * windows-nat.c (struct windows_thread_info): Remove.
8974 * nat/windows-nat.h: New file.
8975
55a1e039
TT
89762020-04-08 Tom Tromey <tromey@adacore.com>
8977
8978 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
8979 (thread_rec, windows_add_thread, windows_delete_thread)
8980 (windows_continue): Update.
8981
93366324
TT
89822020-04-08 Tom Tromey <tromey@adacore.com>
8983
8984 * windows-nat.c (struct windows_thread_info): Remove typedef.
8985 (thread_head): Remove.
8986 (thread_list): New global.
8987 (thread_rec, windows_add_thread, windows_init_thread_list)
8988 (windows_delete_thread, windows_continue): Update.
8989
0f2265e2
SM
89902020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
8991
8992 * windows-tdep.h (windows_init_abi): Add comment.
8993 (cygwin_init_abi): New declaration.
8994 * windows-tdep.c: Split signal enumeration in two, one for
8995 Windows and one for Cygwin.
8996 (windows_gdb_signal_to_target): Only deal with signal of the
8997 Windows OS ABI.
8998 (cygwin_gdb_signal_to_target): New function.
8999 (windows_init_abi): Rename to windows_init_abi_common, don't set
9000 gdb_signal_to_target gdbarch method. Add new new function with
9001 this name.
9002 (cygwin_init_abi): New function.
9003 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
9004 comment. Don't call windows_init_abi.
9005 (amd64_windows_init_abi): Add comment, call windows_init_abi.
9006 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
9007 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
9008 i386_windows_init_abi_common, don't call windows_init_abi. Add
9009 a new function of this name.
9010 (i386_cygwin_init_abi): New function.
9011 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
9012 OS ABI Cygwin.
9013
3810f182
SM
90142020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
9015
9016 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
9017 parameter.c.
9018 (dwarf2_read_gdb_index): Update.
9019
063f8e80
KR
90202020-04-07 Kamil Rytarowski <n54@gmx.com>
9021
9022 * nbsd-tdep.c: Include "objfiles.h".
9023 (nbsd_skip_solib_resolver): New.
9024 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
9025
85a9510c 90262020-04-07 Nitika Achra <Nitika.Achra@amd.com>
9027
9028 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
9029 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
9030 with DW_LLE_base_addressx are being emitted in DWARFv5.
9031 Add the newly added kind DW_LOC_OFFSET_PAIR also.
9032 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
9033 unsigned integer.
9034
9fc3eaae 90352020-04-07 Nitika Achra <Nitika.Achra@amd.com>
9036
9037 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
9038 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
9039 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
9040 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
9041 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
9042 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
9043 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
9044
9045
41144253 90462020-04-07 Nitika Achra <Nitika.Achra@amd.com>
9047
9048 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
9049 (read_loclist_index): New function definition.
9050 (lookup_loclist_base): New function definition.
9051 (read_loclist_header): New function definition.
9052 (dwarf2_cu): Add loclist_base and loclist_header field.
9053 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
9054 (read_full_die_1): Read the value of DW_AT_loclists_base.
9055 (read_attribute_reprocess): Handle DW_FORM_loclistx.
9056 (read_attribute_value): Handle DW_FORM_loclistx.
9057 (skip_one_die): Handle DW_FORM_loclistx.
9058 (loclist_header): New structure declaration.
9059 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
9060
9f4e76a4
SM
90612020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9062
9063 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
9064 constructor. Remove `addr` parameter from other constructor and
9065 add `per_cu` parameter.
9066 * dwarf2/read.c (create_partial_symtab): Update.
9067
25c11aca
TV
90682020-04-07 Tom de Vries <tdevries@suse.de>
9069
9070 PR symtab/25796
9071 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
9072 (partial_die_info::fixup): Inherit has_const_value.
9073
5707e24b
TV
90742020-04-07 Tom de Vries <tdevries@suse.de>
9075
9076 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
9077 symbols without address.
9078
05f00e22
KR
90792020-04-06 Kamil Rytarowski <n54@gmx.com>
9080
9081 * nbsd-nat.h (struct thread_info): Add forward declaration.
9082 (nbsd_nat_target::thread_alive): Add.
9083 (nbsd_nat_target::thread_name): Likewise.
9084 (nbsd_nat_target::update_thread_list): Likewise.
9085 (update_thread_list::post_attach): Likewise.
9086 (post_attach::pid_to_str): Likewise.
9087 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
9088 (nbsd_thread_lister): Add.
9089 (nbsd_nat_target::thread_alive): Likewise.
9090 (nbsd_nat_target::thread_name): Likewise.
9091 (nbsd_add_threads): Likewise.
9092 (update_thread_list::post_attach): Likewise.
9093 (nbsd_nat_target::update_thread_list): Likewise.
9094 (post_attach::pid_to_str): Likewise.
9095
6ee448cc
TT
90962020-04-06 Tom Tromey <tromey@adacore.com>
9097
9098 * ada-valprint.c (print_variant_part): Extract the variant field.
9099 (print_field_values): Use the field as the outer value when
9100 recursing.
9101
dea34e8c
TT
91022020-04-06 Tom Tromey <tromey@adacore.com>
9103
9104 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
9105 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
9106 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
9107 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
9108 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
9109
93689ce9
TT
91102020-04-06 Tom Tromey <tromey@adacore.com>
9111
9112 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
9113 TYPE_CODE_ERROR.
9114
79743962
KR
91152020-04-06 Kamil Rytarowski <n54@gmx.com>
9116
9117 * nbsd-tdep.c: Include "gdbarch.h".
9118 Define enum with NetBSD signal numbers.
9119 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
9120 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
9121 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
9122 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
9123 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
9124 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
9125 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
9126 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
9127 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
9128 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
9129 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
9130 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
9131
9e7c9a03
HD
91322020-04-03 Hannes Domani <ssbssa@yahoo.de>
9133
9134 PR gdb/25325
9135 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
9136
d9e49b61
TT
91372020-04-03 Tom Tromey <tromey@adacore.com>
9138
9139 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
9140 Read constant block.
9141
e0fc5c3f
SM
91422020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
9143
9144 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
9145 (gdb_bfd_get_full_section_contents): New declaration.
9146 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
9147 * windows-tdep.c (is_linked_with_cygwin_dll): Use
9148 gdb_bfd_get_full_section_contents.
9149
e2ff18a0
SM
91502020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
9151
9152 * exec.c (build_section_table): Replace internal_error with
9153 gdb_assert.
9154 (section_table_xfer_memory_partial): Likewise.
9155 * mdebugread.c (parse_partial_symbols): Likewise.
9156 * psymtab.c (lookup_partial_symbol): Likewise.
9157 * utils.c (wrap_here): Likewise.
9158
0830d301
TT
91592020-04-02 Tom Tromey <tromey@adacore.com>
9160
9161 * f-lang.c (build_fortran_types): Use arch_type to initialize
9162 builtin_complex_s32 in the TYPE_CODE_ERROR case.
9163
e7da7f8f
TT
91642020-04-02 Tom Tromey <tromey@adacore.com>
9165
9166 * dwarf2/read.c (partial_die_info::read): Do not create a vector
9167 of attributes.
9168
c90d28ac
AB
91692020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
9170 Bernd Edlinger <bernd.edlinger@hotmail.de>
9171 Tom Tromey <tromey@adacore.com>
9172
9173 * buildsym.c (buildsym_compunit::record_line): Remove
9174 deduplication code.
9175
1aa98955
TV
91762020-04-02 Tom de Vries <tdevries@suse.de>
9177
9178 PR ada/24671
9179 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
9180
d3214198
TV
91812020-04-02 Tom de Vries <tdevries@suse.de>
9182
9183 * dwarf2/read.c (dwarf2_gdb_index_functions,
9184 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
9185 NULL.
9186 * psymtab.c (psym_lookup_global_symbol_language): New function.
9187 (psym_functions): Init psym_lookup_global_symbol_language with
9188 psym_lookup_global_symbol_language.
9189 * symfile-debug.c (debug_sym_quick_functions): Init
9190 lookup_global_symbol_language with NULL.
9191 * symfile.c (set_initial_language): Remove fixme comment.
9192 * symfile.h (struct quick_symbol_functions): Add
9193 lookup_global_symbol_language.
9194 * symtab.c (find_quick_global_symbol_language): New function.
9195 (find_main_name): Use find_quick_global_symbol_language.
9196
2836752f
SM
91972020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
9198
9199 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
9200
64dc2d4b
BE
92012020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
9202
9203 * buildsym.c (record_line): Fix undefined behavior and preserve
9204 lines at eof.
9205
bbe3dc41
BE
92062020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
9207
9208 * buildsym.c (record_line): Fix the resizing condition.
9209
6b4a335b
TT
92102020-04-01 Tom Tromey <tom@tromey.com>
9211
9212 * value.h (value_literal_complex): Add comment.
9213 * valops.c (value_literal_complex): Refer to value.h.
9214
3638a098
TT
92152020-04-01 Tom Tromey <tom@tromey.com>
9216
9217 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
9218 (scalar_type): New rule, from typebase.
9219 (typebase): Use scalar_type. Recognize complex types.
9220 (field_name): Handle FLOAT_KEYWORD.
9221 (ident_tokens): Add _Complex and __complex__.
9222
c34e8714
TT
92232020-04-01 Tom Tromey <tom@tromey.com>
9224
9225 PR exp/25299:
9226 * valarith.c (promotion_type, complex_binop): New functions.
9227 (scalar_binop): Handle complex numbers. Use promotion_type.
9228 (value_pos, value_neg, value_complement): Handle complex numbers.
9229
fa649bb7
TT
92302020-04-01 Tom Tromey <tom@tromey.com>
9231
9232 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
9233 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
9234 (parse_number): Handle complex numbers.
9235
981c08ce
TT
92362020-04-01 Tom Tromey <tom@tromey.com>
9237
9238 * c-valprint.c (c_decorations): Change complex suffix to "i".
9239
4c99290d
TT
92402020-04-01 Tom Tromey <tom@tromey.com>
9241
9242 * valprint.c (generic_value_print_complex): Use accessors.
9243 * value.h (value_real_part, value_imaginary_part): Declare.
9244 * valops.c (value_real_part, value_imaginary_part): New
9245 functions.
9246 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
9247
5b930b45
TT
92482020-04-01 Tom Tromey <tom@tromey.com>
9249
9250 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
9251 (read_range_type): Update.
9252 * mdebugread.c (basic_type): Update.
9253 * go-lang.c (build_go_types): Use init_complex_type.
9254 * gdbtypes.h (struct main_type) <complex_type>: New member.
9255 (init_complex_type): Update.
9256 (arch_complex_type): Don't declare.
9257 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
9258 Make name if none given. Use alloc_type_copy. Look for cached
9259 complex type.
9260 (arch_complex_type): Remove.
9261 (gdbtypes_post_init): Use init_complex_type.
9262 * f-lang.c (build_fortran_types): Use init_complex_type.
9263 * dwarf2/read.c (read_base_type): Update.
9264 * d-lang.c (build_d_types): Use init_complex_type.
9265 * ctfread.c (read_base_type): Update.
9266
53cccef1
TBA
92672020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9268
9269 * infrun.c (stop_all_threads): Update assertion, plus when
9270 stopping threads, take into account that we might be trying
9271 to stop an all-stop target.
9272 (stop_waiting): Call 'stop_all_threads' if there exists a
9273 non-stop target.
9274
a0714d30
TBA
92752020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9276
9277 * target.h (exists_non_stop_target): New function declaration.
9278 * target.c (exists_non_stop_target): New function.
9279
60e22c1e
HD
92802020-04-01 Hannes Domani <ssbssa@yahoo.de>
9281
9282 PR gdb/24789
9283 * eval.c (is_integral_or_integral_reference): New function.
9284 (evaluate_subexp_standard): Allow integer references in
9285 pointer arithmetic.
9286
e139a727
TBA
92872020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9288
9289 * remote.c (remote_target::remote_parse_stop_reply): Remove the
9290 check for no ptid in the stop reply when the target is non-stop.
9291
e0802d59
TT
92922020-04-01 Tom Tromey <tromey@adacore.com>
9293
9294 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
9295 "name" parameter to rvalue reference. Initialize m_name_holder.
9296 <lookup_name_info>: New overloads.
9297 <name>: Return gdb::string_view.
9298 <c_str>: New method.
9299 <make_ignore_params>: Update.
9300 <search_name_hash>: Update.
9301 <language_lookup_name>: Return const char *.
9302 <m_name>: Change type.
9303 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
9304 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
9305 (lookup_name_info::match_any): Update.
9306 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
9307 Update.
9308 * minsyms.c (linkage_name_str): Update.
9309 * language.c (default_symbol_name_matcher): Update.
9310 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
9311 Update.
9312 * ada-lang.c (ada_fold_name): Change parameter to string_view.
9313 (ada_lookup_name_info::ada_lookup_name_info): Update.
9314 (literal_symbol_name_matcher): Update.
9315
8c072cb6
TT
93162020-04-01 Tom Tromey <tromey@adacore.com>
9317
9318 * psymtab.c (psymtab_search_name): Remove function.
9319 (psym_lookup_symbol): Create search name and lookup name here.
9320 (lookup_partial_symbol): Remove "name" parameter; add
9321 lookup_name.
9322 (psym_expand_symtabs_for_function): Update.
9323
6f29a534
TT
93242020-03-31 Joel Jones <joelkevinjones@gmail.com>
9325
9326 PR tui/25597:
9327 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
9328
af62665e
TT
93292020-03-31 Tom Tromey <tromey@adacore.com>
9330
9331 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
9332 memcpy.
9333
d1a89da5
NC
93342020-03-30 Nelson Chu <nelson.chu@sifive.com>
9335
9336 * features/riscv/32bit-csr.xml: Regenerated.
9337 * features/riscv/64bit-csr.xml: Regenerated.
9338
d8af9068
TT
93392020-03-30 Tom Tromey <tromey@adacore.com>
9340
9341 * ada-valprint.c (print_variant_part): Update.
9342 * ada-lang.h (ada_which_variant_applies): Update.
9343 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
9344 outer_valaddr parameters; replace with "outer" value parameter.
9345 (to_fixed_variant_branch_type): Update.
9346
227c0bf4
PFC
93472020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9348
9349 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
9350 <list>. Remove inclusion of observable.h.
9351 (PPC_DEBUG_CURRENT_VERSION): Move up define.
9352 (struct arch_lwp_info): New struct.
9353 (class ppc_linux_dreg_interface): New class.
9354 (struct ppc_linux_process_info): New struct.
9355 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
9356 <low_new_clone, low_forget_process, low_prepare_to_resume>
9357 <copy_thread_dreg_state, mark_thread_stale>
9358 <mark_debug_registers_changed, register_hw_breakpoint>
9359 <clear_hw_breakpoint, register_wp, clear_wp>
9360 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
9361 <num_memory_accesses, get_trigger_type>
9362 <create_watchpoint_request, hwdebug_point_cmp>
9363 <init_arch_lwp_info, get_arch_lwp_info>
9364 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
9365 methods.
9366 <struct ptid_hash>: New inner struct.
9367 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
9368 members.
9369 (saved_dabr_value, hwdebug_info, max_slots_number)
9370 (struct hw_break_tuple, struct thread_points, ppc_threads)
9371 (have_ptrace_hwdebug_interface)
9372 (hwdebug_find_thread_points_by_tid)
9373 (hwdebug_insert_point, hwdebug_remove_point): Remove.
9374 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
9375 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
9376 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
9377 use m_dreg_interface.
9378 (hwdebug_point_cmp): Change to...
9379 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
9380 reference arguments instead of pointers.
9381 (ppc_linux_nat_target::ranged_break_num_registers): Use
9382 m_dreg_interface.
9383 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
9384 m_dreg_interface. Call register_hw_breakpoint.
9385 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
9386 m_dreg_interface. Call clear_hw_breakpoint.
9387 (get_trigger_type): Change to...
9388 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
9389 comment.
9390 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
9391 use m_dreg_interface. Call register_hw_breakpoint.
9392 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
9393 use m_dreg_interface. Call clear_hw_breakpoint.
9394 (can_use_watchpoint_cond_accel): Change to...
9395 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
9396 method. Update comment, use m_dreg_interface and
9397 m_process_info.
9398 (calculate_dvc): Change to...
9399 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
9400 m_dreg_interface.
9401 (num_memory_accesses): Change to...
9402 (ppc_linux_nat_target::num_memory_accesses): ...this method.
9403 (check_condition): Change to...
9404 (ppc_linux_nat_target::check_condition): ...this method.
9405 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
9406 comment, use m_dreg_interface.
9407 (create_watchpoint_request): Change to...
9408 (ppc_linux_nat_target::create_watchpoint_request): ...this
9409 method. Use m_dreg_interface.
9410 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
9411 m_dreg_interface. Call register_hw_breakpoint or register_wp.
9412 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
9413 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
9414 (ppc_linux_nat_target::low_forget_process)
9415 (ppc_linux_nat_target::low_new_fork)
9416 (ppc_linux_nat_target::low_new_clone)
9417 (ppc_linux_nat_target::low_delete_thread)
9418 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
9419 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
9420 only call mark_thread_stale.
9421 (ppc_linux_thread_exit): Remove.
9422 (ppc_linux_nat_target::stopped_data_address): Change to...
9423 (ppc_linux_nat_target::low_stopped_data_address): This. Add
9424 comment, use m_dreg_interface and m_thread_hw_breakpoints.
9425 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
9426 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
9427 comment. Call low_stopped_data_address.
9428 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
9429 m_dreg_interface.
9430 (ppc_linux_nat_target::masked_watch_num_registers): Use
9431 m_dreg_interface.
9432 (ppc_linux_nat_target::copy_thread_dreg_state)
9433 (ppc_linux_nat_target::mark_thread_stale)
9434 (ppc_linux_nat_target::mark_debug_registers_changed)
9435 (ppc_linux_nat_target::register_hw_breakpoint)
9436 (ppc_linux_nat_target::clear_hw_breakpoint)
9437 (ppc_linux_nat_target::register_wp)
9438 (ppc_linux_nat_target::clear_wp)
9439 (ppc_linux_nat_target::init_arch_lwp_info)
9440 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
9441 (_initialize_ppc_linux_nat): Remove observer callback.
9442
4db10d8f
PFC
94432020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9444
9445 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
9446 (ppc_linux_nat_target::auxv_parse)
9447 (ppc_linux_nat_target::read_description)
9448 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
9449 Move up.
9450
1310c1b0
PFC
94512020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9452
9453 * linux-nat.h (low_new_clone): New method.
9454 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
9455
69b037c3
SM
94562020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9457
9458 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
9459 (dbx_expand_psymtab): ... this.
9460 (start_psymtab): Update.
9461 * mdebugread.c (psymtab_to_symtab_1): Rename to...
9462 (mdebug_expand_psymtab): ... this.
9463 (parse_partial_symbols): Update.
9464 (new_psymtab): Update.
9465 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
9466 (xcoff_expand_psymtab): ... this.
9467 (xcoff_start_psymtab): Update.
9468
48993951
SM
94692020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9470
9471 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
9472 <expand_dependencies>: ... this.
9473 * psymtab.c (partial_symtab::read_dependencies): Rename to...
9474 (partial_symtab::expand_dependencies): ... this.
9475 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
9476 Update.
9477 (dwarf2_psymtab::expand_psymtab): Update.
9478 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
9479 * mdebugread.c (psymtab_to_symtab_1): Update.
9480 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
9481
3ad83046
SM
94822020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9483
9484 * psympriv.h (discard_psymtab): Remove.
9485 * dbxread.c (dbx_end_psymtab): Update.
9486 * xcoffread.c (xcoff_end_psymtab): Update.
9487
4d1b9ab6
TT
94882020-03-28 Tom Tromey <tom@tromey.com>
9489
9490 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
9491 comment.
9492
f1749218
TT
94932020-03-28 Tom Tromey <tom@tromey.com>
9494
9495 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
9496
ebea7626
HD
94972020-03-27 Hannes Domani <ssbssa@yahoo.de>
9498
9499 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
9500
a879b4d5
JB
95012020-03-26 John Baldwin <jhb@FreeBSD.org>
9502
9503 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
9504
0826b30a
TT
95052020-03-26 Tom Tromey <tom@tromey.com>
9506
9507 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
9508 (mark_common_block_symbol_computed, read_tag_string_type)
9509 (attr_to_dynamic_prop, read_subrange_type): Update.
9510 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
9511 to be methods on struct attribute.
9512 (skip_one_die, process_imported_unit_die, read_namespace_alias)
9513 (read_call_site_scope, partial_die_info::read)
9514 (partial_die_info::read, lookup_die_type, follow_die_ref):
9515 Update.
9516 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
9517 from dwarf2_get_ref_die_offset.
9518 (attribute::constant_value): New method, from
9519 dwarf2_get_attr_constant_value.
9520 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
9521 Declare method.
9522 <constant_value>: New method.
9523
2b2558bf
TT
95242020-03-26 Tom Tromey <tom@tromey.com>
9525
9526 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
9527 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
9528 (dwarf_type_encoding_name): Move to stringify.c.
9529 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
9530 * dwarf2/stringify.c: New file.
9531 * dwarf2/stringify.h: New file.
9532
eeb64781
TT
95332020-03-26 Tom Tromey <tom@tromey.com>
9534
9535 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
9536 Rewrite.
9537
a39fdb41
TT
95382020-03-26 Tom Tromey <tom@tromey.com>
9539
9540 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
9541 methods.
9542 * dwarf2/read.c (lookup_addr_base): Move to die.h.
9543 (lookup_ranges_base): Likewise.
9544 (read_cutu_die_from_dwo, read_full_die_1): Update.
9545
436c571c
TT
95462020-03-26 Tom Tromey <tom@tromey.com>
9547
9548 * dwarf2/read.c (read_import_statement, read_file_scope)
9549 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
9550 (read_lexical_block_scope, read_call_site_scope)
9551 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
9552 (handle_struct_member_die, process_structure_scope)
9553 (update_enumeration_type_from_children)
9554 (process_enumeration_scope, read_array_type, read_common_block)
9555 (read_namespace, read_module, read_subroutine_type): Update.
9556 (sibling_die): Remove.
9557
052c8bb8
TT
95582020-03-26 Tom Tromey <tom@tromey.com>
9559
9560 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
9561 (build_type_psymtabs_reader, read_structure_type)
9562 (read_enumeration_type, read_full_die_1): Update.
9563 (dwarf2_attr_no_follow): Move to die.h.
9564 * dwarf2/die.h (struct die_info) <attr>: New method.
9565
2b24b6e4
TT
95662020-03-26 Tom Tromey <tom@tromey.com>
9567
9568 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
9569 <base_address>: Now an optional.
9570 (dwarf2_find_base_address, dwarf2_rnglists_process)
9571 (dwarf2_ranges_process, fill_in_loclist_baton)
9572 (dwarf2_symbol_mark_computed): Update.
9573
c2d50fd0
TT
95742020-03-26 Tom Tromey <tom@tromey.com>
9575
9576 * dwarf2/read.c (struct die_info): Move to die.h.
9577 * dwarf2/die.h: New file.
9578
0df7ad3a
TT
95792020-03-26 Tom Tromey <tom@tromey.com>
9580
9581 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
9582 * dwarf2/read.c
9583 (dwarf2_statement_list_fits_in_line_number_section_complaint):
9584 Move to line-header.c.
9585 (read_checked_initial_length_and_offset, read_formatted_entries):
9586 Likewise.
9587 (dwarf_decode_line_header): Split into two.
9588 * dwarf2/line-header.c
9589 (dwarf2_statement_list_fits_in_line_number_section_complaint):
9590 Move from read.c.
9591 (read_checked_initial_length_and_offset, read_formatted_entries):
9592 Likewise.
9593 (dwarf_decode_line_header): New function, split from read.c.
9594
86c0bb4c
TT
95952020-03-26 Tom Tromey <tom@tromey.com>
9596
9597 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
9598 Declare method.
9599 * dwarf2/read.c (read_attribute_value): Update.
9600 (dwarf2_per_objfile::read_line_string): Rename from
9601 read_indirect_line_string.
9602 (read_formatted_entries): Update.
9603
2ef46c2f
TT
96042020-03-26 Tom Tromey <tom@tromey.com>
9605
9606 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
9607 variable.
9608
4f9c1eda
TT
96092020-03-26 Tom Tromey <tom@tromey.com>
9610
9611 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
9612 const.
9613 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
9614 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
9615 parameter const.
9616
5a0e026f
TT
96172020-03-26 Tom Tromey <tom@tromey.com>
9618
9619 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
9620 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
9621 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
9622 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
9623
8844c11b
TT
96242020-03-26 Tom Tromey <tom@tromey.com>
9625
9626 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
9627 file_names_size, file_full_name, file_file_name>: Use const.
9628 <file_name_at, file_names>: Add const overload.
9629 * dwarf2/line-header.c (line_header::file_file_name)
9630 (line_header::file_full_name): Update.
9631
c90ec28a
TT
96322020-03-26 Tom Tromey <tom@tromey.com>
9633
9634 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
9635 (macro_start_file, consume_improper_spaces)
9636 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
9637 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
9638 (dwarf_decode_macros): Move to macro.c.
9639 * dwarf2/macro.c: New file.
9640 * dwarf2/macro.h: New file.
9641 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
9642
4f44ae6c
TT
96432020-03-26 Tom Tromey <tom@tromey.com>
9644
9645 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
9646 method.
9647 * dwarf2/section.c: New method. From
9648 read_indirect_string_at_offset_from.
9649 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
9650 (read_indirect_string_at_offset_from): Move to section.c.
9651 (read_indirect_string_at_offset): Rewrite.
9652 (read_indirect_line_string_at_offset): Remove.
9653 (read_indirect_string, read_indirect_line_string)
9654 (dwarf_decode_macro_bytes): Update.
9655
a0194fa8
TT
96562020-03-26 Tom Tromey <tom@tromey.com>
9657
9658 * dwarf2/section.h (struct dwarf2_section_info)
9659 <overload_complaint>: Declare.
9660 (dwarf2_section_buffer_overflow_complaint): Don't declare.
9661 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
9662 Rename from dwarf2_section_buffer_overflow_complaint.
9663 * dwarf2/read.c (skip_one_die, partial_die_info::read)
9664 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
9665
3d27bbdb
TT
96662020-03-26 Tom Tromey <tom@tromey.com>
9667
9668 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
9669 Declare.
9670 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
9671 Move from read.c.
9672 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
9673 to section.c.
9674
9eac9650
TT
96752020-03-26 Tom Tromey <tom@tromey.com>
9676
9677 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
9678
bf80d710
TT
96792020-03-26 Tom Tromey <tom@tromey.com>
9680
9681 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
9682 "builder".
9683 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
9684 parameter.
9685 (dwarf_decode_macros): Update.
9686
0314b390
TT
96872020-03-26 Tom Tromey <tom@tromey.com>
9688
9689 * dwarf2/read.c (read_attribute_value): Update.
9690 (read_indirect_string_from_dwz): Move to dwz.c; change into
9691 method.
9692 (dwarf_decode_macro_bytes): Update.
9693 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
9694 * dwarf2/dwz.c: New file.
9695 * Makefile.in (COMMON_SFILES): Add dwz.c.
9696
9fda78b6
TT
96972020-03-26 Tom Tromey <tom@tromey.com>
9698
9699 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
9700 * dwarf2/read.c: Add include.
9701 * dwarf2/index-write.c: Add include.
9702 * dwarf2/index-cache.c: Add include.
9703 * dwarf2/dwz.h: New file.
9704
33aa3c10
TT
97052020-03-25 Tom Tromey <tom@tromey.com>
9706
9707 * compile/compile-object-load.c (get_out_value_type): Mention
9708 correct symbol name in error message.
9709
d503b685
HD
97102020-03-25 Hannes Domani <ssbssa@yahoo.de>
9711
9712 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
9713
7b1eff95
TV
97142020-03-25 Tom de Vries <tdevries@suse.de>
9715
9716 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
9717 * symmisc.c (dump_symtab_1): Print user and includes fields.
9718 (maintenance_info_symtabs): Same.
9719
dd895392
AB
97202020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
9721
9722 PR gdb/25534
9723 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
9724 (riscv_regcache_cooked_write): New function.
9725 (riscv_push_dummy_call): Use new function.
9726 (riscv_return_value): Likewise.
9727
5ab2fbf1
SM
97282020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
9729
9730 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
9731 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
9732 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
9733 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
9734 * infrun.c (follow_fork): Likewise.
9735 (follow_fork_inferior): Likewise.
9736 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
9737 * linux-nat.h (class linux_nat_target): Likewise.
9738 * remote.c (class remote_target) <follow_fork>: Likewise.
9739 (remote_target::follow_fork): Likewise.
9740 * target-delegates.c: Re-generate.
9741 * target.c (default_follow_fork): Likewise.
9742 (target_follow_fork): Likewise.
9743 * target.h (struct target_ops) <follow_fork>: Likewise.
9744 (target_follow_fork): Likewise.
9745
a64fafb5
TV
97462020-03-24 Tom de Vries <tdevries@suse.de>
9747
9748 * psymtab.c (maintenance_info_psymtabs): Print user field.
9749
fe26d3a3
TT
97502020-03-20 Tom Tromey <tromey@adacore.com>
9751
9752 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
9753 const.
9754 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
9755 const.
9756
c884cc46
SM
97572020-03-20 Simon Marchi <simon.marchi@efficios.com>
9758
9759 * ptrace.m4: Don't check for ptrace declaration.
9760 * config.in: Re-generate.
9761 * configure: Re-generate.
9762 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
9763 not defined.
9764
1ff700c2
KR
97652020-03-20 Kamil Rytarowski <n54@gmx.com>
9766
9767 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
9768 `PTRACE_TYPE_RET'.
9769 * i386-bsd-nat.c (gdb_ptrace): Likewise.
9770 * sparc-nat.c (gdb_ptrace): Likewise.
9771 * x86-bsd-nat.c (gdb_ptrace): Likewise.
9772
f7d4f0b1
TT
97732020-03-20 Tom Tromey <tromey@adacore.com>
9774
9775 * c-exp.y (lex_one_token): Fix assert.
9776
f67210ff
TT
97772020-03-20 Tom Tromey <tromey@adacore.com>
9778
9779 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
9780 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
9781 strncpy call.
9782
1773be9e
TT
97832020-03-20 Tom Tromey <tromey@adacore.com>
9784
9785 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
9786
70304be9
TT
97872020-03-20 Tom Tromey <tromey@adacore.com>
9788
9789 * ada-valprint.c (print_variant_part): Remove parameters; switch
9790 to value-based API.
9791 (print_field_values): Likewise.
9792 (ada_val_print_struct_union): Likewise.
9793 (ada_value_print_1): Update.
9794
9faa006d
KR
97952020-03-20 Kamil Rytarowski <n54@gmx.com>
9796
9797 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
9798 nbsd_nat_target instead of inf_ptrace_target.
9799 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9800 nbsd_nat_target.
9801
4a90f062
KR
98022020-03-20 Kamil Rytarowski <n54@gmx.com>
9803
9804 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
9805 it to the ptrace call.
9806 * (store_registers): Likewise.
9807
98082020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
9809
9810 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
9811 it to the ptrace call.
9812 * (store_registers): Likewise.
9813
2d07da27
LM
98142020-03-19 Luis Machado <luis.machado@linaro.org>
9815
9816 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
9817 valid, fetch vg value from ptrace.
9818
f09db380
KR
98192020-03-19 Kamil Rytarowski <n54@gmx.com>
9820 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
9821 * inf-ptrace.c: Likewise.
9822 * (gdb_ptrace): Add.
9823 * (inf_ptrace_target::resume): Update.
9824 * (inf_ptrace_target::xfer_partial): Likewise.
9825 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
9826 * (inf_ptrace_peek_poke): Update.
9827
fcc7376e
KR
98282020-03-19 Kamil Rytarowski <n54@gmx.com>
9829
9830 * x86-bsd-nat.c (gdb_ptrace): New.
9831 * (x86bsd_dr_set): Add new argument `ptid'.
9832 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
9833 x86bsd_dr_set_addr): Update.
9834
cada5fc9
AB
98352020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9836
9837 * remote.c (remote_target::process_stop_reply): Handle events for
9838 all threads differently.
9839
19a2740f
AB
98402020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9841
9842 * completer.c (completion_tracker::remove_completion): Define new
9843 function.
9844 * completer.h (completion_tracker::remove_completion): Declare new
9845 function.
9846 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
9847 when adding a C++ function symbol.
9848
724fd9ba
AB
98492020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9850
9851 * completer.c (completion_tracker::completion_hash_entry): Define
9852 new class.
9853 (advance_to_filename_complete_word_point): Call
9854 recompute_lowest_common_denominator.
9855 (completion_tracker::completion_tracker): Call discard_completions
9856 to setup the hash table.
9857 (completion_tracker::discard_completions): Allow for being called
9858 from the constructor, pass new equal function, and element deleter
9859 when constructing the hash table. Initialise new class member
9860 variables.
9861 (completion_tracker::maybe_add_completion): Remove use of
9862 m_entries_vec, and store more information into m_entries_hash.
9863 (completion_tracker::recompute_lcd_visitor): New function, most
9864 content taken from...
9865 (completion_tracker::recompute_lowest_common_denominator):
9866 ...here, this now just visits each item in the hash calling the
9867 above visitor.
9868 (completion_tracker::build_completion_result): Remove use of
9869 m_entries_vec, call recompute_lowest_common_denominator.
9870 * completer.h (completion_tracker::have_completions): Remove use
9871 of m_entries_vec.
9872 (completion_tracker::completion_hash_entry): Declare new class.
9873 (completion_tracker::recompute_lowest_common_denominator): Change
9874 function signature.
9875 (completion_tracker::recompute_lcd_visitor): Declare new function.
9876 (completion_tracker::m_entries_vec): Delete.
9877 (completion_tracker::m_entries_hash): Initialize to NULL.
9878 (completion_tracker::m_lowest_common_denominator_valid): New
9879 member variable.
9880 (completion_tracker::m_lowest_common_denominator_max_length): New
9881 member variable.
9882
5a82b8a1
KR
98832020-03-17 Kamil Rytarowski <n54@gmx.com>
9884
9885 * regformats/regdef.h: Put reg in gdb namespace.
9886
fb516a69
KR
98872020-03-17 Kamil Rytarowski <n54@gmx.com>
9888
9889 * i386-bsd-nat.c (gdb_ptrace): New.
9890 * (i386bsd_fetch_inferior_registers,
9891 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
9892 * (i386bsd_fetch_inferior_registers,
9893 i386bsd_store_inferior_registers) Use gdb_ptrace.
9894
1c0aa1fb
KR
98952020-03-17 Kamil Rytarowski <n54@gmx.com>
9896
9897 * amd64-bsd-nat.c (gdb_ptrace): New.
9898 * (amd64bsd_fetch_inferior_registers,
9899 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
9900 * (amd64bsd_fetch_inferior_registers,
9901 amd64bsd_store_inferior_registers) Use gdb_ptrace.
9902
5ccd2fb7
KR
99032020-03-17 Kamil Rytarowski <n54@gmx.com>
9904
9905 * user-regs.c (user_reg::read): Rename to...
9906 (user_reg::xread): ...this.
9907 * (append_user_reg): Rename argument `read' to `xread'.
9908 * (user_reg_add_builtin): Likewise.
9909 * (user_reg_add): Likewise.
9910 * (value_of_user_reg): Likewise.
9911
2108a63a
KR
99122020-03-17 Kamil Rytarowski <n54@gmx.com>
9913
9914 * sparc-nat.c (gdb_ptrace): New.
9915 * sparc-nat.c (sparc_fetch_inferior_registers)
9916 (sparc_store_inferior_registers) Remove obsolete comment.
9917 * sparc-nat.c (sparc_fetch_inferior_registers)
9918 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
9919 * sparc-nat.c (sparc_fetch_inferior_registers)
9920 (sparc_store_inferior_registers) Use gdb_ptrace.
9921
a225c9a8
KR
99222020-03-17 Kamil Rytarowski <n54@gmx.com>
9923
9924 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
9925 it to the ptrace call.
9926 * sh-nbsd-nat.c (store_registers): Likewise.
9927
98097623
KR
99282020-03-17 Kamil Rytarowski <n54@gmx.com>
9929
9930 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
9931 nbsd_nat_target instead of inf_ptrace_target.
9932 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9933 nbsd_nat_target.
9934
9e38d619
KR
99352020-03-17 Kamil Rytarowski <n54@gmx.com>
9936
9937 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
9938
a2ecbe9f
KR
99392020-03-17 Kamil Rytarowski <n54@gmx.com>
9940
9941 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
9942 <sys/sysctl.h>.
9943 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
9944
58990295
TV
99452020-03-17 Tom de Vries <tdevries@suse.de>
9946
9947 PR gdb/23710
9948 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
9949 fields.
9950 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
9951 fields.
9952 (process_imported_unit_die): Skip import of c++ CUs.
9953
771dd3a8
TT
99542020-03-16 Tom Tromey <tom@tromey.com>
9955
9956 * p-valprint.c (pascal_object_print_value): Initialize
9957 base_value.
9958
817a7585
AK
99592020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
9960 Shahab Vahedi <shahab@synopsys.com>
9961
9962 * Makefile.in: Add arch/arc.o
9963 * configure.tgt: Likewise.
9964 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
9965 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 9966 (arc_read_description): New function to cache target descriptions.
817a7585
AK
9967 * arc-tdep.h (arc_read_description): Add proto type.
9968 * arch/arc.c: New file.
9969 * arch/arc.h: Likewise.
9970 * features/Makefile: Replace old target descriptions with new.
9971 * features/arc-arcompact.c: Remove.
9972 * features/arc-arcompact.xml: Likewise.
9973 * features/arc-v2.c: Likewise
9974 * features/arc-v2.xml: Likewise
9975 * features/arc/aux-arcompact.xml: New file.
9976 * features/arc/aux-v2.xml: Likewise.
9977 * features/arc/core-arcompact.xml: Likewise.
9978 * features/arc/core-v2.xml: Likewise.
9979 * features/arc/aux-arcompact.c: Generate.
9980 * features/arc/aux-v2.c: Likewise.
9981 * features/arc/core-arcompact.c: Likewise.
9982 * features/arc/core-v2.c: Likewise.
9983 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
9984
67430cd0
TT
99852020-03-16 Tom Tromey <tromey@adacore.com>
9986
9987 PR gdb/25663:
9988 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
9989 putting value into bcache.
9990
30efb6c7
SM
99912020-03-16 Simon Marchi <simon.marchi@efficios.com>
9992
9993 PR gdb/21500
9994 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
9995 to...
9996 (amd64_windows_init_abi_common): ... this. Don't set size of
9997 long type.
9998 (amd64_windows_init_abi): New function.
9999 (amd64_cygwin_init_abi): New function.
10000 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
10001 the Cygwin OS ABI.
10002 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
10003 comment.
10004
8db52437
SM
100052020-03-16 Simon Marchi <simon.marchi@efficios.com>
10006
10007 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
10008 * windows-tdep.c (CYGWIN_DLL_NAME): New.
10009 (pe_import_directory_entry): New struct type.
10010 (is_linked_with_cygwin_dll): New function.
10011 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
10012 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
10013 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
10014
5982a56a
SM
100152020-03-16 Simon Marchi <simon.marchi@efficios.com>
10016
10017 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
10018 i386_cygwin_core_osabi_sniffer.
10019
7a1998df
SM
100202020-03-16 Simon Marchi <simon.marchi@efficios.com>
10021
10022 * i386-cygwin-tdep.c: Rename to...
10023 * i386-windows-tdep.c: ... this.
10024 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
10025 i386-windows-tdep.c.
10026 * configure.tgt: Likewise.
10027
053205cc
SM
100282020-03-16 Simon Marchi <simon.marchi@efficios.com>
10029
10030 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
10031 * osabi.c (gdb_osabi_names): Add "Windows".
10032 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
10033 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
10034 (i386_cygwin_core_osabi_sniffer): New function, extracted from
10035 i386_cygwin_osabi_sniffer.
10036 (_initialize_i386_cygwin_tdep): Register OS ABI
10037 GDB_OSABI_WINDOWS for i386.
10038 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
10039 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
10040 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
10041 for x86-64.
10042 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
10043 when the target matches '*-*-mingw*'.
10044
fe4b2ee6
SM
100452020-03-16 Simon Marchi <simon.marchi@efficios.com>
10046
10047 * defs.h (enum gdb_osabi): Move to...
10048 * osabi.h (enum gdb_osabi): ... here.
10049 * gdbarch.sh: Include osabi.h in gdbarch.h.
10050 * gdbarch.h: Re-generate.
10051
cb9b645d
SM
100522020-03-16 Simon Marchi <simon.marchi@efficios.com>
10053
10054 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
10055 function.
10056 (_initialize_amd64_windows_tdep): Register osabi sniffer.
10057
3293bbaf
TT
100582020-03-14 Tom Tromey <tom@tromey.com>
10059
10060 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
10061 for C++.
10062 (c_type_print_modifier): Likewise. Add "language" parameter.
10063 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
10064 (c_type_print_base_1): Update.
10065 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
10066 constants.
10067 * type-stack.c (type_stack::insert): Handle tp_atomic and
10068 tp_restrict.
10069 (type_stack::follow_type_instance_flags): Likewise.
10070 (type_stack::follow_types): Likewise. Merge type-following code.
10071 * c-exp.y (RESTRICT, ATOMIC): New tokens.
10072 (space_identifier, cv_with_space_id)
10073 (const_or_volatile_or_space_identifier_noopt)
10074 (const_or_volatile_or_space_identifier): Remove.
10075 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
10076 rules.
10077 (ptr_operator, typebase): Update.
10078 (enum token_flag) <FLAG_C>: New constant.
10079 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
10080 "_Atomic".
10081 (lex_one_token): Handle FLAG_C.
10082
154151a6
KR
100832020-03-14 Kamil Rytarowski <n54@gmx.com>
10084
10085 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
10086 it to the ptrace call.
10087 * m68k-bsd-nat.c (store_registers): Likewise.
10088
bc107784
KR
100892020-03-14 Kamil Rytarowski <n54@gmx.com>
10090
10091 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
10092 gdb_byte *.
10093 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
10094 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
10095 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
10096
01a80117
KR
100972020-03-14 Kamil Rytarowski <n54@gmx.com>
10098
10099 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
10100 nbsd_nat_target instead of inf_ptrace_target.
10101 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
10102 nbsd_nat_target.
10103
f90280ca
KR
101042020-03-14 Kamil Rytarowski <n54@gmx.com>
10105
10106 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
10107 register_t.
10108
6def66f1
KR
101092020-03-14 Kamil Rytarowski <n54@gmx.com>
10110
10111 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
10112 it to the ptrace call.
10113 * alpha-bsd-nat.c (store_registers): Likewise.
10114
66eaca97
KR
101152020-03-14 Kamil Rytarowski <n54@gmx.com>
10116
10117 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
10118 includes.
10119 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
10120 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
10121 fill_fpregset): Likewise.
10122
4fed520b
KR
101232020-03-14 Kamil Rytarowski <n54@gmx.com>
10124
10125 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
10126 nbsd_nat_target instead of inf_ptrace_target.
10127 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
10128 nbsd_nat_target.
10129
2190cf06
KR
101302020-03-14 Kamil Rytarowski <n54@gmx.com>
10131
10132 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
10133 register_t.
10134
75c56d3d
KR
101352020-03-14 Kamil Rytarowski <n54@gmx.com>
10136
10137 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
10138 it to the ptrace call.
10139 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
10140 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
10141 * arm-nbsd-nat.c (store_register): Likewise.
10142 * arm-nbsd-nat.c (store_regs): Likewise.
10143 * arm-nbsd-nat.c (store_fp_register): Likewise.
10144 * arm-nbsd-nat.c (store_fp_regs): Likewise.
10145
6018d381
KR
101462020-03-14 Kamil Rytarowski <n54@gmx.com>
10147
10148 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
10149 nbsd_nat_target instead of inf_ptrace_target.
10150 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
10151 nbsd_nat_target.
10152
013f99f0
KR
101532020-03-14 Kamil Rytarowski <n54@gmx.com>
10154
10155 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
10156 it to the ptrace call.
10157 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
10158
12753073
KR
101592020-03-14 Kamil Rytarowski <n54@gmx.com>
10160
6227b330
KR
10161 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
10162 it to the ptrace call.
10163 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
10164
101652020-03-14 Kamil Rytarowski <n54@gmx.com>
10166
10167 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
10168 gdb_byte *.
12753073
KR
10169 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
10170
d5be5fa4
KR
101712020-03-14 Kamil Rytarowski <n54@gmx.com>
10172
10173 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
10174 instead of inf_ptrace_target.
10175 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
10176 nbsd_nat_target.
10177
8110f842
KR
101782020-03-14 Kamil Rytarowski <n54@gmx.com>
10179
10180 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10181 register_t.
10182
52feded7
KR
101832020-03-14 Kamil Rytarowski <n54@gmx.com>
10184
10185 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10186 register_t.
10187
25567eee
KR
101882020-03-14 Kamil Rytarowski <n54@gmx.com>
10189
10190 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
10191 register_t.
10192
426a9c18
TT
101932020-03-13 Tom Tromey <tom@tromey.com>
10194
10195 * value.h (val_print): Don't declare.
10196 * valprint.h (val_print_array_elements)
10197 (val_print_scalar_formatted, generic_val_print): Don't declare.
10198 * valprint.c (generic_val_print_array): Take a struct value.
10199 (generic_val_print_ptr, generic_val_print_memberptr)
10200 (generic_val_print_bool, generic_val_print_int)
10201 (generic_val_print_char, generic_val_print_complex)
10202 (generic_val_print): Remove.
10203 (generic_value_print): Update.
10204 (do_val_print): Remove unused parameters. Don't call
10205 la_val_print.
10206 (val_print): Remove.
10207 (common_val_print): Update. Don't call value_check_printable.
10208 (val_print_scalar_formatted, val_print_array_elements): Remove.
10209 * rust-lang.c (rust_val_print): Remove.
10210 (rust_language_defn): Update.
10211 * p-valprint.c (pascal_val_print): Remove.
10212 (pascal_value_print_inner): Update.
10213 (pascal_object_print_val_fields, pascal_object_print_val):
10214 Remove.
10215 (pascal_object_print_static_field): Update.
10216 * p-lang.h (pascal_val_print): Don't declare.
10217 * p-lang.c (pascal_language_defn): Update.
10218 * opencl-lang.c (opencl_language_defn): Update.
10219 * objc-lang.c (objc_language_defn): Update.
10220 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
10221 * m2-lang.h (m2_val_print): Don't declare.
10222 * m2-lang.c (m2_language_defn): Update.
10223 * language.h (struct language_defn) <la_val_print>: Remove.
10224 * language.c (unk_lang_value_print_inner): Rename. Change
10225 argument types.
10226 (unknown_language_defn, auto_language_defn): Update.
10227 * go-valprint.c (go_val_print): Remove.
10228 * go-lang.h (go_val_print): Don't declare.
10229 * go-lang.c (go_language_defn): Update.
10230 * f-valprint.c (f_val_print): Remove.
10231 * f-lang.h (f_value_print): Don't declare.
10232 * f-lang.c (f_language_defn): Update.
10233 * d-valprint.c (d_val_print): Remove.
10234 * d-lang.h (d_value_print): Don't declare.
10235 * d-lang.c (d_language_defn): Update.
10236 * cp-valprint.c (cp_print_value_fields)
10237 (cp_print_value_fields_rtti, cp_print_value): Remove.
10238 (cp_print_static_field): Update.
10239 * c-valprint.c (c_val_print_array, c_val_print_ptr)
10240 (c_val_print_struct, c_val_print_union, c_val_print_int)
10241 (c_val_print_memberptr, c_val_print): Remove.
10242 * c-lang.h (c_val_print_array, cp_print_value_fields)
10243 (cp_print_value_fields_rtti): Don't declare.
10244 * c-lang.c (c_language_defn, cplus_language_defn)
10245 (asm_language_defn, minimal_language_defn): Update.
10246 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
10247 (ada_val_print_enum): Take a struct value.
10248 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
10249 (ada_val_print): Remove.
10250 (ada_value_print_1): Update.
10251 (printable_val_type): Remove.
10252 * ada-lang.h (ada_val_print): Don't declare.
10253 * ada-lang.c (ada_language_defn): Update.
10254
42331a1e
TT
102552020-03-13 Tom Tromey <tom@tromey.com>
10256
10257 * valprint.c (do_val_print): Update.
10258 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
10259 a struct value.
10260 (value_to_value_object_no_release): Declare.
10261 * python/py-value.c (value_to_value_object_no_release): New
10262 function.
10263 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
10264 struct value.
10265 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
10266 function.
10267 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
10268 a struct value.
10269 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
10270 Declare.
10271 (gdbscm_apply_val_pretty_printer): Take a struct value.
10272 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
10273 value.
10274 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
10275 value.
10276 * extension-priv.h (struct extension_language_ops)
10277 <apply_val_pretty_printer>: Take a struct value.
10278 * cp-valprint.c (cp_print_value): Create a struct value.
10279 (cp_print_value): Update.
10280
3a916a97
TT
102812020-03-13 Tom Tromey <tom@tromey.com>
10282
10283 * ada-valprint.c (print_field_values): Call common_val_print.
10284
b59eac37
TT
102852020-03-13 Tom Tromey <tom@tromey.com>
10286
10287 * ada-valprint.c (val_print_packed_array_elements): Remove
10288 bitoffset and val parameters. Call common_val_print.
10289 (ada_val_print_string): Remove offset, address, and original_value
10290 parameters.
10291 (ada_val_print_array): Update.
10292 (ada_value_print_array): New function.
10293 (ada_value_print_1): Call it.
10294
03371129
TT
102952020-03-13 Tom Tromey <tom@tromey.com>
10296
10297 * ada-valprint.c (ada_value_print): Use common_val_print.
10298
2e088f8b
TT
102992020-03-13 Tom Tromey <tom@tromey.com>
10300
10301 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
10302
39ef85a8
TT
103032020-03-13 Tom Tromey <tom@tromey.com>
10304
10305 * ada-valprint.c (ada_value_print_num): New function.
10306 (ada_value_print_1): Use it.
10307
b9fa6e07
TT
103082020-03-13 Tom Tromey <tom@tromey.com>
10309
10310 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
10311
416595d6
TT
103122020-03-13 Tom Tromey <tom@tromey.com>
10313
10314 * ada-valprint.c (ada_value_print_ptr): New function.
10315 (ada_value_print_1): Use it.
10316
5b5e15ec
TT
103172020-03-13 Tom Tromey <tom@tromey.com>
10318
10319 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
10320 call common_val_print.
10321 (ada_val_print_1): Update.
10322 (ada_value_print_1): New function.
10323 (ada_value_print_inner): Rewrite.
10324
fbf54e75
TT
103252020-03-13 Tom Tromey <tom@tromey.com>
10326
10327 * cp-valprint.c (cp_print_value_fields): Update.
10328 (cp_print_value): New function.
10329
64b653ca
TT
103302020-03-13 Tom Tromey <tom@tromey.com>
10331
10332 * m2-valprint.c (m2_value_print_inner): Use
10333 cp_print_value_fields.
10334 * cp-valprint.c (cp_print_value_fields): New function.
10335 * c-valprint.c (c_value_print_struct): New function.
10336 (c_value_print_inner): Use c_value_print_struct.
10337 * c-lang.h (cp_print_value_fields): Declare.
10338
6999f067
TT
103392020-03-13 Tom Tromey <tom@tromey.com>
10340
10341 * c-valprint.c (c_value_print_array): New function.
10342 (c_value_print_inner): Use it.
10343
ce80b8bd
TT
103442020-03-13 Tom Tromey <tom@tromey.com>
10345
10346 * c-valprint.c (c_value_print_memberptr): New function.
10347 (c_value_print_inner): Use it.
10348
2faac269
TT
103492020-03-13 Tom Tromey <tom@tromey.com>
10350
10351 * c-valprint.c (c_value_print_int): New function.
10352 (c_value_print_inner): Use it.
10353
da3e2c29
TT
103542020-03-13 Tom Tromey <tom@tromey.com>
10355
10356 * c-valprint.c (c_value_print_ptr): New function.
10357 (c_value_print_inner): Use it.
10358
50836231
TT
103592020-03-13 Tom Tromey <tom@tromey.com>
10360
10361 * c-valprint.c (c_value_print_inner): Rewrite.
10362
4f412b6e
TT
103632020-03-13 Tom Tromey <tom@tromey.com>
10364
10365 * valprint.c (generic_value_print_complex): New function.
10366 (generic_value_print): Use it.
10367
f5354008
TT
103682020-03-13 Tom Tromey <tom@tromey.com>
10369
10370 * valprint.c (generic_val_print_float): Don't call
10371 val_print_scalar_formatted.
10372 (generic_val_print, generic_value_print): Update.
10373
3eec3b05
TT
103742020-03-13 Tom Tromey <tom@tromey.com>
10375
10376 * valprint.c (generic_value_print_char): New function
10377 (generic_value_print): Use it.
10378
fdddfccb
TT
103792020-03-13 Tom Tromey <tom@tromey.com>
10380
10381 * valprint.c (generic_value_print_int): New function.
10382 (generic_value_print): Use it.
10383
6dde7521
TT
103842020-03-13 Tom Tromey <tom@tromey.com>
10385
10386 * valprint.c (generic_value_print_bool): New function.
10387 (generic_value_print): Use it.
10388
4112d2e6
TT
103892020-03-13 Tom Tromey <tom@tromey.com>
10390
10391 * valprint.c (generic_val_print_func): Simplify.
10392 (generic_val_print, generic_value_print): Update.
10393
65786af6
TT
103942020-03-13 Tom Tromey <tom@tromey.com>
10395
10396 * valprint.c (generic_val_print_flags): Remove.
10397 (generic_val_print, generic_value_print): Update.
10398 (val_print_type_code_flags): Add original_value parameter.
10399
40f3ce18
TT
104002020-03-13 Tom Tromey <tom@tromey.com>
10401
10402 * valprint.c (generic_val_print): Update.
10403 (generic_value_print): Update.
10404 * valprint.c (generic_val_print_enum): Don't call
10405 val_print_scalar_formatted.
10406
2a5b130b
TT
104072020-03-13 Tom Tromey <tom@tromey.com>
10408
10409 * valprint.c (generic_value_print): Call generic_value_print_ptr.
10410 * valprint.c (generic_value_print_ptr): New function.
10411
abc66ce9
TT
104122020-03-13 Tom Tromey <tom@tromey.com>
10413
10414 * valprint.c (generic_value_print): Rewrite.
10415
07a32858
TT
104162020-03-13 Tom Tromey <tom@tromey.com>
10417
10418 * p-valprint.c (pascal_object_print_value_fields)
10419 (pascal_object_print_value): New functions.
10420
64d64d3a
TT
104212020-03-13 Tom Tromey <tom@tromey.com>
10422
10423 * p-valprint.c (pascal_value_print_inner): Rewrite.
10424
6a95a1f5
TT
104252020-03-13 Tom Tromey <tom@tromey.com>
10426
10427 * f-valprint.c (f_value_print_innner): Rewrite.
10428
59fcdac6
TT
104292020-03-13 Tom Tromey <tom@tromey.com>
10430
10431 * m2-valprint.c (m2_print_unbounded_array): New overload.
10432 (m2_print_unbounded_array): Update.
10433 (m2_print_array_contents): Take a struct value.
10434 (m2_value_print_inner): Rewrite.
10435
d133c3e1
TT
104362020-03-13 Tom Tromey <tom@tromey.com>
10437
10438 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
10439 (d_value_print_inner): New function.
10440 * d-lang.h (d_value_print_inner): Declare.
10441 * d-lang.c (d_language_defn): Use d_value_print_inner.
10442
23b0f06b
TT
104432020-03-13 Tom Tromey <tom@tromey.com>
10444
10445 * go-valprint.c (go_value_print_inner): New function.
10446 * go-lang.h (go_value_print_inner): Declare.
10447 * go-lang.c (go_language_defn): Use go_value_print_inner.
10448
5f56f7cb
TT
104492020-03-13 Tom Tromey <tom@tromey.com>
10450
10451 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
10452 API.
10453 (rust_val_print): Rewrite.
10454 (rust_value_print_inner): New function, from rust_val_print.
10455 (rust_language_defn): Use rust_value_print_inner.
10456
26792ee0
TT
104572020-03-13 Tom Tromey <tom@tromey.com>
10458
10459 * ada-valprint.c (ada_value_print_inner): New function.
10460 * ada-lang.h (ada_value_print_inner): Declare.
10461 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
10462
24051bbe
TT
104632020-03-13 Tom Tromey <tom@tromey.com>
10464
10465 * f-valprint.c (f_value_print_innner): New function.
10466 * f-lang.h (f_value_print_innner): Declare.
10467 * f-lang.c (f_language_defn): Use f_value_print_innner.
10468
c0941be6
TT
104692020-03-13 Tom Tromey <tom@tromey.com>
10470
10471 * p-valprint.c (pascal_value_print_inner): New function.
10472 * p-lang.h (pascal_value_print_inner): Declare.
10473 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
10474
62c4663d
TT
104752020-03-13 Tom Tromey <tom@tromey.com>
10476
10477 * m2-valprint.c (m2_value_print_inner): New function.
10478 * m2-lang.h (m2_value_print_inner): Declare.
10479 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
10480
62182190
TT
104812020-03-13 Tom Tromey <tom@tromey.com>
10482
10483 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
10484 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
10485 * c-valprint.c (c_value_print_inner): New function.
10486 * c-lang.h (c_value_print_inner): Declare.
10487 * c-lang.c (c_language_defn, cplus_language_defn)
10488 (asm_language_defn, minimal_language_defn): Use
10489 c_value_print_inner.
10490
1e592a8a
TT
104912020-03-13 Tom Tromey <tom@tromey.com>
10492
10493 * p-valprint.c (pascal_object_print_value_fields): Now static.
10494 * p-lang.h (pascal_object_print_value_fields): Don't declare.
10495
7fe471e9
TT
104962020-03-13 Tom Tromey <tom@tromey.com>
10497
10498 * c-valprint.c (c_val_print_array): Simplify.
10499
d121c6ce
TT
105002020-03-13 Tom Tromey <tom@tromey.com>
10501
10502 * valprint.c (value_print_array_elements): New function.
10503 * valprint.h (value_print_array_elements): Declare.
10504
4dba70ee
TT
105052020-03-13 Tom Tromey <tom@tromey.com>
10506
10507 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
10508 * mips-tdep.c (mips_print_register): Use
10509 value_print_scalar_formatted.
10510
4f9ae810
TT
105112020-03-13 Tom Tromey <tom@tromey.com>
10512
10513 * valprint.h (value_print_scalar_formatted): Declare.
10514 * valprint.c (value_print_scalar_formatted): New function.
10515
156bfec9
TT
105162020-03-13 Tom Tromey <tom@tromey.com>
10517
10518 * valprint.h (generic_value_print): Declare.
10519 * valprint.c (generic_value_print): New function.
10520
2b4e573d
TT
105212020-03-13 Tom Tromey <tom@tromey.com>
10522
10523 * valprint.c (do_val_print): Call la_value_print_inner, if
10524 available.
10525 * rust-lang.c (rust_language_defn): Update.
10526 * p-lang.c (pascal_language_defn): Update.
10527 * opencl-lang.c (opencl_language_defn): Update.
10528 * objc-lang.c (objc_language_defn): Update.
10529 * m2-lang.c (m2_language_defn): Update.
10530 * language.h (struct language_defn) <la_value_print_inner>: New
10531 member.
10532 * language.c (unknown_language_defn, auto_language_defn): Update.
10533 * go-lang.c (go_language_defn): Update.
10534 * f-lang.c (f_language_defn): Update.
10535 * d-lang.c (d_language_defn): Update.
10536 * c-lang.c (c_language_defn, cplus_language_defn)
10537 (asm_language_defn, minimal_language_defn): Update.
10538 * ada-lang.c (ada_language_defn): Update.
10539
a1f6a07c
TT
105402020-03-13 Tom Tromey <tom@tromey.com>
10541
10542 * c-valprint.c (c_value_print): Use common_val_print.
10543
410cf315
TT
105442020-03-13 Tom Tromey <tom@tromey.com>
10545
10546 * cp-valprint.c (cp_print_static_field): Use common_val_print.
10547
72a45c93
TT
105482020-03-13 Tom Tromey <tom@tromey.com>
10549
10550 * f-valprint.c (f77_print_array_1, f_val_print): Use
10551 common_val_print.
10552
040f66bd
TT
105532020-03-13 Tom Tromey <tom@tromey.com>
10554
10555 * riscv-tdep.c (riscv_print_one_register_info): Use
10556 common_val_print.
10557
a6e05a6c
TT
105582020-03-13 Tom Tromey <tom@tromey.com>
10559
10560 * mi/mi-main.c (output_register): Use common_val_print.
10561
3444c526
TT
105622020-03-13 Tom Tromey <tom@tromey.com>
10563
10564 * infcmd.c (default_print_one_register_info): Use
10565 common_val_print.
10566
c2a44efe
TT
105672020-03-13 Tom Tromey <tom@tromey.com>
10568
10569 * valprint.h (common_val_print_checked): Declare.
10570 * valprint.c (common_val_print_checked): New function.
10571 * stack.c (print_frame_arg): Use common_val_print_checked.
10572
b0c26e99
TT
105732020-03-13 Tom Tromey <tom@tromey.com>
10574
10575 * valprint.c (do_val_print): New function, from val_print.
10576 (val_print): Use do_val_print.
10577 (common_val_print): Use do_val_print.
10578
ce3acbe9
TT
105792020-03-13 Tom Tromey <tom@tromey.com>
10580
10581 * valprint.c (value_print): Use scoped_value_mark.
10582
96c7f873
TV
105832020-03-13 Tom de Vries <tdevries@suse.de>
10584
10585 PR symtab/25646
10586 * psymtab.c (partial_symtab::partial_symtab): Don't set
10587 globals_offset and statics_offset. Push element onto
10588 current_global_psymbols and current_static_psymbols stacks.
10589 (concat): New function.
10590 (end_psymtab_common): Set globals_offset and statics_offset. Pop
10591 element from current_global_psymbols and current_static_psymbols
10592 stacks. Concat popped elements to global_psymbols and
10593 static_symbols.
10594 (add_psymbol_to_list): Use current_global_psymbols and
10595 current_static_psymbols stacks.
10596 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
10597 current_static_psymbols fields.
10598
6ba0a321
CB
105992020-03-12 Christian Biesinger <cbiesinger@google.com>
10600
10601 * corelow.c (sniff_core_bfd): Remove.
10602 (class core_target) <m_core_vec>: Remove.
10603 (core_target::core_target): Update.
10604 (core_file_fns): Remove.
10605 (deprecated_add_core_fns): Remove.
10606 (default_core_sniffer): Remove.
10607 (sniff_core_bfd): Remove.
10608 (default_check_format): Remove.
10609 (gdb_check_format): Remove.
10610 (core_target_open): Update.
10611 (core_target::get_core_register_section): Update.
10612 (get_core_registers_cb): Update.
10613 (core_target::fetch_registers): Update.
10614 * gdbcore.h (struct core_fns): Remove.
10615 (deprecated_add_core_fns): Remove.
10616 (default_core_sniffer): Remove.
10617 (default_check_format): Remove.
10618
227031b2
TT
106192020-03-12 Tom Tromey <tom@tromey.com>
10620
10621 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
10622 CORE_ADDR.
10623 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
10624
53807e9f
TT
106252020-03-12 Tom Tromey <tom@tromey.com>
10626
10627 * remote.c (remote_target::download_tracepoint)
10628 (remote_target::enable_tracepoint)
10629 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
10630 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
10631 sprintf_vma.
10632
64f25102
TT
106332020-03-12 Tom Tromey <tom@tromey.com>
10634
10635 * symfile-mem.c: Update CORE_ADDR size assert.
10636
272cd5a3
SM
106372020-03-12 Simon Marchi <simon.marchi@efficios.com>
10638
10639 * selftest.m4: Move to gdbsupport/.
10640 * acinclude.m4: Update path to selftest.m4.
10641
74cd3f9d
SM
106422020-03-12 Simon Marchi <simon.marchi@efficios.com>
10643
10644 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
10645 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
10646 gdbarch-selfselftests.c and selftest-arch.c.
10647 (SUBDIR_UNITTESTS_OBS): Rename to...
10648 (SELFTESTS_OBS): ... this.
10649 (COMMON_SFILES): Remove disasm-selftests.c and
10650 gdbarch-selftests.c.
10651 * configure.ac: Don't add selftest-arch.{c,o} to
10652 CONFIG_{SRCS,OBS}.
10653 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
10654 preprocessor conditions.
10655
db6878ac
SM
106562020-03-12 Simon Marchi <simon.marchi@efficios.com>
10657
10658 * configure.ac: Don't source bfd/development.sh.
10659 * selftest.m4: Modify comment.
10660 * configure: Re-generate.
10661
4d696a5c
SM
106622020-03-12 Simon Marchi <simon.marchi@efficios.com>
10663
10664 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
10665 not "true" or "false".
10666 * configure: Re-generate.
10667
8dd8e1c7
CB
106682020-03-12 Christian Biesinger <cbiesinger@google.com>
10669
10670 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
10671 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
10672 renamed to arm_nbsd_supply_gregset.
10673 (fetch_register): Update to call arm_nbsd_supply_gregset.
10674 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
10675 (arm_netbsd_nat_target::fetch_registers): Update.
10676 (fetch_elfcore_registers): Removed.
10677 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
10678 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
10679 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
10680 not require NetBSD system headers.
10681 (arm_nbsd_regset): New struct.
10682 (arm_nbsd_iterate_over_regset_sections): New function.
10683 (arm_netbsd_init_abi_common): Updated to call
10684 set_gdbarch_iterate_over_regset_sections.
10685 * arm-nbsd-tdep.h: New file.
10686
dd69bf7a
KB
106872020-03-11 Kevin Buettner <kevinb@redhat.com>
10688
10689 * symtab.c (find_pc_sect_line): Add check which prevents infinite
10690 recursion.
10691
a0761e34
SM
106922020-03-11 Simon Marchi <simon.marchi@efficios.com>
10693
10694 * configure: Re-generate.
10695
e7a82140
TT
106962020-03-11 Tom Tromey <tromey@adacore.com>
10697
10698 * ada-typeprint.c (print_choices): Fix comment.
10699
dcc050c8
AB
107002020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
10701
10702 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
10703 previous item in the list, when the list has no items.
10704
1c33af77
TV
107052020-03-11 Tom de Vries <tdevries@suse.de>
10706
10707 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
10708 PROP_LOCLIST handling code.
10709
8c95582d
AB
107102020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
10711
10712 * buildsym-legacy.c (record_line): Pass extra parameter to
10713 record_line.
10714 * buildsym.c (buildsym_compunit::record_line): Take an extra
10715 parameter, reduce duplication in the line table, and record the
10716 is_stmt flag in the line table.
10717 * buildsym.h (buildsym_compunit::record_line): Add extra
10718 parameter.
10719 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
10720 non-statement lines.
10721 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
10722 this to the symtab builder.
10723 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
10724 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
10725 through to dwarf_record_line_1.
10726 * infrun.c (process_event_stop_test): When stepping, don't stop at
10727 a non-statement instruction, and only refresh the step info when
10728 we land in the middle of a line's range. Also add an extra
10729 comment.
10730 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
10731 field.
10732 * record-btrace.c (btrace_find_line_range): Only record lines
10733 marked as is-statement.
10734 * stack.c (frame_show_address): Show the frame address if we are
10735 in a non-statement sal.
10736 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
10737 (maintenance_print_one_line_table): Print a header for the is_stmt
10738 column, and include is_stmt information in the output.
10739 * symtab.c (find_pc_sect_line): Find lines marked as statements in
10740 preference to non-statements.
10741 (find_pcs_for_symtab_line): Prefer is-statement entries.
10742 (find_line_common): Likewise.
10743 * symtab.h (struct linetable_entry): Add is_stmt field.
10744 (struct symtab_and_line): Likewise.
10745 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
10746 arranging the line table.
10747
e4003a34
TV
107482020-03-07 Tom de Vries <tdevries@suse.de>
10749
10750 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
10751 DIE.
10752
e8932576
TT
107532020-03-07 Tom Tromey <tom@tromey.com>
10754
10755 * valops.c (value_literal_complex): Remove obsolete comment.
10756 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
10757 comment.
10758
29734269
SM
107592020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
10760
10761 * infrun.h: Forward-declare thread_info.
10762 (set_step_info): Add thread_info parameter, add doc.
10763 * infrun.c (set_step_info): Add thread_info parameter, move doc
10764 to header.
10765 * infrun.c (process_event_stop_test): Pass thread to
10766 set_step_info call.
10767 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
10768 set_step_info.
10769 (prepare_one_step): Add thread_info parameter, pass it to
10770 set_step_frame and prepare_one_step (recursive) call.
10771 (step_1): Pass thread to prepare_one_step call.
10772 (step_command_fsm::should_stop): Pass thread to
10773 prepare_one_step.
10774 (until_next_fsm): Pass thread to set_step_frame call.
10775 (finish_command): Pass thread to set_step_info call.
10776
b7d64b29
HD
107772020-03-06 Hannes Domani <ssbssa@yahoo.de>
10778
10779 * windows-tdep.c (windows_solib_create_inferior_hook):
10780 Check if inferior is running.
10781
09f2921c
TV
107822020-03-06 Tom de Vries <tdevries@suse.de>
10783
10784 * NEWS: Fix "the the".
10785 * ctfread.c: Same.
10786
fd760e79
TV
107872020-03-06 Tom de Vries <tdevries@suse.de>
10788
10789 * psymtab.c (psymtab_to_symtab): Don't print "done.".
10790
20ea4a60
AB
107912020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10792
10793 * .dir-locals.el: Add a comment referencing the other copies of
10794 this file.
10795
0afbabf0
JB
107962020-03-05 John Baldwin <jhb@FreeBSD.org>
10797
10798 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
10799 psargs.
10800
842806cb
TBA
108012020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10802
10803 * .gitattributes: New file.
10804
be1e3d3e
TT
108052020-03-04 Tom Tromey <tom@tromey.com>
10806
10807 * symmisc.c (print_symbol_bcache_statistics)
10808 (print_objfile_statistics): Update.
10809 * symfile.c (allocate_symtab): Use intern.
10810 * psymtab.c (partial_symtab::partial_symtab): Use intern.
10811 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
10812 macro_cache>: Remove.
10813 <string_cache>: New member.
10814 (struct objfile) <intern>: New methods.
10815 * elfread.c (elf_symtab_read): Use intern.
10816 * dwarf2/read.c (fixup_go_packaging): Intern package name.
10817 (dwarf2_compute_name, dwarf2_physname)
10818 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
10819 names.
10820 (guess_partial_die_structure_name): Update.
10821 (partial_die_info::fixup): Intern name.
10822 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
10823 name.
10824 (dwarf2_name): Intern name. Update.
10825 * buildsym.c (buildsym_compunit::get_macro_table): Use
10826 string_cache.
10827
4e7625fd
TT
108282020-03-04 Tom Tromey <tom@tromey.com>
10829
10830 * jit.c (bfd_open_from_target_memory): Make "target" const.
10831 * corefile.c (gnutarget): Now const.
10832 * gdbcore.h (gnutarget): Now const.
10833
46f9f931
HD
108342020-03-04 Hannes Domani <ssbssa@yahoo.de>
10835
10836 * NEWS: Mention support for WOW64 processes.
10837 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
10838 (amd64_windows_segment_register_p): Remove static.
10839 (_initialize_amd64_windows_nat): Update.
10840 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
10841 * i386-windows-nat.c (context_offset): Update.
10842 (i386_mappings): Rename and remove static.
10843 (i386_windows_segment_register_p): Remove static.
10844 (_initialize_i386_windows_nat): Update.
10845 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
10846 (STATUS_WX86_SINGLE_STEP): New macro.
10847 (EnumProcessModulesEx): New macro.
10848 (Wow64SuspendThread): New macro.
10849 (Wow64GetThreadContext): New macro.
10850 (Wow64SetThreadContext): New macro.
10851 (Wow64GetThreadSelectorEntry): New macro.
10852 (windows_set_context_register_offsets): Add static.
10853 (windows_set_segment_register_p): Likewise.
10854 (windows_add_thread): Adapt for WOW64 processes.
10855 (windows_fetch_one_register): Likewise.
10856 (windows_nat_target::fetch_registers): Likewise.
10857 (windows_store_one_register): Likewise.
10858 (display_selector): Likewise.
10859 (display_selectors): Likewise.
10860 (handle_exception): Likewise.
10861 (windows_continue): Likewise.
10862 (windows_nat_target::resume): Likewise.
10863 (windows_add_all_dlls): Likewise.
10864 (do_initial_windows_stuff): Likewise.
10865 (windows_nat_target::attach): Likewise.
10866 (windows_get_exec_module_filename): Likewise.
10867 (windows_nat_target::create_inferior): Likewise.
10868 (windows_xfer_siginfo): Likewise.
10869 (_initialize_loadable): Initialize Wow64SuspendThread,
10870 Wow64GetThreadContext, Wow64SetThreadContext,
10871 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
10872 * windows-nat.h (windows_set_context_register_offsets):
10873 Remove declaration.
10874 (windows_set_segment_register_p): Likewise.
10875 (i386_windows_segment_register_p): Add declaration.
10876 (amd64_windows_segment_register_p): Likewise.
10877
440cf44e
LM
108782020-03-04 Luis Machado <luis.machado@linaro.org>
10879
10880 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
10881 in "info registers" for AArch64/ARM.
10882
10883 The change caused "info registers" to not print GPR's.
10884
10885 gdb/ChangeLog:
10886
10887 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
10888
10889 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10890 when reg->group is empty and reggroup is not.
10891
1009d92f
TT
108922020-03-03 Tom Tromey <tromey@adacore.com>
10893
10894 * dwarf2/frame.c (struct dwarf2_frame_cache)
10895 <checked_tailcall_bottom, entry_cfa_sp_offset,
10896 entry_cfa_sp_offset_p>: Remove members.
10897 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
10898 (dwarf2_frame_prev_register): Don't call
10899 dwarf2_tailcall_sniffer_first.
10900 (dwarf2_append_unwinders): Don't append tailcall unwinder.
10901 * frame-unwind.c (add_unwinder): New fuction.
10902 (frame_unwind_init): Use it. Add tailcall unwinder.
10903
5e5d66b6
AB
109042020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
10905 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10906
10907 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
10908 value should be printed as true.
10909
584cf46d
HD
109102020-03-03 Hannes Domani <ssbssa@yahoo.de>
10911
10912 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
10913 (windows_init_abi): Set and use windows_so_ops.
10914
7b973adc
SDJ
109152020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
10916
10917 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
10918 when verifying if dealing with a convenience variable.
10919
bb7b70ab
LM
109202020-03-03 Luis Machado <luis.machado@linaro.org>
10921
10922 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
10923
9822cb57
SM
109242020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10925
10926 * infrun.c (gdbarch_supports_displaced_stepping): New.
10927 (use_displaced_stepping): Break up conditions in smaller pieces.
10928 Use gdbarch_supports_displaced_stepping.
10929 (displaced_step_prepare_throw): Use
10930 gdbarch_supports_displaced_stepping.
10931
63e163f2
AB
109322020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
10933
10934 * NEWS: Mention new behaviour of the history filename.
10935 * top.c (write_history_p): Add comment.
10936 (show_write_history_p): Add header comment, give a different
10937 message when history writing is on, but the history filename is
10938 empty.
10939 (history_filename): Add comment.
10940 (history_filename_empty): New function.
10941 (show_history_filename): Add header comment, give a different
10942 message when the filename is empty.
10943 (init_history): Compare history_filename against nullptr, and only
10944 read history if the filename is not empty.
10945 (set_history_filename): Add header comment, and only make
10946 non-empty filenames absolute.
10947 (init_main): Make the filename argument to 'set history filename'
10948 optional.
10949
81b86b97
CB
109502020-03-02 Christian Biesinger <cbiesinger@google.com>
10951
10952 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
10953 (arm_supply_vfpregset): ...this, and update to use VFP registers.
10954 (fetch_fp_register): Update.
10955 (fetch_fp_regs): Update.
10956 (store_fp_register): Update.
10957 (store_fp_regs): Update.
10958 (arm_netbsd_nat_target::read_description): New function.
10959 (fetch_elfcore_registers): Update.
10960
24ed6739
AB
109612020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
10962
10963 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
10964 general_thread if the stop reply is missing a thread-id.
10965 (remote_target::process_stop_reply): Use the first non-exited
10966 thread if the target didn't pass a thread-id.
10967 * infrun.c (do_target_wait): Move call to
10968 switch_to_inferior_no_thread to ....
10969 (do_target_wait_1): ... here.
10970
a84bb2a0
JT
109712020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
10972
10973 * debuginfod-support.c: Include defs.h first.
10974
658dadf0
TV
109752020-02-28 Tom de Vries <tdevries@suse.de>
10976
10977 * symfile.c (set_initial_language): Use default language for lookup.
10978
4ebe4877
SM
109792020-02-28 Simon Marchi <simon.marchi@efficios.com>
10980
10981 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
10982 reader variable, pass `this` to read_cutu_die_from_dwo.
10983
e5da1139
AM
109842020-02-27 Aaron Merey <amerey@redhat.com>
10985
10986 * source.c (open_source_file): Check for nullptr when computing
10987 srcpath.
10988
317f7127
TT
109892020-02-27 Tom Tromey <tromey@adacore.com>
10990
10991 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
10992 member.
10993 (dwarf2_add_field): Don't update nfields.
10994 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
10995
3104d9ee
AB
109962020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10997
10998 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
10999 abs.
11000
b83470bf
TT
110012020-02-26 Tom Tromey <tom@tromey.com>
11002
11003 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
11004 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
11005 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
11006 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
11007 per_cu_data.
11008
edfe0a0c
TT
110092020-02-26 Tom Tromey <tom@tromey.com>
11010
11011 * dwarf2/index-write.c (psym_index_map): Change type.
11012 (add_address_entry_worker, write_one_signatured_type)
11013 (recursively_count_psymbols, recursively_write_psymbols)
11014 (class debug_names, psyms_seen_size, write_gdbindex)
11015 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
11016
0d79cdc4
AM
110172020-02-26 Aaron Merey <amerey@redhat.com>
11018
11019 * Makefile.in: Handle optional debuginfod support.
11020 * NEWS: Update.
11021 * README: Add --with-debuginfod summary.
11022 * config.in: Regenerate.
11023 * configure: Regenerate.
11024 * configure.ac: Handle optional debuginfod support.
11025 * debuginfod-support.c: debuginfod helper functions.
11026 * debuginfod-support.h: Ditto.
11027 * doc/gdb.texinfo: Add --with-debuginfod to configure options
11028 summary.
11029 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
11030 when a dwz file cannot be found.
11031 * elfread.c (elf_symfile_read): Query debuginfod servers when a
11032 debuginfo file cannot be found.
11033 * source.c (open_source_file): Query debuginfod servers when a
11034 source file cannot be found.
11035 * top.c (print_gdb_configuration): Include
11036 --{with,without}-debuginfod in the output.
11037
b65ce565
JG
110382020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
11039
11040 * thread.c (thr_try_catch_cmd): Print thread name.
11041
d4c9a4f8
SM
110422020-02-26 Simon Marchi <simon.marchi@efficios.com>
11043
11044 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
11045 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
11046 dwarf2_fetch_die_type_sect_off): Move to...
11047 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
11048 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
11049 dwarf2_fetch_die_type_sect_off): ... here.
11050 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
11051 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
11052 dwarf2_fetch_die_type_sect_off): Move doc to header file.
11053
0dce4280
TV
110542020-02-26 Tom de Vries <tdevries@suse.de>
11055
11056 PR gdb/25603
11057 * symfile.c (set_initial_language): Exit-early if
11058 language_mode == language_mode_manual.
11059
450a1bfc
SM
110602020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
11061
11062 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
11063 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
11064 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
11065
9e80cfa1
AB
110662020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
11067
11068 * gdbtypes.c (create_array_type_with_stride): Handle negative
11069 array strides.
11070 * valarith.c (value_subscripted_rvalue): Likewise.
11071
09624f1f
LM
110722020-02-25 Luis Machado <luis.machado@linaro.org>
11073
11074 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
11075
8cb5117c
SM
110762020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
11077
11078 * loc.h (dwarf2_get_die_type): Move to...
11079 * read.h (dwarf2_get_die_type): ... here.
11080 * read.c (dwarf2_get_die_type): Move doc to header.
11081
c325c44e
JB
110822020-02-25 Joel Brobecker <brobecker@adacore.com>
11083
11084 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
11085 'gnulib/Makefile.in' to the list.
11086
4ac93832
TT
110872020-02-24 Tom Tromey <tom@tromey.com>
11088
11089 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
11090 Remove.
11091 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
11092 XOBNEWVEC.
11093
197400e8
TT
110942020-02-24 Tom Tromey <tom@tromey.com>
11095
11096 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
11097 New method.
11098 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
11099 (dw2_do_instantiate_symtab, dw2_get_file_names)
11100 (build_type_psymtab_dependencies, load_full_type_unit): Update.
11101
76935768
TT
111022020-02-24 Tom Tromey <tom@tromey.com>
11103
11104 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
11105 make_scoped_restore.
11106 (dwarf2_psymtab::read_symtab): Don't clear
11107 reading_partial_symbols.
11108
a88ef40d
TV
111092020-02-24 Tom de Vries <tdevries@suse.de>
11110
11111 PR gdb/25592
11112 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
11113
c9af6521
TV
111142020-02-24 Tom de Vries <tdevries@suse.de>
11115
11116 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
11117 commands layout next/prev/regs.
11118
5707a07a
TT
111192020-02-22 Tom Tromey <tom@tromey.com>
11120
11121 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
11122 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
11123
3b0fb49e
TT
111242020-02-22 Tom Tromey <tom@tromey.com>
11125
11126 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
11127
283be8bf
TT
111282020-02-22 Tom Tromey <tom@tromey.com>
11129
11130 * tui/tui-win.c (_initialize_tui_win): Add usage text.
11131 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
11132 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
11133 * tui/tui.c (_initialize_tui): Add usage text.
11134
ca793b96
TT
111352020-02-22 Tom Tromey <tom@tromey.com>
11136
11137 * tui/tui-win.c (tui_set_focus_command)
11138 (tui_set_win_height_command): Use error_no_arg.
11139 (_initialize_tui_win): Update help text.
11140 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
11141
432b5c40
TT
111422020-02-22 Tom Tromey <tom@tromey.com>
11143
11144 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
11145 * tui/tui-disasm.h (struct tui_disasm_window)
11146 <display_start_addr>: Declare.
11147 * tui/tui-source.h (struct tui_source_window)
11148 <display_start_addr>: Declare.
11149 * tui/tui-winsource.h (struct tui_source_window_base)
11150 <show_source_line, display_start_addr>: New methods.
11151 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
11152 Rename and move to protected section.
11153 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
11154 (tui_source_window_base::do_erase_source_content): Update.
11155 (tui_source_window_base::show_source_line): Now a method.
11156 (tui_source_window_base::show_source_content)
11157 (tui_source_window_base::tui_source_window_base)
11158 (tui_source_window_base::rerender)
11159 (tui_source_window_base::refill)
11160 (tui_source_window_base::do_scroll_horizontal)
11161 (tui_source_window_base::set_is_exec_point_at)
11162 (tui_source_window_base::update_breakpoint_info)
11163 (tui_source_window_base::update_exec_info): Update.
11164 * tui/tui-source.c (tui_source_window::set_contents)
11165 (tui_source_window::showing_source_p)
11166 (tui_source_window::do_scroll_vertical)
11167 (tui_source_window::location_matches_p)
11168 (tui_source_window::line_is_displayed): Update.
11169 (tui_source_window::display_start_addr): New method.
11170 * tui/tui-disasm.c (tui_disasm_window::set_contents)
11171 (tui_disasm_window::do_scroll_vertical)
11172 (tui_disasm_window::location_matches_p): Update.
11173 (tui_disasm_window::display_start_addr): New method.
11174
01b1af32
TT
111752020-02-22 Tom Tromey <tom@tromey.com>
11176
11177 * NEWS: Add entry for gdb.register_window_type.
11178 * tui/tui-layout.h (window_factory): New typedef.
11179 (tui_register_window): Declare.
11180 * tui/tui-layout.c (saved_tui_windows): New global.
11181 (tui_apply_current_layout): Use it.
11182 (tui_register_window): New function.
11183 * python/python.c (do_start_initialization): Call
11184 gdbpy_initialize_tui.
11185 (python_GdbMethods): Add "register_window_type" function.
11186 * python/python-internal.h (gdbpy_register_tui_window)
11187 (gdbpy_initialize_tui): Declare.
11188 * python/py-tui.c: New file.
11189 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
11190
fc96d20b
TT
111912020-02-22 Tom Tromey <tom@tromey.com>
11192
11193 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
11194
935c78c0
TT
111952020-02-22 Tom Tromey <tom@tromey.com>
11196
11197 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
11198 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
11199 * tui/tui-data.c (tui_set_win_with_focus): Remove.
11200 (tui_set_win_focus_to): Move from tui-win.c.
11201
0240c8f1
TT
112022020-02-22 Tom Tromey <tom@tromey.com>
11203
11204 * tui/tui-layout.c (make_standard_window, get_locator_window): New
11205 functions.
11206 (known_window_types): New global.
11207 (tui_get_window_by_name): Reimplement.
11208 (initialize_known_windows): New function.
11209 (validate_window_name): Rewrite.
11210 (_initialize_tui_layout): Call initialize_known_windows.
11211
fdb01f0c
TT
112122020-02-22 Tom Tromey <tom@tromey.com>
11213
11214 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
11215 Remove constants.
11216 * tui/tui-winsource.h (struct tui_source_window_base)
11217 <tui_source_window_base>: Remove parameter.
11218 * tui/tui-winsource.c
11219 (tui_source_window_base::tui_source_window_base): Remove
11220 parameter.
11221 (tui_source_window_base::refill): Update.
11222 * tui/tui-stack.h (struct tui_locator_window)
11223 <tui_locator_window>: Update.
11224 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
11225 Default the constructor.
11226 * tui/tui-regs.h (struct tui_data_item_window)
11227 <tui_data_item_window>: Default the constructor.
11228 (struct tui_data_window) <tui_data_window>: Likewise.
11229 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
11230 Default the constructor.
11231 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
11232 Default the constructor.
11233 <type>: Remove.
11234 (struct tui_win_info) <tui_win_info>: Default the constructor.
11235 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
11236 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
11237 Default the constructor.
11238
865a5aec
TT
112392020-02-22 Tom Tromey <tom@tromey.com>
11240
11241 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
11242 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
11243 * tui/tui-win.c (tui_resize_all): Don't call
11244 tui_delete_invisible_windows.
11245 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
11246 done.
11247 (tui_set_layout): Update.
11248 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
11249 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
11250 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
11251
e098d18c
TT
112522020-02-22 Tom Tromey <tom@tromey.com>
11253
11254 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
11255 correctly.
11256
eb9c8874
TT
112572020-02-22 Tom Tromey <tom@tromey.com>
11258
11259 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
11260
7eed1a8e
TT
112612020-02-22 Tom Tromey <tom@tromey.com>
11262
11263 * tui/tui-winsource.h (struct tui_source_window_iterator)
11264 <inner_iterator>: New etytypedef.
11265 <tui_source_window_iterator>: Take "end" parameter.
11266 <tui_source_window_iterator>: Take iterator.
11267 <operator*, advance>: Update.
11268 <m_iter>: Change type.
11269 <m_end>: New field.
11270 (struct tui_source_windows) <begin, end>: Update.
11271 * tui/tui-layout.c (tui_windows): New global.
11272 (tui_apply_current_layout): Clear tui_windows.
11273 (tui_layout_window::apply): Update tui_windows.
11274 * tui/tui-data.h (tui_windows): Declare.
11275 (all_tui_windows): Now inline function.
11276 (class tui_window_iterator, struct all_tui_windows): Remove.
11277
7c043ba6
TT
112782020-02-22 Tom Tromey <tom@tromey.com>
11279
11280 PR tui/17850:
11281 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
11282 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
11283 "height" argument.
11284 (class tui_layout_window) <get_sizes>: Likewise.
11285 (class tui_layout_split) <tui_layout_split>: Add "vertical"
11286 argument.
11287 <get_sizes>: Add "height" argument.
11288 <m_vertical>: New field.
11289 * tui/tui-layout.c (tui_layout_split::clone): Update.
11290 (tui_layout_split::get_sizes): Add "height" argument.
11291 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
11292 (tui_new_layout_command): Parse "-horizontal".
11293 (_initialize_tui_layout): Update help string.
11294 (tui_layout_split::specification): Add "-horizontal" when needed.
11295 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
11296 argument.
11297 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
11298 New methods.
11299
6bc56648
TT
113002020-02-22 Tom Tromey <tom@tromey.com>
11301
11302 * tui/tui-layout.h (enum tui_adjust_result): New.
11303 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
11304 (class tui_layout_window) <adjust_size>: Return
11305 tui_adjust_result. Rewrite.
11306 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
11307 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
11308
c22fef7e
TT
113092020-02-22 Tom Tromey <tom@tromey.com>
11310
11311 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
11312 parameter and return types.
11313 (class tui_layout_base) <specification>: Add "depth".
11314 (class tui_layout_window) <specification>: Add "depth".
11315 (class tui_layout_split) <specification>: Add "depth".
11316 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
11317 and return types.
11318 (tui_new_layout_command): Parse sub-layouts.
11319 (_initialize_tui_layout): Update help string.
11320 (tui_layout_window::specification): Add "depth".
11321 (add_layout_command): Update.
11322
ee325b61
TT
113232020-02-22 Tom Tromey <tom@tromey.com>
11324
11325 * NEWS: Add "tui new-layout" item.
11326 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
11327 Add new-layout command to help text.
11328 (validate_window_name): New function.
11329 (tui_new_layout_command): New function.
11330 (_initialize_tui_layout): Register "new-layout".
11331 (tui_layout_window::specification): New method.
11332 (tui_layout_window::specification): New method.
11333 * tui/tui-layout.h (class tui_layout_base) <specification>: New
11334 method.
11335 (class tui_layout_window) <specification>: New method.
11336 (class tui_layout_split) <specification>: New method.
11337
416eb92d
TT
113382020-02-22 Tom Tromey <tom@tromey.com>
11339
11340 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
11341 * tui/tui-win.c (window_name_completer): Update comment.
11342 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
11343 Declare method.
11344 (class tui_layout_window) <replace_window>: Likewise.
11345 (class tui_layout_split) <replace_window>: Likewise.
11346 (tui_set_layout): Don't declare.
11347 (tui_set_initial_layout): Declare function.
11348 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
11349 (asm_regs_layout): New globals.
11350 (tui_current_layout, show_layout): Remove.
11351 (tui_set_layout, tui_add_win_to_layout): Rewrite.
11352 (find_layout, tui_apply_layout): New function.
11353 (layout_completer): Remove.
11354 (tui_next_layout): Reimplement.
11355 (tui_next_layout_command): New function.
11356 (tui_set_initial_layout, tui_prev_layout_command): New functions.
11357 (tui_regs_layout): Reimplement.
11358 (tui_regs_layout_command): New function.
11359 (extract_display_start_addr): Rewrite.
11360 (next_layout, prev_layout): Remove.
11361 (tui_layout_window::replace_window): New method.
11362 (tui_layout_split::replace_window): New method.
11363 (destroy_layout): New function.
11364 (layout_list): New global.
11365 (add_layout_command): New function.
11366 (initialize_layouts): Update.
11367 (tui_layout_command): New function.
11368 (_initialize_tui_layout): Install "layout" commands.
11369 * tui/tui-data.h (enum tui_layout_type): Remove.
11370 (tui_current_layout): Don't declare.
11371
0dbc2fc7
TT
113722020-02-22 Tom Tromey <tom@tromey.com>
11373
11374 * tui/tui-regs.c (tui_reg_layout): Remove.
11375 (tui_reg_command): Use tui_regs_layout.
11376 * tui/tui-layout.h (tui_reg_command): Declare.
11377 * tui/tui-layout.c (tui_reg_command): New function.
11378
5afe342e
TT
113792020-02-22 Tom Tromey <tom@tromey.com>
11380
11381 * tui/tui.c (tui_rl_delete_other_windows): Call
11382 tui_remove_some_windows.
11383 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
11384 Declare method.
11385 (class tui_layout_window) <remove_windows>: New method.
11386 (class tui_layout_split) <remove_windows>: Declare.
11387 (tui_remove_some_windows): Declare.
11388 * tui/tui-layout.c (tui_remove_some_windows): New function.
11389 (tui_layout_split::remove_windows): New method.
11390
427326a8
TT
113912020-02-22 Tom Tromey <tom@tromey.com>
11392
11393 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
11394 * tui/tui-layout.h (tui_next_layout): Declare.
11395 * tui/tui-layout.c (tui_next_layout): New function.
11396
3fe12b6d
TT
113972020-02-22 Tom Tromey <tom@tromey.com>
11398
11399 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
11400 correct coordinates.
11401
59b8b5d2
TT
114022020-02-22 Tom Tromey <tom@tromey.com>
11403
11404 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
11405 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
11406 DATA_WIN case.
11407
2a3d458b
TT
114082020-02-22 Tom Tromey <tom@tromey.com>
11409
11410 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
11411 TUI_DISASM_WIN, not tui_win_list.
11412
3f0cbb04
TT
114132020-02-22 Tom Tromey <tom@tromey.com>
11414
11415 * valprint.c (generic_val_print_enum_1)
11416 (val_print_type_code_flags): Style member names.
11417 * rust-lang.c (val_print_struct, rust_print_enum)
11418 (rust_print_struct_def, rust_internal_print_type): Style member
11419 names.
11420 * p-valprint.c (pascal_object_print_value_fields): Style member
11421 names. Only call fprintf_symbol_filtered for static members.
11422 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
11423 * f-valprint.c (f_val_print): Style member names.
11424 * f-typeprint.c (f_type_print_base): Style member names.
11425 * cp-valprint.c (cp_print_value_fields): Style member names. Only
11426 call fprintf_symbol_filtered for static members.
11427 (cp_print_class_member): Style member names.
11428 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
11429 member names.
11430 * ada-valprint.c (ada_print_scalar): Style enum names.
11431 (ada_val_print_enum): Likewise.
11432 * ada-typeprint.c (print_enum_type): Style enum names.
11433
d4d947ae
TT
114342020-02-21 Tom Tromey <tom@tromey.com>
11435
11436 * psympriv.h (struct partial_symtab): Update comment.
11437
e94e944b
TT
114382020-02-21 Tom Tromey <tromey@adacore.com>
11439
11440 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
11441 type is CORE_ADDR.
11442
1eb73179
TV
114432020-02-21 Tom de Vries <tdevries@suse.de>
11444
11445 PR gdb/25534
11446 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
11447 if dependencies[i]->user != NULL.
11448
4f180d53
AT
114492020-02-21 Ali Tamur <tamur@google.com>
11450
11451 * dwarf2/read.c (dwarf2_name): Add null check.
11452
22b6cd70
TT
114532020-02-20 Tom Tromey <tom@tromey.com>
11454
11455 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
11456 ">=", in binary search.
11457 (dwarf2_find_containing_comp_unit): New overload.
11458 (run_test): New self-test.
11459 (_initialize_dwarf2_read): Register new test.
11460
bd0cf5a6
NC
114612020-02-20 Nelson Chu <nelson.chu@sifive.com>
11462
11463 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
11464 * riscv-tdep.h: Likewise.
11465 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
11466 rv32-only CSR.
11467 * features/riscv/64bit-csr.xml: Regenerated.
11468
3f702acd
SDJ
114692020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
11470 Tom Tromey <tom@tromey.com>
11471
11472 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
11473 of 'fputc_unfiltered'.
11474 (putchar_unfiltered): Call 'fputc_unfiltered'.
11475 (fputc_unfiltered): Call 'fputs_unfiltered'.
11476
d13c7322
AB
114772020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
11478
11479 * config.in: Regenerate.
11480 * configure: Regenerate.
11481 * configure.ac: Add --with-python-libdir option.
11482 * main.c: Use WITH_PYTHON_LIBDIR.
11483
869d8950
TT
114842020-02-19 Tom Tromey <tom@tromey.com>
11485
11486 * symtab.c (general_symbol_info::compute_and_set_names): Use
11487 obstack_strndup. Simplify call to symbol_set_demangled_name.
11488
298e9637
SM
114892020-02-19 Simon Marchi <simon.marchi@efficios.com>
11490
11491 * dwarf2/read.c (allocate_signatured_type_table,
11492 allocate_dwo_unit_table, allocate_type_unit_groups_table,
11493 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
11494 Remove objfile parameter, update all callers.
11495
08410482
DE
114962020-02-19 Doug Evans <dje@google.com>
11497
11498 PR rust/25535
11499 * rust-lang.c (rust_print_enum): Apply embedded_offset to
11500 rust_enum_variant calculation.
11501
dfdeeca1
TT
115022020-02-19 Tom Tromey <tromey@adacore.com>
11503
11504 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
11505
2ef5453b
TT
115062020-02-19 Tom Tromey <tromey@adacore.com>
11507
11508 * ada-lang.c (cache_symbol): Use obstack_strdup.
11509
9f1528a1
AB
115102020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
11511
11512 * configure: Regenerate.
11513
d3c22fa8
TT
115142020-02-19 Tom Tromey <tromey@adacore.com>
11515
11516 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
11517 NULL check.
11518
bf84f706
MR
115192020-02-19 Maciej W. Rozycki <macro@wdc.com>
11520
11521 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
11522
d1c9b20f
AB
115232020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
11524
11525 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
11526 if GDBSERVER is not defined.
11527 (riscv_tdesc_cache): Likewise, also store const target_desc.
11528 (STATIC_IN_GDB): Define.
11529 (riscv_create_target_description): Update declaration with
11530 STATIC_IN_GDB.
11531 (riscv_lookup_target_description): New function, only define if
11532 GDBSERVER is not defined.
11533 * arch/riscv.h (riscv_create_target_description): Declare only
11534 when GDBSERVER is defined.
11535 (riscv_lookup_target_description): New declaration when GDBSERVER
11536 is not defined.
11537 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
11538 (riscv_linux_read_features): ...this, and return
11539 riscv_gdbarch_features instead of target_desc.
11540 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
11541 (riscv_linux_read_description): Rename to...
11542 (riscv_linux_read_features): ...this.
11543 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
11544 Update to use riscv_gdbarch_features and
11545 riscv_lookup_target_description.
11546 * riscv-tdep.c (riscv_find_default_target_description): Use
11547 riscv_lookup_target_description instead of
11548 riscv_create_target_description.
11549
373d7ac0
SM
115502020-02-18 Simon Marchi <simon.marchi@efficios.com>
11551
11552 * valprint.c (generic_val_print_enum_1): When printing a flag
11553 enum with value 0 and there is no enumerator with value 0, print
11554 just "0" instead of "(unknown: 0x0)".
11555
b29a2df0
SM
115562020-02-18 Simon Marchi <simon.marchi@efficios.com>
11557
11558 * valprint.c (generic_val_print_enum_1): Print unknown part of
11559 flag enum in hex.
11560
6740f0cc
SM
115612020-02-18 Simon Marchi <simon.marchi@efficios.com>
11562
11563 * dwarf2/read.c (update_enumeration_type_from_children): Allow
11564 flag enums to contain duplicate enumerators.
11565 * valprint.c (generic_val_print_enum_1): Update comment.
11566
edd45eb0
SM
115672020-02-18 Simon Marchi <simon.marchi@efficios.com>
11568
11569 * dwarf2/read.c: Include "count-one-bits.h".
11570 (update_enumeration_type_from_children): If an enumerator has
11571 multiple bits set, don't treat the enumeration as a "flag enum".
11572 * valprint.c (generic_val_print_enum_1): Assert that enumerators
11573 of flag enums have 0 or 1 bit set.
11574
6d0cf446
BE
115752020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
11576
11577 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
11578 conversion.
11579 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11580 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
11581 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11582 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
11583 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11584
7001c1b7
SM
115852020-02-18 Simon Marchi <simon.marchi@efficios.com>
11586
11587 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
11588
fdb61c6c
SM
115892020-02-14 Simon Marchi <simon.marchi@efficios.com>
11590
11591 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
11592 displaced_step_closure_up.
11593 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
11594 (struct displaced_step_closure_up):
11595 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11596 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
11597 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
11598 Likewise.
11599 * gdbarch.sh (displaced_step_copy_insn): Likewise.
11600 * gdbarch.c, gdbarch.h: Re-generate.
11601 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
11602 displaced_step_closure_up.
11603 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11604 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
11605 * infrun.h (displaced_step_closure_up): New type alias.
11606 (struct displaced_step_inferior_state) <step_closure>: Change
11607 type to displaced_step_closure_up.
11608 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
11609 displaced_step_closure_up.
11610 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11611
a4a38eb4
TT
116122020-02-14 Tom Tromey <tom@tromey.com>
11613
11614 * minidebug.c (gnu_debug_key): New global.
11615 (find_separate_debug_file_in_section): Use it.
11616
e8217e61
SM
116172020-02-14 Simon Marchi <simon.marchi@efficios.com>
11618
11619 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
11620 std::unique_ptr.
11621 * gdbarch.c: Re-generate.
11622 * gdbarch.h: Re-generate.
11623 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
11624 change.
11625 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
11626 type to std::unique_ptr.
11627 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
11628 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11629 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
11630 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
11631 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
11632 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11633 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
11634 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
11635 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11636
d8d83535
SM
116372020-02-14 Simon Marchi <simon.marchi@efficios.com>
11638
11639 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
11640 std::unique_ptr.
11641 (displaced_step_clear): Rename to...
11642 (displaced_step_reset): ... this. Just call displaced->reset ().
11643 (displaced_step_clear_cleanup): Rename to...
11644 (displaced_step_reset_cleanup): ... this.
11645 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
11646 (displaced_step_fixup): Likewise.
11647 (resume_1): Likewise.
11648 (handle_inferior_event): Restore child's memory before calling
11649 displaced_step_fixup on the parent.
11650 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
11651 to std::unique_ptr.
11652 <step_closure>: Change type to std::unique_ptr.
11653
5f661e03
SM
116542020-02-14 Simon Marchi <simon.marchi@efficios.com>
11655
11656 * arm-tdep.c: Include count-one-bits.h.
11657 (cleanup_block_store_pc): Use count_one_bits.
11658 (cleanup_block_load_pc): Use count_one_bits.
11659 (arm_copy_block_xfer): Use count_one_bits.
11660 (thumb2_copy_block_xfer): Use count_one_bits.
11661 (thumb_copy_pop_pc_16bit): Use count_one_bits.
11662 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
11663 (thumb_get_next_pcs_raw): Use count_one_bits.
11664 (arm_get_next_pcs_raw): Use count_one_bits_l.
11665 * arch/arm.c (bitcount): Remove.
11666 * arch/arm.h (bitcount): Remove.
11667
8084e579
TT
116682020-02-14 Tom Tromey <tromey@adacore.com>
11669
11670 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
11671 Update.
11672 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
11673 * dwarf2/loc.c (call_site_find_chain_1): Return
11674 unique_xmalloc_ptr.
11675 (call_site_find_chain): Likewise.
11676
258bf0ee
RB
116772020-02-14 Richard Biener <rguenther@suse.de>
11678
11679 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
11680 on expression with division operators.
11681
f98a8458
AKS
116822020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11683
11684 * MAINTAINERS (Write After Approval): Adding myself.
11685
d1437c0e
TT
116862020-02-12 Tom Tromey <tom@tromey.com>
11687
11688 * event-loop.c (event_data, gdb_event, event_handler_func):
11689 Remove.
11690
3d4560f7
TT
116912020-02-12 Tom Tromey <tom@tromey.com>
11692
11693 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
11694 (dwarf2_frame_objfile_data): Add comment.
11695 (find_comp_unit, set_comp_unit): New functions.
11696 (dwarf2_frame_find_fde): Use find_comp_unit.
11697 (dwarf2_build_frame_info): Use set_comp_unit.
11698
21982304
TT
116992020-02-12 Tom Tromey <tom@tromey.com>
11700
11701 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
11702 (comp_unit): Don't initialize objfile.
11703 (execute_cfa_program): Add text_offset parameter.
11704 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
11705 (dwarf2_frame_cache): Update.
11706 (dwarf2_build_frame_info): Don't set "objfile" member.
11707
4debb237
TT
117082020-02-12 Tom Tromey <tom@tromey.com>
11709
11710 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
11711 (decode_frame_entry): Likewise.
11712 (dwarf2_build_frame_info): Update.
11713
0d404d44
TT
117142020-02-12 Tom Tromey <tom@tromey.com>
11715
11716 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
11717 (decode_frame_entry_1): Use the comp_unit obstack.
11718
a7a3ae5c
TT
117192020-02-12 Tom Tromey <tom@tromey.com>
11720
11721 * dwarf2/frame.c (struct comp_unit): Add initializers and
11722 constructor.
11723 (dwarf2_frame_objfile_data): Store a comp_unit.
11724 (dwarf2_frame_find_fde): Update.
11725 (dwarf2_build_frame_info): Use "new".
11726
a9d65418
TT
117272020-02-12 Tom Tromey <tom@tromey.com>
11728
11729 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
11730 (dwarf2_fde_table): Typedef for std::vector.
11731 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
11732 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
11733 (decode_frame_entry): Update.
11734 (dwarf2_build_frame_info): Use "new".
11735
7559c217
CB
117362020-02-12 Christian Biesinger <cbiesinger@google.com>
11737
11738 * arm-tdep.c (arm_gdbarch_init): Update.
11739 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
11740 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
11741 have_neon, is_m>: Change to bool.
11742
aeefc73c
CB
117432020-02-12 Christian Biesinger <cbiesinger@google.com>
11744
11745 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
11746
d27b8e5f
TT
117472020-02-12 Tom Tromey <tom@tromey.com>
11748
11749 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
11750
cd5900f3
HD
117512020-02-12 Hannes Domani <ssbssa@yahoo.de>
11752
11753 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
11754 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
11755
f056b22b
TT
117562020-02-11 Tom Tromey <tom@tromey.com>
11757
11758 * psymtab.h: Update comment.
11759
f92ff6b5
TT
117602020-02-11 Tom Tromey <tom@tromey.com>
11761
11762 * gdb_obstack.h (struct auto_obstack): Use
11763 DISABLE_COPY_AND_ASSIGN.
11764
3fd6912b
TT
117652020-02-11 Tom Tromey <tom@tromey.com>
11766
11767 * dwarf2/frame.h (struct objfile): Don't forward declare.
11768
69ed9b74
CB
117692020-02-11 Christian Biesinger <cbiesinger@google.com>
11770
11771 * cris-tdep.c (cris_supply_gregset): Change signature to match
11772 what struct regset expects.
11773 (cris_regset): New struct.
11774 (fetch_core_registers): Remove.
11775 (cris_iterate_over_regset_sections): New function.
11776 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
11777 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
11778
bda874f6
CB
117792020-02-11 Christian Biesinger <cbiesinger@google.com>
11780
11781 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
11782 registers.
11783
754e1564
CB
117842020-02-11 Christian Biesinger <cbiesinger@google.com>
11785
11786 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
11787
8ddd8e0e
SM
117882020-02-11 Simon Marchi <simon.marchi@efficios.com>
11789
11790 * configure: Re-generate.
11791
898e7f60
SM
117922020-02-11 Simon Marchi <simon.marchi@efficios.com>
11793
11794 * configure: Re-generate.
11795
58df732b
SM
117962020-02-11 Simon Marchi <simon.marchi@efficios.com>
11797
11798 * acinclude: Update warning.m4 path.
11799 * warning.m4: Move to gdbsupport.
11800
da5bd37e
TT
118012020-02-11 Tom Tromey <tromey@adacore.com>
11802
11803 * remote.c (remote_console_output): Update.
11804 * printcmd.c (printf_command): Update.
11805 * event-loop.c (gdb_wait_for_event): Update.
11806 * linux-nat.c (sigchld_handler): Update.
11807 * remote-sim.c (gdb_os_write_stdout): Update.
11808 (gdb_os_flush_stdout): Update.
11809 (gdb_os_flush_stderr): Update.
11810 (gdb_os_write_stderr): Update.
11811 * exceptions.c (print_exception): Update.
11812 * remote-fileio.c (remote_fileio_func_read): Update.
11813 (remote_fileio_func_write): Update.
11814 * tui/tui.c (tui_enable): Update.
11815 * tui/tui-interp.c (tui_interp::init): Update.
11816 * utils.c (init_page_info): Update.
11817 (putchar_unfiltered, fputc_unfiltered): Update.
11818 (gdb_flush): Update.
11819 (emit_style_escape): Update.
11820 (flush_wrap_buffer, fputs_maybe_filtered): Update.
11821 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
11822 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
11823 (stderr_file::write): Update.
11824 (stderr_file::puts): Update.
11825 * ui-file.h (ui_file_isatty, ui_file_write)
11826 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
11827 (ui_file_puts): Don't declare.
11828
85f0dd3c
TV
118292020-02-10 Tom de Vries <tdevries@suse.de>
11830
11831 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
11832 sentinel to char *.
11833
2e927613
TV
118342020-02-09 Tom de Vries <tdevries@suse.de>
11835
11836 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
11837 filename if it matches "<artificial>".
11838
6bafc845
HD
118392020-02-09 Hannes Domani <ssbssa@yahoo.de>
11840
11841 * windows-tdep.c (struct enum_value_name): New struct.
11842 (create_enum): New function.
11843 (windows_get_siginfo_type): Create and use enum types.
11844
7928d571
HD
118452020-02-09 Hannes Domani <ssbssa@yahoo.de>
11846
11847 * NEWS: Mention $_siginfo support for Windows.
11848 * windows-nat.c (handle_exception): Set siginfo_er.
11849 (windows_nat_target::mourn_inferior): Reset siginfo_er.
11850 (windows_xfer_siginfo): New function.
11851 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
11852 * windows-tdep.c (struct windows_gdbarch_data): New struct.
11853 (init_windows_gdbarch_data): New function.
11854 (get_windows_gdbarch_data): New function.
11855 (windows_get_siginfo_type): New function.
11856 (windows_init_abi): Register windows_get_siginfo_type.
11857 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
11858
6751ebae
TT
118592020-02-08 Tom Tromey <tom@tromey.com>
11860
11861 * dwarf2/read.c (class cutu_reader) <cutu_reader,
11862 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
11863 <keep>: Declare method.
11864 <m_keep>: Remove member.
11865 <~cutu_reader>: Remove.
11866 (cutu_reader::init_tu_and_read_dwo_dies): Update.
11867 (cutu_reader::cutu_reader): Update.
11868 (cutu_reader::keep): Rename from ~cutu_reader.
11869 (process_psymtab_comp_unit, build_type_psymtabs_1)
11870 (process_skeletonless_type_unit, load_partial_comp_unit)
11871 (load_full_comp_unit, dwarf2_read_addr_index)
11872 (read_signatured_type): Update.
11873
135f5437
TT
118742020-02-08 Tom Tromey <tom@tromey.com>
11875
11876 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
11877 "want_partial_unit" parameter.
11878 (process_psymtab_comp_unit): Change want_partial_unit to bool.
11879 Inline check for DW_TAG_partial_unit.
11880 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
11881
9f66ff1c
TT
118822020-02-08 Tom Tromey <tom@tromey.com>
11883
11884 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
11885 read.c.
11886 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
11887 read.c.
11888
c8a7a66f
TT
118892020-02-08 Tom Tromey <tom@tromey.com>
11890
11891 * dwarf2/read.c (read_address): Move to comp-unit.c.
11892 (dwarf2_rnglists_process, dwarf2_ranges_process)
11893 (read_attribute_value, dwarf_decode_lines_1)
11894 (var_decode_location, decode_locdesc): Update.
11895 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
11896 read.c. Remove "cu" parameter.
11897 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
11898 method.
11899
8266302d
TT
119002020-02-08 Tom Tromey <tom@tromey.com>
11901
11902 * dwarf2/read.c (read_attribute_value, read_indirect_string)
11903 (read_indirect_line_string): Update.
11904 * dwarf2/comp-unit.c (read_offset): Remove.
11905 (read_comp_unit_head): Update.
11906 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
11907 method.
11908 (read_offset): Don't declare.
11909
4057dfde
TT
119102020-02-08 Tom Tromey <tom@tromey.com>
11911
11912 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
11913 * dwarf2/read.c (struct comp_unit_head): Move to
11914 dwarf2/comp-unit.h.
11915 (enum class rcuh_kind): Move to comp-unit.h.
11916 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
11917 (read_comp_unit_head, error_check_comp_unit_head)
11918 (read_and_check_comp_unit_head): Move to comp-unit.c.
11919 (read_offset, dwarf_unit_type_name): Likewise.
11920 (create_debug_type_hash_table, read_cutu_die_from_dwo)
11921 (cutu_reader::cutu_reader, read_call_site_scope)
11922 (find_partial_die, follow_die_offset): Update.
11923 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
11924
24aa364d
TT
119252020-02-08 Tom Tromey <tom@tromey.com>
11926
11927 * dwarf2/read.c (read_offset_1): Move to leb.c.
11928 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
11929 (dwarf_decode_macro_bytes): Update.
11930 * dwarf2/leb.c (read_offset): Rename; move from read.c.
11931 * dwarf2/leb.h (read_offset): Declare.
11932
2c7d5afc
TT
119332020-02-08 Tom Tromey <tom@tromey.com>
11934
11935 * dwarf2/read.c (dwarf2_section_size): Remove.
11936 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
11937 Update.
11938 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
11939
4075cb26
TT
119402020-02-08 Tom Tromey <tom@tromey.com>
11941
11942 * dwarf2/read.c (read_initial_length): Move to leb.c.
11943 * dwarf2/leb.h (read_initial_length): Declare.
11944 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
11945 handle_nonstd parameter.
11946 * dwarf2/frame.c (read_initial_length): Remove.
11947 (decode_frame_entry_1): Update.
11948
09ba997f
TT
119492020-02-08 Tom Tromey <tom@tromey.com>
11950
11951 * dwarf2/loc.c (dwarf2_find_location_expression)
11952 (dwarf_evaluate_loc_desc::get_tls_address)
11953 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
11954 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
11955 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
11956 (dwarf2_compile_property_to_c)
11957 (dwarf2_loc_desc_get_symbol_read_needs)
11958 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
11959 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
11960 (loclist_describe_location, loclist_tracepoint_var_ref)
11961 (loclist_generate_c_location): Update.
11962 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
11963 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
11964 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
11965 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
11966 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
11967 (dwarf2_per_cu_data::addr_size)
11968 (dwarf2_per_cu_data::ref_addr_size)
11969 (dwarf2_per_cu_data::text_offset)
11970 (dwarf2_per_cu_data::addr_type): Now methods.
11971 (per_cu_header_read_in): Make per_cu "const".
11972 (dwarf2_version): Remove.
11973 (dwarf2_per_cu_data::int_type): Now a method.
11974 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
11975 (set_die_type, read_array_type, read_subrange_index_type)
11976 (read_tag_string_type, read_subrange_type): Update.
11977 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
11978 offset_size, ref_addr_size, text_offset, addr_type, version,
11979 objfile, int_type, addr_sized_int_type>: Declare methods.
11980
96c738c0
TT
119812020-02-08 Tom Tromey <tom@tromey.com>
11982
11983 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
11984 Move earlier.
11985
8fdd972c
TT
119862020-02-08 Tom Tromey <tom@tromey.com>
11987
11988 * dwarf2/read.h (dwarf_line_debug): Declare.
11989 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
11990 * dwarf2/read.c: Move line_header code to new files.
11991 (dwarf_line_debug): No longer static.
11992 * dwarf2/line-header.c: New file.
11993 * dwarf2/line-header.h: New file.
11994
03075812
TT
119952020-02-08 Tom Tromey <tom@tromey.com>
11996
11997 * dwarf2/read.c (struct line_header) <file_full_name,
11998 file_file_name>: Return unique_xmalloc_ptr.
11999 (line_header::file_file_name): Update.
12000 (line_header::file_full_name): Update.
12001 (dw2_get_file_names_reader): Update.
12002 (macro_start_file): Update.
12003
bb822404
TT
120042020-02-08 Tom Tromey <tom@tromey.com>
12005
12006 * dwarf2/read.c (struct line_header) <file_full_name,
12007 file_file_name>: Declare methods.
12008 (dw2_get_file_names_reader): Update.
12009 (file_file_name): Now a method.
12010 (file_full_name): Likewise.
12011 (macro_start_file): Update.
12012
009b64fc
TT
120132020-02-08 Tom Tromey <tom@tromey.com>
12014
12015 * dwarf2/read.c (dwarf_always_disassemble)
12016 (show_dwarf_always_disassemble): Move to loc.c.
12017 (_initialize_dwarf2_read): Move "always-disassemble" registration
12018 to loc.c.
12019 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
12020 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
12021 static.
12022 (show_dwarf_always_disassemble): Move from read.c.
12023 (_initialize_dwarf2loc): Move always-disassemble from read.c.
12024
5895093f
TT
120252020-02-08 Tom Tromey <tom@tromey.com>
12026
12027 * dwarf2/read.c (~dwarf2_per_objfile): Update.
12028 (create_quick_file_names_table): Return htab_up.
12029 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
12030 Update.
12031 * dwarf2/read.h (struct dwarf2_per_objfile)
12032 <quick_file_names_table>: Now htab_up.
12033
b3b32279
TT
120342020-02-08 Tom Tromey <tom@tromey.com>
12035
12036 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
12037
1d33d811
TT
120382020-02-08 Tom Tromey <tom@tromey.com>
12039
12040 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
12041 Rewrite.
12042 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
12043 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
12044 (abbrev_table::abbrev_table): No longer inline.
12045 (ABBREV_HASH_SIZE): Remove.
12046 (abbrev_table::m_abbrevs): Now an htab_up.
12047
86de1d91
TT
120482020-02-08 Tom Tromey <tom@tromey.com>
12049
12050 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
12051 (cutu_reader): Update.
12052 (build_type_psymtabs_1): Update.
12053 * dwarf2/abbrev.c (abbrev_table::read): Rename.
12054 (abbrev_table::alloc_abbrev): Update.
12055 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
12056 (abbrev_table::read): New static method, renamed from
12057 abbrev_table_read_table.
12058 (abbrev_table::alloc_abbrev)
12059 (abbrev_table::add_abbrev): Now private.
12060 (abbrev_table::abbrev_table): Now private.
12061 (abbrev_table::m_abbrev_obstack): Now private. Rename.
12062
0335378b
TT
120632020-02-08 Tom Tromey <tom@tromey.com>
12064
12065 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
12066 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
12067 htab_up.
12068
48b490f2
TT
120692020-02-08 Tom Tromey <tom@tromey.com>
12070
12071 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
12072 htab_up.
12073 (lookup_dwo_unit_in_dwp): Update.
12074 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
12075 on obstack.
12076
bc68fb19
TT
120772020-02-08 Tom Tromey <tom@tromey.com>
12078
12079 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
12080 obstack.
12081
d15acc42
TT
120822020-02-08 Tom Tromey <tom@tromey.com>
12083
12084 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
12085 line_header_hash.
12086 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
12087 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
12088 Change type to htab_up.
12089
eaa5fa8b
TT
120902020-02-08 Tom Tromey <tom@tromey.com>
12091
12092 * dwarf2/read.c (allocate_type_unit_groups_table): Return
12093 htab_up. Don't allocate on obstack.
12094 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
12095 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
12096 Change type to htab_up.
12097
b0b6a987
TT
120982020-02-08 Tom Tromey <tom@tromey.com>
12099
12100 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
12101 Change type to htab_up.
12102 * dwarf2/read.c (create_signatured_type_table_from_index)
12103 (create_signatured_type_table_from_debug_names)
12104 (create_all_type_units, add_type_unit)
12105 (lookup_dwo_signatured_type, lookup_signatured_type)
12106 (process_skeletonless_type_unit): Update.
12107 (create_debug_type_hash_table, create_debug_types_hash_table):
12108 Change type of types_htab.
12109 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
12110 htab_up. Don't allocate on obstack.
12111 (create_cus_hash_table): Change type of cus_htab parameter.
12112 (struct dwo_file) <cus, tus>: Now htab_up.
12113 (lookup_dwo_signatured_type, lookup_dwo_cutu)
12114 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
12115 (queue_and_load_all_dwo_tus): Update.
12116 * dwarf2/index-write.c (write_gdbindex): Update.
12117 (write_debug_names): Update.
12118
39856def
TT
121192020-02-08 Tom Tromey <tom@tromey.com>
12120
12121 * dwarf2/read.h (struct dwarf2_queue_item): Move from
12122 dwarf2/read.c. Remove "next" member. Add constructor ntad
12123 destructor.
12124 (struct dwarf2_per_objfile) <queue>: New member.
12125 * dwarf2/read.c (struct dwarf2_queue_item): Move to
12126 dwarf2/read.h.
12127 (dwarf2_queue, dwarf2_queue_tail): Remove.
12128 (class dwarf2_queue_guard): Add parameter to constructor. Use
12129 DISABLE_COPY_AND_ASSIGN.
12130 <m_per_objfile>: New member.
12131 <~dwarf2_queue_guard>: Rewrite.
12132 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
12133 Update.
12134 (~dwarf2_queue_item): New.
12135
3e225074
TT
121362020-02-08 Tom Tromey <tom@tromey.com>
12137
12138 * dwarf2/read.c (struct die_info) <has_children>: New member.
12139 (dw2_get_file_names_reader): Remove has_children.
12140 (dw2_get_file_names): Update.
12141 (read_cutu_die_from_dwo): Remove has_children.
12142 (cutu_reader::init_tu_and_read_dwo_dies)
12143 (cutu_reader::cutu_reader): Update.
12144 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
12145 Remove has_children.
12146 (build_type_psymtabs_1, process_skeletonless_type_unit)
12147 (load_partial_comp_unit, load_full_comp_unit): Update.
12148 (create_dwo_cu_reader): Remove has_children.
12149 (create_cus_hash_table, read_die_and_children): Update.
12150 (read_full_die_1,read_full_die): Remove has_children.
12151 (read_signatured_type): Update.
12152 (class cutu_reader) <has_children>: Remove.
12153
82ca8957
TT
121542020-02-08 Tom Tromey <tom@tromey.com>
12155
12156 * dwarf2/expr.c: Rename from dwarf2expr.c.
12157 * dwarf2/expr.h: Rename from dwarf2expr.h.
12158 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
12159 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
12160 * dwarf2/frame.c: Rename from dwarf2-frame.c.
12161 * dwarf2/frame.h: Rename from dwarf2-frame.h.
12162 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
12163 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
12164 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
12165 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
12166 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
12167 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
12168 * dwarf2/loc.c: Rename from dwarf2loc.c.
12169 * dwarf2/loc.h: Rename from dwarf2loc.h.
12170 * dwarf2/read.c: Rename from dwarf2read.c.
12171 * dwarf2/read.h: Rename from dwarf2read.h.
12172 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
12173 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
12174 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
12175 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
12176 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
12177 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
12178 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
12179 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
12180 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
12181 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
12182 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
12183 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
12184 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
12185 Update.
12186 * Makefile.in (COMMON_SFILES): Update.
12187 (HFILES_NO_SRCDIR): Update.
12188
9e35d499
TT
121892020-02-08 Tom Tromey <tom@tromey.com>
12190
12191 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
12192 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
12193
1eba2311
TT
121942020-02-08 Tom Tromey <tom@tromey.com>
12195
12196 * dwarf2read.h (struct die_info): Don't declare.
12197
e41c2da2
TT
121982020-02-08 Tom Tromey <tom@tromey.com>
12199
12200 * dwarf2read.h (die_info_ptr): Remove typedef.
12201
4fc6c0d5
TT
122022020-02-08 Tom Tromey <tom@tromey.com>
12203
12204 * dwarf2read.c (read_call_site_scope)
12205 (handle_data_member_location, dwarf2_add_member_fn)
12206 (mark_common_block_symbol_computed, read_common_block)
12207 (attr_to_dynamic_prop, partial_die_info::read)
12208 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
12209 (dwarf2_symbol_mark_computed, set_die_type): Update.
12210 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
12211 method.
12212 (attr_form_is_block): Don't declare.
12213 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
12214
cd6c91b4
TT
122152020-02-08 Tom Tromey <tom@tromey.com>
12216
12217 * dwarf2read.c (dwarf2_find_base_address, )
12218 (read_call_site_scope, rust_containing_type)
12219 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
12220 (handle_data_member_location, dwarf2_add_member_fn)
12221 (get_alignment, read_structure_type, process_structure_scope)
12222 (mark_common_block_symbol_computed, read_common_block)
12223 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
12224 (partial_die_info::read, read_attribute_value, new_symbol)
12225 (lookup_die_type, dwarf2_get_ref_die_offset)
12226 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
12227 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
12228 (dwarf2_symbol_mark_computed): Update.
12229 * dwarf2/attribute.h (struct attribute) <value_as_address,
12230 form_is_section_offset, form_is_constant, form_is_ref>: Declare
12231 methods.
12232 (value_as_address, attr_form_is_section_offset)
12233 (attr_form_is_constant, attr_form_is_ref): Don't declare.
12234 * dwarf2/attribute.c (attribute::value_as_address)
12235 (attribute::form_is_section_offset, attribute::form_is_constant)
12236 (attribute::form_is_ref): Now methods.
12237
162dce55
TT
122382020-02-08 Tom Tromey <tom@tromey.com>
12239
12240 * dwarf2read.c (struct attribute, DW_STRING)
12241 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
12242 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
12243 (attr_form_is_block, attr_form_is_section_offset)
12244 (attr_form_is_constant, attr_form_is_ref): Move.
12245 * dwarf2/attribute.h: New file.
12246 * dwarf2/attribute.c: New file, from dwarf2read.c.
12247 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
12248
3054dd54
TT
122492020-02-08 Tom Tromey <tom@tromey.com>
12250
12251 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
12252 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
12253 Move.
12254 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
12255 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
12256 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
12257 abbrev.c.
12258 * dwarf2/abbrev.h: New file.
12259 * dwarf2/abbrev.c: New file, from dwarf2read.c.
12260 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
12261
96b79293
TT
122622020-02-08 Tom Tromey <tom@tromey.com>
12263
12264 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
12265 (dwarf2_section_size, dwarf2_get_section_info)
12266 (create_signatured_type_table_from_debug_names)
12267 (create_addrmap_from_aranges, read_debug_names_from_section)
12268 (get_gdb_index_contents_from_section, read_comp_unit_head)
12269 (error_check_comp_unit_head, read_abbrev_offset)
12270 (create_debug_type_hash_table, init_cu_die_reader)
12271 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
12272 (read_comp_units_from_section, create_cus_hash_table)
12273 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
12274 (create_dwp_v2_section, dwarf2_rnglists_process)
12275 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
12276 (abbrev_table_read_table, read_indirect_string_at_offset_from)
12277 (read_indirect_string_from_dwz, read_addr_index_1)
12278 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
12279 (dwarf_decode_macro_bytes, dwarf_decode_macros)
12280 (fill_in_loclist_baton): Update.
12281 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
12282 get_containing_section, get_bfd_owner, get_bfd_section,
12283 get_file_name, get_id, get_flags, empty, read>: Declare methods.
12284 (dwarf2_read_section, get_section_name, get_section_file_name)
12285 (get_containing_section, get_section_bfd_owner)
12286 (get_section_bfd_section, get_section_name, get_section_file_name)
12287 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
12288 declare.
12289 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
12290 (dwarf2_section_info::get_bfd_owner)
12291 (dwarf2_section_info::get_bfd_section)
12292 (dwarf2_section_info::get_name)
12293 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
12294 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
12295 (dwarf2_section_info::read): Now methods.
12296 * dwarf-index-write.c (class debug_names): Update.
12297
2c86cff9
TT
122982020-02-08 Tom Tromey <tom@tromey.com>
12299
12300 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
12301 Move to dwarf2/section.h.
12302 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
12303 (get_section_bfd_section, get_section_name)
12304 (get_section_file_name, get_section_id, get_section_flags)
12305 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
12306 dwarf2/section.c.
12307 * dwarf2/section.h: New file.
12308 * dwarf2/section.c: New file, from dwarf2read.c.
12309 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
12310
f4382c45
TT
123112020-02-08 Tom Tromey <tom@tromey.com>
12312
12313 * dwarf2read.h (read_unsigned_leb128): Don't declare.
12314 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
12315 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
12316 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
12317 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
12318 * dwarf2/leb.h: New file, from dwarf2read.c.
12319 * dwarf2/leb.c: New file, from dwarf2read.c.
12320 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
12321 Remove.
12322 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
12323 (COMMON_SFILES): Add dwarf2/leb.c.
12324
01840b7a
JB
123252020-02-08 Joel Brobecker <brobecker@adacore.com>
12326
12327 GDB 9.1 released.
12328
dfcb27e4
IB
123292020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
12330
12331 PR gdb/25190:
aac66a4c
SM
12332 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
12333 * gdb/remote.c (remote_console_output): Update.
12334 * gdb/ui-file.c (fputs_unfiltered): Rename to...
12335 (ui_file_puts): ...this.
12336 * gdb/ui-file.h (ui_file_puts): Add declaration.
12337 * gdb/utils.c (emit_style_escape): Update.
12338 (flush_wrap_buffer): Update.
12339 (fputs_maybe_filtered): Update.
12340 (fputs_unfiltered): Add function.
dfcb27e4 12341
faa17681
IB
123422020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
12343
aac66a4c
SM
12344 * gdb/event-loop.c (gdb_wait_for_event): Update.
12345 * gdb/printcmd.c (printf_command): Update.
12346 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
12347 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
12348 (gdb_os_flush_stderr): Update.
12349 * gdb/remote.c (remote_console_output): Update.
12350 * gdb/ui-file.c (gdb_flush): Rename to...
12351 (ui_file_flush): ...this.
12352 (stderr_file::write): Update.
12353 (stderr_file::puts): Update.
12354 * gdb/ui-file.h (gdb_flush): Rename to...
12355 (ui_file_flush): ...this.
12356 * gdb/utils.c (gdb_flush): Add function.
12357 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 12358
5abbbe1d
TT
123592020-02-07 Tom Tromey <tromey@adacore.com>
12360
12361 PR breakpoints/24915:
12362 * source.c (find_and_open_source): Do not check basenames_may_differ.
12363
919adfe8
TT
123642020-02-07 Tom Tromey <tom@tromey.com>
12365
12366 * README: Update gdbserver documentation.
12367 * gdbserver: Move to top level.
12368 * configure.tgt (build_gdbserver): Remove.
12369 * configure.ac: Remove --enable-gdbserver.
12370 * configure: Rebuild.
12371 * Makefile.in (distclean): Don't mention gdbserver.
12372
1d5d29e7
SV
123732020-02-06 Shahab Vahedi <shahab@synopsys.com>
12374
12375 * source-cache.c (source_cache::ensure): Surround
12376 get_plain_source_lines with a try/catch.
12377 (source_cache::get_line_charpos): Get rid of try/catch
12378 and only check for the return value of "ensure".
12379 * tui/tui-source.c (tui_source_window::set_contents):
12380 Simplify "nlines" calculation.
12381
6eb1129c
SV
123822020-02-06 Shahab Vahedi <shahab@synopsys.com>
12383
12384 * MAINTAINERS (Write After Approval): Add myself.
12385
c6a42d11
CB
123862020-02-05 Christian Biesinger <cbiesinger@google.com>
12387
12388 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
12389 function call.
12390
c8ecdda6
CB
123912020-02-05 Christian Biesinger <cbiesinger@google.com>
12392
12393 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
12394
f6480e70
MR
123952020-02-05 Maciej W. Rozycki <macro@wdc.com>
12396
12397 * nat/riscv-linux-tdesc.h: New file.
12398 * nat/riscv-linux-tdesc.c: New file, taking code from...
12399 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
12400 ... here.
12401 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
12402 NATDEPFILES.
12403
dcc9fbc6
AB
124042020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
12405
12406 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
12407 we don't set the fake simulator ptid to the null_ptid.
12408
719546c4
SM
124092020-02-03 Simon Marchi <simon.marchi@efficios.com>
12410
12411 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
12412 * gdbthread.h (class thread_info) <resumed>: Likewise.
12413 * infrun.c (resume_1): Likewise.
12414 (proceed): Likewise.
12415 (infrun_thread_stop_requested): Likewise.
12416 (stop_all_threads): Likewise.
12417 (handle_inferior_event): Likewise.
12418 (restart_threads): Likewise.
12419 (finish_step_over): Likewise.
12420 (keep_going_stepped_thread): Likewise.
12421 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
12422 (linux_handle_extended_wait): Likewise.
12423 * record-btrace.c (get_thread_current_frame_id): Likewise.
12424 * record-full.c (record_full_wait_1): Likewise.
12425 * remote.c (remote_target::process_initial_stop_replies): Likewise.
12426 * target.c (target_resume): Likewise.
12427 * thread.c (set_running_thread): Likewise.
12428
e409c542
AKS
124292020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
12430
12431 * f-valprint.c (f77_print_array_1): Changed datatype of index
12432 variable to LONGEST from int to enable it to contain bound
12433 values correctly.
12434
ee98c0da
MR
124352020-02-03 Maciej W. Rozycki <macro@wdc.com>
12436
12437 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
12438 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
12439 offsets according to FLEN determined.
12440 (riscv_linux_nat_target::read_description): Determine FLEN
12441 dynamically.
12442 (riscv_linux_nat_target::fetch_registers): Size regset buffer
12443 according to FLEN determined.
12444 (riscv_linux_nat_target::store_registers): Likewise.
12445
aa66aac4
SV
124462020-02-01 Shahab Vahedi <shahab@synopsys.com>
12447
12448 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
12449 when reg->group is empty and reggroup is not.
12450
fd9faca8
TT
124512020-01-31 Tom Tromey <tromey@adacore.com>
12452
12453 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
12454 Call beneath target's mourn_inferior after unpushing.
12455
42330a68
AB
124562020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
12457
12458 PR tui/9765
12459 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
12460 have enough lines to fill the screen, still return the lowest
12461 address we found.
12462
7a27a45b
AB
124632020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
12464
12465 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
12466 '-', '<', and '>' commands.
12467
c47f70e2
PA
124682020-01-29 Pedro Alves <palves@redhat.com>
12469 Sergio Durigan Junior <sergiodj@redhat.com>
12470
12471 * infcmd.c (construct_inferior_arguments): Assert that
12472 'argc' is greater than 0.
12473
5133a315
LM
124742020-01-29 Luis Machado <luis.machado@linaro.org>
12475
12476 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
12477 (BRK_INSN_MASK): Define to 0xd4200000.
12478 (aarch64_program_breakpoint_here_p): New function.
12479 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
12480 * arch-utils.c (default_program_breakpoint_here_p): Moved from
12481 breakpoint.c.
12482 * arch-utils.h (default_program_breakpoint_here_p): Moved from
12483 breakpoint.h
12484 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
12485 call gdbarch_program_breakpoint_here_p.
12486 (program_breakpoint_here): Moved to arch-utils.c, renamed to
12487 default_program_breakpoint_here_p, changed return type to bool and
12488 simplified.
12489 * breakpoint.h (program_breakpoint_here): Moved prototype to
12490 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
12491 return type to bool.
12492 * gdbarch.c: Regenerate.
12493 * gdbarch.h: Regenerate.
12494 * gdbarch.sh (program_breakpoint_here_p): New method.
12495 * infrun.c (handle_signal_stop): Call
12496 gdbarch_program_breakpoint_here_p.
12497
168f8c6b
TT
124982020-01-26 Tom Tromey <tom@tromey.com>
12499
12500 * ctfread.c (struct ctf_fp_info): Reindent.
12501 (_initialize_ctfread): Remove.
12502
128a391f
TT
125032020-01-26 Tom Tromey <tom@tromey.com>
12504
12505 * psymtab.c (partial_map_expand_apply)
12506 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
12507 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
12508 (psym_print_stats, psym_expand_symtabs_for_function)
12509 (psym_map_symbol_filenames, psym_map_matching_symbols)
12510 (psym_expand_symtabs_matching)
12511 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
12512 (maintenance_check_psymtabs): Use new methods.
12513 * psympriv.h (struct partial_symtab) <readin_p,
12514 get_compunit_symtab>: New methods.
12515 <readin, compunit_symtab>: Remove members.
12516 (struct standard_psymtab): New.
12517 (struct legacy_psymtab): Derive from standard_psymtab.
12518 * dwarf2read.h (struct dwarf2_psymtab): Derive from
12519 standard_psymtab.
12520 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
12521
0494dbec
TT
125222020-01-26 Tom Tromey <tom@tromey.com>
12523
12524 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
12525 read_dependencies. Add assert.
12526 * psymtab.c (partial_symtab::read_dependencies): New method.
12527 * psympriv.h (struct partial_symtab) <read_dependencies>: New
12528 method.
12529 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
12530 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
12531 read_dependencies.
12532 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
12533 Add assert.
12534
8566b89b
TT
125352020-01-26 Tom Tromey <tom@tromey.com>
12536
12537 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
12538 Call expand_psymtab.
12539 (xcoff_read_symtab): Call expand_psymtab.
12540 (xcoff_start_psymtab, xcoff_end_psymtab): Set
12541 legacy_expand_psymtab.
12542 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
12543 method.
12544 (struct legacy_psymtab) <expand_psymtab>: Implement.
12545 <legacy_expand_psymtab>: New member.
12546 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
12547 (parse_partial_symbols): Set legacy_expand_psymtab.
12548 (psymtab_to_symtab_1): Change argument order. Call
12549 expand_psymtab.
12550 (new_psymtab): Set legacy_expand_psymtab.
12551 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
12552 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
12553 expand_psymtab.
12554 (dwarf2_psymtab::expand_psymtab): Rename from
12555 psymtab_to_symtab_1. Call expand_psymtab.
12556 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
12557 (dbx_end_psymtab): Likewise.
12558 (dbx_psymtab_to_symtab_1): Change argument order. Call
12559 expand_psymtab.
12560 (dbx_read_symtab): Call expand_psymtab.
12561 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
12562 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
12563 (ctf_psymtab::read_symtab): Call expand_psymtab.
12564
077cbab2
TT
125652020-01-26 Tom Tromey <tom@tromey.com>
12566
12567 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
12568 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
12569 messages.
12570 * mdebugread.c (mdebug_read_symtab): Remove prints.
12571 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
12572 assert.
12573 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
12574
891813be
TT
125752020-01-26 Tom Tromey <tom@tromey.com>
12576
12577 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
12578 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
12579 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
12580 legacy_symtab.
12581 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
12582 * psymtab.c (psymtab_to_symtab): Call method.
12583 (dump_psymtab): Update.
12584 * psympriv.h (struct partial_symtab): Add virtual destructor.
12585 <read_symtab>: New method.
12586 (struct legacy_symtab): New.
12587 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
12588 (struct pst_map) <pst>: Now a legacy_psymtab.
12589 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
12590 (new_psymtab): Use legacy_psymtab.
12591 * dwarf2read.h (struct dwarf2_psymtab): New.
12592 (struct dwarf2_per_cu_data) <psymtab>: Use it.
12593 * dwarf2read.c (dwarf2_create_include_psymtab)
12594 (dwarf2_build_include_psymtabs, create_type_unit_group)
12595 (create_partial_symtab, process_psymtab_comp_unit_reader)
12596 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
12597 (set_partial_user): Use dwarf2_psymtab.
12598 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
12599 (psymtab_to_symtab_1, process_full_comp_unit)
12600 (process_full_type_unit, dwarf2_ranges_read)
12601 (dwarf2_get_pc_bounds, psymtab_include_file_name)
12602 (dwarf_decode_lines): Use dwarf2_psymtab.
12603 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
12604 (add_address_entry_worker, write_one_signatured_type)
12605 (recursively_count_psymbols, recursively_write_psymbols)
12606 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
12607 (write_debug_names): Likewise.
12608 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
12609 <pst>: Now a legacy_psymtab.
12610 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
12611 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
12612 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
12613 * ctfread.c (struct ctf_psymtab): New.
12614 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
12615 ctf_psymtab.
12616 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
12617 (create_partial_symtab): Return a ctf_psymtab.
12618 (scan_partial_symbols): Update.
12619
c3693a1d
TT
126202020-01-26 Tom Tromey <tom@tromey.com>
12621
12622 * xcoffread.c (xcoff_start_psymtab): Use new.
12623 * psymtab.c (partial_symtab::partial_symtab): New constructor,
12624 renamed from start_psymtab_common.
12625 * psympriv.h (struct partial_symtab): Add new constructor.
12626 (start_psymtab_common): Don't declare.
12627 * mdebugread.c (parse_partial_symbols): Use new.
12628 * dwarf2read.c (create_partial_symtab): Use new.
12629 * dbxread.c (start_psymtab): Use new.
12630 * ctfread.c (create_partial_symtab): Use new.
12631
32caafd0
TT
126322020-01-26 Tom Tromey <tom@tromey.com>
12633
12634 * xcoffread.c (xcoff_end_psymtab): Use new.
12635 * psymtab.c (start_psymtab_common): Use new.
12636 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
12637 Update.
12638 * psympriv.h (struct partial_symtab): Add parameters to
12639 constructor. Don't inline.
12640 (allocate_psymtab): Don't declare.
12641 * mdebugread.c (new_psymtab): Use new.
12642 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
12643 * dbxread.c (dbx_end_psymtab): Use new.
12644
abaa2f23
TT
126452020-01-26 Tom Tromey <tom@tromey.com>
12646
12647 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
12648 allocate_psymtab. Update documentation.
12649 * psymtab.c (psymtab_storage::install_psymtab): Rename from
12650 allocate_psymtab. Do not use new.
12651 (allocate_psymtab): Use new. Update.
12652
6d94535f
TT
126532020-01-26 Tom Tromey <tom@tromey.com>
12654
12655 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
12656 * psymtab.c (psym_print_stats): Update.
12657 * psympriv.h (struct partial_symtab) <readin,
12658 psymtabs_addrmap_supported, anonymous>: Now bool.
12659 * mdebugread.c (psymtab_to_symtab_1): Update.
12660 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
12661 (build_type_psymtabs_reader, psymtab_to_symtab_1)
12662 (process_full_comp_unit, process_full_type_unit): Update.
12663 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
12664 * ctfread.c (psymtab_to_symtab): Update.
12665
6f17252b
TT
126662020-01-26 Tom Tromey <tom@tromey.com>
12667
12668 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
12669 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
12670 * psymtab.c (psymtab_storage): Delete psymtabs.
12671 (psymtab_storage::allocate_psymtab): Use new.
12672 (psymtab_storage::discard_psymtab): Use delete.
12673 * psympriv.h (struct partial_symtab): Add constructor and
12674 initializers.
12675
f6f1cebc
TT
126762020-01-26 Tom Tromey <tom@tromey.com>
12677
12678 * machoread.c: Do not include psympriv.h.
12679
e47e48f6
PW
126802020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12681
12682 * NEWS: Mention the new option and the set/show commands.
12683
a2fedca9
PW
126842020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12685
12686 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
12687 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
12688 (validate_exec_file): New variables, enums, functions.
12689 (exec_file_locate_attach, print_section_info): Style the filenames.
12690 (_initialize_exec): Install show_exec_file_mismatch_command and
12691 set_exec_file_mismatch_command.
12692 * gdbcore.h (validate_exec_file): Declare.
12693 * infcmd.c (attach_command): Call validate_exec_file.
12694 * remote.c ( remote_target::remote_add_inferior): Likewise.
12695
7ffa82e1
AB
126962020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12697
12698 * frame.c (find_frame_sal): Move call to get_next_frame into more
12699 inner scope.
12700 * inline-frame.c (inilne_state) <inline_state>: Update argument
12701 types.
12702 (inilne_state) <skipped_symbol>: Rename to...
12703 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
12704 (skip_inline_frames): Build vector of skipped symbols and use this
12705 to reate the inline_state.
12706 (inline_skipped_symbol): Add a comment and some assertions, fetch
12707 skipped symbol from the list.
12708
3d92a3e3
AB
127092020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12710
12711 * buildsym.c (lte_is_less_than): Delete.
12712 (buildsym_compunit::end_symtab_with_blockvector): Create local
12713 lambda function to sort line table entries, and use
12714 std::stable_sort instead of std::sort.
12715 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
12716 markers when looking for a previous line.
12717
94a72be7
AB
127182020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12719
12720 * dwarf2read.c (lnp_state_machine::record_line): Include
12721 end_sequence parameter in debug print out. Record the line if we
12722 are at an end_sequence marker even if it's not the start of a
12723 statement.
12724 * symmisc.c (maintenance_print_one_line_table): Print end of
12725 sequence markers with 'END' not '0'.
12726
53af73bf
PA
127272020-01-24 Pedro Alves <palves@redhat.com>
12728
12729 PR gdb/25410
12730 * thread.c (scoped_restore_current_thread::restore): Use
12731 switch_to_inferior_no_thread.
12732 * exec.c: Include "progspace-and-thread.h".
12733 (add_target_sections, remove_target_sections):
12734 scoped_restore_current_pspace_and_thread instead of
12735 scoped_restore_current_thread.
12736 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
12737 and aspace to the inferior before calling clone_program_space.
12738 Remove stale comment.
12739
3050c6f4
CB
127402020-01-24 Christian Biesinger <cbiesinger@google.com>
12741
12742 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
12743 (arm_netbsd_nat_target::fetch_registers): ...this.
12744 (arm_nbsd_nat_target::store_registers): Rename to...
12745 (arm_netbsd_nat_target::store_registers): ...this.
12746
73685c7e
CB
127472020-01-24 Christian Biesinger <cbiesinger@google.com>
12748
12749 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12750 register_t.
12751
89203d40
CB
127522020-01-24 Christian Biesinger <cbiesinger@google.com>
12753
12754 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
12755 Update comment.
12756 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
12757 Likewise.
12758 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
12759 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
12760 the correct replacement (iterate_over_regset_sections).
12761 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
12762 Update comment.
12763
1ba1ac88
AB
127642020-01-24 Graham Markall <graham.markall@embecosm.com>
12765
12766 PR gdb/23718
12767 * gdb/python/python.c (execute_gdb_command): Call
12768 async_enable_stdin in catch block.
12769
f3364a6d
AB
127702020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12771
12772 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
12773 SWITCH_THRU_ALL_UIS.
12774
733d0a67
AB
127752020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12776
12777 PR tui/9765
12778 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
12779 comment, add extra parameter, and update to store previous symbol
12780 when appropriate.
12781 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
12782 add extra parameter.
12783 * tui/tui-disasm.c (tui_disassemble): Update header comment,
12784 remove unneeded parameter, add try/catch around gdb_print_insn,
12785 rewrite to add items to asm_lines vector.
12786 (tui_find_backward_disassembly_start_address): New function.
12787 (tui_find_disassembly_address): Updated throughout.
12788 (tui_disasm_window::set_contents): Update for changes to
12789 tui_disassemble.
12790 (tui_disasm_window::do_scroll_vertical): No need to adjust the
12791 number of lines to scroll.
12792
b3b3bada
SM
127932020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
12794
12795 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
12796 (SECT_OFF_DATA): Likewise.
12797 (SECT_OFF_RODATA): Likewise.
12798 (SECT_OFF_TEXT): Likewise.
12799 (SECT_OFF_BSS): Likewise.
12800 (struct objfile) <text_section_offset, data_section_offset>: New
12801 methods.
12802 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
12803 objfile::text_section_offset.
12804 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
12805 * coffread.c (coff_symtab_read): Likewise.
12806 (enter_linenos): Likewise.
12807 (process_coff_symbol): Likewise.
12808 * ctfread.c (get_objfile_text_range): Likewise.
12809 * dtrace-probe.c (dtrace_probe::get_relocated_address):
12810 Use objfile::data_section_offset.
12811 * dwarf2-frame.c (execute_cfa_program): Use
12812 objfile::text_section_offset.
12813 (dwarf2_frame_find_fde): Likewise.
12814 * dwarf2read.c (create_addrmap_from_index): Likewise.
12815 (create_addrmap_from_aranges): Likewise.
12816 (dw2_find_pc_sect_compunit_symtab): Likewise.
12817 (process_psymtab_comp_unit_reader): Likewise.
12818 (add_partial_symbol): Likewise.
12819 (add_partial_subprogram): Likewise.
12820 (process_full_comp_unit): Likewise.
12821 (read_file_scope): Likewise.
12822 (read_func_scope): Likewise.
12823 (read_lexical_block_scope): Likewise.
12824 (read_call_site_scope): Likewise.
12825 (dwarf2_rnglists_process): Likewise.
12826 (dwarf2_ranges_process): Likewise.
12827 (dwarf2_ranges_read): Likewise.
12828 (dwarf_decode_lines_1): Likewise.
12829 (new_symbol): Likewise.
12830 (dwarf2_fetch_die_loc_sect_off): Likewise.
12831 (dwarf2_per_cu_text_offset): Likewise.
12832 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
12833 * hppa-tdep.c (read_unwind_info): Likewise.
12834 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
12835 * psympriv.h (struct partial_symtab): Likewise.
12836 * psymtab.c (find_pc_sect_psymtab): Likewise.
12837 * solib-svr4.c (enable_break): Likewise.
12838 * stap-probe.c (relocate_address): Use
12839 objfile::data_section_offset.
12840 * xcoffread.c (enter_line_range): Use
12841 objfile::text_section_offset.
12842 (read_xcoff_symtab): Likewise.
12843
ab53f382
SM
128442020-01-23 Simon Marchi <simon.marchi@efficios.com>
12845
12846 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
12847 declaration to narrower scopes.
12848
e7eee665
SM
128492020-01-23 Simon Marchi <simon.marchi@efficios.com>
12850
12851 * darwin-nat.h (struct darwin_exception_msg, enum
12852 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
12853 Move up.
12854 (class darwin_nat_target) <wait_1, check_new_threads,
12855 decode_exception_message, decode_message, stop_inferior,
12856 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
12857 * darwin-nat.c (darwin_check_new_threads): Rename to...
12858 (darwin_nat_target::check_new_threads): ... this.
12859 (darwin_suspend_inferior_it): Remove.
12860 (darwin_decode_exception_message): Rename to...
12861 (darwin_nat_target::decode_exception_message): ... this.
12862 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
12863 (darwin_decode_message): Rename to...
12864 (darwin_nat_target::decode_message): ... this.
12865 (cancel_breakpoint): Rename to...
12866 (darwin_nat_target::cancel_breakpoint): ... this.
12867 (darwin_wait): Rename to...
12868 (darwin_nat_target::wait_1): ... this. Use range-based for loop
12869 instead of iterate_over_inferiors.
12870 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
12871 (darwin_stop_inferior): Rename to...
12872 (darwin_nat_target::stop_inferior): ... this.
12873 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
12874 (darwin_init_thread_list): Rename to...
12875 (darwin_nat_target::init_thread_list): ... this.
12876 (darwin_ptrace_him): Rename to...
12877 (darwin_nat_target::ptrace_him): ... this.
12878 (darwin_nat_target::create_inferior): Pass lambda function to
12879 fork_inferior.
12880 (darwin_nat_target::detach): Call stop_inferior instead of
12881 darwin_stop_inferior.
12882 * fork-inferior.h (fork_inferior): Change init_trace_fun
12883 parameter to gdb::function_view.
12884 * fork-inferior.c (fork_inferior): Likewise.
12885
c162ed3e
HD
128862020-01-23 Hannes Domani <ssbssa@yahoo.de>
12887
12888 * i386-cygwin-tdep.c (core_process_module_section): Update.
12889 * windows-nat.c (struct lm_info_windows): Add text_offset.
12890 (windows_xfer_shared_libraries): Update.
12891 * windows-tdep.c (windows_xfer_shared_library):
12892 Add text_offset_cached argument.
12893 * windows-tdep.h (windows_xfer_shared_library): Update.
12894
a1237872
SM
128952020-01-21 Simon Marchi <simon.marchi@efficios.com>
12896
12897 * gdbarch.sh: Add declaration for _initialize_gdbarch.
12898
b3ee6dd9
SM
128992020-01-21 Simon Marchi <simon.marchi@efficios.com>
12900
12901 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
12902 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
12903 replace with range-based for.
12904 (gdbsim_interrupt_inferior): Remove.
12905 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
12906 with a range-based for. Inline code from
12907 gdbsim_interrupt_inferior.
12908
f9fac3c8
SM
129092020-01-21 Simon Marchi <simon.marchi@efficios.com>
12910
12911 * infrun.c (proceed): Fix indentation.
12912
f6474de9
TT
129132020-01-21 Tom Tromey <tromey@adacore.com>
12914
12915 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
12916 * python/python.c (python_extension_ops): Update.
12917 (gdbpy_colorize): New function.
12918 * python/lib/gdb/__init__.py (colorize): New function.
12919 * extension.h (ext_lang_colorize): Declare.
12920 * extension.c (ext_lang_colorize): New function.
12921 * extension-priv.h (struct extension_language_ops) <colorize>: New
12922 member.
12923 * cli/cli-style.c (_initialize_cli_style): Update help text.
12924
f0c702d4
LM
129252020-01-21 Luis Machado <luis.machado@linaro.org>
12926
12927 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
12928 <cond>: Change type to bool.
12929 (aarch64_displaced_step_b_cond): Update cond to use bool type.
12930 (aarch64_displaced_step_cb): Likewise.
12931 (aarch64_displaced_step_tb): Likewise.
12932
1ab139e5
LM
129332020-01-21 Luis Machado <luis.machado@linaro.org>
12934
12935 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
12936 output.
12937
0c271889
LM
129382020-01-21 Luis Machado <luis.machado@linaro.org>
12939
12940 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
12941 <pc_adjust>: Adjust the documentation.
12942 (aarch64_displaced_step_fixup): Check if PC really moved before
12943 adjusting it.
12944
4d89c1c7
TT
129452020-01-19 Tom Tromey <tom@tromey.com>
12946
12947 * disasm.c (~gdb_disassembler): New destructor.
12948 (gdb_buffered_insn_length): Call disassemble_free_target.
12949 * disasm.h (class gdb_disassembler): Declare destructor. Use
12950 DISABLE_COPY_AND_ASSIGN.
12951
c0ab21c2
TT
129522020-01-19 Tom Tromey <tom@tromey.com>
12953
12954 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
12955 (die_reader_func_ftype): Remove.
12956 (cutu_reader): New class.
12957 (dw2_get_file_names_reader): Remove "data" parameter.
12958 (dw2_get_file_names): Use cutu_reader.
12959 (create_debug_type_hash_table): Update.
12960 (read_cutu_die_from_dwo): Update comment.
12961 (lookup_dwo_unit): Add dwo_name parameter.
12962 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
12963 die_reader_func_ftype and data parameters.
12964 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
12965 Remove die_reader_func_ftype and data parameters.
12966 (~cutu_reader): New; from init_cutu_and_read_dies.
12967 (cutu_reader::cutu_reader): Rename from
12968 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
12969 and data parameters.
12970 (init_cutu_and_read_dies_simple): Remove.
12971 (struct process_psymtab_comp_unit_data): Remove.
12972 (process_psymtab_comp_unit_reader): Remove data parameter; add
12973 want_partial_unit and pretend_language parameters.
12974 (process_psymtab_comp_unit): Use cutu_reader.
12975 (build_type_psymtabs_reader): Remove data parameter.
12976 (build_type_psymtabs_1): Use cutu_reader.
12977 (process_skeletonless_type_unit): Likewise.
12978 (load_partial_comp_unit_reader): Remove.
12979 (load_partial_comp_unit): Use cutu_reader.
12980 (load_full_comp_unit_reader): Remove.
12981 (load_full_comp_unit): Use cutu_reader.
12982 (struct create_dwo_cu_data): Remove.
12983 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
12984 dwo_unit parameters.
12985 (create_cus_hash_table): Use cutu_reader.
12986 (struct dwarf2_read_addr_index_data): Remove.
12987 (dwarf2_read_addr_index_reader): Remove.
12988 (dwarf2_read_addr_index): Use cutu_reader.
12989 (read_signatured_type_reader): Remove.
12990 (read_signatured_type): Use cutu_reader.
12991
45bbae5c
TT
129922020-01-19 Tom Tromey <tom@tromey.com>
12993
12994 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
12995 * tui/tui-wingeneral.h (class tui_suppress_output): New.
12996 (tui_wrefresh): Declare.
12997 * tui/tui-wingeneral.c (suppress_output): New global.
12998 (tui_suppress_output, ~tui_suppress_output): New constructor and
12999 destructor.
13000 (tui_wrefresh): New function.
13001 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
13002 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
13003 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
13004 method.
13005 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
13006 tui_wrefresh.
13007 (tui_data_window::no_refresh): New method.
13008 (tui_data_item_window::refresh_window): Call tui_wrefresh.
13009 (tui_reg_command): Use tui_suppress_output
13010 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
13011 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
13012 method.
13013 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
13014
4f13c1c0
TT
130152020-01-19 Tom Tromey <tom@tromey.com>
13016
13017 * tui/tui-winsource.c (tui_update_source_windows_with_line):
13018 Handle case where symtab is null.
13019
fa47e446
SM
130202020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
13021
13022 * linux-fork.c (one_fork_p): Simplify.
13023
26f42329
SM
130242020-01-17 Simon Marchi <simon.marchi@efficios.com>
13025
13026 * top.c (struct qt_args): Remove.
13027 (kill_or_detach): Change return type to void, replace `void *`
13028 parameter with a proper one.
13029 (print_inferior_quit_action): Likewise.
13030 (quit_confirm): Use range-based for loop to iterate over inferiors.
13031 (quit_force): Likewise.
13032
a9ac81b1
SM
130332020-01-17 Simon Marchi <simon.marchi@efficios.com>
13034
13035 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
13036 `void *` parameter with proper parameters.
13037 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
13038 (print_one_inferior): Change return type to void, replace `void *`
13039 parameter with proper parameters.
13040 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
13041 inferiors.
13042 (get_other_inferior): Remove.
13043 (mi_cmd_remove_inferior): Use range-based loop to iterate over
13044 inferiors.
13045
788eca49
SM
130462020-01-17 Simon Marchi <simon.marchi@efficios.com>
13047
13048 * mi/mi-interp.c (report_initial_inferior): Remove.
13049 (mi_interp::init): Use range-based for to iterate over inferiors.
13050
d9bc85b6
SM
130512020-01-17 Simon Marchi <simon.marchi@efficios.com>
13052
13053 * python/py-inferior.c (build_inferior_list): Remove.
13054 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
13055
40c94099
CB
130562020-01-16 Christian Biesinger <cbiesinger@google.com>
13057
13058 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
13059 (btrace_stitch_trace): Likewise.
13060 * charset.c (intermediate_encoding): Likewise (vaild).
13061 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
13062 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
13063 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
13064
e0cdfe3c
HD
130652020-01-16 Hannes Domani <ssbssa@yahoo.de>
13066
13067 * windows-tdep.c (windows_get_tlb_type):
13068 Add rtl_user_process_parameters type.
13069
790f1718 130702020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 13071 Norbert Lange <nolange79@gmail.com>
790f1718
PA
13072
13073 PR build/24805
13074 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
13075 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
13076 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
13077 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
13078 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
13079 (ps_plog): Redeclare exported functions with default visibility.
13080
3112ed97
NA
130812020-01-16 Nitika Achra <Nitika.Achra@amd.com>
13082
13083 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
13084 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
13085
8dc3273e
SM
130862020-01-15 Simon Marchi <simon.marchi@efficios.com>
13087
13088 * infcmd.c (post_create_inferior): Use get_thread_regcache
13089 instead of get_current_regcache.
13090
ff47f4f0
TT
130912020-01-14 Tom Tromey <tom@tromey.com>
13092
13093 PR symtab/12535:
13094 * python/python.c (gdbpy_decode_line): Treat empty string the same
13095 as no argument.
13096
975f45b7
TT
130972020-01-14 Tom Tromey <tom@tromey.com>
13098
13099 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
13100
25e57356
TT
131012020-01-14 Tom Tromey <tom@tromey.com>
13102
13103 * nat/linux-btrace.c: Don't include <config.h>.
13104 * nat/linux-ptrace.c: Don't include <config.h>.
13105 * nat/x86-linux-dregs.c: Don't include <config.h>.
13106
05ea2a05
TT
131072020-01-14 Tom Tromey <tom@tromey.com>
13108
13109 * configure: Rebuild.
13110 * configure.ac: Move many checks to ../gdbsupport/common.m4.
13111
01027315
TT
131122020-01-14 Tom Tromey <tom@tromey.com>
13113
13114 * nat/x86-linux-dregs.c: Include configh.h.
13115 * nat/linux-ptrace.c: Include configh.h.
13116 * nat/linux-btrace.c: Include configh.h.
13117 * defs.h: Include config.h, bfd.h.
13118 * configure.ac: Don't source common.host.
13119 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
13120 * configure: Rebuild.
13121 * acinclude.m4: Update path.
13122 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
13123 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
13124 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
13125 (CLIBS): Add LIBSUPPORT.
13126 (CDEPS): Likewise.
13127 (COMMON_SFILES): Remove gdbsupport files.
13128 (HFILES_NO_SRCDIR): Likewise.
13129 (stamp-version): Update path to create-version.sh.
13130 (ALLDEPFILES): Remove gdbsupport files.
13131
b2ceabe8
TT
131322020-01-14 Tom Tromey <tom@tromey.com>
13133
13134 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
13135 USE_WIN32API when needed.
13136 * configure.ac (USE_WIN32API): Don't define.
13137 (WIN32LIBS): Use WIN32APILIBS.
13138 * configure: Rebuild.
13139
25c51f71
TT
131402020-01-14 Tom Tromey <tom@tromey.com>
13141
13142 * configure: Rebuild.
13143 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
13144
717c684d
BE
131452020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
13146
13147 * skip.c (skip_function_command): Make skip w/o arguments use the
13148 name of the inlined function if pc is inside any inlined function.
13149
7da6a5b9
LM
131502020-01-14 Luis Machado <luis.machado@linaro.org>
13151
13152 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
13153 * infrun.c (resume_1): Likewise.
13154 (handle_inferior_event): Remove stale comment.
13155 * linux-nat.c (linux_nat_target::resume): Update comments.
13156 (save_stop_reason): Likewise.
13157 (linux_nat_filter_event): Likewise.
13158 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
13159
44e4c775
AB
131602020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
13161
13162 * elfread.c (record_minimal_symbol): Set section index to 0 for
13163 non-allocatable sections.
13164
18a8505e
AT
13165
131662020-01-13 Ali Tamur <tamur@google.com>
13167
13168 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
13169 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
13170 to gdb::optional. Update comments.
13171 (dwo_file): Update comments.
13172 (read_attribute): Update API to take an additional out parameter,
13173 need_reprocess. This is used to mark attributes that need other
13174 attributes (e.g. str_offsets_base) for correct computation which may not
13175 have been read yet.
13176 (read_attribute_reprocess): New function declaration.
13177 (read_addr_index): Likewise.
13178 (read_dwo_str_index): Likewise.
13179 (read_stub_str_index): Likewise.
13180 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
13181 (lookup_addr_base): New function definition.
13182 (lookup_ranges_base): Likewise.
13183 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
13184 lookup_ranges_base.
13185 (init_cutu_and_read_dies): Update comments.
13186 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
13187 unit. This is used to inherit parent's str_offsets_base and addr_base.
13188 Update comments.
13189 (init_cutu_and_read_dies_simple): Reflect API changes.
13190 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
13191 (create_cus_hash_table): Change API to take parent compile unit.
13192 Reflect API changes.
13193 (open_and_init_dwo_file): Reflect API changes.
13194 (dwarf2_get_pc_bounds): Update comments.
13195 (dwarf2_record_block_ranges): Likewise.
13196 (read_full_die_1): Change implementation to reprocess attributes that
13197 need str_offsets_base and addr_base.
13198 (partial_die_info::read): Likewise.
13199 (read_attribute_reprocess): New function definition.
13200 (read_attribute_value): Change API to take an additional out parameter,
13201 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
13202 when a non-dwo compile unit has index based attributes.
13203 (read_attribute): Reflect API changes.
13204 (read_addr_index_1): Reflect API changes. Update comments.
13205 (dwarf2_read_addr_index_data): Reflect API changes.
13206 (dwarf2_read_addr_index): Likewise.
13207 (read_str_index): Change API and implementation. This becomes a helper
13208 to be used by the new string index related methods. Update error
13209 message and comments.
13210 (read_dwo_str_index): New function definition.
13211 (read_stub_str_index): Likewise.
13212 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
13213 * symfile.h (dwarf2_debug_sections): Likewise.
13214 * xcoffread.c (dwarf2_debug_sections): Likewise.
13215
0cac9354
SM
132162020-01-13 Simon Marchi <simon.marchi@efficios.com>
13217
13218 * gdbcore.h (struct core_fns) <core_read_registers>: Change
13219 core_reg_sect type to gdb_byte *.
13220 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
13221 * cris-tdep.c (fetch_core_registers): Likewise.
13222 * corelow.c (core_target::get_core_register_section): Change
13223 type of `contents` to gdb::byte_vector.
13224
9a6d629c
AB
132252020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
13226
13227 * tui/tui-wingeneral.c (box_win): Position the title in the center
13228 of the border.
13229
d8b2f9e3
SM
132302020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13231
13232 * corelow.c (core_target::get_core_register_section): Use
13233 std::vector instead of alloca.
13234
bb564c58
SM
132352020-01-13 Simon Marchi <simon.marchi@efficios.com>
13236
13237 * warning.m4: Add -Wmissing-declarations to build_warnings.
13238 * configure: Re-generate.
13239
6b366111
SM
132402020-01-13 Simon Marchi <simon.marchi@efficios.com>
13241
13242 * python/python.c (init__gdb_module): Add declaration.
13243
6c265988
SM
132442020-01-13 Simon Marchi <simon.marchi@efficios.com>
13245
13246 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
13247 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
13248 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
13249 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
13250 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
13251 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
13252 * ada-exp.y (_initialize_ada_exp): Add declaration.
13253 * ada-lang.c (_initialize_ada_language): Add declaration.
13254 * ada-tasks.c (_initialize_tasks): Add declaration.
13255 * agent.c (_initialize_agent): Add declaration.
13256 * aix-thread.c (_initialize_aix_thread): Add declaration.
13257 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
13258 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
13259 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
13260 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
13261 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
13262 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
13263 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
13264 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
13265 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
13266 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
13267 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
13268 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
13269 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
13270 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
13271 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
13272 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
13273 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
13274 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
13275 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
13276 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
13277 * annotate.c (_initialize_annotate): Add declaration.
13278 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
13279 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
13280 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
13281 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
13282 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
13283 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
13284 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
13285 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
13286 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
13287 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
13288 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
13289 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
13290 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
13291 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
13292 * auto-load.c (_initialize_auto_load): Add declaration.
13293 * auxv.c (_initialize_auxv): Add declaration.
13294 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
13295 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
13296 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
13297 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
13298 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
13299 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
13300 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
13301 * breakpoint.c (_initialize_breakpoint): Add declaration.
13302 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
13303 * btrace.c (_initialize_btrace): Add declaration.
13304 * charset.c (_initialize_charset): Add declaration.
13305 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
13306 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
13307 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
13308 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
13309 * cli/cli-script.c (_initialize_cli_script): Add declaration.
13310 * cli/cli-style.c (_initialize_cli_style): Add declaration.
13311 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
13312 * coffread.c (_initialize_coffread): Add declaration.
13313 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
13314 * compile/compile.c (_initialize_compile): Add declaration.
13315 * complaints.c (_initialize_complaints): Add declaration.
13316 * completer.c (_initialize_completer): Add declaration.
13317 * copying.c (_initialize_copying): Add declaration.
13318 * corefile.c (_initialize_core): Add declaration.
13319 * corelow.c (_initialize_corelow): Add declaration.
13320 * cp-abi.c (_initialize_cp_abi): Add declaration.
13321 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
13322 * cp-support.c (_initialize_cp_support): Add declaration.
13323 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
13324 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
13325 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
13326 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
13327 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
13328 * ctfread.c (_initialize_ctfread): Add declaration.
13329 * d-lang.c (_initialize_d_language): Add declaration.
13330 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
13331 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
13332 * dbxread.c (_initialize_dbxread): Add declaration.
13333 * dcache.c (_initialize_dcache): Add declaration.
13334 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
13335 * disasm.c (_initialize_disasm): Add declaration.
13336 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
13337 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
13338 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
13339 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
13340 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
13341 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
13342 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
13343 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
13344 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
13345 * elfread.c (_initialize_elfread): Add declaration.
13346 * exec.c (_initialize_exec): Add declaration.
13347 * extension.c (_initialize_extension): Add declaration.
13348 * f-lang.c (_initialize_f_language): Add declaration.
13349 * f-valprint.c (_initialize_f_valprint): Add declaration.
13350 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
13351 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
13352 * filesystem.c (_initialize_filesystem): Add declaration.
13353 * findcmd.c (_initialize_mem_search): Add declaration.
13354 * findvar.c (_initialize_findvar): Add declaration.
13355 * fork-child.c (_initialize_fork_child): Add declaration.
13356 * frame-base.c (_initialize_frame_base): Add declaration.
13357 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
13358 * frame.c (_initialize_frame): Add declaration.
13359 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
13360 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
13361 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
13362 * gcore.c (_initialize_gcore): Add declaration.
13363 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
13364 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
13365 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
13366 * gdbarch.c (_initialize_gdbarch): Add declaration.
13367 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
13368 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
13369 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
13370 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
13371 * go-lang.c (_initialize_go_language): Add declaration.
13372 * go32-nat.c (_initialize_go32_nat): Add declaration.
13373 * guile/guile.c (_initialize_guile): Add declaration.
13374 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
13375 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
13376 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
13377 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
13378 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
13379 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
13380 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
13381 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
13382 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
13383 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
13384 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
13385 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
13386 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
13387 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
13388 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
13389 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
13390 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
13391 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
13392 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
13393 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
13394 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
13395 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
13396 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
13397 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
13398 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
13399 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
13400 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
13401 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
13402 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
13403 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
13404 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
13405 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
13406 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
13407 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
13408 * infcall.c (_initialize_infcall): Add declaration.
13409 * infcmd.c (_initialize_infcmd): Add declaration.
13410 * inflow.c (_initialize_inflow): Add declaration.
13411 * infrun.c (_initialize_infrun): Add declaration.
13412 * interps.c (_initialize_interpreter): Add declaration.
13413 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
13414 * jit.c (_initialize_jit): Add declaration.
13415 * language.c (_initialize_language): Add declaration.
13416 * linux-fork.c (_initialize_linux_fork): Add declaration.
13417 * linux-nat.c (_initialize_linux_nat): Add declaration.
13418 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
13419 * linux-thread-db.c (_initialize_thread_db): Add declaration.
13420 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
13421 * m2-lang.c (_initialize_m2_language): Add declaration.
13422 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
13423 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
13424 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
13425 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
13426 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
13427 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
13428 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
13429 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
13430 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
13431 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
13432 * machoread.c (_initialize_machoread): Add declaration.
13433 * macrocmd.c (_initialize_macrocmd): Add declaration.
13434 * macroscope.c (_initialize_macroscope): Add declaration.
13435 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
13436 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
13437 * maint.c (_initialize_maint_cmds): Add declaration.
13438 * mdebugread.c (_initialize_mdebugread): Add declaration.
13439 * memattr.c (_initialize_mem): Add declaration.
13440 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
13441 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
13442 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
13443 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
13444 * mi/mi-main.c (_initialize_mi_main): Add declaration.
13445 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
13446 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
13447 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
13448 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
13449 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
13450 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
13451 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
13452 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
13453 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
13454 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
13455 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
13456 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
13457 * mipsread.c (_initialize_mipsread): Add declaration.
13458 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
13459 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
13460 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
13461 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
13462 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
13463 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
13464 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
13465 * nto-procfs.c (_initialize_procfs): Add declaration.
13466 * objc-lang.c (_initialize_objc_language): Add declaration.
13467 * observable.c (_initialize_observer): Add declaration.
13468 * opencl-lang.c (_initialize_opencl_language): Add declaration.
13469 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
13470 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
13471 * osabi.c (_initialize_gdb_osabi): Add declaration.
13472 * osdata.c (_initialize_osdata): Add declaration.
13473 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
13474 * parse.c (_initialize_parse): Add declaration.
13475 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
13476 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
13477 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
13478 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
13479 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
13480 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
13481 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
13482 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
13483 * printcmd.c (_initialize_printcmd): Add declaration.
13484 * probe.c (_initialize_probe): Add declaration.
13485 * proc-api.c (_initialize_proc_api): Add declaration.
13486 * proc-events.c (_initialize_proc_events): Add declaration.
13487 * proc-service.c (_initialize_proc_service): Add declaration.
13488 * procfs.c (_initialize_procfs): Add declaration.
13489 * producer.c (_initialize_producer): Add declaration.
13490 * psymtab.c (_initialize_psymtab): Add declaration.
13491 * python/python.c (_initialize_python): Add declaration.
13492 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
13493 * record-btrace.c (_initialize_record_btrace): Add declaration.
13494 * record-full.c (_initialize_record_full): Add declaration.
13495 * record.c (_initialize_record): Add declaration.
13496 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
13497 * regcache.c (_initialize_regcache): Add declaration.
13498 * reggroups.c (_initialize_reggroup): Add declaration.
13499 * remote-notif.c (_initialize_notif): Add declaration.
13500 * remote-sim.c (_initialize_remote_sim): Add declaration.
13501 * remote.c (_initialize_remote): Add declaration.
13502 * reverse.c (_initialize_reverse): Add declaration.
13503 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
13504 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
13505 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
13506 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
13507 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
13508 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
13509 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
13510 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
13511 Add declaration.
13512 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
13513 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
13514 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
13515 * rust-exp.y (_initialize_rust_exp): Add declaration.
13516 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
13517 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
13518 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
13519 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
13520 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
13521 * score-tdep.c (_initialize_score_tdep): Add declaration.
13522 * ser-go32.c (_initialize_ser_dos): Add declaration.
13523 * ser-mingw.c (_initialize_ser_windows): Add declaration.
13524 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
13525 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
13526 * ser-uds.c (_initialize_ser_socket): Add declaration.
13527 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
13528 * serial.c (_initialize_serial): Add declaration.
13529 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
13530 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
13531 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
13532 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
13533 * skip.c (_initialize_step_skip): Add declaration.
13534 * sol-thread.c (_initialize_sol_thread): Add declaration.
13535 * solib-aix.c (_initialize_solib_aix): Add declaration.
13536 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
13537 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
13538 * solib-frv.c (_initialize_frv_solib): Add declaration.
13539 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
13540 * solib-target.c (_initialize_solib_target): Add declaration.
13541 * solib.c (_initialize_solib): Add declaration.
13542 * source-cache.c (_initialize_source_cache): Add declaration.
13543 * source.c (_initialize_source): Add declaration.
13544 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
13545 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
13546 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
13547 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
13548 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
13549 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
13550 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
13551 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
13552 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
13553 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
13554 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
13555 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
13556 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
13557 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
13558 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
13559 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
13560 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
13561 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
13562 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
13563 * stabsread.c (_initialize_stabsread): Add declaration.
13564 * stack.c (_initialize_stack): Add declaration.
13565 * stap-probe.c (_initialize_stap_probe): Add declaration.
13566 * std-regs.c (_initialize_frame_reg): Add declaration.
13567 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
13568 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
13569 * symfile.c (_initialize_symfile): Add declaration.
13570 * symmisc.c (_initialize_symmisc): Add declaration.
13571 * symtab.c (_initialize_symtab): Add declaration.
13572 * target.c (_initialize_target): Add declaration.
13573 * target-connection.c (_initialize_target_connection): Add
13574 declaration.
13575 * target-dcache.c (_initialize_target_dcache): Add declaration.
13576 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
13577 * thread.c (_initialize_thread): Add declaration.
13578 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
13579 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
13580 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
13581 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
13582 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
13583 * tracectf.c (_initialize_ctf): Add declaration.
13584 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
13585 * tracefile.c (_initialize_tracefile): Add declaration.
13586 * tracepoint.c (_initialize_tracepoint): Add declaration.
13587 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
13588 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
13589 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
13590 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
13591 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
13592 * tui/tui-win.c (_initialize_tui_win): Add declaration.
13593 * tui/tui.c (_initialize_tui): Add declaration.
13594 * typeprint.c (_initialize_typeprint): Add declaration.
13595 * ui-style.c (_initialize_ui_style): Add declaration.
13596 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
13597 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
13598 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
13599 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
13600 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
13601 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
13602 * unittests/filtered_iterator-selftests.c
13603 (_initialize_filtered_iterator_selftests): Add declaration.
13604 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
13605 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
13606 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
13607 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
13608 * unittests/main-thread-selftests.c
13609 (_initialize_main_thread_selftests): Add declaration.
13610 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
13611 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
13612 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
13613 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
13614 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
13615 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
13616 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
13617 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
13618 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
13619 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
13620 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
13621 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
13622 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
13623 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
13624 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
13625 declaration.
13626 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
13627 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
13628 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
13629 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
13630 * user-regs.c (_initialize_user_regs): Add declaration.
13631 * utils.c (_initialize_utils): Add declaration.
13632 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
13633 * valops.c (_initialize_valops): Add declaration.
13634 * valprint.c (_initialize_valprint): Add declaration.
13635 * value.c (_initialize_values): Add declaration.
13636 * varobj.c (_initialize_varobj): Add declaration.
13637 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
13638 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
13639 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
13640 * windows-nat.c (_initialize_windows_nat): Add declaration.
13641 (_initialize_check_for_gdb_ini): Add declaration.
13642 (_initialize_loadable): Add declaration.
13643 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
13644 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
13645 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
13646 * xcoffread.c (_initialize_xcoffread): Add declaration.
13647 * xml-support.c (_initialize_xml_support): Add declaration.
13648 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
13649 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
13650 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
13651 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
13652
e2de1eec
SM
136532020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13654
13655 * regformats/regdat.sh: Generate declaration for init function.
13656
e0037b4c
SM
136572020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13658
13659 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
13660 up.
13661 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
13662 close_one_inferior>: New methods.
13663 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
13664 pass down target to find_inferior_pid.
13665 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
13666 Pass down target to find_inferior_ptid.
13667 (gdbsim_target::create_inferior): Pass down target to
13668 add_thread_silent.
13669 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
13670 target down to find_inferior_ptid and switch_to_thread.
13671 (gdbsim_target::close): Update to call close_one_inferior.
13672 (struct resume_data): Remove.
13673 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
13674 directly, rather than through a void pointer.
13675 (gdbsim_target::resume): Update to call resume_one_inferior.
13676
58920b5b
SM
136772020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
13678
13679 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
13680
4ec89149
PA
136812020-01-12 Pedro Alves <palves@redhat.com>
13682
13683 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
13684 directly for the current inferior instead of
13685 discard_all_inferiors.
13686 (discard_all_inferiors): Delete.
13687
7c392d1d
TT
136882020-01-11 Tom Tromey <tom@tromey.com>
13689
13690 * tui/tui-wingeneral.c (box_win): Check cli_styling.
13691 * tui/tui-winsource.c (tui_source_window_base::refill): Use
13692 deprecated_safe_get_selected_frame.
13693
d9ebdab7
TBA
136942020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13695
13696 * inferior.c (print_inferior): Switch inferior before printing it.
13697
f3c469b9
PA
136982020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
13699 Pedro Alves <palves@redhat.com>
13700
13701 * progspace-and-thread.c (switch_to_program_space_and_thread):
13702 Assert there's an inferior for PSPACE. Use
13703 switch_to_inferior_no_thread to switch the inferior too.
13704 * progspace.c (program_space::~program_space): Call
13705 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
13706 (program_space::free_all_objfiles): Don't call clear_symtab_users
13707 here.
13708 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
13709
65c574f6
PA
137102020-01-10 Pedro Alves <palves@redhat.com>
13711
13712 * NEWS: Mention multi-target debugging, "info connections", and
13713 "add-inferior -no-connection".
13714
2f4fcf00
PA
137152020-01-10 Pedro Alves <palves@redhat.com>
13716
13717 * infrun.c: Include "target-connection.h".
13718 (check_multi_target_resumption): New.
13719 (proceed): Call it.
13720 * target-connection.c (make_target_connection_string): Make
13721 extern.
13722 * target-connection.h (make_target_connection_string): Declare.
13723
121b3efd
PA
137242020-01-10 Pedro Alves <palves@redhat.com>
13725
13726 * Makefile.in (COMMON_SFILES): Add target-connection.c.
13727 * inferior.c (uiout_field_connection): New function.
13728 (print_inferior): Add new "connection-id" column.
13729 (add_inferior_command): Show connection number/string of added
13730 inferior.
13731 * process-stratum-target.h
13732 (process_stratum_target::connection_string): New virtual method.
13733 (process_stratum_target::connection_number): New field.
13734 * remote.c (remote_target::connection_string): New override.
13735 * target-connection.c: New file.
13736 * target-connection.h: New file.
13737 * target.c (decref_target): Remove process_stratum targets from
13738 the connection list.
13739 (target_stack::push): Add process_stratum targets to the
13740 connection list.
13741
4f837581
PA
137422020-01-10 Pedro Alves <palves@redhat.com>
13743
13744 Revert:
13745 2016-04-12 Pedro Alves <palves@redhat.com>
13746 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
13747 Remove references to name.
13748 * serial.h (struct serial) <name>: Delete.
13749
f4ec508e
PA
137502020-01-10 Pedro Alves <palves@redhat.com>
13751
13752 * gdbarch-selftests.c (register_to_value_test): Remove "target
13753 already pushed" check.
13754
5b6d1e4f
PA
137552020-01-10 Pedro Alves <palves@redhat.com>
13756 John Baldwin <jhb@FreeBSD.org>
13757
13758 * aarch64-linux-nat.c
13759 (aarch64_linux_nat_target::thread_architecture): Adjust.
13760 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
13761 (task_command_1): Likewise.
13762 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
13763 (aix_thread_target::wait, aix_thread_target::fetch_registers)
13764 (aix_thread_target::store_registers)
13765 (aix_thread_target::thread_alive): Adjust.
13766 * amd64-fbsd-tdep.c: Include "inferior.h".
13767 (amd64fbsd_get_thread_local_address): Pass down target.
13768 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
13769 thread's gdbarch instead of target_gdbarch.
13770 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
13771 get_last_target_status.
13772 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
13773 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
13774 inferiors.
13775 (update_inserted_breakpoint_locations): Skip if inferiors with no
13776 execution.
13777 (update_global_location_list): When handling moribund locations,
13778 find representative inferior for location's pspace, and use thread
13779 count of its process_stratum target.
13780 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
13781 * bsd-uthread.c (bsd_uthread_target::wait): Use
13782 as_process_stratum_target and adjust thread_change_ptid and
13783 add_thread calls.
13784 (bsd_uthread_target::update_thread_list): Use
13785 as_process_stratum_target and adjust find_thread_ptid,
13786 thread_change_ptid and add_thread calls.
13787 * btrace.c (maint_btrace_packet_history_cmd): Adjust
13788 find_thread_ptid call.
13789 * corelow.c (add_to_thread_list): Adjust add_thread call.
13790 (core_target_open): Adjust add_thread_silent and thread_count
13791 calls.
13792 (core_target::pid_to_str): Adjust find_inferior_ptid call.
13793 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
13794 * event-top.c (async_disconnect): Pop targets from all inferiors.
13795 * exec.c (add_target_sections): Push exec target on all inferiors
13796 sharing the program space.
13797 (remove_target_sections): Remove the exec target from all
13798 inferiors sharing the program space.
13799 (exec_on_vfork): New.
13800 * exec.h (exec_on_vfork): Declare.
13801 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
13802 Pass it down.
13803 (fbsd_nat_target::update_thread_list): Adjust.
13804 (fbsd_nat_target::resume): Adjust.
13805 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
13806 down.
13807 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
13808 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
13809 get_thread_arch_regcache call.
13810 * fork-child.c (gdb_startup_inferior): Pass target down to
13811 startup_inferior and set_executing.
13812 * gdbthread.h (struct process_stratum_target): Forward declare.
13813 (add_thread, add_thread_silent, add_thread_with_info)
13814 (in_thread_list): Add process_stratum_target parameter.
13815 (find_thread_ptid(inferior*, ptid_t)): New overload.
13816 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
13817 parameter.
13818 (all_threads()): Delete overload.
13819 (all_threads, all_non_exited_threads): Add process_stratum_target
13820 parameter.
13821 (all_threads_safe): Use brace initialization.
13822 (thread_count): Add process_stratum_target parameter.
13823 (set_resumed, set_running, set_stop_requested, set_executing)
13824 (threads_are_executing, finish_thread_state): Add
13825 process_stratum_target parameter.
13826 (switch_to_thread): Use is_current_thread.
13827 * i386-fbsd-tdep.c: Include "inferior.h".
13828 (i386fbsd_get_thread_local_address): Pass down target.
13829 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
13830 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
13831 have_inferiors check.
13832 * inf-ptrace.c (inf_ptrace_target::create_inferior)
13833 (inf_ptrace_target::attach): Adjust.
13834 * infcall.c (run_inferior_call): Adjust.
13835 * infcmd.c (run_command_1): Pass target to
13836 scoped_finish_thread_state.
13837 (proceed_thread_callback): Skip inferiors with no execution.
13838 (continue_command): Rename 'all_threads' local to avoid hiding
13839 'all_threads' function. Adjust get_last_target_status call.
13840 (prepare_one_step): Adjust set_running call.
13841 (signal_command): Use user_visible_resume_target. Compare thread
13842 pointers instead of inferior_ptid.
13843 (info_program_command): Adjust to pass down target.
13844 (attach_command): Mark target's 'thread_executing' flag.
13845 (stop_current_target_threads_ns): New, factored out from ...
13846 (interrupt_target_1): ... this. Switch inferior before making
13847 target calls.
13848 * inferior-iter.h
13849 (struct all_inferiors_iterator, struct all_inferiors_range)
13850 (struct all_inferiors_safe_range)
13851 (struct all_non_exited_inferiors_range): Filter on
13852 process_stratum_target too. Remove explicit.
13853 * inferior.c (inferior::inferior): Push dummy target on target
13854 stack.
13855 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
13856 Add process_stratum_target parameter, and pass it down.
13857 (have_live_inferiors): Adjust.
13858 (switch_to_inferior_and_push_target): New.
13859 (add_inferior_command, clone_inferior_command): Handle
13860 "-no-connection" parameter. Use
13861 switch_to_inferior_and_push_target.
13862 (_initialize_inferior): Mention "-no-connection" option in
13863 the help of "add-inferior" and "clone-inferior" commands.
13864 * inferior.h: Include "process-stratum-target.h".
13865 (interrupt_target_1): Use bool.
13866 (struct inferior) <push_target, unpush_target, target_is_pushed,
13867 find_target_beneath, top_target, process_target, target_at,
13868 m_stack>: New.
13869 (discard_all_inferiors): Delete.
13870 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
13871 (all_inferiors, all_non_exited_inferiors): Add
13872 process_stratum_target parameter.
13873 * infrun.c: Include "gdb_select.h" and <unordered_map>.
13874 (target_last_proc_target): New global.
13875 (follow_fork_inferior): Push target on new inferior. Pass target
13876 to add_thread_silent. Call exec_on_vfork. Handle target's
13877 reference count.
13878 (follow_fork): Adjust get_last_target_status call. Also consider
13879 target.
13880 (follow_exec): Push target on new inferior.
13881 (struct execution_control_state) <target>: New field.
13882 (user_visible_resume_target): New.
13883 (do_target_resume): Call target_async.
13884 (resume_1): Set target's threads_executing flag. Consider resume
13885 target.
13886 (commit_resume_all_targets): New.
13887 (proceed): Also consider resume target. Skip threads of inferiors
13888 with no execution. Commit resumtion in all targets.
13889 (start_remote): Pass current inferior to wait_for_inferior.
13890 (infrun_thread_stop_requested): Consider target as well. Pass
13891 thread_info pointer to clear_inline_frame_state instead of ptid.
13892 (infrun_thread_thread_exit): Consider target as well.
13893 (random_pending_event_thread): New inferior parameter. Use it.
13894 (do_target_wait): Rename to ...
13895 (do_target_wait_1): ... this. Add inferior parameter, and pass it
13896 down.
13897 (threads_are_resumed_pending_p, do_target_wait): New.
13898 (prepare_for_detach): Adjust calls.
13899 (wait_for_inferior): New inferior parameter. Handle it. Use
13900 do_target_wait_1 instead of do_target_wait.
13901 (fetch_inferior_event): Adjust. Switch to representative
13902 inferior. Pass target down.
13903 (set_last_target_status): Add process_stratum_target parameter.
13904 Save target in global.
13905 (get_last_target_status): Add process_stratum_target parameter and
13906 handle it.
13907 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
13908 (context_switch): Check inferior_ptid == null_ptid before calling
13909 inferior_thread().
13910 (get_inferior_stop_soon): Pass down target.
13911 (wait_one): Rename to ...
13912 (poll_one_curr_target): ... this.
13913 (struct wait_one_event): New.
13914 (wait_one): New.
13915 (stop_all_threads): Adjust.
13916 (handle_no_resumed, handle_inferior_event): Adjust to consider the
13917 event's target.
13918 (switch_back_to_stepped_thread): Also consider target.
13919 (print_stop_event): Update.
13920 (normal_stop): Update. Also consider the resume target.
13921 * infrun.h (wait_for_inferior): Remove declaration.
13922 (user_visible_resume_target): New declaration.
13923 (get_last_target_status, set_last_target_status): New
13924 process_stratum_target parameter.
13925 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
13926 process_stratum_target parameter, and use it.
13927 (clear_inline_frame_state (thread_info*)): New.
13928 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
13929 process_stratum_target parameter.
13930 (clear_inline_frame_state (thread_info*)): Declare.
13931 * linux-fork.c (delete_checkpoint_command): Pass target down to
13932 find_thread_ptid.
13933 (checkpoint_command): Adjust.
13934 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
13935 instead of just tweaking inferior_ptid.
13936 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
13937 (exit_lwp): Pass target down to find_thread_ptid.
13938 (attach_proc_task_lwp_callback): Pass target down to
13939 add_thread/set_running/set_executing.
13940 (linux_nat_target::attach): Pass target down to
13941 thread_change_ptid.
13942 (get_detach_signal): Pass target down to find_thread_ptid.
13943 Consider last target status's target.
13944 (linux_resume_one_lwp_throw, resume_lwp)
13945 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
13946 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
13947 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
13948 (linux_nat_target::async_wait_fd): New.
13949 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
13950 target down.
13951 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
13952 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
13953 * linux-thread-db.c (struct thread_db_info::process_target): New
13954 field.
13955 (add_thread_db_info): Save target.
13956 (get_thread_db_info): New process_stratum_target parameter. Also
13957 match target.
13958 (delete_thread_db_info): New process_stratum_target parameter.
13959 Also match target.
13960 (thread_from_lwp): Adjust to pass down target.
13961 (thread_db_notice_clone): Pass down target.
13962 (check_thread_db_callback): Pass down target.
13963 (try_thread_db_load_1): Always push the thread_db target.
13964 (try_thread_db_load, record_thread): Pass target down.
13965 (thread_db_target::detach): Pass target down. Always unpush the
13966 thread_db target.
13967 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
13968 target down. Always unpush the thread_db target.
13969 (find_new_threads_callback, thread_db_find_new_threads_2)
13970 (thread_db_target::update_thread_list): Pass target down.
13971 (thread_db_target::pid_to_str): Pass current inferior down.
13972 (thread_db_target::get_thread_local_address): Pass target down.
13973 (thread_db_target::resume, maintenance_check_libthread_db): Pass
13974 target down.
13975 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
13976 * procfs.c (procfs_target::procfs_init_inferior): Declare.
13977 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
13978 (procfs_init_inferior): Rename to ...
13979 (procfs_target::procfs_init_inferior): ... this and adjust.
13980 (procfs_target::create_inferior, procfs_notice_thread)
13981 (procfs_do_thread_registers): Adjust.
13982 * ppc-fbsd-tdep.c: Include "inferior.h".
13983 (ppcfbsd_get_thread_local_address): Pass down target.
13984 * proc-service.c (ps_xfer_memory): Switch current inferior and
13985 program space as well.
13986 (get_ps_regcache): Pass target down.
13987 * process-stratum-target.c
13988 (process_stratum_target::thread_address_space)
13989 (process_stratum_target::thread_architecture): Pass target down.
13990 * process-stratum-target.h
13991 (process_stratum_target::threads_executing): New field.
13992 (as_process_stratum_target): New.
13993 * ravenscar-thread.c
13994 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
13995 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
13996 down.
13997 * record-btrace.c (record_btrace_target::info_record): Adjust.
13998 (record_btrace_target::record_method)
13999 (record_btrace_target::record_is_replaying)
14000 (record_btrace_target::fetch_registers)
14001 (get_thread_current_frame_id, record_btrace_target::resume)
14002 (record_btrace_target::wait, record_btrace_target::stop): Pass
14003 target down.
14004 * record-full.c (record_full_wait_1): Switch to event thread.
14005 Pass target down.
14006 * regcache.c (regcache::regcache)
14007 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
14008 process_stratum_target parameter and handle it.
14009 (current_thread_target): New global.
14010 (get_thread_regcache): Add process_stratum_target parameter and
14011 handle it. Switch inferior before calling target method.
14012 (get_thread_regcache): Pass target down.
14013 (get_thread_regcache_for_ptid): Pass target down.
14014 (registers_changed_ptid): Add process_stratum_target parameter and
14015 handle it.
14016 (registers_changed_thread, registers_changed): Pass target down.
14017 (test_get_thread_arch_aspace_regcache): New.
14018 (current_regcache_test): Define a couple local test_target_ops
14019 instances and use them for testing.
14020 (readwrite_regcache): Pass process_stratum_target parameter.
14021 (cooked_read_test, cooked_write_test): Pass mock_target down.
14022 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
14023 (get_thread_arch_aspace_regcache): Add process_stratum_target
14024 parameter.
14025 (regcache::target): New method.
14026 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
14027 (regcache::registers_changed_ptid): Add process_stratum_target
14028 parameter.
14029 (regcache::m_target): New field.
14030 (registers_changed_ptid): Add process_stratum_target parameter.
14031 * remote.c (remote_state::supports_vCont_probed): New field.
14032 (remote_target::async_wait_fd): New method.
14033 (remote_unpush_and_throw): Add remote_target parameter.
14034 (get_current_remote_target): Adjust.
14035 (remote_target::remote_add_inferior): Push target.
14036 (remote_target::remote_add_thread)
14037 (remote_target::remote_notice_new_inferior)
14038 (get_remote_thread_info): Pass target down.
14039 (remote_target::update_thread_list): Skip threads of inferiors
14040 bound to other targets. (remote_target::close): Don't discard
14041 inferiors. (remote_target::add_current_inferior_and_thread)
14042 (remote_target::process_initial_stop_replies)
14043 (remote_target::start_remote)
14044 (remote_target::remote_serial_quit_handler): Pass down target.
14045 (remote_target::remote_unpush_target): New remote_target
14046 parameter. Unpush the target from all inferiors.
14047 (remote_target::remote_unpush_and_throw): New remote_target
14048 parameter. Pass it down.
14049 (remote_target::open_1): Check whether the current inferior has
14050 execution instead of checking whether any inferior is live. Pass
14051 target down.
14052 (remote_target::remote_detach_1): Pass down target. Use
14053 remote_unpush_target.
14054 (extended_remote_target::attach): Pass down target.
14055 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
14056 (remote_target::append_resumption): Pass down target.
14057 (remote_target::append_pending_thread_resumptions)
14058 (remote_target::remote_resume_with_hc, remote_target::resume)
14059 (remote_target::commit_resume): Pass down target.
14060 (remote_target::remote_stop_ns): Check supports_vCont_probed.
14061 (remote_target::interrupt_query)
14062 (remote_target::remove_new_fork_children)
14063 (remote_target::check_pending_events_prevent_wildcard_vcont)
14064 (remote_target::remote_parse_stop_reply)
14065 (remote_target::process_stop_reply): Pass down target.
14066 (first_remote_resumed_thread): New remote_target parameter. Pass
14067 it down.
14068 (remote_target::wait_as): Pass down target.
14069 (unpush_and_perror): New remote_target parameter. Pass it down.
14070 (remote_target::readchar, remote_target::remote_serial_write)
14071 (remote_target::getpkt_or_notif_sane_1)
14072 (remote_target::kill_new_fork_children, remote_target::kill): Pass
14073 down target.
14074 (remote_target::mourn_inferior): Pass down target. Use
14075 remote_unpush_target.
14076 (remote_target::core_of_thread)
14077 (remote_target::remote_btrace_maybe_reopen): Pass down target.
14078 (remote_target::pid_to_exec_file)
14079 (remote_target::thread_handle_to_thread_info): Pass down target.
14080 (remote_target::async_wait_fd): New.
14081 * riscv-fbsd-tdep.c: Include "inferior.h".
14082 (riscv_fbsd_get_thread_local_address): Pass down target.
14083 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
14084 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
14085 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
14086 Adjust.
14087 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
14088 * solib-svr4.c (enable_break): Pass down target.
14089 * spu-multiarch.c (parse_spufs_run): Pass down target.
14090 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
14091 * target-delegates.c: Regenerate.
14092 * target.c (g_target_stack): Delete.
14093 (current_top_target): Return the current inferior's top target.
14094 (target_has_execution_1): Refer to the passed-in inferior's top
14095 target.
14096 (target_supports_terminal_ours): Check whether the initial
14097 inferior was already created.
14098 (decref_target): New.
14099 (target_stack::push): Incref/decref the target.
14100 (push_target, push_target, unpush_target): Adjust.
14101 (target_stack::unpush): Defref target.
14102 (target_is_pushed): Return bool. Adjust to refer to the current
14103 inferior's target stack.
14104 (dispose_inferior): Delete, and inline parts ...
14105 (target_preopen): ... here. Only dispose of the current inferior.
14106 (target_detach): Hold strong target reference while detaching.
14107 Pass target down.
14108 (target_thread_name): Add assertion.
14109 (target_resume): Pass down target.
14110 (target_ops::beneath, find_target_at): Adjust to refer to the
14111 current inferior's target stack.
14112 (get_dummy_target): New.
14113 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
14114 has a thread running.
14115 (initialize_targets): Rename to ...
14116 (_initialize_target): ... this.
14117 * target.h: Include "gdbsupport/refcounted-object.h".
14118 (struct target_ops): Inherit refcounted_object.
14119 (target_ops::shortname, target_ops::longname): Make const.
14120 (target_ops::async_wait_fd): New method.
14121 (decref_target): Declare.
14122 (struct target_ops_ref_policy): New.
14123 (target_ops_ref): New typedef.
14124 (get_dummy_target): Declare function.
14125 (target_is_pushed): Return bool.
14126 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
14127 (all_matching_threads_iterator::all_matching_threads_iterator):
14128 Handle filter target.
14129 * thread-iter.h (struct all_matching_threads_iterator, struct
14130 all_matching_threads_range, class all_non_exited_threads_range):
14131 Filter by target too. Remove explicit.
14132 * thread.c (threads_executing): Delete.
14133 (inferior_thread): Pass down current inferior.
14134 (clear_thread_inferior_resources): Pass down thread pointer
14135 instead of ptid_t.
14136 (add_thread_silent, add_thread_with_info, add_thread): Add
14137 process_stratum_target parameter. Use it for thread and inferior
14138 searches.
14139 (is_current_thread): New.
14140 (thread_info::deletable): Use it.
14141 (find_thread_ptid, thread_count, in_thread_list)
14142 (thread_change_ptid, set_resumed, set_running): New
14143 process_stratum_target parameter. Pass it down.
14144 (set_executing): New process_stratum_target parameter. Pass it
14145 down. Adjust reference to 'threads_executing'.
14146 (threads_are_executing): New process_stratum_target parameter.
14147 Adjust reference to 'threads_executing'.
14148 (set_stop_requested, finish_thread_state): New
14149 process_stratum_target parameter. Pass it down.
14150 (switch_to_thread): Also match inferior.
14151 (switch_to_thread): New process_stratum_target parameter. Pass it
14152 down.
14153 (update_threads_executing): Reimplement.
14154 * top.c (quit_force): Pop targets from all inferior.
14155 (gdb_init): Don't call initialize_targets.
14156 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
14157 Declare.
14158 (windows_add_thread, windows_delete_thread): Adjust.
14159 (get_windows_debug_event): Rename to ...
14160 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
14161 * tracefile-tfile.c (tfile_target_open): Pass down target.
14162 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
14163 Forward declare.
14164 (switch_to_thread): Add process_stratum_target parameter.
14165 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
14166 parameter. Use it.
14167 (mi_on_resume): Pass target down.
14168 * nat/fork-inferior.c (startup_inferior): Add
14169 process_stratum_target parameter. Pass it down.
14170 * nat/fork-inferior.h (startup_inferior): Add
14171 process_stratum_target parameter.
14172 * python/py-threadevent.c (py_get_event_thread): Pass target down.
14173
75c6c844
PA
141742020-01-10 Pedro Alves <palves@redhat.com>
14175
14176 * remote.c (remote_target::start_remote): Don't set inferior_ptid
14177 directly. Instead find the first thread in the thread list and
14178 use switch_to_thread.
14179
78f2c40a
PA
141802020-01-10 Pedro Alves <palves@redhat.com>
14181
14182 * remote.c (remote_target::remote_add_inferior): Don't bind a
14183 process to the current inferior if the current inferior is already
14184 bound to a process.
14185
e7af6c70
TBA
141862020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14187 Pedro Alves <palves@redhat.com>
14188
14189 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
14190 If no process is specified, return null_ptid instead of
14191 inferior_ptid.
14192 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
14193 TARGET_WAITKIND_SIGNALLED with no pid.
14194
31ba933e
PA
141952020-01-10 Pedro Alves <palves@redhat.com>
14196
14197 * remote.c (first_remote_resumed_thread): New.
14198 (remote_target::wait_as): Use it as default event_ptid instead of
14199 inferior_ptid.
14200
735fc2ca
PA
142012020-01-10 Pedro Alves <palves@redhat.com>
14202
14203 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
14204
c17e02e1
PA
142052020-01-10 Pedro Alves <palves@redhat.com>
14206
14207 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
14208 not -1.
14209
ab1ddbcf
PA
142102020-01-10 Pedro Alves <palves@redhat.com>
14211
14212 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
14213 ptid to get_last_target_status.
14214 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
14215 ptid to get_last_target_status.
14216 * infcmd.c (continue_command): Don't pass a target_waitstatus to
14217 get_last_target_status.
14218 (info_program_command): Don't pass a target_waitstatus to
14219 get_last_target_status.
14220 * infrun.c (init_wait_for_inferior): Use
14221 nullify_last_target_wait_ptid.
14222 (get_last_target_status): Handle nullptr arguments.
14223 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
14224 (print_stop_event): Don't pass a ptid to get_last_target_status.
14225 (normal_stop): Don't pass a ptid to get_last_target_status.
14226 * infrun.h (get_last_target_status, set_last_target_status): Move
14227 comments here and update.
14228 (nullify_last_target_wait_ptid): Declare.
14229 * linux-fork.c (fork_load_infrun_state): Remove local extern
14230 declaration of nullify_last_target_wait_ptid.
14231 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
14232 to get_last_target_status.
14233
f3f8ece4
PA
142342020-01-10 Pedro Alves <palves@redhat.com>
14235
14236 * gdbthread.h (scoped_restore_current_thread)
14237 <dont_restore, restore, m_dont_restore>: Declare.
14238 * thread.c (thread_alive): Add assertion. Return bool.
14239 (switch_to_thread_if_alive): New.
14240 (prune_threads): Switch inferior/thread.
14241 (print_thread_info_1): Switch thread before calling target methods.
14242 (scoped_restore_current_thread::restore): New, factored out from
14243 ...
14244 (scoped_restore_current_thread::~scoped_restore_current_thread):
14245 ... this.
14246 (scoped_restore_current_thread::scoped_restore_current_thread):
14247 Add assertion.
14248 (thread_apply_all_command, thread_select): Use
14249 switch_to_thread_if_alive.
14250 * infrun.c (proceed, restart_threads, handle_signal_stop)
14251 (switch_back_to_stepped_thread): Switch current thread before
14252 calling target methods.
14253
db2d40f7
PA
142542020-01-10 Pedro Alves <palves@redhat.com>
14255
14256 * inferior.c (switch_to_inferior_no_thread): New function,
14257 factored out from ...
14258 (inferior_command): ... here.
14259 * inferior.h (switch_to_inferior_no_thread): Declare.
14260 * mi/mi-main.c (run_one_inferior): Use
14261 switch_to_inferior_no_thread.
14262
bd420a2d
PA
142632020-01-10 Pedro Alves <palves@redhat.com>
14264
14265 * infcmd.c (kill_command): Remove dead code.
14266
ddf5db90
PA
142672020-01-10 Pedro Alves <palves@redhat.com>
14268
14269 * remote.c (remote_target::mourn_inferior): No longer check
14270 whether the target is running.
14271
5018ce90
PA
142722020-01-10 Pedro Alves <palves@redhat.com>
14273
14274 * corelow.c (core_target::has_execution): Change parameter type to
14275 inferior pointer.
14276 * inferior.c (number_of_live_inferiors): Use
14277 inferior::has_execution instead of target_has_execution_1.
14278 * inferior.h (inferior::has_execution): New.
14279 * linux-thread-db.c (thread_db_target::update_thread_list): Use
14280 inferior::has_execution instead of target_has_execution_1.
14281 * process-stratum-target.c
14282 (process_stratum_target::has_execution): Change parameter type to
14283 inferior pointer. Check the inferior's PID instead of
14284 inferior_ptid.
14285 * process-stratum-target.h
14286 (process_stratum_target::has_execution): Change parameter type to
14287 inferior pointer.
14288 * record-full.c (record_full_core_target::has_execution): Change
14289 parameter type to inferior pointer.
14290 * target.c (target_has_execution_1): Change parameter type to
14291 inferior pointer.
14292 (target_has_execution_current): Adjust.
14293 * target.h (target_ops::has_execution): Change parameter type to
14294 inferior pointer.
14295 (target_has_execution_1): Change parameter type to inferior
14296 pointer. Change return type to bool.
14297 * tracefile.h (tracefile_target::has_execution): Change parameter
14298 type to inferior pointer.
14299
74375d18
PA
143002020-01-10 Pedro Alves <palves@redhat.com>
14301
14302 * exceptions.c (print_flush): Remove current_top_target() check.
14303
acdf84a6
PA
143042020-01-10 Pedro Alves <palves@redhat.com>
14305
14306 * remote.c (show_remote_exec_file): Show the current inferior's
14307 exec-file instead of the command variable's value.
14308
ec506636
PA
143092020-01-10 Pedro Alves <palves@redhat.com>
14310
14311 * record-full.c (record_full_resume_ptid): New global.
14312 (record_full_target::resume): Set it.
14313 (record_full_wait_1): Use record_full_resume_ptid instead of
14314 inferior_ptid.
14315
873657b9
PA
143162020-01-10 Pedro Alves <palves@redhat.com>
14317
14318 * gdbthread.h (scoped_restore_current_thread)
14319 <dont_restore, restore, m_dont_restore>: Declare.
14320 * thread.c (thread_alive): Add assertion. Return bool.
14321 (switch_to_thread_if_alive): New.
14322 (prune_threads): Switch inferior/thread.
14323 (print_thread_info_1): Switch thread before calling target methods.
14324 (scoped_restore_current_thread::restore): New, factored out from
14325 ...
14326 (scoped_restore_current_thread::~scoped_restore_current_thread):
14327 ... this.
14328 (scoped_restore_current_thread::scoped_restore_current_thread):
14329 Add assertion.
14330 (thread_apply_all_command, thread_select): Use
14331 switch_to_thread_if_alive.
14332
7f0ae84c
GB
143332020-01-10 George Barrett <bob@bob131.so>
14334
14335 * stap-probe.c (stap_modify_semaphore): Don't check for null
14336 semaphores.
14337 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
14338 for null semaphores.
14339
f5a7c406
AB
143402020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
14341
14342 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
14343 all source windows, and maintain horizontal scroll status while
14344 doing so.
14345
9ae6bf64
TT
143462020-01-09 Tom Tromey <tom@tromey.com>
14347
14348 PR tui/18932:
14349 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
14350 update_source_window, not print_source_lines.
14351
b2efe70c
AB
143522020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
14353
14354 * tui/tui.c (tui_enable): Register tui hooks after calling
14355 tui_display_main.
14356
5f23a082
CB
143572020-01-09 Christian Biesinger <cbiesinger@google.com>
14358
14359 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
14360
3061113b
SM
143612020-01-08 Simon Marchi <simon.marchi@efficios.com>
14362
14363 * thread.c (print_thread_info_1): Fix indentation.
14364
57d75002
CB
143652020-01-09 Christian Biesinger <cbiesinger@google.com>
14366
14367 * symtab.c (general_symbol_info::compute_and_set_names): Move the
14368 unique_xmalloc_ptr outside the if to always free the demangled name.
14369
6a053cb1
TT
143702020-01-08 Tom Tromey <tromey@adacore.com>
14371
14372 * xcoffread.c (enter_line_range, read_xcoff_symtab)
14373 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
14374 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
14375 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
14376 Remove.
14377 (section_offsets): New typedef.
14378 * symtab.c (fixup_section, get_msymbol_address): Update.
14379 * symmisc.c (dump_msymbols): Update.
14380 * symfile.h (relative_addr_info_to_section_offsets)
14381 (symfile_map_offsets_to_segments): Update.
14382 * symfile.c (build_section_addr_info_from_objfile)
14383 (init_objfile_sect_indices): Update.
14384 (struct place_section_arg): Change type of "offsets".
14385 (place_section): Update.
14386 (relative_addr_info_to_section_offsets): Change type of
14387 "section_offsets". Remove "num_sections" parameter.
14388 (default_symfile_offsets, syms_from_objfile_1)
14389 (set_objfile_default_section_offset): Update.
14390 (reread_symbols): No need to preserve section offsets by hand.
14391 (symfile_map_offsets_to_segments): Change type of "offsets".
14392 * stap-probe.c (relocate_address): Update.
14393 * stabsread.h (process_one_symbol): Update.
14394 * solib-target.c (struct lm_info_target) <offsets>: Change type.
14395 (solib_target_relocate_section_addresses): Update.
14396 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
14397 Update.
14398 * solib-frv.c (frv_relocate_main_executable): Update.
14399 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
14400 * solib-aix.c (solib_aix_get_section_offsets): Change return
14401 type.
14402 (solib_aix_solib_create_inferior_hook): Update.
14403 * remote.c (remote_target::get_offsets): Update.
14404 * psymtab.c (find_pc_sect_psymtab): Update.
14405 * psympriv.h (struct partial_symbol) <address, text_low,
14406 text_high>: Update.
14407 * objfiles.h (obj_section_offset): Update.
14408 (struct objfile) <section_offsets>: Change type.
14409 <num_sections>: Remove.
14410 (objfile_relocate): Update.
14411 * objfiles.c (entry_point_address_query): Update
14412 (relocate_one_symbol): Change type of "section_offsets".
14413 (objfile_relocate1, objfile_relocate1): Change type of
14414 "new_offsets".
14415 (objfile_rebase1): Update.
14416 * mipsread.c (mipscoff_symfile_read): Update.
14417 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
14418 parameter.
14419 * mdebugread.c (parse_symbol): Change type of "section_offsets".
14420 (parse_external, psymtab_to_symtab_1): Update.
14421 * machoread.c (macho_symfile_offsets): Update.
14422 * ia64-tdep.c (ia64_find_unwind_table): Update.
14423 * hppa-tdep.c (read_unwind_info): Update.
14424 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
14425 * dwarf2read.c (create_addrmap_from_index)
14426 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
14427 (process_psymtab_comp_unit_reader, add_partial_symbol)
14428 (add_partial_subprogram, process_full_comp_unit)
14429 (read_file_scope, read_func_scope, read_lexical_block_scope)
14430 (read_call_site_scope, dwarf2_rnglists_process)
14431 (dwarf2_ranges_process, dwarf2_ranges_read)
14432 (dwarf_decode_lines_1, var_decode_location, new_symbol)
14433 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
14434 Update.
14435 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
14436 Update.
14437 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
14438 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
14439 (process_one_symbol): Change type of "section_offsets".
14440 * ctfread.c (get_objfile_text_range): Update.
14441 * coffread.c (coff_symtab_read, enter_linenos)
14442 (process_coff_symbol): Update.
14443 * coff-pe-read.c (add_pe_forwarded_sym): Update.
14444 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
14445
456e800a
TT
144462020-01-08 Tom Tromey <tromey@adacore.com>
14447
14448 * dwarf2read.c (parse_macro_definition): Use std::string.
14449 (parse_macro_definition): Likewise.
14450
6dfa2fc2
TT
144512020-01-08 Tom Tromey <tromey@adacore.com>
14452
14453 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
14454 (ATTR_ALLOC_CHUNK): Remove.
14455
421d1616
TT
144562020-01-08 Tom Tromey <tromey@adacore.com>
14457
14458 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
14459
43816ebc
TT
144602020-01-08 Tom Tromey <tromey@adacore.com>
14461
14462 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
14463 (dwarf2_compute_name, open_dwo_file): Likewise.
14464 (process_enumeration_scope): Use std::vector.
14465 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
14466 (partial_die_info::fixup, dwarf2_start_subfile)
14467 (guess_full_die_structure_name, dwarf2_name): Likewise.
14468 (determine_prefix): Update.
14469 (guess_full_die_structure_name): Make return type const.
14470 (partial_die_full_name): Return unique_xmalloc_ptr.
14471 (DW_FIELD_ALLOC_CHUNK): Remove.
14472
4212d509
TT
144732020-01-07 Tom Tromey <tromey@adacore.com>
14474
14475 PR build/24937:
14476 * stap-probe.c (class stap_static_probe_ops): Add constructor.
14477
06a6207a
JT
144782020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
14479
14480 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
14481
153d79c4
AB
144822020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
14483
14484 * stack.c (print_frame_info): Move disassemble_next_line code
14485 inside source_print block.
14486
66182876
EZ
144872020-01-06 Eli Zaretskii <eliz@gnu.org>
14488
14489 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
14490 gdb/signals.h, as we are now using native signal symbols.
14491
cbfa8581
SV
144922020-01-06 Shahab Vahedi <shahab@synopsys.com>
14493
14494 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
14495 overflow by an early check of content vs threshold.
aac66a4c 14496 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
14497 Likewise.
14498
3f602821
EZ
144992020-01-06 Eli Zaretskii <eliz@gnu.org>
14500
14501 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
14502
a08c904d
JT
145032020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
14504
14505 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
14506 export table if no section contains it's RVA.
14507
89a65580
EZ
145082020-01-06 Eli Zaretskii <eliz@gnu.org>
14509
14510 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
14511
8b7fcda2
HD
145122020-01-06 Hannes Domani <ssbssa@yahoo.de>
14513
14514 * source.c (print_source_lines_base): Set last_line_listed.
14515
a61b4f69
SV
145162020-01-06 Shahab Vahedi <shahab@synopsys.com>
14517
14518 * tui/tui-disasm.c: Remove trailing spaces.
14519
559e7e50
EZ
145202020-01-06 Eli Zaretskii <eliz@gnu.org>
14521 Pedro Alves <palves@redhat.com>
14522
14523 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
14524 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
14525 (windows_gdb_signal_to_target): New function, uses the above
14526 enumeration to convert GDB internal signal codes to equivalent
14527 Windows codes.
14528 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
14529 * windows-nat.c: Include "gdb_wait.h".
14530 (get_windows_debug_event): Extract the fatal exception from the
14531 exit status and convert to the equivalent Posix signal number.
14532 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
14533 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
14534 * gdbsupport/gdb_wait.c: New file, implements
14535 windows_status_to_termsig.
14536 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
14537 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
14538
f2302a34
AB
145392020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
14540
14541 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
14542 show_layout.
14543
6a5206eb
LM
145442020-01-05 Luis Machado <luis.machado@linaro.org>
14545
14546 * aarch64-linux-nat.c
14547 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
14548 and bfd_mach_aarch64.
14549
6ec1d75e
PW
145502020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14551
14552 * ui-file.c (stdio_file::can_emit_style_escape)
14553 (tee_file::can_emit_style_escape): Ensure style is used also on
14554 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
14555 to gdb_stdout.
14556 * main.c (set_gdb_data_directory): Use file style to output the
14557 warning that the given pathname is not a directory.
14558 * top.c (show_history_filename, gdb_safe_append_history)
14559 (show_gdb_datadir): Use file style.
14560
44f81a76
HD
145612020-01-03 Hannes Domani <ssbssa@yahoo.de>
14562
14563 * solib-target.c (struct lm_info_target):
14564 Change offsets to be a unique_xmalloc_ptr.
14565 (solib_target_relocate_section_addresses): Update.
14566
25057eb0
HD
145672020-01-03 Hannes Domani <ssbssa@yahoo.de>
14568
14569 * windows-nat.c (windows_clear_solib): Free so_list linked list.
14570
6e2118f5
BE
145712020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
14572
14573 * MAINTAINERS (Write After Approval): Add myself.
14574
8133c7dc
LM
145752020-01-02 Luis Machado <luis.machado@linaro.org>
14576
14577 * proc-service.c (get_ps_regcache): Remove reference to obsolete
14578 Cell BE architecture.
14579 * target.h (struct target_ops) <thread_architecture>: Likewise.
14580
48189bec
HD
145812020-01-01 Hannes Domani <ssbssa@yahoo.de>
14582
14583 * Makefile.in: Use INSTALL_PROGRAM_ENV.
14584
ead1063b
HD
145852020-01-01 Hannes Domani <ssbssa@yahoo.de>
14586
14587 * MAINTAINERS (Write After Approval): Add myself.
14588
e5d78223
JB
145892020-01-01 Joel Brobecker <brobecker@adacore.com>
14590
14591 * gdbarch.sh: Update copyright year range of generated files.
14592
b811d2c2
JB
145932020-01-01 Joel Brobecker <brobecker@adacore.com>
14594
14595 Update copyright year range in all GDB files.
14596
5f4def5c
JB
145972020-01-01 Joel Brobecker <brobecker@adacore.com>
14598
14599 * copyright.py: Convert to Python 3.
14600
51fd4002
JB
146012020-01-01 Joel Brobecker <brobecker@adacore.com>
14602
14603 * copyright.py: Adapt after move of gnulib directory from gdb
14604 directory to toplevel directory.
14605
5fb651f2
JB
146062020-01-01 Joel Brobecker <brobecker@adacore.com>
14607
14608 * copyright.py (main): Exit if run from the wrong directory.
14609
5dd8bf88
JB
146102020-01-01 Joel Brobecker <brobecker@adacore.com>
14611
14612 * top.c (print_gdb_version): Change copyright year to 2020.
14613
9f71dacb 146142020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 14615
9f71dacb 14616 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 14617
9f71dacb 14618For older changes see ChangeLog-2019.
c906108c
SS
14619\f
14620Local Variables:
14621mode: change-log
14622left-margin: 8
14623fill-column: 74
14624version-control: never
57da7796 14625coding: utf-8
c906108c 14626End: